@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
@@ -1,2149 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/dialog/LanguageDialog.tsx
30
- var LanguageDialog_exports = {};
31
- __export(LanguageDialog_exports, {
32
- LanguageDialog: () => LanguageDialog
33
- });
34
- module.exports = __toCommonJS(LanguageDialog_exports);
35
-
36
- // src/components/dialog/Dialog.tsx
37
- var import_react7 = require("react");
38
- var import_react8 = require("react");
39
- var import_clsx2 = __toESM(require("clsx"), 1);
40
- var import_lucide_react = require("lucide-react");
41
-
42
- // src/i18n/LocaleProvider.tsx
43
- var import_react2 = require("react");
44
-
45
- // src/hooks/useLocalStorage.ts
46
- var import_react = require("react");
47
-
48
- // src/utils/resolveSetState.ts
49
- function resolveSetState(action, prev) {
50
- return typeof action === "function" ? action(prev) : action;
51
- }
52
-
53
- // src/i18n/translations.ts
54
- var import_internationalization = require("@helpwave/internationalization");
55
- var hightideTranslationLocales = ["de-DE", "en-US"];
56
- var hightideTranslation = {
57
- "de-DE": {
58
- "add": `Hinzuf\xFCgen`,
59
- "age": `Alter`,
60
- "all": `Alle`,
61
- "apply": `Anwenden`,
62
- "back": `Zur\xFCck`,
63
- "cancel": `Abbrechen`,
64
- "carousel": `Karussell`,
65
- "change": `\xC4ndern`,
66
- "chooseLanguage": `W\xE4hle deine bevorzugte Sprache`,
67
- "chooseSlide": `W\xE4hle die angezeigte Slide aus`,
68
- "chooseTheme": `W\xE4hle dein bevorzugtes Farbschema.`,
69
- "clear": `L\xF6schen`,
70
- "click": `Klicken`,
71
- "clickToCopy": `Zum kopieren klicken`,
72
- "clickToSelect": `Zum Ausw\xE4hlen dr\xFCcken`,
73
- "close": `Schlie\xDFen`,
74
- "confirm": `Best\xE4tigen`,
75
- "copied": `Kopiert`,
76
- "copy": `Kopieren`,
77
- "create": `Erstellen`,
78
- "decline": `Ablehnen`,
79
- "delete": `L\xF6schen`,
80
- "discard": `Verwerfen`,
81
- "discardChanges": `\xC4nderungen Verwerfen`,
82
- "done": `Fertig`,
83
- "edit": `Bearbeiten`,
84
- "endDate": `Ende`,
85
- "enterText": `Text hier eingeben`,
86
- "entryDate": `Eintragsdatum`,
87
- "error": `Fehler`,
88
- "errorOccurred": `Ein Fehler ist aufgetreten`,
89
- "exit": `Beenden`,
90
- "fieldRequiredError": `Dieses Feld ist erforderlich.`,
91
- "filter": `Filter`,
92
- "gender": ({ gender }) => {
93
- return import_internationalization.TranslationGen.resolveSelect(gender, {
94
- "male": `M\xE4nnlich`,
95
- "female": `Weiblich`,
96
- "other": `Divers`
97
- });
98
- },
99
- "goodToSeeYou": `Sch\xF6n dich zu sehen`,
100
- "identifier": `Identifikator`,
101
- "invalidEmail": `Die E-Mail ist ung\xFCltig.`,
102
- "invalidEmailError": `Bitte geben Sie eine g\xFCltige E-Mail-Adresse ein.`,
103
- "language": `Sprache`,
104
- "less": `Weniger`,
105
- "loading": `L\xE4dt`,
106
- "locale": `Locale`,
107
- "max": `Max`,
108
- "maxLengthError": `Maximale L\xE4nge \xFCberschritten.`,
109
- "min": `Min`,
110
- "minLengthError": `Mindestl\xE4nge nicht erreicht.`,
111
- "more": `Mehr`,
112
- "name": `Name`,
113
- "next": `Weiter`,
114
- "no": `Nein`,
115
- "none": `Nichts`,
116
- "notEmpty": `Das Feld darf nicht leer sein.`,
117
- "nothingFound": `Nichts gefunden`,
118
- "of": `von`,
119
- "optional": `Optional`,
120
- "outOfRangeNumber": ({ min, max }) => {
121
- return `Der Wert muss zwischen ${min} und ${max} liegen.`;
122
- },
123
- "outOfRangeSelectionItems": ({ min, max }) => {
124
- return `Es m\xFCssen zwischen ${min} und ${max} Elemente ausgew\xE4hlt werden.`;
125
- },
126
- "outOfRangeString": ({ min, max }) => {
127
- return `Der Wert muss zwischen ${min} und ${max} Zeichen lang sein.`;
128
- },
129
- "pleaseWait": `Bitte warten...`,
130
- "previous": `Vorherige`,
131
- "remove": `Entfernen`,
132
- "required": `Erforderlich`,
133
- "reset": `Zur\xFCcksetzen`,
134
- "save": `Speichern`,
135
- "saved": `Gespeichert`,
136
- "search": `Suche`,
137
- "select": `Select`,
138
- "selectOption": `Option ausw\xE4hlen`,
139
- "show": `Anzeigen`,
140
- "showLess": `Weniger anzeigen`,
141
- "showMore": `Mehr anzeigen`,
142
- "showSlide": ({ index }) => {
143
- return `Zeige Slide ${index}`;
144
- },
145
- "slide": `Slide`,
146
- "slideNavigation": `Slide Navigation`,
147
- "slideOf": ({ index, length }) => {
148
- return `Slide ${index} von ${length} slides`;
149
- },
150
- "startDate": `Start`,
151
- "street": `Stra\xDFe`,
152
- "submit": `Abschicken`,
153
- "success": `Erfolg`,
154
- "text": `Text`,
155
- "themeMode": ({ theme }) => {
156
- return import_internationalization.TranslationGen.resolveSelect(theme, {
157
- "dark": `Dunkel`,
158
- "light": `Hell`,
159
- "system": `System`
160
- });
161
- },
162
- "themes": ({ count }) => {
163
- return import_internationalization.TranslationGen.resolveSelect(count, {
164
- "=1": `Farbschema`,
165
- "other": `Farbschemas`
166
- });
167
- },
168
- "time.ago": `vor`,
169
- "time.agoDays": ({ days }) => {
170
- return `var ${days} Tagen`;
171
- },
172
- "time.april": `April`,
173
- "time.august": `August`,
174
- "time.century": ({ count }) => {
175
- return import_internationalization.TranslationGen.resolveSelect(count, {
176
- "=1": `Jahrhundert`,
177
- "other": `Jahrhunderte`
178
- });
179
- },
180
- "time.day": ({ count }) => {
181
- return import_internationalization.TranslationGen.resolveSelect(count, {
182
- "=1": `Tag`,
183
- "other": `Tage`
184
- });
185
- },
186
- "time.decade": ({ count }) => {
187
- return import_internationalization.TranslationGen.resolveSelect(count, {
188
- "=1": `Jahrzehnt`,
189
- "other": `Jahrzehnte`
190
- });
191
- },
192
- "time.december": `December`,
193
- "time.february": `Febuar`,
194
- "time.hour": ({ count }) => {
195
- return import_internationalization.TranslationGen.resolveSelect(count, {
196
- "=1": `Stunde`,
197
- "other": `Stunden`
198
- });
199
- },
200
- "time.in": `in`,
201
- "time.inDays": ({ days }) => {
202
- return `in ${days} Tagen`;
203
- },
204
- "time.january": `Januar`,
205
- "time.july": `Juli`,
206
- "time.june": `Juni`,
207
- "time.march": `M\xE4rz`,
208
- "time.may": `Mai`,
209
- "time.microsecond": ({ count }) => {
210
- return import_internationalization.TranslationGen.resolveSelect(count, {
211
- "=1": `Mikrosekunde`,
212
- "other": `Mikrosekunden`
213
- });
214
- },
215
- "time.millisecond": ({ count }) => {
216
- return import_internationalization.TranslationGen.resolveSelect(count, {
217
- "=1": `Millisekunde`,
218
- "other": `Millisekunden`
219
- });
220
- },
221
- "time.minute": ({ count }) => {
222
- return import_internationalization.TranslationGen.resolveSelect(count, {
223
- "=1": `Minute`,
224
- "other": `Minuten`
225
- });
226
- },
227
- "time.month": ({ count }) => {
228
- return import_internationalization.TranslationGen.resolveSelect(count, {
229
- "=1": `Monat`,
230
- "other": `Monate`
231
- });
232
- },
233
- "time.monthName": ({ month }) => {
234
- return import_internationalization.TranslationGen.resolveSelect(month, {
235
- "january": `Januar`,
236
- "february": `Februar`,
237
- "march": `M\xE4rz`,
238
- "april": `April`,
239
- "may": `Mai`,
240
- "june": `Juni`,
241
- "july": `Juli`,
242
- "august": `August`,
243
- "september": `September`,
244
- "october": `Oktober`,
245
- "november": `November`,
246
- "december": `Dezember`,
247
- "other": `Unbekannter Monat`
248
- });
249
- },
250
- "time.nanosecond": ({ count }) => {
251
- return import_internationalization.TranslationGen.resolveSelect(count, {
252
- "=1": `Nanosekunde`,
253
- "other": `Nanosekunden`
254
- });
255
- },
256
- "time.november": `November`,
257
- "time.october": `October`,
258
- "time.second": ({ count }) => {
259
- return import_internationalization.TranslationGen.resolveSelect(count, {
260
- "=1": `Sekunde`,
261
- "other": `Sekunden`
262
- });
263
- },
264
- "time.september": `September`,
265
- "time.today": `Heute`,
266
- "time.tomorrow": `Morgen`,
267
- "time.year": ({ count }) => {
268
- return import_internationalization.TranslationGen.resolveSelect(count, {
269
- "=1": `Jahr`,
270
- "other": `Jahre`
271
- });
272
- },
273
- "time.yesterday": `Gestern`,
274
- "tooFewSelectionItems": ({ min }) => {
275
- return `Es m\xFCssen mindestens ${min} Elemente ausgew\xE4hlt werden.`;
276
- },
277
- "tooLong": ({ max }) => {
278
- return `Der Wert darf h\xF6chstens ${max} Zeichen enthalten.`;
279
- },
280
- "tooManySelectionItems": ({ max }) => {
281
- return `Es m\xFCssen maximal ${max} Elemente ausgew\xE4hlt werden.`;
282
- },
283
- "tooShort": ({ min }) => {
284
- return `Der Wert muss mindestens ${min} Zeichen enthalten.`;
285
- },
286
- "unsavedChanges": `Ungespeicherte \xC4nderungen`,
287
- "unsavedChangesSaveQuestion": `M\xF6chtest du die \xC4nderungen speichern?`,
288
- "update": `Update`,
289
- "value": `Wert`,
290
- "welcome": `Willkommen`,
291
- "yes": `Ja`
292
- },
293
- "en-US": {
294
- "add": `Add`,
295
- "age": `Age`,
296
- "all": `All`,
297
- "apply": `Apply`,
298
- "back": `Back`,
299
- "cancel": `Cancel`,
300
- "carousel": `Carousel`,
301
- "change": `Change`,
302
- "chooseLanguage": `Choose your language`,
303
- "chooseSlide": `Choose slide to display`,
304
- "chooseTheme": `Choose your preferred color theme.`,
305
- "clear": `Clear`,
306
- "click": `Click`,
307
- "clickToCopy": `Click to Copy`,
308
- "clickToSelect": `Click to select`,
309
- "close": `Close`,
310
- "confirm": `Confirm`,
311
- "copied": `Copied`,
312
- "copy": `Copy`,
313
- "create": `Create`,
314
- "decline": `Decline`,
315
- "delete": `Delete`,
316
- "discard": `Discard`,
317
- "discardChanges": `Discard Changes`,
318
- "done": `Done`,
319
- "edit": `Edit`,
320
- "endDate": `End`,
321
- "enterText": `Enter text here`,
322
- "entryDate": `Entry Date`,
323
- "error": `Error`,
324
- "errorOccurred": `An error occurred`,
325
- "exit": `Exit`,
326
- "fieldRequiredError": `This field is required.`,
327
- "filter": `Filter`,
328
- "gender": ({ gender }) => {
329
- return import_internationalization.TranslationGen.resolveSelect(gender, {
330
- "male": `Male`,
331
- "female": `Female`,
332
- "other": `Other`
333
- });
334
- },
335
- "goodToSeeYou": `Good to see you`,
336
- "identifier": `Identifier`,
337
- "invalidEmail": `The email is not valid.`,
338
- "invalidEmailError": `Please enter a valid email address.`,
339
- "language": `Language`,
340
- "less": `Less`,
341
- "loading": `Loading`,
342
- "locale": `Locale`,
343
- "max": `Max`,
344
- "maxLengthError": `Maximum length exceeded.`,
345
- "min": `Min`,
346
- "minLengthError": `Minimum length not met.`,
347
- "more": `More`,
348
- "name": `Name`,
349
- "next": `Next`,
350
- "no": `No`,
351
- "none": `None`,
352
- "notEmpty": `The field cannot be empty.`,
353
- "nothingFound": `Nothing found`,
354
- "of": `of`,
355
- "optional": `Optional`,
356
- "outOfRangeNumber": ({ min, max }) => {
357
- return `The value must be between ${min} and ${max}.`;
358
- },
359
- "outOfRangeSelectionItems": ({ min, max }) => {
360
- return `Between ${min} and ${max} items must be selected.`;
361
- },
362
- "outOfRangeString": ({ min, max }) => {
363
- return `The value needs to have between ${min} and ${max} characters.`;
364
- },
365
- "pleaseWait": `Please wait...`,
366
- "previous": `Previous`,
367
- "remove": `Remove`,
368
- "required": `Required`,
369
- "reset": `Reset`,
370
- "save": `Save`,
371
- "saved": `Saved`,
372
- "search": `Search`,
373
- "select": `Select`,
374
- "selectOption": `Select an option`,
375
- "show": `Show`,
376
- "showLess": `Show less`,
377
- "showMore": `Show more`,
378
- "showSlide": ({ index }) => {
379
- return `Show Slide ${index}`;
380
- },
381
- "slide": `Slide`,
382
- "slideNavigation": `Slide navigation`,
383
- "slideOf": ({ index, length }) => {
384
- return `Slide ${index} of ${length} slides`;
385
- },
386
- "startDate": `Start`,
387
- "street": `Street`,
388
- "submit": `Submit`,
389
- "success": `Success`,
390
- "text": `Text`,
391
- "themeMode": ({ theme }) => {
392
- return import_internationalization.TranslationGen.resolveSelect(theme, {
393
- "dark": `Dark`,
394
- "light": `Light`,
395
- "system": `System`
396
- });
397
- },
398
- "themes": ({ count }) => {
399
- return import_internationalization.TranslationGen.resolveSelect(count, {
400
- "=1": `Theme`,
401
- "other": `Themes`
402
- });
403
- },
404
- "time.ago": `ago`,
405
- "time.agoDays": ({ days }) => {
406
- return `days ${days} ago`;
407
- },
408
- "time.april": `April`,
409
- "time.august": `August`,
410
- "time.century": ({ count }) => {
411
- return import_internationalization.TranslationGen.resolveSelect(count, {
412
- "=1": `Century`,
413
- "other": `Centuries`
414
- });
415
- },
416
- "time.day": ({ count }) => {
417
- return import_internationalization.TranslationGen.resolveSelect(count, {
418
- "=1": `Day`,
419
- "other": `Days`
420
- });
421
- },
422
- "time.decade": ({ count }) => {
423
- return import_internationalization.TranslationGen.resolveSelect(count, {
424
- "=1": `Decade`,
425
- "other": `Decades`
426
- });
427
- },
428
- "time.december": `December`,
429
- "time.february": `Febuary`,
430
- "time.hour": ({ count }) => {
431
- return import_internationalization.TranslationGen.resolveSelect(count, {
432
- "=1": `Hour`,
433
- "other": `Hours`
434
- });
435
- },
436
- "time.in": `in`,
437
- "time.inDays": ({ days }) => {
438
- return `in ${days} days`;
439
- },
440
- "time.january": `January`,
441
- "time.july": `July`,
442
- "time.june": `June`,
443
- "time.march": `March`,
444
- "time.may": `May`,
445
- "time.microsecond": ({ count }) => {
446
- return import_internationalization.TranslationGen.resolveSelect(count, {
447
- "=1": `Microsecond`,
448
- "other": `Microseconds`
449
- });
450
- },
451
- "time.millisecond": ({ count }) => {
452
- return import_internationalization.TranslationGen.resolveSelect(count, {
453
- "=1": `Millisecond`,
454
- "other": `Milliseconds`
455
- });
456
- },
457
- "time.minute": ({ count }) => {
458
- return import_internationalization.TranslationGen.resolveSelect(count, {
459
- "=1": `Minute`,
460
- "other": `Minutes`
461
- });
462
- },
463
- "time.month": ({ count }) => {
464
- return import_internationalization.TranslationGen.resolveSelect(count, {
465
- "=1": `Month`,
466
- "other": `Months`
467
- });
468
- },
469
- "time.monthName": ({ month }) => {
470
- return import_internationalization.TranslationGen.resolveSelect(month, {
471
- "january": `January`,
472
- "february": `February`,
473
- "march": `March`,
474
- "april": `April`,
475
- "may": `May`,
476
- "june": `June`,
477
- "july": `July`,
478
- "august": `August`,
479
- "september": `September`,
480
- "october": `October`,
481
- "november": `November`,
482
- "december": `December`,
483
- "other": `Unknown Month`
484
- });
485
- },
486
- "time.nanosecond": ({ count }) => {
487
- return import_internationalization.TranslationGen.resolveSelect(count, {
488
- "=1": `Nanosecond`,
489
- "other": `Nanoseconds`
490
- });
491
- },
492
- "time.november": `November`,
493
- "time.october": `October`,
494
- "time.second": ({ count }) => {
495
- return import_internationalization.TranslationGen.resolveSelect(count, {
496
- "=1": `Second`,
497
- "other": `Seconds`
498
- });
499
- },
500
- "time.september": `September`,
501
- "time.today": `Today`,
502
- "time.tomorrow": `Tomorrow`,
503
- "time.year": ({ count }) => {
504
- return import_internationalization.TranslationGen.resolveSelect(count, {
505
- "=1": `Year`,
506
- "other": `Years`
507
- });
508
- },
509
- "time.yesterday": `Yesterday`,
510
- "tooFewSelectionItems": ({ min }) => {
511
- return `Select at least ${min} items.`;
512
- },
513
- "tooLong": ({ max }) => {
514
- return `The value requires less than ${max} characters.`;
515
- },
516
- "tooManySelectionItems": ({ max }) => {
517
- return `Select at most ${max} items.`;
518
- },
519
- "tooShort": ({ min }) => {
520
- return `The value requires at least ${min} characters.`;
521
- },
522
- "unsavedChanges": `Unsaved Changes`,
523
- "unsavedChangesSaveQuestion": `Do you want to save your changes?`,
524
- "update": `Update`,
525
- "value": `Value`,
526
- "welcome": `Welcome`,
527
- "yes": `Yes`
528
- }
529
- };
530
-
531
- // src/i18n/util.ts
532
- var localsNames = {
533
- "en-US": "English (US)",
534
- "de-DE": "Deutsch"
535
- };
536
- var DEFAULT_LOCALE = "en-US";
537
- function localeToLanguage(locale) {
538
- return locale.split("-")[0];
539
- }
540
- var LocalizationUtil = {
541
- locals: hightideTranslationLocales,
542
- localToLanguage: localeToLanguage,
543
- DEFAULT_LOCALE,
544
- languagesLocalNames: localsNames
545
- };
546
-
547
- // src/i18n/LocaleProvider.tsx
548
- var import_jsx_runtime = require("react/jsx-runtime");
549
- var LocaleContext = (0, import_react2.createContext)({
550
- locale: LocalizationUtil.DEFAULT_LOCALE,
551
- setLocale: (v) => v
552
- });
553
- var useLocale = () => {
554
- const context = (0, import_react2.useContext)(LocaleContext);
555
- if (!context) {
556
- throw new Error("useLocale must be used within LocaleContext. Try adding a LocaleProvider around your app.");
557
- }
558
- return context;
559
- };
560
-
561
- // src/i18n/useHightideTranslation.ts
562
- var import_internationalization2 = require("@helpwave/internationalization");
563
-
564
- // src/utils/array.ts
565
- var moveItems = (list, move = 0) => {
566
- const result = [];
567
- let start = move;
568
- if (start < 0) {
569
- start = list.length - move;
570
- }
571
- start = start % list.length;
572
- for (let i = 0; i < list.length; i++) {
573
- result[i] = list[(i + start) % list.length];
574
- }
575
- return result;
576
- };
577
- function resolveSingleOrArray(value) {
578
- if (Array.isArray(value)) {
579
- return value;
580
- } else if (value) {
581
- return [value];
582
- }
583
- return [];
584
- }
585
- var ArrayUtil = {
586
- unique: (list) => {
587
- const seen = /* @__PURE__ */ new Set();
588
- return list.filter((item) => {
589
- if (seen.has(item)) {
590
- return false;
591
- }
592
- seen.add(item);
593
- return true;
594
- });
595
- },
596
- difference: (list, removeList) => {
597
- const remove = new Set(removeList);
598
- return list.filter((item) => !remove.has(item));
599
- },
600
- moveItems,
601
- resolveSingleOrArray
602
- };
603
-
604
- // src/i18n/useHightideTranslation.ts
605
- function useHightideTranslation(extensions, overwrites) {
606
- const { locale: inferredLocale } = useLocale();
607
- const locale = overwrites?.locale ?? inferredLocale;
608
- const translationExtensions = ArrayUtil.resolveSingleOrArray(extensions);
609
- return (0, import_internationalization2.combineTranslation)([
610
- ...translationExtensions,
611
- hightideTranslation
612
- ], locale);
613
- }
614
-
615
- // src/components/user-action/Button.tsx
616
- var import_react3 = require("react");
617
- var import_clsx = __toESM(require("clsx"), 1);
618
- var import_jsx_runtime2 = require("react/jsx-runtime");
619
- var ButtonColorUtil = {
620
- solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
621
- text: ["primary", "negative", "neutral"],
622
- outline: ["primary"]
623
- };
624
- var IconButtonUtil = {
625
- icon: [...ButtonColorUtil.solid, "transparent"]
626
- };
627
- var paddingMapping = {
628
- none: "",
629
- small: "btn-sm",
630
- medium: "btn-md",
631
- large: "btn-lg"
632
- };
633
- var iconPaddingMapping = {
634
- none: "",
635
- tiny: "icon-btn-xs",
636
- small: "icon-btn-sm",
637
- medium: "icon-btn-md",
638
- large: "icon-btn-lg"
639
- };
640
- var ButtonUtil = {
641
- paddingMapping,
642
- iconPaddingMapping
643
- };
644
- var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
645
- children,
646
- color = "primary",
647
- size = "medium",
648
- startIcon,
649
- endIcon,
650
- onClick,
651
- className,
652
- ...restProps
653
- }, ref) {
654
- const colorClasses = {
655
- primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
656
- secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
657
- tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
658
- positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
659
- warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
660
- negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
661
- neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
662
- }[color];
663
- const iconColorClasses = {
664
- primary: "not-group-disabled:text-button-solid-primary-icon",
665
- secondary: "not-group-disabled:text-button-solid-secondary-icon",
666
- tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
667
- positive: "not-group-disabled:text-button-solid-positive-icon",
668
- warning: "not-group-disabled:text-button-solid-warning-icon",
669
- negative: "not-group-disabled:text-button-solid-negative-icon",
670
- neutral: "not-group-disabled:text-button-solid-neutral-icon"
671
- }[color];
672
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
673
- "button",
674
- {
675
- ref,
676
- onClick,
677
- className: (0, import_clsx.default)(
678
- "group font-semibold",
679
- colorClasses,
680
- "not-disabled:hover:brightness-90",
681
- "disabled:text-disabled disabled:bg-disabled-background",
682
- ButtonUtil.paddingMapping[size],
683
- className
684
- ),
685
- ...restProps,
686
- children: [
687
- startIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
688
- "span",
689
- {
690
- className: (0, import_clsx.default)(
691
- iconColorClasses,
692
- "group-disabled:text-disabled-icon"
693
- ),
694
- children: startIcon
695
- }
696
- ),
697
- children,
698
- endIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
699
- "span",
700
- {
701
- className: (0, import_clsx.default)(
702
- iconColorClasses,
703
- "group-disabled:text-disabled-icon"
704
- ),
705
- children: endIcon
706
- }
707
- )
708
- ]
709
- }
710
- );
711
- });
712
- var TextButton = ({
713
- children,
714
- color = "neutral",
715
- size = "medium",
716
- startIcon,
717
- endIcon,
718
- onClick,
719
- coloredHoverBackground = true,
720
- className,
721
- ...restProps
722
- }) => {
723
- const colorClasses = {
724
- primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text not-disabled:focus-visible:outline-button-text-primary-text",
725
- negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text not-disabled:focus-visible:outline-button-text-negative-text",
726
- neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text not-disabled:focus-visible:outline-button-text-neutral-text"
727
- }[color];
728
- const backgroundColor = {
729
- primary: "not-disabled:hover:bg-button-text-primary-text/20 not-disabled:focus-visible:bg-button-text-primary-text/20",
730
- negative: "not-disabled:hover:bg-button-text-negative-text/20 not-disabled:focus-visible:bg-button-text-negative-text/20",
731
- neutral: "not-disabled:hover:bg-button-text-neutral-text/20 not-disabled:focus-visible:bg-button-text-neutral-text/20"
732
- }[color];
733
- const iconColorClasses = {
734
- primary: "not-group-disabled:text-button-text-primary-icon",
735
- negative: "not-group-disabled:text-button-text-negative-icon",
736
- neutral: "not-group-disabled:text-button-text-neutral-icon"
737
- }[color];
738
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
739
- "button",
740
- {
741
- onClick,
742
- className: (0, import_clsx.default)(
743
- "group font-semibold",
744
- "disabled:text-disabled",
745
- colorClasses,
746
- {
747
- [backgroundColor]: coloredHoverBackground,
748
- "not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
749
- },
750
- ButtonUtil.paddingMapping[size],
751
- className
752
- ),
753
- ...restProps,
754
- children: [
755
- startIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
756
- "span",
757
- {
758
- className: (0, import_clsx.default)(
759
- iconColorClasses,
760
- "group-disabled:text-disabled-icon"
761
- ),
762
- children: startIcon
763
- }
764
- ),
765
- children,
766
- endIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
767
- "span",
768
- {
769
- className: (0, import_clsx.default)(
770
- iconColorClasses,
771
- "group-disabled:text-disabled-icon"
772
- ),
773
- children: endIcon
774
- }
775
- )
776
- ]
777
- }
778
- );
779
- };
780
- var IconButton = (0, import_react3.forwardRef)(function IconButton2({
781
- children,
782
- color = "primary",
783
- size = "medium",
784
- className,
785
- ...restProps
786
- }, ref) {
787
- const colorClasses = {
788
- primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
789
- secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
790
- tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
791
- positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
792
- warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
793
- negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
794
- neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
795
- transparent: "not-disabled:bg-transparent"
796
- }[color];
797
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
798
- "button",
799
- {
800
- ref,
801
- className: (0, import_clsx.default)(
802
- colorClasses,
803
- "not-disabled:hover:brightness-90",
804
- "disabled:text-disabled",
805
- {
806
- "disabled:bg-disabled-background": color !== "transparent",
807
- "disabled:opacity-70": color === "transparent",
808
- "not-disabled:hover:bg-button-text-hover-background": color === "transparent"
809
- },
810
- ButtonUtil.iconPaddingMapping[size],
811
- className
812
- ),
813
- ...restProps,
814
- children
815
- }
816
- );
817
- });
818
-
819
- // src/hooks/focus/useFocusTrap.ts
820
- var import_react5 = require("react");
821
-
822
- // src/hooks/focus/useIsMounted.ts
823
- var import_react4 = require("react");
824
- var isClient = typeof window !== "undefined" && typeof document !== "undefined";
825
- var useIsomorphicEffect = isClient ? import_react4.useLayoutEffect : import_react4.useEffect;
826
- var useIsMounted = () => {
827
- const [isMounted, setIsMounted] = (0, import_react4.useState)(false);
828
- useIsomorphicEffect(() => {
829
- setIsMounted(true);
830
- return () => {
831
- setIsMounted(false);
832
- };
833
- }, []);
834
- return isMounted;
835
- };
836
-
837
- // src/hooks/focus/useFocusTrap.ts
838
- var createFocusGuard = () => {
839
- const div = document.createElement("div");
840
- Object.assign(div.style, {
841
- opacity: "0",
842
- outline: "none",
843
- boxShadow: "none",
844
- position: "fixed",
845
- pointerEvents: "none",
846
- touchAction: "none"
847
- });
848
- div.tabIndex = 0;
849
- div.setAttribute("data-hw-focus-guard", "");
850
- document.body.appendChild(div);
851
- return div;
852
- };
853
- function getContainedFocusableElements(element) {
854
- return element?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
855
- }
856
- var FocusTrapService = class {
857
- constructor() {
858
- // The last entry is always the active one
859
- this.listeners = [];
860
- this.onFocusIn = (event) => {
861
- const active = this.getActive();
862
- if (!active || !active.container.current) return;
863
- const { container } = active;
864
- if (!container.current.contains(event.target)) {
865
- this.focusElement();
866
- }
867
- };
868
- }
869
- getActive() {
870
- if (this.listeners.length === 0) return void 0;
871
- return this.listeners[this.listeners.length - 1];
872
- }
873
- focusElement() {
874
- const active = this.getActive();
875
- if (!active) return;
876
- const { container, initialFocusElement } = active;
877
- const containerElement = container.current;
878
- if (initialFocusElement?.current) {
879
- initialFocusElement.current.focus();
880
- } else {
881
- const elements = getContainedFocusableElements(containerElement);
882
- if (elements && elements.length > 0) {
883
- const first = elements.item(0);
884
- first.focus();
885
- } else {
886
- containerElement.focus();
887
- }
888
- }
889
- }
890
- removeGuards() {
891
- document.querySelectorAll("[data-hw-focus-guard]").forEach((node) => node.remove());
892
- }
893
- addGuards() {
894
- document.body.insertAdjacentElement("afterbegin", createFocusGuard());
895
- document.body.insertAdjacentElement("beforeend", createFocusGuard());
896
- }
897
- activate() {
898
- document.addEventListener("focusin", this.onFocusIn);
899
- this.addGuards();
900
- }
901
- deactivate() {
902
- document.removeEventListener("focusin", this.onFocusIn);
903
- this.removeGuards();
904
- }
905
- register(listener) {
906
- this.listeners.push(listener);
907
- if (this.listeners.length === 1) {
908
- this.activate();
909
- }
910
- const active = listener;
911
- this.listeners.forEach((listener2) => {
912
- const { focus, pause } = listener2;
913
- if (listener2 === active) {
914
- focus();
915
- } else {
916
- pause();
917
- }
918
- });
919
- }
920
- unregister(id) {
921
- const index = this.listeners.findIndex((trap) => trap.id === id);
922
- if (index !== -1) {
923
- const isActive = index === this.listeners.length - 1;
924
- const listener = this.listeners[index];
925
- this.listeners = this.listeners.filter((listener2) => listener2.id !== id);
926
- if (isActive) {
927
- this.deactivate();
928
- listener.focusLast();
929
- const active = this.getActive();
930
- this.listeners.forEach((listener2) => {
931
- const { pause, unpause } = listener2;
932
- if (listener2 === active) {
933
- unpause();
934
- } else {
935
- pause();
936
- }
937
- });
938
- if (this.listeners.length > 0) {
939
- this.activate();
940
- }
941
- }
942
- } else {
943
- console.warn(`Unable to unregister id ${id}: not found`);
944
- }
945
- }
946
- };
947
- var service = new FocusTrapService();
948
- var useFocusTrap = ({
949
- container,
950
- active = true,
951
- initialFocus,
952
- focusFirst = true
953
- }) => {
954
- const lastFocusRef = (0, import_react5.useRef)(null);
955
- const [paused, setPaused] = (0, import_react5.useState)(false);
956
- const isMounted = useIsMounted();
957
- const id = (0, import_react5.useId)();
958
- const focusElement = (0, import_react5.useCallback)(() => {
959
- const containerElement = container.current;
960
- if (initialFocus?.current) {
961
- initialFocus.current.focus();
962
- } else {
963
- const elements = getContainedFocusableElements(containerElement);
964
- if (elements && elements.length > 0) {
965
- const first = elements.item(0);
966
- first.focus();
967
- } else {
968
- containerElement.focus();
969
- }
970
- }
971
- }, [container, initialFocus]);
972
- (0, import_react5.useEffect)(() => {
973
- if (active && isMounted) {
974
- let pause = function() {
975
- setPaused(true);
976
- }, unpause = function() {
977
- setPaused(false);
978
- if (!container.current.contains(document.activeElement)) {
979
- focusElement();
980
- }
981
- }, focus = function() {
982
- focusElement();
983
- setPaused(false);
984
- }, focusLast = function() {
985
- lastFocusRef.current?.focus();
986
- };
987
- if (!lastFocusRef.current) {
988
- lastFocusRef.current = document.activeElement;
989
- }
990
- service.register({ id, pause, focus, focusLast, unpause, container, initialFocusElement: initialFocus });
991
- return () => {
992
- service.unregister(id);
993
- lastFocusRef.current = void 0;
994
- };
995
- }
996
- }, [active, container, focusElement, id, initialFocus, isMounted]);
997
- (0, import_react5.useEffect)(() => {
998
- if (active && !paused && isMounted) {
999
- let onKeyDown = function(event) {
1000
- const key = event.key;
1001
- const elements = getContainedFocusableElements(containerElement);
1002
- const active2 = document.activeElement;
1003
- const index = [...elements].findIndex((value) => value === active2);
1004
- if (index === -1 || event.altKey || event.ctrlKey || event.metaKey) {
1005
- return;
1006
- }
1007
- if (key === "Tab") {
1008
- const next = event.shiftKey ? -1 : 1;
1009
- const nextIndex = (index + next + elements.length) % elements.length;
1010
- const nextElement = elements[nextIndex];
1011
- nextElement.focus();
1012
- event.preventDefault();
1013
- }
1014
- };
1015
- const containerElement = container.current;
1016
- containerElement.addEventListener("keydown", onKeyDown);
1017
- return () => {
1018
- containerElement.removeEventListener("keydown", onKeyDown);
1019
- };
1020
- }
1021
- }, [active, paused, isMounted, container, initialFocus, focusFirst, focusElement]);
1022
- };
1023
-
1024
- // src/hooks/useLogOnce.ts
1025
- var import_react6 = require("react");
1026
- var defaultOptions = {
1027
- type: "warning"
1028
- };
1029
- var useLogOnce = (message, condition, options) => {
1030
- const [hasLogged, setHasLogged] = (0, import_react6.useState)(false);
1031
- const { type } = { ...defaultOptions, ...options };
1032
- (0, import_react6.useEffect)(() => {
1033
- if (!hasLogged && condition) {
1034
- switch (type) {
1035
- case "info":
1036
- console.info(message);
1037
- break;
1038
- case "error":
1039
- console.error(message);
1040
- break;
1041
- case "warning":
1042
- console.warn(message);
1043
- break;
1044
- }
1045
- setHasLogged(true);
1046
- }
1047
- }, [condition]);
1048
- };
1049
-
1050
- // src/components/dialog/Dialog.tsx
1051
- var import_react_dom = require("react-dom");
1052
- var import_jsx_runtime3 = require("react/jsx-runtime");
1053
- var Dialog = ({
1054
- children,
1055
- isOpen,
1056
- titleElement,
1057
- description,
1058
- isModal = true,
1059
- onClose,
1060
- backgroundClassName,
1061
- position = "center",
1062
- isAnimated = true,
1063
- containerClassName,
1064
- ...props
1065
- }) => {
1066
- const translation = useHightideTranslation();
1067
- const [visible, setVisible] = (0, import_react8.useState)(isOpen);
1068
- const generatedId = (0, import_react7.useId)();
1069
- const id = props.id ?? generatedId;
1070
- const ref = (0, import_react8.useRef)(null);
1071
- (0, import_react8.useEffect)(() => {
1072
- if (isOpen) {
1073
- setVisible(true);
1074
- } else {
1075
- if (!isAnimated) {
1076
- setVisible(false);
1077
- }
1078
- }
1079
- }, [isAnimated, isOpen]);
1080
- const onCloseWrapper = () => {
1081
- if (!isModal) return;
1082
- onClose?.();
1083
- };
1084
- useLogOnce("Dialog: onClose should be defined for modal dialogs", isModal && !onClose);
1085
- useFocusTrap({
1086
- container: ref,
1087
- active: visible,
1088
- focusFirst: true
1089
- });
1090
- const positionMap = {
1091
- top: "fixed top-8 left-1/2 -translate-x-1/2",
1092
- center: "fixed left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
1093
- none: ""
1094
- };
1095
- const positionStyle = positionMap[position];
1096
- if (!visible) return;
1097
- return (0, import_react_dom.createPortal)(
1098
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { id: `dialog-container-${id}`, className: (0, import_clsx2.default)("fixed inset-0 h-screen w-screen", containerClassName), children: [
1099
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1100
- "div",
1101
- {
1102
- id: `dialog-background-${id}`,
1103
- hidden: !visible,
1104
- className: (0, import_clsx2.default)(
1105
- "fixed inset-0 h-screen w-screen bg-overlay-shadow",
1106
- {
1107
- "motion-safe:animate-fade-in": isOpen,
1108
- "motion-safe:animate-fade-out": !isOpen
1109
- },
1110
- backgroundClassName
1111
- ),
1112
- onAnimationEnd: () => {
1113
- if (!isOpen) {
1114
- setVisible(false);
1115
- }
1116
- },
1117
- onClick: onCloseWrapper,
1118
- "aria-hidden": true
1119
- }
1120
- ),
1121
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1122
- "div",
1123
- {
1124
- ...props,
1125
- id: `dialog-${id}`,
1126
- ref,
1127
- hidden: !visible,
1128
- onKeyDown: (event) => {
1129
- if (event.key === "Escape") {
1130
- onCloseWrapper();
1131
- }
1132
- },
1133
- onAnimationEnd: () => {
1134
- if (!isOpen) {
1135
- setVisible(false);
1136
- }
1137
- },
1138
- className: (0, import_clsx2.default)(
1139
- "flex-col-2 p-4 bg-overlay-background text-overlay-text rounded-xl shadow-hw-bottom max-w-[calc(100vw_-_2rem)] max-h-[calc(100vh_-_2rem)]",
1140
- {
1141
- "motion-safe:animate-pop-in": isOpen,
1142
- "motion-safe:animate-pop-out": !isOpen
1143
- },
1144
- positionStyle,
1145
- props.className
1146
- ),
1147
- children: [
1148
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "typography-title-lg mr-8", children: titleElement }),
1149
- description && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "text-description", children: description }),
1150
- isModal && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1151
- "div",
1152
- {
1153
- className: "absolute top-0 right-0",
1154
- style: {
1155
- paddingTop: "inherit",
1156
- paddingRight: "inherit"
1157
- },
1158
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1159
- IconButton,
1160
- {
1161
- color: "neutral",
1162
- size: "tiny",
1163
- "aria-label": translation("close"),
1164
- onClick: onCloseWrapper,
1165
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.X, {})
1166
- }
1167
- )
1168
- }
1169
- ),
1170
- children
1171
- ]
1172
- }
1173
- )
1174
- ] }),
1175
- document.body
1176
- );
1177
- };
1178
-
1179
- // src/components/user-action/select/Select.tsx
1180
- var import_react12 = require("react");
1181
- var import_clsx5 = __toESM(require("clsx"), 1);
1182
-
1183
- // src/components/layout/Expandable.tsx
1184
- var import_react10 = require("react");
1185
- var import_lucide_react2 = require("lucide-react");
1186
- var import_clsx3 = __toESM(require("clsx"), 1);
1187
-
1188
- // src/hooks/useOverwritableState.ts
1189
- var import_react9 = require("react");
1190
- var useOverwritableState = (initialValue, onChange) => {
1191
- const [state, setState] = (0, import_react9.useState)(initialValue);
1192
- (0, import_react9.useEffect)(() => {
1193
- setState(initialValue);
1194
- }, [initialValue]);
1195
- const onChangeWrapper = (action) => {
1196
- const resolved = resolveSetState(action, state);
1197
- setState(resolved);
1198
- onChange?.(state);
1199
- };
1200
- return [state, onChangeWrapper];
1201
- };
1202
-
1203
- // src/components/layout/Expandable.tsx
1204
- var import_jsx_runtime4 = require("react/jsx-runtime");
1205
- var ExpansionIcon = ({ isExpanded, className }) => {
1206
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1207
- import_lucide_react2.ChevronDown,
1208
- {
1209
- "aria-hidden": true,
1210
- className: (0, import_clsx3.default)(
1211
- "min-w-6 w-6 min-h-6 h-6 transition-transform motion-safe:duration-200 motion-reduce:duration-0 ease-in-out",
1212
- { "rotate-180": isExpanded },
1213
- className
1214
- )
1215
- }
1216
- );
1217
- };
1218
- var Expandable = (0, import_react10.forwardRef)(function Expandable2({
1219
- children,
1220
- id: providedId,
1221
- label,
1222
- icon,
1223
- isExpanded = false,
1224
- onChange,
1225
- clickOnlyOnHeader = true,
1226
- disabled = false,
1227
- className,
1228
- headerClassName,
1229
- contentClassName,
1230
- contentExpandedClassName
1231
- }, ref) {
1232
- const defaultIcon = (0, import_react10.useCallback)((expanded) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ExpansionIcon, { isExpanded: expanded }), []);
1233
- icon ??= defaultIcon;
1234
- const generatedId = (0, import_react10.useId)();
1235
- const id = providedId ?? generatedId;
1236
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1237
- "div",
1238
- {
1239
- ref,
1240
- onClick: () => !clickOnlyOnHeader && !disabled && onChange?.(!isExpanded),
1241
- className: (0, import_clsx3.default)(
1242
- "flex-col-0 bg-surface text-on-surface group rounded-lg shadow-sm",
1243
- { "cursor-pointer": !clickOnlyOnHeader && !disabled },
1244
- className
1245
- ),
1246
- children: [
1247
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1248
- "button",
1249
- {
1250
- onClick: () => clickOnlyOnHeader && !disabled && onChange?.(!isExpanded),
1251
- className: (0, import_clsx3.default)(
1252
- "flex-row-2 py-2 px-4 rounded-lg justify-between items-center bg-surface text-on-surface select-none",
1253
- {
1254
- "group-hover:brightness-97": !isExpanded,
1255
- "hover:brightness-97": isExpanded && !disabled,
1256
- "cursor-pointer": clickOnlyOnHeader && !disabled
1257
- },
1258
- headerClassName
1259
- ),
1260
- "aria-expanded": isExpanded,
1261
- "aria-controls": `${id}-content`,
1262
- "aria-disabled": disabled ?? void 0,
1263
- children: [
1264
- label,
1265
- icon(isExpanded)
1266
- ]
1267
- }
1268
- ),
1269
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1270
- "div",
1271
- {
1272
- id: `${id}-content`,
1273
- className: (0, import_clsx3.default)(
1274
- "flex-col-2 px-4 transition-all duration-300 ease-in-out",
1275
- {
1276
- [(0, import_clsx3.default)("max-h-96 opacity-100 pb-2 overflow-y-auto", contentExpandedClassName)]: isExpanded,
1277
- "max-h-0 opacity-0 overflow-hidden": !isExpanded
1278
- },
1279
- contentClassName
1280
- ),
1281
- role: "region",
1282
- children
1283
- }
1284
- )
1285
- ]
1286
- }
1287
- );
1288
- });
1289
- var ExpandableUncontrolled = (0, import_react10.forwardRef)(function ExpandableUncontrolled2({
1290
- isExpanded,
1291
- onChange,
1292
- ...props
1293
- }, ref) {
1294
- const [usedIsExpanded, setUsedIsExpanded] = useOverwritableState(isExpanded, onChange);
1295
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1296
- Expandable,
1297
- {
1298
- ...props,
1299
- ref,
1300
- isExpanded: usedIsExpanded,
1301
- onChange: setUsedIsExpanded
1302
- }
1303
- );
1304
- });
1305
-
1306
- // src/utils/match.ts
1307
- var match = (key, values) => {
1308
- return values[key];
1309
- };
1310
-
1311
- // src/components/user-action/select/Select.tsx
1312
- var import_lucide_react3 = require("lucide-react");
1313
-
1314
- // src/components/layout/Chip.tsx
1315
- var import_clsx4 = __toESM(require("clsx"), 1);
1316
- var import_jsx_runtime5 = require("react/jsx-runtime");
1317
- var Chip = ({
1318
- children,
1319
- trailingIcon,
1320
- color = "default",
1321
- size = "md",
1322
- icon = false,
1323
- variant = "normal",
1324
- className = "",
1325
- ...restProps
1326
- }) => {
1327
- const colorMapping = {
1328
- default: "text-tag-default-text bg-tag-default-background",
1329
- dark: "text-tag-dark-text bg-tag-dark-background",
1330
- red: "text-tag-red-text bg-tag-red-background",
1331
- yellow: "text-tag-yellow-text bg-tag-yellow-background",
1332
- green: "text-tag-green-text bg-tag-green-background",
1333
- blue: "text-tag-blue-text bg-tag-blue-background",
1334
- pink: "text-tag-pink-text bg-tag-pink-background",
1335
- orange: "text-tag-orange-text bg-tag-orange-background"
1336
- }[color];
1337
- const colorMappingIcon = {
1338
- default: "text-tag-default-icon",
1339
- dark: "text-tag-dark-icon",
1340
- red: "text-tag-red-icon",
1341
- yellow: "text-tag-yellow-icon",
1342
- green: "text-tag-green-icon",
1343
- blue: "text-tag-blue-icon",
1344
- pink: "text-tag-pink-icon",
1345
- orange: "text-tag-orange-icon"
1346
- }[color];
1347
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1348
- "div",
1349
- {
1350
- ...restProps,
1351
- className: (0, import_clsx4.default)(
1352
- `flex-row-0 w-fit font-semibold`,
1353
- colorMapping,
1354
- !icon ? {
1355
- "px-1 py-0.5": size === "sm",
1356
- "px-2 py-1": size === "md",
1357
- "px-4 py-2": size === "lg"
1358
- } : {
1359
- "p-0.5": size === "sm",
1360
- "p-1": size === "md",
1361
- "p-2": size === "lg"
1362
- },
1363
- {
1364
- "rounded-md": variant === "normal",
1365
- "rounded-full": variant === "fullyRounded"
1366
- },
1367
- className
1368
- ),
1369
- children: [
1370
- children,
1371
- trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: colorMappingIcon, children: trailingIcon })
1372
- ]
1373
- }
1374
- );
1375
- };
1376
-
1377
- // src/hooks/useFloatingElement.ts
1378
- var import_react11 = require("react");
1379
-
1380
- // src/utils/math.ts
1381
- var clamp = (value, range = [0, 1]) => {
1382
- const [min, max] = range;
1383
- return Math.min(Math.max(value, min), max);
1384
- };
1385
-
1386
- // src/hooks/useFloatingElement.ts
1387
- function calculatePosition({
1388
- windowRect,
1389
- containerRect,
1390
- anchorRect,
1391
- options
1392
- }) {
1393
- const { verticalAlignment, horizontalAlignment, gap, screenPadding } = options;
1394
- const windowWidth = windowRect.width;
1395
- const windowHeight = windowRect.height;
1396
- const maxWidth = windowWidth - 2 * screenPadding;
1397
- const maxHeight = windowHeight - 2 * screenPadding;
1398
- const width = Math.min(containerRect.width, maxWidth);
1399
- const height = Math.min(containerRect.height, maxHeight);
1400
- const leftSuggestion = {
1401
- beforeStart: anchorRect.left - width - gap,
1402
- afterStart: anchorRect.left,
1403
- center: anchorRect.left + anchorRect.width / 2 - width / 2,
1404
- beforeEnd: anchorRect.right - width,
1405
- afterEnd: anchorRect.right + gap
1406
- }[horizontalAlignment];
1407
- const topSuggestion = {
1408
- beforeStart: anchorRect.top - height - gap,
1409
- afterStart: anchorRect.top,
1410
- center: anchorRect.top + anchorRect.height / 2 - height / 2,
1411
- beforeEnd: anchorRect.bottom - height,
1412
- afterEnd: anchorRect.bottom + gap
1413
- }[verticalAlignment];
1414
- const left = clamp(leftSuggestion, [
1415
- screenPadding,
1416
- windowWidth - screenPadding - width
1417
- ]);
1418
- const top = clamp(topSuggestion, [
1419
- screenPadding,
1420
- windowHeight - screenPadding - height
1421
- ]);
1422
- return {
1423
- left,
1424
- top,
1425
- maxWidth,
1426
- maxHeight
1427
- };
1428
- }
1429
- function useFloatingElement({
1430
- active = true,
1431
- windowRef,
1432
- anchorRef,
1433
- containerRef,
1434
- isPolling = false,
1435
- pollingInterval = 100,
1436
- verticalAlignment = "afterEnd",
1437
- horizontalAlignment = "afterStart",
1438
- screenPadding = 16,
1439
- gap = 4
1440
- }) {
1441
- const [style, setStyle] = (0, import_react11.useState)();
1442
- const isMounted = useIsMounted();
1443
- const calculate = (0, import_react11.useCallback)(() => {
1444
- const containerRect = containerRef.current.getBoundingClientRect();
1445
- const windowRect = windowRef?.current.getBoundingClientRect() ?? {
1446
- top: 0,
1447
- bottom: window.innerHeight,
1448
- left: 0,
1449
- right: window.innerWidth,
1450
- width: window.innerWidth,
1451
- height: window.innerHeight
1452
- };
1453
- const anchorElement = anchorRef?.current;
1454
- if (anchorRef && !anchorElement) {
1455
- console.warn("FloatingContainer anchor provided, but its value is undefined");
1456
- }
1457
- const anchorRect = anchorElement?.getBoundingClientRect() ?? windowRect;
1458
- const calculateProps = {
1459
- windowRect,
1460
- anchorRect,
1461
- containerRect,
1462
- options: {
1463
- horizontalAlignment,
1464
- verticalAlignment,
1465
- screenPadding,
1466
- gap
1467
- }
1468
- };
1469
- setStyle(calculatePosition(calculateProps));
1470
- }, [anchorRef, containerRef, gap, horizontalAlignment, screenPadding, verticalAlignment, windowRef]);
1471
- const height = containerRef.current?.getBoundingClientRect().height;
1472
- const width = containerRef.current?.getBoundingClientRect().width;
1473
- (0, import_react11.useEffect)(() => {
1474
- if (active && isMounted) {
1475
- calculate();
1476
- } else {
1477
- setStyle(void 0);
1478
- }
1479
- }, [calculate, active, isMounted, height, width]);
1480
- (0, import_react11.useEffect)(() => {
1481
- window.addEventListener("resize", calculate);
1482
- let timeout;
1483
- if (isPolling) {
1484
- timeout = setInterval(calculate, pollingInterval);
1485
- }
1486
- return () => {
1487
- window.removeEventListener("resize", calculate);
1488
- if (timeout) {
1489
- clearInterval(timeout);
1490
- }
1491
- };
1492
- }, [calculate, isPolling, pollingInterval]);
1493
- return style;
1494
- }
1495
-
1496
- // src/components/user-action/select/Select.tsx
1497
- var import_react_dom2 = require("react-dom");
1498
- var import_jsx_runtime6 = require("react/jsx-runtime");
1499
- var defaultToggleOpenOptions = {
1500
- highlightStartPositionBehavior: "first"
1501
- };
1502
- var SelectContext = (0, import_react12.createContext)(null);
1503
- function useSelectContext() {
1504
- const ctx = (0, import_react12.useContext)(SelectContext);
1505
- if (!ctx) {
1506
- throw new Error("SelectContext must be used within a ListBoxPrimitive");
1507
- }
1508
- return ctx;
1509
- }
1510
- var SelectRoot = ({
1511
- children,
1512
- id,
1513
- value,
1514
- onValueChanged,
1515
- values,
1516
- onValuesChanged,
1517
- isOpen = false,
1518
- disabled = false,
1519
- invalid = false,
1520
- isMultiSelect = false,
1521
- iconAppearance = "left"
1522
- }) => {
1523
- const triggerRef = (0, import_react12.useRef)(null);
1524
- const generatedId = (0, import_react12.useId)();
1525
- const usedId = id ?? generatedId;
1526
- const [internalState, setInternalState] = (0, import_react12.useState)({
1527
- isOpen,
1528
- options: []
1529
- });
1530
- const selectedValues = (0, import_react12.useMemo)(
1531
- () => isMultiSelect ? values ?? [] : [value].filter(Boolean),
1532
- [isMultiSelect, value, values]
1533
- );
1534
- const selectedOptions = (0, import_react12.useMemo)(
1535
- () => selectedValues.map((value2) => internalState.options.find((option) => value2 === option.value)).filter(Boolean),
1536
- [selectedValues, internalState.options]
1537
- );
1538
- const state = {
1539
- ...internalState,
1540
- id: usedId,
1541
- disabled,
1542
- invalid,
1543
- value: selectedValues,
1544
- selectedOptions
1545
- };
1546
- const config = {
1547
- isMultiSelect,
1548
- iconAppearance
1549
- };
1550
- const registerItem = (0, import_react12.useCallback)((item) => {
1551
- setInternalState((prev) => {
1552
- const updatedOptions = [...prev.options, item];
1553
- updatedOptions.sort((a, b) => {
1554
- const aEl = a.ref.current;
1555
- const bEl = b.ref.current;
1556
- if (!aEl || !bEl) return 0;
1557
- return aEl.compareDocumentPosition(bEl) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1558
- });
1559
- return {
1560
- ...prev,
1561
- options: updatedOptions
1562
- };
1563
- });
1564
- }, []);
1565
- const unregisterItem = (0, import_react12.useCallback)((value2) => {
1566
- setInternalState((prev) => {
1567
- const updatedOptions = prev.options.filter((i) => i.value !== value2);
1568
- return {
1569
- ...prev,
1570
- options: updatedOptions
1571
- };
1572
- });
1573
- }, []);
1574
- const toggleSelection = (value2, isSelected) => {
1575
- if (disabled) {
1576
- return;
1577
- }
1578
- const option = state.options.find((i) => i.value === value2);
1579
- if (!option) {
1580
- console.error(`SelectOption with value: ${value2} not found`);
1581
- return;
1582
- }
1583
- let newValue;
1584
- if (isMultiSelect) {
1585
- const isSelectedBefore = state.value.includes(value2);
1586
- const isSelectedAfter = isSelected ?? !isSelectedBefore;
1587
- if (!isSelectedAfter) {
1588
- newValue = state.value.filter((v) => v !== value2);
1589
- } else {
1590
- newValue = [...state.value, value2];
1591
- }
1592
- } else {
1593
- newValue = [value2];
1594
- }
1595
- if (!isMultiSelect) {
1596
- onValueChanged?.(newValue[0]);
1597
- } else {
1598
- onValuesChanged?.(newValue);
1599
- }
1600
- setInternalState((prevState) => ({
1601
- ...prevState,
1602
- highlightedValue: value2
1603
- }));
1604
- };
1605
- const highlightItem = (value2) => {
1606
- if (disabled) {
1607
- return;
1608
- }
1609
- setInternalState((prevState) => ({
1610
- ...prevState,
1611
- highlightedValue: value2
1612
- }));
1613
- };
1614
- const registerTrigger = (0, import_react12.useCallback)((ref) => {
1615
- triggerRef.current = ref.current;
1616
- }, []);
1617
- const unregisterTrigger = (0, import_react12.useCallback)(() => {
1618
- triggerRef.current = null;
1619
- }, []);
1620
- const toggleOpen = (isOpen2, toggleOpenOptions) => {
1621
- const { highlightStartPositionBehavior } = { ...defaultToggleOpenOptions, ...toggleOpenOptions };
1622
- let firstSelectedValue;
1623
- let firstEnabledValue;
1624
- for (let i = 0; i < state.options.length; i++) {
1625
- const currentOption = state.options[highlightStartPositionBehavior === "first" ? i : state.options.length - i - 1];
1626
- if (!currentOption.disabled) {
1627
- if (!firstEnabledValue) {
1628
- firstEnabledValue = currentOption.value;
1629
- }
1630
- if (selectedValues.includes(currentOption.value)) {
1631
- firstSelectedValue = currentOption.value;
1632
- break;
1633
- }
1634
- }
1635
- }
1636
- setInternalState((prevState) => ({
1637
- ...prevState,
1638
- isOpen: isOpen2 ?? !prevState.isOpen,
1639
- highlightedValue: firstSelectedValue ?? firstEnabledValue
1640
- }));
1641
- };
1642
- const moveHighlightedIndex = (delta) => {
1643
- let highlightedIndex = state.options.findIndex((value2) => value2.value === internalState.highlightedValue);
1644
- if (highlightedIndex === -1) {
1645
- highlightedIndex = 0;
1646
- }
1647
- const optionLength = state.options.length;
1648
- const startIndex = (highlightedIndex + delta % optionLength + optionLength) % optionLength;
1649
- const isForward = delta >= 0;
1650
- let highlightedValue = state.options[startIndex].value;
1651
- for (let i = 0; i < state.options.length; i++) {
1652
- const index = (startIndex + (isForward ? i : -i) + optionLength) % optionLength;
1653
- if (!state.options[index].disabled) {
1654
- highlightedValue = state.options[index].value;
1655
- break;
1656
- }
1657
- }
1658
- setInternalState((prevState) => ({
1659
- ...prevState,
1660
- highlightedValue
1661
- }));
1662
- };
1663
- (0, import_react12.useEffect)(() => {
1664
- if (!internalState.highlightedValue) return;
1665
- const highlighted = internalState.options.find((value2) => value2.value === internalState.highlightedValue);
1666
- if (highlighted) {
1667
- highlighted.ref.current?.scrollIntoView({ behavior: "instant", block: "nearest" });
1668
- } else {
1669
- console.error(`SelectRoot: Could not find highlighted value (${internalState.highlightedValue})`);
1670
- }
1671
- }, [internalState.highlightedValue]);
1672
- const contextValue = {
1673
- state,
1674
- config,
1675
- item: {
1676
- register: registerItem,
1677
- unregister: unregisterItem,
1678
- toggleSelection,
1679
- highlightItem,
1680
- moveHighlightedIndex
1681
- },
1682
- trigger: {
1683
- ref: triggerRef,
1684
- register: registerTrigger,
1685
- unregister: unregisterTrigger,
1686
- toggleOpen
1687
- }
1688
- };
1689
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectContext.Provider, { value: contextValue, children });
1690
- };
1691
- var SelectOption = (0, import_react12.forwardRef)(
1692
- function SelectOption2({ children, value, disabled = false, iconAppearance, className, ...restProps }, ref) {
1693
- const { state, config, item, trigger } = useSelectContext();
1694
- const { register, unregister, toggleSelection, highlightItem } = item;
1695
- const itemRef = (0, import_react12.useRef)(null);
1696
- iconAppearance ??= config.iconAppearance;
1697
- const label = children ?? value;
1698
- (0, import_react12.useEffect)(() => {
1699
- register({
1700
- value,
1701
- label,
1702
- disabled,
1703
- ref: itemRef
1704
- });
1705
- return () => unregister(value);
1706
- }, [value, disabled, register, unregister, children, label]);
1707
- const isHighlighted = state.highlightedValue === value;
1708
- const isSelected = state.value.includes(value);
1709
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1710
- "li",
1711
- {
1712
- ...restProps,
1713
- ref: (node) => {
1714
- itemRef.current = node;
1715
- if (typeof ref === "function") ref(node);
1716
- else if (ref) ref.current = node;
1717
- },
1718
- id: value,
1719
- role: "option",
1720
- "aria-disabled": disabled,
1721
- "aria-selected": isSelected,
1722
- "data-highlighted": isHighlighted ? "" : void 0,
1723
- "data-selected": isSelected ? "" : void 0,
1724
- "data-disabled": disabled ? "" : void 0,
1725
- className: (0, import_clsx5.default)(
1726
- "flex-row-1 items-center px-2 py-1 rounded-md",
1727
- "data-highlighted:bg-primary/20",
1728
- "data-disabled:text-disabled data-disabled:cursor-not-allowed",
1729
- "not-data-disabled:cursor-pointer",
1730
- className
1731
- ),
1732
- onClick: (event) => {
1733
- if (!disabled) {
1734
- toggleSelection(value);
1735
- if (!config.isMultiSelect) {
1736
- trigger.toggleOpen(false);
1737
- }
1738
- restProps.onClick?.(event);
1739
- }
1740
- },
1741
- onMouseEnter: (event) => {
1742
- if (!disabled) {
1743
- highlightItem(value);
1744
- restProps.onMouseEnter?.(event);
1745
- }
1746
- },
1747
- children: [
1748
- iconAppearance === "left" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1749
- import_lucide_react3.CheckIcon,
1750
- {
1751
- className: (0, import_clsx5.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
1752
- "aria-hidden": true
1753
- }
1754
- ),
1755
- label,
1756
- iconAppearance === "right" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1757
- import_lucide_react3.CheckIcon,
1758
- {
1759
- className: (0, import_clsx5.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
1760
- "aria-hidden": true
1761
- }
1762
- )
1763
- ]
1764
- }
1765
- );
1766
- }
1767
- );
1768
- var SelectButton = (0, import_react12.forwardRef)(function SelectButton2({ placeholder, selectedDisplay, ...props }, ref) {
1769
- const translation = useHightideTranslation();
1770
- const { state, trigger } = useSelectContext();
1771
- const { register, unregister, toggleOpen } = trigger;
1772
- const innerRef = (0, import_react12.useRef)(null);
1773
- (0, import_react12.useImperativeHandle)(ref, () => innerRef.current);
1774
- (0, import_react12.useEffect)(() => {
1775
- register(innerRef);
1776
- return () => unregister();
1777
- }, [register, unregister]);
1778
- const disabled = !!props?.disabled || !!state.disabled;
1779
- const invalid = state.invalid;
1780
- const hasValue = state.value.length > 0;
1781
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1782
- "button",
1783
- {
1784
- ...props,
1785
- ref: innerRef,
1786
- id: state.id,
1787
- disabled,
1788
- onClick: (event) => {
1789
- props.onClick?.(event);
1790
- toggleOpen(!state.isOpen);
1791
- },
1792
- onKeyDown: (event) => {
1793
- props.onKeyDown?.(event);
1794
- switch (event.key) {
1795
- case "ArrowDown":
1796
- toggleOpen(true, { highlightStartPositionBehavior: "first" });
1797
- event.preventDefault();
1798
- event.stopPropagation();
1799
- break;
1800
- case "ArrowUp":
1801
- toggleOpen(true, { highlightStartPositionBehavior: "last" });
1802
- event.preventDefault();
1803
- event.stopPropagation();
1804
- break;
1805
- }
1806
- },
1807
- className: (0, import_clsx5.default)(
1808
- "flex-row-2 items-center justify-between rounded-md px-3 py-2",
1809
- {
1810
- "bg-input-background text-placeholder": !hasValue && !disabled && !invalid,
1811
- "bg-input-background text-input-text": hasValue && !disabled && !invalid,
1812
- "bg-negative/20": !disabled && invalid,
1813
- "text-placeholder": !hasValue && !disabled,
1814
- "text-negative": hasValue && !disabled && invalid,
1815
- "bg-disabled-background text-disabled": disabled
1816
- },
1817
- props.className
1818
- ),
1819
- "data-placeholder": !hasValue ? "" : void 0,
1820
- "data-disabled": disabled ? "" : void 0,
1821
- "data-invalid": invalid ? "" : void 0,
1822
- "aria-invalid": invalid,
1823
- "aria-disabled": disabled,
1824
- "aria-haspopup": "listbox",
1825
- "aria-expanded": state.isOpen,
1826
- "aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
1827
- children: [
1828
- hasValue ? selectedDisplay?.(state.value) ?? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: (0, import_clsx5.default)("flex flex-wrap gap-x-1 gap-y-2"), children: state.selectedOptions.map(({ value, label }, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "flex-row-0", children: [
1829
- label,
1830
- index < state.value.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: "," })
1831
- ] }, value)) }) : placeholder ?? translation("clickToSelect"),
1832
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1833
- ExpansionIcon,
1834
- {
1835
- isExpanded: state.isOpen,
1836
- className: (0, import_clsx5.default)({
1837
- "text-input-text": !disabled && !invalid,
1838
- "text-negative": !disabled && invalid,
1839
- "text-disabled": disabled
1840
- })
1841
- }
1842
- )
1843
- ]
1844
- }
1845
- );
1846
- });
1847
- var SelectChipDisplay = (0, import_react12.forwardRef)(function SelectChipDisplay2({ ...props }, ref) {
1848
- const { state, trigger, item } = useSelectContext();
1849
- const { register, unregister, toggleOpen } = trigger;
1850
- const innerRef = (0, import_react12.useRef)(null);
1851
- (0, import_react12.useImperativeHandle)(ref, () => innerRef.current);
1852
- (0, import_react12.useEffect)(() => {
1853
- register(innerRef);
1854
- return () => unregister();
1855
- }, [register, unregister]);
1856
- const disabled = !!props?.disabled || !!state.disabled;
1857
- const invalid = state.invalid;
1858
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1859
- "div",
1860
- {
1861
- ...props,
1862
- ref: innerRef,
1863
- className: (0, import_clsx5.default)(
1864
- "flex flex-wrap flex-row gap-2 items-center bg-input-background text-input-text rounded-md px-2.5 py-2.5",
1865
- props.className
1866
- ),
1867
- "data-disabled": disabled ? "" : void 0,
1868
- "data-invalid": invalid ? "" : void 0,
1869
- "aria-invalid": invalid,
1870
- "aria-disabled": disabled,
1871
- children: [
1872
- state.selectedOptions.map(({ value, label }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Chip, { className: "gap-x-2", children: [
1873
- label,
1874
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1875
- TextButton,
1876
- {
1877
- onClick: () => {
1878
- item.toggleSelection(value, false);
1879
- },
1880
- size: "none",
1881
- color: "negative",
1882
- className: "flex-row-0 items-center px-0.5 py-0.5 w-6 h-6 rounded",
1883
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react3.XIcon, { className: "w-5 h-5" })
1884
- }
1885
- )
1886
- ] }, value)),
1887
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1888
- IconButton,
1889
- {
1890
- id: state.id,
1891
- onClick: () => toggleOpen(),
1892
- onKeyDown: (event) => {
1893
- switch (event.key) {
1894
- case "ArrowDown":
1895
- toggleOpen(true, { highlightStartPositionBehavior: "first" });
1896
- break;
1897
- case "ArrowUp":
1898
- toggleOpen(true, { highlightStartPositionBehavior: "last" });
1899
- }
1900
- },
1901
- size: "small",
1902
- color: "neutral",
1903
- "aria-invalid": invalid,
1904
- "aria-disabled": disabled,
1905
- "aria-haspopup": "listbox",
1906
- "aria-expanded": state.isOpen,
1907
- "aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
1908
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react3.Plus, {})
1909
- }
1910
- )
1911
- ]
1912
- }
1913
- );
1914
- });
1915
- var SelectContent = (0, import_react12.forwardRef)(
1916
- function SelectContent2({
1917
- alignment,
1918
- orientation = "vertical",
1919
- containerClassName,
1920
- ...props
1921
- }, ref) {
1922
- const innerRef = (0, import_react12.useRef)(null);
1923
- (0, import_react12.useImperativeHandle)(ref, () => innerRef.current);
1924
- const { trigger, state, config, item } = useSelectContext();
1925
- const position = useFloatingElement({
1926
- active: state.isOpen,
1927
- anchorRef: trigger.ref,
1928
- containerRef: innerRef,
1929
- ...alignment
1930
- });
1931
- useFocusTrap({
1932
- container: innerRef,
1933
- active: state.isOpen && !!position
1934
- });
1935
- return (0, import_react_dom2.createPortal)(
1936
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1937
- "div",
1938
- {
1939
- id: `select-container-${state.id}`,
1940
- className: (0, import_clsx5.default)("fixed inset-0 w-screen h-screen", containerClassName),
1941
- hidden: !state.isOpen,
1942
- children: [
1943
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1944
- "div",
1945
- {
1946
- id: `select-background-${state.id}`,
1947
- onClick: () => trigger.toggleOpen(false),
1948
- className: (0, import_clsx5.default)("fixed inset-0 w-screen h-screen")
1949
- }
1950
- ),
1951
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1952
- "ul",
1953
- {
1954
- ...props,
1955
- id: `${state.id}-listbox`,
1956
- ref: innerRef,
1957
- onKeyDown: (event) => {
1958
- switch (event.key) {
1959
- case "Escape":
1960
- trigger.toggleOpen(false);
1961
- event.preventDefault();
1962
- event.stopPropagation();
1963
- break;
1964
- case match(orientation, {
1965
- vertical: "ArrowDown",
1966
- horizontal: "ArrowUp"
1967
- }):
1968
- item.moveHighlightedIndex(1);
1969
- event.preventDefault();
1970
- break;
1971
- case match(orientation, {
1972
- vertical: "ArrowUp",
1973
- horizontal: "ArrowDown"
1974
- }):
1975
- item.moveHighlightedIndex(-1);
1976
- event.preventDefault();
1977
- break;
1978
- case "Home":
1979
- event.preventDefault();
1980
- break;
1981
- case "End":
1982
- event.preventDefault();
1983
- break;
1984
- case "Enter":
1985
- // Fall through
1986
- case " ":
1987
- if (state.highlightedValue) {
1988
- item.toggleSelection(state.highlightedValue);
1989
- if (!config.isMultiSelect) {
1990
- trigger.toggleOpen(false);
1991
- }
1992
- event.preventDefault();
1993
- }
1994
- break;
1995
- }
1996
- },
1997
- className: (0, import_clsx5.default)("flex-col-0 p-2 bg-menu-background text-menu-text rounded-md shadow-hw-bottom focus-style-within overflow-auto", props.className),
1998
- style: {
1999
- opacity: position ? void 0 : 0,
2000
- position: "fixed",
2001
- ...position
2002
- },
2003
- role: "listbox",
2004
- "aria-multiselectable": config.isMultiSelect,
2005
- "aria-orientation": orientation,
2006
- tabIndex: position ? 0 : void 0,
2007
- children: props.children
2008
- }
2009
- )
2010
- ]
2011
- }
2012
- ),
2013
- document.body
2014
- );
2015
- }
2016
- );
2017
- var Select = (0, import_react12.forwardRef)(function Select2({
2018
- children,
2019
- contentPanelProps,
2020
- buttonProps,
2021
- ...props
2022
- }, ref) {
2023
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(SelectRoot, { ...props, isMultiSelect: false, children: [
2024
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2025
- SelectButton,
2026
- {
2027
- ref,
2028
- ...buttonProps,
2029
- selectedDisplay: (values) => {
2030
- const value = values[0];
2031
- if (!buttonProps?.selectedDisplay) return void 0;
2032
- return buttonProps.selectedDisplay(value);
2033
- }
2034
- }
2035
- ),
2036
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectContent, { ...contentPanelProps, children })
2037
- ] });
2038
- });
2039
- var SelectUncontrolled = (0, import_react12.forwardRef)(function SelectUncontrolled2({
2040
- value: initialValue,
2041
- onValueChanged,
2042
- ...props
2043
- }, ref) {
2044
- const [value, setValue] = useOverwritableState(initialValue, onValueChanged);
2045
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2046
- Select,
2047
- {
2048
- ...props,
2049
- ref,
2050
- value,
2051
- onValueChanged: setValue
2052
- }
2053
- );
2054
- });
2055
- var MultiSelect = (0, import_react12.forwardRef)(function MultiSelect2({
2056
- children,
2057
- contentPanelProps,
2058
- buttonProps,
2059
- ...props
2060
- }, ref) {
2061
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(SelectRoot, { ...props, isMultiSelect: true, children: [
2062
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectButton, { ref, ...buttonProps }),
2063
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectContent, { ...contentPanelProps, children })
2064
- ] });
2065
- });
2066
- var MultiSelectUncontrolled = (0, import_react12.forwardRef)(function MultiSelectUncontrolled2({
2067
- values: initialValues,
2068
- onValuesChanged,
2069
- ...props
2070
- }, ref) {
2071
- const [values, setValues] = useOverwritableState(initialValues, onValuesChanged);
2072
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2073
- MultiSelect,
2074
- {
2075
- ...props,
2076
- ref,
2077
- values,
2078
- onValuesChanged: setValues
2079
- }
2080
- );
2081
- });
2082
- var MultiSelectChipDisplay = (0, import_react12.forwardRef)(function MultiSelectChipDisplay2({
2083
- children,
2084
- contentPanelProps,
2085
- chipDisplayProps,
2086
- ...props
2087
- }, ref) {
2088
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(SelectRoot, { ...props, isMultiSelect: true, children: [
2089
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectChipDisplay, { ref, ...chipDisplayProps }),
2090
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectContent, { ...contentPanelProps, children })
2091
- ] });
2092
- });
2093
- var MultiSelectChipDisplayUncontrolled = (0, import_react12.forwardRef)(function MultiSelectChipDisplayUncontrolled2({
2094
- values: initialValues,
2095
- onValuesChanged,
2096
- ...props
2097
- }, ref) {
2098
- const [values, setValues] = useOverwritableState(initialValues, onValuesChanged);
2099
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2100
- MultiSelectChipDisplay,
2101
- {
2102
- ...props,
2103
- ref,
2104
- values,
2105
- onValuesChanged: setValues
2106
- }
2107
- );
2108
- });
2109
-
2110
- // src/components/dialog/LanguageDialog.tsx
2111
- var import_jsx_runtime7 = require("react/jsx-runtime");
2112
- var LanguageDialog = ({
2113
- onClose,
2114
- titleOverwrite,
2115
- descriptionOverwrite,
2116
- ...props
2117
- }) => {
2118
- const { locale, setLocale } = useLocale();
2119
- const translation = useHightideTranslation();
2120
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2121
- Dialog,
2122
- {
2123
- titleElement: titleOverwrite ?? translation("language"),
2124
- description: descriptionOverwrite ?? translation("chooseLanguage"),
2125
- onClose,
2126
- ...props,
2127
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "w-64", children: [
2128
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2129
- Select,
2130
- {
2131
- value: locale,
2132
- onValueChanged: (language) => setLocale(language),
2133
- contentPanelProps: { containerClassName: "z-200" },
2134
- buttonProps: {
2135
- selectedDisplay: (locale2) => LocalizationUtil.languagesLocalNames[locale2]
2136
- },
2137
- children: LocalizationUtil.locals.map((local) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectOption, { value: local, children: LocalizationUtil.languagesLocalNames[local] }, local))
2138
- }
2139
- ),
2140
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SolidButton, { color: "positive", onClick: onClose, children: translation("done") }) })
2141
- ] })
2142
- }
2143
- );
2144
- };
2145
- // Annotate the CommonJS export names for ESM import in node:
2146
- 0 && (module.exports = {
2147
- LanguageDialog
2148
- });
2149
- //# sourceMappingURL=LanguageDialog.cjs.map