-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs and improve/normalize components props (#309)
* Update columns docs * add Block component * fix tests * more docs * add more components to the docs * added all elements * Add missing links to bulma.io documentation * [WIP] use Element.proptypes and defaultProps instead of modifier * update can i use * use Element proptypes ans defaultprops * breadcrumb component * add card * refactor dropdow to stop using class component * dropdown docs * Menu component * Enable classProperties in babel * Fix storybook webpack issue * Add level doc * Message docs * Fix render as a color constants * add bulma docs link to message story * update modal component * update snapshots * remove modifier dependency * remove modifiers folder * if button type its reset or submit force renderAs button * remove modifiers import from d.ts files * finish Element docs (for now) * normalize normalize position (center -> centered) * docs improvements * delete documentation folder * more default props * fixes * update reponsive text alignment * Rename textAlignment to textAlign * even more... * refactor pagination to functional component * remove babel plugin not need it anymore * update dependencies * add pagination docs * Panel docs * tabs docs * dome Form component docs * Fix input tests * Texta area and tests * Select docs * Checkbox * Radio docs * Add label story * Passdown size prop from Field to childrens * update test and lower coverage (for now) * Finish form docs * remove unused files * - Container Docs - Remove Fluid from container - Add fluid as a possible value of breakpoint - Add Max prop to container * Level docs * rename position to align * update Changelog * remove Media.Content component (duplicates Content Component) * Hero * Add Section docs * Update Footer docs * add Tile docs * remove notification and color props from Tile * improve Tile docs * Improve responsive gap prop * remove unused mock Co-authored-by: Kenneth <[email protected]>
- Loading branch information
1 parent
732e00f
commit ee95734
Showing
355 changed files
with
15,428 additions
and
36,907 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React, { useState } from 'react'; | ||
import { ArgsTable } from '@storybook/addon-docs/blocks'; | ||
import { Element, Block, Message, Button } from '../' | ||
|
||
const CommonProps = () => { | ||
const [show, setShow] = useState() | ||
return ( | ||
<> | ||
<Block> | ||
<Message color="info"> | ||
<Message.Body textSize={7}> | ||
This component also has all the shared props from the <code>Element</code> component {' '} | ||
<a onClick={() => setShow(s => !s)}>{show ? 'Hide' : 'Show'} common props</a> | ||
</Message.Body> | ||
</Message> | ||
{ | ||
show && <ArgsTable of={Element} /> | ||
} | ||
</Block> | ||
</> | ||
) | ||
}; | ||
|
||
export default CommonProps |
This file was deleted.
Oops, something went wrong.
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,16 +1,61 @@ | ||
import { addDecorator } from '@storybook/react'; | ||
import { withPropsTable } from 'storybook-addon-react-docgen'; | ||
import { MINIMAL_VIEWPORTS} from '@storybook/addon-viewport'; | ||
|
||
import 'bulma/css/bulma.min.css'; | ||
import '@fortawesome/fontawesome-free/css/all.min.css'; | ||
import './rewrites.css' | ||
|
||
addDecorator(withPropsTable); | ||
|
||
console.log(JSON.stringify(MINIMAL_VIEWPORTS, null, 2)) | ||
|
||
export const parameters = { | ||
layout: 'padded', | ||
viewMode: 'docs', | ||
viewport: { | ||
viewports: { | ||
...MINIMAL_VIEWPORTS, | ||
"tablet": { | ||
"name": "Tablet", | ||
"styles": { | ||
"width": "1023px", | ||
"height": "963px" | ||
}, | ||
"type": "tablet" | ||
}, | ||
"desktop": { | ||
"name": "Desktop", | ||
"styles": { | ||
"width": "1215px", | ||
"height": "100%" | ||
}, | ||
"type": "desktop" | ||
}, | ||
"widescreen": { | ||
"name": "Widescreen", | ||
"styles": { | ||
"width": "1407px", | ||
"height": "100%" | ||
}, | ||
"type": "desktop" | ||
}, | ||
"fullhd": { | ||
"name": "Fullhd", | ||
"styles": { | ||
"width": "1920px", | ||
"height": "100%" | ||
}, | ||
"type": "desktop" | ||
}, | ||
} | ||
}, | ||
options: { | ||
storySort: { | ||
order: ['Basics', 'Elements', 'Layout', 'Components', 'Form'], | ||
order: ['Welcome', 'Core Component', 'Columns', 'Elements', 'Components', 'Form', 'Layout'], | ||
}, | ||
}, | ||
previewTabs: { | ||
'storybook/docs/panel': { index: 0, default: true }, | ||
} | ||
}; |
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,29 @@ | ||
|
||
pre code { | ||
color: currentColor; | ||
} | ||
|
||
pre code .tag.token { | ||
background-color: unset; | ||
border-radius: unset; | ||
display: unset; | ||
font-size: 1em; | ||
height: unset; | ||
padding-left: unset; | ||
padding-right: unset; | ||
white-space: unset; | ||
} | ||
pre code .number.token { | ||
margin-right: unset; | ||
} | ||
|
||
pre code .plain-text { | ||
color: #da1039; | ||
} | ||
|
||
pre code .number{ | ||
padding: unset; | ||
min-width: unset; | ||
font-size: unset; | ||
height: unset; | ||
} |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.