prometeo-design-system 2.8.8 → 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/index.d.ts +12 -16
- 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 -127
- 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,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
4
|
-
function
|
|
5
|
-
imageUrl:
|
|
1
|
+
import { j as s } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as a } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { useState as j } from "react";
|
|
4
|
+
function C({
|
|
5
|
+
imageUrl: e,
|
|
6
6
|
sizeImage: l = "md",
|
|
7
7
|
sizeFallback: t = "md",
|
|
8
|
-
fallbackText:
|
|
9
|
-
subImageUrl:
|
|
8
|
+
fallbackText: i = "Selene Soluciones",
|
|
9
|
+
subImageUrl: x,
|
|
10
10
|
borderColor: n = "white"
|
|
11
11
|
}) {
|
|
12
|
-
const [c,
|
|
12
|
+
const [c, m] = j(!1), r = e && e.trim() !== "" && !c, d = (f) => f.split(" ").map((p) => p.charAt(0)).join("").toUpperCase().slice(0, 2), o = {
|
|
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 j({
|
|
|
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 = r ? l : t;
|
|
37
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "relative inline-block", children: [
|
|
38
|
+
r ? /* @__PURE__ */ s.jsx(
|
|
39
39
|
"img",
|
|
40
40
|
{
|
|
41
41
|
onError: () => {
|
|
42
|
-
|
|
42
|
+
m(!0);
|
|
43
43
|
},
|
|
44
|
-
src:
|
|
45
|
-
className: `rounded-full object-cover ${
|
|
44
|
+
src: e,
|
|
45
|
+
className: `rounded-full object-cover ${o[l]}`,
|
|
46
46
|
alt: "Profile"
|
|
47
47
|
}
|
|
48
|
-
) : /* @__PURE__ */
|
|
48
|
+
) : /* @__PURE__ */ s.jsx(
|
|
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 ${o[t]}`,
|
|
52
52
|
style: { backgroundColor: "#C6D2FF" },
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ s.jsx(
|
|
54
54
|
"span",
|
|
55
55
|
{
|
|
56
|
-
className:
|
|
56
|
+
className: a(
|
|
57
57
|
"text-[#312C85] font-semibold",
|
|
58
58
|
h[t]
|
|
59
59
|
),
|
|
60
|
-
children:
|
|
60
|
+
children: d(i)
|
|
61
61
|
}
|
|
62
62
|
)
|
|
63
63
|
},
|
|
64
64
|
"initials"
|
|
65
65
|
),
|
|
66
|
-
|
|
66
|
+
x && /* @__PURE__ */ s.jsx(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
className:
|
|
69
|
+
className: a(
|
|
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__ */ s.jsx(
|
|
75
75
|
"img",
|
|
76
76
|
{
|
|
77
|
-
src:
|
|
77
|
+
src: x,
|
|
78
78
|
alt: "Sub badge",
|
|
79
79
|
className: "w-full h-full object-cover"
|
|
80
80
|
}
|
|
@@ -84,5 +84,5 @@ function j({
|
|
|
84
84
|
] });
|
|
85
85
|
}
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
C as default
|
|
88
88
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { j as t } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { memo as M, useMemo as A } from "react";
|
|
3
|
+
import E from "./Spinner.es.js";
|
|
4
|
+
import { c as v } from "./index-BOQuZ0gG.js";
|
|
5
|
+
import { c as d } from "./cn-B6yFEsav.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
|
+
}, y = {
|
|
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
|
+
}, w = {
|
|
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
|
+
}, R = 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: y.true.container,
|
|
177
|
+
false: y.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
|
+
}), V = 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
|
+
}), q = 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: w.true.icon,
|
|
274
|
+
false: w.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
|
+
}), D = ({
|
|
304
304
|
label: g,
|
|
305
|
-
onClick:
|
|
306
|
-
icon:
|
|
305
|
+
onClick: j,
|
|
306
|
+
icon: i,
|
|
307
307
|
contentClassName: u,
|
|
308
308
|
loadingText: f = "Cargando...",
|
|
309
|
-
animate:
|
|
310
|
-
animateIcon:
|
|
311
|
-
isLoading:
|
|
309
|
+
animate: k = !0,
|
|
310
|
+
animateIcon: $ = !0,
|
|
311
|
+
isLoading: a = !1,
|
|
312
312
|
children: c,
|
|
313
313
|
hideSpinner: b = !1,
|
|
314
|
-
spinner: x = /* @__PURE__ */
|
|
315
|
-
type:
|
|
316
|
-
className:
|
|
317
|
-
disabled:
|
|
314
|
+
spinner: x = /* @__PURE__ */ t.jsx(E, { size: "small", variant: "clip", speedMultiplier: 0.5, className: "mt-1.5", color: "var(--neutral-600)" }),
|
|
315
|
+
type: N,
|
|
316
|
+
className: I,
|
|
317
|
+
disabled: s,
|
|
318
318
|
variant: l = "fill",
|
|
319
|
-
form:
|
|
320
|
-
size:
|
|
321
|
-
color:
|
|
319
|
+
form: z,
|
|
320
|
+
size: o = "medium",
|
|
321
|
+
color: S = "primary"
|
|
322
322
|
}) => {
|
|
323
|
-
const h = !!(
|
|
323
|
+
const h = !!($ && !s && !a), B = !!(k && !s && !a), n = s || a ? "disabled" : S, C = A(() => c || (a ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
324
324
|
!b && x,
|
|
325
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ t.jsx(
|
|
326
326
|
"span",
|
|
327
327
|
{
|
|
328
328
|
className: d(
|
|
329
|
-
|
|
330
|
-
size:
|
|
329
|
+
V({
|
|
330
|
+
size: o,
|
|
331
331
|
variant: l,
|
|
332
332
|
color: n
|
|
333
333
|
}),
|
|
334
|
-
|
|
334
|
+
o === "small" ? "prometeo-fonts-label-xsmall" : ""
|
|
335
335
|
),
|
|
336
336
|
children: f
|
|
337
337
|
}
|
|
338
338
|
)
|
|
339
|
-
] }) : /* @__PURE__ */
|
|
340
|
-
|
|
339
|
+
] }) : /* @__PURE__ */ t.jsxs("div", { className: d("flex items-center gap-1", u), children: [
|
|
340
|
+
i && /* @__PURE__ */ t.jsx(
|
|
341
341
|
"span",
|
|
342
342
|
{
|
|
343
|
-
className:
|
|
344
|
-
size:
|
|
343
|
+
className: q({
|
|
344
|
+
size: o,
|
|
345
345
|
variant: l,
|
|
346
346
|
color: n,
|
|
347
347
|
animateIcon: h
|
|
348
348
|
}),
|
|
349
|
-
children:
|
|
349
|
+
children: i
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ t.jsx(
|
|
353
353
|
"span",
|
|
354
354
|
{
|
|
355
|
-
className:
|
|
356
|
-
size:
|
|
355
|
+
className: V({
|
|
356
|
+
size: o,
|
|
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
|
+
i,
|
|
367
367
|
g,
|
|
368
368
|
l,
|
|
369
|
-
|
|
369
|
+
o,
|
|
370
370
|
n,
|
|
371
|
-
|
|
371
|
+
a,
|
|
372
372
|
b,
|
|
373
373
|
x,
|
|
374
374
|
f,
|
|
375
375
|
h
|
|
376
376
|
]);
|
|
377
|
-
return /* @__PURE__ */
|
|
377
|
+
return /* @__PURE__ */ t.jsx(
|
|
378
378
|
"button",
|
|
379
379
|
{
|
|
380
|
-
type:
|
|
380
|
+
type: N,
|
|
381
381
|
className: d(
|
|
382
382
|
"group",
|
|
383
|
-
|
|
384
|
-
size:
|
|
383
|
+
R({
|
|
384
|
+
size: o,
|
|
385
385
|
variant: l,
|
|
386
386
|
color: n,
|
|
387
|
-
animation:
|
|
387
|
+
animation: B
|
|
388
388
|
}),
|
|
389
|
-
|
|
389
|
+
I
|
|
390
390
|
),
|
|
391
|
-
disabled:
|
|
392
|
-
form:
|
|
393
|
-
onClick:
|
|
394
|
-
children: /* @__PURE__ */
|
|
391
|
+
disabled: s || a,
|
|
392
|
+
form: z,
|
|
393
|
+
onClick: j,
|
|
394
|
+
children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${u}`, children: C })
|
|
395
395
|
}
|
|
396
396
|
);
|
|
397
|
-
},
|
|
397
|
+
}, O = M(D);
|
|
398
398
|
export {
|
|
399
|
-
|
|
399
|
+
O as default
|
|
400
400
|
};
|
|
@@ -1,16 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { motion as
|
|
4
|
-
import
|
|
5
|
-
import m from "
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { motion as i, AnimatePresence as c } from "framer-motion";
|
|
4
|
+
import u from "./Avatar.es.js";
|
|
5
|
+
import { f as m, L as f } from "./Icons-DtFC5DJ7.js";
|
|
6
|
+
function x({
|
|
7
|
+
sessions: t,
|
|
8
|
+
handleTokenLogin: a
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ e.jsx("div", { className: "profile-options-container w-full ", children: t?.map((r) => /* @__PURE__ */ e.jsx(
|
|
11
|
+
"button",
|
|
12
|
+
{
|
|
13
|
+
className: "w-full ",
|
|
14
|
+
onClick: () => a?.(r.token),
|
|
15
|
+
children: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
|
|
16
|
+
s.Content,
|
|
17
|
+
{
|
|
18
|
+
onClick: () => {
|
|
19
|
+
console.log("hola");
|
|
20
|
+
},
|
|
21
|
+
isExpanded: !1,
|
|
22
|
+
nameUser: r.name,
|
|
23
|
+
nameArea: r?.areaId?.name,
|
|
24
|
+
nameCompany: r.companyId.name,
|
|
25
|
+
cardProfile: /* @__PURE__ */ e.jsx(s.Image, { isExpanded: !1 })
|
|
26
|
+
}
|
|
27
|
+
) })
|
|
28
|
+
},
|
|
29
|
+
r._id
|
|
30
|
+
)) });
|
|
31
|
+
}
|
|
32
|
+
const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profile-container flex rounded-md text-white-prometeo overflow-hidden shrink-0 w-full min-w-0 ", children: t }), p = ({
|
|
8
33
|
isExpanded: t,
|
|
9
34
|
sessions: a,
|
|
10
|
-
onClickLogout:
|
|
11
|
-
handleTokenLogin:
|
|
12
|
-
}) => /* @__PURE__ */ e(
|
|
13
|
-
|
|
35
|
+
onClickLogout: r,
|
|
36
|
+
handleTokenLogin: n
|
|
37
|
+
}) => /* @__PURE__ */ e.jsx(c, { mode: "wait", children: t && /* @__PURE__ */ e.jsxs(
|
|
38
|
+
i.div,
|
|
14
39
|
{
|
|
15
40
|
initial: { height: 0, opacity: 0 },
|
|
16
41
|
animate: {
|
|
@@ -35,8 +60,8 @@ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-co
|
|
|
35
60
|
},
|
|
36
61
|
className: "overflow-hidden",
|
|
37
62
|
children: [
|
|
38
|
-
/* @__PURE__ */ e(
|
|
39
|
-
|
|
63
|
+
/* @__PURE__ */ e.jsx(
|
|
64
|
+
i.div,
|
|
40
65
|
{
|
|
41
66
|
className: "flex justify-center items-center w-full mt-4",
|
|
42
67
|
exit: {
|
|
@@ -49,12 +74,12 @@ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-co
|
|
|
49
74
|
ease: "easeInOut"
|
|
50
75
|
}
|
|
51
76
|
},
|
|
52
|
-
children: /* @__PURE__ */ e("div", { className: "border-b border-neutral-strong-default border w-full" })
|
|
77
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "border-b border-neutral-strong-default border w-full" })
|
|
53
78
|
}
|
|
54
79
|
),
|
|
55
|
-
a && a.length > 0 && /* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
|
|
80
|
+
a && a.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
81
|
+
/* @__PURE__ */ e.jsx(
|
|
82
|
+
i.div,
|
|
58
83
|
{
|
|
59
84
|
className: "mt-4",
|
|
60
85
|
exit: {
|
|
@@ -67,11 +92,11 @@ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-co
|
|
|
67
92
|
ease: "easeInOut"
|
|
68
93
|
}
|
|
69
94
|
},
|
|
70
|
-
children: /* @__PURE__ */ e("span", { className: "text-neutral-medium-default font-semibold text-xs", children: "Cambiar cuenta" })
|
|
95
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "text-neutral-medium-default font-semibold text-xs", children: "Cambiar cuenta" })
|
|
71
96
|
}
|
|
72
97
|
),
|
|
73
|
-
/* @__PURE__ */ e(
|
|
74
|
-
|
|
98
|
+
/* @__PURE__ */ e.jsx(
|
|
99
|
+
i.div,
|
|
75
100
|
{
|
|
76
101
|
className: "mt-4 overflow-hidden w-full ",
|
|
77
102
|
exit: {
|
|
@@ -87,17 +112,17 @@ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-co
|
|
|
87
112
|
ease: "easeInOut"
|
|
88
113
|
}
|
|
89
114
|
},
|
|
90
|
-
children: /* @__PURE__ */ e(
|
|
91
|
-
|
|
115
|
+
children: /* @__PURE__ */ e.jsx(
|
|
116
|
+
x,
|
|
92
117
|
{
|
|
93
118
|
sessions: a,
|
|
94
|
-
handleTokenLogin:
|
|
119
|
+
handleTokenLogin: n
|
|
95
120
|
}
|
|
96
121
|
)
|
|
97
122
|
}
|
|
98
123
|
),
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
|
|
124
|
+
/* @__PURE__ */ e.jsx(
|
|
125
|
+
i.div,
|
|
101
126
|
{
|
|
102
127
|
className: "flex justify-center items-center w-full mt-4",
|
|
103
128
|
exit: {
|
|
@@ -110,14 +135,14 @@ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-co
|
|
|
110
135
|
ease: "easeInOut"
|
|
111
136
|
}
|
|
112
137
|
},
|
|
113
|
-
children: /* @__PURE__ */ e("div", { className: "border-b border-neutral-strong-default border w-full" })
|
|
138
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "border-b border-neutral-strong-default border w-full" })
|
|
114
139
|
}
|
|
115
140
|
)
|
|
116
141
|
] }),
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
|
|
142
|
+
/* @__PURE__ */ e.jsxs(
|
|
143
|
+
i.button,
|
|
119
144
|
{
|
|
120
|
-
onClick:
|
|
145
|
+
onClick: r,
|
|
121
146
|
className: "flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",
|
|
122
147
|
exit: {
|
|
123
148
|
opacity: 0,
|
|
@@ -136,33 +161,33 @@ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-co
|
|
|
136
161
|
},
|
|
137
162
|
whileTap: { scale: 0.98 },
|
|
138
163
|
children: [
|
|
139
|
-
/* @__PURE__ */ e(
|
|
140
|
-
/* @__PURE__ */ e("span", { className: "text-neutral-default-default font-semibold text-sm", children: "Cerrar sesión" })
|
|
164
|
+
/* @__PURE__ */ e.jsx(f, { size: 24, className: "text-neutral-default-default" }),
|
|
165
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-neutral-default-default font-semibold text-sm", children: "Cerrar sesión" })
|
|
141
166
|
]
|
|
142
167
|
}
|
|
143
168
|
)
|
|
144
169
|
]
|
|
145
170
|
}
|
|
146
|
-
) }),
|
|
147
|
-
|
|
171
|
+
) }), j = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper ml-1", children: /* @__PURE__ */ e.jsx(
|
|
172
|
+
u,
|
|
148
173
|
{
|
|
149
174
|
imageUrl: t,
|
|
150
175
|
sizeImage: "xs",
|
|
151
176
|
sizeFallback: "xs",
|
|
152
177
|
fallbackText: a
|
|
153
178
|
}
|
|
154
|
-
) }),
|
|
179
|
+
) }), g = ({
|
|
155
180
|
isExpanded: t,
|
|
156
181
|
nameUser: a,
|
|
157
|
-
nameCompany:
|
|
158
|
-
nameArea:
|
|
159
|
-
cardProfile:
|
|
160
|
-
onClick:
|
|
161
|
-
}) => /* @__PURE__ */
|
|
162
|
-
|
|
182
|
+
nameCompany: r,
|
|
183
|
+
nameArea: n,
|
|
184
|
+
cardProfile: o,
|
|
185
|
+
onClick: d
|
|
186
|
+
}) => /* @__PURE__ */ e.jsxs(
|
|
187
|
+
i.button,
|
|
163
188
|
{
|
|
164
|
-
onClick:
|
|
165
|
-
className:
|
|
189
|
+
onClick: d,
|
|
190
|
+
className: l(
|
|
166
191
|
"flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile h-12",
|
|
167
192
|
t && "bg-neutral-medium-selected"
|
|
168
193
|
),
|
|
@@ -173,55 +198,55 @@ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-co
|
|
|
173
198
|
whileTap: { scale: 0.98 },
|
|
174
199
|
transition: { duration: 0.2, ease: "easeInOut" },
|
|
175
200
|
children: [
|
|
176
|
-
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */ e(
|
|
201
|
+
o,
|
|
202
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2", children: [
|
|
203
|
+
/* @__PURE__ */ e.jsx(
|
|
179
204
|
"p",
|
|
180
205
|
{
|
|
181
|
-
className:
|
|
206
|
+
className: l(
|
|
182
207
|
"profile-name font-semibold leading-tight mb-0 text-left",
|
|
183
208
|
t ? "text-primary-default-default" : "text-neutral-default-default"
|
|
184
209
|
),
|
|
185
210
|
children: a?.length && a?.length > 20 ? a?.slice(0, 10) + ".." : a
|
|
186
211
|
}
|
|
187
212
|
),
|
|
188
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-1 mt-0 ", children:
|
|
189
|
-
/* @__PURE__ */ e(
|
|
213
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-1 mt-0 ", children: r && r ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
214
|
+
/* @__PURE__ */ e.jsx(
|
|
190
215
|
"p",
|
|
191
216
|
{
|
|
192
|
-
className:
|
|
217
|
+
className: l(
|
|
193
218
|
"profile-options truncate text-xs mt-0",
|
|
194
219
|
t ? "text-primary-default-default" : "text-neutral-default-default"
|
|
195
220
|
),
|
|
196
|
-
children:
|
|
221
|
+
children: r?.length && r?.length > 20 ? r?.slice(0, 10) + ".." : r
|
|
197
222
|
}
|
|
198
223
|
),
|
|
199
|
-
/* @__PURE__ */ e(
|
|
224
|
+
/* @__PURE__ */ e.jsx(
|
|
200
225
|
"p",
|
|
201
226
|
{
|
|
202
|
-
className:
|
|
227
|
+
className: l(
|
|
203
228
|
"profile-options truncate font-bold mt-0",
|
|
204
229
|
t ? "text-primary-default-default" : "text-neutral-default-default"
|
|
205
230
|
),
|
|
206
231
|
children: "·"
|
|
207
232
|
}
|
|
208
233
|
),
|
|
209
|
-
/* @__PURE__ */ e(
|
|
234
|
+
/* @__PURE__ */ e.jsx(
|
|
210
235
|
"p",
|
|
211
236
|
{
|
|
212
|
-
className:
|
|
237
|
+
className: l(
|
|
213
238
|
"profile-options truncate text-xs mt-0",
|
|
214
239
|
t ? "text-primary-default-default" : "text-neutral-default-default"
|
|
215
240
|
),
|
|
216
|
-
children:
|
|
241
|
+
children: n || "Sin asignar"
|
|
217
242
|
}
|
|
218
243
|
)
|
|
219
|
-
] }) : /* @__PURE__ */ e("span", { className: "font-semibold leading-tight ml-3 text-xs text-blue-300 text-center", children: "Sin asignar" }) })
|
|
244
|
+
] }) : /* @__PURE__ */ e.jsx("span", { className: "font-semibold leading-tight ml-3 text-xs text-blue-300 text-center", children: "Sin asignar" }) })
|
|
220
245
|
] })
|
|
221
246
|
]
|
|
222
247
|
}
|
|
223
|
-
),
|
|
224
|
-
|
|
248
|
+
), v = () => /* @__PURE__ */ e.jsx("div", { className: "w-px bg-gray-500/30 my-1 border-separator-profile" }), y = ({ isExpanded: t, onClick: a }) => /* @__PURE__ */ e.jsx(
|
|
249
|
+
i.button,
|
|
225
250
|
{
|
|
226
251
|
onClick: a,
|
|
227
252
|
className: "flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] hover:bg-neutral-medium-selected button-content-chevron",
|
|
@@ -230,23 +255,24 @@ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-co
|
|
|
230
255
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
231
256
|
title: t ? "Ocultar opciones" : "Mostrar opciones",
|
|
232
257
|
"aria-label": t ? "Ocultar opciones" : "Mostrar opciones",
|
|
233
|
-
children: /* @__PURE__ */ e(
|
|
234
|
-
|
|
258
|
+
children: /* @__PURE__ */ e.jsx(
|
|
259
|
+
i.div,
|
|
235
260
|
{
|
|
236
261
|
animate: { rotate: t ? 180 : 0 },
|
|
237
262
|
transition: { duration: 0.3, ease: "easeOut" },
|
|
238
263
|
className: "relative button-select-crevron",
|
|
239
|
-
children: /* @__PURE__ */ e(
|
|
264
|
+
children: /* @__PURE__ */ e.jsx(i.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(m, { size: 20, className: "text-prometeo-neutral " }) })
|
|
240
265
|
}
|
|
241
266
|
)
|
|
242
267
|
}
|
|
243
|
-
),
|
|
244
|
-
Menu:
|
|
245
|
-
Image:
|
|
246
|
-
Content:
|
|
247
|
-
Separator:
|
|
248
|
-
Options:
|
|
268
|
+
), s = Object.assign(h, {
|
|
269
|
+
Menu: p,
|
|
270
|
+
Image: j,
|
|
271
|
+
Content: g,
|
|
272
|
+
Separator: v,
|
|
273
|
+
Options: y
|
|
249
274
|
});
|
|
250
275
|
export {
|
|
251
|
-
|
|
276
|
+
s as C,
|
|
277
|
+
x as a
|
|
252
278
|
};
|