@helpwave/hightide 0.1.46 → 0.1.48

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