@helpwave/hightide 0.1.25 → 0.1.26

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 (602) 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 +64 -13
  11. package/dist/components/date/DatePicker.js.map +1 -1
  12. package/dist/components/date/DatePicker.mjs +65 -14
  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 +58 -7
  27. package/dist/components/date/YearMonthPicker.js.map +1 -1
  28. package/dist/components/date/YearMonthPicker.mjs +59 -8
  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 +1684 -0
  57. package/dist/components/dialog/LanguageDialog.js.map +1 -0
  58. package/dist/components/dialog/LanguageDialog.mjs +1658 -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 +1715 -0
  63. package/dist/components/dialog/ThemeDialog.js.map +1 -0
  64. package/dist/components/dialog/ThemeDialog.mjs +1689 -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 +2062 -0
  69. package/dist/components/dialog/index.js.map +1 -0
  70. package/dist/components/dialog/index.mjs +2031 -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-and-navigation/BreadCrumb.js +667 -22
  97. package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
  98. package/dist/components/layout-and-navigation/BreadCrumb.mjs +667 -22
  99. package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +1 -1
  100. package/dist/components/layout-and-navigation/Carousel.js +12 -10
  101. package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
  102. package/dist/components/layout-and-navigation/Carousel.mjs +12 -10
  103. package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
  104. package/dist/components/layout-and-navigation/Chip.d.mts +8 -5
  105. package/dist/components/layout-and-navigation/Chip.d.ts +8 -5
  106. package/dist/components/layout-and-navigation/Chip.js +17 -4
  107. package/dist/components/layout-and-navigation/Chip.js.map +1 -1
  108. package/dist/components/layout-and-navigation/Chip.mjs +17 -4
  109. package/dist/components/layout-and-navigation/Chip.mjs.map +1 -1
  110. package/dist/components/layout-and-navigation/Expandable.d.mts +13 -10
  111. package/dist/components/layout-and-navigation/Expandable.d.ts +13 -10
  112. package/dist/components/layout-and-navigation/Expandable.js +18 -5
  113. package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
  114. package/dist/components/layout-and-navigation/Expandable.mjs +19 -6
  115. package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -1
  116. package/dist/components/layout-and-navigation/FAQSection.js +21 -8
  117. package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
  118. package/dist/components/layout-and-navigation/FAQSection.mjs +22 -9
  119. package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -1
  120. package/dist/components/layout-and-navigation/FloatingContainer.d.mts +38 -0
  121. package/dist/components/layout-and-navigation/FloatingContainer.d.ts +38 -0
  122. package/dist/components/layout-and-navigation/FloatingContainer.js +219 -0
  123. package/dist/components/layout-and-navigation/FloatingContainer.js.map +1 -0
  124. package/dist/components/layout-and-navigation/FloatingContainer.mjs +195 -0
  125. package/dist/components/layout-and-navigation/FloatingContainer.mjs.map +1 -0
  126. package/dist/components/layout-and-navigation/ListBox.d.mts +44 -0
  127. package/dist/components/layout-and-navigation/ListBox.d.ts +44 -0
  128. package/dist/components/layout-and-navigation/ListBox.js +329 -0
  129. package/dist/components/layout-and-navigation/ListBox.js.map +1 -0
  130. package/dist/components/layout-and-navigation/ListBox.mjs +290 -0
  131. package/dist/components/layout-and-navigation/ListBox.mjs.map +1 -0
  132. package/dist/components/layout-and-navigation/Pagination.js +104 -189
  133. package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
  134. package/dist/components/layout-and-navigation/Pagination.mjs +99 -184
  135. package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
  136. package/dist/components/layout-and-navigation/ScrollArea.d.mts +15 -0
  137. package/dist/components/layout-and-navigation/ScrollArea.d.ts +15 -0
  138. package/dist/components/layout-and-navigation/ScrollArea.js +1252 -0
  139. package/dist/components/layout-and-navigation/ScrollArea.js.map +1 -0
  140. package/dist/components/layout-and-navigation/ScrollArea.mjs +1216 -0
  141. package/dist/components/layout-and-navigation/ScrollArea.mjs.map +1 -0
  142. package/dist/components/layout-and-navigation/StepperBar.js +41 -1
  143. package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
  144. package/dist/components/layout-and-navigation/StepperBar.mjs +41 -1
  145. package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
  146. package/dist/components/layout-and-navigation/TextImage.js +3 -1
  147. package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
  148. package/dist/components/layout-and-navigation/TextImage.mjs +3 -1
  149. package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
  150. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  151. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
  152. package/dist/components/loading-states/LoadingAndErrorComponent.d.mts +1 -1
  153. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
  154. package/dist/components/loading-states/LoadingAnimation.js +18 -17
  155. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  156. package/dist/components/loading-states/LoadingAnimation.mjs +18 -17
  157. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
  158. package/dist/components/loading-states/LoadingButton.js +55 -18
  159. package/dist/components/loading-states/LoadingButton.js.map +1 -1
  160. package/dist/components/loading-states/LoadingButton.mjs +55 -18
  161. package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
  162. package/dist/components/properties/CheckboxProperty.js +890 -135
  163. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  164. package/dist/components/properties/CheckboxProperty.mjs +897 -142
  165. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  166. package/dist/components/properties/DateProperty.js +153 -198
  167. package/dist/components/properties/DateProperty.js.map +1 -1
  168. package/dist/components/properties/DateProperty.mjs +146 -191
  169. package/dist/components/properties/DateProperty.mjs.map +1 -1
  170. package/dist/components/properties/MultiSelectProperty.d.mts +5 -10
  171. package/dist/components/properties/MultiSelectProperty.d.ts +5 -10
  172. package/dist/components/properties/MultiSelectProperty.js +1143 -1160
  173. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  174. package/dist/components/properties/MultiSelectProperty.mjs +1156 -1163
  175. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  176. package/dist/components/properties/NumberProperty.js +155 -201
  177. package/dist/components/properties/NumberProperty.js.map +1 -1
  178. package/dist/components/properties/NumberProperty.mjs +148 -194
  179. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  180. package/dist/components/properties/PropertyBase.js +49 -9
  181. package/dist/components/properties/PropertyBase.js.map +1 -1
  182. package/dist/components/properties/PropertyBase.mjs +49 -9
  183. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  184. package/dist/components/properties/SelectProperty.d.mts +5 -8
  185. package/dist/components/properties/SelectProperty.d.ts +5 -8
  186. package/dist/components/properties/SelectProperty.js +1047 -834
  187. package/dist/components/properties/SelectProperty.js.map +1 -1
  188. package/dist/components/properties/SelectProperty.mjs +1063 -840
  189. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  190. package/dist/components/properties/TextProperty.js +97 -100
  191. package/dist/components/properties/TextProperty.js.map +1 -1
  192. package/dist/components/properties/TextProperty.mjs +100 -103
  193. package/dist/components/properties/TextProperty.mjs.map +1 -1
  194. package/dist/components/table/Table.js +1618 -993
  195. package/dist/components/table/Table.js.map +1 -1
  196. package/dist/components/table/Table.mjs +1625 -1000
  197. package/dist/components/table/Table.mjs.map +1 -1
  198. package/dist/components/table/TableFilterButton.js +116 -201
  199. package/dist/components/table/TableFilterButton.js.map +1 -1
  200. package/dist/components/table/TableFilterButton.mjs +105 -190
  201. package/dist/components/table/TableFilterButton.mjs.map +1 -1
  202. package/dist/components/table/TableSortButton.js +4 -3
  203. package/dist/components/table/TableSortButton.js.map +1 -1
  204. package/dist/components/table/TableSortButton.mjs +4 -3
  205. package/dist/components/table/TableSortButton.mjs.map +1 -1
  206. package/dist/components/user-action/Button.d.mts +15 -11
  207. package/dist/components/user-action/Button.d.ts +15 -11
  208. package/dist/components/user-action/Button.js +10 -9
  209. package/dist/components/user-action/Button.js.map +1 -1
  210. package/dist/components/user-action/Button.mjs +10 -9
  211. package/dist/components/user-action/Button.mjs.map +1 -1
  212. package/dist/components/user-action/Checkbox.d.mts +9 -25
  213. package/dist/components/user-action/Checkbox.d.ts +9 -25
  214. package/dist/components/user-action/Checkbox.js +793 -103
  215. package/dist/components/user-action/Checkbox.js.map +1 -1
  216. package/dist/components/user-action/Checkbox.mjs +794 -104
  217. package/dist/components/user-action/Checkbox.mjs.map +1 -1
  218. package/dist/components/user-action/CopyToClipboardWrapper.js +3 -1
  219. package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
  220. package/dist/components/user-action/CopyToClipboardWrapper.mjs +3 -1
  221. package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
  222. package/dist/components/user-action/DateAndTimePicker.d.mts +1 -1
  223. package/dist/components/user-action/DateAndTimePicker.d.ts +1 -1
  224. package/dist/components/user-action/DateAndTimePicker.js +66 -13
  225. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  226. package/dist/components/user-action/DateAndTimePicker.mjs +67 -14
  227. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  228. package/dist/components/user-action/Label.d.mts +6 -8
  229. package/dist/components/user-action/Label.d.ts +6 -8
  230. package/dist/components/user-action/Label.js +4 -6
  231. package/dist/components/user-action/Label.js.map +1 -1
  232. package/dist/components/user-action/Label.mjs +4 -6
  233. package/dist/components/user-action/Label.mjs.map +1 -1
  234. package/dist/components/user-action/Menu.d.mts +2 -2
  235. package/dist/components/user-action/Menu.d.ts +2 -2
  236. package/dist/components/user-action/Menu.js +1 -1
  237. package/dist/components/user-action/Menu.js.map +1 -1
  238. package/dist/components/user-action/Menu.mjs +1 -1
  239. package/dist/components/user-action/Menu.mjs.map +1 -1
  240. package/dist/components/user-action/ScrollPicker.js +8 -6
  241. package/dist/components/user-action/ScrollPicker.js.map +1 -1
  242. package/dist/components/user-action/ScrollPicker.mjs +8 -6
  243. package/dist/components/user-action/ScrollPicker.mjs.map +1 -1
  244. package/dist/components/user-action/SearchBar.d.mts +1 -2
  245. package/dist/components/user-action/SearchBar.d.ts +1 -2
  246. package/dist/components/user-action/SearchBar.js +93 -178
  247. package/dist/components/user-action/SearchBar.js.map +1 -1
  248. package/dist/components/user-action/SearchBar.mjs +86 -171
  249. package/dist/components/user-action/SearchBar.mjs.map +1 -1
  250. package/dist/components/user-action/Textarea.d.mts +22 -11
  251. package/dist/components/user-action/Textarea.d.ts +22 -11
  252. package/dist/components/user-action/Textarea.js +101 -92
  253. package/dist/components/user-action/Textarea.js.map +1 -1
  254. package/dist/components/user-action/Textarea.mjs +100 -92
  255. package/dist/components/user-action/Textarea.mjs.map +1 -1
  256. package/dist/components/user-action/input/Input.d.mts +37 -0
  257. package/dist/components/user-action/input/Input.d.ts +37 -0
  258. package/dist/components/user-action/input/Input.js +244 -0
  259. package/dist/components/user-action/input/Input.js.map +1 -0
  260. package/dist/components/user-action/input/Input.mjs +209 -0
  261. package/dist/components/user-action/input/Input.mjs.map +1 -0
  262. package/dist/components/user-action/input/InsideLabelInput.d.mts +20 -0
  263. package/dist/components/user-action/input/InsideLabelInput.d.ts +20 -0
  264. package/dist/components/user-action/input/InsideLabelInput.js +295 -0
  265. package/dist/components/user-action/input/InsideLabelInput.js.map +1 -0
  266. package/dist/components/user-action/input/InsideLabelInput.mjs +260 -0
  267. package/dist/components/user-action/input/InsideLabelInput.mjs.map +1 -0
  268. package/dist/components/user-action/input/ToggleableInput.d.mts +22 -0
  269. package/dist/components/user-action/input/ToggleableInput.d.ts +22 -0
  270. package/dist/components/user-action/{Input.js → input/ToggleableInput.js} +136 -171
  271. package/dist/components/user-action/input/ToggleableInput.js.map +1 -0
  272. package/dist/components/user-action/input/ToggleableInput.mjs +264 -0
  273. package/dist/components/user-action/input/ToggleableInput.mjs.map +1 -0
  274. package/dist/components/user-action/select/Select.d.mts +98 -0
  275. package/dist/components/user-action/select/Select.d.ts +98 -0
  276. package/dist/components/user-action/select/Select.js +1354 -0
  277. package/dist/components/user-action/select/Select.js.map +1 -0
  278. package/dist/components/user-action/select/Select.mjs +1320 -0
  279. package/dist/components/user-action/select/Select.mjs.map +1 -0
  280. package/dist/components/utils/FocusTrap.d.mts +28 -0
  281. package/dist/components/utils/FocusTrap.d.ts +28 -0
  282. package/dist/components/utils/FocusTrap.js +252 -0
  283. package/dist/components/utils/FocusTrap.js.map +1 -0
  284. package/dist/components/utils/FocusTrap.mjs +229 -0
  285. package/dist/components/utils/FocusTrap.mjs.map +1 -0
  286. package/dist/components/utils/Transition.d.mts +26 -0
  287. package/dist/components/utils/Transition.d.ts +26 -0
  288. package/dist/components/utils/Transition.js +74 -0
  289. package/dist/components/utils/Transition.js.map +1 -0
  290. package/dist/components/utils/Transition.mjs +50 -0
  291. package/dist/components/utils/Transition.mjs.map +1 -0
  292. package/dist/hooks/focus/useFocusGuards.d.mts +3 -0
  293. package/dist/hooks/focus/useFocusGuards.d.ts +3 -0
  294. package/dist/hooks/focus/useFocusGuards.js +74 -0
  295. package/dist/hooks/focus/useFocusGuards.js.map +1 -0
  296. package/dist/hooks/focus/useFocusGuards.mjs +50 -0
  297. package/dist/hooks/focus/useFocusGuards.mjs.map +1 -0
  298. package/dist/hooks/{useFocusManagement.js → focus/useFocusManagement.js} +1 -1
  299. package/dist/hooks/focus/useFocusManagement.js.map +1 -0
  300. package/dist/hooks/{useFocusManagement.mjs → focus/useFocusManagement.mjs} +1 -1
  301. package/dist/hooks/focus/useFocusManagement.mjs.map +1 -0
  302. package/dist/hooks/{useFocusOnceVisible.js → focus/useFocusOnceVisible.js} +1 -1
  303. package/dist/hooks/focus/useFocusOnceVisible.js.map +1 -0
  304. package/dist/hooks/{useFocusOnceVisible.mjs → focus/useFocusOnceVisible.mjs} +1 -1
  305. package/dist/hooks/focus/useFocusOnceVisible.mjs.map +1 -0
  306. package/dist/hooks/focus/useFocusTrap.d.mts +16 -0
  307. package/dist/hooks/focus/useFocusTrap.d.ts +16 -0
  308. package/dist/hooks/focus/useFocusTrap.js +233 -0
  309. package/dist/hooks/focus/useFocusTrap.js.map +1 -0
  310. package/dist/hooks/focus/useFocusTrap.mjs +210 -0
  311. package/dist/hooks/focus/useFocusTrap.mjs.map +1 -0
  312. package/dist/hooks/focus/useIsMounted.d.mts +3 -0
  313. package/dist/hooks/focus/useIsMounted.d.ts +3 -0
  314. package/dist/hooks/focus/useIsMounted.js +43 -0
  315. package/dist/hooks/focus/useIsMounted.js.map +1 -0
  316. package/dist/hooks/focus/useIsMounted.mjs +20 -0
  317. package/dist/hooks/focus/useIsMounted.mjs.map +1 -0
  318. package/dist/hooks/useFloatingElement.d.mts +22 -0
  319. package/dist/hooks/useFloatingElement.d.ts +22 -0
  320. package/dist/hooks/useFloatingElement.js +162 -0
  321. package/dist/hooks/useFloatingElement.js.map +1 -0
  322. package/dist/hooks/useFloatingElement.mjs +139 -0
  323. package/dist/hooks/useFloatingElement.mjs.map +1 -0
  324. package/dist/hooks/useLocalStorage.js +2 -2
  325. package/dist/hooks/useLocalStorage.js.map +1 -1
  326. package/dist/hooks/useLocalStorage.mjs +2 -2
  327. package/dist/hooks/useLocalStorage.mjs.map +1 -1
  328. package/dist/hooks/useLogOnce.d.mts +3 -4
  329. package/dist/hooks/useLogOnce.d.ts +3 -4
  330. package/dist/hooks/useLogOnce.js +5 -5
  331. package/dist/hooks/useLogOnce.js.map +1 -1
  332. package/dist/hooks/useLogOnce.mjs +5 -5
  333. package/dist/hooks/useLogOnce.mjs.map +1 -1
  334. package/dist/hooks/useRerender.d.mts +2 -2
  335. package/dist/hooks/useRerender.d.ts +2 -2
  336. package/dist/hooks/useSearch.d.mts +2 -2
  337. package/dist/hooks/useSearch.d.ts +2 -2
  338. package/dist/hooks/useSearch.js +1 -1
  339. package/dist/hooks/useSearch.js.map +1 -1
  340. package/dist/hooks/useSearch.mjs +1 -1
  341. package/dist/hooks/useSearch.mjs.map +1 -1
  342. package/dist/localization/LanguageProvider.d.mts +2 -2
  343. package/dist/localization/LanguageProvider.d.ts +2 -2
  344. package/dist/localization/LanguageProvider.js +2 -2
  345. package/dist/localization/LanguageProvider.js.map +1 -1
  346. package/dist/localization/LanguageProvider.mjs +2 -2
  347. package/dist/localization/LanguageProvider.mjs.map +1 -1
  348. package/dist/localization/defaults/form.d.mts +1 -0
  349. package/dist/localization/defaults/form.d.ts +1 -0
  350. package/dist/localization/defaults/form.js +2 -0
  351. package/dist/localization/defaults/form.js.map +1 -1
  352. package/dist/localization/defaults/form.mjs +2 -0
  353. package/dist/localization/defaults/form.mjs.map +1 -1
  354. package/dist/localization/useTranslation.js.map +1 -1
  355. package/dist/localization/useTranslation.mjs.map +1 -1
  356. package/dist/storybook/helper.d.mts +17 -0
  357. package/dist/storybook/helper.d.ts +17 -0
  358. package/dist/storybook/helper.js +61 -0
  359. package/dist/storybook/helper.js.map +1 -0
  360. package/dist/storybook/helper.mjs +37 -0
  361. package/dist/storybook/helper.mjs.map +1 -0
  362. package/dist/{css → style}/globals.css +779 -374
  363. package/dist/{css → style}/uncompiled/globals.css +75 -13
  364. package/dist/{css → style}/uncompiled/theme/colors-component.css +18 -4
  365. package/dist/{css → style}/uncompiled/theme/colors-semantic.css +2 -9
  366. package/dist/style/uncompiled/typography.css +171 -0
  367. package/dist/{css → style}/uncompiled/utitlity/animation.css +54 -42
  368. package/dist/{css → style}/uncompiled/utitlity/index.css +2 -1
  369. package/dist/{css → style}/uncompiled/utitlity/shadow.css +5 -1
  370. package/dist/style/uncompiled/utitlity/sizing.css +29 -0
  371. package/dist/theming/useTheme.d.mts +2 -2
  372. package/dist/theming/useTheme.d.ts +2 -2
  373. package/dist/theming/useTheme.js +3 -3
  374. package/dist/theming/useTheme.js.map +1 -1
  375. package/dist/theming/useTheme.mjs +3 -3
  376. package/dist/theming/useTheme.mjs.map +1 -1
  377. package/dist/{util → utils}/array.d.mts +1 -0
  378. package/dist/{util → utils}/array.d.ts +1 -0
  379. package/dist/{util → utils}/array.js +15 -2
  380. package/dist/utils/array.js.map +1 -0
  381. package/dist/{util → utils}/array.mjs +15 -2
  382. package/dist/utils/array.mjs.map +1 -0
  383. package/dist/utils/bagFunctions.d.mts +15 -0
  384. package/dist/utils/bagFunctions.d.ts +15 -0
  385. package/dist/{util/PropsWithFunctionChildren.js → utils/bagFunctions.js} +5 -5
  386. package/dist/utils/bagFunctions.js.map +1 -0
  387. package/dist/{util/PropsWithFunctionChildren.mjs → utils/bagFunctions.mjs} +2 -2
  388. package/dist/utils/bagFunctions.mjs.map +1 -0
  389. package/dist/{util → utils}/builder.js +1 -1
  390. package/dist/utils/builder.js.map +1 -0
  391. package/dist/{util → utils}/builder.mjs +1 -1
  392. package/dist/utils/builder.mjs.map +1 -0
  393. package/dist/{util → utils}/date.js +3 -3
  394. package/dist/utils/date.js.map +1 -0
  395. package/dist/{util → utils}/date.mjs +2 -2
  396. package/dist/utils/date.mjs.map +1 -0
  397. package/dist/{util → utils}/easeFunctions.js +5 -4
  398. package/dist/utils/easeFunctions.js.map +1 -0
  399. package/dist/{util → utils}/easeFunctions.mjs +4 -3
  400. package/dist/utils/easeFunctions.mjs.map +1 -0
  401. package/dist/{util → utils}/emailValidation.js +1 -1
  402. package/dist/utils/emailValidation.js.map +1 -0
  403. package/dist/{util → utils}/emailValidation.mjs +1 -1
  404. package/dist/utils/emailValidation.mjs.map +1 -0
  405. package/dist/{util → utils}/loopingArray.js +1 -1
  406. package/dist/utils/loopingArray.js.map +1 -0
  407. package/dist/{util → utils}/loopingArray.mjs +1 -1
  408. package/dist/utils/loopingArray.mjs.map +1 -0
  409. package/dist/utils/match.d.mts +3 -0
  410. package/dist/utils/match.d.ts +3 -0
  411. package/dist/utils/match.js +32 -0
  412. package/dist/utils/match.js.map +1 -0
  413. package/dist/utils/match.mjs +8 -0
  414. package/dist/utils/match.mjs.map +1 -0
  415. package/dist/utils/math.d.mts +3 -0
  416. package/dist/utils/math.d.ts +3 -0
  417. package/dist/{util → utils}/math.js +3 -2
  418. package/dist/utils/math.js.map +1 -0
  419. package/dist/utils/math.mjs +9 -0
  420. package/dist/utils/math.mjs.map +1 -0
  421. package/dist/{util → utils}/noop.js +1 -1
  422. package/dist/utils/noop.js.map +1 -0
  423. package/dist/utils/noop.mjs +6 -0
  424. package/dist/utils/noop.mjs.map +1 -0
  425. package/dist/{util → utils}/resolveSetState.js +1 -1
  426. package/dist/utils/resolveSetState.js.map +1 -0
  427. package/dist/{util → utils}/resolveSetState.mjs +1 -1
  428. package/dist/utils/resolveSetState.mjs.map +1 -0
  429. package/dist/{util → utils}/simpleSearch.js +1 -1
  430. package/dist/utils/simpleSearch.js.map +1 -0
  431. package/dist/{util → utils}/simpleSearch.mjs +1 -1
  432. package/dist/utils/simpleSearch.mjs.map +1 -0
  433. package/dist/{util → utils}/storage.js +1 -1
  434. package/dist/utils/storage.js.map +1 -0
  435. package/dist/{util → utils}/storage.mjs +1 -1
  436. package/dist/utils/storage.mjs.map +1 -0
  437. package/dist/{util → utils}/writeToClipboard.js +2 -1
  438. package/dist/utils/writeToClipboard.js.map +1 -0
  439. package/dist/{util → utils}/writeToClipboard.mjs +3 -1
  440. package/dist/utils/writeToClipboard.mjs.map +1 -0
  441. package/package.json +8 -8
  442. package/dist/components/dialogs/ConfirmDialog.js +0 -674
  443. package/dist/components/dialogs/ConfirmDialog.js.map +0 -1
  444. package/dist/components/dialogs/ConfirmDialog.mjs +0 -638
  445. package/dist/components/dialogs/ConfirmDialog.mjs.map +0 -1
  446. package/dist/components/icons-and-geometry/Helpwave.js.map +0 -1
  447. package/dist/components/icons-and-geometry/Helpwave.mjs.map +0 -1
  448. package/dist/components/layout-and-navigation/Overlay.d.mts +0 -67
  449. package/dist/components/layout-and-navigation/Overlay.d.ts +0 -67
  450. package/dist/components/layout-and-navigation/Overlay.js +0 -702
  451. package/dist/components/layout-and-navigation/Overlay.js.map +0 -1
  452. package/dist/components/layout-and-navigation/Overlay.mjs +0 -665
  453. package/dist/components/layout-and-navigation/Overlay.mjs.map +0 -1
  454. package/dist/components/layout-and-navigation/SearchableList.d.mts +0 -24
  455. package/dist/components/layout-and-navigation/SearchableList.d.ts +0 -24
  456. package/dist/components/layout-and-navigation/SearchableList.js +0 -758
  457. package/dist/components/layout-and-navigation/SearchableList.js.map +0 -1
  458. package/dist/components/layout-and-navigation/SearchableList.mjs +0 -724
  459. package/dist/components/layout-and-navigation/SearchableList.mjs.map +0 -1
  460. package/dist/components/layout-and-navigation/Tile.d.mts +0 -27
  461. package/dist/components/layout-and-navigation/Tile.d.ts +0 -27
  462. package/dist/components/layout-and-navigation/Tile.js +0 -96
  463. package/dist/components/layout-and-navigation/Tile.js.map +0 -1
  464. package/dist/components/layout-and-navigation/Tile.mjs +0 -61
  465. package/dist/components/layout-and-navigation/Tile.mjs.map +0 -1
  466. package/dist/components/modals/ConfirmModal.d.mts +0 -33
  467. package/dist/components/modals/ConfirmModal.d.ts +0 -33
  468. package/dist/components/modals/ConfirmModal.js +0 -687
  469. package/dist/components/modals/ConfirmModal.js.map +0 -1
  470. package/dist/components/modals/ConfirmModal.mjs +0 -651
  471. package/dist/components/modals/ConfirmModal.mjs.map +0 -1
  472. package/dist/components/modals/DiscardChangesModal.d.mts +0 -20
  473. package/dist/components/modals/DiscardChangesModal.d.ts +0 -20
  474. package/dist/components/modals/DiscardChangesModal.js +0 -717
  475. package/dist/components/modals/DiscardChangesModal.js.map +0 -1
  476. package/dist/components/modals/DiscardChangesModal.mjs +0 -681
  477. package/dist/components/modals/DiscardChangesModal.mjs.map +0 -1
  478. package/dist/components/modals/InputModal.d.mts +0 -21
  479. package/dist/components/modals/InputModal.d.ts +0 -21
  480. package/dist/components/modals/InputModal.js +0 -976
  481. package/dist/components/modals/InputModal.js.map +0 -1
  482. package/dist/components/modals/InputModal.mjs +0 -940
  483. package/dist/components/modals/InputModal.mjs.map +0 -1
  484. package/dist/components/modals/LanguageModal.d.mts +0 -21
  485. package/dist/components/modals/LanguageModal.d.ts +0 -21
  486. package/dist/components/modals/LanguageModal.js +0 -1468
  487. package/dist/components/modals/LanguageModal.js.map +0 -1
  488. package/dist/components/modals/LanguageModal.mjs +0 -1432
  489. package/dist/components/modals/LanguageModal.mjs.map +0 -1
  490. package/dist/components/modals/ThemeModal.d.mts +0 -21
  491. package/dist/components/modals/ThemeModal.d.ts +0 -21
  492. package/dist/components/modals/ThemeModal.js +0 -1497
  493. package/dist/components/modals/ThemeModal.js.map +0 -1
  494. package/dist/components/modals/ThemeModal.mjs +0 -1461
  495. package/dist/components/modals/ThemeModal.mjs.map +0 -1
  496. package/dist/components/user-action/Input.d.mts +0 -77
  497. package/dist/components/user-action/Input.d.ts +0 -77
  498. package/dist/components/user-action/Input.js.map +0 -1
  499. package/dist/components/user-action/Input.mjs +0 -298
  500. package/dist/components/user-action/Input.mjs.map +0 -1
  501. package/dist/components/user-action/MultiSelect.d.mts +0 -42
  502. package/dist/components/user-action/MultiSelect.d.ts +0 -42
  503. package/dist/components/user-action/MultiSelect.js +0 -1468
  504. package/dist/components/user-action/MultiSelect.js.map +0 -1
  505. package/dist/components/user-action/MultiSelect.mjs +0 -1433
  506. package/dist/components/user-action/MultiSelect.mjs.map +0 -1
  507. package/dist/components/user-action/Select.d.mts +0 -41
  508. package/dist/components/user-action/Select.d.ts +0 -41
  509. package/dist/components/user-action/Select.js +0 -1236
  510. package/dist/components/user-action/Select.js.map +0 -1
  511. package/dist/components/user-action/Select.mjs +0 -1201
  512. package/dist/components/user-action/Select.mjs.map +0 -1
  513. package/dist/components/user-action/ToggleableInput.d.mts +0 -37
  514. package/dist/components/user-action/ToggleableInput.d.ts +0 -37
  515. package/dist/components/user-action/ToggleableInput.js +0 -192
  516. package/dist/components/user-action/ToggleableInput.js.map +0 -1
  517. package/dist/components/user-action/ToggleableInput.mjs +0 -157
  518. package/dist/components/user-action/ToggleableInput.mjs.map +0 -1
  519. package/dist/css/uncompiled/textstyles.css +0 -69
  520. package/dist/hooks/useFocusManagement.js.map +0 -1
  521. package/dist/hooks/useFocusManagement.mjs.map +0 -1
  522. package/dist/hooks/useFocusOnceVisible.js.map +0 -1
  523. package/dist/hooks/useFocusOnceVisible.mjs.map +0 -1
  524. package/dist/index.d.mts +0 -103
  525. package/dist/index.d.ts +0 -103
  526. package/dist/index.js +0 -12610
  527. package/dist/index.js.map +0 -1
  528. package/dist/index.mjs +0 -12447
  529. package/dist/index.mjs.map +0 -1
  530. package/dist/util/PropsWithFunctionChildren.d.mts +0 -14
  531. package/dist/util/PropsWithFunctionChildren.d.ts +0 -14
  532. package/dist/util/PropsWithFunctionChildren.js.map +0 -1
  533. package/dist/util/PropsWithFunctionChildren.mjs.map +0 -1
  534. package/dist/util/array.js.map +0 -1
  535. package/dist/util/array.mjs.map +0 -1
  536. package/dist/util/builder.js.map +0 -1
  537. package/dist/util/builder.mjs.map +0 -1
  538. package/dist/util/date.js.map +0 -1
  539. package/dist/util/date.mjs.map +0 -1
  540. package/dist/util/easeFunctions.js.map +0 -1
  541. package/dist/util/easeFunctions.mjs.map +0 -1
  542. package/dist/util/emailValidation.js.map +0 -1
  543. package/dist/util/emailValidation.mjs.map +0 -1
  544. package/dist/util/loopingArray.js.map +0 -1
  545. package/dist/util/loopingArray.mjs.map +0 -1
  546. package/dist/util/math.d.mts +0 -3
  547. package/dist/util/math.d.ts +0 -3
  548. package/dist/util/math.js.map +0 -1
  549. package/dist/util/math.mjs +0 -8
  550. package/dist/util/math.mjs.map +0 -1
  551. package/dist/util/news.d.mts +0 -101
  552. package/dist/util/news.d.ts +0 -101
  553. package/dist/util/news.js +0 -76
  554. package/dist/util/news.js.map +0 -1
  555. package/dist/util/news.mjs +0 -49
  556. package/dist/util/news.mjs.map +0 -1
  557. package/dist/util/noop.js.map +0 -1
  558. package/dist/util/noop.mjs +0 -6
  559. package/dist/util/noop.mjs.map +0 -1
  560. package/dist/util/resolveSetState.js.map +0 -1
  561. package/dist/util/resolveSetState.mjs.map +0 -1
  562. package/dist/util/simpleSearch.js.map +0 -1
  563. package/dist/util/simpleSearch.mjs.map +0 -1
  564. package/dist/util/storage.js.map +0 -1
  565. package/dist/util/storage.mjs.map +0 -1
  566. package/dist/util/types.d.mts +0 -3
  567. package/dist/util/types.d.ts +0 -3
  568. package/dist/util/types.js +0 -18
  569. package/dist/util/types.js.map +0 -1
  570. package/dist/util/types.mjs +0 -1
  571. package/dist/util/types.mjs.map +0 -1
  572. package/dist/util/writeToClipboard.js.map +0 -1
  573. package/dist/util/writeToClipboard.mjs.map +0 -1
  574. /package/dist/hooks/{useFocusManagement.d.mts → focus/useFocusManagement.d.mts} +0 -0
  575. /package/dist/hooks/{useFocusManagement.d.ts → focus/useFocusManagement.d.ts} +0 -0
  576. /package/dist/hooks/{useFocusOnceVisible.d.mts → focus/useFocusOnceVisible.d.mts} +0 -0
  577. /package/dist/hooks/{useFocusOnceVisible.d.ts → focus/useFocusOnceVisible.d.ts} +0 -0
  578. /package/dist/{css → style}/uncompiled/theme/colors-basic.css +0 -0
  579. /package/dist/{css → style}/uncompiled/theme/index.css +0 -0
  580. /package/dist/{css → style}/uncompiled/theme/variants.css +0 -0
  581. /package/dist/{css → style}/uncompiled/utitlity/borderradius.css +0 -0
  582. /package/dist/{css → style}/uncompiled/utitlity/general.css +0 -0
  583. /package/dist/{util → utils}/builder.d.mts +0 -0
  584. /package/dist/{util → utils}/builder.d.ts +0 -0
  585. /package/dist/{util → utils}/date.d.mts +0 -0
  586. /package/dist/{util → utils}/date.d.ts +0 -0
  587. /package/dist/{util → utils}/easeFunctions.d.mts +0 -0
  588. /package/dist/{util → utils}/easeFunctions.d.ts +0 -0
  589. /package/dist/{util → utils}/emailValidation.d.mts +0 -0
  590. /package/dist/{util → utils}/emailValidation.d.ts +0 -0
  591. /package/dist/{util → utils}/loopingArray.d.mts +0 -0
  592. /package/dist/{util → utils}/loopingArray.d.ts +0 -0
  593. /package/dist/{util → utils}/noop.d.mts +0 -0
  594. /package/dist/{util → utils}/noop.d.ts +0 -0
  595. /package/dist/{util → utils}/resolveSetState.d.mts +0 -0
  596. /package/dist/{util → utils}/resolveSetState.d.ts +0 -0
  597. /package/dist/{util → utils}/simpleSearch.d.mts +0 -0
  598. /package/dist/{util → utils}/simpleSearch.d.ts +0 -0
  599. /package/dist/{util → utils}/storage.d.mts +0 -0
  600. /package/dist/{util → utils}/storage.d.ts +0 -0
  601. /package/dist/{util → utils}/writeToClipboard.d.mts +0 -0
  602. /package/dist/{util → utils}/writeToClipboard.d.ts +0 -0
@@ -0,0 +1,1354 @@
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-and-navigation/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-and-navigation/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-and-navigation/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
+ }) => {
807
+ const optionsRef = (0, import_react8.useRef)([]);
808
+ const triggerRef = (0, import_react8.useRef)(null);
809
+ const generatedId = (0, import_react8.useId)();
810
+ const usedId = id ?? generatedId;
811
+ const [internalState, setInternalState] = (0, import_react8.useState)({
812
+ isOpen
813
+ });
814
+ const state = {
815
+ ...internalState,
816
+ id: usedId,
817
+ disabled,
818
+ invalid,
819
+ value: isMultiSelect ? values ?? [] : [value].filter(Boolean),
820
+ isMultiSelect
821
+ };
822
+ const registerItem = (0, import_react8.useCallback)((item) => {
823
+ optionsRef.current.push(item);
824
+ optionsRef.current.sort((a, b) => {
825
+ const aEl = a.ref.current;
826
+ const bEl = b.ref.current;
827
+ if (!aEl || !bEl) return 0;
828
+ return aEl.compareDocumentPosition(bEl) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
829
+ });
830
+ }, []);
831
+ const unregisterItem = (0, import_react8.useCallback)((value2) => {
832
+ optionsRef.current = optionsRef.current.filter((i) => i.value !== value2);
833
+ }, []);
834
+ const toggleSelection = (value2, isSelected) => {
835
+ if (disabled) {
836
+ return;
837
+ }
838
+ const option = optionsRef.current.find((i) => i.value === value2);
839
+ if (!option) {
840
+ console.error(`SelectOption with value: ${value2} not found`);
841
+ return;
842
+ }
843
+ let newValue;
844
+ if (isMultiSelect) {
845
+ const isSelectedBefore = state.value.includes(value2);
846
+ const isSelectedAfter = isSelected ?? !isSelectedBefore;
847
+ if (!isSelectedAfter) {
848
+ newValue = state.value.filter((v) => v !== value2);
849
+ } else {
850
+ newValue = [...state.value, value2];
851
+ }
852
+ } else {
853
+ newValue = [value2];
854
+ }
855
+ if (!isMultiSelect) {
856
+ onValueChanged?.(newValue[0]);
857
+ } else {
858
+ onValuesChanged?.(newValue);
859
+ }
860
+ setInternalState((prevState) => ({
861
+ ...prevState,
862
+ highlightedValue: value2
863
+ }));
864
+ };
865
+ const highlightItem = (value2) => {
866
+ if (disabled) {
867
+ return;
868
+ }
869
+ setInternalState((prevState) => ({
870
+ ...prevState,
871
+ highlightedValue: value2
872
+ }));
873
+ };
874
+ const registerTrigger = (0, import_react8.useCallback)((ref) => {
875
+ triggerRef.current = ref.current;
876
+ }, []);
877
+ const unregisterTrigger = (0, import_react8.useCallback)(() => {
878
+ triggerRef.current = null;
879
+ }, []);
880
+ const toggleOpen = (isOpen2, options) => {
881
+ const { highlightStartPosition } = { ...defaultToggleOpenOptions, ...options };
882
+ let highlightedIndex;
883
+ if (highlightStartPosition === "first") {
884
+ highlightedIndex = optionsRef.current.findIndex((option) => !option.disabled);
885
+ } else {
886
+ highlightedIndex = optionsRef.current.length - 1 - [...optionsRef.current].reverse().findIndex((option) => !option.disabled);
887
+ }
888
+ if (highlightedIndex === -1 || highlightedIndex === optionsRef.current.length) {
889
+ highlightedIndex = 0;
890
+ }
891
+ setInternalState((prevState) => ({
892
+ ...prevState,
893
+ isOpen: isOpen2 ?? !prevState.isOpen,
894
+ highlightedValue: optionsRef.current[highlightedIndex].value
895
+ }));
896
+ };
897
+ const moveHighlightedIndex = (delta) => {
898
+ let highlightedIndex = optionsRef.current.findIndex((value2) => value2.value === internalState.highlightedValue);
899
+ if (highlightedIndex === -1) {
900
+ highlightedIndex = 0;
901
+ }
902
+ const optionLength = optionsRef.current.length;
903
+ const startIndex = (highlightedIndex + delta % optionLength + optionLength) % optionLength;
904
+ const isForward = delta >= 0;
905
+ let highlightedValue = optionsRef.current[startIndex].value;
906
+ for (let i = 0; i < optionsRef.current.length; i++) {
907
+ const index = (startIndex + (isForward ? i : -i) + optionLength) % optionLength;
908
+ if (!optionsRef.current[index].disabled) {
909
+ highlightedValue = optionsRef.current[index].value;
910
+ break;
911
+ }
912
+ }
913
+ setInternalState((prevState) => ({
914
+ ...prevState,
915
+ highlightedValue
916
+ }));
917
+ };
918
+ (0, import_react8.useEffect)(() => {
919
+ if (!internalState.highlightedValue) return;
920
+ const highlighted = optionsRef.current.find((value2) => value2.value === internalState.highlightedValue);
921
+ if (highlighted) {
922
+ highlighted.ref.current.scrollIntoView({ behavior: "instant", block: "nearest" });
923
+ } else {
924
+ console.error(`SelectRoot: Could not find highlighted value (${internalState.highlightedValue})`);
925
+ }
926
+ }, [internalState.highlightedValue]);
927
+ const contextValue = {
928
+ state,
929
+ item: {
930
+ register: registerItem,
931
+ unregister: unregisterItem,
932
+ toggleSelection,
933
+ highlightItem,
934
+ moveHighlightedIndex
935
+ },
936
+ trigger: {
937
+ ref: triggerRef,
938
+ register: registerTrigger,
939
+ unregister: unregisterTrigger,
940
+ toggleOpen
941
+ }
942
+ };
943
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContext.Provider, { value: contextValue, children });
944
+ };
945
+ var SelectOption = (0, import_react8.forwardRef)(
946
+ function SelectOption2({ value, disabled = false, children, className, ...restProps }, ref) {
947
+ const { state, item, trigger } = useSelectContext();
948
+ const { register, unregister, toggleSelection, highlightItem } = item;
949
+ const itemRef = (0, import_react8.useRef)(null);
950
+ (0, import_react8.useEffect)(() => {
951
+ register({
952
+ value,
953
+ disabled,
954
+ ref: itemRef
955
+ });
956
+ return () => unregister(value);
957
+ }, [value, disabled, register, unregister, children]);
958
+ const isHighlighted = state.highlightedValue === value;
959
+ const isSelected = state.value.includes(value);
960
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
961
+ "li",
962
+ {
963
+ ...restProps,
964
+ ref: (node) => {
965
+ itemRef.current = node;
966
+ if (typeof ref === "function") ref(node);
967
+ else if (ref) ref.current = node;
968
+ },
969
+ id: value,
970
+ role: "option",
971
+ "aria-disabled": disabled,
972
+ "aria-selected": isSelected,
973
+ "data-highlighted": isHighlighted ? "" : void 0,
974
+ "data-selected": isSelected ? "" : void 0,
975
+ "data-disabled": disabled ? "" : void 0,
976
+ className: (0, import_clsx4.default)(
977
+ "flex-row-1 items-center px-2 py-1 rounded-md",
978
+ "data-highlighted:bg-primary/20",
979
+ "data-disabled:text-disabled data-disabled:cursor-not-allowed",
980
+ "not-data-disabled:cursor-pointer",
981
+ className
982
+ ),
983
+ onClick: (event) => {
984
+ if (!disabled) {
985
+ toggleSelection(value);
986
+ if (!state.isMultiSelect) {
987
+ trigger.toggleOpen(false);
988
+ }
989
+ restProps.onClick?.(event);
990
+ }
991
+ },
992
+ onMouseEnter: (event) => {
993
+ if (!disabled) {
994
+ highlightItem(value);
995
+ restProps.onMouseEnter?.(event);
996
+ }
997
+ },
998
+ children: [
999
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1000
+ import_lucide_react2.CheckIcon,
1001
+ {
1002
+ className: (0, import_clsx4.default)("w-4 h-4", { "opacity-0": !isSelected || disabled }),
1003
+ "aria-hidden": true
1004
+ }
1005
+ ),
1006
+ children ?? value
1007
+ ]
1008
+ }
1009
+ );
1010
+ }
1011
+ );
1012
+ var defaultSelectButtonTranslation = {
1013
+ en: {
1014
+ clickToSelect: "Click to select"
1015
+ },
1016
+ de: {
1017
+ clickToSelect: "Zum ausw\xE4hlen dr\xFCcken"
1018
+ }
1019
+ };
1020
+ var SelectButton = (0, import_react8.forwardRef)(function SelectButton2({ placeholder, selectedDisplay, ...props }, ref) {
1021
+ const translation = useTranslation([defaultSelectButtonTranslation]);
1022
+ const { state, trigger } = useSelectContext();
1023
+ const { register, unregister, toggleOpen } = trigger;
1024
+ const innerRef = (0, import_react8.useRef)(null);
1025
+ (0, import_react8.useImperativeHandle)(ref, () => innerRef.current);
1026
+ (0, import_react8.useEffect)(() => {
1027
+ register(innerRef);
1028
+ return () => unregister();
1029
+ }, [register, unregister]);
1030
+ const disabled = !!props?.disabled || !!state.disabled;
1031
+ const invalid = state.invalid;
1032
+ const hasValue = state.value.length > 0;
1033
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1034
+ "button",
1035
+ {
1036
+ ...props,
1037
+ ref: innerRef,
1038
+ id: state.id,
1039
+ className: (0, import_clsx4.default)(
1040
+ "flex-row-2 items-center justify-between bg-input-background text-input-text rounded-md px-2.5 py-2.5",
1041
+ "data-placeholder:text-description",
1042
+ props.className
1043
+ ),
1044
+ onClick: () => toggleOpen(!state.isOpen),
1045
+ onKeyDown: (event) => {
1046
+ switch (event.key) {
1047
+ case "ArrowDown":
1048
+ toggleOpen(true, { highlightStartPosition: "first" });
1049
+ break;
1050
+ case "ArrowUp":
1051
+ toggleOpen(true, { highlightStartPosition: "last" });
1052
+ break;
1053
+ }
1054
+ },
1055
+ "data-placeholder": !hasValue ? "" : void 0,
1056
+ "data-disabled": disabled ? "" : void 0,
1057
+ "data-invalid": invalid ? "" : void 0,
1058
+ "aria-invalid": invalid,
1059
+ "aria-disabled": disabled,
1060
+ "aria-haspopup": "listbox",
1061
+ "aria-expanded": state.isOpen,
1062
+ "aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
1063
+ children: [
1064
+ hasValue ? selectedDisplay?.(state.value) ?? state.value.join(", ") : placeholder ?? translation("clickToSelect"),
1065
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ExpansionIcon, { isExpanded: state.isOpen })
1066
+ ]
1067
+ }
1068
+ );
1069
+ });
1070
+ var SelectChipDisplay = (0, import_react8.forwardRef)(function SelectChipDisplay2({ ...props }, ref) {
1071
+ const { state, trigger, item } = useSelectContext();
1072
+ const { register, unregister, toggleOpen } = trigger;
1073
+ const innerRef = (0, import_react8.useRef)(null);
1074
+ (0, import_react8.useImperativeHandle)(ref, () => innerRef.current);
1075
+ (0, import_react8.useEffect)(() => {
1076
+ register(innerRef);
1077
+ return () => unregister();
1078
+ }, [register, unregister]);
1079
+ const disabled = !!props?.disabled || !!state.disabled;
1080
+ const invalid = state.invalid;
1081
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1082
+ "div",
1083
+ {
1084
+ ...props,
1085
+ ref: innerRef,
1086
+ className: (0, import_clsx4.default)(
1087
+ "flex flex-wrap flex-row gap-2 items-center bg-input-background text-input-text rounded-md px-2.5 py-2.5",
1088
+ props.className
1089
+ ),
1090
+ "data-disabled": disabled ? "" : void 0,
1091
+ "data-invalid": invalid ? "" : void 0,
1092
+ "aria-invalid": invalid,
1093
+ "aria-disabled": disabled,
1094
+ children: [
1095
+ state.value.map((value) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Chip, { className: "gap-x-2", children: [
1096
+ value,
1097
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1098
+ "button",
1099
+ {
1100
+ onClick: () => {
1101
+ item.toggleSelection(value, false);
1102
+ },
1103
+ 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",
1104
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.XIcon, {})
1105
+ }
1106
+ )
1107
+ ] }, value)),
1108
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1109
+ IconButton,
1110
+ {
1111
+ id: state.id,
1112
+ onClick: () => toggleOpen(),
1113
+ onKeyDown: (event) => {
1114
+ switch (event.key) {
1115
+ case "ArrowDown":
1116
+ toggleOpen(true, { highlightStartPosition: "first" });
1117
+ break;
1118
+ case "ArrowUp":
1119
+ toggleOpen(true, { highlightStartPosition: "last" });
1120
+ }
1121
+ },
1122
+ size: "small",
1123
+ color: "neutral",
1124
+ "aria-invalid": invalid,
1125
+ "aria-disabled": disabled,
1126
+ "aria-haspopup": "listbox",
1127
+ "aria-expanded": state.isOpen,
1128
+ "aria-controls": state.isOpen ? `${state.id}-listbox` : void 0,
1129
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Plus, {})
1130
+ }
1131
+ )
1132
+ ]
1133
+ }
1134
+ );
1135
+ });
1136
+ var SelectContent = (0, import_react8.forwardRef)(
1137
+ function SelectContent2({
1138
+ alignment,
1139
+ orientation = "vertical",
1140
+ ...props
1141
+ }, ref) {
1142
+ const innerRef = (0, import_react8.useRef)(null);
1143
+ (0, import_react8.useImperativeHandle)(ref, () => innerRef.current);
1144
+ const { trigger, state, item } = useSelectContext();
1145
+ const position = useFloatingElement({
1146
+ active: state.isOpen,
1147
+ anchorRef: trigger.ref,
1148
+ containerRef: innerRef,
1149
+ ...alignment
1150
+ });
1151
+ useFocusTrap({
1152
+ container: innerRef,
1153
+ active: state.isOpen && !!position
1154
+ });
1155
+ return (0, import_react_dom.createPortal)(
1156
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
1157
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1158
+ "div",
1159
+ {
1160
+ hidden: !state.isOpen,
1161
+ onClick: () => trigger.toggleOpen(false),
1162
+ className: (0, import_clsx4.default)("fixed w-screen h-screen inset-0")
1163
+ }
1164
+ ),
1165
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1166
+ "ul",
1167
+ {
1168
+ ...props,
1169
+ id: `${state.id}-listbox`,
1170
+ ref: innerRef,
1171
+ hidden: !state.isOpen,
1172
+ onKeyDown: (event) => {
1173
+ switch (event.key) {
1174
+ case "Escape":
1175
+ trigger.toggleOpen(false);
1176
+ event.preventDefault();
1177
+ event.stopPropagation();
1178
+ break;
1179
+ case match(orientation, {
1180
+ vertical: "ArrowDown",
1181
+ horizontal: "ArrowUp"
1182
+ }):
1183
+ item.moveHighlightedIndex(1);
1184
+ event.preventDefault();
1185
+ break;
1186
+ case match(orientation, {
1187
+ vertical: "ArrowUp",
1188
+ horizontal: "ArrowDown"
1189
+ }):
1190
+ item.moveHighlightedIndex(-1);
1191
+ event.preventDefault();
1192
+ break;
1193
+ case "Home":
1194
+ event.preventDefault();
1195
+ break;
1196
+ case "End":
1197
+ event.preventDefault();
1198
+ break;
1199
+ case "Enter":
1200
+ // Fall through
1201
+ case " ":
1202
+ if (state.highlightedValue) {
1203
+ item.toggleSelection(state.highlightedValue);
1204
+ if (!state.isMultiSelect) {
1205
+ trigger.toggleOpen(false);
1206
+ }
1207
+ event.preventDefault();
1208
+ }
1209
+ break;
1210
+ }
1211
+ },
1212
+ 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),
1213
+ style: {
1214
+ opacity: position ? void 0 : 0,
1215
+ position: "fixed",
1216
+ ...position
1217
+ },
1218
+ role: "listbox",
1219
+ "aria-multiselectable": state.isMultiSelect,
1220
+ "aria-orientation": orientation,
1221
+ tabIndex: position ? 0 : void 0,
1222
+ children: props.children
1223
+ }
1224
+ )
1225
+ ] }),
1226
+ document.body
1227
+ );
1228
+ }
1229
+ );
1230
+ var Select = (0, import_react8.forwardRef)(function Select2({
1231
+ children,
1232
+ contentPanelProps,
1233
+ buttonProps,
1234
+ ...props
1235
+ }, ref) {
1236
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(SelectRoot, { ...props, isMultiSelect: false, children: [
1237
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1238
+ SelectButton,
1239
+ {
1240
+ ref,
1241
+ ...buttonProps,
1242
+ selectedDisplay: (values) => {
1243
+ const value = values[0];
1244
+ if (!buttonProps?.selectedDisplay) return void 0;
1245
+ return buttonProps.selectedDisplay(value);
1246
+ }
1247
+ }
1248
+ ),
1249
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContent, { ...contentPanelProps, children })
1250
+ ] });
1251
+ });
1252
+ var SelectUncontrolled = (0, import_react8.forwardRef)(function SelectUncontrolled2({
1253
+ value: initialValue,
1254
+ onValueChanged,
1255
+ ...props
1256
+ }, ref) {
1257
+ const [value, setValue] = (0, import_react8.useState)(initialValue);
1258
+ (0, import_react8.useEffect)(() => {
1259
+ setValue(initialValue);
1260
+ }, [initialValue]);
1261
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1262
+ Select,
1263
+ {
1264
+ ...props,
1265
+ ref,
1266
+ value,
1267
+ onValueChanged: (value2) => {
1268
+ setValue(value2);
1269
+ onValueChanged?.(value2);
1270
+ }
1271
+ }
1272
+ );
1273
+ });
1274
+ var MultiSelect = (0, import_react8.forwardRef)(function MultiSelect2({
1275
+ children,
1276
+ contentPanelProps,
1277
+ buttonProps,
1278
+ ...props
1279
+ }, ref) {
1280
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(SelectRoot, { ...props, isMultiSelect: true, children: [
1281
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectButton, { ref, ...buttonProps }),
1282
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContent, { ...contentPanelProps, children })
1283
+ ] });
1284
+ });
1285
+ var MultiSelectUncontrolled = (0, import_react8.forwardRef)(function MultiSelectUncontrolled2({
1286
+ values: initialValues,
1287
+ onValuesChanged,
1288
+ ...props
1289
+ }, ref) {
1290
+ const [values, setValues] = (0, import_react8.useState)(initialValues);
1291
+ (0, import_react8.useEffect)(() => {
1292
+ setValues(initialValues);
1293
+ }, [initialValues]);
1294
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1295
+ MultiSelect,
1296
+ {
1297
+ ...props,
1298
+ ref,
1299
+ values,
1300
+ onValuesChanged: (value) => {
1301
+ setValues(value);
1302
+ onValuesChanged?.(value);
1303
+ }
1304
+ }
1305
+ );
1306
+ });
1307
+ var MultiSelectChipDisplay = (0, import_react8.forwardRef)(function MultiSelectChipDisplay2({
1308
+ children,
1309
+ contentPanelProps,
1310
+ chipDisplayProps,
1311
+ ...props
1312
+ }, ref) {
1313
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(SelectRoot, { ...props, isMultiSelect: true, children: [
1314
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectChipDisplay, { ref, ...chipDisplayProps }),
1315
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectContent, { ...contentPanelProps, children })
1316
+ ] });
1317
+ });
1318
+ var MultiSelectChipDisplayUncontrolled = (0, import_react8.forwardRef)(function MultiSelectChipDisplayUncontrolled2({
1319
+ values: initialValues,
1320
+ onValuesChanged,
1321
+ ...props
1322
+ }, ref) {
1323
+ const [values, setValues] = (0, import_react8.useState)(initialValues);
1324
+ (0, import_react8.useEffect)(() => {
1325
+ setValues(initialValues);
1326
+ }, [initialValues]);
1327
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1328
+ MultiSelectChipDisplay,
1329
+ {
1330
+ ...props,
1331
+ ref,
1332
+ values,
1333
+ onValuesChanged: (value) => {
1334
+ setValues(value);
1335
+ onValuesChanged?.(value);
1336
+ }
1337
+ }
1338
+ );
1339
+ });
1340
+ // Annotate the CommonJS export names for ESM import in node:
1341
+ 0 && (module.exports = {
1342
+ MultiSelect,
1343
+ MultiSelectChipDisplay,
1344
+ MultiSelectChipDisplayUncontrolled,
1345
+ MultiSelectUncontrolled,
1346
+ Select,
1347
+ SelectButton,
1348
+ SelectChipDisplay,
1349
+ SelectContent,
1350
+ SelectOption,
1351
+ SelectRoot,
1352
+ SelectUncontrolled
1353
+ });
1354
+ //# sourceMappingURL=Select.js.map