@zimyo/ui 1.0.2 → 1.1.1
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/Accordion/index.d.ts +34 -0
- package/dist/Accordion/index.esm.js +129 -0
- package/dist/Accordion/index.js +137 -0
- package/dist/Button/index.d.ts +15 -0
- package/dist/Button/index.esm.js +23 -0
- package/dist/Button/index.js +28 -0
- package/dist/Card/index.d.ts +41 -0
- package/dist/Card/index.esm.js +36 -0
- package/dist/Card/index.js +38 -0
- package/dist/Popover/index.d.ts +19 -0
- package/dist/Popover/index.esm.js +22 -0
- package/dist/Popover/index.js +27 -0
- package/dist/RadioGroup/index.d.ts +31 -0
- package/dist/RadioGroup/index.esm.js +92 -0
- package/dist/RadioGroup/index.js +97 -0
- package/dist/Typography/index.d.ts +30 -0
- package/dist/Typography/index.esm.js +57 -0
- package/dist/Typography/index.js +66 -0
- package/package.json +106 -83
- package/dist/components/index.d.ts +0 -60
- package/dist/components/ui/accordion.d.ts +0 -10
- package/dist/components/ui/accordion.js +0 -58
- package/dist/components/ui/alert-dialog.d.ts +0 -17
- package/dist/components/ui/alert-dialog.js +0 -108
- package/dist/components/ui/alert.d.ts +0 -13
- package/dist/components/ui/alert.js +0 -52
- package/dist/components/ui/aspect-ratio.d.ts +0 -6
- package/dist/components/ui/aspect-ratio.js +0 -12
- package/dist/components/ui/avatar.d.ts +0 -9
- package/dist/components/ui/avatar.js +0 -37
- package/dist/components/ui/badge.d.ts +0 -13
- package/dist/components/ui/badge.js +0 -36
- package/dist/components/ui/breadcrumb.d.ts +0 -14
- package/dist/components/ui/breadcrumb.js +0 -94
- package/dist/components/ui/button.d.ts +0 -14
- package/dist/components/ui/button.js +0 -48
- package/dist/components/ui/calendar.d.ts +0 -13
- package/dist/components/ui/calendar.js +0 -137
- package/dist/components/ui/card.d.ts +0 -12
- package/dist/components/ui/card.js +0 -76
- package/dist/components/ui/carousel.d.ts +0 -25
- package/dist/components/ui/carousel.js +0 -173
- package/dist/components/ui/chart.d.ts +0 -44
- package/dist/components/ui/chart.js +0 -203
- package/dist/components/ui/checkbox.d.ts +0 -7
- package/dist/components/ui/checkbox.js +0 -26
- package/dist/components/ui/collapsible.d.ts +0 -8
- package/dist/components/ui/collapsible.js +0 -24
- package/dist/components/ui/command.d.ts +0 -22
- package/dist/components/ui/command.js +0 -119
- package/dist/components/ui/context-menu.d.ts +0 -28
- package/dist/components/ui/context-menu.js +0 -171
- package/dist/components/ui/dialog.d.ts +0 -18
- package/dist/components/ui/dialog.js +0 -106
- package/dist/components/ui/drawer.d.ts +0 -16
- package/dist/components/ui/drawer.js +0 -99
- package/dist/components/ui/dropdown-menu.d.ts +0 -28
- package/dist/components/ui/dropdown-menu.js +0 -173
- package/dist/components/ui/form.d.ts +0 -27
- package/dist/components/ui/form.js +0 -129
- package/dist/components/ui/hover-card.d.ts +0 -9
- package/dist/components/ui/hover-card.js +0 -36
- package/dist/components/ui/input-otp.d.ts +0 -14
- package/dist/components/ui/input-otp.js +0 -66
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.js +0 -18
- package/dist/components/ui/label.d.ts +0 -7
- package/dist/components/ui/label.js +0 -17
- package/dist/components/ui/menubar.d.ts +0 -29
- package/dist/components/ui/menubar.js +0 -191
- package/dist/components/ui/navigation-menu.d.ts +0 -18
- package/dist/components/ui/navigation-menu.js +0 -108
- package/dist/components/ui/pagination.d.ts +0 -18
- package/dist/components/ui/pagination.js +0 -103
- package/dist/components/ui/popover.d.ts +0 -10
- package/dist/components/ui/popover.js +0 -41
- package/dist/components/ui/progress.d.ts +0 -7
- package/dist/components/ui/progress.js +0 -26
- package/dist/components/ui/radio-group.d.ts +0 -8
- package/dist/components/ui/radio-group.js +0 -36
- package/dist/components/ui/resizable.d.ts +0 -11
- package/dist/components/ui/resizable.js +0 -42
- package/dist/components/ui/scroll-area.d.ts +0 -8
- package/dist/components/ui/scroll-area.js +0 -41
- package/dist/components/ui/select.d.ts +0 -18
- package/dist/components/ui/select.js +0 -136
- package/dist/components/ui/separator.d.ts +0 -7
- package/dist/components/ui/separator.js +0 -21
- package/dist/components/ui/sheet.d.ts +0 -16
- package/dist/components/ui/sheet.js +0 -106
- package/dist/components/ui/sidebar.d.ts +0 -74
- package/dist/components/ui/sidebar.js +0 -511
- package/dist/components/ui/skeleton.d.ts +0 -5
- package/dist/components/ui/skeleton.js +0 -16
- package/dist/components/ui/slider.d.ts +0 -7
- package/dist/components/ui/slider.js +0 -41
- package/dist/components/ui/sonner.d.ts +0 -6
- package/dist/components/ui/sonner.js +0 -18
- package/dist/components/ui/switch.d.ts +0 -7
- package/dist/components/ui/switch.js +0 -22
- package/dist/components/ui/table.d.ts +0 -13
- package/dist/components/ui/table.js +0 -90
- package/dist/components/ui/tabs.d.ts +0 -10
- package/dist/components/ui/tabs.js +0 -47
- package/dist/components/ui/textarea.d.ts +0 -6
- package/dist/components/ui/textarea.js +0 -16
- package/dist/components/ui/toggle-group.d.ts +0 -11
- package/dist/components/ui/toggle-group.js +0 -57
- package/dist/components/ui/toggle.d.ts +0 -13
- package/dist/components/ui/toggle.js +0 -41
- package/dist/components/ui/tooltip.d.ts +0 -10
- package/dist/components/ui/tooltip.js +0 -50
- package/dist/index.d.ts +0 -63
- package/dist/index.js +0 -48
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -8
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -101
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -207
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -43
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -79
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -321
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -211
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -207
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -130
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -89
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
- package/dist/node_modules/class-variance-authority/dist/index.js +0 -44
- package/dist/node_modules/clsx/dist/clsx.js +0 -3
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js +0 -3
- package/dist/node_modules/cmdk/dist/index.js +0 -10
- 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 -775
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -94
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -66
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -31
- 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 -25
- package/dist/node_modules/date-fns/addDays.js +0 -41
- package/dist/node_modules/date-fns/addMonths.js +0 -75
- package/dist/node_modules/date-fns/addWeeks.js +0 -33
- package/dist/node_modules/date-fns/addYears.js +0 -33
- package/dist/node_modules/date-fns/constants.js +0 -46
- package/dist/node_modules/date-fns/constructFrom.js +0 -49
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -62
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -42
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -65
- package/dist/node_modules/date-fns/endOfISOWeek.js +0 -35
- package/dist/node_modules/date-fns/endOfMonth.js +0 -37
- package/dist/node_modules/date-fns/endOfWeek.js +0 -53
- package/dist/node_modules/date-fns/endOfYear.js +0 -37
- package/dist/node_modules/date-fns/format.js +0 -423
- package/dist/node_modules/date-fns/getDayOfYear.js +0 -34
- package/dist/node_modules/date-fns/getDaysInMonth.js +0 -36
- package/dist/node_modules/date-fns/getISOWeek.js +0 -40
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -52
- package/dist/node_modules/date-fns/getMonth.js +0 -29
- package/dist/node_modules/date-fns/getWeek.js +0 -54
- package/dist/node_modules/date-fns/getWeekYear.js +0 -75
- package/dist/node_modules/date-fns/getYear.js +0 -29
- package/dist/node_modules/date-fns/isAfter.js +0 -25
- package/dist/node_modules/date-fns/isBefore.js +0 -25
- package/dist/node_modules/date-fns/isDate.js +0 -41
- package/dist/node_modules/date-fns/isSameDay.js +0 -46
- package/dist/node_modules/date-fns/isSameMonth.js +0 -43
- package/dist/node_modules/date-fns/isSameYear.js +0 -35
- package/dist/node_modules/date-fns/isValid.js +0 -39
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -64
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -59
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -22
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -103
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -41
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -13
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -189
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -134
- package/dist/node_modules/date-fns/locale/en-US.js +0 -28
- package/dist/node_modules/date-fns/max.js +0 -49
- package/dist/node_modules/date-fns/min.js +0 -49
- package/dist/node_modules/date-fns/setMonth.js +0 -46
- package/dist/node_modules/date-fns/setYear.js +0 -40
- package/dist/node_modules/date-fns/startOfDay.js +0 -35
- package/dist/node_modules/date-fns/startOfISOWeek.js +0 -35
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -42
- package/dist/node_modules/date-fns/startOfMonth.js +0 -37
- package/dist/node_modules/date-fns/startOfWeek.js +0 -53
- package/dist/node_modules/date-fns/startOfWeekYear.js +0 -64
- package/dist/node_modules/date-fns/startOfYear.js +0 -36
- package/dist/node_modules/date-fns/toDate.js +0 -46
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1669
- package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -37
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -38
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
- package/dist/node_modules/input-otp/dist/index.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -285
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -122
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -30
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -522
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -13
- 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 -18
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -31
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -25
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -73
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -95
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -28
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -33
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -20
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -51
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -33
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -46
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -33
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -69
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -51
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -39
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -36
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -37
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -38
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -31
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -32
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -14
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -57
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -45
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -44
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -175
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -85
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -25
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -50
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -31
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -92
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -62
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -30
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -74
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -35
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -66
- package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -507
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -160
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
- 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 -56
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
- package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.js +0 -2407
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
- package/dist/node_modules/sonner/dist/index.js +0 -1125
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2956
- package/dist/node_modules/tslib/tslib.es6.js +0 -56
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
- package/dist/node_modules/vaul/dist/index.js +0 -1627
- package/dist/providers/ThemeProvider.d.ts +0 -12
- package/dist/providers/ThemeProvider.js +0 -27
- package/dist/providers/index.d.ts +0 -3
- package/dist/styles.css +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { DropdownMenu as DropdownMenu$1 } from 'radix-ui';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
-
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
7
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
9
|
-
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
10
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
11
|
-
inset?: boolean;
|
|
12
|
-
variant?: "default" | "destructive";
|
|
13
|
-
}): react_jsx_runtime.JSX.Element;
|
|
14
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
15
|
-
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
16
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
17
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
18
|
-
inset?: boolean;
|
|
19
|
-
}): react_jsx_runtime.JSX.Element;
|
|
20
|
-
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
21
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
22
|
-
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
23
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
24
|
-
inset?: boolean;
|
|
25
|
-
}): react_jsx_runtime.JSX.Element;
|
|
26
|
-
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
27
|
-
|
|
28
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { CheckIcon, CircleIcon, ChevronRightIcon } from 'lucide-react';
|
|
4
|
-
import { DropdownMenu as DropdownMenu$1 } from 'radix-ui';
|
|
5
|
-
import { cn } from '../../lib/utils.js';
|
|
6
|
-
|
|
7
|
-
function DropdownMenu(_a) {
|
|
8
|
-
var props = __rest(_a, []);
|
|
9
|
-
return jsx(DropdownMenu$1.Root, Object.assign({
|
|
10
|
-
"data-slot": "dropdown-menu"
|
|
11
|
-
}, props));
|
|
12
|
-
}
|
|
13
|
-
function DropdownMenuPortal(_a) {
|
|
14
|
-
var props = __rest(_a, []);
|
|
15
|
-
return jsx(DropdownMenu$1.Portal, Object.assign({
|
|
16
|
-
"data-slot": "dropdown-menu-portal"
|
|
17
|
-
}, props));
|
|
18
|
-
}
|
|
19
|
-
function DropdownMenuTrigger(_a) {
|
|
20
|
-
var props = __rest(_a, []);
|
|
21
|
-
return jsx(DropdownMenu$1.Trigger, Object.assign({
|
|
22
|
-
"data-slot": "dropdown-menu-trigger"
|
|
23
|
-
}, props));
|
|
24
|
-
}
|
|
25
|
-
function DropdownMenuContent(_a) {
|
|
26
|
-
var {
|
|
27
|
-
className,
|
|
28
|
-
sideOffset = 4
|
|
29
|
-
} = _a,
|
|
30
|
-
props = __rest(_a, ["className", "sideOffset"]);
|
|
31
|
-
return jsx(DropdownMenu$1.Portal, {
|
|
32
|
-
children: jsx(DropdownMenu$1.Content, Object.assign({
|
|
33
|
-
"data-slot": "dropdown-menu-content",
|
|
34
|
-
sideOffset: sideOffset,
|
|
35
|
-
className: cn("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 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className)
|
|
36
|
-
}, props))
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function DropdownMenuGroup(_a) {
|
|
40
|
-
var props = __rest(_a, []);
|
|
41
|
-
return jsx(DropdownMenu$1.Group, Object.assign({
|
|
42
|
-
"data-slot": "dropdown-menu-group"
|
|
43
|
-
}, props));
|
|
44
|
-
}
|
|
45
|
-
function DropdownMenuItem(_a) {
|
|
46
|
-
var {
|
|
47
|
-
className,
|
|
48
|
-
inset,
|
|
49
|
-
variant = "default"
|
|
50
|
-
} = _a,
|
|
51
|
-
props = __rest(_a, ["className", "inset", "variant"]);
|
|
52
|
-
return jsx(DropdownMenu$1.Item, Object.assign({
|
|
53
|
-
"data-slot": "dropdown-menu-item",
|
|
54
|
-
"data-inset": inset,
|
|
55
|
-
"data-variant": variant,
|
|
56
|
-
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
57
|
-
}, props));
|
|
58
|
-
}
|
|
59
|
-
function DropdownMenuCheckboxItem(_a) {
|
|
60
|
-
var {
|
|
61
|
-
className,
|
|
62
|
-
children,
|
|
63
|
-
checked
|
|
64
|
-
} = _a,
|
|
65
|
-
props = __rest(_a, ["className", "children", "checked"]);
|
|
66
|
-
return jsxs(DropdownMenu$1.CheckboxItem, Object.assign({
|
|
67
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
68
|
-
className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
69
|
-
checked: checked
|
|
70
|
-
}, props, {
|
|
71
|
-
children: [jsx("span", {
|
|
72
|
-
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
73
|
-
children: jsx(DropdownMenu$1.ItemIndicator, {
|
|
74
|
-
children: jsx(CheckIcon, {
|
|
75
|
-
className: "size-4"
|
|
76
|
-
})
|
|
77
|
-
})
|
|
78
|
-
}), children]
|
|
79
|
-
}));
|
|
80
|
-
}
|
|
81
|
-
function DropdownMenuRadioGroup(_a) {
|
|
82
|
-
var props = __rest(_a, []);
|
|
83
|
-
return jsx(DropdownMenu$1.RadioGroup, Object.assign({
|
|
84
|
-
"data-slot": "dropdown-menu-radio-group"
|
|
85
|
-
}, props));
|
|
86
|
-
}
|
|
87
|
-
function DropdownMenuRadioItem(_a) {
|
|
88
|
-
var {
|
|
89
|
-
className,
|
|
90
|
-
children
|
|
91
|
-
} = _a,
|
|
92
|
-
props = __rest(_a, ["className", "children"]);
|
|
93
|
-
return jsxs(DropdownMenu$1.RadioItem, Object.assign({
|
|
94
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
95
|
-
className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
96
|
-
}, props, {
|
|
97
|
-
children: [jsx("span", {
|
|
98
|
-
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
99
|
-
children: jsx(DropdownMenu$1.ItemIndicator, {
|
|
100
|
-
children: jsx(CircleIcon, {
|
|
101
|
-
className: "size-2 fill-current"
|
|
102
|
-
})
|
|
103
|
-
})
|
|
104
|
-
}), children]
|
|
105
|
-
}));
|
|
106
|
-
}
|
|
107
|
-
function DropdownMenuLabel(_a) {
|
|
108
|
-
var {
|
|
109
|
-
className,
|
|
110
|
-
inset
|
|
111
|
-
} = _a,
|
|
112
|
-
props = __rest(_a, ["className", "inset"]);
|
|
113
|
-
return jsx(DropdownMenu$1.Label, Object.assign({
|
|
114
|
-
"data-slot": "dropdown-menu-label",
|
|
115
|
-
"data-inset": inset,
|
|
116
|
-
className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className)
|
|
117
|
-
}, props));
|
|
118
|
-
}
|
|
119
|
-
function DropdownMenuSeparator(_a) {
|
|
120
|
-
var {
|
|
121
|
-
className
|
|
122
|
-
} = _a,
|
|
123
|
-
props = __rest(_a, ["className"]);
|
|
124
|
-
return jsx(DropdownMenu$1.Separator, Object.assign({
|
|
125
|
-
"data-slot": "dropdown-menu-separator",
|
|
126
|
-
className: cn("bg-border -mx-1 my-1 h-px", className)
|
|
127
|
-
}, props));
|
|
128
|
-
}
|
|
129
|
-
function DropdownMenuShortcut(_a) {
|
|
130
|
-
var {
|
|
131
|
-
className
|
|
132
|
-
} = _a,
|
|
133
|
-
props = __rest(_a, ["className"]);
|
|
134
|
-
return jsx("span", Object.assign({
|
|
135
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
136
|
-
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className)
|
|
137
|
-
}, props));
|
|
138
|
-
}
|
|
139
|
-
function DropdownMenuSub(_a) {
|
|
140
|
-
var props = __rest(_a, []);
|
|
141
|
-
return jsx(DropdownMenu$1.Sub, Object.assign({
|
|
142
|
-
"data-slot": "dropdown-menu-sub"
|
|
143
|
-
}, props));
|
|
144
|
-
}
|
|
145
|
-
function DropdownMenuSubTrigger(_a) {
|
|
146
|
-
var {
|
|
147
|
-
className,
|
|
148
|
-
inset,
|
|
149
|
-
children
|
|
150
|
-
} = _a,
|
|
151
|
-
props = __rest(_a, ["className", "inset", "children"]);
|
|
152
|
-
return jsxs(DropdownMenu$1.SubTrigger, Object.assign({
|
|
153
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
154
|
-
"data-inset": inset,
|
|
155
|
-
className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8", className)
|
|
156
|
-
}, props, {
|
|
157
|
-
children: [children, jsx(ChevronRightIcon, {
|
|
158
|
-
className: "ml-auto size-4"
|
|
159
|
-
})]
|
|
160
|
-
}));
|
|
161
|
-
}
|
|
162
|
-
function DropdownMenuSubContent(_a) {
|
|
163
|
-
var {
|
|
164
|
-
className
|
|
165
|
-
} = _a,
|
|
166
|
-
props = __rest(_a, ["className"]);
|
|
167
|
-
return jsx(DropdownMenu$1.SubContent, Object.assign({
|
|
168
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
169
|
-
className: cn("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 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className)
|
|
170
|
-
}, props));
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react_hook_form from 'react-hook-form';
|
|
3
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
4
|
-
import { Slot, Label } from 'radix-ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
|
|
7
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
8
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
9
|
-
declare const useFormField: () => {
|
|
10
|
-
invalid: boolean;
|
|
11
|
-
isDirty: boolean;
|
|
12
|
-
isTouched: boolean;
|
|
13
|
-
isValidating: boolean;
|
|
14
|
-
error?: react_hook_form.FieldError;
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
formItemId: string;
|
|
18
|
-
formDescriptionId: string;
|
|
19
|
-
formMessageId: string;
|
|
20
|
-
};
|
|
21
|
-
declare function FormItem({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
22
|
-
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof Label.Root>): react_jsx_runtime.JSX.Element;
|
|
23
|
-
declare function FormControl({ ...props }: React.ComponentProps<typeof Slot.Slot>): react_jsx_runtime.JSX.Element;
|
|
24
|
-
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
25
|
-
declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
|
|
26
|
-
|
|
27
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { Slot } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { FormProvider, Controller, useFormContext, useFormState } from '../../node_modules/react-hook-form/dist/index.esm.js';
|
|
6
|
-
import { Label } from './label.js';
|
|
7
|
-
import { cn } from '../../lib/utils.js';
|
|
8
|
-
|
|
9
|
-
const Form = FormProvider;
|
|
10
|
-
const FormFieldContext = /*#__PURE__*/React.createContext({});
|
|
11
|
-
const FormField = _a => {
|
|
12
|
-
var props = __rest(_a, []);
|
|
13
|
-
return jsx(FormFieldContext.Provider, {
|
|
14
|
-
value: {
|
|
15
|
-
name: props.name
|
|
16
|
-
},
|
|
17
|
-
children: jsx(Controller, Object.assign({}, props))
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
const useFormField = () => {
|
|
21
|
-
const fieldContext = React.useContext(FormFieldContext);
|
|
22
|
-
const itemContext = React.useContext(FormItemContext);
|
|
23
|
-
const {
|
|
24
|
-
getFieldState
|
|
25
|
-
} = useFormContext();
|
|
26
|
-
const formState = useFormState({
|
|
27
|
-
name: fieldContext.name
|
|
28
|
-
});
|
|
29
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
30
|
-
if (!fieldContext) {
|
|
31
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
32
|
-
}
|
|
33
|
-
const {
|
|
34
|
-
id
|
|
35
|
-
} = itemContext;
|
|
36
|
-
return Object.assign({
|
|
37
|
-
id,
|
|
38
|
-
name: fieldContext.name,
|
|
39
|
-
formItemId: `${id}-form-item`,
|
|
40
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
41
|
-
formMessageId: `${id}-form-item-message`
|
|
42
|
-
}, fieldState);
|
|
43
|
-
};
|
|
44
|
-
const FormItemContext = /*#__PURE__*/React.createContext({});
|
|
45
|
-
function FormItem(_a) {
|
|
46
|
-
var {
|
|
47
|
-
className
|
|
48
|
-
} = _a,
|
|
49
|
-
props = __rest(_a, ["className"]);
|
|
50
|
-
const id = React.useId();
|
|
51
|
-
return jsx(FormItemContext.Provider, {
|
|
52
|
-
value: {
|
|
53
|
-
id
|
|
54
|
-
},
|
|
55
|
-
children: jsx("div", Object.assign({
|
|
56
|
-
"data-slot": "form-item",
|
|
57
|
-
className: cn("grid gap-2", className)
|
|
58
|
-
}, props))
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function FormLabel(_a) {
|
|
62
|
-
var {
|
|
63
|
-
className
|
|
64
|
-
} = _a,
|
|
65
|
-
props = __rest(_a, ["className"]);
|
|
66
|
-
const {
|
|
67
|
-
error,
|
|
68
|
-
formItemId
|
|
69
|
-
} = useFormField();
|
|
70
|
-
return jsx(Label, Object.assign({
|
|
71
|
-
"data-slot": "form-label",
|
|
72
|
-
"data-error": !!error,
|
|
73
|
-
className: cn("data-[error=true]:text-destructive", className),
|
|
74
|
-
htmlFor: formItemId
|
|
75
|
-
}, props));
|
|
76
|
-
}
|
|
77
|
-
function FormControl(_a) {
|
|
78
|
-
var props = __rest(_a, []);
|
|
79
|
-
const {
|
|
80
|
-
error,
|
|
81
|
-
formItemId,
|
|
82
|
-
formDescriptionId,
|
|
83
|
-
formMessageId
|
|
84
|
-
} = useFormField();
|
|
85
|
-
return jsx(Slot.Slot, Object.assign({
|
|
86
|
-
"data-slot": "form-control",
|
|
87
|
-
id: formItemId,
|
|
88
|
-
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
89
|
-
"aria-invalid": !!error
|
|
90
|
-
}, props));
|
|
91
|
-
}
|
|
92
|
-
function FormDescription(_a) {
|
|
93
|
-
var {
|
|
94
|
-
className
|
|
95
|
-
} = _a,
|
|
96
|
-
props = __rest(_a, ["className"]);
|
|
97
|
-
const {
|
|
98
|
-
formDescriptionId
|
|
99
|
-
} = useFormField();
|
|
100
|
-
return jsx("p", Object.assign({
|
|
101
|
-
"data-slot": "form-description",
|
|
102
|
-
id: formDescriptionId,
|
|
103
|
-
className: cn("text-muted-foreground text-sm", className)
|
|
104
|
-
}, props));
|
|
105
|
-
}
|
|
106
|
-
function FormMessage(_a) {
|
|
107
|
-
var _b;
|
|
108
|
-
var {
|
|
109
|
-
className
|
|
110
|
-
} = _a,
|
|
111
|
-
props = __rest(_a, ["className"]);
|
|
112
|
-
const {
|
|
113
|
-
error,
|
|
114
|
-
formMessageId
|
|
115
|
-
} = useFormField();
|
|
116
|
-
const body = error ? String((_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : "") : props.children;
|
|
117
|
-
if (!body) {
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
return jsx("p", Object.assign({
|
|
121
|
-
"data-slot": "form-message",
|
|
122
|
-
id: formMessageId,
|
|
123
|
-
className: cn("text-destructive text-sm", className)
|
|
124
|
-
}, props, {
|
|
125
|
-
children: body
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { HoverCard as HoverCard$1 } from 'radix-ui';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
-
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
-
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime.JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { HoverCard as HoverCard$1 } from 'radix-ui';
|
|
4
|
-
import { cn } from '../../lib/utils.js';
|
|
5
|
-
|
|
6
|
-
function HoverCard(_a) {
|
|
7
|
-
var props = __rest(_a, []);
|
|
8
|
-
return jsx(HoverCard$1.Root, Object.assign({
|
|
9
|
-
"data-slot": "hover-card"
|
|
10
|
-
}, props));
|
|
11
|
-
}
|
|
12
|
-
function HoverCardTrigger(_a) {
|
|
13
|
-
var props = __rest(_a, []);
|
|
14
|
-
return jsx(HoverCard$1.Trigger, Object.assign({
|
|
15
|
-
"data-slot": "hover-card-trigger"
|
|
16
|
-
}, props));
|
|
17
|
-
}
|
|
18
|
-
function HoverCardContent(_a) {
|
|
19
|
-
var {
|
|
20
|
-
className,
|
|
21
|
-
align = "center",
|
|
22
|
-
sideOffset = 4
|
|
23
|
-
} = _a,
|
|
24
|
-
props = __rest(_a, ["className", "align", "sideOffset"]);
|
|
25
|
-
return jsx(HoverCard$1.Portal, {
|
|
26
|
-
"data-slot": "hover-card-portal",
|
|
27
|
-
children: jsx(HoverCard$1.Content, Object.assign({
|
|
28
|
-
"data-slot": "hover-card-content",
|
|
29
|
-
align: align,
|
|
30
|
-
sideOffset: sideOffset,
|
|
31
|
-
className: cn("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-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className)
|
|
32
|
-
}, props))
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { OTPInput } from 'input-otp';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
|
|
6
|
-
containerClassName?: string;
|
|
7
|
-
}): react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
9
|
-
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
10
|
-
index: number;
|
|
11
|
-
}): react_jsx_runtime.JSX.Element;
|
|
12
|
-
declare function InputOTPSeparator({ ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { OTPInput as Lt, OTPInputContext as jt } from '../../node_modules/input-otp/dist/index.js';
|
|
4
|
-
import { MinusIcon } from 'lucide-react';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { cn } from '../../lib/utils.js';
|
|
7
|
-
|
|
8
|
-
function InputOTP(_a) {
|
|
9
|
-
var {
|
|
10
|
-
className,
|
|
11
|
-
containerClassName
|
|
12
|
-
} = _a,
|
|
13
|
-
props = __rest(_a, ["className", "containerClassName"]);
|
|
14
|
-
return jsx(Lt, Object.assign({
|
|
15
|
-
"data-slot": "input-otp",
|
|
16
|
-
containerClassName: cn("flex items-center gap-2 has-disabled:opacity-50", containerClassName),
|
|
17
|
-
className: cn("disabled:cursor-not-allowed", className)
|
|
18
|
-
}, props));
|
|
19
|
-
}
|
|
20
|
-
function InputOTPGroup(_a) {
|
|
21
|
-
var {
|
|
22
|
-
className
|
|
23
|
-
} = _a,
|
|
24
|
-
props = __rest(_a, ["className"]);
|
|
25
|
-
return jsx("div", Object.assign({
|
|
26
|
-
"data-slot": "input-otp-group",
|
|
27
|
-
className: cn("flex items-center", className)
|
|
28
|
-
}, props));
|
|
29
|
-
}
|
|
30
|
-
function InputOTPSlot(_a) {
|
|
31
|
-
var _b;
|
|
32
|
-
var {
|
|
33
|
-
index,
|
|
34
|
-
className
|
|
35
|
-
} = _a,
|
|
36
|
-
props = __rest(_a, ["index", "className"]);
|
|
37
|
-
const inputOTPContext = React.useContext(jt);
|
|
38
|
-
const {
|
|
39
|
-
char,
|
|
40
|
-
hasFakeCaret,
|
|
41
|
-
isActive
|
|
42
|
-
} = (_b = inputOTPContext === null || inputOTPContext === void 0 ? void 0 : inputOTPContext.slots[index]) !== null && _b !== void 0 ? _b : {};
|
|
43
|
-
return jsxs("div", Object.assign({
|
|
44
|
-
"data-slot": "input-otp-slot",
|
|
45
|
-
"data-active": isActive,
|
|
46
|
-
className: cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]", className)
|
|
47
|
-
}, props, {
|
|
48
|
-
children: [char, hasFakeCaret && jsx("div", {
|
|
49
|
-
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
50
|
-
children: jsx("div", {
|
|
51
|
-
className: "animate-caret-blink bg-foreground h-4 w-px duration-1000"
|
|
52
|
-
})
|
|
53
|
-
})]
|
|
54
|
-
}));
|
|
55
|
-
}
|
|
56
|
-
function InputOTPSeparator(_a) {
|
|
57
|
-
var props = __rest(_a, []);
|
|
58
|
-
return jsx("div", Object.assign({
|
|
59
|
-
"data-slot": "input-otp-separator",
|
|
60
|
-
role: "separator"
|
|
61
|
-
}, props, {
|
|
62
|
-
children: jsx(MinusIcon, {})
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { cn } from '../../lib/utils.js';
|
|
4
|
-
|
|
5
|
-
function Input(_a) {
|
|
6
|
-
var {
|
|
7
|
-
className,
|
|
8
|
-
type
|
|
9
|
-
} = _a,
|
|
10
|
-
props = __rest(_a, ["className", "type"]);
|
|
11
|
-
return jsx("input", Object.assign({
|
|
12
|
-
type: type,
|
|
13
|
-
"data-slot": "input",
|
|
14
|
-
className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "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", className)
|
|
15
|
-
}, props));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { Input };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Label as Label$1 } from 'radix-ui';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
declare function Label({ className, ...props }: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
-
|
|
7
|
-
export { Label };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { Label as Label$1 } from 'radix-ui';
|
|
4
|
-
import { cn } from '../../lib/utils.js';
|
|
5
|
-
|
|
6
|
-
function Label(_a) {
|
|
7
|
-
var {
|
|
8
|
-
className
|
|
9
|
-
} = _a,
|
|
10
|
-
props = __rest(_a, ["className"]);
|
|
11
|
-
return jsx(Label$1.Root, Object.assign({
|
|
12
|
-
"data-slot": "label",
|
|
13
|
-
className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className)
|
|
14
|
-
}, props));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { Label };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Menubar as Menubar$1 } from 'radix-ui';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
declare function Menubar({ className, ...props }: React.ComponentProps<typeof Menubar$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
-
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime.JSX.Element;
|
|
7
|
-
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
9
|
-
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
10
|
-
declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
11
|
-
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof Menubar$1.Content>): react_jsx_runtime.JSX.Element;
|
|
12
|
-
declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof Menubar$1.Item> & {
|
|
13
|
-
inset?: boolean;
|
|
14
|
-
variant?: "default" | "destructive";
|
|
15
|
-
}): react_jsx_runtime.JSX.Element;
|
|
16
|
-
declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
17
|
-
declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof Menubar$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
18
|
-
declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof Menubar$1.Label> & {
|
|
19
|
-
inset?: boolean;
|
|
20
|
-
}): react_jsx_runtime.JSX.Element;
|
|
21
|
-
declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
22
|
-
declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
23
|
-
declare function MenubarSub({ ...props }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
24
|
-
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof Menubar$1.SubTrigger> & {
|
|
25
|
-
inset?: boolean;
|
|
26
|
-
}): react_jsx_runtime.JSX.Element;
|
|
27
|
-
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
28
|
-
|
|
29
|
-
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|