prometeo-design-system 3.1.5 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar.d.ts +4 -0
- package/dist/Avatar.es.js +94 -0
- package/dist/Button.d.ts +6 -0
- package/dist/Button.es.js +400 -0
- package/dist/CardProfile-y9Knsg26.js +280 -0
- package/dist/CardProfile.d.ts +6 -0
- package/dist/CardProfile.es.js +5 -0
- package/dist/CheckBox.d.ts +6 -0
- package/dist/CheckBox.es.js +112 -0
- package/dist/DatePicker-6eb-0Ns5.js +3733 -0
- package/dist/DatePicker.d.ts +6 -0
- package/dist/DatePicker.es.js +5 -0
- package/dist/DialogModal.d.ts +6 -0
- package/dist/DialogModal.es.js +75 -0
- package/dist/DrawerDesktop.d.ts +6 -0
- package/dist/DrawerDesktop.es.js +217 -0
- package/dist/DrawerMobile.d.ts +6 -0
- package/dist/DrawerMobile.es.js +243 -0
- package/dist/DropZone.d.ts +6 -0
- package/dist/DropZone.es.js +88 -0
- package/dist/FAButton.d.ts +4 -0
- package/dist/FAButton.es.js +111 -0
- package/dist/Header.d.ts +6 -0
- package/dist/Header.es.js +32 -0
- package/dist/HelperComponent-ljsn0xD6.js +26 -0
- package/dist/Icons/AccountCircle.d.ts +6 -0
- package/dist/Icons/AccountCircle.es.js +21 -0
- package/dist/Icons/Add.d.ts +6 -0
- package/dist/Icons/Add.es.js +19 -0
- package/dist/Icons/ArrowLeft.d.ts +6 -0
- package/dist/Icons/ArrowLeft.es.js +19 -0
- package/dist/Icons/ArrowUpDown.d.ts +6 -0
- package/dist/Icons/ArrowUpDown.es.js +21 -0
- package/dist/Icons/AttachFile.d.ts +6 -0
- package/dist/Icons/AttachFile.es.js +19 -0
- package/dist/Icons/Boards.d.ts +6 -0
- package/dist/Icons/Boards.es.js +19 -0
- package/dist/Icons/Calendar.d.ts +6 -0
- package/dist/Icons/Calendar.es.js +19 -0
- package/dist/Icons/Cancel.d.ts +6 -0
- package/dist/Icons/Cancel.es.js +19 -0
- package/dist/Icons/Check.d.ts +6 -0
- package/dist/Icons/Check.es.js +19 -0
- package/dist/Icons/CheckCircle.d.ts +6 -0
- package/dist/Icons/CheckCircle.es.js +21 -0
- package/dist/Icons/CheckList.d.ts +6 -0
- package/dist/Icons/CheckList.es.js +25 -0
- package/dist/Icons/ChevronDown.d.ts +6 -0
- package/dist/Icons/ChevronDown.es.js +21 -0
- package/dist/Icons/Clock.d.ts +6 -0
- package/dist/Icons/Clock.es.js +19 -0
- package/dist/Icons/Close.d.ts +6 -0
- package/dist/Icons/Close.es.js +19 -0
- package/dist/Icons/CloseNavBarDesktop.d.ts +6 -0
- package/dist/Icons/CloseNavBarDesktop.es.js +36 -0
- package/dist/Icons/Collapse.d.ts +6 -0
- package/dist/Icons/Collapse.es.js +19 -0
- package/dist/Icons/Company.d.ts +6 -0
- package/dist/Icons/Company.es.js +25 -0
- package/dist/Icons/Copy.d.ts +6 -0
- package/dist/Icons/Copy.es.js +19 -0
- package/dist/Icons/CrevronLeft.d.ts +6 -0
- package/dist/Icons/CrevronLeft.es.js +21 -0
- package/dist/Icons/CrevronRight.d.ts +6 -0
- package/dist/Icons/CrevronRight.es.js +21 -0
- package/dist/Icons/DocumentFill.d.ts +6 -0
- package/dist/Icons/DocumentFill.es.js +27 -0
- package/dist/Icons/Download.d.ts +6 -0
- package/dist/Icons/Download.es.js +25 -0
- package/dist/Icons/Edit.d.ts +6 -0
- package/dist/Icons/Edit.es.js +19 -0
- package/dist/Icons/EditFill.d.ts +6 -0
- package/dist/Icons/EditFill.es.js +25 -0
- package/dist/Icons/Email.d.ts +6 -0
- package/dist/Icons/Email.es.js +25 -0
- package/dist/Icons/Error.d.ts +6 -0
- package/dist/Icons/Error.es.js +19 -0
- package/dist/Icons/EyeVisibility.d.ts +6 -0
- package/dist/Icons/EyeVisibility.es.js +21 -0
- package/dist/Icons/EyeVisibilityOff.d.ts +6 -0
- package/dist/Icons/EyeVisibilityOff.es.js +21 -0
- package/dist/Icons/FaLock.d.ts +6 -0
- package/dist/Icons/FaLock.es.js +19 -0
- package/dist/Icons/FastForward.d.ts +6 -0
- package/dist/Icons/FastForward.es.js +27 -0
- package/dist/Icons/File.d.ts +6 -0
- package/dist/Icons/File.es.js +25 -0
- package/dist/Icons/Filter.d.ts +6 -0
- package/dist/Icons/Filter.es.js +19 -0
- package/dist/Icons/FormatColorText.d.ts +6 -0
- package/dist/Icons/FormatColorText.es.js +26 -0
- package/dist/Icons/Help.d.ts +6 -0
- package/dist/Icons/Help.es.js +19 -0
- package/dist/Icons/HistoryActivity.d.ts +6 -0
- package/dist/Icons/HistoryActivity.es.js +21 -0
- package/dist/Icons/Home.d.ts +6 -0
- package/dist/Icons/Home.es.js +19 -0
- package/dist/Icons/Image.d.ts +6 -0
- package/dist/Icons/Image.es.js +25 -0
- package/dist/Icons/Info.d.ts +6 -0
- package/dist/Icons/Info.es.js +19 -0
- package/dist/Icons/Logout.d.ts +6 -0
- package/dist/Icons/Logout.es.js +19 -0
- package/dist/Icons/MessageSquare.d.ts +6 -0
- package/dist/Icons/MessageSquare.es.js +21 -0
- package/dist/Icons/MessageSquareFill.d.ts +6 -0
- package/dist/Icons/MessageSquareFill.es.js +27 -0
- package/dist/Icons/MoreVert.d.ts +6 -0
- package/dist/Icons/MoreVert.es.js +19 -0
- package/dist/Icons/Notifications.d.ts +6 -0
- package/dist/Icons/Notifications.es.js +21 -0
- package/dist/Icons/Pause.d.ts +6 -0
- package/dist/Icons/Pause.es.js +19 -0
- package/dist/Icons/Reassignment.d.ts +6 -0
- package/dist/Icons/Reassignment.es.js +22 -0
- package/dist/Icons/ReassignmentFill.d.ts +6 -0
- package/dist/Icons/ReassignmentFill.es.js +52 -0
- package/dist/Icons/Reload.d.ts +6 -0
- package/dist/Icons/Reload.es.js +25 -0
- package/dist/Icons/Search.d.ts +6 -0
- package/dist/Icons/Search.es.js +19 -0
- package/dist/Icons/Send.d.ts +6 -0
- package/dist/Icons/Send.es.js +24 -0
- package/dist/Icons/Settings.d.ts +6 -0
- package/dist/Icons/Settings.es.js +19 -0
- package/dist/Icons/Shared.d.ts +6 -0
- package/dist/Icons/Shared.es.js +19 -0
- package/dist/Icons/Sort.d.ts +6 -0
- package/dist/Icons/Sort.es.js +19 -0
- package/dist/Icons/Stars.d.ts +6 -0
- package/dist/Icons/Stars.es.js +19 -0
- package/dist/Icons/Ticket.d.ts +6 -0
- package/dist/Icons/Ticket.es.js +19 -0
- package/dist/Icons/TicketFilled.d.ts +6 -0
- package/dist/Icons/TicketFilled.es.js +21 -0
- package/dist/Icons/Trash.d.ts +6 -0
- package/dist/Icons/Trash.es.js +19 -0
- package/dist/Icons/TrashFill.d.ts +6 -0
- package/dist/Icons/TrashFill.es.js +25 -0
- package/dist/Icons/Upload.d.ts +6 -0
- package/dist/Icons/Upload.es.js +19 -0
- package/dist/Icons/UploadCloud.d.ts +6 -0
- package/dist/Icons/UploadCloud.es.js +21 -0
- package/dist/Icons/UserAdd.d.ts +6 -0
- package/dist/Icons/UserAdd.es.js +19 -0
- package/dist/Icons/UserAddFill.d.ts +6 -0
- package/dist/Icons/UserAddFill.es.js +27 -0
- package/dist/Icons/UserPerson.d.ts +6 -0
- package/dist/Icons/UserPerson.es.js +19 -0
- package/dist/Icons/WhatsApp.d.ts +6 -0
- package/dist/Icons/WhatsApp.es.js +76 -0
- package/dist/Icons/components/AccountCircle.d.ts +4 -0
- package/dist/Icons/components/Add.d.ts +4 -0
- package/dist/Icons/components/ArrowLeft.d.ts +4 -0
- package/dist/Icons/components/ArrowUpDown.d.ts +4 -0
- package/dist/Icons/components/AttachFile.d.ts +4 -0
- package/dist/Icons/components/Boards.d.ts +4 -0
- package/dist/Icons/components/Calendar.d.ts +4 -0
- package/dist/Icons/components/Cancel.d.ts +4 -0
- package/dist/Icons/components/Check.d.ts +4 -0
- package/dist/Icons/components/CheckCircle.d.ts +4 -0
- package/dist/Icons/components/CheckList.d.ts +4 -0
- package/dist/Icons/components/ChevronDown.d.ts +4 -0
- package/dist/Icons/components/Clock.d.ts +4 -0
- package/dist/Icons/components/Close.d.ts +4 -0
- package/dist/Icons/components/CloseNavBarDesktop.d.ts +4 -0
- package/dist/Icons/components/Collapse.d.ts +4 -0
- package/dist/Icons/components/Company.d.ts +4 -0
- package/dist/Icons/components/Copy.d.ts +4 -0
- package/dist/Icons/components/CrevronLeft.d.ts +4 -0
- package/dist/Icons/components/CrevronRight.d.ts +4 -0
- package/dist/Icons/components/DocumentFill.d.ts +4 -0
- package/dist/Icons/components/Download.d.ts +4 -0
- package/dist/Icons/components/Edit.d.ts +4 -0
- package/dist/Icons/components/EditFill.d.ts +4 -0
- package/dist/Icons/components/Email.d.ts +4 -0
- package/dist/Icons/components/Error.d.ts +4 -0
- package/dist/Icons/components/EyeVisibility.d.ts +4 -0
- package/dist/Icons/components/EyeVisibilityOff.d.ts +4 -0
- package/dist/Icons/components/FaLock.d.ts +4 -0
- package/dist/Icons/components/FastForward.d.ts +4 -0
- package/dist/Icons/components/File.d.ts +4 -0
- package/dist/Icons/components/Filter.d.ts +4 -0
- package/dist/Icons/components/FormatColorText.d.ts +4 -0
- package/dist/Icons/components/Help.d.ts +4 -0
- package/dist/Icons/components/HistoryActivity.d.ts +4 -0
- package/dist/Icons/components/Home.d.ts +4 -0
- package/dist/Icons/components/Image.d.ts +4 -0
- package/dist/Icons/components/Info.d.ts +4 -0
- package/dist/Icons/components/Logout.d.ts +4 -0
- package/dist/Icons/components/MessageSquare.d.ts +4 -0
- package/dist/Icons/components/MessageSquareFill.d.ts +4 -0
- package/dist/Icons/components/MoreVert.d.ts +4 -0
- package/dist/Icons/components/Notifications.d.ts +4 -0
- package/dist/Icons/components/Pause.d.ts +4 -0
- package/dist/Icons/components/Reassignment.d.ts +4 -0
- package/dist/Icons/components/ReassignmentFill.d.ts +4 -0
- package/dist/Icons/components/Reload.d.ts +4 -0
- package/dist/Icons/components/Search.d.ts +4 -0
- package/dist/Icons/components/Send.d.ts +4 -0
- package/dist/Icons/components/Settings.d.ts +4 -0
- package/dist/Icons/components/Shared.d.ts +4 -0
- package/dist/Icons/components/Sort.d.ts +4 -0
- package/dist/Icons/components/Stars.d.ts +4 -0
- package/dist/Icons/components/Ticket.d.ts +4 -0
- package/dist/Icons/components/TicketFilled.d.ts +4 -0
- package/dist/Icons/components/Trash.d.ts +4 -0
- package/dist/Icons/components/TrashFill.d.ts +4 -0
- package/dist/Icons/components/Upload.d.ts +4 -0
- package/dist/Icons/components/UploadCloud.d.ts +4 -0
- package/dist/Icons/components/UserAdd.d.ts +4 -0
- package/dist/Icons/components/UserAddFill.d.ts +4 -0
- package/dist/Icons/components/UserPerson.d.ts +4 -0
- package/dist/Icons/components/WhatsApp.d.ts +4 -0
- package/dist/Icons/iconUtils.d.ts +7 -0
- package/dist/Icons/index.d.ts +65 -0
- package/dist/Icons/types.d.ts +130 -0
- package/dist/Icons.d.ts +2 -0
- package/dist/Icons.es.js +128 -0
- package/dist/Image.d.ts +4 -0
- package/dist/Image.es.js +91 -0
- package/dist/ImageGallery-DG9ovlQ-.js +319 -0
- package/dist/ImageGallery.d.ts +6 -0
- package/dist/ImageGallery.es.js +23 -0
- package/dist/Input.d.ts +6 -0
- package/dist/Input.es.js +220 -0
- package/dist/InputMultiple.d.ts +6 -0
- package/dist/InputMultiple.es.js +265 -0
- package/dist/LayoutGeneric-CfWhV1ov.js +26 -0
- package/dist/LayoutGeneric.d.ts +6 -0
- package/dist/LayoutGeneric.es.js +4 -0
- package/dist/Logo.d.ts +4 -0
- package/dist/Logo.es.js +9 -0
- package/dist/Menu.d.ts +6 -0
- package/dist/Menu.es.js +77 -0
- package/dist/NotificationCard.d.ts +6 -0
- package/dist/NotificationCard.es.js +50 -0
- package/dist/OtpInput.d.ts +6 -0
- package/dist/OtpInput.es.js +302 -0
- package/dist/Pagination.d.ts +6 -0
- package/dist/Pagination.es.js +97 -0
- package/dist/ProfilePictureUpload.d.ts +6 -0
- package/dist/ProfilePictureUpload.es.js +189 -0
- package/dist/ProgressBar.d.ts +6 -0
- package/dist/ProgressBar.es.js +70 -0
- package/dist/PyrionNavigationDrawer.d.ts +6 -0
- package/dist/PyrionNavigationDrawer.es.js +962 -0
- package/dist/RadioButton.d.ts +6 -0
- package/dist/RadioButton.es.js +78 -0
- package/dist/RecurrentDatePicker.d.ts +2 -0
- package/dist/RecurrentDatePicker.es.js +694 -0
- package/dist/RecurrentDatePickerRRule.d.ts +2 -0
- package/dist/RecurrentDatePickerRRule.es.js +1682 -0
- package/dist/Scrollable.d.ts +2 -0
- package/dist/Scrollable.es.js +260 -0
- package/dist/SegmentedButton.d.ts +6 -0
- package/dist/SegmentedButton.es.js +185 -0
- package/dist/Select.d.ts +6 -0
- package/dist/Select.es.js +1061 -0
- package/dist/SelectSearch.d.ts +6 -0
- package/dist/SelectSearch.es.js +284 -0
- package/dist/Skeleton.d.ts +6 -0
- package/dist/Skeleton.es.js +74 -0
- package/dist/Spinner.d.ts +6 -0
- package/dist/Spinner.es.js +178 -0
- package/dist/Steps.d.ts +6 -0
- package/dist/Steps.es.js +214 -0
- package/dist/SwipeContainer.d.ts +4 -0
- package/dist/SwipeContainer.es.js +185 -0
- package/dist/Switch.d.ts +6 -0
- package/dist/Switch.es.js +97 -0
- package/dist/TabLinks.d.ts +4 -0
- package/dist/TabLinks.es.js +94 -0
- package/dist/Table.d.ts +2 -0
- package/dist/Table.es.js +121 -0
- package/dist/TextArea.d.ts +4 -0
- package/dist/TextArea.es.js +66 -0
- package/dist/TicketCard.d.ts +6 -0
- package/dist/TicketCard.es.js +130 -0
- package/dist/Toast.d.ts +6 -0
- package/dist/Toast.es.js +150 -0
- package/dist/ToastProvider.d.ts +6 -0
- package/dist/ToastProvider.es.js +6 -0
- package/dist/Tooltip.d.ts +6 -0
- package/dist/Tooltip.es.js +62 -0
- package/dist/assets/psmlogo.png +0 -0
- package/dist/badge-B1IK_-i5.js +87 -0
- package/dist/cn-B6yFEsav.js +8 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +20 -0
- package/dist/components/Autocomplete/useAutocomplete.d.ts +43 -0
- package/dist/components/Avatar/Avatar.d.ts +11 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +23 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +12 -0
- package/dist/components/CardProfile/CardProfile.d.ts +55 -0
- package/dist/components/CheckBox/CheckBox.d.ts +11 -0
- package/dist/components/DatePicker/DatePicker.d.ts +82 -0
- package/dist/components/Dialog/Dialog.d.ts +35 -0
- package/dist/components/Dialog/DialogV2.d.ts +35 -0
- package/dist/components/Dialog/useDialogControl.d.ts +8 -0
- package/dist/components/Drawer/DrawerDesktop.d.ts +21 -0
- package/dist/components/Drawer/DrawerMobile.d.ts +24 -0
- package/dist/components/Drawer/useDrawerDesktop.d.ts +8 -0
- package/dist/components/Drawer/useDrawerMobile.d.ts +8 -0
- package/dist/components/DropZone/DropZone.d.ts +16 -0
- package/dist/components/DropZone/DropzoneCompossable.d.ts +54 -0
- package/dist/components/DropZone/useFileDropzone.d.ts +21 -0
- package/dist/components/FAB/FAButton.d.ts +21 -0
- package/dist/components/FileCard/FileCard.d.ts +52 -0
- package/dist/components/Header/Header.d.ts +11 -0
- package/dist/components/Image/GalleryPreview.d.ts +8 -0
- package/dist/components/Image/Image.d.ts +23 -0
- package/dist/components/Image/ImageGallery.d.ts +18 -0
- package/dist/components/Image/LightBox.d.ts +14 -0
- package/dist/components/Image/index.d.ts +5 -0
- package/dist/components/Image/useImageGallery.d.ts +10 -0
- package/dist/components/Input/Input.d.ts +34 -0
- package/dist/components/InputMultiple/InputMultiple.d.ts +25 -0
- package/dist/components/Layout/LayoutGeneric.d.ts +6 -0
- package/dist/components/Logo/Logo.d.ts +2 -0
- package/dist/components/Menu/MenuComposable.d.ts +15 -0
- package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +10 -0
- package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +49 -0
- package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +16 -0
- package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +9 -0
- package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +18 -0
- package/dist/components/NavigationDrawer/NavigationDrawerLinkItem.d.ts +30 -0
- package/dist/components/NavigationDrawer/NavigationDrawerNavlinks.d.ts +11 -0
- package/dist/components/NavigationDrawer/index.d.ts +2 -0
- package/dist/components/NotificationCard/NotificationCard.d.ts +25 -0
- package/dist/components/NotificationCard/index.d.ts +3 -0
- package/dist/components/OtpInput/OtpInput.d.ts +30 -0
- package/dist/components/Pagination/Pagination.d.ts +6 -0
- package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +19 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +18 -0
- package/dist/components/PyrionNavigationDrawer/PyrionHelpSection.d.ts +8 -0
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +130 -0
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerMobileAppSwitcher.d.ts +10 -0
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerSystemLogo.d.ts +7 -0
- package/dist/components/PyrionNavigationDrawer/PyrionNotificationsList.d.ts +8 -0
- package/dist/components/PyrionNavigationDrawer/SidebarContent.d.ts +13 -0
- package/dist/components/PyrionNavigationDrawer/SystemSessions.d.ts +12 -0
- package/dist/components/PyrionNavigationDrawer/index.d.ts +3 -0
- package/dist/components/RadioButton/RadioButton.d.ts +14 -0
- package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +40 -0
- package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +13 -0
- package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +35 -0
- package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +5 -0
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +39 -0
- package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +13 -0
- package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +13 -0
- package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +9 -0
- package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +21 -0
- package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +69 -0
- package/dist/components/Scrollable/Scrollable.d.ts +31 -0
- package/dist/components/SegmentedButton/SegmentedButton.d.ts +20 -0
- package/dist/components/Select/Select.d.ts +123 -0
- package/dist/components/SelectSearch/SelectSearch.d.ts +40 -0
- package/dist/components/Shared/Chip.d.ts +15 -0
- package/dist/components/Shared/HelperComponent.d.ts +13 -0
- package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +32 -0
- package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +2 -0
- package/dist/components/Sidebar/SecondaryBar/index.d.ts +1 -0
- package/dist/components/Sidebar/SidebarComposable.d.ts +43 -0
- package/dist/components/Sidebar/components/NavigationLink.d.ts +11 -0
- package/dist/components/Sidebar/components/badge.d.ts +10 -0
- package/dist/components/Sidebar/components/changue-account.d.ts +5 -0
- package/dist/components/Sidebar/components/collapse-button.d.ts +5 -0
- package/dist/components/Sidebar/components/company-logo.d.ts +5 -0
- package/dist/components/Sidebar/components/nav-actions.d.ts +7 -0
- package/dist/components/Sidebar/components/nav-links.d.ts +7 -0
- package/dist/components/Sidebar/context/SidebarContext.d.ts +13 -0
- package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +3 -0
- package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +9 -0
- package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +4 -0
- package/dist/components/Sidebar/hooks/useNavLinks.d.ts +32 -0
- package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +13 -0
- package/dist/components/Sidebar/index.d.ts +12 -0
- package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.d.ts +13 -0
- package/dist/components/Spinner/Spinner.d.ts +12 -0
- package/dist/components/Steps/Steps.d.ts +21 -0
- package/dist/components/SwipeContainer/SwipeContainer.d.ts +19 -0
- package/dist/components/Switch/Switch.d.ts +11 -0
- package/dist/components/TabLinks/TabLinks.d.ts +23 -0
- package/dist/components/TabSwitch/TabSwitch.d.ts +16 -0
- package/dist/components/Table/Table.d.ts +14 -0
- package/dist/components/Table/TableWithPagination.d.ts +11 -0
- package/dist/components/TextArea/TextArea.d.ts +15 -0
- package/dist/components/TicketCard/TicketCard.d.ts +32 -0
- package/dist/components/TicketCard/index.d.ts +3 -0
- package/dist/components/Toaster/ToastProvider.d.ts +5 -0
- package/dist/components/Toaster/Toaster.d.ts +36 -0
- package/dist/components/Tooltip/Tootip.d.ts +10 -0
- package/dist/components/UserCard/UserCard.d.ts +12 -0
- package/dist/exports/Autocomplete.d.ts +1 -0
- package/dist/exports/Avatar.d.ts +1 -0
- package/dist/exports/Button.d.ts +2 -0
- package/dist/exports/CardProfile.d.ts +3 -0
- package/dist/exports/CheckBox.d.ts +2 -0
- package/dist/exports/DatePicker.d.ts +3 -0
- package/dist/exports/DialogModal.d.ts +2 -0
- package/dist/exports/DrawerDesktop.d.ts +4 -0
- package/dist/exports/DrawerMobile.d.ts +4 -0
- package/dist/exports/DropZone.d.ts +3 -0
- package/dist/exports/FAButton.d.ts +1 -0
- package/dist/exports/Header.d.ts +2 -0
- package/dist/exports/Icons.d.ts +1 -0
- package/dist/exports/Image.d.ts +1 -0
- package/dist/exports/ImageGallery.d.ts +2 -0
- package/dist/exports/Input.d.ts +2 -0
- package/dist/exports/InputMultiple.d.ts +3 -0
- package/dist/exports/LayoutGeneric.d.ts +2 -0
- package/dist/exports/Logo.d.ts +1 -0
- package/dist/exports/Menu.d.ts +3 -0
- package/dist/exports/NotificationCard.d.ts +2 -0
- package/dist/exports/OtpInput.d.ts +2 -0
- package/dist/exports/Pagination.d.ts +2 -0
- package/dist/exports/ProfilePictureUpload.d.ts +3 -0
- package/dist/exports/ProgressBar.d.ts +2 -0
- package/dist/exports/PyrionNavigationDrawer.d.ts +2 -0
- package/dist/exports/RadioButton.d.ts +3 -0
- package/dist/exports/RecurrentDatePicker.d.ts +5 -0
- package/dist/exports/RecurrentDatePickerRRule.d.ts +2 -0
- package/dist/exports/Scrollable.d.ts +2 -0
- package/dist/exports/SegmentedButton.d.ts +3 -0
- package/dist/exports/Select.d.ts +5 -0
- package/dist/exports/SelectSearch.d.ts +3 -0
- package/dist/exports/Skeleton.d.ts +3 -0
- package/dist/exports/Spinner.d.ts +3 -0
- package/dist/exports/Steps.d.ts +3 -0
- package/dist/exports/SwipeContainer.d.ts +1 -0
- package/dist/exports/Switch.d.ts +3 -0
- package/dist/exports/TabLinks.d.ts +1 -0
- package/dist/exports/Table.d.ts +1 -0
- package/dist/exports/TextArea.d.ts +1 -0
- package/dist/exports/TicketCard.d.ts +2 -0
- package/dist/exports/Toast.d.ts +3 -0
- package/dist/exports/ToastProvider.d.ts +2 -0
- package/dist/exports/Tooltip.d.ts +2 -0
- package/dist/exports/useDevice.d.ts +1 -0
- package/dist/exports/usePyrionNavigation.d.ts +1 -0
- package/dist/hooks/useClickOutside.d.ts +8 -0
- package/dist/hooks/useDevice.d.ts +1 -0
- package/dist/hooks/useDragScroll.d.ts +29 -0
- package/dist/hooks/useLabelBackground.d.ts +6 -0
- package/dist/iconUtils-D0lVAgGT.js +5 -0
- package/dist/index-BOQuZ0gG.js +34 -0
- package/dist/index.d.ts +104 -0
- package/dist/jsx-runtime-GkKLlHH4.js +263 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/prometeo-design-system.es.js +918 -0
- package/dist/styles.css +1 -0
- package/dist/styles.d.ts +1 -0
- package/dist/useDevice.d.ts +2 -0
- package/dist/useDevice.es.js +13 -0
- package/dist/useDragScroll-CHN9OMwn.js +165 -0
- package/dist/useLabelBackground-BDIHUdND.js +26 -0
- package/dist/usePyrionNavigation.d.ts +4 -0
- package/dist/usePyrionNavigation.es.js +4 -0
- package/dist/utils-X4-h3cum.js +54 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
package/dist/Steps.es.js
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as j } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { motion as r } from "framer-motion";
|
|
4
|
+
import N from "react";
|
|
5
|
+
import { Check as y } from "./Icons/Check.es.js";
|
|
6
|
+
const b = ({
|
|
7
|
+
index: n,
|
|
8
|
+
isHorizontal: t,
|
|
9
|
+
currentStep: u,
|
|
10
|
+
size: s
|
|
11
|
+
}) => {
|
|
12
|
+
const i = n < u, x = n === u - 1, o = {
|
|
13
|
+
horizontal: {
|
|
14
|
+
sm: "w-[44px] h-[2px]",
|
|
15
|
+
md: "w-20 h-1",
|
|
16
|
+
lg: "w-20 h-1"
|
|
17
|
+
},
|
|
18
|
+
vertical: {
|
|
19
|
+
sm: "w-[2px] h-[44px]",
|
|
20
|
+
md: "w-1 h-20",
|
|
21
|
+
lg: "w-1 h-20"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `relative ${t ? o.horizontal[s] : o.vertical[s]}`, children: [
|
|
25
|
+
/* @__PURE__ */ e.jsx(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: "absolute inset-0 rounded-full bg-neutral-medium-default"
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ e.jsx(
|
|
32
|
+
r.div,
|
|
33
|
+
{
|
|
34
|
+
className: "absolute inset-0 rounded-full bg-primary-default-default",
|
|
35
|
+
initial: {
|
|
36
|
+
scaleX: t ? 0 : 1,
|
|
37
|
+
scaleY: t ? 1 : 0,
|
|
38
|
+
opacity: 0
|
|
39
|
+
},
|
|
40
|
+
animate: {
|
|
41
|
+
scaleX: i ? 1 : t ? 0 : 1,
|
|
42
|
+
scaleY: i || t ? 1 : 0,
|
|
43
|
+
opacity: i ? 1 : 0
|
|
44
|
+
},
|
|
45
|
+
transition: {
|
|
46
|
+
duration: 0.2,
|
|
47
|
+
ease: "easeInOut",
|
|
48
|
+
delay: n * 0.1
|
|
49
|
+
},
|
|
50
|
+
style: {
|
|
51
|
+
originX: t ? 0 : 0.5,
|
|
52
|
+
originY: t ? 0.5 : 0
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
x && /* @__PURE__ */ e.jsx(
|
|
57
|
+
r.div,
|
|
58
|
+
{
|
|
59
|
+
className: "absolute inset-0 rounded-full bg-primary-default-default",
|
|
60
|
+
initial: {
|
|
61
|
+
scaleX: t ? 0 : 1,
|
|
62
|
+
scaleY: t ? 1 : 0,
|
|
63
|
+
opacity: 0
|
|
64
|
+
},
|
|
65
|
+
animate: {
|
|
66
|
+
scaleX: 1,
|
|
67
|
+
scaleY: 1,
|
|
68
|
+
opacity: [0, 0.3, 0]
|
|
69
|
+
},
|
|
70
|
+
transition: {
|
|
71
|
+
duration: 1.5,
|
|
72
|
+
repeat: 1 / 0,
|
|
73
|
+
ease: "easeInOut"
|
|
74
|
+
},
|
|
75
|
+
style: {
|
|
76
|
+
originX: t ? 0 : 0.5,
|
|
77
|
+
originY: t ? 0.5 : 0,
|
|
78
|
+
filter: "blur(4px)"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] });
|
|
83
|
+
}, S = ({
|
|
84
|
+
steps: n,
|
|
85
|
+
currentStep: t,
|
|
86
|
+
orientation: u = "horizontal",
|
|
87
|
+
variant: s = "default",
|
|
88
|
+
size: i = "md",
|
|
89
|
+
className: x = "",
|
|
90
|
+
onStepClick: o,
|
|
91
|
+
allowClickableSteps: p = !1
|
|
92
|
+
}) => {
|
|
93
|
+
const c = u === "horizontal", m = {
|
|
94
|
+
sm: {
|
|
95
|
+
circle: "size-7 aspect-square text-xs",
|
|
96
|
+
title: "text-sm",
|
|
97
|
+
description: "text-[11px] w-16",
|
|
98
|
+
spacing: c ? "gap-2" : "gap-1",
|
|
99
|
+
connectorContainer: "px-2",
|
|
100
|
+
iconSize: 20
|
|
101
|
+
},
|
|
102
|
+
md: {
|
|
103
|
+
circle: "w-10 h-10 text-sm",
|
|
104
|
+
title: "text-base",
|
|
105
|
+
description: "text-sm w-20",
|
|
106
|
+
spacing: c ? "gap-3" : "gap-2",
|
|
107
|
+
connectorContainer: "px-2",
|
|
108
|
+
iconSize: 24
|
|
109
|
+
},
|
|
110
|
+
lg: {
|
|
111
|
+
circle: "w-12 h-12 text-base",
|
|
112
|
+
title: "text-lg",
|
|
113
|
+
description: "text-base w-28",
|
|
114
|
+
spacing: c ? "gap-4" : "gap-3",
|
|
115
|
+
connectorContainer: "px-2",
|
|
116
|
+
iconSize: 28
|
|
117
|
+
}
|
|
118
|
+
}, w = (a) => a < t ? "completed" : a === t ? "current" : "upcoming", g = (a) => {
|
|
119
|
+
const l = `${m[i].circle} rounded-full flex items-center justify-center font-medium`;
|
|
120
|
+
switch (a) {
|
|
121
|
+
case "completed":
|
|
122
|
+
return `${l} bg-primary-default-default text-neutral-strong-default shadow-lg`;
|
|
123
|
+
case "current":
|
|
124
|
+
return `${l} ring-[2px] ring-primary-default-default text-neutral-strong-default shadow-lg duration-900 `;
|
|
125
|
+
default:
|
|
126
|
+
return `${l} bg-neutral-medium-default text-neutral-medium-default`;
|
|
127
|
+
}
|
|
128
|
+
}, h = (a) => {
|
|
129
|
+
p && o && o(a);
|
|
130
|
+
}, v = c ? `flex items-center w-full justify-center ${x}` : `space-y-0 ${x}`;
|
|
131
|
+
return /* @__PURE__ */ e.jsx("div", { className: v, children: n.map((a, l) => {
|
|
132
|
+
const d = w(l), f = p && o;
|
|
133
|
+
return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: c ? /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
|
|
134
|
+
/* @__PURE__ */ e.jsxs("div", { className: "w-max flex flex-col items-center relative", children: [
|
|
135
|
+
/* @__PURE__ */ e.jsx(
|
|
136
|
+
r.div,
|
|
137
|
+
{
|
|
138
|
+
className: `${g(d)} ${f ? "cursor-pointer" : ""} relative z-10`,
|
|
139
|
+
initial: { scale: 0.8, opacity: 0 },
|
|
140
|
+
animate: { scale: 1, opacity: 1 },
|
|
141
|
+
transition: { duration: 0.3, delay: l * 0.3 },
|
|
142
|
+
whileTap: f ? { scale: 0.95 } : {},
|
|
143
|
+
onClick: () => h(l),
|
|
144
|
+
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : N.cloneElement(a.icon, { size: m[i].iconSize })
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
s !== "minimal" && s !== "numbered-minimal" && a.description && /* @__PURE__ */ e.jsx("p", { className: j(
|
|
148
|
+
"absolute text-center w-28 -bottom-2 translate-y-full",
|
|
149
|
+
m[i].description,
|
|
150
|
+
"text-gray-400 mt-2 text-center",
|
|
151
|
+
d === "current" ? "text-neutral-strong-default font-semibold " : "text-neutral-medium-default"
|
|
152
|
+
), children: a.description })
|
|
153
|
+
] }),
|
|
154
|
+
l < n.length - 1 && /* @__PURE__ */ e.jsx(
|
|
155
|
+
"div",
|
|
156
|
+
{
|
|
157
|
+
className: `flex items-center w-max ${m[i].connectorContainer}`,
|
|
158
|
+
children: /* @__PURE__ */ e.jsx(
|
|
159
|
+
b,
|
|
160
|
+
{
|
|
161
|
+
index: l,
|
|
162
|
+
isHorizontal: c,
|
|
163
|
+
currentStep: t,
|
|
164
|
+
size: i
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
] }) : /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col items-center w-max", children: [
|
|
170
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center w-full relative", children: [
|
|
171
|
+
/* @__PURE__ */ e.jsx(
|
|
172
|
+
r.div,
|
|
173
|
+
{
|
|
174
|
+
className: `${g(d)} ${f ? "cursor-pointer" : ""}`,
|
|
175
|
+
initial: { scale: 0.8, opacity: 0 },
|
|
176
|
+
animate: { scale: 1, opacity: 1 },
|
|
177
|
+
transition: { duration: 0.3, delay: l * 0.1 },
|
|
178
|
+
whileTap: f ? { scale: 0.95 } : {},
|
|
179
|
+
onClick: () => h(l),
|
|
180
|
+
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : a.icon
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
s !== "minimal" && s !== "numbered-minimal" && /* @__PURE__ */ e.jsx(
|
|
184
|
+
r.div,
|
|
185
|
+
{
|
|
186
|
+
className: `absolute -right-4 top-1/2 -translate-y-1/2 translate-x-full ml-4 gap-3 flex flex-col w-full ${m[i].spacing} flex h-full`,
|
|
187
|
+
initial: { opacity: 0, x: -10 },
|
|
188
|
+
animate: { opacity: 1, x: 0 },
|
|
189
|
+
transition: { duration: 0.3, delay: l * 0.1 + 0.1 },
|
|
190
|
+
children: a.description && /* @__PURE__ */ e.jsx("p", { className: j(
|
|
191
|
+
"h-full text-start flex items-center justify-start ",
|
|
192
|
+
m[i].description,
|
|
193
|
+
"text-gray-400",
|
|
194
|
+
d === "current" ? "text-neutral-strong-default font-semibold " : "text-neutral-medium-default"
|
|
195
|
+
), children: a.description })
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
] }),
|
|
199
|
+
l < n.length - 1 && /* @__PURE__ */ e.jsx("div", { className: "py-2", children: /* @__PURE__ */ e.jsx(
|
|
200
|
+
b,
|
|
201
|
+
{
|
|
202
|
+
index: l,
|
|
203
|
+
isHorizontal: c,
|
|
204
|
+
currentStep: t,
|
|
205
|
+
size: i
|
|
206
|
+
}
|
|
207
|
+
) })
|
|
208
|
+
] }) }, a.id);
|
|
209
|
+
}) });
|
|
210
|
+
};
|
|
211
|
+
export {
|
|
212
|
+
S as Steps,
|
|
213
|
+
S as default
|
|
214
|
+
};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { j as o } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { useState as d, useRef as D, useEffect as L } from "react";
|
|
4
|
+
const O = ({
|
|
5
|
+
children: x,
|
|
6
|
+
className: P,
|
|
7
|
+
showIndicators: R = !0,
|
|
8
|
+
showControls: W = !0,
|
|
9
|
+
// Por defecto mostrar controles
|
|
10
|
+
autoPlay: k = !1,
|
|
11
|
+
autoPlayInterval: $ = 3e3,
|
|
12
|
+
onSwipe: m,
|
|
13
|
+
threshold: Y = 50,
|
|
14
|
+
disabled: l = !1,
|
|
15
|
+
cardWidth: f,
|
|
16
|
+
// Ancho personalizado de tarjetas
|
|
17
|
+
visibleCards: r,
|
|
18
|
+
// Número de tarjetas visibles
|
|
19
|
+
width: p = "100%",
|
|
20
|
+
// Ancho por defecto
|
|
21
|
+
height: v = "300px",
|
|
22
|
+
// Alto por defecto
|
|
23
|
+
gap: g = 16
|
|
24
|
+
// Separación por defecto entre cards
|
|
25
|
+
}) => {
|
|
26
|
+
const [n, h] = d(0), [u, N] = d(!1), [T, B] = d({ x: 0, y: 0 }), [I, w] = d({ x: 0, y: 0 }), y = D(null), c = D(null), s = x.length, C = f ? typeof f == "number" ? `${f}px` : f : r && r > 0 ? `${100 / r}%` : "100%";
|
|
27
|
+
L(() => (k && s > 1 && !u && (c.current = setInterval(() => {
|
|
28
|
+
h((e) => (e + 1) % s);
|
|
29
|
+
}, $)), () => {
|
|
30
|
+
c.current && clearInterval(c.current);
|
|
31
|
+
}), [k, $, s, u]), L(() => {
|
|
32
|
+
u && c.current && clearInterval(c.current);
|
|
33
|
+
}, [u]);
|
|
34
|
+
const S = (e, t) => {
|
|
35
|
+
l || (N(!0), B({ x: e, y: t }), w({ x: e, y: t }));
|
|
36
|
+
}, E = (e, t) => {
|
|
37
|
+
!u || l || w({ x: e, y: t });
|
|
38
|
+
}, X = () => {
|
|
39
|
+
if (!u || l) return;
|
|
40
|
+
const e = I.x - T.x;
|
|
41
|
+
if (Math.abs(e) > Y) {
|
|
42
|
+
if (e > 0 && n > 0) {
|
|
43
|
+
const a = n - 1;
|
|
44
|
+
h(a), m?.(a);
|
|
45
|
+
} else if (e < 0 && n < s - 1) {
|
|
46
|
+
const a = n + 1;
|
|
47
|
+
h(a), m?.(a);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
N(!1), w({ x: 0, y: 0 });
|
|
51
|
+
}, U = (e) => {
|
|
52
|
+
e.preventDefault(), S(e.clientX, e.clientY);
|
|
53
|
+
}, _ = (e) => {
|
|
54
|
+
E(e.clientX, e.clientY);
|
|
55
|
+
}, b = () => {
|
|
56
|
+
X();
|
|
57
|
+
}, q = (e) => {
|
|
58
|
+
const t = e.touches[0];
|
|
59
|
+
S(t.clientX, t.clientY);
|
|
60
|
+
}, z = (e) => {
|
|
61
|
+
const t = e.touches[0];
|
|
62
|
+
E(t.clientX, t.clientY);
|
|
63
|
+
}, A = () => {
|
|
64
|
+
X();
|
|
65
|
+
}, j = (e) => {
|
|
66
|
+
l || e < 0 || e >= s || (h(e), m?.(e));
|
|
67
|
+
}, F = () => {
|
|
68
|
+
const e = I.x - T.x;
|
|
69
|
+
let t = 0;
|
|
70
|
+
if (r && r > 0) {
|
|
71
|
+
const M = y.current ? (y.current.offsetWidth - g * (r - 1)) / r : 0;
|
|
72
|
+
t = n * (M + g);
|
|
73
|
+
} else
|
|
74
|
+
t = n * 100;
|
|
75
|
+
const a = r && r > 0 ? `translateX(-${t}px)` : `translateX(-${n * 100}%)`;
|
|
76
|
+
if (u) {
|
|
77
|
+
const M = `translateX(${e}px)`;
|
|
78
|
+
return `${a} ${M}`;
|
|
79
|
+
}
|
|
80
|
+
return a;
|
|
81
|
+
};
|
|
82
|
+
return s === 0 ? null : /* @__PURE__ */ o.jsxs(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
className: i("relative overflow-hidden", P),
|
|
86
|
+
style: {
|
|
87
|
+
width: typeof p == "number" ? `${p}px` : p,
|
|
88
|
+
height: typeof v == "number" ? `${v}px` : v
|
|
89
|
+
},
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ o.jsx(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
ref: y,
|
|
95
|
+
className: i(
|
|
96
|
+
"relative flex flex-row transition-transform duration-300 ease-out",
|
|
97
|
+
l && "pointer-events-none opacity-50"
|
|
98
|
+
),
|
|
99
|
+
style: {
|
|
100
|
+
transform: F(),
|
|
101
|
+
gap: `${g}px`
|
|
102
|
+
},
|
|
103
|
+
onMouseDown: U,
|
|
104
|
+
onMouseMove: _,
|
|
105
|
+
onMouseUp: b,
|
|
106
|
+
onMouseLeave: b,
|
|
107
|
+
onTouchStart: q,
|
|
108
|
+
onTouchMove: z,
|
|
109
|
+
onTouchEnd: A,
|
|
110
|
+
children: x.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
className: "flex-shrink-0 h-full",
|
|
114
|
+
style: {
|
|
115
|
+
width: C
|
|
116
|
+
},
|
|
117
|
+
children: e
|
|
118
|
+
},
|
|
119
|
+
t
|
|
120
|
+
))
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
R && s > 1 && /* @__PURE__ */ o.jsx("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2", children: x.map((e, t) => /* @__PURE__ */ o.jsx(
|
|
124
|
+
"button",
|
|
125
|
+
{
|
|
126
|
+
onClick: () => j(t),
|
|
127
|
+
className: i(
|
|
128
|
+
"w-2 h-2 rounded-full transition-all duration-200",
|
|
129
|
+
t === n ? "bg-primary-default-default" : "bg-neutral-medium-default hover:bg-neutral-default-default"
|
|
130
|
+
),
|
|
131
|
+
"aria-label": `Ir al elemento ${t + 1}`
|
|
132
|
+
},
|
|
133
|
+
t
|
|
134
|
+
)) }),
|
|
135
|
+
W && s > 1 && /* @__PURE__ */ o.jsxs("div", { className: "absolute inset-0 flex items-center justify-between pointer-events-none", children: [
|
|
136
|
+
n > 0 && /* @__PURE__ */ o.jsx(
|
|
137
|
+
"button",
|
|
138
|
+
{
|
|
139
|
+
onClick: () => j(n - 1),
|
|
140
|
+
className: i(
|
|
141
|
+
"p-2 rounded-full bg-white shadow-md hover:shadow-lg transition-shadow pointer-events-auto",
|
|
142
|
+
l && "pointer-events-none opacity-50"
|
|
143
|
+
),
|
|
144
|
+
"aria-label": "Elemento anterior",
|
|
145
|
+
children: /* @__PURE__ */ o.jsx(
|
|
146
|
+
"svg",
|
|
147
|
+
{
|
|
148
|
+
className: "w-4 h-4 text-neutral-default-default rotate-180",
|
|
149
|
+
fill: "none",
|
|
150
|
+
stroke: "currentColor",
|
|
151
|
+
viewBox: "0 0 24 24",
|
|
152
|
+
children: /* @__PURE__ */ o.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
n < s - 1 && /* @__PURE__ */ o.jsx(
|
|
158
|
+
"button",
|
|
159
|
+
{
|
|
160
|
+
onClick: () => j(n + 1),
|
|
161
|
+
className: i(
|
|
162
|
+
"p-2 rounded-full bg-white shadow-md hover:shadow-lg transition-shadow pointer-events-auto",
|
|
163
|
+
l && "pointer-events-none opacity-50"
|
|
164
|
+
),
|
|
165
|
+
"aria-label": "Elemento siguiente",
|
|
166
|
+
children: /* @__PURE__ */ o.jsx(
|
|
167
|
+
"svg",
|
|
168
|
+
{
|
|
169
|
+
className: "w-4 h-4 text-neutral-default-default",
|
|
170
|
+
fill: "none",
|
|
171
|
+
stroke: "currentColor",
|
|
172
|
+
viewBox: "0 0 24 24",
|
|
173
|
+
children: /* @__PURE__ */ o.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
] })
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
export {
|
|
184
|
+
O as default
|
|
185
|
+
};
|
package/dist/Switch.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as r } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { memo as w, useRef as b } from "react";
|
|
4
|
+
import { motion as l } from "framer-motion";
|
|
5
|
+
const c = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
|
|
6
|
+
const n = b(null), h = (u) => {
|
|
7
|
+
if (!n.current || t) return;
|
|
8
|
+
u.preventDefault(), u.stopPropagation();
|
|
9
|
+
const g = !n.current.checked;
|
|
10
|
+
f(d, g);
|
|
11
|
+
}, i = {
|
|
12
|
+
on: {
|
|
13
|
+
default: {
|
|
14
|
+
container: "bg-primary-default-default",
|
|
15
|
+
dot: "bg-[var(--neutral-200)]"
|
|
16
|
+
},
|
|
17
|
+
disabled: {
|
|
18
|
+
container: "bg-neutral-weak-default",
|
|
19
|
+
dot: "bg-neutral-weak-focused"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
off: {
|
|
23
|
+
default: {
|
|
24
|
+
container: "bg-neutral-weak-hover",
|
|
25
|
+
dot: "bg-neutral-medium-default"
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
container: "bg-neutral-medium-default",
|
|
29
|
+
dot: "bg-neutral-weak-default"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}, m = {
|
|
33
|
+
on: {
|
|
34
|
+
left: "unset",
|
|
35
|
+
right: -4
|
|
36
|
+
},
|
|
37
|
+
off: {
|
|
38
|
+
left: -4,
|
|
39
|
+
right: "unset"
|
|
40
|
+
}
|
|
41
|
+
}, p = {
|
|
42
|
+
on: {
|
|
43
|
+
width: 24,
|
|
44
|
+
height: 24
|
|
45
|
+
},
|
|
46
|
+
off: {
|
|
47
|
+
width: 16
|
|
48
|
+
}
|
|
49
|
+
}, e = o ? "on" : "off", s = t ? "disabled" : "default";
|
|
50
|
+
return /* @__PURE__ */ a.jsxs("div", { children: [
|
|
51
|
+
/* @__PURE__ */ a.jsx("input", { type: "checkbox", hidden: !0, ref: n, checked: o, disabled: t }),
|
|
52
|
+
/* @__PURE__ */ a.jsx(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
onClick: h,
|
|
56
|
+
className: r(
|
|
57
|
+
"w-14 h-8 rounded-full relative px-2 cursor-pointer",
|
|
58
|
+
t && "cursor-default",
|
|
59
|
+
i[e][s].container
|
|
60
|
+
),
|
|
61
|
+
children: /* @__PURE__ */ a.jsx(
|
|
62
|
+
l.span,
|
|
63
|
+
{
|
|
64
|
+
animate: m[e],
|
|
65
|
+
whileHover: t ? {} : {
|
|
66
|
+
background: e === "off" ? "rgba(29, 27, 32, 0.08)" : "rgba(101, 85, 143, 0.12)"
|
|
67
|
+
},
|
|
68
|
+
className: r(
|
|
69
|
+
"absolute top-1/2 -translate-y-1/2 grid place-items-center ",
|
|
70
|
+
"size-10 aspect-square rounded-full absolute top-1/2 -translate-y-1/2"
|
|
71
|
+
),
|
|
72
|
+
children: /* @__PURE__ */ a.jsx(
|
|
73
|
+
l.span,
|
|
74
|
+
{
|
|
75
|
+
animate: p[e],
|
|
76
|
+
whileTap: t ? {} : {
|
|
77
|
+
width: 28,
|
|
78
|
+
height: 28
|
|
79
|
+
},
|
|
80
|
+
className: r(
|
|
81
|
+
"size-4 aspect-square rounded-full z-10",
|
|
82
|
+
i[e][s].dot
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] });
|
|
91
|
+
};
|
|
92
|
+
c.displayName = "Switch";
|
|
93
|
+
const y = w(c);
|
|
94
|
+
export {
|
|
95
|
+
y as Switch,
|
|
96
|
+
y as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { j as n } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { motion as x } from "framer-motion";
|
|
3
|
+
import { memo as N } from "react";
|
|
4
|
+
import { c as r } from "./cn-B6yFEsav.js";
|
|
5
|
+
function c({
|
|
6
|
+
items: t,
|
|
7
|
+
activeTab: e,
|
|
8
|
+
onTabChange: i,
|
|
9
|
+
className: l,
|
|
10
|
+
tabClassName: d,
|
|
11
|
+
activeTabClassName: o,
|
|
12
|
+
indicatorClassName: f,
|
|
13
|
+
animated: b = !0,
|
|
14
|
+
renderTab: m
|
|
15
|
+
}) {
|
|
16
|
+
const h = (a) => {
|
|
17
|
+
a.disabled || i?.(a.id, a);
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ n.jsx(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: r(
|
|
23
|
+
"flex flex-row justify-around items-end relative border-b border-neutral-strong-default w-full md:justify-start md:px-10 md:gap-5",
|
|
24
|
+
l
|
|
25
|
+
),
|
|
26
|
+
role: "tablist",
|
|
27
|
+
children: t?.map((a) => {
|
|
28
|
+
const s = e === a.id, u = () => h(a);
|
|
29
|
+
return m ? /* @__PURE__ */ n.jsx("div", { children: m(a, s, u) }, a.id) : /* @__PURE__ */ n.jsxs(
|
|
30
|
+
"button",
|
|
31
|
+
{
|
|
32
|
+
onClick: u,
|
|
33
|
+
disabled: a.disabled,
|
|
34
|
+
className: r(
|
|
35
|
+
"relative flex justify-center items-center h-10 px-4 font-medium focus:outline-none transition-colors",
|
|
36
|
+
!a.disabled && "hover:text-primary-default-default cursor-pointer",
|
|
37
|
+
a.disabled && "opacity-50 cursor-default",
|
|
38
|
+
d,
|
|
39
|
+
s && o
|
|
40
|
+
),
|
|
41
|
+
tabIndex: a.disabled ? -1 : 0,
|
|
42
|
+
"aria-label": a.title,
|
|
43
|
+
role: "tab",
|
|
44
|
+
"aria-selected": s,
|
|
45
|
+
title: a.description,
|
|
46
|
+
children: [
|
|
47
|
+
s && b && /* @__PURE__ */ n.jsx(
|
|
48
|
+
x.div,
|
|
49
|
+
{
|
|
50
|
+
layoutId: "tab-indicator",
|
|
51
|
+
className: r(
|
|
52
|
+
"absolute -bottom-px left-0 right-0 h-[5px] rounded-t-xl bg-primary-default-default z-0",
|
|
53
|
+
f
|
|
54
|
+
),
|
|
55
|
+
transition: {
|
|
56
|
+
type: "spring",
|
|
57
|
+
stiffness: 250,
|
|
58
|
+
damping: 17
|
|
59
|
+
},
|
|
60
|
+
"aria-hidden": "true"
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ n.jsx(
|
|
64
|
+
"span",
|
|
65
|
+
{
|
|
66
|
+
className: r(
|
|
67
|
+
"relative z-10",
|
|
68
|
+
s ? "text-primary-default-default font-semibold text-md" : "text-neutral-medium-default font-medium text-md"
|
|
69
|
+
),
|
|
70
|
+
children: a.title
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
a.id
|
|
76
|
+
);
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
c.displayName = "TabLinks";
|
|
82
|
+
const C = N(c, (t, e) => {
|
|
83
|
+
if (t.activeTab !== e.activeTab || t.className !== e.className || t.tabClassName !== e.tabClassName || t.activeTabClassName !== e.activeTabClassName || t.indicatorClassName !== e.indicatorClassName || t.animated !== e.animated || t.onTabChange !== e.onTabChange || t.renderTab !== e.renderTab || t.items.length !== e.items.length)
|
|
84
|
+
return !1;
|
|
85
|
+
for (let i = 0; i < t.items.length; i++) {
|
|
86
|
+
const l = t.items[i], d = e.items[i];
|
|
87
|
+
if (l.id !== d.id || l.title !== d.title || l.disabled !== d.disabled || l.description !== d.description)
|
|
88
|
+
return !1;
|
|
89
|
+
}
|
|
90
|
+
return !0;
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
C as default
|
|
94
|
+
};
|
package/dist/Table.d.ts
ADDED