@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,574 +0,0 @@
|
|
|
1
|
-
import { TODO } from '../../../lib/constants/components';
|
|
2
|
-
import type { TodoItem } from './types';
|
|
3
|
-
import { generateUUID } from '../../../lib/utils';
|
|
4
|
-
|
|
5
|
-
export type { TodoItem };
|
|
6
|
-
export { useTodo } from '../../../lib/composables/useTodo';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* TodoOptions interface for the vanilla JS implementation
|
|
10
|
-
*/
|
|
11
|
-
export interface TodoOptions {
|
|
12
|
-
title?: string;
|
|
13
|
-
items?: TodoItem[];
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
size?: 'sm' | 'md' | 'lg';
|
|
16
|
-
showCompleted?: boolean;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
onAddTodo?: (text: string) => void;
|
|
19
|
-
onToggleTodo?: (id: string) => void;
|
|
20
|
-
onDeleteTodo?: (id: string) => void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* TodoEvents for custom event types
|
|
25
|
-
*/
|
|
26
|
-
export enum TodoEvents {
|
|
27
|
-
ADD = 'todo:add',
|
|
28
|
-
TOGGLE = 'todo:toggle',
|
|
29
|
-
DELETE = 'todo:delete',
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Todo Class - Vanilla JS implementation
|
|
34
|
-
*/
|
|
35
|
-
export class Todo {
|
|
36
|
-
// Default options
|
|
37
|
-
private static defaults: TodoOptions = {
|
|
38
|
-
title: 'Todo List',
|
|
39
|
-
items: [],
|
|
40
|
-
placeholder: 'Add a new todo',
|
|
41
|
-
size: 'md',
|
|
42
|
-
showCompleted: true,
|
|
43
|
-
disabled: false,
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
// DOM elements
|
|
47
|
-
private element: HTMLElement;
|
|
48
|
-
private listElement: HTMLElement | null = null;
|
|
49
|
-
private formElement: HTMLFormElement | null = null;
|
|
50
|
-
private inputElement: HTMLInputElement | null = null;
|
|
51
|
-
|
|
52
|
-
// State
|
|
53
|
-
private options: TodoOptions;
|
|
54
|
-
private items: TodoItem[] = [];
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Constructor
|
|
58
|
-
* @param element - DOM element or selector
|
|
59
|
-
* @param options - Configuration options
|
|
60
|
-
*/
|
|
61
|
-
constructor(element: string | HTMLElement, options: TodoOptions = {}) {
|
|
62
|
-
// Get element reference
|
|
63
|
-
this.element =
|
|
64
|
-
typeof element === 'string' ? (document.querySelector(element) as HTMLElement) : element;
|
|
65
|
-
|
|
66
|
-
if (!this.element) {
|
|
67
|
-
throw new Error('Todo: Element not found');
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Merge default options with provided options
|
|
71
|
-
this.options = { ...Todo.defaults, ...options };
|
|
72
|
-
this.items = this.options.items || [];
|
|
73
|
-
|
|
74
|
-
// Initialize the component
|
|
75
|
-
this._initialize();
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Initialize the component
|
|
80
|
-
* @private
|
|
81
|
-
*/
|
|
82
|
-
private _initialize(): void {
|
|
83
|
-
// Clear element
|
|
84
|
-
this.element.innerHTML = '';
|
|
85
|
-
|
|
86
|
-
// Add base class
|
|
87
|
-
this.element.classList.add(TODO.CLASSES.BASE);
|
|
88
|
-
|
|
89
|
-
// Add size class if not default
|
|
90
|
-
if (this.options.size && this.options.size !== 'md') {
|
|
91
|
-
this.element.classList.add(`c-todo--${this.options.size}`);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Add disabled class if needed
|
|
95
|
-
if (this.options.disabled) {
|
|
96
|
-
this.element.classList.add('c-todo--disabled');
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Create structure
|
|
100
|
-
this._createStructure();
|
|
101
|
-
|
|
102
|
-
// Bind events
|
|
103
|
-
this._bindEvents();
|
|
104
|
-
|
|
105
|
-
// Render items
|
|
106
|
-
this._renderItems();
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Create component structure
|
|
111
|
-
* @private
|
|
112
|
-
*/
|
|
113
|
-
private _createStructure(): void {
|
|
114
|
-
// Title
|
|
115
|
-
if (this.options.title) {
|
|
116
|
-
const title = document.createElement('h2');
|
|
117
|
-
title.className = 'c-todo__title';
|
|
118
|
-
title.textContent = this.options.title;
|
|
119
|
-
this.element.appendChild(title);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// Form
|
|
123
|
-
this.formElement = document.createElement('form');
|
|
124
|
-
this.formElement.className = 'c-todo__form';
|
|
125
|
-
|
|
126
|
-
const formGroup = document.createElement('div');
|
|
127
|
-
formGroup.className = 'c-todo__form-group';
|
|
128
|
-
|
|
129
|
-
// Input
|
|
130
|
-
this.inputElement = document.createElement('input');
|
|
131
|
-
this.inputElement.type = 'text';
|
|
132
|
-
this.inputElement.className = 'c-todo__input c-input';
|
|
133
|
-
this.inputElement.placeholder = this.options.placeholder || 'Add a new todo';
|
|
134
|
-
this.inputElement.disabled = this.options.disabled || false;
|
|
135
|
-
this.inputElement.setAttribute('aria-label', 'Add a new todo');
|
|
136
|
-
|
|
137
|
-
// Add button
|
|
138
|
-
const addButton = document.createElement('button');
|
|
139
|
-
addButton.type = 'submit';
|
|
140
|
-
addButton.className = 'c-todo__add-btn c-btn c-btn--primary';
|
|
141
|
-
addButton.disabled = this.options.disabled || false;
|
|
142
|
-
addButton.setAttribute('aria-label', 'Add todo');
|
|
143
|
-
|
|
144
|
-
// Plus icon (SVG)
|
|
145
|
-
const svgNS = 'http://www.w3.org/2000/svg';
|
|
146
|
-
const iconSvg = document.createElementNS(svgNS, 'svg');
|
|
147
|
-
iconSvg.setAttribute('width', '16');
|
|
148
|
-
iconSvg.setAttribute('height', '16');
|
|
149
|
-
iconSvg.setAttribute('viewBox', '0 0 256 256');
|
|
150
|
-
iconSvg.setAttribute('fill', 'none');
|
|
151
|
-
iconSvg.setAttribute('xmlns', svgNS);
|
|
152
|
-
|
|
153
|
-
// Create the plus icon path
|
|
154
|
-
const iconPath = document.createElementNS(svgNS, 'path');
|
|
155
|
-
iconPath.setAttribute(
|
|
156
|
-
'd',
|
|
157
|
-
'M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8Z'
|
|
158
|
-
);
|
|
159
|
-
iconPath.setAttribute('fill', 'currentColor');
|
|
160
|
-
|
|
161
|
-
iconSvg.appendChild(iconPath);
|
|
162
|
-
addButton.appendChild(iconSvg);
|
|
163
|
-
|
|
164
|
-
formGroup.appendChild(this.inputElement);
|
|
165
|
-
formGroup.appendChild(addButton);
|
|
166
|
-
this.formElement.appendChild(formGroup);
|
|
167
|
-
this.element.appendChild(this.formElement);
|
|
168
|
-
|
|
169
|
-
// List
|
|
170
|
-
this.listElement = document.createElement('ul');
|
|
171
|
-
this.listElement.className = 'c-todo__list';
|
|
172
|
-
this.element.appendChild(this.listElement);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Bind event listeners
|
|
177
|
-
* @private
|
|
178
|
-
*/
|
|
179
|
-
private _bindEvents(): void {
|
|
180
|
-
if (this.formElement) {
|
|
181
|
-
this.formElement.addEventListener('submit', this._handleSubmit.bind(this));
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// Apply focus effect to input if available
|
|
185
|
-
if (this.inputElement) {
|
|
186
|
-
this.inputElement.addEventListener('focus', () => {
|
|
187
|
-
const formGroup = this.inputElement
|
|
188
|
-
? this.inputElement.closest('.c-todo__form-group')
|
|
189
|
-
: null;
|
|
190
|
-
formGroup?.classList.add('is-focused');
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
this.inputElement.addEventListener('blur', () => {
|
|
194
|
-
const formGroup = this.inputElement
|
|
195
|
-
? this.inputElement.closest('.c-todo__form-group')
|
|
196
|
-
: null;
|
|
197
|
-
formGroup?.classList.remove('is-focused');
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Handle form submission
|
|
204
|
-
* @private
|
|
205
|
-
*/
|
|
206
|
-
private _handleSubmit(event: Event): void {
|
|
207
|
-
event.preventDefault();
|
|
208
|
-
|
|
209
|
-
if (this.options.disabled || !this.inputElement) return;
|
|
210
|
-
|
|
211
|
-
const text = this.inputElement.value.trim();
|
|
212
|
-
if (!text) return;
|
|
213
|
-
|
|
214
|
-
// Add new todo
|
|
215
|
-
const newItem = this.addTodo(text);
|
|
216
|
-
|
|
217
|
-
// Clear input
|
|
218
|
-
this.inputElement.value = '';
|
|
219
|
-
|
|
220
|
-
// Call callback if provided
|
|
221
|
-
if (newItem && this.options.onAddTodo) {
|
|
222
|
-
this.options.onAddTodo(newItem.text);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Handle item toggle
|
|
228
|
-
* @private
|
|
229
|
-
*/
|
|
230
|
-
private _handleToggle(id: string): void {
|
|
231
|
-
if (this.options.disabled) return;
|
|
232
|
-
|
|
233
|
-
const item = this.items.find(item => item.id === id);
|
|
234
|
-
if (!item) return;
|
|
235
|
-
|
|
236
|
-
item.completed = !item.completed;
|
|
237
|
-
this._renderItems();
|
|
238
|
-
|
|
239
|
-
// Call callback if provided
|
|
240
|
-
if (this.options.onToggleTodo) {
|
|
241
|
-
this.options.onToggleTodo(id);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// Dispatch custom event
|
|
245
|
-
this.element.dispatchEvent(
|
|
246
|
-
new CustomEvent(TodoEvents.TOGGLE, {
|
|
247
|
-
bubbles: true,
|
|
248
|
-
detail: { id, completed: item.completed },
|
|
249
|
-
})
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Handle item deletion
|
|
255
|
-
* @private
|
|
256
|
-
*/
|
|
257
|
-
private _handleDelete(id: string): void {
|
|
258
|
-
if (this.options.disabled) return;
|
|
259
|
-
|
|
260
|
-
const deleted = this.deleteTodo(id);
|
|
261
|
-
|
|
262
|
-
if (deleted) {
|
|
263
|
-
// Call callback if provided
|
|
264
|
-
if (this.options.onDeleteTodo) {
|
|
265
|
-
this.options.onDeleteTodo(id);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
// Dispatch custom event
|
|
269
|
-
this.element.dispatchEvent(
|
|
270
|
-
new CustomEvent(TodoEvents.DELETE, {
|
|
271
|
-
bubbles: true,
|
|
272
|
-
detail: { id },
|
|
273
|
-
})
|
|
274
|
-
);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Render todo items
|
|
280
|
-
* @private
|
|
281
|
-
*/
|
|
282
|
-
private _renderItems(): void {
|
|
283
|
-
if (!this.listElement) return;
|
|
284
|
-
|
|
285
|
-
// Clear list
|
|
286
|
-
this.listElement.innerHTML = '';
|
|
287
|
-
|
|
288
|
-
// Filter items if needed
|
|
289
|
-
const itemsToRender = this.options.showCompleted
|
|
290
|
-
? this.items
|
|
291
|
-
: this.items.filter(item => !item.completed);
|
|
292
|
-
|
|
293
|
-
// Render each item
|
|
294
|
-
itemsToRender.forEach(item => {
|
|
295
|
-
const listItem = document.createElement('li');
|
|
296
|
-
listItem.className = 'c-todo__item';
|
|
297
|
-
listItem.dataset.id = item.id;
|
|
298
|
-
|
|
299
|
-
if (item.completed) {
|
|
300
|
-
listItem.classList.add('c-todo__item--completed');
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
// Checkbox
|
|
304
|
-
const checkbox = document.createElement('input');
|
|
305
|
-
checkbox.type = 'checkbox';
|
|
306
|
-
checkbox.className = 'c-todo__checkbox';
|
|
307
|
-
checkbox.checked = item.completed;
|
|
308
|
-
checkbox.disabled = this.options.disabled || false;
|
|
309
|
-
checkbox.setAttribute(
|
|
310
|
-
'aria-label',
|
|
311
|
-
`Mark "${item.text}" as ${item.completed ? 'incomplete' : 'complete'}`
|
|
312
|
-
);
|
|
313
|
-
|
|
314
|
-
// Label
|
|
315
|
-
const label = document.createElement('span');
|
|
316
|
-
label.className = 'c-todo__text';
|
|
317
|
-
label.textContent = item.text;
|
|
318
|
-
|
|
319
|
-
// Delete button
|
|
320
|
-
const deleteButton = document.createElement('button');
|
|
321
|
-
deleteButton.type = 'button';
|
|
322
|
-
deleteButton.className = 'c-todo__delete-btn';
|
|
323
|
-
deleteButton.disabled = this.options.disabled || false;
|
|
324
|
-
deleteButton.setAttribute('aria-label', `Delete "${item.text}"`);
|
|
325
|
-
|
|
326
|
-
// Trash icon (SVG)
|
|
327
|
-
const svgNS = 'http://www.w3.org/2000/svg';
|
|
328
|
-
const iconSvg = document.createElementNS(svgNS, 'svg');
|
|
329
|
-
iconSvg.setAttribute('width', '16');
|
|
330
|
-
iconSvg.setAttribute('height', '16');
|
|
331
|
-
iconSvg.setAttribute('viewBox', '0 0 256 256');
|
|
332
|
-
iconSvg.setAttribute('fill', 'none');
|
|
333
|
-
iconSvg.setAttribute('xmlns', svgNS);
|
|
334
|
-
|
|
335
|
-
// Create the trash icon path
|
|
336
|
-
const iconPath = document.createElementNS(svgNS, 'path');
|
|
337
|
-
iconPath.setAttribute(
|
|
338
|
-
'd',
|
|
339
|
-
'M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16ZM96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Zm48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Z'
|
|
340
|
-
);
|
|
341
|
-
iconPath.setAttribute('fill', 'currentColor');
|
|
342
|
-
|
|
343
|
-
iconSvg.appendChild(iconPath);
|
|
344
|
-
deleteButton.appendChild(iconSvg);
|
|
345
|
-
|
|
346
|
-
// Add elements to list item
|
|
347
|
-
listItem.appendChild(checkbox);
|
|
348
|
-
listItem.appendChild(label);
|
|
349
|
-
listItem.appendChild(deleteButton);
|
|
350
|
-
|
|
351
|
-
// Add list item to list
|
|
352
|
-
if (this.listElement) {
|
|
353
|
-
this.listElement.appendChild(listItem);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
// Add event listeners
|
|
357
|
-
checkbox.addEventListener('change', () => this._handleToggle(item.id));
|
|
358
|
-
deleteButton.addEventListener('click', e => {
|
|
359
|
-
e.preventDefault();
|
|
360
|
-
this._handleDelete(item.id);
|
|
361
|
-
});
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* Add a new todo item
|
|
367
|
-
* @param text - Todo text
|
|
368
|
-
* @returns The new todo item or null if failed
|
|
369
|
-
*/
|
|
370
|
-
public addTodo(text: string): TodoItem | null {
|
|
371
|
-
if (!text.trim() || this.options.disabled) return null;
|
|
372
|
-
|
|
373
|
-
const newItem: TodoItem = {
|
|
374
|
-
id: generateUUID(),
|
|
375
|
-
text: text.trim(),
|
|
376
|
-
completed: false,
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
this.items.push(newItem);
|
|
380
|
-
this._renderItems();
|
|
381
|
-
|
|
382
|
-
// Dispatch custom event
|
|
383
|
-
this.element.dispatchEvent(
|
|
384
|
-
new CustomEvent(TodoEvents.ADD, {
|
|
385
|
-
bubbles: true,
|
|
386
|
-
detail: { item: newItem },
|
|
387
|
-
})
|
|
388
|
-
);
|
|
389
|
-
|
|
390
|
-
return newItem;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* Toggle a todo item's completed state
|
|
395
|
-
* @param id - Todo item ID
|
|
396
|
-
* @returns The toggled todo item or null if not found
|
|
397
|
-
*/
|
|
398
|
-
public toggleTodo(id: string): TodoItem | null {
|
|
399
|
-
const item = this.items.find(item => item.id === id);
|
|
400
|
-
if (!item || this.options.disabled) return null;
|
|
401
|
-
|
|
402
|
-
item.completed = !item.completed;
|
|
403
|
-
this._renderItems();
|
|
404
|
-
|
|
405
|
-
return item;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Delete a todo item
|
|
410
|
-
* @param id - Todo item ID
|
|
411
|
-
* @returns Whether the item was deleted
|
|
412
|
-
*/
|
|
413
|
-
public deleteTodo(id: string): boolean {
|
|
414
|
-
const initialLength = this.items.length;
|
|
415
|
-
this.items = this.items.filter(item => item.id !== id);
|
|
416
|
-
|
|
417
|
-
if (this.items.length !== initialLength) {
|
|
418
|
-
this._renderItems();
|
|
419
|
-
return true;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
return false;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* Update todo items
|
|
427
|
-
* @param items - New todo items
|
|
428
|
-
*/
|
|
429
|
-
public updateItems(items: TodoItem[]): void {
|
|
430
|
-
this.items = items;
|
|
431
|
-
this._renderItems();
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Update component options
|
|
436
|
-
* @param options - New options
|
|
437
|
-
*/
|
|
438
|
-
public update(options: Partial<TodoOptions>): void {
|
|
439
|
-
this.options = { ...this.options, ...options };
|
|
440
|
-
|
|
441
|
-
// Update disabled state
|
|
442
|
-
if (options.disabled !== undefined) {
|
|
443
|
-
if (options.disabled) {
|
|
444
|
-
this.element.classList.add('c-todo--disabled');
|
|
445
|
-
} else {
|
|
446
|
-
this.element.classList.remove('c-todo--disabled');
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
if (this.inputElement) {
|
|
450
|
-
this.inputElement.disabled = options.disabled;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
const addButton = this.formElement?.querySelector('.c-todo__add-btn') as HTMLButtonElement;
|
|
454
|
-
if (addButton) {
|
|
455
|
-
addButton.disabled = options.disabled;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
// Update size
|
|
460
|
-
if (options.size) {
|
|
461
|
-
// Remove existing size classes
|
|
462
|
-
['sm', 'md', 'lg'].forEach(size => {
|
|
463
|
-
this.element.classList.remove(`c-todo--${size}`);
|
|
464
|
-
});
|
|
465
|
-
|
|
466
|
-
// Add new size class if not default
|
|
467
|
-
if (options.size !== 'md') {
|
|
468
|
-
this.element.classList.add(`c-todo--${options.size}`);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
// Update title
|
|
473
|
-
if (options.title !== undefined) {
|
|
474
|
-
let titleElement = this.element.querySelector('.c-todo__title') as HTMLHeadingElement;
|
|
475
|
-
|
|
476
|
-
if (options.title) {
|
|
477
|
-
if (!titleElement) {
|
|
478
|
-
titleElement = document.createElement('h2');
|
|
479
|
-
titleElement.className = 'c-todo__title';
|
|
480
|
-
this.element.insertBefore(titleElement, this.element.firstChild);
|
|
481
|
-
}
|
|
482
|
-
titleElement.textContent = options.title;
|
|
483
|
-
} else if (titleElement) {
|
|
484
|
-
titleElement.remove();
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
// Update placeholder
|
|
489
|
-
if (options.placeholder && this.inputElement) {
|
|
490
|
-
this.inputElement.placeholder = options.placeholder;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
// Update items or showCompleted flag
|
|
494
|
-
if (options.items || options.showCompleted !== undefined) {
|
|
495
|
-
if (options.items) {
|
|
496
|
-
this.items = options.items;
|
|
497
|
-
}
|
|
498
|
-
this._renderItems();
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Clean up event listeners
|
|
504
|
-
*/
|
|
505
|
-
public destroy(): void {
|
|
506
|
-
// Remove form event listener
|
|
507
|
-
if (this.formElement) {
|
|
508
|
-
this.formElement.removeEventListener('submit', this._handleSubmit);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
// Remove input event listeners
|
|
512
|
-
if (this.inputElement) {
|
|
513
|
-
this.inputElement.removeEventListener('focus', () => {});
|
|
514
|
-
this.inputElement.removeEventListener('blur', () => {});
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
// Clear element
|
|
518
|
-
this.element.innerHTML = '';
|
|
519
|
-
this.element.classList.remove(TODO.CLASSES.BASE);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* Initialize all Todo components in the document
|
|
524
|
-
*/
|
|
525
|
-
public static initializeAll(): void {
|
|
526
|
-
const todoElements = document.querySelectorAll<HTMLElement>('.c-todo');
|
|
527
|
-
todoElements.forEach(element => {
|
|
528
|
-
new Todo(element);
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
// Export todoInteractions
|
|
534
|
-
export * from './todoInteractions';
|
|
535
|
-
|
|
536
|
-
// Constants
|
|
537
|
-
export const DEFAULT_TODO_ITEMS: TodoItem[] = [
|
|
538
|
-
{
|
|
539
|
-
id: '1',
|
|
540
|
-
text: 'Learn React',
|
|
541
|
-
completed: true,
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
id: '2',
|
|
545
|
-
text: 'Build a Todo App',
|
|
546
|
-
completed: false,
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
id: '3',
|
|
550
|
-
text: 'Deploy to production',
|
|
551
|
-
completed: false,
|
|
552
|
-
},
|
|
553
|
-
];
|
|
554
|
-
|
|
555
|
-
// Helper functions
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* Generate a unique ID for a todo item
|
|
559
|
-
*/
|
|
560
|
-
export function generateTodoId(): string {
|
|
561
|
-
return generateUUID();
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Create a new todo item
|
|
566
|
-
* @param text - Text content for the todo
|
|
567
|
-
*/
|
|
568
|
-
export function createTodoItem(text: string): TodoItem {
|
|
569
|
-
return {
|
|
570
|
-
id: generateUUID(),
|
|
571
|
-
text,
|
|
572
|
-
completed: false,
|
|
573
|
-
};
|
|
574
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { Todo, TodoEvents } from './index';
|
|
2
|
-
import { TodoItem } from './types';
|
|
3
|
-
import { TODO } from '../../../lib/constants/components';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Apply hover effect to todo items
|
|
7
|
-
* @param todoItem - Todo item element
|
|
8
|
-
*/
|
|
9
|
-
export function applyHoverEffect(todoItem: HTMLElement): void {
|
|
10
|
-
const hoverClass = 'is-hovered';
|
|
11
|
-
|
|
12
|
-
todoItem.addEventListener('mouseenter', () => {
|
|
13
|
-
todoItem.classList.add(hoverClass);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
todoItem.addEventListener('mouseleave', () => {
|
|
17
|
-
todoItem.classList.remove(hoverClass);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Apply focus effect to todo input
|
|
23
|
-
* @param input - Todo input element
|
|
24
|
-
*/
|
|
25
|
-
export function applyFocusEffect(input: HTMLInputElement): void {
|
|
26
|
-
const focusClass = 'is-focused';
|
|
27
|
-
const formGroup = input.closest('.c-todo__form-group');
|
|
28
|
-
|
|
29
|
-
input.addEventListener('focus', () => {
|
|
30
|
-
formGroup?.classList.add(focusClass);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
input.addEventListener('blur', () => {
|
|
34
|
-
formGroup?.classList.remove(focusClass);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Initialize a single todo item with event listeners
|
|
40
|
-
* @param item - Todo item element
|
|
41
|
-
* @param id - Todo item ID
|
|
42
|
-
* @param onToggle - Toggle callback
|
|
43
|
-
* @param onDelete - Delete callback
|
|
44
|
-
*/
|
|
45
|
-
export function initializeTodoItem(
|
|
46
|
-
item: HTMLElement,
|
|
47
|
-
id: string,
|
|
48
|
-
onToggle?: (id: string) => void,
|
|
49
|
-
onDelete?: (id: string) => void
|
|
50
|
-
): void {
|
|
51
|
-
const checkbox = item.querySelector('.c-todo__checkbox') as HTMLInputElement;
|
|
52
|
-
const deleteButton = item.querySelector('.c-todo__delete-btn') as HTMLButtonElement;
|
|
53
|
-
|
|
54
|
-
if (checkbox) {
|
|
55
|
-
checkbox.addEventListener('change', () => {
|
|
56
|
-
if (onToggle) onToggle(id);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if (deleteButton) {
|
|
61
|
-
deleteButton.addEventListener('click', e => {
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
if (onDelete) onDelete(id);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// Apply hover effect
|
|
68
|
-
applyHoverEffect(item);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Initialize all todos on the page
|
|
73
|
-
* @returns Array of todo instances
|
|
74
|
-
*/
|
|
75
|
-
export function initializeAllTodos(selector = '[data-component="todo"]'): Todo[] {
|
|
76
|
-
const todoInstances: Todo[] = [];
|
|
77
|
-
const todoElements = document.querySelectorAll<HTMLElement>(selector);
|
|
78
|
-
|
|
79
|
-
todoElements.forEach(element => {
|
|
80
|
-
try {
|
|
81
|
-
const instance = new Todo(element);
|
|
82
|
-
todoInstances.push(instance);
|
|
83
|
-
} catch (error) {
|
|
84
|
-
console.error('Error initializing todo:', error);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
return todoInstances;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Filter todo items by completion status
|
|
93
|
-
* @param items - Todo items array
|
|
94
|
-
* @param showCompleted - Whether to include completed items
|
|
95
|
-
* @returns Filtered todo items
|
|
96
|
-
*/
|
|
97
|
-
export function filterTodoItems(items: TodoItem[], showCompleted: boolean): TodoItem[] {
|
|
98
|
-
if (showCompleted) {
|
|
99
|
-
return [...items];
|
|
100
|
-
}
|
|
101
|
-
return items.filter(item => !item.completed);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Sort todo items by completion status and creation time
|
|
106
|
-
* @param items - Todo items array
|
|
107
|
-
* @returns Sorted todo items
|
|
108
|
-
*/
|
|
109
|
-
export function sortTodoItems(items: TodoItem[]): TodoItem[] {
|
|
110
|
-
return [...items].sort((a, b) => {
|
|
111
|
-
// Sort by completion status first
|
|
112
|
-
if (a.completed !== b.completed) {
|
|
113
|
-
return a.completed ? 1 : -1;
|
|
114
|
-
}
|
|
115
|
-
// Then by creation time (assuming newer items have higher IDs)
|
|
116
|
-
return a.id.localeCompare(b.id);
|
|
117
|
-
});
|
|
118
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Todo item interface
|
|
3
|
-
*/
|
|
4
|
-
export interface TodoItem {
|
|
5
|
-
/**
|
|
6
|
-
* Unique identifier for the todo
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Todo item text
|
|
12
|
-
*/
|
|
13
|
-
text: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Whether the todo is completed
|
|
17
|
-
*/
|
|
18
|
-
completed: boolean;
|
|
19
|
-
}
|