@helpwave/hightide 0.1.23 → 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/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/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/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/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.map +1 -1
- package/dist/components/modals/LanguageModal.mjs +24 -24
- package/dist/components/modals/LanguageModal.mjs.map +1 -1
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.mjs +25 -25
- package/dist/components/modals/ThemeModal.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +2 -2
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +2 -2
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +21 -21
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +2 -2
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +2 -2
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +21 -21
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +6 -6
- 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.js.map +1 -1
- package/dist/components/user-action/MultiSelect.mjs +22 -22
- package/dist/components/user-action/MultiSelect.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.js.map +1 -1
- package/dist/components/user-action/Select.mjs +6 -6
- package/dist/components/user-action/Select.mjs.map +1 -1
- 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 +4 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +79 -82
- 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,12 +1,12 @@
|
|
|
1
1
|
// src/components/user-action/MultiSelect.tsx
|
|
2
2
|
import { useCallback as useCallback5 } from "react";
|
|
3
|
-
import { useEffect as
|
|
3
|
+
import { useEffect as useEffect10, useState as useState10 } from "react";
|
|
4
4
|
|
|
5
5
|
// src/localization/LanguageProvider.tsx
|
|
6
|
-
import { createContext, useContext, useEffect
|
|
6
|
+
import { createContext, useContext, useEffect, useState as useState2 } from "react";
|
|
7
7
|
|
|
8
8
|
// src/hooks/useLocalStorage.ts
|
|
9
|
-
import { useCallback,
|
|
9
|
+
import { useCallback, useState } from "react";
|
|
10
10
|
|
|
11
11
|
// src/localization/util.ts
|
|
12
12
|
var languages = ["en", "de"];
|
|
@@ -428,13 +428,13 @@ var formTranslation = {
|
|
|
428
428
|
};
|
|
429
429
|
|
|
430
430
|
// src/components/user-action/Menu.tsx
|
|
431
|
-
import { useEffect as
|
|
431
|
+
import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
432
432
|
import clsx4 from "clsx";
|
|
433
433
|
|
|
434
434
|
// src/hooks/useOutsideClick.ts
|
|
435
|
-
import { useEffect as
|
|
435
|
+
import { useEffect as useEffect2 } from "react";
|
|
436
436
|
var useOutsideClick = (refs, handler) => {
|
|
437
|
-
|
|
437
|
+
useEffect2(() => {
|
|
438
438
|
const listener = (event) => {
|
|
439
439
|
if (event.target === null) return;
|
|
440
440
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -452,7 +452,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
452
452
|
};
|
|
453
453
|
|
|
454
454
|
// src/hooks/useHoverState.ts
|
|
455
|
-
import { useEffect as
|
|
455
|
+
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
456
456
|
var defaultUseHoverStateProps = {
|
|
457
457
|
closingDelay: 200,
|
|
458
458
|
isDisabled: false
|
|
@@ -476,14 +476,14 @@ var useHoverState = (props = void 0) => {
|
|
|
476
476
|
setIsHovered(false);
|
|
477
477
|
}, closingDelay));
|
|
478
478
|
};
|
|
479
|
-
|
|
479
|
+
useEffect3(() => {
|
|
480
480
|
if (timer) {
|
|
481
481
|
return () => {
|
|
482
482
|
clearTimeout(timer);
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
|
-
|
|
486
|
+
useEffect3(() => {
|
|
487
487
|
if (timer) {
|
|
488
488
|
clearTimeout(timer);
|
|
489
489
|
}
|
|
@@ -596,7 +596,7 @@ var Menu = ({
|
|
|
596
596
|
triggerRef.current?.getBoundingClientRect(),
|
|
597
597
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
598
598
|
);
|
|
599
|
-
|
|
599
|
+
useEffect4(() => {
|
|
600
600
|
if (!isOpen) return;
|
|
601
601
|
const triggerEl = triggerRef.current;
|
|
602
602
|
if (!triggerEl) return;
|
|
@@ -613,7 +613,7 @@ var Menu = ({
|
|
|
613
613
|
window.removeEventListener("resize", close);
|
|
614
614
|
};
|
|
615
615
|
}, [isOpen, setIsOpen]);
|
|
616
|
-
|
|
616
|
+
useEffect4(() => {
|
|
617
617
|
if (isOpen) {
|
|
618
618
|
setIsHidden(false);
|
|
619
619
|
}
|
|
@@ -649,7 +649,7 @@ var Menu = ({
|
|
|
649
649
|
};
|
|
650
650
|
|
|
651
651
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
652
|
-
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as
|
|
652
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect5, useState as useState5 } from "react";
|
|
653
653
|
import { ChevronDown } from "lucide-react";
|
|
654
654
|
import clsx5 from "clsx";
|
|
655
655
|
|
|
@@ -735,7 +735,7 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
735
735
|
...props
|
|
736
736
|
}, ref) {
|
|
737
737
|
const [usedIsExpanded, setUsedIsExpanded] = useState5(isExpanded);
|
|
738
|
-
|
|
738
|
+
useEffect5(() => {
|
|
739
739
|
setUsedIsExpanded(isExpanded);
|
|
740
740
|
}, [isExpanded]);
|
|
741
741
|
return /* @__PURE__ */ jsx6(
|
|
@@ -753,11 +753,11 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
753
753
|
});
|
|
754
754
|
|
|
755
755
|
// src/components/user-action/Input.tsx
|
|
756
|
-
import { forwardRef as forwardRef3, useEffect as
|
|
756
|
+
import { forwardRef as forwardRef3, useEffect as useEffect8, useImperativeHandle, useRef as useRef2, useState as useState7 } from "react";
|
|
757
757
|
import clsx6 from "clsx";
|
|
758
758
|
|
|
759
759
|
// src/hooks/useDelay.ts
|
|
760
|
-
import { useEffect as
|
|
760
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
761
761
|
var defaultOptions = {
|
|
762
762
|
delay: 3e3,
|
|
763
763
|
disabled: false
|
|
@@ -782,12 +782,12 @@ function useDelay(options) {
|
|
|
782
782
|
setTimer(void 0);
|
|
783
783
|
}, delay));
|
|
784
784
|
};
|
|
785
|
-
|
|
785
|
+
useEffect6(() => {
|
|
786
786
|
return () => {
|
|
787
787
|
clearTimeout(timer);
|
|
788
788
|
};
|
|
789
789
|
}, [timer]);
|
|
790
|
-
|
|
790
|
+
useEffect6(() => {
|
|
791
791
|
if (disabled) {
|
|
792
792
|
clearTimeout(timer);
|
|
793
793
|
setTimer(void 0);
|
|
@@ -854,10 +854,10 @@ function useFocusManagement() {
|
|
|
854
854
|
}
|
|
855
855
|
|
|
856
856
|
// src/hooks/useFocusOnceVisible.ts
|
|
857
|
-
import React, { useEffect as
|
|
857
|
+
import React, { useEffect as useEffect7 } from "react";
|
|
858
858
|
var useFocusOnceVisible = (ref, disable = false) => {
|
|
859
859
|
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
860
|
-
|
|
860
|
+
useEffect7(() => {
|
|
861
861
|
if (disable || hasUsedFocus) {
|
|
862
862
|
return;
|
|
863
863
|
}
|
|
@@ -1028,7 +1028,7 @@ var SearchBar = ({
|
|
|
1028
1028
|
};
|
|
1029
1029
|
|
|
1030
1030
|
// src/hooks/useSearch.ts
|
|
1031
|
-
import { useCallback as useCallback4, useEffect as
|
|
1031
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1032
1032
|
|
|
1033
1033
|
// src/util/simpleSearch.ts
|
|
1034
1034
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1062,7 +1062,7 @@ var useSearch = ({
|
|
|
1062
1062
|
}
|
|
1063
1063
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1064
1064
|
}, [searchTags, list, search, searchMapping]);
|
|
1065
|
-
|
|
1065
|
+
useEffect9(() => {
|
|
1066
1066
|
if (isSearchInstant) {
|
|
1067
1067
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1068
1068
|
}
|
|
@@ -1388,7 +1388,7 @@ var MultiSelectUncontrolled = ({
|
|
|
1388
1388
|
...props
|
|
1389
1389
|
}) => {
|
|
1390
1390
|
const [usedOptions, setUsedOptions] = useState10(options);
|
|
1391
|
-
|
|
1391
|
+
useEffect10(() => {
|
|
1392
1392
|
setUsedOptions(options);
|
|
1393
1393
|
}, [options]);
|
|
1394
1394
|
return /* @__PURE__ */ jsx11(
|