@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,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 = React.createContext<{
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
- // Default export (primary)
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, { position, trigger, offset, delay });
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
- // Default export (primary)
194
- export default ProductReview;
195
-
196
- // Named export for compatibility
197
- export { ProductReview };
173
+ export default ProductReview;
@@ -1,2 +1,3 @@
1
- export { default, ProductReview } from './ProductReview';
1
+ export { ProductReview } from './ProductReview';
2
+ export { default } from './ProductReview';
2
3
  export type { ProductReviewProps } from './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
- import type { RatingOptions } from './index';
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, ReactNode } from 'react';
1
+ import React, { useRef, useEffect } from 'react';
2
2
  import { RIVER } from '../../lib/constants/components';
3
- import { useRiver, RiverProps, RiverContentColumn } from '../../lib/composables/useRiver';
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 };
@@ -1,4 +1,3 @@
1
1
  export { SectionIntro } from './SectionIntro';
2
2
  export type { SectionIntroProps } from './SectionIntro';
3
- export { default as default } from './SectionIntro';
4
- export { initializeSectionIntros } from './scripts';
3
+ export { default } from './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
- // Default export (primary)
158
- export default Steps;
159
-
160
- // Named export for compatibility
161
- export { Steps };
154
+ export default Steps;
@@ -1,4 +1,3 @@
1
1
  export { Steps } from './Steps';
2
2
  export type { StepsProps, StepItem } from './Steps';
3
- export { default as default } from './Steps';
4
- export { initializeSteps } from './scripts';
3
+ export { default } from './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,4 +1,3 @@
1
1
  export { Testimonial } from './Testimonial';
2
2
  export type { TestimonialProps, TestimonialAuthor } from './Testimonial';
3
- export { default as default } from './Testimonial';
4
- export { initializeTestimonials } from './scripts';
3
+ export { default } from './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
- // Default export (primary)
171
- export default Todo;
167
+ export type { TodoProps };
172
168
 
173
- // Named export for compatibility
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
- // Default export (primary)
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
- // Default export (primary)
99
- export default Tooltip;
100
-
101
- // Named export for compatibility
102
- export { Tooltip };
95
+ export default Tooltip;
@@ -1,5 +1,3 @@
1
1
  export { Tooltip } from "./Tooltip";
2
2
  export type { TooltipProps } from "./Tooltip";
3
-
4
- // Export Tooltip class for vanilla JS usage
5
- export { Tooltip as TooltipClass, initializeTooltips } from "./scripts";
3
+ export { default } from "./Tooltip";