@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,20 +0,0 @@
|
|
|
1
|
-
const r = /^D+$/, s = /^Y+$/, a = ["D", "DD", "YY", "YYYY"];
|
|
2
|
-
function i(e) {
|
|
3
|
-
return r.test(e);
|
|
4
|
-
}
|
|
5
|
-
function f(e) {
|
|
6
|
-
return s.test(e);
|
|
7
|
-
}
|
|
8
|
-
function d(e, o, n) {
|
|
9
|
-
const t = c(e, o, n);
|
|
10
|
-
if (console.warn(t), a.includes(e)) throw new RangeError(t);
|
|
11
|
-
}
|
|
12
|
-
function c(e, o, n) {
|
|
13
|
-
const t = e[0] === "Y" ? "years" : "days of the month";
|
|
14
|
-
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${o}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
i as isProtectedDayOfYearToken,
|
|
18
|
-
f as isProtectedWeekYearToken,
|
|
19
|
-
d as warnOrThrowProtectedError
|
|
20
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { constructFrom as i } from "./constructFrom.js";
|
|
2
|
-
import { toDate as f } from "./toDate.js";
|
|
3
|
-
function s(e, r, a) {
|
|
4
|
-
const t = f(e, a?.in);
|
|
5
|
-
return isNaN(r) ? i(a?.in || e, NaN) : (r && t.setDate(t.getDate() + r), t);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
s as addDays,
|
|
9
|
-
s as default
|
|
10
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { constructFrom as s } from "./constructFrom.js";
|
|
2
|
-
import { toDate as f } from "./toDate.js";
|
|
3
|
-
function u(n, o, i) {
|
|
4
|
-
const t = f(n, i?.in);
|
|
5
|
-
if (isNaN(o)) return s(n, NaN);
|
|
6
|
-
if (!o)
|
|
7
|
-
return t;
|
|
8
|
-
const r = t.getDate(), e = s(n, t.getTime());
|
|
9
|
-
e.setMonth(t.getMonth() + o + 1, 0);
|
|
10
|
-
const a = e.getDate();
|
|
11
|
-
return r >= a ? e : (t.setFullYear(
|
|
12
|
-
e.getFullYear(),
|
|
13
|
-
e.getMonth(),
|
|
14
|
-
r
|
|
15
|
-
), t);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
u as addMonths,
|
|
19
|
-
u as default
|
|
20
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const o = 6048e5, n = 864e5, s = 6e4, c = 36e5, t = 1e3, l = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
2
|
-
export {
|
|
3
|
-
l as constructFromSymbol,
|
|
4
|
-
n as millisecondsInDay,
|
|
5
|
-
c as millisecondsInHour,
|
|
6
|
-
s as millisecondsInMinute,
|
|
7
|
-
t as millisecondsInSecond,
|
|
8
|
-
o as millisecondsInWeek
|
|
9
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { constructFromSymbol as o } from "./constants.js";
|
|
2
|
-
function c(r, n) {
|
|
3
|
-
return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
c as constructFrom,
|
|
7
|
-
c as default
|
|
8
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getTimezoneOffsetInMilliseconds as r } from "./_lib/getTimezoneOffsetInMilliseconds.js";
|
|
2
|
-
import { normalizeDates as c } from "./_lib/normalizeDates.js";
|
|
3
|
-
import { millisecondsInDay as D } from "./constants.js";
|
|
4
|
-
import { startOfDay as a } from "./startOfDay.js";
|
|
5
|
-
function O(o, n, i) {
|
|
6
|
-
const [s, m] = c(
|
|
7
|
-
i?.in,
|
|
8
|
-
o,
|
|
9
|
-
n
|
|
10
|
-
), t = a(s), e = a(m), f = +t - r(t), l = +e - r(e);
|
|
11
|
-
return Math.round((f - l) / D);
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
O as default,
|
|
15
|
-
O as differenceInCalendarDays
|
|
16
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { normalizeDates as l } from "./_lib/normalizeDates.js";
|
|
2
|
-
function s(n, r, a) {
|
|
3
|
-
const [e, t] = l(
|
|
4
|
-
a?.in,
|
|
5
|
-
n,
|
|
6
|
-
r
|
|
7
|
-
), o = e.getFullYear() - t.getFullYear(), f = e.getMonth() - t.getMonth();
|
|
8
|
-
return o * 12 + f;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
s as default,
|
|
12
|
-
s as differenceInCalendarMonths
|
|
13
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { normalizeInterval as l } from "./_lib/normalizeInterval.js";
|
|
2
|
-
import { constructFrom as m } from "./constructFrom.js";
|
|
3
|
-
function u(s, a) {
|
|
4
|
-
const { start: e, end: r } = l(a?.in, s);
|
|
5
|
-
let n = +e > +r;
|
|
6
|
-
const c = n ? +e : +r, t = n ? r : e;
|
|
7
|
-
t.setHours(0, 0, 0, 0), t.setDate(1);
|
|
8
|
-
let i = 1;
|
|
9
|
-
const o = [];
|
|
10
|
-
for (; +t <= c; )
|
|
11
|
-
o.push(m(e, t)), t.setMonth(t.getMonth() + i);
|
|
12
|
-
return n ? o.reverse() : o;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
u as default,
|
|
16
|
-
u as eachMonthOfInterval
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { normalizeInterval as u } from "./_lib/normalizeInterval.js";
|
|
2
|
-
import { constructFrom as i } from "./constructFrom.js";
|
|
3
|
-
function f(o, a) {
|
|
4
|
-
const { start: t, end: r } = u(a?.in, o);
|
|
5
|
-
let s = +t > +r;
|
|
6
|
-
const l = s ? +t : +r, e = s ? r : t;
|
|
7
|
-
e.setHours(0, 0, 0, 0), e.setMonth(0, 1);
|
|
8
|
-
let c = 1;
|
|
9
|
-
const n = [];
|
|
10
|
-
for (; +e <= l; )
|
|
11
|
-
n.push(i(t, e)), e.setFullYear(e.getFullYear() + c);
|
|
12
|
-
return s ? n.reverse() : n;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
f as default,
|
|
16
|
-
f as eachYearOfInterval
|
|
17
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getDefaultOptions as f } from "./_lib/defaultOptions.js";
|
|
2
|
-
import { toDate as c } from "./toDate.js";
|
|
3
|
-
function l(s, e) {
|
|
4
|
-
const a = f(), n = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, t = c(s, e?.in), o = t.getDay(), r = (o < n ? -7 : 0) + 6 - (o - n);
|
|
5
|
-
return t.setDate(t.getDate() + r), t.setHours(23, 59, 59, 999), t;
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
l as default,
|
|
9
|
-
l as endOfWeek
|
|
10
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { getDefaultOptions as u } from "./_lib/defaultOptions.js";
|
|
2
|
-
import { formatters as f } from "./_lib/format/formatters.js";
|
|
3
|
-
import { longFormatters as d } from "./_lib/format/longFormatters.js";
|
|
4
|
-
import { isProtectedWeekYearToken as g, isProtectedDayOfYearToken as h, warnOrThrowProtectedError as w } from "./_lib/protectedTokens.js";
|
|
5
|
-
import { isValid as D } from "./isValid.js";
|
|
6
|
-
import { toDate as T } from "./toDate.js";
|
|
7
|
-
import { enUS as O } from "./locale/en-US.js";
|
|
8
|
-
const E = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, v = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, C = /^'([^]*?)'?$/, S = /''/g, R = /[a-zA-Z]/;
|
|
9
|
-
function L(o, a, r) {
|
|
10
|
-
const n = u(), i = r?.locale ?? n.locale ?? O, m = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, p = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, s = T(o, r?.in);
|
|
11
|
-
if (!D(s))
|
|
12
|
-
throw new RangeError("Invalid time value");
|
|
13
|
-
let c = a.match(v).map((t) => {
|
|
14
|
-
const e = t[0];
|
|
15
|
-
if (e === "p" || e === "P") {
|
|
16
|
-
const l = d[e];
|
|
17
|
-
return l(t, i.formatLong);
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
}).join("").match(E).map((t) => {
|
|
21
|
-
if (t === "''")
|
|
22
|
-
return { isToken: !1, value: "'" };
|
|
23
|
-
const e = t[0];
|
|
24
|
-
if (e === "'")
|
|
25
|
-
return { isToken: !1, value: W(t) };
|
|
26
|
-
if (f[e])
|
|
27
|
-
return { isToken: !0, value: t };
|
|
28
|
-
if (e.match(R))
|
|
29
|
-
throw new RangeError(
|
|
30
|
-
"Format string contains an unescaped latin alphabet character `" + e + "`"
|
|
31
|
-
);
|
|
32
|
-
return { isToken: !1, value: t };
|
|
33
|
-
});
|
|
34
|
-
i.localize.preprocessor && (c = i.localize.preprocessor(s, c));
|
|
35
|
-
const k = {
|
|
36
|
-
firstWeekContainsDate: m,
|
|
37
|
-
weekStartsOn: p,
|
|
38
|
-
locale: i
|
|
39
|
-
};
|
|
40
|
-
return c.map((t) => {
|
|
41
|
-
if (!t.isToken) return t.value;
|
|
42
|
-
const e = t.value;
|
|
43
|
-
(!r?.useAdditionalWeekYearTokens && g(e) || !r?.useAdditionalDayOfYearTokens && h(e)) && w(e, a, String(o));
|
|
44
|
-
const l = f[e[0]];
|
|
45
|
-
return l(s, e, i.localize, k);
|
|
46
|
-
}).join("");
|
|
47
|
-
}
|
|
48
|
-
function W(o) {
|
|
49
|
-
const a = o.match(C);
|
|
50
|
-
return a ? a[1].replace(S, "'") : o;
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
L as default,
|
|
54
|
-
L as format,
|
|
55
|
-
L as formatDate,
|
|
56
|
-
f as formatters,
|
|
57
|
-
d as longFormatters
|
|
58
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { differenceInCalendarDays as f } from "./differenceInCalendarDays.js";
|
|
2
|
-
import { startOfYear as e } from "./startOfYear.js";
|
|
3
|
-
import { toDate as o } from "./toDate.js";
|
|
4
|
-
function c(t, a) {
|
|
5
|
-
const r = o(t, a?.in);
|
|
6
|
-
return f(r, e(r)) + 1;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
c as default,
|
|
10
|
-
c as getDayOfYear
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { constructFrom as s } from "./constructFrom.js";
|
|
2
|
-
import { toDate as c } from "./toDate.js";
|
|
3
|
-
function m(e, n) {
|
|
4
|
-
const t = c(e, n?.in), r = t.getFullYear(), a = t.getMonth(), o = s(t, 0);
|
|
5
|
-
return o.setFullYear(r, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
m as default,
|
|
9
|
-
m as getDaysInMonth
|
|
10
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { millisecondsInWeek as f } from "./constants.js";
|
|
2
|
-
import { startOfISOWeek as i } from "./startOfISOWeek.js";
|
|
3
|
-
import { startOfISOWeekYear as m } from "./startOfISOWeekYear.js";
|
|
4
|
-
import { toDate as n } from "./toDate.js";
|
|
5
|
-
function O(e, o) {
|
|
6
|
-
const t = n(e, o?.in), r = +i(t) - +m(t);
|
|
7
|
-
return Math.round(r / f) + 1;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
O as default,
|
|
11
|
-
O as getISOWeek
|
|
12
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { constructFrom as s } from "./constructFrom.js";
|
|
2
|
-
import { startOfISOWeek as a } from "./startOfISOWeek.js";
|
|
3
|
-
import { toDate as m } from "./toDate.js";
|
|
4
|
-
function Y(f, n) {
|
|
5
|
-
const e = m(f, n?.in), t = e.getFullYear(), r = s(e, 0);
|
|
6
|
-
r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
7
|
-
const u = a(r), o = s(e, 0);
|
|
8
|
-
o.setFullYear(t, 0, 4), o.setHours(0, 0, 0, 0);
|
|
9
|
-
const i = a(o);
|
|
10
|
-
return e.getTime() >= u.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
Y as default,
|
|
14
|
-
Y as getISOWeekYear
|
|
15
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { millisecondsInWeek as f } from "./constants.js";
|
|
2
|
-
import { startOfWeek as m } from "./startOfWeek.js";
|
|
3
|
-
import { startOfWeekYear as a } from "./startOfWeekYear.js";
|
|
4
|
-
import { toDate as i } from "./toDate.js";
|
|
5
|
-
function k(r, t) {
|
|
6
|
-
const e = i(r, t?.in), o = +m(e, t) - +a(e, t);
|
|
7
|
-
return Math.round(o / f) + 1;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
k as default,
|
|
11
|
-
k as getWeek
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getDefaultOptions as k } from "./_lib/defaultOptions.js";
|
|
2
|
-
import { constructFrom as i } from "./constructFrom.js";
|
|
3
|
-
import { startOfWeek as l } from "./startOfWeek.js";
|
|
4
|
-
import { toDate as m } from "./toDate.js";
|
|
5
|
-
function C(r, e) {
|
|
6
|
-
const s = m(r, e?.in), t = s.getFullYear(), o = k(), f = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = i(e?.in || r, 0);
|
|
7
|
-
a.setFullYear(t + 1, 0, f), a.setHours(0, 0, 0, 0);
|
|
8
|
-
const c = l(a, e), n = i(e?.in || r, 0);
|
|
9
|
-
n.setFullYear(t, 0, f), n.setHours(0, 0, 0, 0);
|
|
10
|
-
const u = l(n, e);
|
|
11
|
-
return +s >= +c ? t + 1 : +s >= +u ? t : t - 1;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
C as default,
|
|
15
|
-
C as getWeekYear
|
|
16
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { normalizeDates as f } from "./_lib/normalizeDates.js";
|
|
2
|
-
import { startOfDay as t } from "./startOfDay.js";
|
|
3
|
-
function s(a, e, r) {
|
|
4
|
-
const [o, i] = f(
|
|
5
|
-
r?.in,
|
|
6
|
-
a,
|
|
7
|
-
e
|
|
8
|
-
);
|
|
9
|
-
return +t(o) == +t(i);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
s as default,
|
|
13
|
-
s as isSameDay
|
|
14
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { normalizeDates as o } from "./_lib/normalizeDates.js";
|
|
2
|
-
function i(a, r, n) {
|
|
3
|
-
const [e, t] = o(
|
|
4
|
-
n?.in,
|
|
5
|
-
a,
|
|
6
|
-
r
|
|
7
|
-
);
|
|
8
|
-
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
i as default,
|
|
12
|
-
i as isSameMonth
|
|
13
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
function c(t) {
|
|
2
|
-
return (l, e) => {
|
|
3
|
-
const u = e?.context ? String(e.context) : "standalone";
|
|
4
|
-
let d;
|
|
5
|
-
if (u === "formatting" && t.formattingValues) {
|
|
6
|
-
const n = t.defaultFormattingWidth || t.defaultWidth, i = e?.width ? String(e.width) : n;
|
|
7
|
-
d = t.formattingValues[i] || t.formattingValues[n];
|
|
8
|
-
} else {
|
|
9
|
-
const n = t.defaultWidth, i = e?.width ? String(e.width) : t.defaultWidth;
|
|
10
|
-
d = t.values[i] || t.values[n];
|
|
11
|
-
}
|
|
12
|
-
const a = t.argumentCallback ? t.argumentCallback(l) : l;
|
|
13
|
-
return d[a];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
c as buildLocalizeFn
|
|
18
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function P(t) {
|
|
2
|
-
return (n, e = {}) => {
|
|
3
|
-
const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
|
|
4
|
-
if (!i)
|
|
5
|
-
return null;
|
|
6
|
-
const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
|
|
7
|
-
// [TODO] -- I challenge you to fix the type
|
|
8
|
-
s(c, (u) => u.test(r))
|
|
9
|
-
);
|
|
10
|
-
let a;
|
|
11
|
-
a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
|
|
12
|
-
// [TODO] -- I challenge you to fix the type
|
|
13
|
-
e.valueCallback(a)
|
|
14
|
-
) : a;
|
|
15
|
-
const f = n.slice(r.length);
|
|
16
|
-
return { value: a, rest: f };
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function s(t, n) {
|
|
20
|
-
for (const e in t)
|
|
21
|
-
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
22
|
-
return e;
|
|
23
|
-
}
|
|
24
|
-
function o(t, n) {
|
|
25
|
-
for (let e = 0; e < t.length; e++)
|
|
26
|
-
if (n(t[e]))
|
|
27
|
-
return e;
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
P as buildMatchFn
|
|
31
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function h(t) {
|
|
2
|
-
return (e, c = {}) => {
|
|
3
|
-
const n = e.match(t.matchPattern);
|
|
4
|
-
if (!n) return null;
|
|
5
|
-
const u = n[0], a = e.match(t.parsePattern);
|
|
6
|
-
if (!a) return null;
|
|
7
|
-
let l = t.valueCallback ? t.valueCallback(a[0]) : a[0];
|
|
8
|
-
l = c.valueCallback ? c.valueCallback(l) : l;
|
|
9
|
-
const r = e.slice(u.length);
|
|
10
|
-
return { value: l, rest: r };
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
h as buildMatchPatternFn
|
|
15
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
const a = {
|
|
2
|
-
lessThanXSeconds: {
|
|
3
|
-
one: "less than a second",
|
|
4
|
-
other: "less than {{count}} seconds"
|
|
5
|
-
},
|
|
6
|
-
xSeconds: {
|
|
7
|
-
one: "1 second",
|
|
8
|
-
other: "{{count}} seconds"
|
|
9
|
-
},
|
|
10
|
-
halfAMinute: "half a minute",
|
|
11
|
-
lessThanXMinutes: {
|
|
12
|
-
one: "less than a minute",
|
|
13
|
-
other: "less than {{count}} minutes"
|
|
14
|
-
},
|
|
15
|
-
xMinutes: {
|
|
16
|
-
one: "1 minute",
|
|
17
|
-
other: "{{count}} minutes"
|
|
18
|
-
},
|
|
19
|
-
aboutXHours: {
|
|
20
|
-
one: "about 1 hour",
|
|
21
|
-
other: "about {{count}} hours"
|
|
22
|
-
},
|
|
23
|
-
xHours: {
|
|
24
|
-
one: "1 hour",
|
|
25
|
-
other: "{{count}} hours"
|
|
26
|
-
},
|
|
27
|
-
xDays: {
|
|
28
|
-
one: "1 day",
|
|
29
|
-
other: "{{count}} days"
|
|
30
|
-
},
|
|
31
|
-
aboutXWeeks: {
|
|
32
|
-
one: "about 1 week",
|
|
33
|
-
other: "about {{count}} weeks"
|
|
34
|
-
},
|
|
35
|
-
xWeeks: {
|
|
36
|
-
one: "1 week",
|
|
37
|
-
other: "{{count}} weeks"
|
|
38
|
-
},
|
|
39
|
-
aboutXMonths: {
|
|
40
|
-
one: "about 1 month",
|
|
41
|
-
other: "about {{count}} months"
|
|
42
|
-
},
|
|
43
|
-
xMonths: {
|
|
44
|
-
one: "1 month",
|
|
45
|
-
other: "{{count}} months"
|
|
46
|
-
},
|
|
47
|
-
aboutXYears: {
|
|
48
|
-
one: "about 1 year",
|
|
49
|
-
other: "about {{count}} years"
|
|
50
|
-
},
|
|
51
|
-
xYears: {
|
|
52
|
-
one: "1 year",
|
|
53
|
-
other: "{{count}} years"
|
|
54
|
-
},
|
|
55
|
-
overXYears: {
|
|
56
|
-
one: "over 1 year",
|
|
57
|
-
other: "over {{count}} years"
|
|
58
|
-
},
|
|
59
|
-
almostXYears: {
|
|
60
|
-
one: "almost 1 year",
|
|
61
|
-
other: "almost {{count}} years"
|
|
62
|
-
}
|
|
63
|
-
}, r = (s, n, t) => {
|
|
64
|
-
let e;
|
|
65
|
-
const o = a[s];
|
|
66
|
-
return typeof o == "string" ? e = o : n === 1 ? e = o.one : e = o.other.replace("{{count}}", n.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
67
|
-
};
|
|
68
|
-
export {
|
|
69
|
-
r as formatDistance
|
|
70
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { buildFormatLongFn as t } from "../../_lib/buildFormatLongFn.js";
|
|
2
|
-
const m = {
|
|
3
|
-
full: "EEEE, MMMM do, y",
|
|
4
|
-
long: "MMMM do, y",
|
|
5
|
-
medium: "MMM d, y",
|
|
6
|
-
short: "MM/dd/yyyy"
|
|
7
|
-
}, a = {
|
|
8
|
-
full: "h:mm:ss a zzzz",
|
|
9
|
-
long: "h:mm:ss a z",
|
|
10
|
-
medium: "h:mm:ss a",
|
|
11
|
-
short: "h:mm a"
|
|
12
|
-
}, o = {
|
|
13
|
-
full: "{{date}} 'at' {{time}}",
|
|
14
|
-
long: "{{date}} 'at' {{time}}",
|
|
15
|
-
medium: "{{date}}, {{time}}",
|
|
16
|
-
short: "{{date}}, {{time}}"
|
|
17
|
-
}, e = {
|
|
18
|
-
date: t({
|
|
19
|
-
formats: m,
|
|
20
|
-
defaultWidth: "full"
|
|
21
|
-
}),
|
|
22
|
-
time: t({
|
|
23
|
-
formats: a,
|
|
24
|
-
defaultWidth: "full"
|
|
25
|
-
}),
|
|
26
|
-
dateTime: t({
|
|
27
|
-
formats: o,
|
|
28
|
-
defaultWidth: "full"
|
|
29
|
-
})
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
e as formatLong
|
|
33
|
-
};
|