@konstructio/ui 0.1.2-alpha.77 → 0.1.2-alpha.78
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/AdditionalOptions-C2FDVZhu.js +45 -0
- package/dist/Modal-DAWdufZ_.js +120 -0
- package/dist/assets/icons/components/Accounts.js +35 -23
- package/dist/assets/icons/components/AddChart.js +26 -20
- package/dist/assets/icons/components/AlertOutline.js +26 -20
- package/dist/assets/icons/components/AppRepo.js +26 -20
- package/dist/assets/icons/components/Apps.js +26 -20
- package/dist/assets/icons/components/Archives.js +26 -20
- package/dist/assets/icons/components/ArrowDown.js +26 -20
- package/dist/assets/icons/components/ArrowLeft.js +26 -20
- package/dist/assets/icons/components/ArrowRight.js +26 -20
- package/dist/assets/icons/components/ArrowUp.js +25 -19
- package/dist/assets/icons/components/BarChart.js +36 -24
- package/dist/assets/icons/components/BookOpen.js +30 -20
- package/dist/assets/icons/components/CalendarMonth.js +26 -20
- package/dist/assets/icons/components/Check.js +26 -20
- package/dist/assets/icons/components/CheckCircleFilled.js +29 -25
- package/dist/assets/icons/components/CheckCircleOutline.js +26 -20
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +24 -20
- package/dist/assets/icons/components/ClockAlert.js +26 -20
- package/dist/assets/icons/components/ClockOutline.js +26 -20
- package/dist/assets/icons/components/Close.js +26 -20
- package/dist/assets/icons/components/Cloud.js +20 -20
- package/dist/assets/icons/components/CloudLockOutline.js +26 -20
- package/dist/assets/icons/components/Clusters.js +42 -24
- package/dist/assets/icons/components/CogOutline.js +26 -20
- package/dist/assets/icons/components/Copy.js +26 -20
- package/dist/assets/icons/components/Cpu.js +39 -23
- package/dist/assets/icons/components/Cube.js +26 -20
- package/dist/assets/icons/components/Datacenter.js +26 -20
- package/dist/assets/icons/components/Delete.js +26 -20
- package/dist/assets/icons/components/DollarSign.js +28 -20
- package/dist/assets/icons/components/Download.js +26 -20
- package/dist/assets/icons/components/Edit.js +26 -20
- package/dist/assets/icons/components/Ellipses.js +26 -20
- package/dist/assets/icons/components/Environments.js +28 -20
- package/dist/assets/icons/components/Error.js +26 -20
- package/dist/assets/icons/components/ErrorOutline.js +26 -20
- package/dist/assets/icons/components/Exclamation.js +26 -20
- package/dist/assets/icons/components/Git.js +26 -20
- package/dist/assets/icons/components/GitOpsCatalog.js +39 -23
- package/dist/assets/icons/components/GridView.js +20 -20
- package/dist/assets/icons/components/Help.js +23 -25
- package/dist/assets/icons/components/HideOutline.js +35 -23
- package/dist/assets/icons/components/Home.js +26 -20
- package/dist/assets/icons/components/Home2.js +26 -20
- package/dist/assets/icons/components/Id.js +25 -19
- package/dist/assets/icons/components/InfoCircle.js +29 -25
- package/dist/assets/icons/components/InformationOutline.js +26 -20
- package/dist/assets/icons/components/InvoiceList.js +26 -20
- package/dist/assets/icons/components/Key.js +26 -20
- package/dist/assets/icons/components/LightBulb.js +41 -23
- package/dist/assets/icons/components/Loader.js +26 -20
- package/dist/assets/icons/components/Network.js +26 -20
- package/dist/assets/icons/components/PagesStack.js +23 -25
- package/dist/assets/icons/components/Pageview.js +26 -20
- package/dist/assets/icons/components/People.js +26 -20
- package/dist/assets/icons/components/PhotoLibrary.js +25 -19
- package/dist/assets/icons/components/Pipeline.js +28 -20
- package/dist/assets/icons/components/Plus.js +26 -20
- package/dist/assets/icons/components/PowerSettings.js +26 -20
- package/dist/assets/icons/components/Preview.js +26 -20
- package/dist/assets/icons/components/ReceiptLong.js +20 -20
- package/dist/assets/icons/components/Refresh.js +26 -20
- package/dist/assets/icons/components/ScatterPlot.js +20 -20
- package/dist/assets/icons/components/Search.js +30 -25
- package/dist/assets/icons/components/Server.js +26 -20
- package/dist/assets/icons/components/Start.js +26 -20
- package/dist/assets/icons/components/TabNew.js +48 -24
- package/dist/assets/icons/components/Teams.js +26 -20
- package/dist/assets/icons/components/Upload.js +25 -19
- package/dist/assets/icons/components/Warning.js +26 -20
- package/dist/assets/icons/components/WarningTriangle.js +26 -20
- package/dist/assets/icons/components/X.js +26 -20
- package/dist/components/Alert/Alert.js +61 -78
- package/dist/components/Alert/Alert.variants.js +85 -30
- package/dist/components/AlertDialog/AlertDialog.js +128 -102
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -3
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +7 -25
- package/dist/components/Autocomplete/Autocomplete.js +83 -55
- package/dist/components/Autocomplete/Autocomplete.variants.js +21 -1
- package/dist/components/Autocomplete/components/List/List.js +45 -48
- package/dist/components/Autocomplete/components/List/List.variants.js +29 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +58 -74
- package/dist/components/Autocomplete/hooks/useNavigationList.js +62 -68
- package/dist/components/Badge/Badge.js +77 -66
- package/dist/components/Badge/Badge.variants.js +96 -33
- package/dist/components/Breadcrumb/Breadcrumb.js +70 -78
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +7 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +47 -33
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +63 -26
- package/dist/components/Button/Button.js +40 -37
- package/dist/components/Button/Button.variants.js +292 -96
- package/dist/components/ButtonGroup/ButtonGroup.js +138 -101
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +31 -9
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +113 -105
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +94 -48
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +43 -26
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +35 -28
- package/dist/components/ButtonGroup/hooks/useButtonGroup.js +61 -63
- package/dist/components/Card/Card.js +35 -35
- package/dist/components/Card/Card.variants.js +37 -25
- package/dist/components/Checkbox/Checkbox.js +268 -247
- package/dist/components/Checkbox/Checkbox.variants.js +65 -18
- package/dist/components/Command/Command.js +38 -46
- package/dist/components/Command/Command.variants.js +44 -1
- package/dist/components/Command/components/Command.js +6 -19
- package/dist/components/Command/components/CommandEmpty.js +13 -11
- package/dist/components/Command/components/CommandGroup.js +17 -19
- package/dist/components/Command/components/CommandInput.js +52 -60
- package/dist/components/Command/components/CommandItem.js +26 -28
- package/dist/components/Command/components/CommandList.js +14 -19
- package/dist/components/Command/components/CommandSeparator.js +14 -19
- package/dist/components/Command/components/CommandShortcut.js +16 -16
- package/dist/components/Command/components/DialogContent.js +29 -35
- package/dist/components/Command/components/DialogOverlay.js +16 -18
- package/dist/components/Command/contexts/Command.provider.js +21 -23
- package/dist/components/Counter/Counter.js +154 -151
- package/dist/components/Counter/Counter.variants.js +53 -6
- package/dist/components/DateRangePicker/DateRangePicker.js +162 -93
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +20 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +115 -81
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +45 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +20 -14
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +57 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +250 -55
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +37 -33
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +94 -29
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +126 -10
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +113 -138
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +16 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +102 -68
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +22 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +90 -55
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +90 -55
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +177 -204
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +63 -58
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +19 -1
- package/dist/components/DateRangePicker/constants/presets.js +7 -16
- package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +3 -1
- package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +171 -187
- package/dist/components/DateRangePicker/utils/disabled-dates.js +22 -16
- package/dist/components/DateRangePicker/utils/validation.js +17 -2
- package/dist/components/Datepicker/DatePicker.js +135 -80
- package/dist/components/Divider/Divider.js +7 -18
- package/dist/components/Drawer/Drawer.js +130 -108
- package/dist/components/Drawer/Drawer.variants.js +81 -17
- package/dist/components/Drawer/components/Body/Body.js +21 -18
- package/dist/components/Drawer/components/Footer/Footer.js +23 -18
- package/dist/components/Drawer/components/Header/Header.js +24 -20
- package/dist/components/Drawer/contexts/Drawer.context.js +2 -2
- package/dist/components/Drawer/hooks/useDrawer.js +57 -81
- package/dist/components/DropdownButton/DropdownButton.js +114 -99
- package/dist/components/Filter/Filter.js +29 -40
- package/dist/components/Filter/Filter.variants.js +17 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +94 -128
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +144 -83
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +81 -87
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +120 -66
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +34 -22
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +117 -74
- package/dist/components/Filter/components/ResetButton/ResetButton.js +29 -24
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +135 -83
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +69 -83
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +151 -80
- package/dist/components/Filter/contexts/filter.provider.js +4 -16
- package/dist/components/Filter/events/index.js +3 -3
- package/dist/components/ImageUpload/ImageUpload.js +150 -48
- package/dist/components/ImageUpload/ImageUpload.variants.js +93 -41
- package/dist/components/Input/Input.js +168 -43
- package/dist/components/Input/Input.variants.js +51 -9
- package/dist/components/LineChart/LineChart.js +120 -83
- package/dist/components/Loading/Loading.js +18 -22
- package/dist/components/Loading/Loading.variants.js +8 -1
- package/dist/components/Modal/Modal.js +2 -3
- package/dist/components/Modal/components/Body/Body.js +5 -16
- package/dist/components/Modal/components/Footer/Footer.js +11 -16
- package/dist/components/Modal/components/Header/Header.js +11 -16
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +28 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.context.js +3 -1
- package/dist/components/Modal/contexts/Modal.provider.js +23 -33
- package/dist/components/Modal/hooks/useModal.js +18 -29
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +32 -26
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +25 -1
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +27 -32
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +32 -13
- package/dist/components/MultiSelectDropdown/components/List/List.js +27 -26
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +21 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +123 -73
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +3 -1
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +131 -128
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +26 -30
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +6 -19
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +39 -9
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +33 -28
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +79 -21
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +41 -7
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +36 -47
- package/dist/components/PhoneNumberInput/components/Wrapper.js +503 -465
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +3 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1135 -1163
- package/dist/components/PieChart/PieChart.js +72 -82
- package/dist/components/ProgressBar/ProgressBar.js +38 -47
- package/dist/components/ProgressBar/ProgressBar.variants.js +28 -11
- package/dist/components/Radio/Radio.js +95 -71
- package/dist/components/Radio/Radio.variants.js +85 -33
- package/dist/components/RadioCard/RadioCard.js +36 -32
- package/dist/components/RadioCardGroup/RadioCardGroup.js +43 -42
- package/dist/components/RadioGroup/RadioGroup.js +48 -48
- package/dist/components/Range/Range.js +61 -83
- package/dist/components/Range/Range.variants.js +49 -19
- package/dist/components/Select/Select.js +65 -52
- package/dist/components/Select/Select.variants.js +66 -13
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -3
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +22 -1
- package/dist/components/Select/components/EmptyList.js +3 -8
- package/dist/components/Select/components/List/List.js +168 -89
- package/dist/components/Select/components/List/List.variants.js +41 -1
- package/dist/components/Select/components/ListItem/ListItem.js +96 -41
- package/dist/components/Select/components/ListItem/ListItem.variants.js +19 -1
- package/dist/components/Select/components/Wrapper.js +233 -110
- package/dist/components/Select/components/index.js +1 -1
- package/dist/components/Select/contexts/select.provider.js +41 -34
- package/dist/components/Select/hooks/useNavigationList.js +44 -50
- package/dist/components/Select/hooks/useSelect.js +94 -104
- package/dist/components/Sidebar/Sidebar.js +21 -26
- package/dist/components/Sidebar/Sidebar.variants.js +27 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +6 -18
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +8 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +6 -18
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +19 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +17 -26
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +24 -33
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +24 -24
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +39 -12
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +6 -17
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +5 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +5 -20
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +10 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +60 -21
- package/dist/components/Slider/Slider.js +56 -70
- package/dist/components/Slider/Slider.variants.js +41 -19
- package/dist/components/Spinner/Spinner.js +55 -56
- package/dist/components/Spinner/Spinner.variants.js +45 -19
- package/dist/components/Stepper/Stepper.js +72 -56
- package/dist/components/Stepper/Stepper.variants.js +188 -132
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +197 -151
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +27 -24
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +20 -39
- package/dist/components/Stepper/components/StepItem/StepItem.js +6 -15
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +111 -93
- package/dist/components/Stepper/hooks/useStepItemLogic.js +6 -3
- package/dist/components/Switch/Switch.js +178 -135
- package/dist/components/Switch/Switch.variants.js +40 -1
- package/dist/components/Table/Table.js +25 -29
- package/dist/components/Table/Table.variants.js +30 -6
- package/dist/components/Table/components/Body.js +16 -20
- package/dist/components/Table/components/Filter.js +7 -21
- package/dist/components/Table/components/Head.js +16 -20
- package/dist/components/Table/components/Row.js +26 -28
- package/dist/components/Tabs/Tabs.js +26 -34
- package/dist/components/Tabs/Tabs.variants.js +39 -10
- package/dist/components/Tabs/components/Content.js +14 -23
- package/dist/components/Tabs/components/List.js +19 -28
- package/dist/components/Tabs/components/Trigger.js +21 -25
- package/dist/components/Tag/Tag.js +17 -33
- package/dist/components/Tag/Tag.variants.js +36 -23
- package/dist/components/TagSelect/TagSelect.js +8 -19
- package/dist/components/TagSelect/TagSelect.variants.js +22 -1
- package/dist/components/TagSelect/components/Item/Item.js +18 -24
- package/dist/components/TagSelect/components/Item/Item.variants.js +26 -13
- package/dist/components/TagSelect/components/List/List.js +9 -22
- package/dist/components/TagSelect/components/List/List.variants.js +19 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +84 -68
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +65 -75
- package/dist/components/TagSelect/hooks/useTagSelect.js +26 -30
- package/dist/components/TextArea/TextArea.js +34 -35
- package/dist/components/TextArea/TextArea.variants.js +16 -1
- package/dist/components/TimePicker/TimePicker.js +11 -21
- package/dist/components/TimePicker/TimePicker.variants.js +64 -1
- package/dist/components/TimePicker/components/HoursList/HoursList.js +116 -77
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +88 -79
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +89 -66
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +228 -144
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +75 -44
- package/dist/components/TimePicker/contexts/time-picker.hook.js +3 -1
- package/dist/components/TimePicker/contexts/time-picker.provider.js +58 -76
- package/dist/components/Toast/Toast.js +338 -374
- package/dist/components/Toast/Toast.variants.js +43 -10
- package/dist/components/Tooltip/Tooltip.js +35 -36
- package/dist/components/Typography/Typography.js +23 -26
- package/dist/components/Typography/Typography.variants.js +59 -24
- package/dist/components/VirtualizedTable/VirtualizedTable.js +91 -9
- package/dist/components/VirtualizedTable/assets/chevron-down.js +23 -13
- package/dist/components/VirtualizedTable/assets/chevron-up.js +22 -12
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +115 -62
- package/dist/components/VirtualizedTable/components/Body/Body.js +83 -29
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -104
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +19 -13
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +49 -43
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +174 -116
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +57 -32
- package/dist/components/VirtualizedTable/components/Header/Header.js +98 -61
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +63 -65
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +102 -32
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +58 -51
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +24 -20
- package/dist/components/VirtualizedTable/contexts/table.provider.js +158 -129
- package/dist/components/VirtualizedTable/events/index.js +18 -18
- package/dist/components/index.js +1 -1
- package/dist/contexts/theme.provider.js +49 -61
- package/dist/hooks/useToggle.js +8 -10
- package/dist/index-C7zAY3xv.js +139 -0
- package/dist/{index-kTGTSLpq.js → index-Cmf-IG4l.js} +1 -1
- package/dist/{index-Dy4FVowi.js → index-CrCTywU1.js} +1 -1
- package/dist/{index-C6mt--X_.js → index-DWyM654o.js} +5 -5
- package/dist/{index-B9v5VxE2.js → index-Jr0cra7i.js} +6 -6
- package/dist/{index-CiACf4ao.js → index-mPinF0Ho.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/package.json +1 -2
- package/dist/utils/index.js +3 -1
- package/package.json +1 -2
- package/dist/AdditionalOptions-DiXvUzhu.js +0 -42
- package/dist/Modal-h5H4yxYg.js +0 -128
- package/dist/compiler-runtime-DA41awpA.js +0 -36
- package/dist/index-0g-eSmV1.js +0 -142
|
@@ -6,20 +6,136 @@ const b = (e) => ({
|
|
|
6
6
|
month: t(`flex flex-col w-[${o}px]`, e?.month),
|
|
7
7
|
month_caption: "hidden",
|
|
8
8
|
nav: "hidden",
|
|
9
|
-
day_button: t(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
day_button: t(
|
|
10
|
+
"size-[30px]",
|
|
11
|
+
"flex",
|
|
12
|
+
"items-center",
|
|
13
|
+
"justify-center",
|
|
14
|
+
"text-sm",
|
|
15
|
+
"font-semibold",
|
|
16
|
+
"cursor-pointer",
|
|
17
|
+
"rounded-full",
|
|
18
|
+
"hover:bg-slate-100",
|
|
19
|
+
"dark:hover:bg-metal-700",
|
|
20
|
+
"transition-colors",
|
|
21
|
+
"text-[#314158]",
|
|
22
|
+
"dark:text-white",
|
|
23
|
+
"focus:outline-none",
|
|
24
|
+
"focus-visible:outline-none",
|
|
25
|
+
e?.dayButton
|
|
26
|
+
),
|
|
27
|
+
day: t(
|
|
28
|
+
"p-0",
|
|
29
|
+
"w-[37px]",
|
|
30
|
+
"h-[38px]",
|
|
31
|
+
"text-center",
|
|
32
|
+
"align-middle",
|
|
33
|
+
e?.day
|
|
34
|
+
),
|
|
35
|
+
selected: t(
|
|
36
|
+
"[&>button]:bg-blue-600",
|
|
37
|
+
"[&>button]:text-white",
|
|
38
|
+
"[&>button]:hover:bg-blue-700",
|
|
39
|
+
"dark:[&>button]:bg-aurora-500",
|
|
40
|
+
"dark:[&>button]:hover:bg-aurora-500",
|
|
41
|
+
"dark:[&>button]:text-metal-900",
|
|
42
|
+
e?.selected
|
|
43
|
+
),
|
|
44
|
+
range_start: t(
|
|
45
|
+
"drp-range-start",
|
|
46
|
+
"[&>button]:!bg-blue-600",
|
|
47
|
+
"[&>button]:!text-white",
|
|
48
|
+
"[&>button]:!rounded-full",
|
|
49
|
+
"[&>button]:hover:!bg-blue-700",
|
|
50
|
+
"[&>button]:relative",
|
|
51
|
+
"[&>button]:z-10",
|
|
52
|
+
"dark:[&>button]:!bg-aurora-500",
|
|
53
|
+
"dark:[&>button]:hover:!bg-aurora-500",
|
|
54
|
+
"dark:[&>button]:!text-metal-900",
|
|
55
|
+
"!relative",
|
|
56
|
+
"before:absolute",
|
|
57
|
+
"before:top-[4px]",
|
|
58
|
+
"before:bottom-[4px]",
|
|
59
|
+
"before:left-1/2",
|
|
60
|
+
"before:right-0",
|
|
61
|
+
"before:!bg-[#EFF6FF]",
|
|
62
|
+
"dark:before:!bg-aurora-500/10",
|
|
63
|
+
"last:before:!hidden",
|
|
64
|
+
e?.rangeStart
|
|
65
|
+
),
|
|
66
|
+
range_end: t(
|
|
67
|
+
"drp-range-end",
|
|
68
|
+
"[&>button]:!bg-blue-600",
|
|
69
|
+
"[&>button]:!text-white",
|
|
70
|
+
"[&>button]:!rounded-full",
|
|
71
|
+
"[&>button]:hover:!bg-blue-700",
|
|
72
|
+
"[&>button]:relative",
|
|
73
|
+
"[&>button]:z-10",
|
|
74
|
+
"dark:[&>button]:!bg-aurora-500",
|
|
75
|
+
"dark:[&>button]:hover:!bg-aurora-500",
|
|
76
|
+
"dark:[&>button]:!text-metal-900",
|
|
77
|
+
"!relative",
|
|
78
|
+
"before:absolute",
|
|
79
|
+
"before:top-[4px]",
|
|
80
|
+
"before:bottom-[4px]",
|
|
81
|
+
"before:left-0",
|
|
82
|
+
"before:right-1/2",
|
|
83
|
+
"before:!bg-[#EFF6FF]",
|
|
84
|
+
"dark:before:!bg-aurora-500/10",
|
|
85
|
+
"first:before:!hidden",
|
|
86
|
+
e?.rangeEnd
|
|
87
|
+
),
|
|
88
|
+
range_middle: t(
|
|
89
|
+
"drp-range-middle",
|
|
90
|
+
"!relative",
|
|
91
|
+
"before:absolute",
|
|
92
|
+
"before:top-[4px]",
|
|
93
|
+
"before:bottom-[4px]",
|
|
94
|
+
"before:left-0",
|
|
95
|
+
"before:right-0",
|
|
96
|
+
"before:!bg-[#EFF6FF]",
|
|
97
|
+
"dark:before:!bg-aurora-500/10",
|
|
98
|
+
"first:before:rounded-l-full",
|
|
99
|
+
"last:before:rounded-r-full",
|
|
100
|
+
"[&>button]:!text-[#314158]",
|
|
101
|
+
"[&>button]:!bg-transparent",
|
|
102
|
+
"[&>button]:!rounded-full",
|
|
103
|
+
"[&>button]:relative",
|
|
104
|
+
"[&>button]:z-10",
|
|
105
|
+
"[&>button]:hover:!bg-blue-100",
|
|
106
|
+
"dark:[&>button]:!text-white",
|
|
107
|
+
"dark:[&>button]:hover:!bg-aurora-500/20",
|
|
108
|
+
e?.rangeMiddle
|
|
109
|
+
),
|
|
15
110
|
table: t("w-full border-collapse table-fixed", e?.table),
|
|
16
111
|
weekdays: t("text-[#62748e]", "dark:text-metal-400", e?.weekdays),
|
|
17
112
|
weeks: t("[&>tr>td]:p-0", "[&>tr]:h-[38px]", e?.weeks),
|
|
18
|
-
weekday: t(
|
|
19
|
-
|
|
113
|
+
weekday: t(
|
|
114
|
+
"font-semibold",
|
|
115
|
+
"text-xs",
|
|
116
|
+
"uppercase",
|
|
117
|
+
"text-[#62748e]",
|
|
118
|
+
"dark:text-metal-400",
|
|
119
|
+
"pb-4",
|
|
120
|
+
"w-[37px]",
|
|
121
|
+
e?.weekday
|
|
122
|
+
),
|
|
123
|
+
today: t(
|
|
124
|
+
"[&>button]:text-[#155dfc]",
|
|
125
|
+
"dark:[&>button]:text-aurora-500",
|
|
126
|
+
e?.today
|
|
127
|
+
),
|
|
20
128
|
month_grid: "w-full",
|
|
21
|
-
disabled: t(
|
|
22
|
-
|
|
129
|
+
disabled: t(
|
|
130
|
+
"[&>button]:opacity-50",
|
|
131
|
+
"[&>button]:cursor-not-allowed",
|
|
132
|
+
e?.disabled
|
|
133
|
+
),
|
|
134
|
+
outside: t(
|
|
135
|
+
"[&>button]:!text-slate-400",
|
|
136
|
+
"dark:[&>button]:!text-metal-500",
|
|
137
|
+
e?.outside
|
|
138
|
+
)
|
|
23
139
|
}), o = 259, a = 32, n = 720 * 60 * 60 * 1e3, d = 56, l = 28, u = 38;
|
|
24
140
|
export {
|
|
25
141
|
a as GAP_WIDTH,
|
package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js
CHANGED
|
@@ -1,167 +1,142 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { useState as f, useRef as F, useEffect as m, useMemo as U, useCallback as k } from "react";
|
|
2
|
+
import { MS_PER_MONTH as W, SINGLE_MONTH_WIDTH as I } from "../constants/index.js";
|
|
3
|
+
import { getNextMonth as h, getPrevMonth as g, getWeeksInMonth as w, calculateCalendarHeight as V } from "../utils/index.js";
|
|
4
|
+
const y = ({
|
|
5
|
+
displayedMonths: a,
|
|
6
|
+
animationDuration: R,
|
|
7
|
+
navigationMode: M
|
|
8
|
+
}) => {
|
|
9
|
+
const [o, b] = f(
|
|
10
|
+
a[0]
|
|
11
|
+
), [i, C] = f(null), [n, S] = f(!1), [u, L] = f(!1), [O, N] = f(!0), X = F(null), d = F(!0), [l, E] = f(
|
|
12
|
+
a[1]
|
|
13
|
+
), [s, H] = f(null), [r, D] = f(!1), [c, q] = f(!1), [$, P] = f(!0), G = F(null), _ = F(!0);
|
|
14
|
+
m(() => {
|
|
15
|
+
if (M === "independent") {
|
|
16
|
+
if (d.current) {
|
|
17
|
+
d.current = !1;
|
|
16
18
|
return;
|
|
17
19
|
}
|
|
18
|
-
if (!
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
const
|
|
22
|
-
if (Math.abs(
|
|
23
|
-
const
|
|
24
|
-
|
|
20
|
+
if (!n) {
|
|
21
|
+
const e = o.getTime(), t = a[0].getTime();
|
|
22
|
+
if (e !== t) {
|
|
23
|
+
const T = t - e, A = Math.round(T / W);
|
|
24
|
+
if (Math.abs(A) === 1) {
|
|
25
|
+
const x = A > 0 ? "left" : "right";
|
|
26
|
+
C(x), S(!0), L(!1);
|
|
25
27
|
} else
|
|
26
|
-
|
|
28
|
+
b(a[0]);
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
e[10] !== l[1] || e[11] !== r || e[12] !== u || e[13] !== s ? (L = () => {
|
|
35
|
-
if (u === "independent") {
|
|
36
|
-
if (ge.current) {
|
|
37
|
-
ge.current = !1;
|
|
32
|
+
}, [a, o, n, M]), m(() => {
|
|
33
|
+
if (M === "independent") {
|
|
34
|
+
if (_.current) {
|
|
35
|
+
_.current = !1;
|
|
38
36
|
return;
|
|
39
37
|
}
|
|
40
38
|
if (!r) {
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
const
|
|
44
|
-
if (Math.abs(
|
|
45
|
-
const
|
|
46
|
-
|
|
39
|
+
const e = l.getTime(), t = a[1].getTime();
|
|
40
|
+
if (e !== t) {
|
|
41
|
+
const T = t - e, A = Math.round(T / W);
|
|
42
|
+
if (Math.abs(A) === 1) {
|
|
43
|
+
const x = A > 0 ? "left" : "right";
|
|
44
|
+
H(x), D(!0), q(!1);
|
|
47
45
|
} else
|
|
48
|
-
|
|
46
|
+
E(a[1]);
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
let x, q;
|
|
56
|
-
e[20] !== i || e[21] !== o || e[22] !== f ? (x = () => {
|
|
57
|
-
i && !o && f && requestAnimationFrame(() => {
|
|
58
|
-
z(!0);
|
|
50
|
+
}, [a, l, r, M]), m(() => {
|
|
51
|
+
n && !u && i && requestAnimationFrame(() => {
|
|
52
|
+
L(!0);
|
|
59
53
|
});
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
r && !m && a && requestAnimationFrame(() => {
|
|
64
|
-
J(!0);
|
|
54
|
+
}, [n, u, i]), m(() => {
|
|
55
|
+
r && !c && s && requestAnimationFrame(() => {
|
|
56
|
+
q(!0);
|
|
65
57
|
});
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
oe(!1), requestAnimationFrame(() => {
|
|
72
|
-
re((c) => f === "left" ? d(c) : M(c)), fe(!1), le(null), z(!1), requestAnimationFrame(() => {
|
|
58
|
+
}, [r, c, s]), m(() => {
|
|
59
|
+
if (n && u) {
|
|
60
|
+
const e = setTimeout(() => {
|
|
61
|
+
N(!1), requestAnimationFrame(() => {
|
|
62
|
+
b((t) => i === "left" ? h(t) : g(t)), S(!1), C(null), L(!1), requestAnimationFrame(() => {
|
|
73
63
|
requestAnimationFrame(() => {
|
|
74
|
-
|
|
64
|
+
N(!0);
|
|
75
65
|
});
|
|
76
66
|
});
|
|
77
67
|
});
|
|
78
|
-
},
|
|
79
|
-
return () => clearTimeout(
|
|
68
|
+
}, R);
|
|
69
|
+
return () => clearTimeout(e);
|
|
80
70
|
}
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
71
|
+
}, [
|
|
72
|
+
n,
|
|
73
|
+
u,
|
|
74
|
+
R,
|
|
75
|
+
i
|
|
76
|
+
]), m(() => {
|
|
77
|
+
if (r && c) {
|
|
78
|
+
const e = setTimeout(() => {
|
|
79
|
+
P(!1), requestAnimationFrame(() => {
|
|
80
|
+
E((t) => s === "left" ? h(t) : g(t)), D(!1), H(null), q(!1), requestAnimationFrame(() => {
|
|
88
81
|
requestAnimationFrame(() => {
|
|
89
|
-
|
|
82
|
+
P(!0);
|
|
90
83
|
});
|
|
91
84
|
});
|
|
92
85
|
});
|
|
93
|
-
},
|
|
94
|
-
return () => clearTimeout(
|
|
86
|
+
}, R);
|
|
87
|
+
return () => clearTimeout(e);
|
|
95
88
|
}
|
|
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
|
-
e[68] !== s ? (O = M(s), e[68] = s, e[69] = O) : O = e[69];
|
|
140
|
-
const te = O;
|
|
141
|
-
let X;
|
|
142
|
-
e[70] !== s ? (X = d(s), e[70] = s, e[71] = X) : X = e[71];
|
|
143
|
-
const ne = X;
|
|
144
|
-
let y;
|
|
145
|
-
return e[72] !== U || e[73] !== B || e[74] !== K || e[75] !== V || e[76] !== Y || e[77] !== i || e[78] !== r || e[79] !== o || e[80] !== n || e[81] !== ee || e[82] !== Z || e[83] !== m || e[84] !== s || e[85] !== ne || e[86] !== te ? (y = {
|
|
146
|
-
leftInternalMonth: n,
|
|
147
|
-
leftPrevMonth: Z,
|
|
148
|
-
leftNextMonth: ee,
|
|
149
|
-
leftCarouselRef: Ae,
|
|
150
|
-
isLeftAnimating: i,
|
|
151
|
-
enableLeftTransition: B,
|
|
152
|
-
leftAnimateTransform: o,
|
|
153
|
-
getLeftTransform: V,
|
|
154
|
-
rightInternalMonth: s,
|
|
155
|
-
rightPrevMonth: te,
|
|
156
|
-
rightNextMonth: ne,
|
|
157
|
-
rightCarouselRef: Re,
|
|
89
|
+
}, [
|
|
90
|
+
r,
|
|
91
|
+
c,
|
|
92
|
+
R,
|
|
93
|
+
s
|
|
94
|
+
]);
|
|
95
|
+
const j = U(() => {
|
|
96
|
+
let e = o, t = l;
|
|
97
|
+
n && i === "left" ? e = h(o) : n && i === "right" && (e = g(o)), r && s === "left" ? t = h(l) : r && s === "right" && (t = g(l));
|
|
98
|
+
const T = Math.max(
|
|
99
|
+
w(e),
|
|
100
|
+
w(t)
|
|
101
|
+
);
|
|
102
|
+
return V(T);
|
|
103
|
+
}, [
|
|
104
|
+
o,
|
|
105
|
+
l,
|
|
106
|
+
n,
|
|
107
|
+
r,
|
|
108
|
+
i,
|
|
109
|
+
s
|
|
110
|
+
]), p = k(() => {
|
|
111
|
+
let e = -I;
|
|
112
|
+
return n && u && (i === "left" ? e = -2 * I : i === "right" && (e = 0)), `translateX(${e}px)`;
|
|
113
|
+
}, [n, u, i]), z = k(() => {
|
|
114
|
+
let e = -I;
|
|
115
|
+
return r && c && (s === "left" ? e = -2 * I : s === "right" && (e = 0)), `translateX(${e}px)`;
|
|
116
|
+
}, [r, c, s]), B = g(o), J = h(o), K = g(l), Q = h(l);
|
|
117
|
+
return {
|
|
118
|
+
// Left month
|
|
119
|
+
leftInternalMonth: o,
|
|
120
|
+
leftPrevMonth: B,
|
|
121
|
+
leftNextMonth: J,
|
|
122
|
+
leftCarouselRef: X,
|
|
123
|
+
isLeftAnimating: n,
|
|
124
|
+
enableLeftTransition: O,
|
|
125
|
+
leftAnimateTransform: u,
|
|
126
|
+
getLeftTransform: p,
|
|
127
|
+
// Right month
|
|
128
|
+
rightInternalMonth: l,
|
|
129
|
+
rightPrevMonth: K,
|
|
130
|
+
rightNextMonth: Q,
|
|
131
|
+
rightCarouselRef: G,
|
|
158
132
|
isRightAnimating: r,
|
|
159
|
-
enableRightTransition:
|
|
160
|
-
rightAnimateTransform:
|
|
161
|
-
getRightTransform:
|
|
162
|
-
|
|
163
|
-
|
|
133
|
+
enableRightTransition: $,
|
|
134
|
+
rightAnimateTransform: c,
|
|
135
|
+
getRightTransform: z,
|
|
136
|
+
// Shared
|
|
137
|
+
calendarHeight: j
|
|
138
|
+
};
|
|
164
139
|
};
|
|
165
140
|
export {
|
|
166
|
-
|
|
141
|
+
y as useIndependentCarousel
|
|
167
142
|
};
|
package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js
CHANGED
|
@@ -16,7 +16,14 @@ const tt = ({
|
|
|
16
16
|
t && n === "left" ? e = [h, H] : t && n === "right" ? e = [x, m] : e = [m, h];
|
|
17
17
|
const r = Math.max(...e.map(U));
|
|
18
18
|
return V(r);
|
|
19
|
-
}, [
|
|
19
|
+
}, [
|
|
20
|
+
t,
|
|
21
|
+
n,
|
|
22
|
+
m,
|
|
23
|
+
h,
|
|
24
|
+
H,
|
|
25
|
+
x
|
|
26
|
+
]), X = 6 * W + 5 * d, T = -2 * (W + d);
|
|
20
27
|
I(() => {
|
|
21
28
|
if (C !== "independent") {
|
|
22
29
|
if (p.current) {
|
|
@@ -68,7 +75,14 @@ const tt = ({
|
|
|
68
75
|
animateTransform: o,
|
|
69
76
|
calendarHeight: N,
|
|
70
77
|
carouselTotalWidth: X,
|
|
71
|
-
monthsToRender: [
|
|
78
|
+
monthsToRender: [
|
|
79
|
+
w,
|
|
80
|
+
x,
|
|
81
|
+
m,
|
|
82
|
+
h,
|
|
83
|
+
H,
|
|
84
|
+
L
|
|
85
|
+
],
|
|
72
86
|
handlePrevMonth: $,
|
|
73
87
|
handleNextMonth: j,
|
|
74
88
|
getTransform: z
|
|
@@ -1,73 +1,107 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
classNames: t
|
|
21
|
-
} = U, p = w === void 0 ? "Start date" : w, f = P === void 0 ? "End date" : P, a = q === void 0 ? "Time" : q, E = z === void 0 ? "Start date" : z, v = G === void 0 ? "End date" : G, T = J === void 0 ? "Invalid date" : J, S = K === void 0 ? "Date is not available" : K, g = M === void 0 ? "Start date must be before end date" : M, I = O === void 0 ? "End date must be after start date" : O;
|
|
22
|
-
let u;
|
|
23
|
-
e[0] !== S || e[1] !== I || e[2] !== T || e[3] !== g ? (u = {
|
|
24
|
-
errorInvalidDate: T,
|
|
25
|
-
errorDateNotAvailable: S,
|
|
26
|
-
errorStartAfterEnd: g,
|
|
27
|
-
errorEndBeforeStart: I
|
|
28
|
-
}, e[0] = S, e[1] = I, e[2] = T, e[3] = g, e[4] = u) : u = e[4];
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { cn as $ } from "../../../../utils/index.js";
|
|
3
|
+
import { dateTimeInputsVariants as k } from "./DateTimeInputs.variants.js";
|
|
4
|
+
import { useDateTimeInputs as w } from "./hooks/useDateTimeInputs.js";
|
|
5
|
+
import { StartInputFields as P } from "./components/StartInputFields/StartInputFields.js";
|
|
6
|
+
import { EndInputFields as R } from "./components/EndInputFields/EndInputFields.js";
|
|
7
|
+
const q = ({
|
|
8
|
+
className: m,
|
|
9
|
+
labelStartDate: u = "Start date",
|
|
10
|
+
labelEndDate: s = "End date",
|
|
11
|
+
labelTime: n = "Time",
|
|
12
|
+
ariaLabelStartDate: D = "Start date",
|
|
13
|
+
ariaLabelEndDate: h = "End date",
|
|
14
|
+
errorInvalidDate: p = "Invalid date",
|
|
15
|
+
errorDateNotAvailable: T = "Date is not available",
|
|
16
|
+
errorStartAfterEnd: g = "Start date must be before end date",
|
|
17
|
+
errorEndBeforeStart: E = "End date must be after start date",
|
|
18
|
+
classNames: a
|
|
19
|
+
}) => {
|
|
29
20
|
const {
|
|
30
21
|
timeFormat: r,
|
|
31
|
-
showTime:
|
|
32
|
-
name:
|
|
33
|
-
disabled:
|
|
34
|
-
time:
|
|
35
|
-
startDateValue:
|
|
36
|
-
startDateError:
|
|
37
|
-
handleStartDateFocus:
|
|
38
|
-
handleStartDateChange:
|
|
39
|
-
handleStartDateBlur:
|
|
40
|
-
handleStartTimeChange:
|
|
41
|
-
endDateValue:
|
|
42
|
-
endDateError:
|
|
43
|
-
handleEndDateFocus:
|
|
44
|
-
handleEndDateChange:
|
|
45
|
-
handleEndDateBlur:
|
|
46
|
-
handleEndTimeChange:
|
|
47
|
-
startHiddenValue:
|
|
48
|
-
endHiddenValue:
|
|
49
|
-
} =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
22
|
+
showTime: d,
|
|
23
|
+
name: t,
|
|
24
|
+
disabled: i,
|
|
25
|
+
time: o,
|
|
26
|
+
startDateValue: c,
|
|
27
|
+
startDateError: V,
|
|
28
|
+
handleStartDateFocus: b,
|
|
29
|
+
handleStartDateChange: f,
|
|
30
|
+
handleStartDateBlur: C,
|
|
31
|
+
handleStartTimeChange: F,
|
|
32
|
+
endDateValue: S,
|
|
33
|
+
endDateError: I,
|
|
34
|
+
handleEndDateFocus: v,
|
|
35
|
+
handleEndDateChange: B,
|
|
36
|
+
handleEndDateBlur: x,
|
|
37
|
+
handleEndTimeChange: y,
|
|
38
|
+
startHiddenValue: j,
|
|
39
|
+
endHiddenValue: H
|
|
40
|
+
} = w({
|
|
41
|
+
errorInvalidDate: p,
|
|
42
|
+
errorDateNotAvailable: T,
|
|
43
|
+
errorStartAfterEnd: g,
|
|
44
|
+
errorEndBeforeStart: E
|
|
45
|
+
});
|
|
46
|
+
return /* @__PURE__ */ l(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: $(k({ className: m }), a?.root),
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ e(
|
|
52
|
+
P,
|
|
53
|
+
{
|
|
54
|
+
dateValue: c,
|
|
55
|
+
timeValue: o.startTime,
|
|
56
|
+
error: V,
|
|
57
|
+
disabled: i,
|
|
58
|
+
showTime: d,
|
|
59
|
+
timeFormat: r,
|
|
60
|
+
labelDate: u,
|
|
61
|
+
labelTime: n,
|
|
62
|
+
ariaLabelDate: D,
|
|
63
|
+
onDateChange: f,
|
|
64
|
+
onDateFocus: b,
|
|
65
|
+
onDateBlur: C,
|
|
66
|
+
onTimeChange: F,
|
|
67
|
+
classNames: a
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
R,
|
|
72
|
+
{
|
|
73
|
+
dateValue: S,
|
|
74
|
+
timeValue: o.endTime,
|
|
75
|
+
error: I,
|
|
76
|
+
disabled: i,
|
|
77
|
+
showTime: d,
|
|
78
|
+
timeFormat: r,
|
|
79
|
+
labelDate: s,
|
|
80
|
+
labelTime: n,
|
|
81
|
+
ariaLabelDate: h,
|
|
82
|
+
onDateChange: B,
|
|
83
|
+
onDateFocus: v,
|
|
84
|
+
onDateBlur: x,
|
|
85
|
+
onTimeChange: y,
|
|
86
|
+
classNames: a
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
t && /* @__PURE__ */ l(L, { children: [
|
|
90
|
+
/* @__PURE__ */ e(
|
|
91
|
+
"input",
|
|
92
|
+
{
|
|
93
|
+
type: "hidden",
|
|
94
|
+
name: `${t}-start`,
|
|
95
|
+
value: j
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ e("input", { type: "hidden", name: `${t}-end`, value: H })
|
|
99
|
+
] })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
);
|
|
69
103
|
};
|
|
70
|
-
|
|
104
|
+
q.displayName = "DateRangePickerDateTimeInputs";
|
|
71
105
|
export {
|
|
72
|
-
|
|
106
|
+
q as DateTimeInputs
|
|
73
107
|
};
|