prometeo-design-system 2.8.5 → 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.js +5 -0
- package/dist/CheckBox.js +4 -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.js +5 -0
- package/dist/FAButton.js +4 -0
- package/dist/Header.js +4 -0
- package/dist/Icons/Icons.js +1055 -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.js +5 -0
- package/dist/LayoutGeneric.js +4 -0
- package/dist/Logo.js +4 -0
- package/dist/Menu.js +5 -0
- package/dist/OtpInput.js +4 -0
- package/dist/Pagination.js +4 -0
- package/dist/ProfilePictureUpload.js +5 -0
- package/dist/ProgressBar.js +4 -0
- package/dist/RadioButton.js +5 -0
- package/dist/SegmentedButton.js +5 -0
- package/dist/Select.js +4 -0
- package/dist/SelectSearch.js +4 -0
- package/dist/Skeleton.js +5 -0
- package/dist/Spinner.js +4 -0
- package/dist/Steps.js +5 -0
- package/dist/SwipeContainer.js +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} +24 -24
- package/dist/{Button.es.js → components/Button/Button.js} +55 -55
- package/dist/{CardProfile-CsytJlKZ.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/components/InputMultiple/InputMultiple.js +262 -0
- 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} +12 -13
- package/dist/components/OtpInput/OtpInput.js +112 -0
- package/dist/{Pagination.es.js → components/Pagination/Pagination.js} +32 -32
- package/dist/{ProfilePictureUpload.es.js → components/ProfilePictureUpload/ProfilePictureUpload.js} +56 -57
- package/dist/components/ProgressBar/ProgressBar.js +70 -0
- package/dist/{RadioButton.es.js → components/RadioButton/RadioButton.js} +35 -36
- package/dist/{SegmentedButton.es.js → components/SegmentedButton/SegmentedButton.js} +37 -38
- 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 -18
- package/dist/components/Spinner/Spinner.js +52 -0
- package/dist/{Steps.es.js → components/Steps/Steps.js} +61 -62
- package/dist/{SwipeContainer.es.js → components/SwipeContainer/SwipeContainer.js} +68 -68
- package/dist/{Switch.es.js → components/Switch/Switch.js} +17 -18
- 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} +48 -48
- package/dist/components/Tooltip/Tootip.js +62 -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.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/useDevice.js +4 -0
- package/package.json +114 -115
- package/dist/CardProfile.es.js +0 -5
- package/dist/DatePicker.es.js +0 -3441
- 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 -87
- package/dist/Header.es.js +0 -32
- package/dist/HelperComponent-g_xuKWzK.js +0 -24
- package/dist/Icons-DtFC5DJ7.js +0 -1079
- package/dist/Icons.es.js +0 -5
- package/dist/ImageGallery-Ckxg9OIC.js +0 -317
- package/dist/Input-Cck37DpG.js +0 -240
- package/dist/Input.es.js +0 -4
- package/dist/InputMultiple.es.js +0 -263
- package/dist/LayoutGeneric-CbaoatQB.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-BD5FTxVw.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/jsx-runtime-DKDX3adD.js +0 -281
- package/dist/prometeo-design-system.es.js +0 -1002
- /package/dist/{useDevice.es.js → hooks/useDevice.js} +0 -0
package/dist/Icons.js
ADDED
package/dist/Image.js
ADDED
package/dist/Input.js
ADDED
package/dist/Logo.js
ADDED
package/dist/Menu.js
ADDED
package/dist/OtpInput.js
ADDED
package/dist/Select.js
ADDED
package/dist/Skeleton.js
ADDED
package/dist/Spinner.js
ADDED
package/dist/Steps.js
ADDED
package/dist/Switch.js
ADDED
package/dist/TabLinks.js
ADDED
package/dist/Table.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Table as l, TableBody as b, TableCaption as T, TableCell as o, TableFooter as r, TableHead as d, TableHeader as t, TableRow as p } from "./components/Table/Table.js";
|
|
2
|
+
export {
|
|
3
|
+
l as Table,
|
|
4
|
+
b as TableBody,
|
|
5
|
+
T as TableCaption,
|
|
6
|
+
o as TableCell,
|
|
7
|
+
r as TableFooter,
|
|
8
|
+
d as TableHead,
|
|
9
|
+
t as TableHeader,
|
|
10
|
+
p as TableRow
|
|
11
|
+
};
|
package/dist/TextArea.js
ADDED
package/dist/Toast.js
ADDED
package/dist/Tooltip.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { useState as m, useRef as b, useEffect as l, useMemo as Y, useCallback as Z } from "react";
|
|
2
|
+
import { getAccessorValue as u } from "../../lib/utils.js";
|
|
3
|
+
function ne(r) {
|
|
4
|
+
const {
|
|
5
|
+
options: V,
|
|
6
|
+
fetcher: S,
|
|
7
|
+
asyncMode: v = "fetch_in_open",
|
|
8
|
+
disabled: C = !1,
|
|
9
|
+
debounceDelay: F = 500,
|
|
10
|
+
minCharacters: x = 3,
|
|
11
|
+
optionLabel: p,
|
|
12
|
+
optionValue: d,
|
|
13
|
+
controlledValue: f,
|
|
14
|
+
isOpen: A,
|
|
15
|
+
inputRef: _,
|
|
16
|
+
name: O
|
|
17
|
+
} = r || {}, [T, j] = m(V || []), [q, w] = m(V || []), [o, K] = m(""), [z, g] = m(!1), [G, H] = m(!1), y = b(null), k = b(null), E = b(!1), L = b(S), I = r?.multiple === !0 || !1, h = b(I ? [] : void 0), [i, R] = m(I ? [] : void 0);
|
|
18
|
+
l(() => {
|
|
19
|
+
L.current = S;
|
|
20
|
+
}, [S]), l(() => {
|
|
21
|
+
f !== void 0 && R(f);
|
|
22
|
+
}, [f]), l(() => {
|
|
23
|
+
h.current = f !== void 0 ? f : i;
|
|
24
|
+
}, [f, i]), l(() => {
|
|
25
|
+
r?.options && (j(r.options), w(r.options));
|
|
26
|
+
}, [r?.options]);
|
|
27
|
+
const M = Y(() => (e, t) => new Promise((n, s) => {
|
|
28
|
+
y.current && clearTimeout(y.current), y.current = setTimeout(() => e(o).then(n).catch(s), t);
|
|
29
|
+
}), [o]), N = (e) => {
|
|
30
|
+
const t = f !== void 0, n = (s) => d ? u(s, d) : u(s, "id");
|
|
31
|
+
if (r?.multiple === !0) {
|
|
32
|
+
const s = h.current || [];
|
|
33
|
+
let c;
|
|
34
|
+
s.some((a) => n(a) === n(e)) ? c = s.filter((a) => n(a) !== n(e)) : c = [...s, e], t ? (h.current = c, r?.onChange?.(c, O)) : (h.current = c, R(c), r?.onChange?.(c, O));
|
|
35
|
+
} else
|
|
36
|
+
t ? (h.current = e, r?.onChange?.(e, O)) : (h.current = e, R(e), r?.onChange?.(e, O));
|
|
37
|
+
}, P = (e) => (r?.onFetchingStart?.(), L.current?.(e) || Promise.resolve([])), J = Z((e, t) => e.length === 0 ? t : d ? t.filter((n) => !e.some((s) => u(s, d) === u(n, d))) : t.filter((n) => !e.some((s) => u(s, "id") === u(n, "id"))), [d]);
|
|
38
|
+
l(() => {
|
|
39
|
+
const e = r?.subscribeOpenChange;
|
|
40
|
+
if (!e) return;
|
|
41
|
+
const t = e((n) => {
|
|
42
|
+
H(n);
|
|
43
|
+
});
|
|
44
|
+
return () => {
|
|
45
|
+
t && t();
|
|
46
|
+
};
|
|
47
|
+
}, [r?.subscribeOpenChange]);
|
|
48
|
+
const B = A !== void 0 ? A : G;
|
|
49
|
+
l(() => {
|
|
50
|
+
if (!C && L.current && v === "fetch_on_type") {
|
|
51
|
+
if (!o || o === "" || o.length < x) {
|
|
52
|
+
y.current && clearTimeout(y.current), g(!1);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const e = M(P, F);
|
|
56
|
+
g(!0), e.then((t) => {
|
|
57
|
+
j(t);
|
|
58
|
+
}).finally(() => {
|
|
59
|
+
g(!1), r?.onFetchingEnd?.();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}, [v, o, C, F, M, x]), l(() => {
|
|
63
|
+
if (!C)
|
|
64
|
+
if (B) {
|
|
65
|
+
if (r?.onOpen?.(), v === "fetch_in_open") {
|
|
66
|
+
if (!L.current)
|
|
67
|
+
return;
|
|
68
|
+
g(!0), P().then((e) => {
|
|
69
|
+
j(() => I && i.length > 0 ? [...J(i, e), ...i] : e);
|
|
70
|
+
}).finally(() => {
|
|
71
|
+
g(!1), r?.onFetchingEnd?.();
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
} else
|
|
75
|
+
r?.onClose?.();
|
|
76
|
+
}, [B, v, C]);
|
|
77
|
+
const D = (e, t) => e.filter((n) => {
|
|
78
|
+
if (p)
|
|
79
|
+
return u(n, p).toLowerCase().includes(t.toLowerCase());
|
|
80
|
+
switch (typeof n) {
|
|
81
|
+
case "string":
|
|
82
|
+
return n.toLowerCase().includes(t.toLowerCase());
|
|
83
|
+
case "number":
|
|
84
|
+
return n.toString().includes(t);
|
|
85
|
+
case "object":
|
|
86
|
+
return Object.values(n).some((c) => c.toString().toLowerCase().includes(t.toLowerCase()));
|
|
87
|
+
default:
|
|
88
|
+
return !1;
|
|
89
|
+
}
|
|
90
|
+
}), Q = (e) => e.sort((t, n) => {
|
|
91
|
+
if (p)
|
|
92
|
+
return u(t, p) < u(n, p) ? -1 : 1;
|
|
93
|
+
{
|
|
94
|
+
const c = ["label", "name", "value"].find((a) => typeof t == "object" && Object.keys(t).includes(a));
|
|
95
|
+
switch (typeof t) {
|
|
96
|
+
case "string":
|
|
97
|
+
return t < n ? -1 : 1;
|
|
98
|
+
case "number":
|
|
99
|
+
return t < n ? -1 : 1;
|
|
100
|
+
case "object":
|
|
101
|
+
if (c) {
|
|
102
|
+
const a = u(t, c), X = u(n, c);
|
|
103
|
+
return a < X ? -1 : 1;
|
|
104
|
+
} else
|
|
105
|
+
return 1;
|
|
106
|
+
default:
|
|
107
|
+
return 1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}), W = (e) => {
|
|
111
|
+
const t = typeof _ == "function" ? _() : _;
|
|
112
|
+
e.target === t?.current && (k.current && clearTimeout(k.current), E.current || (E.current = !0, r?.onTypeStart?.()), k.current = setTimeout(() => {
|
|
113
|
+
E.current = !1;
|
|
114
|
+
}, F));
|
|
115
|
+
};
|
|
116
|
+
return l(() => {
|
|
117
|
+
if (o === "")
|
|
118
|
+
w(Q(T));
|
|
119
|
+
else if (I) {
|
|
120
|
+
const e = J(i, T);
|
|
121
|
+
w([...D(e, o), ...i]);
|
|
122
|
+
} else {
|
|
123
|
+
const e = J([i], T);
|
|
124
|
+
w([...D(e, o), i]);
|
|
125
|
+
}
|
|
126
|
+
}, [T]), l(() => (document.addEventListener("keydown", W), () => {
|
|
127
|
+
document.removeEventListener("keydown", W);
|
|
128
|
+
}), []), {
|
|
129
|
+
inputValue: o,
|
|
130
|
+
setInputValue: K,
|
|
131
|
+
cleanInputValue: () => {
|
|
132
|
+
K("");
|
|
133
|
+
},
|
|
134
|
+
filteredOptions: q,
|
|
135
|
+
isLoading: z,
|
|
136
|
+
value: i,
|
|
137
|
+
setValue: R,
|
|
138
|
+
onOptionClick: N
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export {
|
|
142
|
+
ne as useAutocomplete
|
|
143
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
4
|
-
function
|
|
5
|
-
imageUrl:
|
|
1
|
+
import { jsxs as g, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "../../lib/cn.js";
|
|
3
|
+
import { useState as b } from "react";
|
|
4
|
+
function j({
|
|
5
|
+
imageUrl: s,
|
|
6
6
|
sizeImage: l = "md",
|
|
7
7
|
sizeFallback: t = "md",
|
|
8
|
-
fallbackText:
|
|
9
|
-
subImageUrl:
|
|
8
|
+
fallbackText: a = "Selene Soluciones",
|
|
9
|
+
subImageUrl: r,
|
|
10
10
|
borderColor: n = "white"
|
|
11
11
|
}) {
|
|
12
|
-
const [c,
|
|
12
|
+
const [c, d] = b(!1), o = s && s.trim() !== "" && !c, m = (f) => f.split(" ").map((p) => p.charAt(0)).join("").toUpperCase().slice(0, 2), x = {
|
|
13
13
|
xxxs: "w-6.5 h-6.5",
|
|
14
14
|
xxs: "w-8.5 h-8.5",
|
|
15
15
|
xs: "w-10 h-10",
|
|
@@ -33,48 +33,48 @@ function C({
|
|
|
33
33
|
md: "w-12 h-12",
|
|
34
34
|
lg: "w-16 h-16",
|
|
35
35
|
xl: "w-20 h-20"
|
|
36
|
-
}, w =
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
36
|
+
}, w = o ? l : t;
|
|
37
|
+
return /* @__PURE__ */ g("div", { className: "relative inline-block", children: [
|
|
38
|
+
o ? /* @__PURE__ */ e(
|
|
39
39
|
"img",
|
|
40
40
|
{
|
|
41
41
|
onError: () => {
|
|
42
|
-
|
|
42
|
+
d(!0);
|
|
43
43
|
},
|
|
44
|
-
src:
|
|
45
|
-
className: `rounded-full object-cover ${
|
|
44
|
+
src: s,
|
|
45
|
+
className: `rounded-full object-cover ${x[l]}`,
|
|
46
46
|
alt: "Profile"
|
|
47
47
|
}
|
|
48
|
-
) : /* @__PURE__ */
|
|
48
|
+
) : /* @__PURE__ */ e(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
|
-
className: ` flex items-center justify-center rounded-full aspect-square ${
|
|
51
|
+
className: ` flex items-center justify-center rounded-full aspect-square ${x[t]}`,
|
|
52
52
|
style: { backgroundColor: "#C6D2FF" },
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ e(
|
|
54
54
|
"span",
|
|
55
55
|
{
|
|
56
|
-
className:
|
|
56
|
+
className: i(
|
|
57
57
|
"text-[#312C85] font-semibold",
|
|
58
58
|
h[t]
|
|
59
59
|
),
|
|
60
|
-
children:
|
|
60
|
+
children: m(a)
|
|
61
61
|
}
|
|
62
62
|
)
|
|
63
63
|
},
|
|
64
64
|
"initials"
|
|
65
65
|
),
|
|
66
|
-
|
|
66
|
+
r && /* @__PURE__ */ e(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
className:
|
|
69
|
+
className: i(
|
|
70
70
|
"absolute bottom-[-10px] right-[-10px] rounded-full border-4 overflow-hidden bg-gray-900",
|
|
71
71
|
u[w]
|
|
72
72
|
),
|
|
73
73
|
style: { borderColor: n },
|
|
74
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ e(
|
|
75
75
|
"img",
|
|
76
76
|
{
|
|
77
|
-
src:
|
|
77
|
+
src: r,
|
|
78
78
|
alt: "Sub badge",
|
|
79
79
|
className: "w-full h-full object-cover"
|
|
80
80
|
}
|
|
@@ -84,5 +84,5 @@ function C({
|
|
|
84
84
|
] });
|
|
85
85
|
}
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
j as default
|
|
88
88
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { jsxs as y, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as A, useMemo as q } from "react";
|
|
3
|
+
import D from "../Spinner/Spinner.js";
|
|
4
|
+
import { cva as v } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
5
|
+
import { cn as d } from "../../lib/cn.js";
|
|
6
6
|
const m = {
|
|
7
7
|
small: {
|
|
8
8
|
container: "h-10 px-4 py-2"
|
|
@@ -138,21 +138,21 @@ const m = {
|
|
|
138
138
|
container: "flex justify-center items-center gap-1 w-max rounded-lg bg-transparent cursor-pointer transition-all ease-in-out duration-300 relative",
|
|
139
139
|
label: "w-max transition-all ease-in-out duration-300",
|
|
140
140
|
icon: "w-max transition-all ease-in-out duration-300 flex justify-center items-center"
|
|
141
|
-
},
|
|
141
|
+
}, w = {
|
|
142
142
|
true: {
|
|
143
143
|
container: "hover:scale-105 active:scale-95 disabled:scale-100"
|
|
144
144
|
},
|
|
145
145
|
false: {
|
|
146
146
|
container: ""
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, V = {
|
|
149
149
|
true: {
|
|
150
150
|
icon: "group-hover:rotate-90 group-active:rotate-0 group-disabled:rotate-0"
|
|
151
151
|
},
|
|
152
152
|
false: {
|
|
153
153
|
icon: ""
|
|
154
154
|
}
|
|
155
|
-
},
|
|
155
|
+
}, E = v(p.container, {
|
|
156
156
|
variants: {
|
|
157
157
|
size: {
|
|
158
158
|
small: `${r.small.container} ${m.small.container}`,
|
|
@@ -173,8 +173,8 @@ const m = {
|
|
|
173
173
|
disabled: ""
|
|
174
174
|
},
|
|
175
175
|
animation: {
|
|
176
|
-
true:
|
|
177
|
-
false:
|
|
176
|
+
true: w.true.container,
|
|
177
|
+
false: w.false.container
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
compoundVariants: [
|
|
@@ -203,7 +203,7 @@ const m = {
|
|
|
203
203
|
color: "primary",
|
|
204
204
|
animation: !0
|
|
205
205
|
}
|
|
206
|
-
}),
|
|
206
|
+
}), k = v(p.label, {
|
|
207
207
|
variants: {
|
|
208
208
|
size: {
|
|
209
209
|
small: r.small.label,
|
|
@@ -249,7 +249,7 @@ const m = {
|
|
|
249
249
|
variant: "fill",
|
|
250
250
|
color: "primary"
|
|
251
251
|
}
|
|
252
|
-
}),
|
|
252
|
+
}), F = v(p.icon, {
|
|
253
253
|
variants: {
|
|
254
254
|
size: {
|
|
255
255
|
small: r.small.icon,
|
|
@@ -270,8 +270,8 @@ const m = {
|
|
|
270
270
|
disabled: ""
|
|
271
271
|
},
|
|
272
272
|
animateIcon: {
|
|
273
|
-
true:
|
|
274
|
-
false:
|
|
273
|
+
true: V.true.icon,
|
|
274
|
+
false: V.false.icon
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
compoundVariants: [
|
|
@@ -300,60 +300,60 @@ const m = {
|
|
|
300
300
|
color: "primary",
|
|
301
301
|
animateIcon: !0
|
|
302
302
|
}
|
|
303
|
-
}),
|
|
303
|
+
}), G = ({
|
|
304
304
|
label: g,
|
|
305
|
-
onClick:
|
|
306
|
-
icon:
|
|
305
|
+
onClick: $,
|
|
306
|
+
icon: s,
|
|
307
307
|
contentClassName: u,
|
|
308
308
|
loadingText: f = "Cargando...",
|
|
309
|
-
animate:
|
|
310
|
-
animateIcon:
|
|
311
|
-
isLoading:
|
|
309
|
+
animate: N = !0,
|
|
310
|
+
animateIcon: I = !0,
|
|
311
|
+
isLoading: t = !1,
|
|
312
312
|
children: c,
|
|
313
313
|
hideSpinner: b = !1,
|
|
314
|
-
spinner: x = /* @__PURE__ */
|
|
315
|
-
type:
|
|
316
|
-
className:
|
|
317
|
-
disabled:
|
|
314
|
+
spinner: x = /* @__PURE__ */ o(D, { size: "small", variant: "clip", speedMultiplier: 0.5, className: "mt-1.5", color: "var(--neutral-600)" }),
|
|
315
|
+
type: j,
|
|
316
|
+
className: z,
|
|
317
|
+
disabled: i,
|
|
318
318
|
variant: l = "fill",
|
|
319
|
-
form:
|
|
320
|
-
size:
|
|
321
|
-
color:
|
|
319
|
+
form: S,
|
|
320
|
+
size: a = "medium",
|
|
321
|
+
color: B = "primary"
|
|
322
322
|
}) => {
|
|
323
|
-
const h = !!(
|
|
323
|
+
const h = !!(I && !i && !t), C = !!(N && !i && !t), n = i || t ? "disabled" : B, M = q(() => c || (t ? /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
|
|
324
324
|
!b && x,
|
|
325
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ o(
|
|
326
326
|
"span",
|
|
327
327
|
{
|
|
328
328
|
className: d(
|
|
329
|
-
|
|
330
|
-
size:
|
|
329
|
+
k({
|
|
330
|
+
size: a,
|
|
331
331
|
variant: l,
|
|
332
332
|
color: n
|
|
333
333
|
}),
|
|
334
|
-
|
|
334
|
+
a === "small" ? "prometeo-fonts-label-xsmall" : ""
|
|
335
335
|
),
|
|
336
336
|
children: f
|
|
337
337
|
}
|
|
338
338
|
)
|
|
339
|
-
] }) : /* @__PURE__ */
|
|
340
|
-
|
|
339
|
+
] }) : /* @__PURE__ */ y("div", { className: d("flex items-center gap-1", u), children: [
|
|
340
|
+
s && /* @__PURE__ */ o(
|
|
341
341
|
"span",
|
|
342
342
|
{
|
|
343
|
-
className:
|
|
344
|
-
size:
|
|
343
|
+
className: F({
|
|
344
|
+
size: a,
|
|
345
345
|
variant: l,
|
|
346
346
|
color: n,
|
|
347
347
|
animateIcon: h
|
|
348
348
|
}),
|
|
349
|
-
children:
|
|
349
|
+
children: s
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ o(
|
|
353
353
|
"span",
|
|
354
354
|
{
|
|
355
|
-
className:
|
|
356
|
-
size:
|
|
355
|
+
className: k({
|
|
356
|
+
size: a,
|
|
357
357
|
variant: l,
|
|
358
358
|
color: n
|
|
359
359
|
}),
|
|
@@ -363,38 +363,38 @@ const m = {
|
|
|
363
363
|
] })), [
|
|
364
364
|
c,
|
|
365
365
|
u,
|
|
366
|
-
|
|
366
|
+
s,
|
|
367
367
|
g,
|
|
368
368
|
l,
|
|
369
|
-
o,
|
|
370
|
-
n,
|
|
371
369
|
a,
|
|
370
|
+
n,
|
|
371
|
+
t,
|
|
372
372
|
b,
|
|
373
373
|
x,
|
|
374
374
|
f,
|
|
375
375
|
h
|
|
376
376
|
]);
|
|
377
|
-
return /* @__PURE__ */
|
|
377
|
+
return /* @__PURE__ */ o(
|
|
378
378
|
"button",
|
|
379
379
|
{
|
|
380
|
-
type:
|
|
380
|
+
type: j,
|
|
381
381
|
className: d(
|
|
382
382
|
"group",
|
|
383
|
-
|
|
384
|
-
size:
|
|
383
|
+
E({
|
|
384
|
+
size: a,
|
|
385
385
|
variant: l,
|
|
386
386
|
color: n,
|
|
387
|
-
animation:
|
|
387
|
+
animation: C
|
|
388
388
|
}),
|
|
389
|
-
|
|
389
|
+
z
|
|
390
390
|
),
|
|
391
|
-
disabled:
|
|
392
|
-
form:
|
|
393
|
-
onClick:
|
|
394
|
-
children: /* @__PURE__ */
|
|
391
|
+
disabled: i || t,
|
|
392
|
+
form: S,
|
|
393
|
+
onClick: $,
|
|
394
|
+
children: /* @__PURE__ */ o("div", { className: `flex items-center gap-1 ${u}`, children: M })
|
|
395
395
|
}
|
|
396
396
|
);
|
|
397
|
-
},
|
|
397
|
+
}, Q = A(G);
|
|
398
398
|
export {
|
|
399
|
-
|
|
399
|
+
Q as default
|
|
400
400
|
};
|