@helpwave/hightide 0.1.7 → 0.1.9

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 (263) hide show
  1. package/dist/components/branding/HelpwaveBadge.js +30 -8
  2. package/dist/components/branding/HelpwaveBadge.js.map +1 -1
  3. package/dist/components/branding/HelpwaveBadge.mjs +30 -8
  4. package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
  5. package/dist/components/date/DatePicker.d.mts +3 -4
  6. package/dist/components/date/DatePicker.d.ts +3 -4
  7. package/dist/components/date/DatePicker.js +135 -33
  8. package/dist/components/date/DatePicker.js.map +1 -1
  9. package/dist/components/date/DatePicker.mjs +135 -33
  10. package/dist/components/date/DatePicker.mjs.map +1 -1
  11. package/dist/components/date/DayPicker.d.mts +1 -1
  12. package/dist/components/date/DayPicker.d.ts +1 -1
  13. package/dist/components/date/DayPicker.js +23 -11
  14. package/dist/components/date/DayPicker.js.map +1 -1
  15. package/dist/components/date/DayPicker.mjs +23 -11
  16. package/dist/components/date/DayPicker.mjs.map +1 -1
  17. package/dist/components/date/TimeDisplay.d.mts +5 -19
  18. package/dist/components/date/TimeDisplay.d.ts +5 -19
  19. package/dist/components/date/TimeDisplay.js +121 -37
  20. package/dist/components/date/TimeDisplay.js.map +1 -1
  21. package/dist/components/date/TimeDisplay.mjs +121 -37
  22. package/dist/components/date/TimeDisplay.mjs.map +1 -1
  23. package/dist/components/date/YearMonthPicker.js +106 -22
  24. package/dist/components/date/YearMonthPicker.js.map +1 -1
  25. package/dist/components/date/YearMonthPicker.mjs +106 -22
  26. package/dist/components/date/YearMonthPicker.mjs.map +1 -1
  27. package/dist/components/dialogs/ConfirmDialog.d.mts +2 -5
  28. package/dist/components/dialogs/ConfirmDialog.d.ts +2 -5
  29. package/dist/components/dialogs/ConfirmDialog.js +157 -25
  30. package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
  31. package/dist/components/dialogs/ConfirmDialog.mjs +157 -25
  32. package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
  33. package/dist/components/icons-and-geometry/Avatar.js +2 -2
  34. package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
  35. package/dist/components/icons-and-geometry/Avatar.mjs +2 -2
  36. package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
  37. package/dist/components/layout-and-navigation/Carousel.d.mts +1 -1
  38. package/dist/components/layout-and-navigation/Carousel.d.ts +1 -1
  39. package/dist/components/layout-and-navigation/Carousel.js +86 -28
  40. package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
  41. package/dist/components/layout-and-navigation/Carousel.mjs +86 -28
  42. package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
  43. package/dist/components/layout-and-navigation/Expandable.d.mts +3 -0
  44. package/dist/components/layout-and-navigation/Expandable.d.ts +3 -0
  45. package/dist/components/layout-and-navigation/Expandable.js +4 -3
  46. package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
  47. package/dist/components/layout-and-navigation/Expandable.mjs +4 -3
  48. package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -1
  49. package/dist/components/layout-and-navigation/FAQSection.js +4 -3
  50. package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
  51. package/dist/components/layout-and-navigation/FAQSection.mjs +4 -3
  52. package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -1
  53. package/dist/components/layout-and-navigation/Overlay.d.mts +2 -3
  54. package/dist/components/layout-and-navigation/Overlay.d.ts +2 -3
  55. package/dist/components/layout-and-navigation/Overlay.js +152 -12
  56. package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
  57. package/dist/components/layout-and-navigation/Overlay.mjs +152 -12
  58. package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
  59. package/dist/components/layout-and-navigation/Pagination.d.mts +2 -3
  60. package/dist/components/layout-and-navigation/Pagination.d.ts +2 -3
  61. package/dist/components/layout-and-navigation/Pagination.js +145 -13
  62. package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
  63. package/dist/components/layout-and-navigation/Pagination.mjs +145 -13
  64. package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
  65. package/dist/components/layout-and-navigation/SearchableList.d.mts +10 -8
  66. package/dist/components/layout-and-navigation/SearchableList.d.ts +10 -8
  67. package/dist/components/layout-and-navigation/SearchableList.js +261 -30
  68. package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
  69. package/dist/components/layout-and-navigation/SearchableList.mjs +261 -30
  70. package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
  71. package/dist/components/layout-and-navigation/StepperBar.d.mts +2 -5
  72. package/dist/components/layout-and-navigation/StepperBar.d.ts +2 -5
  73. package/dist/components/layout-and-navigation/StepperBar.js +149 -19
  74. package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
  75. package/dist/components/layout-and-navigation/StepperBar.mjs +149 -19
  76. package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
  77. package/dist/components/layout-and-navigation/Table.js +146 -14
  78. package/dist/components/layout-and-navigation/Table.js.map +1 -1
  79. package/dist/components/layout-and-navigation/Table.mjs +146 -14
  80. package/dist/components/layout-and-navigation/Table.mjs.map +1 -1
  81. package/dist/components/layout-and-navigation/TextImage.d.mts +3 -4
  82. package/dist/components/layout-and-navigation/TextImage.d.ts +3 -4
  83. package/dist/components/layout-and-navigation/TextImage.js +153 -19
  84. package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
  85. package/dist/components/layout-and-navigation/TextImage.mjs +153 -19
  86. package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
  87. package/dist/components/layout-and-navigation/Tile.d.mts +10 -15
  88. package/dist/components/layout-and-navigation/Tile.d.ts +10 -15
  89. package/dist/components/layout-and-navigation/Tile.js +30 -8
  90. package/dist/components/layout-and-navigation/Tile.js.map +1 -1
  91. package/dist/components/layout-and-navigation/Tile.mjs +30 -8
  92. package/dist/components/layout-and-navigation/Tile.mjs.map +1 -1
  93. package/dist/components/loading-states/ErrorComponent.js +48 -8
  94. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  95. package/dist/components/loading-states/ErrorComponent.mjs +48 -8
  96. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
  97. package/dist/components/loading-states/LoadingAndErrorComponent.d.mts +1 -0
  98. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -0
  99. package/dist/components/loading-states/LoadingAndErrorComponent.js +147 -15
  100. package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
  101. package/dist/components/loading-states/LoadingAndErrorComponent.mjs +147 -15
  102. package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -1
  103. package/dist/components/loading-states/LoadingAnimation.d.mts +2 -3
  104. package/dist/components/loading-states/LoadingAnimation.d.ts +2 -3
  105. package/dist/components/loading-states/LoadingAnimation.js +145 -13
  106. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  107. package/dist/components/loading-states/LoadingAnimation.mjs +145 -13
  108. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
  109. package/dist/components/loading-states/ProgressIndicator.js +2 -2
  110. package/dist/components/loading-states/ProgressIndicator.js.map +1 -1
  111. package/dist/components/loading-states/ProgressIndicator.mjs +2 -2
  112. package/dist/components/loading-states/ProgressIndicator.mjs.map +1 -1
  113. package/dist/components/modals/ConfirmModal.d.mts +2 -5
  114. package/dist/components/modals/ConfirmModal.d.ts +2 -5
  115. package/dist/components/modals/ConfirmModal.js +158 -28
  116. package/dist/components/modals/ConfirmModal.js.map +1 -1
  117. package/dist/components/modals/ConfirmModal.mjs +158 -28
  118. package/dist/components/modals/ConfirmModal.mjs.map +1 -1
  119. package/dist/components/modals/DiscardChangesModal.d.mts +2 -7
  120. package/dist/components/modals/DiscardChangesModal.d.ts +2 -7
  121. package/dist/components/modals/DiscardChangesModal.js +162 -48
  122. package/dist/components/modals/DiscardChangesModal.js.map +1 -1
  123. package/dist/components/modals/DiscardChangesModal.mjs +162 -48
  124. package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
  125. package/dist/components/modals/InputModal.d.mts +1 -0
  126. package/dist/components/modals/InputModal.d.ts +1 -0
  127. package/dist/components/modals/InputModal.js +158 -28
  128. package/dist/components/modals/InputModal.js.map +1 -1
  129. package/dist/components/modals/InputModal.mjs +158 -28
  130. package/dist/components/modals/InputModal.mjs.map +1 -1
  131. package/dist/components/modals/LanguageModal.d.mts +3 -2
  132. package/dist/components/modals/LanguageModal.d.ts +3 -2
  133. package/dist/components/modals/LanguageModal.js +538 -166
  134. package/dist/components/modals/LanguageModal.js.map +1 -1
  135. package/dist/components/modals/LanguageModal.mjs +537 -165
  136. package/dist/components/modals/LanguageModal.mjs.map +1 -1
  137. package/dist/components/modals/ThemeModal.d.mts +5 -5
  138. package/dist/components/modals/ThemeModal.d.ts +5 -5
  139. package/dist/components/modals/ThemeModal.js +547 -176
  140. package/dist/components/modals/ThemeModal.js.map +1 -1
  141. package/dist/components/modals/ThemeModal.mjs +544 -173
  142. package/dist/components/modals/ThemeModal.mjs.map +1 -1
  143. package/dist/components/properties/CheckboxProperty.d.mts +3 -5
  144. package/dist/components/properties/CheckboxProperty.d.ts +3 -5
  145. package/dist/components/properties/CheckboxProperty.js +148 -26
  146. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  147. package/dist/components/properties/CheckboxProperty.mjs +148 -26
  148. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  149. package/dist/components/properties/DateProperty.d.mts +1 -0
  150. package/dist/components/properties/DateProperty.d.ts +1 -0
  151. package/dist/components/properties/DateProperty.js +146 -14
  152. package/dist/components/properties/DateProperty.js.map +1 -1
  153. package/dist/components/properties/DateProperty.mjs +146 -14
  154. package/dist/components/properties/DateProperty.mjs.map +1 -1
  155. package/dist/components/properties/MultiSelectProperty.d.mts +5 -5
  156. package/dist/components/properties/MultiSelectProperty.d.ts +5 -5
  157. package/dist/components/properties/MultiSelectProperty.js +626 -456
  158. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  159. package/dist/components/properties/MultiSelectProperty.mjs +622 -452
  160. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  161. package/dist/components/properties/NumberProperty.d.mts +1 -0
  162. package/dist/components/properties/NumberProperty.d.ts +1 -0
  163. package/dist/components/properties/NumberProperty.js +148 -16
  164. package/dist/components/properties/NumberProperty.js.map +1 -1
  165. package/dist/components/properties/NumberProperty.mjs +148 -16
  166. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  167. package/dist/components/properties/PropertyBase.d.mts +2 -3
  168. package/dist/components/properties/PropertyBase.d.ts +2 -3
  169. package/dist/components/properties/PropertyBase.js +146 -14
  170. package/dist/components/properties/PropertyBase.js.map +1 -1
  171. package/dist/components/properties/PropertyBase.mjs +146 -14
  172. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  173. package/dist/components/properties/SelectProperty.d.mts +5 -6
  174. package/dist/components/properties/SelectProperty.d.ts +5 -6
  175. package/dist/components/properties/SelectProperty.js +542 -279
  176. package/dist/components/properties/SelectProperty.js.map +1 -1
  177. package/dist/components/properties/SelectProperty.mjs +542 -279
  178. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  179. package/dist/components/properties/TextProperty.d.mts +2 -1
  180. package/dist/components/properties/TextProperty.d.ts +2 -1
  181. package/dist/components/properties/TextProperty.js +150 -18
  182. package/dist/components/properties/TextProperty.js.map +1 -1
  183. package/dist/components/properties/TextProperty.mjs +150 -18
  184. package/dist/components/properties/TextProperty.mjs.map +1 -1
  185. package/dist/components/user-action/DateAndTimePicker.d.mts +4 -20
  186. package/dist/components/user-action/DateAndTimePicker.d.ts +4 -20
  187. package/dist/components/user-action/DateAndTimePicker.js +233 -71
  188. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  189. package/dist/components/user-action/DateAndTimePicker.mjs +233 -71
  190. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  191. package/dist/components/user-action/Menu.d.mts +14 -8
  192. package/dist/components/user-action/Menu.d.ts +14 -8
  193. package/dist/components/user-action/Menu.js +32 -11
  194. package/dist/components/user-action/Menu.js.map +1 -1
  195. package/dist/components/user-action/Menu.mjs +32 -11
  196. package/dist/components/user-action/Menu.mjs.map +1 -1
  197. package/dist/components/user-action/MultiSelect.d.mts +13 -23
  198. package/dist/components/user-action/MultiSelect.d.ts +13 -23
  199. package/dist/components/user-action/MultiSelect.js +632 -325
  200. package/dist/components/user-action/MultiSelect.js.map +1 -1
  201. package/dist/components/user-action/MultiSelect.mjs +629 -323
  202. package/dist/components/user-action/MultiSelect.mjs.map +1 -1
  203. package/dist/components/user-action/Select.d.mts +5 -18
  204. package/dist/components/user-action/Select.d.ts +5 -18
  205. package/dist/components/user-action/Select.js +447 -113
  206. package/dist/components/user-action/Select.js.map +1 -1
  207. package/dist/components/user-action/Select.mjs +442 -107
  208. package/dist/components/user-action/Select.mjs.map +1 -1
  209. package/dist/components/user-action/Tooltip.js +2 -2
  210. package/dist/components/user-action/Tooltip.js.map +1 -1
  211. package/dist/components/user-action/Tooltip.mjs +2 -2
  212. package/dist/components/user-action/Tooltip.mjs.map +1 -1
  213. package/dist/css/globals.css +224 -207
  214. package/dist/css/uncompiled/globals.css +138 -74
  215. package/dist/hooks/useSearch.d.mts +17 -0
  216. package/dist/hooks/useSearch.d.ts +17 -0
  217. package/dist/hooks/useSearch.js +66 -0
  218. package/dist/hooks/useSearch.js.map +1 -0
  219. package/dist/hooks/useSearch.mjs +42 -0
  220. package/dist/hooks/useSearch.mjs.map +1 -0
  221. package/dist/index.d.mts +10 -6
  222. package/dist/index.d.ts +10 -6
  223. package/dist/index.js +882 -758
  224. package/dist/index.js.map +1 -1
  225. package/dist/index.mjs +836 -717
  226. package/dist/index.mjs.map +1 -1
  227. package/dist/localization/defaults/form.d.mts +54 -0
  228. package/dist/localization/defaults/form.d.ts +54 -0
  229. package/dist/localization/defaults/form.js +127 -0
  230. package/dist/localization/defaults/form.js.map +1 -0
  231. package/dist/localization/defaults/form.mjs +103 -0
  232. package/dist/localization/defaults/form.mjs.map +1 -0
  233. package/dist/localization/defaults/time.d.mts +39 -0
  234. package/dist/localization/defaults/time.d.ts +39 -0
  235. package/dist/localization/defaults/time.js +101 -0
  236. package/dist/localization/defaults/time.js.map +1 -0
  237. package/dist/localization/defaults/time.mjs +76 -0
  238. package/dist/localization/defaults/time.mjs.map +1 -0
  239. package/dist/localization/useTranslation.d.mts +30 -6
  240. package/dist/localization/useTranslation.d.ts +30 -6
  241. package/dist/localization/useTranslation.js +46 -6
  242. package/dist/localization/useTranslation.js.map +1 -1
  243. package/dist/localization/useTranslation.mjs +46 -6
  244. package/dist/localization/useTranslation.mjs.map +1 -1
  245. package/dist/theming/useTheme.d.mts +4 -2
  246. package/dist/theming/useTheme.d.ts +4 -2
  247. package/dist/theming/useTheme.js +10 -2
  248. package/dist/theming/useTheme.js.map +1 -1
  249. package/dist/theming/useTheme.mjs +10 -2
  250. package/dist/theming/useTheme.mjs.map +1 -1
  251. package/dist/util/PropsWithFunctionChildren.d.mts +14 -0
  252. package/dist/util/PropsWithFunctionChildren.d.ts +14 -0
  253. package/dist/util/PropsWithFunctionChildren.js +38 -0
  254. package/dist/util/PropsWithFunctionChildren.js.map +1 -0
  255. package/dist/util/PropsWithFunctionChildren.mjs +14 -0
  256. package/dist/util/PropsWithFunctionChildren.mjs.map +1 -0
  257. package/dist/util/simpleSearch.d.mts +2 -2
  258. package/dist/util/simpleSearch.d.ts +2 -2
  259. package/dist/util/simpleSearch.js +4 -1
  260. package/dist/util/simpleSearch.js.map +1 -1
  261. package/dist/util/simpleSearch.mjs +4 -1
  262. package/dist/util/simpleSearch.mjs.map +1 -1
  263. package/package.json +1 -2
@@ -155,7 +155,14 @@
155
155
 
156
156
  /* The theme variables */
157
157
  @theme {
158
- /* Colors for with default values of the light theme */
158
+ /*
159
+ * Default light theme colors and initial definitions
160
+ */
161
+
162
+
163
+ /*
164
+ * Basic Colors
165
+ */
159
166
  --color-white: #FFFFFF;
160
167
  --color-black: #000000;
161
168
  --color-gray-25: #F8F8F8;
@@ -200,47 +207,55 @@
200
207
  --color-red-500: #DC576D;
201
208
  --color-red-900: #5C252E;
202
209
 
210
+
211
+ /*
212
+ * Semantic Colors
213
+ */
214
+ --color-text-dark: #1A1A1A;
215
+ --color-text-light: #E6E6E6;
216
+ --color-text-default: var(--color-text-dark);
217
+
203
218
  --color-primary: var(--color-purple-500);
204
- --color-on-primary: #FFFFFF;
219
+ --color-on-primary: var(--color-text-light);
205
220
  --color-secondary: #11243E;
206
- --color-on-secondary: #FFFFFF;
207
- --color-warning: #EA9E40;
208
- --color-on-warning: #FFFFFF;
209
- --color-positive: #69CB81;
210
- --color-on-positive: #FFFFFF;
211
- --color-negative: #DC576D;
212
- --color-on-negative: #FFFFFF;
221
+ --color-on-secondary: var(--color-text-light);
222
+ --color-warning: var(--color-yellow-500);
223
+ --color-on-warning: var(--color-text-light);
224
+ --color-positive: var(--color-green-500);
225
+ --color-on-positive: var(--color-text-light);
226
+ --color-negative: var(--color-red-500);
227
+ --color-on-negative: var(--color-text-light);
213
228
  --color-surface: #FFFFFF;
214
- --color-on-surface: #1A1A1A;
229
+ --color-on-surface: var(--color-text-dark);
215
230
  --color-surface-variant: #F8F8F8;
216
231
  --color-surface-warning: #FBECD9;
217
232
  --color-highlight: #3272DF;
218
233
  --color-background: #EEEEEE;
219
- --color-on-background: #1A1A1A;
234
+ --color-on-background: var(--color-text-dark);
220
235
 
221
- --color-female: #E3798A;
222
- --color-female-outline: #F4A3A7;
223
- --color-female-surface: #FBE0E2;
224
- --color-female-background: #FFF9F9;
236
+ --color-female: var(--color-red-400);
237
+ --color-female-outline: var(--color-red-300);
238
+ --color-female-surface: var(--color-red-100);
239
+ --color-female-background: var(--color-red-50);
225
240
 
226
- --color-male: #3272DF;
227
- --color-male-outline: #99B9EF;
228
- --color-male-surface: #D6E3F9;
229
- --color-male-background: #F6FAFF;
241
+ --color-male: var(--color-blue-400);
242
+ --color-male-outline: var(--color-blue-300);
243
+ --color-male-surface: var(--color-blue-100);
244
+ --color-male-background: var(--color-blue-50);
230
245
 
231
246
  --color-neutral: #4D4D4D;
232
247
  --color-neutral-outline: #B3B3B3;
233
248
  --color-neutral-surface: #E6E6E6;
234
249
  --color-neutral-background: #F8F8F8;
235
250
 
236
- --color-text-primary: #1A1A1A;
251
+ --color-text-primary: var(--color-text-default);
237
252
  --color-text-secondary: #666666;
238
253
  --color-text-tertiary: #B3B3B3;
239
254
  --color-text-highlight: #3272DF;
240
255
  --color-text-label: #4D4D4D;
241
- --color-icon-primary: #1A1A1A;
242
- --color-icon-secondary: #666666;
243
- --color-icon-highlight: #3272DF;
256
+ --color-icon-primary: var(--color-text-primary);
257
+ --color-icon-secondary: var(--color-text-secondary);
258
+ --color-icon-highlight: var(--color-text-highlight);
244
259
  --color-divider: #E6E6E6;
245
260
  --color-description: #555555;
246
261
  --color-outline: #E6E6E6;
@@ -251,6 +266,17 @@
251
266
  --color-disabled-outline: #555555;
252
267
  --color-border: #CCCCCC;
253
268
 
269
+
270
+ /*
271
+ * Component Colors
272
+ */
273
+
274
+ /* Button Outline */
275
+ --color-button-outline-primary-outline: var(--color-primary);
276
+ --color-button-outline-primary-icon: var(--color-primary);
277
+ --color-button-outline-primary-text: var(--color-primary);
278
+
279
+ /* Button Solid */
254
280
  --color-button-solid-primary-background: var(--color-primary);
255
281
  --color-button-solid-primary-text: var(--color-on-primary);
256
282
  --color-button-solid-primary-icon: var(--color-on-primary);
@@ -273,10 +299,7 @@
273
299
  --color-button-solid-negative-icon: var(--color-on-negative);
274
300
  --color-button-solid-negative-text: var(--color-on-negative);
275
301
 
276
- --color-button-outline-primary-outline: var(--color-primary);
277
- --color-button-outline-primary-icon: var(--color-primary);
278
- --color-button-outline-primary-text: var(--color-primary);
279
-
302
+ /* Button Text */
280
303
  --color-button-text-hover-background: #77777733;
281
304
  --color-button-text-neutral-text: #333333;
282
305
  --color-button-text-neutral-icon: #333333;
@@ -285,19 +308,39 @@
285
308
  --color-button-text-primary-text: var(--color-primary);
286
309
  --color-button-text-primary-icon: var(--color-primary);
287
310
 
311
+ /* Carousel */
312
+ --color-carousel-dot-active: var(--color-primary);
313
+ --color-carousel-dot-disabled: var(--color-disabled-background);
314
+
315
+ /* Menu */
288
316
  --color-menu-background: var(--color-surface);
289
317
  --color-menu-text: var(--color-on-surface);
290
318
  --color-menu-border: var(--color-border);
291
319
 
320
+ /* Overlay */
321
+ --color-overlay-background: #FFFFFF;
322
+ --color-overlay-text: var(--color-text-dark);
323
+
324
+ /* ProgressIndicator */
325
+ --color-progress-indicator-fill: var(--color-primary);
326
+ --color-progress-indicator-background: var(--color-gray-300);
327
+
328
+ /* Property */
292
329
  --color-property-title-background: #E6E6E6;
293
- --color-property-title-text: var(--color-on-surface);
330
+ --color-property-title-text: var(--color-text-default);
331
+
332
+ /* Stepper Bar */
333
+ --color-stepperbar-dot-active: var(--color-primary);
334
+ --color-stepperbar-dot-normal: var(--color-purple-100);
335
+ --color-stepperbar-dot-disabled: var(--color-disabled-background);
294
336
 
295
- --color-tag-default-background: #F6FAFF;
296
- --color-tag-default-text: #1A4080;
297
- --color-tag-default-icon: #1A4080;
337
+ /* Table */
338
+ --color-tabel-header-background: #F6FAFF;
339
+
340
+ /* Tag */
298
341
  --color-tag-dark-background: #333333;
299
- --color-tag-dark-text: #FFFFFF;
300
- --color-tag-dark-icon: #FFFFFF;
342
+ --color-tag-dark-text: var(--color-text-light);
343
+ --color-tag-dark-icon: var(--color-text-light);
301
344
  --color-tag-green-background: #E2E9DB;
302
345
  --color-tag-green-text: #7A977E;
303
346
  --color-tag-green-icon: #7A977E;
@@ -307,51 +350,62 @@
307
350
  --color-tag-red-background: #FEE0DD;
308
351
  --color-tag-red-text: #D67268;
309
352
  --color-tag-red-icon: #D67268;
310
- --color-tag-blue-background: #F6FAFF;
311
- --color-tag-blue-text: #1A4080;
312
- --color-tag-blue-icon: #1A4080;
353
+ --color-tag-blue-background: var(--color-blue-50);
354
+ --color-tag-blue-text: var(--color-blue-800);
355
+ --color-tag-blue-icon: var(--color-blue-800);
313
356
  --color-tag-pink-background: #CEA3B8;
314
357
  --color-tag-pink-text: #CE75A0;
315
358
  --color-tag-pink-icon: #CE75A0;
316
359
 
317
- --color-tabel-header-background: #F6FAFF;
318
-
360
+ /* TextImage */
319
361
  --color-text-image-primary-background: var(--color-primary);
320
- --color-text-image-primary-text: var(--color-on-primary);
362
+ --color-text-image-primary-text: var(--color-white);
321
363
  --color-text-image-secondary-background: #3171DE;
322
- --color-text-image-secondary-text: #FFFFFF;
364
+ --color-text-image-secondary-text: var(--color-white);
323
365
  --color-text-image-dark-background: #11243E;
324
- --color-text-image-dark-text: #FFFFFF;
325
-
326
- --color-overlay-background: #FFFFFF;
327
- --color-overlay-text: #1A1A1A;
366
+ --color-text-image-dark-text: var(--color-white);
328
367
 
368
+ /* Tooltip */
329
369
  --color-tooltip-background: var(--color-overlay-background);
330
370
  --color-tooltip-text: var(--color-description);
331
371
 
332
- /* breakpoints */
372
+ /*
373
+ * breakpoints
374
+ */
333
375
  --breakpoint-tablet: 48rem; /* 768px for 16px font-size */
334
376
  --breakpoint-desktop: 64rem; /* 1024px for 16px font-size*/
335
- /* fonts */
377
+
378
+ /*
379
+ * fonts
380
+ */
336
381
  --font-inter: 'Inter', sans-serif;
337
382
  --font-space: 'Space Grotesk', sans-serif;
338
383
  }
339
384
 
340
- /* Overrides of the dark theme */
385
+ /* Overrides of the base theme */
341
386
  @layer base {
342
- /* Here are overrides for the light theme */
387
+ /* dark theme overrides */
343
388
  @variant dark {
389
+ /*
390
+ * Basic Colors
391
+ */
344
392
  --color-primary: var(--color-purple-400);
345
393
  --color-positive: var(--color-green-700);
394
+ --color-negative: var(--color-red-700);
395
+
396
+ /*
397
+ * Semantic Colors
398
+ */
399
+ --color-text-default: var(--color-text-light);
346
400
 
347
401
  --color-surface: #333333;
348
- --color-on-surface: #EEEEEE;
402
+ --color-on-surface: var(--color-text-light);
349
403
  --color-surface-variant: #494949;
350
404
  --color-surface-warning: #FBECD9;
351
405
  --color-text-label: #CFCFCF;
352
406
  --color-highlight: #3272DF;
353
- --color-background: #1A1A1A;
354
- --color-on-background: #EEEEEE;
407
+ --color-background: #222222;
408
+ --color-on-background: var(--color-text-light);
355
409
  --color-border: #444444;
356
410
 
357
411
  --color-neutral: #4D4D4D;
@@ -359,36 +413,46 @@
359
413
  --color-neutral-surface: #E6E6E6;
360
414
  --color-neutral-background: #F8F8F8;
361
415
 
362
- --color-text-primary: #EEEEEE;
416
+ --color-text-primary: var(--color-text-light);
363
417
  --color-text-secondary: #666666;
364
418
  --color-text-tertiary: #B3B3B3;
365
419
  --color-text-highlight: #3272DF;
366
- --color-icon-primary: #EEEEEE;
367
- --color-icon-secondary: #666666;
368
- --color-icon-highlight: #3272DF;
369
420
  --color-description: #999999;
370
421
 
371
422
  --color-disabled-background: #555555;
372
423
  --color-disabled-text: #999999;
373
424
 
425
+ /*
426
+ * Component Colors
427
+ */
428
+
429
+ /* Button Solid */
374
430
  --color-button-solid-neutral-background: #424242;
375
- --color-button-solid-neutral-icon: #EEEEEE;
376
- --color-button-solid-neutral-text: #EEEEEE;
431
+ --color-button-solid-neutral-icon: var(--color-text-light);
432
+ --color-button-solid-neutral-text: var(--color-text-light);
377
433
 
434
+ /* Button Text */
378
435
  --color-button-text-hover-background: #3F3F3F;
379
- --color-button-text-neutral-text: #EEEEEE;
380
- --color-button-text-neutral-icon: #EEEEEE;
436
+ --color-button-text-neutral-text: var(--color-text-light);
437
+ --color-button-text-neutral-icon: var(--color-text-light);
381
438
 
439
+ /* Menu */
382
440
  --color-menu-background: #333333;
383
- --color-menu-text: #EEEEEE;
441
+ --color-menu-text: var(--color-text-light);
384
442
  --color-menu-border: var(--color-border);
385
443
 
444
+ /* Property */
386
445
  --color-property-title-background: #393939;
387
446
  --color-property-title-text: var(--color-on-surface);
388
447
 
389
- --color-overlay-background: #222222;
390
- --color-overlay-text: #FFFFFF;
448
+ /* ProgressIndicator */
449
+ --color-progress-indicator-background: var(--color-gray-700);
450
+
451
+ /* Overlay */
452
+ --color-overlay-background: #2A2A2A;
453
+ --color-overlay-text: var(--color-text-light);
391
454
 
455
+ /* Table */
392
456
  --color-tabel-header-background: #F6FAFF;
393
457
  }
394
458
  }
@@ -396,27 +460,27 @@
396
460
  /* Styles that can be overwritten by utils */
397
461
  @layer components {
398
462
  .btn-sm {
399
- @apply row items-center justify-center gap-x-1 px-[0.625rem] py-[0.25rem] rounded-[0.375rem] h-8;
463
+ @apply row items-center justify-center gap-x-1 px-[0.625rem] py-[0.25rem] rounded-[0.375rem] h-8 min-h-8;
400
464
  }
401
465
 
402
466
  .btn-md {
403
- @apply row items-center justify-center gap-x-2 px-[0.75rem] py-[0.5rem] rounded-[0.375rem] h-10;
467
+ @apply row items-center justify-center gap-x-2 px-[0.75rem] py-[0.5rem] rounded-[0.375rem] h-10 min-h-10;
404
468
  }
405
469
 
406
470
  .btn-lg {
407
- @apply row items-center justify-center gap-x-2 px-[1rem] py-[0.675rem] rounded-[0.375rem] h-12;
471
+ @apply row items-center justify-center gap-x-2 px-[1rem] py-[0.675rem] rounded-[0.375rem] h-12 min-h-12;
408
472
  }
409
473
 
410
474
  .icon-btn-sm {
411
- @apply row items-center justify-center gap-x-1 p-[0.375rem] rounded-[0.375rem] h-8;
475
+ @apply row items-center justify-center gap-x-1 p-[0.375rem] rounded-[0.375rem] h-8 min-h-8 w-8 min-w-8;
412
476
  }
413
477
 
414
478
  .icon-btn-md {
415
- @apply row items-center justify-center gap-x-2 p-[0.5rem] rounded-[0.375rem] h-10;
479
+ @apply row items-center justify-center gap-x-2 p-[0.5rem] rounded-[0.375rem] h-10 min-h-10 w-10 min-w-10;
416
480
  }
417
481
 
418
482
  .icon-btn-lg {
419
- @apply row items-center justify-center gap-x-2 p-[0.75rem] rounded-[0.375rem] h-12;
483
+ @apply row items-center justify-center gap-x-2 p-[0.75rem] rounded-[0.375rem] h-12 min-h-12 w-12 min-w-12;
420
484
  }
421
485
 
422
486
  .card-sm {
@@ -457,16 +521,16 @@
457
521
  @apply border-border;
458
522
  }
459
523
 
460
- html, main {
524
+ html {
461
525
  @apply bg-background text-on-background;
462
526
  }
463
527
 
464
528
  button {
465
- @apply cursor-pointer;
529
+ @apply cursor-pointer text-nowrap;
466
530
  }
467
531
 
468
532
  input {
469
- @apply block bg-surface text-on-surface px-3 py-2 rounded-md border-2 hover:border-primary focus:outline-none focus:border-primary focus:ring-primary;
533
+ @apply block bg-surface text-on-surface px-2 py-[0.375rem] rounded-md border-2 hover:border-primary focus:outline-none focus:border-primary focus:ring-primary;
470
534
  }
471
535
 
472
536
  .textstyle-title-3xl {
@@ -498,7 +562,7 @@
498
562
  }
499
563
 
500
564
  .textstyle-accent {
501
- @apply text-sm text-gray-600 font-bold;
565
+ @apply text-sm text-text-label font-bold;
502
566
  }
503
567
 
504
568
  .textstyle-description {
@@ -522,7 +586,7 @@
522
586
  }
523
587
 
524
588
  .textstyle-table-header {
525
- @apply text-gray-600 font-bold;
589
+ @apply text-text-label font-bold;
526
590
  }
527
591
 
528
592
  .textstyle-navigation-item {
@@ -534,6 +598,6 @@
534
598
  }
535
599
 
536
600
  .textstyle-form-description {
537
- @apply text-gray-500 text-sm;
601
+ @apply text-description text-sm;
538
602
  }
539
603
  }
@@ -0,0 +1,17 @@
1
+ import * as react from 'react';
2
+
3
+ type UseSearchProps<T> = {
4
+ list: T[];
5
+ searchMapping: (item: T) => string[];
6
+ initialSearch?: string;
7
+ };
8
+ declare const useSearch: <T>({ list, initialSearch, searchMapping, }: UseSearchProps<T>) => {
9
+ result: T[];
10
+ hasResult: boolean;
11
+ allItems: T[];
12
+ setItems: react.Dispatch<react.SetStateAction<T[]>>;
13
+ search: string;
14
+ setSearch: react.Dispatch<react.SetStateAction<string>>;
15
+ };
16
+
17
+ export { type UseSearchProps, useSearch };
@@ -0,0 +1,17 @@
1
+ import * as react from 'react';
2
+
3
+ type UseSearchProps<T> = {
4
+ list: T[];
5
+ searchMapping: (item: T) => string[];
6
+ initialSearch?: string;
7
+ };
8
+ declare const useSearch: <T>({ list, initialSearch, searchMapping, }: UseSearchProps<T>) => {
9
+ result: T[];
10
+ hasResult: boolean;
11
+ allItems: T[];
12
+ setItems: react.Dispatch<react.SetStateAction<T[]>>;
13
+ search: string;
14
+ setSearch: react.Dispatch<react.SetStateAction<string>>;
15
+ };
16
+
17
+ export { type UseSearchProps, useSearch };
@@ -0,0 +1,66 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/hooks/useSearch.ts
20
+ var useSearch_exports = {};
21
+ __export(useSearch_exports, {
22
+ useSearch: () => useSearch
23
+ });
24
+ module.exports = __toCommonJS(useSearch_exports);
25
+ var import_react = require("react");
26
+
27
+ // src/util/simpleSearch.ts
28
+ var MultiSearchWithMapping = (search, objects, mapping) => {
29
+ return objects.filter((object) => {
30
+ const mappedSearchKeywords = mapping(object)?.map((value) => value.toLowerCase().trim());
31
+ if (!mappedSearchKeywords) {
32
+ return true;
33
+ }
34
+ return !!mappedSearchKeywords.find((value) => value.includes(search.toLowerCase().trim()));
35
+ });
36
+ };
37
+
38
+ // src/hooks/useSearch.ts
39
+ var useSearch = ({
40
+ list,
41
+ initialSearch,
42
+ searchMapping
43
+ }) => {
44
+ const [items, setItems] = (0, import_react.useState)(list);
45
+ const [search, setSearch] = (0, import_react.useState)(initialSearch);
46
+ (0, import_react.useEffect)(() => {
47
+ setItems(list);
48
+ }, [list]);
49
+ const result = (0, import_react.useMemo)(
50
+ () => MultiSearchWithMapping(search, items, searchMapping),
51
+ [search, items, searchMapping]
52
+ );
53
+ return {
54
+ result,
55
+ hasResult: result.length > 0,
56
+ allItems: items,
57
+ setItems,
58
+ search,
59
+ setSearch
60
+ };
61
+ };
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ useSearch
65
+ });
66
+ //# sourceMappingURL=useSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/hooks/useSearch.ts","../../src/util/simpleSearch.ts"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react'\nimport { MultiSearchWithMapping } from '../util/simpleSearch'\n\nexport type UseSearchProps<T> = {\n list: T[],\n searchMapping: (item: T) => string[],\n initialSearch?: string,\n}\n\nexport const useSearch = <T>({\n list,\n initialSearch,\n searchMapping,\n }: UseSearchProps<T>) => {\n const [items, setItems] = useState<T[]>(list)\n const [search, setSearch] = useState<string>(initialSearch)\n\n useEffect(() => {\n setItems(list)\n }, [list])\n\n const result: T[] = useMemo(\n () => MultiSearchWithMapping(search, items, searchMapping),\n [search, items, searchMapping]\n )\n\n return {\n result,\n hasResult: result.length > 0,\n allItems: items,\n setItems,\n search,\n setSearch,\n }\n}","/**\n * Finds all values matching the search values by first mapping the values to a string array and then checking each entry for matches.\n * Returns the list of all matches.\n *\n * @param search The list of search strings e.g. `[name, type]`\n *\n * @param objects The list of objects to be searched in\n *\n * @param mapping The mapping of objects to the string properties they fulfil\n *\n * @return The list of objects that match all search strings\n */\nexport const MultiSubjectSearchWithMapping = <T>(search: string[], objects: T[], mapping: (value: T) => (string | undefined)[]) => {\n return objects.filter(object => {\n const mappedSearchKeywords = mapping(object).map(value => value ? value.toLowerCase().trim() : undefined)\n return search.every(searchValue => !!mappedSearchKeywords.find(value => !!value && value.includes(searchValue.toLowerCase().trim())))\n })\n}\n\n/**\n * Finds all values matching the search value by first mapping the values to a string array and then checking each entry for matches.\n * Returns the list of all matches.\n *\n * @param search The search string e.g `name`\n *\n * @param objects The list of objects to be searched in\n *\n * @param mapping The mapping of objects to the string properties they fulfil, if undefined it is always fulfilled\n *\n * @return The list of objects that match the search string\n */\nexport const MultiSearchWithMapping = <T>(search: string, objects: T[], mapping: (value: T) => (string[] | undefined)) => {\n return objects.filter(object => {\n const mappedSearchKeywords = mapping(object)?.map(value => value.toLowerCase().trim())\n if(!mappedSearchKeywords) {\n return true\n }\n return !!mappedSearchKeywords.find(value => value.includes(search.toLowerCase().trim()))\n })\n}\n\n/**\n * Finds all values matching the search value by first mapping the values to a string and returns the list of all matches.\n *\n * @param search The search string e.g `name`\n *\n * @param objects The list of objects to be searched in\n *\n * @param mapping The mapping of objects to a string that is compared to the search\n *\n * @return The list of objects that match the search string\n */\nexport const SimpleSearchWithMapping = <T>(search: string, objects: T[], mapping: (value: T) => string) => {\n return MultiSearchWithMapping(search, objects, value => [mapping(value)])\n}\n\n/**\n * Finds all values matching the search value and returns the list of all matches.\n *\n * @param search The search string e.g `name`\n *\n * @param objects The list of objects to be searched in\n *\n * @return The list of objects that match the search string\n */\nexport const SimpleSearch = (search: string, objects: string[]) => {\n return SimpleSearchWithMapping(search, objects, value => value)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA6C;;;AC+BtC,IAAM,yBAAyB,CAAI,QAAgB,SAAc,YAAkD;AACxH,SAAO,QAAQ,OAAO,YAAU;AAC9B,UAAM,uBAAuB,QAAQ,MAAM,GAAG,IAAI,WAAS,MAAM,YAAY,EAAE,KAAK,CAAC;AACrF,QAAG,CAAC,sBAAsB;AACxB,aAAO;AAAA,IACT;AACA,WAAO,CAAC,CAAC,qBAAqB,KAAK,WAAS,MAAM,SAAS,OAAO,YAAY,EAAE,KAAK,CAAC,CAAC;AAAA,EACzF,CAAC;AACH;;;AD9BO,IAAM,YAAY,CAAI;AAAA,EACE;AAAA,EACA;AAAA,EACA;AACF,MAAyB;AACpD,QAAM,CAAC,OAAO,QAAQ,QAAI,uBAAc,IAAI;AAC5C,QAAM,CAAC,QAAQ,SAAS,QAAI,uBAAiB,aAAa;AAE1D,8BAAU,MAAM;AACd,aAAS,IAAI;AAAA,EACf,GAAG,CAAC,IAAI,CAAC;AAET,QAAM,aAAc;AAAA,IAClB,MAAM,uBAAuB,QAAQ,OAAO,aAAa;AAAA,IACzD,CAAC,QAAQ,OAAO,aAAa;AAAA,EAC/B;AAEA,SAAO;AAAA,IACL;AAAA,IACA,WAAW,OAAO,SAAS;AAAA,IAC3B,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,42 @@
1
+ // src/hooks/useSearch.ts
2
+ import { useEffect, useMemo, useState } from "react";
3
+
4
+ // src/util/simpleSearch.ts
5
+ var MultiSearchWithMapping = (search, objects, mapping) => {
6
+ return objects.filter((object) => {
7
+ const mappedSearchKeywords = mapping(object)?.map((value) => value.toLowerCase().trim());
8
+ if (!mappedSearchKeywords) {
9
+ return true;
10
+ }
11
+ return !!mappedSearchKeywords.find((value) => value.includes(search.toLowerCase().trim()));
12
+ });
13
+ };
14
+
15
+ // src/hooks/useSearch.ts
16
+ var useSearch = ({
17
+ list,
18
+ initialSearch,
19
+ searchMapping
20
+ }) => {
21
+ const [items, setItems] = useState(list);
22
+ const [search, setSearch] = useState(initialSearch);
23
+ useEffect(() => {
24
+ setItems(list);
25
+ }, [list]);
26
+ const result = useMemo(
27
+ () => MultiSearchWithMapping(search, items, searchMapping),
28
+ [search, items, searchMapping]
29
+ );
30
+ return {
31
+ result,
32
+ hasResult: result.length > 0,
33
+ allItems: items,
34
+ setItems,
35
+ search,
36
+ setSearch
37
+ };
38
+ };
39
+ export {
40
+ useSearch
41
+ };
42
+ //# sourceMappingURL=useSearch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/hooks/useSearch.ts","../../src/util/simpleSearch.ts"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react'\nimport { MultiSearchWithMapping } from '../util/simpleSearch'\n\nexport type UseSearchProps<T> = {\n list: T[],\n searchMapping: (item: T) => string[],\n initialSearch?: string,\n}\n\nexport const useSearch = <T>({\n list,\n initialSearch,\n searchMapping,\n }: UseSearchProps<T>) => {\n const [items, setItems] = useState<T[]>(list)\n const [search, setSearch] = useState<string>(initialSearch)\n\n useEffect(() => {\n setItems(list)\n }, [list])\n\n const result: T[] = useMemo(\n () => MultiSearchWithMapping(search, items, searchMapping),\n [search, items, searchMapping]\n )\n\n return {\n result,\n hasResult: result.length > 0,\n allItems: items,\n setItems,\n search,\n setSearch,\n }\n}","/**\n * Finds all values matching the search values by first mapping the values to a string array and then checking each entry for matches.\n * Returns the list of all matches.\n *\n * @param search The list of search strings e.g. `[name, type]`\n *\n * @param objects The list of objects to be searched in\n *\n * @param mapping The mapping of objects to the string properties they fulfil\n *\n * @return The list of objects that match all search strings\n */\nexport const MultiSubjectSearchWithMapping = <T>(search: string[], objects: T[], mapping: (value: T) => (string | undefined)[]) => {\n return objects.filter(object => {\n const mappedSearchKeywords = mapping(object).map(value => value ? value.toLowerCase().trim() : undefined)\n return search.every(searchValue => !!mappedSearchKeywords.find(value => !!value && value.includes(searchValue.toLowerCase().trim())))\n })\n}\n\n/**\n * Finds all values matching the search value by first mapping the values to a string array and then checking each entry for matches.\n * Returns the list of all matches.\n *\n * @param search The search string e.g `name`\n *\n * @param objects The list of objects to be searched in\n *\n * @param mapping The mapping of objects to the string properties they fulfil, if undefined it is always fulfilled\n *\n * @return The list of objects that match the search string\n */\nexport const MultiSearchWithMapping = <T>(search: string, objects: T[], mapping: (value: T) => (string[] | undefined)) => {\n return objects.filter(object => {\n const mappedSearchKeywords = mapping(object)?.map(value => value.toLowerCase().trim())\n if(!mappedSearchKeywords) {\n return true\n }\n return !!mappedSearchKeywords.find(value => value.includes(search.toLowerCase().trim()))\n })\n}\n\n/**\n * Finds all values matching the search value by first mapping the values to a string and returns the list of all matches.\n *\n * @param search The search string e.g `name`\n *\n * @param objects The list of objects to be searched in\n *\n * @param mapping The mapping of objects to a string that is compared to the search\n *\n * @return The list of objects that match the search string\n */\nexport const SimpleSearchWithMapping = <T>(search: string, objects: T[], mapping: (value: T) => string) => {\n return MultiSearchWithMapping(search, objects, value => [mapping(value)])\n}\n\n/**\n * Finds all values matching the search value and returns the list of all matches.\n *\n * @param search The search string e.g `name`\n *\n * @param objects The list of objects to be searched in\n *\n * @return The list of objects that match the search string\n */\nexport const SimpleSearch = (search: string, objects: string[]) => {\n return SimpleSearchWithMapping(search, objects, value => value)\n}\n"],"mappings":";AAAA,SAAS,WAAW,SAAS,gBAAgB;;;AC+BtC,IAAM,yBAAyB,CAAI,QAAgB,SAAc,YAAkD;AACxH,SAAO,QAAQ,OAAO,YAAU;AAC9B,UAAM,uBAAuB,QAAQ,MAAM,GAAG,IAAI,WAAS,MAAM,YAAY,EAAE,KAAK,CAAC;AACrF,QAAG,CAAC,sBAAsB;AACxB,aAAO;AAAA,IACT;AACA,WAAO,CAAC,CAAC,qBAAqB,KAAK,WAAS,MAAM,SAAS,OAAO,YAAY,EAAE,KAAK,CAAC,CAAC;AAAA,EACzF,CAAC;AACH;;;AD9BO,IAAM,YAAY,CAAI;AAAA,EACE;AAAA,EACA;AAAA,EACA;AACF,MAAyB;AACpD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAc,IAAI;AAC5C,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAiB,aAAa;AAE1D,YAAU,MAAM;AACd,aAAS,IAAI;AAAA,EACf,GAAG,CAAC,IAAI,CAAC;AAET,QAAM,SAAc;AAAA,IAClB,MAAM,uBAAuB,QAAQ,OAAO,aAAa;AAAA,IACzD,CAAC,QAAQ,OAAO,aAAa;AAAA,EAC/B;AAEA,SAAO;AAAA,IACL;AAAA,IACA,WAAW,OAAO,SAAS;AAAA,IAC3B,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
package/dist/index.d.mts CHANGED
@@ -13,7 +13,7 @@ export { Helpwave, HelpwaveProps } from './components/icons-and-geometry/Helpwav
13
13
  export { AnimatedRing, AnimatedRingProps, RadialRings, RadialRingsProps, Ring, RingProps, RingWave, RingWaveProps } from './components/icons-and-geometry/Ring.mjs';
14
14
  export { TagIcon, TagProps } from './components/icons-and-geometry/Tag.mjs';
15
15
  export { BreadCrumb, Crumb } from './components/layout-and-navigation/BreadCrumb.mjs';
16
- export { Carousel } from './components/layout-and-navigation/Carousel.mjs';
16
+ export { Carousel, CarouselProps } from './components/layout-and-navigation/Carousel.mjs';
17
17
  export { Chip, ChipColor, ChipList, ChipListProps, ChipProps } from './components/layout-and-navigation/Chip.mjs';
18
18
  export { DividerInserter, DividerInserterProps } from './components/layout-and-navigation/DividerInserter.mjs';
19
19
  export { Expandable, ExpandableProps, ExpandableUncontrolled } from './components/layout-and-navigation/Expandable.mjs';
@@ -25,7 +25,7 @@ export { SearchableList, SearchableListProps } from './components/layout-and-nav
25
25
  export { StepperBar, StepperBarProps, StepperBarUncontrolled, StepperState } from './components/layout-and-navigation/StepperBar.mjs';
26
26
  export { SortButton, SortButtonProps, Table, TableProps, TableSortingFunctionType, TableSortingType, TableState, TableStatePagination, TableStateSelection, addElementToTable, changeTableSelectionSingle, defaultTableStatePagination, defaultTableStateSelection, isDataObjectSelected, pageForItem, removeFromTableSelection, updatePagination } from './components/layout-and-navigation/Table.mjs';
27
27
  export { TextImage, TextImageProps } from './components/layout-and-navigation/TextImage.mjs';
28
- export { Tile, TileProps, TileWithImageProps } from './components/layout-and-navigation/Tile.mjs';
28
+ export { Tile, TileProps } from './components/layout-and-navigation/Tile.mjs';
29
29
  export { VerticalDivider, VerticalDividerProps } from './components/layout-and-navigation/VerticalDivider.mjs';
30
30
  export { ErrorComponent, ErrorComponentProps } from './components/loading-states/ErrorComponent.mjs';
31
31
  export { LoadingAndErrorComponent, LoadingAndErrorComponentProps } from './components/loading-states/LoadingAndErrorComponent.mjs';
@@ -49,10 +49,10 @@ export { Checkbox, CheckboxProps, CheckboxUncontrolled } from './components/user
49
49
  export { DateTimePicker, DateTimePickerMode, DateTimePickerProps } from './components/user-action/DateAndTimePicker.mjs';
50
50
  export { FormInput, FormInputProps, Input, InputProps, InputUncontrolled } from './components/user-action/Input.mjs';
51
51
  export { Label, LabelProps, LabelType } from './components/user-action/Label.mjs';
52
- export { Menu, MenuItem, MenuItemProps } from './components/user-action/Menu.mjs';
53
- export { MultiSelect, MultiSelectOption, MultiSelectProps, SearchProps } from './components/user-action/MultiSelect.mjs';
52
+ export { Menu, MenuItem, MenuItemProps, MenuProps } from './components/user-action/Menu.mjs';
53
+ export { MultiSelect, MultiSelectOption, MultiSelectProps, MultiSelectUncontrolled } from './components/user-action/MultiSelect.mjs';
54
54
  export { ScrollPicker, ScrollPickerProps } from './components/user-action/ScrollPicker.mjs';
55
- export { SearchableSelect, SearchableSelectProps, Select, SelectOption, SelectProps, SelectUncontrolled } from './components/user-action/Select.mjs';
55
+ export { Select, SelectOption, SelectProps, SelectUncontrolled } from './components/user-action/Select.mjs';
56
56
  export { Textarea, TextareaProps, TextareaUncontrolled } from './components/user-action/Textarea.mjs';
57
57
  export { ToggleableInput, ToggleableInputUncontrolled } from './components/user-action/ToggleableInput.mjs';
58
58
  export { Tooltip, TooltipProps } from './components/user-action/Tooltip.mjs';
@@ -60,10 +60,14 @@ export { useHoverState } from './hooks/useHoverState.mjs';
60
60
  export { useLocalStorage } from './hooks/useLocalStorage.mjs';
61
61
  export { useOutsideClick } from './hooks/useOutsideClick.mjs';
62
62
  export { useSaveDelay } from './hooks/useSaveDelay.mjs';
63
+ export { UseSearchProps, useSearch } from './hooks/useSearch.mjs';
63
64
  export { LanguageContext, LanguageContextValue, LanguageProvider, useLanguage, useLocale } from './localization/LanguageProvider.mjs';
64
- export { PropsForTranslation, Translation, useTranslation } from './localization/useTranslation.mjs';
65
+ export { PropsForTranslation, Translation, TranslationPlural, TranslationType, useTranslation } from './localization/useTranslation.mjs';
65
66
  export { Language, LanguageUtil } from './localization/util.mjs';
67
+ export { FormTranslationType, formTranslation } from './localization/defaults/form.mjs';
68
+ export { MonthTranslationType, TimeTranslationType, monthTranslation, timeTranslation } from './localization/defaults/time.mjs';
66
69
  export { ThemeContext, ThemeProvider, ThemeType, ThemeTypeTranslation, ThemeUtil, useTheme } from './theming/useTheme.mjs';
70
+ export { BagFunction, BagFunctionUtil, PropsWithBagFunction, PropsWithBagFunctionOrChildren } from './util/PropsWithFunctionChildren.mjs';
67
71
  export { ArrayUtil, closestMatch, createLoopingList, createLoopingListWithIndex, equalSizeGroups, getNeighbours, range } from './util/array.mjs';
68
72
  export { builder } from './util/builder.mjs';
69
73
  export { Duration, Month, WeekDay, addDuration, changeDuration, equalDate, formatDate, formatDateTime, getBetweenDuration, getDaysInMonth, getWeeksForCalenderMonth, isInTimeSpan, monthsList, subtractDuration, weekDayList } from './util/date.mjs';
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { Helpwave, HelpwaveProps } from './components/icons-and-geometry/Helpwav
13
13
  export { AnimatedRing, AnimatedRingProps, RadialRings, RadialRingsProps, Ring, RingProps, RingWave, RingWaveProps } from './components/icons-and-geometry/Ring.js';
14
14
  export { TagIcon, TagProps } from './components/icons-and-geometry/Tag.js';
15
15
  export { BreadCrumb, Crumb } from './components/layout-and-navigation/BreadCrumb.js';
16
- export { Carousel } from './components/layout-and-navigation/Carousel.js';
16
+ export { Carousel, CarouselProps } from './components/layout-and-navigation/Carousel.js';
17
17
  export { Chip, ChipColor, ChipList, ChipListProps, ChipProps } from './components/layout-and-navigation/Chip.js';
18
18
  export { DividerInserter, DividerInserterProps } from './components/layout-and-navigation/DividerInserter.js';
19
19
  export { Expandable, ExpandableProps, ExpandableUncontrolled } from './components/layout-and-navigation/Expandable.js';
@@ -25,7 +25,7 @@ export { SearchableList, SearchableListProps } from './components/layout-and-nav
25
25
  export { StepperBar, StepperBarProps, StepperBarUncontrolled, StepperState } from './components/layout-and-navigation/StepperBar.js';
26
26
  export { SortButton, SortButtonProps, Table, TableProps, TableSortingFunctionType, TableSortingType, TableState, TableStatePagination, TableStateSelection, addElementToTable, changeTableSelectionSingle, defaultTableStatePagination, defaultTableStateSelection, isDataObjectSelected, pageForItem, removeFromTableSelection, updatePagination } from './components/layout-and-navigation/Table.js';
27
27
  export { TextImage, TextImageProps } from './components/layout-and-navigation/TextImage.js';
28
- export { Tile, TileProps, TileWithImageProps } from './components/layout-and-navigation/Tile.js';
28
+ export { Tile, TileProps } from './components/layout-and-navigation/Tile.js';
29
29
  export { VerticalDivider, VerticalDividerProps } from './components/layout-and-navigation/VerticalDivider.js';
30
30
  export { ErrorComponent, ErrorComponentProps } from './components/loading-states/ErrorComponent.js';
31
31
  export { LoadingAndErrorComponent, LoadingAndErrorComponentProps } from './components/loading-states/LoadingAndErrorComponent.js';
@@ -49,10 +49,10 @@ export { Checkbox, CheckboxProps, CheckboxUncontrolled } from './components/user
49
49
  export { DateTimePicker, DateTimePickerMode, DateTimePickerProps } from './components/user-action/DateAndTimePicker.js';
50
50
  export { FormInput, FormInputProps, Input, InputProps, InputUncontrolled } from './components/user-action/Input.js';
51
51
  export { Label, LabelProps, LabelType } from './components/user-action/Label.js';
52
- export { Menu, MenuItem, MenuItemProps } from './components/user-action/Menu.js';
53
- export { MultiSelect, MultiSelectOption, MultiSelectProps, SearchProps } from './components/user-action/MultiSelect.js';
52
+ export { Menu, MenuItem, MenuItemProps, MenuProps } from './components/user-action/Menu.js';
53
+ export { MultiSelect, MultiSelectOption, MultiSelectProps, MultiSelectUncontrolled } from './components/user-action/MultiSelect.js';
54
54
  export { ScrollPicker, ScrollPickerProps } from './components/user-action/ScrollPicker.js';
55
- export { SearchableSelect, SearchableSelectProps, Select, SelectOption, SelectProps, SelectUncontrolled } from './components/user-action/Select.js';
55
+ export { Select, SelectOption, SelectProps, SelectUncontrolled } from './components/user-action/Select.js';
56
56
  export { Textarea, TextareaProps, TextareaUncontrolled } from './components/user-action/Textarea.js';
57
57
  export { ToggleableInput, ToggleableInputUncontrolled } from './components/user-action/ToggleableInput.js';
58
58
  export { Tooltip, TooltipProps } from './components/user-action/Tooltip.js';
@@ -60,10 +60,14 @@ export { useHoverState } from './hooks/useHoverState.js';
60
60
  export { useLocalStorage } from './hooks/useLocalStorage.js';
61
61
  export { useOutsideClick } from './hooks/useOutsideClick.js';
62
62
  export { useSaveDelay } from './hooks/useSaveDelay.js';
63
+ export { UseSearchProps, useSearch } from './hooks/useSearch.js';
63
64
  export { LanguageContext, LanguageContextValue, LanguageProvider, useLanguage, useLocale } from './localization/LanguageProvider.js';
64
- export { PropsForTranslation, Translation, useTranslation } from './localization/useTranslation.js';
65
+ export { PropsForTranslation, Translation, TranslationPlural, TranslationType, useTranslation } from './localization/useTranslation.js';
65
66
  export { Language, LanguageUtil } from './localization/util.js';
67
+ export { FormTranslationType, formTranslation } from './localization/defaults/form.js';
68
+ export { MonthTranslationType, TimeTranslationType, monthTranslation, timeTranslation } from './localization/defaults/time.js';
66
69
  export { ThemeContext, ThemeProvider, ThemeType, ThemeTypeTranslation, ThemeUtil, useTheme } from './theming/useTheme.js';
70
+ export { BagFunction, BagFunctionUtil, PropsWithBagFunction, PropsWithBagFunctionOrChildren } from './util/PropsWithFunctionChildren.js';
67
71
  export { ArrayUtil, closestMatch, createLoopingList, createLoopingListWithIndex, equalSizeGroups, getNeighbours, range } from './util/array.js';
68
72
  export { builder } from './util/builder.js';
69
73
  export { Duration, Month, WeekDay, addDuration, changeDuration, equalDate, formatDate, formatDateTime, getBetweenDuration, getDaysInMonth, getWeeksForCalenderMonth, isInTimeSpan, monthsList, subtractDuration, weekDayList } from './util/date.js';