@povio/ui 3.4.0-rc.4 → 3.4.0-rc.6
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/Breadcrumbs/Breadcrumbs.js +13 -4
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +6 -3
- package/dist/components/Menu/MenuMobile.js +6 -3
- package/dist/components/Menu/MenuPopover.js +1 -1
- package/dist/components/buttons/IconButton/IconButton.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +3 -3
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
- package/dist/components/buttons/TextButton/TextButton.js +1 -1
- package/dist/components/buttons/ToggleButton/ToggleButton.js +1 -1
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +1 -1
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +2 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +2 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +2 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +196 -191
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +13 -9
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +7 -11
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +1 -1
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimeField.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +3 -4
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +46 -44
- package/dist/components/inputs/DateTime/shared/YearPicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +46 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +1 -1
- package/dist/components/inputs/File/FileUpload.js +1 -1
- package/dist/components/inputs/File/FileUploadContainer.js +1 -1
- package/dist/components/inputs/File/InputUpload.js +1 -1
- package/dist/components/inputs/File/shared/FileCard.js +1 -1
- package/dist/components/inputs/File/shared/FileCardList.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +5 -2
- package/dist/components/inputs/File/shared/FileUploadContentError.js +8 -5
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +8 -5
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +7 -4
- package/dist/components/inputs/File/shared/InputUploadContent.js +3 -3
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
- package/dist/components/inputs/FormField/FormField.js +1 -1
- package/dist/components/inputs/FormField/FormFieldError.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +4 -3
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +6 -3
- package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +89 -87
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +264 -253
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +1 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +5 -4
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +3 -4
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +1 -0
- package/dist/components/inputs/Input/TextArea/TextArea.js +99 -98
- package/dist/components/inputs/Input/TextInput/TextInput.js +92 -90
- package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -1
- package/dist/components/inputs/Input/shared/InputContent.js +49 -47
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.js +1 -1
- package/dist/components/inputs/Inputs/Inputs.js +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/SelectBase.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +55 -53
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +56 -54
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +7 -3
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +6 -3
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +2 -2
- package/dist/components/inputs/Slider/Slider.js +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -3
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +6 -9
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +5 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +9 -6
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +6 -9
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +1 -1
- package/dist/components/inputs/Toggle/Toggle.js +1 -1
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +7 -4
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
- package/dist/components/inputs/shared/TooltipWrapper.js +1 -1
- package/dist/components/inputs/shared/form.binding.js +1 -1
- package/dist/components/inputs/shared/input.cva.js +1 -1
- package/dist/components/inputs/shared/useStaticInputHandoff.js +64 -38
- package/dist/components/navigation/Accordion/AccordionItem.js +5 -2
- package/dist/components/navigation/Stepper/StepperItem.js +6 -3
- package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +6 -3
- package/dist/components/overlays/Drawer/Drawer.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +2 -2
- package/dist/components/overlays/Tooltip/Tooltip.js +14 -5
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.js +1 -1
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +6 -9
- package/dist/components/status/Loader/Loader.js +1 -1
- package/dist/components/status/Toast/Toast.js +1 -1
- package/dist/components/status/Toast/useToast.js +1 -1
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/PaginatedTable.js +1 -1
- package/dist/components/table/Table.js +148 -40
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +5 -2
- package/dist/components/text/Tag/Tag.js +5 -2
- package/dist/config/link.context.js +1 -1
- package/dist/config/router.context.js +1 -1
- package/dist/config/uiConfig.context.js +13 -6
- package/dist/config/uiOverrides.context.js +1 -1
- package/dist/hooks/useFilters.js +1 -1
- package/dist/hooks/useForm.js +1 -1
- package/dist/hooks/useIntersectionObserver.js +1 -1
- package/dist/hooks/useLocalStorage.js +1 -1
- package/dist/hooks/usePagination.js +1 -1
- package/dist/hooks/useScrollableListBox.js +1 -1
- package/dist/hooks/useSorting.js +1 -1
- package/dist/hooks/useStateAndRef.js +1 -1
- package/dist/hooks/useTableColumnConfig.js +1 -1
- package/dist/index.js +1 -40
- package/dist/node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js +15 -0
- package/dist/react-icons-sprite-4cbd6962.svg +1 -0
- package/dist/rhf/Inputs.js +1 -1
- package/dist/rhf.d.ts +0 -39
- package/dist/tanstack.d.ts +0 -39
- package/dist/tanstack.js +1 -40
- package/package.json +2 -1
- package/dist/assets/icons/Account.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.js +0 -30
- package/dist/assets/icons/AlignLeft.d.ts +0 -2
- package/dist/assets/icons/AlignLeft.js +0 -30
- package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
- package/dist/assets/icons/AlignLeftRight.js +0 -30
- package/dist/assets/icons/AlignRight.d.ts +0 -2
- package/dist/assets/icons/AlignRight.js +0 -30
- package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
- package/dist/assets/icons/ArrowDropDown.js +0 -30
- package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
- package/dist/assets/icons/ArrowDropUp.js +0 -30
- package/dist/assets/icons/ArrowLeft.d.ts +0 -2
- package/dist/assets/icons/ArrowLeft.js +0 -30
- package/dist/assets/icons/ArrowRight.d.ts +0 -2
- package/dist/assets/icons/ArrowRight.js +0 -30
- package/dist/assets/icons/Board.d.ts +0 -2
- package/dist/assets/icons/Bold.d.ts +0 -2
- package/dist/assets/icons/Bold.js +0 -30
- package/dist/assets/icons/BulletedList.d.ts +0 -2
- package/dist/assets/icons/BulletedList.js +0 -30
- package/dist/assets/icons/Calendar.d.ts +0 -2
- package/dist/assets/icons/Calendar.js +0 -32
- package/dist/assets/icons/Check.d.ts +0 -2
- package/dist/assets/icons/Check.js +0 -32
- package/dist/assets/icons/CheckCircle.d.ts +0 -2
- package/dist/assets/icons/CheckCircle.js +0 -30
- package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
- package/dist/assets/icons/CheckboxCheckmark.js +0 -33
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
- package/dist/assets/icons/ChevronDown.d.ts +0 -2
- package/dist/assets/icons/ChevronDown.js +0 -32
- package/dist/assets/icons/ChevronLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronLeft.js +0 -32
- package/dist/assets/icons/ChevronRight.d.ts +0 -2
- package/dist/assets/icons/ChevronRight.js +0 -32
- package/dist/assets/icons/ChevronUp.d.ts +0 -2
- package/dist/assets/icons/ChevronUp.js +0 -32
- package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronsLeft.js +0 -32
- package/dist/assets/icons/ChevronsRight.d.ts +0 -2
- package/dist/assets/icons/ChevronsRight.js +0 -32
- package/dist/assets/icons/Clock.d.ts +0 -2
- package/dist/assets/icons/Clock.js +0 -30
- package/dist/assets/icons/Close.d.ts +0 -2
- package/dist/assets/icons/Close.js +0 -30
- package/dist/assets/icons/DateTime.d.ts +0 -2
- package/dist/assets/icons/DateTime.js +0 -39
- package/dist/assets/icons/DragIndicator.d.ts +0 -2
- package/dist/assets/icons/DragIndicator.js +0 -30
- package/dist/assets/icons/Edit.d.ts +0 -2
- package/dist/assets/icons/Emoji.d.ts +0 -2
- package/dist/assets/icons/File.d.ts +0 -2
- package/dist/assets/icons/File.js +0 -32
- package/dist/assets/icons/Grid.d.ts +0 -2
- package/dist/assets/icons/Highlight.d.ts +0 -2
- package/dist/assets/icons/Highlight.js +0 -30
- package/dist/assets/icons/HighlightOn.d.ts +0 -6
- package/dist/assets/icons/HighlightOn.js +0 -55
- package/dist/assets/icons/Home.d.ts +0 -2
- package/dist/assets/icons/Home.js +0 -30
- package/dist/assets/icons/Image.d.ts +0 -2
- package/dist/assets/icons/ImageError.d.ts +0 -2
- package/dist/assets/icons/Info.d.ts +0 -2
- package/dist/assets/icons/Info.js +0 -41
- package/dist/assets/icons/Italic.d.ts +0 -2
- package/dist/assets/icons/Italic.js +0 -30
- package/dist/assets/icons/Link.d.ts +0 -2
- package/dist/assets/icons/Link.js +0 -30
- package/dist/assets/icons/Loader.d.ts +0 -2
- package/dist/assets/icons/MapPin.d.ts +0 -2
- package/dist/assets/icons/Menu.d.ts +0 -2
- package/dist/assets/icons/Menu.js +0 -30
- package/dist/assets/icons/Minus.d.ts +0 -2
- package/dist/assets/icons/MoreHoriz.d.ts +0 -2
- package/dist/assets/icons/NumberedList.d.ts +0 -2
- package/dist/assets/icons/NumberedList.js +0 -30
- package/dist/assets/icons/Pause.d.ts +0 -2
- package/dist/assets/icons/Plus.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.js +0 -30
- package/dist/assets/icons/PointerVertical.d.ts +0 -2
- package/dist/assets/icons/PointerVertical.js +0 -30
- package/dist/assets/icons/Retry.d.ts +0 -2
- package/dist/assets/icons/Search.d.ts +0 -2
- package/dist/assets/icons/Search.js +0 -30
- package/dist/assets/icons/Send.d.ts +0 -2
- package/dist/assets/icons/Send.js +0 -32
- package/dist/assets/icons/Share.d.ts +0 -2
- package/dist/assets/icons/Slash.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.js +0 -30
- package/dist/assets/icons/TextColor.d.ts +0 -6
- package/dist/assets/icons/TextColor.js +0 -52
- package/dist/assets/icons/Today.d.ts +0 -2
- package/dist/assets/icons/Today.js +0 -30
- package/dist/assets/icons/Trash.d.ts +0 -2
- package/dist/assets/icons/Underlined.d.ts +0 -2
- package/dist/assets/icons/Underlined.js +0 -32
- package/dist/assets/icons/Upload.d.ts +0 -2
- package/dist/assets/icons/Upload.js +0 -39
- package/dist/assets/icons/User.d.ts +0 -2
- package/dist/assets/icons/Visibility.d.ts +0 -2
- package/dist/assets/icons/Visibility.js +0 -30
- package/dist/assets/icons/VisibilityOff.d.ts +0 -2
- package/dist/assets/icons/VisibilityOff.js +0 -30
- package/dist/assets/icons/WarningFilled.d.ts +0 -2
- package/dist/assets/icons/WarningFilled.js +0 -32
- package/dist/assets/icons/WarningOutlined.d.ts +0 -2
|
@@ -10,10 +10,10 @@ import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
|
10
10
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
11
11
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
12
12
|
import { TimePickerInput } from "../shared/TimePickerInput.js";
|
|
13
|
-
import { c } from "react/compiler-runtime";
|
|
14
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
14
|
import { clsx } from "clsx";
|
|
16
15
|
import { useEffect, useRef, useState } from "react";
|
|
16
|
+
import { c } from "react/compiler-runtime";
|
|
17
17
|
import { useLocale, useTimeField } from "react-aria";
|
|
18
18
|
import { mergeRefs } from "@react-aria/utils";
|
|
19
19
|
import { getLocalTimeZone, now, toTime } from "@internationalized/date";
|
|
@@ -21,7 +21,7 @@ import { DateTime } from "luxon";
|
|
|
21
21
|
import { useTimeFieldState } from "react-stately";
|
|
22
22
|
//#region src/components/inputs/DateTime/TimePicker/TimePicker.tsx
|
|
23
23
|
var TimePickerBase = (props) => {
|
|
24
|
-
const $ = c(
|
|
24
|
+
const $ = c(142);
|
|
25
25
|
const ui = UIConfig.useConfig();
|
|
26
26
|
let asProp;
|
|
27
27
|
let className;
|
|
@@ -33,6 +33,7 @@ var TimePickerBase = (props) => {
|
|
|
33
33
|
let helperText;
|
|
34
34
|
let hideLabelProp;
|
|
35
35
|
let inputClassName;
|
|
36
|
+
let isClearableIfDisabled;
|
|
36
37
|
let isClearableProp;
|
|
37
38
|
let isDirty;
|
|
38
39
|
let isDisabled;
|
|
@@ -51,7 +52,7 @@ var TimePickerBase = (props) => {
|
|
|
51
52
|
let value;
|
|
52
53
|
let variantProp;
|
|
53
54
|
if ($[0] !== props) {
|
|
54
|
-
({ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, onBlur, value, disableDropdown, placeholder, className, inputClassName, variant: variantProp, as: asProp, size: sizeProp, hideLabel: hideLabelProp, isClearable: isClearableProp, disableManualEntry: disableManualEntryProp, shouldForceLeadingZeros: shouldForceLeadingZerosProp, ...rest} = props);
|
|
55
|
+
({ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, onBlur, value, disableDropdown, placeholder, className, inputClassName, variant: variantProp, as: asProp, size: sizeProp, hideLabel: hideLabelProp, isClearable: isClearableProp, isClearableIfDisabled, disableManualEntry: disableManualEntryProp, shouldForceLeadingZeros: shouldForceLeadingZerosProp, ...rest} = props);
|
|
55
56
|
$[0] = props;
|
|
56
57
|
$[1] = asProp;
|
|
57
58
|
$[2] = className;
|
|
@@ -63,23 +64,24 @@ var TimePickerBase = (props) => {
|
|
|
63
64
|
$[8] = helperText;
|
|
64
65
|
$[9] = hideLabelProp;
|
|
65
66
|
$[10] = inputClassName;
|
|
66
|
-
$[11] =
|
|
67
|
-
$[12] =
|
|
68
|
-
$[13] =
|
|
69
|
-
$[14] =
|
|
70
|
-
$[15] =
|
|
71
|
-
$[16] =
|
|
72
|
-
$[17] =
|
|
73
|
-
$[18] =
|
|
74
|
-
$[19] =
|
|
75
|
-
$[20] =
|
|
76
|
-
$[21] =
|
|
77
|
-
$[22] =
|
|
78
|
-
$[23] =
|
|
79
|
-
$[24] =
|
|
80
|
-
$[25] =
|
|
81
|
-
$[26] =
|
|
82
|
-
$[27] =
|
|
67
|
+
$[11] = isClearableIfDisabled;
|
|
68
|
+
$[12] = isClearableProp;
|
|
69
|
+
$[13] = isDirty;
|
|
70
|
+
$[14] = isDisabled;
|
|
71
|
+
$[15] = isHeaderHidden;
|
|
72
|
+
$[16] = isRequired;
|
|
73
|
+
$[17] = label;
|
|
74
|
+
$[18] = onBlur;
|
|
75
|
+
$[19] = onChange;
|
|
76
|
+
$[20] = placeholder;
|
|
77
|
+
$[21] = ref;
|
|
78
|
+
$[22] = rest;
|
|
79
|
+
$[23] = rightContent;
|
|
80
|
+
$[24] = shouldForceLeadingZerosProp;
|
|
81
|
+
$[25] = sizeProp;
|
|
82
|
+
$[26] = tooltipText;
|
|
83
|
+
$[27] = value;
|
|
84
|
+
$[28] = variantProp;
|
|
83
85
|
} else {
|
|
84
86
|
asProp = $[1];
|
|
85
87
|
className = $[2];
|
|
@@ -91,23 +93,24 @@ var TimePickerBase = (props) => {
|
|
|
91
93
|
helperText = $[8];
|
|
92
94
|
hideLabelProp = $[9];
|
|
93
95
|
inputClassName = $[10];
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
96
|
+
isClearableIfDisabled = $[11];
|
|
97
|
+
isClearableProp = $[12];
|
|
98
|
+
isDirty = $[13];
|
|
99
|
+
isDisabled = $[14];
|
|
100
|
+
isHeaderHidden = $[15];
|
|
101
|
+
isRequired = $[16];
|
|
102
|
+
label = $[17];
|
|
103
|
+
onBlur = $[18];
|
|
104
|
+
onChange = $[19];
|
|
105
|
+
placeholder = $[20];
|
|
106
|
+
ref = $[21];
|
|
107
|
+
rest = $[22];
|
|
108
|
+
rightContent = $[23];
|
|
109
|
+
shouldForceLeadingZerosProp = $[24];
|
|
110
|
+
sizeProp = $[25];
|
|
111
|
+
tooltipText = $[26];
|
|
112
|
+
value = $[27];
|
|
113
|
+
variantProp = $[28];
|
|
111
114
|
}
|
|
112
115
|
const variant = variantProp ?? ui.input.variant;
|
|
113
116
|
const as = asProp ?? ui.input.as;
|
|
@@ -118,7 +121,7 @@ var TimePickerBase = (props) => {
|
|
|
118
121
|
const shouldForceLeadingZeros = shouldForceLeadingZerosProp ?? ui.dateInput.shouldForceLeadingZeros;
|
|
119
122
|
const t0 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
|
|
120
123
|
let t1;
|
|
121
|
-
if ($[
|
|
124
|
+
if ($[29] !== error || $[30] !== errorClassName || $[31] !== headerClassName || $[32] !== helperText || $[33] !== hideLabel || $[34] !== isDisabled || $[35] !== isRequired || $[36] !== label || $[37] !== rightContent || $[38] !== t0 || $[39] !== tooltipText) {
|
|
122
125
|
t1 = {
|
|
123
126
|
error,
|
|
124
127
|
label,
|
|
@@ -132,19 +135,19 @@ var TimePickerBase = (props) => {
|
|
|
132
135
|
headerClassName,
|
|
133
136
|
errorClassName
|
|
134
137
|
};
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
} else t1 = $[
|
|
138
|
+
$[29] = error;
|
|
139
|
+
$[30] = errorClassName;
|
|
140
|
+
$[31] = headerClassName;
|
|
141
|
+
$[32] = helperText;
|
|
142
|
+
$[33] = hideLabel;
|
|
143
|
+
$[34] = isDisabled;
|
|
144
|
+
$[35] = isRequired;
|
|
145
|
+
$[36] = label;
|
|
146
|
+
$[37] = rightContent;
|
|
147
|
+
$[38] = t0;
|
|
148
|
+
$[39] = tooltipText;
|
|
149
|
+
$[40] = t1;
|
|
150
|
+
} else t1 = $[40];
|
|
148
151
|
const formFieldProps = t1;
|
|
149
152
|
const [isOpen, setIsOpen] = useState(false);
|
|
150
153
|
const initialDateEmitRef = useRef(true);
|
|
@@ -152,39 +155,39 @@ var TimePickerBase = (props) => {
|
|
|
152
155
|
const normalizedValue = value ?? null;
|
|
153
156
|
const t2 = normalizedValue ?? rest.defaultValue ?? null;
|
|
154
157
|
let t3;
|
|
155
|
-
if ($[
|
|
158
|
+
if ($[41] !== locale || $[42] !== rest || $[43] !== shouldForceLeadingZeros || $[44] !== t2) {
|
|
156
159
|
t3 = {
|
|
157
160
|
...rest,
|
|
158
161
|
defaultValue: t2,
|
|
159
162
|
locale,
|
|
160
163
|
shouldForceLeadingZeros
|
|
161
164
|
};
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
} else t3 = $[
|
|
165
|
+
$[41] = locale;
|
|
166
|
+
$[42] = rest;
|
|
167
|
+
$[43] = shouldForceLeadingZeros;
|
|
168
|
+
$[44] = t2;
|
|
169
|
+
$[45] = t3;
|
|
170
|
+
} else t3 = $[45];
|
|
168
171
|
const dialogState = useTimeFieldState(t3);
|
|
169
172
|
let t4;
|
|
170
|
-
if ($[
|
|
173
|
+
if ($[46] !== onBlur) {
|
|
171
174
|
t4 = (val) => {
|
|
172
175
|
onBlur?.({ target: { value: val } });
|
|
173
176
|
};
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
} else t4 = $[
|
|
177
|
+
$[46] = onBlur;
|
|
178
|
+
$[47] = t4;
|
|
179
|
+
} else t4 = $[47];
|
|
177
180
|
const handleBlur = t4;
|
|
178
181
|
let t5;
|
|
179
|
-
if ($[
|
|
182
|
+
if ($[48] !== onChange) {
|
|
180
183
|
t5 = (val_0) => {
|
|
181
184
|
onChange?.(val_0);
|
|
182
185
|
};
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
} else t5 = $[
|
|
186
|
+
$[48] = onChange;
|
|
187
|
+
$[49] = t5;
|
|
188
|
+
} else t5 = $[49];
|
|
186
189
|
let t6;
|
|
187
|
-
if ($[
|
|
190
|
+
if ($[50] !== isDisabled || $[51] !== locale || $[52] !== normalizedValue || $[53] !== rest || $[54] !== shouldForceLeadingZeros || $[55] !== t5) {
|
|
188
191
|
t6 = {
|
|
189
192
|
...rest,
|
|
190
193
|
isDisabled,
|
|
@@ -193,17 +196,17 @@ var TimePickerBase = (props) => {
|
|
|
193
196
|
locale,
|
|
194
197
|
shouldForceLeadingZeros
|
|
195
198
|
};
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
} else t6 = $[
|
|
199
|
+
$[50] = isDisabled;
|
|
200
|
+
$[51] = locale;
|
|
201
|
+
$[52] = normalizedValue;
|
|
202
|
+
$[53] = rest;
|
|
203
|
+
$[54] = shouldForceLeadingZeros;
|
|
204
|
+
$[55] = t5;
|
|
205
|
+
$[56] = t6;
|
|
206
|
+
} else t6 = $[56];
|
|
204
207
|
const state = useTimeFieldState(t6);
|
|
205
208
|
let t7;
|
|
206
|
-
if ($[
|
|
209
|
+
if ($[57] !== onChange || $[58] !== state.timeValue) {
|
|
207
210
|
t7 = () => {
|
|
208
211
|
if (initialDateEmitRef.current) {
|
|
209
212
|
initialDateEmitRef.current = false;
|
|
@@ -211,36 +214,36 @@ var TimePickerBase = (props) => {
|
|
|
211
214
|
}
|
|
212
215
|
if (state.timeValue) onChange?.(state.timeValue);
|
|
213
216
|
};
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
} else t7 = $[
|
|
217
|
+
$[57] = onChange;
|
|
218
|
+
$[58] = state.timeValue;
|
|
219
|
+
$[59] = t7;
|
|
220
|
+
} else t7 = $[59];
|
|
218
221
|
let t8;
|
|
219
|
-
if ($[
|
|
222
|
+
if ($[60] !== rest.date) {
|
|
220
223
|
t8 = [rest.date];
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
} else t8 = $[
|
|
224
|
+
$[60] = rest.date;
|
|
225
|
+
$[61] = t8;
|
|
226
|
+
} else t8 = $[61];
|
|
224
227
|
useEffect(t7, t8);
|
|
225
228
|
const timeFieldRef = useRef(null);
|
|
226
229
|
let t9;
|
|
227
|
-
if ($[
|
|
230
|
+
if ($[62] !== disableManualEntry || $[63] !== label || $[64] !== rest || $[65] !== shouldForceLeadingZeros) {
|
|
228
231
|
t9 = {
|
|
229
232
|
...rest,
|
|
230
233
|
label,
|
|
231
234
|
isReadOnly: disableManualEntry,
|
|
232
235
|
shouldForceLeadingZeros
|
|
233
236
|
};
|
|
234
|
-
$[
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
} else t9 = $[
|
|
237
|
+
$[62] = disableManualEntry;
|
|
238
|
+
$[63] = label;
|
|
239
|
+
$[64] = rest;
|
|
240
|
+
$[65] = shouldForceLeadingZeros;
|
|
241
|
+
$[66] = t9;
|
|
242
|
+
} else t9 = $[66];
|
|
240
243
|
const { labelProps, fieldProps } = useTimeField(t9, state, timeFieldRef);
|
|
241
244
|
const t10 = hideLabel || isHeaderHidden;
|
|
242
245
|
let t11;
|
|
243
|
-
if ($[
|
|
246
|
+
if ($[67] !== headerClassName || $[68] !== helperText || $[69] !== isDisabled || $[70] !== isRequired || $[71] !== label || $[72] !== labelProps || $[73] !== rightContent || $[74] !== t10 || $[75] !== tooltipText) {
|
|
244
247
|
t11 = {
|
|
245
248
|
label,
|
|
246
249
|
tooltipText,
|
|
@@ -252,100 +255,100 @@ var TimePickerBase = (props) => {
|
|
|
252
255
|
className: headerClassName,
|
|
253
256
|
labelProps
|
|
254
257
|
};
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
$[
|
|
265
|
-
} else t11 = $[
|
|
258
|
+
$[67] = headerClassName;
|
|
259
|
+
$[68] = helperText;
|
|
260
|
+
$[69] = isDisabled;
|
|
261
|
+
$[70] = isRequired;
|
|
262
|
+
$[71] = label;
|
|
263
|
+
$[72] = labelProps;
|
|
264
|
+
$[73] = rightContent;
|
|
265
|
+
$[74] = t10;
|
|
266
|
+
$[75] = tooltipText;
|
|
267
|
+
$[76] = t11;
|
|
268
|
+
} else t11 = $[76];
|
|
266
269
|
const headerProps = t11;
|
|
267
270
|
let t12;
|
|
268
|
-
if ($[
|
|
271
|
+
if ($[77] !== dialogState.value || $[78] !== state) {
|
|
269
272
|
t12 = () => {
|
|
270
273
|
const newValue = dialogState.value;
|
|
271
274
|
state.setValue(newValue);
|
|
272
275
|
setIsOpen(false);
|
|
273
276
|
};
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
} else t12 = $[
|
|
277
|
+
$[77] = dialogState.value;
|
|
278
|
+
$[78] = state;
|
|
279
|
+
$[79] = t12;
|
|
280
|
+
} else t12 = $[79];
|
|
278
281
|
const onApply = t12;
|
|
279
282
|
let t13;
|
|
280
|
-
if ($[
|
|
283
|
+
if ($[80] !== dialogState || $[81] !== isOpen || $[82] !== state.value) {
|
|
281
284
|
t13 = (open) => {
|
|
282
285
|
setIsOpen(open);
|
|
283
286
|
if (!isOpen) dialogState.setValue(state.value);
|
|
284
287
|
};
|
|
285
|
-
$[
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
} else t13 = $[
|
|
288
|
+
$[80] = dialogState;
|
|
289
|
+
$[81] = isOpen;
|
|
290
|
+
$[82] = state.value;
|
|
291
|
+
$[83] = t13;
|
|
292
|
+
} else t13 = $[83];
|
|
290
293
|
const onOpenChange = t13;
|
|
291
294
|
let t14;
|
|
292
|
-
if ($[
|
|
295
|
+
if ($[84] !== dialogState || $[85] !== state.value) {
|
|
293
296
|
t14 = () => {
|
|
294
297
|
dialogState.setValue(state.value);
|
|
295
298
|
setIsOpen(true);
|
|
296
299
|
};
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
} else t14 = $[
|
|
300
|
+
$[84] = dialogState;
|
|
301
|
+
$[85] = state.value;
|
|
302
|
+
$[86] = t14;
|
|
303
|
+
} else t14 = $[86];
|
|
301
304
|
const onOpen = t14;
|
|
302
305
|
let t15;
|
|
303
|
-
if ($[
|
|
306
|
+
if ($[87] !== onChange) {
|
|
304
307
|
t15 = () => {
|
|
305
308
|
onChange?.(null);
|
|
306
309
|
};
|
|
307
|
-
$[
|
|
308
|
-
$[
|
|
309
|
-
} else t15 = $[
|
|
310
|
+
$[87] = onChange;
|
|
311
|
+
$[88] = t15;
|
|
312
|
+
} else t15 = $[88];
|
|
310
313
|
const onInputClear = t15;
|
|
311
314
|
const t16 = as === "inline" ? -1 : void 0;
|
|
312
315
|
let t17;
|
|
313
|
-
if ($[
|
|
316
|
+
if ($[89] !== className) {
|
|
314
317
|
t17 = clsx("group relative inline-flex w-full flex-col text-left", className);
|
|
315
|
-
$[
|
|
316
|
-
$[
|
|
317
|
-
} else t17 = $[
|
|
318
|
+
$[89] = className;
|
|
319
|
+
$[90] = t17;
|
|
320
|
+
} else t17 = $[90];
|
|
318
321
|
const t18 = as === "inline" ? -1 : void 0;
|
|
319
322
|
let t19;
|
|
320
|
-
if ($[
|
|
323
|
+
if ($[91] !== ref) {
|
|
321
324
|
t19 = mergeRefs(ref, timeFieldRef);
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
} else t19 = $[
|
|
325
|
+
$[91] = ref;
|
|
326
|
+
$[92] = t19;
|
|
327
|
+
} else t19 = $[92];
|
|
325
328
|
let t20;
|
|
326
|
-
if ($[
|
|
329
|
+
if ($[93] !== fieldProps || $[94] !== handleBlur || $[95] !== state.value) {
|
|
327
330
|
t20 = (event) => {
|
|
328
331
|
fieldProps.onBlur?.(event);
|
|
329
332
|
handleBlur(state.value);
|
|
330
333
|
};
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
} else t20 = $[
|
|
334
|
+
$[93] = fieldProps;
|
|
335
|
+
$[94] = handleBlur;
|
|
336
|
+
$[95] = state.value;
|
|
337
|
+
$[96] = t20;
|
|
338
|
+
} else t20 = $[96];
|
|
336
339
|
let t21;
|
|
337
|
-
if ($[
|
|
340
|
+
if ($[97] !== fieldProps || $[98] !== t20) {
|
|
338
341
|
t21 = {
|
|
339
342
|
...fieldProps,
|
|
340
343
|
onBlur: t20
|
|
341
344
|
};
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
} else t21 = $[
|
|
345
|
+
$[97] = fieldProps;
|
|
346
|
+
$[98] = t20;
|
|
347
|
+
$[99] = t21;
|
|
348
|
+
} else t21 = $[99];
|
|
346
349
|
const t22 = !!error;
|
|
347
350
|
let t23;
|
|
348
|
-
if ($[
|
|
351
|
+
if ($[100] !== as || $[101] !== disableDropdown || $[102] !== disableManualEntry || $[103] !== headerProps || $[104] !== inputClassName || $[105] !== isClearable || $[106] !== isClearableIfDisabled || $[107] !== isDirty || $[108] !== isDisabled || $[109] !== isRequired || $[110] !== onInputClear || $[111] !== onOpen || $[112] !== placeholder || $[113] !== size || $[114] !== state || $[115] !== t19 || $[116] !== t21 || $[117] !== t22 || $[118] !== variant) {
|
|
349
352
|
t23 = /* @__PURE__ */ jsx(TimePickerInput, {
|
|
350
353
|
ref: t19,
|
|
351
354
|
as,
|
|
@@ -360,34 +363,36 @@ var TimePickerBase = (props) => {
|
|
|
360
363
|
variant,
|
|
361
364
|
size,
|
|
362
365
|
isClearable,
|
|
366
|
+
isClearableIfDisabled,
|
|
363
367
|
headerProps,
|
|
364
368
|
disableManualEntry,
|
|
365
369
|
placeholder,
|
|
366
370
|
className: inputClassName,
|
|
367
371
|
onClear: onInputClear
|
|
368
372
|
});
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
|
|
373
|
+
$[100] = as;
|
|
374
|
+
$[101] = disableDropdown;
|
|
375
|
+
$[102] = disableManualEntry;
|
|
376
|
+
$[103] = headerProps;
|
|
377
|
+
$[104] = inputClassName;
|
|
378
|
+
$[105] = isClearable;
|
|
379
|
+
$[106] = isClearableIfDisabled;
|
|
380
|
+
$[107] = isDirty;
|
|
381
|
+
$[108] = isDisabled;
|
|
382
|
+
$[109] = isRequired;
|
|
383
|
+
$[110] = onInputClear;
|
|
384
|
+
$[111] = onOpen;
|
|
385
|
+
$[112] = placeholder;
|
|
386
|
+
$[113] = size;
|
|
387
|
+
$[114] = state;
|
|
388
|
+
$[115] = t19;
|
|
389
|
+
$[116] = t21;
|
|
390
|
+
$[117] = t22;
|
|
391
|
+
$[118] = variant;
|
|
392
|
+
$[119] = t23;
|
|
393
|
+
} else t23 = $[119];
|
|
389
394
|
let t24;
|
|
390
|
-
if ($[
|
|
395
|
+
if ($[120] !== dialogState || $[121] !== disableDropdown || $[122] !== disableManualEntry || $[123] !== isDisabled || $[124] !== isOpen || $[125] !== label || $[126] !== onApply || $[127] !== onOpenChange) {
|
|
391
396
|
t24 = (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(DateTimeDialog, {
|
|
392
397
|
footer: /* @__PURE__ */ jsx(DateTimeDialogFooter, {
|
|
393
398
|
isDisabled,
|
|
@@ -400,18 +405,18 @@ var TimePickerBase = (props) => {
|
|
|
400
405
|
onOpenChange,
|
|
401
406
|
children: /* @__PURE__ */ jsx(TimePickerForm, { state: dialogState })
|
|
402
407
|
});
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
} else t24 = $[
|
|
408
|
+
$[120] = dialogState;
|
|
409
|
+
$[121] = disableDropdown;
|
|
410
|
+
$[122] = disableManualEntry;
|
|
411
|
+
$[123] = isDisabled;
|
|
412
|
+
$[124] = isOpen;
|
|
413
|
+
$[125] = label;
|
|
414
|
+
$[126] = onApply;
|
|
415
|
+
$[127] = onOpenChange;
|
|
416
|
+
$[128] = t24;
|
|
417
|
+
} else t24 = $[128];
|
|
413
418
|
let t25;
|
|
414
|
-
if ($[
|
|
419
|
+
if ($[129] !== as || $[130] !== formFieldProps || $[131] !== labelProps || $[132] !== t17 || $[133] !== t18 || $[134] !== t23 || $[135] !== t24) {
|
|
415
420
|
t25 = /* @__PURE__ */ jsxs(FormField, {
|
|
416
421
|
...formFieldProps,
|
|
417
422
|
as,
|
|
@@ -420,29 +425,29 @@ var TimePickerBase = (props) => {
|
|
|
420
425
|
tabIndex: t18,
|
|
421
426
|
children: [t23, t24]
|
|
422
427
|
});
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
} else t25 = $[
|
|
428
|
+
$[129] = as;
|
|
429
|
+
$[130] = formFieldProps;
|
|
430
|
+
$[131] = labelProps;
|
|
431
|
+
$[132] = t17;
|
|
432
|
+
$[133] = t18;
|
|
433
|
+
$[134] = t23;
|
|
434
|
+
$[135] = t24;
|
|
435
|
+
$[136] = t25;
|
|
436
|
+
} else t25 = $[136];
|
|
432
437
|
let t26;
|
|
433
|
-
if ($[
|
|
438
|
+
if ($[137] !== as || $[138] !== error || $[139] !== t16 || $[140] !== t25) {
|
|
434
439
|
t26 = /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
435
440
|
as,
|
|
436
441
|
error,
|
|
437
442
|
triggerTabIndex: t16,
|
|
438
443
|
children: t25
|
|
439
444
|
});
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
} else t26 = $[
|
|
445
|
+
$[137] = as;
|
|
446
|
+
$[138] = error;
|
|
447
|
+
$[139] = t16;
|
|
448
|
+
$[140] = t25;
|
|
449
|
+
$[141] = t26;
|
|
450
|
+
} else t26 = $[141];
|
|
446
451
|
return t26;
|
|
447
452
|
};
|
|
448
453
|
var TimePickerInner = (t0) => {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ArrowDropUpIcon } from "../../../../assets/icons/ArrowDropUp.js";
|
|
3
|
-
import { ChevronLeftIcon } from "../../../../assets/icons/ChevronLeft.js";
|
|
4
|
-
import { ChevronRightIcon } from "../../../../assets/icons/ChevronRight.js";
|
|
1
|
+
import { ReactIconsSpriteIcon } from "../../../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
|
|
5
2
|
import { PillButton } from "../../../buttons/PillButton/PillButton.js";
|
|
6
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
4
|
import { clsx } from "clsx";
|
|
8
5
|
import { Button, ToggleButtonGroup } from "react-aria-components";
|
|
6
|
+
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
9
7
|
import { CalendarDateTime, Time } from "@internationalized/date";
|
|
10
8
|
import { useDateFormatter } from "@react-aria/i18n";
|
|
11
9
|
//#region src/components/inputs/DateTime/shared/CalendarHeader.tsx
|
|
@@ -43,7 +41,10 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
|
|
|
43
41
|
...prevButtonProps,
|
|
44
42
|
isDisabled: !!toggleState,
|
|
45
43
|
className: clsx("shrink-0 focus-visible:outline-interactive-contained-secondary-focus", !!toggleState && "opacity-0"),
|
|
46
|
-
children: /* @__PURE__ */ jsx(
|
|
44
|
+
children: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
45
|
+
iconId: "ri-lucide-react-ChevronLeft",
|
|
46
|
+
className: "size-6 text-interactive-text-secondary-idle"
|
|
47
|
+
})
|
|
47
48
|
})
|
|
48
49
|
}),
|
|
49
50
|
/* @__PURE__ */ jsxs(ToggleButtonGroup, {
|
|
@@ -53,7 +54,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
|
|
|
53
54
|
color: "secondary",
|
|
54
55
|
variant: "subtle",
|
|
55
56
|
iconPosition: "right",
|
|
56
|
-
icon: toggleState === "month" ?
|
|
57
|
+
icon: toggleState === "month" ? ChevronUp : ChevronDown,
|
|
57
58
|
toggle: true,
|
|
58
59
|
isSelected: toggleState === "month",
|
|
59
60
|
onChange: (isSelected) => {
|
|
@@ -73,7 +74,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
|
|
|
73
74
|
color: "secondary",
|
|
74
75
|
variant: "subtle",
|
|
75
76
|
iconPosition: "right",
|
|
76
|
-
icon: toggleState === "year" ?
|
|
77
|
+
icon: toggleState === "year" ? ChevronUp : ChevronDown,
|
|
77
78
|
toggle: true,
|
|
78
79
|
isSelected: toggleState === "year",
|
|
79
80
|
onChange: (isSelected_0) => {
|
|
@@ -97,7 +98,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
|
|
|
97
98
|
color: "secondary",
|
|
98
99
|
variant: "subtle",
|
|
99
100
|
iconPosition: "right",
|
|
100
|
-
icon: toggleState === "time" ?
|
|
101
|
+
icon: toggleState === "time" ? ChevronUp : ChevronDown,
|
|
101
102
|
toggle: true,
|
|
102
103
|
isSelected: toggleState === "time",
|
|
103
104
|
onChange: (isSelected_1) => setToggleState(isSelected_1 ? "time" : null),
|
|
@@ -111,7 +112,10 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
|
|
|
111
112
|
...nextButtonProps,
|
|
112
113
|
isDisabled: !!toggleState,
|
|
113
114
|
className: clsx("shrink-0 focus-visible:outline-interactive-contained-secondary-focus", !!toggleState && "opacity-0"),
|
|
114
|
-
children: /* @__PURE__ */ jsx(
|
|
115
|
+
children: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
116
|
+
iconId: "ri-lucide-react-ChevronRight",
|
|
117
|
+
className: "size-6 text-interactive-text-secondary-idle"
|
|
118
|
+
})
|
|
115
119
|
})
|
|
116
120
|
})
|
|
117
121
|
]
|