@helpwave/hightide 0.1.46 → 0.1.48

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 (785) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.mts +2014 -0
  3. package/dist/index.d.ts +2014 -113
  4. package/dist/index.js +1619 -1359
  5. package/dist/index.js.map +1 -1
  6. package/dist/{components/index.js → index.mjs} +1216 -410
  7. package/dist/index.mjs.map +1 -0
  8. package/dist/style/globals.css +24 -0
  9. package/package.json +3 -5
  10. package/dist/coloring/index.cjs +0 -85
  11. package/dist/coloring/index.cjs.map +0 -1
  12. package/dist/coloring/index.d.cts +0 -2
  13. package/dist/coloring/index.d.ts +0 -2
  14. package/dist/coloring/index.js +0 -48
  15. package/dist/coloring/index.js.map +0 -1
  16. package/dist/coloring/shading.cjs +0 -81
  17. package/dist/coloring/shading.cjs.map +0 -1
  18. package/dist/coloring/shading.d.cts +0 -5
  19. package/dist/coloring/shading.d.ts +0 -5
  20. package/dist/coloring/shading.js +0 -47
  21. package/dist/coloring/shading.js.map +0 -1
  22. package/dist/coloring/types.cjs +0 -30
  23. package/dist/coloring/types.cjs.map +0 -1
  24. package/dist/coloring/types.d.cts +0 -13
  25. package/dist/coloring/types.d.ts +0 -13
  26. package/dist/coloring/types.js +0 -6
  27. package/dist/coloring/types.js.map +0 -1
  28. package/dist/components/branding/HelpwaveBadge.cjs +0 -140
  29. package/dist/components/branding/HelpwaveBadge.cjs.map +0 -1
  30. package/dist/components/branding/HelpwaveBadge.d.cts +0 -13
  31. package/dist/components/branding/HelpwaveBadge.d.ts +0 -13
  32. package/dist/components/branding/HelpwaveBadge.js +0 -104
  33. package/dist/components/branding/HelpwaveBadge.js.map +0 -1
  34. package/dist/components/branding/index.cjs +0 -140
  35. package/dist/components/branding/index.cjs.map +0 -1
  36. package/dist/components/branding/index.d.cts +0 -3
  37. package/dist/components/branding/index.d.ts +0 -3
  38. package/dist/components/branding/index.js +0 -104
  39. package/dist/components/branding/index.js.map +0 -1
  40. package/dist/components/date/DatePicker.cjs +0 -1318
  41. package/dist/components/date/DatePicker.cjs.map +0 -1
  42. package/dist/components/date/DatePicker.d.cts +0 -26
  43. package/dist/components/date/DatePicker.d.ts +0 -26
  44. package/dist/components/date/DatePicker.js +0 -1283
  45. package/dist/components/date/DatePicker.js.map +0 -1
  46. package/dist/components/date/DayPicker.cjs +0 -261
  47. package/dist/components/date/DayPicker.cjs.map +0 -1
  48. package/dist/components/date/DayPicker.d.cts +0 -20
  49. package/dist/components/date/DayPicker.d.ts +0 -20
  50. package/dist/components/date/DayPicker.js +0 -224
  51. package/dist/components/date/DayPicker.js.map +0 -1
  52. package/dist/components/date/TimeDisplay.cjs +0 -638
  53. package/dist/components/date/TimeDisplay.cjs.map +0 -1
  54. package/dist/components/date/TimeDisplay.d.cts +0 -13
  55. package/dist/components/date/TimeDisplay.d.ts +0 -13
  56. package/dist/components/date/TimeDisplay.js +0 -612
  57. package/dist/components/date/TimeDisplay.js.map +0 -1
  58. package/dist/components/date/TimePicker.cjs +0 -237
  59. package/dist/components/date/TimePicker.cjs.map +0 -1
  60. package/dist/components/date/TimePicker.d.cts +0 -15
  61. package/dist/components/date/TimePicker.d.ts +0 -15
  62. package/dist/components/date/TimePicker.js +0 -202
  63. package/dist/components/date/TimePicker.js.map +0 -1
  64. package/dist/components/date/YearMonthPicker.cjs +0 -536
  65. package/dist/components/date/YearMonthPicker.cjs.map +0 -1
  66. package/dist/components/date/YearMonthPicker.d.cts +0 -15
  67. package/dist/components/date/YearMonthPicker.d.ts +0 -15
  68. package/dist/components/date/YearMonthPicker.js +0 -501
  69. package/dist/components/date/YearMonthPicker.js.map +0 -1
  70. package/dist/components/date/index.cjs +0 -1556
  71. package/dist/components/date/index.cjs.map +0 -1
  72. package/dist/components/date/index.d.cts +0 -7
  73. package/dist/components/date/index.d.ts +0 -7
  74. package/dist/components/date/index.js +0 -1512
  75. package/dist/components/date/index.js.map +0 -1
  76. package/dist/components/dialog/ConfirmDialog.cjs +0 -1165
  77. package/dist/components/dialog/ConfirmDialog.cjs.map +0 -1
  78. package/dist/components/dialog/ConfirmDialog.d.cts +0 -29
  79. package/dist/components/dialog/ConfirmDialog.d.ts +0 -29
  80. package/dist/components/dialog/ConfirmDialog.js +0 -1129
  81. package/dist/components/dialog/ConfirmDialog.js.map +0 -1
  82. package/dist/components/dialog/Dialog.cjs +0 -1108
  83. package/dist/components/dialog/Dialog.cjs.map +0 -1
  84. package/dist/components/dialog/Dialog.d.cts +0 -27
  85. package/dist/components/dialog/Dialog.d.ts +0 -27
  86. package/dist/components/dialog/Dialog.js +0 -1075
  87. package/dist/components/dialog/Dialog.js.map +0 -1
  88. package/dist/components/dialog/DiscardChangesDialog.cjs +0 -1192
  89. package/dist/components/dialog/DiscardChangesDialog.cjs.map +0 -1
  90. package/dist/components/dialog/DiscardChangesDialog.d.cts +0 -18
  91. package/dist/components/dialog/DiscardChangesDialog.d.ts +0 -18
  92. package/dist/components/dialog/DiscardChangesDialog.js +0 -1156
  93. package/dist/components/dialog/DiscardChangesDialog.js.map +0 -1
  94. package/dist/components/dialog/InputDialog.cjs +0 -1369
  95. package/dist/components/dialog/InputDialog.cjs.map +0 -1
  96. package/dist/components/dialog/InputDialog.d.cts +0 -17
  97. package/dist/components/dialog/InputDialog.d.ts +0 -17
  98. package/dist/components/dialog/InputDialog.js +0 -1333
  99. package/dist/components/dialog/InputDialog.js.map +0 -1
  100. package/dist/components/dialog/LanguageDialog.cjs +0 -2149
  101. package/dist/components/dialog/LanguageDialog.cjs.map +0 -1
  102. package/dist/components/dialog/LanguageDialog.d.cts +0 -16
  103. package/dist/components/dialog/LanguageDialog.d.ts +0 -16
  104. package/dist/components/dialog/LanguageDialog.js +0 -2124
  105. package/dist/components/dialog/LanguageDialog.js.map +0 -1
  106. package/dist/components/dialog/ThemeDialog.cjs +0 -2188
  107. package/dist/components/dialog/ThemeDialog.cjs.map +0 -1
  108. package/dist/components/dialog/ThemeDialog.d.cts +0 -16
  109. package/dist/components/dialog/ThemeDialog.d.ts +0 -16
  110. package/dist/components/dialog/ThemeDialog.js +0 -2163
  111. package/dist/components/dialog/ThemeDialog.js.map +0 -1
  112. package/dist/components/dialog/index.cjs +0 -2516
  113. package/dist/components/dialog/index.cjs.map +0 -1
  114. package/dist/components/dialog/index.d.cts +0 -11
  115. package/dist/components/dialog/index.d.ts +0 -11
  116. package/dist/components/dialog/index.js +0 -2486
  117. package/dist/components/dialog/index.js.map +0 -1
  118. package/dist/components/form/FormElementWrapper.cjs +0 -167
  119. package/dist/components/form/FormElementWrapper.cjs.map +0 -1
  120. package/dist/components/form/FormElementWrapper.d.cts +0 -35
  121. package/dist/components/form/FormElementWrapper.d.ts +0 -35
  122. package/dist/components/form/FormElementWrapper.js +0 -133
  123. package/dist/components/form/FormElementWrapper.js.map +0 -1
  124. package/dist/components/form/index.cjs +0 -169
  125. package/dist/components/form/index.cjs.map +0 -1
  126. package/dist/components/form/index.d.cts +0 -5
  127. package/dist/components/form/index.d.ts +0 -5
  128. package/dist/components/form/index.js +0 -133
  129. package/dist/components/form/index.js.map +0 -1
  130. package/dist/components/icons-and-geometry/Avatar.cjs +0 -670
  131. package/dist/components/icons-and-geometry/Avatar.cjs.map +0 -1
  132. package/dist/components/icons-and-geometry/Avatar.d.cts +0 -36
  133. package/dist/components/icons-and-geometry/Avatar.d.ts +0 -36
  134. package/dist/components/icons-and-geometry/Avatar.js +0 -663
  135. package/dist/components/icons-and-geometry/Avatar.js.map +0 -1
  136. package/dist/components/icons-and-geometry/Circle.cjs +0 -61
  137. package/dist/components/icons-and-geometry/Circle.cjs.map +0 -1
  138. package/dist/components/icons-and-geometry/Circle.d.cts +0 -10
  139. package/dist/components/icons-and-geometry/Circle.d.ts +0 -10
  140. package/dist/components/icons-and-geometry/Circle.js +0 -27
  141. package/dist/components/icons-and-geometry/Circle.js.map +0 -1
  142. package/dist/components/icons-and-geometry/HelpwaveLogo.cjs +0 -98
  143. package/dist/components/icons-and-geometry/HelpwaveLogo.cjs.map +0 -1
  144. package/dist/components/icons-and-geometry/HelpwaveLogo.d.cts +0 -14
  145. package/dist/components/icons-and-geometry/HelpwaveLogo.d.ts +0 -14
  146. package/dist/components/icons-and-geometry/HelpwaveLogo.js +0 -74
  147. package/dist/components/icons-and-geometry/HelpwaveLogo.js.map +0 -1
  148. package/dist/components/icons-and-geometry/Ring.cjs +0 -333
  149. package/dist/components/icons-and-geometry/Ring.cjs.map +0 -1
  150. package/dist/components/icons-and-geometry/Ring.d.cts +0 -35
  151. package/dist/components/icons-and-geometry/Ring.d.ts +0 -35
  152. package/dist/components/icons-and-geometry/Ring.js +0 -296
  153. package/dist/components/icons-and-geometry/Ring.js.map +0 -1
  154. package/dist/components/icons-and-geometry/Tag.cjs +0 -2945
  155. package/dist/components/icons-and-geometry/Tag.cjs.map +0 -1
  156. package/dist/components/icons-and-geometry/Tag.d.cts +0 -16
  157. package/dist/components/icons-and-geometry/Tag.d.ts +0 -16
  158. package/dist/components/icons-and-geometry/Tag.js +0 -2940
  159. package/dist/components/icons-and-geometry/Tag.js.map +0 -1
  160. package/dist/components/icons-and-geometry/index.cjs +0 -3950
  161. package/dist/components/icons-and-geometry/index.cjs.map +0 -1
  162. package/dist/components/icons-and-geometry/index.d.cts +0 -7
  163. package/dist/components/icons-and-geometry/index.d.ts +0 -7
  164. package/dist/components/icons-and-geometry/index.js +0 -3934
  165. package/dist/components/icons-and-geometry/index.js.map +0 -1
  166. package/dist/components/index.cjs +0 -15692
  167. package/dist/components/index.cjs.map +0 -1
  168. package/dist/components/index.d.cts +0 -78
  169. package/dist/components/index.d.ts +0 -78
  170. package/dist/components/index.js.map +0 -1
  171. package/dist/components/layout/Carousel.cjs +0 -1128
  172. package/dist/components/layout/Carousel.cjs.map +0 -1
  173. package/dist/components/layout/Carousel.d.cts +0 -35
  174. package/dist/components/layout/Carousel.d.ts +0 -35
  175. package/dist/components/layout/Carousel.js +0 -1103
  176. package/dist/components/layout/Carousel.js.map +0 -1
  177. package/dist/components/layout/Chip.cjs +0 -123
  178. package/dist/components/layout/Chip.cjs.map +0 -1
  179. package/dist/components/layout/Chip.d.cts +0 -31
  180. package/dist/components/layout/Chip.d.ts +0 -31
  181. package/dist/components/layout/Chip.js +0 -87
  182. package/dist/components/layout/Chip.js.map +0 -1
  183. package/dist/components/layout/DividerInserter.cjs +0 -59
  184. package/dist/components/layout/DividerInserter.cjs.map +0 -1
  185. package/dist/components/layout/DividerInserter.d.cts +0 -15
  186. package/dist/components/layout/DividerInserter.d.ts +0 -15
  187. package/dist/components/layout/DividerInserter.js +0 -25
  188. package/dist/components/layout/DividerInserter.js.map +0 -1
  189. package/dist/components/layout/Expandable.cjs +0 -171
  190. package/dist/components/layout/Expandable.cjs.map +0 -1
  191. package/dist/components/layout/Expandable.d.cts +0 -67
  192. package/dist/components/layout/Expandable.d.ts +0 -67
  193. package/dist/components/layout/Expandable.js +0 -135
  194. package/dist/components/layout/Expandable.js.map +0 -1
  195. package/dist/components/layout/FAQSection.cjs +0 -421
  196. package/dist/components/layout/FAQSection.cjs.map +0 -1
  197. package/dist/components/layout/FAQSection.d.cts +0 -26
  198. package/dist/components/layout/FAQSection.d.ts +0 -26
  199. package/dist/components/layout/FAQSection.js +0 -387
  200. package/dist/components/layout/FAQSection.js.map +0 -1
  201. package/dist/components/layout/FloatingContainer.cjs +0 -220
  202. package/dist/components/layout/FloatingContainer.cjs.map +0 -1
  203. package/dist/components/layout/FloatingContainer.d.cts +0 -38
  204. package/dist/components/layout/FloatingContainer.d.ts +0 -38
  205. package/dist/components/layout/FloatingContainer.js +0 -196
  206. package/dist/components/layout/FloatingContainer.js.map +0 -1
  207. package/dist/components/layout/ListBox.cjs +0 -339
  208. package/dist/components/layout/ListBox.cjs.map +0 -1
  209. package/dist/components/layout/ListBox.d.cts +0 -44
  210. package/dist/components/layout/ListBox.d.ts +0 -44
  211. package/dist/components/layout/ListBox.js +0 -300
  212. package/dist/components/layout/ListBox.js.map +0 -1
  213. package/dist/components/layout/MarkdownInterpreter.cjs +0 -260
  214. package/dist/components/layout/MarkdownInterpreter.cjs.map +0 -1
  215. package/dist/components/layout/MarkdownInterpreter.d.cts +0 -28
  216. package/dist/components/layout/MarkdownInterpreter.d.ts +0 -28
  217. package/dist/components/layout/MarkdownInterpreter.js +0 -235
  218. package/dist/components/layout/MarkdownInterpreter.js.map +0 -1
  219. package/dist/components/layout/ScrollArea.cjs +0 -1252
  220. package/dist/components/layout/ScrollArea.cjs.map +0 -1
  221. package/dist/components/layout/ScrollArea.d.cts +0 -15
  222. package/dist/components/layout/ScrollArea.d.ts +0 -15
  223. package/dist/components/layout/ScrollArea.js +0 -1216
  224. package/dist/components/layout/ScrollArea.js.map +0 -1
  225. package/dist/components/layout/TextImage.cjs +0 -657
  226. package/dist/components/layout/TextImage.cjs.map +0 -1
  227. package/dist/components/layout/TextImage.d.cts +0 -19
  228. package/dist/components/layout/TextImage.d.ts +0 -19
  229. package/dist/components/layout/TextImage.js +0 -623
  230. package/dist/components/layout/TextImage.js.map +0 -1
  231. package/dist/components/layout/VerticalDivider.cjs +0 -80
  232. package/dist/components/layout/VerticalDivider.cjs.map +0 -1
  233. package/dist/components/layout/VerticalDivider.d.cts +0 -15
  234. package/dist/components/layout/VerticalDivider.d.ts +0 -15
  235. package/dist/components/layout/VerticalDivider.js +0 -56
  236. package/dist/components/layout/VerticalDivider.js.map +0 -1
  237. package/dist/components/layout/index.cjs +0 -3434
  238. package/dist/components/layout/index.cjs.map +0 -1
  239. package/dist/components/layout/index.d.cts +0 -15
  240. package/dist/components/layout/index.d.ts +0 -15
  241. package/dist/components/layout/index.js +0 -3387
  242. package/dist/components/layout/index.js.map +0 -1
  243. package/dist/components/loading-states/ErrorComponent.cjs +0 -622
  244. package/dist/components/loading-states/ErrorComponent.cjs.map +0 -1
  245. package/dist/components/loading-states/ErrorComponent.d.cts +0 -12
  246. package/dist/components/loading-states/ErrorComponent.d.ts +0 -12
  247. package/dist/components/loading-states/ErrorComponent.js +0 -588
  248. package/dist/components/loading-states/ErrorComponent.js.map +0 -1
  249. package/dist/components/loading-states/LoadingAndErrorComponent.cjs +0 -67
  250. package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +0 -1
  251. package/dist/components/loading-states/LoadingAndErrorComponent.d.cts +0 -20
  252. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +0 -20
  253. package/dist/components/loading-states/LoadingAndErrorComponent.js +0 -43
  254. package/dist/components/loading-states/LoadingAndErrorComponent.js.map +0 -1
  255. package/dist/components/loading-states/LoadingAnimation.cjs +0 -694
  256. package/dist/components/loading-states/LoadingAnimation.cjs.map +0 -1
  257. package/dist/components/loading-states/LoadingAnimation.d.cts +0 -12
  258. package/dist/components/loading-states/LoadingAnimation.d.ts +0 -12
  259. package/dist/components/loading-states/LoadingAnimation.js +0 -658
  260. package/dist/components/loading-states/LoadingAnimation.js.map +0 -1
  261. package/dist/components/loading-states/LoadingButton.cjs +0 -257
  262. package/dist/components/loading-states/LoadingButton.cjs.map +0 -1
  263. package/dist/components/loading-states/LoadingButton.d.cts +0 -10
  264. package/dist/components/loading-states/LoadingButton.d.ts +0 -10
  265. package/dist/components/loading-states/LoadingButton.js +0 -223
  266. package/dist/components/loading-states/LoadingButton.js.map +0 -1
  267. package/dist/components/loading-states/LoadingContainer.cjs +0 -34
  268. package/dist/components/loading-states/LoadingContainer.cjs.map +0 -1
  269. package/dist/components/loading-states/LoadingContainer.d.cts +0 -8
  270. package/dist/components/loading-states/LoadingContainer.d.ts +0 -8
  271. package/dist/components/loading-states/LoadingContainer.js +0 -10
  272. package/dist/components/loading-states/LoadingContainer.js.map +0 -1
  273. package/dist/components/loading-states/ProgressIndicator.cjs +0 -83
  274. package/dist/components/loading-states/ProgressIndicator.cjs.map +0 -1
  275. package/dist/components/loading-states/ProgressIndicator.d.cts +0 -24
  276. package/dist/components/loading-states/ProgressIndicator.d.ts +0 -24
  277. package/dist/components/loading-states/ProgressIndicator.js +0 -59
  278. package/dist/components/loading-states/ProgressIndicator.js.map +0 -1
  279. package/dist/components/loading-states/index.cjs +0 -966
  280. package/dist/components/loading-states/index.cjs.map +0 -1
  281. package/dist/components/loading-states/index.d.cts +0 -9
  282. package/dist/components/loading-states/index.d.ts +0 -9
  283. package/dist/components/loading-states/index.js +0 -925
  284. package/dist/components/loading-states/index.js.map +0 -1
  285. package/dist/components/navigation/BreadCrumb.cjs +0 -3516
  286. package/dist/components/navigation/BreadCrumb.cjs.map +0 -1
  287. package/dist/components/navigation/BreadCrumb.d.cts +0 -20
  288. package/dist/components/navigation/BreadCrumb.d.ts +0 -20
  289. package/dist/components/navigation/BreadCrumb.js +0 -3511
  290. package/dist/components/navigation/BreadCrumb.js.map +0 -1
  291. package/dist/components/navigation/Navigation.cjs +0 -4041
  292. package/dist/components/navigation/Navigation.cjs.map +0 -1
  293. package/dist/components/navigation/Navigation.d.cts +0 -21
  294. package/dist/components/navigation/Navigation.d.ts +0 -21
  295. package/dist/components/navigation/Navigation.js +0 -4035
  296. package/dist/components/navigation/Navigation.js.map +0 -1
  297. package/dist/components/navigation/Pagination.cjs +0 -1007
  298. package/dist/components/navigation/Pagination.cjs.map +0 -1
  299. package/dist/components/navigation/Pagination.d.cts +0 -16
  300. package/dist/components/navigation/Pagination.d.ts +0 -16
  301. package/dist/components/navigation/Pagination.js +0 -973
  302. package/dist/components/navigation/Pagination.js.map +0 -1
  303. package/dist/components/navigation/StepperBar.cjs +0 -903
  304. package/dist/components/navigation/StepperBar.cjs.map +0 -1
  305. package/dist/components/navigation/StepperBar.d.cts +0 -23
  306. package/dist/components/navigation/StepperBar.d.ts +0 -23
  307. package/dist/components/navigation/StepperBar.js +0 -868
  308. package/dist/components/navigation/StepperBar.js.map +0 -1
  309. package/dist/components/navigation/index.cjs +0 -5035
  310. package/dist/components/navigation/index.cjs.map +0 -1
  311. package/dist/components/navigation/index.d.cts +0 -6
  312. package/dist/components/navigation/index.d.ts +0 -6
  313. package/dist/components/navigation/index.js +0 -5023
  314. package/dist/components/navigation/index.js.map +0 -1
  315. package/dist/components/properties/CheckboxProperty.cjs +0 -1736
  316. package/dist/components/properties/CheckboxProperty.cjs.map +0 -1
  317. package/dist/components/properties/CheckboxProperty.d.cts +0 -14
  318. package/dist/components/properties/CheckboxProperty.d.ts +0 -14
  319. package/dist/components/properties/CheckboxProperty.js +0 -1702
  320. package/dist/components/properties/CheckboxProperty.js.map +0 -1
  321. package/dist/components/properties/DateProperty.cjs +0 -1119
  322. package/dist/components/properties/DateProperty.cjs.map +0 -1
  323. package/dist/components/properties/DateProperty.d.cts +0 -16
  324. package/dist/components/properties/DateProperty.d.ts +0 -16
  325. package/dist/components/properties/DateProperty.js +0 -1085
  326. package/dist/components/properties/DateProperty.js.map +0 -1
  327. package/dist/components/properties/MultiSelectProperty.cjs +0 -2058
  328. package/dist/components/properties/MultiSelectProperty.cjs.map +0 -1
  329. package/dist/components/properties/MultiSelectProperty.d.cts +0 -14
  330. package/dist/components/properties/MultiSelectProperty.d.ts +0 -14
  331. package/dist/components/properties/MultiSelectProperty.js +0 -2035
  332. package/dist/components/properties/MultiSelectProperty.js.map +0 -1
  333. package/dist/components/properties/NumberProperty.cjs +0 -1125
  334. package/dist/components/properties/NumberProperty.cjs.map +0 -1
  335. package/dist/components/properties/NumberProperty.d.cts +0 -16
  336. package/dist/components/properties/NumberProperty.d.ts +0 -16
  337. package/dist/components/properties/NumberProperty.js +0 -1091
  338. package/dist/components/properties/NumberProperty.js.map +0 -1
  339. package/dist/components/properties/PropertyBase.cjs +0 -875
  340. package/dist/components/properties/PropertyBase.cjs.map +0 -1
  341. package/dist/components/properties/PropertyBase.d.cts +0 -22
  342. package/dist/components/properties/PropertyBase.d.ts +0 -22
  343. package/dist/components/properties/PropertyBase.js +0 -841
  344. package/dist/components/properties/PropertyBase.js.map +0 -1
  345. package/dist/components/properties/SelectProperty.cjs +0 -2058
  346. package/dist/components/properties/SelectProperty.cjs.map +0 -1
  347. package/dist/components/properties/SelectProperty.d.cts +0 -16
  348. package/dist/components/properties/SelectProperty.d.ts +0 -16
  349. package/dist/components/properties/SelectProperty.js +0 -2035
  350. package/dist/components/properties/SelectProperty.js.map +0 -1
  351. package/dist/components/properties/TextProperty.cjs +0 -1033
  352. package/dist/components/properties/TextProperty.cjs.map +0 -1
  353. package/dist/components/properties/TextProperty.d.cts +0 -15
  354. package/dist/components/properties/TextProperty.d.ts +0 -15
  355. package/dist/components/properties/TextProperty.js +0 -999
  356. package/dist/components/properties/TextProperty.js.map +0 -1
  357. package/dist/components/properties/index.cjs +0 -3383
  358. package/dist/components/properties/index.cjs.map +0 -1
  359. package/dist/components/properties/index.d.cts +0 -9
  360. package/dist/components/properties/index.d.ts +0 -9
  361. package/dist/components/properties/index.js +0 -3352
  362. package/dist/components/properties/index.js.map +0 -1
  363. package/dist/components/table/FillerRowElement.cjs +0 -36
  364. package/dist/components/table/FillerRowElement.cjs.map +0 -1
  365. package/dist/components/table/FillerRowElement.d.cts +0 -8
  366. package/dist/components/table/FillerRowElement.d.ts +0 -8
  367. package/dist/components/table/FillerRowElement.js +0 -12
  368. package/dist/components/table/FillerRowElement.js.map +0 -1
  369. package/dist/components/table/Filter.cjs +0 -41
  370. package/dist/components/table/Filter.cjs.map +0 -1
  371. package/dist/components/table/Filter.d.cts +0 -5
  372. package/dist/components/table/Filter.d.ts +0 -5
  373. package/dist/components/table/Filter.js +0 -17
  374. package/dist/components/table/Filter.js.map +0 -1
  375. package/dist/components/table/Table.cjs +0 -2678
  376. package/dist/components/table/Table.cjs.map +0 -1
  377. package/dist/components/table/Table.d.cts +0 -42
  378. package/dist/components/table/Table.d.ts +0 -42
  379. package/dist/components/table/Table.js +0 -2649
  380. package/dist/components/table/Table.js.map +0 -1
  381. package/dist/components/table/TableCell.cjs +0 -37
  382. package/dist/components/table/TableCell.cjs.map +0 -1
  383. package/dist/components/table/TableCell.d.cts +0 -9
  384. package/dist/components/table/TableCell.d.ts +0 -9
  385. package/dist/components/table/TableCell.js +0 -13
  386. package/dist/components/table/TableCell.js.map +0 -1
  387. package/dist/components/table/TableFilterButton.cjs +0 -1269
  388. package/dist/components/table/TableFilterButton.cjs.map +0 -1
  389. package/dist/components/table/TableFilterButton.d.cts +0 -11
  390. package/dist/components/table/TableFilterButton.d.ts +0 -11
  391. package/dist/components/table/TableFilterButton.js +0 -1233
  392. package/dist/components/table/TableFilterButton.js.map +0 -1
  393. package/dist/components/table/TableSortButton.cjs +0 -206
  394. package/dist/components/table/TableSortButton.cjs.map +0 -1
  395. package/dist/components/table/TableSortButton.d.cts +0 -15
  396. package/dist/components/table/TableSortButton.d.ts +0 -15
  397. package/dist/components/table/TableSortButton.js +0 -172
  398. package/dist/components/table/TableSortButton.js.map +0 -1
  399. package/dist/components/table/index.cjs +0 -2690
  400. package/dist/components/table/index.cjs.map +0 -1
  401. package/dist/components/table/index.d.cts +0 -10
  402. package/dist/components/table/index.d.ts +0 -10
  403. package/dist/components/table/index.js +0 -2654
  404. package/dist/components/table/index.js.map +0 -1
  405. package/dist/components/user-action/Button.cjs +0 -308
  406. package/dist/components/user-action/Button.cjs.map +0 -1
  407. package/dist/components/user-action/Button.d.cts +0 -104
  408. package/dist/components/user-action/Button.d.ts +0 -104
  409. package/dist/components/user-action/Button.js +0 -268
  410. package/dist/components/user-action/Button.js.map +0 -1
  411. package/dist/components/user-action/Checkbox.cjs +0 -878
  412. package/dist/components/user-action/Checkbox.cjs.map +0 -1
  413. package/dist/components/user-action/Checkbox.d.cts +0 -25
  414. package/dist/components/user-action/Checkbox.d.ts +0 -25
  415. package/dist/components/user-action/Checkbox.js +0 -843
  416. package/dist/components/user-action/Checkbox.js.map +0 -1
  417. package/dist/components/user-action/CopyToClipboardWrapper.cjs +0 -695
  418. package/dist/components/user-action/CopyToClipboardWrapper.cjs.map +0 -1
  419. package/dist/components/user-action/CopyToClipboardWrapper.d.cts +0 -30
  420. package/dist/components/user-action/CopyToClipboardWrapper.d.ts +0 -30
  421. package/dist/components/user-action/CopyToClipboardWrapper.js +0 -671
  422. package/dist/components/user-action/CopyToClipboardWrapper.js.map +0 -1
  423. package/dist/components/user-action/DateAndTimePicker.cjs +0 -1492
  424. package/dist/components/user-action/DateAndTimePicker.cjs.map +0 -1
  425. package/dist/components/user-action/DateAndTimePicker.d.cts +0 -25
  426. package/dist/components/user-action/DateAndTimePicker.d.ts +0 -25
  427. package/dist/components/user-action/DateAndTimePicker.js +0 -1458
  428. package/dist/components/user-action/DateAndTimePicker.js.map +0 -1
  429. package/dist/components/user-action/Label.cjs +0 -53
  430. package/dist/components/user-action/Label.cjs.map +0 -1
  431. package/dist/components/user-action/Label.d.cts +0 -14
  432. package/dist/components/user-action/Label.d.ts +0 -14
  433. package/dist/components/user-action/Label.js +0 -19
  434. package/dist/components/user-action/Label.js.map +0 -1
  435. package/dist/components/user-action/Menu.cjs +0 -282
  436. package/dist/components/user-action/Menu.cjs.map +0 -1
  437. package/dist/components/user-action/Menu.d.cts +0 -35
  438. package/dist/components/user-action/Menu.d.ts +0 -35
  439. package/dist/components/user-action/Menu.js +0 -247
  440. package/dist/components/user-action/Menu.js.map +0 -1
  441. package/dist/components/user-action/ScrollPicker.cjs +0 -301
  442. package/dist/components/user-action/ScrollPicker.cjs.map +0 -1
  443. package/dist/components/user-action/ScrollPicker.d.cts +0 -15
  444. package/dist/components/user-action/ScrollPicker.d.ts +0 -15
  445. package/dist/components/user-action/ScrollPicker.js +0 -267
  446. package/dist/components/user-action/ScrollPicker.js.map +0 -1
  447. package/dist/components/user-action/SearchBar.cjs +0 -956
  448. package/dist/components/user-action/SearchBar.cjs.map +0 -1
  449. package/dist/components/user-action/SearchBar.d.cts +0 -13
  450. package/dist/components/user-action/SearchBar.d.ts +0 -13
  451. package/dist/components/user-action/SearchBar.js +0 -920
  452. package/dist/components/user-action/SearchBar.js.map +0 -1
  453. package/dist/components/user-action/Textarea.cjs +0 -231
  454. package/dist/components/user-action/Textarea.cjs.map +0 -1
  455. package/dist/components/user-action/Textarea.d.cts +0 -41
  456. package/dist/components/user-action/Textarea.d.ts +0 -41
  457. package/dist/components/user-action/Textarea.js +0 -195
  458. package/dist/components/user-action/Textarea.js.map +0 -1
  459. package/dist/components/user-action/Tooltip.cjs +0 -139
  460. package/dist/components/user-action/Tooltip.cjs.map +0 -1
  461. package/dist/components/user-action/Tooltip.d.cts +0 -37
  462. package/dist/components/user-action/Tooltip.d.ts +0 -37
  463. package/dist/components/user-action/Tooltip.js +0 -113
  464. package/dist/components/user-action/Tooltip.js.map +0 -1
  465. package/dist/components/user-action/index.cjs +0 -4564
  466. package/dist/components/user-action/index.cjs.map +0 -1
  467. package/dist/components/user-action/index.d.cts +0 -26
  468. package/dist/components/user-action/index.d.ts +0 -26
  469. package/dist/components/user-action/index.js +0 -4503
  470. package/dist/components/user-action/index.js.map +0 -1
  471. package/dist/components/user-action/input/Input.cjs +0 -260
  472. package/dist/components/user-action/input/Input.cjs.map +0 -1
  473. package/dist/components/user-action/input/Input.d.cts +0 -37
  474. package/dist/components/user-action/input/Input.d.ts +0 -37
  475. package/dist/components/user-action/input/Input.js +0 -225
  476. package/dist/components/user-action/input/Input.js.map +0 -1
  477. package/dist/components/user-action/input/InsideLabelInput.cjs +0 -312
  478. package/dist/components/user-action/input/InsideLabelInput.cjs.map +0 -1
  479. package/dist/components/user-action/input/InsideLabelInput.d.cts +0 -20
  480. package/dist/components/user-action/input/InsideLabelInput.d.ts +0 -20
  481. package/dist/components/user-action/input/InsideLabelInput.js +0 -277
  482. package/dist/components/user-action/input/InsideLabelInput.js.map +0 -1
  483. package/dist/components/user-action/input/ToggleableInput.cjs +0 -315
  484. package/dist/components/user-action/input/ToggleableInput.cjs.map +0 -1
  485. package/dist/components/user-action/input/ToggleableInput.d.cts +0 -22
  486. package/dist/components/user-action/input/ToggleableInput.d.ts +0 -22
  487. package/dist/components/user-action/input/ToggleableInput.js +0 -280
  488. package/dist/components/user-action/input/ToggleableInput.js.map +0 -1
  489. package/dist/components/user-action/input/index.cjs +0 -403
  490. package/dist/components/user-action/input/index.cjs.map +0 -1
  491. package/dist/components/user-action/input/index.d.cts +0 -6
  492. package/dist/components/user-action/input/index.d.ts +0 -6
  493. package/dist/components/user-action/input/index.js +0 -362
  494. package/dist/components/user-action/input/index.js.map +0 -1
  495. package/dist/components/user-action/select/Select.cjs +0 -1970
  496. package/dist/components/user-action/select/Select.cjs.map +0 -1
  497. package/dist/components/user-action/select/Select.d.cts +0 -104
  498. package/dist/components/user-action/select/Select.d.ts +0 -104
  499. package/dist/components/user-action/select/Select.js +0 -1937
  500. package/dist/components/user-action/select/Select.js.map +0 -1
  501. package/dist/components/user-action/select/index.cjs +0 -1972
  502. package/dist/components/user-action/select/index.cjs.map +0 -1
  503. package/dist/components/user-action/select/index.d.cts +0 -4
  504. package/dist/components/user-action/select/index.d.ts +0 -4
  505. package/dist/components/user-action/select/index.js +0 -1937
  506. package/dist/components/user-action/select/index.js.map +0 -1
  507. package/dist/components/utils/FocusTrap.cjs +0 -252
  508. package/dist/components/utils/FocusTrap.cjs.map +0 -1
  509. package/dist/components/utils/FocusTrap.d.cts +0 -28
  510. package/dist/components/utils/FocusTrap.d.ts +0 -28
  511. package/dist/components/utils/FocusTrap.js +0 -229
  512. package/dist/components/utils/FocusTrap.js.map +0 -1
  513. package/dist/components/utils/Transition.cjs +0 -74
  514. package/dist/components/utils/Transition.cjs.map +0 -1
  515. package/dist/components/utils/Transition.d.cts +0 -26
  516. package/dist/components/utils/Transition.d.ts +0 -26
  517. package/dist/components/utils/Transition.js +0 -50
  518. package/dist/components/utils/Transition.js.map +0 -1
  519. package/dist/components/utils/index.cjs +0 -302
  520. package/dist/components/utils/index.cjs.map +0 -1
  521. package/dist/components/utils/index.d.cts +0 -4
  522. package/dist/components/utils/index.d.ts +0 -4
  523. package/dist/components/utils/index.js +0 -275
  524. package/dist/components/utils/index.js.map +0 -1
  525. package/dist/hooks/focus/index.cjs +0 -379
  526. package/dist/hooks/focus/index.cjs.map +0 -1
  527. package/dist/hooks/focus/index.d.cts +0 -6
  528. package/dist/hooks/focus/index.d.ts +0 -6
  529. package/dist/hooks/focus/index.js +0 -339
  530. package/dist/hooks/focus/index.js.map +0 -1
  531. package/dist/hooks/focus/useFocusGuards.cjs +0 -74
  532. package/dist/hooks/focus/useFocusGuards.cjs.map +0 -1
  533. package/dist/hooks/focus/useFocusGuards.d.cts +0 -3
  534. package/dist/hooks/focus/useFocusGuards.d.ts +0 -3
  535. package/dist/hooks/focus/useFocusGuards.js +0 -50
  536. package/dist/hooks/focus/useFocusGuards.js.map +0 -1
  537. package/dist/hooks/focus/useFocusManagement.cjs +0 -84
  538. package/dist/hooks/focus/useFocusManagement.cjs.map +0 -1
  539. package/dist/hooks/focus/useFocusManagement.d.cts +0 -9
  540. package/dist/hooks/focus/useFocusManagement.d.ts +0 -9
  541. package/dist/hooks/focus/useFocusManagement.js +0 -60
  542. package/dist/hooks/focus/useFocusManagement.js.map +0 -1
  543. package/dist/hooks/focus/useFocusOnceVisible.cjs +0 -60
  544. package/dist/hooks/focus/useFocusOnceVisible.cjs.map +0 -1
  545. package/dist/hooks/focus/useFocusOnceVisible.d.cts +0 -5
  546. package/dist/hooks/focus/useFocusOnceVisible.d.ts +0 -5
  547. package/dist/hooks/focus/useFocusOnceVisible.js +0 -26
  548. package/dist/hooks/focus/useFocusOnceVisible.js.map +0 -1
  549. package/dist/hooks/focus/useFocusTrap.cjs +0 -233
  550. package/dist/hooks/focus/useFocusTrap.cjs.map +0 -1
  551. package/dist/hooks/focus/useFocusTrap.d.cts +0 -16
  552. package/dist/hooks/focus/useFocusTrap.d.ts +0 -16
  553. package/dist/hooks/focus/useFocusTrap.js +0 -210
  554. package/dist/hooks/focus/useFocusTrap.js.map +0 -1
  555. package/dist/hooks/focus/useIsMounted.cjs +0 -43
  556. package/dist/hooks/focus/useIsMounted.cjs.map +0 -1
  557. package/dist/hooks/focus/useIsMounted.d.cts +0 -3
  558. package/dist/hooks/focus/useIsMounted.d.ts +0 -3
  559. package/dist/hooks/focus/useIsMounted.js +0 -20
  560. package/dist/hooks/focus/useIsMounted.js.map +0 -1
  561. package/dist/hooks/index.cjs +0 -1530
  562. package/dist/hooks/index.cjs.map +0 -1
  563. package/dist/hooks/index.d.cts +0 -18
  564. package/dist/hooks/index.d.ts +0 -18
  565. package/dist/hooks/index.js +0 -1477
  566. package/dist/hooks/index.js.map +0 -1
  567. package/dist/hooks/useDelay.cjs +0 -67
  568. package/dist/hooks/useDelay.cjs.map +0 -1
  569. package/dist/hooks/useDelay.d.cts +0 -12
  570. package/dist/hooks/useDelay.d.ts +0 -12
  571. package/dist/hooks/useDelay.js +0 -43
  572. package/dist/hooks/useDelay.js.map +0 -1
  573. package/dist/hooks/useFloatingElement.cjs +0 -162
  574. package/dist/hooks/useFloatingElement.cjs.map +0 -1
  575. package/dist/hooks/useFloatingElement.d.cts +0 -22
  576. package/dist/hooks/useFloatingElement.d.ts +0 -22
  577. package/dist/hooks/useFloatingElement.js +0 -139
  578. package/dist/hooks/useFloatingElement.js.map +0 -1
  579. package/dist/hooks/useHoverState.cjs +0 -71
  580. package/dist/hooks/useHoverState.cjs.map +0 -1
  581. package/dist/hooks/useHoverState.d.cts +0 -42
  582. package/dist/hooks/useHoverState.d.ts +0 -42
  583. package/dist/hooks/useHoverState.js +0 -47
  584. package/dist/hooks/useHoverState.js.map +0 -1
  585. package/dist/hooks/useLocalStorage.cjs +0 -97
  586. package/dist/hooks/useLocalStorage.cjs.map +0 -1
  587. package/dist/hooks/useLocalStorage.d.cts +0 -17
  588. package/dist/hooks/useLocalStorage.d.ts +0 -17
  589. package/dist/hooks/useLocalStorage.js +0 -74
  590. package/dist/hooks/useLocalStorage.js.map +0 -1
  591. package/dist/hooks/useLogOnce.cjs +0 -53
  592. package/dist/hooks/useLogOnce.cjs.map +0 -1
  593. package/dist/hooks/useLogOnce.d.cts +0 -7
  594. package/dist/hooks/useLogOnce.d.ts +0 -7
  595. package/dist/hooks/useLogOnce.js +0 -29
  596. package/dist/hooks/useLogOnce.js.map +0 -1
  597. package/dist/hooks/useOutsideClick.cjs +0 -47
  598. package/dist/hooks/useOutsideClick.cjs.map +0 -1
  599. package/dist/hooks/useOutsideClick.d.cts +0 -5
  600. package/dist/hooks/useOutsideClick.d.ts +0 -5
  601. package/dist/hooks/useOutsideClick.js +0 -23
  602. package/dist/hooks/useOutsideClick.js.map +0 -1
  603. package/dist/hooks/useOverwritableState.cjs +0 -49
  604. package/dist/hooks/useOverwritableState.cjs.map +0 -1
  605. package/dist/hooks/useOverwritableState.d.cts +0 -5
  606. package/dist/hooks/useOverwritableState.d.ts +0 -5
  607. package/dist/hooks/useOverwritableState.js +0 -25
  608. package/dist/hooks/useOverwritableState.js.map +0 -1
  609. package/dist/hooks/usePopoverPosition.cjs +0 -81
  610. package/dist/hooks/usePopoverPosition.cjs.map +0 -1
  611. package/dist/hooks/usePopoverPosition.d.cts +0 -15
  612. package/dist/hooks/usePopoverPosition.d.ts +0 -15
  613. package/dist/hooks/usePopoverPosition.js +0 -57
  614. package/dist/hooks/usePopoverPosition.js.map +0 -1
  615. package/dist/hooks/useRerender.cjs +0 -33
  616. package/dist/hooks/useRerender.cjs.map +0 -1
  617. package/dist/hooks/useRerender.d.cts +0 -5
  618. package/dist/hooks/useRerender.d.ts +0 -5
  619. package/dist/hooks/useRerender.js +0 -9
  620. package/dist/hooks/useRerender.js.map +0 -1
  621. package/dist/hooks/useResizeCallbackWrapper.cjs +0 -38
  622. package/dist/hooks/useResizeCallbackWrapper.cjs.map +0 -1
  623. package/dist/hooks/useResizeCallbackWrapper.d.cts +0 -11
  624. package/dist/hooks/useResizeCallbackWrapper.d.ts +0 -11
  625. package/dist/hooks/useResizeCallbackWrapper.js +0 -14
  626. package/dist/hooks/useResizeCallbackWrapper.js.map +0 -1
  627. package/dist/hooks/useSearch.cjs +0 -95
  628. package/dist/hooks/useSearch.cjs.map +0 -1
  629. package/dist/hooks/useSearch.d.cts +0 -22
  630. package/dist/hooks/useSearch.d.ts +0 -22
  631. package/dist/hooks/useSearch.js +0 -71
  632. package/dist/hooks/useSearch.js.map +0 -1
  633. package/dist/hooks/useValidators.cjs +0 -687
  634. package/dist/hooks/useValidators.cjs.map +0 -1
  635. package/dist/hooks/useValidators.d.cts +0 -16
  636. package/dist/hooks/useValidators.d.ts +0 -16
  637. package/dist/hooks/useValidators.js +0 -660
  638. package/dist/hooks/useValidators.js.map +0 -1
  639. package/dist/i18n/LocaleProvider.cjs +0 -202
  640. package/dist/i18n/LocaleProvider.cjs.map +0 -1
  641. package/dist/i18n/LocaleProvider.d.cts +0 -23
  642. package/dist/i18n/LocaleProvider.d.ts +0 -23
  643. package/dist/i18n/LocaleProvider.js +0 -175
  644. package/dist/i18n/LocaleProvider.js.map +0 -1
  645. package/dist/i18n/index.cjs +0 -761
  646. package/dist/i18n/index.cjs.map +0 -1
  647. package/dist/i18n/index.d.cts +0 -8
  648. package/dist/i18n/index.d.ts +0 -8
  649. package/dist/i18n/index.js +0 -727
  650. package/dist/i18n/index.js.map +0 -1
  651. package/dist/i18n/translations.cjs +0 -507
  652. package/dist/i18n/translations.cjs.map +0 -1
  653. package/dist/i18n/translations.d.cts +0 -189
  654. package/dist/i18n/translations.d.ts +0 -189
  655. package/dist/i18n/translations.js +0 -482
  656. package/dist/i18n/translations.js.map +0 -1
  657. package/dist/i18n/useHightideTranslation.cjs +0 -618
  658. package/dist/i18n/useHightideTranslation.cjs.map +0 -1
  659. package/dist/i18n/useHightideTranslation.d.cts +0 -21
  660. package/dist/i18n/useHightideTranslation.d.ts +0 -21
  661. package/dist/i18n/useHightideTranslation.js +0 -591
  662. package/dist/i18n/useHightideTranslation.js.map +0 -1
  663. package/dist/i18n/util.cjs +0 -49
  664. package/dist/i18n/util.cjs.map +0 -1
  665. package/dist/i18n/util.d.cts +0 -15
  666. package/dist/i18n/util.d.ts +0 -15
  667. package/dist/i18n/util.js +0 -23
  668. package/dist/i18n/util.js.map +0 -1
  669. package/dist/index.cjs +0 -16470
  670. package/dist/index.cjs.map +0 -1
  671. package/dist/index.d.cts +0 -113
  672. package/dist/storybook/helper.cjs +0 -61
  673. package/dist/storybook/helper.cjs.map +0 -1
  674. package/dist/storybook/helper.d.cts +0 -17
  675. package/dist/storybook/helper.d.ts +0 -17
  676. package/dist/storybook/helper.js +0 -37
  677. package/dist/storybook/helper.js.map +0 -1
  678. package/dist/theming/index.cjs +0 -190
  679. package/dist/theming/index.cjs.map +0 -1
  680. package/dist/theming/index.d.cts +0 -3
  681. package/dist/theming/index.d.ts +0 -3
  682. package/dist/theming/index.js +0 -161
  683. package/dist/theming/index.js.map +0 -1
  684. package/dist/theming/useTheme.cjs +0 -188
  685. package/dist/theming/useTheme.cjs.map +0 -1
  686. package/dist/theming/useTheme.d.cts +0 -26
  687. package/dist/theming/useTheme.d.ts +0 -26
  688. package/dist/theming/useTheme.js +0 -161
  689. package/dist/theming/useTheme.js.map +0 -1
  690. package/dist/utils/array.cjs +0 -172
  691. package/dist/utils/array.cjs.map +0 -1
  692. package/dist/utils/array.d.cts +0 -34
  693. package/dist/utils/array.d.ts +0 -34
  694. package/dist/utils/array.js +0 -142
  695. package/dist/utils/array.js.map +0 -1
  696. package/dist/utils/bagFunctions.cjs +0 -38
  697. package/dist/utils/bagFunctions.cjs.map +0 -1
  698. package/dist/utils/bagFunctions.d.cts +0 -15
  699. package/dist/utils/bagFunctions.d.ts +0 -15
  700. package/dist/utils/bagFunctions.js +0 -14
  701. package/dist/utils/bagFunctions.js.map +0 -1
  702. package/dist/utils/builder.cjs +0 -33
  703. package/dist/utils/builder.cjs.map +0 -1
  704. package/dist/utils/builder.d.cts +0 -8
  705. package/dist/utils/builder.d.ts +0 -8
  706. package/dist/utils/builder.js +0 -9
  707. package/dist/utils/builder.js.map +0 -1
  708. package/dist/utils/date.cjs +0 -193
  709. package/dist/utils/date.cjs.map +0 -1
  710. package/dist/utils/date.d.cts +0 -30
  711. package/dist/utils/date.d.ts +0 -30
  712. package/dist/utils/date.js +0 -156
  713. package/dist/utils/date.js.map +0 -1
  714. package/dist/utils/easeFunctions.cjs +0 -63
  715. package/dist/utils/easeFunctions.cjs.map +0 -1
  716. package/dist/utils/easeFunctions.d.cts +0 -11
  717. package/dist/utils/easeFunctions.d.ts +0 -11
  718. package/dist/utils/easeFunctions.js +0 -37
  719. package/dist/utils/easeFunctions.js.map +0 -1
  720. package/dist/utils/emailValidation.cjs +0 -32
  721. package/dist/utils/emailValidation.cjs.map +0 -1
  722. package/dist/utils/emailValidation.d.cts +0 -3
  723. package/dist/utils/emailValidation.d.ts +0 -3
  724. package/dist/utils/emailValidation.js +0 -8
  725. package/dist/utils/emailValidation.js.map +0 -1
  726. package/dist/utils/index.cjs +0 -562
  727. package/dist/utils/index.cjs.map +0 -1
  728. package/dist/utils/index.d.cts +0 -16
  729. package/dist/utils/index.d.ts +0 -16
  730. package/dist/utils/index.js +0 -502
  731. package/dist/utils/index.js.map +0 -1
  732. package/dist/utils/loopingArray.cjs +0 -96
  733. package/dist/utils/loopingArray.cjs.map +0 -1
  734. package/dist/utils/loopingArray.d.cts +0 -25
  735. package/dist/utils/loopingArray.d.ts +0 -25
  736. package/dist/utils/loopingArray.js +0 -72
  737. package/dist/utils/loopingArray.js.map +0 -1
  738. package/dist/utils/match.cjs +0 -32
  739. package/dist/utils/match.cjs.map +0 -1
  740. package/dist/utils/match.d.cts +0 -3
  741. package/dist/utils/match.d.ts +0 -3
  742. package/dist/utils/match.js +0 -8
  743. package/dist/utils/match.js.map +0 -1
  744. package/dist/utils/math.cjs +0 -33
  745. package/dist/utils/math.cjs.map +0 -1
  746. package/dist/utils/math.d.cts +0 -3
  747. package/dist/utils/math.d.ts +0 -3
  748. package/dist/utils/math.js +0 -9
  749. package/dist/utils/math.js.map +0 -1
  750. package/dist/utils/noop.cjs +0 -30
  751. package/dist/utils/noop.cjs.map +0 -1
  752. package/dist/utils/noop.d.cts +0 -3
  753. package/dist/utils/noop.d.ts +0 -3
  754. package/dist/utils/noop.js +0 -6
  755. package/dist/utils/noop.js.map +0 -1
  756. package/dist/utils/resolveSetState.cjs +0 -32
  757. package/dist/utils/resolveSetState.cjs.map +0 -1
  758. package/dist/utils/resolveSetState.d.cts +0 -5
  759. package/dist/utils/resolveSetState.d.ts +0 -5
  760. package/dist/utils/resolveSetState.js +0 -8
  761. package/dist/utils/resolveSetState.js.map +0 -1
  762. package/dist/utils/simpleSearch.cjs +0 -59
  763. package/dist/utils/simpleSearch.cjs.map +0 -1
  764. package/dist/utils/simpleSearch.d.cts +0 -50
  765. package/dist/utils/simpleSearch.d.ts +0 -50
  766. package/dist/utils/simpleSearch.js +0 -32
  767. package/dist/utils/simpleSearch.js.map +0 -1
  768. package/dist/utils/storage.cjs +0 -63
  769. package/dist/utils/storage.cjs.map +0 -1
  770. package/dist/utils/storage.d.cts +0 -16
  771. package/dist/utils/storage.d.ts +0 -16
  772. package/dist/utils/storage.js +0 -38
  773. package/dist/utils/storage.js.map +0 -1
  774. package/dist/utils/typing.cjs +0 -18
  775. package/dist/utils/typing.cjs.map +0 -1
  776. package/dist/utils/typing.d.cts +0 -8
  777. package/dist/utils/typing.d.ts +0 -8
  778. package/dist/utils/typing.js +0 -1
  779. package/dist/utils/typing.js.map +0 -1
  780. package/dist/utils/writeToClipboard.cjs +0 -33
  781. package/dist/utils/writeToClipboard.cjs.map +0 -1
  782. package/dist/utils/writeToClipboard.d.cts +0 -3
  783. package/dist/utils/writeToClipboard.d.ts +0 -3
  784. package/dist/utils/writeToClipboard.js +0 -10
  785. package/dist/utils/writeToClipboard.js.map +0 -1
@@ -34,17 +34,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  var require_use_sync_external_store_shim_production = __commonJS({
35
35
  "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
36
36
  "use strict";
37
- var React20 = __require("react");
37
+ var React21 = __require("react");
38
38
  function is(x, y) {
39
39
  return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
40
40
  }
41
41
  var objectIs = "function" === typeof Object.is ? Object.is : is;
42
- var useState35 = React20.useState;
43
- var useEffect36 = React20.useEffect;
44
- var useLayoutEffect3 = React20.useLayoutEffect;
45
- var useDebugValue = React20.useDebugValue;
42
+ var useState37 = React21.useState;
43
+ var useEffect40 = React21.useEffect;
44
+ var useLayoutEffect3 = React21.useLayoutEffect;
45
+ var useDebugValue = React21.useDebugValue;
46
46
  function useSyncExternalStore$2(subscribe2, getSnapshot) {
47
- var value = getSnapshot(), _useState = useState35({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
47
+ var value = getSnapshot(), _useState = useState37({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
48
48
  useLayoutEffect3(
49
49
  function() {
50
50
  inst.value = value;
@@ -53,7 +53,7 @@ var require_use_sync_external_store_shim_production = __commonJS({
53
53
  },
54
54
  [subscribe2, value, getSnapshot]
55
55
  );
56
- useEffect36(
56
+ useEffect40(
57
57
  function() {
58
58
  checkIfSnapshotChanged(inst) && forceUpdate({ inst });
59
59
  return subscribe2(function() {
@@ -79,7 +79,7 @@ var require_use_sync_external_store_shim_production = __commonJS({
79
79
  return getSnapshot();
80
80
  }
81
81
  var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
82
- exports.useSyncExternalStore = void 0 !== React20.useSyncExternalStore ? React20.useSyncExternalStore : shim;
82
+ exports.useSyncExternalStore = void 0 !== React21.useSyncExternalStore ? React21.useSyncExternalStore : shim;
83
83
  }
84
84
  });
85
85
 
@@ -92,7 +92,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
92
92
  return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
93
93
  }
94
94
  function useSyncExternalStore$2(subscribe2, getSnapshot) {
95
- didWarnOld18Alpha || void 0 === React20.startTransition || (didWarnOld18Alpha = true, console.error(
95
+ didWarnOld18Alpha || void 0 === React21.startTransition || (didWarnOld18Alpha = true, console.error(
96
96
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
97
97
  ));
98
98
  var value = getSnapshot();
@@ -102,7 +102,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
102
102
  "The result of getSnapshot should be cached to avoid an infinite loop"
103
103
  ), didWarnUncachedGetSnapshot = true);
104
104
  }
105
- cachedValue = useState35({
105
+ cachedValue = useState37({
106
106
  inst: { value, getSnapshot }
107
107
  });
108
108
  var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
@@ -114,7 +114,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
114
114
  },
115
115
  [subscribe2, value, getSnapshot]
116
116
  );
117
- useEffect36(
117
+ useEffect40(
118
118
  function() {
119
119
  checkIfSnapshotChanged(inst) && forceUpdate({ inst });
120
120
  return subscribe2(function() {
@@ -140,8 +140,8 @@ var require_use_sync_external_store_shim_development = __commonJS({
140
140
  return getSnapshot();
141
141
  }
142
142
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
143
- var React20 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState35 = React20.useState, useEffect36 = React20.useEffect, useLayoutEffect3 = React20.useLayoutEffect, useDebugValue = React20.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
144
- exports.useSyncExternalStore = void 0 !== React20.useSyncExternalStore ? React20.useSyncExternalStore : shim;
143
+ var React21 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState37 = React21.useState, useEffect40 = React21.useEffect, useLayoutEffect3 = React21.useLayoutEffect, useDebugValue = React21.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
144
+ exports.useSyncExternalStore = void 0 !== React21.useSyncExternalStore ? React21.useSyncExternalStore : shim;
145
145
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
146
146
  }();
147
147
  }
@@ -6365,6 +6365,50 @@ var require_link2 = __commonJS({
6365
6365
  }
6366
6366
  });
6367
6367
 
6368
+ // src/coloring/shading.ts
6369
+ import tinycolor from "tinycolor2";
6370
+
6371
+ // src/coloring/types.ts
6372
+ var shadingColorValues = [0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1e3];
6373
+
6374
+ // src/coloring/shading.ts
6375
+ var generateShadingColors = (partialShading) => {
6376
+ const shading = {
6377
+ 0: "#FFFFFF",
6378
+ 1e3: "#000000"
6379
+ };
6380
+ let index = 1;
6381
+ while (index < shadingColorValues.length - 1) {
6382
+ const previous = shadingColorValues[index - 1];
6383
+ const current = shadingColorValues[index];
6384
+ if (partialShading[current] !== void 0) {
6385
+ shading[current] = partialShading[current];
6386
+ index++;
6387
+ continue;
6388
+ }
6389
+ let j = index + 1;
6390
+ while (j < shadingColorValues.length) {
6391
+ if (partialShading[shadingColorValues[j]] !== void 0) {
6392
+ break;
6393
+ }
6394
+ j++;
6395
+ }
6396
+ if (j === shadingColorValues.length) {
6397
+ j = shadingColorValues.length - 1;
6398
+ }
6399
+ const nextFound = shadingColorValues[j];
6400
+ const interval = nextFound - previous;
6401
+ for (let k = index; k < j; k++) {
6402
+ const current2 = shadingColorValues[k];
6403
+ const previousValue = partialShading[previous] ?? shading[previous];
6404
+ const nextValue = partialShading[nextFound] ?? shading[nextFound];
6405
+ shading[current2] = tinycolor.mix(tinycolor(previousValue), tinycolor(nextValue), (current2 - previous) / interval * 100).toHexString();
6406
+ }
6407
+ index = j;
6408
+ }
6409
+ return shading;
6410
+ };
6411
+
6368
6412
  // src/components/icons-and-geometry/HelpwaveLogo.tsx
6369
6413
  import { clsx } from "clsx";
6370
6414
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -6561,6 +6605,9 @@ var createLoopingListWithIndex = (list, startIndex = 0, length = 0, forwards = t
6561
6605
  }
6562
6606
  return returnList;
6563
6607
  };
6608
+ var createLoopingList = (list, startIndex = 0, length = 0, forwards = true) => {
6609
+ return createLoopingListWithIndex(list, startIndex, length, forwards).map(([_, item]) => item);
6610
+ };
6564
6611
  var moveItems = (list, move = 0) => {
6565
6612
  const result = [];
6566
6613
  let start = move;
@@ -6615,6 +6662,10 @@ var formatDateTime = (date) => {
6615
6662
  const minutes = date.getMinutes().toString().padStart(2, "0");
6616
6663
  return `${dateString}T${hours}:${minutes}`;
6617
6664
  };
6665
+ var getDaysInMonth = (year, month) => {
6666
+ const lastDayOfMonth = new Date(year, month + 1, 0);
6667
+ return lastDayOfMonth.getDate();
6668
+ };
6618
6669
  var changeDuration = (date, duration, isAdding) => {
6619
6670
  const {
6620
6671
  years = 0,
@@ -6670,6 +6721,28 @@ var addDuration = (date, duration) => {
6670
6721
  var subtractDuration = (date, duration) => {
6671
6722
  return changeDuration(date, duration, false);
6672
6723
  };
6724
+ var getBetweenDuration = (startDate, endDate) => {
6725
+ const durationInMilliseconds = endDate.getTime() - startDate.getTime();
6726
+ const millisecondsInSecond = 1e3;
6727
+ const millisecondsInMinute = 60 * millisecondsInSecond;
6728
+ const millisecondsInHour = 60 * millisecondsInMinute;
6729
+ const millisecondsInDay = 24 * millisecondsInHour;
6730
+ const millisecondsInMonth = 30 * millisecondsInDay;
6731
+ const years = Math.floor(durationInMilliseconds / (365.25 * millisecondsInDay));
6732
+ const months = Math.floor(durationInMilliseconds / millisecondsInMonth);
6733
+ const days = Math.floor(durationInMilliseconds / millisecondsInDay);
6734
+ const hours = Math.floor(durationInMilliseconds % millisecondsInDay / millisecondsInHour);
6735
+ const seconds = Math.floor(durationInMilliseconds % millisecondsInHour / millisecondsInSecond);
6736
+ const milliseconds = durationInMilliseconds % millisecondsInSecond;
6737
+ return {
6738
+ years,
6739
+ months,
6740
+ days,
6741
+ hours,
6742
+ seconds,
6743
+ milliseconds
6744
+ };
6745
+ };
6673
6746
  var isInTimeSpan = (value, startDate, endDate) => {
6674
6747
  if (startDate && endDate) {
6675
6748
  console.assert(startDate <= endDate);
@@ -6737,6 +6810,72 @@ import { createContext, useContext, useEffect as useEffect2, useMemo, useState a
6737
6810
  // src/hooks/useLocalStorage.ts
6738
6811
  import { useCallback, useState as useState2 } from "react";
6739
6812
 
6813
+ // src/utils/storage.ts
6814
+ var StorageService = class {
6815
+ // this seems to be a bug in eslint as 'paramter-properties' is a special syntax of typescript
6816
+ constructor(storage) {
6817
+ this.storage = storage;
6818
+ }
6819
+ get(key) {
6820
+ const value = this.storage.getItem(key);
6821
+ if (value === null) {
6822
+ return null;
6823
+ }
6824
+ return JSON.parse(value);
6825
+ }
6826
+ set(key, value) {
6827
+ this.storage.setItem(key, JSON.stringify(value));
6828
+ }
6829
+ delete(key) {
6830
+ this.storage.removeItem(key);
6831
+ }
6832
+ deleteAll() {
6833
+ this.storage.clear();
6834
+ }
6835
+ };
6836
+ var LocalStorageService = class extends StorageService {
6837
+ constructor() {
6838
+ super(window.localStorage);
6839
+ }
6840
+ };
6841
+ var SessionStorageService = class extends StorageService {
6842
+ constructor() {
6843
+ super(window.sessionStorage);
6844
+ }
6845
+ };
6846
+
6847
+ // src/hooks/useLocalStorage.ts
6848
+ var useLocalStorage = (key, backupValue) => {
6849
+ const get = useCallback(() => {
6850
+ if (typeof window === "undefined") {
6851
+ return backupValue;
6852
+ }
6853
+ const storageService = new LocalStorageService();
6854
+ try {
6855
+ const value = storageService.get(key);
6856
+ return value || backupValue;
6857
+ } catch (_) {
6858
+ console.warn("useLocalStorage: Error while reading the stored value. Make sure your typing is correct.");
6859
+ storageService.delete(key);
6860
+ console.info(`useLocalStorage: deleted erroneous value for key: ${key}`);
6861
+ return backupValue;
6862
+ }
6863
+ }, [backupValue, key]);
6864
+ const [storedValue, setStoredValue] = useState2(get);
6865
+ const setValue = useCallback((action) => {
6866
+ const newValue = resolveSetState(action, storedValue);
6867
+ const storageService = new LocalStorageService();
6868
+ storageService.set(key, newValue);
6869
+ setStoredValue(newValue);
6870
+ }, [storedValue, setStoredValue, key]);
6871
+ const deleteValue = () => {
6872
+ const storageService = new LocalStorageService();
6873
+ storageService.delete(key);
6874
+ setStoredValue(backupValue);
6875
+ };
6876
+ return { value: storedValue, setValue, deleteValue };
6877
+ };
6878
+
6740
6879
  // src/i18n/translations.ts
6741
6880
  import { TranslationGen } from "@helpwave/internationalization";
6742
6881
  var hightideTranslationLocales = ["de-DE", "en-US"];
@@ -6847,7 +6986,7 @@ var hightideTranslation = {
6847
6986
  });
6848
6987
  },
6849
6988
  "themes": ({ count }) => {
6850
- return TranslationGen.resolveSelect(count, {
6989
+ return TranslationGen.resolvePlural(count, {
6851
6990
  "=1": `Farbschema`,
6852
6991
  "other": `Farbschemas`
6853
6992
  });
@@ -6859,19 +6998,19 @@ var hightideTranslation = {
6859
6998
  "time.april": `April`,
6860
6999
  "time.august": `August`,
6861
7000
  "time.century": ({ count }) => {
6862
- return TranslationGen.resolveSelect(count, {
7001
+ return TranslationGen.resolvePlural(count, {
6863
7002
  "=1": `Jahrhundert`,
6864
7003
  "other": `Jahrhunderte`
6865
7004
  });
6866
7005
  },
6867
7006
  "time.day": ({ count }) => {
6868
- return TranslationGen.resolveSelect(count, {
7007
+ return TranslationGen.resolvePlural(count, {
6869
7008
  "=1": `Tag`,
6870
7009
  "other": `Tage`
6871
7010
  });
6872
7011
  },
6873
7012
  "time.decade": ({ count }) => {
6874
- return TranslationGen.resolveSelect(count, {
7013
+ return TranslationGen.resolvePlural(count, {
6875
7014
  "=1": `Jahrzehnt`,
6876
7015
  "other": `Jahrzehnte`
6877
7016
  });
@@ -6879,7 +7018,7 @@ var hightideTranslation = {
6879
7018
  "time.december": `December`,
6880
7019
  "time.february": `Febuar`,
6881
7020
  "time.hour": ({ count }) => {
6882
- return TranslationGen.resolveSelect(count, {
7021
+ return TranslationGen.resolvePlural(count, {
6883
7022
  "=1": `Stunde`,
6884
7023
  "other": `Stunden`
6885
7024
  });
@@ -6894,25 +7033,25 @@ var hightideTranslation = {
6894
7033
  "time.march": `M\xE4rz`,
6895
7034
  "time.may": `Mai`,
6896
7035
  "time.microsecond": ({ count }) => {
6897
- return TranslationGen.resolveSelect(count, {
7036
+ return TranslationGen.resolvePlural(count, {
6898
7037
  "=1": `Mikrosekunde`,
6899
7038
  "other": `Mikrosekunden`
6900
7039
  });
6901
7040
  },
6902
7041
  "time.millisecond": ({ count }) => {
6903
- return TranslationGen.resolveSelect(count, {
7042
+ return TranslationGen.resolvePlural(count, {
6904
7043
  "=1": `Millisekunde`,
6905
7044
  "other": `Millisekunden`
6906
7045
  });
6907
7046
  },
6908
7047
  "time.minute": ({ count }) => {
6909
- return TranslationGen.resolveSelect(count, {
7048
+ return TranslationGen.resolvePlural(count, {
6910
7049
  "=1": `Minute`,
6911
7050
  "other": `Minuten`
6912
7051
  });
6913
7052
  },
6914
7053
  "time.month": ({ count }) => {
6915
- return TranslationGen.resolveSelect(count, {
7054
+ return TranslationGen.resolvePlural(count, {
6916
7055
  "=1": `Monat`,
6917
7056
  "other": `Monate`
6918
7057
  });
@@ -6935,7 +7074,7 @@ var hightideTranslation = {
6935
7074
  });
6936
7075
  },
6937
7076
  "time.nanosecond": ({ count }) => {
6938
- return TranslationGen.resolveSelect(count, {
7077
+ return TranslationGen.resolvePlural(count, {
6939
7078
  "=1": `Nanosekunde`,
6940
7079
  "other": `Nanosekunden`
6941
7080
  });
@@ -6943,7 +7082,7 @@ var hightideTranslation = {
6943
7082
  "time.november": `November`,
6944
7083
  "time.october": `October`,
6945
7084
  "time.second": ({ count }) => {
6946
- return TranslationGen.resolveSelect(count, {
7085
+ return TranslationGen.resolvePlural(count, {
6947
7086
  "=1": `Sekunde`,
6948
7087
  "other": `Sekunden`
6949
7088
  });
@@ -6952,7 +7091,7 @@ var hightideTranslation = {
6952
7091
  "time.today": `Heute`,
6953
7092
  "time.tomorrow": `Morgen`,
6954
7093
  "time.year": ({ count }) => {
6955
- return TranslationGen.resolveSelect(count, {
7094
+ return TranslationGen.resolvePlural(count, {
6956
7095
  "=1": `Jahr`,
6957
7096
  "other": `Jahre`
6958
7097
  });
@@ -7083,7 +7222,7 @@ var hightideTranslation = {
7083
7222
  });
7084
7223
  },
7085
7224
  "themes": ({ count }) => {
7086
- return TranslationGen.resolveSelect(count, {
7225
+ return TranslationGen.resolvePlural(count, {
7087
7226
  "=1": `Theme`,
7088
7227
  "other": `Themes`
7089
7228
  });
@@ -7095,19 +7234,19 @@ var hightideTranslation = {
7095
7234
  "time.april": `April`,
7096
7235
  "time.august": `August`,
7097
7236
  "time.century": ({ count }) => {
7098
- return TranslationGen.resolveSelect(count, {
7237
+ return TranslationGen.resolvePlural(count, {
7099
7238
  "=1": `Century`,
7100
7239
  "other": `Centuries`
7101
7240
  });
7102
7241
  },
7103
7242
  "time.day": ({ count }) => {
7104
- return TranslationGen.resolveSelect(count, {
7243
+ return TranslationGen.resolvePlural(count, {
7105
7244
  "=1": `Day`,
7106
7245
  "other": `Days`
7107
7246
  });
7108
7247
  },
7109
7248
  "time.decade": ({ count }) => {
7110
- return TranslationGen.resolveSelect(count, {
7249
+ return TranslationGen.resolvePlural(count, {
7111
7250
  "=1": `Decade`,
7112
7251
  "other": `Decades`
7113
7252
  });
@@ -7115,7 +7254,7 @@ var hightideTranslation = {
7115
7254
  "time.december": `December`,
7116
7255
  "time.february": `Febuary`,
7117
7256
  "time.hour": ({ count }) => {
7118
- return TranslationGen.resolveSelect(count, {
7257
+ return TranslationGen.resolvePlural(count, {
7119
7258
  "=1": `Hour`,
7120
7259
  "other": `Hours`
7121
7260
  });
@@ -7130,25 +7269,25 @@ var hightideTranslation = {
7130
7269
  "time.march": `March`,
7131
7270
  "time.may": `May`,
7132
7271
  "time.microsecond": ({ count }) => {
7133
- return TranslationGen.resolveSelect(count, {
7272
+ return TranslationGen.resolvePlural(count, {
7134
7273
  "=1": `Microsecond`,
7135
7274
  "other": `Microseconds`
7136
7275
  });
7137
7276
  },
7138
7277
  "time.millisecond": ({ count }) => {
7139
- return TranslationGen.resolveSelect(count, {
7278
+ return TranslationGen.resolvePlural(count, {
7140
7279
  "=1": `Millisecond`,
7141
7280
  "other": `Milliseconds`
7142
7281
  });
7143
7282
  },
7144
7283
  "time.minute": ({ count }) => {
7145
- return TranslationGen.resolveSelect(count, {
7284
+ return TranslationGen.resolvePlural(count, {
7146
7285
  "=1": `Minute`,
7147
7286
  "other": `Minutes`
7148
7287
  });
7149
7288
  },
7150
7289
  "time.month": ({ count }) => {
7151
- return TranslationGen.resolveSelect(count, {
7290
+ return TranslationGen.resolvePlural(count, {
7152
7291
  "=1": `Month`,
7153
7292
  "other": `Months`
7154
7293
  });
@@ -7171,7 +7310,7 @@ var hightideTranslation = {
7171
7310
  });
7172
7311
  },
7173
7312
  "time.nanosecond": ({ count }) => {
7174
- return TranslationGen.resolveSelect(count, {
7313
+ return TranslationGen.resolvePlural(count, {
7175
7314
  "=1": `Nanosecond`,
7176
7315
  "other": `Nanoseconds`
7177
7316
  });
@@ -7179,7 +7318,7 @@ var hightideTranslation = {
7179
7318
  "time.november": `November`,
7180
7319
  "time.october": `October`,
7181
7320
  "time.second": ({ count }) => {
7182
- return TranslationGen.resolveSelect(count, {
7321
+ return TranslationGen.resolvePlural(count, {
7183
7322
  "=1": `Second`,
7184
7323
  "other": `Seconds`
7185
7324
  });
@@ -7188,7 +7327,7 @@ var hightideTranslation = {
7188
7327
  "time.today": `Today`,
7189
7328
  "time.tomorrow": `Tomorrow`,
7190
7329
  "time.year": ({ count }) => {
7191
- return TranslationGen.resolveSelect(count, {
7330
+ return TranslationGen.resolvePlural(count, {
7192
7331
  "=1": `Year`,
7193
7332
  "other": `Years`
7194
7333
  });
@@ -7237,6 +7376,62 @@ var LocaleContext = createContext({
7237
7376
  locale: LocalizationUtil.DEFAULT_LOCALE,
7238
7377
  setLocale: (v) => v
7239
7378
  });
7379
+ var LocaleProvider = ({ children, locale, onChangedLocale }) => {
7380
+ const {
7381
+ value: storedLocale,
7382
+ setValue: setStoredLocale,
7383
+ deleteValue: deleteStoredLocale
7384
+ } = useLocalStorage("locale", "system");
7385
+ const [localePreference, setLocalePreference] = useState3("system");
7386
+ const resolvedLocale = useMemo(() => {
7387
+ if (locale && locale !== "system") {
7388
+ return locale;
7389
+ }
7390
+ if (storedLocale && storedLocale !== "system") {
7391
+ return storedLocale;
7392
+ }
7393
+ if (localePreference !== "system") {
7394
+ return localePreference;
7395
+ }
7396
+ return LocalizationUtil.DEFAULT_LOCALE;
7397
+ }, [locale, localePreference, storedLocale]);
7398
+ useEffect2(() => {
7399
+ if (!locale) return;
7400
+ if (locale === "system") {
7401
+ deleteStoredLocale();
7402
+ } else {
7403
+ setStoredLocale(locale);
7404
+ }
7405
+ }, [locale]);
7406
+ useEffect2(() => {
7407
+ onChangedLocale?.(resolvedLocale);
7408
+ }, [resolvedLocale]);
7409
+ useEffect2(() => {
7410
+ const localesToTestAgainst = Object.values(LocalizationUtil.locals);
7411
+ const detectLanguage = () => {
7412
+ const matchingBrowserLanguage = window.navigator.languages.map((locale2) => localesToTestAgainst.find(
7413
+ (test) => locale2 === test || locale2.split("-")[0] === LocalizationUtil.localToLanguage(test)
7414
+ )).filter((entry) => entry !== void 0);
7415
+ if (matchingBrowserLanguage.length === 0) return;
7416
+ const firstMatch = matchingBrowserLanguage[0];
7417
+ setLocalePreference(firstMatch);
7418
+ };
7419
+ detectLanguage();
7420
+ window.addEventListener("languagechange", detectLanguage);
7421
+ return () => {
7422
+ window.removeEventListener("languagechange", detectLanguage);
7423
+ };
7424
+ }, []);
7425
+ return /* @__PURE__ */ jsx3(LocaleContext.Provider, { value: {
7426
+ locale: resolvedLocale,
7427
+ setLocale: (newLocale) => {
7428
+ if (locale !== "system") {
7429
+ console.warn("LocaleProvider: Attempting to change the locale while setting a fixed locale won't have any effect. Change the locale provided to the LocaleProvider instead.");
7430
+ }
7431
+ setStoredLocale(newLocale);
7432
+ }
7433
+ }, children });
7434
+ };
7240
7435
  var useLocale = () => {
7241
7436
  const context = useContext(LocaleContext);
7242
7437
  if (!context) {
@@ -7244,6 +7439,13 @@ var useLocale = () => {
7244
7439
  }
7245
7440
  return context;
7246
7441
  };
7442
+ var useLanguage = () => {
7443
+ const context = useContext(LocaleContext);
7444
+ if (!context) {
7445
+ throw new Error("useLanguage must be used within LocaleContext. Try adding a LocaleProvider around your app.");
7446
+ }
7447
+ return { language: LocalizationUtil.localToLanguage(context.locale) };
7448
+ };
7247
7449
 
7248
7450
  // src/components/date/DayPicker.tsx
7249
7451
  import { useEffect as useEffect3, useState as useState4 } from "react";
@@ -7774,6 +7976,25 @@ var YearMonthPickerUncontrolled = ({
7774
7976
 
7775
7977
  // src/i18n/useHightideTranslation.ts
7776
7978
  import { combineTranslation, ICUUtil } from "@helpwave/internationalization";
7979
+ function useICUTranslation(translations, locale) {
7980
+ translations = Array.isArray(translations) ? translations : [translations];
7981
+ return function translate(key, values) {
7982
+ try {
7983
+ for (let i = 0; i < translations.length; i++) {
7984
+ const localizedTranslation = translations[i][locale];
7985
+ if (!localizedTranslation) continue;
7986
+ const msg = localizedTranslation[key];
7987
+ if (typeof msg === "string") {
7988
+ return ICUUtil.interpret(msg, values);
7989
+ }
7990
+ }
7991
+ console.warn(`useTranslation: No translation for key "${key}" found.`);
7992
+ } catch (e) {
7993
+ console.error(`useTranslation: Error translating key "${String(key)}"`, e);
7994
+ }
7995
+ return `{{${String(locale)}:${String(key)}}}`;
7996
+ };
7997
+ }
7777
7998
  function useHightideTranslation(extensions, overwrites) {
7778
7999
  const { locale: inferredLocale } = useLocale();
7779
8000
  const locale = overwrites?.locale ?? inferredLocale;
@@ -9629,6 +9850,74 @@ var ThemeUtil = {
9629
9850
  themes
9630
9851
  };
9631
9852
  var ThemeContext = createContext3(null);
9853
+ var ThemeProvider = ({ children, theme }) => {
9854
+ const {
9855
+ value: storedTheme,
9856
+ setValue: setStoredTheme,
9857
+ deleteValue: deleteStoredTheme
9858
+ } = useLocalStorage("theme", "system");
9859
+ const [themePreference, setThemePreference] = useState13("system");
9860
+ const resolvedTheme = useMemo3(() => {
9861
+ if (theme && theme !== "system") {
9862
+ return theme;
9863
+ }
9864
+ if (storedTheme && storedTheme !== "system") {
9865
+ return storedTheme;
9866
+ }
9867
+ if (themePreference !== "system") {
9868
+ return themePreference;
9869
+ }
9870
+ return "light";
9871
+ }, [storedTheme, theme, themePreference]);
9872
+ useEffect14(() => {
9873
+ if (!theme) return;
9874
+ if (theme === "system") {
9875
+ deleteStoredTheme();
9876
+ } else {
9877
+ setStoredTheme(theme);
9878
+ }
9879
+ }, [theme]);
9880
+ useEffect14(() => {
9881
+ document.documentElement.setAttribute("data-theme", resolvedTheme);
9882
+ }, [resolvedTheme]);
9883
+ const getPreference = useCallback7(() => {
9884
+ const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
9885
+ const prefersLight = window.matchMedia("(prefers-color-scheme: light)").matches;
9886
+ setThemePreference(prefersDark ? "dark" : prefersLight ? "light" : "system");
9887
+ }, []);
9888
+ useEffect14(() => {
9889
+ getPreference();
9890
+ }, [getPreference]);
9891
+ useEffect14(() => {
9892
+ const darkQuery = window.matchMedia("(prefers-color-scheme: dark)");
9893
+ const lightQuery = window.matchMedia("(prefers-color-scheme: light)");
9894
+ const noPrefQuery = window.matchMedia("(prefers-color-scheme: no-preference)");
9895
+ darkQuery.addEventListener("change", getPreference);
9896
+ lightQuery.addEventListener("change", getPreference);
9897
+ noPrefQuery.addEventListener("change", getPreference);
9898
+ return () => {
9899
+ darkQuery.removeEventListener("change", getPreference);
9900
+ lightQuery.removeEventListener("change", getPreference);
9901
+ noPrefQuery.removeEventListener("change", getPreference);
9902
+ };
9903
+ }, [getPreference]);
9904
+ return /* @__PURE__ */ jsx19(
9905
+ ThemeContext.Provider,
9906
+ {
9907
+ value: {
9908
+ theme: storedTheme,
9909
+ resolvedTheme,
9910
+ setTheme: (newTheme) => {
9911
+ if (theme && theme !== "system") {
9912
+ console.warn("ThemeProvider: Attempting to change the theme while setting a fixed theme won't have any effect. Change the theme provided to the ThemeProvider instead.");
9913
+ }
9914
+ setStoredTheme(newTheme);
9915
+ }
9916
+ },
9917
+ children
9918
+ }
9919
+ );
9920
+ };
9632
9921
  var useTheme = () => {
9633
9922
  const context = useContext3(ThemeContext);
9634
9923
  if (!context) {
@@ -10565,7 +10854,7 @@ var RadialRings = ({
10565
10854
  };
10566
10855
 
10567
10856
  // src/components/icons-and-geometry/Tag.tsx
10568
- var import_image = __toESM(require_image(), 1);
10857
+ var import_image = __toESM(require_image());
10569
10858
  import { jsx as jsx30 } from "react/jsx-runtime";
10570
10859
  var TagIcon = ({
10571
10860
  className,
@@ -12497,9 +12786,102 @@ var ScrollArea2 = ({
12497
12786
  );
12498
12787
  };
12499
12788
 
12500
- // src/components/layout/TextImage.tsx
12789
+ // src/components/layout/TabView.tsx
12790
+ import { useId as useId7 } from "react";
12791
+ import { createContext as createContext8, useContext as useContext8, useState as useState20, useEffect as useEffect22, useRef as useRef14 } from "react";
12501
12792
  import clsx26 from "clsx";
12502
12793
  import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
12794
+ var TabContext = createContext8(null);
12795
+ function useTabContext() {
12796
+ const ctx = useContext8(TabContext);
12797
+ if (!ctx) throw new Error("useTabContext must be used inside a <TabView>");
12798
+ return ctx;
12799
+ }
12800
+ function TabView({ children, outerDivProps, onTabChanged, initialTabIndex = 0, ...props }) {
12801
+ const [tabs, setTabs] = useState20([]);
12802
+ const [active, setActiveState] = useState20(null);
12803
+ const buttonRefs = useRef14({});
12804
+ const setActive = (id) => {
12805
+ setActiveState(id);
12806
+ onTabChanged?.(id);
12807
+ };
12808
+ const register = (id, label) => {
12809
+ setTabs((prev) => {
12810
+ const exists = prev.some((t) => t.id === id);
12811
+ if (!exists) {
12812
+ const updated = [...prev, { id, label }];
12813
+ if (active === null && updated[initialTabIndex]) {
12814
+ setActive(updated[initialTabIndex].id);
12815
+ }
12816
+ return updated;
12817
+ }
12818
+ return prev;
12819
+ });
12820
+ };
12821
+ const unregister = (id) => {
12822
+ setTabs((prev) => prev.filter((t) => t.id !== id));
12823
+ delete buttonRefs.current[id];
12824
+ };
12825
+ const onKeyDown = (e, id) => {
12826
+ const idx = tabs.findIndex((t) => t.id === id);
12827
+ if (idx === -1) return;
12828
+ let nextIdx = idx;
12829
+ if (e.key === "ArrowRight") nextIdx = (idx + 1) % tabs.length;
12830
+ else if (e.key === "ArrowLeft") nextIdx = (idx - 1 + tabs.length) % tabs.length;
12831
+ else return;
12832
+ const nextId = tabs[nextIdx].id;
12833
+ setActive(nextId);
12834
+ buttonRefs.current[nextId]?.focus();
12835
+ };
12836
+ const value = { active, setActive, register, unregister, tabs };
12837
+ return /* @__PURE__ */ jsx40(TabContext.Provider, { value, children: /* @__PURE__ */ jsxs21("div", { ...outerDivProps, className: clsx26("w-full", props.className), children: [
12838
+ /* @__PURE__ */ jsx40("div", { role: "tablist", ...props, className: clsx26("flex-row-0"), children: tabs.map((t) => /* @__PURE__ */ jsx40(
12839
+ "button",
12840
+ {
12841
+ role: "tab",
12842
+ "aria-selected": active === t.id,
12843
+ "aria-controls": `${t.id}-panel`,
12844
+ id: `${t.id}-tab`,
12845
+ tabIndex: active === t.id ? 0 : -1,
12846
+ ref: (el) => buttonRefs.current[t.id] = el,
12847
+ onClick: () => setActive(t.id),
12848
+ onKeyDown: (e) => onKeyDown(e, t.id),
12849
+ className: clsx26(
12850
+ "flex-row-0 grow justify-center px-3 pb-1 typography-label-md border-b-2",
12851
+ active === t.id ? "border-primary" : "text-description hover:text-on-background"
12852
+ ),
12853
+ children: t.label
12854
+ },
12855
+ t.id
12856
+ )) }),
12857
+ children
12858
+ ] }) });
12859
+ }
12860
+ function Tab({ id: customId, label, children, ...props }) {
12861
+ const { active, register, unregister } = useTabContext();
12862
+ const generatedId = useId7();
12863
+ const id = customId ?? generatedId;
12864
+ useEffect22(() => {
12865
+ register(id, label);
12866
+ return () => unregister(id);
12867
+ }, [id, label]);
12868
+ return /* @__PURE__ */ jsx40(
12869
+ "div",
12870
+ {
12871
+ role: "tabpanel",
12872
+ id: `${id}-panel`,
12873
+ "aria-labelledby": `${id}-tab`,
12874
+ hidden: active !== id,
12875
+ className: "mt-4 text-sm",
12876
+ ...props,
12877
+ children: active === id && children
12878
+ }
12879
+ );
12880
+ }
12881
+
12882
+ // src/components/layout/TextImage.tsx
12883
+ import clsx27 from "clsx";
12884
+ import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
12503
12885
  var TextImage = ({
12504
12886
  title,
12505
12887
  description,
@@ -12521,25 +12903,25 @@ var TextImage = ({
12521
12903
  secondary: "text-text-image-secondary-text bg-linear-to-r from-30% from-text-image-secondary-background to-text-image-secondary-background/55",
12522
12904
  dark: "text-text-image-dark-text bg-linear-to-r from-30% from-text-image-dark-background to-text-image-dark-background/55"
12523
12905
  };
12524
- return /* @__PURE__ */ jsx40(
12906
+ return /* @__PURE__ */ jsx41(
12525
12907
  "div",
12526
12908
  {
12527
- className: clsx26("rounded-2xl w-full", className),
12909
+ className: clsx27("rounded-2xl w-full", className),
12528
12910
  style: {
12529
12911
  backgroundImage: `url(${imageUrl})`,
12530
12912
  backgroundSize: "cover"
12531
12913
  },
12532
- children: /* @__PURE__ */ jsxs21(
12914
+ children: /* @__PURE__ */ jsxs22(
12533
12915
  "div",
12534
12916
  {
12535
- className: clsx26(`flex-col-2 px-6 py-12 rounded-2xl h-full`, colorMapping[color], contentClassName),
12917
+ className: clsx27(`flex-col-2 px-6 py-12 rounded-2xl h-full`, colorMapping[color], contentClassName),
12536
12918
  children: [
12537
- badge && /* @__PURE__ */ jsx40("div", { className: clsx26(`chip-full mb-2 py-2 px-4 w-fit`, chipColorMapping[color]), children: /* @__PURE__ */ jsx40("span", { className: "text-lg font-bold", children: badge }) }),
12538
- /* @__PURE__ */ jsxs21("div", { className: "flex-col-1 overflow-hidden", children: [
12539
- /* @__PURE__ */ jsx40("span", { className: "typography-title-lg", children: title }),
12540
- /* @__PURE__ */ jsx40("span", { className: "text-ellipsis overflow-hidden", children: description })
12919
+ badge && /* @__PURE__ */ jsx41("div", { className: clsx27(`chip-full mb-2 py-2 px-4 w-fit`, chipColorMapping[color]), children: /* @__PURE__ */ jsx41("span", { className: "text-lg font-bold", children: badge }) }),
12920
+ /* @__PURE__ */ jsxs22("div", { className: "flex-col-1 overflow-hidden", children: [
12921
+ /* @__PURE__ */ jsx41("span", { className: "typography-title-lg", children: title }),
12922
+ /* @__PURE__ */ jsx41("span", { className: "text-ellipsis overflow-hidden", children: description })
12541
12923
  ] }),
12542
- onShowMoreClicked && /* @__PURE__ */ jsx40("div", { className: "flex-row-2 mt-2 underline", children: /* @__PURE__ */ jsx40("button", { onClick: onShowMoreClicked, children: translation("showMore") }) })
12924
+ onShowMoreClicked && /* @__PURE__ */ jsx41("div", { className: "flex-row-2 mt-2 underline", children: /* @__PURE__ */ jsx41("button", { onClick: onShowMoreClicked, children: translation("showMore") }) })
12543
12925
  ]
12544
12926
  }
12545
12927
  )
@@ -12548,7 +12930,7 @@ var TextImage = ({
12548
12930
  };
12549
12931
 
12550
12932
  // src/components/layout/VerticalDivider.tsx
12551
- import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
12933
+ import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
12552
12934
  var VerticalDivider = ({
12553
12935
  width = 1,
12554
12936
  height = 100,
@@ -12556,7 +12938,7 @@ var VerticalDivider = ({
12556
12938
  dashGap = 4,
12557
12939
  dashLength = 4
12558
12940
  }) => {
12559
- return /* @__PURE__ */ jsx41("div", { style: { width: width + "px", height: height + "px" }, children: /* @__PURE__ */ jsxs22(
12941
+ return /* @__PURE__ */ jsx42("div", { style: { width: width + "px", height: height + "px" }, children: /* @__PURE__ */ jsxs23(
12560
12942
  "svg",
12561
12943
  {
12562
12944
  width,
@@ -12565,7 +12947,7 @@ var VerticalDivider = ({
12565
12947
  fill: "none",
12566
12948
  xmlns: "http://www.w3.org/2000/svg",
12567
12949
  children: [
12568
- /* @__PURE__ */ jsx41(
12950
+ /* @__PURE__ */ jsx42(
12569
12951
  "line",
12570
12952
  {
12571
12953
  opacity: "0.5",
@@ -12579,7 +12961,7 @@ var VerticalDivider = ({
12579
12961
  strokeLinecap: "round"
12580
12962
  }
12581
12963
  ),
12582
- /* @__PURE__ */ jsx41("defs", { children: /* @__PURE__ */ jsxs22(
12964
+ /* @__PURE__ */ jsx42("defs", { children: /* @__PURE__ */ jsxs23(
12583
12965
  "linearGradient",
12584
12966
  {
12585
12967
  id: "paint_linear",
@@ -12589,9 +12971,9 @@ var VerticalDivider = ({
12589
12971
  y2: height,
12590
12972
  gradientUnits: "userSpaceOnUse",
12591
12973
  children: [
12592
- /* @__PURE__ */ jsx41("stop", { stopOpacity: "0", stopColor: "currentColor" }),
12593
- /* @__PURE__ */ jsx41("stop", { offset: "0.5", stopColor: "currentColor" }),
12594
- /* @__PURE__ */ jsx41("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" })
12974
+ /* @__PURE__ */ jsx42("stop", { stopOpacity: "0", stopColor: "currentColor" }),
12975
+ /* @__PURE__ */ jsx42("stop", { offset: "0.5", stopColor: "currentColor" }),
12976
+ /* @__PURE__ */ jsx42("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" })
12595
12977
  ]
12596
12978
  }
12597
12979
  ) })
@@ -12602,32 +12984,32 @@ var VerticalDivider = ({
12602
12984
 
12603
12985
  // src/components/loading-states/ErrorComponent.tsx
12604
12986
  import { AlertOctagon } from "lucide-react";
12605
- import clsx27 from "clsx";
12606
- import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
12987
+ import clsx28 from "clsx";
12988
+ import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
12607
12989
  var ErrorComponent = ({
12608
12990
  errorText,
12609
12991
  classname
12610
12992
  }) => {
12611
12993
  const translation = useHightideTranslation();
12612
- return /* @__PURE__ */ jsxs23("div", { className: clsx27("flex-col-4 items-center justify-center w-full h-24", classname), children: [
12613
- /* @__PURE__ */ jsx42(AlertOctagon, { size: 64, className: "text-warning" }),
12994
+ return /* @__PURE__ */ jsxs24("div", { className: clsx28("flex-col-4 items-center justify-center w-full h-24", classname), children: [
12995
+ /* @__PURE__ */ jsx43(AlertOctagon, { size: 64, className: "text-warning" }),
12614
12996
  errorText ?? `${translation("errorOccurred")} :(`
12615
12997
  ] });
12616
12998
  };
12617
12999
 
12618
13000
  // src/components/loading-states/LoadingAndErrorComponent.tsx
12619
- import { useState as useState20 } from "react";
13001
+ import { useState as useState21 } from "react";
12620
13002
 
12621
13003
  // src/components/loading-states/LoadingContainer.tsx
12622
- import { clsx as clsx28 } from "clsx";
12623
- import { jsx as jsx43 } from "react/jsx-runtime";
13004
+ import { clsx as clsx29 } from "clsx";
13005
+ import { jsx as jsx44 } from "react/jsx-runtime";
12624
13006
  var LoadingContainer = ({ className }) => {
12625
- return /* @__PURE__ */ jsx43("div", { className: clsx28("relative overflow-hidden shimmer bg-disabled-background rounded-md", className) });
13007
+ return /* @__PURE__ */ jsx44("div", { className: clsx29("relative overflow-hidden shimmer bg-disabled-background rounded-md", className) });
12626
13008
  };
12627
13009
 
12628
13010
  // src/components/loading-states/LoadingAndErrorComponent.tsx
12629
- import { clsx as clsx29 } from "clsx";
12630
- import { jsx as jsx44 } from "react/jsx-runtime";
13011
+ import { clsx as clsx30 } from "clsx";
13012
+ import { jsx as jsx45 } from "react/jsx-runtime";
12631
13013
  var LoadingAndErrorComponent = ({
12632
13014
  children,
12633
13015
  isLoading = false,
@@ -12637,8 +13019,8 @@ var LoadingAndErrorComponent = ({
12637
13019
  minimumLoadingDuration = 200,
12638
13020
  className
12639
13021
  }) => {
12640
- const [isInMinimumLoading, setIsInMinimumLoading] = useState20(false);
12641
- const [hasUsedMinimumLoading, setHasUsedMinimumLoading] = useState20(false);
13022
+ const [isInMinimumLoading, setIsInMinimumLoading] = useState21(false);
13023
+ const [hasUsedMinimumLoading, setHasUsedMinimumLoading] = useState21(false);
12642
13024
  if (minimumLoadingDuration && !isInMinimumLoading && !hasUsedMinimumLoading) {
12643
13025
  setIsInMinimumLoading(true);
12644
13026
  setTimeout(() => {
@@ -12647,41 +13029,41 @@ var LoadingAndErrorComponent = ({
12647
13029
  }, minimumLoadingDuration);
12648
13030
  }
12649
13031
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
12650
- return loadingComponent ?? /* @__PURE__ */ jsx44(LoadingContainer, { className: clsx29(className) });
13032
+ return loadingComponent ?? /* @__PURE__ */ jsx45(LoadingContainer, { className: clsx30(className) });
12651
13033
  }
12652
13034
  if (hasError) {
12653
- return errorComponent ?? /* @__PURE__ */ jsx44(LoadingContainer, { className: clsx29("bg-negative", className) });
13035
+ return errorComponent ?? /* @__PURE__ */ jsx45(LoadingContainer, { className: clsx30("bg-negative", className) });
12654
13036
  }
12655
13037
  return children;
12656
13038
  };
12657
13039
 
12658
13040
  // src/components/loading-states/LoadingAnimation.tsx
12659
- import clsx30 from "clsx";
12660
- import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
13041
+ import clsx31 from "clsx";
13042
+ import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
12661
13043
  var LoadingAnimation = ({
12662
13044
  loadingText,
12663
13045
  classname
12664
13046
  }) => {
12665
13047
  const translation = useHightideTranslation();
12666
- return /* @__PURE__ */ jsxs24("div", { className: clsx30("flex-col-2 items-center justify-center w-full h-24", classname), children: [
12667
- /* @__PURE__ */ jsx45(HelpwaveLogo, { animate: "loading" }),
13048
+ return /* @__PURE__ */ jsxs25("div", { className: clsx31("flex-col-2 items-center justify-center w-full h-24", classname), children: [
13049
+ /* @__PURE__ */ jsx46(HelpwaveLogo, { animate: "loading" }),
12668
13050
  loadingText ?? `${translation("loading")}...`
12669
13051
  ] });
12670
13052
  };
12671
13053
 
12672
13054
  // src/components/loading-states/LoadingButton.tsx
12673
- import clsx31 from "clsx";
12674
- import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
13055
+ import clsx32 from "clsx";
13056
+ import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
12675
13057
  var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
12676
13058
  const paddingClass = ButtonUtil.paddingMapping[size];
12677
- return /* @__PURE__ */ jsxs25("div", { className: "inline-block relative", children: [
12678
- isLoading && /* @__PURE__ */ jsx46("div", { className: clsx31("flex-row-2 absolute inset-0 items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ jsx46(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
12679
- /* @__PURE__ */ jsx46(SolidButton, { ...rest, disabled: rest.disabled, onClick })
13059
+ return /* @__PURE__ */ jsxs26("div", { className: "inline-block relative", children: [
13060
+ isLoading && /* @__PURE__ */ jsx47("div", { className: clsx32("flex-row-2 absolute inset-0 items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ jsx47(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
13061
+ /* @__PURE__ */ jsx47(SolidButton, { ...rest, disabled: rest.disabled, onClick })
12680
13062
  ] });
12681
13063
  };
12682
13064
 
12683
13065
  // src/components/loading-states/ProgressIndicator.tsx
12684
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
13066
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12685
13067
  var sizeMapping = { small: 16, medium: 24, big: 48 };
12686
13068
  var ProgressIndicator = ({
12687
13069
  progress,
@@ -12698,7 +13080,7 @@ var ProgressIndicator = ({
12698
13080
  if (direction === "clockwise") {
12699
13081
  rotation += 360 * progress;
12700
13082
  }
12701
- return /* @__PURE__ */ jsxs26(
13083
+ return /* @__PURE__ */ jsxs27(
12702
13084
  "svg",
12703
13085
  {
12704
13086
  style: {
@@ -12707,7 +13089,7 @@ var ProgressIndicator = ({
12707
13089
  transform: `rotate(${rotation}deg)`
12708
13090
  },
12709
13091
  children: [
12710
- /* @__PURE__ */ jsx47(
13092
+ /* @__PURE__ */ jsx48(
12711
13093
  "circle",
12712
13094
  {
12713
13095
  cx: center,
@@ -12718,7 +13100,7 @@ var ProgressIndicator = ({
12718
13100
  className: "stroke-progress-indicator-fill"
12719
13101
  }
12720
13102
  ),
12721
- /* @__PURE__ */ jsx47(
13103
+ /* @__PURE__ */ jsx48(
12722
13104
  "circle",
12723
13105
  {
12724
13106
  cx: center,
@@ -12737,35 +13119,35 @@ var ProgressIndicator = ({
12737
13119
  };
12738
13120
 
12739
13121
  // src/components/navigation/BreadCrumb.tsx
12740
- var import_link = __toESM(require_link2(), 1);
12741
- import clsx32 from "clsx";
13122
+ var import_link = __toESM(require_link2());
13123
+ import clsx33 from "clsx";
12742
13124
  import { Fragment as Fragment7 } from "react";
12743
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
13125
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12744
13126
  var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
12745
13127
  const color = "text-description";
12746
- return /* @__PURE__ */ jsx48("div", { className: clsx32("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
13128
+ return /* @__PURE__ */ jsx49("div", { className: clsx33("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
12747
13129
  const isLast = index === crumbs.length - 1;
12748
- return /* @__PURE__ */ jsxs27(Fragment7, { children: [
12749
- /* @__PURE__ */ jsx48(
13130
+ return /* @__PURE__ */ jsxs28(Fragment7, { children: [
13131
+ /* @__PURE__ */ jsx49(
12750
13132
  import_link.default,
12751
13133
  {
12752
13134
  href: crumb.link,
12753
- className: clsx32("btn-sm hover:bg-description/20", linkClassName, { [color]: !isLast }),
13135
+ className: clsx33("btn-sm hover:bg-description/20", linkClassName, { [color]: !isLast }),
12754
13136
  children: crumb.display
12755
13137
  }
12756
13138
  ),
12757
- !isLast && /* @__PURE__ */ jsx48("span", { className: clsx32(`px-1`, color), children: "/" })
13139
+ !isLast && /* @__PURE__ */ jsx49("span", { className: clsx33(`px-1`, color), children: "/" })
12758
13140
  ] }, index);
12759
13141
  }) });
12760
13142
  };
12761
13143
 
12762
13144
  // src/components/navigation/Navigation.tsx
12763
- var import_link2 = __toESM(require_link2(), 1);
13145
+ var import_link2 = __toESM(require_link2());
12764
13146
  import { Menu as MenuIcon, XIcon as XIcon2 } from "lucide-react";
12765
- import { useEffect as useEffect22 } from "react";
12766
- import { useCallback as useCallback14, useId as useId7, useRef as useRef14, useState as useState21 } from "react";
12767
- import clsx33 from "clsx";
12768
- import { Fragment as Fragment8, jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
13147
+ import { useEffect as useEffect23 } from "react";
13148
+ import { useCallback as useCallback14, useId as useId8, useRef as useRef15, useState as useState22 } from "react";
13149
+ import clsx34 from "clsx";
13150
+ import { Fragment as Fragment8, jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
12769
13151
  function isSubItem(item) {
12770
13152
  return "items" in item && Array.isArray(item.items);
12771
13153
  }
@@ -12775,10 +13157,10 @@ var NavigationItemWithSubItem = ({
12775
13157
  horizontalAlignment = "center",
12776
13158
  ...options
12777
13159
  }) => {
12778
- const [isOpen, setOpen] = useState21(false);
12779
- const containerRef = useRef14();
12780
- const triggerRef = useRef14(null);
12781
- const id = useId7();
13160
+ const [isOpen, setOpen] = useState22(false);
13161
+ const containerRef = useRef15();
13162
+ const triggerRef = useRef15(null);
13163
+ const id = useId8();
12782
13164
  const style = useFloatingElement({
12783
13165
  active: isOpen,
12784
13166
  containerRef,
@@ -12792,8 +13174,8 @@ var NavigationItemWithSubItem = ({
12792
13174
  setOpen(false);
12793
13175
  }
12794
13176
  }, []);
12795
- return /* @__PURE__ */ jsxs28(Fragment8, { children: [
12796
- /* @__PURE__ */ jsxs28(
13177
+ return /* @__PURE__ */ jsxs29(Fragment8, { children: [
13178
+ /* @__PURE__ */ jsxs29(
12797
13179
  "button",
12798
13180
  {
12799
13181
  id: "navigation-" + id,
@@ -12808,11 +13190,11 @@ var NavigationItemWithSubItem = ({
12808
13190
  "aria-controls": "navigation-items-" + id,
12809
13191
  children: [
12810
13192
  label,
12811
- /* @__PURE__ */ jsx49(ExpansionIcon, { isExpanded: isOpen })
13193
+ /* @__PURE__ */ jsx50(ExpansionIcon, { isExpanded: isOpen })
12812
13194
  ]
12813
13195
  }
12814
13196
  ),
12815
- /* @__PURE__ */ jsx49(
13197
+ /* @__PURE__ */ jsx50(
12816
13198
  "ul",
12817
13199
  {
12818
13200
  id: "navigation-items-" + id,
@@ -12826,12 +13208,12 @@ var NavigationItemWithSubItem = ({
12826
13208
  },
12827
13209
  onBlur,
12828
13210
  hidden: !isOpen,
12829
- className: clsx33(
13211
+ className: clsx34(
12830
13212
  "fixed flex-col-4 p-4 bg-surface text-on-surface shadow-side shadow-hw-bottom rounded-md z-2001",
12831
13213
  { "opacity-0": !style }
12832
13214
  ),
12833
13215
  style,
12834
- children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx49("li", { children: /* @__PURE__ */ jsx49(
13216
+ children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx50("li", { children: /* @__PURE__ */ jsx50(
12835
13217
  import_link2.default,
12836
13218
  {
12837
13219
  href: link,
@@ -12845,24 +13227,24 @@ var NavigationItemWithSubItem = ({
12845
13227
  ] });
12846
13228
  };
12847
13229
  var NavigationItemList = ({ items, ...restProps }) => {
12848
- return /* @__PURE__ */ jsx49("ul", { ...restProps, className: clsx33("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ jsx49("li", { children: isSubItem(item) ? /* @__PURE__ */ jsx49(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ jsx49(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
13230
+ return /* @__PURE__ */ jsx50("ul", { ...restProps, className: clsx34("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ jsx50("li", { children: isSubItem(item) ? /* @__PURE__ */ jsx50(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ jsx50(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
12849
13231
  };
12850
13232
  var Navigation = ({ ...props }) => {
12851
- const [isMobileOpen, setIsMobileOpen] = useState21(false);
12852
- const id = useId7();
12853
- const menuRef = useRef14(null);
12854
- useEffect22(() => {
13233
+ const [isMobileOpen, setIsMobileOpen] = useState22(false);
13234
+ const id = useId8();
13235
+ const menuRef = useRef15(null);
13236
+ useEffect23(() => {
12855
13237
  menuRef.current?.focus();
12856
13238
  }, [isMobileOpen]);
12857
- return /* @__PURE__ */ jsxs28("nav", { children: [
12858
- /* @__PURE__ */ jsx49(
13239
+ return /* @__PURE__ */ jsxs29("nav", { children: [
13240
+ /* @__PURE__ */ jsx50(
12859
13241
  NavigationItemList,
12860
13242
  {
12861
13243
  ...props,
12862
- className: clsx33("hidden", { "desktop:flex": !isMobileOpen }, props.className)
13244
+ className: clsx34("hidden", { "desktop:flex": !isMobileOpen }, props.className)
12863
13245
  }
12864
13246
  ),
12865
- /* @__PURE__ */ jsx49(
13247
+ /* @__PURE__ */ jsx50(
12866
13248
  IconButton,
12867
13249
  {
12868
13250
  color: "transparent",
@@ -12871,10 +13253,10 @@ var Navigation = ({ ...props }) => {
12871
13253
  "aria-haspopup": "true",
12872
13254
  "aria-expanded": isMobileOpen,
12873
13255
  "aria-controls": "navigation-menu-" + id,
12874
- children: /* @__PURE__ */ jsx49(MenuIcon, { className: "w-6 h-6" })
13256
+ children: /* @__PURE__ */ jsx50(MenuIcon, { className: "w-6 h-6" })
12875
13257
  }
12876
13258
  ),
12877
- /* @__PURE__ */ jsxs28(
13259
+ /* @__PURE__ */ jsxs29(
12878
13260
  "div",
12879
13261
  {
12880
13262
  id: "navigation-menu-" + id,
@@ -12887,7 +13269,7 @@ var Navigation = ({ ...props }) => {
12887
13269
  event.stopPropagation();
12888
13270
  }
12889
13271
  },
12890
- className: clsx33(
13272
+ className: clsx34(
12891
13273
  "flex-col-8 items-center justify-center fixed inset-0 p-8 w-screen h-screen z-2000 bg-surface text-on-surface",
12892
13274
  {
12893
13275
  "desktop:hidden": isMobileOpen
@@ -12895,8 +13277,8 @@ var Navigation = ({ ...props }) => {
12895
13277
  props.className
12896
13278
  ),
12897
13279
  children: [
12898
- /* @__PURE__ */ jsx49(IconButton, { color: "transparent", onClick: () => setIsMobileOpen(false), children: /* @__PURE__ */ jsx49(XIcon2, {}) }),
12899
- /* @__PURE__ */ jsx49(NavigationItemList, { ...props, className: clsx33("flex-col-8", props.className) })
13280
+ /* @__PURE__ */ jsx50(IconButton, { color: "transparent", onClick: () => setIsMobileOpen(false), children: /* @__PURE__ */ jsx50(XIcon2, {}) }),
13281
+ /* @__PURE__ */ jsx50(NavigationItemList, { ...props, className: clsx34("flex-col-8", props.className) })
12900
13282
  ]
12901
13283
  }
12902
13284
  )
@@ -12905,9 +13287,9 @@ var Navigation = ({ ...props }) => {
12905
13287
 
12906
13288
  // src/components/navigation/Pagination.tsx
12907
13289
  import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
12908
- import clsx34 from "clsx";
12909
- import { useEffect as useEffect23, useState as useState22 } from "react";
12910
- import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
13290
+ import clsx35 from "clsx";
13291
+ import { useEffect as useEffect24, useState as useState23 } from "react";
13292
+ import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
12911
13293
  var Pagination = ({
12912
13294
  pageIndex,
12913
13295
  pageCount,
@@ -12916,11 +13298,11 @@ var Pagination = ({
12916
13298
  style
12917
13299
  }) => {
12918
13300
  const translation = useHightideTranslation();
12919
- const [value, setValue] = useState22((pageIndex + 1).toString());
13301
+ const [value, setValue] = useState23((pageIndex + 1).toString());
12920
13302
  const noPages = pageCount === 0;
12921
13303
  const onFirstPage = pageIndex === 0 && !noPages;
12922
13304
  const onLastPage = pageIndex === pageCount - 1;
12923
- useEffect23(() => {
13305
+ useEffect24(() => {
12924
13306
  if (noPages) {
12925
13307
  setValue("0");
12926
13308
  } else {
@@ -12930,15 +13312,15 @@ var Pagination = ({
12930
13312
  const changePage = (page) => {
12931
13313
  onPageChanged(page);
12932
13314
  };
12933
- return /* @__PURE__ */ jsxs29("div", { className: clsx34("flex-row-1", className), style, children: [
12934
- /* @__PURE__ */ jsx50(IconButton, { color: "transparent", onClick: () => changePage(0), disabled: onFirstPage || noPages, children: /* @__PURE__ */ jsx50(ChevronFirst, {}) }),
12935
- /* @__PURE__ */ jsx50(IconButton, { color: "transparent", onClick: () => changePage(pageIndex - 1), disabled: onFirstPage || noPages, children: /* @__PURE__ */ jsx50(ChevronLeft2, {}) }),
12936
- /* @__PURE__ */ jsxs29("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
12937
- /* @__PURE__ */ jsx50(
13315
+ return /* @__PURE__ */ jsxs30("div", { className: clsx35("flex-row-1", className), style, children: [
13316
+ /* @__PURE__ */ jsx51(IconButton, { color: "transparent", onClick: () => changePage(0), disabled: onFirstPage || noPages, children: /* @__PURE__ */ jsx51(ChevronFirst, {}) }),
13317
+ /* @__PURE__ */ jsx51(IconButton, { color: "transparent", onClick: () => changePage(pageIndex - 1), disabled: onFirstPage || noPages, children: /* @__PURE__ */ jsx51(ChevronLeft2, {}) }),
13318
+ /* @__PURE__ */ jsxs30("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
13319
+ /* @__PURE__ */ jsx51(
12938
13320
  Input,
12939
13321
  {
12940
13322
  value,
12941
- className: clsx34(
13323
+ className: clsx35(
12942
13324
  "w-full text-center font-bold input-indicator-hidden h-10"
12943
13325
  ),
12944
13326
  type: "number",
@@ -12958,8 +13340,8 @@ var Pagination = ({
12958
13340
  editCompleteOptions: { delay: 800 }
12959
13341
  }
12960
13342
  ),
12961
- /* @__PURE__ */ jsx50("span", { className: "select-none w-10", children: translation("of") }),
12962
- /* @__PURE__ */ jsx50(
13343
+ /* @__PURE__ */ jsx51("span", { className: "select-none w-10", children: translation("of") }),
13344
+ /* @__PURE__ */ jsx51(
12963
13345
  "span",
12964
13346
  {
12965
13347
  className: "flex-row-2 flex-1 items-center justify-center select-none h-10 bg-input-background text-input-text rounded-md font-bold",
@@ -12967,15 +13349,15 @@ var Pagination = ({
12967
13349
  }
12968
13350
  )
12969
13351
  ] }),
12970
- /* @__PURE__ */ jsx50(IconButton, { color: "transparent", onClick: () => changePage(pageIndex + 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ jsx50(ChevronRight2, {}) }),
12971
- /* @__PURE__ */ jsx50(IconButton, { color: "transparent", onClick: () => changePage(pageCount - 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ jsx50(ChevronLast, {}) })
13352
+ /* @__PURE__ */ jsx51(IconButton, { color: "transparent", onClick: () => changePage(pageIndex + 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ jsx51(ChevronRight2, {}) }),
13353
+ /* @__PURE__ */ jsx51(IconButton, { color: "transparent", onClick: () => changePage(pageCount - 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ jsx51(ChevronLast, {}) })
12972
13354
  ] });
12973
13355
  };
12974
13356
 
12975
13357
  // src/components/navigation/StepperBar.tsx
12976
13358
  import { Check, ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
12977
- import clsx35 from "clsx";
12978
- import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
13359
+ import clsx36 from "clsx";
13360
+ import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
12979
13361
  var defaultState = {
12980
13362
  currentStep: 0,
12981
13363
  seenSteps: /* @__PURE__ */ new Set([0])
@@ -12997,12 +13379,12 @@ var StepperBar = ({
12997
13379
  seenSteps.add(newStep);
12998
13380
  onChange({ currentStep: newStep, seenSteps });
12999
13381
  };
13000
- return /* @__PURE__ */ jsxs30(
13382
+ return /* @__PURE__ */ jsxs31(
13001
13383
  "div",
13002
13384
  {
13003
- className: clsx35("flex-row-2 justify-between", className),
13385
+ className: clsx36("flex-row-2 justify-between", className),
13004
13386
  children: [
13005
- /* @__PURE__ */ jsx51("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ jsxs30(
13387
+ /* @__PURE__ */ jsx52("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ jsxs31(
13006
13388
  SolidButton,
13007
13389
  {
13008
13390
  disabled: currentStep === 0 || disabledSteps.has(currentStep),
@@ -13011,18 +13393,18 @@ var StepperBar = ({
13011
13393
  },
13012
13394
  className: "flex-row-1 items-center justify-center",
13013
13395
  children: [
13014
- /* @__PURE__ */ jsx51(ChevronLeft3, { size: 14 }),
13396
+ /* @__PURE__ */ jsx52(ChevronLeft3, { size: 14 }),
13015
13397
  translation("back")
13016
13398
  ]
13017
13399
  }
13018
13400
  ) }),
13019
- /* @__PURE__ */ jsx51("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
13401
+ /* @__PURE__ */ jsx52("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
13020
13402
  const seen = seenSteps.has(index);
13021
- return /* @__PURE__ */ jsx51(
13403
+ return /* @__PURE__ */ jsx52(
13022
13404
  "div",
13023
13405
  {
13024
13406
  onClick: () => seen && update(index),
13025
- className: clsx35(
13407
+ className: clsx36(
13026
13408
  "rounded-full w-4 h-4",
13027
13409
  {
13028
13410
  "bg-stepperbar-dot-active hover:brightness-75": index === currentStep && seen && !disabledSteps.has(currentStep),
@@ -13038,7 +13420,7 @@ var StepperBar = ({
13038
13420
  index
13039
13421
  );
13040
13422
  }) }),
13041
- currentStep !== numberOfSteps && /* @__PURE__ */ jsx51("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs30(
13423
+ currentStep !== numberOfSteps && /* @__PURE__ */ jsx52("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs31(
13042
13424
  SolidButton,
13043
13425
  {
13044
13426
  onClick: () => update(currentStep + 1),
@@ -13046,18 +13428,18 @@ var StepperBar = ({
13046
13428
  disabled: disabledSteps.has(currentStep),
13047
13429
  children: [
13048
13430
  translation("next"),
13049
- /* @__PURE__ */ jsx51(ChevronRight3, { size: 14 })
13431
+ /* @__PURE__ */ jsx52(ChevronRight3, { size: 14 })
13050
13432
  ]
13051
13433
  }
13052
13434
  ) }),
13053
- currentStep === numberOfSteps && /* @__PURE__ */ jsx51("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs30(
13435
+ currentStep === numberOfSteps && /* @__PURE__ */ jsx52("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ jsxs31(
13054
13436
  SolidButton,
13055
13437
  {
13056
13438
  disabled: disabledSteps.has(currentStep),
13057
13439
  onClick: onFinish,
13058
13440
  className: "flex-row-1 items-center justify-center",
13059
13441
  children: [
13060
- /* @__PURE__ */ jsx51(Check, { size: 14 }),
13442
+ /* @__PURE__ */ jsx52(Check, { size: 14 }),
13061
13443
  finishText ?? translation("confirm")
13062
13444
  ]
13063
13445
  }
@@ -13068,7 +13450,7 @@ var StepperBar = ({
13068
13450
  };
13069
13451
  var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
13070
13452
  const [usedState, setUsedState] = useOverwritableState(state, onChange);
13071
- return /* @__PURE__ */ jsx51(
13453
+ return /* @__PURE__ */ jsx52(
13072
13454
  StepperBar,
13073
13455
  {
13074
13456
  ...props,
@@ -13083,7 +13465,7 @@ import { Check as Check3 } from "lucide-react";
13083
13465
 
13084
13466
  // src/components/user-action/Checkbox.tsx
13085
13467
  import { Check as Check2, Minus } from "lucide-react";
13086
- import clsx36 from "clsx";
13468
+ import clsx37 from "clsx";
13087
13469
 
13088
13470
  // node_modules/@radix-ui/react-checkbox/dist/index.mjs
13089
13471
  import * as React19 from "react";
@@ -13208,7 +13590,7 @@ function useSize(element) {
13208
13590
  }
13209
13591
 
13210
13592
  // node_modules/@radix-ui/react-checkbox/dist/index.mjs
13211
- import { Fragment as Fragment9, jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
13593
+ import { Fragment as Fragment9, jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
13212
13594
  var CHECKBOX_NAME = "Checkbox";
13213
13595
  var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
13214
13596
  var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
@@ -13256,7 +13638,7 @@ function CheckboxProvider(props) {
13256
13638
  bubbleInput,
13257
13639
  setBubbleInput
13258
13640
  };
13259
- return /* @__PURE__ */ jsx52(
13641
+ return /* @__PURE__ */ jsx53(
13260
13642
  CheckboxProviderImpl,
13261
13643
  {
13262
13644
  scope: __scopeCheckbox,
@@ -13290,7 +13672,7 @@ var CheckboxTrigger = React19.forwardRef(
13290
13672
  return () => form.removeEventListener("reset", reset);
13291
13673
  }
13292
13674
  }, [control, setChecked]);
13293
- return /* @__PURE__ */ jsx52(
13675
+ return /* @__PURE__ */ jsx53(
13294
13676
  Primitive.button,
13295
13677
  {
13296
13678
  type: "button",
@@ -13332,7 +13714,7 @@ var Checkbox = React19.forwardRef(
13332
13714
  form,
13333
13715
  ...checkboxProps
13334
13716
  } = props;
13335
- return /* @__PURE__ */ jsx52(
13717
+ return /* @__PURE__ */ jsx53(
13336
13718
  CheckboxProvider,
13337
13719
  {
13338
13720
  __scopeCheckbox,
@@ -13344,8 +13726,8 @@ var Checkbox = React19.forwardRef(
13344
13726
  name,
13345
13727
  form,
13346
13728
  value,
13347
- internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs31(Fragment9, { children: [
13348
- /* @__PURE__ */ jsx52(
13729
+ internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs32(Fragment9, { children: [
13730
+ /* @__PURE__ */ jsx53(
13349
13731
  CheckboxTrigger,
13350
13732
  {
13351
13733
  ...checkboxProps,
@@ -13353,7 +13735,7 @@ var Checkbox = React19.forwardRef(
13353
13735
  __scopeCheckbox
13354
13736
  }
13355
13737
  ),
13356
- isFormControl && /* @__PURE__ */ jsx52(
13738
+ isFormControl && /* @__PURE__ */ jsx53(
13357
13739
  CheckboxBubbleInput,
13358
13740
  {
13359
13741
  __scopeCheckbox
@@ -13370,11 +13752,11 @@ var CheckboxIndicator = React19.forwardRef(
13370
13752
  (props, forwardedRef) => {
13371
13753
  const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
13372
13754
  const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);
13373
- return /* @__PURE__ */ jsx52(
13755
+ return /* @__PURE__ */ jsx53(
13374
13756
  Presence,
13375
13757
  {
13376
13758
  present: forceMount || isIndeterminate(context.checked) || context.checked === true,
13377
- children: /* @__PURE__ */ jsx52(
13759
+ children: /* @__PURE__ */ jsx53(
13378
13760
  Primitive.span,
13379
13761
  {
13380
13762
  "data-state": getState(context.checked),
@@ -13426,7 +13808,7 @@ var CheckboxBubbleInput = React19.forwardRef(
13426
13808
  }
13427
13809
  }, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);
13428
13810
  const defaultCheckedRef = React19.useRef(isIndeterminate(checked) ? false : checked);
13429
- return /* @__PURE__ */ jsx52(
13811
+ return /* @__PURE__ */ jsx53(
13430
13812
  Primitive.input,
13431
13813
  {
13432
13814
  type: "checkbox",
@@ -13468,7 +13850,7 @@ function getState(checked) {
13468
13850
  }
13469
13851
 
13470
13852
  // src/components/user-action/Checkbox.tsx
13471
- import { jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
13853
+ import { jsx as jsx54, jsxs as jsxs33 } from "react/jsx-runtime";
13472
13854
  var checkboxSizeMapping = {
13473
13855
  sm: "size-5 border-1",
13474
13856
  md: "size-6 border-1",
@@ -13490,14 +13872,14 @@ var Checkbox2 = ({
13490
13872
  }) => {
13491
13873
  const usedSizeClass = checkboxSizeMapping[size];
13492
13874
  const innerIconSize = checkboxIconSizeMapping[size];
13493
- return /* @__PURE__ */ jsx53(
13875
+ return /* @__PURE__ */ jsx54(
13494
13876
  Checkbox,
13495
13877
  {
13496
13878
  ...props,
13497
13879
  disabled,
13498
13880
  checked: indeterminate ? "indeterminate" : checked,
13499
13881
  onCheckedChange: onChange,
13500
- className: clsx36(
13882
+ className: clsx37(
13501
13883
  usedSizeClass,
13502
13884
  `flex-col-0 items-center justify-center rounded`,
13503
13885
  {
@@ -13508,10 +13890,10 @@ var Checkbox2 = ({
13508
13890
  },
13509
13891
  className
13510
13892
  ),
13511
- children: /* @__PURE__ */ jsxs32(CheckboxIndicator, { children: [
13512
- !checked && !indeterminate && /* @__PURE__ */ jsx53("div", { className: clsx36("bg-input-background", innerIconSize) }),
13513
- checked && !indeterminate && /* @__PURE__ */ jsx53(Check2, { className: innerIconSize }),
13514
- indeterminate && /* @__PURE__ */ jsx53(Minus, { className: innerIconSize })
13893
+ children: /* @__PURE__ */ jsxs33(CheckboxIndicator, { children: [
13894
+ !checked && !indeterminate && /* @__PURE__ */ jsx54("div", { className: clsx37("bg-input-background", innerIconSize) }),
13895
+ checked && !indeterminate && /* @__PURE__ */ jsx54(Check2, { className: innerIconSize }),
13896
+ indeterminate && /* @__PURE__ */ jsx54(Minus, { className: innerIconSize })
13515
13897
  ] })
13516
13898
  }
13517
13899
  );
@@ -13522,7 +13904,7 @@ var CheckboxUncontrolled = ({
13522
13904
  ...props
13523
13905
  }) => {
13524
13906
  const [checked, setChecked] = useOverwritableState(initialChecked, onChange);
13525
- return /* @__PURE__ */ jsx53(
13907
+ return /* @__PURE__ */ jsx54(
13526
13908
  Checkbox2,
13527
13909
  {
13528
13910
  ...props,
@@ -13534,8 +13916,8 @@ var CheckboxUncontrolled = ({
13534
13916
 
13535
13917
  // src/components/properties/PropertyBase.tsx
13536
13918
  import { AlertTriangle } from "lucide-react";
13537
- import clsx37 from "clsx";
13538
- import { jsx as jsx54, jsxs as jsxs33 } from "react/jsx-runtime";
13919
+ import clsx38 from "clsx";
13920
+ import { jsx as jsx55, jsxs as jsxs34 } from "react/jsx-runtime";
13539
13921
  var PropertyBase = ({
13540
13922
  name,
13541
13923
  input,
@@ -13548,11 +13930,11 @@ var PropertyBase = ({
13548
13930
  }) => {
13549
13931
  const translation = useHightideTranslation();
13550
13932
  const requiredAndNoValue = softRequired && !hasValue;
13551
- return /* @__PURE__ */ jsxs33("div", { className: clsx37("flex-row-0 group", className), children: [
13552
- /* @__PURE__ */ jsxs33(
13933
+ return /* @__PURE__ */ jsxs34("div", { className: clsx38("flex-row-0 group", className), children: [
13934
+ /* @__PURE__ */ jsxs34(
13553
13935
  "div",
13554
13936
  {
13555
- className: clsx37(
13937
+ className: clsx38(
13556
13938
  "flex-row-2 max-w-48 min-w-48 px-3 py-2 items-center rounded-l-xl border-2 border-r-0",
13557
13939
  {
13558
13940
  "bg-property-title-background text-property-title-text group-hover:border-primary": !requiredAndNoValue,
@@ -13561,15 +13943,15 @@ var PropertyBase = ({
13561
13943
  className
13562
13944
  ),
13563
13945
  children: [
13564
- /* @__PURE__ */ jsx54("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
13565
- /* @__PURE__ */ jsx54("span", { className: "font-semibold", children: name })
13946
+ /* @__PURE__ */ jsx55("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
13947
+ /* @__PURE__ */ jsx55("span", { className: "font-semibold", children: name })
13566
13948
  ]
13567
13949
  }
13568
13950
  ),
13569
- /* @__PURE__ */ jsxs33(
13951
+ /* @__PURE__ */ jsxs34(
13570
13952
  "div",
13571
13953
  {
13572
- className: clsx37(
13954
+ className: clsx38(
13573
13955
  "flex-row-2 grow px-3 py-2 justify-between items-center rounded-r-xl border-2 border-l-0 min-h-15",
13574
13956
  {
13575
13957
  "bg-input-background text-input-text group-hover:border-primary": !requiredAndNoValue,
@@ -13579,13 +13961,13 @@ var PropertyBase = ({
13579
13961
  ),
13580
13962
  children: [
13581
13963
  input({ softRequired, hasValue }),
13582
- requiredAndNoValue && /* @__PURE__ */ jsx54("div", { className: "text-warning", children: /* @__PURE__ */ jsx54(AlertTriangle, { size: 24 }) }),
13583
- onRemove && !readOnly && /* @__PURE__ */ jsx54(
13964
+ requiredAndNoValue && /* @__PURE__ */ jsx55("div", { className: "text-warning", children: /* @__PURE__ */ jsx55(AlertTriangle, { size: 24 }) }),
13965
+ onRemove && !readOnly && /* @__PURE__ */ jsx55(
13584
13966
  TextButton,
13585
13967
  {
13586
13968
  onClick: onRemove,
13587
13969
  color: "negative",
13588
- className: clsx37("items-center"),
13970
+ className: clsx38("items-center"),
13589
13971
  disabled: !hasValue,
13590
13972
  children: translation("remove")
13591
13973
  }
@@ -13597,8 +13979,8 @@ var PropertyBase = ({
13597
13979
  };
13598
13980
 
13599
13981
  // src/components/properties/CheckboxProperty.tsx
13600
- import { useId as useId8 } from "react";
13601
- import { jsx as jsx55, jsxs as jsxs34 } from "react/jsx-runtime";
13982
+ import { useId as useId9 } from "react";
13983
+ import { jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
13602
13984
  var CheckboxProperty = ({
13603
13985
  value,
13604
13986
  onChange,
@@ -13606,16 +13988,16 @@ var CheckboxProperty = ({
13606
13988
  ...baseProps
13607
13989
  }) => {
13608
13990
  const translation = useHightideTranslation();
13609
- const id = useId8();
13610
- return /* @__PURE__ */ jsx55(
13991
+ const id = useId9();
13992
+ return /* @__PURE__ */ jsx56(
13611
13993
  PropertyBase,
13612
13994
  {
13613
13995
  ...baseProps,
13614
13996
  hasValue: true,
13615
13997
  readOnly,
13616
- icon: /* @__PURE__ */ jsx55(Check3, { size: 24 }),
13617
- input: () => /* @__PURE__ */ jsxs34("div", { className: "flex-row-2 items-center", children: [
13618
- /* @__PURE__ */ jsx55(
13998
+ icon: /* @__PURE__ */ jsx56(Check3, { size: 24 }),
13999
+ input: () => /* @__PURE__ */ jsxs35("div", { className: "flex-row-2 items-center", children: [
14000
+ /* @__PURE__ */ jsx56(
13619
14001
  Checkbox2,
13620
14002
  {
13621
14003
  id,
@@ -13625,7 +14007,7 @@ var CheckboxProperty = ({
13625
14007
  "aria-labelledby": id + "label"
13626
14008
  }
13627
14009
  ),
13628
- /* @__PURE__ */ jsx55(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
14010
+ /* @__PURE__ */ jsx56(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
13629
14011
  ] })
13630
14012
  }
13631
14013
  );
@@ -13633,8 +14015,8 @@ var CheckboxProperty = ({
13633
14015
 
13634
14016
  // src/components/properties/DateProperty.tsx
13635
14017
  import { CalendarDays } from "lucide-react";
13636
- import clsx38 from "clsx";
13637
- import { jsx as jsx56 } from "react/jsx-runtime";
14018
+ import clsx39 from "clsx";
14019
+ import { jsx as jsx57 } from "react/jsx-runtime";
13638
14020
  var DateProperty = ({
13639
14021
  value,
13640
14022
  onChange,
@@ -13645,16 +14027,16 @@ var DateProperty = ({
13645
14027
  }) => {
13646
14028
  const hasValue = !!value;
13647
14029
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
13648
- return /* @__PURE__ */ jsx56(
14030
+ return /* @__PURE__ */ jsx57(
13649
14031
  PropertyBase,
13650
14032
  {
13651
14033
  ...baseProps,
13652
14034
  hasValue,
13653
- icon: /* @__PURE__ */ jsx56(CalendarDays, { size: 24 }),
13654
- input: ({ softRequired }) => /* @__PURE__ */ jsx56(
14035
+ icon: /* @__PURE__ */ jsx57(CalendarDays, { size: 24 }),
14036
+ input: ({ softRequired }) => /* @__PURE__ */ jsx57(
13655
14037
  Input,
13656
14038
  {
13657
- className: clsx38("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
14039
+ className: clsx39("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
13658
14040
  value: dateText,
13659
14041
  type: type === "dateTime" ? "datetime-local" : "date",
13660
14042
  readOnly,
@@ -13676,8 +14058,8 @@ var DateProperty = ({
13676
14058
 
13677
14059
  // src/components/properties/MultiSelectProperty.tsx
13678
14060
  import { List } from "lucide-react";
13679
- import clsx39 from "clsx";
13680
- import { jsx as jsx57 } from "react/jsx-runtime";
14061
+ import clsx40 from "clsx";
14062
+ import { jsx as jsx58 } from "react/jsx-runtime";
13681
14063
  var MultiSelectProperty = ({
13682
14064
  children,
13683
14065
  values,
@@ -13685,25 +14067,25 @@ var MultiSelectProperty = ({
13685
14067
  ...props
13686
14068
  }) => {
13687
14069
  const hasValue = values.length > 0;
13688
- return /* @__PURE__ */ jsx57(
14070
+ return /* @__PURE__ */ jsx58(
13689
14071
  PropertyBase,
13690
14072
  {
13691
14073
  ...props,
13692
14074
  hasValue,
13693
- icon: /* @__PURE__ */ jsx57(List, { size: 24 }),
13694
- input: ({ softRequired }) => /* @__PURE__ */ jsx57(
14075
+ icon: /* @__PURE__ */ jsx58(List, { size: 24 }),
14076
+ input: ({ softRequired }) => /* @__PURE__ */ jsx58(
13695
14077
  MultiSelectChipDisplay,
13696
14078
  {
13697
14079
  values,
13698
14080
  onValuesChanged,
13699
14081
  disabled: props.readOnly,
13700
14082
  contentPanelProps: {
13701
- className: clsx39(
14083
+ className: clsx40(
13702
14084
  "!border-none !min-h-10"
13703
14085
  )
13704
14086
  },
13705
14087
  chipDisplayProps: {
13706
- className: clsx39({
14088
+ className: clsx40({
13707
14089
  "!bg-warning !text-surface-warning": softRequired && !hasValue
13708
14090
  })
13709
14091
  },
@@ -13716,8 +14098,8 @@ var MultiSelectProperty = ({
13716
14098
 
13717
14099
  // src/components/properties/NumberProperty.tsx
13718
14100
  import { Binary } from "lucide-react";
13719
- import clsx40 from "clsx";
13720
- import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
14101
+ import clsx41 from "clsx";
14102
+ import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
13721
14103
  var NumberProperty = ({
13722
14104
  value,
13723
14105
  onChange,
@@ -13729,22 +14111,22 @@ var NumberProperty = ({
13729
14111
  }) => {
13730
14112
  const translation = useHightideTranslation();
13731
14113
  const hasValue = value !== void 0;
13732
- return /* @__PURE__ */ jsx58(
14114
+ return /* @__PURE__ */ jsx59(
13733
14115
  PropertyBase,
13734
14116
  {
13735
14117
  ...baseProps,
13736
14118
  onRemove,
13737
14119
  hasValue,
13738
- icon: /* @__PURE__ */ jsx58(Binary, { size: 24 }),
13739
- input: ({ softRequired }) => /* @__PURE__ */ jsxs35(
14120
+ icon: /* @__PURE__ */ jsx59(Binary, { size: 24 }),
14121
+ input: ({ softRequired }) => /* @__PURE__ */ jsxs36(
13740
14122
  "div",
13741
14123
  {
13742
- className: clsx40("flex-row-2 grow", { "text-warning": softRequired && !hasValue }),
14124
+ className: clsx41("flex-row-2 grow", { "text-warning": softRequired && !hasValue }),
13743
14125
  children: [
13744
- /* @__PURE__ */ jsx58(
14126
+ /* @__PURE__ */ jsx59(
13745
14127
  Input,
13746
14128
  {
13747
- className: clsx40("!ring-0 !border-0 !outline-0 !p-0 !m-0 !w-fit !shadow-none !rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
14129
+ className: clsx41("!ring-0 !border-0 !outline-0 !p-0 !m-0 !w-fit !shadow-none !rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
13748
14130
  value: value?.toString() ?? "",
13749
14131
  type: "number",
13750
14132
  readOnly,
@@ -13767,7 +14149,7 @@ var NumberProperty = ({
13767
14149
  }
13768
14150
  }
13769
14151
  ),
13770
- suffix && /* @__PURE__ */ jsx58("span", { className: clsx40("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
14152
+ suffix && /* @__PURE__ */ jsx59("span", { className: clsx41("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
13771
14153
  ]
13772
14154
  }
13773
14155
  )
@@ -13777,8 +14159,8 @@ var NumberProperty = ({
13777
14159
 
13778
14160
  // src/components/properties/SelectProperty.tsx
13779
14161
  import { List as List2 } from "lucide-react";
13780
- import clsx41 from "clsx";
13781
- import { jsx as jsx59 } from "react/jsx-runtime";
14162
+ import clsx42 from "clsx";
14163
+ import { jsx as jsx60 } from "react/jsx-runtime";
13782
14164
  var SingleSelectProperty = ({
13783
14165
  children,
13784
14166
  value,
@@ -13787,20 +14169,20 @@ var SingleSelectProperty = ({
13787
14169
  ...props
13788
14170
  }) => {
13789
14171
  const hasValue = value !== void 0;
13790
- return /* @__PURE__ */ jsx59(
14172
+ return /* @__PURE__ */ jsx60(
13791
14173
  PropertyBase,
13792
14174
  {
13793
14175
  ...props,
13794
14176
  hasValue,
13795
- icon: /* @__PURE__ */ jsx59(List2, { size: 24 }),
13796
- input: ({ softRequired }) => /* @__PURE__ */ jsx59(
14177
+ icon: /* @__PURE__ */ jsx60(List2, { size: 24 }),
14178
+ input: ({ softRequired }) => /* @__PURE__ */ jsx60(
13797
14179
  Select,
13798
14180
  {
13799
14181
  value,
13800
14182
  onValueChanged,
13801
14183
  disabled: props.readOnly,
13802
14184
  buttonProps: {
13803
- className: clsx41(
14185
+ className: clsx42(
13804
14186
  "border-none w-full",
13805
14187
  {
13806
14188
  "!bg-warning !text-surface-warning": softRequired && !hasValue
@@ -13817,12 +14199,12 @@ var SingleSelectProperty = ({
13817
14199
 
13818
14200
  // src/components/properties/TextProperty.tsx
13819
14201
  import { Text } from "lucide-react";
13820
- import clsx43 from "clsx";
14202
+ import clsx44 from "clsx";
13821
14203
 
13822
14204
  // src/components/user-action/Textarea.tsx
13823
- import { forwardRef as forwardRef13, useId as useId9 } from "react";
13824
- import clsx42 from "clsx";
13825
- import { jsx as jsx60, jsxs as jsxs36 } from "react/jsx-runtime";
14205
+ import { forwardRef as forwardRef13, useId as useId10 } from "react";
14206
+ import clsx43 from "clsx";
14207
+ import { jsx as jsx61, jsxs as jsxs37 } from "react/jsx-runtime";
13826
14208
  var Textarea = forwardRef13(function Textarea2({
13827
14209
  id,
13828
14210
  onChange,
@@ -13841,12 +14223,12 @@ var Textarea = forwardRef13(function Textarea2({
13841
14223
  onEditCompleted?.(text);
13842
14224
  clearTimer();
13843
14225
  };
13844
- return /* @__PURE__ */ jsx60(
14226
+ return /* @__PURE__ */ jsx61(
13845
14227
  "textarea",
13846
14228
  {
13847
14229
  ref,
13848
14230
  id,
13849
- className: clsx42(
14231
+ className: clsx43(
13850
14232
  "resize-none w-full h-32 overflow-y-scroll",
13851
14233
  "py-2 px-3 rounded-md border-2 border-transparent focus-style-none",
13852
14234
  {
@@ -13879,7 +14261,7 @@ var TextareaUncontrolled = ({
13879
14261
  ...props
13880
14262
  }) => {
13881
14263
  const [text, setText] = useOverwritableState(value, onChangeText);
13882
- return /* @__PURE__ */ jsx60(
14264
+ return /* @__PURE__ */ jsx61(
13883
14265
  Textarea,
13884
14266
  {
13885
14267
  ...props,
@@ -13897,12 +14279,12 @@ var TextareaWithHeadline = ({
13897
14279
  containerClassName,
13898
14280
  ...props
13899
14281
  }) => {
13900
- const genId = useId9();
14282
+ const genId = useId10();
13901
14283
  const usedId = id ?? genId;
13902
- return /* @__PURE__ */ jsxs36(
14284
+ return /* @__PURE__ */ jsxs37(
13903
14285
  "div",
13904
14286
  {
13905
- className: clsx42(
14287
+ className: clsx43(
13906
14288
  "group flex-col-3 border-2 rounded-lg",
13907
14289
  {
13908
14290
  "bg-input-background text-input-text hover:border-primary focus-within:border-primary": !disabled,
@@ -13911,13 +14293,13 @@ var TextareaWithHeadline = ({
13911
14293
  containerClassName
13912
14294
  ),
13913
14295
  children: [
13914
- headline && /* @__PURE__ */ jsx60(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
13915
- /* @__PURE__ */ jsx60(
14296
+ headline && /* @__PURE__ */ jsx61(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
14297
+ /* @__PURE__ */ jsx61(
13916
14298
  Textarea,
13917
14299
  {
13918
14300
  ...props,
13919
14301
  id: usedId,
13920
- className: clsx42(
14302
+ className: clsx43(
13921
14303
  "border-transparent focus:ring-0 focus-visible:ring-0 resize-none h-32",
13922
14304
  className
13923
14305
  ),
@@ -13930,7 +14312,7 @@ var TextareaWithHeadline = ({
13930
14312
  };
13931
14313
 
13932
14314
  // src/components/properties/TextProperty.tsx
13933
- import { jsx as jsx61 } from "react/jsx-runtime";
14315
+ import { jsx as jsx62 } from "react/jsx-runtime";
13934
14316
  var TextProperty = ({
13935
14317
  value,
13936
14318
  readOnly,
@@ -13941,17 +14323,17 @@ var TextProperty = ({
13941
14323
  }) => {
13942
14324
  const translation = useHightideTranslation();
13943
14325
  const hasValue = value !== void 0;
13944
- return /* @__PURE__ */ jsx61(
14326
+ return /* @__PURE__ */ jsx62(
13945
14327
  PropertyBase,
13946
14328
  {
13947
14329
  ...baseProps,
13948
14330
  onRemove,
13949
14331
  hasValue,
13950
- icon: /* @__PURE__ */ jsx61(Text, { size: 24 }),
13951
- input: ({ softRequired }) => /* @__PURE__ */ jsx61(
14332
+ icon: /* @__PURE__ */ jsx62(Text, { size: 24 }),
14333
+ input: ({ softRequired }) => /* @__PURE__ */ jsx62(
13952
14334
  Textarea,
13953
14335
  {
13954
- className: clsx43({
14336
+ className: clsx44({
13955
14337
  "bg-surface-warning placeholder-warning": softRequired && !hasValue
13956
14338
  }),
13957
14339
  rows: 5,
@@ -13980,12 +14362,12 @@ var TextProperty = ({
13980
14362
  };
13981
14363
 
13982
14364
  // src/components/table/FillerRowElement.tsx
13983
- import { clsx as clsx44 } from "clsx";
13984
- import { jsx as jsx62 } from "react/jsx-runtime";
14365
+ import { clsx as clsx45 } from "clsx";
14366
+ import { jsx as jsx63 } from "react/jsx-runtime";
13985
14367
  var FillerRowElement = ({
13986
14368
  className
13987
14369
  }) => {
13988
- return /* @__PURE__ */ jsx62("div", { className: clsx44("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
14370
+ return /* @__PURE__ */ jsx63("div", { className: clsx45("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
13989
14371
  };
13990
14372
 
13991
14373
  // src/components/table/Filter.ts
@@ -14003,8 +14385,8 @@ var TableFilters = {
14003
14385
  };
14004
14386
 
14005
14387
  // src/components/table/Table.tsx
14006
- import { useCallback as useCallback16, useEffect as useEffect32, useMemo as useMemo10, useRef as useRef20, useState as useState29 } from "react";
14007
- import clsx48 from "clsx";
14388
+ import { useCallback as useCallback16, useEffect as useEffect33, useMemo as useMemo10, useRef as useRef21, useState as useState30 } from "react";
14389
+ import clsx49 from "clsx";
14008
14390
  import {
14009
14391
  flexRender,
14010
14392
  getCoreRowModel,
@@ -14016,19 +14398,19 @@ import {
14016
14398
  import { Scrollbars as Scrollbars3 } from "react-custom-scrollbars-2";
14017
14399
 
14018
14400
  // src/components/table/TableCell.tsx
14019
- import { clsx as clsx45 } from "clsx";
14020
- import { jsx as jsx63 } from "react/jsx-runtime";
14401
+ import { clsx as clsx46 } from "clsx";
14402
+ import { jsx as jsx64 } from "react/jsx-runtime";
14021
14403
  var TableCell = ({
14022
14404
  children,
14023
14405
  className
14024
14406
  }) => {
14025
- return /* @__PURE__ */ jsx63("span", { className: clsx45("block max-w-full overflow-ellipsis truncate", className), children });
14407
+ return /* @__PURE__ */ jsx64("span", { className: clsx46("block max-w-full overflow-ellipsis truncate", className), children });
14026
14408
  };
14027
14409
 
14028
14410
  // src/hooks/useResizeCallbackWrapper.ts
14029
- import { useEffect as useEffect27 } from "react";
14411
+ import { useEffect as useEffect28 } from "react";
14030
14412
  var useResizeCallbackWrapper = (callback) => {
14031
- useEffect27(() => {
14413
+ useEffect28(() => {
14032
14414
  window.addEventListener("resize", callback);
14033
14415
  return () => {
14034
14416
  window.removeEventListener("resize", callback);
@@ -14038,8 +14420,8 @@ var useResizeCallbackWrapper = (callback) => {
14038
14420
 
14039
14421
  // src/components/table/TableSortButton.tsx
14040
14422
  import { ChevronDown as ChevronDown3, ChevronsUpDown, ChevronUp } from "lucide-react";
14041
- import clsx46 from "clsx";
14042
- import { jsx as jsx64 } from "react/jsx-runtime";
14423
+ import clsx47 from "clsx";
14424
+ import { jsx as jsx65 } from "react/jsx-runtime";
14043
14425
  var TableSortButton = ({
14044
14426
  sortDirection,
14045
14427
  invert = false,
@@ -14047,20 +14429,20 @@ var TableSortButton = ({
14047
14429
  className,
14048
14430
  ...buttonProps
14049
14431
  }) => {
14050
- let icon = /* @__PURE__ */ jsx64(ChevronsUpDown, { className: "w-full h-full" });
14432
+ let icon = /* @__PURE__ */ jsx65(ChevronsUpDown, { className: "w-full h-full" });
14051
14433
  if (sortDirection) {
14052
14434
  let usedSortDirection = sortDirection;
14053
14435
  if (invert) {
14054
14436
  usedSortDirection = usedSortDirection === "desc" ? "asc" : "desc";
14055
14437
  }
14056
- icon = usedSortDirection === "asc" ? /* @__PURE__ */ jsx64(ChevronUp, { className: "w-full h-full" }) : /* @__PURE__ */ jsx64(ChevronDown3, { className: "w-full h-full" });
14438
+ icon = usedSortDirection === "asc" ? /* @__PURE__ */ jsx65(ChevronUp, { className: "w-full h-full" }) : /* @__PURE__ */ jsx65(ChevronDown3, { className: "w-full h-full" });
14057
14439
  }
14058
- return /* @__PURE__ */ jsx64(
14440
+ return /* @__PURE__ */ jsx65(
14059
14441
  IconButton,
14060
14442
  {
14061
14443
  size: "tiny",
14062
14444
  color,
14063
- className: clsx46(className),
14445
+ className: clsx47(className),
14064
14446
  ...buttonProps,
14065
14447
  children: icon
14066
14448
  }
@@ -14071,8 +14453,8 @@ var TableSortButton = ({
14071
14453
  import { FilterIcon } from "lucide-react";
14072
14454
 
14073
14455
  // src/components/user-action/Menu.tsx
14074
- import { useEffect as useEffect30, useRef as useRef19, useState as useState27 } from "react";
14075
- import clsx47 from "clsx";
14456
+ import { useEffect as useEffect31, useRef as useRef20, useState as useState28 } from "react";
14457
+ import clsx48 from "clsx";
14076
14458
 
14077
14459
  // src/utils/bagFunctions.ts
14078
14460
  var resolve = (children, bag) => {
@@ -14143,15 +14525,15 @@ var usePopoverPosition = (trigger, options) => {
14143
14525
  };
14144
14526
 
14145
14527
  // src/hooks/useHoverState.ts
14146
- import { useEffect as useEffect28, useState as useState26 } from "react";
14528
+ import { useEffect as useEffect29, useState as useState27 } from "react";
14147
14529
  var defaultUseHoverStateProps = {
14148
14530
  closingDelay: 200,
14149
14531
  isDisabled: false
14150
14532
  };
14151
14533
  var useHoverState = (props = void 0) => {
14152
14534
  const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
14153
- const [isHovered, setIsHovered] = useState26(false);
14154
- const [timer, setTimer] = useState26();
14535
+ const [isHovered, setIsHovered] = useState27(false);
14536
+ const [timer, setTimer] = useState27();
14155
14537
  const onMouseEnter = () => {
14156
14538
  if (isDisabled) {
14157
14539
  return;
@@ -14167,14 +14549,14 @@ var useHoverState = (props = void 0) => {
14167
14549
  setIsHovered(false);
14168
14550
  }, closingDelay));
14169
14551
  };
14170
- useEffect28(() => {
14552
+ useEffect29(() => {
14171
14553
  if (timer) {
14172
14554
  return () => {
14173
14555
  clearTimeout(timer);
14174
14556
  };
14175
14557
  }
14176
14558
  });
14177
- useEffect28(() => {
14559
+ useEffect29(() => {
14178
14560
  if (timer) {
14179
14561
  clearTimeout(timer);
14180
14562
  }
@@ -14187,9 +14569,9 @@ var useHoverState = (props = void 0) => {
14187
14569
  };
14188
14570
 
14189
14571
  // src/hooks/useOutsideClick.ts
14190
- import { useEffect as useEffect29 } from "react";
14572
+ import { useEffect as useEffect30 } from "react";
14191
14573
  var useOutsideClick = (refs, handler) => {
14192
- useEffect29(() => {
14574
+ useEffect30(() => {
14193
14575
  const listener = (event) => {
14194
14576
  if (event.target === null) return;
14195
14577
  if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
@@ -14207,17 +14589,17 @@ var useOutsideClick = (refs, handler) => {
14207
14589
  };
14208
14590
 
14209
14591
  // src/components/user-action/Menu.tsx
14210
- import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
14592
+ import { Fragment as Fragment10, jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
14211
14593
  var MenuItem = ({
14212
14594
  children,
14213
14595
  onClick,
14214
14596
  alignment = "left",
14215
14597
  isDisabled = false,
14216
14598
  className
14217
- }) => /* @__PURE__ */ jsx65(
14599
+ }) => /* @__PURE__ */ jsx66(
14218
14600
  "div",
14219
14601
  {
14220
- className: clsx47("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold text-nowrap", {
14602
+ className: clsx48("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold text-nowrap", {
14221
14603
  "text-right": alignment === "right",
14222
14604
  "text-left": alignment === "left",
14223
14605
  "text-disabled cursor-not-allowed": isDisabled,
@@ -14247,10 +14629,10 @@ var Menu = ({
14247
14629
  menuClassName = ""
14248
14630
  }) => {
14249
14631
  const { isHovered: isOpen, setIsHovered: setIsOpen } = useHoverState({ isDisabled: !showOnHover || disabled });
14250
- const triggerRef = useRef19(null);
14251
- const menuRef = useRef19(null);
14632
+ const triggerRef = useRef20(null);
14633
+ const menuRef = useRef20(null);
14252
14634
  useOutsideClick([triggerRef, menuRef], () => setIsOpen(false));
14253
- const [isHidden, setIsHidden] = useState27(true);
14635
+ const [isHidden, setIsHidden] = useState28(true);
14254
14636
  const bag = {
14255
14637
  isOpen,
14256
14638
  close: () => setIsOpen(false),
@@ -14261,7 +14643,7 @@ var Menu = ({
14261
14643
  triggerRef.current?.getBoundingClientRect(),
14262
14644
  { verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
14263
14645
  );
14264
- useEffect30(() => {
14646
+ useEffect31(() => {
14265
14647
  if (!isOpen) return;
14266
14648
  const triggerEl = triggerRef.current;
14267
14649
  if (!triggerEl) return;
@@ -14278,19 +14660,19 @@ var Menu = ({
14278
14660
  window.removeEventListener("resize", close);
14279
14661
  };
14280
14662
  }, [isOpen, setIsOpen]);
14281
- useEffect30(() => {
14663
+ useEffect31(() => {
14282
14664
  if (isOpen) {
14283
14665
  setIsHidden(false);
14284
14666
  }
14285
14667
  }, [isOpen]);
14286
- return /* @__PURE__ */ jsxs37(Fragment10, { children: [
14668
+ return /* @__PURE__ */ jsxs38(Fragment10, { children: [
14287
14669
  trigger(bag, triggerRef),
14288
- createPortal4(/* @__PURE__ */ jsx65(
14670
+ createPortal4(/* @__PURE__ */ jsx66(
14289
14671
  "div",
14290
14672
  {
14291
14673
  ref: menuRef,
14292
14674
  onClick: (e) => e.stopPropagation(),
14293
- className: clsx47(
14675
+ className: clsx48(
14294
14676
  "absolute rounded-md bg-menu-background text-menu-text shadow-around-lg shadow-strong z-[300]",
14295
14677
  {
14296
14678
  "animate-pop-in": isOpen,
@@ -14314,25 +14696,25 @@ var Menu = ({
14314
14696
  };
14315
14697
 
14316
14698
  // src/components/table/TableFilterButton.tsx
14317
- import { useEffect as useEffect31, useState as useState28 } from "react";
14318
- import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
14699
+ import { useEffect as useEffect32, useState as useState29 } from "react";
14700
+ import { Fragment as Fragment11, jsx as jsx67, jsxs as jsxs39 } from "react/jsx-runtime";
14319
14701
  var TableFilterButton = ({
14320
14702
  filterType,
14321
14703
  column
14322
14704
  }) => {
14323
14705
  const translation = useHightideTranslation();
14324
14706
  const columnFilterValue = column.getFilterValue();
14325
- const [filterValue, setFilterValue] = useState28(columnFilterValue);
14707
+ const [filterValue, setFilterValue] = useState29(columnFilterValue);
14326
14708
  const hasFilter = !!filterValue;
14327
- useEffect31(() => {
14709
+ useEffect32(() => {
14328
14710
  setFilterValue(columnFilterValue);
14329
14711
  }, [columnFilterValue]);
14330
- return /* @__PURE__ */ jsx66(
14712
+ return /* @__PURE__ */ jsx67(
14331
14713
  Menu,
14332
14714
  {
14333
- trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ jsxs38("div", { ref, className: "relative", children: [
14334
- /* @__PURE__ */ jsx66(IconButton, { color: "neutral", size: "tiny", onClick: toggleOpen, children: /* @__PURE__ */ jsx66(FilterIcon, {}) }),
14335
- hasFilter && /* @__PURE__ */ jsx66(
14715
+ trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ jsxs39("div", { ref, className: "relative", children: [
14716
+ /* @__PURE__ */ jsx67(IconButton, { color: "neutral", size: "tiny", onClick: toggleOpen, children: /* @__PURE__ */ jsx67(FilterIcon, {}) }),
14717
+ hasFilter && /* @__PURE__ */ jsx67(
14336
14718
  "div",
14337
14719
  {
14338
14720
  className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
@@ -14340,9 +14722,9 @@ var TableFilterButton = ({
14340
14722
  }
14341
14723
  )
14342
14724
  ] }),
14343
- children: ({ close }) => /* @__PURE__ */ jsxs38("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
14344
- /* @__PURE__ */ jsx66("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
14345
- filterType === "text" && /* @__PURE__ */ jsx66(
14725
+ children: ({ close }) => /* @__PURE__ */ jsxs39("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
14726
+ /* @__PURE__ */ jsx67("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
14727
+ filterType === "text" && /* @__PURE__ */ jsx67(
14346
14728
  Input,
14347
14729
  {
14348
14730
  value: filterValue ?? "",
@@ -14352,8 +14734,8 @@ var TableFilterButton = ({
14352
14734
  className: "h-10"
14353
14735
  }
14354
14736
  ),
14355
- filterType === "range" && /* @__PURE__ */ jsxs38("div", { className: "flex-row-2 items-center", children: [
14356
- /* @__PURE__ */ jsx66(
14737
+ filterType === "range" && /* @__PURE__ */ jsxs39("div", { className: "flex-row-2 items-center", children: [
14738
+ /* @__PURE__ */ jsx67(
14357
14739
  Input,
14358
14740
  {
14359
14741
  value: filterValue?.[0] ?? "",
@@ -14366,8 +14748,8 @@ var TableFilterButton = ({
14366
14748
  className: "h-10 input-indicator-hidden w-40"
14367
14749
  }
14368
14750
  ),
14369
- /* @__PURE__ */ jsx66("span", { className: "font-bold", children: "-" }),
14370
- /* @__PURE__ */ jsx66(
14751
+ /* @__PURE__ */ jsx67("span", { className: "font-bold", children: "-" }),
14752
+ /* @__PURE__ */ jsx67(
14371
14753
  Input,
14372
14754
  {
14373
14755
  value: filterValue?.[1] ?? "",
@@ -14381,8 +14763,8 @@ var TableFilterButton = ({
14381
14763
  }
14382
14764
  )
14383
14765
  ] }),
14384
- filterType === "dateRange" && /* @__PURE__ */ jsxs38(Fragment11, { children: [
14385
- /* @__PURE__ */ jsx66(
14766
+ filterType === "dateRange" && /* @__PURE__ */ jsxs39(Fragment11, { children: [
14767
+ /* @__PURE__ */ jsx67(
14386
14768
  Input,
14387
14769
  {
14388
14770
  value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
@@ -14395,7 +14777,7 @@ var TableFilterButton = ({
14395
14777
  className: "h-10 w-50"
14396
14778
  }
14397
14779
  ),
14398
- /* @__PURE__ */ jsx66(
14780
+ /* @__PURE__ */ jsx67(
14399
14781
  Input,
14400
14782
  {
14401
14783
  value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
@@ -14409,12 +14791,12 @@ var TableFilterButton = ({
14409
14791
  }
14410
14792
  )
14411
14793
  ] }),
14412
- /* @__PURE__ */ jsxs38("div", { className: "flex-row-2 justify-end w-full", children: [
14413
- hasFilter && /* @__PURE__ */ jsx66(SolidButton, { color: "negative", size: "small", onClick: () => {
14794
+ /* @__PURE__ */ jsxs39("div", { className: "flex-row-2 justify-end w-full", children: [
14795
+ hasFilter && /* @__PURE__ */ jsx67(SolidButton, { color: "negative", size: "small", onClick: () => {
14414
14796
  column.setFilterValue(void 0);
14415
14797
  close();
14416
14798
  }, children: translation("remove") }),
14417
- /* @__PURE__ */ jsx66(SolidButton, { size: "small", onClick: () => {
14799
+ /* @__PURE__ */ jsx67(SolidButton, { size: "small", onClick: () => {
14418
14800
  column.setFilterValue(filterValue);
14419
14801
  close();
14420
14802
  }, children: translation("apply") })
@@ -14425,7 +14807,7 @@ var TableFilterButton = ({
14425
14807
  };
14426
14808
 
14427
14809
  // src/components/table/Table.tsx
14428
- import { jsx as jsx67, jsxs as jsxs39 } from "react/jsx-runtime";
14810
+ import { jsx as jsx68, jsxs as jsxs40 } from "react/jsx-runtime";
14429
14811
  var Table = ({
14430
14812
  data,
14431
14813
  fillerRow,
@@ -14438,21 +14820,21 @@ var Table = ({
14438
14820
  columns,
14439
14821
  ...tableOptions
14440
14822
  }) => {
14441
- const ref = useRef20(null);
14442
- const tableRef = useRef20(null);
14443
- const [columnSizing, setColumnSizing] = useState29(columns.reduce((previousValue, currentValue) => {
14823
+ const ref = useRef21(null);
14824
+ const tableRef = useRef21(null);
14825
+ const [columnSizing, setColumnSizing] = useState30(columns.reduce((previousValue, currentValue) => {
14444
14826
  return {
14445
14827
  ...previousValue,
14446
14828
  [currentValue.id]: currentValue.minSize ?? defaultColumn.minSize
14447
14829
  };
14448
14830
  }, {}));
14449
- const [columnSizingInfo, setColumnSizingInfo] = useState29();
14450
- const [pagination, setPagination] = useState29({
14831
+ const [columnSizingInfo, setColumnSizingInfo] = useState30();
14832
+ const [pagination, setPagination] = useState30({
14451
14833
  pageSize: 10,
14452
14834
  pageIndex: 0,
14453
14835
  ...initialState?.pagination
14454
14836
  });
14455
- const [columnFilters, setColumnFilters] = useState29(initialState?.columnFilters);
14837
+ const [columnFilters, setColumnFilters] = useState30(initialState?.columnFilters);
14456
14838
  const computedColumnMinWidths = useMemo10(() => {
14457
14839
  return columns.reduce((previousValue, column) => {
14458
14840
  return {
@@ -14544,7 +14926,7 @@ var Table = ({
14544
14926
  minSize: 60,
14545
14927
  maxSize: 700,
14546
14928
  cell: ({ cell }) => {
14547
- return /* @__PURE__ */ jsx67(TableCell, { children: cell.getValue() });
14929
+ return /* @__PURE__ */ jsx68(TableCell, { children: cell.getValue() });
14548
14930
  },
14549
14931
  ...defaultColumn
14550
14932
  },
@@ -14592,8 +14974,8 @@ var Table = ({
14592
14974
  columnResizeMode: "onChange",
14593
14975
  ...tableOptions
14594
14976
  });
14595
- const [hasInitializedSizing, setHasInitializedSizing] = useState29(false);
14596
- useEffect32(() => {
14977
+ const [hasInitializedSizing, setHasInitializedSizing] = useState30(false);
14978
+ useEffect33(() => {
14597
14979
  if (!hasInitializedSizing && ref.current) {
14598
14980
  setHasInitializedSizing(true);
14599
14981
  table.setColumnSizing(updateColumnSizes(columnSizing));
@@ -14603,7 +14985,7 @@ var Table = ({
14603
14985
  table.setColumnSizing(updateColumnSizes);
14604
14986
  }, [updateColumnSizes]));
14605
14987
  const pageCount = table.getPageCount();
14606
- useEffect32(() => {
14988
+ useEffect33(() => {
14607
14989
  const totalPages = pageCount;
14608
14990
  if (totalPages === 0) {
14609
14991
  if (pagination.pageIndex !== 0) {
@@ -14629,24 +15011,24 @@ var Table = ({
14629
15011
  }
14630
15012
  return colSizes;
14631
15013
  }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
14632
- return /* @__PURE__ */ jsxs39("div", { ref, className: clsx48("flex-col-4", className), children: [
14633
- /* @__PURE__ */ jsx67(
15014
+ return /* @__PURE__ */ jsxs40("div", { ref, className: clsx49("flex-col-4", className), children: [
15015
+ /* @__PURE__ */ jsx68(
14634
15016
  Scrollbars3,
14635
15017
  {
14636
15018
  autoHeight: true,
14637
15019
  autoHeightMax: tableRef.current?.offsetHeight ? tableRef.current?.offsetHeight + 2 : void 0,
14638
15020
  autoHide: true,
14639
- children: /* @__PURE__ */ jsxs39(
15021
+ children: /* @__PURE__ */ jsxs40(
14640
15022
  "table",
14641
15023
  {
14642
15024
  ref: tableRef,
14643
- className: clsx48(tableClassName),
15025
+ className: clsx49(tableClassName),
14644
15026
  style: {
14645
15027
  ...columnSizeVars,
14646
15028
  width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
14647
15029
  },
14648
15030
  children: [
14649
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx67("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx67(
15031
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx68("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx68(
14650
15032
  "col",
14651
15033
  {
14652
15034
  style: {
@@ -14657,22 +15039,22 @@ var Table = ({
14657
15039
  },
14658
15040
  header.id
14659
15041
  )) }, headerGroup.id)),
14660
- /* @__PURE__ */ jsx67("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx67("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
14661
- return /* @__PURE__ */ jsxs39(
15042
+ /* @__PURE__ */ jsx68("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx68("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
15043
+ return /* @__PURE__ */ jsxs40(
14662
15044
  "th",
14663
15045
  {
14664
15046
  colSpan: header.colSpan,
14665
- className: clsx48("relative group", header.column.columnDef.meta?.className),
15047
+ className: clsx49("relative group", header.column.columnDef.meta?.className),
14666
15048
  children: [
14667
- /* @__PURE__ */ jsx67("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs39("div", { className: "flex-row-1 items-center", children: [
14668
- header.column.getCanSort() && /* @__PURE__ */ jsx67(
15049
+ /* @__PURE__ */ jsx68("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs40("div", { className: "flex-row-1 items-center", children: [
15050
+ header.column.getCanSort() && /* @__PURE__ */ jsx68(
14669
15051
  TableSortButton,
14670
15052
  {
14671
15053
  sortDirection: header.column.getIsSorted(),
14672
15054
  onClick: () => header.column.toggleSorting()
14673
15055
  }
14674
15056
  ),
14675
- header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ jsx67(
15057
+ header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ jsx68(
14676
15058
  TableFilterButton,
14677
15059
  {
14678
15060
  column: header.column,
@@ -14684,7 +15066,7 @@ var Table = ({
14684
15066
  header.getContext()
14685
15067
  )
14686
15068
  ] }) }),
14687
- header.column.getCanResize() && /* @__PURE__ */ jsx67(
15069
+ header.column.getCanResize() && /* @__PURE__ */ jsx68(
14688
15070
  "div",
14689
15071
  {
14690
15072
  onMouseDown: header.getResizeHandler(),
@@ -14703,18 +15085,18 @@ var Table = ({
14703
15085
  header.id
14704
15086
  );
14705
15087
  }) }, headerGroup.id)) }),
14706
- /* @__PURE__ */ jsxs39("tbody", { children: [
15088
+ /* @__PURE__ */ jsxs40("tbody", { children: [
14707
15089
  table.getRowModel().rows.map((row) => {
14708
- return /* @__PURE__ */ jsx67("tr", { onClick: () => onRowClick?.(row, table), className: table.options.meta?.bodyRowClassName, children: row.getVisibleCells().map((cell) => {
14709
- return /* @__PURE__ */ jsx67("td", { children: flexRender(
15090
+ return /* @__PURE__ */ jsx68("tr", { onClick: () => onRowClick?.(row, table), className: table.options.meta?.bodyRowClassName, children: row.getVisibleCells().map((cell) => {
15091
+ return /* @__PURE__ */ jsx68("td", { children: flexRender(
14710
15092
  cell.column.columnDef.cell,
14711
15093
  cell.getContext()
14712
15094
  ) }, cell.id);
14713
15095
  }) }, row.id);
14714
15096
  }),
14715
15097
  range(table.getState().pagination.pageSize - table.getRowModel().rows.length, { allowEmptyRange: true }).map((row, index) => {
14716
- return /* @__PURE__ */ jsx67("tr", { children: columns.map((column) => {
14717
- return /* @__PURE__ */ jsx67("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ jsx67(FillerRowElement, {}) }, column.id);
15098
+ return /* @__PURE__ */ jsx68("tr", { children: columns.map((column) => {
15099
+ return /* @__PURE__ */ jsx68("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ jsx68(FillerRowElement, {}) }, column.id);
14718
15100
  }) }, "filler-row-" + index);
14719
15101
  })
14720
15102
  ] })
@@ -14723,7 +15105,7 @@ var Table = ({
14723
15105
  )
14724
15106
  }
14725
15107
  ),
14726
- /* @__PURE__ */ jsx67("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ jsx67(
15108
+ /* @__PURE__ */ jsx68("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ jsx68(
14727
15109
  Pagination,
14728
15110
  {
14729
15111
  pageIndex: table.getState().pagination.pageIndex,
@@ -14735,7 +15117,7 @@ var Table = ({
14735
15117
  };
14736
15118
  var TableUncontrolled = ({ data, ...props }) => {
14737
15119
  const [usedDate] = useOverwritableState(data);
14738
- return /* @__PURE__ */ jsx67(
15120
+ return /* @__PURE__ */ jsx68(
14739
15121
  Table,
14740
15122
  {
14741
15123
  ...props,
@@ -14759,7 +15141,7 @@ var TableWithSelection = ({
14759
15141
  {
14760
15142
  id: selectionRowId,
14761
15143
  header: ({ table }) => {
14762
- return /* @__PURE__ */ jsx67(
15144
+ return /* @__PURE__ */ jsx68(
14763
15145
  Checkbox2,
14764
15146
  {
14765
15147
  checked: table.getIsAllRowsSelected(),
@@ -14772,7 +15154,7 @@ var TableWithSelection = ({
14772
15154
  );
14773
15155
  },
14774
15156
  cell: ({ row }) => {
14775
- return /* @__PURE__ */ jsx67(
15157
+ return /* @__PURE__ */ jsx68(
14776
15158
  Checkbox2,
14777
15159
  {
14778
15160
  disabled: !row.getCanSelect(),
@@ -14790,15 +15172,15 @@ var TableWithSelection = ({
14790
15172
  ...columns
14791
15173
  ];
14792
15174
  }, [columns, selectionRowId]);
14793
- return /* @__PURE__ */ jsx67(
15175
+ return /* @__PURE__ */ jsx68(
14794
15176
  Table,
14795
15177
  {
14796
15178
  columns: columnsWithSelection,
14797
15179
  fillerRow: (columnId, table) => {
14798
15180
  if (columnId === selectionRowId) {
14799
- return /* @__PURE__ */ jsx67(Checkbox2, { checked: false, disabled: true, className: "max-w-6" });
15181
+ return /* @__PURE__ */ jsx68(Checkbox2, { checked: false, disabled: true, className: "max-w-6" });
14800
15182
  }
14801
- return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ jsx67(FillerRowElement, {});
15183
+ return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ jsx68(FillerRowElement, {});
14802
15184
  },
14803
15185
  state: {
14804
15186
  rowSelection,
@@ -14812,7 +15194,7 @@ var TableWithSelection = ({
14812
15194
  },
14813
15195
  meta: {
14814
15196
  ...meta,
14815
- bodyRowClassName: clsx48(
15197
+ bodyRowClassName: clsx49(
14816
15198
  { "cursor-pointer": !disableClickRowClickSelection },
14817
15199
  meta?.bodyRowClassName
14818
15200
  )
@@ -14823,8 +15205,8 @@ var TableWithSelection = ({
14823
15205
  };
14824
15206
 
14825
15207
  // src/components/user-action/CopyToClipboardWrapper.tsx
14826
- import { useState as useState30 } from "react";
14827
- import { clsx as clsx49 } from "clsx";
15208
+ import { useState as useState31 } from "react";
15209
+ import { clsx as clsx50 } from "clsx";
14828
15210
 
14829
15211
  // src/utils/writeToClipboard.ts
14830
15212
  var writeToClipboard = (text) => {
@@ -14833,7 +15215,7 @@ var writeToClipboard = (text) => {
14833
15215
 
14834
15216
  // src/components/user-action/CopyToClipboardWrapper.tsx
14835
15217
  import { CheckIcon as CheckIcon2, Copy } from "lucide-react";
14836
- import { jsx as jsx68, jsxs as jsxs40 } from "react/jsx-runtime";
15218
+ import { jsx as jsx69, jsxs as jsxs41 } from "react/jsx-runtime";
14837
15219
  var CopyToClipboardWrapper = ({
14838
15220
  children,
14839
15221
  textToCopy,
@@ -14843,8 +15225,8 @@ var CopyToClipboardWrapper = ({
14843
15225
  zIndex = 10
14844
15226
  }) => {
14845
15227
  const translation = useHightideTranslation();
14846
- const [isShowingIndication, setIsShowingIndication] = useState30(false);
14847
- const [isShowingConfirmation, setIsShowingConfirmation] = useState30(false);
15228
+ const [isShowingIndication, setIsShowingIndication] = useState31(false);
15229
+ const [isShowingConfirmation, setIsShowingConfirmation] = useState31(false);
14848
15230
  const positionClasses = {
14849
15231
  top: `bottom-full left-1/2 -translate-x-1/2 mb-[6px]`,
14850
15232
  bottom: `top-full left-1/2 -translate-x-1/2 mt-[6px]`,
@@ -14864,10 +15246,10 @@ var CopyToClipboardWrapper = ({
14864
15246
  left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
14865
15247
  right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
14866
15248
  };
14867
- return /* @__PURE__ */ jsxs40(
15249
+ return /* @__PURE__ */ jsxs41(
14868
15250
  "div",
14869
15251
  {
14870
- className: clsx49("relative inline-block cursor-copy", containerClassName),
15252
+ className: clsx50("relative inline-block cursor-copy", containerClassName),
14871
15253
  onMouseEnter: () => {
14872
15254
  setIsShowingIndication(true);
14873
15255
  },
@@ -14882,10 +15264,10 @@ var CopyToClipboardWrapper = ({
14882
15264
  },
14883
15265
  children: [
14884
15266
  children,
14885
- /* @__PURE__ */ jsxs40(
15267
+ /* @__PURE__ */ jsxs41(
14886
15268
  "div",
14887
15269
  {
14888
- className: clsx49(
15270
+ className: clsx50(
14889
15271
  `absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
14890
15272
  shadow-around-md bg-tooltip-background cursor-default pointer-events-none`,
14891
15273
  "transition-opacity duration-200",
@@ -14897,18 +15279,18 @@ var CopyToClipboardWrapper = ({
14897
15279
  opacity: isShowingIndication || isShowingConfirmation ? 1 : 0
14898
15280
  },
14899
15281
  children: [
14900
- isShowingConfirmation && /* @__PURE__ */ jsxs40("div", { className: "flex-row-1", children: [
14901
- /* @__PURE__ */ jsx68(CheckIcon2, { size: 16, className: "text-positive" }),
15282
+ isShowingConfirmation && /* @__PURE__ */ jsxs41("div", { className: "flex-row-1", children: [
15283
+ /* @__PURE__ */ jsx69(CheckIcon2, { size: 16, className: "text-positive" }),
14902
15284
  translation("copied")
14903
15285
  ] }),
14904
- isShowingIndication && /* @__PURE__ */ jsxs40("div", { className: "flex-row-1 text-description", children: [
14905
- /* @__PURE__ */ jsx68(Copy, { size: 16 }),
15286
+ isShowingIndication && /* @__PURE__ */ jsxs41("div", { className: "flex-row-1 text-description", children: [
15287
+ /* @__PURE__ */ jsx69(Copy, { size: 16 }),
14906
15288
  translation("clickToCopy")
14907
15289
  ] }),
14908
- /* @__PURE__ */ jsx68(
15290
+ /* @__PURE__ */ jsx69(
14909
15291
  "div",
14910
15292
  {
14911
- className: clsx49(`absolute w-0 h-0`, triangleClasses[position]),
15293
+ className: clsx50(`absolute w-0 h-0`, triangleClasses[position]),
14912
15294
  style: { ...triangleStyle[position], zIndex: zIndex + 1 }
14913
15295
  }
14914
15296
  )
@@ -14921,8 +15303,8 @@ var CopyToClipboardWrapper = ({
14921
15303
  };
14922
15304
 
14923
15305
  // src/components/user-action/DateAndTimePicker.tsx
14924
- import clsx50 from "clsx";
14925
- import { jsx as jsx69, jsxs as jsxs41 } from "react/jsx-runtime";
15306
+ import clsx51 from "clsx";
15307
+ import { jsx as jsx70, jsxs as jsxs42 } from "react/jsx-runtime";
14926
15308
  var DateTimePicker = ({
14927
15309
  value = /* @__PURE__ */ new Date(),
14928
15310
  start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
@@ -14940,7 +15322,7 @@ var DateTimePicker = ({
14940
15322
  let dateDisplay;
14941
15323
  let timeDisplay;
14942
15324
  if (useDate) {
14943
- dateDisplay = /* @__PURE__ */ jsx69(
15325
+ dateDisplay = /* @__PURE__ */ jsx70(
14944
15326
  DatePicker,
14945
15327
  {
14946
15328
  ...datePickerProps,
@@ -14954,25 +15336,25 @@ var DateTimePicker = ({
14954
15336
  );
14955
15337
  }
14956
15338
  if (useTime) {
14957
- timeDisplay = /* @__PURE__ */ jsx69(
15339
+ timeDisplay = /* @__PURE__ */ jsx70(
14958
15340
  TimePicker,
14959
15341
  {
14960
15342
  ...timePickerProps,
14961
- className: clsx50("h-full", { "justify-between w-full": mode === "time" }),
15343
+ className: clsx51("h-full", { "justify-between w-full": mode === "time" }),
14962
15344
  maxHeight: 250,
14963
15345
  time: value,
14964
15346
  onChange
14965
15347
  }
14966
15348
  );
14967
15349
  }
14968
- return /* @__PURE__ */ jsxs41("div", { className: "flex-col-2 w-fit", children: [
14969
- /* @__PURE__ */ jsxs41("div", { className: "flex-row-4", children: [
15350
+ return /* @__PURE__ */ jsxs42("div", { className: "flex-col-2 w-fit", children: [
15351
+ /* @__PURE__ */ jsxs42("div", { className: "flex-row-4", children: [
14970
15352
  dateDisplay,
14971
15353
  timeDisplay
14972
15354
  ] }),
14973
- /* @__PURE__ */ jsx69("div", { className: "flex-row-2 justify-end", children: /* @__PURE__ */ jsxs41("div", { className: "flex-row-2 mt-1", children: [
14974
- /* @__PURE__ */ jsx69(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation("clear") }),
14975
- /* @__PURE__ */ jsx69(
15355
+ /* @__PURE__ */ jsx70("div", { className: "flex-row-2 justify-end", children: /* @__PURE__ */ jsxs42("div", { className: "flex-row-2 mt-1", children: [
15356
+ /* @__PURE__ */ jsx70(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation("clear") }),
15357
+ /* @__PURE__ */ jsx70(
14976
15358
  SolidButton,
14977
15359
  {
14978
15360
  size: "medium",
@@ -14985,9 +15367,9 @@ var DateTimePicker = ({
14985
15367
  };
14986
15368
 
14987
15369
  // src/components/user-action/ScrollPicker.tsx
14988
- import { useCallback as useCallback17, useEffect as useEffect33, useState as useState31 } from "react";
14989
- import clsx51 from "clsx";
14990
- import { jsx as jsx70, jsxs as jsxs42 } from "react/jsx-runtime";
15370
+ import { useCallback as useCallback17, useEffect as useEffect34, useState as useState32 } from "react";
15371
+ import clsx52 from "clsx";
15372
+ import { jsx as jsx71, jsxs as jsxs43 } from "react/jsx-runtime";
14991
15373
  var up = 1;
14992
15374
  var down = -1;
14993
15375
  var ScrollPicker = ({
@@ -15006,7 +15388,7 @@ var ScrollPicker = ({
15006
15388
  transition,
15007
15389
  items,
15008
15390
  lastTimeStamp
15009
- }, setAnimation] = useState31({
15391
+ }, setAnimation] = useState32({
15010
15392
  targetIndex: selectedIndex,
15011
15393
  currentIndex: disabled ? selectedIndex : 0,
15012
15394
  velocity: 0,
@@ -15105,7 +15487,7 @@ var ScrollPicker = ({
15105
15487
  };
15106
15488
  });
15107
15489
  }, [disabled, getDirection, onChange]);
15108
- useEffect33(() => {
15490
+ useEffect34(() => {
15109
15491
  requestAnimationFrame((timestamp) => animate(timestamp, lastTimeStamp));
15110
15492
  });
15111
15493
  const opacity = (transition2, index, itemsCount) => {
@@ -15126,7 +15508,7 @@ var ScrollPicker = ({
15126
15508
  }
15127
15509
  return clamp(1 - opacityValue / max);
15128
15510
  };
15129
- return /* @__PURE__ */ jsx70(
15511
+ return /* @__PURE__ */ jsx71(
15130
15512
  "div",
15131
15513
  {
15132
15514
  className: "relative overflow-hidden",
@@ -15137,15 +15519,15 @@ var ScrollPicker = ({
15137
15519
  setAnimation(({ velocity, ...animationData }) => ({ ...animationData, velocity: velocity + deltaY }));
15138
15520
  }
15139
15521
  },
15140
- children: /* @__PURE__ */ jsxs42("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
15141
- /* @__PURE__ */ jsx70(
15522
+ children: /* @__PURE__ */ jsxs43("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
15523
+ /* @__PURE__ */ jsx71(
15142
15524
  "div",
15143
15525
  {
15144
15526
  className: "absolute z-[1] top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2 w-full min-w-[40px] border border-divider/50 border-y-2 border-x-0 ",
15145
15527
  style: { height: `${itemHeight}px` }
15146
15528
  }
15147
15529
  ),
15148
- /* @__PURE__ */ jsx70(
15530
+ /* @__PURE__ */ jsx71(
15149
15531
  "div",
15150
15532
  {
15151
15533
  className: "flex-col-2 select-none",
@@ -15153,10 +15535,10 @@ var ScrollPicker = ({
15153
15535
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
15154
15536
  columnGap: `${distance}px`
15155
15537
  },
15156
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx70(
15538
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx71(
15157
15539
  "div",
15158
15540
  {
15159
- className: clsx51(
15541
+ className: clsx52(
15160
15542
  `flex-col-2 items-center justify-center rounded-md`,
15161
15543
  {
15162
15544
  "text-primary font-bold": currentIndex === index,
@@ -15184,8 +15566,8 @@ var ScrollPicker = ({
15184
15566
 
15185
15567
  // src/components/user-action/SearchBar.tsx
15186
15568
  import { Search } from "lucide-react";
15187
- import { clsx as clsx52 } from "clsx";
15188
- import { jsx as jsx71, jsxs as jsxs43 } from "react/jsx-runtime";
15569
+ import { clsx as clsx53 } from "clsx";
15570
+ import { jsx as jsx72, jsxs as jsxs44 } from "react/jsx-runtime";
15189
15571
  var SearchBar = ({
15190
15572
  placeholder,
15191
15573
  onSearch,
@@ -15194,21 +15576,21 @@ var SearchBar = ({
15194
15576
  ...inputProps
15195
15577
  }) => {
15196
15578
  const translation = useHightideTranslation();
15197
- return /* @__PURE__ */ jsxs43("div", { className: clsx52("flex-row-2 justify-between items-center", containerClassName), children: [
15198
- /* @__PURE__ */ jsx71(
15579
+ return /* @__PURE__ */ jsxs44("div", { className: clsx53("flex-row-2 justify-between items-center", containerClassName), children: [
15580
+ /* @__PURE__ */ jsx72(
15199
15581
  Input,
15200
15582
  {
15201
15583
  ...inputProps,
15202
15584
  placeholder: placeholder ?? translation("search")
15203
15585
  }
15204
15586
  ),
15205
- onSearch && /* @__PURE__ */ jsx71(IconButton, { color: "neutral", disabled: disableOnSearch, onClick: onSearch, children: /* @__PURE__ */ jsx71(Search, { className: "w-full h-full" }) })
15587
+ onSearch && /* @__PURE__ */ jsx72(IconButton, { color: "neutral", disabled: disableOnSearch, onClick: onSearch, children: /* @__PURE__ */ jsx72(Search, { className: "w-full h-full" }) })
15206
15588
  ] });
15207
15589
  };
15208
15590
 
15209
15591
  // src/components/user-action/Tooltip.tsx
15210
- import { clsx as clsx53 } from "clsx";
15211
- import { jsx as jsx72, jsxs as jsxs44 } from "react/jsx-runtime";
15592
+ import { clsx as clsx54 } from "clsx";
15593
+ import { jsx as jsx73, jsxs as jsxs45 } from "react/jsx-runtime";
15212
15594
  var Tooltip = ({
15213
15595
  tooltip,
15214
15596
  children,
@@ -15238,17 +15620,17 @@ var Tooltip = ({
15238
15620
  left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
15239
15621
  right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
15240
15622
  };
15241
- return /* @__PURE__ */ jsxs44(
15623
+ return /* @__PURE__ */ jsxs45(
15242
15624
  "div",
15243
15625
  {
15244
- className: clsx53("relative inline-block", containerClassName),
15626
+ className: clsx54("relative inline-block", containerClassName),
15245
15627
  ...handlers,
15246
15628
  children: [
15247
15629
  children,
15248
- isHovered && /* @__PURE__ */ jsxs44(
15630
+ isHovered && /* @__PURE__ */ jsxs45(
15249
15631
  "div",
15250
15632
  {
15251
- className: clsx53(
15633
+ className: clsx54(
15252
15634
  `opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
15253
15635
  animate-tooltip-fade-in shadow-around-md bg-tooltip-background`,
15254
15636
  positionClasses[position],
@@ -15257,10 +15639,10 @@ var Tooltip = ({
15257
15639
  style: { zIndex, animationDelay: animationDelay + "ms" },
15258
15640
  children: [
15259
15641
  tooltip,
15260
- /* @__PURE__ */ jsx72(
15642
+ /* @__PURE__ */ jsx73(
15261
15643
  "div",
15262
15644
  {
15263
- className: clsx53(`absolute w-0 h-0`, triangleClasses[position]),
15645
+ className: clsx54(`absolute w-0 h-0`, triangleClasses[position]),
15264
15646
  style: { ...triangleStyle[position], zIndex: zIndex + 1 }
15265
15647
  }
15266
15648
  )
@@ -15273,26 +15655,26 @@ var Tooltip = ({
15273
15655
  };
15274
15656
 
15275
15657
  // src/components/user-action/input/InsideLabelInput.tsx
15276
- import { useId as useId10 } from "react";
15277
- import { forwardRef as forwardRef14, useState as useState32 } from "react";
15278
- import clsx54 from "clsx";
15279
- import { jsx as jsx73, jsxs as jsxs45 } from "react/jsx-runtime";
15658
+ import { useId as useId11 } from "react";
15659
+ import { forwardRef as forwardRef14, useState as useState33 } from "react";
15660
+ import clsx55 from "clsx";
15661
+ import { jsx as jsx74, jsxs as jsxs46 } from "react/jsx-runtime";
15280
15662
  var InsideLabelInput = forwardRef14(function InsideLabelInput2({
15281
15663
  id: customId,
15282
15664
  label,
15283
15665
  ...props
15284
15666
  }, forwardedRef) {
15285
15667
  const { value } = props;
15286
- const [isFocused, setIsFocused] = useState32(false);
15287
- const generatedId = useId10();
15668
+ const [isFocused, setIsFocused] = useState33(false);
15669
+ const generatedId = useId11();
15288
15670
  const id = customId ?? generatedId;
15289
- return /* @__PURE__ */ jsxs45("div", { className: clsx54("relative"), children: [
15290
- /* @__PURE__ */ jsx73(
15671
+ return /* @__PURE__ */ jsxs46("div", { className: clsx55("relative"), children: [
15672
+ /* @__PURE__ */ jsx74(
15291
15673
  Input,
15292
15674
  {
15293
15675
  ...props,
15294
15676
  id,
15295
- className: clsx54("h-14 px-4 pb-2 py-6.5", props.className),
15677
+ className: clsx55("h-14 px-4 pb-2 py-6.5", props.className),
15296
15678
  ref: forwardedRef,
15297
15679
  "aria-labelledby": id + "-label",
15298
15680
  onFocus: (event) => {
@@ -15305,13 +15687,13 @@ var InsideLabelInput = forwardRef14(function InsideLabelInput2({
15305
15687
  }
15306
15688
  }
15307
15689
  ),
15308
- /* @__PURE__ */ jsx73(
15690
+ /* @__PURE__ */ jsx74(
15309
15691
  "label",
15310
15692
  {
15311
15693
  id: id + "-label",
15312
15694
  "aria-hidden": true,
15313
15695
  "data-display": isFocused || !!value ? "small" : "full",
15314
- className: clsx54(
15696
+ className: clsx55(
15315
15697
  // margin left to account for the border which is ignored for absolute positions
15316
15698
  "absolute left-4 ml-0.5 top-2 transition-all delay-25 pointer-events-none touch-none",
15317
15699
  "data-[display=small]:top-2 data-[display=small]:h-force-4.5 data-[display=small]:typography-caption-sm data-[display=small]:overflow-y-hidden",
@@ -15327,7 +15709,7 @@ var InsideLabelInputUncontrolled = ({
15327
15709
  ...props
15328
15710
  }) => {
15329
15711
  const [value, setValue] = useOverwritableState(initialValue, props.onChangeText);
15330
- return /* @__PURE__ */ jsx73(
15712
+ return /* @__PURE__ */ jsx74(
15331
15713
  InsideLabelInput,
15332
15714
  {
15333
15715
  ...props,
@@ -15338,26 +15720,26 @@ var InsideLabelInputUncontrolled = ({
15338
15720
  };
15339
15721
 
15340
15722
  // src/components/user-action/input/ToggleableInput.tsx
15341
- import { forwardRef as forwardRef15, useEffect as useEffect34, useImperativeHandle as useImperativeHandle4, useRef as useRef21, useState as useState33 } from "react";
15723
+ import { forwardRef as forwardRef15, useEffect as useEffect35, useImperativeHandle as useImperativeHandle4, useRef as useRef22, useState as useState34 } from "react";
15342
15724
  import { Pencil } from "lucide-react";
15343
- import clsx55 from "clsx";
15344
- import { jsx as jsx74, jsxs as jsxs46 } from "react/jsx-runtime";
15725
+ import clsx56 from "clsx";
15726
+ import { jsx as jsx75, jsxs as jsxs47 } from "react/jsx-runtime";
15345
15727
  var ToggleableInput = forwardRef15(function ToggleableInput2({
15346
15728
  value,
15347
15729
  initialState = "display",
15348
15730
  editCompleteOptions,
15349
15731
  ...props
15350
15732
  }, forwardedRef) {
15351
- const [isEditing, setIsEditing] = useState33(initialState !== "display");
15352
- const innerRef = useRef21(null);
15733
+ const [isEditing, setIsEditing] = useState34(initialState !== "display");
15734
+ const innerRef = useRef22(null);
15353
15735
  useImperativeHandle4(forwardedRef, () => innerRef.current);
15354
- useEffect34(() => {
15736
+ useEffect35(() => {
15355
15737
  if (isEditing) {
15356
15738
  innerRef.current?.focus();
15357
15739
  }
15358
15740
  }, [isEditing]);
15359
- return /* @__PURE__ */ jsxs46("div", { className: clsx55("relative flex-row-2", { "flex-1": isEditing }), children: [
15360
- /* @__PURE__ */ jsx74(
15741
+ return /* @__PURE__ */ jsxs47("div", { className: clsx56("relative flex-row-2", { "flex-1": isEditing }), children: [
15742
+ /* @__PURE__ */ jsx75(
15361
15743
  Input,
15362
15744
  {
15363
15745
  ...props,
@@ -15376,16 +15758,16 @@ var ToggleableInput = forwardRef15(function ToggleableInput2({
15376
15758
  ...editCompleteOptions,
15377
15759
  allowEnterComplete: true
15378
15760
  },
15379
- className: clsx55(`w-full ring-0 outline-0 decoration-primary underline-offset-4`, {
15761
+ className: clsx56(`w-full ring-0 outline-0 decoration-primary underline-offset-4`, {
15380
15762
  "underline": isEditing,
15381
15763
  "text-transparent": !isEditing
15382
15764
  }),
15383
15765
  defaultStyle: false
15384
15766
  }
15385
15767
  ),
15386
- !isEditing && /* @__PURE__ */ jsxs46("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
15387
- /* @__PURE__ */ jsx74("span", { className: clsx55(" truncate"), children: value }),
15388
- /* @__PURE__ */ jsx74(Pencil, { className: clsx55(`size-force-4`, { "text-transparent": isEditing }) })
15768
+ !isEditing && /* @__PURE__ */ jsxs47("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
15769
+ /* @__PURE__ */ jsx75("span", { className: clsx56(" truncate"), children: value }),
15770
+ /* @__PURE__ */ jsx75(Pencil, { className: clsx56(`size-force-4`, { "text-transparent": isEditing }) })
15389
15771
  ] })
15390
15772
  ] });
15391
15773
  });
@@ -15395,7 +15777,7 @@ var ToggleableInputUncontrolled = ({
15395
15777
  ...restProps
15396
15778
  }) => {
15397
15779
  const [value, setValue] = useOverwritableState(initialValue, onChangeText);
15398
- return /* @__PURE__ */ jsx74(
15780
+ return /* @__PURE__ */ jsx75(
15399
15781
  ToggleableInput,
15400
15782
  {
15401
15783
  value,
@@ -15406,33 +15788,33 @@ var ToggleableInputUncontrolled = ({
15406
15788
  };
15407
15789
 
15408
15790
  // src/components/utils/FocusTrap.tsx
15409
- import { useRef as useRef22 } from "react";
15791
+ import { useRef as useRef23 } from "react";
15410
15792
  import { useImperativeHandle as useImperativeHandle5 } from "react";
15411
15793
  import { forwardRef as forwardRef16 } from "react";
15412
- import { jsx as jsx75 } from "react/jsx-runtime";
15794
+ import { jsx as jsx76 } from "react/jsx-runtime";
15413
15795
  var FocusTrap = forwardRef16(function FocusTrap2({
15414
15796
  active = true,
15415
15797
  initialFocus,
15416
15798
  focusFirst = false,
15417
15799
  ...props
15418
15800
  }, forwardedRef) {
15419
- const innerRef = useRef22(null);
15801
+ const innerRef = useRef23(null);
15420
15802
  useImperativeHandle5(forwardedRef, () => innerRef.current);
15421
15803
  useFocusTrap({ container: innerRef, active, initialFocus, focusFirst });
15422
- return /* @__PURE__ */ jsx75("div", { ref: innerRef, ...props });
15804
+ return /* @__PURE__ */ jsx76("div", { ref: innerRef, ...props });
15423
15805
  });
15424
15806
 
15425
15807
  // src/components/utils/Transition.tsx
15426
- import { useEffect as useEffect35, useState as useState34 } from "react";
15808
+ import { useEffect as useEffect36, useState as useState35 } from "react";
15427
15809
  function Transition({
15428
15810
  children,
15429
15811
  show,
15430
15812
  includeAnimation = true
15431
15813
  }) {
15432
- const [isOpen, setIsOpen] = useState34(show);
15433
- const [isTransitioning, setIsTransitioning] = useState34(!isOpen);
15814
+ const [isOpen, setIsOpen] = useState35(show);
15815
+ const [isTransitioning, setIsTransitioning] = useState35(!isOpen);
15434
15816
  const isUsingReducedMotion = typeof window !== "undefined" && typeof window.matchMedia === "function" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : true;
15435
- useEffect35(() => {
15817
+ useEffect36(() => {
15436
15818
  setIsOpen(show);
15437
15819
  setIsTransitioning(true);
15438
15820
  }, [show]);
@@ -15455,12 +15837,367 @@ function Transition({
15455
15837
  };
15456
15838
  return BagFunctionUtil.resolve(children, bag);
15457
15839
  }
15840
+
15841
+ // src/hooks/focus/useFocusGuards.ts
15842
+ import { useEffect as useEffect37 } from "react";
15843
+ var selectorName = "data-hw-focus-guard";
15844
+ function FocusGuard() {
15845
+ const element = document.createElement("div");
15846
+ element.setAttribute(selectorName, "");
15847
+ element.tabIndex = 0;
15848
+ element.style.border = "none";
15849
+ element.style.outline = "none";
15850
+ element.style.boxShadow = "none";
15851
+ element.style.opacity = "0";
15852
+ element.style.position = "fixed";
15853
+ element.style.pointerEvents = "none";
15854
+ return element;
15855
+ }
15856
+ var FocusGuardsService = class _FocusGuardsService {
15857
+ constructor() {
15858
+ this.count = 0;
15859
+ }
15860
+ static getInstance() {
15861
+ if (!_FocusGuardsService.instance) {
15862
+ _FocusGuardsService.instance = new _FocusGuardsService();
15863
+ }
15864
+ return _FocusGuardsService.instance;
15865
+ }
15866
+ add() {
15867
+ const edgeGuards = document.querySelectorAll(`[${selectorName}]`);
15868
+ document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? FocusGuard());
15869
+ document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? FocusGuard());
15870
+ this.count++;
15871
+ }
15872
+ remove() {
15873
+ if (this.count === 1) {
15874
+ document.querySelectorAll(`[${selectorName}]`).forEach((node) => node.remove());
15875
+ }
15876
+ this.count--;
15877
+ }
15878
+ };
15879
+ var useFocusGuards = () => {
15880
+ useEffect37(() => {
15881
+ FocusGuardsService.getInstance().add();
15882
+ return () => {
15883
+ FocusGuardsService.getInstance().remove();
15884
+ };
15885
+ }, []);
15886
+ };
15887
+
15888
+ // src/hooks/focus/useFocusOnceVisible.ts
15889
+ import React20, { useEffect as useEffect38 } from "react";
15890
+ var useFocusOnceVisible = (ref, disable = false) => {
15891
+ const [hasUsedFocus, setHasUsedFocus] = React20.useState(false);
15892
+ useEffect38(() => {
15893
+ if (disable || hasUsedFocus) {
15894
+ return;
15895
+ }
15896
+ const observer = new IntersectionObserver(([entry]) => {
15897
+ if (entry.isIntersecting && !hasUsedFocus) {
15898
+ ref.current?.focus();
15899
+ setHasUsedFocus(hasUsedFocus);
15900
+ }
15901
+ }, {
15902
+ threshold: 0.1
15903
+ });
15904
+ if (ref.current) {
15905
+ observer.observe(ref.current);
15906
+ }
15907
+ return () => observer.disconnect();
15908
+ }, [disable, hasUsedFocus, ref]);
15909
+ };
15910
+
15911
+ // src/hooks/useRerender.ts
15912
+ import { useReducer as useReducer4 } from "react";
15913
+ var useRerender = () => {
15914
+ return useReducer4(() => ({}), {})[1];
15915
+ };
15916
+
15917
+ // src/hooks/useSearch.ts
15918
+ import { useCallback as useCallback18, useEffect as useEffect39, useMemo as useMemo11, useState as useState36 } from "react";
15919
+
15920
+ // src/utils/simpleSearch.ts
15921
+ var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
15922
+ return objects.filter((object) => {
15923
+ const mappedSearchKeywords = mapping(object)?.map((value) => value.toLowerCase().trim());
15924
+ if (!mappedSearchKeywords) {
15925
+ return true;
15926
+ }
15927
+ return search.every((searchValue) => !!mappedSearchKeywords.find((value) => !!value && value.includes(searchValue.toLowerCase().trim())));
15928
+ });
15929
+ };
15930
+ var MultiSearchWithMapping = (search, objects, mapping) => {
15931
+ return objects.filter((object) => {
15932
+ const mappedSearchKeywords = mapping(object)?.map((value) => value.toLowerCase().trim());
15933
+ if (!mappedSearchKeywords) {
15934
+ return true;
15935
+ }
15936
+ return !!mappedSearchKeywords.find((value) => value.includes(search.toLowerCase().trim()));
15937
+ });
15938
+ };
15939
+ var SimpleSearchWithMapping = (search, objects, mapping) => {
15940
+ return MultiSearchWithMapping(search, objects, (value) => [mapping(value)]);
15941
+ };
15942
+ var SimpleSearch = (search, objects) => {
15943
+ return SimpleSearchWithMapping(search, objects, (value) => value);
15944
+ };
15945
+
15946
+ // src/hooks/useSearch.ts
15947
+ var useSearch = ({
15948
+ list,
15949
+ initialSearch,
15950
+ searchMapping,
15951
+ additionalSearchTags,
15952
+ isSearchInstant = true,
15953
+ sortingFunction,
15954
+ filter,
15955
+ disabled = false
15956
+ }) => {
15957
+ const [search, setSearch] = useState36(initialSearch ?? "");
15958
+ const [result, setResult] = useState36(list);
15959
+ const searchTags = useMemo11(() => additionalSearchTags ?? [], [additionalSearchTags]);
15960
+ const updateSearch = useCallback18((newSearch) => {
15961
+ const usedSearch = newSearch ?? search;
15962
+ if (newSearch) {
15963
+ setSearch(search);
15964
+ }
15965
+ setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
15966
+ }, [searchTags, list, search, searchMapping]);
15967
+ useEffect39(() => {
15968
+ if (isSearchInstant) {
15969
+ setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
15970
+ }
15971
+ }, [searchTags, isSearchInstant, list, search, searchMapping, additionalSearchTags]);
15972
+ const filteredResult = useMemo11(() => {
15973
+ if (!filter) {
15974
+ return result;
15975
+ }
15976
+ return result.filter(filter);
15977
+ }, [result, filter]);
15978
+ const sortedAndFilteredResult = useMemo11(() => {
15979
+ if (!sortingFunction) {
15980
+ return filteredResult;
15981
+ }
15982
+ return filteredResult.sort(sortingFunction);
15983
+ }, [filteredResult, sortingFunction]);
15984
+ const usedResult = useMemo11(() => {
15985
+ if (!disabled) {
15986
+ return sortedAndFilteredResult;
15987
+ }
15988
+ return list;
15989
+ }, [disabled, list, sortedAndFilteredResult]);
15990
+ return {
15991
+ result: usedResult,
15992
+ hasResult: usedResult.length > 0,
15993
+ allItems: list,
15994
+ updateSearch,
15995
+ search,
15996
+ setSearch
15997
+ };
15998
+ };
15999
+
16000
+ // src/utils/emailValidation.ts
16001
+ var validateEmail = (email) => {
16002
+ return /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(email);
16003
+ };
16004
+
16005
+ // src/hooks/useValidators.ts
16006
+ var notEmpty = (value) => {
16007
+ if (!value) {
16008
+ return "notEmpty";
16009
+ }
16010
+ };
16011
+ var boundsValidator = (length, bounds) => {
16012
+ const [min, max] = bounds;
16013
+ if (min !== void 0 && max !== void 0 && (length === void 0 || length < min || length > max)) {
16014
+ return "range";
16015
+ }
16016
+ if (min !== void 0 && (length === void 0 || length < min)) {
16017
+ return "lower";
16018
+ }
16019
+ if (max !== void 0 && length !== void 0 && length > max) {
16020
+ return "upper";
16021
+ }
16022
+ return "none";
16023
+ };
16024
+ var lengthValidator = (value, bounds) => {
16025
+ const mapping = {
16026
+ range: "outOfRangeString",
16027
+ lower: "tooShort",
16028
+ upper: "tooLong",
16029
+ none: void 0
16030
+ };
16031
+ return mapping[boundsValidator(value?.length, bounds)];
16032
+ };
16033
+ var selectionValidator = (value, bounds) => {
16034
+ const mapping = {
16035
+ range: "outOfRangeSelectionItems",
16036
+ lower: "tooFewSelectionItems",
16037
+ upper: "tooManySelectionItems",
16038
+ none: void 0
16039
+ };
16040
+ return mapping[boundsValidator(value?.length, bounds)];
16041
+ };
16042
+ var emailValidator = (value) => {
16043
+ if (!value || !validateEmail(value)) {
16044
+ return "invalidEmail";
16045
+ }
16046
+ };
16047
+ var UseValidators = {
16048
+ notEmpty,
16049
+ length: lengthValidator,
16050
+ email: emailValidator,
16051
+ selection: selectionValidator
16052
+ };
16053
+ var useTranslatedValidators = () => {
16054
+ const translation = useHightideTranslation();
16055
+ return {
16056
+ notEmpty: (value) => {
16057
+ const result = notEmpty(value);
16058
+ if (result) {
16059
+ return translation(result);
16060
+ }
16061
+ },
16062
+ length: (value, length) => {
16063
+ const [min, max] = length;
16064
+ const result = lengthValidator(value, length);
16065
+ if (result) {
16066
+ return translation(result, { min, max });
16067
+ }
16068
+ },
16069
+ email: (value) => {
16070
+ const result = emailValidator(value);
16071
+ if (result) {
16072
+ return translation(result);
16073
+ }
16074
+ },
16075
+ selection: (value, length) => {
16076
+ const [min, max] = length;
16077
+ const result = selectionValidator(value, length);
16078
+ if (result) {
16079
+ return translation(
16080
+ result,
16081
+ { min, max }
16082
+ );
16083
+ }
16084
+ }
16085
+ };
16086
+ };
16087
+
16088
+ // src/utils/builder.ts
16089
+ var builder = (value, update) => {
16090
+ update(value);
16091
+ return value;
16092
+ };
16093
+
16094
+ // src/utils/easeFunctions.ts
16095
+ var EaseFunctions = class _EaseFunctions {
16096
+ static cubicBezierGeneric(x1, y1, x2, y2) {
16097
+ const cx = 3 * x1;
16098
+ const bx = 3 * (x2 - x1) - cx;
16099
+ const ax = 1 - cx - bx;
16100
+ const cy = 3 * y1;
16101
+ const by = 3 * (y2 - y1) - cy;
16102
+ const ay = 1 - cy - by;
16103
+ const x = (t) => ((ax * t + bx) * t + cx) * t;
16104
+ const y = (t) => ((ay * t + by) * t + cy) * t;
16105
+ return {
16106
+ x,
16107
+ y
16108
+ };
16109
+ }
16110
+ static cubicBezier(x1, y1, x2, y2) {
16111
+ const { y } = _EaseFunctions.cubicBezierGeneric(x1, y1, x2, y2);
16112
+ return (t) => {
16113
+ t = clamp(t);
16114
+ return y(t);
16115
+ };
16116
+ }
16117
+ static easeInEaseOut(t) {
16118
+ return _EaseFunctions.cubicBezier(0.65, 0, 0.35, 1)(t);
16119
+ }
16120
+ };
16121
+
16122
+ // src/utils/loopingArray.ts
16123
+ var LoopingArrayCalculator = class _LoopingArrayCalculator {
16124
+ constructor(length, isLooping = true, allowedOverScroll = 0.1) {
16125
+ if (allowedOverScroll < 0 || length < 1) {
16126
+ throw new Error("Invalid parameters: allowedOverScroll >= 0 and length >= 1 must be true");
16127
+ }
16128
+ this.length = length;
16129
+ this.isLooping = isLooping;
16130
+ this.allowedOverScroll = allowedOverScroll;
16131
+ }
16132
+ getCorrectedPosition(position) {
16133
+ if (!this.isLooping) {
16134
+ return Math.max(-this.allowedOverScroll, Math.min(this.allowedOverScroll + this.length - 1, position));
16135
+ }
16136
+ if (position >= this.length) {
16137
+ return position % this.length;
16138
+ }
16139
+ if (position < 0) {
16140
+ return this.length - Math.abs(position) % this.length;
16141
+ }
16142
+ return position;
16143
+ }
16144
+ static withoutOffset(position) {
16145
+ return position + _LoopingArrayCalculator.getOffset(position);
16146
+ }
16147
+ static getOffset(position) {
16148
+ return Math.round(position) - position;
16149
+ }
16150
+ /**
16151
+ * @return absolute distance forwards or Infinity when the target cannot be reached (only possible when not isLooping)
16152
+ */
16153
+ getDistanceDirectional(position, target, direction) {
16154
+ if (!this.isLooping && (position < -this.allowedOverScroll || position > this.allowedOverScroll + this.length - 1)) {
16155
+ throw new Error("Invalid parameters: position is out of bounds.");
16156
+ }
16157
+ const isForwardInvalid = direction === 1 && position > target;
16158
+ const isBackwardInvalid = direction === -1 && target < position;
16159
+ if (!this.isLooping && (isForwardInvalid || isBackwardInvalid)) {
16160
+ return Infinity;
16161
+ }
16162
+ if (direction === -1) {
16163
+ return this.getDistanceDirectional(target, position, 1);
16164
+ }
16165
+ position = this.getCorrectedPosition(position);
16166
+ target = this.getCorrectedPosition(target);
16167
+ let distance = (target - position) * direction;
16168
+ if (distance < 0) {
16169
+ distance = this.length - Math.abs(position) % this.length + target;
16170
+ }
16171
+ return distance;
16172
+ }
16173
+ getDistanceForward(position, target) {
16174
+ return this.getDistanceDirectional(position, target, 1);
16175
+ }
16176
+ getDistanceBackward(position, target) {
16177
+ return this.getDistanceDirectional(position, target, -1);
16178
+ }
16179
+ getDistance(position, target) {
16180
+ const forwardDistance = this.getDistanceForward(position, target);
16181
+ const backwardDistance = this.getDistanceBackward(position, target);
16182
+ return Math.min(forwardDistance, backwardDistance);
16183
+ }
16184
+ getBestDirection(position, target) {
16185
+ const forwardDistance = this.getDistanceForward(position, target);
16186
+ const backwardDistance = this.getDistanceBackward(position, target);
16187
+ return forwardDistance < backwardDistance ? 1 : -1;
16188
+ }
16189
+ };
16190
+
16191
+ // src/utils/noop.ts
16192
+ var noop = () => void 0;
15458
16193
  export {
15459
16194
  ASTNodeInterpreter,
15460
16195
  AnimatedRing,
16196
+ ArrayUtil,
15461
16197
  Avatar2 as Avatar,
15462
16198
  AvatarGroup,
15463
16199
  AvatarUtil,
16200
+ BagFunctionUtil,
15464
16201
  BreadCrumb,
15465
16202
  ButtonColorUtil,
15466
16203
  ButtonUtil,
@@ -15484,6 +16221,7 @@ export {
15484
16221
  Dialog,
15485
16222
  DiscardChangesDialog,
15486
16223
  DividerInserter,
16224
+ EaseFunctions,
15487
16225
  ErrorComponent,
15488
16226
  Expandable,
15489
16227
  ExpandableUncontrolled,
@@ -15514,14 +16252,21 @@ export {
15514
16252
  LoadingAnimation,
15515
16253
  LoadingButton,
15516
16254
  LoadingContainer,
16255
+ LocalStorageService,
16256
+ LocaleContext,
16257
+ LocaleProvider,
16258
+ LocalizationUtil,
16259
+ LoopingArrayCalculator,
15517
16260
  MarkdownInterpreter,
15518
16261
  Menu,
15519
16262
  MenuItem,
16263
+ MultiSearchWithMapping,
15520
16264
  MultiSelect,
15521
16265
  MultiSelectChipDisplay,
15522
16266
  MultiSelectChipDisplayUncontrolled,
15523
16267
  MultiSelectProperty,
15524
16268
  MultiSelectUncontrolled,
16269
+ MultiSubjectSearchWithMapping,
15525
16270
  Navigation,
15526
16271
  NavigationItemList,
15527
16272
  NumberProperty,
@@ -15542,10 +16287,15 @@ export {
15542
16287
  SelectOption,
15543
16288
  SelectRoot,
15544
16289
  SelectUncontrolled,
16290
+ SessionStorageService,
16291
+ SimpleSearch,
16292
+ SimpleSearchWithMapping,
15545
16293
  SingleSelectProperty,
15546
16294
  SolidButton,
15547
16295
  StepperBar,
15548
16296
  StepperBarUncontrolled,
16297
+ Tab,
16298
+ TabView,
15549
16299
  Table,
15550
16300
  TableCell,
15551
16301
  TableFilterButton,
@@ -15560,7 +16310,10 @@ export {
15560
16310
  Textarea,
15561
16311
  TextareaUncontrolled,
15562
16312
  TextareaWithHeadline,
16313
+ ThemeContext,
15563
16314
  ThemeDialog,
16315
+ ThemeProvider,
16316
+ ThemeUtil,
15564
16317
  TimeDisplay,
15565
16318
  TimePicker,
15566
16319
  TimePickerUncontrolled,
@@ -15568,9 +16321,62 @@ export {
15568
16321
  ToggleableInputUncontrolled,
15569
16322
  Tooltip,
15570
16323
  Transition,
16324
+ UseValidators,
15571
16325
  VerticalDivider,
15572
16326
  YearMonthPicker,
15573
- YearMonthPickerUncontrolled
16327
+ YearMonthPickerUncontrolled,
16328
+ addDuration,
16329
+ builder,
16330
+ changeDuration,
16331
+ clamp,
16332
+ closestMatch,
16333
+ createLoopingList,
16334
+ createLoopingListWithIndex,
16335
+ equalDate,
16336
+ equalSizeGroups,
16337
+ formatDate,
16338
+ formatDateTime,
16339
+ generateShadingColors,
16340
+ getBetweenDuration,
16341
+ getDaysInMonth,
16342
+ getNeighbours,
16343
+ getWeeksForCalenderMonth,
16344
+ hightideTranslation,
16345
+ hightideTranslationLocales,
16346
+ isInTimeSpan,
16347
+ match,
16348
+ monthsList,
16349
+ noop,
16350
+ range,
16351
+ resolveSetState,
16352
+ shadingColorValues,
16353
+ subtractDuration,
16354
+ useDelay,
16355
+ useFloatingElement,
16356
+ useFocusGuards,
16357
+ useFocusManagement,
16358
+ useFocusOnceVisible,
16359
+ useFocusTrap,
16360
+ useHightideTranslation,
16361
+ useHoverState,
16362
+ useICUTranslation,
16363
+ useIsMounted,
16364
+ useLanguage,
16365
+ useLocalStorage,
16366
+ useLocale,
16367
+ useLogOnce,
16368
+ useOutsideClick,
16369
+ useOverwritableState,
16370
+ usePopoverPosition,
16371
+ useRerender,
16372
+ useResizeCallbackWrapper,
16373
+ useSearch,
16374
+ useTabContext,
16375
+ useTheme,
16376
+ useTranslatedValidators,
16377
+ validateEmail,
16378
+ weekDayList,
16379
+ writeToClipboard
15574
16380
  };
15575
16381
  /*! Bundled license information:
15576
16382
 
@@ -15596,4 +16402,4 @@ use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
15596
16402
  * LICENSE file in the root directory of this source tree.
15597
16403
  *)
15598
16404
  */
15599
- //# sourceMappingURL=index.js.map
16405
+ //# sourceMappingURL=index.mjs.map