@helpwave/hightide 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/DayPicker.mjs.map +1 -1
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/TimeDisplay.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/date/index.js.map +1 -1
- package/dist/components/date/index.mjs.map +1 -1
- package/dist/components/dialog/ConfirmDialog.js +15 -9
- package/dist/components/dialog/ConfirmDialog.js.map +1 -1
- package/dist/components/dialog/ConfirmDialog.mjs +16 -10
- package/dist/components/dialog/ConfirmDialog.mjs.map +1 -1
- package/dist/components/dialog/Dialog.d.mts +4 -5
- package/dist/components/dialog/Dialog.d.ts +4 -5
- package/dist/components/dialog/Dialog.js +16 -9
- package/dist/components/dialog/Dialog.js.map +1 -1
- package/dist/components/dialog/Dialog.mjs +18 -10
- package/dist/components/dialog/Dialog.mjs.map +1 -1
- package/dist/components/dialog/DiscardChangesDialog.js +15 -9
- package/dist/components/dialog/DiscardChangesDialog.js.map +1 -1
- package/dist/components/dialog/DiscardChangesDialog.mjs +16 -10
- package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -1
- package/dist/components/dialog/InputDialog.js +15 -9
- package/dist/components/dialog/InputDialog.js.map +1 -1
- package/dist/components/dialog/InputDialog.mjs +16 -10
- package/dist/components/dialog/InputDialog.mjs.map +1 -1
- package/dist/components/dialog/LanguageDialog.js +188 -154
- package/dist/components/dialog/LanguageDialog.js.map +1 -1
- package/dist/components/dialog/LanguageDialog.mjs +151 -116
- package/dist/components/dialog/LanguageDialog.mjs.map +1 -1
- package/dist/components/dialog/ThemeDialog.js +191 -157
- package/dist/components/dialog/ThemeDialog.js.map +1 -1
- package/dist/components/dialog/ThemeDialog.mjs +151 -116
- package/dist/components/dialog/ThemeDialog.mjs.map +1 -1
- package/dist/components/dialog/index.js +205 -171
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/index.mjs +152 -117
- package/dist/components/dialog/index.mjs.map +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +333 -299
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +194 -159
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/layout/Carousel.js.map +1 -1
- package/dist/components/layout/Carousel.mjs.map +1 -1
- package/dist/components/layout/TextImage.js.map +1 -1
- package/dist/components/layout/TextImage.mjs.map +1 -1
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
- package/dist/components/loading-states/index.js.map +1 -1
- package/dist/components/loading-states/index.mjs.map +1 -1
- package/dist/components/navigation/Navigation.d.mts +4 -4
- package/dist/components/navigation/Navigation.d.ts +4 -4
- package/dist/components/navigation/Navigation.js.map +1 -1
- package/dist/components/navigation/Navigation.mjs.map +1 -1
- package/dist/components/navigation/Pagination.js.map +1 -1
- package/dist/components/navigation/Pagination.mjs.map +1 -1
- package/dist/components/navigation/StepperBar.js.map +1 -1
- package/dist/components/navigation/StepperBar.mjs.map +1 -1
- package/dist/components/navigation/index.d.mts +1 -1
- package/dist/components/navigation/index.d.ts +1 -1
- package/dist/components/navigation/index.js.map +1 -1
- package/dist/components/navigation/index.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.js +129 -101
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +131 -102
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.js +129 -101
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +131 -102
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/properties/index.js +129 -101
- package/dist/components/properties/index.js.map +1 -1
- package/dist/components/properties/index.mjs +131 -102
- package/dist/components/properties/index.mjs.map +1 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/index.mjs.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/index.js +129 -101
- package/dist/components/user-action/index.js.map +1 -1
- package/dist/components/user-action/index.mjs +131 -102
- package/dist/components/user-action/index.mjs.map +1 -1
- package/dist/components/user-action/select/Select.d.mts +2 -0
- package/dist/components/user-action/select/Select.d.ts +2 -0
- package/dist/components/user-action/select/Select.js +129 -101
- package/dist/components/user-action/select/Select.js.map +1 -1
- package/dist/components/user-action/select/Select.mjs +131 -102
- package/dist/components/user-action/select/Select.mjs.map +1 -1
- package/dist/components/user-action/select/index.js +129 -101
- package/dist/components/user-action/select/index.js.map +1 -1
- package/dist/components/user-action/select/index.mjs +131 -102
- package/dist/components/user-action/select/index.mjs.map +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/hooks/useValidators.js.map +1 -1
- package/dist/hooks/useValidators.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +358 -324
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +202 -167
- package/dist/index.mjs.map +1 -1
- package/dist/localization/LanguageProvider.js +1 -1
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/LanguageProvider.mjs +1 -1
- package/dist/localization/LanguageProvider.mjs.map +1 -1
- package/dist/localization/index.js +1 -1
- package/dist/localization/index.js.map +1 -1
- package/dist/localization/index.mjs +1 -1
- package/dist/localization/index.mjs.map +1 -1
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs.map +1 -1
- package/dist/style/globals.css +0 -3
- package/dist/theming/index.js +1 -1
- package/dist/theming/index.js.map +1 -1
- package/dist/theming/index.mjs +1 -1
- package/dist/theming/index.mjs.map +1 -1
- package/dist/theming/useTheme.js +1 -1
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +1 -1
- package/dist/theming/useTheme.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7004,7 +7004,7 @@ var LanguageProvider = ({ children, language }) => {
|
|
|
7004
7004
|
return /* @__PURE__ */ jsx3(LanguageContext.Provider, { value: {
|
|
7005
7005
|
language: resolvedLanguage,
|
|
7006
7006
|
setLanguage: (newLanguage) => {
|
|
7007
|
-
if (language) {
|
|
7007
|
+
if (language !== "system") {
|
|
7008
7008
|
console.warn("LanguageProvider: Attempting to change the language while setting a fixed language won't have any effect. Change the language provided to the LanguageProvider instead.");
|
|
7009
7009
|
}
|
|
7010
7010
|
setStoredLanguage(newLanguage);
|
|
@@ -7926,9 +7926,8 @@ var TimePickerUncontrolled = ({
|
|
|
7926
7926
|
import clsx10 from "clsx";
|
|
7927
7927
|
|
|
7928
7928
|
// src/components/dialog/Dialog.tsx
|
|
7929
|
-
import {
|
|
7930
|
-
import { useState as useState9 } from "react";
|
|
7931
|
-
import { useRef as useRef4 } from "react";
|
|
7929
|
+
import { useId as useId3 } from "react";
|
|
7930
|
+
import { useEffect as useEffect10, useRef as useRef4, useState as useState9 } from "react";
|
|
7932
7931
|
import clsx9 from "clsx";
|
|
7933
7932
|
import { X } from "lucide-react";
|
|
7934
7933
|
|
|
@@ -8283,7 +8282,7 @@ var useLogOnce = (message, condition, options) => {
|
|
|
8283
8282
|
|
|
8284
8283
|
// src/components/dialog/Dialog.tsx
|
|
8285
8284
|
import { createPortal } from "react-dom";
|
|
8286
|
-
import {
|
|
8285
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
8287
8286
|
var Dialog = ({
|
|
8288
8287
|
children,
|
|
8289
8288
|
isOpen,
|
|
@@ -8291,13 +8290,16 @@ var Dialog = ({
|
|
|
8291
8290
|
description,
|
|
8292
8291
|
isModal = true,
|
|
8293
8292
|
onClose,
|
|
8294
|
-
className,
|
|
8295
8293
|
backgroundClassName,
|
|
8296
8294
|
position = "center",
|
|
8297
|
-
isAnimated = true
|
|
8295
|
+
isAnimated = true,
|
|
8296
|
+
containerClassName,
|
|
8297
|
+
...props
|
|
8298
8298
|
}) => {
|
|
8299
8299
|
const translation = useTranslation([formTranslation]);
|
|
8300
8300
|
const [visible, setVisible] = useState9(isOpen);
|
|
8301
|
+
const generatedId = useId3();
|
|
8302
|
+
const id = props.id ?? generatedId;
|
|
8301
8303
|
const ref = useRef4(null);
|
|
8302
8304
|
useEffect10(() => {
|
|
8303
8305
|
if (isOpen) {
|
|
@@ -8324,14 +8326,16 @@ var Dialog = ({
|
|
|
8324
8326
|
none: ""
|
|
8325
8327
|
};
|
|
8326
8328
|
const positionStyle = positionMap[position];
|
|
8329
|
+
if (!visible) return;
|
|
8327
8330
|
return createPortal(
|
|
8328
|
-
/* @__PURE__ */ jsxs8(
|
|
8331
|
+
/* @__PURE__ */ jsxs8("div", { id: `dialog-container-${id}`, className: clsx9("fixed inset-0 h-screen w-screen", containerClassName), children: [
|
|
8329
8332
|
/* @__PURE__ */ jsx11(
|
|
8330
8333
|
"div",
|
|
8331
8334
|
{
|
|
8335
|
+
id: `dialog-background-${id}`,
|
|
8332
8336
|
hidden: !visible,
|
|
8333
8337
|
className: clsx9(
|
|
8334
|
-
"fixed inset-0 h-screen w-screen bg-overlay-shadow
|
|
8338
|
+
"fixed inset-0 h-screen w-screen bg-overlay-shadow",
|
|
8335
8339
|
{
|
|
8336
8340
|
"motion-safe:animate-fade-in": isOpen,
|
|
8337
8341
|
"motion-safe:animate-fade-out": !isOpen
|
|
@@ -8350,6 +8354,8 @@ var Dialog = ({
|
|
|
8350
8354
|
/* @__PURE__ */ jsxs8(
|
|
8351
8355
|
"div",
|
|
8352
8356
|
{
|
|
8357
|
+
...props,
|
|
8358
|
+
id: `dialog-${id}`,
|
|
8353
8359
|
ref,
|
|
8354
8360
|
hidden: !visible,
|
|
8355
8361
|
onKeyDown: (event) => {
|
|
@@ -8363,13 +8369,13 @@ var Dialog = ({
|
|
|
8363
8369
|
}
|
|
8364
8370
|
},
|
|
8365
8371
|
className: clsx9(
|
|
8366
|
-
"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)]
|
|
8372
|
+
"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)]",
|
|
8367
8373
|
{
|
|
8368
8374
|
"motion-safe:animate-pop-in": isOpen,
|
|
8369
8375
|
"motion-safe:animate-pop-out": !isOpen
|
|
8370
8376
|
},
|
|
8371
8377
|
positionStyle,
|
|
8372
|
-
className
|
|
8378
|
+
props.className
|
|
8373
8379
|
),
|
|
8374
8380
|
children: [
|
|
8375
8381
|
/* @__PURE__ */ jsx11("div", { className: "typography-title-lg mr-8", children: titleElement }),
|
|
@@ -8708,8 +8714,9 @@ import {
|
|
|
8708
8714
|
useCallback as useCallback6,
|
|
8709
8715
|
useContext as useContext2,
|
|
8710
8716
|
useEffect as useEffect13,
|
|
8711
|
-
useId as
|
|
8717
|
+
useId as useId4,
|
|
8712
8718
|
useImperativeHandle as useImperativeHandle2,
|
|
8719
|
+
useMemo as useMemo2,
|
|
8713
8720
|
useRef as useRef6,
|
|
8714
8721
|
useState as useState12
|
|
8715
8722
|
} from "react";
|
|
@@ -8926,9 +8933,9 @@ function useFloatingElement({
|
|
|
8926
8933
|
|
|
8927
8934
|
// src/components/user-action/select/Select.tsx
|
|
8928
8935
|
import { createPortal as createPortal2 } from "react-dom";
|
|
8929
|
-
import {
|
|
8936
|
+
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
8930
8937
|
var defaultToggleOpenOptions = {
|
|
8931
|
-
|
|
8938
|
+
highlightStartPositionBehavior: "first"
|
|
8932
8939
|
};
|
|
8933
8940
|
var SelectContext = createContext2(null);
|
|
8934
8941
|
function useSelectContext() {
|
|
@@ -8951,47 +8958,62 @@ var SelectRoot = ({
|
|
|
8951
8958
|
isMultiSelect = false,
|
|
8952
8959
|
iconAppearance = "left"
|
|
8953
8960
|
}) => {
|
|
8954
|
-
const [options, setOptions] = useState12([]);
|
|
8955
8961
|
const triggerRef = useRef6(null);
|
|
8956
|
-
const generatedId =
|
|
8962
|
+
const generatedId = useId4();
|
|
8957
8963
|
const usedId = id ?? generatedId;
|
|
8958
8964
|
const [internalState, setInternalState] = useState12({
|
|
8959
|
-
isOpen
|
|
8965
|
+
isOpen,
|
|
8966
|
+
options: []
|
|
8960
8967
|
});
|
|
8961
|
-
const selectedValues =
|
|
8968
|
+
const selectedValues = useMemo2(
|
|
8969
|
+
() => isMultiSelect ? values ?? [] : [value].filter(Boolean),
|
|
8970
|
+
[isMultiSelect, value, values]
|
|
8971
|
+
);
|
|
8972
|
+
const selectedOptions = useMemo2(
|
|
8973
|
+
() => selectedValues.map((value2) => internalState.options.find((option) => value2 === option.value)).filter(Boolean),
|
|
8974
|
+
[selectedValues, internalState.options]
|
|
8975
|
+
);
|
|
8962
8976
|
const state = {
|
|
8963
8977
|
...internalState,
|
|
8964
8978
|
id: usedId,
|
|
8965
8979
|
disabled,
|
|
8966
8980
|
invalid,
|
|
8967
8981
|
value: selectedValues,
|
|
8968
|
-
|
|
8969
|
-
selectedOptions: selectedValues.map((value2) => options.find((option) => value2 === option.value)).filter(Boolean)
|
|
8982
|
+
selectedOptions
|
|
8970
8983
|
};
|
|
8971
8984
|
const config = {
|
|
8972
8985
|
isMultiSelect,
|
|
8973
8986
|
iconAppearance
|
|
8974
8987
|
};
|
|
8975
8988
|
const registerItem = useCallback6((item) => {
|
|
8976
|
-
|
|
8977
|
-
const
|
|
8978
|
-
|
|
8989
|
+
setInternalState((prev) => {
|
|
8990
|
+
const updatedOptions = [...prev.options, item];
|
|
8991
|
+
updatedOptions.sort((a, b) => {
|
|
8979
8992
|
const aEl = a.ref.current;
|
|
8980
8993
|
const bEl = b.ref.current;
|
|
8981
8994
|
if (!aEl || !bEl) return 0;
|
|
8982
8995
|
return aEl.compareDocumentPosition(bEl) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
8983
8996
|
});
|
|
8984
|
-
return
|
|
8997
|
+
return {
|
|
8998
|
+
...prev,
|
|
8999
|
+
options: updatedOptions
|
|
9000
|
+
};
|
|
8985
9001
|
});
|
|
8986
9002
|
}, []);
|
|
8987
9003
|
const unregisterItem = useCallback6((value2) => {
|
|
8988
|
-
|
|
9004
|
+
setInternalState((prev) => {
|
|
9005
|
+
const updatedOptions = prev.options.filter((i) => i.value !== value2);
|
|
9006
|
+
return {
|
|
9007
|
+
...prev,
|
|
9008
|
+
options: updatedOptions
|
|
9009
|
+
};
|
|
9010
|
+
});
|
|
8989
9011
|
}, []);
|
|
8990
9012
|
const toggleSelection = (value2, isSelected) => {
|
|
8991
9013
|
if (disabled) {
|
|
8992
9014
|
return;
|
|
8993
9015
|
}
|
|
8994
|
-
const option = options.find((i) => i.value === value2);
|
|
9016
|
+
const option = state.options.find((i) => i.value === value2);
|
|
8995
9017
|
if (!option) {
|
|
8996
9018
|
console.error(`SelectOption with value: ${value2} not found`);
|
|
8997
9019
|
return;
|
|
@@ -9034,35 +9056,40 @@ var SelectRoot = ({
|
|
|
9034
9056
|
triggerRef.current = null;
|
|
9035
9057
|
}, []);
|
|
9036
9058
|
const toggleOpen = (isOpen2, toggleOpenOptions) => {
|
|
9037
|
-
const {
|
|
9038
|
-
let
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9059
|
+
const { highlightStartPositionBehavior } = { ...defaultToggleOpenOptions, ...toggleOpenOptions };
|
|
9060
|
+
let firstSelectedValue;
|
|
9061
|
+
let firstEnabledValue;
|
|
9062
|
+
for (let i = 0; i < state.options.length; i++) {
|
|
9063
|
+
const currentOption = state.options[highlightStartPositionBehavior === "first" ? i : state.options.length - i - 1];
|
|
9064
|
+
if (!currentOption.disabled) {
|
|
9065
|
+
if (!firstEnabledValue) {
|
|
9066
|
+
firstEnabledValue = currentOption.value;
|
|
9067
|
+
}
|
|
9068
|
+
if (selectedValues.includes(currentOption.value)) {
|
|
9069
|
+
firstSelectedValue = currentOption.value;
|
|
9070
|
+
break;
|
|
9071
|
+
}
|
|
9072
|
+
}
|
|
9046
9073
|
}
|
|
9047
9074
|
setInternalState((prevState) => ({
|
|
9048
9075
|
...prevState,
|
|
9049
9076
|
isOpen: isOpen2 ?? !prevState.isOpen,
|
|
9050
|
-
highlightedValue:
|
|
9077
|
+
highlightedValue: firstSelectedValue ?? firstEnabledValue
|
|
9051
9078
|
}));
|
|
9052
9079
|
};
|
|
9053
9080
|
const moveHighlightedIndex = (delta) => {
|
|
9054
|
-
let highlightedIndex = options.findIndex((value2) => value2.value === internalState.highlightedValue);
|
|
9081
|
+
let highlightedIndex = state.options.findIndex((value2) => value2.value === internalState.highlightedValue);
|
|
9055
9082
|
if (highlightedIndex === -1) {
|
|
9056
9083
|
highlightedIndex = 0;
|
|
9057
9084
|
}
|
|
9058
|
-
const optionLength = options.length;
|
|
9085
|
+
const optionLength = state.options.length;
|
|
9059
9086
|
const startIndex = (highlightedIndex + delta % optionLength + optionLength) % optionLength;
|
|
9060
9087
|
const isForward = delta >= 0;
|
|
9061
|
-
let highlightedValue = options[startIndex].value;
|
|
9062
|
-
for (let i = 0; i < options.length; i++) {
|
|
9088
|
+
let highlightedValue = state.options[startIndex].value;
|
|
9089
|
+
for (let i = 0; i < state.options.length; i++) {
|
|
9063
9090
|
const index = (startIndex + (isForward ? i : -i) + optionLength) % optionLength;
|
|
9064
|
-
if (!options[index].disabled) {
|
|
9065
|
-
highlightedValue = options[index].value;
|
|
9091
|
+
if (!state.options[index].disabled) {
|
|
9092
|
+
highlightedValue = state.options[index].value;
|
|
9066
9093
|
break;
|
|
9067
9094
|
}
|
|
9068
9095
|
}
|
|
@@ -9073,9 +9100,9 @@ var SelectRoot = ({
|
|
|
9073
9100
|
};
|
|
9074
9101
|
useEffect13(() => {
|
|
9075
9102
|
if (!internalState.highlightedValue) return;
|
|
9076
|
-
const highlighted = options.find((value2) => value2.value === internalState.highlightedValue);
|
|
9103
|
+
const highlighted = internalState.options.find((value2) => value2.value === internalState.highlightedValue);
|
|
9077
9104
|
if (highlighted) {
|
|
9078
|
-
highlighted.ref.current
|
|
9105
|
+
highlighted.ref.current?.scrollIntoView({ behavior: "instant", block: "nearest" });
|
|
9079
9106
|
} else {
|
|
9080
9107
|
console.error(`SelectRoot: Could not find highlighted value (${internalState.highlightedValue})`);
|
|
9081
9108
|
}
|
|
@@ -9212,12 +9239,12 @@ var SelectButton = forwardRef4(function SelectButton2({ placeholder, selectedDis
|
|
|
9212
9239
|
props.onKeyDown?.(event);
|
|
9213
9240
|
switch (event.key) {
|
|
9214
9241
|
case "ArrowDown":
|
|
9215
|
-
toggleOpen(true, {
|
|
9242
|
+
toggleOpen(true, { highlightStartPositionBehavior: "first" });
|
|
9216
9243
|
event.preventDefault();
|
|
9217
9244
|
event.stopPropagation();
|
|
9218
9245
|
break;
|
|
9219
9246
|
case "ArrowUp":
|
|
9220
|
-
toggleOpen(true, {
|
|
9247
|
+
toggleOpen(true, { highlightStartPositionBehavior: "last" });
|
|
9221
9248
|
event.preventDefault();
|
|
9222
9249
|
event.stopPropagation();
|
|
9223
9250
|
break;
|
|
@@ -9311,10 +9338,10 @@ var SelectChipDisplay = forwardRef4(function SelectChipDisplay2({ ...props }, re
|
|
|
9311
9338
|
onKeyDown: (event) => {
|
|
9312
9339
|
switch (event.key) {
|
|
9313
9340
|
case "ArrowDown":
|
|
9314
|
-
toggleOpen(true, {
|
|
9341
|
+
toggleOpen(true, { highlightStartPositionBehavior: "first" });
|
|
9315
9342
|
break;
|
|
9316
9343
|
case "ArrowUp":
|
|
9317
|
-
toggleOpen(true, {
|
|
9344
|
+
toggleOpen(true, { highlightStartPositionBehavior: "last" });
|
|
9318
9345
|
}
|
|
9319
9346
|
},
|
|
9320
9347
|
size: "small",
|
|
@@ -9335,6 +9362,7 @@ var SelectContent = forwardRef4(
|
|
|
9335
9362
|
function SelectContent2({
|
|
9336
9363
|
alignment,
|
|
9337
9364
|
orientation = "vertical",
|
|
9365
|
+
containerClassName,
|
|
9338
9366
|
...props
|
|
9339
9367
|
}, ref) {
|
|
9340
9368
|
const innerRef = useRef6(null);
|
|
@@ -9351,76 +9379,83 @@ var SelectContent = forwardRef4(
|
|
|
9351
9379
|
active: state.isOpen && !!position
|
|
9352
9380
|
});
|
|
9353
9381
|
return createPortal2(
|
|
9354
|
-
/* @__PURE__ */ jsxs11(
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
{
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
vertical: "ArrowDown",
|
|
9379
|
-
horizontal: "ArrowUp"
|
|
9380
|
-
}):
|
|
9381
|
-
item.moveHighlightedIndex(1);
|
|
9382
|
-
event.preventDefault();
|
|
9383
|
-
break;
|
|
9384
|
-
case match(orientation, {
|
|
9385
|
-
vertical: "ArrowUp",
|
|
9386
|
-
horizontal: "ArrowDown"
|
|
9387
|
-
}):
|
|
9388
|
-
item.moveHighlightedIndex(-1);
|
|
9389
|
-
event.preventDefault();
|
|
9390
|
-
break;
|
|
9391
|
-
case "Home":
|
|
9392
|
-
event.preventDefault();
|
|
9393
|
-
break;
|
|
9394
|
-
case "End":
|
|
9395
|
-
event.preventDefault();
|
|
9396
|
-
break;
|
|
9397
|
-
case "Enter":
|
|
9398
|
-
// Fall through
|
|
9399
|
-
case " ":
|
|
9400
|
-
if (state.highlightedValue) {
|
|
9401
|
-
item.toggleSelection(state.highlightedValue);
|
|
9402
|
-
if (!config.isMultiSelect) {
|
|
9382
|
+
/* @__PURE__ */ jsxs11(
|
|
9383
|
+
"div",
|
|
9384
|
+
{
|
|
9385
|
+
id: `select-container-${state.id}`,
|
|
9386
|
+
className: clsx13("fixed inset-0 w-screen h-screen", containerClassName),
|
|
9387
|
+
hidden: !state.isOpen,
|
|
9388
|
+
children: [
|
|
9389
|
+
/* @__PURE__ */ jsx17(
|
|
9390
|
+
"div",
|
|
9391
|
+
{
|
|
9392
|
+
id: `select-background-${state.id}`,
|
|
9393
|
+
onClick: () => trigger.toggleOpen(false),
|
|
9394
|
+
className: clsx13("fixed inset-0 w-screen h-screen")
|
|
9395
|
+
}
|
|
9396
|
+
),
|
|
9397
|
+
/* @__PURE__ */ jsx17(
|
|
9398
|
+
"ul",
|
|
9399
|
+
{
|
|
9400
|
+
...props,
|
|
9401
|
+
id: `${state.id}-listbox`,
|
|
9402
|
+
ref: innerRef,
|
|
9403
|
+
onKeyDown: (event) => {
|
|
9404
|
+
switch (event.key) {
|
|
9405
|
+
case "Escape":
|
|
9403
9406
|
trigger.toggleOpen(false);
|
|
9404
|
-
|
|
9405
|
-
|
|
9407
|
+
event.preventDefault();
|
|
9408
|
+
event.stopPropagation();
|
|
9409
|
+
break;
|
|
9410
|
+
case match(orientation, {
|
|
9411
|
+
vertical: "ArrowDown",
|
|
9412
|
+
horizontal: "ArrowUp"
|
|
9413
|
+
}):
|
|
9414
|
+
item.moveHighlightedIndex(1);
|
|
9415
|
+
event.preventDefault();
|
|
9416
|
+
break;
|
|
9417
|
+
case match(orientation, {
|
|
9418
|
+
vertical: "ArrowUp",
|
|
9419
|
+
horizontal: "ArrowDown"
|
|
9420
|
+
}):
|
|
9421
|
+
item.moveHighlightedIndex(-1);
|
|
9422
|
+
event.preventDefault();
|
|
9423
|
+
break;
|
|
9424
|
+
case "Home":
|
|
9425
|
+
event.preventDefault();
|
|
9426
|
+
break;
|
|
9427
|
+
case "End":
|
|
9428
|
+
event.preventDefault();
|
|
9429
|
+
break;
|
|
9430
|
+
case "Enter":
|
|
9431
|
+
// Fall through
|
|
9432
|
+
case " ":
|
|
9433
|
+
if (state.highlightedValue) {
|
|
9434
|
+
item.toggleSelection(state.highlightedValue);
|
|
9435
|
+
if (!config.isMultiSelect) {
|
|
9436
|
+
trigger.toggleOpen(false);
|
|
9437
|
+
}
|
|
9438
|
+
event.preventDefault();
|
|
9439
|
+
}
|
|
9440
|
+
break;
|
|
9406
9441
|
}
|
|
9407
|
-
|
|
9442
|
+
},
|
|
9443
|
+
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),
|
|
9444
|
+
style: {
|
|
9445
|
+
opacity: position ? void 0 : 0,
|
|
9446
|
+
position: "fixed",
|
|
9447
|
+
...position
|
|
9448
|
+
},
|
|
9449
|
+
role: "listbox",
|
|
9450
|
+
"aria-multiselectable": config.isMultiSelect,
|
|
9451
|
+
"aria-orientation": orientation,
|
|
9452
|
+
tabIndex: position ? 0 : void 0,
|
|
9453
|
+
children: props.children
|
|
9408
9454
|
}
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
position: "fixed",
|
|
9414
|
-
...position
|
|
9415
|
-
},
|
|
9416
|
-
role: "listbox",
|
|
9417
|
-
"aria-multiselectable": config.isMultiSelect,
|
|
9418
|
-
"aria-orientation": orientation,
|
|
9419
|
-
tabIndex: position ? 0 : void 0,
|
|
9420
|
-
children: props.children
|
|
9421
|
-
}
|
|
9422
|
-
)
|
|
9423
|
-
] }),
|
|
9455
|
+
)
|
|
9456
|
+
]
|
|
9457
|
+
}
|
|
9458
|
+
),
|
|
9424
9459
|
document.body
|
|
9425
9460
|
);
|
|
9426
9461
|
}
|
|
@@ -9574,7 +9609,7 @@ import { MonitorCog, MoonIcon, SunIcon } from "lucide-react";
|
|
|
9574
9609
|
import clsx14 from "clsx";
|
|
9575
9610
|
|
|
9576
9611
|
// src/theming/useTheme.tsx
|
|
9577
|
-
import { createContext as createContext3, useCallback as useCallback7, useContext as useContext3, useEffect as useEffect14, useMemo as
|
|
9612
|
+
import { createContext as createContext3, useCallback as useCallback7, useContext as useContext3, useEffect as useEffect14, useMemo as useMemo3, useState as useState13 } from "react";
|
|
9578
9613
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
9579
9614
|
var themes = ["light", "dark", "system"];
|
|
9580
9615
|
var defaultThemeTypeTranslation = {
|
|
@@ -9609,7 +9644,7 @@ var ThemeProvider = ({ children, theme }) => {
|
|
|
9609
9644
|
deleteValue: deleteStoredTheme
|
|
9610
9645
|
} = useLocalStorage("theme", "system");
|
|
9611
9646
|
const [themePreference, setThemePreference] = useState13("system");
|
|
9612
|
-
const resolvedTheme =
|
|
9647
|
+
const resolvedTheme = useMemo3(() => {
|
|
9613
9648
|
if (theme && theme !== "system") {
|
|
9614
9649
|
return theme;
|
|
9615
9650
|
}
|
|
@@ -9660,7 +9695,7 @@ var ThemeProvider = ({ children, theme }) => {
|
|
|
9660
9695
|
theme: storedTheme,
|
|
9661
9696
|
resolvedTheme,
|
|
9662
9697
|
setTheme: (newTheme) => {
|
|
9663
|
-
if (theme) {
|
|
9698
|
+
if (theme && theme !== "system") {
|
|
9664
9699
|
console.warn("ThemeProvider: Attempting to change the theme while setting a fixed theme won't have any effect. Change the theme provided to the ThemeProvider instead.");
|
|
9665
9700
|
}
|
|
9666
9701
|
setStoredTheme(newTheme);
|
|
@@ -9743,7 +9778,7 @@ var ThemeDialog = ({
|
|
|
9743
9778
|
};
|
|
9744
9779
|
|
|
9745
9780
|
// src/components/form/FormElementWrapper.tsx
|
|
9746
|
-
import { useId as
|
|
9781
|
+
import { useId as useId5 } from "react";
|
|
9747
9782
|
import { clsx as clsx16 } from "clsx";
|
|
9748
9783
|
|
|
9749
9784
|
// src/components/user-action/Label.tsx
|
|
@@ -9781,7 +9816,7 @@ var FormElementWrapper = ({
|
|
|
9781
9816
|
containerClassName
|
|
9782
9817
|
}) => {
|
|
9783
9818
|
const [touched, setTouched] = useOverwritableState(initialIsShowingError, onIsShowingError);
|
|
9784
|
-
const generatedId =
|
|
9819
|
+
const generatedId = useId5();
|
|
9785
9820
|
const usedId = id ?? generatedId;
|
|
9786
9821
|
const errorId = `${usedId}-description`;
|
|
9787
9822
|
const labelId = `${usedId}-label`;
|
|
@@ -9852,7 +9887,7 @@ var FormElementWrapper = ({
|
|
|
9852
9887
|
|
|
9853
9888
|
// src/components/icons-and-geometry/Avatar.tsx
|
|
9854
9889
|
import clsx17 from "clsx";
|
|
9855
|
-
import { useMemo as
|
|
9890
|
+
import { useMemo as useMemo6 } from "react";
|
|
9856
9891
|
import { UserIcon } from "lucide-react";
|
|
9857
9892
|
|
|
9858
9893
|
// node_modules/@radix-ui/react-avatar/dist/index.mjs
|
|
@@ -9979,7 +10014,7 @@ function useComposedRefs(...refs) {
|
|
|
9979
10014
|
}
|
|
9980
10015
|
|
|
9981
10016
|
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
9982
|
-
import { Fragment as
|
|
10017
|
+
import { Fragment as Fragment2, jsx as jsx24 } from "react/jsx-runtime";
|
|
9983
10018
|
// @__NO_SIDE_EFFECTS__
|
|
9984
10019
|
function createSlot(ownerName) {
|
|
9985
10020
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
@@ -10251,7 +10286,7 @@ var Avatar2 = ({ image, name, size = "md", fullyRounded, className = "" }) => {
|
|
|
10251
10286
|
maxHeight: pixels
|
|
10252
10287
|
};
|
|
10253
10288
|
const textClassName = textClassNameMapping[size];
|
|
10254
|
-
const displayName =
|
|
10289
|
+
const displayName = useMemo6(() => {
|
|
10255
10290
|
const maxLetters = size === "sm" ? 1 : 2;
|
|
10256
10291
|
return (name ?? "").split(" ").filter((_, index) => index < maxLetters).map((value) => value[0]).join("").toUpperCase();
|
|
10257
10292
|
}, [name, size]);
|
|
@@ -10641,14 +10676,14 @@ import {
|
|
|
10641
10676
|
useCallback as useCallback10,
|
|
10642
10677
|
useContext as useContext5,
|
|
10643
10678
|
useEffect as useEffect18,
|
|
10644
|
-
useId as
|
|
10645
|
-
useMemo as
|
|
10679
|
+
useId as useId6,
|
|
10680
|
+
useMemo as useMemo7,
|
|
10646
10681
|
useRef as useRef9,
|
|
10647
10682
|
useState as useState16
|
|
10648
10683
|
} from "react";
|
|
10649
10684
|
import clsx20 from "clsx";
|
|
10650
10685
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
10651
|
-
import { Fragment as
|
|
10686
|
+
import { Fragment as Fragment3, jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
10652
10687
|
var CarouselContext = createContext5(null);
|
|
10653
10688
|
var useCarouselContext = () => {
|
|
10654
10689
|
const context = useContext5(CarouselContext);
|
|
@@ -10802,9 +10837,9 @@ var Carousel = ({
|
|
|
10802
10837
|
const carouselContainerRef = useRef9(null);
|
|
10803
10838
|
const [disableClick, setDisableClick] = useState16(false);
|
|
10804
10839
|
const timeOut = useRef9(void 0);
|
|
10805
|
-
const length =
|
|
10840
|
+
const length = useMemo7(() => children.length, [children]);
|
|
10806
10841
|
const paddingItemCount = 3;
|
|
10807
|
-
const generatedId = "carousel" +
|
|
10842
|
+
const generatedId = "carousel" + useId6();
|
|
10808
10843
|
const id = props.id ?? generatedId;
|
|
10809
10844
|
if (isAutoPlaying && !isLooping) {
|
|
10810
10845
|
console.error("When isAutoLooping is true, isLooping should also be true");
|
|
@@ -10984,7 +11019,7 @@ var Carousel = ({
|
|
|
10984
11019
|
children: children[currentIndex]
|
|
10985
11020
|
}
|
|
10986
11021
|
),
|
|
10987
|
-
arrows && /* @__PURE__ */ jsxs17(
|
|
11022
|
+
arrows && /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
10988
11023
|
/* @__PURE__ */ jsx31(
|
|
10989
11024
|
IconButton,
|
|
10990
11025
|
{
|
|
@@ -11041,7 +11076,7 @@ var DividerInserter = ({
|
|
|
11041
11076
|
import clsx22 from "clsx";
|
|
11042
11077
|
|
|
11043
11078
|
// src/components/layout/MarkdownInterpreter.tsx
|
|
11044
|
-
import { Fragment as
|
|
11079
|
+
import { Fragment as Fragment4, jsx as jsx33 } from "react/jsx-runtime";
|
|
11045
11080
|
var astNodeInserterType = ["helpwave", "newline"];
|
|
11046
11081
|
var ASTNodeInterpreter = ({
|
|
11047
11082
|
node,
|
|
@@ -11062,7 +11097,7 @@ var ASTNodeInterpreter = ({
|
|
|
11062
11097
|
node: value
|
|
11063
11098
|
},
|
|
11064
11099
|
index
|
|
11065
|
-
)) }) : /* @__PURE__ */ jsx33(
|
|
11100
|
+
)) }) : /* @__PURE__ */ jsx33(Fragment4, { children: node.children.map((value, index) => /* @__PURE__ */ jsx33(ASTNodeInterpreter, { node: value }, index)) });
|
|
11066
11101
|
case "bold":
|
|
11067
11102
|
return /* @__PURE__ */ jsx33("b", { children: node.children.map((value, index) => /* @__PURE__ */ jsx33(ASTNodeInterpreter, { node: value }, index)) });
|
|
11068
11103
|
case "italic":
|
|
@@ -11295,7 +11330,7 @@ var FAQSection = ({
|
|
|
11295
11330
|
import { forwardRef as forwardRef9, useImperativeHandle as useImperativeHandle3, useRef as useRef10 } from "react";
|
|
11296
11331
|
import { createPortal as createPortal3 } from "react-dom";
|
|
11297
11332
|
import { clsx as clsx23 } from "clsx";
|
|
11298
|
-
import { Fragment as
|
|
11333
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
11299
11334
|
var FloatingContainer = forwardRef9(function FloatingContainer2({
|
|
11300
11335
|
children,
|
|
11301
11336
|
backgroundOverlay,
|
|
@@ -11322,7 +11357,7 @@ var FloatingContainer = forwardRef9(function FloatingContainer2({
|
|
|
11322
11357
|
screenPadding
|
|
11323
11358
|
});
|
|
11324
11359
|
return createPortal3(
|
|
11325
|
-
/* @__PURE__ */ jsxs18(
|
|
11360
|
+
/* @__PURE__ */ jsxs18(Fragment5, { children: [
|
|
11326
11361
|
backgroundOverlay,
|
|
11327
11362
|
/* @__PURE__ */ jsx35(
|
|
11328
11363
|
"div",
|
|
@@ -11766,7 +11801,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
11766
11801
|
|
|
11767
11802
|
// node_modules/@radix-ui/react-scroll-area/dist/index.mjs
|
|
11768
11803
|
import * as React14 from "react";
|
|
11769
|
-
import { Fragment as
|
|
11804
|
+
import { Fragment as Fragment6, jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
11770
11805
|
function useStateMachine2(initialState, machine) {
|
|
11771
11806
|
return React14.useReducer((state, event) => {
|
|
11772
11807
|
const nextState = machine[state][event];
|
|
@@ -11845,7 +11880,7 @@ var ScrollAreaViewport = React23.forwardRef(
|
|
|
11845
11880
|
const context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea);
|
|
11846
11881
|
const ref = React23.useRef(null);
|
|
11847
11882
|
const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);
|
|
11848
|
-
return /* @__PURE__ */ jsxs19(
|
|
11883
|
+
return /* @__PURE__ */ jsxs19(Fragment6, { children: [
|
|
11849
11884
|
/* @__PURE__ */ jsx38(
|
|
11850
11885
|
"style",
|
|
11851
11886
|
{
|
|
@@ -12835,13 +12870,13 @@ var ProgressIndicator = ({
|
|
|
12835
12870
|
// src/components/navigation/BreadCrumb.tsx
|
|
12836
12871
|
var import_link = __toESM(require_link2());
|
|
12837
12872
|
import clsx32 from "clsx";
|
|
12838
|
-
import { Fragment as
|
|
12873
|
+
import { Fragment as Fragment7 } from "react";
|
|
12839
12874
|
import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12840
12875
|
var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
|
|
12841
12876
|
const color = "text-description";
|
|
12842
12877
|
return /* @__PURE__ */ jsx48("div", { className: clsx32("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
|
|
12843
12878
|
const isLast = index === crumbs.length - 1;
|
|
12844
|
-
return /* @__PURE__ */ jsxs27(
|
|
12879
|
+
return /* @__PURE__ */ jsxs27(Fragment7, { children: [
|
|
12845
12880
|
/* @__PURE__ */ jsx48(
|
|
12846
12881
|
import_link.default,
|
|
12847
12882
|
{
|
|
@@ -12859,9 +12894,9 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
|
|
|
12859
12894
|
var import_link2 = __toESM(require_link2());
|
|
12860
12895
|
import { Menu as MenuIcon, XIcon as XIcon2 } from "lucide-react";
|
|
12861
12896
|
import { useEffect as useEffect22 } from "react";
|
|
12862
|
-
import { useCallback as useCallback14, useId as
|
|
12897
|
+
import { useCallback as useCallback14, useId as useId7, useRef as useRef14, useState as useState21 } from "react";
|
|
12863
12898
|
import clsx33 from "clsx";
|
|
12864
|
-
import { Fragment as
|
|
12899
|
+
import { Fragment as Fragment8, jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12865
12900
|
function isSubItem(item) {
|
|
12866
12901
|
return "items" in item && Array.isArray(item.items);
|
|
12867
12902
|
}
|
|
@@ -12874,7 +12909,7 @@ var NavigationItemWithSubItem = ({
|
|
|
12874
12909
|
const [isOpen, setOpen] = useState21(false);
|
|
12875
12910
|
const containerRef = useRef14();
|
|
12876
12911
|
const triggerRef = useRef14(null);
|
|
12877
|
-
const id =
|
|
12912
|
+
const id = useId7();
|
|
12878
12913
|
const style = useFloatingElement({
|
|
12879
12914
|
active: isOpen,
|
|
12880
12915
|
containerRef,
|
|
@@ -12888,7 +12923,7 @@ var NavigationItemWithSubItem = ({
|
|
|
12888
12923
|
setOpen(false);
|
|
12889
12924
|
}
|
|
12890
12925
|
}, []);
|
|
12891
|
-
return /* @__PURE__ */ jsxs28(
|
|
12926
|
+
return /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
12892
12927
|
/* @__PURE__ */ jsxs28(
|
|
12893
12928
|
"button",
|
|
12894
12929
|
{
|
|
@@ -12937,12 +12972,12 @@ var NavigationItemList = ({ items, ...restProps }) => {
|
|
|
12937
12972
|
};
|
|
12938
12973
|
var Navigation = ({ ...props }) => {
|
|
12939
12974
|
const [isMobileOpen, setIsMobileOpen] = useState21(false);
|
|
12940
|
-
const id =
|
|
12975
|
+
const id = useId7();
|
|
12941
12976
|
const menuRef = useRef14(null);
|
|
12942
12977
|
useEffect22(() => {
|
|
12943
12978
|
menuRef.current?.focus();
|
|
12944
12979
|
}, [isMobileOpen]);
|
|
12945
|
-
return /* @__PURE__ */ jsxs28(
|
|
12980
|
+
return /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
12946
12981
|
/* @__PURE__ */ jsx49(
|
|
12947
12982
|
NavigationItemList,
|
|
12948
12983
|
{
|
|
@@ -13298,7 +13333,7 @@ function useSize(element) {
|
|
|
13298
13333
|
}
|
|
13299
13334
|
|
|
13300
13335
|
// node_modules/@radix-ui/react-checkbox/dist/index.mjs
|
|
13301
|
-
import { Fragment as
|
|
13336
|
+
import { Fragment as Fragment9, jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
13302
13337
|
var CHECKBOX_NAME = "Checkbox";
|
|
13303
13338
|
var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
|
|
13304
13339
|
var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
|
@@ -13434,7 +13469,7 @@ var Checkbox = React19.forwardRef(
|
|
|
13434
13469
|
name,
|
|
13435
13470
|
form,
|
|
13436
13471
|
value,
|
|
13437
|
-
internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs31(
|
|
13472
|
+
internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs31(Fragment9, { children: [
|
|
13438
13473
|
/* @__PURE__ */ jsx52(
|
|
13439
13474
|
CheckboxTrigger,
|
|
13440
13475
|
{
|
|
@@ -13688,7 +13723,7 @@ var PropertyBase = ({
|
|
|
13688
13723
|
};
|
|
13689
13724
|
|
|
13690
13725
|
// src/components/properties/CheckboxProperty.tsx
|
|
13691
|
-
import { useId as
|
|
13726
|
+
import { useId as useId8 } from "react";
|
|
13692
13727
|
import { jsx as jsx55, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
13693
13728
|
var CheckboxProperty = ({
|
|
13694
13729
|
overwriteTranslation,
|
|
@@ -13698,7 +13733,7 @@ var CheckboxProperty = ({
|
|
|
13698
13733
|
...baseProps
|
|
13699
13734
|
}) => {
|
|
13700
13735
|
const translation = useTranslation([formTranslation], overwriteTranslation);
|
|
13701
|
-
const id =
|
|
13736
|
+
const id = useId8();
|
|
13702
13737
|
return /* @__PURE__ */ jsx55(
|
|
13703
13738
|
PropertyBase,
|
|
13704
13739
|
{
|
|
@@ -13921,7 +13956,7 @@ import { Text } from "lucide-react";
|
|
|
13921
13956
|
import clsx43 from "clsx";
|
|
13922
13957
|
|
|
13923
13958
|
// src/components/user-action/Textarea.tsx
|
|
13924
|
-
import { forwardRef as forwardRef13, useId as
|
|
13959
|
+
import { forwardRef as forwardRef13, useId as useId9 } from "react";
|
|
13925
13960
|
import clsx42 from "clsx";
|
|
13926
13961
|
import { jsx as jsx60, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
13927
13962
|
var Textarea = forwardRef13(function Textarea2({
|
|
@@ -13998,7 +14033,7 @@ var TextareaWithHeadline = ({
|
|
|
13998
14033
|
containerClassName,
|
|
13999
14034
|
...props
|
|
14000
14035
|
}) => {
|
|
14001
|
-
const genId =
|
|
14036
|
+
const genId = useId9();
|
|
14002
14037
|
const usedId = id ?? genId;
|
|
14003
14038
|
return /* @__PURE__ */ jsxs36(
|
|
14004
14039
|
"div",
|
|
@@ -14113,7 +14148,7 @@ var TableFilters = {
|
|
|
14113
14148
|
};
|
|
14114
14149
|
|
|
14115
14150
|
// src/components/table/Table.tsx
|
|
14116
|
-
import { useCallback as useCallback16, useEffect as useEffect32, useMemo as
|
|
14151
|
+
import { useCallback as useCallback16, useEffect as useEffect32, useMemo as useMemo10, useRef as useRef20, useState as useState29 } from "react";
|
|
14117
14152
|
import clsx48 from "clsx";
|
|
14118
14153
|
import {
|
|
14119
14154
|
flexRender,
|
|
@@ -14317,7 +14352,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
14317
14352
|
};
|
|
14318
14353
|
|
|
14319
14354
|
// src/components/user-action/Menu.tsx
|
|
14320
|
-
import { Fragment as
|
|
14355
|
+
import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
14321
14356
|
var MenuItem = ({
|
|
14322
14357
|
children,
|
|
14323
14358
|
onClick,
|
|
@@ -14393,7 +14428,7 @@ var Menu = ({
|
|
|
14393
14428
|
setIsHidden(false);
|
|
14394
14429
|
}
|
|
14395
14430
|
}, [isOpen]);
|
|
14396
|
-
return /* @__PURE__ */ jsxs37(
|
|
14431
|
+
return /* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
14397
14432
|
trigger(bag, triggerRef),
|
|
14398
14433
|
createPortal4(/* @__PURE__ */ jsx65(
|
|
14399
14434
|
"div",
|
|
@@ -14425,7 +14460,7 @@ var Menu = ({
|
|
|
14425
14460
|
|
|
14426
14461
|
// src/components/table/TableFilterButton.tsx
|
|
14427
14462
|
import { useEffect as useEffect31, useState as useState28 } from "react";
|
|
14428
|
-
import { Fragment as
|
|
14463
|
+
import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
14429
14464
|
var defaultTableFilterTranslation = {
|
|
14430
14465
|
en: {
|
|
14431
14466
|
filter: "Filter",
|
|
@@ -14509,7 +14544,7 @@ var TableFilterButton = ({
|
|
|
14509
14544
|
}
|
|
14510
14545
|
)
|
|
14511
14546
|
] }),
|
|
14512
|
-
filterType === "dateRange" && /* @__PURE__ */ jsxs38(
|
|
14547
|
+
filterType === "dateRange" && /* @__PURE__ */ jsxs38(Fragment11, { children: [
|
|
14513
14548
|
/* @__PURE__ */ jsx66(
|
|
14514
14549
|
Input,
|
|
14515
14550
|
{
|
|
@@ -14581,7 +14616,7 @@ var Table = ({
|
|
|
14581
14616
|
...initialState?.pagination
|
|
14582
14617
|
});
|
|
14583
14618
|
const [columnFilters, setColumnFilters] = useState29(initialState?.columnFilters);
|
|
14584
|
-
const computedColumnMinWidths =
|
|
14619
|
+
const computedColumnMinWidths = useMemo10(() => {
|
|
14585
14620
|
return columns.reduce((previousValue, column) => {
|
|
14586
14621
|
return {
|
|
14587
14622
|
...previousValue,
|
|
@@ -14590,7 +14625,7 @@ var Table = ({
|
|
|
14590
14625
|
};
|
|
14591
14626
|
}, {});
|
|
14592
14627
|
}, [columns, defaultColumn]);
|
|
14593
|
-
const computedColumnMaxWidths =
|
|
14628
|
+
const computedColumnMaxWidths = useMemo10(() => {
|
|
14594
14629
|
return columns.reduce((previousValue, column) => {
|
|
14595
14630
|
return {
|
|
14596
14631
|
...previousValue,
|
|
@@ -14598,12 +14633,12 @@ var Table = ({
|
|
|
14598
14633
|
};
|
|
14599
14634
|
}, {});
|
|
14600
14635
|
}, [columns, defaultColumn]);
|
|
14601
|
-
const tableMinWidth =
|
|
14636
|
+
const tableMinWidth = useMemo10(() => {
|
|
14602
14637
|
return columns.reduce((sum, column) => {
|
|
14603
14638
|
return sum + computedColumnMinWidths[column.id];
|
|
14604
14639
|
}, 0);
|
|
14605
14640
|
}, [columns, computedColumnMinWidths]);
|
|
14606
|
-
const updateColumnSizes =
|
|
14641
|
+
const updateColumnSizes = useMemo10(() => {
|
|
14607
14642
|
return (previous) => {
|
|
14608
14643
|
const updateSizing = {
|
|
14609
14644
|
...columnSizing,
|
|
@@ -14747,7 +14782,7 @@ var Table = ({
|
|
|
14747
14782
|
}));
|
|
14748
14783
|
}
|
|
14749
14784
|
}, [data, pageCount, pagination.pageSize, pagination.pageIndex]);
|
|
14750
|
-
const columnSizeVars =
|
|
14785
|
+
const columnSizeVars = useMemo10(() => {
|
|
14751
14786
|
const headers = table.getFlatHeaders();
|
|
14752
14787
|
const colSizes = {};
|
|
14753
14788
|
for (let i = 0; i < headers.length; i++) {
|
|
@@ -14882,7 +14917,7 @@ var TableWithSelection = ({
|
|
|
14882
14917
|
meta,
|
|
14883
14918
|
...props
|
|
14884
14919
|
}) => {
|
|
14885
|
-
const columnsWithSelection =
|
|
14920
|
+
const columnsWithSelection = useMemo10(() => {
|
|
14886
14921
|
return [
|
|
14887
14922
|
{
|
|
14888
14923
|
id: selectionRowId,
|
|
@@ -15402,7 +15437,7 @@ var Tooltip = ({
|
|
|
15402
15437
|
};
|
|
15403
15438
|
|
|
15404
15439
|
// src/components/user-action/input/InsideLabelInput.tsx
|
|
15405
|
-
import { useId as
|
|
15440
|
+
import { useId as useId10 } from "react";
|
|
15406
15441
|
import { forwardRef as forwardRef14, useState as useState32 } from "react";
|
|
15407
15442
|
import clsx54 from "clsx";
|
|
15408
15443
|
import { jsx as jsx73, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
@@ -15413,7 +15448,7 @@ var InsideLabelInput = forwardRef14(function InsideLabelInput2({
|
|
|
15413
15448
|
}, forwardedRef) {
|
|
15414
15449
|
const { value } = props;
|
|
15415
15450
|
const [isFocused, setIsFocused] = useState32(false);
|
|
15416
|
-
const generatedId =
|
|
15451
|
+
const generatedId = useId10();
|
|
15417
15452
|
const id = customId ?? generatedId;
|
|
15418
15453
|
return /* @__PURE__ */ jsxs45("div", { className: clsx54("relative"), children: [
|
|
15419
15454
|
/* @__PURE__ */ jsx73(
|
|
@@ -15661,7 +15696,7 @@ var useRerender = () => {
|
|
|
15661
15696
|
};
|
|
15662
15697
|
|
|
15663
15698
|
// src/hooks/useSearch.ts
|
|
15664
|
-
import { useCallback as useCallback18, useEffect as useEffect38, useMemo as
|
|
15699
|
+
import { useCallback as useCallback18, useEffect as useEffect38, useMemo as useMemo11, useState as useState35 } from "react";
|
|
15665
15700
|
|
|
15666
15701
|
// src/utils/simpleSearch.ts
|
|
15667
15702
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -15702,7 +15737,7 @@ var useSearch = ({
|
|
|
15702
15737
|
}) => {
|
|
15703
15738
|
const [search, setSearch] = useState35(initialSearch ?? "");
|
|
15704
15739
|
const [result, setResult] = useState35(list);
|
|
15705
|
-
const searchTags =
|
|
15740
|
+
const searchTags = useMemo11(() => additionalSearchTags ?? [], [additionalSearchTags]);
|
|
15706
15741
|
const updateSearch = useCallback18((newSearch) => {
|
|
15707
15742
|
const usedSearch = newSearch ?? search;
|
|
15708
15743
|
if (newSearch) {
|
|
@@ -15715,19 +15750,19 @@ var useSearch = ({
|
|
|
15715
15750
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
15716
15751
|
}
|
|
15717
15752
|
}, [searchTags, isSearchInstant, list, search, searchMapping, additionalSearchTags]);
|
|
15718
|
-
const filteredResult =
|
|
15753
|
+
const filteredResult = useMemo11(() => {
|
|
15719
15754
|
if (!filter) {
|
|
15720
15755
|
return result;
|
|
15721
15756
|
}
|
|
15722
15757
|
return result.filter(filter);
|
|
15723
15758
|
}, [result, filter]);
|
|
15724
|
-
const sortedAndFilteredResult =
|
|
15759
|
+
const sortedAndFilteredResult = useMemo11(() => {
|
|
15725
15760
|
if (!sortingFunction) {
|
|
15726
15761
|
return filteredResult;
|
|
15727
15762
|
}
|
|
15728
15763
|
return filteredResult.sort(sortingFunction);
|
|
15729
15764
|
}, [filteredResult, sortingFunction]);
|
|
15730
|
-
const usedResult =
|
|
15765
|
+
const usedResult = useMemo11(() => {
|
|
15731
15766
|
if (!disabled) {
|
|
15732
15767
|
return sortedAndFilteredResult;
|
|
15733
15768
|
}
|