@easyops-cn/a2ui-react 0.0.3 → 0.0.5
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/IconComponent.js +55 -101
- package/dist/0.8/components/interactive/DateTimeInputComponent.js +35 -37
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/calendar.js +10 -13
- package/dist/components/ui/checkbox.js +11 -11
- package/dist/components/ui/dialog.js +33 -33
- package/dist/components/ui/label.js +2 -2
- package/dist/components/ui/popover.js +19 -19
- package/dist/components/ui/select.js +65 -67
- package/dist/components/ui/separator.js +4 -4
- package/dist/components/ui/slider.js +31 -31
- package/dist/components/ui/tabs.js +18 -18
- package/dist/lib/utils.js +2 -2
- package/package.json +1 -1
- 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,114 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useDataBinding as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import u from "../../../node_modules/lucide-react/dist/esm/icons/shopping-cart.js";
|
|
13
|
-
import w from "../../../node_modules/lucide-react/dist/esm/icons/share-2.js";
|
|
14
|
-
import O from "../../../node_modules/lucide-react/dist/esm/icons/settings.js";
|
|
15
|
-
import g from "../../../node_modules/lucide-react/dist/esm/icons/send.js";
|
|
16
|
-
import k from "../../../node_modules/lucide-react/dist/esm/icons/search.js";
|
|
17
|
-
import y from "../../../node_modules/lucide-react/dist/esm/icons/refresh-cw.js";
|
|
18
|
-
import I from "../../../node_modules/lucide-react/dist/esm/icons/printer.js";
|
|
19
|
-
import S from "../../../node_modules/lucide-react/dist/esm/icons/image.js";
|
|
20
|
-
import m from "../../../node_modules/lucide-react/dist/esm/icons/phone.js";
|
|
21
|
-
import A from "../../../node_modules/lucide-react/dist/esm/icons/user.js";
|
|
22
|
-
import H from "../../../node_modules/lucide-react/dist/esm/icons/credit-card.js";
|
|
23
|
-
import P from "../../../node_modules/lucide-react/dist/esm/icons/bell.js";
|
|
24
|
-
import U from "../../../node_modules/lucide-react/dist/esm/icons/bell-off.js";
|
|
25
|
-
import v from "../../../node_modules/lucide-react/dist/esm/icons/ellipsis.js";
|
|
26
|
-
import M from "../../../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.js";
|
|
27
|
-
import B from "../../../node_modules/lucide-react/dist/esm/icons/menu.js";
|
|
28
|
-
import E from "../../../node_modules/lucide-react/dist/esm/icons/mail.js";
|
|
29
|
-
import D from "../../../node_modules/lucide-react/dist/esm/icons/lock-open.js";
|
|
30
|
-
import F from "../../../node_modules/lucide-react/dist/esm/icons/lock.js";
|
|
31
|
-
import L from "../../../node_modules/lucide-react/dist/esm/icons/map-pin.js";
|
|
32
|
-
import N from "../../../node_modules/lucide-react/dist/esm/icons/info.js";
|
|
33
|
-
import T from "../../../node_modules/lucide-react/dist/esm/icons/house.js";
|
|
34
|
-
import b from "../../../node_modules/lucide-react/dist/esm/icons/circle-question-mark.js";
|
|
35
|
-
import x from "../../../node_modules/lucide-react/dist/esm/icons/folder.js";
|
|
36
|
-
import R from "../../../node_modules/lucide-react/dist/esm/icons/heart-off.js";
|
|
37
|
-
import V from "../../../node_modules/lucide-react/dist/esm/icons/heart.js";
|
|
38
|
-
import j from "../../../node_modules/lucide-react/dist/esm/icons/circle-alert.js";
|
|
39
|
-
import z from "../../../node_modules/lucide-react/dist/esm/icons/calendar-days.js";
|
|
40
|
-
import Q from "../../../node_modules/lucide-react/dist/esm/icons/pencil.js";
|
|
41
|
-
import X from "../../../node_modules/lucide-react/dist/esm/icons/download.js";
|
|
42
|
-
import $ from "../../../node_modules/lucide-react/dist/esm/icons/trash-2.js";
|
|
43
|
-
import q from "../../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
44
|
-
import G from "../../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
45
|
-
import J from "../../../node_modules/lucide-react/dist/esm/icons/camera.js";
|
|
46
|
-
import K from "../../../node_modules/lucide-react/dist/esm/icons/calendar.js";
|
|
47
|
-
import W from "../../../node_modules/lucide-react/dist/esm/icons/paperclip.js";
|
|
48
|
-
import Y from "../../../node_modules/lucide-react/dist/esm/icons/arrow-right.js";
|
|
49
|
-
import Z from "../../../node_modules/lucide-react/dist/esm/icons/arrow-left.js";
|
|
50
|
-
import _ from "../../../node_modules/lucide-react/dist/esm/icons/plus.js";
|
|
51
|
-
import rr from "../../../node_modules/lucide-react/dist/esm/icons/circle-user.js";
|
|
52
|
-
const or = {
|
|
53
|
-
accountCircle: rr,
|
|
54
|
-
add: _,
|
|
55
|
-
arrowBack: Z,
|
|
56
|
-
arrowForward: Y,
|
|
57
|
-
attachFile: W,
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { memo as i } from "react";
|
|
3
|
+
import { useDataBinding as l } from "../../hooks/useDataBinding.js";
|
|
4
|
+
import { AlertTriangle as c, EyeOff as f, Eye as s, Upload as m, StarOff as p, StarHalf as d, Star as h, ShoppingCart as C, Share2 as u, Settings as w, Send as O, Search as g, RefreshCw as k, Printer as y, Image as H, Phone as o, User as I, CreditCard as S, Bell as U, BellOff as A, MoreHorizontal as M, MoreVertical as P, Menu as v, Mail as B, Unlock as D, Lock as F, MapPin as N, Info as T, Home as b, HelpCircle as x, Folder as z, HeartOff as E, Heart as L, AlertCircle as R, CalendarDays as V, Pencil as j, Download as X, Trash2 as $, X as q, Check as G, Camera as J, Calendar as K, Paperclip as Q, ArrowRight as W, ArrowLeft as Y, Plus as Z, UserCircle as _ } from "lucide-react";
|
|
5
|
+
import { cn as ee } from "../../../lib/utils.js";
|
|
6
|
+
const re = {
|
|
7
|
+
accountCircle: _,
|
|
8
|
+
add: Z,
|
|
9
|
+
arrowBack: Y,
|
|
10
|
+
arrowForward: W,
|
|
11
|
+
attachFile: Q,
|
|
58
12
|
calendarToday: K,
|
|
59
|
-
call:
|
|
13
|
+
call: o,
|
|
60
14
|
camera: J,
|
|
61
15
|
check: G,
|
|
62
16
|
close: q,
|
|
63
17
|
delete: $,
|
|
64
18
|
download: X,
|
|
65
|
-
edit:
|
|
66
|
-
event:
|
|
67
|
-
error:
|
|
68
|
-
favorite:
|
|
69
|
-
favoriteOff:
|
|
70
|
-
folder:
|
|
71
|
-
help:
|
|
72
|
-
home:
|
|
73
|
-
info:
|
|
74
|
-
locationOn:
|
|
19
|
+
edit: j,
|
|
20
|
+
event: V,
|
|
21
|
+
error: R,
|
|
22
|
+
favorite: L,
|
|
23
|
+
favoriteOff: E,
|
|
24
|
+
folder: z,
|
|
25
|
+
help: x,
|
|
26
|
+
home: b,
|
|
27
|
+
info: T,
|
|
28
|
+
locationOn: N,
|
|
75
29
|
lock: F,
|
|
76
30
|
lockOpen: D,
|
|
77
|
-
mail:
|
|
78
|
-
menu:
|
|
79
|
-
moreVert:
|
|
80
|
-
moreHoriz:
|
|
81
|
-
notificationsOff:
|
|
82
|
-
notifications:
|
|
83
|
-
payment:
|
|
84
|
-
person:
|
|
85
|
-
phone:
|
|
86
|
-
photo:
|
|
87
|
-
print:
|
|
88
|
-
refresh:
|
|
89
|
-
search:
|
|
90
|
-
send:
|
|
91
|
-
settings:
|
|
92
|
-
share:
|
|
93
|
-
shoppingCart:
|
|
94
|
-
star:
|
|
95
|
-
starHalf:
|
|
96
|
-
starOff:
|
|
97
|
-
upload:
|
|
98
|
-
visibility:
|
|
99
|
-
visibilityOff:
|
|
100
|
-
warning:
|
|
101
|
-
},
|
|
102
|
-
surfaceId:
|
|
103
|
-
name:
|
|
31
|
+
mail: B,
|
|
32
|
+
menu: v,
|
|
33
|
+
moreVert: P,
|
|
34
|
+
moreHoriz: M,
|
|
35
|
+
notificationsOff: A,
|
|
36
|
+
notifications: U,
|
|
37
|
+
payment: S,
|
|
38
|
+
person: I,
|
|
39
|
+
phone: o,
|
|
40
|
+
photo: H,
|
|
41
|
+
print: y,
|
|
42
|
+
refresh: k,
|
|
43
|
+
search: g,
|
|
44
|
+
send: O,
|
|
45
|
+
settings: w,
|
|
46
|
+
share: u,
|
|
47
|
+
shoppingCart: C,
|
|
48
|
+
star: h,
|
|
49
|
+
starHalf: d,
|
|
50
|
+
starOff: p,
|
|
51
|
+
upload: m,
|
|
52
|
+
visibility: s,
|
|
53
|
+
visibilityOff: f,
|
|
54
|
+
warning: c
|
|
55
|
+
}, oe = i(function({
|
|
56
|
+
surfaceId: a,
|
|
57
|
+
name: n
|
|
104
58
|
}) {
|
|
105
|
-
const
|
|
106
|
-
if (!
|
|
59
|
+
const e = l(a, n, "");
|
|
60
|
+
if (!e)
|
|
107
61
|
return null;
|
|
108
|
-
const
|
|
109
|
-
return
|
|
62
|
+
const r = re[e];
|
|
63
|
+
return r ? /* @__PURE__ */ t(r, { className: ee("w-5 h-5") }) : (console.warn(`A2UI: Unknown icon name: ${e}`), null);
|
|
110
64
|
});
|
|
111
|
-
|
|
65
|
+
oe.displayName = "A2UI.Icon";
|
|
112
66
|
export {
|
|
113
|
-
|
|
67
|
+
oe as IconComponent
|
|
114
68
|
};
|
|
@@ -1,100 +1,98 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { memo as V, useMemo as l, useCallback as M } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { CalendarIcon as j } from "lucide-react";
|
|
4
|
+
import { parse as p, isValid as P, format as m } from "date-fns";
|
|
5
|
+
import { useFormBinding as B } from "../../hooks/useDataBinding.js";
|
|
6
|
+
import { cn as y } from "../../../lib/utils.js";
|
|
7
|
+
import { Button as F } from "../../../components/ui/button.js";
|
|
8
|
+
import { Calendar as S } from "../../../components/ui/calendar.js";
|
|
9
|
+
import { Popover as k, PopoverTrigger as A, PopoverContent as L } from "../../../components/ui/popover.js";
|
|
8
10
|
import { Input as g } from "../../../components/ui/input.js";
|
|
9
|
-
|
|
10
|
-
import { isValid as k } from "../../../node_modules/date-fns/isValid.js";
|
|
11
|
-
import A from "../../../node_modules/lucide-react/dist/esm/icons/calendar.js";
|
|
12
|
-
import { formatDate as i } from "../../../node_modules/date-fns/format.js";
|
|
13
|
-
const L = V(function({
|
|
11
|
+
const U = V(function({
|
|
14
12
|
surfaceId: v,
|
|
15
13
|
componentId: w,
|
|
16
14
|
value: x,
|
|
17
15
|
enableDate: o = !0,
|
|
18
16
|
enableTime: t = !1
|
|
19
17
|
}) {
|
|
20
|
-
const [n, e] =
|
|
18
|
+
const [n, e] = B(v, x, ""), r = l(() => {
|
|
21
19
|
if (!n) return;
|
|
22
20
|
let s;
|
|
23
|
-
return o && t ? s =
|
|
24
|
-
}, [n, o, t]),
|
|
21
|
+
return o && t ? s = p(n, "yyyy-MM-dd'T'HH:mm", /* @__PURE__ */ new Date()) : o ? s = p(n, "yyyy-MM-dd", /* @__PURE__ */ new Date()) : t && (s = p(n, "HH:mm", /* @__PURE__ */ new Date())), s && P(s) ? s : void 0;
|
|
22
|
+
}, [n, o, t]), N = l(() => !r || !t ? "" : m(r, "HH:mm"), [r, t]), C = M(
|
|
25
23
|
(s) => {
|
|
26
24
|
if (!s) {
|
|
27
25
|
e("");
|
|
28
26
|
return;
|
|
29
27
|
}
|
|
30
28
|
if (o && t) {
|
|
31
|
-
const u = r ?
|
|
32
|
-
s.setHours(d,
|
|
29
|
+
const u = r ? m(r, "HH:mm") : "00:00", [d, c] = u.split(":").map(Number);
|
|
30
|
+
s.setHours(d, c), e(m(s, "yyyy-MM-dd'T'HH:mm"));
|
|
33
31
|
} else
|
|
34
|
-
e(
|
|
32
|
+
e(m(s, "yyyy-MM-dd"));
|
|
35
33
|
},
|
|
36
34
|
[e, o, t, r]
|
|
37
|
-
),
|
|
35
|
+
), a = M(
|
|
38
36
|
(s) => {
|
|
39
37
|
const u = s.target.value;
|
|
40
38
|
if (!u) return;
|
|
41
|
-
const [d,
|
|
39
|
+
const [d, c] = u.split(":").map(Number);
|
|
42
40
|
if (o && t) {
|
|
43
41
|
const h = r || /* @__PURE__ */ new Date();
|
|
44
|
-
h.setHours(d,
|
|
42
|
+
h.setHours(d, c), e(m(h, "yyyy-MM-dd'T'HH:mm"));
|
|
45
43
|
} else t && !o && e(u);
|
|
46
44
|
},
|
|
47
45
|
[e, o, t, r]
|
|
48
|
-
), I = l(() => r ? o && t ?
|
|
49
|
-
return t && !o ? /* @__PURE__ */
|
|
46
|
+
), I = l(() => r ? o && t ? m(r, "yyyy-MM-dd HH:mm") : o ? m(r, "yyyy-MM-dd") : m(r, "HH:mm") : o && t ? "选择日期和时间" : o ? "选择日期" : "选择时间", [r, o, t]), H = `datetime-${w}`;
|
|
47
|
+
return t && !o ? /* @__PURE__ */ i("div", { className: y("flex flex-col gap-2"), children: /* @__PURE__ */ i(
|
|
50
48
|
g,
|
|
51
49
|
{
|
|
52
50
|
id: H,
|
|
53
51
|
type: "time",
|
|
54
52
|
value: n,
|
|
55
|
-
onChange:
|
|
53
|
+
onChange: a,
|
|
56
54
|
className: "w-full"
|
|
57
55
|
}
|
|
58
|
-
) }) : /* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
56
|
+
) }) : /* @__PURE__ */ i("div", { className: y("flex flex-col gap-2"), children: /* @__PURE__ */ f(k, { children: [
|
|
57
|
+
/* @__PURE__ */ i(A, { asChild: !0, children: /* @__PURE__ */ f(
|
|
58
|
+
F,
|
|
61
59
|
{
|
|
62
60
|
id: H,
|
|
63
61
|
variant: "outline",
|
|
64
|
-
className:
|
|
62
|
+
className: y(
|
|
65
63
|
"w-full justify-start text-left font-normal",
|
|
66
64
|
!r && "text-muted-foreground"
|
|
67
65
|
),
|
|
68
66
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ i(j, { className: "mr-2 h-4 w-4" }),
|
|
70
68
|
I
|
|
71
69
|
]
|
|
72
70
|
}
|
|
73
71
|
) }),
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
72
|
+
/* @__PURE__ */ f(L, { className: "w-auto p-0", align: "start", children: [
|
|
73
|
+
/* @__PURE__ */ i(
|
|
74
|
+
S,
|
|
77
75
|
{
|
|
78
76
|
mode: "single",
|
|
79
77
|
selected: r,
|
|
80
|
-
onSelect:
|
|
78
|
+
onSelect: C,
|
|
81
79
|
captionLayout: "dropdown",
|
|
82
80
|
initialFocus: !0
|
|
83
81
|
}
|
|
84
82
|
),
|
|
85
|
-
t && /* @__PURE__ */
|
|
83
|
+
t && /* @__PURE__ */ i("div", { className: "border-t p-3", children: /* @__PURE__ */ i(
|
|
86
84
|
g,
|
|
87
85
|
{
|
|
88
86
|
type: "time",
|
|
89
|
-
value:
|
|
90
|
-
onChange:
|
|
87
|
+
value: N,
|
|
88
|
+
onChange: a,
|
|
91
89
|
className: "w-full"
|
|
92
90
|
}
|
|
93
91
|
) })
|
|
94
92
|
] })
|
|
95
93
|
] }) });
|
|
96
94
|
});
|
|
97
|
-
|
|
95
|
+
U.displayName = "A2UI.DateTimeInput";
|
|
98
96
|
export {
|
|
99
|
-
|
|
97
|
+
U as DateTimeInputComponent
|
|
100
98
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { cva as s } from "
|
|
2
|
+
import { Slot as a } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as s } from "class-variance-authority";
|
|
4
4
|
import { cn as d } from "../../lib/utils.js";
|
|
5
5
|
const u = s(
|
|
6
6
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
+
import { ChevronLeftIcon as b, ChevronRightIcon as h, ChevronDownIcon as w } from "lucide-react";
|
|
4
|
+
import { getDefaultClassNames as p, DayPicker as _ } from "react-day-picker";
|
|
3
5
|
import { cn as e } from "../../lib/utils.js";
|
|
4
|
-
import { buttonVariants as f, Button as
|
|
5
|
-
|
|
6
|
-
import { DayPicker as h } from "../../node_modules/react-day-picker/dist/esm/DayPicker.js";
|
|
7
|
-
import w from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
|
|
8
|
-
import _ from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
9
|
-
import y from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
10
|
-
function B({
|
|
6
|
+
import { buttonVariants as f, Button as y } from "./button.js";
|
|
7
|
+
function j({
|
|
11
8
|
className: c,
|
|
12
9
|
classNames: i,
|
|
13
10
|
showOutsideDays: r = !0,
|
|
@@ -19,7 +16,7 @@ function B({
|
|
|
19
16
|
}) {
|
|
20
17
|
const t = p();
|
|
21
18
|
return /* @__PURE__ */ n(
|
|
22
|
-
|
|
19
|
+
_,
|
|
23
20
|
{
|
|
24
21
|
showOutsideDays: r,
|
|
25
22
|
className: e(
|
|
@@ -126,13 +123,13 @@ function B({
|
|
|
126
123
|
...o
|
|
127
124
|
}
|
|
128
125
|
),
|
|
129
|
-
Chevron: ({ className: a, orientation: d, ...o }) => d === "left" ? /* @__PURE__ */ n(
|
|
130
|
-
|
|
126
|
+
Chevron: ({ className: a, orientation: d, ...o }) => d === "left" ? /* @__PURE__ */ n(b, { className: e("size-4", a), ...o }) : d === "right" ? /* @__PURE__ */ n(
|
|
127
|
+
h,
|
|
131
128
|
{
|
|
132
129
|
className: e("size-4", a),
|
|
133
130
|
...o
|
|
134
131
|
}
|
|
135
|
-
) : /* @__PURE__ */ n(
|
|
132
|
+
) : /* @__PURE__ */ n(w, { className: e("size-4", a), ...o }),
|
|
136
133
|
DayButton: v,
|
|
137
134
|
WeekNumber: ({ children: a, ...d }) => /* @__PURE__ */ n("td", { ...d, children: /* @__PURE__ */ n("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: a }) }),
|
|
138
135
|
...x
|
|
@@ -151,7 +148,7 @@ function v({
|
|
|
151
148
|
return m.useEffect(() => {
|
|
152
149
|
r.focused && u.current?.focus();
|
|
153
150
|
}, [r.focused]), /* @__PURE__ */ n(
|
|
154
|
-
|
|
151
|
+
y,
|
|
155
152
|
{
|
|
156
153
|
ref: u,
|
|
157
154
|
variant: "ghost",
|
|
@@ -171,6 +168,6 @@ function v({
|
|
|
171
168
|
);
|
|
172
169
|
}
|
|
173
170
|
export {
|
|
174
|
-
|
|
171
|
+
j as Calendar,
|
|
175
172
|
v as CalendarDayButton
|
|
176
173
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import * as e from "@radix-ui/react-checkbox";
|
|
3
|
+
import { CheckIcon as t } from "lucide-react";
|
|
3
4
|
import { cn as o } from "../../lib/utils.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
...i
|
|
5
|
+
function s({
|
|
6
|
+
className: i,
|
|
7
|
+
...a
|
|
8
8
|
}) {
|
|
9
9
|
return /* @__PURE__ */ r(
|
|
10
|
-
|
|
10
|
+
e.Root,
|
|
11
11
|
{
|
|
12
12
|
"data-slot": "checkbox",
|
|
13
13
|
className: o(
|
|
14
14
|
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
15
|
-
|
|
15
|
+
i
|
|
16
16
|
),
|
|
17
|
-
...
|
|
17
|
+
...a,
|
|
18
18
|
children: /* @__PURE__ */ r(
|
|
19
|
-
|
|
19
|
+
e.Indicator,
|
|
20
20
|
{
|
|
21
21
|
"data-slot": "checkbox-indicator",
|
|
22
22
|
className: "grid place-content-center text-current transition-none",
|
|
23
|
-
children: /* @__PURE__ */ r(
|
|
23
|
+
children: /* @__PURE__ */ r(t, { className: "size-3.5" })
|
|
24
24
|
}
|
|
25
25
|
)
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
s as Checkbox
|
|
31
31
|
};
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
function
|
|
1
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-dialog";
|
|
3
|
+
import { XIcon as l } from "lucide-react";
|
|
4
|
+
import { cn as i } from "../../lib/utils.js";
|
|
5
|
+
function m({
|
|
6
6
|
...t
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */ a(
|
|
8
|
+
return /* @__PURE__ */ a(o.Root, { "data-slot": "dialog", ...t });
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function p({
|
|
11
11
|
...t
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */ a(
|
|
13
|
+
return /* @__PURE__ */ a(o.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function d({
|
|
16
16
|
...t
|
|
17
17
|
}) {
|
|
18
|
-
return /* @__PURE__ */ a(
|
|
18
|
+
return /* @__PURE__ */ a(o.Portal, { "data-slot": "dialog-portal", ...t });
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function g({
|
|
21
21
|
className: t,
|
|
22
|
-
...
|
|
22
|
+
...e
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ a(
|
|
25
|
-
|
|
25
|
+
o.Overlay,
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "dialog-overlay",
|
|
28
|
-
className:
|
|
28
|
+
className: i(
|
|
29
29
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
30
30
|
t
|
|
31
31
|
),
|
|
32
|
-
...
|
|
32
|
+
...e
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function v({
|
|
37
37
|
className: t,
|
|
38
|
-
children:
|
|
38
|
+
children: e,
|
|
39
39
|
showCloseButton: s = !0,
|
|
40
|
-
...
|
|
40
|
+
...r
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */ a(
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
42
|
+
return /* @__PURE__ */ n(d, { "data-slot": "dialog-portal", children: [
|
|
43
|
+
/* @__PURE__ */ a(g, {}),
|
|
44
|
+
/* @__PURE__ */ n(
|
|
45
|
+
o.Content,
|
|
46
46
|
{
|
|
47
47
|
"data-slot": "dialog-content",
|
|
48
|
-
className:
|
|
48
|
+
className: i(
|
|
49
49
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",
|
|
50
50
|
t
|
|
51
51
|
),
|
|
52
|
-
...
|
|
52
|
+
...r,
|
|
53
53
|
children: [
|
|
54
|
-
|
|
55
|
-
s && /* @__PURE__ */
|
|
56
|
-
|
|
54
|
+
e,
|
|
55
|
+
s && /* @__PURE__ */ n(
|
|
56
|
+
o.Close,
|
|
57
57
|
{
|
|
58
58
|
"data-slot": "dialog-close",
|
|
59
59
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */ a(
|
|
61
|
+
/* @__PURE__ */ a(l, {}),
|
|
62
62
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
63
63
|
]
|
|
64
64
|
}
|
|
@@ -69,9 +69,9 @@ function D({
|
|
|
69
69
|
] });
|
|
70
70
|
}
|
|
71
71
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
m as Dialog,
|
|
73
|
+
v as DialogContent,
|
|
74
|
+
g as DialogOverlay,
|
|
75
|
+
d as DialogPortal,
|
|
76
|
+
p as DialogTrigger
|
|
77
77
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import * as a from "@radix-ui/react-label";
|
|
3
3
|
import { cn as r } from "../../lib/utils.js";
|
|
4
4
|
function l({
|
|
5
5
|
className: e,
|
|
6
6
|
...t
|
|
7
7
|
}) {
|
|
8
8
|
return /* @__PURE__ */ o(
|
|
9
|
-
a,
|
|
9
|
+
a.Root,
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "label",
|
|
12
12
|
className: r(
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
function
|
|
2
|
+
import * as e from "@radix-ui/react-popover";
|
|
3
|
+
import { cn as n } from "../../lib/utils.js";
|
|
4
|
+
function s({
|
|
5
5
|
...o
|
|
6
6
|
}) {
|
|
7
|
-
return /* @__PURE__ */ t(
|
|
7
|
+
return /* @__PURE__ */ t(e.Root, { "data-slot": "popover", ...o });
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function m({
|
|
10
10
|
...o
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ t(
|
|
12
|
+
return /* @__PURE__ */ t(e.Trigger, { "data-slot": "popover-trigger", ...o });
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function f({
|
|
15
15
|
className: o,
|
|
16
|
-
align:
|
|
17
|
-
sideOffset:
|
|
18
|
-
...
|
|
16
|
+
align: r = "center",
|
|
17
|
+
sideOffset: a = 4,
|
|
18
|
+
...i
|
|
19
19
|
}) {
|
|
20
|
-
return /* @__PURE__ */ t(
|
|
21
|
-
|
|
20
|
+
return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
|
|
21
|
+
e.Content,
|
|
22
22
|
{
|
|
23
23
|
"data-slot": "popover-content",
|
|
24
|
-
align:
|
|
25
|
-
sideOffset:
|
|
26
|
-
className:
|
|
24
|
+
align: r,
|
|
25
|
+
sideOffset: a,
|
|
26
|
+
className: n(
|
|
27
27
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
28
28
|
o
|
|
29
29
|
),
|
|
30
|
-
...
|
|
30
|
+
...i
|
|
31
31
|
}
|
|
32
32
|
) });
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
s as Popover,
|
|
36
|
+
f as PopoverContent,
|
|
37
|
+
m as PopoverTrigger
|
|
38
38
|
};
|