prometeo-design-system 2.8.7 → 2.8.9
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/{components/Avatar/Avatar.js → Avatar.es.js} +24 -24
- package/dist/{components/Button/Button.js → Button.es.js} +55 -55
- package/dist/{components/CardProfile/CardProfile.js → CardProfile-CsytJlKZ.js} +94 -68
- package/dist/CardProfile.es.js +5 -0
- package/dist/{components/CheckBox/CheckBox.js → CheckBox.es.js} +25 -25
- package/dist/DatePicker.es.js +3441 -0
- package/dist/DialogModal.es.js +75 -0
- package/dist/DrawerDesktop.es.js +192 -0
- package/dist/DrawerMobile.es.js +242 -0
- package/dist/DropZone.es.js +87 -0
- package/dist/{components/FAB/FAButton.js → FAButton.es.js} +5 -5
- package/dist/Header.es.js +32 -0
- package/dist/HelperComponent-g_xuKWzK.js +24 -0
- package/dist/Icons-DtFC5DJ7.js +1079 -0
- package/dist/Icons.es.js +5 -0
- package/dist/{components/Image/Image.js → Image.es.js} +32 -32
- package/dist/ImageGallery-Ckxg9OIC.js +317 -0
- package/dist/{components/Image/useImageGallery.js → ImageGallery.es.js} +2 -0
- package/dist/Input-Cck37DpG.js +240 -0
- package/dist/Input.es.js +4 -0
- package/dist/InputMultiple.es.js +263 -0
- package/dist/LayoutGeneric-CbaoatQB.js +26 -0
- package/dist/LayoutGeneric.es.js +4 -0
- package/dist/Logo.es.js +9 -0
- package/dist/{components/Menu/MenuComposable.js → Menu.es.js} +13 -12
- package/dist/OtpInput.es.js +301 -0
- package/dist/{components/Pagination/Pagination.js → Pagination.es.js} +32 -32
- package/dist/{components/ProfilePictureUpload/ProfilePictureUpload.js → ProfilePictureUpload.es.js} +57 -56
- package/dist/ProgressBar.es.js +70 -0
- package/dist/{components/RadioButton/RadioButton.js → RadioButton.es.js} +36 -35
- package/dist/{components/SegmentedButton/SegmentedButton.js → SegmentedButton.es.js} +38 -37
- package/dist/Select-BD5FTxVw.js +1100 -0
- package/dist/Select.es.js +4 -0
- package/dist/SelectSearch.es.js +237 -0
- package/dist/{components/Skeleton/Skeleton.js → Skeleton.es.js} +18 -16
- package/dist/Spinner.es.js +52 -0
- package/dist/{components/Steps/Steps.js → Steps.es.js} +62 -61
- package/dist/{components/SwipeContainer/SwipeContainer.js → SwipeContainer.es.js} +68 -68
- package/dist/{components/Switch/Switch.js → Switch.es.js} +18 -17
- package/dist/{components/TabLinks/TabLinks.js → TabLinks.es.js} +11 -11
- package/dist/{components/Table/Table.js → Table.es.js} +41 -38
- package/dist/{components/TextArea/TextArea.js → TextArea.es.js} +26 -24
- package/dist/{components/Toaster/Toaster.js → Toast.es.js} +48 -48
- package/dist/ToastProvider.es.js +6 -0
- package/dist/Tooltip.es.js +62 -0
- package/dist/{lib/cn.js → cn-B6yFEsav.js} +2 -2
- package/dist/{node_modules/class-variance-authority/dist/index.js → index-BOQuZ0gG.js} +9 -10
- package/dist/jsx-runtime-DKDX3adD.js +281 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +1002 -0
- package/dist/{hooks/useDragScroll.js → useDragScroll-CHN9OMwn.js} +1 -1
- package/package.json +120 -116
- package/dist/Avatar.js +0 -4
- package/dist/Button.js +0 -4
- package/dist/CardProfile.js +0 -5
- package/dist/CheckBox.js +0 -4
- package/dist/DatePicker.js +0 -5
- package/dist/DialogModal.js +0 -6
- package/dist/DrawerDesktop.js +0 -6
- package/dist/DrawerMobile.js +0 -6
- package/dist/DropZone.js +0 -5
- package/dist/FAButton.js +0 -4
- package/dist/Header.js +0 -4
- package/dist/Icons/Icons.js +0 -1055
- package/dist/Icons.js +0 -5
- package/dist/Image.js +0 -4
- package/dist/ImageGallery.js +0 -6
- package/dist/Input.js +0 -4
- package/dist/InputMultiple.js +0 -5
- package/dist/LayoutGeneric.js +0 -4
- package/dist/Logo.js +0 -4
- package/dist/Menu.js +0 -5
- package/dist/OtpInput.js +0 -4
- package/dist/Pagination.js +0 -4
- package/dist/ProfilePictureUpload.js +0 -5
- package/dist/ProgressBar.js +0 -4
- package/dist/RadioButton.js +0 -5
- package/dist/SegmentedButton.js +0 -5
- package/dist/Select.js +0 -4
- package/dist/SelectSearch.js +0 -4
- package/dist/Skeleton.js +0 -5
- package/dist/Spinner.js +0 -4
- package/dist/Steps.js +0 -5
- package/dist/SwipeContainer.js +0 -4
- package/dist/Switch.js +0 -5
- package/dist/TabLinks.js +0 -4
- package/dist/Table.js +0 -11
- package/dist/TextArea.js +0 -4
- package/dist/Toast.js +0 -5
- package/dist/ToastProvider.js +0 -4
- package/dist/Tooltip.js +0 -4
- package/dist/components/Autocomplete/useAutocomplete.js +0 -143
- package/dist/components/DatePicker/DatePicker.js +0 -396
- package/dist/components/Dialog/Dialog.js +0 -60
- package/dist/components/Dialog/useDialogControl.js +0 -18
- package/dist/components/Drawer/DrawerDesktop.js +0 -179
- package/dist/components/Drawer/DrawerMobile.js +0 -219
- package/dist/components/Drawer/useDrawerDesktop.js +0 -18
- package/dist/components/Drawer/useDrawerMobile.js +0 -27
- package/dist/components/DropZone/DropZone.js +0 -86
- package/dist/components/DropZone/useFileDropzone.js +0 -24
- package/dist/components/Header/Header.js +0 -32
- package/dist/components/Image/GalleryPreview.js +0 -40
- package/dist/components/Image/ImageGallery.js +0 -68
- package/dist/components/Image/LightBox.js +0 -223
- package/dist/components/Input/Input.js +0 -219
- package/dist/components/InputMultiple/InputMultiple.js +0 -262
- package/dist/components/Layout/LayoutGeneric.js +0 -13
- package/dist/components/Logo/Logo.js +0 -9
- package/dist/components/OtpInput/OtpInput.js +0 -112
- package/dist/components/ProgressBar/ProgressBar.js +0 -70
- package/dist/components/Select/Select.js +0 -1005
- package/dist/components/SelectSearch/SelectSearch.js +0 -101
- package/dist/components/Shared/Chip.js +0 -55
- package/dist/components/Shared/HelperComponent.js +0 -24
- package/dist/components/Sidebar/SecondaryBar/SecondaryBar.js +0 -62
- package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.js +0 -59
- package/dist/components/Sidebar/SidebarComposable.js +0 -84
- package/dist/components/Sidebar/components/NavigationLink.js +0 -34
- package/dist/components/Sidebar/components/badge.js +0 -33
- package/dist/components/Sidebar/components/changue-account.js +0 -31
- package/dist/components/Sidebar/components/collapse-button.js +0 -18
- package/dist/components/Sidebar/components/company-logo.js +0 -12
- package/dist/components/Sidebar/components/nav-actions.js +0 -98
- package/dist/components/Sidebar/components/nav-links.js +0 -100
- package/dist/components/Sidebar/context/SidebarContext.js +0 -19
- package/dist/components/Sidebar/hooks/SidebarProvider.js +0 -33
- package/dist/components/Sidebar/hooks/useNavBarActions.js +0 -9
- package/dist/components/Sidebar/hooks/useNavBarCollapse.js +0 -11
- package/dist/components/Sidebar/hooks/useSidebarHook.js +0 -13
- package/dist/components/Sidebar/ui/useNavbarAnimation.js +0 -326
- package/dist/components/Spinner/Spinner.js +0 -52
- package/dist/components/TabSwitch/TabSwitch.js +0 -57
- package/dist/components/Toaster/ToastProvider.js +0 -6
- package/dist/components/Tooltip/Tootip.js +0 -62
- package/dist/hooks/useClickOutside.js +0 -24
- package/dist/hooks/useLabelBackground.js +0 -25
- package/dist/index.js +0 -119
- package/dist/lib/utils.js +0 -54
- 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/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 -583
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -59
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -52
- 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 -6
- 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/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/locale/es/_lib/formatDistance.js +0 -70
- package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +0 -18
- package/dist/node_modules/date-fns/locale/es/_lib/localize.js +0 -143
- package/dist/node_modules/date-fns/locale/es/_lib/match.js +0 -116
- package/dist/node_modules/date-fns/locale/es.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/setMonth.js +0 -13
- 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/input-otp/dist/index.js +0 -194
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -227
- 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 -147
- 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 -21
- 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/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 -6
- 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/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 -44
- 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/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/typeguards.js +0 -26
- package/dist/useDevice.js +0 -4
- /package/dist/{hooks/useDevice.js → useDevice.es.js} +0 -0
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useState as d, useRef as
|
|
4
|
-
const
|
|
5
|
-
children:
|
|
6
|
-
className:
|
|
1
|
+
import { j as o } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { useState as d, useRef as D, useEffect as L } from "react";
|
|
4
|
+
const O = ({
|
|
5
|
+
children: x,
|
|
6
|
+
className: P,
|
|
7
7
|
showIndicators: R = !0,
|
|
8
|
-
showControls:
|
|
8
|
+
showControls: W = !0,
|
|
9
9
|
// Por defecto mostrar controles
|
|
10
|
-
autoPlay:
|
|
11
|
-
autoPlayInterval:
|
|
12
|
-
onSwipe:
|
|
13
|
-
threshold:
|
|
10
|
+
autoPlay: k = !1,
|
|
11
|
+
autoPlayInterval: $ = 3e3,
|
|
12
|
+
onSwipe: m,
|
|
13
|
+
threshold: Y = 50,
|
|
14
14
|
disabled: l = !1,
|
|
15
15
|
cardWidth: f,
|
|
16
16
|
// Ancho personalizado de tarjetas
|
|
17
17
|
visibleCards: r,
|
|
18
18
|
// Número de tarjetas visibles
|
|
19
|
-
width:
|
|
19
|
+
width: p = "100%",
|
|
20
20
|
// Ancho por defecto
|
|
21
21
|
height: v = "300px",
|
|
22
22
|
// Alto por defecto
|
|
23
23
|
gap: g = 16
|
|
24
24
|
// Separación por defecto entre cards
|
|
25
25
|
}) => {
|
|
26
|
-
const [n, h] = d(0), [u,
|
|
27
|
-
|
|
26
|
+
const [n, h] = d(0), [u, N] = d(!1), [T, B] = d({ x: 0, y: 0 }), [I, w] = d({ x: 0, y: 0 }), y = D(null), c = D(null), s = x.length, C = f ? typeof f == "number" ? `${f}px` : f : r && r > 0 ? `${100 / r}%` : "100%";
|
|
27
|
+
L(() => (k && s > 1 && !u && (c.current = setInterval(() => {
|
|
28
28
|
h((e) => (e + 1) % s);
|
|
29
|
-
},
|
|
29
|
+
}, $)), () => {
|
|
30
30
|
c.current && clearInterval(c.current);
|
|
31
|
-
}), [$,
|
|
31
|
+
}), [k, $, s, u]), L(() => {
|
|
32
32
|
u && c.current && clearInterval(c.current);
|
|
33
33
|
}, [u]);
|
|
34
|
-
const
|
|
35
|
-
l || (
|
|
36
|
-
},
|
|
34
|
+
const S = (e, t) => {
|
|
35
|
+
l || (N(!0), B({ x: e, y: t }), w({ x: e, y: t }));
|
|
36
|
+
}, E = (e, t) => {
|
|
37
37
|
!u || l || w({ x: e, y: t });
|
|
38
|
-
},
|
|
38
|
+
}, X = () => {
|
|
39
39
|
if (!u || l) return;
|
|
40
|
-
const e =
|
|
41
|
-
if (Math.abs(e) >
|
|
40
|
+
const e = I.x - T.x;
|
|
41
|
+
if (Math.abs(e) > Y) {
|
|
42
42
|
if (e > 0 && n > 0) {
|
|
43
43
|
const a = n - 1;
|
|
44
|
-
h(a),
|
|
44
|
+
h(a), m?.(a);
|
|
45
45
|
} else if (e < 0 && n < s - 1) {
|
|
46
46
|
const a = n + 1;
|
|
47
|
-
h(a),
|
|
47
|
+
h(a), m?.(a);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
N(!1), w({ x: 0, y: 0 });
|
|
51
|
+
}, U = (e) => {
|
|
52
|
+
e.preventDefault(), S(e.clientX, e.clientY);
|
|
51
53
|
}, _ = (e) => {
|
|
52
|
-
|
|
54
|
+
E(e.clientX, e.clientY);
|
|
55
|
+
}, b = () => {
|
|
56
|
+
X();
|
|
53
57
|
}, q = (e) => {
|
|
54
|
-
b(e.clientX, e.clientY);
|
|
55
|
-
}, j = () => {
|
|
56
|
-
E();
|
|
57
|
-
}, z = (e) => {
|
|
58
58
|
const t = e.touches[0];
|
|
59
|
-
|
|
60
|
-
},
|
|
59
|
+
S(t.clientX, t.clientY);
|
|
60
|
+
}, z = (e) => {
|
|
61
61
|
const t = e.touches[0];
|
|
62
|
-
|
|
62
|
+
E(t.clientX, t.clientY);
|
|
63
|
+
}, A = () => {
|
|
64
|
+
X();
|
|
65
|
+
}, j = (e) => {
|
|
66
|
+
l || e < 0 || e >= s || (h(e), m?.(e));
|
|
63
67
|
}, F = () => {
|
|
64
|
-
|
|
65
|
-
}, M = (e) => {
|
|
66
|
-
l || e < 0 || e >= s || (h(e), p?.(e));
|
|
67
|
-
}, G = () => {
|
|
68
|
-
const e = S.x - I.x;
|
|
68
|
+
const e = I.x - T.x;
|
|
69
69
|
let t = 0;
|
|
70
70
|
if (r && r > 0) {
|
|
71
|
-
const
|
|
72
|
-
t = n * (
|
|
71
|
+
const M = y.current ? (y.current.offsetWidth - g * (r - 1)) / r : 0;
|
|
72
|
+
t = n * (M + g);
|
|
73
73
|
} else
|
|
74
74
|
t = n * 100;
|
|
75
75
|
const a = r && r > 0 ? `translateX(-${t}px)` : `translateX(-${n * 100}%)`;
|
|
76
76
|
if (u) {
|
|
77
|
-
const
|
|
78
|
-
return `${a} ${
|
|
77
|
+
const M = `translateX(${e}px)`;
|
|
78
|
+
return `${a} ${M}`;
|
|
79
79
|
}
|
|
80
80
|
return a;
|
|
81
81
|
};
|
|
82
|
-
return s === 0 ? null : /* @__PURE__ */
|
|
82
|
+
return s === 0 ? null : /* @__PURE__ */ o.jsxs(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
|
-
className: i("relative overflow-hidden",
|
|
85
|
+
className: i("relative overflow-hidden", P),
|
|
86
86
|
style: {
|
|
87
|
-
width: typeof
|
|
87
|
+
width: typeof p == "number" ? `${p}px` : p,
|
|
88
88
|
height: typeof v == "number" ? `${v}px` : v
|
|
89
89
|
},
|
|
90
90
|
children: [
|
|
91
|
-
/* @__PURE__ */ o(
|
|
91
|
+
/* @__PURE__ */ o.jsx(
|
|
92
92
|
"div",
|
|
93
93
|
{
|
|
94
94
|
ref: y,
|
|
@@ -97,22 +97,22 @@ const Q = ({
|
|
|
97
97
|
l && "pointer-events-none opacity-50"
|
|
98
98
|
),
|
|
99
99
|
style: {
|
|
100
|
-
transform:
|
|
100
|
+
transform: F(),
|
|
101
101
|
gap: `${g}px`
|
|
102
102
|
},
|
|
103
|
-
onMouseDown:
|
|
104
|
-
onMouseMove:
|
|
105
|
-
onMouseUp:
|
|
106
|
-
onMouseLeave:
|
|
107
|
-
onTouchStart:
|
|
108
|
-
onTouchMove:
|
|
109
|
-
onTouchEnd:
|
|
110
|
-
children:
|
|
103
|
+
onMouseDown: U,
|
|
104
|
+
onMouseMove: _,
|
|
105
|
+
onMouseUp: b,
|
|
106
|
+
onMouseLeave: b,
|
|
107
|
+
onTouchStart: q,
|
|
108
|
+
onTouchMove: z,
|
|
109
|
+
onTouchEnd: A,
|
|
110
|
+
children: x.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
113
|
className: "flex-shrink-0 h-full",
|
|
114
114
|
style: {
|
|
115
|
-
width:
|
|
115
|
+
width: C
|
|
116
116
|
},
|
|
117
117
|
children: e
|
|
118
118
|
},
|
|
@@ -120,10 +120,10 @@ const Q = ({
|
|
|
120
120
|
))
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
|
-
R && s > 1 && /* @__PURE__ */ o("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2", children:
|
|
123
|
+
R && s > 1 && /* @__PURE__ */ o.jsx("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2", children: x.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
124
124
|
"button",
|
|
125
125
|
{
|
|
126
|
-
onClick: () =>
|
|
126
|
+
onClick: () => j(t),
|
|
127
127
|
className: i(
|
|
128
128
|
"w-2 h-2 rounded-full transition-all duration-200",
|
|
129
129
|
t === n ? "bg-primary-default-default" : "bg-neutral-medium-default hover:bg-neutral-default-default"
|
|
@@ -132,45 +132,45 @@ const Q = ({
|
|
|
132
132
|
},
|
|
133
133
|
t
|
|
134
134
|
)) }),
|
|
135
|
-
|
|
136
|
-
n > 0 && /* @__PURE__ */ o(
|
|
135
|
+
W && s > 1 && /* @__PURE__ */ o.jsxs("div", { className: "absolute inset-0 flex items-center justify-between pointer-events-none", children: [
|
|
136
|
+
n > 0 && /* @__PURE__ */ o.jsx(
|
|
137
137
|
"button",
|
|
138
138
|
{
|
|
139
|
-
onClick: () =>
|
|
139
|
+
onClick: () => j(n - 1),
|
|
140
140
|
className: i(
|
|
141
141
|
"p-2 rounded-full bg-white shadow-md hover:shadow-lg transition-shadow pointer-events-auto",
|
|
142
142
|
l && "pointer-events-none opacity-50"
|
|
143
143
|
),
|
|
144
144
|
"aria-label": "Elemento anterior",
|
|
145
|
-
children: /* @__PURE__ */ o(
|
|
145
|
+
children: /* @__PURE__ */ o.jsx(
|
|
146
146
|
"svg",
|
|
147
147
|
{
|
|
148
148
|
className: "w-4 h-4 text-neutral-default-default rotate-180",
|
|
149
149
|
fill: "none",
|
|
150
150
|
stroke: "currentColor",
|
|
151
151
|
viewBox: "0 0 24 24",
|
|
152
|
-
children: /* @__PURE__ */ o("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
|
|
152
|
+
children: /* @__PURE__ */ o.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
|
|
153
153
|
}
|
|
154
154
|
)
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
|
-
n < s - 1 && /* @__PURE__ */ o(
|
|
157
|
+
n < s - 1 && /* @__PURE__ */ o.jsx(
|
|
158
158
|
"button",
|
|
159
159
|
{
|
|
160
|
-
onClick: () =>
|
|
160
|
+
onClick: () => j(n + 1),
|
|
161
161
|
className: i(
|
|
162
162
|
"p-2 rounded-full bg-white shadow-md hover:shadow-lg transition-shadow pointer-events-auto",
|
|
163
163
|
l && "pointer-events-none opacity-50"
|
|
164
164
|
),
|
|
165
165
|
"aria-label": "Elemento siguiente",
|
|
166
|
-
children: /* @__PURE__ */ o(
|
|
166
|
+
children: /* @__PURE__ */ o.jsx(
|
|
167
167
|
"svg",
|
|
168
168
|
{
|
|
169
169
|
className: "w-4 h-4 text-neutral-default-default",
|
|
170
170
|
fill: "none",
|
|
171
171
|
stroke: "currentColor",
|
|
172
172
|
viewBox: "0 0 24 24",
|
|
173
|
-
children: /* @__PURE__ */ o("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
|
|
173
|
+
children: /* @__PURE__ */ o.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
|
|
174
174
|
}
|
|
175
175
|
)
|
|
176
176
|
}
|
|
@@ -181,5 +181,5 @@ const Q = ({
|
|
|
181
181
|
);
|
|
182
182
|
};
|
|
183
183
|
export {
|
|
184
|
-
|
|
184
|
+
O as default
|
|
185
185
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { memo as
|
|
1
|
+
import { j as a } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as r } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { memo as w, useRef as b } from "react";
|
|
4
4
|
import { motion as c } from "framer-motion";
|
|
5
|
-
const
|
|
6
|
-
const n =
|
|
5
|
+
const l = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
6
|
+
const n = b(null), h = (u) => {
|
|
7
7
|
if (!n.current || t) return;
|
|
8
|
-
|
|
8
|
+
u.preventDefault(), u.stopPropagation();
|
|
9
9
|
const g = !n.current.checked;
|
|
10
10
|
f(d, g);
|
|
11
11
|
}, i = {
|
|
@@ -46,19 +46,19 @@ const s = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
|
46
46
|
off: {
|
|
47
47
|
width: 16
|
|
48
48
|
}
|
|
49
|
-
}, e = o ? "on" : "off",
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */ a("input", { type: "checkbox", hidden: !0, ref: n, checked: o, disabled: t }),
|
|
52
|
-
/* @__PURE__ */ a(
|
|
49
|
+
}, e = o ? "on" : "off", s = t ? "disabled" : "default";
|
|
50
|
+
return /* @__PURE__ */ a.jsxs("div", { children: [
|
|
51
|
+
/* @__PURE__ */ a.jsx("input", { type: "checkbox", hidden: !0, ref: n, checked: o, disabled: t }),
|
|
52
|
+
/* @__PURE__ */ a.jsx(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
onClick: h,
|
|
56
56
|
className: r(
|
|
57
57
|
"w-14 h-8 rounded-full relative px-2 cursor-pointer",
|
|
58
58
|
t && "cursor-default",
|
|
59
|
-
i[e][
|
|
59
|
+
i[e][s].container
|
|
60
60
|
),
|
|
61
|
-
children: /* @__PURE__ */ a(
|
|
61
|
+
children: /* @__PURE__ */ a.jsx(
|
|
62
62
|
c.span,
|
|
63
63
|
{
|
|
64
64
|
animate: m[e],
|
|
@@ -69,7 +69,7 @@ const s = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
|
69
69
|
"absolute top-1/2 -translate-y-1/2 grid place-items-center ",
|
|
70
70
|
"size-10 aspect-square rounded-full absolute top-1/2 -translate-y-1/2"
|
|
71
71
|
),
|
|
72
|
-
children: /* @__PURE__ */ a(
|
|
72
|
+
children: /* @__PURE__ */ a.jsx(
|
|
73
73
|
c.span,
|
|
74
74
|
{
|
|
75
75
|
animate: p[e],
|
|
@@ -79,7 +79,7 @@ const s = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
|
79
79
|
},
|
|
80
80
|
className: r(
|
|
81
81
|
"size-4 aspect-square rounded-full z-10",
|
|
82
|
-
i[e][
|
|
82
|
+
i[e][s].dot
|
|
83
83
|
)
|
|
84
84
|
}
|
|
85
85
|
)
|
|
@@ -89,8 +89,9 @@ const s = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
const
|
|
92
|
+
l.displayName = "Switch";
|
|
93
|
+
const y = w(l);
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
y as Switch,
|
|
96
|
+
y as default
|
|
96
97
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { motion as
|
|
3
|
-
import { memo as
|
|
4
|
-
import {
|
|
1
|
+
import { j as n } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { motion as x } from "framer-motion";
|
|
3
|
+
import { memo as N } from "react";
|
|
4
|
+
import { c as r } from "./cn-B6yFEsav.js";
|
|
5
5
|
function o({
|
|
6
6
|
items: t,
|
|
7
7
|
activeTab: e,
|
|
@@ -16,7 +16,7 @@ function o({
|
|
|
16
16
|
const h = (a) => {
|
|
17
17
|
a.disabled || i?.(a.id, a);
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */ n(
|
|
19
|
+
return /* @__PURE__ */ n.jsx(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
22
|
className: r(
|
|
@@ -26,7 +26,7 @@ function o({
|
|
|
26
26
|
role: "tablist",
|
|
27
27
|
children: t?.map((a) => {
|
|
28
28
|
const s = e === a.id, c = () => h(a);
|
|
29
|
-
return m ? /* @__PURE__ */ n("div", { children: m(a, s, c) }, a.id) : /* @__PURE__ */
|
|
29
|
+
return m ? /* @__PURE__ */ n.jsx("div", { children: m(a, s, c) }, a.id) : /* @__PURE__ */ n.jsxs(
|
|
30
30
|
"button",
|
|
31
31
|
{
|
|
32
32
|
onClick: c,
|
|
@@ -44,8 +44,8 @@ function o({
|
|
|
44
44
|
"aria-selected": s,
|
|
45
45
|
title: a.description,
|
|
46
46
|
children: [
|
|
47
|
-
s && b && /* @__PURE__ */ n(
|
|
48
|
-
|
|
47
|
+
s && b && /* @__PURE__ */ n.jsx(
|
|
48
|
+
x.div,
|
|
49
49
|
{
|
|
50
50
|
layoutId: "tab-indicator",
|
|
51
51
|
className: r(
|
|
@@ -60,7 +60,7 @@ function o({
|
|
|
60
60
|
"aria-hidden": "true"
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */ n(
|
|
63
|
+
/* @__PURE__ */ n.jsx(
|
|
64
64
|
"span",
|
|
65
65
|
{
|
|
66
66
|
className: r(
|
|
@@ -79,7 +79,7 @@ function o({
|
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
o.displayName = "TabLinks";
|
|
82
|
-
const
|
|
82
|
+
const C = N(o, (t, e) => {
|
|
83
83
|
if (t.activeTab !== e.activeTab || t.className !== e.className || t.tabClassName !== e.tabClassName || t.activeTabClassName !== e.activeTabClassName || t.indicatorClassName !== e.indicatorClassName || t.animated !== e.animated || t.onTabChange !== e.onTabChange || t.renderTab !== e.renderTab || t.items.length !== e.items.length)
|
|
84
84
|
return !1;
|
|
85
85
|
for (let i = 0; i < t.items.length; i++) {
|
|
@@ -90,5 +90,5 @@ const k = T(o, (t, e) => {
|
|
|
90
90
|
return !0;
|
|
91
91
|
});
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
C as default
|
|
94
94
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
const
|
|
4
|
+
const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div", { className: "w-full", children: /* @__PURE__ */ r.jsx(
|
|
5
5
|
"table",
|
|
6
6
|
{
|
|
7
7
|
ref: a,
|
|
@@ -12,8 +12,8 @@ const s = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r("div", {
|
|
|
12
12
|
...t
|
|
13
13
|
}
|
|
14
14
|
) }));
|
|
15
|
-
|
|
16
|
-
const
|
|
15
|
+
n.displayName = "Table";
|
|
16
|
+
const f = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
17
17
|
"thead",
|
|
18
18
|
{
|
|
19
19
|
ref: a,
|
|
@@ -21,8 +21,8 @@ const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
|
21
21
|
...t
|
|
22
22
|
}
|
|
23
23
|
));
|
|
24
|
-
|
|
25
|
-
const
|
|
24
|
+
f.displayName = "TableHeader";
|
|
25
|
+
const i = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
26
26
|
"tbody",
|
|
27
27
|
{
|
|
28
28
|
ref: a,
|
|
@@ -30,8 +30,8 @@ const f = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
|
30
30
|
...t
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
i.displayName = "TableBody";
|
|
34
|
+
const b = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
35
35
|
"tfoot",
|
|
36
36
|
{
|
|
37
37
|
ref: a,
|
|
@@ -42,14 +42,9 @@ const i = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
|
42
42
|
...t
|
|
43
43
|
}
|
|
44
44
|
));
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
{
|
|
49
|
-
ref: d,
|
|
50
|
-
className: l(
|
|
51
|
-
"border-b border-neutral-default-default relative text-center text-md text-semibold transition-colors hover:bg-neutral-medium-default/50 text-neutral-default-default",
|
|
52
|
-
`
|
|
45
|
+
b.displayName = "TableFooter";
|
|
46
|
+
const c = o.forwardRef(({ className: e, isSelected: t, ...a }, d) => {
|
|
47
|
+
const s = `
|
|
53
48
|
after:content-["<span id='selected-span'></span>"]
|
|
54
49
|
after:absolute
|
|
55
50
|
after:top-1/2
|
|
@@ -66,14 +61,22 @@ const b = o.forwardRef(({ className: e, isSelected: t, ...a }, d) => /* @__PURE_
|
|
|
66
61
|
transition-all
|
|
67
62
|
duration-300
|
|
68
63
|
ease-in-out
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
b
|
|
76
|
-
|
|
64
|
+
`;
|
|
65
|
+
return /* @__PURE__ */ r.jsx(
|
|
66
|
+
"tr",
|
|
67
|
+
{
|
|
68
|
+
ref: d,
|
|
69
|
+
className: l(
|
|
70
|
+
"border-b border-neutral-default-default relative text-center text-md text-semibold transition-colors hover:bg-neutral-medium-default/50 text-neutral-default-default",
|
|
71
|
+
s,
|
|
72
|
+
e
|
|
73
|
+
),
|
|
74
|
+
...a
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
});
|
|
78
|
+
c.displayName = "TableRow";
|
|
79
|
+
const m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
77
80
|
"th",
|
|
78
81
|
{
|
|
79
82
|
ref: a,
|
|
@@ -84,8 +87,8 @@ const c = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
|
84
87
|
...t
|
|
85
88
|
}
|
|
86
89
|
));
|
|
87
|
-
|
|
88
|
-
const
|
|
90
|
+
m.displayName = "TableHead";
|
|
91
|
+
const u = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
89
92
|
"td",
|
|
90
93
|
{
|
|
91
94
|
ref: a,
|
|
@@ -96,8 +99,8 @@ const m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
|
96
99
|
...t
|
|
97
100
|
}
|
|
98
101
|
));
|
|
99
|
-
|
|
100
|
-
const
|
|
102
|
+
u.displayName = "TableCell";
|
|
103
|
+
const p = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
101
104
|
"caption",
|
|
102
105
|
{
|
|
103
106
|
ref: a,
|
|
@@ -105,14 +108,14 @@ const u = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
|
105
108
|
...t
|
|
106
109
|
}
|
|
107
110
|
));
|
|
108
|
-
|
|
111
|
+
p.displayName = "TableCaption";
|
|
109
112
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
n as Table,
|
|
114
|
+
i as TableBody,
|
|
115
|
+
p as TableCaption,
|
|
116
|
+
u as TableCell,
|
|
117
|
+
b as TableFooter,
|
|
118
|
+
m as TableHead,
|
|
119
|
+
f as TableHeader,
|
|
120
|
+
c as TableRow
|
|
118
121
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { j as k } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as A } from "./cn-B6yFEsav.js";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
const
|
|
4
|
+
import { forwardRef as E } from "react";
|
|
5
|
+
const M = E(
|
|
6
6
|
({
|
|
7
7
|
className: f,
|
|
8
8
|
autoResize: r = !1,
|
|
@@ -10,55 +10,57 @@ const A = z(
|
|
|
10
10
|
minRows: l = 3,
|
|
11
11
|
maxRows: n,
|
|
12
12
|
placeholder: d,
|
|
13
|
-
onChange:
|
|
14
|
-
value:
|
|
13
|
+
onChange: m,
|
|
14
|
+
value: h,
|
|
15
15
|
rows: p,
|
|
16
|
-
disabled:
|
|
17
|
-
...
|
|
16
|
+
disabled: x = !1,
|
|
17
|
+
...g
|
|
18
18
|
// ← Para pasar las props nativas
|
|
19
19
|
}, t) => {
|
|
20
|
-
const
|
|
20
|
+
const o = a.useRef(null), b = a.useCallback(
|
|
21
21
|
(e) => {
|
|
22
|
-
|
|
22
|
+
o.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
23
23
|
},
|
|
24
24
|
[t]
|
|
25
25
|
), s = a.useCallback(() => {
|
|
26
|
-
const e =
|
|
26
|
+
const e = o.current;
|
|
27
27
|
if (!e || !r) return;
|
|
28
28
|
e.style.height = "auto";
|
|
29
|
-
const
|
|
30
|
-
let u = Math.max(
|
|
29
|
+
const C = e.scrollHeight, i = Number.parseInt(getComputedStyle(e).lineHeight) || 20, j = l * i + 16;
|
|
30
|
+
let u = Math.max(C, j);
|
|
31
31
|
if (n) {
|
|
32
|
-
const N = n *
|
|
32
|
+
const N = n * i + 16;
|
|
33
33
|
u = Math.min(u, N);
|
|
34
34
|
}
|
|
35
35
|
e.style.height = `${u}px`;
|
|
36
36
|
}, [r, l, n]), y = (e) => {
|
|
37
|
-
|
|
37
|
+
m?.(e), s();
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
a.useEffect(() => {
|
|
40
40
|
s();
|
|
41
|
-
}, [s])
|
|
41
|
+
}, [s]);
|
|
42
|
+
const H = () => c ? r ? "resize-x" : "resize" : "resize-none";
|
|
43
|
+
return /* @__PURE__ */ k.jsx(
|
|
42
44
|
"textarea",
|
|
43
45
|
{
|
|
44
46
|
ref: b,
|
|
45
47
|
"data-slot": "textarea",
|
|
46
|
-
className:
|
|
48
|
+
className: A(
|
|
47
49
|
"placeholder:text-neutral-medium-default text-neutral-default-default appearance-none border border-neutral-default-default focus:border-primary-default-default flex w-full rounded-md px-3 py-2 outline-none disabled:cursor-default disabled:opacity-50 md:text-sm",
|
|
48
|
-
|
|
50
|
+
H(),
|
|
49
51
|
f
|
|
50
52
|
),
|
|
51
53
|
onChange: y,
|
|
52
54
|
rows: r ? l : p,
|
|
53
|
-
value:
|
|
55
|
+
value: h,
|
|
54
56
|
placeholder: d,
|
|
55
|
-
disabled:
|
|
56
|
-
...
|
|
57
|
+
disabled: x,
|
|
58
|
+
...g
|
|
57
59
|
}
|
|
58
60
|
);
|
|
59
61
|
}
|
|
60
62
|
);
|
|
61
|
-
|
|
63
|
+
M.displayName = "TextArea";
|
|
62
64
|
export {
|
|
63
|
-
|
|
65
|
+
M as default
|
|
64
66
|
};
|