prometeo-design-system 2.8.6 → 2.8.8
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.d.ts +16 -12
- package/dist/index.js +127 -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
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "../../lib/cn.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { forwardRef as p, useState as h, useRef as x, useEffect as v } from "react";
|
|
5
|
+
const C = p((t, i) => {
|
|
6
|
+
const [s, m] = h(t?.currentTabName || t.tabs[0].name), r = x(null), { tabs: l = [], className: o, activeColor: c = "var(--neutral-900)" } = t;
|
|
7
|
+
v(() => {
|
|
8
|
+
r.current?.style.setProperty("--tab-bg", c);
|
|
9
|
+
}, [c]);
|
|
10
|
+
const u = l.find((e) => e.name === (t?.currentTabName || s));
|
|
11
|
+
return /* @__PURE__ */ a(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
ref: i,
|
|
15
|
+
className: n(
|
|
16
|
+
"flex flex-col gap-2",
|
|
17
|
+
"bg-neutral-strong-default",
|
|
18
|
+
"h-full w-14 max-w-14 pl-[6px] py-6",
|
|
19
|
+
" border-r border-neutral-default-default",
|
|
20
|
+
o
|
|
21
|
+
),
|
|
22
|
+
children: l.map(
|
|
23
|
+
(e) => {
|
|
24
|
+
const d = e.name === u?.name, f = typeof e.thumbnail == "string" ? /* @__PURE__ */ a("img", { src: e.thumbnail, alt: e.description, className: "aspect-square object-contain" }) : e.thumbnail, b = () => {
|
|
25
|
+
e.disabled || (m(e.name), e.onClick && e.onClick(e.name));
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ a(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: n(
|
|
31
|
+
"bg-[(--tab-bg)]",
|
|
32
|
+
"h-12 w-[50px] z-20",
|
|
33
|
+
"flex items-center pl-[6px] ",
|
|
34
|
+
"rounded-l-[8px]",
|
|
35
|
+
"tabswitch-element relative",
|
|
36
|
+
d && "active"
|
|
37
|
+
),
|
|
38
|
+
onClick: b,
|
|
39
|
+
ref: r,
|
|
40
|
+
children: /* @__PURE__ */ a("div", { className: n(
|
|
41
|
+
"size-8 rounded-[4px]",
|
|
42
|
+
"grid place-items-center",
|
|
43
|
+
"tab-thumbnail-icon",
|
|
44
|
+
"bg-transparent text-neutral-default-default",
|
|
45
|
+
e?.className
|
|
46
|
+
), children: f })
|
|
47
|
+
},
|
|
48
|
+
e.name
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
C as default
|
|
57
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../lib/cn.js";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
const
|
|
4
|
+
const s = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r("div", { className: "w-full", children: /* @__PURE__ */ r(
|
|
5
5
|
"table",
|
|
6
6
|
{
|
|
7
7
|
ref: a,
|
|
@@ -12,8 +12,8 @@ const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div
|
|
|
12
12
|
...t
|
|
13
13
|
}
|
|
14
14
|
) }));
|
|
15
|
-
|
|
16
|
-
const
|
|
15
|
+
s.displayName = "Table";
|
|
16
|
+
const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
17
17
|
"thead",
|
|
18
18
|
{
|
|
19
19
|
ref: a,
|
|
@@ -21,8 +21,8 @@ const f = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
|
21
21
|
...t
|
|
22
22
|
}
|
|
23
23
|
));
|
|
24
|
-
|
|
25
|
-
const
|
|
24
|
+
n.displayName = "TableHeader";
|
|
25
|
+
const f = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
26
26
|
"tbody",
|
|
27
27
|
{
|
|
28
28
|
ref: a,
|
|
@@ -30,8 +30,8 @@ const i = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
|
30
30
|
...t
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
f.displayName = "TableBody";
|
|
34
|
+
const i = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
35
35
|
"tfoot",
|
|
36
36
|
{
|
|
37
37
|
ref: a,
|
|
@@ -42,9 +42,14 @@ const b = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
|
42
42
|
...t
|
|
43
43
|
}
|
|
44
44
|
));
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
|
|
45
|
+
i.displayName = "TableFooter";
|
|
46
|
+
const b = o.forwardRef(({ className: e, isSelected: t, ...a }, d) => /* @__PURE__ */ r(
|
|
47
|
+
"tr",
|
|
48
|
+
{
|
|
49
|
+
ref: d,
|
|
50
|
+
className: l(
|
|
51
|
+
"border-b border-neutral-default-default relative text-center text-md text-semibold transition-colors hover:bg-neutral-medium-default/50 text-neutral-default-default",
|
|
52
|
+
`
|
|
48
53
|
after:content-["<span id='selected-span'></span>"]
|
|
49
54
|
after:absolute
|
|
50
55
|
after:top-1/2
|
|
@@ -61,22 +66,14 @@ const c = o.forwardRef(({ className: e, isSelected: t, ...a }, d) => {
|
|
|
61
66
|
transition-all
|
|
62
67
|
duration-300
|
|
63
68
|
ease-in-out
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
e
|
|
73
|
-
),
|
|
74
|
-
...a
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
});
|
|
78
|
-
c.displayName = "TableRow";
|
|
79
|
-
const m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
69
|
+
`,
|
|
70
|
+
e
|
|
71
|
+
),
|
|
72
|
+
...a
|
|
73
|
+
}
|
|
74
|
+
));
|
|
75
|
+
b.displayName = "TableRow";
|
|
76
|
+
const c = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
80
77
|
"th",
|
|
81
78
|
{
|
|
82
79
|
ref: a,
|
|
@@ -87,8 +84,8 @@ const m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
|
87
84
|
...t
|
|
88
85
|
}
|
|
89
86
|
));
|
|
90
|
-
|
|
91
|
-
const
|
|
87
|
+
c.displayName = "TableHead";
|
|
88
|
+
const m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
92
89
|
"td",
|
|
93
90
|
{
|
|
94
91
|
ref: a,
|
|
@@ -99,8 +96,8 @@ const u = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
|
99
96
|
...t
|
|
100
97
|
}
|
|
101
98
|
));
|
|
102
|
-
|
|
103
|
-
const
|
|
99
|
+
m.displayName = "TableCell";
|
|
100
|
+
const u = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
104
101
|
"caption",
|
|
105
102
|
{
|
|
106
103
|
ref: a,
|
|
@@ -108,14 +105,14 @@ const p = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
|
108
105
|
...t
|
|
109
106
|
}
|
|
110
107
|
));
|
|
111
|
-
|
|
108
|
+
u.displayName = "TableCaption";
|
|
112
109
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
110
|
+
s as Table,
|
|
111
|
+
f as TableBody,
|
|
112
|
+
u as TableCaption,
|
|
113
|
+
m as TableCell,
|
|
114
|
+
i as TableFooter,
|
|
115
|
+
c as TableHead,
|
|
116
|
+
n as TableHeader,
|
|
117
|
+
b as TableRow
|
|
121
118
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as j } from "react/jsx-runtime";
|
|
2
|
+
import { cn as k } from "../../lib/cn.js";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
const
|
|
4
|
+
import { forwardRef as z } from "react";
|
|
5
|
+
const A = z(
|
|
6
6
|
({
|
|
7
7
|
className: f,
|
|
8
8
|
autoResize: r = !1,
|
|
@@ -10,57 +10,55 @@ const M = E(
|
|
|
10
10
|
minRows: l = 3,
|
|
11
11
|
maxRows: n,
|
|
12
12
|
placeholder: d,
|
|
13
|
-
onChange:
|
|
14
|
-
value:
|
|
13
|
+
onChange: h,
|
|
14
|
+
value: m,
|
|
15
15
|
rows: p,
|
|
16
|
-
disabled:
|
|
17
|
-
...
|
|
16
|
+
disabled: g = !1,
|
|
17
|
+
...x
|
|
18
18
|
// ← Para pasar las props nativas
|
|
19
19
|
}, t) => {
|
|
20
|
-
const
|
|
20
|
+
const i = a.useRef(null), b = a.useCallback(
|
|
21
21
|
(e) => {
|
|
22
|
-
|
|
22
|
+
i.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
23
23
|
},
|
|
24
24
|
[t]
|
|
25
25
|
), s = a.useCallback(() => {
|
|
26
|
-
const e =
|
|
26
|
+
const e = i.current;
|
|
27
27
|
if (!e || !r) return;
|
|
28
28
|
e.style.height = "auto";
|
|
29
|
-
const
|
|
30
|
-
let u = Math.max(
|
|
29
|
+
const H = e.scrollHeight, o = Number.parseInt(getComputedStyle(e).lineHeight) || 20, C = l * o + 16;
|
|
30
|
+
let u = Math.max(H, C);
|
|
31
31
|
if (n) {
|
|
32
|
-
const N = n *
|
|
32
|
+
const N = n * o + 16;
|
|
33
33
|
u = Math.min(u, N);
|
|
34
34
|
}
|
|
35
35
|
e.style.height = `${u}px`;
|
|
36
36
|
}, [r, l, n]), y = (e) => {
|
|
37
|
-
|
|
37
|
+
h?.(e), s();
|
|
38
38
|
};
|
|
39
|
-
a.useEffect(() => {
|
|
39
|
+
return a.useEffect(() => {
|
|
40
40
|
s();
|
|
41
|
-
}, [s])
|
|
42
|
-
const H = () => c ? r ? "resize-x" : "resize" : "resize-none";
|
|
43
|
-
return /* @__PURE__ */ k.jsx(
|
|
41
|
+
}, [s]), /* @__PURE__ */ j(
|
|
44
42
|
"textarea",
|
|
45
43
|
{
|
|
46
44
|
ref: b,
|
|
47
45
|
"data-slot": "textarea",
|
|
48
|
-
className:
|
|
46
|
+
className: k(
|
|
49
47
|
"placeholder:text-neutral-medium-default text-neutral-default-default appearance-none border border-neutral-default-default focus:border-primary-default-default flex w-full rounded-md px-3 py-2 outline-none disabled:cursor-default disabled:opacity-50 md:text-sm",
|
|
50
|
-
|
|
48
|
+
c ? r ? "resize-x" : "resize" : "resize-none",
|
|
51
49
|
f
|
|
52
50
|
),
|
|
53
51
|
onChange: y,
|
|
54
52
|
rows: r ? l : p,
|
|
55
|
-
value:
|
|
53
|
+
value: m,
|
|
56
54
|
placeholder: d,
|
|
57
|
-
disabled:
|
|
58
|
-
...
|
|
55
|
+
disabled: g,
|
|
56
|
+
...x
|
|
59
57
|
}
|
|
60
58
|
);
|
|
61
59
|
}
|
|
62
60
|
);
|
|
63
|
-
|
|
61
|
+
A.displayName = "TextArea";
|
|
64
62
|
export {
|
|
65
|
-
|
|
63
|
+
A as default
|
|
66
64
|
};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { toast as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as x, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import C from "react";
|
|
3
|
+
import { toast as m } from "sonner";
|
|
4
|
+
import { cn as o } from "../../lib/cn.js";
|
|
5
|
+
import { Info as u, Error as f, Cancel as b, CheckCircle as h, Close as v } from "../../Icons/Icons.js";
|
|
6
|
+
import g from "../Button/Button.js";
|
|
7
|
+
const p = {
|
|
8
8
|
dark: {
|
|
9
9
|
success: {
|
|
10
10
|
container: "border-b-[2px] border-success-default-default",
|
|
11
11
|
iconClass: "text-success-medium-default",
|
|
12
|
-
icon:
|
|
12
|
+
icon: h
|
|
13
13
|
},
|
|
14
14
|
error: {
|
|
15
15
|
container: "border-b-[2px] border-error-default-default",
|
|
16
16
|
iconClass: "text-error-medium-default",
|
|
17
|
-
icon:
|
|
17
|
+
icon: b
|
|
18
18
|
},
|
|
19
19
|
warning: {
|
|
20
20
|
container: "border-b-[2px] border-warning-default-default",
|
|
21
21
|
iconClass: "text-warning-medium-default",
|
|
22
|
-
icon:
|
|
22
|
+
icon: f
|
|
23
23
|
},
|
|
24
24
|
info: {
|
|
25
25
|
container: " border-b-[2px] border-primary-default-default",
|
|
26
26
|
iconClass: "text-primary-default-default",
|
|
27
|
-
icon:
|
|
27
|
+
icon: u
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
light: {
|
|
31
31
|
success: {
|
|
32
32
|
container: "",
|
|
33
33
|
iconClass: "text-success-default-pressed",
|
|
34
|
-
icon:
|
|
34
|
+
icon: h
|
|
35
35
|
},
|
|
36
36
|
error: {
|
|
37
37
|
container: "",
|
|
38
38
|
iconClass: "text-error-medium-pressed",
|
|
39
|
-
icon:
|
|
39
|
+
icon: b
|
|
40
40
|
},
|
|
41
41
|
warning: {
|
|
42
42
|
container: "",
|
|
43
43
|
iconClass: "text-warning-medium-pressed",
|
|
44
|
-
icon:
|
|
44
|
+
icon: f
|
|
45
45
|
},
|
|
46
46
|
info: {
|
|
47
47
|
container: "",
|
|
48
48
|
iconClass: "text-primary-default-pressed",
|
|
49
|
-
icon:
|
|
49
|
+
icon: u
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}, i = {
|
|
@@ -62,84 +62,84 @@ const x = {
|
|
|
62
62
|
description: "text-neutral-medium-focused",
|
|
63
63
|
shadow: "0px 0px 2px 0px rgba(0, 0, 0, 0.35),8px 8px 20px 0px rgba(0, 0, 0, 0.3),0px 0px 15px 0px rgba(0, 0, 0, 0.2),0px 0px 20px 0px rgba(21, 21, 21, 0.3) inset,6px 0px 100px 0px rgba(0, 0, 0, 0.05) inset"
|
|
64
64
|
}
|
|
65
|
-
},
|
|
66
|
-
const { title:
|
|
67
|
-
return /* @__PURE__ */
|
|
65
|
+
}, y = (l) => {
|
|
66
|
+
const { title: a, description: s, button: r, id: n, icon: c, variant: d = "info", colorMode: e = "dark", showClose: w = !1 } = l;
|
|
67
|
+
return /* @__PURE__ */ x(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
style: {
|
|
71
|
-
boxShadow: i[
|
|
71
|
+
boxShadow: i[e].shadow
|
|
72
72
|
},
|
|
73
|
-
className:
|
|
73
|
+
className: o(
|
|
74
74
|
"flex p-3 pb-4 md:w-[485px] md:max-w-[485px] md:min-w-[485px] md:h-[68px] md:max-h-[68px] rounded-lg gap-2",
|
|
75
75
|
"w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px]",
|
|
76
|
-
i[
|
|
77
|
-
|
|
76
|
+
i[e].container,
|
|
77
|
+
p[e][d].container
|
|
78
78
|
),
|
|
79
79
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ x(
|
|
81
81
|
"div",
|
|
82
82
|
{
|
|
83
83
|
className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
|
|
85
|
+
/* @__PURE__ */ t("div", { className: "f", style: { color: "inherit" }, children: C.createElement(c || p[e][d].icon, { size: 24, className: p[e][d].iconClass }) }),
|
|
86
|
+
/* @__PURE__ */ x("div", { className: "flex-1 flex flex-col gap-1", children: [
|
|
87
|
+
/* @__PURE__ */ t("p", { className: o("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[e].title), children: a }),
|
|
88
|
+
s && /* @__PURE__ */ t("p", { className: o("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", i[e].description), children: s })
|
|
89
89
|
] })
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
r?.label && /* @__PURE__ */ t("div", { className: "shrink-0", children: /* @__PURE__ */ t(
|
|
94
|
+
g,
|
|
95
95
|
{
|
|
96
|
-
label:
|
|
96
|
+
label: r?.label,
|
|
97
97
|
onClick: () => {
|
|
98
|
-
|
|
98
|
+
r?.onClick(), m.dismiss(n);
|
|
99
99
|
},
|
|
100
100
|
size: "small",
|
|
101
101
|
color: "secondary"
|
|
102
102
|
}
|
|
103
103
|
) }),
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
w && /* @__PURE__ */ t("div", { className: "shrink-0", children: /* @__PURE__ */ t(
|
|
105
|
+
g,
|
|
106
106
|
{
|
|
107
107
|
onClick: () => {
|
|
108
|
-
|
|
108
|
+
m.dismiss(n);
|
|
109
109
|
},
|
|
110
110
|
label: "",
|
|
111
111
|
size: "small",
|
|
112
112
|
color: "secondary",
|
|
113
|
-
icon: /* @__PURE__ */
|
|
113
|
+
icon: /* @__PURE__ */ t(v, { className: o(e === "light" ? "text-neutral-medium-focused " : "") }),
|
|
114
114
|
variant: "text",
|
|
115
115
|
animate: !1,
|
|
116
|
-
className:
|
|
116
|
+
className: o(e === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
|
|
117
117
|
}
|
|
118
118
|
) })
|
|
119
119
|
]
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
};
|
|
123
|
-
function
|
|
124
|
-
const { duration:
|
|
125
|
-
return
|
|
126
|
-
|
|
123
|
+
function E(l, a) {
|
|
124
|
+
const { duration: s = 2500, showClose: r = !1, colorMode: n = "dark" } = a || {};
|
|
125
|
+
return m.custom((c) => /* @__PURE__ */ t(
|
|
126
|
+
y,
|
|
127
127
|
{
|
|
128
128
|
id: c,
|
|
129
|
-
variant:
|
|
129
|
+
variant: a?.variant || "success",
|
|
130
130
|
title: l,
|
|
131
|
-
description:
|
|
132
|
-
icon:
|
|
133
|
-
button:
|
|
134
|
-
showClose:
|
|
131
|
+
description: a?.description,
|
|
132
|
+
icon: a?.icon,
|
|
133
|
+
button: a?.button,
|
|
134
|
+
showClose: r,
|
|
135
135
|
colorMode: n
|
|
136
136
|
}
|
|
137
137
|
), {
|
|
138
|
-
duration:
|
|
138
|
+
duration: s,
|
|
139
139
|
unstyled: !0
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
export {
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
y as default,
|
|
144
|
+
E as toastpyrion
|
|
145
145
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Close as p } from "../../Icons/Icons.js";
|
|
3
|
+
import { AnimatePresence as b, motion as i } from "framer-motion";
|
|
4
|
+
import { useState as g, cloneElement as x } from "react";
|
|
5
|
+
const T = ({
|
|
6
|
+
title: r,
|
|
7
|
+
trigger: o,
|
|
8
|
+
children: c,
|
|
9
|
+
position: t = "top",
|
|
10
|
+
component: m
|
|
11
|
+
}) => {
|
|
12
|
+
const [a, l] = g(!1), u = () => l(!0), s = () => l(!1), d = o === "hover" ? {
|
|
13
|
+
onMouseEnter: u,
|
|
14
|
+
onMouseLeave: s
|
|
15
|
+
} : {
|
|
16
|
+
onClick: () => l(!a)
|
|
17
|
+
}, h = {
|
|
18
|
+
top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
|
|
19
|
+
bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
|
|
20
|
+
left: "right-full top-1/2 -translate-y-1/2 mr-2",
|
|
21
|
+
right: "left-full top-1/2 -translate-y-1/2 ml-2"
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ n("div", { className: "relative inline-block", children: [
|
|
24
|
+
x(c, d),
|
|
25
|
+
/* @__PURE__ */ e(b, { children: a && /* @__PURE__ */ e(
|
|
26
|
+
i.div,
|
|
27
|
+
{
|
|
28
|
+
initial: { opacity: 0, scale: 0.8, y: t === "top" ? 10 : -10 },
|
|
29
|
+
animate: {
|
|
30
|
+
opacity: 1,
|
|
31
|
+
scale: 1,
|
|
32
|
+
y: 0
|
|
33
|
+
},
|
|
34
|
+
exit: { opacity: 0, scale: 0.8, y: t === "top" ? 10 : -10 },
|
|
35
|
+
transition: {
|
|
36
|
+
duration: 0.15,
|
|
37
|
+
ease: "easeOut"
|
|
38
|
+
},
|
|
39
|
+
className: `absolute z-50 ${h[t]}`,
|
|
40
|
+
children: /* @__PURE__ */ n("div", { className: "min-w-80 max-w-80 min-h-36 h-fit text-white rounded-lg shadow-lg p-3 bg-neutral-medium-default", children: [
|
|
41
|
+
/* @__PURE__ */ e("h3", { className: "font-bold text-sm mb-1 text-neutral-strong-default", children: r }),
|
|
42
|
+
m,
|
|
43
|
+
o === "click" && /* @__PURE__ */ e(
|
|
44
|
+
i.button,
|
|
45
|
+
{
|
|
46
|
+
onClick: (f) => {
|
|
47
|
+
f.stopPropagation(), s();
|
|
48
|
+
},
|
|
49
|
+
className: "absolute cursor-pointer -top-2 -right-2 w-6 h-6 bg-neutral-strong-default hover:bg-neutral-medium-default rounded-full flex items-center justify-center transition-colors z-10",
|
|
50
|
+
whileHover: { scale: 1.1 },
|
|
51
|
+
whileTap: { scale: 0.95 },
|
|
52
|
+
children: /* @__PURE__ */ e(p, { size: 14, className: "text-white" })
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
56
|
+
}
|
|
57
|
+
) })
|
|
58
|
+
] });
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
T as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useRef as o, useEffect as c } from "react";
|
|
2
|
+
const d = (r, u = !0) => {
|
|
3
|
+
const t = o(null);
|
|
4
|
+
return c(() => {
|
|
5
|
+
if (!u) return;
|
|
6
|
+
const e = (n) => {
|
|
7
|
+
t.current && !t.current.contains(n.target) && r();
|
|
8
|
+
};
|
|
9
|
+
return document.addEventListener("mousedown", e, {
|
|
10
|
+
capture: !0
|
|
11
|
+
}), document.addEventListener("touchstart", e, {
|
|
12
|
+
capture: !0
|
|
13
|
+
}), () => {
|
|
14
|
+
document.removeEventListener("mousedown", e, {
|
|
15
|
+
capture: !0
|
|
16
|
+
}), document.removeEventListener("touchstart", e, {
|
|
17
|
+
capture: !0
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
}, [r, u]), t;
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
d as useClickOutside
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useRef as o, useLayoutEffect as u } from "react";
|
|
2
|
+
const c = (e) => {
|
|
3
|
+
let t = e;
|
|
4
|
+
for (; t && t !== document.body; ) {
|
|
5
|
+
const n = window.getComputedStyle(t).backgroundColor;
|
|
6
|
+
if (n && n !== "transparent" && n !== "rgba(0, 0, 0, 0)")
|
|
7
|
+
return n;
|
|
8
|
+
t = t.parentElement;
|
|
9
|
+
}
|
|
10
|
+
const r = window.getComputedStyle(document.body).backgroundColor;
|
|
11
|
+
return r && r !== "transparent" && r !== "rgba(0, 0, 0, 0)" ? r : "rgb(255, 255, 255)";
|
|
12
|
+
};
|
|
13
|
+
function d() {
|
|
14
|
+
const e = o(null);
|
|
15
|
+
return u(() => {
|
|
16
|
+
if (!e.current || !e.current.parentElement) return;
|
|
17
|
+
const t = c(e.current.parentElement);
|
|
18
|
+
e.current.style.backgroundColor = t;
|
|
19
|
+
}, []), {
|
|
20
|
+
ref: e
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
d as useLabelBackground
|
|
25
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -40,13 +40,6 @@ export { NavbarCollapseButton } from './components/Sidebar/components/collapse-b
|
|
|
40
40
|
export { CompanyLogo } from './components/Sidebar/components/company-logo';
|
|
41
41
|
export { NavbarLinks } from './components/Sidebar/components/nav-links';
|
|
42
42
|
export { default as OtpInput } from './components/OtpInput/OtpInput';
|
|
43
|
-
export { useDialogControl } from './components/Dialog/useDialogControl';
|
|
44
|
-
export { useFileDropzone } from './components/DropZone/useFileDropzone';
|
|
45
|
-
export { SidebarProvider as SidebarRefProvider, useSidebarContext, } from './components/Sidebar/context/SidebarContext';
|
|
46
|
-
export { SidebarProvider } from './components/Sidebar/hooks/SidebarProvider';
|
|
47
|
-
export { useSidebar } from './components/Sidebar/hooks/useSidebarHook';
|
|
48
|
-
export { useClickOutside } from './hooks/useClickOutside';
|
|
49
|
-
export { useIsMobile } from './hooks/useDevice';
|
|
50
43
|
export type { ButtonProps } from './components/Button/Button';
|
|
51
44
|
export type { ISessionLocalStorage } from './components/CardProfile/CardProfile';
|
|
52
45
|
export type { CheckBoxProps } from './components/CheckBox/CheckBox';
|
|
@@ -68,7 +61,6 @@ export type { PaginationProps } from './components/Pagination/Pagination';
|
|
|
68
61
|
export type { ProfilePictureUploadProps } from './components/ProfilePictureUpload/ProfilePictureUpload';
|
|
69
62
|
export type { Step, StepsProps } from './components/Steps/Steps';
|
|
70
63
|
export type { SelectProps } from './components/Select/Select';
|
|
71
|
-
export type { DialogHandle } from './components/Dialog/Dialog';
|
|
72
64
|
export { DropZone } from './components/DropZone/DropZone';
|
|
73
65
|
export type { PyrionToastProps as ToasterPrometeo } from './components/Toaster/Toaster';
|
|
74
66
|
export type { LayoutGenericProps } from './components/Layout/LayoutGeneric';
|
|
@@ -82,10 +74,6 @@ export type { DatePickerProps } from './components/DatePicker/DatePicker';
|
|
|
82
74
|
export type { ImageProps } from './components/Image/Image';
|
|
83
75
|
export type { ImageGalleryProps } from './components/Image/ImageGallery';
|
|
84
76
|
export type { ImageGalleryHandle } from './components/Image/ImageGallery';
|
|
85
|
-
export type { DrawerMobileProps } from './components/Drawer/DrawerMobile';
|
|
86
|
-
export type { DrawerDesktopProps } from './components/Drawer/DrawerDesktop';
|
|
87
|
-
export type { DrawerMobileHandle } from './components/Drawer/DrawerMobile';
|
|
88
|
-
export type { DrawerDesktopHandle } from './components/Drawer/DrawerDesktop';
|
|
89
77
|
export type { CustomSelectionDisplayProps } from './components/Select/Select';
|
|
90
78
|
export type { CustomSelectOptionRendererProps } from './components/Select/Select';
|
|
91
79
|
export type { SelectControlsHandler } from './components/Select/Select';
|
|
@@ -94,3 +82,19 @@ export type { BaseSelectSearchProps as SelectSearchProps } from './components/Se
|
|
|
94
82
|
export type { FAButtonProps } from './components/FAB/FAButton';
|
|
95
83
|
export type { RadioButtonProps } from './components/RadioButton/RadioButton';
|
|
96
84
|
export { Icons } from './Icons/Icons';
|
|
85
|
+
export { default as DrawerDesktop } from './components/Drawer/DrawerDesktop';
|
|
86
|
+
export { default as DrawerMobile } from './components/Drawer/DrawerMobile';
|
|
87
|
+
export type { DrawerMobileProps } from './components/Drawer/DrawerMobile';
|
|
88
|
+
export type { DrawerDesktopProps } from './components/Drawer/DrawerDesktop';
|
|
89
|
+
export type { DrawerMobileHandle } from './components/Drawer/DrawerMobile';
|
|
90
|
+
export type { DrawerDesktopHandle } from './components/Drawer/DrawerDesktop';
|
|
91
|
+
export type { DialogHandle } from './components/Dialog/Dialog';
|
|
92
|
+
export { useDrawerMobile } from './components/Drawer/useDrawerMobile';
|
|
93
|
+
export { useDrawerDesktop } from './components/Drawer/useDrawerDesktop';
|
|
94
|
+
export { SidebarProvider } from './components/Sidebar/hooks/SidebarProvider';
|
|
95
|
+
export { useSidebar } from './components/Sidebar/hooks/useSidebarHook';
|
|
96
|
+
export { useClickOutside } from './hooks/useClickOutside';
|
|
97
|
+
export { useIsMobile } from './hooks/useDevice';
|
|
98
|
+
export { useDialogControl } from './components/Dialog/useDialogControl';
|
|
99
|
+
export { useFileDropzone } from './components/DropZone/useFileDropzone';
|
|
100
|
+
export { SidebarProvider as SidebarRefProvider, useSidebarContext, } from './components/Sidebar/context/SidebarContext';
|