@helpwave/hightide 0.1.23 → 0.1.25
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/date/DatePicker.js +48 -53
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +58 -63
- 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 +26 -29
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +31 -34
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.js +40 -43
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +48 -51
- package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +40 -43
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +40 -43
- package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.js +40 -43
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +46 -49
- package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.js +40 -43
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +50 -53
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.js +40 -43
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +50 -53
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.js +26 -29
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +30 -33
- 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/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/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/loading-states/LoadingButton.js +26 -29
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/LoadingButton.mjs +26 -29
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
- package/dist/components/modals/ConfirmModal.js +40 -43
- package/dist/components/modals/ConfirmModal.js.map +1 -1
- package/dist/components/modals/ConfirmModal.mjs +48 -51
- package/dist/components/modals/ConfirmModal.mjs.map +1 -1
- package/dist/components/modals/DiscardChangesModal.js +40 -43
- package/dist/components/modals/DiscardChangesModal.js.map +1 -1
- package/dist/components/modals/DiscardChangesModal.mjs +48 -51
- package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
- package/dist/components/modals/InputModal.js +40 -43
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/InputModal.mjs +48 -51
- package/dist/components/modals/InputModal.mjs.map +1 -1
- package/dist/components/modals/LanguageModal.js +43 -49
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.mjs +67 -73
- package/dist/components/modals/LanguageModal.mjs.map +1 -1
- package/dist/components/modals/ThemeModal.js +43 -49
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.mjs +68 -74
- package/dist/components/modals/ThemeModal.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +96 -75
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +98 -77
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +48 -53
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +50 -55
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.js +114 -93
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +135 -114
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +48 -53
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +50 -55
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +48 -53
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +50 -55
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.js +65 -73
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +86 -94
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +51 -56
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +57 -62
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js +88 -65
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +114 -91
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js +40 -43
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +44 -47
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/table/TableSortButton.js +40 -43
- package/dist/components/table/TableSortButton.js.map +1 -1
- package/dist/components/table/TableSortButton.mjs +40 -43
- package/dist/components/table/TableSortButton.mjs.map +1 -1
- package/dist/components/user-action/Button.d.mts +3 -3
- package/dist/components/user-action/Button.d.ts +3 -3
- package/dist/components/user-action/Button.js +76 -84
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/Button.mjs +76 -84
- package/dist/components/user-action/Button.mjs.map +1 -1
- package/dist/components/user-action/Checkbox.js +48 -22
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +48 -22
- package/dist/components/user-action/Checkbox.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 +48 -53
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +60 -65
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/MultiSelect.js +92 -69
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/MultiSelect.mjs +114 -91
- package/dist/components/user-action/MultiSelect.mjs.map +1 -1
- package/dist/components/user-action/SearchBar.js +40 -43
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +42 -45
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/Select.js +43 -49
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/Select.mjs +49 -55
- package/dist/components/user-action/Select.mjs.map +1 -1
- package/dist/components/user-action/Textarea.js +3 -3
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +3 -3
- package/dist/components/user-action/Textarea.mjs.map +1 -1
- package/dist/css/globals.css +269 -136
- 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.js +141 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +216 -204
- 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 +3 -6
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +8 -11
- 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
|
|
@@ -166,7 +166,7 @@ var ListTile = ({
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
169
|
-
import { forwardRef, useCallback as useCallback2, useEffect as
|
|
169
|
+
import { forwardRef, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
|
|
170
170
|
import { ChevronDown } from "lucide-react";
|
|
171
171
|
import clsx3 from "clsx";
|
|
172
172
|
|
|
@@ -252,7 +252,7 @@ var ExpandableUncontrolled = forwardRef(function ExpandableUncontrolled2({
|
|
|
252
252
|
...props
|
|
253
253
|
}, ref) {
|
|
254
254
|
const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
|
|
255
|
-
|
|
255
|
+
useEffect2(() => {
|
|
256
256
|
setUsedIsExpanded(isExpanded);
|
|
257
257
|
}, [isExpanded]);
|
|
258
258
|
return /* @__PURE__ */ jsx4(
|
|
@@ -270,13 +270,13 @@ var ExpandableUncontrolled = forwardRef(function ExpandableUncontrolled2({
|
|
|
270
270
|
});
|
|
271
271
|
|
|
272
272
|
// src/components/user-action/Menu.tsx
|
|
273
|
-
import { useEffect as
|
|
273
|
+
import { useEffect as useEffect5, useRef, useState as useState5 } from "react";
|
|
274
274
|
import clsx4 from "clsx";
|
|
275
275
|
|
|
276
276
|
// src/hooks/useOutsideClick.ts
|
|
277
|
-
import { useEffect as
|
|
277
|
+
import { useEffect as useEffect3 } from "react";
|
|
278
278
|
var useOutsideClick = (refs, handler) => {
|
|
279
|
-
|
|
279
|
+
useEffect3(() => {
|
|
280
280
|
const listener = (event) => {
|
|
281
281
|
if (event.target === null) return;
|
|
282
282
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -294,7 +294,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
// src/hooks/useHoverState.ts
|
|
297
|
-
import { useEffect as
|
|
297
|
+
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
298
298
|
var defaultUseHoverStateProps = {
|
|
299
299
|
closingDelay: 200,
|
|
300
300
|
isDisabled: false
|
|
@@ -318,14 +318,14 @@ var useHoverState = (props = void 0) => {
|
|
|
318
318
|
setIsHovered(false);
|
|
319
319
|
}, closingDelay));
|
|
320
320
|
};
|
|
321
|
-
|
|
321
|
+
useEffect4(() => {
|
|
322
322
|
if (timer) {
|
|
323
323
|
return () => {
|
|
324
324
|
clearTimeout(timer);
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
|
-
|
|
328
|
+
useEffect4(() => {
|
|
329
329
|
if (timer) {
|
|
330
330
|
clearTimeout(timer);
|
|
331
331
|
}
|
|
@@ -438,7 +438,7 @@ var Menu = ({
|
|
|
438
438
|
triggerRef.current?.getBoundingClientRect(),
|
|
439
439
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
440
440
|
);
|
|
441
|
-
|
|
441
|
+
useEffect5(() => {
|
|
442
442
|
if (!isOpen) return;
|
|
443
443
|
const triggerEl = triggerRef.current;
|
|
444
444
|
if (!triggerEl) return;
|
|
@@ -455,7 +455,7 @@ var Menu = ({
|
|
|
455
455
|
window.removeEventListener("resize", close);
|
|
456
456
|
};
|
|
457
457
|
}, [isOpen, setIsOpen]);
|
|
458
|
-
|
|
458
|
+
useEffect5(() => {
|
|
459
459
|
if (isOpen) {
|
|
460
460
|
setIsHidden(false);
|
|
461
461
|
}
|
|
@@ -491,11 +491,11 @@ var Menu = ({
|
|
|
491
491
|
};
|
|
492
492
|
|
|
493
493
|
// src/components/user-action/Input.tsx
|
|
494
|
-
import { forwardRef as forwardRef2, useEffect as
|
|
494
|
+
import { forwardRef as forwardRef2, useEffect as useEffect8, useImperativeHandle, useRef as useRef2, useState as useState7 } from "react";
|
|
495
495
|
import clsx5 from "clsx";
|
|
496
496
|
|
|
497
497
|
// src/hooks/useDelay.ts
|
|
498
|
-
import { useEffect as
|
|
498
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
499
499
|
var defaultOptions = {
|
|
500
500
|
delay: 3e3,
|
|
501
501
|
disabled: false
|
|
@@ -520,12 +520,12 @@ function useDelay(options) {
|
|
|
520
520
|
setTimer(void 0);
|
|
521
521
|
}, delay));
|
|
522
522
|
};
|
|
523
|
-
|
|
523
|
+
useEffect6(() => {
|
|
524
524
|
return () => {
|
|
525
525
|
clearTimeout(timer);
|
|
526
526
|
};
|
|
527
527
|
}, [timer]);
|
|
528
|
-
|
|
528
|
+
useEffect6(() => {
|
|
529
529
|
if (disabled) {
|
|
530
530
|
clearTimeout(timer);
|
|
531
531
|
setTimer(void 0);
|
|
@@ -592,10 +592,10 @@ function useFocusManagement() {
|
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
// src/hooks/useFocusOnceVisible.ts
|
|
595
|
-
import React, { useEffect as
|
|
595
|
+
import React, { useEffect as useEffect7 } from "react";
|
|
596
596
|
var useFocusOnceVisible = (ref, disable = false) => {
|
|
597
597
|
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
598
|
-
|
|
598
|
+
useEffect7(() => {
|
|
599
599
|
if (disable || hasUsedFocus) {
|
|
600
600
|
return;
|
|
601
601
|
}
|
|
@@ -886,7 +886,6 @@ var ButtonUtil = {
|
|
|
886
886
|
};
|
|
887
887
|
var SolidButton = forwardRef3(function SolidButton2({
|
|
888
888
|
children,
|
|
889
|
-
disabled = false,
|
|
890
889
|
color = "primary",
|
|
891
890
|
size = "medium",
|
|
892
891
|
startIcon,
|
|
@@ -896,35 +895,33 @@ var SolidButton = forwardRef3(function SolidButton2({
|
|
|
896
895
|
...restProps
|
|
897
896
|
}, ref) {
|
|
898
897
|
const colorClasses = {
|
|
899
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
900
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
901
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
902
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
903
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
904
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
905
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
898
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
899
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
900
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
901
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
902
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
903
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
904
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
906
905
|
}[color];
|
|
907
906
|
const iconColorClasses = {
|
|
908
|
-
primary: "text-button-solid-primary-icon",
|
|
909
|
-
secondary: "text-button-solid-secondary-icon",
|
|
910
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
911
|
-
positive: "text-button-solid-positive-icon",
|
|
912
|
-
warning: "text-button-solid-warning-icon",
|
|
913
|
-
negative: "text-button-solid-negative-icon",
|
|
914
|
-
neutral: "text-button-solid-neutral-icon"
|
|
907
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
908
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
909
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
910
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
911
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
912
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
913
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
915
914
|
}[color];
|
|
916
915
|
return /* @__PURE__ */ jsxs5(
|
|
917
916
|
"button",
|
|
918
917
|
{
|
|
919
918
|
ref,
|
|
920
919
|
onClick,
|
|
921
|
-
disabled,
|
|
922
920
|
className: clsx6(
|
|
923
|
-
"font-semibold",
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
},
|
|
921
|
+
"group font-semibold",
|
|
922
|
+
colorClasses,
|
|
923
|
+
"not-disabled:hover:brightness-90",
|
|
924
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
928
925
|
ButtonUtil.paddingMapping[size],
|
|
929
926
|
className
|
|
930
927
|
),
|
|
@@ -933,10 +930,10 @@ var SolidButton = forwardRef3(function SolidButton2({
|
|
|
933
930
|
startIcon && /* @__PURE__ */ jsx7(
|
|
934
931
|
"span",
|
|
935
932
|
{
|
|
936
|
-
className: clsx6(
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
933
|
+
className: clsx6(
|
|
934
|
+
iconColorClasses,
|
|
935
|
+
"group-disabled:text-disabled-icon"
|
|
936
|
+
),
|
|
940
937
|
children: startIcon
|
|
941
938
|
}
|
|
942
939
|
),
|
|
@@ -944,10 +941,10 @@ var SolidButton = forwardRef3(function SolidButton2({
|
|
|
944
941
|
endIcon && /* @__PURE__ */ jsx7(
|
|
945
942
|
"span",
|
|
946
943
|
{
|
|
947
|
-
className: clsx6(
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
944
|
+
className: clsx6(
|
|
945
|
+
iconColorClasses,
|
|
946
|
+
"group-disabled:text-disabled-icon"
|
|
947
|
+
),
|
|
951
948
|
children: endIcon
|
|
952
949
|
}
|
|
953
950
|
)
|
|
@@ -957,32 +954,32 @@ var SolidButton = forwardRef3(function SolidButton2({
|
|
|
957
954
|
});
|
|
958
955
|
var IconButton = ({
|
|
959
956
|
children,
|
|
960
|
-
disabled = false,
|
|
961
957
|
color = "primary",
|
|
962
958
|
size = "medium",
|
|
963
959
|
className,
|
|
964
960
|
...restProps
|
|
965
961
|
}) => {
|
|
966
962
|
const colorClasses = {
|
|
967
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
968
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
969
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
970
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
971
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
972
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
973
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
974
|
-
transparent: "bg-transparent"
|
|
963
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
964
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
965
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
966
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
967
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
968
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
969
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
970
|
+
transparent: "not-disabled:bg-transparent"
|
|
975
971
|
}[color];
|
|
976
972
|
return /* @__PURE__ */ jsx7(
|
|
977
973
|
"button",
|
|
978
974
|
{
|
|
979
|
-
disabled,
|
|
980
975
|
className: clsx6(
|
|
976
|
+
colorClasses,
|
|
977
|
+
"not-disabled:hover:brightness-90",
|
|
978
|
+
"disabled:text-disabled-text",
|
|
981
979
|
{
|
|
982
|
-
"
|
|
983
|
-
"
|
|
984
|
-
"hover:bg-button-text-hover-background":
|
|
985
|
-
[clsx6(colorClasses, "hover:brightness-90")]: !disabled
|
|
980
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
981
|
+
"disabled:opacity-70": color === "transparent",
|
|
982
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
986
983
|
},
|
|
987
984
|
ButtonUtil.iconPaddingMapping[size],
|
|
988
985
|
className
|
|
@@ -1018,7 +1015,7 @@ var SearchBar = ({
|
|
|
1018
1015
|
};
|
|
1019
1016
|
|
|
1020
1017
|
// src/hooks/useSearch.ts
|
|
1021
|
-
import { useCallback as useCallback4, useEffect as
|
|
1018
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1022
1019
|
|
|
1023
1020
|
// src/util/simpleSearch.ts
|
|
1024
1021
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1052,7 +1049,7 @@ var useSearch = ({
|
|
|
1052
1049
|
}
|
|
1053
1050
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1054
1051
|
}, [searchTags, list, search, searchMapping]);
|
|
1055
|
-
|
|
1052
|
+
useEffect9(() => {
|
|
1056
1053
|
if (isSearchInstant) {
|
|
1057
1054
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1058
1055
|
}
|
|
@@ -1112,7 +1109,7 @@ var Select = ({
|
|
|
1112
1109
|
...searchOptions
|
|
1113
1110
|
});
|
|
1114
1111
|
return /* @__PURE__ */ jsxs7("div", { className: clsx8(className), children: [
|
|
1115
|
-
label && /* @__PURE__ */ jsx9(Label, { ...label, labelType: label.labelType ?? "
|
|
1112
|
+
label && /* @__PURE__ */ jsx9(Label, { ...label, labelType: label.labelType ?? "labelSmall", className: clsx8("mb-1", label.className) }),
|
|
1116
1113
|
/* @__PURE__ */ jsx9(
|
|
1117
1114
|
Menu,
|
|
1118
1115
|
{
|
|
@@ -1123,11 +1120,8 @@ var Select = ({
|
|
|
1123
1120
|
ref,
|
|
1124
1121
|
className: clsx8(
|
|
1125
1122
|
"btn-md justify-between w-full border-2",
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
1129
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
1130
|
-
},
|
|
1123
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
1124
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
1131
1125
|
triggerClassName
|
|
1132
1126
|
),
|
|
1133
1127
|
onClick: toggleOpen,
|
|
@@ -1175,7 +1169,7 @@ var Select = ({
|
|
|
1175
1169
|
};
|
|
1176
1170
|
|
|
1177
1171
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
1178
|
-
import { useEffect as
|
|
1172
|
+
import { useEffect as useEffect11, useRef as useRef3, useState as useState10 } from "react";
|
|
1179
1173
|
import ReactDOM from "react-dom";
|
|
1180
1174
|
import clsx10 from "clsx";
|
|
1181
1175
|
|
|
@@ -1255,7 +1249,7 @@ var Overlay = ({
|
|
|
1255
1249
|
backgroundClassName
|
|
1256
1250
|
}) => {
|
|
1257
1251
|
const [root, setRoot] = useState10();
|
|
1258
|
-
|
|
1252
|
+
useEffect11(() => {
|
|
1259
1253
|
setRoot(document.body);
|
|
1260
1254
|
}, []);
|
|
1261
1255
|
if (!root || !isOpen) return null;
|
|
@@ -1318,7 +1312,7 @@ var Modal = ({
|
|
|
1318
1312
|
headerProps
|
|
1319
1313
|
}) => {
|
|
1320
1314
|
const ref = useRef3(null);
|
|
1321
|
-
|
|
1315
|
+
useEffect11(() => {
|
|
1322
1316
|
if (!isOpen) return;
|
|
1323
1317
|
const modal = ref.current;
|
|
1324
1318
|
if (!modal) {
|
|
@@ -1384,7 +1378,7 @@ var Modal = ({
|
|
|
1384
1378
|
|
|
1385
1379
|
// src/theming/useTheme.tsx
|
|
1386
1380
|
import { useMemo as useMemo2 } from "react";
|
|
1387
|
-
import { createContext as createContext2, useContext as useContext2, useEffect as
|
|
1381
|
+
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect12, useState as useState11 } from "react";
|
|
1388
1382
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1389
1383
|
var themes = ["light", "dark", "system"];
|
|
1390
1384
|
var defaultThemeTypeTranslation = {
|