@helpwave/hightide 0.1.6 → 0.1.7

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 (502) hide show
  1. package/dist/coloring/{shading.d.cts → shading.d.mts} +1 -1
  2. package/dist/coloring/shading.js +14 -3329
  3. package/dist/coloring/shading.js.map +1 -1
  4. package/dist/coloring/shading.mjs +47 -0
  5. package/dist/coloring/shading.mjs.map +1 -0
  6. package/dist/coloring/types.js +26 -2
  7. package/dist/coloring/types.js.map +1 -1
  8. package/dist/coloring/types.mjs +6 -0
  9. package/dist/coloring/{types.cjs.map → types.mjs.map} +1 -1
  10. package/dist/components/branding/HelpwaveBadge.js +59 -25
  11. package/dist/components/branding/HelpwaveBadge.js.map +1 -1
  12. package/dist/components/branding/HelpwaveBadge.mjs +122 -0
  13. package/dist/components/branding/HelpwaveBadge.mjs.map +1 -0
  14. package/dist/components/date/{DatePicker.d.cts → DatePicker.d.mts} +5 -5
  15. package/dist/components/date/DatePicker.js +119 -83
  16. package/dist/components/date/DatePicker.js.map +1 -1
  17. package/dist/components/date/{DatePicker.cjs → DatePicker.mjs} +85 -120
  18. package/dist/components/date/DatePicker.mjs.map +1 -0
  19. package/dist/components/date/{DayPicker.d.cts → DayPicker.d.mts} +1 -1
  20. package/dist/components/date/DayPicker.js +55 -18
  21. package/dist/components/date/DayPicker.js.map +1 -1
  22. package/dist/components/date/{DayPicker.cjs → DayPicker.mjs} +19 -57
  23. package/dist/components/date/DayPicker.mjs.map +1 -0
  24. package/dist/components/date/{TimeDisplay.d.cts → TimeDisplay.d.mts} +2 -2
  25. package/dist/components/date/TimeDisplay.js +35 -9
  26. package/dist/components/date/TimeDisplay.js.map +1 -1
  27. package/dist/components/date/{TimeDisplay.cjs → TimeDisplay.mjs} +10 -37
  28. package/dist/components/date/TimeDisplay.mjs.map +1 -0
  29. package/dist/components/date/TimePicker.js +57 -22
  30. package/dist/components/date/TimePicker.js.map +1 -1
  31. package/dist/components/date/{TimePicker.cjs → TimePicker.mjs} +23 -59
  32. package/dist/components/date/TimePicker.mjs.map +1 -0
  33. package/dist/components/date/{YearMonthPicker.d.cts → YearMonthPicker.d.mts} +1 -1
  34. package/dist/components/date/YearMonthPicker.d.ts +1 -1
  35. package/dist/components/date/YearMonthPicker.js +73 -38
  36. package/dist/components/date/YearMonthPicker.js.map +1 -1
  37. package/dist/components/date/{YearMonthPicker.cjs → YearMonthPicker.mjs} +39 -75
  38. package/dist/components/date/YearMonthPicker.mjs.map +1 -0
  39. package/dist/components/dialogs/{ConfirmDialog.d.cts → ConfirmDialog.d.mts} +4 -4
  40. package/dist/components/dialogs/ConfirmDialog.js +98 -62
  41. package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
  42. package/dist/components/dialogs/{ConfirmDialog.cjs → ConfirmDialog.mjs} +63 -100
  43. package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -0
  44. package/dist/components/icons-and-geometry/Avatar.js +47 -10
  45. package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
  46. package/dist/components/icons-and-geometry/Avatar.mjs +81 -0
  47. package/dist/components/icons-and-geometry/{Avatar.cjs.map → Avatar.mjs.map} +1 -1
  48. package/dist/components/icons-and-geometry/Circle.js +40 -6
  49. package/dist/components/icons-and-geometry/Circle.js.map +1 -1
  50. package/dist/components/icons-and-geometry/Circle.mjs +27 -0
  51. package/dist/components/icons-and-geometry/{Circle.cjs.map → Circle.mjs.map} +1 -1
  52. package/dist/components/icons-and-geometry/Helpwave.js +38 -14
  53. package/dist/components/icons-and-geometry/Helpwave.js.map +1 -1
  54. package/dist/components/icons-and-geometry/Helpwave.mjs +75 -0
  55. package/dist/components/icons-and-geometry/{Helpwave.cjs.map → Helpwave.mjs.map} +1 -1
  56. package/dist/components/icons-and-geometry/Ring.js +74 -37
  57. package/dist/components/icons-and-geometry/Ring.js.map +1 -1
  58. package/dist/components/icons-and-geometry/{Ring.cjs → Ring.mjs} +38 -76
  59. package/dist/components/icons-and-geometry/{Ring.cjs.map → Ring.mjs.map} +1 -1
  60. package/dist/components/icons-and-geometry/Tag.js +28 -4
  61. package/dist/components/icons-and-geometry/Tag.js.map +1 -1
  62. package/dist/components/icons-and-geometry/Tag.mjs +22 -0
  63. package/dist/components/icons-and-geometry/{Tag.cjs.map → Tag.mjs.map} +1 -1
  64. package/dist/components/layout-and-navigation/BreadCrumb.js +195 -191
  65. package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
  66. package/dist/components/layout-and-navigation/{BreadCrumb.cjs → BreadCrumb.mjs} +191 -198
  67. package/dist/components/layout-and-navigation/{BreadCrumb.cjs.map → BreadCrumb.mjs.map} +1 -1
  68. package/dist/components/layout-and-navigation/Carousel.js +68 -34
  69. package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
  70. package/dist/components/layout-and-navigation/{Carousel.cjs → Carousel.mjs} +35 -70
  71. package/dist/components/layout-and-navigation/{Carousel.cjs.map → Carousel.mjs.map} +1 -1
  72. package/dist/components/layout-and-navigation/Chip.js +43 -8
  73. package/dist/components/layout-and-navigation/Chip.js.map +1 -1
  74. package/dist/components/layout-and-navigation/Chip.mjs +69 -0
  75. package/dist/components/layout-and-navigation/{Chip.cjs.map → Chip.mjs.map} +1 -1
  76. package/dist/components/layout-and-navigation/DividerInserter.js +39 -5
  77. package/dist/components/layout-and-navigation/DividerInserter.js.map +1 -1
  78. package/dist/components/layout-and-navigation/DividerInserter.mjs +25 -0
  79. package/dist/components/layout-and-navigation/{DividerInserter.cjs.map → DividerInserter.mjs.map} +1 -1
  80. package/dist/components/layout-and-navigation/Expandable.js +52 -17
  81. package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
  82. package/dist/components/layout-and-navigation/Expandable.mjs +81 -0
  83. package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -0
  84. package/dist/components/layout-and-navigation/{FAQSection.d.cts → FAQSection.d.mts} +1 -1
  85. package/dist/components/layout-and-navigation/FAQSection.js +75 -41
  86. package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
  87. package/dist/components/layout-and-navigation/{FAQSection.cjs → FAQSection.mjs} +42 -77
  88. package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -0
  89. package/dist/components/layout-and-navigation/{MarkdownInterpreter.d.cts → MarkdownInterpreter.d.mts} +1 -1
  90. package/dist/components/layout-and-navigation/MarkdownInterpreter.d.ts +1 -1
  91. package/dist/components/layout-and-navigation/MarkdownInterpreter.js +43 -18
  92. package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +1 -1
  93. package/dist/components/layout-and-navigation/{MarkdownInterpreter.cjs → MarkdownInterpreter.mjs} +19 -45
  94. package/dist/components/layout-and-navigation/{MarkdownInterpreter.cjs.map → MarkdownInterpreter.mjs.map} +1 -1
  95. package/dist/components/layout-and-navigation/{Overlay.d.cts → Overlay.d.mts} +3 -3
  96. package/dist/components/layout-and-navigation/Overlay.d.ts +1 -1
  97. package/dist/components/layout-and-navigation/Overlay.js +91 -54
  98. package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
  99. package/dist/components/layout-and-navigation/{Overlay.cjs → Overlay.mjs} +55 -93
  100. package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -0
  101. package/dist/components/layout-and-navigation/{Pagination.d.cts → Pagination.d.mts} +2 -2
  102. package/dist/components/layout-and-navigation/Pagination.js +53 -19
  103. package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
  104. package/dist/components/layout-and-navigation/Pagination.mjs +82 -0
  105. package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -0
  106. package/dist/components/layout-and-navigation/{SearchableList.d.cts → SearchableList.d.mts} +2 -2
  107. package/dist/components/layout-and-navigation/SearchableList.js +76 -42
  108. package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
  109. package/dist/components/layout-and-navigation/SearchableList.mjs +252 -0
  110. package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -0
  111. package/dist/components/layout-and-navigation/{StepperBar.d.cts → StepperBar.d.mts} +3 -3
  112. package/dist/components/layout-and-navigation/StepperBar.d.ts +1 -1
  113. package/dist/components/layout-and-navigation/StepperBar.js +69 -34
  114. package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
  115. package/dist/components/layout-and-navigation/{StepperBar.cjs → StepperBar.mjs} +35 -71
  116. package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -0
  117. package/dist/components/layout-and-navigation/{Table.d.cts → Table.d.mts} +4 -4
  118. package/dist/components/layout-and-navigation/Table.d.ts +3 -3
  119. package/dist/components/layout-and-navigation/Table.js +111 -68
  120. package/dist/components/layout-and-navigation/Table.js.map +1 -1
  121. package/dist/components/layout-and-navigation/{Table.cjs → Table.mjs} +69 -113
  122. package/dist/components/layout-and-navigation/Table.mjs.map +1 -0
  123. package/dist/components/layout-and-navigation/{TextImage.d.cts → TextImage.d.mts} +2 -2
  124. package/dist/components/layout-and-navigation/TextImage.js +54 -18
  125. package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
  126. package/dist/components/layout-and-navigation/TextImage.mjs +101 -0
  127. package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -0
  128. package/dist/components/layout-and-navigation/Tile.js +42 -8
  129. package/dist/components/layout-and-navigation/Tile.js.map +1 -1
  130. package/dist/components/layout-and-navigation/Tile.mjs +23 -0
  131. package/dist/components/layout-and-navigation/{Tile.cjs.map → Tile.mjs.map} +1 -1
  132. package/dist/components/layout-and-navigation/VerticalDivider.js +33 -9
  133. package/dist/components/layout-and-navigation/VerticalDivider.js.map +1 -1
  134. package/dist/components/layout-and-navigation/VerticalDivider.mjs +56 -0
  135. package/dist/components/layout-and-navigation/{VerticalDivider.cjs.map → VerticalDivider.mjs.map} +1 -1
  136. package/dist/components/loading-states/{ErrorComponent.d.cts → ErrorComponent.d.mts} +2 -2
  137. package/dist/components/loading-states/ErrorComponent.js +46 -12
  138. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  139. package/dist/components/loading-states/ErrorComponent.mjs +68 -0
  140. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -0
  141. package/dist/components/loading-states/{LoadingAndErrorComponent.d.cts → LoadingAndErrorComponent.d.mts} +5 -5
  142. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
  143. package/dist/components/loading-states/LoadingAndErrorComponent.js +68 -34
  144. package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
  145. package/dist/components/loading-states/LoadingAndErrorComponent.mjs +194 -0
  146. package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -0
  147. package/dist/components/loading-states/{LoadingAnimation.d.cts → LoadingAnimation.d.mts} +2 -2
  148. package/dist/components/loading-states/LoadingAnimation.js +59 -23
  149. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  150. package/dist/components/loading-states/LoadingAnimation.mjs +139 -0
  151. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -0
  152. package/dist/components/loading-states/{LoadingButton.d.cts → LoadingButton.d.mts} +1 -1
  153. package/dist/components/loading-states/LoadingButton.js +62 -28
  154. package/dist/components/loading-states/LoadingButton.js.map +1 -1
  155. package/dist/components/loading-states/{LoadingButton.cjs → LoadingButton.mjs} +29 -64
  156. package/dist/components/loading-states/LoadingButton.mjs.map +1 -0
  157. package/dist/components/loading-states/ProgressIndicator.js +30 -6
  158. package/dist/components/loading-states/ProgressIndicator.js.map +1 -1
  159. package/dist/components/loading-states/ProgressIndicator.mjs +59 -0
  160. package/dist/components/loading-states/{ProgressIndicator.cjs.map → ProgressIndicator.mjs.map} +1 -1
  161. package/dist/components/modals/{ConfirmModal.d.cts → ConfirmModal.d.mts} +4 -4
  162. package/dist/components/modals/ConfirmModal.js +99 -63
  163. package/dist/components/modals/ConfirmModal.js.map +1 -1
  164. package/dist/components/modals/{ConfirmModal.cjs → ConfirmModal.mjs} +64 -101
  165. package/dist/components/modals/ConfirmModal.mjs.map +1 -0
  166. package/dist/components/modals/{DiscardChangesModal.d.cts → DiscardChangesModal.d.mts} +5 -5
  167. package/dist/components/modals/DiscardChangesModal.js +101 -65
  168. package/dist/components/modals/DiscardChangesModal.js.map +1 -1
  169. package/dist/components/modals/{DiscardChangesModal.cjs → DiscardChangesModal.mjs} +66 -103
  170. package/dist/components/modals/DiscardChangesModal.mjs.map +1 -0
  171. package/dist/components/modals/{InputModal.d.cts → InputModal.d.mts} +7 -7
  172. package/dist/components/modals/InputModal.js +124 -88
  173. package/dist/components/modals/InputModal.js.map +1 -1
  174. package/dist/components/modals/{InputModal.cjs → InputModal.mjs} +89 -126
  175. package/dist/components/modals/InputModal.mjs.map +1 -0
  176. package/dist/components/modals/{LanguageModal.d.cts → LanguageModal.d.mts} +3 -3
  177. package/dist/components/modals/LanguageModal.js +130 -95
  178. package/dist/components/modals/LanguageModal.js.map +1 -1
  179. package/dist/components/modals/{LanguageModal.cjs → LanguageModal.mjs} +95 -133
  180. package/dist/components/modals/LanguageModal.mjs.map +1 -0
  181. package/dist/components/modals/{ThemeModal.d.cts → ThemeModal.d.mts} +4 -4
  182. package/dist/components/modals/ThemeModal.js +134 -99
  183. package/dist/components/modals/ThemeModal.js.map +1 -1
  184. package/dist/components/modals/{ThemeModal.cjs → ThemeModal.mjs} +99 -137
  185. package/dist/components/modals/ThemeModal.mjs.map +1 -0
  186. package/dist/components/properties/{CheckboxProperty.d.cts → CheckboxProperty.d.mts} +3 -3
  187. package/dist/components/properties/CheckboxProperty.js +87 -53
  188. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  189. package/dist/components/properties/{CheckboxProperty.cjs → CheckboxProperty.mjs} +54 -89
  190. package/dist/components/properties/CheckboxProperty.mjs.map +1 -0
  191. package/dist/components/properties/{DateProperty.d.cts → DateProperty.d.mts} +3 -3
  192. package/dist/components/properties/DateProperty.js +94 -60
  193. package/dist/components/properties/DateProperty.js.map +1 -1
  194. package/dist/components/properties/{DateProperty.cjs → DateProperty.mjs} +61 -96
  195. package/dist/components/properties/DateProperty.mjs.map +1 -0
  196. package/dist/components/properties/{MultiSelectProperty.d.cts → MultiSelectProperty.d.mts} +5 -5
  197. package/dist/components/properties/MultiSelectProperty.js +157 -123
  198. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  199. package/dist/components/properties/{MultiSelectProperty.cjs → MultiSelectProperty.mjs} +124 -159
  200. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -0
  201. package/dist/components/properties/{NumberProperty.d.cts → NumberProperty.d.mts} +3 -3
  202. package/dist/components/properties/NumberProperty.js +95 -61
  203. package/dist/components/properties/NumberProperty.js.map +1 -1
  204. package/dist/components/properties/{NumberProperty.cjs → NumberProperty.mjs} +62 -97
  205. package/dist/components/properties/NumberProperty.mjs.map +1 -0
  206. package/dist/components/properties/{PropertyBase.d.cts → PropertyBase.d.mts} +2 -2
  207. package/dist/components/properties/PropertyBase.js +63 -29
  208. package/dist/components/properties/PropertyBase.js.map +1 -1
  209. package/dist/components/properties/PropertyBase.mjs +188 -0
  210. package/dist/components/properties/PropertyBase.mjs.map +1 -0
  211. package/dist/components/properties/{SelectProperty.d.cts → SelectProperty.d.mts} +5 -5
  212. package/dist/components/properties/SelectProperty.js +119 -86
  213. package/dist/components/properties/SelectProperty.js.map +1 -1
  214. package/dist/components/properties/{SelectProperty.cjs → SelectProperty.mjs} +86 -122
  215. package/dist/components/properties/SelectProperty.mjs.map +1 -0
  216. package/dist/components/properties/{TextProperty.d.cts → TextProperty.d.mts} +3 -3
  217. package/dist/components/properties/TextProperty.js +92 -58
  218. package/dist/components/properties/TextProperty.js.map +1 -1
  219. package/dist/components/properties/{TextProperty.cjs → TextProperty.mjs} +59 -94
  220. package/dist/components/properties/TextProperty.mjs.map +1 -0
  221. package/dist/components/user-action/Button.js +67 -28
  222. package/dist/components/user-action/Button.js.map +1 -1
  223. package/dist/components/user-action/{Button.cjs → Button.mjs} +29 -69
  224. package/dist/components/user-action/{Button.cjs.map → Button.mjs.map} +1 -1
  225. package/dist/components/user-action/{Checkbox.d.cts → Checkbox.d.mts} +1 -1
  226. package/dist/components/user-action/Checkbox.js +58 -23
  227. package/dist/components/user-action/Checkbox.js.map +1 -1
  228. package/dist/components/user-action/Checkbox.mjs +122 -0
  229. package/dist/components/user-action/Checkbox.mjs.map +1 -0
  230. package/dist/components/user-action/{DateAndTimePicker.d.cts → DateAndTimePicker.d.mts} +7 -7
  231. package/dist/components/user-action/DateAndTimePicker.js +142 -107
  232. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  233. package/dist/components/user-action/{DateAndTimePicker.cjs → DateAndTimePicker.mjs} +109 -143
  234. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -0
  235. package/dist/components/user-action/{Input.d.cts → Input.d.mts} +1 -1
  236. package/dist/components/user-action/Input.js +62 -26
  237. package/dist/components/user-action/Input.js.map +1 -1
  238. package/dist/components/user-action/Input.mjs +186 -0
  239. package/dist/components/user-action/Input.mjs.map +1 -0
  240. package/dist/components/user-action/Label.js +39 -5
  241. package/dist/components/user-action/Label.js.map +1 -1
  242. package/dist/components/user-action/Label.mjs +21 -0
  243. package/dist/components/user-action/{Label.cjs.map → Label.mjs.map} +1 -1
  244. package/dist/components/user-action/Menu.js +54 -19
  245. package/dist/components/user-action/Menu.js.map +1 -1
  246. package/dist/components/user-action/Menu.mjs +127 -0
  247. package/dist/components/user-action/Menu.mjs.map +1 -0
  248. package/dist/components/user-action/{MultiSelect.d.cts → MultiSelect.d.mts} +3 -3
  249. package/dist/components/user-action/MultiSelect.js +118 -84
  250. package/dist/components/user-action/MultiSelect.js.map +1 -1
  251. package/dist/components/user-action/{MultiSelect.cjs → MultiSelect.mjs} +85 -120
  252. package/dist/components/user-action/MultiSelect.mjs.map +1 -0
  253. package/dist/components/user-action/ScrollPicker.js +50 -16
  254. package/dist/components/user-action/ScrollPicker.js.map +1 -1
  255. package/dist/components/user-action/{ScrollPicker.cjs → ScrollPicker.mjs} +17 -52
  256. package/dist/components/user-action/ScrollPicker.mjs.map +1 -0
  257. package/dist/components/user-action/{Select.d.cts → Select.d.mts} +2 -2
  258. package/dist/components/user-action/Select.d.ts +1 -1
  259. package/dist/components/user-action/Select.js +88 -53
  260. package/dist/components/user-action/Select.js.map +1 -1
  261. package/dist/components/user-action/{Select.cjs → Select.mjs} +53 -91
  262. package/dist/components/user-action/Select.mjs.map +1 -0
  263. package/dist/components/user-action/{Textarea.d.cts → Textarea.d.mts} +1 -1
  264. package/dist/components/user-action/Textarea.js +60 -25
  265. package/dist/components/user-action/Textarea.js.map +1 -1
  266. package/dist/components/user-action/Textarea.mjs +163 -0
  267. package/dist/components/user-action/Textarea.mjs.map +1 -0
  268. package/dist/components/user-action/ToggleableInput.js +61 -26
  269. package/dist/components/user-action/ToggleableInput.js.map +1 -1
  270. package/dist/components/user-action/ToggleableInput.mjs +156 -0
  271. package/dist/components/user-action/ToggleableInput.mjs.map +1 -0
  272. package/dist/components/user-action/Tooltip.js +41 -15
  273. package/dist/components/user-action/Tooltip.js.map +1 -1
  274. package/dist/components/user-action/{Tooltip.cjs → Tooltip.mjs} +16 -43
  275. package/dist/components/user-action/Tooltip.mjs.map +1 -0
  276. package/dist/css/globals.css +33 -24
  277. package/dist/css/uncompiled/globals.css +19 -7
  278. package/dist/hooks/useHoverState.js +31 -7
  279. package/dist/hooks/useHoverState.js.map +1 -1
  280. package/dist/hooks/useHoverState.mjs +47 -0
  281. package/dist/hooks/{useHoverState.cjs.map → useHoverState.mjs.map} +1 -1
  282. package/dist/hooks/useLocalStorage.js +31 -7
  283. package/dist/hooks/useLocalStorage.js.map +1 -1
  284. package/dist/hooks/useLocalStorage.mjs +58 -0
  285. package/dist/hooks/{useLocalStorage.cjs.map → useLocalStorage.mjs.map} +1 -1
  286. package/dist/hooks/useOutsideClick.js +28 -4
  287. package/dist/hooks/useOutsideClick.js.map +1 -1
  288. package/dist/hooks/useOutsideClick.mjs +23 -0
  289. package/dist/hooks/{useOutsideClick.cjs.map → useOutsideClick.mjs.map} +1 -1
  290. package/dist/hooks/useSaveDelay.js +30 -6
  291. package/dist/hooks/useSaveDelay.js.map +1 -1
  292. package/dist/hooks/useSaveDelay.mjs +43 -0
  293. package/dist/hooks/{useSaveDelay.cjs.map → useSaveDelay.mjs.map} +1 -1
  294. package/dist/{index.d.cts → index.d.mts} +78 -78
  295. package/dist/index.js +1038 -885
  296. package/dist/index.js.map +1 -1
  297. package/dist/{index.cjs → index.mjs} +886 -1038
  298. package/dist/index.mjs.map +1 -0
  299. package/dist/localization/{LanguageProvider.d.cts → LanguageProvider.d.mts} +1 -1
  300. package/dist/localization/LanguageProvider.js +43 -16
  301. package/dist/localization/LanguageProvider.js.map +1 -1
  302. package/dist/localization/{LanguageProvider.cjs → LanguageProvider.mjs} +17 -45
  303. package/dist/localization/LanguageProvider.mjs.map +1 -0
  304. package/dist/localization/{useTranslation.d.cts → useTranslation.d.mts} +1 -1
  305. package/dist/localization/useTranslation.js +33 -7
  306. package/dist/localization/useTranslation.js.map +1 -1
  307. package/dist/localization/useTranslation.mjs +42 -0
  308. package/dist/localization/useTranslation.mjs.map +1 -0
  309. package/dist/localization/util.js +26 -2
  310. package/dist/localization/util.js.map +1 -1
  311. package/dist/localization/util.mjs +16 -0
  312. package/dist/localization/{util.cjs.map → util.mjs.map} +1 -1
  313. package/dist/theming/{useTheme.d.cts → useTheme.d.mts} +2 -2
  314. package/dist/theming/useTheme.js +37 -10
  315. package/dist/theming/useTheme.js.map +1 -1
  316. package/dist/theming/useTheme.mjs +48 -0
  317. package/dist/theming/useTheme.mjs.map +1 -0
  318. package/dist/util/array.js +32 -2
  319. package/dist/util/array.js.map +1 -1
  320. package/dist/util/{array.cjs → array.mjs} +3 -34
  321. package/dist/util/{array.cjs.map → array.mjs.map} +1 -1
  322. package/dist/util/builder.js +26 -2
  323. package/dist/util/builder.js.map +1 -1
  324. package/dist/util/builder.mjs +9 -0
  325. package/dist/util/{builder.cjs.map → builder.mjs.map} +1 -1
  326. package/dist/util/date.js +39 -2
  327. package/dist/util/date.js.map +1 -1
  328. package/dist/util/{date.cjs → date.mjs} +3 -41
  329. package/dist/util/date.mjs.map +1 -0
  330. package/dist/util/easeFunctions.js +28 -2
  331. package/dist/util/easeFunctions.js.map +1 -1
  332. package/dist/util/easeFunctions.mjs +36 -0
  333. package/dist/util/easeFunctions.mjs.map +1 -0
  334. package/dist/util/emailValidation.js +26 -2
  335. package/dist/util/emailValidation.js.map +1 -1
  336. package/dist/util/emailValidation.mjs +8 -0
  337. package/dist/util/{emailValidation.cjs.map → emailValidation.mjs.map} +1 -1
  338. package/dist/util/loopingArray.js +26 -2
  339. package/dist/util/loopingArray.js.map +1 -1
  340. package/dist/util/{loopingArray.cjs → loopingArray.mjs} +3 -28
  341. package/dist/util/{loopingArray.cjs.map → loopingArray.mjs.map} +1 -1
  342. package/dist/util/math.js +26 -2
  343. package/dist/util/math.js.map +1 -1
  344. package/dist/util/math.mjs +8 -0
  345. package/dist/util/{math.cjs.map → math.mjs.map} +1 -1
  346. package/dist/util/news.d.mts +101 -0
  347. package/dist/util/news.d.ts +54 -54
  348. package/dist/util/news.js +39 -12
  349. package/dist/util/news.js.map +1 -1
  350. package/dist/util/news.mjs +49 -0
  351. package/dist/util/news.mjs.map +1 -0
  352. package/dist/util/noop.d.mts +3 -0
  353. package/dist/util/noop.d.ts +1 -1
  354. package/dist/util/noop.js +26 -2
  355. package/dist/util/noop.js.map +1 -1
  356. package/dist/util/noop.mjs +6 -0
  357. package/dist/util/noop.mjs.map +1 -0
  358. package/dist/util/simpleSearch.js +29 -2
  359. package/dist/util/simpleSearch.js.map +1 -1
  360. package/dist/util/simpleSearch.mjs +26 -0
  361. package/dist/util/{simpleSearch.cjs.map → simpleSearch.mjs.map} +1 -1
  362. package/dist/util/storage.js +27 -2
  363. package/dist/util/storage.js.map +1 -1
  364. package/dist/util/storage.mjs +38 -0
  365. package/dist/util/{storage.cjs.map → storage.mjs.map} +1 -1
  366. package/dist/util/types.js +17 -0
  367. package/dist/util/types.js.map +1 -1
  368. package/dist/util/types.mjs +1 -0
  369. package/dist/util/types.mjs.map +1 -0
  370. package/package.json +5 -7
  371. package/dist/coloring/shading.cjs +0 -3402
  372. package/dist/coloring/shading.cjs.map +0 -1
  373. package/dist/coloring/types.cjs +0 -31
  374. package/dist/components/branding/HelpwaveBadge.cjs +0 -157
  375. package/dist/components/branding/HelpwaveBadge.cjs.map +0 -1
  376. package/dist/components/date/DatePicker.cjs.map +0 -1
  377. package/dist/components/date/DayPicker.cjs.map +0 -1
  378. package/dist/components/date/TimeDisplay.cjs.map +0 -1
  379. package/dist/components/date/TimePicker.cjs.map +0 -1
  380. package/dist/components/date/YearMonthPicker.cjs.map +0 -1
  381. package/dist/components/dialogs/ConfirmDialog.cjs.map +0 -1
  382. package/dist/components/icons-and-geometry/Avatar.cjs +0 -119
  383. package/dist/components/icons-and-geometry/Circle.cjs +0 -62
  384. package/dist/components/icons-and-geometry/Helpwave.cjs +0 -100
  385. package/dist/components/icons-and-geometry/Tag.cjs +0 -47
  386. package/dist/components/layout-and-navigation/Chip.cjs +0 -105
  387. package/dist/components/layout-and-navigation/DividerInserter.cjs +0 -60
  388. package/dist/components/layout-and-navigation/Expandable.cjs +0 -117
  389. package/dist/components/layout-and-navigation/Expandable.cjs.map +0 -1
  390. package/dist/components/layout-and-navigation/FAQSection.cjs.map +0 -1
  391. package/dist/components/layout-and-navigation/Overlay.cjs.map +0 -1
  392. package/dist/components/layout-and-navigation/Pagination.cjs +0 -117
  393. package/dist/components/layout-and-navigation/Pagination.cjs.map +0 -1
  394. package/dist/components/layout-and-navigation/SearchableList.cjs +0 -287
  395. package/dist/components/layout-and-navigation/SearchableList.cjs.map +0 -1
  396. package/dist/components/layout-and-navigation/StepperBar.cjs.map +0 -1
  397. package/dist/components/layout-and-navigation/Table.cjs.map +0 -1
  398. package/dist/components/layout-and-navigation/TextImage.cjs +0 -138
  399. package/dist/components/layout-and-navigation/TextImage.cjs.map +0 -1
  400. package/dist/components/layout-and-navigation/Tile.cjs +0 -58
  401. package/dist/components/layout-and-navigation/VerticalDivider.cjs +0 -81
  402. package/dist/components/loading-states/ErrorComponent.cjs +0 -103
  403. package/dist/components/loading-states/ErrorComponent.cjs.map +0 -1
  404. package/dist/components/loading-states/LoadingAndErrorComponent.cjs +0 -229
  405. package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +0 -1
  406. package/dist/components/loading-states/LoadingAnimation.cjs +0 -176
  407. package/dist/components/loading-states/LoadingAnimation.cjs.map +0 -1
  408. package/dist/components/loading-states/LoadingButton.cjs.map +0 -1
  409. package/dist/components/loading-states/ProgressIndicator.cjs +0 -84
  410. package/dist/components/modals/ConfirmModal.cjs.map +0 -1
  411. package/dist/components/modals/DiscardChangesModal.cjs.map +0 -1
  412. package/dist/components/modals/InputModal.cjs.map +0 -1
  413. package/dist/components/modals/LanguageModal.cjs.map +0 -1
  414. package/dist/components/modals/ThemeModal.cjs.map +0 -1
  415. package/dist/components/properties/CheckboxProperty.cjs.map +0 -1
  416. package/dist/components/properties/DateProperty.cjs.map +0 -1
  417. package/dist/components/properties/MultiSelectProperty.cjs.map +0 -1
  418. package/dist/components/properties/NumberProperty.cjs.map +0 -1
  419. package/dist/components/properties/PropertyBase.cjs +0 -223
  420. package/dist/components/properties/PropertyBase.cjs.map +0 -1
  421. package/dist/components/properties/SelectProperty.cjs.map +0 -1
  422. package/dist/components/properties/TextProperty.cjs.map +0 -1
  423. package/dist/components/user-action/Checkbox.cjs +0 -158
  424. package/dist/components/user-action/Checkbox.cjs.map +0 -1
  425. package/dist/components/user-action/DateAndTimePicker.cjs.map +0 -1
  426. package/dist/components/user-action/Input.cjs +0 -223
  427. package/dist/components/user-action/Input.cjs.map +0 -1
  428. package/dist/components/user-action/Label.cjs +0 -56
  429. package/dist/components/user-action/Menu.cjs +0 -163
  430. package/dist/components/user-action/Menu.cjs.map +0 -1
  431. package/dist/components/user-action/MultiSelect.cjs.map +0 -1
  432. package/dist/components/user-action/ScrollPicker.cjs.map +0 -1
  433. package/dist/components/user-action/Select.cjs.map +0 -1
  434. package/dist/components/user-action/Textarea.cjs +0 -199
  435. package/dist/components/user-action/Textarea.cjs.map +0 -1
  436. package/dist/components/user-action/ToggleableInput.cjs +0 -192
  437. package/dist/components/user-action/ToggleableInput.cjs.map +0 -1
  438. package/dist/components/user-action/Tooltip.cjs.map +0 -1
  439. package/dist/hooks/useHoverState.cjs +0 -72
  440. package/dist/hooks/useLocalStorage.cjs +0 -83
  441. package/dist/hooks/useOutsideClick.cjs +0 -48
  442. package/dist/hooks/useSaveDelay.cjs +0 -68
  443. package/dist/index.cjs.map +0 -1
  444. package/dist/localization/LanguageProvider.cjs.map +0 -1
  445. package/dist/localization/useTranslation.cjs +0 -69
  446. package/dist/localization/useTranslation.cjs.map +0 -1
  447. package/dist/localization/util.cjs +0 -41
  448. package/dist/theming/useTheme.cjs +0 -76
  449. package/dist/theming/useTheme.cjs.map +0 -1
  450. package/dist/util/builder.cjs +0 -34
  451. package/dist/util/date.cjs.map +0 -1
  452. package/dist/util/easeFunctions.cjs +0 -63
  453. package/dist/util/easeFunctions.cjs.map +0 -1
  454. package/dist/util/emailValidation.cjs +0 -33
  455. package/dist/util/math.cjs +0 -33
  456. package/dist/util/news.cjs +0 -77
  457. package/dist/util/news.cjs.map +0 -1
  458. package/dist/util/news.d.cts +0 -101
  459. package/dist/util/noop.cjs +0 -31
  460. package/dist/util/noop.cjs.map +0 -1
  461. package/dist/util/noop.d.cts +0 -3
  462. package/dist/util/simpleSearch.cjs +0 -54
  463. package/dist/util/storage.cjs +0 -64
  464. package/dist/util/types.cjs +0 -19
  465. package/dist/util/types.cjs.map +0 -1
  466. /package/dist/coloring/{types.d.cts → types.d.mts} +0 -0
  467. /package/dist/components/branding/{HelpwaveBadge.d.cts → HelpwaveBadge.d.mts} +0 -0
  468. /package/dist/components/date/{TimePicker.d.cts → TimePicker.d.mts} +0 -0
  469. /package/dist/components/icons-and-geometry/{Avatar.d.cts → Avatar.d.mts} +0 -0
  470. /package/dist/components/icons-and-geometry/{Circle.d.cts → Circle.d.mts} +0 -0
  471. /package/dist/components/icons-and-geometry/{Helpwave.d.cts → Helpwave.d.mts} +0 -0
  472. /package/dist/components/icons-and-geometry/{Ring.d.cts → Ring.d.mts} +0 -0
  473. /package/dist/components/icons-and-geometry/{Tag.d.cts → Tag.d.mts} +0 -0
  474. /package/dist/components/layout-and-navigation/{BreadCrumb.d.cts → BreadCrumb.d.mts} +0 -0
  475. /package/dist/components/layout-and-navigation/{Carousel.d.cts → Carousel.d.mts} +0 -0
  476. /package/dist/components/layout-and-navigation/{Chip.d.cts → Chip.d.mts} +0 -0
  477. /package/dist/components/layout-and-navigation/{DividerInserter.d.cts → DividerInserter.d.mts} +0 -0
  478. /package/dist/components/layout-and-navigation/{Expandable.d.cts → Expandable.d.mts} +0 -0
  479. /package/dist/components/layout-and-navigation/{Tile.d.cts → Tile.d.mts} +0 -0
  480. /package/dist/components/layout-and-navigation/{VerticalDivider.d.cts → VerticalDivider.d.mts} +0 -0
  481. /package/dist/components/loading-states/{ProgressIndicator.d.cts → ProgressIndicator.d.mts} +0 -0
  482. /package/dist/components/user-action/{Button.d.cts → Button.d.mts} +0 -0
  483. /package/dist/components/user-action/{Label.d.cts → Label.d.mts} +0 -0
  484. /package/dist/components/user-action/{Menu.d.cts → Menu.d.mts} +0 -0
  485. /package/dist/components/user-action/{ScrollPicker.d.cts → ScrollPicker.d.mts} +0 -0
  486. /package/dist/components/user-action/{ToggleableInput.d.cts → ToggleableInput.d.mts} +0 -0
  487. /package/dist/components/user-action/{Tooltip.d.cts → Tooltip.d.mts} +0 -0
  488. /package/dist/hooks/{useHoverState.d.cts → useHoverState.d.mts} +0 -0
  489. /package/dist/hooks/{useLocalStorage.d.cts → useLocalStorage.d.mts} +0 -0
  490. /package/dist/hooks/{useOutsideClick.d.cts → useOutsideClick.d.mts} +0 -0
  491. /package/dist/hooks/{useSaveDelay.d.cts → useSaveDelay.d.mts} +0 -0
  492. /package/dist/localization/{util.d.cts → util.d.mts} +0 -0
  493. /package/dist/util/{array.d.cts → array.d.mts} +0 -0
  494. /package/dist/util/{builder.d.cts → builder.d.mts} +0 -0
  495. /package/dist/util/{date.d.cts → date.d.mts} +0 -0
  496. /package/dist/util/{easeFunctions.d.cts → easeFunctions.d.mts} +0 -0
  497. /package/dist/util/{emailValidation.d.cts → emailValidation.d.mts} +0 -0
  498. /package/dist/util/{loopingArray.d.cts → loopingArray.d.mts} +0 -0
  499. /package/dist/util/{math.d.cts → math.d.mts} +0 -0
  500. /package/dist/util/{simpleSearch.d.cts → simpleSearch.d.mts} +0 -0
  501. /package/dist/util/{storage.d.cts → storage.d.mts} +0 -0
  502. /package/dist/util/{types.d.cts → types.d.mts} +0 -0
@@ -1,44 +1,8 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/components/modals/ThemeModal.tsx
31
- var ThemeModal_exports = {};
32
- __export(ThemeModal_exports, {
33
- ThemeModal: () => ThemeModal
34
- });
35
- module.exports = __toCommonJS(ThemeModal_exports);
36
-
37
1
  // src/localization/LanguageProvider.tsx
38
- var import_react2 = require("react");
2
+ import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
39
3
 
40
4
  // src/hooks/useLocalStorage.ts
41
- var import_react = require("react");
5
+ import { useCallback, useEffect, useState } from "react";
42
6
 
43
7
  // src/localization/util.ts
44
8
  var languages = ["en", "de"];
@@ -54,12 +18,12 @@ var LanguageUtil = {
54
18
  };
55
19
 
56
20
  // src/localization/LanguageProvider.tsx
57
- var import_jsx_runtime = require("react/jsx-runtime");
58
- var LanguageContext = (0, import_react2.createContext)({
21
+ import { jsx } from "react/jsx-runtime";
22
+ var LanguageContext = createContext({
59
23
  language: LanguageUtil.DEFAULT_LANGUAGE,
60
24
  setLanguage: (v) => v
61
25
  });
62
- var useLanguage = () => (0, import_react2.useContext)(LanguageContext);
26
+ var useLanguage = () => useContext(LanguageContext);
63
27
 
64
28
  // src/localization/useTranslation.ts
65
29
  var useTranslation = (defaults, translationOverwrite = {}) => {
@@ -74,14 +38,14 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
74
38
  };
75
39
 
76
40
  // src/components/user-action/Select.tsx
77
- var import_react5 = require("@headlessui/react");
78
- var import_lucide_react = require("lucide-react");
79
- var import_react6 = require("react");
80
- var import_clsx3 = __toESM(require("clsx"), 1);
41
+ import { Menu } from "@headlessui/react";
42
+ import { ChevronDown, ChevronUp, Search } from "lucide-react";
43
+ import { useEffect as useEffect5, useState as useState5 } from "react";
44
+ import clsx3 from "clsx";
81
45
 
82
46
  // src/components/user-action/Label.tsx
83
- var import_clsx = __toESM(require("clsx"), 1);
84
- var import_jsx_runtime2 = require("react/jsx-runtime");
47
+ import clsx from "clsx";
48
+ import { jsx as jsx2 } from "react/jsx-runtime";
85
49
  var styleMapping = {
86
50
  labelSmall: "textstyle-label-sm",
87
51
  labelMedium: "textstyle-label-md",
@@ -94,22 +58,22 @@ var Label = ({
94
58
  className,
95
59
  ...props
96
60
  }) => {
97
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { ...props, className: (0, import_clsx.default)(styleMapping[labelType], className), children: children ? children : name });
61
+ return /* @__PURE__ */ jsx2("label", { ...props, className: clsx(styleMapping[labelType], className), children: children ? children : name });
98
62
  };
99
63
 
100
64
  // src/components/user-action/Input.tsx
101
- var import_react4 = require("react");
102
- var import_clsx2 = __toESM(require("clsx"), 1);
65
+ import { forwardRef, useEffect as useEffect4, useRef, useState as useState4 } from "react";
66
+ import clsx2 from "clsx";
103
67
 
104
68
  // src/hooks/useSaveDelay.ts
105
- var import_react3 = require("react");
69
+ import { useEffect as useEffect3, useState as useState3 } from "react";
106
70
 
107
71
  // src/util/noop.ts
108
72
  var noop = () => void 0;
109
73
 
110
74
  // src/components/user-action/Input.tsx
111
- var import_jsx_runtime3 = require("react/jsx-runtime");
112
- var FormInput = (0, import_react4.forwardRef)(function FormInput2({
75
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
76
+ var FormInput = forwardRef(function FormInput2({
113
77
  id,
114
78
  labelText,
115
79
  errorText,
@@ -120,13 +84,13 @@ var FormInput = (0, import_react4.forwardRef)(function FormInput2({
120
84
  required,
121
85
  ...restProps
122
86
  }, ref) {
123
- const input = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
87
+ const input = /* @__PURE__ */ jsx3(
124
88
  "input",
125
89
  {
126
90
  ref,
127
91
  id,
128
92
  ...restProps,
129
- className: (0, import_clsx2.default)(
93
+ className: clsx2(
130
94
  {
131
95
  "focus:border-primary focus:ring-primary": !errorText,
132
96
  "focus:border-negative focus:ring-negative text-negative": !!errorText
@@ -135,18 +99,18 @@ var FormInput = (0, import_react4.forwardRef)(function FormInput2({
135
99
  )
136
100
  }
137
101
  );
138
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx2.default)("flex flex-col gap-y-1", containerClassName), children: [
139
- labelText && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { htmlFor: id, className: (0, import_clsx2.default)("textstyle-label-md", labelClassName), children: [
102
+ return /* @__PURE__ */ jsxs("div", { className: clsx2("flex flex-col gap-y-1", containerClassName), children: [
103
+ labelText && /* @__PURE__ */ jsxs("label", { htmlFor: id, className: clsx2("textstyle-label-md", labelClassName), children: [
140
104
  labelText,
141
- required && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-primary font-bold", children: "*" })
105
+ required && /* @__PURE__ */ jsx3("span", { className: "text-primary font-bold", children: "*" })
142
106
  ] }),
143
107
  input,
144
- errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { htmlFor: id, className: (0, import_clsx2.default)("text-negative", errorClassName), children: errorText })
108
+ errorText && /* @__PURE__ */ jsx3("label", { htmlFor: id, className: clsx2("text-negative", errorClassName), children: errorText })
145
109
  ] });
146
110
  });
147
111
 
148
112
  // src/components/user-action/Select.tsx
149
- var import_jsx_runtime4 = require("react/jsx-runtime");
113
+ import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
150
114
  var Select = ({
151
115
  value,
152
116
  label,
@@ -158,7 +122,6 @@ var Select = ({
158
122
  isDisabled,
159
123
  className,
160
124
  textColor = "text-menu-text",
161
- hoverColor = "hover:brightness-90",
162
125
  additionalItems,
163
126
  selectedDisplayOverwrite
164
127
  }) => {
@@ -171,48 +134,48 @@ var Select = ({
171
134
  console.warn("The selected value is not found in the options list. This might be an error on your part or default behavior if it is complex data type on which === does not work. In case of the latter use selectedDisplayOverwrite to set your selected text or component");
172
135
  }
173
136
  const borderColor = "border-menu-border";
174
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)(className), children: [
175
- label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { ...label, labelType: label.labelType ?? "labelBig", className: (0, import_clsx3.default)("mb-1", label.className) }),
176
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react5.Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
177
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
178
- import_react5.Menu.Button,
137
+ return /* @__PURE__ */ jsxs2("div", { className: clsx3(className), children: [
138
+ label && /* @__PURE__ */ jsx4(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx3("mb-1", label.className) }),
139
+ /* @__PURE__ */ jsx4(Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ jsxs2(Fragment, { children: [
140
+ /* @__PURE__ */ jsxs2(
141
+ Menu.Button,
179
142
  {
180
- className: (0, import_clsx3.default)(
143
+ className: clsx3(
181
144
  "inline-flex w-full justify-between items-center rounded-t-lg border-2 px-4 py-2 font-medium bg-menu-background text-menu-text",
182
145
  textColor,
183
146
  borderColor,
184
147
  {
185
148
  "rounded-b-lg": !open,
186
- [hoverColor]: !isDisabled,
149
+ "hover:border-primary": !isDisabled,
187
150
  "bg-disabled-background cursor-not-allowed text-disabled": isDisabled
188
151
  }
189
152
  ),
190
153
  disabled: isDisabled,
191
154
  children: [
192
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
193
- open ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, {})
155
+ /* @__PURE__ */ jsx4("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
156
+ open ? /* @__PURE__ */ jsx4(ChevronUp, {}) : /* @__PURE__ */ jsx4(ChevronDown, {})
194
157
  ]
195
158
  }
196
159
  ),
197
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
198
- import_react5.Menu.Items,
160
+ /* @__PURE__ */ jsxs2(
161
+ Menu.Items,
199
162
  {
200
163
  className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
201
164
  children: [
202
- (additionalItems ?? []).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
165
+ (additionalItems ?? []).map((item, index) => /* @__PURE__ */ jsx4(
203
166
  "div",
204
167
  {
205
- className: (0, import_clsx3.default)(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
168
+ className: clsx3(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
206
169
  "border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
207
170
  }),
208
171
  children: item
209
172
  },
210
173
  `additionalItems${index}`
211
174
  )),
212
- filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react5.Menu.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
175
+ filteredOptions.map((option, index) => /* @__PURE__ */ jsx4(Menu.Item, { children: /* @__PURE__ */ jsx4(
213
176
  "div",
214
177
  {
215
- className: (0, import_clsx3.default)(
178
+ className: clsx3(
216
179
  "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
217
180
  option.className,
218
181
  borderColor,
@@ -240,8 +203,8 @@ var Select = ({
240
203
  };
241
204
 
242
205
  // src/components/user-action/Button.tsx
243
- var import_clsx4 = __toESM(require("clsx"), 1);
244
- var import_jsx_runtime5 = require("react/jsx-runtime");
206
+ import clsx4 from "clsx";
207
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
245
208
  var paddingMapping = {
246
209
  small: "btn-sm",
247
210
  medium: "btn-md",
@@ -285,25 +248,25 @@ var SolidButton = ({
285
248
  negative: "text-button-solid-negative-icon",
286
249
  neutral: "text-button-solid-neutral-icon"
287
250
  }[color];
288
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
251
+ return /* @__PURE__ */ jsxs3(
289
252
  "button",
290
253
  {
291
254
  onClick: disabled ? void 0 : onClick,
292
255
  disabled: disabled || onClick === void 0,
293
- className: (0, import_clsx4.default)(
256
+ className: clsx4(
294
257
  {
295
258
  "text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
296
- [(0, import_clsx4.default)(colorClasses, "hover:brightness-90")]: !disabled
259
+ [clsx4(colorClasses, "hover:brightness-90")]: !disabled
297
260
  },
298
261
  ButtonUtil.paddingMapping[size],
299
262
  className
300
263
  ),
301
264
  ...restProps,
302
265
  children: [
303
- startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
266
+ startIcon && /* @__PURE__ */ jsx5(
304
267
  "span",
305
268
  {
306
- className: (0, import_clsx4.default)({
269
+ className: clsx4({
307
270
  [iconColorClasses]: !disabled,
308
271
  [`text-disabled-icon`]: disabled
309
272
  }),
@@ -311,10 +274,10 @@ var SolidButton = ({
311
274
  }
312
275
  ),
313
276
  children,
314
- endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
277
+ endIcon && /* @__PURE__ */ jsx5(
315
278
  "span",
316
279
  {
317
- className: (0, import_clsx4.default)({
280
+ className: clsx4({
318
281
  [iconColorClasses]: !disabled,
319
282
  [`text-disabled-icon`]: disabled
320
283
  }),
@@ -343,15 +306,15 @@ var IconButton = ({
343
306
  negative: "bg-button-solid-negative-background text-button-solid-negative-text",
344
307
  neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
345
308
  }[color];
346
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
309
+ return /* @__PURE__ */ jsx5(
347
310
  "button",
348
311
  {
349
312
  onClick: disabled ? void 0 : onClick,
350
313
  disabled: disabled || onClick === void 0,
351
- className: (0, import_clsx4.default)(
314
+ className: clsx4(
352
315
  {
353
316
  "text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
354
- [(0, import_clsx4.default)(colorClasses, "hover:brightness-90")]: !disabled
317
+ [clsx4(colorClasses, "hover:brightness-90")]: !disabled
355
318
  },
356
319
  ButtonUtil.iconPaddingMapping[size],
357
320
  className
@@ -363,20 +326,20 @@ var IconButton = ({
363
326
  };
364
327
 
365
328
  // src/components/layout-and-navigation/Overlay.tsx
366
- var import_react8 = require("react");
367
- var import_react_dom = __toESM(require("react-dom"), 1);
368
- var import_clsx6 = __toESM(require("clsx"), 1);
329
+ import { useEffect as useEffect7, useRef as useRef2, useState as useState7 } from "react";
330
+ import ReactDOM from "react-dom";
331
+ import clsx6 from "clsx";
369
332
 
370
333
  // src/hooks/useHoverState.ts
371
- var import_react7 = require("react");
334
+ import { useEffect as useEffect6, useState as useState6 } from "react";
372
335
  var defaultUseHoverStateProps = {
373
336
  closingDelay: 200,
374
337
  isDisabled: false
375
338
  };
376
339
  var useHoverState = (props = void 0) => {
377
340
  const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
378
- const [isHovered, setIsHovered] = (0, import_react7.useState)(false);
379
- const [timer, setTimer] = (0, import_react7.useState)();
341
+ const [isHovered, setIsHovered] = useState6(false);
342
+ const [timer, setTimer] = useState6();
380
343
  const onMouseEnter = () => {
381
344
  if (isDisabled) {
382
345
  return;
@@ -392,14 +355,14 @@ var useHoverState = (props = void 0) => {
392
355
  setIsHovered(false);
393
356
  }, closingDelay));
394
357
  };
395
- (0, import_react7.useEffect)(() => {
358
+ useEffect6(() => {
396
359
  if (timer) {
397
360
  return () => {
398
361
  clearTimeout(timer);
399
362
  };
400
363
  }
401
364
  });
402
- (0, import_react7.useEffect)(() => {
365
+ useEffect6(() => {
403
366
  if (timer) {
404
367
  clearTimeout(timer);
405
368
  }
@@ -412,8 +375,8 @@ var useHoverState = (props = void 0) => {
412
375
  };
413
376
 
414
377
  // src/components/user-action/Tooltip.tsx
415
- var import_clsx5 = require("clsx");
416
- var import_jsx_runtime6 = require("react/jsx-runtime");
378
+ import { clsx as clsx5 } from "clsx";
379
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
417
380
  var Tooltip = ({
418
381
  tooltip,
419
382
  children,
@@ -443,17 +406,17 @@ var Tooltip = ({
443
406
  left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
444
407
  right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
445
408
  };
446
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
409
+ return /* @__PURE__ */ jsxs4(
447
410
  "div",
448
411
  {
449
- className: (0, import_clsx5.clsx)("relative inline-block", containerClassName),
412
+ className: clsx5("relative inline-block", containerClassName),
450
413
  ...handlers,
451
414
  children: [
452
415
  children,
453
- isHovered && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
416
+ isHovered && /* @__PURE__ */ jsxs4(
454
417
  "div",
455
418
  {
456
- className: (0, import_clsx5.clsx)(
419
+ className: clsx5(
457
420
  `opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
458
421
  animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
459
422
  positionClasses[position],
@@ -462,10 +425,10 @@ var Tooltip = ({
462
425
  style: { zIndex, animationDelay: animationDelay + "ms" },
463
426
  children: [
464
427
  tooltip,
465
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
428
+ /* @__PURE__ */ jsx6(
466
429
  "div",
467
430
  {
468
- className: (0, import_clsx5.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
431
+ className: clsx5(`absolute w-0 h-0`, triangleClasses[position]),
469
432
  style: { ...triangleStyle[position], zIndex }
470
433
  }
471
434
  )
@@ -478,25 +441,25 @@ var Tooltip = ({
478
441
  };
479
442
 
480
443
  // src/components/layout-and-navigation/Overlay.tsx
481
- var import_lucide_react2 = require("lucide-react");
482
- var import_jsx_runtime7 = require("react/jsx-runtime");
444
+ import { X } from "lucide-react";
445
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
483
446
  var Overlay = ({
484
447
  children,
485
448
  isOpen,
486
449
  onBackgroundClick,
487
450
  backgroundClassName
488
451
  }) => {
489
- const [root, setRoot] = (0, import_react8.useState)();
490
- (0, import_react8.useEffect)(() => {
452
+ const [root, setRoot] = useState7();
453
+ useEffect7(() => {
491
454
  setRoot(document.body);
492
455
  }, []);
493
456
  if (!root || !isOpen) return null;
494
- return import_react_dom.default.createPortal(
495
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_clsx6.default)("fixed inset-0 z-[9999]"), children: [
496
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
457
+ return ReactDOM.createPortal(
458
+ /* @__PURE__ */ jsxs5("div", { className: clsx6("fixed inset-0 z-[9999]"), children: [
459
+ /* @__PURE__ */ jsx7(
497
460
  "div",
498
461
  {
499
- className: (0, import_clsx6.default)("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
462
+ className: clsx6("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
500
463
  onClick: onBackgroundClick
501
464
  }
502
465
  ),
@@ -524,21 +487,21 @@ var OverlayHeader = ({
524
487
  }) => {
525
488
  const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
526
489
  const hasTitleRow = !!title || !!titleText || !!onClose;
527
- const titleRow = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "row justify-between items-start gap-x-8", children: [
528
- title ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
490
+ const titleRow = /* @__PURE__ */ jsxs5("div", { className: "row justify-between items-start gap-x-8", children: [
491
+ title ?? /* @__PURE__ */ jsx7(
529
492
  "h2",
530
493
  {
531
- className: (0, import_clsx6.default)("textstyle-title-lg", {
494
+ className: clsx6("textstyle-title-lg", {
532
495
  "mb-1": description || descriptionText
533
496
  }),
534
497
  children: titleText
535
498
  }
536
499
  ),
537
- !!onClose && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.X, { className: "w-full h-full" }) }) })
500
+ !!onClose && /* @__PURE__ */ jsx7(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx7(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ jsx7(X, { className: "w-full h-full" }) }) })
538
501
  ] });
539
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "col", children: [
502
+ return /* @__PURE__ */ jsxs5("div", { className: "col", children: [
540
503
  hasTitleRow && titleRow,
541
- description ?? (descriptionText && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "textstyle-description", children: descriptionText }))
504
+ description ?? (descriptionText && /* @__PURE__ */ jsx7("span", { className: "textstyle-description", children: descriptionText }))
542
505
  ] });
543
506
  };
544
507
  var Modal = ({
@@ -549,8 +512,8 @@ var Modal = ({
549
512
  backgroundClassName,
550
513
  headerProps
551
514
  }) => {
552
- const ref = (0, import_react8.useRef)(null);
553
- (0, import_react8.useEffect)(() => {
515
+ const ref = useRef2(null);
516
+ useEffect7(() => {
554
517
  if (!isOpen) return;
555
518
  const modal = ref.current;
556
519
  if (!modal) {
@@ -587,25 +550,25 @@ var Modal = ({
587
550
  overlayStack = overlayStack.filter((m) => m !== modal);
588
551
  };
589
552
  }, [isOpen, onClose]);
590
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
553
+ return /* @__PURE__ */ jsx7(
591
554
  Overlay,
592
555
  {
593
556
  isOpen,
594
557
  onBackgroundClick: onClose,
595
558
  backgroundClassName,
596
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
559
+ children: /* @__PURE__ */ jsxs5(
597
560
  "div",
598
561
  {
599
562
  ref,
600
563
  tabIndex: -1,
601
- className: (0, import_clsx6.default)(
564
+ className: clsx6(
602
565
  "fixed left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 col p-4 bg-overlay-background text-overlay-text rounded-xl shadow-xl",
603
566
  className
604
567
  ),
605
568
  role: "dialog",
606
569
  "aria-modal": true,
607
570
  children: [
608
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(OverlayHeader, { ...headerProps, onClose }),
571
+ /* @__PURE__ */ jsx7(OverlayHeader, { ...headerProps, onClose }),
609
572
  children
610
573
  ]
611
574
  }
@@ -615,8 +578,8 @@ var Modal = ({
615
578
  };
616
579
 
617
580
  // src/theming/useTheme.tsx
618
- var import_react9 = require("react");
619
- var import_jsx_runtime8 = require("react/jsx-runtime");
581
+ import { createContext as createContext2, useContext as useContext2, useEffect as useEffect8, useState as useState8 } from "react";
582
+ import { jsx as jsx8 } from "react/jsx-runtime";
620
583
  var themes = ["light", "dark"];
621
584
  var defaultThemeTypeTranslation = {
622
585
  en: {
@@ -632,14 +595,14 @@ var ThemeUtil = {
632
595
  themes,
633
596
  translation: defaultThemeTypeTranslation
634
597
  };
635
- var ThemeContext = (0, import_react9.createContext)({
598
+ var ThemeContext = createContext2({
636
599
  theme: "light",
637
600
  setTheme: noop
638
601
  });
639
- var useTheme = () => (0, import_react9.useContext)(ThemeContext);
602
+ var useTheme = () => useContext2(ThemeContext);
640
603
 
641
604
  // src/components/modals/ThemeModal.tsx
642
- var import_jsx_runtime9 = require("react/jsx-runtime");
605
+ import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
643
606
  var defaultConfirmDialogTranslation = {
644
607
  en: {
645
608
  title: "Theme",
@@ -662,7 +625,7 @@ var ThemeModal = ({
662
625
  }) => {
663
626
  const { theme, setTheme } = useTheme();
664
627
  const translation = useTranslation(defaultConfirmDialogTranslation, overwriteTranslation);
665
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
628
+ return /* @__PURE__ */ jsx9(
666
629
  Modal,
667
630
  {
668
631
  headerProps: {
@@ -672,8 +635,8 @@ var ThemeModal = ({
672
635
  },
673
636
  onClose,
674
637
  ...modalProps,
675
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "w-64", children: [
676
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
638
+ children: /* @__PURE__ */ jsxs6("div", { className: "w-64", children: [
639
+ /* @__PURE__ */ jsx9(
677
640
  Select,
678
641
  {
679
642
  className: "mt-2",
@@ -682,13 +645,12 @@ var ThemeModal = ({
682
645
  onChange: (theme2) => setTheme(theme2)
683
646
  }
684
647
  ),
685
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
648
+ /* @__PURE__ */ jsx9("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ jsx9(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
686
649
  ] })
687
650
  }
688
651
  );
689
652
  };
690
- // Annotate the CommonJS export names for ESM import in node:
691
- 0 && (module.exports = {
653
+ export {
692
654
  ThemeModal
693
- });
694
- //# sourceMappingURL=ThemeModal.cjs.map
655
+ };
656
+ //# sourceMappingURL=ThemeModal.mjs.map