@povio/ui 3.1.0 → 3.2.0
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 +102 -39
- package/dist/components/Menu/MenuPopover.js +105 -29
- package/dist/components/buttons/Button/button.cva.d.ts +3 -3
- 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/PillButton/pillButton.cva.d.ts +1 -1
- 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 +2 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +380 -75
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +499 -186
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +14 -5
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +280 -46
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +7 -3
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +616 -121
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
- package/dist/components/inputs/DateTime/shared/Calendar.js +342 -119
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +4 -2
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +310 -103
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +4 -2
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +150 -33
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +233 -98
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DateField.js +288 -112
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +14 -3
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +359 -129
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +18 -1
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +104 -11
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +83 -28
- 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 +211 -65
- package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +5 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +16 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +16 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +15 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +32 -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 +41 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +99 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
- package/dist/components/inputs/File/FileUpload.js +91 -46
- package/dist/components/inputs/File/FileUploadContainer.js +15 -7
- package/dist/components/inputs/File/InputUpload.js +317 -79
- package/dist/components/inputs/File/index.d.ts +1 -1
- 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 +49 -8
- package/dist/components/inputs/File/shared/ProgressBar.js +102 -15
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -11
- package/dist/components/inputs/File/shared/fileUpload.cva.js +1 -18
- 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 +13 -0
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +14 -0
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +446 -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 +574 -0
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +8 -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 +429 -90
- package/dist/components/inputs/Input/shared/InputContent.js +193 -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 -61
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +45 -0
- package/dist/components/inputs/RadioGroup/radio.cva.js +48 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +217 -22
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +107 -8
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +37 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.js +178 -0
- package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
- package/dist/components/inputs/Selection/Select/Select.js +227 -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 +397 -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 +9 -3
- 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 +14 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +43 -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 +6 -0
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +5 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +12 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +8 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +54 -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 +83 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +612 -0
- package/dist/components/inputs/Slider/Slider.d.ts +2 -1
- package/dist/components/inputs/Slider/Slider.js +265 -76
- 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 +2 -1
- 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/TooltipWrapper.js +50 -11
- package/dist/components/inputs/shared/input.cva.d.ts +28 -0
- package/dist/components/inputs/shared/input.cva.js +38 -4
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +8 -0
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +5 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +15 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.js +112 -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 +85 -28
- 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/shared/pagination/minWidth.cva.d.ts +1 -1
- 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 +28 -14
- package/dist/components/status/Toast/toast.cva.d.ts +1 -1
- 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 +20 -6
- package/dist/config/uiConfig.context.js +68 -14
- package/dist/config/uiOverrides.context.d.ts +30 -11
- package/dist/config/uiOverrides.context.js +54 -14
- package/dist/helpers/dynamicInputs.d.ts +12 -9
- package/dist/helpers/dynamicInputs.js +13 -8
- package/dist/hooks/useAutosave.d.ts +2 -1
- package/dist/hooks/useAutosave.js +12 -4
- package/dist/hooks/useAutosave.spec.d.ts +1 -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.d.ts +3 -1
- package/dist/hooks/useFormAutosave.js +122 -30
- package/dist/hooks/useFormAutosave.spec.d.ts +1 -0
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useIntersectionObserver.js +91 -24
- package/dist/hooks/useKeyInteractions.d.ts +20 -0
- package/dist/hooks/useKeyInteractions.js +54 -0
- package/dist/hooks/useKeyInteractions.spec.d.ts +1 -0
- 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 +72 -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 +18 -3
- package/dist/index.js +15 -5
- package/dist/tw-ui-plugin.js +6 -0
- package/dist/utils/date-time.utils.d.ts +38 -10
- package/dist/utils/date-time.utils.js +136 -22
- package/dist/utils/query.utils.d.ts +4 -0
- package/dist/utils/query.utils.js +8 -0
- package/dist/utils/zod.utils.d.ts +2 -0
- package/dist/utils/zod.utils.js +5 -0
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CalendarDate } from '@internationalized/date';
|
|
2
2
|
import { CalendarState, CalendarStateOptions } from '@react-stately/calendar';
|
|
3
|
+
import { DateValue } from 'react-aria';
|
|
3
4
|
import { DatePickerState } from 'react-stately';
|
|
4
5
|
type DateTimeCalendarProps = {
|
|
5
6
|
includesTime?: false;
|
|
@@ -14,7 +15,9 @@ type CalendarProps = DateTimeCalendarProps & {
|
|
|
14
15
|
className?: string;
|
|
15
16
|
state: CalendarState;
|
|
16
17
|
calendarProps: Omit<CalendarStateOptions, "locale" | "createCalendar">;
|
|
17
|
-
onApply: () => void;
|
|
18
|
+
onApply: (selectedDate?: DateValue) => void;
|
|
19
|
+
onDateSelectionChange?: (selectedDate: DateValue) => void;
|
|
20
|
+
setDateValueOnDateSelection?: boolean;
|
|
18
21
|
onMonthYearChange?: (selectedDate: CalendarDate) => void;
|
|
19
22
|
onMonthYearCommit?: () => void;
|
|
20
23
|
selectedDate?: CalendarDate | null;
|
|
@@ -22,5 +25,5 @@ type CalendarProps = DateTimeCalendarProps & {
|
|
|
22
25
|
isTimeOptional?: boolean;
|
|
23
26
|
};
|
|
24
27
|
export type ToggleState = "month" | "year" | "time";
|
|
25
|
-
export declare const Calendar: ({ className, includesTime, datePickerState, hourCycle, isTimeOptional, onApply, onMonthYearChange, onMonthYearCommit, selectedDate, granularity, ...props }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const Calendar: ({ className, includesTime, datePickerState, hourCycle, isTimeOptional, onApply, onMonthYearChange, onMonthYearCommit, selectedDate, granularity, setDateValueOnDateSelection, onDateSelectionChange, ...props }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
29
|
export {};
|
|
@@ -3,137 +3,316 @@ import { CalendarHeader } from "./CalendarHeader.js";
|
|
|
3
3
|
import { MonthPicker } from "./MonthPicker.js";
|
|
4
4
|
import { TimePickerForm } from "./TimePickerForm.js";
|
|
5
5
|
import { YearPicker } from "./YearPicker.js";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import { clsx } from "clsx";
|
|
8
9
|
import { useEffect, useState } from "react";
|
|
9
10
|
import { useCalendar } from "@react-aria/calendar";
|
|
10
11
|
//#region src/components/inputs/DateTime/shared/Calendar.tsx
|
|
11
|
-
var Calendar = (
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
var Calendar = (t0) => {
|
|
13
|
+
const $ = c(92);
|
|
14
|
+
let className;
|
|
15
|
+
let datePickerState;
|
|
16
|
+
let hourCycle;
|
|
17
|
+
let includesTime;
|
|
18
|
+
let isTimeOptional;
|
|
19
|
+
let onApply;
|
|
20
|
+
let onDateSelectionChange;
|
|
21
|
+
let onMonthYearChange;
|
|
22
|
+
let onMonthYearCommit;
|
|
23
|
+
let props;
|
|
24
|
+
let selectedDate;
|
|
25
|
+
let t1;
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[0] !== t0) {
|
|
28
|
+
({className, includesTime, datePickerState, hourCycle, isTimeOptional, onApply, onMonthYearChange, onMonthYearCommit, selectedDate, granularity: t1, setDateValueOnDateSelection: t2, onDateSelectionChange, ...props} = t0);
|
|
29
|
+
$[0] = t0;
|
|
30
|
+
$[1] = className;
|
|
31
|
+
$[2] = datePickerState;
|
|
32
|
+
$[3] = hourCycle;
|
|
33
|
+
$[4] = includesTime;
|
|
34
|
+
$[5] = isTimeOptional;
|
|
35
|
+
$[6] = onApply;
|
|
36
|
+
$[7] = onDateSelectionChange;
|
|
37
|
+
$[8] = onMonthYearChange;
|
|
38
|
+
$[9] = onMonthYearCommit;
|
|
39
|
+
$[10] = props;
|
|
40
|
+
$[11] = selectedDate;
|
|
41
|
+
$[12] = t1;
|
|
42
|
+
$[13] = t2;
|
|
43
|
+
} else {
|
|
44
|
+
className = $[1];
|
|
45
|
+
datePickerState = $[2];
|
|
46
|
+
hourCycle = $[3];
|
|
47
|
+
includesTime = $[4];
|
|
48
|
+
isTimeOptional = $[5];
|
|
49
|
+
onApply = $[6];
|
|
50
|
+
onDateSelectionChange = $[7];
|
|
51
|
+
onMonthYearChange = $[8];
|
|
52
|
+
onMonthYearCommit = $[9];
|
|
53
|
+
props = $[10];
|
|
54
|
+
selectedDate = $[11];
|
|
55
|
+
t1 = $[12];
|
|
56
|
+
t2 = $[13];
|
|
57
|
+
}
|
|
58
|
+
const granularity = t1 === void 0 ? "day" : t1;
|
|
59
|
+
const setDateValueOnDateSelection = t2 === void 0 ? false : t2;
|
|
60
|
+
let t3;
|
|
61
|
+
if ($[14] !== granularity) {
|
|
62
|
+
t3 = () => {
|
|
63
|
+
if (granularity === "year") return "year";
|
|
64
|
+
if (granularity === "month") return "month";
|
|
65
|
+
return null;
|
|
66
|
+
};
|
|
67
|
+
$[14] = granularity;
|
|
68
|
+
$[15] = t3;
|
|
69
|
+
} else t3 = $[15];
|
|
70
|
+
const [toggleState, setToggleState] = useState(t3);
|
|
17
71
|
const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(props.calendarProps, props.state);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
72
|
+
let t4;
|
|
73
|
+
let t5;
|
|
74
|
+
if ($[16] !== granularity || $[17] !== includesTime || $[18] !== toggleState) {
|
|
75
|
+
t4 = () => {
|
|
76
|
+
if (granularity === "year" && toggleState !== "year") {
|
|
77
|
+
setToggleState("year");
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (granularity === "month" && toggleState === null) {
|
|
81
|
+
setToggleState("month");
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (granularity === "month" && toggleState === "time") {
|
|
85
|
+
setToggleState("month");
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (granularity === "day" && toggleState === "time" && !includesTime) setToggleState(null);
|
|
89
|
+
};
|
|
90
|
+
t5 = [
|
|
91
|
+
granularity,
|
|
92
|
+
toggleState,
|
|
93
|
+
includesTime
|
|
94
|
+
];
|
|
95
|
+
$[16] = granularity;
|
|
96
|
+
$[17] = includesTime;
|
|
97
|
+
$[18] = toggleState;
|
|
98
|
+
$[19] = t4;
|
|
99
|
+
$[20] = t5;
|
|
100
|
+
} else {
|
|
101
|
+
t4 = $[19];
|
|
102
|
+
t5 = $[20];
|
|
103
|
+
}
|
|
104
|
+
useEffect(t4, t5);
|
|
105
|
+
let t6;
|
|
106
|
+
if ($[21] !== granularity) {
|
|
107
|
+
t6 = () => {
|
|
108
|
+
if (granularity === "day") {
|
|
109
|
+
setToggleState(null);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
50
112
|
setToggleState("month");
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
113
|
+
};
|
|
114
|
+
$[21] = granularity;
|
|
115
|
+
$[22] = t6;
|
|
116
|
+
} else t6 = $[22];
|
|
117
|
+
const onMonthSelectionChange = t6;
|
|
118
|
+
let t7;
|
|
119
|
+
if ($[23] !== granularity) {
|
|
120
|
+
t7 = () => {
|
|
121
|
+
if (granularity === "day") {
|
|
122
|
+
setToggleState(null);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (granularity === "month") {
|
|
126
|
+
setToggleState("month");
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
setToggleState("year");
|
|
130
|
+
};
|
|
131
|
+
$[23] = granularity;
|
|
132
|
+
$[24] = t7;
|
|
133
|
+
} else t7 = $[24];
|
|
134
|
+
const onYearSelectionChange = t7;
|
|
135
|
+
let t8;
|
|
136
|
+
if ($[25] !== onMonthYearChange || $[26] !== props.state || $[27] !== toggleState) {
|
|
137
|
+
t8 = (months) => {
|
|
138
|
+
if (toggleState) return;
|
|
139
|
+
if (!onMonthYearChange) return;
|
|
140
|
+
const focusedDate = props.state.focusedDate;
|
|
141
|
+
if (months === -1) {
|
|
142
|
+
onMonthYearChange(focusedDate.subtract({ months: 1 }));
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
onMonthYearChange(focusedDate.add({ months: 1 }));
|
|
146
|
+
};
|
|
147
|
+
$[25] = onMonthYearChange;
|
|
148
|
+
$[26] = props.state;
|
|
149
|
+
$[27] = toggleState;
|
|
150
|
+
$[28] = t8;
|
|
151
|
+
} else t8 = $[28];
|
|
152
|
+
const handleHeaderMonthNavigation = t8;
|
|
153
|
+
let t9;
|
|
154
|
+
if ($[29] !== handleHeaderMonthNavigation || $[30] !== prevButtonProps) {
|
|
155
|
+
t9 = (event) => {
|
|
68
156
|
prevButtonProps.onPress?.(event);
|
|
69
157
|
handleHeaderMonthNavigation(-1);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
158
|
+
};
|
|
159
|
+
$[29] = handleHeaderMonthNavigation;
|
|
160
|
+
$[30] = prevButtonProps;
|
|
161
|
+
$[31] = t9;
|
|
162
|
+
} else t9 = $[31];
|
|
163
|
+
let t10;
|
|
164
|
+
if ($[32] !== prevButtonProps || $[33] !== t9) {
|
|
165
|
+
t10 = {
|
|
166
|
+
...prevButtonProps,
|
|
167
|
+
onPress: t9
|
|
168
|
+
};
|
|
169
|
+
$[32] = prevButtonProps;
|
|
170
|
+
$[33] = t9;
|
|
171
|
+
$[34] = t10;
|
|
172
|
+
} else t10 = $[34];
|
|
173
|
+
const headerPrevButtonProps = t10;
|
|
174
|
+
let t11;
|
|
175
|
+
if ($[35] !== handleHeaderMonthNavigation || $[36] !== nextButtonProps) {
|
|
176
|
+
t11 = (event_0) => {
|
|
177
|
+
nextButtonProps.onPress?.(event_0);
|
|
76
178
|
handleHeaderMonthNavigation(1);
|
|
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
|
-
|
|
179
|
+
};
|
|
180
|
+
$[35] = handleHeaderMonthNavigation;
|
|
181
|
+
$[36] = nextButtonProps;
|
|
182
|
+
$[37] = t11;
|
|
183
|
+
} else t11 = $[37];
|
|
184
|
+
let t12;
|
|
185
|
+
if ($[38] !== nextButtonProps || $[39] !== t11) {
|
|
186
|
+
t12 = {
|
|
187
|
+
...nextButtonProps,
|
|
188
|
+
onPress: t11
|
|
189
|
+
};
|
|
190
|
+
$[38] = nextButtonProps;
|
|
191
|
+
$[39] = t11;
|
|
192
|
+
$[40] = t12;
|
|
193
|
+
} else t12 = $[40];
|
|
194
|
+
const headerNextButtonProps = t12;
|
|
195
|
+
let t13;
|
|
196
|
+
if ($[41] !== datePickerState || $[42] !== includesTime || $[43] !== setDateValueOnDateSelection) {
|
|
197
|
+
t13 = (date) => {
|
|
198
|
+
if (!includesTime || !setDateValueOnDateSelection) return;
|
|
199
|
+
datePickerState.setDateValue(date);
|
|
200
|
+
};
|
|
201
|
+
$[41] = datePickerState;
|
|
202
|
+
$[42] = includesTime;
|
|
203
|
+
$[43] = setDateValueOnDateSelection;
|
|
204
|
+
$[44] = t13;
|
|
205
|
+
} else t13 = $[44];
|
|
206
|
+
const onDateSelection = t13;
|
|
207
|
+
let t14;
|
|
208
|
+
if ($[45] !== datePickerState || $[46] !== includesTime || $[47] !== onApply || $[48] !== onDateSelectionChange || $[49] !== props.state || $[50] !== setDateValueOnDateSelection || $[51] !== toggleState) {
|
|
209
|
+
t14 = (selectedDate_0) => {
|
|
210
|
+
const resolvedDate = selectedDate_0 ?? props.state.focusedDate;
|
|
211
|
+
if (includesTime && resolvedDate && setDateValueOnDateSelection) {
|
|
212
|
+
datePickerState.setDateValue(resolvedDate);
|
|
213
|
+
onDateSelectionChange?.(resolvedDate);
|
|
214
|
+
}
|
|
215
|
+
if (includesTime && toggleState !== "time") {
|
|
216
|
+
if (!setDateValueOnDateSelection && resolvedDate) {
|
|
217
|
+
datePickerState.setDateValue(resolvedDate);
|
|
218
|
+
onDateSelectionChange?.(resolvedDate);
|
|
219
|
+
}
|
|
220
|
+
setToggleState("time");
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
if (datePickerState?.value && !setDateValueOnDateSelection) onApply(resolvedDate);
|
|
224
|
+
};
|
|
225
|
+
$[45] = datePickerState;
|
|
226
|
+
$[46] = includesTime;
|
|
227
|
+
$[47] = onApply;
|
|
228
|
+
$[48] = onDateSelectionChange;
|
|
229
|
+
$[49] = props.state;
|
|
230
|
+
$[50] = setDateValueOnDateSelection;
|
|
231
|
+
$[51] = toggleState;
|
|
232
|
+
$[52] = t14;
|
|
233
|
+
} else t14 = $[52];
|
|
234
|
+
const handleDateChange = t14;
|
|
235
|
+
let t15;
|
|
236
|
+
if ($[53] !== datePickerState || $[54] !== granularity || $[55] !== handleDateChange || $[56] !== includesTime || $[57] !== onApply || $[58] !== onDateSelection || $[59] !== onMonthSelectionChange || $[60] !== onMonthYearChange || $[61] !== onMonthYearCommit || $[62] !== onYearSelectionChange || $[63] !== props.state || $[64] !== selectedDate || $[65] !== setDateValueOnDateSelection || $[66] !== toggleState) {
|
|
237
|
+
t15 = () => {
|
|
238
|
+
if (!toggleState) {
|
|
239
|
+
if (granularity === "month") return /* @__PURE__ */ jsx(MonthPicker, {
|
|
240
|
+
state: props.state,
|
|
241
|
+
onSelectionChange: onMonthSelectionChange,
|
|
242
|
+
onDateChange: onMonthYearChange,
|
|
243
|
+
onCommit: onMonthYearCommit,
|
|
244
|
+
selectedDate
|
|
245
|
+
});
|
|
246
|
+
if (granularity === "year") return /* @__PURE__ */ jsx(YearPicker, {
|
|
247
|
+
state: props.state,
|
|
248
|
+
onSelectionChange: onYearSelectionChange,
|
|
249
|
+
onDateChange: onMonthYearChange,
|
|
250
|
+
onCommit: onMonthYearCommit,
|
|
251
|
+
selectedDate
|
|
252
|
+
});
|
|
253
|
+
return /* @__PURE__ */ jsx(CalendarGrid, {
|
|
254
|
+
state: props.state,
|
|
255
|
+
onApply: handleDateChange,
|
|
256
|
+
onDoubleClickApply: !includesTime ? onApply : void 0,
|
|
257
|
+
onDateSelection,
|
|
258
|
+
shouldApplyOnDateSelection: !includesTime || setDateValueOnDateSelection
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
if (toggleState === "month") {
|
|
262
|
+
if (granularity === "year") return /* @__PURE__ */ jsx(YearPicker, {
|
|
263
|
+
state: props.state,
|
|
264
|
+
onSelectionChange: onYearSelectionChange,
|
|
265
|
+
onDateChange: onMonthYearChange,
|
|
266
|
+
onCommit: onMonthYearCommit,
|
|
267
|
+
selectedDate
|
|
268
|
+
});
|
|
269
|
+
return /* @__PURE__ */ jsx(MonthPicker, {
|
|
270
|
+
state: props.state,
|
|
271
|
+
onSelectionChange: onMonthSelectionChange,
|
|
272
|
+
onDateChange: onMonthYearChange,
|
|
273
|
+
onCommit: onMonthYearCommit,
|
|
274
|
+
selectedDate
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
if (toggleState === "year") return /* @__PURE__ */ jsx(YearPicker, {
|
|
106
278
|
state: props.state,
|
|
107
279
|
onSelectionChange: onYearSelectionChange,
|
|
108
280
|
onDateChange: onMonthYearChange,
|
|
109
281
|
onCommit: onMonthYearCommit,
|
|
110
282
|
selectedDate
|
|
111
283
|
});
|
|
112
|
-
return /* @__PURE__ */ jsx(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
onDateChange: onMonthYearChange,
|
|
116
|
-
onCommit: onMonthYearCommit,
|
|
117
|
-
selectedDate
|
|
284
|
+
if (toggleState === "time" && includesTime) return /* @__PURE__ */ jsx("div", {
|
|
285
|
+
className: "flex h-72 w-80 items-center justify-center",
|
|
286
|
+
children: /* @__PURE__ */ jsx(TimePickerForm, { datePickerState })
|
|
118
287
|
});
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
288
|
+
return null;
|
|
289
|
+
};
|
|
290
|
+
$[53] = datePickerState;
|
|
291
|
+
$[54] = granularity;
|
|
292
|
+
$[55] = handleDateChange;
|
|
293
|
+
$[56] = includesTime;
|
|
294
|
+
$[57] = onApply;
|
|
295
|
+
$[58] = onDateSelection;
|
|
296
|
+
$[59] = onMonthSelectionChange;
|
|
297
|
+
$[60] = onMonthYearChange;
|
|
298
|
+
$[61] = onMonthYearCommit;
|
|
299
|
+
$[62] = onYearSelectionChange;
|
|
300
|
+
$[63] = props.state;
|
|
301
|
+
$[64] = selectedDate;
|
|
302
|
+
$[65] = setDateValueOnDateSelection;
|
|
303
|
+
$[66] = toggleState;
|
|
304
|
+
$[67] = t15;
|
|
305
|
+
} else t15 = $[67];
|
|
306
|
+
const getContent = t15;
|
|
307
|
+
let t16;
|
|
308
|
+
if ($[68] !== className) {
|
|
309
|
+
t16 = clsx("flex min-h-0 w-full flex-col items-center", className);
|
|
310
|
+
$[68] = className;
|
|
311
|
+
$[69] = t16;
|
|
312
|
+
} else t16 = $[69];
|
|
313
|
+
let t17;
|
|
314
|
+
if ($[70] !== datePickerState || $[71] !== granularity || $[72] !== headerNextButtonProps || $[73] !== headerPrevButtonProps || $[74] !== hourCycle || $[75] !== includesTime || $[76] !== isTimeOptional || $[77] !== props.state || $[78] !== toggleState) {
|
|
315
|
+
t17 = /* @__PURE__ */ jsx(CalendarHeader, {
|
|
137
316
|
calendarState: props.state,
|
|
138
317
|
datePickerState,
|
|
139
318
|
prevButtonProps: headerPrevButtonProps,
|
|
@@ -144,11 +323,55 @@ var Calendar = ({ className, includesTime, datePickerState, hourCycle, isTimeOpt
|
|
|
144
323
|
granularity,
|
|
145
324
|
toggleState,
|
|
146
325
|
setToggleState
|
|
147
|
-
})
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
326
|
+
});
|
|
327
|
+
$[70] = datePickerState;
|
|
328
|
+
$[71] = granularity;
|
|
329
|
+
$[72] = headerNextButtonProps;
|
|
330
|
+
$[73] = headerPrevButtonProps;
|
|
331
|
+
$[74] = hourCycle;
|
|
332
|
+
$[75] = includesTime;
|
|
333
|
+
$[76] = isTimeOptional;
|
|
334
|
+
$[77] = props.state;
|
|
335
|
+
$[78] = toggleState;
|
|
336
|
+
$[79] = t17;
|
|
337
|
+
} else t17 = $[79];
|
|
338
|
+
const t18 = toggleState !== "year" && "pb-8 md:pb-0";
|
|
339
|
+
let t19;
|
|
340
|
+
if ($[80] !== t18) {
|
|
341
|
+
t19 = clsx("flex min-h-0 w-full flex-1 flex-col items-center", t18);
|
|
342
|
+
$[80] = t18;
|
|
343
|
+
$[81] = t19;
|
|
344
|
+
} else t19 = $[81];
|
|
345
|
+
let t20;
|
|
346
|
+
if ($[82] !== getContent) {
|
|
347
|
+
t20 = getContent();
|
|
348
|
+
$[82] = getContent;
|
|
349
|
+
$[83] = t20;
|
|
350
|
+
} else t20 = $[83];
|
|
351
|
+
let t21;
|
|
352
|
+
if ($[84] !== t19 || $[85] !== t20) {
|
|
353
|
+
t21 = /* @__PURE__ */ jsx("div", {
|
|
354
|
+
className: t19,
|
|
355
|
+
children: t20
|
|
356
|
+
});
|
|
357
|
+
$[84] = t19;
|
|
358
|
+
$[85] = t20;
|
|
359
|
+
$[86] = t21;
|
|
360
|
+
} else t21 = $[86];
|
|
361
|
+
let t22;
|
|
362
|
+
if ($[87] !== calendarProps || $[88] !== t16 || $[89] !== t17 || $[90] !== t21) {
|
|
363
|
+
t22 = /* @__PURE__ */ jsxs("div", {
|
|
364
|
+
...calendarProps,
|
|
365
|
+
className: t16,
|
|
366
|
+
children: [t17, t21]
|
|
367
|
+
});
|
|
368
|
+
$[87] = calendarProps;
|
|
369
|
+
$[88] = t16;
|
|
370
|
+
$[89] = t17;
|
|
371
|
+
$[90] = t21;
|
|
372
|
+
$[91] = t22;
|
|
373
|
+
} else t22 = $[91];
|
|
374
|
+
return t22;
|
|
152
375
|
};
|
|
153
376
|
//#endregion
|
|
154
377
|
export { Calendar };
|
|
@@ -4,7 +4,9 @@ import { KeyboardEvent } from 'react';
|
|
|
4
4
|
import { DateValue } from 'react-aria';
|
|
5
5
|
interface CalendarCellProps extends AriaCalendarCellProps {
|
|
6
6
|
state: CalendarState | RangeCalendarState;
|
|
7
|
-
onApply?: () => void;
|
|
7
|
+
onApply?: (selectedDate?: DateValue) => void;
|
|
8
|
+
onDoubleClickApply?: (selectedDate?: DateValue) => void;
|
|
9
|
+
shouldApplyOnDateSelection?: boolean;
|
|
8
10
|
shouldCloseOnSelect?: boolean;
|
|
9
11
|
onDateSelection?: (date: DateValue) => void;
|
|
10
12
|
onDateHover?: (date: DateValue | null) => void;
|
|
@@ -16,5 +18,5 @@ interface CalendarCellProps extends AriaCalendarCellProps {
|
|
|
16
18
|
hoverDate?: DateValue | null;
|
|
17
19
|
onKeyboardNavigation?: (event: KeyboardEvent, date: DateValue) => boolean;
|
|
18
20
|
}
|
|
19
|
-
export declare const CalendarCell: ({ state, onApply, shouldCloseOnSelect, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, ...props }: CalendarCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const CalendarCell: ({ state, onApply, onDoubleClickApply, shouldApplyOnDateSelection, shouldCloseOnSelect, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, ...props }: CalendarCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export {};
|