@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
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import clsx7 from "clsx";
|
|
3
3
|
|
|
4
4
|
// src/localization/LanguageProvider.tsx
|
|
5
|
-
import { createContext, useContext, useEffect
|
|
5
|
+
import { createContext, useContext, useEffect, useState as useState2 } from "react";
|
|
6
6
|
|
|
7
7
|
// src/hooks/useLocalStorage.ts
|
|
8
|
-
import { useCallback,
|
|
8
|
+
import { useCallback, useState } from "react";
|
|
9
9
|
|
|
10
10
|
// src/localization/util.ts
|
|
11
11
|
var languages = ["en", "de"];
|
|
@@ -267,7 +267,6 @@ var ButtonUtil = {
|
|
|
267
267
|
};
|
|
268
268
|
var SolidButton = forwardRef(function SolidButton2({
|
|
269
269
|
children,
|
|
270
|
-
disabled = false,
|
|
271
270
|
color = "primary",
|
|
272
271
|
size = "medium",
|
|
273
272
|
startIcon,
|
|
@@ -277,35 +276,33 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
277
276
|
...restProps
|
|
278
277
|
}, ref) {
|
|
279
278
|
const colorClasses = {
|
|
280
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
281
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
282
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
283
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
284
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
285
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
286
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
279
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
280
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
281
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
282
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
283
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
284
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
285
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
287
286
|
}[color];
|
|
288
287
|
const iconColorClasses = {
|
|
289
|
-
primary: "text-button-solid-primary-icon",
|
|
290
|
-
secondary: "text-button-solid-secondary-icon",
|
|
291
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
292
|
-
positive: "text-button-solid-positive-icon",
|
|
293
|
-
warning: "text-button-solid-warning-icon",
|
|
294
|
-
negative: "text-button-solid-negative-icon",
|
|
295
|
-
neutral: "text-button-solid-neutral-icon"
|
|
288
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
289
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
290
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
291
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
292
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
293
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
294
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
296
295
|
}[color];
|
|
297
296
|
return /* @__PURE__ */ jsxs(
|
|
298
297
|
"button",
|
|
299
298
|
{
|
|
300
299
|
ref,
|
|
301
300
|
onClick,
|
|
302
|
-
disabled,
|
|
303
301
|
className: clsx(
|
|
304
|
-
"font-semibold",
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
},
|
|
302
|
+
"group font-semibold",
|
|
303
|
+
colorClasses,
|
|
304
|
+
"not-disabled:hover:brightness-90",
|
|
305
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
309
306
|
ButtonUtil.paddingMapping[size],
|
|
310
307
|
className
|
|
311
308
|
),
|
|
@@ -314,10 +311,10 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
314
311
|
startIcon && /* @__PURE__ */ jsx2(
|
|
315
312
|
"span",
|
|
316
313
|
{
|
|
317
|
-
className: clsx(
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
314
|
+
className: clsx(
|
|
315
|
+
iconColorClasses,
|
|
316
|
+
"group-disabled:text-disabled-icon"
|
|
317
|
+
),
|
|
321
318
|
children: startIcon
|
|
322
319
|
}
|
|
323
320
|
),
|
|
@@ -325,10 +322,10 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
325
322
|
endIcon && /* @__PURE__ */ jsx2(
|
|
326
323
|
"span",
|
|
327
324
|
{
|
|
328
|
-
className: clsx(
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
325
|
+
className: clsx(
|
|
326
|
+
iconColorClasses,
|
|
327
|
+
"group-disabled:text-disabled-icon"
|
|
328
|
+
),
|
|
332
329
|
children: endIcon
|
|
333
330
|
}
|
|
334
331
|
)
|
|
@@ -338,7 +335,6 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
338
335
|
});
|
|
339
336
|
var TextButton = ({
|
|
340
337
|
children,
|
|
341
|
-
disabled = false,
|
|
342
338
|
color = "neutral",
|
|
343
339
|
size = "medium",
|
|
344
340
|
startIcon,
|
|
@@ -349,32 +345,31 @@ var TextButton = ({
|
|
|
349
345
|
...restProps
|
|
350
346
|
}) => {
|
|
351
347
|
const colorClasses = {
|
|
352
|
-
primary: "bg-transparent text-button-text-primary-text",
|
|
353
|
-
negative: "bg-transparent text-button-text-negative-text",
|
|
354
|
-
neutral: "bg-transparent text-button-text-neutral-text"
|
|
348
|
+
primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text",
|
|
349
|
+
negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text",
|
|
350
|
+
neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text"
|
|
355
351
|
}[color];
|
|
356
352
|
const backgroundColor = {
|
|
357
|
-
primary: "hover:bg-button-text-primary-text/20",
|
|
358
|
-
negative: "hover:bg-button-text-negative-text/20",
|
|
359
|
-
neutral: "hover:bg-button-text-neutral-text/20"
|
|
353
|
+
primary: "not-disabled:hover:bg-button-text-primary-text/20",
|
|
354
|
+
negative: "not-disabled:hover:bg-button-text-negative-text/20",
|
|
355
|
+
neutral: "not-disabled:hover:bg-button-text-neutral-text/20"
|
|
360
356
|
}[color];
|
|
361
357
|
const iconColorClasses = {
|
|
362
|
-
primary: "text-button-text-primary-icon",
|
|
363
|
-
negative: "text-button-text-negative-icon",
|
|
364
|
-
neutral: "text-button-text-neutral-icon"
|
|
358
|
+
primary: "not-group-disabled:text-button-text-primary-icon",
|
|
359
|
+
negative: "not-group-disabled:text-button-text-negative-icon",
|
|
360
|
+
neutral: "not-group-disabled:text-button-text-neutral-icon"
|
|
365
361
|
}[color];
|
|
366
362
|
return /* @__PURE__ */ jsxs(
|
|
367
363
|
"button",
|
|
368
364
|
{
|
|
369
365
|
onClick,
|
|
370
|
-
disabled,
|
|
371
366
|
className: clsx(
|
|
372
|
-
"font-semibold",
|
|
367
|
+
"group font-semibold",
|
|
368
|
+
"disabled:text-disabled-text",
|
|
369
|
+
colorClasses,
|
|
373
370
|
{
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
[backgroundColor]: !disabled && coloredHoverBackground,
|
|
377
|
-
"hover:bg-button-text-hover-background": !disabled && !coloredHoverBackground
|
|
371
|
+
[backgroundColor]: coloredHoverBackground,
|
|
372
|
+
"not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
|
|
378
373
|
},
|
|
379
374
|
ButtonUtil.paddingMapping[size],
|
|
380
375
|
className
|
|
@@ -384,10 +379,10 @@ var TextButton = ({
|
|
|
384
379
|
startIcon && /* @__PURE__ */ jsx2(
|
|
385
380
|
"span",
|
|
386
381
|
{
|
|
387
|
-
className: clsx(
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
382
|
+
className: clsx(
|
|
383
|
+
iconColorClasses,
|
|
384
|
+
"group-disabled:text-disabled-icon"
|
|
385
|
+
),
|
|
391
386
|
children: startIcon
|
|
392
387
|
}
|
|
393
388
|
),
|
|
@@ -395,10 +390,10 @@ var TextButton = ({
|
|
|
395
390
|
endIcon && /* @__PURE__ */ jsx2(
|
|
396
391
|
"span",
|
|
397
392
|
{
|
|
398
|
-
className: clsx(
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
393
|
+
className: clsx(
|
|
394
|
+
iconColorClasses,
|
|
395
|
+
"group-disabled:text-disabled-icon"
|
|
396
|
+
),
|
|
402
397
|
children: endIcon
|
|
403
398
|
}
|
|
404
399
|
)
|
|
@@ -408,7 +403,7 @@ var TextButton = ({
|
|
|
408
403
|
};
|
|
409
404
|
|
|
410
405
|
// src/components/date/TimePicker.tsx
|
|
411
|
-
import { useEffect as
|
|
406
|
+
import { useEffect as useEffect2, useRef, useState as useState3 } from "react";
|
|
412
407
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
413
408
|
import clsx2 from "clsx";
|
|
414
409
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -425,7 +420,7 @@ var TimePicker = ({
|
|
|
425
420
|
const isPM = time.getHours() >= 11;
|
|
426
421
|
const hours = is24HourFormat ? range(24) : range([1, 12], { exclusiveEnd: false });
|
|
427
422
|
let minutes = range(60);
|
|
428
|
-
|
|
423
|
+
useEffect2(() => {
|
|
429
424
|
const scrollToItem = () => {
|
|
430
425
|
if (minuteRef.current) {
|
|
431
426
|
const container = minuteRef.current.parentElement;
|
|
@@ -440,7 +435,7 @@ var TimePicker = ({
|
|
|
440
435
|
};
|
|
441
436
|
scrollToItem();
|
|
442
437
|
}, [minuteRef, minuteRef.current]);
|
|
443
|
-
|
|
438
|
+
useEffect2(() => {
|
|
444
439
|
const scrollToItem = () => {
|
|
445
440
|
if (hourRef.current) {
|
|
446
441
|
const container = hourRef.current.parentElement;
|
|
@@ -528,17 +523,17 @@ var TimePicker = ({
|
|
|
528
523
|
};
|
|
529
524
|
|
|
530
525
|
// src/components/date/DatePicker.tsx
|
|
531
|
-
import { useEffect as
|
|
526
|
+
import { useEffect as useEffect6, useState as useState7 } from "react";
|
|
532
527
|
import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2 } from "lucide-react";
|
|
533
528
|
import clsx6 from "clsx";
|
|
534
529
|
|
|
535
530
|
// src/components/date/YearMonthPicker.tsx
|
|
536
|
-
import { useEffect as
|
|
531
|
+
import { useEffect as useEffect4, useRef as useRef2, useState as useState5 } from "react";
|
|
537
532
|
import { Scrollbars as Scrollbars2 } from "react-custom-scrollbars-2";
|
|
538
533
|
import clsx4 from "clsx";
|
|
539
534
|
|
|
540
535
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
541
|
-
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as
|
|
536
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect3, useState as useState4 } from "react";
|
|
542
537
|
import { ChevronDown } from "lucide-react";
|
|
543
538
|
import clsx3 from "clsx";
|
|
544
539
|
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -619,7 +614,7 @@ var ExpandableUncontrolled = forwardRef2(function ExpandableUncontrolled2({
|
|
|
619
614
|
...props
|
|
620
615
|
}, ref) {
|
|
621
616
|
const [usedIsExpanded, setUsedIsExpanded] = useState4(isExpanded);
|
|
622
|
-
|
|
617
|
+
useEffect3(() => {
|
|
623
618
|
setUsedIsExpanded(isExpanded);
|
|
624
619
|
}, [isExpanded]);
|
|
625
620
|
return /* @__PURE__ */ jsx4(
|
|
@@ -649,7 +644,7 @@ var YearMonthPicker = ({
|
|
|
649
644
|
}) => {
|
|
650
645
|
const locale = useLocale();
|
|
651
646
|
const ref = useRef2(null);
|
|
652
|
-
|
|
647
|
+
useEffect4(() => {
|
|
653
648
|
const scrollToItem = () => {
|
|
654
649
|
if (ref.current) {
|
|
655
650
|
ref.current.scrollIntoView({
|
|
@@ -706,7 +701,7 @@ var YearMonthPicker = ({
|
|
|
706
701
|
|
|
707
702
|
// src/components/date/DayPicker.tsx
|
|
708
703
|
import clsx5 from "clsx";
|
|
709
|
-
import { useEffect as
|
|
704
|
+
import { useEffect as useEffect5, useState as useState6 } from "react";
|
|
710
705
|
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
711
706
|
var DayPicker = ({
|
|
712
707
|
displayedMonth,
|
|
@@ -842,7 +837,7 @@ var DatePicker = ({
|
|
|
842
837
|
const translation = useTranslation([timeTranslation], overwriteTranslation);
|
|
843
838
|
const [displayedMonth, setDisplayedMonth] = useState7(value);
|
|
844
839
|
const [displayMode, setDisplayMode] = useState7(initialDisplay);
|
|
845
|
-
|
|
840
|
+
useEffect6(() => {
|
|
846
841
|
setDisplayedMonth(value);
|
|
847
842
|
}, [value]);
|
|
848
843
|
return /* @__PURE__ */ jsxs5("div", { className: clsx6("flex-col-4", className), children: [
|