@shohojdhara/atomix 0.1.30 → 0.2.1

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 (469) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/LICENSE +0 -0
  3. package/README.md +151 -39
  4. package/dist/atomix.css +13529 -0
  5. package/dist/atomix.min.css +15 -0
  6. package/dist/index.d.ts +6112 -1757
  7. package/dist/index.esm.js +16852 -8364
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +16892 -8369
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.min.js +1 -1
  12. package/dist/index.min.js.map +1 -1
  13. package/dist/themes/boomdevs.css +13241 -0
  14. package/dist/themes/boomdevs.min.css +353 -0
  15. package/dist/themes/esrar.css +15374 -0
  16. package/dist/themes/esrar.min.css +189 -0
  17. package/dist/themes/mashroom.css +28079 -0
  18. package/dist/themes/mashroom.min.css +403 -0
  19. package/dist/themes/shaj-default.css +14203 -0
  20. package/dist/themes/shaj-default.min.css +500 -0
  21. package/dist/themes/yabai.css +13711 -0
  22. package/dist/themes/yabai.min.css +189 -0
  23. package/package.json +126 -99
  24. package/src/components/Accordion/Accordion.stories.tsx +271 -0
  25. package/src/components/Accordion/Accordion.tsx +131 -0
  26. package/src/components/Accordion/index.ts +3 -0
  27. package/src/components/AtomixLogo/AtomixLogo.tsx +36 -0
  28. package/src/components/AtomixLogo/index.ts +3 -0
  29. package/src/components/AtomixLogo.tsx +40 -0
  30. package/src/components/Avatar/Avatar.stories.tsx +257 -0
  31. package/src/components/Avatar/Avatar.tsx +68 -0
  32. package/src/components/Avatar/AvatarGroup.tsx +73 -0
  33. package/src/components/Avatar/index.ts +3 -0
  34. package/src/components/Badge/Badge.stories.tsx +371 -0
  35. package/src/components/Badge/Badge.tsx +39 -0
  36. package/src/components/Badge/index.ts +3 -0
  37. package/src/components/Block/Block.stories.tsx +408 -0
  38. package/src/components/Block/Block.tsx +137 -0
  39. package/src/components/Block/index.ts +1 -0
  40. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +106 -0
  41. package/src/components/Breadcrumb/Breadcrumb.tsx +112 -0
  42. package/src/components/Breadcrumb/index.ts +3 -0
  43. package/src/components/Button/Button.stories.tsx +312 -0
  44. package/src/components/Button/Button.tsx +69 -0
  45. package/src/components/Button/index.ts +3 -0
  46. package/src/components/Callout/Callout.stories.tsx +588 -0
  47. package/src/components/Callout/Callout.tsx +78 -0
  48. package/src/components/Callout/index.ts +1 -0
  49. package/src/components/Card/Card.stories.tsx +105 -0
  50. package/src/components/Card/Card.tsx +69 -0
  51. package/src/components/Card/ElevationCard.tsx +47 -0
  52. package/src/components/Card/index.ts +15 -0
  53. package/src/components/Chart/AdvancedChart.tsx +624 -0
  54. package/src/components/Chart/AnimatedChart.tsx +206 -0
  55. package/src/components/Chart/AreaChart.tsx +27 -0
  56. package/src/components/Chart/BarChart.tsx +148 -0
  57. package/src/components/Chart/BubbleChart.tsx +411 -0
  58. package/src/components/Chart/CandlestickChart.tsx +765 -0
  59. package/src/components/Chart/Chart.stories.tsx +527 -0
  60. package/src/components/Chart/Chart.tsx +218 -0
  61. package/src/components/Chart/ChartRenderer.tsx +322 -0
  62. package/src/components/Chart/ChartToolbar.tsx +436 -0
  63. package/src/components/Chart/ChartTooltip.tsx +101 -0
  64. package/src/components/Chart/DonutChart.tsx +370 -0
  65. package/src/components/Chart/FunnelChart.tsx +393 -0
  66. package/src/components/Chart/GaugeChart.tsx +550 -0
  67. package/src/components/Chart/HeatmapChart.tsx +614 -0
  68. package/src/components/Chart/LineChart.tsx +172 -0
  69. package/src/components/Chart/LineChartNew.tsx +167 -0
  70. package/src/components/Chart/MultiAxisChart.tsx +498 -0
  71. package/src/components/Chart/PieChart.tsx +103 -0
  72. package/src/components/Chart/RadarChart.tsx +332 -0
  73. package/src/components/Chart/RealTimeChart.tsx +436 -0
  74. package/src/components/Chart/ScatterChart.tsx +152 -0
  75. package/src/components/Chart/TreemapChart.tsx +574 -0
  76. package/src/components/Chart/WaterfallChart.tsx +450 -0
  77. package/src/components/Chart/index.ts +119 -0
  78. package/src/components/Chart/types.ts +338 -0
  79. package/src/components/ColorModeToggle/ColorModeToggle.stories.tsx +44 -0
  80. package/src/components/ColorModeToggle/ColorModeToggle.tsx +85 -0
  81. package/src/components/ColorModeToggle/index.ts +2 -0
  82. package/src/components/Countdown/Countdown.stories.tsx +46 -0
  83. package/src/components/Countdown/Countdown.tsx +90 -0
  84. package/src/components/Countdown/index.ts +2 -0
  85. package/src/components/DataTable/DataTable.stories.tsx +248 -0
  86. package/src/components/DataTable/DataTable.tsx +213 -0
  87. package/src/components/DataTable/index.ts +3 -0
  88. package/src/components/DatePicker/DatePicker.stories.tsx +364 -0
  89. package/src/components/DatePicker/DatePicker.tsx +504 -0
  90. package/src/components/DatePicker/index.ts +4 -0
  91. package/src/components/DatePicker/readme.md +106 -0
  92. package/src/components/DatePicker/types.ts +167 -0
  93. package/src/components/DatePicker/utils.ts +185 -0
  94. package/src/components/Dropdown/Dropdown.stories.tsx +358 -0
  95. package/src/components/Dropdown/Dropdown.tsx +352 -0
  96. package/src/components/Dropdown/index.ts +14 -0
  97. package/src/components/Dropdown/readme.md +151 -0
  98. package/src/components/EdgePanel/EdgePanel.stories.tsx +266 -0
  99. package/src/components/EdgePanel/EdgePanel.tsx +73 -0
  100. package/src/components/EdgePanel/index.ts +1 -0
  101. package/src/components/Form/Checkbox.stories.tsx +76 -0
  102. package/src/components/Form/Checkbox.tsx +69 -0
  103. package/src/components/Form/Form.stories.tsx +497 -0
  104. package/src/components/Form/Form.tsx +46 -0
  105. package/src/components/Form/FormGroup.stories.tsx +162 -0
  106. package/src/components/Form/FormGroup.tsx +53 -0
  107. package/src/components/Form/Input.stories.tsx +106 -0
  108. package/src/components/Form/Input.tsx +87 -0
  109. package/src/components/Form/Radio.stories.tsx +94 -0
  110. package/src/components/Form/Radio.tsx +65 -0
  111. package/src/components/Form/Select.stories.tsx +151 -0
  112. package/src/components/Form/Select.tsx +191 -0
  113. package/src/components/Form/Textarea.stories.tsx +123 -0
  114. package/src/components/Form/Textarea.tsx +78 -0
  115. package/src/components/Form/index.ts +7 -0
  116. package/src/components/Hero/Hero.stories.tsx +295 -0
  117. package/src/components/Hero/Hero.tsx +175 -0
  118. package/src/components/Hero/index.ts +6 -0
  119. package/src/components/Icon/Icon.tsx +87 -0
  120. package/src/components/Icon/index.ts +2 -0
  121. package/src/components/List/List.stories.tsx +122 -0
  122. package/src/components/List/List.tsx +35 -0
  123. package/src/components/List/ListGroup.tsx +35 -0
  124. package/src/components/List/index.ts +2 -0
  125. package/src/components/Messages/Messages.stories.tsx +160 -0
  126. package/src/components/Messages/Messages.tsx +172 -0
  127. package/src/components/Messages/index.ts +3 -0
  128. package/src/components/Modal/Modal.stories.tsx +284 -0
  129. package/src/components/Modal/Modal.tsx +198 -0
  130. package/src/components/Modal/README.md +169 -0
  131. package/src/components/Modal/index.ts +1 -0
  132. package/src/components/Navigation/Menu/MegaMenu.tsx +109 -0
  133. package/src/components/Navigation/Menu/Menu.stories.tsx +339 -0
  134. package/src/components/Navigation/Menu/Menu.tsx +111 -0
  135. package/src/components/Navigation/Nav/Nav.stories.tsx +456 -0
  136. package/src/components/Navigation/Nav/Nav.tsx +51 -0
  137. package/src/components/Navigation/Nav/NavDropdown.tsx +105 -0
  138. package/src/components/Navigation/Nav/NavItem.tsx +168 -0
  139. package/src/components/Navigation/Navbar/Navbar.stories.tsx +569 -0
  140. package/src/components/Navigation/Navbar/Navbar.tsx +150 -0
  141. package/src/components/Navigation/README.md +314 -0
  142. package/src/components/Navigation/SideMenu/SideMenu.README.md +494 -0
  143. package/src/components/Navigation/SideMenu/SideMenu.stories.tsx +609 -0
  144. package/src/components/Navigation/SideMenu/SideMenu.tsx +101 -0
  145. package/src/components/Navigation/SideMenu/SideMenuItem.tsx +103 -0
  146. package/src/components/Navigation/SideMenu/SideMenuList.tsx +41 -0
  147. package/src/components/Navigation/index.ts +23 -0
  148. package/src/components/Pagination/Pagination.stories.tsx +188 -0
  149. package/src/components/Pagination/Pagination.tsx +162 -0
  150. package/src/components/Pagination/index.ts +1 -0
  151. package/src/components/PhotoViewer/PhotoViewer.stories.tsx +397 -0
  152. package/src/components/PhotoViewer/PhotoViewer.tsx +246 -0
  153. package/src/components/PhotoViewer/PhotoViewerHeader.tsx +184 -0
  154. package/src/components/PhotoViewer/PhotoViewerImage.tsx +173 -0
  155. package/src/components/PhotoViewer/PhotoViewerInfo.tsx +91 -0
  156. package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +85 -0
  157. package/src/components/PhotoViewer/PhotoViewerThumbnails.tsx +63 -0
  158. package/src/components/PhotoViewer/README.md +358 -0
  159. package/src/components/PhotoViewer/examples/ImageGallery.tsx +187 -0
  160. package/src/components/PhotoViewer/examples/SimpleGallery.tsx +73 -0
  161. package/src/components/PhotoViewer/examples/index.ts +2 -0
  162. package/src/components/PhotoViewer/index.ts +14 -0
  163. package/src/components/Popover/Popover.stories.tsx +143 -0
  164. package/src/components/Popover/Popover.tsx +137 -0
  165. package/src/components/Popover/index.ts +5 -0
  166. package/src/components/Popover/readme.md +120 -0
  167. package/src/components/ProductReview/ProductReview.stories.tsx +88 -0
  168. package/src/components/ProductReview/ProductReview.tsx +169 -0
  169. package/src/components/ProductReview/index.ts +3 -0
  170. package/src/components/Progress/Progress.stories.tsx +75 -0
  171. package/src/components/Progress/Progress.tsx +45 -0
  172. package/src/components/Progress/index.ts +1 -0
  173. package/src/components/Rating/Rating.stories.tsx +109 -0
  174. package/src/components/Rating/Rating.tsx +286 -0
  175. package/src/components/Rating/index.ts +6 -0
  176. package/src/components/River/River.stories.tsx +230 -0
  177. package/src/components/River/River.tsx +134 -0
  178. package/src/components/River/index.ts +2 -0
  179. package/src/components/SectionIntro/SectionIntro.stories.tsx +143 -0
  180. package/src/components/SectionIntro/SectionIntro.tsx +184 -0
  181. package/src/components/SectionIntro/index.ts +3 -0
  182. package/src/components/Slider/Slider.stories.tsx +241 -0
  183. package/src/components/Slider/Slider.tsx +225 -0
  184. package/src/components/Slider/index.ts +24 -0
  185. package/src/components/Spinner/Spinner.stories.tsx +65 -0
  186. package/src/components/Spinner/Spinner.tsx +36 -0
  187. package/src/components/Spinner/index.ts +2 -0
  188. package/src/components/Steps/Steps.stories.tsx +158 -0
  189. package/src/components/Steps/Steps.tsx +115 -0
  190. package/src/components/Steps/index.ts +3 -0
  191. package/src/components/Tab/Tab.stories.tsx +129 -0
  192. package/src/components/Tab/Tab.tsx +111 -0
  193. package/src/components/Tab/index.ts +2 -0
  194. package/src/components/Testimonial/Testimonial.stories.tsx +180 -0
  195. package/src/components/Testimonial/Testimonial.tsx +138 -0
  196. package/src/components/Testimonial/index.ts +3 -0
  197. package/src/components/Todo/Todo.stories.tsx +103 -0
  198. package/src/components/Todo/Todo.tsx +158 -0
  199. package/src/components/Todo/index.ts +1 -0
  200. package/src/components/Toggle/Toggle.stories.tsx +49 -0
  201. package/src/components/Toggle/Toggle.tsx +84 -0
  202. package/src/components/Toggle/index.ts +2 -0
  203. package/src/components/Tooltip/Tooltip.stories.tsx +115 -0
  204. package/src/components/Tooltip/Tooltip.tsx +150 -0
  205. package/src/components/Tooltip/index.ts +3 -0
  206. package/src/components/Upload/Upload.stories.tsx +220 -0
  207. package/src/components/Upload/Upload.tsx +354 -0
  208. package/src/components/Upload/index.ts +3 -0
  209. package/src/components/VideoPlayer/VideoPlayer.stories.tsx +484 -0
  210. package/src/components/VideoPlayer/VideoPlayer.tsx +574 -0
  211. package/src/components/VideoPlayer/index.ts +7 -0
  212. package/src/components/index.ts +111 -0
  213. package/src/layouts/Grid/Container.tsx +58 -0
  214. package/src/layouts/Grid/Grid.stories.tsx +861 -0
  215. package/src/layouts/Grid/Grid.tsx +68 -0
  216. package/src/layouts/Grid/GridCol.tsx +161 -0
  217. package/src/layouts/Grid/README.md +108 -0
  218. package/src/layouts/Grid/Row.tsx +70 -0
  219. package/src/layouts/Grid/index.ts +8 -0
  220. package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +387 -0
  221. package/src/layouts/MasonryGrid/MasonryGrid.tsx +408 -0
  222. package/src/layouts/MasonryGrid/MasonryGridItem.tsx +44 -0
  223. package/src/layouts/MasonryGrid/README.md +117 -0
  224. package/src/layouts/MasonryGrid/index.ts +4 -0
  225. package/src/layouts/index.ts +7 -0
  226. package/src/lib/README.md +89 -0
  227. package/src/lib/composables/index.ts +63 -0
  228. package/src/lib/composables/useAccordion.ts +129 -0
  229. package/src/lib/composables/useAmbientMode.ts +90 -0
  230. package/src/lib/composables/useBadge.ts +42 -0
  231. package/src/lib/composables/useBarChart.ts +365 -0
  232. package/src/lib/composables/useBlock.ts +56 -0
  233. package/src/lib/composables/useBreadcrumb.ts +81 -0
  234. package/src/lib/composables/useButton.ts +59 -0
  235. package/src/lib/composables/useCallout.ts +55 -0
  236. package/src/lib/composables/useCard.ts +155 -0
  237. package/src/lib/composables/useChart.ts +1082 -0
  238. package/src/lib/composables/useChartAnalytics.ts +505 -0
  239. package/src/lib/composables/useChartData.ts +38 -0
  240. package/src/lib/composables/useChartExport.ts +392 -0
  241. package/src/lib/composables/useChartInteraction.ts +34 -0
  242. package/src/lib/composables/useChartInteractions.ts +123 -0
  243. package/src/lib/composables/useChartPerformance.ts +323 -0
  244. package/src/lib/composables/useChartScale.ts +48 -0
  245. package/src/lib/composables/useChartToolbar.ts +532 -0
  246. package/src/lib/composables/useCheckbox.ts +70 -0
  247. package/src/lib/composables/useDataTable.ts +208 -0
  248. package/src/lib/composables/useDatePicker.ts +564 -0
  249. package/src/lib/composables/useDropdown.ts +272 -0
  250. package/src/lib/composables/useEdgePanel.ts +261 -0
  251. package/src/lib/composables/useForm.ts +62 -0
  252. package/src/lib/composables/useFormGroup.ts +51 -0
  253. package/src/lib/composables/useHero.ts +250 -0
  254. package/src/lib/composables/useInput.ts +58 -0
  255. package/src/lib/composables/useLineChart.ts +319 -0
  256. package/src/lib/composables/useMessages.ts +77 -0
  257. package/src/lib/composables/useModal.ts +110 -0
  258. package/src/lib/composables/useNavbar.ts +288 -0
  259. package/src/lib/composables/usePagination.ts +101 -0
  260. package/src/lib/composables/usePhotoViewer.ts +937 -0
  261. package/src/lib/composables/usePieChart.ts +362 -0
  262. package/src/lib/composables/usePopover.ts +354 -0
  263. package/src/lib/composables/useProgress.ts +74 -0
  264. package/src/lib/composables/useRadio.ts +47 -0
  265. package/src/lib/composables/useRating.ts +174 -0
  266. package/src/lib/composables/useRiver.ts +205 -0
  267. package/src/lib/composables/useSelect.ts +52 -0
  268. package/src/lib/composables/useSideMenu.ts +197 -0
  269. package/src/lib/composables/useSlider.ts +339 -0
  270. package/src/lib/composables/useSpinner.ts +42 -0
  271. package/src/lib/composables/useTextarea.ts +55 -0
  272. package/src/lib/composables/useTodo.ts +141 -0
  273. package/src/lib/composables/useVideoPlayer.ts +398 -0
  274. package/src/lib/constants/components.ts +1433 -0
  275. package/src/lib/constants/index.ts +4 -0
  276. package/src/lib/index.ts +11 -0
  277. package/src/lib/types/components.ts +4750 -0
  278. package/src/lib/types/index.ts +2 -0
  279. package/src/lib/utils/dom.ts +41 -0
  280. package/src/lib/utils/icons.ts +74 -0
  281. package/src/lib/utils/index.ts +55 -0
  282. package/src/lib/utils/useForkRef.test.tsx +64 -0
  283. package/src/lib/utils/useForkRef.ts +36 -0
  284. package/src/lib/utils.test.ts +14 -0
  285. package/src/styles/01-settings/_index.scss +2 -0
  286. package/src/styles/01-settings/_settings.accordion.scss +7 -5
  287. package/src/styles/01-settings/_settings.animations.scss +0 -0
  288. package/src/styles/01-settings/_settings.avatar-group.scss +6 -3
  289. package/src/styles/01-settings/_settings.avatar.scss +2 -2
  290. package/src/styles/01-settings/_settings.badge.scss +15 -9
  291. package/src/styles/01-settings/_settings.block.scss +11 -0
  292. package/src/styles/01-settings/_settings.border-radius.scss +12 -9
  293. package/src/styles/01-settings/_settings.border.scss +4 -1
  294. package/src/styles/01-settings/_settings.box-shadow.scss +1 -1
  295. package/src/styles/01-settings/_settings.breadcrumb.scss +9 -8
  296. package/src/styles/01-settings/_settings.breakpoints.scss +0 -0
  297. package/src/styles/01-settings/_settings.btn-group.scss +4 -1
  298. package/src/styles/01-settings/_settings.button.scss +19 -21
  299. package/src/styles/01-settings/_settings.callout.scss +42 -24
  300. package/src/styles/01-settings/_settings.card.scss +12 -10
  301. package/src/styles/01-settings/_settings.chart.scss +199 -0
  302. package/src/styles/01-settings/_settings.checkbox-group.scss +0 -0
  303. package/src/styles/01-settings/_settings.checkbox.scss +0 -0
  304. package/src/styles/01-settings/_settings.color-mode.scss +0 -0
  305. package/src/styles/01-settings/_settings.colors.scss +20 -0
  306. package/src/styles/01-settings/_settings.config.scss +1 -1
  307. package/src/styles/01-settings/_settings.countdown.scss +0 -0
  308. package/src/styles/01-settings/_settings.data-table.scss +0 -0
  309. package/src/styles/01-settings/_settings.datepicker.scss +0 -0
  310. package/src/styles/01-settings/_settings.dropdown.scss +0 -0
  311. package/src/styles/01-settings/_settings.edge-panel.scss +0 -0
  312. package/src/styles/01-settings/_settings.fonts.scss +1 -1
  313. package/src/styles/01-settings/_settings.form-group.scss +0 -0
  314. package/src/styles/01-settings/_settings.form.scss +0 -0
  315. package/src/styles/01-settings/_settings.grid.scss +3 -3
  316. package/src/styles/01-settings/_settings.hero.scss +1 -1
  317. package/src/styles/01-settings/_settings.input.scss +1 -1
  318. package/src/styles/01-settings/_settings.link.scss +0 -0
  319. package/src/styles/01-settings/_settings.list-group.scss +0 -0
  320. package/src/styles/01-settings/_settings.list.scss +0 -0
  321. package/src/styles/01-settings/_settings.maps.scss +43 -8
  322. package/src/styles/01-settings/_settings.masonry-grid.scss +0 -0
  323. package/src/styles/01-settings/_settings.menu.scss +0 -0
  324. package/src/styles/01-settings/_settings.messages.scss +0 -0
  325. package/src/styles/01-settings/_settings.modal.scss +1 -1
  326. package/src/styles/01-settings/_settings.nav.scss +0 -0
  327. package/src/styles/01-settings/_settings.navbar.scss +0 -0
  328. package/src/styles/01-settings/_settings.pagination.scss +0 -0
  329. package/src/styles/01-settings/_settings.photoviewer.scss +89 -23
  330. package/src/styles/01-settings/_settings.popover.scss +0 -0
  331. package/src/styles/01-settings/_settings.position.scss +0 -0
  332. package/src/styles/01-settings/_settings.progress.scss +0 -0
  333. package/src/styles/01-settings/_settings.rating.scss +0 -0
  334. package/src/styles/01-settings/_settings.river.scss +0 -0
  335. package/src/styles/01-settings/_settings.sectionintro.scss +0 -0
  336. package/src/styles/01-settings/_settings.select.scss +0 -0
  337. package/src/styles/01-settings/_settings.side-menu.scss +0 -0
  338. package/src/styles/01-settings/_settings.skeleton.scss +0 -0
  339. package/src/styles/01-settings/_settings.slider.scss +59 -0
  340. package/src/styles/01-settings/_settings.spacing.scss +11 -3
  341. package/src/styles/01-settings/_settings.spinner.scss +0 -0
  342. package/src/styles/01-settings/_settings.steps.scss +1 -1
  343. package/src/styles/01-settings/_settings.tabs.scss +4 -4
  344. package/src/styles/01-settings/_settings.testimonials.scss +0 -0
  345. package/src/styles/01-settings/_settings.todo.scss +0 -0
  346. package/src/styles/01-settings/_settings.toggle.scss +1 -1
  347. package/src/styles/01-settings/_settings.tooltip.scss +0 -0
  348. package/src/styles/01-settings/_settings.typography.scss +2 -0
  349. package/src/styles/01-settings/_settings.upload.scss +0 -0
  350. package/src/styles/01-settings/_settings.video-player.scss +64 -0
  351. package/src/styles/01-settings/_settings.z-layers.scss +0 -0
  352. package/src/styles/02-tools/_index.scss +1 -0
  353. package/src/styles/02-tools/_tools.animations.scss +82 -0
  354. package/src/styles/02-tools/_tools.border-radius.scss +0 -0
  355. package/src/styles/02-tools/_tools.breakpoints.scss +0 -0
  356. package/src/styles/02-tools/_tools.button.scss +5 -0
  357. package/src/styles/02-tools/_tools.clearfix.scss +0 -0
  358. package/src/styles/02-tools/_tools.color-functions.scss +0 -0
  359. package/src/styles/02-tools/_tools.color-mode.scss +1 -1
  360. package/src/styles/02-tools/_tools.component.scss +479 -0
  361. package/src/styles/02-tools/_tools.event.scss +0 -0
  362. package/src/styles/02-tools/_tools.grid.scss +0 -0
  363. package/src/styles/02-tools/_tools.hidden-visually.scss +0 -0
  364. package/src/styles/02-tools/_tools.hidden.scss +0 -0
  365. package/src/styles/02-tools/_tools.map-loop.scss +0 -0
  366. package/src/styles/02-tools/_tools.media-queries.scss +0 -0
  367. package/src/styles/02-tools/_tools.object-fit.scss +0 -0
  368. package/src/styles/02-tools/_tools.placeholder.scss +0 -0
  369. package/src/styles/02-tools/_tools.rem.scss +5 -1
  370. package/src/styles/02-tools/_tools.size.scss +0 -0
  371. package/src/styles/02-tools/_tools.spacing.scss +0 -0
  372. package/src/styles/02-tools/_tools.to-rgb.scss +0 -0
  373. package/src/styles/02-tools/_tools.transition.scss +0 -0
  374. package/src/styles/02-tools/_tools.utilities.scss +0 -0
  375. package/src/styles/02-tools/_tools.utility-api.scss +23 -2
  376. package/src/styles/03-generic/_generic.fonts.scss +0 -0
  377. package/src/styles/03-generic/_generic.reset.scss +0 -0
  378. package/src/styles/03-generic/_generic.root.scss +5 -1
  379. package/src/styles/03-generic/_generic.selection.scss +0 -0
  380. package/src/styles/03-generic/_index.scss +0 -0
  381. package/src/styles/04-elements/_elements.all.scss +0 -0
  382. package/src/styles/04-elements/_elements.body.scss +0 -0
  383. package/src/styles/04-elements/_elements.heading.scss +0 -0
  384. package/src/styles/04-elements/_elements.html.scss +0 -0
  385. package/src/styles/04-elements/_elements.links.scss +0 -0
  386. package/src/styles/04-elements/_index.scss +0 -0
  387. package/src/styles/05-objects/_index.scss +1 -0
  388. package/src/styles/05-objects/_objects.block.scss +122 -0
  389. package/src/styles/05-objects/_objects.container.scss +14 -10
  390. package/src/styles/05-objects/_objects.grid.scss +0 -0
  391. package/src/styles/05-objects/_objects.masonry-grid.scss +0 -0
  392. package/src/styles/06-components/_components.accordion.scss +3 -1
  393. package/src/styles/06-components/_components.avatar-group.scss +0 -0
  394. package/src/styles/06-components/_components.avatar.scss +0 -0
  395. package/src/styles/06-components/_components.badge.scss +9 -9
  396. package/src/styles/06-components/_components.breadcrumb.scss +0 -0
  397. package/src/styles/06-components/_components.btn-group.scss +0 -0
  398. package/src/styles/06-components/_components.button.scss +0 -0
  399. package/src/styles/06-components/_components.callout.scss +2 -1
  400. package/src/styles/06-components/_components.card.scss +0 -1
  401. package/src/styles/06-components/_components.chart.scss +2102 -0
  402. package/src/styles/06-components/_components.checkbox-group.scss +0 -0
  403. package/src/styles/06-components/_components.checkbox.scss +0 -0
  404. package/src/styles/06-components/_components.color-mode-toggle.scss +0 -0
  405. package/src/styles/06-components/_components.countdown.scss +0 -0
  406. package/src/styles/06-components/_components.data-table.scss +0 -0
  407. package/src/styles/06-components/_components.datepicker.scss +0 -0
  408. package/src/styles/06-components/_components.dropdown.scss +0 -0
  409. package/src/styles/06-components/_components.edge-panel.scss +0 -0
  410. package/src/styles/06-components/_components.form-group.scss +0 -0
  411. package/src/styles/06-components/_components.form.scss +0 -0
  412. package/src/styles/06-components/_components.hero.scss +1 -0
  413. package/src/styles/06-components/_components.icon.scss +2 -2
  414. package/src/styles/06-components/_components.image-gallery.scss +0 -0
  415. package/src/styles/06-components/_components.input.scss +0 -0
  416. package/src/styles/06-components/_components.list-group.scss +0 -0
  417. package/src/styles/06-components/_components.list.scss +0 -0
  418. package/src/styles/06-components/_components.menu.scss +0 -0
  419. package/src/styles/06-components/_components.messages.scss +0 -0
  420. package/src/styles/06-components/_components.modal.scss +3 -0
  421. package/src/styles/06-components/_components.nav.scss +0 -0
  422. package/src/styles/06-components/_components.navbar.scss +0 -0
  423. package/src/styles/06-components/_components.pagination.scss +0 -0
  424. package/src/styles/06-components/_components.photoviewer.scss +603 -545
  425. package/src/styles/06-components/_components.popover.scss +0 -0
  426. package/src/styles/06-components/_components.product-review.scss +0 -0
  427. package/src/styles/06-components/_components.progress.scss +0 -0
  428. package/src/styles/06-components/_components.rating.scss +0 -0
  429. package/src/styles/06-components/_components.river.scss +0 -0
  430. package/src/styles/06-components/_components.sectionintro.scss +0 -0
  431. package/src/styles/06-components/_components.select.scss +0 -0
  432. package/src/styles/06-components/_components.side-menu.scss +0 -0
  433. package/src/styles/06-components/_components.skeleton.scss +0 -0
  434. package/src/styles/06-components/_components.slider.scss +273 -0
  435. package/src/styles/06-components/_components.spinner.scss +0 -0
  436. package/src/styles/06-components/_components.steps.scss +1 -0
  437. package/src/styles/06-components/_components.tabs.scss +0 -0
  438. package/src/styles/06-components/_components.testimonials.scss +0 -0
  439. package/src/styles/06-components/_components.todo.scss +0 -0
  440. package/src/styles/06-components/_components.toggle.scss +0 -0
  441. package/src/styles/06-components/_components.tooltip.scss +4 -9
  442. package/src/styles/06-components/_components.upload.scss +0 -0
  443. package/src/styles/06-components/_components.video-player.scss +623 -0
  444. package/src/styles/06-components/_index.scss +3 -0
  445. package/src/styles/06-components/old.chart.styles.scss +2819 -0
  446. package/src/styles/99-utilities/_index.scss +0 -0
  447. package/src/styles/99-utilities/_utilities.background.scss +0 -0
  448. package/src/styles/99-utilities/_utilities.border.scss +0 -0
  449. package/src/styles/99-utilities/_utilities.clearfix.scss +0 -0
  450. package/src/styles/99-utilities/_utilities.display.scss +0 -0
  451. package/src/styles/99-utilities/_utilities.flex.scss +0 -0
  452. package/src/styles/99-utilities/_utilities.link.scss +0 -0
  453. package/src/styles/99-utilities/_utilities.object-fit.scss +0 -0
  454. package/src/styles/99-utilities/_utilities.opacity.scss +0 -0
  455. package/src/styles/99-utilities/_utilities.overflow.scss +0 -0
  456. package/src/styles/99-utilities/_utilities.position.scss +0 -0
  457. package/src/styles/99-utilities/_utilities.scss +2 -1
  458. package/src/styles/99-utilities/_utilities.shadow.scss +0 -0
  459. package/src/styles/99-utilities/_utilities.sizes.scss +0 -0
  460. package/src/styles/99-utilities/_utilities.spacing.scss +0 -0
  461. package/src/styles/99-utilities/_utilities.text.scss +5 -0
  462. package/src/styles/99-utilities/_utilities.visibility.scss +0 -0
  463. package/src/styles/99-utilities/_utilities.visually-hidden.scss +0 -0
  464. package/src/styles/99-utilities/_utilities.z-index.scss +0 -0
  465. package/src/styles/css-modules.d.ts +0 -0
  466. package/src/styles/index.scss +0 -0
  467. package/dist/index.css +0 -15
  468. package/dist/index.esm.css +0 -15
  469. package/dist/index.min.css +0 -15
@@ -0,0 +1,1433 @@
1
+ import { Size, ThemeColor } from '../types/components';
2
+
3
+ /**
4
+ * Default theme colors for components
5
+ */
6
+ export const THEME_COLORS: ThemeColor[] = [
7
+ 'primary',
8
+ 'secondary',
9
+ 'success',
10
+ 'info',
11
+ 'warning',
12
+ 'error',
13
+ 'light',
14
+ 'dark',
15
+ ];
16
+
17
+ /**
18
+ * Default sizes for components
19
+ */
20
+ export const SIZES: Size[] = ['sm', 'md', 'lg'];
21
+
22
+ /**
23
+ * CSS class prefixes
24
+ */
25
+ export const CLASS_PREFIX = {
26
+ COMPONENT: 'c-',
27
+ UTILITY: 'u-',
28
+ LAYOUT: 'l-',
29
+ OBJECT: 'o-',
30
+ };
31
+
32
+ /**
33
+ * Button-specific constants
34
+ */
35
+ export const BUTTON = {
36
+ BASE_CLASS: 'c-btn',
37
+ ICON_CLASS: 'c-btn__icon',
38
+ VARIANT_PREFIX: 'c-btn--',
39
+ };
40
+
41
+ /**
42
+ * Callout-specific constants
43
+ */
44
+ export const CALLOUT = {
45
+ BASE_CLASS: 'c-callout',
46
+ CONTENT_CLASS: 'c-callout__content',
47
+ ICON_CLASS: 'c-callout__icon',
48
+ MESSAGE_CLASS: 'c-callout__message',
49
+ TITLE_CLASS: 'c-callout__title',
50
+ TEXT_CLASS: 'c-callout__text',
51
+ ACTIONS_CLASS: 'c-callout__actions',
52
+ CLOSE_BTN_CLASS: 'c-callout__close-btn',
53
+ VARIANT_PREFIX: 'c-callout--',
54
+ CLASSES: {
55
+ ONELINE: 'c-callout--oneline',
56
+ TOAST: 'c-callout--toast',
57
+ HIDE: 'is-hide',
58
+ },
59
+ };
60
+
61
+ /**
62
+ * Accordion-specific constants
63
+ */
64
+ export const ACCORDION = {
65
+ SELECTORS: {
66
+ ACCORDION: '.c-accordion',
67
+ HEADER: '.c-accordion__header',
68
+ PANEL: '.c-accordion__panel',
69
+ BODY: '.c-accordion__body',
70
+ },
71
+ CLASSES: {
72
+ IS_OPEN: 'is-open',
73
+ IS_ANIMATING: 'is-animating',
74
+ IS_DISABLED: 'is-disabled',
75
+ },
76
+ ATTRIBUTES: {
77
+ ARIA_EXPANDED: 'aria-expanded',
78
+ ARIA_CONTROLS: 'aria-controls',
79
+ ARIA_HIDDEN: 'aria-hidden',
80
+ ROLE: 'role',
81
+ },
82
+ CSS_VARS: {
83
+ PANEL_HEIGHT: '--panel-height',
84
+ },
85
+ };
86
+
87
+ /**
88
+ * Badge-specific constants
89
+ */
90
+ export const BADGE = {
91
+ BASE_CLASS: 'c-badge',
92
+ ICON_CLASS: 'c-badge__icon',
93
+ VARIANT_PREFIX: 'c-badge--',
94
+ SIZE_PREFIX: 'c-badge--',
95
+ };
96
+
97
+ /**
98
+ * List-specific constants
99
+ */
100
+ export const LIST = {
101
+ BASE_CLASS: 'c-list',
102
+ ITEM_CLASS: 'c-list__item',
103
+ VARIANT_PREFIX: 'c-list--',
104
+ SIZE_PREFIX: 'c-list--',
105
+ CLASSES: {
106
+ ORDERED: 'c-list--ordered',
107
+ INLINE: 'c-list--inline',
108
+ },
109
+ };
110
+
111
+ /**
112
+ * List Group-specific constants
113
+ */
114
+ export const LIST_GROUP = {
115
+ BASE_CLASS: 'c-list-group',
116
+ ITEM_CLASS: 'c-list-group__item',
117
+ VARIANT_PREFIX: 'c-list-group--',
118
+ SIZE_PREFIX: 'c-list-group--',
119
+ };
120
+
121
+ /**
122
+ * Breadcrumb-specific constants
123
+ */
124
+ export const BREADCRUMB = {
125
+ SELECTORS: {
126
+ BREADCRUMB: '.c-breadcrumb',
127
+ ITEM: '.c-breadcrumb__item',
128
+ LINK: '.c-breadcrumb__link',
129
+ },
130
+ CLASSES: {
131
+ BASE: 'c-breadcrumb',
132
+ ITEM: 'c-breadcrumb__item',
133
+ LINK: 'c-breadcrumb__link',
134
+ ACTIVE: 'is-active',
135
+ },
136
+ DEFAULTS: {
137
+ DIVIDER: '›',
138
+ },
139
+ };
140
+
141
+ /**
142
+ * Countdown-specific constants
143
+ */
144
+ export const COUNTDOWN = {
145
+ SELECTORS: {
146
+ COUNTDOWN: '.c-countdown',
147
+ TIME: '.c-countdown__time',
148
+ TIME_COUNT: '.c-countdown__time-count',
149
+ TIME_LABEL: '.c-countdown__time-label',
150
+ SEPARATOR: '.c-countdown__separator',
151
+ },
152
+ CLASSES: {
153
+ BASE: 'c-countdown',
154
+ FOCUSED: 'c-countdown--focused',
155
+ },
156
+ DEFAULTS: {
157
+ SEPARATOR: ':',
158
+ SHOW: ['days', 'hours', 'minutes', 'seconds'],
159
+ },
160
+ };
161
+
162
+ /**
163
+ * Hero-specific constants
164
+ */
165
+ export const HERO = {
166
+ SELECTORS: {
167
+ HERO: '.c-hero',
168
+ CONTAINER: '.c-hero__container',
169
+ GRID: '.c-hero__grid',
170
+ CONTENT: '.c-hero__content',
171
+ SUBTITLE: '.c-hero__subtitle',
172
+ TITLE: '.c-hero__title',
173
+ TEXT: '.c-hero__text',
174
+ ACTIONS: '.c-hero__actions',
175
+ IMAGE: '.c-hero__image',
176
+ BG: '.c-hero__bg',
177
+ BG_IMAGE: '.c-hero__bg-image',
178
+ OVERLAY: '.c-hero__overlay',
179
+ IMAGE_WRAPPER: '.c-hero__image-wrapper',
180
+ },
181
+ CLASSES: {
182
+ CENTER: 'c-hero--center',
183
+ RIGHT: 'c-hero--right',
184
+ LEFT: 'c-hero--left',
185
+ FULL_VH: 'c-hero--full-vh',
186
+ },
187
+ };
188
+
189
+ /**
190
+ * Tooltip-specific constants
191
+ */
192
+ export const TOOLTIP = {
193
+ SELECTORS: {
194
+ TOOLTIP: '.js-atomix-tooltip',
195
+ TRIGGER: '.js-atomix-tooltip-trigger',
196
+ CONTENT: '.js-atomix-tooltip-content',
197
+ ARROW: '.c-tooltip__arrow',
198
+ },
199
+ CLASSES: {
200
+ IS_ACTIVE: 'is-active',
201
+ TOP: 'c-tooltip--top',
202
+ BOTTOM: 'c-tooltip--bottom',
203
+ LEFT: 'c-tooltip--left',
204
+ RIGHT: 'c-tooltip--right',
205
+ TOP_LEFT: 'c-tooltip--top-left',
206
+ TOP_RIGHT: 'c-tooltip--top-right',
207
+ BOTTOM_LEFT: 'c-tooltip--bottom-left',
208
+ BOTTOM_RIGHT: 'c-tooltip--bottom-right',
209
+ },
210
+ ATTRIBUTES: {
211
+ POSITION: 'data-tooltip-position',
212
+ TRIGGER: 'data-tooltip-trigger',
213
+ CONTENT_ID: 'data-tooltip-id',
214
+ },
215
+ DEFAULTS: {
216
+ TRIGGER: 'hover',
217
+ POSITION: 'top',
218
+ OFFSET: 10,
219
+ DELAY: 200,
220
+ },
221
+ };
222
+
223
+ /**
224
+ * Popover-specific constants
225
+ */
226
+ export const POPOVER = {
227
+ SELECTORS: {
228
+ POPOVER: '.js-atomix-popover',
229
+ TRIGGER: '.js-atomix-popover-trigger',
230
+ CONTENT: '.js-atomix-popover-content',
231
+ CONTENT_INNER: '.c-popover__content-inner',
232
+ ARROW: '.c-popover__arrow',
233
+ },
234
+ CLASSES: {
235
+ IS_OPEN: 'is-open',
236
+ TOP: 'c-popover--top',
237
+ BOTTOM: 'c-popover--bottom',
238
+ LEFT: 'c-popover--left',
239
+ RIGHT: 'c-popover--right',
240
+ AUTO: 'c-popover--auto',
241
+ },
242
+ ATTRIBUTES: {
243
+ POSITION: 'data-popover-position',
244
+ TRIGGER: 'data-popover-trigger',
245
+ CONTENT_ID: 'data-popover-id',
246
+ },
247
+ DEFAULTS: {
248
+ TRIGGER: 'click',
249
+ POSITION: 'top',
250
+ OFFSET: 12,
251
+ DELAY: 0,
252
+ },
253
+ };
254
+
255
+ /**
256
+ * Toggle-specific constants
257
+ */
258
+ export const TOGGLE = {
259
+ SELECTORS: {
260
+ TOGGLE: '.c-toggle',
261
+ },
262
+ CLASSES: {
263
+ IS_ON: 'is-on',
264
+ },
265
+ };
266
+
267
+ /**
268
+ * Tab-specific constants
269
+ */
270
+ export const TAB = {
271
+ SELECTORS: {
272
+ TAB: '.js-atomix-tab',
273
+ NAV_ITEMS: '.c-tabs__nav-item',
274
+ NAV_BTN: '.c-tabs__nav-btn',
275
+ PANELS: '.c-tabs__panel',
276
+ PANEL_BODIES: '.c-tabs__panel-body',
277
+ },
278
+ CLASSES: {
279
+ ACTIVE: 'is-active',
280
+ },
281
+ DEFAULTS: {
282
+ ACTIVE_INDEX: 0,
283
+ },
284
+ };
285
+
286
+ /**
287
+ * Steps-specific constants
288
+ */
289
+ export const STEPS = {
290
+ SELECTORS: {
291
+ STEPS: '.c-steps',
292
+ ITEM: '.c-steps__item',
293
+ LINE: '.c-steps__line',
294
+ CONTENT: '.c-steps__content',
295
+ NUMBER: '.c-steps__number',
296
+ TEXT: '.c-steps__text',
297
+ },
298
+ CLASSES: {
299
+ ACTIVE: 'is-active',
300
+ VERTICAL: 'c-steps--vertical',
301
+ COMPLETED: 'is-completed',
302
+ },
303
+ };
304
+
305
+ /**
306
+ * Testimonial-specific constants
307
+ */
308
+ export const TESTIMONIAL = {
309
+ SELECTORS: {
310
+ TESTIMONIAL: '.c-testimonial',
311
+ QUOTE: '.c-testimonial__quote',
312
+ AUTHOR: '.c-testimonial__author',
313
+ AUTHOR_AVATAR: '.c-testimonial__author-avatar',
314
+ AUTHOR_INFO: '.c-testimonial__info',
315
+ AUTHOR_NAME: '.c-testimonial__author-name',
316
+ AUTHOR_ROLE: '.c-testimonial__author-role',
317
+ },
318
+ CLASSES: {
319
+ SMALL: 'c-testimonial--sm',
320
+ LARGE: 'c-testimonial--lg',
321
+ },
322
+ };
323
+
324
+ /**
325
+ * Spinner-specific constants
326
+ */
327
+ export const SPINNER = {
328
+ SELECTORS: {
329
+ SPINNER: '.c-spinner',
330
+ },
331
+ CLASSES: {
332
+ PRIMARY: 'c-spinner--primary',
333
+ SECONDARY: 'c-spinner--secondary',
334
+ SUCCESS: 'c-spinner--success',
335
+ INFO: 'c-spinner--info',
336
+ WARNING: 'c-spinner--warning',
337
+ DANGER: 'c-spinner--danger',
338
+ LIGHT: 'c-spinner--light',
339
+ DARK: 'c-spinner--dark',
340
+ SMALL: 'c-spinner--sm',
341
+ LARGE: 'c-spinner--lg',
342
+ },
343
+ VISUALLY_HIDDEN: 'u-visually-hidden',
344
+ };
345
+
346
+ /**
347
+ * SectionIntro-specific constants
348
+ */
349
+ export const SECTION_INTRO = {
350
+ SELECTORS: {
351
+ SECTION_INTRO: '.c-sectionintro',
352
+ LABEL: '.c-sectionintro__label',
353
+ TITLE: '.c-sectionintro__title',
354
+ TEXT: '.c-sectionintro__text',
355
+ ACTIONS: '.c-sectionintro__actions',
356
+ },
357
+ CLASSES: {
358
+ CENTER: 'c-sectionintro--center',
359
+ LARGE: 'c-sectionintro--lg',
360
+ SMALL: 'c-sectionintro--sm',
361
+ },
362
+ };
363
+
364
+ /**
365
+ * River-specific constants
366
+ */
367
+ export const RIVER = {
368
+ SELECTORS: {
369
+ RIVER: '.c-river',
370
+ CONTAINER: '.c-river__container',
371
+ ROW: '.c-river__row',
372
+ CONTENT: '.c-river__content',
373
+ CONTENT_COL: '.c-river__content-col',
374
+ CONTENT_COL_TITLE: '.c-river__content-col--title',
375
+ CONTENT_COL_TEXT: '.c-river__content-col--text',
376
+ TITLE: '.c-river__title',
377
+ TEXT: '.c-river__text',
378
+ ACTIONS: '.c-river__actions',
379
+ VISUAL: '.c-river__visual',
380
+ IMAGE_WRAPPER: '.c-river__image-wrapper',
381
+ IMAGE: '.c-river__image',
382
+ BG: '.c-river__bg',
383
+ BG_IMAGE: '.c-river__bg-image',
384
+ OVERLAY: '.c-river__overlay',
385
+ },
386
+ CLASSES: {
387
+ CENTER: 'c-river--center',
388
+ BREAKOUT: 'c-river--breakout',
389
+ REVERSE: 'c-river--reverse',
390
+ },
391
+ ATTRIBUTES: {
392
+ CONTENT_WIDTH: '--river-content-width',
393
+ },
394
+ };
395
+
396
+ /**
397
+ * Upload-specific constants
398
+ */
399
+ export const UPLOAD = {
400
+ SELECTORS: {
401
+ UPLOAD: '.c-upload',
402
+ INNER: '.c-upload__inner',
403
+ ICON: '.c-upload__icon',
404
+ TITLE: '.c-upload__title',
405
+ TEXT: '.c-upload__text',
406
+ BUTTON: '.c-upload__btn',
407
+ HELPER_TEXT: '.c-upload__helper-text',
408
+ LOADER: '.c-upload__loader',
409
+ LOADER_STATUS: '.c-upload__loader-status',
410
+ LOADER_TITLE: '.c-upload__loader-title',
411
+ LOADER_PROGRESS: '.c-upload__loader-progress',
412
+ LOADER_PAR: '.c-upload__loader-par',
413
+ LOADER_TIME: '.c-upload__loader-time',
414
+ LOADER_CONTROL: '.c-upload__loader-control',
415
+ LOADER_BAR: '.c-upload__loader-bar',
416
+ LOADER_CLOSE: '.c-upload__loader-close',
417
+ },
418
+ CLASSES: {
419
+ DISABLED: 'c-upload--disabled',
420
+ ERROR: 'c-upload--error',
421
+ SUCCESS: 'c-upload--success',
422
+ LOADING: 'c-upload--loading',
423
+ DRAGGING: 'c-upload--dragging',
424
+ },
425
+ ATTRIBUTES: {
426
+ PERCENTAGE: '--upload-loader-percentage',
427
+ },
428
+ };
429
+
430
+ /**
431
+ * Navbar-specific constants
432
+ */
433
+ export const NAVBAR = {
434
+ SELECTORS: {
435
+ NAVBAR: '.c-navbar',
436
+ CONTAINER: '.c-navbar__container',
437
+ BRAND: '.c-navbar__brand',
438
+ COLLAPSE: '.c-navbar__collapse',
439
+ TOGGLER: '.c-navbar__toggler',
440
+ TOGGLER_ICON: '.c-navbar__toggler-icon',
441
+ },
442
+ CLASSES: {
443
+ BASE: 'c-navbar',
444
+ CONTAINER: 'c-navbar__container',
445
+ BRAND: 'c-navbar__brand',
446
+ COLLAPSE: 'c-navbar__collapse',
447
+ TOGGLER: 'c-navbar__toggler',
448
+ TOGGLER_ICON: 'c-navbar__toggler-icon',
449
+ FIXED: 'c-navbar--fixed',
450
+ FIXED_BOTTOM: 'c-navbar--fixed-bottom',
451
+ COLLAPSIBLE: 'c-navbar--collapsible',
452
+ EXPANDED: 'is-expanded',
453
+ BACKDROP: 'c-navbar__backdrop',
454
+ },
455
+ ATTRIBUTES: {
456
+ NAVBAR: 'data-navbar',
457
+ COLLAPSIBLE: 'data-collapsible',
458
+ EXPANDED: 'data-expanded',
459
+ POSITION: 'data-position',
460
+ BACKDROP: 'data-backdrop',
461
+ AUTO_CLOSE: 'data-auto-close',
462
+ KEYBOARD: 'data-keyboard',
463
+ },
464
+ DEFAULTS: {
465
+ POSITION: 'static',
466
+ COLLAPSIBLE: true,
467
+ EXPANDED: false,
468
+ BACKDROP: false,
469
+ AUTO_CLOSE: true,
470
+ KEYBOARD: true,
471
+ ARIA_LABEL: 'Main navigation',
472
+ },
473
+ };
474
+
475
+ /**
476
+ * Nav-specific constants
477
+ */
478
+ export const NAV = {
479
+ SELECTORS: {
480
+ NAV: '.c-nav',
481
+ ITEM: '.c-nav__item',
482
+ LINK: '.c-nav__link',
483
+ DROPDOWN: '.c-nav__item--dropdown',
484
+ DROPDOWN_MENU: '.c-nav__dropdown-menu',
485
+ MEGA_MENU: '.c-nav__mega-menu',
486
+ ICON: '.c-nav__icon',
487
+ },
488
+ CLASSES: {
489
+ END: 'c-nav--end',
490
+ CENTER: 'c-nav--center',
491
+ ACTIVE: 'is-active',
492
+ DISABLED: 'is-disabled',
493
+ },
494
+ };
495
+
496
+ /**
497
+ * SideMenu-specific constants
498
+ */
499
+ export const SIDE_MENU = {
500
+ SELECTORS: {
501
+ SIDE_MENU: '.c-side-menu',
502
+ WRAPPER: '.c-side-menu__wrapper',
503
+ INNER: '.c-side-menu__inner',
504
+ TITLE: '.c-side-menu__title',
505
+ TOGGLER: '.c-side-menu__toggler',
506
+ TOGGLER_ICON: '.c-side-menu__toggler-icon',
507
+ LIST: '.c-side-menu__list',
508
+ ITEM: '.c-side-menu__item',
509
+ LINK: '.c-side-menu__link',
510
+ LINK_ICON: '.c-side-menu__link-icon',
511
+ LINK_TEXT: '.c-side-menu__link-text',
512
+ },
513
+ CLASSES: {
514
+ BASE: 'c-side-menu',
515
+ WRAPPER: 'c-side-menu__wrapper',
516
+ INNER: 'c-side-menu__inner',
517
+ TITLE: 'c-side-menu__title',
518
+ TOGGLER: 'c-side-menu__toggler',
519
+ TOGGLER_ICON: 'c-side-menu__toggler-icon',
520
+ LIST: 'c-side-menu__list',
521
+ ITEM: 'c-side-menu__item',
522
+ LINK: 'c-side-menu__link',
523
+ LINK_ICON: 'c-side-menu__link-icon',
524
+ LINK_TEXT: 'c-side-menu__link-text',
525
+ IS_OPEN: 'is-open',
526
+ ACTIVE: 'is-active',
527
+ DISABLED: 'is-disabled',
528
+ },
529
+ ATTRIBUTES: {
530
+ SIDE_MENU: 'data-side-menu',
531
+ COLLAPSIBLE: 'data-collapsible',
532
+ OPEN: 'data-open',
533
+ TITLE: 'data-title',
534
+ },
535
+ DEFAULTS: {
536
+ COLLAPSIBLE: true,
537
+ OPEN: false,
538
+ TOGGLE_ICON: '▶',
539
+ },
540
+ };
541
+
542
+ /**
543
+ * EdgePanel-specific constants
544
+ */
545
+ /**
546
+ * Rating-specific constants
547
+ */
548
+ export const RATING = {
549
+ SELECTORS: {
550
+ RATING: '.c-rating',
551
+ STAR: '.c-rating__star',
552
+ STAR_FULL: '.c-rating__star-full',
553
+ STAR_HALF: '.c-rating__star-half',
554
+ },
555
+ CLASSES: {
556
+ FULL: 'c-rating__star--full',
557
+ HALF: 'c-rating__star--half',
558
+ SMALL: 'c-rating--sm',
559
+ LARGE: 'c-rating--lg',
560
+ },
561
+ ATTRIBUTES: {
562
+ READONLY: 'data-readonly',
563
+ VALUE: 'data-value',
564
+ },
565
+ };
566
+
567
+ export const EDGE_PANEL = {
568
+ SELECTORS: {
569
+ PANEL: '.c-edge-panel',
570
+ BACKDROP: '.c-edge-panel__backdrop',
571
+ CONTAINER: '.c-edge-panel__container',
572
+ HEADER: '.c-edge-panel__header',
573
+ BODY: '.c-edge-panel__body',
574
+ CLOSE: '.c-edge-panel__close',
575
+ },
576
+ CLASSES: {
577
+ BASE: 'c-edge-panel',
578
+ START: 'c-edge-panel--start',
579
+ END: 'c-edge-panel--end',
580
+ TOP: 'c-edge-panel--top',
581
+ BOTTOM: 'c-edge-panel--bottom',
582
+ IS_OPEN: 'is-open',
583
+ },
584
+ TRANSFORM_VALUES: {
585
+ start: 'translateX(-100%)',
586
+ end: 'translateX(100%)',
587
+ top: 'translateY(-100%)',
588
+ bottom: 'translateY(100%)',
589
+ },
590
+ ANIMATION_DURATION: 300,
591
+ };
592
+
593
+ /**
594
+ * DataTable-specific constants
595
+ */
596
+ export const DATA_TABLE_CLASSES = {
597
+ base: 'c-data-table',
598
+ container: 'c-data-table-container',
599
+ tableWrapper: 'c-data-table-wrapper',
600
+ header: 'c-data-table__header',
601
+ headerCell: 'c-data-table__header-cell',
602
+ headerContent: 'c-data-table__header-content',
603
+ sortable: 'c-data-table__header-cell--sortable',
604
+ sortIcon: 'c-data-table__sort-icon',
605
+ row: 'c-data-table__row',
606
+ cell: 'c-data-table__cell',
607
+ loadingCell: 'c-data-table__loading-cell',
608
+ loadingIndicator: 'c-data-table__loading-indicator',
609
+ emptyCell: 'c-data-table__empty-cell',
610
+ toolbar: 'c-data-table-toolbar',
611
+ search: 'c-data-table-search',
612
+ searchInput: 'c-data-table-search__input',
613
+ pagination: 'c-data-table__pagination-container',
614
+ striped: 'c-data-table--striped',
615
+ bordered: 'c-data-table--bordered',
616
+ dense: 'c-data-table--dense',
617
+ loading: 'c-data-table--loading',
618
+ open: 'is-open',
619
+ };
620
+
621
+ /**
622
+ * DataTable-specific selectors
623
+ */
624
+ export const DATA_TABLE_SELECTORS = {
625
+ TABLE: '.c-data-table',
626
+ HEADER: '.c-data-table__header',
627
+ HEADER_CELL: '.c-data-table__header-cell',
628
+ ROW: '.c-data-table__row',
629
+ CELL: '.c-data-table__cell',
630
+ PAGINATION: '.c-data-table__pagination',
631
+ PAGINATION_BUTTON: '.c-data-table__pagination-button',
632
+ SEARCH_INPUT: '.c-data-table__search-input',
633
+ };
634
+
635
+ /**
636
+ * Pagination-specific constants
637
+ */
638
+ export const PAGINATION_DEFAULTS = {
639
+ currentPage: 1,
640
+ totalPages: 1,
641
+ siblingCount: 1,
642
+ showFirstLastButtons: true,
643
+ showPrevNextButtons: true,
644
+ size: 'md' as Size,
645
+ };
646
+
647
+ /**
648
+ * Todo-specific constants
649
+ */
650
+ export const TODO = {
651
+ SELECTORS: {
652
+ TODO: '.c-todo',
653
+ TITLE: '.c-todo__title',
654
+ LIST: '.c-todo__list',
655
+ ITEM: '.c-todo__item',
656
+ ITEM_CONTENT: '.c-todo__item-content',
657
+ ITEM_TEXT: '.c-todo__item-text',
658
+ ITEM_ACTIONS: '.c-todo__item-actions',
659
+ CHECKBOX: '.c-todo__checkbox',
660
+ DELETE_BUTTON: '.c-todo__delete-btn',
661
+ FORM: '.c-todo__form',
662
+ INPUT: '.c-todo__input',
663
+ ADD_BUTTON: '.c-todo__add-btn',
664
+ },
665
+ CLASSES: {
666
+ BASE: 'c-todo',
667
+ ITEM: 'c-todo__item',
668
+ COMPLETED: 'c-todo__item--completed',
669
+ SMALL: 'c-todo--sm',
670
+ LARGE: 'c-todo--lg',
671
+ },
672
+ };
673
+
674
+ /**
675
+ * Form-specific constants
676
+ */
677
+ export const FORM = {
678
+ SELECTORS: {
679
+ FORM: '.c-form',
680
+ GROUP: '.c-form-group',
681
+ LABEL: '.c-form-group__label',
682
+ HELPER: '.c-form-group__helper',
683
+ FIELD: '.c-form-group__field',
684
+ REQUIRED: '.c-form-group__required',
685
+ },
686
+ CLASSES: {
687
+ BASE: 'c-form',
688
+ DISABLED: 'c-form--disabled',
689
+ },
690
+ };
691
+
692
+ /**
693
+ * Form Group-specific constants
694
+ */
695
+ export const FORM_GROUP = {
696
+ SELECTORS: {
697
+ GROUP: '.c-form-group',
698
+ LABEL: '.c-form-group__label',
699
+ FIELD: '.c-form-group__field',
700
+ HELPER: '.c-form-group__helper',
701
+ REQUIRED: '.c-form-group__required',
702
+ },
703
+ CLASSES: {
704
+ BASE: 'c-form-group',
705
+ SMALL: 'c-form-group--sm',
706
+ LARGE: 'c-form-group--lg',
707
+ INVALID: 'c-form-group--invalid',
708
+ VALID: 'c-form-group--valid',
709
+ DISABLED: 'c-form-group--disabled',
710
+ },
711
+ };
712
+
713
+ /**
714
+ * Input-specific constants
715
+ */
716
+ export const INPUT = {
717
+ SELECTORS: {
718
+ INPUT: '.c-input',
719
+ },
720
+ CLASSES: {
721
+ BASE: 'c-input',
722
+ SMALL: 'c-input--sm',
723
+ LARGE: 'c-input--lg',
724
+ INVALID: 'is-invalid',
725
+ VALID: 'is-valid',
726
+ DISABLED: 'is-disabled',
727
+ },
728
+ };
729
+
730
+ /**
731
+ * Radio-specific constants
732
+ */
733
+ export const RADIO = {
734
+ SELECTORS: {
735
+ RADIO: '.c-radio',
736
+ INPUT: '.c-radio__input',
737
+ LABEL: '.c-radio__label',
738
+ },
739
+ CLASSES: {
740
+ BASE: 'c-radio',
741
+ INVALID: 'is-error',
742
+ VALID: 'is-valid',
743
+ DISABLED: 'is-disabled',
744
+ },
745
+ };
746
+
747
+ /**
748
+ * Checkbox-specific constants - extend existing checkbox constants
749
+ */
750
+ // Update existing CHECKBOX constants if needed
751
+
752
+ /**
753
+ * Card-specific constants
754
+ */
755
+ export const CARD = {
756
+ SELECTORS: {
757
+ CARD: '.c-card',
758
+ HEADER: '.c-card__header',
759
+ BODY: '.c-card__body',
760
+ IMAGE: '.c-card__image',
761
+ TITLE: '.c-card__title',
762
+ TEXT: '.c-card__text',
763
+ ACTIONS: '.c-card__actions',
764
+ ICON: '.c-card__icon',
765
+ FOOTER: '.c-card__footer',
766
+ },
767
+ CLASSES: {
768
+ BASE: 'c-card',
769
+ ROW: 'c-card--row',
770
+ FLAT: 'c-card--flat',
771
+ ACTIVE: 'is-active',
772
+ FLIPPED: 'is-flipped',
773
+ FOCUSED: 'is-focused',
774
+ CLICKABLE: 'is-clickable',
775
+ },
776
+ DEFAULTS: {
777
+ HOVER: true,
778
+ },
779
+ };
780
+
781
+ /**
782
+ * Select-specific constants
783
+ */
784
+ export const SELECT = {
785
+ SELECTORS: {
786
+ SELECT: '.c-select',
787
+ SELECTED: '.c-select__selected',
788
+ SELECT_BODY: '.c-select__body',
789
+ SELECT_PANEL: '.c-select__panel',
790
+ SELECT_ITEMS: '.c-select__items',
791
+ SELECT_ITEM: '.c-select__item',
792
+ ITEM_LABEL: '.c-select__item-label',
793
+ ITEM_INPUT: '.c-select__item-input',
794
+ OPTION: 'option',
795
+ },
796
+ CLASSES: {
797
+ BASE: 'c-select',
798
+ SELECTED: 'c-select__selected',
799
+ SELECT_BODY: 'c-select__body',
800
+ SELECT_PANEL: 'c-select__panel',
801
+ SELECT_ITEMS: 'c-select__items',
802
+ SELECT_ITEM: 'c-select__item',
803
+ TOGGLE_ICON: 'c-select__toggle-icon',
804
+ ICON_CARET: 'icon-atomix-caret-down',
805
+ SMALL: 'c-select--sm',
806
+ LARGE: 'c-select--lg',
807
+ INVALID: 'is-invalid',
808
+ VALID: 'is-valid',
809
+ DISABLED: 'is-disabled',
810
+ IS_OPEN: 'is-open',
811
+ },
812
+ };
813
+
814
+ /**
815
+ * Textarea-specific constants
816
+ */
817
+ export const TEXTAREA = {
818
+ SELECTORS: {
819
+ TEXTAREA: '.c-textarea',
820
+ },
821
+ CLASSES: {
822
+ BASE: 'c-input c-input--textarea',
823
+ SMALL: 'c-input--sm',
824
+ LARGE: 'c-input--lg',
825
+ INVALID: 'is-invalid',
826
+ VALID: 'is-valid',
827
+ DISABLED: 'is-disabled',
828
+ },
829
+ };
830
+
831
+ /**
832
+ * Avatar-specific constants
833
+ */
834
+ export const AVATAR = {
835
+ SELECTORS: {
836
+ AVATAR: '.c-avatar',
837
+ IMAGE: '.c-avatar__image',
838
+ INITIALS: '.c-avatar__initials',
839
+ ICON: '.c-avatar__icon',
840
+ },
841
+ CLASSES: {
842
+ BASE: 'c-avatar',
843
+ XS: 'c-avatar--xs',
844
+ SM: 'c-avatar--sm',
845
+ MD: 'c-avatar--md',
846
+ LG: 'c-avatar--lg',
847
+ XL: 'c-avatar--xl',
848
+ CIRCLE: 'c-avatar--circle',
849
+ },
850
+ };
851
+
852
+ /**
853
+ * Avatar Group-specific constants
854
+ */
855
+ export const AVATAR_GROUP = {
856
+ SELECTORS: {
857
+ GROUP: '.c-avatar-group',
858
+ MORE: '.c-avatar-group__more',
859
+ },
860
+ CLASSES: {
861
+ BASE: 'c-avatar-group',
862
+ STACKED: 'c-avatar-group--stacked',
863
+ MORE: 'c-avatar-group__more',
864
+ },
865
+ };
866
+
867
+ /**
868
+ * Modal component constants
869
+ */
870
+ export const MODAL = {
871
+ SELECTORS: {
872
+ MODAL: '.c-modal',
873
+ OPEN_BUTTON: '.js-modal-open',
874
+ CLOSE_BUTTONS: '.js-modal-close',
875
+ DIALOG: '.c-modal__dialog',
876
+ BACKDROP: '.c-modal__backdrop',
877
+ },
878
+ CLASSES: {
879
+ IS_OPEN: 'is-open',
880
+ },
881
+ DEFAULT_OPTIONS: {
882
+ openELm: '.js-modal-open',
883
+ closeELms: '.js-modal-close',
884
+ modalDialogELm: '.c-modal__dialog',
885
+ backdropELm: '.c-modal__backdrop',
886
+ backdrop: true,
887
+ keyboard: true,
888
+ },
889
+ };
890
+
891
+ /**
892
+ * Messages-specific constants
893
+ */
894
+ export const MESSAGES = {
895
+ SELECTORS: {
896
+ MESSAGES: '.c-messages',
897
+ BODY: '.c-messages__body',
898
+ CONTENT: '.c-messages__content',
899
+ AVATAR: '.c-messages__avatar',
900
+ ITEMS: '.c-messages__items',
901
+ TEXT: '.c-messages__text',
902
+ FILE: '.c-messages__file',
903
+ IMAGE: '.c-messages__image',
904
+ FORM: '.c-messages__form',
905
+ INPUT: '.c-messages__input',
906
+ },
907
+ CLASSES: {
908
+ BASE: 'c-messages',
909
+ BODY: 'c-messages__body',
910
+ CONTENT: 'c-messages__content',
911
+ CONTENT_SELF: 'c-messages__content--self',
912
+ AVATAR: 'c-messages__avatar',
913
+ ITEMS: 'c-messages__items',
914
+ NAME: 'c-messages__name',
915
+ TEXT: 'c-messages__text',
916
+ TIME: 'c-messages__time',
917
+ FILE: 'c-messages__file',
918
+ FILE_ICON: 'c-messages__file-icon',
919
+ FILE_DETAILS: 'c-messages__file-details',
920
+ FILE_NAME: 'c-messages__file-name',
921
+ FILE_SIZE: 'c-messages__file-size',
922
+ IMAGE: 'c-messages__image',
923
+ FORM: 'c-messages__form',
924
+ INPUT_GROUP: 'c-messages__input-group',
925
+ INPUT: 'c-messages__input',
926
+ OPTIONS: 'c-messages__options',
927
+ OPTION: 'c-messages__option c-btn',
928
+ OPTION_ICON: 'c-messages__option-icon',
929
+ SUBMIT: 'c-messages__submit',
930
+ },
931
+ };
932
+
933
+ /**
934
+ * Dropdown-specific constants
935
+ */
936
+ export const DROPDOWN = {
937
+ SELECTORS: {
938
+ DROPDOWN: '.c-dropdown',
939
+ TOGGLE: '.c-dropdown__toggle',
940
+ MENU: '.c-dropdown__menu',
941
+ MENU_WRAPPER: '.c-dropdown__menu-wrapper',
942
+ MENU_INNER: '.c-dropdown__menu-inner',
943
+ MENU_ITEM: '.c-dropdown__menu-item',
944
+ DIVIDER: '.c-dropdown__divider',
945
+ HEADER: '.c-dropdown__header',
946
+ },
947
+ CLASSES: {
948
+ IS_OPEN: 'is-open',
949
+ IS_ACTIVE: 'is-active',
950
+ IS_DISABLED: 'is-disabled',
951
+ },
952
+ DEFAULTS: {
953
+ PLACEMENT: 'bottom-start',
954
+ TRIGGER: 'click',
955
+ OFFSET: 4,
956
+ MIN_WIDTH: 180,
957
+ ANIMATION_DURATION: '0.25s',
958
+ ANIMATION_TIMING: 'cubic-bezier(0.16, 1, 0.3, 1)',
959
+ },
960
+ };
961
+
962
+ /**
963
+ * DatePicker-specific constants
964
+ */
965
+ /**
966
+ * Progress-specific constants
967
+ */
968
+ export const PROGRESS = {
969
+ SELECTORS: {
970
+ PROGRESS: '.c-progress',
971
+ BAR: '.c-progress__bar',
972
+ },
973
+ CLASSES: {
974
+ BASE: 'c-progress',
975
+ BAR: 'c-progress__bar',
976
+ SM: 'c-progress--sm',
977
+ MD: 'c-progress--md',
978
+ LG: 'c-progress--lg',
979
+ },
980
+ ATTRIBUTES: {
981
+ ARIA_VALUEMIN: 'aria-valuemin',
982
+ ARIA_VALUEMAX: 'aria-valuemax',
983
+ ARIA_VALUENOW: 'aria-valuenow',
984
+ ARIA_LABEL: 'aria-label',
985
+ },
986
+ CSS_VARS: {
987
+ PERCENTAGE: '--atomix-progress-percentage',
988
+ },
989
+ DEFAULTS: {
990
+ ARIA_LABEL: 'Progress bar',
991
+ },
992
+ };
993
+
994
+ export const DATEPICKER = {
995
+ SELECTORS: {
996
+ DATEPICKER: '.c-datepicker',
997
+ INPUT: '.c-datepicker__input',
998
+ CALENDAR: '.c-datepicker__calendar',
999
+ DAY: '.c-datepicker__day',
1000
+ MONTH: '.c-datepicker__month',
1001
+ YEAR: '.c-datepicker__year',
1002
+ HEADER: '.c-datepicker__header',
1003
+ BODY: '.c-datepicker__body',
1004
+ FOOTER: '.c-datepicker__footer',
1005
+ WEEKDAYS: '.c-datepicker__weekdays',
1006
+ TODAY_BUTTON: '.c-datepicker__today-button',
1007
+ CLEAR_BUTTON: '.c-datepicker__clear-button',
1008
+ CLOSE_BUTTON: '.c-datepicker__close-button',
1009
+ NAV_BUTTON: '.c-datepicker__nav-button',
1010
+ VIEW_SWITCH: '.c-datepicker__view-switch',
1011
+ },
1012
+ CLASSES: {
1013
+ IS_OPEN: 'is-open',
1014
+ IS_DISABLED: 'is-disabled',
1015
+ IS_SELECTED: 'is-selected',
1016
+ IS_TODAY: 'is-today',
1017
+ INLINE: 'c-datepicker--inline',
1018
+ },
1019
+ ATTRIBUTES: {
1020
+ FORMAT: 'data-format',
1021
+ MIN_DATE: 'data-min-date',
1022
+ MAX_DATE: 'data-max-date',
1023
+ INLINE: 'data-inline',
1024
+ PLACEMENT: 'data-placement',
1025
+ CLEARABLE: 'data-clearable',
1026
+ SHOW_TODAY: 'data-show-today-button',
1027
+ SHOW_WEEK_NUMBERS: 'data-show-week-numbers',
1028
+ },
1029
+ DEFAULTS: {
1030
+ FORMAT: 'MM/dd/yyyy',
1031
+ PLACEMENT: 'bottom-start',
1032
+ CLEARABLE: true,
1033
+ SHOW_TODAY_BUTTON: true,
1034
+ SHOW_WEEK_NUMBERS: false,
1035
+ INLINE: false,
1036
+ },
1037
+ };
1038
+
1039
+ /**
1040
+ * VideoPlayer component constants
1041
+ */
1042
+ export const VIDEO_PLAYER = {
1043
+ SELECTORS: {
1044
+ VIDEO_PLAYER: '.c-video-player',
1045
+ VIDEO: '.c-video-player__video',
1046
+ CONTROLS: '.c-video-player__controls',
1047
+ PROGRESS: '.c-video-player__progress',
1048
+ VOLUME: '.c-video-player__volume',
1049
+ SETTINGS: '.c-video-player__settings',
1050
+ },
1051
+ CLASSES: {
1052
+ BASE: 'c-video-player',
1053
+ VIDEO: 'c-video-player__video',
1054
+ YOUTUBE: 'c-video-player--youtube',
1055
+ LOADING: 'c-video-player__loading',
1056
+ SPINNER: 'c-video-player__spinner',
1057
+ CONTROLS: 'c-video-player__controls',
1058
+ CONTROLS_VISIBLE: 'c-video-player__controls--visible',
1059
+ PROGRESS_CONTAINER: 'c-video-player__progress-container',
1060
+ PROGRESS_BAR: 'c-video-player__progress-bar',
1061
+ PROGRESS_BUFFERED: 'c-video-player__progress-buffered',
1062
+ PROGRESS_PLAYED: 'c-video-player__progress-played',
1063
+ PROGRESS_THUMB: 'c-video-player__progress-thumb',
1064
+ CONTROLS_ROW: 'c-video-player__controls-row',
1065
+ CONTROLS_LEFT: 'c-video-player__controls-left',
1066
+ CONTROLS_RIGHT: 'c-video-player__controls-right',
1067
+ CONTROL_BUTTON: 'c-video-player__control-button',
1068
+ VOLUME_CONTAINER: 'c-video-player__volume-container',
1069
+ VOLUME_SLIDER: 'c-video-player__volume-slider',
1070
+ VOLUME_BAR: 'c-video-player__volume-bar',
1071
+ VOLUME_FILL: 'c-video-player__volume-fill',
1072
+ TIME_DISPLAY: 'c-video-player__time-display',
1073
+ SETTINGS_CONTAINER: 'c-video-player__settings-container',
1074
+ SETTINGS_MENU: 'c-video-player__settings-menu',
1075
+ SETTINGS_TABS: 'c-video-player__settings-tabs',
1076
+ SETTINGS_TAB: 'c-video-player__settings-tab',
1077
+ SETTINGS_TAB_ACTIVE: 'c-video-player__settings-tab--active',
1078
+ SETTINGS_CONTENT: 'c-video-player__settings-content',
1079
+ SETTINGS_OPTIONS: 'c-video-player__settings-options',
1080
+ SETTINGS_OPTION: 'c-video-player__settings-option',
1081
+ SETTINGS_OPTION_ACTIVE: 'c-video-player__settings-option--active',
1082
+ AMBIENT: 'c-video-player--ambient',
1083
+ AMBIENT_CANVAS: 'c-video-player__ambient-canvas',
1084
+ },
1085
+ DEFAULTS: {
1086
+ CONTROLS_TIMEOUT: 3000,
1087
+ VOLUME: 1,
1088
+ PLAYBACK_RATE: 1,
1089
+ ASPECT_RATIO: '16:9',
1090
+ },
1091
+ };
1092
+
1093
+ /**
1094
+ * PhotoViewer component constants
1095
+ */
1096
+ export const PHOTOVIEWER = {
1097
+ SELECTOR: '.c-photo-viewer',
1098
+ CLASS: 'c-photo-viewer',
1099
+ DEFAULTS: {
1100
+ startIndex: 0,
1101
+ zoomLevel: 1,
1102
+ fullscreen: false,
1103
+ },
1104
+ };
1105
+
1106
+ /**
1107
+ * Slider component constants
1108
+ */
1109
+ export const sliderConstants = {
1110
+ classes: {
1111
+ container: 'c-slider',
1112
+ containerModifierClass: 'c-slider--',
1113
+ wrapper: 'c-slider__wrapper',
1114
+ slide: 'c-slider__slide',
1115
+ slideActive: 'c-slider__slide--active',
1116
+ slidePrev: 'c-slider__slide--prev',
1117
+ slideNext: 'c-slider__slide--next',
1118
+ slideDuplicate: 'c-slider__slide--duplicate',
1119
+ slideVisible: 'c-slider__slide--visible',
1120
+ pagination: 'c-slider__pagination',
1121
+ paginationBullet: 'c-slider__pagination-bullet',
1122
+ paginationBulletActive: 'c-slider__pagination-bullet--active',
1123
+ navigation: 'c-slider__navigation',
1124
+ navigationPrev: 'c-slider__navigation-prev',
1125
+ navigationNext: 'c-slider__navigation-next',
1126
+ navigationDisabled: 'c-slider__navigation--disabled',
1127
+ scrollbar: 'c-slider__scrollbar',
1128
+ scrollbarDrag: 'c-slider__scrollbar-drag',
1129
+ thumbs: 'c-slider__thumbs',
1130
+ thumbsWrapper: 'c-slider__thumbs-wrapper',
1131
+ thumbsSlide: 'c-slider__thumbs-slide',
1132
+ thumbsSlideActive: 'c-slider__thumbs-slide--active',
1133
+ zoomContainer: 'c-slider__zoom-container',
1134
+ lazyPreloader: 'c-slider__lazy-preloader',
1135
+ },
1136
+ defaults: {
1137
+ slidesToShow: 1,
1138
+ slidesToScroll: 1,
1139
+ spaceBetween: 0,
1140
+ centeredSlides: false,
1141
+ loop: false,
1142
+ initialSlide: 0,
1143
+ direction: 'horizontal' as const,
1144
+ speed: 300,
1145
+ easing: 'ease-out',
1146
+ allowTouchMove: true,
1147
+ threshold: 5,
1148
+ mousewheel: false,
1149
+ keyboard: false,
1150
+ grabCursor: false,
1151
+ freeMode: false,
1152
+ watchSlidesProgress: false,
1153
+ watchOverflow: true,
1154
+ resistanceRatio: 0.85,
1155
+ preventClicks: true,
1156
+ preventClicksPropagation: true,
1157
+ simulateTouch: true,
1158
+ touchRatio: 1,
1159
+ touchAngle: 45,
1160
+ shortSwipes: true,
1161
+ longSwipes: true,
1162
+ longSwipesRatio: 0.5,
1163
+ longSwipesMs: 300,
1164
+ followFinger: true,
1165
+ touchMoveStopPropagation: true,
1166
+ touchStartPreventDefault: true,
1167
+ touchReleaseOnEdges: false,
1168
+ resistance: true,
1169
+ passiveListeners: true,
1170
+ },
1171
+ breakpoints: {
1172
+ sm: 576,
1173
+ md: 768,
1174
+ lg: 992,
1175
+ xl: 1200,
1176
+ xxl: 1400,
1177
+ },
1178
+ events: {
1179
+ init: 'slider:init',
1180
+ destroy: 'slider:destroy',
1181
+ slideChange: 'slider:slideChange',
1182
+ slideChangeTransitionStart: 'slider:slideChangeTransitionStart',
1183
+ slideChangeTransitionEnd: 'slider:slideChangeTransitionEnd',
1184
+ touchStart: 'slider:touchStart',
1185
+ touchMove: 'slider:touchMove',
1186
+ touchEnd: 'slider:touchEnd',
1187
+ reachBeginning: 'slider:reachBeginning',
1188
+ reachEnd: 'slider:reachEnd',
1189
+ progress: 'slider:progress',
1190
+ autoplayStart: 'slider:autoplayStart',
1191
+ autoplayStop: 'slider:autoplayStop',
1192
+ beforeResize: 'slider:beforeResize',
1193
+ resize: 'slider:resize',
1194
+ },
1195
+ };
1196
+
1197
+ export const SLIDER = sliderConstants;
1198
+
1199
+ /**
1200
+ * Chart-specific constants
1201
+ */
1202
+ export const CHART = {
1203
+ BASE_CLASS: 'c-chart',
1204
+ ROOT_CLASS: 'c-chart',
1205
+ HEADER_CLASS: 'c-chart__header',
1206
+ HEADER_CONTENT_CLASS: 'c-chart__header-content',
1207
+ TITLE_CLASS: 'c-chart__title',
1208
+ SUBTITLE_CLASS: 'c-chart__subtitle',
1209
+ TOOLBAR_CLASS: 'c-chart__toolbar',
1210
+ ACTION_CLASS: 'c-chart__action',
1211
+ EXPORT_GROUP_CLASS: 'c-chart__export-group',
1212
+ EXPORT_DROPDOWN_CLASS: 'c-chart__export-dropdown',
1213
+ EXPORT_OPTION_CLASS: 'c-chart__export-option',
1214
+ TOOLBAR_GROUP_CLASS: 'c-chart__toolbar-group',
1215
+ TOOLBAR_SEPARATOR_CLASS: 'c-chart__toolbar-separator',
1216
+ TOOLBAR_LABEL_CLASS: 'c-chart__toolbar-label',
1217
+ CONTENT_CLASS: 'c-chart__content',
1218
+ CANVAS_CLASS: 'c-chart__canvas',
1219
+ LEGEND_CLASS: 'c-chart__legend',
1220
+ LEGEND_ITEM_CLASS: 'c-chart__legend-item',
1221
+ LEGEND_LABEL_CLASS: 'c-chart__legend-label',
1222
+ LEGEND_COLOR_CLASS: 'c-chart__legend-color',
1223
+ TOOLTIP_CLASS: 'c-chart__tooltip',
1224
+ TOOLTIP_TITLE_CLASS: 'c-chart__tooltip-title',
1225
+ TOOLTIP_CONTENT_CLASS: 'c-chart__tooltip-content',
1226
+ TOOLTIP_ITEM_CLASS: 'c-chart__tooltip-item',
1227
+ TOOLTIP_LABEL_CLASS: 'c-chart__tooltip-label',
1228
+ TOOLTIP_VALUE_CLASS: 'c-chart__tooltip-value',
1229
+ AXIS_CLASS: 'c-chart__axis',
1230
+ AXIS_LABEL_CLASS: 'c-chart__axis-label',
1231
+ GRID_CLASS: 'c-chart__grid',
1232
+ DATA_POINT_CLASS: 'c-chart__data-point',
1233
+ CHART_SVG_CLASS: 'c-chart__svg',
1234
+ LOADING_CLASS: 'c-chart__loading',
1235
+ LOADING_SPINNER_CLASS: 'c-chart__loading-spinner',
1236
+ LOADING_TEXT_CLASS: 'c-chart__loading-text',
1237
+ ERROR_CLASS: 'c-chart__error',
1238
+ ERROR_ICON_CLASS: 'c-chart__error-icon',
1239
+ ERROR_CONTENT_CLASS: 'c-chart__error-content',
1240
+ ERROR_MESSAGE_CLASS: 'c-chart__error-message',
1241
+ ERROR_DETAILS_CLASS: 'c-chart__error-details',
1242
+ EMPTY_CLASS: 'c-chart__empty',
1243
+ EMPTY_ICON_CLASS: 'c-chart__empty-icon',
1244
+ EMPTY_MESSAGE_CLASS: 'c-chart__empty-message',
1245
+ EMPTY_DETAILS_CLASS: 'c-chart__empty-details',
1246
+ DEFAULT_WIDTH: 800,
1247
+ DEFAULT_HEIGHT: 400,
1248
+ PIE_RADIUS_RATIO: 0.8,
1249
+ DEFAULT_COLORS: [
1250
+ 'var(--atomix-primary)',
1251
+ 'var(--atomix-secondary)',
1252
+ 'var(--atomix-success)',
1253
+ 'var(--atomix-info)',
1254
+ 'var(--atomix-warning)',
1255
+ 'var(--atomix-error)',
1256
+ 'var(--atomix-primary-5)',
1257
+ 'var(--atomix-primary-7)',
1258
+ 'var(--atomix-primary-3)',
1259
+ 'var(--atomix-gray-6)',
1260
+ 'var(--atomix-gray-8)',
1261
+ 'var(--atomix-gray-4)',
1262
+ ],
1263
+ TYPE_PREFIX: 'c-chart--',
1264
+ SIZE_PREFIX: 'c-chart--',
1265
+ VARIANT_PREFIX: 'c-chart--',
1266
+ LOADING_STATE_CLASS: 'c-chart--loading',
1267
+ ERROR_STATE_CLASS: 'c-chart--error',
1268
+ CLASSES: {
1269
+ // Chart Types
1270
+ LINE: 'c-chart--line',
1271
+ AREA: 'c-chart--area',
1272
+ BAR: 'c-chart--bar',
1273
+ HORIZONTAL_BAR: 'c-chart--horizontal-bar',
1274
+ PIE: 'c-chart--pie',
1275
+ DONUT: 'c-chart--donut',
1276
+ DOUGHNUT: 'c-chart--doughnut',
1277
+ SCATTER: 'c-chart--scatter',
1278
+ RADAR: 'c-chart--radar',
1279
+ BUBBLE: 'c-chart--bubble',
1280
+ CANDLESTICK: 'c-chart--candlestick',
1281
+ GAUGE: 'c-chart--gauge',
1282
+ FUNNEL: 'c-chart--funnel',
1283
+ WATERFALL: 'c-chart--waterfall',
1284
+ HEATMAP: 'c-chart--heatmap',
1285
+ TREEMAP: 'c-chart--treemap',
1286
+
1287
+ // Sizes
1288
+ SM: 'c-chart--sm',
1289
+ MD: 'c-chart--md',
1290
+ LG: 'c-chart--lg',
1291
+ XL: 'c-chart--xl',
1292
+ FULL: 'c-chart--full',
1293
+
1294
+ // Variants
1295
+ PRIMARY: 'c-chart--primary',
1296
+ SECONDARY: 'c-chart--secondary',
1297
+ SUCCESS: 'c-chart--success',
1298
+ ERROR: 'c-chart--error',
1299
+ WARNING: 'c-chart--warning',
1300
+ INFO: 'c-chart--info',
1301
+
1302
+ // States
1303
+ LOADING: 'c-chart--loading',
1304
+ INTERACTIVE: 'c-chart--interactive',
1305
+ DISABLED: 'c-chart--disabled',
1306
+ FULLSCREEN: 'c-chart--fullscreen',
1307
+ MINIMIZED: 'c-chart--minimized',
1308
+
1309
+ // Legacy Support
1310
+ ADVANCED: 'c-chart--advanced',
1311
+
1312
+ // Toolbar sizes
1313
+ TOOLBAR_SM: 'c-chart__toolbar--sm',
1314
+ TOOLBAR_MD: 'c-chart__toolbar--md',
1315
+ TOOLBAR_LG: 'c-chart__toolbar--lg',
1316
+
1317
+ // Toolbar positions
1318
+ TOOLBAR_TOP: 'c-chart__toolbar--top',
1319
+ TOOLBAR_BOTTOM: 'c-chart__toolbar--bottom',
1320
+ TOOLBAR_LEFT: 'c-chart__toolbar--left',
1321
+ TOOLBAR_RIGHT: 'c-chart__toolbar--right',
1322
+
1323
+ // Action states
1324
+ ACTION_ACTIVE: 'c-chart__action--active',
1325
+ ACTION_DISABLED: 'c-chart__action--disabled',
1326
+ ACTION_PRIMARY: 'c-chart__action--primary',
1327
+ ACTION_SECONDARY: 'c-chart__action--secondary',
1328
+ ACTION_SUCCESS: 'c-chart__action--success',
1329
+ ACTION_INFO: 'c-chart__action--info',
1330
+ ACTION_WARNING: 'c-chart__action--warning',
1331
+ ACTION_ERROR: 'c-chart__action--error',
1332
+ },
1333
+
1334
+ // Toolbar configuration
1335
+ TOOLBAR: {
1336
+ SIZES: ['sm', 'md', 'lg'] as const,
1337
+ POSITIONS: ['top', 'bottom', 'left', 'right'] as const,
1338
+ ACTION_VARIANTS: ['primary', 'secondary', 'success', 'info', 'warning', 'error'] as const,
1339
+ },
1340
+ };
1341
+
1342
+ /**
1343
+ * CodeSnippet-specific constants
1344
+ */
1345
+ export const CODE_SNIPPET = {
1346
+ BASE_CLASS: 'c-code-snippet',
1347
+ CONTAINER_CLASS: 'c-code-snippet__container',
1348
+ HEADER_CLASS: 'c-code-snippet__header',
1349
+ LANGUAGE_CLASS: 'c-code-snippet__language',
1350
+ ACTIONS_CLASS: 'c-code-snippet__actions',
1351
+ ACTION_CLASS: 'c-code-snippet__action',
1352
+ CONTENT_CLASS: 'c-code-snippet__content',
1353
+ CODE_CLASS: 'c-code-snippet__content__code',
1354
+ LINE_NUMBER_CLASS: 'c-code-snippet__content__line-number',
1355
+ COPY_FEEDBACK_CLASS: 'c-code-snippet__copy-feedback',
1356
+
1357
+ // Modifier classes
1358
+ MODIFIERS: {
1359
+ FULLSCREEN: 'c-code-snippet__container--fullscreen',
1360
+ WRAP: 'c-code-snippet__content--wrap',
1361
+ LIGHT: 'c-code-snippet__container--light',
1362
+ DARK: 'c-code-snippet__container--dark',
1363
+ },
1364
+
1365
+ // Action states
1366
+ ACTION_STATES: {
1367
+ ACTIVE: 'c-code-snippet__action--active',
1368
+ DISABLED: 'c-code-snippet__action--disabled',
1369
+ },
1370
+
1371
+ // Copy feedback states
1372
+ COPY_FEEDBACK_STATES: {
1373
+ VISIBLE: 'c-code-snippet__copy-feedback--visible',
1374
+ },
1375
+
1376
+ // Theme variants
1377
+ THEMES: {
1378
+ LIGHT: 'light',
1379
+ DARK: 'dark',
1380
+ AUTO: 'auto',
1381
+ } as const,
1382
+
1383
+ // Default props
1384
+ DEFAULTS: {
1385
+ SHOW_LINE_NUMBERS: true,
1386
+ WRAP_LINES: false,
1387
+ ENABLE_FULLSCREEN: true,
1388
+ ENABLE_COPY: true,
1389
+ SHOW_TOOLBAR: true,
1390
+ THEME: 'light' as const,
1391
+ },
1392
+
1393
+ // Accessibility
1394
+ ARIA_LABELS: {
1395
+ COPY: 'Copy code to clipboard',
1396
+ WRAP_LINES: 'Toggle line wrapping',
1397
+ FULLSCREEN: 'Toggle fullscreen mode',
1398
+ LANGUAGE: 'Code language',
1399
+ },
1400
+ };
1401
+
1402
+ /**
1403
+ * Block-specific constants
1404
+ */
1405
+ export const BLOCK = {
1406
+ BASE_CLASS: 'o-block',
1407
+ SPACING_PREFIX: 'o-block--',
1408
+ CLASSES: {
1409
+ SPACING_XS: 'o-block--xs',
1410
+ SPACING_SM: 'o-block--sm',
1411
+ SPACING_MD: 'o-block--md',
1412
+ SPACING_LG: 'o-block--lg',
1413
+ SPACING_XL: 'o-block--xl',
1414
+ SPACING_NONE: 'o-block--no-spacing',
1415
+ FULL_WIDTH: 'o-block--full-width',
1416
+ BG_PRIMARY: 'o-block--primary',
1417
+ BG_SECONDARY: 'o-block--secondary',
1418
+ BG_TERTIARY: 'o-block--tertiary',
1419
+ BG_INVERT: 'o-block--invert',
1420
+ BG_BRAND: 'o-block--brand',
1421
+ BG_ERROR: 'o-block--error',
1422
+ BG_SUCCESS: 'o-block--success',
1423
+ BG_WARNING: 'o-block--warning',
1424
+ BG_INFO: 'o-block--info',
1425
+ BG_LIGHT: 'o-block--light',
1426
+ BG_DARK: 'o-block--dark',
1427
+ },
1428
+
1429
+ SPACING: {
1430
+ SIZES: ['xs', 'sm', 'md', 'lg', 'xl', 'none'] as const,
1431
+ DEFAULT: 'md' as const,
1432
+ },
1433
+ };