@helpwave/hightide 0.1.6 → 0.1.7-alpha.1

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