prometeo-design-system 3.1.4 → 3.1.5
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/package.json +17 -1
- package/dist/Avatar.d.ts +0 -4
- package/dist/Avatar.es.js +0 -94
- package/dist/Button.d.ts +0 -6
- package/dist/Button.es.js +0 -400
- package/dist/CardProfile-y9Knsg26.js +0 -280
- package/dist/CardProfile.d.ts +0 -6
- package/dist/CardProfile.es.js +0 -5
- package/dist/CheckBox.d.ts +0 -6
- package/dist/CheckBox.es.js +0 -112
- package/dist/DatePicker-CehTiXGa.js +0 -3631
- package/dist/DatePicker.d.ts +0 -6
- package/dist/DatePicker.es.js +0 -5
- package/dist/DialogModal.d.ts +0 -6
- package/dist/DialogModal.es.js +0 -75
- package/dist/DrawerDesktop.d.ts +0 -6
- package/dist/DrawerDesktop.es.js +0 -217
- package/dist/DrawerMobile.d.ts +0 -6
- package/dist/DrawerMobile.es.js +0 -243
- package/dist/DropZone.d.ts +0 -6
- package/dist/DropZone.es.js +0 -88
- package/dist/FAButton.d.ts +0 -4
- package/dist/FAButton.es.js +0 -111
- package/dist/Header.d.ts +0 -6
- package/dist/Header.es.js +0 -32
- package/dist/HelperComponent-ljsn0xD6.js +0 -26
- package/dist/Icons/AccountCircle.d.ts +0 -6
- package/dist/Icons/AccountCircle.es.js +0 -21
- package/dist/Icons/Add.d.ts +0 -6
- package/dist/Icons/Add.es.js +0 -19
- package/dist/Icons/ArrowLeft.d.ts +0 -6
- package/dist/Icons/ArrowLeft.es.js +0 -19
- package/dist/Icons/ArrowUpDown.d.ts +0 -6
- package/dist/Icons/ArrowUpDown.es.js +0 -21
- package/dist/Icons/AttachFile.d.ts +0 -6
- package/dist/Icons/AttachFile.es.js +0 -19
- package/dist/Icons/Boards.d.ts +0 -6
- package/dist/Icons/Boards.es.js +0 -19
- package/dist/Icons/Calendar.d.ts +0 -6
- package/dist/Icons/Calendar.es.js +0 -19
- package/dist/Icons/Cancel.d.ts +0 -6
- package/dist/Icons/Cancel.es.js +0 -19
- package/dist/Icons/Check.d.ts +0 -6
- package/dist/Icons/Check.es.js +0 -19
- package/dist/Icons/CheckCircle.d.ts +0 -6
- package/dist/Icons/CheckCircle.es.js +0 -21
- package/dist/Icons/CheckList.d.ts +0 -6
- package/dist/Icons/CheckList.es.js +0 -25
- package/dist/Icons/ChevronDown.d.ts +0 -6
- package/dist/Icons/ChevronDown.es.js +0 -21
- package/dist/Icons/Clock.d.ts +0 -6
- package/dist/Icons/Clock.es.js +0 -19
- package/dist/Icons/Close.d.ts +0 -6
- package/dist/Icons/Close.es.js +0 -19
- package/dist/Icons/CloseNavBarDesktop.d.ts +0 -6
- package/dist/Icons/CloseNavBarDesktop.es.js +0 -36
- package/dist/Icons/Collapse.d.ts +0 -6
- package/dist/Icons/Collapse.es.js +0 -19
- package/dist/Icons/Company.d.ts +0 -6
- package/dist/Icons/Company.es.js +0 -25
- package/dist/Icons/Copy.d.ts +0 -6
- package/dist/Icons/Copy.es.js +0 -19
- package/dist/Icons/CrevronLeft.d.ts +0 -6
- package/dist/Icons/CrevronLeft.es.js +0 -21
- package/dist/Icons/CrevronRight.d.ts +0 -6
- package/dist/Icons/CrevronRight.es.js +0 -21
- package/dist/Icons/DocumentFill.d.ts +0 -6
- package/dist/Icons/DocumentFill.es.js +0 -27
- package/dist/Icons/Download.d.ts +0 -6
- package/dist/Icons/Download.es.js +0 -25
- package/dist/Icons/Edit.d.ts +0 -6
- package/dist/Icons/Edit.es.js +0 -19
- package/dist/Icons/EditFill.d.ts +0 -6
- package/dist/Icons/EditFill.es.js +0 -25
- package/dist/Icons/Email.d.ts +0 -6
- package/dist/Icons/Email.es.js +0 -25
- package/dist/Icons/Error.d.ts +0 -6
- package/dist/Icons/Error.es.js +0 -19
- package/dist/Icons/EyeVisibility.d.ts +0 -6
- package/dist/Icons/EyeVisibility.es.js +0 -21
- package/dist/Icons/EyeVisibilityOff.d.ts +0 -6
- package/dist/Icons/EyeVisibilityOff.es.js +0 -21
- package/dist/Icons/FaLock.d.ts +0 -6
- package/dist/Icons/FaLock.es.js +0 -19
- package/dist/Icons/FastForward.d.ts +0 -6
- package/dist/Icons/FastForward.es.js +0 -27
- package/dist/Icons/File.d.ts +0 -6
- package/dist/Icons/File.es.js +0 -25
- package/dist/Icons/Filter.d.ts +0 -6
- package/dist/Icons/Filter.es.js +0 -19
- package/dist/Icons/FormatColorText.d.ts +0 -6
- package/dist/Icons/FormatColorText.es.js +0 -26
- package/dist/Icons/Help.d.ts +0 -6
- package/dist/Icons/Help.es.js +0 -19
- package/dist/Icons/HistoryActivity.d.ts +0 -6
- package/dist/Icons/HistoryActivity.es.js +0 -21
- package/dist/Icons/Home.d.ts +0 -6
- package/dist/Icons/Home.es.js +0 -19
- package/dist/Icons/Image.d.ts +0 -6
- package/dist/Icons/Image.es.js +0 -25
- package/dist/Icons/Info.d.ts +0 -6
- package/dist/Icons/Info.es.js +0 -19
- package/dist/Icons/Logout.d.ts +0 -6
- package/dist/Icons/Logout.es.js +0 -19
- package/dist/Icons/MessageSquare.d.ts +0 -6
- package/dist/Icons/MessageSquare.es.js +0 -21
- package/dist/Icons/MessageSquareFill.d.ts +0 -6
- package/dist/Icons/MessageSquareFill.es.js +0 -27
- package/dist/Icons/MoreVert.d.ts +0 -6
- package/dist/Icons/MoreVert.es.js +0 -19
- package/dist/Icons/Notifications.d.ts +0 -6
- package/dist/Icons/Notifications.es.js +0 -21
- package/dist/Icons/Pause.d.ts +0 -6
- package/dist/Icons/Pause.es.js +0 -19
- package/dist/Icons/Reload.d.ts +0 -6
- package/dist/Icons/Reload.es.js +0 -25
- package/dist/Icons/Search.d.ts +0 -6
- package/dist/Icons/Search.es.js +0 -19
- package/dist/Icons/Settings.d.ts +0 -6
- package/dist/Icons/Settings.es.js +0 -19
- package/dist/Icons/Shared.d.ts +0 -6
- package/dist/Icons/Shared.es.js +0 -19
- package/dist/Icons/Sort.d.ts +0 -6
- package/dist/Icons/Sort.es.js +0 -19
- package/dist/Icons/Stars.d.ts +0 -6
- package/dist/Icons/Stars.es.js +0 -19
- package/dist/Icons/Ticket.d.ts +0 -6
- package/dist/Icons/Ticket.es.js +0 -19
- package/dist/Icons/TicketFilled.d.ts +0 -6
- package/dist/Icons/TicketFilled.es.js +0 -21
- package/dist/Icons/Trash.d.ts +0 -6
- package/dist/Icons/Trash.es.js +0 -19
- package/dist/Icons/TrashFill.d.ts +0 -6
- package/dist/Icons/TrashFill.es.js +0 -25
- package/dist/Icons/Upload.d.ts +0 -6
- package/dist/Icons/Upload.es.js +0 -19
- package/dist/Icons/UploadCloud.d.ts +0 -6
- package/dist/Icons/UploadCloud.es.js +0 -21
- package/dist/Icons/UserAdd.d.ts +0 -6
- package/dist/Icons/UserAdd.es.js +0 -19
- package/dist/Icons/UserAddFill.d.ts +0 -6
- package/dist/Icons/UserAddFill.es.js +0 -27
- package/dist/Icons/UserPerson.d.ts +0 -6
- package/dist/Icons/UserPerson.es.js +0 -19
- package/dist/Icons/WhatsApp.d.ts +0 -6
- package/dist/Icons/WhatsApp.es.js +0 -76
- package/dist/Icons/components/AccountCircle.d.ts +0 -4
- package/dist/Icons/components/Add.d.ts +0 -4
- package/dist/Icons/components/ArrowLeft.d.ts +0 -4
- package/dist/Icons/components/ArrowUpDown.d.ts +0 -4
- package/dist/Icons/components/AttachFile.d.ts +0 -4
- package/dist/Icons/components/Boards.d.ts +0 -4
- package/dist/Icons/components/Calendar.d.ts +0 -4
- package/dist/Icons/components/Cancel.d.ts +0 -4
- package/dist/Icons/components/Check.d.ts +0 -4
- package/dist/Icons/components/CheckCircle.d.ts +0 -4
- package/dist/Icons/components/CheckList.d.ts +0 -4
- package/dist/Icons/components/ChevronDown.d.ts +0 -4
- package/dist/Icons/components/Clock.d.ts +0 -4
- package/dist/Icons/components/Close.d.ts +0 -4
- package/dist/Icons/components/CloseNavBarDesktop.d.ts +0 -4
- package/dist/Icons/components/Collapse.d.ts +0 -4
- package/dist/Icons/components/Company.d.ts +0 -4
- package/dist/Icons/components/Copy.d.ts +0 -4
- package/dist/Icons/components/CrevronLeft.d.ts +0 -4
- package/dist/Icons/components/CrevronRight.d.ts +0 -4
- package/dist/Icons/components/DocumentFill.d.ts +0 -4
- package/dist/Icons/components/Download.d.ts +0 -4
- package/dist/Icons/components/Edit.d.ts +0 -4
- package/dist/Icons/components/EditFill.d.ts +0 -4
- package/dist/Icons/components/Email.d.ts +0 -4
- package/dist/Icons/components/Error.d.ts +0 -4
- package/dist/Icons/components/EyeVisibility.d.ts +0 -4
- package/dist/Icons/components/EyeVisibilityOff.d.ts +0 -4
- package/dist/Icons/components/FaLock.d.ts +0 -4
- package/dist/Icons/components/FastForward.d.ts +0 -4
- package/dist/Icons/components/File.d.ts +0 -4
- package/dist/Icons/components/Filter.d.ts +0 -4
- package/dist/Icons/components/FormatColorText.d.ts +0 -4
- package/dist/Icons/components/Help.d.ts +0 -4
- package/dist/Icons/components/HistoryActivity.d.ts +0 -4
- package/dist/Icons/components/Home.d.ts +0 -4
- package/dist/Icons/components/Image.d.ts +0 -4
- package/dist/Icons/components/Info.d.ts +0 -4
- package/dist/Icons/components/Logout.d.ts +0 -4
- package/dist/Icons/components/MessageSquare.d.ts +0 -4
- package/dist/Icons/components/MessageSquareFill.d.ts +0 -4
- package/dist/Icons/components/MoreVert.d.ts +0 -4
- package/dist/Icons/components/Notifications.d.ts +0 -4
- package/dist/Icons/components/Pause.d.ts +0 -4
- package/dist/Icons/components/Reload.d.ts +0 -4
- package/dist/Icons/components/Search.d.ts +0 -4
- package/dist/Icons/components/Settings.d.ts +0 -4
- package/dist/Icons/components/Shared.d.ts +0 -4
- package/dist/Icons/components/Sort.d.ts +0 -4
- package/dist/Icons/components/Stars.d.ts +0 -4
- package/dist/Icons/components/Ticket.d.ts +0 -4
- package/dist/Icons/components/TicketFilled.d.ts +0 -4
- package/dist/Icons/components/Trash.d.ts +0 -4
- package/dist/Icons/components/TrashFill.d.ts +0 -4
- package/dist/Icons/components/Upload.d.ts +0 -4
- package/dist/Icons/components/UploadCloud.d.ts +0 -4
- package/dist/Icons/components/UserAdd.d.ts +0 -4
- package/dist/Icons/components/UserAddFill.d.ts +0 -4
- package/dist/Icons/components/UserPerson.d.ts +0 -4
- package/dist/Icons/components/WhatsApp.d.ts +0 -4
- package/dist/Icons/iconUtils.d.ts +0 -7
- package/dist/Icons/index.d.ts +0 -62
- package/dist/Icons/types.d.ts +0 -124
- package/dist/Icons.d.ts +0 -2
- package/dist/Icons.es.js +0 -122
- package/dist/Image.d.ts +0 -4
- package/dist/Image.es.js +0 -91
- package/dist/ImageGallery-DG9ovlQ-.js +0 -319
- package/dist/ImageGallery.d.ts +0 -6
- package/dist/ImageGallery.es.js +0 -23
- package/dist/Input.d.ts +0 -6
- package/dist/Input.es.js +0 -220
- package/dist/InputMultiple.d.ts +0 -6
- package/dist/InputMultiple.es.js +0 -265
- package/dist/LayoutGeneric-CfWhV1ov.js +0 -26
- package/dist/LayoutGeneric.d.ts +0 -6
- package/dist/LayoutGeneric.es.js +0 -4
- package/dist/Logo.d.ts +0 -4
- package/dist/Logo.es.js +0 -9
- package/dist/Menu.d.ts +0 -6
- package/dist/Menu.es.js +0 -77
- package/dist/OtpInput.d.ts +0 -6
- package/dist/OtpInput.es.js +0 -302
- package/dist/Pagination.d.ts +0 -6
- package/dist/Pagination.es.js +0 -97
- package/dist/ProfilePictureUpload.d.ts +0 -6
- package/dist/ProfilePictureUpload.es.js +0 -189
- package/dist/ProgressBar.d.ts +0 -6
- package/dist/ProgressBar.es.js +0 -70
- package/dist/RadioButton.d.ts +0 -6
- package/dist/RadioButton.es.js +0 -78
- package/dist/RecurrentDatePicker.d.ts +0 -2
- package/dist/RecurrentDatePicker.es.js +0 -694
- package/dist/RecurrentDatePickerRRule.d.ts +0 -2
- package/dist/RecurrentDatePickerRRule.es.js +0 -1682
- package/dist/Scrollable.d.ts +0 -2
- package/dist/Scrollable.es.js +0 -260
- package/dist/SegmentedButton.d.ts +0 -6
- package/dist/SegmentedButton.es.js +0 -185
- package/dist/Select-BdxmkrjB.js +0 -1111
- package/dist/Select.d.ts +0 -6
- package/dist/Select.es.js +0 -4
- package/dist/SelectSearch.d.ts +0 -6
- package/dist/SelectSearch.es.js +0 -283
- package/dist/Skeleton.d.ts +0 -6
- package/dist/Skeleton.es.js +0 -74
- package/dist/Spinner.d.ts +0 -6
- package/dist/Spinner.es.js +0 -178
- package/dist/Steps.d.ts +0 -6
- package/dist/Steps.es.js +0 -214
- package/dist/SwipeContainer.d.ts +0 -4
- package/dist/SwipeContainer.es.js +0 -185
- package/dist/Switch.d.ts +0 -6
- package/dist/Switch.es.js +0 -97
- package/dist/TabLinks.d.ts +0 -4
- package/dist/TabLinks.es.js +0 -94
- package/dist/Table.d.ts +0 -2
- package/dist/Table.es.js +0 -121
- package/dist/TextArea.d.ts +0 -4
- package/dist/TextArea.es.js +0 -66
- package/dist/Toast.d.ts +0 -6
- package/dist/Toast.es.js +0 -150
- package/dist/ToastProvider.d.ts +0 -6
- package/dist/ToastProvider.es.js +0 -6
- package/dist/Tooltip.d.ts +0 -6
- package/dist/Tooltip.es.js +0 -62
- package/dist/assets/psmlogo.png +0 -0
- package/dist/cn-B6yFEsav.js +0 -8
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
- package/dist/components/Autocomplete/useAutocomplete.d.ts +0 -43
- package/dist/components/Avatar/Avatar.d.ts +0 -11
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +0 -23
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -12
- package/dist/components/CardProfile/CardProfile.d.ts +0 -55
- package/dist/components/CheckBox/CheckBox.d.ts +0 -11
- package/dist/components/DatePicker/DatePicker.d.ts +0 -82
- package/dist/components/Dialog/Dialog.d.ts +0 -35
- package/dist/components/Dialog/DialogV2.d.ts +0 -35
- package/dist/components/Dialog/useDialogControl.d.ts +0 -8
- package/dist/components/Drawer/DrawerDesktop.d.ts +0 -21
- package/dist/components/Drawer/DrawerMobile.d.ts +0 -24
- package/dist/components/Drawer/useDrawerDesktop.d.ts +0 -8
- package/dist/components/Drawer/useDrawerMobile.d.ts +0 -8
- package/dist/components/DropZone/DropZone.d.ts +0 -16
- package/dist/components/DropZone/DropzoneCompossable.d.ts +0 -54
- package/dist/components/DropZone/useFileDropzone.d.ts +0 -21
- package/dist/components/FAB/FAButton.d.ts +0 -21
- package/dist/components/FileCard/FileCard.d.ts +0 -52
- package/dist/components/Header/Header.d.ts +0 -11
- package/dist/components/Image/GalleryPreview.d.ts +0 -8
- package/dist/components/Image/Image.d.ts +0 -23
- package/dist/components/Image/ImageGallery.d.ts +0 -18
- package/dist/components/Image/LightBox.d.ts +0 -14
- package/dist/components/Image/index.d.ts +0 -5
- package/dist/components/Image/useImageGallery.d.ts +0 -10
- package/dist/components/Input/Input.d.ts +0 -34
- package/dist/components/InputMultiple/InputMultiple.d.ts +0 -25
- package/dist/components/Layout/LayoutGeneric.d.ts +0 -6
- package/dist/components/Logo/Logo.d.ts +0 -2
- package/dist/components/Menu/MenuComposable.d.ts +0 -15
- package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +0 -10
- package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +0 -49
- package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +0 -16
- package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +0 -9
- package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +0 -18
- package/dist/components/NavigationDrawer/NavigationDrawerLinkItem.d.ts +0 -30
- package/dist/components/NavigationDrawer/NavigationDrawerNavlinks.d.ts +0 -11
- package/dist/components/NavigationDrawer/index.d.ts +0 -2
- package/dist/components/NotificationCard/NotificationCard.d.ts +0 -25
- package/dist/components/OtpInput/OtpInput.d.ts +0 -30
- package/dist/components/Pagination/Pagination.d.ts +0 -6
- package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +0 -19
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -18
- package/dist/components/PyrionNavigationDrawer/PyrionHelpSection.d.ts +0 -8
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +0 -130
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerMobileAppSwitcher.d.ts +0 -10
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerSystemLogo.d.ts +0 -7
- package/dist/components/PyrionNavigationDrawer/PyrionNotificationsList.d.ts +0 -8
- package/dist/components/PyrionNavigationDrawer/SidebarContent.d.ts +0 -13
- package/dist/components/PyrionNavigationDrawer/SystemSessions.d.ts +0 -12
- package/dist/components/RadioButton/RadioButton.d.ts +0 -14
- package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +0 -40
- package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +0 -13
- package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +0 -35
- package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +0 -5
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +0 -39
- package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +0 -13
- package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +0 -13
- package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +0 -9
- package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +0 -21
- package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +0 -69
- package/dist/components/Scrollable/Scrollable.d.ts +0 -31
- package/dist/components/SegmentedButton/SegmentedButton.d.ts +0 -20
- package/dist/components/Select/Select.d.ts +0 -123
- package/dist/components/SelectSearch/SelectSearch.d.ts +0 -40
- package/dist/components/Shared/Chip.d.ts +0 -15
- package/dist/components/Shared/HelperComponent.d.ts +0 -13
- package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +0 -32
- package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +0 -2
- package/dist/components/Sidebar/SecondaryBar/index.d.ts +0 -1
- package/dist/components/Sidebar/SidebarComposable.d.ts +0 -43
- package/dist/components/Sidebar/components/NavigationLink.d.ts +0 -11
- package/dist/components/Sidebar/components/badge.d.ts +0 -10
- package/dist/components/Sidebar/components/changue-account.d.ts +0 -5
- package/dist/components/Sidebar/components/collapse-button.d.ts +0 -5
- package/dist/components/Sidebar/components/company-logo.d.ts +0 -5
- package/dist/components/Sidebar/components/nav-actions.d.ts +0 -7
- package/dist/components/Sidebar/components/nav-links.d.ts +0 -7
- package/dist/components/Sidebar/context/SidebarContext.d.ts +0 -13
- package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +0 -3
- package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +0 -9
- package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +0 -4
- package/dist/components/Sidebar/hooks/useNavLinks.d.ts +0 -32
- package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +0 -13
- package/dist/components/Sidebar/index.d.ts +0 -12
- package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +0 -2
- package/dist/components/Skeleton/Skeleton.d.ts +0 -13
- package/dist/components/Spinner/Spinner.d.ts +0 -12
- package/dist/components/Steps/Steps.d.ts +0 -21
- package/dist/components/SwipeContainer/SwipeContainer.d.ts +0 -19
- package/dist/components/Switch/Switch.d.ts +0 -11
- package/dist/components/TabLinks/TabLinks.d.ts +0 -23
- package/dist/components/TabSwitch/TabSwitch.d.ts +0 -16
- package/dist/components/Table/Table.d.ts +0 -14
- package/dist/components/Table/TableWithPagination.d.ts +0 -11
- package/dist/components/TextArea/TextArea.d.ts +0 -15
- package/dist/components/TicketCard/TicketCard.d.ts +0 -32
- package/dist/components/Toaster/ToastProvider.d.ts +0 -5
- package/dist/components/Toaster/Toaster.d.ts +0 -36
- package/dist/components/Tooltip/Tootip.d.ts +0 -10
- package/dist/components/UserCard/UserCard.d.ts +0 -12
- package/dist/exports/Autocomplete.d.ts +0 -1
- package/dist/exports/Avatar.d.ts +0 -1
- package/dist/exports/Button.d.ts +0 -2
- package/dist/exports/CardProfile.d.ts +0 -3
- package/dist/exports/CheckBox.d.ts +0 -2
- package/dist/exports/DatePicker.d.ts +0 -3
- package/dist/exports/DialogModal.d.ts +0 -2
- package/dist/exports/DrawerDesktop.d.ts +0 -4
- package/dist/exports/DrawerMobile.d.ts +0 -4
- package/dist/exports/DropZone.d.ts +0 -3
- package/dist/exports/FAButton.d.ts +0 -1
- package/dist/exports/Header.d.ts +0 -2
- package/dist/exports/Icons.d.ts +0 -1
- package/dist/exports/Image.d.ts +0 -1
- package/dist/exports/ImageGallery.d.ts +0 -2
- package/dist/exports/Input.d.ts +0 -2
- package/dist/exports/InputMultiple.d.ts +0 -3
- package/dist/exports/LayoutGeneric.d.ts +0 -2
- package/dist/exports/Logo.d.ts +0 -1
- package/dist/exports/Menu.d.ts +0 -3
- package/dist/exports/OtpInput.d.ts +0 -2
- package/dist/exports/Pagination.d.ts +0 -2
- package/dist/exports/ProfilePictureUpload.d.ts +0 -3
- package/dist/exports/ProgressBar.d.ts +0 -2
- package/dist/exports/RadioButton.d.ts +0 -3
- package/dist/exports/RecurrentDatePicker.d.ts +0 -5
- package/dist/exports/RecurrentDatePickerRRule.d.ts +0 -2
- package/dist/exports/Scrollable.d.ts +0 -2
- package/dist/exports/SegmentedButton.d.ts +0 -3
- package/dist/exports/Select.d.ts +0 -5
- package/dist/exports/SelectSearch.d.ts +0 -3
- package/dist/exports/Skeleton.d.ts +0 -3
- package/dist/exports/Spinner.d.ts +0 -3
- package/dist/exports/Steps.d.ts +0 -3
- package/dist/exports/SwipeContainer.d.ts +0 -1
- package/dist/exports/Switch.d.ts +0 -3
- package/dist/exports/TabLinks.d.ts +0 -1
- package/dist/exports/Table.d.ts +0 -1
- package/dist/exports/TextArea.d.ts +0 -1
- package/dist/exports/Toast.d.ts +0 -3
- package/dist/exports/ToastProvider.d.ts +0 -2
- package/dist/exports/Tooltip.d.ts +0 -2
- package/dist/exports/useDevice.d.ts +0 -1
- package/dist/hooks/useClickOutside.d.ts +0 -8
- package/dist/hooks/useDevice.d.ts +0 -1
- package/dist/hooks/useDragScroll.d.ts +0 -29
- package/dist/hooks/useLabelBackground.d.ts +0 -6
- package/dist/iconUtils-D0lVAgGT.js +0 -5
- package/dist/index-BOQuZ0gG.js +0 -34
- package/dist/index.d.ts +0 -104
- package/dist/jsx-runtime-GkKLlHH4.js +0 -263
- package/dist/lib/cn.d.ts +0 -2
- package/dist/lib/utils.d.ts +0 -3
- package/dist/prometeo-design-system.es.js +0 -996
- package/dist/styles.css +0 -1
- package/dist/styles.d.ts +0 -1
- package/dist/useDevice.d.ts +0 -2
- package/dist/useDevice.es.js +0 -13
- package/dist/useDragScroll-CHN9OMwn.js +0 -165
- package/dist/useLabelBackground-BDIHUdND.js +0 -26
- package/dist/vite.svg +0 -1
package/dist/Select.d.ts
DELETED
package/dist/Select.es.js
DELETED
package/dist/SelectSearch.d.ts
DELETED
package/dist/SelectSearch.es.js
DELETED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { j as Y } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { g as i, S as Z } from "./Select-BdxmkrjB.js";
|
|
3
|
-
import { useState as A, useRef as E, useEffect as b, useMemo as ee, useCallback as te } from "react";
|
|
4
|
-
function re(e) {
|
|
5
|
-
const {
|
|
6
|
-
options: O,
|
|
7
|
-
fetcher: d,
|
|
8
|
-
asyncMode: _ = "fetch_in_open",
|
|
9
|
-
disabled: w = !1,
|
|
10
|
-
debounceDelay: P = 500,
|
|
11
|
-
minCharacters: T = 3,
|
|
12
|
-
optionLabel: h,
|
|
13
|
-
optionValue: s,
|
|
14
|
-
controlledValue: f,
|
|
15
|
-
isOpen: F,
|
|
16
|
-
inputRef: y,
|
|
17
|
-
name: k
|
|
18
|
-
} = e || {}, M = O ? O.filter((t) => t != null) : [], [V, g] = A(M || []), [D, I] = A(M || []), [c, N] = A(""), [W, v] = A(!1), [J, U] = A(!1), o = E(null), C = E(null), m = E(!1), L = E(d), S = e?.multiple === !0 || !1, j = E(S ? [] : void 0), [a, p] = A(S ? [] : void 0);
|
|
19
|
-
b(() => {
|
|
20
|
-
L.current = d;
|
|
21
|
-
}, [d]), b(() => {
|
|
22
|
-
if (S) {
|
|
23
|
-
const t = z(f, "value");
|
|
24
|
-
p(t);
|
|
25
|
-
} else
|
|
26
|
-
f != null ? p(f) : p(void 0);
|
|
27
|
-
}, [f]), b(() => {
|
|
28
|
-
j.current = f !== void 0 ? f : a;
|
|
29
|
-
}, [f, a]), b(() => {
|
|
30
|
-
if (e?.options) {
|
|
31
|
-
const t = e.options.filter((n) => n != null);
|
|
32
|
-
g(t), I(t);
|
|
33
|
-
}
|
|
34
|
-
}, [e?.options]);
|
|
35
|
-
const B = ee(() => (t, n) => new Promise((l, r) => {
|
|
36
|
-
o.current && clearTimeout(o.current), o.current = setTimeout(() => t(c).then(l).catch(r), n);
|
|
37
|
-
}), [c]), ne = (t) => {
|
|
38
|
-
const n = f !== void 0, l = (r) => s ? i(r, s) : i(r, "id");
|
|
39
|
-
if (e?.multiple === !0) {
|
|
40
|
-
const r = j.current || [];
|
|
41
|
-
let u;
|
|
42
|
-
r.some((x) => l(x) === l(t)) ? u = r.filter((x) => l(x) !== l(t)) : u = [...r, t], n ? (j.current = u, e?.onChange?.(u, k)) : (j.current = u, p(u), e?.onChange?.(u, k));
|
|
43
|
-
} else
|
|
44
|
-
n ? (j.current = t, e?.onChange?.(t, k)) : (j.current = t, p(t), e?.onChange?.(t, k));
|
|
45
|
-
}, q = (t) => (e?.onFetchingStart?.(), L.current?.(t) || Promise.resolve([])), z = (t, n) => Array.isArray(t) ? (t.some((l) => typeof l != "object" || l === null) && console.debug(`El valor del ${n || "resultado del fetcher"} contiene elementos no válidos (null,undefined, no-object)`, t), t?.filter((l) => l != 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((l) => !t.some((r) => i(r, s) === i(l, s))) : n.filter((l) => !t.some((r) => i(r, "id") === i(l, "id"))), [s]);
|
|
46
|
-
b(() => {
|
|
47
|
-
const t = e?.subscribeOpenChange;
|
|
48
|
-
if (!t) return;
|
|
49
|
-
const n = t((l) => {
|
|
50
|
-
U(l);
|
|
51
|
-
});
|
|
52
|
-
return () => {
|
|
53
|
-
n && n();
|
|
54
|
-
};
|
|
55
|
-
}, [e?.subscribeOpenChange]);
|
|
56
|
-
const G = F !== void 0 ? F : J;
|
|
57
|
-
b(() => {
|
|
58
|
-
if (!w && L.current && _ === "fetch_on_type") {
|
|
59
|
-
if (!c || c === "" || c.length < T) {
|
|
60
|
-
o.current && clearTimeout(o.current), v(!1);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const t = B(q, P);
|
|
64
|
-
v(!0), t.then((n) => {
|
|
65
|
-
const l = z(n);
|
|
66
|
-
g(l);
|
|
67
|
-
}).finally(() => {
|
|
68
|
-
v(!1), e?.onFetchingEnd?.();
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}, [_, c, w, P, B, T]), b(() => {
|
|
72
|
-
if (!w)
|
|
73
|
-
if (G) {
|
|
74
|
-
if (e?.onOpen?.(), _ === "fetch_in_open") {
|
|
75
|
-
if (!L.current)
|
|
76
|
-
return;
|
|
77
|
-
v(!0), q().then((t) => {
|
|
78
|
-
const n = z(t);
|
|
79
|
-
g(() => {
|
|
80
|
-
const l = n.filter((r) => {
|
|
81
|
-
if (s)
|
|
82
|
-
return i(r, s) !== void 0;
|
|
83
|
-
});
|
|
84
|
-
return S && a.length > 0 ? [...$(a, l), ...a] : l;
|
|
85
|
-
});
|
|
86
|
-
}).finally(() => {
|
|
87
|
-
v(!1), e?.onFetchingEnd?.();
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
} else
|
|
91
|
-
e?.onClose?.();
|
|
92
|
-
}, [G, _, w]);
|
|
93
|
-
const H = (t, n) => t?.filter((l) => {
|
|
94
|
-
if (h)
|
|
95
|
-
return i(l, h)?.toLowerCase().includes(n.toLowerCase());
|
|
96
|
-
{
|
|
97
|
-
const r = l;
|
|
98
|
-
switch (typeof r) {
|
|
99
|
-
case "string":
|
|
100
|
-
return r?.toLowerCase().includes(n.toLowerCase());
|
|
101
|
-
case "number":
|
|
102
|
-
return r.toString().includes(n);
|
|
103
|
-
case "object":
|
|
104
|
-
return Object.values(r).some((R) => R.toString()?.toLowerCase().includes(n.toLowerCase()));
|
|
105
|
-
default:
|
|
106
|
-
return !1;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}) || [], le = (t) => t?.sort((n, l) => {
|
|
110
|
-
if (h)
|
|
111
|
-
return i(n, h) < i(l, h) ? -1 : 1;
|
|
112
|
-
{
|
|
113
|
-
const u = ["label", "name", "value"].find((K) => typeof n == "object" && Object.keys(n).includes(K)), R = n, x = l;
|
|
114
|
-
switch (typeof R) {
|
|
115
|
-
case "string":
|
|
116
|
-
return R < x ? -1 : 1;
|
|
117
|
-
case "number":
|
|
118
|
-
return R < x ? -1 : 1;
|
|
119
|
-
case "object":
|
|
120
|
-
if (u) {
|
|
121
|
-
const K = i(n, u), oe = i(l, u);
|
|
122
|
-
return K < oe ? -1 : 1;
|
|
123
|
-
} else
|
|
124
|
-
return 1;
|
|
125
|
-
default:
|
|
126
|
-
return 1;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}) || [], Q = (t) => {
|
|
130
|
-
const n = typeof y == "function" ? y() : y;
|
|
131
|
-
t.target === n?.current && (C.current && clearTimeout(C.current), m.current || (m.current = !0, e?.onTypeStart?.()), C.current = setTimeout(() => {
|
|
132
|
-
m.current = !1;
|
|
133
|
-
}, P));
|
|
134
|
-
};
|
|
135
|
-
b(() => {
|
|
136
|
-
if (c === "")
|
|
137
|
-
I(le(V));
|
|
138
|
-
else if (S) {
|
|
139
|
-
const t = $(a, V);
|
|
140
|
-
I([...H(t, c), ...a]);
|
|
141
|
-
} else {
|
|
142
|
-
const t = $([a], V);
|
|
143
|
-
I([...H(t, c), a]);
|
|
144
|
-
}
|
|
145
|
-
}, [V]), b(() => (document.addEventListener("keydown", Q), () => {
|
|
146
|
-
document.removeEventListener("keydown", Q);
|
|
147
|
-
}), []);
|
|
148
|
-
const X = () => {
|
|
149
|
-
N("");
|
|
150
|
-
};
|
|
151
|
-
return {
|
|
152
|
-
inputValue: c,
|
|
153
|
-
setInputValue: N,
|
|
154
|
-
cleanInputValue: X,
|
|
155
|
-
cleanOptions: () => {
|
|
156
|
-
if (S)
|
|
157
|
-
g(a);
|
|
158
|
-
else {
|
|
159
|
-
const t = a;
|
|
160
|
-
g(t ? [t] : []);
|
|
161
|
-
}
|
|
162
|
-
X();
|
|
163
|
-
},
|
|
164
|
-
clearValue: () => {
|
|
165
|
-
p(S ? [] : void 0);
|
|
166
|
-
},
|
|
167
|
-
filteredOptions: D,
|
|
168
|
-
isLoading: W,
|
|
169
|
-
value: a,
|
|
170
|
-
setValue: p,
|
|
171
|
-
onOptionClick: ne
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
const fe = (e) => {
|
|
175
|
-
const O = E(null), { asyncMode: d = "fetch_in_open" } = e, _ = (o, C, m) => {
|
|
176
|
-
const L = {
|
|
177
|
-
options: o.options,
|
|
178
|
-
fetcher: o.fetcher,
|
|
179
|
-
asyncMode: C,
|
|
180
|
-
debounceDelay: o.debounceDelay,
|
|
181
|
-
minCharacters: o.minCharacters,
|
|
182
|
-
disabled: o.disabled,
|
|
183
|
-
optionValue: o.optionValue,
|
|
184
|
-
optionLabel: o.optionLabel,
|
|
185
|
-
onFetchingStart: () => {
|
|
186
|
-
C === "fetch_on_type" && m.current?.open();
|
|
187
|
-
},
|
|
188
|
-
onTypeStart: () => {
|
|
189
|
-
!o?.fetcher && m.current?.open();
|
|
190
|
-
},
|
|
191
|
-
inputRef: () => m.current?.searchInputRef,
|
|
192
|
-
subscribeOpenChange: m.current?.subscribeOpenChange,
|
|
193
|
-
name: o.name
|
|
194
|
-
};
|
|
195
|
-
return o.multiple ? {
|
|
196
|
-
...L,
|
|
197
|
-
multiple: !0,
|
|
198
|
-
controlledValue: o.value,
|
|
199
|
-
onChange: o.onChange
|
|
200
|
-
} : {
|
|
201
|
-
...L,
|
|
202
|
-
multiple: !1,
|
|
203
|
-
controlledValue: o.value,
|
|
204
|
-
onChange: o.onChange
|
|
205
|
-
};
|
|
206
|
-
}, { inputValue: w, setInputValue: P, filteredOptions: T, isLoading: h, value: s, onOptionClick: f, cleanInputValue: F, cleanOptions: y, clearValue: k } = re(_(e, d, O));
|
|
207
|
-
b(() => {
|
|
208
|
-
!e.controls || !O.current || (e.controls.current = {
|
|
209
|
-
...O.current,
|
|
210
|
-
cleanOptions: () => {
|
|
211
|
-
y();
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
}, [e.controls, y]);
|
|
215
|
-
const M = te(
|
|
216
|
-
() => d === "fetch_on_type" ? h : !1,
|
|
217
|
-
[d, h]
|
|
218
|
-
), V = ee(() => e.multiple ? s.map((o) => i(o, e.optionValue)) : s ? i(s, e.optionValue) : void 0, [s, e.optionValue, e.multiple]), g = (o) => {
|
|
219
|
-
const C = T.find((m) => i(m, e.optionValue) === o.id);
|
|
220
|
-
C && f(C);
|
|
221
|
-
}, { displayMode: D = e.multiple ? "chips" : "compact", dropdownOptions: I, overflow: c = "scroll", onChange: N, onClear: W, ...v } = e.selectComponentProps || {}, J = {
|
|
222
|
-
controledSearchValue: w,
|
|
223
|
-
onSearchValueChange: d === "fetch_on_type" ? P : void 0,
|
|
224
|
-
onSearchClear: d === "fetch_on_type" ? () => {
|
|
225
|
-
F(), y();
|
|
226
|
-
} : void 0,
|
|
227
|
-
inputSearchPlaceholder: e.inputSearchPlaceholder,
|
|
228
|
-
isLoading: M(),
|
|
229
|
-
...I || {}
|
|
230
|
-
}, U = () => {
|
|
231
|
-
k(), e?.selectComponentProps?.onClear?.();
|
|
232
|
-
};
|
|
233
|
-
return e.multiple ? /* @__PURE__ */ Y.jsx(
|
|
234
|
-
Z,
|
|
235
|
-
{
|
|
236
|
-
disabled: e.disabled,
|
|
237
|
-
className: e.className,
|
|
238
|
-
name: e.name,
|
|
239
|
-
overflow: c,
|
|
240
|
-
...v,
|
|
241
|
-
onClear: e?.selectComponentProps?.onClear && U,
|
|
242
|
-
multiple: !0,
|
|
243
|
-
value: V,
|
|
244
|
-
label: e.label || "",
|
|
245
|
-
options: T,
|
|
246
|
-
optionValue: e.optionValue,
|
|
247
|
-
optionLabel: e.optionLabel,
|
|
248
|
-
renderOption: e.renderOption,
|
|
249
|
-
onOptionClick: g,
|
|
250
|
-
displayMode: D,
|
|
251
|
-
controls: O,
|
|
252
|
-
emptyMessage: "Use el buscador para obtener las opciones disponibles",
|
|
253
|
-
dropdownOptions: J,
|
|
254
|
-
isLoading: d === "fetch_in_open" ? h : !1
|
|
255
|
-
}
|
|
256
|
-
) : /* @__PURE__ */ Y.jsx(
|
|
257
|
-
Z,
|
|
258
|
-
{
|
|
259
|
-
disabled: e.disabled,
|
|
260
|
-
...v,
|
|
261
|
-
onClear: U,
|
|
262
|
-
className: e.className,
|
|
263
|
-
overflow: c,
|
|
264
|
-
name: e.name,
|
|
265
|
-
multiple: !1,
|
|
266
|
-
value: V,
|
|
267
|
-
label: e.label || "",
|
|
268
|
-
options: T,
|
|
269
|
-
optionValue: e.optionValue,
|
|
270
|
-
optionLabel: e.optionLabel,
|
|
271
|
-
renderOption: e.renderOption,
|
|
272
|
-
onOptionClick: g,
|
|
273
|
-
displayMode: "compact",
|
|
274
|
-
controls: O,
|
|
275
|
-
emptyMessage: "Use el buscador para obtener las opciones disponibles",
|
|
276
|
-
dropdownOptions: J,
|
|
277
|
-
isLoading: d === "fetch_in_open" ? h : !1
|
|
278
|
-
}
|
|
279
|
-
);
|
|
280
|
-
};
|
|
281
|
-
export {
|
|
282
|
-
fe as default
|
|
283
|
-
};
|
package/dist/Skeleton.d.ts
DELETED
package/dist/Skeleton.es.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/Spinner.d.ts
DELETED
package/dist/Spinner.es.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
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
|
-
};
|