@helpwave/hightide 0.1.26 → 0.1.28

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 (336) hide show
  1. package/dist/coloring/index.d.mts +2 -0
  2. package/dist/coloring/index.d.ts +2 -0
  3. package/dist/coloring/index.js +85 -0
  4. package/dist/coloring/index.js.map +1 -0
  5. package/dist/coloring/index.mjs +48 -0
  6. package/dist/coloring/index.mjs.map +1 -0
  7. package/dist/components/branding/index.d.mts +3 -0
  8. package/dist/components/branding/index.d.ts +3 -0
  9. package/dist/components/branding/index.js +140 -0
  10. package/dist/components/branding/index.js.map +1 -0
  11. package/dist/components/branding/index.mjs +104 -0
  12. package/dist/components/branding/index.mjs.map +1 -0
  13. package/dist/components/date/DatePicker.js +1 -1
  14. package/dist/components/date/DatePicker.js.map +1 -1
  15. package/dist/components/date/DatePicker.mjs +1 -1
  16. package/dist/components/date/DatePicker.mjs.map +1 -1
  17. package/dist/components/date/YearMonthPicker.js +1 -1
  18. package/dist/components/date/YearMonthPicker.js.map +1 -1
  19. package/dist/components/date/YearMonthPicker.mjs +1 -1
  20. package/dist/components/date/YearMonthPicker.mjs.map +1 -1
  21. package/dist/components/date/index.d.mts +10 -0
  22. package/dist/components/date/index.d.ts +10 -0
  23. package/dist/components/date/index.js +1168 -0
  24. package/dist/components/date/index.js.map +1 -0
  25. package/dist/components/date/index.mjs +1124 -0
  26. package/dist/components/date/index.mjs.map +1 -0
  27. package/dist/components/dialog/ConfirmDialog.d.mts +1 -1
  28. package/dist/components/dialog/ConfirmDialog.d.ts +1 -1
  29. package/dist/components/dialog/ConfirmDialog.js +2 -2
  30. package/dist/components/dialog/ConfirmDialog.js.map +1 -1
  31. package/dist/components/dialog/ConfirmDialog.mjs +2 -2
  32. package/dist/components/dialog/ConfirmDialog.mjs.map +1 -1
  33. package/dist/components/dialog/Dialog.d.mts +1 -1
  34. package/dist/components/dialog/Dialog.d.ts +1 -1
  35. package/dist/components/dialog/Dialog.js +2 -2
  36. package/dist/components/dialog/Dialog.js.map +1 -1
  37. package/dist/components/dialog/Dialog.mjs +2 -2
  38. package/dist/components/dialog/Dialog.mjs.map +1 -1
  39. package/dist/components/dialog/DiscardChangesDialog.d.mts +1 -1
  40. package/dist/components/dialog/DiscardChangesDialog.d.ts +1 -1
  41. package/dist/components/dialog/DiscardChangesDialog.js +2 -2
  42. package/dist/components/dialog/DiscardChangesDialog.js.map +1 -1
  43. package/dist/components/dialog/DiscardChangesDialog.mjs +2 -2
  44. package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -1
  45. package/dist/components/dialog/InputDialog.d.mts +1 -1
  46. package/dist/components/dialog/InputDialog.d.ts +1 -1
  47. package/dist/components/dialog/InputDialog.js +2 -2
  48. package/dist/components/dialog/InputDialog.js.map +1 -1
  49. package/dist/components/dialog/InputDialog.mjs +2 -2
  50. package/dist/components/dialog/InputDialog.mjs.map +1 -1
  51. package/dist/components/dialog/LanguageDialog.d.mts +1 -1
  52. package/dist/components/dialog/LanguageDialog.d.ts +1 -1
  53. package/dist/components/dialog/LanguageDialog.js +28 -15
  54. package/dist/components/dialog/LanguageDialog.js.map +1 -1
  55. package/dist/components/dialog/LanguageDialog.mjs +28 -15
  56. package/dist/components/dialog/LanguageDialog.mjs.map +1 -1
  57. package/dist/components/dialog/ThemeDialog.d.mts +1 -1
  58. package/dist/components/dialog/ThemeDialog.d.ts +1 -1
  59. package/dist/components/dialog/ThemeDialog.js +69 -33
  60. package/dist/components/dialog/ThemeDialog.js.map +1 -1
  61. package/dist/components/dialog/ThemeDialog.mjs +60 -24
  62. package/dist/components/dialog/ThemeDialog.mjs.map +1 -1
  63. package/dist/components/dialog/index.d.mts +1 -1
  64. package/dist/components/dialog/index.d.ts +1 -1
  65. package/dist/components/dialog/index.js +61 -25
  66. package/dist/components/dialog/index.js.map +1 -1
  67. package/dist/components/dialog/index.mjs +61 -25
  68. package/dist/components/dialog/index.mjs.map +1 -1
  69. package/dist/components/form/index.d.mts +5 -0
  70. package/dist/components/form/index.d.ts +5 -0
  71. package/dist/components/form/index.js +100 -0
  72. package/dist/components/form/index.js.map +1 -0
  73. package/dist/components/form/index.mjs +64 -0
  74. package/dist/components/form/index.mjs.map +1 -0
  75. package/dist/components/icons-and-geometry/index.d.mts +7 -0
  76. package/dist/components/icons-and-geometry/index.d.ts +7 -0
  77. package/dist/components/icons-and-geometry/index.js +3955 -0
  78. package/dist/components/icons-and-geometry/index.js.map +1 -0
  79. package/dist/components/icons-and-geometry/index.mjs +3939 -0
  80. package/dist/components/icons-and-geometry/index.mjs.map +1 -0
  81. package/dist/components/index.d.mts +83 -0
  82. package/dist/components/index.d.ts +83 -0
  83. package/dist/components/index.js +15471 -0
  84. package/dist/components/index.js.map +1 -0
  85. package/dist/components/index.mjs +15377 -0
  86. package/dist/components/index.mjs.map +1 -0
  87. package/dist/components/layout/Carousel.d.mts +33 -0
  88. package/dist/components/layout/Carousel.d.ts +33 -0
  89. package/dist/components/layout/Carousel.js +684 -0
  90. package/dist/components/layout/Carousel.js.map +1 -0
  91. package/dist/components/layout/Carousel.mjs +659 -0
  92. package/dist/components/layout/Carousel.mjs.map +1 -0
  93. package/dist/components/{layout-and-navigation → layout}/Chip.js +1 -1
  94. package/dist/components/layout/Chip.js.map +1 -0
  95. package/dist/components/{layout-and-navigation → layout}/Chip.mjs +1 -1
  96. package/dist/components/layout/Chip.mjs.map +1 -0
  97. package/dist/components/{layout-and-navigation → layout}/DividerInserter.js +1 -1
  98. package/dist/components/layout/DividerInserter.js.map +1 -0
  99. package/dist/components/{layout-and-navigation → layout}/DividerInserter.mjs +1 -1
  100. package/dist/components/layout/DividerInserter.mjs.map +1 -0
  101. package/dist/components/{layout-and-navigation → layout}/Expandable.js +2 -2
  102. package/dist/components/layout/Expandable.js.map +1 -0
  103. package/dist/components/{layout-and-navigation → layout}/Expandable.mjs +2 -2
  104. package/dist/components/layout/Expandable.mjs.map +1 -0
  105. package/dist/components/{layout-and-navigation → layout}/FAQSection.js +5 -5
  106. package/dist/components/layout/FAQSection.js.map +1 -0
  107. package/dist/components/{layout-and-navigation → layout}/FAQSection.mjs +5 -5
  108. package/dist/components/layout/FAQSection.mjs.map +1 -0
  109. package/dist/components/{layout-and-navigation → layout}/FloatingContainer.js +2 -2
  110. package/dist/components/layout/FloatingContainer.js.map +1 -0
  111. package/dist/components/{layout-and-navigation → layout}/FloatingContainer.mjs +2 -2
  112. package/dist/components/layout/FloatingContainer.mjs.map +1 -0
  113. package/dist/components/{layout-and-navigation → layout}/ListBox.js +2 -2
  114. package/dist/components/layout/ListBox.js.map +1 -0
  115. package/dist/components/{layout-and-navigation → layout}/ListBox.mjs +2 -2
  116. package/dist/components/layout/ListBox.mjs.map +1 -0
  117. package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.js +1 -1
  118. package/dist/components/layout/MarkdownInterpreter.js.map +1 -0
  119. package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.mjs +1 -1
  120. package/dist/components/layout/MarkdownInterpreter.mjs.map +1 -0
  121. package/dist/components/{layout-and-navigation → layout}/ScrollArea.js +2 -2
  122. package/dist/components/layout/ScrollArea.js.map +1 -0
  123. package/dist/components/{layout-and-navigation → layout}/ScrollArea.mjs +1 -1
  124. package/dist/components/layout/ScrollArea.mjs.map +1 -0
  125. package/dist/components/{layout-and-navigation → layout}/TextImage.js +3 -3
  126. package/dist/components/layout/TextImage.js.map +1 -0
  127. package/dist/components/{layout-and-navigation → layout}/TextImage.mjs +2 -2
  128. package/dist/components/layout/TextImage.mjs.map +1 -0
  129. package/dist/components/{layout-and-navigation → layout}/VerticalDivider.js +1 -1
  130. package/dist/components/layout/VerticalDivider.js.map +1 -0
  131. package/dist/components/{layout-and-navigation → layout}/VerticalDivider.mjs +1 -1
  132. package/dist/components/layout/VerticalDivider.mjs.map +1 -0
  133. package/dist/components/layout/index.d.mts +18 -0
  134. package/dist/components/layout/index.d.ts +18 -0
  135. package/dist/components/layout/index.js +3111 -0
  136. package/dist/components/layout/index.js.map +1 -0
  137. package/dist/components/layout/index.mjs +3064 -0
  138. package/dist/components/layout/index.mjs.map +1 -0
  139. package/dist/components/loading-states/index.d.mts +12 -0
  140. package/dist/components/loading-states/index.d.ts +12 -0
  141. package/dist/components/loading-states/index.js +614 -0
  142. package/dist/components/loading-states/index.js.map +1 -0
  143. package/dist/components/loading-states/index.mjs +573 -0
  144. package/dist/components/loading-states/index.mjs.map +1 -0
  145. package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.js +1 -1
  146. package/dist/components/navigation/BreadCrumb.js.map +1 -0
  147. package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.mjs +1 -1
  148. package/dist/components/navigation/BreadCrumb.mjs.map +1 -0
  149. package/dist/components/navigation/Navigation.d.mts +21 -0
  150. package/dist/components/navigation/Navigation.d.ts +21 -0
  151. package/dist/components/navigation/Navigation.js +4018 -0
  152. package/dist/components/navigation/Navigation.js.map +1 -0
  153. package/dist/components/navigation/Navigation.mjs +4012 -0
  154. package/dist/components/navigation/Navigation.mjs.map +1 -0
  155. package/dist/components/{layout-and-navigation → navigation}/Pagination.js +3 -3
  156. package/dist/components/navigation/Pagination.js.map +1 -0
  157. package/dist/components/{layout-and-navigation → navigation}/Pagination.mjs +3 -3
  158. package/dist/components/navigation/Pagination.mjs.map +1 -0
  159. package/dist/components/{layout-and-navigation → navigation}/StepperBar.js +3 -3
  160. package/dist/components/navigation/StepperBar.js.map +1 -0
  161. package/dist/components/{layout-and-navigation → navigation}/StepperBar.mjs +3 -3
  162. package/dist/components/navigation/StepperBar.mjs.map +1 -0
  163. package/dist/components/navigation/index.d.mts +9 -0
  164. package/dist/components/navigation/index.d.ts +9 -0
  165. package/dist/components/navigation/index.js +4660 -0
  166. package/dist/components/navigation/index.js.map +1 -0
  167. package/dist/components/navigation/index.mjs +4648 -0
  168. package/dist/components/navigation/index.mjs.map +1 -0
  169. package/dist/components/properties/MultiSelectProperty.js +27 -14
  170. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  171. package/dist/components/properties/MultiSelectProperty.mjs +27 -14
  172. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  173. package/dist/components/properties/SelectProperty.js +27 -14
  174. package/dist/components/properties/SelectProperty.js.map +1 -1
  175. package/dist/components/properties/SelectProperty.mjs +27 -14
  176. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  177. package/dist/components/properties/index.d.mts +12 -0
  178. package/dist/components/properties/index.d.ts +12 -0
  179. package/dist/components/properties/index.js +2983 -0
  180. package/dist/components/properties/index.js.map +1 -0
  181. package/dist/components/properties/index.mjs +2951 -0
  182. package/dist/components/properties/index.mjs.map +1 -0
  183. package/dist/components/table/Table.js +1 -1
  184. package/dist/components/table/Table.js.map +1 -1
  185. package/dist/components/table/Table.mjs +1 -1
  186. package/dist/components/table/Table.mjs.map +1 -1
  187. package/dist/components/table/index.d.mts +10 -0
  188. package/dist/components/table/index.d.ts +10 -0
  189. package/dist/components/table/index.js +2329 -0
  190. package/dist/components/table/index.js.map +1 -0
  191. package/dist/components/table/index.mjs +2293 -0
  192. package/dist/components/table/index.mjs.map +1 -0
  193. package/dist/components/user-action/DateAndTimePicker.js +1 -1
  194. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  195. package/dist/components/user-action/DateAndTimePicker.mjs +1 -1
  196. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  197. package/dist/components/user-action/index.d.mts +30 -0
  198. package/dist/components/user-action/index.d.ts +30 -0
  199. package/dist/components/user-action/index.js +4257 -0
  200. package/dist/components/user-action/index.js.map +1 -0
  201. package/dist/components/user-action/index.mjs +4195 -0
  202. package/dist/components/user-action/index.mjs.map +1 -0
  203. package/dist/components/user-action/input/index.d.mts +6 -0
  204. package/dist/components/user-action/input/index.d.ts +6 -0
  205. package/dist/components/user-action/input/index.js +398 -0
  206. package/dist/components/user-action/input/index.js.map +1 -0
  207. package/dist/components/user-action/input/index.mjs +357 -0
  208. package/dist/components/user-action/input/index.mjs.map +1 -0
  209. package/dist/components/user-action/select/Select.d.mts +5 -1
  210. package/dist/components/user-action/select/Select.d.ts +5 -1
  211. package/dist/components/user-action/select/Select.js +27 -14
  212. package/dist/components/user-action/select/Select.js.map +1 -1
  213. package/dist/components/user-action/select/Select.mjs +27 -14
  214. package/dist/components/user-action/select/Select.mjs.map +1 -1
  215. package/dist/components/user-action/select/index.d.mts +4 -0
  216. package/dist/components/user-action/select/index.d.ts +4 -0
  217. package/dist/components/user-action/select/index.js +1369 -0
  218. package/dist/components/user-action/select/index.js.map +1 -0
  219. package/dist/components/user-action/select/index.mjs +1333 -0
  220. package/dist/components/user-action/select/index.mjs.map +1 -0
  221. package/dist/components/utils/index.d.mts +4 -0
  222. package/dist/components/utils/index.d.ts +4 -0
  223. package/dist/components/utils/index.js +302 -0
  224. package/dist/components/utils/index.js.map +1 -0
  225. package/dist/components/utils/index.mjs +275 -0
  226. package/dist/components/utils/index.mjs.map +1 -0
  227. package/dist/hooks/focus/index.d.mts +6 -0
  228. package/dist/hooks/focus/index.d.ts +6 -0
  229. package/dist/hooks/focus/index.js +379 -0
  230. package/dist/hooks/focus/index.js.map +1 -0
  231. package/dist/hooks/focus/index.mjs +339 -0
  232. package/dist/hooks/focus/index.mjs.map +1 -0
  233. package/dist/hooks/index.d.mts +16 -0
  234. package/dist/hooks/index.d.ts +16 -0
  235. package/dist/hooks/index.js +844 -0
  236. package/dist/hooks/index.js.map +1 -0
  237. package/dist/hooks/index.mjs +794 -0
  238. package/dist/hooks/index.mjs.map +1 -0
  239. package/dist/index.d.mts +110 -0
  240. package/dist/index.d.ts +110 -0
  241. package/dist/index.js +16101 -0
  242. package/dist/index.js.map +1 -0
  243. package/dist/index.mjs +15941 -0
  244. package/dist/index.mjs.map +1 -0
  245. package/dist/localization/defaults/index.d.mts +4 -0
  246. package/dist/localization/defaults/index.d.ts +4 -0
  247. package/dist/localization/defaults/index.js +223 -0
  248. package/dist/localization/defaults/index.js.map +1 -0
  249. package/dist/localization/defaults/index.mjs +195 -0
  250. package/dist/localization/defaults/index.mjs.map +1 -0
  251. package/dist/localization/index.d.mts +7 -0
  252. package/dist/localization/index.d.ts +7 -0
  253. package/dist/localization/index.js +415 -0
  254. package/dist/localization/index.js.map +1 -0
  255. package/dist/localization/index.mjs +380 -0
  256. package/dist/localization/index.mjs.map +1 -0
  257. package/dist/style/globals.css +63 -10
  258. package/dist/style/uncompiled/globals.css +5 -4
  259. package/dist/style/uncompiled/utitlity/shadow.css +4 -0
  260. package/dist/theming/index.d.mts +5 -0
  261. package/dist/theming/index.d.ts +5 -0
  262. package/dist/theming/index.js +174 -0
  263. package/dist/theming/index.js.map +1 -0
  264. package/dist/theming/index.mjs +145 -0
  265. package/dist/theming/index.mjs.map +1 -0
  266. package/dist/theming/useTheme.d.mts +3 -1
  267. package/dist/theming/useTheme.d.ts +3 -1
  268. package/dist/theming/useTheme.js +40 -17
  269. package/dist/theming/useTheme.js.map +1 -1
  270. package/dist/theming/useTheme.mjs +38 -15
  271. package/dist/theming/useTheme.mjs.map +1 -1
  272. package/dist/utils/index.d.mts +15 -0
  273. package/dist/utils/index.d.ts +15 -0
  274. package/dist/utils/index.js +553 -0
  275. package/dist/utils/index.js.map +1 -0
  276. package/dist/utils/index.mjs +493 -0
  277. package/dist/utils/index.mjs.map +1 -0
  278. package/package.json +25 -24
  279. package/dist/components/layout-and-navigation/BreadCrumb.js.map +0 -1
  280. package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +0 -1
  281. package/dist/components/layout-and-navigation/Carousel.d.mts +0 -25
  282. package/dist/components/layout-and-navigation/Carousel.d.ts +0 -25
  283. package/dist/components/layout-and-navigation/Carousel.js +0 -643
  284. package/dist/components/layout-and-navigation/Carousel.js.map +0 -1
  285. package/dist/components/layout-and-navigation/Carousel.mjs +0 -609
  286. package/dist/components/layout-and-navigation/Carousel.mjs.map +0 -1
  287. package/dist/components/layout-and-navigation/Chip.js.map +0 -1
  288. package/dist/components/layout-and-navigation/Chip.mjs.map +0 -1
  289. package/dist/components/layout-and-navigation/DividerInserter.js.map +0 -1
  290. package/dist/components/layout-and-navigation/DividerInserter.mjs.map +0 -1
  291. package/dist/components/layout-and-navigation/Expandable.js.map +0 -1
  292. package/dist/components/layout-and-navigation/Expandable.mjs.map +0 -1
  293. package/dist/components/layout-and-navigation/FAQSection.js.map +0 -1
  294. package/dist/components/layout-and-navigation/FAQSection.mjs.map +0 -1
  295. package/dist/components/layout-and-navigation/FloatingContainer.js.map +0 -1
  296. package/dist/components/layout-and-navigation/FloatingContainer.mjs.map +0 -1
  297. package/dist/components/layout-and-navigation/ListBox.js.map +0 -1
  298. package/dist/components/layout-and-navigation/ListBox.mjs.map +0 -1
  299. package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +0 -1
  300. package/dist/components/layout-and-navigation/MarkdownInterpreter.mjs.map +0 -1
  301. package/dist/components/layout-and-navigation/Pagination.js.map +0 -1
  302. package/dist/components/layout-and-navigation/Pagination.mjs.map +0 -1
  303. package/dist/components/layout-and-navigation/ScrollArea.js.map +0 -1
  304. package/dist/components/layout-and-navigation/ScrollArea.mjs.map +0 -1
  305. package/dist/components/layout-and-navigation/StepperBar.js.map +0 -1
  306. package/dist/components/layout-and-navigation/StepperBar.mjs.map +0 -1
  307. package/dist/components/layout-and-navigation/TextImage.js.map +0 -1
  308. package/dist/components/layout-and-navigation/TextImage.mjs.map +0 -1
  309. package/dist/components/layout-and-navigation/VerticalDivider.js.map +0 -1
  310. package/dist/components/layout-and-navigation/VerticalDivider.mjs.map +0 -1
  311. /package/dist/components/{layout-and-navigation → layout}/Chip.d.mts +0 -0
  312. /package/dist/components/{layout-and-navigation → layout}/Chip.d.ts +0 -0
  313. /package/dist/components/{layout-and-navigation → layout}/DividerInserter.d.mts +0 -0
  314. /package/dist/components/{layout-and-navigation → layout}/DividerInserter.d.ts +0 -0
  315. /package/dist/components/{layout-and-navigation → layout}/Expandable.d.mts +0 -0
  316. /package/dist/components/{layout-and-navigation → layout}/Expandable.d.ts +0 -0
  317. /package/dist/components/{layout-and-navigation → layout}/FAQSection.d.mts +0 -0
  318. /package/dist/components/{layout-and-navigation → layout}/FAQSection.d.ts +0 -0
  319. /package/dist/components/{layout-and-navigation → layout}/FloatingContainer.d.mts +0 -0
  320. /package/dist/components/{layout-and-navigation → layout}/FloatingContainer.d.ts +0 -0
  321. /package/dist/components/{layout-and-navigation → layout}/ListBox.d.mts +0 -0
  322. /package/dist/components/{layout-and-navigation → layout}/ListBox.d.ts +0 -0
  323. /package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.d.mts +0 -0
  324. /package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.d.ts +0 -0
  325. /package/dist/components/{layout-and-navigation → layout}/ScrollArea.d.mts +0 -0
  326. /package/dist/components/{layout-and-navigation → layout}/ScrollArea.d.ts +0 -0
  327. /package/dist/components/{layout-and-navigation → layout}/TextImage.d.mts +0 -0
  328. /package/dist/components/{layout-and-navigation → layout}/TextImage.d.ts +0 -0
  329. /package/dist/components/{layout-and-navigation → layout}/VerticalDivider.d.mts +0 -0
  330. /package/dist/components/{layout-and-navigation → layout}/VerticalDivider.d.ts +0 -0
  331. /package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.d.mts +0 -0
  332. /package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.d.ts +0 -0
  333. /package/dist/components/{layout-and-navigation → navigation}/Pagination.d.mts +0 -0
  334. /package/dist/components/{layout-and-navigation → navigation}/Pagination.d.ts +0 -0
  335. /package/dist/components/{layout-and-navigation → navigation}/StepperBar.d.mts +0 -0
  336. /package/dist/components/{layout-and-navigation → navigation}/StepperBar.d.ts +0 -0
@@ -0,0 +1,684 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/layout/Carousel.tsx
30
+ var Carousel_exports = {};
31
+ __export(Carousel_exports, {
32
+ Carousel: () => Carousel,
33
+ CarouselSlide: () => CarouselSlide,
34
+ default: () => CarouselTabs
35
+ });
36
+ module.exports = __toCommonJS(Carousel_exports);
37
+ var import_react4 = require("react");
38
+ var import_clsx2 = __toESM(require("clsx"));
39
+ var import_lucide_react = require("lucide-react");
40
+
41
+ // src/utils/array.ts
42
+ var defaultRangeOptions = {
43
+ allowEmptyRange: false,
44
+ stepSize: 1,
45
+ exclusiveStart: false,
46
+ exclusiveEnd: true
47
+ };
48
+ var range = (endOrRange, options) => {
49
+ const { allowEmptyRange, stepSize, exclusiveStart, exclusiveEnd } = { ...defaultRangeOptions, ...options };
50
+ let start = 0;
51
+ let end;
52
+ if (typeof endOrRange === "number") {
53
+ end = endOrRange;
54
+ } else {
55
+ start = endOrRange[0];
56
+ end = endOrRange[1];
57
+ }
58
+ if (!exclusiveEnd) {
59
+ end -= 1;
60
+ }
61
+ if (exclusiveStart) {
62
+ start += 1;
63
+ }
64
+ if (end - 1 < start) {
65
+ if (!allowEmptyRange) {
66
+ console.warn(`range: end (${end}) < start (${start}) should be allowed explicitly, set options.allowEmptyRange to true`);
67
+ }
68
+ return [];
69
+ }
70
+ return Array.from({ length: end - start }, (_, index) => index * stepSize + start);
71
+ };
72
+ var createLoopingListWithIndex = (list, startIndex = 0, length = 0, forwards = true) => {
73
+ if (length < 0) {
74
+ console.warn(`createLoopingList: length must be >= 0, given ${length}`);
75
+ } else if (length === 0) {
76
+ length = list.length;
77
+ }
78
+ const returnList = [];
79
+ if (forwards) {
80
+ for (let i = startIndex; returnList.length < length; i = (i + 1) % list.length) {
81
+ returnList.push([i, list[i]]);
82
+ }
83
+ } else {
84
+ for (let i = startIndex; returnList.length < length; i = i === 0 ? i = list.length - 1 : i - 1) {
85
+ returnList.push([i, list[i]]);
86
+ }
87
+ }
88
+ return returnList;
89
+ };
90
+
91
+ // src/components/user-action/Button.tsx
92
+ var import_react = require("react");
93
+ var import_clsx = __toESM(require("clsx"));
94
+ var import_jsx_runtime = require("react/jsx-runtime");
95
+ var ButtonColorUtil = {
96
+ solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
97
+ text: ["primary", "negative", "neutral"],
98
+ outline: ["primary"]
99
+ };
100
+ var IconButtonUtil = {
101
+ icon: [...ButtonColorUtil.solid, "transparent"]
102
+ };
103
+ var paddingMapping = {
104
+ small: "btn-sm",
105
+ medium: "btn-md",
106
+ large: "btn-lg"
107
+ };
108
+ var iconPaddingMapping = {
109
+ tiny: "icon-btn-xs",
110
+ small: "icon-btn-sm",
111
+ medium: "icon-btn-md",
112
+ large: "icon-btn-lg"
113
+ };
114
+ var ButtonUtil = {
115
+ paddingMapping,
116
+ iconPaddingMapping
117
+ };
118
+ var SolidButton = (0, import_react.forwardRef)(function SolidButton2({
119
+ children,
120
+ color = "primary",
121
+ size = "medium",
122
+ startIcon,
123
+ endIcon,
124
+ onClick,
125
+ className,
126
+ ...restProps
127
+ }, ref) {
128
+ const colorClasses = {
129
+ primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
130
+ secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
131
+ tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
132
+ positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
133
+ warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
134
+ negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
135
+ neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
136
+ }[color];
137
+ const iconColorClasses = {
138
+ primary: "not-group-disabled:text-button-solid-primary-icon",
139
+ secondary: "not-group-disabled:text-button-solid-secondary-icon",
140
+ tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
141
+ positive: "not-group-disabled:text-button-solid-positive-icon",
142
+ warning: "not-group-disabled:text-button-solid-warning-icon",
143
+ negative: "not-group-disabled:text-button-solid-negative-icon",
144
+ neutral: "not-group-disabled:text-button-solid-neutral-icon"
145
+ }[color];
146
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
147
+ "button",
148
+ {
149
+ ref,
150
+ onClick,
151
+ className: (0, import_clsx.default)(
152
+ "group font-semibold",
153
+ colorClasses,
154
+ "not-disabled:hover:brightness-90",
155
+ "disabled:text-disabled-text disabled:bg-disabled-background",
156
+ ButtonUtil.paddingMapping[size],
157
+ className
158
+ ),
159
+ ...restProps,
160
+ children: [
161
+ startIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
162
+ "span",
163
+ {
164
+ className: (0, import_clsx.default)(
165
+ iconColorClasses,
166
+ "group-disabled:text-disabled-icon"
167
+ ),
168
+ children: startIcon
169
+ }
170
+ ),
171
+ children,
172
+ endIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
+ "span",
174
+ {
175
+ className: (0, import_clsx.default)(
176
+ iconColorClasses,
177
+ "group-disabled:text-disabled-icon"
178
+ ),
179
+ children: endIcon
180
+ }
181
+ )
182
+ ]
183
+ }
184
+ );
185
+ });
186
+ var IconButton = (0, import_react.forwardRef)(function IconButton2({
187
+ children,
188
+ color = "primary",
189
+ size = "medium",
190
+ className,
191
+ ...restProps
192
+ }, ref) {
193
+ const colorClasses = {
194
+ primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
195
+ secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
196
+ tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
197
+ positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
198
+ warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
199
+ negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
200
+ neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
201
+ transparent: "not-disabled:bg-transparent"
202
+ }[color];
203
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
204
+ "button",
205
+ {
206
+ ref,
207
+ className: (0, import_clsx.default)(
208
+ colorClasses,
209
+ "not-disabled:hover:brightness-90",
210
+ "disabled:text-disabled-text",
211
+ {
212
+ "disabled:bg-disabled-background": color !== "transparent",
213
+ "disabled:opacity-70": color === "transparent",
214
+ "not-disabled:hover:bg-button-text-hover-background": color === "transparent"
215
+ },
216
+ ButtonUtil.iconPaddingMapping[size],
217
+ className
218
+ ),
219
+ ...restProps,
220
+ children
221
+ }
222
+ );
223
+ });
224
+
225
+ // src/localization/LanguageProvider.tsx
226
+ var import_react3 = require("react");
227
+
228
+ // src/hooks/useLocalStorage.ts
229
+ var import_react2 = require("react");
230
+
231
+ // src/localization/util.ts
232
+ var languages = ["en", "de"];
233
+ var languagesLocalNames = {
234
+ en: "English",
235
+ de: "Deutsch"
236
+ };
237
+ var DEFAULT_LANGUAGE = "en";
238
+ var LanguageUtil = {
239
+ languages,
240
+ DEFAULT_LANGUAGE,
241
+ languagesLocalNames
242
+ };
243
+
244
+ // src/localization/LanguageProvider.tsx
245
+ var import_jsx_runtime2 = require("react/jsx-runtime");
246
+ var LanguageContext = (0, import_react3.createContext)({
247
+ language: LanguageUtil.DEFAULT_LANGUAGE,
248
+ setLanguage: (v) => v
249
+ });
250
+ var useLanguage = () => (0, import_react3.useContext)(LanguageContext);
251
+
252
+ // src/localization/useTranslation.ts
253
+ var TranslationPluralCount = {
254
+ zero: 0,
255
+ one: 1,
256
+ two: 2,
257
+ few: 3,
258
+ many: 11,
259
+ other: -1
260
+ };
261
+ var useTranslation = (translations, overwriteTranslation = {}) => {
262
+ const { language: languageProp, translation: overwrite } = overwriteTranslation;
263
+ const { language: inferredLanguage } = useLanguage();
264
+ const usedLanguage = languageProp ?? inferredLanguage;
265
+ const usedTranslations = [...translations];
266
+ if (overwrite) {
267
+ usedTranslations.push(overwrite);
268
+ }
269
+ return (key, options) => {
270
+ const { count, replacements } = { ...{ count: 0, replacements: {} }, ...options };
271
+ try {
272
+ for (let i = translations.length - 1; i >= 0; i--) {
273
+ const translation = translations[i];
274
+ const localizedTranslation = translation[usedLanguage];
275
+ if (!localizedTranslation) {
276
+ continue;
277
+ }
278
+ const value = localizedTranslation[key];
279
+ if (!value) {
280
+ continue;
281
+ }
282
+ let forProcessing;
283
+ if (typeof value !== "string") {
284
+ if (count === TranslationPluralCount.zero && value?.zero) {
285
+ forProcessing = value.zero;
286
+ } else if (count === TranslationPluralCount.one && value?.one) {
287
+ forProcessing = value.one;
288
+ } else if (count === TranslationPluralCount.two && value?.two) {
289
+ forProcessing = value.two;
290
+ } else if (TranslationPluralCount.few <= count && count < TranslationPluralCount.many && value?.few) {
291
+ forProcessing = value.few;
292
+ } else if (count > TranslationPluralCount.many && value?.many) {
293
+ forProcessing = value.many;
294
+ } else {
295
+ forProcessing = value.other;
296
+ }
297
+ } else {
298
+ forProcessing = value;
299
+ }
300
+ forProcessing = forProcessing.replace(/\{\{(\w+)}}/g, (_, placeholder) => {
301
+ return replacements[placeholder] ?? `{{key:${placeholder}}}`;
302
+ });
303
+ return forProcessing;
304
+ }
305
+ } catch (e) {
306
+ console.error(e);
307
+ }
308
+ return `{{${usedLanguage}:${key}}}`;
309
+ };
310
+ };
311
+
312
+ // src/components/layout/Carousel.tsx
313
+ var import_jsx_runtime3 = require("react/jsx-runtime");
314
+ var CarouselContext = (0, import_react4.createContext)(null);
315
+ var useCarouselContext = () => {
316
+ const context = (0, import_react4.useContext)(CarouselContext);
317
+ if (!context) {
318
+ console.error("useCarouselContext must be used within CarouselContext");
319
+ }
320
+ return context;
321
+ };
322
+ var defaultCarouselTabTranslationType = {
323
+ en: {
324
+ showSlide: `Show Slide {{index}}`,
325
+ slideNavigation: "Slide navigation"
326
+ },
327
+ de: {
328
+ showSlide: "Zeige Slide {{index}}",
329
+ slideNavigation: "Slide Navigation"
330
+ }
331
+ };
332
+ function CarouselTabs({
333
+ onChange
334
+ }) {
335
+ const translation = useTranslation([
336
+ defaultCarouselTabTranslationType
337
+ ]);
338
+ const { id, slideCount, currentIndex, isLooping } = useCarouselContext();
339
+ const tabRefs = (0, import_react4.useRef)([]);
340
+ const handleKeyDown = (event, index) => {
341
+ let newIndex = index;
342
+ if (event.key === "ArrowRight") {
343
+ newIndex = isLooping ? (index + 1) % slideCount : Math.max(index + 1, slideCount - 1);
344
+ } else if (event.key === "ArrowLeft") {
345
+ newIndex = isLooping ? (index - 1 + slideCount) % slideCount : Math.max(index - 1, 0);
346
+ } else {
347
+ return;
348
+ }
349
+ event.preventDefault();
350
+ onChange(newIndex);
351
+ tabRefs.current[newIndex]?.focus();
352
+ };
353
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
354
+ "div",
355
+ {
356
+ className: "flex-row-1 items-center justify-center w-full my-2",
357
+ role: "tablist",
358
+ "aria-label": translation("slideNavigation"),
359
+ id: `${id}-tablist`,
360
+ children: range(slideCount).map((index) => {
361
+ const isSelected = currentIndex === index;
362
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
363
+ "button",
364
+ {
365
+ id: `${id}-tab-${index}`,
366
+ ref: (el) => tabRefs.current[index] = el,
367
+ onClick: () => onChange(index),
368
+ onKeyDown: (e) => handleKeyDown(e, index),
369
+ className: (0, import_clsx2.default)(
370
+ "w-8 min-w-8 h-3 min-h-3 first:rounded-l-md last:rounded-r-md",
371
+ {
372
+ "bg-carousel-dot-disabled hover:bg-carousel-dot-active": currentIndex !== index,
373
+ "bg-carousel-dot-active hover:brightness-90": currentIndex === index
374
+ }
375
+ ),
376
+ role: "tab",
377
+ tabIndex: isSelected ? 0 : -1,
378
+ "aria-label": translation("showSlide", { replacements: { index: (index + 1).toString() } }),
379
+ "aria-selected": isSelected,
380
+ "aria-controls": `slide-${index}`,
381
+ "aria-disabled": isSelected
382
+ },
383
+ index
384
+ );
385
+ })
386
+ }
387
+ );
388
+ }
389
+ var defaultCarouselSlideTranslationType = {
390
+ en: {
391
+ slide: "Slide",
392
+ slideOf: `Slide {{index}} of {{length}} slides`
393
+ },
394
+ de: {
395
+ slide: "Slide",
396
+ slideOf: `Slide {{index}} von {{length}} slides`
397
+ }
398
+ };
399
+ var CarouselSlide = (0, import_react4.forwardRef)(
400
+ function CarouselSlide2({
401
+ index,
402
+ ...props
403
+ }, ref) {
404
+ const translation = useTranslation([defaultCarouselSlideTranslationType]);
405
+ const { id, currentIndex, slideCount } = useCarouselContext();
406
+ const isSelected = currentIndex === index;
407
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
408
+ "div",
409
+ {
410
+ ...props,
411
+ ref,
412
+ id: `${id}-slide-${index}`,
413
+ className: (0, import_clsx2.default)("focus-style-none group/slide", props.className),
414
+ tabIndex: isSelected ? 0 : void 0,
415
+ role: "group",
416
+ "aria-roledescription": translation("slide"),
417
+ "aria-label": translation("slideOf", {
418
+ replacements: {
419
+ index: (index + 1).toString(),
420
+ length: slideCount.toString()
421
+ }
422
+ }),
423
+ "aria-hidden": isSelected ? void 0 : true
424
+ }
425
+ );
426
+ }
427
+ );
428
+ var defaultCarouselTranslationType = {
429
+ en: {
430
+ slide: "Slide",
431
+ carousel: "Carousel",
432
+ slideOf: `Slide {{index}} of {{length}} slides`,
433
+ chooseSlide: "Choose slide to display"
434
+ },
435
+ de: {
436
+ slide: "Slide",
437
+ carousel: "Karussell",
438
+ slideOf: `Slide {{index}} von {{length}} slides`,
439
+ chooseSlide: "W\xE4hle die angezeigte Slide aus"
440
+ }
441
+ };
442
+ var Carousel = ({
443
+ children,
444
+ animationTime = 200,
445
+ isLooping = false,
446
+ isAutoPlaying = false,
447
+ autoLoopingTimeOut = 5e3,
448
+ autoLoopAnimationTime = 1e3,
449
+ hintNext = false,
450
+ arrows = false,
451
+ dots = true,
452
+ blurColor = "from-background",
453
+ heightClassName = "h-96",
454
+ widthClassName = "w-[70%] desktop:w-1/2",
455
+ slideContainerProps,
456
+ ...props
457
+ }) => {
458
+ const translation = useTranslation([defaultCarouselTranslationType]);
459
+ const slideRefs = (0, import_react4.useRef)([]);
460
+ const [currentIndex, setCurrentIndex] = (0, import_react4.useState)(0);
461
+ const [hasFocus, setHasFocus] = (0, import_react4.useState)(false);
462
+ const [dragState, setDragState] = (0, import_react4.useState)();
463
+ const isPaused = hasFocus;
464
+ const carouselContainerRef = (0, import_react4.useRef)(null);
465
+ const [disableClick, setDisableClick] = (0, import_react4.useState)(false);
466
+ const timeOut = (0, import_react4.useRef)(void 0);
467
+ const length = (0, import_react4.useMemo)(() => children.length, [children]);
468
+ const paddingItemCount = 3;
469
+ const generatedId = "carousel" + (0, import_react4.useId)();
470
+ const id = props.id ?? generatedId;
471
+ if (isAutoPlaying && !isLooping) {
472
+ console.error("When isAutoLooping is true, isLooping should also be true");
473
+ isLooping = true;
474
+ }
475
+ autoLoopingTimeOut = Math.max(0, autoLoopingTimeOut);
476
+ animationTime = Math.max(100, animationTime);
477
+ autoLoopAnimationTime = Math.max(200, autoLoopAnimationTime);
478
+ (0, import_react4.useEffect)(() => {
479
+ const carousel = carouselContainerRef.current;
480
+ if (carousel) {
481
+ let onFocus = function() {
482
+ setHasFocus(true);
483
+ }, onBlur = function() {
484
+ setHasFocus(false);
485
+ };
486
+ carousel?.addEventListener("focusin", onFocus);
487
+ carousel?.addEventListener("focusout", onBlur);
488
+ return () => {
489
+ carousel?.removeEventListener("focusin", onFocus);
490
+ carousel?.removeEventListener("focusin", onFocus);
491
+ };
492
+ }
493
+ }, []);
494
+ const getStyleOffset = (index) => {
495
+ const baseOffset = -50 + (index - currentIndex) * 100;
496
+ return `${baseOffset}%`;
497
+ };
498
+ const canGoLeft = () => {
499
+ return isLooping || currentIndex !== 0;
500
+ };
501
+ const canGoRight = (0, import_react4.useCallback)(() => {
502
+ return isLooping || currentIndex !== length - 1;
503
+ }, [currentIndex, isLooping, length]);
504
+ const left = () => {
505
+ if (canGoLeft()) {
506
+ setCurrentIndex(currentIndex - 1);
507
+ }
508
+ };
509
+ const right = (0, import_react4.useCallback)(() => {
510
+ if (canGoRight()) {
511
+ setCurrentIndex((currentIndex + length + 1) % length);
512
+ }
513
+ }, [canGoRight, currentIndex, length]);
514
+ (0, import_react4.useEffect)(() => {
515
+ if (!timeOut.current && !isPaused) {
516
+ if (autoLoopingTimeOut > 0) {
517
+ timeOut.current = setTimeout(() => {
518
+ right();
519
+ timeOut.current = void 0;
520
+ }, autoLoopingTimeOut);
521
+ } else {
522
+ right();
523
+ }
524
+ }
525
+ if ((isPaused || !!dragState) && timeOut.current) {
526
+ clearTimeout(timeOut.current);
527
+ timeOut.current = void 0;
528
+ }
529
+ }, [right, isPaused, autoLoopingTimeOut, dragState]);
530
+ let items = children.map((item, index) => ({
531
+ index,
532
+ item
533
+ }));
534
+ let before = [];
535
+ let after = [];
536
+ if (isLooping) {
537
+ before = createLoopingListWithIndex(children, length - 1, paddingItemCount, false).reverse().map(([index, item]) => ({
538
+ index,
539
+ item
540
+ }));
541
+ after = createLoopingListWithIndex(children, 0, paddingItemCount).map(([index, item]) => ({
542
+ index,
543
+ item
544
+ }));
545
+ items = [...before, ...items, ...after];
546
+ }
547
+ const handlePointerDown = (e) => {
548
+ setDragState({
549
+ dragOffsetX: 0,
550
+ dragStartX: e.clientX
551
+ });
552
+ };
553
+ const handlePointerMove = (e) => {
554
+ if (!dragState) return;
555
+ setDragState((prevState) => ({ dragStartX: prevState.dragStartX, dragOffsetX: e.clientX - prevState.dragStartX }));
556
+ };
557
+ const handlePointerUp = () => {
558
+ if (!dragState) return;
559
+ if (dragState.dragOffsetX > 50) {
560
+ left();
561
+ } else if (dragState.dragOffsetX < -50) {
562
+ right();
563
+ }
564
+ setDragState(void 0);
565
+ };
566
+ (0, import_react4.useEffect)(() => {
567
+ setDisableClick(!dragState);
568
+ }, [dragState]);
569
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CarouselContext.Provider, { value: { id, currentIndex, slideCount: length, isLooping }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
570
+ "div",
571
+ {
572
+ ref: carouselContainerRef,
573
+ ...props,
574
+ className: (0, import_clsx2.default)("flex-col-2 items-center w-full", props.className),
575
+ id,
576
+ role: "region",
577
+ "aria-roledescription": translation("slide"),
578
+ children: [
579
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
580
+ "div",
581
+ {
582
+ ...slideContainerProps,
583
+ className: (0, import_clsx2.default)(`relative w-full overflow-hidden`, heightClassName, slideContainerProps?.className),
584
+ children: [
585
+ hintNext ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
586
+ "div",
587
+ {
588
+ onPointerDown: handlePointerDown,
589
+ onPointerMove: handlePointerMove,
590
+ onPointerUp: handlePointerUp,
591
+ onPointerLeave: handlePointerUp,
592
+ className: (0, import_clsx2.default)(`flex-row-2 relative h-full`, heightClassName),
593
+ children: [
594
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-row-2 relative h-full w-full px-2 overflow-hidden", children: items.map(({
595
+ item,
596
+ index
597
+ }, listIndex) => {
598
+ const isInItems = before.length <= listIndex && listIndex < items.length - after.length;
599
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
600
+ CarouselSlide,
601
+ {
602
+ ref: isInItems ? slideRefs[index] : void 0,
603
+ index,
604
+ className: (0, import_clsx2.default)(
605
+ `absolute left-[50%] h-full overflow-hidden transition-transform ease-in-out`,
606
+ widthClassName
607
+ ),
608
+ onClick: () => !disableClick && setCurrentIndex(index),
609
+ style: {
610
+ translate: `calc(${getStyleOffset(listIndex - (isLooping ? paddingItemCount : 0))} + ${dragState ? dragState.dragOffsetX : 0}px)`,
611
+ transitionDuration: dragState ? "0ms" : (isAutoPlaying && !isPaused ? autoLoopAnimationTime : animationTime) + "ms"
612
+ },
613
+ children: item
614
+ },
615
+ listIndex
616
+ );
617
+ }) }),
618
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
619
+ "div",
620
+ {
621
+ className: (0, import_clsx2.default)(`hidden desktop:block pointer-events-none absolute left-0 h-full w-[20%] bg-gradient-to-r to-transparent`, blurColor)
622
+ }
623
+ ),
624
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
625
+ "div",
626
+ {
627
+ className: (0, import_clsx2.default)(`hidden desktop:block pointer-events-none absolute right-0 h-full w-[20%] bg-gradient-to-l to-transparent`, blurColor)
628
+ }
629
+ )
630
+ ]
631
+ }
632
+ ) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
633
+ "div",
634
+ {
635
+ ref: slideRefs[currentIndex],
636
+ className: (0, import_clsx2.default)("px-16 h-full"),
637
+ tabIndex: 0,
638
+ role: "group",
639
+ "aria-roledescription": translation("slide"),
640
+ "aria-label": translation("slideOf", {
641
+ replacements: {
642
+ index: (currentIndex + 1).toString(),
643
+ length: items.length.toString()
644
+ }
645
+ }),
646
+ children: children[currentIndex]
647
+ }
648
+ ),
649
+ arrows && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
650
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
651
+ IconButton,
652
+ {
653
+ color: "neutral",
654
+ className: (0, import_clsx2.default)("absolute z-10 left-2 top-1/2 -translate-y-1/2 shadow-md", { hidden: !canGoLeft() }),
655
+ disabled: !canGoLeft(),
656
+ onClick: () => left(),
657
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.ChevronLeft, { size: 24 })
658
+ }
659
+ ),
660
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
661
+ IconButton,
662
+ {
663
+ color: "neutral",
664
+ className: (0, import_clsx2.default)("absolute z-10 right-2 top-1/2 -translate-y-1/2 shadow-md", { hidden: !canGoRight() }),
665
+ disabled: !canGoRight(),
666
+ onClick: () => right(),
667
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.ChevronRight, { size: 24 })
668
+ }
669
+ )
670
+ ] })
671
+ ]
672
+ }
673
+ ),
674
+ dots && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CarouselTabs, { onChange: setCurrentIndex })
675
+ ]
676
+ }
677
+ ) });
678
+ };
679
+ // Annotate the CommonJS export names for ESM import in node:
680
+ 0 && (module.exports = {
681
+ Carousel,
682
+ CarouselSlide
683
+ });
684
+ //# sourceMappingURL=Carousel.js.map