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,18 @@
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
const c = ({
|
3
|
+
testId: t = "test-block",
|
4
|
+
cssClasses: o = "block",
|
5
|
+
style: s = null,
|
6
|
+
children: l = null
|
7
|
+
}) => l ? /* @__PURE__ */ a(
|
8
|
+
"section",
|
9
|
+
{
|
10
|
+
"data-testid": t,
|
11
|
+
className: o,
|
12
|
+
style: s ?? void 0,
|
13
|
+
children: l
|
14
|
+
}
|
15
|
+
) : null;
|
16
|
+
export {
|
17
|
+
c as default
|
18
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Block } from '.';
|
3
|
+
declare const _default: Meta<typeof Block>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BlockProps>;
|
6
|
+
export declare const WithParagraph: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BlockProps>;
|
7
|
+
export declare const OneBlock: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BlockProps>;
|
8
|
+
export declare const SeveralBlocks: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BlockProps>;
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
const x = ({
|
3
|
+
testId: o = "test-box",
|
4
|
+
cssClasses: s = "box",
|
5
|
+
style: l = null,
|
6
|
+
children: t = null
|
7
|
+
}) => t ? /* @__PURE__ */ a(
|
8
|
+
"section",
|
9
|
+
{
|
10
|
+
"data-testid": o,
|
11
|
+
className: s,
|
12
|
+
style: l ?? void 0,
|
13
|
+
children: t
|
14
|
+
}
|
15
|
+
) : null;
|
16
|
+
export {
|
17
|
+
x as default
|
18
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Box } from '.';
|
3
|
+
declare const _default: Meta<typeof Box>;
|
4
|
+
export default _default;
|
5
|
+
export declare const NoChildren: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BoxProps>;
|
6
|
+
export declare const WithParagraphExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BoxProps>;
|
7
|
+
export declare const OneBox: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BoxProps>;
|
8
|
+
export declare const SeveralBoxes: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BoxProps>;
|
File without changes
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as r, parseTestId as s } from "../../../functions/parsers.js";
|
3
|
+
const f = ({
|
4
|
+
testId: l = null,
|
5
|
+
containerTestId: d = null,
|
6
|
+
cssClasses: n = null,
|
7
|
+
containerCssClasses: e = null,
|
8
|
+
style: m = null,
|
9
|
+
containerStyle: c = null,
|
10
|
+
text: u,
|
11
|
+
isActiveItem: i = null,
|
12
|
+
onClick: b = null
|
13
|
+
}) => {
|
14
|
+
const o = r([
|
15
|
+
"breadcrumb-item-container",
|
16
|
+
i ? "is-active" : null,
|
17
|
+
e
|
18
|
+
]), t = r(["breadcrumbItem", n]), I = d ?? s({
|
19
|
+
tag: "breadcrumb-item-container",
|
20
|
+
parsedClasses: e ?? ""
|
21
|
+
}), p = l ?? s({ tag: "breadcrumbItem", parsedClasses: t });
|
22
|
+
return /* @__PURE__ */ a(
|
23
|
+
"li",
|
24
|
+
{
|
25
|
+
"data-testid": I,
|
26
|
+
className: o,
|
27
|
+
style: c ?? void 0,
|
28
|
+
children: /* @__PURE__ */ a(
|
29
|
+
"a",
|
30
|
+
{
|
31
|
+
"data-testid": p,
|
32
|
+
className: t,
|
33
|
+
style: m ?? void 0,
|
34
|
+
"aria-hidden": "true",
|
35
|
+
onClick: b ?? void 0,
|
36
|
+
children: u
|
37
|
+
}
|
38
|
+
)
|
39
|
+
}
|
40
|
+
);
|
41
|
+
};
|
42
|
+
export {
|
43
|
+
f as default
|
44
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as BreadcrumbItem } from '.';
|
3
|
+
declare const _default: Meta<typeof BreadcrumbItem>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BreadcrumbItemProps>;
|
6
|
+
export declare const IsActiveItem: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BreadcrumbItemProps>;
|
File without changes
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { jsx as v } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as h, parseTestId as x } from "../../../functions/parsers.js";
|
3
|
+
const j = ({
|
4
|
+
testId: s = null,
|
5
|
+
cssClasses: t = null,
|
6
|
+
style: e = null,
|
7
|
+
type: n = "button",
|
8
|
+
text: a = null,
|
9
|
+
isDisabled: u = !1,
|
10
|
+
color: o = null,
|
11
|
+
isLightColor: i = !1,
|
12
|
+
isInvertedColor: d = !1,
|
13
|
+
isOutlined: r = !1,
|
14
|
+
isRounded: f = !1,
|
15
|
+
isLoading: c = !1,
|
16
|
+
isStatic: b = !1,
|
17
|
+
isSelected: p = !1,
|
18
|
+
size: m = null,
|
19
|
+
onClick: C = null
|
20
|
+
}) => {
|
21
|
+
const l = h([
|
22
|
+
"button",
|
23
|
+
o,
|
24
|
+
i ? "is-light" : null,
|
25
|
+
d ? "is-inverted" : null,
|
26
|
+
r ? "is-outlined" : null,
|
27
|
+
f ? "is-rounded" : null,
|
28
|
+
c ? "is-loading" : null,
|
29
|
+
b ? "is-static" : null,
|
30
|
+
p ? "is-selected" : null,
|
31
|
+
m,
|
32
|
+
t
|
33
|
+
]), g = s ?? x({ tag: "button", parsedClasses: l });
|
34
|
+
return /* @__PURE__ */ v(
|
35
|
+
"button",
|
36
|
+
{
|
37
|
+
"data-testid": g,
|
38
|
+
type: n,
|
39
|
+
className: l,
|
40
|
+
style: e ?? void 0,
|
41
|
+
disabled: u ?? !1,
|
42
|
+
onClick: C ?? void 0,
|
43
|
+
children: a
|
44
|
+
}
|
45
|
+
);
|
46
|
+
};
|
47
|
+
export {
|
48
|
+
j as default
|
49
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Button } from '.';
|
3
|
+
declare const _default: Meta<typeof Button>;
|
4
|
+
export default _default;
|
5
|
+
export declare const NoText: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
6
|
+
export declare const WithText: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
7
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
8
|
+
export declare const InvertedColor: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
9
|
+
export declare const OutlinedColor: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
10
|
+
export declare const Rounded: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
11
|
+
export declare const LoadingState: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
12
|
+
export declare const LargeSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
13
|
+
export declare const Disabled: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
14
|
+
export declare const Static: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
File without changes
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { jsxs as x, jsx as b } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as C, parseTestId as l } from "../../../functions/parsers.js";
|
3
|
+
const a = (s) => typeof s == "string" ? `-${s == null ? void 0 : s.toString()}` : s !== null ? "-with-component" : "", m = ({
|
4
|
+
testId: s = null,
|
5
|
+
containerTestId: r = null,
|
6
|
+
cssClasses: t = null,
|
7
|
+
containerCssClasses: o = null,
|
8
|
+
style: i = null,
|
9
|
+
containerStyle: n = null,
|
10
|
+
content: e = null,
|
11
|
+
isDisabled: d = null,
|
12
|
+
onChange: c = null
|
13
|
+
}) => {
|
14
|
+
const u = C([
|
15
|
+
"checkbox",
|
16
|
+
o
|
17
|
+
]), p = r ?? l({
|
18
|
+
tag: "checkbox-container",
|
19
|
+
parsedClasses: a(e)
|
20
|
+
}), h = s ?? l({
|
21
|
+
tag: "checkbox",
|
22
|
+
parsedClasses: a(e)
|
23
|
+
});
|
24
|
+
return /* @__PURE__ */ x(
|
25
|
+
"label",
|
26
|
+
{
|
27
|
+
"data-testid": p,
|
28
|
+
className: u,
|
29
|
+
style: n ?? void 0,
|
30
|
+
children: [
|
31
|
+
/* @__PURE__ */ b(
|
32
|
+
"input",
|
33
|
+
{
|
34
|
+
"data-testid": h,
|
35
|
+
type: "checkbox",
|
36
|
+
className: t ?? void 0,
|
37
|
+
style: i ?? void 0,
|
38
|
+
disabled: d ?? !1,
|
39
|
+
onChange: c ?? void 0
|
40
|
+
}
|
41
|
+
),
|
42
|
+
e
|
43
|
+
]
|
44
|
+
}
|
45
|
+
);
|
46
|
+
};
|
47
|
+
export {
|
48
|
+
m as default
|
49
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as CheckBox } from '.';
|
3
|
+
import { CheckBoxProps } from '../../../interfaces/atomProps';
|
4
|
+
declare const _default: Meta<typeof CheckBox>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CheckBoxProps>;
|
7
|
+
export declare const WithTextContent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CheckBoxProps>;
|
8
|
+
export declare const WithComponentContent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CheckBoxProps>;
|
9
|
+
export declare const Disabled: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CheckBoxProps>;
|
File without changes
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as c, parseTestId as d } from "../../../functions/parsers.js";
|
3
|
+
const f = ({
|
4
|
+
testId: s = null,
|
5
|
+
cssClasses: n = null,
|
6
|
+
style: e = null,
|
7
|
+
children: o = null,
|
8
|
+
size: t = null,
|
9
|
+
offset: a = null,
|
10
|
+
isNarrow: u = !1
|
11
|
+
}) => {
|
12
|
+
const l = c([
|
13
|
+
"column",
|
14
|
+
t,
|
15
|
+
a,
|
16
|
+
u ? "is-narrow" : null,
|
17
|
+
n
|
18
|
+
]), r = s ?? d({ tag: "column", parsedClasses: l });
|
19
|
+
return /* @__PURE__ */ m(
|
20
|
+
"section",
|
21
|
+
{
|
22
|
+
"data-testid": r,
|
23
|
+
className: l,
|
24
|
+
style: e ?? void 0,
|
25
|
+
children: o
|
26
|
+
}
|
27
|
+
);
|
28
|
+
};
|
29
|
+
export {
|
30
|
+
f as default
|
31
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Column } from '.';
|
3
|
+
declare const _default: Meta<typeof Column>;
|
4
|
+
export default _default;
|
5
|
+
export declare const NoChildren: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ColumnProps>;
|
6
|
+
export declare const WithParagraphExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ColumnProps>;
|
7
|
+
export declare const WithLargeParagraphExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ColumnProps>;
|
8
|
+
export declare const WithButtonExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ColumnProps>;
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as r, parseTestId as u } from "../../../functions/parsers.js";
|
3
|
+
const c = ({
|
4
|
+
testId: s = null,
|
5
|
+
cssClasses: l = null,
|
6
|
+
style: t = null,
|
7
|
+
size: a = null,
|
8
|
+
onClick: d = null
|
9
|
+
}) => {
|
10
|
+
const e = r(["delete", a, l]), o = s ?? u({
|
11
|
+
tag: "delete",
|
12
|
+
parsedClasses: e
|
13
|
+
});
|
14
|
+
return /* @__PURE__ */ n(
|
15
|
+
"button",
|
16
|
+
{
|
17
|
+
"data-testid": o,
|
18
|
+
className: e,
|
19
|
+
style: t ?? void 0,
|
20
|
+
onClick: d ?? void 0
|
21
|
+
}
|
22
|
+
);
|
23
|
+
};
|
24
|
+
export {
|
25
|
+
c as default
|
26
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Delete } from '.';
|
3
|
+
declare const _default: Meta<typeof Delete>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').DeleteProps>;
|
6
|
+
export declare const WithBigSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').DeleteProps>;
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as p, parseTestId as u } from "../../../functions/parsers.js";
|
3
|
+
const w = ({
|
4
|
+
testId: o = null,
|
5
|
+
cssClasses: t = null,
|
6
|
+
style: a = null,
|
7
|
+
itemText: i,
|
8
|
+
type: e = "item",
|
9
|
+
isActiveItem: c = !1,
|
10
|
+
onClick: m = null
|
11
|
+
}) => {
|
12
|
+
const r = e === "divider", l = r ? "dropdown-divider" : "dropdown-item", n = p([
|
13
|
+
l,
|
14
|
+
c && !r ? "is-active" : null,
|
15
|
+
t
|
16
|
+
]), d = {
|
17
|
+
"data-testid": o ?? u({
|
18
|
+
tag: l,
|
19
|
+
parsedClasses: `${n}-${e}`
|
20
|
+
}),
|
21
|
+
className: n,
|
22
|
+
style: a ?? void 0,
|
23
|
+
onClick: m ?? void 0
|
24
|
+
};
|
25
|
+
switch (e) {
|
26
|
+
case "item":
|
27
|
+
return /* @__PURE__ */ s("div", { ...d, children: /* @__PURE__ */ s("p", { children: i }) });
|
28
|
+
case "divider":
|
29
|
+
return /* @__PURE__ */ s("hr", { ...d });
|
30
|
+
case "link":
|
31
|
+
default:
|
32
|
+
return /* @__PURE__ */ s("a", { ...d, children: i });
|
33
|
+
}
|
34
|
+
};
|
35
|
+
export {
|
36
|
+
w as default
|
37
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as DropdownItem } from '.';
|
3
|
+
declare const _default: Meta<typeof DropdownItem>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').DropdownItemProps>;
|
File without changes
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as n, parseTestId as o } from "../../../functions/parsers.js";
|
3
|
+
const v = ({
|
4
|
+
testId: a = null,
|
5
|
+
containerTestId: d = null,
|
6
|
+
cssClasses: t = null,
|
7
|
+
containerCssClasses: l = null,
|
8
|
+
style: i = null,
|
9
|
+
containerStyle: p = null,
|
10
|
+
menuText: c,
|
11
|
+
dropdownPointer: g = "dropdown-menu",
|
12
|
+
onClick: u = null
|
13
|
+
}) => {
|
14
|
+
const r = n([
|
15
|
+
"dropdown-trigger",
|
16
|
+
l
|
17
|
+
]), m = d ?? o({
|
18
|
+
tag: "dropdown-trigger",
|
19
|
+
parsedClasses: r
|
20
|
+
}), e = n(["button", t]), w = a ?? o({ tag: "button", parsedClasses: e });
|
21
|
+
return /* @__PURE__ */ s(
|
22
|
+
"section",
|
23
|
+
{
|
24
|
+
"data-testid": m,
|
25
|
+
className: r,
|
26
|
+
style: p ?? void 0,
|
27
|
+
children: /* @__PURE__ */ C(
|
28
|
+
"button",
|
29
|
+
{
|
30
|
+
"data-testid": w,
|
31
|
+
className: e,
|
32
|
+
style: i ?? void 0,
|
33
|
+
"aria-haspopup": "true",
|
34
|
+
"aria-controls": g,
|
35
|
+
onClick: u ?? void 0,
|
36
|
+
children: [
|
37
|
+
/* @__PURE__ */ s("span", { children: c }),
|
38
|
+
/* @__PURE__ */ s("span", { className: "icon is-small", children: /* @__PURE__ */ s(
|
39
|
+
"i",
|
40
|
+
{
|
41
|
+
className: "mdi mdi-chevron-down",
|
42
|
+
"aria-hidden": "true"
|
43
|
+
}
|
44
|
+
) })
|
45
|
+
]
|
46
|
+
}
|
47
|
+
)
|
48
|
+
}
|
49
|
+
);
|
50
|
+
};
|
51
|
+
export {
|
52
|
+
v as default
|
53
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as DropdownTrigger } from '.';
|
3
|
+
declare const _default: Meta<typeof DropdownTrigger>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').DropdownTriggerProps>;
|
File without changes
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { jsx as l, jsxs as i } from "react/jsx-runtime";
|
2
|
+
import N from "../Icon/index.js";
|
3
|
+
import { parseClasses as v, parseTestId as y } from "../../../functions/parsers.js";
|
4
|
+
const k = ({
|
5
|
+
testId: t = null,
|
6
|
+
containerTestId: r = null,
|
7
|
+
cssClasses: u = null,
|
8
|
+
containerCssClasses: o = null,
|
9
|
+
style: c = null,
|
10
|
+
containerStyle: f = null,
|
11
|
+
fileName: e = null,
|
12
|
+
uploadIcon: s = { iconLabel: "upload" },
|
13
|
+
uploadText: p = "Choose a file…",
|
14
|
+
buttonOnRight: d = !1,
|
15
|
+
isFullWidth: m = !1,
|
16
|
+
isBoxed: h = !1,
|
17
|
+
color: C = null,
|
18
|
+
size: g = null,
|
19
|
+
onClick: x = null
|
20
|
+
}) => {
|
21
|
+
const a = v([
|
22
|
+
"file",
|
23
|
+
e ? "has-name" : null,
|
24
|
+
d ? "is-right" : null,
|
25
|
+
m ? "is-fullwidth" : null,
|
26
|
+
h ? "is-boxed" : null,
|
27
|
+
C,
|
28
|
+
g,
|
29
|
+
o
|
30
|
+
]), n = r ?? y({
|
31
|
+
tag: "file",
|
32
|
+
parsedClasses: a,
|
33
|
+
rules: [
|
34
|
+
{
|
35
|
+
regExp: /has/gm,
|
36
|
+
replacer: "-has"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
regExp: /is|file/gm,
|
40
|
+
replacer: ""
|
41
|
+
}
|
42
|
+
]
|
43
|
+
}), b = u ?? "file-input", I = t ?? `${n}-input`;
|
44
|
+
return /* @__PURE__ */ l(
|
45
|
+
"section",
|
46
|
+
{
|
47
|
+
"data-testid": n,
|
48
|
+
className: a,
|
49
|
+
style: f ?? void 0,
|
50
|
+
children: /* @__PURE__ */ i("label", { className: "file-label", children: [
|
51
|
+
/* @__PURE__ */ l(
|
52
|
+
"input",
|
53
|
+
{
|
54
|
+
"data-testid": I,
|
55
|
+
type: "file",
|
56
|
+
name: "resume",
|
57
|
+
className: b,
|
58
|
+
style: c ?? void 0,
|
59
|
+
onClick: x ?? void 0
|
60
|
+
}
|
61
|
+
),
|
62
|
+
/* @__PURE__ */ i("span", { className: "file-cta", children: [
|
63
|
+
s ? /* @__PURE__ */ l(N, { ...s }) : null,
|
64
|
+
/* @__PURE__ */ l("span", { className: "file-label", children: p })
|
65
|
+
] }),
|
66
|
+
e ? /* @__PURE__ */ l("span", { className: "file-name", children: e }) : null
|
67
|
+
] })
|
68
|
+
}
|
69
|
+
);
|
70
|
+
};
|
71
|
+
export {
|
72
|
+
k as default
|
73
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as File } from '.';
|
3
|
+
import { FileProps } from '../../../interfaces/atomProps';
|
4
|
+
declare const _default: Meta<typeof File>;
|
5
|
+
export default _default;
|
6
|
+
export declare const OnlyRequiredProps: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, FileProps>;
|
7
|
+
export declare const DifferentIcon: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, FileProps>;
|
8
|
+
export declare const DifferentText: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, FileProps>;
|
9
|
+
export declare const WithFileName: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, FileProps>;
|
10
|
+
export declare const ColoredButton: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, FileProps>;
|
11
|
+
export declare const FullWidthMode: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, FileProps>;
|
12
|
+
export declare const BoxedMode: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, FileProps>;
|
13
|
+
export declare const LargeSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, FileProps>;
|
File without changes
|