reactive-bulma 4.0.30 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/README.md +250 -252
- package/dist/assets/style.css +1 -0
- package/dist/{esm/types/components → components}/atoms/Block/index.d.ts +1 -1
- package/dist/components/atoms/Block/index.js +18 -0
- package/dist/components/atoms/Block/index.stories.d.ts +8 -0
- package/dist/components/atoms/Block/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/atoms/Box/index.d.ts +1 -1
- package/dist/components/atoms/Box/index.js +18 -0
- package/dist/components/atoms/Box/index.stories.d.ts +8 -0
- package/dist/components/atoms/Box/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/BreadcrumbItem/index.d.ts +1 -1
- package/dist/components/atoms/BreadcrumbItem/index.js +44 -0
- package/dist/components/atoms/BreadcrumbItem/index.stories.d.ts +6 -0
- package/dist/components/atoms/BreadcrumbItem/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/atoms/Button/index.d.ts +1 -1
- package/dist/components/atoms/Button/index.js +49 -0
- package/dist/components/atoms/Button/index.stories.d.ts +14 -0
- package/dist/components/atoms/Button/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Checkbox/index.d.ts +1 -1
- package/dist/components/atoms/Checkbox/index.js +49 -0
- package/dist/components/atoms/Checkbox/index.stories.d.ts +9 -0
- package/dist/components/atoms/Checkbox/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Column/index.d.ts +1 -1
- package/dist/components/atoms/Column/index.js +31 -0
- package/dist/components/atoms/Column/index.stories.d.ts +8 -0
- package/dist/components/atoms/Column/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Delete/index.d.ts +1 -1
- package/dist/components/atoms/Delete/index.js +26 -0
- package/dist/components/atoms/Delete/index.stories.d.ts +6 -0
- package/dist/components/atoms/Delete/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/DropdownItem/index.d.ts +1 -1
- package/dist/components/atoms/DropdownItem/index.js +37 -0
- package/dist/components/atoms/DropdownItem/index.stories.d.ts +5 -0
- package/dist/components/atoms/DropdownItem/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/DropdownTrigger/index.d.ts +1 -1
- package/dist/components/atoms/DropdownTrigger/index.js +53 -0
- package/dist/components/atoms/DropdownTrigger/index.stories.d.ts +5 -0
- package/dist/components/atoms/DropdownTrigger/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/File/index.d.ts +1 -1
- package/dist/components/atoms/File/index.js +73 -0
- package/dist/components/atoms/File/index.stories.d.ts +13 -0
- package/dist/components/atoms/File/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Icon/index.d.ts +1 -1
- package/dist/components/atoms/Icon/index.js +88 -0
- package/dist/components/atoms/Icon/index.stories.d.ts +12 -0
- package/dist/components/atoms/Icon/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Image/index.d.ts +1 -1
- package/dist/components/atoms/Image/index.js +44 -0
- package/dist/components/atoms/Image/index.stories.d.ts +8 -0
- package/dist/components/atoms/Image/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Input/index.d.ts +1 -1
- package/dist/components/atoms/Input/index.js +50 -0
- package/dist/components/atoms/Input/index.stories.d.ts +15 -0
- package/dist/components/atoms/Input/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/LevelHeader/index.d.ts +1 -1
- package/dist/components/atoms/LevelHeader/index.js +26 -0
- package/dist/components/atoms/LevelHeader/index.stories.d.ts +6 -0
- package/dist/components/atoms/LevelHeader/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/MenuItem/index.d.ts +1 -1
- package/dist/components/atoms/MenuItem/index.js +30 -0
- package/dist/components/atoms/MenuItem/index.stories.d.ts +6 -0
- package/dist/components/atoms/MenuItem/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/NavBarItem/index.d.ts +1 -1
- package/dist/components/atoms/NavBarItem/index.js +30 -0
- package/dist/components/atoms/NavBarItem/index.stories.d.ts +5 -0
- package/dist/components/atoms/NavBarItem/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/atoms/PaginationItem/index.d.ts +1 -1
- package/dist/components/atoms/PaginationItem/index.js +37 -0
- package/dist/components/atoms/PaginationItem/index.stories.d.ts +8 -0
- package/dist/components/atoms/PaginationItem/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/atoms/ProgressBar/index.d.ts +1 -1
- package/dist/components/atoms/ProgressBar/index.js +36 -0
- package/dist/components/atoms/ProgressBar/index.stories.d.ts +10 -0
- package/dist/components/atoms/ProgressBar/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/atoms/RadioButton/index.d.ts +1 -1
- package/dist/components/atoms/RadioButton/index.js +71 -0
- package/dist/components/atoms/RadioButton/index.stories.d.ts +8 -0
- package/dist/components/atoms/RadioButton/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Select/index.d.ts +1 -1
- package/dist/components/atoms/Select/index.js +64 -0
- package/dist/components/atoms/Select/index.stories.d.ts +9 -0
- package/dist/components/atoms/Select/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/TabItem/index.d.ts +1 -1
- package/dist/components/atoms/TabItem/index.js +44 -0
- package/dist/components/atoms/TabItem/index.stories.d.ts +6 -0
- package/dist/components/atoms/TabItem/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/TableCell/index.d.ts +1 -1
- package/dist/components/atoms/TableCell/index.js +24 -0
- package/dist/components/atoms/TableCell/index.stories.d.ts +5 -0
- package/dist/components/atoms/TableCell/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/TableHeadCell/index.d.ts +1 -1
- package/dist/components/atoms/TableHeadCell/index.js +24 -0
- package/dist/components/atoms/TableHeadCell/index.stories.d.ts +5 -0
- package/dist/components/atoms/TableHeadCell/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Tag/index.d.ts +1 -1
- package/dist/components/atoms/Tag/index.js +87 -0
- package/dist/components/atoms/Tag/index.stories.d.ts +13 -0
- package/dist/components/atoms/Tag/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/TextArea/index.d.ts +1 -1
- package/dist/components/atoms/TextArea/index.js +60 -0
- package/dist/components/atoms/TextArea/index.stories.d.ts +14 -0
- package/dist/components/atoms/TextArea/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Tile/index.d.ts +1 -1
- package/dist/components/atoms/Tile/index.js +46 -0
- package/dist/components/atoms/Tile/index.stories.d.ts +9 -0
- package/dist/components/atoms/Tile/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/atoms/Title/index.d.ts +1 -1
- package/dist/components/atoms/Title/index.js +25 -0
- package/dist/components/atoms/Title/index.stories.d.ts +10 -0
- package/dist/components/atoms/Title/index.test.d.ts +0 -0
- package/dist/components/atoms/index.js +56 -0
- package/dist/{esm/types/components → components}/molecules/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/molecules/Breadcrumbs/index.js +63 -0
- package/dist/components/molecules/Breadcrumbs/index.stories.d.ts +8 -0
- package/dist/components/molecules/Breadcrumbs/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/ButtonGroup/index.d.ts +1 -1
- package/dist/components/molecules/ButtonGroup/index.js +58 -0
- package/dist/components/molecules/ButtonGroup/index.stories.d.ts +8 -0
- package/dist/components/molecules/ButtonGroup/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/ColumnGroup/index.d.ts +1 -1
- package/dist/components/molecules/ColumnGroup/index.js +55 -0
- package/dist/components/molecules/ColumnGroup/index.stories.d.ts +10 -0
- package/dist/components/molecules/ColumnGroup/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/Dropdown/index.d.ts +1 -1
- package/dist/components/molecules/Dropdown/index.js +72 -0
- package/dist/components/molecules/Dropdown/index.stories.d.ts +6 -0
- package/dist/components/molecules/Dropdown/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/Footer/index.d.ts +1 -1
- package/dist/components/molecules/Footer/index.js +51 -0
- package/dist/components/molecules/Footer/index.stories.d.ts +8 -0
- package/dist/components/molecules/Footer/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/InputControl/index.d.ts +1 -1
- package/dist/components/molecules/InputControl/index.js +59 -0
- package/dist/components/molecules/InputControl/index.stories.d.ts +11 -0
- package/dist/components/molecules/InputControl/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/LevelItem/index.d.ts +1 -1
- package/dist/components/molecules/LevelItem/index.js +40 -0
- package/dist/components/molecules/LevelItem/index.stories.d.ts +7 -0
- package/dist/components/molecules/LevelItem/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/Media/index.d.ts +1 -1
- package/dist/components/molecules/Media/index.js +35 -0
- package/dist/components/molecules/Media/index.stories.d.ts +10 -0
- package/dist/components/molecules/Media/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/Menu/index.d.ts +1 -1
- package/dist/components/molecules/Menu/index.js +41 -0
- package/dist/components/molecules/Menu/index.stories.d.ts +6 -0
- package/dist/components/molecules/Menu/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/MenuList/index.d.ts +1 -1
- package/dist/components/molecules/MenuList/index.js +39 -0
- package/dist/components/molecules/MenuList/index.stories.d.ts +6 -0
- package/dist/components/molecules/MenuList/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/Message/index.d.ts +1 -1
- package/dist/components/molecules/Message/index.js +47 -0
- package/dist/components/molecules/Message/index.stories.d.ts +9 -0
- package/dist/components/molecules/Message/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/Modal/index.d.ts +1 -1
- package/dist/components/molecules/Modal/index.js +61 -0
- package/dist/components/molecules/Modal/index.stories.d.ts +7 -0
- package/dist/components/molecules/Modal/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/NavBarBrand/index.d.ts +1 -1
- package/dist/components/molecules/NavBarBrand/index.js +48 -0
- package/dist/components/molecules/NavBarBrand/index.stories.d.ts +7 -0
- package/dist/components/molecules/NavBarBrand/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/NavBarDropdown/index.d.ts +1 -1
- package/dist/components/molecules/NavBarDropdown/index.js +85 -0
- package/dist/components/molecules/NavBarDropdown/index.stories.d.ts +10 -0
- package/dist/components/molecules/NavBarDropdown/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/Notification/index.d.ts +1 -1
- package/dist/components/molecules/Notification/index.js +37 -0
- package/dist/components/molecules/Notification/index.stories.d.ts +8 -0
- package/dist/components/molecules/Notification/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/Pagination/index.d.ts +1 -1
- package/dist/components/molecules/Pagination/index.js +109 -0
- package/dist/components/molecules/Pagination/index.stories.d.ts +12 -0
- package/dist/components/molecules/Pagination/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/PanelBlock/index.d.ts +1 -1
- package/dist/components/molecules/PanelBlock/index.js +60 -0
- package/dist/components/molecules/PanelBlock/index.stories.d.ts +8 -0
- package/dist/components/molecules/PanelBlock/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/PanelTabs/index.d.ts +1 -1
- package/dist/components/molecules/PanelTabs/index.js +32 -0
- package/dist/components/molecules/PanelTabs/index.stories.d.ts +7 -0
- package/dist/components/molecules/PanelTabs/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/Section/index.d.ts +1 -1
- package/dist/components/molecules/Section/index.js +23 -0
- package/dist/components/molecules/Section/index.stories.d.ts +8 -0
- package/dist/components/molecules/Section/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/molecules/TableRow/index.d.ts +1 -1
- package/dist/components/molecules/TableRow/index.js +41 -0
- package/dist/components/molecules/TableRow/index.stories.d.ts +7 -0
- package/dist/components/molecules/TableRow/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/Tabs/index.d.ts +1 -1
- package/dist/components/molecules/Tabs/index.js +44 -0
- package/dist/components/molecules/Tabs/index.stories.d.ts +13 -0
- package/dist/components/molecules/Tabs/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/molecules/TileBox/index.d.ts +1 -1
- package/dist/components/molecules/TileBox/index.js +51 -0
- package/dist/components/molecules/TileBox/index.stories.d.ts +8 -0
- package/dist/components/molecules/TileBox/index.test.d.ts +0 -0
- package/dist/components/molecules/index.js +46 -0
- package/dist/{cjs/types/components → components}/organisms/Card/index.d.ts +1 -1
- package/dist/components/organisms/Card/index.js +87 -0
- package/dist/components/organisms/Card/index.stories.d.ts +8 -0
- package/dist/components/organisms/Card/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/organisms/FormField/index.d.ts +1 -1
- package/dist/components/organisms/FormField/index.js +76 -0
- package/dist/components/organisms/FormField/index.stories.d.ts +11 -0
- package/dist/components/organisms/FormField/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/organisms/Hero/index.d.ts +1 -1
- package/dist/components/organisms/Hero/index.js +37 -0
- package/dist/components/organisms/Hero/index.stories.d.ts +12 -0
- package/dist/components/organisms/Hero/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/organisms/Level/index.d.ts +1 -1
- package/dist/components/organisms/Level/index.js +42 -0
- package/dist/components/organisms/Level/index.stories.d.ts +9 -0
- package/dist/components/organisms/Level/index.test.d.ts +0 -0
- package/dist/{esm/types/components → components}/organisms/NavBar/index.d.ts +1 -1
- package/dist/components/organisms/NavBar/index.js +83 -0
- package/dist/components/organisms/NavBar/index.stories.d.ts +11 -0
- package/dist/components/organisms/NavBar/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/organisms/Panel/index.d.ts +1 -1
- package/dist/components/organisms/Panel/index.js +39 -0
- package/dist/components/organisms/Panel/index.stories.d.ts +11 -0
- package/dist/components/organisms/Panel/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/organisms/Table/index.d.ts +1 -1
- package/dist/components/organisms/Table/index.js +65 -0
- package/dist/components/organisms/Table/index.stories.d.ts +15 -0
- package/dist/components/organisms/Table/index.test.d.ts +0 -0
- package/dist/{cjs/types/components → components}/organisms/TileGroup/index.d.ts +1 -1
- package/dist/components/organisms/TileGroup/index.js +55 -0
- package/dist/components/organisms/TileGroup/index.stories.d.ts +8 -0
- package/dist/components/organisms/TileGroup/index.test.d.ts +0 -0
- package/dist/components/organisms/index.js +18 -0
- package/dist/functions/generators.js +12 -0
- package/dist/{cjs/types/functions → functions}/jest.d.ts +2 -2
- package/dist/functions/parsers.js +19 -0
- package/dist/index.d.ts +3 -805
- package/dist/index.js +116 -0
- package/dist/{cjs/types/interfaces → interfaces}/atomProps.d.ts +1 -1
- package/dist/interfaces/atomProps.js +1 -0
- package/dist/interfaces/commonProps.js +1 -0
- package/dist/interfaces/functionProps.js +1 -0
- package/dist/interfaces/moleculeProps.js +1 -0
- package/dist/interfaces/organismProps.js +1 -0
- package/dist/{cjs/types/types → types}/domTypes.d.ts +1 -1
- package/dist/types/domTypes.js +4 -0
- package/dist/types/styleTypes.js +1 -0
- package/package.json +49 -36
- package/dist/cjs/index.js +0 -4089
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/components/atoms/Block/index.d.ts +0 -4
- package/dist/cjs/types/components/atoms/Box/index.d.ts +0 -4
- package/dist/cjs/types/components/atoms/Button/index.d.ts +0 -4
- package/dist/cjs/types/components/atoms/PaginationItem/index.d.ts +0 -4
- package/dist/cjs/types/components/atoms/ProgressBar/index.d.ts +0 -4
- package/dist/cjs/types/components/atoms/RadioButton/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/Breadcrumbs/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/ButtonGroup/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/ColumnGroup/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/Dropdown/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/Footer/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/LevelItem/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/MenuList/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/Message/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/Pagination/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/PanelBlock/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/PanelTabs/index.d.ts +0 -4
- package/dist/cjs/types/components/molecules/TableRow/index.d.ts +0 -4
- package/dist/cjs/types/components/organisms/FormField/index.d.ts +0 -4
- package/dist/cjs/types/components/organisms/NavBar/index.d.ts +0 -4
- package/dist/cjs/types/index.d.ts +0 -5
- package/dist/esm/index.js +0 -4031
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/components/atoms/BreadcrumbItem/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Checkbox/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Column/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Delete/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/DropdownItem/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/DropdownTrigger/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/File/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Icon/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Image/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Input/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/LevelHeader/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/MenuItem/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/NavBarItem/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Select/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/TabItem/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/TableCell/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/TableHeadCell/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Tag/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/TextArea/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Tile/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/Title/index.d.ts +0 -4
- package/dist/esm/types/components/atoms/index.d.ts +0 -27
- package/dist/esm/types/components/molecules/InputControl/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/Media/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/Menu/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/Modal/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/NavBarBrand/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/NavBarDropdown/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/Notification/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/Section/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/Tabs/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/TileBox/index.d.ts +0 -4
- package/dist/esm/types/components/molecules/index.d.ts +0 -22
- package/dist/esm/types/components/organisms/Card/index.d.ts +0 -4
- package/dist/esm/types/components/organisms/Hero/index.d.ts +0 -4
- package/dist/esm/types/components/organisms/Level/index.d.ts +0 -4
- package/dist/esm/types/components/organisms/Panel/index.d.ts +0 -4
- package/dist/esm/types/components/organisms/Table/index.d.ts +0 -4
- package/dist/esm/types/components/organisms/TileGroup/index.d.ts +0 -4
- package/dist/esm/types/components/organisms/index.d.ts +0 -8
- package/dist/esm/types/functions/generators.d.ts +0 -4
- package/dist/esm/types/functions/jest.d.ts +0 -2
- package/dist/esm/types/functions/parsers.d.ts +0 -14
- package/dist/esm/types/functions/tests/generators.test.d.ts +0 -1
- package/dist/esm/types/functions/tests/parsers.test.d.ts +0 -1
- package/dist/esm/types/index.d.ts +0 -5
- package/dist/esm/types/interfaces/atomProps.d.ts +0 -305
- package/dist/esm/types/interfaces/commonProps.d.ts +0 -25
- package/dist/esm/types/interfaces/functionProps.d.ts +0 -16
- package/dist/esm/types/interfaces/moleculeProps.d.ts +0 -231
- package/dist/esm/types/interfaces/organismProps.d.ts +0 -112
- package/dist/esm/types/types/domTypes.d.ts +0 -16
- package/dist/esm/types/types/styleTypes.d.ts +0 -19
- /package/dist/{cjs/types/components → components}/atoms/index.d.ts +0 -0
- /package/dist/{cjs/types/components → components}/molecules/index.d.ts +0 -0
- /package/dist/{cjs/types/components → components}/organisms/index.d.ts +0 -0
- /package/dist/{cjs/types/functions → functions}/generators.d.ts +0 -0
- /package/dist/{cjs/types/functions → functions}/parsers.d.ts +0 -0
- /package/dist/{cjs/types/functions → functions}/tests/generators.test.d.ts +0 -0
- /package/dist/{cjs/types/functions → functions}/tests/parsers.test.d.ts +0 -0
- /package/dist/{cjs/types/interfaces → interfaces}/commonProps.d.ts +0 -0
- /package/dist/{cjs/types/interfaces → interfaces}/functionProps.d.ts +0 -0
- /package/dist/{cjs/types/interfaces → interfaces}/moleculeProps.d.ts +0 -0
- /package/dist/{cjs/types/interfaces → interfaces}/organismProps.d.ts +0 -0
- /package/dist/{cjs/types/types → types}/styleTypes.d.ts +0 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as i, parseTestId as r } from "../../../functions/parsers.js";
|
3
|
+
const u = ({
|
4
|
+
testId: e = null,
|
5
|
+
cssClasses: t = null,
|
6
|
+
style: l = null,
|
7
|
+
content: n,
|
8
|
+
size: o = null
|
9
|
+
}) => {
|
10
|
+
const s = i(["section", o, t]), a = e ?? r({ tag: "section", parsedClasses: s });
|
11
|
+
return /* @__PURE__ */ c(
|
12
|
+
"section",
|
13
|
+
{
|
14
|
+
"data-testid": a,
|
15
|
+
className: s,
|
16
|
+
style: l ?? void 0,
|
17
|
+
children: n
|
18
|
+
}
|
19
|
+
);
|
20
|
+
};
|
21
|
+
export {
|
22
|
+
u as default
|
23
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Section } from '.';
|
3
|
+
declare const _default: Meta<typeof Section>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').SectionProps>;
|
6
|
+
export declare const UsingATitleAsContent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').SectionProps>;
|
7
|
+
export declare const UsingTabsAndTitleAsContent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').SectionProps>;
|
8
|
+
export declare const LargeSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').SectionProps>;
|
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as u, parseTestId as b } from "../../../functions/parsers.js";
|
3
|
+
import c from "../../atoms/TableHeadCell/index.js";
|
4
|
+
import f from "../../atoms/TableCell/index.js";
|
5
|
+
import { generateKey as w } from "../../../functions/generators.js";
|
6
|
+
const j = ({
|
7
|
+
testId: t = null,
|
8
|
+
cssClasses: a = null,
|
9
|
+
style: o = null,
|
10
|
+
headCell: l = null,
|
11
|
+
listOfCells: r,
|
12
|
+
isSelected: n = !1,
|
13
|
+
onClick: m = null
|
14
|
+
}) => {
|
15
|
+
const e = u([
|
16
|
+
n ? "is-selected" : null,
|
17
|
+
a
|
18
|
+
]), i = t ?? b({ tag: "table-row", parsedClasses: e });
|
19
|
+
return /* @__PURE__ */ p(
|
20
|
+
"tr",
|
21
|
+
{
|
22
|
+
"data-testid": i,
|
23
|
+
className: e,
|
24
|
+
style: o ?? void 0,
|
25
|
+
onClick: m ?? void 0,
|
26
|
+
children: [
|
27
|
+
l ? /* @__PURE__ */ s(c, { ...l }) : null,
|
28
|
+
r.map((d) => /* @__PURE__ */ s(
|
29
|
+
f,
|
30
|
+
{
|
31
|
+
...d
|
32
|
+
},
|
33
|
+
`table-row-${w()}`
|
34
|
+
))
|
35
|
+
]
|
36
|
+
}
|
37
|
+
);
|
38
|
+
};
|
39
|
+
export {
|
40
|
+
j as default
|
41
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as TableRow } from '.';
|
3
|
+
declare const _default: Meta<typeof TableRow>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').TableRowProps>;
|
6
|
+
export declare const WithHeaderCell: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').TableRowProps>;
|
7
|
+
export declare const Selected: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').TableRowProps>;
|
File without changes
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as p, parseTestId as b } from "../../../functions/parsers.js";
|
3
|
+
import f from "../../atoms/TabItem/index.js";
|
4
|
+
import { generateKey as h } from "../../../functions/generators.js";
|
5
|
+
const x = ({
|
6
|
+
testId: t = null,
|
7
|
+
cssClasses: a = null,
|
8
|
+
style: i = null,
|
9
|
+
tabs: n,
|
10
|
+
alignment: r = null,
|
11
|
+
size: o = null,
|
12
|
+
format: u = null,
|
13
|
+
isRounded: d = null,
|
14
|
+
isFullWidth: m = null
|
15
|
+
}) => {
|
16
|
+
const s = p([
|
17
|
+
"tabs",
|
18
|
+
r,
|
19
|
+
o,
|
20
|
+
u,
|
21
|
+
d ? "is-toggle-rounded" : null,
|
22
|
+
m ? "is-fullwidth" : null,
|
23
|
+
a
|
24
|
+
]), c = t ?? b({ tag: "tabs", parsedClasses: s });
|
25
|
+
return /* @__PURE__ */ l(
|
26
|
+
"section",
|
27
|
+
{
|
28
|
+
"data-testid": c,
|
29
|
+
className: s,
|
30
|
+
style: i ?? void 0,
|
31
|
+
children: /* @__PURE__ */ l("ul", { children: n.map((e) => /* @__PURE__ */ l(
|
32
|
+
"li",
|
33
|
+
{
|
34
|
+
className: e.isActive ? "is-active" : void 0,
|
35
|
+
children: /* @__PURE__ */ l(f, { ...e })
|
36
|
+
},
|
37
|
+
`tab-item-${h()}`
|
38
|
+
)) })
|
39
|
+
}
|
40
|
+
);
|
41
|
+
};
|
42
|
+
export {
|
43
|
+
x as default
|
44
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Tabs } from '.';
|
3
|
+
import { TabsProps } from '../../../interfaces/moleculeProps';
|
4
|
+
declare const _default: Meta<typeof Tabs>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TabsProps>;
|
7
|
+
export declare const ManyTabs: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TabsProps>;
|
8
|
+
export declare const AlignedToRight: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TabsProps>;
|
9
|
+
export declare const BoxedFormat: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TabsProps>;
|
10
|
+
export declare const ToggleFormat: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TabsProps>;
|
11
|
+
export declare const Rounded: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TabsProps>;
|
12
|
+
export declare const FullWidthMode: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TabsProps>;
|
13
|
+
export declare const BigSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TabsProps>;
|
File without changes
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as d, parseTestId as m } from "../../../functions/parsers.js";
|
3
|
+
import u from "../../atoms/Tile/index.js";
|
4
|
+
const g = ({
|
5
|
+
testId: r = null,
|
6
|
+
cssClasses: l = "box",
|
7
|
+
style: s = null,
|
8
|
+
children: n = null,
|
9
|
+
context: t = "is-child",
|
10
|
+
size: i,
|
11
|
+
color: e,
|
12
|
+
isVertical: o
|
13
|
+
}) => {
|
14
|
+
const a = d([
|
15
|
+
"tileBox",
|
16
|
+
t,
|
17
|
+
i,
|
18
|
+
e ? `notification ${e}` : null,
|
19
|
+
o ? "is-vertical" : null,
|
20
|
+
l
|
21
|
+
]), p = r ?? m({
|
22
|
+
tag: "tileBox",
|
23
|
+
parsedClasses: a,
|
24
|
+
rules: [
|
25
|
+
{
|
26
|
+
regExp: /notification |tileBox/gm,
|
27
|
+
replacer: ""
|
28
|
+
},
|
29
|
+
{
|
30
|
+
regExp: /is-/gm,
|
31
|
+
replacer: "-"
|
32
|
+
}
|
33
|
+
]
|
34
|
+
});
|
35
|
+
return /* @__PURE__ */ x(
|
36
|
+
u,
|
37
|
+
{
|
38
|
+
testId: p,
|
39
|
+
cssClasses: l,
|
40
|
+
style: s ?? void 0,
|
41
|
+
isVertical: o,
|
42
|
+
context: t,
|
43
|
+
size: i,
|
44
|
+
color: e,
|
45
|
+
children: n ?? void 0
|
46
|
+
}
|
47
|
+
);
|
48
|
+
};
|
49
|
+
export {
|
50
|
+
g as default
|
51
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as TileBox } from '.';
|
3
|
+
declare const _default: Meta<typeof TileBox>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').TileBoxProps>;
|
6
|
+
export declare const HalfSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').TileBoxProps>;
|
7
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').TileBoxProps>;
|
8
|
+
export declare const WithImage: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').TileBoxProps>;
|
File without changes
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { default as e } from "./ButtonGroup/index.js";
|
2
|
+
import { default as t } from "./ColumnGroup/index.js";
|
3
|
+
import { default as l } from "./Notification/index.js";
|
4
|
+
import { default as d } from "./Breadcrumbs/index.js";
|
5
|
+
import { default as p } from "./Dropdown/index.js";
|
6
|
+
import { default as x } from "./Message/index.js";
|
7
|
+
import { default as i } from "./Menu/index.js";
|
8
|
+
import { default as M } from "./MenuList/index.js";
|
9
|
+
import { default as c } from "./Pagination/index.js";
|
10
|
+
import { default as v } from "./Modal/index.js";
|
11
|
+
import { default as N } from "./Tabs/index.js";
|
12
|
+
import { default as g } from "./InputControl/index.js";
|
13
|
+
import { default as D } from "./PanelBlock/index.js";
|
14
|
+
import { default as I } from "./PanelTabs/index.js";
|
15
|
+
import { default as k } from "./LevelItem/index.js";
|
16
|
+
import { default as R } from "./TileBox/index.js";
|
17
|
+
import { default as h } from "./Footer/index.js";
|
18
|
+
import { default as q } from "./Media/index.js";
|
19
|
+
import { default as z } from "./Section/index.js";
|
20
|
+
import { default as E } from "./NavBarBrand/index.js";
|
21
|
+
import { default as J } from "./NavBarDropdown/index.js";
|
22
|
+
import { default as O } from "./TableRow/index.js";
|
23
|
+
export {
|
24
|
+
d as Breadcrumbs,
|
25
|
+
e as ButtonGroup,
|
26
|
+
t as ColumnGroup,
|
27
|
+
p as Dropdown,
|
28
|
+
h as Footer,
|
29
|
+
g as InputControl,
|
30
|
+
k as LevelItem,
|
31
|
+
q as Media,
|
32
|
+
i as Menu,
|
33
|
+
M as MenuList,
|
34
|
+
x as Message,
|
35
|
+
v as Modal,
|
36
|
+
E as NavBarBrand,
|
37
|
+
J as NavBarDropdown,
|
38
|
+
l as Notification,
|
39
|
+
c as Pagination,
|
40
|
+
D as PanelBlock,
|
41
|
+
I as PanelTabs,
|
42
|
+
z as Section,
|
43
|
+
O as TableRow,
|
44
|
+
N as Tabs,
|
45
|
+
R as TileBox
|
46
|
+
};
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as p, parseTestId as N } from "../../../functions/parsers.js";
|
3
|
+
import $ from "../../atoms/Image/index.js";
|
4
|
+
import { generateKey as o } from "../../../functions/generators.js";
|
5
|
+
const x = ({
|
6
|
+
testId: m = null,
|
7
|
+
cssClasses: h = null,
|
8
|
+
style: u = null,
|
9
|
+
headerText: c = null,
|
10
|
+
image: d = null,
|
11
|
+
content: s,
|
12
|
+
footerLinks: l = null
|
13
|
+
}) => {
|
14
|
+
const n = p(["card", h]), e = m ?? N({ tag: "card", parsedClasses: n });
|
15
|
+
return /* @__PURE__ */ i(
|
16
|
+
"section",
|
17
|
+
{
|
18
|
+
"data-testid": e,
|
19
|
+
className: n,
|
20
|
+
style: u ?? void 0,
|
21
|
+
children: [
|
22
|
+
c ? /* @__PURE__ */ i(
|
23
|
+
"header",
|
24
|
+
{
|
25
|
+
"data-testid": `${e}-header`,
|
26
|
+
className: "card-header",
|
27
|
+
children: [
|
28
|
+
/* @__PURE__ */ a("p", { className: "card-header-title", children: c }),
|
29
|
+
/* @__PURE__ */ a(
|
30
|
+
"button",
|
31
|
+
{
|
32
|
+
className: "card-header-icon",
|
33
|
+
"aria-label": "more options",
|
34
|
+
children: /* @__PURE__ */ a("span", { className: "icon", children: /* @__PURE__ */ a(
|
35
|
+
"i",
|
36
|
+
{
|
37
|
+
className: "fas fa-angle-down",
|
38
|
+
"aria-hidden": "true"
|
39
|
+
}
|
40
|
+
) })
|
41
|
+
}
|
42
|
+
)
|
43
|
+
]
|
44
|
+
}
|
45
|
+
) : null,
|
46
|
+
d ? /* @__PURE__ */ a(
|
47
|
+
"section",
|
48
|
+
{
|
49
|
+
"data-testid": `${e}-image`,
|
50
|
+
className: "card-image",
|
51
|
+
children: /* @__PURE__ */ a($, { ...d })
|
52
|
+
}
|
53
|
+
) : null,
|
54
|
+
/* @__PURE__ */ a(
|
55
|
+
"section",
|
56
|
+
{
|
57
|
+
"data-testid": `${e}-content`,
|
58
|
+
className: "card-content",
|
59
|
+
children: Array.isArray(s) ? s.map((t, r) => /* @__PURE__ */ a(
|
60
|
+
"section",
|
61
|
+
{
|
62
|
+
"data-testid": `${e}-content-item-${r}`,
|
63
|
+
className: "content",
|
64
|
+
children: t
|
65
|
+
},
|
66
|
+
`card-content-item-${o()}`
|
67
|
+
)) : /* @__PURE__ */ a("section", { className: "content", children: s })
|
68
|
+
}
|
69
|
+
),
|
70
|
+
l ? /* @__PURE__ */ a("section", { className: "card-footer", children: l.map((t, r) => /* @__PURE__ */ a(
|
71
|
+
"a",
|
72
|
+
{
|
73
|
+
"data-testid": `${e}-footer-item-${r}`,
|
74
|
+
className: "card-footer-item",
|
75
|
+
"aria-hidden": "true",
|
76
|
+
onClick: t.onClick ?? void 0,
|
77
|
+
children: t.text
|
78
|
+
},
|
79
|
+
`card-footer-item-${o()}`
|
80
|
+
)) }) : null
|
81
|
+
]
|
82
|
+
}
|
83
|
+
);
|
84
|
+
};
|
85
|
+
export {
|
86
|
+
x as default
|
87
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Card } from '.';
|
3
|
+
declare const _default: Meta<typeof Card>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').CardProps>;
|
6
|
+
export declare const WithHeader: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').CardProps>;
|
7
|
+
export declare const WithImage: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').CardProps>;
|
8
|
+
export declare const WithFooter: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').CardProps>;
|
File without changes
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { jsxs as u, jsx as s } from "react/jsx-runtime";
|
2
|
+
import A from "react";
|
3
|
+
import m from "../../molecules/InputControl/index.js";
|
4
|
+
import { parseClasses as N, parseTestId as b } from "../../../functions/parsers.js";
|
5
|
+
import { generateKey as n } from "../../../functions/generators.js";
|
6
|
+
const f = (e) => e ? /* @__PURE__ */ s(
|
7
|
+
"label",
|
8
|
+
{
|
9
|
+
"data-testid": "test-form-field-label",
|
10
|
+
className: "label",
|
11
|
+
children: e
|
12
|
+
}
|
13
|
+
) : null, p = (e, l) => l ? Array.isArray(e) ? e.map((a, c) => /* @__PURE__ */ s(
|
14
|
+
m,
|
15
|
+
{
|
16
|
+
testId: `test-grouped-input-control-${c}`,
|
17
|
+
...a
|
18
|
+
},
|
19
|
+
`grouped-input-control-${n()}`
|
20
|
+
)) : /* @__PURE__ */ s(m, { ...e }) : Array.isArray(e) ? /* @__PURE__ */ s(m, { ...e[0] }) : /* @__PURE__ */ s(m, { ...e }), I = (e) => {
|
21
|
+
if (!e) return null;
|
22
|
+
const l = N(["help", e.color]), a = b({
|
23
|
+
tag: "form-field-help",
|
24
|
+
parsedClasses: l,
|
25
|
+
rules: [{ regExp: /help|is/gm, replacer: "" }]
|
26
|
+
});
|
27
|
+
return /* @__PURE__ */ s(
|
28
|
+
"p",
|
29
|
+
{
|
30
|
+
"data-testid": a,
|
31
|
+
className: l,
|
32
|
+
children: e.text
|
33
|
+
}
|
34
|
+
);
|
35
|
+
}, B = ({
|
36
|
+
testId: e = null,
|
37
|
+
cssClasses: l = null,
|
38
|
+
style: a = null,
|
39
|
+
labelText: c = null,
|
40
|
+
inputControlConfig: r,
|
41
|
+
helperConfig: d = null,
|
42
|
+
isHorizontal: i = !1,
|
43
|
+
isGrouped: t = !1
|
44
|
+
}) => {
|
45
|
+
var F;
|
46
|
+
const y = N([
|
47
|
+
"field",
|
48
|
+
i ? "is-horizontal" : null,
|
49
|
+
t ? "is-grouped" : null,
|
50
|
+
l
|
51
|
+
]), h = e ?? b({ tag: "field", parsedClasses: y });
|
52
|
+
return !t && ((F = r == null ? void 0 : r.inputConfig) != null && F.color) && d && (d = {
|
53
|
+
...d,
|
54
|
+
color: r.inputConfig.color
|
55
|
+
}), /* @__PURE__ */ u(
|
56
|
+
"section",
|
57
|
+
{
|
58
|
+
"data-testid": h,
|
59
|
+
className: y,
|
60
|
+
style: a ?? void 0,
|
61
|
+
children: [
|
62
|
+
i ? /* @__PURE__ */ s("section", { className: "field-label", children: f(c) }) : f(c),
|
63
|
+
i ? /* @__PURE__ */ u("section", { className: "field-body", children: [
|
64
|
+
p(r, t),
|
65
|
+
I(d)
|
66
|
+
] }) : /* @__PURE__ */ u(A.Fragment, { children: [
|
67
|
+
p(r, t),
|
68
|
+
I(d)
|
69
|
+
] })
|
70
|
+
]
|
71
|
+
}
|
72
|
+
);
|
73
|
+
};
|
74
|
+
export {
|
75
|
+
B as default
|
76
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as FormField } from '.';
|
3
|
+
declare const _default: Meta<typeof FormField>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').FormFieldProps>;
|
6
|
+
export declare const WithLabel: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').FormFieldProps>;
|
7
|
+
export declare const WithLabelAndHelper: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').FormFieldProps>;
|
8
|
+
export declare const ErrorCase: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').FormFieldProps>;
|
9
|
+
export declare const GroupedInputs: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').FormFieldProps>;
|
10
|
+
export declare const ExpandedAndGroupedInputs: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').FormFieldProps>;
|
11
|
+
export declare const Horizontal: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').FormFieldProps>;
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { jsxs as h, jsx as i } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as m, parseTestId as f } from "../../../functions/parsers.js";
|
3
|
+
const n = (o, s, t, r) => s === "body" || r === "is-fullheight" ? /* @__PURE__ */ i(
|
4
|
+
"section",
|
5
|
+
{
|
6
|
+
"data-testid": `${t}-${s}`,
|
7
|
+
className: `hero-${s}`,
|
8
|
+
children: o
|
9
|
+
}
|
10
|
+
) : null, C = ({
|
11
|
+
testId: o = null,
|
12
|
+
cssClasses: s = null,
|
13
|
+
style: t = null,
|
14
|
+
header: r = null,
|
15
|
+
body: d,
|
16
|
+
footer: c = null,
|
17
|
+
color: u = null,
|
18
|
+
size: e = null
|
19
|
+
}) => {
|
20
|
+
const a = m(["hero", u, e, s]), l = o ?? f({ tag: "hero", parsedClasses: a });
|
21
|
+
return /* @__PURE__ */ h(
|
22
|
+
"section",
|
23
|
+
{
|
24
|
+
"data-testid": l,
|
25
|
+
className: a,
|
26
|
+
style: t ?? void 0,
|
27
|
+
children: [
|
28
|
+
n(r, "head", l, e),
|
29
|
+
n(d, "body", l, e),
|
30
|
+
n(c, "foot", l, e)
|
31
|
+
]
|
32
|
+
}
|
33
|
+
);
|
34
|
+
};
|
35
|
+
export {
|
36
|
+
C as default
|
37
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Hero } from '.';
|
3
|
+
declare const _default: Meta<typeof Hero>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').HeroProps>;
|
6
|
+
export declare const ExampleWithTitle: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').HeroProps>;
|
7
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').HeroProps>;
|
8
|
+
export declare const BigSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').HeroProps>;
|
9
|
+
export declare const FullSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').HeroProps>;
|
10
|
+
export declare const FixedFullSizeBody: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').HeroProps>;
|
11
|
+
export declare const FullSizeWithHeader: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').HeroProps>;
|
12
|
+
export declare const WithHeaderAndFooter: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').HeroProps>;
|
File without changes
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as v, parseTestId as p } from "../../../functions/parsers.js";
|
3
|
+
import { generateKey as d } from "../../../functions/generators.js";
|
4
|
+
import "react";
|
5
|
+
import f from "../../molecules/LevelItem/index.js";
|
6
|
+
const s = (l) => l.map((e) => /* @__PURE__ */ t(
|
7
|
+
f,
|
8
|
+
{
|
9
|
+
...e
|
10
|
+
},
|
11
|
+
`level-item-${d()}`
|
12
|
+
)), N = ({
|
13
|
+
testId: l = null,
|
14
|
+
cssClasses: e = null,
|
15
|
+
style: m = null,
|
16
|
+
leftSide: n = null,
|
17
|
+
centerSide: a = null,
|
18
|
+
rightSide: r = null,
|
19
|
+
isMobile: i = !1
|
20
|
+
}) => {
|
21
|
+
const o = v([
|
22
|
+
"level",
|
23
|
+
i ? "is-mobile" : null,
|
24
|
+
e
|
25
|
+
]), c = l ?? p({ tag: "level", parsedClasses: o });
|
26
|
+
return /* @__PURE__ */ u(
|
27
|
+
"nav",
|
28
|
+
{
|
29
|
+
"data-testid": c,
|
30
|
+
className: o,
|
31
|
+
style: m ?? void 0,
|
32
|
+
children: [
|
33
|
+
n ? /* @__PURE__ */ t("section", { className: "level-left", children: s(n) }) : null,
|
34
|
+
a ? s(a) : null,
|
35
|
+
r ? /* @__PURE__ */ t("section", { className: "level-right", children: s(r) }) : null
|
36
|
+
]
|
37
|
+
}
|
38
|
+
);
|
39
|
+
};
|
40
|
+
export {
|
41
|
+
N as default
|
42
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Level } from '.';
|
3
|
+
declare const _default: Meta<typeof Level>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').LevelProps>;
|
6
|
+
export declare const LeftSideExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').LevelProps>;
|
7
|
+
export declare const LeftAndCenter: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').LevelProps>;
|
8
|
+
export declare const BothSides: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').LevelProps>;
|
9
|
+
export declare const AllPossibleSides: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').LevelProps>;
|
File without changes
|