@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 } from "lucide-react";
|
|
|
3
3
|
import clsx10 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"];
|
|
@@ -480,7 +480,7 @@ var PropertyBase = ({
|
|
|
480
480
|
|
|
481
481
|
// src/components/user-action/Select.tsx
|
|
482
482
|
import { useCallback as useCallback5 } from "react";
|
|
483
|
-
import { useEffect as
|
|
483
|
+
import { useEffect as useEffect10, useState as useState9 } from "react";
|
|
484
484
|
import clsx9 from "clsx";
|
|
485
485
|
|
|
486
486
|
// src/components/user-action/Label.tsx
|
|
@@ -559,7 +559,7 @@ var ListTile = ({
|
|
|
559
559
|
};
|
|
560
560
|
|
|
561
561
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
562
|
-
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as
|
|
562
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
|
|
563
563
|
import { ChevronDown } from "lucide-react";
|
|
564
564
|
import clsx5 from "clsx";
|
|
565
565
|
|
|
@@ -645,7 +645,7 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
645
645
|
...props
|
|
646
646
|
}, ref) {
|
|
647
647
|
const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
|
|
648
|
-
|
|
648
|
+
useEffect2(() => {
|
|
649
649
|
setUsedIsExpanded(isExpanded);
|
|
650
650
|
}, [isExpanded]);
|
|
651
651
|
return /* @__PURE__ */ jsx6(
|
|
@@ -663,13 +663,13 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
663
663
|
});
|
|
664
664
|
|
|
665
665
|
// src/components/user-action/Menu.tsx
|
|
666
|
-
import { useEffect as
|
|
666
|
+
import { useEffect as useEffect5, useRef, useState as useState5 } from "react";
|
|
667
667
|
import clsx6 from "clsx";
|
|
668
668
|
|
|
669
669
|
// src/hooks/useOutsideClick.ts
|
|
670
|
-
import { useEffect as
|
|
670
|
+
import { useEffect as useEffect3 } from "react";
|
|
671
671
|
var useOutsideClick = (refs, handler) => {
|
|
672
|
-
|
|
672
|
+
useEffect3(() => {
|
|
673
673
|
const listener = (event) => {
|
|
674
674
|
if (event.target === null) return;
|
|
675
675
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -687,7 +687,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
687
687
|
};
|
|
688
688
|
|
|
689
689
|
// src/hooks/useHoverState.ts
|
|
690
|
-
import { useEffect as
|
|
690
|
+
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
691
691
|
var defaultUseHoverStateProps = {
|
|
692
692
|
closingDelay: 200,
|
|
693
693
|
isDisabled: false
|
|
@@ -711,14 +711,14 @@ var useHoverState = (props = void 0) => {
|
|
|
711
711
|
setIsHovered(false);
|
|
712
712
|
}, closingDelay));
|
|
713
713
|
};
|
|
714
|
-
|
|
714
|
+
useEffect4(() => {
|
|
715
715
|
if (timer) {
|
|
716
716
|
return () => {
|
|
717
717
|
clearTimeout(timer);
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
720
|
});
|
|
721
|
-
|
|
721
|
+
useEffect4(() => {
|
|
722
722
|
if (timer) {
|
|
723
723
|
clearTimeout(timer);
|
|
724
724
|
}
|
|
@@ -831,7 +831,7 @@ var Menu = ({
|
|
|
831
831
|
triggerRef.current?.getBoundingClientRect(),
|
|
832
832
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
833
833
|
);
|
|
834
|
-
|
|
834
|
+
useEffect5(() => {
|
|
835
835
|
if (!isOpen) return;
|
|
836
836
|
const triggerEl = triggerRef.current;
|
|
837
837
|
if (!triggerEl) return;
|
|
@@ -848,7 +848,7 @@ var Menu = ({
|
|
|
848
848
|
window.removeEventListener("resize", close);
|
|
849
849
|
};
|
|
850
850
|
}, [isOpen, setIsOpen]);
|
|
851
|
-
|
|
851
|
+
useEffect5(() => {
|
|
852
852
|
if (isOpen) {
|
|
853
853
|
setIsHidden(false);
|
|
854
854
|
}
|
|
@@ -884,11 +884,11 @@ var Menu = ({
|
|
|
884
884
|
};
|
|
885
885
|
|
|
886
886
|
// src/components/user-action/Input.tsx
|
|
887
|
-
import { forwardRef as forwardRef3, useEffect as
|
|
887
|
+
import { forwardRef as forwardRef3, useEffect as useEffect8, useImperativeHandle, useRef as useRef2, useState as useState7 } from "react";
|
|
888
888
|
import clsx7 from "clsx";
|
|
889
889
|
|
|
890
890
|
// src/hooks/useDelay.ts
|
|
891
|
-
import { useEffect as
|
|
891
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
892
892
|
var defaultOptions = {
|
|
893
893
|
delay: 3e3,
|
|
894
894
|
disabled: false
|
|
@@ -913,12 +913,12 @@ function useDelay(options) {
|
|
|
913
913
|
setTimer(void 0);
|
|
914
914
|
}, delay));
|
|
915
915
|
};
|
|
916
|
-
|
|
916
|
+
useEffect6(() => {
|
|
917
917
|
return () => {
|
|
918
918
|
clearTimeout(timer);
|
|
919
919
|
};
|
|
920
920
|
}, [timer]);
|
|
921
|
-
|
|
921
|
+
useEffect6(() => {
|
|
922
922
|
if (disabled) {
|
|
923
923
|
clearTimeout(timer);
|
|
924
924
|
setTimer(void 0);
|
|
@@ -985,10 +985,10 @@ function useFocusManagement() {
|
|
|
985
985
|
}
|
|
986
986
|
|
|
987
987
|
// src/hooks/useFocusOnceVisible.ts
|
|
988
|
-
import React, { useEffect as
|
|
988
|
+
import React, { useEffect as useEffect7 } from "react";
|
|
989
989
|
var useFocusOnceVisible = (ref, disable = false) => {
|
|
990
990
|
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
991
|
-
|
|
991
|
+
useEffect7(() => {
|
|
992
992
|
if (disable || hasUsedFocus) {
|
|
993
993
|
return;
|
|
994
994
|
}
|
|
@@ -1159,7 +1159,7 @@ var SearchBar = ({
|
|
|
1159
1159
|
};
|
|
1160
1160
|
|
|
1161
1161
|
// src/hooks/useSearch.ts
|
|
1162
|
-
import { useCallback as useCallback4, useEffect as
|
|
1162
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1163
1163
|
|
|
1164
1164
|
// src/util/simpleSearch.ts
|
|
1165
1165
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1193,7 +1193,7 @@ var useSearch = ({
|
|
|
1193
1193
|
}
|
|
1194
1194
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1195
1195
|
}, [searchTags, list, search, searchMapping]);
|
|
1196
|
-
|
|
1196
|
+
useEffect9(() => {
|
|
1197
1197
|
if (isSearchInstant) {
|
|
1198
1198
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1199
1199
|
}
|