prometeo-design-system 2.8.4 → 2.8.7
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/Avatar.js +4 -0
- package/dist/Button.js +4 -0
- package/dist/CardProfile.d.ts +4 -0
- package/dist/CardProfile.js +5 -0
- package/dist/CheckBox.js +4 -0
- package/dist/DatePicker.d.ts +2 -0
- package/dist/DatePicker.js +5 -0
- package/dist/DialogModal.js +6 -0
- package/dist/DrawerDesktop.js +6 -0
- package/dist/DrawerMobile.js +6 -0
- package/dist/DropZone.d.ts +4 -0
- package/dist/DropZone.js +5 -0
- package/dist/FAButton.js +4 -0
- package/dist/Header.js +4 -0
- package/dist/Icons/Icons.d.ts +1 -1
- package/dist/Icons/Icons.js +1055 -0
- package/dist/Icons.d.ts +4 -0
- package/dist/Icons.js +5 -0
- package/dist/Image.js +4 -0
- package/dist/ImageGallery.js +6 -0
- package/dist/Input.js +4 -0
- package/dist/InputMultiple.d.ts +4 -0
- package/dist/InputMultiple.js +5 -0
- package/dist/LayoutGeneric.js +4 -0
- package/dist/Logo.js +4 -0
- package/dist/Menu.d.ts +4 -0
- package/dist/Menu.js +5 -0
- package/dist/OtpInput.js +4 -0
- package/dist/Pagination.js +4 -0
- package/dist/ProfilePictureUpload.d.ts +4 -0
- package/dist/ProfilePictureUpload.js +5 -0
- package/dist/ProgressBar.js +4 -0
- package/dist/RadioButton.d.ts +4 -0
- package/dist/RadioButton.js +5 -0
- package/dist/SegmentedButton.d.ts +4 -0
- package/dist/SegmentedButton.js +5 -0
- package/dist/Select.js +4 -0
- package/dist/SelectSearch.js +4 -0
- package/dist/Skeleton.d.ts +4 -0
- package/dist/Skeleton.js +5 -0
- package/dist/Spinner.js +4 -0
- package/dist/Steps.d.ts +4 -0
- package/dist/Steps.js +5 -0
- package/dist/SwipeContainer.js +4 -0
- package/dist/Switch.d.ts +4 -0
- package/dist/Switch.js +5 -0
- package/dist/TabLinks.js +4 -0
- package/dist/Table.js +11 -0
- package/dist/TextArea.js +4 -0
- package/dist/Toast.js +5 -0
- package/dist/ToastProvider.js +4 -0
- package/dist/Tooltip.js +4 -0
- package/dist/components/Autocomplete/useAutocomplete.js +143 -0
- package/dist/{Avatar.es.js → components/Avatar/Avatar.js} +28 -33
- package/dist/{Button.es.js → components/Button/Button.js} +55 -55
- package/dist/{CardProfile-BB-IP1MR.js → components/CardProfile/CardProfile.js} +68 -94
- package/dist/{CheckBox.es.js → components/CheckBox/CheckBox.js} +25 -25
- package/dist/components/DatePicker/DatePicker.js +396 -0
- package/dist/components/Dialog/Dialog.js +60 -0
- package/dist/components/Dialog/useDialogControl.js +18 -0
- package/dist/components/Drawer/DrawerDesktop.js +179 -0
- package/dist/components/Drawer/DrawerMobile.js +219 -0
- package/dist/components/Drawer/useDrawerDesktop.js +18 -0
- package/dist/components/Drawer/useDrawerMobile.js +27 -0
- package/dist/components/DropZone/DropZone.js +86 -0
- package/dist/components/DropZone/useFileDropzone.js +24 -0
- package/dist/{FAButton.es.js → components/FAB/FAButton.js} +5 -5
- package/dist/components/Header/Header.js +32 -0
- package/dist/components/Image/GalleryPreview.js +40 -0
- package/dist/{Image.es.js → components/Image/Image.js} +32 -32
- package/dist/components/Image/ImageGallery.js +68 -0
- package/dist/components/Image/LightBox.js +223 -0
- package/dist/{ImageGallery.es.js → components/Image/useImageGallery.js} +0 -2
- package/dist/components/Input/Input.js +219 -0
- package/dist/{InputMultiple.es.js → components/InputMultiple/InputMultiple.js} +91 -91
- package/dist/components/Layout/LayoutGeneric.js +13 -0
- package/dist/components/Logo/Logo.js +9 -0
- package/dist/{Menu.es.js → components/Menu/MenuComposable.js} +11 -11
- package/dist/components/OtpInput/OtpInput.js +112 -0
- package/dist/{Pagination.es.js → components/Pagination/Pagination.js} +32 -32
- package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +1 -1
- package/dist/{ProfilePictureUpload.es.js → components/ProfilePictureUpload/ProfilePictureUpload.js} +73 -98
- package/dist/components/ProgressBar/ProgressBar.js +70 -0
- package/dist/{RadioButton.es.js → components/RadioButton/RadioButton.js} +35 -35
- package/dist/{SegmentedButton.es.js → components/SegmentedButton/SegmentedButton.js} +37 -37
- package/dist/components/Select/Select.js +1005 -0
- package/dist/components/SelectSearch/SelectSearch.js +101 -0
- package/dist/components/Shared/Chip.js +55 -0
- package/dist/components/Shared/HelperComponent.js +24 -0
- package/dist/components/Sidebar/SecondaryBar/SecondaryBar.js +62 -0
- package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.js +59 -0
- package/dist/components/Sidebar/SidebarComposable.js +84 -0
- package/dist/components/Sidebar/components/NavigationLink.js +34 -0
- package/dist/components/Sidebar/components/badge.js +33 -0
- package/dist/components/Sidebar/components/changue-account.js +31 -0
- package/dist/components/Sidebar/components/collapse-button.js +18 -0
- package/dist/components/Sidebar/components/company-logo.js +12 -0
- package/dist/components/Sidebar/components/nav-actions.js +98 -0
- package/dist/components/Sidebar/components/nav-links.js +100 -0
- package/dist/components/Sidebar/context/SidebarContext.js +19 -0
- package/dist/components/Sidebar/hooks/SidebarProvider.js +33 -0
- package/dist/components/Sidebar/hooks/useNavBarActions.js +9 -0
- package/dist/components/Sidebar/hooks/useNavBarCollapse.js +11 -0
- package/dist/components/Sidebar/hooks/useSidebarHook.js +13 -0
- package/dist/components/Sidebar/ui/useNavbarAnimation.js +326 -0
- package/dist/{Skeleton.es.js → components/Skeleton/Skeleton.js} +16 -17
- package/dist/components/Spinner/Spinner.js +52 -0
- package/dist/{Steps.es.js → components/Steps/Steps.js} +61 -61
- package/dist/{SwipeContainer.es.js → components/SwipeContainer/SwipeContainer.js} +68 -68
- package/dist/{Switch.es.js → components/Switch/Switch.js} +17 -17
- package/dist/{TabLinks.es.js → components/TabLinks/TabLinks.js} +11 -11
- package/dist/components/TabSwitch/TabSwitch.js +57 -0
- package/dist/{Table.es.js → components/Table/Table.js} +38 -41
- package/dist/{TextArea.es.js → components/TextArea/TextArea.js} +24 -26
- package/dist/components/Toaster/ToastProvider.js +6 -0
- package/dist/{Toast.es.js → components/Toaster/Toaster.js} +42 -42
- package/dist/components/Tooltip/Tootip.js +62 -0
- package/dist/exports/CardProfile.d.ts +1 -0
- package/dist/exports/DatePicker.d.ts +2 -0
- package/dist/exports/DropZone.d.ts +2 -0
- package/dist/exports/Icons.d.ts +2 -1
- package/dist/exports/InputMultiple.d.ts +2 -0
- package/dist/exports/Menu.d.ts +1 -0
- package/dist/exports/ProfilePictureUpload.d.ts +1 -0
- package/dist/exports/RadioButton.d.ts +2 -0
- package/dist/exports/SegmentedButton.d.ts +2 -0
- package/dist/exports/Skeleton.d.ts +2 -0
- package/dist/exports/Steps.d.ts +1 -0
- package/dist/exports/Switch.d.ts +2 -0
- package/dist/hooks/useClickOutside.js +24 -0
- package/dist/{useDragScroll-CHN9OMwn.js → hooks/useDragScroll.js} +1 -1
- package/dist/hooks/useLabelBackground.js +25 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.js +119 -0
- package/dist/{cn-B6yFEsav.js → lib/cn.js} +2 -2
- package/dist/lib/utils.js +54 -0
- package/dist/node_modules/@date-fns/tz/date/index.js +61 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js +69 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +22 -0
- package/dist/{index-BOQuZ0gG.js → node_modules/class-variance-authority/dist/index.js} +10 -9
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/date-fns/addDays.js +10 -0
- package/dist/node_modules/date-fns/addMonths.js +20 -0
- package/dist/node_modules/date-fns/addWeeks.js +8 -0
- package/dist/node_modules/date-fns/addYears.js +8 -0
- package/dist/node_modules/date-fns/constants.js +6 -0
- package/dist/node_modules/date-fns/constructFrom.js +8 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +13 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +17 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js +17 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js +8 -0
- package/dist/node_modules/date-fns/endOfMonth.js +9 -0
- package/dist/node_modules/date-fns/endOfWeek.js +10 -0
- package/dist/node_modules/date-fns/endOfYear.js +9 -0
- package/dist/node_modules/date-fns/format.js +58 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/date-fns/getMonth.js +8 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.js +16 -0
- package/dist/node_modules/date-fns/getYear.js +8 -0
- package/dist/node_modules/date-fns/isAfter.js +8 -0
- package/dist/node_modules/date-fns/isBefore.js +8 -0
- package/dist/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/date-fns/isSameDay.js +14 -0
- package/dist/node_modules/date-fns/isSameMonth.js +13 -0
- package/dist/node_modules/date-fns/isSameYear.js +13 -0
- package/dist/node_modules/date-fns/isValid.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
- package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
- package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
- package/dist/node_modules/date-fns/locale/es.js +21 -0
- package/dist/node_modules/date-fns/max.js +14 -0
- package/dist/node_modules/date-fns/min.js +14 -0
- package/dist/node_modules/date-fns/setMonth.js +13 -0
- package/dist/node_modules/date-fns/setYear.js +10 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/date-fns/startOfMonth.js +9 -0
- package/dist/node_modules/date-fns/startOfWeek.js +10 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +12 -0
- package/dist/node_modules/date-fns/startOfYear.js +9 -0
- package/dist/node_modules/date-fns/toDate.js +8 -0
- package/dist/node_modules/input-otp/dist/index.js +194 -0
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +227 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +147 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +27 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +24 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +56 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +44 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/styles.d.ts +0 -0
- package/dist/useDevice.js +4 -0
- package/package.json +282 -274
- package/src/styles/app.css +1314 -0
- package/src/styles/base.css +1323 -0
- package/src/styles/fonts.css +46 -0
- package/src/styles/palette.css +83 -0
- package/src/styles/utilities.css +1126 -0
- package/dist/CardProfile.es.js +0 -4
- package/dist/DatePicker.es.js +0 -3500
- package/dist/DialogModal.es.js +0 -75
- package/dist/DrawerDesktop.es.js +0 -192
- package/dist/DrawerMobile.es.js +0 -242
- package/dist/DropZone.es.js +0 -86
- package/dist/Header.es.js +0 -32
- package/dist/HelperComponent-D_Cqdf1J.js +0 -24
- package/dist/Icons.es.js +0 -1055
- package/dist/ImageGallery-CjaJ0UCN.js +0 -317
- package/dist/Input-Bdo-Acix.js +0 -240
- package/dist/Input.es.js +0 -4
- package/dist/LayoutGeneric-B6E-yOYJ.js +0 -26
- package/dist/LayoutGeneric.es.js +0 -4
- package/dist/Logo.es.js +0 -9
- package/dist/OtpInput.es.js +0 -301
- package/dist/ProgressBar.es.js +0 -70
- package/dist/Select-D2APaG1z.js +0 -1100
- package/dist/Select.es.js +0 -4
- package/dist/SelectSearch.es.js +0 -237
- package/dist/Spinner.es.js +0 -52
- package/dist/ToastProvider.es.js +0 -6
- package/dist/Tooltip.es.js +0 -62
- package/dist/components/Button/Button_Legacy.d.ts +0 -29
- package/dist/jsx-runtime-ByW6EXIE.js +0 -283
- package/dist/prometeo-design-system.es.js +0 -1008
- /package/dist/{useDevice.es.js → hooks/useDevice.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Check as
|
|
3
|
-
import {
|
|
4
|
-
import { motion as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
index:
|
|
1
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { Check as b } from "../../Icons/Icons.js";
|
|
3
|
+
import { cn as w } from "../../lib/cn.js";
|
|
4
|
+
import { motion as s } from "framer-motion";
|
|
5
|
+
import $ from "react";
|
|
6
|
+
const v = ({
|
|
7
|
+
index: c,
|
|
8
8
|
isHorizontal: t,
|
|
9
|
-
currentStep:
|
|
10
|
-
size:
|
|
9
|
+
currentStep: f,
|
|
10
|
+
size: n
|
|
11
11
|
}) => {
|
|
12
|
-
const i =
|
|
12
|
+
const i = c < f, p = c === f - 1, o = {
|
|
13
13
|
horizontal: {
|
|
14
14
|
sm: "w-[44px] h-[2px]",
|
|
15
15
|
md: "w-20 h-1",
|
|
@@ -21,15 +21,15 @@ const b = ({
|
|
|
21
21
|
lg: "w-1 h-20"
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */ e
|
|
24
|
+
return /* @__PURE__ */ u("div", { className: `relative ${t ? o.horizontal[n] : o.vertical[n]}`, children: [
|
|
25
|
+
/* @__PURE__ */ e(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: "absolute inset-0 rounded-full bg-neutral-medium-default"
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
/* @__PURE__ */ e
|
|
32
|
-
|
|
31
|
+
/* @__PURE__ */ e(
|
|
32
|
+
s.div,
|
|
33
33
|
{
|
|
34
34
|
className: "absolute inset-0 rounded-full bg-primary-default-default",
|
|
35
35
|
initial: {
|
|
@@ -45,7 +45,7 @@ const b = ({
|
|
|
45
45
|
transition: {
|
|
46
46
|
duration: 0.2,
|
|
47
47
|
ease: "easeInOut",
|
|
48
|
-
delay:
|
|
48
|
+
delay: c * 0.1
|
|
49
49
|
},
|
|
50
50
|
style: {
|
|
51
51
|
originX: t ? 0 : 0.5,
|
|
@@ -53,8 +53,8 @@ const b = ({
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
p && /* @__PURE__ */ e(
|
|
57
|
+
s.div,
|
|
58
58
|
{
|
|
59
59
|
className: "absolute inset-0 rounded-full bg-primary-default-default",
|
|
60
60
|
initial: {
|
|
@@ -80,22 +80,22 @@ const b = ({
|
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
82
|
] });
|
|
83
|
-
},
|
|
84
|
-
steps:
|
|
83
|
+
}, k = ({
|
|
84
|
+
steps: c,
|
|
85
85
|
currentStep: t,
|
|
86
|
-
orientation:
|
|
87
|
-
variant:
|
|
86
|
+
orientation: f = "horizontal",
|
|
87
|
+
variant: n = "default",
|
|
88
88
|
size: i = "md",
|
|
89
|
-
className:
|
|
89
|
+
className: p = "",
|
|
90
90
|
onStepClick: o,
|
|
91
|
-
allowClickableSteps:
|
|
91
|
+
allowClickableSteps: g = !1
|
|
92
92
|
}) => {
|
|
93
|
-
const
|
|
93
|
+
const r = f === "horizontal", m = {
|
|
94
94
|
sm: {
|
|
95
95
|
circle: "size-7 aspect-square text-xs",
|
|
96
96
|
title: "text-sm",
|
|
97
97
|
description: "text-[11px] w-16",
|
|
98
|
-
spacing:
|
|
98
|
+
spacing: r ? "gap-2" : "gap-1",
|
|
99
99
|
connectorContainer: "px-2",
|
|
100
100
|
iconSize: 20
|
|
101
101
|
},
|
|
@@ -103,7 +103,7 @@ const b = ({
|
|
|
103
103
|
circle: "w-10 h-10 text-sm",
|
|
104
104
|
title: "text-base",
|
|
105
105
|
description: "text-sm w-20",
|
|
106
|
-
spacing:
|
|
106
|
+
spacing: r ? "gap-3" : "gap-2",
|
|
107
107
|
connectorContainer: "px-2",
|
|
108
108
|
iconSize: 24
|
|
109
109
|
},
|
|
@@ -111,11 +111,11 @@ const b = ({
|
|
|
111
111
|
circle: "w-12 h-12 text-base",
|
|
112
112
|
title: "text-lg",
|
|
113
113
|
description: "text-base w-28",
|
|
114
|
-
spacing:
|
|
114
|
+
spacing: r ? "gap-4" : "gap-3",
|
|
115
115
|
connectorContainer: "px-2",
|
|
116
116
|
iconSize: 28
|
|
117
117
|
}
|
|
118
|
-
},
|
|
118
|
+
}, N = (a) => a < t ? "completed" : a === t ? "current" : "upcoming", h = (a) => {
|
|
119
119
|
const l = `${m[i].circle} rounded-full flex items-center justify-center font-medium`;
|
|
120
120
|
switch (a) {
|
|
121
121
|
case "completed":
|
|
@@ -125,69 +125,69 @@ const b = ({
|
|
|
125
125
|
default:
|
|
126
126
|
return `${l} bg-neutral-medium-default text-neutral-medium-default`;
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
return /* @__PURE__ */ e
|
|
132
|
-
const d =
|
|
133
|
-
return /* @__PURE__ */ e
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */ e
|
|
136
|
-
|
|
128
|
+
}, y = (a) => {
|
|
129
|
+
g && o && o(a);
|
|
130
|
+
}, C = r ? `flex items-center w-full justify-center ${p}` : `space-y-0 ${p}`;
|
|
131
|
+
return /* @__PURE__ */ e("div", { className: C, children: c.map((a, l) => {
|
|
132
|
+
const d = N(l), x = g && o;
|
|
133
|
+
return /* @__PURE__ */ e("div", { className: "flex items-center", children: r ? /* @__PURE__ */ u("div", { className: "flex", children: [
|
|
134
|
+
/* @__PURE__ */ u("div", { className: "w-max flex flex-col items-center relative", children: [
|
|
135
|
+
/* @__PURE__ */ e(
|
|
136
|
+
s.div,
|
|
137
137
|
{
|
|
138
|
-
className: `${
|
|
138
|
+
className: `${h(d)} ${x ? "cursor-pointer" : ""} relative z-10`,
|
|
139
139
|
initial: { scale: 0.8, opacity: 0 },
|
|
140
140
|
animate: { scale: 1, opacity: 1 },
|
|
141
141
|
transition: { duration: 0.3, delay: l * 0.3 },
|
|
142
|
-
whileTap:
|
|
143
|
-
onClick: () =>
|
|
144
|
-
children:
|
|
142
|
+
whileTap: x ? { scale: 0.95 } : {},
|
|
143
|
+
onClick: () => y(l),
|
|
144
|
+
children: n === "numbered" || n === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e(s.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e(b, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e("span", { children: l + 1 }) : $.cloneElement(a.icon, { size: m[i].iconSize })
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
|
-
|
|
147
|
+
n !== "minimal" && n !== "numbered-minimal" && a.description && /* @__PURE__ */ e("p", { className: w(
|
|
148
148
|
"absolute text-center w-28 -bottom-2 translate-y-full",
|
|
149
149
|
m[i].description,
|
|
150
150
|
"text-gray-400 mt-2 text-center",
|
|
151
151
|
d === "current" ? "text-neutral-strong-default font-semibold " : "text-neutral-medium-default"
|
|
152
152
|
), children: a.description })
|
|
153
153
|
] }),
|
|
154
|
-
l <
|
|
154
|
+
l < c.length - 1 && /* @__PURE__ */ e(
|
|
155
155
|
"div",
|
|
156
156
|
{
|
|
157
157
|
className: `flex items-center w-max ${m[i].connectorContainer}`,
|
|
158
|
-
children: /* @__PURE__ */ e
|
|
159
|
-
|
|
158
|
+
children: /* @__PURE__ */ e(
|
|
159
|
+
v,
|
|
160
160
|
{
|
|
161
161
|
index: l,
|
|
162
|
-
isHorizontal:
|
|
162
|
+
isHorizontal: r,
|
|
163
163
|
currentStep: t,
|
|
164
164
|
size: i
|
|
165
165
|
}
|
|
166
166
|
)
|
|
167
167
|
}
|
|
168
168
|
)
|
|
169
|
-
] }) : /* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */ e
|
|
172
|
-
|
|
169
|
+
] }) : /* @__PURE__ */ u("div", { className: "relative flex flex-col items-center w-max", children: [
|
|
170
|
+
/* @__PURE__ */ u("div", { className: "flex flex-col items-center w-full relative", children: [
|
|
171
|
+
/* @__PURE__ */ e(
|
|
172
|
+
s.div,
|
|
173
173
|
{
|
|
174
|
-
className: `${
|
|
174
|
+
className: `${h(d)} ${x ? "cursor-pointer" : ""}`,
|
|
175
175
|
initial: { scale: 0.8, opacity: 0 },
|
|
176
176
|
animate: { scale: 1, opacity: 1 },
|
|
177
177
|
transition: { duration: 0.3, delay: l * 0.1 },
|
|
178
|
-
whileTap:
|
|
179
|
-
onClick: () =>
|
|
180
|
-
children:
|
|
178
|
+
whileTap: x ? { scale: 0.95 } : {},
|
|
179
|
+
onClick: () => y(l),
|
|
180
|
+
children: n === "numbered" || n === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e(s.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e(b, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e("span", { children: l + 1 }) : a.icon
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
n !== "minimal" && n !== "numbered-minimal" && /* @__PURE__ */ e(
|
|
184
|
+
s.div,
|
|
185
185
|
{
|
|
186
186
|
className: `absolute -right-4 top-1/2 -translate-y-1/2 translate-x-full ml-4 gap-3 flex flex-col w-full ${m[i].spacing} flex h-full`,
|
|
187
187
|
initial: { opacity: 0, x: -10 },
|
|
188
188
|
animate: { opacity: 1, x: 0 },
|
|
189
189
|
transition: { duration: 0.3, delay: l * 0.1 + 0.1 },
|
|
190
|
-
children: a.description && /* @__PURE__ */ e
|
|
190
|
+
children: a.description && /* @__PURE__ */ e("p", { className: w(
|
|
191
191
|
"h-full text-start flex items-center justify-start ",
|
|
192
192
|
m[i].description,
|
|
193
193
|
"text-gray-400",
|
|
@@ -196,11 +196,11 @@ const b = ({
|
|
|
196
196
|
}
|
|
197
197
|
)
|
|
198
198
|
] }),
|
|
199
|
-
l <
|
|
200
|
-
|
|
199
|
+
l < c.length - 1 && /* @__PURE__ */ e("div", { className: "py-2", children: /* @__PURE__ */ e(
|
|
200
|
+
v,
|
|
201
201
|
{
|
|
202
202
|
index: l,
|
|
203
|
-
isHorizontal:
|
|
203
|
+
isHorizontal: r,
|
|
204
204
|
currentStep: t,
|
|
205
205
|
size: i
|
|
206
206
|
}
|
|
@@ -209,5 +209,5 @@ const b = ({
|
|
|
209
209
|
}) });
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
k as default
|
|
213
213
|
};
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useState as d, useRef as
|
|
4
|
-
const
|
|
5
|
-
children:
|
|
6
|
-
className:
|
|
1
|
+
import { jsxs as D, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "../../lib/cn.js";
|
|
3
|
+
import { useState as d, useRef as L, useEffect as P } from "react";
|
|
4
|
+
const Q = ({
|
|
5
|
+
children: m,
|
|
6
|
+
className: W,
|
|
7
7
|
showIndicators: R = !0,
|
|
8
|
-
showControls:
|
|
8
|
+
showControls: Y = !0,
|
|
9
9
|
// Por defecto mostrar controles
|
|
10
|
-
autoPlay:
|
|
11
|
-
autoPlayInterval:
|
|
12
|
-
onSwipe:
|
|
13
|
-
threshold:
|
|
10
|
+
autoPlay: $ = !1,
|
|
11
|
+
autoPlayInterval: N = 3e3,
|
|
12
|
+
onSwipe: p,
|
|
13
|
+
threshold: B = 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: x = "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, T] = d(!1), [I, C] = d({ x: 0, y: 0 }), [S, w] = d({ x: 0, y: 0 }), y = L(null), c = L(null), s = m.length, U = f ? typeof f == "number" ? `${f}px` : f : r && r > 0 ? `${100 / r}%` : "100%";
|
|
27
|
+
P(() => ($ && s > 1 && !u && (c.current = setInterval(() => {
|
|
28
28
|
h((e) => (e + 1) % s);
|
|
29
|
-
},
|
|
29
|
+
}, N)), () => {
|
|
30
30
|
c.current && clearInterval(c.current);
|
|
31
|
-
}), [
|
|
31
|
+
}), [$, N, s, u]), P(() => {
|
|
32
32
|
u && c.current && clearInterval(c.current);
|
|
33
33
|
}, [u]);
|
|
34
|
-
const
|
|
35
|
-
l || (
|
|
36
|
-
},
|
|
34
|
+
const X = (e, t) => {
|
|
35
|
+
l || (T(!0), C({ x: e, y: t }), w({ x: e, y: t }));
|
|
36
|
+
}, b = (e, t) => {
|
|
37
37
|
!u || l || w({ x: e, y: t });
|
|
38
|
-
},
|
|
38
|
+
}, E = () => {
|
|
39
39
|
if (!u || l) return;
|
|
40
|
-
const e =
|
|
41
|
-
if (Math.abs(e) >
|
|
40
|
+
const e = S.x - I.x;
|
|
41
|
+
if (Math.abs(e) > B) {
|
|
42
42
|
if (e > 0 && n > 0) {
|
|
43
43
|
const a = n - 1;
|
|
44
|
-
h(a),
|
|
44
|
+
h(a), p?.(a);
|
|
45
45
|
} else if (e < 0 && n < s - 1) {
|
|
46
46
|
const a = n + 1;
|
|
47
|
-
h(a),
|
|
47
|
+
h(a), p?.(a);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
}, U = (e) => {
|
|
52
|
-
e.preventDefault(), S(e.clientX, e.clientY);
|
|
50
|
+
T(!1), w({ x: 0, y: 0 });
|
|
53
51
|
}, _ = (e) => {
|
|
54
|
-
|
|
55
|
-
}, b = () => {
|
|
56
|
-
X();
|
|
52
|
+
e.preventDefault(), X(e.clientX, e.clientY);
|
|
57
53
|
}, q = (e) => {
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
b(e.clientX, e.clientY);
|
|
55
|
+
}, j = () => {
|
|
56
|
+
E();
|
|
60
57
|
}, z = (e) => {
|
|
61
58
|
const t = e.touches[0];
|
|
62
|
-
|
|
63
|
-
}, A = () => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
l || e < 0 || e >= s || (h(e), m?.(e));
|
|
59
|
+
X(t.clientX, t.clientY);
|
|
60
|
+
}, A = (e) => {
|
|
61
|
+
const t = e.touches[0];
|
|
62
|
+
b(t.clientX, t.clientY);
|
|
67
63
|
}, F = () => {
|
|
68
|
-
|
|
64
|
+
E();
|
|
65
|
+
}, M = (e) => {
|
|
66
|
+
l || e < 0 || e >= s || (h(e), p?.(e));
|
|
67
|
+
}, G = () => {
|
|
68
|
+
const e = S.x - I.x;
|
|
69
69
|
let t = 0;
|
|
70
70
|
if (r && r > 0) {
|
|
71
|
-
const
|
|
72
|
-
t = n * (
|
|
71
|
+
const k = y.current ? (y.current.offsetWidth - g * (r - 1)) / r : 0;
|
|
72
|
+
t = n * (k + 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 k = `translateX(${e}px)`;
|
|
78
|
+
return `${a} ${k}`;
|
|
79
79
|
}
|
|
80
80
|
return a;
|
|
81
81
|
};
|
|
82
|
-
return s === 0 ? null : /* @__PURE__ */
|
|
82
|
+
return s === 0 ? null : /* @__PURE__ */ D(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
|
-
className: i("relative overflow-hidden",
|
|
85
|
+
className: i("relative overflow-hidden", W),
|
|
86
86
|
style: {
|
|
87
|
-
width: typeof
|
|
87
|
+
width: typeof x == "number" ? `${x}px` : x,
|
|
88
88
|
height: typeof v == "number" ? `${v}px` : v
|
|
89
89
|
},
|
|
90
90
|
children: [
|
|
91
|
-
/* @__PURE__ */ o
|
|
91
|
+
/* @__PURE__ */ o(
|
|
92
92
|
"div",
|
|
93
93
|
{
|
|
94
94
|
ref: y,
|
|
@@ -97,22 +97,22 @@ const O = ({
|
|
|
97
97
|
l && "pointer-events-none opacity-50"
|
|
98
98
|
),
|
|
99
99
|
style: {
|
|
100
|
-
transform:
|
|
100
|
+
transform: G(),
|
|
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: _,
|
|
104
|
+
onMouseMove: q,
|
|
105
|
+
onMouseUp: j,
|
|
106
|
+
onMouseLeave: j,
|
|
107
|
+
onTouchStart: z,
|
|
108
|
+
onTouchMove: A,
|
|
109
|
+
onTouchEnd: F,
|
|
110
|
+
children: m.map((e, t) => /* @__PURE__ */ o(
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
113
|
className: "flex-shrink-0 h-full",
|
|
114
114
|
style: {
|
|
115
|
-
width:
|
|
115
|
+
width: U
|
|
116
116
|
},
|
|
117
117
|
children: e
|
|
118
118
|
},
|
|
@@ -120,10 +120,10 @@ const O = ({
|
|
|
120
120
|
))
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
|
-
R && s > 1 && /* @__PURE__ */ o
|
|
123
|
+
R && s > 1 && /* @__PURE__ */ o("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2", children: m.map((e, t) => /* @__PURE__ */ o(
|
|
124
124
|
"button",
|
|
125
125
|
{
|
|
126
|
-
onClick: () =>
|
|
126
|
+
onClick: () => M(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 O = ({
|
|
|
132
132
|
},
|
|
133
133
|
t
|
|
134
134
|
)) }),
|
|
135
|
-
|
|
136
|
-
n > 0 && /* @__PURE__ */ o
|
|
135
|
+
Y && s > 1 && /* @__PURE__ */ D("div", { className: "absolute inset-0 flex items-center justify-between pointer-events-none", children: [
|
|
136
|
+
n > 0 && /* @__PURE__ */ o(
|
|
137
137
|
"button",
|
|
138
138
|
{
|
|
139
|
-
onClick: () =>
|
|
139
|
+
onClick: () => M(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(
|
|
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
|
|
152
|
+
children: /* @__PURE__ */ o("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(
|
|
158
158
|
"button",
|
|
159
159
|
{
|
|
160
|
-
onClick: () =>
|
|
160
|
+
onClick: () => M(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(
|
|
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
|
|
173
|
+
children: /* @__PURE__ */ o("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
|
|
174
174
|
}
|
|
175
175
|
)
|
|
176
176
|
}
|
|
@@ -181,5 +181,5 @@ const O = ({
|
|
|
181
181
|
);
|
|
182
182
|
};
|
|
183
183
|
export {
|
|
184
|
-
|
|
184
|
+
Q as default
|
|
185
185
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { memo as
|
|
1
|
+
import { jsxs as w, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../lib/cn.js";
|
|
3
|
+
import { memo as b, useRef as k } from "react";
|
|
4
4
|
import { motion as c } from "framer-motion";
|
|
5
|
-
const
|
|
6
|
-
const n =
|
|
5
|
+
const s = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
6
|
+
const n = k(null), h = (l) => {
|
|
7
7
|
if (!n.current || t) return;
|
|
8
|
-
|
|
8
|
+
l.preventDefault(), l.stopPropagation();
|
|
9
9
|
const g = !n.current.checked;
|
|
10
10
|
f(d, g);
|
|
11
11
|
}, i = {
|
|
@@ -46,19 +46,19 @@ const l = ({ 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
|
|
52
|
-
/* @__PURE__ */ a
|
|
49
|
+
}, e = o ? "on" : "off", u = t ? "disabled" : "default";
|
|
50
|
+
return /* @__PURE__ */ w("div", { children: [
|
|
51
|
+
/* @__PURE__ */ a("input", { type: "checkbox", hidden: !0, ref: n, checked: o, disabled: t }),
|
|
52
|
+
/* @__PURE__ */ a(
|
|
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][u].container
|
|
60
60
|
),
|
|
61
|
-
children: /* @__PURE__ */ a
|
|
61
|
+
children: /* @__PURE__ */ a(
|
|
62
62
|
c.span,
|
|
63
63
|
{
|
|
64
64
|
animate: m[e],
|
|
@@ -69,7 +69,7 @@ const l = ({ 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(
|
|
73
73
|
c.span,
|
|
74
74
|
{
|
|
75
75
|
animate: p[e],
|
|
@@ -79,7 +79,7 @@ const l = ({ 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][u].dot
|
|
83
83
|
)
|
|
84
84
|
}
|
|
85
85
|
)
|
|
@@ -89,8 +89,8 @@ const l = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
const
|
|
92
|
+
s.displayName = "Switch";
|
|
93
|
+
const N = b(s);
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
N as default
|
|
96
96
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { motion as
|
|
3
|
-
import { memo as
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as n, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { motion as g } from "framer-motion";
|
|
3
|
+
import { memo as T } from "react";
|
|
4
|
+
import { cn as r } from "../../lib/cn.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(
|
|
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
|
|
29
|
+
return m ? /* @__PURE__ */ n("div", { children: m(a, s, c) }, a.id) : /* @__PURE__ */ N(
|
|
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(
|
|
48
|
+
g.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(
|
|
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 k = T(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 C = N(o, (t, e) => {
|
|
|
90
90
|
return !0;
|
|
91
91
|
});
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
k as default
|
|
94
94
|
};
|