@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,2188 +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/ThemeDialog.tsx
30
- var ThemeDialog_exports = {};
31
- __export(ThemeDialog_exports, {
32
- ThemeDialog: () => ThemeDialog
33
- });
34
- module.exports = __toCommonJS(ThemeDialog_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/dialog/ThemeDialog.tsx
1180
- var import_lucide_react4 = require("lucide-react");
1181
- var import_clsx6 = __toESM(require("clsx"), 1);
1182
-
1183
- // src/theming/useTheme.tsx
1184
- var import_react9 = require("react");
1185
- var import_jsx_runtime4 = require("react/jsx-runtime");
1186
- var themes = ["light", "dark", "system"];
1187
- var ThemeUtil = {
1188
- themes
1189
- };
1190
- var ThemeContext = (0, import_react9.createContext)(null);
1191
- var useTheme = () => {
1192
- const context = (0, import_react9.useContext)(ThemeContext);
1193
- if (!context) {
1194
- throw new Error("useTheme must be used within ThemeContext. Try adding a ThemeProvider around your app.");
1195
- }
1196
- return context;
1197
- };
1198
-
1199
- // src/components/user-action/select/Select.tsx
1200
- var import_react13 = require("react");
1201
- var import_clsx5 = __toESM(require("clsx"), 1);
1202
-
1203
- // src/components/layout/Expandable.tsx
1204
- var import_react11 = require("react");
1205
- var import_lucide_react2 = require("lucide-react");
1206
- var import_clsx3 = __toESM(require("clsx"), 1);
1207
-
1208
- // src/hooks/useOverwritableState.ts
1209
- var import_react10 = require("react");
1210
- var useOverwritableState = (initialValue, onChange) => {
1211
- const [state, setState] = (0, import_react10.useState)(initialValue);
1212
- (0, import_react10.useEffect)(() => {
1213
- setState(initialValue);
1214
- }, [initialValue]);
1215
- const onChangeWrapper = (action) => {
1216
- const resolved = resolveSetState(action, state);
1217
- setState(resolved);
1218
- onChange?.(state);
1219
- };
1220
- return [state, onChangeWrapper];
1221
- };
1222
-
1223
- // src/components/layout/Expandable.tsx
1224
- var import_jsx_runtime5 = require("react/jsx-runtime");
1225
- var ExpansionIcon = ({ isExpanded, className }) => {
1226
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1227
- import_lucide_react2.ChevronDown,
1228
- {
1229
- "aria-hidden": true,
1230
- className: (0, import_clsx3.default)(
1231
- "min-w-6 w-6 min-h-6 h-6 transition-transform motion-safe:duration-200 motion-reduce:duration-0 ease-in-out",
1232
- { "rotate-180": isExpanded },
1233
- className
1234
- )
1235
- }
1236
- );
1237
- };
1238
- var Expandable = (0, import_react11.forwardRef)(function Expandable2({
1239
- children,
1240
- id: providedId,
1241
- label,
1242
- icon,
1243
- isExpanded = false,
1244
- onChange,
1245
- clickOnlyOnHeader = true,
1246
- disabled = false,
1247
- className,
1248
- headerClassName,
1249
- contentClassName,
1250
- contentExpandedClassName
1251
- }, ref) {
1252
- const defaultIcon = (0, import_react11.useCallback)((expanded) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ExpansionIcon, { isExpanded: expanded }), []);
1253
- icon ??= defaultIcon;
1254
- const generatedId = (0, import_react11.useId)();
1255
- const id = providedId ?? generatedId;
1256
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1257
- "div",
1258
- {
1259
- ref,
1260
- onClick: () => !clickOnlyOnHeader && !disabled && onChange?.(!isExpanded),
1261
- className: (0, import_clsx3.default)(
1262
- "flex-col-0 bg-surface text-on-surface group rounded-lg shadow-sm",
1263
- { "cursor-pointer": !clickOnlyOnHeader && !disabled },
1264
- className
1265
- ),
1266
- children: [
1267
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1268
- "button",
1269
- {
1270
- onClick: () => clickOnlyOnHeader && !disabled && onChange?.(!isExpanded),
1271
- className: (0, import_clsx3.default)(
1272
- "flex-row-2 py-2 px-4 rounded-lg justify-between items-center bg-surface text-on-surface select-none",
1273
- {
1274
- "group-hover:brightness-97": !isExpanded,
1275
- "hover:brightness-97": isExpanded && !disabled,
1276
- "cursor-pointer": clickOnlyOnHeader && !disabled
1277
- },
1278
- headerClassName
1279
- ),
1280
- "aria-expanded": isExpanded,
1281
- "aria-controls": `${id}-content`,
1282
- "aria-disabled": disabled ?? void 0,
1283
- children: [
1284
- label,
1285
- icon(isExpanded)
1286
- ]
1287
- }
1288
- ),
1289
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1290
- "div",
1291
- {
1292
- id: `${id}-content`,
1293
- className: (0, import_clsx3.default)(
1294
- "flex-col-2 px-4 transition-all duration-300 ease-in-out",
1295
- {
1296
- [(0, import_clsx3.default)("max-h-96 opacity-100 pb-2 overflow-y-auto", contentExpandedClassName)]: isExpanded,
1297
- "max-h-0 opacity-0 overflow-hidden": !isExpanded
1298
- },
1299
- contentClassName
1300
- ),
1301
- role: "region",
1302
- children
1303
- }
1304
- )
1305
- ]
1306
- }
1307
- );
1308
- });
1309
- var ExpandableUncontrolled = (0, import_react11.forwardRef)(function ExpandableUncontrolled2({
1310
- isExpanded,
1311
- onChange,
1312
- ...props
1313
- }, ref) {
1314
- const [usedIsExpanded, setUsedIsExpanded] = useOverwritableState(isExpanded, onChange);
1315
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1316
- Expandable,
1317
- {
1318
- ...props,
1319
- ref,
1320
- isExpanded: usedIsExpanded,
1321
- onChange: setUsedIsExpanded
1322
- }
1323
- );
1324
- });
1325
-
1326
- // src/utils/match.ts
1327
- var match = (key, values) => {
1328
- return values[key];
1329
- };
1330
-
1331
- // src/components/user-action/select/Select.tsx
1332
- var import_lucide_react3 = require("lucide-react");
1333
-
1334
- // src/components/layout/Chip.tsx
1335
- var import_clsx4 = __toESM(require("clsx"), 1);
1336
- var import_jsx_runtime6 = require("react/jsx-runtime");
1337
- var Chip = ({
1338
- children,
1339
- trailingIcon,
1340
- color = "default",
1341
- size = "md",
1342
- icon = false,
1343
- variant = "normal",
1344
- className = "",
1345
- ...restProps
1346
- }) => {
1347
- const colorMapping = {
1348
- default: "text-tag-default-text bg-tag-default-background",
1349
- dark: "text-tag-dark-text bg-tag-dark-background",
1350
- red: "text-tag-red-text bg-tag-red-background",
1351
- yellow: "text-tag-yellow-text bg-tag-yellow-background",
1352
- green: "text-tag-green-text bg-tag-green-background",
1353
- blue: "text-tag-blue-text bg-tag-blue-background",
1354
- pink: "text-tag-pink-text bg-tag-pink-background",
1355
- orange: "text-tag-orange-text bg-tag-orange-background"
1356
- }[color];
1357
- const colorMappingIcon = {
1358
- default: "text-tag-default-icon",
1359
- dark: "text-tag-dark-icon",
1360
- red: "text-tag-red-icon",
1361
- yellow: "text-tag-yellow-icon",
1362
- green: "text-tag-green-icon",
1363
- blue: "text-tag-blue-icon",
1364
- pink: "text-tag-pink-icon",
1365
- orange: "text-tag-orange-icon"
1366
- }[color];
1367
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1368
- "div",
1369
- {
1370
- ...restProps,
1371
- className: (0, import_clsx4.default)(
1372
- `flex-row-0 w-fit font-semibold`,
1373
- colorMapping,
1374
- !icon ? {
1375
- "px-1 py-0.5": size === "sm",
1376
- "px-2 py-1": size === "md",
1377
- "px-4 py-2": size === "lg"
1378
- } : {
1379
- "p-0.5": size === "sm",
1380
- "p-1": size === "md",
1381
- "p-2": size === "lg"
1382
- },
1383
- {
1384
- "rounded-md": variant === "normal",
1385
- "rounded-full": variant === "fullyRounded"
1386
- },
1387
- className
1388
- ),
1389
- children: [
1390
- children,
1391
- trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: colorMappingIcon, children: trailingIcon })
1392
- ]
1393
- }
1394
- );
1395
- };
1396
-
1397
- // src/hooks/useFloatingElement.ts
1398
- var import_react12 = require("react");
1399
-
1400
- // src/utils/math.ts
1401
- var clamp = (value, range = [0, 1]) => {
1402
- const [min, max] = range;
1403
- return Math.min(Math.max(value, min), max);
1404
- };
1405
-
1406
- // src/hooks/useFloatingElement.ts
1407
- function calculatePosition({
1408
- windowRect,
1409
- containerRect,
1410
- anchorRect,
1411
- options
1412
- }) {
1413
- const { verticalAlignment, horizontalAlignment, gap, screenPadding } = options;
1414
- const windowWidth = windowRect.width;
1415
- const windowHeight = windowRect.height;
1416
- const maxWidth = windowWidth - 2 * screenPadding;
1417
- const maxHeight = windowHeight - 2 * screenPadding;
1418
- const width = Math.min(containerRect.width, maxWidth);
1419
- const height = Math.min(containerRect.height, maxHeight);
1420
- const leftSuggestion = {
1421
- beforeStart: anchorRect.left - width - gap,
1422
- afterStart: anchorRect.left,
1423
- center: anchorRect.left + anchorRect.width / 2 - width / 2,
1424
- beforeEnd: anchorRect.right - width,
1425
- afterEnd: anchorRect.right + gap
1426
- }[horizontalAlignment];
1427
- const topSuggestion = {
1428
- beforeStart: anchorRect.top - height - gap,
1429
- afterStart: anchorRect.top,
1430
- center: anchorRect.top + anchorRect.height / 2 - height / 2,
1431
- beforeEnd: anchorRect.bottom - height,
1432
- afterEnd: anchorRect.bottom + gap
1433
- }[verticalAlignment];
1434
- const left = clamp(leftSuggestion, [
1435
- screenPadding,
1436
- windowWidth - screenPadding - width
1437
- ]);
1438
- const top = clamp(topSuggestion, [
1439
- screenPadding,
1440
- windowHeight - screenPadding - height
1441
- ]);
1442
- return {
1443
- left,
1444
- top,
1445
- maxWidth,
1446
- maxHeight
1447
- };
1448
- }
1449
- function useFloatingElement({
1450
- active = true,
1451
- windowRef,
1452
- anchorRef,
1453
- containerRef,
1454
- isPolling = false,
1455
- pollingInterval = 100,
1456
- verticalAlignment = "afterEnd",
1457
- horizontalAlignment = "afterStart",
1458
- screenPadding = 16,
1459
- gap = 4
1460
- }) {
1461
- const [style, setStyle] = (0, import_react12.useState)();
1462
- const isMounted = useIsMounted();
1463
- const calculate = (0, import_react12.useCallback)(() => {
1464
- const containerRect = containerRef.current.getBoundingClientRect();
1465
- const windowRect = windowRef?.current.getBoundingClientRect() ?? {
1466
- top: 0,
1467
- bottom: window.innerHeight,
1468
- left: 0,
1469
- right: window.innerWidth,
1470
- width: window.innerWidth,
1471
- height: window.innerHeight
1472
- };
1473
- const anchorElement = anchorRef?.current;
1474
- if (anchorRef && !anchorElement) {
1475
- console.warn("FloatingContainer anchor provided, but its value is undefined");
1476
- }
1477
- const anchorRect = anchorElement?.getBoundingClientRect() ?? windowRect;
1478
- const calculateProps = {
1479
- windowRect,
1480
- anchorRect,
1481
- containerRect,
1482
- options: {
1483
- horizontalAlignment,
1484
- verticalAlignment,
1485
- screenPadding,
1486
- gap
1487
- }
1488
- };
1489
- setStyle(calculatePosition(calculateProps));
1490
- }, [anchorRef, containerRef, gap, horizontalAlignment, screenPadding, verticalAlignment, windowRef]);
1491
- const height = containerRef.current?.getBoundingClientRect().height;
1492
- const width = containerRef.current?.getBoundingClientRect().width;
1493
- (0, import_react12.useEffect)(() => {
1494
- if (active && isMounted) {
1495
- calculate();
1496
- } else {
1497
- setStyle(void 0);
1498
- }
1499
- }, [calculate, active, isMounted, height, width]);
1500
- (0, import_react12.useEffect)(() => {
1501
- window.addEventListener("resize", calculate);
1502
- let timeout;
1503
- if (isPolling) {
1504
- timeout = setInterval(calculate, pollingInterval);
1505
- }
1506
- return () => {
1507
- window.removeEventListener("resize", calculate);
1508
- if (timeout) {
1509
- clearInterval(timeout);
1510
- }
1511
- };
1512
- }, [calculate, isPolling, pollingInterval]);
1513
- return style;
1514
- }
1515
-
1516
- // src/components/user-action/select/Select.tsx
1517
- var import_react_dom2 = require("react-dom");
1518
- var import_jsx_runtime7 = require("react/jsx-runtime");
1519
- var defaultToggleOpenOptions = {
1520
- highlightStartPositionBehavior: "first"
1521
- };
1522
- var SelectContext = (0, import_react13.createContext)(null);
1523
- function useSelectContext() {
1524
- const ctx = (0, import_react13.useContext)(SelectContext);
1525
- if (!ctx) {
1526
- throw new Error("SelectContext must be used within a ListBoxPrimitive");
1527
- }
1528
- return ctx;
1529
- }
1530
- var SelectRoot = ({
1531
- children,
1532
- id,
1533
- value,
1534
- onValueChanged,
1535
- values,
1536
- onValuesChanged,
1537
- isOpen = false,
1538
- disabled = false,
1539
- invalid = false,
1540
- isMultiSelect = false,
1541
- iconAppearance = "left"
1542
- }) => {
1543
- const triggerRef = (0, import_react13.useRef)(null);
1544
- const generatedId = (0, import_react13.useId)();
1545
- const usedId = id ?? generatedId;
1546
- const [internalState, setInternalState] = (0, import_react13.useState)({
1547
- isOpen,
1548
- options: []
1549
- });
1550
- const selectedValues = (0, import_react13.useMemo)(
1551
- () => isMultiSelect ? values ?? [] : [value].filter(Boolean),
1552
- [isMultiSelect, value, values]
1553
- );
1554
- const selectedOptions = (0, import_react13.useMemo)(
1555
- () => selectedValues.map((value2) => internalState.options.find((option) => value2 === option.value)).filter(Boolean),
1556
- [selectedValues, internalState.options]
1557
- );
1558
- const state = {
1559
- ...internalState,
1560
- id: usedId,
1561
- disabled,
1562
- invalid,
1563
- value: selectedValues,
1564
- selectedOptions
1565
- };
1566
- const config = {
1567
- isMultiSelect,
1568
- iconAppearance
1569
- };
1570
- const registerItem = (0, import_react13.useCallback)((item) => {
1571
- setInternalState((prev) => {
1572
- const updatedOptions = [...prev.options, item];
1573
- updatedOptions.sort((a, b) => {
1574
- const aEl = a.ref.current;
1575
- const bEl = b.ref.current;
1576
- if (!aEl || !bEl) return 0;
1577
- return aEl.compareDocumentPosition(bEl) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1578
- });
1579
- return {
1580
- ...prev,
1581
- options: updatedOptions
1582
- };
1583
- });
1584
- }, []);
1585
- const unregisterItem = (0, import_react13.useCallback)((value2) => {
1586
- setInternalState((prev) => {
1587
- const updatedOptions = prev.options.filter((i) => i.value !== value2);
1588
- return {
1589
- ...prev,
1590
- options: updatedOptions
1591
- };
1592
- });
1593
- }, []);
1594
- const toggleSelection = (value2, isSelected) => {
1595
- if (disabled) {
1596
- return;
1597
- }
1598
- const option = state.options.find((i) => i.value === value2);
1599
- if (!option) {
1600
- console.error(`SelectOption with value: ${value2} not found`);
1601
- return;
1602
- }
1603
- let newValue;
1604
- if (isMultiSelect) {
1605
- const isSelectedBefore = state.value.includes(value2);
1606
- const isSelectedAfter = isSelected ?? !isSelectedBefore;
1607
- if (!isSelectedAfter) {
1608
- newValue = state.value.filter((v) => v !== value2);
1609
- } else {
1610
- newValue = [...state.value, value2];
1611
- }
1612
- } else {
1613
- newValue = [value2];
1614
- }
1615
- if (!isMultiSelect) {
1616
- onValueChanged?.(newValue[0]);
1617
- } else {
1618
- onValuesChanged?.(newValue);
1619
- }
1620
- setInternalState((prevState) => ({
1621
- ...prevState,
1622
- highlightedValue: value2
1623
- }));
1624
- };
1625
- const highlightItem = (value2) => {
1626
- if (disabled) {
1627
- return;
1628
- }
1629
- setInternalState((prevState) => ({
1630
- ...prevState,
1631
- highlightedValue: value2
1632
- }));
1633
- };
1634
- const registerTrigger = (0, import_react13.useCallback)((ref) => {
1635
- triggerRef.current = ref.current;
1636
- }, []);
1637
- const unregisterTrigger = (0, import_react13.useCallback)(() => {
1638
- triggerRef.current = null;
1639
- }, []);
1640
- const toggleOpen = (isOpen2, toggleOpenOptions) => {
1641
- const { highlightStartPositionBehavior } = { ...defaultToggleOpenOptions, ...toggleOpenOptions };
1642
- let firstSelectedValue;
1643
- let firstEnabledValue;
1644
- for (let i = 0; i < state.options.length; i++) {
1645
- const currentOption = state.options[highlightStartPositionBehavior === "first" ? i : state.options.length - i - 1];
1646
- if (!currentOption.disabled) {
1647
- if (!firstEnabledValue) {
1648
- firstEnabledValue = currentOption.value;
1649
- }
1650
- if (selectedValues.includes(currentOption.value)) {
1651
- firstSelectedValue = currentOption.value;
1652
- break;
1653
- }
1654
- }
1655
- }
1656
- setInternalState((prevState) => ({
1657
- ...prevState,
1658
- isOpen: isOpen2 ?? !prevState.isOpen,
1659
- highlightedValue: firstSelectedValue ?? firstEnabledValue
1660
- }));
1661
- };
1662
- const moveHighlightedIndex = (delta) => {
1663
- let highlightedIndex = state.options.findIndex((value2) => value2.value === internalState.highlightedValue);
1664
- if (highlightedIndex === -1) {
1665
- highlightedIndex = 0;
1666
- }
1667
- const optionLength = state.options.length;
1668
- const startIndex = (highlightedIndex + delta % optionLength + optionLength) % optionLength;
1669
- const isForward = delta >= 0;
1670
- let highlightedValue = state.options[startIndex].value;
1671
- for (let i = 0; i < state.options.length; i++) {
1672
- const index = (startIndex + (isForward ? i : -i) + optionLength) % optionLength;
1673
- if (!state.options[index].disabled) {
1674
- highlightedValue = state.options[index].value;
1675
- break;
1676
- }
1677
- }
1678
- setInternalState((prevState) => ({
1679
- ...prevState,
1680
- highlightedValue
1681
- }));
1682
- };
1683
- (0, import_react13.useEffect)(() => {
1684
- if (!internalState.highlightedValue) return;
1685
- const highlighted = internalState.options.find((value2) => value2.value === internalState.highlightedValue);
1686
- if (highlighted) {
1687
- highlighted.ref.current?.scrollIntoView({ behavior: "instant", block: "nearest" });
1688
- } else {
1689
- console.error(`SelectRoot: Could not find highlighted value (${internalState.highlightedValue})`);
1690
- }
1691
- }, [internalState.highlightedValue]);
1692
- const contextValue = {
1693
- state,
1694
- config,
1695
- item: {
1696
- register: registerItem,
1697
- unregister: unregisterItem,
1698
- toggleSelection,
1699
- highlightItem,
1700
- moveHighlightedIndex
1701
- },
1702
- trigger: {
1703
- ref: triggerRef,
1704
- register: registerTrigger,
1705
- unregister: unregisterTrigger,
1706
- toggleOpen
1707
- }
1708
- };
1709
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectContext.Provider, { value: contextValue, children });
1710
- };
1711
- var SelectOption = (0, import_react13.forwardRef)(
1712
- function SelectOption2({ children, value, disabled = false, iconAppearance, className, ...restProps }, ref) {
1713
- const { state, config, item, trigger } = useSelectContext();
1714
- const { register, unregister, toggleSelection, highlightItem } = item;
1715
- const itemRef = (0, import_react13.useRef)(null);
1716
- iconAppearance ??= config.iconAppearance;
1717
- const label = children ?? value;
1718
- (0, import_react13.useEffect)(() => {
1719
- register({
1720
- value,
1721
- label,
1722
- disabled,
1723
- ref: itemRef
1724
- });
1725
- return () => unregister(value);
1726
- }, [value, disabled, register, unregister, children, label]);
1727
- const isHighlighted = state.highlightedValue === value;
1728
- const isSelected = state.value.includes(value);
1729
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1730
- "li",
1731
- {
1732
- ...restProps,
1733
- ref: (node) => {
1734
- itemRef.current = node;
1735
- if (typeof ref === "function") ref(node);
1736
- else if (ref) ref.current = node;
1737
- },
1738
- id: value,
1739
- role: "option",
1740
- "aria-disabled": disabled,
1741
- "aria-selected": isSelected,
1742
- "data-highlighted": isHighlighted ? "" : void 0,
1743
- "data-selected": isSelected ? "" : void 0,
1744
- "data-disabled": disabled ? "" : void 0,
1745
- className: (0, import_clsx5.default)(
1746
- "flex-row-1 items-center px-2 py-1 rounded-md",
1747
- "data-highlighted:bg-primary/20",
1748
- "data-disabled:text-disabled data-disabled:cursor-not-allowed",
1749
- "not-data-disabled:cursor-pointer",
1750
- className
1751
- ),
1752
- onClick: (event) => {
1753
- if (!disabled) {
1754
- toggleSelection(value);
1755
- if (!config.isMultiSelect) {
1756
- trigger.toggleOpen(false);
1757
- }
1758
- restProps.onClick?.(event);
1759
- }
1760
- },
1761
- onMouseEnter: (event) => {
1762
- if (!disabled) {
1763
- highlightItem(value);
1764
- restProps.onMouseEnter?.(event);
1765
- }
1766
- },
1767
- children: [
1768
- iconAppearance === "left" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1769
- import_lucide_react3.CheckIcon,
1770
- {
1771
- className: (0, import_clsx5.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
1772
- "aria-hidden": true
1773
- }
1774
- ),
1775
- label,
1776
- iconAppearance === "right" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1777
- import_lucide_react3.CheckIcon,
1778
- {
1779
- className: (0, import_clsx5.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
1780
- "aria-hidden": true
1781
- }
1782
- )
1783
- ]
1784
- }
1785
- );
1786
- }
1787
- );
1788
- var SelectButton = (0, import_react13.forwardRef)(function SelectButton2({ placeholder, selectedDisplay, ...props }, ref) {
1789
- const translation = useHightideTranslation();
1790
- const { state, trigger } = useSelectContext();
1791
- const { register, unregister, toggleOpen } = trigger;
1792
- const innerRef = (0, import_react13.useRef)(null);
1793
- (0, import_react13.useImperativeHandle)(ref, () => innerRef.current);
1794
- (0, import_react13.useEffect)(() => {
1795
- register(innerRef);
1796
- return () => unregister();
1797
- }, [register, unregister]);
1798
- const disabled = !!props?.disabled || !!state.disabled;
1799
- const invalid = state.invalid;
1800
- const hasValue = state.value.length > 0;
1801
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1802
- "button",
1803
- {
1804
- ...props,
1805
- ref: innerRef,
1806
- id: state.id,
1807
- disabled,
1808
- onClick: (event) => {
1809
- props.onClick?.(event);
1810
- toggleOpen(!state.isOpen);
1811
- },
1812
- onKeyDown: (event) => {
1813
- props.onKeyDown?.(event);
1814
- switch (event.key) {
1815
- case "ArrowDown":
1816
- toggleOpen(true, { highlightStartPositionBehavior: "first" });
1817
- event.preventDefault();
1818
- event.stopPropagation();
1819
- break;
1820
- case "ArrowUp":
1821
- toggleOpen(true, { highlightStartPositionBehavior: "last" });
1822
- event.preventDefault();
1823
- event.stopPropagation();
1824
- break;
1825
- }
1826
- },
1827
- className: (0, import_clsx5.default)(
1828
- "flex-row-2 items-center justify-between rounded-md px-3 py-2",
1829
- {
1830
- "bg-input-background text-placeholder": !hasValue && !disabled && !invalid,
1831
- "bg-input-background text-input-text": hasValue && !disabled && !invalid,
1832
- "bg-negative/20": !disabled && invalid,
1833
- "text-placeholder": !hasValue && !disabled,
1834
- "text-negative": hasValue && !disabled && invalid,
1835
- "bg-disabled-background text-disabled": disabled
1836
- },
1837
- props.className
1838
- ),
1839
- "data-placeholder": !hasValue ? "" : void 0,
1840
- "data-disabled": disabled ? "" : void 0,
1841
- "data-invalid": invalid ? "" : void 0,
1842
- "aria-invalid": invalid,
1843
- "aria-disabled": disabled,
1844
- "aria-haspopup": "listbox",
1845
- "aria-expanded": state.isOpen,
1846
- "aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
1847
- children: [
1848
- hasValue ? selectedDisplay?.(state.value) ?? /* @__PURE__ */ (0, import_jsx_runtime7.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_runtime7.jsxs)("span", { className: "flex-row-0", children: [
1849
- label,
1850
- index < state.value.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "," })
1851
- ] }, value)) }) : placeholder ?? translation("clickToSelect"),
1852
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1853
- ExpansionIcon,
1854
- {
1855
- isExpanded: state.isOpen,
1856
- className: (0, import_clsx5.default)({
1857
- "text-input-text": !disabled && !invalid,
1858
- "text-negative": !disabled && invalid,
1859
- "text-disabled": disabled
1860
- })
1861
- }
1862
- )
1863
- ]
1864
- }
1865
- );
1866
- });
1867
- var SelectChipDisplay = (0, import_react13.forwardRef)(function SelectChipDisplay2({ ...props }, ref) {
1868
- const { state, trigger, item } = useSelectContext();
1869
- const { register, unregister, toggleOpen } = trigger;
1870
- const innerRef = (0, import_react13.useRef)(null);
1871
- (0, import_react13.useImperativeHandle)(ref, () => innerRef.current);
1872
- (0, import_react13.useEffect)(() => {
1873
- register(innerRef);
1874
- return () => unregister();
1875
- }, [register, unregister]);
1876
- const disabled = !!props?.disabled || !!state.disabled;
1877
- const invalid = state.invalid;
1878
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1879
- "div",
1880
- {
1881
- ...props,
1882
- ref: innerRef,
1883
- className: (0, import_clsx5.default)(
1884
- "flex flex-wrap flex-row gap-2 items-center bg-input-background text-input-text rounded-md px-2.5 py-2.5",
1885
- props.className
1886
- ),
1887
- "data-disabled": disabled ? "" : void 0,
1888
- "data-invalid": invalid ? "" : void 0,
1889
- "aria-invalid": invalid,
1890
- "aria-disabled": disabled,
1891
- children: [
1892
- state.selectedOptions.map(({ value, label }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Chip, { className: "gap-x-2", children: [
1893
- label,
1894
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1895
- TextButton,
1896
- {
1897
- onClick: () => {
1898
- item.toggleSelection(value, false);
1899
- },
1900
- size: "none",
1901
- color: "negative",
1902
- className: "flex-row-0 items-center px-0.5 py-0.5 w-6 h-6 rounded",
1903
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.XIcon, { className: "w-5 h-5" })
1904
- }
1905
- )
1906
- ] }, value)),
1907
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1908
- IconButton,
1909
- {
1910
- id: state.id,
1911
- onClick: () => toggleOpen(),
1912
- onKeyDown: (event) => {
1913
- switch (event.key) {
1914
- case "ArrowDown":
1915
- toggleOpen(true, { highlightStartPositionBehavior: "first" });
1916
- break;
1917
- case "ArrowUp":
1918
- toggleOpen(true, { highlightStartPositionBehavior: "last" });
1919
- }
1920
- },
1921
- size: "small",
1922
- color: "neutral",
1923
- "aria-invalid": invalid,
1924
- "aria-disabled": disabled,
1925
- "aria-haspopup": "listbox",
1926
- "aria-expanded": state.isOpen,
1927
- "aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
1928
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Plus, {})
1929
- }
1930
- )
1931
- ]
1932
- }
1933
- );
1934
- });
1935
- var SelectContent = (0, import_react13.forwardRef)(
1936
- function SelectContent2({
1937
- alignment,
1938
- orientation = "vertical",
1939
- containerClassName,
1940
- ...props
1941
- }, ref) {
1942
- const innerRef = (0, import_react13.useRef)(null);
1943
- (0, import_react13.useImperativeHandle)(ref, () => innerRef.current);
1944
- const { trigger, state, config, item } = useSelectContext();
1945
- const position = useFloatingElement({
1946
- active: state.isOpen,
1947
- anchorRef: trigger.ref,
1948
- containerRef: innerRef,
1949
- ...alignment
1950
- });
1951
- useFocusTrap({
1952
- container: innerRef,
1953
- active: state.isOpen && !!position
1954
- });
1955
- return (0, import_react_dom2.createPortal)(
1956
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1957
- "div",
1958
- {
1959
- id: `select-container-${state.id}`,
1960
- className: (0, import_clsx5.default)("fixed inset-0 w-screen h-screen", containerClassName),
1961
- hidden: !state.isOpen,
1962
- children: [
1963
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1964
- "div",
1965
- {
1966
- id: `select-background-${state.id}`,
1967
- onClick: () => trigger.toggleOpen(false),
1968
- className: (0, import_clsx5.default)("fixed inset-0 w-screen h-screen")
1969
- }
1970
- ),
1971
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1972
- "ul",
1973
- {
1974
- ...props,
1975
- id: `${state.id}-listbox`,
1976
- ref: innerRef,
1977
- onKeyDown: (event) => {
1978
- switch (event.key) {
1979
- case "Escape":
1980
- trigger.toggleOpen(false);
1981
- event.preventDefault();
1982
- event.stopPropagation();
1983
- break;
1984
- case match(orientation, {
1985
- vertical: "ArrowDown",
1986
- horizontal: "ArrowUp"
1987
- }):
1988
- item.moveHighlightedIndex(1);
1989
- event.preventDefault();
1990
- break;
1991
- case match(orientation, {
1992
- vertical: "ArrowUp",
1993
- horizontal: "ArrowDown"
1994
- }):
1995
- item.moveHighlightedIndex(-1);
1996
- event.preventDefault();
1997
- break;
1998
- case "Home":
1999
- event.preventDefault();
2000
- break;
2001
- case "End":
2002
- event.preventDefault();
2003
- break;
2004
- case "Enter":
2005
- // Fall through
2006
- case " ":
2007
- if (state.highlightedValue) {
2008
- item.toggleSelection(state.highlightedValue);
2009
- if (!config.isMultiSelect) {
2010
- trigger.toggleOpen(false);
2011
- }
2012
- event.preventDefault();
2013
- }
2014
- break;
2015
- }
2016
- },
2017
- 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),
2018
- style: {
2019
- opacity: position ? void 0 : 0,
2020
- position: "fixed",
2021
- ...position
2022
- },
2023
- role: "listbox",
2024
- "aria-multiselectable": config.isMultiSelect,
2025
- "aria-orientation": orientation,
2026
- tabIndex: position ? 0 : void 0,
2027
- children: props.children
2028
- }
2029
- )
2030
- ]
2031
- }
2032
- ),
2033
- document.body
2034
- );
2035
- }
2036
- );
2037
- var Select = (0, import_react13.forwardRef)(function Select2({
2038
- children,
2039
- contentPanelProps,
2040
- buttonProps,
2041
- ...props
2042
- }, ref) {
2043
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(SelectRoot, { ...props, isMultiSelect: false, children: [
2044
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2045
- SelectButton,
2046
- {
2047
- ref,
2048
- ...buttonProps,
2049
- selectedDisplay: (values) => {
2050
- const value = values[0];
2051
- if (!buttonProps?.selectedDisplay) return void 0;
2052
- return buttonProps.selectedDisplay(value);
2053
- }
2054
- }
2055
- ),
2056
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectContent, { ...contentPanelProps, children })
2057
- ] });
2058
- });
2059
- var SelectUncontrolled = (0, import_react13.forwardRef)(function SelectUncontrolled2({
2060
- value: initialValue,
2061
- onValueChanged,
2062
- ...props
2063
- }, ref) {
2064
- const [value, setValue] = useOverwritableState(initialValue, onValueChanged);
2065
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2066
- Select,
2067
- {
2068
- ...props,
2069
- ref,
2070
- value,
2071
- onValueChanged: setValue
2072
- }
2073
- );
2074
- });
2075
- var MultiSelect = (0, import_react13.forwardRef)(function MultiSelect2({
2076
- children,
2077
- contentPanelProps,
2078
- buttonProps,
2079
- ...props
2080
- }, ref) {
2081
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(SelectRoot, { ...props, isMultiSelect: true, children: [
2082
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectButton, { ref, ...buttonProps }),
2083
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectContent, { ...contentPanelProps, children })
2084
- ] });
2085
- });
2086
- var MultiSelectUncontrolled = (0, import_react13.forwardRef)(function MultiSelectUncontrolled2({
2087
- values: initialValues,
2088
- onValuesChanged,
2089
- ...props
2090
- }, ref) {
2091
- const [values, setValues] = useOverwritableState(initialValues, onValuesChanged);
2092
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2093
- MultiSelect,
2094
- {
2095
- ...props,
2096
- ref,
2097
- values,
2098
- onValuesChanged: setValues
2099
- }
2100
- );
2101
- });
2102
- var MultiSelectChipDisplay = (0, import_react13.forwardRef)(function MultiSelectChipDisplay2({
2103
- children,
2104
- contentPanelProps,
2105
- chipDisplayProps,
2106
- ...props
2107
- }, ref) {
2108
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(SelectRoot, { ...props, isMultiSelect: true, children: [
2109
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectChipDisplay, { ref, ...chipDisplayProps }),
2110
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectContent, { ...contentPanelProps, children })
2111
- ] });
2112
- });
2113
- var MultiSelectChipDisplayUncontrolled = (0, import_react13.forwardRef)(function MultiSelectChipDisplayUncontrolled2({
2114
- values: initialValues,
2115
- onValuesChanged,
2116
- ...props
2117
- }, ref) {
2118
- const [values, setValues] = useOverwritableState(initialValues, onValuesChanged);
2119
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2120
- MultiSelectChipDisplay,
2121
- {
2122
- ...props,
2123
- ref,
2124
- values,
2125
- onValuesChanged: setValues
2126
- }
2127
- );
2128
- });
2129
-
2130
- // src/components/dialog/ThemeDialog.tsx
2131
- var import_jsx_runtime8 = require("react/jsx-runtime");
2132
- var ThemeIcon = ({ theme, className }) => {
2133
- if (theme === "dark") {
2134
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.MoonIcon, { className: (0, import_clsx6.default)("w-4 h-4", className) });
2135
- } else if (theme === "light") {
2136
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.SunIcon, { className: (0, import_clsx6.default)("w-4 h-4", className) });
2137
- } else {
2138
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.MonitorCog, { className: (0, import_clsx6.default)("w-4 h-4", className) });
2139
- }
2140
- };
2141
- var ThemeDialog = ({
2142
- onClose,
2143
- titleOverwrite,
2144
- descriptionOverwrite,
2145
- ...props
2146
- }) => {
2147
- const { theme, setTheme } = useTheme();
2148
- const translation = useHightideTranslation();
2149
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2150
- Dialog,
2151
- {
2152
- titleElement: titleOverwrite ?? translation("themes", { count: 1 }),
2153
- description: descriptionOverwrite ?? translation("chooseTheme"),
2154
- onClose,
2155
- ...props,
2156
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "w-64", children: [
2157
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2158
- Select,
2159
- {
2160
- value: theme,
2161
- onValueChanged: (theme2) => setTheme(theme2),
2162
- iconAppearance: "right",
2163
- contentPanelProps: {
2164
- containerClassName: "z-200"
2165
- },
2166
- buttonProps: {
2167
- selectedDisplay: (value) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex-row-2 items-center", children: [
2168
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ThemeIcon, { theme }),
2169
- translation("themeMode", { theme: value })
2170
- ] }),
2171
- className: "min-w-32"
2172
- },
2173
- children: ThemeUtil.themes.map((theme2) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SelectOption, { value: theme2, className: "gap-x-6 justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex-row-2 items-center", children: [
2174
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ThemeIcon, { theme: theme2 }),
2175
- translation("themeMode", { theme: theme2 })
2176
- ] }) }, theme2))
2177
- }
2178
- ),
2179
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
2180
- ] })
2181
- }
2182
- );
2183
- };
2184
- // Annotate the CommonJS export names for ESM import in node:
2185
- 0 && (module.exports = {
2186
- ThemeDialog
2187
- });
2188
- //# sourceMappingURL=ThemeDialog.cjs.map