@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,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
|
}
|
|
@@ -1018,7 +1018,7 @@ var SearchBar = ({
|
|
|
1018
1018
|
};
|
|
1019
1019
|
|
|
1020
1020
|
// src/hooks/useSearch.ts
|
|
1021
|
-
import { useCallback as useCallback4, useEffect as
|
|
1021
|
+
import { useCallback as useCallback4, useEffect as useEffect9, useMemo, useState as useState8 } from "react";
|
|
1022
1022
|
|
|
1023
1023
|
// src/util/simpleSearch.ts
|
|
1024
1024
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -1052,7 +1052,7 @@ var useSearch = ({
|
|
|
1052
1052
|
}
|
|
1053
1053
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
1054
1054
|
}, [searchTags, list, search, searchMapping]);
|
|
1055
|
-
|
|
1055
|
+
useEffect9(() => {
|
|
1056
1056
|
if (isSearchInstant) {
|
|
1057
1057
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
1058
1058
|
}
|
|
@@ -1175,7 +1175,7 @@ var Select = ({
|
|
|
1175
1175
|
};
|
|
1176
1176
|
|
|
1177
1177
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
1178
|
-
import { useEffect as
|
|
1178
|
+
import { useEffect as useEffect11, useRef as useRef3, useState as useState10 } from "react";
|
|
1179
1179
|
import ReactDOM from "react-dom";
|
|
1180
1180
|
import clsx10 from "clsx";
|
|
1181
1181
|
|
|
@@ -1255,7 +1255,7 @@ var Overlay = ({
|
|
|
1255
1255
|
backgroundClassName
|
|
1256
1256
|
}) => {
|
|
1257
1257
|
const [root, setRoot] = useState10();
|
|
1258
|
-
|
|
1258
|
+
useEffect11(() => {
|
|
1259
1259
|
setRoot(document.body);
|
|
1260
1260
|
}, []);
|
|
1261
1261
|
if (!root || !isOpen) return null;
|
|
@@ -1318,7 +1318,7 @@ var Modal = ({
|
|
|
1318
1318
|
headerProps
|
|
1319
1319
|
}) => {
|
|
1320
1320
|
const ref = useRef3(null);
|
|
1321
|
-
|
|
1321
|
+
useEffect11(() => {
|
|
1322
1322
|
if (!isOpen) return;
|
|
1323
1323
|
const modal = ref.current;
|
|
1324
1324
|
if (!modal) {
|