@helpwave/hightide 0.1.25 → 0.1.27

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 (664) hide show
  1. package/README.md +1 -1
  2. package/dist/components/branding/HelpwaveBadge.d.mts +4 -5
  3. package/dist/components/branding/HelpwaveBadge.d.ts +4 -5
  4. package/dist/components/branding/HelpwaveBadge.js +46 -87
  5. package/dist/components/branding/HelpwaveBadge.js.map +1 -1
  6. package/dist/components/branding/HelpwaveBadge.mjs +46 -89
  7. package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
  8. package/dist/components/date/DatePicker.d.mts +1 -1
  9. package/dist/components/date/DatePicker.d.ts +1 -1
  10. package/dist/components/date/DatePicker.js +65 -14
  11. package/dist/components/date/DatePicker.js.map +1 -1
  12. package/dist/components/date/DatePicker.mjs +66 -15
  13. package/dist/components/date/DatePicker.mjs.map +1 -1
  14. package/dist/components/date/DayPicker.d.mts +1 -1
  15. package/dist/components/date/DayPicker.d.ts +1 -1
  16. package/dist/components/date/DayPicker.js +3 -3
  17. package/dist/components/date/DayPicker.js.map +1 -1
  18. package/dist/components/date/DayPicker.mjs +3 -3
  19. package/dist/components/date/DayPicker.mjs.map +1 -1
  20. package/dist/components/date/TimeDisplay.js.map +1 -1
  21. package/dist/components/date/TimeDisplay.mjs.map +1 -1
  22. package/dist/components/date/TimePicker.js +2 -2
  23. package/dist/components/date/TimePicker.js.map +1 -1
  24. package/dist/components/date/TimePicker.mjs +2 -2
  25. package/dist/components/date/TimePicker.mjs.map +1 -1
  26. package/dist/components/date/YearMonthPicker.js +59 -8
  27. package/dist/components/date/YearMonthPicker.js.map +1 -1
  28. package/dist/components/date/YearMonthPicker.mjs +60 -9
  29. package/dist/components/date/YearMonthPicker.mjs.map +1 -1
  30. package/dist/components/{dialogs → dialog}/ConfirmDialog.d.mts +9 -8
  31. package/dist/components/{dialogs → dialog}/ConfirmDialog.d.ts +9 -8
  32. package/dist/components/dialog/ConfirmDialog.js +938 -0
  33. package/dist/components/dialog/ConfirmDialog.js.map +1 -0
  34. package/dist/components/dialog/ConfirmDialog.mjs +902 -0
  35. package/dist/components/dialog/ConfirmDialog.mjs.map +1 -0
  36. package/dist/components/dialog/Dialog.d.mts +27 -0
  37. package/dist/components/dialog/Dialog.d.ts +27 -0
  38. package/dist/components/dialog/Dialog.js +879 -0
  39. package/dist/components/dialog/Dialog.js.map +1 -0
  40. package/dist/components/dialog/Dialog.mjs +845 -0
  41. package/dist/components/dialog/Dialog.mjs.map +1 -0
  42. package/dist/components/dialog/DiscardChangesDialog.d.mts +24 -0
  43. package/dist/components/dialog/DiscardChangesDialog.d.ts +24 -0
  44. package/dist/components/dialog/DiscardChangesDialog.js +966 -0
  45. package/dist/components/dialog/DiscardChangesDialog.js.map +1 -0
  46. package/dist/components/dialog/DiscardChangesDialog.mjs +930 -0
  47. package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -0
  48. package/dist/components/dialog/InputDialog.d.mts +22 -0
  49. package/dist/components/dialog/InputDialog.d.ts +22 -0
  50. package/dist/components/dialog/InputDialog.js +1139 -0
  51. package/dist/components/dialog/InputDialog.js.map +1 -0
  52. package/dist/components/dialog/InputDialog.mjs +1103 -0
  53. package/dist/components/dialog/InputDialog.mjs.map +1 -0
  54. package/dist/components/dialog/LanguageDialog.d.mts +25 -0
  55. package/dist/components/dialog/LanguageDialog.d.ts +25 -0
  56. package/dist/components/dialog/LanguageDialog.js +1697 -0
  57. package/dist/components/dialog/LanguageDialog.js.map +1 -0
  58. package/dist/components/dialog/LanguageDialog.mjs +1671 -0
  59. package/dist/components/dialog/LanguageDialog.mjs.map +1 -0
  60. package/dist/components/dialog/ThemeDialog.d.mts +26 -0
  61. package/dist/components/dialog/ThemeDialog.d.ts +26 -0
  62. package/dist/components/dialog/ThemeDialog.js +1751 -0
  63. package/dist/components/dialog/ThemeDialog.js.map +1 -0
  64. package/dist/components/dialog/ThemeDialog.mjs +1725 -0
  65. package/dist/components/dialog/ThemeDialog.mjs.map +1 -0
  66. package/dist/components/dialog/index.d.mts +17 -0
  67. package/dist/components/dialog/index.d.ts +17 -0
  68. package/dist/components/dialog/index.js +2098 -0
  69. package/dist/components/dialog/index.js.map +1 -0
  70. package/dist/components/dialog/index.mjs +2067 -0
  71. package/dist/components/dialog/index.mjs.map +1 -0
  72. package/dist/components/form/FormElementWrapper.d.mts +29 -0
  73. package/dist/components/form/FormElementWrapper.d.ts +29 -0
  74. package/dist/components/form/FormElementWrapper.js +98 -0
  75. package/dist/components/form/FormElementWrapper.js.map +1 -0
  76. package/dist/components/form/FormElementWrapper.mjs +64 -0
  77. package/dist/components/form/FormElementWrapper.mjs.map +1 -0
  78. package/dist/components/icons-and-geometry/Avatar.js +498 -2886
  79. package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
  80. package/dist/components/icons-and-geometry/Avatar.mjs +490 -2878
  81. package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
  82. package/dist/components/icons-and-geometry/{Helpwave.d.mts → HelpwaveLogo.d.mts} +3 -3
  83. package/dist/components/icons-and-geometry/{Helpwave.d.ts → HelpwaveLogo.d.ts} +3 -3
  84. package/dist/components/icons-and-geometry/{Helpwave.js → HelpwaveLogo.js} +21 -22
  85. package/dist/components/icons-and-geometry/HelpwaveLogo.js.map +1 -0
  86. package/dist/components/icons-and-geometry/{Helpwave.mjs → HelpwaveLogo.mjs} +17 -18
  87. package/dist/components/icons-and-geometry/HelpwaveLogo.mjs.map +1 -0
  88. package/dist/components/icons-and-geometry/Ring.js +1 -1
  89. package/dist/components/icons-and-geometry/Ring.js.map +1 -1
  90. package/dist/components/icons-and-geometry/Ring.mjs +1 -1
  91. package/dist/components/icons-and-geometry/Ring.mjs.map +1 -1
  92. package/dist/components/icons-and-geometry/Tag.js +8 -20
  93. package/dist/components/icons-and-geometry/Tag.js.map +1 -1
  94. package/dist/components/icons-and-geometry/Tag.mjs +8 -20
  95. package/dist/components/icons-and-geometry/Tag.mjs.map +1 -1
  96. package/dist/components/layout/Carousel.d.mts +33 -0
  97. package/dist/components/layout/Carousel.d.ts +33 -0
  98. package/dist/components/layout/Carousel.js +684 -0
  99. package/dist/components/layout/Carousel.js.map +1 -0
  100. package/dist/components/layout/Carousel.mjs +659 -0
  101. package/dist/components/layout/Carousel.mjs.map +1 -0
  102. package/dist/components/{layout-and-navigation → layout}/Chip.d.mts +8 -5
  103. package/dist/components/{layout-and-navigation → layout}/Chip.d.ts +8 -5
  104. package/dist/components/{layout-and-navigation → layout}/Chip.js +18 -5
  105. package/dist/components/layout/Chip.js.map +1 -0
  106. package/dist/components/{layout-and-navigation → layout}/Chip.mjs +18 -5
  107. package/dist/components/layout/Chip.mjs.map +1 -0
  108. package/dist/components/{layout-and-navigation → layout}/DividerInserter.js +1 -1
  109. package/dist/components/layout/DividerInserter.js.map +1 -0
  110. package/dist/components/{layout-and-navigation → layout}/DividerInserter.mjs +1 -1
  111. package/dist/components/layout/DividerInserter.mjs.map +1 -0
  112. package/dist/components/{layout-and-navigation → layout}/Expandable.d.mts +13 -10
  113. package/dist/components/{layout-and-navigation → layout}/Expandable.d.ts +13 -10
  114. package/dist/components/{layout-and-navigation → layout}/Expandable.js +20 -7
  115. package/dist/components/layout/Expandable.js.map +1 -0
  116. package/dist/components/{layout-and-navigation → layout}/Expandable.mjs +21 -8
  117. package/dist/components/layout/Expandable.mjs.map +1 -0
  118. package/dist/components/{layout-and-navigation → layout}/FAQSection.js +26 -13
  119. package/dist/components/layout/FAQSection.js.map +1 -0
  120. package/dist/components/{layout-and-navigation → layout}/FAQSection.mjs +27 -14
  121. package/dist/components/layout/FAQSection.mjs.map +1 -0
  122. package/dist/components/layout/FloatingContainer.d.mts +38 -0
  123. package/dist/components/layout/FloatingContainer.d.ts +38 -0
  124. package/dist/components/layout/FloatingContainer.js +219 -0
  125. package/dist/components/layout/FloatingContainer.js.map +1 -0
  126. package/dist/components/layout/FloatingContainer.mjs +195 -0
  127. package/dist/components/layout/FloatingContainer.mjs.map +1 -0
  128. package/dist/components/layout/ListBox.d.mts +44 -0
  129. package/dist/components/layout/ListBox.d.ts +44 -0
  130. package/dist/components/layout/ListBox.js +329 -0
  131. package/dist/components/layout/ListBox.js.map +1 -0
  132. package/dist/components/layout/ListBox.mjs +290 -0
  133. package/dist/components/layout/ListBox.mjs.map +1 -0
  134. package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.js +1 -1
  135. package/dist/components/layout/MarkdownInterpreter.js.map +1 -0
  136. package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.mjs +1 -1
  137. package/dist/components/layout/MarkdownInterpreter.mjs.map +1 -0
  138. package/dist/components/layout/ScrollArea.d.mts +15 -0
  139. package/dist/components/layout/ScrollArea.d.ts +15 -0
  140. package/dist/components/layout/ScrollArea.js +1252 -0
  141. package/dist/components/layout/ScrollArea.js.map +1 -0
  142. package/dist/components/layout/ScrollArea.mjs +1216 -0
  143. package/dist/components/layout/ScrollArea.mjs.map +1 -0
  144. package/dist/components/{layout-and-navigation → layout}/TextImage.js +6 -4
  145. package/dist/components/layout/TextImage.js.map +1 -0
  146. package/dist/components/{layout-and-navigation → layout}/TextImage.mjs +5 -3
  147. package/dist/components/layout/TextImage.mjs.map +1 -0
  148. package/dist/components/{layout-and-navigation → layout}/VerticalDivider.js +1 -1
  149. package/dist/components/layout/VerticalDivider.js.map +1 -0
  150. package/dist/components/{layout-and-navigation → layout}/VerticalDivider.mjs +1 -1
  151. package/dist/components/layout/VerticalDivider.mjs.map +1 -0
  152. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  153. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
  154. package/dist/components/loading-states/LoadingAndErrorComponent.d.mts +1 -1
  155. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
  156. package/dist/components/loading-states/LoadingAnimation.js +18 -17
  157. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  158. package/dist/components/loading-states/LoadingAnimation.mjs +18 -17
  159. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
  160. package/dist/components/loading-states/LoadingButton.js +55 -18
  161. package/dist/components/loading-states/LoadingButton.js.map +1 -1
  162. package/dist/components/loading-states/LoadingButton.mjs +55 -18
  163. package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
  164. package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.js +668 -23
  165. package/dist/components/navigation/BreadCrumb.js.map +1 -0
  166. package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.mjs +668 -23
  167. package/dist/components/navigation/BreadCrumb.mjs.map +1 -0
  168. package/dist/components/navigation/Navigation.d.mts +21 -0
  169. package/dist/components/navigation/Navigation.d.ts +21 -0
  170. package/dist/components/navigation/Navigation.js +4018 -0
  171. package/dist/components/navigation/Navigation.js.map +1 -0
  172. package/dist/components/navigation/Navigation.mjs +4012 -0
  173. package/dist/components/navigation/Navigation.mjs.map +1 -0
  174. package/dist/components/{layout-and-navigation → navigation}/Pagination.js +107 -192
  175. package/dist/components/navigation/Pagination.js.map +1 -0
  176. package/dist/components/{layout-and-navigation → navigation}/Pagination.mjs +102 -187
  177. package/dist/components/navigation/Pagination.mjs.map +1 -0
  178. package/dist/components/{layout-and-navigation → navigation}/StepperBar.js +44 -4
  179. package/dist/components/navigation/StepperBar.js.map +1 -0
  180. package/dist/components/{layout-and-navigation → navigation}/StepperBar.mjs +44 -4
  181. package/dist/components/navigation/StepperBar.mjs.map +1 -0
  182. package/dist/components/properties/CheckboxProperty.js +890 -135
  183. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  184. package/dist/components/properties/CheckboxProperty.mjs +897 -142
  185. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  186. package/dist/components/properties/DateProperty.js +153 -198
  187. package/dist/components/properties/DateProperty.js.map +1 -1
  188. package/dist/components/properties/DateProperty.mjs +146 -191
  189. package/dist/components/properties/DateProperty.mjs.map +1 -1
  190. package/dist/components/properties/MultiSelectProperty.d.mts +5 -10
  191. package/dist/components/properties/MultiSelectProperty.d.ts +5 -10
  192. package/dist/components/properties/MultiSelectProperty.js +1156 -1160
  193. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  194. package/dist/components/properties/MultiSelectProperty.mjs +1169 -1163
  195. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  196. package/dist/components/properties/NumberProperty.js +155 -201
  197. package/dist/components/properties/NumberProperty.js.map +1 -1
  198. package/dist/components/properties/NumberProperty.mjs +148 -194
  199. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  200. package/dist/components/properties/PropertyBase.js +49 -9
  201. package/dist/components/properties/PropertyBase.js.map +1 -1
  202. package/dist/components/properties/PropertyBase.mjs +49 -9
  203. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  204. package/dist/components/properties/SelectProperty.d.mts +5 -8
  205. package/dist/components/properties/SelectProperty.d.ts +5 -8
  206. package/dist/components/properties/SelectProperty.js +1062 -836
  207. package/dist/components/properties/SelectProperty.js.map +1 -1
  208. package/dist/components/properties/SelectProperty.mjs +1077 -841
  209. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  210. package/dist/components/properties/TextProperty.js +97 -100
  211. package/dist/components/properties/TextProperty.js.map +1 -1
  212. package/dist/components/properties/TextProperty.mjs +100 -103
  213. package/dist/components/properties/TextProperty.mjs.map +1 -1
  214. package/dist/components/table/Table.js +1619 -994
  215. package/dist/components/table/Table.js.map +1 -1
  216. package/dist/components/table/Table.mjs +1626 -1001
  217. package/dist/components/table/Table.mjs.map +1 -1
  218. package/dist/components/table/TableFilterButton.js +116 -201
  219. package/dist/components/table/TableFilterButton.js.map +1 -1
  220. package/dist/components/table/TableFilterButton.mjs +105 -190
  221. package/dist/components/table/TableFilterButton.mjs.map +1 -1
  222. package/dist/components/table/TableSortButton.js +4 -3
  223. package/dist/components/table/TableSortButton.js.map +1 -1
  224. package/dist/components/table/TableSortButton.mjs +4 -3
  225. package/dist/components/table/TableSortButton.mjs.map +1 -1
  226. package/dist/components/user-action/Button.d.mts +15 -11
  227. package/dist/components/user-action/Button.d.ts +15 -11
  228. package/dist/components/user-action/Button.js +10 -9
  229. package/dist/components/user-action/Button.js.map +1 -1
  230. package/dist/components/user-action/Button.mjs +10 -9
  231. package/dist/components/user-action/Button.mjs.map +1 -1
  232. package/dist/components/user-action/Checkbox.d.mts +9 -25
  233. package/dist/components/user-action/Checkbox.d.ts +9 -25
  234. package/dist/components/user-action/Checkbox.js +793 -103
  235. package/dist/components/user-action/Checkbox.js.map +1 -1
  236. package/dist/components/user-action/Checkbox.mjs +794 -104
  237. package/dist/components/user-action/Checkbox.mjs.map +1 -1
  238. package/dist/components/user-action/CopyToClipboardWrapper.js +3 -1
  239. package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
  240. package/dist/components/user-action/CopyToClipboardWrapper.mjs +3 -1
  241. package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
  242. package/dist/components/user-action/DateAndTimePicker.d.mts +1 -1
  243. package/dist/components/user-action/DateAndTimePicker.d.ts +1 -1
  244. package/dist/components/user-action/DateAndTimePicker.js +67 -14
  245. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  246. package/dist/components/user-action/DateAndTimePicker.mjs +68 -15
  247. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  248. package/dist/components/user-action/Label.d.mts +6 -8
  249. package/dist/components/user-action/Label.d.ts +6 -8
  250. package/dist/components/user-action/Label.js +4 -6
  251. package/dist/components/user-action/Label.js.map +1 -1
  252. package/dist/components/user-action/Label.mjs +4 -6
  253. package/dist/components/user-action/Label.mjs.map +1 -1
  254. package/dist/components/user-action/Menu.d.mts +2 -2
  255. package/dist/components/user-action/Menu.d.ts +2 -2
  256. package/dist/components/user-action/Menu.js +1 -1
  257. package/dist/components/user-action/Menu.js.map +1 -1
  258. package/dist/components/user-action/Menu.mjs +1 -1
  259. package/dist/components/user-action/Menu.mjs.map +1 -1
  260. package/dist/components/user-action/ScrollPicker.js +8 -6
  261. package/dist/components/user-action/ScrollPicker.js.map +1 -1
  262. package/dist/components/user-action/ScrollPicker.mjs +8 -6
  263. package/dist/components/user-action/ScrollPicker.mjs.map +1 -1
  264. package/dist/components/user-action/SearchBar.d.mts +1 -2
  265. package/dist/components/user-action/SearchBar.d.ts +1 -2
  266. package/dist/components/user-action/SearchBar.js +93 -178
  267. package/dist/components/user-action/SearchBar.js.map +1 -1
  268. package/dist/components/user-action/SearchBar.mjs +86 -171
  269. package/dist/components/user-action/SearchBar.mjs.map +1 -1
  270. package/dist/components/user-action/Textarea.d.mts +22 -11
  271. package/dist/components/user-action/Textarea.d.ts +22 -11
  272. package/dist/components/user-action/Textarea.js +101 -92
  273. package/dist/components/user-action/Textarea.js.map +1 -1
  274. package/dist/components/user-action/Textarea.mjs +100 -92
  275. package/dist/components/user-action/Textarea.mjs.map +1 -1
  276. package/dist/components/user-action/input/Input.d.mts +37 -0
  277. package/dist/components/user-action/input/Input.d.ts +37 -0
  278. package/dist/components/user-action/input/Input.js +244 -0
  279. package/dist/components/user-action/input/Input.js.map +1 -0
  280. package/dist/components/user-action/input/Input.mjs +209 -0
  281. package/dist/components/user-action/input/Input.mjs.map +1 -0
  282. package/dist/components/user-action/input/InsideLabelInput.d.mts +20 -0
  283. package/dist/components/user-action/input/InsideLabelInput.d.ts +20 -0
  284. package/dist/components/user-action/input/InsideLabelInput.js +295 -0
  285. package/dist/components/user-action/input/InsideLabelInput.js.map +1 -0
  286. package/dist/components/user-action/input/InsideLabelInput.mjs +260 -0
  287. package/dist/components/user-action/input/InsideLabelInput.mjs.map +1 -0
  288. package/dist/components/user-action/input/ToggleableInput.d.mts +22 -0
  289. package/dist/components/user-action/input/ToggleableInput.d.ts +22 -0
  290. package/dist/components/user-action/{Input.js → input/ToggleableInput.js} +136 -171
  291. package/dist/components/user-action/input/ToggleableInput.js.map +1 -0
  292. package/dist/components/user-action/input/ToggleableInput.mjs +264 -0
  293. package/dist/components/user-action/input/ToggleableInput.mjs.map +1 -0
  294. package/dist/components/user-action/select/Select.d.mts +102 -0
  295. package/dist/components/user-action/select/Select.d.ts +102 -0
  296. package/dist/components/user-action/select/Select.js +1367 -0
  297. package/dist/components/user-action/select/Select.js.map +1 -0
  298. package/dist/components/user-action/select/Select.mjs +1333 -0
  299. package/dist/components/user-action/select/Select.mjs.map +1 -0
  300. package/dist/components/utils/FocusTrap.d.mts +28 -0
  301. package/dist/components/utils/FocusTrap.d.ts +28 -0
  302. package/dist/components/utils/FocusTrap.js +252 -0
  303. package/dist/components/utils/FocusTrap.js.map +1 -0
  304. package/dist/components/utils/FocusTrap.mjs +229 -0
  305. package/dist/components/utils/FocusTrap.mjs.map +1 -0
  306. package/dist/components/utils/Transition.d.mts +26 -0
  307. package/dist/components/utils/Transition.d.ts +26 -0
  308. package/dist/components/utils/Transition.js +74 -0
  309. package/dist/components/utils/Transition.js.map +1 -0
  310. package/dist/components/utils/Transition.mjs +50 -0
  311. package/dist/components/utils/Transition.mjs.map +1 -0
  312. package/dist/hooks/focus/useFocusGuards.d.mts +3 -0
  313. package/dist/hooks/focus/useFocusGuards.d.ts +3 -0
  314. package/dist/hooks/focus/useFocusGuards.js +74 -0
  315. package/dist/hooks/focus/useFocusGuards.js.map +1 -0
  316. package/dist/hooks/focus/useFocusGuards.mjs +50 -0
  317. package/dist/hooks/focus/useFocusGuards.mjs.map +1 -0
  318. package/dist/hooks/{useFocusManagement.js → focus/useFocusManagement.js} +1 -1
  319. package/dist/hooks/focus/useFocusManagement.js.map +1 -0
  320. package/dist/hooks/{useFocusManagement.mjs → focus/useFocusManagement.mjs} +1 -1
  321. package/dist/hooks/focus/useFocusManagement.mjs.map +1 -0
  322. package/dist/hooks/{useFocusOnceVisible.js → focus/useFocusOnceVisible.js} +1 -1
  323. package/dist/hooks/focus/useFocusOnceVisible.js.map +1 -0
  324. package/dist/hooks/{useFocusOnceVisible.mjs → focus/useFocusOnceVisible.mjs} +1 -1
  325. package/dist/hooks/focus/useFocusOnceVisible.mjs.map +1 -0
  326. package/dist/hooks/focus/useFocusTrap.d.mts +16 -0
  327. package/dist/hooks/focus/useFocusTrap.d.ts +16 -0
  328. package/dist/hooks/focus/useFocusTrap.js +233 -0
  329. package/dist/hooks/focus/useFocusTrap.js.map +1 -0
  330. package/dist/hooks/focus/useFocusTrap.mjs +210 -0
  331. package/dist/hooks/focus/useFocusTrap.mjs.map +1 -0
  332. package/dist/hooks/focus/useIsMounted.d.mts +3 -0
  333. package/dist/hooks/focus/useIsMounted.d.ts +3 -0
  334. package/dist/hooks/focus/useIsMounted.js +43 -0
  335. package/dist/hooks/focus/useIsMounted.js.map +1 -0
  336. package/dist/hooks/focus/useIsMounted.mjs +20 -0
  337. package/dist/hooks/focus/useIsMounted.mjs.map +1 -0
  338. package/dist/hooks/useFloatingElement.d.mts +22 -0
  339. package/dist/hooks/useFloatingElement.d.ts +22 -0
  340. package/dist/hooks/useFloatingElement.js +162 -0
  341. package/dist/hooks/useFloatingElement.js.map +1 -0
  342. package/dist/hooks/useFloatingElement.mjs +139 -0
  343. package/dist/hooks/useFloatingElement.mjs.map +1 -0
  344. package/dist/hooks/useLocalStorage.js +2 -2
  345. package/dist/hooks/useLocalStorage.js.map +1 -1
  346. package/dist/hooks/useLocalStorage.mjs +2 -2
  347. package/dist/hooks/useLocalStorage.mjs.map +1 -1
  348. package/dist/hooks/useLogOnce.d.mts +3 -4
  349. package/dist/hooks/useLogOnce.d.ts +3 -4
  350. package/dist/hooks/useLogOnce.js +5 -5
  351. package/dist/hooks/useLogOnce.js.map +1 -1
  352. package/dist/hooks/useLogOnce.mjs +5 -5
  353. package/dist/hooks/useLogOnce.mjs.map +1 -1
  354. package/dist/hooks/useRerender.d.mts +2 -2
  355. package/dist/hooks/useRerender.d.ts +2 -2
  356. package/dist/hooks/useSearch.d.mts +2 -2
  357. package/dist/hooks/useSearch.d.ts +2 -2
  358. package/dist/hooks/useSearch.js +1 -1
  359. package/dist/hooks/useSearch.js.map +1 -1
  360. package/dist/hooks/useSearch.mjs +1 -1
  361. package/dist/hooks/useSearch.mjs.map +1 -1
  362. package/dist/localization/LanguageProvider.d.mts +2 -2
  363. package/dist/localization/LanguageProvider.d.ts +2 -2
  364. package/dist/localization/LanguageProvider.js +2 -2
  365. package/dist/localization/LanguageProvider.js.map +1 -1
  366. package/dist/localization/LanguageProvider.mjs +2 -2
  367. package/dist/localization/LanguageProvider.mjs.map +1 -1
  368. package/dist/localization/defaults/form.d.mts +1 -0
  369. package/dist/localization/defaults/form.d.ts +1 -0
  370. package/dist/localization/defaults/form.js +2 -0
  371. package/dist/localization/defaults/form.js.map +1 -1
  372. package/dist/localization/defaults/form.mjs +2 -0
  373. package/dist/localization/defaults/form.mjs.map +1 -1
  374. package/dist/localization/useTranslation.js.map +1 -1
  375. package/dist/localization/useTranslation.mjs.map +1 -1
  376. package/dist/storybook/helper.d.mts +17 -0
  377. package/dist/storybook/helper.d.ts +17 -0
  378. package/dist/storybook/helper.js +61 -0
  379. package/dist/storybook/helper.js.map +1 -0
  380. package/dist/storybook/helper.mjs +37 -0
  381. package/dist/storybook/helper.mjs.map +1 -0
  382. package/dist/{css → style}/globals.css +836 -378
  383. package/dist/{css → style}/uncompiled/globals.css +80 -17
  384. package/dist/{css → style}/uncompiled/theme/colors-component.css +18 -4
  385. package/dist/{css → style}/uncompiled/theme/colors-semantic.css +2 -9
  386. package/dist/style/uncompiled/typography.css +171 -0
  387. package/dist/{css → style}/uncompiled/utitlity/animation.css +54 -42
  388. package/dist/{css → style}/uncompiled/utitlity/index.css +2 -1
  389. package/dist/{css → style}/uncompiled/utitlity/shadow.css +9 -1
  390. package/dist/style/uncompiled/utitlity/sizing.css +29 -0
  391. package/dist/theming/useTheme.d.mts +5 -3
  392. package/dist/theming/useTheme.d.ts +5 -3
  393. package/dist/theming/useTheme.js +42 -19
  394. package/dist/theming/useTheme.js.map +1 -1
  395. package/dist/theming/useTheme.mjs +40 -17
  396. package/dist/theming/useTheme.mjs.map +1 -1
  397. package/dist/{util → utils}/array.d.mts +1 -0
  398. package/dist/{util → utils}/array.d.ts +1 -0
  399. package/dist/{util → utils}/array.js +15 -2
  400. package/dist/utils/array.js.map +1 -0
  401. package/dist/{util → utils}/array.mjs +15 -2
  402. package/dist/utils/array.mjs.map +1 -0
  403. package/dist/utils/bagFunctions.d.mts +15 -0
  404. package/dist/utils/bagFunctions.d.ts +15 -0
  405. package/dist/{util/PropsWithFunctionChildren.js → utils/bagFunctions.js} +5 -5
  406. package/dist/utils/bagFunctions.js.map +1 -0
  407. package/dist/{util/PropsWithFunctionChildren.mjs → utils/bagFunctions.mjs} +2 -2
  408. package/dist/utils/bagFunctions.mjs.map +1 -0
  409. package/dist/{util → utils}/builder.js +1 -1
  410. package/dist/utils/builder.js.map +1 -0
  411. package/dist/{util → utils}/builder.mjs +1 -1
  412. package/dist/utils/builder.mjs.map +1 -0
  413. package/dist/{util → utils}/date.js +3 -3
  414. package/dist/utils/date.js.map +1 -0
  415. package/dist/{util → utils}/date.mjs +2 -2
  416. package/dist/utils/date.mjs.map +1 -0
  417. package/dist/{util → utils}/easeFunctions.js +5 -4
  418. package/dist/utils/easeFunctions.js.map +1 -0
  419. package/dist/{util → utils}/easeFunctions.mjs +4 -3
  420. package/dist/utils/easeFunctions.mjs.map +1 -0
  421. package/dist/{util → utils}/emailValidation.js +1 -1
  422. package/dist/utils/emailValidation.js.map +1 -0
  423. package/dist/{util → utils}/emailValidation.mjs +1 -1
  424. package/dist/utils/emailValidation.mjs.map +1 -0
  425. package/dist/{util → utils}/loopingArray.js +1 -1
  426. package/dist/utils/loopingArray.js.map +1 -0
  427. package/dist/{util → utils}/loopingArray.mjs +1 -1
  428. package/dist/utils/loopingArray.mjs.map +1 -0
  429. package/dist/utils/match.d.mts +3 -0
  430. package/dist/utils/match.d.ts +3 -0
  431. package/dist/utils/match.js +32 -0
  432. package/dist/utils/match.js.map +1 -0
  433. package/dist/utils/match.mjs +8 -0
  434. package/dist/utils/match.mjs.map +1 -0
  435. package/dist/utils/math.d.mts +3 -0
  436. package/dist/utils/math.d.ts +3 -0
  437. package/dist/{util → utils}/math.js +3 -2
  438. package/dist/utils/math.js.map +1 -0
  439. package/dist/utils/math.mjs +9 -0
  440. package/dist/utils/math.mjs.map +1 -0
  441. package/dist/{util → utils}/noop.js +1 -1
  442. package/dist/utils/noop.js.map +1 -0
  443. package/dist/utils/noop.mjs +6 -0
  444. package/dist/utils/noop.mjs.map +1 -0
  445. package/dist/{util → utils}/resolveSetState.js +1 -1
  446. package/dist/utils/resolveSetState.js.map +1 -0
  447. package/dist/{util → utils}/resolveSetState.mjs +1 -1
  448. package/dist/utils/resolveSetState.mjs.map +1 -0
  449. package/dist/{util → utils}/simpleSearch.js +1 -1
  450. package/dist/utils/simpleSearch.js.map +1 -0
  451. package/dist/{util → utils}/simpleSearch.mjs +1 -1
  452. package/dist/utils/simpleSearch.mjs.map +1 -0
  453. package/dist/{util → utils}/storage.js +1 -1
  454. package/dist/utils/storage.js.map +1 -0
  455. package/dist/{util → utils}/storage.mjs +1 -1
  456. package/dist/utils/storage.mjs.map +1 -0
  457. package/dist/{util → utils}/writeToClipboard.js +2 -1
  458. package/dist/utils/writeToClipboard.js.map +1 -0
  459. package/dist/{util → utils}/writeToClipboard.mjs +3 -1
  460. package/dist/utils/writeToClipboard.mjs.map +1 -0
  461. package/package.json +8 -8
  462. package/dist/components/dialogs/ConfirmDialog.js +0 -674
  463. package/dist/components/dialogs/ConfirmDialog.js.map +0 -1
  464. package/dist/components/dialogs/ConfirmDialog.mjs +0 -638
  465. package/dist/components/dialogs/ConfirmDialog.mjs.map +0 -1
  466. package/dist/components/icons-and-geometry/Helpwave.js.map +0 -1
  467. package/dist/components/icons-and-geometry/Helpwave.mjs.map +0 -1
  468. package/dist/components/layout-and-navigation/BreadCrumb.js.map +0 -1
  469. package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +0 -1
  470. package/dist/components/layout-and-navigation/Carousel.d.mts +0 -25
  471. package/dist/components/layout-and-navigation/Carousel.d.ts +0 -25
  472. package/dist/components/layout-and-navigation/Carousel.js +0 -641
  473. package/dist/components/layout-and-navigation/Carousel.js.map +0 -1
  474. package/dist/components/layout-and-navigation/Carousel.mjs +0 -607
  475. package/dist/components/layout-and-navigation/Carousel.mjs.map +0 -1
  476. package/dist/components/layout-and-navigation/Chip.js.map +0 -1
  477. package/dist/components/layout-and-navigation/Chip.mjs.map +0 -1
  478. package/dist/components/layout-and-navigation/DividerInserter.js.map +0 -1
  479. package/dist/components/layout-and-navigation/DividerInserter.mjs.map +0 -1
  480. package/dist/components/layout-and-navigation/Expandable.js.map +0 -1
  481. package/dist/components/layout-and-navigation/Expandable.mjs.map +0 -1
  482. package/dist/components/layout-and-navigation/FAQSection.js.map +0 -1
  483. package/dist/components/layout-and-navigation/FAQSection.mjs.map +0 -1
  484. package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +0 -1
  485. package/dist/components/layout-and-navigation/MarkdownInterpreter.mjs.map +0 -1
  486. package/dist/components/layout-and-navigation/Overlay.d.mts +0 -67
  487. package/dist/components/layout-and-navigation/Overlay.d.ts +0 -67
  488. package/dist/components/layout-and-navigation/Overlay.js +0 -702
  489. package/dist/components/layout-and-navigation/Overlay.js.map +0 -1
  490. package/dist/components/layout-and-navigation/Overlay.mjs +0 -665
  491. package/dist/components/layout-and-navigation/Overlay.mjs.map +0 -1
  492. package/dist/components/layout-and-navigation/Pagination.js.map +0 -1
  493. package/dist/components/layout-and-navigation/Pagination.mjs.map +0 -1
  494. package/dist/components/layout-and-navigation/SearchableList.d.mts +0 -24
  495. package/dist/components/layout-and-navigation/SearchableList.d.ts +0 -24
  496. package/dist/components/layout-and-navigation/SearchableList.js +0 -758
  497. package/dist/components/layout-and-navigation/SearchableList.js.map +0 -1
  498. package/dist/components/layout-and-navigation/SearchableList.mjs +0 -724
  499. package/dist/components/layout-and-navigation/SearchableList.mjs.map +0 -1
  500. package/dist/components/layout-and-navigation/StepperBar.js.map +0 -1
  501. package/dist/components/layout-and-navigation/StepperBar.mjs.map +0 -1
  502. package/dist/components/layout-and-navigation/TextImage.js.map +0 -1
  503. package/dist/components/layout-and-navigation/TextImage.mjs.map +0 -1
  504. package/dist/components/layout-and-navigation/Tile.d.mts +0 -27
  505. package/dist/components/layout-and-navigation/Tile.d.ts +0 -27
  506. package/dist/components/layout-and-navigation/Tile.js +0 -96
  507. package/dist/components/layout-and-navigation/Tile.js.map +0 -1
  508. package/dist/components/layout-and-navigation/Tile.mjs +0 -61
  509. package/dist/components/layout-and-navigation/Tile.mjs.map +0 -1
  510. package/dist/components/layout-and-navigation/VerticalDivider.js.map +0 -1
  511. package/dist/components/layout-and-navigation/VerticalDivider.mjs.map +0 -1
  512. package/dist/components/modals/ConfirmModal.d.mts +0 -33
  513. package/dist/components/modals/ConfirmModal.d.ts +0 -33
  514. package/dist/components/modals/ConfirmModal.js +0 -687
  515. package/dist/components/modals/ConfirmModal.js.map +0 -1
  516. package/dist/components/modals/ConfirmModal.mjs +0 -651
  517. package/dist/components/modals/ConfirmModal.mjs.map +0 -1
  518. package/dist/components/modals/DiscardChangesModal.d.mts +0 -20
  519. package/dist/components/modals/DiscardChangesModal.d.ts +0 -20
  520. package/dist/components/modals/DiscardChangesModal.js +0 -717
  521. package/dist/components/modals/DiscardChangesModal.js.map +0 -1
  522. package/dist/components/modals/DiscardChangesModal.mjs +0 -681
  523. package/dist/components/modals/DiscardChangesModal.mjs.map +0 -1
  524. package/dist/components/modals/InputModal.d.mts +0 -21
  525. package/dist/components/modals/InputModal.d.ts +0 -21
  526. package/dist/components/modals/InputModal.js +0 -976
  527. package/dist/components/modals/InputModal.js.map +0 -1
  528. package/dist/components/modals/InputModal.mjs +0 -940
  529. package/dist/components/modals/InputModal.mjs.map +0 -1
  530. package/dist/components/modals/LanguageModal.d.mts +0 -21
  531. package/dist/components/modals/LanguageModal.d.ts +0 -21
  532. package/dist/components/modals/LanguageModal.js +0 -1468
  533. package/dist/components/modals/LanguageModal.js.map +0 -1
  534. package/dist/components/modals/LanguageModal.mjs +0 -1432
  535. package/dist/components/modals/LanguageModal.mjs.map +0 -1
  536. package/dist/components/modals/ThemeModal.d.mts +0 -21
  537. package/dist/components/modals/ThemeModal.d.ts +0 -21
  538. package/dist/components/modals/ThemeModal.js +0 -1497
  539. package/dist/components/modals/ThemeModal.js.map +0 -1
  540. package/dist/components/modals/ThemeModal.mjs +0 -1461
  541. package/dist/components/modals/ThemeModal.mjs.map +0 -1
  542. package/dist/components/user-action/Input.d.mts +0 -77
  543. package/dist/components/user-action/Input.d.ts +0 -77
  544. package/dist/components/user-action/Input.js.map +0 -1
  545. package/dist/components/user-action/Input.mjs +0 -298
  546. package/dist/components/user-action/Input.mjs.map +0 -1
  547. package/dist/components/user-action/MultiSelect.d.mts +0 -42
  548. package/dist/components/user-action/MultiSelect.d.ts +0 -42
  549. package/dist/components/user-action/MultiSelect.js +0 -1468
  550. package/dist/components/user-action/MultiSelect.js.map +0 -1
  551. package/dist/components/user-action/MultiSelect.mjs +0 -1433
  552. package/dist/components/user-action/MultiSelect.mjs.map +0 -1
  553. package/dist/components/user-action/Select.d.mts +0 -41
  554. package/dist/components/user-action/Select.d.ts +0 -41
  555. package/dist/components/user-action/Select.js +0 -1236
  556. package/dist/components/user-action/Select.js.map +0 -1
  557. package/dist/components/user-action/Select.mjs +0 -1201
  558. package/dist/components/user-action/Select.mjs.map +0 -1
  559. package/dist/components/user-action/ToggleableInput.d.mts +0 -37
  560. package/dist/components/user-action/ToggleableInput.d.ts +0 -37
  561. package/dist/components/user-action/ToggleableInput.js +0 -192
  562. package/dist/components/user-action/ToggleableInput.js.map +0 -1
  563. package/dist/components/user-action/ToggleableInput.mjs +0 -157
  564. package/dist/components/user-action/ToggleableInput.mjs.map +0 -1
  565. package/dist/css/uncompiled/textstyles.css +0 -69
  566. package/dist/hooks/useFocusManagement.js.map +0 -1
  567. package/dist/hooks/useFocusManagement.mjs.map +0 -1
  568. package/dist/hooks/useFocusOnceVisible.js.map +0 -1
  569. package/dist/hooks/useFocusOnceVisible.mjs.map +0 -1
  570. package/dist/index.d.mts +0 -103
  571. package/dist/index.d.ts +0 -103
  572. package/dist/index.js +0 -12610
  573. package/dist/index.js.map +0 -1
  574. package/dist/index.mjs +0 -12447
  575. package/dist/index.mjs.map +0 -1
  576. package/dist/util/PropsWithFunctionChildren.d.mts +0 -14
  577. package/dist/util/PropsWithFunctionChildren.d.ts +0 -14
  578. package/dist/util/PropsWithFunctionChildren.js.map +0 -1
  579. package/dist/util/PropsWithFunctionChildren.mjs.map +0 -1
  580. package/dist/util/array.js.map +0 -1
  581. package/dist/util/array.mjs.map +0 -1
  582. package/dist/util/builder.js.map +0 -1
  583. package/dist/util/builder.mjs.map +0 -1
  584. package/dist/util/date.js.map +0 -1
  585. package/dist/util/date.mjs.map +0 -1
  586. package/dist/util/easeFunctions.js.map +0 -1
  587. package/dist/util/easeFunctions.mjs.map +0 -1
  588. package/dist/util/emailValidation.js.map +0 -1
  589. package/dist/util/emailValidation.mjs.map +0 -1
  590. package/dist/util/loopingArray.js.map +0 -1
  591. package/dist/util/loopingArray.mjs.map +0 -1
  592. package/dist/util/math.d.mts +0 -3
  593. package/dist/util/math.d.ts +0 -3
  594. package/dist/util/math.js.map +0 -1
  595. package/dist/util/math.mjs +0 -8
  596. package/dist/util/math.mjs.map +0 -1
  597. package/dist/util/news.d.mts +0 -101
  598. package/dist/util/news.d.ts +0 -101
  599. package/dist/util/news.js +0 -76
  600. package/dist/util/news.js.map +0 -1
  601. package/dist/util/news.mjs +0 -49
  602. package/dist/util/news.mjs.map +0 -1
  603. package/dist/util/noop.js.map +0 -1
  604. package/dist/util/noop.mjs +0 -6
  605. package/dist/util/noop.mjs.map +0 -1
  606. package/dist/util/resolveSetState.js.map +0 -1
  607. package/dist/util/resolveSetState.mjs.map +0 -1
  608. package/dist/util/simpleSearch.js.map +0 -1
  609. package/dist/util/simpleSearch.mjs.map +0 -1
  610. package/dist/util/storage.js.map +0 -1
  611. package/dist/util/storage.mjs.map +0 -1
  612. package/dist/util/types.d.mts +0 -3
  613. package/dist/util/types.d.ts +0 -3
  614. package/dist/util/types.js +0 -18
  615. package/dist/util/types.js.map +0 -1
  616. package/dist/util/types.mjs +0 -1
  617. package/dist/util/types.mjs.map +0 -1
  618. package/dist/util/writeToClipboard.js.map +0 -1
  619. package/dist/util/writeToClipboard.mjs.map +0 -1
  620. /package/dist/components/{layout-and-navigation → layout}/DividerInserter.d.mts +0 -0
  621. /package/dist/components/{layout-and-navigation → layout}/DividerInserter.d.ts +0 -0
  622. /package/dist/components/{layout-and-navigation → layout}/FAQSection.d.mts +0 -0
  623. /package/dist/components/{layout-and-navigation → layout}/FAQSection.d.ts +0 -0
  624. /package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.d.mts +0 -0
  625. /package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.d.ts +0 -0
  626. /package/dist/components/{layout-and-navigation → layout}/TextImage.d.mts +0 -0
  627. /package/dist/components/{layout-and-navigation → layout}/TextImage.d.ts +0 -0
  628. /package/dist/components/{layout-and-navigation → layout}/VerticalDivider.d.mts +0 -0
  629. /package/dist/components/{layout-and-navigation → layout}/VerticalDivider.d.ts +0 -0
  630. /package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.d.mts +0 -0
  631. /package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.d.ts +0 -0
  632. /package/dist/components/{layout-and-navigation → navigation}/Pagination.d.mts +0 -0
  633. /package/dist/components/{layout-and-navigation → navigation}/Pagination.d.ts +0 -0
  634. /package/dist/components/{layout-and-navigation → navigation}/StepperBar.d.mts +0 -0
  635. /package/dist/components/{layout-and-navigation → navigation}/StepperBar.d.ts +0 -0
  636. /package/dist/hooks/{useFocusManagement.d.mts → focus/useFocusManagement.d.mts} +0 -0
  637. /package/dist/hooks/{useFocusManagement.d.ts → focus/useFocusManagement.d.ts} +0 -0
  638. /package/dist/hooks/{useFocusOnceVisible.d.mts → focus/useFocusOnceVisible.d.mts} +0 -0
  639. /package/dist/hooks/{useFocusOnceVisible.d.ts → focus/useFocusOnceVisible.d.ts} +0 -0
  640. /package/dist/{css → style}/uncompiled/theme/colors-basic.css +0 -0
  641. /package/dist/{css → style}/uncompiled/theme/index.css +0 -0
  642. /package/dist/{css → style}/uncompiled/theme/variants.css +0 -0
  643. /package/dist/{css → style}/uncompiled/utitlity/borderradius.css +0 -0
  644. /package/dist/{css → style}/uncompiled/utitlity/general.css +0 -0
  645. /package/dist/{util → utils}/builder.d.mts +0 -0
  646. /package/dist/{util → utils}/builder.d.ts +0 -0
  647. /package/dist/{util → utils}/date.d.mts +0 -0
  648. /package/dist/{util → utils}/date.d.ts +0 -0
  649. /package/dist/{util → utils}/easeFunctions.d.mts +0 -0
  650. /package/dist/{util → utils}/easeFunctions.d.ts +0 -0
  651. /package/dist/{util → utils}/emailValidation.d.mts +0 -0
  652. /package/dist/{util → utils}/emailValidation.d.ts +0 -0
  653. /package/dist/{util → utils}/loopingArray.d.mts +0 -0
  654. /package/dist/{util → utils}/loopingArray.d.ts +0 -0
  655. /package/dist/{util → utils}/noop.d.mts +0 -0
  656. /package/dist/{util → utils}/noop.d.ts +0 -0
  657. /package/dist/{util → utils}/resolveSetState.d.mts +0 -0
  658. /package/dist/{util → utils}/resolveSetState.d.ts +0 -0
  659. /package/dist/{util → utils}/simpleSearch.d.mts +0 -0
  660. /package/dist/{util → utils}/simpleSearch.d.ts +0 -0
  661. /package/dist/{util → utils}/storage.d.mts +0 -0
  662. /package/dist/{util → utils}/storage.d.ts +0 -0
  663. /package/dist/{util → utils}/writeToClipboard.d.mts +0 -0
  664. /package/dist/{util → utils}/writeToClipboard.d.ts +0 -0
@@ -0,0 +1,1367 @@
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_react8 = require("react");
46
+ var import_clsx4 = __toESM(require("clsx"));
47
+
48
+ // src/localization/LanguageProvider.tsx
49
+ var import_react2 = require("react");
50
+
51
+ // src/hooks/useLocalStorage.ts
52
+ var import_react = require("react");
53
+
54
+ // src/localization/util.ts
55
+ var languages = ["en", "de"];
56
+ var languagesLocalNames = {
57
+ en: "English",
58
+ de: "Deutsch"
59
+ };
60
+ var DEFAULT_LANGUAGE = "en";
61
+ var LanguageUtil = {
62
+ languages,
63
+ DEFAULT_LANGUAGE,
64
+ languagesLocalNames
65
+ };
66
+
67
+ // src/localization/LanguageProvider.tsx
68
+ var import_jsx_runtime = require("react/jsx-runtime");
69
+ var LanguageContext = (0, import_react2.createContext)({
70
+ language: LanguageUtil.DEFAULT_LANGUAGE,
71
+ setLanguage: (v) => v
72
+ });
73
+ var useLanguage = () => (0, import_react2.useContext)(LanguageContext);
74
+
75
+ // src/localization/useTranslation.ts
76
+ var TranslationPluralCount = {
77
+ zero: 0,
78
+ one: 1,
79
+ two: 2,
80
+ few: 3,
81
+ many: 11,
82
+ other: -1
83
+ };
84
+ var useTranslation = (translations, overwriteTranslation = {}) => {
85
+ const { language: languageProp, translation: overwrite } = overwriteTranslation;
86
+ const { language: inferredLanguage } = useLanguage();
87
+ const usedLanguage = languageProp ?? inferredLanguage;
88
+ const usedTranslations = [...translations];
89
+ if (overwrite) {
90
+ usedTranslations.push(overwrite);
91
+ }
92
+ return (key, options) => {
93
+ const { count, replacements } = { ...{ count: 0, replacements: {} }, ...options };
94
+ try {
95
+ for (let i = translations.length - 1; i >= 0; i--) {
96
+ const translation = translations[i];
97
+ const localizedTranslation = translation[usedLanguage];
98
+ if (!localizedTranslation) {
99
+ continue;
100
+ }
101
+ const value = localizedTranslation[key];
102
+ if (!value) {
103
+ continue;
104
+ }
105
+ let forProcessing;
106
+ if (typeof value !== "string") {
107
+ if (count === TranslationPluralCount.zero && value?.zero) {
108
+ forProcessing = value.zero;
109
+ } else if (count === TranslationPluralCount.one && value?.one) {
110
+ forProcessing = value.one;
111
+ } else if (count === TranslationPluralCount.two && value?.two) {
112
+ forProcessing = value.two;
113
+ } else if (TranslationPluralCount.few <= count && count < TranslationPluralCount.many && value?.few) {
114
+ forProcessing = value.few;
115
+ } else if (count > TranslationPluralCount.many && value?.many) {
116
+ forProcessing = value.many;
117
+ } else {
118
+ forProcessing = value.other;
119
+ }
120
+ } else {
121
+ forProcessing = value;
122
+ }
123
+ forProcessing = forProcessing.replace(/\{\{(\w+)}}/g, (_, placeholder) => {
124
+ return replacements[placeholder] ?? `{{key:${placeholder}}}`;
125
+ });
126
+ return forProcessing;
127
+ }
128
+ } catch (e) {
129
+ console.error(e);
130
+ }
131
+ return `{{${usedLanguage}:${key}}}`;
132
+ };
133
+ };
134
+
135
+ // src/components/layout/Expandable.tsx
136
+ var import_react3 = require("react");
137
+ var import_lucide_react = require("lucide-react");
138
+ var import_clsx = __toESM(require("clsx"));
139
+
140
+ // src/utils/noop.ts
141
+ var noop = () => void 0;
142
+
143
+ // src/components/layout/Expandable.tsx
144
+ var import_jsx_runtime2 = require("react/jsx-runtime");
145
+ var ExpansionIcon = ({ isExpanded, className }) => {
146
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
147
+ import_lucide_react.ChevronDown,
148
+ {
149
+ "aria-hidden": true,
150
+ className: (0, import_clsx.default)(
151
+ "min-w-6 w-6 min-h-6 h-6 transition-transform motion-safe:duration-200 motion-reduce:duration-0 ease-in-out",
152
+ { "rotate-180": isExpanded },
153
+ className
154
+ )
155
+ }
156
+ );
157
+ };
158
+ var Expandable = (0, import_react3.forwardRef)(function Expandable2({
159
+ children,
160
+ id: providedId,
161
+ label,
162
+ icon,
163
+ isExpanded = false,
164
+ onChange = noop,
165
+ clickOnlyOnHeader = true,
166
+ disabled = false,
167
+ className,
168
+ headerClassName,
169
+ contentClassName,
170
+ contentExpandedClassName
171
+ }, ref) {
172
+ const defaultIcon = (0, import_react3.useCallback)((expanded) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ExpansionIcon, { isExpanded: expanded }), []);
173
+ icon ??= defaultIcon;
174
+ const generatedId = (0, import_react3.useId)();
175
+ const id = providedId ?? generatedId;
176
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
177
+ "div",
178
+ {
179
+ ref,
180
+ onClick: () => !clickOnlyOnHeader && !disabled && onChange(!isExpanded),
181
+ className: (0, import_clsx.default)(
182
+ "flex-col-0 bg-surface text-on-surface group rounded-lg shadow-sm",
183
+ { "cursor-pointer": !clickOnlyOnHeader && !disabled },
184
+ className
185
+ ),
186
+ children: [
187
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
188
+ "button",
189
+ {
190
+ onClick: () => clickOnlyOnHeader && !disabled && onChange(!isExpanded),
191
+ className: (0, import_clsx.default)(
192
+ "flex-row-2 py-2 px-4 rounded-lg justify-between items-center bg-surface text-on-surface select-none",
193
+ {
194
+ "group-hover:brightness-97": !isExpanded,
195
+ "hover:brightness-97": isExpanded && !disabled,
196
+ "cursor-pointer": clickOnlyOnHeader && !disabled
197
+ },
198
+ headerClassName
199
+ ),
200
+ "aria-expanded": isExpanded,
201
+ "aria-controls": `${id}-content`,
202
+ "aria-disabled": disabled ?? void 0,
203
+ children: [
204
+ label,
205
+ icon(isExpanded)
206
+ ]
207
+ }
208
+ ),
209
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
210
+ "div",
211
+ {
212
+ id: `${id}-content`,
213
+ className: (0, import_clsx.default)(
214
+ "flex-col-2 px-4 transition-all duration-300 ease-in-out",
215
+ {
216
+ [(0, import_clsx.default)("max-h-96 opacity-100 pb-2 overflow-y-auto", contentExpandedClassName)]: isExpanded,
217
+ "max-h-0 opacity-0 overflow-hidden": !isExpanded
218
+ },
219
+ contentClassName
220
+ ),
221
+ role: "region",
222
+ children
223
+ }
224
+ )
225
+ ]
226
+ }
227
+ );
228
+ });
229
+ var ExpandableUncontrolled = (0, import_react3.forwardRef)(function ExpandableUncontrolled2({
230
+ isExpanded,
231
+ onChange = noop,
232
+ ...props
233
+ }, ref) {
234
+ const [usedIsExpanded, setUsedIsExpanded] = (0, import_react3.useState)(isExpanded);
235
+ (0, import_react3.useEffect)(() => {
236
+ setUsedIsExpanded(isExpanded);
237
+ }, [isExpanded]);
238
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
239
+ Expandable,
240
+ {
241
+ ...props,
242
+ ref,
243
+ isExpanded: usedIsExpanded,
244
+ onChange: (value) => {
245
+ onChange(value);
246
+ setUsedIsExpanded(value);
247
+ }
248
+ }
249
+ );
250
+ });
251
+
252
+ // src/hooks/focus/useFocusTrap.ts
253
+ var import_react5 = require("react");
254
+
255
+ // src/hooks/focus/useIsMounted.ts
256
+ var import_react4 = require("react");
257
+ var isClient = typeof window !== "undefined" && typeof document !== "undefined";
258
+ var useIsomorphicEffect = isClient ? import_react4.useLayoutEffect : import_react4.useEffect;
259
+ var useIsMounted = () => {
260
+ const [isMounted, setIsMounted] = (0, import_react4.useState)(false);
261
+ useIsomorphicEffect(() => {
262
+ setIsMounted(true);
263
+ return () => {
264
+ setIsMounted(false);
265
+ };
266
+ }, []);
267
+ return isMounted;
268
+ };
269
+
270
+ // src/hooks/focus/useFocusTrap.ts
271
+ var createFocusGuard = () => {
272
+ const div = document.createElement("div");
273
+ Object.assign(div.style, {
274
+ opacity: "0",
275
+ outline: "none",
276
+ boxShadow: "none",
277
+ position: "fixed",
278
+ pointerEvents: "none",
279
+ touchAction: "none"
280
+ });
281
+ div.tabIndex = 0;
282
+ div.setAttribute("data-hw-focus-guard", "");
283
+ document.body.appendChild(div);
284
+ return div;
285
+ };
286
+ function getContainedFocusableElements(element) {
287
+ return element?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
288
+ }
289
+ var FocusTrapService = class {
290
+ constructor() {
291
+ // The last entry is always the active one
292
+ this.listeners = [];
293
+ this.onFocusIn = (event) => {
294
+ const active = this.getActive();
295
+ if (!active || !active.container.current) return;
296
+ const { container } = active;
297
+ if (!container.current.contains(event.target)) {
298
+ this.focusElement();
299
+ }
300
+ };
301
+ }
302
+ getActive() {
303
+ if (this.listeners.length === 0) return void 0;
304
+ return this.listeners[this.listeners.length - 1];
305
+ }
306
+ focusElement() {
307
+ const active = this.getActive();
308
+ if (!active) return;
309
+ const { container, initialFocusElement } = active;
310
+ const containerElement = container.current;
311
+ if (initialFocusElement?.current) {
312
+ initialFocusElement.current.focus();
313
+ } else {
314
+ const elements = getContainedFocusableElements(containerElement);
315
+ if (elements && elements.length > 0) {
316
+ const first = elements.item(0);
317
+ first.focus();
318
+ } else {
319
+ containerElement.focus();
320
+ }
321
+ }
322
+ }
323
+ removeGuards() {
324
+ document.querySelectorAll("[data-hw-focus-guard]").forEach((node) => node.remove());
325
+ }
326
+ addGuards() {
327
+ document.body.insertAdjacentElement("afterbegin", createFocusGuard());
328
+ document.body.insertAdjacentElement("beforeend", createFocusGuard());
329
+ }
330
+ activate() {
331
+ document.addEventListener("focusin", this.onFocusIn);
332
+ this.addGuards();
333
+ }
334
+ deactivate() {
335
+ document.removeEventListener("focusin", this.onFocusIn);
336
+ this.removeGuards();
337
+ }
338
+ register(listener) {
339
+ this.listeners.push(listener);
340
+ if (this.listeners.length === 1) {
341
+ this.activate();
342
+ }
343
+ const active = listener;
344
+ this.listeners.forEach((listener2) => {
345
+ const { focus, pause } = listener2;
346
+ if (listener2 === active) {
347
+ focus();
348
+ } else {
349
+ pause();
350
+ }
351
+ });
352
+ }
353
+ unregister(id) {
354
+ const index = this.listeners.findIndex((trap) => trap.id === id);
355
+ if (index !== -1) {
356
+ const isActive = index === this.listeners.length - 1;
357
+ const listener = this.listeners[index];
358
+ this.listeners = this.listeners.filter((listener2) => listener2.id !== id);
359
+ if (isActive) {
360
+ this.deactivate();
361
+ listener.focusLast();
362
+ const active = this.getActive();
363
+ this.listeners.forEach((listener2) => {
364
+ const { pause, unpause } = listener2;
365
+ if (listener2 === active) {
366
+ unpause();
367
+ } else {
368
+ pause();
369
+ }
370
+ });
371
+ if (this.listeners.length > 0) {
372
+ this.activate();
373
+ }
374
+ }
375
+ } else {
376
+ console.warn(`Unable to unregister id ${id}: not found`);
377
+ }
378
+ }
379
+ };
380
+ var service = new FocusTrapService();
381
+ var useFocusTrap = ({
382
+ container,
383
+ active = true,
384
+ initialFocus,
385
+ focusFirst = true
386
+ }) => {
387
+ const lastFocusRef = (0, import_react5.useRef)(null);
388
+ const [paused, setPaused] = (0, import_react5.useState)(false);
389
+ const isMounted = useIsMounted();
390
+ const id = (0, import_react5.useId)();
391
+ const focusElement = (0, import_react5.useCallback)(() => {
392
+ const containerElement = container.current;
393
+ if (initialFocus?.current) {
394
+ initialFocus.current.focus();
395
+ } else {
396
+ const elements = getContainedFocusableElements(containerElement);
397
+ if (elements && elements.length > 0) {
398
+ const first = elements.item(0);
399
+ first.focus();
400
+ } else {
401
+ containerElement.focus();
402
+ }
403
+ }
404
+ }, [container, initialFocus]);
405
+ (0, import_react5.useEffect)(() => {
406
+ if (active && isMounted) {
407
+ let pause = function() {
408
+ setPaused(true);
409
+ }, unpause = function() {
410
+ setPaused(false);
411
+ if (!container.current.contains(document.activeElement)) {
412
+ focusElement();
413
+ }
414
+ }, focus = function() {
415
+ focusElement();
416
+ setPaused(false);
417
+ }, focusLast = function() {
418
+ lastFocusRef.current?.focus();
419
+ };
420
+ if (!lastFocusRef.current) {
421
+ lastFocusRef.current = document.activeElement;
422
+ }
423
+ service.register({ id, pause, focus, focusLast, unpause, container, initialFocusElement: initialFocus });
424
+ return () => {
425
+ service.unregister(id);
426
+ lastFocusRef.current = void 0;
427
+ };
428
+ }
429
+ }, [active, container, focusElement, id, initialFocus, isMounted]);
430
+ (0, import_react5.useEffect)(() => {
431
+ if (active && !paused && isMounted) {
432
+ let onKeyDown = function(event) {
433
+ const key = event.key;
434
+ const elements = getContainedFocusableElements(containerElement);
435
+ const active2 = document.activeElement;
436
+ const index = [...elements].findIndex((value) => value === active2);
437
+ if (index === -1 || event.altKey || event.ctrlKey || event.metaKey) {
438
+ return;
439
+ }
440
+ if (key === "Tab") {
441
+ const next = event.shiftKey ? -1 : 1;
442
+ const nextIndex = (index + next + elements.length) % elements.length;
443
+ const nextElement = elements[nextIndex];
444
+ nextElement.focus();
445
+ event.preventDefault();
446
+ }
447
+ };
448
+ const containerElement = container.current;
449
+ containerElement.addEventListener("keydown", onKeyDown);
450
+ return () => {
451
+ containerElement.removeEventListener("keydown", onKeyDown);
452
+ };
453
+ }
454
+ }, [active, paused, isMounted, container, initialFocus, focusFirst, focusElement]);
455
+ };
456
+
457
+ // src/utils/match.ts
458
+ var match = (key, values) => {
459
+ return values[key];
460
+ };
461
+
462
+ // src/components/user-action/select/Select.tsx
463
+ var import_lucide_react2 = require("lucide-react");
464
+
465
+ // src/components/layout/Chip.tsx
466
+ var import_clsx2 = __toESM(require("clsx"));
467
+ var import_jsx_runtime3 = require("react/jsx-runtime");
468
+ var Chip = ({
469
+ children,
470
+ trailingIcon,
471
+ color = "default",
472
+ size = "md",
473
+ icon = false,
474
+ variant = "normal",
475
+ className = "",
476
+ ...restProps
477
+ }) => {
478
+ const colorMapping = {
479
+ default: "text-tag-default-text bg-tag-default-background",
480
+ dark: "text-tag-dark-text bg-tag-dark-background",
481
+ red: "text-tag-red-text bg-tag-red-background",
482
+ yellow: "text-tag-yellow-text bg-tag-yellow-background",
483
+ green: "text-tag-green-text bg-tag-green-background",
484
+ blue: "text-tag-blue-text bg-tag-blue-background",
485
+ pink: "text-tag-pink-text bg-tag-pink-background",
486
+ orange: "text-tag-orange-text bg-tag-orange-background"
487
+ }[color];
488
+ const colorMappingIcon = {
489
+ default: "text-tag-default-icon",
490
+ dark: "text-tag-dark-icon",
491
+ red: "text-tag-red-icon",
492
+ yellow: "text-tag-yellow-icon",
493
+ green: "text-tag-green-icon",
494
+ blue: "text-tag-blue-icon",
495
+ pink: "text-tag-pink-icon",
496
+ orange: "text-tag-orange-icon"
497
+ }[color];
498
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
499
+ "div",
500
+ {
501
+ ...restProps,
502
+ className: (0, import_clsx2.default)(
503
+ `flex-row-0 w-fit font-semibold`,
504
+ colorMapping,
505
+ !icon ? {
506
+ "px-1 py-0.5": size === "sm",
507
+ "px-2 py-1": size === "md",
508
+ "px-4 py-2": size === "lg"
509
+ } : {
510
+ "p-0.5": size === "sm",
511
+ "p-1": size === "md",
512
+ "p-2": size === "lg"
513
+ },
514
+ {
515
+ "rounded-md": variant === "normal",
516
+ "rounded-full": variant === "fullyRounded"
517
+ },
518
+ className
519
+ ),
520
+ children: [
521
+ children,
522
+ trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: colorMappingIcon, children: trailingIcon })
523
+ ]
524
+ }
525
+ );
526
+ };
527
+
528
+ // src/components/user-action/Button.tsx
529
+ var import_react6 = require("react");
530
+ var import_clsx3 = __toESM(require("clsx"));
531
+ var import_jsx_runtime4 = require("react/jsx-runtime");
532
+ var ButtonColorUtil = {
533
+ solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
534
+ text: ["primary", "negative", "neutral"],
535
+ outline: ["primary"]
536
+ };
537
+ var IconButtonUtil = {
538
+ icon: [...ButtonColorUtil.solid, "transparent"]
539
+ };
540
+ var paddingMapping = {
541
+ small: "btn-sm",
542
+ medium: "btn-md",
543
+ large: "btn-lg"
544
+ };
545
+ var iconPaddingMapping = {
546
+ tiny: "icon-btn-xs",
547
+ small: "icon-btn-sm",
548
+ medium: "icon-btn-md",
549
+ large: "icon-btn-lg"
550
+ };
551
+ var ButtonUtil = {
552
+ paddingMapping,
553
+ iconPaddingMapping
554
+ };
555
+ var SolidButton = (0, import_react6.forwardRef)(function SolidButton2({
556
+ children,
557
+ color = "primary",
558
+ size = "medium",
559
+ startIcon,
560
+ endIcon,
561
+ onClick,
562
+ className,
563
+ ...restProps
564
+ }, ref) {
565
+ const colorClasses = {
566
+ primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
567
+ secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
568
+ tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
569
+ positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
570
+ warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
571
+ negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
572
+ neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
573
+ }[color];
574
+ const iconColorClasses = {
575
+ primary: "not-group-disabled:text-button-solid-primary-icon",
576
+ secondary: "not-group-disabled:text-button-solid-secondary-icon",
577
+ tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
578
+ positive: "not-group-disabled:text-button-solid-positive-icon",
579
+ warning: "not-group-disabled:text-button-solid-warning-icon",
580
+ negative: "not-group-disabled:text-button-solid-negative-icon",
581
+ neutral: "not-group-disabled:text-button-solid-neutral-icon"
582
+ }[color];
583
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
584
+ "button",
585
+ {
586
+ ref,
587
+ onClick,
588
+ className: (0, import_clsx3.default)(
589
+ "group font-semibold",
590
+ colorClasses,
591
+ "not-disabled:hover:brightness-90",
592
+ "disabled:text-disabled-text disabled:bg-disabled-background",
593
+ ButtonUtil.paddingMapping[size],
594
+ className
595
+ ),
596
+ ...restProps,
597
+ children: [
598
+ startIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
599
+ "span",
600
+ {
601
+ className: (0, import_clsx3.default)(
602
+ iconColorClasses,
603
+ "group-disabled:text-disabled-icon"
604
+ ),
605
+ children: startIcon
606
+ }
607
+ ),
608
+ children,
609
+ endIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
610
+ "span",
611
+ {
612
+ className: (0, import_clsx3.default)(
613
+ iconColorClasses,
614
+ "group-disabled:text-disabled-icon"
615
+ ),
616
+ children: endIcon
617
+ }
618
+ )
619
+ ]
620
+ }
621
+ );
622
+ });
623
+ var IconButton = (0, import_react6.forwardRef)(function IconButton2({
624
+ children,
625
+ color = "primary",
626
+ size = "medium",
627
+ className,
628
+ ...restProps
629
+ }, ref) {
630
+ const colorClasses = {
631
+ primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
632
+ secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
633
+ tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
634
+ positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
635
+ warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
636
+ negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
637
+ neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
638
+ transparent: "not-disabled:bg-transparent"
639
+ }[color];
640
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
641
+ "button",
642
+ {
643
+ ref,
644
+ className: (0, import_clsx3.default)(
645
+ colorClasses,
646
+ "not-disabled:hover:brightness-90",
647
+ "disabled:text-disabled-text",
648
+ {
649
+ "disabled:bg-disabled-background": color !== "transparent",
650
+ "disabled:opacity-70": color === "transparent",
651
+ "not-disabled:hover:bg-button-text-hover-background": color === "transparent"
652
+ },
653
+ ButtonUtil.iconPaddingMapping[size],
654
+ className
655
+ ),
656
+ ...restProps,
657
+ children
658
+ }
659
+ );
660
+ });
661
+
662
+ // src/hooks/useFloatingElement.ts
663
+ var import_react7 = require("react");
664
+
665
+ // src/utils/math.ts
666
+ var clamp = (value, range = [0, 1]) => {
667
+ const [min, max] = range;
668
+ return Math.min(Math.max(value, min), max);
669
+ };
670
+
671
+ // src/hooks/useFloatingElement.ts
672
+ function calculatePosition({
673
+ windowRect,
674
+ containerRect,
675
+ anchorRect,
676
+ options
677
+ }) {
678
+ const { verticalAlignment, horizontalAlignment, gap, screenPadding } = options;
679
+ const windowWidth = windowRect.width;
680
+ const windowHeight = windowRect.height;
681
+ const maxWidth = windowWidth - 2 * screenPadding;
682
+ const maxHeight = windowHeight - 2 * screenPadding;
683
+ const width = Math.min(containerRect.width, maxWidth);
684
+ const height = Math.min(containerRect.height, maxHeight);
685
+ const leftSuggestion = {
686
+ beforeStart: anchorRect.left - width - gap,
687
+ afterStart: anchorRect.left,
688
+ center: anchorRect.left + anchorRect.width / 2 - width / 2,
689
+ beforeEnd: anchorRect.right - width,
690
+ afterEnd: anchorRect.right + gap
691
+ }[horizontalAlignment];
692
+ const topSuggestion = {
693
+ beforeStart: anchorRect.top - height - gap,
694
+ afterStart: anchorRect.top,
695
+ center: anchorRect.top + anchorRect.height / 2 - height / 2,
696
+ beforeEnd: anchorRect.bottom - height,
697
+ afterEnd: anchorRect.bottom + gap
698
+ }[verticalAlignment];
699
+ const left = clamp(leftSuggestion, [
700
+ screenPadding,
701
+ windowWidth - screenPadding - width
702
+ ]);
703
+ const top = clamp(topSuggestion, [
704
+ screenPadding,
705
+ windowHeight - screenPadding - height
706
+ ]);
707
+ return {
708
+ left,
709
+ top,
710
+ maxWidth,
711
+ maxHeight
712
+ };
713
+ }
714
+ function useFloatingElement({
715
+ active = true,
716
+ windowRef,
717
+ anchorRef,
718
+ containerRef,
719
+ isPolling = false,
720
+ pollingInterval = 100,
721
+ verticalAlignment = "afterEnd",
722
+ horizontalAlignment = "afterStart",
723
+ screenPadding = 16,
724
+ gap = 4
725
+ }) {
726
+ const [style, setStyle] = (0, import_react7.useState)();
727
+ const isMounted = useIsMounted();
728
+ const calculate = (0, import_react7.useCallback)(() => {
729
+ const containerRect = containerRef.current.getBoundingClientRect();
730
+ const windowRect = windowRef?.current.getBoundingClientRect() ?? {
731
+ top: 0,
732
+ bottom: window.innerHeight,
733
+ left: 0,
734
+ right: window.innerWidth,
735
+ width: window.innerWidth,
736
+ height: window.innerHeight
737
+ };
738
+ const anchorElement = anchorRef?.current;
739
+ if (anchorRef && !anchorElement) {
740
+ console.warn("FloatingContainer anchor provided, but its value is undefined");
741
+ }
742
+ const anchorRect = anchorElement?.getBoundingClientRect() ?? windowRect;
743
+ const calculateProps = {
744
+ windowRect,
745
+ anchorRect,
746
+ containerRect,
747
+ options: {
748
+ horizontalAlignment,
749
+ verticalAlignment,
750
+ screenPadding,
751
+ gap
752
+ }
753
+ };
754
+ setStyle(calculatePosition(calculateProps));
755
+ }, [anchorRef, containerRef, gap, horizontalAlignment, screenPadding, verticalAlignment, windowRef]);
756
+ const height = containerRef.current?.getBoundingClientRect().height;
757
+ const width = containerRef.current?.getBoundingClientRect().width;
758
+ (0, import_react7.useEffect)(() => {
759
+ if (active && isMounted) {
760
+ calculate();
761
+ } else {
762
+ setStyle(void 0);
763
+ }
764
+ }, [calculate, active, isMounted, height, width]);
765
+ (0, import_react7.useEffect)(() => {
766
+ window.addEventListener("resize", calculate);
767
+ let timeout;
768
+ if (isPolling) {
769
+ timeout = setInterval(calculate, pollingInterval);
770
+ }
771
+ return () => {
772
+ window.removeEventListener("resize", calculate);
773
+ if (timeout) {
774
+ clearInterval(timeout);
775
+ }
776
+ };
777
+ }, [calculate, isPolling, pollingInterval]);
778
+ return style;
779
+ }
780
+
781
+ // src/components/user-action/select/Select.tsx
782
+ var import_react_dom = require("react-dom");
783
+ var import_jsx_runtime5 = require("react/jsx-runtime");
784
+ var defaultToggleOpenOptions = {
785
+ highlightStartPosition: "first"
786
+ };
787
+ var SelectContext = (0, import_react8.createContext)(null);
788
+ function useSelectContext() {
789
+ const ctx = (0, import_react8.useContext)(SelectContext);
790
+ if (!ctx) {
791
+ throw new Error("SelectContext must be used within a ListBoxPrimitive");
792
+ }
793
+ return ctx;
794
+ }
795
+ var SelectRoot = ({
796
+ children,
797
+ id,
798
+ value,
799
+ onValueChanged,
800
+ values,
801
+ onValuesChanged,
802
+ isOpen = false,
803
+ disabled = false,
804
+ invalid = false,
805
+ isMultiSelect = false,
806
+ iconAppearance = "left"
807
+ }) => {
808
+ const optionsRef = (0, import_react8.useRef)([]);
809
+ const triggerRef = (0, import_react8.useRef)(null);
810
+ const generatedId = (0, import_react8.useId)();
811
+ const usedId = id ?? generatedId;
812
+ const [internalState, setInternalState] = (0, import_react8.useState)({
813
+ isOpen
814
+ });
815
+ const state = {
816
+ ...internalState,
817
+ id: usedId,
818
+ disabled,
819
+ invalid,
820
+ value: isMultiSelect ? values ?? [] : [value].filter(Boolean)
821
+ };
822
+ const config = {
823
+ isMultiSelect,
824
+ iconAppearance
825
+ };
826
+ const registerItem = (0, import_react8.useCallback)((item) => {
827
+ optionsRef.current.push(item);
828
+ optionsRef.current.sort((a, b) => {
829
+ const aEl = a.ref.current;
830
+ const bEl = b.ref.current;
831
+ if (!aEl || !bEl) return 0;
832
+ return aEl.compareDocumentPosition(bEl) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
833
+ });
834
+ }, []);
835
+ const unregisterItem = (0, import_react8.useCallback)((value2) => {
836
+ optionsRef.current = optionsRef.current.filter((i) => i.value !== value2);
837
+ }, []);
838
+ const toggleSelection = (value2, isSelected) => {
839
+ if (disabled) {
840
+ return;
841
+ }
842
+ const option = optionsRef.current.find((i) => i.value === value2);
843
+ if (!option) {
844
+ console.error(`SelectOption with value: ${value2} not found`);
845
+ return;
846
+ }
847
+ let newValue;
848
+ if (isMultiSelect) {
849
+ const isSelectedBefore = state.value.includes(value2);
850
+ const isSelectedAfter = isSelected ?? !isSelectedBefore;
851
+ if (!isSelectedAfter) {
852
+ newValue = state.value.filter((v) => v !== value2);
853
+ } else {
854
+ newValue = [...state.value, value2];
855
+ }
856
+ } else {
857
+ newValue = [value2];
858
+ }
859
+ if (!isMultiSelect) {
860
+ onValueChanged?.(newValue[0]);
861
+ } else {
862
+ onValuesChanged?.(newValue);
863
+ }
864
+ setInternalState((prevState) => ({
865
+ ...prevState,
866
+ highlightedValue: value2
867
+ }));
868
+ };
869
+ const highlightItem = (value2) => {
870
+ if (disabled) {
871
+ return;
872
+ }
873
+ setInternalState((prevState) => ({
874
+ ...prevState,
875
+ highlightedValue: value2
876
+ }));
877
+ };
878
+ const registerTrigger = (0, import_react8.useCallback)((ref) => {
879
+ triggerRef.current = ref.current;
880
+ }, []);
881
+ const unregisterTrigger = (0, import_react8.useCallback)(() => {
882
+ triggerRef.current = null;
883
+ }, []);
884
+ const toggleOpen = (isOpen2, options) => {
885
+ const { highlightStartPosition } = { ...defaultToggleOpenOptions, ...options };
886
+ let highlightedIndex;
887
+ if (highlightStartPosition === "first") {
888
+ highlightedIndex = optionsRef.current.findIndex((option) => !option.disabled);
889
+ } else {
890
+ highlightedIndex = optionsRef.current.length - 1 - [...optionsRef.current].reverse().findIndex((option) => !option.disabled);
891
+ }
892
+ if (highlightedIndex === -1 || highlightedIndex === optionsRef.current.length) {
893
+ highlightedIndex = 0;
894
+ }
895
+ setInternalState((prevState) => ({
896
+ ...prevState,
897
+ isOpen: isOpen2 ?? !prevState.isOpen,
898
+ highlightedValue: optionsRef.current[highlightedIndex].value
899
+ }));
900
+ };
901
+ const moveHighlightedIndex = (delta) => {
902
+ let highlightedIndex = optionsRef.current.findIndex((value2) => value2.value === internalState.highlightedValue);
903
+ if (highlightedIndex === -1) {
904
+ highlightedIndex = 0;
905
+ }
906
+ const optionLength = optionsRef.current.length;
907
+ const startIndex = (highlightedIndex + delta % optionLength + optionLength) % optionLength;
908
+ const isForward = delta >= 0;
909
+ let highlightedValue = optionsRef.current[startIndex].value;
910
+ for (let i = 0; i < optionsRef.current.length; i++) {
911
+ const index = (startIndex + (isForward ? i : -i) + optionLength) % optionLength;
912
+ if (!optionsRef.current[index].disabled) {
913
+ highlightedValue = optionsRef.current[index].value;
914
+ break;
915
+ }
916
+ }
917
+ setInternalState((prevState) => ({
918
+ ...prevState,
919
+ highlightedValue
920
+ }));
921
+ };
922
+ (0, import_react8.useEffect)(() => {
923
+ if (!internalState.highlightedValue) return;
924
+ const highlighted = optionsRef.current.find((value2) => value2.value === internalState.highlightedValue);
925
+ if (highlighted) {
926
+ highlighted.ref.current.scrollIntoView({ behavior: "instant", block: "nearest" });
927
+ } else {
928
+ console.error(`SelectRoot: Could not find highlighted value (${internalState.highlightedValue})`);
929
+ }
930
+ }, [internalState.highlightedValue]);
931
+ const contextValue = {
932
+ state,
933
+ config,
934
+ item: {
935
+ register: registerItem,
936
+ unregister: unregisterItem,
937
+ toggleSelection,
938
+ highlightItem,
939
+ moveHighlightedIndex
940
+ },
941
+ trigger: {
942
+ ref: triggerRef,
943
+ register: registerTrigger,
944
+ unregister: unregisterTrigger,
945
+ toggleOpen
946
+ }
947
+ };
948
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContext.Provider, { value: contextValue, children });
949
+ };
950
+ var SelectOption = (0, import_react8.forwardRef)(
951
+ function SelectOption2({ children, value, disabled = false, iconAppearance, className, ...restProps }, ref) {
952
+ const { state, config, item, trigger } = useSelectContext();
953
+ const { register, unregister, toggleSelection, highlightItem } = item;
954
+ const itemRef = (0, import_react8.useRef)(null);
955
+ iconAppearance ??= config.iconAppearance;
956
+ (0, import_react8.useEffect)(() => {
957
+ register({
958
+ value,
959
+ disabled,
960
+ ref: itemRef
961
+ });
962
+ return () => unregister(value);
963
+ }, [value, disabled, register, unregister, children]);
964
+ const isHighlighted = state.highlightedValue === value;
965
+ const isSelected = state.value.includes(value);
966
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
967
+ "li",
968
+ {
969
+ ...restProps,
970
+ ref: (node) => {
971
+ itemRef.current = node;
972
+ if (typeof ref === "function") ref(node);
973
+ else if (ref) ref.current = node;
974
+ },
975
+ id: value,
976
+ role: "option",
977
+ "aria-disabled": disabled,
978
+ "aria-selected": isSelected,
979
+ "data-highlighted": isHighlighted ? "" : void 0,
980
+ "data-selected": isSelected ? "" : void 0,
981
+ "data-disabled": disabled ? "" : void 0,
982
+ className: (0, import_clsx4.default)(
983
+ "flex-row-1 items-center px-2 py-1 rounded-md",
984
+ "data-highlighted:bg-primary/20",
985
+ "data-disabled:text-disabled data-disabled:cursor-not-allowed",
986
+ "not-data-disabled:cursor-pointer",
987
+ className
988
+ ),
989
+ onClick: (event) => {
990
+ if (!disabled) {
991
+ toggleSelection(value);
992
+ if (!config.isMultiSelect) {
993
+ trigger.toggleOpen(false);
994
+ }
995
+ restProps.onClick?.(event);
996
+ }
997
+ },
998
+ onMouseEnter: (event) => {
999
+ if (!disabled) {
1000
+ highlightItem(value);
1001
+ restProps.onMouseEnter?.(event);
1002
+ }
1003
+ },
1004
+ children: [
1005
+ iconAppearance === "left" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1006
+ import_lucide_react2.CheckIcon,
1007
+ {
1008
+ className: (0, import_clsx4.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
1009
+ "aria-hidden": true
1010
+ }
1011
+ ),
1012
+ children ?? value,
1013
+ iconAppearance === "right" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1014
+ import_lucide_react2.CheckIcon,
1015
+ {
1016
+ className: (0, import_clsx4.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
1017
+ "aria-hidden": true
1018
+ }
1019
+ )
1020
+ ]
1021
+ }
1022
+ );
1023
+ }
1024
+ );
1025
+ var defaultSelectButtonTranslation = {
1026
+ en: {
1027
+ clickToSelect: "Click to select"
1028
+ },
1029
+ de: {
1030
+ clickToSelect: "Zum ausw\xE4hlen dr\xFCcken"
1031
+ }
1032
+ };
1033
+ var SelectButton = (0, import_react8.forwardRef)(function SelectButton2({ placeholder, selectedDisplay, ...props }, ref) {
1034
+ const translation = useTranslation([defaultSelectButtonTranslation]);
1035
+ const { state, trigger } = useSelectContext();
1036
+ const { register, unregister, toggleOpen } = trigger;
1037
+ const innerRef = (0, import_react8.useRef)(null);
1038
+ (0, import_react8.useImperativeHandle)(ref, () => innerRef.current);
1039
+ (0, import_react8.useEffect)(() => {
1040
+ register(innerRef);
1041
+ return () => unregister();
1042
+ }, [register, unregister]);
1043
+ const disabled = !!props?.disabled || !!state.disabled;
1044
+ const invalid = state.invalid;
1045
+ const hasValue = state.value.length > 0;
1046
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1047
+ "button",
1048
+ {
1049
+ ...props,
1050
+ ref: innerRef,
1051
+ id: state.id,
1052
+ className: (0, import_clsx4.default)(
1053
+ "flex-row-2 items-center justify-between bg-input-background text-input-text rounded-md px-2.5 py-2.5",
1054
+ "data-placeholder:text-description",
1055
+ props.className
1056
+ ),
1057
+ onClick: () => toggleOpen(!state.isOpen),
1058
+ onKeyDown: (event) => {
1059
+ switch (event.key) {
1060
+ case "ArrowDown":
1061
+ toggleOpen(true, { highlightStartPosition: "first" });
1062
+ break;
1063
+ case "ArrowUp":
1064
+ toggleOpen(true, { highlightStartPosition: "last" });
1065
+ break;
1066
+ }
1067
+ },
1068
+ "data-placeholder": !hasValue ? "" : void 0,
1069
+ "data-disabled": disabled ? "" : void 0,
1070
+ "data-invalid": invalid ? "" : void 0,
1071
+ "aria-invalid": invalid,
1072
+ "aria-disabled": disabled,
1073
+ "aria-haspopup": "listbox",
1074
+ "aria-expanded": state.isOpen,
1075
+ "aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
1076
+ children: [
1077
+ hasValue ? selectedDisplay?.(state.value) ?? state.value.join(", ") : placeholder ?? translation("clickToSelect"),
1078
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ExpansionIcon, { isExpanded: state.isOpen })
1079
+ ]
1080
+ }
1081
+ );
1082
+ });
1083
+ var SelectChipDisplay = (0, import_react8.forwardRef)(function SelectChipDisplay2({ ...props }, ref) {
1084
+ const { state, trigger, item } = useSelectContext();
1085
+ const { register, unregister, toggleOpen } = trigger;
1086
+ const innerRef = (0, import_react8.useRef)(null);
1087
+ (0, import_react8.useImperativeHandle)(ref, () => innerRef.current);
1088
+ (0, import_react8.useEffect)(() => {
1089
+ register(innerRef);
1090
+ return () => unregister();
1091
+ }, [register, unregister]);
1092
+ const disabled = !!props?.disabled || !!state.disabled;
1093
+ const invalid = state.invalid;
1094
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1095
+ "div",
1096
+ {
1097
+ ...props,
1098
+ ref: innerRef,
1099
+ className: (0, import_clsx4.default)(
1100
+ "flex flex-wrap flex-row gap-2 items-center bg-input-background text-input-text rounded-md px-2.5 py-2.5",
1101
+ props.className
1102
+ ),
1103
+ "data-disabled": disabled ? "" : void 0,
1104
+ "data-invalid": invalid ? "" : void 0,
1105
+ "aria-invalid": invalid,
1106
+ "aria-disabled": disabled,
1107
+ children: [
1108
+ state.value.map((value) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Chip, { className: "gap-x-2", children: [
1109
+ value,
1110
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1111
+ "button",
1112
+ {
1113
+ onClick: () => {
1114
+ item.toggleSelection(value, false);
1115
+ },
1116
+ className: "focus-within:text-negative hover:bg-negative/20 hover:text-negative rounded-md focus-style-none focus-visible:ring-2 focus-visible:ring-negative focus-visible:bg-negative/20",
1117
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.XIcon, {})
1118
+ }
1119
+ )
1120
+ ] }, value)),
1121
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1122
+ IconButton,
1123
+ {
1124
+ id: state.id,
1125
+ onClick: () => toggleOpen(),
1126
+ onKeyDown: (event) => {
1127
+ switch (event.key) {
1128
+ case "ArrowDown":
1129
+ toggleOpen(true, { highlightStartPosition: "first" });
1130
+ break;
1131
+ case "ArrowUp":
1132
+ toggleOpen(true, { highlightStartPosition: "last" });
1133
+ }
1134
+ },
1135
+ size: "small",
1136
+ color: "neutral",
1137
+ "aria-invalid": invalid,
1138
+ "aria-disabled": disabled,
1139
+ "aria-haspopup": "listbox",
1140
+ "aria-expanded": state.isOpen,
1141
+ "aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
1142
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Plus, {})
1143
+ }
1144
+ )
1145
+ ]
1146
+ }
1147
+ );
1148
+ });
1149
+ var SelectContent = (0, import_react8.forwardRef)(
1150
+ function SelectContent2({
1151
+ alignment,
1152
+ orientation = "vertical",
1153
+ ...props
1154
+ }, ref) {
1155
+ const innerRef = (0, import_react8.useRef)(null);
1156
+ (0, import_react8.useImperativeHandle)(ref, () => innerRef.current);
1157
+ const { trigger, state, config, item } = useSelectContext();
1158
+ const position = useFloatingElement({
1159
+ active: state.isOpen,
1160
+ anchorRef: trigger.ref,
1161
+ containerRef: innerRef,
1162
+ ...alignment
1163
+ });
1164
+ useFocusTrap({
1165
+ container: innerRef,
1166
+ active: state.isOpen && !!position
1167
+ });
1168
+ return (0, import_react_dom.createPortal)(
1169
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
1170
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1171
+ "div",
1172
+ {
1173
+ hidden: !state.isOpen,
1174
+ onClick: () => trigger.toggleOpen(false),
1175
+ className: (0, import_clsx4.default)("fixed w-screen h-screen inset-0")
1176
+ }
1177
+ ),
1178
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1179
+ "ul",
1180
+ {
1181
+ ...props,
1182
+ id: `${state.id}-listbox`,
1183
+ ref: innerRef,
1184
+ hidden: !state.isOpen,
1185
+ onKeyDown: (event) => {
1186
+ switch (event.key) {
1187
+ case "Escape":
1188
+ trigger.toggleOpen(false);
1189
+ event.preventDefault();
1190
+ event.stopPropagation();
1191
+ break;
1192
+ case match(orientation, {
1193
+ vertical: "ArrowDown",
1194
+ horizontal: "ArrowUp"
1195
+ }):
1196
+ item.moveHighlightedIndex(1);
1197
+ event.preventDefault();
1198
+ break;
1199
+ case match(orientation, {
1200
+ vertical: "ArrowUp",
1201
+ horizontal: "ArrowDown"
1202
+ }):
1203
+ item.moveHighlightedIndex(-1);
1204
+ event.preventDefault();
1205
+ break;
1206
+ case "Home":
1207
+ event.preventDefault();
1208
+ break;
1209
+ case "End":
1210
+ event.preventDefault();
1211
+ break;
1212
+ case "Enter":
1213
+ // Fall through
1214
+ case " ":
1215
+ if (state.highlightedValue) {
1216
+ item.toggleSelection(state.highlightedValue);
1217
+ if (!config.isMultiSelect) {
1218
+ trigger.toggleOpen(false);
1219
+ }
1220
+ event.preventDefault();
1221
+ }
1222
+ break;
1223
+ }
1224
+ },
1225
+ 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),
1226
+ style: {
1227
+ opacity: position ? void 0 : 0,
1228
+ position: "fixed",
1229
+ ...position
1230
+ },
1231
+ role: "listbox",
1232
+ "aria-multiselectable": config.isMultiSelect,
1233
+ "aria-orientation": orientation,
1234
+ tabIndex: position ? 0 : void 0,
1235
+ children: props.children
1236
+ }
1237
+ )
1238
+ ] }),
1239
+ document.body
1240
+ );
1241
+ }
1242
+ );
1243
+ var Select = (0, import_react8.forwardRef)(function Select2({
1244
+ children,
1245
+ contentPanelProps,
1246
+ buttonProps,
1247
+ ...props
1248
+ }, ref) {
1249
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(SelectRoot, { ...props, isMultiSelect: false, children: [
1250
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1251
+ SelectButton,
1252
+ {
1253
+ ref,
1254
+ ...buttonProps,
1255
+ selectedDisplay: (values) => {
1256
+ const value = values[0];
1257
+ if (!buttonProps?.selectedDisplay) return void 0;
1258
+ return buttonProps.selectedDisplay(value);
1259
+ }
1260
+ }
1261
+ ),
1262
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContent, { ...contentPanelProps, children })
1263
+ ] });
1264
+ });
1265
+ var SelectUncontrolled = (0, import_react8.forwardRef)(function SelectUncontrolled2({
1266
+ value: initialValue,
1267
+ onValueChanged,
1268
+ ...props
1269
+ }, ref) {
1270
+ const [value, setValue] = (0, import_react8.useState)(initialValue);
1271
+ (0, import_react8.useEffect)(() => {
1272
+ setValue(initialValue);
1273
+ }, [initialValue]);
1274
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1275
+ Select,
1276
+ {
1277
+ ...props,
1278
+ ref,
1279
+ value,
1280
+ onValueChanged: (value2) => {
1281
+ setValue(value2);
1282
+ onValueChanged?.(value2);
1283
+ }
1284
+ }
1285
+ );
1286
+ });
1287
+ var MultiSelect = (0, import_react8.forwardRef)(function MultiSelect2({
1288
+ children,
1289
+ contentPanelProps,
1290
+ buttonProps,
1291
+ ...props
1292
+ }, ref) {
1293
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(SelectRoot, { ...props, isMultiSelect: true, children: [
1294
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectButton, { ref, ...buttonProps }),
1295
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContent, { ...contentPanelProps, children })
1296
+ ] });
1297
+ });
1298
+ var MultiSelectUncontrolled = (0, import_react8.forwardRef)(function MultiSelectUncontrolled2({
1299
+ values: initialValues,
1300
+ onValuesChanged,
1301
+ ...props
1302
+ }, ref) {
1303
+ const [values, setValues] = (0, import_react8.useState)(initialValues);
1304
+ (0, import_react8.useEffect)(() => {
1305
+ setValues(initialValues);
1306
+ }, [initialValues]);
1307
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1308
+ MultiSelect,
1309
+ {
1310
+ ...props,
1311
+ ref,
1312
+ values,
1313
+ onValuesChanged: (value) => {
1314
+ setValues(value);
1315
+ onValuesChanged?.(value);
1316
+ }
1317
+ }
1318
+ );
1319
+ });
1320
+ var MultiSelectChipDisplay = (0, import_react8.forwardRef)(function MultiSelectChipDisplay2({
1321
+ children,
1322
+ contentPanelProps,
1323
+ chipDisplayProps,
1324
+ ...props
1325
+ }, ref) {
1326
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(SelectRoot, { ...props, isMultiSelect: true, children: [
1327
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectChipDisplay, { ref, ...chipDisplayProps }),
1328
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContent, { ...contentPanelProps, children })
1329
+ ] });
1330
+ });
1331
+ var MultiSelectChipDisplayUncontrolled = (0, import_react8.forwardRef)(function MultiSelectChipDisplayUncontrolled2({
1332
+ values: initialValues,
1333
+ onValuesChanged,
1334
+ ...props
1335
+ }, ref) {
1336
+ const [values, setValues] = (0, import_react8.useState)(initialValues);
1337
+ (0, import_react8.useEffect)(() => {
1338
+ setValues(initialValues);
1339
+ }, [initialValues]);
1340
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1341
+ MultiSelectChipDisplay,
1342
+ {
1343
+ ...props,
1344
+ ref,
1345
+ values,
1346
+ onValuesChanged: (value) => {
1347
+ setValues(value);
1348
+ onValuesChanged?.(value);
1349
+ }
1350
+ }
1351
+ );
1352
+ });
1353
+ // Annotate the CommonJS export names for ESM import in node:
1354
+ 0 && (module.exports = {
1355
+ MultiSelect,
1356
+ MultiSelectChipDisplay,
1357
+ MultiSelectChipDisplayUncontrolled,
1358
+ MultiSelectUncontrolled,
1359
+ Select,
1360
+ SelectButton,
1361
+ SelectChipDisplay,
1362
+ SelectContent,
1363
+ SelectOption,
1364
+ SelectRoot,
1365
+ SelectUncontrolled
1366
+ });
1367
+ //# sourceMappingURL=Select.js.map