-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplified build, bundled css, version bump
- Loading branch information
Showing
7 changed files
with
60 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,19 +13,14 @@ | |
|
||
### To Install | ||
|
||
`npm install rbx [email protected]` or `yarn add rbx [email protected]` | ||
`npm install rbx` or `yarn add rbx` | ||
|
||
### To Use | ||
|
||
Follow the instructions below for adding `sass` support to your webpack configuration, and then: | ||
|
||
```tsx | ||
import "rbx/index.css"; | ||
import React from "react"; | ||
import { Columns } from "rbx"; | ||
/** | ||
* Alternatively, you can import only the components you need | ||
*/ | ||
import { Columns } from "rbx/grid/columns"; | ||
|
||
export const MyPage = () => ( | ||
<Columns> | ||
|
@@ -37,6 +32,8 @@ export const MyPage = () => ( | |
); | ||
``` | ||
|
||
To customize Bulma (including colors), follow the instructions below. | ||
|
||
### Library | ||
|
||
All components support ref-forwarding, and are able to render as any other React Component Type you want to provide, by using the special prop `as`. | ||
|
@@ -116,13 +113,11 @@ While some components may slightly differ from the Bulma API, these changes are | |
| Hero | [Stories](https://dfee.github.io/rbx/?selectedKind=Layout%2FHero) | [Documentation](http://bulma.io/documentation/layout/hero/) | | ||
| Section | [Stories](https://dfee.github.io/rbx/?selectedKind=Layout%2FSection) | [Documentation](http://bulma.io/documentation/layout/section/) | | ||
|
||
### Styling | ||
|
||
#### SASS Support | ||
### Customize Bulma | ||
|
||
To override the variables set by Bulma, [follow the Bulma instructions](https://bulma.io/documentation/customize/variables/). | ||
To override the variables set by Bulma, install Bulma (`npm install [email protected]`), and [follow the Bulma instructions](https://bulma.io/documentation/customize/variables/). | ||
|
||
You will also need to import `rbx/index.sass` as it contains any pertinent bug fixes for Bulma. | ||
You will also need to import `rbx/rbx.sass` as it contains any pertinent bug fixes for Bulma. | ||
|
||
A minimal example of `style.sass` might look like: | ||
|
||
|
@@ -148,10 +143,3 @@ Finally, import this stylesheet somewhere in your CRA app. | |
```js | ||
import "./App.sass"; | ||
``` | ||
|
||
#### Etc. | ||
|
||
This library was hard-forked from [`react-bulma-components`](https://github.com/couds/react-bulma-components) and has been rewritten in its entirety from scratch. | ||
|
||
If you're coming from that library, expect some breaking changes - largely due to stylistic interpretations of the Bulma API and a propensity to keep the React component names semantic. | ||
In addition, there were **many** additions and bug fixes required to bring this library into compliance with the latest release of Bulma. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
// https://github.com/jgthms/bulma/issues/2271 | ||
.checkbox, .radio | ||
&.is-disabled | ||
color: $input-disabled-color | ||
cursor: not-allowed | ||
@import "~bulma/bulma.sass" | ||
@import "./rbx.sass" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// https://github.com/jgthms/bulma/issues/2271 | ||
.checkbox, .radio | ||
&.is-disabled | ||
color: $input-disabled-color | ||
cursor: not-allowed |