@shohojdhara/atomix 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +15 -0
- package/dist/index.d.ts +4955 -0
- package/dist/index.esm.css +15 -0
- package/dist/index.esm.js +12423 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +12492 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.css +15 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +1 -0
- package/package.json +33 -91
- package/NPM_PUBLISHING.md +0 -221
- package/css.d.ts +0 -10
- package/dist/css/atomix.css +0 -1
- package/dist/js/628.js +0 -1
- package/dist/js/987.js +0 -1
- package/dist/js/atomix.react.cjs.js +0 -1
- package/dist/js/atomix.react.esm.js +0 -1
- package/dist/js/atomix.react.umd.js +0 -1
- package/dist/js/chunks/cjs/202.6e2b9e63a406ff01b151.js +0 -1
- package/dist/js/chunks/cjs/308.86b2e7ea63bf439e01b4.js +0 -1
- package/dist/js/chunks/cjs/54.54733c458fc7ced6d9ba.js +0 -1
- package/dist/js/chunks/cjs/619.8e6863cb2985a3a109af.js +0 -1
- package/dist/js/chunks/cjs/690.17522d562f7ebe2fa7b4.js +0 -1
- package/dist/js/chunks/cjs/894.6edddf7d4bf7ccb11e25.js +0 -1
- package/dist/js/chunks/cjs/897.74f4c88710fe45c1b9e3.js +0 -1
- package/dist/js/chunks/esm/202.82aa7b3244e53c9edb72.js +0 -1
- package/dist/js/chunks/esm/308.27e1e4005705ae320432.js +0 -1
- package/dist/js/chunks/esm/54.ece1fd6964f98d4d994f.js +0 -1
- package/dist/js/chunks/esm/619.ebeb0298432a066ac05c.js +0 -1
- package/dist/js/chunks/esm/690.c5f412cc979b55740359.js +0 -1
- package/dist/js/chunks/esm/894.3604ddc9367d75191198.js +0 -1
- package/dist/js/chunks/esm/897.a4aab2fad9401693eb12.js +0 -1
- package/dist/js/chunks/umd/202.5017dd0403d696bf1644.js +0 -1
- package/dist/js/chunks/umd/308.4bc14b9d7b16b6ee0ab8.js +0 -1
- package/dist/js/chunks/umd/54.7fdfb4a031989470a70d.js +0 -1
- package/dist/js/chunks/umd/619.84a0c35ecee695250085.js +0 -1
- package/dist/js/chunks/umd/690.d7041094a34a4a434be2.js +0 -1
- package/dist/js/chunks/umd/894.c127ee4e9513c22ee97d.js +0 -1
- package/dist/js/chunks/umd/897.26932ac837a39fc91907.js +0 -1
- package/dist/types/components/Accordion/Accordion.d.ts +0 -37
- package/dist/types/components/Accordion/index.d.ts +0 -3
- package/dist/types/components/AtomixLogo/AtomixLogo.d.ts +0 -8
- package/dist/types/components/AtomixLogo/index.d.ts +0 -3
- package/dist/types/components/AtomixLogo.d.ts +0 -8
- package/dist/types/components/Avatar/Avatar.d.ts +0 -5
- package/dist/types/components/Avatar/AvatarGroup.d.ts +0 -5
- package/dist/types/components/Avatar/index.d.ts +0 -3
- package/dist/types/components/Badge/Badge.d.ts +0 -5
- package/dist/types/components/Badge/index.d.ts +0 -3
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +0 -47
- package/dist/types/components/Breadcrumb/index.d.ts +0 -2
- package/dist/types/components/Breadcrumb/scripts/types.d.ts +0 -59
- package/dist/types/components/Button/Button.d.ts +0 -11
- package/dist/types/components/Button/index.d.ts +0 -3
- package/dist/types/components/Callout/Callout.d.ts +0 -8
- package/dist/types/components/Callout/index.d.ts +0 -1
- package/dist/types/components/Card/Card.d.ts +0 -5
- package/dist/types/components/Card/ElevationCard.d.ts +0 -5
- package/dist/types/components/Card/index.d.ts +0 -9
- package/dist/types/components/ColorModeToggle/ColorModeToggle.d.ts +0 -6
- package/dist/types/components/ColorModeToggle/index.d.ts +0 -2
- package/dist/types/components/Countdown/Countdown.d.ts +0 -17
- package/dist/types/components/Countdown/index.d.ts +0 -2
- package/dist/types/components/DataTable/DataTable.d.ts +0 -18
- package/dist/types/components/DataTable/index.d.ts +0 -3
- package/dist/types/components/DatePicker/DatePicker.d.ts +0 -9
- package/dist/types/components/DatePicker/index.d.ts +0 -4
- package/dist/types/components/DatePicker/types.d.ts +0 -127
- package/dist/types/components/DatePicker/utils.d.ts +0 -39
- package/dist/types/components/Dropdown/Dropdown.d.ts +0 -26
- package/dist/types/components/Dropdown/index.d.ts +0 -5
- package/dist/types/components/EdgePanel/EdgePanel.d.ts +0 -5
- package/dist/types/components/EdgePanel/index.d.ts +0 -1
- package/dist/types/components/Form/Checkbox.d.ts +0 -8
- package/dist/types/components/Form/Form.d.ts +0 -8
- package/dist/types/components/Form/FormGroup.d.ts +0 -8
- package/dist/types/components/Form/Input.d.ts +0 -8
- package/dist/types/components/Form/Radio.d.ts +0 -8
- package/dist/types/components/Form/Select.d.ts +0 -8
- package/dist/types/components/Form/Textarea.d.ts +0 -8
- package/dist/types/components/Form/index.d.ts +0 -7
- package/dist/types/components/Hero/Hero.d.ts +0 -5
- package/dist/types/components/Hero/index.d.ts +0 -5
- package/dist/types/components/Icon/Icon.d.ts +0 -36
- package/dist/types/components/Icon/index.d.ts +0 -2
- package/dist/types/components/List/List.d.ts +0 -5
- package/dist/types/components/List/ListGroup.d.ts +0 -4
- package/dist/types/components/List/index.d.ts +0 -2
- package/dist/types/components/Messages/Messages.d.ts +0 -8
- package/dist/types/components/Messages/index.d.ts +0 -3
- package/dist/types/components/Modal/Modal.d.ts +0 -8
- package/dist/types/components/Modal/index.d.ts +0 -1
- package/dist/types/components/Navigation/Menu/MegaMenu.d.ts +0 -5
- package/dist/types/components/Navigation/Menu/Menu.d.ts +0 -14
- package/dist/types/components/Navigation/Nav/Nav.d.ts +0 -20
- package/dist/types/components/Navigation/Nav/NavDropdown.d.ts +0 -5
- package/dist/types/components/Navigation/Nav/NavItem.d.ts +0 -33
- package/dist/types/components/Navigation/Navbar/Navbar.d.ts +0 -19
- package/dist/types/components/Navigation/SideMenu/SideMenu.d.ts +0 -20
- package/dist/types/components/Navigation/SideMenu/SideMenuItem.d.ts +0 -30
- package/dist/types/components/Navigation/SideMenu/SideMenuList.d.ts +0 -17
- package/dist/types/components/Navigation/index.d.ts +0 -10
- package/dist/types/components/Pagination/Pagination.d.ts +0 -27
- package/dist/types/components/Pagination/index.d.ts +0 -1
- package/dist/types/components/PhotoViewer/PhotoViewer.d.ts +0 -22
- package/dist/types/components/PhotoViewer/PhotoViewerHeader.d.ts +0 -45
- package/dist/types/components/PhotoViewer/PhotoViewerImage.d.ts +0 -51
- package/dist/types/components/PhotoViewer/PhotoViewerInfo.d.ts +0 -21
- package/dist/types/components/PhotoViewer/PhotoViewerNavigation.d.ts +0 -28
- package/dist/types/components/PhotoViewer/PhotoViewerThumbnails.d.ts +0 -21
- package/dist/types/components/PhotoViewer/examples/ImageGallery.d.ts +0 -11
- package/dist/types/components/PhotoViewer/examples/SimpleGallery.d.ts +0 -3
- package/dist/types/components/PhotoViewer/examples/index.d.ts +0 -2
- package/dist/types/components/PhotoViewer/index.d.ts +0 -13
- package/dist/types/components/Popover/Popover.d.ts +0 -19
- package/dist/types/components/Popover/index.d.ts +0 -4
- package/dist/types/components/ProductReview/ProductReview.d.ts +0 -41
- package/dist/types/components/ProductReview/index.d.ts +0 -3
- package/dist/types/components/Progress/Progress.d.ts +0 -5
- package/dist/types/components/Progress/index.d.ts +0 -1
- package/dist/types/components/Rating/Rating.d.ts +0 -20
- package/dist/types/components/Rating/index.d.ts +0 -4
- package/dist/types/components/River/River.d.ts +0 -8
- package/dist/types/components/River/index.d.ts +0 -2
- package/dist/types/components/River/scripts/index.d.ts +0 -40
- package/dist/types/components/SectionIntro/SectionIntro.d.ts +0 -62
- package/dist/types/components/SectionIntro/index.d.ts +0 -3
- package/dist/types/components/SectionIntro/scripts/index.d.ts +0 -36
- package/dist/types/components/Spinner/Spinner.d.ts +0 -5
- package/dist/types/components/Spinner/index.d.ts +0 -2
- package/dist/types/components/Steps/Steps.d.ts +0 -42
- package/dist/types/components/Steps/index.d.ts +0 -3
- package/dist/types/components/Steps/scripts/index.d.ts +0 -58
- package/dist/types/components/Tab/Tab.d.ts +0 -42
- package/dist/types/components/Tab/index.d.ts +0 -2
- package/dist/types/components/Tab/scripts/index.d.ts +0 -61
- package/dist/types/components/Testimonial/Testimonial.d.ts +0 -46
- package/dist/types/components/Testimonial/index.d.ts +0 -3
- package/dist/types/components/Testimonial/scripts/index.d.ts +0 -36
- package/dist/types/components/Todo/Todo.d.ts +0 -5
- package/dist/types/components/Todo/index.d.ts +0 -1
- package/dist/types/components/Toggle/Toggle.d.ts +0 -28
- package/dist/types/components/Toggle/index.d.ts +0 -2
- package/dist/types/components/Toggle/scripts/index.d.ts +0 -50
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -33
- package/dist/types/components/Tooltip/index.d.ts +0 -2
- package/dist/types/components/Tooltip/scripts/index.d.ts +0 -123
- package/dist/types/components/Upload/Upload.d.ts +0 -64
- package/dist/types/components/Upload/index.d.ts +0 -3
- package/dist/types/components/Upload/scripts/index.d.ts +0 -118
- package/dist/types/components/index.d.ts +0 -45
- package/dist/types/index.d.ts +0 -24
- package/dist/types/layouts/Grid/Container.d.ts +0 -39
- package/dist/types/layouts/Grid/Grid.d.ts +0 -38
- package/dist/types/layouts/Grid/GridCol.d.ts +0 -65
- package/dist/types/layouts/Grid/Row.d.ts +0 -39
- package/dist/types/layouts/Grid/index.d.ts +0 -8
- package/dist/types/layouts/MasonryGrid/MasonryGrid.d.ts +0 -72
- package/dist/types/layouts/MasonryGrid/MasonryGridItem.d.ts +0 -25
- package/dist/types/layouts/MasonryGrid/index.d.ts +0 -4
- package/dist/types/layouts/index.d.ts +0 -2
- package/dist/types/lib/composables/index.d.ts +0 -30
- package/dist/types/lib/composables/useAccordion.d.ts +0 -30
- package/dist/types/lib/composables/useBadge.d.ts +0 -10
- package/dist/types/lib/composables/useBreadcrumb.d.ts +0 -13
- package/dist/types/lib/composables/useButton.d.ts +0 -11
- package/dist/types/lib/composables/useCallout.d.ts +0 -11
- package/dist/types/lib/composables/useCard.d.ts +0 -8
- package/dist/types/lib/composables/useCheckbox.d.ts +0 -11
- package/dist/types/lib/composables/useDataTable.d.ts +0 -66
- package/dist/types/lib/composables/useDatePicker.d.ts +0 -91
- package/dist/types/lib/composables/useDropdown.d.ts +0 -26
- package/dist/types/lib/composables/useEdgePanel.d.ts +0 -15
- package/dist/types/lib/composables/useForm.d.ts +0 -12
- package/dist/types/lib/composables/useFormGroup.d.ts +0 -10
- package/dist/types/lib/composables/useHero.d.ts +0 -53
- package/dist/types/lib/composables/useInput.d.ts +0 -12
- package/dist/types/lib/composables/useMessages.d.ts +0 -38
- package/dist/types/lib/composables/useModal.d.ts +0 -40
- package/dist/types/lib/composables/useNavbar.d.ts +0 -59
- package/dist/types/lib/composables/usePagination.d.ts +0 -13
- package/dist/types/lib/composables/usePhotoViewer.d.ts +0 -57
- package/dist/types/lib/composables/usePopover.d.ts +0 -30
- package/dist/types/lib/composables/useProgress.d.ts +0 -38
- package/dist/types/lib/composables/useRadio.d.ts +0 -10
- package/dist/types/lib/composables/useRating.d.ts +0 -52
- package/dist/types/lib/composables/useRiver.d.ts +0 -107
- package/dist/types/lib/composables/useSelect.d.ts +0 -10
- package/dist/types/lib/composables/useSideMenu.d.ts +0 -28
- package/dist/types/lib/composables/useSpinner.d.ts +0 -10
- package/dist/types/lib/composables/useTextarea.d.ts +0 -10
- package/dist/types/lib/composables/useTodo.d.ts +0 -18
- package/dist/types/lib/constants/components.d.ts +0 -993
- package/dist/types/lib/constants/index.d.ts +0 -1
- package/dist/types/lib/index.d.ts +0 -6
- package/dist/types/lib/types/components.d.ts +0 -2062
- package/dist/types/lib/types/index.d.ts +0 -1
- package/dist/types/lib/utils/dom.d.ts +0 -26
- package/dist/types/lib/utils/icons.d.ts +0 -20
- package/dist/types/lib/utils/index.d.ts +0 -3
- package/dist/types/lib/utils/useForkRef.d.ts +0 -10
- package/index.d.ts +0 -3
- package/src/Introduction.mdx +0 -44
- package/src/assets/fonts/BigCaslon/BigCaslon-Alternatives.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Alternatives.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Alternatives.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Alternatives.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Expert.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Expert.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Expert.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Expert.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-ItalicSwash.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-ItalicSwash.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-ItalicSwash.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-ItalicSwash.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-SmallCaps.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-SmallCaps.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-SmallCaps.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-SmallCaps.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Black.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Black.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Black.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Black.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BlackItalic.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BlackItalic.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BlackItalic.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BlackItalic.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Bold.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Bold.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Bold.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Bold.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BoldItalic.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BoldItalic.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BoldItalic.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Italic.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Italic.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Italic.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Italic.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Regular.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Regular.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Regular.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Regular.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Black.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Black.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Black.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Black.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BlackItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BlackItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BlackItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BlackItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Bold.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Bold.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Bold.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Bold.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BoldItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BoldItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BoldItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Book.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Book.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Book.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Book.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BookItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BookItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BookItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BookItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Heavy.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Heavy.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Heavy.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Heavy.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-HeavyItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-HeavyItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-HeavyItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-HeavyItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Light.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Light.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Light.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Light.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-LightItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-LightItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-LightItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-LightItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Medium.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Medium.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Medium.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Medium.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-MediumItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-MediumItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-MediumItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Regular.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Regular.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Regular.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Regular.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-RegularItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-RegularItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-RegularItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-RegularItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Thin.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Thin.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Thin.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Thin.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-ThinItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-ThinItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-ThinItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-ThinItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Bold.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Bold.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Bold.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Bold.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBlack.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBlack.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBlack.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBlack.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBold.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBold.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBold.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBold.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Italic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Italic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Italic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Italic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Light.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Light.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Light.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Light.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-LightItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-LightItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-LightItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-LightItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Medium.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Medium.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Medium.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Medium.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-MediumItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-MediumItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-MediumItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Thin.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Thin.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Thin.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Thin.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-ThinItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-ThinItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-ThinItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-ThinItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLight.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLight.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLight.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLight.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLightItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLightItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLightItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLightItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/demo.html +0 -569
- package/src/assets/fonts/HelveticaNeue/stylesheet.css +0 -181
- package/src/assets/fonts/Lato/Lato-Black.eot +0 -0
- package/src/assets/fonts/Lato/Lato-Black.ttf +0 -0
- package/src/assets/fonts/Lato/Lato-Black.woff +0 -0
- package/src/assets/fonts/Lato/Lato-Black.woff2 +0 -0
- package/src/assets/fonts/Lato/Lato-Bold.eot +0 -0
- package/src/assets/fonts/Lato/Lato-Bold.ttf +0 -0
- package/src/assets/fonts/Lato/Lato-Bold.woff +0 -0
- package/src/assets/fonts/Lato/Lato-Bold.woff2 +0 -0
- package/src/assets/fonts/Lato/Lato-Light.eot +0 -0
- package/src/assets/fonts/Lato/Lato-Light.ttf +0 -0
- package/src/assets/fonts/Lato/Lato-Light.woff +0 -0
- package/src/assets/fonts/Lato/Lato-Light.woff2 +0 -0
- package/src/assets/fonts/Lato/Lato-Regular.eot +0 -0
- package/src/assets/fonts/Lato/Lato-Regular.ttf +0 -0
- package/src/assets/fonts/Lato/Lato-Regular.woff +0 -0
- package/src/assets/fonts/Lato/Lato-Regular.woff2 +0 -0
- package/src/assets/fonts/Lux-Icons.woff2 +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.eot +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.ttf +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.woff +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
- package/src/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/src/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/assets/images/logo-transparent.png +0 -0
- package/src/assets/svgs/atomix-logo.svg +0 -9
- package/src/components/Accordion/Accordion.stories.tsx +0 -271
- package/src/components/Accordion/Accordion.tsx +0 -131
- package/src/components/Accordion/index.ts +0 -3
- package/src/components/Accordion/scripts/accordionInteractions.ts +0 -70
- package/src/components/Accordion/scripts/bundle.ts +0 -24
- package/src/components/Accordion/scripts/constants.ts +0 -11
- package/src/components/Accordion/scripts/index.ts +0 -212
- package/src/components/AtomixLogo/AtomixLogo.tsx +0 -36
- package/src/components/AtomixLogo/index.ts +0 -3
- package/src/components/AtomixLogo.tsx +0 -40
- package/src/components/Avatar/Avatar.stories.tsx +0 -263
- package/src/components/Avatar/Avatar.tsx +0 -68
- package/src/components/Avatar/AvatarGroup.tsx +0 -73
- package/src/components/Avatar/index.ts +0 -3
- package/src/components/Avatar/scripts/index.ts +0 -497
- package/src/components/Badge/Badge.stories.tsx +0 -374
- package/src/components/Badge/Badge.tsx +0 -39
- package/src/components/Badge/index.ts +0 -3
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +0 -108
- package/src/components/Breadcrumb/Breadcrumb.tsx +0 -112
- package/src/components/Breadcrumb/index.ts +0 -3
- package/src/components/Breadcrumb/scripts/breadcrumb.ts +0 -208
- package/src/components/Breadcrumb/scripts/demo.html +0 -246
- package/src/components/Breadcrumb/scripts/index.ts +0 -5
- package/src/components/Breadcrumb/scripts/types.ts +0 -69
- package/src/components/Button/Button.stories.tsx +0 -313
- package/src/components/Button/Button.tsx +0 -70
- package/src/components/Button/index.ts +0 -3
- package/src/components/Button/scripts/buttonInteractions.ts +0 -73
- package/src/components/Button/scripts/index.ts +0 -1
- package/src/components/Callout/Callout.stories.tsx +0 -595
- package/src/components/Callout/Callout.tsx +0 -78
- package/src/components/Callout/index.ts +0 -1
- package/src/components/Callout/scripts/CalloutInteractions.ts +0 -350
- package/src/components/Callout/scripts/bundle.ts +0 -18
- package/src/components/Callout/scripts/index.ts +0 -130
- package/src/components/Card/Card.stories.tsx +0 -107
- package/src/components/Card/Card.tsx +0 -69
- package/src/components/Card/ElevationCard.tsx +0 -47
- package/src/components/Card/index.ts +0 -15
- package/src/components/Card/scripts/bundle.ts +0 -30
- package/src/components/Card/scripts/cardInteractions.ts +0 -171
- package/src/components/Card/scripts/demo.html +0 -322
- package/src/components/Card/scripts/index.ts +0 -318
- package/src/components/ColorModeToggle/ColorModeToggle.stories.tsx +0 -46
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +0 -85
- package/src/components/ColorModeToggle/index.ts +0 -2
- package/src/components/Countdown/Countdown.stories.tsx +0 -47
- package/src/components/Countdown/Countdown.tsx +0 -90
- package/src/components/Countdown/index.ts +0 -2
- package/src/components/Countdown/scripts/index.ts +0 -238
- package/src/components/DataTable/DataTable.stories.tsx +0 -249
- package/src/components/DataTable/DataTable.tsx +0 -213
- package/src/components/DataTable/index.ts +0 -3
- package/src/components/DataTable/scripts/bundle.ts +0 -20
- package/src/components/DataTable/scripts/index.ts +0 -781
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -365
- package/src/components/DatePicker/DatePicker.tsx +0 -504
- package/src/components/DatePicker/index.ts +0 -4
- package/src/components/DatePicker/readme.md +0 -106
- package/src/components/DatePicker/scripts/bundle.ts +0 -39
- package/src/components/DatePicker/scripts/componentInteractions.ts +0 -230
- package/src/components/DatePicker/scripts/index.ts +0 -907
- package/src/components/DatePicker/types.ts +0 -167
- package/src/components/DatePicker/utils.ts +0 -163
- package/src/components/Dropdown/Dropdown.stories.tsx +0 -359
- package/src/components/Dropdown/Dropdown.tsx +0 -352
- package/src/components/Dropdown/index.ts +0 -14
- package/src/components/Dropdown/readme.md +0 -151
- package/src/components/Dropdown/scripts/bundle.ts +0 -24
- package/src/components/Dropdown/scripts/componentInteractions.ts +0 -39
- package/src/components/Dropdown/scripts/index.ts +0 -612
- package/src/components/EdgePanel/EdgePanel.stories.tsx +0 -267
- package/src/components/EdgePanel/EdgePanel.tsx +0 -73
- package/src/components/EdgePanel/index.ts +0 -1
- package/src/components/EdgePanel/scripts/bundle.ts +0 -30
- package/src/components/EdgePanel/scripts/edgePanelInteractions.ts +0 -206
- package/src/components/EdgePanel/scripts/index.ts +0 -415
- package/src/components/Form/Checkbox.stories.tsx +0 -77
- package/src/components/Form/Checkbox.tsx +0 -69
- package/src/components/Form/Form.stories.tsx +0 -491
- package/src/components/Form/Form.tsx +0 -46
- package/src/components/Form/FormGroup.stories.tsx +0 -163
- package/src/components/Form/FormGroup.tsx +0 -53
- package/src/components/Form/Input.stories.tsx +0 -107
- package/src/components/Form/Input.tsx +0 -87
- package/src/components/Form/Radio.stories.tsx +0 -95
- package/src/components/Form/Radio.tsx +0 -65
- package/src/components/Form/Select.stories.tsx +0 -152
- package/src/components/Form/Select.tsx +0 -191
- package/src/components/Form/Textarea.stories.tsx +0 -124
- package/src/components/Form/Textarea.tsx +0 -78
- package/src/components/Form/index.ts +0 -7
- package/src/components/Hero/Hero.stories.tsx +0 -297
- package/src/components/Hero/Hero.tsx +0 -175
- package/src/components/Hero/index.ts +0 -6
- package/src/components/Hero/scripts/bundle.ts +0 -33
- package/src/components/Hero/scripts/heroInteractions.ts +0 -130
- package/src/components/Hero/scripts/index.ts +0 -144
- package/src/components/Icon/Icon.tsx +0 -87
- package/src/components/Icon/index.ts +0 -2
- package/src/components/List/List.stories.tsx +0 -123
- package/src/components/List/List.tsx +0 -35
- package/src/components/List/ListGroup.tsx +0 -34
- package/src/components/List/index.ts +0 -2
- package/src/components/Messages/Messages.stories.tsx +0 -161
- package/src/components/Messages/Messages.tsx +0 -172
- package/src/components/Messages/index.ts +0 -3
- package/src/components/Messages/scripts/bundle.ts +0 -47
- package/src/components/Messages/scripts/componentInteractions.ts +0 -132
- package/src/components/Messages/scripts/index.ts +0 -378
- package/src/components/Modal/Modal.stories.tsx +0 -288
- package/src/components/Modal/Modal.tsx +0 -198
- package/src/components/Modal/README.md +0 -169
- package/src/components/Modal/index.ts +0 -1
- package/src/components/Modal/scripts/bundle.ts +0 -23
- package/src/components/Modal/scripts/index.ts +0 -374
- package/src/components/Modal/scripts/modalInteractions.ts +0 -141
- package/src/components/Navigation/Menu/MegaMenu.tsx +0 -107
- package/src/components/Navigation/Menu/Menu.stories.tsx +0 -340
- package/src/components/Navigation/Menu/Menu.tsx +0 -110
- package/src/components/Navigation/Nav/Nav.stories.tsx +0 -458
- package/src/components/Navigation/Nav/Nav.tsx +0 -50
- package/src/components/Navigation/Nav/NavDropdown.tsx +0 -105
- package/src/components/Navigation/Nav/NavItem.tsx +0 -166
- package/src/components/Navigation/Navbar/Navbar.stories.tsx +0 -552
- package/src/components/Navigation/Navbar/Navbar.tsx +0 -150
- package/src/components/Navigation/README.md +0 -314
- package/src/components/Navigation/SideMenu/SideMenu.README.md +0 -494
- package/src/components/Navigation/SideMenu/SideMenu.stories.tsx +0 -618
- package/src/components/Navigation/SideMenu/SideMenu.tsx +0 -101
- package/src/components/Navigation/SideMenu/SideMenuItem.tsx +0 -103
- package/src/components/Navigation/SideMenu/SideMenuList.tsx +0 -41
- package/src/components/Navigation/index.ts +0 -23
- package/src/components/Navigation/scripts/NavbarInteractions.ts +0 -171
- package/src/components/Navigation/scripts/SideMenu.ts +0 -319
- package/src/components/Navigation/scripts/SideMenuBundle.ts +0 -69
- package/src/components/Navigation/scripts/SideMenuInteractions.ts +0 -250
- package/src/components/Navigation/scripts/bundle.ts +0 -58
- package/src/components/Navigation/scripts/index.ts +0 -248
- package/src/components/Pagination/Pagination.stories.tsx +0 -194
- package/src/components/Pagination/Pagination.tsx +0 -162
- package/src/components/Pagination/index.ts +0 -1
- package/src/components/Pagination/scripts/bundle.ts +0 -15
- package/src/components/Pagination/scripts/index.ts +0 -315
- package/src/components/PhotoViewer/PhotoViewer.stories.tsx +0 -160
- package/src/components/PhotoViewer/PhotoViewer.tsx +0 -246
- package/src/components/PhotoViewer/PhotoViewerHeader.tsx +0 -177
- package/src/components/PhotoViewer/PhotoViewerImage.tsx +0 -173
- package/src/components/PhotoViewer/PhotoViewerInfo.tsx +0 -65
- package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +0 -82
- package/src/components/PhotoViewer/PhotoViewerThumbnails.tsx +0 -53
- package/src/components/PhotoViewer/README.md +0 -358
- package/src/components/PhotoViewer/examples/ImageGallery.tsx +0 -190
- package/src/components/PhotoViewer/examples/SimpleGallery.tsx +0 -77
- package/src/components/PhotoViewer/examples/index.ts +0 -2
- package/src/components/PhotoViewer/index.ts +0 -14
- package/src/components/PhotoViewer/scripts/PhotoViewerInteractions.ts +0 -253
- package/src/components/PhotoViewer/scripts/bundle.ts +0 -81
- package/src/components/PhotoViewer/scripts/index.ts +0 -947
- package/src/components/Popover/Popover.stories.tsx +0 -143
- package/src/components/Popover/Popover.tsx +0 -137
- package/src/components/Popover/index.ts +0 -5
- package/src/components/Popover/readme.md +0 -120
- package/src/components/Popover/scripts/bundle.ts +0 -12
- package/src/components/Popover/scripts/componentInteractions.ts +0 -299
- package/src/components/Popover/scripts/index.ts +0 -342
- package/src/components/ProductReview/ProductReview.stories.tsx +0 -88
- package/src/components/ProductReview/ProductReview.tsx +0 -169
- package/src/components/ProductReview/index.ts +0 -3
- package/src/components/ProductReview/scripts/bundle.ts +0 -3
- package/src/components/ProductReview/scripts/componentInteractions.ts +0 -129
- package/src/components/ProductReview/scripts/index.ts +0 -3
- package/src/components/Progress/Progress.stories.tsx +0 -75
- package/src/components/Progress/Progress.tsx +0 -45
- package/src/components/Progress/index.ts +0 -1
- package/src/components/Progress/scripts/bundle.ts +0 -17
- package/src/components/Progress/scripts/componentInteractions.ts +0 -101
- package/src/components/Progress/scripts/index.ts +0 -184
- package/src/components/Rating/Rating.stories.tsx +0 -109
- package/src/components/Rating/Rating.tsx +0 -286
- package/src/components/Rating/index.ts +0 -6
- package/src/components/Rating/scripts/bundle.ts +0 -39
- package/src/components/Rating/scripts/index.d.ts +0 -12
- package/src/components/Rating/scripts/index.ts +0 -336
- package/src/components/Rating/scripts/ratingInteractions.ts +0 -160
- package/src/components/River/River.stories.tsx +0 -230
- package/src/components/River/River.tsx +0 -162
- package/src/components/River/examples.html +0 -223
- package/src/components/River/index.ts +0 -2
- package/src/components/River/scripts/index.ts +0 -137
- package/src/components/SectionIntro/SectionIntro.stories.tsx +0 -145
- package/src/components/SectionIntro/SectionIntro.tsx +0 -197
- package/src/components/SectionIntro/index.ts +0 -3
- package/src/components/SectionIntro/scripts/bundle.ts +0 -9
- package/src/components/SectionIntro/scripts/componentInteractions.ts +0 -37
- package/src/components/SectionIntro/scripts/index.ts +0 -163
- package/src/components/Spinner/Spinner.stories.tsx +0 -66
- package/src/components/Spinner/Spinner.tsx +0 -36
- package/src/components/Spinner/index.ts +0 -2
- package/src/components/Steps/Steps.stories.tsx +0 -158
- package/src/components/Steps/Steps.tsx +0 -154
- package/src/components/Steps/index.ts +0 -3
- package/src/components/Steps/scripts/index.ts +0 -159
- package/src/components/Tab/Tab.stories.tsx +0 -129
- package/src/components/Tab/Tab.tsx +0 -133
- package/src/components/Tab/index.ts +0 -2
- package/src/components/Tab/scripts/index.ts +0 -200
- package/src/components/Testimonial/Testimonial.stories.tsx +0 -180
- package/src/components/Testimonial/Testimonial.tsx +0 -148
- package/src/components/Testimonial/index.ts +0 -3
- package/src/components/Testimonial/scripts/index.ts +0 -107
- package/src/components/Todo/Todo.stories.tsx +0 -107
- package/src/components/Todo/Todo.tsx +0 -158
- package/src/components/Todo/index.ts +0 -1
- package/src/components/Todo/scripts/bundle.ts +0 -14
- package/src/components/Todo/scripts/index.ts +0 -574
- package/src/components/Todo/scripts/todoInteractions.ts +0 -118
- package/src/components/Todo/scripts/types.ts +0 -19
- package/src/components/Toggle/Toggle.stories.tsx +0 -50
- package/src/components/Toggle/Toggle.tsx +0 -114
- package/src/components/Toggle/index.ts +0 -2
- package/src/components/Toggle/scripts/bundle.ts +0 -19
- package/src/components/Toggle/scripts/index.ts +0 -118
- package/src/components/Toggle/scripts/toggleInteractions.ts +0 -77
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -115
- package/src/components/Tooltip/Tooltip.tsx +0 -105
- package/src/components/Tooltip/index.ts +0 -3
- package/src/components/Tooltip/scripts/bundle.ts +0 -0
- package/src/components/Tooltip/scripts/index.ts +0 -395
- package/src/components/Tooltip/scripts/tooltipInteractions.ts +0 -165
- package/src/components/Upload/Upload.stories.tsx +0 -221
- package/src/components/Upload/Upload.tsx +0 -422
- package/src/components/Upload/index.ts +0 -3
- package/src/components/Upload/scripts/index.ts +0 -467
- package/src/components/index.ts +0 -42
- package/src/design-tokens/BoxShadow/BoxShadow.stories.tsx +0 -115
- package/src/design-tokens/Colors/colors.scss +0 -121
- package/src/design-tokens/Colors/colors.stories.tsx +0 -313
- package/src/design-tokens/Spacing/Spacing.scss +0 -62
- package/src/design-tokens/Spacing/Spacing.stories.tsx +0 -115
- package/src/design-tokens/Typography/Typography.scss +0 -240
- package/src/design-tokens/Typography/Typography.stories.tsx +0 -167
- package/src/docs/atomix-component-guidelines.mdx +0 -942
- package/src/docs/atomix-roadmap.mdx +0 -325
- package/src/docs/implementation-guide.mdx +0 -506
- package/src/index.ts +0 -26
- package/src/layouts/Grid/Container.tsx +0 -58
- package/src/layouts/Grid/Grid.stories.tsx +0 -560
- package/src/layouts/Grid/Grid.tsx +0 -68
- package/src/layouts/Grid/GridCol.tsx +0 -161
- package/src/layouts/Grid/README.md +0 -108
- package/src/layouts/Grid/Row.tsx +0 -70
- package/src/layouts/Grid/index.ts +0 -8
- package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +0 -388
- package/src/layouts/MasonryGrid/MasonryGrid.tsx +0 -408
- package/src/layouts/MasonryGrid/MasonryGridItem.tsx +0 -44
- package/src/layouts/MasonryGrid/README.md +0 -117
- package/src/layouts/MasonryGrid/index.ts +0 -4
- package/src/layouts/index.ts +0 -9
- package/src/lib/README.md +0 -89
- package/src/lib/composables/index.ts +0 -44
- package/src/lib/composables/useAccordion.ts +0 -129
- package/src/lib/composables/useBadge.ts +0 -42
- package/src/lib/composables/useBreadcrumb.ts +0 -74
- package/src/lib/composables/useButton.ts +0 -59
- package/src/lib/composables/useCallout.ts +0 -55
- package/src/lib/composables/useCard.ts +0 -155
- package/src/lib/composables/useCheckbox.ts +0 -70
- package/src/lib/composables/useDataTable.ts +0 -208
- package/src/lib/composables/useDatePicker.ts +0 -562
- package/src/lib/composables/useDropdown.ts +0 -272
- package/src/lib/composables/useEdgePanel.ts +0 -261
- package/src/lib/composables/useForm.ts +0 -62
- package/src/lib/composables/useFormGroup.ts +0 -51
- package/src/lib/composables/useHero.ts +0 -250
- package/src/lib/composables/useInput.ts +0 -58
- package/src/lib/composables/useMessages.ts +0 -77
- package/src/lib/composables/useModal.ts +0 -110
- package/src/lib/composables/useNavbar.ts +0 -288
- package/src/lib/composables/usePagination.ts +0 -101
- package/src/lib/composables/usePhotoViewer.ts +0 -904
- package/src/lib/composables/usePopover.ts +0 -354
- package/src/lib/composables/useProgress.ts +0 -74
- package/src/lib/composables/useRadio.ts +0 -47
- package/src/lib/composables/useRating.ts +0 -174
- package/src/lib/composables/useRiver.ts +0 -205
- package/src/lib/composables/useSelect.ts +0 -52
- package/src/lib/composables/useSideMenu.ts +0 -197
- package/src/lib/composables/useSpinner.ts +0 -42
- package/src/lib/composables/useTextarea.ts +0 -55
- package/src/lib/composables/useTodo.ts +0 -141
- package/src/lib/constants/components.ts +0 -1050
- package/src/lib/constants/index.ts +0 -4
- package/src/lib/index.ts +0 -11
- package/src/lib/types/components.ts +0 -2513
- package/src/lib/types/index.ts +0 -2
- package/src/lib/utils/dom.ts +0 -41
- package/src/lib/utils/icons.ts +0 -74
- package/src/lib/utils/index.ts +0 -20
- package/src/lib/utils/useForkRef.ts +0 -36
|
@@ -1,595 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
import { Callout } from './Callout';
|
|
4
|
-
import { Button } from '../Button/Button';
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof Callout> = {
|
|
7
|
-
title: 'Components/Callout',
|
|
8
|
-
component: Callout,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
parameters: {
|
|
11
|
-
layout: 'padded',
|
|
12
|
-
docs: {
|
|
13
|
-
description: {
|
|
14
|
-
component:
|
|
15
|
-
'Callout components are used to display important messages, notifications, or alerts to users. They can be used to provide feedback, warnings, errors, or general information.',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
argTypes: {
|
|
20
|
-
variant: {
|
|
21
|
-
control: 'select',
|
|
22
|
-
options: ['primary', 'secondary', 'success', 'info', 'warning', 'error', 'light', 'dark'],
|
|
23
|
-
description: 'The color variant of the callout',
|
|
24
|
-
table: {
|
|
25
|
-
defaultValue: { summary: 'primary' },
|
|
26
|
-
type: { summary: 'string' },
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
title: {
|
|
30
|
-
control: 'text',
|
|
31
|
-
description: 'The title of the callout',
|
|
32
|
-
table: {
|
|
33
|
-
type: { summary: 'ReactNode' },
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
children: {
|
|
37
|
-
control: 'text',
|
|
38
|
-
description: 'The content of the callout',
|
|
39
|
-
table: {
|
|
40
|
-
type: { summary: 'ReactNode' },
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
icon: {
|
|
44
|
-
control: 'boolean',
|
|
45
|
-
description: 'Optional icon to display in the callout',
|
|
46
|
-
table: {
|
|
47
|
-
type: { summary: 'ReactNode' },
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
oneLine: {
|
|
51
|
-
control: 'boolean',
|
|
52
|
-
description: 'Display the callout in one line',
|
|
53
|
-
table: {
|
|
54
|
-
defaultValue: { summary: false },
|
|
55
|
-
type: { summary: 'boolean' },
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
toast: {
|
|
59
|
-
control: 'boolean',
|
|
60
|
-
description: 'Display the callout as a toast notification',
|
|
61
|
-
table: {
|
|
62
|
-
defaultValue: { summary: false },
|
|
63
|
-
type: { summary: 'boolean' },
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
onClose: {
|
|
67
|
-
action: 'closed',
|
|
68
|
-
description: 'Callback when the close button is clicked',
|
|
69
|
-
table: {
|
|
70
|
-
type: { summary: '() => void' },
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
actions: {
|
|
74
|
-
control: false,
|
|
75
|
-
description: 'Optional action buttons to display in the callout',
|
|
76
|
-
table: {
|
|
77
|
-
type: { summary: 'ReactNode' },
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
className: {
|
|
81
|
-
control: 'text',
|
|
82
|
-
description: 'Additional CSS class names',
|
|
83
|
-
table: {
|
|
84
|
-
type: { summary: 'string' },
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export default meta;
|
|
91
|
-
type Story = StoryObj<typeof Callout>;
|
|
92
|
-
|
|
93
|
-
// Icon components for different callout types
|
|
94
|
-
const InfoIcon = () => (
|
|
95
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
96
|
-
<path
|
|
97
|
-
d="M12 16V12M12 8H12.01M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"
|
|
98
|
-
stroke="currentColor"
|
|
99
|
-
strokeWidth="2"
|
|
100
|
-
strokeLinecap="round"
|
|
101
|
-
strokeLinejoin="round"
|
|
102
|
-
/>
|
|
103
|
-
</svg>
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
const SuccessIcon = () => (
|
|
107
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
108
|
-
<path
|
|
109
|
-
d="M9 12L11 14L15 10M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z"
|
|
110
|
-
stroke="currentColor"
|
|
111
|
-
strokeWidth="2"
|
|
112
|
-
strokeLinecap="round"
|
|
113
|
-
strokeLinejoin="round"
|
|
114
|
-
/>
|
|
115
|
-
</svg>
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
const WarningIcon = () => (
|
|
119
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
120
|
-
<path
|
|
121
|
-
d="M12 9V13M12 17H12.01M3.98069 8.00001C3.32275 9.15122 3 10.5502 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C10.5502 3 9.15122 3.32275 8.00001 3.98069"
|
|
122
|
-
stroke="currentColor"
|
|
123
|
-
strokeWidth="2"
|
|
124
|
-
strokeLinecap="round"
|
|
125
|
-
strokeLinejoin="round"
|
|
126
|
-
/>
|
|
127
|
-
</svg>
|
|
128
|
-
);
|
|
129
|
-
|
|
130
|
-
const ErrorIcon = () => (
|
|
131
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
132
|
-
<path
|
|
133
|
-
d="M12 9V13M12 17H12.01M11.2926 3.05737C11.5093 3.01652 11.7321 3 11.9565 3C16.3908 3 20 6.60914 20 11.0435C20 11.2679 19.9835 11.4907 19.9426 11.7074C19.4862 15.0952 16.5609 17.7241 13 17.9711C12.6712 17.9903 12.3375 18 12 18C7.58172 18 4 14.4183 4 10C4 6.43913 6.62884 3.51375 10.0166 3.05736C10.2333 3.01652 10.4561 3 10.6805 3C10.9049 3 11.1277 3.01652 11.3444 3.05736L11.2926 3.05737Z"
|
|
134
|
-
stroke="currentColor"
|
|
135
|
-
strokeWidth="2"
|
|
136
|
-
strokeLinecap="round"
|
|
137
|
-
strokeLinejoin="round"
|
|
138
|
-
/>
|
|
139
|
-
</svg>
|
|
140
|
-
);
|
|
141
|
-
|
|
142
|
-
// Basic variants
|
|
143
|
-
export const Default: Story = {
|
|
144
|
-
args: {
|
|
145
|
-
title: 'Information',
|
|
146
|
-
children: 'This is a default callout with some information.',
|
|
147
|
-
variant: 'primary',
|
|
148
|
-
icon: <InfoIcon />,
|
|
149
|
-
},
|
|
150
|
-
parameters: {
|
|
151
|
-
docs: {
|
|
152
|
-
description: {
|
|
153
|
-
story: 'The default callout with a title, content, and an icon.',
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export const Success: Story = {
|
|
160
|
-
args: {
|
|
161
|
-
title: 'Success',
|
|
162
|
-
children: 'Your changes have been saved successfully.',
|
|
163
|
-
variant: 'success',
|
|
164
|
-
icon: <SuccessIcon />,
|
|
165
|
-
},
|
|
166
|
-
parameters: {
|
|
167
|
-
docs: {
|
|
168
|
-
description: {
|
|
169
|
-
story: 'Use success callouts to confirm that an action was completed successfully.',
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export const Warning: Story = {
|
|
176
|
-
args: {
|
|
177
|
-
title: 'Warning',
|
|
178
|
-
children: 'Please review your information before proceeding.',
|
|
179
|
-
variant: 'warning',
|
|
180
|
-
icon: <WarningIcon />,
|
|
181
|
-
},
|
|
182
|
-
parameters: {
|
|
183
|
-
docs: {
|
|
184
|
-
description: {
|
|
185
|
-
story:
|
|
186
|
-
'Warning callouts alert users to potential issues or important information they should be aware of.',
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
export const Error: Story = {
|
|
193
|
-
args: {
|
|
194
|
-
title: 'Error',
|
|
195
|
-
children: 'There was a problem processing your request.',
|
|
196
|
-
variant: 'error',
|
|
197
|
-
icon: <ErrorIcon />,
|
|
198
|
-
},
|
|
199
|
-
parameters: {
|
|
200
|
-
docs: {
|
|
201
|
-
description: {
|
|
202
|
-
story: 'Error callouts indicate that something went wrong and requires attention.',
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
// Layout variants
|
|
209
|
-
export const WithActions: Story = {
|
|
210
|
-
args: {
|
|
211
|
-
title: 'Update Available',
|
|
212
|
-
children: 'A new version is available. Would you like to update now?',
|
|
213
|
-
variant: 'info',
|
|
214
|
-
icon: <InfoIcon />,
|
|
215
|
-
actions: (
|
|
216
|
-
<>
|
|
217
|
-
<Button label="Update Now" variant="primary" size="sm" />
|
|
218
|
-
<Button label="Later" variant="outline-primary" size="sm" />
|
|
219
|
-
</>
|
|
220
|
-
),
|
|
221
|
-
},
|
|
222
|
-
parameters: {
|
|
223
|
-
docs: {
|
|
224
|
-
description: {
|
|
225
|
-
story:
|
|
226
|
-
'Callouts can include action buttons to allow users to respond directly to the message.',
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
export const Dismissible: Story = {
|
|
233
|
-
args: {
|
|
234
|
-
title: 'Notification',
|
|
235
|
-
children: 'This is a dismissible callout that can be closed.',
|
|
236
|
-
variant: 'primary',
|
|
237
|
-
icon: <InfoIcon />,
|
|
238
|
-
onClose: () => console.log('Callout closed'),
|
|
239
|
-
},
|
|
240
|
-
parameters: {
|
|
241
|
-
docs: {
|
|
242
|
-
description: {
|
|
243
|
-
story:
|
|
244
|
-
'Dismissible callouts include a close button that allows users to remove the callout from view.',
|
|
245
|
-
},
|
|
246
|
-
},
|
|
247
|
-
},
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
export const OneLine: Story = {
|
|
251
|
-
args: {
|
|
252
|
-
title: 'Quick notification',
|
|
253
|
-
variant: 'info',
|
|
254
|
-
icon: <InfoIcon />,
|
|
255
|
-
oneLine: true,
|
|
256
|
-
},
|
|
257
|
-
parameters: {
|
|
258
|
-
docs: {
|
|
259
|
-
description: {
|
|
260
|
-
story:
|
|
261
|
-
'One-line callouts are more compact and display the title and icon in a single line.',
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
export const Toast: Story = {
|
|
268
|
-
args: {
|
|
269
|
-
title: 'Toast Notification',
|
|
270
|
-
children: 'This callout is styled as a toast notification.',
|
|
271
|
-
variant: 'success',
|
|
272
|
-
icon: <SuccessIcon />,
|
|
273
|
-
toast: true,
|
|
274
|
-
onClose: () => console.log('Toast closed'),
|
|
275
|
-
},
|
|
276
|
-
parameters: {
|
|
277
|
-
docs: {
|
|
278
|
-
description: {
|
|
279
|
-
story:
|
|
280
|
-
'Toast notifications are temporary messages that appear and disappear automatically.',
|
|
281
|
-
},
|
|
282
|
-
},
|
|
283
|
-
},
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
// Theme variants
|
|
287
|
-
export const Dark: Story = {
|
|
288
|
-
args: {
|
|
289
|
-
title: 'Dark Mode',
|
|
290
|
-
children: 'This is a dark variant of the callout component.',
|
|
291
|
-
variant: 'dark',
|
|
292
|
-
icon: <InfoIcon />,
|
|
293
|
-
},
|
|
294
|
-
parameters: {
|
|
295
|
-
docs: {
|
|
296
|
-
description: {
|
|
297
|
-
story:
|
|
298
|
-
'Dark callouts are useful for dark-themed interfaces or for creating visual contrast.',
|
|
299
|
-
},
|
|
300
|
-
},
|
|
301
|
-
},
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
export const Light: Story = {
|
|
305
|
-
args: {
|
|
306
|
-
title: 'Light Mode',
|
|
307
|
-
children: 'This is a light variant of the callout component.',
|
|
308
|
-
variant: 'light',
|
|
309
|
-
icon: <InfoIcon />,
|
|
310
|
-
},
|
|
311
|
-
parameters: {
|
|
312
|
-
docs: {
|
|
313
|
-
description: {
|
|
314
|
-
story:
|
|
315
|
-
'Light callouts are useful for light-themed interfaces or for creating visual contrast.',
|
|
316
|
-
},
|
|
317
|
-
},
|
|
318
|
-
},
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
// Interactive examples
|
|
322
|
-
const ToastDemoTemplate = () => {
|
|
323
|
-
const [toasts, setToasts] = useState<{ id: string; variant: string }[]>([]);
|
|
324
|
-
|
|
325
|
-
const addToast = (variant: string) => {
|
|
326
|
-
const id = Math.random().toString(36).substring(2, 9);
|
|
327
|
-
setToasts([...toasts, { id, variant }]);
|
|
328
|
-
|
|
329
|
-
// Auto-remove after 5 seconds
|
|
330
|
-
setTimeout(() => {
|
|
331
|
-
setToasts(current => current.filter(toast => toast.id !== id));
|
|
332
|
-
}, 5000);
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
const removeToast = (id: string) => {
|
|
336
|
-
setToasts(current => current.filter(toast => toast.id !== id));
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
const getIcon = (variant: string) => {
|
|
340
|
-
switch (variant) {
|
|
341
|
-
case 'success':
|
|
342
|
-
return <SuccessIcon />;
|
|
343
|
-
case 'warning':
|
|
344
|
-
return <WarningIcon />;
|
|
345
|
-
case 'error':
|
|
346
|
-
return <ErrorIcon />;
|
|
347
|
-
default:
|
|
348
|
-
return <InfoIcon />;
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
const getTitle = (variant: string) => {
|
|
353
|
-
switch (variant) {
|
|
354
|
-
case 'success':
|
|
355
|
-
return 'Success';
|
|
356
|
-
case 'warning':
|
|
357
|
-
return 'Warning';
|
|
358
|
-
case 'error':
|
|
359
|
-
return 'Error';
|
|
360
|
-
default:
|
|
361
|
-
return 'Information';
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
const getMessage = (variant: string) => {
|
|
366
|
-
switch (variant) {
|
|
367
|
-
case 'success':
|
|
368
|
-
return 'Operation completed successfully!';
|
|
369
|
-
case 'warning':
|
|
370
|
-
return 'Please review before continuing.';
|
|
371
|
-
case 'error':
|
|
372
|
-
return 'An error occurred. Please try again.';
|
|
373
|
-
default:
|
|
374
|
-
return 'This is an informational message.';
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
return (
|
|
379
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
|
|
380
|
-
<div style={{ display: 'flex', gap: '8px' }}>
|
|
381
|
-
<Button
|
|
382
|
-
label="Add Info Toast"
|
|
383
|
-
variant="primary"
|
|
384
|
-
size="sm"
|
|
385
|
-
onClick={() => addToast('info')}
|
|
386
|
-
/>
|
|
387
|
-
<Button
|
|
388
|
-
label="Add Success Toast"
|
|
389
|
-
variant="success"
|
|
390
|
-
size="sm"
|
|
391
|
-
onClick={() => addToast('success')}
|
|
392
|
-
/>
|
|
393
|
-
<Button
|
|
394
|
-
label="Add Warning Toast"
|
|
395
|
-
variant="warning"
|
|
396
|
-
size="sm"
|
|
397
|
-
onClick={() => addToast('warning')}
|
|
398
|
-
/>
|
|
399
|
-
<Button
|
|
400
|
-
label="Add Error Toast"
|
|
401
|
-
variant="error"
|
|
402
|
-
size="sm"
|
|
403
|
-
onClick={() => addToast('error')}
|
|
404
|
-
/>
|
|
405
|
-
</div>
|
|
406
|
-
|
|
407
|
-
<div
|
|
408
|
-
style={{
|
|
409
|
-
position: 'relative',
|
|
410
|
-
height: '300px',
|
|
411
|
-
border: '1px dashed #ccc',
|
|
412
|
-
borderRadius: '8px',
|
|
413
|
-
padding: '16px',
|
|
414
|
-
overflow: 'hidden',
|
|
415
|
-
}}
|
|
416
|
-
>
|
|
417
|
-
<div
|
|
418
|
-
style={{
|
|
419
|
-
position: 'absolute',
|
|
420
|
-
top: '16px',
|
|
421
|
-
right: '16px',
|
|
422
|
-
display: 'flex',
|
|
423
|
-
flexDirection: 'column',
|
|
424
|
-
gap: '8px',
|
|
425
|
-
maxWidth: '350px',
|
|
426
|
-
}}
|
|
427
|
-
>
|
|
428
|
-
{toasts.map(toast => (
|
|
429
|
-
<Callout
|
|
430
|
-
key={toast.id}
|
|
431
|
-
title={getTitle(toast.variant)}
|
|
432
|
-
variant={toast.variant as any}
|
|
433
|
-
icon={getIcon(toast.variant)}
|
|
434
|
-
toast={true}
|
|
435
|
-
onClose={() => removeToast(toast.id)}
|
|
436
|
-
>
|
|
437
|
-
{getMessage(toast.variant)}
|
|
438
|
-
</Callout>
|
|
439
|
-
))}
|
|
440
|
-
</div>
|
|
441
|
-
{toasts.length === 0 && (
|
|
442
|
-
<div
|
|
443
|
-
style={{
|
|
444
|
-
display: 'flex',
|
|
445
|
-
height: '100%',
|
|
446
|
-
alignItems: 'center',
|
|
447
|
-
justifyContent: 'center',
|
|
448
|
-
color: '#666',
|
|
449
|
-
}}
|
|
450
|
-
>
|
|
451
|
-
Click a button above to show toast notifications here
|
|
452
|
-
</div>
|
|
453
|
-
)}
|
|
454
|
-
</div>
|
|
455
|
-
</div>
|
|
456
|
-
);
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
export const ToastDemo: Story = {
|
|
460
|
-
render: () => <ToastDemoTemplate />,
|
|
461
|
-
parameters: {
|
|
462
|
-
docs: {
|
|
463
|
-
description: {
|
|
464
|
-
story:
|
|
465
|
-
'Interactive demo showing how toast notifications can be triggered and displayed in different variants.',
|
|
466
|
-
},
|
|
467
|
-
},
|
|
468
|
-
},
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
const AutoDismissTemplate = () => {
|
|
472
|
-
const [visible, setVisible] = useState(true);
|
|
473
|
-
const [countdown, setCountdown] = useState(5);
|
|
474
|
-
|
|
475
|
-
useEffect(() => {
|
|
476
|
-
if (!visible) return;
|
|
477
|
-
|
|
478
|
-
const timer = setInterval(() => {
|
|
479
|
-
setCountdown(prev => {
|
|
480
|
-
if (prev <= 1) {
|
|
481
|
-
clearInterval(timer);
|
|
482
|
-
setVisible(false);
|
|
483
|
-
return 0;
|
|
484
|
-
}
|
|
485
|
-
return prev - 1;
|
|
486
|
-
});
|
|
487
|
-
}, 1000);
|
|
488
|
-
|
|
489
|
-
return () => clearInterval(timer);
|
|
490
|
-
}, [visible]);
|
|
491
|
-
|
|
492
|
-
const resetCallout = () => {
|
|
493
|
-
setVisible(true);
|
|
494
|
-
setCountdown(5);
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
return (
|
|
498
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
|
|
499
|
-
{visible ? (
|
|
500
|
-
<Callout
|
|
501
|
-
title={`Auto-dismissing in ${countdown} seconds`}
|
|
502
|
-
variant="warning"
|
|
503
|
-
icon={<WarningIcon />}
|
|
504
|
-
onClose={() => setVisible(false)}
|
|
505
|
-
>
|
|
506
|
-
This callout will automatically dismiss after the countdown. You can also dismiss it
|
|
507
|
-
manually.
|
|
508
|
-
</Callout>
|
|
509
|
-
) : (
|
|
510
|
-
<Button label="Show Auto-dismiss Callout" variant="primary" onClick={resetCallout} />
|
|
511
|
-
)}
|
|
512
|
-
</div>
|
|
513
|
-
);
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
export const AutoDismiss: Story = {
|
|
517
|
-
render: () => <AutoDismissTemplate />,
|
|
518
|
-
parameters: {
|
|
519
|
-
docs: {
|
|
520
|
-
description: {
|
|
521
|
-
story: 'Example of a callout that automatically dismisses after a countdown.',
|
|
522
|
-
},
|
|
523
|
-
},
|
|
524
|
-
},
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
const AllVariantsTemplate = () => {
|
|
528
|
-
const variants = ['primary', 'secondary', 'success', 'info', 'warning', 'error', 'light', 'dark'];
|
|
529
|
-
|
|
530
|
-
const getIcon = (variant: string) => {
|
|
531
|
-
switch (variant) {
|
|
532
|
-
case 'success':
|
|
533
|
-
return <SuccessIcon />;
|
|
534
|
-
case 'warning':
|
|
535
|
-
return <WarningIcon />;
|
|
536
|
-
case 'error':
|
|
537
|
-
return <ErrorIcon />;
|
|
538
|
-
default:
|
|
539
|
-
return <InfoIcon />;
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
return (
|
|
544
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
|
|
545
|
-
{variants.map(variant => (
|
|
546
|
-
<Callout
|
|
547
|
-
key={variant}
|
|
548
|
-
title={`${variant.charAt(0).toUpperCase() + variant.slice(1)} Variant`}
|
|
549
|
-
variant={variant as any}
|
|
550
|
-
icon={getIcon(variant)}
|
|
551
|
-
>
|
|
552
|
-
This is an example of the {variant} callout variant.
|
|
553
|
-
</Callout>
|
|
554
|
-
))}
|
|
555
|
-
</div>
|
|
556
|
-
);
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
export const AllVariants: Story = {
|
|
560
|
-
render: () => <AllVariantsTemplate />,
|
|
561
|
-
parameters: {
|
|
562
|
-
docs: {
|
|
563
|
-
description: {
|
|
564
|
-
story: 'Overview of all available callout color variants.',
|
|
565
|
-
},
|
|
566
|
-
},
|
|
567
|
-
},
|
|
568
|
-
};
|
|
569
|
-
|
|
570
|
-
const CalloutWithCustomContentTemplate = () => (
|
|
571
|
-
<Callout title="Custom Content Example" variant="primary" icon={<InfoIcon />}>
|
|
572
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '12px' }}>
|
|
573
|
-
<p>Callouts can contain rich content including:</p>
|
|
574
|
-
<ul style={{ margin: 0, paddingLeft: '20px' }}>
|
|
575
|
-
<li>Lists of items</li>
|
|
576
|
-
<li>Formatted text</li>
|
|
577
|
-
<li>Custom components</li>
|
|
578
|
-
</ul>
|
|
579
|
-
<div style={{ backgroundColor: 'rgba(0,0,0,0.05)', padding: '8px', borderRadius: '4px' }}>
|
|
580
|
-
<code>This is a code example</code>
|
|
581
|
-
</div>
|
|
582
|
-
</div>
|
|
583
|
-
</Callout>
|
|
584
|
-
);
|
|
585
|
-
|
|
586
|
-
export const CustomContent: Story = {
|
|
587
|
-
render: () => <CalloutWithCustomContentTemplate />,
|
|
588
|
-
parameters: {
|
|
589
|
-
docs: {
|
|
590
|
-
description: {
|
|
591
|
-
story: 'Callouts can contain rich, custom content beyond simple text.',
|
|
592
|
-
},
|
|
593
|
-
},
|
|
594
|
-
},
|
|
595
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CalloutProps } from '../../lib/types/components';
|
|
3
|
-
import { useCallout } from '../../lib/composables/useCallout';
|
|
4
|
-
import { Icon } from '../Icon/Icon';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Callout component for displaying important messages, notifications, or alerts
|
|
8
|
-
*/
|
|
9
|
-
export const Callout: React.FC<CalloutProps> = ({
|
|
10
|
-
title,
|
|
11
|
-
children,
|
|
12
|
-
icon,
|
|
13
|
-
variant = 'primary',
|
|
14
|
-
onClose,
|
|
15
|
-
actions,
|
|
16
|
-
oneLine = false,
|
|
17
|
-
toast = false,
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}) => {
|
|
21
|
-
const { generateCalloutClass, handleClose } = useCallout({
|
|
22
|
-
variant,
|
|
23
|
-
oneLine,
|
|
24
|
-
toast,
|
|
25
|
-
className,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
// Determine appropriate ARIA attributes based on variant
|
|
29
|
-
const getAriaAttributes = () => {
|
|
30
|
-
const baseAttributes: Record<string, string> = {
|
|
31
|
-
role: 'region',
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// For toast notifications or alerts, use appropriate role and live region
|
|
35
|
-
if (toast) {
|
|
36
|
-
baseAttributes.role = 'alert';
|
|
37
|
-
baseAttributes['aria-live'] = 'polite';
|
|
38
|
-
} else if (['warning', 'error'].includes(variant)) {
|
|
39
|
-
baseAttributes.role = 'alert';
|
|
40
|
-
baseAttributes['aria-live'] = 'assertive';
|
|
41
|
-
} else if (['info', 'success'].includes(variant)) {
|
|
42
|
-
baseAttributes.role = 'status';
|
|
43
|
-
baseAttributes['aria-live'] = 'polite';
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return baseAttributes;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<div
|
|
51
|
-
className={generateCalloutClass({ variant, oneLine, toast, className })}
|
|
52
|
-
{...getAriaAttributes()}
|
|
53
|
-
{...props}
|
|
54
|
-
>
|
|
55
|
-
<div className="c-callout__content">
|
|
56
|
-
{icon && <div className="c-callout__icon">{icon}</div>}
|
|
57
|
-
<div className="c-callout__message">
|
|
58
|
-
{title && <div className="c-callout__title">{title}</div>}
|
|
59
|
-
{children && <div className="c-callout__text">{children}</div>}
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
{actions && <div className="c-callout__actions">{actions}</div>}
|
|
64
|
-
|
|
65
|
-
{onClose && (
|
|
66
|
-
<button className="c-callout__close-btn" onClick={handleClose(onClose)} aria-label="Close">
|
|
67
|
-
<Icon name="X" size="md" />
|
|
68
|
-
</button>
|
|
69
|
-
)}
|
|
70
|
-
</div>
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
Callout.displayName = 'Callout';
|
|
75
|
-
|
|
76
|
-
export type { CalloutProps };
|
|
77
|
-
|
|
78
|
-
export default Callout;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Callout } from './Callout';
|