@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
|
@@ -3,10 +3,10 @@ import { List, Plus as Plus2 } from "lucide-react";
|
|
|
3
3
|
import clsx12 from "clsx";
|
|
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"];
|
|
@@ -91,7 +91,7 @@ var useTranslation = (translations, overwriteTranslation = {}) => {
|
|
|
91
91
|
|
|
92
92
|
// src/components/user-action/MultiSelect.tsx
|
|
93
93
|
import { useCallback as useCallback5 } from "react";
|
|
94
|
-
import { useEffect as
|
|
94
|
+
import { useEffect as useEffect10, useState as useState10 } from "react";
|
|
95
95
|
import clsx10 from "clsx";
|
|
96
96
|
|
|
97
97
|
// src/components/user-action/Label.tsx
|
|
@@ -500,13 +500,13 @@ var formTranslation = {
|
|
|
500
500
|
};
|
|
501
501
|
|
|
502
502
|
// src/components/user-action/Menu.tsx
|
|
503
|
-
import { useEffect as
|
|
503
|
+
import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
504
504
|
import clsx4 from "clsx";
|
|
505
505
|
|
|
506
506
|
// src/hooks/useOutsideClick.ts
|
|
507
|
-
import { useEffect as
|
|
507
|
+
import { useEffect as useEffect2 } from "react";
|
|
508
508
|
var useOutsideClick = (refs, handler) => {
|
|
509
|
-
|
|
509
|
+
useEffect2(() => {
|
|
510
510
|
const listener = (event) => {
|
|
511
511
|
if (event.target === null) return;
|
|
512
512
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -524,7 +524,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
524
524
|
};
|
|
525
525
|
|
|
526
526
|
// src/hooks/useHoverState.ts
|
|
527
|
-
import { useEffect as
|
|
527
|
+
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
528
528
|
var defaultUseHoverStateProps = {
|
|
529
529
|
closingDelay: 200,
|
|
530
530
|
isDisabled: false
|
|
@@ -548,14 +548,14 @@ var useHoverState = (props = void 0) => {
|
|
|
548
548
|
setIsHovered(false);
|
|
549
549
|
}, closingDelay));
|
|
550
550
|
};
|
|
551
|
-
|
|
551
|
+
useEffect3(() => {
|
|
552
552
|
if (timer) {
|
|
553
553
|
return () => {
|
|
554
554
|
clearTimeout(timer);
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
|
-
|
|
558
|
+
useEffect3(() => {
|
|
559
559
|
if (timer) {
|
|
560
560
|
clearTimeout(timer);
|
|
561
561
|
}
|
|
@@ -668,7 +668,7 @@ var Menu = ({
|
|
|
668
668
|
triggerRef.current?.getBoundingClientRect(),
|
|
669
669
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
670
670
|
);
|
|
671
|
-
|
|
671
|
+
useEffect4(() => {
|
|
672
672
|
if (!isOpen) return;
|
|
673
673
|
const triggerEl = triggerRef.current;
|
|
674
674
|
if (!triggerEl) return;
|
|
@@ -685,7 +685,7 @@ var Menu = ({
|
|
|
685
685
|
window.removeEventListener("resize", close);
|
|
686
686
|
};
|
|
687
687
|
}, [isOpen, setIsOpen]);
|
|
688
|
-
|
|
688
|
+
useEffect4(() => {
|
|
689
689
|
if (isOpen) {
|
|
690
690
|
setIsHidden(false);
|
|
691
691
|
}
|
|
@@ -721,7 +721,7 @@ var Menu = ({
|
|
|
721
721
|
};
|
|
722
722
|
|
|
723
723
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
724
|
-
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as
|
|
724
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect5, useState as useState5 } from "react";
|
|
725
725
|
import { ChevronDown } from "lucide-react";
|
|
726
726
|
import clsx5 from "clsx";
|
|
727
727
|
|
|
@@ -807,7 +807,7 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
807
807
|
...props
|
|
808
808
|
}, ref) {
|
|
809
809
|
const [usedIsExpanded, setUsedIsExpanded] = useState5(isExpanded);
|
|
810
|
-
|
|
810
|
+
useEffect5(() => {
|
|
811
811
|
setUsedIsExpanded(isExpanded);
|
|
812
812
|
}, [isExpanded]);
|
|
813
813
|
return /* @__PURE__ */ jsx6(
|
|
@@ -825,11 +825,11 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
825
825
|
});
|
|
826
826
|
|
|
827
827
|
// src/components/user-action/Input.tsx
|
|
828
|
-
import { forwardRef as forwardRef3, useEffect as
|
|
828
|
+
import { forwardRef as forwardRef3, useEffect as useEffect8, useImperativeHandle, useRef as useRef2, useState as useState7 } from "react";
|
|
829
829
|
import clsx6 from "clsx";
|
|
830
830
|
|
|
831
831
|
// src/hooks/useDelay.ts
|
|
832
|
-
import { useEffect as
|
|
832
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
833
833
|
var defaultOptions = {
|
|
834
834
|
delay: 3e3,
|
|
835
835
|
disabled: false
|
|
@@ -854,12 +854,12 @@ function useDelay(options) {
|
|
|
854
854
|
setTimer(void 0);
|
|
855
855
|
}, delay));
|
|
856
856
|
};
|
|
857
|
-
|
|
857
|
+
useEffect6(() => {
|
|
858
858
|
return () => {
|
|
859
859
|
clearTimeout(timer);
|
|
860
860
|
};
|
|
861
861
|
}, [timer]);
|
|
862
|
-
|
|
862
|
+
useEffect6(() => {
|
|
863
863
|
if (disabled) {
|
|
864
864
|
clearTimeout(timer);
|
|
865
865
|
setTimer(void 0);
|
|
@@ -926,10 +926,10 @@ function useFocusManagement() {
|
|
|
926
926
|
}
|
|
927
927
|
|
|
928
928
|
// src/hooks/useFocusOnceVisible.ts
|
|
929
|
-
import React, { useEffect as
|
|
929
|
+
import React, { useEffect as useEffect7 } from "react";
|
|
930
930
|
var useFocusOnceVisible = (ref, disable = false) => {
|
|
931
931
|
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
932
|
-
|
|
932
|
+
useEffect7(() => {
|
|
933
933
|
if (disable || hasUsedFocus) {
|
|
934
934
|
return;
|
|
935
935
|
}
|
|
@@ -1100,7 +1100,7 @@ var SearchBar = ({
|
|
|
1100
1100
|
};
|
|
1101
1101
|
|
|
1102
1102
|
// src/hooks/useSearch.ts
|
|
1103
|
-
import { useCallback as useCallback4, useEffect as
|
|
1103
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1104
1104
|
|
|
1105
1105
|
// src/util/simpleSearch.ts
|
|
1106
1106
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1134,7 +1134,7 @@ var useSearch = ({
|
|
|
1134
1134
|
}
|
|
1135
1135
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1136
1136
|
}, [searchTags, list, search, searchMapping]);
|
|
1137
|
-
|
|
1137
|
+
useEffect9(() => {
|
|
1138
1138
|
if (isSearchInstant) {
|
|
1139
1139
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1140
1140
|
}
|