@shohojdhara/atomix 0.1.14 → 0.1.16
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/css/atomix.css +1 -5
- package/dist/css/atomix.css.map +1 -1
- package/dist/js/194.js +2 -0
- package/dist/js/194.js.map +1 -0
- package/dist/js/atomix.react.esm.js +1 -1
- package/dist/js/atomix.react.esm.js.map +1 -1
- package/dist/js/atomix.react.umd.js +2 -0
- package/dist/js/atomix.react.umd.js.map +1 -0
- package/dist/js/chunks/esm/202.ff48d27672233280e021.js +2 -0
- package/dist/js/chunks/esm/202.ff48d27672233280e021.js.map +1 -0
- package/dist/js/chunks/esm/308.f873332126eba90e5c62.js +2 -0
- package/dist/js/chunks/esm/308.f873332126eba90e5c62.js.map +1 -0
- package/dist/js/chunks/esm/54.4db919e5e4e5cc6d7c72.js +2 -0
- package/dist/js/chunks/esm/54.4db919e5e4e5cc6d7c72.js.map +1 -0
- package/dist/js/chunks/esm/619.afc5a718eff77fa423b5.js +2 -0
- package/dist/js/chunks/esm/619.afc5a718eff77fa423b5.js.map +1 -0
- package/dist/js/chunks/esm/690.a9e968c7497d61e56cdc.js +2 -0
- package/dist/js/chunks/esm/690.a9e968c7497d61e56cdc.js.map +1 -0
- package/dist/js/chunks/esm/894.f1091a4a8758c26d29e4.js +2 -0
- package/dist/js/chunks/esm/894.f1091a4a8758c26d29e4.js.map +1 -0
- package/dist/js/chunks/esm/897.561a50f7d043d42169da.js +2 -0
- package/dist/js/chunks/esm/897.561a50f7d043d42169da.js.map +1 -0
- package/dist/js/chunks/umd/202.dac7605cc555b6bda542.js +2 -0
- package/dist/js/chunks/umd/202.dac7605cc555b6bda542.js.map +1 -0
- package/dist/js/chunks/umd/308.6709979849dcbdb90c9b.js +2 -0
- package/dist/js/chunks/umd/308.6709979849dcbdb90c9b.js.map +1 -0
- package/dist/js/chunks/umd/54.403470e1f7d0ef4424a7.js +2 -0
- package/dist/js/chunks/umd/54.403470e1f7d0ef4424a7.js.map +1 -0
- package/dist/js/chunks/umd/619.fa05ea98c10270eb64c5.js +2 -0
- package/dist/js/chunks/umd/619.fa05ea98c10270eb64c5.js.map +1 -0
- package/dist/js/chunks/umd/690.aa7054d1c53e5402c2d6.js +2 -0
- package/dist/js/chunks/umd/690.aa7054d1c53e5402c2d6.js.map +1 -0
- package/dist/js/chunks/umd/894.3e1eaf0a2aadf4434390.js +2 -0
- package/dist/js/{894.atomix.react.cjs.js.map → chunks/umd/894.3e1eaf0a2aadf4434390.js.map} +1 -1
- package/dist/js/chunks/umd/897.554ea37be4453698c167.js +2 -0
- package/dist/js/chunks/umd/897.554ea37be4453698c167.js.map +1 -0
- package/dist/types/components/Accordion/Accordion.d.ts +1 -2
- package/dist/types/components/Accordion/index.d.ts +2 -1
- package/dist/types/components/AtomixLogo.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +1 -2
- package/dist/types/components/Avatar/AvatarGroup.d.ts +3 -4
- package/dist/types/components/Avatar/index.d.ts +2 -1
- package/dist/types/components/Badge/Badge.d.ts +1 -2
- package/dist/types/components/Badge/index.d.ts +2 -1
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +1 -2
- package/dist/types/components/Breadcrumb/index.d.ts +1 -0
- package/dist/types/components/Button/Button.d.ts +3 -2
- package/dist/types/components/Button/index.d.ts +3 -5
- package/dist/types/components/Callout/Callout.d.ts +1 -2
- package/dist/types/components/Card/Card.d.ts +1 -2
- package/dist/types/components/Card/ElevationCard.d.ts +1 -0
- package/dist/types/components/ColorModeToggle/ColorModeToggle.d.ts +2 -4
- package/dist/types/components/Countdown/Countdown.d.ts +2 -4
- package/dist/types/components/DataTable/DataTable.d.ts +1 -2
- package/dist/types/components/DataTable/index.d.ts +3 -2
- package/dist/types/components/DatePicker/DatePicker.d.ts +2 -3
- package/dist/types/components/Dropdown/Dropdown.d.ts +7 -2
- package/dist/types/components/Dropdown/index.d.ts +1 -1
- package/dist/types/components/EdgePanel/EdgePanel.d.ts +2 -3
- package/dist/types/components/Form/Checkbox.d.ts +1 -2
- package/dist/types/components/Form/Form.d.ts +1 -2
- package/dist/types/components/Form/FormGroup.d.ts +1 -2
- package/dist/types/components/Form/Input.d.ts +1 -2
- package/dist/types/components/Form/Radio.d.ts +1 -2
- package/dist/types/components/Form/Select.d.ts +1 -2
- package/dist/types/components/Form/Textarea.d.ts +1 -2
- package/dist/types/components/Hero/Hero.d.ts +1 -2
- package/dist/types/components/Icon/Icon.d.ts +2 -4
- package/dist/types/components/List/List.d.ts +1 -2
- package/dist/types/components/Messages/Messages.d.ts +1 -2
- package/dist/types/components/Messages/index.d.ts +2 -1
- package/dist/types/components/Modal/Modal.d.ts +1 -2
- package/dist/types/components/Navbar/Menu.d.ts +1 -2
- package/dist/types/components/Navbar/Nav.d.ts +1 -2
- package/dist/types/components/Navbar/NavDropdown.d.ts +2 -0
- package/dist/types/components/Navbar/NavItem.d.ts +2 -0
- package/dist/types/components/Navbar/Navbar.d.ts +1 -2
- package/dist/types/components/Pagination/Pagination.d.ts +20 -2
- package/dist/types/components/PhotoViewer/PhotoViewer.d.ts +1 -2
- package/dist/types/components/PhotoViewer/index.d.ts +2 -1
- package/dist/types/components/Popover/Popover.d.ts +8 -2
- package/dist/types/components/ProductReview/ProductReview.d.ts +2 -4
- package/dist/types/components/ProductReview/index.d.ts +2 -1
- package/dist/types/components/Progress/Progress.d.ts +1 -2
- package/dist/types/components/Rating/Rating.d.ts +1 -2
- package/dist/types/components/River/River.d.ts +1 -2
- package/dist/types/components/SectionIntro/SectionIntro.d.ts +2 -4
- package/dist/types/components/SectionIntro/index.d.ts +1 -2
- package/dist/types/components/Spinner/Spinner.d.ts +1 -2
- package/dist/types/components/Steps/Steps.d.ts +3 -5
- package/dist/types/components/Steps/index.d.ts +1 -2
- package/dist/types/components/Tab/Tab.d.ts +3 -5
- package/dist/types/components/Testimonial/Testimonial.d.ts +3 -5
- package/dist/types/components/Testimonial/index.d.ts +1 -2
- package/dist/types/components/Todo/Todo.d.ts +1 -2
- package/dist/types/components/Toggle/Toggle.d.ts +2 -4
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -4
- package/dist/types/components/Tooltip/index.d.ts +1 -1
- package/dist/types/components/Upload/Upload.d.ts +2 -4
- package/dist/types/components/Upload/index.d.ts +1 -2
- package/dist/types/components/index.d.ts +45 -78
- package/dist/types/index.d.ts +21 -53
- package/dist/types/layouts/index.d.ts +2 -11
- package/dist/types/lib/composables/index.d.ts +21 -13
- package/dist/types/lib/composables/useCheckbox.d.ts +1 -1
- package/dist/types/lib/composables/useDatePicker.d.ts +4 -4
- package/dist/types/lib/composables/useEdgePanel.d.ts +2 -2
- package/dist/types/lib/composables/usePhotoViewer.d.ts +2 -2
- package/dist/types/lib/index.d.ts +6 -8
- package/dist/types/lib/utils/index.d.ts +1 -0
- package/package.json +60 -36
- package/src/components/Accordion/Accordion.tsx +2 -3
- package/src/components/Accordion/index.ts +2 -1
- package/src/components/AtomixLogo/index.ts +0 -0
- package/src/components/AtomixLogo.tsx +3 -1
- package/src/components/Avatar/Avatar.stories.tsx +1 -0
- package/src/components/Avatar/Avatar.tsx +3 -9
- package/src/components/Avatar/AvatarGroup.tsx +3 -8
- package/src/components/Avatar/index.ts +2 -1
- package/src/components/Badge/Badge.tsx +3 -8
- package/src/components/Badge/index.ts +3 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +2 -7
- package/src/components/Breadcrumb/index.ts +1 -0
- package/src/components/Button/Button.tsx +5 -2
- package/src/components/Button/index.ts +3 -6
- package/src/components/Callout/Callout.tsx +3 -8
- package/src/components/Callout/scripts/bundle.ts +2 -12
- package/src/components/Card/Card.tsx +3 -8
- package/src/components/Card/ElevationCard.tsx +4 -0
- package/src/components/Card/scripts/bundle.ts +0 -7
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +3 -7
- package/src/components/Countdown/Countdown.tsx +9 -17
- package/src/components/DataTable/DataTable.tsx +9 -14
- package/src/components/DataTable/index.ts +3 -2
- package/src/components/DataTable/scripts/bundle.ts +5 -13
- package/src/components/DatePicker/DatePicker.tsx +3 -5
- package/src/components/Dropdown/Dropdown.tsx +5 -10
- package/src/components/Dropdown/index.ts +2 -4
- package/src/components/EdgePanel/EdgePanel.tsx +4 -10
- package/src/components/Form/Checkbox.tsx +2 -7
- package/src/components/Form/Form.tsx +2 -7
- package/src/components/Form/FormGroup.tsx +2 -7
- package/src/components/Form/Input.tsx +2 -7
- package/src/components/Form/Radio.tsx +2 -7
- package/src/components/Form/Select.tsx +2 -6
- package/src/components/Form/Textarea.tsx +2 -7
- package/src/components/Hero/Hero.tsx +2 -7
- package/src/components/Icon/Icon.tsx +3 -10
- package/src/components/List/List.tsx +2 -7
- package/src/components/Messages/Messages.tsx +4 -9
- package/src/components/Messages/index.ts +2 -1
- package/src/components/Messages/scripts/bundle.ts +3 -3
- package/src/components/Modal/Modal.tsx +3 -10
- package/src/components/Navbar/MegaMenu.tsx +14 -14
- package/src/components/Navbar/Menu.tsx +14 -21
- package/src/components/Navbar/Nav.tsx +5 -9
- package/src/components/Navbar/NavDropdown.tsx +13 -7
- package/src/components/Navbar/NavItem.tsx +15 -10
- package/src/components/Navbar/Navbar.tsx +6 -11
- package/src/components/Pagination/Pagination.tsx +4 -10
- package/src/components/PhotoViewer/PhotoViewer.tsx +2 -7
- package/src/components/PhotoViewer/PhotoViewerImage.tsx +1 -1
- package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +1 -1
- package/src/components/PhotoViewer/README.md +0 -0
- package/src/components/PhotoViewer/examples/ImageGallery.tsx +4 -3
- package/src/components/PhotoViewer/examples/SimpleGallery.tsx +1 -1
- package/src/components/PhotoViewer/index.ts +2 -1
- package/src/components/PhotoViewer/scripts/bundle.ts +2 -9
- package/src/components/Popover/Popover.tsx +8 -13
- package/src/components/Popover/scripts/index.ts +6 -1
- package/src/components/ProductReview/ProductReview.tsx +6 -30
- package/src/components/ProductReview/index.ts +2 -1
- package/src/components/Progress/Progress.tsx +1 -8
- package/src/components/Rating/Rating.tsx +3 -25
- package/src/components/Rating/scripts/ratingInteractions.ts +3 -3
- package/src/components/River/River.tsx +4 -9
- package/src/components/SectionIntro/SectionIntro.tsx +3 -10
- package/src/components/SectionIntro/index.ts +1 -2
- package/src/components/Spinner/Spinner.tsx +2 -6
- package/src/components/Steps/Steps.tsx +5 -12
- package/src/components/Steps/index.ts +1 -2
- package/src/components/Tab/Tab.tsx +4 -10
- package/src/components/Testimonial/Testimonial.tsx +4 -10
- package/src/components/Testimonial/index.ts +1 -2
- package/src/components/Todo/Todo.tsx +4 -9
- package/src/components/Todo/scripts/bundle.ts +0 -7
- package/src/components/Toggle/Toggle.tsx +4 -10
- package/src/components/Toggle/scripts/bundle.ts +0 -7
- package/src/components/Tooltip/Tooltip.tsx +3 -10
- package/src/components/Tooltip/index.ts +1 -3
- package/src/components/Upload/Upload.tsx +9 -15
- package/src/components/Upload/index.ts +1 -2
- package/src/components/index.ts +44 -79
- package/src/docs/atomix-component-guidelines.mdx +0 -0
- package/src/index.ts +15 -12
- package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +2 -1
- package/src/layouts/MasonryGrid/MasonryGrid.tsx +5 -4
- package/src/lib/README.md +0 -0
- package/src/lib/composables/useDropdown.ts +3 -3
- package/src/lib/composables/useNavbar.ts +1 -1
- package/src/lib/composables/usePhotoViewer.ts +7 -5
- package/src/lib/composables/usePopover.ts +15 -15
- package/src/styles/01-settings/_settings.typography.scss +6 -3
- package/src/styles/03-generic/_generic.fonts.scss +20 -17
- package/css.d.ts +0 -10
- package/dist/css/atomix.min.css +0 -6
- package/dist/css/atomix.min.css.map +0 -1
- package/dist/fonts/0120456a11178b96ab66.woff +0 -0
- package/dist/fonts/0368bc04e1a895283091.woff +0 -0
- package/dist/fonts/0c5c9ce9dec531aa6b29.ttf +0 -0
- package/dist/fonts/0f355f1a3d693807d51c.ttf +0 -0
- package/dist/fonts/1ec349085efa62caa303.woff2 +0 -0
- package/dist/fonts/20ab2fe497fc18409e34.woff +0 -0
- package/dist/fonts/253918dde62b7326497e.woff +0 -0
- package/dist/fonts/285bdad411fbc4cec20d.ttf +0 -0
- package/dist/fonts/2f638dd07520c36c8d6e.woff +0 -0
- package/dist/fonts/30c9e80ac7b5699e21cc.woff2 +0 -0
- package/dist/fonts/33311918c95bc02cfcb1.woff +0 -0
- package/dist/fonts/35321e45ab1847c10daa.ttf +0 -0
- package/dist/fonts/3d2344627a22c58c9273.woff +0 -0
- package/dist/fonts/413b33b6d0cbd31f8714.woff2 +0 -0
- package/dist/fonts/4cb90386814103ea6b7f.woff2 +0 -0
- package/dist/fonts/4ee1c663781c9449f03f.woff2 +0 -0
- package/dist/fonts/4f4da6c0a5ff8b4ed6c6.eot +0 -0
- package/dist/fonts/576bbf31cdb2297b27b2.ttf +0 -0
- package/dist/fonts/585df04788e75f68f0af.eot +0 -0
- package/dist/fonts/5b5bd27f87c5700e93ad.ttf +0 -0
- package/dist/fonts/5bb2f179b9eb3479b077.eot +0 -0
- package/dist/fonts/5ff5446a28faf327d927.woff +0 -0
- package/dist/fonts/6192a85735f85ab06ed3.eot +0 -0
- package/dist/fonts/61f88f014cff75e8080e.woff2 +0 -0
- package/dist/fonts/6425aa0b60538ee25c68.woff +0 -0
- package/dist/fonts/6751f7983394e890189f.eot +0 -0
- package/dist/fonts/6960ee84f2d467663c34.ttf +0 -0
- package/dist/fonts/70685e4ff0b8497285e5.woff2 +0 -0
- package/dist/fonts/757b7e91c3555d312bbc.woff +0 -0
- package/dist/fonts/7a4ea74d7f43e6ad17d8.eot +0 -0
- package/dist/fonts/8109c3cad37ea32e4d32.ttf +0 -0
- package/dist/fonts/82a7a6000e2c2ab2ec5c.woff2 +0 -0
- package/dist/fonts/83ef74d7fa1b36b3afd2.ttf +0 -0
- package/dist/fonts/877cf3e897d614d4e5cf.ttf +0 -0
- package/dist/fonts/88bb1a07aeaed7b24844.eot +0 -0
- package/dist/fonts/9393172982d357731e53.eot +0 -0
- package/dist/fonts/945eac608d80a8166c05.eot +0 -0
- package/dist/fonts/9b837d45dc4c53f310f4.woff2 +0 -0
- package/dist/fonts/a5dbd3668c70794eda4d.ttf +0 -0
- package/dist/fonts/a74f60429e1436a0a540.woff +0 -0
- package/dist/fonts/bbc297fd58abb3c9f79a.ttf +0 -0
- package/dist/fonts/bbefaa1b3e495e24cae7.woff2 +0 -0
- package/dist/fonts/c0c00fe55a6c5b4bdcc3.ttf +0 -0
- package/dist/fonts/c7508e4a1d238d320671.woff2 +0 -0
- package/dist/fonts/cb9059c1418f52b5cfb2.woff +0 -0
- package/dist/fonts/d11e8912a7532aae2979.eot +0 -0
- package/dist/fonts/d852d165ab8f7b51e9d9.woff +0 -0
- package/dist/fonts/de48437d7037bf4c1dd1.eot +0 -0
- package/dist/fonts/df470b39be2d4a1f1ce1.woff +0 -0
- package/dist/fonts/f2af4f9e9e7805d25995.woff2 +0 -0
- package/dist/fonts/f79a05c25b9f6148e22c.eot +0 -0
- package/dist/fonts/fcaafb0a12fec09b1f45.woff2 +0 -0
- package/dist/fonts/fcefb320a4d49f66bb12.eot +0 -0
- package/dist/fonts/fd66d70b84764f279e6a.ttf +0 -0
- package/dist/fonts/fdf78119a6d3da284d71.woff2 +0 -0
- package/dist/fonts/ff75ad5d1cd4cbfb2485.eot +0 -0
- package/dist/js/202.atomix.react.cjs.js +0 -2
- package/dist/js/202.atomix.react.cjs.js.map +0 -1
- package/dist/js/202.atomix.react.esm.js +0 -2
- package/dist/js/202.atomix.react.esm.js.map +0 -1
- package/dist/js/202.atomix.react.js +0 -2
- package/dist/js/202.atomix.react.js.map +0 -1
- package/dist/js/308.atomix.react.cjs.js +0 -2
- package/dist/js/308.atomix.react.cjs.js.map +0 -1
- package/dist/js/308.atomix.react.esm.js +0 -2
- package/dist/js/308.atomix.react.esm.js.map +0 -1
- package/dist/js/308.atomix.react.js +0 -2
- package/dist/js/308.atomix.react.js.map +0 -1
- package/dist/js/34.atomix.react.cjs.js +0 -2
- package/dist/js/34.atomix.react.cjs.js.map +0 -1
- package/dist/js/34.atomix.react.esm.js +0 -2
- package/dist/js/34.atomix.react.esm.js.map +0 -1
- package/dist/js/34.atomix.react.js +0 -2
- package/dist/js/34.atomix.react.js.map +0 -1
- package/dist/js/471.atomix.react.cjs.js +0 -2
- package/dist/js/471.atomix.react.cjs.js.map +0 -1
- package/dist/js/471.atomix.react.esm.js +0 -2
- package/dist/js/471.atomix.react.esm.js.map +0 -1
- package/dist/js/471.atomix.react.js +0 -2
- package/dist/js/471.atomix.react.js.map +0 -1
- package/dist/js/54.atomix.react.cjs.js +0 -2
- package/dist/js/54.atomix.react.cjs.js.map +0 -1
- package/dist/js/54.atomix.react.esm.js +0 -2
- package/dist/js/54.atomix.react.esm.js.map +0 -1
- package/dist/js/54.atomix.react.js +0 -2
- package/dist/js/54.atomix.react.js.map +0 -1
- package/dist/js/619.atomix.react.cjs.js +0 -2
- package/dist/js/619.atomix.react.cjs.js.map +0 -1
- package/dist/js/619.atomix.react.esm.js +0 -2
- package/dist/js/619.atomix.react.esm.js.map +0 -1
- package/dist/js/619.atomix.react.js +0 -2
- package/dist/js/619.atomix.react.js.map +0 -1
- package/dist/js/690.atomix.react.cjs.js +0 -2
- package/dist/js/690.atomix.react.cjs.js.map +0 -1
- package/dist/js/690.atomix.react.esm.js +0 -2
- package/dist/js/690.atomix.react.esm.js.map +0 -1
- package/dist/js/690.atomix.react.js +0 -2
- package/dist/js/690.atomix.react.js.map +0 -1
- package/dist/js/894.atomix.react.cjs.js +0 -2
- package/dist/js/894.atomix.react.esm.js +0 -2
- package/dist/js/894.atomix.react.esm.js.map +0 -1
- package/dist/js/894.atomix.react.js +0 -2
- package/dist/js/894.atomix.react.js.map +0 -1
- package/dist/js/897.atomix.react.cjs.js +0 -2
- package/dist/js/897.atomix.react.cjs.js.map +0 -1
- package/dist/js/897.atomix.react.esm.js +0 -2
- package/dist/js/897.atomix.react.esm.js.map +0 -1
- package/dist/js/897.atomix.react.js +0 -2
- package/dist/js/897.atomix.react.js.map +0 -1
- package/dist/js/atomix.react.cjs.js +0 -2
- package/dist/js/atomix.react.cjs.js.map +0 -1
- package/dist/js/atomix.react.js +0 -2
- package/dist/js/atomix.react.js.map +0 -1
- package/dist/js/main.js +0 -0
- package/dist/js/minified.js +0 -0
- package/dist/types/components/Accordion/scripts/accordionInteractions.d.ts +0 -19
- package/dist/types/components/Accordion/scripts/index.d.ts +0 -100
- package/dist/types/components/Avatar/scripts/index.d.ts +0 -105
- package/dist/types/components/Breadcrumb/scripts/breadcrumb.d.ts +0 -43
- package/dist/types/components/Breadcrumb/scripts/index.d.ts +0 -4
- package/dist/types/components/Button/scripts/buttonInteractions.d.ts +0 -20
- package/dist/types/components/Button/scripts/index.d.ts +0 -1
- package/dist/types/components/Card/scripts/index.d.ts +0 -80
- package/dist/types/components/Countdown/scripts/index.d.ts +0 -71
- package/dist/types/components/DataTable/scripts/index.d.ts +0 -174
- package/dist/types/components/DatePicker/scripts/componentInteractions.d.ts +0 -28
- package/dist/types/components/DatePicker/scripts/index.d.ts +0 -153
- package/dist/types/components/Dropdown/scripts/componentInteractions.d.ts +0 -26
- package/dist/types/components/Dropdown/scripts/index.d.ts +0 -114
- package/dist/types/components/EdgePanel/scripts/edgePanelInteractions.d.ts +0 -35
- package/dist/types/components/EdgePanel/scripts/index.d.ts +0 -126
- package/dist/types/components/Hero/scripts/heroInteractions.d.ts +0 -29
- package/dist/types/components/Hero/scripts/index.d.ts +0 -47
- package/dist/types/components/Modal/scripts/index.d.ts +0 -83
- package/dist/types/components/Modal/scripts/modalInteractions.d.ts +0 -28
- package/dist/types/components/Pagination/scripts/index.d.ts +0 -52
- package/dist/types/components/ProductReview/scripts/bundle.d.ts +0 -2
- package/dist/types/components/ProductReview/scripts/componentInteractions.d.ts +0 -43
- package/dist/types/components/Rating/scripts/bundle.d.ts +0 -3
- package/dist/types/components/Rating/scripts/index.d.ts +0 -74
- package/dist/types/components/Rating/scripts/ratingInteractions.d.ts +0 -28
- package/dist/types/components/Todo/scripts/index.d.ts +0 -115
- package/dist/types/components/Todo/scripts/todoInteractions.d.ts +0 -38
- package/dist/types/components/Tooltip/scripts/tooltipInteractions.d.ts +0 -23
- package/dist/types/htmlComponentsEntry.d.ts +0 -160
- package/src/components/Badge/index.tsx +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, forwardRef, createContext } from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
import { POPOVER } from '../../lib/constants/components';
|
|
4
4
|
import { usePopover } from '../../lib/composables/usePopover';
|
|
5
5
|
import type { PopoverProps, PopoverTriggerProps } from '../../lib/types/components';
|
|
6
6
|
|
|
7
7
|
// Context to share popover state between components
|
|
8
|
-
const PopoverContext =
|
|
8
|
+
export const PopoverContext = createContext<{
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
setIsOpen: (isOpen: boolean) => void;
|
|
11
11
|
triggerRef: React.RefObject<HTMLElement>;
|
|
@@ -22,7 +22,7 @@ const PopoverContext = React.createContext<{
|
|
|
22
22
|
/**
|
|
23
23
|
* Popover component for displaying floating content
|
|
24
24
|
*/
|
|
25
|
-
const Popover: React.FC<PopoverProps> = ({
|
|
25
|
+
export const Popover: React.FC<PopoverProps> = ({
|
|
26
26
|
content,
|
|
27
27
|
position = 'top',
|
|
28
28
|
trigger = 'click',
|
|
@@ -89,10 +89,10 @@ const PopoverContext = React.createContext<{
|
|
|
89
89
|
/**
|
|
90
90
|
* PopoverTrigger component to wrap the element that triggers the popover
|
|
91
91
|
*/
|
|
92
|
-
export const PopoverTrigger: React.FC<PopoverTriggerProps> = ({
|
|
92
|
+
export const PopoverTrigger: React.FC<PopoverTriggerProps> = forwardRef<HTMLElement, PopoverTriggerProps>(({
|
|
93
93
|
children,
|
|
94
94
|
trigger: triggerProp,
|
|
95
|
-
}) => {
|
|
95
|
+
}, ref) => {
|
|
96
96
|
const { isOpen, setIsOpen, triggerRef, popoverId, triggerType } = React.useContext(PopoverContext);
|
|
97
97
|
|
|
98
98
|
// Determine which trigger type to use - prop from PopoverTrigger or from context
|
|
@@ -115,7 +115,7 @@ export const PopoverTrigger: React.FC<PopoverTriggerProps> = ({
|
|
|
115
115
|
const child = React.Children.only(children) as React.ReactElement;
|
|
116
116
|
|
|
117
117
|
const triggerProps: any = {
|
|
118
|
-
ref: triggerRef,
|
|
118
|
+
ref: ref || triggerRef,
|
|
119
119
|
'aria-describedby': popoverId,
|
|
120
120
|
'aria-expanded': isOpen,
|
|
121
121
|
};
|
|
@@ -128,15 +128,10 @@ export const PopoverTrigger: React.FC<PopoverTriggerProps> = ({
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
return React.cloneElement(child, triggerProps);
|
|
131
|
-
};
|
|
131
|
+
});
|
|
132
132
|
|
|
133
133
|
export type { PopoverProps, PopoverTriggerProps };
|
|
134
134
|
|
|
135
|
-
// Set display name for debugging
|
|
136
135
|
Popover.displayName = 'Popover';
|
|
137
136
|
|
|
138
|
-
|
|
139
|
-
export default Popover;
|
|
140
|
-
|
|
141
|
-
// Named export for compatibility
|
|
142
|
-
export { Popover };
|
|
137
|
+
export default Popover;
|
|
@@ -309,7 +309,12 @@ const initPopovers = (): void => {
|
|
|
309
309
|
const delay = parseInt(popover.getAttribute('data-popover-delay') || String(POPOVER.DEFAULTS.DELAY), 10);
|
|
310
310
|
|
|
311
311
|
// Initialize popover
|
|
312
|
-
new Popover(popover, {
|
|
312
|
+
new Popover(popover, {
|
|
313
|
+
position: position as PopoverPosition | 'auto',
|
|
314
|
+
trigger: trigger as 'hover' | 'click',
|
|
315
|
+
offset,
|
|
316
|
+
delay
|
|
317
|
+
});
|
|
313
318
|
});
|
|
314
319
|
};
|
|
315
320
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from 'react';
|
|
2
|
-
import { Rating } from '../Rating';
|
|
3
|
-
import { Button } from '../Button';
|
|
2
|
+
import { Rating } from '../Rating/Rating';
|
|
3
|
+
import { Button } from '../Button/Button';
|
|
4
4
|
import type { ThemeColor } from '../../lib/types/components';
|
|
5
5
|
|
|
6
|
-
interface ProductReviewProps {
|
|
6
|
+
export interface ProductReviewProps {
|
|
7
7
|
/**
|
|
8
8
|
* Product name
|
|
9
9
|
*/
|
|
@@ -48,7 +48,7 @@ interface ProductReviewProps {
|
|
|
48
48
|
/**
|
|
49
49
|
* ProductReview component for collecting user ratings and feedback
|
|
50
50
|
*/
|
|
51
|
-
const ProductReview: React.FC<ProductReviewProps> = ({
|
|
51
|
+
export const ProductReview: React.FC<ProductReviewProps> = ({
|
|
52
52
|
productName,
|
|
53
53
|
productImage,
|
|
54
54
|
initialRating = 0,
|
|
@@ -66,24 +66,7 @@ const ProductReview: React.FC<ProductReviewProps> = ({
|
|
|
66
66
|
|
|
67
67
|
useEffect(() => {
|
|
68
68
|
// Only run on client-side
|
|
69
|
-
if (typeof window === 'undefined' || !reviewRef.current) return;
|
|
70
|
-
|
|
71
|
-
// Dynamically import the product review script to avoid server-side rendering issues
|
|
72
|
-
import('./scripts/bundle').then(({ default: ProductReviewClass }) => {
|
|
73
|
-
if (reviewRef.current) {
|
|
74
|
-
reviewInstance.current = new ProductReviewClass(reviewRef.current, {
|
|
75
|
-
productName,
|
|
76
|
-
productImage,
|
|
77
|
-
initialRating,
|
|
78
|
-
maxRating,
|
|
79
|
-
allowHalf,
|
|
80
|
-
ratingColor,
|
|
81
|
-
onSubmit
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}).catch(err => {
|
|
85
|
-
console.warn('Failed to load ProductReview script:', err);
|
|
86
|
-
});
|
|
69
|
+
if (typeof window === 'undefined' || !reviewRef.current) return undefined;
|
|
87
70
|
|
|
88
71
|
// Cleanup on unmount
|
|
89
72
|
return () => {
|
|
@@ -185,13 +168,6 @@ const ProductReview: React.FC<ProductReviewProps> = ({
|
|
|
185
168
|
);
|
|
186
169
|
};
|
|
187
170
|
|
|
188
|
-
export type { ProductReviewProps };
|
|
189
|
-
|
|
190
|
-
// Set display name for debugging
|
|
191
171
|
ProductReview.displayName = 'ProductReview';
|
|
192
172
|
|
|
193
|
-
|
|
194
|
-
export default ProductReview;
|
|
195
|
-
|
|
196
|
-
// Named export for compatibility
|
|
197
|
-
export { ProductReview };
|
|
173
|
+
export default ProductReview;
|
|
@@ -3,7 +3,7 @@ import { ProgressProps } from '../../lib/types/components';
|
|
|
3
3
|
import { useProgress } from '../../lib/composables/useProgress';
|
|
4
4
|
import { PROGRESS } from '../../lib/constants/components';
|
|
5
5
|
|
|
6
|
-
const Progress = forwardRef<HTMLDivElement, ProgressProps>((
|
|
6
|
+
export const Progress = forwardRef<HTMLDivElement, ProgressProps>((
|
|
7
7
|
{
|
|
8
8
|
value,
|
|
9
9
|
variant = 'primary',
|
|
@@ -40,11 +40,4 @@ const Progress = forwardRef<HTMLDivElement, ProgressProps>((
|
|
|
40
40
|
|
|
41
41
|
export type { ProgressProps };
|
|
42
42
|
|
|
43
|
-
// Set display name for debugging
|
|
44
|
-
Progress.displayName = 'Progress';
|
|
45
|
-
|
|
46
|
-
// Default export (primary)
|
|
47
43
|
export default Progress;
|
|
48
|
-
|
|
49
|
-
// Named export for compatibility
|
|
50
|
-
export { Progress };
|
|
@@ -19,7 +19,7 @@ import useForkRef from '../../lib/utils/useForkRef';
|
|
|
19
19
|
* // With half-star support
|
|
20
20
|
* <Rating value={3.5} allowHalf maxValue={5} />
|
|
21
21
|
*/
|
|
22
|
-
const Rating = forwardRef<HTMLDivElement, RatingProps>(({
|
|
22
|
+
export const Rating = forwardRef<HTMLDivElement, RatingProps>(({
|
|
23
23
|
value: valueProp = 0,
|
|
24
24
|
defaultValue,
|
|
25
25
|
maxValue = 5,
|
|
@@ -113,22 +113,7 @@ const Rating = forwardRef<HTMLDivElement, RatingProps>(({
|
|
|
113
113
|
|
|
114
114
|
// Use vanilla JS implementation if specified
|
|
115
115
|
useEffect(() => {
|
|
116
|
-
if (!useVanillaJS || typeof window === 'undefined' || !internalRef.current) return;
|
|
117
|
-
|
|
118
|
-
// Dynamically import the rating script to avoid server-side rendering issues
|
|
119
|
-
import('./scripts/bundle').then(({ default: RatingClass }) => {
|
|
120
|
-
if (internalRef.current) {
|
|
121
|
-
ratingInstance.current = new RatingClass(internalRef.current, {
|
|
122
|
-
value: valueProp !== undefined ? valueProp : defaultValue,
|
|
123
|
-
maxValue,
|
|
124
|
-
allowHalf,
|
|
125
|
-
readOnly,
|
|
126
|
-
size,
|
|
127
|
-
color,
|
|
128
|
-
onChange
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
});
|
|
116
|
+
if (!useVanillaJS || typeof window === 'undefined' || !internalRef.current) return undefined;
|
|
132
117
|
|
|
133
118
|
// Cleanup on unmount
|
|
134
119
|
return () => {
|
|
@@ -140,7 +125,7 @@ const Rating = forwardRef<HTMLDivElement, RatingProps>(({
|
|
|
140
125
|
|
|
141
126
|
// Update vanilla JS implementation when props change
|
|
142
127
|
useEffect(() => {
|
|
143
|
-
if (!useVanillaJS || !ratingInstance.current) return;
|
|
128
|
+
if (!useVanillaJS || !ratingInstance.current) return undefined;
|
|
144
129
|
|
|
145
130
|
ratingInstance.current.updateOptions({
|
|
146
131
|
value: valueProp !== undefined ? valueProp : defaultValue,
|
|
@@ -279,11 +264,4 @@ Rating.displayName = 'Rating';
|
|
|
279
264
|
|
|
280
265
|
export type { RatingProps };
|
|
281
266
|
|
|
282
|
-
// Set display name for debugging
|
|
283
|
-
Rating.displayName = 'Rating';
|
|
284
|
-
|
|
285
|
-
// Default export (primary)
|
|
286
267
|
export default Rating;
|
|
287
|
-
|
|
288
|
-
// Named export for compatibility
|
|
289
|
-
export { Rating };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Rating from './index';
|
|
2
|
-
|
|
2
|
+
// RatingOptions is used in other functions in this file
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Event handlers and utility functions for Rating component
|
|
@@ -45,13 +45,13 @@ export function handleKeyboardNavigation(event: KeyboardEvent, container: HTMLEl
|
|
|
45
45
|
case ' ':
|
|
46
46
|
case 'Enter':
|
|
47
47
|
event.preventDefault();
|
|
48
|
-
if (currentIndex >= 0) {
|
|
48
|
+
if (currentIndex >= 0 && stars[currentIndex]) {
|
|
49
49
|
stars[currentIndex].click();
|
|
50
50
|
}
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if (nextIndex >= 0) {
|
|
54
|
+
if (nextIndex >= 0 && stars[nextIndex]) {
|
|
55
55
|
stars[nextIndex].focus();
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { useRef, useEffect
|
|
1
|
+
import React, { useRef, useEffect } from 'react';
|
|
2
2
|
import { RIVER } from '../../lib/constants/components';
|
|
3
|
-
import { useRiver, RiverProps
|
|
3
|
+
import { useRiver, RiverProps } from '../../lib/composables/useRiver';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* River component for displaying content with image sections
|
|
7
7
|
*/
|
|
8
|
-
const River: React.FC<RiverProps> = ({
|
|
8
|
+
export const River: React.FC<RiverProps> = ({
|
|
9
9
|
title,
|
|
10
10
|
text,
|
|
11
11
|
actions,
|
|
@@ -45,7 +45,7 @@ const River: React.FC<RiverProps> = ({
|
|
|
45
45
|
|
|
46
46
|
useEffect(() => {
|
|
47
47
|
// Only run on client-side
|
|
48
|
-
if (typeof window === 'undefined' || !riverRef.current) return;
|
|
48
|
+
if (typeof window === 'undefined' || !riverRef.current) return undefined;
|
|
49
49
|
|
|
50
50
|
// Dynamically import the river script to avoid server-side rendering issues
|
|
51
51
|
import('./scripts').then(({ default: RiverClass }) => {
|
|
@@ -167,11 +167,6 @@ const River: React.FC<RiverProps> = ({
|
|
|
167
167
|
|
|
168
168
|
export type { RiverProps };
|
|
169
169
|
|
|
170
|
-
// Set display name for debugging
|
|
171
170
|
River.displayName = 'River';
|
|
172
171
|
|
|
173
|
-
// Default export (primary)
|
|
174
172
|
export default River;
|
|
175
|
-
|
|
176
|
-
// Named export for compatibility
|
|
177
|
-
export { River };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect, ReactNode } from 'react';
|
|
2
2
|
import { SECTION_INTRO } from '../../lib/constants/components';
|
|
3
3
|
|
|
4
|
-
interface SectionIntroProps {
|
|
4
|
+
export interface SectionIntroProps {
|
|
5
5
|
/**
|
|
6
6
|
* The section title
|
|
7
7
|
*/
|
|
@@ -72,7 +72,7 @@ interface SectionIntroProps {
|
|
|
72
72
|
/**
|
|
73
73
|
* SectionIntro component for introducing content sections with titles, descriptions, and optional imagery
|
|
74
74
|
*/
|
|
75
|
-
const SectionIntro: React.FC<SectionIntroProps> = ({
|
|
75
|
+
export const SectionIntro: React.FC<SectionIntroProps> = ({
|
|
76
76
|
title,
|
|
77
77
|
label,
|
|
78
78
|
text,
|
|
@@ -91,7 +91,7 @@ const SectionIntro: React.FC<SectionIntroProps> = ({
|
|
|
91
91
|
|
|
92
92
|
useEffect(() => {
|
|
93
93
|
// Only run on client-side
|
|
94
|
-
if (typeof window === 'undefined' || !sectionIntroRef.current) return;
|
|
94
|
+
if (typeof window === 'undefined' || !sectionIntroRef.current) return undefined;
|
|
95
95
|
|
|
96
96
|
// Dynamically import the section intro script to avoid server-side rendering issues
|
|
97
97
|
import('./scripts').then(({ default: SectionIntroClass }) => {
|
|
@@ -198,13 +198,6 @@ const SectionIntro: React.FC<SectionIntroProps> = ({
|
|
|
198
198
|
);
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
-
export type { SectionIntroProps };
|
|
202
|
-
|
|
203
|
-
// Set display name for debugging
|
|
204
201
|
SectionIntro.displayName = 'SectionIntro';
|
|
205
202
|
|
|
206
|
-
// Default export (primary)
|
|
207
203
|
export default SectionIntro;
|
|
208
|
-
|
|
209
|
-
// Named export for compatibility
|
|
210
|
-
export { SectionIntro };
|
|
@@ -3,7 +3,7 @@ import { SpinnerProps } from '../../lib/types/components';
|
|
|
3
3
|
import { useSpinner } from '../../lib/composables/useSpinner';
|
|
4
4
|
import { SPINNER } from '../../lib/constants/components';
|
|
5
5
|
|
|
6
|
-
const Spinner: React.FC<SpinnerProps> = ({
|
|
6
|
+
export const Spinner: React.FC<SpinnerProps> = ({
|
|
7
7
|
size = 'md',
|
|
8
8
|
variant = 'primary',
|
|
9
9
|
fullscreen = false,
|
|
@@ -24,12 +24,8 @@ const Spinner: React.FC<SpinnerProps> = ({
|
|
|
24
24
|
);
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export type { SpinnerProps
|
|
27
|
+
export type { SpinnerProps };
|
|
28
28
|
|
|
29
|
-
// Set display name for debugging
|
|
30
29
|
Spinner.displayName = 'Spinner';
|
|
31
30
|
|
|
32
|
-
// Default export (primary)
|
|
33
31
|
export default Spinner;
|
|
34
|
-
|
|
35
|
-
export { Spinner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect, useState, ReactNode } from 'react';
|
|
2
2
|
import { STEPS } from '../../lib/constants/components';
|
|
3
3
|
|
|
4
|
-
interface StepItem {
|
|
4
|
+
export interface StepItem {
|
|
5
5
|
/**
|
|
6
6
|
* The number for the step
|
|
7
7
|
*/
|
|
@@ -18,7 +18,7 @@ interface StepItem {
|
|
|
18
18
|
content?: React.ReactNode;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
interface StepsProps {
|
|
21
|
+
export interface StepsProps {
|
|
22
22
|
/**
|
|
23
23
|
* Array of step items
|
|
24
24
|
*/
|
|
@@ -48,7 +48,7 @@ interface StepsProps {
|
|
|
48
48
|
/**
|
|
49
49
|
* Steps component for displaying a sequence of steps
|
|
50
50
|
*/
|
|
51
|
-
const Steps: React.FC<StepsProps> = ({
|
|
51
|
+
export const Steps: React.FC<StepsProps> = ({
|
|
52
52
|
items,
|
|
53
53
|
activeIndex = 0,
|
|
54
54
|
vertical = false,
|
|
@@ -61,7 +61,7 @@ interface StepsProps {
|
|
|
61
61
|
|
|
62
62
|
useEffect(() => {
|
|
63
63
|
// Only run on client-side
|
|
64
|
-
if (typeof window === 'undefined' || !stepsRef.current) return;
|
|
64
|
+
if (typeof window === 'undefined' || !stepsRef.current) return undefined;
|
|
65
65
|
|
|
66
66
|
// Dynamically import the steps script to avoid server-side rendering issues
|
|
67
67
|
import('./scripts').then(({ default: StepsClass }) => {
|
|
@@ -149,13 +149,6 @@ interface StepsProps {
|
|
|
149
149
|
);
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
-
export type { StepsProps, StepItem };
|
|
153
|
-
|
|
154
|
-
// Set display name for debugging
|
|
155
152
|
Steps.displayName = 'Steps';
|
|
156
153
|
|
|
157
|
-
|
|
158
|
-
export default Steps;
|
|
159
|
-
|
|
160
|
-
// Named export for compatibility
|
|
161
|
-
export { Steps };
|
|
154
|
+
export default Steps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect, useState, ReactNode } from 'react';
|
|
2
2
|
import { TAB } from '../../lib/constants/components';
|
|
3
3
|
|
|
4
|
-
interface TabItemProps {
|
|
4
|
+
export interface TabItemProps {
|
|
5
5
|
/**
|
|
6
6
|
* Label for the tab
|
|
7
7
|
*/
|
|
@@ -23,7 +23,7 @@ interface TabItemProps {
|
|
|
23
23
|
className?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
interface TabProps {
|
|
26
|
+
export interface TabProps {
|
|
27
27
|
/**
|
|
28
28
|
* Array of tab items
|
|
29
29
|
*/
|
|
@@ -48,7 +48,7 @@ interface TabProps {
|
|
|
48
48
|
/**
|
|
49
49
|
* Tab component for switching between different content panels
|
|
50
50
|
*/
|
|
51
|
-
const Tab: React.FC<TabProps> = ({
|
|
51
|
+
export const Tab: React.FC<TabProps> = ({
|
|
52
52
|
items,
|
|
53
53
|
activeIndex = TAB.DEFAULTS.ACTIVE_INDEX,
|
|
54
54
|
onTabChange,
|
|
@@ -61,7 +61,7 @@ const Tab: React.FC<TabProps> = ({
|
|
|
61
61
|
// Handle tab instance initialization and cleanup
|
|
62
62
|
useEffect(() => {
|
|
63
63
|
// Only run on client-side
|
|
64
|
-
if (typeof window === 'undefined' || !tabRef.current) return;
|
|
64
|
+
if (typeof window === 'undefined' || !tabRef.current) return undefined;
|
|
65
65
|
|
|
66
66
|
// Dynamically import the tab script to avoid server-side rendering issues
|
|
67
67
|
import('./scripts').then(({ default: TabClass }) => {
|
|
@@ -130,12 +130,6 @@ const Tab: React.FC<TabProps> = ({
|
|
|
130
130
|
);
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
export type { TabProps, TabItemProps };
|
|
134
|
-
|
|
135
|
-
// Set display name for debugging
|
|
136
133
|
Tab.displayName = 'Tab';
|
|
137
134
|
|
|
138
|
-
// Default export (primary)
|
|
139
135
|
export default Tab;
|
|
140
|
-
|
|
141
|
-
export { Tab };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect, ReactNode } from 'react';
|
|
2
2
|
import { TESTIMONIAL } from '../../lib/constants/components';
|
|
3
3
|
|
|
4
|
-
interface TestimonialAuthor {
|
|
4
|
+
export interface TestimonialAuthor {
|
|
5
5
|
/**
|
|
6
6
|
* The author's name
|
|
7
7
|
*/
|
|
@@ -23,7 +23,7 @@ interface TestimonialAuthor {
|
|
|
23
23
|
avatarAlt?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
interface TestimonialProps {
|
|
26
|
+
export interface TestimonialProps {
|
|
27
27
|
/**
|
|
28
28
|
* The testimonial quote text or content
|
|
29
29
|
*/
|
|
@@ -53,7 +53,7 @@ interface TestimonialProps {
|
|
|
53
53
|
/**
|
|
54
54
|
* Testimonial component for displaying customer quotes and feedback
|
|
55
55
|
*/
|
|
56
|
-
const Testimonial: React.FC<TestimonialProps> = ({
|
|
56
|
+
export const Testimonial: React.FC<TestimonialProps> = ({
|
|
57
57
|
quote,
|
|
58
58
|
author,
|
|
59
59
|
size = '',
|
|
@@ -65,7 +65,7 @@ const Testimonial: React.FC<TestimonialProps> = ({
|
|
|
65
65
|
|
|
66
66
|
useEffect(() => {
|
|
67
67
|
// Only run on client-side
|
|
68
|
-
if (typeof window === 'undefined' || !testimonialRef.current) return;
|
|
68
|
+
if (typeof window === 'undefined' || !testimonialRef.current) return undefined;
|
|
69
69
|
|
|
70
70
|
// Dynamically import the testimonial script to avoid server-side rendering issues
|
|
71
71
|
import('./scripts').then(({ default: TestimonialClass }) => {
|
|
@@ -143,13 +143,7 @@ const Testimonial: React.FC<TestimonialProps> = ({
|
|
|
143
143
|
);
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
-
export type { TestimonialProps, TestimonialAuthor };
|
|
147
146
|
|
|
148
|
-
// Set display name for debugging
|
|
149
147
|
Testimonial.displayName = 'Testimonial';
|
|
150
148
|
|
|
151
|
-
// Default export (primary)
|
|
152
149
|
export default Testimonial;
|
|
153
|
-
|
|
154
|
-
// Named export for compatibility
|
|
155
|
-
export { Testimonial };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { TodoProps } from '../../lib/types/components';
|
|
3
3
|
import { useTodo } from '../../lib/composables/useTodo';
|
|
4
|
-
import { Icon } from '../Icon';
|
|
4
|
+
import { Icon } from '../Icon/Icon';
|
|
5
5
|
import { TODO } from '../../lib/constants/components';
|
|
6
6
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
7
|
|
|
8
|
-
const Todo: React.FC<TodoProps> = ({
|
|
8
|
+
export const Todo: React.FC<TodoProps> = ({
|
|
9
9
|
items = [],
|
|
10
10
|
title = 'Todo List',
|
|
11
11
|
onAddTodo,
|
|
@@ -162,13 +162,8 @@ const Todo: React.FC<TodoProps> = ({
|
|
|
162
162
|
);
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
export type { TodoProps };
|
|
166
|
-
|
|
167
|
-
// Set display name for debugging
|
|
168
165
|
Todo.displayName = 'Todo';
|
|
169
166
|
|
|
170
|
-
|
|
171
|
-
export default Todo;
|
|
167
|
+
export type { TodoProps };
|
|
172
168
|
|
|
173
|
-
|
|
174
|
-
export { Todo };
|
|
169
|
+
export default Todo;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { Todo, TodoEvents } from './index';
|
|
2
2
|
import { initializeAllTodos, filterTodoItems, sortTodoItems } from './todoInteractions';
|
|
3
3
|
|
|
4
|
-
// Expose to global scope
|
|
5
|
-
declare global {
|
|
6
|
-
interface Window {
|
|
7
|
-
Atomix: Record<string, any>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
4
|
// Initialize global namespace if not exists
|
|
12
5
|
window.Atomix = window.Atomix || {};
|
|
13
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect, useState } from 'react';
|
|
2
2
|
import { TOGGLE } from '../../lib/constants/components';
|
|
3
3
|
|
|
4
|
-
interface ToggleProps {
|
|
4
|
+
export interface ToggleProps {
|
|
5
5
|
/**
|
|
6
6
|
* Whether the toggle is initially on
|
|
7
7
|
*/
|
|
@@ -31,7 +31,7 @@ interface ToggleProps {
|
|
|
31
31
|
/**
|
|
32
32
|
* Toggle component for switching between two states
|
|
33
33
|
*/
|
|
34
|
-
const Toggle: React.FC<ToggleProps> = ({
|
|
34
|
+
export const Toggle: React.FC<ToggleProps> = ({
|
|
35
35
|
initialOn = false,
|
|
36
36
|
onToggleOn,
|
|
37
37
|
onToggleOff,
|
|
@@ -44,7 +44,7 @@ const Toggle: React.FC<ToggleProps> = ({
|
|
|
44
44
|
|
|
45
45
|
useEffect(() => {
|
|
46
46
|
// Only run on client-side
|
|
47
|
-
if (typeof window === 'undefined' || !toggleRef.current) return;
|
|
47
|
+
if (typeof window === 'undefined' || !toggleRef.current) return undefined;
|
|
48
48
|
|
|
49
49
|
// Initialize toggle instance
|
|
50
50
|
import('./scripts').then(({ default: ToggleClass }) => {
|
|
@@ -109,12 +109,6 @@ const Toggle: React.FC<ToggleProps> = ({
|
|
|
109
109
|
);
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
export type { ToggleProps };
|
|
113
|
-
|
|
114
|
-
// Set display name for debugging
|
|
115
112
|
Toggle.displayName = 'Toggle';
|
|
116
113
|
|
|
117
|
-
|
|
118
|
-
export default Toggle;
|
|
119
|
-
|
|
120
|
-
export { Toggle };
|
|
114
|
+
export default Toggle;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import Toggle from './index';
|
|
2
2
|
import { applyHoverEffect, applyFocusEffect, initializeToggle, initializeAllToggles } from './toggleInteractions';
|
|
3
3
|
|
|
4
|
-
// Expose to global scope
|
|
5
|
-
declare global {
|
|
6
|
-
interface Window {
|
|
7
|
-
Atomix: Record<string, any>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
4
|
// Initialize global namespace if not exists
|
|
12
5
|
window.Atomix = window.Atomix || {};
|
|
13
6
|
|
|
@@ -2,7 +2,7 @@ import React, { ReactNode, useRef, useEffect } from 'react';
|
|
|
2
2
|
import { TOOLTIP } from '../../lib/constants/components';
|
|
3
3
|
import { Tooltip as TooltipClass } from './scripts';
|
|
4
4
|
|
|
5
|
-
interface TooltipProps {
|
|
5
|
+
export interface TooltipProps {
|
|
6
6
|
/**
|
|
7
7
|
* Content to be displayed in the tooltip
|
|
8
8
|
*/
|
|
@@ -39,7 +39,7 @@ interface TooltipProps {
|
|
|
39
39
|
offset?: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
const Tooltip: React.FC<TooltipProps> = ({
|
|
42
|
+
export const Tooltip: React.FC<TooltipProps> = ({
|
|
43
43
|
content,
|
|
44
44
|
children,
|
|
45
45
|
position = TOOLTIP.DEFAULTS.POSITION,
|
|
@@ -90,13 +90,6 @@ const Tooltip: React.FC<TooltipProps> = ({
|
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
export type { TooltipProps };
|
|
94
|
-
|
|
95
|
-
// Set display name for debugging
|
|
96
93
|
Tooltip.displayName = 'Tooltip';
|
|
97
94
|
|
|
98
|
-
|
|
99
|
-
export default Tooltip;
|
|
100
|
-
|
|
101
|
-
// Named export for compatibility
|
|
102
|
-
export { Tooltip };
|
|
95
|
+
export default Tooltip;
|