@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,78 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export type { PaginationProps } from './Pagination/Pagination';
|
|
47
|
-
export { default as PhotoViewer } from './PhotoViewer/PhotoViewer';
|
|
48
|
-
export type { PhotoViewerProps } from './PhotoViewer/PhotoViewer';
|
|
49
|
-
export { default as Popover } from './Popover/Popover';
|
|
50
|
-
export type { PopoverProps } from './Popover/Popover';
|
|
51
|
-
export { default as ProductReview } from './ProductReview/ProductReview';
|
|
52
|
-
export type { ProductReviewProps } from './ProductReview/ProductReview';
|
|
53
|
-
export { default as Progress } from './Progress/Progress';
|
|
54
|
-
export type { ProgressProps } from './Progress/Progress';
|
|
55
|
-
export { default as Rating } from './Rating/Rating';
|
|
56
|
-
export type { RatingProps } from './Rating/Rating';
|
|
57
|
-
export { default as River } from './River/River';
|
|
58
|
-
export type { RiverProps } from './River/River';
|
|
59
|
-
export { default as SectionIntro } from './SectionIntro/SectionIntro';
|
|
60
|
-
export type { SectionIntroProps } from './SectionIntro/SectionIntro';
|
|
61
|
-
export { default as Spinner } from './Spinner/Spinner';
|
|
62
|
-
export type { SpinnerProps } from './Spinner/Spinner';
|
|
63
|
-
export { default as Steps } from './Steps/Steps';
|
|
64
|
-
export type { StepsProps } from './Steps/Steps';
|
|
65
|
-
export { default as Tab } from './Tab/Tab';
|
|
66
|
-
export type { TabProps } from './Tab/Tab';
|
|
67
|
-
export { default as Testimonial } from './Testimonial/Testimonial';
|
|
68
|
-
export type { TestimonialProps } from './Testimonial/Testimonial';
|
|
69
|
-
export { default as Todo } from './Todo/Todo';
|
|
70
|
-
export type { TodoProps } from './Todo/Todo';
|
|
71
|
-
export { default as Toggle } from './Toggle/Toggle';
|
|
72
|
-
export type { ToggleProps } from './Toggle/Toggle';
|
|
73
|
-
export { default as Tooltip } from './Tooltip/Tooltip';
|
|
74
|
-
export type { TooltipProps } from './Tooltip/Tooltip';
|
|
75
|
-
export { default as Upload } from './Upload/Upload';
|
|
76
|
-
export type { UploadProps } from './Upload/Upload';
|
|
77
|
-
export { default as AtomixLogo } from './AtomixLogo/AtomixLogo';
|
|
78
|
-
export type { AtomixLogoProps } from './AtomixLogo/AtomixLogo';
|
|
1
|
+
// Auto-generated component type exports
|
|
2
|
+
|
|
3
|
+
export * from './Accordion/Accordion';
|
|
4
|
+
export * from './AtomixLogo/AtomixLogo';
|
|
5
|
+
export * from './Avatar/Avatar';
|
|
6
|
+
export * from './Badge/Badge';
|
|
7
|
+
export * from './Breadcrumb/Breadcrumb';
|
|
8
|
+
export * from './Button/Button';
|
|
9
|
+
export * from './Callout/Callout';
|
|
10
|
+
export * from './Card/Card';
|
|
11
|
+
export * from './ColorModeToggle/ColorModeToggle';
|
|
12
|
+
export * from './Countdown/Countdown';
|
|
13
|
+
export * from './DataTable/DataTable';
|
|
14
|
+
export * from './DatePicker/DatePicker';
|
|
15
|
+
export * from './Dropdown/Dropdown';
|
|
16
|
+
export * from './EdgePanel/EdgePanel';
|
|
17
|
+
export * from './Form/Form';
|
|
18
|
+
export * from './Hero/Hero';
|
|
19
|
+
export * from './Icon/Icon';
|
|
20
|
+
export * from './List/List';
|
|
21
|
+
export * from './Messages/Messages';
|
|
22
|
+
export * from './Modal/Modal';
|
|
23
|
+
export * from './Navbar/Navbar';
|
|
24
|
+
export * from './Pagination/Pagination';
|
|
25
|
+
export * from './PhotoViewer/PhotoViewer';
|
|
26
|
+
export * from './Popover/Popover';
|
|
27
|
+
export * from './ProductReview/ProductReview';
|
|
28
|
+
export * from './Progress/Progress';
|
|
29
|
+
export * from './Rating/Rating';
|
|
30
|
+
export * from './River/River';
|
|
31
|
+
export * from './SectionIntro/SectionIntro';
|
|
32
|
+
export * from './Spinner/Spinner';
|
|
33
|
+
export * from './Steps/Steps';
|
|
34
|
+
export * from './Tab/Tab';
|
|
35
|
+
export * from './Testimonial/Testimonial';
|
|
36
|
+
export * from './Todo/Todo';
|
|
37
|
+
export * from './Toggle/Toggle';
|
|
38
|
+
export * from './Tooltip/Tooltip';
|
|
39
|
+
export * from './Upload/Upload';
|
|
40
|
+
export * from './Form/Form';
|
|
41
|
+
export * from './Form/Input';
|
|
42
|
+
export * from './Form/Textarea';
|
|
43
|
+
export * from './Form/Select';
|
|
44
|
+
export * from './Form/Checkbox';
|
|
45
|
+
export * from './Form/Radio';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,56 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Type definitions for @shohojdhara/atomix
|
|
2
|
+
|
|
3
|
+
// Export all components
|
|
4
|
+
export * from './components/index';
|
|
5
|
+
|
|
6
|
+
// Export lib utilities
|
|
7
|
+
export * from './lib/index';
|
|
8
|
+
|
|
9
|
+
// Export layouts
|
|
10
|
+
export * from './layouts/index';
|
|
11
|
+
|
|
12
|
+
// Define the default export
|
|
3
13
|
declare const atomix: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Breadcrumb: import("react").FC<components.BreadcrumbProps>;
|
|
12
|
-
Button: import("react").ForwardRefExoticComponent<Omit<components.ButtonProps & {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
as?: import("react").ElementType;
|
|
15
|
-
to?: string;
|
|
16
|
-
href?: string;
|
|
17
|
-
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
Callout: import("react").FC<components.CalloutProps>;
|
|
19
|
-
Card: import("react").ForwardRefExoticComponent<components.CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
-
ColorModeToggle: import("react").FC<components.ColorModeToggleProps>;
|
|
21
|
-
Countdown: import("react").FC<components.CountdownProps>;
|
|
22
|
-
DataTable: import("react").FC<components.DataTableProps>;
|
|
23
|
-
DatePicker: import("react").ForwardRefExoticComponent<components.DatePickerProps & import("react").RefAttributes<import("./components/DatePicker").DatePickerRef>>;
|
|
24
|
-
Dropdown: import("react").FC<components.DropdownProps>;
|
|
25
|
-
EdgePanel: import("react").FC<components.EdgePanelProps>;
|
|
26
|
-
Form: import("react").FC<import("./lib/types").FormProps>;
|
|
27
|
-
Input: import("react").FC<import("./lib/types").InputProps>;
|
|
28
|
-
Textarea: import("react").FC<import("./lib/types").TextareaProps>;
|
|
29
|
-
Select: import("react").FC<import("./lib/types").SelectProps>;
|
|
30
|
-
Checkbox: import("react").FC<import("./lib/types").CheckboxProps>;
|
|
31
|
-
Radio: import("react").FC<import("./lib/types").RadioProps>;
|
|
32
|
-
Hero: import("react").FC<components.HeroProps>;
|
|
33
|
-
Icon: import("react").FC<components.IconProps>;
|
|
34
|
-
List: import("react").FC<components.ListProps>;
|
|
35
|
-
Messages: import("react").FC<components.MessagesProps>;
|
|
36
|
-
Modal: import("react").FC<components.ModalProps>;
|
|
37
|
-
Navbar: import("react").FC<components.NavbarProps>;
|
|
38
|
-
Pagination: import("react").FC<components.PaginationProps>;
|
|
39
|
-
PhotoViewer: import("react").FC<components.PhotoViewerProps>;
|
|
40
|
-
Popover: import("react").FC<components.PopoverProps>;
|
|
41
|
-
ProductReview: import("react").FC<components.ProductReviewProps>;
|
|
42
|
-
Progress: import("react").ForwardRefExoticComponent<components.ProgressProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
43
|
-
Rating: import("react").ForwardRefExoticComponent<components.RatingProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
-
River: import("react").FC<components.RiverProps>;
|
|
45
|
-
SectionIntro: import("react").FC<components.SectionIntroProps>;
|
|
46
|
-
Spinner: import("react").FC<components.SpinnerProps>;
|
|
47
|
-
Steps: import("react").FC<components.StepsProps>;
|
|
48
|
-
Tab: import("react").FC<components.TabProps>;
|
|
49
|
-
Testimonial: import("react").FC<components.TestimonialProps>;
|
|
50
|
-
Todo: import("react").FC<components.TodoProps>;
|
|
51
|
-
Toggle: import("react").FC<components.ToggleProps>;
|
|
52
|
-
Tooltip: import("react").FC<components.TooltipProps>;
|
|
53
|
-
Upload: import("react").FC<components.UploadProps>;
|
|
54
|
-
AtomixLogo: import("react").FC<components.AtomixLogoProps>;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
|
|
16
|
+
// Explicitly include lib namespaces
|
|
17
|
+
composables: any;
|
|
18
|
+
utils: any;
|
|
19
|
+
constants: any;
|
|
20
|
+
layouts: any;
|
|
55
21
|
};
|
|
22
|
+
|
|
23
|
+
// Default export
|
|
56
24
|
export default atomix;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const layouts: {
|
|
4
|
-
MasonryGrid: import("react").ForwardRefExoticComponent<MasonryGrid.MasonryGridProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
MasonryGridItem: import("react").ForwardRefExoticComponent<MasonryGrid.MasonryGridItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
Grid: import("react").ForwardRefExoticComponent<Grid.GridProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
GridCol: import("react").ForwardRefExoticComponent<Grid.GridColProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
Container: import("react").ForwardRefExoticComponent<Grid.ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Row: import("react").ForwardRefExoticComponent<Grid.RowProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
};
|
|
11
|
-
export default layouts;
|
|
1
|
+
export * from './Grid/Grid';
|
|
2
|
+
export * from './MasonryGrid/MasonryGrid';
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
export * from './useButton';
|
|
2
1
|
export * from './useAccordion';
|
|
3
2
|
export * from './useBadge';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
3
|
+
export * from './useBreadcrumb';
|
|
4
|
+
export * from './useButton';
|
|
5
|
+
export * from './useCallout';
|
|
6
|
+
export * from './useCard';
|
|
7
|
+
export * from './useCheckbox';
|
|
8
|
+
export * from './useDataTable';
|
|
9
|
+
export * from './useDatePicker';
|
|
10
|
+
export * from './useDropdown';
|
|
8
11
|
export * from './useEdgePanel';
|
|
9
|
-
export * from './useTodo';
|
|
10
12
|
export * from './useForm';
|
|
11
13
|
export * from './useFormGroup';
|
|
14
|
+
export * from './useHero';
|
|
12
15
|
export * from './useInput';
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
16
|
+
export * from './useMessages';
|
|
17
|
+
export * from './useModal';
|
|
18
|
+
export * from './useNavbar';
|
|
19
|
+
export * from './usePagination';
|
|
20
|
+
export * from './usePhotoViewer';
|
|
21
|
+
export * from './usePopover';
|
|
22
|
+
export * from './useProgress';
|
|
15
23
|
export * from './useRadio';
|
|
24
|
+
export * from './useRating';
|
|
25
|
+
export * from './useRiver';
|
|
26
|
+
export * from './useSelect';
|
|
27
|
+
export * from './useSpinner';
|
|
16
28
|
export * from './useTextarea';
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './usePagination';
|
|
19
|
-
export * from './useModal';
|
|
20
|
-
export * from './useBreadcrumb';
|
|
21
|
-
export * from './useCard';
|
|
29
|
+
export * from './useTodo';
|
|
@@ -7,5 +7,5 @@ import { CheckboxProps } from '../types/components';
|
|
|
7
7
|
export declare function useCheckbox(initialProps?: Partial<CheckboxProps>): {
|
|
8
8
|
defaultProps: Partial<CheckboxProps>;
|
|
9
9
|
generateCheckboxClass: (props: Partial<CheckboxProps>) => string;
|
|
10
|
-
checkboxRef: import("react").
|
|
10
|
+
checkboxRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
11
11
|
};
|
|
@@ -61,10 +61,10 @@ export declare function useDatePicker({ value, onChange, selectionMode, startDat
|
|
|
61
61
|
currentYear: number;
|
|
62
62
|
selectionMode: DatePickerSelectionMode;
|
|
63
63
|
rangeSelectionState: "start" | "end";
|
|
64
|
-
datePickerRef: import("react").
|
|
65
|
-
inputRef: import("react").
|
|
66
|
-
startDate: Date
|
|
67
|
-
endDate: Date
|
|
64
|
+
datePickerRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
65
|
+
inputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
66
|
+
startDate: Date;
|
|
67
|
+
endDate: Date;
|
|
68
68
|
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
69
69
|
handleDateSelect: (day: number) => void;
|
|
70
70
|
handlePrevMonth: () => void;
|
|
@@ -6,8 +6,8 @@ import { EdgePanelProps } from '../types/components';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function useEdgePanel(initialProps?: Partial<EdgePanelProps>): {
|
|
8
8
|
isOpen: boolean;
|
|
9
|
-
containerRef: import("react").
|
|
10
|
-
backdropRef: import("react").
|
|
9
|
+
containerRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
10
|
+
backdropRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
11
11
|
generateEdgePanelClass: (props: Partial<EdgePanelProps>) => string;
|
|
12
12
|
openPanel: () => void;
|
|
13
13
|
closePanel: () => void;
|
|
@@ -21,8 +21,8 @@ export declare const usePhotoViewer: ({ images, startIndex, enableGestures, onIm
|
|
|
21
21
|
isFullscreen: boolean;
|
|
22
22
|
rotationAngle: number;
|
|
23
23
|
showInfo: boolean;
|
|
24
|
-
imageRef: React.
|
|
25
|
-
containerRef: React.
|
|
24
|
+
imageRef: React.MutableRefObject<HTMLImageElement>;
|
|
25
|
+
containerRef: React.MutableRefObject<HTMLDivElement>;
|
|
26
26
|
isTransitioning: boolean;
|
|
27
27
|
setCurrentIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
28
28
|
setZoomLevel: (zoom: number | ((prev: number) => number)) => void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export declare const types: typeof typesImport;
|
|
8
|
-
export declare const constants: typeof constantsImport;
|
|
1
|
+
// Auto-generated lib exports
|
|
2
|
+
|
|
3
|
+
export * as composables from './composables';
|
|
4
|
+
export * as utils from './utils';
|
|
5
|
+
export * as types from './types';
|
|
6
|
+
export * as constants from './constants';
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shohojdhara/atomix",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Atomix Design System - A modern component library for web applications",
|
|
5
|
-
"main": "dist/js/atomix.react.
|
|
5
|
+
"main": "dist/js/atomix.react.esm.js",
|
|
6
6
|
"module": "dist/js/atomix.react.esm.js",
|
|
7
|
-
"unpkg": "dist/js/atomix.react.js",
|
|
8
|
-
"jsdelivr": "dist/js/atomix.react.js",
|
|
9
|
-
"browser": "dist/js/atomix.react.js",
|
|
10
|
-
"
|
|
7
|
+
"unpkg": "dist/js/atomix.react.umd.js",
|
|
8
|
+
"jsdelivr": "dist/js/atomix.react.umd.js",
|
|
9
|
+
"browser": "dist/js/atomix.react.umd.js",
|
|
10
|
+
"types": "dist/types/index.d.ts",
|
|
11
11
|
"sideEffects": [
|
|
12
12
|
"*.css",
|
|
13
13
|
"*.scss",
|
|
@@ -21,12 +21,6 @@
|
|
|
21
21
|
"default": "./dist/js/atomix.react.esm.js"
|
|
22
22
|
},
|
|
23
23
|
"./package.json": "./package.json",
|
|
24
|
-
"./types": {
|
|
25
|
-
"types": "./dist/types/index.d.ts"
|
|
26
|
-
},
|
|
27
|
-
"./types/components": {
|
|
28
|
-
"types": "./dist/types/components.d.ts"
|
|
29
|
-
},
|
|
30
24
|
"./css": {
|
|
31
25
|
"types": "./css.d.ts",
|
|
32
26
|
"default": "./dist/css/atomix.css"
|
|
@@ -39,15 +33,13 @@
|
|
|
39
33
|
},
|
|
40
34
|
"typesVersions": {
|
|
41
35
|
"*": {
|
|
42
|
-
"
|
|
36
|
+
"*": [
|
|
43
37
|
"./dist/types/index.d.ts"
|
|
44
|
-
],
|
|
45
|
-
"types/components": [
|
|
46
|
-
"./dist/types/components.d.ts"
|
|
47
38
|
]
|
|
48
39
|
}
|
|
49
40
|
},
|
|
50
41
|
"dependencies": {
|
|
42
|
+
"@babel/runtime-corejs3": "^7.27.6",
|
|
51
43
|
"@types/classnames": "^2.3.0",
|
|
52
44
|
"@types/node": "^20.0.0",
|
|
53
45
|
"@types/react-router-dom": "^5.3.3",
|
|
@@ -58,9 +50,11 @@
|
|
|
58
50
|
},
|
|
59
51
|
"devDependencies": {
|
|
60
52
|
"@babel/core": "^7.26.10",
|
|
53
|
+
"@babel/plugin-transform-runtime": "^7.27.4",
|
|
61
54
|
"@babel/preset-env": "^7.26.9",
|
|
62
55
|
"@babel/preset-react": "^7.26.3",
|
|
63
56
|
"@babel/preset-typescript": "^7.27.0",
|
|
57
|
+
"@size-limit/preset-app": "^11.0.0",
|
|
64
58
|
"@storybook/addon-essentials": "^8.0.0",
|
|
65
59
|
"@storybook/addon-interactions": "^8.0.0",
|
|
66
60
|
"@storybook/addon-links": "^8.0.0",
|
|
@@ -71,20 +65,38 @@
|
|
|
71
65
|
"@storybook/test": "^8.0.0",
|
|
72
66
|
"@types/react": "^18.2.0",
|
|
73
67
|
"@types/react-dom": "^18.2.0",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.34.0",
|
|
69
|
+
"@typescript-eslint/parser": "^8.34.0",
|
|
74
70
|
"autoprefixer": "^10.4.21",
|
|
75
71
|
"babel-loader": "^10.0.0",
|
|
76
72
|
"caniuse-lite": "^1.0.30001721",
|
|
73
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
74
|
+
"core-js": "^3.43.0",
|
|
77
75
|
"css-loader": "^7.1.2",
|
|
78
76
|
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
79
77
|
"cssnano": "^6.1.2",
|
|
78
|
+
"eslint": "^9.29.0",
|
|
79
|
+
"eslint-config-prettier": "^10.1.5",
|
|
80
|
+
"eslint-plugin-import": "^2.31.0",
|
|
81
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
82
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
83
|
+
"eslint-plugin-react": "^7.37.5",
|
|
84
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
80
85
|
"gh-pages": "^6.1.1",
|
|
81
86
|
"html-webpack-plugin": "^5.6.3",
|
|
82
87
|
"mini-css-extract-plugin": "^2.9.2",
|
|
88
|
+
"npm-run-all": "^4.1.5",
|
|
83
89
|
"polished": "^4.2.2",
|
|
84
90
|
"postcss": "^8.4.24",
|
|
91
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
92
|
+
"postcss-import": "^16.1.0",
|
|
85
93
|
"postcss-loader": "^8.1.1",
|
|
94
|
+
"postcss-preset-env": "^10.2.3",
|
|
95
|
+
"prettier": "^3.5.3",
|
|
96
|
+
"rimraf": "^5.0.5",
|
|
86
97
|
"sass-embedded": "^1.87.0",
|
|
87
98
|
"sass-loader": "^16.0.5",
|
|
99
|
+
"size-limit": "^11.0.0",
|
|
88
100
|
"storybook": "^8.0.0",
|
|
89
101
|
"style-loader": "^4.0.0",
|
|
90
102
|
"terser": "^5.24.0",
|
|
@@ -94,38 +106,50 @@
|
|
|
94
106
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
95
107
|
"webpack-cli": "^6.0.1",
|
|
96
108
|
"webpack-dev-server": "^5.2.1",
|
|
97
|
-
"webpack-node-externals": "^3.0.0"
|
|
98
|
-
"@size-limit/preset-app": "^11.0.0",
|
|
99
|
-
"npm-run-all": "^4.1.5",
|
|
100
|
-
"size-limit": "^11.0.0"
|
|
109
|
+
"webpack-node-externals": "^3.0.0"
|
|
101
110
|
},
|
|
102
111
|
"scripts": {
|
|
103
|
-
"analyze": "npx webpack --mode production --env target=components --env format=all --env analyze=true",
|
|
104
112
|
"dev": "npm run storybook",
|
|
105
113
|
"storybook": "storybook dev -p 6006",
|
|
106
114
|
"build-storybook": "storybook build",
|
|
107
115
|
"predeploy": "npm run build-storybook && node scripts/prepare-deploy.js",
|
|
108
116
|
"deploy": "gh-pages -d deploy",
|
|
109
|
-
"
|
|
110
|
-
"
|
|
117
|
+
"// Build scripts": "",
|
|
118
|
+
"build": "npm run build:components",
|
|
119
|
+
"build:components": "npm-run-all clean:dist build:styles build:react build:types",
|
|
120
|
+
"build:react": "webpack --mode production --env target=components --env format=all",
|
|
121
|
+
"build:styles": "webpack --mode production --env target=styles",
|
|
122
|
+
"build:types": "npm run clean:types && tsc --emitDeclarationOnly --declaration --declarationDir dist/types && node scripts/fix-types.js",
|
|
123
|
+
"build:cjs": "webpack --mode production --env target=components --env format=cjs",
|
|
124
|
+
"build:esm": "webpack --mode production --env target=components --env format=esm",
|
|
125
|
+
"build:umd": "webpack --mode production --env target=components --env format=umd",
|
|
126
|
+
"// Utility scripts": "",
|
|
127
|
+
"clean:dist": "rimraf dist",
|
|
128
|
+
"clean:types": "rimraf dist/types",
|
|
129
|
+
"clean:all": "npm-run-all clean:dist clean:types",
|
|
130
|
+
"// Analysis scripts": "",
|
|
131
|
+
"analyze:bundle": "webpack --mode production --env target=components --env format=all --env analyze=true",
|
|
132
|
+
"analyze:size": "size-limit",
|
|
133
|
+
"analyze:all": "npm-run-all analyze:bundle analyze:size",
|
|
134
|
+
"// Version scripts": "",
|
|
111
135
|
"version:patch": "npm version patch",
|
|
112
136
|
"version:minor": "npm version minor",
|
|
113
137
|
"version:major": "npm version major",
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"build:styles": "npm run clean:dist && npx webpack --mode production --env target=styles",
|
|
121
|
-
"build:cjs": "npx webpack --mode production --env target=components --env format=cjs",
|
|
122
|
-
"build:esm": "npx webpack --mode production --env target=components --env format=esm",
|
|
123
|
-
"build:umd": "npx webpack --mode production --env target=components --env format=umd",
|
|
124
|
-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
138
|
+
"// Publishing scripts": "",
|
|
139
|
+
"prepublishOnly": "npm-run-all test build",
|
|
140
|
+
"test:publish": "npm pack --dry-run",
|
|
141
|
+
"publish:rc": "npm publish --tag next",
|
|
142
|
+
"publish:latest": "npm publish",
|
|
143
|
+
"// Development scripts": "",
|
|
125
144
|
"link:local": "npm link && echo 'Package linked locally. Use npm link @shohojdhara/atomix in your project to test it.'",
|
|
126
145
|
"unlink:local": "npm unlink",
|
|
127
|
-
"
|
|
128
|
-
"
|
|
146
|
+
"test": "echo \"No tests specified\" && exit 0",
|
|
147
|
+
"// Linting and formatting scripts": "",
|
|
148
|
+
"lint": "eslint --ext .js,.jsx,.ts,.tsx src/",
|
|
149
|
+
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx src/ --fix",
|
|
150
|
+
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss}'",
|
|
151
|
+
"format:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx,json,css,scss}'",
|
|
152
|
+
"typecheck": "tsc --noEmit"
|
|
129
153
|
},
|
|
130
154
|
"files": [
|
|
131
155
|
"src",
|
|
@@ -43,7 +43,7 @@ export interface AccordionProps extends BaseComponentProps {
|
|
|
43
43
|
onOpenChange?: (open: boolean) => void;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
const Accordion: React.FC<AccordionProps> = ({
|
|
46
|
+
export const Accordion: React.FC<AccordionProps> = ({
|
|
47
47
|
title,
|
|
48
48
|
children,
|
|
49
49
|
defaultOpen = false,
|
|
@@ -117,6 +117,5 @@ const Accordion: React.FC<AccordionProps> = ({
|
|
|
117
117
|
// Set display name for debugging
|
|
118
118
|
Accordion.displayName = 'Accordion';
|
|
119
119
|
|
|
120
|
-
// Export as
|
|
121
|
-
export { Accordion };
|
|
120
|
+
// Export as default
|
|
122
121
|
export default Accordion;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
interface AtomixLogoProps {
|
|
3
|
+
export interface AtomixLogoProps {
|
|
4
4
|
height?: number;
|
|
5
5
|
width?: number;
|
|
6
6
|
className?: string;
|
|
@@ -41,4 +41,6 @@ export const AtomixLogo: React.FC<AtomixLogoProps> = ({
|
|
|
41
41
|
);
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
+
AtomixLogo.displayName = 'AtomixLogo';
|
|
45
|
+
|
|
44
46
|
export default AtomixLogo;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { AvatarProps } from '../../lib/types/components';
|
|
3
3
|
import { AVATAR } from '../../lib/constants/components';
|
|
4
|
-
import { Icon } from '../Icon';
|
|
4
|
+
import { Icon } from '../Icon/Icon';
|
|
5
5
|
|
|
6
|
-
const Avatar: React.FC<AvatarProps> = ({
|
|
6
|
+
export const Avatar: React.FC<AvatarProps> = ({
|
|
7
7
|
src,
|
|
8
8
|
alt = 'Avatar',
|
|
9
9
|
initials,
|
|
@@ -64,14 +64,8 @@ const Avatar: React.FC<AvatarProps> = ({
|
|
|
64
64
|
);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
Avatar.displayName = 'Avatar';
|
|
67
68
|
|
|
68
69
|
export type { AvatarProps };
|
|
69
70
|
|
|
70
|
-
// Set display name for debugging
|
|
71
|
-
Avatar.displayName = 'Avatar';
|
|
72
|
-
|
|
73
|
-
// Default export (primary)
|
|
74
71
|
export default Avatar;
|
|
75
|
-
|
|
76
|
-
// Named export for compatibility
|
|
77
|
-
export { Avatar };
|
|
@@ -3,7 +3,7 @@ import { AvatarGroupProps, AvatarProps } from '../../lib/types/components';
|
|
|
3
3
|
import { AVATAR_GROUP, AVATAR } from '../../lib/constants/components';
|
|
4
4
|
import { Avatar } from './Avatar';
|
|
5
5
|
|
|
6
|
-
const AvatarGroup: React.FC<AvatarGroupProps> = ({
|
|
6
|
+
export const AvatarGroup: React.FC<AvatarGroupProps> = ({
|
|
7
7
|
children,
|
|
8
8
|
max,
|
|
9
9
|
stacked = false,
|
|
@@ -66,13 +66,8 @@ const AvatarGroup: React.FC<AvatarGroupProps> = ({
|
|
|
66
66
|
);
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
export type { AvatarGroupProps
|
|
69
|
+
export type { AvatarGroupProps }
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
AvatarGroup.displayName = 'Accordion';
|
|
71
|
+
AvatarGroup.displayName = 'AvatarGroup';
|
|
73
72
|
|
|
74
|
-
// Default export (primary)
|
|
75
73
|
export default AvatarGroup;
|
|
76
|
-
|
|
77
|
-
// Named export for compatibility
|
|
78
|
-
export { AvatarGroup };
|