prometeo-design-system 2.8.8 → 2.9.1
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/src/styles/base.css +464 -473
- 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,100 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { cn as d } from "../../../lib/cn.js";
|
|
3
|
-
import { motion as a, AnimatePresence as y } from "framer-motion";
|
|
4
|
-
import { Badge as g } from "./badge.js";
|
|
5
|
-
const O = ({
|
|
6
|
-
links: m,
|
|
7
|
-
isLinkActive: s,
|
|
8
|
-
onLinkClick: f
|
|
9
|
-
}) => /* @__PURE__ */ e("nav", { className: "flex flex-col gap-1", children: m?.map((p, r) => {
|
|
10
|
-
const { isView: i = !1, viewAccess: o, path: c, title: v, icon: u, count: n, relatedPaths: x } = p, h = (typeof i == "function" ? i() : i !== !1) && (!o || o()), t = s(c) || (x?.some(
|
|
11
|
-
(w) => s(w)
|
|
12
|
-
) ?? !1);
|
|
13
|
-
return h && /* @__PURE__ */ e(
|
|
14
|
-
a.div,
|
|
15
|
-
{
|
|
16
|
-
initial: { opacity: 0 },
|
|
17
|
-
animate: { opacity: 1 },
|
|
18
|
-
transition: {
|
|
19
|
-
duration: 0.4,
|
|
20
|
-
delay: r * 0.03,
|
|
21
|
-
ease: "easeOut"
|
|
22
|
-
},
|
|
23
|
-
className: "relative flex justify-center w-full items-center px-3",
|
|
24
|
-
children: /* @__PURE__ */ l(
|
|
25
|
-
"button",
|
|
26
|
-
{
|
|
27
|
-
onClick: () => {
|
|
28
|
-
f?.(c);
|
|
29
|
-
},
|
|
30
|
-
className: d(
|
|
31
|
-
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
32
|
-
"transition-all duration-300 ease-out w-full",
|
|
33
|
-
"group hover:bg-neutral-medium-selected",
|
|
34
|
-
t ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
35
|
-
),
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ e(y, { mode: "wait", children: t && /* @__PURE__ */ e(
|
|
38
|
-
a.div,
|
|
39
|
-
{
|
|
40
|
-
layoutId: "nav-active-bg",
|
|
41
|
-
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
42
|
-
initial: !1,
|
|
43
|
-
animate: { opacity: 1 },
|
|
44
|
-
exit: { opacity: 0 },
|
|
45
|
-
transition: {
|
|
46
|
-
type: "tween",
|
|
47
|
-
duration: 0.25,
|
|
48
|
-
ease: "easeInOut"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
) }),
|
|
52
|
-
/* @__PURE__ */ l(
|
|
53
|
-
a.div,
|
|
54
|
-
{
|
|
55
|
-
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
56
|
-
animate: {
|
|
57
|
-
x: 0
|
|
58
|
-
},
|
|
59
|
-
transition: {
|
|
60
|
-
duration: 0.25,
|
|
61
|
-
ease: "easeOut"
|
|
62
|
-
},
|
|
63
|
-
children: [
|
|
64
|
-
/* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
65
|
-
/* @__PURE__ */ e(
|
|
66
|
-
a.div,
|
|
67
|
-
{
|
|
68
|
-
className: "nav-icon-wrapper flex items-center justify-center shrink-0",
|
|
69
|
-
animate: {
|
|
70
|
-
scale: t ? 1.05 : 1
|
|
71
|
-
},
|
|
72
|
-
transition: {
|
|
73
|
-
duration: 0.25,
|
|
74
|
-
ease: "easeOut"
|
|
75
|
-
},
|
|
76
|
-
children: typeof u == "function" ? u({
|
|
77
|
-
size: 24,
|
|
78
|
-
className: d(
|
|
79
|
-
"nav-icon transition-colors duration-250 ease-out",
|
|
80
|
-
t ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
81
|
-
)
|
|
82
|
-
}) : null
|
|
83
|
-
}
|
|
84
|
-
),
|
|
85
|
-
/* @__PURE__ */ e("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: v })
|
|
86
|
-
] }),
|
|
87
|
-
/* @__PURE__ */ e("div", { className: "badge-in-link", children: n && n ? /* @__PURE__ */ e(g, { count: n, maxCount: 9, className: "" }) : "" })
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
)
|
|
94
|
-
},
|
|
95
|
-
r
|
|
96
|
-
);
|
|
97
|
-
}) });
|
|
98
|
-
export {
|
|
99
|
-
O as NavbarLinks
|
|
100
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as o, createContext as c, useContext as d } from "react";
|
|
3
|
-
const i = c(null), l = ({ children: e }) => {
|
|
4
|
-
const t = o(null), n = o(null), u = (r) => {
|
|
5
|
-
r.current && t && (t.current = r.current);
|
|
6
|
-
}, s = (r) => {
|
|
7
|
-
r.current && n && (n.current = r.current);
|
|
8
|
-
};
|
|
9
|
-
return /* @__PURE__ */ a(i.Provider, { value: { primarySidebarRef: t, registerPrimarySidebar: u, tabBarRef: n, registerTabBar: s }, children: e });
|
|
10
|
-
}, m = () => {
|
|
11
|
-
const e = d(i);
|
|
12
|
-
if (!e)
|
|
13
|
-
throw new Error("useSidebarContext must be used within a SidebarProvider");
|
|
14
|
-
return e;
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
l as SidebarProvider,
|
|
18
|
-
m as useSidebarContext
|
|
19
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as S } from "react/jsx-runtime";
|
|
2
|
-
import { useState as r, useRef as f } from "react";
|
|
3
|
-
import { SidebarContext as p } from "./useSidebarHook.js";
|
|
4
|
-
const x = ({
|
|
5
|
-
children: t
|
|
6
|
-
}) => {
|
|
7
|
-
const [a, o] = r(!1), [s, e] = r(!1), n = f(null), l = () => {
|
|
8
|
-
o(!1), e(!1);
|
|
9
|
-
}, c = () => {
|
|
10
|
-
o(!0), e(!1);
|
|
11
|
-
}, d = {
|
|
12
|
-
isCollapsed: a,
|
|
13
|
-
setIsCollapsed: o,
|
|
14
|
-
navbarRef: n,
|
|
15
|
-
toggleCollapse: () => {
|
|
16
|
-
a ? l() : c();
|
|
17
|
-
},
|
|
18
|
-
activeSecondaryBar: s ? "notifications" : null,
|
|
19
|
-
openSecondaryBar: () => {
|
|
20
|
-
e(!0);
|
|
21
|
-
},
|
|
22
|
-
closeSecondaryBar: () => {
|
|
23
|
-
e(!1);
|
|
24
|
-
},
|
|
25
|
-
toggleSecondaryBar: () => {
|
|
26
|
-
e((i) => !i);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
return /* @__PURE__ */ S(p.Provider, { value: d, children: t });
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
x as SidebarProvider
|
|
33
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createContext as e, useContext as o } from "react";
|
|
2
|
-
const r = e(
|
|
3
|
-
void 0
|
|
4
|
-
), i = () => {
|
|
5
|
-
const t = o(r);
|
|
6
|
-
if (!t)
|
|
7
|
-
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
r as SidebarContext,
|
|
12
|
-
i as useSidebar
|
|
13
|
-
};
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
import { useGSAP as c } from "@gsap/react";
|
|
2
|
-
import e from "gsap";
|
|
3
|
-
const n = (t, o, i, r) => o && (Array.isArray(o) ? o.length > 0 : o) ? t.to(o, i, r) : t, y = (t, o, i) => {
|
|
4
|
-
c(
|
|
5
|
-
() => {
|
|
6
|
-
if (!t.current) return;
|
|
7
|
-
const r = e.timeline({
|
|
8
|
-
defaults: { duration: 0.7, ease: "power1.out" }
|
|
9
|
-
}), a = {
|
|
10
|
-
navbar: t.current,
|
|
11
|
-
navLabels: e.utils.toArray(".nav-label"),
|
|
12
|
-
navIconWrappers: e.utils.toArray(".nav-icon-wrapper"),
|
|
13
|
-
navIcons: e.utils.toArray(".nav-icon"),
|
|
14
|
-
navLinkItems: e.utils.toArray(".nav-link-item"),
|
|
15
|
-
logoutButton: document.querySelector(".logout-button"),
|
|
16
|
-
logoutLabel: document.querySelector(".logout-label"),
|
|
17
|
-
logoutIcon: document.querySelector(".logout-icon"),
|
|
18
|
-
profileContainer: document.querySelector(".profile-container"),
|
|
19
|
-
profileName: document.querySelector(".profile-name"),
|
|
20
|
-
profileOptions: document.querySelector(".profile-options"),
|
|
21
|
-
profileImageWrapper: document.querySelector(".profile-image-wrapper"),
|
|
22
|
-
coverImageProfile: document.querySelector(".cover-image-profile"),
|
|
23
|
-
navContentWrapper: document.querySelector(
|
|
24
|
-
".nav-content-wrapper-active"
|
|
25
|
-
),
|
|
26
|
-
buttonCrevron: document.querySelector(".button-select-crevron"),
|
|
27
|
-
separatorProfile: document.querySelector(".border-separator-profile"),
|
|
28
|
-
buttonProfile: document.querySelector(".button-profile"),
|
|
29
|
-
profileUserInfo: document.querySelector(".profile-user-info"),
|
|
30
|
-
buttonContentChevron: document.querySelector(".button-content-chevron"),
|
|
31
|
-
logo: {
|
|
32
|
-
contenedor: document.querySelector(".container-logo"),
|
|
33
|
-
icon: document.querySelector(".icon-logo"),
|
|
34
|
-
text: document.querySelector(".text-logo")
|
|
35
|
-
},
|
|
36
|
-
sidebarHeader: document.querySelector(".sidebar-header"),
|
|
37
|
-
containerIconcollapsade: document.querySelector(
|
|
38
|
-
".container-icon-collapsade"
|
|
39
|
-
),
|
|
40
|
-
// Secondary bar elements
|
|
41
|
-
secondaryBar: document.querySelector(".secondary-bar"),
|
|
42
|
-
secondaryBarContent: e.utils.toArray(".secondary-bar *"),
|
|
43
|
-
badgeInLink: e.utils.toArray(".badge-in-link")
|
|
44
|
-
};
|
|
45
|
-
o ? u(r, a) : d(r, a), a.secondaryBar && l(a.secondaryBar);
|
|
46
|
-
},
|
|
47
|
-
{ scope: t, dependencies: [o, i] }
|
|
48
|
-
);
|
|
49
|
-
}, u = (t, o) => {
|
|
50
|
-
t.to(o.navbar, {
|
|
51
|
-
width: "5rem",
|
|
52
|
-
duration: 0.2,
|
|
53
|
-
ease: "bounce.out"
|
|
54
|
-
}).to(
|
|
55
|
-
o.logo.contenedor,
|
|
56
|
-
{
|
|
57
|
-
height: 48,
|
|
58
|
-
width: 48,
|
|
59
|
-
minWidth: 48,
|
|
60
|
-
ease: "bounce.out"
|
|
61
|
-
},
|
|
62
|
-
-1
|
|
63
|
-
).to(
|
|
64
|
-
o.logo.text,
|
|
65
|
-
{
|
|
66
|
-
opacity: 0,
|
|
67
|
-
scale: 0.8,
|
|
68
|
-
duration: 0.5,
|
|
69
|
-
ease: "back.in(1.2)"
|
|
70
|
-
},
|
|
71
|
-
-1
|
|
72
|
-
).set(o.logo.text, {
|
|
73
|
-
display: "none"
|
|
74
|
-
}).to(
|
|
75
|
-
o.sidebarHeader,
|
|
76
|
-
{
|
|
77
|
-
justifyContent: "center",
|
|
78
|
-
display: "flex"
|
|
79
|
-
},
|
|
80
|
-
-1
|
|
81
|
-
).to(o.logo.icon, {
|
|
82
|
-
keyframes: {
|
|
83
|
-
"0%": { scale: 1 },
|
|
84
|
-
"33%": { scale: 1.5 },
|
|
85
|
-
"66%": { scale: 0.5 },
|
|
86
|
-
"100%": { scale: 1 }
|
|
87
|
-
},
|
|
88
|
-
duration: 0.6,
|
|
89
|
-
ease: "power1.inOut"
|
|
90
|
-
}).to(
|
|
91
|
-
o.navLinkItems,
|
|
92
|
-
{
|
|
93
|
-
justifyContent: "center",
|
|
94
|
-
alignItems: "center",
|
|
95
|
-
width: "3rem",
|
|
96
|
-
height: "3rem",
|
|
97
|
-
display: "flex"
|
|
98
|
-
},
|
|
99
|
-
-1
|
|
100
|
-
).to(
|
|
101
|
-
o.navLabels,
|
|
102
|
-
{
|
|
103
|
-
opacity: 0,
|
|
104
|
-
width: 30,
|
|
105
|
-
marginLeft: 0
|
|
106
|
-
},
|
|
107
|
-
0
|
|
108
|
-
).to(o.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), n(
|
|
109
|
-
t,
|
|
110
|
-
o.buttonCrevron,
|
|
111
|
-
{
|
|
112
|
-
width: 0,
|
|
113
|
-
opacity: 0,
|
|
114
|
-
duration: 0.7,
|
|
115
|
-
ease: "power1.out",
|
|
116
|
-
onComplete: () => {
|
|
117
|
-
o.buttonCrevron.style.display = "none";
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
0
|
|
121
|
-
), n(
|
|
122
|
-
t,
|
|
123
|
-
o.buttonContentChevron,
|
|
124
|
-
{
|
|
125
|
-
display: "none"
|
|
126
|
-
},
|
|
127
|
-
-1
|
|
128
|
-
).to(
|
|
129
|
-
o.separatorProfile,
|
|
130
|
-
{
|
|
131
|
-
display: "none"
|
|
132
|
-
},
|
|
133
|
-
-1
|
|
134
|
-
).to(
|
|
135
|
-
o.profileUserInfo,
|
|
136
|
-
{
|
|
137
|
-
display: "none"
|
|
138
|
-
},
|
|
139
|
-
-1
|
|
140
|
-
).to(
|
|
141
|
-
o.navLinkItems,
|
|
142
|
-
{
|
|
143
|
-
borderRadius: "8px",
|
|
144
|
-
duration: 0.7,
|
|
145
|
-
ease: "power1.out"
|
|
146
|
-
},
|
|
147
|
-
0.8
|
|
148
|
-
).to(
|
|
149
|
-
o.profileImageWrapper,
|
|
150
|
-
{
|
|
151
|
-
width: 52,
|
|
152
|
-
height: 52,
|
|
153
|
-
marginLeft: 0,
|
|
154
|
-
marginRight: 0
|
|
155
|
-
},
|
|
156
|
-
-1
|
|
157
|
-
).to(
|
|
158
|
-
o.buttonProfile,
|
|
159
|
-
{
|
|
160
|
-
height: 44,
|
|
161
|
-
width: 58,
|
|
162
|
-
margin: 0,
|
|
163
|
-
padding: 0,
|
|
164
|
-
borderRadius: "60px",
|
|
165
|
-
duration: 0.3,
|
|
166
|
-
ease: "power2.out",
|
|
167
|
-
display: "flex",
|
|
168
|
-
justifyContent: "center",
|
|
169
|
-
alignItems: "center"
|
|
170
|
-
},
|
|
171
|
-
-1
|
|
172
|
-
).to(
|
|
173
|
-
o.containerIconcollapsade,
|
|
174
|
-
{
|
|
175
|
-
justifyContent: "center",
|
|
176
|
-
marginRight: 0
|
|
177
|
-
},
|
|
178
|
-
"=-1"
|
|
179
|
-
).to(
|
|
180
|
-
o.badgeInLink,
|
|
181
|
-
{
|
|
182
|
-
position: "absolute",
|
|
183
|
-
right: 1,
|
|
184
|
-
top: -7
|
|
185
|
-
},
|
|
186
|
-
-1
|
|
187
|
-
);
|
|
188
|
-
}, d = (t, o) => {
|
|
189
|
-
t.to(o.navbar, { width: "20rem" }, -1).to(
|
|
190
|
-
o.navLinkItems,
|
|
191
|
-
{
|
|
192
|
-
borderRadius: "10px",
|
|
193
|
-
duration: 0.3,
|
|
194
|
-
width: "100%",
|
|
195
|
-
justifyContent: "flex-start"
|
|
196
|
-
},
|
|
197
|
-
-1
|
|
198
|
-
), n(
|
|
199
|
-
t,
|
|
200
|
-
o.buttonCrevron,
|
|
201
|
-
{
|
|
202
|
-
width: "auto",
|
|
203
|
-
opacity: 1,
|
|
204
|
-
duration: 0,
|
|
205
|
-
ease: "power1.out",
|
|
206
|
-
onComplete: () => {
|
|
207
|
-
o.buttonCrevron.style.display = "flex";
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
0
|
|
211
|
-
), n(
|
|
212
|
-
t,
|
|
213
|
-
o.buttonContentChevron,
|
|
214
|
-
{
|
|
215
|
-
display: "flex"
|
|
216
|
-
},
|
|
217
|
-
0
|
|
218
|
-
).to(
|
|
219
|
-
o.logo.contenedor,
|
|
220
|
-
{
|
|
221
|
-
width: 185,
|
|
222
|
-
height: 48,
|
|
223
|
-
minWidth: 185
|
|
224
|
-
},
|
|
225
|
-
-1
|
|
226
|
-
).set(
|
|
227
|
-
o.logo.text,
|
|
228
|
-
{
|
|
229
|
-
display: "flex"
|
|
230
|
-
},
|
|
231
|
-
-1
|
|
232
|
-
).to(o.logo.text, {
|
|
233
|
-
opacity: 1,
|
|
234
|
-
duration: 0,
|
|
235
|
-
ease: "back.in(1)"
|
|
236
|
-
}).to(o.logo.icon, {
|
|
237
|
-
keyframes: {
|
|
238
|
-
"0%": { scale: 1 },
|
|
239
|
-
"33%": { scale: 1.5 },
|
|
240
|
-
"66%": { scale: 0.5 },
|
|
241
|
-
"100%": { scale: 1 }
|
|
242
|
-
},
|
|
243
|
-
duration: 0.3,
|
|
244
|
-
ease: "power1.inOut"
|
|
245
|
-
}).to(
|
|
246
|
-
o.sidebarHeader,
|
|
247
|
-
{
|
|
248
|
-
justifyContent: "start",
|
|
249
|
-
display: "flex"
|
|
250
|
-
},
|
|
251
|
-
-1
|
|
252
|
-
).to(
|
|
253
|
-
o.profileImageWrapper,
|
|
254
|
-
{
|
|
255
|
-
marginRight: 0,
|
|
256
|
-
duration: 0.2,
|
|
257
|
-
ease: "bounce.out"
|
|
258
|
-
},
|
|
259
|
-
-1
|
|
260
|
-
).to(
|
|
261
|
-
o.containerIconcollapsade,
|
|
262
|
-
{
|
|
263
|
-
justifyContent: "end",
|
|
264
|
-
marginRight: 20
|
|
265
|
-
},
|
|
266
|
-
-1
|
|
267
|
-
).to(
|
|
268
|
-
o.separatorProfile,
|
|
269
|
-
{
|
|
270
|
-
display: "flex"
|
|
271
|
-
},
|
|
272
|
-
0
|
|
273
|
-
).to(
|
|
274
|
-
o.badgeInLink,
|
|
275
|
-
{
|
|
276
|
-
position: "static",
|
|
277
|
-
right: "auto",
|
|
278
|
-
top: "auto",
|
|
279
|
-
display: "flex",
|
|
280
|
-
justifyContent: "end",
|
|
281
|
-
alignItems: "center"
|
|
282
|
-
},
|
|
283
|
-
-1
|
|
284
|
-
).to(
|
|
285
|
-
o.buttonProfile,
|
|
286
|
-
{
|
|
287
|
-
borderTopLeftRadius: "0.375rem",
|
|
288
|
-
borderBottomLeftRadius: "0.375rem",
|
|
289
|
-
borderTopRightRadius: "0",
|
|
290
|
-
borderBottomRightRadius: "0",
|
|
291
|
-
duration: 0
|
|
292
|
-
},
|
|
293
|
-
-1
|
|
294
|
-
).to(
|
|
295
|
-
o.separatorProfile,
|
|
296
|
-
{
|
|
297
|
-
display: "flex"
|
|
298
|
-
},
|
|
299
|
-
0
|
|
300
|
-
).to(
|
|
301
|
-
o.navLabels,
|
|
302
|
-
{
|
|
303
|
-
opacity: 1,
|
|
304
|
-
width: "auto",
|
|
305
|
-
scaleX: 1
|
|
306
|
-
},
|
|
307
|
-
0
|
|
308
|
-
).to(
|
|
309
|
-
o.profileUserInfo,
|
|
310
|
-
{
|
|
311
|
-
display: "flex",
|
|
312
|
-
ease: "fade.in"
|
|
313
|
-
},
|
|
314
|
-
0
|
|
315
|
-
).to(o.navIcons, { scale: 1 }, 0.3);
|
|
316
|
-
}, l = (t, o) => {
|
|
317
|
-
e.to(t, {
|
|
318
|
-
x: "-100%",
|
|
319
|
-
opacity: 0,
|
|
320
|
-
duration: 0.3,
|
|
321
|
-
ease: "power2.in"
|
|
322
|
-
});
|
|
323
|
-
};
|
|
324
|
-
export {
|
|
325
|
-
y as useNavbarAnimations
|
|
326
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { ClipLoader as d, SyncLoader as l, HashLoader as m, GridLoader as p, DotLoader as f, BounceLoader as L } from "react-spinners";
|
|
3
|
-
import { cn as S } from "../../lib/cn.js";
|
|
4
|
-
const w = ({
|
|
5
|
-
variant: t = "sync",
|
|
6
|
-
color: s = "#3B82F6",
|
|
7
|
-
loading: o = !0,
|
|
8
|
-
size: n = "medium",
|
|
9
|
-
className: c = "",
|
|
10
|
-
speedMultiplier: i = 1
|
|
11
|
-
}) => {
|
|
12
|
-
const a = (() => {
|
|
13
|
-
if (typeof n == "number") return n;
|
|
14
|
-
switch (n) {
|
|
15
|
-
case "small":
|
|
16
|
-
return 20;
|
|
17
|
-
case "medium":
|
|
18
|
-
return 35;
|
|
19
|
-
case "large":
|
|
20
|
-
return 50;
|
|
21
|
-
default:
|
|
22
|
-
return 35;
|
|
23
|
-
}
|
|
24
|
-
})(), r = {
|
|
25
|
-
color: s,
|
|
26
|
-
loading: o,
|
|
27
|
-
size: a,
|
|
28
|
-
speedMultiplier: i,
|
|
29
|
-
"aria-label": "Loading Spinner",
|
|
30
|
-
"data-testid": "spinner"
|
|
31
|
-
}, u = S("inline-block", c);
|
|
32
|
-
return /* @__PURE__ */ e("div", { className: u, children: (() => {
|
|
33
|
-
switch (t) {
|
|
34
|
-
case "bounce":
|
|
35
|
-
return /* @__PURE__ */ e(L, { ...r });
|
|
36
|
-
case "dot":
|
|
37
|
-
return /* @__PURE__ */ e(f, { ...r });
|
|
38
|
-
case "grid":
|
|
39
|
-
return /* @__PURE__ */ e(p, { ...r, size: a * 0.4 });
|
|
40
|
-
case "hash":
|
|
41
|
-
return /* @__PURE__ */ e(m, { ...r });
|
|
42
|
-
case "sync":
|
|
43
|
-
return /* @__PURE__ */ e(l, { ...r, size: a * 0.4 });
|
|
44
|
-
case "clip":
|
|
45
|
-
default:
|
|
46
|
-
return /* @__PURE__ */ e(d, { ...r });
|
|
47
|
-
}
|
|
48
|
-
})() });
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
w as default
|
|
52
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
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,62 +0,0 @@
|
|
|
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
|
-
};
|