From 13c8db297d1d6daf4323b7120699e5ee5104f069 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 2 Dec 2023 01:46:32 -0500 Subject: [PATCH] chore(main): release 5.0.0 (#427) * chore(main): release 5.0.0 * docs: update storybook for latest release --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: benjitrosch --- CHANGELOG.md | 26 ++ ...c3041.js => Accordion.stories-153ffdb7.js} | 3 +- docs/assets/Accordion.stories-fa0c3041.js.map | 1 - ...-5bf0c5c5.js => Alert.stories-1bc54e76.js} | 7 +- docs/assets/Alert.stories-5bf0c5c5.js.map | 1 - docs/assets/Artboard.stories-71b3b8b3.js.map | 1 - ...b3b8b3.js => Artboard.stories-82bdeecf.js} | 9 +- ...53931cfb.js => Avatar.stories-17472006.js} | 3 +- docs/assets/Avatar.stories-53931cfb.js.map | 1 - docs/assets/Badge.stories-0612fa64.js.map | 1 - ...-0612fa64.js => Badge.stories-91275a6d.js} | 3 +- .../BottomNavigation.stories-cb28db91.js.map | 1 - ...s => BottomNavigation.stories-e1b3f548.js} | 3 +- docs/assets/Breadcrumbs.stories-07de829c.js | 37 -- .../Breadcrumbs.stories-07de829c.js.map | 1 - docs/assets/Breadcrumbs.stories-8ab9ebfa.js | 36 ++ ...2.js => BrowserMockup.stories-8fc338cf.js} | 3 +- .../BrowserMockup.stories-d83c0582.js.map | 1 - docs/assets/Button-28269a3e.js.map | 1 - ...{Button-28269a3e.js => Button-e9ac0f78.js} | 3 +- docs/assets/Button.stories-2800153f.js.map | 1 - ...2800153f.js => Button.stories-2ecc1a31.js} | 3 +- docs/assets/ButtonGroup.stories-39d413ec.js | 14 - .../ButtonGroup.stories-39d413ec.js.map | 1 - ...s-d6e2881e.js => Card.stories-7d9007ed.js} | 3 +- docs/assets/Card.stories-d6e2881e.js.map | 1 - ...16a780.js => Carousel.stories-4b01da97.js} | 3 +- docs/assets/Carousel.stories-a016a780.js.map | 1 - docs/assets/ChatBubble.stories-11893b91.js | 130 ++++++ docs/assets/ChatBubble.stories-c7a7a5ec.js | 131 ------ .../assets/ChatBubble.stories-c7a7a5ec.js.map | 1 - ...6f133f.js => Checkbox.stories-c0fcae51.js} | 3 +- docs/assets/Checkbox.stories-f66f133f.js.map | 1 - ...kup-da7333a5.js => CodeMockup-5ec72808.js} | 3 +- docs/assets/CodeMockup-da7333a5.js.map | 1 - .../assets/CodeMockup.stories-2383ec4f.js.map | 1 - ...ec4f.js => CodeMockup.stories-c54235b4.js} | 3 +- docs/assets/Collapse.stories-0fef9b46.js.map | 1 - ...ef9b46.js => Collapse.stories-ee07c980.js} | 3 +- ...d905ac7.js => CollapseContent-8035002f.js} | 3 +- docs/assets/CollapseContent-ad905ac7.js.map | 1 - .../CollapseDetails.stories-8a831301.js.map | 1 - ...js => CollapseDetails.stories-af5e2dc5.js} | 3 +- docs/assets/Color-6VNJS4EI-1a288c68.js.map | 1 - ...1a288c68.js => Color-6VNJS4EI-fc9214ad.js} | 3 +- docs/assets/Countdown.stories-efdbe80b.js.map | 1 - ...be80b.js => Countdown.stories-efe995ac.js} | 3 +- docs/assets/Diff.stories-42040ab8.js | 15 + docs/assets/Divider.stories-85991620.js | 54 --- docs/assets/Divider.stories-85991620.js.map | 1 - docs/assets/Divider.stories-8b6f67c7.js | 115 +++++ docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js | 2 - .../DocsRenderer-3PUGWF3O-935a3fbe.js.map | 1 - docs/assets/DocsRenderer-NNNQARDV-d9907032.js | 1 + docs/assets/Drawer.stories-0b40aea9.js.map | 1 - ...0b40aea9.js => Drawer.stories-3cceda62.js} | 3 +- docs/assets/Dropdown.stories-5c29f240.js.map | 1 - ...29f240.js => Dropdown.stories-bf9b5a3e.js} | 3 +- .../DropdownDetails.stories-3cb1d73f.js.map | 1 - ...js => DropdownDetails.stories-cfa84896.js} | 3 +- docs/assets/FileInput.stories-1eefb1aa.js | 36 -- docs/assets/FileInput.stories-1eefb1aa.js.map | 1 - docs/assets/FileInput.stories-3482d76d.js | 35 ++ ...78425f9b.js => Footer.stories-1abc7582.js} | 3 +- docs/assets/Footer.stories-78425f9b.js.map | 1 - ...lobalScrollAreaStyles-DZEYMYDM-204e46cb.js | 8 - ...lScrollAreaStyles-DZEYMYDM-204e46cb.js.map | 1 - docs/assets/Hero-0fe5bf28.js | 2 - docs/assets/Hero-0fe5bf28.js.map | 1 - docs/assets/Hero-9639dab2.js | 1 + docs/assets/Hero.stories-681595d7.js.map | 1 - ...s-681595d7.js => Hero.stories-e9f74b65.js} | 10 +- docs/assets/Indicator.stories-bed5f78f.js.map | 1 - ...5f78f.js => Indicator.stories-f48c90e3.js} | 3 +- ...-695a54ef.js => Input.stories-66d78c5c.js} | 3 +- docs/assets/Input.stories-695a54ef.js.map | 1 - docs/assets/InputGroup.stories-94555c36.js | 72 ---- .../assets/InputGroup.stories-94555c36.js.map | 1 - docs/assets/Join-09755b13.js.map | 1 - .../{Join-09755b13.js => Join-47e05b2f.js} | 3 +- ...s-9aa12067.js => Join.stories-9383d512.js} | 3 +- docs/assets/Join.stories-9aa12067.js.map | 1 - ...es-a7318563.js => Kbd.stories-68acbd4b.js} | 3 +- docs/assets/Kbd.stories-a7318563.js.map | 1 - docs/assets/Link.stories-815a71f6.js.map | 1 - ...s-815a71f6.js => Link.stories-a56412a8.js} | 5 +- ...78468ff.js => Loading.stories-4d6dd8ad.js} | 5 +- docs/assets/Loading.stories-b78468ff.js.map | 1 - ...s-1eb8a2ed.js => Mask.stories-07003ec5.js} | 3 +- docs/assets/Mask.stories-1eb8a2ed.js.map | 1 - ...s-ee2c97cd.js => Menu.stories-1416ca38.js} | 3 +- docs/assets/Menu.stories-ee2c97cd.js.map | 1 - docs/assets/Modal.stories-173e9588.js.map | 1 - ...-173e9588.js => Modal.stories-ce305c3b.js} | 3 +- ...bac.js => ModalLegacy.stories-c313fa45.js} | 3 +- .../ModalLegacy.stories-cc92bbac.js.map | 1 - docs/assets/Navbar.stories-2a86976e.js.map | 1 - ...2a86976e.js => Navbar.stories-5c3fdc08.js} | 3 +- .../OverlayScrollbars-OGE3XJTA-2b8adb3a.js | 2 - ...OverlayScrollbars-OGE3XJTA-2b8adb3a.js.map | 1 - .../assets/Pagination.stories-3bc44217.js.map | 1 - ...4217.js => Pagination.stories-55abae79.js} | 3 +- .../PhoneMockup.stories-04f20d22.js.map | 1 - ...d22.js => PhoneMockup.stories-aaef4ddd.js} | 3 +- docs/assets/Progress.stories-615b8823.js.map | 1 - ...5b8823.js => Progress.stories-c0a7b9ed.js} | 13 +- ....js => RadialProgress.stories-85b2e777.js} | 7 +- .../RadialProgress.stories-fcb4ad29.js.map | 1 - docs/assets/Radio.stories-6447d64d.js | 32 ++ docs/assets/Radio.stories-aa01485c.js | 33 -- docs/assets/Radio.stories-aa01485c.js.map | 1 - docs/assets/Range.stories-9e4759d9.js | 22 + docs/assets/Range.stories-c481dc6f.js | 23 - docs/assets/Range.stories-c481dc6f.js.map | 1 - ...e521f6c2.js => Rating.stories-ce64c5ed.js} | 3 +- docs/assets/Rating.stories-e521f6c2.js.map | 1 - docs/assets/Select.stories-b4d30651.js.map | 1 - ...b4d30651.js => Select.stories-bb92ac25.js} | 3 +- docs/assets/Skeleton.stories-debfd09f.js | 25 ++ docs/assets/Stack.stories-2b7d6f2f.js.map | 1 - ...-2b7d6f2f.js => Stack.stories-4b1fa1d7.js} | 3 +- ...-8c4422bb.js => Stats.stories-4ee4a697.js} | 3 +- docs/assets/Stats.stories-8c4422bb.js.map | 1 - docs/assets/Steps.stories-29daaf68.js.map | 1 - ...-29daaf68.js => Steps.stories-b79461a4.js} | 3 +- docs/assets/Swap.stories-52b5f6c6.js.map | 1 - ...s-52b5f6c6.js => Swap.stories-996cc5a4.js} | 3 +- ...-8239817d.js => Table.stories-7f3bac29.js} | 3 +- docs/assets/Table.stories-8239817d.js.map | 1 - docs/assets/Tabs.stories-85ce9ee5.js | 56 --- docs/assets/Tabs.stories-85ce9ee5.js.map | 1 - docs/assets/Tabs.stories-a7c49570.js | 79 ++++ docs/assets/Textarea.stories-2228775d.js.map | 1 - ...28775d.js => Textarea.stories-684e9d32.js} | 3 +- docs/assets/Theme.stories-8c8d7c92.js.map | 1 - ...-8c8d7c92.js => Theme.stories-98a6e05a.js} | 9 +- docs/assets/Timeline.stories-cbf3f07d.js | 371 ++++++++++++++++ docs/assets/Toast.stories-5ee9e44a.js | 74 ---- docs/assets/Toast.stories-5ee9e44a.js.map | 1 - docs/assets/Toast.stories-8a8af9af.js | 73 ++++ ...d43a9f3d.js => Toggle.stories-2c7a644f.js} | 3 +- docs/assets/Toggle.stories-d43a9f3d.js.map | 1 - docs/assets/Tooltip.stories-827626aa.js.map | 1 - ...27626aa.js => Tooltip.stories-a5d9ceb9.js} | 7 +- ...elcome-3f952cf3.js => Welcome-230771bb.js} | 3 +- docs/assets/Welcome-3f952cf3.js.map | 1 - ...c7.js => WindowMockup.stories-636b25be.js} | 3 +- .../WindowMockup.stories-e757efc7.js.map | 1 - docs/assets/WithTooltip-SGMXWZWO-57d6b612.js | 2 - .../WithTooltip-SGMXWZWO-57d6b612.js.map | 1 - docs/assets/WithTooltip-V3YHNWJZ-cc2adff6.js | 1 + docs/assets/chunk-H6ZRF7XV-146ce0bc.js.map | 1 - ...146ce0bc.js => chunk-ZGA76URP-2bd2442b.js} | 5 +- docs/assets/clsx.m-1229b3e0.js | 1 - docs/assets/clsx.m-1229b3e0.js.map | 1 - docs/assets/config-699c407d.js.map | 1 - docs/assets/constants-fe73bc72.js | 1 - docs/assets/constants-fe73bc72.js.map | 1 - docs/assets/entry-preview-2845a20c.js | 1 + ...407d.js => entry-preview-docs-6c008c5e.js} | 79 ++-- .../assets/formatter-OJ5LH2CX-b77969be.js.map | 1 - ...69be.js => formatter-SWP5E3XI-ec71aaad.js} | 5 +- docs/assets/iframe-19c7c3ad.js | 1 + docs/assets/iframe-4b2e3517.js | 2 - docs/assets/iframe-4b2e3517.js.map | 1 - docs/assets/index-02e00647.js.map | 1 - docs/assets/index-04dafbc6.js.map | 1 - docs/assets/index-057b6e0c.js | 2 - docs/assets/index-057b6e0c.js.map | 1 - docs/assets/index-073301bc.js | 27 -- docs/assets/index-073301bc.js.map | 1 - docs/assets/index-0dd2673f.js | 1 + .../{index-04dafbc6.js => index-0ee0d1a2.js} | 3 +- .../{index-2cbf760d.js => index-147f7280.js} | 3 +- docs/assets/index-1b03fe98.js | 9 + .../{index-a84870aa.js => index-1c7a8ea4.js} | 3 +- .../{index-550801ef.js => index-1e3c83a2.js} | 3 +- docs/assets/index-21c4db47.js | 216 ++++++++++ docs/assets/index-2cbf760d.js.map | 1 - .../{index-bda0bad7.js => index-2ef8b458.js} | 3 +- docs/assets/index-348f1b10.js.map | 1 - docs/assets/index-356e4a49.js | 1 - docs/assets/index-356e4a49.js.map | 1 - docs/assets/index-357fb5a8.js.map | 1 - .../{index-348f1b10.js => index-3802c17c.js} | 3 +- docs/assets/index-3a31de6a.js.map | 1 - .../{index-600c7863.js => index-3c968524.js} | 3 +- .../{index-5474795c.js => index-44e44375.js} | 3 +- docs/assets/index-5474795c.js.map | 1 - docs/assets/index-550801ef.js.map | 1 - .../{index-8a47655f.js => index-5a4bf744.js} | 3 +- docs/assets/index-600c7863.js.map | 1 - docs/assets/index-61175cf0.js.map | 1 - .../{index-b1e8f807.js => index-6329c95a.js} | 3 +- .../{index-61175cf0.js => index-679b5f9b.js} | 3 +- .../{index-8b88db11.js => index-6ae1381f.js} | 3 +- .../{index-02e00647.js => index-6c8d164f.js} | 3 +- docs/assets/index-6fd5a17b.js | 24 ++ docs/assets/index-8a47655f.js.map | 1 - docs/assets/index-8b88db11.js.map | 1 - docs/assets/index-98a30f4c.js.map | 1 - docs/assets/index-9e101d18.js | 219 ---------- docs/assets/index-9e101d18.js.map | 1 - .../{index-357fb5a8.js => index-a55c3a76.js} | 3 +- docs/assets/index-a6fad04c.js.map | 1 - docs/assets/index-a84870aa.js.map | 1 - docs/assets/index-a99a88c4.js | 2 - docs/assets/index-a99a88c4.js.map | 1 - .../{index-98a30f4c.js => index-abb70d26.js} | 3 +- docs/assets/index-b1e8f807.js.map | 1 - docs/assets/index-bab1dca3.js.map | 1 - docs/assets/index-bda0bad7.js.map | 1 - docs/assets/index-bee62e41.js.map | 1 - .../{index-bee62e41.js => index-ccb0f6f2.js} | 3 +- .../{index-3a31de6a.js => index-cdaabc1d.js} | 3 +- .../{index-bab1dca3.js => index-cdac515a.js} | 3 +- docs/assets/index-d475d2ea.js | 2 - docs/assets/index-d475d2ea.js.map | 1 - docs/assets/index-d7bb098e.js | 3 + .../{index-ef45bb0a.js => index-e97e44e7.js} | 3 +- docs/assets/index-eb20e8d5.js | 1 + docs/assets/index-ebeaab24.js | 10 - docs/assets/index-ebeaab24.js.map | 1 - docs/assets/index-ef45bb0a.js.map | 1 - .../{index-a6fad04c.js => index-fa7a260c.js} | 3 +- docs/assets/preview-0b293f2a.js | 1 - docs/assets/preview-0b293f2a.js.map | 1 - docs/assets/preview-0ef86afd.js | 7 + docs/assets/preview-25cb0eda.js | 2 - docs/assets/preview-25cb0eda.js.map | 1 - docs/assets/preview-3141b428.js | 2 - docs/assets/preview-3141b428.js.map | 1 - docs/assets/preview-33e3abf1.css | 1 - ...review-e51c5dab.js => preview-42bbc794.js} | 14 +- docs/assets/preview-a60aa466.js | 2 - docs/assets/preview-a60aa466.js.map | 1 - docs/assets/preview-b79ea209.js | 8 - docs/assets/preview-b79ea209.js.map | 1 - docs/assets/preview-c56bf6ac.js | 1 + docs/assets/preview-c8403f04.css | 1 + docs/assets/preview-d01b88e8.js | 17 + docs/assets/preview-d8c963a4.js.map | 1 - ...review-d8c963a4.js => preview-da31036b.js} | 5 +- docs/assets/preview-e118a341.js | 1 + docs/assets/preview-e51c5dab.js.map | 1 - ...ct-18-8ac2d3a8.js => react-18-5df836b6.js} | 3 +- docs/assets/react-18-8ac2d3a8.js.map | 1 - .../syntaxhighlighter-2MZ4Y3HO-7c9541e0.js | 2 - ...syntaxhighlighter-2MZ4Y3HO-7c9541e0.js.map | 1 - .../syntaxhighlighter-V7JZZA35-554d6b8b.js | 1 + docs/assets/tw-merge-0a3648bd.js | 9 + docs/assets/tw-merge-fe695a60.js | 10 - docs/assets/tw-merge-fe695a60.js.map | 1 - docs/assets/useGlobalTheme-597f1778.js.map | 1 - ...597f1778.js => useGlobalTheme-d47a597b.js} | 3 +- .../{utils-50b96f3f.js => utils-25597068.js} | 3 +- docs/assets/utils-50b96f3f.js.map | 1 - docs/iframe.html | 6 +- docs/index.html | 3 +- docs/index.json | 2 +- docs/project.json | 2 +- .../essentials-actions-2/manager-bundle.js | 3 +- .../manager-bundle.js.map | 7 - .../essentials-controls-1/manager-bundle.js | 110 ++--- .../manager-bundle.js.map | 7 - .../essentials-measure-5/manager-bundle.js | 3 +- .../manager-bundle.js.map | 7 - .../essentials-outline-6/manager-bundle.js | 3 +- .../manager-bundle.js.map | 7 - .../essentials-toolbars-4/manager-bundle.js | 3 +- .../manager-bundle.js.map | 7 - .../essentials-viewport-3/manager-bundle.js | 3 +- .../manager-bundle.js.map | 7 - docs/sb-addons/storybook-7/manager-bundle.js | 3 +- .../storybook-7/manager-bundle.js.map | 7 - docs/sb-addons/styling-0/manager-bundle.js | 3 +- .../sb-addons/styling-0/manager-bundle.js.map | 7 - ...lobalScrollAreaStyles-DZEYMYDM-MLCKG773.js | 7 - .../OverlayScrollbars-OGE3XJTA-T3S33YR7.js | 1 - .../WithTooltip-SGMXWZWO-HCFC3XFC.js | 1 - .../WithTooltip-V3YHNWJZ-LVYLGZW2.js | 1 + docs/sb-manager/chunk-2IXBUOFS.js | 7 + docs/sb-manager/chunk-3FAXWWKG.js | 15 - docs/sb-manager/chunk-7CCV2CKD.js | 136 ------ docs/sb-manager/chunk-AS2AMEUR.js | 1 - docs/sb-manager/chunk-CBY7LR4Y.js | 403 ----------------- docs/sb-manager/chunk-DSMMRWXC.js | 406 ++++++++++++++++++ docs/sb-manager/chunk-FXGJ2IFE.js | 7 - docs/sb-manager/chunk-INSKDKQB.js | 348 +++++++++++++++ docs/sb-manager/chunk-KJEZFYE2.js | 207 --------- docs/sb-manager/chunk-NGTUFCUO.js | 9 + docs/sb-manager/chunk-R5BIZIS3.js | 1 - docs/sb-manager/chunk-ZEU7PDD3.js | 1 + ...U4TO.js => formatter-SWP5E3XI-7BGIK6BL.js} | 4 +- docs/sb-manager/globals-module-info.js | 1 + docs/sb-manager/globals.js | 2 +- docs/sb-manager/index.js | 2 +- docs/sb-manager/runtime.js | 2 +- .../syntaxhighlighter-2MZ4Y3HO-I2ULF7B3.js | 1 - .../syntaxhighlighter-V7JZZA35-DXZCI2WR.js | 1 + docs/sb-preview/globals.js | 2 +- docs/sb-preview/runtime.js | 47 +- docs/stories.json | 2 +- package-lock.json | 4 +- package.json | 2 +- 305 files changed, 2260 insertions(+), 2151 deletions(-) rename docs/assets/{Accordion.stories-fa0c3041.js => Accordion.stories-153ffdb7.js} (97%) delete mode 100644 docs/assets/Accordion.stories-fa0c3041.js.map rename docs/assets/{Alert.stories-5bf0c5c5.js => Alert.stories-1bc54e76.js} (53%) delete mode 100644 docs/assets/Alert.stories-5bf0c5c5.js.map delete mode 100644 docs/assets/Artboard.stories-71b3b8b3.js.map rename docs/assets/{Artboard.stories-71b3b8b3.js => Artboard.stories-82bdeecf.js} (91%) rename docs/assets/{Avatar.stories-53931cfb.js => Avatar.stories-17472006.js} (97%) delete mode 100644 docs/assets/Avatar.stories-53931cfb.js.map delete mode 100644 docs/assets/Badge.stories-0612fa64.js.map rename docs/assets/{Badge.stories-0612fa64.js => Badge.stories-91275a6d.js} (96%) delete mode 100644 docs/assets/BottomNavigation.stories-cb28db91.js.map rename docs/assets/{BottomNavigation.stories-cb28db91.js => BottomNavigation.stories-e1b3f548.js} (99%) delete mode 100644 docs/assets/Breadcrumbs.stories-07de829c.js delete mode 100644 docs/assets/Breadcrumbs.stories-07de829c.js.map create mode 100644 docs/assets/Breadcrumbs.stories-8ab9ebfa.js rename docs/assets/{BrowserMockup.stories-d83c0582.js => BrowserMockup.stories-8fc338cf.js} (94%) delete mode 100644 docs/assets/BrowserMockup.stories-d83c0582.js.map delete mode 100644 docs/assets/Button-28269a3e.js.map rename docs/assets/{Button-28269a3e.js => Button-e9ac0f78.js} (93%) delete mode 100644 docs/assets/Button.stories-2800153f.js.map rename docs/assets/{Button.stories-2800153f.js => Button.stories-2ecc1a31.js} (98%) delete mode 100644 docs/assets/ButtonGroup.stories-39d413ec.js delete mode 100644 docs/assets/ButtonGroup.stories-39d413ec.js.map rename docs/assets/{Card.stories-d6e2881e.js => Card.stories-7d9007ed.js} (93%) delete mode 100644 docs/assets/Card.stories-d6e2881e.js.map rename docs/assets/{Carousel.stories-a016a780.js => Carousel.stories-4b01da97.js} (96%) delete mode 100644 docs/assets/Carousel.stories-a016a780.js.map create mode 100644 docs/assets/ChatBubble.stories-11893b91.js delete mode 100644 docs/assets/ChatBubble.stories-c7a7a5ec.js delete mode 100644 docs/assets/ChatBubble.stories-c7a7a5ec.js.map rename docs/assets/{Checkbox.stories-f66f133f.js => Checkbox.stories-c0fcae51.js} (93%) delete mode 100644 docs/assets/Checkbox.stories-f66f133f.js.map rename docs/assets/{CodeMockup-da7333a5.js => CodeMockup-5ec72808.js} (91%) delete mode 100644 docs/assets/CodeMockup-da7333a5.js.map delete mode 100644 docs/assets/CodeMockup.stories-2383ec4f.js.map rename docs/assets/{CodeMockup.stories-2383ec4f.js => CodeMockup.stories-c54235b4.js} (94%) delete mode 100644 docs/assets/Collapse.stories-0fef9b46.js.map rename docs/assets/{Collapse.stories-0fef9b46.js => Collapse.stories-ee07c980.js} (97%) rename docs/assets/{CollapseContent-ad905ac7.js => CollapseContent-8035002f.js} (84%) delete mode 100644 docs/assets/CollapseContent-ad905ac7.js.map delete mode 100644 docs/assets/CollapseDetails.stories-8a831301.js.map rename docs/assets/{CollapseDetails.stories-8a831301.js => CollapseDetails.stories-af5e2dc5.js} (75%) delete mode 100644 docs/assets/Color-6VNJS4EI-1a288c68.js.map rename docs/assets/{Color-6VNJS4EI-1a288c68.js => Color-6VNJS4EI-fc9214ad.js} (99%) delete mode 100644 docs/assets/Countdown.stories-efdbe80b.js.map rename docs/assets/{Countdown.stories-efdbe80b.js => Countdown.stories-efe995ac.js} (52%) create mode 100644 docs/assets/Diff.stories-42040ab8.js delete mode 100644 docs/assets/Divider.stories-85991620.js delete mode 100644 docs/assets/Divider.stories-85991620.js.map create mode 100644 docs/assets/Divider.stories-8b6f67c7.js delete mode 100644 docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js delete mode 100644 docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js.map create mode 100644 docs/assets/DocsRenderer-NNNQARDV-d9907032.js delete mode 100644 docs/assets/Drawer.stories-0b40aea9.js.map rename docs/assets/{Drawer.stories-0b40aea9.js => Drawer.stories-3cceda62.js} (95%) delete mode 100644 docs/assets/Dropdown.stories-5c29f240.js.map rename docs/assets/{Dropdown.stories-5c29f240.js => Dropdown.stories-bf9b5a3e.js} (93%) delete mode 100644 docs/assets/DropdownDetails.stories-3cb1d73f.js.map rename docs/assets/{DropdownDetails.stories-3cb1d73f.js => DropdownDetails.stories-cfa84896.js} (72%) delete mode 100644 docs/assets/FileInput.stories-1eefb1aa.js delete mode 100644 docs/assets/FileInput.stories-1eefb1aa.js.map create mode 100644 docs/assets/FileInput.stories-3482d76d.js rename docs/assets/{Footer.stories-78425f9b.js => Footer.stories-1abc7582.js} (98%) delete mode 100644 docs/assets/Footer.stories-78425f9b.js.map delete mode 100644 docs/assets/GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js delete mode 100644 docs/assets/GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js.map delete mode 100644 docs/assets/Hero-0fe5bf28.js delete mode 100644 docs/assets/Hero-0fe5bf28.js.map create mode 100644 docs/assets/Hero-9639dab2.js delete mode 100644 docs/assets/Hero.stories-681595d7.js.map rename docs/assets/{Hero.stories-681595d7.js => Hero.stories-e9f74b65.js} (51%) delete mode 100644 docs/assets/Indicator.stories-bed5f78f.js.map rename docs/assets/{Indicator.stories-bed5f78f.js => Indicator.stories-f48c90e3.js} (96%) rename docs/assets/{Input.stories-695a54ef.js => Input.stories-66d78c5c.js} (91%) delete mode 100644 docs/assets/Input.stories-695a54ef.js.map delete mode 100644 docs/assets/InputGroup.stories-94555c36.js delete mode 100644 docs/assets/InputGroup.stories-94555c36.js.map delete mode 100644 docs/assets/Join-09755b13.js.map rename docs/assets/{Join-09755b13.js => Join-47e05b2f.js} (82%) rename docs/assets/{Join.stories-9aa12067.js => Join.stories-9383d512.js} (57%) delete mode 100644 docs/assets/Join.stories-9aa12067.js.map rename docs/assets/{Kbd.stories-a7318563.js => Kbd.stories-68acbd4b.js} (97%) delete mode 100644 docs/assets/Kbd.stories-a7318563.js.map delete mode 100644 docs/assets/Link.stories-815a71f6.js.map rename docs/assets/{Link.stories-815a71f6.js => Link.stories-a56412a8.js} (65%) rename docs/assets/{Loading.stories-b78468ff.js => Loading.stories-4d6dd8ad.js} (56%) delete mode 100644 docs/assets/Loading.stories-b78468ff.js.map rename docs/assets/{Mask.stories-1eb8a2ed.js => Mask.stories-07003ec5.js} (97%) delete mode 100644 docs/assets/Mask.stories-1eb8a2ed.js.map rename docs/assets/{Menu.stories-ee2c97cd.js => Menu.stories-1416ca38.js} (99%) delete mode 100644 docs/assets/Menu.stories-ee2c97cd.js.map delete mode 100644 docs/assets/Modal.stories-173e9588.js.map rename docs/assets/{Modal.stories-173e9588.js => Modal.stories-ce305c3b.js} (59%) rename docs/assets/{ModalLegacy.stories-cc92bbac.js => ModalLegacy.stories-c313fa45.js} (60%) delete mode 100644 docs/assets/ModalLegacy.stories-cc92bbac.js.map delete mode 100644 docs/assets/Navbar.stories-2a86976e.js.map rename docs/assets/{Navbar.stories-2a86976e.js => Navbar.stories-5c3fdc08.js} (97%) delete mode 100644 docs/assets/OverlayScrollbars-OGE3XJTA-2b8adb3a.js delete mode 100644 docs/assets/OverlayScrollbars-OGE3XJTA-2b8adb3a.js.map delete mode 100644 docs/assets/Pagination.stories-3bc44217.js.map rename docs/assets/{Pagination.stories-3bc44217.js => Pagination.stories-55abae79.js} (96%) delete mode 100644 docs/assets/PhoneMockup.stories-04f20d22.js.map rename docs/assets/{PhoneMockup.stories-04f20d22.js => PhoneMockup.stories-aaef4ddd.js} (91%) delete mode 100644 docs/assets/Progress.stories-615b8823.js.map rename docs/assets/{Progress.stories-615b8823.js => Progress.stories-c0a7b9ed.js} (57%) rename docs/assets/{RadialProgress.stories-fcb4ad29.js => RadialProgress.stories-85b2e777.js} (54%) delete mode 100644 docs/assets/RadialProgress.stories-fcb4ad29.js.map create mode 100644 docs/assets/Radio.stories-6447d64d.js delete mode 100644 docs/assets/Radio.stories-aa01485c.js delete mode 100644 docs/assets/Radio.stories-aa01485c.js.map create mode 100644 docs/assets/Range.stories-9e4759d9.js delete mode 100644 docs/assets/Range.stories-c481dc6f.js delete mode 100644 docs/assets/Range.stories-c481dc6f.js.map rename docs/assets/{Rating.stories-e521f6c2.js => Rating.stories-ce64c5ed.js} (98%) delete mode 100644 docs/assets/Rating.stories-e521f6c2.js.map delete mode 100644 docs/assets/Select.stories-b4d30651.js.map rename docs/assets/{Select.stories-b4d30651.js => Select.stories-bb92ac25.js} (95%) create mode 100644 docs/assets/Skeleton.stories-debfd09f.js delete mode 100644 docs/assets/Stack.stories-2b7d6f2f.js.map rename docs/assets/{Stack.stories-2b7d6f2f.js => Stack.stories-4b1fa1d7.js} (96%) rename docs/assets/{Stats.stories-8c4422bb.js => Stats.stories-4ee4a697.js} (54%) delete mode 100644 docs/assets/Stats.stories-8c4422bb.js.map delete mode 100644 docs/assets/Steps.stories-29daaf68.js.map rename docs/assets/{Steps.stories-29daaf68.js => Steps.stories-b79461a4.js} (97%) delete mode 100644 docs/assets/Swap.stories-52b5f6c6.js.map rename docs/assets/{Swap.stories-52b5f6c6.js => Swap.stories-996cc5a4.js} (96%) rename docs/assets/{Table.stories-8239817d.js => Table.stories-7f3bac29.js} (99%) delete mode 100644 docs/assets/Table.stories-8239817d.js.map delete mode 100644 docs/assets/Tabs.stories-85ce9ee5.js delete mode 100644 docs/assets/Tabs.stories-85ce9ee5.js.map create mode 100644 docs/assets/Tabs.stories-a7c49570.js delete mode 100644 docs/assets/Textarea.stories-2228775d.js.map rename docs/assets/{Textarea.stories-2228775d.js => Textarea.stories-684e9d32.js} (95%) delete mode 100644 docs/assets/Theme.stories-8c8d7c92.js.map rename docs/assets/{Theme.stories-8c8d7c92.js => Theme.stories-98a6e05a.js} (66%) create mode 100644 docs/assets/Timeline.stories-cbf3f07d.js delete mode 100644 docs/assets/Toast.stories-5ee9e44a.js delete mode 100644 docs/assets/Toast.stories-5ee9e44a.js.map create mode 100644 docs/assets/Toast.stories-8a8af9af.js rename docs/assets/{Toggle.stories-d43a9f3d.js => Toggle.stories-2c7a644f.js} (94%) delete mode 100644 docs/assets/Toggle.stories-d43a9f3d.js.map delete mode 100644 docs/assets/Tooltip.stories-827626aa.js.map rename docs/assets/{Tooltip.stories-827626aa.js => Tooltip.stories-a5d9ceb9.js} (60%) rename docs/assets/{Welcome-3f952cf3.js => Welcome-230771bb.js} (85%) delete mode 100644 docs/assets/Welcome-3f952cf3.js.map rename docs/assets/{WindowMockup.stories-e757efc7.js => WindowMockup.stories-636b25be.js} (96%) delete mode 100644 docs/assets/WindowMockup.stories-e757efc7.js.map delete mode 100644 docs/assets/WithTooltip-SGMXWZWO-57d6b612.js delete mode 100644 docs/assets/WithTooltip-SGMXWZWO-57d6b612.js.map create mode 100644 docs/assets/WithTooltip-V3YHNWJZ-cc2adff6.js delete mode 100644 docs/assets/chunk-H6ZRF7XV-146ce0bc.js.map rename docs/assets/{chunk-H6ZRF7XV-146ce0bc.js => chunk-ZGA76URP-2bd2442b.js} (73%) delete mode 100644 docs/assets/clsx.m-1229b3e0.js.map delete mode 100644 docs/assets/config-699c407d.js.map delete mode 100644 docs/assets/constants-fe73bc72.js.map create mode 100644 docs/assets/entry-preview-2845a20c.js rename docs/assets/{config-699c407d.js => entry-preview-docs-6c008c5e.js} (50%) delete mode 100644 docs/assets/formatter-OJ5LH2CX-b77969be.js.map rename docs/assets/{formatter-OJ5LH2CX-b77969be.js => formatter-SWP5E3XI-ec71aaad.js} (92%) create mode 100644 docs/assets/iframe-19c7c3ad.js delete mode 100644 docs/assets/iframe-4b2e3517.js delete mode 100644 docs/assets/iframe-4b2e3517.js.map delete mode 100644 docs/assets/index-02e00647.js.map delete mode 100644 docs/assets/index-04dafbc6.js.map delete mode 100644 docs/assets/index-057b6e0c.js delete mode 100644 docs/assets/index-057b6e0c.js.map delete mode 100644 docs/assets/index-073301bc.js delete mode 100644 docs/assets/index-073301bc.js.map create mode 100644 docs/assets/index-0dd2673f.js rename docs/assets/{index-04dafbc6.js => index-0ee0d1a2.js} (93%) rename docs/assets/{index-2cbf760d.js => index-147f7280.js} (86%) create mode 100644 docs/assets/index-1b03fe98.js rename docs/assets/{index-a84870aa.js => index-1c7a8ea4.js} (95%) rename docs/assets/{index-550801ef.js => index-1e3c83a2.js} (81%) create mode 100644 docs/assets/index-21c4db47.js delete mode 100644 docs/assets/index-2cbf760d.js.map rename docs/assets/{index-bda0bad7.js => index-2ef8b458.js} (79%) delete mode 100644 docs/assets/index-348f1b10.js.map delete mode 100644 docs/assets/index-356e4a49.js.map delete mode 100644 docs/assets/index-357fb5a8.js.map rename docs/assets/{index-348f1b10.js => index-3802c17c.js} (93%) delete mode 100644 docs/assets/index-3a31de6a.js.map rename docs/assets/{index-600c7863.js => index-3c968524.js} (95%) rename docs/assets/{index-5474795c.js => index-44e44375.js} (95%) delete mode 100644 docs/assets/index-5474795c.js.map delete mode 100644 docs/assets/index-550801ef.js.map rename docs/assets/{index-8a47655f.js => index-5a4bf744.js} (90%) delete mode 100644 docs/assets/index-600c7863.js.map delete mode 100644 docs/assets/index-61175cf0.js.map rename docs/assets/{index-b1e8f807.js => index-6329c95a.js} (86%) rename docs/assets/{index-61175cf0.js => index-679b5f9b.js} (86%) rename docs/assets/{index-8b88db11.js => index-6ae1381f.js} (95%) rename docs/assets/{index-02e00647.js => index-6c8d164f.js} (82%) create mode 100644 docs/assets/index-6fd5a17b.js delete mode 100644 docs/assets/index-8a47655f.js.map delete mode 100644 docs/assets/index-8b88db11.js.map delete mode 100644 docs/assets/index-98a30f4c.js.map delete mode 100644 docs/assets/index-9e101d18.js delete mode 100644 docs/assets/index-9e101d18.js.map rename docs/assets/{index-357fb5a8.js => index-a55c3a76.js} (91%) delete mode 100644 docs/assets/index-a6fad04c.js.map delete mode 100644 docs/assets/index-a84870aa.js.map delete mode 100644 docs/assets/index-a99a88c4.js delete mode 100644 docs/assets/index-a99a88c4.js.map rename docs/assets/{index-98a30f4c.js => index-abb70d26.js} (65%) delete mode 100644 docs/assets/index-b1e8f807.js.map delete mode 100644 docs/assets/index-bab1dca3.js.map delete mode 100644 docs/assets/index-bda0bad7.js.map delete mode 100644 docs/assets/index-bee62e41.js.map rename docs/assets/{index-bee62e41.js => index-ccb0f6f2.js} (93%) rename docs/assets/{index-3a31de6a.js => index-cdaabc1d.js} (85%) rename docs/assets/{index-bab1dca3.js => index-cdac515a.js} (93%) delete mode 100644 docs/assets/index-d475d2ea.js delete mode 100644 docs/assets/index-d475d2ea.js.map create mode 100644 docs/assets/index-d7bb098e.js rename docs/assets/{index-ef45bb0a.js => index-e97e44e7.js} (87%) create mode 100644 docs/assets/index-eb20e8d5.js delete mode 100644 docs/assets/index-ebeaab24.js delete mode 100644 docs/assets/index-ebeaab24.js.map delete mode 100644 docs/assets/index-ef45bb0a.js.map rename docs/assets/{index-a6fad04c.js => index-fa7a260c.js} (87%) delete mode 100644 docs/assets/preview-0b293f2a.js.map create mode 100644 docs/assets/preview-0ef86afd.js delete mode 100644 docs/assets/preview-25cb0eda.js delete mode 100644 docs/assets/preview-25cb0eda.js.map delete mode 100644 docs/assets/preview-3141b428.js delete mode 100644 docs/assets/preview-3141b428.js.map delete mode 100644 docs/assets/preview-33e3abf1.css rename docs/assets/{preview-e51c5dab.js => preview-42bbc794.js} (77%) delete mode 100644 docs/assets/preview-a60aa466.js delete mode 100644 docs/assets/preview-a60aa466.js.map delete mode 100644 docs/assets/preview-b79ea209.js delete mode 100644 docs/assets/preview-b79ea209.js.map create mode 100644 docs/assets/preview-c56bf6ac.js create mode 100644 docs/assets/preview-c8403f04.css create mode 100644 docs/assets/preview-d01b88e8.js delete mode 100644 docs/assets/preview-d8c963a4.js.map rename docs/assets/{preview-d8c963a4.js => preview-da31036b.js} (90%) create mode 100644 docs/assets/preview-e118a341.js delete mode 100644 docs/assets/preview-e51c5dab.js.map rename docs/assets/{react-18-8ac2d3a8.js => react-18-5df836b6.js} (70%) delete mode 100644 docs/assets/react-18-8ac2d3a8.js.map delete mode 100644 docs/assets/syntaxhighlighter-2MZ4Y3HO-7c9541e0.js delete mode 100644 docs/assets/syntaxhighlighter-2MZ4Y3HO-7c9541e0.js.map create mode 100644 docs/assets/syntaxhighlighter-V7JZZA35-554d6b8b.js create mode 100644 docs/assets/tw-merge-0a3648bd.js delete mode 100644 docs/assets/tw-merge-fe695a60.js delete mode 100644 docs/assets/tw-merge-fe695a60.js.map delete mode 100644 docs/assets/useGlobalTheme-597f1778.js.map rename docs/assets/{useGlobalTheme-597f1778.js => useGlobalTheme-d47a597b.js} (93%) rename docs/assets/{utils-50b96f3f.js => utils-25597068.js} (74%) delete mode 100644 docs/assets/utils-50b96f3f.js.map delete mode 100644 docs/sb-addons/essentials-actions-2/manager-bundle.js.map delete mode 100644 docs/sb-addons/essentials-controls-1/manager-bundle.js.map delete mode 100644 docs/sb-addons/essentials-measure-5/manager-bundle.js.map delete mode 100644 docs/sb-addons/essentials-outline-6/manager-bundle.js.map delete mode 100644 docs/sb-addons/essentials-toolbars-4/manager-bundle.js.map delete mode 100644 docs/sb-addons/essentials-viewport-3/manager-bundle.js.map delete mode 100644 docs/sb-addons/storybook-7/manager-bundle.js.map delete mode 100644 docs/sb-addons/styling-0/manager-bundle.js.map delete mode 100644 docs/sb-manager/GlobalScrollAreaStyles-DZEYMYDM-MLCKG773.js delete mode 100644 docs/sb-manager/OverlayScrollbars-OGE3XJTA-T3S33YR7.js delete mode 100644 docs/sb-manager/WithTooltip-SGMXWZWO-HCFC3XFC.js create mode 100644 docs/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js create mode 100644 docs/sb-manager/chunk-2IXBUOFS.js delete mode 100644 docs/sb-manager/chunk-3FAXWWKG.js delete mode 100644 docs/sb-manager/chunk-7CCV2CKD.js delete mode 100644 docs/sb-manager/chunk-AS2AMEUR.js delete mode 100644 docs/sb-manager/chunk-CBY7LR4Y.js create mode 100644 docs/sb-manager/chunk-DSMMRWXC.js delete mode 100644 docs/sb-manager/chunk-FXGJ2IFE.js create mode 100644 docs/sb-manager/chunk-INSKDKQB.js delete mode 100644 docs/sb-manager/chunk-KJEZFYE2.js create mode 100644 docs/sb-manager/chunk-NGTUFCUO.js delete mode 100644 docs/sb-manager/chunk-R5BIZIS3.js create mode 100644 docs/sb-manager/chunk-ZEU7PDD3.js rename docs/sb-manager/{formatter-OJ5LH2CX-IQX6U4TO.js => formatter-SWP5E3XI-7BGIK6BL.js} (92%) create mode 100644 docs/sb-manager/globals-module-info.js delete mode 100644 docs/sb-manager/syntaxhighlighter-2MZ4Y3HO-I2ULF7B3.js create mode 100644 docs/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d90e2c..d82bba2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## [5.0.0](https://github.com/daisyui/react-daisyui/compare/v4.1.2...v5.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* removes InputGroup and ButtonGroup components and changes tabs API + +### Features + +* **Diff:** Add Diff Component ([#430](https://github.com/daisyui/react-daisyui/issues/430)) ([858cd96](https://github.com/daisyui/react-daisyui/commit/858cd96514b9dcb0888c8a9f340db547a1e8b7d2)) +* exported new components ([28f2fc4](https://github.com/daisyui/react-daisyui/commit/28f2fc48e4c8cac7041ea8f24bcd4bb59a0df5cb)) +* **Skeleton:** Add skeleton component ([#429](https://github.com/daisyui/react-daisyui/issues/429)) ([d7af59e](https://github.com/daisyui/react-daisyui/commit/d7af59ee6a83afa7994f4507e5bd76f92fce25ec)) +* support daisyUI V4 ([#428](https://github.com/daisyui/react-daisyui/issues/428)) ([a835ccf](https://github.com/daisyui/react-daisyui/commit/a835ccfbd2aada01e362798a4490de35dffedb01)) +* **Timeline:** add timeline component ([#431](https://github.com/daisyui/react-daisyui/issues/431)) ([0a7d560](https://github.com/daisyui/react-daisyui/commit/0a7d56021950499ad523d53b429b47a15fccc6c3)) + + +### Bug Fixes + +* **Divider:** support v4 ([#434](https://github.com/daisyui/react-daisyui/issues/434)) ([f8dd4fd](https://github.com/daisyui/react-daisyui/commit/f8dd4fdd91aa9dcc028276955429c0a51764de3c)) +* **Tabs:** support v4 ([#433](https://github.com/daisyui/react-daisyui/issues/433)) ([2dfbf6f](https://github.com/daisyui/react-daisyui/commit/2dfbf6fe0b5e8b3750c5fdf4e3584bdea000fa18)) + + +### Miscellaneous + +* removed unused dependency ([63a042d](https://github.com/daisyui/react-daisyui/commit/63a042dd120dcd2e87670986fdc18e60354a775d)) + ## [4.1.2](https://github.com/daisyui/react-daisyui/compare/v4.1.1...v4.1.2) (2023-10-05) diff --git a/docs/assets/Accordion.stories-fa0c3041.js b/docs/assets/Accordion.stories-153ffdb7.js similarity index 97% rename from docs/assets/Accordion.stories-fa0c3041.js rename to docs/assets/Accordion.stories-153ffdb7.js index 24abdeab..a7f1b05a 100644 --- a/docs/assets/Accordion.stories-fa0c3041.js +++ b/docs/assets/Accordion.stories-153ffdb7.js @@ -1,4 +1,4 @@ -import{t as M,j as o,a as e,F as S}from"./tw-merge-fe695a60.js";import{r as D}from"./index-ebeaab24.js";import{c as W}from"./clsx.m-1229b3e0.js";import{C as q,a as V}from"./CollapseContent-ad905ac7.js";import{J as E}from"./Join-09755b13.js";const a=D.forwardRef(({name:c="accordion",icon:s,dataTheme:B,className:G,children:_,...y},J)=>{const j=M("collapse",W({"collapse-arrow":s==="arrow","collapse-plus":s==="plus"}),G);return o("div",{"data-theme":B,className:j,children:[e("input",{...y,ref:J,type:"radio",name:c}),_]})});a.displayName="Accordion";const n=Object.assign(a,{Title:q,Content:V});try{a.displayName="Accordion",a.__docgenInfo={description:"",displayName:"Accordion",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},name:{defaultValue:{value:"accordion"},description:"",name:"name",required:!1,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"arrow"'},{value:'"plus"'}]}}}}}catch{}const $={title:"Data Display/Accordion",component:n},t=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});t.args={className:"bg-base-200"};const l=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});l.args={className:"bg-base-200",icon:"arrow"};const r=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});r.args={className:"bg-base-200",icon:"plus"};const i=c=>o(E,{className:"w-full",vertical:!0,children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});i.args={className:"border border-base-300 join-item",icon:"arrow"};const d=c=>o(S,{children:[o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]})]}),o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]})]})]});d.args={className:"bg-base-200"};var m,h,p;t.parameters={...t.parameters,docs:{...(m=t.parameters)==null?void 0:m.docs,source:{originalSource:`args => { +import{t as M,a as o,j as e,F as S}from"./tw-merge-0a3648bd.js";import{r as D}from"./index-1b03fe98.js";import{c as W}from"./clsx.m-1229b3e0.js";import{C as q,a as V}from"./CollapseContent-8035002f.js";import{J as E}from"./Join-47e05b2f.js";const a=D.forwardRef(({name:c="accordion",icon:s,dataTheme:B,className:G,children:_,...y},J)=>{const j=M("collapse",W({"collapse-arrow":s==="arrow","collapse-plus":s==="plus"}),G);return o("div",{"data-theme":B,className:j,children:[e("input",{...y,ref:J,type:"radio",name:c}),_]})});a.displayName="Accordion";const n=Object.assign(a,{Title:q,Content:V});try{a.displayName="Accordion",a.__docgenInfo={description:"",displayName:"Accordion",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},name:{defaultValue:{value:"accordion"},description:"",name:"name",required:!1,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"arrow"'},{value:'"plus"'}]}}}}}catch{}const $={title:"Data Display/Accordion",component:n},t=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});t.args={className:"bg-base-200"};const l=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});l.args={className:"bg-base-200",icon:"arrow"};const r=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});r.args={className:"bg-base-200",icon:"plus"};const i=c=>o(E,{className:"w-full",vertical:!0,children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});i.args={className:"border border-base-300 join-item",icon:"arrow"};const d=c=>o(S,{children:[o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]})]}),o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]})]})]});d.args={className:"bg-base-200"};var m,h,p;t.parameters={...t.parameters,docs:{...(m=t.parameters)==null?void 0:m.docs,source:{originalSource:`args => { return
@@ -162,4 +162,3 @@ import{t as M,j as o,a as e,F as S}from"./tw-merge-fe695a60.js";import{r as D}fr
; }`,...(b=(w=d.parameters)==null?void 0:w.docs)==null?void 0:b.source}}};const z=["Default","WithArrow","WithPlusMinus","AndJoinTogether","Multiple"];export{i as AndJoinTogether,t as Default,d as Multiple,l as WithArrow,r as WithPlusMinus,z as __namedExportsOrder,$ as default}; -//# sourceMappingURL=Accordion.stories-fa0c3041.js.map diff --git a/docs/assets/Accordion.stories-fa0c3041.js.map b/docs/assets/Accordion.stories-fa0c3041.js.map deleted file mode 100644 index 36730c1c..00000000 --- a/docs/assets/Accordion.stories-fa0c3041.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Accordion.stories-fa0c3041.js","sources":["../../src/Accordion/Accordion.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nimport CollapseTitle from '../Collapse/CollapseTitle'\nimport CollapseContent from '../Collapse/CollapseContent'\n\nexport type AccordionProps = Omit<\n React.HTMLAttributes,\n 'type'\n> &\n IComponentBaseProps & {\n name?: string\n icon?: 'arrow' | 'plus'\n }\n\nconst Accordion = forwardRef(\n (\n { name = 'accordion', icon, dataTheme, className, children, ...props },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n 'collapse',\n clsx({\n 'collapse-arrow': icon === 'arrow',\n 'collapse-plus': icon === 'plus',\n }),\n className\n )\n\n return (\n
\n \n {children}\n
\n )\n }\n)\n\nAccordion.displayName = 'Accordion'\n\nexport default Object.assign(Accordion, {\n Title: CollapseTitle,\n Content: CollapseContent,\n})\n"],"names":["Accordion","forwardRef","name","icon","dataTheme","className","children","props","ref","classes","twMerge","clsx","jsxs","jsx","Accordion$1","CollapseTitle","CollapseContent"],"mappings":"iPAkBA,MAAAA,EAAAC,EAAA,WAAkB,CAAA,CAAA,KAAAC,EAAA,YAAA,KAAAC,EAAA,UAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAKd,MAAAC,EAAAC,EAAgB,WACdC,EAAA,CACK,iBAAAR,IAAA,QACwB,gBAAAA,IAAA,MACD,CAAA,EAC3BE,CACD,EAGF,OAAAO,EAAA,MAAA,CAAA,aAAAR,EAAA,UAAAK,EAAA,SAAA,CAEII,EAAA,QAAA,CAAA,GAAAN,EAAA,IAAAC,EAAA,KAAA,QAAA,KAAAN,EAAA,EAAqDI,CACpD,CAAA,CAAA,CACH,CAGN,EAEAN,EAAA,YAAA,YAEA,MAAAc,EAAA,OAAA,OAAAd,EAAA,CAAwC,MAAAe,EAC/B,QAAAC,CAET,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Alert.stories-5bf0c5c5.js b/docs/assets/Alert.stories-1bc54e76.js similarity index 53% rename from docs/assets/Alert.stories-5bf0c5c5.js rename to docs/assets/Alert.stories-1bc54e76.js index a9a39d88..1072644b 100644 --- a/docs/assets/Alert.stories-5bf0c5c5.js +++ b/docs/assets/Alert.stories-1bc54e76.js @@ -1,4 +1,4 @@ -import{a as r,j as h}from"./tw-merge-fe695a60.js";import{A as s}from"./index-a6fad04c.js";import{B as d}from"./Button-28269a3e.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const O={title:"Data Display/Alert",component:s,argTypes:{icon:{control:!1}}},n=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-info shrink-0 w-6 h-6",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:r("span",{children:"12 unread messages. Tap to see."})});n.args={};const o=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-current shrink-0 w-6 h-6",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:r("span",{children:"New software update available."})});o.args={status:"info"};const a=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",className:"stroke-current shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:r("span",{children:"Your purchase has been confirmed!"})});a.args={status:"success"};const t=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",className:"stroke-current shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),children:r("span",{children:"Warning: Invalid email address!"})});t.args={status:"warning"};const i=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",className:"stroke-current shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:r("span",{children:"Error! Task failed successfully."})});i.args={status:"error"};const c=e=>h(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-info shrink-0 w-6 h-6",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:[r("span",{children:"we use cookies for no reason."}),h("div",{className:"space-x-1",children:[r(d,{size:"sm",children:"Deny"}),r(d,{size:"sm",color:"primary",children:"Accept"})]})]});c.args={className:"shadow-lg"};const l=e=>h(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-info shrink-0 w-6 h-6",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:[h("div",{children:[r("h3",{className:"font-bold",children:"New message!"}),r("div",{className:"text-xs",children:"You have 1 unread message"})]}),r(d,{size:"sm",children:"See"})]});l.args={className:"shadow-lg"};var p,m,u;n.parameters={...n.parameters,docs:{...(p=n.parameters)==null?void 0:p.docs,source:{originalSource:`args => { +import{j as r,a as h}from"./tw-merge-0a3648bd.js";import{A as s}from"./index-fa7a260c.js";import{B as d}from"./Button-e9ac0f78.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const F={title:"Feedback/Alert",component:s,argTypes:{icon:{control:!1}}},n=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-info shrink-0 w-6 h-6",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:r("span",{children:"12 unread messages. Tap to see."})});n.args={};const o=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-current shrink-0 w-6 h-6",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:r("span",{children:"New software update available."})});o.args={status:"info"};const a=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",className:"stroke-current shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:r("span",{children:"Your purchase has been confirmed!"})});a.args={status:"success"};const t=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",className:"stroke-current shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),children:r("span",{children:"Warning: Invalid email address!"})});t.args={status:"warning"};const i=e=>r(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",className:"stroke-current shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:r("span",{children:"Error! Task failed successfully."})});i.args={status:"error"};const c=e=>h(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-info shrink-0 w-6 h-6",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:[r("span",{children:"we use cookies for no reason."}),h("div",{className:"space-x-1",children:[r(d,{size:"sm",children:"Deny"}),r(d,{size:"sm",color:"primary",children:"Accept"})]})]});c.args={className:"shadow-lg"};const l=e=>h(s,{...e,icon:r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-info shrink-0 w-6 h-6",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),children:[h("div",{children:[r("h3",{className:"font-bold",children:"New message!"}),r("div",{className:"text-xs",children:"You have 1 unread message"})]}),r(d,{size:"sm",children:"See"})]});l.args={className:"shadow-lg"};var p,m,u;n.parameters={...n.parameters,docs:{...(p=n.parameters)==null?void 0:p.docs,source:{originalSource:`args => { return }> @@ -40,7 +40,7 @@ import{a as r,j as h}from"./tw-merge-fe695a60.js";import{A as s}from"./index-a6f ; -}`,...(S=(j=c.parameters)==null?void 0:j.docs)==null?void 0:S.source}}};var y,C,D;l.parameters={...l.parameters,docs:{...(y=l.parameters)==null?void 0:y.docs,source:{originalSource:`args => { +}`,...(S=(j=c.parameters)==null?void 0:j.docs)==null?void 0:S.source}}};var C,b,y;l.parameters={...l.parameters,docs:{...(C=l.parameters)==null?void 0:C.docs,source:{originalSource:`args => { return }> @@ -50,5 +50,4 @@ import{a as r,j as h}from"./tw-merge-fe695a60.js";import{A as s}from"./index-a6f ; -}`,...(D=(C=l.parameters)==null?void 0:C.docs)==null?void 0:D.source}}};const q=["Default","InfoColor","SuccessColor","WarningColor","ErrorColor","WithButtons","WithTitleAndDescription"];export{n as Default,i as ErrorColor,o as InfoColor,a as SuccessColor,t as WarningColor,c as WithButtons,l as WithTitleAndDescription,q as __namedExportsOrder,O as default}; -//# sourceMappingURL=Alert.stories-5bf0c5c5.js.map +}`,...(y=(b=l.parameters)==null?void 0:b.docs)==null?void 0:y.source}}};const O=["Default","InfoColor","SuccessColor","WarningColor","ErrorColor","WithButtons","WithTitleAndDescription"];export{n as Default,i as ErrorColor,o as InfoColor,a as SuccessColor,t as WarningColor,c as WithButtons,l as WithTitleAndDescription,O as __namedExportsOrder,F as default}; diff --git a/docs/assets/Alert.stories-5bf0c5c5.js.map b/docs/assets/Alert.stories-5bf0c5c5.js.map deleted file mode 100644 index fc86fc0c..00000000 --- a/docs/assets/Alert.stories-5bf0c5c5.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Alert.stories-5bf0c5c5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Artboard.stories-71b3b8b3.js.map b/docs/assets/Artboard.stories-71b3b8b3.js.map deleted file mode 100644 index 5462e3fb..00000000 --- a/docs/assets/Artboard.stories-71b3b8b3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Artboard.stories-71b3b8b3.js","sources":["../../src/Artboard/Artboard.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type ArtboardProps = React.HTMLAttributes &\n IComponentBaseProps & {\n demo?: boolean\n size?: 1 | 2 | 3 | 4 | 5 | 6\n horizontal?: boolean\n }\n\nconst Artboard = forwardRef(\n (\n { children, demo = true, size, horizontal, dataTheme, className, ...props },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n 'artboard',\n className,\n clsx({\n 'artboard-demo': demo,\n 'phone-1': size === 1,\n 'phone-2': size === 2,\n 'phone-3': size === 3,\n 'phone-4': size === 4,\n 'phone-5': size === 5,\n 'phone-6': size === 6,\n horizontal: horizontal,\n })\n )\n\n return (\n \n {children}\n \n )\n }\n)\n\nArtboard.displayName = 'Artboard'\n\nexport default Artboard\n"],"names":["Artboard","forwardRef","children","demo","size","horizontal","dataTheme","className","props","ref","classes","twMerge","clsx","jsx","Artboard$1"],"mappings":"uIAaA,MAAAA,EAAAC,GAAA,WAAiB,CAAA,CAAA,SAAAC,EAAA,KAAAC,EAAA,GAAA,KAAAC,EAAA,WAAAC,GAAA,UAAAC,GAAA,UAAAC,GAAA,GAAAC,EAAA,EAAAC,KAAA,CAKb,MAAAC,GAAAC,GAAgB,WACdJ,GACAK,GAAA,CACK,gBAAAT,EACc,UAAAC,IAAA,EACG,UAAAA,IAAA,EACA,UAAAA,IAAA,EACA,UAAAA,IAAA,EACA,UAAAA,IAAA,EACA,UAAAA,IAAA,EACA,WAAAC,EACpB,CAAA,CACD,EAGH,OAAAQ,GACE,MAAC,CAAA,aAAA,WACY,GAAAL,GACP,IAAAC,GACJ,aAAAH,GACY,UAAAI,GACD,SAAAR,CAEV,CAAA,CACH,CAGN,EAEAF,EAAA,YAAA,WAEA,MAAAc,EAAAd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Artboard.stories-71b3b8b3.js b/docs/assets/Artboard.stories-82bdeecf.js similarity index 91% rename from docs/assets/Artboard.stories-71b3b8b3.js rename to docs/assets/Artboard.stories-82bdeecf.js index 9bc850f3..77d283f0 100644 --- a/docs/assets/Artboard.stories-71b3b8b3.js +++ b/docs/assets/Artboard.stories-82bdeecf.js @@ -1,4 +1,4 @@ -import{t as dr,a as rr}from"./tw-merge-fe695a60.js";import{r as ir}from"./index-ebeaab24.js";import{c as cr}from"./clsx.m-1229b3e0.js";const g=ir.forwardRef(({children:a,demo:b=!0,size:e,horizontal:er,dataTheme:ar,className:or,...nr},sr)=>{const tr=dr("artboard",or,cr({"artboard-demo":b,"phone-1":e===1,"phone-2":e===2,"phone-3":e===3,"phone-4":e===4,"phone-5":e===5,"phone-6":e===6,horizontal:er}));return rr("div",{"aria-label":"Artboard",...nr,ref:sr,"data-theme":ar,className:tr,children:a})});g.displayName="Artboard";const z=g;try{g.displayName="Artboard",g.__docgenInfo={description:"",displayName:"Artboard",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},demo:{defaultValue:{value:"true"},description:"",name:"demo",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:"4"},{value:"2"},{value:"1"},{value:"3"},{value:"5"},{value:"6"}]}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}}}}}catch{}try{z.displayName="Artboard",z.__docgenInfo={description:"",displayName:"Artboard",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},demo:{defaultValue:{value:"true"},description:"",name:"demo",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:"4"},{value:"2"},{value:"1"},{value:"3"},{value:"5"},{value:"6"}]}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}}}}}catch{}const mr={title:"Layout/Artboard",component:z},r=({children:a,...b})=>rr(z,{...b,children:a}),o=r.bind({});o.args={size:1,children:" 320×568"};const n=r.bind({});n.args={size:2,children:" 375×667"};const s=r.bind({});s.args={size:3,children:" 414×736"};const t=r.bind({});t.args={size:4,children:" 375×812"};const d=r.bind({});d.args={size:5,children:" 414×896"};const i=r.bind({});i.args={size:6,children:" 320×1024"};const c=r.bind({});c.args={size:1,children:"568×320",horizontal:!0};const l=r.bind({});l.args={size:2,children:" 667×375",horizontal:!0};const u=r.bind({});u.args={size:3,children:" 736×414",horizontal:!0};const p=r.bind({});p.args={size:4,children:" 812×375",horizontal:!0};const m=r.bind({});m.args={size:5,children:" 896×414",horizontal:!0};const h=r.bind({});h.args={size:6,children:" 1024×320",horizontal:!0};var A,S,f;o.parameters={...o.parameters,docs:{...(A=o.parameters)==null?void 0:A.docs,source:{originalSource:`({ +import{t as dr,j as rr}from"./tw-merge-0a3648bd.js";import{r as ir}from"./index-1b03fe98.js";import{c as cr}from"./clsx.m-1229b3e0.js";const g=ir.forwardRef(({children:a,demo:b=!0,size:e,horizontal:er,dataTheme:ar,className:or,...nr},sr)=>{const tr=dr("artboard",or,cr({"artboard-demo":b,"phone-1":e===1,"phone-2":e===2,"phone-3":e===3,"phone-4":e===4,"phone-5":e===5,"phone-6":e===6,horizontal:er}));return rr("div",{"aria-label":"Artboard",...nr,ref:sr,"data-theme":ar,className:tr,children:a})});g.displayName="Artboard";const z=g;try{g.displayName="Artboard",g.__docgenInfo={description:"",displayName:"Artboard",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},demo:{defaultValue:{value:"true"},description:"",name:"demo",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:"4"},{value:"2"},{value:"1"},{value:"3"},{value:"5"},{value:"6"}]}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}}}}}catch{}try{z.displayName="Artboard",z.__docgenInfo={description:"",displayName:"Artboard",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},demo:{defaultValue:{value:"true"},description:"",name:"demo",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:"4"},{value:"2"},{value:"1"},{value:"3"},{value:"5"},{value:"6"}]}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}}}}}catch{}const mr={title:"Layout/Artboard",component:z},r=({children:a,...b})=>rr(z,{...b,children:a}),o=r.bind({});o.args={size:1,children:" 320×568"};const n=r.bind({});n.args={size:2,children:" 375×667"};const s=r.bind({});s.args={size:3,children:" 414×736"};const t=r.bind({});t.args={size:4,children:" 375×812"};const d=r.bind({});d.args={size:5,children:" 414×896"};const i=r.bind({});i.args={size:6,children:" 320×1024"};const c=r.bind({});c.args={size:1,children:"568×320",horizontal:!0};const l=r.bind({});l.args={size:2,children:" 667×375",horizontal:!0};const u=r.bind({});u.args={size:3,children:" 736×414",horizontal:!0};const p=r.bind({});p.args={size:4,children:" 812×375",horizontal:!0};const m=r.bind({});m.args={size:5,children:" 896×414",horizontal:!0};const h=r.bind({});h.args={size:6,children:" 1024×320",horizontal:!0};var A,S,f;o.parameters={...o.parameters,docs:{...(A=o.parameters)==null?void 0:A.docs,source:{originalSource:`({ children, ...args }) => { @@ -18,17 +18,17 @@ import{t as dr,a as rr}from"./tw-merge-fe695a60.js";import{r as ir}from"./index- ...args }) => { return {children}; -}`,...(T=(x=t.parameters)==null?void 0:x.docs)==null?void 0:T.source}}};var w,D,E;d.parameters={...d.parameters,docs:{...(w=d.parameters)==null?void 0:w.docs,source:{originalSource:`({ +}`,...(T=(x=t.parameters)==null?void 0:x.docs)==null?void 0:T.source}}};var j,w,D;d.parameters={...d.parameters,docs:{...(j=d.parameters)==null?void 0:j.docs,source:{originalSource:`({ children, ...args }) => { return {children}; -}`,...(E=(D=d.parameters)==null?void 0:D.docs)==null?void 0:E.source}}};var I,j,L;i.parameters={...i.parameters,docs:{...(I=i.parameters)==null?void 0:I.docs,source:{originalSource:`({ +}`,...(D=(w=d.parameters)==null?void 0:w.docs)==null?void 0:D.source}}};var E,I,L;i.parameters={...i.parameters,docs:{...(E=i.parameters)==null?void 0:E.docs,source:{originalSource:`({ children, ...args }) => { return {children}; -}`,...(L=(j=i.parameters)==null?void 0:j.docs)==null?void 0:L.source}}};var M,O,R;c.parameters={...c.parameters,docs:{...(M=c.parameters)==null?void 0:M.docs,source:{originalSource:`({ +}`,...(L=(I=i.parameters)==null?void 0:I.docs)==null?void 0:L.source}}};var M,O,R;c.parameters={...c.parameters,docs:{...(M=c.parameters)==null?void 0:M.docs,source:{originalSource:`({ children, ...args }) => { @@ -59,4 +59,3 @@ import{t as dr,a as rr}from"./tw-merge-fe695a60.js";import{r as ir}from"./index- }) => { return {children}; }`,...(Z=(Y=h.parameters)==null?void 0:Y.docs)==null?void 0:Z.source}}};const hr=["Default","Size2","Size3","Size4","Size5","Size6","HorizontalSize1","HorizontalSize2","HorizontalSize3","HorizontalSize4","HorizontalSize5","HorizontalSize6"];export{o as Default,c as HorizontalSize1,l as HorizontalSize2,u as HorizontalSize3,p as HorizontalSize4,m as HorizontalSize5,h as HorizontalSize6,n as Size2,s as Size3,t as Size4,d as Size5,i as Size6,hr as __namedExportsOrder,mr as default}; -//# sourceMappingURL=Artboard.stories-71b3b8b3.js.map diff --git a/docs/assets/Avatar.stories-53931cfb.js b/docs/assets/Avatar.stories-17472006.js similarity index 97% rename from docs/assets/Avatar.stories-53931cfb.js rename to docs/assets/Avatar.stories-17472006.js index 959fe303..fe575449 100644 --- a/docs/assets/Avatar.stories-53931cfb.js +++ b/docs/assets/Avatar.stories-17472006.js @@ -1,4 +1,4 @@ -import{j as o,a as e}from"./tw-merge-fe695a60.js";import{A as r}from"./index-8b88db11.js";import{M as b}from"./index-348f1b10.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./utils-50b96f3f.js";const Cr={title:"Data Display/Avatar",component:r,argTypes:{size:{name:"size",control:{type:"radio"},options:["lg","md","sm","xs"]}},args:{innerClassName:"rounded",src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}},N=a=>e(r,{...a}),f=N.bind({}),n=N.bind({});n.args={shape:"circle",size:30};n.argTypes={size:{control:{type:"number",min:1,step:1}}};const u=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,size:"lg"}),e(r,{...a,size:"md"}),e(r,{...a,size:4*20}),e(r,{...a,size:4*16}),e(r,{...a,size:"sm"}),e(r,{...a,size:"xs"})]});u.argTypes={size:{control:!1}};const v=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,innerClassName:"rounded-xl"}),e(r,{...a,shape:"circle"})]});v.argTypes={shape:{control:!1},innerClassName:{control:!1}};const g=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,innerClassName:b.className({variant:"squircle"})}),e(r,{...a,innerClassName:b.className({variant:"hexagon"})}),e(r,{...a,innerClassName:b.className({variant:"triangle"})})]});g.argTypes={innerClassName:{control:!1}};const c=a=>o(r.Group,{children:[e(r,{...a}),e(r,{...a}),e(r,{...a}),e(r,{...a})]});c.args={size:"sm",innerClassName:""};c.argTypes={shape:{control:!1}};const l=({src:a,letters:t,...s})=>o(r.Group,{children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]});l.args={size:"sm",letters:"+99",innerClassName:""};l.argTypes={shape:{control:!1}};const i=({src:a,letters:t,...s})=>o("div",{className:"flex flex-col items-center gap-y-2",children:[o(r.Group,{className:"space-x-4",children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]}),o(r.Group,{className:"space-x-0",children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]}),o(r.Group,{className:"-space-x-4",children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]}),o(r.Group,{className:"-space-x-8",children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]})]});i.args={size:"sm",letters:"+99",innerClassName:""};i.argTypes={shape:{control:!1}};const A=N.bind({});A.args={border:!0,borderColor:"primary",shape:"circle"};const d=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,online:!0}),e(r,{...a,offline:!0})]});d.argTypes={online:{control:!1},offline:{control:!1}};d.args={innerClassName:"",shape:"circle"};const p=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,letters:"K",size:"lg"}),e(r,{...a,letters:"JO",size:"md",online:!0}),e(r,{...a,letters:"MX",size:"sm"}),e(r,{...a,letters:"AA",size:"xs"})]});p.argTypes={size:{control:!1},online:{control:!1},letters:{control:!1},src:{control:!1}};p.args={shape:"circle",src:""};const dr=o("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"600px",height:"600px",viewBox:"0 0 600 600",enableBackground:"new 0 0 600 600",children:[o("g",{id:"Layer_2",children:[e("path",{fill:"none",stroke:"#E91E63",strokeWidth:"24",strokeMiterlimit:"10",d:`M371.987,227.641 +import{a as o,j as e}from"./tw-merge-0a3648bd.js";import{A as r}from"./index-6ae1381f.js";import{M as b}from"./index-3802c17c.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./utils-25597068.js";const Cr={title:"Data Display/Avatar",component:r,argTypes:{size:{name:"size",control:{type:"radio"},options:["lg","md","sm","xs"]}},args:{innerClassName:"rounded",src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}},N=a=>e(r,{...a}),f=N.bind({}),n=N.bind({});n.args={shape:"circle",size:30};n.argTypes={size:{control:{type:"number",min:1,step:1}}};const u=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,size:"lg"}),e(r,{...a,size:"md"}),e(r,{...a,size:4*20}),e(r,{...a,size:4*16}),e(r,{...a,size:"sm"}),e(r,{...a,size:"xs"})]});u.argTypes={size:{control:!1}};const v=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,innerClassName:"rounded-xl"}),e(r,{...a,shape:"circle"})]});v.argTypes={shape:{control:!1},innerClassName:{control:!1}};const g=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,innerClassName:b.className({variant:"squircle"})}),e(r,{...a,innerClassName:b.className({variant:"hexagon"})}),e(r,{...a,innerClassName:b.className({variant:"triangle"})})]});g.argTypes={innerClassName:{control:!1}};const c=a=>o(r.Group,{children:[e(r,{...a}),e(r,{...a}),e(r,{...a}),e(r,{...a})]});c.args={size:"sm",innerClassName:""};c.argTypes={shape:{control:!1}};const l=({src:a,letters:t,...s})=>o(r.Group,{children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]});l.args={size:"sm",letters:"+99",innerClassName:""};l.argTypes={shape:{control:!1}};const i=({src:a,letters:t,...s})=>o("div",{className:"flex flex-col items-center gap-y-2",children:[o(r.Group,{className:"space-x-4",children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]}),o(r.Group,{className:"space-x-0",children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]}),o(r.Group,{className:"-space-x-4",children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]}),o(r.Group,{className:"-space-x-8",children:[e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,src:a}),e(r,{...s,letters:t})]})]});i.args={size:"sm",letters:"+99",innerClassName:""};i.argTypes={shape:{control:!1}};const A=N.bind({});A.args={border:!0,borderColor:"primary",shape:"circle"};const d=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,online:!0}),e(r,{...a,offline:!0})]});d.argTypes={online:{control:!1},offline:{control:!1}};d.args={innerClassName:"",shape:"circle"};const p=a=>o("div",{className:"flex items-center gap-4",children:[e(r,{...a,letters:"K",size:"lg"}),e(r,{...a,letters:"JO",size:"md",online:!0}),e(r,{...a,letters:"MX",size:"sm"}),e(r,{...a,letters:"AA",size:"xs"})]});p.argTypes={size:{control:!1},online:{control:!1},letters:{control:!1},src:{control:!1}};p.args={shape:"circle",src:""};const dr=o("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"600px",height:"600px",viewBox:"0 0 600 600",enableBackground:"new 0 0 600 600",children:[o("g",{id:"Layer_2",children:[e("path",{fill:"none",stroke:"#E91E63",strokeWidth:"24",strokeMiterlimit:"10",d:`M371.987,227.641 c47.628,47.628,85.039,98.708,106.914,143.552c26.358,54.033,30.096,99.722,11.103,118.714 c-19.793,19.793-68.267,15.884-125.731-12.979c-43.445-21.821-92.031-59.119-137.242-104.331 c-46.354-46.354-84.95-95.545-106.667-139.816c-27.48-56.023-30.057-103.743-10.643-123.157 @@ -144,4 +144,3 @@ import{j as o,a as e}from"./tw-merge-fe695a60.js";import{A as r}from"./index-8b8 ; }`,...(ir=(lr=m.parameters)==null?void 0:lr.docs)==null?void 0:ir.source}}};const hr=["Default","CustomSize","Sizes","Rounded","WithMask","Group","GroupWithCounter","GroupSpaceBetween","Ring","PresenceIndicator","Placeholder","WithSvg","MultipleChildren","Colors"];export{m as Colors,n as CustomSize,f as Default,c as Group,i as GroupSpaceBetween,l as GroupWithCounter,h as MultipleChildren,p as Placeholder,d as PresenceIndicator,A as Ring,v as Rounded,u as Sizes,g as WithMask,C as WithSvg,hr as __namedExportsOrder,Cr as default}; -//# sourceMappingURL=Avatar.stories-53931cfb.js.map diff --git a/docs/assets/Avatar.stories-53931cfb.js.map b/docs/assets/Avatar.stories-53931cfb.js.map deleted file mode 100644 index 3ed1095a..00000000 --- a/docs/assets/Avatar.stories-53931cfb.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Avatar.stories-53931cfb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Badge.stories-0612fa64.js.map b/docs/assets/Badge.stories-0612fa64.js.map deleted file mode 100644 index cdc389b8..00000000 --- a/docs/assets/Badge.stories-0612fa64.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Badge.stories-0612fa64.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Badge.stories-0612fa64.js b/docs/assets/Badge.stories-91275a6d.js similarity index 96% rename from docs/assets/Badge.stories-0612fa64.js rename to docs/assets/Badge.stories-91275a6d.js index e9b34206..ebb6e5f2 100644 --- a/docs/assets/Badge.stories-0612fa64.js +++ b/docs/assets/Badge.stories-91275a6d.js @@ -1,4 +1,4 @@ -import{a as r,j as s}from"./tw-merge-fe695a60.js";import{B as n}from"./index-bee62e41.js";import{B as m}from"./Button-28269a3e.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const J={title:"Data Display/Badge",component:n},a=e=>r(n,{...e,children:"Badge"});a.args={};const l=e=>s("div",{className:"flex gap-2 items-center",children:[r(n,{...e,children:"default"}),r(n,{...e,color:"neutral",children:"neutral"}),r(n,{...e,color:"primary",children:"primary"}),r(n,{...e,color:"secondary",children:"secondary"}),r(n,{...e,color:"accent",children:"accent"}),r(n,{...e,color:"ghost",children:"ghost"})]}),o=e=>s("div",{className:"flex gap-2 items-center",children:[r(n,{...e,children:"default"}),r(n,{...e,color:"primary",children:"primary"}),r(n,{...e,color:"secondary",children:"secondary"}),r(n,{...e,color:"accent",children:"accent"})]});o.args={variant:"outline"};const g=e=>s("div",{className:"flex gap-2 items-center",children:[r(n,{...e,size:"lg",children:"987,654"}),r(n,{...e,size:"md",children:"987,654"}),r(n,{...e,size:"sm",children:"987,654"}),r(n,{...e,size:"xs",children:"987,654"})]}),t=e=>s("div",{className:"flex gap-2 items-center",children:[r(n,{...e,size:"lg"}),r(n,{...e,size:"md"}),r(n,{...e,size:"sm"}),r(n,{...e,size:"xs"})]});t.args={color:"primary"};const c=e=>s("div",{className:"flex gap-2 items-center",children:[s(n,{...e,color:"info",children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-4 h-4 stroke-current",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),"info"]}),s(n,{...e,color:"success",children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-4 h-4 stroke-current",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),"success"]}),s(n,{...e,color:"warning",children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-4 h-4 stroke-current",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),"warning"]}),s(n,{...e,color:"error",children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-4 h-4 stroke-current",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),"error"]})]});c.args={className:"gap-2"};const i=e=>s("div",{className:"flex flex-col gap-2 items-center",children:[s("h2",{className:"text-xl",children:["Heading",r(n,{...e,size:"lg",children:"NEW"})]}),s("h3",{className:"text-xl",children:["Heading",r(n,{...e,size:"md",children:"NEW"})]}),s("h4",{className:"text-base",children:["Heading",r(n,{...e,size:"sm",children:"NEW"})]}),s("h5",{className:"text-sm",children:["Heading",r(n,{...e,size:"xs",children:"NEW"})]})]});i.args={};const d=e=>s("div",{className:"flex gap-2 items-center",children:[s(m,{children:["Inbox",r(n,{...e,children:"+99"})]}),s(m,{children:["Inbox",r(n,{...e,color:"secondary",children:"+99"})]})]});d.args={};var p,h,u;a.parameters={...a.parameters,docs:{...(p=a.parameters)==null?void 0:p.docs,source:{originalSource:`args => { +import{j as r,a as s}from"./tw-merge-0a3648bd.js";import{B as n}from"./index-ccb0f6f2.js";import{B as m}from"./Button-e9ac0f78.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const J={title:"Data Display/Badge",component:n},a=e=>r(n,{...e,children:"Badge"});a.args={};const l=e=>s("div",{className:"flex gap-2 items-center",children:[r(n,{...e,children:"default"}),r(n,{...e,color:"neutral",children:"neutral"}),r(n,{...e,color:"primary",children:"primary"}),r(n,{...e,color:"secondary",children:"secondary"}),r(n,{...e,color:"accent",children:"accent"}),r(n,{...e,color:"ghost",children:"ghost"})]}),o=e=>s("div",{className:"flex gap-2 items-center",children:[r(n,{...e,children:"default"}),r(n,{...e,color:"primary",children:"primary"}),r(n,{...e,color:"secondary",children:"secondary"}),r(n,{...e,color:"accent",children:"accent"})]});o.args={variant:"outline"};const g=e=>s("div",{className:"flex gap-2 items-center",children:[r(n,{...e,size:"lg",children:"987,654"}),r(n,{...e,size:"md",children:"987,654"}),r(n,{...e,size:"sm",children:"987,654"}),r(n,{...e,size:"xs",children:"987,654"})]}),t=e=>s("div",{className:"flex gap-2 items-center",children:[r(n,{...e,size:"lg"}),r(n,{...e,size:"md"}),r(n,{...e,size:"sm"}),r(n,{...e,size:"xs"})]});t.args={color:"primary"};const c=e=>s("div",{className:"flex gap-2 items-center",children:[s(n,{...e,color:"info",children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-4 h-4 stroke-current",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),"info"]}),s(n,{...e,color:"success",children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-4 h-4 stroke-current",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),"success"]}),s(n,{...e,color:"warning",children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-4 h-4 stroke-current",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),"warning"]}),s(n,{...e,color:"error",children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-4 h-4 stroke-current",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),"error"]})]});c.args={className:"gap-2"};const i=e=>s("div",{className:"flex flex-col gap-2 items-center",children:[s("h2",{className:"text-xl",children:["Heading",r(n,{...e,size:"lg",children:"NEW"})]}),s("h3",{className:"text-xl",children:["Heading",r(n,{...e,size:"md",children:"NEW"})]}),s("h4",{className:"text-base",children:["Heading",r(n,{...e,size:"sm",children:"NEW"})]}),s("h5",{className:"text-sm",children:["Heading",r(n,{...e,size:"xs",children:"NEW"})]})]});i.args={};const d=e=>s("div",{className:"flex gap-2 items-center",children:[s(m,{children:["Inbox",r(n,{...e,children:"+99"})]}),s(m,{children:["Inbox",r(n,{...e,color:"secondary",children:"+99"})]})]});d.args={};var p,h,u;a.parameters={...a.parameters,docs:{...(p=a.parameters)==null?void 0:p.docs,source:{originalSource:`args => { return Badge; }`,...(u=(h=a.parameters)==null?void 0:h.docs)==null?void 0:u.source}}};var B,x,w;l.parameters={...l.parameters,docs:{...(B=l.parameters)==null?void 0:B.docs,source:{originalSource:`args => { return
@@ -123,4 +123,3 @@ import{a as r,j as s}from"./tw-merge-fe695a60.js";import{B as n}from"./index-bee
; }`,...(O=(D=d.parameters)==null?void 0:D.docs)==null?void 0:O.source}}};const K=["Default","BrandColors","Outline","Sizes","Empty","StateColors","BadgeInText","BadgeInAButton"];export{d as BadgeInAButton,i as BadgeInText,l as BrandColors,a as Default,t as Empty,o as Outline,g as Sizes,c as StateColors,K as __namedExportsOrder,J as default}; -//# sourceMappingURL=Badge.stories-0612fa64.js.map diff --git a/docs/assets/BottomNavigation.stories-cb28db91.js.map b/docs/assets/BottomNavigation.stories-cb28db91.js.map deleted file mode 100644 index 37595004..00000000 --- a/docs/assets/BottomNavigation.stories-cb28db91.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BottomNavigation.stories-cb28db91.js","sources":["../../src/BottomNavigation/BottomNavigationItem.tsx","../../src/BottomNavigation/BottomNavigationLabel.tsx","../../src/BottomNavigation/BottomNavigation.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport {\n IComponentBaseProps,\n ComponentBrandColors,\n ComponentStatus,\n} from '../types'\n\nexport type BottomNavigationItemProps =\n React.ButtonHTMLAttributes &\n IComponentBaseProps & {\n color?: ComponentBrandColors | ComponentStatus\n active?: boolean\n }\n\nconst BottomNavigationItem = forwardRef<\n HTMLButtonElement,\n BottomNavigationItemProps\n>(\n (\n { children, className, color, dataTheme, active, disabled, ...props },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n className,\n clsx({\n 'text-neutral': color === 'neutral',\n 'text-primary': color === 'primary',\n 'text-secondary': color === 'secondary',\n 'text-accent': color === 'accent',\n 'text-info': color === 'info',\n 'text-success': color === 'success',\n 'text-warning': color === 'warning',\n 'text-error': color === 'error',\n active: active,\n disabled: disabled,\n })\n )\n return (\n \n )\n }\n)\n\nexport default BottomNavigationItem\n","import React, { forwardRef } from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nexport type BottomNavigationLabelProps = React.HTMLAttributes\n\nconst BottomNavigationLabel = forwardRef<\n HTMLSpanElement,\n BottomNavigationLabelProps\n>(({ children, className, ...props }, ref): JSX.Element => {\n const classes = twMerge('btm-nav-label', className)\n return (\n \n {children}\n \n )\n})\n\nexport default BottomNavigationLabel\n","import React, { forwardRef } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps, ComponentSize } from '../types'\n\nimport BottomNavigationItem, {\n BottomNavigationItemProps as ItemProps,\n} from './BottomNavigationItem'\nimport BottomNavigationLabel, {\n BottomNavigationLabelProps as LabelProps,\n} from './BottomNavigationLabel'\n\nexport type BottomNavigationItemProps = ItemProps\nexport type BottomNavigationLabelProps = LabelProps\n\nexport type BottomNavigationProps = React.HTMLAttributes &\n IComponentBaseProps & {\n size?: ComponentSize\n }\n\nconst BottomNavigation = forwardRef(\n ({ size, dataTheme, className, children, ...props }, ref): JSX.Element => {\n const classes = twMerge(\n 'btm-nav',\n clsx({\n 'btm-nav-lg': size === 'lg',\n 'btm-nav-md': size === 'md',\n 'btm-nav-sm': size === 'sm',\n 'btm-nav-xs': size === 'xs',\n }),\n className\n )\n\n return (\n \n {children}\n \n )\n }\n)\n\nBottomNavigation.displayName = 'BottomNavigation'\n\nexport default Object.assign(BottomNavigation, {\n Item: BottomNavigationItem,\n Label: BottomNavigationLabel,\n})\n"],"names":["BottomNavigationItem","forwardRef","children","className","color","dataTheme","active","disabled","props","ref","classes","twMerge","clsx","jsx","BottomNavigationItem$1","BottomNavigationLabel","BottomNavigationLabel$1","BottomNavigation","size","BottomNavigation$1"],"mappings":"iJAiBA,MAAAA,EAAAC,EAAA,WAA6B,CAAA,CAAA,SAAAC,EAAA,UAAAC,EAAA,MAAAC,EAAA,UAAAC,EAAA,OAAAC,EAAA,SAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAQzB,MAAAC,EAAAC,EAAgBR,EACdS,EAAA,CACK,eAAAR,IAAA,UACuB,eAAAA,IAAA,UACA,iBAAAA,IAAA,YACE,cAAAA,IAAA,SACH,YAAAA,IAAA,OACF,eAAAA,IAAA,UACG,eAAAA,IAAA,UACA,aAAAA,IAAA,QACF,OAAAE,EACxB,SAAAC,CACA,CAAA,CACD,EAEH,OAAAM,EAAA,SAAA,CAAA,GAAAL,EAAA,UAAAE,EAAA,aAAAL,EA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-e1b3f548.js similarity index 99% rename from docs/assets/BottomNavigation.stories-cb28db91.js rename to docs/assets/BottomNavigation.stories-e1b3f548.js index c4e6c58c..2ffb88a7 100644 --- a/docs/assets/BottomNavigation.stories-cb28db91.js +++ b/docs/assets/BottomNavigation.stories-e1b3f548.js @@ -1,4 +1,4 @@ -import{t as x,a as o,j as e,F as u}from"./tw-merge-fe695a60.js";import{r as L}from"./index-ebeaab24.js";import{c as A}from"./clsx.m-1229b3e0.js";const N=L.forwardRef(({children:a,className:r,color:n,dataTheme:s,active:i,disabled:k,...p},G)=>{const J=x(r,A({"text-neutral":n==="neutral","text-primary":n==="primary","text-secondary":n==="secondary","text-accent":n==="accent","text-info":n==="info","text-success":n==="success","text-warning":n==="warning","text-error":n==="error",active:i,disabled:k}));return o("button",{...p,className:J,"data-theme":s,ref:G,children:a})}),K=N;try{N.displayName="BottomNavigationItem",N.__docgenInfo={description:"",displayName:"BottomNavigationItem",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}}}}}catch{}const B=L.forwardRef(({children:a,className:r,...n},s)=>{const i=x("btm-nav-label",r);return o("span",{...n,className:i,ref:s,children:a})}),P=B;try{B.displayName="BottomNavigationLabel",B.__docgenInfo={description:"",displayName:"BottomNavigationLabel",props:{}}}catch{}const g=L.forwardRef(({size:a,dataTheme:r,className:n,children:s,...i},k)=>{const p=x("btm-nav",A({"btm-nav-lg":a==="lg","btm-nav-md":a==="md","btm-nav-sm":a==="sm","btm-nav-xs":a==="xs"}),n);return o("div",{...i,role:"navigation","data-theme":r,className:p,ref:k,children:s})});g.displayName="BottomNavigation";const t=Object.assign(g,{Item:K,Label:P});try{g.displayName="BottomNavigation",g.__docgenInfo={description:"",displayName:"BottomNavigation",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}}}}}catch{}const Y={title:"Navigation/BottomNavigation",component:t,parameters:{controls:{expanded:!0}},argTypes:{children:{control:!1}},args:{className:"relative"}},m=a=>e(t,{...a,children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),l=a=>e(u,{children:[e(t,{...a,children:[o(t.Item,{color:"primary",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"primary",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"primary",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"secondary",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"secondary",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"secondary",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"accent",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"accent",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"accent",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]})]}),v=a=>e(u,{children:[e(t,{...a,children:[o(t.Item,{color:"info",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"info",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"info",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"success",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"success",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"success",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"warning",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"warning",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"warning",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"error",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"error",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"error",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]})]}),c=a=>e(t,{...a,children:[e(t.Item,{children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),o(t.Label,{children:"Home"})]}),e(t.Item,{active:!0,children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o(t.Label,{children:"Warnings"})]}),e(t.Item,{children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})}),o(t.Label,{children:"Statics"})]})]}),d=a=>e(t,{...a,children:[e(t.Item,{className:"bg-pink-200 text-pink-600",children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),o(t.Label,{children:"Home"})]}),e(t.Item,{active:!0,className:"bg-blue-200 text-blue-600 border-blue-600",children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o(t.Label,{children:"Warnings"})]}),e(t.Item,{className:"bg-teal-200 text-teal-600",children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})}),o(t.Label,{children:"Statics"})]})]}),h=a=>e(u,{children:[e(t,{...a,size:"xs",children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,size:"sm",children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,size:"md",children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,size:"lg",children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]})]});h.argTypes={size:{control:!1}};const w=a=>e(u,{children:[e(t,{...a,children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{disabled:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{className:"disabled",tabIndex:-1,role:"button","aria-disabled":"true",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]})]});var M,I,f;m.parameters={...m.parameters,docs:{...(M=m.parameters)==null?void 0:M.docs,source:{originalSource:`args => { +import{t as x,j as o,a as e,F as u}from"./tw-merge-0a3648bd.js";import{r as L}from"./index-1b03fe98.js";import{c as A}from"./clsx.m-1229b3e0.js";const N=L.forwardRef(({children:a,className:r,color:n,dataTheme:s,active:i,disabled:k,...p},G)=>{const J=x(r,A({"text-neutral":n==="neutral","text-primary":n==="primary","text-secondary":n==="secondary","text-accent":n==="accent","text-info":n==="info","text-success":n==="success","text-warning":n==="warning","text-error":n==="error",active:i,disabled:k}));return o("button",{...p,className:J,"data-theme":s,ref:G,children:a})}),K=N;try{N.displayName="BottomNavigationItem",N.__docgenInfo={description:"",displayName:"BottomNavigationItem",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}}}}}catch{}const B=L.forwardRef(({children:a,className:r,...n},s)=>{const i=x("btm-nav-label",r);return o("span",{...n,className:i,ref:s,children:a})}),P=B;try{B.displayName="BottomNavigationLabel",B.__docgenInfo={description:"",displayName:"BottomNavigationLabel",props:{}}}catch{}const g=L.forwardRef(({size:a,dataTheme:r,className:n,children:s,...i},k)=>{const p=x("btm-nav",A({"btm-nav-lg":a==="lg","btm-nav-md":a==="md","btm-nav-sm":a==="sm","btm-nav-xs":a==="xs"}),n);return o("div",{...i,role:"navigation","data-theme":r,className:p,ref:k,children:s})});g.displayName="BottomNavigation";const t=Object.assign(g,{Item:K,Label:P});try{g.displayName="BottomNavigation",g.__docgenInfo={description:"",displayName:"BottomNavigation",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}}}}}catch{}const Y={title:"Navigation/BottomNavigation",component:t,parameters:{controls:{expanded:!0}},argTypes:{children:{control:!1}},args:{className:"relative"}},m=a=>e(t,{...a,children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),l=a=>e(u,{children:[e(t,{...a,children:[o(t.Item,{color:"primary",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"primary",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"primary",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"secondary",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"secondary",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"secondary",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"accent",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"accent",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"accent",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]})]}),v=a=>e(u,{children:[e(t,{...a,children:[o(t.Item,{color:"info",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"info",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"info",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"success",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"success",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"success",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"warning",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"warning",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"warning",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{color:"error",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{color:"error",active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{color:"error",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]})]}),c=a=>e(t,{...a,children:[e(t.Item,{children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),o(t.Label,{children:"Home"})]}),e(t.Item,{active:!0,children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o(t.Label,{children:"Warnings"})]}),e(t.Item,{children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})}),o(t.Label,{children:"Statics"})]})]}),d=a=>e(t,{...a,children:[e(t.Item,{className:"bg-pink-200 text-pink-600",children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),o(t.Label,{children:"Home"})]}),e(t.Item,{active:!0,className:"bg-blue-200 text-blue-600 border-blue-600",children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o(t.Label,{children:"Warnings"})]}),e(t.Item,{className:"bg-teal-200 text-teal-600",children:[o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})}),o(t.Label,{children:"Statics"})]})]}),h=a=>e(u,{children:[e(t,{...a,size:"xs",children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,size:"sm",children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,size:"md",children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,size:"lg",children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{active:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]})]});h.argTypes={size:{control:!1}};const w=a=>e(u,{children:[e(t,{...a,children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{disabled:!0,children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]}),e(t,{...a,children:[o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}),o(t.Item,{className:"disabled",tabIndex:-1,role:"button","aria-disabled":"true",children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),o(t.Item,{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})]})]});var M,I,f;m.parameters={...m.parameters,docs:{...(M=m.parameters)==null?void 0:M.docs,source:{originalSource:`args => { return @@ -300,4 +300,3 @@ import{t as x,a as o,j as e,F as u}from"./tw-merge-fe695a60.js";import{r as L}fr ; }`,...(O=(F=w.parameters)==null?void 0:F.docs)==null?void 0:O.source}}};const Z=["Default","BrandColors","StateColors","Title","CustomColor","Sizes","DisabledButtons"];export{l as BrandColors,d as CustomColor,m as Default,w as DisabledButtons,h as Sizes,v as StateColors,c as Title,Z as __namedExportsOrder,Y as default}; -//# sourceMappingURL=BottomNavigation.stories-cb28db91.js.map diff --git a/docs/assets/Breadcrumbs.stories-07de829c.js b/docs/assets/Breadcrumbs.stories-07de829c.js deleted file mode 100644 index 63329794..00000000 --- a/docs/assets/Breadcrumbs.stories-07de829c.js +++ /dev/null @@ -1,37 +0,0 @@ -import{a as e,F as y,t as H,j as a}from"./tw-merge-fe695a60.js";import{R as L}from"./index-ebeaab24.js";const i=L.forwardRef(({children:t,href:s,...d},c)=>e("li",{role:"link",...d,ref:c,children:s?e("a",{href:s,children:t}):e(y,{children:t})})),M=i;try{i.displayName="BreadcrumbsItem",i.__docgenInfo={description:"",displayName:"BreadcrumbsItem",props:{href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"string"}}}}}catch{}const u=L.forwardRef(({children:t,dataTheme:s,className:d,innerProps:c,innerRef:x,...v},_)=>{const k=H("breadcrumbs","text-sm",d);return e("div",{role:"navigation","aria-label":"Breadcrumbs",...v,"data-theme":s,className:k,ref:_,children:e("ul",{...c,ref:x,children:t})})}),r=Object.assign(u,{Item:M});try{u.displayName="Breadcrumbs",u.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"Ref"}},innerProps:{defaultValue:null,description:"",name:"innerProps",required:!1,type:{name:"HTMLAttributes"}}}}}catch{}try{r.displayName="Breadcrumbs",r.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"Ref"}},innerProps:{defaultValue:null,description:"",name:"innerProps",required:!1,type:{name:"HTMLAttributes"}}}}}catch{}const W={title:"Navigation/Breadcrumbs",component:r},m=t=>a(r,{...t,children:[e(r.Item,{href:"/",children:"Home"}),e(r.Item,{href:"/",children:"Documents"}),e(r.Item,{href:"/",children:"Add Document"})]}),o=t=>a(r,{...t,children:[a(r.Item,{href:"/",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 mr-2 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})}),"Home"]}),a(r.Item,{href:"/",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 mr-2 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})}),"Documents"]}),a(r.Item,{href:"/",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 mr-2 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"Add Document"]})]}),n=t=>a(r,{...t,children:[e(r.Item,{children:"Long text 1"}),e(r.Item,{children:"Long text 2"}),e(r.Item,{children:"Long text 3"}),e(r.Item,{children:"Long text 4"}),e(r.Item,{children:"Long text 5"})]});n.args={className:"max-w-xs "};var l,h,p;m.parameters={...m.parameters,docs:{...(l=m.parameters)==null?void 0:l.docs,source:{originalSource:`args => { - return - Home - Documents - Add Document - ; -}`,...(p=(h=m.parameters)==null?void 0:h.docs)==null?void 0:p.source}}};var g,f,b;o.parameters={...o.parameters,docs:{...(g=o.parameters)==null?void 0:g.docs,source:{originalSource:`args => { - return - - - - - Home - - - - - - Documents - - - - - - Add Document - - ; -}`,...(b=(f=o.parameters)==null?void 0:f.docs)==null?void 0:b.source}}};var B,I,w;n.parameters={...n.parameters,docs:{...(B=n.parameters)==null?void 0:B.docs,source:{originalSource:`args => { - return - Long text 1 - Long text 2 - Long text 3 - Long text 4 - Long text 5 - ; -}`,...(w=(I=n.parameters)==null?void 0:I.docs)==null?void 0:w.source}}};const j=["Default","WithIcons","WithMaxWidth"];export{m as Default,o as WithIcons,n as WithMaxWidth,j as __namedExportsOrder,W as default}; -//# sourceMappingURL=Breadcrumbs.stories-07de829c.js.map diff --git a/docs/assets/Breadcrumbs.stories-07de829c.js.map b/docs/assets/Breadcrumbs.stories-07de829c.js.map deleted file mode 100644 index b270986b..00000000 --- a/docs/assets/Breadcrumbs.stories-07de829c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Breadcrumbs.stories-07de829c.js","sources":["../../src/Breadcrumbs/BreadcrumbsItem.tsx","../../src/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import React from 'react'\n\nexport type BreadcrumbsItemProps = React.LiHTMLAttributes & {\n href?: string\n}\n\nconst BreadcrumbsItem = React.forwardRef(\n ({ children, href, ...props }, ref): JSX.Element => {\n return (\n
  • \n {href ? {children} : <>{children}}\n
  • \n )\n }\n)\n\nexport default BreadcrumbsItem\n","import React, { ReactElement } from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nimport BreadcrumbsItem, { BreadcrumbsItemProps } from './BreadcrumbsItem'\n\nexport type BreadcrumbsProps = React.HTMLAttributes &\n IComponentBaseProps & {\n children?:\n | ReactElement\n | ReactElement[]\n innerRef?: React.Ref\n innerProps?: React.HTMLAttributes\n }\n\nconst Breadcrumbs = React.forwardRef(\n (\n { children, dataTheme, className, innerProps, innerRef, ...props },\n ref\n ): JSX.Element => {\n const classes = twMerge('breadcrumbs', 'text-sm', className)\n\n return (\n \n
      \n {children}\n
    \n \n )\n }\n)\n\nexport default Object.assign(Breadcrumbs, { Item: BreadcrumbsItem })\n"],"names":["BreadcrumbsItem","React","children","href","props","ref","jsx","Fragment","BreadcrumbsItem$1","Breadcrumbs","dataTheme","className","innerProps","innerRef","classes","twMerge","Breadcrumbs$1"],"mappings":"wGAMA,MAAAA,EAAAC,EAAA,WAA8B,CAAA,CAAA,SAAAC,EAAA,KAAAC,EAAA,GAAAC,CAAA,EAAAC,IAE1BC,EAAA,KAAA,CAAA,KAAA,OAAA,GAAAF,EAAA,IAAAC,EAAA,SAAAF,EAAAG,EAAA,IAAA,CAAA,KAAAH,EAAA,SAAAD,CAAA,CAAA,EAAAI,EAAAC,EAAA,CAAA,SAAAL,EAAA,CAAA,CAAA,CAMJ,EAEAM,EAAAR,wMCAA,MAAAS,EAAAR,EAAA,WAA0B,CAAA,CAAA,SAAAC,EAAA,UAAAQ,EAAA,UAAAC,EAAA,WAAAC,EAAA,SAAAC,EAAA,GAAAT,CAAA,EAAAC,IAAA,CAKtB,MAAAS,EAAAC,EAAA,cAAA,UAAAJ,CAAA,EAEA,OAAAL,EACE,MAAC,CAAA,KAAA,aACM,aAAA,cACM,GAAAF,EACP,aAAAM,EACQ,UAAAI,EACD,IAAAT,EACX,SAAAC,EAAA,KAAA,CAAA,GAAAM,EAAA,IAAAC,EAAA,SAAAX,EAAA,CAIA,CAAA,CACF,CAGN,EAEAc,EAAA,OAAA,OAAAP,EAAA,CAAA,KAAAT,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Breadcrumbs.stories-8ab9ebfa.js b/docs/assets/Breadcrumbs.stories-8ab9ebfa.js new file mode 100644 index 00000000..ba1392df --- /dev/null +++ b/docs/assets/Breadcrumbs.stories-8ab9ebfa.js @@ -0,0 +1,36 @@ +import{j as e,F as y,t as H,a}from"./tw-merge-0a3648bd.js";import{R as L}from"./index-1b03fe98.js";const i=L.forwardRef(({children:t,href:s,...d},c)=>e("li",{role:"link",...d,ref:c,children:s?e("a",{href:s,children:t}):e(y,{children:t})})),M=i;try{i.displayName="BreadcrumbsItem",i.__docgenInfo={description:"",displayName:"BreadcrumbsItem",props:{href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"string"}}}}}catch{}const u=L.forwardRef(({children:t,dataTheme:s,className:d,innerProps:c,innerRef:x,...v},_)=>{const k=H("breadcrumbs","text-sm",d);return e("div",{role:"navigation","aria-label":"Breadcrumbs",...v,"data-theme":s,className:k,ref:_,children:e("ul",{...c,ref:x,children:t})})}),r=Object.assign(u,{Item:M});try{u.displayName="Breadcrumbs",u.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"Ref"}},innerProps:{defaultValue:null,description:"",name:"innerProps",required:!1,type:{name:"HTMLAttributes"}}}}}catch{}try{r.displayName="Breadcrumbs",r.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"Ref"}},innerProps:{defaultValue:null,description:"",name:"innerProps",required:!1,type:{name:"HTMLAttributes"}}}}}catch{}const W={title:"Navigation/Breadcrumbs",component:r},m=t=>a(r,{...t,children:[e(r.Item,{href:"/",children:"Home"}),e(r.Item,{href:"/",children:"Documents"}),e(r.Item,{href:"/",children:"Add Document"})]}),o=t=>a(r,{...t,children:[a(r.Item,{href:"/",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 mr-2 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})}),"Home"]}),a(r.Item,{href:"/",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 mr-2 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})}),"Documents"]}),a(r.Item,{href:"/",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 mr-2 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"Add Document"]})]}),n=t=>a(r,{...t,children:[e(r.Item,{children:"Long text 1"}),e(r.Item,{children:"Long text 2"}),e(r.Item,{children:"Long text 3"}),e(r.Item,{children:"Long text 4"}),e(r.Item,{children:"Long text 5"})]});n.args={className:"max-w-xs "};var l,h,p;m.parameters={...m.parameters,docs:{...(l=m.parameters)==null?void 0:l.docs,source:{originalSource:`args => { + return + Home + Documents + Add Document + ; +}`,...(p=(h=m.parameters)==null?void 0:h.docs)==null?void 0:p.source}}};var g,f,b;o.parameters={...o.parameters,docs:{...(g=o.parameters)==null?void 0:g.docs,source:{originalSource:`args => { + return + + + + + Home + + + + + + Documents + + + + + + Add Document + + ; +}`,...(b=(f=o.parameters)==null?void 0:f.docs)==null?void 0:b.source}}};var B,I,w;n.parameters={...n.parameters,docs:{...(B=n.parameters)==null?void 0:B.docs,source:{originalSource:`args => { + return + Long text 1 + Long text 2 + Long text 3 + Long text 4 + Long text 5 + ; +}`,...(w=(I=n.parameters)==null?void 0:I.docs)==null?void 0:w.source}}};const j=["Default","WithIcons","WithMaxWidth"];export{m as Default,o as WithIcons,n as WithMaxWidth,j as __namedExportsOrder,W as default}; diff --git a/docs/assets/BrowserMockup.stories-d83c0582.js b/docs/assets/BrowserMockup.stories-8fc338cf.js similarity index 94% rename from docs/assets/BrowserMockup.stories-d83c0582.js rename to docs/assets/BrowserMockup.stories-8fc338cf.js index 389f0f86..eae5384f 100644 --- a/docs/assets/BrowserMockup.stories-d83c0582.js +++ b/docs/assets/BrowserMockup.stories-8fc338cf.js @@ -1,2 +1 @@ -import{t as u,j as E,a as n}from"./tw-merge-fe695a60.js";import{r as S}from"./index-ebeaab24.js";import{c as d}from"./clsx.m-1229b3e0.js";const l=S.forwardRef(({dataTheme:t,className:h,inputClassName:_,innerClassName:v,children:x,url:q,variant:e="border",inputRef:H,innerRef:R,...V},W)=>{const T=u("mockup-browser border",d({"border-base-300":e==="border","bg-base-300":e==="background"}),h),j=u("input",d({"border-base-300":e==="border"}),_),D=u("flex justify-center px-4 py-16 ",d({"border-t border-base-300":e==="border","bg-base-200":e==="background"}),v);return E("div",{"aria-label":"Browser mockup",...V,"data-theme":t,className:T,ref:W,children:[n("div",{className:"mockup-browser-toolbar",children:n("div",{className:j,ref:H,children:q})}),n("div",{className:D,ref:R,children:x})]})});l.displayName="BrowserMockup";const N=l;try{l.displayName="BrowserMockup",l.__docgenInfo={description:"",displayName:"BrowserMockup",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},variant:{defaultValue:{value:"border"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"border"'},{value:'"background"'}]}},inputClassName:{defaultValue:null,description:"",name:"inputClassName",required:!1,type:{name:"string"}},innerClassName:{defaultValue:null,description:"",name:"innerClassName",required:!1,type:{name:"string"}},inputRef:{defaultValue:null,description:"",name:"inputRef",required:!1,type:{name:"Ref"}},innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"Ref"}}}}}catch{}const $={title:"Mockup/BrowserMockup",component:N,parameters:{controls:{expanded:!0}},args:{url:"https://react.daisyui.com",className:"w-full"}},c=t=>n(N,{...t,children:"Hello!"}),r=c.bind({});r.args={};const a=c.bind({});a.args={variant:"background"};const s=c.bind({});s.args={className:"w-full border-primary",inputClassName:"border-primary"};const o=c.bind({});o.args={variant:"background",className:"bg-warning",innerClassName:"bg-info info-content"};var i,p,m;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:"args => Hello!",...(m=(p=r.parameters)==null?void 0:p.docs)==null?void 0:m.source}}};var g,f,b;a.parameters={...a.parameters,docs:{...(g=a.parameters)==null?void 0:g.docs,source:{originalSource:"args => Hello!",...(b=(f=a.parameters)==null?void 0:f.docs)==null?void 0:b.source}}};var k,w,B;s.parameters={...s.parameters,docs:{...(k=s.parameters)==null?void 0:k.docs,source:{originalSource:"args => Hello!",...(B=(w=s.parameters)==null?void 0:w.docs)==null?void 0:B.source}}};var M,C,y;o.parameters={...o.parameters,docs:{...(M=o.parameters)==null?void 0:M.docs,source:{originalSource:"args => Hello!",...(y=(C=o.parameters)==null?void 0:C.docs)==null?void 0:y.source}}};const z=["Default","WithBackgroundColor","WithCustomBorderColor","WithCustomBackgroundColor"];export{r as Default,a as WithBackgroundColor,o as WithCustomBackgroundColor,s as WithCustomBorderColor,z as __namedExportsOrder,$ as default}; -//# sourceMappingURL=BrowserMockup.stories-d83c0582.js.map +import{t as u,a as E,j as n}from"./tw-merge-0a3648bd.js";import{r as S}from"./index-1b03fe98.js";import{c as d}from"./clsx.m-1229b3e0.js";const l=S.forwardRef(({dataTheme:t,className:h,inputClassName:_,innerClassName:v,children:x,url:q,variant:e="border",inputRef:H,innerRef:R,...V},W)=>{const T=u("mockup-browser border",d({"border-base-300":e==="border","bg-base-300":e==="background"}),h),j=u("input",d({"border-base-300":e==="border"}),_),D=u("flex justify-center px-4 py-16 ",d({"border-t border-base-300":e==="border","bg-base-200":e==="background"}),v);return E("div",{"aria-label":"Browser mockup",...V,"data-theme":t,className:T,ref:W,children:[n("div",{className:"mockup-browser-toolbar",children:n("div",{className:j,ref:H,children:q})}),n("div",{className:D,ref:R,children:x})]})});l.displayName="BrowserMockup";const N=l;try{l.displayName="BrowserMockup",l.__docgenInfo={description:"",displayName:"BrowserMockup",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},variant:{defaultValue:{value:"border"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"border"'},{value:'"background"'}]}},inputClassName:{defaultValue:null,description:"",name:"inputClassName",required:!1,type:{name:"string"}},innerClassName:{defaultValue:null,description:"",name:"innerClassName",required:!1,type:{name:"string"}},inputRef:{defaultValue:null,description:"",name:"inputRef",required:!1,type:{name:"Ref"}},innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"Ref"}}}}}catch{}const $={title:"Mockup/BrowserMockup",component:N,parameters:{controls:{expanded:!0}},args:{url:"https://react.daisyui.com",className:"w-full"}},c=t=>n(N,{...t,children:"Hello!"}),r=c.bind({});r.args={};const a=c.bind({});a.args={variant:"background"};const s=c.bind({});s.args={className:"w-full border-primary",inputClassName:"border-primary"};const o=c.bind({});o.args={variant:"background",className:"bg-warning",innerClassName:"bg-info info-content"};var i,p,m;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:"args => Hello!",...(m=(p=r.parameters)==null?void 0:p.docs)==null?void 0:m.source}}};var g,f,b;a.parameters={...a.parameters,docs:{...(g=a.parameters)==null?void 0:g.docs,source:{originalSource:"args => Hello!",...(b=(f=a.parameters)==null?void 0:f.docs)==null?void 0:b.source}}};var k,w,B;s.parameters={...s.parameters,docs:{...(k=s.parameters)==null?void 0:k.docs,source:{originalSource:"args => Hello!",...(B=(w=s.parameters)==null?void 0:w.docs)==null?void 0:B.source}}};var M,C,y;o.parameters={...o.parameters,docs:{...(M=o.parameters)==null?void 0:M.docs,source:{originalSource:"args => Hello!",...(y=(C=o.parameters)==null?void 0:C.docs)==null?void 0:y.source}}};const z=["Default","WithBackgroundColor","WithCustomBorderColor","WithCustomBackgroundColor"];export{r as Default,a as WithBackgroundColor,o as WithCustomBackgroundColor,s as WithCustomBorderColor,z as __namedExportsOrder,$ as default}; diff --git a/docs/assets/BrowserMockup.stories-d83c0582.js.map b/docs/assets/BrowserMockup.stories-d83c0582.js.map deleted file mode 100644 index 807b7163..00000000 --- a/docs/assets/BrowserMockup.stories-d83c0582.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowserMockup.stories-d83c0582.js","sources":["../../src/BrowserMockup/BrowserMockup.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type BrowserMockupProps = React.HTMLAttributes &\n IComponentBaseProps & {\n url: string\n variant?: 'border' | 'background'\n inputClassName?: string\n innerClassName?: string\n inputRef?: React.Ref\n innerRef?: React.Ref\n }\n\nconst BrowserMockup = forwardRef(\n (\n {\n dataTheme,\n className,\n inputClassName,\n innerClassName,\n children,\n url,\n variant = 'border',\n inputRef,\n innerRef,\n ...props\n },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n 'mockup-browser border',\n clsx({\n 'border-base-300': variant === 'border',\n 'bg-base-300': variant === 'background',\n }),\n className\n )\n\n const inputClasses = twMerge(\n 'input',\n clsx({\n 'border-base-300': variant === 'border',\n }),\n inputClassName\n )\n\n const innerClasses = twMerge(\n 'flex justify-center px-4 py-16 ',\n clsx({\n 'border-t border-base-300': variant === 'border',\n 'bg-base-200': variant === 'background',\n }),\n innerClassName\n )\n\n return (\n \n
    \n
    \n {url}\n
    \n
    \n
    \n {children}\n
    \n \n )\n }\n)\n\nBrowserMockup.displayName = 'BrowserMockup'\n\nexport default BrowserMockup\n"],"names":["BrowserMockup","forwardRef","dataTheme","className","inputClassName","innerClassName","children","url","variant","inputRef","innerRef","props","ref","classes","twMerge","clsx","inputClasses","innerClasses","jsxs","jsx","BrowserMockup$1"],"mappings":"0IAgBA,MAAAA,EAAAC,EAAA,WAAsB,CAAA,CAElB,UAAAC,EACE,UAAAC,EACA,eAAAC,EACA,eAAAC,EACA,SAAAC,EACA,IAAAC,EACA,QAAAC,EAAA,SACU,SAAAC,EACV,SAAAC,EACA,GAAAC,CACG,EAAAC,IAAA,CAIL,MAAAC,EAAAC,EAAgB,wBACdC,EAAA,CACK,kBAAAP,IAAA,SAC4B,cAAAA,IAAA,YACJ,CAAA,EAC5BL,CACD,EAGFa,EAAAF,EAAqB,QACnBC,EAAA,CACK,kBAAAP,IAAA,QAC4B,CAAA,EAChCJ,CACD,EAGFa,EAAAH,EAAqB,kCACnBC,EAAA,CACK,2BAAAP,IAAA,SACqC,cAAAA,IAAA,YACb,CAAA,EAC5BH,CACD,EAGF,OAAAa,EACE,MAAC,CAAA,aAAA,iBACY,GAAAP,EACP,aAAAT,EACQ,UAAAW,EACD,IAAAD,EACX,SAAA,CAEAO,EAAA,MAAA,CAAA,UAAA,yBAAA,SAAAA,EAAA,MAAA,CAAA,UAAAH,EAAA,IAAAP,EAAA,SAAAF,CAAA,CAAA,EAAA,EAIAY,EAAA,MAAA,CAAA,UAAAF,EAAA,IAAAP,EAAA,SAAAJ,EAAA,CAGA,CAAA,CAAA,CACF,CAGN,EAEAN,EAAA,YAAA,gBAEA,MAAAoB,EAAApB"} \ No newline at end of file diff --git a/docs/assets/Button-28269a3e.js.map b/docs/assets/Button-28269a3e.js.map deleted file mode 100644 index ffcff7a1..00000000 --- a/docs/assets/Button-28269a3e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Button-28269a3e.js","sources":["../../src/Button/Button.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode, ElementType } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport Loading from '../Loading'\nimport {\n IComponentBaseProps,\n ComponentColor,\n ComponentShape,\n ComponentSize,\n} from '../types'\n\ntype ITagProps = {\n a: {\n attr: React.AnchorHTMLAttributes\n ele: HTMLAnchorElement\n }\n button: {\n attr: React.ButtonHTMLAttributes\n ele: HTMLButtonElement\n }\n div: {\n attr: React.HTMLAttributes\n ele: HTMLDivElement\n }\n img: {\n attr: React.ImgHTMLAttributes\n ele: HTMLImageElement\n }\n input: {\n attr: React.InputHTMLAttributes\n ele: HTMLInputElement\n }\n label: {\n attr: React.LabelHTMLAttributes\n ele: HTMLLabelElement\n }\n span: {\n attr: React.HTMLAttributes\n ele: HTMLSpanElement\n }\n}\n\ntype GetTagProps = T extends keyof ITagProps\n ? ITagProps[T]\n : ITagProps['button']\n\nexport type ButtonProps<\n T extends ElementType = 'button',\n A extends React.HTMLAttributes = GetTagProps['attr']\n> = Omit &\n IComponentBaseProps & {\n shape?: ComponentShape\n size?: ComponentSize\n variant?: 'outline' | 'link'\n color?: ComponentColor\n glass?: boolean\n wide?: boolean\n fullWidth?: boolean\n responsive?: boolean\n animation?: boolean\n loading?: boolean\n active?: boolean\n startIcon?: ReactNode\n endIcon?: ReactNode\n disabled?: boolean\n tag?: T\n }\n// https://developer.mozilla.org/en-US/docs/Glossary/Void_element\nconst VoidElementList: ElementType[] = [\n 'area',\n 'base',\n 'br',\n 'col',\n 'embed',\n 'hr',\n 'img',\n 'input',\n 'link',\n 'keygen',\n 'meta',\n 'param',\n 'source',\n 'track',\n 'wbr',\n]\nconst Button = forwardRef(\n (\n {\n children,\n shape,\n size,\n variant,\n color,\n glass,\n startIcon,\n endIcon,\n wide,\n fullWidth,\n responsive,\n animation = true,\n loading,\n active,\n disabled,\n dataTheme,\n className,\n style,\n tag = 'button',\n ...props\n },\n ref\n ): JSX.Element => {\n const Tag = tag\n const classes = twMerge(\n 'btn',\n className,\n clsx(((startIcon && !loading) || endIcon) && 'gap-2', {\n 'btn-lg': size === 'lg',\n 'btn-md': size === 'md',\n 'btn-sm': size === 'sm',\n 'btn-xs': size === 'xs',\n 'btn-circle': shape === 'circle',\n 'btn-square': shape === 'square',\n 'btn-outline': variant === 'outline',\n 'btn-link': variant === 'link',\n 'btn-neutral': color === 'neutral',\n 'btn-primary': color === 'primary',\n 'btn-secondary': color === 'secondary',\n 'btn-accent': color === 'accent',\n 'btn-info': color === 'info',\n 'btn-success': color === 'success',\n 'btn-warning': color === 'warning',\n 'btn-error': color === 'error',\n 'btn-ghost': color === 'ghost',\n glass: glass,\n 'btn-wide': wide,\n 'btn-block': fullWidth,\n 'btn-xs sm:btn-sm md:btn-md lg:btn-lg': responsive,\n 'no-animation': !animation,\n 'btn-active': active,\n 'btn-disabled': disabled,\n })\n )\n if (VoidElementList.includes(Tag)) {\n return (\n \n )\n } else {\n return (\n \n {loading && }\n {startIcon && !loading && startIcon}\n {children}\n {endIcon && endIcon}\n \n )\n }\n }\n)\n\nButton.displayName = 'Button'\n\nexport default Button as <\n T extends ElementType = 'button',\n E extends HTMLElement = GetTagProps['ele'],\n A extends React.HTMLAttributes = GetTagProps['attr']\n>(\n props: ButtonProps & { ref?: React.Ref }\n) => JSX.Element\n"],"names":["VoidElementList","Button","forwardRef","children","shape","size","variant","color","glass","startIcon","endIcon","wide","fullWidth","responsive","animation","loading","active","disabled","dataTheme","className","style","tag","props","ref","Tag","classes","twMerge","clsx","jsx","jsxs","Loading","Button$1"],"mappings":"kLAqEA,MAAAA,EAAA,CAAuC,OACrC,OACA,KACA,MACA,QACA,KACA,MACA,QACA,OACA,SACA,OACA,QACA,SACA,QACA,KAEF,EACAC,EAAAC,EAAA,WAAe,CAAA,CAEX,SAAAC,EACE,MAAAC,EACA,KAAAC,EACA,QAAAC,EACA,MAAAC,EACA,MAAAC,EACA,UAAAC,EACA,QAAAC,EACA,KAAAC,EACA,UAAAC,EACA,WAAAC,EACA,UAAAC,EAAA,GACY,QAAAC,EACZ,OAAAC,EACA,SAAAC,EACA,UAAAC,EACA,UAAAC,EACA,MAAAC,EACA,IAAAC,EAAA,SACM,GAAAC,CACH,EAAAC,IAAA,CAIL,MAAAC,EAAAH,EACAI,EAAAC,EAAgB,MACdP,EACAQ,GAAAlB,GAAA,CAAAM,GAAAL,IAAA,QAAA,CACsD,SAAAL,IAAA,KACjC,SAAAA,IAAA,KACA,SAAAA,IAAA,KACA,SAAAA,IAAA,KACA,aAAAD,IAAA,SACK,aAAAA,IAAA,SACA,cAAAE,IAAA,UACG,WAAAA,IAAA,OACH,cAAAC,IAAA,UACC,cAAAA,IAAA,UACA,gBAAAA,IAAA,YACE,aAAAA,IAAA,SACH,WAAAA,IAAA,OACF,cAAAA,IAAA,UACG,cAAAA,IAAA,UACA,YAAAA,IAAA,QACF,YAAAA,IAAA,QACA,MAAAC,EACvB,WAAAG,EACY,YAAAC,EACC,uCAAAC,EAC2B,eAAA,CAAAC,EACvB,aAAAE,EACH,eAAAC,CACE,CAAA,CACjB,EAEH,OAAAjB,EAAA,SAAAwB,CAAA,EACEI,EACEJ,EAAC,CAAA,GAAAF,EACK,IAAAC,EACJ,aAAAL,EACY,UAAAO,EACD,MAAAL,EACX,SAAAH,CACA,CAAA,EAIJY,EACEL,EAAC,CAAA,GAAAF,EACK,IAAAC,EACJ,aAAAL,EACY,UAAAO,EACD,MAAAL,EACX,SAAAH,EACA,SAAA,CAECF,GAAAa,EAAAE,EAAA,CAAA,KAAAzB,CAAA,CAAA,EAAgCI,GAAA,CAAAM,GAAAN,EACPN,EACzBO,GAAAA,CACW,CAAA,CAAA,CAGlB,CAEJ,EAEAT,EAAA,YAAA,SAEA,MAAA8B,EAAA9B"} \ No newline at end of file diff --git a/docs/assets/Button-28269a3e.js b/docs/assets/Button-e9ac0f78.js similarity index 93% rename from docs/assets/Button-28269a3e.js rename to docs/assets/Button-e9ac0f78.js index 3939707b..439f77cb 100644 --- a/docs/assets/Button-28269a3e.js +++ b/docs/assets/Button-e9ac0f78.js @@ -1,2 +1 @@ -import{t as k,a as y,j as N}from"./tw-merge-fe695a60.js";import{r as B}from"./index-ebeaab24.js";import{c as E}from"./clsx.m-1229b3e0.js";import{L as R}from"./index-357fb5a8.js";const j=["area","base","br","col","embed","hr","img","input","link","keygen","meta","param","source","track","wbr"],n=B.forwardRef(({children:s,shape:d,size:a,variant:o,color:e,glass:v,startIcon:t,endIcon:l,wide:g,fullWidth:q,responsive:V,animation:h=!0,loading:u,active:w,disabled:r,dataTheme:m,className:x,style:c,tag:_="button",...p},f)=>{const i=_,b=k("btn",x,E((t&&!u||l)&&"gap-2",{"btn-lg":a==="lg","btn-md":a==="md","btn-sm":a==="sm","btn-xs":a==="xs","btn-circle":d==="circle","btn-square":d==="square","btn-outline":o==="outline","btn-link":o==="link","btn-neutral":e==="neutral","btn-primary":e==="primary","btn-secondary":e==="secondary","btn-accent":e==="accent","btn-info":e==="info","btn-success":e==="success","btn-warning":e==="warning","btn-error":e==="error","btn-ghost":e==="ghost",glass:v,"btn-wide":g,"btn-block":q,"btn-xs sm:btn-sm md:btn-md lg:btn-lg":V,"no-animation":!h,"btn-active":w,"btn-disabled":r}));return j.includes(i)?y(i,{...p,ref:f,"data-theme":m,className:b,style:c,disabled:r}):N(i,{...p,ref:f,"data-theme":m,className:b,style:c,disabled:r,children:[u&&y(R,{size:a}),t&&!u&&t,s,l&&l]})});n.displayName="Button";const M=n;try{n.displayName="Button",n.__docgenInfo={description:"",displayName:"Button",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},shape:{defaultValue:null,description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circle"'},{value:'"square"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"outline"'}]}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"primary"'},{value:'"secondary"'},{value:'"accent"'},{value:'"ghost"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},glass:{defaultValue:null,description:"",name:"glass",required:!1,type:{name:"boolean"}},wide:{defaultValue:null,description:"",name:"wide",required:!1,type:{name:"boolean"}},fullWidth:{defaultValue:null,description:"",name:"fullWidth",required:!1,type:{name:"boolean"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}},animation:{defaultValue:{value:"true"},description:"",name:"animation",required:!1,type:{name:"boolean"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},startIcon:{defaultValue:null,description:"",name:"startIcon",required:!1,type:{name:"ReactNode"}},endIcon:{defaultValue:null,description:"",name:"endIcon",required:!1,type:{name:"ReactNode"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},tag:{defaultValue:{value:"button"},description:"",name:"tag",required:!1,type:{name:"ElementType"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}}}}}catch{}export{M as B}; -//# sourceMappingURL=Button-28269a3e.js.map +import{t as k,j as y,a as N}from"./tw-merge-0a3648bd.js";import{r as B}from"./index-1b03fe98.js";import{c as E}from"./clsx.m-1229b3e0.js";import{L as R}from"./index-a55c3a76.js";const j=["area","base","br","col","embed","hr","img","input","link","keygen","meta","param","source","track","wbr"],n=B.forwardRef(({children:s,shape:d,size:a,variant:o,color:e,glass:v,startIcon:t,endIcon:l,wide:g,fullWidth:q,responsive:V,animation:h=!0,loading:u,active:w,disabled:r,dataTheme:m,className:x,style:c,tag:_="button",...p},f)=>{const i=_,b=k("btn",x,E((t&&!u||l)&&"gap-2",{"btn-lg":a==="lg","btn-md":a==="md","btn-sm":a==="sm","btn-xs":a==="xs","btn-circle":d==="circle","btn-square":d==="square","btn-outline":o==="outline","btn-link":o==="link","btn-neutral":e==="neutral","btn-primary":e==="primary","btn-secondary":e==="secondary","btn-accent":e==="accent","btn-info":e==="info","btn-success":e==="success","btn-warning":e==="warning","btn-error":e==="error","btn-ghost":e==="ghost",glass:v,"btn-wide":g,"btn-block":q,"btn-xs sm:btn-sm md:btn-md lg:btn-lg":V,"no-animation":!h,"btn-active":w,"btn-disabled":r}));return j.includes(i)?y(i,{...p,ref:f,"data-theme":m,className:b,style:c,disabled:r}):N(i,{...p,ref:f,"data-theme":m,className:b,style:c,disabled:r,children:[u&&y(R,{size:a}),t&&!u&&t,s,l&&l]})});n.displayName="Button";const M=n;try{n.displayName="Button",n.__docgenInfo={description:"",displayName:"Button",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},shape:{defaultValue:null,description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circle"'},{value:'"square"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"outline"'}]}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"primary"'},{value:'"secondary"'},{value:'"accent"'},{value:'"ghost"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},glass:{defaultValue:null,description:"",name:"glass",required:!1,type:{name:"boolean"}},wide:{defaultValue:null,description:"",name:"wide",required:!1,type:{name:"boolean"}},fullWidth:{defaultValue:null,description:"",name:"fullWidth",required:!1,type:{name:"boolean"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}},animation:{defaultValue:{value:"true"},description:"",name:"animation",required:!1,type:{name:"boolean"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},startIcon:{defaultValue:null,description:"",name:"startIcon",required:!1,type:{name:"ReactNode"}},endIcon:{defaultValue:null,description:"",name:"endIcon",required:!1,type:{name:"ReactNode"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},tag:{defaultValue:{value:"button"},description:"",name:"tag",required:!1,type:{name:"ElementType"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}}}}}catch{}export{M as B}; diff --git a/docs/assets/Button.stories-2800153f.js.map b/docs/assets/Button.stories-2800153f.js.map deleted file mode 100644 index 778b603e..00000000 --- a/docs/assets/Button.stories-2800153f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Button.stories-2800153f.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Button.stories-2800153f.js b/docs/assets/Button.stories-2ecc1a31.js similarity index 98% rename from docs/assets/Button.stories-2800153f.js rename to docs/assets/Button.stories-2ecc1a31.js index 0c8bfe77..353423fe 100644 --- a/docs/assets/Button.stories-2800153f.js +++ b/docs/assets/Button.stories-2ecc1a31.js @@ -1,4 +1,4 @@ -import{a as t,j as n}from"./tw-merge-fe695a60.js";import{B as e}from"./Button-28269a3e.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const Pr={title:"Actions/Button",component:e,argTypes:{startIcon:{control:!1},endIcon:{control:!1}}},L=r=>t(e,{...r,children:"Button"}),o=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:"Default"}),t(e,{...r,color:"neutral",children:"Neutral"}),t(e,{...r,color:"primary",children:"Primary"}),t(e,{...r,color:"secondary",children:"Secondary"}),t(e,{...r,color:"accent",children:"Accent"}),t(e,{...r,color:"ghost",children:"Ghost"}),t(e,{...r,variant:"link",children:"Link"})]});o.args={};const s=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:"Default"}),t(e,{...r,color:"neutral",children:"Neutral"}),t(e,{...r,color:"primary",children:"Primary"}),t(e,{...r,color:"secondary",children:"Secondary"}),t(e,{...r,color:"accent",children:"Accent"}),t(e,{...r,color:"ghost",children:"Ghost"}),t(e,{...r,variant:"link",children:"Link"})]});s.args={active:!0};const a=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,color:"info",children:"Info"}),t(e,{...r,color:"success",children:"Success"}),t(e,{...r,color:"warning",children:"Warning"}),t(e,{...r,color:"error",children:"Error"})]});a.args={};const c=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:"Default"}),t(e,{...r,color:"primary",children:"Primary"}),t(e,{...r,color:"secondary",children:"Secondary"}),t(e,{...r,color:"accent",children:"Accent"})]});c.args={variant:"outline"};const i=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,color:"info",children:"Info"}),t(e,{...r,color:"success",children:"Success"}),t(e,{...r,color:"warning",children:"Warning"}),t(e,{...r,color:"error",children:"Error"})]});i.args={variant:"outline"};const u=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,size:"lg",children:"Large"}),t(e,{...r,children:"Normal"}),t(e,{...r,size:"sm",children:"Small"}),t(e,{...r,size:"xs",children:"Tiny"})]});u.args={};const l=r=>t(e,{...r,children:"Responsive"});l.args={responsive:!0};const d=r=>t(e,{...r,children:"Wide"});d.args={wide:!0};const m=r=>t("div",{className:"w-full flex justify-center py-8 rounded-md",style:{backgroundImage:"url(https://daisyui.com/images/stock/photo-1507358522600-9f71e620c44e.jpg)"},children:t(e,{...r,children:"Glass button"})});m.args={glass:!0};const p=r=>n("div",{className:"flex gap-2 items-center justify-center",children:[t(e,{...r,tag:"a",role:"button",children:"Link"}),t(e,{...r,type:"submit",children:"Button"}),t(e,{...r,tag:"input",type:"button",value:"Input"}),t(e,{...r,tag:"input",type:"submit",value:"Submit"}),t(e,{...r,tag:"input",type:"radio","aria-label":"Radio"}),t(e,{...r,tag:"input",type:"checkbox","aria-label":"Checkbox"}),t(e,{...r,tag:"input",type:"reset",value:"Reset"})]});p.args={};const g=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:"Disabled using attribute"}),t(e,{className:"btn btn-disabled",tabIndex:-1,role:"button","aria-disabled":"true",children:"Disabled using class name"})]});g.args={disabled:!0};const B=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}),t(e,{...r,variant:"outline",children:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]});B.args={shape:"square"};const h=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}),t(e,{...r,variant:"outline",children:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]});h.args={shape:"circle"};const y=r=>t(e,{...r,startIcon:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),children:"Button"}),S=r=>t(e,{...r,endIcon:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),children:"Button"}),v=r=>t(e,{...r,children:"Block"});v.args={fullWidth:!0};const k=r=>t(e,{...r});k.args={loading:!0,shape:"square"};const w=r=>t(e,{...r,children:"loading"});w.args={loading:!0};const f=r=>t(e,{...r,children:" I don't have click animation "});f.args={animation:!1};const x=r=>t(e,{...r,children:" Link "});x.args={tag:"a",target:"_blank",rel:"noopener",href:"https://daisyui.com/"};var b,N,W;L.parameters={...L.parameters,docs:{...(b=L.parameters)==null?void 0:b.docs,source:{originalSource:`args => { +import{j as t,a as n}from"./tw-merge-0a3648bd.js";import{B as e}from"./Button-e9ac0f78.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const Pr={title:"Actions/Button",component:e,argTypes:{startIcon:{control:!1},endIcon:{control:!1}}},L=r=>t(e,{...r,children:"Button"}),o=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:"Default"}),t(e,{...r,color:"neutral",children:"Neutral"}),t(e,{...r,color:"primary",children:"Primary"}),t(e,{...r,color:"secondary",children:"Secondary"}),t(e,{...r,color:"accent",children:"Accent"}),t(e,{...r,color:"ghost",children:"Ghost"}),t(e,{...r,variant:"link",children:"Link"})]});o.args={};const s=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:"Default"}),t(e,{...r,color:"neutral",children:"Neutral"}),t(e,{...r,color:"primary",children:"Primary"}),t(e,{...r,color:"secondary",children:"Secondary"}),t(e,{...r,color:"accent",children:"Accent"}),t(e,{...r,color:"ghost",children:"Ghost"}),t(e,{...r,variant:"link",children:"Link"})]});s.args={active:!0};const a=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,color:"info",children:"Info"}),t(e,{...r,color:"success",children:"Success"}),t(e,{...r,color:"warning",children:"Warning"}),t(e,{...r,color:"error",children:"Error"})]});a.args={};const c=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:"Default"}),t(e,{...r,color:"primary",children:"Primary"}),t(e,{...r,color:"secondary",children:"Secondary"}),t(e,{...r,color:"accent",children:"Accent"})]});c.args={variant:"outline"};const i=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,color:"info",children:"Info"}),t(e,{...r,color:"success",children:"Success"}),t(e,{...r,color:"warning",children:"Warning"}),t(e,{...r,color:"error",children:"Error"})]});i.args={variant:"outline"};const u=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,size:"lg",children:"Large"}),t(e,{...r,children:"Normal"}),t(e,{...r,size:"sm",children:"Small"}),t(e,{...r,size:"xs",children:"Tiny"})]});u.args={};const l=r=>t(e,{...r,children:"Responsive"});l.args={responsive:!0};const d=r=>t(e,{...r,children:"Wide"});d.args={wide:!0};const m=r=>t("div",{className:"w-full flex justify-center py-8 rounded-md",style:{backgroundImage:"url(https://daisyui.com/images/stock/photo-1507358522600-9f71e620c44e.jpg)"},children:t(e,{...r,children:"Glass button"})});m.args={glass:!0};const p=r=>n("div",{className:"flex gap-2 items-center justify-center",children:[t(e,{...r,tag:"a",role:"button",children:"Link"}),t(e,{...r,type:"submit",children:"Button"}),t(e,{...r,tag:"input",type:"button",value:"Input"}),t(e,{...r,tag:"input",type:"submit",value:"Submit"}),t(e,{...r,tag:"input",type:"radio","aria-label":"Radio"}),t(e,{...r,tag:"input",type:"checkbox","aria-label":"Checkbox"}),t(e,{...r,tag:"input",type:"reset",value:"Reset"})]});p.args={};const g=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:"Disabled using attribute"}),t(e,{className:"btn btn-disabled",tabIndex:-1,role:"button","aria-disabled":"true",children:"Disabled using class name"})]});g.args={disabled:!0};const B=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}),t(e,{...r,variant:"outline",children:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]});B.args={shape:"square"};const h=r=>n("div",{className:"flex items-center gap-2",children:[t(e,{...r,children:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}),t(e,{...r,variant:"outline",children:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]});h.args={shape:"circle"};const y=r=>t(e,{...r,startIcon:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),children:"Button"}),S=r=>t(e,{...r,endIcon:t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),children:"Button"}),v=r=>t(e,{...r,children:"Block"});v.args={fullWidth:!0};const k=r=>t(e,{...r});k.args={loading:!0,shape:"square"};const w=r=>t(e,{...r,children:"loading"});w.args={loading:!0};const f=r=>t(e,{...r,children:" I don't have click animation "});f.args={animation:!1};const x=r=>t(e,{...r,children:" Link "});x.args={tag:"a",target:"_blank",rel:"noopener",href:"https://daisyui.com/"};var b,N,W;L.parameters={...L.parameters,docs:{...(b=L.parameters)==null?void 0:b.docs,source:{originalSource:`args => { return ; }`,...(W=(N=L.parameters)==null?void 0:N.docs)==null?void 0:W.source}}};var C,I,j;o.parameters={...o.parameters,docs:{...(C=o.parameters)==null?void 0:C.docs,source:{originalSource:`args => { return
    @@ -180,4 +180,3 @@ import{a as t,j as n}from"./tw-merge-fe695a60.js";import{B as e}from"./Button-28 }`,...(jr=(Ir=f.parameters)==null?void 0:Ir.docs)==null?void 0:jr.source}}};var Mr,Ar,Dr;x.parameters={...x.parameters,docs:{...(Mr=x.parameters)==null?void 0:Mr.docs,source:{originalSource:`args => { return ; }`,...(Dr=(Ar=x.parameters)==null?void 0:Ar.docs)==null?void 0:Dr.source}}};const Or=["Default","BrandColors","ActiveButtons","StateColors","OutlineButtons","OutlineButtonsWithStateColors","ButtonSizes","ResponsiveButton","WideButton","Glass","DifferentHtmlTags","DisabledButtons","SquareButton","CircleButton","IconAtStart","IconAtEnd","ButtonBlock","LoadingSpinner","LoadingSpinnerAndText","WithoutClickAnimation","LinkButton"];export{s as ActiveButtons,o as BrandColors,v as ButtonBlock,u as ButtonSizes,h as CircleButton,L as Default,p as DifferentHtmlTags,g as DisabledButtons,m as Glass,S as IconAtEnd,y as IconAtStart,x as LinkButton,k as LoadingSpinner,w as LoadingSpinnerAndText,c as OutlineButtons,i as OutlineButtonsWithStateColors,l as ResponsiveButton,B as SquareButton,a as StateColors,d as WideButton,f as WithoutClickAnimation,Or as __namedExportsOrder,Pr as default}; -//# sourceMappingURL=Button.stories-2800153f.js.map diff --git a/docs/assets/ButtonGroup.stories-39d413ec.js b/docs/assets/ButtonGroup.stories-39d413ec.js deleted file mode 100644 index 6b9584d8..00000000 --- a/docs/assets/ButtonGroup.stories-39d413ec.js +++ /dev/null @@ -1,14 +0,0 @@ -import{t as h,a as o,j as v}from"./tw-merge-fe695a60.js";import{R as b}from"./index-ebeaab24.js";import{c as V}from"./clsx.m-1229b3e0.js";import{B as n}from"./Button-28269a3e.js";import"./index-357fb5a8.js";const u=b.forwardRef(({vertical:t,children:s,dataTheme:f,className:_,...g},y)=>{const G=h("btn-group",_,V({"btn-group-vertical":t}));return o("div",{"aria-label":`Group of ${s.length} buttons`,...g,"data-theme":f,className:G,ref:y,children:s})}),a=u;try{u.displayName="ButtonGroup",u.__docgenInfo={description:"",displayName:"ButtonGroup",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}}}}}catch{}try{a.displayName="ButtonGroup",a.__docgenInfo={description:"",displayName:"ButtonGroup",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}}}}}catch{}const D={title:"Layout/ButtonGroup (Deprecated)",component:a},B=t=>v(a,{...t,children:[o(n,{active:!0,children:"Button"}),o(n,{children:"Button"}),o(n,{children:"Button"})]}),e=B.bind({});e.args={};const r=B.bind({});r.args={vertical:!0};var c,p,i;e.parameters={...e.parameters,docs:{...(c=e.parameters)==null?void 0:c.docs,source:{originalSource:`args => { - return - - - - ; -}`,...(i=(p=e.parameters)==null?void 0:p.docs)==null?void 0:i.source}}};var l,d,m;r.parameters={...r.parameters,docs:{...(l=r.parameters)==null?void 0:l.docs,source:{originalSource:`args => { - return - - - - ; -}`,...(m=(d=r.parameters)==null?void 0:d.docs)==null?void 0:m.source}}};const R=["Default","Vertical"];export{e as Default,r as Vertical,R as __namedExportsOrder,D as default}; -//# sourceMappingURL=ButtonGroup.stories-39d413ec.js.map diff --git a/docs/assets/ButtonGroup.stories-39d413ec.js.map b/docs/assets/ButtonGroup.stories-39d413ec.js.map deleted file mode 100644 index 85b126fd..00000000 --- a/docs/assets/ButtonGroup.stories-39d413ec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ButtonGroup.stories-39d413ec.js","sources":["../../src/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["import React, { ReactElement } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nimport { ButtonProps } from '../Button'\n\nexport type ButtonGroupProps = React.HTMLAttributes &\n IComponentBaseProps & {\n vertical?: boolean\n children: ReactElement[]\n }\n\nconst ButtonGroup = React.forwardRef(\n ({ vertical, children, dataTheme, className, ...props }, ref): JSX.Element => {\n const classes = twMerge('btn-group', className, clsx({\n 'btn-group-vertical': vertical\n }))\n\n return (\n \n {children}\n
    \n )\n }\n)\n\nexport default ButtonGroup\n"],"names":["ButtonGroup","React","vertical","children","dataTheme","className","props","ref","classes","twMerge","clsx","jsx","ButtonGroup$1"],"mappings":"+MAcA,MAAAA,EAAAC,EAAA,WAA0B,CAAA,CAAA,SAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,UAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAEtB,MAAAC,EAAAC,EAAA,YAAAJ,EAAAK,EAAA,CAAqD,qBAAAR,CAC7B,CAAA,CAAA,EAGxB,OAAAS,EACE,MAAC,CAAA,aAAA,YAAAR,EAAA,iBACkC,GAAAG,EAC7B,aAAAF,EACQ,UAAAI,EACD,IAAAD,EACX,SAAAJ,CAEC,CAAA,CACH,CAGN,EAEAS,EAAAZ;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Card.stories-d6e2881e.js b/docs/assets/Card.stories-7d9007ed.js similarity index 93% rename from docs/assets/Card.stories-d6e2881e.js rename to docs/assets/Card.stories-7d9007ed.js index d3eab645..b2e1faa3 100644 --- a/docs/assets/Card.stories-d6e2881e.js +++ b/docs/assets/Card.stories-7d9007ed.js @@ -1,4 +1,4 @@ -import{j as o,a as e}from"./tw-merge-fe695a60.js";import{C as s}from"./index-600c7863.js";import{B as d}from"./Button-28269a3e.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const A={title:"Data Display/Card",component:s},r=a=>o(s,{...a,children:[e(s.Image,{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg",alt:"Shoes"}),o(s.Body,{children:[e(s.Title,{tag:"h2",children:"Shoes!"}),e("p",{children:"If a dog chews shoes whose shoes does he choose?"}),e(s.Actions,{className:"justify-end",children:e(d,{color:"primary",children:"Buy Now"})})]})]}),t=a=>o("div",{children:[e("div",{className:"mb-3",children:"(vertical on small screen, horizontal on large screen)"}),o(s,{...a,side:"lg",children:[e(s.Image,{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg",alt:"Shoes"}),o(s.Body,{children:[e(s.Title,{tag:"h2",children:"Shoes!"}),e("p",{children:"If a dog chews shoes whose shoes does he choose?"}),e(s.Actions,{className:"justify-end",children:e(d,{color:"primary",children:"Buy Now"})})]})]})]}),n=a=>o(s,{...a,children:[e(s.Image,{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg",alt:"Shoes"}),o(s.Body,{className:"items-center text-center",children:[e(s.Title,{tag:"h2",children:"Shoes!"}),e("p",{children:"If a dog chews shoes whose shoes does he choose?"}),e(s.Actions,{className:"justify-end",children:e(d,{color:"primary",children:"Buy Now"})})]})]}),c=a=>o(s,{...a,imageFull:!0,children:[e(s.Image,{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg",alt:"Shoes"}),o(s.Body,{children:[e(s.Title,{tag:"h2",children:"Shoes!"}),e("p",{children:"If a dog chews shoes whose shoes does he choose?"}),e(s.Actions,{className:"justify-end",children:e(d,{color:"primary",children:"Buy Now"})})]})]});var i,h,l;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`args => { +import{a as o,j as e}from"./tw-merge-0a3648bd.js";import{C as s}from"./index-3c968524.js";import{B as d}from"./Button-e9ac0f78.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const A={title:"Data Display/Card",component:s},r=a=>o(s,{...a,children:[e(s.Image,{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg",alt:"Shoes"}),o(s.Body,{children:[e(s.Title,{tag:"h2",children:"Shoes!"}),e("p",{children:"If a dog chews shoes whose shoes does he choose?"}),e(s.Actions,{className:"justify-end",children:e(d,{color:"primary",children:"Buy Now"})})]})]}),t=a=>o("div",{children:[e("div",{className:"mb-3",children:"(vertical on small screen, horizontal on large screen)"}),o(s,{...a,side:"lg",children:[e(s.Image,{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg",alt:"Shoes"}),o(s.Body,{children:[e(s.Title,{tag:"h2",children:"Shoes!"}),e("p",{children:"If a dog chews shoes whose shoes does he choose?"}),e(s.Actions,{className:"justify-end",children:e(d,{color:"primary",children:"Buy Now"})})]})]})]}),n=a=>o(s,{...a,children:[e(s.Image,{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg",alt:"Shoes"}),o(s.Body,{className:"items-center text-center",children:[e(s.Title,{tag:"h2",children:"Shoes!"}),e("p",{children:"If a dog chews shoes whose shoes does he choose?"}),e(s.Actions,{className:"justify-end",children:e(d,{color:"primary",children:"Buy Now"})})]})]}),c=a=>o(s,{...a,imageFull:!0,children:[e(s.Image,{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg",alt:"Shoes"}),o(s.Body,{children:[e(s.Title,{tag:"h2",children:"Shoes!"}),e("p",{children:"If a dog chews shoes whose shoes does he choose?"}),e(s.Actions,{className:"justify-end",children:e(d,{color:"primary",children:"Buy Now"})})]})]});var i,h,l;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`args => { return @@ -48,4 +48,3 @@ import{j as o,a as e}from"./tw-merge-fe695a60.js";import{C as s}from"./index-600 ; }`,...(f=(w=c.parameters)==null?void 0:w.docs)==null?void 0:f.source}}};const T=["Default","Responsive","Centered","ImageOverlay"];export{n as Centered,r as Default,c as ImageOverlay,t as Responsive,T as __namedExportsOrder,A as default}; -//# sourceMappingURL=Card.stories-d6e2881e.js.map diff --git a/docs/assets/Card.stories-d6e2881e.js.map b/docs/assets/Card.stories-d6e2881e.js.map deleted file mode 100644 index bcd05537..00000000 --- a/docs/assets/Card.stories-d6e2881e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Card.stories-d6e2881e.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Carousel.stories-a016a780.js b/docs/assets/Carousel.stories-4b01da97.js similarity index 96% rename from docs/assets/Carousel.stories-a016a780.js rename to docs/assets/Carousel.stories-4b01da97.js index 2b6c52c8..2110e4c2 100644 --- a/docs/assets/Carousel.stories-a016a780.js +++ b/docs/assets/Carousel.stories-4b01da97.js @@ -1,4 +1,4 @@ -import{t as rt,j as r,a as e,F as V}from"./tw-merge-fe695a60.js";import{r as c}from"./index-ebeaab24.js";import{c as E}from"./clsx.m-1229b3e0.js";import{B as F}from"./Button-28269a3e.js";import"./index-357fb5a8.js";const R=({children:s,innerRef:i,src:u,alt:v,index:x=0,width:l,hasButtons:N,buttonStyle:m,onPrev:C,onNext:I,className:_,...k})=>{const q=rt("carousel-item relative",_,E({"w-full":l==="full","w-1/2":l==="half","h-full":!0})),S=E({"w-full":l==="full"}),w=()=>m!=null?r(V,{children:[c.cloneElement(m("❮"),{onClick:C}),c.cloneElement(m("❯"),{onClick:I})]}):r(V,{children:[e(F,{onClick:C,shape:"circle",children:"❮"}),e(F,{onClick:I,shape:"circle",children:"❯"})]});return r("div",{...k,id:`item${x}`,ref:i,className:q,children:[u?e("img",{src:u,alt:v,className:S}):s,N&&e("div",{className:"absolute flex justify-between transform -translate-y-1/2 left-5 right-5 top-1/2",children:w()})]})},ct=R;try{R.displayName="CarouselItem",R.__docgenInfo={description:"",displayName:"CarouselItem",props:{innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"LegacyRef"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},index:{defaultValue:{value:"0"},description:"",name:"index",required:!1,type:{name:"number"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"enum",value:[{value:'"full"'},{value:'"half"'}]}},hasButtons:{defaultValue:null,description:"",name:"hasButtons",required:!1,type:{name:"boolean"}},buttonStyle:{defaultValue:null,description:"",name:"buttonStyle",required:!1,type:{name:"((value: string) => ReactElement>)"}},onPrev:{defaultValue:null,description:"",name:"onPrev",required:!1,type:{name:"(() => void)"}},onNext:{defaultValue:null,description:"",name:"onNext",required:!1,type:{name:"(() => void)"}}}}}catch{}const B=c.forwardRef(({children:s,display:i="slider",snap:u,vertical:v,width:x,buttonStyle:l,dataTheme:N,className:m,...C},I)=>{const _=rt("carousel",m,E({"carousel-center":u==="center","carousel-end":u==="end","carousel-vertical":v,"w-full":i!=="slider"})),[k,q]=c.useState([]),[S,w]=c.useState(0);c.useEffect(()=>{const o=[];s.map(a=>{o.push(c.createRef())}),q(o)},[s]);const j=o=>{var a;(a=k[o].current)==null||a.scrollIntoView({behavior:"smooth",block:"nearest",inline:u}),w(o)};return r(V,{children:[e("div",{role:"listbox","aria-label":"Image carousel",...C,ref:I,"data-theme":N,className:_,children:s.map((o,a)=>c.cloneElement(o,{key:a,innerRef:k[a],index:a+1,children:o.props.children,src:o.props.src,alt:o.props.alt,width:i!=="slider"?"full":x,hasButtons:i==="sequential",buttonStyle:l,onPrev:()=>j(a-1<0?s.length-1:a-1),onNext:()=>j(a+1>s.length-1?0:a+1),...o.props}))}),i==="numbered"&&e("div",{className:"flex justify-center w-full py-2 gap-2",children:s.map((o,a)=>l!=null?c.cloneElement(l((a+1).toString()),{key:a,onClick:()=>j(a)}):e(F,{active:a===S,onClick:()=>j(a),children:a+1},a))})]})}),t=Object.assign(B,{Item:ct});try{B.displayName="Carousel",B.__docgenInfo={description:"",displayName:"Carousel",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},display:{defaultValue:{value:"slider"},description:"",name:"display",required:!1,type:{name:"enum",value:[{value:'"slider"'},{value:'"numbered"'},{value:'"sequential"'}]}},snap:{defaultValue:null,description:"",name:"snap",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'}]}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"enum",value:[{value:'"full"'},{value:'"half"'}]}},buttonStyle:{defaultValue:null,description:"",name:"buttonStyle",required:!1,type:{name:"((value: string) => ReactElement>)"}}}}}catch{}try{t.displayName="Carousel",t.__docgenInfo={description:"",displayName:"Carousel",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},display:{defaultValue:{value:"slider"},description:"",name:"display",required:!1,type:{name:"enum",value:[{value:'"slider"'},{value:'"numbered"'},{value:'"sequential"'}]}},snap:{defaultValue:null,description:"",name:"snap",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'}]}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"enum",value:[{value:'"full"'},{value:'"half"'}]}},buttonStyle:{defaultValue:null,description:"",name:"buttonStyle",required:!1,type:{name:"((value: string) => ReactElement>)"}}}}}catch{}const nt={title:"Data Display/Carousel",component:t},p=s=>r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});p.args={};const n=s=>r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});n.args={snap:"end"};const d=s=>r(t,{...s,className:"w-64 rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});d.args={width:"full"};const g=s=>r(t,{...s,className:"w-64 rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});g.args={width:"half"};const h=s=>r(t,{...s,className:"h-96 w-64 rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});h.args={width:"full",vertical:!0};const f=s=>r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1609621838510-5ad474b7d25d.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1414694762283-acccc27bca85.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1665553365602-b2fb8e5d1707.jpg",alt:"City"})]});f.args={display:"numbered"};const y=s=>r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1609621838510-5ad474b7d25d.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1414694762283-acccc27bca85.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1665553365602-b2fb8e5d1707.jpg",alt:"City"})]});y.args={display:"sequential"};const b=s=>{const i=u=>e(F,{color:"primary",children:u});return s.buttonStyle=i,r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1609621838510-5ad474b7d25d.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1414694762283-acccc27bca85.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1665553365602-b2fb8e5d1707.jpg",alt:"City"})]})};b.args={display:"sequential"};var T,D,W;p.parameters={...p.parameters,docs:{...(T=p.parameters)==null?void 0:T.docs,source:{originalSource:`args => { +import{t as rt,a as r,j as e,F as V}from"./tw-merge-0a3648bd.js";import{r as c}from"./index-1b03fe98.js";import{c as E}from"./clsx.m-1229b3e0.js";import{B as F}from"./Button-e9ac0f78.js";import"./index-a55c3a76.js";const R=({children:s,innerRef:i,src:u,alt:v,index:x=0,width:l,hasButtons:N,buttonStyle:m,onPrev:C,onNext:I,className:_,...k})=>{const q=rt("carousel-item relative",_,E({"w-full":l==="full","w-1/2":l==="half","h-full":!0})),S=E({"w-full":l==="full"}),w=()=>m!=null?r(V,{children:[c.cloneElement(m("❮"),{onClick:C}),c.cloneElement(m("❯"),{onClick:I})]}):r(V,{children:[e(F,{onClick:C,shape:"circle",children:"❮"}),e(F,{onClick:I,shape:"circle",children:"❯"})]});return r("div",{...k,id:`item${x}`,ref:i,className:q,children:[u?e("img",{src:u,alt:v,className:S}):s,N&&e("div",{className:"absolute flex justify-between transform -translate-y-1/2 left-5 right-5 top-1/2",children:w()})]})},ct=R;try{R.displayName="CarouselItem",R.__docgenInfo={description:"",displayName:"CarouselItem",props:{innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"LegacyRef"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},index:{defaultValue:{value:"0"},description:"",name:"index",required:!1,type:{name:"number"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"enum",value:[{value:'"full"'},{value:'"half"'}]}},hasButtons:{defaultValue:null,description:"",name:"hasButtons",required:!1,type:{name:"boolean"}},buttonStyle:{defaultValue:null,description:"",name:"buttonStyle",required:!1,type:{name:"((value: string) => ReactElement>)"}},onPrev:{defaultValue:null,description:"",name:"onPrev",required:!1,type:{name:"(() => void)"}},onNext:{defaultValue:null,description:"",name:"onNext",required:!1,type:{name:"(() => void)"}}}}}catch{}const B=c.forwardRef(({children:s,display:i="slider",snap:u,vertical:v,width:x,buttonStyle:l,dataTheme:N,className:m,...C},I)=>{const _=rt("carousel",m,E({"carousel-center":u==="center","carousel-end":u==="end","carousel-vertical":v,"w-full":i!=="slider"})),[k,q]=c.useState([]),[S,w]=c.useState(0);c.useEffect(()=>{const o=[];s.map(a=>{o.push(c.createRef())}),q(o)},[s]);const j=o=>{var a;(a=k[o].current)==null||a.scrollIntoView({behavior:"smooth",block:"nearest",inline:u}),w(o)};return r(V,{children:[e("div",{role:"listbox","aria-label":"Image carousel",...C,ref:I,"data-theme":N,className:_,children:s.map((o,a)=>c.cloneElement(o,{key:a,innerRef:k[a],index:a+1,children:o.props.children,src:o.props.src,alt:o.props.alt,width:i!=="slider"?"full":x,hasButtons:i==="sequential",buttonStyle:l,onPrev:()=>j(a-1<0?s.length-1:a-1),onNext:()=>j(a+1>s.length-1?0:a+1),...o.props}))}),i==="numbered"&&e("div",{className:"flex justify-center w-full py-2 gap-2",children:s.map((o,a)=>l!=null?c.cloneElement(l((a+1).toString()),{key:a,onClick:()=>j(a)}):e(F,{active:a===S,onClick:()=>j(a),children:a+1},a))})]})}),t=Object.assign(B,{Item:ct});try{B.displayName="Carousel",B.__docgenInfo={description:"",displayName:"Carousel",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},display:{defaultValue:{value:"slider"},description:"",name:"display",required:!1,type:{name:"enum",value:[{value:'"slider"'},{value:'"numbered"'},{value:'"sequential"'}]}},snap:{defaultValue:null,description:"",name:"snap",required:!1,type:{name:"enum",value:[{value:'"start"'},{value:'"end"'},{value:'"center"'}]}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"enum",value:[{value:'"full"'},{value:'"half"'}]}},buttonStyle:{defaultValue:null,description:"",name:"buttonStyle",required:!1,type:{name:"((value: string) => ReactElement>)"}}}}}catch{}try{t.displayName="Carousel",t.__docgenInfo={description:"",displayName:"Carousel",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},display:{defaultValue:{value:"slider"},description:"",name:"display",required:!1,type:{name:"enum",value:[{value:'"slider"'},{value:'"numbered"'},{value:'"sequential"'}]}},snap:{defaultValue:null,description:"",name:"snap",required:!1,type:{name:"enum",value:[{value:'"start"'},{value:'"end"'},{value:'"center"'}]}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"enum",value:[{value:'"full"'},{value:'"half"'}]}},buttonStyle:{defaultValue:null,description:"",name:"buttonStyle",required:!1,type:{name:"((value: string) => ReactElement>)"}}}}}catch{}const nt={title:"Data Display/Carousel",component:t},p=s=>r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});p.args={};const n=s=>r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});n.args={snap:"end"};const d=s=>r(t,{...s,className:"w-64 rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});d.args={width:"full"};const g=s=>r(t,{...s,className:"w-64 rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});g.args={width:"half"};const h=s=>r(t,{...s,className:"h-96 w-64 rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1494253109108-2e30c049369b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1550258987-190a2d41a8ba.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1559181567-c3190ca9959b.jpg",alt:"Fruits"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1601004890684-d8cbf643f5f2.jpg",alt:"Fruits"})]});h.args={width:"full",vertical:!0};const f=s=>r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1609621838510-5ad474b7d25d.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1414694762283-acccc27bca85.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1665553365602-b2fb8e5d1707.jpg",alt:"City"})]});f.args={display:"numbered"};const y=s=>r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1609621838510-5ad474b7d25d.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1414694762283-acccc27bca85.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1665553365602-b2fb8e5d1707.jpg",alt:"City"})]});y.args={display:"sequential"};const b=s=>{const i=u=>e(F,{color:"primary",children:u});return s.buttonStyle=i,r(t,{...s,className:"rounded-box",children:[e(t.Item,{src:"https://daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1609621838510-5ad474b7d25d.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1414694762283-acccc27bca85.jpg",alt:"City"}),e(t.Item,{src:"https://daisyui.com/images/stock/photo-1665553365602-b2fb8e5d1707.jpg",alt:"City"})]})};b.args={display:"sequential"};var T,D,W;p.parameters={...p.parameters,docs:{...(T=p.parameters)==null?void 0:T.docs,source:{originalSource:`args => { return @@ -74,4 +74,3 @@ import{t as rt,j as r,a as e,F as V}from"./tw-merge-fe695a60.js";import{r as c}f ; }`,...(ot=(at=b.parameters)==null?void 0:at.docs)==null?void 0:ot.source}}};const dt=["Default","Snap","FullWidth","HalfWidth","Vertical","Numbered","Sequential","CustomButton"];export{b as CustomButton,p as Default,d as FullWidth,g as HalfWidth,f as Numbered,y as Sequential,n as Snap,h as Vertical,dt as __namedExportsOrder,nt as default}; -//# sourceMappingURL=Carousel.stories-a016a780.js.map diff --git a/docs/assets/Carousel.stories-a016a780.js.map b/docs/assets/Carousel.stories-a016a780.js.map deleted file mode 100644 index b0a1b5d0..00000000 --- a/docs/assets/Carousel.stories-a016a780.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Carousel.stories-a016a780.js","sources":["../../src/Carousel/CarouselItem.tsx","../../src/Carousel/Carousel.tsx"],"sourcesContent":["import React, { cloneElement, LegacyRef } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport Button from '../Button'\n\nexport type CarouselItemWidth = 'full' | 'half'\n\nexport type CarouselItemProps = React.HTMLAttributes & {\n readonly innerRef?: LegacyRef\n src?: string\n alt?: string\n index?: number\n width?: CarouselItemWidth\n hasButtons?: boolean\n buttonStyle?: (value: string) => React.ReactElement\n onPrev?: () => void\n onNext?: () => void\n}\n\nconst CarouselItem = ({\n children,\n innerRef,\n src,\n alt,\n index = 0,\n width,\n hasButtons,\n buttonStyle,\n onPrev,\n onNext,\n className,\n ...props\n}: CarouselItemProps): JSX.Element => {\n const classes = twMerge(\n 'carousel-item relative',\n className,\n clsx({\n 'w-full': width === 'full',\n 'w-1/2': width === 'half',\n 'h-full': true,\n })\n )\n\n const imageClasses = clsx({\n 'w-full': width === 'full',\n })\n\n const renderButtons = () => {\n if (buttonStyle != null) {\n return (\n <>\n {cloneElement(buttonStyle('❮'), {\n onClick: onPrev,\n })}\n {cloneElement(buttonStyle('❯'), {\n onClick: onNext,\n })}\n \n )\n }\n\n return (\n <>\n \n \n \n )\n }\n\n return (\n
    \n {src ? {alt} : children}\n {hasButtons && (\n
    \n {renderButtons()}\n
    \n )}\n
    \n )\n}\n\nexport default CarouselItem\n","import React, {\n cloneElement,\n createRef,\n forwardRef,\n ReactElement,\n RefObject,\n useEffect,\n useState,\n} from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nimport CarouselItem, {\n CarouselItemProps,\n CarouselItemWidth,\n} from './CarouselItem'\nimport Button from '../Button'\n\nexport type CarouselProps = React.HTMLAttributes &\n IComponentBaseProps & {\n children: ReactElement[]\n display?: 'slider' | 'numbered' | 'sequential'\n snap?: 'start' | 'center' | 'end'\n vertical?: boolean\n width?: CarouselItemWidth\n buttonStyle?: (value: string) => React.ReactElement\n }\n\nconst Carousel = forwardRef(\n (\n {\n children,\n display = 'slider',\n snap,\n vertical,\n width,\n buttonStyle,\n dataTheme,\n className,\n ...props\n },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n 'carousel',\n className,\n clsx({\n 'carousel-center': snap === 'center',\n 'carousel-end': snap === 'end',\n 'carousel-vertical': vertical,\n 'w-full': display !== 'slider',\n })\n )\n\n const [itemRefs, setItemRefs] = useState[]>([])\n const [activeIndex, setActiveIndex] = useState(0)\n\n useEffect(() => {\n const newRefs: RefObject[] = []\n children.map((_) => {\n newRefs.push(createRef())\n })\n setItemRefs(newRefs)\n }, [children])\n\n const scrollToIndex = (index: number) => {\n itemRefs[index].current?.scrollIntoView({\n behavior: 'smooth',\n block: 'nearest',\n inline: snap,\n })\n setActiveIndex(index)\n }\n\n return (\n <>\n \n {children.map((child, i) => {\n return cloneElement(child, {\n key: i,\n innerRef: itemRefs[i],\n index: i + 1,\n children: child.props.children,\n src: child.props.src,\n alt: child.props.alt,\n width: display !== 'slider' ? 'full' : width,\n hasButtons: display === 'sequential',\n buttonStyle,\n onPrev: () =>\n scrollToIndex(i - 1 < 0 ? children.length - 1 : i - 1),\n onNext: () =>\n scrollToIndex(i + 1 > children.length - 1 ? 0 : i + 1),\n ...child.props,\n })\n })}\n \n {display === 'numbered' && (\n
    \n {children.map((_, i) => {\n if (buttonStyle != null) {\n return cloneElement(buttonStyle((i + 1).toString()), {\n key: i,\n onClick: () => scrollToIndex(i),\n })\n }\n\n return (\n scrollToIndex(i)}\n >\n {i + 1}\n \n )\n })}\n
    \n )}\n \n )\n }\n)\n\nexport default Object.assign(Carousel, { Item: CarouselItem })\n"],"names":["CarouselItem","children","innerRef","src","alt","index","width","hasButtons","buttonStyle","onPrev","onNext","className","props","classes","twMerge","clsx","imageClasses","renderButtons","jsxs","Fragment","cloneElement","jsx","Button","CarouselItem$1","Carousel","forwardRef","display","snap","vertical","dataTheme","ref","itemRefs","setItemRefs","useState","activeIndex","setActiveIndex","useEffect","newRefs","_","createRef","scrollToIndex","_a","child","i","Carousel$1"],"mappings":"uNAoBA,MAAAA,EAAA,CAAA,CAAsB,SAAAC,EACpB,SAAAC,EACA,IAAAC,EACA,IAAAC,EACA,MAAAC,EAAA,EACQ,MAAAC,EACR,WAAAC,EACA,YAAAC,EACA,OAAAC,EACA,OAAAC,EACA,UAAAC,EACA,GAAAC,CAEF,IAAA,CACE,MAAAC,EAAAC,GAAgB,yBACdH,EACAI,EAAA,CACK,SAAAT,IAAA,OACiB,QAAAA,IAAA,OACD,SAAA,EACT,CAAA,CACX,EAGHU,EAAAD,EAAA,CAA0B,SAAAT,IAAA,MACJ,CAAA,EAGtBW,EAAA,IACET,GAAA,KACEU,EAAAC,EAAA,CAAA,SAAA,CAEKC,eAAAZ,EAAA,GAAA,EAAA,CAA+B,QAAAC,CACrB,CAAA,EACVW,eAAAZ,EAAA,GAAA,EAAA,CAC+B,QAAAE,CACrB,CAAA,CACV,CAAA,CAAA,EAKPQ,EAAAC,EAAA,CAAA,SAAA,CAEIE,EAAAC,EAAA,CAAA,QAAAb,EAAA,MAAA,SAAA,SAAA,IAAA,EAEAY,EAAAC,EAAA,CAAA,QAAAZ,EAAA,MAAA,SAAA,SAAA,IAAA,CAGA,CAAA,CAAA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AyC,EAAAC,IAGTvB,EAAAA,aAAAsB,EAAA,CAA2B,IAAAC,EACpB,SAAAZ,EAAAY,CAAA,EACe,MAAAA,EAAA,EACT,SAAAD,EAAA,MAAA,SACW,IAAAA,EAAA,MAAA,IACL,IAAAA,EAAA,MAAA,IACA,MAAAhB,IAAA,SAAA,OAAApB,EACsB,WAAAoB,IAAA,aACf,YAAAlB,EACxB,OAAA,IAAAgC,EAAAG,EAAA,EAAA,EAAA1C,EAAA,OAAA,EAAA0C,EAAA,CAAA,EAEuD,OAAA,IAAAH,EAAAG,EAAA,EAAA1C,EAAA,OAAA,EAAA,EAAA0C,EAAA,CAAA,EAEA,GAAAD,EAAA,KAC9C,CAAA,CACV,CACF,CAAA,EACHhB,IAAA,YAAAL,EAAA,MAAA,CAAA,UAAA,wCAAA,SAAApB,EAAA,IAAA,CAAAqC,EAAAK,IAIMnC,GAAA,KACEY,EAAAA,aAAAZ,GAAAmC,EAAA,GAAA,SAAA,CAAA,EAAA,CAAqD,IAAAA,EAC9C,QAAA,IAAAH,EAAAG,CAAA,CACyB,CAAA,EAIlCtB,EACEC,EAAC,CAAA,OAAAqB,IAAAT,EACe,QAAA,IAAAM,EAAAG,CAAA,EAEgB,SAAAA,EAAA,CAEzB,EAAAA,CAHA,CAIP,EAAA,CAGN,CAAA,CAAA,CAEJ,CAGN,EAEAC,EAAA,OAAA,OAAApB,EAAA,CAAA,KAAAxB,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/ChatBubble.stories-11893b91.js b/docs/assets/ChatBubble.stories-11893b91.js new file mode 100644 index 00000000..79cc71e3 --- /dev/null +++ b/docs/assets/ChatBubble.stories-11893b91.js @@ -0,0 +1,130 @@ +import{j as a,t as b,a as r,F as u}from"./tw-merge-0a3648bd.js";import{R as h,r as P}from"./index-1b03fe98.js";import{A as G}from"./index-6ae1381f.js";import{c as L}from"./clsx.m-1229b3e0.js";import"./utils-25597068.js";const y=h.forwardRef(({size:t="xs",shape:n="circle",className:s,...o},l)=>a(G,{size:t,shape:n,...o,className:b("chat-image",s),ref:l})),Q=y;try{y.displayName="ChatBubbleAvatar",y.__docgenInfo={description:"",displayName:"ChatBubbleAvatar",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},letters:{defaultValue:null,description:"",name:"letters",required:!1,type:{name:"string"}},size:{defaultValue:{value:"xs"},description:"",name:"size",required:!1,type:{name:'number | "lg" | "md" | "sm" | "xs"'}},shape:{defaultValue:{value:"circle"},description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circle"'},{value:'"square"'}]}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"primary"'},{value:'"secondary"'},{value:'"accent"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:"boolean"}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"primary"'},{value:'"secondary"'},{value:'"accent"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},online:{defaultValue:null,description:"",name:"online",required:!1,type:{name:"boolean"}},offline:{defaultValue:null,description:"",name:"offline",required:!1,type:{name:"boolean"}},innerClassName:{defaultValue:null,description:"",name:"innerClassName",required:!1,type:{name:"string"}}}}}catch{}const f=h.forwardRef(({color:t,className:n,...s},o)=>{const l=b("chat-bubble",L({"chat-bubble-primary":t==="primary","chat-bubble-secondary":t==="secondary","chat-bubble-accent":t==="accent","chat-bubble-info":t==="info","chat-bubble-success":t==="success","chat-bubble-warning":t==="warning","chat-bubble-error":t==="error"}),n);return a("div",{...s,className:l,ref:o})}),U=f;try{f.displayName="ChatBubbleMessage",f.__docgenInfo={description:"",displayName:"ChatBubbleMessage",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const v=h.forwardRef(({className:t,...n},s)=>a("div",{...n,className:b("chat-header",t),ref:s})),X=v;try{v.displayName="ChatBubbleHeader",v.__docgenInfo={description:"",displayName:"ChatBubbleHeader",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const M=h.forwardRef(({className:t,...n},s)=>a("time",{...n,className:b("text-xs opacity-50",t),ref:s})),Z=M;try{M.displayName="ChatBubbleTime",M.__docgenInfo={description:"",displayName:"ChatBubbleTime",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const _=h.forwardRef(({className:t,...n},s)=>a("div",{...n,className:b("chat-footer opacity-50",t),ref:s})),ee=_;try{_.displayName="ChatBubbleFooter",_.__docgenInfo={description:"",displayName:"ChatBubbleFooter",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const B=P.forwardRef(({end:t=!1,color:n,dataTheme:s,className:o,children:l,...E},J)=>a("div",{...E,"data-theme":s,className:b("chat",`chat-${t?"end":"start"}`,o),ref:J,children:l}));B.displayName="ChatBubble";const e=Object.assign(B,{Header:X,Time:Z,Avatar:Q,Message:U,Footer:ee});try{B.displayName="ChatBubble",B.__docgenInfo={description:"",displayName:"ChatBubble",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},end:{defaultValue:{value:"false"},description:"",name:"end",required:!1,type:{name:"boolean"}}}}}catch{}const oe={title:"Data Display/Chat Bubble",component:e,decorators:[t=>a("div",{className:"w-full",children:a(t,{})})]},i=({header:t,time:n,avatar:s,footer:o,side:l})=>r(e,{end:l==="end",children:[t&&r(e.Header,{children:["Obi-Wan Kenobi"," ",n&&a(e.Time,{children:"2 hours ago"})]}),s&&a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"You were my brother, Anakin."}),o&&a(e.Footer,{children:"Seen"})]});i.args={header:!1,time:!1,avatar:!1,footer:!1,side:"start"};i.argTypes={side:{options:["start","end"],control:{type:"radio"}}};i.parameters={controls:{exclude:["end","dataTheme"]}};const d=t=>r(u,{children:[a(e,{children:r(e.Message,{children:["It's over Anakin, ",a("br",{}),"I have the high ground."]})}),a(e,{end:!0,children:a(e.Message,{children:"You underestimate my power!"})})]}),c=t=>r(u,{children:[r(e,{children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"It was said that you would, destroy the Sith, not join them."})]}),r(e,{children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"It was you who would bring balance to the Force"})]}),r(e,{children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"Not leave it in Darkness"})]})]}),m=t=>r(u,{children:[r(e,{children:[r(e.Header,{children:["Obi-Wan Kenobi ",a(e.Time,{children:"12:45"})]}),a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"You were the Chosen One!"})]}),r(e,{end:!0,children:[r(e.Header,{children:["Anakin ",a(e.Time,{children:"12:46"})]}),a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"I hate you!"})]})]}),p=t=>r(u,{children:[r(e,{children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"You were the Chosen One!"}),a(e.Footer,{children:"Delivered"})]}),r(e,{end:!0,children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"I hate you!"}),a(e.Footer,{children:"Seen at 12:46"})]})]}),g=t=>r(u,{children:[r(e,{children:[r(e.Header,{children:["Obi-Wan Kenobi ",a(e.Time,{children:"12:45"})]}),a(e.Message,{children:"You were the Chosen One!"}),a(e.Footer,{children:"Delivered"})]}),r(e,{end:!0,children:[r(e.Header,{children:["Anakin ",a(e.Time,{children:"12:46"})]}),a(e.Message,{children:"I hate you!"}),a(e.Footer,{children:"Seen at 12:46"})]})]}),C=t=>r(u,{children:[a(e,{children:a(e.Message,{color:"primary",children:"What kind of nonsense is this"})}),a(e,{children:a(e.Message,{color:"secondary",children:"Put me on the Council and not make me a Master!??"})}),a(e,{children:a(e.Message,{color:"accent",children:"That's never been done in the history of the Jedi. It's insulting!"})}),a(e,{end:!0,children:a(e.Message,{color:"info",children:"Calm down, Anakin."})}),a(e,{end:!0,children:a(e.Message,{color:"success",children:"You have been given a great honor."})}),a(e,{end:!0,children:a(e.Message,{color:"warning",children:"To be on the Council at your age."})}),a(e,{end:!0,children:a(e.Message,{color:"error",children:"It's never happened before."})})]});var T,w,A;i.parameters={...i.parameters,docs:{...(T=i.parameters)==null?void 0:T.docs,source:{originalSource:`({ + header, + time, + avatar, + footer, + side +}) => { + return + {header && + Obi-Wan Kenobi{' '} + {time && 2 hours ago} + } + {avatar && } + You were my brother, Anakin. + {footer && Seen} + ; +}`,...(A=(w=i.parameters)==null?void 0:w.docs)==null?void 0:A.source}}};var k,F,I;d.parameters={...d.parameters,docs:{...(k=d.parameters)==null?void 0:k.docs,source:{originalSource:`args => <> + + + It's over Anakin,
    I have the high ground. +
    +
    + + + You underestimate my power! + + `,...(I=(F=d.parameters)==null?void 0:F.docs)==null?void 0:I.source}}};var H,N,j;c.parameters={...c.parameters,docs:{...(H=c.parameters)==null?void 0:H.docs,source:{originalSource:`args => <> + + + + It was said that you would, destroy the Sith, not join them. + + + + + + + It was you who would bring balance to the Force + + + + + + Not leave it in Darkness + + `,...(j=(N=c.parameters)==null?void 0:N.docs)==null?void 0:j.source}}};var q,S,V;m.parameters={...m.parameters,docs:{...(q=m.parameters)==null?void 0:q.docs,source:{originalSource:`args => <> + + + Obi-Wan Kenobi 12:45 + + + You were the Chosen One! + + + + + Anakin 12:46 + + + I hate you! + + `,...(V=(S=m.parameters)==null?void 0:S.docs)==null?void 0:V.source}}};var W,O,x;p.parameters={...p.parameters,docs:{...(W=p.parameters)==null?void 0:W.docs,source:{originalSource:`args => <> + + + You were the Chosen One! + Delivered + + + + + I hate you! + Seen at 12:46 + + `,...(x=(O=p.parameters)==null?void 0:O.docs)==null?void 0:x.source}}};var Y,D,R;g.parameters={...g.parameters,docs:{...(Y=g.parameters)==null?void 0:Y.docs,source:{originalSource:`args => <> + + + Obi-Wan Kenobi 12:45 + + You were the Chosen One! + Delivered + + + + + Anakin 12:46 + + I hate you! + Seen at 12:46 + + `,...(R=(D=g.parameters)==null?void 0:D.docs)==null?void 0:R.source}}};var $,K,z;C.parameters={...C.parameters,docs:{...($=C.parameters)==null?void 0:$.docs,source:{originalSource:`args => <> + + + What kind of nonsense is this + + + + + + Put me on the Council and not make me a Master!?? + + + + + + That's never been done in the history of the Jedi. It's insulting! + + + + + Calm down, Anakin. + + + + + You have been given a great honor. + + + + + + To be on the Council at your age. + + + + + + It's never happened before. + + + `,...(z=(K=C.parameters)==null?void 0:K.docs)==null?void 0:z.source}}};const le=["Default","Side","WithImage","WithHeader","WithFooter","WithHeaderAndFooter","Colors"];export{C as Colors,i as Default,d as Side,p as WithFooter,m as WithHeader,g as WithHeaderAndFooter,c as WithImage,le as __namedExportsOrder,oe as default}; diff --git a/docs/assets/ChatBubble.stories-c7a7a5ec.js b/docs/assets/ChatBubble.stories-c7a7a5ec.js deleted file mode 100644 index 5d8bfac4..00000000 --- a/docs/assets/ChatBubble.stories-c7a7a5ec.js +++ /dev/null @@ -1,131 +0,0 @@ -import{a,t as b,j as r,F as u}from"./tw-merge-fe695a60.js";import{R as h,r as P}from"./index-ebeaab24.js";import{A as G}from"./index-8b88db11.js";import{c as L}from"./clsx.m-1229b3e0.js";import"./utils-50b96f3f.js";const y=h.forwardRef(({size:t="xs",shape:n="circle",className:s,...o},l)=>a(G,{size:t,shape:n,...o,className:b("chat-image",s),ref:l})),Q=y;try{y.displayName="ChatBubbleAvatar",y.__docgenInfo={description:"",displayName:"ChatBubbleAvatar",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},letters:{defaultValue:null,description:"",name:"letters",required:!1,type:{name:"string"}},size:{defaultValue:{value:"xs"},description:"",name:"size",required:!1,type:{name:'number | "lg" | "md" | "sm" | "xs"'}},shape:{defaultValue:{value:"circle"},description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circle"'},{value:'"square"'}]}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"primary"'},{value:'"secondary"'},{value:'"accent"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:"boolean"}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"primary"'},{value:'"secondary"'},{value:'"accent"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},online:{defaultValue:null,description:"",name:"online",required:!1,type:{name:"boolean"}},offline:{defaultValue:null,description:"",name:"offline",required:!1,type:{name:"boolean"}},innerClassName:{defaultValue:null,description:"",name:"innerClassName",required:!1,type:{name:"string"}}}}}catch{}const f=h.forwardRef(({color:t,className:n,...s},o)=>{const l=b("chat-bubble",L({"chat-bubble-primary":t==="primary","chat-bubble-secondary":t==="secondary","chat-bubble-accent":t==="accent","chat-bubble-info":t==="info","chat-bubble-success":t==="success","chat-bubble-warning":t==="warning","chat-bubble-error":t==="error"}),n);return a("div",{...s,className:l,ref:o})}),U=f;try{f.displayName="ChatBubbleMessage",f.__docgenInfo={description:"",displayName:"ChatBubbleMessage",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const v=h.forwardRef(({className:t,...n},s)=>a("div",{...n,className:b("chat-header",t),ref:s})),X=v;try{v.displayName="ChatBubbleHeader",v.__docgenInfo={description:"",displayName:"ChatBubbleHeader",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const M=h.forwardRef(({className:t,...n},s)=>a("time",{...n,className:b("text-xs opacity-50",t),ref:s})),Z=M;try{M.displayName="ChatBubbleTime",M.__docgenInfo={description:"",displayName:"ChatBubbleTime",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const _=h.forwardRef(({className:t,...n},s)=>a("div",{...n,className:b("chat-footer opacity-50",t),ref:s})),ee=_;try{_.displayName="ChatBubbleFooter",_.__docgenInfo={description:"",displayName:"ChatBubbleFooter",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const B=P.forwardRef(({end:t=!1,color:n,dataTheme:s,className:o,children:l,...E},J)=>a("div",{...E,"data-theme":s,className:b("chat",`chat-${t?"end":"start"}`,o),ref:J,children:l}));B.displayName="ChatBubble";const e=Object.assign(B,{Header:X,Time:Z,Avatar:Q,Message:U,Footer:ee});try{B.displayName="ChatBubble",B.__docgenInfo={description:"",displayName:"ChatBubble",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},end:{defaultValue:{value:"false"},description:"",name:"end",required:!1,type:{name:"boolean"}}}}}catch{}const oe={title:"Data Display/Chat Bubble",component:e,decorators:[t=>a("div",{className:"w-full",children:a(t,{})})]},i=({header:t,time:n,avatar:s,footer:o,side:l})=>r(e,{end:l==="end",children:[t&&r(e.Header,{children:["Obi-Wan Kenobi"," ",n&&a(e.Time,{children:"2 hours ago"})]}),s&&a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"You were my brother, Anakin."}),o&&a(e.Footer,{children:"Seen"})]});i.args={header:!1,time:!1,avatar:!1,footer:!1,side:"start"};i.argTypes={side:{options:["start","end"],control:{type:"radio"}}};i.parameters={controls:{exclude:["end","dataTheme"]}};const d=t=>r(u,{children:[a(e,{children:r(e.Message,{children:["It's over Anakin, ",a("br",{}),"I have the high ground."]})}),a(e,{end:!0,children:a(e.Message,{children:"You underestimate my power!"})})]}),c=t=>r(u,{children:[r(e,{children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"It was said that you would, destroy the Sith, not join them."})]}),r(e,{children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"It was you who would bring balance to the Force"})]}),r(e,{children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"Not leave it in Darkness"})]})]}),m=t=>r(u,{children:[r(e,{children:[r(e.Header,{children:["Obi-Wan Kenobi ",a(e.Time,{children:"12:45"})]}),a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"You were the Chosen One!"})]}),r(e,{end:!0,children:[r(e.Header,{children:["Anakin ",a(e.Time,{children:"12:46"})]}),a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"I hate you!"})]})]}),p=t=>r(u,{children:[r(e,{children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"You were the Chosen One!"}),a(e.Footer,{children:"Delivered"})]}),r(e,{end:!0,children:[a(e.Avatar,{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"}),a(e.Message,{children:"I hate you!"}),a(e.Footer,{children:"Seen at 12:46"})]})]}),g=t=>r(u,{children:[r(e,{children:[r(e.Header,{children:["Obi-Wan Kenobi ",a(e.Time,{children:"12:45"})]}),a(e.Message,{children:"You were the Chosen One!"}),a(e.Footer,{children:"Delivered"})]}),r(e,{end:!0,children:[r(e.Header,{children:["Anakin ",a(e.Time,{children:"12:46"})]}),a(e.Message,{children:"I hate you!"}),a(e.Footer,{children:"Seen at 12:46"})]})]}),C=t=>r(u,{children:[a(e,{children:a(e.Message,{color:"primary",children:"What kind of nonsense is this"})}),a(e,{children:a(e.Message,{color:"secondary",children:"Put me on the Council and not make me a Master!??"})}),a(e,{children:a(e.Message,{color:"accent",children:"That's never been done in the history of the Jedi. It's insulting!"})}),a(e,{end:!0,children:a(e.Message,{color:"info",children:"Calm down, Anakin."})}),a(e,{end:!0,children:a(e.Message,{color:"success",children:"You have been given a great honor."})}),a(e,{end:!0,children:a(e.Message,{color:"warning",children:"To be on the Council at your age."})}),a(e,{end:!0,children:a(e.Message,{color:"error",children:"It's never happened before."})})]});var T,w,A;i.parameters={...i.parameters,docs:{...(T=i.parameters)==null?void 0:T.docs,source:{originalSource:`({ - header, - time, - avatar, - footer, - side -}) => { - return - {header && - Obi-Wan Kenobi{' '} - {time && 2 hours ago} - } - {avatar && } - You were my brother, Anakin. - {footer && Seen} - ; -}`,...(A=(w=i.parameters)==null?void 0:w.docs)==null?void 0:A.source}}};var k,F,I;d.parameters={...d.parameters,docs:{...(k=d.parameters)==null?void 0:k.docs,source:{originalSource:`args => <> - - - It's over Anakin,
    I have the high ground. -
    -
    - - - You underestimate my power! - - `,...(I=(F=d.parameters)==null?void 0:F.docs)==null?void 0:I.source}}};var H,N,j;c.parameters={...c.parameters,docs:{...(H=c.parameters)==null?void 0:H.docs,source:{originalSource:`args => <> - - - - It was said that you would, destroy the Sith, not join them. - - - - - - - It was you who would bring balance to the Force - - - - - - Not leave it in Darkness - - `,...(j=(N=c.parameters)==null?void 0:N.docs)==null?void 0:j.source}}};var q,S,V;m.parameters={...m.parameters,docs:{...(q=m.parameters)==null?void 0:q.docs,source:{originalSource:`args => <> - - - Obi-Wan Kenobi 12:45 - - - You were the Chosen One! - - - - - Anakin 12:46 - - - I hate you! - - `,...(V=(S=m.parameters)==null?void 0:S.docs)==null?void 0:V.source}}};var W,O,x;p.parameters={...p.parameters,docs:{...(W=p.parameters)==null?void 0:W.docs,source:{originalSource:`args => <> - - - You were the Chosen One! - Delivered - - - - - I hate you! - Seen at 12:46 - - `,...(x=(O=p.parameters)==null?void 0:O.docs)==null?void 0:x.source}}};var Y,D,R;g.parameters={...g.parameters,docs:{...(Y=g.parameters)==null?void 0:Y.docs,source:{originalSource:`args => <> - - - Obi-Wan Kenobi 12:45 - - You were the Chosen One! - Delivered - - - - - Anakin 12:46 - - I hate you! - Seen at 12:46 - - `,...(R=(D=g.parameters)==null?void 0:D.docs)==null?void 0:R.source}}};var $,K,z;C.parameters={...C.parameters,docs:{...($=C.parameters)==null?void 0:$.docs,source:{originalSource:`args => <> - - - What kind of nonsense is this - - - - - - Put me on the Council and not make me a Master!?? - - - - - - That's never been done in the history of the Jedi. It's insulting! - - - - - Calm down, Anakin. - - - - - You have been given a great honor. - - - - - - To be on the Council at your age. - - - - - - It's never happened before. - - - `,...(z=(K=C.parameters)==null?void 0:K.docs)==null?void 0:z.source}}};const le=["Default","Side","WithImage","WithHeader","WithFooter","WithHeaderAndFooter","Colors"];export{C as Colors,i as Default,d as Side,p as WithFooter,m as WithHeader,g as WithHeaderAndFooter,c as WithImage,le as __namedExportsOrder,oe as default}; -//# sourceMappingURL=ChatBubble.stories-c7a7a5ec.js.map diff --git a/docs/assets/ChatBubble.stories-c7a7a5ec.js.map b/docs/assets/ChatBubble.stories-c7a7a5ec.js.map deleted file mode 100644 index f2166a39..00000000 --- a/docs/assets/ChatBubble.stories-c7a7a5ec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChatBubble.stories-c7a7a5ec.js","sources":["../../src/ChatBubble/ChatBubbleAvatar.tsx","../../src/ChatBubble/ChatBubbleMessage.tsx","../../src/ChatBubble/ChatBubbleHeader.tsx","../../src/ChatBubble/ChatBubbleTime.tsx","../../src/ChatBubble/ChatBubbleFooter.tsx","../../src/ChatBubble/ChatBubble.tsx"],"sourcesContent":["import React from 'react'\nimport { twMerge } from 'tailwind-merge'\nimport { IComponentBaseProps } from '../types'\nimport Avatar, { AvatarProps } from '../Avatar'\n\nexport type ChatBubbleAvatarProps = AvatarProps & IComponentBaseProps\n\nconst ChatBubbleAvatar = React.forwardRef<\n HTMLDivElement,\n ChatBubbleAvatarProps\n>(({ size = 'xs', shape = 'circle', className, ...props }, ref) => (\n \n))\n\nexport default ChatBubbleAvatar\n","import clsx from 'clsx'\nimport React from 'react'\nimport { twMerge } from 'tailwind-merge'\nimport { ComponentColor, IComponentBaseProps } from '../types'\n\nexport type ChatBubbleMessageProps = React.HTMLAttributes &\n IComponentBaseProps & {\n color?: ComponentColor\n }\n\nconst ChatBubbleMessage = React.forwardRef<\n HTMLDivElement,\n ChatBubbleMessageProps\n>(({ color, className, ...props }, ref) => {\n const classes = twMerge(\n 'chat-bubble',\n clsx({\n 'chat-bubble-primary': color === 'primary',\n 'chat-bubble-secondary': color === 'secondary',\n 'chat-bubble-accent': color === 'accent',\n 'chat-bubble-info': color === 'info',\n 'chat-bubble-success': color === 'success',\n 'chat-bubble-warning': color === 'warning',\n 'chat-bubble-error': color === 'error',\n }),\n className\n )\n\n return
    \n})\n\nexport default ChatBubbleMessage\n","import React from 'react'\nimport { twMerge } from 'tailwind-merge'\nimport { IComponentBaseProps } from '../types'\n\nexport type ChatBubbleHeaderProps = React.HTMLAttributes &\n IComponentBaseProps\n\nconst ChatBubbleHeader = React.forwardRef<\n HTMLDivElement,\n ChatBubbleHeaderProps\n>(({ className, ...props }, ref) => (\n
    \n))\n\nexport default ChatBubbleHeader\n","import React from 'react'\nimport { twMerge } from 'tailwind-merge'\nimport { IComponentBaseProps } from '../types'\n\nexport type ChatBubbleTimeProps = React.TimeHTMLAttributes &\n IComponentBaseProps\n\nconst ChatBubbleTime = React.forwardRef(\n ({ className, ...props }, ref) => (\n \n )\n)\n\nexport default ChatBubbleTime\n","import React from 'react'\nimport { twMerge } from 'tailwind-merge'\nimport { IComponentBaseProps } from '../types'\n\nexport type ChatBubbleFooterProps = React.HTMLAttributes &\n IComponentBaseProps\n\nconst ChatBubbleFooter = React.forwardRef<\n HTMLDivElement,\n ChatBubbleFooterProps\n>(({ className, ...props }, ref) => (\n \n))\n\nexport default ChatBubbleFooter\n","import React, { forwardRef } from 'react'\nimport { twMerge } from 'tailwind-merge'\nimport { IComponentBaseProps } from '../types'\nimport ChatBubbleAvatar from './ChatBubbleAvatar'\nimport ChatBubbleMessage from './ChatBubbleMessage'\nimport ChatBubbleHeader from './ChatBubbleHeader'\nimport ChatBubbleTime from './ChatBubbleTime'\nimport ChatBubbleFooter from './ChatBubbleFooter'\n\nexport type ChatBubbleProps = React.HTMLAttributes &\n IComponentBaseProps & {\n end?: boolean\n }\n\nconst ChatBubble = forwardRef(\n (\n { end = false, color, dataTheme, className, children, ...props },\n ref\n ): JSX.Element => (\n \n {children}\n
    \n )\n)\n\nChatBubble.displayName = 'ChatBubble'\n\nexport default Object.assign(ChatBubble, {\n Header: ChatBubbleHeader,\n Time: ChatBubbleTime,\n Avatar: ChatBubbleAvatar,\n Message: ChatBubbleMessage,\n Footer: ChatBubbleFooter,\n})\n"],"names":["ChatBubbleAvatar","React","size","shape","className","props","ref","jsx","Avatar","twMerge","ChatBubbleAvatar$1","ChatBubbleMessage","color","classes","clsx","ChatBubbleMessage$1","ChatBubbleHeader","ChatBubbleHeader$1","ChatBubbleTime","ChatBubbleTime$1","ChatBubbleFooter","ChatBubbleFooter$1","ChatBubble","forwardRef","end","dataTheme","children","ChatBubble$1"],"mappings":"uNAOA,MAAAA,EAAAC,EAAA,WAAA,CAAA,CAAA,KAAAC,EAAA,KAAA,MAAAC,EAAA,SAAA,UAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAAC,EAIEC,EAAC,CAAA,KAAAN,EACC,MAAAC,EACA,GAAAE,EACI,UAAA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Q,UAAAhB,EAAA,OAAA,QAAAe,EAAA,MAAA,UAAApB,CAAA,EACyD,IAAAE,EACrE,SAAAoB,CAEC,CAAA,CAGP,EAEAJ,EAAA,YAAA,aAEA,MAAAK,EAAA,OAAA,OAAAL,EAAA,CAAyC,OAAAN,EAC/B,KAAAE,EACF,OAAAlB,EACE,QAAAW,EACC,OAAAS,EAEX,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Checkbox.stories-f66f133f.js b/docs/assets/Checkbox.stories-c0fcae51.js similarity index 93% rename from docs/assets/Checkbox.stories-f66f133f.js rename to docs/assets/Checkbox.stories-c0fcae51.js index 03a20760..1e5ae0db 100644 --- a/docs/assets/Checkbox.stories-f66f133f.js +++ b/docs/assets/Checkbox.stories-c0fcae51.js @@ -1,4 +1,4 @@ -import{j as R,a as r}from"./tw-merge-fe695a60.js";import{C as a}from"./index-8a47655f.js";import{F as m}from"./index-3a31de6a.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";const G={title:"Data Input/Checkbox",component:a},u=e=>r(a,{...e}),s=u.bind({});s.args={};const o=u.bind({});o.args={indeterminate:!0};const T=e=>r(m,{className:"shadow bg-base-200 w-64 rounded-lg p-4",children:r(m.Label,{title:"Remember me",children:r(a,{...e})})}),c=T.bind({});c.args={};const t=e=>R("div",{className:"flex flex-col items-center float-left gap-2",children:[r(a,{...e,defaultChecked:!0,color:"primary"}),r(a,{...e,defaultChecked:!0,color:"secondary"}),r(a,{...e,defaultChecked:!0,color:"accent"}),r(a,{...e,defaultChecked:!0,color:"success"}),r(a,{...e,defaultChecked:!0,color:"warning"}),r(a,{...e,defaultChecked:!0,color:"info"}),r(a,{...e,defaultChecked:!0,color:"error"})]});t.args={};const d=e=>R("div",{className:"flex flex-col items-center float-left gap-2",children:[r(a,{...e,defaultChecked:!0,size:"xs"}),r(a,{...e,defaultChecked:!0,size:"sm"}),r(a,{...e,defaultChecked:!0,size:"md"}),r(a,{...e,defaultChecked:!0,size:"lg"})]});d.args={};const l=u.bind({});l.args={disabled:!0};const n=u.bind({});n.args={checked:!0,disabled:!0};var i,h,C;s.parameters={...s.parameters,docs:{...(i=s.parameters)==null?void 0:i.docs,source:{originalSource:`args => { +import{a as R,j as r}from"./tw-merge-0a3648bd.js";import{C as a}from"./index-5a4bf744.js";import{F as m}from"./index-cdaabc1d.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";const G={title:"Data Input/Checkbox",component:a},u=e=>r(a,{...e}),s=u.bind({});s.args={};const o=u.bind({});o.args={indeterminate:!0};const T=e=>r(m,{className:"shadow bg-base-200 w-64 rounded-lg p-4",children:r(m.Label,{title:"Remember me",children:r(a,{...e})})}),c=T.bind({});c.args={};const t=e=>R("div",{className:"flex flex-col items-center float-left gap-2",children:[r(a,{...e,defaultChecked:!0,color:"primary"}),r(a,{...e,defaultChecked:!0,color:"secondary"}),r(a,{...e,defaultChecked:!0,color:"accent"}),r(a,{...e,defaultChecked:!0,color:"success"}),r(a,{...e,defaultChecked:!0,color:"warning"}),r(a,{...e,defaultChecked:!0,color:"info"}),r(a,{...e,defaultChecked:!0,color:"error"})]});t.args={};const d=e=>R("div",{className:"flex flex-col items-center float-left gap-2",children:[r(a,{...e,defaultChecked:!0,size:"xs"}),r(a,{...e,defaultChecked:!0,size:"sm"}),r(a,{...e,defaultChecked:!0,size:"md"}),r(a,{...e,defaultChecked:!0,size:"lg"})]});d.args={};const l=u.bind({});l.args={disabled:!0};const n=u.bind({});n.args={checked:!0,disabled:!0};var i,h,C;s.parameters={...s.parameters,docs:{...(i=s.parameters)==null?void 0:i.docs,source:{originalSource:`args => { return ; }`,...(C=(h=s.parameters)==null?void 0:h.docs)==null?void 0:C.source}}};var p,f,k;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`args => { return ; @@ -30,4 +30,3 @@ import{j as R,a as r}from"./tw-merge-fe695a60.js";import{C as a}from"./index-8a4 }`,...(j=(y=l.parameters)==null?void 0:y.docs)==null?void 0:j.source}}};var I,L,_;n.parameters={...n.parameters,docs:{...(I=n.parameters)==null?void 0:I.docs,source:{originalSource:`args => { return ; }`,...(_=(L=n.parameters)==null?void 0:L.docs)==null?void 0:_.source}}};const H=["Default","Indeterminate","FormControl","Colors","Sizes","Disabled","DisabledChecked"];export{t as Colors,s as Default,l as Disabled,n as DisabledChecked,c as FormControl,o as Indeterminate,d as Sizes,H as __namedExportsOrder,G as default}; -//# sourceMappingURL=Checkbox.stories-f66f133f.js.map diff --git a/docs/assets/Checkbox.stories-f66f133f.js.map b/docs/assets/Checkbox.stories-f66f133f.js.map deleted file mode 100644 index 56638833..00000000 --- a/docs/assets/Checkbox.stories-f66f133f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Checkbox.stories-f66f133f.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/CodeMockup-da7333a5.js b/docs/assets/CodeMockup-5ec72808.js similarity index 91% rename from docs/assets/CodeMockup-da7333a5.js rename to docs/assets/CodeMockup-5ec72808.js index 65466bfb..282bd9ea 100644 --- a/docs/assets/CodeMockup-da7333a5.js +++ b/docs/assets/CodeMockup-5ec72808.js @@ -1,2 +1 @@ -import{t as m,a as d}from"./tw-merge-fe695a60.js";import{r as f,R as u}from"./index-ebeaab24.js";import{c as _}from"./clsx.m-1229b3e0.js";const g=f.forwardRef(({dataPrefix:a,dataTheme:n,status:e,className:o,children:t,innerProps:c,innerRef:s,...i},l)=>{const p=m(_({"bg-info":e==="info","bg-success":e==="success","bg-warning":e==="warning","bg-error":e==="error","text-info-content":e==="info","text-success-content":e==="success","text-warning-content":e==="warning","text-error-content":e==="error"}),o),y={...i,className:p,...a!==!1&&{"data-prefix":a||">"}};return d("pre",{...y,"data-theme":n,className:p,ref:l,children:d("code",{...c,ref:s,children:t})})});g.displayName="CodeMockup.Line";try{CodeMockup.Line.displayName="CodeMockup.Line",CodeMockup.Line.__docgenInfo={description:"",displayName:"CodeMockup.Line",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},dataPrefix:{defaultValue:null,description:"",name:"dataPrefix",required:!1,type:{name:"string | boolean"}},status:{defaultValue:null,description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},innerProps:{defaultValue:null,description:"",name:"innerProps",required:!1,type:{name:"HTMLAttributes"}},innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"Ref"}}}}}catch{}const r=f.forwardRef(({dataTheme:a,className:n,children:e,...o},t)=>{const c=m("mockup-code",n);return d("div",{"aria-label":"Code mockup",...o,"data-theme":a,className:c,ref:t,children:u.Children.map(e,(s,i)=>{const l=s;return u.cloneElement(l,{key:i})})})});r.displayName="CodeMockup";const h=Object.assign(r,{Line:g});try{r.displayName="CodeMockup",r.__docgenInfo={description:"",displayName:"CodeMockup",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}export{h as C}; -//# sourceMappingURL=CodeMockup-da7333a5.js.map +import{t as m,j as d}from"./tw-merge-0a3648bd.js";import{r as f,R as u}from"./index-1b03fe98.js";import{c as _}from"./clsx.m-1229b3e0.js";const g=f.forwardRef(({dataPrefix:a,dataTheme:n,status:e,className:o,children:t,innerProps:c,innerRef:s,...i},l)=>{const p=m(_({"bg-info":e==="info","bg-success":e==="success","bg-warning":e==="warning","bg-error":e==="error","text-info-content":e==="info","text-success-content":e==="success","text-warning-content":e==="warning","text-error-content":e==="error"}),o),y={...i,className:p,...a!==!1&&{"data-prefix":a||">"}};return d("pre",{...y,"data-theme":n,className:p,ref:l,children:d("code",{...c,ref:s,children:t})})});g.displayName="CodeMockup.Line";try{CodeMockup.Line.displayName="CodeMockup.Line",CodeMockup.Line.__docgenInfo={description:"",displayName:"CodeMockup.Line",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},dataPrefix:{defaultValue:null,description:"",name:"dataPrefix",required:!1,type:{name:"string | boolean"}},status:{defaultValue:null,description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},innerProps:{defaultValue:null,description:"",name:"innerProps",required:!1,type:{name:"HTMLAttributes"}},innerRef:{defaultValue:null,description:"",name:"innerRef",required:!1,type:{name:"Ref"}}}}}catch{}const r=f.forwardRef(({dataTheme:a,className:n,children:e,...o},t)=>{const c=m("mockup-code",n);return d("div",{"aria-label":"Code mockup",...o,"data-theme":a,className:c,ref:t,children:u.Children.map(e,(s,i)=>{const l=s;return u.cloneElement(l,{key:i})})})});r.displayName="CodeMockup";const h=Object.assign(r,{Line:g});try{r.displayName="CodeMockup",r.__docgenInfo={description:"",displayName:"CodeMockup",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}export{h as C}; diff --git a/docs/assets/CodeMockup-da7333a5.js.map b/docs/assets/CodeMockup-da7333a5.js.map deleted file mode 100644 index ab7e4691..00000000 --- a/docs/assets/CodeMockup-da7333a5.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CodeMockup-da7333a5.js","sources":["../../src/CodeMockup/CodeMockupLine.tsx","../../src/CodeMockup/CodeMockup.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { ComponentStatus, IComponentBaseProps } from '../types'\n\nexport type CodeMockupLineProps = React.HTMLAttributes &\n IComponentBaseProps & {\n dataPrefix?: string | boolean\n status?: ComponentStatus\n innerProps?: React.HTMLAttributes\n innerRef?: React.Ref\n }\n\nexport const CodeMockupLine = forwardRef(\n (\n {\n dataPrefix,\n dataTheme,\n status,\n className,\n children,\n innerProps,\n innerRef,\n ...props\n },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n clsx({\n 'bg-info': status === 'info',\n 'bg-success': status === 'success',\n 'bg-warning': status === 'warning',\n 'bg-error': status === 'error',\n 'text-info-content': status === 'info',\n 'text-success-content': status === 'success',\n 'text-warning-content': status === 'warning',\n 'text-error-content': status === 'error',\n }),\n className\n )\n\n const allProps = {\n ...props,\n className: classes,\n ...(dataPrefix !== false && { 'data-prefix': dataPrefix || '>' }),\n } as Record\n\n return (\n
    \n        \n          {children}\n        \n      
    \n )\n }\n)\n\nCodeMockupLine.displayName = 'CodeMockup.Line'\n","import React, { forwardRef } from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\nimport { CodeMockupLine, CodeMockupLineProps } from './CodeMockupLine'\n\nexport type CodeMockupProps = React.HTMLAttributes &\n IComponentBaseProps\n\nconst CodeMockup = forwardRef(\n ({ dataTheme, className, children, ...props }, ref): JSX.Element => {\n const classes = twMerge('mockup-code', className)\n\n return (\n \n {React.Children.map(children, (child, index) => {\n const childComponent = child as React.ReactElement\n return React.cloneElement(childComponent, {\n key: index,\n })\n })}\n
    \n )\n }\n)\n\nCodeMockup.displayName = 'CodeMockup'\nconst CodeMockupNamespace = Object.assign(CodeMockup, { Line: CodeMockupLine })\n\nexport { CodeMockupNamespace as CodeMockup }\n"],"names":["CodeMockupLine","forwardRef","dataPrefix","dataTheme","status","className","children","innerProps","innerRef","props","ref","classes","twMerge","clsx","allProps","jsx","CodeMockup","React","child","index","childComponent","CodeMockupNamespace"],"mappings":"0IAcO,MAAAA,EAAAC,EAAA,WAAuB,CAAA,CAE1B,WAAAC,EACE,UAAAC,EACA,OAAAC,EACA,UAAAC,EACA,SAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAAC,CACG,EAAAC,IAAA,CAIL,MAAAC,EAAAC,EAAgBC,EAAA,CACT,UAAAT,IAAA,OACmB,aAAAA,IAAA,UACG,aAAAA,IAAA,UACA,WAAAA,IAAA,QACF,oBAAAA,IAAA,OACS,uBAAAA,IAAA,UACG,uBAAAA,IAAA,UACA,qBAAAA,IAAA,OACF,CAAA,EAClCC,CACD,EAGFS,EAAA,CAAiB,GAAAL,EACZ,UAAAE,EACQ,GAAAT,IAAA,IAAA,CAAA,cAAAA,GAAA,GAAA,CACoD,EAGjE,OAAAa,EAAA,MAAA,CAAA,GAAAD,EAAA,aAAAX,EAAA,UAAAQ,EAAA,IAAAD,EAAA,SAAAK,EAAA,OAAA,CAAA,GAAAR,EAAA,IAAAC,EAAA,SAAAF,EAAA,CAAA,CAAA,CAKE,CAGN,EAEAN,EAAA,YAAA,gvBCjDA,MAAAgB,EAAAf,EAAA,WAAmB,CAAA,CAAA,UAAAE,EAAA,UAAAE,EAAA,SAAAC,EAAA,GAAAG,CAAA,EAAAC,IAAA,CAEf,MAAAC,EAAAC,EAAA,cAAAP,CAAA,EAEA,OAAAU,EACE,MAAC,CAAA,aAAA,cACY,GAAAN,EACP,aAAAN,EACQ,UAAAQ,EACD,IAAAD,EACX,SAAAO,EAAA,SAAA,IAAAX,EAAA,CAAAY,EAAAC,IAAA,CAGE,MAAAC,EAAAF,EACA,OAAAD,EAAA,aAAAG,EAAA,CAA0C,IAAAD,CACjC,CAAA,CACR,CAAA,CACF,CAAA,CACH,CAGN,EAEAH,EAAA,YAAA,aACA,MAAAK,EAAA,OAAA,OAAAL,EAAA,CAAA,KAAAhB,EAAA"} \ No newline at end of file diff --git a/docs/assets/CodeMockup.stories-2383ec4f.js.map b/docs/assets/CodeMockup.stories-2383ec4f.js.map deleted file mode 100644 index 249492f2..00000000 --- a/docs/assets/CodeMockup.stories-2383ec4f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CodeMockup.stories-2383ec4f.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/CodeMockup.stories-2383ec4f.js b/docs/assets/CodeMockup.stories-c54235b4.js similarity index 94% rename from docs/assets/CodeMockup.stories-2383ec4f.js rename to docs/assets/CodeMockup.stories-c54235b4.js index b97ff11f..114946f1 100644 --- a/docs/assets/CodeMockup.stories-2383ec4f.js +++ b/docs/assets/CodeMockup.stories-c54235b4.js @@ -1,4 +1,4 @@ -import{a as r,j as b}from"./tw-merge-fe695a60.js";import{C as e}from"./CodeMockup-da7333a5.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";const j={title:"Mockup/CodeMockup",component:e,subcomponents:{"CodeMockup.Line":e.Line},parameters:{controls:{expanded:!0}}},o=a=>r(e,{...a,children:r(e.Line,{children:"yarn add daisyui react-daisyui"})}),n=a=>r(e,{...a,children:r(e.Line,{dataPrefix:"$",children:"yarn add daisyui react-daisyui"})}),i=a=>b(e,{...a,children:[r(e.Line,{children:"yarn add daisyui react-daisyui"}),r(e.Line,{className:"text-warning",children:"installing..."}),r(e.Line,{className:"text-success",children:"Done!"})]}),s=a=>b(e,{...a,children:[r(e.Line,{children:"yarn add daisyui react-daisyui"}),r(e.Line,{children:"installing..."}),r(e.Line,{status:"warning",children:"Error!"})]}),t=a=>r(e,{...a,children:r(e.Line,{dataPrefix:"~",children:"Magnam dolore beatae necessitatibus nemopsum itaque sit. Et porro quae qui et et dolore ratione."})}),c=a=>r(e,{...a,children:r(e.Line,{dataPrefix:!1,children:"without prefix"})});var d,u,p;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:`args => { +import{j as r,a as b}from"./tw-merge-0a3648bd.js";import{C as e}from"./CodeMockup-5ec72808.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";const j={title:"Mockup/CodeMockup",component:e,subcomponents:{"CodeMockup.Line":e.Line},parameters:{controls:{expanded:!0}}},o=a=>r(e,{...a,children:r(e.Line,{children:"yarn add daisyui react-daisyui"})}),n=a=>r(e,{...a,children:r(e.Line,{dataPrefix:"$",children:"yarn add daisyui react-daisyui"})}),i=a=>b(e,{...a,children:[r(e.Line,{children:"yarn add daisyui react-daisyui"}),r(e.Line,{className:"text-warning",children:"installing..."}),r(e.Line,{className:"text-success",children:"Done!"})]}),s=a=>b(e,{...a,children:[r(e.Line,{children:"yarn add daisyui react-daisyui"}),r(e.Line,{children:"installing..."}),r(e.Line,{status:"warning",children:"Error!"})]}),t=a=>r(e,{...a,children:r(e.Line,{dataPrefix:"~",children:"Magnam dolore beatae necessitatibus nemopsum itaque sit. Et porro quae qui et et dolore ratione."})}),c=a=>r(e,{...a,children:r(e.Line,{dataPrefix:!1,children:"without prefix"})});var d,u,p;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:`args => { return yarn add daisyui react-daisyui ; @@ -32,4 +32,3 @@ import{a as r,j as b}from"./tw-merge-fe695a60.js";import{C as e}from"./CodeMocku without prefix ; }`,...(w=(q=c.parameters)==null?void 0:q.docs)==null?void 0:w.source}}};const H=["Default","LinePrefix","MultiLine","HighlightedLine","LongLineWithScroll","WithoutPrefix"];export{o as Default,s as HighlightedLine,n as LinePrefix,t as LongLineWithScroll,i as MultiLine,c as WithoutPrefix,H as __namedExportsOrder,j as default}; -//# sourceMappingURL=CodeMockup.stories-2383ec4f.js.map diff --git a/docs/assets/Collapse.stories-0fef9b46.js.map b/docs/assets/Collapse.stories-0fef9b46.js.map deleted file mode 100644 index b719dbe2..00000000 --- a/docs/assets/Collapse.stories-0fef9b46.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Collapse.stories-0fef9b46.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Collapse.stories-0fef9b46.js b/docs/assets/Collapse.stories-ee07c980.js similarity index 97% rename from docs/assets/Collapse.stories-0fef9b46.js rename to docs/assets/Collapse.stories-ee07c980.js index 67f182f5..b7c71fd4 100644 --- a/docs/assets/Collapse.stories-0fef9b46.js +++ b/docs/assets/Collapse.stories-ee07c980.js @@ -1,4 +1,4 @@ -import{j as o,a as s}from"./tw-merge-fe695a60.js";import{r as Y}from"./index-ebeaab24.js";import{C as e}from"./index-61175cf0.js";import"./clsx.m-1229b3e0.js";import"./CollapseContent-ad905ac7.js";const re={title:"Data Display/Collapse",component:e,args:{className:"bg-base-200"}},g=t=>o(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"Focus me to see content"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]}),n=g.bind({});n.args={};const r=t=>o(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"Click me to show/hide content"}),s(e.Content,{children:"hello"})]});r.args={checkbox:!0};const c=g.bind({});c.args={className:"border border-base-300 bg-base-200"};const l=g.bind({});l.args={className:"border border-base-300 bg-base-200",icon:"arrow"};const i=g.bind({});i.args={className:"border border-base-300 bg-base-200",icon:"plus"};const p=t=>o(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"I have collapse-open class"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]});p.args={className:"border border-base-300 bg-base-200",open:!0};const d=t=>o(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"I have collapse-close class"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]});d.args={className:"border border-base-300 bg-base-200",open:!1};const m=t=>o(e,{...t,className:"group",children:[s(e.Title,{className:"bg-primary text-primary-content group-focus:bg-secondary group-focus:text-secondary-content",children:"Focus me to see content"}),s(e.Content,{className:"bg-primary text-primary-content group-focus:bg-secondary group-focus:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]}),u=t=>o(e,{...t,className:"group",checkbox:!0,children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]}),h=t=>{const[b,a]=Y.useState(!1);return o("div",{children:[o("span",{children:["Checkbox is ",b?"open":"closed","."]}),o(e,{...t,className:"group",onClose:()=>{a(!1)},onOpen:()=>{a(!0)},onToggle:()=>{console.log("toggled!")},children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]})]})},C=t=>{const[b,a]=Y.useState(!1);return o("div",{children:[o("span",{children:["Checkbox is ",b?"open":"closed","."]}),o(e,{...t,className:"group",onClose:()=>{a(!1)},onOpen:()=>{a(!0)},onToggle:()=>{console.log("toggled!")},checkbox:!0,children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]})]})};var x,y,k;n.parameters={...n.parameters,docs:{...(x=n.parameters)==null?void 0:x.docs,source:{originalSource:`args => { +import{a as o,j as s}from"./tw-merge-0a3648bd.js";import{r as Y}from"./index-1b03fe98.js";import{C as e}from"./index-679b5f9b.js";import"./clsx.m-1229b3e0.js";import"./CollapseContent-8035002f.js";const re={title:"Data Display/Collapse",component:e,args:{className:"bg-base-200"}},g=t=>o(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"Focus me to see content"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]}),n=g.bind({});n.args={};const r=t=>o(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"Click me to show/hide content"}),s(e.Content,{children:"hello"})]});r.args={checkbox:!0};const c=g.bind({});c.args={className:"border border-base-300 bg-base-200"};const l=g.bind({});l.args={className:"border border-base-300 bg-base-200",icon:"arrow"};const i=g.bind({});i.args={className:"border border-base-300 bg-base-200",icon:"plus"};const p=t=>o(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"I have collapse-open class"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]});p.args={className:"border border-base-300 bg-base-200",open:!0};const d=t=>o(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"I have collapse-close class"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]});d.args={className:"border border-base-300 bg-base-200",open:!1};const m=t=>o(e,{...t,className:"group",children:[s(e.Title,{className:"bg-primary text-primary-content group-focus:bg-secondary group-focus:text-secondary-content",children:"Focus me to see content"}),s(e.Content,{className:"bg-primary text-primary-content group-focus:bg-secondary group-focus:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]}),u=t=>o(e,{...t,className:"group",checkbox:!0,children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]}),h=t=>{const[b,a]=Y.useState(!1);return o("div",{children:[o("span",{children:["Checkbox is ",b?"open":"closed","."]}),o(e,{...t,className:"group",onClose:()=>{a(!1)},onOpen:()=>{a(!0)},onToggle:()=>{console.log("toggled!")},children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]})]})},C=t=>{const[b,a]=Y.useState(!1);return o("div",{children:[o("span",{children:["Checkbox is ",b?"open":"closed","."]}),o(e,{...t,className:"group",onClose:()=>{a(!1)},onOpen:()=>{a(!0)},onToggle:()=>{console.log("toggled!")},checkbox:!0,children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]})]})};var x,y,k;n.parameters={...n.parameters,docs:{...(x=n.parameters)==null?void 0:x.docs,source:{originalSource:`args => { return Focus me to see content @@ -122,4 +122,3 @@ import{j as o,a as s}from"./tw-merge-fe695a60.js";import{r as Y}from"./index-ebe ; }`,...(X=(V=C.parameters)==null?void 0:V.docs)==null?void 0:X.source}}};const ce=["Default","Checkbox","WithBorderAndBackground","WithArrow","WithPlusMinus","ForceOpen","ForceClose","CustomColorsWithFocus","CustomColorsWithFocusCheckbox","HandlingEvents","CheckboxEvents"];export{r as Checkbox,C as CheckboxEvents,m as CustomColorsWithFocus,u as CustomColorsWithFocusCheckbox,n as Default,d as ForceClose,p as ForceOpen,h as HandlingEvents,l as WithArrow,c as WithBorderAndBackground,i as WithPlusMinus,ce as __namedExportsOrder,re as default}; -//# sourceMappingURL=Collapse.stories-0fef9b46.js.map diff --git a/docs/assets/CollapseContent-ad905ac7.js b/docs/assets/CollapseContent-8035002f.js similarity index 84% rename from docs/assets/CollapseContent-ad905ac7.js rename to docs/assets/CollapseContent-8035002f.js index a13d8515..91f949e7 100644 --- a/docs/assets/CollapseContent-ad905ac7.js +++ b/docs/assets/CollapseContent-8035002f.js @@ -1,2 +1 @@ -import{a as l,t as n}from"./tw-merge-fe695a60.js";import{R as d}from"./index-ebeaab24.js";const c=({className:e})=>n("collapse-title",e),s=({children:e,className:a,...t})=>l("div",{...t,className:c({className:a}),children:e}),o=d.forwardRef(({children:e,className:a},t)=>l("summary",{ref:t,className:c({className:a}),children:e})),_=s;try{o.displayName="Summary",o.__docgenInfo={description:"",displayName:"Summary",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}try{s.displayName="CollapseTitle",s.__docgenInfo={description:"",displayName:"CollapseTitle",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const r=({children:e,className:a,...t})=>{const p=n("collapse-content",a);return l("div",{...t,className:p,children:e})},u=r;try{r.displayName="CollapseContent",r.__docgenInfo={description:"",displayName:"CollapseContent",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}export{_ as C,o as S,u as a}; -//# sourceMappingURL=CollapseContent-ad905ac7.js.map +import{j as l,t as n}from"./tw-merge-0a3648bd.js";import{R as d}from"./index-1b03fe98.js";const c=({className:e})=>n("collapse-title",e),s=({children:e,className:a,...t})=>l("div",{...t,className:c({className:a}),children:e}),o=d.forwardRef(({children:e,className:a},t)=>l("summary",{ref:t,className:c({className:a}),children:e})),_=s;try{o.displayName="Summary",o.__docgenInfo={description:"",displayName:"Summary",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}try{s.displayName="CollapseTitle",s.__docgenInfo={description:"",displayName:"CollapseTitle",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const r=({children:e,className:a,...t})=>{const p=n("collapse-content",a);return l("div",{...t,className:p,children:e})},u=r;try{r.displayName="CollapseContent",r.__docgenInfo={description:"",displayName:"CollapseContent",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}export{_ as C,o as S,u as a}; diff --git a/docs/assets/CollapseContent-ad905ac7.js.map b/docs/assets/CollapseContent-ad905ac7.js.map deleted file mode 100644 index 97dfee66..00000000 --- a/docs/assets/CollapseContent-ad905ac7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CollapseContent-ad905ac7.js","sources":["../../src/Collapse/CollapseTitle.tsx","../../src/Collapse/CollapseContent.tsx"],"sourcesContent":["import React from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type CollapseTitleProps =\n React.HTMLAttributes & IComponentBaseProps\n\nconst classesFn = ({ className }: Pick) =>\n twMerge('collapse-title', className)\n\nconst CollapseTitle = ({\n children,\n className,\n ...props\n}: CollapseTitleProps): JSX.Element => {\n return (\n
    \n {children}\n
    \n )\n}\n\nexport type SummaryProps = CollapseTitleProps\nexport const Summary = React.forwardRef(\n ({ children, className }, ref): JSX.Element => {\n return (\n \n {children}\n \n )\n }\n)\n\nexport default CollapseTitle\n","import React from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type CollapseContentProps = React.HTMLAttributes &\n IComponentBaseProps\n\nconst CollapseContent = ({\n children,\n className,\n ...props\n}: CollapseContentProps): JSX.Element => {\n const classes = twMerge('collapse-content', className)\n\n return (\n
    \n {children}\n
    \n )\n}\n\nexport default CollapseContent\n"],"names":["classesFn","className","twMerge","CollapseTitle","children","props","jsx","Summary","React","ref","CollapseTitle$1","CollapseContent","classes","CollapseContent$1"],"mappings":"0FAQA,MAAAA,EAAA,CAAA,CAAA,UAAAC,CAAA,IAAAC,EAAA,iBAAAD,CAAA,EAGAE,EAAA,CAAA,CAAuB,SAAAC,EACrB,UAAAH,EACA,GAAAI,CAEF,IACEC,EAAA,MAAA,CAAA,GAAAD,EAAA,UAAAL,EAAA,CAAA,UAAAC,CAAA,CAAA,EAAA,SAAAG,CAAA,CAAA,EAQKG,EAAAC,EAAA,WAAsB,CAAA,CAAA,SAAAJ,EAAA,UAAAH,CAAA,EAAAQ,IAEzBH,EAAA,UAAA,CAAA,IAAAG,EAAA,UAAAT,EAAA,CAAA,UAAAC,CAAA,CAAA,EAAA,SAAAG,CAAA,CAAA,CAMJ,EAEAM,EAAAP,8YC1BA,MAAAQ,EAAA,CAAA,CAAyB,SAAAP,EACvB,UAAAH,EACA,GAAAI,CAEF,IAAA,CACE,MAAAO,EAAAV,EAAA,mBAAAD,CAAA,EAEA,OAAAK,EAAA,MAAA,CAAA,GAAAD,EAAA,UAAAO,EAAA,SAAAR,CAAA,CAAA,CAKF,EAEAS,EAAAF"} \ No newline at end of file diff --git a/docs/assets/CollapseDetails.stories-8a831301.js.map b/docs/assets/CollapseDetails.stories-8a831301.js.map deleted file mode 100644 index 795cd6c3..00000000 --- a/docs/assets/CollapseDetails.stories-8a831301.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CollapseDetails.stories-8a831301.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/CollapseDetails.stories-8a831301.js b/docs/assets/CollapseDetails.stories-af5e2dc5.js similarity index 75% rename from docs/assets/CollapseDetails.stories-8a831301.js rename to docs/assets/CollapseDetails.stories-af5e2dc5.js index c1ff2913..7ae6669b 100644 --- a/docs/assets/CollapseDetails.stories-8a831301.js +++ b/docs/assets/CollapseDetails.stories-af5e2dc5.js @@ -1,4 +1,4 @@ -import{j as r,a as s}from"./tw-merge-fe695a60.js";import{C as t}from"./index-61175cf0.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./CollapseContent-ad905ac7.js";const D={title:"Data Display/Collapse/Details",component:t.Details},e=n=>r(t.Details,{...n,children:[s(t.Details.Title,{className:"text-xl font-medium",children:"Click to open/close"}),s(t.Content,{children:s("p",{children:"content"})})]});e.args={className:"bg-base-200"};var a,l,o;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`args => { +import{a as r,j as s}from"./tw-merge-0a3648bd.js";import{C as t}from"./index-679b5f9b.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./CollapseContent-8035002f.js";const D={title:"Data Display/Collapse/Details",component:t.Details},e=n=>r(t.Details,{...n,children:[s(t.Details.Title,{className:"text-xl font-medium",children:"Click to open/close"}),s(t.Content,{children:s("p",{children:"content"})})]});e.args={className:"bg-base-200"};var a,l,o;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`args => { return Click to open/close @@ -8,4 +8,3 @@ import{j as r,a as s}from"./tw-merge-fe695a60.js";import{C as t}from"./index-611 ; }`,...(o=(l=e.parameters)==null?void 0:l.docs)==null?void 0:o.source}}};const d=["Default"];export{e as Default,d as __namedExportsOrder,D as default}; -//# sourceMappingURL=CollapseDetails.stories-8a831301.js.map diff --git a/docs/assets/Color-6VNJS4EI-1a288c68.js.map b/docs/assets/Color-6VNJS4EI-1a288c68.js.map deleted file mode 100644 index 2f136a08..00000000 --- a/docs/assets/Color-6VNJS4EI-1a288c68.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Color-6VNJS4EI-1a288c68.js","sources":["../../node_modules/react-colorful/dist/index.mjs","../../node_modules/color-name/index.js","../../node_modules/color-convert/conversions.js","../../node_modules/color-convert/route.js","../../node_modules/color-convert/index.js","../../node_modules/lodash/now.js","../../node_modules/lodash/_trimmedEndIndex.js","../../node_modules/lodash/_baseTrim.js","../../node_modules/lodash/toNumber.js","../../node_modules/lodash/debounce.js","../../node_modules/lodash/throttle.js","../../node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"],"sourcesContent":["import e,{useRef as r,useMemo as t,useEffect as n,useState as o,useCallback as a,useLayoutEffect as l}from\"react\";function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=r(e),n=r(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?\"touchmove\":\"mousemove\",e),a(n?\"touchend\":\"mouseup\",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return n(function(){return H},[H]),e.createElement(\"div\",u({},s,{onTouchStart:C,onMouseDown:C,className:\"react-colorful__interactive\",ref:m,onKeyDown:E,tabIndex:0,role:\"slider\"}))}),g=function(e){return e.filter(Boolean).join(\" \")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g([\"react-colorful__pointer\",r.className]);return e.createElement(\"div\",{className:l,style:{top:100*a+\"%\",left:100*n+\"%\"}},e.createElement(\"div\",{className:\"react-colorful__pointer-fill\",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return\"#\"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r=\"deg\"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},M=H,N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return\"hsl(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%)\"},k=function(e){var r=y(e);return\"hsla(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%, \"+r.a+\")\"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},O=function(e){var r=/hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?A({h:E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},j=O,z=function(e){var r=/rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?\"0\"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):\"\";return\"#\"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},A=function(e){return{h:b(e.h),s:b(e.s),v:b(e.v),a:b(e.a,2)}},S=e.memo(function(r){var t=r.hue,n=r.onChange,o=g([\"react-colorful__hue\",r.className]);return e.createElement(\"div\",{className:o},e.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},\"aria-label\":\"Hue\",\"aria-valuenow\":b(t),\"aria-valuemax\":\"360\",\"aria-valuemin\":\"0\"},e.createElement(p,{className:\"react-colorful__hue-pointer\",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=e.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return e.createElement(\"div\",{className:\"react-colorful__saturation\",style:o},e.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},\"aria-label\":\"Color\",\"aria-valuetext\":\"Saturation \"+b(t.s)+\"%, Brightness \"+b(t.v)+\"%\"},e.createElement(p,{className:\"react-colorful__saturation-pointer\",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\\s/g,\"\")===r.replace(/\\s/g,\"\")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=o(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=r({color:t,hsva:s});n(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),n(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=a(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,V=\"undefined\"!=typeof window?l:n,$=function(){return R||(\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},G=function(e){R=e},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement(\"style\");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\\'data:image/svg+xml;charset=utf-8,\\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute(\"nonce\",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h,className:\"react-colorful__last-control\"}))},W={defaultColor:\"000\",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:\"linear-gradient(90deg, \"+k(Object.assign({},n,{a:0}))+\", \"+k(Object.assign({},n,{a:1}))+\")\"},l=g([\"react-colorful__alpha\",t]),u=b(100*n.a);return e.createElement(\"div\",{className:l},e.createElement(\"div\",{className:\"react-colorful__alpha-gradient\",style:a}),e.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},\"aria-label\":\"Alpha\",\"aria-valuetext\":u+\"%\",\"aria-valuenow\":u,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"},e.createElement(p,{className:\"react-colorful__alpha-pointer\",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h}),e.createElement(ee,{hsva:d,onChange:h,className:\"react-colorful__last-control\"}))},te={defaultColor:\"0001\",toHsva:x,fromHsva:w,equal:X},ne=function(r){return e.createElement(re,u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:N,fromHsva:y,equal:F},ae=function(r){return e.createElement(re,u({},r,{colorModel:oe}))},le={defaultColor:\"hsla(0, 0%, 0%, 1)\",toHsva:H,fromHsva:k,equal:P},ue=function(r){return e.createElement(re,u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,u({},r,{colorModel:ce}))},se={defaultColor:\"hsl(0, 0%, 0%)\",toHsva:M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,u({},r,{colorModel:ve}))},he={defaultColor:\"hsva(0, 0%, 0%, 1)\",toHsva:O,fromHsva:function(e){var r=A(e);return\"hsva(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%, \"+r.a+\")\"},equal:P},me=function(r){return e.createElement(re,u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,u({},r,{colorModel:ge}))},be={defaultColor:\"hsv(0, 0%, 0%)\",toHsva:j,fromHsva:function(e){var r=A(e);return\"hsv(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%)\"},equal:P},_e=function(r){return e.createElement(U,u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:I,equal:F},Ce=function(r){return e.createElement(re,u({},r,{colorModel:xe}))},Ee={defaultColor:\"rgba(0, 0, 0, 1)\",toHsva:z,fromHsva:function(e){var r=I(e);return\"rgba(\"+r.r+\", \"+r.g+\", \"+r.b+\", \"+r.a+\")\"},equal:P},He=function(r){return e.createElement(re,u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,u({},r,{colorModel:Me}))},we={defaultColor:\"rgb(0, 0, 0)\",toHsva:B,fromHsva:function(e){var r=I(e);return\"rgb(\"+r.r+\", \"+r.g+\", \"+r.b+\")\"},equal:P},ye=function(r){return e.createElement(U,u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?\"\":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=c(r,[\"color\",\"onChange\",\"onBlur\",\"escape\",\"validate\",\"format\",\"process\"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=i(s),C=i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement(\"input\",u({},g,{value:h?h(b):b,spellCheck:\"false\",onChange:E,onBlur:H}))},Ie=function(e){return\"#\"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=c(r,[\"prefixed\",\"alpha\"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,\"\").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};export{ne as HexAlphaColorPicker,Oe as HexColorInput,Z as HexColorPicker,ie as HslColorPicker,fe as HslStringColorPicker,ae as HslaColorPicker,ue as HslaStringColorPicker,pe as HsvColorPicker,_e as HsvStringColorPicker,de as HsvaColorPicker,me as HsvaStringColorPicker,Ne as RgbColorPicker,ye as RgbStringColorPicker,Ce as RgbaColorPicker,He as RgbaStringColorPicker,G as setNonce};\n//# sourceMappingURL=index.module.js.map\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import { getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React, { useCallback, useState, useEffect, useMemo } from 'react';\nimport { HexColorPicker, RgbaStringColorPicker, HslaStringColorPicker } from 'react-colorful';\nimport convert from 'color-convert';\nimport throttle from 'lodash/throttle.js';\nimport { styled } from '@storybook/theming';\nimport { WithTooltip, TooltipNote, Form, Icons } from '@storybook/components';\n\nvar Wrapper=styled.div({position:\"relative\",maxWidth:250}),PickerTooltip=styled(WithTooltip)({position:\"absolute\",zIndex:1,top:4,left:4}),TooltipContent=styled.div({width:200,margin:5,\".react-colorful__saturation\":{borderRadius:\"4px 4px 0 0\"},\".react-colorful__hue\":{boxShadow:\"inset 0 0 0 1px rgb(0 0 0 / 5%)\"},\".react-colorful__last-control\":{borderRadius:\"0 0 4px 4px\"}}),Note=styled(TooltipNote)(({theme})=>({fontFamily:theme.typography.fonts.base})),Swatches=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(9, 16px)\",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=styled.div(({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius})),swatchBackground=`url('data:image/svg+xml;charset=utf-8,')`,Swatch=({value,active,onClick,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;return React.createElement(SwatchColor,{...props,active,onClick,style:{...style,backgroundImage}})},Input=styled(Form.Input)(({theme})=>({width:\"100%\",paddingLeft:30,paddingRight:30,boxSizing:\"border-box\",fontFamily:theme.typography.fonts.base})),ToggleIcon=styled(Icons)(({theme})=>({position:\"absolute\",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:\"border-box\",cursor:\"pointer\",color:theme.input.color})),ColorSpace=(ColorSpace2=>(ColorSpace2.RGB=\"rgb\",ColorSpace2.HSL=\"hsl\",ColorSpace2.HEX=\"hex\",ColorSpace2))(ColorSpace||{}),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\\(([0-9]+),\\s*([0-9]+)%?,\\s*([0-9]+)%?,?\\s*([0-9.]+)?\\)/,RGB_REGEXP=/^\\s*rgba?\\(([0-9]+),\\s*([0-9]+),\\s*([0-9]+),?\\s*([0-9.]+)?\\)\\s*$/i,HSL_REGEXP=/^\\s*hsla?\\(([0-9]+),\\s*([0-9]+)%,\\s*([0-9]+)%,?\\s*([0-9.]+)?\\)\\s*$/i,HEX_REGEXP=/^\\s*#?([0-9a-f]{3}|[0-9a-f]{6})\\s*$/i,SHORTHEX_REGEXP=/^\\s*#?([0-9a-f]{3})\\s*$/i,ColorPicker={hex:HexColorPicker,rgb:RgbaStringColorPicker,hsl:HslaStringColorPicker},fallbackColor={hex:\"transparent\",rgb:\"rgba(0, 0, 0, 0)\",hsl:\"hsla(0, 0%, 0%, 0)\"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return [0,0,0,1];let[,x,y,z,a=1]=match;return [x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=convert.rgb.hsl([r,g,b])||[0,0,0];return {valid,value,keyword:convert.rgb.keyword([r,g,b]),colorSpace:\"rgb\",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${convert.rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=convert.hsl.rgb([h,s,l])||[0,0,0];return {valid,value,keyword:convert.hsl.keyword([h,s,l]),colorSpace:\"hsl\",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${convert.hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace(\"#\",\"\"),rgb=convert.keyword.rgb(plain)||convert.hex.rgb(plain),hsl=convert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith(\"#\"))valid=HEX_REGEXP.test(mapped);else try{convert.keyword.hex(mapped);}catch{valid=!1;}return {valid,value:mapped,keyword:convert.rgb.keyword(rgb),colorSpace:\"hex\",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},getRealValue=(value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if(colorSpace!==\"hex\")return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith(\"#\"))try{return `#${convert.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split(\"\");return `#${r}${r}${g}${g}${b}${b}`},useColorInput=(initialValue,onChange)=>{let[value,setValue]=useState(initialValue||\"\"),[color,setColor]=useState(()=>parseValue(value)),[colorSpace,setColorSpace]=useState(color?.colorSpace||\"hex\");useEffect(()=>{let nextValue=initialValue||\"\",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||\"hex\");},[initialValue]);let realValue=useMemo(()=>getRealValue(value,color,colorSpace).toLowerCase(),[value,color,colorSpace]),updateValue=useCallback(update=>{let parsed=parseValue(update),v=parsed?.value||update||\"\";setValue(v),v===\"\"&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value));},[onChange]),cycleColorSpace=useCallback(()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||\"\";setValue(update),onChange(update);},[color,colorSpace,onChange]);return {value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\\s*/,\"\").toLowerCase(),usePresets=(presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=useState(currentColor?.valid?[currentColor]:[]);useEffect(()=>{currentColor===void 0&&setSelectedColors([]);},[currentColor]);let presets=useMemo(()=>(presetColors||[]).map(preset=>typeof preset==\"string\"?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27),[presetColors,selectedColors]),addPreset=useCallback(color=>{color?.valid&&(presets.some(preset=>id(preset[colorSpace])===id(color[colorSpace]))||setSelectedColors(arr=>arr.concat(color)));},[colorSpace,presets]);return {presets,addPreset}},ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1})=>{let throttledOnChange=useCallback(throttle(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=usePresets(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace];return React.createElement(Wrapper,null,React.createElement(PickerTooltip,{startOpen,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:React.createElement(TooltipContent,null,React.createElement(Picker,{color:realValue===\"transparent\"?\"#000000\":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&React.createElement(Swatches,null,presets.map((preset,index)=>React.createElement(WithTooltip,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:React.createElement(Note,{note:preset.keyword||preset.value})},React.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)})))))},React.createElement(Swatch,{value:realValue,style:{margin:4}})),React.createElement(Input,{id:getControlId(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),placeholder:\"Choose color...\"}),value?React.createElement(ToggleIcon,{icon:\"markup\",onClick:cycleColorSpace}):null)},Color_default=ColorControl;\n\nexport { ColorControl, Color_default as default };\n"],"names":["u","r","t","n","c","i","e","s","f","v","d","h","m","o","a","l","g","p","b","_","x","C","E","H","L","N","w","K","I","y","q","k","z","D","S","T","F","P","X","Y","V","$","J","Q","U","W","Z","ee","re","le","ue","Ee","He","colorName","cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","min","max","delta","rdif","gdif","bdif","diff","diffc","comparativeDistance","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","xyz","hsl","t2","t3","val","t1","smin","lmin","sv","hsv","hi","vmin","sl","hwb","wh","bl","ratio","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray","buildGraph","graph","models","len","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","wrapConversion","toModel","path","fn","cur","route","conversion","require$$1","wrapRaw","wrappedFn","arg0","wrapRounded","result","routes","colorConvert","root","now","now_1","reWhitespace","trimmedEndIndex","index","_trimmedEndIndex","reTrimStart","baseTrim","_baseTrim","isObject","isSymbol","require$$2","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","other","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1","throttle","throttle_1","Wrapper","styled","PickerTooltip","WithTooltip","TooltipContent","Note","TooltipNote","theme","Swatches","SwatchColor","active","swatchBackground","Swatch","onClick","style","props","backgroundImage","React","Input","Form","ToggleIcon","Icons","ColorSpace","ColorSpace2","COLOR_SPACES","COLOR_REGEXP","RGB_REGEXP","HSL_REGEXP","HEX_REGEXP","SHORTHEX_REGEXP","ColorPicker","HexColorPicker","RgbaStringColorPicker","HslaStringColorPicker","fallbackColor","stringToArgs","parseValue","valid","plain","mapped","getRealValue","colorSpace","short","useColorInput","initialValue","onChange","setValue","useState","setColor","setColorSpace","useEffect","nextValue","nextColor","realValue","useMemo","updateValue","useCallback","update","parsed","cycleColorSpace","next","id","usePresets","presetColors","currentColor","selectedColors","setSelectedColors","presets","preset","addPreset","arr","ColorControl","name","onFocus","onBlur","startOpen","throttledOnChange","Picker","getControlId","Color_default"],"mappings":"0VAAkH,SAASA,GAAG,CAAC,OAAOA,EAAE,OAAO,QAAQ,SAAS,EAAE,CAAC,QAAQC,EAAE,EAAEA,EAAE,UAAU,OAAOA,IAAI,CAAC,IAAIC,EAAE,UAAUD,CAAC,EAAE,QAAQE,KAAKD,EAAE,OAAO,UAAU,eAAe,KAAKA,EAAEC,CAAC,IAAI,EAAEA,CAAC,EAAED,EAAEC,CAAC,GAAG,OAAO,CAAC,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,SAASC,EAAE,EAAEH,EAAE,CAAC,GAAS,GAAN,KAAQ,MAAM,CAAE,EAAC,IAAIC,EAAEC,EAAE,EAAE,CAAA,EAAG,EAAE,OAAO,KAAK,CAAC,EAAE,IAAIA,EAAE,EAAEA,EAAE,EAAE,OAAOA,IAAIF,EAAE,QAAQC,EAAE,EAAEC,CAAC,CAAC,GAAG,IAAI,EAAED,CAAC,EAAE,EAAEA,CAAC,GAAG,OAAO,CAAC,CAAC,SAASG,EAAE,EAAE,CAAC,IAAI,EAAEJ,EAAAA,OAAE,CAAC,EAAE,EAAEA,EAAC,OAAC,SAASK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQA,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,Q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AAY,QAAAkB,EAAQ,OAAAC,CAAM,CAAC,EAAEP,EAAQ,OAAO,GAAGlD,EAAM,cAAcT,GAAS,KAAK2D,EAAQ,IAAI,CAACC,EAAOvH,IAAQoE,EAAM,cAAcd,GAAY,CAAC,IAAI,GAAGiE,EAAO,SAASvH,IAAQ,UAAU,GAAG,QAAQoE,EAAM,cAAcZ,GAAK,CAAC,KAAK+D,EAAO,SAASA,EAAO,KAAK,CAAC,CAAC,EAAEnD,EAAM,cAAcL,GAAO,CAAC,MAAMwD,EAAO3B,CAAU,EAAE,OAAO9I,GAAOkK,EAAGO,EAAO3B,CAAU,CAAC,IAAIoB,EAAGlK,EAAM8I,CAAU,CAAC,EAAE,QAAQ,IAAIc,EAAYa,EAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEnD,EAAM,cAAcL,GAAO,CAAC,MAAMyC,EAAU,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAEpC,EAAM,cAAcC,GAAM,CAAC,GAAG4D,GAAaN,CAAI,EAAE,MAAA1M,EAAM,SAASvE,GAAGgQ,EAAYhQ,EAAE,OAAO,KAAK,EAAE,QAAQA,GAAGA,EAAE,OAAO,OAAQ,EAAC,YAAY,iBAAiB,CAAC,EAAEuE,EAAMmJ,EAAM,cAAcG,GAAW,CAAC,KAAK,SAAS,QAAQuC,CAAe,CAAC,EAAE,IAAI,CAAC,EAAEoB,GAAcR","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file diff --git a/docs/assets/Color-6VNJS4EI-1a288c68.js b/docs/assets/Color-6VNJS4EI-fc9214ad.js similarity index 99% rename from docs/assets/Color-6VNJS4EI-1a288c68.js rename to docs/assets/Color-6VNJS4EI-fc9214ad.js index 0cf799e3..9ba007a5 100644 --- a/docs/assets/Color-6VNJS4EI-1a288c68.js +++ b/docs/assets/Color-6VNJS4EI-fc9214ad.js @@ -1,2 +1 @@ -import{n as M,d as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-9e101d18.js";import{R as h,r as b,g as fe}from"./index-ebeaab24.js";import{_ as Oe,i as J,a as Ie}from"./index-073301bc.js";import"./iframe-4b2e3517.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=0/0,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},fn=tn;export{tn as ColorControl,fn as default}; -//# sourceMappingURL=Color-6VNJS4EI-1a288c68.js.map +import{n as M,d as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-21c4db47.js";import{R as h,r as b,g as fe}from"./index-1b03fe98.js";import{_ as Oe,i as J,a as Ie}from"./index-d7bb098e.js";import"./iframe-19c7c3ad.js";import"../sb-preview/runtime.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-6fd5a17b.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=0/0,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},fn=tn;export{tn as ColorControl,fn as default}; diff --git a/docs/assets/Countdown.stories-efdbe80b.js.map b/docs/assets/Countdown.stories-efdbe80b.js.map deleted file mode 100644 index 93bf5e67..00000000 --- a/docs/assets/Countdown.stories-efdbe80b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Countdown.stories-efdbe80b.js","sources":["../../src/Countdown/Countdown.tsx"],"sourcesContent":["import React from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type CountdownProps = React.HTMLAttributes &\n IComponentBaseProps & {\n value: number\n }\n\nconst Countdown = ({\n value,\n dataTheme,\n className,\n ...props\n}: CountdownProps): JSX.Element => {\n const classes = twMerge('countdown', className)\n\n const displayedValue = Math.min(99, Math.max(0, value))\n const countdownStyle: Record = { '--value': displayedValue }\n\n return (\n \n \n \n )\n}\n\nexport default Countdown\n"],"names":["Countdown","value","dataTheme","className","props","classes","twMerge","countdownStyle","jsx","Countdown$1"],"mappings":"4FAUA,MAAAA,EAAA,CAAA,CAAmB,MAAAC,EACjB,UAAAC,EACA,UAAAC,EACA,GAAAC,CAEF,IAAA,CACE,MAAAC,EAAAC,EAAA,YAAAH,CAAA,EAGAI,EAAA,CAAA,UADA,KAAA,IAAA,GAAA,KAAA,IAAA,EAAAN,CAAA,CAAA,GAGA,OAAAO,EAAA,OAAA,CAAA,KAAA,QAAA,GAAAJ,EAAA,aAAAF,EAAA,UAAAG,EAAA,SAAAG,EAAA,OAAA,CAAA,MAAAD,CAAA,CAAA,CAAA,CAAA,CAKF,EAEAE,EAAAT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Countdown.stories-efdbe80b.js b/docs/assets/Countdown.stories-efe995ac.js similarity index 52% rename from docs/assets/Countdown.stories-efdbe80b.js rename to docs/assets/Countdown.stories-efe995ac.js index a1cbe149..f66c2099 100644 --- a/docs/assets/Countdown.stories-efdbe80b.js +++ b/docs/assets/Countdown.stories-efe995ac.js @@ -1,4 +1,4 @@ -import{t as S,a,j as o}from"./tw-merge-fe695a60.js";import{r as u}from"./index-ebeaab24.js";const x=({value:e,dataTheme:n,className:s,...r})=>{const l=S("countdown",s),V={"--value":Math.min(99,Math.max(0,e))};return a("span",{role:"timer",...r,"data-theme":n,className:l,children:a("span",{style:V})})},t=x;try{x.displayName="Countdown",x.__docgenInfo={description:"",displayName:"Countdown",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"number"}}}}}catch{}try{t.displayName="Countdown",t.__docgenInfo={description:"",displayName:"Countdown",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"number"}}}}}catch{}const W={title:"Data Display/Countdown",component:t},c=e=>{const[n,s]=u.useState(e.value);return u.useEffect(()=>{const r=setTimeout(()=>{s(l=>l<=0?e.value:l-1)},1e3);return()=>{clearTimeout(r)}},[n]),a(t,{className:"text-2xl",value:n})};c.args={value:50};const m=e=>{const[n,s]=u.useState(e.value);return u.useEffect(()=>{const r=setTimeout(()=>{s(l=>l<=0?e.value:l-1)},1e3);return()=>{clearTimeout(r)}},[n]),o("span",{className:"font-mono text-2xl",children:[a(t,{value:10}),":",a(t,{value:24}),":",a(t,{value:n})]})};m.args={value:34};const d=e=>{const[n,s]=u.useState(e.value);return u.useEffect(()=>{const r=setTimeout(()=>{s(l=>l<=0?e.value:l-1)},1e3);return()=>{clearTimeout(r)}},[n]),o("div",{className:"grid grid-flow-col gap-5 text-center auto-cols-max",children:[o("div",{className:"flex flex-col",children:[a(t,{className:"font-mono text-5xl",value:15}),"days"]}),o("div",{className:"flex flex-col",children:[a(t,{className:"font-mono text-5xl",value:10}),"hours"]}),o("div",{className:"flex flex-col",children:[a(t,{className:"font-mono text-5xl",value:24}),"min"]}),o("div",{className:"flex flex-col",children:[a(t,{className:"font-mono text-5xl",value:n}),"sec"]})]})};d.args={value:37};const i=e=>{const[n,s]=u.useState(e.value);return u.useEffect(()=>{const r=setTimeout(()=>{s(l=>l<=0?e.value:l-1)},1e3);return()=>{clearTimeout(r)}},[n]),o("div",{className:"grid grid-flow-col gap-5 text-center auto-cols-max",children:[o("div",{className:"flex flex-col p-2 bg-neutral rounded-box text-neutral-content",children:[a(t,{className:"font-mono text-5xl",value:15}),"days"]}),o("div",{className:"flex flex-col p-2 bg-neutral rounded-box text-neutral-content",children:[a(t,{className:"font-mono text-5xl",value:10}),"hours"]}),o("div",{className:"flex flex-col p-2 bg-neutral rounded-box text-neutral-content",children:[a(t,{className:"font-mono text-5xl",value:24}),"min"]}),o("div",{className:"flex flex-col p-2 bg-neutral rounded-box text-neutral-content",children:[a(t,{className:"font-mono text-5xl",value:n}),"sec"]})]})};i.args={value:26};var v,f,p;c.parameters={...c.parameters,docs:{...(v=c.parameters)==null?void 0:v.docs,source:{originalSource:`args => { +import{t as S,j as a,a as o}from"./tw-merge-0a3648bd.js";import{r as u}from"./index-1b03fe98.js";const x=({value:e,dataTheme:n,className:s,...r})=>{const l=S("countdown",s),V={"--value":Math.min(99,Math.max(0,e))};return a("span",{role:"timer",...r,"data-theme":n,className:l,children:a("span",{style:V})})},t=x;try{x.displayName="Countdown",x.__docgenInfo={description:"",displayName:"Countdown",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"number"}}}}}catch{}try{t.displayName="Countdown",t.__docgenInfo={description:"",displayName:"Countdown",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"number"}}}}}catch{}const W={title:"Data Display/Countdown",component:t},c=e=>{const[n,s]=u.useState(e.value);return u.useEffect(()=>{const r=setTimeout(()=>{s(l=>l<=0?e.value:l-1)},1e3);return()=>{clearTimeout(r)}},[n]),a(t,{className:"text-2xl",value:n})};c.args={value:50};const m=e=>{const[n,s]=u.useState(e.value);return u.useEffect(()=>{const r=setTimeout(()=>{s(l=>l<=0?e.value:l-1)},1e3);return()=>{clearTimeout(r)}},[n]),o("span",{className:"font-mono text-2xl",children:[a(t,{value:10}),":",a(t,{value:24}),":",a(t,{value:n})]})};m.args={value:34};const d=e=>{const[n,s]=u.useState(e.value);return u.useEffect(()=>{const r=setTimeout(()=>{s(l=>l<=0?e.value:l-1)},1e3);return()=>{clearTimeout(r)}},[n]),o("div",{className:"grid grid-flow-col gap-5 text-center auto-cols-max",children:[o("div",{className:"flex flex-col",children:[a(t,{className:"font-mono text-5xl",value:15}),"days"]}),o("div",{className:"flex flex-col",children:[a(t,{className:"font-mono text-5xl",value:10}),"hours"]}),o("div",{className:"flex flex-col",children:[a(t,{className:"font-mono text-5xl",value:24}),"min"]}),o("div",{className:"flex flex-col",children:[a(t,{className:"font-mono text-5xl",value:n}),"sec"]})]})};d.args={value:37};const i=e=>{const[n,s]=u.useState(e.value);return u.useEffect(()=>{const r=setTimeout(()=>{s(l=>l<=0?e.value:l-1)},1e3);return()=>{clearTimeout(r)}},[n]),o("div",{className:"grid grid-flow-col gap-5 text-center auto-cols-max",children:[o("div",{className:"flex flex-col p-2 bg-neutral rounded-box text-neutral-content",children:[a(t,{className:"font-mono text-5xl",value:15}),"days"]}),o("div",{className:"flex flex-col p-2 bg-neutral rounded-box text-neutral-content",children:[a(t,{className:"font-mono text-5xl",value:10}),"hours"]}),o("div",{className:"flex flex-col p-2 bg-neutral rounded-box text-neutral-content",children:[a(t,{className:"font-mono text-5xl",value:24}),"min"]}),o("div",{className:"flex flex-col p-2 bg-neutral rounded-box text-neutral-content",children:[a(t,{className:"font-mono text-5xl",value:n}),"sec"]})]})};i.args={value:26};var v,f,p;c.parameters={...c.parameters,docs:{...(v=c.parameters)==null?void 0:v.docs,source:{originalSource:`args => { const [value, setValue] = useState(args.value); useEffect(() => { const timer = setTimeout(() => { @@ -81,4 +81,3 @@ import{t as S,a,j as o}from"./tw-merge-fe695a60.js";import{r as u}from"./index-e ; }`,...(_=(T=i.parameters)==null?void 0:T.docs)==null?void 0:_.source}}};const j=["Default","Clock","WithLabels","WithBoxes"];export{m as Clock,c as Default,i as WithBoxes,d as WithLabels,j as __namedExportsOrder,W as default}; -//# sourceMappingURL=Countdown.stories-efdbe80b.js.map diff --git a/docs/assets/Diff.stories-42040ab8.js b/docs/assets/Diff.stories-42040ab8.js new file mode 100644 index 00000000..25a31039 --- /dev/null +++ b/docs/assets/Diff.stories-42040ab8.js @@ -0,0 +1,15 @@ +import{t as h,a as D,j as e}from"./tw-merge-0a3648bd.js";import{r as I}from"./index-1b03fe98.js";import{c as b}from"./clsx.m-1229b3e0.js";const r=I.forwardRef(({dataTheme:c,className:a,children:f,secondItem:g,...u},y)=>{const x=h("diff aspect-[16/9]",b({}),a);return D("div",{...u,"data-theme":c,className:x,ref:y,children:[e("div",{className:"diff-item-1",children:f}),e("div",{className:"diff-item-2",children:g}),e("div",{className:"diff-resizer"})]})});r.displayName="Diff";const o=r;try{r.displayName="Diff",r.__docgenInfo={description:"",displayName:"Diff",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},secondItem:{defaultValue:null,description:"",name:"secondItem",required:!0,type:{name:"ReactNode"}}}}}catch{}const k={title:"Data Display/Diff",component:o,parameters:{controls:{expanded:!0}}},t=({secondItem:c,...a})=>e(o,{...a,secondItem:e("img",{alt:"daisy",src:"https://daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a-blur.jpg"}),children:e("img",{alt:"daisy",src:" https://daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a.jpg"})});t.argTypes={secondItem:{control:!1}};const s=({secondItem:c,...a})=>e(o,{...a,secondItem:e("div",{className:"bg-base-200 text-9xl font-black grid place-content-center",children:"DAISY"}),children:e("div",{className:"bg-primary text-primary-content text-9xl font-black grid place-content-center",children:"DAISY"})});s.argTypes={secondItem:{control:!1}};var i,n,d;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`({ + secondItem, + ...args +}) => }> + daisy + `,...(d=(n=t.parameters)==null?void 0:n.docs)==null?void 0:d.source}}};var m,l,p;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`({ + secondItem, + ...args +}) => + DAISY + }> +
    + DAISY +
    +
    `,...(p=(l=s.parameters)==null?void 0:l.docs)==null?void 0:p.source}}};const j=["Default","Text"];export{t as Default,s as Text,j as __namedExportsOrder,k as default}; diff --git a/docs/assets/Divider.stories-85991620.js b/docs/assets/Divider.stories-85991620.js deleted file mode 100644 index 4c502397..00000000 --- a/docs/assets/Divider.stories-85991620.js +++ /dev/null @@ -1,54 +0,0 @@ -import{t as T,a as e,j as t}from"./tw-merge-fe695a60.js";import{c as S}from"./clsx.m-1229b3e0.js";import{C as n}from"./index-600c7863.js";import"./index-ebeaab24.js";const c=({children:r,vertical:a,horizontal:_,responsive:C,dataTheme:D,className:z,...q})=>{const V=T("divider",z,S({"divider-vertical":a,"divider-horizontal":_,"lg:divider-horizontal":C}));return e("div",{role:"separator",...q,"data-theme":D,className:V,children:r})},s=c;try{c.displayName="Divider",c.__docgenInfo={description:"",displayName:"Divider",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}}}}}catch{}try{s.displayName="Divider",s.__docgenInfo={description:"",displayName:"Divider",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}}}}}catch{}const O={title:"Layout/Divider",component:s,args:{children:"OR"}},l=({children:r,...a})=>t("div",{className:"flex flex-col w-full border-opacity-50",children:[e(n,{className:"grid h-20 bg-base-300 rounded-box place-items-center",children:"content"}),e(s,{...a,children:r}),e(n,{className:"grid h-20 bg-base-300 rounded-box place-items-center",children:"content"})]});l.args={};const d=({children:r,...a})=>t("div",{className:"flex w-full ",children:[e(n,{className:"grid h-20 flex-grow bg-base-300 rounded-box place-items-center",children:"content"}),e(s,{...a,children:r}),e(n,{className:"grid h-20 flex-grow bg-base-300 rounded-box place-items-center",children:"content"})]});d.args={horizontal:!0};const o=({children:r,...a})=>t("div",{className:"flex flex-col w-full",children:[e(n,{className:"grid h-20 bg-base-300 rounded-box place-items-center",children:"content"}),e(s,{...a,children:r}),e(n,{className:"grid h-20 bg-base-300 rounded-box place-items-center",children:"content"})]});o.args={children:""};const i=({children:r,...a})=>t("div",{className:"flex flex-col w-full lg:flex-row",children:[e(n,{className:"grid flex-grow h-32 bg-base-300 rounded-box place-items-center",children:"content"}),e(s,{...a,children:r}),e(n,{className:"grid flex-grow h-32 bg-base-300 rounded-box place-items-center",children:"content"})]});i.args={responsive:!0};var m,u,p;l.parameters={...l.parameters,docs:{...(m=l.parameters)==null?void 0:m.docs,source:{originalSource:`({ - children, - ...args -}) => { - return
    - - content - - {children} - - content - -
    ; -}`,...(p=(u=l.parameters)==null?void 0:u.docs)==null?void 0:p.source}}};var g,b,f;d.parameters={...d.parameters,docs:{...(g=d.parameters)==null?void 0:g.docs,source:{originalSource:`({ - children, - ...args -}) => { - return
    - - content - - {children} - - content - -
    ; -}`,...(f=(b=d.parameters)==null?void 0:b.docs)==null?void 0:f.source}}};var h,x,v;o.parameters={...o.parameters,docs:{...(h=o.parameters)==null?void 0:h.docs,source:{originalSource:`({ - children, - ...args -}) => { - return
    - - content - - {children} - - content - -
    ; -}`,...(v=(x=o.parameters)==null?void 0:x.docs)==null?void 0:v.source}}};var N,w,y;i.parameters={...i.parameters,docs:{...(N=i.parameters)==null?void 0:N.docs,source:{originalSource:`({ - children, - ...args -}) => { - return
    - - content - - {children} - - content - -
    ; -}`,...(y=(w=i.parameters)==null?void 0:w.docs)==null?void 0:y.source}}};const E=["Default","Horizontal","NoText","Responsive"];export{l as Default,d as Horizontal,o as NoText,i as Responsive,E as __namedExportsOrder,O as default}; -//# sourceMappingURL=Divider.stories-85991620.js.map diff --git a/docs/assets/Divider.stories-85991620.js.map b/docs/assets/Divider.stories-85991620.js.map deleted file mode 100644 index 9e34578a..00000000 --- a/docs/assets/Divider.stories-85991620.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Divider.stories-85991620.js","sources":["../../src/Divider/Divider.tsx"],"sourcesContent":["import React from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type DividerProps = React.HTMLAttributes &\n IComponentBaseProps & {\n vertical?: boolean\n horizontal?: boolean\n responsive?: boolean\n }\n\nconst Divider = ({\n children,\n vertical,\n horizontal,\n responsive,\n dataTheme,\n className,\n ...props\n}: DividerProps): JSX.Element => {\n const classes = twMerge(\n 'divider',\n className,\n clsx({\n 'divider-vertical': vertical,\n 'divider-horizontal': horizontal,\n 'lg:divider-horizontal': responsive,\n })\n )\n\n return (\n
    \n {children}\n
    \n )\n}\n\nexport default Divider\n"],"names":["Divider","children","vertical","horizontal","responsive","dataTheme","className","props","classes","twMerge","clsx","jsx","Divider$1"],"mappings":"sKAaA,MAAAA,EAAA,CAAA,CAAiB,SAAAC,EACf,SAAAC,EACA,WAAAC,EACA,WAAAC,EACA,UAAAC,EACA,UAAAC,EACA,GAAAC,CAEF,IAAA,CACE,MAAAC,EAAAC,EAAgB,UACdH,EACAI,EAAA,CACK,mBAAAR,EACiB,qBAAAC,EACE,wBAAAC,CACG,CAAA,CAC1B,EAGH,OAAAO,EAAA,MAAA,CAAA,KAAA,YAAA,GAAAJ,EAAA,aAAAF,EAAA,UAAAG,EAAA,SAAAP,CAAA,CAAA,CAKF,EAEAW,EAAAZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Divider.stories-8b6f67c7.js b/docs/assets/Divider.stories-8b6f67c7.js new file mode 100644 index 00000000..45a431de --- /dev/null +++ b/docs/assets/Divider.stories-8b6f67c7.js @@ -0,0 +1,115 @@ +import{t as F,j as e,a as o}from"./tw-merge-0a3648bd.js";import{r as G}from"./index-1b03fe98.js";import{c as J}from"./clsx.m-1229b3e0.js";import{C as d}from"./index-3c968524.js";const g=G.forwardRef(({children:n,vertical:i,horizontal:a,responsive:l,color:s,start:O,end:W,dataTheme:L,className:M,...$},k)=>{const B=F("divider",M,J({"divider-vertical":i,"divider-horizontal":a,"lg:divider-horizontal":l,"divider-neutral":s==="neutral","divider-primary":s==="primary","divider-secondary":s==="secondary","divider-accent":s==="accent","divider-warning":s==="warning","divider-info":s==="info","divider-error":s==="error","divider-start":O,"divider-end":W}));return e("div",{role:"separator",...$,"data-theme":L,className:B,ref:k,children:n})});g.displayName="Divider";const r=g;try{g.displayName="Divider",g.__docgenInfo={description:"",displayName:"Divider",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}},start:{defaultValue:null,description:"",name:"start",required:!1,type:{name:"boolean"}},end:{defaultValue:null,description:"",name:"end",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"primary"'},{value:'"secondary"'},{value:'"accent"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}}}}}catch{}try{r.displayName="Divider",r.__docgenInfo={description:"",displayName:"Divider",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}},start:{defaultValue:null,description:"",name:"start",required:!1,type:{name:"boolean"}},end:{defaultValue:null,description:"",name:"end",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"primary"'},{value:'"secondary"'},{value:'"accent"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}}}}}catch{}const Y={title:"Layout/Divider",component:r,args:{children:"OR"}},c=({children:n,...i})=>o("div",{className:"flex flex-col w-full border-opacity-50",children:[e(d,{className:"grid h-20 bg-base-300 rounded-box place-items-center",children:"content"}),e(r,{...i,children:n}),e(d,{className:"grid h-20 bg-base-300 rounded-box place-items-center",children:"content"})]});c.args={};const u=({children:n,...i})=>o("div",{className:"flex w-full ",children:[e(d,{className:"grid h-20 flex-grow bg-base-300 rounded-box place-items-center",children:"content"}),e(r,{...i,children:n}),e(d,{className:"grid h-20 flex-grow bg-base-300 rounded-box place-items-center",children:"content"})]});u.args={horizontal:!0};const m=({children:n,...i})=>o("div",{className:"flex flex-col w-full",children:[e(d,{className:"grid h-20 bg-base-300 rounded-box place-items-center",children:"content"}),e(r,{...i,children:n}),e(d,{className:"grid h-20 bg-base-300 rounded-box place-items-center",children:"content"})]});m.args={children:""};const f=({children:n,...i})=>o("div",{className:"flex flex-col w-full lg:flex-row",children:[e(d,{className:"grid flex-grow h-32 bg-base-300 rounded-box place-items-center",children:"content"}),e(r,{...i,children:n}),e(d,{className:"grid flex-grow h-32 bg-base-300 rounded-box place-items-center",children:"content"})]});f.args={responsive:!0};const p=({children:n,color:i,...a})=>o("div",{className:"flex flex-col w-full",children:[e(r,{...a,children:"Default"}),e(r,{...a,color:"neutral",children:"Neutral"}),e(r,{...a,color:"primary",children:"Primary"}),e(r,{...a,color:"secondary",children:"Secondary"}),e(r,{...a,color:"accent",children:"Accent"}),e(r,{...a,color:"success",children:"Success"}),e(r,{...a,color:"warning",children:"Warning"}),e(r,{...a,color:"info",children:"Info"}),e(r,{...a,color:"error",children:"Error"})]});p.argTypes={children:{control:!1},color:{control:!1}};const v=({children:n,start:i,end:a,...l})=>o("div",{className:"flex flex-col w-full",children:[e(r,{...l,start:!0,children:"Start"}),e(r,{...l,children:"Default"}),e(r,{...l,end:!0,children:"End"})]});v.argTypes={children:{control:!1},start:{control:!1},end:{control:!1}};const t=({children:n,start:i,end:a,...l})=>o("div",{className:"flex w-full justify-center h-52",children:[e(r,{...l,start:!0,children:"Start"}),e(r,{...l,children:"Default"}),e(r,{...l,end:!0,children:"End"})]});t.argTypes={children:{control:!1},start:{control:!1},end:{control:!1}};t.args={horizontal:!0};var h,b,x;c.parameters={...c.parameters,docs:{...(h=c.parameters)==null?void 0:h.docs,source:{originalSource:`({ + children, + ...args +}) => { + return
    + + content + + {children} + + content + +
    ; +}`,...(x=(b=c.parameters)==null?void 0:b.docs)==null?void 0:x.source}}};var D,y,N;u.parameters={...u.parameters,docs:{...(D=u.parameters)==null?void 0:D.docs,source:{originalSource:`({ + children, + ...args +}) => { + return
    + + content + + {children} + + content + +
    ; +}`,...(N=(y=u.parameters)==null?void 0:y.docs)==null?void 0:N.source}}};var w,C,_;m.parameters={...m.parameters,docs:{...(w=m.parameters)==null?void 0:w.docs,source:{originalSource:`({ + children, + ...args +}) => { + return
    + + content + + {children} + + content + +
    ; +}`,...(_=(C=m.parameters)==null?void 0:C.docs)==null?void 0:_.source}}};var S,q,V;f.parameters={...f.parameters,docs:{...(S=f.parameters)==null?void 0:S.docs,source:{originalSource:`({ + children, + ...args +}) => { + return
    + + content + + {children} + + content + +
    ; +}`,...(V=(q=f.parameters)==null?void 0:q.docs)==null?void 0:V.source}}};var z,T,E;p.parameters={...p.parameters,docs:{...(z=p.parameters)==null?void 0:z.docs,source:{originalSource:`({ + children, + color, + ...args +}) => { + return
    + Default + + Neutral + + + Primary + + + Secondary + + + Accent + + + Success + + + Warning + + + Info + + + Error + +
    ; +}`,...(E=(T=p.parameters)==null?void 0:T.docs)==null?void 0:E.source}}};var P,j,H;v.parameters={...v.parameters,docs:{...(P=v.parameters)==null?void 0:P.docs,source:{originalSource:`({ + children, + start, + end, + ...args +}) => { + return
    + + Start + + Default + + End + +
    ; +}`,...(H=(j=v.parameters)==null?void 0:j.docs)==null?void 0:H.source}}};var I,R,A;t.parameters={...t.parameters,docs:{...(I=t.parameters)==null?void 0:I.docs,source:{originalSource:`({ + children, + start, + end, + ...args +}) => { + return
    + + Start + + Default + + End + +
    ; +}`,...(A=(R=t.parameters)==null?void 0:R.docs)==null?void 0:A.source}}};const Z=["Default","Horizontal","NoText","Responsive","Colors","DifferentPositions","DifferentPositionsHorizontal"];export{p as Colors,c as Default,v as DifferentPositions,t as DifferentPositionsHorizontal,u as Horizontal,m as NoText,f as Responsive,Z as __namedExportsOrder,Y as default}; diff --git a/docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js b/docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js deleted file mode 100644 index a5dcbbe4..00000000 --- a/docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js +++ /dev/null @@ -1,2 +0,0 @@ -import{_ as p}from"./iframe-4b2e3517.js";import{R as e,r as c}from"./index-ebeaab24.js";import{r as u,u as h}from"./react-18-8ac2d3a8.js";import{C as l,A as E,H as d,D as x}from"./index-9e101d18.js";import"../sb-preview/runtime.js";import"./index-073301bc.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./index-356e4a49.js";var _={code:l,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:r}},H=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,i)=>{p(()=>import("./index-a99a88c4.js"),["./index-a99a88c4.js","./index-bda0bad7.js","./index-ebeaab24.js"],import.meta.url).then(({MDXProvider:a})=>u(e.createElement(D,{showException:i,key:Math.random()},e.createElement(a,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{h(t)}}};export{H as DocsRenderer,_ as defaultComponents}; -//# sourceMappingURL=DocsRenderer-3PUGWF3O-935a3fbe.js.map diff --git a/docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js.map b/docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js.map deleted file mode 100644 index 53146676..00000000 --- a/docs/assets/DocsRenderer-3PUGWF3O-935a3fbe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"mappings":"iWAIG,IAACA,EAAkB,CAAC,KAAKC,EAAgB,EAAEC,EAAU,GAAGC,CAAU,EAAEC,EAAc,cAAcC,WAAS,CAAC,aAAa,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,MAAM,CAAC,SAAS,EAAE,CAAE,CAAC,OAAO,0BAA0B,CAAC,MAAO,CAAC,SAAS,EAAE,CAAC,CAAC,kBAAkBC,EAAI,CAAC,GAAG,CAAC,cAAAC,CAAa,EAAE,KAAK,MAAMA,EAAcD,CAAG,CAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAAE,CAAQ,EAAE,KAAK,MAAM,CAAC,SAAAC,CAAQ,EAAE,KAAK,MAAM,OAAOD,EAAS,KAAKC,CAAQ,CAAC,EAAEC,EAAa,KAAK,CAAC,aAAa,CAAC,KAAK,OAAO,MAAMC,EAAQC,EAAcC,IAAU,CAAC,IAAIC,EAAW,CAAC,GAAGd,EAAkB,GAAGY,GAAA,YAAAA,EAAe,UAAU,EAAEG,EAAMC,EAAK,OAAO,IAAI,QAAQ,CAACC,EAAQC,IAAS,CAACC,EAAA,WAAO,qBAAe,uFAAE,KAAK,CAAC,CAAC,YAAAC,CAAW,IAAIC,EAAcC,EAAM,cAAclB,EAAc,CAAC,cAAcc,EAAO,IAAI,KAAK,OAAM,CAAE,EAAEI,EAAM,cAAcF,EAAY,CAAC,WAAAN,CAAU,EAAEQ,EAAM,cAAcP,EAAM,CAAC,QAAAJ,EAAQ,cAAAC,CAAa,CAAC,CAAC,CAAC,EAAEC,CAAO,CAAC,EAAE,KAAK,IAAII,EAAO,CAAE,CAAE,CAAC,CAAC,EAAE,KAAK,QAAQJ,GAAS,CAACU,EAAeV,CAAO,CAAE,CAAE,CAAC","names":["defaultComponents","CodeOrSourceMdx","AnchorMdx","HeadersMdx","ErrorBoundary","Component","err","showException","hasError","children","DocsRenderer","context","docsParameter","element","components","TDocs","Docs","resolve","reject","__vitePreload","MDXProvider","renderElement","React","unmountElement"],"sources":["../../node_modules/@storybook/addon-docs/dist/chunk-S4VUQJ4A.mjs"],"sourcesContent":["import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:children}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n"],"file":"assets/DocsRenderer-3PUGWF3O-935a3fbe.js"} \ No newline at end of file diff --git a/docs/assets/DocsRenderer-NNNQARDV-d9907032.js b/docs/assets/DocsRenderer-NNNQARDV-d9907032.js new file mode 100644 index 00000000..88790f45 --- /dev/null +++ b/docs/assets/DocsRenderer-NNNQARDV-d9907032.js @@ -0,0 +1 @@ +import{_ as p}from"./iframe-19c7c3ad.js";import{R as e,r as c}from"./index-1b03fe98.js";import{r as l,u}from"./react-18-5df836b6.js";import{C as h,A as E,H as d,D as x}from"./index-21c4db47.js";import"../sb-preview/runtime.js";import"./index-6fd5a17b.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-d7bb098e.js";import"./index-356e4a49.js";var _={code:h,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:e.createElement(e.Fragment,null,r)}},F=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,a)=>{p(()=>import("./index-0dd2673f.js"),["./index-0dd2673f.js","./index-2ef8b458.js","./index-1b03fe98.js"],import.meta.url).then(({MDXProvider:i})=>l(e.createElement(D,{showException:a,key:Math.random()},e.createElement(i,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{u(t)}}};export{F as DocsRenderer,_ as defaultComponents}; diff --git a/docs/assets/Drawer.stories-0b40aea9.js.map b/docs/assets/Drawer.stories-0b40aea9.js.map deleted file mode 100644 index 9e9f0800..00000000 --- a/docs/assets/Drawer.stories-0b40aea9.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Drawer.stories-0b40aea9.js","sources":["../../src/Drawer/Drawer.tsx"],"sourcesContent":["import React, { ReactNode } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type DrawerProps = React.HTMLAttributes &\n IComponentBaseProps & {\n side: ReactNode\n open?: boolean\n end?: boolean\n toggleClassName?: string\n contentClassName?: string\n sideClassName?: string\n overlayClassName?: string\n onClickOverlay?: () => void\n }\n\nconst Drawer = ({\n children,\n side,\n open,\n end,\n dataTheme,\n className,\n toggleClassName,\n contentClassName,\n sideClassName,\n overlayClassName,\n onClickOverlay,\n ...props\n}: DrawerProps) => {\n const classes = twMerge(\n 'drawer',\n className,\n clsx({\n 'drawer-end': end,\n })\n )\n\n return (\n \n \n
    {children}
    \n
    \n \n {side}\n
    \n \n )\n}\n\nexport default Drawer\n"],"names":["Drawer","children","side","open","end","dataTheme","className","toggleClassName","contentClassName","sideClassName","overlayClassName","onClickOverlay","props","classes","twMerge","clsx","jsxs","jsx","Drawer$1"],"mappings":"0RAkBA,MAAAA,EAAA,CAAA,CAAgB,SAAAC,EACd,KAAAC,EACA,KAAAC,EACA,IAAAC,EACA,UAAAC,EACA,UAAAC,EACA,gBAAAC,EACA,iBAAAC,EACA,cAAAC,EACA,iBAAAC,EACA,eAAAC,EACA,GAAAC,CAEF,IAAA,CACE,MAAAC,EAAAC,EAAgB,SACdR,EACAS,EAAA,CACK,aAAAX,CACW,CAAA,CACf,EAGH,OAAAY,EACE,MAAC,CAAA,gBAAAb,EACgB,GAAAS,EACX,aAAAP,EACQ,UAAAQ,EACD,SAAA,CAEXI,EAAA,QAAC,CAAA,KAAA,WACM,UAAAF,EAAA,gBAAAR,CAAA,EAC2C,QAAAJ,EACvC,SAAA,EACD,CAAA,EACVc,EAAA,MAAA,CAAA,UAAAF,EAAA,iBAAAP,CAAA,EAAA,SAAAP,EAAA,EACoEe,EAAA,MAAA,CAAA,UAAAD,EAAA,cAAAN,CAAA,EAAA,SAAA,CAElEQ,EAAA,QAAC,CAAA,UAAAF,EAAA,iBAAAL,CAAA,EACmD,QAAAC,CACzC,CAAA,EACVT,CACA,EAAA,CACH,CAAA,CAAA,CAGN,EAEAgB,EAAAlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Drawer.stories-0b40aea9.js b/docs/assets/Drawer.stories-3cceda62.js similarity index 95% rename from docs/assets/Drawer.stories-0b40aea9.js rename to docs/assets/Drawer.stories-3cceda62.js index b59af966..7ac430e7 100644 --- a/docs/assets/Drawer.stories-0b40aea9.js +++ b/docs/assets/Drawer.stories-3cceda62.js @@ -1,4 +1,4 @@ -import{t as T,j as i,a as e}from"./tw-merge-fe695a60.js";import{r as o}from"./index-ebeaab24.js";import{c}from"./clsx.m-1229b3e0.js";import{B as g}from"./Button-28269a3e.js";import{N as F}from"./index-550801ef.js";import{M as a}from"./index-5474795c.js";import"./index-357fb5a8.js";const h=({children:s,side:r,open:l,end:n,dataTheme:t,className:D,toggleClassName:O,contentClassName:B,sideClassName:q,overlayClassName:_,onClickOverlay:j,...L})=>{const R=T("drawer",D,c({"drawer-end":n}));return i("div",{"aria-expanded":l,...L,"data-theme":t,className:R,children:[e("input",{type:"checkbox",className:c("drawer-toggle",O),checked:l,readOnly:!0}),e("div",{className:c("drawer-content",B),children:s}),i("div",{className:c("drawer-side",q),children:[e("label",{className:c("drawer-overlay",_),onClick:j}),r]})]})},p=h;try{h.displayName="Drawer",h.__docgenInfo={description:"",displayName:"Drawer",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},side:{defaultValue:null,description:"",name:"side",required:!0,type:{name:"ReactNode"}},open:{defaultValue:null,description:"",name:"open",required:!1,type:{name:"boolean"}},end:{defaultValue:null,description:"",name:"end",required:!1,type:{name:"boolean"}},toggleClassName:{defaultValue:null,description:"",name:"toggleClassName",required:!1,type:{name:"string"}},contentClassName:{defaultValue:null,description:"",name:"contentClassName",required:!1,type:{name:"string"}},sideClassName:{defaultValue:null,description:"",name:"sideClassName",required:!1,type:{name:"string"}},overlayClassName:{defaultValue:null,description:"",name:"overlayClassName",required:!1,type:{name:"string"}},onClickOverlay:{defaultValue:null,description:"",name:"onClickOverlay",required:!1,type:{name:"(() => void)"}}}}}catch{}const H={title:"Layout/Drawer",component:p,argTypes:{side:{control:!1}}},d=s=>{const[r,l]=o.useState(!1),n=o.useCallback(()=>{l(t=>!t)},[]);return e(p,{...s,open:r,onClickOverlay:n,side:i(a,{className:"p-4 w-80 h-full bg-base-200 text-base-content",children:[e(a.Item,{children:e("a",{children:"Sidebar Item 1"})}),e(a.Item,{children:e("a",{children:"Sidebar Item 2"})})]}),children:e(g,{color:"primary",onClick:n,children:"Open drawer"})})};d.args={sideClassName:"h-full absolute",contentClassName:"flex h-56 items-center justify-center"};const m=s=>{const[r,l]=o.useState(!1),n=o.useCallback(()=>{l(t=>!t)},[]);return e(p,{...s,open:r,onClickOverlay:n,side:i(a,{className:"p-4 w-80 h-full bg-base-200 text-base-content",children:[e(a.Item,{children:e("a",{children:"Sidebar Item 1"})}),e(a.Item,{children:e("a",{children:"Sidebar Item 2"})})]}),children:e(g,{color:"primary",onClick:n,className:"lg:hidden",children:"Open drawer"})})};m.args={className:"lg:drawer-open",sideClassName:"h-full absolute",contentClassName:"flex h-56 items-center justify-center"};const u=s=>{const[r,l]=o.useState(!1),n=o.useCallback(()=>{l(t=>!t)},[]);return i(p,{...s,open:r,onClickOverlay:n,side:i(a,{className:"p-4 w-60 md:w-80 h-full bg-base-200",children:[e(a.Item,{children:e("a",{children:"Sidebar Item 1"})}),e(a.Item,{children:e("a",{children:"Sidebar Item 2"})})]}),children:[i(F,{className:"w-full bg-base-300",children:[e("div",{className:"flex-none lg:hidden",children:e(g,{shape:"square",color:"ghost",onClick:n,children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-6 h-6 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})})}),e("div",{className:"flex-1 px-2 mx-2",children:"Navbar Title"}),e("div",{className:"flex-none hidden lg:block",children:i(a,{horizontal:!0,children:[e(a.Item,{children:e("a",{children:"Navbar Item 1"})}),e(a.Item,{children:e("a",{children:"Navbar Item 2"})})]})})]}),e("div",{className:"flex flex-grow items-center justify-center",children:"Content"})]})};u.args={className:"h-56 rounded overflow-hidden",contentClassName:"flex flex-col"};const b=s=>{const[r,l]=o.useState(!1),n=o.useCallback(()=>{l(t=>!t)},[]);return e(p,{...s,open:r,onClickOverlay:n,side:i(a,{className:"p-4 w-80 h-full bg-base-200 text-base-content",children:[e(a.Item,{children:e("a",{children:"Sidebar Item 1"})}),e(a.Item,{children:e("a",{children:"Sidebar Item 2"})})]}),children:e(g,{color:"primary",onClick:n,children:"Open drawer"})})};b.args={sideClassName:"h-full absolute",contentClassName:"flex h-56 items-center justify-center",end:!0};var f,v,N;d.parameters={...d.parameters,docs:{...(f=d.parameters)==null?void 0:f.docs,source:{originalSource:`args => { +import{t as T,a as i,j as e}from"./tw-merge-0a3648bd.js";import{r as o}from"./index-1b03fe98.js";import{c}from"./clsx.m-1229b3e0.js";import{B as g}from"./Button-e9ac0f78.js";import{N as F}from"./index-1e3c83a2.js";import{M as a}from"./index-44e44375.js";import"./index-a55c3a76.js";const h=({children:s,side:r,open:l,end:n,dataTheme:t,className:D,toggleClassName:O,contentClassName:B,sideClassName:q,overlayClassName:_,onClickOverlay:j,...L})=>{const R=T("drawer",D,c({"drawer-end":n}));return i("div",{"aria-expanded":l,...L,"data-theme":t,className:R,children:[e("input",{type:"checkbox",className:c("drawer-toggle",O),checked:l,readOnly:!0}),e("div",{className:c("drawer-content",B),children:s}),i("div",{className:c("drawer-side",q),children:[e("label",{className:c("drawer-overlay",_),onClick:j}),r]})]})},p=h;try{h.displayName="Drawer",h.__docgenInfo={description:"",displayName:"Drawer",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},side:{defaultValue:null,description:"",name:"side",required:!0,type:{name:"ReactNode"}},open:{defaultValue:null,description:"",name:"open",required:!1,type:{name:"boolean"}},end:{defaultValue:null,description:"",name:"end",required:!1,type:{name:"boolean"}},toggleClassName:{defaultValue:null,description:"",name:"toggleClassName",required:!1,type:{name:"string"}},contentClassName:{defaultValue:null,description:"",name:"contentClassName",required:!1,type:{name:"string"}},sideClassName:{defaultValue:null,description:"",name:"sideClassName",required:!1,type:{name:"string"}},overlayClassName:{defaultValue:null,description:"",name:"overlayClassName",required:!1,type:{name:"string"}},onClickOverlay:{defaultValue:null,description:"",name:"onClickOverlay",required:!1,type:{name:"(() => void)"}}}}}catch{}const H={title:"Layout/Drawer",component:p,argTypes:{side:{control:!1}}},d=s=>{const[r,l]=o.useState(!1),n=o.useCallback(()=>{l(t=>!t)},[]);return e(p,{...s,open:r,onClickOverlay:n,side:i(a,{className:"p-4 w-80 h-full bg-base-200 text-base-content",children:[e(a.Item,{children:e("a",{children:"Sidebar Item 1"})}),e(a.Item,{children:e("a",{children:"Sidebar Item 2"})})]}),children:e(g,{color:"primary",onClick:n,children:"Open drawer"})})};d.args={sideClassName:"h-full absolute",contentClassName:"flex h-56 items-center justify-center"};const m=s=>{const[r,l]=o.useState(!1),n=o.useCallback(()=>{l(t=>!t)},[]);return e(p,{...s,open:r,onClickOverlay:n,side:i(a,{className:"p-4 w-80 h-full bg-base-200 text-base-content",children:[e(a.Item,{children:e("a",{children:"Sidebar Item 1"})}),e(a.Item,{children:e("a",{children:"Sidebar Item 2"})})]}),children:e(g,{color:"primary",onClick:n,className:"lg:hidden",children:"Open drawer"})})};m.args={className:"lg:drawer-open",sideClassName:"h-full absolute",contentClassName:"flex h-56 items-center justify-center"};const u=s=>{const[r,l]=o.useState(!1),n=o.useCallback(()=>{l(t=>!t)},[]);return i(p,{...s,open:r,onClickOverlay:n,side:i(a,{className:"p-4 w-60 md:w-80 h-full bg-base-200",children:[e(a.Item,{children:e("a",{children:"Sidebar Item 1"})}),e(a.Item,{children:e("a",{children:"Sidebar Item 2"})})]}),children:[i(F,{className:"w-full bg-base-300",children:[e("div",{className:"flex-none lg:hidden",children:e(g,{shape:"square",color:"ghost",onClick:n,children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-6 h-6 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})})}),e("div",{className:"flex-1 px-2 mx-2",children:"Navbar Title"}),e("div",{className:"flex-none hidden lg:block",children:i(a,{horizontal:!0,children:[e(a.Item,{children:e("a",{children:"Navbar Item 1"})}),e(a.Item,{children:e("a",{children:"Navbar Item 2"})})]})})]}),e("div",{className:"flex flex-grow items-center justify-center",children:"Content"})]})};u.args={className:"h-56 rounded overflow-hidden",contentClassName:"flex flex-col"};const b=s=>{const[r,l]=o.useState(!1),n=o.useCallback(()=>{l(t=>!t)},[]);return e(p,{...s,open:r,onClickOverlay:n,side:i(a,{className:"p-4 w-80 h-full bg-base-200 text-base-content",children:[e(a.Item,{children:e("a",{children:"Sidebar Item 1"})}),e(a.Item,{children:e("a",{children:"Sidebar Item 2"})})]}),children:e(g,{color:"primary",onClick:n,children:"Open drawer"})})};b.args={sideClassName:"h-full absolute",contentClassName:"flex h-56 items-center justify-center",end:!0};var f,v,N;d.parameters={...d.parameters,docs:{...(f=d.parameters)==null?void 0:f.docs,source:{originalSource:`args => { const [visible, setVisible] = useState(false); const toggleVisible = useCallback(() => { setVisible(visible => !visible); @@ -85,4 +85,3 @@ import{t as T,j as i,a as e}from"./tw-merge-fe695a60.js";import{r as o}from"./in ; }`,...(S=(V=b.parameters)==null?void 0:V.docs)==null?void 0:S.source}}};const J=["Default","Responsive","NavbarMenuForDesktopSidebarDrawerForMobile","RightSideOfPage"];export{d as Default,u as NavbarMenuForDesktopSidebarDrawerForMobile,m as Responsive,b as RightSideOfPage,J as __namedExportsOrder,H as default}; -//# sourceMappingURL=Drawer.stories-0b40aea9.js.map diff --git a/docs/assets/Dropdown.stories-5c29f240.js.map b/docs/assets/Dropdown.stories-5c29f240.js.map deleted file mode 100644 index 4280e3fb..00000000 --- a/docs/assets/Dropdown.stories-5c29f240.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dropdown.stories-5c29f240.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Dropdown.stories-5c29f240.js b/docs/assets/Dropdown.stories-bf9b5a3e.js similarity index 93% rename from docs/assets/Dropdown.stories-5c29f240.js rename to docs/assets/Dropdown.stories-bf9b5a3e.js index 7a1bfe77..b30c2a78 100644 --- a/docs/assets/Dropdown.stories-5c29f240.js +++ b/docs/assets/Dropdown.stories-bf9b5a3e.js @@ -1,4 +1,4 @@ -import{a as e,j as o}from"./tw-merge-fe695a60.js";import{D as r}from"./index-98a30f4c.js";import{C as c}from"./index-600c7863.js";import{N as l}from"./index-550801ef.js";import{B as y}from"./Button-28269a3e.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const A={title:"Actions/Dropdown",component:r,argTypes:{item:{control:!1}}},s=n=>e("div",{className:"my-32",children:o(r,{...n,children:[e(r.Toggle,{children:"Click"}),o(r.Menu,{className:"w-52",children:[e(r.Item,{children:"Item 1"}),e(r.Item,{children:"Item 2"})]})]})}),d=n=>e("div",{className:"my-32",children:o(r,{...n,children:[e(r.Toggle,{children:"Click"}),e(r.Menu,{className:"card card-compact w-64 p-2 shadow bg-primary text-primary-content m-1",children:o(c.Body,{children:[e(c.Title,{tag:"h3",children:"Card title!"}),e("p",{children:"you can use any element as a dropdown."})]})})]})}),a=({dataTheme:n,...v})=>o(l,{className:"my-32 px-2 font-sans bg-base-300 rounded-box",dataTheme:n,children:[e(l.Start,{className:"px-2 lg:flex-none",children:e("span",{className:"text-lg font-bold",children:"daisyUI"})}),o(l.End,{children:[e(y,{color:"ghost",dataTheme:n,children:"Button"}),o(r,{...v,dataTheme:n,children:[e(r.Toggle,{className:"btn btn-ghost rounded-btn",button:!1,children:"Dropdown"}),o(r.Menu,{className:"w-52 mt-4",children:[e(r.Item,{children:"Item 1"}),e(r.Item,{children:"Item 2"})]})]})]})]});a.args={end:!0};const t=n=>o("div",{className:"my-32 font-sans",children:["A normal text and a helper dropdown",o(r,{...n,children:[e(r.Toggle,{button:!1,className:"btn btn-circle btn-ghost btn-xs text-info",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e(r.Menu,{className:"card compact w-64 !p-0 shadow bg-base-100 rounded-box",children:o(c.Body,{children:[e(c.Title,{tag:"h2",children:"You needed more info?"}),e("p",{children:"Here is a description!"})]})})]})]});t.args={end:!0};var m,p,i;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`args => { +import{j as e,a as o}from"./tw-merge-0a3648bd.js";import{D as r}from"./index-abb70d26.js";import{C as c}from"./index-3c968524.js";import{N as l}from"./index-1e3c83a2.js";import{B as y}from"./Button-e9ac0f78.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const A={title:"Actions/Dropdown",component:r,argTypes:{item:{control:!1}}},s=n=>e("div",{className:"my-32",children:o(r,{...n,children:[e(r.Toggle,{children:"Click"}),o(r.Menu,{className:"w-52",children:[e(r.Item,{children:"Item 1"}),e(r.Item,{children:"Item 2"})]})]})}),d=n=>e("div",{className:"my-32",children:o(r,{...n,children:[e(r.Toggle,{children:"Click"}),e(r.Menu,{className:"card card-compact w-64 p-2 shadow bg-primary text-primary-content m-1",children:o(c.Body,{children:[e(c.Title,{tag:"h3",children:"Card title!"}),e("p",{children:"you can use any element as a dropdown."})]})})]})}),a=({dataTheme:n,...v})=>o(l,{className:"my-32 px-2 font-sans bg-base-300 rounded-box",dataTheme:n,children:[e(l.Start,{className:"px-2 lg:flex-none",children:e("span",{className:"text-lg font-bold",children:"daisyUI"})}),o(l.End,{children:[e(y,{color:"ghost",dataTheme:n,children:"Button"}),o(r,{...v,dataTheme:n,children:[e(r.Toggle,{className:"btn btn-ghost rounded-btn",button:!1,children:"Dropdown"}),o(r.Menu,{className:"w-52 mt-4",children:[e(r.Item,{children:"Item 1"}),e(r.Item,{children:"Item 2"})]})]})]})]});a.args={end:!0};const t=n=>o("div",{className:"my-32 font-sans",children:["A normal text and a helper dropdown",o(r,{...n,children:[e(r.Toggle,{button:!1,className:"btn btn-circle btn-ghost btn-xs text-info",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e(r.Menu,{className:"card compact w-64 !p-0 shadow bg-base-100 rounded-box",children:o(c.Body,{children:[e(c.Title,{tag:"h2",children:"You needed more info?"}),e("p",{children:"Here is a description!"})]})})]})]});t.args={end:!0};var m,p,i;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`args => { return
    Click @@ -61,4 +61,3 @@ import{a as e,j as o}from"./tw-merge-fe695a60.js";import{D as r}from"./index-98a
    ; }`,...(f=(x=t.parameters)==null?void 0:x.docs)==null?void 0:f.source}}};const E=["Default","AsCard","InNavbar","Helper"];export{d as AsCard,s as Default,t as Helper,a as InNavbar,E as __namedExportsOrder,A as default}; -//# sourceMappingURL=Dropdown.stories-5c29f240.js.map diff --git a/docs/assets/DropdownDetails.stories-3cb1d73f.js.map b/docs/assets/DropdownDetails.stories-3cb1d73f.js.map deleted file mode 100644 index 4e704a64..00000000 --- a/docs/assets/DropdownDetails.stories-3cb1d73f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DropdownDetails.stories-3cb1d73f.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/DropdownDetails.stories-3cb1d73f.js b/docs/assets/DropdownDetails.stories-cfa84896.js similarity index 72% rename from docs/assets/DropdownDetails.stories-3cb1d73f.js rename to docs/assets/DropdownDetails.stories-cfa84896.js index 202263cb..413a79e2 100644 --- a/docs/assets/DropdownDetails.stories-3cb1d73f.js +++ b/docs/assets/DropdownDetails.stories-cfa84896.js @@ -1,4 +1,4 @@ -import{a as r,j as t}from"./tw-merge-fe695a60.js";import{D as e}from"./index-98a30f4c.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./Button-28269a3e.js";import"./index-357fb5a8.js";const w={title:"Actions/Dropdown/Details",component:e.Details},o=i=>r("div",{className:"my-32",children:t(e.Details,{...i,children:[r(e.Details.Toggle,{children:"Click"}),t(e.Menu,{className:"w-52",children:[r(e.Item,{children:"Item 1"}),r(e.Item,{children:"Item 2"})]})]})});o.args={};var s,n,a;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:`args => { +import{j as r,a as t}from"./tw-merge-0a3648bd.js";import{D as e}from"./index-abb70d26.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./Button-e9ac0f78.js";import"./index-a55c3a76.js";const w={title:"Actions/Dropdown/Details",component:e.Details},o=i=>r("div",{className:"my-32",children:t(e.Details,{...i,children:[r(e.Details.Toggle,{children:"Click"}),t(e.Menu,{className:"w-52",children:[r(e.Item,{children:"Item 1"}),r(e.Item,{children:"Item 2"})]})]})});o.args={};var s,n,a;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:`args => { return
    Click @@ -9,4 +9,3 @@ import{a as r,j as t}from"./tw-merge-fe695a60.js";import{D as e}from"./index-98a
    ; }`,...(a=(n=o.parameters)==null?void 0:n.docs)==null?void 0:a.source}}};const u=["Default"];export{o as Default,u as __namedExportsOrder,w as default}; -//# sourceMappingURL=DropdownDetails.stories-3cb1d73f.js.map diff --git a/docs/assets/FileInput.stories-1eefb1aa.js b/docs/assets/FileInput.stories-1eefb1aa.js deleted file mode 100644 index 5fa9cafd..00000000 --- a/docs/assets/FileInput.stories-1eefb1aa.js +++ /dev/null @@ -1,36 +0,0 @@ -import{t as q,a,j as o}from"./tw-merge-fe695a60.js";import{c as S}from"./clsx.m-1229b3e0.js";import{r as V}from"./index-ebeaab24.js";const p=V.forwardRef(({className:e,size:c,color:s,bordered:h,dataTheme:w,..._},z)=>{const A=q("file-input",e,S({"file-input-lg":c==="lg","file-input-md":c==="md","file-input-sm":c==="sm","file-input-xs":c==="xs","file-input-primary":s==="primary","file-input-secondary":s==="secondary","file-input-accent":s==="accent","file-input-ghost":s==="ghost","file-input-info":s==="info","file-input-success":s==="success","file-input-warning":s==="warning","file-input-error":s==="error","file-input-bordered":h}));return a("input",{..._,ref:z,type:"file","data-theme":w,className:A})});p.displayName="FileInput";const l=p;try{p.displayName="FileInput",p.__docgenInfo={description:"",displayName:"FileInput",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}},bordered:{defaultValue:null,description:"",name:"bordered",required:!1,type:{name:"boolean"}}}}}catch{}try{l.displayName="FileInput",l.__docgenInfo={description:"",displayName:"FileInput",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}},bordered:{defaultValue:null,description:"",name:"bordered",required:!1,type:{name:"boolean"}}}}}catch{}const k={title:"Data Input/FileInput",component:l,args:{className:"w-full max-w-xs",disabled:!1}},j=e=>a(l,{...e}),r=j.bind({});r.args={};const n=e=>o("div",{className:"w-full flex flex-col gap-2",children:[a(l,{...e,color:"primary"}),a(l,{...e,color:"secondary"}),a(l,{...e,color:"accent"}),a(l,{...e,color:"ghost"}),a(l,{...e,color:"info"}),a(l,{...e,color:"success"}),a(l,{...e,color:"warning"}),a(l,{...e,color:"error"})]});n.args={};const t=e=>o("div",{className:"flex flex-col gap-4 w-full items-center",children:[a(l,{...e,size:"xs"}),a(l,{...e,size:"sm"}),a(l,{...e,size:"md"}),a(l,{...e,size:"lg"})]});t.args={};const i=e=>a("div",{className:"flex w-full component-preview p-4 items-center justify-center gap-2 font-sans",children:o("div",{className:"form-control w-full max-w-xs",children:[o("label",{className:"label",children:[a("span",{className:"label-text",children:"Pick a file"}),a("span",{className:"label-text-alt",children:"Alt label"})]}),a(l,{...e}),o("label",{className:"label",children:[a("span",{className:"label-text-alt",children:"Alt label"}),a("span",{className:"label-text-alt",children:"Alt label"})]})]})});i.args={};var u,m,d;r.parameters={...r.parameters,docs:{...(u=r.parameters)==null?void 0:u.docs,source:{originalSource:`args => { - return ; -}`,...(d=(m=r.parameters)==null?void 0:m.docs)==null?void 0:d.source}}};var f,g,x;n.parameters={...n.parameters,docs:{...(f=n.parameters)==null?void 0:f.docs,source:{originalSource:`args => { - return
    - - - - - - - - -
    ; -}`,...(x=(g=n.parameters)==null?void 0:g.docs)==null?void 0:x.source}}};var b,N,y;t.parameters={...t.parameters,docs:{...(b=t.parameters)==null?void 0:b.docs,source:{originalSource:`args => { - return
    - - - - -
    ; -}`,...(y=(N=t.parameters)==null?void 0:N.docs)==null?void 0:y.source}}};var I,F,v;i.parameters={...i.parameters,docs:{...(I=i.parameters)==null?void 0:I.docs,source:{originalSource:`args => { - return
    -
    - - - -
    -
    ; -}`,...(v=(F=i.parameters)==null?void 0:F.docs)==null?void 0:v.source}}};const E=["Default","Colors","Sizes","FormControlAndLabels"];export{n as Colors,r as Default,i as FormControlAndLabels,t as Sizes,E as __namedExportsOrder,k as default}; -//# sourceMappingURL=FileInput.stories-1eefb1aa.js.map diff --git a/docs/assets/FileInput.stories-1eefb1aa.js.map b/docs/assets/FileInput.stories-1eefb1aa.js.map deleted file mode 100644 index 56675c99..00000000 --- a/docs/assets/FileInput.stories-1eefb1aa.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileInput.stories-1eefb1aa.js","sources":["../../src/FileInput/FileInput.tsx"],"sourcesContent":["import clsx from 'clsx'\nimport React, { forwardRef } from 'react'\nimport { twMerge } from 'tailwind-merge'\nimport { ComponentColor, ComponentSize, IComponentBaseProps } from '../types'\n\nexport type FileInputProps = Omit<\n React.InputHTMLAttributes,\n 'size'\n> &\n IComponentBaseProps & {\n size?: ComponentSize\n color?: ComponentColor\n bordered?: boolean\n }\n\nconst FileInput = forwardRef(\n (\n { className, size, color, bordered, dataTheme, ...props },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n 'file-input',\n className,\n clsx({\n 'file-input-lg': size === 'lg',\n 'file-input-md': size === 'md',\n 'file-input-sm': size === 'sm',\n 'file-input-xs': size === 'xs',\n 'file-input-primary': color === 'primary',\n 'file-input-secondary': color === 'secondary',\n 'file-input-accent': color === 'accent',\n 'file-input-ghost': color === 'ghost',\n 'file-input-info': color === 'info',\n 'file-input-success': color === 'success',\n 'file-input-warning': color === 'warning',\n 'file-input-error': color === 'error',\n 'file-input-bordered': bordered,\n })\n )\n return (\n \n )\n }\n)\n\nFileInput.displayName = 'FileInput'\n\nexport default FileInput\n"],"names":["FileInput","forwardRef","className","size","color","bordered","dataTheme","props","ref","classes","twMerge","clsx","jsx","FileInput$1"],"mappings":"qIAeA,MAAAA,EAAAC,EAAA,WAAkB,CAAA,CAAA,UAAAC,EAAA,KAAAC,EAAA,MAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAKd,MAAAC,EAAAC,EAAgB,aACdR,EACAS,EAAA,CACK,gBAAAR,IAAA,KACuB,gBAAAA,IAAA,KACA,gBAAAA,IAAA,KACA,gBAAAA,IAAA,KACA,qBAAAC,IAAA,UACM,uBAAAA,IAAA,YACE,oBAAAA,IAAA,SACH,mBAAAA,IAAA,QACD,kBAAAA,IAAA,OACD,qBAAAA,IAAA,UACG,qBAAAA,IAAA,UACA,mBAAAA,IAAA,QACF,sBAAAC,CACP,CAAA,CACxB,EAEH,OAAAO,EACE,QAAC,CAAA,GAAAL,EACK,IAAAC,EACJ,KAAA,OACK,aAAAF,EACO,UAAAG,CACD,CAAA,CACb,CAGN,EAEAT,EAAA,YAAA,YAEA,MAAAa,EAAAb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/FileInput.stories-3482d76d.js b/docs/assets/FileInput.stories-3482d76d.js new file mode 100644 index 00000000..f0656af0 --- /dev/null +++ b/docs/assets/FileInput.stories-3482d76d.js @@ -0,0 +1,35 @@ +import{t as q,j as a,a as o}from"./tw-merge-0a3648bd.js";import{c as S}from"./clsx.m-1229b3e0.js";import{r as V}from"./index-1b03fe98.js";const p=V.forwardRef(({className:e,size:c,color:s,bordered:h,dataTheme:w,..._},z)=>{const A=q("file-input",e,S({"file-input-lg":c==="lg","file-input-md":c==="md","file-input-sm":c==="sm","file-input-xs":c==="xs","file-input-primary":s==="primary","file-input-secondary":s==="secondary","file-input-accent":s==="accent","file-input-ghost":s==="ghost","file-input-info":s==="info","file-input-success":s==="success","file-input-warning":s==="warning","file-input-error":s==="error","file-input-bordered":h}));return a("input",{..._,ref:z,type:"file","data-theme":w,className:A})});p.displayName="FileInput";const l=p;try{p.displayName="FileInput",p.__docgenInfo={description:"",displayName:"FileInput",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}},bordered:{defaultValue:null,description:"",name:"bordered",required:!1,type:{name:"boolean"}}}}}catch{}try{l.displayName="FileInput",l.__docgenInfo={description:"",displayName:"FileInput",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}},bordered:{defaultValue:null,description:"",name:"bordered",required:!1,type:{name:"boolean"}}}}}catch{}const k={title:"Data Input/FileInput",component:l,args:{className:"w-full max-w-xs",disabled:!1}},j=e=>a(l,{...e}),r=j.bind({});r.args={};const n=e=>o("div",{className:"w-full flex flex-col gap-2",children:[a(l,{...e,color:"primary"}),a(l,{...e,color:"secondary"}),a(l,{...e,color:"accent"}),a(l,{...e,color:"ghost"}),a(l,{...e,color:"info"}),a(l,{...e,color:"success"}),a(l,{...e,color:"warning"}),a(l,{...e,color:"error"})]});n.args={};const t=e=>o("div",{className:"flex flex-col gap-4 w-full items-center",children:[a(l,{...e,size:"xs"}),a(l,{...e,size:"sm"}),a(l,{...e,size:"md"}),a(l,{...e,size:"lg"})]});t.args={};const i=e=>a("div",{className:"flex w-full component-preview p-4 items-center justify-center gap-2 font-sans",children:o("div",{className:"form-control w-full max-w-xs",children:[o("label",{className:"label",children:[a("span",{className:"label-text",children:"Pick a file"}),a("span",{className:"label-text-alt",children:"Alt label"})]}),a(l,{...e}),o("label",{className:"label",children:[a("span",{className:"label-text-alt",children:"Alt label"}),a("span",{className:"label-text-alt",children:"Alt label"})]})]})});i.args={};var u,m,d;r.parameters={...r.parameters,docs:{...(u=r.parameters)==null?void 0:u.docs,source:{originalSource:`args => { + return ; +}`,...(d=(m=r.parameters)==null?void 0:m.docs)==null?void 0:d.source}}};var f,g,x;n.parameters={...n.parameters,docs:{...(f=n.parameters)==null?void 0:f.docs,source:{originalSource:`args => { + return
    + + + + + + + + +
    ; +}`,...(x=(g=n.parameters)==null?void 0:g.docs)==null?void 0:x.source}}};var b,N,y;t.parameters={...t.parameters,docs:{...(b=t.parameters)==null?void 0:b.docs,source:{originalSource:`args => { + return
    + + + + +
    ; +}`,...(y=(N=t.parameters)==null?void 0:N.docs)==null?void 0:y.source}}};var I,F,v;i.parameters={...i.parameters,docs:{...(I=i.parameters)==null?void 0:I.docs,source:{originalSource:`args => { + return
    +
    + + + +
    +
    ; +}`,...(v=(F=i.parameters)==null?void 0:F.docs)==null?void 0:v.source}}};const E=["Default","Colors","Sizes","FormControlAndLabels"];export{n as Colors,r as Default,i as FormControlAndLabels,t as Sizes,E as __namedExportsOrder,k as default}; diff --git a/docs/assets/Footer.stories-78425f9b.js b/docs/assets/Footer.stories-1abc7582.js similarity index 98% rename from docs/assets/Footer.stories-78425f9b.js rename to docs/assets/Footer.stories-1abc7582.js index dc5bf77e..1df92404 100644 --- a/docs/assets/Footer.stories-78425f9b.js +++ b/docs/assets/Footer.stories-1abc7582.js @@ -1,4 +1,4 @@ -import{t as C,a as e,j as n}from"./tw-merge-fe695a60.js";import{R as _}from"./index-ebeaab24.js";import{c as P}from"./clsx.m-1229b3e0.js";const h=_.forwardRef(({className:a,...t},c)=>{const d=C("footer-title",a);return e("span",{...t,className:d,ref:c})}),M=h;try{h.displayName="FooterTitle",h.__docgenInfo={description:"",displayName:"FooterTitle",props:{}}}catch{}const k=_.forwardRef(({center:a,dataTheme:t,className:c,...d},A)=>{const L=C("footer",c,P({"footer-center":a}));return e("div",{role:"contentinfo",...d,"data-theme":t,className:L,ref:A})}),l=Object.assign(k,{Title:M});try{k.displayName="Footer",k.__docgenInfo={description:"",displayName:"Footer",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},center:{defaultValue:null,description:"",name:"center",required:!1,type:{name:"boolean"}}}}}catch{}try{l.displayName="Footer",l.__docgenInfo={description:"",displayName:"Footer",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},center:{defaultValue:null,description:"",name:"center",required:!1,type:{name:"boolean"}}}}}catch{}const D={title:"Layout/Footer",component:l},x=a=>n(l,{className:"p-10 bg-neutral text-neutral-content",...a,children:[n("div",{children:[e(l.Title,{children:"Services"}),e("a",{className:"link link-hover",children:"Branding"}),e("a",{className:"link link-hover",children:"Design"}),e("a",{className:"link link-hover",children:"Marketing"}),e("a",{className:"link link-hover",children:"Advertisement"})]}),n("div",{children:[e(l.Title,{children:"Company"}),e("a",{className:"link link-hover",children:"About us"}),e("a",{className:"link link-hover",children:"Contact"}),e("a",{className:"link link-hover",children:"Jobs"}),e("a",{className:"link link-hover",children:"Press kit"})]}),n("div",{children:[e(l.Title,{children:"Legal"}),e("a",{className:"link link-hover",children:"Terms of use"}),e("a",{className:"link link-hover",children:"Privacy policy"}),e("a",{className:"link link-hover",children:"Cookie policy"})]})]}),i=x.bind({});i.args={};const r=x.bind({});r.args={center:!0};const s=a=>n(l,{className:"p-10 bg-neutral text-neutral-content",...a,children:[n("div",{children:[e("svg",{width:"50",height:"50",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",className:"fill-current",children:e("path",{d:"M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"})}),n("p",{children:["ACME Industries Ltd.",e("br",{}),"Providing reliable tech since 1992"]})]}),n("div",{children:[e(l.Title,{children:"Services"}),e("a",{className:"link link-hover",children:"Branding"}),e("a",{className:"link link-hover",children:"Design"}),e("a",{className:"link link-hover",children:"Marketing"}),e("a",{className:"link link-hover",children:"Advertisement"})]}),n("div",{children:[e(l.Title,{children:"Company"}),e("a",{className:"link link-hover",children:"About us"}),e("a",{className:"link link-hover",children:"Contact"}),e("a",{className:"link link-hover",children:"Jobs"}),e("a",{className:"link link-hover",children:"Press kit"})]}),n("div",{children:[e(l.Title,{children:"Legal"}),e("a",{className:"link link-hover",children:"Terms of use"}),e("a",{className:"link link-hover",children:"Privacy policy"}),e("a",{className:"link link-hover",children:"Cookie policy"})]})]}),o=a=>n(l,{className:"p-10 bg-primary text-secondary-content",...a,children:[n("div",{children:[e("svg",{width:"50",height:"50",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",className:"fill-current",children:e("path",{d:"M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"})}),n("p",{children:["ACME Industries Ltd.",e("br",{}),"Providing reliable tech since 1992"]})]}),n("div",{children:[e(l.Title,{children:"Services"}),e("a",{className:"link link-hover",children:"Branding"}),e("a",{className:"link link-hover",children:"Design"}),e("a",{className:"link link-hover",children:"Marketing"}),e("a",{className:"link link-hover",children:"Advertisement"})]}),n("div",{children:[e(l.Title,{children:"Company"}),e("a",{className:"link link-hover",children:"About us"}),e("a",{className:"link link-hover",children:"Contact"}),e("a",{className:"link link-hover",children:"Jobs"}),e("a",{className:"link link-hover",children:"Press kit"})]}),n("div",{children:[e(l.Title,{children:"Legal"}),e("a",{className:"link link-hover",children:"Terms of use"}),e("a",{className:"link link-hover",children:"Privacy policy"}),e("a",{className:"link link-hover",children:"Cookie policy"})]})]});var m,v,p;i.parameters={...i.parameters,docs:{...(m=i.parameters)==null?void 0:m.docs,source:{originalSource:`args => { +import{t as C,j as e,a as n}from"./tw-merge-0a3648bd.js";import{R as _}from"./index-1b03fe98.js";import{c as P}from"./clsx.m-1229b3e0.js";const h=_.forwardRef(({className:a,...t},c)=>{const d=C("footer-title",a);return e("span",{...t,className:d,ref:c})}),M=h;try{h.displayName="FooterTitle",h.__docgenInfo={description:"",displayName:"FooterTitle",props:{}}}catch{}const k=_.forwardRef(({center:a,dataTheme:t,className:c,...d},A)=>{const L=C("footer",c,P({"footer-center":a}));return e("div",{role:"contentinfo",...d,"data-theme":t,className:L,ref:A})}),l=Object.assign(k,{Title:M});try{k.displayName="Footer",k.__docgenInfo={description:"",displayName:"Footer",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},center:{defaultValue:null,description:"",name:"center",required:!1,type:{name:"boolean"}}}}}catch{}try{l.displayName="Footer",l.__docgenInfo={description:"",displayName:"Footer",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},center:{defaultValue:null,description:"",name:"center",required:!1,type:{name:"boolean"}}}}}catch{}const D={title:"Layout/Footer",component:l},x=a=>n(l,{className:"p-10 bg-neutral text-neutral-content",...a,children:[n("div",{children:[e(l.Title,{children:"Services"}),e("a",{className:"link link-hover",children:"Branding"}),e("a",{className:"link link-hover",children:"Design"}),e("a",{className:"link link-hover",children:"Marketing"}),e("a",{className:"link link-hover",children:"Advertisement"})]}),n("div",{children:[e(l.Title,{children:"Company"}),e("a",{className:"link link-hover",children:"About us"}),e("a",{className:"link link-hover",children:"Contact"}),e("a",{className:"link link-hover",children:"Jobs"}),e("a",{className:"link link-hover",children:"Press kit"})]}),n("div",{children:[e(l.Title,{children:"Legal"}),e("a",{className:"link link-hover",children:"Terms of use"}),e("a",{className:"link link-hover",children:"Privacy policy"}),e("a",{className:"link link-hover",children:"Cookie policy"})]})]}),i=x.bind({});i.args={};const r=x.bind({});r.args={center:!0};const s=a=>n(l,{className:"p-10 bg-neutral text-neutral-content",...a,children:[n("div",{children:[e("svg",{width:"50",height:"50",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",className:"fill-current",children:e("path",{d:"M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"})}),n("p",{children:["ACME Industries Ltd.",e("br",{}),"Providing reliable tech since 1992"]})]}),n("div",{children:[e(l.Title,{children:"Services"}),e("a",{className:"link link-hover",children:"Branding"}),e("a",{className:"link link-hover",children:"Design"}),e("a",{className:"link link-hover",children:"Marketing"}),e("a",{className:"link link-hover",children:"Advertisement"})]}),n("div",{children:[e(l.Title,{children:"Company"}),e("a",{className:"link link-hover",children:"About us"}),e("a",{className:"link link-hover",children:"Contact"}),e("a",{className:"link link-hover",children:"Jobs"}),e("a",{className:"link link-hover",children:"Press kit"})]}),n("div",{children:[e(l.Title,{children:"Legal"}),e("a",{className:"link link-hover",children:"Terms of use"}),e("a",{className:"link link-hover",children:"Privacy policy"}),e("a",{className:"link link-hover",children:"Cookie policy"})]})]}),o=a=>n(l,{className:"p-10 bg-primary text-secondary-content",...a,children:[n("div",{children:[e("svg",{width:"50",height:"50",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",className:"fill-current",children:e("path",{d:"M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"})}),n("p",{children:["ACME Industries Ltd.",e("br",{}),"Providing reliable tech since 1992"]})]}),n("div",{children:[e(l.Title,{children:"Services"}),e("a",{className:"link link-hover",children:"Branding"}),e("a",{className:"link link-hover",children:"Design"}),e("a",{className:"link link-hover",children:"Marketing"}),e("a",{className:"link link-hover",children:"Advertisement"})]}),n("div",{children:[e(l.Title,{children:"Company"}),e("a",{className:"link link-hover",children:"About us"}),e("a",{className:"link link-hover",children:"Contact"}),e("a",{className:"link link-hover",children:"Jobs"}),e("a",{className:"link link-hover",children:"Press kit"})]}),n("div",{children:[e(l.Title,{children:"Legal"}),e("a",{className:"link link-hover",children:"Terms of use"}),e("a",{className:"link link-hover",children:"Privacy policy"}),e("a",{className:"link link-hover",children:"Cookie policy"})]})]});var m,v,p;i.parameters={...i.parameters,docs:{...(m=i.parameters)==null?void 0:m.docs,source:{originalSource:`args => { return
    Services @@ -113,4 +113,3 @@ import{t as C,a as e,j as n}from"./tw-merge-fe695a60.js";import{R as _}from"./in
    ; }`,...(w=(b=o.parameters)==null?void 0:b.docs)==null?void 0:w.source}}};const I=["Default","Centered","WithLogo","WithLogoAndLightBackground"];export{r as Centered,i as Default,s as WithLogo,o as WithLogoAndLightBackground,I as __namedExportsOrder,D as default}; -//# sourceMappingURL=Footer.stories-78425f9b.js.map diff --git a/docs/assets/Footer.stories-78425f9b.js.map b/docs/assets/Footer.stories-78425f9b.js.map deleted file mode 100644 index f8f8c477..00000000 --- a/docs/assets/Footer.stories-78425f9b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Footer.stories-78425f9b.js","sources":["../../src/Footer/FooterTitle.tsx","../../src/Footer/Footer.tsx"],"sourcesContent":["import React from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nexport type FooterTitleProps = React.HTMLAttributes\n\nconst FooterTitle = React.forwardRef(\n ({ className, ...props }, ref) => {\n const classes = twMerge('footer-title', className)\n\n return \n }\n)\n\nexport default FooterTitle\n","import React from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nimport FooterTitle from './FooterTitle'\n\nexport type FooterProps = React.HTMLAttributes &\n IComponentBaseProps & {\n center?: boolean\n }\n\nconst Footer = React.forwardRef(\n ({ center, dataTheme, className, ...props }, ref) => {\n const classes = twMerge(\n 'footer',\n className,\n clsx({\n 'footer-center': center,\n })\n )\n\n return (\n \n )\n }\n)\n\nexport default Object.assign(Footer, { Title: FooterTitle })\n"],"names":["FooterTitle","React","className","props","ref","classes","twMerge","jsx","FooterTitle$1","Footer","center","dataTheme","clsx","Footer$1"],"mappings":"0IAKA,MAAAA,EAAAC,EAAA,WAA0B,CAAA,CAAA,UAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAEtB,MAAAC,EAAAC,EAAA,eAAAJ,CAAA,EAEA,OAAAK,EAAA,OAAA,CAAA,GAAAJ,EAAA,UAAAE,EAAA,IAAAD,CAAA,CAAA,CAAsD,CAE1D,EAEAI,EAAAR,4GCAA,MAAAS,EAAAR,EAAA,WAAqB,CAAA,CAAA,OAAAS,EAAA,UAAAC,EAAA,UAAAT,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAEjB,MAAAC,EAAAC,EAAgB,SACdJ,EACAU,EAAA,CACK,gBAAAF,CACc,CAAA,CAClB,EAGH,OAAAH,EACE,MAAC,CAAA,KAAA,cACM,GAAAJ,EACD,aAAAQ,EACQ,UAAAN,EACD,IAAAD,CACX,CAAA,CACF,CAGN,EAEAS,EAAA,OAAA,OAAAJ,EAAA,CAAA,MAAAT,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js b/docs/assets/GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js deleted file mode 100644 index a1980bab..00000000 --- a/docs/assets/GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js +++ /dev/null @@ -1,8 +0,0 @@ -import{R as o}from"./index-ebeaab24.js";import{G as s}from"./index-9e101d18.js";import"./iframe-4b2e3517.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./index-073301bc.js";import"./index-356e4a49.js";var a=r=>({".os-size-observer,\n.os-size-observer-listener":{direction:"inherit",pointerEvents:"none",overflow:"hidden",visibility:"hidden",boxSizing:"border-box"},".os-size-observer,\n.os-size-observer-listener,\n.os-size-observer-listener-item,\n.os-size-observer-listener-item-final":{writingMode:"horizontal-tb",position:"absolute",left:"0",top:"0"},".os-size-observer":{zIndex:-1,contain:"strict",display:"flex",flexDirection:"row",flexWrap:"nowrap",padding:"inherit",border:"inherit",boxSizing:"inherit",margin:"-133px",top:"0",right:"0",bottom:"0",left:"0",transform:"scale(0.1)"},".os-size-observer::before":{content:'""',flex:"none",boxSizing:"inherit",padding:"10px",width:"10px",height:"10px"},".os-size-observer-appear":{animation:"os-size-observer-appear-animation 1ms forwards"},".os-size-observer-listener":{boxSizing:"border-box",position:"relative",flex:"auto",padding:"inherit",border:"inherit",margin:"-133px",transform:"scale(10)"},".os-size-observer-listener.ltr":{marginRight:"-266px",marginLeft:"0"},".os-size-observer-listener.rtl":{marginLeft:"-266px",marginRight:"0"},".os-size-observer-listener:empty::before":{content:'""',width:"100%",height:"100%"},".os-size-observer-listener:empty::before, .os-size-observer-listener > .os-size-observer-listener-item":{display:"block",position:"relative",padding:"inherit",border:"inherit",boxSizing:"content-box",flex:"auto"},".os-size-observer-listener-scroll":{boxSizing:"border-box",display:"flex"},".os-size-observer-listener-item":{right:"0",bottom:"0",overflow:"hidden",direction:"ltr",flex:"none"},".os-size-observer-listener-item-final":{transition:"none"},"@keyframes os-size-observer-appear-animation":{from:{cursor:"auto"},to:{cursor:"none"}},".os-trinsic-observer":{flex:"none",boxSizing:"border-box",position:"relative",maxWidth:"0px",maxHeight:"1px",padding:"0",margin:"0",border:"none",overflow:"hidden",zIndex:-1,height:"0",top:"calc(100% + 1px)",contain:"strict"},".os-trinsic-observer:not(:empty)":{height:"calc(100% + 1px)",top:"-1px"},".os-trinsic-observer:not(:empty) > .os-size-observer":{width:"1000%",height:"1000%",minHeight:"1px",minWidth:"1px"},".os-environment":{"--os-custom-prop":"-1",position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:"200px",width:"200px",zIndex:"var(--os-custom-prop)"},".os-environment div":{width:"200%",height:"200%",margin:"10px 0"},".os-environment.os-environment-flexbox-glue":{display:"flex",flexDirection:"row",flexWrap:"nowrap",height:"auto",width:"auto",minHeight:"200px",minWidth:"200px"},".os-environment.os-environment-flexbox-glue div":{flex:"auto",width:"auto",height:"auto",maxHeight:"100%",maxWidth:"100%",margin:"0"},".os-environment.os-environment-flexbox-glue-max":{maxHeight:"200px"},".os-environment.os-environment-flexbox-glue-max div":{overflow:"visible"},".os-environment.os-environment-flexbox-glue-max div::before":{content:'""',display:"block",height:"999px",width:"999px"},".os-environment,\n[data-overlayscrollbars-viewport]":{msOverflowStyle:"scrollbar !important"},"[data-overlayscrollbars-initialize],\n[data-overlayscrollbars~=scrollbarHidden],\n[data-overlayscrollbars-viewport~=scrollbarHidden],\n.os-scrollbar-hidden.os-environment":{scrollbarWidth:"none !important"},"[data-overlayscrollbars-initialize]::-webkit-scrollbar,\n[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar,\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner":{WebkitAppearance:"none !important",appearance:"none !important",display:"none !important",width:"0 !important",height:"0 !important"},"[data-overlayscrollbars-initialize]":{overflow:"auto"},"html[data-overlayscrollbars],\nhtml.os-scrollbar-hidden,\nhtml.os-scrollbar-hidden > body":{boxSizing:"border-box",margin:"0",width:"100%",height:"100%"},"html[data-overlayscrollbars] > body":{overflow:"visible"},"[data-overlayscrollbars~=host]":{position:"relative"},"[data-overlayscrollbars~=host],\n[data-overlayscrollbars-padding]":{display:"flex",flexDirection:"row !important",flexWrap:"nowrap !important"},"[data-overlayscrollbars-padding],\n[data-overlayscrollbars-viewport]":{boxSizing:"inherit",position:"relative",flex:"auto !important",height:"auto",width:"100%",padding:"0",margin:"0",border:"none",zIndex:0,overflow:"hidden"},"[data-overlayscrollbars-viewport]":{"--os-vaw":"0","--os-vah":"0"},"[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before":{content:'""',position:"absolute",pointerEvents:"none",zIndex:-1,minWidth:"1px",minHeight:"1px",width:"var(--os-vaw)",height:"var(--os-vah)"},"[data-overlayscrollbars~=host],\n[data-overlayscrollbars~=viewport]":{overflow:"hidden"},"[data-overlayscrollbars~=overflowVisible],\n[data-overlayscrollbars-padding~=overflowVisible],\n[data-overlayscrollbars-viewport~=overflowVisible]":{overflow:"visible"},"[data-overlayscrollbars-overflow-x=hidden]":{overflowX:"hidden",overflowY:"hidden"},"[data-overlayscrollbars-overflow-x=scroll]":{overflowX:"scroll"},"[data-overlayscrollbars-overflow-y=scroll]":{overflowY:"scroll"},"[data-overlayscrollbars~=scrollbarPressed],\n[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]":{scrollBehavior:"auto !important"},"[data-overlayscrollbars-content]":{boxSizing:"inherit"},"[data-overlayscrollbars-grid],\n[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]":{display:"grid",gridTemplate:"1fr/1fr"},"[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding],\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-viewport],\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding] > [data-overlayscrollbars-viewport]":{height:"auto !important",width:"auto !important"},".os-scrollbar":{contain:["size layout","size layout style"],transition:"opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s",pointerEvents:"none",position:"absolute",opacity:0,visibility:"hidden","--os-size":"0","--os-padding-perpendicular":"0","--os-padding-axis":"0","--os-track-border-radius":"0","--os-track-bg":"none","--os-track-bg-hover":"none","--os-track-bg-active":"none","--os-track-border":"none","--os-track-border-hover":"none","--os-track-border-active":"none","--os-handle-border-radius":"0","--os-handle-bg":"none","--os-handle-bg-hover":"none","--os-handle-bg-active":"none","--os-handle-border":"none","--os-handle-border-hover":"none","--os-handle-border-active":"none","--os-handle-min-size":"33px","--os-handle-max-size":"none","--os-handle-perpendicular-size":"100%","--os-handle-perpendicular-size-hover":"100%","--os-handle-perpendicular-size-active":"100%","--os-handle-interactive-area-offset":"0"},"body > .os-scrollbar":{position:"fixed",zIndex:99999},".os-scrollbar-transitionless":{transition:"none"},".os-scrollbar-track":{position:"relative",direction:"ltr !important",padding:"0 !important",border:"none !important"},".os-scrollbar-handle":{position:"absolute"},".os-scrollbar-track,\n.os-scrollbar-handle":{pointerEvents:"none",width:"100%",height:"100%"},".os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,\n.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle":{pointerEvents:"auto",touchAction:"none"},".os-scrollbar-horizontal":{bottom:"0",left:"0",padding:"var(--os-padding-perpendicular) var(--os-padding-axis)",right:"var(--os-size)",height:"var(--os-size)"},".os-scrollbar-vertical":{top:"0",right:"0",padding:"var(--os-padding-axis) var(--os-padding-perpendicular)",bottom:"var(--os-size)",width:"var(--os-size)"},".os-scrollbar-rtl.os-scrollbar-horizontal":{right:"0"},".os-scrollbar-rtl.os-scrollbar-vertical":{right:"auto",left:"0"},".os-scrollbar-visible,\n.os-scrollbar-interaction.os-scrollbar-visible":{opacity:1,visibility:"visible"},".os-scrollbar-auto-hidden":{opacity:0,visibility:"hidden"},".os-scrollbar-unusable,\n.os-scrollbar-unusable *,\n.os-scrollbar-wheel,\n.os-scrollbar-wheel *":{pointerEvents:"none !important"},".os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0 !important"},".os-scrollbar-horizontal .os-scrollbar-handle":{bottom:"0",minWidth:"var(--os-handle-min-size)",maxWidth:"var(--os-handle-max-size)",height:"var(--os-handle-perpendicular-size)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s"},".os-scrollbar-vertical .os-scrollbar-handle":{right:"0",minHeight:"var(--os-handle-min-size)",maxHeight:"var(--os-handle-max-size)",width:"var(--os-handle-perpendicular-size)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s"},".os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle":{right:"auto",left:"0"},".os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,\n.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl":{left:"0",right:"0"},".os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,\n.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl":{top:"0",bottom:"0"},".os-scrollbar .os-scrollbar-track":{border:"var(--os-track-border)",borderRadius:"var(--os-track-border-radius)",background:"var(--os-track-bg)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s"},".os-scrollbar .os-scrollbar-track:hover":{border:"var(--os-track-border-hover)",background:"var(--os-track-bg-hover)"},".os-scrollbar .os-scrollbar-track:active":{border:"var(--os-track-border-active)",background:"var(--os-track-bg-active)"},".os-scrollbar .os-scrollbar-handle":{border:"var(--os-handle-border)",borderRadius:"var(--os-handle-border-radius)",background:r.textMutedColor,opacity:.5},".os-scrollbar .os-scrollbar-handle:before":{content:'""',position:"absolute",left:"0",right:"0",top:"0",bottom:"0",display:"block"},".os-scrollbar .os-scrollbar-handle:hover":{border:"var(--os-handle-border-hover)",opacity:.6},".os-scrollbar .os-scrollbar-handle:active":{border:"var(--os-handle-border-active)",background:"var(--os-handle-bg-active)"},".os-scrollbar-horizontal.os-scrollbar-rtl":{left:"var(--os-size)",right:"0"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",bottom:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-horizontal:hover .os-scrollbar-handle":{height:"var(--os-handle-perpendicular-size-hover)"},".os-scrollbar-horizontal:active .os-scrollbar-handle":{height:"var(--os-handle-perpendicular-size-active)"},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",right:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before":{right:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",left:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-vertical:hover .os-scrollbar-handle":{width:"var(--os-handle-perpendicular-size-hover)"},".os-scrollbar-vertical:active .os-scrollbar-handle":{width:"var(--os-handle-perpendicular-size-active)"},"[data-overlayscrollbars~=updating] > .os-scrollbar,\n.os-theme-none.os-scrollbar":{display:"none !important"},".os-theme-dark,\n.os-theme-light":{boxSizing:"border-box","--os-size":"10px","--os-padding-perpendicular":"2px","--os-padding-axis":"2px","--os-track-border-radius":"10px","--os-handle-interactive-area-offset":"4px","--os-handle-border-radius":"10px"},".os-theme-dark":{"--os-handle-bg":"rgba(0, 0, 0, 0.44)","--os-handle-bg-hover":"rgba(0, 0, 0, 0.55)","--os-handle-bg-active":"rgba(0, 0, 0, 0.66)"},".os-theme-light":{"--os-handle-bg":"rgba(255, 255, 255, 0.44)","--os-handle-bg-hover":"rgba(255, 255, 255, 0.55)","--os-handle-bg-active":"rgba(255, 255, 255, 0.66)"},".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle":{borderRadius:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track":{borderRadius:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal":{padding:"2px 2px",right:"10px",height:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl":{left:"10px",right:"0"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle":{minWidth:"33px",maxWidth:"none"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before":{top:`calc(( - 2px + 4px - ) * -1)`,bottom:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical, .os-no-css-vars.os-theme-light.os-scrollbar-vertical":{padding:"2px 2px",bottom:"10px",width:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle":{minHeight:"33px",maxHeight:"none"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before":{left:`calc(( - 2px + 4px - ) * -1)`,right:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before":{right:`calc(( - 2px + 4px - ) * -1)`,left:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.44)"},".os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.55)"},".os-no-css-vars.os-theme-dark:active .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.66)"},".os-no-css-vars.os-theme-light .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.44)"},".os-no-css-vars.os-theme-light:hover .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.55)"},".os-no-css-vars.os-theme-light:active .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.66)"}}),e=()=>o.createElement(s,{styles:a}),v=e;export{v as default,a as getScrollAreaStyles}; -//# sourceMappingURL=GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js.map diff --git a/docs/assets/GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js.map b/docs/assets/GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js.map deleted file mode 100644 index 977aa75a..00000000 --- a/docs/assets/GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GlobalScrollAreaStyles-DZEYMYDM-204e46cb.js","sources":["../../node_modules/@storybook/components/dist/GlobalScrollAreaStyles-DZEYMYDM.mjs"],"sourcesContent":["import './chunk-NNAAFZ4U.mjs';\nimport React from 'react';\nimport { Global } from '@storybook/theming';\n\nvar getScrollAreaStyles=theme=>({\".os-size-observer,\\n.os-size-observer-listener\":{direction:\"inherit\",pointerEvents:\"none\",overflow:\"hidden\",visibility:\"hidden\",boxSizing:\"border-box\"},\".os-size-observer,\\n.os-size-observer-listener,\\n.os-size-observer-listener-item,\\n.os-size-observer-listener-item-final\":{writingMode:\"horizontal-tb\",position:\"absolute\",left:\"0\",top:\"0\"},\".os-size-observer\":{zIndex:-1,contain:\"strict\",display:\"flex\",flexDirection:\"row\",flexWrap:\"nowrap\",padding:\"inherit\",border:\"inherit\",boxSizing:\"inherit\",margin:\"-133px\",top:\"0\",right:\"0\",bottom:\"0\",left:\"0\",transform:\"scale(0.1)\"},\".os-size-observer::before\":{content:'\"\"',flex:\"none\",boxSizing:\"inherit\",padding:\"10px\",width:\"10px\",height:\"10px\"},\".os-size-observer-appear\":{animation:\"os-size-observer-appear-animation 1ms forwards\"},\".os-size-observer-listener\":{boxSizing:\"border-box\",position:\"relative\",flex:\"auto\",padding:\"inherit\",border:\"inherit\",margin:\"-133px\",transform:\"scale(10)\"},\".os-size-observer-listener.ltr\":{marginRight:\"-266px\",marginLeft:\"0\"},\".os-size-observer-listener.rtl\":{marginLeft:\"-266px\",marginRight:\"0\"},\".os-size-observer-listener:empty::before\":{content:'\"\"',width:\"100%\",height:\"100%\"},\".os-size-observer-listener:empty::before, .os-size-observer-listener > .os-size-observer-listener-item\":{display:\"block\",position:\"relative\",padding:\"inherit\",border:\"inherit\",boxSizing:\"content-box\",flex:\"auto\"},\".os-size-observer-listener-scroll\":{boxSizing:\"border-box\",display:\"flex\"},\".os-size-observer-listener-item\":{right:\"0\",bottom:\"0\",overflow:\"hidden\",direction:\"ltr\",flex:\"none\"},\".os-size-observer-listener-item-final\":{transition:\"none\"},\"@keyframes os-size-observer-appear-animation\":{from:{cursor:\"auto\"},to:{cursor:\"none\"}},\".os-trinsic-observer\":{flex:\"none\",boxSizing:\"border-box\",position:\"relative\",maxWidth:\"0px\",maxHeight:\"1px\",padding:\"0\",margin:\"0\",border:\"none\",overflow:\"hidden\",zIndex:-1,height:\"0\",top:\"calc(100% + 1px)\",contain:\"strict\"},\".os-trinsic-observer:not(:empty)\":{height:\"calc(100% + 1px)\",top:\"-1px\"},\".os-trinsic-observer:not(:empty) > .os-size-observer\":{width:\"1000%\",height:\"1000%\",minHeight:\"1px\",minWidth:\"1px\"},\".os-environment\":{\"--os-custom-prop\":\"-1\",position:\"fixed\",opacity:0,visibility:\"hidden\",overflow:\"scroll\",height:\"200px\",width:\"200px\",zIndex:\"var(--os-custom-prop)\"},\".os-environment div\":{width:\"200%\",height:\"200%\",margin:\"10px 0\"},\".os-environment.os-environment-flexbox-glue\":{display:\"flex\",flexDirection:\"row\",flexWrap:\"nowrap\",height:\"auto\",width:\"auto\",minHeight:\"200px\",minWidth:\"200px\"},\".os-environment.os-environment-flexbox-glue div\":{flex:\"auto\",width:\"auto\",height:\"auto\",maxHeight:\"100%\",maxWidth:\"100%\",margin:\"0\"},\".os-environment.os-environment-flexbox-glue-max\":{maxHeight:\"200px\"},\".os-environment.os-environment-flexbox-glue-max div\":{overflow:\"visible\"},\".os-environment.os-environment-flexbox-glue-max div::before\":{content:'\"\"',display:\"block\",height:\"999px\",width:\"999px\"},\".os-environment,\\n[data-overlayscrollbars-viewport]\":{msOverflowStyle:\"scrollbar !important\"},\"[data-overlayscrollbars-initialize],\\n[data-overlayscrollbars~=scrollbarHidden],\\n[data-overlayscrollbars-viewport~=scrollbarHidden],\\n.os-scrollbar-hidden.os-environment\":{scrollbarWidth:\"none !important\"},\"[data-overlayscrollbars-initialize]::-webkit-scrollbar,\\n[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,\\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,\\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,\\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,\\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,\\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar,\\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner\":{WebkitAppearance:\"none !important\",appearance:\"none !important\",display:\"none !important\",width:\"0 !important\",height:\"0 !important\"},\"[data-overlayscrollbars-initialize]\":{overflow:\"auto\"},\"html[data-overlayscrollbars],\\nhtml.os-scrollbar-hidden,\\nhtml.os-scrollbar-hidden > body\":{boxSizing:\"border-box\",margin:\"0\",width:\"100%\",height:\"100%\"},\"html[data-overlayscrollbars] > body\":{overflow:\"visible\"},\"[data-overlayscrollbars~=host]\":{position:\"relative\"},\"[data-overlayscrollbars~=host],\\n[data-overlayscrollbars-padding]\":{display:\"flex\",flexDirection:\"row !important\",flexWrap:\"nowrap !important\"},\"[data-overlayscrollbars-padding],\\n[data-overlayscrollbars-viewport]\":{boxSizing:\"inherit\",position:\"relative\",flex:\"auto !important\",height:\"auto\",width:\"100%\",padding:\"0\",margin:\"0\",border:\"none\",zIndex:0,overflow:\"hidden\"},\"[data-overlayscrollbars-viewport]\":{\"--os-vaw\":\"0\",\"--os-vah\":\"0\"},\"[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before\":{content:'\"\"',position:\"absolute\",pointerEvents:\"none\",zIndex:-1,minWidth:\"1px\",minHeight:\"1px\",width:\"var(--os-vaw)\",height:\"var(--os-vah)\"},\"[data-overlayscrollbars~=host],\\n[data-overlayscrollbars~=viewport]\":{overflow:\"hidden\"},\"[data-overlayscrollbars~=overflowVisible],\\n[data-overlayscrollbars-padding~=overflowVisible],\\n[data-overlayscrollbars-viewport~=overflowVisible]\":{overflow:\"visible\"},\"[data-overlayscrollbars-overflow-x=hidden]\":{overflowX:\"hidden\",overflowY:\"hidden\"},\"[data-overlayscrollbars-overflow-x=scroll]\":{overflowX:\"scroll\"},\"[data-overlayscrollbars-overflow-y=scroll]\":{overflowY:\"scroll\"},\"[data-overlayscrollbars~=scrollbarPressed],\\n[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]\":{scrollBehavior:\"auto !important\"},\"[data-overlayscrollbars-content]\":{boxSizing:\"inherit\"},\"[data-overlayscrollbars-grid],\\n[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]\":{display:\"grid\",gridTemplate:\"1fr/1fr\"},\"[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding],\\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-viewport],\\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding] > [data-overlayscrollbars-viewport]\":{height:\"auto !important\",width:\"auto !important\"},\".os-scrollbar\":{contain:[\"size layout\",\"size layout style\"],transition:\"opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s\",pointerEvents:\"none\",position:\"absolute\",opacity:0,visibility:\"hidden\",\"--os-size\":\"0\",\"--os-padding-perpendicular\":\"0\",\"--os-padding-axis\":\"0\",\"--os-track-border-radius\":\"0\",\"--os-track-bg\":\"none\",\"--os-track-bg-hover\":\"none\",\"--os-track-bg-active\":\"none\",\"--os-track-border\":\"none\",\"--os-track-border-hover\":\"none\",\"--os-track-border-active\":\"none\",\"--os-handle-border-radius\":\"0\",\"--os-handle-bg\":\"none\",\"--os-handle-bg-hover\":\"none\",\"--os-handle-bg-active\":\"none\",\"--os-handle-border\":\"none\",\"--os-handle-border-hover\":\"none\",\"--os-handle-border-active\":\"none\",\"--os-handle-min-size\":\"33px\",\"--os-handle-max-size\":\"none\",\"--os-handle-perpendicular-size\":\"100%\",\"--os-handle-perpendicular-size-hover\":\"100%\",\"--os-handle-perpendicular-size-active\":\"100%\",\"--os-handle-interactive-area-offset\":\"0\"},\"body > .os-scrollbar\":{position:\"fixed\",zIndex:99999},\".os-scrollbar-transitionless\":{transition:\"none\"},\".os-scrollbar-track\":{position:\"relative\",direction:\"ltr !important\",padding:\"0 !important\",border:\"none !important\"},\".os-scrollbar-handle\":{position:\"absolute\"},\".os-scrollbar-track,\\n.os-scrollbar-handle\":{pointerEvents:\"none\",width:\"100%\",height:\"100%\"},\".os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,\\n.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle\":{pointerEvents:\"auto\",touchAction:\"none\"},\".os-scrollbar-horizontal\":{bottom:\"0\",left:\"0\",padding:\"var(--os-padding-perpendicular) var(--os-padding-axis)\",right:\"var(--os-size)\",height:\"var(--os-size)\"},\".os-scrollbar-vertical\":{top:\"0\",right:\"0\",padding:\"var(--os-padding-axis) var(--os-padding-perpendicular)\",bottom:\"var(--os-size)\",width:\"var(--os-size)\"},\".os-scrollbar-rtl.os-scrollbar-horizontal\":{right:\"0\"},\".os-scrollbar-rtl.os-scrollbar-vertical\":{right:\"auto\",left:\"0\"},\".os-scrollbar-visible,\\n.os-scrollbar-interaction.os-scrollbar-visible\":{opacity:1,visibility:\"visible\"},\".os-scrollbar-auto-hidden\":{opacity:0,visibility:\"hidden\"},\".os-scrollbar-unusable,\\n.os-scrollbar-unusable *,\\n.os-scrollbar-wheel,\\n.os-scrollbar-wheel *\":{pointerEvents:\"none !important\"},\".os-scrollbar-unusable .os-scrollbar-handle\":{opacity:\"0 !important\"},\".os-scrollbar-horizontal .os-scrollbar-handle\":{bottom:\"0\",minWidth:\"var(--os-handle-min-size)\",maxWidth:\"var(--os-handle-max-size)\",height:\"var(--os-handle-perpendicular-size)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s\"},\".os-scrollbar-vertical .os-scrollbar-handle\":{right:\"0\",minHeight:\"var(--os-handle-min-size)\",maxHeight:\"var(--os-handle-max-size)\",width:\"var(--os-handle-perpendicular-size)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s\"},\".os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle\":{right:\"auto\",left:\"0\"},\".os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,\\n.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl\":{left:\"0\",right:\"0\"},\".os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,\\n.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl\":{top:\"0\",bottom:\"0\"},\".os-scrollbar .os-scrollbar-track\":{border:\"var(--os-track-border)\",borderRadius:\"var(--os-track-border-radius)\",background:\"var(--os-track-bg)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s\"},\".os-scrollbar .os-scrollbar-track:hover\":{border:\"var(--os-track-border-hover)\",background:\"var(--os-track-bg-hover)\"},\".os-scrollbar .os-scrollbar-track:active\":{border:\"var(--os-track-border-active)\",background:\"var(--os-track-bg-active)\"},\".os-scrollbar .os-scrollbar-handle\":{border:\"var(--os-handle-border)\",borderRadius:\"var(--os-handle-border-radius)\",background:theme.textMutedColor,opacity:.5},\".os-scrollbar .os-scrollbar-handle:before\":{content:'\"\"',position:\"absolute\",left:\"0\",right:\"0\",top:\"0\",bottom:\"0\",display:\"block\"},\".os-scrollbar .os-scrollbar-handle:hover\":{border:\"var(--os-handle-border-hover)\",opacity:.6},\".os-scrollbar .os-scrollbar-handle:active\":{border:\"var(--os-handle-border-active)\",background:\"var(--os-handle-bg-active)\"},\".os-scrollbar-horizontal.os-scrollbar-rtl\":{left:\"var(--os-size)\",right:\"0\"},\".os-scrollbar-horizontal .os-scrollbar-handle:before\":{top:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",bottom:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-horizontal:hover .os-scrollbar-handle\":{height:\"var(--os-handle-perpendicular-size-hover)\"},\".os-scrollbar-horizontal:active .os-scrollbar-handle\":{height:\"var(--os-handle-perpendicular-size-active)\"},\".os-scrollbar-vertical .os-scrollbar-handle:before\":{left:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",right:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before\":{right:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",left:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-vertical:hover .os-scrollbar-handle\":{width:\"var(--os-handle-perpendicular-size-hover)\"},\".os-scrollbar-vertical:active .os-scrollbar-handle\":{width:\"var(--os-handle-perpendicular-size-active)\"},\"[data-overlayscrollbars~=updating] > .os-scrollbar,\\n.os-theme-none.os-scrollbar\":{display:\"none !important\"},\".os-theme-dark,\\n.os-theme-light\":{boxSizing:\"border-box\",\"--os-size\":\"10px\",\"--os-padding-perpendicular\":\"2px\",\"--os-padding-axis\":\"2px\",\"--os-track-border-radius\":\"10px\",\"--os-handle-interactive-area-offset\":\"4px\",\"--os-handle-border-radius\":\"10px\"},\".os-theme-dark\":{\"--os-handle-bg\":\"rgba(0, 0, 0, 0.44)\",\"--os-handle-bg-hover\":\"rgba(0, 0, 0, 0.55)\",\"--os-handle-bg-active\":\"rgba(0, 0, 0, 0.66)\"},\".os-theme-light\":{\"--os-handle-bg\":\"rgba(255, 255, 255, 0.44)\",\"--os-handle-bg-hover\":\"rgba(255, 255, 255, 0.55)\",\"--os-handle-bg-active\":\"rgba(255, 255, 255, 0.66)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle\":{borderRadius:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track\":{borderRadius:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal\":{padding:\"2px 2px\",right:\"10px\",height:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl\":{left:\"10px\",right:\"0\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle\":{minWidth:\"33px\",maxWidth:\"none\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before\":{top:`calc((\n 2px + 4px\n ) * -1)`,bottom:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical, .os-no-css-vars.os-theme-light.os-scrollbar-vertical\":{padding:\"2px 2px\",bottom:\"10px\",width:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle\":{minHeight:\"33px\",maxHeight:\"none\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before\":{left:`calc((\n 2px + 4px\n ) * -1)`,right:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before\":{right:`calc((\n 2px + 4px\n ) * -1)`,left:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.44)\"},\".os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.55)\"},\".os-no-css-vars.os-theme-dark:active .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.66)\"},\".os-no-css-vars.os-theme-light .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.44)\"},\".os-no-css-vars.os-theme-light:hover .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.55)\"},\".os-no-css-vars.os-theme-light:active .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.66)\"}}),GlobalScrollAreaStyles=()=>React.createElement(Global,{styles:getScrollAreaStyles}),GlobalScrollAreaStyles_default=GlobalScrollAreaStyles;\n\nexport { GlobalScrollAreaStyles_default as default, getScrollAreaStyles };\n"],"names":["getScrollAreaStyles","theme","GlobalScrollAreaStyles","React","Global","GlobalScrollAreaStyles_default"],"mappings":"uQAIG,IAACA,EAAoBC,IAAQ,CAAC,iDAAiD,CAAC,UAAU,UAAU,cAAc,OAAO,SAAS,SAAS,WAAW,SAAS,UAAU,YAAY,EAAE,2HAA2H,CAAC,YAAY,gBAAgB,SAAS,WAAW,KAAK,IAAI,IAAI,GAAG,EAAE,oBAAoB,CAAC,OAAO,GAAG,QAAQ,SAAS,QAAQ,OAAO,cAAc,MAAM,SAAS,SAAS,QAAQ,UAAU,OAAO,UAAU,UAAU,UAAU,OAAO,SAAS,IAAI,IAAI,MAAM,IAAI,OAAO,IAAI,KAAK,IAAI,UAAU,YAAY,EAAE,4BAA4B,CAAC,QAAQ,KAAK,KAAK,OAAO,UAAU,UAAU,QAAQ,OAAO,MAAM,OAAO,OAAO,MAAM,EAAE,2BAA2B,CAAC,UAAU,gDAAgD,EAAE,6BAA6B,CAAC,UAAU,aAAa,SAAS,WAAW,KAAK,OAAO,QAAQ,UAAU,OAAO,UAAU,OAAO,SAAS,UAAU,WAAW,EAAE,iCAAiC,CAAC,YAAY,SAAS,WAAW,GAAG,EAAE,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AE,gHAAgH,CAAC,QAAQ,UAAU,MAAM,OAAO,OAAO,MAAM,EAAE,kJAAkJ,CAAC,KAAK,OAAO,MAAM,GAAG,EAAE,0JAA0J,CAAC,SAAS,OAAO,SAAS,MAAM,EAAE,wKAAwK,CAAC,IAAI;AAAA;AAAA,uBAErvZ,OAAO,gBAAgB,EAAE,4GAA4G,CAAC,QAAQ,UAAU,OAAO,OAAO,MAAM,MAAM,EAAE,sJAAsJ,CAAC,UAAU,OAAO,UAAU,MAAM,EAAE,oKAAoK,CAAC,KAAK;AAAA;AAAA,uBAExhB,MAAM,gBAAgB,EAAE,sMAAsM,CAAC,MAAM;AAAA;AAAA,qBAEvO,KAAK,gBAAgB,EAAE,qDAAqD,CAAC,WAAW,qBAAqB,EAAE,2DAA2D,CAAC,WAAW,qBAAqB,EAAE,4DAA4D,CAAC,WAAW,qBAAqB,EAAE,sDAAsD,CAAC,WAAW,2BAA2B,EAAE,4DAA4D,CAAC,WAAW,2BAA2B,EAAE,6DAA6D,CAAC,WAAW,2BAA2B,CAAC,GAAGC,EAAuB,IAAIC,EAAM,cAAcC,EAAO,CAAC,OAAOJ,CAAmB,CAAC,EAAEK,EAA+BH","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/docs/assets/Hero-0fe5bf28.js b/docs/assets/Hero-0fe5bf28.js deleted file mode 100644 index a5c06475..00000000 --- a/docs/assets/Hero-0fe5bf28.js +++ /dev/null @@ -1,2 +0,0 @@ -import{t as l,a as i}from"./tw-merge-fe695a60.js";import{R as p}from"./index-ebeaab24.js";const n=p.forwardRef(({dataTheme:e,className:a,children:r,...t},o)=>{const s=l("hero-content",a);return i("div",{...t,"data-theme":e,className:s,ref:o,children:r})}),m=n;try{n.displayName="HeroContent",n.__docgenInfo={description:"",displayName:"HeroContent",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const c=p.forwardRef(({dataTheme:e,className:a,children:r,...t},o)=>{const s=l("hero-overlay",a);return i("div",{...t,"data-theme":e,className:s,ref:o,children:r})}),_=c;try{c.displayName="HeroOverlay",c.__docgenInfo={description:"",displayName:"HeroOverlay",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const d=p.forwardRef(({dataTheme:e,className:a,children:r,...t},o)=>{const s=l("hero",a);return i("div",{role:"banner",...t,"data-theme":e,className:s,ref:o,children:r})}),h=Object.assign(d,{Content:m,Overlay:_});try{d.displayName="Hero",d.__docgenInfo={description:"",displayName:"Hero",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}export{h as H}; -//# sourceMappingURL=Hero-0fe5bf28.js.map diff --git a/docs/assets/Hero-0fe5bf28.js.map b/docs/assets/Hero-0fe5bf28.js.map deleted file mode 100644 index 10bcbffc..00000000 --- a/docs/assets/Hero-0fe5bf28.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Hero-0fe5bf28.js","sources":["../../src/Hero/HeroContent.tsx","../../src/Hero/HeroOverlay.tsx","../../src/Hero/Hero.tsx"],"sourcesContent":["import React from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type HeroContentProps = React.HTMLAttributes &\n IComponentBaseProps\n\nconst HeroContent = React.forwardRef(\n ({ dataTheme, className, children, ...props }, ref): JSX.Element => {\n const classes = twMerge('hero-content', className)\n\n return (\n
    \n {children}\n
    \n )\n }\n)\n\nexport default HeroContent\n","import React from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type HeroOverlayProps = React.HTMLAttributes &\n IComponentBaseProps\n\nconst HeroOverlay = React.forwardRef(\n ({ dataTheme, className, children, ...props }, ref): JSX.Element => {\n const classes = twMerge('hero-overlay', className)\n\n return (\n
    \n {children}\n
    \n )\n }\n)\n\nexport default HeroOverlay\n","import React from 'react'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nimport HeroContent from './HeroContent'\nimport HeroOverlay from './HeroOverlay'\n\nexport type HeroProps = React.HTMLAttributes &\n IComponentBaseProps\n\nconst Hero = React.forwardRef(\n ({ dataTheme, className, children, ...props }, ref): JSX.Element => {\n const classes = twMerge('hero', className)\n\n return (\n \n {children}\n \n )\n }\n)\n\nexport default Object.assign(Hero, {\n Content: HeroContent,\n Overlay: HeroOverlay,\n})\n"],"names":["HeroContent","React","dataTheme","className","children","props","ref","classes","twMerge","jsx","HeroContent$1","HeroOverlay","HeroOverlay$1","Hero","Hero$1"],"mappings":"0FAQA,MAAAA,EAAAC,EAAA,WAA0B,CAAA,CAAA,UAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAEtB,MAAAC,EAAAC,EAAA,eAAAL,CAAA,EAEA,OAAAM,EAAA,MAAA,CAAA,GAAAJ,EAAA,aAAAH,EAAA,UAAAK,EAAA,IAAAD,EAAA,SAAAF,CAAA,CAAA,CAGE,CAGN,EAEAM,EAAAV,0MCZA,MAAAW,EAAAV,EAAA,WAA0B,CAAA,CAAA,UAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAEtB,MAAAC,EAAAC,EAAA,eAAAL,CAAA,EAEA,OAAAM,EAAA,MAAA,CAAA,GAAAJ,EAAA,aAAAH,EAAA,UAAAK,EAAA,IAAAD,EAAA,SAAAF,CAAA,CAAA,CAGE,CAGN,EAEAQ,EAAAD,0MCTA,MAAAE,EAAAZ,EAAA,WAAmB,CAAA,CAAA,UAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAEf,MAAAC,EAAAC,EAAA,OAAAL,CAAA,EAEA,OAAAM,EACE,MAAC,CAAA,KAAA,SACM,GAAAJ,EACD,aAAAH,EACQ,UAAAK,EACD,IAAAD,EACX,SAAAF,CAEC,CAAA,CACH,CAGN,EAEAU,EAAA,OAAA,OAAAD,EAAA,CAAmC,QAAAb,EACxB,QAAAW,CAEX,CAAA"} \ No newline at end of file diff --git a/docs/assets/Hero-9639dab2.js b/docs/assets/Hero-9639dab2.js new file mode 100644 index 00000000..9c3973f6 --- /dev/null +++ b/docs/assets/Hero-9639dab2.js @@ -0,0 +1 @@ +import{t as l,j as i}from"./tw-merge-0a3648bd.js";import{R as p}from"./index-1b03fe98.js";const n=p.forwardRef(({dataTheme:e,className:r,children:a,...t},o)=>{const s=l("hero-content",r);return i("div",{...t,"data-theme":e,className:s,ref:o,children:a})}),m=n;try{n.displayName="HeroContent",n.__docgenInfo={description:"",displayName:"HeroContent",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const c=p.forwardRef(({dataTheme:e,className:r,children:a,...t},o)=>{const s=l("hero-overlay",r);return i("div",{...t,"data-theme":e,className:s,ref:o,children:a})}),_=c;try{c.displayName="HeroOverlay",c.__docgenInfo={description:"",displayName:"HeroOverlay",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}const d=p.forwardRef(({dataTheme:e,className:r,children:a,...t},o)=>{const s=l("hero",r);return i("div",{role:"banner",...t,"data-theme":e,className:s,ref:o,children:a})}),h=Object.assign(d,{Content:m,Overlay:_});try{d.displayName="Hero",d.__docgenInfo={description:"",displayName:"Hero",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}}}}}catch{}export{h as H}; diff --git a/docs/assets/Hero.stories-681595d7.js.map b/docs/assets/Hero.stories-681595d7.js.map deleted file mode 100644 index 8d4d1473..00000000 --- a/docs/assets/Hero.stories-681595d7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Hero.stories-681595d7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Hero.stories-681595d7.js b/docs/assets/Hero.stories-e9f74b65.js similarity index 51% rename from docs/assets/Hero.stories-681595d7.js rename to docs/assets/Hero.stories-e9f74b65.js index a055348f..7e1ff92f 100644 --- a/docs/assets/Hero.stories-681595d7.js +++ b/docs/assets/Hero.stories-e9f74b65.js @@ -1,6 +1,5 @@ -import{j as a,a as e}from"./tw-merge-fe695a60.js";import{H as t}from"./Hero-0fe5bf28.js";import{B as d}from"./Button-28269a3e.js";import{C as c}from"./index-600c7863.js";import{I as m}from"./index-04dafbc6.js";import{F as n}from"./index-3a31de6a.js";import{L as C}from"./index-b1e8f807.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const j={title:"Layout/Hero",component:t,args:{className:"bg-base-200 "}},s=r=>a(t,{...r,children:[e(t.Overlay,{className:"bg-opacity-60"}),e(t.Content,{className:"text-center",children:a("div",{className:"max-w-md",children:[e("h1",{className:"text-5xl font-bold",children:"Hello there"}),e("p",{className:"py-6",children:"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."}),e(d,{color:"primary",children:"Get Started"})]})})]}),o=r=>e(t,{...r,children:a(t.Content,{children:[e("img",{src:"https://daisyui.com/images/stock/photo-1635805737707-575885ab0820.jpg",className:"max-w-sm rounded-lg shadow-2xl"}),a("div",{children:[e("h1",{className:"text-5xl font-bold",children:"Box Office News!"}),e("p",{className:"py-6",children:"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."}),e(d,{color:"primary",children:"Get Started"})]})]})}),l=r=>e(t,{...r,children:a(t.Content,{className:"flex-col lg:flex-row-reverse",children:[a("div",{className:"text-center lg:text-left",children:[e("h1",{className:"text-5xl font-bold",children:"Login now!"}),e("p",{className:"py-6",children:"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."})]}),e(c,{className:"flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-100",children:a(c.Body,{children:[a(n,{children:[e(n.Label,{title:"Email"}),e(m,{type:"text",placeholder:"email",className:"input-bordered"})]}),a(n,{children:[e(n.Label,{title:"Password"}),e(m,{type:"text",placeholder:"password",className:"input-bordered"}),e("label",{className:"label",children:e(C,{href:"#",className:"label-text-alt",hover:!0,children:"Forgot password?"})})]}),e(n,{className:"mt-6",children:e(d,{children:"Login"})})]})})]})}),i=r=>a(t,{style:{backgroundImage:"url(https://daisyui.com/images/stock/photo-1507358522600-9f71e620c44e.jpg)"},children:[e(t.Overlay,{...r}),e(t.Content,{className:"text-center",children:a("div",{className:"max-w-md",children:[e("h1",{className:"text-5xl font-bold",children:"Hello there"}),e("p",{className:"py-6",children:"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."}),e(d,{color:"primary",children:"Get Started"})]})})]});i.args={className:"bg-opacity-60"};s.args={};var u,p,h;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`args => { +import{j as e,a as t}from"./tw-merge-0a3648bd.js";import{H as a}from"./Hero-9639dab2.js";import{B as d}from"./Button-e9ac0f78.js";import{C as c}from"./index-3c968524.js";import{I as m}from"./index-0ee0d1a2.js";import{F as n}from"./index-cdaabc1d.js";import{L as C}from"./index-6329c95a.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const O={title:"Layout/Hero",component:a,args:{className:"bg-base-200 min-h-[30rem]"}},s=r=>e(a,{...r,children:e(a.Content,{className:"text-center",children:t("div",{className:"max-w-md",children:[e("h1",{className:"text-5xl font-bold",children:"Hello there"}),e("p",{className:"py-6",children:"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."}),e(d,{color:"primary",children:"Get Started"})]})})}),o=r=>e(a,{...r,children:t(a.Content,{children:[e("img",{src:"https://daisyui.com/images/stock/photo-1635805737707-575885ab0820.jpg",className:"max-w-sm rounded-lg shadow-2xl"}),t("div",{children:[e("h1",{className:"text-5xl font-bold",children:"Box Office News!"}),e("p",{className:"py-6",children:"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."}),e(d,{color:"primary",children:"Get Started"})]})]})}),l=r=>e(a,{...r,children:t(a.Content,{className:"flex-col lg:flex-row-reverse",children:[t("div",{className:"text-center lg:text-left",children:[e("h1",{className:"text-5xl font-bold",children:"Login now!"}),e("p",{className:"py-6",children:"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."})]}),e(c,{className:"flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-100",children:t(c.Body,{children:[t(n,{children:[e(n.Label,{title:"Email"}),e(m,{type:"text",placeholder:"email",className:"input-bordered"})]}),t(n,{children:[e(n.Label,{title:"Password"}),e(m,{type:"text",placeholder:"password",className:"input-bordered"}),e("label",{className:"label",children:e(C,{href:"#",className:"label-text-alt",hover:!0,children:"Forgot password?"})})]}),e(n,{className:"mt-6",children:e(d,{children:"Login"})})]})})]})}),i=r=>t(a,{style:{backgroundImage:"url(https://daisyui.com/images/stock/photo-1507358522600-9f71e620c44e.jpg)"},children:[e(a.Overlay,{...r}),e(a.Content,{className:"text-center",children:t("div",{className:"max-w-md",children:[e("h1",{className:"text-5xl font-bold",children:"Hello there"}),e("p",{className:"py-6",children:"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."}),e(d,{color:"primary",children:"Get Started"})]})})]});i.args={className:"bg-opacity-60"};s.args={};var u,p,h;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`args => { return -

    Hello there

    @@ -29,7 +28,7 @@ import{j as a,a as e}from"./tw-merge-fe695a60.js";import{H as t}from"./Hero-0fe5
    ; -}`,...(N=(g=o.parameters)==null?void 0:g.docs)==null?void 0:N.source}}};var f,v,y;l.parameters={...l.parameters,docs:{...(f=l.parameters)==null?void 0:f.docs,source:{originalSource:`args => { +}`,...(N=(g=o.parameters)==null?void 0:g.docs)==null?void 0:N.source}}};var f,v,b;l.parameters={...l.parameters,docs:{...(f=l.parameters)==null?void 0:f.docs,source:{originalSource:`args => { return
    @@ -62,7 +61,7 @@ import{j as a,a as e}from"./tw-merge-fe695a60.js";import{H as t}from"./Hero-0fe5 ; -}`,...(y=(v=l.parameters)==null?void 0:v.docs)==null?void 0:y.source}}};var b,H,w;i.parameters={...i.parameters,docs:{...(b=i.parameters)==null?void 0:b.docs,source:{originalSource:`args => { +}`,...(b=(v=l.parameters)==null?void 0:v.docs)==null?void 0:b.source}}};var y,H,w;i.parameters={...i.parameters,docs:{...(y=i.parameters)==null?void 0:y.docs,source:{originalSource:`args => { return @@ -80,5 +79,4 @@ import{j as a,a as e}from"./tw-merge-fe695a60.js";import{H as t}from"./Hero-0fe5
    ; -}`,...(w=(H=i.parameters)==null?void 0:H.docs)==null?void 0:w.source}}};const G=["Default","HeroWithFigure","HeroWithForm","HeroWithOverlayImage"];export{s as Default,o as HeroWithFigure,l as HeroWithForm,i as HeroWithOverlayImage,G as __namedExportsOrder,j as default}; -//# sourceMappingURL=Hero.stories-681595d7.js.map +}`,...(w=(H=i.parameters)==null?void 0:H.docs)==null?void 0:w.source}}};const G=["Default","HeroWithFigure","HeroWithForm","HeroWithOverlayImage"];export{s as Default,o as HeroWithFigure,l as HeroWithForm,i as HeroWithOverlayImage,G as __namedExportsOrder,O as default}; diff --git a/docs/assets/Indicator.stories-bed5f78f.js.map b/docs/assets/Indicator.stories-bed5f78f.js.map deleted file mode 100644 index 19f0829a..00000000 --- a/docs/assets/Indicator.stories-bed5f78f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Indicator.stories-bed5f78f.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Indicator.stories-bed5f78f.js b/docs/assets/Indicator.stories-f48c90e3.js similarity index 96% rename from docs/assets/Indicator.stories-bed5f78f.js rename to docs/assets/Indicator.stories-f48c90e3.js index 1f759d73..02eea33a 100644 --- a/docs/assets/Indicator.stories-bed5f78f.js +++ b/docs/assets/Indicator.stories-f48c90e3.js @@ -1,4 +1,4 @@ -import{j as t,a as e}from"./tw-merge-fe695a60.js";import{I as a}from"./index-ef45bb0a.js";import{A as Me}from"./index-8b88db11.js";import{B as s}from"./index-bee62e41.js";import{B as Fe}from"./Button-28269a3e.js";import{T as y}from"./index-057b6e0c.js";import{I as Re}from"./index-04dafbc6.js";import{C as f}from"./index-600c7863.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./utils-50b96f3f.js";import"./index-357fb5a8.js";const Ge={title:"Layout/Indicator",component:a.Item},n=r=>t(a,{children:[e(a.Item,{...r}),e("div",{className:"grid w-32 h-32 rounded bg-base-300 place-items-center",children:"content"})]});n.args={className:"badge badge-secondary"};const T=r=>t(a,{children:[e(s,{color:"primary",className:a.Item.className(r),children:"new"}),e("div",{className:"grid w-32 h-32 rounded bg-base-300 place-items-center",children:"content"})]}),z=r=>t(a,{children:[e(s,{color:"secondary",className:a.Item.className(r),children:"99+"}),e(Fe,{children:"inbox"})]}),c=r=>t(y,{variant:"lifted",value:1,children:[e(y.Tab,{value:0,children:"Messages"}),t(y.Tab,{className:a.className(),value:1,children:["Notifications",e(a.Item,{...r,children:"8"})]}),e(y.Tab,{value:2,children:"Request"})]});c.args={className:"badge"};const A=r=>t(a,{children:[e(s,{className:a.Item.className(r),color:"secondary",children:"typing…"}),e(Me,{shape:"square",src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"})]}),d=r=>t(a,{children:[e(a.Item,{...r,children:"Required"}),e(Re,{placeholder:"Your email address",bordered:!0})]});d.args={className:"badge"};const i=r=>t(a,{className:"my-6 mx-10",children:[e(Fe,{color:"primary",className:a.Item.className(r),children:"Apply"}),e(f,{bordered:!0,className:"bg-base-100",children:t(f.Body,{children:[e(f.Title,{children:"Job Title"}),e("p",{children:"Rerum reiciendis beatae tenetur excepturi"})]})})]});i.args={vertical:"bottom"};const m=r=>t(a,{children:[e(s,{color:"secondary",className:a.Item.className(r),children:"Uploading Image..."}),e("img",{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg"})]});m.args={vertical:"middle",horizontal:"center"};const o=r=>t(a,{children:[e(s,{color:"secondary",className:a.Item.className(r)}),e("div",{className:"grid w-32 h-32 rounded bg-base-300 place-items-center",children:"content"})]}),l=o.bind({});l.args={horizontal:"start"};const g=o.bind({});g.args={horizontal:"center"};const S=o.bind({}),p=o.bind({});p.args={horizontal:"start",vertical:"middle"};const u=o.bind({});u.args={horizontal:"center",vertical:"middle"};const I=o.bind({});I.args={vertical:"middle"};const N=o.bind({});N.args={horizontal:"start",vertical:"bottom"};const b=o.bind({});b.args={horizontal:"center",vertical:"bottom"};const h=o.bind({});h.args={vertical:"bottom"};const v=r=>t(a,{...r,children:[e(s,{color:"secondary",className:a.Item.className({vertical:"top",horizontal:"start"}),children:"top+start"}),e(s,{color:"secondary",className:a.Item.className({vertical:"top",horizontal:"center"}),children:"top+center"}),e(s,{color:"secondary",className:a.Item.className({vertical:"top",horizontal:"end"}),children:"top+end"}),e(s,{color:"secondary",className:a.Item.className({vertical:"middle",horizontal:"start"}),children:"middle+start"}),e(s,{color:"secondary",className:a.Item.className({vertical:"middle",horizontal:"center"}),children:"middle+center"}),e(s,{color:"secondary",className:a.Item.className({vertical:"middle",horizontal:"end"}),children:"middle+end"}),e(s,{color:"secondary",className:a.Item.className({vertical:"bottom",horizontal:"start"}),children:"bottom+start"}),e(s,{color:"secondary",className:a.Item.className({vertical:"bottom",horizontal:"center"}),children:"bottom+center"}),e(s,{color:"secondary",className:a.Item.className({vertical:"bottom",horizontal:"end"}),children:"bottom+end"}),e("div",{className:"grid w-60 h-32 bg-base-300 place-items-center",children:"content"})]});v.argTypes={horizontal:{control:!1},vertical:{control:!1}};const B=o.bind({});B.args={className:"sm:indicator-middle md:indicator-bottom lg:indicator-center xl:indicator-end",horizontal:"start"};var w,C,x;n.parameters={...n.parameters,docs:{...(w=n.parameters)==null?void 0:w.docs,source:{originalSource:`args => { +import{a as t,j as e}from"./tw-merge-0a3648bd.js";import{I as a}from"./index-e97e44e7.js";import{A as Me}from"./index-6ae1381f.js";import{B as s}from"./index-ccb0f6f2.js";import{B as Fe}from"./Button-e9ac0f78.js";import{T as y}from"./index-eb20e8d5.js";import{I as Re}from"./index-0ee0d1a2.js";import{C as f}from"./index-3c968524.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./utils-25597068.js";import"./index-a55c3a76.js";const Ge={title:"Layout/Indicator",component:a.Item},n=r=>t(a,{children:[e(a.Item,{...r}),e("div",{className:"grid w-32 h-32 rounded bg-base-300 place-items-center",children:"content"})]});n.args={className:"badge badge-secondary"};const T=r=>t(a,{children:[e(s,{color:"primary",className:a.Item.className(r),children:"new"}),e("div",{className:"grid w-32 h-32 rounded bg-base-300 place-items-center",children:"content"})]}),z=r=>t(a,{children:[e(s,{color:"secondary",className:a.Item.className(r),children:"99+"}),e(Fe,{children:"inbox"})]}),c=r=>t(y,{variant:"lifted",value:1,children:[e(y.Tab,{value:0,children:"Messages"}),t(y.Tab,{className:a.className(),value:1,children:["Notifications",e(a.Item,{...r,children:"8"})]}),e(y.Tab,{value:2,children:"Request"})]});c.args={className:"badge"};const A=r=>t(a,{children:[e(s,{className:a.Item.className(r),color:"secondary",children:"typing…"}),e(Me,{shape:"square",src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"})]}),d=r=>t(a,{children:[e(a.Item,{...r,children:"Required"}),e(Re,{placeholder:"Your email address",bordered:!0})]});d.args={className:"badge"};const i=r=>t(a,{className:"my-6 mx-10",children:[e(Fe,{color:"primary",className:a.Item.className(r),children:"Apply"}),e(f,{bordered:!0,className:"bg-base-100",children:t(f.Body,{children:[e(f.Title,{children:"Job Title"}),e("p",{children:"Rerum reiciendis beatae tenetur excepturi"})]})})]});i.args={vertical:"bottom"};const m=r=>t(a,{children:[e(s,{color:"secondary",className:a.Item.className(r),children:"Uploading Image..."}),e("img",{src:"https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg"})]});m.args={vertical:"middle",horizontal:"center"};const o=r=>t(a,{children:[e(s,{color:"secondary",className:a.Item.className(r)}),e("div",{className:"grid w-32 h-32 rounded bg-base-300 place-items-center",children:"content"})]}),l=o.bind({});l.args={horizontal:"start"};const g=o.bind({});g.args={horizontal:"center"};const S=o.bind({}),p=o.bind({});p.args={horizontal:"start",vertical:"middle"};const u=o.bind({});u.args={horizontal:"center",vertical:"middle"};const I=o.bind({});I.args={vertical:"middle"};const N=o.bind({});N.args={horizontal:"start",vertical:"bottom"};const b=o.bind({});b.args={horizontal:"center",vertical:"bottom"};const h=o.bind({});h.args={vertical:"bottom"};const v=r=>t(a,{...r,children:[e(s,{color:"secondary",className:a.Item.className({vertical:"top",horizontal:"start"}),children:"top+start"}),e(s,{color:"secondary",className:a.Item.className({vertical:"top",horizontal:"center"}),children:"top+center"}),e(s,{color:"secondary",className:a.Item.className({vertical:"top",horizontal:"end"}),children:"top+end"}),e(s,{color:"secondary",className:a.Item.className({vertical:"middle",horizontal:"start"}),children:"middle+start"}),e(s,{color:"secondary",className:a.Item.className({vertical:"middle",horizontal:"center"}),children:"middle+center"}),e(s,{color:"secondary",className:a.Item.className({vertical:"middle",horizontal:"end"}),children:"middle+end"}),e(s,{color:"secondary",className:a.Item.className({vertical:"bottom",horizontal:"start"}),children:"bottom+start"}),e(s,{color:"secondary",className:a.Item.className({vertical:"bottom",horizontal:"center"}),children:"bottom+center"}),e(s,{color:"secondary",className:a.Item.className({vertical:"bottom",horizontal:"end"}),children:"bottom+end"}),e("div",{className:"grid w-60 h-32 bg-base-300 place-items-center",children:"content"})]});v.argTypes={horizontal:{control:!1},vertical:{control:!1}};const B=o.bind({});B.args={className:"sm:indicator-middle md:indicator-bottom lg:indicator-center xl:indicator-end",horizontal:"start"};var w,C,x;n.parameters={...n.parameters,docs:{...(w=n.parameters)==null?void 0:w.docs,source:{originalSource:`args => { return
    @@ -195,4 +195,3 @@ import{j as t,a as e}from"./tw-merge-fe695a60.js";import{I as a}from"./index-ef4
    ; }`,...(xe=(Ce=B.parameters)==null?void 0:Ce.docs)==null?void 0:xe.source}}};const He=["Default","BadgeWithText","ForButton","ForTab","ForAvatar","ForInput","ButtonAsIndicatorForCard","InCenterOfImage","TopAndStart","TopAndCenter","TopAndEnd","MiddleAndStart","MiddleAndCenter","MiddleAndEnd","BottomAndStart","BottomAndCenter","BottomAndEnd","Multiple","Responsive"];export{T as BadgeWithText,b as BottomAndCenter,h as BottomAndEnd,N as BottomAndStart,i as ButtonAsIndicatorForCard,n as Default,A as ForAvatar,z as ForButton,d as ForInput,c as ForTab,m as InCenterOfImage,u as MiddleAndCenter,I as MiddleAndEnd,p as MiddleAndStart,v as Multiple,B as Responsive,g as TopAndCenter,S as TopAndEnd,l as TopAndStart,He as __namedExportsOrder,Ge as default}; -//# sourceMappingURL=Indicator.stories-bed5f78f.js.map diff --git a/docs/assets/Input.stories-695a54ef.js b/docs/assets/Input.stories-66d78c5c.js similarity index 91% rename from docs/assets/Input.stories-695a54ef.js rename to docs/assets/Input.stories-66d78c5c.js index 6813185b..91242f3f 100644 --- a/docs/assets/Input.stories-695a54ef.js +++ b/docs/assets/Input.stories-66d78c5c.js @@ -1,4 +1,4 @@ -import{a as e,j as t}from"./tw-merge-fe695a60.js";import{I as n}from"./index-04dafbc6.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";const x={title:"Data Input/Input",component:n,args:{placeholder:"Type here",className:"w-full max-w-xs",disabled:!1}},a=s=>e("div",{className:"flex w-full component-preview p-4 items-center justify-center gap-2 font-sans",children:e(n,{...s})}),l=s=>e("div",{className:"flex w-full component-preview p-4 items-center justify-center gap-2 font-sans",children:t("div",{className:"form-control w-full max-w-xs",children:[t("label",{className:"label",children:[e("span",{className:"label-text",children:"What is your name?"}),e("span",{className:"label-text-alt",children:"Alt label"})]}),e(n,{...s}),t("label",{className:"label",children:[e("span",{className:"label-text-alt",children:"Alt label"}),e("span",{className:"label-text-alt",children:"Alt label"})]})]})});var r,c,o;a.parameters={...a.parameters,docs:{...(r=a.parameters)==null?void 0:r.docs,source:{originalSource:`args => { +import{j as e,a as t}from"./tw-merge-0a3648bd.js";import{I as n}from"./index-0ee0d1a2.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";const x={title:"Data Input/Input",component:n,args:{placeholder:"Type here",className:"w-full max-w-xs",disabled:!1}},a=s=>e("div",{className:"flex w-full component-preview p-4 items-center justify-center gap-2 font-sans",children:e(n,{...s})}),l=s=>e("div",{className:"flex w-full component-preview p-4 items-center justify-center gap-2 font-sans",children:t("div",{className:"form-control w-full max-w-xs",children:[t("label",{className:"label",children:[e("span",{className:"label-text",children:"What is your name?"}),e("span",{className:"label-text-alt",children:"Alt label"})]}),e(n,{...s}),t("label",{className:"label",children:[e("span",{className:"label-text-alt",children:"Alt label"}),e("span",{className:"label-text-alt",children:"Alt label"})]})]})});var r,c,o;a.parameters={...a.parameters,docs:{...(r=a.parameters)==null?void 0:r.docs,source:{originalSource:`args => { return
    ; @@ -17,4 +17,3 @@ import{a as e,j as t}from"./tw-merge-fe695a60.js";import{I as n}from"./index-04d ; }`,...(i=(p=l.parameters)==null?void 0:p.docs)==null?void 0:i.source}}};const N=["Default","FormControlAndLabels"];export{a as Default,l as FormControlAndLabels,N as __namedExportsOrder,x as default}; -//# sourceMappingURL=Input.stories-695a54ef.js.map diff --git a/docs/assets/Input.stories-695a54ef.js.map b/docs/assets/Input.stories-695a54ef.js.map deleted file mode 100644 index a14f6466..00000000 --- a/docs/assets/Input.stories-695a54ef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Input.stories-695a54ef.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/InputGroup.stories-94555c36.js b/docs/assets/InputGroup.stories-94555c36.js deleted file mode 100644 index 34d00ff9..00000000 --- a/docs/assets/InputGroup.stories-94555c36.js +++ /dev/null @@ -1,72 +0,0 @@ -import{t as A,a as e,j as r}from"./tw-merge-fe695a60.js";import{r as B}from"./index-ebeaab24.js";import{c as M}from"./clsx.m-1229b3e0.js";import{F as a}from"./index-3a31de6a.js";import{I as o}from"./index-04dafbc6.js";import{S as p}from"./index-bab1dca3.js";import{B as V}from"./Button-28269a3e.js";import"./index-357fb5a8.js";const m=B.forwardRef(({children:t,size:u,vertical:L,dataTheme:T,className:j,..._},R)=>{const D=A("input-group",j,M({"input-group-lg":u==="lg","input-group-md":u==="md","input-group-sm":u==="sm","input-group-xs":u==="xs","input-group-vertical":L}));return e("label",{..._,"data-theme":T,className:D,ref:R,children:t})});m.displayName="InputGroup";const n=m;try{m.displayName="InputGroup",m.__docgenInfo={description:"",displayName:"InputGroup",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}}}}}catch{}const $={title:"Layout/InputGroup (Deprecated)",component:n},s=t=>r(a,{children:[e(a.Label,{title:"Enter amount"}),r(n,{...t,children:[e("span",{children:"Price"}),e(o,{type:"text",placeholder:"10",bordered:!0}),e("span",{children:"USD"})]})]});s.args={};const i=t=>r(a,{children:[e(a.Label,{title:"Your Email"}),r(n,{...t,children:[e("span",{children:"Email"}),e(o,{type:"text",placeholder:"sample@email.com",bordered:!0})]})]}),l=t=>r(a,{children:[e(a.Label,{title:"Your Email"}),r(n,{...t,children:[e("span",{children:"Email"}),e(o,{type:"text",placeholder:"Email here",bordered:!0})]})]});l.args={vertical:!0};const c=t=>r("div",{className:"flex flex-col justify-center items-center",children:[e(a,{className:"my-1",children:r(n,{size:"lg",children:[e("span",{children:"LG"}),e(o,{type:"text",placeholder:"Type here",bordered:!0,size:"lg"})]})}),e(a,{className:"my-1",children:r(n,{size:"md",children:[e("span",{children:"MD"}),e(o,{type:"text",placeholder:"Type here",bordered:!0,size:"md"})]})})," ",e(a,{className:"my-1",children:r(n,{size:"sm",children:[e("span",{children:"SM"}),e(o,{type:"text",placeholder:"Type here",bordered:!0,size:"sm"})]})}),e(a,{className:"my-1",children:r(n,{size:"xs",children:[e("span",{children:"XS"}),e(o,{type:"text",placeholder:"Type here",bordered:!0,size:"xs"})]})})]}),d=t=>e(a,{children:r(n,{...t,children:[r(p,{bordered:!0,children:[e(p.Option,{value:void 0,disabled:!0,selected:!0,children:"Pick your favorite framework"}),e(p.Option,{value:"React",children:"React"}),e(p.Option,{value:"Nextjs",children:"Nextjs"}),e(p.Option,{value:"Remix",children:"Remix"}),e(p.Option,{value:"Solidjs",children:"Solidjs"})]}),e(V,{children:"Submit"})]})});var h,x,y;s.parameters={...s.parameters,docs:{...(h=s.parameters)==null?void 0:h.docs,source:{originalSource:`args => { - return
    - - - - Price - - USD - -
    ; -}`,...(y=(x=s.parameters)==null?void 0:x.docs)==null?void 0:y.source}}};var I,S,g;i.parameters={...i.parameters,docs:{...(I=i.parameters)==null?void 0:I.docs,source:{originalSource:`args => { - return
    - - - - Email - - - ; -}`,...(g=(S=i.parameters)==null?void 0:S.docs)==null?void 0:g.source}}};var b,G,f;l.parameters={...l.parameters,docs:{...(b=l.parameters)==null?void 0:b.docs,source:{originalSource:`args => { - return
    - - - - Email - - - ; -}`,...(f=(G=l.parameters)==null?void 0:G.docs)==null?void 0:f.source}}};var v,F,z;c.parameters={...c.parameters,docs:{...(v=c.parameters)==null?void 0:v.docs,source:{originalSource:`args => { - return
    -
    - - LG - - -
    -
    - - MD - - -
    {' '} -
    - - SM - - -
    -
    - - XS - - -
    -
    ; -}`,...(z=(F=c.parameters)==null?void 0:F.docs)==null?void 0:z.source}}};var N,O,E;d.parameters={...d.parameters,docs:{...(N=d.parameters)==null?void 0:N.docs,source:{originalSource:`args => { - return
    - - - - -
    ; -}`,...(E=(O=d.parameters)==null?void 0:O.docs)==null?void 0:E.source}}};const C=["Default","HorizontalGroupLabelAndTextInput","VerticalGroupLabelAndTextInput","Sizes","GroupSelectAndButton"];export{s as Default,d as GroupSelectAndButton,i as HorizontalGroupLabelAndTextInput,c as Sizes,l as VerticalGroupLabelAndTextInput,C as __namedExportsOrder,$ as default}; -//# sourceMappingURL=InputGroup.stories-94555c36.js.map diff --git a/docs/assets/InputGroup.stories-94555c36.js.map b/docs/assets/InputGroup.stories-94555c36.js.map deleted file mode 100644 index bbf12b78..00000000 --- a/docs/assets/InputGroup.stories-94555c36.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputGroup.stories-94555c36.js","sources":["../../src/InputGroup/InputGroup.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps, ComponentSize } from '../types'\n\nexport type InputGroupProps = React.LabelHTMLAttributes &\n IComponentBaseProps & {\n size?: ComponentSize\n vertical?: boolean\n }\n\nconst InputGroup = forwardRef(\n (\n { children, size, vertical, dataTheme, className, ...props },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n 'input-group',\n className,\n clsx({\n 'input-group-lg': size === 'lg',\n 'input-group-md': size === 'md',\n 'input-group-sm': size === 'sm',\n 'input-group-xs': size === 'xs',\n 'input-group-vertical': vertical,\n })\n )\n\n return (\n \n )\n }\n)\n\nInputGroup.displayName = 'InputGroup'\n\nexport default InputGroup\n"],"names":["InputGroup","forwardRef","children","size","vertical","dataTheme","className","props","ref","classes","twMerge","clsx","jsx","InputGroup$1"],"mappings":"uUAYA,MAAAA,EAAAC,EAAA,WAAmB,CAAA,CAAA,SAAAC,EAAA,KAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,UAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAKf,MAAAC,EAAAC,EAAgB,cACdJ,EACAK,EAAA,CACK,iBAAAR,IAAA,KACwB,iBAAAA,IAAA,KACA,iBAAAA,IAAA,KACA,iBAAAA,IAAA,KACA,uBAAAC,CACH,CAAA,CACzB,EAGH,OAAAQ,EAAA,QAAA,CAAA,GAAAL,EAAA,aAAAF,EAAA,UAAAI,EAAA,IAAAD,EAAA,SAAAN,CAAA,CAAA,CAGE,CAGN,EAEAF,EAAA,YAAA,aAEA,MAAAa,EAAAb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Join-09755b13.js.map b/docs/assets/Join-09755b13.js.map deleted file mode 100644 index 3236963b..00000000 --- a/docs/assets/Join-09755b13.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Join-09755b13.js","sources":["../../src/Join/Join.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps } from '../types'\n\nexport type JoinProps = React.HTMLAttributes &\n IComponentBaseProps & {\n responsive?: boolean\n vertical?: boolean\n horizontal?: boolean\n }\n\nconst Join = forwardRef(\n (\n {\n dataTheme,\n className,\n children,\n responsive,\n vertical,\n horizontal,\n ...props\n },\n ref\n ): JSX.Element => {\n const classes = twMerge(\n 'join',\n clsx({\n 'join-vertical': !responsive && vertical,\n 'join-horizontal': !responsive && horizontal,\n 'join-vertical lg:join-horizontal': responsive,\n }),\n className\n )\n\n return (\n
    \n {children}\n
    \n )\n }\n)\n\nJoin.displayName = 'Join'\n\nexport default Join\n"],"names":["Join","forwardRef","dataTheme","className","children","responsive","vertical","horizontal","props","ref","classes","twMerge","clsx","jsx","Join$1"],"mappings":"mIAaA,MAAAA,EAAAC,EAAA,WAAa,CAAA,CAET,UAAAC,EACE,UAAAC,EACA,SAAAC,EACA,WAAAC,EACA,SAAAC,EACA,WAAAC,EACA,GAAAC,CACG,EAAAC,IAAA,CAIL,MAAAC,EAAAC,EAAgB,OACdC,EAAA,CACK,gBAAA,CAAAP,GAAAC,EAC6B,kBAAA,CAAAD,GAAAE,EACE,mCAAAF,CACE,CAAA,EACrCF,CACD,EAGF,OAAAU,EAAA,MAAA,CAAA,GAAAL,EAAA,aAAAN,EAAA,UAAAQ,EAAA,IAAAD,EAAA,SAAAL,CAAA,CAAA,CAGE,CAGN,EAEAJ,EAAA,YAAA,OAEA,MAAAc,EAAAd"} \ No newline at end of file diff --git a/docs/assets/Join-09755b13.js b/docs/assets/Join-47e05b2f.js similarity index 82% rename from docs/assets/Join-09755b13.js rename to docs/assets/Join-47e05b2f.js index 8d46e682..d7754482 100644 --- a/docs/assets/Join-09755b13.js +++ b/docs/assets/Join-47e05b2f.js @@ -1,2 +1 @@ -import{t as c,a as m}from"./tw-merge-fe695a60.js";import{r as p}from"./index-ebeaab24.js";import{c as u}from"./clsx.m-1229b3e0.js";const e=p.forwardRef(({dataTheme:o,className:r,children:t,responsive:a,vertical:n,horizontal:i,...l},s)=>{const d=c("join",u({"join-vertical":!a&&n,"join-horizontal":!a&&i,"join-vertical lg:join-horizontal":a}),r);return m("div",{...l,"data-theme":o,className:d,ref:s,children:t})});e.displayName="Join";const _=e;try{e.displayName="Join",e.__docgenInfo={description:"",displayName:"Join",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}}}}}catch{}export{_ as J}; -//# sourceMappingURL=Join-09755b13.js.map +import{t as c,j as m}from"./tw-merge-0a3648bd.js";import{r as p}from"./index-1b03fe98.js";import{c as u}from"./clsx.m-1229b3e0.js";const e=p.forwardRef(({dataTheme:o,className:r,children:t,responsive:a,vertical:n,horizontal:i,...l},s)=>{const d=c("join",u({"join-vertical":!a&&n,"join-horizontal":!a&&i,"join-vertical lg:join-horizontal":a}),r);return m("div",{...l,"data-theme":o,className:d,ref:s,children:t})});e.displayName="Join";const _=e;try{e.displayName="Join",e.__docgenInfo={description:"",displayName:"Join",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"boolean"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}}}}}catch{}export{_ as J}; diff --git a/docs/assets/Join.stories-9aa12067.js b/docs/assets/Join.stories-9383d512.js similarity index 57% rename from docs/assets/Join.stories-9aa12067.js rename to docs/assets/Join.stories-9383d512.js index ccac0da5..f806ff78 100644 --- a/docs/assets/Join.stories-9aa12067.js +++ b/docs/assets/Join.stories-9383d512.js @@ -1,4 +1,4 @@ -import{j as a,a as e}from"./tw-merge-fe695a60.js";import{J as o}from"./Join-09755b13.js";import{B as n}from"./Button-28269a3e.js";import{I as v}from"./index-04dafbc6.js";import{S as r}from"./index-bab1dca3.js";import{I as d}from"./index-ef45bb0a.js";import{B as E}from"./index-bee62e41.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const L={title:"Layout/Join (group items)",component:o},i=t=>a(o,{...t,children:[e(n,{className:"join-item",children:"Button"}),e(n,{className:"join-item",children:"Button"}),e(n,{className:"join-item",children:"Button"})]});i.args={};const s=t=>a(o,{...t,children:[e(n,{className:"join-item",children:"Button"}),e(n,{className:"join-item",children:"Button"}),e(n,{className:"join-item",children:"Button"})]});s.args={vertical:!0};const c=t=>a(o,{...t,children:[e("div",{children:e("div",{children:e(v,{className:"join-item",placeholder:"Search..."})})}),a(r,{className:"join-item",children:[e(r.Option,{selected:!0,disabled:!0,children:"Category"}),e(r.Option,{children:"Sci-fi"}),e(r.Option,{children:"Drama"}),e(r.Option,{children:"Action"})]}),a(d,{children:[e(E,{color:"secondary",className:d.Item.className(),children:"new"}),e(n,{className:"join-item",children:"Search"})]})]});c.args={};const m=t=>a(o,{...t,children:[e(v,{className:"join-item",placeholder:"Email"}),e(n,{className:"join-item rounded-r-full",children:"Subscribe"})]});m.args={};const l=t=>a(o,{...t,children:[e("input",{className:"join-item btn",type:"radio",name:"options","aria-label":"Radio 1"}),e("input",{className:"join-item btn",type:"radio",name:"options","aria-label":"Radio 2"}),e("input",{className:"join-item btn",type:"radio",name:"options","aria-label":"Radio 3"})]});l.args={};var u,p,B;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:`args => { +import{a,j as e}from"./tw-merge-0a3648bd.js";import{J as o}from"./Join-47e05b2f.js";import{B as n}from"./Button-e9ac0f78.js";import{I as v}from"./index-0ee0d1a2.js";import{S as r}from"./index-cdac515a.js";import{I as d}from"./index-e97e44e7.js";import{B as E}from"./index-ccb0f6f2.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const L={title:"Layout/Join (group items)",component:o},i=t=>a(o,{...t,children:[e(n,{className:"join-item",children:"Button"}),e(n,{className:"join-item",children:"Button"}),e(n,{className:"join-item",children:"Button"})]});i.args={};const s=t=>a(o,{...t,children:[e(n,{className:"join-item",children:"Button"}),e(n,{className:"join-item",children:"Button"}),e(n,{className:"join-item",children:"Button"})]});s.args={vertical:!0};const c=t=>a(o,{...t,children:[e("div",{children:e("div",{children:e(v,{className:"join-item",placeholder:"Search..."})})}),a(r,{className:"join-item",children:[e(r.Option,{selected:!0,disabled:!0,children:"Category"}),e(r.Option,{children:"Sci-fi"}),e(r.Option,{children:"Drama"}),e(r.Option,{children:"Action"})]}),a(d,{children:[e(E,{color:"secondary",className:d.Item.className(),children:"new"}),e(n,{className:"join-item",children:"Search"})]})]});c.args={};const m=t=>a(o,{...t,children:[e(v,{className:"join-item",placeholder:"Email"}),e(n,{className:"join-item rounded-r-full",children:"Subscribe"})]});m.args={};const l=t=>a(o,{...t,children:[e("input",{className:"join-item btn",type:"radio",name:"options","aria-label":"Radio 1"}),e("input",{className:"join-item btn",type:"radio",name:"options","aria-label":"Radio 2"}),e("input",{className:"join-item btn",type:"radio",name:"options","aria-label":"Radio 3"})]});l.args={};var u,p,B;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:`args => { return @@ -44,4 +44,3 @@ import{j as a,a as e}from"./tw-merge-fe695a60.js";import{J as o}from"./Join-0975 ; }`,...(R=(O=l.parameters)==null?void 0:O.docs)==null?void 0:R.source}}};const k=["Default","Vertically","ExtraElementsInTheGroup","CustomBorderRadius","RadioInputsWithBtnStyle"];export{m as CustomBorderRadius,i as Default,c as ExtraElementsInTheGroup,l as RadioInputsWithBtnStyle,s as Vertically,k as __namedExportsOrder,L as default}; -//# sourceMappingURL=Join.stories-9aa12067.js.map diff --git a/docs/assets/Join.stories-9aa12067.js.map b/docs/assets/Join.stories-9aa12067.js.map deleted file mode 100644 index 99de9240..00000000 --- a/docs/assets/Join.stories-9aa12067.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Join.stories-9aa12067.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Kbd.stories-a7318563.js b/docs/assets/Kbd.stories-68acbd4b.js similarity index 97% rename from docs/assets/Kbd.stories-a7318563.js rename to docs/assets/Kbd.stories-68acbd4b.js index f94f8819..01c3485b 100644 --- a/docs/assets/Kbd.stories-a7318563.js +++ b/docs/assets/Kbd.stories-68acbd4b.js @@ -1,4 +1,4 @@ -import{t as C,a as r,F as b,j as n}from"./tw-merge-fe695a60.js";import{r as E}from"./index-ebeaab24.js";import{c as P}from"./clsx.m-1229b3e0.js";const K=E.forwardRef(({children:e,size:s,dataTheme:A,className:D,...I},V)=>{const z=C("kbd",D,P({"kbd-lg":s==="lg","kbd-md":s==="md","kbd-sm":s==="sm","kbd-xs":s==="xs"}));return r("kbd",{...I,"data-theme":A,className:z,ref:V,children:e})}),d=K;try{K.displayName="Kbd",K.__docgenInfo={description:"",displayName:"Kbd",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}}}}}catch{}try{d.displayName="Kbd",d.__docgenInfo={description:"",displayName:"Kbd",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}}}}}catch{}const $={title:"Data Display/Kbd",component:d},l=e=>r(b,{children:r(d,{...e,children:"A"})}),a=e=>n("div",{className:"font-sans",children:["Press ",r(d,{...e,children:"F"})," to pay respects."]});a.args={};const c=e=>n(b,{children:[r(d,{...e,children:"ctrl"}),"+",r(d,{...e,children:"shift"}),"+",r(d,{...e,children:"del"})]}),t=e=>n(b,{children:[r(d,{...e,children:"⌘"}),r(d,{...e,children:"⌥"}),r(d,{...e,children:"⇧"}),r(d,{...e,children:"⌃"})]}),i=e=>n("div",{className:"overflow-x-auto",children:[n("div",{className:"flex justify-center gap-1 w-full",children:[r(d,{...e,children:"q"}),r(d,{...e,children:"w"}),r(d,{...e,children:"e"}),r(d,{...e,children:"r"}),r(d,{...e,children:"t"}),r(d,{...e,children:"y"}),r(d,{...e,children:"u"}),r(d,{...e,children:"i"}),r(d,{...e,children:"o"}),r(d,{...e,children:"p"})]}),n("div",{className:"flex justify-center gap-1 my-1 w-full",children:[r(d,{...e,children:"a"}),r(d,{...e,children:"s"}),r(d,{...e,children:"d"}),r(d,{...e,children:"f"}),r(d,{...e,children:"g"}),r(d,{...e,children:"h"}),r(d,{...e,children:"j"}),r(d,{...e,children:"k"}),r(d,{...e,children:"l"})]}),n("div",{className:"flex justify-center gap-1 my-1 w-full",children:[r(d,{...e,children:"z"}),r(d,{...e,children:"x"}),r(d,{...e,children:"c"}),r(d,{...e,children:"v"}),r(d,{...e,children:"b"}),r(d,{...e,children:"n"}),r(d,{...e,children:"m"}),r(d,{...e,children:"/"})]})]}),o=e=>n(b,{children:[r("div",{className:"flex justify-center w-full",children:r(d,{...e,children:"▲"})}),n("div",{className:"flex justify-center gap-12 w-full",children:[r(d,{...e,children:"◀︎"}),r(d,{...e,children:"▶︎"})]}),r("div",{className:"flex justify-center w-full",children:r(d,{...e,children:"▼"})})]});var u,m,p;l.parameters={...l.parameters,docs:{...(u=l.parameters)==null?void 0:u.docs,source:{originalSource:`args => { +import{t as C,j as r,F as b,a as n}from"./tw-merge-0a3648bd.js";import{r as E}from"./index-1b03fe98.js";import{c as P}from"./clsx.m-1229b3e0.js";const K=E.forwardRef(({children:e,size:s,dataTheme:A,className:D,...I},V)=>{const z=C("kbd",D,P({"kbd-lg":s==="lg","kbd-md":s==="md","kbd-sm":s==="sm","kbd-xs":s==="xs"}));return r("kbd",{...I,"data-theme":A,className:z,ref:V,children:e})}),d=K;try{K.displayName="Kbd",K.__docgenInfo={description:"",displayName:"Kbd",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}}}}}catch{}try{d.displayName="Kbd",d.__docgenInfo={description:"",displayName:"Kbd",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'},{value:'"sm"'},{value:'"xs"'}]}}}}}catch{}const $={title:"Data Display/Kbd",component:d},l=e=>r(b,{children:r(d,{...e,children:"A"})}),a=e=>n("div",{className:"font-sans",children:["Press ",r(d,{...e,children:"F"})," to pay respects."]});a.args={};const c=e=>n(b,{children:[r(d,{...e,children:"ctrl"}),"+",r(d,{...e,children:"shift"}),"+",r(d,{...e,children:"del"})]}),t=e=>n(b,{children:[r(d,{...e,children:"⌘"}),r(d,{...e,children:"⌥"}),r(d,{...e,children:"⇧"}),r(d,{...e,children:"⌃"})]}),i=e=>n("div",{className:"overflow-x-auto",children:[n("div",{className:"flex justify-center gap-1 w-full",children:[r(d,{...e,children:"q"}),r(d,{...e,children:"w"}),r(d,{...e,children:"e"}),r(d,{...e,children:"r"}),r(d,{...e,children:"t"}),r(d,{...e,children:"y"}),r(d,{...e,children:"u"}),r(d,{...e,children:"i"}),r(d,{...e,children:"o"}),r(d,{...e,children:"p"})]}),n("div",{className:"flex justify-center gap-1 my-1 w-full",children:[r(d,{...e,children:"a"}),r(d,{...e,children:"s"}),r(d,{...e,children:"d"}),r(d,{...e,children:"f"}),r(d,{...e,children:"g"}),r(d,{...e,children:"h"}),r(d,{...e,children:"j"}),r(d,{...e,children:"k"}),r(d,{...e,children:"l"})]}),n("div",{className:"flex justify-center gap-1 my-1 w-full",children:[r(d,{...e,children:"z"}),r(d,{...e,children:"x"}),r(d,{...e,children:"c"}),r(d,{...e,children:"v"}),r(d,{...e,children:"b"}),r(d,{...e,children:"n"}),r(d,{...e,children:"m"}),r(d,{...e,children:"/"})]})]}),o=e=>n(b,{children:[r("div",{className:"flex justify-center w-full",children:r(d,{...e,children:"▲"})}),n("div",{className:"flex justify-center gap-12 w-full",children:[r(d,{...e,children:"◀︎"}),r(d,{...e,children:"▶︎"})]}),r("div",{className:"flex justify-center w-full",children:r(d,{...e,children:"▼"})})]});var u,m,p;l.parameters={...l.parameters,docs:{...(u=l.parameters)==null?void 0:u.docs,source:{originalSource:`args => { return <> A ; @@ -68,4 +68,3 @@ import{t as C,a as r,F as b,j as n}from"./tw-merge-fe695a60.js";import{r as E}fr ; }`,...(T=(S=o.parameters)==null?void 0:S.docs)==null?void 0:T.source}}};const B=["Default","InText","KeyCombination","FunctionKeys","FullKeyboard","ArrowKeys"];export{o as ArrowKeys,l as Default,i as FullKeyboard,t as FunctionKeys,a as InText,c as KeyCombination,B as __namedExportsOrder,$ as default}; -//# sourceMappingURL=Kbd.stories-a7318563.js.map diff --git a/docs/assets/Kbd.stories-a7318563.js.map b/docs/assets/Kbd.stories-a7318563.js.map deleted file mode 100644 index 2d5a4481..00000000 --- a/docs/assets/Kbd.stories-a7318563.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Kbd.stories-a7318563.js","sources":["../../src/Kbd/Kbd.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport clsx from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nimport { IComponentBaseProps, ComponentSize } from '../types'\n\nexport type KbdProps = React.HTMLAttributes &\n IComponentBaseProps & {\n size?: ComponentSize\n }\n\nconst Kbd = forwardRef(\n ({ children, size, dataTheme, className, ...props }, ref): JSX.Element => {\n const classes = twMerge(\n 'kbd',\n className,\n clsx({\n 'kbd-lg': size === 'lg',\n 'kbd-md': size === 'md',\n 'kbd-sm': size === 'sm',\n 'kbd-xs': size === 'xs',\n })\n )\n\n return (\n \n {children}\n \n )\n }\n)\n\nexport default Kbd\n"],"names":["Kbd","forwardRef","children","size","dataTheme","className","props","ref","classes","twMerge","clsx","jsx","Kbd$1"],"mappings":"iJAWA,MAAAA,EAAAC,EAAA,WAAY,CAAA,CAAA,SAAAC,EAAA,KAAAC,EAAA,UAAAC,EAAA,UAAAC,EAAA,GAAAC,CAAA,EAAAC,IAAA,CAER,MAAAC,EAAAC,EAAgB,MACdJ,EACAK,EAAA,CACK,SAAAP,IAAA,KACgB,SAAAA,IAAA,KACA,SAAAA,IAAA,KACA,SAAAA,IAAA,IACA,CAAA,CACpB,EAGH,OAAAQ,EAAA,MAAA,CAAA,GAAAL,EAAA,aAAAF,EAAA,UAAAI,EAAA,IAAAD,EAAA,SAAAL,CAAA,CAAA,CAGE,CAGN,EAEAU,EAAAZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Link.stories-815a71f6.js.map b/docs/assets/Link.stories-815a71f6.js.map deleted file mode 100644 index da99f19e..00000000 --- a/docs/assets/Link.stories-815a71f6.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Link.stories-815a71f6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"} \ No newline at end of file diff --git a/docs/assets/Link.stories-815a71f6.js b/docs/assets/Link.stories-a56412a8.js similarity index 65% rename from docs/assets/Link.stories-815a71f6.js rename to docs/assets/Link.stories-a56412a8.js index c231e2b3..90be06a5 100644 --- a/docs/assets/Link.stories-815a71f6.js +++ b/docs/assets/Link.stories-a56412a8.js @@ -1,8 +1,7 @@ -import{a as p}from"./tw-merge-fe695a60.js";import{L as s}from"./index-b1e8f807.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";const d={title:"Navigation/Link",component:s},r=t=>p(s,{...t,children:"It's just a simple link"});r.args={};const e=t=>p(s,{...t,href:"https://google.com",target:"_blank",children:"Take me to Google!"});e.args={};var a,o,n;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`args => { +import{j as p}from"./tw-merge-0a3648bd.js";import{L as s}from"./index-6329c95a.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";const d={title:"Navigation/Link",component:s},r=t=>p(s,{...t,children:"It's just a simple link"});r.args={};const e=t=>p(s,{...t,href:"https://google.com",target:"_blank",children:"Take me to Google!"});e.args={};var o,a,n;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`args => { return It's just a simple link; -}`,...(n=(o=r.parameters)==null?void 0:o.docs)==null?void 0:n.source}}};var i,m,c;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`args => { +}`,...(n=(a=r.parameters)==null?void 0:a.docs)==null?void 0:n.source}}};var i,m,c;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`args => { return Take me to Google! ; }`,...(c=(m=e.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const L=["Default","LinkWithHref"];export{r as Default,e as LinkWithHref,L as __namedExportsOrder,d as default}; -//# sourceMappingURL=Link.stories-815a71f6.js.map diff --git a/docs/assets/Loading.stories-b78468ff.js b/docs/assets/Loading.stories-4d6dd8ad.js similarity index 56% rename from docs/assets/Loading.stories-b78468ff.js rename to docs/assets/Loading.stories-4d6dd8ad.js index e99d9e50..819b107d 100644 --- a/docs/assets/Loading.stories-b78468ff.js +++ b/docs/assets/Loading.stories-4d6dd8ad.js @@ -1,4 +1,4 @@ -import{a,j as t}from"./tw-merge-fe695a60.js";import{L as n}from"./index-357fb5a8.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";const j={title:"Data Display/Loading",component:n,parameters:{controls:{expanded:!0}}},h=r=>a(n,{...r}),o=h.bind({});o.args={variant:"spinner"};const s=r=>a("div",{children:t("div",{children:[a(n,{...r}),a(n,{...r,color:"primary"}),a(n,{...r,color:"secondary"}),a(n,{...r,color:"success"}),a(n,{...r,color:"warning"}),a(n,{...r,color:"error"}),a(n,{...r,color:"info"}),a(n,{...r,color:"accent"}),a(n,{...r,color:"ghost"})]})});s.args={className:"m-1"};const e=r=>t("div",{className:"flex gap-x-2",children:[a(n,{...r}),a(n,{...r,variant:"dots"}),a(n,{...r,variant:"ring"}),a(n,{...r,variant:"ball"}),a(n,{...r,variant:"bars"}),a(n,{...r,variant:"infinity"})]}),i=r=>a("div",{children:t("div",{children:[a(n,{...r,size:"xs"}),a(n,{...r,size:"sm"}),a(n,{...r,size:"md"}),a(n,{...r,size:"lg"})]})});var c,d,g;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`args => { +import{j as a,a as t}from"./tw-merge-0a3648bd.js";import{L as n}from"./index-a55c3a76.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";const N={title:"Feedback/Loading",component:n,parameters:{controls:{expanded:!0}}},h=r=>a(n,{...r}),o=h.bind({});o.args={variant:"spinner"};const s=r=>a("div",{children:t("div",{children:[a(n,{...r}),a(n,{...r,color:"primary"}),a(n,{...r,color:"secondary"}),a(n,{...r,color:"success"}),a(n,{...r,color:"warning"}),a(n,{...r,color:"error"}),a(n,{...r,color:"info"}),a(n,{...r,color:"accent"}),a(n,{...r,color:"ghost"})]})});s.args={className:"m-1"};const e=r=>t("div",{className:"flex gap-x-2",children:[a(n,{...r}),a(n,{...r,variant:"dots"}),a(n,{...r,variant:"ring"}),a(n,{...r,variant:"ball"}),a(n,{...r,variant:"bars"}),a(n,{...r,variant:"infinity"})]}),i=r=>a("div",{children:t("div",{children:[a(n,{...r,size:"xs"}),a(n,{...r,size:"sm"}),a(n,{...r,size:"md"}),a(n,{...r,size:"lg"})]})});var c,d,g;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`args => { return ; }`,...(g=(d=o.parameters)==null?void 0:d.docs)==null?void 0:g.source}}};var l,m,p;s.parameters={...s.parameters,docs:{...(l=s.parameters)==null?void 0:l.docs,source:{originalSource:`args => { return
    @@ -32,5 +32,4 @@ import{a,j as t}from"./tw-merge-fe695a60.js";import{L as n}from"./index-357fb5a8
    ; -}`,...(z=(x=i.parameters)==null?void 0:x.docs)==null?void 0:z.source}}};const N=["Default","Colors","Variants","Sizes"];export{s as Colors,o as Default,i as Sizes,e as Variants,N as __namedExportsOrder,j as default}; -//# sourceMappingURL=Loading.stories-b78468ff.js.map +}`,...(z=(x=i.parameters)==null?void 0:x.docs)==null?void 0:z.source}}};const w=["Default","Colors","Variants","Sizes"];export{s as Colors,o as Default,i as Sizes,e as Variants,w as __namedExportsOrder,N as default}; diff --git a/docs/assets/Loading.stories-b78468ff.js.map b/docs/assets/Loading.stories-b78468ff.js.map deleted file mode 100644 index 71e95011..00000000 --- a/docs/assets/Loading.stories-b78468ff.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Loading.stories-b78468ff.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Mask.stories-1eb8a2ed.js b/docs/assets/Mask.stories-07003ec5.js similarity index 97% rename from docs/assets/Mask.stories-1eb8a2ed.js rename to docs/assets/Mask.stories-07003ec5.js index 3b0c9f38..3abe0498 100644 --- a/docs/assets/Mask.stories-1eb8a2ed.js +++ b/docs/assets/Mask.stories-07003ec5.js @@ -1,4 +1,4 @@ -import{a as s}from"./tw-merge-fe695a60.js";import{M as a}from"./index-348f1b10.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";const fr={title:"Layout/Mask",component:a},e=r=>s(a,{...r});e.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"squircle"};const o=r=>s(a,{...r});o.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"heart"};const t=r=>s(a,{...r});t.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"hexagon"};const c=r=>s(a,{...r});c.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"hexagon-2"};const n=r=>s(a,{...r});n.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"decagon"};const g=r=>s(a,{...r});g.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"pentagon"};const p=r=>s(a,{...r});p.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"diamond"};const i=r=>s(a,{...r});i.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"square"};const m=r=>s(a,{...r});m.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"circle"};const u=r=>s(a,{...r});u.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"parallelogram"};const d=r=>s(a,{...r});d.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"parallelogram-2"};const l=r=>s(a,{...r});l.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"parallelogram-3"};const h=r=>s(a,{...r});h.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"parallelogram-4"};const k=r=>s(a,{...r});k.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"star"};const b=r=>s(a,{...r});b.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"star-2"};const M=r=>s(a,{...r});M.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"triangle"};const S=r=>s(a,{...r});S.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"triangle-2"};const j=r=>s(a,{...r});j.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"triangle-3"};const y=r=>s(a,{...r});y.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"triangle-4"};var T,v,P;e.parameters={...e.parameters,docs:{...(T=e.parameters)==null?void 0:T.docs,source:{originalSource:`args => { +import{j as s}from"./tw-merge-0a3648bd.js";import{M as a}from"./index-3802c17c.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";const fr={title:"Layout/Mask",component:a},e=r=>s(a,{...r});e.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"squircle"};const o=r=>s(a,{...r});o.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"heart"};const t=r=>s(a,{...r});t.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"hexagon"};const c=r=>s(a,{...r});c.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"hexagon-2"};const n=r=>s(a,{...r});n.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"decagon"};const g=r=>s(a,{...r});g.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"pentagon"};const p=r=>s(a,{...r});p.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"diamond"};const i=r=>s(a,{...r});i.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"square"};const m=r=>s(a,{...r});m.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"circle"};const u=r=>s(a,{...r});u.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"parallelogram"};const d=r=>s(a,{...r});d.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"parallelogram-2"};const l=r=>s(a,{...r});l.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"parallelogram-3"};const h=r=>s(a,{...r});h.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"parallelogram-4"};const k=r=>s(a,{...r});k.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"star"};const b=r=>s(a,{...r});b.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"star-2"};const M=r=>s(a,{...r});M.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"triangle"};const S=r=>s(a,{...r});S.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"triangle-2"};const j=r=>s(a,{...r});j.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"triangle-3"};const y=r=>s(a,{...r});y.args={src:"https://daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.jpg",variant:"triangle-4"};var T,v,P;e.parameters={...e.parameters,docs:{...(T=e.parameters)==null?void 0:T.docs,source:{originalSource:`args => { return ; }`,...(P=(v=e.parameters)==null?void 0:v.docs)==null?void 0:P.source}}};var x,w,D;o.parameters={...o.parameters,docs:{...(x=o.parameters)==null?void 0:x.docs,source:{originalSource:`args => { return ; @@ -37,4 +37,3 @@ import{a as s}from"./tw-merge-fe695a60.js";import{M as a}from"./index-348f1b10.j }`,...(yr=(jr=j.parameters)==null?void 0:jr.docs)==null?void 0:yr.source}}};var Tr,vr,Pr;y.parameters={...y.parameters,docs:{...(Tr=y.parameters)==null?void 0:Tr.docs,source:{originalSource:`args => { return ; }`,...(Pr=(vr=y.parameters)==null?void 0:vr.docs)==null?void 0:Pr.source}}};const qr=["Default","MaskHeart","Hexagon","HexagonTwo","Decagon","Pentagon","Diamond","Square","Circle","Parallelogram","ParallelogramTwo","ParallelogramThree","ParallelogramFour","Star","StarTwo","Triangle","TriangleTwo","TriangleThree","TriangleFour"];export{m as Circle,n as Decagon,e as Default,p as Diamond,t as Hexagon,c as HexagonTwo,o as MaskHeart,u as Parallelogram,h as ParallelogramFour,l as ParallelogramThree,d as ParallelogramTwo,g as Pentagon,i as Square,k as Star,b as StarTwo,M as Triangle,y as TriangleFour,j as TriangleThree,S as TriangleTwo,qr as __namedExportsOrder,fr as default}; -//# sourceMappingURL=Mask.stories-1eb8a2ed.js.map diff --git a/docs/assets/Mask.stories-1eb8a2ed.js.map b/docs/assets/Mask.stories-1eb8a2ed.js.map deleted file mode 100644 index 726f7020..00000000 --- a/docs/assets/Mask.stories-1eb8a2ed.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Mask.stories-1eb8a2ed.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Menu.stories-ee2c97cd.js b/docs/assets/Menu.stories-1416ca38.js similarity index 99% rename from docs/assets/Menu.stories-ee2c97cd.js rename to docs/assets/Menu.stories-1416ca38.js index ea527360..997fc3ba 100644 --- a/docs/assets/Menu.stories-ee2c97cd.js +++ b/docs/assets/Menu.stories-1416ca38.js @@ -1,4 +1,4 @@ -import{j as r,a as e,F as B}from"./tw-merge-fe695a60.js";import{r as H}from"./index-ebeaab24.js";import{M as n}from"./index-5474795c.js";import{T as a}from"./index-02e00647.js";import{B as j}from"./index-bee62e41.js";import"./clsx.m-1229b3e0.js";const W={control:"select",options:[!0,!1,"xs","sm","md","lg"]},tn={title:"Navigation/Menu",component:n,args:{className:"bg-base-100 w-56 shadow-xl"},argTypes:{compact:W,normal:W,horizontal:W,vertical:W}},s=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});s.args={className:"bg-base-200 w-56 rounded-box"};const o=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});o.args={className:"bg-base-200 rounded-box",responsive:!0};const l=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})})}),e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})})]});l.args={className:"bg-base-200 rounded-box"};const m=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})})}),e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})})]});m.args={className:"bg-base-200 rounded-box",horizontal:!0};const i=t=>r(n,{...t,children:[e(n.Item,{children:e(a,{message:"Home",position:"right",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})})}),e(n.Item,{children:e(a,{message:"Details",position:"right",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),e(n.Item,{children:e(a,{message:"Stats",position:"right",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})})]});i.args={className:"bg-base-200 rounded-box"};const c=t=>r(n,{...t,children:[e(n.Item,{children:e(a,{message:"Home",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})})}),e(n.Item,{children:e(a,{message:"Details",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),e(n.Item,{children:e(a,{message:"Stats",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})})]});c.args={className:"bg-base-200 rounded-box mt-6",horizontal:!0};const h=t=>r("div",{className:"flex flex-col gap-4",children:[r(n,{...t,size:"xs",children:[e(n.Item,{children:e("a",{children:"xs item 1"})}),e(n.Item,{children:e("a",{children:"xs item 1"})})]}),r(n,{...t,size:"sm",children:[e(n.Item,{children:e("a",{children:"sm item 1"})}),e(n.Item,{children:e("a",{children:"sm item 1"})})]}),r(n,{...t,size:"md",children:[e(n.Item,{children:e("a",{children:"md item 1"})}),e(n.Item,{children:e("a",{children:"md item 1"})})]}),r(n,{...t,size:"lg",children:[e(n.Item,{children:e("a",{children:"lg item 1"})}),e(n.Item,{children:e("a",{children:"lg item 1"})})]})]});h.args={className:"bg-base-200 w-56 rounded-box"};const u=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Enabled item 1"})}),e(n.Item,{disabled:!0,children:e("a",{children:"disabled item"})}),e(n.Item,{disabled:!0,children:e("a",{children:"disabled item"})})]});u.args={className:"bg-base-200 w-56 rounded-box"};const d=t=>r(n,{...t,children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Item 1"]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Item 2"]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})}),"Item 3"]})})]});d.args={className:"bg-base-200 w-56 rounded-box"};const I=t=>r(n,{...t,children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Inbox",e(j,{size:"sm",children:"99+"})]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Updates",e(j,{color:"warning",size:"sm",children:"NEW"})]})}),e(n.Item,{children:r("a",{children:["Stats",e(j,{color:"info",size:"xs"})]})})]});I.args={className:"bg-base-200 rounded-box",responsive:!0};const M=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});M.args={className:"bg-base-200 w-56 p-0 [&_li>*]:rounded-none"};const v=t=>r(n,{...t,children:[e(n.Title,{children:"Title"}),e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});v.args={className:"bg-base-200 w-56 rounded-box"};const g=t=>e(n,{...t,children:r(n.Item,{children:[e(n.Title,{children:"Title"}),r(n,{children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]})]})});g.args={className:"bg-base-200 w-56 rounded-box"};const p=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),r(n.Item,{children:[e("a",{children:"Parent"}),r(n,{children:[e(n.Item,{children:e("a",{children:"level 2 item 1"})}),e(n.Item,{children:e("a",{children:"level 2 item 2"})}),r(n.Item,{children:[e("a",{children:"Parent"}),r(n,{children:[e(n.Item,{children:e("a",{children:"level 3 item 1"})}),e(n.Item,{children:e("a",{children:"level 3 item 2"})})]})]})]})]}),e(n.Item,{children:e("a",{children:"Item 3"})})]});p.args={className:"bg-base-200 w-56 rounded-box"};const w=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:r(n.Details,{open:!0,label:"Parent",children:[e(n.Item,{children:e("a",{children:"level 2 item 1"})}),e(n.Item,{children:e("a",{children:"level 2 item 2"})}),e(n.Item,{children:r(n.Details,{open:!0,label:"Parent",children:[e(n.Item,{children:e("a",{children:"level 3 item 1"})}),e(n.Item,{children:e("a",{children:"level 3 item 2"})})]})})]})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});w.args={className:"bg-base-200 w-56 rounded-box"};const k=t=>{const[Je,S]=H.useState(!0),Qe=H.useCallback(()=>{S(Xe=>!Xe)},[S]);return r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:r(n.Dropdown,{label:"Parent",onClick:Qe,open:Je,children:[e(n.Item,{children:e("a",{children:"level 2 item 1"})}),e(n.Item,{children:e("a",{children:"level 2 item 2"})})]})})]})};k.args={className:"bg-base-200 w-56 rounded-box"};const x=t=>r(n,{...t,children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"resume.pdf"]})}),e(n.Item,{children:r(n.Details,{open:!0,label:r(B,{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})}),"My Files"]}),children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"Project-final.psd"]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"Project-final-2.psd"]})}),e(n.Item,{children:r(n.Details,{open:!0,label:r(B,{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})}),"Images"]}),children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}),"Screenshot1.png"]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}),"Screenshot2.png"]})}),e(n.Item,{children:e(n.Details,{open:!0,label:r(B,{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})}),"Others"]}),children:e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}),"Screenshot3.png"]})})})})]})})]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"reports-final-2.pdf"]})})]});x.args={className:"bg-base-200 w-56 rounded-lg max-w-xs w-full",size:"xs"};const b=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{className:"active",children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});b.args={className:"bg-base-200 w-56 rounded-box"};const L=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{className:"focus",children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});L.args={className:"bg-base-200 w-56 rounded-box"};const z=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});z.args={className:"bg-base-200 rounded-box",horizontal:!0};const N=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),r(n.Item,{children:[e("a",{children:"Parent"}),r(n,{children:[e(n.Item,{children:e("a",{children:"level2 Item 1"})}),e(n.Item,{children:e("a",{children:"level2 Item 2"})})]})]}),e(n.Item,{children:e("a",{children:"Item 3"})})]});N.args={className:"bg-base-200 rounded-box",horizontal:!0};const f=t=>r(n,{...t,children:[r(n.Item,{children:[e("a",{children:"Solutions"}),r(n,{children:[e(n.Item,{children:e("a",{children:"Design"})}),e(n.Item,{children:e("a",{children:"Development"})}),e(n.Item,{children:e("a",{children:"Hosting"})}),e(n.Item,{children:e("a",{children:"Domain register"})})]})]}),r(n.Item,{children:[e("a",{children:"Enterprise"}),r(n,{children:[e(n.Item,{children:e("a",{children:"CRM software"})}),e(n.Item,{children:e("a",{children:"Marketing management"})}),e(n.Item,{children:e("a",{children:"Security"})}),e(n.Item,{children:e("a",{children:"Consulting"})})]})]}),r(n.Item,{children:[e("a",{children:"Products"}),r(n,{children:[e(n.Item,{children:e("a",{children:"UI Kit"})}),e(n.Item,{children:e("a",{children:"Wordpress themes"})}),e(n.Item,{children:e("a",{children:"Wordpress plugins"})}),r(n.Item,{children:[e("a",{children:"Open source"}),r(n,{children:[e(n.Item,{children:e("a",{children:"Auth management system"})}),e(n.Item,{children:e("a",{children:"VScode theme"})}),e(n.Item,{children:e("a",{children:"Color picker app"})})]})]})]})]}),r(n.Item,{children:[e("a",{children:"Company"}),r(n,{children:[e(n.Item,{children:e("a",{children:"About us"})}),e(n.Item,{children:e("a",{children:"Contact us"})}),e(n.Item,{children:e("a",{children:"Privacy policy"})}),e(n.Item,{children:e("a",{children:"Press kit"})})]})]})]});f.args={className:"bg-base-200 rounded-box lg:min-w-max ",responsive:!0};const C=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:r(n.Details,{open:!0,label:"Parent item",children:[e(n.Item,{children:e("a",{children:"level 2 item 1"})}),e(n.Item,{children:e("a",{children:"level 2 item 2"})}),e(n.Item,{children:r(n.Details,{open:!0,label:"Parent",children:[e(n.Item,{children:e("a",{children:"item 1"})}),e(n.Item,{children:e("a",{children:"item 2"})})]})})]})}),e("li",{children:e("a",{children:"Item 3"})})]});C.args={className:"bg-base-200 rounded-box lg:mb-64",responsive:!0};var V,A,D;s.parameters={...s.parameters,docs:{...(V=s.parameters)==null?void 0:V.docs,source:{originalSource:`args => { +import{a as r,j as e,F as B}from"./tw-merge-0a3648bd.js";import{r as H}from"./index-1b03fe98.js";import{M as n}from"./index-44e44375.js";import{T as a}from"./index-6c8d164f.js";import{B as j}from"./index-ccb0f6f2.js";import"./clsx.m-1229b3e0.js";const W={control:"select",options:[!0,!1,"xs","sm","md","lg"]},tn={title:"Navigation/Menu",component:n,args:{className:"bg-base-100 w-56 shadow-xl"},argTypes:{compact:W,normal:W,horizontal:W,vertical:W}},s=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});s.args={className:"bg-base-200 w-56 rounded-box"};const o=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});o.args={className:"bg-base-200 rounded-box",responsive:!0};const l=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})})}),e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})})]});l.args={className:"bg-base-200 rounded-box"};const m=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})})}),e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),e(n.Item,{children:e("a",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})})]});m.args={className:"bg-base-200 rounded-box",horizontal:!0};const i=t=>r(n,{...t,children:[e(n.Item,{children:e(a,{message:"Home",position:"right",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})})}),e(n.Item,{children:e(a,{message:"Details",position:"right",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),e(n.Item,{children:e(a,{message:"Stats",position:"right",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})})]});i.args={className:"bg-base-200 rounded-box"};const c=t=>r(n,{...t,children:[e(n.Item,{children:e(a,{message:"Home",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})})}),e(n.Item,{children:e(a,{message:"Details",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),e(n.Item,{children:e(a,{message:"Stats",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})})})]});c.args={className:"bg-base-200 rounded-box mt-6",horizontal:!0};const h=t=>r("div",{className:"flex flex-col gap-4",children:[r(n,{...t,size:"xs",children:[e(n.Item,{children:e("a",{children:"xs item 1"})}),e(n.Item,{children:e("a",{children:"xs item 1"})})]}),r(n,{...t,size:"sm",children:[e(n.Item,{children:e("a",{children:"sm item 1"})}),e(n.Item,{children:e("a",{children:"sm item 1"})})]}),r(n,{...t,size:"md",children:[e(n.Item,{children:e("a",{children:"md item 1"})}),e(n.Item,{children:e("a",{children:"md item 1"})})]}),r(n,{...t,size:"lg",children:[e(n.Item,{children:e("a",{children:"lg item 1"})}),e(n.Item,{children:e("a",{children:"lg item 1"})})]})]});h.args={className:"bg-base-200 w-56 rounded-box"};const u=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Enabled item 1"})}),e(n.Item,{disabled:!0,children:e("a",{children:"disabled item"})}),e(n.Item,{disabled:!0,children:e("a",{children:"disabled item"})})]});u.args={className:"bg-base-200 w-56 rounded-box"};const d=t=>r(n,{...t,children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Item 1"]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Item 2"]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})}),"Item 3"]})})]});d.args={className:"bg-base-200 w-56 rounded-box"};const I=t=>r(n,{...t,children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Inbox",e(j,{size:"sm",children:"99+"})]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Updates",e(j,{color:"warning",size:"sm",children:"NEW"})]})}),e(n.Item,{children:r("a",{children:["Stats",e(j,{color:"info",size:"xs"})]})})]});I.args={className:"bg-base-200 rounded-box",responsive:!0};const M=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});M.args={className:"bg-base-200 w-56 p-0 [&_li>*]:rounded-none"};const v=t=>r(n,{...t,children:[e(n.Title,{children:"Title"}),e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});v.args={className:"bg-base-200 w-56 rounded-box"};const g=t=>e(n,{...t,children:r(n.Item,{children:[e(n.Title,{children:"Title"}),r(n,{children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]})]})});g.args={className:"bg-base-200 w-56 rounded-box"};const p=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),r(n.Item,{children:[e("a",{children:"Parent"}),r(n,{children:[e(n.Item,{children:e("a",{children:"level 2 item 1"})}),e(n.Item,{children:e("a",{children:"level 2 item 2"})}),r(n.Item,{children:[e("a",{children:"Parent"}),r(n,{children:[e(n.Item,{children:e("a",{children:"level 3 item 1"})}),e(n.Item,{children:e("a",{children:"level 3 item 2"})})]})]})]})]}),e(n.Item,{children:e("a",{children:"Item 3"})})]});p.args={className:"bg-base-200 w-56 rounded-box"};const w=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:r(n.Details,{open:!0,label:"Parent",children:[e(n.Item,{children:e("a",{children:"level 2 item 1"})}),e(n.Item,{children:e("a",{children:"level 2 item 2"})}),e(n.Item,{children:r(n.Details,{open:!0,label:"Parent",children:[e(n.Item,{children:e("a",{children:"level 3 item 1"})}),e(n.Item,{children:e("a",{children:"level 3 item 2"})})]})})]})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});w.args={className:"bg-base-200 w-56 rounded-box"};const k=t=>{const[Je,S]=H.useState(!0),Qe=H.useCallback(()=>{S(Xe=>!Xe)},[S]);return r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:r(n.Dropdown,{label:"Parent",onClick:Qe,open:Je,children:[e(n.Item,{children:e("a",{children:"level 2 item 1"})}),e(n.Item,{children:e("a",{children:"level 2 item 2"})})]})})]})};k.args={className:"bg-base-200 w-56 rounded-box"};const x=t=>r(n,{...t,children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"resume.pdf"]})}),e(n.Item,{children:r(n.Details,{open:!0,label:r(B,{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})}),"My Files"]}),children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"Project-final.psd"]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"Project-final-2.psd"]})}),e(n.Item,{children:r(n.Details,{open:!0,label:r(B,{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})}),"Images"]}),children:[e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}),"Screenshot1.png"]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}),"Screenshot2.png"]})}),e(n.Item,{children:e(n.Details,{open:!0,label:r(B,{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})}),"Others"]}),children:e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})}),"Screenshot3.png"]})})})})]})})]})}),e(n.Item,{children:r("a",{children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"reports-final-2.pdf"]})})]});x.args={className:"bg-base-200 w-56 rounded-lg max-w-xs w-full",size:"xs"};const b=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{className:"active",children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});b.args={className:"bg-base-200 w-56 rounded-box"};const L=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{className:"focus",children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});L.args={className:"bg-base-200 w-56 rounded-box"};const z=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:e("a",{children:"Item 2"})}),e(n.Item,{children:e("a",{children:"Item 3"})})]});z.args={className:"bg-base-200 rounded-box",horizontal:!0};const N=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),r(n.Item,{children:[e("a",{children:"Parent"}),r(n,{children:[e(n.Item,{children:e("a",{children:"level2 Item 1"})}),e(n.Item,{children:e("a",{children:"level2 Item 2"})})]})]}),e(n.Item,{children:e("a",{children:"Item 3"})})]});N.args={className:"bg-base-200 rounded-box",horizontal:!0};const f=t=>r(n,{...t,children:[r(n.Item,{children:[e("a",{children:"Solutions"}),r(n,{children:[e(n.Item,{children:e("a",{children:"Design"})}),e(n.Item,{children:e("a",{children:"Development"})}),e(n.Item,{children:e("a",{children:"Hosting"})}),e(n.Item,{children:e("a",{children:"Domain register"})})]})]}),r(n.Item,{children:[e("a",{children:"Enterprise"}),r(n,{children:[e(n.Item,{children:e("a",{children:"CRM software"})}),e(n.Item,{children:e("a",{children:"Marketing management"})}),e(n.Item,{children:e("a",{children:"Security"})}),e(n.Item,{children:e("a",{children:"Consulting"})})]})]}),r(n.Item,{children:[e("a",{children:"Products"}),r(n,{children:[e(n.Item,{children:e("a",{children:"UI Kit"})}),e(n.Item,{children:e("a",{children:"Wordpress themes"})}),e(n.Item,{children:e("a",{children:"Wordpress plugins"})}),r(n.Item,{children:[e("a",{children:"Open source"}),r(n,{children:[e(n.Item,{children:e("a",{children:"Auth management system"})}),e(n.Item,{children:e("a",{children:"VScode theme"})}),e(n.Item,{children:e("a",{children:"Color picker app"})})]})]})]})]}),r(n.Item,{children:[e("a",{children:"Company"}),r(n,{children:[e(n.Item,{children:e("a",{children:"About us"})}),e(n.Item,{children:e("a",{children:"Contact us"})}),e(n.Item,{children:e("a",{children:"Privacy policy"})}),e(n.Item,{children:e("a",{children:"Press kit"})})]})]})]});f.args={className:"bg-base-200 rounded-box lg:min-w-max ",responsive:!0};const C=t=>r(n,{...t,children:[e(n.Item,{children:e("a",{children:"Item 1"})}),e(n.Item,{children:r(n.Details,{open:!0,label:"Parent item",children:[e(n.Item,{children:e("a",{children:"level 2 item 1"})}),e(n.Item,{children:e("a",{children:"level 2 item 2"})}),e(n.Item,{children:r(n.Details,{open:!0,label:"Parent",children:[e(n.Item,{children:e("a",{children:"item 1"})}),e(n.Item,{children:e("a",{children:"item 2"})})]})})]})}),e("li",{children:e("a",{children:"Item 3"})})]});C.args={className:"bg-base-200 rounded-box lg:mb-64",responsive:!0};var V,A,D;s.parameters={...s.parameters,docs:{...(V=s.parameters)==null?void 0:V.docs,source:{originalSource:`args => { return Item 1 @@ -597,4 +597,3 @@ import{j as r,a as e,F as B}from"./tw-merge-fe695a60.js";import{r as H}from"./in ; }`,...(Ge=(qe=C.parameters)==null?void 0:qe.docs)==null?void 0:Ge.source}}};const an=["Default","Responsive","IconOnly","IconOnlyHorizontal","IconOnlyWithTooltip","IconOnlyHorizontalWithTooltip","Sizes","DisabledItems","Icons","IconsAndBadgeResponsive","WithoutPaddingAndBorderRadius","Title","TitleAsParent","Submenu","CollapsibleSubmenu","CollapsibleSubmenuWithMenuDropdown","FileTree","ActiveItem","FocusItem","Horizontal","HorizontalSubmenu","MegaMenuWithSubmenuResponsive","CollapsibleWithSubmenuResponsive"];export{b as ActiveItem,w as CollapsibleSubmenu,k as CollapsibleSubmenuWithMenuDropdown,C as CollapsibleWithSubmenuResponsive,s as Default,u as DisabledItems,x as FileTree,L as FocusItem,z as Horizontal,N as HorizontalSubmenu,l as IconOnly,m as IconOnlyHorizontal,c as IconOnlyHorizontalWithTooltip,i as IconOnlyWithTooltip,d as Icons,I as IconsAndBadgeResponsive,f as MegaMenuWithSubmenuResponsive,o as Responsive,h as Sizes,p as Submenu,v as Title,g as TitleAsParent,M as WithoutPaddingAndBorderRadius,an as __namedExportsOrder,tn as default}; -//# sourceMappingURL=Menu.stories-ee2c97cd.js.map diff --git a/docs/assets/Menu.stories-ee2c97cd.js.map b/docs/assets/Menu.stories-ee2c97cd.js.map deleted file mode 100644 index 026fe558..00000000 --- a/docs/assets/Menu.stories-ee2c97cd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Menu.stories-ee2c97cd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Modal.stories-173e9588.js.map b/docs/assets/Modal.stories-173e9588.js.map deleted file mode 100644 index f64cdbba..00000000 --- a/docs/assets/Modal.stories-173e9588.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Modal.stories-173e9588.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Modal.stories-173e9588.js b/docs/assets/Modal.stories-ce305c3b.js similarity index 59% rename from docs/assets/Modal.stories-173e9588.js rename to docs/assets/Modal.stories-ce305c3b.js index e9cec692..fe38809f 100644 --- a/docs/assets/Modal.stories-173e9588.js +++ b/docs/assets/Modal.stories-ce305c3b.js @@ -1,4 +1,4 @@ -import{j as a,a as o}from"./tw-merge-fe695a60.js";import{r as t}from"./index-ebeaab24.js";import{M as e}from"./index-a84870aa.js";import{B as d}from"./Button-28269a3e.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const T={title:"Actions/Modal",component:e},h=s=>{const n=t.useRef(null),r=t.useCallback(()=>{var l;(l=n.current)==null||l.showModal()},[n]);return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(e,{...s,ref:n,children:[o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"Press ESC key or click the button below to close"}),o(e.Actions,{children:o("form",{method:"dialog",children:o(d,{children:"Close"})})})]})]})},c=s=>{const n=t.useRef(null),r=t.useCallback(()=>{var l;(l=n.current)==null||l.showModal()},[n]);return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(e,{...s,ref:n,children:[o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"Press ESC key or click outside to close"})]})]})};c.args={backdrop:!0};const u=s=>{const n=t.useRef(null),r=t.useCallback(()=>{var l;(l=n.current)==null||l.showModal()},[n]);return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(e,{...s,ref:n,children:[o("form",{method:"dialog",children:o(d,{size:"sm",color:"ghost",shape:"circle",className:"absolute right-2 top-2",children:"x"})}),o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"Press ESC key or click on X button to close"})]})]})},i=s=>{const n=t.useRef(null),r=t.useCallback(()=>{var l;(l=n.current)==null||l.showModal()},[n]);return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(e,{...s,ref:n,children:[o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"Press ESC key or click the button below to close"}),o(e.Actions,{children:o("form",{method:"dialog",children:o(d,{children:"Close"})})})]})]})};i.args={className:"w-11/12 max-w-5xl"};const m=s=>{const{Dialog:n,handleShow:r}=e.useDialog();return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(n,{...s,children:[o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"This modal works with useDialog hook!"}),o(e.Actions,{children:o("form",{method:"dialog",children:o(d,{children:"Close"})})})]})]})};var f,M,p;h.parameters={...h.parameters,docs:{...(f=h.parameters)==null?void 0:f.docs,source:{originalSource:`args => { +import{a,j as o}from"./tw-merge-0a3648bd.js";import{r as t}from"./index-1b03fe98.js";import{M as e}from"./index-1c7a8ea4.js";import{B as d}from"./Button-e9ac0f78.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const T={title:"Actions/Modal",component:e},h=s=>{const n=t.useRef(null),r=t.useCallback(()=>{var l;(l=n.current)==null||l.showModal()},[n]);return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(e,{...s,ref:n,children:[o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"Press ESC key or click the button below to close"}),o(e.Actions,{children:o("form",{method:"dialog",children:o(d,{children:"Close"})})})]})]})},c=s=>{const n=t.useRef(null),r=t.useCallback(()=>{var l;(l=n.current)==null||l.showModal()},[n]);return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(e,{...s,ref:n,children:[o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"Press ESC key or click outside to close"})]})]})};c.args={backdrop:!0};const u=s=>{const n=t.useRef(null),r=t.useCallback(()=>{var l;(l=n.current)==null||l.showModal()},[n]);return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(e,{...s,ref:n,children:[o("form",{method:"dialog",children:o(d,{size:"sm",color:"ghost",shape:"circle",className:"absolute right-2 top-2",children:"x"})}),o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"Press ESC key or click on X button to close"})]})]})},i=s=>{const n=t.useRef(null),r=t.useCallback(()=>{var l;(l=n.current)==null||l.showModal()},[n]);return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(e,{...s,ref:n,children:[o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"Press ESC key or click the button below to close"}),o(e.Actions,{children:o("form",{method:"dialog",children:o(d,{children:"Close"})})})]})]})};i.args={className:"w-11/12 max-w-5xl"};const m=s=>{const{Dialog:n,handleShow:r}=e.useDialog();return a("div",{className:"font-sans",children:[o(d,{onClick:r,children:"Open Modal"}),a(n,{...s,children:[o(e.Header,{className:"font-bold",children:"Hello!"}),o(e.Body,{children:"This modal works with useDialog hook!"}),o(e.Actions,{children:o("form",{method:"dialog",children:o(d,{children:"Close"})})})]})]})};var f,M,p;h.parameters={...h.parameters,docs:{...(f=h.parameters)==null?void 0:f.docs,source:{originalSource:`args => { const ref = useRef(null); const handleShow = useCallback(() => { ref.current?.showModal(); @@ -83,4 +83,3 @@ import{j as a,a as o}from"./tw-merge-fe695a60.js";import{r as t}from"./index-ebe ; }`,...(v=(D=m.parameters)==null?void 0:D.docs)==null?void 0:v.source}}};const L=["Default","ClickedOutside","CloseButton","CustomWidth","UseDialogHook"];export{c as ClickedOutside,u as CloseButton,i as CustomWidth,h as Default,m as UseDialogHook,L as __namedExportsOrder,T as default}; -//# sourceMappingURL=Modal.stories-173e9588.js.map diff --git a/docs/assets/ModalLegacy.stories-cc92bbac.js b/docs/assets/ModalLegacy.stories-c313fa45.js similarity index 60% rename from docs/assets/ModalLegacy.stories-cc92bbac.js rename to docs/assets/ModalLegacy.stories-c313fa45.js index 4b93648b..93bc747f 100644 --- a/docs/assets/ModalLegacy.stories-cc92bbac.js +++ b/docs/assets/ModalLegacy.stories-c313fa45.js @@ -1,4 +1,4 @@ -import{j as a,a as e}from"./tw-merge-fe695a60.js";import{r as b}from"./index-ebeaab24.js";import{M as o}from"./index-a84870aa.js";import{B as i}from"./Button-28269a3e.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const x={title:"Actions/Modal/Legacy",component:o.Legacy},d=n=>{const[s,t]=b.useState(!1),l=()=>{t(!s)};return a("div",{className:"font-sans",children:[e(i,{onClick:l,children:"Open Modal"}),a(o.Legacy,{...n,open:s,children:[e(o.Header,{className:"font-bold",children:"Hello!"}),e(o.Body,{children:"This modal works with a legacy mode!"}),e(o.Actions,{children:e(i,{onClick:l,children:"Close"})})]})]})},r=n=>{const[s,t]=b.useState(!1),l=()=>{t(!s)};return a("div",{className:"font-sans",children:[e(i,{onClick:l,children:"Open Modal"}),a(o.Legacy,{...n,open:s,onClickBackdrop:l,children:[e(o.Header,{className:"font-bold",children:"Hello!"}),e(o.Body,{children:"Click outside to close"})]})]})},g=n=>{const[s,t]=b.useState(!1),l=()=>{t(!s)};return a("div",{className:"font-sans",children:[e(i,{onClick:l,children:"Open Modal"}),a(o.Legacy,{...n,open:s,children:[e(i,{size:"sm",color:"ghost",shape:"circle",className:"absolute right-2 top-2",onClick:l,children:"✕"}),e(o.Header,{className:"font-bold",children:"Hello!"}),e(o.Body,{children:"Click on X button to close"})]})]})},c=n=>{const[s,t]=b.useState(!1),l=()=>{t(!s)};return a("div",{className:"font-sans",children:[e(i,{onClick:l,children:"Open Modal"}),a(o.Legacy,{...n,open:s,children:[e(o.Header,{className:"font-bold",children:"Hello!"}),e(o.Body,{children:"This modal works with a legacy mode!"}),e(o.Actions,{children:e(i,{onClick:l,children:"Close"})})]})]})};c.args={className:"w-11/12 max-w-5xl"};var m,u,p;d.parameters={...d.parameters,docs:{...(m=d.parameters)==null?void 0:m.docs,source:{originalSource:`args => { +import{a,j as e}from"./tw-merge-0a3648bd.js";import{r as b}from"./index-1b03fe98.js";import{M as o}from"./index-1c7a8ea4.js";import{B as i}from"./Button-e9ac0f78.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const x={title:"Actions/Modal/Legacy",component:o.Legacy},d=n=>{const[s,t]=b.useState(!1),l=()=>{t(!s)};return a("div",{className:"font-sans",children:[e(i,{onClick:l,children:"Open Modal"}),a(o.Legacy,{...n,open:s,children:[e(o.Header,{className:"font-bold",children:"Hello!"}),e(o.Body,{children:"This modal works with a legacy mode!"}),e(o.Actions,{children:e(i,{onClick:l,children:"Close"})})]})]})},r=n=>{const[s,t]=b.useState(!1),l=()=>{t(!s)};return a("div",{className:"font-sans",children:[e(i,{onClick:l,children:"Open Modal"}),a(o.Legacy,{...n,open:s,onClickBackdrop:l,children:[e(o.Header,{className:"font-bold",children:"Hello!"}),e(o.Body,{children:"Click outside to close"})]})]})},g=n=>{const[s,t]=b.useState(!1),l=()=>{t(!s)};return a("div",{className:"font-sans",children:[e(i,{onClick:l,children:"Open Modal"}),a(o.Legacy,{...n,open:s,children:[e(i,{size:"sm",color:"ghost",shape:"circle",className:"absolute right-2 top-2",onClick:l,children:"✕"}),e(o.Header,{className:"font-bold",children:"Hello!"}),e(o.Body,{children:"Click on X button to close"})]})]})},c=n=>{const[s,t]=b.useState(!1),l=()=>{t(!s)};return a("div",{className:"font-sans",children:[e(i,{onClick:l,children:"Open Modal"}),a(o.Legacy,{...n,open:s,children:[e(o.Header,{className:"font-bold",children:"Hello!"}),e(o.Body,{children:"This modal works with a legacy mode!"}),e(o.Actions,{children:e(i,{onClick:l,children:"Close"})})]})]})};c.args={className:"w-11/12 max-w-5xl"};var m,u,p;d.parameters={...d.parameters,docs:{...(m=d.parameters)==null?void 0:m.docs,source:{originalSource:`args => { const [visible, setVisible] = useState(false); const toggleVisible = () => { setVisible(!visible); @@ -57,4 +57,3 @@ import{j as a,a as e}from"./tw-merge-fe695a60.js";import{r as b}from"./index-ebe ; }`,...(V=(v=c.parameters)==null?void 0:v.docs)==null?void 0:V.source}}};const A=["Default","ClickedOutside","CloseButton","CustomWidth"];export{r as ClickedOutside,g as CloseButton,c as CustomWidth,d as Default,A as __namedExportsOrder,x as default}; -//# sourceMappingURL=ModalLegacy.stories-cc92bbac.js.map diff --git a/docs/assets/ModalLegacy.stories-cc92bbac.js.map b/docs/assets/ModalLegacy.stories-cc92bbac.js.map deleted file mode 100644 index f2894156..00000000 --- a/docs/assets/ModalLegacy.stories-cc92bbac.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModalLegacy.stories-cc92bbac.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Navbar.stories-2a86976e.js.map b/docs/assets/Navbar.stories-2a86976e.js.map deleted file mode 100644 index 5b391a82..00000000 --- a/docs/assets/Navbar.stories-2a86976e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Navbar.stories-2a86976e.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/docs/assets/Navbar.stories-2a86976e.js b/docs/assets/Navbar.stories-5c3fdc08.js similarity index 97% rename from docs/assets/Navbar.stories-2a86976e.js rename to docs/assets/Navbar.stories-5c3fdc08.js index d279e05c..8cdc2cb6 100644 --- a/docs/assets/Navbar.stories-2a86976e.js +++ b/docs/assets/Navbar.stories-5c3fdc08.js @@ -1,4 +1,4 @@ -import{a as e,j as n,F as O}from"./tw-merge-fe695a60.js";import{N as s}from"./index-550801ef.js";import{B as a}from"./Button-28269a3e.js";import{M as t}from"./index-5474795c.js";import{D as o}from"./index-98a30f4c.js";import{F as G}from"./index-3a31de6a.js";import{I as J}from"./index-04dafbc6.js";import{I as w}from"./index-ef45bb0a.js";import{B as N}from"./index-bee62e41.js";import{C as x}from"./index-600c7863.js";import"./index-ebeaab24.js";import"./clsx.m-1229b3e0.js";import"./index-357fb5a8.js";const ce={title:"Navigation/Navbar",component:s,args:{className:"bg-base-100 shadow-xl rounded-box"}},u=r=>e(s,{...r,children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),g=r=>n(s,{...r,children:[e("div",{className:"flex-1",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),e("div",{className:"flex-none",children:e(a,{tag:"a",shape:"square",color:"ghost",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-5 h-5 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"})})})})]}),p=r=>n(s,{...r,children:[e("div",{className:"flex-none",children:e(a,{shape:"square",color:"ghost",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-5 h-5 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})}),e("div",{className:"flex-1",children:e(a,{tag:"a",color:"ghost",className:"normal-case text-xl",children:"daisyUI"})}),e("div",{className:"flex-none",children:e(a,{shape:"square",color:"ghost",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-5 h-5 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"})})})})]}),l=r=>n(s,{...r,children:[e("div",{className:"flex-1",children:e(a,{tag:"a",color:"ghost",className:"normal-case text-xl",children:"daisyUI"})}),e("div",{className:"flex-none",children:n(t,{horizontal:!0,className:"px-1",children:[e(t.Item,{children:e("a",{children:"Link"})}),e(t.Item,{children:n("details",{children:[e("summary",{children:"Parent"}),n("ul",{className:"p-2 bg-base-100",children:[e("li",{children:e("a",{children:"Link 1"})}),e("li",{children:e("a",{children:"Link 2"})})]})]})})]})})]});l.args={className:"bg-base-100 mb-32 shadow-xl rounded-box"};const c=r=>n(s,{...r,children:[e("div",{className:"flex-1",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),n("div",{className:"flex-none gap-2",children:[e(G,{children:e(J,{bordered:!0,type:"text",placeholder:"Search",className:"w-24 md:w-auto"})}),n(o,{end:!0,children:[e(a,{tag:"label",tabIndex:0,color:"ghost",className:"avatar",shape:"circle",children:e("div",{className:"w-10 rounded-full",children:e("img",{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"})})}),n(o.Menu,{className:"w-52 menu-sm mt-3 z-[1] p-2",children:[e("li",{children:n("a",{className:"justify-between",children:["Profile",e(N,{children:"New"})]})}),e(o.Item,{children:"Settings"}),e(o.Item,{children:"Logout"})]})]})]})]});c.args={className:"bg-base-100 mb-32 shadow-xl round-box"};const d=r=>n(s,{...r,children:[e("div",{className:"flex-1",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),n("div",{className:"flex-none",children:[n(o,{end:!0,children:[e(a,{tag:"label",tabIndex:0,color:"ghost",shape:"circle",children:n(w,{children:[e(N,{size:"sm",className:w.Item.className(),children:"8"}),e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"})})]})}),e(o.Menu,{className:"mt-3 z-[1] card card-compact w-52 !p-0",children:n(x.Body,{children:[e("span",{className:"font-bold text-lg",children:"8 Items"}),e("span",{className:"text-info",children:"Subtotal: $999"}),e(x.Actions,{children:e(a,{color:"primary",fullWidth:!0,children:"View cart"})})]})})]}),n(o,{end:!0,children:[e(a,{tag:"label",tabIndex:0,color:"ghost",className:"avatar",shape:"circle",children:e("div",{className:"w-10 rounded-full",children:e("img",{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"})})}),n(o.Menu,{className:"mt-3 z-[1] w-52 menu-sm",children:[e("li",{children:n("a",{className:"justify-between",children:["Profile",e(N,{className:"badge",children:"New"})]})}),e(o.Item,{children:"Settings"}),e(o.Item,{children:"Logout"})]})]})]})]});d.args={className:"bg-base-100 mb-40 shadow-xl rounded-box"};const i=r=>n(s,{...r,children:[e(s.Start,{children:n(o,{children:[e(a,{tag:"label",color:"ghost",shape:"circle",tabIndex:0,children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h7"})})}),n(o.Menu,{className:"menu-sm w-52 mt-3 z-[1]",children:[e(o.Item,{children:"Homepage"}),e(o.Item,{children:"Portfolio"}),e(o.Item,{children:"About"})]})]})}),e(s.Center,{children:e(a,{tag:"a",color:"ghost",className:"normal-case text-xl",children:"daisyUI"})}),n(s.End,{className:"navbar-end",children:[e(a,{color:"ghost",shape:"circle",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),e(a,{color:"ghost",shape:"circle",children:n(w,{children:[e(N,{size:"xs",color:"primary",className:w.Item.className()}),e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})})]})})]})]});i.args={className:"bg-base-100 mb-40 shadow-xl rounded-box"};const m=r=>n(s,{...r,children:[n(s.Start,{children:[n(o,{children:[e(a,{tag:"label",color:"ghost",tabIndex:0,className:"lg:hidden",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h8m-8 6h16"})})}),n(o.Menu,{tabIndex:0,className:"w-52 menu-sm mt-3 z-[1]",children:[e(o.Item,{children:"Item 1"}),n("li",{children:[e("a",{children:"Parent"}),n("ul",{className:"p-2",children:[e("li",{children:e("a",{children:"Submenu 1"})}),e("li",{children:e("a",{children:"Submenu 2"})})]})]}),e(o.Item,{children:"Item 3"})]})]}),e("a",{className:"btn btn-ghost normal-case text-xl",children:"daisyUI"})]}),e(s.Center,{className:"hidden lg:flex",children:n(t,{horizontal:!0,className:"px-1",children:[e(t.Item,{children:e("a",{children:"Item 1"})}),e(t.Item,{children:n("details",{children:[e("summary",{children:"Parent"}),n("ul",{className:"p-2",children:[e(t.Item,{children:e("a",{children:"Submenu 1"})}),e(t.Item,{children:e("a",{children:"Submenu 2"})})]})]})}),e(t.Item,{children:e("a",{children:"Item 3"})})]})}),e(s.End,{children:e(a,{tag:"a",children:"Button"})})]});m.args={className:"bg-base-100 mb-48 shadow-xl rounded-box"};const h=r=>n(O,{children:[e(s,{...r,className:"rounded-box bg-neutral text-neutral-content",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),e(s,{...r,className:"rounded-box bg-base-300",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),e(s,{...r,className:"rounded-box bg-primary text-primary-content",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})})]});h.argTypes={className:{control:!1}};var v,b,I;u.parameters={...u.parameters,docs:{...(v=u.parameters)==null?void 0:v.docs,source:{originalSource:`args => { +import{j as e,a as n,F as O}from"./tw-merge-0a3648bd.js";import{N as s}from"./index-1e3c83a2.js";import{B as a}from"./Button-e9ac0f78.js";import{M as t}from"./index-44e44375.js";import{D as o}from"./index-abb70d26.js";import{F as G}from"./index-cdaabc1d.js";import{I as J}from"./index-0ee0d1a2.js";import{I as w}from"./index-e97e44e7.js";import{B as N}from"./index-ccb0f6f2.js";import{C as x}from"./index-3c968524.js";import"./index-1b03fe98.js";import"./clsx.m-1229b3e0.js";import"./index-a55c3a76.js";const ce={title:"Navigation/Navbar",component:s,args:{className:"bg-base-100 shadow-xl rounded-box"}},u=r=>e(s,{...r,children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),g=r=>n(s,{...r,children:[e("div",{className:"flex-1",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),e("div",{className:"flex-none",children:e(a,{tag:"a",shape:"square",color:"ghost",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-5 h-5 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"})})})})]}),p=r=>n(s,{...r,children:[e("div",{className:"flex-none",children:e(a,{shape:"square",color:"ghost",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-5 h-5 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})}),e("div",{className:"flex-1",children:e(a,{tag:"a",color:"ghost",className:"normal-case text-xl",children:"daisyUI"})}),e("div",{className:"flex-none",children:e(a,{shape:"square",color:"ghost",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"inline-block w-5 h-5 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"})})})})]}),l=r=>n(s,{...r,children:[e("div",{className:"flex-1",children:e(a,{tag:"a",color:"ghost",className:"normal-case text-xl",children:"daisyUI"})}),e("div",{className:"flex-none",children:n(t,{horizontal:!0,className:"px-1",children:[e(t.Item,{children:e("a",{children:"Link"})}),e(t.Item,{children:n("details",{children:[e("summary",{children:"Parent"}),n("ul",{className:"p-2 bg-base-100",children:[e("li",{children:e("a",{children:"Link 1"})}),e("li",{children:e("a",{children:"Link 2"})})]})]})})]})})]});l.args={className:"bg-base-100 mb-32 shadow-xl rounded-box"};const c=r=>n(s,{...r,children:[e("div",{className:"flex-1",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),n("div",{className:"flex-none gap-2",children:[e(G,{children:e(J,{bordered:!0,type:"text",placeholder:"Search",className:"w-24 md:w-auto"})}),n(o,{end:!0,children:[e(a,{tag:"label",tabIndex:0,color:"ghost",className:"avatar",shape:"circle",children:e("div",{className:"w-10 rounded-full",children:e("img",{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"})})}),n(o.Menu,{className:"w-52 menu-sm mt-3 z-[1] p-2",children:[e("li",{children:n("a",{className:"justify-between",children:["Profile",e(N,{children:"New"})]})}),e(o.Item,{children:"Settings"}),e(o.Item,{children:"Logout"})]})]})]})]});c.args={className:"bg-base-100 mb-32 shadow-xl round-box"};const d=r=>n(s,{...r,children:[e("div",{className:"flex-1",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),n("div",{className:"flex-none",children:[n(o,{end:!0,children:[e(a,{tag:"label",tabIndex:0,color:"ghost",shape:"circle",children:n(w,{children:[e(N,{size:"sm",className:w.Item.className(),children:"8"}),e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"})})]})}),e(o.Menu,{className:"mt-3 z-[1] card card-compact w-52 !p-0",children:n(x.Body,{children:[e("span",{className:"font-bold text-lg",children:"8 Items"}),e("span",{className:"text-info",children:"Subtotal: $999"}),e(x.Actions,{children:e(a,{color:"primary",fullWidth:!0,children:"View cart"})})]})})]}),n(o,{end:!0,children:[e(a,{tag:"label",tabIndex:0,color:"ghost",className:"avatar",shape:"circle",children:e("div",{className:"w-10 rounded-full",children:e("img",{src:"https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"})})}),n(o.Menu,{className:"mt-3 z-[1] w-52 menu-sm",children:[e("li",{children:n("a",{className:"justify-between",children:["Profile",e(N,{className:"badge",children:"New"})]})}),e(o.Item,{children:"Settings"}),e(o.Item,{children:"Logout"})]})]})]})]});d.args={className:"bg-base-100 mb-40 shadow-xl rounded-box"};const i=r=>n(s,{...r,children:[e(s.Start,{children:n(o,{children:[e(a,{tag:"label",color:"ghost",shape:"circle",tabIndex:0,children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h7"})})}),n(o.Menu,{className:"menu-sm w-52 mt-3 z-[1]",children:[e(o.Item,{children:"Homepage"}),e(o.Item,{children:"Portfolio"}),e(o.Item,{children:"About"})]})]})}),e(s.Center,{children:e(a,{tag:"a",color:"ghost",className:"normal-case text-xl",children:"daisyUI"})}),n(s.End,{className:"navbar-end",children:[e(a,{color:"ghost",shape:"circle",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),e(a,{color:"ghost",shape:"circle",children:n(w,{children:[e(N,{size:"xs",color:"primary",className:w.Item.className()}),e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})})]})})]})]});i.args={className:"bg-base-100 mb-40 shadow-xl rounded-box"};const m=r=>n(s,{...r,children:[n(s.Start,{children:[n(o,{children:[e(a,{tag:"label",color:"ghost",tabIndex:0,className:"lg:hidden",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h8m-8 6h16"})})}),n(o.Menu,{tabIndex:0,className:"w-52 menu-sm mt-3 z-[1]",children:[e(o.Item,{children:"Item 1"}),n("li",{children:[e("a",{children:"Parent"}),n("ul",{className:"p-2",children:[e("li",{children:e("a",{children:"Submenu 1"})}),e("li",{children:e("a",{children:"Submenu 2"})})]})]}),e(o.Item,{children:"Item 3"})]})]}),e("a",{className:"btn btn-ghost normal-case text-xl",children:"daisyUI"})]}),e(s.Center,{className:"hidden lg:flex",children:n(t,{horizontal:!0,className:"px-1",children:[e(t.Item,{children:e("a",{children:"Item 1"})}),e(t.Item,{children:n("details",{children:[e("summary",{children:"Parent"}),n("ul",{className:"p-2",children:[e(t.Item,{children:e("a",{children:"Submenu 1"})}),e(t.Item,{children:e("a",{children:"Submenu 2"})})]})]})}),e(t.Item,{children:e("a",{children:"Item 3"})})]})}),e(s.End,{children:e(a,{tag:"a",children:"Button"})})]});m.args={className:"bg-base-100 mb-48 shadow-xl rounded-box"};const h=r=>n(O,{children:[e(s,{...r,className:"rounded-box bg-neutral text-neutral-content",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),e(s,{...r,className:"rounded-box bg-base-300",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})}),e(s,{...r,className:"rounded-box bg-primary text-primary-content",children:e(a,{tag:"a",className:"text-xl normal-case",color:"ghost",children:"daisyUI"})})]});h.argTypes={className:{control:!1}};var v,b,I;u.parameters={...u.parameters,docs:{...(v=u.parameters)==null?void 0:v.docs,source:{originalSource:`args => { return