prometeo-design-system 3.1.5 → 3.1.6
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
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { j as p } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as $ } from "./cn-B6yFEsav.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import ge, { memo as Re } from "react";
|
|
5
|
+
import { Check as De } from "./Icons/Check.es.js";
|
|
6
|
+
import { Error as Oe } from "./Icons/Error.es.js";
|
|
7
|
+
var Te = Object.defineProperty, We = Object.defineProperties, Ae = Object.getOwnPropertyDescriptors, ee = Object.getOwnPropertySymbols, be = Object.prototype.hasOwnProperty, we = Object.prototype.propertyIsEnumerable, xe = (t, a, r) => a in t ? Te(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, Be = (t, a) => {
|
|
8
|
+
for (var r in a || (a = {})) be.call(a, r) && xe(t, r, a[r]);
|
|
9
|
+
if (ee) for (var r of ee(a)) we.call(a, r) && xe(t, r, a[r]);
|
|
10
|
+
return t;
|
|
11
|
+
}, _e = (t, a) => We(t, Ae(a)), Ie = (t, a) => {
|
|
12
|
+
var r = {};
|
|
13
|
+
for (var u in t) be.call(t, u) && a.indexOf(u) < 0 && (r[u] = t[u]);
|
|
14
|
+
if (t != null && ee) for (var u of ee(t)) a.indexOf(u) < 0 && we.call(t, u) && (r[u] = t[u]);
|
|
15
|
+
return r;
|
|
16
|
+
};
|
|
17
|
+
function Fe(t) {
|
|
18
|
+
let a = setTimeout(t, 0), r = setTimeout(t, 10), u = setTimeout(t, 50);
|
|
19
|
+
return [a, r, u];
|
|
20
|
+
}
|
|
21
|
+
function He(t) {
|
|
22
|
+
let a = n.useRef();
|
|
23
|
+
return n.useEffect(() => {
|
|
24
|
+
a.current = t;
|
|
25
|
+
}), a.current;
|
|
26
|
+
}
|
|
27
|
+
var Le = 18, ye = 40, $e = `${ye}px`, ze = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
28
|
+
function Ge({ containerRef: t, inputRef: a, pushPasswordManagerStrategy: r, isFocused: u }) {
|
|
29
|
+
let [M, d] = n.useState(!1), [D, k] = n.useState(!1), [O, B] = n.useState(!1), _ = n.useMemo(() => r === "none" ? !1 : (r === "increase-width" || r === "experimental-no-flickering") && M && D, [M, D, r]), x = n.useCallback(() => {
|
|
30
|
+
let f = t.current, v = a.current;
|
|
31
|
+
if (!f || !v || O || r === "none") return;
|
|
32
|
+
let m = f, b = m.getBoundingClientRect().left + m.offsetWidth, w = m.getBoundingClientRect().top + m.offsetHeight / 2, o = b - Le, P = w;
|
|
33
|
+
document.querySelectorAll(ze).length === 0 && document.elementFromPoint(o, P) === f || (d(!0), B(!0));
|
|
34
|
+
}, [t, a, O, r]);
|
|
35
|
+
return n.useEffect(() => {
|
|
36
|
+
let f = t.current;
|
|
37
|
+
if (!f || r === "none") return;
|
|
38
|
+
function v() {
|
|
39
|
+
let b = window.innerWidth - f.getBoundingClientRect().right;
|
|
40
|
+
k(b >= ye);
|
|
41
|
+
}
|
|
42
|
+
v();
|
|
43
|
+
let m = setInterval(v, 1e3);
|
|
44
|
+
return () => {
|
|
45
|
+
clearInterval(m);
|
|
46
|
+
};
|
|
47
|
+
}, [t, r]), n.useEffect(() => {
|
|
48
|
+
let f = u || document.activeElement === a.current;
|
|
49
|
+
if (r === "none" || !f) return;
|
|
50
|
+
let v = setTimeout(x, 0), m = setTimeout(x, 2e3), b = setTimeout(x, 5e3), w = setTimeout(() => {
|
|
51
|
+
B(!0);
|
|
52
|
+
}, 6e3);
|
|
53
|
+
return () => {
|
|
54
|
+
clearTimeout(v), clearTimeout(m), clearTimeout(b), clearTimeout(w);
|
|
55
|
+
};
|
|
56
|
+
}, [a, u, r, x]), { hasPWMBadge: M, willPushPWMBadge: _, PWM_BADGE_SPACE_WIDTH: $e };
|
|
57
|
+
}
|
|
58
|
+
var Ve = n.createContext({}), Se = n.forwardRef((t, a) => {
|
|
59
|
+
var r = t, { value: u, onChange: M, maxLength: d, textAlign: D = "left", pattern: k, placeholder: O, inputMode: B = "numeric", onComplete: _, pushPasswordManagerStrategy: x = "increase-width", pasteTransformer: f, containerClassName: v, noScriptCSSFallback: m = qe, render: b, children: w } = r, o = Ie(r, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), P, N, U, T, V;
|
|
60
|
+
let [te, ne] = n.useState(typeof o.defaultValue == "string" ? o.defaultValue : ""), i = u ?? te, E = He(i), q = n.useCallback((e) => {
|
|
61
|
+
M?.(e), ne(e);
|
|
62
|
+
}, [M]), C = n.useMemo(() => k ? typeof k == "string" ? new RegExp(k) : k : null, [k]), c = n.useRef(null), le = n.useRef(null), ae = n.useRef({ value: i, onChange: q, isIOS: typeof window < "u" && ((N = (P = window?.CSS) == null ? void 0 : P.supports) == null ? void 0 : N.call(P, "-webkit-touch-callout", "none")) }), X = n.useRef({ prev: [(U = c.current) == null ? void 0 : U.selectionStart, (T = c.current) == null ? void 0 : T.selectionEnd, (V = c.current) == null ? void 0 : V.selectionDirection] });
|
|
63
|
+
n.useImperativeHandle(a, () => c.current, []), n.useEffect(() => {
|
|
64
|
+
let e = c.current, l = le.current;
|
|
65
|
+
if (!e || !l) return;
|
|
66
|
+
ae.current.value !== e.value && ae.current.onChange(e.value), X.current.prev = [e.selectionStart, e.selectionEnd, e.selectionDirection];
|
|
67
|
+
function h() {
|
|
68
|
+
if (document.activeElement !== e) {
|
|
69
|
+
J(null), K(null);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
let s = e.selectionStart, g = e.selectionEnd, Y = e.selectionDirection, j = e.maxLength, F = e.value, R = X.current.prev, W = -1, A = -1, H;
|
|
73
|
+
if (F.length !== 0 && s !== null && g !== null) {
|
|
74
|
+
let Me = s === g, ke = s === F.length && F.length < j;
|
|
75
|
+
if (Me && !ke) {
|
|
76
|
+
let L = s;
|
|
77
|
+
if (L === 0) W = 0, A = 1, H = "forward";
|
|
78
|
+
else if (L === j) W = L - 1, A = L, H = "backward";
|
|
79
|
+
else if (j > 1 && F.length > 1) {
|
|
80
|
+
let ie = 0;
|
|
81
|
+
if (R[0] !== null && R[1] !== null) {
|
|
82
|
+
H = L < R[1] ? "backward" : "forward";
|
|
83
|
+
let Ne = R[0] === R[1] && R[0] < j;
|
|
84
|
+
H === "backward" && !Ne && (ie = -1);
|
|
85
|
+
}
|
|
86
|
+
W = ie + L, A = ie + L + 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
W !== -1 && A !== -1 && W !== A && c.current.setSelectionRange(W, A, H);
|
|
90
|
+
}
|
|
91
|
+
let he = W !== -1 ? W : s, ve = A !== -1 ? A : g, Ce = H ?? Y;
|
|
92
|
+
J(he), K(ve), X.current.prev = [he, ve, Ce];
|
|
93
|
+
}
|
|
94
|
+
if (document.addEventListener("selectionchange", h, { capture: !0 }), h(), document.activeElement === e && re(!0), !document.getElementById("input-otp-style")) {
|
|
95
|
+
let s = document.createElement("style");
|
|
96
|
+
if (s.id = "input-otp-style", document.head.appendChild(s), s.sheet) {
|
|
97
|
+
let g = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
|
|
98
|
+
Q(s.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), Q(s.sheet, `[data-input-otp]:autofill { ${g} }`), Q(s.sheet, `[data-input-otp]:-webkit-autofill { ${g} }`), Q(s.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), Q(s.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
let y = () => {
|
|
102
|
+
l && l.style.setProperty("--root-height", `${e.clientHeight}px`);
|
|
103
|
+
};
|
|
104
|
+
y();
|
|
105
|
+
let S = new ResizeObserver(y);
|
|
106
|
+
return S.observe(e), () => {
|
|
107
|
+
document.removeEventListener("selectionchange", h, { capture: !0 }), S.disconnect();
|
|
108
|
+
};
|
|
109
|
+
}, []);
|
|
110
|
+
let [ue, ce] = n.useState(!1), [Z, re] = n.useState(!1), [I, J] = n.useState(null), [z, K] = n.useState(null);
|
|
111
|
+
n.useEffect(() => {
|
|
112
|
+
Fe(() => {
|
|
113
|
+
var e, l, h, y;
|
|
114
|
+
(e = c.current) == null || e.dispatchEvent(new Event("input"));
|
|
115
|
+
let S = (l = c.current) == null ? void 0 : l.selectionStart, s = (h = c.current) == null ? void 0 : h.selectionEnd, g = (y = c.current) == null ? void 0 : y.selectionDirection;
|
|
116
|
+
S !== null && s !== null && (J(S), K(s), X.current.prev = [S, s, g]);
|
|
117
|
+
});
|
|
118
|
+
}, [i, Z]), n.useEffect(() => {
|
|
119
|
+
E !== void 0 && i !== E && E.length < d && i.length === d && _?.(i);
|
|
120
|
+
}, [d, _, E, i]);
|
|
121
|
+
let G = Ge({ containerRef: le, inputRef: c, pushPasswordManagerStrategy: x, isFocused: Z }), de = n.useCallback((e) => {
|
|
122
|
+
let l = e.currentTarget.value.slice(0, d);
|
|
123
|
+
if (l.length > 0 && C && !C.test(l)) {
|
|
124
|
+
e.preventDefault();
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
typeof E == "string" && l.length < E.length && document.dispatchEvent(new Event("selectionchange")), q(l);
|
|
128
|
+
}, [d, q, E, C]), fe = n.useCallback(() => {
|
|
129
|
+
var e;
|
|
130
|
+
if (c.current) {
|
|
131
|
+
let l = Math.min(c.current.value.length, d - 1), h = c.current.value.length;
|
|
132
|
+
(e = c.current) == null || e.setSelectionRange(l, h), J(l), K(h);
|
|
133
|
+
}
|
|
134
|
+
re(!0);
|
|
135
|
+
}, [d]), pe = n.useCallback((e) => {
|
|
136
|
+
var l, h;
|
|
137
|
+
let y = c.current;
|
|
138
|
+
if (!f && (!ae.current.isIOS || !e.clipboardData || !y)) return;
|
|
139
|
+
let S = e.clipboardData.getData("text/plain"), s = f ? f(S) : S;
|
|
140
|
+
e.preventDefault();
|
|
141
|
+
let g = (l = c.current) == null ? void 0 : l.selectionStart, Y = (h = c.current) == null ? void 0 : h.selectionEnd, j = (g !== Y ? i.slice(0, g) + s + i.slice(Y) : i.slice(0, g) + s + i.slice(g)).slice(0, d);
|
|
142
|
+
if (j.length > 0 && C && !C.test(j)) return;
|
|
143
|
+
y.value = j, q(j);
|
|
144
|
+
let F = Math.min(j.length, d - 1), R = j.length;
|
|
145
|
+
y.setSelectionRange(F, R), J(F), K(R);
|
|
146
|
+
}, [d, q, C, i]), Ee = n.useMemo(() => ({ position: "relative", cursor: o.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [o.disabled]), me = n.useMemo(() => ({ position: "absolute", inset: 0, width: G.willPushPWMBadge ? `calc(100% + ${G.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: G.willPushPWMBadge ? `inset(0 ${G.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: D, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [G.PWM_BADGE_SPACE_WIDTH, G.willPushPWMBadge, D]), je = n.useMemo(() => n.createElement("input", _e(Be({ autoComplete: o.autoComplete || "one-time-code" }, o), { "data-input-otp": !0, "data-input-otp-placeholder-shown": i.length === 0 || void 0, "data-input-otp-mss": I, "data-input-otp-mse": z, inputMode: B, pattern: C?.source, "aria-placeholder": O, style: me, maxLength: d, value: i, ref: c, onPaste: (e) => {
|
|
147
|
+
var l;
|
|
148
|
+
pe(e), (l = o.onPaste) == null || l.call(o, e);
|
|
149
|
+
}, onChange: de, onMouseOver: (e) => {
|
|
150
|
+
var l;
|
|
151
|
+
ce(!0), (l = o.onMouseOver) == null || l.call(o, e);
|
|
152
|
+
}, onMouseLeave: (e) => {
|
|
153
|
+
var l;
|
|
154
|
+
ce(!1), (l = o.onMouseLeave) == null || l.call(o, e);
|
|
155
|
+
}, onFocus: (e) => {
|
|
156
|
+
var l;
|
|
157
|
+
fe(), (l = o.onFocus) == null || l.call(o, e);
|
|
158
|
+
}, onBlur: (e) => {
|
|
159
|
+
var l;
|
|
160
|
+
re(!1), (l = o.onBlur) == null || l.call(o, e);
|
|
161
|
+
} })), [de, fe, pe, B, me, d, z, I, o, C?.source, i]), oe = n.useMemo(() => ({ slots: Array.from({ length: d }).map((e, l) => {
|
|
162
|
+
var h;
|
|
163
|
+
let y = Z && I !== null && z !== null && (I === z && l === I || l >= I && l < z), S = i[l] !== void 0 ? i[l] : null, s = i[0] !== void 0 ? null : (h = O?.[l]) != null ? h : null;
|
|
164
|
+
return { char: S, placeholderChar: s, isActive: y, hasFakeCaret: y && S === null };
|
|
165
|
+
}), isFocused: Z, isHovering: !o.disabled && ue }), [Z, ue, d, z, I, o.disabled, i]), Pe = n.useMemo(() => b ? b(oe) : n.createElement(Ve.Provider, { value: oe }, w), [w, oe, b]);
|
|
166
|
+
return n.createElement(n.Fragment, null, m !== null && n.createElement("noscript", null, n.createElement("style", null, m)), n.createElement("div", { ref: le, "data-input-otp-container": !0, style: Ee, className: v }, Pe, n.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, je)));
|
|
167
|
+
});
|
|
168
|
+
Se.displayName = "Input";
|
|
169
|
+
function Q(t, a) {
|
|
170
|
+
try {
|
|
171
|
+
t.insertRule(a);
|
|
172
|
+
} catch {
|
|
173
|
+
console.error("input-otp could not insert CSS rule:", a);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
var qe = `
|
|
177
|
+
[data-input-otp] {
|
|
178
|
+
--nojs-bg: white !important;
|
|
179
|
+
--nojs-fg: black !important;
|
|
180
|
+
|
|
181
|
+
background-color: var(--nojs-bg) !important;
|
|
182
|
+
color: var(--nojs-fg) !important;
|
|
183
|
+
caret-color: var(--nojs-fg) !important;
|
|
184
|
+
letter-spacing: .25em !important;
|
|
185
|
+
text-align: center !important;
|
|
186
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
187
|
+
border-radius: 4px !important;
|
|
188
|
+
width: 100% !important;
|
|
189
|
+
}
|
|
190
|
+
@media (prefers-color-scheme: dark) {
|
|
191
|
+
[data-input-otp] {
|
|
192
|
+
--nojs-bg: black !important;
|
|
193
|
+
--nojs-fg: white !important;
|
|
194
|
+
}
|
|
195
|
+
}`;
|
|
196
|
+
const Ze = ({
|
|
197
|
+
value: t = "",
|
|
198
|
+
name: a,
|
|
199
|
+
onChange: r,
|
|
200
|
+
onComplete: u,
|
|
201
|
+
onBlur: M,
|
|
202
|
+
maxLength: d = 6,
|
|
203
|
+
placeholder: D = "•",
|
|
204
|
+
disabled: k = !1,
|
|
205
|
+
className: O,
|
|
206
|
+
autoFocus: B = !1,
|
|
207
|
+
pasteTransformer: _,
|
|
208
|
+
errorComponent: x,
|
|
209
|
+
hasError: f,
|
|
210
|
+
helperComponent: v,
|
|
211
|
+
helperAlignment: m = "left",
|
|
212
|
+
slotClassName: b,
|
|
213
|
+
variant: w = "default",
|
|
214
|
+
hideSlotsMiddleSeparator: o = !1
|
|
215
|
+
}) => {
|
|
216
|
+
const P = m === "left" ? "justify-start w-full text-left" : m === "center" ? "justify-center" : "justify-end text-right w-full", N = {
|
|
217
|
+
default: {
|
|
218
|
+
text: "text-neutral-default-default",
|
|
219
|
+
icon: null
|
|
220
|
+
},
|
|
221
|
+
error: {
|
|
222
|
+
text: "text-error-default-default",
|
|
223
|
+
icon: /* @__PURE__ */ p.jsx(Oe, { size: 18, className: "text-error-default-default" })
|
|
224
|
+
},
|
|
225
|
+
success: {
|
|
226
|
+
text: "text-success-default-default",
|
|
227
|
+
icon: /* @__PURE__ */ p.jsx(De, { size: 18, className: "text-success-default-default" })
|
|
228
|
+
}
|
|
229
|
+
}, U = (T) => {
|
|
230
|
+
r?.(T, a);
|
|
231
|
+
};
|
|
232
|
+
return /* @__PURE__ */ p.jsx(
|
|
233
|
+
Se,
|
|
234
|
+
{
|
|
235
|
+
value: t,
|
|
236
|
+
name: a,
|
|
237
|
+
autoFocus: B,
|
|
238
|
+
onChange: U,
|
|
239
|
+
onComplete: u,
|
|
240
|
+
onBlur: M,
|
|
241
|
+
maxLength: d,
|
|
242
|
+
disabled: k,
|
|
243
|
+
pasteTransformer: _,
|
|
244
|
+
spellCheck: !1,
|
|
245
|
+
containerClassName: $("group flex items-center has-[:disabled]:opacity-30 w-max justify-center", O),
|
|
246
|
+
render: ({ slots: T }) => {
|
|
247
|
+
const V = Math.floor(T.length / 2), te = T.slice(0, V), ne = T.slice(V);
|
|
248
|
+
return /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
249
|
+
/* @__PURE__ */ p.jsxs("div", { className: "flex items-center", children: [
|
|
250
|
+
/* @__PURE__ */ p.jsx("div", { className: "flex", children: te.map((i, E) => /* @__PURE__ */ p.jsx(se, { ...i, placeholder: D, hasError: f, className: b, variant: w }, E)) }),
|
|
251
|
+
/* @__PURE__ */ p.jsx("hr", { className: $("w-2 h-1 mx-2 border-neutral-default-default", o && "hidden") }),
|
|
252
|
+
/* @__PURE__ */ p.jsx("div", { className: "flex", children: ne.map((i, E) => /* @__PURE__ */ p.jsx(se, { ...i, placeholder: D, hasError: f, variant: w, className: b }, E)) })
|
|
253
|
+
] }),
|
|
254
|
+
f && x && (typeof x == "string" ? /* @__PURE__ */ p.jsxs("span", { className: $("text-error-default-default text-xs mt-1 flex items-center gap-1", P, N.error.text), children: [
|
|
255
|
+
N.error.icon,
|
|
256
|
+
x
|
|
257
|
+
] }) : ge.cloneElement(x, { className: $(
|
|
258
|
+
"text-error-default-default text-xs mt-1",
|
|
259
|
+
P,
|
|
260
|
+
N.error.text,
|
|
261
|
+
x?.props?.className
|
|
262
|
+
) })),
|
|
263
|
+
v && m && (typeof v == "string" ? /* @__PURE__ */ p.jsxs("span", { className: $("text-neutral-medium-default text-xs mt-1 flex items-center gap-1", N[w].text, P), children: [
|
|
264
|
+
N[w].icon,
|
|
265
|
+
v
|
|
266
|
+
] }) : ge.cloneElement(v, { className: $("text-neutral-medium-default text-xs mt-1", P, N[w].text, v?.props?.className) }))
|
|
267
|
+
] });
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
|
+
};
|
|
272
|
+
Ze.displayName = "OtpInput";
|
|
273
|
+
const Je = (t) => {
|
|
274
|
+
const a = {
|
|
275
|
+
default: "border-neutral-default-default",
|
|
276
|
+
error: "border-error-default-default",
|
|
277
|
+
success: "border-success-default-default"
|
|
278
|
+
};
|
|
279
|
+
return /* @__PURE__ */ p.jsxs(
|
|
280
|
+
"div",
|
|
281
|
+
{
|
|
282
|
+
className: $(
|
|
283
|
+
"relative w-12 h-12 md:w-14 md:h-14 text-[1rem] md:text-[1.2rem] text-white",
|
|
284
|
+
"flex items-center justify-center",
|
|
285
|
+
"transition-all duration-300",
|
|
286
|
+
"border-2 border-neutral-default-default rounded-md mx-1",
|
|
287
|
+
{ "border-2 border-primary-default-default": t.isActive },
|
|
288
|
+
a[t.variant || "default"],
|
|
289
|
+
t.className,
|
|
290
|
+
t.hasError && a.error
|
|
291
|
+
),
|
|
292
|
+
children: [
|
|
293
|
+
/* @__PURE__ */ p.jsx("div", { className: "group-has-[input[data-input-otp-placeholder-shown]]:opacity-20", children: t.char ?? t.placeholder }),
|
|
294
|
+
t.hasFakeCaret && /* @__PURE__ */ p.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ p.jsx("div", { className: "w-3 h-1 rounded-full bg-neutral-default-default animate-pulse" }) })
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
);
|
|
298
|
+
}, se = Re(Je);
|
|
299
|
+
se.displayName = "Slot";
|
|
300
|
+
export {
|
|
301
|
+
Ze as default
|
|
302
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { motion as a } from "framer-motion";
|
|
3
|
+
function h({
|
|
4
|
+
currentPage: i = 1,
|
|
5
|
+
totalPages: l = 0,
|
|
6
|
+
onPageChange: p
|
|
7
|
+
}) {
|
|
8
|
+
const n = (e) => {
|
|
9
|
+
e >= 1 && e <= l && e !== i && p?.(e);
|
|
10
|
+
}, d = (() => {
|
|
11
|
+
const e = [];
|
|
12
|
+
if (l > 7)
|
|
13
|
+
if (e.push(1), i <= 4) {
|
|
14
|
+
for (let s = 2; s <= 5; s++)
|
|
15
|
+
e.push(s);
|
|
16
|
+
e.push("ellipsis"), e.push(l);
|
|
17
|
+
} else if (i >= l - 3) {
|
|
18
|
+
e.push("ellipsis");
|
|
19
|
+
for (let s = l - 4; s <= l; s++)
|
|
20
|
+
e.push(s);
|
|
21
|
+
} else {
|
|
22
|
+
e.push("ellipsis");
|
|
23
|
+
for (let s = i - 1; s <= i + 1; s++)
|
|
24
|
+
e.push(s);
|
|
25
|
+
e.push("ellipsis"), e.push(l);
|
|
26
|
+
}
|
|
27
|
+
else
|
|
28
|
+
for (let s = 1; s <= l; s++)
|
|
29
|
+
e.push(s);
|
|
30
|
+
return e;
|
|
31
|
+
})();
|
|
32
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center gap-2 p-4", children: [
|
|
33
|
+
/* @__PURE__ */ t.jsx(
|
|
34
|
+
a.button,
|
|
35
|
+
{
|
|
36
|
+
whileHover: { scale: 1.05 },
|
|
37
|
+
whileTap: { scale: 0.95 },
|
|
38
|
+
onClick: () => n(i - 1),
|
|
39
|
+
disabled: i === 1,
|
|
40
|
+
className: "px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-default transition-colors cursor-pointer",
|
|
41
|
+
children: "Anterior"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex items-center gap-1 select-none", children: d.map((e, o) => {
|
|
45
|
+
if (e === "ellipsis")
|
|
46
|
+
return /* @__PURE__ */ t.jsx(
|
|
47
|
+
"span",
|
|
48
|
+
{
|
|
49
|
+
className: "px-3 py-2 text-neutral-default-default",
|
|
50
|
+
children: "..."
|
|
51
|
+
},
|
|
52
|
+
`ellipsis-${o}`
|
|
53
|
+
);
|
|
54
|
+
const s = e, r = s === i;
|
|
55
|
+
return /* @__PURE__ */ t.jsxs(
|
|
56
|
+
a.button,
|
|
57
|
+
{
|
|
58
|
+
whileHover: r ? {} : { scale: 1.1 },
|
|
59
|
+
whileTap: r ? {} : { scale: 0.9 },
|
|
60
|
+
onClick: () => n(s),
|
|
61
|
+
className: `relative px-3 py-2 min-w-[40px] text-center transition-colors ${r ? "text-primary-default-default" : "text-neutral-default-default hover:text-white cursor-pointer "}`,
|
|
62
|
+
children: [
|
|
63
|
+
r && /* @__PURE__ */ t.jsx(
|
|
64
|
+
a.div,
|
|
65
|
+
{
|
|
66
|
+
layoutId: "activePage",
|
|
67
|
+
className: "absolute inset-0 border border-primary-default-default rounded-md",
|
|
68
|
+
initial: !1,
|
|
69
|
+
transition: {
|
|
70
|
+
type: "spring",
|
|
71
|
+
stiffness: 500,
|
|
72
|
+
damping: 30
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ t.jsx("span", { className: "relative z-10", children: s })
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
s
|
|
80
|
+
);
|
|
81
|
+
}) }),
|
|
82
|
+
/* @__PURE__ */ t.jsx(
|
|
83
|
+
a.button,
|
|
84
|
+
{
|
|
85
|
+
whileHover: { scale: 1.05 },
|
|
86
|
+
whileTap: { scale: 0.95 },
|
|
87
|
+
onClick: () => n(i + 1),
|
|
88
|
+
disabled: i === l,
|
|
89
|
+
className: "px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-default transition-colors cursor-pointer",
|
|
90
|
+
children: "Siguiente"
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] });
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
h as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { j as o } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { memo as L, useRef as w, useLayoutEffect as N } from "react";
|
|
3
|
+
import R from "./Avatar.es.js";
|
|
4
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
5
|
+
const F = {
|
|
6
|
+
sm: "w-16 h-16",
|
|
7
|
+
md: "w-24 h-24",
|
|
8
|
+
lg: "w-32 h-32",
|
|
9
|
+
xl: "w-40 h-40"
|
|
10
|
+
}, A = {
|
|
11
|
+
sm: "w-4 h-4",
|
|
12
|
+
md: "w-5 h-5",
|
|
13
|
+
lg: "w-6 h-6",
|
|
14
|
+
xl: "w-8 h-8"
|
|
15
|
+
}, M = {
|
|
16
|
+
sm: "w-6 h-6",
|
|
17
|
+
md: "w-7 h-7",
|
|
18
|
+
lg: "w-8 h-8",
|
|
19
|
+
xl: "w-10 h-10"
|
|
20
|
+
}, T = {
|
|
21
|
+
sm: "-bottom-1 -right-0.5",
|
|
22
|
+
md: "-bottom-0.5 -right-0.5",
|
|
23
|
+
lg: "bottom-1 right-1",
|
|
24
|
+
xl: "bottom-3 right-2"
|
|
25
|
+
}, b = {
|
|
26
|
+
sm: "w-4 h-4",
|
|
27
|
+
md: "w-5 h-5",
|
|
28
|
+
lg: "w-6 h-6",
|
|
29
|
+
xl: "w-7 h-7"
|
|
30
|
+
}, U = {
|
|
31
|
+
sm: "-top-0.5 -right-0.5",
|
|
32
|
+
md: "-top-1 -right-1",
|
|
33
|
+
lg: "-top-1 -right-0",
|
|
34
|
+
xl: "top-1 right-1"
|
|
35
|
+
};
|
|
36
|
+
function z({
|
|
37
|
+
imageUrl: t,
|
|
38
|
+
fallbackText: e = "S L",
|
|
39
|
+
onFileSelect: y,
|
|
40
|
+
onEditClick: m,
|
|
41
|
+
onRemoveClick: k,
|
|
42
|
+
size: r = "lg",
|
|
43
|
+
className: C,
|
|
44
|
+
disabled: n = !1,
|
|
45
|
+
showRemoveButton: j = !0,
|
|
46
|
+
acceptedTypes: p = "image/*",
|
|
47
|
+
maxFileSize: h = 5 * 1024 * 1024,
|
|
48
|
+
onError: g
|
|
49
|
+
}) {
|
|
50
|
+
const f = w(null), u = w(null), x = (l) => l.type.startsWith("image/") ? l.size > h ? (g?.(
|
|
51
|
+
`La imagen debe ser menor a ${Math.round(h / 1024 / 1024)}MB`
|
|
52
|
+
), !1) : !0 : (g?.("Por favor selecciona un archivo de imagen válido"), !1), v = (l) => {
|
|
53
|
+
const a = l.target.files?.[0];
|
|
54
|
+
a && (x(a) && y?.(a), l.target.value = "");
|
|
55
|
+
}, B = () => {
|
|
56
|
+
n || (m ? m() : f.current?.click());
|
|
57
|
+
}, S = (l) => {
|
|
58
|
+
l.stopPropagation(), !n && k?.();
|
|
59
|
+
};
|
|
60
|
+
return N(() => {
|
|
61
|
+
if (u.current) {
|
|
62
|
+
const a = ((E) => {
|
|
63
|
+
let c = E;
|
|
64
|
+
for (; c && c !== document.body; ) {
|
|
65
|
+
const d = window.getComputedStyle(c).backgroundColor;
|
|
66
|
+
if (d && d !== "transparent" && d !== "rgba(0, 0, 0, 0)")
|
|
67
|
+
return d;
|
|
68
|
+
c = c.parentElement;
|
|
69
|
+
}
|
|
70
|
+
const s = window.getComputedStyle(document.body).backgroundColor;
|
|
71
|
+
return s && s !== "transparent" && s !== "rgba(0, 0, 0, 0)" ? s : "rgb(255, 255, 255)";
|
|
72
|
+
})(
|
|
73
|
+
u.current.parentElement
|
|
74
|
+
);
|
|
75
|
+
u.current.style.borderColor = a;
|
|
76
|
+
}
|
|
77
|
+
}, []), /* @__PURE__ */ o.jsxs(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
className: i("relative inline-block border-inherit group", C),
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ o.jsx(
|
|
83
|
+
"input",
|
|
84
|
+
{
|
|
85
|
+
ref: f,
|
|
86
|
+
type: "file",
|
|
87
|
+
accept: p,
|
|
88
|
+
onChange: v,
|
|
89
|
+
className: "hidden",
|
|
90
|
+
disabled: n
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ o.jsx(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
className: i(
|
|
97
|
+
F[r],
|
|
98
|
+
"rounded-full overflow-hidden flex items-center justify-center relative",
|
|
99
|
+
n && "opacity-50 cursor-not-default"
|
|
100
|
+
),
|
|
101
|
+
children: /* @__PURE__ */ o.jsx(
|
|
102
|
+
R,
|
|
103
|
+
{
|
|
104
|
+
imageUrl: t,
|
|
105
|
+
fallbackText: e,
|
|
106
|
+
sizeImage: r,
|
|
107
|
+
sizeFallback: r
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ o.jsx(
|
|
113
|
+
"button",
|
|
114
|
+
{
|
|
115
|
+
ref: u,
|
|
116
|
+
className: i(
|
|
117
|
+
"absolute bg-primary-default-default rounded-lg border-2 hover:bg-primary-default-hover cursor-pointer grid place-content-center",
|
|
118
|
+
T[r],
|
|
119
|
+
M[r],
|
|
120
|
+
n && "opacity-50 cursor-not-default"
|
|
121
|
+
),
|
|
122
|
+
onClick: B,
|
|
123
|
+
disabled: n,
|
|
124
|
+
children: /* @__PURE__ */ o.jsx(
|
|
125
|
+
"svg",
|
|
126
|
+
{
|
|
127
|
+
className: i(A[r], "text-white"),
|
|
128
|
+
fill: "none",
|
|
129
|
+
stroke: "currentColor",
|
|
130
|
+
viewBox: "0 0 24 24",
|
|
131
|
+
children: /* @__PURE__ */ o.jsx(
|
|
132
|
+
"path",
|
|
133
|
+
{
|
|
134
|
+
strokeLinecap: "round",
|
|
135
|
+
strokeLinejoin: "round",
|
|
136
|
+
strokeWidth: 2,
|
|
137
|
+
d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
t && j && !n && /* @__PURE__ */ o.jsx(
|
|
145
|
+
"button",
|
|
146
|
+
{
|
|
147
|
+
className: i(
|
|
148
|
+
"absolute rounded-full shadow-lg bg-error-light flex cursor-pointer items-center justify-center",
|
|
149
|
+
"opacity-0 scale-80 group-hover:opacity-100 group-hover:scale-100",
|
|
150
|
+
"transition-all duration-200 ease-out",
|
|
151
|
+
U[r],
|
|
152
|
+
b[r],
|
|
153
|
+
n && "opacity-50 cursor-default"
|
|
154
|
+
),
|
|
155
|
+
disabled: n,
|
|
156
|
+
onClick: S,
|
|
157
|
+
children: /* @__PURE__ */ o.jsx(
|
|
158
|
+
"svg",
|
|
159
|
+
{
|
|
160
|
+
className: i(b[r], "text-white p-1"),
|
|
161
|
+
fill: "none",
|
|
162
|
+
stroke: "currentColor",
|
|
163
|
+
viewBox: "0 0 24 24",
|
|
164
|
+
children: /* @__PURE__ */ o.jsx(
|
|
165
|
+
"path",
|
|
166
|
+
{
|
|
167
|
+
strokeLinecap: "round",
|
|
168
|
+
strokeLinejoin: "round",
|
|
169
|
+
strokeWidth: 2,
|
|
170
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
const W = L(
|
|
182
|
+
z,
|
|
183
|
+
(t, e) => t.imageUrl === e.imageUrl && t.fallbackText === e.fallbackText && t.size === e.size && t.className === e.className && t.disabled === e.disabled && t.showRemoveButton === e.showRemoveButton && t.acceptedTypes === e.acceptedTypes && t.maxFileSize === e.maxFileSize && t.disableEntryAnimation === e.disableEntryAnimation && t.onFileSelect === e.onFileSelect && t.onEditClick === e.onEditClick && t.onRemoveClick === e.onRemoveClick && t.onError === e.onError
|
|
184
|
+
);
|
|
185
|
+
W.displayName = "ProfilePictureUpload";
|
|
186
|
+
export {
|
|
187
|
+
W as ProfilePictureUpload,
|
|
188
|
+
W as default
|
|
189
|
+
};
|