@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.
Files changed (115) hide show
  1. package/dist/components/date/DatePicker.js.map +1 -1
  2. package/dist/components/date/DatePicker.mjs +10 -10
  3. package/dist/components/date/DatePicker.mjs.map +1 -1
  4. package/dist/components/date/DayPicker.js.map +1 -1
  5. package/dist/components/date/DayPicker.mjs +4 -4
  6. package/dist/components/date/DayPicker.mjs.map +1 -1
  7. package/dist/components/date/TimeDisplay.js.map +1 -1
  8. package/dist/components/date/TimeDisplay.mjs +2 -2
  9. package/dist/components/date/TimeDisplay.mjs.map +1 -1
  10. package/dist/components/date/YearMonthPicker.js.map +1 -1
  11. package/dist/components/date/YearMonthPicker.mjs +5 -5
  12. package/dist/components/date/YearMonthPicker.mjs.map +1 -1
  13. package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
  14. package/dist/components/dialogs/ConfirmDialog.mjs +8 -8
  15. package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
  16. package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
  17. package/dist/components/layout-and-navigation/Overlay.mjs +6 -6
  18. package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
  19. package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
  20. package/dist/components/layout-and-navigation/Pagination.mjs +10 -10
  21. package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
  22. package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
  23. package/dist/components/layout-and-navigation/SearchableList.mjs +10 -10
  24. package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
  25. package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
  26. package/dist/components/layout-and-navigation/StepperBar.mjs +4 -4
  27. package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
  28. package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
  29. package/dist/components/layout-and-navigation/TextImage.mjs +2 -2
  30. package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
  31. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  32. package/dist/components/loading-states/ErrorComponent.mjs +2 -2
  33. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
  34. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  35. package/dist/components/loading-states/LoadingAnimation.mjs +2 -2
  36. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
  37. package/dist/components/modals/ConfirmModal.js.map +1 -1
  38. package/dist/components/modals/ConfirmModal.mjs +8 -8
  39. package/dist/components/modals/ConfirmModal.mjs.map +1 -1
  40. package/dist/components/modals/DiscardChangesModal.js.map +1 -1
  41. package/dist/components/modals/DiscardChangesModal.mjs +8 -8
  42. package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
  43. package/dist/components/modals/InputModal.js.map +1 -1
  44. package/dist/components/modals/InputModal.mjs +8 -8
  45. package/dist/components/modals/InputModal.mjs.map +1 -1
  46. package/dist/components/modals/LanguageModal.js.map +1 -1
  47. package/dist/components/modals/LanguageModal.mjs +24 -24
  48. package/dist/components/modals/LanguageModal.mjs.map +1 -1
  49. package/dist/components/modals/ThemeModal.js.map +1 -1
  50. package/dist/components/modals/ThemeModal.mjs +25 -25
  51. package/dist/components/modals/ThemeModal.mjs.map +1 -1
  52. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  53. package/dist/components/properties/CheckboxProperty.mjs +2 -2
  54. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  55. package/dist/components/properties/DateProperty.js.map +1 -1
  56. package/dist/components/properties/DateProperty.mjs +2 -2
  57. package/dist/components/properties/DateProperty.mjs.map +1 -1
  58. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  59. package/dist/components/properties/MultiSelectProperty.mjs +21 -21
  60. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  61. package/dist/components/properties/NumberProperty.js.map +1 -1
  62. package/dist/components/properties/NumberProperty.mjs +2 -2
  63. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  64. package/dist/components/properties/PropertyBase.js.map +1 -1
  65. package/dist/components/properties/PropertyBase.mjs +2 -2
  66. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  67. package/dist/components/properties/SelectProperty.js.map +1 -1
  68. package/dist/components/properties/SelectProperty.mjs +21 -21
  69. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  70. package/dist/components/properties/TextProperty.js.map +1 -1
  71. package/dist/components/properties/TextProperty.mjs +6 -6
  72. package/dist/components/properties/TextProperty.mjs.map +1 -1
  73. package/dist/components/table/Table.js.map +1 -1
  74. package/dist/components/table/Table.mjs +26 -26
  75. package/dist/components/table/Table.mjs.map +1 -1
  76. package/dist/components/table/TableFilterButton.js.map +1 -1
  77. package/dist/components/table/TableFilterButton.mjs +4 -4
  78. package/dist/components/table/TableFilterButton.mjs.map +1 -1
  79. package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
  80. package/dist/components/user-action/CopyToClipboardWrapper.mjs +2 -2
  81. package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
  82. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  83. package/dist/components/user-action/DateAndTimePicker.mjs +12 -12
  84. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  85. package/dist/components/user-action/MultiSelect.js.map +1 -1
  86. package/dist/components/user-action/MultiSelect.mjs +22 -22
  87. package/dist/components/user-action/MultiSelect.mjs.map +1 -1
  88. package/dist/components/user-action/SearchBar.js.map +1 -1
  89. package/dist/components/user-action/SearchBar.mjs +2 -2
  90. package/dist/components/user-action/SearchBar.mjs.map +1 -1
  91. package/dist/components/user-action/Select.js.map +1 -1
  92. package/dist/components/user-action/Select.mjs +6 -6
  93. package/dist/components/user-action/Select.mjs.map +1 -1
  94. package/dist/css/uncompiled/theme/index.css +1 -2
  95. package/dist/hooks/useLocalStorage.js +1 -3
  96. package/dist/hooks/useLocalStorage.js.map +1 -1
  97. package/dist/hooks/useLocalStorage.mjs +3 -4
  98. package/dist/hooks/useLocalStorage.mjs.map +1 -1
  99. package/dist/index.js +4 -7
  100. package/dist/index.js.map +1 -1
  101. package/dist/index.mjs +79 -82
  102. package/dist/index.mjs.map +1 -1
  103. package/dist/localization/LanguageProvider.js +0 -3
  104. package/dist/localization/LanguageProvider.js.map +1 -1
  105. package/dist/localization/LanguageProvider.mjs +5 -8
  106. package/dist/localization/LanguageProvider.mjs.map +1 -1
  107. package/dist/localization/useTranslation.js.map +1 -1
  108. package/dist/localization/useTranslation.mjs +2 -2
  109. package/dist/localization/useTranslation.mjs.map +1 -1
  110. package/dist/theming/useTheme.js +4 -7
  111. package/dist/theming/useTheme.js.map +1 -1
  112. package/dist/theming/useTheme.mjs +9 -12
  113. package/dist/theming/useTheme.mjs.map +1 -1
  114. package/package.json +1 -1
  115. package/dist/css/uncompiled/theme/theme.css +0 -0
package/dist/index.mjs CHANGED
@@ -5805,14 +5805,14 @@ var HelpwaveBadge = ({
5805
5805
  };
5806
5806
 
5807
5807
  // src/components/date/DatePicker.tsx
5808
- import { useEffect as useEffect6, useState as useState6 } from "react";
5808
+ import { useEffect as useEffect5, useState as useState6 } from "react";
5809
5809
  import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2 } from "lucide-react";
5810
5810
 
5811
5811
  // src/localization/LanguageProvider.tsx
5812
- import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
5812
+ import { createContext, useContext, useEffect, useState as useState2 } from "react";
5813
5813
 
5814
5814
  // src/hooks/useLocalStorage.ts
5815
- import { useCallback, useEffect, useState } from "react";
5815
+ import { useCallback, useState } from "react";
5816
5816
 
5817
5817
  // src/util/storage.ts
5818
5818
  var StorageService = class {
@@ -5870,9 +5870,6 @@ var useLocalStorage = (key, initValue) => {
5870
5870
  storageService.set(key, newValue);
5871
5871
  setStoredValue(newValue);
5872
5872
  }, [storedValue, setStoredValue, key]);
5873
- useEffect(() => {
5874
- setStoredValue(get());
5875
- }, []);
5876
5873
  return [storedValue, setValue];
5877
5874
  };
5878
5875
 
@@ -5907,17 +5904,17 @@ var useLocale = (overWriteLanguage) => {
5907
5904
  var LanguageProvider = ({ initialLanguage, children }) => {
5908
5905
  const [language, setLanguage] = useState2(initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
5909
5906
  const [storedLanguage, setStoredLanguage] = useLocalStorage("language", initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
5910
- useEffect2(() => {
5907
+ useEffect(() => {
5911
5908
  if (language !== initialLanguage && initialLanguage) {
5912
5909
  console.warn("LanguageProvider initial state changed: Prefer using languageProvider's setLanguage instead");
5913
5910
  setLanguage(initialLanguage);
5914
5911
  }
5915
5912
  }, [initialLanguage]);
5916
- useEffect2(() => {
5913
+ useEffect(() => {
5917
5914
  document.documentElement.setAttribute("lang", language);
5918
5915
  setStoredLanguage(language);
5919
5916
  }, [language]);
5920
- useEffect2(() => {
5917
+ useEffect(() => {
5921
5918
  if (storedLanguage !== null) {
5922
5919
  setLanguage(storedLanguage);
5923
5920
  return;
@@ -6505,12 +6502,12 @@ var IconButton = ({
6505
6502
  };
6506
6503
 
6507
6504
  // src/components/date/YearMonthPicker.tsx
6508
- import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
6505
+ import { useEffect as useEffect3, useRef, useState as useState4 } from "react";
6509
6506
  import { Scrollbars } from "react-custom-scrollbars-2";
6510
6507
  import clsx6 from "clsx";
6511
6508
 
6512
6509
  // src/components/layout-and-navigation/Expandable.tsx
6513
- import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect3, useState as useState3 } from "react";
6510
+ import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
6514
6511
  import { ChevronDown } from "lucide-react";
6515
6512
  import clsx5 from "clsx";
6516
6513
  import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
@@ -6591,7 +6588,7 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
6591
6588
  ...props
6592
6589
  }, ref) {
6593
6590
  const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
6594
- useEffect3(() => {
6591
+ useEffect2(() => {
6595
6592
  setUsedIsExpanded(isExpanded);
6596
6593
  }, [isExpanded]);
6597
6594
  return /* @__PURE__ */ jsx6(
@@ -6621,7 +6618,7 @@ var YearMonthPicker = ({
6621
6618
  }) => {
6622
6619
  const locale = useLocale();
6623
6620
  const ref = useRef(null);
6624
- useEffect4(() => {
6621
+ useEffect3(() => {
6625
6622
  const scrollToItem = () => {
6626
6623
  if (ref.current) {
6627
6624
  ref.current.scrollIntoView({
@@ -6681,7 +6678,7 @@ var YearMonthPickerUncontrolled = ({
6681
6678
  ...props
6682
6679
  }) => {
6683
6680
  const [yearMonth, setYearMonth] = useState4(displayedYearMonth ?? /* @__PURE__ */ new Date());
6684
- useEffect4(() => setYearMonth(displayedYearMonth), [displayedYearMonth]);
6681
+ useEffect3(() => setYearMonth(displayedYearMonth), [displayedYearMonth]);
6685
6682
  return /* @__PURE__ */ jsx7(
6686
6683
  YearMonthPicker,
6687
6684
  {
@@ -6697,7 +6694,7 @@ var YearMonthPickerUncontrolled = ({
6697
6694
 
6698
6695
  // src/components/date/DayPicker.tsx
6699
6696
  import clsx7 from "clsx";
6700
- import { useEffect as useEffect5, useState as useState5 } from "react";
6697
+ import { useEffect as useEffect4, useState as useState5 } from "react";
6701
6698
  import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
6702
6699
  var DayPicker = ({
6703
6700
  displayedMonth,
@@ -6751,7 +6748,7 @@ var DayPickerUncontrolled = ({
6751
6748
  }) => {
6752
6749
  const [date, setDate] = useState5(selected);
6753
6750
  const [usedDisplayedMonth, setUsedDDisplayedMonth] = useState5(displayedMonth);
6754
- useEffect5(() => {
6751
+ useEffect4(() => {
6755
6752
  setDate(selected);
6756
6753
  setUsedDDisplayedMonth(selected);
6757
6754
  }, [selected]);
@@ -6859,7 +6856,7 @@ var DatePicker = ({
6859
6856
  const translation = useTranslation([timeTranslation], overwriteTranslation);
6860
6857
  const [displayedMonth, setDisplayedMonth] = useState6(value);
6861
6858
  const [displayMode, setDisplayMode] = useState6(initialDisplay);
6862
- useEffect6(() => {
6859
+ useEffect5(() => {
6863
6860
  setDisplayedMonth(value);
6864
6861
  }, [value]);
6865
6862
  return /* @__PURE__ */ jsxs6("div", { className: clsx8("flex-col-4", className), children: [
@@ -6951,7 +6948,7 @@ var DatePickerUncontrolled = ({
6951
6948
  ...props
6952
6949
  }) => {
6953
6950
  const [date, setDate] = useState6(value);
6954
- useEffect6(() => setDate(value), [value]);
6951
+ useEffect5(() => setDate(value), [value]);
6955
6952
  return /* @__PURE__ */ jsx9(
6956
6953
  DatePicker,
6957
6954
  {
@@ -7020,7 +7017,7 @@ var TimeDisplay = ({
7020
7017
  };
7021
7018
 
7022
7019
  // src/components/date/TimePicker.tsx
7023
- import { useEffect as useEffect7, useRef as useRef2, useState as useState7 } from "react";
7020
+ import { useEffect as useEffect6, useRef as useRef2, useState as useState7 } from "react";
7024
7021
  import { Scrollbars as Scrollbars2 } from "react-custom-scrollbars-2";
7025
7022
  import clsx9 from "clsx";
7026
7023
  import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
@@ -7037,7 +7034,7 @@ var TimePicker = ({
7037
7034
  const isPM = time.getHours() >= 11;
7038
7035
  const hours = is24HourFormat ? range(24) : range([1, 12], { exclusiveEnd: false });
7039
7036
  let minutes = range(60);
7040
- useEffect7(() => {
7037
+ useEffect6(() => {
7041
7038
  const scrollToItem = () => {
7042
7039
  if (minuteRef.current) {
7043
7040
  const container = minuteRef.current.parentElement;
@@ -7052,7 +7049,7 @@ var TimePicker = ({
7052
7049
  };
7053
7050
  scrollToItem();
7054
7051
  }, [minuteRef, minuteRef.current]);
7055
- useEffect7(() => {
7052
+ useEffect6(() => {
7056
7053
  const scrollToItem = () => {
7057
7054
  if (hourRef.current) {
7058
7055
  const container = hourRef.current.parentElement;
@@ -7144,7 +7141,7 @@ var TimePickerUncontrolled = ({
7144
7141
  ...props
7145
7142
  }) => {
7146
7143
  const [value, setValue] = useState7(time);
7147
- useEffect7(() => setValue(time), [time]);
7144
+ useEffect6(() => setValue(time), [time]);
7148
7145
  return /* @__PURE__ */ jsx11(
7149
7146
  TimePicker,
7150
7147
  {
@@ -7162,12 +7159,12 @@ var TimePickerUncontrolled = ({
7162
7159
  import clsx12 from "clsx";
7163
7160
 
7164
7161
  // src/components/layout-and-navigation/Overlay.tsx
7165
- import { useEffect as useEffect9, useRef as useRef3, useState as useState9 } from "react";
7162
+ import { useEffect as useEffect8, useRef as useRef3, useState as useState9 } from "react";
7166
7163
  import ReactDOM from "react-dom";
7167
7164
  import clsx11 from "clsx";
7168
7165
 
7169
7166
  // src/hooks/useHoverState.ts
7170
- import { useEffect as useEffect8, useState as useState8 } from "react";
7167
+ import { useEffect as useEffect7, useState as useState8 } from "react";
7171
7168
  var defaultUseHoverStateProps = {
7172
7169
  closingDelay: 200,
7173
7170
  isDisabled: false
@@ -7191,14 +7188,14 @@ var useHoverState = (props = void 0) => {
7191
7188
  setIsHovered(false);
7192
7189
  }, closingDelay));
7193
7190
  };
7194
- useEffect8(() => {
7191
+ useEffect7(() => {
7195
7192
  if (timer) {
7196
7193
  return () => {
7197
7194
  clearTimeout(timer);
7198
7195
  };
7199
7196
  }
7200
7197
  });
7201
- useEffect8(() => {
7198
+ useEffect7(() => {
7202
7199
  if (timer) {
7203
7200
  clearTimeout(timer);
7204
7201
  }
@@ -7404,7 +7401,7 @@ var Overlay = ({
7404
7401
  backgroundClassName
7405
7402
  }) => {
7406
7403
  const [root, setRoot] = useState9();
7407
- useEffect9(() => {
7404
+ useEffect8(() => {
7408
7405
  setRoot(document.body);
7409
7406
  }, []);
7410
7407
  if (!root || !isOpen) return null;
@@ -7467,7 +7464,7 @@ var Modal = ({
7467
7464
  headerProps
7468
7465
  }) => {
7469
7466
  const ref = useRef3(null);
7470
- useEffect9(() => {
7467
+ useEffect8(() => {
7471
7468
  if (!isOpen) return;
7472
7469
  const modal = ref.current;
7473
7470
  if (!modal) {
@@ -7538,7 +7535,7 @@ var Dialog = ({
7538
7535
  headerProps
7539
7536
  }) => {
7540
7537
  const ref = useRef3(null);
7541
- useEffect9(() => {
7538
+ useEffect8(() => {
7542
7539
  if (!isOpen) return;
7543
7540
  const dialog = ref.current;
7544
7541
  if (!dialog) {
@@ -7787,7 +7784,7 @@ var Circle = ({
7787
7784
  };
7788
7785
 
7789
7786
  // src/components/icons-and-geometry/Ring.tsx
7790
- import { useCallback as useCallback3, useEffect as useEffect10, useState as useState11 } from "react";
7787
+ import { useCallback as useCallback3, useEffect as useEffect9, useState as useState11 } from "react";
7791
7788
  import clsx15 from "clsx";
7792
7789
  import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
7793
7790
  var Ring = ({
@@ -7832,7 +7829,7 @@ var AnimatedRing = ({
7832
7829
  }
7833
7830
  }
7834
7831
  }, [milliseconds, onAnimationFinished, repeating, width]);
7835
- useEffect10(() => {
7832
+ useEffect9(() => {
7836
7833
  if (currentWidth < width) {
7837
7834
  requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
7838
7835
  }
@@ -7887,7 +7884,7 @@ var RingWave = ({
7887
7884
  }
7888
7885
  }
7889
7886
  }, [distance, endInnerSize, milliseconds, onAnimationFinished, repeating, startInnerSize]);
7890
- useEffect10(() => {
7887
+ useEffect9(() => {
7891
7888
  if (currentInnerSize < endInnerSize) {
7892
7889
  requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
7893
7890
  }
@@ -8094,7 +8091,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
8094
8091
  };
8095
8092
 
8096
8093
  // src/components/layout-and-navigation/Carousel.tsx
8097
- import { useCallback as useCallback4, useEffect as useEffect11, useMemo as useMemo2, useRef as useRef4, useState as useState12 } from "react";
8094
+ import { useCallback as useCallback4, useEffect as useEffect10, useMemo as useMemo2, useRef as useRef4, useState as useState12 } from "react";
8098
8095
  import clsx17 from "clsx";
8099
8096
  import { ChevronLeft, ChevronRight } from "lucide-react";
8100
8097
 
@@ -8287,7 +8284,7 @@ var Carousel = ({
8287
8284
  animationId.current = requestAnimationFrame((time1) => animation(time1));
8288
8285
  }
8289
8286
  }, [animationTime, autoLoopAnimationTime, util]);
8290
- useEffect11(() => {
8287
+ useEffect10(() => {
8291
8288
  if (animationState) {
8292
8289
  animationId.current = requestAnimationFrame(animation);
8293
8290
  }
@@ -8309,7 +8306,7 @@ var Carousel = ({
8309
8306
  isAutoLooping: true
8310
8307
  }
8311
8308
  }));
8312
- useEffect11(() => {
8309
+ useEffect10(() => {
8313
8310
  if (!animationId.current && !animationState && !dragState && !timeOut.current) {
8314
8311
  if (autoLoopingTimeOut > 0) {
8315
8312
  timeOut.current = setTimeout(() => {
@@ -8864,11 +8861,11 @@ import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft2, ChevronRight as
8864
8861
  import clsx23 from "clsx";
8865
8862
 
8866
8863
  // src/components/user-action/Input.tsx
8867
- import { forwardRef as forwardRef3, useEffect as useEffect14, useImperativeHandle, useRef as useRef5, useState as useState14 } from "react";
8864
+ import { forwardRef as forwardRef3, useEffect as useEffect13, useImperativeHandle, useRef as useRef5, useState as useState14 } from "react";
8868
8865
  import clsx22 from "clsx";
8869
8866
 
8870
8867
  // src/hooks/useDelay.ts
8871
- import { useEffect as useEffect12, useState as useState13 } from "react";
8868
+ import { useEffect as useEffect11, useState as useState13 } from "react";
8872
8869
  var defaultOptions = {
8873
8870
  delay: 3e3,
8874
8871
  disabled: false
@@ -8893,12 +8890,12 @@ function useDelay(options) {
8893
8890
  setTimer(void 0);
8894
8891
  }, delay));
8895
8892
  };
8896
- useEffect12(() => {
8893
+ useEffect11(() => {
8897
8894
  return () => {
8898
8895
  clearTimeout(timer);
8899
8896
  };
8900
8897
  }, [timer]);
8901
- useEffect12(() => {
8898
+ useEffect11(() => {
8902
8899
  if (disabled) {
8903
8900
  clearTimeout(timer);
8904
8901
  setTimer(void 0);
@@ -8983,10 +8980,10 @@ function useFocusManagement() {
8983
8980
  }
8984
8981
 
8985
8982
  // src/hooks/useFocusOnceVisible.ts
8986
- import React2, { useEffect as useEffect13 } from "react";
8983
+ import React2, { useEffect as useEffect12 } from "react";
8987
8984
  var useFocusOnceVisible = (ref, disable = false) => {
8988
8985
  const [hasUsedFocus, setHasUsedFocus] = React2.useState(false);
8989
- useEffect13(() => {
8986
+ useEffect12(() => {
8990
8987
  if (disable || hasUsedFocus) {
8991
8988
  return;
8992
8989
  }
@@ -9103,7 +9100,7 @@ var InputUncontrolled = ({
9103
9100
  ...props
9104
9101
  }) => {
9105
9102
  const [usedValue, setUsedValue] = useState14(value);
9106
- useEffect14(() => {
9103
+ useEffect13(() => {
9107
9104
  setUsedValue(value);
9108
9105
  }, [value]);
9109
9106
  return /* @__PURE__ */ jsx26(
@@ -9154,7 +9151,7 @@ var FormInput = forwardRef3(function FormInput2({
9154
9151
  });
9155
9152
 
9156
9153
  // src/components/layout-and-navigation/Pagination.tsx
9157
- import { useEffect as useEffect15, useState as useState15 } from "react";
9154
+ import { useEffect as useEffect14, useState as useState15 } from "react";
9158
9155
  import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
9159
9156
  var Pagination = ({
9160
9157
  overwriteTranslation,
@@ -9169,7 +9166,7 @@ var Pagination = ({
9169
9166
  const noPages = pageCount === 0;
9170
9167
  const onFirstPage = pageIndex === 0 && !noPages;
9171
9168
  const onLastPage = pageIndex === pageCount - 1;
9172
- useEffect15(() => {
9169
+ useEffect14(() => {
9173
9170
  if (noPages) {
9174
9171
  setValue("0");
9175
9172
  } else {
@@ -9227,7 +9224,7 @@ import { Search } from "lucide-react";
9227
9224
  import clsx24 from "clsx";
9228
9225
 
9229
9226
  // src/hooks/useSearch.ts
9230
- import { useCallback as useCallback6, useEffect as useEffect16, useMemo as useMemo3, useState as useState16 } from "react";
9227
+ import { useCallback as useCallback6, useEffect as useEffect15, useMemo as useMemo3, useState as useState16 } from "react";
9231
9228
 
9232
9229
  // src/util/simpleSearch.ts
9233
9230
  var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
@@ -9276,7 +9273,7 @@ var useSearch = ({
9276
9273
  }
9277
9274
  setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
9278
9275
  }, [searchTags, list, search, searchMapping]);
9279
- useEffect16(() => {
9276
+ useEffect15(() => {
9280
9277
  if (isSearchInstant) {
9281
9278
  setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
9282
9279
  }
@@ -9353,7 +9350,7 @@ var SearchableList = ({
9353
9350
  // src/components/layout-and-navigation/StepperBar.tsx
9354
9351
  import { Check as Check2, ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
9355
9352
  import clsx25 from "clsx";
9356
- import { useEffect as useEffect17, useState as useState17 } from "react";
9353
+ import { useEffect as useEffect16, useState as useState17 } from "react";
9357
9354
  import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
9358
9355
  var defaultState = {
9359
9356
  currentStep: 0,
@@ -9448,7 +9445,7 @@ var StepperBar = ({
9448
9445
  };
9449
9446
  var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
9450
9447
  const [usedState, setUsedState] = useState17(state ?? defaultState);
9451
- useEffect17(() => {
9448
+ useEffect16(() => {
9452
9449
  setUsedState(state ?? defaultState);
9453
9450
  }, [state]);
9454
9451
  return /* @__PURE__ */ jsx29(
@@ -9819,17 +9816,17 @@ var InputModal = ({
9819
9816
 
9820
9817
  // src/components/user-action/Select.tsx
9821
9818
  import { useCallback as useCallback7 } from "react";
9822
- import { useEffect as useEffect20, useState as useState20 } from "react";
9819
+ import { useEffect as useEffect19, useState as useState20 } from "react";
9823
9820
  import clsx35 from "clsx";
9824
9821
 
9825
9822
  // src/components/user-action/Menu.tsx
9826
- import { useEffect as useEffect19, useRef as useRef6, useState as useState19 } from "react";
9823
+ import { useEffect as useEffect18, useRef as useRef6, useState as useState19 } from "react";
9827
9824
  import clsx33 from "clsx";
9828
9825
 
9829
9826
  // src/hooks/useOutsideClick.ts
9830
- import { useEffect as useEffect18 } from "react";
9827
+ import { useEffect as useEffect17 } from "react";
9831
9828
  var useOutsideClick = (refs, handler) => {
9832
- useEffect18(() => {
9829
+ useEffect17(() => {
9833
9830
  const listener = (event) => {
9834
9831
  if (event.target === null) return;
9835
9832
  if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
@@ -9967,7 +9964,7 @@ var Menu = ({
9967
9964
  triggerRef.current?.getBoundingClientRect(),
9968
9965
  { verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
9969
9966
  );
9970
- useEffect19(() => {
9967
+ useEffect18(() => {
9971
9968
  if (!isOpen) return;
9972
9969
  const triggerEl = triggerRef.current;
9973
9970
  if (!triggerEl) return;
@@ -9984,7 +9981,7 @@ var Menu = ({
9984
9981
  window.removeEventListener("resize", close);
9985
9982
  };
9986
9983
  }, [isOpen, setIsOpen]);
9987
- useEffect19(() => {
9984
+ useEffect18(() => {
9988
9985
  if (isOpen) {
9989
9986
  setIsHidden(false);
9990
9987
  }
@@ -10139,7 +10136,7 @@ var SelectUncontrolled = ({
10139
10136
  ...props
10140
10137
  }) => {
10141
10138
  const [selected, setSelected] = useState20(value);
10142
- useEffect20(() => {
10139
+ useEffect19(() => {
10143
10140
  if (options.find((options2) => options2.value === value)) {
10144
10141
  setSelected(value);
10145
10142
  }
@@ -10212,7 +10209,7 @@ var LanguageModal = ({
10212
10209
 
10213
10210
  // src/theming/useTheme.tsx
10214
10211
  import { useMemo as useMemo4 } from "react";
10215
- import { createContext as createContext2, useContext as useContext2, useEffect as useEffect21, useState as useState21 } from "react";
10212
+ import { createContext as createContext2, useContext as useContext2, useEffect as useEffect20, useState as useState21 } from "react";
10216
10213
  import { jsx as jsx45 } from "react/jsx-runtime";
10217
10214
  var themes = ["light", "dark", "system"];
10218
10215
  var defaultThemeTypeTranslation = {
@@ -10243,24 +10240,24 @@ var ThemeContext = createContext2({
10243
10240
  theme: "light",
10244
10241
  setTheme: noop
10245
10242
  });
10246
- var ThemeProvider = ({ children, initialTheme = "system" }) => {
10247
- const [storedTheme, setStoredTheme] = useLocalStorage("theme", initialTheme);
10243
+ var ThemeProvider = ({ children, initialTheme }) => {
10244
+ const [storedTheme, setStoredTheme] = useLocalStorage("theme", initialTheme ?? "system");
10248
10245
  const [userTheme, setUserTheme] = useState21();
10249
- useEffect21(() => {
10250
- if (storedTheme !== initialTheme) {
10246
+ useEffect20(() => {
10247
+ if (!!initialTheme && storedTheme !== initialTheme) {
10251
10248
  console.warn("ThemeProvider initial state changed: Prefer using useTheme's setTheme instead");
10252
10249
  setStoredTheme(initialTheme);
10253
10250
  }
10254
10251
  }, [initialTheme]);
10255
10252
  const usedTheme = useMemo4(() => storedTheme !== "system" ? storedTheme : userTheme, [storedTheme, userTheme]);
10256
- useEffect21(() => {
10253
+ useEffect20(() => {
10257
10254
  document.documentElement.setAttribute("data-theme", usedTheme);
10258
10255
  }, [usedTheme]);
10259
- useEffect21(() => {
10256
+ useEffect20(() => {
10260
10257
  const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
10261
10258
  setUserTheme(prefersDark ? "dark" : "light");
10262
10259
  }, []);
10263
- return /* @__PURE__ */ jsx45(ThemeContext.Provider, { value: { theme: storedTheme, setTheme: setStoredTheme }, children });
10260
+ return /* @__PURE__ */ jsx45(ThemeContext.Provider, { value: { theme: usedTheme, setTheme: setStoredTheme }, children });
10264
10261
  };
10265
10262
  var useTheme = () => useContext2(ThemeContext);
10266
10263
 
@@ -10547,7 +10544,7 @@ import clsx40 from "clsx";
10547
10544
 
10548
10545
  // src/components/user-action/MultiSelect.tsx
10549
10546
  import { useCallback as useCallback8 } from "react";
10550
- import { useEffect as useEffect22, useState as useState23 } from "react";
10547
+ import { useEffect as useEffect21, useState as useState23 } from "react";
10551
10548
  import clsx39 from "clsx";
10552
10549
  import { Plus } from "lucide-react";
10553
10550
  import { Fragment as Fragment6, jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
@@ -10717,7 +10714,7 @@ var MultiSelectUncontrolled = ({
10717
10714
  ...props
10718
10715
  }) => {
10719
10716
  const [usedOptions, setUsedOptions] = useState23(options);
10720
- useEffect22(() => {
10717
+ useEffect21(() => {
10721
10718
  setUsedOptions(options);
10722
10719
  }, [options]);
10723
10720
  return /* @__PURE__ */ jsx51(
@@ -10945,7 +10942,7 @@ import { Text } from "lucide-react";
10945
10942
  import clsx44 from "clsx";
10946
10943
 
10947
10944
  // src/components/user-action/Textarea.tsx
10948
- import { useEffect as useEffect23, useState as useState24 } from "react";
10945
+ import { useEffect as useEffect22, useState as useState24 } from "react";
10949
10946
  import clsx43 from "clsx";
10950
10947
  import { jsx as jsx55, jsxs as jsxs36 } from "react/jsx-runtime";
10951
10948
  var Textarea = ({
@@ -11035,7 +11032,7 @@ var TextareaUncontrolled = ({
11035
11032
  ...props
11036
11033
  }) => {
11037
11034
  const [text, setText] = useState24(value);
11038
- useEffect23(() => {
11035
+ useEffect22(() => {
11039
11036
  setText(value);
11040
11037
  }, [value]);
11041
11038
  return /* @__PURE__ */ jsx55(
@@ -11132,7 +11129,7 @@ var TableFilters = {
11132
11129
  };
11133
11130
 
11134
11131
  // src/components/table/Table.tsx
11135
- import { useCallback as useCallback9, useEffect as useEffect26, useMemo as useMemo5, useRef as useRef7, useState as useState26 } from "react";
11132
+ import { useCallback as useCallback9, useEffect as useEffect25, useMemo as useMemo5, useRef as useRef7, useState as useState26 } from "react";
11136
11133
  import clsx48 from "clsx";
11137
11134
  import {
11138
11135
  flexRender,
@@ -11146,7 +11143,7 @@ import { Scrollbars as Scrollbars3 } from "react-custom-scrollbars-2";
11146
11143
 
11147
11144
  // src/components/table/TableFilterButton.tsx
11148
11145
  import { FilterIcon } from "lucide-react";
11149
- import { useEffect as useEffect24, useState as useState25 } from "react";
11146
+ import { useEffect as useEffect23, useState as useState25 } from "react";
11150
11147
  import { Fragment as Fragment7, jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
11151
11148
  var defaultTableFilterTranslation = {
11152
11149
  en: {
@@ -11174,7 +11171,7 @@ var TableFilterButton = ({
11174
11171
  const columnFilterValue = column.getFilterValue();
11175
11172
  const [filterValue, setFilterValue] = useState25(columnFilterValue);
11176
11173
  const hasFilter = !!filterValue;
11177
- useEffect24(() => {
11174
+ useEffect23(() => {
11178
11175
  setFilterValue(columnFilterValue);
11179
11176
  }, [columnFilterValue]);
11180
11177
  return /* @__PURE__ */ jsx58(
@@ -11306,9 +11303,9 @@ var TableSortButton = ({
11306
11303
  };
11307
11304
 
11308
11305
  // src/hooks/useResizeCallbackWrapper.ts
11309
- import { useEffect as useEffect25 } from "react";
11306
+ import { useEffect as useEffect24 } from "react";
11310
11307
  var useResizeCallbackWrapper = (callback) => {
11311
- useEffect25(() => {
11308
+ useEffect24(() => {
11312
11309
  window.addEventListener("resize", callback);
11313
11310
  return () => {
11314
11311
  window.removeEventListener("resize", callback);
@@ -11495,7 +11492,7 @@ var Table = ({
11495
11492
  ...tableOptions
11496
11493
  });
11497
11494
  const [hasInitializedSizing, setHasInitializedSizing] = useState26(false);
11498
- useEffect26(() => {
11495
+ useEffect25(() => {
11499
11496
  if (!hasInitializedSizing && ref.current) {
11500
11497
  setHasInitializedSizing(true);
11501
11498
  table.setColumnSizing(updateColumnSizes(columnSizing));
@@ -11505,7 +11502,7 @@ var Table = ({
11505
11502
  table.setColumnSizing(updateColumnSizes);
11506
11503
  }, [updateColumnSizes]));
11507
11504
  const pageCount = table.getPageCount();
11508
- useEffect26(() => {
11505
+ useEffect25(() => {
11509
11506
  const totalPages = pageCount;
11510
11507
  if (totalPages === 0) {
11511
11508
  if (pagination.pageIndex !== 0) {
@@ -11637,7 +11634,7 @@ var Table = ({
11637
11634
  };
11638
11635
  var TableUncontrolled = ({ data, ...props }) => {
11639
11636
  const [usedDate, setUsedData] = useState26(data);
11640
- useEffect26(() => {
11637
+ useEffect25(() => {
11641
11638
  setUsedData(data);
11642
11639
  }, [data]);
11643
11640
  return /* @__PURE__ */ jsx61(
@@ -11892,7 +11889,7 @@ var DateTimePicker = ({
11892
11889
  };
11893
11890
 
11894
11891
  // src/components/user-action/ScrollPicker.tsx
11895
- import { useCallback as useCallback10, useEffect as useEffect27, useState as useState28 } from "react";
11892
+ import { useCallback as useCallback10, useEffect as useEffect26, useState as useState28 } from "react";
11896
11893
  import clsx51 from "clsx";
11897
11894
  import { jsx as jsx64, jsxs as jsxs41 } from "react/jsx-runtime";
11898
11895
  var up = 1;
@@ -12012,7 +12009,7 @@ var ScrollPicker = ({
12012
12009
  };
12013
12010
  });
12014
12011
  }, [disabled, getDirection, onChange]);
12015
- useEffect27(() => {
12012
+ useEffect26(() => {
12016
12013
  requestAnimationFrame((timestamp) => animate(timestamp, lastTimeStamp));
12017
12014
  });
12018
12015
  const opacity = (transition2, index, itemsCount) => {
@@ -12089,7 +12086,7 @@ var ScrollPicker = ({
12089
12086
  };
12090
12087
 
12091
12088
  // src/components/user-action/ToggleableInput.tsx
12092
- import { useEffect as useEffect28, useRef as useRef8, useState as useState29 } from "react";
12089
+ import { useEffect as useEffect27, useRef as useRef8, useState as useState29 } from "react";
12093
12090
  import { Pencil } from "lucide-react";
12094
12091
  import clsx52 from "clsx";
12095
12092
  import { jsx as jsx65, jsxs as jsxs42 } from "react/jsx-runtime";
@@ -12114,7 +12111,7 @@ var ToggleableInput = ({
12114
12111
  onEditCompleted(text);
12115
12112
  clearTimer();
12116
12113
  };
12117
- useEffect28(() => {
12114
+ useEffect27(() => {
12118
12115
  if (isEditing) {
12119
12116
  ref.current?.focus();
12120
12117
  }
@@ -12180,7 +12177,7 @@ var ToggleableInputUncontrolled = ({
12180
12177
  ...restProps
12181
12178
  }) => {
12182
12179
  const [value, setValue] = useState29(initialValue);
12183
- useEffect28(() => {
12180
+ useEffect27(() => {
12184
12181
  setValue(initialValue);
12185
12182
  }, [initialValue]);
12186
12183
  return /* @__PURE__ */ jsx65(
@@ -12197,14 +12194,14 @@ var ToggleableInputUncontrolled = ({
12197
12194
  };
12198
12195
 
12199
12196
  // src/hooks/useLogOnce.ts
12200
- import { useEffect as useEffect29, useState as useState30 } from "react";
12197
+ import { useEffect as useEffect28, useState as useState30 } from "react";
12201
12198
  var useLogOnce = ({
12202
12199
  message,
12203
12200
  condition,
12204
12201
  type = "warning"
12205
12202
  }) => {
12206
12203
  const [hasLogged, setHasLogged] = useState30(false);
12207
- useEffect29(() => {
12204
+ useEffect28(() => {
12208
12205
  if (!hasLogged && condition) {
12209
12206
  switch (type) {
12210
12207
  case "info":