@povio/ui 2.3.1 → 2.3.2-rc.1
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/assets/icons/AlignCenter.js +26 -11
- package/dist/assets/icons/AlignLeft.js +26 -11
- package/dist/assets/icons/AlignLeftRight.js +26 -11
- package/dist/assets/icons/AlignRight.js +26 -11
- package/dist/assets/icons/ArrowDropDown.js +26 -11
- package/dist/assets/icons/ArrowDropUp.js +26 -11
- package/dist/assets/icons/ArrowLeft.js +26 -11
- package/dist/assets/icons/ArrowRight.js +26 -11
- package/dist/assets/icons/Bold.js +26 -11
- package/dist/assets/icons/BulletedList.js +26 -11
- package/dist/assets/icons/Calendar.js +28 -13
- package/dist/assets/icons/Check.js +28 -13
- package/dist/assets/icons/CheckCircle.js +26 -11
- package/dist/assets/icons/CheckboxCheckmark.js +29 -14
- package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
- package/dist/assets/icons/ChevronDown.js +28 -13
- package/dist/assets/icons/ChevronLeft.js +28 -13
- package/dist/assets/icons/ChevronRight.js +28 -13
- package/dist/assets/icons/ChevronUp.js +28 -13
- package/dist/assets/icons/ChevronsLeft.js +28 -13
- package/dist/assets/icons/ChevronsRight.js +28 -13
- package/dist/assets/icons/Clock.js +26 -11
- package/dist/assets/icons/Close.js +26 -11
- package/dist/assets/icons/DateTime.js +35 -14
- package/dist/assets/icons/DragIndicator.js +26 -11
- package/dist/assets/icons/File.js +28 -13
- package/dist/assets/icons/Highlight.js +26 -11
- package/dist/assets/icons/HighlightOn.js +49 -15
- package/dist/assets/icons/Home.js +26 -11
- package/dist/assets/icons/Info.js +37 -16
- package/dist/assets/icons/Italic.js +26 -11
- package/dist/assets/icons/Link.js +26 -11
- package/dist/assets/icons/Menu.js +26 -11
- package/dist/assets/icons/NumberedList.js +26 -11
- package/dist/assets/icons/PointerHorizontal.js +26 -11
- package/dist/assets/icons/PointerVertical.js +26 -11
- package/dist/assets/icons/Search.js +26 -11
- package/dist/assets/icons/Send.js +28 -13
- package/dist/assets/icons/Strikethrough.js +26 -11
- package/dist/assets/icons/TextColor.js +48 -14
- package/dist/assets/icons/Today.js +26 -11
- package/dist/assets/icons/Underlined.js +28 -13
- package/dist/assets/icons/Upload.js +35 -14
- package/dist/assets/icons/Visibility.js +26 -11
- package/dist/assets/icons/VisibilityOff.js +26 -11
- package/dist/assets/icons/WarningFilled.js +28 -13
- package/dist/components/Breadcrumbs/Breadcrumbs.js +207 -56
- package/dist/components/Menu/Menu.js +18 -2
- package/dist/components/Menu/MenuDesktop.js +41 -7
- package/dist/components/Menu/MenuItem.js +32 -9
- package/dist/components/Menu/MenuMobile.js +97 -38
- package/dist/components/Menu/MenuPopover.js +105 -29
- package/dist/components/buttons/IconButton/IconButton.js +40 -8
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +2 -1
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
- package/dist/components/buttons/PillButton/PillButton.js +55 -17
- package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
- package/dist/components/buttons/TextButton/TextButton.js +30 -8
- package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
- package/dist/components/buttons/shared/ButtonContent.js +80 -22
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/inputs/Checkbox/Checkbox.js +201 -35
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +3 -0
- package/dist/components/inputs/Checkbox/checkbox.cva.js +4 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +11 -5
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +364 -76
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +11 -5
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +452 -167
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +269 -57
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +6 -3
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +605 -130
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
- package/dist/components/inputs/DateTime/shared/Calendar.js +332 -119
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +3 -2
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +301 -102
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +3 -2
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +146 -33
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +249 -93
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
- package/dist/components/inputs/DateTime/shared/DateField.js +311 -112
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +12 -3
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +382 -139
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +15 -0
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +96 -11
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +81 -27
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
- package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +4 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +210 -65
- package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +4 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +7 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +13 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +14 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +117 -0
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +2 -0
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +1 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +39 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +85 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
- package/dist/components/inputs/File/FileUpload.js +87 -44
- package/dist/components/inputs/File/FileUploadContainer.js +15 -7
- package/dist/components/inputs/File/InputUpload.js +317 -79
- package/dist/components/inputs/File/shared/FileCard.js +104 -41
- package/dist/components/inputs/File/shared/FileCardList.js +47 -12
- package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
- package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
- package/dist/components/inputs/File/shared/InputUploadContent.js +148 -34
- package/dist/components/inputs/File/shared/InputUploadFilled.js +50 -9
- package/dist/components/inputs/File/shared/ProgressBar.js +48 -9
- package/dist/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/FormField/FormField.js +119 -37
- package/dist/components/inputs/FormField/FormFieldError.js +25 -5
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldHeader.js +81 -22
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
- package/dist/components/inputs/FormField/FormFieldHelper.js +26 -6
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldLabel.js +40 -9
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +6 -0
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +11 -0
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +447 -97
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +45 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +571 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +35 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +575 -0
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +4 -0
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +5 -0
- package/dist/components/inputs/Input/TextArea/TextArea.js +305 -90
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +3 -1
- package/dist/components/inputs/Input/TextInput/TextInput.js +419 -90
- package/dist/components/inputs/Input/shared/InputContent.js +192 -59
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +1 -0
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +7 -0
- package/dist/components/inputs/Inputs/Form.js +40 -11
- package/dist/components/inputs/Inputs/InputItem.d.ts +15 -21
- package/dist/components/inputs/Inputs/InputItem.js +69 -14
- package/dist/components/inputs/Inputs/Inputs.js +37 -11
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +353 -60
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +17 -0
- package/dist/components/inputs/RadioGroup/radio.cva.js +42 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +213 -22
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +34 -8
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +36 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.js +104 -0
- package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
- package/dist/components/inputs/Selection/Select/Select.js +224 -18
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +8 -1
- package/dist/components/inputs/Selection/shared/SelectBase.js +69 -18
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +393 -138
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +330 -116
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBox.js +164 -52
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +85 -35
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +69 -16
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +70 -21
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +12 -5
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +7 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +24 -0
- package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/select.context.js +67 -36
- package/dist/components/inputs/Selection/shared/select.types.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +3 -0
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +5 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +5 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +5 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +37 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +80 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +528 -0
- package/dist/components/inputs/Slider/Slider.d.ts +2 -1
- package/dist/components/inputs/Slider/Slider.js +265 -75
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
- package/dist/components/inputs/TextEditor/TextEditor.js +447 -98
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +102 -30
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
- package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
- package/dist/components/inputs/Toggle/Toggle.js +214 -37
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +3 -0
- package/dist/components/inputs/Toggle/toggle.cva.js +4 -2
- package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
- package/dist/components/inputs/shared/CheckContent.js +21 -11
- package/dist/components/inputs/shared/InputClear.d.ts +2 -1
- package/dist/components/inputs/shared/InputClear.js +88 -12
- package/dist/components/inputs/shared/StaticInput.d.ts +38 -0
- package/dist/components/inputs/shared/TooltipWrapper.js +50 -11
- package/dist/components/inputs/shared/input.cva.d.ts +10 -0
- package/dist/components/inputs/shared/input.cva.js +54 -14
- package/dist/components/inputs/shared/label.cva.js +2 -2
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +4 -0
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +5 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +14 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.js +100 -0
- package/dist/components/navigation/Accordion/Accordion.js +69 -22
- package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
- package/dist/components/navigation/Stepper/Stepper.js +67 -22
- package/dist/components/navigation/Stepper/StepperItem.js +104 -31
- package/dist/components/navigation/Stepper/StepperSeparator.js +23 -5
- package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
- package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
- package/dist/components/overlays/Drawer/Drawer.js +62 -20
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +83 -27
- package/dist/components/overlays/Tooltip/Tooltip.js +137 -28
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
- package/dist/components/segment/Segment.js +218 -57
- package/dist/components/segment/SegmentItem.js +67 -10
- package/dist/components/shared/pagination/Pagination.js +108 -22
- package/dist/components/shared/pagination/PaginationList.js +167 -64
- package/dist/components/status/Alert/Alert.js +97 -30
- package/dist/components/status/Loader/Loader.js +77 -22
- package/dist/components/status/Toast/Toast.js +21 -13
- package/dist/components/status/Toast/useToast.js +62 -57
- package/dist/components/table/ColumnConfig.js +158 -54
- package/dist/components/table/InfiniteTable.js +67 -16
- package/dist/components/table/PaginatedTable.js +84 -18
- package/dist/components/table/Table.js +28 -27
- package/dist/components/text/Link/Link.js +19 -7
- package/dist/components/text/Typography/Typography.js +23 -8
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +23 -9
- package/dist/config/router.context.js +42 -16
- package/dist/config/theme.context.js +98 -45
- package/dist/config/uiConfig.context.d.ts +19 -7
- package/dist/config/uiConfig.context.js +66 -14
- package/dist/config/uiStyle.context.d.ts +27 -4
- package/dist/config/uiStyle.context.js +15 -5
- package/dist/helpers/dynamicInputs.d.ts +5 -5
- package/dist/helpers/dynamicInputs.js +3 -0
- package/dist/hooks/useBreakpoint.js +16 -3
- package/dist/hooks/useDebounceCallback.js +51 -17
- package/dist/hooks/useFilters.js +125 -64
- package/dist/hooks/useForm.js +42 -8
- package/dist/hooks/useFormAutosave.js +101 -30
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useIntersectionObserver.js +91 -24
- package/dist/hooks/useLocalStorage.js +43 -10
- package/dist/hooks/useLongPressRepeat.js +55 -20
- package/dist/hooks/usePagination.js +49 -19
- package/dist/hooks/useQueryAutocomplete.d.ts +14 -0
- package/dist/hooks/useQueryAutocomplete.js +57 -0
- package/dist/hooks/useScrollableListBox.js +37 -16
- package/dist/hooks/useSorting.js +69 -28
- package/dist/hooks/useStateAndRef.js +21 -7
- package/dist/hooks/useTableColumnConfig.js +124 -31
- package/dist/hooks/useTranslationMemo.js +25 -5
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -2
- package/dist/tw-ui-plugin.js +8 -1
- package/dist/utils/date-time.utils.d.ts +38 -10
- package/dist/utils/date-time.utils.js +134 -22
- package/dist/utils/query.utils.d.ts +4 -0
- package/dist/utils/query.utils.js +8 -0
- package/package.json +1 -1
|
@@ -1,167 +1,410 @@
|
|
|
1
|
-
import { CalendarIcon } from "../../../../assets/icons/Calendar.js";
|
|
2
|
-
import { DateTimeIcon } from "../../../../assets/icons/DateTime.js";
|
|
3
1
|
import { UIStyle } from "../../../../config/uiStyle.context.js";
|
|
4
2
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
5
|
-
import {
|
|
3
|
+
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
6
4
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
7
|
-
import {
|
|
5
|
+
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
8
6
|
import { DateField } from "./DateField.js";
|
|
7
|
+
import { datePickerInputContentRow } from "./datePickerInput.cva.js";
|
|
8
|
+
import { renderDatePickerTodayIcon } from "./datePickerTodayIcon.js";
|
|
9
9
|
import { FormFieldLabel } from "../../FormField/FormFieldLabel.js";
|
|
10
10
|
import { InputClear } from "../../shared/InputClear.js";
|
|
11
11
|
import { inputBase, inputSize } from "../../shared/input.cva.js";
|
|
12
|
+
import { c } from "react/compiler-runtime";
|
|
12
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
14
|
import { clsx } from "clsx";
|
|
14
|
-
import {
|
|
15
|
+
import { useImperativeHandle, useRef, useState } from "react";
|
|
15
16
|
import { Button } from "react-aria-components";
|
|
16
17
|
import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
|
|
17
|
-
import {
|
|
18
|
+
import { today } from "@internationalized/date";
|
|
18
19
|
//#region src/components/inputs/DateTime/shared/DatePickerInput.tsx
|
|
19
|
-
var DatePickerInput = (
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
var DatePickerInput = (t0) => {
|
|
21
|
+
const $ = c(107);
|
|
22
|
+
const { ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, todayIconButtonSize: t1, todayIconPlacement: t2, isDirty, isRequired, disableManualEntry, autoFixYear: t3, placeholder, className, onOpenDropdown, dateGranularity: t4, timeZone, isTimeOptional: t5, format, fireBlurOnChange, onClear: onClearProp, ...props } = t0;
|
|
23
|
+
const todayIconButtonSize = t1 === void 0 ? "none" : t1;
|
|
24
|
+
const todayIconPlacement = t2 === void 0 ? "content" : t2;
|
|
25
|
+
const autoFixYear = t3 === void 0 ? false : t3;
|
|
26
|
+
const dateGranularity = t4 === void 0 ? "day" : t4;
|
|
27
|
+
const isTimeOptional = t5 === void 0 ? false : t5;
|
|
28
|
+
const uiConfig = UIConfig.useConfig();
|
|
29
|
+
const effectiveTimeZone = timeZone ?? "UTC";
|
|
22
30
|
const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
|
|
23
31
|
const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
|
|
32
|
+
const datePickerInputContentRowCva = UIStyle.useCva("datePickerInput.contentRowCva", datePickerInputContentRow);
|
|
24
33
|
const [canClear, setCanClear] = useState(false);
|
|
25
|
-
|
|
34
|
+
let t6;
|
|
35
|
+
if ($[0] !== isDisabled) {
|
|
36
|
+
t6 = { isDisabled };
|
|
37
|
+
$[0] = isDisabled;
|
|
38
|
+
$[1] = t6;
|
|
39
|
+
} else t6 = $[1];
|
|
40
|
+
const { hoverProps, isHovered } = useHover(t6);
|
|
26
41
|
const [isFocused, setIsFocused] = useState(false);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
let t7;
|
|
43
|
+
if ($[2] !== autoFixYear) {
|
|
44
|
+
t7 = { onFocusWithinChange: (isFocusWithin) => {
|
|
45
|
+
setIsFocused(isFocusWithin);
|
|
46
|
+
if (!isFocusWithin && autoFixYear) {
|
|
47
|
+
dateFieldRef.current?.autoFixYear();
|
|
48
|
+
endDateFieldRef.current?.autoFixYear();
|
|
49
|
+
}
|
|
50
|
+
} };
|
|
51
|
+
$[2] = autoFixYear;
|
|
52
|
+
$[3] = t7;
|
|
53
|
+
} else t7 = $[3];
|
|
54
|
+
const { focusWithinProps } = useFocusWithin(t7);
|
|
34
55
|
const { isFocusVisible } = useFocusVisible();
|
|
35
56
|
const dateFieldRef = useRef(null);
|
|
36
57
|
const endDateFieldRef = useRef(null);
|
|
37
58
|
const containerRef = useRef(null);
|
|
38
|
-
|
|
39
|
-
|
|
59
|
+
const t8 = isValueControlled ? fieldValue ?? null : fieldProps.value ?? null;
|
|
60
|
+
let t9;
|
|
61
|
+
if ($[4] !== fieldProps || $[5] !== t8) {
|
|
62
|
+
t9 = {
|
|
63
|
+
...fieldProps,
|
|
64
|
+
value: t8
|
|
65
|
+
};
|
|
66
|
+
$[4] = fieldProps;
|
|
67
|
+
$[5] = t8;
|
|
68
|
+
$[6] = t9;
|
|
69
|
+
} else t9 = $[6];
|
|
70
|
+
const normalizedFieldProps = t9;
|
|
71
|
+
let t10;
|
|
72
|
+
if ($[7] !== endFieldProps || $[8] !== endFieldValue || $[9] !== isValueControlled) {
|
|
73
|
+
t10 = endFieldProps ? {
|
|
74
|
+
...endFieldProps,
|
|
75
|
+
value: isValueControlled ? endFieldValue ?? null : endFieldProps.value ?? null
|
|
76
|
+
} : void 0;
|
|
77
|
+
$[7] = endFieldProps;
|
|
78
|
+
$[8] = endFieldValue;
|
|
79
|
+
$[9] = isValueControlled;
|
|
80
|
+
$[10] = t10;
|
|
81
|
+
} else t10 = $[10];
|
|
82
|
+
const normalizedEndFieldProps = t10;
|
|
83
|
+
let t11;
|
|
84
|
+
if ($[11] !== endFieldProps || $[12] !== fieldProps || $[13] !== fireBlurOnChange || $[14] !== onClearProp) {
|
|
85
|
+
t11 = () => {
|
|
40
86
|
dateFieldRef.current?.clearField();
|
|
41
|
-
fieldProps.onChange?.(null);
|
|
42
87
|
endDateFieldRef.current?.clearField();
|
|
43
|
-
if (
|
|
88
|
+
if (onClearProp) onClearProp();
|
|
89
|
+
else {
|
|
90
|
+
fieldProps.onChange?.(null);
|
|
91
|
+
endFieldProps?.onChange?.(null);
|
|
92
|
+
if (fireBlurOnChange) {
|
|
93
|
+
fieldProps.onBlur?.(null);
|
|
94
|
+
endFieldProps?.onBlur?.(null);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
44
97
|
setCanClear(false);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
98
|
+
};
|
|
99
|
+
$[11] = endFieldProps;
|
|
100
|
+
$[12] = fieldProps;
|
|
101
|
+
$[13] = fireBlurOnChange;
|
|
102
|
+
$[14] = onClearProp;
|
|
103
|
+
$[15] = t11;
|
|
104
|
+
} else t11 = $[15];
|
|
105
|
+
const clearInput = t11;
|
|
106
|
+
let t12;
|
|
107
|
+
let t13;
|
|
108
|
+
if ($[16] !== clearInput) {
|
|
109
|
+
t12 = () => ({
|
|
110
|
+
clear: clearInput,
|
|
111
|
+
getContainer: () => containerRef.current
|
|
112
|
+
});
|
|
113
|
+
t13 = [clearInput];
|
|
114
|
+
$[16] = clearInput;
|
|
115
|
+
$[17] = t12;
|
|
116
|
+
$[18] = t13;
|
|
117
|
+
} else {
|
|
118
|
+
t12 = $[17];
|
|
119
|
+
t13 = $[18];
|
|
120
|
+
}
|
|
121
|
+
useImperativeHandle(ref, t12, t13);
|
|
122
|
+
let t14;
|
|
123
|
+
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
124
|
+
t14 = (canClearInput) => {
|
|
125
|
+
setCanClear(canClearInput);
|
|
126
|
+
};
|
|
127
|
+
$[19] = t14;
|
|
128
|
+
} else t14 = $[19];
|
|
129
|
+
const onClearChange = t14;
|
|
130
|
+
const showClear = canClear || hasValue || normalizedFieldProps.value != null || normalizedEndFieldProps?.value != null;
|
|
131
|
+
const isTodayIconDisabled = isDisabled || buttonProps.isDisabled;
|
|
132
|
+
let t15;
|
|
133
|
+
if ($[20] !== effectiveTimeZone || $[21] !== endFieldProps || $[22] !== fieldProps || $[23] !== fireBlurOnChange || $[24] !== isDateTime || $[25] !== isTodayIconDisabled) {
|
|
134
|
+
t15 = () => {
|
|
135
|
+
if (isTodayIconDisabled) return;
|
|
136
|
+
if (isDateTime) {
|
|
137
|
+
const calendarDateTime = DateTimeUtils.getCurrentWallClockCalendarDateTime();
|
|
138
|
+
fieldProps.onChange?.(calendarDateTime);
|
|
139
|
+
if (endFieldProps) endFieldProps.onChange?.(calendarDateTime);
|
|
140
|
+
} else {
|
|
141
|
+
fieldProps.onChange?.(today(effectiveTimeZone));
|
|
142
|
+
if (endFieldProps) endFieldProps.onChange?.(today(effectiveTimeZone));
|
|
143
|
+
}
|
|
144
|
+
if (fireBlurOnChange) {
|
|
145
|
+
fieldProps.onBlur?.(null);
|
|
146
|
+
endFieldProps?.onBlur?.(null);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
$[20] = effectiveTimeZone;
|
|
150
|
+
$[21] = endFieldProps;
|
|
151
|
+
$[22] = fieldProps;
|
|
152
|
+
$[23] = fireBlurOnChange;
|
|
153
|
+
$[24] = isDateTime;
|
|
154
|
+
$[25] = isTodayIconDisabled;
|
|
155
|
+
$[26] = t15;
|
|
156
|
+
} else t15 = $[26];
|
|
157
|
+
const onToday = t15;
|
|
68
158
|
const hidePlaceholder = as === "floating" && !fieldProps.value && !isFocused;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
159
|
+
let t16;
|
|
160
|
+
if ($[27] !== isTodayIconDisabled || $[28] !== onToday || $[29] !== todayIcon || $[30] !== todayIconButtonSize) {
|
|
161
|
+
t16 = renderDatePickerTodayIcon(todayIcon, {
|
|
162
|
+
isDisabled: isTodayIconDisabled,
|
|
163
|
+
onPress: onToday,
|
|
164
|
+
size: todayIconButtonSize
|
|
165
|
+
});
|
|
166
|
+
$[27] = isTodayIconDisabled;
|
|
167
|
+
$[28] = onToday;
|
|
168
|
+
$[29] = todayIcon;
|
|
169
|
+
$[30] = todayIconButtonSize;
|
|
170
|
+
$[31] = t16;
|
|
171
|
+
} else t16 = $[31];
|
|
172
|
+
const todayIconButton = t16;
|
|
173
|
+
const shouldRenderTodayIconWithFieldLabel = todayIconPlacement === "fieldLabel";
|
|
174
|
+
const pickerIcon = isDateTime ? uiConfig.dateInput.dateTimeIcon : uiConfig.dateInput.calendarIcon;
|
|
175
|
+
const t17 = clsx("group group/date-picker-content relative flex min-w-input-width-min-width items-center justify-between gap-2", groupProps.className, inputBaseCva({
|
|
176
|
+
variant,
|
|
177
|
+
as,
|
|
178
|
+
...props
|
|
179
|
+
}), className);
|
|
180
|
+
const t18 = isHovered || void 0;
|
|
181
|
+
const t19 = isDisabled || void 0;
|
|
182
|
+
const t20 = isDisabled || void 0;
|
|
183
|
+
const t21 = isInvalid || void 0;
|
|
184
|
+
const t22 = normalizedFieldProps.value == null || void 0;
|
|
185
|
+
const t23 = isFocused || void 0;
|
|
186
|
+
const t24 = isFocused && isFocusVisible || void 0;
|
|
187
|
+
const t25 = normalizedFieldProps.value != null || void 0;
|
|
188
|
+
const t26 = isDirty || void 0;
|
|
189
|
+
const t27 = isRequired || void 0;
|
|
190
|
+
const t28 = normalizedFieldProps.value != null || void 0;
|
|
191
|
+
let t29;
|
|
192
|
+
if ($[32] !== as || $[33] !== inputSizeCva || $[34] !== size) {
|
|
193
|
+
t29 = clsx("flex w-full items-center gap-input-gap-input-text-to-elements pr-0!", inputSizeCva({
|
|
194
|
+
size,
|
|
195
|
+
as
|
|
196
|
+
}));
|
|
197
|
+
$[32] = as;
|
|
198
|
+
$[33] = inputSizeCva;
|
|
199
|
+
$[34] = size;
|
|
200
|
+
$[35] = t29;
|
|
201
|
+
} else t29 = $[35];
|
|
202
|
+
let t30;
|
|
203
|
+
if ($[36] !== as || $[37] !== headerProps) {
|
|
204
|
+
t30 = as && ["filter", "floating"].includes(as) && headerProps && /* @__PURE__ */ jsx(FormFieldLabel, {
|
|
73
205
|
as,
|
|
74
|
-
...
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
206
|
+
...headerProps
|
|
207
|
+
});
|
|
208
|
+
$[36] = as;
|
|
209
|
+
$[37] = headerProps;
|
|
210
|
+
$[38] = t30;
|
|
211
|
+
} else t30 = $[38];
|
|
212
|
+
const t31 = shouldRenderTodayIconWithFieldLabel && todayIconButton;
|
|
213
|
+
let t32;
|
|
214
|
+
if ($[39] !== datePickerInputContentRowCva || $[40] !== size) {
|
|
215
|
+
t32 = datePickerInputContentRowCva({ size });
|
|
216
|
+
$[39] = datePickerInputContentRowCva;
|
|
217
|
+
$[40] = size;
|
|
218
|
+
$[41] = t32;
|
|
219
|
+
} else t32 = $[41];
|
|
220
|
+
let t33;
|
|
221
|
+
if ($[42] !== disableManualEntry || $[43] !== isDisabled || $[44] !== onOpenDropdown) {
|
|
222
|
+
t33 = disableManualEntry && /* @__PURE__ */ jsx(Button, {
|
|
223
|
+
onPress: onOpenDropdown,
|
|
224
|
+
className: "absolute inset-0 z-0",
|
|
225
|
+
isDisabled
|
|
226
|
+
});
|
|
227
|
+
$[42] = disableManualEntry;
|
|
228
|
+
$[43] = isDisabled;
|
|
229
|
+
$[44] = onOpenDropdown;
|
|
230
|
+
$[45] = t33;
|
|
231
|
+
} else t33 = $[45];
|
|
232
|
+
const t34 = !shouldRenderTodayIconWithFieldLabel && todayIconButton;
|
|
233
|
+
let t35;
|
|
234
|
+
if ($[46] !== as || $[47] !== dateGranularity || $[48] !== disableManualEntry || $[49] !== effectiveTimeZone || $[50] !== fieldProps || $[51] !== format || $[52] !== hidePlaceholder || $[53] !== isDisabled || $[54] !== isInvalid || $[55] !== isTimeOptional || $[56] !== normalizedEndFieldProps || $[57] !== normalizedFieldProps || $[58] !== onClearChange || $[59] !== placeholder) {
|
|
235
|
+
t35 = disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
|
|
236
|
+
size: "label-1",
|
|
237
|
+
className: "text-text-default-3",
|
|
238
|
+
children: placeholder
|
|
239
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(DateField, {
|
|
240
|
+
ref: dateFieldRef,
|
|
241
|
+
...normalizedFieldProps,
|
|
242
|
+
isDisabled,
|
|
243
|
+
isInvalid,
|
|
244
|
+
onClearChange,
|
|
245
|
+
hidePlaceholder,
|
|
246
|
+
disableManualEntry,
|
|
247
|
+
dateGranularity,
|
|
248
|
+
isTimeOptional,
|
|
249
|
+
format,
|
|
250
|
+
timeZone: effectiveTimeZone
|
|
251
|
+
}), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
|
|
252
|
+
className: clsx("pointer-events-none select-none", isDisabled && "text-interactive-text-secondary-disabled"),
|
|
253
|
+
children: "–"
|
|
254
|
+
}), /* @__PURE__ */ jsx(DateField, {
|
|
255
|
+
ref: endDateFieldRef,
|
|
256
|
+
...normalizedEndFieldProps,
|
|
257
|
+
isDisabled,
|
|
258
|
+
isInvalid,
|
|
259
|
+
onClearChange,
|
|
260
|
+
hidePlaceholder,
|
|
261
|
+
disableManualEntry,
|
|
262
|
+
isTimeOptional,
|
|
263
|
+
format,
|
|
264
|
+
timeZone: effectiveTimeZone
|
|
265
|
+
})] })] });
|
|
266
|
+
$[46] = as;
|
|
267
|
+
$[47] = dateGranularity;
|
|
268
|
+
$[48] = disableManualEntry;
|
|
269
|
+
$[49] = effectiveTimeZone;
|
|
270
|
+
$[50] = fieldProps;
|
|
271
|
+
$[51] = format;
|
|
272
|
+
$[52] = hidePlaceholder;
|
|
273
|
+
$[53] = isDisabled;
|
|
274
|
+
$[54] = isInvalid;
|
|
275
|
+
$[55] = isTimeOptional;
|
|
276
|
+
$[56] = normalizedEndFieldProps;
|
|
277
|
+
$[57] = normalizedFieldProps;
|
|
278
|
+
$[58] = onClearChange;
|
|
279
|
+
$[59] = placeholder;
|
|
280
|
+
$[60] = t35;
|
|
281
|
+
} else t35 = $[60];
|
|
282
|
+
let t36;
|
|
283
|
+
if ($[61] !== t32 || $[62] !== t33 || $[63] !== t34 || $[64] !== t35) {
|
|
284
|
+
t36 = /* @__PURE__ */ jsxs("div", {
|
|
285
|
+
className: t32,
|
|
286
|
+
children: [
|
|
287
|
+
t33,
|
|
288
|
+
t34,
|
|
289
|
+
t35
|
|
290
|
+
]
|
|
291
|
+
});
|
|
292
|
+
$[61] = t32;
|
|
293
|
+
$[62] = t33;
|
|
294
|
+
$[63] = t34;
|
|
295
|
+
$[64] = t35;
|
|
296
|
+
$[65] = t36;
|
|
297
|
+
} else t36 = $[65];
|
|
298
|
+
let t37;
|
|
299
|
+
if ($[66] !== t29 || $[67] !== t30 || $[68] !== t31 || $[69] !== t36) {
|
|
300
|
+
t37 = /* @__PURE__ */ jsxs("div", {
|
|
301
|
+
className: t29,
|
|
302
|
+
children: [
|
|
303
|
+
t30,
|
|
304
|
+
t31,
|
|
305
|
+
t36
|
|
306
|
+
]
|
|
307
|
+
});
|
|
308
|
+
$[66] = t29;
|
|
309
|
+
$[67] = t30;
|
|
310
|
+
$[68] = t31;
|
|
311
|
+
$[69] = t36;
|
|
312
|
+
$[70] = t37;
|
|
313
|
+
} else t37 = $[70];
|
|
314
|
+
let t38;
|
|
315
|
+
if ($[71] !== as || $[72] !== inputSizeCva || $[73] !== size) {
|
|
316
|
+
t38 = clsx(inputSizeCva({
|
|
317
|
+
size,
|
|
318
|
+
as
|
|
319
|
+
}), "flex items-center gap-input-gap-trailing-elements py-0! pl-0!");
|
|
320
|
+
$[71] = as;
|
|
321
|
+
$[72] = inputSizeCva;
|
|
322
|
+
$[73] = size;
|
|
323
|
+
$[74] = t38;
|
|
324
|
+
} else t38 = $[74];
|
|
325
|
+
let t39;
|
|
326
|
+
if ($[75] !== clearInput || $[76] !== isClearable || $[77] !== showClear) {
|
|
327
|
+
t39 = isClearable && /* @__PURE__ */ jsx(InputClear, {
|
|
328
|
+
onClear: clearInput,
|
|
329
|
+
show: showClear,
|
|
330
|
+
style: showClear ? { visibility: "visible" } : void 0
|
|
331
|
+
});
|
|
332
|
+
$[75] = clearInput;
|
|
333
|
+
$[76] = isClearable;
|
|
334
|
+
$[77] = showClear;
|
|
335
|
+
$[78] = t39;
|
|
336
|
+
} else t39 = $[78];
|
|
337
|
+
let t40;
|
|
338
|
+
if ($[79] !== buttonProps || $[80] !== disableDropdown || $[81] !== disableManualEntry || $[82] !== isDisabled || $[83] !== pickerIcon) {
|
|
339
|
+
t40 = (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(InlineIconButton, {
|
|
340
|
+
label: "",
|
|
341
|
+
color: "secondary",
|
|
342
|
+
...buttonProps,
|
|
343
|
+
icon: pickerIcon,
|
|
344
|
+
isDisabled,
|
|
345
|
+
className: "border-0!"
|
|
346
|
+
});
|
|
347
|
+
$[79] = buttonProps;
|
|
348
|
+
$[80] = disableDropdown;
|
|
349
|
+
$[81] = disableManualEntry;
|
|
350
|
+
$[82] = isDisabled;
|
|
351
|
+
$[83] = pickerIcon;
|
|
352
|
+
$[84] = t40;
|
|
353
|
+
} else t40 = $[84];
|
|
354
|
+
let t41;
|
|
355
|
+
if ($[85] !== t38 || $[86] !== t39 || $[87] !== t40) {
|
|
356
|
+
t41 = /* @__PURE__ */ jsxs("div", {
|
|
357
|
+
className: t38,
|
|
358
|
+
children: [t39, t40]
|
|
359
|
+
});
|
|
360
|
+
$[85] = t38;
|
|
361
|
+
$[86] = t39;
|
|
362
|
+
$[87] = t40;
|
|
363
|
+
$[88] = t41;
|
|
364
|
+
} else t41 = $[88];
|
|
365
|
+
let t42;
|
|
366
|
+
if ($[89] !== focusWithinProps || $[90] !== groupProps || $[91] !== hoverProps || $[92] !== t17 || $[93] !== t18 || $[94] !== t19 || $[95] !== t20 || $[96] !== t21 || $[97] !== t22 || $[98] !== t23 || $[99] !== t24 || $[100] !== t25 || $[101] !== t26 || $[102] !== t27 || $[103] !== t28 || $[104] !== t37 || $[105] !== t41) {
|
|
367
|
+
t42 = /* @__PURE__ */ jsxs("div", {
|
|
368
|
+
ref: containerRef,
|
|
369
|
+
...groupProps,
|
|
370
|
+
...focusWithinProps,
|
|
371
|
+
...hoverProps,
|
|
372
|
+
className: t17,
|
|
373
|
+
"data-rac": "",
|
|
374
|
+
"data-datetime-input": "",
|
|
375
|
+
"data-hovered": t18,
|
|
376
|
+
"data-disabled": t19,
|
|
377
|
+
"data-is-disabled": t20,
|
|
378
|
+
"data-invalid": t21,
|
|
379
|
+
"data-is-empty": t22,
|
|
380
|
+
"data-focus-within": t23,
|
|
381
|
+
"data-focus-visible": t24,
|
|
382
|
+
"data-has-selection": t25,
|
|
383
|
+
"data-is-dirty": t26,
|
|
384
|
+
"data-is-required": t27,
|
|
385
|
+
"data-is-filled": t28,
|
|
386
|
+
children: [t37, t41]
|
|
387
|
+
});
|
|
388
|
+
$[89] = focusWithinProps;
|
|
389
|
+
$[90] = groupProps;
|
|
390
|
+
$[91] = hoverProps;
|
|
391
|
+
$[92] = t17;
|
|
392
|
+
$[93] = t18;
|
|
393
|
+
$[94] = t19;
|
|
394
|
+
$[95] = t20;
|
|
395
|
+
$[96] = t21;
|
|
396
|
+
$[97] = t22;
|
|
397
|
+
$[98] = t23;
|
|
398
|
+
$[99] = t24;
|
|
399
|
+
$[100] = t25;
|
|
400
|
+
$[101] = t26;
|
|
401
|
+
$[102] = t27;
|
|
402
|
+
$[103] = t28;
|
|
403
|
+
$[104] = t37;
|
|
404
|
+
$[105] = t41;
|
|
405
|
+
$[106] = t42;
|
|
406
|
+
} else t42 = $[106];
|
|
407
|
+
return t42;
|
|
165
408
|
};
|
|
166
409
|
//#endregion
|
|
167
410
|
export { DatePickerInput };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DateFieldState, DateSegment } from '@react-stately/datepicker';
|
|
2
|
+
import { HTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
3
|
interface DateSegmentProps {
|
|
3
4
|
state: DateFieldState;
|
|
4
5
|
segment: DateSegment;
|
|
@@ -8,4 +9,18 @@ interface DateSegmentProps {
|
|
|
8
9
|
}
|
|
9
10
|
export declare const getPlaceholder: (segment: DateSegment) => string | null;
|
|
10
11
|
export declare const DateSegmentItem: ({ segment, state, isDisabled, timePickerOnly, hidePlaceholder }: DateSegmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
interface DateSegmentItemViewProps {
|
|
13
|
+
ref?: Ref<HTMLDivElement>;
|
|
14
|
+
segmentProps?: HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
role?: HTMLAttributes<HTMLDivElement>["role"];
|
|
16
|
+
type?: DateSegment["type"] | Intl.DateTimeFormatPartTypes;
|
|
17
|
+
text: ReactNode;
|
|
18
|
+
placeholder?: ReactNode;
|
|
19
|
+
isPlaceholder?: boolean;
|
|
20
|
+
isInputEmpty?: boolean;
|
|
21
|
+
isDisabled?: boolean;
|
|
22
|
+
timePickerOnly?: boolean;
|
|
23
|
+
hidePlaceholder?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const DateSegmentItemView: ({ ref, segmentProps, role, type, text, placeholder, isPlaceholder, isInputEmpty, isDisabled, timePickerOnly, hidePlaceholder, }: DateSegmentItemViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
26
|
export {};
|