@helpwave/hightide 0.1.37 → 0.1.39

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 (144) hide show
  1. package/dist/components/date/DatePicker.js.map +1 -1
  2. package/dist/components/date/DatePicker.mjs.map +1 -1
  3. package/dist/components/date/DayPicker.js.map +1 -1
  4. package/dist/components/date/DayPicker.mjs.map +1 -1
  5. package/dist/components/date/TimeDisplay.js.map +1 -1
  6. package/dist/components/date/TimeDisplay.mjs.map +1 -1
  7. package/dist/components/date/YearMonthPicker.js.map +1 -1
  8. package/dist/components/date/YearMonthPicker.mjs.map +1 -1
  9. package/dist/components/date/index.js.map +1 -1
  10. package/dist/components/date/index.mjs.map +1 -1
  11. package/dist/components/dialog/ConfirmDialog.js +15 -9
  12. package/dist/components/dialog/ConfirmDialog.js.map +1 -1
  13. package/dist/components/dialog/ConfirmDialog.mjs +16 -10
  14. package/dist/components/dialog/ConfirmDialog.mjs.map +1 -1
  15. package/dist/components/dialog/Dialog.d.mts +4 -5
  16. package/dist/components/dialog/Dialog.d.ts +4 -5
  17. package/dist/components/dialog/Dialog.js +15 -9
  18. package/dist/components/dialog/Dialog.js.map +1 -1
  19. package/dist/components/dialog/Dialog.mjs +16 -10
  20. package/dist/components/dialog/Dialog.mjs.map +1 -1
  21. package/dist/components/dialog/DiscardChangesDialog.js +15 -9
  22. package/dist/components/dialog/DiscardChangesDialog.js.map +1 -1
  23. package/dist/components/dialog/DiscardChangesDialog.mjs +16 -10
  24. package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -1
  25. package/dist/components/dialog/InputDialog.js +15 -9
  26. package/dist/components/dialog/InputDialog.js.map +1 -1
  27. package/dist/components/dialog/InputDialog.mjs +16 -10
  28. package/dist/components/dialog/InputDialog.mjs.map +1 -1
  29. package/dist/components/dialog/LanguageDialog.js +188 -154
  30. package/dist/components/dialog/LanguageDialog.js.map +1 -1
  31. package/dist/components/dialog/LanguageDialog.mjs +151 -116
  32. package/dist/components/dialog/LanguageDialog.mjs.map +1 -1
  33. package/dist/components/dialog/ThemeDialog.js +191 -157
  34. package/dist/components/dialog/ThemeDialog.js.map +1 -1
  35. package/dist/components/dialog/ThemeDialog.mjs +151 -116
  36. package/dist/components/dialog/ThemeDialog.mjs.map +1 -1
  37. package/dist/components/dialog/index.js +205 -171
  38. package/dist/components/dialog/index.js.map +1 -1
  39. package/dist/components/dialog/index.mjs +152 -117
  40. package/dist/components/dialog/index.mjs.map +1 -1
  41. package/dist/components/index.js +337 -299
  42. package/dist/components/index.js.map +1 -1
  43. package/dist/components/index.mjs +198 -159
  44. package/dist/components/index.mjs.map +1 -1
  45. package/dist/components/layout/Carousel.d.mts +2 -1
  46. package/dist/components/layout/Carousel.d.ts +2 -1
  47. package/dist/components/layout/Carousel.js +4 -0
  48. package/dist/components/layout/Carousel.js.map +1 -1
  49. package/dist/components/layout/Carousel.mjs +4 -0
  50. package/dist/components/layout/Carousel.mjs.map +1 -1
  51. package/dist/components/layout/TextImage.js.map +1 -1
  52. package/dist/components/layout/TextImage.mjs.map +1 -1
  53. package/dist/components/layout/index.js +4 -0
  54. package/dist/components/layout/index.js.map +1 -1
  55. package/dist/components/layout/index.mjs +4 -0
  56. package/dist/components/layout/index.mjs.map +1 -1
  57. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  58. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
  59. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  60. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
  61. package/dist/components/loading-states/index.js.map +1 -1
  62. package/dist/components/loading-states/index.mjs.map +1 -1
  63. package/dist/components/navigation/Pagination.js.map +1 -1
  64. package/dist/components/navigation/Pagination.mjs.map +1 -1
  65. package/dist/components/navigation/StepperBar.js.map +1 -1
  66. package/dist/components/navigation/StepperBar.mjs.map +1 -1
  67. package/dist/components/navigation/index.js.map +1 -1
  68. package/dist/components/navigation/index.mjs.map +1 -1
  69. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  70. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  71. package/dist/components/properties/DateProperty.js.map +1 -1
  72. package/dist/components/properties/DateProperty.mjs.map +1 -1
  73. package/dist/components/properties/MultiSelectProperty.js +129 -101
  74. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  75. package/dist/components/properties/MultiSelectProperty.mjs +131 -102
  76. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  77. package/dist/components/properties/NumberProperty.js.map +1 -1
  78. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  79. package/dist/components/properties/PropertyBase.js.map +1 -1
  80. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  81. package/dist/components/properties/SelectProperty.js +129 -101
  82. package/dist/components/properties/SelectProperty.js.map +1 -1
  83. package/dist/components/properties/SelectProperty.mjs +131 -102
  84. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  85. package/dist/components/properties/TextProperty.js.map +1 -1
  86. package/dist/components/properties/TextProperty.mjs.map +1 -1
  87. package/dist/components/properties/index.js +129 -101
  88. package/dist/components/properties/index.js.map +1 -1
  89. package/dist/components/properties/index.mjs +131 -102
  90. package/dist/components/properties/index.mjs.map +1 -1
  91. package/dist/components/table/Table.js.map +1 -1
  92. package/dist/components/table/Table.mjs.map +1 -1
  93. package/dist/components/table/TableFilterButton.js.map +1 -1
  94. package/dist/components/table/TableFilterButton.mjs.map +1 -1
  95. package/dist/components/table/index.js.map +1 -1
  96. package/dist/components/table/index.mjs.map +1 -1
  97. package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
  98. package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
  99. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  100. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  101. package/dist/components/user-action/SearchBar.js.map +1 -1
  102. package/dist/components/user-action/SearchBar.mjs.map +1 -1
  103. package/dist/components/user-action/index.js +129 -101
  104. package/dist/components/user-action/index.js.map +1 -1
  105. package/dist/components/user-action/index.mjs +131 -102
  106. package/dist/components/user-action/index.mjs.map +1 -1
  107. package/dist/components/user-action/select/Select.d.mts +2 -0
  108. package/dist/components/user-action/select/Select.d.ts +2 -0
  109. package/dist/components/user-action/select/Select.js +129 -101
  110. package/dist/components/user-action/select/Select.js.map +1 -1
  111. package/dist/components/user-action/select/Select.mjs +131 -102
  112. package/dist/components/user-action/select/Select.mjs.map +1 -1
  113. package/dist/components/user-action/select/index.js +129 -101
  114. package/dist/components/user-action/select/index.js.map +1 -1
  115. package/dist/components/user-action/select/index.mjs +131 -102
  116. package/dist/components/user-action/select/index.mjs.map +1 -1
  117. package/dist/hooks/index.js.map +1 -1
  118. package/dist/hooks/index.mjs.map +1 -1
  119. package/dist/hooks/useValidators.js.map +1 -1
  120. package/dist/hooks/useValidators.mjs.map +1 -1
  121. package/dist/index.js +362 -324
  122. package/dist/index.js.map +1 -1
  123. package/dist/index.mjs +206 -167
  124. package/dist/index.mjs.map +1 -1
  125. package/dist/localization/LanguageProvider.js +1 -1
  126. package/dist/localization/LanguageProvider.js.map +1 -1
  127. package/dist/localization/LanguageProvider.mjs +1 -1
  128. package/dist/localization/LanguageProvider.mjs.map +1 -1
  129. package/dist/localization/index.js +1 -1
  130. package/dist/localization/index.js.map +1 -1
  131. package/dist/localization/index.mjs +1 -1
  132. package/dist/localization/index.mjs.map +1 -1
  133. package/dist/localization/useTranslation.js.map +1 -1
  134. package/dist/localization/useTranslation.mjs.map +1 -1
  135. package/dist/style/globals.css +0 -3
  136. package/dist/theming/index.js +1 -1
  137. package/dist/theming/index.js.map +1 -1
  138. package/dist/theming/index.mjs +1 -1
  139. package/dist/theming/index.mjs.map +1 -1
  140. package/dist/theming/useTheme.js +1 -1
  141. package/dist/theming/useTheme.js.map +1 -1
  142. package/dist/theming/useTheme.mjs +1 -1
  143. package/dist/theming/useTheme.mjs.map +1 -1
  144. package/package.json +1 -1
@@ -7705,9 +7705,8 @@ var TimePickerUncontrolled = ({
7705
7705
  import clsx10 from "clsx";
7706
7706
 
7707
7707
  // src/components/dialog/Dialog.tsx
7708
- import { useEffect as useEffect10 } from "react";
7709
- import { useState as useState9 } from "react";
7710
- import { useRef as useRef4 } from "react";
7708
+ import { useId as useId3 } from "react";
7709
+ import { useEffect as useEffect10, useRef as useRef4, useState as useState9 } from "react";
7711
7710
  import clsx9 from "clsx";
7712
7711
  import { X } from "lucide-react";
7713
7712
 
@@ -8062,7 +8061,7 @@ var useLogOnce = (message, condition, options) => {
8062
8061
 
8063
8062
  // src/components/dialog/Dialog.tsx
8064
8063
  import { createPortal } from "react-dom";
8065
- import { Fragment, jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
8064
+ import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
8066
8065
  var Dialog = ({
8067
8066
  children,
8068
8067
  isOpen,
@@ -8070,13 +8069,16 @@ var Dialog = ({
8070
8069
  description,
8071
8070
  isModal = true,
8072
8071
  onClose,
8073
- className,
8074
8072
  backgroundClassName,
8075
8073
  position = "center",
8076
- isAnimated = true
8074
+ isAnimated = true,
8075
+ containerClassName,
8076
+ ...props
8077
8077
  }) => {
8078
8078
  const translation = useTranslation([formTranslation]);
8079
8079
  const [visible, setVisible] = useState9(isOpen);
8080
+ const generatedId = useId3();
8081
+ const id = props.id ?? generatedId;
8080
8082
  const ref = useRef4(null);
8081
8083
  useEffect10(() => {
8082
8084
  if (isOpen) {
@@ -8103,14 +8105,16 @@ var Dialog = ({
8103
8105
  none: ""
8104
8106
  };
8105
8107
  const positionStyle = positionMap[position];
8108
+ if (!visible) return;
8106
8109
  return createPortal(
8107
- /* @__PURE__ */ jsxs8(Fragment, { children: [
8110
+ /* @__PURE__ */ jsxs8("div", { id: `dialog-container-${id}`, className: clsx9("fixed inset-0 h-screen w-screen", containerClassName), children: [
8108
8111
  /* @__PURE__ */ jsx11(
8109
8112
  "div",
8110
8113
  {
8114
+ id: `dialog-background-${id}`,
8111
8115
  hidden: !visible,
8112
8116
  className: clsx9(
8113
- "fixed inset-0 h-screen w-screen bg-overlay-shadow z-100",
8117
+ "fixed inset-0 h-screen w-screen bg-overlay-shadow",
8114
8118
  {
8115
8119
  "motion-safe:animate-fade-in": isOpen,
8116
8120
  "motion-safe:animate-fade-out": !isOpen
@@ -8129,6 +8133,8 @@ var Dialog = ({
8129
8133
  /* @__PURE__ */ jsxs8(
8130
8134
  "div",
8131
8135
  {
8136
+ ...props,
8137
+ id: `dialog-${id}`,
8132
8138
  ref,
8133
8139
  hidden: !visible,
8134
8140
  onKeyDown: (event) => {
@@ -8142,13 +8148,13 @@ var Dialog = ({
8142
8148
  }
8143
8149
  },
8144
8150
  className: clsx9(
8145
- "flex-col-2 p-4 bg-overlay-background text-overlay-text rounded-xl shadow-hw-bottom max-w-[calc(100vw_-_2rem)] max-h-[calc(100vh_-_2rem)] z-100",
8151
+ "flex-col-2 p-4 bg-overlay-background text-overlay-text rounded-xl shadow-hw-bottom max-w-[calc(100vw_-_2rem)] max-h-[calc(100vh_-_2rem)]",
8146
8152
  {
8147
8153
  "motion-safe:animate-pop-in": isOpen,
8148
8154
  "motion-safe:animate-pop-out": !isOpen
8149
8155
  },
8150
8156
  positionStyle,
8151
- className
8157
+ props.className
8152
8158
  ),
8153
8159
  children: [
8154
8160
  /* @__PURE__ */ jsx11("div", { className: "typography-title-lg mr-8", children: titleElement }),
@@ -8487,8 +8493,9 @@ import {
8487
8493
  useCallback as useCallback6,
8488
8494
  useContext as useContext2,
8489
8495
  useEffect as useEffect13,
8490
- useId as useId3,
8496
+ useId as useId4,
8491
8497
  useImperativeHandle as useImperativeHandle2,
8498
+ useMemo as useMemo2,
8492
8499
  useRef as useRef6,
8493
8500
  useState as useState12
8494
8501
  } from "react";
@@ -8705,9 +8712,9 @@ function useFloatingElement({
8705
8712
 
8706
8713
  // src/components/user-action/select/Select.tsx
8707
8714
  import { createPortal as createPortal2 } from "react-dom";
8708
- import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
8715
+ import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
8709
8716
  var defaultToggleOpenOptions = {
8710
- highlightStartPosition: "first"
8717
+ highlightStartPositionBehavior: "first"
8711
8718
  };
8712
8719
  var SelectContext = createContext2(null);
8713
8720
  function useSelectContext() {
@@ -8730,47 +8737,62 @@ var SelectRoot = ({
8730
8737
  isMultiSelect = false,
8731
8738
  iconAppearance = "left"
8732
8739
  }) => {
8733
- const [options, setOptions] = useState12([]);
8734
8740
  const triggerRef = useRef6(null);
8735
- const generatedId = useId3();
8741
+ const generatedId = useId4();
8736
8742
  const usedId = id ?? generatedId;
8737
8743
  const [internalState, setInternalState] = useState12({
8738
- isOpen
8744
+ isOpen,
8745
+ options: []
8739
8746
  });
8740
- const selectedValues = isMultiSelect ? values ?? [] : [value].filter(Boolean);
8747
+ const selectedValues = useMemo2(
8748
+ () => isMultiSelect ? values ?? [] : [value].filter(Boolean),
8749
+ [isMultiSelect, value, values]
8750
+ );
8751
+ const selectedOptions = useMemo2(
8752
+ () => selectedValues.map((value2) => internalState.options.find((option) => value2 === option.value)).filter(Boolean),
8753
+ [selectedValues, internalState.options]
8754
+ );
8741
8755
  const state = {
8742
8756
  ...internalState,
8743
8757
  id: usedId,
8744
8758
  disabled,
8745
8759
  invalid,
8746
8760
  value: selectedValues,
8747
- options,
8748
- selectedOptions: selectedValues.map((value2) => options.find((option) => value2 === option.value)).filter(Boolean)
8761
+ selectedOptions
8749
8762
  };
8750
8763
  const config = {
8751
8764
  isMultiSelect,
8752
8765
  iconAppearance
8753
8766
  };
8754
8767
  const registerItem = useCallback6((item) => {
8755
- setOptions((prev) => {
8756
- const updated = [...prev, item];
8757
- updated.sort((a, b) => {
8768
+ setInternalState((prev) => {
8769
+ const updatedOptions = [...prev.options, item];
8770
+ updatedOptions.sort((a, b) => {
8758
8771
  const aEl = a.ref.current;
8759
8772
  const bEl = b.ref.current;
8760
8773
  if (!aEl || !bEl) return 0;
8761
8774
  return aEl.compareDocumentPosition(bEl) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
8762
8775
  });
8763
- return updated;
8776
+ return {
8777
+ ...prev,
8778
+ options: updatedOptions
8779
+ };
8764
8780
  });
8765
8781
  }, []);
8766
8782
  const unregisterItem = useCallback6((value2) => {
8767
- setOptions((prev) => prev.filter((i) => i.value !== value2));
8783
+ setInternalState((prev) => {
8784
+ const updatedOptions = prev.options.filter((i) => i.value !== value2);
8785
+ return {
8786
+ ...prev,
8787
+ options: updatedOptions
8788
+ };
8789
+ });
8768
8790
  }, []);
8769
8791
  const toggleSelection = (value2, isSelected) => {
8770
8792
  if (disabled) {
8771
8793
  return;
8772
8794
  }
8773
- const option = options.find((i) => i.value === value2);
8795
+ const option = state.options.find((i) => i.value === value2);
8774
8796
  if (!option) {
8775
8797
  console.error(`SelectOption with value: ${value2} not found`);
8776
8798
  return;
@@ -8813,35 +8835,40 @@ var SelectRoot = ({
8813
8835
  triggerRef.current = null;
8814
8836
  }, []);
8815
8837
  const toggleOpen = (isOpen2, toggleOpenOptions) => {
8816
- const { highlightStartPosition } = { ...defaultToggleOpenOptions, ...toggleOpenOptions };
8817
- let highlightedIndex;
8818
- if (highlightStartPosition === "first") {
8819
- highlightedIndex = options.findIndex((option) => !option.disabled);
8820
- } else {
8821
- highlightedIndex = options.length - 1 - [...options].reverse().findIndex((option) => !option.disabled);
8822
- }
8823
- if (highlightedIndex === -1 || highlightedIndex === options.length) {
8824
- highlightedIndex = 0;
8838
+ const { highlightStartPositionBehavior } = { ...defaultToggleOpenOptions, ...toggleOpenOptions };
8839
+ let firstSelectedValue;
8840
+ let firstEnabledValue;
8841
+ for (let i = 0; i < state.options.length; i++) {
8842
+ const currentOption = state.options[highlightStartPositionBehavior === "first" ? i : state.options.length - i - 1];
8843
+ if (!currentOption.disabled) {
8844
+ if (!firstEnabledValue) {
8845
+ firstEnabledValue = currentOption.value;
8846
+ }
8847
+ if (selectedValues.includes(currentOption.value)) {
8848
+ firstSelectedValue = currentOption.value;
8849
+ break;
8850
+ }
8851
+ }
8825
8852
  }
8826
8853
  setInternalState((prevState) => ({
8827
8854
  ...prevState,
8828
8855
  isOpen: isOpen2 ?? !prevState.isOpen,
8829
- highlightedValue: options[highlightedIndex].value
8856
+ highlightedValue: firstSelectedValue ?? firstEnabledValue
8830
8857
  }));
8831
8858
  };
8832
8859
  const moveHighlightedIndex = (delta) => {
8833
- let highlightedIndex = options.findIndex((value2) => value2.value === internalState.highlightedValue);
8860
+ let highlightedIndex = state.options.findIndex((value2) => value2.value === internalState.highlightedValue);
8834
8861
  if (highlightedIndex === -1) {
8835
8862
  highlightedIndex = 0;
8836
8863
  }
8837
- const optionLength = options.length;
8864
+ const optionLength = state.options.length;
8838
8865
  const startIndex = (highlightedIndex + delta % optionLength + optionLength) % optionLength;
8839
8866
  const isForward = delta >= 0;
8840
- let highlightedValue = options[startIndex].value;
8841
- for (let i = 0; i < options.length; i++) {
8867
+ let highlightedValue = state.options[startIndex].value;
8868
+ for (let i = 0; i < state.options.length; i++) {
8842
8869
  const index = (startIndex + (isForward ? i : -i) + optionLength) % optionLength;
8843
- if (!options[index].disabled) {
8844
- highlightedValue = options[index].value;
8870
+ if (!state.options[index].disabled) {
8871
+ highlightedValue = state.options[index].value;
8845
8872
  break;
8846
8873
  }
8847
8874
  }
@@ -8852,9 +8879,9 @@ var SelectRoot = ({
8852
8879
  };
8853
8880
  useEffect13(() => {
8854
8881
  if (!internalState.highlightedValue) return;
8855
- const highlighted = options.find((value2) => value2.value === internalState.highlightedValue);
8882
+ const highlighted = internalState.options.find((value2) => value2.value === internalState.highlightedValue);
8856
8883
  if (highlighted) {
8857
- highlighted.ref.current.scrollIntoView({ behavior: "instant", block: "nearest" });
8884
+ highlighted.ref.current?.scrollIntoView({ behavior: "instant", block: "nearest" });
8858
8885
  } else {
8859
8886
  console.error(`SelectRoot: Could not find highlighted value (${internalState.highlightedValue})`);
8860
8887
  }
@@ -8991,12 +9018,12 @@ var SelectButton = forwardRef4(function SelectButton2({ placeholder, selectedDis
8991
9018
  props.onKeyDown?.(event);
8992
9019
  switch (event.key) {
8993
9020
  case "ArrowDown":
8994
- toggleOpen(true, { highlightStartPosition: "first" });
9021
+ toggleOpen(true, { highlightStartPositionBehavior: "first" });
8995
9022
  event.preventDefault();
8996
9023
  event.stopPropagation();
8997
9024
  break;
8998
9025
  case "ArrowUp":
8999
- toggleOpen(true, { highlightStartPosition: "last" });
9026
+ toggleOpen(true, { highlightStartPositionBehavior: "last" });
9000
9027
  event.preventDefault();
9001
9028
  event.stopPropagation();
9002
9029
  break;
@@ -9090,10 +9117,10 @@ var SelectChipDisplay = forwardRef4(function SelectChipDisplay2({ ...props }, re
9090
9117
  onKeyDown: (event) => {
9091
9118
  switch (event.key) {
9092
9119
  case "ArrowDown":
9093
- toggleOpen(true, { highlightStartPosition: "first" });
9120
+ toggleOpen(true, { highlightStartPositionBehavior: "first" });
9094
9121
  break;
9095
9122
  case "ArrowUp":
9096
- toggleOpen(true, { highlightStartPosition: "last" });
9123
+ toggleOpen(true, { highlightStartPositionBehavior: "last" });
9097
9124
  }
9098
9125
  },
9099
9126
  size: "small",
@@ -9114,6 +9141,7 @@ var SelectContent = forwardRef4(
9114
9141
  function SelectContent2({
9115
9142
  alignment,
9116
9143
  orientation = "vertical",
9144
+ containerClassName,
9117
9145
  ...props
9118
9146
  }, ref) {
9119
9147
  const innerRef = useRef6(null);
@@ -9130,76 +9158,83 @@ var SelectContent = forwardRef4(
9130
9158
  active: state.isOpen && !!position
9131
9159
  });
9132
9160
  return createPortal2(
9133
- /* @__PURE__ */ jsxs11(Fragment3, { children: [
9134
- /* @__PURE__ */ jsx17(
9135
- "div",
9136
- {
9137
- hidden: !state.isOpen,
9138
- onClick: () => trigger.toggleOpen(false),
9139
- className: clsx13("fixed w-screen h-screen inset-0")
9140
- }
9141
- ),
9142
- /* @__PURE__ */ jsx17(
9143
- "ul",
9144
- {
9145
- ...props,
9146
- id: `${state.id}-listbox`,
9147
- ref: innerRef,
9148
- hidden: !state.isOpen,
9149
- onKeyDown: (event) => {
9150
- switch (event.key) {
9151
- case "Escape":
9152
- trigger.toggleOpen(false);
9153
- event.preventDefault();
9154
- event.stopPropagation();
9155
- break;
9156
- case match(orientation, {
9157
- vertical: "ArrowDown",
9158
- horizontal: "ArrowUp"
9159
- }):
9160
- item.moveHighlightedIndex(1);
9161
- event.preventDefault();
9162
- break;
9163
- case match(orientation, {
9164
- vertical: "ArrowUp",
9165
- horizontal: "ArrowDown"
9166
- }):
9167
- item.moveHighlightedIndex(-1);
9168
- event.preventDefault();
9169
- break;
9170
- case "Home":
9171
- event.preventDefault();
9172
- break;
9173
- case "End":
9174
- event.preventDefault();
9175
- break;
9176
- case "Enter":
9177
- // Fall through
9178
- case " ":
9179
- if (state.highlightedValue) {
9180
- item.toggleSelection(state.highlightedValue);
9181
- if (!config.isMultiSelect) {
9161
+ /* @__PURE__ */ jsxs11(
9162
+ "div",
9163
+ {
9164
+ id: `select-container-${state.id}`,
9165
+ className: clsx13("fixed inset-0 w-screen h-screen", containerClassName),
9166
+ hidden: !state.isOpen,
9167
+ children: [
9168
+ /* @__PURE__ */ jsx17(
9169
+ "div",
9170
+ {
9171
+ id: `select-background-${state.id}`,
9172
+ onClick: () => trigger.toggleOpen(false),
9173
+ className: clsx13("fixed inset-0 w-screen h-screen")
9174
+ }
9175
+ ),
9176
+ /* @__PURE__ */ jsx17(
9177
+ "ul",
9178
+ {
9179
+ ...props,
9180
+ id: `${state.id}-listbox`,
9181
+ ref: innerRef,
9182
+ onKeyDown: (event) => {
9183
+ switch (event.key) {
9184
+ case "Escape":
9182
9185
  trigger.toggleOpen(false);
9183
- }
9184
- event.preventDefault();
9186
+ event.preventDefault();
9187
+ event.stopPropagation();
9188
+ break;
9189
+ case match(orientation, {
9190
+ vertical: "ArrowDown",
9191
+ horizontal: "ArrowUp"
9192
+ }):
9193
+ item.moveHighlightedIndex(1);
9194
+ event.preventDefault();
9195
+ break;
9196
+ case match(orientation, {
9197
+ vertical: "ArrowUp",
9198
+ horizontal: "ArrowDown"
9199
+ }):
9200
+ item.moveHighlightedIndex(-1);
9201
+ event.preventDefault();
9202
+ break;
9203
+ case "Home":
9204
+ event.preventDefault();
9205
+ break;
9206
+ case "End":
9207
+ event.preventDefault();
9208
+ break;
9209
+ case "Enter":
9210
+ // Fall through
9211
+ case " ":
9212
+ if (state.highlightedValue) {
9213
+ item.toggleSelection(state.highlightedValue);
9214
+ if (!config.isMultiSelect) {
9215
+ trigger.toggleOpen(false);
9216
+ }
9217
+ event.preventDefault();
9218
+ }
9219
+ break;
9185
9220
  }
9186
- break;
9221
+ },
9222
+ className: clsx13("flex-col-0 p-2 bg-menu-background text-menu-text rounded-md shadow-hw-bottom focus-style-within overflow-auto", props.className),
9223
+ style: {
9224
+ opacity: position ? void 0 : 0,
9225
+ position: "fixed",
9226
+ ...position
9227
+ },
9228
+ role: "listbox",
9229
+ "aria-multiselectable": config.isMultiSelect,
9230
+ "aria-orientation": orientation,
9231
+ tabIndex: position ? 0 : void 0,
9232
+ children: props.children
9187
9233
  }
9188
- },
9189
- className: clsx13("flex-col-0 p-2 bg-menu-background text-menu-text rounded-md shadow-hw-bottom focus-style-within overflow-auto", props.className),
9190
- style: {
9191
- opacity: position ? void 0 : 0,
9192
- position: "fixed",
9193
- ...position
9194
- },
9195
- role: "listbox",
9196
- "aria-multiselectable": config.isMultiSelect,
9197
- "aria-orientation": orientation,
9198
- tabIndex: position ? 0 : void 0,
9199
- children: props.children
9200
- }
9201
- )
9202
- ] }),
9234
+ )
9235
+ ]
9236
+ }
9237
+ ),
9203
9238
  document.body
9204
9239
  );
9205
9240
  }
@@ -9353,7 +9388,7 @@ import { MonitorCog, MoonIcon, SunIcon } from "lucide-react";
9353
9388
  import clsx14 from "clsx";
9354
9389
 
9355
9390
  // src/theming/useTheme.tsx
9356
- import { createContext as createContext3, useCallback as useCallback7, useContext as useContext3, useEffect as useEffect14, useMemo as useMemo2, useState as useState13 } from "react";
9391
+ import { createContext as createContext3, useCallback as useCallback7, useContext as useContext3, useEffect as useEffect14, useMemo as useMemo3, useState as useState13 } from "react";
9357
9392
  import { jsx as jsx19 } from "react/jsx-runtime";
9358
9393
  var themes = ["light", "dark", "system"];
9359
9394
  var defaultThemeTypeTranslation = {
@@ -9454,7 +9489,7 @@ var ThemeDialog = ({
9454
9489
  };
9455
9490
 
9456
9491
  // src/components/form/FormElementWrapper.tsx
9457
- import { useId as useId4 } from "react";
9492
+ import { useId as useId5 } from "react";
9458
9493
  import { clsx as clsx16 } from "clsx";
9459
9494
 
9460
9495
  // src/components/user-action/Label.tsx
@@ -9492,7 +9527,7 @@ var FormElementWrapper = ({
9492
9527
  containerClassName
9493
9528
  }) => {
9494
9529
  const [touched, setTouched] = useOverwritableState(initialIsShowingError, onIsShowingError);
9495
- const generatedId = useId4();
9530
+ const generatedId = useId5();
9496
9531
  const usedId = id ?? generatedId;
9497
9532
  const errorId = `${usedId}-description`;
9498
9533
  const labelId = `${usedId}-label`;
@@ -9563,7 +9598,7 @@ var FormElementWrapper = ({
9563
9598
 
9564
9599
  // src/components/icons-and-geometry/Avatar.tsx
9565
9600
  import clsx17 from "clsx";
9566
- import { useMemo as useMemo5 } from "react";
9601
+ import { useMemo as useMemo6 } from "react";
9567
9602
  import { UserIcon } from "lucide-react";
9568
9603
 
9569
9604
  // node_modules/@radix-ui/react-avatar/dist/index.mjs
@@ -9690,7 +9725,7 @@ function useComposedRefs(...refs) {
9690
9725
  }
9691
9726
 
9692
9727
  // node_modules/@radix-ui/react-slot/dist/index.mjs
9693
- import { Fragment as Fragment22, jsx as jsx24 } from "react/jsx-runtime";
9728
+ import { Fragment as Fragment2, jsx as jsx24 } from "react/jsx-runtime";
9694
9729
  // @__NO_SIDE_EFFECTS__
9695
9730
  function createSlot(ownerName) {
9696
9731
  const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
@@ -9962,7 +9997,7 @@ var Avatar2 = ({ image, name, size = "md", fullyRounded, className = "" }) => {
9962
9997
  maxHeight: pixels
9963
9998
  };
9964
9999
  const textClassName = textClassNameMapping[size];
9965
- const displayName = useMemo5(() => {
10000
+ const displayName = useMemo6(() => {
9966
10001
  const maxLetters = size === "sm" ? 1 : 2;
9967
10002
  return (name ?? "").split(" ").filter((_, index) => index < maxLetters).map((value) => value[0]).join("").toUpperCase();
9968
10003
  }, [name, size]);
@@ -10352,14 +10387,14 @@ import {
10352
10387
  useCallback as useCallback10,
10353
10388
  useContext as useContext5,
10354
10389
  useEffect as useEffect18,
10355
- useId as useId5,
10356
- useMemo as useMemo6,
10390
+ useId as useId6,
10391
+ useMemo as useMemo7,
10357
10392
  useRef as useRef9,
10358
10393
  useState as useState16
10359
10394
  } from "react";
10360
10395
  import clsx20 from "clsx";
10361
10396
  import { ChevronLeft, ChevronRight } from "lucide-react";
10362
- import { Fragment as Fragment5, jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
10397
+ import { Fragment as Fragment3, jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
10363
10398
  var CarouselContext = createContext5(null);
10364
10399
  var useCarouselContext = () => {
10365
10400
  const context = useContext5(CarouselContext);
@@ -10502,6 +10537,7 @@ var Carousel = ({
10502
10537
  heightClassName = "h-96",
10503
10538
  widthClassName = "w-[70%] desktop:w-1/2",
10504
10539
  slideContainerProps,
10540
+ onSlideChanged,
10505
10541
  ...props
10506
10542
  }) => {
10507
10543
  const translation = useTranslation([defaultCarouselTranslationType]);
@@ -10513,9 +10549,9 @@ var Carousel = ({
10513
10549
  const carouselContainerRef = useRef9(null);
10514
10550
  const [disableClick, setDisableClick] = useState16(false);
10515
10551
  const timeOut = useRef9(void 0);
10516
- const length = useMemo6(() => children.length, [children]);
10552
+ const length = useMemo7(() => children.length, [children]);
10517
10553
  const paddingItemCount = 3;
10518
- const generatedId = "carousel" + useId5();
10554
+ const generatedId = "carousel" + useId6();
10519
10555
  const id = props.id ?? generatedId;
10520
10556
  if (isAutoPlaying && !isLooping) {
10521
10557
  console.error("When isAutoLooping is true, isLooping should also be true");
@@ -10615,6 +10651,9 @@ var Carousel = ({
10615
10651
  useEffect18(() => {
10616
10652
  setDisableClick(!dragState);
10617
10653
  }, [dragState]);
10654
+ useEffect18(() => {
10655
+ onSlideChanged?.(currentIndex);
10656
+ }, [currentIndex]);
10618
10657
  return /* @__PURE__ */ jsx31(CarouselContext.Provider, { value: { id, currentIndex, slideCount: length, isLooping }, children: /* @__PURE__ */ jsxs17(
10619
10658
  "div",
10620
10659
  {
@@ -10695,7 +10734,7 @@ var Carousel = ({
10695
10734
  children: children[currentIndex]
10696
10735
  }
10697
10736
  ),
10698
- arrows && /* @__PURE__ */ jsxs17(Fragment5, { children: [
10737
+ arrows && /* @__PURE__ */ jsxs17(Fragment3, { children: [
10699
10738
  /* @__PURE__ */ jsx31(
10700
10739
  IconButton,
10701
10740
  {
@@ -10752,7 +10791,7 @@ var DividerInserter = ({
10752
10791
  import clsx22 from "clsx";
10753
10792
 
10754
10793
  // src/components/layout/MarkdownInterpreter.tsx
10755
- import { Fragment as Fragment6, jsx as jsx33 } from "react/jsx-runtime";
10794
+ import { Fragment as Fragment4, jsx as jsx33 } from "react/jsx-runtime";
10756
10795
  var astNodeInserterType = ["helpwave", "newline"];
10757
10796
  var ASTNodeInterpreter = ({
10758
10797
  node,
@@ -10773,7 +10812,7 @@ var ASTNodeInterpreter = ({
10773
10812
  node: value
10774
10813
  },
10775
10814
  index
10776
- )) }) : /* @__PURE__ */ jsx33(Fragment6, { children: node.children.map((value, index) => /* @__PURE__ */ jsx33(ASTNodeInterpreter, { node: value }, index)) });
10815
+ )) }) : /* @__PURE__ */ jsx33(Fragment4, { children: node.children.map((value, index) => /* @__PURE__ */ jsx33(ASTNodeInterpreter, { node: value }, index)) });
10777
10816
  case "bold":
10778
10817
  return /* @__PURE__ */ jsx33("b", { children: node.children.map((value, index) => /* @__PURE__ */ jsx33(ASTNodeInterpreter, { node: value }, index)) });
10779
10818
  case "italic":
@@ -11006,7 +11045,7 @@ var FAQSection = ({
11006
11045
  import { forwardRef as forwardRef9, useImperativeHandle as useImperativeHandle3, useRef as useRef10 } from "react";
11007
11046
  import { createPortal as createPortal3 } from "react-dom";
11008
11047
  import { clsx as clsx23 } from "clsx";
11009
- import { Fragment as Fragment7, jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
11048
+ import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
11010
11049
  var FloatingContainer = forwardRef9(function FloatingContainer2({
11011
11050
  children,
11012
11051
  backgroundOverlay,
@@ -11033,7 +11072,7 @@ var FloatingContainer = forwardRef9(function FloatingContainer2({
11033
11072
  screenPadding
11034
11073
  });
11035
11074
  return createPortal3(
11036
- /* @__PURE__ */ jsxs18(Fragment7, { children: [
11075
+ /* @__PURE__ */ jsxs18(Fragment5, { children: [
11037
11076
  backgroundOverlay,
11038
11077
  /* @__PURE__ */ jsx35(
11039
11078
  "div",
@@ -11477,7 +11516,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
11477
11516
 
11478
11517
  // node_modules/@radix-ui/react-scroll-area/dist/index.mjs
11479
11518
  import * as React14 from "react";
11480
- import { Fragment as Fragment8, jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
11519
+ import { Fragment as Fragment6, jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
11481
11520
  function useStateMachine2(initialState, machine) {
11482
11521
  return React14.useReducer((state, event) => {
11483
11522
  const nextState = machine[state][event];
@@ -11556,7 +11595,7 @@ var ScrollAreaViewport = React23.forwardRef(
11556
11595
  const context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea);
11557
11596
  const ref = React23.useRef(null);
11558
11597
  const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);
11559
- return /* @__PURE__ */ jsxs19(Fragment8, { children: [
11598
+ return /* @__PURE__ */ jsxs19(Fragment6, { children: [
11560
11599
  /* @__PURE__ */ jsx38(
11561
11600
  "style",
11562
11601
  {
@@ -12546,13 +12585,13 @@ var ProgressIndicator = ({
12546
12585
  // src/components/navigation/BreadCrumb.tsx
12547
12586
  var import_link = __toESM(require_link2());
12548
12587
  import clsx32 from "clsx";
12549
- import { Fragment as Fragment9 } from "react";
12588
+ import { Fragment as Fragment7 } from "react";
12550
12589
  import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12551
12590
  var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
12552
12591
  const color = "text-description";
12553
12592
  return /* @__PURE__ */ jsx48("div", { className: clsx32("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
12554
12593
  const isLast = index === crumbs.length - 1;
12555
- return /* @__PURE__ */ jsxs27(Fragment9, { children: [
12594
+ return /* @__PURE__ */ jsxs27(Fragment7, { children: [
12556
12595
  /* @__PURE__ */ jsx48(
12557
12596
  import_link.default,
12558
12597
  {
@@ -12570,9 +12609,9 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
12570
12609
  var import_link2 = __toESM(require_link2());
12571
12610
  import { Menu as MenuIcon, XIcon as XIcon2 } from "lucide-react";
12572
12611
  import { useEffect as useEffect22 } from "react";
12573
- import { useCallback as useCallback14, useId as useId6, useRef as useRef14, useState as useState21 } from "react";
12612
+ import { useCallback as useCallback14, useId as useId7, useRef as useRef14, useState as useState21 } from "react";
12574
12613
  import clsx33 from "clsx";
12575
- import { Fragment as Fragment10, jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12614
+ import { Fragment as Fragment8, jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12576
12615
  function isSubItem(item) {
12577
12616
  return "items" in item && Array.isArray(item.items);
12578
12617
  }
@@ -12585,7 +12624,7 @@ var NavigationItemWithSubItem = ({
12585
12624
  const [isOpen, setOpen] = useState21(false);
12586
12625
  const containerRef = useRef14();
12587
12626
  const triggerRef = useRef14(null);
12588
- const id = useId6();
12627
+ const id = useId7();
12589
12628
  const style = useFloatingElement({
12590
12629
  active: isOpen,
12591
12630
  containerRef,
@@ -12599,7 +12638,7 @@ var NavigationItemWithSubItem = ({
12599
12638
  setOpen(false);
12600
12639
  }
12601
12640
  }, []);
12602
- return /* @__PURE__ */ jsxs28(Fragment10, { children: [
12641
+ return /* @__PURE__ */ jsxs28(Fragment8, { children: [
12603
12642
  /* @__PURE__ */ jsxs28(
12604
12643
  "button",
12605
12644
  {
@@ -12648,12 +12687,12 @@ var NavigationItemList = ({ items, ...restProps }) => {
12648
12687
  };
12649
12688
  var Navigation = ({ ...props }) => {
12650
12689
  const [isMobileOpen, setIsMobileOpen] = useState21(false);
12651
- const id = useId6();
12690
+ const id = useId7();
12652
12691
  const menuRef = useRef14(null);
12653
12692
  useEffect22(() => {
12654
12693
  menuRef.current?.focus();
12655
12694
  }, [isMobileOpen]);
12656
- return /* @__PURE__ */ jsxs28(Fragment10, { children: [
12695
+ return /* @__PURE__ */ jsxs28(Fragment8, { children: [
12657
12696
  /* @__PURE__ */ jsx49(
12658
12697
  NavigationItemList,
12659
12698
  {
@@ -13009,7 +13048,7 @@ function useSize(element) {
13009
13048
  }
13010
13049
 
13011
13050
  // node_modules/@radix-ui/react-checkbox/dist/index.mjs
13012
- import { Fragment as Fragment11, jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
13051
+ import { Fragment as Fragment9, jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
13013
13052
  var CHECKBOX_NAME = "Checkbox";
13014
13053
  var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
13015
13054
  var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
@@ -13145,7 +13184,7 @@ var Checkbox = React19.forwardRef(
13145
13184
  name,
13146
13185
  form,
13147
13186
  value,
13148
- internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs31(Fragment11, { children: [
13187
+ internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs31(Fragment9, { children: [
13149
13188
  /* @__PURE__ */ jsx52(
13150
13189
  CheckboxTrigger,
13151
13190
  {
@@ -13399,7 +13438,7 @@ var PropertyBase = ({
13399
13438
  };
13400
13439
 
13401
13440
  // src/components/properties/CheckboxProperty.tsx
13402
- import { useId as useId7 } from "react";
13441
+ import { useId as useId8 } from "react";
13403
13442
  import { jsx as jsx55, jsxs as jsxs34 } from "react/jsx-runtime";
13404
13443
  var CheckboxProperty = ({
13405
13444
  overwriteTranslation,
@@ -13409,7 +13448,7 @@ var CheckboxProperty = ({
13409
13448
  ...baseProps
13410
13449
  }) => {
13411
13450
  const translation = useTranslation([formTranslation], overwriteTranslation);
13412
- const id = useId7();
13451
+ const id = useId8();
13413
13452
  return /* @__PURE__ */ jsx55(
13414
13453
  PropertyBase,
13415
13454
  {
@@ -13632,7 +13671,7 @@ import { Text } from "lucide-react";
13632
13671
  import clsx43 from "clsx";
13633
13672
 
13634
13673
  // src/components/user-action/Textarea.tsx
13635
- import { forwardRef as forwardRef13, useId as useId8 } from "react";
13674
+ import { forwardRef as forwardRef13, useId as useId9 } from "react";
13636
13675
  import clsx42 from "clsx";
13637
13676
  import { jsx as jsx60, jsxs as jsxs36 } from "react/jsx-runtime";
13638
13677
  var Textarea = forwardRef13(function Textarea2({
@@ -13709,7 +13748,7 @@ var TextareaWithHeadline = ({
13709
13748
  containerClassName,
13710
13749
  ...props
13711
13750
  }) => {
13712
- const genId = useId8();
13751
+ const genId = useId9();
13713
13752
  const usedId = id ?? genId;
13714
13753
  return /* @__PURE__ */ jsxs36(
13715
13754
  "div",
@@ -13824,7 +13863,7 @@ var TableFilters = {
13824
13863
  };
13825
13864
 
13826
13865
  // src/components/table/Table.tsx
13827
- import { useCallback as useCallback16, useEffect as useEffect32, useMemo as useMemo9, useRef as useRef20, useState as useState29 } from "react";
13866
+ import { useCallback as useCallback16, useEffect as useEffect32, useMemo as useMemo10, useRef as useRef20, useState as useState29 } from "react";
13828
13867
  import clsx48 from "clsx";
13829
13868
  import {
13830
13869
  flexRender,
@@ -14028,7 +14067,7 @@ var useOutsideClick = (refs, handler) => {
14028
14067
  };
14029
14068
 
14030
14069
  // src/components/user-action/Menu.tsx
14031
- import { Fragment as Fragment12, jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
14070
+ import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
14032
14071
  var MenuItem = ({
14033
14072
  children,
14034
14073
  onClick,
@@ -14104,7 +14143,7 @@ var Menu = ({
14104
14143
  setIsHidden(false);
14105
14144
  }
14106
14145
  }, [isOpen]);
14107
- return /* @__PURE__ */ jsxs37(Fragment12, { children: [
14146
+ return /* @__PURE__ */ jsxs37(Fragment10, { children: [
14108
14147
  trigger(bag, triggerRef),
14109
14148
  createPortal4(/* @__PURE__ */ jsx65(
14110
14149
  "div",
@@ -14136,7 +14175,7 @@ var Menu = ({
14136
14175
 
14137
14176
  // src/components/table/TableFilterButton.tsx
14138
14177
  import { useEffect as useEffect31, useState as useState28 } from "react";
14139
- import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
14178
+ import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
14140
14179
  var defaultTableFilterTranslation = {
14141
14180
  en: {
14142
14181
  filter: "Filter",
@@ -14220,7 +14259,7 @@ var TableFilterButton = ({
14220
14259
  }
14221
14260
  )
14222
14261
  ] }),
14223
- filterType === "dateRange" && /* @__PURE__ */ jsxs38(Fragment13, { children: [
14262
+ filterType === "dateRange" && /* @__PURE__ */ jsxs38(Fragment11, { children: [
14224
14263
  /* @__PURE__ */ jsx66(
14225
14264
  Input,
14226
14265
  {
@@ -14292,7 +14331,7 @@ var Table = ({
14292
14331
  ...initialState?.pagination
14293
14332
  });
14294
14333
  const [columnFilters, setColumnFilters] = useState29(initialState?.columnFilters);
14295
- const computedColumnMinWidths = useMemo9(() => {
14334
+ const computedColumnMinWidths = useMemo10(() => {
14296
14335
  return columns.reduce((previousValue, column) => {
14297
14336
  return {
14298
14337
  ...previousValue,
@@ -14301,7 +14340,7 @@ var Table = ({
14301
14340
  };
14302
14341
  }, {});
14303
14342
  }, [columns, defaultColumn]);
14304
- const computedColumnMaxWidths = useMemo9(() => {
14343
+ const computedColumnMaxWidths = useMemo10(() => {
14305
14344
  return columns.reduce((previousValue, column) => {
14306
14345
  return {
14307
14346
  ...previousValue,
@@ -14309,12 +14348,12 @@ var Table = ({
14309
14348
  };
14310
14349
  }, {});
14311
14350
  }, [columns, defaultColumn]);
14312
- const tableMinWidth = useMemo9(() => {
14351
+ const tableMinWidth = useMemo10(() => {
14313
14352
  return columns.reduce((sum, column) => {
14314
14353
  return sum + computedColumnMinWidths[column.id];
14315
14354
  }, 0);
14316
14355
  }, [columns, computedColumnMinWidths]);
14317
- const updateColumnSizes = useMemo9(() => {
14356
+ const updateColumnSizes = useMemo10(() => {
14318
14357
  return (previous) => {
14319
14358
  const updateSizing = {
14320
14359
  ...columnSizing,
@@ -14458,7 +14497,7 @@ var Table = ({
14458
14497
  }));
14459
14498
  }
14460
14499
  }, [data, pageCount, pagination.pageSize, pagination.pageIndex]);
14461
- const columnSizeVars = useMemo9(() => {
14500
+ const columnSizeVars = useMemo10(() => {
14462
14501
  const headers = table.getFlatHeaders();
14463
14502
  const colSizes = {};
14464
14503
  for (let i = 0; i < headers.length; i++) {
@@ -14593,7 +14632,7 @@ var TableWithSelection = ({
14593
14632
  meta,
14594
14633
  ...props
14595
14634
  }) => {
14596
- const columnsWithSelection = useMemo9(() => {
14635
+ const columnsWithSelection = useMemo10(() => {
14597
14636
  return [
14598
14637
  {
14599
14638
  id: selectionRowId,
@@ -15113,7 +15152,7 @@ var Tooltip = ({
15113
15152
  };
15114
15153
 
15115
15154
  // src/components/user-action/input/InsideLabelInput.tsx
15116
- import { useId as useId9 } from "react";
15155
+ import { useId as useId10 } from "react";
15117
15156
  import { forwardRef as forwardRef14, useState as useState32 } from "react";
15118
15157
  import clsx54 from "clsx";
15119
15158
  import { jsx as jsx73, jsxs as jsxs45 } from "react/jsx-runtime";
@@ -15124,7 +15163,7 @@ var InsideLabelInput = forwardRef14(function InsideLabelInput2({
15124
15163
  }, forwardedRef) {
15125
15164
  const { value } = props;
15126
15165
  const [isFocused, setIsFocused] = useState32(false);
15127
- const generatedId = useId9();
15166
+ const generatedId = useId10();
15128
15167
  const id = customId ?? generatedId;
15129
15168
  return /* @__PURE__ */ jsxs45("div", { className: clsx54("relative"), children: [
15130
15169
  /* @__PURE__ */ jsx73(