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,284 @@
|
|
|
1
|
+
import { j as Y } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { g as i } from "./utils-X4-h3cum.js";
|
|
3
|
+
import { useState as A, useRef as E, useEffect as b, useMemo as ee, useCallback as te } from "react";
|
|
4
|
+
import Z from "./Select.es.js";
|
|
5
|
+
function re(e) {
|
|
6
|
+
const {
|
|
7
|
+
options: O,
|
|
8
|
+
fetcher: d,
|
|
9
|
+
asyncMode: w = "fetch_in_open",
|
|
10
|
+
disabled: S = !1,
|
|
11
|
+
debounceDelay: P = 500,
|
|
12
|
+
minCharacters: T = 3,
|
|
13
|
+
optionLabel: h,
|
|
14
|
+
optionValue: s,
|
|
15
|
+
controlledValue: f,
|
|
16
|
+
isOpen: F,
|
|
17
|
+
inputRef: y,
|
|
18
|
+
name: k
|
|
19
|
+
} = e || {}, M = O ? O.filter((t) => t != null) : [], [V, g] = A(M || []), [D, I] = A(M || []), [c, N] = A(""), [W, p] = A(!1), [J, U] = A(!1), l = E(null), C = E(null), m = E(!1), L = E(d), _ = e?.multiple === !0 || !1, j = E(_ ? [] : void 0), [a, v] = A(_ ? [] : void 0);
|
|
20
|
+
b(() => {
|
|
21
|
+
L.current = d;
|
|
22
|
+
}, [d]), b(() => {
|
|
23
|
+
if (_) {
|
|
24
|
+
const t = z(f, "value");
|
|
25
|
+
v(t);
|
|
26
|
+
} else
|
|
27
|
+
f != null ? v(f) : v(void 0);
|
|
28
|
+
}, [f]), b(() => {
|
|
29
|
+
j.current = f !== void 0 ? f : a;
|
|
30
|
+
}, [f, a]), b(() => {
|
|
31
|
+
if (e?.options) {
|
|
32
|
+
const t = e.options.filter((n) => n != null);
|
|
33
|
+
g(t), I(t);
|
|
34
|
+
}
|
|
35
|
+
}, [e?.options]);
|
|
36
|
+
const B = ee(() => (t, n) => new Promise((o, r) => {
|
|
37
|
+
l.current && clearTimeout(l.current), l.current = setTimeout(() => t(c).then(o).catch(r), n);
|
|
38
|
+
}), [c]), ne = (t) => {
|
|
39
|
+
const n = f !== void 0, o = (r) => s ? i(r, s) : i(r, "id");
|
|
40
|
+
if (e?.multiple === !0) {
|
|
41
|
+
const r = j.current || [];
|
|
42
|
+
let u;
|
|
43
|
+
r.some((x) => o(x) === o(t)) ? u = r.filter((x) => o(x) !== o(t)) : u = [...r, t], n ? (j.current = u, e?.onChange?.(u, k)) : (j.current = u, v(u), e?.onChange?.(u, k));
|
|
44
|
+
} else
|
|
45
|
+
n ? (j.current = t, e?.onChange?.(t, k)) : (j.current = t, v(t), e?.onChange?.(t, k));
|
|
46
|
+
}, q = (t) => (e?.onFetchingStart?.(), L.current?.(t) || Promise.resolve([])), z = (t, n) => Array.isArray(t) ? (t.some((o) => typeof o != "object" || o === null) && console.debug(`El valor del ${n || "resultado del fetcher"} contiene elementos no válidos (null,undefined, no-object)`, t), t?.filter((o) => o != null) || []) : (console.debug(`El valor del ${n || "resultado del fetcher"} no es un Array (tipo de dato obtenido: ${typeof t})`), []), $ = te((t, n) => t.length === 0 ? n : s ? n.filter((o) => !t.some((r) => i(r, s) === i(o, s))) : n.filter((o) => !t.some((r) => i(r, "id") === i(o, "id"))), [s]);
|
|
47
|
+
b(() => {
|
|
48
|
+
const t = e?.subscribeOpenChange;
|
|
49
|
+
if (!t) return;
|
|
50
|
+
const n = t((o) => {
|
|
51
|
+
U(o);
|
|
52
|
+
});
|
|
53
|
+
return () => {
|
|
54
|
+
n && n();
|
|
55
|
+
};
|
|
56
|
+
}, [e?.subscribeOpenChange]);
|
|
57
|
+
const G = F !== void 0 ? F : J;
|
|
58
|
+
b(() => {
|
|
59
|
+
if (!S && L.current && w === "fetch_on_type") {
|
|
60
|
+
if (!c || c === "" || c.length < T) {
|
|
61
|
+
l.current && clearTimeout(l.current), p(!1);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const t = B(q, P);
|
|
65
|
+
p(!0), t.then((n) => {
|
|
66
|
+
const o = z(n);
|
|
67
|
+
g(o);
|
|
68
|
+
}).finally(() => {
|
|
69
|
+
p(!1), e?.onFetchingEnd?.();
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}, [w, c, S, P, B, T]), b(() => {
|
|
73
|
+
if (!S)
|
|
74
|
+
if (G) {
|
|
75
|
+
if (e?.onOpen?.(), w === "fetch_in_open") {
|
|
76
|
+
if (!L.current)
|
|
77
|
+
return;
|
|
78
|
+
p(!0), q().then((t) => {
|
|
79
|
+
const n = z(t);
|
|
80
|
+
g(() => {
|
|
81
|
+
const o = n.filter((r) => {
|
|
82
|
+
if (s)
|
|
83
|
+
return i(r, s) !== void 0;
|
|
84
|
+
});
|
|
85
|
+
return _ && a.length > 0 ? [...$(a, o), ...a] : o;
|
|
86
|
+
});
|
|
87
|
+
}).finally(() => {
|
|
88
|
+
p(!1), e?.onFetchingEnd?.();
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
} else
|
|
92
|
+
e?.onClose?.();
|
|
93
|
+
}, [G, w, S]);
|
|
94
|
+
const H = (t, n) => t?.filter((o) => {
|
|
95
|
+
if (h)
|
|
96
|
+
return i(o, h)?.toLowerCase().includes(n.toLowerCase());
|
|
97
|
+
{
|
|
98
|
+
const r = o;
|
|
99
|
+
switch (typeof r) {
|
|
100
|
+
case "string":
|
|
101
|
+
return r?.toLowerCase().includes(n.toLowerCase());
|
|
102
|
+
case "number":
|
|
103
|
+
return r.toString().includes(n);
|
|
104
|
+
case "object":
|
|
105
|
+
return Object.values(r).some((R) => R.toString()?.toLowerCase().includes(n.toLowerCase()));
|
|
106
|
+
default:
|
|
107
|
+
return !1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}) || [], oe = (t) => t?.sort((n, o) => {
|
|
111
|
+
if (h)
|
|
112
|
+
return i(n, h) < i(o, h) ? -1 : 1;
|
|
113
|
+
{
|
|
114
|
+
const u = ["label", "name", "value"].find((K) => typeof n == "object" && Object.keys(n).includes(K)), R = n, x = o;
|
|
115
|
+
switch (typeof R) {
|
|
116
|
+
case "string":
|
|
117
|
+
return R < x ? -1 : 1;
|
|
118
|
+
case "number":
|
|
119
|
+
return R < x ? -1 : 1;
|
|
120
|
+
case "object":
|
|
121
|
+
if (u) {
|
|
122
|
+
const K = i(n, u), le = i(o, u);
|
|
123
|
+
return K < le ? -1 : 1;
|
|
124
|
+
} else
|
|
125
|
+
return 1;
|
|
126
|
+
default:
|
|
127
|
+
return 1;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}) || [], Q = (t) => {
|
|
131
|
+
const n = typeof y == "function" ? y() : y;
|
|
132
|
+
t.target === n?.current && (C.current && clearTimeout(C.current), m.current || (m.current = !0, e?.onTypeStart?.()), C.current = setTimeout(() => {
|
|
133
|
+
m.current = !1;
|
|
134
|
+
}, P));
|
|
135
|
+
};
|
|
136
|
+
b(() => {
|
|
137
|
+
if (c === "")
|
|
138
|
+
I(oe(V));
|
|
139
|
+
else if (_) {
|
|
140
|
+
const t = $(a, V);
|
|
141
|
+
I([...H(t, c), ...a]);
|
|
142
|
+
} else {
|
|
143
|
+
const t = $([a], V);
|
|
144
|
+
I([...H(t, c), a]);
|
|
145
|
+
}
|
|
146
|
+
}, [V]), b(() => (document.addEventListener("keydown", Q), () => {
|
|
147
|
+
document.removeEventListener("keydown", Q);
|
|
148
|
+
}), []);
|
|
149
|
+
const X = () => {
|
|
150
|
+
N("");
|
|
151
|
+
};
|
|
152
|
+
return {
|
|
153
|
+
inputValue: c,
|
|
154
|
+
setInputValue: N,
|
|
155
|
+
cleanInputValue: X,
|
|
156
|
+
cleanOptions: () => {
|
|
157
|
+
if (_)
|
|
158
|
+
g(a);
|
|
159
|
+
else {
|
|
160
|
+
const t = a;
|
|
161
|
+
g(t ? [t] : []);
|
|
162
|
+
}
|
|
163
|
+
X();
|
|
164
|
+
},
|
|
165
|
+
clearValue: () => {
|
|
166
|
+
v(_ ? [] : void 0);
|
|
167
|
+
},
|
|
168
|
+
filteredOptions: D,
|
|
169
|
+
isLoading: W,
|
|
170
|
+
value: a,
|
|
171
|
+
setValue: v,
|
|
172
|
+
onOptionClick: ne
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
const he = (e) => {
|
|
176
|
+
const O = E(null), { asyncMode: d = "fetch_in_open" } = e, w = (l, C, m) => {
|
|
177
|
+
const L = {
|
|
178
|
+
options: l.options,
|
|
179
|
+
fetcher: l.fetcher,
|
|
180
|
+
asyncMode: C,
|
|
181
|
+
debounceDelay: l.debounceDelay,
|
|
182
|
+
minCharacters: l.minCharacters,
|
|
183
|
+
disabled: l.disabled,
|
|
184
|
+
optionValue: l.optionValue,
|
|
185
|
+
optionLabel: l.optionLabel,
|
|
186
|
+
onFetchingStart: () => {
|
|
187
|
+
C === "fetch_on_type" && m.current?.open();
|
|
188
|
+
},
|
|
189
|
+
onTypeStart: () => {
|
|
190
|
+
!l?.fetcher && m.current?.open();
|
|
191
|
+
},
|
|
192
|
+
inputRef: () => m.current?.searchInputRef,
|
|
193
|
+
subscribeOpenChange: m.current?.subscribeOpenChange,
|
|
194
|
+
name: l.name
|
|
195
|
+
};
|
|
196
|
+
return l.multiple ? {
|
|
197
|
+
...L,
|
|
198
|
+
multiple: !0,
|
|
199
|
+
controlledValue: l.value,
|
|
200
|
+
onChange: l.onChange
|
|
201
|
+
} : {
|
|
202
|
+
...L,
|
|
203
|
+
multiple: !1,
|
|
204
|
+
controlledValue: l.value,
|
|
205
|
+
onChange: l.onChange
|
|
206
|
+
};
|
|
207
|
+
}, { inputValue: S, setInputValue: P, filteredOptions: T, isLoading: h, value: s, onOptionClick: f, cleanInputValue: F, cleanOptions: y, clearValue: k } = re(w(e, d, O));
|
|
208
|
+
b(() => {
|
|
209
|
+
!e.controls || !O.current || (e.controls.current = {
|
|
210
|
+
...O.current,
|
|
211
|
+
cleanOptions: () => {
|
|
212
|
+
y();
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}, [e.controls, y]);
|
|
216
|
+
const M = te(
|
|
217
|
+
() => d === "fetch_on_type" ? h : !1,
|
|
218
|
+
[d, h]
|
|
219
|
+
), V = ee(() => e.multiple ? s.map((l) => i(l, e.optionValue)) : s ? i(s, e.optionValue) : void 0, [s, e.optionValue, e.multiple]), g = (l) => {
|
|
220
|
+
const C = T.find((m) => i(m, e.optionValue) === l.id);
|
|
221
|
+
C && f(C);
|
|
222
|
+
}, { displayMode: D = e.multiple ? "chips" : "compact", dropdownOptions: I, overflow: c = "scroll", onChange: N, onClear: W, ...p } = e.selectComponentProps || {}, J = {
|
|
223
|
+
controledSearchValue: S,
|
|
224
|
+
onSearchValueChange: d === "fetch_on_type" ? P : void 0,
|
|
225
|
+
onSearchClear: d === "fetch_on_type" ? () => {
|
|
226
|
+
F(), y();
|
|
227
|
+
} : void 0,
|
|
228
|
+
inputSearchPlaceholder: e.inputSearchPlaceholder,
|
|
229
|
+
isLoading: M(),
|
|
230
|
+
...I || {}
|
|
231
|
+
}, U = () => {
|
|
232
|
+
k(), e?.selectComponentProps?.onClear?.();
|
|
233
|
+
};
|
|
234
|
+
return e.multiple ? /* @__PURE__ */ Y.jsx(
|
|
235
|
+
Z,
|
|
236
|
+
{
|
|
237
|
+
disabled: e.disabled,
|
|
238
|
+
className: e.className,
|
|
239
|
+
name: e.name,
|
|
240
|
+
overflow: c,
|
|
241
|
+
...p,
|
|
242
|
+
onClear: e?.selectComponentProps?.onClear && U,
|
|
243
|
+
multiple: !0,
|
|
244
|
+
value: V,
|
|
245
|
+
label: e.label || "",
|
|
246
|
+
options: T,
|
|
247
|
+
optionValue: e.optionValue,
|
|
248
|
+
optionLabel: e.optionLabel,
|
|
249
|
+
renderOption: e.renderOption,
|
|
250
|
+
onOptionClick: g,
|
|
251
|
+
displayMode: D,
|
|
252
|
+
controls: O,
|
|
253
|
+
emptyMessage: "Use el buscador para obtener las opciones disponibles",
|
|
254
|
+
dropdownOptions: J,
|
|
255
|
+
isLoading: d === "fetch_in_open" ? h : !1
|
|
256
|
+
}
|
|
257
|
+
) : /* @__PURE__ */ Y.jsx(
|
|
258
|
+
Z,
|
|
259
|
+
{
|
|
260
|
+
disabled: e.disabled,
|
|
261
|
+
...p,
|
|
262
|
+
onClear: U,
|
|
263
|
+
className: e.className,
|
|
264
|
+
overflow: c,
|
|
265
|
+
name: e.name,
|
|
266
|
+
multiple: !1,
|
|
267
|
+
value: V,
|
|
268
|
+
label: e.label || "",
|
|
269
|
+
options: T,
|
|
270
|
+
optionValue: e.optionValue,
|
|
271
|
+
optionLabel: e.optionLabel,
|
|
272
|
+
renderOption: e.renderOption,
|
|
273
|
+
onOptionClick: g,
|
|
274
|
+
displayMode: "compact",
|
|
275
|
+
controls: O,
|
|
276
|
+
emptyMessage: "Use el buscador para obtener las opciones disponibles",
|
|
277
|
+
dropdownOptions: J,
|
|
278
|
+
isLoading: d === "fetch_in_open" ? h : !1
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
};
|
|
282
|
+
export {
|
|
283
|
+
he as default
|
|
284
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { j as E } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as B } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { memo as N, useRef as R, useCallback as D, useLayoutEffect as M } from "react";
|
|
4
|
+
const y = (n) => {
|
|
5
|
+
const e = R(null), { debugMode: h = !1, className: f = "", children: k, shape: C = "rounded", animation: g = "shimmer", onlyContainer: i = !1 } = n;
|
|
6
|
+
let m = "255, 255, 255", d = "255, 255, 255, 0.1";
|
|
7
|
+
const b = D(() => {
|
|
8
|
+
if (i || !e.current) return;
|
|
9
|
+
const o = d.split(",").map(Number), c = m.match(/\d+/g);
|
|
10
|
+
switch (g) {
|
|
11
|
+
case "shimmer":
|
|
12
|
+
e.current.classList.add("skeleton-shimmer-animation"), o && o.length >= 3 && (e.current.style.setProperty("--shimmer-color-r", o[0].toString()), e.current.style.setProperty("--shimmer-color-g", o[1].toString()), e.current.style.setProperty("--shimmer-color-b", o[2].toString()), e.current.style.setProperty("--shimmer-color-a", o[3].toString()));
|
|
13
|
+
break;
|
|
14
|
+
case "none":
|
|
15
|
+
e.current.style.animation = "none";
|
|
16
|
+
break;
|
|
17
|
+
case "border":
|
|
18
|
+
e.current.classList.add("skeleton-border-animation"), e.current.style.backgroundColor = "transparent", c && c.length >= 3 && (e.current.style.setProperty("--border-color-r", c[0]), e.current.style.setProperty("--border-color-g", c[1]), e.current.style.setProperty("--border-color-b", c[2]));
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
}, [g, d, m, i]);
|
|
22
|
+
M(() => {
|
|
23
|
+
if (e.current) {
|
|
24
|
+
const o = (l) => {
|
|
25
|
+
let t = l;
|
|
26
|
+
for (; t && t !== document.body; ) {
|
|
27
|
+
const a = window.getComputedStyle(t).backgroundColor;
|
|
28
|
+
if (a && a !== "transparent" && a !== "rgba(0, 0, 0, 0)")
|
|
29
|
+
return a;
|
|
30
|
+
t = t.parentElement;
|
|
31
|
+
}
|
|
32
|
+
const r = window.getComputedStyle(document.body).backgroundColor;
|
|
33
|
+
return r && r !== "transparent" && r !== "rgba(0, 0, 0, 0)" ? r : "rgb(255, 255, 255)";
|
|
34
|
+
}, c = (l) => {
|
|
35
|
+
const t = document.createElement("canvas");
|
|
36
|
+
t.width = 1, t.height = 1;
|
|
37
|
+
const r = t.getContext("2d");
|
|
38
|
+
if (!r) return [255, 255, 255];
|
|
39
|
+
r.fillStyle = l, r.fillRect(0, 0, 1, 1);
|
|
40
|
+
const a = r.getImageData(0, 0, 1, 1).data;
|
|
41
|
+
return [a[0], a[1], a[2]];
|
|
42
|
+
};
|
|
43
|
+
if (!e.current.parentElement) return;
|
|
44
|
+
const p = o(e.current.parentElement), s = c(p), w = s.reduce((l, t) => l + t, 0) < 382;
|
|
45
|
+
let u;
|
|
46
|
+
w ? u = `rgb(${s[0] + 10}, ${s[1] + 10}, ${s[2] + 10})` : (u = `rgb(${s[0] - 30}, ${s[1] - 30}, ${s[2] - 30})`, m = "115,115,115", d = "255,255,255, 0.4"), i && (u = "transparent", e.current.style.animation = "none"), e.current.style.backgroundColor = u, b();
|
|
47
|
+
}
|
|
48
|
+
}, [d, m, i, b]);
|
|
49
|
+
const S = {
|
|
50
|
+
circle: "rounded-full aspect-square",
|
|
51
|
+
square: "rounded-none",
|
|
52
|
+
rounded: "rounded"
|
|
53
|
+
};
|
|
54
|
+
return /* @__PURE__ */ E.jsx(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
ref: e,
|
|
58
|
+
className: B(
|
|
59
|
+
h && " border-red-600/20 border",
|
|
60
|
+
f,
|
|
61
|
+
"skeleton-container",
|
|
62
|
+
S[C]
|
|
63
|
+
),
|
|
64
|
+
children: k
|
|
65
|
+
},
|
|
66
|
+
`skeleton-${Math.random().toFixed(10)}`
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
y.displayName = "Skeleton";
|
|
70
|
+
const x = N(y, (n, e) => n.debugMode === e.debugMode && n.className === e.className && n.children === e.children && n.shape === e.shape && n.animation === e.animation && n.onlyContainer === e.onlyContainer);
|
|
71
|
+
export {
|
|
72
|
+
x as Skeleton,
|
|
73
|
+
x as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { j as n } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { c as p } from "./index-BOQuZ0gG.js";
|
|
4
|
+
import { memo as d } from "react";
|
|
5
|
+
const m = p("rounded-full", {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
sync: "",
|
|
9
|
+
dot: "",
|
|
10
|
+
bounce: "",
|
|
11
|
+
linear: ""
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
small: "",
|
|
15
|
+
medium: "",
|
|
16
|
+
large: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "sync",
|
|
21
|
+
size: "medium"
|
|
22
|
+
},
|
|
23
|
+
compoundVariants: [
|
|
24
|
+
{ variant: "sync", size: "small", className: "w-6 h-6" },
|
|
25
|
+
{ variant: "sync", size: "medium", className: "w-8 h-8" },
|
|
26
|
+
{ variant: "sync", size: "large", className: "w-12 h-12" },
|
|
27
|
+
{ variant: "dot", size: "small" },
|
|
28
|
+
{ variant: "dot", size: "medium" },
|
|
29
|
+
{ variant: "dot", size: "large" }
|
|
30
|
+
]
|
|
31
|
+
}), u = (o) => {
|
|
32
|
+
const {
|
|
33
|
+
variant: s = "sync",
|
|
34
|
+
color: r = "var(--primary-500)",
|
|
35
|
+
secondaryColor: a = "var(--primary-200)",
|
|
36
|
+
size: e = "medium",
|
|
37
|
+
...i
|
|
38
|
+
} = o;
|
|
39
|
+
return s === "sync" ? /* @__PURE__ */ n.jsx(
|
|
40
|
+
c,
|
|
41
|
+
{
|
|
42
|
+
color: r,
|
|
43
|
+
secondaryColor: a,
|
|
44
|
+
size: e,
|
|
45
|
+
...i
|
|
46
|
+
}
|
|
47
|
+
) : s === "dot" ? /* @__PURE__ */ n.jsx(
|
|
48
|
+
v,
|
|
49
|
+
{
|
|
50
|
+
size: e,
|
|
51
|
+
...i
|
|
52
|
+
}
|
|
53
|
+
) : s === "bounce" ? /* @__PURE__ */ n.jsx(
|
|
54
|
+
x,
|
|
55
|
+
{
|
|
56
|
+
size: e,
|
|
57
|
+
...i
|
|
58
|
+
}
|
|
59
|
+
) : s === "linear" ? /* @__PURE__ */ n.jsx(
|
|
60
|
+
z,
|
|
61
|
+
{
|
|
62
|
+
color: r,
|
|
63
|
+
secondaryColor: a,
|
|
64
|
+
size: e,
|
|
65
|
+
...i
|
|
66
|
+
}
|
|
67
|
+
) : (
|
|
68
|
+
//default
|
|
69
|
+
/* @__PURE__ */ n.jsx(
|
|
70
|
+
c,
|
|
71
|
+
{
|
|
72
|
+
color: r,
|
|
73
|
+
secondaryColor: a,
|
|
74
|
+
size: e,
|
|
75
|
+
...i
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
);
|
|
79
|
+
}, y = d(u);
|
|
80
|
+
y.displayName = "Spinner";
|
|
81
|
+
const c = (o) => {
|
|
82
|
+
const { size: s, className: r, color: a, secondaryColor: e, speedMultiplier: i = 1 } = o, t = {
|
|
83
|
+
small: "2px",
|
|
84
|
+
medium: "4px",
|
|
85
|
+
large: "5px"
|
|
86
|
+
};
|
|
87
|
+
return /* @__PURE__ */ n.jsx(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: l(
|
|
91
|
+
m({ size: s }),
|
|
92
|
+
"spinner-sync-animation",
|
|
93
|
+
r
|
|
94
|
+
),
|
|
95
|
+
style: {
|
|
96
|
+
"--spinner-color": a,
|
|
97
|
+
"--spinner-secondary-color": e,
|
|
98
|
+
"--spinner-speed": i,
|
|
99
|
+
"--border-width": t[s || "medium"],
|
|
100
|
+
background: "transparent"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}, v = (o) => {
|
|
105
|
+
const {
|
|
106
|
+
size: s,
|
|
107
|
+
className: r,
|
|
108
|
+
color: a = "var(--primary-500)",
|
|
109
|
+
speedMultiplier: e = 1
|
|
110
|
+
} = o, t = p("rounded-full", {
|
|
111
|
+
variants: {
|
|
112
|
+
size: {
|
|
113
|
+
small: "w-2 h-2",
|
|
114
|
+
medium: "w-3 h-3",
|
|
115
|
+
large: "w-4 h-4"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
defaultVariants: {
|
|
119
|
+
size: "medium"
|
|
120
|
+
}
|
|
121
|
+
})({ size: s });
|
|
122
|
+
return /* @__PURE__ */ n.jsxs(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
className: l("spinner-dot-animation", r),
|
|
126
|
+
style: {
|
|
127
|
+
"--spinner-dot-color": a,
|
|
128
|
+
"--spinner-dot-speed": e
|
|
129
|
+
},
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ n.jsx("span", { className: l("spinner-dot", t) }),
|
|
132
|
+
/* @__PURE__ */ n.jsx("span", { className: l("spinner-dot", t) }),
|
|
133
|
+
/* @__PURE__ */ n.jsx("span", { className: l("spinner-dot", t) })
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}, x = (o) => {
|
|
138
|
+
const { size: s, className: r, color: a, speedMultiplier: e = 1 } = o;
|
|
139
|
+
return /* @__PURE__ */ n.jsx(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
className: l(
|
|
143
|
+
m({ size: s }),
|
|
144
|
+
"spinner-bounce-animation",
|
|
145
|
+
r
|
|
146
|
+
),
|
|
147
|
+
style: {
|
|
148
|
+
"--spinner-color": a,
|
|
149
|
+
"--spinner-speed": e
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}, z = (o) => {
|
|
154
|
+
const { size: s, className: r, color: a = "var(--primary-500)", secondaryColor: e = "var(--primary-200)", speedMultiplier: i = 1 } = o, t = {
|
|
155
|
+
small: "0.25rem",
|
|
156
|
+
medium: "0.33rem",
|
|
157
|
+
large: "0.5rem"
|
|
158
|
+
};
|
|
159
|
+
return /* @__PURE__ */ n.jsx(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
className: l(
|
|
163
|
+
m({ size: s, variant: "linear" }),
|
|
164
|
+
"spinner-linear-animation min-w-8",
|
|
165
|
+
r
|
|
166
|
+
),
|
|
167
|
+
style: {
|
|
168
|
+
"--spinner-color": a,
|
|
169
|
+
"--spinner-secondary-color": e,
|
|
170
|
+
"--spinner-speed": i,
|
|
171
|
+
"--spinner-height": t[s || "medium"]
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
};
|
|
176
|
+
export {
|
|
177
|
+
y as default
|
|
178
|
+
};
|