@helpwave/hightide 0.1.7-alpha.1 → 0.1.8
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.
- package/dist/components/branding/HelpwaveBadge.js +30 -8
- package/dist/components/branding/HelpwaveBadge.js.map +1 -1
- package/dist/components/branding/HelpwaveBadge.mjs +30 -8
- package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
- package/dist/components/date/DatePicker.js +20 -21
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +20 -21
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/DayPicker.d.mts +1 -1
- package/dist/components/date/DayPicker.d.ts +1 -1
- package/dist/components/date/DayPicker.js +23 -11
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/DayPicker.mjs +23 -11
- package/dist/components/date/DayPicker.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js +107 -23
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +107 -23
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.js +2 -2
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +2 -2
- package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.js +2 -2
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.mjs +2 -2
- package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.d.mts +1 -1
- package/dist/components/layout-and-navigation/Carousel.d.ts +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +86 -28
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +86 -28
- package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.d.mts +3 -0
- package/dist/components/layout-and-navigation/Expandable.d.ts +3 -0
- package/dist/components/layout-and-navigation/Expandable.js +4 -3
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.mjs +4 -3
- package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -1
- package/dist/components/layout-and-navigation/FAQSection.js +4 -3
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
- package/dist/components/layout-and-navigation/FAQSection.mjs +4 -3
- package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.js +2 -2
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +2 -2
- package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.d.mts +7 -6
- package/dist/components/layout-and-navigation/SearchableList.d.ts +7 -6
- package/dist/components/layout-and-navigation/SearchableList.js +114 -21
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +114 -21
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.d.mts +1 -1
- package/dist/components/layout-and-navigation/StepperBar.d.ts +1 -1
- package/dist/components/layout-and-navigation/StepperBar.js +6 -6
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +6 -6
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Table.js +4 -4
- package/dist/components/layout-and-navigation/Table.js.map +1 -1
- package/dist/components/layout-and-navigation/Table.mjs +4 -4
- package/dist/components/layout-and-navigation/Table.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Tile.d.mts +10 -15
- package/dist/components/layout-and-navigation/Tile.d.ts +10 -15
- package/dist/components/layout-and-navigation/Tile.js +30 -8
- package/dist/components/layout-and-navigation/Tile.js.map +1 -1
- package/dist/components/layout-and-navigation/Tile.mjs +30 -8
- package/dist/components/layout-and-navigation/Tile.mjs.map +1 -1
- package/dist/components/loading-states/ProgressIndicator.js +2 -2
- package/dist/components/loading-states/ProgressIndicator.js.map +1 -1
- package/dist/components/loading-states/ProgressIndicator.mjs +2 -2
- package/dist/components/loading-states/ProgressIndicator.mjs.map +1 -1
- package/dist/components/modals/ConfirmModal.js +2 -2
- package/dist/components/modals/ConfirmModal.js.map +1 -1
- package/dist/components/modals/ConfirmModal.mjs +2 -2
- package/dist/components/modals/ConfirmModal.mjs.map +1 -1
- package/dist/components/modals/DiscardChangesModal.js +2 -2
- package/dist/components/modals/DiscardChangesModal.js.map +1 -1
- package/dist/components/modals/DiscardChangesModal.mjs +2 -2
- package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
- package/dist/components/modals/InputModal.js +2 -2
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/InputModal.mjs +2 -2
- package/dist/components/modals/InputModal.mjs.map +1 -1
- package/dist/components/modals/LanguageModal.js +384 -151
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.mjs +383 -150
- package/dist/components/modals/LanguageModal.mjs.map +1 -1
- package/dist/components/modals/ThemeModal.js +385 -155
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.mjs +382 -152
- package/dist/components/modals/ThemeModal.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +6 -6
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +6 -6
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +3 -3
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +3 -3
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.d.mts +1 -0
- package/dist/components/properties/MultiSelectProperty.d.ts +1 -0
- package/dist/components/properties/MultiSelectProperty.js +484 -432
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +480 -428
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +3 -3
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +3 -3
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +3 -3
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +3 -3
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.d.mts +3 -3
- package/dist/components/properties/SelectProperty.d.ts +3 -3
- package/dist/components/properties/SelectProperty.js +404 -264
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +404 -264
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +5 -5
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +5 -5
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/user-action/Checkbox.js +3 -3
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +3 -3
- package/dist/components/user-action/Checkbox.mjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.js +20 -21
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +20 -21
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/Menu.d.mts +14 -8
- package/dist/components/user-action/Menu.d.ts +14 -8
- package/dist/components/user-action/Menu.js +32 -11
- package/dist/components/user-action/Menu.js.map +1 -1
- package/dist/components/user-action/Menu.mjs +32 -11
- package/dist/components/user-action/Menu.mjs.map +1 -1
- package/dist/components/user-action/MultiSelect.d.mts +10 -16
- package/dist/components/user-action/MultiSelect.d.ts +10 -16
- package/dist/components/user-action/MultiSelect.js +485 -312
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/MultiSelect.mjs +482 -310
- package/dist/components/user-action/MultiSelect.mjs.map +1 -1
- package/dist/components/user-action/ScrollPicker.js +1 -1
- package/dist/components/user-action/ScrollPicker.js.map +1 -1
- package/dist/components/user-action/ScrollPicker.mjs +1 -1
- package/dist/components/user-action/ScrollPicker.mjs.map +1 -1
- package/dist/components/user-action/Select.d.mts +5 -18
- package/dist/components/user-action/Select.d.ts +5 -18
- package/dist/components/user-action/Select.js +309 -114
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/Select.mjs +304 -108
- package/dist/components/user-action/Select.mjs.map +1 -1
- package/dist/components/user-action/Textarea.js +2 -2
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +2 -2
- package/dist/components/user-action/Textarea.mjs.map +1 -1
- package/dist/components/user-action/Tooltip.js +2 -2
- package/dist/components/user-action/Tooltip.js.map +1 -1
- package/dist/components/user-action/Tooltip.mjs +2 -2
- package/dist/components/user-action/Tooltip.mjs.map +1 -1
- package/dist/css/globals.css +236 -219
- package/dist/css/uncompiled/globals.css +153 -77
- package/dist/hooks/useSearch.d.mts +17 -0
- package/dist/hooks/useSearch.d.ts +17 -0
- package/dist/hooks/useSearch.js +66 -0
- package/dist/hooks/useSearch.js.map +1 -0
- package/dist/hooks/useSearch.mjs +42 -0
- package/dist/hooks/useSearch.mjs.map +1 -0
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +563 -471
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +525 -435
- package/dist/index.mjs.map +1 -1
- package/dist/util/PropsWithFunctionChildren.d.mts +14 -0
- package/dist/util/PropsWithFunctionChildren.d.ts +14 -0
- package/dist/util/PropsWithFunctionChildren.js +38 -0
- package/dist/util/PropsWithFunctionChildren.js.map +1 -0
- package/dist/util/PropsWithFunctionChildren.mjs +14 -0
- package/dist/util/PropsWithFunctionChildren.mjs.map +1 -0
- package/dist/util/simpleSearch.d.mts +2 -2
- package/dist/util/simpleSearch.d.ts +2 -2
- package/dist/util/simpleSearch.js +4 -1
- package/dist/util/simpleSearch.js.map +1 -1
- package/dist/util/simpleSearch.mjs +4 -1
- package/dist/util/simpleSearch.mjs.map +1 -1
- package/package.json +1 -2
|
@@ -155,7 +155,14 @@
|
|
|
155
155
|
|
|
156
156
|
/* The theme variables */
|
|
157
157
|
@theme {
|
|
158
|
-
/*
|
|
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:
|
|
219
|
+
--color-on-primary: var(--color-text-light);
|
|
205
220
|
--color-secondary: #11243E;
|
|
206
|
-
--color-on-secondary:
|
|
207
|
-
--color-warning:
|
|
208
|
-
--color-on-warning:
|
|
209
|
-
--color-positive:
|
|
210
|
-
--color-on-positive:
|
|
211
|
-
--color-negative:
|
|
212
|
-
--color-on-negative:
|
|
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:
|
|
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:
|
|
234
|
+
--color-on-background: var(--color-text-dark);
|
|
220
235
|
|
|
221
|
-
--color-female:
|
|
222
|
-
--color-female-outline:
|
|
223
|
-
--color-female-surface:
|
|
224
|
-
--color-female-background:
|
|
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:
|
|
227
|
-
--color-male-outline:
|
|
228
|
-
--color-male-surface:
|
|
229
|
-
--color-male-background:
|
|
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:
|
|
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:
|
|
242
|
-
--color-icon-secondary:
|
|
243
|
-
--color-icon-highlight:
|
|
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;
|
|
@@ -249,7 +264,19 @@
|
|
|
249
264
|
--color-disabled-text: #555555;
|
|
250
265
|
--color-disabled-icon: #555555;
|
|
251
266
|
--color-disabled-outline: #555555;
|
|
267
|
+
--color-border: #CCCCCC;
|
|
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);
|
|
252
278
|
|
|
279
|
+
/* Button Solid */
|
|
253
280
|
--color-button-solid-primary-background: var(--color-primary);
|
|
254
281
|
--color-button-solid-primary-text: var(--color-on-primary);
|
|
255
282
|
--color-button-solid-primary-icon: var(--color-on-primary);
|
|
@@ -272,10 +299,7 @@
|
|
|
272
299
|
--color-button-solid-negative-icon: var(--color-on-negative);
|
|
273
300
|
--color-button-solid-negative-text: var(--color-on-negative);
|
|
274
301
|
|
|
275
|
-
|
|
276
|
-
--color-button-outline-primary-icon: var(--color-primary);
|
|
277
|
-
--color-button-outline-primary-text: var(--color-primary);
|
|
278
|
-
|
|
302
|
+
/* Button Text */
|
|
279
303
|
--color-button-text-hover-background: #77777733;
|
|
280
304
|
--color-button-text-neutral-text: #333333;
|
|
281
305
|
--color-button-text-neutral-icon: #333333;
|
|
@@ -284,16 +308,39 @@
|
|
|
284
308
|
--color-button-text-primary-text: var(--color-primary);
|
|
285
309
|
--color-button-text-primary-icon: var(--color-primary);
|
|
286
310
|
|
|
287
|
-
|
|
288
|
-
--color-
|
|
289
|
-
--color-
|
|
311
|
+
/* Carousel */
|
|
312
|
+
--color-carousel-dot-active: var(--color-primary);
|
|
313
|
+
--color-carousel-dot-disabled: var(--color-disabled-background);
|
|
314
|
+
|
|
315
|
+
/* Menu */
|
|
316
|
+
--color-menu-background: var(--color-surface);
|
|
317
|
+
--color-menu-text: var(--color-on-surface);
|
|
318
|
+
--color-menu-border: var(--color-border);
|
|
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);
|
|
290
327
|
|
|
291
|
-
|
|
292
|
-
--color-
|
|
293
|
-
--color-
|
|
328
|
+
/* Property */
|
|
329
|
+
--color-property-title-background: #E6E6E6;
|
|
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);
|
|
336
|
+
|
|
337
|
+
/* Table */
|
|
338
|
+
--color-tabel-header-background: #F6FAFF;
|
|
339
|
+
|
|
340
|
+
/* Tag */
|
|
294
341
|
--color-tag-dark-background: #333333;
|
|
295
|
-
--color-tag-dark-text:
|
|
296
|
-
--color-tag-dark-icon:
|
|
342
|
+
--color-tag-dark-text: var(--color-text-light);
|
|
343
|
+
--color-tag-dark-icon: var(--color-text-light);
|
|
297
344
|
--color-tag-green-background: #E2E9DB;
|
|
298
345
|
--color-tag-green-text: #7A977E;
|
|
299
346
|
--color-tag-green-icon: #7A977E;
|
|
@@ -303,112 +350,137 @@
|
|
|
303
350
|
--color-tag-red-background: #FEE0DD;
|
|
304
351
|
--color-tag-red-text: #D67268;
|
|
305
352
|
--color-tag-red-icon: #D67268;
|
|
306
|
-
--color-tag-blue-background:
|
|
307
|
-
--color-tag-blue-text:
|
|
308
|
-
--color-tag-blue-icon:
|
|
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);
|
|
309
356
|
--color-tag-pink-background: #CEA3B8;
|
|
310
357
|
--color-tag-pink-text: #CE75A0;
|
|
311
358
|
--color-tag-pink-icon: #CE75A0;
|
|
312
359
|
|
|
313
|
-
|
|
314
|
-
|
|
360
|
+
/* TextImage */
|
|
315
361
|
--color-text-image-primary-background: var(--color-primary);
|
|
316
362
|
--color-text-image-primary-text: var(--color-on-primary);
|
|
317
363
|
--color-text-image-secondary-background: #3171DE;
|
|
318
|
-
--color-text-image-secondary-text:
|
|
364
|
+
--color-text-image-secondary-text: var(--color-text-light);
|
|
319
365
|
--color-text-image-dark-background: #11243E;
|
|
320
|
-
--color-text-image-dark-text:
|
|
321
|
-
|
|
322
|
-
--color-overlay-background: #FFFFFF;
|
|
323
|
-
--color-overlay-text: #1A1A1A;
|
|
366
|
+
--color-text-image-dark-text: var(--color-text-light);
|
|
324
367
|
|
|
368
|
+
/* Tooltip */
|
|
325
369
|
--color-tooltip-background: var(--color-overlay-background);
|
|
326
370
|
--color-tooltip-text: var(--color-description);
|
|
327
371
|
|
|
328
|
-
/*
|
|
372
|
+
/*
|
|
373
|
+
* breakpoints
|
|
374
|
+
*/
|
|
329
375
|
--breakpoint-tablet: 48rem; /* 768px for 16px font-size */
|
|
330
376
|
--breakpoint-desktop: 64rem; /* 1024px for 16px font-size*/
|
|
331
|
-
|
|
377
|
+
|
|
378
|
+
/*
|
|
379
|
+
* fonts
|
|
380
|
+
*/
|
|
332
381
|
--font-inter: 'Inter', sans-serif;
|
|
333
382
|
--font-space: 'Space Grotesk', sans-serif;
|
|
334
383
|
}
|
|
335
384
|
|
|
336
|
-
/* Overrides of the
|
|
385
|
+
/* Overrides of the base theme */
|
|
337
386
|
@layer base {
|
|
338
|
-
/*
|
|
387
|
+
/* dark theme overrides */
|
|
339
388
|
@variant dark {
|
|
389
|
+
/*
|
|
390
|
+
* Basic Colors
|
|
391
|
+
*/
|
|
340
392
|
--color-primary: var(--color-purple-400);
|
|
341
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);
|
|
342
400
|
|
|
343
401
|
--color-surface: #333333;
|
|
344
|
-
--color-on-surface:
|
|
402
|
+
--color-on-surface: var(--color-text-light);
|
|
345
403
|
--color-surface-variant: #494949;
|
|
346
404
|
--color-surface-warning: #FBECD9;
|
|
347
405
|
--color-text-label: #CFCFCF;
|
|
348
406
|
--color-highlight: #3272DF;
|
|
349
|
-
--color-background: #
|
|
350
|
-
--color-on-background:
|
|
407
|
+
--color-background: #222222;
|
|
408
|
+
--color-on-background: var(--color-text-light);
|
|
409
|
+
--color-border: #444444;
|
|
351
410
|
|
|
352
411
|
--color-neutral: #4D4D4D;
|
|
353
412
|
--color-neutral-outline: #B3B3B3;
|
|
354
413
|
--color-neutral-surface: #E6E6E6;
|
|
355
414
|
--color-neutral-background: #F8F8F8;
|
|
356
415
|
|
|
357
|
-
--color-text-primary:
|
|
416
|
+
--color-text-primary: var(--color-text-light);
|
|
358
417
|
--color-text-secondary: #666666;
|
|
359
418
|
--color-text-tertiary: #B3B3B3;
|
|
360
419
|
--color-text-highlight: #3272DF;
|
|
361
|
-
--color-icon-primary: #EEEEEE;
|
|
362
|
-
--color-icon-secondary: #666666;
|
|
363
|
-
--color-icon-highlight: #3272DF;
|
|
364
420
|
--color-description: #999999;
|
|
365
421
|
|
|
366
422
|
--color-disabled-background: #555555;
|
|
367
|
-
--color-disabled-text: #
|
|
423
|
+
--color-disabled-text: #999999;
|
|
424
|
+
|
|
425
|
+
/*
|
|
426
|
+
* Component Colors
|
|
427
|
+
*/
|
|
368
428
|
|
|
429
|
+
/* Button Solid */
|
|
369
430
|
--color-button-solid-neutral-background: #424242;
|
|
370
|
-
--color-button-solid-neutral-icon:
|
|
371
|
-
--color-button-solid-neutral-text:
|
|
431
|
+
--color-button-solid-neutral-icon: var(--color-text-light);
|
|
432
|
+
--color-button-solid-neutral-text: var(--color-text-light);
|
|
372
433
|
|
|
434
|
+
/* Button Text */
|
|
373
435
|
--color-button-text-hover-background: #3F3F3F;
|
|
374
|
-
--color-button-text-neutral-text:
|
|
375
|
-
--color-button-text-neutral-icon:
|
|
436
|
+
--color-button-text-neutral-text: var(--color-text-light);
|
|
437
|
+
--color-button-text-neutral-icon: var(--color-text-light);
|
|
376
438
|
|
|
439
|
+
/* Menu */
|
|
377
440
|
--color-menu-background: #333333;
|
|
378
|
-
--color-menu-text:
|
|
379
|
-
--color-menu-border:
|
|
441
|
+
--color-menu-text: var(--color-text-light);
|
|
442
|
+
--color-menu-border: var(--color-border);
|
|
380
443
|
|
|
381
|
-
|
|
444
|
+
/* Property */
|
|
445
|
+
--color-property-title-background: #393939;
|
|
446
|
+
--color-property-title-text: var(--color-on-surface);
|
|
447
|
+
|
|
448
|
+
/* ProgressIndicator */
|
|
449
|
+
--color-progress-indicator-background: var(--color-gray-700);
|
|
382
450
|
|
|
383
|
-
|
|
384
|
-
--color-overlay-
|
|
451
|
+
/* Overlay */
|
|
452
|
+
--color-overlay-background: #2A2A2A;
|
|
453
|
+
--color-overlay-text: var(--color-text-light);
|
|
454
|
+
|
|
455
|
+
/* Table */
|
|
456
|
+
--color-tabel-header-background: #F6FAFF;
|
|
385
457
|
}
|
|
386
458
|
}
|
|
387
459
|
|
|
388
460
|
/* Styles that can be overwritten by utils */
|
|
389
461
|
@layer components {
|
|
390
462
|
.btn-sm {
|
|
391
|
-
@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;
|
|
392
464
|
}
|
|
393
465
|
|
|
394
466
|
.btn-md {
|
|
395
|
-
@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;
|
|
396
468
|
}
|
|
397
469
|
|
|
398
470
|
.btn-lg {
|
|
399
|
-
@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;
|
|
400
472
|
}
|
|
401
473
|
|
|
402
474
|
.icon-btn-sm {
|
|
403
|
-
@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;
|
|
404
476
|
}
|
|
405
477
|
|
|
406
478
|
.icon-btn-md {
|
|
407
|
-
@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;
|
|
408
480
|
}
|
|
409
481
|
|
|
410
482
|
.icon-btn-lg {
|
|
411
|
-
@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;
|
|
412
484
|
}
|
|
413
485
|
|
|
414
486
|
.card-sm {
|
|
@@ -445,16 +517,20 @@
|
|
|
445
517
|
}
|
|
446
518
|
|
|
447
519
|
@layer components {
|
|
520
|
+
* {
|
|
521
|
+
@apply border-border;
|
|
522
|
+
}
|
|
523
|
+
|
|
448
524
|
html, main {
|
|
449
525
|
@apply bg-background text-on-background;
|
|
450
526
|
}
|
|
451
527
|
|
|
452
528
|
button {
|
|
453
|
-
@apply cursor-pointer;
|
|
529
|
+
@apply cursor-pointer text-nowrap;
|
|
454
530
|
}
|
|
455
531
|
|
|
456
532
|
input {
|
|
457
|
-
@apply block bg-surface text-on-surface px-
|
|
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;
|
|
458
534
|
}
|
|
459
535
|
|
|
460
536
|
.textstyle-title-3xl {
|
|
@@ -486,7 +562,7 @@
|
|
|
486
562
|
}
|
|
487
563
|
|
|
488
564
|
.textstyle-accent {
|
|
489
|
-
@apply text-sm text-
|
|
565
|
+
@apply text-sm text-text-label font-bold;
|
|
490
566
|
}
|
|
491
567
|
|
|
492
568
|
.textstyle-description {
|
|
@@ -510,7 +586,7 @@
|
|
|
510
586
|
}
|
|
511
587
|
|
|
512
588
|
.textstyle-table-header {
|
|
513
|
-
@apply text-
|
|
589
|
+
@apply text-text-label font-bold;
|
|
514
590
|
}
|
|
515
591
|
|
|
516
592
|
.textstyle-navigation-item {
|
|
@@ -522,6 +598,6 @@
|
|
|
522
598
|
}
|
|
523
599
|
|
|
524
600
|
.textstyle-form-description {
|
|
525
|
-
@apply text-
|
|
601
|
+
@apply text-description text-sm;
|
|
526
602
|
}
|
|
527
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
|
|
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, SearchProps } from './components/user-action/MultiSelect.mjs';
|
|
54
54
|
export { ScrollPicker, ScrollPickerProps } from './components/user-action/ScrollPicker.mjs';
|
|
55
|
-
export {
|
|
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,12 @@ 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
65
|
export { PropsForTranslation, Translation, useTranslation } from './localization/useTranslation.mjs';
|
|
65
66
|
export { Language, LanguageUtil } from './localization/util.mjs';
|
|
66
67
|
export { ThemeContext, ThemeProvider, ThemeType, ThemeTypeTranslation, ThemeUtil, useTheme } from './theming/useTheme.mjs';
|
|
68
|
+
export { BagFunction, BagFunctionUtil, PropsWithBagFunction, PropsWithBagFunctionOrChildren } from './util/PropsWithFunctionChildren.mjs';
|
|
67
69
|
export { ArrayUtil, closestMatch, createLoopingList, createLoopingListWithIndex, equalSizeGroups, getNeighbours, range } from './util/array.mjs';
|
|
68
70
|
export { builder } from './util/builder.mjs';
|
|
69
71
|
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
|
|
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, SearchProps } from './components/user-action/MultiSelect.js';
|
|
54
54
|
export { ScrollPicker, ScrollPickerProps } from './components/user-action/ScrollPicker.js';
|
|
55
|
-
export {
|
|
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,12 @@ 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
65
|
export { PropsForTranslation, Translation, useTranslation } from './localization/useTranslation.js';
|
|
65
66
|
export { Language, LanguageUtil } from './localization/util.js';
|
|
66
67
|
export { ThemeContext, ThemeProvider, ThemeType, ThemeTypeTranslation, ThemeUtil, useTheme } from './theming/useTheme.js';
|
|
68
|
+
export { BagFunction, BagFunctionUtil, PropsWithBagFunction, PropsWithBagFunctionOrChildren } from './util/PropsWithFunctionChildren.js';
|
|
67
69
|
export { ArrayUtil, closestMatch, createLoopingList, createLoopingListWithIndex, equalSizeGroups, getNeighbours, range } from './util/array.js';
|
|
68
70
|
export { builder } from './util/builder.js';
|
|
69
71
|
export { Duration, Month, WeekDay, addDuration, changeDuration, equalDate, formatDate, formatDateTime, getBetweenDuration, getDaysInMonth, getWeeksForCalenderMonth, isInTimeSpan, monthsList, subtractDuration, weekDayList } from './util/date.js';
|