
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
campjefferson-react-bulma-components
Advanced tools
React components for Bulma (v0.7.1) framework
This is a implementation in React of the Bulma Framework Component by Jeremy Thomas.
You can find the Storybook of all components here
I will be releasing soon the version 2.0.0 in which I will drop the support of react <= 15. this will add the bulma generic helpers as props to all components and refactor all the components (that make sense) to functional ones.
npm install react-bulma-components
or yarn add -E react-bulma-components
import React from 'react';
// You can import from the global component (you will need to include the css file dist/react-bulma-components.min.css)
import { Columns } from 'react-bulma-components';
// You can also include the js that also bundle the css (do not work with server-side rendering)
import { Columns } from 'react-bulma-components/full';
// [RECOMENDED] Or import only the components you will use (this will reduce the total bundle size)
// If you use this approach and want to use the global Bulma styles import react-bulma-components/src/index.sass and configure webpack to handle sass files
import Columns from 'react-bulma-components/lib/components/columns';
export default () => (
<Columns>
<Columns.Column>
First Column
</Columns.Column>
<Columns.Column>
Second Column
</Columns.Column>
<Columns.Column>
Third Column
</Columns.Column>
<Columns.Column>
Fourth Column
</Columns.Column>
</Columns>
);
You can find the documentation in https://couds.github.io/react-bulma-components
Each component import his own sass file, in this way you can reduce your css total file only including the styles you use, to enable this please configure your Webpack to handle sass files. You can use the webpack.config.js on the root folder of this repository
Some componets may vary the api/naming convention with the Bulma Docs, please refear to each storybook to see how to use each component (you can find the source code of the story usin ght button "Show info" on the top-right corner)
The Following componets were ported:
To Override the variables set by Bulma you will need to create a sass file like this one (_variable.sass)
@import '~bulma/sass/utilities/initial-variables.sass'
// ADD HERE variables you want to override
$primary: #f4f4f4
@import '~bulma/sass/utilities/_all.sass'
After that you will need to add to your webpack configuration an alias pointing to the file
resolve {
// Other resolve props
alias: {
// Other aliases
'_variables.sass': path.resolve(__dirname, 'relative/path/to/your/file/from/webpack/config/file'),
},
}
Sometimes, you don't want to eject your CRA (Create React App) application. But how to make custom style variables for Bulma? This is simple and right way to solve it!
First and major, install package node-sass-chokidar
(docs):
$ npm install --save node-sass-chokidar
Or, if you use yarn:
$ yarn add -E node-sass-chokidar
For example, we're using dir structure, like this:
├── ...
├── public
│ └── ...
└── src
├── scss
│ ├── _variables.scss <-- Override Bulma variables here
│ └── style.scss <-- Entry styles (main)
├── ...
└── style.css <-- Output CSS file
Next, import ./src/style.css
into your main React app file (if not) ./src/index.js
:
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './style.css'; // <-- This our output CSS file
ReactDOM.render(
<App/>,
document.getElementById('root')
);
Don't forget to import
_variables.scss
into head ofstyle.scss
.
And now, just add to scripts
section in your ./package.json
two commands:
{
"scripts": {
// ...
"build-css": "node-sass-chokidar --include-path ./src/scss --include-path ./node_modules src/scss/ -o src/",
"watch-css": "npm run build-css && node-sass-chokidar --include-path ./src/scss --include-path ./node_modules src/scss/ -o src/ --watch --recursive"
}
}
Open console (in your CRA dir), type npm run watch-css
or yarn run watch-css
and hit enter. Now, node-sass-chokidar
will automatically update ./src/style.css
, when you make any changes in ./src/scss/style.scss
file for you!
This page is open source. Noticed a typo? Or something unclear? Improve this page on GitHub
FAQs
React components for Bulma framework
The npm package campjefferson-react-bulma-components receives a total of 0 weekly downloads. As such, campjefferson-react-bulma-components popularity was classified as not popular.
We found that campjefferson-react-bulma-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.