@helpwave/hightide 0.1.23 → 0.1.25
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 +48 -53
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +58 -63
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/DayPicker.mjs +4 -4
- package/dist/components/date/DayPicker.mjs.map +1 -1
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/TimeDisplay.mjs +2 -2
- package/dist/components/date/TimeDisplay.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js +26 -29
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +31 -34
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.js +40 -43
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +48 -51
- package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +40 -43
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +40 -43
- package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.js +40 -43
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +46 -49
- package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.js +40 -43
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +50 -53
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.js +40 -43
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +50 -53
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.js +26 -29
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +30 -33
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.mjs +2 -2
- package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs +2 -2
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs +2 -2
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
- package/dist/components/loading-states/LoadingButton.js +26 -29
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/LoadingButton.mjs +26 -29
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
- package/dist/components/modals/ConfirmModal.js +40 -43
- package/dist/components/modals/ConfirmModal.js.map +1 -1
- package/dist/components/modals/ConfirmModal.mjs +48 -51
- package/dist/components/modals/ConfirmModal.mjs.map +1 -1
- package/dist/components/modals/DiscardChangesModal.js +40 -43
- package/dist/components/modals/DiscardChangesModal.js.map +1 -1
- package/dist/components/modals/DiscardChangesModal.mjs +48 -51
- package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
- package/dist/components/modals/InputModal.js +40 -43
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/InputModal.mjs +48 -51
- package/dist/components/modals/InputModal.mjs.map +1 -1
- package/dist/components/modals/LanguageModal.js +43 -49
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.mjs +67 -73
- package/dist/components/modals/LanguageModal.mjs.map +1 -1
- package/dist/components/modals/ThemeModal.js +43 -49
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.mjs +68 -74
- package/dist/components/modals/ThemeModal.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +96 -75
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +98 -77
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +48 -53
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +50 -55
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.js +114 -93
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +135 -114
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +48 -53
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +50 -55
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +48 -53
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +50 -55
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.js +65 -73
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +86 -94
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +51 -56
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +57 -62
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js +88 -65
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +114 -91
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js +40 -43
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +44 -47
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/table/TableSortButton.js +40 -43
- package/dist/components/table/TableSortButton.js.map +1 -1
- package/dist/components/table/TableSortButton.mjs +40 -43
- package/dist/components/table/TableSortButton.mjs.map +1 -1
- package/dist/components/user-action/Button.d.mts +3 -3
- package/dist/components/user-action/Button.d.ts +3 -3
- package/dist/components/user-action/Button.js +76 -84
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/Button.mjs +76 -84
- package/dist/components/user-action/Button.mjs.map +1 -1
- package/dist/components/user-action/Checkbox.js +48 -22
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +48 -22
- package/dist/components/user-action/Checkbox.mjs.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs +2 -2
- package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.js +48 -53
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +60 -65
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/MultiSelect.js +92 -69
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/MultiSelect.mjs +114 -91
- package/dist/components/user-action/MultiSelect.mjs.map +1 -1
- package/dist/components/user-action/SearchBar.js +40 -43
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +42 -45
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/Select.js +43 -49
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/Select.mjs +49 -55
- package/dist/components/user-action/Select.mjs.map +1 -1
- package/dist/components/user-action/Textarea.js +3 -3
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +3 -3
- package/dist/components/user-action/Textarea.mjs.map +1 -1
- package/dist/css/globals.css +269 -136
- package/dist/css/uncompiled/theme/index.css +1 -2
- package/dist/hooks/useLocalStorage.js +1 -3
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLocalStorage.mjs +3 -4
- package/dist/hooks/useLocalStorage.mjs.map +1 -1
- package/dist/index.js +141 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +216 -204
- package/dist/index.mjs.map +1 -1
- package/dist/localization/LanguageProvider.js +0 -3
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/LanguageProvider.mjs +5 -8
- package/dist/localization/LanguageProvider.mjs.map +1 -1
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs +2 -2
- package/dist/localization/useTranslation.mjs.map +1 -1
- package/dist/theming/useTheme.js +3 -6
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +8 -11
- package/dist/theming/useTheme.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/css/uncompiled/theme/theme.css +0 -0
package/dist/index.mjs
CHANGED
|
@@ -5805,14 +5805,14 @@ var HelpwaveBadge = ({
|
|
|
5805
5805
|
};
|
|
5806
5806
|
|
|
5807
5807
|
// src/components/date/DatePicker.tsx
|
|
5808
|
-
import { useEffect as
|
|
5808
|
+
import { useEffect as useEffect5, useState as useState6 } from "react";
|
|
5809
5809
|
import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2 } from "lucide-react";
|
|
5810
5810
|
|
|
5811
5811
|
// src/localization/LanguageProvider.tsx
|
|
5812
|
-
import { createContext, useContext, useEffect
|
|
5812
|
+
import { createContext, useContext, useEffect, useState as useState2 } from "react";
|
|
5813
5813
|
|
|
5814
5814
|
// src/hooks/useLocalStorage.ts
|
|
5815
|
-
import { useCallback,
|
|
5815
|
+
import { useCallback, useState } from "react";
|
|
5816
5816
|
|
|
5817
5817
|
// src/util/storage.ts
|
|
5818
5818
|
var StorageService = class {
|
|
@@ -5870,9 +5870,6 @@ var useLocalStorage = (key, initValue) => {
|
|
|
5870
5870
|
storageService.set(key, newValue);
|
|
5871
5871
|
setStoredValue(newValue);
|
|
5872
5872
|
}, [storedValue, setStoredValue, key]);
|
|
5873
|
-
useEffect(() => {
|
|
5874
|
-
setStoredValue(get());
|
|
5875
|
-
}, []);
|
|
5876
5873
|
return [storedValue, setValue];
|
|
5877
5874
|
};
|
|
5878
5875
|
|
|
@@ -5907,17 +5904,17 @@ var useLocale = (overWriteLanguage) => {
|
|
|
5907
5904
|
var LanguageProvider = ({ initialLanguage, children }) => {
|
|
5908
5905
|
const [language, setLanguage] = useState2(initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
|
|
5909
5906
|
const [storedLanguage, setStoredLanguage] = useLocalStorage("language", initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
|
|
5910
|
-
|
|
5907
|
+
useEffect(() => {
|
|
5911
5908
|
if (language !== initialLanguage && initialLanguage) {
|
|
5912
5909
|
console.warn("LanguageProvider initial state changed: Prefer using languageProvider's setLanguage instead");
|
|
5913
5910
|
setLanguage(initialLanguage);
|
|
5914
5911
|
}
|
|
5915
5912
|
}, [initialLanguage]);
|
|
5916
|
-
|
|
5913
|
+
useEffect(() => {
|
|
5917
5914
|
document.documentElement.setAttribute("lang", language);
|
|
5918
5915
|
setStoredLanguage(language);
|
|
5919
5916
|
}, [language]);
|
|
5920
|
-
|
|
5917
|
+
useEffect(() => {
|
|
5921
5918
|
if (storedLanguage !== null) {
|
|
5922
5919
|
setLanguage(storedLanguage);
|
|
5923
5920
|
return;
|
|
@@ -6269,7 +6266,6 @@ var ButtonUtil = {
|
|
|
6269
6266
|
};
|
|
6270
6267
|
var SolidButton = forwardRef(function SolidButton2({
|
|
6271
6268
|
children,
|
|
6272
|
-
disabled = false,
|
|
6273
6269
|
color = "primary",
|
|
6274
6270
|
size = "medium",
|
|
6275
6271
|
startIcon,
|
|
@@ -6279,35 +6275,33 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
6279
6275
|
...restProps
|
|
6280
6276
|
}, ref) {
|
|
6281
6277
|
const colorClasses = {
|
|
6282
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
6283
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
6284
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
6285
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
6286
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
6287
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
6288
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
6278
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
6279
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
6280
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
6281
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
6282
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
6283
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
6284
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
6289
6285
|
}[color];
|
|
6290
6286
|
const iconColorClasses = {
|
|
6291
|
-
primary: "text-button-solid-primary-icon",
|
|
6292
|
-
secondary: "text-button-solid-secondary-icon",
|
|
6293
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
6294
|
-
positive: "text-button-solid-positive-icon",
|
|
6295
|
-
warning: "text-button-solid-warning-icon",
|
|
6296
|
-
negative: "text-button-solid-negative-icon",
|
|
6297
|
-
neutral: "text-button-solid-neutral-icon"
|
|
6287
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
6288
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
6289
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
6290
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
6291
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
6292
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
6293
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
6298
6294
|
}[color];
|
|
6299
6295
|
return /* @__PURE__ */ jsxs3(
|
|
6300
6296
|
"button",
|
|
6301
6297
|
{
|
|
6302
6298
|
ref,
|
|
6303
6299
|
onClick,
|
|
6304
|
-
disabled,
|
|
6305
6300
|
className: clsx4(
|
|
6306
|
-
"font-semibold",
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
},
|
|
6301
|
+
"group font-semibold",
|
|
6302
|
+
colorClasses,
|
|
6303
|
+
"not-disabled:hover:brightness-90",
|
|
6304
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
6311
6305
|
ButtonUtil.paddingMapping[size],
|
|
6312
6306
|
className
|
|
6313
6307
|
),
|
|
@@ -6316,10 +6310,10 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
6316
6310
|
startIcon && /* @__PURE__ */ jsx5(
|
|
6317
6311
|
"span",
|
|
6318
6312
|
{
|
|
6319
|
-
className: clsx4(
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6313
|
+
className: clsx4(
|
|
6314
|
+
iconColorClasses,
|
|
6315
|
+
"group-disabled:text-disabled-icon"
|
|
6316
|
+
),
|
|
6323
6317
|
children: startIcon
|
|
6324
6318
|
}
|
|
6325
6319
|
),
|
|
@@ -6327,10 +6321,10 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
6327
6321
|
endIcon && /* @__PURE__ */ jsx5(
|
|
6328
6322
|
"span",
|
|
6329
6323
|
{
|
|
6330
|
-
className: clsx4(
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6324
|
+
className: clsx4(
|
|
6325
|
+
iconColorClasses,
|
|
6326
|
+
"group-disabled:text-disabled-icon"
|
|
6327
|
+
),
|
|
6334
6328
|
children: endIcon
|
|
6335
6329
|
}
|
|
6336
6330
|
)
|
|
@@ -6340,7 +6334,6 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
6340
6334
|
});
|
|
6341
6335
|
var OutlineButton = ({
|
|
6342
6336
|
children,
|
|
6343
|
-
disabled = false,
|
|
6344
6337
|
color = "primary",
|
|
6345
6338
|
size = "medium",
|
|
6346
6339
|
startIcon,
|
|
@@ -6350,22 +6343,20 @@ var OutlineButton = ({
|
|
|
6350
6343
|
...restProps
|
|
6351
6344
|
}) => {
|
|
6352
6345
|
const colorClasses = {
|
|
6353
|
-
primary: "
|
|
6346
|
+
primary: "not-disabled:border-button-outline-primary-text not-disabled:text-button-outline-primary-text"
|
|
6354
6347
|
}[color];
|
|
6355
6348
|
const iconColorClasses = {
|
|
6356
|
-
primary: "text-button-outline-primary-icon"
|
|
6349
|
+
primary: "not-group-disabled:text-button-outline-primary-icon"
|
|
6357
6350
|
}[color];
|
|
6358
6351
|
return /* @__PURE__ */ jsxs3(
|
|
6359
6352
|
"button",
|
|
6360
6353
|
{
|
|
6361
6354
|
onClick,
|
|
6362
|
-
disabled,
|
|
6363
6355
|
className: clsx4(
|
|
6364
|
-
"font-semibold",
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
},
|
|
6356
|
+
"group font-semibold bg-transparent border-2 ",
|
|
6357
|
+
"not-disabled:hover:brightness-80",
|
|
6358
|
+
colorClasses,
|
|
6359
|
+
"disabled:text-disabled-text disabled:border-disabled-outline",
|
|
6369
6360
|
ButtonUtil.paddingMapping[size],
|
|
6370
6361
|
className
|
|
6371
6362
|
),
|
|
@@ -6374,10 +6365,10 @@ var OutlineButton = ({
|
|
|
6374
6365
|
startIcon && /* @__PURE__ */ jsx5(
|
|
6375
6366
|
"span",
|
|
6376
6367
|
{
|
|
6377
|
-
className: clsx4(
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6368
|
+
className: clsx4(
|
|
6369
|
+
iconColorClasses,
|
|
6370
|
+
"group-disabled:text-disabled-icon"
|
|
6371
|
+
),
|
|
6381
6372
|
children: startIcon
|
|
6382
6373
|
}
|
|
6383
6374
|
),
|
|
@@ -6385,10 +6376,10 @@ var OutlineButton = ({
|
|
|
6385
6376
|
endIcon && /* @__PURE__ */ jsx5(
|
|
6386
6377
|
"span",
|
|
6387
6378
|
{
|
|
6388
|
-
className: clsx4(
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6379
|
+
className: clsx4(
|
|
6380
|
+
iconColorClasses,
|
|
6381
|
+
"group-disabled:text-disabled-icon"
|
|
6382
|
+
),
|
|
6392
6383
|
children: endIcon
|
|
6393
6384
|
}
|
|
6394
6385
|
)
|
|
@@ -6398,7 +6389,6 @@ var OutlineButton = ({
|
|
|
6398
6389
|
};
|
|
6399
6390
|
var TextButton = ({
|
|
6400
6391
|
children,
|
|
6401
|
-
disabled = false,
|
|
6402
6392
|
color = "neutral",
|
|
6403
6393
|
size = "medium",
|
|
6404
6394
|
startIcon,
|
|
@@ -6409,32 +6399,31 @@ var TextButton = ({
|
|
|
6409
6399
|
...restProps
|
|
6410
6400
|
}) => {
|
|
6411
6401
|
const colorClasses = {
|
|
6412
|
-
primary: "bg-transparent text-button-text-primary-text",
|
|
6413
|
-
negative: "bg-transparent text-button-text-negative-text",
|
|
6414
|
-
neutral: "bg-transparent text-button-text-neutral-text"
|
|
6402
|
+
primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text",
|
|
6403
|
+
negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text",
|
|
6404
|
+
neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text"
|
|
6415
6405
|
}[color];
|
|
6416
6406
|
const backgroundColor = {
|
|
6417
|
-
primary: "hover:bg-button-text-primary-text/20",
|
|
6418
|
-
negative: "hover:bg-button-text-negative-text/20",
|
|
6419
|
-
neutral: "hover:bg-button-text-neutral-text/20"
|
|
6407
|
+
primary: "not-disabled:hover:bg-button-text-primary-text/20",
|
|
6408
|
+
negative: "not-disabled:hover:bg-button-text-negative-text/20",
|
|
6409
|
+
neutral: "not-disabled:hover:bg-button-text-neutral-text/20"
|
|
6420
6410
|
}[color];
|
|
6421
6411
|
const iconColorClasses = {
|
|
6422
|
-
primary: "text-button-text-primary-icon",
|
|
6423
|
-
negative: "text-button-text-negative-icon",
|
|
6424
|
-
neutral: "text-button-text-neutral-icon"
|
|
6412
|
+
primary: "not-group-disabled:text-button-text-primary-icon",
|
|
6413
|
+
negative: "not-group-disabled:text-button-text-negative-icon",
|
|
6414
|
+
neutral: "not-group-disabled:text-button-text-neutral-icon"
|
|
6425
6415
|
}[color];
|
|
6426
6416
|
return /* @__PURE__ */ jsxs3(
|
|
6427
6417
|
"button",
|
|
6428
6418
|
{
|
|
6429
6419
|
onClick,
|
|
6430
|
-
disabled,
|
|
6431
6420
|
className: clsx4(
|
|
6432
|
-
"font-semibold",
|
|
6421
|
+
"group font-semibold",
|
|
6422
|
+
"disabled:text-disabled-text",
|
|
6423
|
+
colorClasses,
|
|
6433
6424
|
{
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
[backgroundColor]: !disabled && coloredHoverBackground,
|
|
6437
|
-
"hover:bg-button-text-hover-background": !disabled && !coloredHoverBackground
|
|
6425
|
+
[backgroundColor]: coloredHoverBackground,
|
|
6426
|
+
"not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
|
|
6438
6427
|
},
|
|
6439
6428
|
ButtonUtil.paddingMapping[size],
|
|
6440
6429
|
className
|
|
@@ -6444,10 +6433,10 @@ var TextButton = ({
|
|
|
6444
6433
|
startIcon && /* @__PURE__ */ jsx5(
|
|
6445
6434
|
"span",
|
|
6446
6435
|
{
|
|
6447
|
-
className: clsx4(
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6436
|
+
className: clsx4(
|
|
6437
|
+
iconColorClasses,
|
|
6438
|
+
"group-disabled:text-disabled-icon"
|
|
6439
|
+
),
|
|
6451
6440
|
children: startIcon
|
|
6452
6441
|
}
|
|
6453
6442
|
),
|
|
@@ -6455,10 +6444,10 @@ var TextButton = ({
|
|
|
6455
6444
|
endIcon && /* @__PURE__ */ jsx5(
|
|
6456
6445
|
"span",
|
|
6457
6446
|
{
|
|
6458
|
-
className: clsx4(
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6447
|
+
className: clsx4(
|
|
6448
|
+
iconColorClasses,
|
|
6449
|
+
"group-disabled:text-disabled-icon"
|
|
6450
|
+
),
|
|
6462
6451
|
children: endIcon
|
|
6463
6452
|
}
|
|
6464
6453
|
)
|
|
@@ -6468,32 +6457,32 @@ var TextButton = ({
|
|
|
6468
6457
|
};
|
|
6469
6458
|
var IconButton = ({
|
|
6470
6459
|
children,
|
|
6471
|
-
disabled = false,
|
|
6472
6460
|
color = "primary",
|
|
6473
6461
|
size = "medium",
|
|
6474
6462
|
className,
|
|
6475
6463
|
...restProps
|
|
6476
6464
|
}) => {
|
|
6477
6465
|
const colorClasses = {
|
|
6478
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
6479
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
6480
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
6481
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
6482
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
6483
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
6484
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
6485
|
-
transparent: "bg-transparent"
|
|
6466
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
6467
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
6468
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
6469
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
6470
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
6471
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
6472
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
6473
|
+
transparent: "not-disabled:bg-transparent"
|
|
6486
6474
|
}[color];
|
|
6487
6475
|
return /* @__PURE__ */ jsx5(
|
|
6488
6476
|
"button",
|
|
6489
6477
|
{
|
|
6490
|
-
disabled,
|
|
6491
6478
|
className: clsx4(
|
|
6479
|
+
colorClasses,
|
|
6480
|
+
"not-disabled:hover:brightness-90",
|
|
6481
|
+
"disabled:text-disabled-text",
|
|
6492
6482
|
{
|
|
6493
|
-
"
|
|
6494
|
-
"
|
|
6495
|
-
"hover:bg-button-text-hover-background":
|
|
6496
|
-
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
6483
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
6484
|
+
"disabled:opacity-70": color === "transparent",
|
|
6485
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
6497
6486
|
},
|
|
6498
6487
|
ButtonUtil.iconPaddingMapping[size],
|
|
6499
6488
|
className
|
|
@@ -6505,12 +6494,12 @@ var IconButton = ({
|
|
|
6505
6494
|
};
|
|
6506
6495
|
|
|
6507
6496
|
// src/components/date/YearMonthPicker.tsx
|
|
6508
|
-
import { useEffect as
|
|
6497
|
+
import { useEffect as useEffect3, useRef, useState as useState4 } from "react";
|
|
6509
6498
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
6510
6499
|
import clsx6 from "clsx";
|
|
6511
6500
|
|
|
6512
6501
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
6513
|
-
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as
|
|
6502
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
|
|
6514
6503
|
import { ChevronDown } from "lucide-react";
|
|
6515
6504
|
import clsx5 from "clsx";
|
|
6516
6505
|
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
@@ -6591,7 +6580,7 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
6591
6580
|
...props
|
|
6592
6581
|
}, ref) {
|
|
6593
6582
|
const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
|
|
6594
|
-
|
|
6583
|
+
useEffect2(() => {
|
|
6595
6584
|
setUsedIsExpanded(isExpanded);
|
|
6596
6585
|
}, [isExpanded]);
|
|
6597
6586
|
return /* @__PURE__ */ jsx6(
|
|
@@ -6621,7 +6610,7 @@ var YearMonthPicker = ({
|
|
|
6621
6610
|
}) => {
|
|
6622
6611
|
const locale = useLocale();
|
|
6623
6612
|
const ref = useRef(null);
|
|
6624
|
-
|
|
6613
|
+
useEffect3(() => {
|
|
6625
6614
|
const scrollToItem = () => {
|
|
6626
6615
|
if (ref.current) {
|
|
6627
6616
|
ref.current.scrollIntoView({
|
|
@@ -6681,7 +6670,7 @@ var YearMonthPickerUncontrolled = ({
|
|
|
6681
6670
|
...props
|
|
6682
6671
|
}) => {
|
|
6683
6672
|
const [yearMonth, setYearMonth] = useState4(displayedYearMonth ?? /* @__PURE__ */ new Date());
|
|
6684
|
-
|
|
6673
|
+
useEffect3(() => setYearMonth(displayedYearMonth), [displayedYearMonth]);
|
|
6685
6674
|
return /* @__PURE__ */ jsx7(
|
|
6686
6675
|
YearMonthPicker,
|
|
6687
6676
|
{
|
|
@@ -6697,7 +6686,7 @@ var YearMonthPickerUncontrolled = ({
|
|
|
6697
6686
|
|
|
6698
6687
|
// src/components/date/DayPicker.tsx
|
|
6699
6688
|
import clsx7 from "clsx";
|
|
6700
|
-
import { useEffect as
|
|
6689
|
+
import { useEffect as useEffect4, useState as useState5 } from "react";
|
|
6701
6690
|
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
6702
6691
|
var DayPicker = ({
|
|
6703
6692
|
displayedMonth,
|
|
@@ -6751,7 +6740,7 @@ var DayPickerUncontrolled = ({
|
|
|
6751
6740
|
}) => {
|
|
6752
6741
|
const [date, setDate] = useState5(selected);
|
|
6753
6742
|
const [usedDisplayedMonth, setUsedDDisplayedMonth] = useState5(displayedMonth);
|
|
6754
|
-
|
|
6743
|
+
useEffect4(() => {
|
|
6755
6744
|
setDate(selected);
|
|
6756
6745
|
setUsedDDisplayedMonth(selected);
|
|
6757
6746
|
}, [selected]);
|
|
@@ -6859,7 +6848,7 @@ var DatePicker = ({
|
|
|
6859
6848
|
const translation = useTranslation([timeTranslation], overwriteTranslation);
|
|
6860
6849
|
const [displayedMonth, setDisplayedMonth] = useState6(value);
|
|
6861
6850
|
const [displayMode, setDisplayMode] = useState6(initialDisplay);
|
|
6862
|
-
|
|
6851
|
+
useEffect5(() => {
|
|
6863
6852
|
setDisplayedMonth(value);
|
|
6864
6853
|
}, [value]);
|
|
6865
6854
|
return /* @__PURE__ */ jsxs6("div", { className: clsx8("flex-col-4", className), children: [
|
|
@@ -6951,7 +6940,7 @@ var DatePickerUncontrolled = ({
|
|
|
6951
6940
|
...props
|
|
6952
6941
|
}) => {
|
|
6953
6942
|
const [date, setDate] = useState6(value);
|
|
6954
|
-
|
|
6943
|
+
useEffect5(() => setDate(value), [value]);
|
|
6955
6944
|
return /* @__PURE__ */ jsx9(
|
|
6956
6945
|
DatePicker,
|
|
6957
6946
|
{
|
|
@@ -7020,7 +7009,7 @@ var TimeDisplay = ({
|
|
|
7020
7009
|
};
|
|
7021
7010
|
|
|
7022
7011
|
// src/components/date/TimePicker.tsx
|
|
7023
|
-
import { useEffect as
|
|
7012
|
+
import { useEffect as useEffect6, useRef as useRef2, useState as useState7 } from "react";
|
|
7024
7013
|
import { Scrollbars as Scrollbars2 } from "react-custom-scrollbars-2";
|
|
7025
7014
|
import clsx9 from "clsx";
|
|
7026
7015
|
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
@@ -7037,7 +7026,7 @@ var TimePicker = ({
|
|
|
7037
7026
|
const isPM = time.getHours() >= 11;
|
|
7038
7027
|
const hours = is24HourFormat ? range(24) : range([1, 12], { exclusiveEnd: false });
|
|
7039
7028
|
let minutes = range(60);
|
|
7040
|
-
|
|
7029
|
+
useEffect6(() => {
|
|
7041
7030
|
const scrollToItem = () => {
|
|
7042
7031
|
if (minuteRef.current) {
|
|
7043
7032
|
const container = minuteRef.current.parentElement;
|
|
@@ -7052,7 +7041,7 @@ var TimePicker = ({
|
|
|
7052
7041
|
};
|
|
7053
7042
|
scrollToItem();
|
|
7054
7043
|
}, [minuteRef, minuteRef.current]);
|
|
7055
|
-
|
|
7044
|
+
useEffect6(() => {
|
|
7056
7045
|
const scrollToItem = () => {
|
|
7057
7046
|
if (hourRef.current) {
|
|
7058
7047
|
const container = hourRef.current.parentElement;
|
|
@@ -7144,7 +7133,7 @@ var TimePickerUncontrolled = ({
|
|
|
7144
7133
|
...props
|
|
7145
7134
|
}) => {
|
|
7146
7135
|
const [value, setValue] = useState7(time);
|
|
7147
|
-
|
|
7136
|
+
useEffect6(() => setValue(time), [time]);
|
|
7148
7137
|
return /* @__PURE__ */ jsx11(
|
|
7149
7138
|
TimePicker,
|
|
7150
7139
|
{
|
|
@@ -7162,12 +7151,12 @@ var TimePickerUncontrolled = ({
|
|
|
7162
7151
|
import clsx12 from "clsx";
|
|
7163
7152
|
|
|
7164
7153
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
7165
|
-
import { useEffect as
|
|
7154
|
+
import { useEffect as useEffect8, useRef as useRef3, useState as useState9 } from "react";
|
|
7166
7155
|
import ReactDOM from "react-dom";
|
|
7167
7156
|
import clsx11 from "clsx";
|
|
7168
7157
|
|
|
7169
7158
|
// src/hooks/useHoverState.ts
|
|
7170
|
-
import { useEffect as
|
|
7159
|
+
import { useEffect as useEffect7, useState as useState8 } from "react";
|
|
7171
7160
|
var defaultUseHoverStateProps = {
|
|
7172
7161
|
closingDelay: 200,
|
|
7173
7162
|
isDisabled: false
|
|
@@ -7191,14 +7180,14 @@ var useHoverState = (props = void 0) => {
|
|
|
7191
7180
|
setIsHovered(false);
|
|
7192
7181
|
}, closingDelay));
|
|
7193
7182
|
};
|
|
7194
|
-
|
|
7183
|
+
useEffect7(() => {
|
|
7195
7184
|
if (timer) {
|
|
7196
7185
|
return () => {
|
|
7197
7186
|
clearTimeout(timer);
|
|
7198
7187
|
};
|
|
7199
7188
|
}
|
|
7200
7189
|
});
|
|
7201
|
-
|
|
7190
|
+
useEffect7(() => {
|
|
7202
7191
|
if (timer) {
|
|
7203
7192
|
clearTimeout(timer);
|
|
7204
7193
|
}
|
|
@@ -7404,7 +7393,7 @@ var Overlay = ({
|
|
|
7404
7393
|
backgroundClassName
|
|
7405
7394
|
}) => {
|
|
7406
7395
|
const [root, setRoot] = useState9();
|
|
7407
|
-
|
|
7396
|
+
useEffect8(() => {
|
|
7408
7397
|
setRoot(document.body);
|
|
7409
7398
|
}, []);
|
|
7410
7399
|
if (!root || !isOpen) return null;
|
|
@@ -7467,7 +7456,7 @@ var Modal = ({
|
|
|
7467
7456
|
headerProps
|
|
7468
7457
|
}) => {
|
|
7469
7458
|
const ref = useRef3(null);
|
|
7470
|
-
|
|
7459
|
+
useEffect8(() => {
|
|
7471
7460
|
if (!isOpen) return;
|
|
7472
7461
|
const modal = ref.current;
|
|
7473
7462
|
if (!modal) {
|
|
@@ -7538,7 +7527,7 @@ var Dialog = ({
|
|
|
7538
7527
|
headerProps
|
|
7539
7528
|
}) => {
|
|
7540
7529
|
const ref = useRef3(null);
|
|
7541
|
-
|
|
7530
|
+
useEffect8(() => {
|
|
7542
7531
|
if (!isOpen) return;
|
|
7543
7532
|
const dialog = ref.current;
|
|
7544
7533
|
if (!dialog) {
|
|
@@ -7787,7 +7776,7 @@ var Circle = ({
|
|
|
7787
7776
|
};
|
|
7788
7777
|
|
|
7789
7778
|
// src/components/icons-and-geometry/Ring.tsx
|
|
7790
|
-
import { useCallback as useCallback3, useEffect as
|
|
7779
|
+
import { useCallback as useCallback3, useEffect as useEffect9, useState as useState11 } from "react";
|
|
7791
7780
|
import clsx15 from "clsx";
|
|
7792
7781
|
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7793
7782
|
var Ring = ({
|
|
@@ -7832,7 +7821,7 @@ var AnimatedRing = ({
|
|
|
7832
7821
|
}
|
|
7833
7822
|
}
|
|
7834
7823
|
}, [milliseconds, onAnimationFinished, repeating, width]);
|
|
7835
|
-
|
|
7824
|
+
useEffect9(() => {
|
|
7836
7825
|
if (currentWidth < width) {
|
|
7837
7826
|
requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
|
|
7838
7827
|
}
|
|
@@ -7887,7 +7876,7 @@ var RingWave = ({
|
|
|
7887
7876
|
}
|
|
7888
7877
|
}
|
|
7889
7878
|
}, [distance, endInnerSize, milliseconds, onAnimationFinished, repeating, startInnerSize]);
|
|
7890
|
-
|
|
7879
|
+
useEffect9(() => {
|
|
7891
7880
|
if (currentInnerSize < endInnerSize) {
|
|
7892
7881
|
requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
|
|
7893
7882
|
}
|
|
@@ -8094,7 +8083,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
|
|
|
8094
8083
|
};
|
|
8095
8084
|
|
|
8096
8085
|
// src/components/layout-and-navigation/Carousel.tsx
|
|
8097
|
-
import { useCallback as useCallback4, useEffect as
|
|
8086
|
+
import { useCallback as useCallback4, useEffect as useEffect10, useMemo as useMemo2, useRef as useRef4, useState as useState12 } from "react";
|
|
8098
8087
|
import clsx17 from "clsx";
|
|
8099
8088
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
8100
8089
|
|
|
@@ -8287,7 +8276,7 @@ var Carousel = ({
|
|
|
8287
8276
|
animationId.current = requestAnimationFrame((time1) => animation(time1));
|
|
8288
8277
|
}
|
|
8289
8278
|
}, [animationTime, autoLoopAnimationTime, util]);
|
|
8290
|
-
|
|
8279
|
+
useEffect10(() => {
|
|
8291
8280
|
if (animationState) {
|
|
8292
8281
|
animationId.current = requestAnimationFrame(animation);
|
|
8293
8282
|
}
|
|
@@ -8309,7 +8298,7 @@ var Carousel = ({
|
|
|
8309
8298
|
isAutoLooping: true
|
|
8310
8299
|
}
|
|
8311
8300
|
}));
|
|
8312
|
-
|
|
8301
|
+
useEffect10(() => {
|
|
8313
8302
|
if (!animationId.current && !animationState && !dragState && !timeOut.current) {
|
|
8314
8303
|
if (autoLoopingTimeOut > 0) {
|
|
8315
8304
|
timeOut.current = setTimeout(() => {
|
|
@@ -8704,7 +8693,7 @@ var inserterIdentifierMapping = [
|
|
|
8704
8693
|
{ id: "helpwave", name: "helpwave" },
|
|
8705
8694
|
{ id: "newline", name: "newline" }
|
|
8706
8695
|
];
|
|
8707
|
-
var parseMarkdown = (text, commandStart = "\\",
|
|
8696
|
+
var parseMarkdown = (text, commandStart = "\\", open = "{", close = "}") => {
|
|
8708
8697
|
let start = text.indexOf(commandStart);
|
|
8709
8698
|
const children = [];
|
|
8710
8699
|
while (text !== "") {
|
|
@@ -8725,7 +8714,7 @@ var parseMarkdown = (text, commandStart = "\\", open2 = "{", close = "}") => {
|
|
|
8725
8714
|
text = "";
|
|
8726
8715
|
continue;
|
|
8727
8716
|
}
|
|
8728
|
-
const simpleReplace = [commandStart,
|
|
8717
|
+
const simpleReplace = [commandStart, open, close];
|
|
8729
8718
|
if (simpleReplace.some((value) => text[1] === value)) {
|
|
8730
8719
|
children.push({
|
|
8731
8720
|
type: "text",
|
|
@@ -8746,7 +8735,7 @@ var parseMarkdown = (text, commandStart = "\\", open2 = "{", close = "}") => {
|
|
|
8746
8735
|
}
|
|
8747
8736
|
const modifier = modifierIdentifierMapping.find((value) => text.substring(1).startsWith(value.id));
|
|
8748
8737
|
if (modifier) {
|
|
8749
|
-
if (text[modifier.id.length + 1] !==
|
|
8738
|
+
if (text[modifier.id.length + 1] !== open) {
|
|
8750
8739
|
children.push({
|
|
8751
8740
|
type: "text",
|
|
8752
8741
|
text: text.substring(0, modifier.id.length + 1)
|
|
@@ -8760,7 +8749,7 @@ var parseMarkdown = (text, commandStart = "\\", open2 = "{", close = "}") => {
|
|
|
8760
8749
|
let counter = 1;
|
|
8761
8750
|
let escaping = false;
|
|
8762
8751
|
while (index < text.length) {
|
|
8763
|
-
if (text[index] ===
|
|
8752
|
+
if (text[index] === open && !escaping) {
|
|
8764
8753
|
counter++;
|
|
8765
8754
|
}
|
|
8766
8755
|
if (text[index] === close && !escaping) {
|
|
@@ -8864,11 +8853,11 @@ import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft2, ChevronRight as
|
|
|
8864
8853
|
import clsx23 from "clsx";
|
|
8865
8854
|
|
|
8866
8855
|
// src/components/user-action/Input.tsx
|
|
8867
|
-
import { forwardRef as forwardRef3, useEffect as
|
|
8856
|
+
import { forwardRef as forwardRef3, useEffect as useEffect13, useImperativeHandle, useRef as useRef5, useState as useState14 } from "react";
|
|
8868
8857
|
import clsx22 from "clsx";
|
|
8869
8858
|
|
|
8870
8859
|
// src/hooks/useDelay.ts
|
|
8871
|
-
import { useEffect as
|
|
8860
|
+
import { useEffect as useEffect11, useState as useState13 } from "react";
|
|
8872
8861
|
var defaultOptions = {
|
|
8873
8862
|
delay: 3e3,
|
|
8874
8863
|
disabled: false
|
|
@@ -8893,12 +8882,12 @@ function useDelay(options) {
|
|
|
8893
8882
|
setTimer(void 0);
|
|
8894
8883
|
}, delay));
|
|
8895
8884
|
};
|
|
8896
|
-
|
|
8885
|
+
useEffect11(() => {
|
|
8897
8886
|
return () => {
|
|
8898
8887
|
clearTimeout(timer);
|
|
8899
8888
|
};
|
|
8900
8889
|
}, [timer]);
|
|
8901
|
-
|
|
8890
|
+
useEffect11(() => {
|
|
8902
8891
|
if (disabled) {
|
|
8903
8892
|
clearTimeout(timer);
|
|
8904
8893
|
setTimer(void 0);
|
|
@@ -8983,10 +8972,10 @@ function useFocusManagement() {
|
|
|
8983
8972
|
}
|
|
8984
8973
|
|
|
8985
8974
|
// src/hooks/useFocusOnceVisible.ts
|
|
8986
|
-
import React2, { useEffect as
|
|
8975
|
+
import React2, { useEffect as useEffect12 } from "react";
|
|
8987
8976
|
var useFocusOnceVisible = (ref, disable = false) => {
|
|
8988
8977
|
const [hasUsedFocus, setHasUsedFocus] = React2.useState(false);
|
|
8989
|
-
|
|
8978
|
+
useEffect12(() => {
|
|
8990
8979
|
if (disable || hasUsedFocus) {
|
|
8991
8980
|
return;
|
|
8992
8981
|
}
|
|
@@ -9103,7 +9092,7 @@ var InputUncontrolled = ({
|
|
|
9103
9092
|
...props
|
|
9104
9093
|
}) => {
|
|
9105
9094
|
const [usedValue, setUsedValue] = useState14(value);
|
|
9106
|
-
|
|
9095
|
+
useEffect13(() => {
|
|
9107
9096
|
setUsedValue(value);
|
|
9108
9097
|
}, [value]);
|
|
9109
9098
|
return /* @__PURE__ */ jsx26(
|
|
@@ -9154,7 +9143,7 @@ var FormInput = forwardRef3(function FormInput2({
|
|
|
9154
9143
|
});
|
|
9155
9144
|
|
|
9156
9145
|
// src/components/layout-and-navigation/Pagination.tsx
|
|
9157
|
-
import { useEffect as
|
|
9146
|
+
import { useEffect as useEffect14, useState as useState15 } from "react";
|
|
9158
9147
|
import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
9159
9148
|
var Pagination = ({
|
|
9160
9149
|
overwriteTranslation,
|
|
@@ -9169,7 +9158,7 @@ var Pagination = ({
|
|
|
9169
9158
|
const noPages = pageCount === 0;
|
|
9170
9159
|
const onFirstPage = pageIndex === 0 && !noPages;
|
|
9171
9160
|
const onLastPage = pageIndex === pageCount - 1;
|
|
9172
|
-
|
|
9161
|
+
useEffect14(() => {
|
|
9173
9162
|
if (noPages) {
|
|
9174
9163
|
setValue("0");
|
|
9175
9164
|
} else {
|
|
@@ -9227,7 +9216,7 @@ import { Search } from "lucide-react";
|
|
|
9227
9216
|
import clsx24 from "clsx";
|
|
9228
9217
|
|
|
9229
9218
|
// src/hooks/useSearch.ts
|
|
9230
|
-
import { useCallback as useCallback6, useEffect as
|
|
9219
|
+
import { useCallback as useCallback6, useEffect as useEffect15, useMemo as useMemo3, useState as useState16 } from "react";
|
|
9231
9220
|
|
|
9232
9221
|
// src/util/simpleSearch.ts
|
|
9233
9222
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -9276,7 +9265,7 @@ var useSearch = ({
|
|
|
9276
9265
|
}
|
|
9277
9266
|
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
9278
9267
|
}, [searchTags, list, search, searchMapping]);
|
|
9279
|
-
|
|
9268
|
+
useEffect15(() => {
|
|
9280
9269
|
if (isSearchInstant) {
|
|
9281
9270
|
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
9282
9271
|
}
|
|
@@ -9353,7 +9342,7 @@ var SearchableList = ({
|
|
|
9353
9342
|
// src/components/layout-and-navigation/StepperBar.tsx
|
|
9354
9343
|
import { Check as Check2, ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
|
|
9355
9344
|
import clsx25 from "clsx";
|
|
9356
|
-
import { useEffect as
|
|
9345
|
+
import { useEffect as useEffect16, useState as useState17 } from "react";
|
|
9357
9346
|
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
9358
9347
|
var defaultState = {
|
|
9359
9348
|
currentStep: 0,
|
|
@@ -9448,7 +9437,7 @@ var StepperBar = ({
|
|
|
9448
9437
|
};
|
|
9449
9438
|
var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
|
|
9450
9439
|
const [usedState, setUsedState] = useState17(state ?? defaultState);
|
|
9451
|
-
|
|
9440
|
+
useEffect16(() => {
|
|
9452
9441
|
setUsedState(state ?? defaultState);
|
|
9453
9442
|
}, [state]);
|
|
9454
9443
|
return /* @__PURE__ */ jsx29(
|
|
@@ -9819,17 +9808,17 @@ var InputModal = ({
|
|
|
9819
9808
|
|
|
9820
9809
|
// src/components/user-action/Select.tsx
|
|
9821
9810
|
import { useCallback as useCallback7 } from "react";
|
|
9822
|
-
import { useEffect as
|
|
9811
|
+
import { useEffect as useEffect19, useState as useState20 } from "react";
|
|
9823
9812
|
import clsx35 from "clsx";
|
|
9824
9813
|
|
|
9825
9814
|
// src/components/user-action/Menu.tsx
|
|
9826
|
-
import { useEffect as
|
|
9815
|
+
import { useEffect as useEffect18, useRef as useRef6, useState as useState19 } from "react";
|
|
9827
9816
|
import clsx33 from "clsx";
|
|
9828
9817
|
|
|
9829
9818
|
// src/hooks/useOutsideClick.ts
|
|
9830
|
-
import { useEffect as
|
|
9819
|
+
import { useEffect as useEffect17 } from "react";
|
|
9831
9820
|
var useOutsideClick = (refs, handler) => {
|
|
9832
|
-
|
|
9821
|
+
useEffect17(() => {
|
|
9833
9822
|
const listener = (event) => {
|
|
9834
9823
|
if (event.target === null) return;
|
|
9835
9824
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -9967,7 +9956,7 @@ var Menu = ({
|
|
|
9967
9956
|
triggerRef.current?.getBoundingClientRect(),
|
|
9968
9957
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
9969
9958
|
);
|
|
9970
|
-
|
|
9959
|
+
useEffect18(() => {
|
|
9971
9960
|
if (!isOpen) return;
|
|
9972
9961
|
const triggerEl = triggerRef.current;
|
|
9973
9962
|
if (!triggerEl) return;
|
|
@@ -9984,7 +9973,7 @@ var Menu = ({
|
|
|
9984
9973
|
window.removeEventListener("resize", close);
|
|
9985
9974
|
};
|
|
9986
9975
|
}, [isOpen, setIsOpen]);
|
|
9987
|
-
|
|
9976
|
+
useEffect18(() => {
|
|
9988
9977
|
if (isOpen) {
|
|
9989
9978
|
setIsHidden(false);
|
|
9990
9979
|
}
|
|
@@ -10070,7 +10059,7 @@ var Select = ({
|
|
|
10070
10059
|
...searchOptions
|
|
10071
10060
|
});
|
|
10072
10061
|
return /* @__PURE__ */ jsxs29("div", { className: clsx35(className), children: [
|
|
10073
|
-
label && /* @__PURE__ */ jsx43(Label, { ...label, labelType: label.labelType ?? "
|
|
10062
|
+
label && /* @__PURE__ */ jsx43(Label, { ...label, labelType: label.labelType ?? "labelSmall", className: clsx35("mb-1", label.className) }),
|
|
10074
10063
|
/* @__PURE__ */ jsx43(
|
|
10075
10064
|
Menu,
|
|
10076
10065
|
{
|
|
@@ -10081,11 +10070,8 @@ var Select = ({
|
|
|
10081
10070
|
ref,
|
|
10082
10071
|
className: clsx35(
|
|
10083
10072
|
"btn-md justify-between w-full border-2",
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
10087
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
10088
|
-
},
|
|
10073
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
10074
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
10089
10075
|
triggerClassName
|
|
10090
10076
|
),
|
|
10091
10077
|
onClick: toggleOpen,
|
|
@@ -10139,7 +10125,7 @@ var SelectUncontrolled = ({
|
|
|
10139
10125
|
...props
|
|
10140
10126
|
}) => {
|
|
10141
10127
|
const [selected, setSelected] = useState20(value);
|
|
10142
|
-
|
|
10128
|
+
useEffect19(() => {
|
|
10143
10129
|
if (options.find((options2) => options2.value === value)) {
|
|
10144
10130
|
setSelected(value);
|
|
10145
10131
|
}
|
|
@@ -10212,7 +10198,7 @@ var LanguageModal = ({
|
|
|
10212
10198
|
|
|
10213
10199
|
// src/theming/useTheme.tsx
|
|
10214
10200
|
import { useMemo as useMemo4 } from "react";
|
|
10215
|
-
import { createContext as createContext2, useContext as useContext2, useEffect as
|
|
10201
|
+
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect20, useState as useState21 } from "react";
|
|
10216
10202
|
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
10217
10203
|
var themes = ["light", "dark", "system"];
|
|
10218
10204
|
var defaultThemeTypeTranslation = {
|
|
@@ -10243,20 +10229,20 @@ var ThemeContext = createContext2({
|
|
|
10243
10229
|
theme: "light",
|
|
10244
10230
|
setTheme: noop
|
|
10245
10231
|
});
|
|
10246
|
-
var ThemeProvider = ({ children, initialTheme
|
|
10247
|
-
const [storedTheme, setStoredTheme] = useLocalStorage("theme", initialTheme);
|
|
10232
|
+
var ThemeProvider = ({ children, initialTheme }) => {
|
|
10233
|
+
const [storedTheme, setStoredTheme] = useLocalStorage("theme", initialTheme ?? "system");
|
|
10248
10234
|
const [userTheme, setUserTheme] = useState21();
|
|
10249
|
-
|
|
10250
|
-
if (storedTheme !== initialTheme) {
|
|
10235
|
+
useEffect20(() => {
|
|
10236
|
+
if (!!initialTheme && storedTheme !== initialTheme) {
|
|
10251
10237
|
console.warn("ThemeProvider initial state changed: Prefer using useTheme's setTheme instead");
|
|
10252
10238
|
setStoredTheme(initialTheme);
|
|
10253
10239
|
}
|
|
10254
10240
|
}, [initialTheme]);
|
|
10255
10241
|
const usedTheme = useMemo4(() => storedTheme !== "system" ? storedTheme : userTheme, [storedTheme, userTheme]);
|
|
10256
|
-
|
|
10242
|
+
useEffect20(() => {
|
|
10257
10243
|
document.documentElement.setAttribute("data-theme", usedTheme);
|
|
10258
10244
|
}, [usedTheme]);
|
|
10259
|
-
|
|
10245
|
+
useEffect20(() => {
|
|
10260
10246
|
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
10261
10247
|
setUserTheme(prefersDark ? "dark" : "light");
|
|
10262
10248
|
}, []);
|
|
@@ -10350,31 +10336,57 @@ var Checkbox = ({
|
|
|
10350
10336
|
}
|
|
10351
10337
|
};
|
|
10352
10338
|
const changeValue = () => {
|
|
10339
|
+
if (disabled) {
|
|
10340
|
+
return;
|
|
10341
|
+
}
|
|
10353
10342
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
10354
10343
|
propagateChange(newValue);
|
|
10355
10344
|
};
|
|
10356
|
-
return /* @__PURE__ */ jsxs32(
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
{
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10345
|
+
return /* @__PURE__ */ jsxs32(
|
|
10346
|
+
"div",
|
|
10347
|
+
{
|
|
10348
|
+
className: clsx36("group flex-row-2 items-center", {
|
|
10349
|
+
"cursor-pointer": !disabled,
|
|
10350
|
+
"cursor-not-allowed": disabled
|
|
10351
|
+
}, containerClassName),
|
|
10352
|
+
onClick: changeValue,
|
|
10353
|
+
children: [
|
|
10354
|
+
/* @__PURE__ */ jsx47(
|
|
10355
|
+
CheckboxPrimitive.Root,
|
|
10356
|
+
{
|
|
10357
|
+
onCheckedChange: propagateChange,
|
|
10358
|
+
checked,
|
|
10359
|
+
disabled,
|
|
10360
|
+
id,
|
|
10361
|
+
className: clsx36(usedSizeClass, `items-center border-2 rounded outline-none `, {
|
|
10362
|
+
"text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
|
|
10363
|
+
"focus:border-primary group-hover:border-primary ": !disabled,
|
|
10364
|
+
"bg-input-background": !disabled && !checked,
|
|
10365
|
+
"bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
|
|
10366
|
+
}, className),
|
|
10367
|
+
children: /* @__PURE__ */ jsxs32(CheckboxPrimitive.Indicator, { children: [
|
|
10368
|
+
checked === true && /* @__PURE__ */ jsx47(Check3, { className: innerIconSize }),
|
|
10369
|
+
checked === "indeterminate" && /* @__PURE__ */ jsx47(Minus, { className: innerIconSize })
|
|
10370
|
+
] })
|
|
10371
|
+
}
|
|
10372
|
+
),
|
|
10373
|
+
label && /* @__PURE__ */ jsx47(
|
|
10374
|
+
Label,
|
|
10375
|
+
{
|
|
10376
|
+
...label,
|
|
10377
|
+
className: clsx36(
|
|
10378
|
+
label.className,
|
|
10379
|
+
{
|
|
10380
|
+
"cursor-pointer": !disabled,
|
|
10381
|
+
"cursor-not-allowed": disabled
|
|
10382
|
+
}
|
|
10383
|
+
),
|
|
10384
|
+
htmlFor: id
|
|
10385
|
+
}
|
|
10386
|
+
)
|
|
10387
|
+
]
|
|
10388
|
+
}
|
|
10389
|
+
);
|
|
10378
10390
|
};
|
|
10379
10391
|
var CheckboxUncontrolled = ({
|
|
10380
10392
|
onChange,
|
|
@@ -10547,7 +10559,7 @@ import clsx40 from "clsx";
|
|
|
10547
10559
|
|
|
10548
10560
|
// src/components/user-action/MultiSelect.tsx
|
|
10549
10561
|
import { useCallback as useCallback8 } from "react";
|
|
10550
|
-
import { useEffect as
|
|
10562
|
+
import { useEffect as useEffect21, useState as useState23 } from "react";
|
|
10551
10563
|
import clsx39 from "clsx";
|
|
10552
10564
|
import { Plus } from "lucide-react";
|
|
10553
10565
|
import { Fragment as Fragment6, jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
@@ -10589,7 +10601,7 @@ var MultiSelect = ({
|
|
|
10589
10601
|
...label,
|
|
10590
10602
|
htmlFor: label.name,
|
|
10591
10603
|
className: clsx39(" mb-1", label.className),
|
|
10592
|
-
labelType: label.labelType ?? "
|
|
10604
|
+
labelType: label.labelType ?? "labelSmall"
|
|
10593
10605
|
}
|
|
10594
10606
|
),
|
|
10595
10607
|
/* @__PURE__ */ jsx51(
|
|
@@ -10602,10 +10614,10 @@ var MultiSelect = ({
|
|
|
10602
10614
|
ref,
|
|
10603
10615
|
className: clsx39(
|
|
10604
10616
|
"group btn-md justify-between w-full border-2 h-auto",
|
|
10617
|
+
"not-disabled:bg-input-background not-disabled:text-input-text not-disabled:hover:border-primary",
|
|
10618
|
+
"disabled:bg-disabled-background disabled:text-disabled-text disabled:border-disabled-border",
|
|
10605
10619
|
{
|
|
10606
|
-
"min-h-14": useChipDisplay
|
|
10607
|
-
"bg-input-background text-input-text hover:border-primary": !disabled,
|
|
10608
|
-
"bg-disabled-background text-disabled-text border-disabled-background cursor-not-allowed": disabled
|
|
10620
|
+
"min-h-14": useChipDisplay
|
|
10609
10621
|
},
|
|
10610
10622
|
triggerClassName
|
|
10611
10623
|
),
|
|
@@ -10717,7 +10729,7 @@ var MultiSelectUncontrolled = ({
|
|
|
10717
10729
|
...props
|
|
10718
10730
|
}) => {
|
|
10719
10731
|
const [usedOptions, setUsedOptions] = useState23(options);
|
|
10720
|
-
|
|
10732
|
+
useEffect21(() => {
|
|
10721
10733
|
setUsedOptions(options);
|
|
10722
10734
|
}, [options]);
|
|
10723
10735
|
return /* @__PURE__ */ jsx51(
|
|
@@ -10945,7 +10957,7 @@ import { Text } from "lucide-react";
|
|
|
10945
10957
|
import clsx44 from "clsx";
|
|
10946
10958
|
|
|
10947
10959
|
// src/components/user-action/Textarea.tsx
|
|
10948
|
-
import { useEffect as
|
|
10960
|
+
import { useEffect as useEffect22, useState as useState24 } from "react";
|
|
10949
10961
|
import clsx43 from "clsx";
|
|
10950
10962
|
import { jsx as jsx55, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
10951
10963
|
var Textarea = ({
|
|
@@ -10984,11 +10996,11 @@ var Textarea = ({
|
|
|
10984
10996
|
"div",
|
|
10985
10997
|
{
|
|
10986
10998
|
className: clsx43(
|
|
10987
|
-
"
|
|
10999
|
+
"relative",
|
|
10988
11000
|
{
|
|
10989
11001
|
"border-2 rounded-lg": defaultStyle,
|
|
10990
|
-
"hover:border-primary focus-within:border-primary": defaultStyle && !disabled,
|
|
10991
|
-
"border-disabled-border cursor-not-allowed": defaultStyle && disabled
|
|
11002
|
+
"bg-input-background text-input-text hover:border-primary focus-within:border-primary": defaultStyle && !disabled,
|
|
11003
|
+
"border-disabled-border bg-disabled-background cursor-not-allowed": defaultStyle && disabled
|
|
10992
11004
|
}
|
|
10993
11005
|
),
|
|
10994
11006
|
children: [
|
|
@@ -11035,7 +11047,7 @@ var TextareaUncontrolled = ({
|
|
|
11035
11047
|
...props
|
|
11036
11048
|
}) => {
|
|
11037
11049
|
const [text, setText] = useState24(value);
|
|
11038
|
-
|
|
11050
|
+
useEffect22(() => {
|
|
11039
11051
|
setText(value);
|
|
11040
11052
|
}, [value]);
|
|
11041
11053
|
return /* @__PURE__ */ jsx55(
|
|
@@ -11132,7 +11144,7 @@ var TableFilters = {
|
|
|
11132
11144
|
};
|
|
11133
11145
|
|
|
11134
11146
|
// src/components/table/Table.tsx
|
|
11135
|
-
import { useCallback as useCallback9, useEffect as
|
|
11147
|
+
import { useCallback as useCallback9, useEffect as useEffect25, useMemo as useMemo5, useRef as useRef7, useState as useState26 } from "react";
|
|
11136
11148
|
import clsx48 from "clsx";
|
|
11137
11149
|
import {
|
|
11138
11150
|
flexRender,
|
|
@@ -11146,7 +11158,7 @@ import { Scrollbars as Scrollbars3 } from "react-custom-scrollbars-2";
|
|
|
11146
11158
|
|
|
11147
11159
|
// src/components/table/TableFilterButton.tsx
|
|
11148
11160
|
import { FilterIcon } from "lucide-react";
|
|
11149
|
-
import { useEffect as
|
|
11161
|
+
import { useEffect as useEffect23, useState as useState25 } from "react";
|
|
11150
11162
|
import { Fragment as Fragment7, jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
11151
11163
|
var defaultTableFilterTranslation = {
|
|
11152
11164
|
en: {
|
|
@@ -11174,7 +11186,7 @@ var TableFilterButton = ({
|
|
|
11174
11186
|
const columnFilterValue = column.getFilterValue();
|
|
11175
11187
|
const [filterValue, setFilterValue] = useState25(columnFilterValue);
|
|
11176
11188
|
const hasFilter = !!filterValue;
|
|
11177
|
-
|
|
11189
|
+
useEffect23(() => {
|
|
11178
11190
|
setFilterValue(columnFilterValue);
|
|
11179
11191
|
}, [columnFilterValue]);
|
|
11180
11192
|
return /* @__PURE__ */ jsx58(
|
|
@@ -11306,9 +11318,9 @@ var TableSortButton = ({
|
|
|
11306
11318
|
};
|
|
11307
11319
|
|
|
11308
11320
|
// src/hooks/useResizeCallbackWrapper.ts
|
|
11309
|
-
import { useEffect as
|
|
11321
|
+
import { useEffect as useEffect24 } from "react";
|
|
11310
11322
|
var useResizeCallbackWrapper = (callback) => {
|
|
11311
|
-
|
|
11323
|
+
useEffect24(() => {
|
|
11312
11324
|
window.addEventListener("resize", callback);
|
|
11313
11325
|
return () => {
|
|
11314
11326
|
window.removeEventListener("resize", callback);
|
|
@@ -11495,7 +11507,7 @@ var Table = ({
|
|
|
11495
11507
|
...tableOptions
|
|
11496
11508
|
});
|
|
11497
11509
|
const [hasInitializedSizing, setHasInitializedSizing] = useState26(false);
|
|
11498
|
-
|
|
11510
|
+
useEffect25(() => {
|
|
11499
11511
|
if (!hasInitializedSizing && ref.current) {
|
|
11500
11512
|
setHasInitializedSizing(true);
|
|
11501
11513
|
table.setColumnSizing(updateColumnSizes(columnSizing));
|
|
@@ -11505,7 +11517,7 @@ var Table = ({
|
|
|
11505
11517
|
table.setColumnSizing(updateColumnSizes);
|
|
11506
11518
|
}, [updateColumnSizes]));
|
|
11507
11519
|
const pageCount = table.getPageCount();
|
|
11508
|
-
|
|
11520
|
+
useEffect25(() => {
|
|
11509
11521
|
const totalPages = pageCount;
|
|
11510
11522
|
if (totalPages === 0) {
|
|
11511
11523
|
if (pagination.pageIndex !== 0) {
|
|
@@ -11637,7 +11649,7 @@ var Table = ({
|
|
|
11637
11649
|
};
|
|
11638
11650
|
var TableUncontrolled = ({ data, ...props }) => {
|
|
11639
11651
|
const [usedDate, setUsedData] = useState26(data);
|
|
11640
|
-
|
|
11652
|
+
useEffect25(() => {
|
|
11641
11653
|
setUsedData(data);
|
|
11642
11654
|
}, [data]);
|
|
11643
11655
|
return /* @__PURE__ */ jsx61(
|
|
@@ -11892,7 +11904,7 @@ var DateTimePicker = ({
|
|
|
11892
11904
|
};
|
|
11893
11905
|
|
|
11894
11906
|
// src/components/user-action/ScrollPicker.tsx
|
|
11895
|
-
import { useCallback as useCallback10, useEffect as
|
|
11907
|
+
import { useCallback as useCallback10, useEffect as useEffect26, useState as useState28 } from "react";
|
|
11896
11908
|
import clsx51 from "clsx";
|
|
11897
11909
|
import { jsx as jsx64, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
11898
11910
|
var up = 1;
|
|
@@ -12012,7 +12024,7 @@ var ScrollPicker = ({
|
|
|
12012
12024
|
};
|
|
12013
12025
|
});
|
|
12014
12026
|
}, [disabled, getDirection, onChange]);
|
|
12015
|
-
|
|
12027
|
+
useEffect26(() => {
|
|
12016
12028
|
requestAnimationFrame((timestamp) => animate(timestamp, lastTimeStamp));
|
|
12017
12029
|
});
|
|
12018
12030
|
const opacity = (transition2, index, itemsCount) => {
|
|
@@ -12089,7 +12101,7 @@ var ScrollPicker = ({
|
|
|
12089
12101
|
};
|
|
12090
12102
|
|
|
12091
12103
|
// src/components/user-action/ToggleableInput.tsx
|
|
12092
|
-
import { useEffect as
|
|
12104
|
+
import { useEffect as useEffect27, useRef as useRef8, useState as useState29 } from "react";
|
|
12093
12105
|
import { Pencil } from "lucide-react";
|
|
12094
12106
|
import clsx52 from "clsx";
|
|
12095
12107
|
import { jsx as jsx65, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
@@ -12114,7 +12126,7 @@ var ToggleableInput = ({
|
|
|
12114
12126
|
onEditCompleted(text);
|
|
12115
12127
|
clearTimer();
|
|
12116
12128
|
};
|
|
12117
|
-
|
|
12129
|
+
useEffect27(() => {
|
|
12118
12130
|
if (isEditing) {
|
|
12119
12131
|
ref.current?.focus();
|
|
12120
12132
|
}
|
|
@@ -12180,7 +12192,7 @@ var ToggleableInputUncontrolled = ({
|
|
|
12180
12192
|
...restProps
|
|
12181
12193
|
}) => {
|
|
12182
12194
|
const [value, setValue] = useState29(initialValue);
|
|
12183
|
-
|
|
12195
|
+
useEffect27(() => {
|
|
12184
12196
|
setValue(initialValue);
|
|
12185
12197
|
}, [initialValue]);
|
|
12186
12198
|
return /* @__PURE__ */ jsx65(
|
|
@@ -12197,14 +12209,14 @@ var ToggleableInputUncontrolled = ({
|
|
|
12197
12209
|
};
|
|
12198
12210
|
|
|
12199
12211
|
// src/hooks/useLogOnce.ts
|
|
12200
|
-
import { useEffect as
|
|
12212
|
+
import { useEffect as useEffect28, useState as useState30 } from "react";
|
|
12201
12213
|
var useLogOnce = ({
|
|
12202
12214
|
message,
|
|
12203
12215
|
condition,
|
|
12204
12216
|
type = "warning"
|
|
12205
12217
|
}) => {
|
|
12206
12218
|
const [hasLogged, setHasLogged] = useState30(false);
|
|
12207
|
-
|
|
12219
|
+
useEffect28(() => {
|
|
12208
12220
|
if (!hasLogged && condition) {
|
|
12209
12221
|
switch (type) {
|
|
12210
12222
|
case "info":
|