@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,68 +0,0 @@
|
|
|
1
|
-
import * as u from "react";
|
|
2
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
3
|
-
function $(t, c) {
|
|
4
|
-
const n = u.createContext(c), p = (r) => {
|
|
5
|
-
const { children: e, ...o } = r, s = u.useMemo(() => o, Object.values(o));
|
|
6
|
-
return /* @__PURE__ */ f(n.Provider, { value: s, children: e });
|
|
7
|
-
};
|
|
8
|
-
p.displayName = t + "Provider";
|
|
9
|
-
function i(r) {
|
|
10
|
-
const e = u.useContext(n);
|
|
11
|
-
if (e) return e;
|
|
12
|
-
if (c !== void 0) return c;
|
|
13
|
-
throw new Error(`\`${r}\` must be used within \`${t}\``);
|
|
14
|
-
}
|
|
15
|
-
return [p, i];
|
|
16
|
-
}
|
|
17
|
-
function w(t, c = []) {
|
|
18
|
-
let n = [];
|
|
19
|
-
function p(r, e) {
|
|
20
|
-
const o = u.createContext(e), s = n.length;
|
|
21
|
-
n = [...n, e];
|
|
22
|
-
const d = (x) => {
|
|
23
|
-
const { scope: m, children: v, ...a } = x, S = m?.[t]?.[s] || o, h = u.useMemo(() => a, Object.values(a));
|
|
24
|
-
return /* @__PURE__ */ f(S.Provider, { value: h, children: v });
|
|
25
|
-
};
|
|
26
|
-
d.displayName = r + "Provider";
|
|
27
|
-
function C(x, m) {
|
|
28
|
-
const v = m?.[t]?.[s] || o, a = u.useContext(v);
|
|
29
|
-
if (a) return a;
|
|
30
|
-
if (e !== void 0) return e;
|
|
31
|
-
throw new Error(`\`${x}\` must be used within \`${r}\``);
|
|
32
|
-
}
|
|
33
|
-
return [d, C];
|
|
34
|
-
}
|
|
35
|
-
const i = () => {
|
|
36
|
-
const r = n.map((e) => u.createContext(e));
|
|
37
|
-
return function(o) {
|
|
38
|
-
const s = o?.[t] || r;
|
|
39
|
-
return u.useMemo(
|
|
40
|
-
() => ({ [`__scope${t}`]: { ...o, [t]: s } }),
|
|
41
|
-
[o, s]
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
return i.scopeName = t, [p, P(i, ...c)];
|
|
46
|
-
}
|
|
47
|
-
function P(...t) {
|
|
48
|
-
const c = t[0];
|
|
49
|
-
if (t.length === 1) return c;
|
|
50
|
-
const n = () => {
|
|
51
|
-
const p = t.map((i) => ({
|
|
52
|
-
useScope: i(),
|
|
53
|
-
scopeName: i.scopeName
|
|
54
|
-
}));
|
|
55
|
-
return function(r) {
|
|
56
|
-
const e = p.reduce((o, { useScope: s, scopeName: d }) => {
|
|
57
|
-
const x = s(r)[`__scope${d}`];
|
|
58
|
-
return { ...o, ...x };
|
|
59
|
-
}, {});
|
|
60
|
-
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
return n.scopeName = c.scopeName, n;
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
$ as createContext,
|
|
67
|
-
w as createContextScope
|
|
68
|
-
};
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import { composeEventHandlers as p } from "../../primitive/dist/index.js";
|
|
3
|
-
import { useComposedRefs as _ } from "../../react-compose-refs/dist/index.js";
|
|
4
|
-
import { createContextScope as j, createContext as H } from "../../react-context/dist/index.js";
|
|
5
|
-
import { useId as R } from "../../react-id/dist/index.js";
|
|
6
|
-
import { useControllableState as V } from "../../react-use-controllable-state/dist/index.js";
|
|
7
|
-
import { DismissableLayer as q } from "../../react-dismissable-layer/dist/index.js";
|
|
8
|
-
import { FocusScope as K } from "../../react-focus-scope/dist/index.js";
|
|
9
|
-
import { Portal as U } from "../../react-portal/dist/index.js";
|
|
10
|
-
import { Presence as h } from "../../react-presence/dist/index.js";
|
|
11
|
-
import { Primitive as g } from "../../react-primitive/dist/index.js";
|
|
12
|
-
import { useFocusGuards as Y } from "../../react-focus-guards/dist/index.js";
|
|
13
|
-
import Z from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
14
|
-
import { hideOthers as z } from "../../../aria-hidden/dist/es2015/index.js";
|
|
15
|
-
import { createSlot as J } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
16
|
-
import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
|
|
17
|
-
var D = "Dialog", [I] = j(D), [Q, u] = I(D), x = (e) => {
|
|
18
|
-
const {
|
|
19
|
-
__scopeDialog: t,
|
|
20
|
-
children: n,
|
|
21
|
-
open: a,
|
|
22
|
-
defaultOpen: r,
|
|
23
|
-
onOpenChange: o,
|
|
24
|
-
modal: l = !0
|
|
25
|
-
} = e, c = s.useRef(null), f = s.useRef(null), [v, C] = V({
|
|
26
|
-
prop: a,
|
|
27
|
-
defaultProp: r ?? !1,
|
|
28
|
-
onChange: o,
|
|
29
|
-
caller: D
|
|
30
|
-
});
|
|
31
|
-
return /* @__PURE__ */ i(
|
|
32
|
-
Q,
|
|
33
|
-
{
|
|
34
|
-
scope: t,
|
|
35
|
-
triggerRef: c,
|
|
36
|
-
contentRef: f,
|
|
37
|
-
contentId: R(),
|
|
38
|
-
titleId: R(),
|
|
39
|
-
descriptionId: R(),
|
|
40
|
-
open: v,
|
|
41
|
-
onOpenChange: C,
|
|
42
|
-
onOpenToggle: s.useCallback(() => C((B) => !B), [C]),
|
|
43
|
-
modal: l,
|
|
44
|
-
children: n
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
x.displayName = D;
|
|
49
|
-
var A = "DialogTrigger", T = s.forwardRef(
|
|
50
|
-
(e, t) => {
|
|
51
|
-
const { __scopeDialog: n, ...a } = e, r = u(A, n), o = _(t, r.triggerRef);
|
|
52
|
-
return /* @__PURE__ */ i(
|
|
53
|
-
g.button,
|
|
54
|
-
{
|
|
55
|
-
type: "button",
|
|
56
|
-
"aria-haspopup": "dialog",
|
|
57
|
-
"aria-expanded": r.open,
|
|
58
|
-
"aria-controls": r.contentId,
|
|
59
|
-
"data-state": N(r.open),
|
|
60
|
-
...a,
|
|
61
|
-
ref: o,
|
|
62
|
-
onClick: p(e.onClick, r.onOpenToggle)
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
T.displayName = A;
|
|
68
|
-
var E = "DialogPortal", [X, b] = I(E, {
|
|
69
|
-
forceMount: void 0
|
|
70
|
-
}), M = (e) => {
|
|
71
|
-
const { __scopeDialog: t, forceMount: n, children: a, container: r } = e, o = u(E, t);
|
|
72
|
-
return /* @__PURE__ */ i(X, { scope: t, forceMount: n, children: s.Children.map(a, (l) => /* @__PURE__ */ i(h, { present: n || o.open, children: /* @__PURE__ */ i(U, { asChild: !0, container: r, children: l }) })) });
|
|
73
|
-
};
|
|
74
|
-
M.displayName = E;
|
|
75
|
-
var m = "DialogOverlay", w = s.forwardRef(
|
|
76
|
-
(e, t) => {
|
|
77
|
-
const n = b(m, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(m, e.__scopeDialog);
|
|
78
|
-
return o.modal ? /* @__PURE__ */ i(h, { present: a || o.open, children: /* @__PURE__ */ i(oe, { ...r, ref: t }) }) : null;
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
w.displayName = m;
|
|
82
|
-
var ee = J("DialogOverlay.RemoveScroll"), oe = s.forwardRef(
|
|
83
|
-
(e, t) => {
|
|
84
|
-
const { __scopeDialog: n, ...a } = e, r = u(m, n);
|
|
85
|
-
return (
|
|
86
|
-
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
87
|
-
// ie. when `Overlay` and `Content` are siblings
|
|
88
|
-
/* @__PURE__ */ i(Z, { as: ee, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
|
|
89
|
-
g.div,
|
|
90
|
-
{
|
|
91
|
-
"data-state": N(r.open),
|
|
92
|
-
...a,
|
|
93
|
-
ref: t,
|
|
94
|
-
style: { pointerEvents: "auto", ...a.style }
|
|
95
|
-
}
|
|
96
|
-
) })
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
), d = "DialogContent", F = s.forwardRef(
|
|
100
|
-
(e, t) => {
|
|
101
|
-
const n = b(d, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(d, e.__scopeDialog);
|
|
102
|
-
return /* @__PURE__ */ i(h, { present: a || o.open, children: o.modal ? /* @__PURE__ */ i(te, { ...r, ref: t }) : /* @__PURE__ */ i(re, { ...r, ref: t }) });
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
F.displayName = d;
|
|
106
|
-
var te = s.forwardRef(
|
|
107
|
-
(e, t) => {
|
|
108
|
-
const n = u(d, e.__scopeDialog), a = s.useRef(null), r = _(t, n.contentRef, a);
|
|
109
|
-
return s.useEffect(() => {
|
|
110
|
-
const o = a.current;
|
|
111
|
-
if (o) return z(o);
|
|
112
|
-
}, []), /* @__PURE__ */ i(
|
|
113
|
-
S,
|
|
114
|
-
{
|
|
115
|
-
...e,
|
|
116
|
-
ref: r,
|
|
117
|
-
trapFocus: n.open,
|
|
118
|
-
disableOutsidePointerEvents: !0,
|
|
119
|
-
onCloseAutoFocus: p(e.onCloseAutoFocus, (o) => {
|
|
120
|
-
o.preventDefault(), n.triggerRef.current?.focus();
|
|
121
|
-
}),
|
|
122
|
-
onPointerDownOutside: p(e.onPointerDownOutside, (o) => {
|
|
123
|
-
const l = o.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0;
|
|
124
|
-
(l.button === 2 || c) && o.preventDefault();
|
|
125
|
-
}),
|
|
126
|
-
onFocusOutside: p(
|
|
127
|
-
e.onFocusOutside,
|
|
128
|
-
(o) => o.preventDefault()
|
|
129
|
-
)
|
|
130
|
-
}
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
), re = s.forwardRef(
|
|
134
|
-
(e, t) => {
|
|
135
|
-
const n = u(d, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
|
136
|
-
return /* @__PURE__ */ i(
|
|
137
|
-
S,
|
|
138
|
-
{
|
|
139
|
-
...e,
|
|
140
|
-
ref: t,
|
|
141
|
-
trapFocus: !1,
|
|
142
|
-
disableOutsidePointerEvents: !1,
|
|
143
|
-
onCloseAutoFocus: (o) => {
|
|
144
|
-
e.onCloseAutoFocus?.(o), o.defaultPrevented || (a.current || n.triggerRef.current?.focus(), o.preventDefault()), a.current = !1, r.current = !1;
|
|
145
|
-
},
|
|
146
|
-
onInteractOutside: (o) => {
|
|
147
|
-
e.onInteractOutside?.(o), o.defaultPrevented || (a.current = !0, o.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
148
|
-
const l = o.target;
|
|
149
|
-
n.triggerRef.current?.contains(l) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && r.current && o.preventDefault();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
), S = s.forwardRef(
|
|
155
|
-
(e, t) => {
|
|
156
|
-
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: o, ...l } = e, c = u(d, n), f = s.useRef(null), v = _(t, f);
|
|
157
|
-
return Y(), /* @__PURE__ */ P(O, { children: [
|
|
158
|
-
/* @__PURE__ */ i(
|
|
159
|
-
K,
|
|
160
|
-
{
|
|
161
|
-
asChild: !0,
|
|
162
|
-
loop: !0,
|
|
163
|
-
trapped: a,
|
|
164
|
-
onMountAutoFocus: r,
|
|
165
|
-
onUnmountAutoFocus: o,
|
|
166
|
-
children: /* @__PURE__ */ i(
|
|
167
|
-
q,
|
|
168
|
-
{
|
|
169
|
-
role: "dialog",
|
|
170
|
-
id: c.contentId,
|
|
171
|
-
"aria-describedby": c.descriptionId,
|
|
172
|
-
"aria-labelledby": c.titleId,
|
|
173
|
-
"data-state": N(c.open),
|
|
174
|
-
...l,
|
|
175
|
-
ref: v,
|
|
176
|
-
onDismiss: () => c.onOpenChange(!1)
|
|
177
|
-
}
|
|
178
|
-
)
|
|
179
|
-
}
|
|
180
|
-
),
|
|
181
|
-
/* @__PURE__ */ P(O, { children: [
|
|
182
|
-
/* @__PURE__ */ i(ie, { titleId: c.titleId }),
|
|
183
|
-
/* @__PURE__ */ i(ce, { contentRef: f, descriptionId: c.descriptionId })
|
|
184
|
-
] })
|
|
185
|
-
] });
|
|
186
|
-
}
|
|
187
|
-
), y = "DialogTitle", ne = s.forwardRef(
|
|
188
|
-
(e, t) => {
|
|
189
|
-
const { __scopeDialog: n, ...a } = e, r = u(y, n);
|
|
190
|
-
return /* @__PURE__ */ i(g.h2, { id: r.titleId, ...a, ref: t });
|
|
191
|
-
}
|
|
192
|
-
);
|
|
193
|
-
ne.displayName = y;
|
|
194
|
-
var W = "DialogDescription", ae = s.forwardRef(
|
|
195
|
-
(e, t) => {
|
|
196
|
-
const { __scopeDialog: n, ...a } = e, r = u(W, n);
|
|
197
|
-
return /* @__PURE__ */ i(g.p, { id: r.descriptionId, ...a, ref: t });
|
|
198
|
-
}
|
|
199
|
-
);
|
|
200
|
-
ae.displayName = W;
|
|
201
|
-
var k = "DialogClose", G = s.forwardRef(
|
|
202
|
-
(e, t) => {
|
|
203
|
-
const { __scopeDialog: n, ...a } = e, r = u(k, n);
|
|
204
|
-
return /* @__PURE__ */ i(
|
|
205
|
-
g.button,
|
|
206
|
-
{
|
|
207
|
-
type: "button",
|
|
208
|
-
...a,
|
|
209
|
-
ref: t,
|
|
210
|
-
onClick: p(e.onClick, () => r.onOpenChange(!1))
|
|
211
|
-
}
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
);
|
|
215
|
-
G.displayName = k;
|
|
216
|
-
function N(e) {
|
|
217
|
-
return e ? "open" : "closed";
|
|
218
|
-
}
|
|
219
|
-
var L = "DialogTitleWarning", [Ne, $] = H(L, {
|
|
220
|
-
contentName: d,
|
|
221
|
-
titleName: y,
|
|
222
|
-
docsSlug: "dialog"
|
|
223
|
-
}), ie = ({ titleId: e }) => {
|
|
224
|
-
const t = $(L), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
225
|
-
|
|
226
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
227
|
-
|
|
228
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
229
|
-
return s.useEffect(() => {
|
|
230
|
-
e && (document.getElementById(e) || console.error(n));
|
|
231
|
-
}, [n, e]), null;
|
|
232
|
-
}, se = "DialogDescriptionWarning", ce = ({ contentRef: e, descriptionId: t }) => {
|
|
233
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$(se).contentName}}.`;
|
|
234
|
-
return s.useEffect(() => {
|
|
235
|
-
const r = e.current?.getAttribute("aria-describedby");
|
|
236
|
-
t && r && (document.getElementById(t) || console.warn(a));
|
|
237
|
-
}, [a, e, t]), null;
|
|
238
|
-
}, Pe = x, Oe = T, Ie = M, xe = w, Ae = F, Te = G;
|
|
239
|
-
export {
|
|
240
|
-
Te as Close,
|
|
241
|
-
Ae as Content,
|
|
242
|
-
x as Dialog,
|
|
243
|
-
G as DialogClose,
|
|
244
|
-
F as DialogContent,
|
|
245
|
-
ae as DialogDescription,
|
|
246
|
-
w as DialogOverlay,
|
|
247
|
-
M as DialogPortal,
|
|
248
|
-
ne as DialogTitle,
|
|
249
|
-
T as DialogTrigger,
|
|
250
|
-
xe as Overlay,
|
|
251
|
-
Ie as Portal,
|
|
252
|
-
Pe as Root,
|
|
253
|
-
Oe as Trigger,
|
|
254
|
-
Ne as WarningProvider
|
|
255
|
-
};
|
package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as l from "react";
|
|
2
|
-
import { composeRefs as m } from "../../../../../react-compose-refs/dist/index.js";
|
|
3
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
4
|
-
// @__NO_SIDE_EFFECTS__
|
|
5
|
-
function b(e) {
|
|
6
|
-
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
7
|
-
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
|
|
8
|
-
if (a) {
|
|
9
|
-
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
-
return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
11
|
-
}
|
|
12
|
-
return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
|
|
13
|
-
});
|
|
14
|
-
return t.displayName = `${e}.Slot`, t;
|
|
15
|
-
}
|
|
16
|
-
// @__NO_SIDE_EFFECTS__
|
|
17
|
-
function y(e) {
|
|
18
|
-
const r = l.forwardRef((t, o) => {
|
|
19
|
-
const { children: n, ...i } = t;
|
|
20
|
-
if (l.isValidElement(n)) {
|
|
21
|
-
const c = S(n), s = C(i, n.props);
|
|
22
|
-
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
23
|
-
}
|
|
24
|
-
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
25
|
-
});
|
|
26
|
-
return r.displayName = `${e}.SlotClone`, r;
|
|
27
|
-
}
|
|
28
|
-
var g = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
|
-
function E(e) {
|
|
30
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
31
|
-
}
|
|
32
|
-
function C(e, r) {
|
|
33
|
-
const t = { ...r };
|
|
34
|
-
for (const o in r) {
|
|
35
|
-
const n = e[o], i = r[o];
|
|
36
|
-
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
37
|
-
const a = i(...s);
|
|
38
|
-
return n(...s), a;
|
|
39
|
-
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
40
|
-
}
|
|
41
|
-
return { ...e, ...t };
|
|
42
|
-
}
|
|
43
|
-
function S(e) {
|
|
44
|
-
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
45
|
-
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
b as createSlot
|
|
49
|
-
};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import * as n from "react";
|
|
2
|
-
import { composeEventHandlers as h } from "../../primitive/dist/index.js";
|
|
3
|
-
import { Primitive as w, dispatchDiscreteCustomEvent as k } from "../../react-primitive/dist/index.js";
|
|
4
|
-
import { useComposedRefs as g } from "../../react-compose-refs/dist/index.js";
|
|
5
|
-
import { useCallbackRef as R } from "../../react-use-callback-ref/dist/index.js";
|
|
6
|
-
import { useEscapeKeydown as U } from "../../react-use-escape-keydown/dist/index.js";
|
|
7
|
-
import { jsx as T } from "react/jsx-runtime";
|
|
8
|
-
var z = "DismissableLayer", y = "dismissableLayer.update", H = "dismissableLayer.pointerDownOutside", M = "dismissableLayer.focusOutside", C, B = n.createContext({
|
|
9
|
-
layers: /* @__PURE__ */ new Set(),
|
|
10
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
11
|
-
branches: /* @__PURE__ */ new Set()
|
|
12
|
-
}), K = n.forwardRef(
|
|
13
|
-
(s, e) => {
|
|
14
|
-
const {
|
|
15
|
-
disableOutsidePointerEvents: r = !1,
|
|
16
|
-
onEscapeKeyDown: a,
|
|
17
|
-
onPointerDownOutside: i,
|
|
18
|
-
onFocusOutside: c,
|
|
19
|
-
onInteractOutside: f,
|
|
20
|
-
onDismiss: d,
|
|
21
|
-
...E
|
|
22
|
-
} = s, o = n.useContext(B), [u, F] = n.useState(null), l = u?.ownerDocument ?? globalThis?.document, [, I] = n.useState({}), S = g(e, (t) => F(t)), p = Array.from(o.layers), [W] = [...o.layersWithOutsidePointerEventsDisabled].slice(-1), A = p.indexOf(W), b = u ? p.indexOf(u) : -1, N = o.layersWithOutsidePointerEventsDisabled.size > 0, D = b >= A, _ = Y((t) => {
|
|
23
|
-
const v = t.target, P = [...o.branches].some((m) => m.contains(v));
|
|
24
|
-
!D || P || (i?.(t), f?.(t), t.defaultPrevented || d?.());
|
|
25
|
-
}, l), O = q((t) => {
|
|
26
|
-
const v = t.target;
|
|
27
|
-
[...o.branches].some((m) => m.contains(v)) || (c?.(t), f?.(t), t.defaultPrevented || d?.());
|
|
28
|
-
}, l);
|
|
29
|
-
return U((t) => {
|
|
30
|
-
b === o.layers.size - 1 && (a?.(t), !t.defaultPrevented && d && (t.preventDefault(), d()));
|
|
31
|
-
}, l), n.useEffect(() => {
|
|
32
|
-
if (u)
|
|
33
|
-
return r && (o.layersWithOutsidePointerEventsDisabled.size === 0 && (C = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), o.layersWithOutsidePointerEventsDisabled.add(u)), o.layers.add(u), L(), () => {
|
|
34
|
-
r && o.layersWithOutsidePointerEventsDisabled.size === 1 && (l.body.style.pointerEvents = C);
|
|
35
|
-
};
|
|
36
|
-
}, [u, l, r, o]), n.useEffect(() => () => {
|
|
37
|
-
u && (o.layers.delete(u), o.layersWithOutsidePointerEventsDisabled.delete(u), L());
|
|
38
|
-
}, [u, o]), n.useEffect(() => {
|
|
39
|
-
const t = () => I({});
|
|
40
|
-
return document.addEventListener(y, t), () => document.removeEventListener(y, t);
|
|
41
|
-
}, []), /* @__PURE__ */ T(
|
|
42
|
-
w.div,
|
|
43
|
-
{
|
|
44
|
-
...E,
|
|
45
|
-
ref: S,
|
|
46
|
-
style: {
|
|
47
|
-
pointerEvents: N ? D ? "auto" : "none" : void 0,
|
|
48
|
-
...s.style
|
|
49
|
-
},
|
|
50
|
-
onFocusCapture: h(s.onFocusCapture, O.onFocusCapture),
|
|
51
|
-
onBlurCapture: h(s.onBlurCapture, O.onBlurCapture),
|
|
52
|
-
onPointerDownCapture: h(
|
|
53
|
-
s.onPointerDownCapture,
|
|
54
|
-
_.onPointerDownCapture
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
K.displayName = z;
|
|
61
|
-
var j = "DismissableLayerBranch", X = n.forwardRef((s, e) => {
|
|
62
|
-
const r = n.useContext(B), a = n.useRef(null), i = g(e, a);
|
|
63
|
-
return n.useEffect(() => {
|
|
64
|
-
const c = a.current;
|
|
65
|
-
if (c)
|
|
66
|
-
return r.branches.add(c), () => {
|
|
67
|
-
r.branches.delete(c);
|
|
68
|
-
};
|
|
69
|
-
}, [r.branches]), /* @__PURE__ */ T(w.div, { ...s, ref: i });
|
|
70
|
-
});
|
|
71
|
-
X.displayName = j;
|
|
72
|
-
function Y(s, e = globalThis?.document) {
|
|
73
|
-
const r = R(s), a = n.useRef(!1), i = n.useRef(() => {
|
|
74
|
-
});
|
|
75
|
-
return n.useEffect(() => {
|
|
76
|
-
const c = (d) => {
|
|
77
|
-
if (d.target && !a.current) {
|
|
78
|
-
let E = function() {
|
|
79
|
-
x(
|
|
80
|
-
H,
|
|
81
|
-
r,
|
|
82
|
-
o,
|
|
83
|
-
{ discrete: !0 }
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
const o = { originalEvent: d };
|
|
87
|
-
d.pointerType === "touch" ? (e.removeEventListener("click", i.current), i.current = E, e.addEventListener("click", i.current, { once: !0 })) : E();
|
|
88
|
-
} else
|
|
89
|
-
e.removeEventListener("click", i.current);
|
|
90
|
-
a.current = !1;
|
|
91
|
-
}, f = window.setTimeout(() => {
|
|
92
|
-
e.addEventListener("pointerdown", c);
|
|
93
|
-
}, 0);
|
|
94
|
-
return () => {
|
|
95
|
-
window.clearTimeout(f), e.removeEventListener("pointerdown", c), e.removeEventListener("click", i.current);
|
|
96
|
-
};
|
|
97
|
-
}, [e, r]), {
|
|
98
|
-
// ensures we check React component tree (not just DOM tree)
|
|
99
|
-
onPointerDownCapture: () => a.current = !0
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function q(s, e = globalThis?.document) {
|
|
103
|
-
const r = R(s), a = n.useRef(!1);
|
|
104
|
-
return n.useEffect(() => {
|
|
105
|
-
const i = (c) => {
|
|
106
|
-
c.target && !a.current && x(M, r, { originalEvent: c }, {
|
|
107
|
-
discrete: !1
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
return e.addEventListener("focusin", i), () => e.removeEventListener("focusin", i);
|
|
111
|
-
}, [e, r]), {
|
|
112
|
-
onFocusCapture: () => a.current = !0,
|
|
113
|
-
onBlurCapture: () => a.current = !1
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
function L() {
|
|
117
|
-
const s = new CustomEvent(y);
|
|
118
|
-
document.dispatchEvent(s);
|
|
119
|
-
}
|
|
120
|
-
function x(s, e, r, { discrete: a }) {
|
|
121
|
-
const i = r.originalEvent.target, c = new CustomEvent(s, { bubbles: !1, cancelable: !0, detail: r });
|
|
122
|
-
e && i.addEventListener(s, e, { once: !0 }), a ? k(i, c) : i.dispatchEvent(c);
|
|
123
|
-
}
|
|
124
|
-
export {
|
|
125
|
-
K as DismissableLayer,
|
|
126
|
-
X as DismissableLayerBranch
|
|
127
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
var t = 0;
|
|
3
|
-
function a() {
|
|
4
|
-
r.useEffect(() => {
|
|
5
|
-
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
6
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? n()), document.body.insertAdjacentElement("beforeend", e[1] ?? n()), t++, () => {
|
|
7
|
-
t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((o) => o.remove()), t--;
|
|
8
|
-
};
|
|
9
|
-
}, []);
|
|
10
|
-
}
|
|
11
|
-
function n() {
|
|
12
|
-
const e = document.createElement("span");
|
|
13
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
a as useFocusGuards
|
|
17
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import * as d from "react";
|
|
2
|
-
import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
|
|
3
|
-
import { Primitive as M } from "../../react-primitive/dist/index.js";
|
|
4
|
-
import { useCallbackRef as y } from "../../react-use-callback-ref/dist/index.js";
|
|
5
|
-
import { jsx as _ } from "react/jsx-runtime";
|
|
6
|
-
var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, t) => {
|
|
7
|
-
const {
|
|
8
|
-
loop: n = !1,
|
|
9
|
-
trapped: u = !1,
|
|
10
|
-
onMountAutoFocus: p,
|
|
11
|
-
onUnmountAutoFocus: L,
|
|
12
|
-
...g
|
|
13
|
-
} = e, [o, U] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), A = R(t, (s) => U(s)), a = d.useRef({
|
|
14
|
-
paused: !1,
|
|
15
|
-
pause() {
|
|
16
|
-
this.paused = !0;
|
|
17
|
-
},
|
|
18
|
-
resume() {
|
|
19
|
-
this.paused = !1;
|
|
20
|
-
}
|
|
21
|
-
}).current;
|
|
22
|
-
d.useEffect(() => {
|
|
23
|
-
if (u) {
|
|
24
|
-
let s = function(i) {
|
|
25
|
-
if (a.paused || !o) return;
|
|
26
|
-
const c = i.target;
|
|
27
|
-
o.contains(c) ? b.current = c : f(b.current, { select: !0 });
|
|
28
|
-
}, l = function(i) {
|
|
29
|
-
if (a.paused || !o) return;
|
|
30
|
-
const c = i.relatedTarget;
|
|
31
|
-
c !== null && (o.contains(c) || f(b.current, { select: !0 }));
|
|
32
|
-
}, r = function(i) {
|
|
33
|
-
if (document.activeElement === document.body)
|
|
34
|
-
for (const h of i)
|
|
35
|
-
h.removedNodes.length > 0 && f(o);
|
|
36
|
-
};
|
|
37
|
-
document.addEventListener("focusin", s), document.addEventListener("focusout", l);
|
|
38
|
-
const m = new MutationObserver(r);
|
|
39
|
-
return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
|
|
40
|
-
document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
}, [u, o, a.paused]), d.useEffect(() => {
|
|
44
|
-
if (o) {
|
|
45
|
-
O.add(a);
|
|
46
|
-
const s = document.activeElement;
|
|
47
|
-
if (!o.contains(s)) {
|
|
48
|
-
const r = new CustomEvent(F, N);
|
|
49
|
-
o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(W(I(o)), { select: !0 }), document.activeElement === s && f(o));
|
|
50
|
-
}
|
|
51
|
-
return () => {
|
|
52
|
-
o.removeEventListener(F, E), setTimeout(() => {
|
|
53
|
-
const r = new CustomEvent(T, N);
|
|
54
|
-
o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), O.remove(a);
|
|
55
|
-
}, 0);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}, [o, E, v, a]);
|
|
59
|
-
const P = d.useCallback(
|
|
60
|
-
(s) => {
|
|
61
|
-
if (!n && !u || a.paused) return;
|
|
62
|
-
const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
|
|
63
|
-
if (l && r) {
|
|
64
|
-
const m = s.currentTarget, [i, c] = x(m);
|
|
65
|
-
i && c ? !s.shiftKey && r === c ? (s.preventDefault(), n && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), n && f(c, { select: !0 })) : r === m && s.preventDefault();
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
[n, u, a.paused]
|
|
69
|
-
);
|
|
70
|
-
return /* @__PURE__ */ _(M.div, { tabIndex: -1, ...g, ref: A, onKeyDown: P });
|
|
71
|
-
});
|
|
72
|
-
k.displayName = K;
|
|
73
|
-
function w(e, { select: t = !1 } = {}) {
|
|
74
|
-
const n = document.activeElement;
|
|
75
|
-
for (const u of e)
|
|
76
|
-
if (f(u, { select: t }), document.activeElement !== n) return;
|
|
77
|
-
}
|
|
78
|
-
function x(e) {
|
|
79
|
-
const t = I(e), n = S(t, e), u = S(t.reverse(), e);
|
|
80
|
-
return [n, u];
|
|
81
|
-
}
|
|
82
|
-
function I(e) {
|
|
83
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
84
|
-
acceptNode: (u) => {
|
|
85
|
-
const p = u.tagName === "INPUT" && u.type === "hidden";
|
|
86
|
-
return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
90
|
-
return t;
|
|
91
|
-
}
|
|
92
|
-
function S(e, t) {
|
|
93
|
-
for (const n of e)
|
|
94
|
-
if (!D(n, { upTo: t })) return n;
|
|
95
|
-
}
|
|
96
|
-
function D(e, { upTo: t }) {
|
|
97
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
98
|
-
for (; e; ) {
|
|
99
|
-
if (t !== void 0 && e === t) return !1;
|
|
100
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
101
|
-
e = e.parentElement;
|
|
102
|
-
}
|
|
103
|
-
return !1;
|
|
104
|
-
}
|
|
105
|
-
function H(e) {
|
|
106
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
107
|
-
}
|
|
108
|
-
function f(e, { select: t = !1 } = {}) {
|
|
109
|
-
if (e && e.focus) {
|
|
110
|
-
const n = document.activeElement;
|
|
111
|
-
e.focus({ preventScroll: !0 }), e !== n && H(e) && t && e.select();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
var O = V();
|
|
115
|
-
function V() {
|
|
116
|
-
let e = [];
|
|
117
|
-
return {
|
|
118
|
-
add(t) {
|
|
119
|
-
const n = e[0];
|
|
120
|
-
t !== n && n?.pause(), e = C(e, t), e.unshift(t);
|
|
121
|
-
},
|
|
122
|
-
remove(t) {
|
|
123
|
-
e = C(e, t), e[0]?.resume();
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function C(e, t) {
|
|
128
|
-
const n = [...e], u = n.indexOf(t);
|
|
129
|
-
return u !== -1 && n.splice(u, 1), n;
|
|
130
|
-
}
|
|
131
|
-
function W(e) {
|
|
132
|
-
return e.filter((t) => t.tagName !== "A");
|
|
133
|
-
}
|
|
134
|
-
export {
|
|
135
|
-
k as FocusScope
|
|
136
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
import { useLayoutEffect as a } from "../../react-use-layout-effect/dist/index.js";
|
|
3
|
-
var s = o[" useId ".trim().toString()] || (() => {
|
|
4
|
-
}), f = 0;
|
|
5
|
-
function i(t) {
|
|
6
|
-
const [e, r] = o.useState(s());
|
|
7
|
-
return a(() => {
|
|
8
|
-
r((u) => u ?? String(f++));
|
|
9
|
-
}, [t]), t || (e ? `radix-${e}` : "");
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as useId
|
|
13
|
-
};
|