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,223 @@
|
|
|
1
|
+
import { jsxs as y, jsx as e, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { memo as R, useRef as g, useEffect as J, useCallback as u } from "react";
|
|
3
|
+
import { cn as C } from "../../lib/cn.js";
|
|
4
|
+
import X from "../Button/Button.js";
|
|
5
|
+
import { Close as Q, CrevronLeft as U, CrevronRight as tt } from "../../Icons/Icons.js";
|
|
6
|
+
const et = R(({ images: a, lightboxClassName: s, closeLightbox: r, showThumbnails: x, thumbnailsClassName: d, currentIndex: c, goToNext: n, goToPrevious: o, goToIndex: E }) => {
|
|
7
|
+
const f = g(null), k = g(null), b = g(null), h = g({
|
|
8
|
+
scale: 1,
|
|
9
|
+
translateX: 0,
|
|
10
|
+
translateY: 0
|
|
11
|
+
}), l = g({
|
|
12
|
+
startX: 0,
|
|
13
|
+
startY: 0,
|
|
14
|
+
isDragging: !1,
|
|
15
|
+
distanceX: 0,
|
|
16
|
+
distanceY: 0
|
|
17
|
+
});
|
|
18
|
+
J(() => {
|
|
19
|
+
b.current && b.current.focus();
|
|
20
|
+
}, []);
|
|
21
|
+
const D = u((t) => {
|
|
22
|
+
t.preventDefault(), t.stopPropagation(), t.key === "Escape" ? r() : t.key === "ArrowLeft" ? o() : t.key === "ArrowRight" && n();
|
|
23
|
+
}, [r, o, n]), O = u((t) => {
|
|
24
|
+
l.current = { startX: t.touches[0].clientX, startY: t.touches[0].clientY, isDragging: !0, distanceX: 0, distanceY: 0 };
|
|
25
|
+
}, []), A = u((t) => {
|
|
26
|
+
const m = t.touches[0];
|
|
27
|
+
l.current = { ...l.current, isDragging: !0, distanceX: m.clientX - l.current.startX, distanceY: m.clientY - l.current.startY };
|
|
28
|
+
}, []), B = u(() => {
|
|
29
|
+
l.current = { ...l.current, startX: 0, startY: 0, isDragging: !1 }, Math.abs(l.current.distanceX) > Math.abs(l.current.distanceY) && (l.current.distanceX < 0 ? n() : o());
|
|
30
|
+
}, [n, o]), z = u(() => {
|
|
31
|
+
const t = f.current;
|
|
32
|
+
if (!t) return;
|
|
33
|
+
const { scale: m, translateX: p, translateY: v } = h.current;
|
|
34
|
+
t.style.transform = `scale(${m}) translate(${p}px, ${v}px)`, t.style.transformOrigin = "center center", t.style.transition = "transform 0.1s ease-out";
|
|
35
|
+
}, []), Y = u(() => {
|
|
36
|
+
h.current = { scale: 1, translateX: 0, translateY: 0 }, f.current && (f.current.style.transform = "scale(1) translate(0px, 0px)", f.current.style.transformOrigin = "center center");
|
|
37
|
+
}, []), I = u((t) => {
|
|
38
|
+
const m = f.current, p = k.current;
|
|
39
|
+
if (!m || !p) return;
|
|
40
|
+
if (t.shiftKey) {
|
|
41
|
+
t.deltaY < 0 ? n() : t.deltaY > 0 && o();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const v = 2e-3, N = 1, L = 8, W = -t.deltaY * v, S = h.current.scale;
|
|
45
|
+
let i = S + W;
|
|
46
|
+
if (i = Math.max(N, Math.min(L, i)), i === N) {
|
|
47
|
+
Y();
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const w = p.getBoundingClientRect(), F = t.clientX - w.left, K = t.clientY - w.top, _ = w.width / 2, $ = w.height / 2, q = F - _, H = K - $, M = i / S, P = h.current.translateX, T = h.current.translateY, Z = P - q * (M - 1) / i, V = T - H * (M - 1) / i;
|
|
51
|
+
h.current = {
|
|
52
|
+
scale: i,
|
|
53
|
+
translateX: Z,
|
|
54
|
+
translateY: V
|
|
55
|
+
}, z();
|
|
56
|
+
}, [n, o, z, Y]);
|
|
57
|
+
return a.length === 0 ? null : /* @__PURE__ */ y(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
ref: b,
|
|
61
|
+
className: C("fixed inset-0 z-50 bg-black/90 flex items-center justify-center lg:px-16", s),
|
|
62
|
+
onClick: r,
|
|
63
|
+
onKeyDown: D,
|
|
64
|
+
onTouchStart: O,
|
|
65
|
+
onTouchMove: A,
|
|
66
|
+
onTouchEnd: B,
|
|
67
|
+
tabIndex: 0,
|
|
68
|
+
role: "dialog",
|
|
69
|
+
"aria-modal": "true",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ e("div", { className: "absolute top-4 right-4 z-110", children: /* @__PURE__ */ e(
|
|
72
|
+
X,
|
|
73
|
+
{
|
|
74
|
+
variant: "text",
|
|
75
|
+
color: "secondary",
|
|
76
|
+
size: "small",
|
|
77
|
+
onClick: r,
|
|
78
|
+
className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
|
|
79
|
+
"aria-label": "Close gallery",
|
|
80
|
+
children: /* @__PURE__ */ e(Q, { size: 24 })
|
|
81
|
+
}
|
|
82
|
+
) }),
|
|
83
|
+
a.length > 1 && /* @__PURE__ */ y(G, { children: [
|
|
84
|
+
/* @__PURE__ */ e(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
className: "absolute left-0 lg:h-full items-center flex justify-center w-16 z-100 cursor-w-resize",
|
|
88
|
+
onClick: (t) => {
|
|
89
|
+
t.stopPropagation(), o();
|
|
90
|
+
},
|
|
91
|
+
children: /* @__PURE__ */ e(
|
|
92
|
+
X,
|
|
93
|
+
{
|
|
94
|
+
variant: "text",
|
|
95
|
+
color: "secondary",
|
|
96
|
+
size: "small",
|
|
97
|
+
onClick: (t) => {
|
|
98
|
+
t.stopPropagation(), o();
|
|
99
|
+
},
|
|
100
|
+
className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
|
|
101
|
+
"aria-label": "Previous image",
|
|
102
|
+
children: /* @__PURE__ */ e(U, { size: 24 })
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: "absolute right-0 lg:h-full items-center flex justify-center w-16 z-100 cursor-e-resize",
|
|
111
|
+
onClick: (t) => {
|
|
112
|
+
t.stopPropagation(), n();
|
|
113
|
+
},
|
|
114
|
+
children: /* @__PURE__ */ e(
|
|
115
|
+
X,
|
|
116
|
+
{
|
|
117
|
+
variant: "text",
|
|
118
|
+
color: "secondary",
|
|
119
|
+
size: "small",
|
|
120
|
+
onClick: (t) => {
|
|
121
|
+
t.stopPropagation(), n();
|
|
122
|
+
},
|
|
123
|
+
className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
|
|
124
|
+
"aria-label": "Next image",
|
|
125
|
+
children: /* @__PURE__ */ e(tt, { size: 24 })
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ e(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
ref: k,
|
|
135
|
+
onClick: (t) => t.stopPropagation(),
|
|
136
|
+
className: "relative max-w-[90vw] max-h-[98vh] mx-auto flex flex-col w-max lg:h-full h-max",
|
|
137
|
+
onWheel: I,
|
|
138
|
+
children: /* @__PURE__ */ e(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
className: "max-h-[98vh] relative overflow-hidden w-full h-full",
|
|
142
|
+
style: {
|
|
143
|
+
animation: "galleryFadeIn 0.6s ease-in-out"
|
|
144
|
+
},
|
|
145
|
+
ref: f,
|
|
146
|
+
children: /* @__PURE__ */ e(
|
|
147
|
+
"img",
|
|
148
|
+
{
|
|
149
|
+
src: a[c].src,
|
|
150
|
+
alt: a[c].alt,
|
|
151
|
+
className: C(
|
|
152
|
+
" w-full h-full object-contain select-none",
|
|
153
|
+
"prometeo-lightbox-image"
|
|
154
|
+
),
|
|
155
|
+
onLoad: () => Y()
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
},
|
|
159
|
+
c
|
|
160
|
+
)
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
x && /* @__PURE__ */ e("div", { className: " w-full absolute items-center flex justify-center left-0 right-0 z-100 bottom-0", children: /* @__PURE__ */ e(j, { images: a, currentIndex: c, goToIndex: E, thumbnailsClassName: d }) }),
|
|
164
|
+
a.length > 1 && /* @__PURE__ */ y("div", { className: "absolute bottom-20 left-1/2 transform -translate-x-1/2 text-neutral-default-default prometeo-fonts-label-xlarge px-4 py-2 rounded-full", children: [
|
|
165
|
+
c + 1,
|
|
166
|
+
" / ",
|
|
167
|
+
a.length
|
|
168
|
+
] })
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
);
|
|
172
|
+
});
|
|
173
|
+
et.displayName = "LightBox";
|
|
174
|
+
const at = (a, s) => {
|
|
175
|
+
if (a.currentIndex !== s.currentIndex || a.thumbnailsClassName !== s.thumbnailsClassName || a.images.length !== s.images.length) return !1;
|
|
176
|
+
for (let r = 0; r < a.images.length; r++)
|
|
177
|
+
if (a.images[r].src !== s.images[r].src) return !1;
|
|
178
|
+
return !0;
|
|
179
|
+
}, j = R(({ images: a, currentIndex: s, goToIndex: r, thumbnailsClassName: x }) => /* @__PURE__ */ y(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
className: "flex gap-4 w-max overflow-x-auto overflow-y-visible max-w-full px-16 py-4",
|
|
183
|
+
style: {
|
|
184
|
+
scrollbarWidth: "none",
|
|
185
|
+
msOverflowStyle: "none",
|
|
186
|
+
WebkitOverflowScrolling: "touch"
|
|
187
|
+
},
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ e("style", { children: `
|
|
190
|
+
.flex.gap-4.w-max::-webkit-scrollbar {
|
|
191
|
+
display: none;
|
|
192
|
+
}
|
|
193
|
+
` }),
|
|
194
|
+
a.map((d, c) => /* @__PURE__ */ e(
|
|
195
|
+
"button",
|
|
196
|
+
{
|
|
197
|
+
type: "button",
|
|
198
|
+
onClick: (n) => {
|
|
199
|
+
n.stopPropagation(), r(c);
|
|
200
|
+
},
|
|
201
|
+
className: C(
|
|
202
|
+
"w-16 h-16 aspect-square min-w-16 rounded overflow-hidden transition-all duration-300 hover:scale-125 cursor-pointer",
|
|
203
|
+
x,
|
|
204
|
+
c === s ? "scale-110" : ""
|
|
205
|
+
),
|
|
206
|
+
children: /* @__PURE__ */ e(
|
|
207
|
+
"img",
|
|
208
|
+
{
|
|
209
|
+
src: d.src,
|
|
210
|
+
alt: d.alt,
|
|
211
|
+
className: "w-full h-full object-cover select-none"
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
},
|
|
215
|
+
d.src
|
|
216
|
+
))
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
), at);
|
|
220
|
+
j.displayName = "Thumbnails";
|
|
221
|
+
export {
|
|
222
|
+
et as default
|
|
223
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { I as p } from "./ImageGallery-Ckxg9OIC.js";
|
|
2
1
|
import { useRef as u, useCallback as r } from "react";
|
|
3
2
|
const g = () => {
|
|
4
3
|
const e = u(null), t = r((a) => {
|
|
@@ -18,6 +17,5 @@ const g = () => {
|
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
21
|
-
p as default,
|
|
22
20
|
g as useImageGallery
|
|
23
21
|
};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { jsxs as H, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { EyeVisibility as q, EyeVisibilityOff as V, Close as F } from "../../Icons/Icons.js";
|
|
3
|
+
import { cn as e } from "../../lib/cn.js";
|
|
4
|
+
import { memo as ee, forwardRef as te, useState as re } from "react";
|
|
5
|
+
import oe from "../Spinner/Spinner.js";
|
|
6
|
+
import { useLabelBackground as le } from "../../hooks/useLabelBackground.js";
|
|
7
|
+
import se from "../Shared/HelperComponent.js";
|
|
8
|
+
const m = {
|
|
9
|
+
default: {
|
|
10
|
+
container: "",
|
|
11
|
+
input: e(
|
|
12
|
+
"border-neutral-default-default text-neutral-default-default!",
|
|
13
|
+
"focus:ring-primary-default-default focus:ring-[1px] focus:border-primary-default-default ",
|
|
14
|
+
"hover:border-neutral-strong-default"
|
|
15
|
+
),
|
|
16
|
+
label: e("text-neutral-medium-default"),
|
|
17
|
+
icon: e(
|
|
18
|
+
"text-neutral-medium-default",
|
|
19
|
+
"peer-focus:text-primary-default-default"
|
|
20
|
+
)
|
|
21
|
+
},
|
|
22
|
+
error: {
|
|
23
|
+
container: "",
|
|
24
|
+
input: e(
|
|
25
|
+
"border-error-default-default text-neutral-default-default",
|
|
26
|
+
"focus:border-error-default focus:border-2",
|
|
27
|
+
"focus:ring-0 focus:ring-error-default/20"
|
|
28
|
+
),
|
|
29
|
+
label: e("text-lime-500", "peer-focus:text-error-light"),
|
|
30
|
+
icon: e("text-error-light", "peer-focus:text-error-light")
|
|
31
|
+
},
|
|
32
|
+
success: {
|
|
33
|
+
container: "",
|
|
34
|
+
input: e(
|
|
35
|
+
"border-success-default-default text-neutral-default-default",
|
|
36
|
+
"focus:border-success-default focus:border-2",
|
|
37
|
+
"focus:ring-0 focus:ring-success-default/20"
|
|
38
|
+
),
|
|
39
|
+
label: e("text-success", "peer-focus:text-success-light"),
|
|
40
|
+
icon: e("text-success-light", "peer-focus:text-success-light")
|
|
41
|
+
}
|
|
42
|
+
}, I = te(
|
|
43
|
+
({
|
|
44
|
+
label: x,
|
|
45
|
+
icon: l,
|
|
46
|
+
iconPosition: d = "left",
|
|
47
|
+
onChange: S,
|
|
48
|
+
value: j,
|
|
49
|
+
name: h,
|
|
50
|
+
width: i = "100%",
|
|
51
|
+
height: s,
|
|
52
|
+
variant: a = "default",
|
|
53
|
+
labelVariant: o = "default",
|
|
54
|
+
size: L = "medium",
|
|
55
|
+
disabled: u = !1,
|
|
56
|
+
type: r = "text",
|
|
57
|
+
isFetching: n,
|
|
58
|
+
errorComponent: b,
|
|
59
|
+
helperComponent: g,
|
|
60
|
+
placeholder: P,
|
|
61
|
+
required: N = !1,
|
|
62
|
+
onFocus: k,
|
|
63
|
+
onBlur: C,
|
|
64
|
+
onKeyDown: E,
|
|
65
|
+
onKeyUp: D,
|
|
66
|
+
className: R,
|
|
67
|
+
style: B,
|
|
68
|
+
readOnly: M = !1,
|
|
69
|
+
onClear: z,
|
|
70
|
+
...v
|
|
71
|
+
}, O) => {
|
|
72
|
+
const [w, T] = re(!1), { ref: A } = le();
|
|
73
|
+
let f = L;
|
|
74
|
+
s && (f = "customHeight");
|
|
75
|
+
const c = {
|
|
76
|
+
small: {
|
|
77
|
+
container: "text-sm",
|
|
78
|
+
input: "h-10 px-3 text-[1rem] prometeo-fonts-body-large",
|
|
79
|
+
label: ` prometeo-fonts-label-large
|
|
80
|
+
peer-focus:prometeo-fonts-label-large
|
|
81
|
+
peer-placeholder-shown:${o === "default" ? "prometeo-fonts-body-large" : "prometeo-fonts-label-large"} peer-placeholder-shown:text-neutral-medium-default peer-focus:text-neutral-medium-default `,
|
|
82
|
+
icon: "w-4 h-4 right-3"
|
|
83
|
+
},
|
|
84
|
+
medium: {
|
|
85
|
+
container: "text-base",
|
|
86
|
+
input: "h-12 px-3 prometeo-fonts-body-large",
|
|
87
|
+
label: ` prometeo-fonts-label-large
|
|
88
|
+
peer-focus:prometeo-fonts-label-large
|
|
89
|
+
peer-placeholder-shown:${o === "default" ? "prometeo-fonts-body-large" : "prometeo-fonts-label-large"} peer-placeholder-shown:text-neutral-medium-default text-neutral-medium-default peer-focus:text-neutral-medium-default `,
|
|
90
|
+
icon: "w-5 h-5 right-3"
|
|
91
|
+
},
|
|
92
|
+
large: {
|
|
93
|
+
container: "text-lg",
|
|
94
|
+
input: "h-14 px-3 text-lg border-b border-t-0 border-x-0 rounded-none focus:ring-0 prometeo-fonts-body-xlarge ",
|
|
95
|
+
label: "peer-placeholder-shown:prometeo-fonts-body-xlarge peer-focus:prometeo-fonts-label-large peer-focus:text-neutral-medium-default prometeo-fonts-label-large ",
|
|
96
|
+
icon: "w-6 h-6 right-3"
|
|
97
|
+
},
|
|
98
|
+
customHeight: {
|
|
99
|
+
container: "text-base",
|
|
100
|
+
input: "text-base",
|
|
101
|
+
label: "text-sm peer-focus:text-sm peer-placeholder-shown:text-xs ",
|
|
102
|
+
icon: "w-6 h-6 right-3"
|
|
103
|
+
}
|
|
104
|
+
}, G = () => {
|
|
105
|
+
T(!w);
|
|
106
|
+
}, y = {};
|
|
107
|
+
i && i !== "100%" && (y.width = i), s && (y.height = s);
|
|
108
|
+
const $ = a === "error" && b, J = !$ && g, K = r === "password", Q = () => o === "static" ? "-top-1 -translate-y-full left-0 pl-3" : l ? `${p ? "peer-placeholder-shown:top-[calc(50%-12px)]" : "peer-placeholder-shown:top-1/2"} -translate-y-1/2 peer-focus:top-0 peer-focus:left-3 peer-focus:px-1 peer-focus:ml-0 peer-focus:mr-0 ${d === "left" ? "peer-placeholder-shown:ml-6" : "peer-placeholder-shown:mr-6"}` : `${p ? "peer-placeholder-shown:top-[calc(50%-12px)]" : "peer-placeholder-shown:top-1/2"} -translate-y-1/2 peer-focus:top-0 peer-focus:left-3 peer-focus:px-1`, U = () => s ? c.customHeight.label : c[f].label, W = () => s ? { height: s } : {}, X = () => o === "default" ? x : P || x || "", Y = () => K ? l ? d === "left" ? "pl-10 pr-10" : "pr-16" : "pr-10" : l ? d === "left" ? "pl-10 pr-3" : "pr-10 pl-3" : "", Z = o === "default" && "transition-all duration-200 ease-in-out", p = b || g;
|
|
109
|
+
return /* @__PURE__ */ H(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: e(
|
|
113
|
+
"relative",
|
|
114
|
+
c[f].container,
|
|
115
|
+
!i && "w-full",
|
|
116
|
+
"bg-inherit",
|
|
117
|
+
o === "static" && "mt-2",
|
|
118
|
+
R
|
|
119
|
+
),
|
|
120
|
+
style: { ...B, ...y },
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ t(
|
|
123
|
+
"input",
|
|
124
|
+
{
|
|
125
|
+
id: h,
|
|
126
|
+
name: h,
|
|
127
|
+
ref: O,
|
|
128
|
+
value: j,
|
|
129
|
+
placeholder: X(),
|
|
130
|
+
type: r === "password" && w ? "text" : r,
|
|
131
|
+
className: e(
|
|
132
|
+
"peer w-full border rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out",
|
|
133
|
+
"focus:outline-none px-3",
|
|
134
|
+
o === "default" && "placeholder:text-transparent",
|
|
135
|
+
o === "static" && "placeholder:text-neutral-medium-default ",
|
|
136
|
+
m[a].input,
|
|
137
|
+
c[f].input,
|
|
138
|
+
l && "pr-10",
|
|
139
|
+
u && "bg-transparent opacity-60 border-neutral-strong-default text-neutral-medium-disabled",
|
|
140
|
+
m[a].container,
|
|
141
|
+
Y()
|
|
142
|
+
),
|
|
143
|
+
style: W(),
|
|
144
|
+
onChange: S,
|
|
145
|
+
onFocus: k,
|
|
146
|
+
onBlur: C,
|
|
147
|
+
disabled: u,
|
|
148
|
+
required: N,
|
|
149
|
+
onKeyDown: E,
|
|
150
|
+
onKeyUp: D,
|
|
151
|
+
defaultValue: v.defaultValue,
|
|
152
|
+
readOnly: M,
|
|
153
|
+
...v
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ t(
|
|
157
|
+
"label",
|
|
158
|
+
{
|
|
159
|
+
ref: A,
|
|
160
|
+
htmlFor: h,
|
|
161
|
+
className: e(
|
|
162
|
+
"absolute left-3 pointer-events-none px-1 z-10",
|
|
163
|
+
Z,
|
|
164
|
+
U(),
|
|
165
|
+
m[a].label,
|
|
166
|
+
Q(),
|
|
167
|
+
N && "after:content-['*'] after:text-error-default after:ml-1",
|
|
168
|
+
u && "text-neutral-medium-disabled prometeo-fonts-label-large"
|
|
169
|
+
),
|
|
170
|
+
children: x
|
|
171
|
+
}
|
|
172
|
+
),
|
|
173
|
+
(l || r === "password" || n) && /* @__PURE__ */ t(
|
|
174
|
+
"button",
|
|
175
|
+
{
|
|
176
|
+
tabIndex: -1,
|
|
177
|
+
type: "button",
|
|
178
|
+
className: e(
|
|
179
|
+
`absolute ${p ? "top-[calc(50%-12px)]" : "top-1/2"} -translate-y-1/2 flex items-center justify-center z-10`,
|
|
180
|
+
c[f].icon,
|
|
181
|
+
m[a].icon,
|
|
182
|
+
r === "password" && !n ? "cursor-pointer" : "pointer-events-none",
|
|
183
|
+
d === "right" ? "right-3" : "left-3"
|
|
184
|
+
),
|
|
185
|
+
onClick: r === "password" && !n ? G : void 0,
|
|
186
|
+
onMouseDown: (_) => r === "password" && !n && _.preventDefault(),
|
|
187
|
+
children: /* @__PURE__ */ H("div", { children: [
|
|
188
|
+
n && r !== "password" && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(oe, { size: 24, color: "#7c86ff", loading: !0, variant: "clip" }) }),
|
|
189
|
+
r === "password" && (w ? /* @__PURE__ */ t(q, { size: 24, className: "" }) : /* @__PURE__ */ t(V, { size: 24, className: "" })),
|
|
190
|
+
l
|
|
191
|
+
] })
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
z && /* @__PURE__ */ t(
|
|
195
|
+
"button",
|
|
196
|
+
{
|
|
197
|
+
type: "button",
|
|
198
|
+
className: e(
|
|
199
|
+
`absolute ${p ? "top-[calc(50%-12px)]" : "top-1/2"} -translate-y-1/2 flex items-center justify-center z-10 right-1`,
|
|
200
|
+
"size-6 p-1 rounded-full",
|
|
201
|
+
"hover:bg-neutral-medium-hover transition-colors",
|
|
202
|
+
u && "opacity-50 cursor-not-allowed"
|
|
203
|
+
),
|
|
204
|
+
disabled: u,
|
|
205
|
+
onClick: z,
|
|
206
|
+
children: /* @__PURE__ */ t(F, { size: 20, className: "" })
|
|
207
|
+
}
|
|
208
|
+
),
|
|
209
|
+
p && /* @__PURE__ */ t("div", { className: "min-h-6", children: ($ || J) && /* @__PURE__ */ t(se, { className: "absolute ", variant: a, children: b || g }) })
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
I.displayName = "Input";
|
|
216
|
+
const ie = ee(I);
|
|
217
|
+
export {
|
|
218
|
+
ie as default
|
|
219
|
+
};
|