@soyfri/shared-library 2.0.0-beta.16 → 2.0.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +8 -0
- package/.github/workflows/publish.yml +107 -0
- package/.prettierrc +3 -0
- package/.storybook/main.ts +19 -0
- package/.storybook/preview.ts +14 -0
- package/.storybook/vitest.setup.ts +9 -0
- package/Dockerfile +37 -0
- package/build.js +117 -0
- package/chromatic.config.json +5 -0
- package/cleanDirectories.js +40 -0
- package/{Autocomplete-4i0dNDKr.cjs → dist/Autocomplete-DBWWcKQO.cjs} +5 -4
- package/dist/Autocomplete-DBWWcKQO.cjs.map +1 -0
- package/{Autocomplete-i3-V38n1.js → dist/Autocomplete-QTPCObBL.js} +5 -4
- package/dist/Autocomplete-QTPCObBL.js.map +1 -0
- package/{DatePicker-CtCFqXDw.cjs → dist/DatePicker-CUHUAzW4.cjs} +5 -4
- package/dist/DatePicker-CUHUAzW4.cjs.map +1 -0
- package/{DatePicker-D0Bz9Ryg.js → dist/DatePicker-kWjQEXIQ.js} +5 -4
- package/dist/DatePicker-kWjQEXIQ.js.map +1 -0
- package/{DateTimePicker-CTnRQCZo.cjs → dist/DateTimePicker-AVmtL4vS.cjs} +5 -4
- package/dist/DateTimePicker-AVmtL4vS.cjs.map +1 -0
- package/{DateTimePicker-77w-9TP5.js → dist/DateTimePicker-BO76eZ0P.js} +5 -4
- package/dist/DateTimePicker-BO76eZ0P.js.map +1 -0
- package/{Input-jYapjJYM.cjs → dist/Input-5VGBxiO2.cjs} +5 -4
- package/dist/Input-5VGBxiO2.cjs.map +1 -0
- package/{Input-rVVhI_wk.js → dist/Input-BVaetLBc.js} +5 -4
- package/dist/Input-BVaetLBc.js.map +1 -0
- package/dist/README.md +243 -0
- package/{Select-bSVQokFX.js → dist/Select-8fFMOx-I.js} +4 -4
- package/dist/Select-8fFMOx-I.js.map +1 -0
- package/{Select-B6jE3WH_.cjs → dist/Select-DyWV0aL9.cjs} +4 -4
- package/dist/Select-DyWV0aL9.cjs.map +1 -0
- package/{components → dist/components}/Autocomplete/Autocomplete.cjs +1 -1
- package/{components → dist/components}/Autocomplete/Autocomplete.js +1 -1
- package/{components → dist/components}/Autocomplete/Autocomplete.sx.d.ts +1 -1
- package/{components → dist/components}/DatePicker/DatePicker.cjs +1 -1
- package/{components → dist/components}/DatePicker/DatePicker.js +1 -1
- package/{components → dist/components}/DatePicker/DatePicker.sx.d.ts +1 -1
- package/{components → dist/components}/DateTimePicker/DateTimePicker.cjs +1 -1
- package/{components → dist/components}/DateTimePicker/DateTimePicker.js +1 -1
- package/{components → dist/components}/DateTimePicker/DateTimePicker.sx.d.ts +1 -1
- package/{components → dist/components}/Input/Input.cjs +1 -1
- package/{components → dist/components}/Input/Input.js +1 -1
- package/{components → dist/components}/Input/Input.sx.d.ts +1 -1
- package/{components → dist/components}/Select/Select.cjs +1 -1
- package/{components → dist/components}/Select/Select.js +1 -1
- package/{components → dist/components}/Select/Select.sx.d.ts +1 -1
- package/{components → dist/components}/_shared/formField.sx.d.ts +11 -1
- package/{formField.sx-8_QRnKxv.js → dist/formField.sx-Cmhj9iGb.js} +15 -15
- package/dist/formField.sx-Cmhj9iGb.js.map +1 -0
- package/{formField.sx-BAX7KwMR.cjs → dist/formField.sx-V9PLO0wv.cjs} +15 -15
- package/dist/formField.sx-V9PLO0wv.cjs.map +1 -0
- package/{index.cjs → dist/index.cjs} +5 -7
- package/{index.cjs.map → dist/index.cjs.map} +1 -1
- package/{index.d.ts → dist/index.d.ts} +0 -1
- package/{index.js → dist/index.js} +6 -8
- package/{index.js.map → dist/index.js.map} +1 -1
- package/dist/package.json +190 -0
- package/package.json +57 -171
- package/rollup.config.cjs +87 -0
- package/scripts/gen-dist-pkg.mjs +15 -0
- package/shared-library-comercios-MUI.code-workspace +10 -0
- package/src/components/ActionMenu/ActionMenu.stories.tsx +427 -0
- package/src/components/ActionMenu/ActionMenu.tsx +153 -0
- package/src/components/ActionMenu/index.ts +2 -0
- package/src/components/AppBar/AppBar.stories.tsx +316 -0
- package/src/components/AppBar/AppBar.sx.ts +32 -0
- package/src/components/AppBar/AppBar.tsx +119 -0
- package/src/components/AppBar/AppBarContext.ts +25 -0
- package/src/components/AppBar/AppBarMenuToggle.tsx +90 -0
- package/src/components/AppBar/index.ts +12 -0
- package/src/components/Autocomplete/Autocomplete.definitions.ts +477 -0
- package/src/components/Autocomplete/Autocomplete.helpers.ts +80 -0
- package/src/components/Autocomplete/Autocomplete.stories.tsx +784 -0
- package/src/components/Autocomplete/Autocomplete.sx.ts +32 -0
- package/src/components/Autocomplete/Autocomplete.tsx +394 -0
- package/src/components/Autocomplete/_parts/AutocompleteChips.tsx +55 -0
- package/src/components/Autocomplete/_parts/AutocompleteLoader.tsx +17 -0
- package/src/components/Autocomplete/_parts/AutocompleteOption.tsx +29 -0
- package/src/components/Autocomplete/index.ts +12 -0
- package/src/components/Avatar/Avatar.definitions.ts +162 -0
- package/src/components/Avatar/Avatar.stories.tsx +258 -0
- package/src/components/Avatar/Avatar.tsx +206 -0
- package/src/components/Avatar/index.ts +2 -0
- package/src/components/Button/Button.definition.ts +97 -0
- package/src/components/Button/Button.stories.tsx +285 -0
- package/src/components/Button/Button.tsx +66 -0
- package/src/components/Button/index.ts +2 -0
- package/src/components/Card/Card.definition.ts +5 -0
- package/src/components/Card/Card.stories.tsx +102 -0
- package/src/components/Card/Card.sx.ts +58 -0
- package/src/components/Card/Card.tsx +85 -0
- package/src/components/Card/index.ts +4 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +212 -0
- package/src/components/Checkbox/Checkbox.sx.ts +67 -0
- package/src/components/Checkbox/Checkbox.tsx +208 -0
- package/src/components/Checkbox/index.ts +10 -0
- package/src/components/Chip/Chip.definitions.ts +167 -0
- package/src/components/Chip/Chip.stories.tsx +265 -0
- package/src/components/Chip/Chip.tsx +61 -0
- package/src/components/Chip/index.ts +2 -0
- package/src/components/Column/Column.tsx +29 -0
- package/src/components/Column/index.ts +2 -0
- package/src/components/DatePicker/DatePicker.definitions.ts +228 -0
- package/src/components/DatePicker/DatePicker.helpers.ts +24 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +309 -0
- package/src/components/DatePicker/DatePicker.sx.ts +35 -0
- package/src/components/DatePicker/DatePicker.tsx +134 -0
- package/src/components/DatePicker/index.ts +7 -0
- package/src/components/DateTimePicker/DateTimePicker.definitions.ts +317 -0
- package/src/components/DateTimePicker/DateTimePicker.helpers.ts +45 -0
- package/src/components/DateTimePicker/DateTimePicker.stories.tsx +415 -0
- package/src/components/DateTimePicker/DateTimePicker.sx.ts +32 -0
- package/src/components/DateTimePicker/DateTimePicker.tsx +241 -0
- package/src/components/DateTimePicker/index.ts +9 -0
- package/src/components/Drawer/Drawer.stories.tsx +438 -0
- package/src/components/Drawer/Drawer.sx.ts +106 -0
- package/src/components/Drawer/Drawer.tsx +224 -0
- package/src/components/Drawer/DrawerContext.ts +26 -0
- package/src/components/Drawer/DrawerItem.tsx +120 -0
- package/src/components/Drawer/index.ts +10 -0
- package/src/components/Flyout/Flyout.stories.tsx +282 -0
- package/src/components/Flyout/Flyout.tsx +122 -0
- package/src/components/Flyout/index.ts +1 -0
- package/src/components/Gallery/Gallery.definition.tsx +37 -0
- package/src/components/Gallery/Gallery.stories.tsx +82 -0
- package/src/components/Gallery/Gallery.tsx +158 -0
- package/src/components/Gallery/GalleryLightbox.tsx +186 -0
- package/src/components/Gallery/GalleryMain.tsx +87 -0
- package/src/components/Gallery/GalleryThumbnails.tsx +122 -0
- package/src/components/Gallery/index.ts +2 -0
- package/src/components/Icon/Icon.stories.tsx +121 -0
- package/src/components/Icon/Icon.tsx +163 -0
- package/src/components/Icon/index.ts +2 -0
- package/src/components/Input/Input.definitions.ts +348 -0
- package/src/components/Input/Input.helpers.ts +50 -0
- package/src/components/Input/Input.stories.tsx +528 -0
- package/src/components/Input/Input.sx.ts +44 -0
- package/src/components/Input/Input.tsx +163 -0
- package/src/components/Input/index.ts +10 -0
- package/src/components/InputGroup/InputGroup.definitions.ts +158 -0
- package/src/components/InputGroup/InputGroup.stories.tsx +267 -0
- package/src/components/InputGroup/InputGroup.tsx +180 -0
- package/src/components/InputGroup/index.ts +2 -0
- package/src/components/MenuButton/MenuButton.stories.tsx +197 -0
- package/src/components/MenuButton/MenuButton.tsx +100 -0
- package/src/components/MenuButton/index.ts +1 -0
- package/src/components/Modal/Modal.stories.tsx +721 -0
- package/src/components/Modal/Modal.tsx +407 -0
- package/src/components/Modal/ModalBody.tsx +23 -0
- package/src/components/Modal/ModalFooter.tsx +83 -0
- package/src/components/Modal/ModalHeader.tsx +33 -0
- package/src/components/Modal/index.ts +11 -0
- package/src/components/RadioGroup/RadioGroup.definitions.ts +177 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +231 -0
- package/src/components/RadioGroup/RadioGroup.sx.ts +75 -0
- package/src/components/RadioGroup/RadioGroup.tsx +207 -0
- package/src/components/RadioGroup/index.ts +10 -0
- package/src/components/Select/Select.helpers.ts +31 -0
- package/src/components/Select/Select.stories.tsx +393 -0
- package/src/components/Select/Select.sx.ts +15 -0
- package/src/components/Select/Select.tsx +328 -0
- package/src/components/Select/_parts/SelectMenuItem.tsx +40 -0
- package/src/components/Select/_parts/SelectValue.tsx +95 -0
- package/src/components/Select/index.ts +12 -0
- package/src/components/Stat/Stat.stories.tsx +85 -0
- package/src/components/Stat/Stat.tsx +117 -0
- package/src/components/Stat/index.ts +2 -0
- package/src/components/StatusMessage/StatusMessage.stories.tsx +159 -0
- package/src/components/StatusMessage/StatusMessage.tsx +143 -0
- package/src/components/StatusMessage/index.ts +3 -0
- package/src/components/Stepper/Step.tsx +21 -0
- package/src/components/Stepper/Stepper.definition.ts +75 -0
- package/src/components/Stepper/Stepper.stories.tsx +194 -0
- package/src/components/Stepper/Stepper.tsx +194 -0
- package/src/components/Stepper/StepperContext.tsx +176 -0
- package/src/components/Stepper/StepperProvider.stories.tsx +286 -0
- package/src/components/Stepper/_hooks/useHorizontalScroll.ts +56 -0
- package/src/components/Stepper/_parts/StepperScrollArrow.tsx +50 -0
- package/src/components/Stepper/index.ts +15 -0
- package/src/components/Switch/Switch.definitions.ts +134 -0
- package/src/components/Switch/Switch.stories.tsx +213 -0
- package/src/components/Switch/Switch.sx.ts +81 -0
- package/src/components/Switch/Switch.tsx +188 -0
- package/src/components/Switch/Switch.types.ts +10 -0
- package/src/components/Switch/index.ts +9 -0
- package/src/components/Table/EmptyTable.png +0 -0
- package/src/components/Table/Table.definition.ts +580 -0
- package/src/components/Table/Table.stories.tsx +853 -0
- package/src/components/Table/Table.tsx +494 -0
- package/src/components/Table/data.ts +134 -0
- package/src/components/Table/exportsUtils.ts +195 -0
- package/src/components/Table/index.ts +3 -0
- package/src/components/Table/types.ts +34 -0
- package/src/components/Tabs/Tab.definition.ts +53 -0
- package/src/components/Tabs/Tab.tsx +19 -0
- package/src/components/Tabs/Tabs.stories.tsx +118 -0
- package/src/components/Tabs/Tabs.tsx +163 -0
- package/src/components/Tabs/_tabUtils.tsx +4 -0
- package/src/components/Tabs/index.ts +5 -0
- package/src/components/Timeline/Timeline.definition.ts +43 -0
- package/src/components/Timeline/Timeline.stories.tsx +108 -0
- package/src/components/Timeline/Timeline.tsx +44 -0
- package/src/components/Timeline/TimelineItem.tsx +31 -0
- package/src/components/Timeline/index.ts +5 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +129 -0
- package/src/components/Tooltip/Tooltip.tsx +58 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/_shared/formField.sx.ts +134 -0
- package/src/components/_shared/mergeSx.ts +16 -0
- package/src/components/_shared/resolvePreset.ts +38 -0
- package/src/hooks/ClipBoard/ClipBoard.stories.tsx +168 -0
- package/src/hooks/ClipBoard/ClipBoard.tsx +131 -0
- package/src/hooks/ClipBoard/ClipboardUnifiedDemo.tsx +111 -0
- package/src/hooks/ClipBoard/index.ts +1 -0
- package/src/index.ts +51 -0
- package/src/mui.ts +57 -0
- package/src/styles.css +3 -0
- package/src/theme/componentStyles.ts +50 -0
- package/src/theme/tokens.ts +43 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/scrollToTop.ts +36 -0
- package/storybook-static/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
- package/storybook-static/assets/AccountCircle-BDZFsbTw.js +1 -0
- package/storybook-static/assets/ActionMenu-EynP8yU1.js +19 -0
- package/storybook-static/assets/ActionMenu.stories-DqSqRGix.js +185 -0
- package/storybook-static/assets/Alert-3zvTPc0p.js +1 -0
- package/storybook-static/assets/AppBar.stories-DcX3M5th.js +172 -0
- package/storybook-static/assets/Autocomplete.stories-CXJm8FOT.js +788 -0
- package/storybook-static/assets/Avatar-NbFfkZws.js +1 -0
- package/storybook-static/assets/Avatar.stories-CwOYCzqU.js +390 -0
- package/storybook-static/assets/Box-BnhEcfFm.js +1 -0
- package/storybook-static/assets/Button-D9h7OggD.js +1 -0
- package/storybook-static/assets/Button-DBpqmVB_.js +1 -0
- package/storybook-static/assets/Button.stories-F20dmnjq.js +320 -0
- package/storybook-static/assets/ButtonBase-qyaMEhe4.js +74 -0
- package/storybook-static/assets/Card.stories-B3NpAhO0.js +154 -0
- package/storybook-static/assets/CheckCircleOutline-CEj5mDsl.js +1 -0
- package/storybook-static/assets/Chip-C3vKPpzR.js +1 -0
- package/storybook-static/assets/Chip.stories-sxcfHVo9.js +333 -0
- package/storybook-static/assets/CircularProgress-DC7ZNWwl.js +28 -0
- package/storybook-static/assets/Clear-4kYcKvT3.js +1 -0
- package/storybook-static/assets/ClipBoard-DvLBdNHe.js +1 -0
- package/storybook-static/assets/ClipBoard.stories-BGUo47r6.js +108 -0
- package/storybook-static/assets/Close-CgHeRgmh.js +1 -0
- package/storybook-static/assets/Close-Cy8nELYU.js +1 -0
- package/storybook-static/assets/Color-AVL7NMMY-BJKvwERm.js +1 -0
- package/storybook-static/assets/ContentCopy-BfLTDb10.js +1 -0
- package/storybook-static/assets/DatePicker-Clkpr-Ku.js +1 -0
- package/storybook-static/assets/DatePicker.stories-EaUCMkh3.js +444 -0
- package/storybook-static/assets/DateRangePicker.stories-BMlkj-8K.js +390 -0
- package/storybook-static/assets/DateTimePicker.stories-B6gdzKq5.js +555 -0
- package/storybook-static/assets/DefaultPropsProvider-BGoQxtDa.js +16 -0
- package/storybook-static/assets/Delete-D2SMMmIA.js +1 -0
- package/storybook-static/assets/DialogContent-BeCDKgax.js +1 -0
- package/storybook-static/assets/Divider-BbCj9wT4.js +1 -0
- package/storybook-static/assets/DocsRenderer-PQXLIZUC-BebLK5Y_.js +1243 -0
- package/storybook-static/assets/Drawer-DcFwy73r.js +1 -0
- package/storybook-static/assets/Drawer.stories-C5AZkJBk.js +173 -0
- package/storybook-static/assets/EmptyTable-B-RKtgVs.png +0 -0
- package/storybook-static/assets/ErrorOutline-D9gM7ART.js +1 -0
- package/storybook-static/assets/Fade-Ll96CvH8.js +1 -0
- package/storybook-static/assets/Flyout.stories-Cf7z6MNw.js +163 -0
- package/storybook-static/assets/Gallery.stories-DdpWVTF6.js +127 -0
- package/storybook-static/assets/Grow-8y4FglGK.js +1 -0
- package/storybook-static/assets/Home-BRvJEp2L.js +1 -0
- package/storybook-static/assets/Icon.stories-D0mUiW_t.js +78 -0
- package/storybook-static/assets/IconButton-9OYSTH58.js +1 -0
- package/storybook-static/assets/Input-CjX0t4h-.js +1 -0
- package/storybook-static/assets/Input.stories-BRxekliy.js +650 -0
- package/storybook-static/assets/InputGroup.stories-DH6gUfmn.js +306 -0
- package/storybook-static/assets/KeyboardArrowRight-WO_attK2.js +1 -0
- package/storybook-static/assets/KeyboardArrowUp-DsyVef-i.js +1 -0
- package/storybook-static/assets/ListItem-D3O0103N.js +1 -0
- package/storybook-static/assets/ListItemIcon-hca6xN79.js +1 -0
- package/storybook-static/assets/ListItemText-BFLAwLdl.js +1 -0
- package/storybook-static/assets/Logout-gj-P3AfU.js +1 -0
- package/storybook-static/assets/Menu-ClzfjLc3.js +1 -0
- package/storybook-static/assets/MenuButton.stories-B-W_QVDt.js +162 -0
- package/storybook-static/assets/MenuItem-iU6tAqJI.js +1 -0
- package/storybook-static/assets/Modal-3okp9H2i.js +1 -0
- package/storybook-static/assets/Modal.stories-DIWzm4qR.js +468 -0
- package/storybook-static/assets/MoreVert-BoIVG4gh.js +1 -0
- package/storybook-static/assets/Notifications-DY_A-Sho.js +1 -0
- package/storybook-static/assets/PageLoader.stories-DmtO1mlm.js +158 -0
- package/storybook-static/assets/Paper-SwQBhqI7.js +1 -0
- package/storybook-static/assets/Person-CkQl-mpq.js +1 -0
- package/storybook-static/assets/PickersModalDialog-Tjnr_cu5.js +10 -0
- package/storybook-static/assets/PickersToolbarButton-Tt185-si.js +1 -0
- package/storybook-static/assets/Popper-CnCTYXxy.js +1 -0
- package/storybook-static/assets/Portal-Cj8XF9Lf.js +1 -0
- package/storybook-static/assets/ScrollTopButton.stories-BflQCwNP.js +90 -0
- package/storybook-static/assets/Select-CjcuMAY0.js +4 -0
- package/storybook-static/assets/Select-DJh2biEb.js +3 -0
- package/storybook-static/assets/Select.stories-DU1Gb3I2.js +1103 -0
- package/storybook-static/assets/Settings-BLKc1CnO.js +1 -0
- package/storybook-static/assets/Snackbar-BtVeKTw6.js +1 -0
- package/storybook-static/assets/Stack-D01OUIXi.js +1 -0
- package/storybook-static/assets/Stat.stories-Bn9-iuPT.js +60 -0
- package/storybook-static/assets/StatusMessage.stories-hnfX8FeU.js +73 -0
- package/storybook-static/assets/Stepper-BtKB5ykn.js +2 -0
- package/storybook-static/assets/Stepper.stories-CTEZbgPc.js +165 -0
- package/storybook-static/assets/Table.stories-CTn2Ktmn.js +1260 -0
- package/storybook-static/assets/TableContainer-CzLNaEU-.js +1 -0
- package/storybook-static/assets/TableRow-CS88-1HF.js +2 -0
- package/storybook-static/assets/Tabs-DLpDOu_n.js +1 -0
- package/storybook-static/assets/Tabs.stories-BFVuFy_5.js +159 -0
- package/storybook-static/assets/TextField-22T-xHBm.js +1 -0
- package/storybook-static/assets/Timeline.stories-DJU_U2Hv.js +97 -0
- package/storybook-static/assets/Tooltip-DbnHUxNj.js +1 -0
- package/storybook-static/assets/Tooltip.stories-B7tA3dnV.js +66 -0
- package/storybook-static/assets/Typography-BgntX2Ep.js +1 -0
- package/storybook-static/assets/Wizard.stories-CVrJLK_D.js +23 -0
- package/storybook-static/assets/createSimplePaletteValueFilter-bm0fmN_7.js +1 -0
- package/storybook-static/assets/createSvgIcon-D_Gca4vA.js +1 -0
- package/storybook-static/assets/debounce-Be36O1Ab.js +1 -0
- package/storybook-static/assets/emotion-react.browser.esm--g-C9cX9.js +8 -0
- package/storybook-static/assets/extendSxProp-CEpa30hT.js +1 -0
- package/storybook-static/assets/formField.sx-DMCmZIAa.js +1 -0
- package/storybook-static/assets/getReactElementRef-BQ3ANZdy.js +1 -0
- package/storybook-static/assets/iframe-BAJnc_4n.js +1079 -0
- package/storybook-static/assets/index-B1tlhOpe.js +240 -0
- package/storybook-static/assets/index-BF3FAXTk.js +9 -0
- package/storybook-static/assets/index-CIeucmOB.js +2 -0
- package/storybook-static/assets/index-CY7j4a7o.js +1 -0
- package/storybook-static/assets/index-CxkKctw5.js +1 -0
- package/storybook-static/assets/isFocusVisible-B8k4qzLc.js +1 -0
- package/storybook-static/assets/isMuiElement-CTZSFcY5.js +1 -0
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
- package/storybook-static/assets/listItemTextClasses-CC_rwJam.js +1 -0
- package/storybook-static/assets/mergeSlotProps-B0UBKBMe.js +1 -0
- package/storybook-static/assets/ownerDocument-DW-IO8s5.js +1 -0
- package/storybook-static/assets/ownerWindow-HkKU3E4x.js +1 -0
- package/storybook-static/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/storybook-static/assets/react-18-BUJ64QCV.js +25 -0
- package/storybook-static/assets/resolvePreset-CN2aOJJr.js +1 -0
- package/storybook-static/assets/useControlled-DsVh1a5j.js +1 -0
- package/storybook-static/assets/useForkRef-0ANIrxcF.js +1 -0
- package/storybook-static/assets/useId-b4fZxjOL.js +1 -0
- package/storybook-static/assets/useMobilePicker-DK-c8xbD.js +1 -0
- package/storybook-static/assets/usePreviousProps-WR0rG4aR.js +1 -0
- package/storybook-static/assets/useSlot-b6pXgp5_.js +1 -0
- package/storybook-static/assets/useSlotProps-C0uMfuBt.js +1 -0
- package/storybook-static/assets/useTheme-BmOJK7ra.js +1 -0
- package/storybook-static/assets/useThemeProps-DYtxXiUU.js +1 -0
- package/storybook-static/assets/useThemeProps-U4yXiZ_5.js +1 -0
- package/storybook-static/assets/useTimeout-DNjRaOWc.js +1 -0
- package/storybook-static/assets/visuallyHidden-Dan1xhjv.js +1 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +686 -0
- package/storybook-static/index.html +160 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-2/manager-bundle.js +356 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-2/manager-bundle.js.LEGAL.txt +40 -0
- package/storybook-static/sb-addons/docs-4/manager-bundle.js +151 -0
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +127 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
- package/storybook-static/sb-addons/vitest-3/manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +797 -0
- package/storybook-static/sb-manager/globals-runtime.js +69679 -0
- package/storybook-static/sb-manager/globals.js +34 -0
- package/storybook-static/sb-manager/runtime.js +13195 -0
- package/storybook-static/vite-inject-mocker-entry.js +18 -0
- package/tailwind.config.js +10 -0
- package/tsconfig.json +48 -0
- package/tsup.config.js +41 -0
- package/vite.config.js +132 -0
- package/vitest.config.ts +35 -0
- package/Autocomplete-4i0dNDKr.cjs.map +0 -1
- package/Autocomplete-i3-V38n1.js.map +0 -1
- package/DatePicker-CtCFqXDw.cjs.map +0 -1
- package/DatePicker-D0Bz9Ryg.js.map +0 -1
- package/DateRangePicker-BVpeJCHI.js +0 -76
- package/DateRangePicker-BVpeJCHI.js.map +0 -1
- package/DateRangePicker-B_hKQhbj.cjs +0 -75
- package/DateRangePicker-B_hKQhbj.cjs.map +0 -1
- package/DateTimePicker-77w-9TP5.js.map +0 -1
- package/DateTimePicker-CTnRQCZo.cjs.map +0 -1
- package/Input-jYapjJYM.cjs.map +0 -1
- package/Input-rVVhI_wk.js.map +0 -1
- package/Select-B6jE3WH_.cjs.map +0 -1
- package/Select-bSVQokFX.js.map +0 -1
- package/components/DateRangePicker/DateRangePicker.cjs +0 -5
- package/components/DateRangePicker/DateRangePicker.cjs.map +0 -1
- package/components/DateRangePicker/DateRangePicker.d.ts +0 -15
- package/components/DateRangePicker/DateRangePicker.definitions.d.ts +0 -6
- package/components/DateRangePicker/DateRangePicker.js +0 -5
- package/components/DateRangePicker/DateRangePicker.js.map +0 -1
- package/components/DateRangePicker/index.d.ts +0 -1
- package/components/DateRangePicker.d.ts +0 -2
- package/formField.sx-8_QRnKxv.js.map +0 -1
- package/formField.sx-BAX7KwMR.cjs.map +0 -1
- /package/{README.md → Readme.md} +0 -0
- /package/{Avatar-CgT7955R.js → dist/Avatar-CgT7955R.js} +0 -0
- /package/{Avatar-CgT7955R.js.map → dist/Avatar-CgT7955R.js.map} +0 -0
- /package/{Avatar-CuSrK8Wn.cjs → dist/Avatar-CuSrK8Wn.cjs} +0 -0
- /package/{Avatar-CuSrK8Wn.cjs.map → dist/Avatar-CuSrK8Wn.cjs.map} +0 -0
- /package/{Button-C17mExpd.cjs → dist/Button-C17mExpd.cjs} +0 -0
- /package/{Button-C17mExpd.cjs.map → dist/Button-C17mExpd.cjs.map} +0 -0
- /package/{Button-UkkP-bNw.js → dist/Button-UkkP-bNw.js} +0 -0
- /package/{Button-UkkP-bNw.js.map → dist/Button-UkkP-bNw.js.map} +0 -0
- /package/{Card-B1wtavyl.js → dist/Card-B1wtavyl.js} +0 -0
- /package/{Card-B1wtavyl.js.map → dist/Card-B1wtavyl.js.map} +0 -0
- /package/{Card-DfdU610V.cjs → dist/Card-DfdU610V.cjs} +0 -0
- /package/{Card-DfdU610V.cjs.map → dist/Card-DfdU610V.cjs.map} +0 -0
- /package/{Checkbox-BCqMFWt4.cjs → dist/Checkbox-BCqMFWt4.cjs} +0 -0
- /package/{Checkbox-BCqMFWt4.cjs.map → dist/Checkbox-BCqMFWt4.cjs.map} +0 -0
- /package/{Checkbox-gB5YKkVo.js → dist/Checkbox-gB5YKkVo.js} +0 -0
- /package/{Checkbox-gB5YKkVo.js.map → dist/Checkbox-gB5YKkVo.js.map} +0 -0
- /package/{Chip-OPYQ1uQ_.js → dist/Chip-OPYQ1uQ_.js} +0 -0
- /package/{Chip-OPYQ1uQ_.js.map → dist/Chip-OPYQ1uQ_.js.map} +0 -0
- /package/{Chip-qoJLDiva.cjs → dist/Chip-qoJLDiva.cjs} +0 -0
- /package/{Chip-qoJLDiva.cjs.map → dist/Chip-qoJLDiva.cjs.map} +0 -0
- /package/{Modal-BN5s-Tfk.cjs → dist/Modal-BN5s-Tfk.cjs} +0 -0
- /package/{Modal-BN5s-Tfk.cjs.map → dist/Modal-BN5s-Tfk.cjs.map} +0 -0
- /package/{Modal-BRZMPwDj.js → dist/Modal-BRZMPwDj.js} +0 -0
- /package/{Modal-BRZMPwDj.js.map → dist/Modal-BRZMPwDj.js.map} +0 -0
- /package/{RadioGroup-Dd0rHXSX.cjs → dist/RadioGroup-Dd0rHXSX.cjs} +0 -0
- /package/{RadioGroup-Dd0rHXSX.cjs.map → dist/RadioGroup-Dd0rHXSX.cjs.map} +0 -0
- /package/{RadioGroup-bO-ahP9T.js → dist/RadioGroup-bO-ahP9T.js} +0 -0
- /package/{RadioGroup-bO-ahP9T.js.map → dist/RadioGroup-bO-ahP9T.js.map} +0 -0
- /package/{Stat-BUcFCGrz.cjs → dist/Stat-BUcFCGrz.cjs} +0 -0
- /package/{Stat-BUcFCGrz.cjs.map → dist/Stat-BUcFCGrz.cjs.map} +0 -0
- /package/{Stat-C06A_izS.js → dist/Stat-C06A_izS.js} +0 -0
- /package/{Stat-C06A_izS.js.map → dist/Stat-C06A_izS.js.map} +0 -0
- /package/{StatusMessage-B3nXpuRl.cjs → dist/StatusMessage-B3nXpuRl.cjs} +0 -0
- /package/{StatusMessage-B3nXpuRl.cjs.map → dist/StatusMessage-B3nXpuRl.cjs.map} +0 -0
- /package/{StatusMessage-D0WgSBx7.js → dist/StatusMessage-D0WgSBx7.js} +0 -0
- /package/{StatusMessage-D0WgSBx7.js.map → dist/StatusMessage-D0WgSBx7.js.map} +0 -0
- /package/{Step-BArsou1V.js → dist/Step-BArsou1V.js} +0 -0
- /package/{Step-BArsou1V.js.map → dist/Step-BArsou1V.js.map} +0 -0
- /package/{Step-Nd7SJbRZ.cjs → dist/Step-Nd7SJbRZ.cjs} +0 -0
- /package/{Step-Nd7SJbRZ.cjs.map → dist/Step-Nd7SJbRZ.cjs.map} +0 -0
- /package/{Switch-CQFOopYy.cjs → dist/Switch-CQFOopYy.cjs} +0 -0
- /package/{Switch-CQFOopYy.cjs.map → dist/Switch-CQFOopYy.cjs.map} +0 -0
- /package/{Switch-D72dpkH2.js → dist/Switch-D72dpkH2.js} +0 -0
- /package/{Switch-D72dpkH2.js.map → dist/Switch-D72dpkH2.js.map} +0 -0
- /package/{Tab-BbP8jBcK.cjs → dist/Tab-BbP8jBcK.cjs} +0 -0
- /package/{Tab-BbP8jBcK.cjs.map → dist/Tab-BbP8jBcK.cjs.map} +0 -0
- /package/{Tab-BxSxKJsP.js → dist/Tab-BxSxKJsP.js} +0 -0
- /package/{Tab-BxSxKJsP.js.map → dist/Tab-BxSxKJsP.js.map} +0 -0
- /package/{Table-C2LbW0B1.js → dist/Table-C2LbW0B1.js} +0 -0
- /package/{Table-C2LbW0B1.js.map → dist/Table-C2LbW0B1.js.map} +0 -0
- /package/{Table-C4OM6rrC.cjs → dist/Table-C4OM6rrC.cjs} +0 -0
- /package/{Table-C4OM6rrC.cjs.map → dist/Table-C4OM6rrC.cjs.map} +0 -0
- /package/{components → dist/components}/ActionMenu/ActionMenu.cjs +0 -0
- /package/{components → dist/components}/ActionMenu/ActionMenu.cjs.map +0 -0
- /package/{components → dist/components}/ActionMenu/ActionMenu.d.ts +0 -0
- /package/{components → dist/components}/ActionMenu/ActionMenu.js +0 -0
- /package/{components → dist/components}/ActionMenu/ActionMenu.js.map +0 -0
- /package/{components → dist/components}/ActionMenu/index.d.ts +0 -0
- /package/{components → dist/components}/ActionMenu.d.ts +0 -0
- /package/{components → dist/components}/AppBar/AppBar.cjs +0 -0
- /package/{components → dist/components}/AppBar/AppBar.cjs.map +0 -0
- /package/{components → dist/components}/AppBar/AppBar.d.ts +0 -0
- /package/{components → dist/components}/AppBar/AppBar.js +0 -0
- /package/{components → dist/components}/AppBar/AppBar.js.map +0 -0
- /package/{components → dist/components}/AppBar/AppBar.sx.d.ts +0 -0
- /package/{components → dist/components}/AppBar/AppBarContext.d.ts +0 -0
- /package/{components → dist/components}/AppBar/AppBarMenuToggle.d.ts +0 -0
- /package/{components → dist/components}/AppBar/index.d.ts +0 -0
- /package/{components → dist/components}/AppBar.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/Autocomplete.cjs.map +0 -0
- /package/{components → dist/components}/Autocomplete/Autocomplete.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/Autocomplete.definitions.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/Autocomplete.helpers.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/Autocomplete.js.map +0 -0
- /package/{components → dist/components}/Autocomplete/_parts/AutocompleteChips.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/_parts/AutocompleteLoader.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/_parts/AutocompleteOption.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/index.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete.d.ts +0 -0
- /package/{components → dist/components}/Avatar/Avatar.cjs +0 -0
- /package/{components → dist/components}/Avatar/Avatar.cjs.map +0 -0
- /package/{components → dist/components}/Avatar/Avatar.d.ts +0 -0
- /package/{components → dist/components}/Avatar/Avatar.definitions.d.ts +0 -0
- /package/{components → dist/components}/Avatar/Avatar.js +0 -0
- /package/{components → dist/components}/Avatar/Avatar.js.map +0 -0
- /package/{components → dist/components}/Avatar/index.d.ts +0 -0
- /package/{components → dist/components}/Avatar.d.ts +0 -0
- /package/{components → dist/components}/Button/Button.cjs +0 -0
- /package/{components → dist/components}/Button/Button.cjs.map +0 -0
- /package/{components → dist/components}/Button/Button.d.ts +0 -0
- /package/{components → dist/components}/Button/Button.definition.d.ts +0 -0
- /package/{components → dist/components}/Button/Button.js +0 -0
- /package/{components → dist/components}/Button/Button.js.map +0 -0
- /package/{components → dist/components}/Button/index.d.ts +0 -0
- /package/{components → dist/components}/Button.d.ts +0 -0
- /package/{components → dist/components}/Card/Card.cjs +0 -0
- /package/{components → dist/components}/Card/Card.cjs.map +0 -0
- /package/{components → dist/components}/Card/Card.d.ts +0 -0
- /package/{components → dist/components}/Card/Card.definition.d.ts +0 -0
- /package/{components → dist/components}/Card/Card.js +0 -0
- /package/{components → dist/components}/Card/Card.js.map +0 -0
- /package/{components → dist/components}/Card/Card.sx.d.ts +0 -0
- /package/{components → dist/components}/Card/index.d.ts +0 -0
- /package/{components → dist/components}/Card.d.ts +0 -0
- /package/{components → dist/components}/Checkbox/Checkbox.cjs +0 -0
- /package/{components → dist/components}/Checkbox/Checkbox.cjs.map +0 -0
- /package/{components → dist/components}/Checkbox/Checkbox.d.ts +0 -0
- /package/{components → dist/components}/Checkbox/Checkbox.js +0 -0
- /package/{components → dist/components}/Checkbox/Checkbox.js.map +0 -0
- /package/{components → dist/components}/Checkbox/Checkbox.sx.d.ts +0 -0
- /package/{components → dist/components}/Checkbox/index.d.ts +0 -0
- /package/{components → dist/components}/Checkbox.d.ts +0 -0
- /package/{components → dist/components}/Chip/Chip.cjs +0 -0
- /package/{components → dist/components}/Chip/Chip.cjs.map +0 -0
- /package/{components → dist/components}/Chip/Chip.d.ts +0 -0
- /package/{components → dist/components}/Chip/Chip.definitions.d.ts +0 -0
- /package/{components → dist/components}/Chip/Chip.js +0 -0
- /package/{components → dist/components}/Chip/Chip.js.map +0 -0
- /package/{components → dist/components}/Chip/index.d.ts +0 -0
- /package/{components → dist/components}/Chip.d.ts +0 -0
- /package/{components → dist/components}/Column/Column.cjs +0 -0
- /package/{components → dist/components}/Column/Column.cjs.map +0 -0
- /package/{components → dist/components}/Column/Column.d.ts +0 -0
- /package/{components → dist/components}/Column/Column.js +0 -0
- /package/{components → dist/components}/Column/Column.js.map +0 -0
- /package/{components → dist/components}/Column/index.d.ts +0 -0
- /package/{components → dist/components}/Column.d.ts +0 -0
- /package/{components → dist/components}/DatePicker/DatePicker.cjs.map +0 -0
- /package/{components → dist/components}/DatePicker/DatePicker.d.ts +0 -0
- /package/{components → dist/components}/DatePicker/DatePicker.definitions.d.ts +0 -0
- /package/{components → dist/components}/DatePicker/DatePicker.helpers.d.ts +0 -0
- /package/{components → dist/components}/DatePicker/DatePicker.js.map +0 -0
- /package/{components → dist/components}/DatePicker/index.d.ts +0 -0
- /package/{components → dist/components}/DatePicker.d.ts +0 -0
- /package/{components → dist/components}/DateTimePicker/DateTimePicker.cjs.map +0 -0
- /package/{components → dist/components}/DateTimePicker/DateTimePicker.d.ts +0 -0
- /package/{components → dist/components}/DateTimePicker/DateTimePicker.definitions.d.ts +0 -0
- /package/{components → dist/components}/DateTimePicker/DateTimePicker.helpers.d.ts +0 -0
- /package/{components → dist/components}/DateTimePicker/DateTimePicker.js.map +0 -0
- /package/{components → dist/components}/DateTimePicker/index.d.ts +0 -0
- /package/{components → dist/components}/DateTimePicker.d.ts +0 -0
- /package/{components → dist/components}/Drawer/Drawer.cjs +0 -0
- /package/{components → dist/components}/Drawer/Drawer.cjs.map +0 -0
- /package/{components → dist/components}/Drawer/Drawer.d.ts +0 -0
- /package/{components → dist/components}/Drawer/Drawer.js +0 -0
- /package/{components → dist/components}/Drawer/Drawer.js.map +0 -0
- /package/{components → dist/components}/Drawer/Drawer.sx.d.ts +0 -0
- /package/{components → dist/components}/Drawer/DrawerContext.d.ts +0 -0
- /package/{components → dist/components}/Drawer/DrawerItem.d.ts +0 -0
- /package/{components → dist/components}/Drawer/index.d.ts +0 -0
- /package/{components → dist/components}/Drawer.d.ts +0 -0
- /package/{components → dist/components}/Flyout/Flyout.cjs +0 -0
- /package/{components → dist/components}/Flyout/Flyout.cjs.map +0 -0
- /package/{components → dist/components}/Flyout/Flyout.d.ts +0 -0
- /package/{components → dist/components}/Flyout/Flyout.js +0 -0
- /package/{components → dist/components}/Flyout/Flyout.js.map +0 -0
- /package/{components → dist/components}/Flyout/index.d.ts +0 -0
- /package/{components → dist/components}/Flyout.d.ts +0 -0
- /package/{components → dist/components}/Gallery/Gallery.cjs +0 -0
- /package/{components → dist/components}/Gallery/Gallery.cjs.map +0 -0
- /package/{components → dist/components}/Gallery/Gallery.d.ts +0 -0
- /package/{components → dist/components}/Gallery/Gallery.definition.d.ts +0 -0
- /package/{components → dist/components}/Gallery/Gallery.js +0 -0
- /package/{components → dist/components}/Gallery/Gallery.js.map +0 -0
- /package/{components → dist/components}/Gallery/GalleryLightbox.d.ts +0 -0
- /package/{components → dist/components}/Gallery/GalleryMain.d.ts +0 -0
- /package/{components → dist/components}/Gallery/GalleryThumbnails.d.ts +0 -0
- /package/{components → dist/components}/Gallery/index.d.ts +0 -0
- /package/{components → dist/components}/Gallery.d.ts +0 -0
- /package/{components → dist/components}/Icon/Icon.cjs +0 -0
- /package/{components → dist/components}/Icon/Icon.cjs.map +0 -0
- /package/{components → dist/components}/Icon/Icon.d.ts +0 -0
- /package/{components → dist/components}/Icon/Icon.js +0 -0
- /package/{components → dist/components}/Icon/Icon.js.map +0 -0
- /package/{components → dist/components}/Icon/index.d.ts +0 -0
- /package/{components → dist/components}/Icon.d.ts +0 -0
- /package/{components → dist/components}/Input/Input.cjs.map +0 -0
- /package/{components → dist/components}/Input/Input.d.ts +0 -0
- /package/{components → dist/components}/Input/Input.definitions.d.ts +0 -0
- /package/{components → dist/components}/Input/Input.helpers.d.ts +0 -0
- /package/{components → dist/components}/Input/Input.js.map +0 -0
- /package/{components → dist/components}/Input/index.d.ts +0 -0
- /package/{components → dist/components}/Input.d.ts +0 -0
- /package/{components → dist/components}/InputGroup/InputGroup.cjs +0 -0
- /package/{components → dist/components}/InputGroup/InputGroup.cjs.map +0 -0
- /package/{components → dist/components}/InputGroup/InputGroup.d.ts +0 -0
- /package/{components → dist/components}/InputGroup/InputGroup.definitions.d.ts +0 -0
- /package/{components → dist/components}/InputGroup/InputGroup.js +0 -0
- /package/{components → dist/components}/InputGroup/InputGroup.js.map +0 -0
- /package/{components → dist/components}/InputGroup/index.d.ts +0 -0
- /package/{components → dist/components}/InputGroup.d.ts +0 -0
- /package/{components → dist/components}/MenuButton/MenuButton.cjs +0 -0
- /package/{components → dist/components}/MenuButton/MenuButton.cjs.map +0 -0
- /package/{components → dist/components}/MenuButton/MenuButton.d.ts +0 -0
- /package/{components → dist/components}/MenuButton/MenuButton.js +0 -0
- /package/{components → dist/components}/MenuButton/MenuButton.js.map +0 -0
- /package/{components → dist/components}/MenuButton/index.d.ts +0 -0
- /package/{components → dist/components}/MenuButton.d.ts +0 -0
- /package/{components → dist/components}/Modal/Modal.cjs +0 -0
- /package/{components → dist/components}/Modal/Modal.cjs.map +0 -0
- /package/{components → dist/components}/Modal/Modal.d.ts +0 -0
- /package/{components → dist/components}/Modal/Modal.js +0 -0
- /package/{components → dist/components}/Modal/Modal.js.map +0 -0
- /package/{components → dist/components}/Modal/ModalBody.d.ts +0 -0
- /package/{components → dist/components}/Modal/ModalFooter.d.ts +0 -0
- /package/{components → dist/components}/Modal/ModalHeader.d.ts +0 -0
- /package/{components → dist/components}/Modal/index.d.ts +0 -0
- /package/{components → dist/components}/Modal.d.ts +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.cjs +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.cjs.map +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.d.ts +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.definitions.d.ts +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.js +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.js.map +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.sx.d.ts +0 -0
- /package/{components → dist/components}/RadioGroup/index.d.ts +0 -0
- /package/{components → dist/components}/RadioGroup.d.ts +0 -0
- /package/{components → dist/components}/Select/Select.cjs.map +0 -0
- /package/{components → dist/components}/Select/Select.d.ts +0 -0
- /package/{components → dist/components}/Select/Select.helpers.d.ts +0 -0
- /package/{components → dist/components}/Select/Select.js.map +0 -0
- /package/{components → dist/components}/Select/_parts/SelectMenuItem.d.ts +0 -0
- /package/{components → dist/components}/Select/_parts/SelectValue.d.ts +0 -0
- /package/{components → dist/components}/Select/index.d.ts +0 -0
- /package/{components → dist/components}/Select.d.ts +0 -0
- /package/{components → dist/components}/Stat/Stat.cjs +0 -0
- /package/{components → dist/components}/Stat/Stat.cjs.map +0 -0
- /package/{components → dist/components}/Stat/Stat.d.ts +0 -0
- /package/{components → dist/components}/Stat/Stat.js +0 -0
- /package/{components → dist/components}/Stat/Stat.js.map +0 -0
- /package/{components → dist/components}/Stat/index.d.ts +0 -0
- /package/{components → dist/components}/Stat.d.ts +0 -0
- /package/{components → dist/components}/StatusMessage/StatusMessage.cjs +0 -0
- /package/{components → dist/components}/StatusMessage/StatusMessage.cjs.map +0 -0
- /package/{components → dist/components}/StatusMessage/StatusMessage.d.ts +0 -0
- /package/{components → dist/components}/StatusMessage/StatusMessage.js +0 -0
- /package/{components → dist/components}/StatusMessage/StatusMessage.js.map +0 -0
- /package/{components → dist/components}/StatusMessage/index.d.ts +0 -0
- /package/{components → dist/components}/StatusMessage.d.ts +0 -0
- /package/{components → dist/components}/Stepper/Step.d.ts +0 -0
- /package/{components → dist/components}/Stepper/Stepper.cjs +0 -0
- /package/{components → dist/components}/Stepper/Stepper.cjs.map +0 -0
- /package/{components → dist/components}/Stepper/Stepper.d.ts +0 -0
- /package/{components → dist/components}/Stepper/Stepper.definition.d.ts +0 -0
- /package/{components → dist/components}/Stepper/Stepper.js +0 -0
- /package/{components → dist/components}/Stepper/Stepper.js.map +0 -0
- /package/{components → dist/components}/Stepper/StepperContext.d.ts +0 -0
- /package/{components → dist/components}/Stepper/_hooks/useHorizontalScroll.d.ts +0 -0
- /package/{components → dist/components}/Stepper/_parts/StepperScrollArrow.d.ts +0 -0
- /package/{components → dist/components}/Stepper/index.d.ts +0 -0
- /package/{components → dist/components}/Stepper.d.ts +0 -0
- /package/{components → dist/components}/Switch/Switch.cjs +0 -0
- /package/{components → dist/components}/Switch/Switch.cjs.map +0 -0
- /package/{components → dist/components}/Switch/Switch.d.ts +0 -0
- /package/{components → dist/components}/Switch/Switch.definitions.d.ts +0 -0
- /package/{components → dist/components}/Switch/Switch.js +0 -0
- /package/{components → dist/components}/Switch/Switch.js.map +0 -0
- /package/{components → dist/components}/Switch/Switch.sx.d.ts +0 -0
- /package/{components → dist/components}/Switch/Switch.types.d.ts +0 -0
- /package/{components → dist/components}/Switch/index.d.ts +0 -0
- /package/{components → dist/components}/Switch.d.ts +0 -0
- /package/{components → dist/components}/Table/Table.cjs +0 -0
- /package/{components → dist/components}/Table/Table.cjs.map +0 -0
- /package/{components → dist/components}/Table/Table.d.ts +0 -0
- /package/{components → dist/components}/Table/Table.definition.d.ts +0 -0
- /package/{components → dist/components}/Table/Table.js +0 -0
- /package/{components → dist/components}/Table/Table.js.map +0 -0
- /package/{components → dist/components}/Table/data.d.ts +0 -0
- /package/{components → dist/components}/Table/exportsUtils.d.ts +0 -0
- /package/{components → dist/components}/Table/index.d.ts +0 -0
- /package/{components → dist/components}/Table/types.d.ts +0 -0
- /package/{components → dist/components}/Table.d.ts +0 -0
- /package/{components → dist/components}/Tabs/Tab.d.ts +0 -0
- /package/{components → dist/components}/Tabs/Tab.definition.d.ts +0 -0
- /package/{components → dist/components}/Tabs/Tabs.cjs +0 -0
- /package/{components → dist/components}/Tabs/Tabs.cjs.map +0 -0
- /package/{components → dist/components}/Tabs/Tabs.d.ts +0 -0
- /package/{components → dist/components}/Tabs/Tabs.js +0 -0
- /package/{components → dist/components}/Tabs/Tabs.js.map +0 -0
- /package/{components → dist/components}/Tabs/_tabUtils.d.ts +0 -0
- /package/{components → dist/components}/Tabs/index.d.ts +0 -0
- /package/{components → dist/components}/Tabs.d.ts +0 -0
- /package/{components → dist/components}/Timeline/Timeline.cjs +0 -0
- /package/{components → dist/components}/Timeline/Timeline.cjs.map +0 -0
- /package/{components → dist/components}/Timeline/Timeline.d.ts +0 -0
- /package/{components → dist/components}/Timeline/Timeline.definition.d.ts +0 -0
- /package/{components → dist/components}/Timeline/Timeline.js +0 -0
- /package/{components → dist/components}/Timeline/Timeline.js.map +0 -0
- /package/{components → dist/components}/Timeline/TimelineItem.d.ts +0 -0
- /package/{components → dist/components}/Timeline/index.d.ts +0 -0
- /package/{components → dist/components}/Timeline.d.ts +0 -0
- /package/{components → dist/components}/Tooltip/Tooltip.cjs +0 -0
- /package/{components → dist/components}/Tooltip/Tooltip.cjs.map +0 -0
- /package/{components → dist/components}/Tooltip/Tooltip.d.ts +0 -0
- /package/{components → dist/components}/Tooltip/Tooltip.js +0 -0
- /package/{components → dist/components}/Tooltip/Tooltip.js.map +0 -0
- /package/{components → dist/components}/Tooltip/index.d.ts +0 -0
- /package/{components → dist/components}/Tooltip.d.ts +0 -0
- /package/{components → dist/components}/_shared/mergeSx.d.ts +0 -0
- /package/{components → dist/components}/_shared/resolvePreset.d.ts +0 -0
- /package/{hooks → dist/hooks}/ClipBoard/ClipBoard.cjs +0 -0
- /package/{hooks → dist/hooks}/ClipBoard/ClipBoard.cjs.map +0 -0
- /package/{hooks → dist/hooks}/ClipBoard/ClipBoard.d.ts +0 -0
- /package/{hooks → dist/hooks}/ClipBoard/ClipBoard.js +0 -0
- /package/{hooks → dist/hooks}/ClipBoard/ClipBoard.js.map +0 -0
- /package/{hooks → dist/hooks}/ClipBoard/ClipboardUnifiedDemo.d.ts +0 -0
- /package/{hooks → dist/hooks}/ClipBoard/index.d.ts +0 -0
- /package/{hooks → dist/hooks}/ClipBoard.d.ts +0 -0
- /package/{index.css → dist/index.css} +0 -0
- /package/{mergeSx-BXoNZjB_.js → dist/mergeSx-BXoNZjB_.js} +0 -0
- /package/{mergeSx-BXoNZjB_.js.map → dist/mergeSx-BXoNZjB_.js.map} +0 -0
- /package/{mergeSx-Dbccoo_H.cjs → dist/mergeSx-Dbccoo_H.cjs} +0 -0
- /package/{mergeSx-Dbccoo_H.cjs.map → dist/mergeSx-Dbccoo_H.cjs.map} +0 -0
- /package/{mui.d.ts → dist/mui.d.ts} +0 -0
- /package/{resolvePreset-CxTI6_Ln.cjs → dist/resolvePreset-CxTI6_Ln.cjs} +0 -0
- /package/{resolvePreset-CxTI6_Ln.cjs.map → dist/resolvePreset-CxTI6_Ln.cjs.map} +0 -0
- /package/{resolvePreset-K6_BfWHD.js → dist/resolvePreset-K6_BfWHD.js} +0 -0
- /package/{resolvePreset-K6_BfWHD.js.map → dist/resolvePreset-K6_BfWHD.js.map} +0 -0
- /package/{theme → dist/theme}/componentStyles.d.ts +0 -0
- /package/{theme → dist/theme}/tokens.d.ts +0 -0
- /package/{tokens-BRrcP_p_.js → dist/tokens-BRrcP_p_.js} +0 -0
- /package/{tokens-BRrcP_p_.js.map → dist/tokens-BRrcP_p_.js.map} +0 -0
- /package/{tokens-jaWWNk39.cjs → dist/tokens-jaWWNk39.cjs} +0 -0
- /package/{tokens-jaWWNk39.cjs.map → dist/tokens-jaWWNk39.cjs.map} +0 -0
- /package/{utils → dist/utils}/index.d.ts +0 -0
- /package/{utils → dist/utils}/scrollToTop.d.ts +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export const DefaultButtonDefinition = `
|
|
2
|
+
<Button variant="text">
|
|
3
|
+
Button
|
|
4
|
+
</Button>
|
|
5
|
+
`
|
|
6
|
+
|
|
7
|
+
export const OutlinedButtonDefinition = `
|
|
8
|
+
<Button variant="outlined">
|
|
9
|
+
Button
|
|
10
|
+
</Button>
|
|
11
|
+
`
|
|
12
|
+
|
|
13
|
+
export const ContainedButtonDefinition = `
|
|
14
|
+
<Button variant="contained">
|
|
15
|
+
Button
|
|
16
|
+
</Button>
|
|
17
|
+
`
|
|
18
|
+
|
|
19
|
+
export const WithStartIconButtonDefinition = `
|
|
20
|
+
<Button
|
|
21
|
+
data-testid="button"
|
|
22
|
+
startIcon={<NotificationsIcon/>}
|
|
23
|
+
variant="contained"
|
|
24
|
+
>
|
|
25
|
+
Button
|
|
26
|
+
</Button>
|
|
27
|
+
`
|
|
28
|
+
|
|
29
|
+
export const WithEndIconButtonDefinition = `
|
|
30
|
+
<Button
|
|
31
|
+
data-testid="button"
|
|
32
|
+
endIcon={<NotificationsIcon/>}
|
|
33
|
+
variant="contained"
|
|
34
|
+
>
|
|
35
|
+
Button
|
|
36
|
+
</Button>
|
|
37
|
+
`
|
|
38
|
+
|
|
39
|
+
export const WithSmallSizeButtonDefinition = `
|
|
40
|
+
<Button
|
|
41
|
+
data-testid="button"
|
|
42
|
+
size="small"
|
|
43
|
+
variant="contained"
|
|
44
|
+
>
|
|
45
|
+
Button
|
|
46
|
+
</Button>
|
|
47
|
+
`
|
|
48
|
+
|
|
49
|
+
export const WithLargeSizeButtonDefinition = `
|
|
50
|
+
<Button
|
|
51
|
+
data-testid="button"
|
|
52
|
+
size="large"
|
|
53
|
+
variant="contained"
|
|
54
|
+
>
|
|
55
|
+
Button
|
|
56
|
+
</Button>
|
|
57
|
+
`
|
|
58
|
+
|
|
59
|
+
export const DisabledStateButtonDefinition = `
|
|
60
|
+
<Button
|
|
61
|
+
data-testid="button"
|
|
62
|
+
disabled
|
|
63
|
+
variant="contained"
|
|
64
|
+
>
|
|
65
|
+
Button
|
|
66
|
+
</Button>`
|
|
67
|
+
|
|
68
|
+
export const LoadingButtonDefinition = `
|
|
69
|
+
<Button
|
|
70
|
+
data-testid="button"
|
|
71
|
+
loading
|
|
72
|
+
variant="contained"
|
|
73
|
+
>
|
|
74
|
+
Button
|
|
75
|
+
</Button>
|
|
76
|
+
`
|
|
77
|
+
|
|
78
|
+
export const LoadingIndicatorStartButtonDefinition = `
|
|
79
|
+
<Button
|
|
80
|
+
data-testid="button"
|
|
81
|
+
loading
|
|
82
|
+
loadingPosition="start"
|
|
83
|
+
variant="contained"
|
|
84
|
+
>
|
|
85
|
+
Button
|
|
86
|
+
</Button>
|
|
87
|
+
`
|
|
88
|
+
|
|
89
|
+
export const LoadingIndicatorEndButtonDefinition = `
|
|
90
|
+
<Button
|
|
91
|
+
data-testid="button"
|
|
92
|
+
loading
|
|
93
|
+
loadingPosition="end"
|
|
94
|
+
variant="contained"
|
|
95
|
+
>
|
|
96
|
+
Button
|
|
97
|
+
</Button>`
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Button } from "./Button";
|
|
3
|
+
import NotificationsIcon from "@mui/icons-material/Notifications";
|
|
4
|
+
import { expect, within } from "storybook/test";
|
|
5
|
+
import {
|
|
6
|
+
ContainedButtonDefinition,
|
|
7
|
+
DefaultButtonDefinition,
|
|
8
|
+
DisabledStateButtonDefinition,
|
|
9
|
+
LoadingButtonDefinition,
|
|
10
|
+
LoadingIndicatorEndButtonDefinition,
|
|
11
|
+
LoadingIndicatorStartButtonDefinition,
|
|
12
|
+
OutlinedButtonDefinition,
|
|
13
|
+
WithEndIconButtonDefinition,
|
|
14
|
+
WithLargeSizeButtonDefinition,
|
|
15
|
+
WithSmallSizeButtonDefinition,
|
|
16
|
+
WithStartIconButtonDefinition
|
|
17
|
+
} from "./Button.definition";
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
const meta: Meta<typeof Button> = {
|
|
21
|
+
title: "Components/Button",
|
|
22
|
+
component: Button,
|
|
23
|
+
parameters: {
|
|
24
|
+
layout: "centered"
|
|
25
|
+
},
|
|
26
|
+
tags: ["autodocs"]
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default meta;
|
|
30
|
+
|
|
31
|
+
type Story = StoryObj<typeof Button>;
|
|
32
|
+
|
|
33
|
+
export const Default: Story = {
|
|
34
|
+
args: {
|
|
35
|
+
children: "Button",
|
|
36
|
+
variant: "text"
|
|
37
|
+
},
|
|
38
|
+
parameters: {
|
|
39
|
+
docs: {
|
|
40
|
+
description: {
|
|
41
|
+
story: "Boton con el texto \"Button\" y el estilo \"default\"."
|
|
42
|
+
},
|
|
43
|
+
source: {
|
|
44
|
+
code: DefaultButtonDefinition.trim()
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const Outlined: Story = {
|
|
51
|
+
args: {
|
|
52
|
+
children: "Button",
|
|
53
|
+
variant: "outlined"
|
|
54
|
+
},
|
|
55
|
+
parameters: {
|
|
56
|
+
docs: {
|
|
57
|
+
description: {
|
|
58
|
+
story: "Boton con el texto \"Button\" y el estilo \"outlined\"."
|
|
59
|
+
},
|
|
60
|
+
source: {
|
|
61
|
+
code: OutlinedButtonDefinition.trim()
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const Contained: Story = {
|
|
68
|
+
args: {
|
|
69
|
+
children: "Button",
|
|
70
|
+
variant: "contained"
|
|
71
|
+
},
|
|
72
|
+
parameters: {
|
|
73
|
+
docs: {
|
|
74
|
+
description: {
|
|
75
|
+
story: "Boton con el texto \"Button\" y el estilo \"contained\"."
|
|
76
|
+
},
|
|
77
|
+
source: {
|
|
78
|
+
code: ContainedButtonDefinition.trim()
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
export const WithStartIcon: Story = {
|
|
86
|
+
args: {
|
|
87
|
+
children: "Button",
|
|
88
|
+
variant: "contained",
|
|
89
|
+
startIcon: <NotificationsIcon />,
|
|
90
|
+
"data-testid": "button"
|
|
91
|
+
},
|
|
92
|
+
parameters: {
|
|
93
|
+
docs: {
|
|
94
|
+
description: {
|
|
95
|
+
story: "Boton con el texto \"Button\", el estilo \"contained\" y un icono al inicio."
|
|
96
|
+
},
|
|
97
|
+
source: {
|
|
98
|
+
code: WithStartIconButtonDefinition.trim()
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
play: async ({ canvasElement }) => {
|
|
103
|
+
const canvas = within(canvasElement);
|
|
104
|
+
const button = canvas.getByTestId("button");
|
|
105
|
+
expect(within(button).getByText("Button")).toBeInTheDocument();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
export const WithEndIcon: Story = {
|
|
111
|
+
args: {
|
|
112
|
+
children: "Button",
|
|
113
|
+
variant: "contained",
|
|
114
|
+
endIcon: <NotificationsIcon />,
|
|
115
|
+
"data-testid": "button"
|
|
116
|
+
},
|
|
117
|
+
parameters: {
|
|
118
|
+
docs: {
|
|
119
|
+
description: {
|
|
120
|
+
story: "Boton con el texto \"Button\", el estilo \"contained\" y un icono al final."
|
|
121
|
+
},
|
|
122
|
+
source: {
|
|
123
|
+
code: WithEndIconButtonDefinition.trim()
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
play: async ({ canvasElement }) => {
|
|
128
|
+
const canvas = within(canvasElement);
|
|
129
|
+
const button = canvas.getByTestId("button");
|
|
130
|
+
expect(within(button).getByText("Button")).toBeInTheDocument();
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export const WithSmallSize: Story = {
|
|
135
|
+
args: {
|
|
136
|
+
children: "Button",
|
|
137
|
+
variant: "contained",
|
|
138
|
+
size: "small",
|
|
139
|
+
"data-testid": "button"
|
|
140
|
+
},
|
|
141
|
+
parameters: {
|
|
142
|
+
docs: {
|
|
143
|
+
description: {
|
|
144
|
+
story: "Boton tamaño \"small\"."
|
|
145
|
+
},
|
|
146
|
+
source: {
|
|
147
|
+
code: WithSmallSizeButtonDefinition.trim()
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
play: async ({ canvasElement }) => {
|
|
152
|
+
const canvas = within(canvasElement);
|
|
153
|
+
const button = canvas.getByTestId("button");
|
|
154
|
+
expect(within(button).getByText("Button")).toBeInTheDocument();
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
export const WithLargeSize: Story = {
|
|
160
|
+
args: {
|
|
161
|
+
children: "Button",
|
|
162
|
+
variant: "contained",
|
|
163
|
+
size: "large",
|
|
164
|
+
"data-testid": "button"
|
|
165
|
+
},
|
|
166
|
+
parameters: {
|
|
167
|
+
docs: {
|
|
168
|
+
description: {
|
|
169
|
+
story: "Boton tamaño \"large\"."
|
|
170
|
+
},
|
|
171
|
+
source: {
|
|
172
|
+
code: WithLargeSizeButtonDefinition.trim()
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
play: async ({ canvasElement }) => {
|
|
177
|
+
const canvas = within(canvasElement);
|
|
178
|
+
const button = canvas.getByTestId("button");
|
|
179
|
+
expect(within(button).getByText("Button")).toBeInTheDocument();
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export const Disabled: Story = {
|
|
184
|
+
args: {
|
|
185
|
+
children: "Button",
|
|
186
|
+
variant: "contained",
|
|
187
|
+
"data-testid": "button",
|
|
188
|
+
disabled: true
|
|
189
|
+
},
|
|
190
|
+
parameters: {
|
|
191
|
+
docs: {
|
|
192
|
+
description: {
|
|
193
|
+
story: "Boton deshabilitado."
|
|
194
|
+
},
|
|
195
|
+
source: {
|
|
196
|
+
code: DisabledStateButtonDefinition.trim()
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
play: async ({ canvasElement }) => {
|
|
201
|
+
const canvas = within(canvasElement);
|
|
202
|
+
const button = canvas.getByTestId("button");
|
|
203
|
+
expect(within(button).getByText("Button")).toBeInTheDocument();
|
|
204
|
+
expect(button).toBeDisabled();
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
export const Loading: Story = {
|
|
210
|
+
args: {
|
|
211
|
+
children: "Button",
|
|
212
|
+
variant: "contained",
|
|
213
|
+
loading: true,
|
|
214
|
+
"data-testid": "button"
|
|
215
|
+
},
|
|
216
|
+
parameters: {
|
|
217
|
+
docs: {
|
|
218
|
+
description: {
|
|
219
|
+
story: "Boton con loader."
|
|
220
|
+
},
|
|
221
|
+
source: {
|
|
222
|
+
code: LoadingButtonDefinition.trim()
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
play: async ({ canvasElement }) => {
|
|
227
|
+
const canvas = within(canvasElement);
|
|
228
|
+
const button = canvas.getByTestId("button");
|
|
229
|
+
expect(within(button).getByText("Button")).toBeInTheDocument();
|
|
230
|
+
expect(button).toBeDisabled();
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export const LoadingStart: Story = {
|
|
235
|
+
args: {
|
|
236
|
+
children: "Button",
|
|
237
|
+
variant: "contained",
|
|
238
|
+
loading: true,
|
|
239
|
+
loadingPosition: "start",
|
|
240
|
+
"data-testid": "button"
|
|
241
|
+
},
|
|
242
|
+
parameters: {
|
|
243
|
+
docs: {
|
|
244
|
+
description: {
|
|
245
|
+
story: "Boton con al inicio loader."
|
|
246
|
+
},
|
|
247
|
+
source: {
|
|
248
|
+
code: LoadingIndicatorStartButtonDefinition.trim()
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
play: async ({ canvasElement }) => {
|
|
253
|
+
const canvas = within(canvasElement);
|
|
254
|
+
const button = canvas.getByTestId("button");
|
|
255
|
+
expect(within(button).getByText("Button")).toBeInTheDocument();
|
|
256
|
+
expect(button).toBeDisabled();
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
export const LoadingEnd: Story = {
|
|
262
|
+
args: {
|
|
263
|
+
children: "Button",
|
|
264
|
+
variant: "contained",
|
|
265
|
+
loading: true,
|
|
266
|
+
loadingPosition: "end",
|
|
267
|
+
"data-testid": "button"
|
|
268
|
+
},
|
|
269
|
+
parameters: {
|
|
270
|
+
docs: {
|
|
271
|
+
description: {
|
|
272
|
+
story: "Boton con al inicio loader."
|
|
273
|
+
},
|
|
274
|
+
source: {
|
|
275
|
+
code: LoadingIndicatorEndButtonDefinition.trim()
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
play: async ({ canvasElement }) => {
|
|
280
|
+
const canvas = within(canvasElement);
|
|
281
|
+
const button = canvas.getByTestId("button");
|
|
282
|
+
expect(within(button).getByText("Button")).toBeInTheDocument();
|
|
283
|
+
expect(button).toBeDisabled();
|
|
284
|
+
}
|
|
285
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Button as MuiButton } from "@mui/material";
|
|
2
|
+
import type { SxProps, Theme } from "@mui/material/styles";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
variant?: "text" | "outlined" | "contained";
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
endIcon?: React.ReactNode;
|
|
10
|
+
startIcon?: React.ReactNode;
|
|
11
|
+
size?: "small" | "medium" | "large";
|
|
12
|
+
className?: string;
|
|
13
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
loadingIndicator?: React.ReactNode;
|
|
16
|
+
loadingPosition?: "start" | "end" | "center";
|
|
17
|
+
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning";
|
|
18
|
+
href?: string;
|
|
19
|
+
"data-testid"?: string;
|
|
20
|
+
type?: "button" | "submit";
|
|
21
|
+
sx?: SxProps<Theme>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const Button: React.FC<ButtonProps> = ({
|
|
25
|
+
children,
|
|
26
|
+
variant,
|
|
27
|
+
disabled,
|
|
28
|
+
startIcon,
|
|
29
|
+
endIcon,
|
|
30
|
+
size,
|
|
31
|
+
className,
|
|
32
|
+
onClick,
|
|
33
|
+
loading,
|
|
34
|
+
loadingPosition,
|
|
35
|
+
loadingIndicator,
|
|
36
|
+
color,
|
|
37
|
+
href,
|
|
38
|
+
"data-testid": dataTestId,
|
|
39
|
+
type,
|
|
40
|
+
sx
|
|
41
|
+
}) => {
|
|
42
|
+
return (
|
|
43
|
+
<MuiButton
|
|
44
|
+
disabled={disabled}
|
|
45
|
+
variant={variant}
|
|
46
|
+
startIcon={startIcon}
|
|
47
|
+
endIcon={endIcon}
|
|
48
|
+
size={size}
|
|
49
|
+
className={className}
|
|
50
|
+
onClick={onClick}
|
|
51
|
+
loading={loading}
|
|
52
|
+
loadingPosition={loadingPosition}
|
|
53
|
+
loadingIndicator={loadingIndicator}
|
|
54
|
+
sx={{ textTransform: "none", ...sx }}
|
|
55
|
+
disableRipple={true}
|
|
56
|
+
disableElevation={true}
|
|
57
|
+
color={color}
|
|
58
|
+
data-testid={dataTestId}
|
|
59
|
+
href={href}
|
|
60
|
+
type={type}
|
|
61
|
+
>
|
|
62
|
+
{children}
|
|
63
|
+
</MuiButton>);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default Button;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { Stack, Typography } from '@mui/material';
|
|
4
|
+
|
|
5
|
+
import { Card } from './Card';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof Card> = {
|
|
8
|
+
title: 'Components/Card',
|
|
9
|
+
component: Card,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: 'padded',
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
component:
|
|
16
|
+
'Contenedor simple basado en MUI Card con variantes y padding configurable. El contenido se renderiza como `children`.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
argTypes: {
|
|
21
|
+
variant: {
|
|
22
|
+
control: 'select',
|
|
23
|
+
options: ['elevated', 'outlined', 'plain'],
|
|
24
|
+
},
|
|
25
|
+
padding: {
|
|
26
|
+
control: 'select',
|
|
27
|
+
options: ['none', 'dense', 'normal', 'loose'],
|
|
28
|
+
},
|
|
29
|
+
clickable: { control: 'boolean' },
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default meta;
|
|
34
|
+
type Story = StoryObj<typeof Card>;
|
|
35
|
+
|
|
36
|
+
// ── Stories ──────────────────────────────────────────────────────────────
|
|
37
|
+
|
|
38
|
+
export const Default: Story = {
|
|
39
|
+
args: {
|
|
40
|
+
children: 'Contenido simple del card.',
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const OutlinedVariant: Story = {
|
|
45
|
+
args: {
|
|
46
|
+
variant: 'outlined',
|
|
47
|
+
children: (
|
|
48
|
+
<Typography variant="body2">
|
|
49
|
+
Card con borde, sin sombra. Útil cuando vive sobre un fondo con
|
|
50
|
+
elevation mayor.
|
|
51
|
+
</Typography>
|
|
52
|
+
),
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const PlainVariant: Story = {
|
|
57
|
+
args: {
|
|
58
|
+
variant: 'plain',
|
|
59
|
+
children: (
|
|
60
|
+
<Typography variant="body2">
|
|
61
|
+
Card sin borde ni sombra. Ideal para composición interna (cards
|
|
62
|
+
anidados sin doble sombra).
|
|
63
|
+
</Typography>
|
|
64
|
+
),
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const Clickable: Story = {
|
|
69
|
+
args: {
|
|
70
|
+
clickable: true,
|
|
71
|
+
children: (
|
|
72
|
+
<Typography variant="body2" color="text.secondary">
|
|
73
|
+
Haz hover y click. El cursor cambia y hay un lift sutil.
|
|
74
|
+
</Typography>
|
|
75
|
+
),
|
|
76
|
+
onClick: () => console.log('card clicked'),
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const DensePadding: Story = {
|
|
81
|
+
args: {
|
|
82
|
+
padding: 'dense',
|
|
83
|
+
children: (
|
|
84
|
+
<Stack spacing={0.5}>
|
|
85
|
+
<Typography variant="body2">Línea 1</Typography>
|
|
86
|
+
<Typography variant="body2">Línea 2</Typography>
|
|
87
|
+
<Typography variant="body2">Línea 3</Typography>
|
|
88
|
+
</Stack>
|
|
89
|
+
),
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export const LoosePadding: Story = {
|
|
94
|
+
args: {
|
|
95
|
+
padding: 'loose',
|
|
96
|
+
children: (
|
|
97
|
+
<Typography variant="body2">
|
|
98
|
+
Card con padding amplio. Útil para hero sections o tarjetas destacadas.
|
|
99
|
+
</Typography>
|
|
100
|
+
),
|
|
101
|
+
},
|
|
102
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
|
|
3
|
+
export type CardVariant = 'elevated' | 'outlined' | 'plain';
|
|
4
|
+
export type CardPadding = 'none' | 'dense' | 'normal' | 'loose';
|
|
5
|
+
|
|
6
|
+
export interface BuildCardSxArgs {
|
|
7
|
+
variant: CardVariant;
|
|
8
|
+
padding: CardPadding;
|
|
9
|
+
clickable: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const paddingMap: Record<CardPadding, number> = {
|
|
13
|
+
none: 0,
|
|
14
|
+
dense: 1.5,
|
|
15
|
+
normal: 2.5,
|
|
16
|
+
loose: 4,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Estilo base del Card. La prop `sx` del consumer se compone encima junto al
|
|
21
|
+
* preset resuelto (en Card.tsx). Este builder solo se ocupa de variant +
|
|
22
|
+
* padding para que siga siendo predecible.
|
|
23
|
+
*/
|
|
24
|
+
export function buildCardSx({
|
|
25
|
+
variant,
|
|
26
|
+
padding,
|
|
27
|
+
clickable,
|
|
28
|
+
}: BuildCardSxArgs): SxProps<Theme> {
|
|
29
|
+
return (theme) => ({
|
|
30
|
+
borderRadius: 2,
|
|
31
|
+
backgroundColor: 'background.paper',
|
|
32
|
+
boxShadow: variant === 'elevated' ? theme.shadows[1] : 'none',
|
|
33
|
+
border:
|
|
34
|
+
variant === 'outlined'
|
|
35
|
+
? `1px solid ${theme.palette.divider}`
|
|
36
|
+
: 'none',
|
|
37
|
+
transition: theme.transitions.create(
|
|
38
|
+
['box-shadow', 'transform', 'border-color'],
|
|
39
|
+
{ duration: theme.transitions.duration.shorter },
|
|
40
|
+
),
|
|
41
|
+
cursor: clickable ? 'pointer' : 'default',
|
|
42
|
+
...(clickable && {
|
|
43
|
+
'&:hover': {
|
|
44
|
+
boxShadow:
|
|
45
|
+
variant === 'elevated'
|
|
46
|
+
? theme.shadows[3]
|
|
47
|
+
: variant === 'outlined'
|
|
48
|
+
? theme.shadows[1]
|
|
49
|
+
: 'none',
|
|
50
|
+
transform: variant !== 'plain' ? 'translateY(-1px)' : 'none',
|
|
51
|
+
},
|
|
52
|
+
'&:active': {
|
|
53
|
+
transform: 'translateY(0)',
|
|
54
|
+
},
|
|
55
|
+
}),
|
|
56
|
+
p: paddingMap[padding],
|
|
57
|
+
});
|
|
58
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { Card as MuiCard, useTheme } from '@mui/material';
|
|
3
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
4
|
+
|
|
5
|
+
import { resolvePreset } from '../_shared/resolvePreset';
|
|
6
|
+
import { buildCardSx, type CardVariant, type CardPadding } from './Card.sx';
|
|
7
|
+
|
|
8
|
+
export interface CardProps {
|
|
9
|
+
/** Contenido del Card. */
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Variante visual.
|
|
13
|
+
* - `elevated` (default): sombra sutil.
|
|
14
|
+
* - `outlined`: borde sin sombra.
|
|
15
|
+
* - `plain`: sin borde ni sombra, útil para layouts con nesting.
|
|
16
|
+
*/
|
|
17
|
+
variant?: CardVariant;
|
|
18
|
+
/** Densidad del padding interno. */
|
|
19
|
+
padding?: CardPadding;
|
|
20
|
+
/** Si `true`, muestra feedback de hover/active (cursor, sombra). */
|
|
21
|
+
clickable?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Preset registrado en `theme.styles.Card`. `"default"` usa el estilo
|
|
24
|
+
* built-in sin preset extra.
|
|
25
|
+
*/
|
|
26
|
+
preset?: string;
|
|
27
|
+
/**
|
|
28
|
+
* MUI `raised` legacy — mantenido por backward-compat. Equivale a
|
|
29
|
+
* `variant="elevated"` con sombra mayor. Ignora `variant` si se usa.
|
|
30
|
+
*/
|
|
31
|
+
raised?: boolean;
|
|
32
|
+
/** sx del root. Se compone sobre el base + preset. */
|
|
33
|
+
sx?: SxProps<Theme>;
|
|
34
|
+
onClick?: () => void;
|
|
35
|
+
onBlur?: () => void;
|
|
36
|
+
className?: string;
|
|
37
|
+
'data-testid'?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function Card({
|
|
41
|
+
children,
|
|
42
|
+
variant,
|
|
43
|
+
padding = 'normal',
|
|
44
|
+
clickable = false,
|
|
45
|
+
preset,
|
|
46
|
+
raised,
|
|
47
|
+
sx,
|
|
48
|
+
onClick,
|
|
49
|
+
onBlur,
|
|
50
|
+
className,
|
|
51
|
+
'data-testid': dataTestId,
|
|
52
|
+
}: CardProps) {
|
|
53
|
+
const theme = useTheme();
|
|
54
|
+
|
|
55
|
+
const resolvedVariant: CardVariant = raised
|
|
56
|
+
? 'elevated'
|
|
57
|
+
: (variant ?? 'elevated');
|
|
58
|
+
|
|
59
|
+
const presetSx = resolvePreset('Card', preset, theme);
|
|
60
|
+
|
|
61
|
+
const rootSx: SxProps<Theme> = [
|
|
62
|
+
buildCardSx({
|
|
63
|
+
variant: resolvedVariant,
|
|
64
|
+
padding,
|
|
65
|
+
clickable: clickable || Boolean(onClick),
|
|
66
|
+
}),
|
|
67
|
+
...(presetSx ? [presetSx] : []),
|
|
68
|
+
...(Array.isArray(sx) ? sx : sx ? [sx] : []),
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<MuiCard
|
|
73
|
+
sx={rootSx}
|
|
74
|
+
className={className}
|
|
75
|
+
data-testid={dataTestId}
|
|
76
|
+
onClick={onClick}
|
|
77
|
+
onBlur={onBlur}
|
|
78
|
+
elevation={0}
|
|
79
|
+
>
|
|
80
|
+
{children}
|
|
81
|
+
</MuiCard>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export default Card;
|