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