@helpwave/hightide 0.1.45 → 0.1.47

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