@helpwave/hightide 0.1.22 → 0.1.24
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/README.md +5 -0
- package/dist/components/branding/HelpwaveBadge.js +8 -5
- package/dist/components/branding/HelpwaveBadge.js.map +1 -1
- package/dist/components/branding/HelpwaveBadge.mjs +8 -5
- package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +10 -10
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/DayPicker.mjs +4 -4
- package/dist/components/date/DayPicker.mjs.map +1 -1
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/TimeDisplay.mjs +2 -2
- package/dist/components/date/TimeDisplay.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +5 -5
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +8 -8
- package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.js +2912 -33
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.mjs +2941 -33
- package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
- package/dist/components/icons-and-geometry/Tag.js +2912 -1
- package/dist/components/icons-and-geometry/Tag.js.map +1 -1
- package/dist/components/icons-and-geometry/Tag.mjs +2931 -1
- package/dist/components/icons-and-geometry/Tag.mjs.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.d.mts +2 -1
- package/dist/components/layout-and-navigation/BreadCrumb.d.ts +2 -1
- package/dist/components/layout-and-navigation/BreadCrumb.js +15 -11
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.mjs +15 -11
- package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Chip.js +2 -2
- package/dist/components/layout-and-navigation/Chip.js.map +1 -1
- package/dist/components/layout-and-navigation/Chip.mjs +2 -2
- package/dist/components/layout-and-navigation/Chip.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +6 -6
- package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +10 -10
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +10 -10
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +4 -4
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.mjs +2 -2
- package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Tile.d.mts +9 -10
- package/dist/components/layout-and-navigation/Tile.d.ts +9 -10
- package/dist/components/layout-and-navigation/Tile.js +21 -4
- package/dist/components/layout-and-navigation/Tile.js.map +1 -1
- package/dist/components/layout-and-navigation/Tile.mjs +20 -4
- package/dist/components/layout-and-navigation/Tile.mjs.map +1 -1
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs +2 -2
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.js +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.mjs +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs +2 -2
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
- package/dist/components/modals/ConfirmModal.js.map +1 -1
- package/dist/components/modals/ConfirmModal.mjs +8 -8
- package/dist/components/modals/ConfirmModal.mjs.map +1 -1
- package/dist/components/modals/DiscardChangesModal.js.map +1 -1
- package/dist/components/modals/DiscardChangesModal.mjs +8 -8
- package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/InputModal.mjs +8 -8
- package/dist/components/modals/InputModal.mjs.map +1 -1
- package/dist/components/modals/LanguageModal.js +21 -22
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.mjs +45 -46
- package/dist/components/modals/LanguageModal.mjs.map +1 -1
- package/dist/components/modals/ThemeModal.js +21 -22
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.mjs +46 -47
- package/dist/components/modals/ThemeModal.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +1 -1
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +3 -3
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +1 -1
- 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 +0 -1
- package/dist/components/properties/MultiSelectProperty.d.ts +0 -1
- package/dist/components/properties/MultiSelectProperty.js +745 -740
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +762 -757
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +1 -1
- 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 +1 -1
- 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 +0 -1
- package/dist/components/properties/SelectProperty.d.ts +0 -1
- package/dist/components/properties/SelectProperty.js +24 -25
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +45 -46
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +1 -1
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +7 -7
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +26 -26
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +4 -4
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs +2 -2
- package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +12 -12
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/MultiSelect.d.mts +0 -1
- package/dist/components/user-action/MultiSelect.d.ts +0 -1
- package/dist/components/user-action/MultiSelect.js +617 -612
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/MultiSelect.mjs +642 -637
- 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/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +2 -2
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/Select.d.mts +1 -4
- package/dist/components/user-action/Select.d.ts +1 -4
- package/dist/components/user-action/Select.js +21 -24
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/Select.mjs +27 -29
- package/dist/components/user-action/Select.mjs.map +1 -1
- package/dist/css/globals.css +175 -179
- package/dist/css/uncompiled/globals.css +3 -3
- package/dist/css/uncompiled/textstyles.css +5 -5
- package/dist/css/uncompiled/theme/colors-basic.css +13 -5
- package/dist/css/uncompiled/theme/colors-component.css +56 -41
- package/dist/css/uncompiled/theme/colors-semantic.css +76 -83
- package/dist/css/uncompiled/theme/index.css +1 -2
- package/dist/hooks/useLocalStorage.js +1 -3
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLocalStorage.mjs +3 -4
- package/dist/hooks/useLocalStorage.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3161 -377
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3098 -314
- package/dist/index.mjs.map +1 -1
- package/dist/localization/LanguageProvider.js +0 -3
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/LanguageProvider.mjs +5 -8
- package/dist/localization/LanguageProvider.mjs.map +1 -1
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs +2 -2
- package/dist/localization/useTranslation.mjs.map +1 -1
- package/dist/theming/useTheme.js +4 -7
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +9 -12
- package/dist/theming/useTheme.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/css/uncompiled/theme/theme.css +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/localization/LanguageProvider.tsx
|
|
2
|
-
import { createContext, useContext, useEffect
|
|
2
|
+
import { createContext, useContext, useEffect, useState as useState2 } from "react";
|
|
3
3
|
|
|
4
4
|
// src/hooks/useLocalStorage.ts
|
|
5
|
-
import { useCallback,
|
|
5
|
+
import { useCallback, useState } from "react";
|
|
6
6
|
|
|
7
7
|
// src/localization/util.ts
|
|
8
8
|
var languages = ["en", "de"];
|
|
@@ -87,7 +87,7 @@ var useTranslation = (translations, overwriteTranslation = {}) => {
|
|
|
87
87
|
|
|
88
88
|
// src/components/user-action/Select.tsx
|
|
89
89
|
import { useCallback as useCallback5 } from "react";
|
|
90
|
-
import { useEffect as
|
|
90
|
+
import { useEffect as useEffect10, useState as useState9 } from "react";
|
|
91
91
|
import clsx8 from "clsx";
|
|
92
92
|
|
|
93
93
|
// src/components/user-action/Label.tsx
|
|
@@ -114,14 +114,16 @@ import { Check } from "lucide-react";
|
|
|
114
114
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
115
115
|
var Tile = ({
|
|
116
116
|
title,
|
|
117
|
+
titleClassName,
|
|
117
118
|
description,
|
|
119
|
+
descriptionClassName,
|
|
118
120
|
onClick,
|
|
119
121
|
isSelected = false,
|
|
120
122
|
disabled = false,
|
|
121
123
|
prefix,
|
|
122
124
|
suffix,
|
|
123
125
|
normalClassName = "hover:bg-primary/40 cursor-pointer",
|
|
124
|
-
selectedClassName = "
|
|
126
|
+
selectedClassName = "bg-primary/20",
|
|
125
127
|
disabledClassName = "text-disabled-text bg-disabled-background cursor-not-allowed",
|
|
126
128
|
className
|
|
127
129
|
}) => {
|
|
@@ -131,7 +133,7 @@ var Tile = ({
|
|
|
131
133
|
className: clsx2(
|
|
132
134
|
"flex-row-2 w-full items-center",
|
|
133
135
|
{
|
|
134
|
-
[normalClassName]:
|
|
136
|
+
[normalClassName]: onClick && !disabled,
|
|
135
137
|
[selectedClassName]: isSelected && !disabled,
|
|
136
138
|
[disabledClassName]: disabled
|
|
137
139
|
},
|
|
@@ -141,17 +143,30 @@ var Tile = ({
|
|
|
141
143
|
children: [
|
|
142
144
|
prefix,
|
|
143
145
|
/* @__PURE__ */ jsxs("div", { className: "flex-col-0 w-full", children: [
|
|
144
|
-
/* @__PURE__ */ jsx3("
|
|
145
|
-
!!description && /* @__PURE__ */ jsx3("span", { className: clsx2(
|
|
146
|
+
/* @__PURE__ */ jsx3("span", { className: clsx2(titleClassName ?? "textstyle-title-normal"), children: title }),
|
|
147
|
+
!!description && /* @__PURE__ */ jsx3("span", { className: clsx2(descriptionClassName ?? "textstyle-description"), children: description })
|
|
146
148
|
] }),
|
|
147
149
|
suffix ?? (isSelected ? /* @__PURE__ */ jsx3(Check, { size: 24 }) : void 0)
|
|
148
150
|
]
|
|
149
151
|
}
|
|
150
152
|
);
|
|
151
153
|
};
|
|
154
|
+
var ListTile = ({
|
|
155
|
+
...props
|
|
156
|
+
}) => {
|
|
157
|
+
return /* @__PURE__ */ jsx3(
|
|
158
|
+
Tile,
|
|
159
|
+
{
|
|
160
|
+
...props,
|
|
161
|
+
titleClassName: props.titleClassName ?? "font-semibold",
|
|
162
|
+
className: clsx2("px-2 py-1 rounded-md", props.className),
|
|
163
|
+
disabledClassName: props.disabledClassName ?? "text-disabled-text cursor-not-allowed"
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
};
|
|
152
167
|
|
|
153
168
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
154
|
-
import { forwardRef, useCallback as useCallback2, useEffect as
|
|
169
|
+
import { forwardRef, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
|
|
155
170
|
import { ChevronDown } from "lucide-react";
|
|
156
171
|
import clsx3 from "clsx";
|
|
157
172
|
|
|
@@ -237,7 +252,7 @@ var ExpandableUncontrolled = forwardRef(function ExpandableUncontrolled2({
|
|
|
237
252
|
...props
|
|
238
253
|
}, ref) {
|
|
239
254
|
const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
|
|
240
|
-
|
|
255
|
+
useEffect2(() => {
|
|
241
256
|
setUsedIsExpanded(isExpanded);
|
|
242
257
|
}, [isExpanded]);
|
|
243
258
|
return /* @__PURE__ */ jsx4(
|
|
@@ -255,13 +270,13 @@ var ExpandableUncontrolled = forwardRef(function ExpandableUncontrolled2({
|
|
|
255
270
|
});
|
|
256
271
|
|
|
257
272
|
// src/components/user-action/Menu.tsx
|
|
258
|
-
import { useEffect as
|
|
273
|
+
import { useEffect as useEffect5, useRef, useState as useState5 } from "react";
|
|
259
274
|
import clsx4 from "clsx";
|
|
260
275
|
|
|
261
276
|
// src/hooks/useOutsideClick.ts
|
|
262
|
-
import { useEffect as
|
|
277
|
+
import { useEffect as useEffect3 } from "react";
|
|
263
278
|
var useOutsideClick = (refs, handler) => {
|
|
264
|
-
|
|
279
|
+
useEffect3(() => {
|
|
265
280
|
const listener = (event) => {
|
|
266
281
|
if (event.target === null) return;
|
|
267
282
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -279,7 +294,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
279
294
|
};
|
|
280
295
|
|
|
281
296
|
// src/hooks/useHoverState.ts
|
|
282
|
-
import { useEffect as
|
|
297
|
+
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
283
298
|
var defaultUseHoverStateProps = {
|
|
284
299
|
closingDelay: 200,
|
|
285
300
|
isDisabled: false
|
|
@@ -303,14 +318,14 @@ var useHoverState = (props = void 0) => {
|
|
|
303
318
|
setIsHovered(false);
|
|
304
319
|
}, closingDelay));
|
|
305
320
|
};
|
|
306
|
-
|
|
321
|
+
useEffect4(() => {
|
|
307
322
|
if (timer) {
|
|
308
323
|
return () => {
|
|
309
324
|
clearTimeout(timer);
|
|
310
325
|
};
|
|
311
326
|
}
|
|
312
327
|
});
|
|
313
|
-
|
|
328
|
+
useEffect4(() => {
|
|
314
329
|
if (timer) {
|
|
315
330
|
clearTimeout(timer);
|
|
316
331
|
}
|
|
@@ -423,7 +438,7 @@ var Menu = ({
|
|
|
423
438
|
triggerRef.current?.getBoundingClientRect(),
|
|
424
439
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
425
440
|
);
|
|
426
|
-
|
|
441
|
+
useEffect5(() => {
|
|
427
442
|
if (!isOpen) return;
|
|
428
443
|
const triggerEl = triggerRef.current;
|
|
429
444
|
if (!triggerEl) return;
|
|
@@ -440,7 +455,7 @@ var Menu = ({
|
|
|
440
455
|
window.removeEventListener("resize", close);
|
|
441
456
|
};
|
|
442
457
|
}, [isOpen, setIsOpen]);
|
|
443
|
-
|
|
458
|
+
useEffect5(() => {
|
|
444
459
|
if (isOpen) {
|
|
445
460
|
setIsHidden(false);
|
|
446
461
|
}
|
|
@@ -476,11 +491,11 @@ var Menu = ({
|
|
|
476
491
|
};
|
|
477
492
|
|
|
478
493
|
// src/components/user-action/Input.tsx
|
|
479
|
-
import { forwardRef as forwardRef2, useEffect as
|
|
494
|
+
import { forwardRef as forwardRef2, useEffect as useEffect8, useImperativeHandle, useRef as useRef2, useState as useState7 } from "react";
|
|
480
495
|
import clsx5 from "clsx";
|
|
481
496
|
|
|
482
497
|
// src/hooks/useDelay.ts
|
|
483
|
-
import { useEffect as
|
|
498
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
484
499
|
var defaultOptions = {
|
|
485
500
|
delay: 3e3,
|
|
486
501
|
disabled: false
|
|
@@ -505,12 +520,12 @@ function useDelay(options) {
|
|
|
505
520
|
setTimer(void 0);
|
|
506
521
|
}, delay));
|
|
507
522
|
};
|
|
508
|
-
|
|
523
|
+
useEffect6(() => {
|
|
509
524
|
return () => {
|
|
510
525
|
clearTimeout(timer);
|
|
511
526
|
};
|
|
512
527
|
}, [timer]);
|
|
513
|
-
|
|
528
|
+
useEffect6(() => {
|
|
514
529
|
if (disabled) {
|
|
515
530
|
clearTimeout(timer);
|
|
516
531
|
setTimer(void 0);
|
|
@@ -577,10 +592,10 @@ function useFocusManagement() {
|
|
|
577
592
|
}
|
|
578
593
|
|
|
579
594
|
// src/hooks/useFocusOnceVisible.ts
|
|
580
|
-
import React, { useEffect as
|
|
595
|
+
import React, { useEffect as useEffect7 } from "react";
|
|
581
596
|
var useFocusOnceVisible = (ref, disable = false) => {
|
|
582
597
|
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
583
|
-
|
|
598
|
+
useEffect7(() => {
|
|
584
599
|
if (disable || hasUsedFocus) {
|
|
585
600
|
return;
|
|
586
601
|
}
|
|
@@ -1003,7 +1018,7 @@ var SearchBar = ({
|
|
|
1003
1018
|
};
|
|
1004
1019
|
|
|
1005
1020
|
// src/hooks/useSearch.ts
|
|
1006
|
-
import { useCallback as useCallback4, useEffect as
|
|
1021
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1007
1022
|
|
|
1008
1023
|
// src/util/simpleSearch.ts
|
|
1009
1024
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1037,7 +1052,7 @@ var useSearch = ({
|
|
|
1037
1052
|
}
|
|
1038
1053
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1039
1054
|
}, [searchTags, list, search, searchMapping]);
|
|
1040
|
-
|
|
1055
|
+
useEffect9(() => {
|
|
1041
1056
|
if (isSearchInstant) {
|
|
1042
1057
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1043
1058
|
}
|
|
@@ -1072,22 +1087,6 @@ var useSearch = ({
|
|
|
1072
1087
|
|
|
1073
1088
|
// src/components/user-action/Select.tsx
|
|
1074
1089
|
import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1075
|
-
var SelectTile = ({
|
|
1076
|
-
className,
|
|
1077
|
-
disabledClassName,
|
|
1078
|
-
title,
|
|
1079
|
-
...restProps
|
|
1080
|
-
}) => {
|
|
1081
|
-
return /* @__PURE__ */ jsx9(
|
|
1082
|
-
Tile,
|
|
1083
|
-
{
|
|
1084
|
-
...restProps,
|
|
1085
|
-
className: clsx8("px-2 py-1 rounded-md", className),
|
|
1086
|
-
disabledClassName: disabledClassName ?? "text-disabled-text cursor-not-allowed",
|
|
1087
|
-
title: { ...title, className: title.className ?? "font-semibold" }
|
|
1088
|
-
}
|
|
1089
|
-
);
|
|
1090
|
-
};
|
|
1091
1090
|
var Select = ({
|
|
1092
1091
|
value,
|
|
1093
1092
|
label,
|
|
@@ -1154,10 +1153,10 @@ var Select = ({
|
|
|
1154
1153
|
),
|
|
1155
1154
|
/* @__PURE__ */ jsxs7("div", { className: "flex-col-2 overflow-y-auto", children: [
|
|
1156
1155
|
result.map((option, index) => /* @__PURE__ */ jsx9(
|
|
1157
|
-
|
|
1156
|
+
ListTile,
|
|
1158
1157
|
{
|
|
1159
1158
|
isSelected: option === selectedOption,
|
|
1160
|
-
title:
|
|
1159
|
+
title: option.label,
|
|
1161
1160
|
onClick: () => {
|
|
1162
1161
|
onChange(option.value);
|
|
1163
1162
|
close();
|
|
@@ -1176,7 +1175,7 @@ var Select = ({
|
|
|
1176
1175
|
};
|
|
1177
1176
|
|
|
1178
1177
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
1179
|
-
import { useEffect as
|
|
1178
|
+
import { useEffect as useEffect11, useRef as useRef3, useState as useState10 } from "react";
|
|
1180
1179
|
import ReactDOM from "react-dom";
|
|
1181
1180
|
import clsx10 from "clsx";
|
|
1182
1181
|
|
|
@@ -1256,7 +1255,7 @@ var Overlay = ({
|
|
|
1256
1255
|
backgroundClassName
|
|
1257
1256
|
}) => {
|
|
1258
1257
|
const [root, setRoot] = useState10();
|
|
1259
|
-
|
|
1258
|
+
useEffect11(() => {
|
|
1260
1259
|
setRoot(document.body);
|
|
1261
1260
|
}, []);
|
|
1262
1261
|
if (!root || !isOpen) return null;
|
|
@@ -1319,7 +1318,7 @@ var Modal = ({
|
|
|
1319
1318
|
headerProps
|
|
1320
1319
|
}) => {
|
|
1321
1320
|
const ref = useRef3(null);
|
|
1322
|
-
|
|
1321
|
+
useEffect11(() => {
|
|
1323
1322
|
if (!isOpen) return;
|
|
1324
1323
|
const modal = ref.current;
|
|
1325
1324
|
if (!modal) {
|
|
@@ -1385,7 +1384,7 @@ var Modal = ({
|
|
|
1385
1384
|
|
|
1386
1385
|
// src/theming/useTheme.tsx
|
|
1387
1386
|
import { useMemo as useMemo2 } from "react";
|
|
1388
|
-
import { createContext as createContext2, useContext as useContext2, useEffect as
|
|
1387
|
+
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect12, useState as useState11 } from "react";
|
|
1389
1388
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1390
1389
|
var themes = ["light", "dark", "system"];
|
|
1391
1390
|
var defaultThemeTypeTranslation = {
|