@helpwave/hightide 0.1.19 → 0.1.21

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 (140) hide show
  1. package/dist/components/date/DatePicker.js +3 -2
  2. package/dist/components/date/DatePicker.js.map +1 -1
  3. package/dist/components/date/DatePicker.mjs +3 -2
  4. package/dist/components/date/DatePicker.mjs.map +1 -1
  5. package/dist/components/date/DayPicker.js.map +1 -1
  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.map +1 -1
  9. package/dist/components/date/YearMonthPicker.js +3 -2
  10. package/dist/components/date/YearMonthPicker.js.map +1 -1
  11. package/dist/components/date/YearMonthPicker.mjs +3 -2
  12. package/dist/components/date/YearMonthPicker.mjs.map +1 -1
  13. package/dist/components/dialogs/ConfirmDialog.js +1 -1
  14. package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
  15. package/dist/components/dialogs/ConfirmDialog.mjs +1 -1
  16. package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
  17. package/dist/components/layout-and-navigation/Expandable.d.mts +3 -0
  18. package/dist/components/layout-and-navigation/Expandable.d.ts +3 -0
  19. package/dist/components/layout-and-navigation/Expandable.js +3 -2
  20. package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
  21. package/dist/components/layout-and-navigation/Expandable.mjs +3 -2
  22. package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -1
  23. package/dist/components/layout-and-navigation/FAQSection.js +3 -2
  24. package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
  25. package/dist/components/layout-and-navigation/FAQSection.mjs +3 -2
  26. package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -1
  27. package/dist/components/layout-and-navigation/Overlay.js +1 -1
  28. package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
  29. package/dist/components/layout-and-navigation/Overlay.mjs +1 -1
  30. package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
  31. package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
  32. package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
  33. package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
  34. package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
  35. package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
  36. package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
  37. package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
  38. package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
  39. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  40. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
  41. package/dist/components/loading-states/LoadingAndErrorComponent.d.mts +5 -10
  42. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +5 -10
  43. package/dist/components/loading-states/LoadingAndErrorComponent.js +14 -331
  44. package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
  45. package/dist/components/loading-states/LoadingAndErrorComponent.mjs +15 -322
  46. package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -1
  47. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  48. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
  49. package/dist/components/loading-states/LoadingContainer.d.mts +8 -0
  50. package/dist/components/loading-states/LoadingContainer.d.ts +8 -0
  51. package/dist/components/loading-states/LoadingContainer.js +34 -0
  52. package/dist/components/loading-states/LoadingContainer.js.map +1 -0
  53. package/dist/components/loading-states/LoadingContainer.mjs +10 -0
  54. package/dist/components/loading-states/LoadingContainer.mjs.map +1 -0
  55. package/dist/components/modals/ConfirmModal.js +1 -1
  56. package/dist/components/modals/ConfirmModal.js.map +1 -1
  57. package/dist/components/modals/ConfirmModal.mjs +1 -1
  58. package/dist/components/modals/ConfirmModal.mjs.map +1 -1
  59. package/dist/components/modals/DiscardChangesModal.js +1 -1
  60. package/dist/components/modals/DiscardChangesModal.js.map +1 -1
  61. package/dist/components/modals/DiscardChangesModal.mjs +1 -1
  62. package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
  63. package/dist/components/modals/InputModal.js +1 -1
  64. package/dist/components/modals/InputModal.js.map +1 -1
  65. package/dist/components/modals/InputModal.mjs +1 -1
  66. package/dist/components/modals/InputModal.mjs.map +1 -1
  67. package/dist/components/modals/LanguageModal.js +7 -5
  68. package/dist/components/modals/LanguageModal.js.map +1 -1
  69. package/dist/components/modals/LanguageModal.mjs +7 -5
  70. package/dist/components/modals/LanguageModal.mjs.map +1 -1
  71. package/dist/components/modals/ThemeModal.js +7 -5
  72. package/dist/components/modals/ThemeModal.js.map +1 -1
  73. package/dist/components/modals/ThemeModal.mjs +7 -5
  74. package/dist/components/modals/ThemeModal.mjs.map +1 -1
  75. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  76. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  77. package/dist/components/properties/DateProperty.js.map +1 -1
  78. package/dist/components/properties/DateProperty.mjs.map +1 -1
  79. package/dist/components/properties/MultiSelectProperty.js +4 -3
  80. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  81. package/dist/components/properties/MultiSelectProperty.mjs +4 -3
  82. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  83. package/dist/components/properties/NumberProperty.js.map +1 -1
  84. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  85. package/dist/components/properties/PropertyBase.js.map +1 -1
  86. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  87. package/dist/components/properties/SelectProperty.js +4 -3
  88. package/dist/components/properties/SelectProperty.js.map +1 -1
  89. package/dist/components/properties/SelectProperty.mjs +4 -3
  90. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  91. package/dist/components/properties/TextProperty.js.map +1 -1
  92. package/dist/components/properties/TextProperty.mjs.map +1 -1
  93. package/dist/components/table/Table.js +1 -1
  94. package/dist/components/table/Table.js.map +1 -1
  95. package/dist/components/table/Table.mjs +1 -1
  96. package/dist/components/table/Table.mjs.map +1 -1
  97. package/dist/components/table/TableFilterButton.js +1 -1
  98. package/dist/components/table/TableFilterButton.js.map +1 -1
  99. package/dist/components/table/TableFilterButton.mjs +1 -1
  100. package/dist/components/table/TableFilterButton.mjs.map +1 -1
  101. package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
  102. package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
  103. package/dist/components/user-action/DateAndTimePicker.js +3 -2
  104. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  105. package/dist/components/user-action/DateAndTimePicker.mjs +3 -2
  106. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  107. package/dist/components/user-action/Menu.js +1 -1
  108. package/dist/components/user-action/Menu.js.map +1 -1
  109. package/dist/components/user-action/Menu.mjs +1 -1
  110. package/dist/components/user-action/Menu.mjs.map +1 -1
  111. package/dist/components/user-action/MultiSelect.js +4 -3
  112. package/dist/components/user-action/MultiSelect.js.map +1 -1
  113. package/dist/components/user-action/MultiSelect.mjs +4 -3
  114. package/dist/components/user-action/MultiSelect.mjs.map +1 -1
  115. package/dist/components/user-action/SearchBar.js.map +1 -1
  116. package/dist/components/user-action/SearchBar.mjs.map +1 -1
  117. package/dist/components/user-action/Select.js +4 -3
  118. package/dist/components/user-action/Select.js.map +1 -1
  119. package/dist/components/user-action/Select.mjs +4 -3
  120. package/dist/components/user-action/Select.mjs.map +1 -1
  121. package/dist/css/globals.css +53 -6
  122. package/dist/css/uncompiled/theme/colors-semantic.css +5 -5
  123. package/dist/css/uncompiled/utitlity/animation.css +27 -1
  124. package/dist/index.d.mts +1 -0
  125. package/dist/index.d.ts +1 -0
  126. package/dist/index.js +314 -289
  127. package/dist/index.js.map +1 -1
  128. package/dist/index.mjs +278 -254
  129. package/dist/index.mjs.map +1 -1
  130. package/dist/localization/LanguageProvider.js +2 -1
  131. package/dist/localization/LanguageProvider.js.map +1 -1
  132. package/dist/localization/LanguageProvider.mjs +2 -1
  133. package/dist/localization/LanguageProvider.mjs.map +1 -1
  134. package/dist/localization/useTranslation.js.map +1 -1
  135. package/dist/localization/useTranslation.mjs.map +1 -1
  136. package/dist/theming/useTheme.js +71 -6
  137. package/dist/theming/useTheme.js.map +1 -1
  138. package/dist/theming/useTheme.mjs +69 -4
  139. package/dist/theming/useTheme.mjs.map +1 -1
  140. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -3128,8 +3128,9 @@ var LanguageProvider = ({ initialLanguage, children }) => {
3128
3128
  }
3129
3129
  }, [initialLanguage]);
3130
3130
  useEffect2(() => {
3131
+ document.documentElement.setAttribute("lang", language);
3131
3132
  setStoredLanguage(language);
3132
- }, [language, setStoredLanguage]);
3133
+ }, [language]);
3133
3134
  useEffect2(() => {
3134
3135
  if (storedLanguage !== null) {
3135
3136
  setLanguage(storedLanguage);
@@ -3738,7 +3739,8 @@ var Expandable = forwardRef2(function Expandable2({
3738
3739
  disabled = false,
3739
3740
  className,
3740
3741
  headerClassName,
3741
- contentClassName
3742
+ contentClassName,
3743
+ contentExpandedClassName
3742
3744
  }, ref) {
3743
3745
  const defaultIcon = useCallback2((expanded) => /* @__PURE__ */ jsx6(ExpansionIcon, { isExpanded: expanded }), []);
3744
3746
  icon ??= defaultIcon;
@@ -3774,7 +3776,7 @@ var Expandable = forwardRef2(function Expandable2({
3774
3776
  className: clsx5(
3775
3777
  "flex-col-2 px-4 transition-all duration-300 ease-in-out",
3776
3778
  {
3777
- "max-h-96 opacity-100 pb-2": isExpanded,
3779
+ [clsx5("max-h-96 opacity-100 pb-2 overflow-y-auto", contentExpandedClassName)]: isExpanded,
3778
3780
  "max-h-0 opacity-0 overflow-hidden": !isExpanded
3779
3781
  },
3780
3782
  contentClassName
@@ -4610,7 +4612,7 @@ var Overlay = ({
4610
4612
  }, []);
4611
4613
  if (!root || !isOpen) return null;
4612
4614
  return ReactDOM.createPortal(
4613
- /* @__PURE__ */ jsxs9("div", { className: clsx11("fixed inset-0 z-[9999]"), children: [
4615
+ /* @__PURE__ */ jsxs9("div", { className: clsx11("fixed inset-0 z-[200]"), children: [
4614
4616
  /* @__PURE__ */ jsx13(
4615
4617
  "div",
4616
4618
  {
@@ -6745,30 +6747,24 @@ var ErrorComponent = ({
6745
6747
  // src/components/loading-states/LoadingAndErrorComponent.tsx
6746
6748
  import { useState as useState17 } from "react";
6747
6749
 
6748
- // src/components/loading-states/LoadingAnimation.tsx
6749
- import clsx28 from "clsx";
6750
- import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
6751
- var LoadingAnimation = ({
6752
- overwriteTranslation,
6753
- loadingText,
6754
- classname
6755
- }) => {
6756
- const translation = useTranslation([formTranslation], overwriteTranslation);
6757
- return /* @__PURE__ */ jsxs23("div", { className: clsx28("flex-col-2 items-center justify-center w-full h-24", classname), children: [
6758
- /* @__PURE__ */ jsx33(Helpwave, { animate: "loading" }),
6759
- loadingText ?? `${translation("loading")}...`
6760
- ] });
6750
+ // src/components/loading-states/LoadingContainer.tsx
6751
+ import { clsx as clsx28 } from "clsx";
6752
+ import { jsx as jsx33 } from "react/jsx-runtime";
6753
+ var LoadingContainer = ({ className }) => {
6754
+ return /* @__PURE__ */ jsx33("div", { className: clsx28("relative overflow-hidden shimmer bg-disabled-background rounded-md", className) });
6761
6755
  };
6762
6756
 
6763
6757
  // src/components/loading-states/LoadingAndErrorComponent.tsx
6758
+ import { clsx as clsx29 } from "clsx";
6764
6759
  import { jsx as jsx34 } from "react/jsx-runtime";
6765
6760
  var LoadingAndErrorComponent = ({
6766
6761
  children,
6767
6762
  isLoading = false,
6768
6763
  hasError = false,
6769
- errorProps,
6770
- loadingProps,
6771
- minimumLoadingDuration
6764
+ loadingComponent,
6765
+ errorComponent,
6766
+ minimumLoadingDuration,
6767
+ className
6772
6768
  }) => {
6773
6769
  const [isInMinimumLoading, setIsInMinimumLoading] = useState17(false);
6774
6770
  const [hasUsedMinimumLoading, setHasUsedMinimumLoading] = useState17(false);
@@ -6780,27 +6776,42 @@ var LoadingAndErrorComponent = ({
6780
6776
  }, minimumLoadingDuration);
6781
6777
  }
6782
6778
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
6783
- return /* @__PURE__ */ jsx34(LoadingAnimation, { ...loadingProps });
6779
+ return loadingComponent ?? /* @__PURE__ */ jsx34(LoadingContainer, { className: clsx29(className) });
6784
6780
  }
6785
6781
  if (hasError) {
6786
- return /* @__PURE__ */ jsx34(ErrorComponent, { ...errorProps });
6782
+ return errorComponent ?? /* @__PURE__ */ jsx34(LoadingContainer, { className: clsx29("bg-negative", className) });
6787
6783
  }
6788
6784
  return children;
6789
6785
  };
6790
6786
 
6787
+ // src/components/loading-states/LoadingAnimation.tsx
6788
+ import clsx30 from "clsx";
6789
+ import { jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
6790
+ var LoadingAnimation = ({
6791
+ overwriteTranslation,
6792
+ loadingText,
6793
+ classname
6794
+ }) => {
6795
+ const translation = useTranslation([formTranslation], overwriteTranslation);
6796
+ return /* @__PURE__ */ jsxs23("div", { className: clsx30("flex-col-2 items-center justify-center w-full h-24", classname), children: [
6797
+ /* @__PURE__ */ jsx35(Helpwave, { animate: "loading" }),
6798
+ loadingText ?? `${translation("loading")}...`
6799
+ ] });
6800
+ };
6801
+
6791
6802
  // src/components/loading-states/LoadingButton.tsx
6792
- import clsx29 from "clsx";
6793
- import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
6803
+ import clsx31 from "clsx";
6804
+ import { jsx as jsx36, jsxs as jsxs24 } from "react/jsx-runtime";
6794
6805
  var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
6795
6806
  const paddingClass = ButtonUtil.paddingMapping[size];
6796
6807
  return /* @__PURE__ */ jsxs24("div", { className: "inline-block relative", children: [
6797
- isLoading && /* @__PURE__ */ jsx35("div", { className: clsx29("flex-row-2 absolute inset-0 items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ jsx35(Helpwave, { animate: "loading", className: "text-white" }) }),
6798
- /* @__PURE__ */ jsx35(SolidButton, { ...rest, disabled: rest.disabled, onClick: isLoading ? noop : onClick })
6808
+ isLoading && /* @__PURE__ */ jsx36("div", { className: clsx31("flex-row-2 absolute inset-0 items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ jsx36(Helpwave, { animate: "loading", className: "text-white" }) }),
6809
+ /* @__PURE__ */ jsx36(SolidButton, { ...rest, disabled: rest.disabled, onClick: isLoading ? noop : onClick })
6799
6810
  ] });
6800
6811
  };
6801
6812
 
6802
6813
  // src/components/loading-states/ProgressIndicator.tsx
6803
- import { jsx as jsx36, jsxs as jsxs25 } from "react/jsx-runtime";
6814
+ import { jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
6804
6815
  var sizeMapping = { small: 16, medium: 24, big: 48 };
6805
6816
  var ProgressIndicator = ({
6806
6817
  progress,
@@ -6826,7 +6837,7 @@ var ProgressIndicator = ({
6826
6837
  transform: `rotate(${rotation}deg)`
6827
6838
  },
6828
6839
  children: [
6829
- /* @__PURE__ */ jsx36(
6840
+ /* @__PURE__ */ jsx37(
6830
6841
  "circle",
6831
6842
  {
6832
6843
  cx: center,
@@ -6837,7 +6848,7 @@ var ProgressIndicator = ({
6837
6848
  className: "stroke-progress-indicator-fill"
6838
6849
  }
6839
6850
  ),
6840
- /* @__PURE__ */ jsx36(
6851
+ /* @__PURE__ */ jsx37(
6841
6852
  "circle",
6842
6853
  {
6843
6854
  cx: center,
@@ -6856,8 +6867,8 @@ var ProgressIndicator = ({
6856
6867
  };
6857
6868
 
6858
6869
  // src/components/modals/ConfirmModal.tsx
6859
- import clsx30 from "clsx";
6860
- import { jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
6870
+ import clsx32 from "clsx";
6871
+ import { jsx as jsx38, jsxs as jsxs26 } from "react/jsx-runtime";
6861
6872
  var ConfirmModal = ({
6862
6873
  overwriteTranslation,
6863
6874
  children,
@@ -6876,10 +6887,10 @@ var ConfirmModal = ({
6876
6887
  positive: "positive",
6877
6888
  primary: "primary"
6878
6889
  };
6879
- return /* @__PURE__ */ jsxs26(Modal, { ...restProps, onClose: onCancel, className: clsx30("justify-between", className), children: [
6880
- /* @__PURE__ */ jsx37("div", { className: "flex-col-2 grow", children }),
6890
+ return /* @__PURE__ */ jsxs26(Modal, { ...restProps, onClose: onCancel, className: clsx32("justify-between", className), children: [
6891
+ /* @__PURE__ */ jsx38("div", { className: "flex-col-2 grow", children }),
6881
6892
  /* @__PURE__ */ jsxs26("div", { className: "flex-row-4 mt-3 justify-end", children: [
6882
- onCancel && /* @__PURE__ */ jsx37(
6893
+ onCancel && /* @__PURE__ */ jsx38(
6883
6894
  SolidButton,
6884
6895
  {
6885
6896
  color: buttonOverwrites?.[0].color ?? "neutral",
@@ -6888,7 +6899,7 @@ var ConfirmModal = ({
6888
6899
  children: buttonOverwrites?.[0].text ?? translation("cancel")
6889
6900
  }
6890
6901
  ),
6891
- onDecline && /* @__PURE__ */ jsx37(
6902
+ onDecline && /* @__PURE__ */ jsx38(
6892
6903
  SolidButton,
6893
6904
  {
6894
6905
  color: buttonOverwrites?.[1].color ?? "negative",
@@ -6897,7 +6908,7 @@ var ConfirmModal = ({
6897
6908
  children: buttonOverwrites?.[1].text ?? translation("decline")
6898
6909
  }
6899
6910
  ),
6900
- /* @__PURE__ */ jsx37(
6911
+ /* @__PURE__ */ jsx38(
6901
6912
  SolidButton,
6902
6913
  {
6903
6914
  autoFocus: true,
@@ -6912,7 +6923,7 @@ var ConfirmModal = ({
6912
6923
  };
6913
6924
 
6914
6925
  // src/components/modals/DiscardChangesModal.tsx
6915
- import { jsx as jsx38 } from "react/jsx-runtime";
6926
+ import { jsx as jsx39 } from "react/jsx-runtime";
6916
6927
  var DiscardChangesModal = ({
6917
6928
  overwriteTranslation,
6918
6929
  children,
@@ -6923,7 +6934,7 @@ var DiscardChangesModal = ({
6923
6934
  ...modalProps
6924
6935
  }) => {
6925
6936
  const translation = useTranslation([formTranslation], overwriteTranslation);
6926
- return /* @__PURE__ */ jsx38(
6937
+ return /* @__PURE__ */ jsx39(
6927
6938
  ConfirmModal,
6928
6939
  {
6929
6940
  headerProps: {
@@ -6942,18 +6953,18 @@ var DiscardChangesModal = ({
6942
6953
  };
6943
6954
 
6944
6955
  // src/components/modals/InputModal.tsx
6945
- import { jsx as jsx39 } from "react/jsx-runtime";
6956
+ import { jsx as jsx40 } from "react/jsx-runtime";
6946
6957
  var InputModal = ({
6947
6958
  inputs,
6948
6959
  buttonOverwrites,
6949
6960
  ...restProps
6950
6961
  }) => {
6951
- return /* @__PURE__ */ jsx39(
6962
+ return /* @__PURE__ */ jsx40(
6952
6963
  ConfirmModal,
6953
6964
  {
6954
6965
  buttonOverwrites,
6955
6966
  ...restProps,
6956
- children: inputs.map((inputProps, index) => /* @__PURE__ */ jsx39(Input, { ...inputProps }, `input ${index}`))
6967
+ children: inputs.map((inputProps, index) => /* @__PURE__ */ jsx40(Input, { ...inputProps }, `input ${index}`))
6957
6968
  }
6958
6969
  );
6959
6970
  };
@@ -6961,7 +6972,7 @@ var InputModal = ({
6961
6972
  // src/components/user-action/Select.tsx
6962
6973
  import { useCallback as useCallback7 } from "react";
6963
6974
  import { useEffect as useEffect20, useState as useState19 } from "react";
6964
- import clsx33 from "clsx";
6975
+ import clsx35 from "clsx";
6965
6976
 
6966
6977
  // src/components/user-action/Menu.tsx
6967
6978
  import {
@@ -6969,7 +6980,7 @@ import {
6969
6980
  useRef as useRef6,
6970
6981
  useState as useState18
6971
6982
  } from "react";
6972
- import clsx31 from "clsx";
6983
+ import clsx33 from "clsx";
6973
6984
 
6974
6985
  // src/hooks/useOutsideClick.ts
6975
6986
  import { useEffect as useEffect18 } from "react";
@@ -7058,17 +7069,17 @@ var usePopoverPosition = (trigger, options) => {
7058
7069
 
7059
7070
  // src/components/user-action/Menu.tsx
7060
7071
  import { createPortal } from "react-dom";
7061
- import { Fragment as Fragment3, jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
7072
+ import { Fragment as Fragment3, jsx as jsx41, jsxs as jsxs27 } from "react/jsx-runtime";
7062
7073
  var MenuItem = ({
7063
7074
  children,
7064
7075
  onClick,
7065
7076
  alignment = "left",
7066
7077
  isDisabled = false,
7067
7078
  className
7068
- }) => /* @__PURE__ */ jsx40(
7079
+ }) => /* @__PURE__ */ jsx41(
7069
7080
  "div",
7070
7081
  {
7071
- className: clsx31("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold", {
7082
+ className: clsx33("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold", {
7072
7083
  "text-right": alignment === "right",
7073
7084
  "text-left": alignment === "left",
7074
7085
  "text-disabled-text cursor-not-allowed": isDisabled,
@@ -7136,13 +7147,13 @@ var Menu = ({
7136
7147
  }, [isOpen]);
7137
7148
  return /* @__PURE__ */ jsxs27(Fragment3, { children: [
7138
7149
  trigger(bag, triggerRef),
7139
- createPortal(/* @__PURE__ */ jsx40(
7150
+ createPortal(/* @__PURE__ */ jsx41(
7140
7151
  "div",
7141
7152
  {
7142
7153
  ref: menuRef,
7143
7154
  onClick: (e) => e.stopPropagation(),
7144
- className: clsx31(
7145
- "absolute rounded-md bg-menu-background text-menu-text shadow-around-lg z-10",
7155
+ className: clsx33(
7156
+ "absolute rounded-md bg-menu-background text-menu-text shadow-around-lg z-[300]",
7146
7157
  {
7147
7158
  "animate-pop-in": isOpen,
7148
7159
  "animate-pop-out": !isOpen,
@@ -7166,8 +7177,8 @@ var Menu = ({
7166
7177
 
7167
7178
  // src/components/user-action/SearchBar.tsx
7168
7179
  import { Search as Search2 } from "lucide-react";
7169
- import { clsx as clsx32 } from "clsx";
7170
- import { jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
7180
+ import { clsx as clsx34 } from "clsx";
7181
+ import { jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
7171
7182
  var SearchBar = ({
7172
7183
  placeholder,
7173
7184
  onSearch,
@@ -7176,31 +7187,31 @@ var SearchBar = ({
7176
7187
  ...inputProps
7177
7188
  }) => {
7178
7189
  const translation = useTranslation([formTranslation]);
7179
- return /* @__PURE__ */ jsxs28("div", { className: clsx32("flex-row-2 justify-between items-center", containerClassName), children: [
7180
- /* @__PURE__ */ jsx41(
7190
+ return /* @__PURE__ */ jsxs28("div", { className: clsx34("flex-row-2 justify-between items-center", containerClassName), children: [
7191
+ /* @__PURE__ */ jsx42(
7181
7192
  Input,
7182
7193
  {
7183
7194
  ...inputProps,
7184
7195
  placeholder: placeholder ?? translation("search")
7185
7196
  }
7186
7197
  ),
7187
- onSearch && /* @__PURE__ */ jsx41(IconButton, { color: "neutral", disabled: disableOnSearch, onClick: onSearch, children: /* @__PURE__ */ jsx41(Search2, { className: "w-full h-full" }) })
7198
+ onSearch && /* @__PURE__ */ jsx42(IconButton, { color: "neutral", disabled: disableOnSearch, onClick: onSearch, children: /* @__PURE__ */ jsx42(Search2, { className: "w-full h-full" }) })
7188
7199
  ] });
7189
7200
  };
7190
7201
 
7191
7202
  // src/components/user-action/Select.tsx
7192
- import { Fragment as Fragment4, jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
7203
+ import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs29 } from "react/jsx-runtime";
7193
7204
  var SelectTile = ({
7194
7205
  className,
7195
7206
  disabledClassName,
7196
7207
  title,
7197
7208
  ...restProps
7198
7209
  }) => {
7199
- return /* @__PURE__ */ jsx42(
7210
+ return /* @__PURE__ */ jsx43(
7200
7211
  Tile,
7201
7212
  {
7202
7213
  ...restProps,
7203
- className: clsx33("px-2 py-1 rounded-md", className),
7214
+ className: clsx35("px-2 py-1 rounded-md", className),
7204
7215
  disabledClassName: disabledClassName ?? "text-disabled-text cursor-not-allowed",
7205
7216
  title: { ...title, className: title.className ?? "font-semibold" }
7206
7217
  }
@@ -7230,9 +7241,9 @@ var Select = ({
7230
7241
  searchMapping: useCallback7((item) => item.searchTags, []),
7231
7242
  ...searchOptions
7232
7243
  });
7233
- return /* @__PURE__ */ jsxs29("div", { className: clsx33(className), children: [
7234
- label && /* @__PURE__ */ jsx42(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx33("mb-1", label.className) }),
7235
- /* @__PURE__ */ jsx42(
7244
+ return /* @__PURE__ */ jsxs29("div", { className: clsx35(className), children: [
7245
+ label && /* @__PURE__ */ jsx43(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx35("mb-1", label.className) }),
7246
+ /* @__PURE__ */ jsx43(
7236
7247
  Menu,
7237
7248
  {
7238
7249
  ...menuProps,
@@ -7240,7 +7251,7 @@ var Select = ({
7240
7251
  "button",
7241
7252
  {
7242
7253
  ref,
7243
- className: clsx33(
7254
+ className: clsx35(
7244
7255
  "btn-md justify-between w-full border-2",
7245
7256
  {
7246
7257
  "rounded-b-lg": !open,
@@ -7252,17 +7263,17 @@ var Select = ({
7252
7263
  onClick: toggleOpen,
7253
7264
  disabled,
7254
7265
  children: [
7255
- !isShowingHint && /* @__PURE__ */ jsx42("span", { className: "font-semibold", children: selectedDisplayOverwrite ?? selectedOption?.label }),
7256
- isShowingHint && /* @__PURE__ */ jsx42("span", { className: clsx33("textstyle-description", hintTextClassName), children: hintText }),
7257
- /* @__PURE__ */ jsx42(ExpansionIcon, { isExpanded: isOpen })
7266
+ !isShowingHint && /* @__PURE__ */ jsx43("span", { className: "font-semibold", children: selectedDisplayOverwrite ?? selectedOption?.label }),
7267
+ isShowingHint && /* @__PURE__ */ jsx43("span", { className: clsx35("textstyle-description", hintTextClassName), children: hintText }),
7268
+ /* @__PURE__ */ jsx43(ExpansionIcon, { isExpanded: isOpen })
7258
7269
  ]
7259
7270
  }
7260
7271
  ),
7261
- menuClassName: clsx33("flex-col-2 p-2 max-h-96 overflow-hidden", menuProps.menuClassName),
7272
+ menuClassName: clsx35("flex-col-2 p-2 max-h-96 overflow-hidden", menuProps.menuClassName),
7262
7273
  children: (bag) => {
7263
7274
  const { close } = bag;
7264
7275
  return /* @__PURE__ */ jsxs29(Fragment4, { children: [
7265
- !searchOptions?.disabled && /* @__PURE__ */ jsx42(
7276
+ !searchOptions?.disabled && /* @__PURE__ */ jsx43(
7266
7277
  SearchBar,
7267
7278
  {
7268
7279
  value: search,
@@ -7271,7 +7282,7 @@ var Select = ({
7271
7282
  }
7272
7283
  ),
7273
7284
  /* @__PURE__ */ jsxs29("div", { className: "flex-col-2 overflow-y-auto", children: [
7274
- result.map((option, index) => /* @__PURE__ */ jsx42(
7285
+ result.map((option, index) => /* @__PURE__ */ jsx43(
7275
7286
  SelectTile,
7276
7287
  {
7277
7288
  isSelected: option === selectedOption,
@@ -7305,7 +7316,7 @@ var SelectUncontrolled = ({
7305
7316
  setSelected(value);
7306
7317
  }
7307
7318
  }, [options, value]);
7308
- return /* @__PURE__ */ jsx42(
7319
+ return /* @__PURE__ */ jsx43(
7309
7320
  Select,
7310
7321
  {
7311
7322
  value: selected,
@@ -7321,7 +7332,7 @@ var SelectUncontrolled = ({
7321
7332
  };
7322
7333
 
7323
7334
  // src/components/modals/LanguageModal.tsx
7324
- import { jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
7335
+ import { jsx as jsx44, jsxs as jsxs30 } from "react/jsx-runtime";
7325
7336
  var defaultLanguageModalTranslation = {
7326
7337
  en: {
7327
7338
  language: "Language",
@@ -7344,7 +7355,7 @@ var LanguageModal = ({
7344
7355
  }) => {
7345
7356
  const { language, setLanguage } = useLanguage();
7346
7357
  const translation = useTranslation([defaultLanguageModalTranslation], overwriteTranslation);
7347
- return /* @__PURE__ */ jsx43(
7358
+ return /* @__PURE__ */ jsx44(
7348
7359
  Modal,
7349
7360
  {
7350
7361
  headerProps: {
@@ -7355,16 +7366,17 @@ var LanguageModal = ({
7355
7366
  onClose,
7356
7367
  ...modalProps,
7357
7368
  children: /* @__PURE__ */ jsxs30("div", { className: "w-64", children: [
7358
- /* @__PURE__ */ jsx43(
7369
+ /* @__PURE__ */ jsx44(
7359
7370
  Select,
7360
7371
  {
7361
7372
  className: "mt-2",
7362
7373
  value: language,
7363
7374
  options: LanguageUtil.languages.map((language2) => ({ label: translation(language2), value: language2 })),
7364
- onChange: (language2) => setLanguage(language2)
7375
+ onChange: (language2) => setLanguage(language2),
7376
+ searchOptions: { disabled: true }
7365
7377
  }
7366
7378
  ),
7367
- /* @__PURE__ */ jsx43("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ jsx43(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
7379
+ /* @__PURE__ */ jsx44("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ jsx44(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
7368
7380
  ] })
7369
7381
  }
7370
7382
  );
@@ -7372,7 +7384,7 @@ var LanguageModal = ({
7372
7384
 
7373
7385
  // src/theming/useTheme.tsx
7374
7386
  import { createContext as createContext2, useContext as useContext2, useEffect as useEffect21, useState as useState20 } from "react";
7375
- import { jsx as jsx44 } from "react/jsx-runtime";
7387
+ import { jsx as jsx45 } from "react/jsx-runtime";
7376
7388
  var themes = ["light", "dark"];
7377
7389
  var defaultThemeTypeTranslation = {
7378
7390
  en: {
@@ -7402,6 +7414,7 @@ var ThemeContext = createContext2({
7402
7414
  });
7403
7415
  var ThemeProvider = ({ children, initialTheme = "light" }) => {
7404
7416
  const [theme, setTheme] = useState20(initialTheme);
7417
+ const [storedTheme, setStoredTheme] = useLocalStorage("theme", initialTheme);
7405
7418
  useEffect21(() => {
7406
7419
  if (theme !== initialTheme) {
7407
7420
  console.warn("ThemeProvider initial state changed: Prefer using useTheme's setTheme instead");
@@ -7410,13 +7423,22 @@ var ThemeProvider = ({ children, initialTheme = "light" }) => {
7410
7423
  }, [initialTheme]);
7411
7424
  useEffect21(() => {
7412
7425
  document.documentElement.setAttribute("data-theme", theme);
7426
+ setStoredTheme(theme);
7413
7427
  }, [theme]);
7414
- return /* @__PURE__ */ jsx44(ThemeContext.Provider, { value: { theme, setTheme }, children });
7428
+ useEffect21(() => {
7429
+ if (storedTheme !== null) {
7430
+ setTheme(storedTheme);
7431
+ return;
7432
+ }
7433
+ const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
7434
+ setTheme(prefersDark ? "dark" : "light");
7435
+ }, []);
7436
+ return /* @__PURE__ */ jsx45(ThemeContext.Provider, { value: { theme, setTheme }, children });
7415
7437
  };
7416
7438
  var useTheme = () => useContext2(ThemeContext);
7417
7439
 
7418
7440
  // src/components/modals/ThemeModal.tsx
7419
- import { jsx as jsx45, jsxs as jsxs31 } from "react/jsx-runtime";
7441
+ import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
7420
7442
  var defaultConfirmDialogTranslation = {
7421
7443
  en: {
7422
7444
  chooseTheme: "Choose your preferred theme"
@@ -7433,7 +7455,7 @@ var ThemeModal = ({
7433
7455
  }) => {
7434
7456
  const { theme, setTheme } = useTheme();
7435
7457
  const translation = useTranslation([defaultConfirmDialogTranslation, formTranslation, ThemeUtil.translation], overwriteTranslation);
7436
- return /* @__PURE__ */ jsx45(
7458
+ return /* @__PURE__ */ jsx46(
7437
7459
  Modal,
7438
7460
  {
7439
7461
  headerProps: {
@@ -7444,16 +7466,17 @@ var ThemeModal = ({
7444
7466
  onClose,
7445
7467
  ...modalProps,
7446
7468
  children: /* @__PURE__ */ jsxs31("div", { className: "w-64", children: [
7447
- /* @__PURE__ */ jsx45(
7469
+ /* @__PURE__ */ jsx46(
7448
7470
  Select,
7449
7471
  {
7450
7472
  className: "mt-2",
7451
7473
  value: theme,
7452
7474
  options: ThemeUtil.themes.map((theme2) => ({ label: translation(theme2), value: theme2 })),
7453
- onChange: (theme2) => setTheme(theme2)
7475
+ onChange: (theme2) => setTheme(theme2),
7476
+ searchOptions: { disabled: true }
7454
7477
  }
7455
7478
  ),
7456
- /* @__PURE__ */ jsx45("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ jsx45(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
7479
+ /* @__PURE__ */ jsx46("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ jsx46(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
7457
7480
  ] })
7458
7481
  }
7459
7482
  );
@@ -7466,8 +7489,8 @@ import { Check as Check4 } from "lucide-react";
7466
7489
  import { useState as useState21 } from "react";
7467
7490
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
7468
7491
  import { Check as Check3, Minus } from "lucide-react";
7469
- import clsx34 from "clsx";
7470
- import { jsx as jsx46, jsxs as jsxs32 } from "react/jsx-runtime";
7492
+ import clsx36 from "clsx";
7493
+ import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
7471
7494
  var checkboxSizeMapping = {
7472
7495
  small: "size-5",
7473
7496
  medium: "size-6",
@@ -7503,27 +7526,27 @@ var Checkbox = ({
7503
7526
  const newValue = checked === "indeterminate" ? false : !checked;
7504
7527
  propagateChange(newValue);
7505
7528
  };
7506
- return /* @__PURE__ */ jsxs32("div", { className: clsx34("group flex-row-2 items-center cursor-pointer", containerClassName), onClick: changeValue, children: [
7507
- /* @__PURE__ */ jsx46(
7529
+ return /* @__PURE__ */ jsxs32("div", { className: clsx36("group flex-row-2 items-center cursor-pointer", containerClassName), onClick: changeValue, children: [
7530
+ /* @__PURE__ */ jsx47(
7508
7531
  CheckboxPrimitive.Root,
7509
7532
  {
7510
7533
  onCheckedChange: propagateChange,
7511
7534
  checked,
7512
7535
  disabled,
7513
7536
  id,
7514
- className: clsx34(usedSizeClass, `items-center border-2 rounded outline-none `, {
7537
+ className: clsx36(usedSizeClass, `items-center border-2 rounded outline-none `, {
7515
7538
  "text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
7516
7539
  "focus:border-primary group-hover:border-primary ": !disabled,
7517
7540
  "bg-surface": !disabled && !checked,
7518
7541
  "bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
7519
7542
  }, className),
7520
7543
  children: /* @__PURE__ */ jsxs32(CheckboxPrimitive.Indicator, { children: [
7521
- checked === true && /* @__PURE__ */ jsx46(Check3, { className: innerIconSize }),
7522
- checked === "indeterminate" && /* @__PURE__ */ jsx46(Minus, { className: innerIconSize })
7544
+ checked === true && /* @__PURE__ */ jsx47(Check3, { className: innerIconSize }),
7545
+ checked === "indeterminate" && /* @__PURE__ */ jsx47(Minus, { className: innerIconSize })
7523
7546
  ] })
7524
7547
  }
7525
7548
  ),
7526
- label && /* @__PURE__ */ jsx46(Label, { ...label, className: clsx34(label.className), htmlFor: id })
7549
+ label && /* @__PURE__ */ jsx47(Label, { ...label, className: clsx36(label.className), htmlFor: id })
7527
7550
  ] });
7528
7551
  };
7529
7552
  var CheckboxUncontrolled = ({
@@ -7542,7 +7565,7 @@ var CheckboxUncontrolled = ({
7542
7565
  }
7543
7566
  setChecked(checked2);
7544
7567
  };
7545
- return /* @__PURE__ */ jsx46(
7568
+ return /* @__PURE__ */ jsx47(
7546
7569
  Checkbox,
7547
7570
  {
7548
7571
  ...props,
@@ -7554,8 +7577,8 @@ var CheckboxUncontrolled = ({
7554
7577
 
7555
7578
  // src/components/properties/PropertyBase.tsx
7556
7579
  import { AlertTriangle } from "lucide-react";
7557
- import clsx35 from "clsx";
7558
- import { jsx as jsx47, jsxs as jsxs33 } from "react/jsx-runtime";
7580
+ import clsx37 from "clsx";
7581
+ import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
7559
7582
  var PropertyBase = ({
7560
7583
  overwriteTranslation,
7561
7584
  name,
@@ -7569,11 +7592,11 @@ var PropertyBase = ({
7569
7592
  }) => {
7570
7593
  const translation = useTranslation([formTranslation], overwriteTranslation);
7571
7594
  const requiredAndNoValue = softRequired && !hasValue;
7572
- return /* @__PURE__ */ jsxs33("div", { className: clsx35("flex-row-0 group", className), children: [
7595
+ return /* @__PURE__ */ jsxs33("div", { className: clsx37("flex-row-0 group", className), children: [
7573
7596
  /* @__PURE__ */ jsxs33(
7574
7597
  "div",
7575
7598
  {
7576
- className: clsx35(
7599
+ className: clsx37(
7577
7600
  "flex-row-2 max-w-48 min-w-48 px-3 py-2 items-center rounded-l-xl border-2 border-r-0",
7578
7601
  {
7579
7602
  "bg-property-title-background text-property-title-text group-hover:border-primary": !requiredAndNoValue,
@@ -7582,15 +7605,15 @@ var PropertyBase = ({
7582
7605
  className
7583
7606
  ),
7584
7607
  children: [
7585
- /* @__PURE__ */ jsx47("div", { className: "max-w-6 min-w-6 text-text-default", children: icon }),
7586
- /* @__PURE__ */ jsx47("span", { className: "font-semibold", children: name })
7608
+ /* @__PURE__ */ jsx48("div", { className: "max-w-6 min-w-6 text-text-default", children: icon }),
7609
+ /* @__PURE__ */ jsx48("span", { className: "font-semibold", children: name })
7587
7610
  ]
7588
7611
  }
7589
7612
  ),
7590
7613
  /* @__PURE__ */ jsxs33(
7591
7614
  "div",
7592
7615
  {
7593
- className: clsx35(
7616
+ className: clsx37(
7594
7617
  "flex-row-2 grow px-3 py-2 justify-between items-center rounded-r-xl border-2 border-l-0 min-h-15",
7595
7618
  {
7596
7619
  "bg-surface group-hover:border-primary": !requiredAndNoValue,
@@ -7600,13 +7623,13 @@ var PropertyBase = ({
7600
7623
  ),
7601
7624
  children: [
7602
7625
  input({ softRequired, hasValue }),
7603
- requiredAndNoValue && /* @__PURE__ */ jsx47("div", { className: "text-warning", children: /* @__PURE__ */ jsx47(AlertTriangle, { size: 24 }) }),
7604
- onRemove && hasValue && /* @__PURE__ */ jsx47(
7626
+ requiredAndNoValue && /* @__PURE__ */ jsx48("div", { className: "text-warning", children: /* @__PURE__ */ jsx48(AlertTriangle, { size: 24 }) }),
7627
+ onRemove && hasValue && /* @__PURE__ */ jsx48(
7605
7628
  TextButton,
7606
7629
  {
7607
7630
  onClick: onRemove,
7608
7631
  color: "negative",
7609
- className: clsx35("items-center", { "!text-transparent": !hasValue || readOnly }),
7632
+ className: clsx37("items-center", { "!text-transparent": !hasValue || readOnly }),
7610
7633
  disabled: !hasValue || readOnly,
7611
7634
  children: translation("remove")
7612
7635
  }
@@ -7618,7 +7641,7 @@ var PropertyBase = ({
7618
7641
  };
7619
7642
 
7620
7643
  // src/components/properties/CheckboxProperty.tsx
7621
- import { jsx as jsx48 } from "react/jsx-runtime";
7644
+ import { jsx as jsx49 } from "react/jsx-runtime";
7622
7645
  var CheckboxProperty = ({
7623
7646
  overwriteTranslation,
7624
7647
  value,
@@ -7627,14 +7650,14 @@ var CheckboxProperty = ({
7627
7650
  ...baseProps
7628
7651
  }) => {
7629
7652
  const translation = useTranslation([formTranslation], overwriteTranslation);
7630
- return /* @__PURE__ */ jsx48(
7653
+ return /* @__PURE__ */ jsx49(
7631
7654
  PropertyBase,
7632
7655
  {
7633
7656
  ...baseProps,
7634
7657
  hasValue: true,
7635
7658
  readOnly,
7636
- icon: /* @__PURE__ */ jsx48(Check4, { size: 24 }),
7637
- input: () => /* @__PURE__ */ jsx48(
7659
+ icon: /* @__PURE__ */ jsx49(Check4, { size: 24 }),
7660
+ input: () => /* @__PURE__ */ jsx49(
7638
7661
  Checkbox,
7639
7662
  {
7640
7663
  checked: value ?? true,
@@ -7650,8 +7673,8 @@ var CheckboxProperty = ({
7650
7673
 
7651
7674
  // src/components/properties/DateProperty.tsx
7652
7675
  import { CalendarDays } from "lucide-react";
7653
- import clsx36 from "clsx";
7654
- import { jsx as jsx49 } from "react/jsx-runtime";
7676
+ import clsx38 from "clsx";
7677
+ import { jsx as jsx50 } from "react/jsx-runtime";
7655
7678
  var DateProperty = ({
7656
7679
  value,
7657
7680
  onChange = noop,
@@ -7662,16 +7685,16 @@ var DateProperty = ({
7662
7685
  }) => {
7663
7686
  const hasValue = !!value;
7664
7687
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
7665
- return /* @__PURE__ */ jsx49(
7688
+ return /* @__PURE__ */ jsx50(
7666
7689
  PropertyBase,
7667
7690
  {
7668
7691
  ...baseProps,
7669
7692
  hasValue,
7670
- icon: /* @__PURE__ */ jsx49(CalendarDays, { size: 24 }),
7671
- input: ({ softRequired }) => /* @__PURE__ */ jsx49(
7693
+ icon: /* @__PURE__ */ jsx50(CalendarDays, { size: 24 }),
7694
+ input: ({ softRequired }) => /* @__PURE__ */ jsx50(
7672
7695
  Input,
7673
7696
  {
7674
- className: clsx36("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
7697
+ className: clsx38("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
7675
7698
  value: dateText,
7676
7699
  type: type === "dateTime" ? "datetime-local" : "date",
7677
7700
  readOnly,
@@ -7693,14 +7716,14 @@ var DateProperty = ({
7693
7716
 
7694
7717
  // src/components/properties/MultiSelectProperty.tsx
7695
7718
  import { List, Plus as Plus2 } from "lucide-react";
7696
- import clsx38 from "clsx";
7719
+ import clsx40 from "clsx";
7697
7720
 
7698
7721
  // src/components/user-action/MultiSelect.tsx
7699
7722
  import { useCallback as useCallback8 } from "react";
7700
7723
  import { useEffect as useEffect22, useState as useState22 } from "react";
7701
- import clsx37 from "clsx";
7724
+ import clsx39 from "clsx";
7702
7725
  import { Plus } from "lucide-react";
7703
- import { Fragment as Fragment5, jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
7726
+ import { Fragment as Fragment5, jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
7704
7727
  var defaultMultiSelectTranslation = {
7705
7728
  en: {
7706
7729
  selected: `{{amount}} selected`
@@ -7732,25 +7755,25 @@ var MultiSelect = ({
7732
7755
  });
7733
7756
  const selectedItems = options.filter((value) => value.selected);
7734
7757
  const isShowingHint = !selectedDisplayOverwrite && selectedItems.length === 0;
7735
- return /* @__PURE__ */ jsxs34("div", { className: clsx37(className), children: [
7736
- label && /* @__PURE__ */ jsx50(
7758
+ return /* @__PURE__ */ jsxs34("div", { className: clsx39(className), children: [
7759
+ label && /* @__PURE__ */ jsx51(
7737
7760
  Label,
7738
7761
  {
7739
7762
  ...label,
7740
7763
  htmlFor: label.name,
7741
- className: clsx37(" mb-1", label.className),
7764
+ className: clsx39(" mb-1", label.className),
7742
7765
  labelType: label.labelType ?? "labelBig"
7743
7766
  }
7744
7767
  ),
7745
- /* @__PURE__ */ jsx50(
7768
+ /* @__PURE__ */ jsx51(
7746
7769
  Menu,
7747
7770
  {
7748
7771
  ...menuProps,
7749
- trigger: ({ toggleOpen, isOpen, disabled }, ref) => /* @__PURE__ */ jsx50(
7772
+ trigger: ({ toggleOpen, isOpen, disabled }, ref) => /* @__PURE__ */ jsx51(
7750
7773
  "button",
7751
7774
  {
7752
7775
  ref,
7753
- className: clsx37(
7776
+ className: clsx39(
7754
7777
  "btn-md justify-between w-full border-2 h-auto",
7755
7778
  {
7756
7779
  "min-h-14": useChipDisplay,
@@ -7761,18 +7784,18 @@ var MultiSelect = ({
7761
7784
  ),
7762
7785
  onClick: toggleOpen,
7763
7786
  disabled,
7764
- children: useChipDisplay ? /* @__PURE__ */ jsx50(Fragment5, { children: isShowingHint ? /* @__PURE__ */ jsx50(IconButton, { disabled, size: "small", color: "neutral", children: /* @__PURE__ */ jsx50(Plus, {}) }) : /* @__PURE__ */ jsx50(ChipList, { list: selectedItems.map((value) => ({ children: value.label })) }) }) : /* @__PURE__ */ jsxs34(Fragment5, { children: [
7765
- !isShowingHint && /* @__PURE__ */ jsx50("span", { className: "font-semibold", children: selectedDisplayOverwrite ?? translation("selected", { replacements: { amount: selectedItems.length.toString() } }) }),
7766
- isShowingHint && /* @__PURE__ */ jsx50("span", { className: clsx37("textstyle-description", hintTextClassName), children: hintText ?? translation("select") }),
7767
- /* @__PURE__ */ jsx50(ExpansionIcon, { isExpanded: isOpen })
7787
+ children: useChipDisplay ? /* @__PURE__ */ jsx51(Fragment5, { children: isShowingHint ? /* @__PURE__ */ jsx51(IconButton, { disabled, size: "small", color: "neutral", children: /* @__PURE__ */ jsx51(Plus, {}) }) : /* @__PURE__ */ jsx51(ChipList, { list: selectedItems.map((value) => ({ children: value.label })) }) }) : /* @__PURE__ */ jsxs34(Fragment5, { children: [
7788
+ !isShowingHint && /* @__PURE__ */ jsx51("span", { className: "font-semibold", children: selectedDisplayOverwrite ?? translation("selected", { replacements: { amount: selectedItems.length.toString() } }) }),
7789
+ isShowingHint && /* @__PURE__ */ jsx51("span", { className: clsx39("textstyle-description", hintTextClassName), children: hintText ?? translation("select") }),
7790
+ /* @__PURE__ */ jsx51(ExpansionIcon, { isExpanded: isOpen })
7768
7791
  ] })
7769
7792
  }
7770
7793
  ),
7771
- menuClassName: clsx37("flex-col-2 p-2 max-h-96 overflow-hidden", menuProps.menuClassName),
7794
+ menuClassName: clsx39("flex-col-2 p-2 max-h-96 overflow-hidden", menuProps.menuClassName),
7772
7795
  children: (bag) => {
7773
7796
  const { close } = bag;
7774
7797
  return /* @__PURE__ */ jsxs34(Fragment5, { children: [
7775
- !searchOptions?.disabled && /* @__PURE__ */ jsx50(
7798
+ !searchOptions?.disabled && /* @__PURE__ */ jsx51(
7776
7799
  SearchBar,
7777
7800
  {
7778
7801
  value: search,
@@ -7788,10 +7811,10 @@ var MultiSelect = ({
7788
7811
  selected: !value.selected
7789
7812
  } : value));
7790
7813
  };
7791
- return /* @__PURE__ */ jsx50(
7814
+ return /* @__PURE__ */ jsx51(
7792
7815
  SelectTile,
7793
7816
  {
7794
- prefix: /* @__PURE__ */ jsx50(
7817
+ prefix: /* @__PURE__ */ jsx51(
7795
7818
  Checkbox,
7796
7819
  {
7797
7820
  checked: option.selected,
@@ -7811,7 +7834,7 @@ var MultiSelect = ({
7811
7834
  ] }),
7812
7835
  /* @__PURE__ */ jsxs34("div", { className: "flex-row-2 justify-between", children: [
7813
7836
  /* @__PURE__ */ jsxs34("div", { className: "flex-row-2", children: [
7814
- /* @__PURE__ */ jsx50(
7837
+ /* @__PURE__ */ jsx51(
7815
7838
  SolidButton,
7816
7839
  {
7817
7840
  color: "neutral",
@@ -7826,7 +7849,7 @@ var MultiSelect = ({
7826
7849
  children: translation("all")
7827
7850
  }
7828
7851
  ),
7829
- /* @__PURE__ */ jsx50(
7852
+ /* @__PURE__ */ jsx51(
7830
7853
  SolidButton,
7831
7854
  {
7832
7855
  color: "neutral",
@@ -7841,7 +7864,7 @@ var MultiSelect = ({
7841
7864
  }
7842
7865
  )
7843
7866
  ] }),
7844
- /* @__PURE__ */ jsx50(SolidButton, { size: "small", onClick: close, children: "Done" })
7867
+ /* @__PURE__ */ jsx51(SolidButton, { size: "small", onClick: close, children: "Done" })
7845
7868
  ] })
7846
7869
  ] });
7847
7870
  }
@@ -7858,7 +7881,7 @@ var MultiSelectUncontrolled = ({
7858
7881
  useEffect22(() => {
7859
7882
  setUsedOptions(options);
7860
7883
  }, [options]);
7861
- return /* @__PURE__ */ jsx50(
7884
+ return /* @__PURE__ */ jsx51(
7862
7885
  MultiSelect,
7863
7886
  {
7864
7887
  ...props,
@@ -7872,7 +7895,7 @@ var MultiSelectUncontrolled = ({
7872
7895
  };
7873
7896
 
7874
7897
  // src/components/properties/MultiSelectProperty.tsx
7875
- import { jsx as jsx51 } from "react/jsx-runtime";
7898
+ import { jsx as jsx52 } from "react/jsx-runtime";
7876
7899
  var MultiSelectProperty = ({
7877
7900
  overwriteTranslation,
7878
7901
  options,
@@ -7885,7 +7908,7 @@ var MultiSelectProperty = ({
7885
7908
  }) => {
7886
7909
  const translation = useTranslation([formTranslation], overwriteTranslation);
7887
7910
  const hasValue = options.some((value) => value.selected);
7888
- return /* @__PURE__ */ jsx51(
7911
+ return /* @__PURE__ */ jsx52(
7889
7912
  PropertyBase,
7890
7913
  {
7891
7914
  name,
@@ -7893,12 +7916,12 @@ var MultiSelectProperty = ({
7893
7916
  readOnly,
7894
7917
  softRequired,
7895
7918
  hasValue,
7896
- icon: /* @__PURE__ */ jsx51(List, { size: 24 }),
7897
- input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx51(
7919
+ icon: /* @__PURE__ */ jsx52(List, { size: 24 }),
7920
+ input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx52(
7898
7921
  MultiSelect,
7899
7922
  {
7900
7923
  ...multiSelectProps,
7901
- className: clsx38("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
7924
+ className: clsx40("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
7902
7925
  options,
7903
7926
  disabled: readOnly,
7904
7927
  useChipDisplay: true,
@@ -7911,10 +7934,10 @@ var MultiSelectProperty = ({
7911
7934
  if (!onAddNew && !search.trim()) {
7912
7935
  return void 0;
7913
7936
  }
7914
- return /* @__PURE__ */ jsx51(
7937
+ return /* @__PURE__ */ jsx52(
7915
7938
  SelectTile,
7916
7939
  {
7917
- prefix: /* @__PURE__ */ jsx51(Plus2, {}),
7940
+ prefix: /* @__PURE__ */ jsx52(Plus2, {}),
7918
7941
  title: { value: `${translation("add")} ${search.trim()}` },
7919
7942
  onClick: () => {
7920
7943
  onAddNew(search);
@@ -7924,7 +7947,7 @@ var MultiSelectProperty = ({
7924
7947
  }
7925
7948
  );
7926
7949
  },
7927
- triggerClassName: clsx38(
7950
+ triggerClassName: clsx40(
7928
7951
  "!border-none !p-0 !min-h-10",
7929
7952
  {
7930
7953
  "!bg-warning !text-surface-warning": softRequired2 && !hasValue,
@@ -7939,8 +7962,8 @@ var MultiSelectProperty = ({
7939
7962
 
7940
7963
  // src/components/properties/NumberProperty.tsx
7941
7964
  import { Binary } from "lucide-react";
7942
- import clsx39 from "clsx";
7943
- import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
7965
+ import clsx41 from "clsx";
7966
+ import { jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
7944
7967
  var defaultNumberPropertyTranslation = {
7945
7968
  en: {
7946
7969
  value: "Value"
@@ -7961,23 +7984,23 @@ var NumberProperty = ({
7961
7984
  }) => {
7962
7985
  const translation = useTranslation([defaultNumberPropertyTranslation], overwriteTranslation);
7963
7986
  const hasValue = value !== void 0;
7964
- return /* @__PURE__ */ jsx52(
7987
+ return /* @__PURE__ */ jsx53(
7965
7988
  PropertyBase,
7966
7989
  {
7967
7990
  ...baseProps,
7968
7991
  onRemove,
7969
7992
  hasValue,
7970
- icon: /* @__PURE__ */ jsx52(Binary, { size: 24 }),
7993
+ icon: /* @__PURE__ */ jsx53(Binary, { size: 24 }),
7971
7994
  input: ({ softRequired }) => /* @__PURE__ */ jsxs35(
7972
7995
  "div",
7973
7996
  {
7974
- className: clsx39("flex-row-2 grow", { "text-warning": softRequired && !hasValue }),
7997
+ className: clsx41("flex-row-2 grow", { "text-warning": softRequired && !hasValue }),
7975
7998
  children: [
7976
- /* @__PURE__ */ jsx52(
7999
+ /* @__PURE__ */ jsx53(
7977
8000
  Input,
7978
8001
  {
7979
8002
  expanded: false,
7980
- className: clsx39("!ring-0 !border-0 !outline-0 !p-0 !m-0 !w-fit !shadow-none !rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
8003
+ className: clsx41("!ring-0 !border-0 !outline-0 !p-0 !m-0 !w-fit !shadow-none !rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
7981
8004
  value: value?.toString() ?? "",
7982
8005
  type: "number",
7983
8006
  readOnly,
@@ -8000,7 +8023,7 @@ var NumberProperty = ({
8000
8023
  }
8001
8024
  }
8002
8025
  ),
8003
- suffix && /* @__PURE__ */ jsx52("span", { className: clsx39("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
8026
+ suffix && /* @__PURE__ */ jsx53("span", { className: clsx41("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
8004
8027
  ]
8005
8028
  }
8006
8029
  )
@@ -8010,8 +8033,8 @@ var NumberProperty = ({
8010
8033
 
8011
8034
  // src/components/properties/SelectProperty.tsx
8012
8035
  import { List as List2, Plus as Plus3 } from "lucide-react";
8013
- import clsx40 from "clsx";
8014
- import { jsx as jsx53 } from "react/jsx-runtime";
8036
+ import clsx42 from "clsx";
8037
+ import { jsx as jsx54 } from "react/jsx-runtime";
8015
8038
  var SingleSelectProperty = ({
8016
8039
  overwriteTranslation,
8017
8040
  value,
@@ -8025,7 +8048,7 @@ var SingleSelectProperty = ({
8025
8048
  }) => {
8026
8049
  const translation = useTranslation([formTranslation], overwriteTranslation);
8027
8050
  const hasValue = value !== void 0;
8028
- return /* @__PURE__ */ jsx53(
8051
+ return /* @__PURE__ */ jsx54(
8029
8052
  PropertyBase,
8030
8053
  {
8031
8054
  name,
@@ -8033,15 +8056,15 @@ var SingleSelectProperty = ({
8033
8056
  readOnly,
8034
8057
  softRequired,
8035
8058
  hasValue,
8036
- icon: /* @__PURE__ */ jsx53(List2, { size: 24 }),
8037
- input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx53(
8059
+ icon: /* @__PURE__ */ jsx54(List2, { size: 24 }),
8060
+ input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx54(
8038
8061
  Select,
8039
8062
  {
8040
8063
  ...selectProps,
8041
8064
  value,
8042
8065
  options,
8043
8066
  disabled: readOnly,
8044
- className: clsx40("w-full"),
8067
+ className: clsx42("w-full"),
8045
8068
  hintText: `${translation("select")}...`,
8046
8069
  searchOptions: {
8047
8070
  sortingFunction: (a, b) => a.value.localeCompare(b.value),
@@ -8051,10 +8074,10 @@ var SingleSelectProperty = ({
8051
8074
  if (!onAddNew && !search.trim()) {
8052
8075
  return void 0;
8053
8076
  }
8054
- return /* @__PURE__ */ jsx53(
8077
+ return /* @__PURE__ */ jsx54(
8055
8078
  SelectTile,
8056
8079
  {
8057
- prefix: /* @__PURE__ */ jsx53(Plus3, {}),
8080
+ prefix: /* @__PURE__ */ jsx54(Plus3, {}),
8058
8081
  title: { value: `${translation("add")} ${search.trim()}` },
8059
8082
  onClick: () => {
8060
8083
  onAddNew(search);
@@ -8064,7 +8087,7 @@ var SingleSelectProperty = ({
8064
8087
  }
8065
8088
  );
8066
8089
  },
8067
- triggerClassName: clsx40(
8090
+ triggerClassName: clsx42(
8068
8091
  "!border-none",
8069
8092
  {
8070
8093
  "!bg-warning !text-surface-warning": softRequired2 && !hasValue,
@@ -8080,12 +8103,12 @@ var SingleSelectProperty = ({
8080
8103
 
8081
8104
  // src/components/properties/TextProperty.tsx
8082
8105
  import { Text } from "lucide-react";
8083
- import clsx42 from "clsx";
8106
+ import clsx44 from "clsx";
8084
8107
 
8085
8108
  // src/components/user-action/Textarea.tsx
8086
8109
  import { useEffect as useEffect23, useState as useState23 } from "react";
8087
- import clsx41 from "clsx";
8088
- import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
8110
+ import clsx43 from "clsx";
8111
+ import { jsx as jsx55, jsxs as jsxs36 } from "react/jsx-runtime";
8089
8112
  var Textarea = ({
8090
8113
  label,
8091
8114
  headline,
@@ -8109,19 +8132,19 @@ var Textarea = ({
8109
8132
  clearTimer();
8110
8133
  };
8111
8134
  return /* @__PURE__ */ jsxs36("div", { className: "w-full", children: [
8112
- label && /* @__PURE__ */ jsx54(
8135
+ label && /* @__PURE__ */ jsx55(
8113
8136
  Label,
8114
8137
  {
8115
8138
  ...label,
8116
8139
  htmlFor: id,
8117
- className: clsx41("mb-1", label.className),
8140
+ className: clsx43("mb-1", label.className),
8118
8141
  labelType: label.labelType ?? "labelSmall"
8119
8142
  }
8120
8143
  ),
8121
8144
  /* @__PURE__ */ jsxs36(
8122
8145
  "div",
8123
8146
  {
8124
- className: clsx41(
8147
+ className: clsx43(
8125
8148
  "bg-surface text-on-surface relative",
8126
8149
  {
8127
8150
  "shadow border-2 rounded-lg": defaultStyle,
@@ -8130,12 +8153,12 @@ var Textarea = ({
8130
8153
  }
8131
8154
  ),
8132
8155
  children: [
8133
- headline && /* @__PURE__ */ jsx54("span", { className: "mx-3 mt-3 block textstyle-label-md", children: headline }),
8134
- /* @__PURE__ */ jsx54(
8156
+ headline && /* @__PURE__ */ jsx55("span", { className: "mx-3 mt-3 block textstyle-label-md", children: headline }),
8157
+ /* @__PURE__ */ jsx55(
8135
8158
  "textarea",
8136
8159
  {
8137
8160
  id,
8138
- className: clsx41("pt-0 px-3 border-transparent appearance-none w-full leading-tight focus:ring-0 focus:outline-none", {
8161
+ className: clsx43("pt-0 px-3 border-transparent appearance-none w-full leading-tight focus:ring-0 focus:outline-none", {
8139
8162
  "resize-none": !resizable,
8140
8163
  "h-32": defaultStyle,
8141
8164
  "mt-3": !headline,
@@ -8164,7 +8187,7 @@ var Textarea = ({
8164
8187
  ]
8165
8188
  }
8166
8189
  ),
8167
- hasFocus && disclaimer && /* @__PURE__ */ jsx54("label", { className: "text-negative", children: disclaimer })
8190
+ hasFocus && disclaimer && /* @__PURE__ */ jsx55("label", { className: "text-negative", children: disclaimer })
8168
8191
  ] });
8169
8192
  };
8170
8193
  var TextareaUncontrolled = ({
@@ -8176,7 +8199,7 @@ var TextareaUncontrolled = ({
8176
8199
  useEffect23(() => {
8177
8200
  setText(value);
8178
8201
  }, [value]);
8179
- return /* @__PURE__ */ jsx54(
8202
+ return /* @__PURE__ */ jsx55(
8180
8203
  Textarea,
8181
8204
  {
8182
8205
  ...props,
@@ -8190,7 +8213,7 @@ var TextareaUncontrolled = ({
8190
8213
  };
8191
8214
 
8192
8215
  // src/components/properties/TextProperty.tsx
8193
- import { jsx as jsx55 } from "react/jsx-runtime";
8216
+ import { jsx as jsx56 } from "react/jsx-runtime";
8194
8217
  var defaultTextPropertyTranslation = {
8195
8218
  en: {
8196
8219
  text: "Text"
@@ -8210,17 +8233,17 @@ var TextProperty = ({
8210
8233
  }) => {
8211
8234
  const translation = useTranslation([defaultTextPropertyTranslation], overwriteTranslation);
8212
8235
  const hasValue = value !== void 0;
8213
- return /* @__PURE__ */ jsx55(
8236
+ return /* @__PURE__ */ jsx56(
8214
8237
  PropertyBase,
8215
8238
  {
8216
8239
  ...baseProps,
8217
8240
  onRemove,
8218
8241
  hasValue,
8219
- icon: /* @__PURE__ */ jsx55(Text, { size: 24 }),
8220
- input: ({ softRequired }) => /* @__PURE__ */ jsx55(
8242
+ icon: /* @__PURE__ */ jsx56(Text, { size: 24 }),
8243
+ input: ({ softRequired }) => /* @__PURE__ */ jsx56(
8221
8244
  Textarea,
8222
8245
  {
8223
- className: clsx42("ring-0 border-0 outline-0 !px-0 p-0 m-0 shadow-none rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
8246
+ className: clsx44("ring-0 border-0 outline-0 !px-0 p-0 m-0 shadow-none rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
8224
8247
  rows: 5,
8225
8248
  defaultStyle: false,
8226
8249
  value: value ?? "",
@@ -8247,12 +8270,12 @@ var TextProperty = ({
8247
8270
  };
8248
8271
 
8249
8272
  // src/components/table/FillerRowElement.tsx
8250
- import { clsx as clsx43 } from "clsx";
8251
- import { jsx as jsx56 } from "react/jsx-runtime";
8273
+ import { clsx as clsx45 } from "clsx";
8274
+ import { jsx as jsx57 } from "react/jsx-runtime";
8252
8275
  var FillerRowElement = ({
8253
8276
  className
8254
8277
  }) => {
8255
- return /* @__PURE__ */ jsx56("div", { className: clsx43("flex flex-row items-center w-1/2 h-4 text-disabled-text font-bold", className), children: "-" });
8278
+ return /* @__PURE__ */ jsx57("div", { className: clsx45("flex flex-row items-center w-1/2 h-4 text-disabled-text font-bold", className), children: "-" });
8256
8279
  };
8257
8280
 
8258
8281
  // src/components/table/Filter.ts
@@ -8271,7 +8294,7 @@ var TableFilters = {
8271
8294
 
8272
8295
  // src/components/table/Table.tsx
8273
8296
  import { useCallback as useCallback9, useEffect as useEffect26, useMemo as useMemo3, useRef as useRef7, useState as useState25 } from "react";
8274
- import clsx46 from "clsx";
8297
+ import clsx48 from "clsx";
8275
8298
  import {
8276
8299
  flexRender,
8277
8300
  getCoreRowModel,
@@ -8285,7 +8308,7 @@ import { Scrollbars as Scrollbars3 } from "react-custom-scrollbars-2";
8285
8308
  // src/components/table/TableFilterButton.tsx
8286
8309
  import { FilterIcon } from "lucide-react";
8287
8310
  import { useEffect as useEffect24, useState as useState24 } from "react";
8288
- import { Fragment as Fragment6, jsx as jsx57, jsxs as jsxs37 } from "react/jsx-runtime";
8311
+ import { Fragment as Fragment6, jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
8289
8312
  var defaultTableFilterTranslation = {
8290
8313
  en: {
8291
8314
  filter: "Filter",
@@ -8315,12 +8338,12 @@ var TableFilterButton = ({
8315
8338
  useEffect24(() => {
8316
8339
  setFilterValue(columnFilterValue);
8317
8340
  }, [columnFilterValue]);
8318
- return /* @__PURE__ */ jsx57(
8341
+ return /* @__PURE__ */ jsx58(
8319
8342
  Menu,
8320
8343
  {
8321
8344
  trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ jsxs37("div", { ref, className: "relative", children: [
8322
- /* @__PURE__ */ jsx57(IconButton, { color: "neutral", size: "tiny", onClick: toggleOpen, children: /* @__PURE__ */ jsx57(FilterIcon, {}) }),
8323
- hasFilter && /* @__PURE__ */ jsx57(
8345
+ /* @__PURE__ */ jsx58(IconButton, { color: "neutral", size: "tiny", onClick: toggleOpen, children: /* @__PURE__ */ jsx58(FilterIcon, {}) }),
8346
+ hasFilter && /* @__PURE__ */ jsx58(
8324
8347
  "div",
8325
8348
  {
8326
8349
  className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
@@ -8329,8 +8352,8 @@ var TableFilterButton = ({
8329
8352
  )
8330
8353
  ] }),
8331
8354
  children: ({ close }) => /* @__PURE__ */ jsxs37("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
8332
- /* @__PURE__ */ jsx57("h4", { className: "textstyle-title-sm", children: translation("filter") }),
8333
- filterType === "text" && /* @__PURE__ */ jsx57(
8355
+ /* @__PURE__ */ jsx58("h4", { className: "textstyle-title-sm", children: translation("filter") }),
8356
+ filterType === "text" && /* @__PURE__ */ jsx58(
8334
8357
  Input,
8335
8358
  {
8336
8359
  value: filterValue ?? "",
@@ -8341,7 +8364,7 @@ var TableFilterButton = ({
8341
8364
  }
8342
8365
  ),
8343
8366
  filterType === "range" && /* @__PURE__ */ jsxs37("div", { className: "flex-row-2 items-center", children: [
8344
- /* @__PURE__ */ jsx57(
8367
+ /* @__PURE__ */ jsx58(
8345
8368
  Input,
8346
8369
  {
8347
8370
  value: filterValue?.[0] ?? "",
@@ -8354,8 +8377,8 @@ var TableFilterButton = ({
8354
8377
  className: "h-10 input-indicator-hidden w-40"
8355
8378
  }
8356
8379
  ),
8357
- /* @__PURE__ */ jsx57("span", { className: "font-bold", children: "-" }),
8358
- /* @__PURE__ */ jsx57(
8380
+ /* @__PURE__ */ jsx58("span", { className: "font-bold", children: "-" }),
8381
+ /* @__PURE__ */ jsx58(
8359
8382
  Input,
8360
8383
  {
8361
8384
  value: filterValue?.[1] ?? "",
@@ -8370,7 +8393,7 @@ var TableFilterButton = ({
8370
8393
  )
8371
8394
  ] }),
8372
8395
  filterType === "dateRange" && /* @__PURE__ */ jsxs37(Fragment6, { children: [
8373
- /* @__PURE__ */ jsx57(
8396
+ /* @__PURE__ */ jsx58(
8374
8397
  Input,
8375
8398
  {
8376
8399
  value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
@@ -8383,7 +8406,7 @@ var TableFilterButton = ({
8383
8406
  className: "h-10 w-50"
8384
8407
  }
8385
8408
  ),
8386
- /* @__PURE__ */ jsx57(
8409
+ /* @__PURE__ */ jsx58(
8387
8410
  Input,
8388
8411
  {
8389
8412
  value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
@@ -8398,11 +8421,11 @@ var TableFilterButton = ({
8398
8421
  )
8399
8422
  ] }),
8400
8423
  /* @__PURE__ */ jsxs37("div", { className: "flex-row-2 justify-end w-full", children: [
8401
- hasFilter && /* @__PURE__ */ jsx57(SolidButton, { color: "negative", size: "small", onClick: () => {
8424
+ hasFilter && /* @__PURE__ */ jsx58(SolidButton, { color: "negative", size: "small", onClick: () => {
8402
8425
  column.setFilterValue(void 0);
8403
8426
  close();
8404
8427
  }, children: translation("remove") }),
8405
- /* @__PURE__ */ jsx57(SolidButton, { size: "small", onClick: () => {
8428
+ /* @__PURE__ */ jsx58(SolidButton, { size: "small", onClick: () => {
8406
8429
  column.setFilterValue(filterValue);
8407
8430
  close();
8408
8431
  }, children: translation("apply") })
@@ -8414,8 +8437,8 @@ var TableFilterButton = ({
8414
8437
 
8415
8438
  // src/components/table/TableSortButton.tsx
8416
8439
  import { ChevronDown as ChevronDown3, ChevronsUpDown, ChevronUp } from "lucide-react";
8417
- import clsx44 from "clsx";
8418
- import { jsx as jsx58 } from "react/jsx-runtime";
8440
+ import clsx46 from "clsx";
8441
+ import { jsx as jsx59 } from "react/jsx-runtime";
8419
8442
  var TableSortButton = ({
8420
8443
  sortDirection,
8421
8444
  invert = false,
@@ -8423,20 +8446,20 @@ var TableSortButton = ({
8423
8446
  className,
8424
8447
  ...buttonProps
8425
8448
  }) => {
8426
- let icon = /* @__PURE__ */ jsx58(ChevronsUpDown, { className: "w-full h-full" });
8449
+ let icon = /* @__PURE__ */ jsx59(ChevronsUpDown, { className: "w-full h-full" });
8427
8450
  if (sortDirection) {
8428
8451
  let usedSortDirection = sortDirection;
8429
8452
  if (invert) {
8430
8453
  usedSortDirection = usedSortDirection === "desc" ? "asc" : "desc";
8431
8454
  }
8432
- icon = usedSortDirection === "asc" ? /* @__PURE__ */ jsx58(ChevronUp, { className: "w-full h-full" }) : /* @__PURE__ */ jsx58(ChevronDown3, { className: "w-full h-full" });
8455
+ icon = usedSortDirection === "asc" ? /* @__PURE__ */ jsx59(ChevronUp, { className: "w-full h-full" }) : /* @__PURE__ */ jsx59(ChevronDown3, { className: "w-full h-full" });
8433
8456
  }
8434
- return /* @__PURE__ */ jsx58(
8457
+ return /* @__PURE__ */ jsx59(
8435
8458
  IconButton,
8436
8459
  {
8437
8460
  size: "tiny",
8438
8461
  color,
8439
- className: clsx44(className),
8462
+ className: clsx46(className),
8440
8463
  ...buttonProps,
8441
8464
  children: icon
8442
8465
  }
@@ -8455,17 +8478,17 @@ var useResizeCallbackWrapper = (callback) => {
8455
8478
  };
8456
8479
 
8457
8480
  // src/components/table/TableCell.tsx
8458
- import { clsx as clsx45 } from "clsx";
8459
- import { jsx as jsx59 } from "react/jsx-runtime";
8481
+ import { clsx as clsx47 } from "clsx";
8482
+ import { jsx as jsx60 } from "react/jsx-runtime";
8460
8483
  var TableCell = ({
8461
8484
  children,
8462
8485
  className
8463
8486
  }) => {
8464
- return /* @__PURE__ */ jsx59("span", { className: clsx45("block max-w-full overflow-ellipsis truncate", className), children });
8487
+ return /* @__PURE__ */ jsx60("span", { className: clsx47("block max-w-full overflow-ellipsis truncate", className), children });
8465
8488
  };
8466
8489
 
8467
8490
  // src/components/table/Table.tsx
8468
- import { jsx as jsx60, jsxs as jsxs38 } from "react/jsx-runtime";
8491
+ import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
8469
8492
  var Table = ({
8470
8493
  data,
8471
8494
  fillerRow,
@@ -8584,7 +8607,7 @@ var Table = ({
8584
8607
  minSize: 60,
8585
8608
  maxSize: 700,
8586
8609
  cell: ({ cell }) => {
8587
- return /* @__PURE__ */ jsx60(TableCell, { children: cell.getValue() });
8610
+ return /* @__PURE__ */ jsx61(TableCell, { children: cell.getValue() });
8588
8611
  },
8589
8612
  ...defaultColumn
8590
8613
  },
@@ -8669,8 +8692,8 @@ var Table = ({
8669
8692
  }
8670
8693
  return colSizes;
8671
8694
  }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
8672
- return /* @__PURE__ */ jsxs38("div", { ref, className: clsx46("flex-col-4", className), children: [
8673
- /* @__PURE__ */ jsx60(
8695
+ return /* @__PURE__ */ jsxs38("div", { ref, className: clsx48("flex-col-4", className), children: [
8696
+ /* @__PURE__ */ jsx61(
8674
8697
  Scrollbars3,
8675
8698
  {
8676
8699
  autoHeight: true,
@@ -8680,13 +8703,13 @@ var Table = ({
8680
8703
  "table",
8681
8704
  {
8682
8705
  ref: tableRef,
8683
- className: clsx46(tableClassName),
8706
+ className: clsx48(tableClassName),
8684
8707
  style: {
8685
8708
  ...columnSizeVars,
8686
8709
  width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
8687
8710
  },
8688
8711
  children: [
8689
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx60("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx60(
8712
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx61("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx61(
8690
8713
  "col",
8691
8714
  {
8692
8715
  style: {
@@ -8697,22 +8720,22 @@ var Table = ({
8697
8720
  },
8698
8721
  header.id
8699
8722
  )) }, headerGroup.id)),
8700
- /* @__PURE__ */ jsx60("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx60("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
8723
+ /* @__PURE__ */ jsx61("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx61("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
8701
8724
  return /* @__PURE__ */ jsxs38(
8702
8725
  "th",
8703
8726
  {
8704
8727
  colSpan: header.colSpan,
8705
- className: clsx46("relative group", header.column.columnDef.meta?.className),
8728
+ className: clsx48("relative group", header.column.columnDef.meta?.className),
8706
8729
  children: [
8707
- /* @__PURE__ */ jsx60("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs38("div", { className: "flex-row-1 items-center", children: [
8708
- header.column.getCanSort() && /* @__PURE__ */ jsx60(
8730
+ /* @__PURE__ */ jsx61("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs38("div", { className: "flex-row-1 items-center", children: [
8731
+ header.column.getCanSort() && /* @__PURE__ */ jsx61(
8709
8732
  TableSortButton,
8710
8733
  {
8711
8734
  sortDirection: header.column.getIsSorted(),
8712
8735
  onClick: () => header.column.toggleSorting()
8713
8736
  }
8714
8737
  ),
8715
- header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ jsx60(
8738
+ header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ jsx61(
8716
8739
  TableFilterButton,
8717
8740
  {
8718
8741
  column: header.column,
@@ -8724,7 +8747,7 @@ var Table = ({
8724
8747
  header.getContext()
8725
8748
  )
8726
8749
  ] }) }),
8727
- header.column.getCanResize() && /* @__PURE__ */ jsx60(
8750
+ header.column.getCanResize() && /* @__PURE__ */ jsx61(
8728
8751
  "div",
8729
8752
  {
8730
8753
  onMouseDown: header.getResizeHandler(),
@@ -8745,16 +8768,16 @@ var Table = ({
8745
8768
  }) }, headerGroup.id)) }),
8746
8769
  /* @__PURE__ */ jsxs38("tbody", { children: [
8747
8770
  table.getRowModel().rows.map((row) => {
8748
- return /* @__PURE__ */ jsx60("tr", { onClick: () => onRowClick(row, table), className: table.options.meta?.bodyRowClassName, children: row.getVisibleCells().map((cell) => {
8749
- return /* @__PURE__ */ jsx60("td", { children: flexRender(
8771
+ return /* @__PURE__ */ jsx61("tr", { onClick: () => onRowClick(row, table), className: table.options.meta?.bodyRowClassName, children: row.getVisibleCells().map((cell) => {
8772
+ return /* @__PURE__ */ jsx61("td", { children: flexRender(
8750
8773
  cell.column.columnDef.cell,
8751
8774
  cell.getContext()
8752
8775
  ) }, cell.id);
8753
8776
  }) }, row.id);
8754
8777
  }),
8755
8778
  range(table.getState().pagination.pageSize - table.getRowModel().rows.length, { allowEmptyRange: true }).map((row, index) => {
8756
- return /* @__PURE__ */ jsx60("tr", { children: columns.map((column) => {
8757
- return /* @__PURE__ */ jsx60("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ jsx60(FillerRowElement, {}) }, column.id);
8779
+ return /* @__PURE__ */ jsx61("tr", { children: columns.map((column) => {
8780
+ return /* @__PURE__ */ jsx61("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ jsx61(FillerRowElement, {}) }, column.id);
8758
8781
  }) }, "filler-row-" + index);
8759
8782
  })
8760
8783
  ] })
@@ -8763,7 +8786,7 @@ var Table = ({
8763
8786
  )
8764
8787
  }
8765
8788
  ),
8766
- /* @__PURE__ */ jsx60("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ jsx60(
8789
+ /* @__PURE__ */ jsx61("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ jsx61(
8767
8790
  Pagination,
8768
8791
  {
8769
8792
  pageIndex: table.getState().pagination.pageIndex,
@@ -8778,7 +8801,7 @@ var TableUncontrolled = ({ data, ...props }) => {
8778
8801
  useEffect26(() => {
8779
8802
  setUsedData(data);
8780
8803
  }, [data]);
8781
- return /* @__PURE__ */ jsx60(
8804
+ return /* @__PURE__ */ jsx61(
8782
8805
  Table,
8783
8806
  {
8784
8807
  ...props,
@@ -8802,7 +8825,7 @@ var TableWithSelection = ({
8802
8825
  {
8803
8826
  id: selectionRowId,
8804
8827
  header: ({ table }) => {
8805
- return /* @__PURE__ */ jsx60(
8828
+ return /* @__PURE__ */ jsx61(
8806
8829
  Checkbox,
8807
8830
  {
8808
8831
  checked: table.getIsSomeRowsSelected() ? "indeterminate" : table.getIsAllRowsSelected(),
@@ -8815,7 +8838,7 @@ var TableWithSelection = ({
8815
8838
  );
8816
8839
  },
8817
8840
  cell: ({ row }) => {
8818
- return /* @__PURE__ */ jsx60(
8841
+ return /* @__PURE__ */ jsx61(
8819
8842
  Checkbox,
8820
8843
  {
8821
8844
  disabled: !row.getCanSelect(),
@@ -8834,15 +8857,15 @@ var TableWithSelection = ({
8834
8857
  ...columns
8835
8858
  ];
8836
8859
  }, [columns, selectionRowId]);
8837
- return /* @__PURE__ */ jsx60(
8860
+ return /* @__PURE__ */ jsx61(
8838
8861
  Table,
8839
8862
  {
8840
8863
  columns: columnsWithSelection,
8841
8864
  fillerRow: (columnId, table) => {
8842
8865
  if (columnId === selectionRowId) {
8843
- return /* @__PURE__ */ jsx60(Checkbox, { checked: false, disabled: true, containerClassName: "max-w-6" });
8866
+ return /* @__PURE__ */ jsx61(Checkbox, { checked: false, disabled: true, containerClassName: "max-w-6" });
8844
8867
  }
8845
- return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ jsx60(FillerRowElement, {});
8868
+ return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ jsx61(FillerRowElement, {});
8846
8869
  },
8847
8870
  state: {
8848
8871
  rowSelection,
@@ -8856,7 +8879,7 @@ var TableWithSelection = ({
8856
8879
  },
8857
8880
  meta: {
8858
8881
  ...meta,
8859
- bodyRowClassName: clsx46(
8882
+ bodyRowClassName: clsx48(
8860
8883
  { "cursor-pointer": !disableClickRowClickSelection },
8861
8884
  meta?.bodyRowClassName
8862
8885
  )
@@ -8868,7 +8891,7 @@ var TableWithSelection = ({
8868
8891
 
8869
8892
  // src/components/user-action/CopyToClipboardWrapper.tsx
8870
8893
  import { useState as useState26 } from "react";
8871
- import { clsx as clsx47 } from "clsx";
8894
+ import { clsx as clsx49 } from "clsx";
8872
8895
 
8873
8896
  // src/util/writeToClipboard.ts
8874
8897
  var writeToClipboard = (text) => {
@@ -8877,7 +8900,7 @@ var writeToClipboard = (text) => {
8877
8900
 
8878
8901
  // src/components/user-action/CopyToClipboardWrapper.tsx
8879
8902
  import { CheckIcon, Copy } from "lucide-react";
8880
- import { jsx as jsx61, jsxs as jsxs39 } from "react/jsx-runtime";
8903
+ import { jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
8881
8904
  var CopyToClipboardWrapper = ({
8882
8905
  children,
8883
8906
  textToCopy,
@@ -8911,7 +8934,7 @@ var CopyToClipboardWrapper = ({
8911
8934
  return /* @__PURE__ */ jsxs39(
8912
8935
  "div",
8913
8936
  {
8914
- className: clsx47("relative inline-block cursor-copy", containerClassName),
8937
+ className: clsx49("relative inline-block cursor-copy", containerClassName),
8915
8938
  onMouseEnter: () => {
8916
8939
  setIsShowingIndication(true);
8917
8940
  },
@@ -8929,7 +8952,7 @@ var CopyToClipboardWrapper = ({
8929
8952
  /* @__PURE__ */ jsxs39(
8930
8953
  "div",
8931
8954
  {
8932
- className: clsx47(
8955
+ className: clsx49(
8933
8956
  `absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
8934
8957
  shadow-around-md bg-tooltip-background cursor-default pointer-events-none`,
8935
8958
  "transition-opacity duration-200",
@@ -8942,17 +8965,17 @@ var CopyToClipboardWrapper = ({
8942
8965
  },
8943
8966
  children: [
8944
8967
  isShowingConfirmation && /* @__PURE__ */ jsxs39("div", { className: "flex-row-1", children: [
8945
- /* @__PURE__ */ jsx61(CheckIcon, { size: 16, className: "text-positive" }),
8968
+ /* @__PURE__ */ jsx62(CheckIcon, { size: 16, className: "text-positive" }),
8946
8969
  translation("copied")
8947
8970
  ] }),
8948
8971
  isShowingIndication && /* @__PURE__ */ jsxs39("div", { className: "flex-row-1 text-description", children: [
8949
- /* @__PURE__ */ jsx61(Copy, { size: 16 }),
8972
+ /* @__PURE__ */ jsx62(Copy, { size: 16 }),
8950
8973
  translation("clickToCopy")
8951
8974
  ] }),
8952
- /* @__PURE__ */ jsx61(
8975
+ /* @__PURE__ */ jsx62(
8953
8976
  "div",
8954
8977
  {
8955
- className: clsx47(`absolute w-0 h-0`, triangleClasses[position]),
8978
+ className: clsx49(`absolute w-0 h-0`, triangleClasses[position]),
8956
8979
  style: { ...triangleStyle[position], zIndex: zIndex + 1 }
8957
8980
  }
8958
8981
  )
@@ -8965,8 +8988,8 @@ var CopyToClipboardWrapper = ({
8965
8988
  };
8966
8989
 
8967
8990
  // src/components/user-action/DateAndTimePicker.tsx
8968
- import clsx48 from "clsx";
8969
- import { jsx as jsx62, jsxs as jsxs40 } from "react/jsx-runtime";
8991
+ import clsx50 from "clsx";
8992
+ import { jsx as jsx63, jsxs as jsxs40 } from "react/jsx-runtime";
8970
8993
  var DateTimePicker = ({
8971
8994
  overwriteTranslation,
8972
8995
  value = /* @__PURE__ */ new Date(),
@@ -8985,7 +9008,7 @@ var DateTimePicker = ({
8985
9008
  let dateDisplay;
8986
9009
  let timeDisplay;
8987
9010
  if (useDate) {
8988
- dateDisplay = /* @__PURE__ */ jsx62(
9011
+ dateDisplay = /* @__PURE__ */ jsx63(
8989
9012
  DatePicker,
8990
9013
  {
8991
9014
  ...datePickerProps,
@@ -8999,11 +9022,11 @@ var DateTimePicker = ({
8999
9022
  );
9000
9023
  }
9001
9024
  if (useTime) {
9002
- timeDisplay = /* @__PURE__ */ jsx62(
9025
+ timeDisplay = /* @__PURE__ */ jsx63(
9003
9026
  TimePicker,
9004
9027
  {
9005
9028
  ...timePickerProps,
9006
- className: clsx48("h-full", { "justify-between w-full": mode === "time" }),
9029
+ className: clsx50("h-full", { "justify-between w-full": mode === "time" }),
9007
9030
  maxHeight: 250,
9008
9031
  time: value,
9009
9032
  onChange
@@ -9015,9 +9038,9 @@ var DateTimePicker = ({
9015
9038
  dateDisplay,
9016
9039
  timeDisplay
9017
9040
  ] }),
9018
- /* @__PURE__ */ jsx62("div", { className: "flex-row-2 justify-end", children: /* @__PURE__ */ jsxs40("div", { className: "flex-row-2 mt-1", children: [
9019
- /* @__PURE__ */ jsx62(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation("clear") }),
9020
- /* @__PURE__ */ jsx62(
9041
+ /* @__PURE__ */ jsx63("div", { className: "flex-row-2 justify-end", children: /* @__PURE__ */ jsxs40("div", { className: "flex-row-2 mt-1", children: [
9042
+ /* @__PURE__ */ jsx63(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation("clear") }),
9043
+ /* @__PURE__ */ jsx63(
9021
9044
  SolidButton,
9022
9045
  {
9023
9046
  size: "medium",
@@ -9031,8 +9054,8 @@ var DateTimePicker = ({
9031
9054
 
9032
9055
  // src/components/user-action/ScrollPicker.tsx
9033
9056
  import { useCallback as useCallback10, useEffect as useEffect27, useState as useState27 } from "react";
9034
- import clsx49 from "clsx";
9035
- import { jsx as jsx63, jsxs as jsxs41 } from "react/jsx-runtime";
9057
+ import clsx51 from "clsx";
9058
+ import { jsx as jsx64, jsxs as jsxs41 } from "react/jsx-runtime";
9036
9059
  var up = 1;
9037
9060
  var down = -1;
9038
9061
  var ScrollPicker = ({
@@ -9171,7 +9194,7 @@ var ScrollPicker = ({
9171
9194
  }
9172
9195
  return clamp(1 - opacityValue / max);
9173
9196
  };
9174
- return /* @__PURE__ */ jsx63(
9197
+ return /* @__PURE__ */ jsx64(
9175
9198
  "div",
9176
9199
  {
9177
9200
  className: "relative overflow-hidden",
@@ -9182,14 +9205,14 @@ var ScrollPicker = ({
9182
9205
  }
9183
9206
  },
9184
9207
  children: /* @__PURE__ */ jsxs41("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
9185
- /* @__PURE__ */ jsx63(
9208
+ /* @__PURE__ */ jsx64(
9186
9209
  "div",
9187
9210
  {
9188
9211
  className: "absolute z-[1] top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2 w-full min-w-[40px] border border-divider/30 border-y-2 border-x-0 ",
9189
9212
  style: { height: `${itemHeight}px` }
9190
9213
  }
9191
9214
  ),
9192
- /* @__PURE__ */ jsx63(
9215
+ /* @__PURE__ */ jsx64(
9193
9216
  "div",
9194
9217
  {
9195
9218
  className: "flex-col-2 select-none",
@@ -9197,10 +9220,10 @@ var ScrollPicker = ({
9197
9220
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
9198
9221
  columnGap: `${distance}px`
9199
9222
  },
9200
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx63(
9223
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx64(
9201
9224
  "div",
9202
9225
  {
9203
- className: clsx49(
9226
+ className: clsx51(
9204
9227
  `flex-col-2 items-center justify-center rounded-md`,
9205
9228
  {
9206
9229
  "text-primary font-bold": currentIndex === index,
@@ -9229,8 +9252,8 @@ var ScrollPicker = ({
9229
9252
  // src/components/user-action/ToggleableInput.tsx
9230
9253
  import { useEffect as useEffect28, useRef as useRef8, useState as useState28 } from "react";
9231
9254
  import { Pencil } from "lucide-react";
9232
- import clsx50 from "clsx";
9233
- import { jsx as jsx64, jsxs as jsxs42 } from "react/jsx-runtime";
9255
+ import clsx52 from "clsx";
9256
+ import { jsx as jsx65, jsxs as jsxs42 } from "react/jsx-runtime";
9234
9257
  var ToggleableInput = ({
9235
9258
  type = "text",
9236
9259
  value,
@@ -9261,10 +9284,10 @@ var ToggleableInput = ({
9261
9284
  /* @__PURE__ */ jsxs42(
9262
9285
  "div",
9263
9286
  {
9264
- className: clsx50("flex-row-2 items-center w-full overflow-hidden", { "cursor-pointer": !isEditing }),
9287
+ className: clsx52("flex-row-2 items-center w-full overflow-hidden", { "cursor-pointer": !isEditing }),
9265
9288
  onClick: () => !isEditing ? setIsEditing(!isEditing) : void 0,
9266
9289
  children: [
9267
- /* @__PURE__ */ jsx64("div", { className: clsx50("flex-row-2 overflow-hidden", { "flex-1": isEditing }), children: isEditing ? /* @__PURE__ */ jsx64(
9290
+ /* @__PURE__ */ jsx65("div", { className: clsx52("flex-row-2 overflow-hidden", { "flex-1": isEditing }), children: isEditing ? /* @__PURE__ */ jsx65(
9268
9291
  "input",
9269
9292
  {
9270
9293
  ref,
@@ -9292,16 +9315,16 @@ var ToggleableInput = ({
9292
9315
  onEditCompletedWrapper(value);
9293
9316
  }
9294
9317
  },
9295
- className: clsx50(`w-full border-none rounded-none ring-0 outline-0 text-inherit bg-inherit shadow-transparent decoration-primary p-0 underline-offset-4`, {
9318
+ className: clsx52(`w-full border-none rounded-none ring-0 outline-0 text-inherit bg-inherit shadow-transparent decoration-primary p-0 underline-offset-4`, {
9296
9319
  underline: isEditing
9297
9320
  }, labelClassName),
9298
9321
  onFocus: (event) => event.target.select()
9299
9322
  }
9300
- ) : /* @__PURE__ */ jsx64("span", { className: clsx50("max-w-xs break-words overflow-hidden", labelClassName), children: value }) }),
9301
- /* @__PURE__ */ jsx64(
9323
+ ) : /* @__PURE__ */ jsx65("span", { className: clsx52("max-w-xs break-words overflow-hidden", labelClassName), children: value }) }),
9324
+ /* @__PURE__ */ jsx65(
9302
9325
  Pencil,
9303
9326
  {
9304
- className: clsx50(`cursor-pointer`, { "text-transparent": isEditing }),
9327
+ className: clsx52(`cursor-pointer`, { "text-transparent": isEditing }),
9305
9328
  size,
9306
9329
  style: { minWidth: `${size}px` }
9307
9330
  }
@@ -9309,7 +9332,7 @@ var ToggleableInput = ({
9309
9332
  ]
9310
9333
  }
9311
9334
  ),
9312
- isEditing && disclaimer && /* @__PURE__ */ jsx64("label", { className: "text-negative", children: disclaimer })
9335
+ isEditing && disclaimer && /* @__PURE__ */ jsx65("label", { className: "text-negative", children: disclaimer })
9313
9336
  ] });
9314
9337
  };
9315
9338
  var ToggleableInputUncontrolled = ({
@@ -9321,7 +9344,7 @@ var ToggleableInputUncontrolled = ({
9321
9344
  useEffect28(() => {
9322
9345
  setValue(initialValue);
9323
9346
  }, [initialValue]);
9324
- return /* @__PURE__ */ jsx64(
9347
+ return /* @__PURE__ */ jsx65(
9325
9348
  ToggleableInput,
9326
9349
  {
9327
9350
  value,
@@ -9435,6 +9458,7 @@ export {
9435
9458
  LoadingAndErrorComponent,
9436
9459
  LoadingAnimation,
9437
9460
  LoadingButton,
9461
+ LoadingContainer,
9438
9462
  LocalStorageService,
9439
9463
  LoopingArrayCalculator,
9440
9464
  MarkdownInterpreter,