@easyops-cn/a2ui-react 0.0.3 → 0.0.4
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/0.8/components/display/AudioPlayerComponent.js +2 -2
- package/dist/0.8/components/display/DividerComponent.js +1 -1
- package/dist/0.8/components/display/IconComponent.js +55 -101
- package/dist/0.8/components/display/ImageComponent.js +2 -2
- package/dist/0.8/components/display/TextComponent.js +2 -2
- package/dist/0.8/components/display/VideoComponent.js +2 -2
- package/dist/0.8/components/interactive/ButtonComponent.js +2 -2
- package/dist/0.8/components/interactive/CheckBoxComponent.js +4 -4
- package/dist/0.8/components/interactive/DateTimeInputComponent.js +36 -38
- package/dist/0.8/components/interactive/MultipleChoiceComponent.js +5 -5
- package/dist/0.8/components/interactive/SliderComponent.js +3 -3
- package/dist/0.8/components/interactive/TextFieldComponent.js +5 -5
- package/dist/0.8/components/layout/CardComponent.js +1 -1
- package/dist/0.8/components/layout/ColumnComponent.js +3 -3
- package/dist/0.8/components/layout/ListComponent.js +3 -3
- package/dist/0.8/components/layout/ModalComponent.js +1 -1
- package/dist/0.8/components/layout/RowComponent.js +3 -3
- package/dist/0.8/components/layout/TabsComponent.js +2 -2
- package/dist/0.8/hooks/useDataBinding.js +12 -17
- package/package.json +1 -1
- package/dist/components/ui/button.js +0 -53
- package/dist/components/ui/calendar.js +0 -176
- package/dist/components/ui/card.js +0 -29
- package/dist/components/ui/checkbox.js +0 -31
- package/dist/components/ui/dialog.js +0 -77
- package/dist/components/ui/input.js +0 -21
- package/dist/components/ui/label.js +0 -22
- package/dist/components/ui/popover.js +0 -38
- package/dist/components/ui/select.js +0 -146
- package/dist/components/ui/separator.js +0 -26
- package/dist/components/ui/slider.js +0 -63
- package/dist/components/ui/tabs.js +0 -67
- package/dist/components/ui/textarea.js +0 -18
- package/dist/lib/utils.js +0 -8
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -61
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -69
- package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -22
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -19
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -239
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -845
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +0 -436
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -61
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -163
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -30
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/class-variance-authority/dist/index.js +0 -35
- package/dist/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
- package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -548
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -58
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -49
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -18
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -20
- package/dist/node_modules/date-fns/addDays.js +0 -10
- package/dist/node_modules/date-fns/addMonths.js +0 -20
- package/dist/node_modules/date-fns/addWeeks.js +0 -8
- package/dist/node_modules/date-fns/addYears.js +0 -8
- package/dist/node_modules/date-fns/constants.js +0 -9
- package/dist/node_modules/date-fns/constructFrom.js +0 -8
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -16
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -13
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -17
- package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -17
- package/dist/node_modules/date-fns/endOfISOWeek.js +0 -8
- package/dist/node_modules/date-fns/endOfMonth.js +0 -9
- package/dist/node_modules/date-fns/endOfWeek.js +0 -10
- package/dist/node_modules/date-fns/endOfYear.js +0 -9
- package/dist/node_modules/date-fns/format.js +0 -58
- package/dist/node_modules/date-fns/getDayOfYear.js +0 -11
- package/dist/node_modules/date-fns/getDaysInMonth.js +0 -10
- package/dist/node_modules/date-fns/getDefaultOptions.js +0 -8
- package/dist/node_modules/date-fns/getISODay.js +0 -9
- package/dist/node_modules/date-fns/getISOWeek.js +0 -12
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -15
- package/dist/node_modules/date-fns/getMonth.js +0 -8
- package/dist/node_modules/date-fns/getWeek.js +0 -12
- package/dist/node_modules/date-fns/getWeekYear.js +0 -16
- package/dist/node_modules/date-fns/getYear.js +0 -8
- package/dist/node_modules/date-fns/isAfter.js +0 -8
- package/dist/node_modules/date-fns/isBefore.js +0 -8
- package/dist/node_modules/date-fns/isDate.js +0 -7
- package/dist/node_modules/date-fns/isSameDay.js +0 -14
- package/dist/node_modules/date-fns/isSameMonth.js +0 -13
- package/dist/node_modules/date-fns/isSameYear.js +0 -13
- package/dist/node_modules/date-fns/isValid.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -18
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -31
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -15
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -70
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -155
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -110
- package/dist/node_modules/date-fns/locale/en-US.js +0 -21
- package/dist/node_modules/date-fns/max.js +0 -14
- package/dist/node_modules/date-fns/min.js +0 -14
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -22
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -35
- package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -49
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -55
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -45
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -41
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -25
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -15
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -26
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -26
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -97
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -41
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -41
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -34
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -72
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -63
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -26
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -69
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -26
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -72
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -69
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -100
- package/dist/node_modules/date-fns/parse.js +0 -88
- package/dist/node_modules/date-fns/setDay.js +0 -11
- package/dist/node_modules/date-fns/setISODay.js +0 -11
- package/dist/node_modules/date-fns/setISOWeek.js +0 -10
- package/dist/node_modules/date-fns/setMonth.js +0 -13
- package/dist/node_modules/date-fns/setWeek.js +0 -10
- package/dist/node_modules/date-fns/setYear.js +0 -10
- package/dist/node_modules/date-fns/startOfDay.js +0 -9
- package/dist/node_modules/date-fns/startOfISOWeek.js +0 -8
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -11
- package/dist/node_modules/date-fns/startOfMonth.js +0 -9
- package/dist/node_modules/date-fns/startOfWeek.js +0 -10
- package/dist/node_modules/date-fns/startOfWeekYear.js +0 -12
- package/dist/node_modules/date-fns/startOfYear.js +0 -9
- package/dist/node_modules/date-fns/toDate.js +0 -8
- package/dist/node_modules/date-fns/transpose.js +0 -17
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -35
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -21
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/bell-off.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +0 -11
- package/dist/node_modules/lucide-react/dist/esm/icons/camera.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-user.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/download.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/eye-off.js +0 -23
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/folder.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/heart-off.js +0 -22
- package/dist/node_modules/lucide-react/dist/esm/icons/heart.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/house.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/image.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/lock-open.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/lock.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/map-pin.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/paperclip.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/pencil.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +0 -11
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/send.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/share-2.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/shopping-cart.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/star-half.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/star-off.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/star.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -234
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -148
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -34
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -37
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -104
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -56
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -75
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -32
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -28
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -115
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2765
- package/dist/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import l, { useMemo as T, useCallback as h, useRef as Re } from "react";
|
|
2
|
-
import { DateLib as Ze } from "./classes/DateLib.js";
|
|
3
|
-
import { createGetModifiers as Ie } from "./helpers/createGetModifiers.js";
|
|
4
|
-
import { getClassNamesForModifiers as Ge } from "./helpers/getClassNamesForModifiers.js";
|
|
5
|
-
import { getComponents as He } from "./helpers/getComponents.js";
|
|
6
|
-
import { getDataAttributes as _e } from "./helpers/getDataAttributes.js";
|
|
7
|
-
import { getDefaultClassNames as Ue } from "./helpers/getDefaultClassNames.js";
|
|
8
|
-
import { getFormatters as je } from "./helpers/getFormatters.js";
|
|
9
|
-
import { getLabels as Ve } from "./helpers/getLabels.js";
|
|
10
|
-
import { getMonthOptions as $e } from "./helpers/getMonthOptions.js";
|
|
11
|
-
import { getStyleForModifiers as qe } from "./helpers/getStyleForModifiers.js";
|
|
12
|
-
import { getWeekdays as ze } from "./helpers/getWeekdays.js";
|
|
13
|
-
import { getYearOptions as Je } from "./helpers/getYearOptions.js";
|
|
14
|
-
import { createNoonOverrides as Qe } from "./noonDateLib.js";
|
|
15
|
-
import { UI as n, DayFlag as Xe, SelectionState as w } from "./UI.js";
|
|
16
|
-
import { useAnimation as et } from "./useAnimation.js";
|
|
17
|
-
import { useCalendar as tt } from "./useCalendar.js";
|
|
18
|
-
import { dayPickerContext as at } from "./useDayPicker.js";
|
|
19
|
-
import { useFocus as ot } from "./useFocus.js";
|
|
20
|
-
import { useSelection as nt } from "./useSelection.js";
|
|
21
|
-
import { convertMatchersToTimeZone as K } from "./utils/convertMatchersToTimeZone.js";
|
|
22
|
-
import { rangeIncludesDate as st } from "./utils/rangeIncludesDate.js";
|
|
23
|
-
import { toTimeZone as k } from "./utils/toTimeZone.js";
|
|
24
|
-
import { isDateRange as rt } from "./utils/typeguards.js";
|
|
25
|
-
import { enUS as it } from "./locale/en-US.js";
|
|
26
|
-
function Yt(R) {
|
|
27
|
-
let e = R;
|
|
28
|
-
const u = e.timeZone;
|
|
29
|
-
if (u && (e = {
|
|
30
|
-
...R,
|
|
31
|
-
timeZone: u
|
|
32
|
-
}, e.today && (e.today = k(e.today, u)), e.month && (e.month = k(e.month, u)), e.defaultMonth && (e.defaultMonth = k(e.defaultMonth, u)), e.startMonth && (e.startMonth = k(e.startMonth, u)), e.endMonth && (e.endMonth = k(e.endMonth, u)), e.mode === "single" && e.selected ? e.selected = k(e.selected, u) : e.mode === "multiple" && e.selected ? e.selected = e.selected?.map((o) => k(o, u)) : e.mode === "range" && e.selected && (e.selected = {
|
|
33
|
-
from: e.selected.from ? k(e.selected.from, u) : e.selected.from,
|
|
34
|
-
to: e.selected.to ? k(e.selected.to, u) : e.selected.to
|
|
35
|
-
}), e.disabled !== void 0 && (e.disabled = K(e.disabled, u)), e.hidden !== void 0 && (e.hidden = K(e.hidden, u)), e.modifiers)) {
|
|
36
|
-
const o = {};
|
|
37
|
-
Object.keys(e.modifiers).forEach((i) => {
|
|
38
|
-
o[i] = K(e.modifiers?.[i], u);
|
|
39
|
-
}), e.modifiers = o;
|
|
40
|
-
}
|
|
41
|
-
const { components: m, formatters: v, labels: Z, dateLib: a, locale: se, classNames: d } = T(() => {
|
|
42
|
-
const o = { ...it, ...e.locale }, i = e.broadcastCalendar ? 1 : e.weekStartsOn, t = e.noonSafe && e.timeZone ? Qe(e.timeZone, {
|
|
43
|
-
weekStartsOn: i,
|
|
44
|
-
locale: o
|
|
45
|
-
}) : void 0, r = e.dateLib && t ? { ...t, ...e.dateLib } : e.dateLib ?? t, f = new Ze({
|
|
46
|
-
locale: o,
|
|
47
|
-
weekStartsOn: i,
|
|
48
|
-
firstWeekContainsDate: e.firstWeekContainsDate,
|
|
49
|
-
useAdditionalWeekYearTokens: e.useAdditionalWeekYearTokens,
|
|
50
|
-
useAdditionalDayOfYearTokens: e.useAdditionalDayOfYearTokens,
|
|
51
|
-
timeZone: e.timeZone,
|
|
52
|
-
numerals: e.numerals
|
|
53
|
-
}, r);
|
|
54
|
-
return {
|
|
55
|
-
dateLib: f,
|
|
56
|
-
components: He(e.components),
|
|
57
|
-
formatters: je(e.formatters),
|
|
58
|
-
labels: Ve(e.labels, f.options),
|
|
59
|
-
locale: o,
|
|
60
|
-
classNames: { ...Ue(), ...e.classNames }
|
|
61
|
-
};
|
|
62
|
-
}, [
|
|
63
|
-
e.locale,
|
|
64
|
-
e.broadcastCalendar,
|
|
65
|
-
e.weekStartsOn,
|
|
66
|
-
e.firstWeekContainsDate,
|
|
67
|
-
e.useAdditionalWeekYearTokens,
|
|
68
|
-
e.useAdditionalDayOfYearTokens,
|
|
69
|
-
e.timeZone,
|
|
70
|
-
e.numerals,
|
|
71
|
-
e.dateLib,
|
|
72
|
-
e.noonSafe,
|
|
73
|
-
e.components,
|
|
74
|
-
e.formatters,
|
|
75
|
-
e.labels,
|
|
76
|
-
e.classNames
|
|
77
|
-
]);
|
|
78
|
-
e.today || (e = { ...e, today: a.today() });
|
|
79
|
-
const { captionLayout: N, mode: C, navLayout: D, numberOfMonths: I = 1, onDayBlur: G, onDayClick: W, onDayFocus: H, onDayKeyDown: _, onDayMouseEnter: U, onDayMouseLeave: j, onNextClick: V, onPrevClick: $, showWeekNumber: q, styles: c } = e, { formatCaption: z, formatDay: J, formatMonthDropdown: re, formatWeekNumber: ie, formatWeekNumberHeader: de, formatWeekdayName: le, formatYearDropdown: me } = v, Q = tt(e, a), { days: ce, months: E, navStart: B, navEnd: O, previousMonth: p, nextMonth: b, goToMonth: y } = Q, S = Ie(ce, e, B, O, a), { isSelected: x, select: L, selected: g } = nt(e, a) ?? {}, { blur: X, focused: ee, isFocusTarget: ue, moveFocus: te, setFocused: M } = ot(e, Q, S, x ?? (() => !1), a), { labelDayButton: fe, labelGridcell: pe, labelGrid: be, labelMonthDropdown: he, labelNav: ae, labelPrevious: ye, labelNext: ke, labelWeekday: Ne, labelWeekNumber: ve, labelWeekNumberHeader: De, labelYearDropdown: ge } = Z, Me = T(() => ze(a, e.ISOWeek, e.broadcastCalendar, e.today), [a, e.ISOWeek, e.broadcastCalendar, e.today]), oe = C !== void 0 || W !== void 0, Y = h(() => {
|
|
80
|
-
p && (y(p), $?.(p));
|
|
81
|
-
}, [p, y, $]), P = h(() => {
|
|
82
|
-
b && (y(b), V?.(b));
|
|
83
|
-
}, [y, b, V]), we = h((o, i) => (t) => {
|
|
84
|
-
t.preventDefault(), t.stopPropagation(), M(o), !i.disabled && (L?.(o.date, i, t), W?.(o.date, i, t));
|
|
85
|
-
}, [L, W, M]), Ce = h((o, i) => (t) => {
|
|
86
|
-
M(o), H?.(o.date, i, t);
|
|
87
|
-
}, [H, M]), We = h((o, i) => (t) => {
|
|
88
|
-
X(), G?.(o.date, i, t);
|
|
89
|
-
}, [X, G]), Ee = h((o, i) => (t) => {
|
|
90
|
-
const r = {
|
|
91
|
-
ArrowLeft: [
|
|
92
|
-
t.shiftKey ? "month" : "day",
|
|
93
|
-
e.dir === "rtl" ? "after" : "before"
|
|
94
|
-
],
|
|
95
|
-
ArrowRight: [
|
|
96
|
-
t.shiftKey ? "month" : "day",
|
|
97
|
-
e.dir === "rtl" ? "before" : "after"
|
|
98
|
-
],
|
|
99
|
-
ArrowDown: [t.shiftKey ? "year" : "week", "after"],
|
|
100
|
-
ArrowUp: [t.shiftKey ? "year" : "week", "before"],
|
|
101
|
-
PageUp: [t.shiftKey ? "year" : "month", "before"],
|
|
102
|
-
PageDown: [t.shiftKey ? "year" : "month", "after"],
|
|
103
|
-
Home: ["startOfWeek", "before"],
|
|
104
|
-
End: ["endOfWeek", "after"]
|
|
105
|
-
};
|
|
106
|
-
if (r[t.key]) {
|
|
107
|
-
t.preventDefault(), t.stopPropagation();
|
|
108
|
-
const [f, s] = r[t.key];
|
|
109
|
-
te(f, s);
|
|
110
|
-
}
|
|
111
|
-
_?.(o.date, i, t);
|
|
112
|
-
}, [te, _, e.dir]), Be = h((o, i) => (t) => {
|
|
113
|
-
U?.(o.date, i, t);
|
|
114
|
-
}, [U]), Oe = h((o, i) => (t) => {
|
|
115
|
-
j?.(o.date, i, t);
|
|
116
|
-
}, [j]), Se = h((o) => (i) => {
|
|
117
|
-
const t = Number(i.target.value), r = a.setMonth(a.startOfMonth(o), t);
|
|
118
|
-
y(r);
|
|
119
|
-
}, [a, y]), xe = h((o) => (i) => {
|
|
120
|
-
const t = Number(i.target.value), r = a.setYear(a.startOfMonth(o), t);
|
|
121
|
-
y(r);
|
|
122
|
-
}, [a, y]), { className: Le, style: Ye } = T(() => ({
|
|
123
|
-
className: [d[n.Root], e.className].filter(Boolean).join(" "),
|
|
124
|
-
style: { ...c?.[n.Root], ...e.style }
|
|
125
|
-
}), [d, e.className, e.style, c]), Pe = _e(e), ne = Re(null);
|
|
126
|
-
et(ne, !!e.animate, {
|
|
127
|
-
classNames: d,
|
|
128
|
-
months: E,
|
|
129
|
-
focused: ee,
|
|
130
|
-
dateLib: a
|
|
131
|
-
});
|
|
132
|
-
const Fe = {
|
|
133
|
-
dayPickerProps: e,
|
|
134
|
-
selected: g,
|
|
135
|
-
select: L,
|
|
136
|
-
isSelected: x,
|
|
137
|
-
months: E,
|
|
138
|
-
nextMonth: b,
|
|
139
|
-
previousMonth: p,
|
|
140
|
-
goToMonth: y,
|
|
141
|
-
getModifiers: S,
|
|
142
|
-
components: m,
|
|
143
|
-
classNames: d,
|
|
144
|
-
styles: c,
|
|
145
|
-
labels: Z,
|
|
146
|
-
formatters: v
|
|
147
|
-
};
|
|
148
|
-
return l.createElement(
|
|
149
|
-
at.Provider,
|
|
150
|
-
{ value: Fe },
|
|
151
|
-
l.createElement(
|
|
152
|
-
m.Root,
|
|
153
|
-
{ rootRef: e.animate ? ne : void 0, className: Le, style: Ye, dir: e.dir, id: e.id, lang: e.lang, nonce: e.nonce, title: e.title, role: e.role, "aria-label": e["aria-label"], "aria-labelledby": e["aria-labelledby"], ...Pe },
|
|
154
|
-
l.createElement(
|
|
155
|
-
m.Months,
|
|
156
|
-
{ className: d[n.Months], style: c?.[n.Months] },
|
|
157
|
-
!e.hideNavigation && !D && l.createElement(m.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: d[n.Nav], style: c?.[n.Nav], "aria-label": ae(), onPreviousClick: Y, onNextClick: P, previousMonth: p, nextMonth: b }),
|
|
158
|
-
E.map((o, i) => l.createElement(
|
|
159
|
-
m.Month,
|
|
160
|
-
{
|
|
161
|
-
"data-animated-month": e.animate ? "true" : void 0,
|
|
162
|
-
className: d[n.Month],
|
|
163
|
-
style: c?.[n.Month],
|
|
164
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
165
|
-
key: i,
|
|
166
|
-
displayIndex: i,
|
|
167
|
-
calendarMonth: o
|
|
168
|
-
},
|
|
169
|
-
D === "around" && !e.hideNavigation && i === 0 && l.createElement(
|
|
170
|
-
m.PreviousMonthButton,
|
|
171
|
-
{ type: "button", className: d[n.PreviousMonthButton], tabIndex: p ? void 0 : -1, "aria-disabled": p ? void 0 : !0, "aria-label": ye(p), onClick: Y, "data-animated-button": e.animate ? "true" : void 0 },
|
|
172
|
-
l.createElement(m.Chevron, { disabled: p ? void 0 : !0, className: d[n.Chevron], orientation: e.dir === "rtl" ? "right" : "left" })
|
|
173
|
-
),
|
|
174
|
-
l.createElement(m.MonthCaption, { "data-animated-caption": e.animate ? "true" : void 0, className: d[n.MonthCaption], style: c?.[n.MonthCaption], calendarMonth: o, displayIndex: i }, N?.startsWith("dropdown") ? l.createElement(
|
|
175
|
-
m.DropdownNav,
|
|
176
|
-
{ className: d[n.Dropdowns], style: c?.[n.Dropdowns] },
|
|
177
|
-
(() => {
|
|
178
|
-
const t = N === "dropdown" || N === "dropdown-months" ? l.createElement(m.MonthsDropdown, { key: "month", className: d[n.MonthsDropdown], "aria-label": he(), classNames: d, components: m, disabled: !!e.disableNavigation, onChange: Se(o.date), options: $e(o.date, B, O, v, a), style: c?.[n.Dropdown], value: a.getMonth(o.date) }) : l.createElement("span", { key: "month" }, re(o.date, a)), r = N === "dropdown" || N === "dropdown-years" ? l.createElement(m.YearsDropdown, { key: "year", className: d[n.YearsDropdown], "aria-label": ge(a.options), classNames: d, components: m, disabled: !!e.disableNavigation, onChange: xe(o.date), options: Je(B, O, v, a, !!e.reverseYears), style: c?.[n.Dropdown], value: a.getYear(o.date) }) : l.createElement("span", { key: "year" }, me(o.date, a));
|
|
179
|
-
return a.getMonthYearOrder() === "year-first" ? [r, t] : [t, r];
|
|
180
|
-
})(),
|
|
181
|
-
l.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
182
|
-
border: 0,
|
|
183
|
-
clip: "rect(0 0 0 0)",
|
|
184
|
-
height: "1px",
|
|
185
|
-
margin: "-1px",
|
|
186
|
-
overflow: "hidden",
|
|
187
|
-
padding: 0,
|
|
188
|
-
position: "absolute",
|
|
189
|
-
width: "1px",
|
|
190
|
-
whiteSpace: "nowrap",
|
|
191
|
-
wordWrap: "normal"
|
|
192
|
-
} }, z(o.date, a.options, a))
|
|
193
|
-
) : l.createElement(m.CaptionLabel, { className: d[n.CaptionLabel], role: "status", "aria-live": "polite" }, z(o.date, a.options, a))),
|
|
194
|
-
D === "around" && !e.hideNavigation && i === I - 1 && l.createElement(
|
|
195
|
-
m.NextMonthButton,
|
|
196
|
-
{ type: "button", className: d[n.NextMonthButton], tabIndex: b ? void 0 : -1, "aria-disabled": b ? void 0 : !0, "aria-label": ke(b), onClick: P, "data-animated-button": e.animate ? "true" : void 0 },
|
|
197
|
-
l.createElement(m.Chevron, { disabled: b ? void 0 : !0, className: d[n.Chevron], orientation: e.dir === "rtl" ? "left" : "right" })
|
|
198
|
-
),
|
|
199
|
-
i === I - 1 && D === "after" && !e.hideNavigation && l.createElement(m.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: d[n.Nav], style: c?.[n.Nav], "aria-label": ae(), onPreviousClick: Y, onNextClick: P, previousMonth: p, nextMonth: b }),
|
|
200
|
-
l.createElement(
|
|
201
|
-
m.MonthGrid,
|
|
202
|
-
{ role: "grid", "aria-multiselectable": C === "multiple" || C === "range", "aria-label": be(o.date, a.options, a) || void 0, className: d[n.MonthGrid], style: c?.[n.MonthGrid] },
|
|
203
|
-
!e.hideWeekdays && l.createElement(
|
|
204
|
-
m.Weekdays,
|
|
205
|
-
{ "data-animated-weekdays": e.animate ? "true" : void 0, className: d[n.Weekdays], style: c?.[n.Weekdays] },
|
|
206
|
-
q && l.createElement(m.WeekNumberHeader, { "aria-label": De(a.options), className: d[n.WeekNumberHeader], style: c?.[n.WeekNumberHeader], scope: "col" }, de()),
|
|
207
|
-
Me.map((t) => l.createElement(m.Weekday, { "aria-label": Ne(t, a.options, a), className: d[n.Weekday], key: String(t), style: c?.[n.Weekday], scope: "col" }, le(t, a.options, a)))
|
|
208
|
-
),
|
|
209
|
-
l.createElement(m.Weeks, { "data-animated-weeks": e.animate ? "true" : void 0, className: d[n.Weeks], style: c?.[n.Weeks] }, o.weeks.map((t) => l.createElement(
|
|
210
|
-
m.Week,
|
|
211
|
-
{ className: d[n.Week], key: t.weekNumber, style: c?.[n.Week], week: t },
|
|
212
|
-
q && l.createElement(m.WeekNumber, { week: t, style: c?.[n.WeekNumber], "aria-label": ve(t.weekNumber, {
|
|
213
|
-
locale: se
|
|
214
|
-
}), className: d[n.WeekNumber], scope: "row", role: "rowheader" }, ie(t.weekNumber, a)),
|
|
215
|
-
t.days.map((r) => {
|
|
216
|
-
const { date: f } = r, s = S(r);
|
|
217
|
-
if (s[Xe.focused] = !s.hidden && !!ee?.isEqualTo(r), s[w.selected] = x?.(f) || s.selected, rt(g)) {
|
|
218
|
-
const { from: F, to: A } = g;
|
|
219
|
-
s[w.range_start] = !!(F && A && a.isSameDay(f, F)), s[w.range_end] = !!(F && A && a.isSameDay(f, A)), s[w.range_middle] = st(g, f, !0, a);
|
|
220
|
-
}
|
|
221
|
-
const Ae = qe(s, c, e.modifiersStyles), Te = Ge(s, d, e.modifiersClassNames), Ke = !oe && !s.hidden ? pe(f, s, a.options, a) : void 0;
|
|
222
|
-
return l.createElement(m.Day, { key: `${r.isoDate}_${r.displayMonthId}`, day: r, modifiers: s, className: Te.join(" "), style: Ae, role: "gridcell", "aria-selected": s.selected || void 0, "aria-label": Ke, "data-day": r.isoDate, "data-month": r.outside ? r.dateMonthId : void 0, "data-selected": s.selected || void 0, "data-disabled": s.disabled || void 0, "data-hidden": s.hidden || void 0, "data-outside": r.outside || void 0, "data-focused": s.focused || void 0, "data-today": s.today || void 0 }, !s.hidden && oe ? l.createElement(m.DayButton, { className: d[n.DayButton], style: c?.[n.DayButton], type: "button", day: r, modifiers: s, disabled: !s.focused && s.disabled || void 0, "aria-disabled": s.focused && s.disabled || void 0, tabIndex: ue(r) ? 0 : -1, "aria-label": fe(f, s, a.options, a), onClick: we(r, s), onBlur: We(r, s), onFocus: Ce(r, s), onKeyDown: Ee(r, s), onMouseEnter: Be(r, s), onMouseLeave: Oe(r, s) }, J(f, a.options, a)) : !s.hidden && J(r.date, a.options, a));
|
|
223
|
-
})
|
|
224
|
-
)))
|
|
225
|
-
)
|
|
226
|
-
))
|
|
227
|
-
),
|
|
228
|
-
e.footer && l.createElement(m.Footer, { className: d[n.Footer], style: c?.[n.Footer], role: "status", "aria-live": "polite" }, e.footer)
|
|
229
|
-
)
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
export {
|
|
233
|
-
Yt as DayPicker
|
|
234
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var o;
|
|
2
|
-
(function(e) {
|
|
3
|
-
e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
|
|
4
|
-
})(o || (o = {}));
|
|
5
|
-
var t;
|
|
6
|
-
(function(e) {
|
|
7
|
-
e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
|
|
8
|
-
})(t || (t = {}));
|
|
9
|
-
var r;
|
|
10
|
-
(function(e) {
|
|
11
|
-
e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
|
|
12
|
-
})(r || (r = {}));
|
|
13
|
-
var n;
|
|
14
|
-
(function(e) {
|
|
15
|
-
e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
|
|
16
|
-
})(n || (n = {}));
|
|
17
|
-
export {
|
|
18
|
-
n as Animation,
|
|
19
|
-
t as DayFlag,
|
|
20
|
-
r as SelectionState,
|
|
21
|
-
o as UI
|
|
22
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defaultDateLib as o } from "./DateLib.js";
|
|
2
|
-
class y {
|
|
3
|
-
constructor(t, i, s = o) {
|
|
4
|
-
this.date = t, this.displayMonth = i, this.outside = !!(i && !s.isSameMonth(t, i)), this.dateLib = s, this.isoDate = s.format(t, "yyyy-MM-dd"), this.displayMonthId = s.format(i, "yyyy-MM"), this.dateMonthId = s.format(t, "yyyy-MM");
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Checks if this day is equal to another `CalendarDay`, considering both the
|
|
8
|
-
* date and the displayed month.
|
|
9
|
-
*
|
|
10
|
-
* @param day The `CalendarDay` to compare with.
|
|
11
|
-
* @returns `true` if the days are equal, otherwise `false`.
|
|
12
|
-
*/
|
|
13
|
-
isEqualTo(t) {
|
|
14
|
-
return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
y as CalendarDay
|
|
19
|
-
};
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { TZDate as a } from "../../../../@date-fns/tz/date/index.js";
|
|
2
|
-
import "../../../../@date-fns/tz/date/mini.js";
|
|
3
|
-
import { endOfBroadcastWeek as f } from "../helpers/endOfBroadcastWeek.js";
|
|
4
|
-
import { startOfBroadcastWeek as d } from "../helpers/startOfBroadcastWeek.js";
|
|
5
|
-
import { enUS as m } from "../locale/en-US.js";
|
|
6
|
-
import { addDays as v } from "../../../../date-fns/addDays.js";
|
|
7
|
-
import { addMonths as p } from "../../../../date-fns/addMonths.js";
|
|
8
|
-
import { addWeeks as O } from "../../../../date-fns/addWeeks.js";
|
|
9
|
-
import { addYears as c } from "../../../../date-fns/addYears.js";
|
|
10
|
-
import { differenceInCalendarDays as u } from "../../../../date-fns/differenceInCalendarDays.js";
|
|
11
|
-
import { differenceInCalendarMonths as l } from "../../../../date-fns/differenceInCalendarMonths.js";
|
|
12
|
-
import { eachMonthOfInterval as M } from "../../../../date-fns/eachMonthOfInterval.js";
|
|
13
|
-
import { eachYearOfInterval as k } from "../../../../date-fns/eachYearOfInterval.js";
|
|
14
|
-
import { endOfISOWeek as W } from "../../../../date-fns/endOfISOWeek.js";
|
|
15
|
-
import { endOfMonth as D } from "../../../../date-fns/endOfMonth.js";
|
|
16
|
-
import { endOfWeek as Y } from "../../../../date-fns/endOfWeek.js";
|
|
17
|
-
import { endOfYear as S } from "../../../../date-fns/endOfYear.js";
|
|
18
|
-
import { getISOWeek as y } from "../../../../date-fns/getISOWeek.js";
|
|
19
|
-
import { getMonth as g } from "../../../../date-fns/getMonth.js";
|
|
20
|
-
import { getYear as I } from "../../../../date-fns/getYear.js";
|
|
21
|
-
import { getWeek as w } from "../../../../date-fns/getWeek.js";
|
|
22
|
-
import { isAfter as B } from "../../../../date-fns/isAfter.js";
|
|
23
|
-
import { isBefore as L } from "../../../../date-fns/isBefore.js";
|
|
24
|
-
import { isDate as C } from "../../../../date-fns/isDate.js";
|
|
25
|
-
import { isSameDay as z } from "../../../../date-fns/isSameDay.js";
|
|
26
|
-
import { isSameMonth as Z } from "../../../../date-fns/isSameMonth.js";
|
|
27
|
-
import { isSameYear as b } from "../../../../date-fns/isSameYear.js";
|
|
28
|
-
import { max as A } from "../../../../date-fns/max.js";
|
|
29
|
-
import { min as F } from "../../../../date-fns/min.js";
|
|
30
|
-
import { setMonth as N } from "../../../../date-fns/setMonth.js";
|
|
31
|
-
import { setYear as _ } from "../../../../date-fns/setYear.js";
|
|
32
|
-
import { startOfDay as j } from "../../../../date-fns/startOfDay.js";
|
|
33
|
-
import { startOfISOWeek as x } from "../../../../date-fns/startOfISOWeek.js";
|
|
34
|
-
import { startOfMonth as H } from "../../../../date-fns/startOfMonth.js";
|
|
35
|
-
import { startOfWeek as K } from "../../../../date-fns/startOfWeek.js";
|
|
36
|
-
import { startOfYear as T } from "../../../../date-fns/startOfYear.js";
|
|
37
|
-
import { formatDate as U } from "../../../../date-fns/format.js";
|
|
38
|
-
class n {
|
|
39
|
-
/**
|
|
40
|
-
* Creates an instance of `DateLib`.
|
|
41
|
-
*
|
|
42
|
-
* @param options Configuration options for the date library.
|
|
43
|
-
* @param overrides Custom overrides for the date library functions.
|
|
44
|
-
*/
|
|
45
|
-
constructor(t, i) {
|
|
46
|
-
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? a.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, e, s) => this.overrides?.newDate ? this.overrides.newDate(r, e, s) : this.options.timeZone ? new a(r, e, s, this.options.timeZone) : new Date(r, e, s), this.addDays = (r, e) => this.overrides?.addDays ? this.overrides.addDays(r, e) : v(r, e), this.addMonths = (r, e) => this.overrides?.addMonths ? this.overrides.addMonths(r, e) : p(r, e), this.addWeeks = (r, e) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, e) : O(r, e), this.addYears = (r, e) => this.overrides?.addYears ? this.overrides.addYears(r, e) : c(r, e), this.differenceInCalendarDays = (r, e) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, e) : u(r, e), this.differenceInCalendarMonths = (r, e) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, e) : l(r, e), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : M(r), this.eachYearOfInterval = (r) => {
|
|
47
|
-
const e = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : k(r), s = new Set(e.map((h) => this.getYear(h)));
|
|
48
|
-
if (s.size === e.length)
|
|
49
|
-
return e;
|
|
50
|
-
const o = [];
|
|
51
|
-
return s.forEach((h) => {
|
|
52
|
-
o.push(new Date(h, 0, 1));
|
|
53
|
-
}), o;
|
|
54
|
-
}, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : f(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : W(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : D(r), this.endOfWeek = (r, e) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, e) : Y(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : S(r), this.format = (r, e, s) => {
|
|
55
|
-
const o = this.overrides?.format ? this.overrides.format(r, e, this.options) : U(r, e, this.options);
|
|
56
|
-
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(o) : o;
|
|
57
|
-
}, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : y(r), this.getMonth = (r, e) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : g(r, this.options), this.getYear = (r, e) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : I(r, this.options), this.getWeek = (r, e) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : w(r, this.options), this.isAfter = (r, e) => this.overrides?.isAfter ? this.overrides.isAfter(r, e) : B(r, e), this.isBefore = (r, e) => this.overrides?.isBefore ? this.overrides.isBefore(r, e) : L(r, e), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : C(r), this.isSameDay = (r, e) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, e) : z(r, e), this.isSameMonth = (r, e) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, e) : Z(r, e), this.isSameYear = (r, e) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, e) : b(r, e), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : A(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : F(r), this.setMonth = (r, e) => this.overrides?.setMonth ? this.overrides.setMonth(r, e) : N(r, e), this.setYear = (r, e) => this.overrides?.setYear ? this.overrides.setYear(r, e) : _(r, e), this.startOfBroadcastWeek = (r, e) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : d(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : j(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : x(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : H(r), this.startOfWeek = (r, e) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : K(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : T(r), this.options = { locale: m, ...t }, this.overrides = i;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Generates a mapping of Arabic digits (0-9) to the target numbering system
|
|
61
|
-
* digits.
|
|
62
|
-
*
|
|
63
|
-
* @since 9.5.0
|
|
64
|
-
* @returns A record mapping Arabic digits to the target numerals.
|
|
65
|
-
*/
|
|
66
|
-
getDigitMap() {
|
|
67
|
-
const { numerals: t = "latn" } = this.options, i = new Intl.NumberFormat("en-US", {
|
|
68
|
-
numberingSystem: t
|
|
69
|
-
}), r = {};
|
|
70
|
-
for (let e = 0; e < 10; e++)
|
|
71
|
-
r[e.toString()] = i.format(e);
|
|
72
|
-
return r;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Replaces Arabic digits in a string with the target numbering system digits.
|
|
76
|
-
*
|
|
77
|
-
* @since 9.5.0
|
|
78
|
-
* @param input The string containing Arabic digits.
|
|
79
|
-
* @returns The string with digits replaced.
|
|
80
|
-
*/
|
|
81
|
-
replaceDigits(t) {
|
|
82
|
-
const i = this.getDigitMap();
|
|
83
|
-
return t.replace(/\d/g, (r) => i[r] || r);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Formats a number using the configured numbering system.
|
|
87
|
-
*
|
|
88
|
-
* @since 9.5.0
|
|
89
|
-
* @param value The number to format.
|
|
90
|
-
* @returns The formatted number as a string.
|
|
91
|
-
*/
|
|
92
|
-
formatNumber(t) {
|
|
93
|
-
return this.replaceDigits(t.toString());
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Returns the preferred ordering for month and year labels for the current
|
|
97
|
-
* locale.
|
|
98
|
-
*/
|
|
99
|
-
getMonthYearOrder() {
|
|
100
|
-
const t = this.options.locale?.code;
|
|
101
|
-
return t && n.yearFirstLocales.has(t) ? "year-first" : "month-first";
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Formats the month/year pair respecting locale conventions.
|
|
105
|
-
*
|
|
106
|
-
* @since 9.11.0
|
|
107
|
-
*/
|
|
108
|
-
formatMonthYear(t) {
|
|
109
|
-
const { locale: i, timeZone: r, numerals: e } = this.options, s = i?.code;
|
|
110
|
-
if (s && n.yearFirstLocales.has(s))
|
|
111
|
-
try {
|
|
112
|
-
return new Intl.DateTimeFormat(s, {
|
|
113
|
-
month: "long",
|
|
114
|
-
year: "numeric",
|
|
115
|
-
timeZone: r,
|
|
116
|
-
numberingSystem: e
|
|
117
|
-
}).format(t);
|
|
118
|
-
} catch {
|
|
119
|
-
}
|
|
120
|
-
const o = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
|
|
121
|
-
return this.format(t, o);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
n.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
125
|
-
"eu",
|
|
126
|
-
"hu",
|
|
127
|
-
"ja",
|
|
128
|
-
"ja-Hira",
|
|
129
|
-
"ja-JP",
|
|
130
|
-
"ko",
|
|
131
|
-
"ko-KR",
|
|
132
|
-
"lt",
|
|
133
|
-
"lt-LT",
|
|
134
|
-
"lv",
|
|
135
|
-
"lv-LV",
|
|
136
|
-
"mn",
|
|
137
|
-
"mn-MN",
|
|
138
|
-
"zh",
|
|
139
|
-
"zh-CN",
|
|
140
|
-
"zh-HK",
|
|
141
|
-
"zh-TW"
|
|
142
|
-
]);
|
|
143
|
-
const Br = new n();
|
|
144
|
-
export {
|
|
145
|
-
n as DateLib,
|
|
146
|
-
Br as defaultDateLib,
|
|
147
|
-
m as defaultLocale
|
|
148
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
function r(n) {
|
|
3
|
-
const { size: o = 24, orientation: t = "left", className: l } = n;
|
|
4
|
-
return (
|
|
5
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
6
|
-
e.createElement(
|
|
7
|
-
"svg",
|
|
8
|
-
{ className: l, width: o, height: o, viewBox: "0 0 24 24" },
|
|
9
|
-
t === "up" && e.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
|
|
10
|
-
t === "down" && e.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
|
|
11
|
-
t === "left" && e.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
|
|
12
|
-
t === "right" && e.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
|
|
13
|
-
)
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
r as Chevron
|
|
18
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
function c(f) {
|
|
3
|
-
const { day: r, modifiers: t, ...u } = f, o = e.useRef(null);
|
|
4
|
-
return e.useEffect(() => {
|
|
5
|
-
t.focused && o.current?.focus();
|
|
6
|
-
}, [t.focused]), e.createElement("button", { ref: o, ...u });
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
c as DayButton
|
|
10
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
import { UI as o } from "../UI.js";
|
|
3
|
-
function f(c) {
|
|
4
|
-
const { options: l, className: r, components: s, classNames: a, ...n } = c, i = [a[o.Dropdown], r].join(" "), m = l?.find(({ value: t }) => t === n.value);
|
|
5
|
-
return e.createElement(
|
|
6
|
-
"span",
|
|
7
|
-
{ "data-disabled": n.disabled, className: a[o.DropdownRoot] },
|
|
8
|
-
e.createElement(s.Select, { className: i, ...n }, l?.map(({ value: t, label: d, disabled: p }) => e.createElement(s.Option, { key: t, value: t, disabled: p }, d))),
|
|
9
|
-
e.createElement(
|
|
10
|
-
"span",
|
|
11
|
-
{ className: a[o.CaptionLabel], "aria-hidden": !0 },
|
|
12
|
-
m?.label,
|
|
13
|
-
e.createElement(s.Chevron, { orientation: "down", size: 18, className: a[o.Chevron] })
|
|
14
|
-
)
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
f as Dropdown
|
|
19
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import n, { useCallback as u } from "react";
|
|
2
|
-
import { UI as i } from "../UI.js";
|
|
3
|
-
import { useDayPicker as v } from "../useDayPicker.js";
|
|
4
|
-
function x(c) {
|
|
5
|
-
const { onPreviousClick: l, onNextClick: s, previousMonth: e, nextMonth: t, ...d } = c, { components: a, classNames: o, labels: { labelPrevious: m, labelNext: b } } = v(), f = u((r) => {
|
|
6
|
-
t && s?.(r);
|
|
7
|
-
}, [t, s]), h = u((r) => {
|
|
8
|
-
e && l?.(r);
|
|
9
|
-
}, [e, l]);
|
|
10
|
-
return n.createElement(
|
|
11
|
-
"nav",
|
|
12
|
-
{ ...d },
|
|
13
|
-
n.createElement(
|
|
14
|
-
a.PreviousMonthButton,
|
|
15
|
-
{ type: "button", className: o[i.PreviousMonthButton], tabIndex: e ? void 0 : -1, "aria-disabled": e ? void 0 : !0, "aria-label": m(e), onClick: h },
|
|
16
|
-
n.createElement(a.Chevron, { disabled: e ? void 0 : !0, className: o[i.Chevron], orientation: "left" })
|
|
17
|
-
),
|
|
18
|
-
n.createElement(
|
|
19
|
-
a.NextMonthButton,
|
|
20
|
-
{ type: "button", className: o[i.NextMonthButton], tabIndex: t ? void 0 : -1, "aria-disabled": t ? void 0 : !0, "aria-label": b(t), onClick: f },
|
|
21
|
-
n.createElement(a.Chevron, { disabled: t ? void 0 : !0, orientation: "right", className: o[i.Chevron] })
|
|
22
|
-
)
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
x as Nav
|
|
27
|
-
};
|