@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.
Files changed (353) hide show
  1. package/dist/css/atomix.css +1 -5
  2. package/dist/css/atomix.css.map +1 -1
  3. package/dist/js/194.js +2 -0
  4. package/dist/js/194.js.map +1 -0
  5. package/dist/js/atomix.react.esm.js +1 -1
  6. package/dist/js/atomix.react.esm.js.map +1 -1
  7. package/dist/js/atomix.react.umd.js +2 -0
  8. package/dist/js/atomix.react.umd.js.map +1 -0
  9. package/dist/js/chunks/esm/202.ff48d27672233280e021.js +2 -0
  10. package/dist/js/chunks/esm/202.ff48d27672233280e021.js.map +1 -0
  11. package/dist/js/chunks/esm/308.f873332126eba90e5c62.js +2 -0
  12. package/dist/js/chunks/esm/308.f873332126eba90e5c62.js.map +1 -0
  13. package/dist/js/chunks/esm/54.4db919e5e4e5cc6d7c72.js +2 -0
  14. package/dist/js/chunks/esm/54.4db919e5e4e5cc6d7c72.js.map +1 -0
  15. package/dist/js/chunks/esm/619.afc5a718eff77fa423b5.js +2 -0
  16. package/dist/js/chunks/esm/619.afc5a718eff77fa423b5.js.map +1 -0
  17. package/dist/js/chunks/esm/690.a9e968c7497d61e56cdc.js +2 -0
  18. package/dist/js/chunks/esm/690.a9e968c7497d61e56cdc.js.map +1 -0
  19. package/dist/js/chunks/esm/894.f1091a4a8758c26d29e4.js +2 -0
  20. package/dist/js/chunks/esm/894.f1091a4a8758c26d29e4.js.map +1 -0
  21. package/dist/js/chunks/esm/897.561a50f7d043d42169da.js +2 -0
  22. package/dist/js/chunks/esm/897.561a50f7d043d42169da.js.map +1 -0
  23. package/dist/js/chunks/umd/202.dac7605cc555b6bda542.js +2 -0
  24. package/dist/js/chunks/umd/202.dac7605cc555b6bda542.js.map +1 -0
  25. package/dist/js/chunks/umd/308.6709979849dcbdb90c9b.js +2 -0
  26. package/dist/js/chunks/umd/308.6709979849dcbdb90c9b.js.map +1 -0
  27. package/dist/js/chunks/umd/54.403470e1f7d0ef4424a7.js +2 -0
  28. package/dist/js/chunks/umd/54.403470e1f7d0ef4424a7.js.map +1 -0
  29. package/dist/js/chunks/umd/619.fa05ea98c10270eb64c5.js +2 -0
  30. package/dist/js/chunks/umd/619.fa05ea98c10270eb64c5.js.map +1 -0
  31. package/dist/js/chunks/umd/690.aa7054d1c53e5402c2d6.js +2 -0
  32. package/dist/js/chunks/umd/690.aa7054d1c53e5402c2d6.js.map +1 -0
  33. package/dist/js/chunks/umd/894.3e1eaf0a2aadf4434390.js +2 -0
  34. package/dist/js/{894.atomix.react.cjs.js.map → chunks/umd/894.3e1eaf0a2aadf4434390.js.map} +1 -1
  35. package/dist/js/chunks/umd/897.554ea37be4453698c167.js +2 -0
  36. package/dist/js/chunks/umd/897.554ea37be4453698c167.js.map +1 -0
  37. package/dist/types/components/Accordion/Accordion.d.ts +1 -2
  38. package/dist/types/components/Accordion/index.d.ts +2 -1
  39. package/dist/types/components/AtomixLogo.d.ts +1 -1
  40. package/dist/types/components/Avatar/Avatar.d.ts +1 -2
  41. package/dist/types/components/Avatar/AvatarGroup.d.ts +3 -4
  42. package/dist/types/components/Avatar/index.d.ts +2 -1
  43. package/dist/types/components/Badge/Badge.d.ts +1 -2
  44. package/dist/types/components/Badge/index.d.ts +2 -1
  45. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +1 -2
  46. package/dist/types/components/Breadcrumb/index.d.ts +1 -0
  47. package/dist/types/components/Button/Button.d.ts +3 -2
  48. package/dist/types/components/Button/index.d.ts +3 -5
  49. package/dist/types/components/Callout/Callout.d.ts +1 -2
  50. package/dist/types/components/Card/Card.d.ts +1 -2
  51. package/dist/types/components/Card/ElevationCard.d.ts +1 -0
  52. package/dist/types/components/ColorModeToggle/ColorModeToggle.d.ts +2 -4
  53. package/dist/types/components/Countdown/Countdown.d.ts +2 -4
  54. package/dist/types/components/DataTable/DataTable.d.ts +1 -2
  55. package/dist/types/components/DataTable/index.d.ts +3 -2
  56. package/dist/types/components/DatePicker/DatePicker.d.ts +2 -3
  57. package/dist/types/components/Dropdown/Dropdown.d.ts +7 -2
  58. package/dist/types/components/Dropdown/index.d.ts +1 -1
  59. package/dist/types/components/EdgePanel/EdgePanel.d.ts +2 -3
  60. package/dist/types/components/Form/Checkbox.d.ts +1 -2
  61. package/dist/types/components/Form/Form.d.ts +1 -2
  62. package/dist/types/components/Form/FormGroup.d.ts +1 -2
  63. package/dist/types/components/Form/Input.d.ts +1 -2
  64. package/dist/types/components/Form/Radio.d.ts +1 -2
  65. package/dist/types/components/Form/Select.d.ts +1 -2
  66. package/dist/types/components/Form/Textarea.d.ts +1 -2
  67. package/dist/types/components/Hero/Hero.d.ts +1 -2
  68. package/dist/types/components/Icon/Icon.d.ts +2 -4
  69. package/dist/types/components/List/List.d.ts +1 -2
  70. package/dist/types/components/Messages/Messages.d.ts +1 -2
  71. package/dist/types/components/Messages/index.d.ts +2 -1
  72. package/dist/types/components/Modal/Modal.d.ts +1 -2
  73. package/dist/types/components/Navbar/Menu.d.ts +1 -2
  74. package/dist/types/components/Navbar/Nav.d.ts +1 -2
  75. package/dist/types/components/Navbar/NavDropdown.d.ts +2 -0
  76. package/dist/types/components/Navbar/NavItem.d.ts +2 -0
  77. package/dist/types/components/Navbar/Navbar.d.ts +1 -2
  78. package/dist/types/components/Pagination/Pagination.d.ts +20 -2
  79. package/dist/types/components/PhotoViewer/PhotoViewer.d.ts +1 -2
  80. package/dist/types/components/PhotoViewer/index.d.ts +2 -1
  81. package/dist/types/components/Popover/Popover.d.ts +8 -2
  82. package/dist/types/components/ProductReview/ProductReview.d.ts +2 -4
  83. package/dist/types/components/ProductReview/index.d.ts +2 -1
  84. package/dist/types/components/Progress/Progress.d.ts +1 -2
  85. package/dist/types/components/Rating/Rating.d.ts +1 -2
  86. package/dist/types/components/River/River.d.ts +1 -2
  87. package/dist/types/components/SectionIntro/SectionIntro.d.ts +2 -4
  88. package/dist/types/components/SectionIntro/index.d.ts +1 -2
  89. package/dist/types/components/Spinner/Spinner.d.ts +1 -2
  90. package/dist/types/components/Steps/Steps.d.ts +3 -5
  91. package/dist/types/components/Steps/index.d.ts +1 -2
  92. package/dist/types/components/Tab/Tab.d.ts +3 -5
  93. package/dist/types/components/Testimonial/Testimonial.d.ts +3 -5
  94. package/dist/types/components/Testimonial/index.d.ts +1 -2
  95. package/dist/types/components/Todo/Todo.d.ts +1 -2
  96. package/dist/types/components/Toggle/Toggle.d.ts +2 -4
  97. package/dist/types/components/Tooltip/Tooltip.d.ts +2 -4
  98. package/dist/types/components/Tooltip/index.d.ts +1 -1
  99. package/dist/types/components/Upload/Upload.d.ts +2 -4
  100. package/dist/types/components/Upload/index.d.ts +1 -2
  101. package/dist/types/components/index.d.ts +45 -78
  102. package/dist/types/index.d.ts +21 -53
  103. package/dist/types/layouts/index.d.ts +2 -11
  104. package/dist/types/lib/composables/index.d.ts +21 -13
  105. package/dist/types/lib/composables/useCheckbox.d.ts +1 -1
  106. package/dist/types/lib/composables/useDatePicker.d.ts +4 -4
  107. package/dist/types/lib/composables/useEdgePanel.d.ts +2 -2
  108. package/dist/types/lib/composables/usePhotoViewer.d.ts +2 -2
  109. package/dist/types/lib/index.d.ts +6 -8
  110. package/dist/types/lib/utils/index.d.ts +1 -0
  111. package/package.json +60 -36
  112. package/src/components/Accordion/Accordion.tsx +2 -3
  113. package/src/components/Accordion/index.ts +2 -1
  114. package/src/components/AtomixLogo/index.ts +0 -0
  115. package/src/components/AtomixLogo.tsx +3 -1
  116. package/src/components/Avatar/Avatar.stories.tsx +1 -0
  117. package/src/components/Avatar/Avatar.tsx +3 -9
  118. package/src/components/Avatar/AvatarGroup.tsx +3 -8
  119. package/src/components/Avatar/index.ts +2 -1
  120. package/src/components/Badge/Badge.tsx +3 -8
  121. package/src/components/Badge/index.ts +3 -0
  122. package/src/components/Breadcrumb/Breadcrumb.tsx +2 -7
  123. package/src/components/Breadcrumb/index.ts +1 -0
  124. package/src/components/Button/Button.tsx +5 -2
  125. package/src/components/Button/index.ts +3 -6
  126. package/src/components/Callout/Callout.tsx +3 -8
  127. package/src/components/Callout/scripts/bundle.ts +2 -12
  128. package/src/components/Card/Card.tsx +3 -8
  129. package/src/components/Card/ElevationCard.tsx +4 -0
  130. package/src/components/Card/scripts/bundle.ts +0 -7
  131. package/src/components/ColorModeToggle/ColorModeToggle.tsx +3 -7
  132. package/src/components/Countdown/Countdown.tsx +9 -17
  133. package/src/components/DataTable/DataTable.tsx +9 -14
  134. package/src/components/DataTable/index.ts +3 -2
  135. package/src/components/DataTable/scripts/bundle.ts +5 -13
  136. package/src/components/DatePicker/DatePicker.tsx +3 -5
  137. package/src/components/Dropdown/Dropdown.tsx +5 -10
  138. package/src/components/Dropdown/index.ts +2 -4
  139. package/src/components/EdgePanel/EdgePanel.tsx +4 -10
  140. package/src/components/Form/Checkbox.tsx +2 -7
  141. package/src/components/Form/Form.tsx +2 -7
  142. package/src/components/Form/FormGroup.tsx +2 -7
  143. package/src/components/Form/Input.tsx +2 -7
  144. package/src/components/Form/Radio.tsx +2 -7
  145. package/src/components/Form/Select.tsx +2 -6
  146. package/src/components/Form/Textarea.tsx +2 -7
  147. package/src/components/Hero/Hero.tsx +2 -7
  148. package/src/components/Icon/Icon.tsx +3 -10
  149. package/src/components/List/List.tsx +2 -7
  150. package/src/components/Messages/Messages.tsx +4 -9
  151. package/src/components/Messages/index.ts +2 -1
  152. package/src/components/Messages/scripts/bundle.ts +3 -3
  153. package/src/components/Modal/Modal.tsx +3 -10
  154. package/src/components/Navbar/MegaMenu.tsx +14 -14
  155. package/src/components/Navbar/Menu.tsx +14 -21
  156. package/src/components/Navbar/Nav.tsx +5 -9
  157. package/src/components/Navbar/NavDropdown.tsx +13 -7
  158. package/src/components/Navbar/NavItem.tsx +15 -10
  159. package/src/components/Navbar/Navbar.tsx +6 -11
  160. package/src/components/Pagination/Pagination.tsx +4 -10
  161. package/src/components/PhotoViewer/PhotoViewer.tsx +2 -7
  162. package/src/components/PhotoViewer/PhotoViewerImage.tsx +1 -1
  163. package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +1 -1
  164. package/src/components/PhotoViewer/README.md +0 -0
  165. package/src/components/PhotoViewer/examples/ImageGallery.tsx +4 -3
  166. package/src/components/PhotoViewer/examples/SimpleGallery.tsx +1 -1
  167. package/src/components/PhotoViewer/index.ts +2 -1
  168. package/src/components/PhotoViewer/scripts/bundle.ts +2 -9
  169. package/src/components/Popover/Popover.tsx +8 -13
  170. package/src/components/Popover/scripts/index.ts +6 -1
  171. package/src/components/ProductReview/ProductReview.tsx +6 -30
  172. package/src/components/ProductReview/index.ts +2 -1
  173. package/src/components/Progress/Progress.tsx +1 -8
  174. package/src/components/Rating/Rating.tsx +3 -25
  175. package/src/components/Rating/scripts/ratingInteractions.ts +3 -3
  176. package/src/components/River/River.tsx +4 -9
  177. package/src/components/SectionIntro/SectionIntro.tsx +3 -10
  178. package/src/components/SectionIntro/index.ts +1 -2
  179. package/src/components/Spinner/Spinner.tsx +2 -6
  180. package/src/components/Steps/Steps.tsx +5 -12
  181. package/src/components/Steps/index.ts +1 -2
  182. package/src/components/Tab/Tab.tsx +4 -10
  183. package/src/components/Testimonial/Testimonial.tsx +4 -10
  184. package/src/components/Testimonial/index.ts +1 -2
  185. package/src/components/Todo/Todo.tsx +4 -9
  186. package/src/components/Todo/scripts/bundle.ts +0 -7
  187. package/src/components/Toggle/Toggle.tsx +4 -10
  188. package/src/components/Toggle/scripts/bundle.ts +0 -7
  189. package/src/components/Tooltip/Tooltip.tsx +3 -10
  190. package/src/components/Tooltip/index.ts +1 -3
  191. package/src/components/Upload/Upload.tsx +9 -15
  192. package/src/components/Upload/index.ts +1 -2
  193. package/src/components/index.ts +44 -79
  194. package/src/docs/atomix-component-guidelines.mdx +0 -0
  195. package/src/index.ts +15 -12
  196. package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +2 -1
  197. package/src/layouts/MasonryGrid/MasonryGrid.tsx +5 -4
  198. package/src/lib/README.md +0 -0
  199. package/src/lib/composables/useDropdown.ts +3 -3
  200. package/src/lib/composables/useNavbar.ts +1 -1
  201. package/src/lib/composables/usePhotoViewer.ts +7 -5
  202. package/src/lib/composables/usePopover.ts +15 -15
  203. package/src/styles/01-settings/_settings.typography.scss +6 -3
  204. package/src/styles/03-generic/_generic.fonts.scss +20 -17
  205. package/css.d.ts +0 -10
  206. package/dist/css/atomix.min.css +0 -6
  207. package/dist/css/atomix.min.css.map +0 -1
  208. package/dist/fonts/0120456a11178b96ab66.woff +0 -0
  209. package/dist/fonts/0368bc04e1a895283091.woff +0 -0
  210. package/dist/fonts/0c5c9ce9dec531aa6b29.ttf +0 -0
  211. package/dist/fonts/0f355f1a3d693807d51c.ttf +0 -0
  212. package/dist/fonts/1ec349085efa62caa303.woff2 +0 -0
  213. package/dist/fonts/20ab2fe497fc18409e34.woff +0 -0
  214. package/dist/fonts/253918dde62b7326497e.woff +0 -0
  215. package/dist/fonts/285bdad411fbc4cec20d.ttf +0 -0
  216. package/dist/fonts/2f638dd07520c36c8d6e.woff +0 -0
  217. package/dist/fonts/30c9e80ac7b5699e21cc.woff2 +0 -0
  218. package/dist/fonts/33311918c95bc02cfcb1.woff +0 -0
  219. package/dist/fonts/35321e45ab1847c10daa.ttf +0 -0
  220. package/dist/fonts/3d2344627a22c58c9273.woff +0 -0
  221. package/dist/fonts/413b33b6d0cbd31f8714.woff2 +0 -0
  222. package/dist/fonts/4cb90386814103ea6b7f.woff2 +0 -0
  223. package/dist/fonts/4ee1c663781c9449f03f.woff2 +0 -0
  224. package/dist/fonts/4f4da6c0a5ff8b4ed6c6.eot +0 -0
  225. package/dist/fonts/576bbf31cdb2297b27b2.ttf +0 -0
  226. package/dist/fonts/585df04788e75f68f0af.eot +0 -0
  227. package/dist/fonts/5b5bd27f87c5700e93ad.ttf +0 -0
  228. package/dist/fonts/5bb2f179b9eb3479b077.eot +0 -0
  229. package/dist/fonts/5ff5446a28faf327d927.woff +0 -0
  230. package/dist/fonts/6192a85735f85ab06ed3.eot +0 -0
  231. package/dist/fonts/61f88f014cff75e8080e.woff2 +0 -0
  232. package/dist/fonts/6425aa0b60538ee25c68.woff +0 -0
  233. package/dist/fonts/6751f7983394e890189f.eot +0 -0
  234. package/dist/fonts/6960ee84f2d467663c34.ttf +0 -0
  235. package/dist/fonts/70685e4ff0b8497285e5.woff2 +0 -0
  236. package/dist/fonts/757b7e91c3555d312bbc.woff +0 -0
  237. package/dist/fonts/7a4ea74d7f43e6ad17d8.eot +0 -0
  238. package/dist/fonts/8109c3cad37ea32e4d32.ttf +0 -0
  239. package/dist/fonts/82a7a6000e2c2ab2ec5c.woff2 +0 -0
  240. package/dist/fonts/83ef74d7fa1b36b3afd2.ttf +0 -0
  241. package/dist/fonts/877cf3e897d614d4e5cf.ttf +0 -0
  242. package/dist/fonts/88bb1a07aeaed7b24844.eot +0 -0
  243. package/dist/fonts/9393172982d357731e53.eot +0 -0
  244. package/dist/fonts/945eac608d80a8166c05.eot +0 -0
  245. package/dist/fonts/9b837d45dc4c53f310f4.woff2 +0 -0
  246. package/dist/fonts/a5dbd3668c70794eda4d.ttf +0 -0
  247. package/dist/fonts/a74f60429e1436a0a540.woff +0 -0
  248. package/dist/fonts/bbc297fd58abb3c9f79a.ttf +0 -0
  249. package/dist/fonts/bbefaa1b3e495e24cae7.woff2 +0 -0
  250. package/dist/fonts/c0c00fe55a6c5b4bdcc3.ttf +0 -0
  251. package/dist/fonts/c7508e4a1d238d320671.woff2 +0 -0
  252. package/dist/fonts/cb9059c1418f52b5cfb2.woff +0 -0
  253. package/dist/fonts/d11e8912a7532aae2979.eot +0 -0
  254. package/dist/fonts/d852d165ab8f7b51e9d9.woff +0 -0
  255. package/dist/fonts/de48437d7037bf4c1dd1.eot +0 -0
  256. package/dist/fonts/df470b39be2d4a1f1ce1.woff +0 -0
  257. package/dist/fonts/f2af4f9e9e7805d25995.woff2 +0 -0
  258. package/dist/fonts/f79a05c25b9f6148e22c.eot +0 -0
  259. package/dist/fonts/fcaafb0a12fec09b1f45.woff2 +0 -0
  260. package/dist/fonts/fcefb320a4d49f66bb12.eot +0 -0
  261. package/dist/fonts/fd66d70b84764f279e6a.ttf +0 -0
  262. package/dist/fonts/fdf78119a6d3da284d71.woff2 +0 -0
  263. package/dist/fonts/ff75ad5d1cd4cbfb2485.eot +0 -0
  264. package/dist/js/202.atomix.react.cjs.js +0 -2
  265. package/dist/js/202.atomix.react.cjs.js.map +0 -1
  266. package/dist/js/202.atomix.react.esm.js +0 -2
  267. package/dist/js/202.atomix.react.esm.js.map +0 -1
  268. package/dist/js/202.atomix.react.js +0 -2
  269. package/dist/js/202.atomix.react.js.map +0 -1
  270. package/dist/js/308.atomix.react.cjs.js +0 -2
  271. package/dist/js/308.atomix.react.cjs.js.map +0 -1
  272. package/dist/js/308.atomix.react.esm.js +0 -2
  273. package/dist/js/308.atomix.react.esm.js.map +0 -1
  274. package/dist/js/308.atomix.react.js +0 -2
  275. package/dist/js/308.atomix.react.js.map +0 -1
  276. package/dist/js/34.atomix.react.cjs.js +0 -2
  277. package/dist/js/34.atomix.react.cjs.js.map +0 -1
  278. package/dist/js/34.atomix.react.esm.js +0 -2
  279. package/dist/js/34.atomix.react.esm.js.map +0 -1
  280. package/dist/js/34.atomix.react.js +0 -2
  281. package/dist/js/34.atomix.react.js.map +0 -1
  282. package/dist/js/471.atomix.react.cjs.js +0 -2
  283. package/dist/js/471.atomix.react.cjs.js.map +0 -1
  284. package/dist/js/471.atomix.react.esm.js +0 -2
  285. package/dist/js/471.atomix.react.esm.js.map +0 -1
  286. package/dist/js/471.atomix.react.js +0 -2
  287. package/dist/js/471.atomix.react.js.map +0 -1
  288. package/dist/js/54.atomix.react.cjs.js +0 -2
  289. package/dist/js/54.atomix.react.cjs.js.map +0 -1
  290. package/dist/js/54.atomix.react.esm.js +0 -2
  291. package/dist/js/54.atomix.react.esm.js.map +0 -1
  292. package/dist/js/54.atomix.react.js +0 -2
  293. package/dist/js/54.atomix.react.js.map +0 -1
  294. package/dist/js/619.atomix.react.cjs.js +0 -2
  295. package/dist/js/619.atomix.react.cjs.js.map +0 -1
  296. package/dist/js/619.atomix.react.esm.js +0 -2
  297. package/dist/js/619.atomix.react.esm.js.map +0 -1
  298. package/dist/js/619.atomix.react.js +0 -2
  299. package/dist/js/619.atomix.react.js.map +0 -1
  300. package/dist/js/690.atomix.react.cjs.js +0 -2
  301. package/dist/js/690.atomix.react.cjs.js.map +0 -1
  302. package/dist/js/690.atomix.react.esm.js +0 -2
  303. package/dist/js/690.atomix.react.esm.js.map +0 -1
  304. package/dist/js/690.atomix.react.js +0 -2
  305. package/dist/js/690.atomix.react.js.map +0 -1
  306. package/dist/js/894.atomix.react.cjs.js +0 -2
  307. package/dist/js/894.atomix.react.esm.js +0 -2
  308. package/dist/js/894.atomix.react.esm.js.map +0 -1
  309. package/dist/js/894.atomix.react.js +0 -2
  310. package/dist/js/894.atomix.react.js.map +0 -1
  311. package/dist/js/897.atomix.react.cjs.js +0 -2
  312. package/dist/js/897.atomix.react.cjs.js.map +0 -1
  313. package/dist/js/897.atomix.react.esm.js +0 -2
  314. package/dist/js/897.atomix.react.esm.js.map +0 -1
  315. package/dist/js/897.atomix.react.js +0 -2
  316. package/dist/js/897.atomix.react.js.map +0 -1
  317. package/dist/js/atomix.react.cjs.js +0 -2
  318. package/dist/js/atomix.react.cjs.js.map +0 -1
  319. package/dist/js/atomix.react.js +0 -2
  320. package/dist/js/atomix.react.js.map +0 -1
  321. package/dist/js/main.js +0 -0
  322. package/dist/js/minified.js +0 -0
  323. package/dist/types/components/Accordion/scripts/accordionInteractions.d.ts +0 -19
  324. package/dist/types/components/Accordion/scripts/index.d.ts +0 -100
  325. package/dist/types/components/Avatar/scripts/index.d.ts +0 -105
  326. package/dist/types/components/Breadcrumb/scripts/breadcrumb.d.ts +0 -43
  327. package/dist/types/components/Breadcrumb/scripts/index.d.ts +0 -4
  328. package/dist/types/components/Button/scripts/buttonInteractions.d.ts +0 -20
  329. package/dist/types/components/Button/scripts/index.d.ts +0 -1
  330. package/dist/types/components/Card/scripts/index.d.ts +0 -80
  331. package/dist/types/components/Countdown/scripts/index.d.ts +0 -71
  332. package/dist/types/components/DataTable/scripts/index.d.ts +0 -174
  333. package/dist/types/components/DatePicker/scripts/componentInteractions.d.ts +0 -28
  334. package/dist/types/components/DatePicker/scripts/index.d.ts +0 -153
  335. package/dist/types/components/Dropdown/scripts/componentInteractions.d.ts +0 -26
  336. package/dist/types/components/Dropdown/scripts/index.d.ts +0 -114
  337. package/dist/types/components/EdgePanel/scripts/edgePanelInteractions.d.ts +0 -35
  338. package/dist/types/components/EdgePanel/scripts/index.d.ts +0 -126
  339. package/dist/types/components/Hero/scripts/heroInteractions.d.ts +0 -29
  340. package/dist/types/components/Hero/scripts/index.d.ts +0 -47
  341. package/dist/types/components/Modal/scripts/index.d.ts +0 -83
  342. package/dist/types/components/Modal/scripts/modalInteractions.d.ts +0 -28
  343. package/dist/types/components/Pagination/scripts/index.d.ts +0 -52
  344. package/dist/types/components/ProductReview/scripts/bundle.d.ts +0 -2
  345. package/dist/types/components/ProductReview/scripts/componentInteractions.d.ts +0 -43
  346. package/dist/types/components/Rating/scripts/bundle.d.ts +0 -3
  347. package/dist/types/components/Rating/scripts/index.d.ts +0 -74
  348. package/dist/types/components/Rating/scripts/ratingInteractions.d.ts +0 -28
  349. package/dist/types/components/Todo/scripts/index.d.ts +0 -115
  350. package/dist/types/components/Todo/scripts/todoInteractions.d.ts +0 -38
  351. package/dist/types/components/Tooltip/scripts/tooltipInteractions.d.ts +0 -23
  352. package/dist/types/htmlComponentsEntry.d.ts +0 -160
  353. package/src/components/Badge/index.tsx +0 -2
@@ -1,43 +0,0 @@
1
- /**
2
- * Class for handling ProductReview component interactions
3
- */
4
- export default class ProductReview {
5
- element: HTMLElement;
6
- options: any;
7
- ratingElement: HTMLElement | null;
8
- textareaElement: HTMLElement | null;
9
- submitButton: HTMLElement | null;
10
- formElement: HTMLFormElement | null;
11
- onSubmit: ((rating: number, comment: string) => void) | null;
12
- /**
13
- * Create a new ProductReview instance
14
- * @param element - The product review container element
15
- * @param options - Configuration options
16
- */
17
- constructor(element: HTMLElement, options?: any);
18
- /**
19
- * Initialize the product review component
20
- */
21
- init(): void;
22
- /**
23
- * Set up accessibility features
24
- */
25
- setupAccessibility(): void;
26
- /**
27
- * Handle form submission
28
- * @param e - Submit event
29
- */
30
- handleSubmit(e: Event): void;
31
- /**
32
- * Show the success state after submission
33
- */
34
- showSuccessState(): void;
35
- /**
36
- * Reset the form
37
- */
38
- reset(): void;
39
- /**
40
- * Clean up event listeners
41
- */
42
- destroy(): void;
43
- }
@@ -1,3 +0,0 @@
1
- import Rating from './index';
2
- import { initFromDataAttributes, getInstance, disposeAll, enhanceWithKeyboardNavigation } from './ratingInteractions';
3
- export { Rating as default, initFromDataAttributes, getInstance, disposeAll, enhanceWithKeyboardNavigation };
@@ -1,74 +0,0 @@
1
- import type { RatingProps } from '../../../lib/types/components';
2
- /**
3
- * Rating component class for vanilla JavaScript implementation
4
- */
5
- export type RatingOptions = Pick<RatingProps, 'value' | 'defaultValue' | 'maxValue' | 'allowHalf' | 'readOnly' | 'size' | 'color' | 'onChange'>;
6
- /**
7
- * Rating component class for vanilla JavaScript implementation
8
- */
9
- export default class Rating {
10
- element: HTMLElement;
11
- options: RatingOptions;
12
- stars: NodeListOf<HTMLElement> | null;
13
- private _currentValue;
14
- private _boundHandleMouseEnter;
15
- private _boundHandleMouseLeave;
16
- private _boundHandleClick;
17
- private _boundHandleKeyDown;
18
- /**
19
- * Create a new Rating instance
20
- * @param element - The element to attach the rating to
21
- * @param options - Configuration options
22
- */
23
- constructor(element: string | HTMLElement, options?: RatingOptions);
24
- /**
25
- * Initialize the component
26
- */
27
- private _init;
28
- /**
29
- * Bind event listeners
30
- */
31
- private _bindEvents;
32
- /**
33
- * Handle mouse enter on a star
34
- */
35
- private _handleMouseEnter;
36
- /**
37
- * Handle mouse leave from rating component
38
- */
39
- private _handleMouseLeave;
40
- /**
41
- * Handle click on a star
42
- */
43
- private _handleClick;
44
- /**
45
- * Handle keyboard navigation
46
- */
47
- private _handleKeyDown;
48
- /**
49
- * Update star appearance based on current value
50
- */
51
- private _updateStars;
52
- /**
53
- * Temporarily highlight stars up to a value
54
- */
55
- private _highlightStars;
56
- /**
57
- * Get current rating value
58
- */
59
- getValue(): number;
60
- /**
61
- * Set the rating value
62
- * @param value - The new rating value
63
- */
64
- setValue(value: number): void;
65
- /**
66
- * Update component options
67
- * @param options Partial options to update
68
- */
69
- updateOptions(options: Partial<RatingOptions>): void;
70
- /**
71
- * Destroy the rating component and remove event listeners
72
- */
73
- destroy(): void;
74
- }
@@ -1,28 +0,0 @@
1
- import Rating from './index';
2
- /**
3
- * Event handlers and utility functions for Rating component
4
- */
5
- /**
6
- * Handle keyboard navigation for rating stars
7
- * @param event Keyboard event
8
- * @param container Rating container element
9
- */
10
- export declare function handleKeyboardNavigation(event: KeyboardEvent, container: HTMLElement): void;
11
- /**
12
- * Enhance a rating with keyboard navigation
13
- * @param rating Rating instance
14
- */
15
- export declare function enhanceWithKeyboardNavigation(rating: Rating): void;
16
- /**
17
- * Initialize ratings with data attributes
18
- */
19
- export declare function initFromDataAttributes(): Rating[];
20
- /**
21
- * Get a Rating instance from an element
22
- * @param element Element or selector
23
- */
24
- export declare function getInstance(element: string | HTMLElement): Rating | null;
25
- /**
26
- * Dispose all Rating instances
27
- */
28
- export declare function disposeAll(): void;
@@ -1,115 +0,0 @@
1
- import type { TodoItem } from './types';
2
- export type { TodoItem };
3
- export { useTodo } from '../../../lib/composables/useTodo';
4
- /**
5
- * TodoOptions interface for the vanilla JS implementation
6
- */
7
- export interface TodoOptions {
8
- title?: string;
9
- items?: TodoItem[];
10
- placeholder?: string;
11
- size?: 'sm' | 'md' | 'lg';
12
- showCompleted?: boolean;
13
- disabled?: boolean;
14
- onAddTodo?: (text: string) => void;
15
- onToggleTodo?: (id: string) => void;
16
- onDeleteTodo?: (id: string) => void;
17
- }
18
- /**
19
- * TodoEvents for custom event types
20
- */
21
- export declare enum TodoEvents {
22
- ADD = "todo:add",
23
- TOGGLE = "todo:toggle",
24
- DELETE = "todo:delete"
25
- }
26
- /**
27
- * Todo Class - Vanilla JS implementation
28
- */
29
- export declare class Todo {
30
- private static defaults;
31
- private element;
32
- private listElement;
33
- private formElement;
34
- private inputElement;
35
- private options;
36
- private items;
37
- /**
38
- * Constructor
39
- * @param element - DOM element or selector
40
- * @param options - Configuration options
41
- */
42
- constructor(element: string | HTMLElement, options?: TodoOptions);
43
- /**
44
- * Initialize the component
45
- * @private
46
- */
47
- private _initialize;
48
- /**
49
- * Create component structure
50
- * @private
51
- */
52
- private _createStructure;
53
- /**
54
- * Bind event listeners
55
- * @private
56
- */
57
- private _bindEvents;
58
- /**
59
- * Handle form submission
60
- * @private
61
- */
62
- private _handleSubmit;
63
- /**
64
- * Handle item toggle
65
- * @private
66
- */
67
- private _handleToggle;
68
- /**
69
- * Handle item deletion
70
- * @private
71
- */
72
- private _handleDelete;
73
- /**
74
- * Render todo items
75
- * @private
76
- */
77
- private _renderItems;
78
- /**
79
- * Add a new todo item
80
- * @param text - Todo text
81
- * @returns The new todo item or null if failed
82
- */
83
- addTodo(text: string): TodoItem | null;
84
- /**
85
- * Toggle a todo item's completed state
86
- * @param id - Todo item ID
87
- * @returns The toggled todo item or null if not found
88
- */
89
- toggleTodo(id: string): TodoItem | null;
90
- /**
91
- * Delete a todo item
92
- * @param id - Todo item ID
93
- * @returns Whether the item was deleted
94
- */
95
- deleteTodo(id: string): boolean;
96
- /**
97
- * Update todo items
98
- * @param items - New todo items
99
- */
100
- updateItems(items: TodoItem[]): void;
101
- /**
102
- * Update component options
103
- * @param options - New options
104
- */
105
- update(options: Partial<TodoOptions>): void;
106
- /**
107
- * Clean up event listeners
108
- */
109
- destroy(): void;
110
- /**
111
- * Initialize all Todo components in the document
112
- */
113
- static initializeAll(): void;
114
- }
115
- export * from './todoInteractions';
@@ -1,38 +0,0 @@
1
- import { Todo } from './index';
2
- import { TodoItem } from './types';
3
- /**
4
- * Apply hover effect to todo items
5
- * @param todoItem - Todo item element
6
- */
7
- export declare function applyHoverEffect(todoItem: HTMLElement): void;
8
- /**
9
- * Apply focus effect to todo input
10
- * @param input - Todo input element
11
- */
12
- export declare function applyFocusEffect(input: HTMLInputElement): void;
13
- /**
14
- * Initialize a single todo item with event listeners
15
- * @param item - Todo item element
16
- * @param id - Todo item ID
17
- * @param onToggle - Toggle callback
18
- * @param onDelete - Delete callback
19
- */
20
- export declare function initializeTodoItem(item: HTMLElement, id: string, onToggle?: (id: string) => void, onDelete?: (id: string) => void): void;
21
- /**
22
- * Initialize all todos on the page
23
- * @returns Array of todo instances
24
- */
25
- export declare function initializeAllTodos(selector?: string): Todo[];
26
- /**
27
- * Filter todo items by completion status
28
- * @param items - Todo items array
29
- * @param showCompleted - Whether to include completed items
30
- * @returns Filtered todo items
31
- */
32
- export declare function filterTodoItems(items: TodoItem[], showCompleted: boolean): TodoItem[];
33
- /**
34
- * Sort todo items by completion status and creation time
35
- * @param items - Todo items array
36
- * @returns Sorted todo items
37
- */
38
- export declare function sortTodoItems(items: TodoItem[]): TodoItem[];
@@ -1,23 +0,0 @@
1
- import { Tooltip } from './index';
2
- /**
3
- * Calculate the best position for a tooltip based on available space
4
- * @param triggerElement - The trigger element
5
- * @param tooltipElement - The tooltip element
6
- * @param preferredPosition - The preferred position
7
- * @returns The best position to use
8
- */
9
- export declare function calculateBestPosition(triggerElement: HTMLElement, tooltipElement: HTMLElement, preferredPosition?: string): string;
10
- /**
11
- * Position the tooltip relative to its trigger with smart positioning
12
- * @param tooltipElement - The tooltip element
13
- * @param triggerElement - The trigger element
14
- * @param position - The desired position
15
- * @param offset - Distance from trigger in pixels
16
- */
17
- export declare function positionTooltip(tooltipElement: HTMLElement, triggerElement: HTMLElement, position?: string, offset?: number): void;
18
- /**
19
- * Initialize tooltips with custom behavior
20
- * @param selector - CSS selector for tooltip elements
21
- * @param options - Custom options
22
- */
23
- export declare function initializeTooltipsWithCustomBehavior(selector?: string, options?: {}): Tooltip[];
@@ -1,160 +0,0 @@
1
- import { initializeButton } from './components/Button/scripts';
2
- import { initializeAccordionsWithCustomBehavior } from './components/Accordion/scripts';
3
- import { initializeTooltipsWithCustomBehavior } from './components/Tooltip/scripts/tooltipInteractions';
4
- import { initializeToggles } from './components/Toggle/scripts';
5
- import { initializeTabs } from './components/Tab/scripts';
6
- import { initializeSteps } from './components/Steps/scripts';
7
- import { initializeTestimonials } from './components/Testimonial/scripts';
8
- import { initializeRivers } from './components/River/scripts';
9
- import { initializeUploads } from './components/Upload/scripts';
10
- import { initializeEdgePanelsWithCustomBehavior } from './components/EdgePanel/scripts/edgePanelInteractions';
11
- import { initializeModals } from './components/Modal/scripts/index';
12
- import { initializeHeroesWithCustomBehavior } from './components/Hero/scripts/heroInteractions';
13
- import { Avatar } from './components/Avatar/scripts';
14
- import Breadcrumb from './components/Breadcrumb/scripts';
15
- import Card from './components/Card/scripts';
16
- import Countdown from './components/Countdown/scripts';
17
- import { Todo } from './components/Todo/scripts';
18
- import Pagination from './components/Pagination/scripts';
19
- import { DataTable } from './components/DataTable/scripts';
20
- import { initFromDataAttributes as initializeDatePickers } from './components/DatePicker/scripts/componentInteractions';
21
- /**
22
- * Initialize all Button components in the document
23
- */
24
- declare function initializeButtons(): void;
25
- /**
26
- * Initialize all Accordion components in the document
27
- */
28
- declare function initializeAccordions(): void;
29
- /**
30
- * Initialize all Tooltip components in the document
31
- */
32
- declare function initializeTooltips(): void;
33
- /**
34
- * Initialize all Toggle components in the document
35
- */
36
- declare function initializeToggleComponents(): void;
37
- /**
38
- * Initialize all Tab components in the document
39
- */
40
- declare function initializeTabComponents(): void;
41
- /**
42
- * Initialize all Steps components in the document
43
- */
44
- declare function initializeStepComponents(): void;
45
- /**
46
- * Initialize all Testimonial components in the document
47
- */
48
- declare function initializeTestimonialComponents(): void;
49
- /**
50
- * Initialize all River components in the document
51
- */
52
- declare function initializeRiverComponents(): void;
53
- /**
54
- * Initialize all Upload components in the document
55
- */
56
- declare function initializeUploadComponents(): void;
57
- /**
58
- * Initialize all EdgePanel components in the document
59
- */
60
- declare function initializeEdgePanels(): void;
61
- /**
62
- * Initialize all Modal components in the document
63
- */
64
- declare function initializeModalComponents(): void;
65
- /**
66
- * Initialize all Hero components in the document
67
- */
68
- declare function initializeHeroComponents(): void;
69
- /**
70
- * Initialize all DatePicker components in the document
71
- */
72
- declare function initializeDatePickerComponents(): void;
73
- /**
74
- * Initialize all components
75
- */
76
- declare function initializeComponents(): void;
77
- declare const Atomix: {
78
- Button: {
79
- init: typeof initializeButton;
80
- initializeAll: typeof initializeButtons;
81
- };
82
- Accordion: {
83
- init: typeof initializeAccordionsWithCustomBehavior;
84
- initializeAll: typeof initializeAccordions;
85
- };
86
- Tooltip: {
87
- init: typeof initializeTooltipsWithCustomBehavior;
88
- initializeAll: typeof initializeTooltips;
89
- };
90
- Toggle: {
91
- init: typeof initializeToggles;
92
- initializeAll: typeof initializeToggleComponents;
93
- };
94
- Tab: {
95
- init: typeof initializeTabs;
96
- initializeAll: typeof initializeTabComponents;
97
- };
98
- Steps: {
99
- init: typeof initializeSteps;
100
- initializeAll: typeof initializeStepComponents;
101
- };
102
- Testimonial: {
103
- init: typeof initializeTestimonials;
104
- initializeAll: typeof initializeTestimonialComponents;
105
- };
106
- River: {
107
- init: typeof initializeRivers;
108
- initializeAll: typeof initializeRiverComponents;
109
- };
110
- Upload: {
111
- init: typeof initializeUploads;
112
- initializeAll: typeof initializeUploadComponents;
113
- };
114
- EdgePanel: {
115
- init: typeof initializeEdgePanelsWithCustomBehavior;
116
- initializeAll: typeof initializeEdgePanels;
117
- };
118
- Modal: {
119
- init: typeof initializeModals;
120
- initializeAll: typeof initializeModalComponents;
121
- };
122
- Hero: {
123
- init: typeof initializeHeroesWithCustomBehavior;
124
- initializeAll: typeof initializeHeroComponents;
125
- };
126
- Avatar: {
127
- init: typeof Avatar.initializeAll;
128
- initializeAll: typeof Avatar.initializeAll;
129
- };
130
- Breadcrumb: {
131
- init: typeof Breadcrumb.initializeAll;
132
- initializeAll: typeof Breadcrumb.initializeAll;
133
- };
134
- Card: {
135
- init: typeof Card.initializeAll;
136
- initializeAll: typeof Card.initializeAll;
137
- };
138
- Countdown: {
139
- init: typeof Countdown.initializeAll;
140
- initializeAll: typeof Countdown.initializeAll;
141
- };
142
- Todo: {
143
- init: typeof Todo.initializeAll;
144
- initializeAll: typeof Todo.initializeAll;
145
- };
146
- Pagination: {
147
- init: typeof Pagination.initializeAll;
148
- initializeAll: typeof Pagination.initializeAll;
149
- };
150
- DataTable: {
151
- init: typeof DataTable.initializeAll;
152
- initializeAll: typeof DataTable.initializeAll;
153
- };
154
- DatePicker: {
155
- init: typeof initializeDatePickers;
156
- initializeAll: typeof initializeDatePickerComponents;
157
- };
158
- initializeAll: typeof initializeComponents;
159
- };
160
- export default Atomix;
@@ -1,2 +0,0 @@
1
- export { default as Badge } from "./Badge";
2
- export type { BadgeProps } from "./Badge";