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/DatePicker.d.ts
DELETED
package/dist/DatePicker.es.js
DELETED
package/dist/DialogModal.d.ts
DELETED
package/dist/DialogModal.es.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { forwardRef as h, memo as s, useState as D, useRef as p, useCallback as n, useImperativeHandle as R } from "react";
|
|
3
|
-
import { c as j } from "./cn-B6yFEsav.js";
|
|
4
|
-
const C = h(
|
|
5
|
-
({ children: e, onClose: t, className: a }, i) => {
|
|
6
|
-
const [l, r] = D(!1), [c, f] = D(null), x = p(t), u = p(c);
|
|
7
|
-
x.current = t, u.current = c;
|
|
8
|
-
const m = n((g) => {
|
|
9
|
-
f(g ?? null), r(!0);
|
|
10
|
-
}, []), d = n(() => {
|
|
11
|
-
r(!1), x.current?.(u.current), setTimeout(() => f(null), 300);
|
|
12
|
-
}, []);
|
|
13
|
-
return R(
|
|
14
|
-
i,
|
|
15
|
-
() => ({
|
|
16
|
-
open: m,
|
|
17
|
-
close: d,
|
|
18
|
-
isOpen: l,
|
|
19
|
-
getContext: () => u.current
|
|
20
|
-
}),
|
|
21
|
-
[m, d, l]
|
|
22
|
-
), /* @__PURE__ */ o.jsx(o.Fragment, { children: l && /* @__PURE__ */ o.jsx(
|
|
23
|
-
"div",
|
|
24
|
-
{
|
|
25
|
-
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-[1.5px]",
|
|
26
|
-
onClick: d,
|
|
27
|
-
children: /* @__PURE__ */ o.jsx(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
className: j(
|
|
31
|
-
"bg-neutral-default-default w-3/4 h-3/4 xl:w-3/4 xl:h-10/12 rounded-lg shadow-lg border-neutral-strong-default border relative p-6",
|
|
32
|
-
a
|
|
33
|
-
),
|
|
34
|
-
onClick: (g) => g.stopPropagation(),
|
|
35
|
-
children: typeof e == "function" ? e(c) : e
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
) });
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
C.displayName = "Dialog";
|
|
43
|
-
const b = s(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("div", { className: t, children: /* @__PURE__ */ o.jsx("div", { className: j("flex flex-col gap-4 h-full"), children: e }) }));
|
|
44
|
-
b.displayName = "DialogContent";
|
|
45
|
-
const N = s(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("h1", { className: t, children: e }));
|
|
46
|
-
N.displayName = "DialogTitle";
|
|
47
|
-
const v = s(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("div", { className: t, children: e }));
|
|
48
|
-
v.displayName = "DialogHeader";
|
|
49
|
-
const y = s(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("div", { className: t, children: e }));
|
|
50
|
-
y.displayName = "DialogFooter";
|
|
51
|
-
const k = Object.assign(C, {
|
|
52
|
-
Content: b,
|
|
53
|
-
Header: v,
|
|
54
|
-
Footer: y,
|
|
55
|
-
Title: N
|
|
56
|
-
});
|
|
57
|
-
k.displayName = "DialogModal";
|
|
58
|
-
const H = () => {
|
|
59
|
-
const e = p(null), t = n((r) => {
|
|
60
|
-
e.current?.open(r);
|
|
61
|
-
}, []), a = n(() => {
|
|
62
|
-
e.current?.close();
|
|
63
|
-
}, []), i = n(() => e.current?.isOpen ?? !1, []), l = n(() => e.current?.getContext() ?? null, []);
|
|
64
|
-
return {
|
|
65
|
-
ref: e,
|
|
66
|
-
open: t,
|
|
67
|
-
close: a,
|
|
68
|
-
isOpen: i,
|
|
69
|
-
getContext: l
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
k as default,
|
|
74
|
-
H as useDialogControl
|
|
75
|
-
};
|
package/dist/DrawerDesktop.d.ts
DELETED
package/dist/DrawerDesktop.es.js
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { j as f } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { c as R } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { c as j } from "./index-BOQuZ0gG.js";
|
|
4
|
-
import { createPortal as P } from "react-dom";
|
|
5
|
-
import { forwardRef as B, useRef as m, useState as v, useEffect as s, useCallback as C, useImperativeHandle as L } from "react";
|
|
6
|
-
import Y from "./Button.es.js";
|
|
7
|
-
import { Close as F } from "./Icons/Close.es.js";
|
|
8
|
-
const H = B((t, i) => {
|
|
9
|
-
const a = m(null), [e, u] = v(t.defaultOpen || !1), [r, o] = v(null), d = m(t.onClose), l = m(r), p = m(/* @__PURE__ */ new Set()), {
|
|
10
|
-
modal: b = !1,
|
|
11
|
-
children: y,
|
|
12
|
-
className: g,
|
|
13
|
-
direction: O = "left",
|
|
14
|
-
attachToParent: c = !1,
|
|
15
|
-
closeOnOverlayClick: h = !1,
|
|
16
|
-
hideCloseButton: N = !1,
|
|
17
|
-
unmountChildrenOnClose: x = !1
|
|
18
|
-
} = t, k = m(h), D = m(e);
|
|
19
|
-
l.current = r;
|
|
20
|
-
const [T, V] = v(() => !x);
|
|
21
|
-
s(() => {
|
|
22
|
-
x && e && V(!0);
|
|
23
|
-
}, [e, x]), s(() => {
|
|
24
|
-
D.current = e;
|
|
25
|
-
}, [e]), s(() => {
|
|
26
|
-
l.current = r;
|
|
27
|
-
}, [r]), s(() => {
|
|
28
|
-
k.current = h;
|
|
29
|
-
}, [h]);
|
|
30
|
-
const S = (n) => {
|
|
31
|
-
if (!a.current)
|
|
32
|
-
return;
|
|
33
|
-
const I = a.current;
|
|
34
|
-
I && !I.contains(n.target) && k.current && D.current && w();
|
|
35
|
-
};
|
|
36
|
-
s(() => {
|
|
37
|
-
if (!k.current || b || !e)
|
|
38
|
-
return;
|
|
39
|
-
const n = setTimeout(() => {
|
|
40
|
-
document.addEventListener("click", S);
|
|
41
|
-
}, 0);
|
|
42
|
-
return () => {
|
|
43
|
-
clearTimeout(n), document.removeEventListener("click", S);
|
|
44
|
-
};
|
|
45
|
-
}, [h, e, b]), s(() => {
|
|
46
|
-
d.current = t.onClose;
|
|
47
|
-
}, [t.onClose]);
|
|
48
|
-
const z = C((n) => {
|
|
49
|
-
o(n ?? null), u(!0);
|
|
50
|
-
}, []), w = C(() => {
|
|
51
|
-
u(!1), d.current?.(l.current), setTimeout(() => o(null), 300);
|
|
52
|
-
}, []);
|
|
53
|
-
s(() => {
|
|
54
|
-
p.current.forEach((n) => {
|
|
55
|
-
try {
|
|
56
|
-
n(e);
|
|
57
|
-
} catch {
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}, [e]), L(
|
|
61
|
-
i,
|
|
62
|
-
() => ({
|
|
63
|
-
open: z,
|
|
64
|
-
close: w,
|
|
65
|
-
isOpen: e,
|
|
66
|
-
subscribeOpenChange: (n) => (p.current.add(n), () => {
|
|
67
|
-
p.current.delete(n);
|
|
68
|
-
}),
|
|
69
|
-
getContext: () => l.current
|
|
70
|
-
}),
|
|
71
|
-
[e, z, w]
|
|
72
|
-
);
|
|
73
|
-
const E = /* @__PURE__ */ f.jsx(
|
|
74
|
-
$,
|
|
75
|
-
{
|
|
76
|
-
context: r,
|
|
77
|
-
ref: a,
|
|
78
|
-
isOpen: e,
|
|
79
|
-
close: w,
|
|
80
|
-
direction: O,
|
|
81
|
-
modal: b,
|
|
82
|
-
className: g,
|
|
83
|
-
attachToParent: c,
|
|
84
|
-
closeOnOverlayClick: h,
|
|
85
|
-
hideCloseButton: N,
|
|
86
|
-
children: (!x || T) && (typeof y == "function" ? y(r) : y)
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
return c ? E : P(E, document.body);
|
|
90
|
-
});
|
|
91
|
-
H.displayName = "DrawerDesktopV2";
|
|
92
|
-
const $ = ({
|
|
93
|
-
ref: t,
|
|
94
|
-
children: i,
|
|
95
|
-
direction: a = "left",
|
|
96
|
-
isOpen: e,
|
|
97
|
-
close: u,
|
|
98
|
-
modal: r = !1,
|
|
99
|
-
className: o,
|
|
100
|
-
attachToParent: d = !1,
|
|
101
|
-
closeOnOverlayClick: l = !1,
|
|
102
|
-
hideCloseButton: p = !1,
|
|
103
|
-
context: b
|
|
104
|
-
}) => {
|
|
105
|
-
s(() => {
|
|
106
|
-
if (e && r) {
|
|
107
|
-
const c = window.scrollY;
|
|
108
|
-
return document.body.style.position = "fixed", document.body.style.top = `-${c}px`, document.body.style.width = "100%", () => {
|
|
109
|
-
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, c);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
}, [e, r]);
|
|
113
|
-
const y = j("border-neutral-strong-default", {
|
|
114
|
-
variants: {
|
|
115
|
-
isOpen: {
|
|
116
|
-
true: "desktop-drawer-visible",
|
|
117
|
-
false: "desktop-drawer-hidden"
|
|
118
|
-
},
|
|
119
|
-
direction: {
|
|
120
|
-
left: "left-0 border-r-[1px] border-l-0",
|
|
121
|
-
right: "right-0 border-l-[1px] border-r-0"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}), g = j(
|
|
125
|
-
"fixed inset-0 bg-black/60 z-[55] cursor-default",
|
|
126
|
-
{
|
|
127
|
-
variants: {
|
|
128
|
-
isOpen: {
|
|
129
|
-
true: "drawer-overlay-visible",
|
|
130
|
-
false: "drawer-overlay-hidden"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
), O = j("", {
|
|
135
|
-
variants: {
|
|
136
|
-
direction: {
|
|
137
|
-
left: "right-0",
|
|
138
|
-
right: "left-0"
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
143
|
-
r && /* @__PURE__ */ f.jsx(
|
|
144
|
-
"div",
|
|
145
|
-
{
|
|
146
|
-
className: R(g({ isOpen: e })),
|
|
147
|
-
onClick: (c) => {
|
|
148
|
-
c.preventDefault(), c.stopPropagation(), l && u();
|
|
149
|
-
},
|
|
150
|
-
"aria-hidden": "true"
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
/* @__PURE__ */ f.jsxs(
|
|
154
|
-
"div",
|
|
155
|
-
{
|
|
156
|
-
ref: t,
|
|
157
|
-
className: R(
|
|
158
|
-
"bg-neutral-strong-default h-full top-0 z-60 w-max overflow-y-auto",
|
|
159
|
-
d ? "absolute" : "fixed",
|
|
160
|
-
y({ isOpen: e, direction: a }),
|
|
161
|
-
!p && "p-4 pt-10",
|
|
162
|
-
o
|
|
163
|
-
),
|
|
164
|
-
role: "dialog",
|
|
165
|
-
"aria-modal": r,
|
|
166
|
-
children: [
|
|
167
|
-
!p && /* @__PURE__ */ f.jsx(
|
|
168
|
-
Y,
|
|
169
|
-
{
|
|
170
|
-
icon: /* @__PURE__ */ f.jsx(F, { size: 24 }),
|
|
171
|
-
animate: !1,
|
|
172
|
-
animateIcon: !1,
|
|
173
|
-
type: "button",
|
|
174
|
-
size: "small",
|
|
175
|
-
variant: "text",
|
|
176
|
-
onClick: u,
|
|
177
|
-
label: "",
|
|
178
|
-
color: "secondary",
|
|
179
|
-
className: R(
|
|
180
|
-
"absolute top-0 z-50",
|
|
181
|
-
O({ direction: a })
|
|
182
|
-
),
|
|
183
|
-
"aria-label": "Close drawer"
|
|
184
|
-
}
|
|
185
|
-
),
|
|
186
|
-
typeof i == "function" ? i(b) : i
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
] });
|
|
191
|
-
}, U = () => {
|
|
192
|
-
const t = m(null), [i, a] = v(!1), e = C((o) => {
|
|
193
|
-
t.current?.open(o);
|
|
194
|
-
}, []), u = C(() => {
|
|
195
|
-
t.current?.close();
|
|
196
|
-
}, []), r = C(() => t.current?.getContext() ?? null, []);
|
|
197
|
-
return s(() => {
|
|
198
|
-
const o = t.current?.subscribeOpenChange;
|
|
199
|
-
if (!o) return;
|
|
200
|
-
const d = o((l) => {
|
|
201
|
-
a(l);
|
|
202
|
-
});
|
|
203
|
-
return () => {
|
|
204
|
-
d && d();
|
|
205
|
-
};
|
|
206
|
-
}, [t.current?.subscribeOpenChange]), {
|
|
207
|
-
isOpen: i,
|
|
208
|
-
open: e,
|
|
209
|
-
close: u,
|
|
210
|
-
drawerRef: t,
|
|
211
|
-
getContext: r
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
export {
|
|
215
|
-
H as default,
|
|
216
|
-
U as useDrawerDesktop
|
|
217
|
-
};
|
package/dist/DrawerMobile.d.ts
DELETED
package/dist/DrawerMobile.es.js
DELETED
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { j as m } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { c as _ } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { forwardRef as V, useState as $, useRef as v, useEffect as y, useCallback as c, useMemo as Q, useImperativeHandle as X } from "react";
|
|
4
|
-
import { createPortal as Z } from "react-dom";
|
|
5
|
-
const B = 44, P = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", se = V((l, o) => {
|
|
6
|
-
const { children: D, defaultOpen: s = !1, onClose: g, snapPoints: w = ["60%"], setSnap: d, snap: u, attachToParent: x = !1 } = l, [R, Y] = $(u || "0%"), [M, r] = $(null), O = v(g), T = v(d), f = v(M), p = v(/* @__PURE__ */ new Set());
|
|
7
|
-
O.current = g, f.current = M, y(() => {
|
|
8
|
-
s && S();
|
|
9
|
-
}, [s]), y(() => {
|
|
10
|
-
T.current = d;
|
|
11
|
-
}, [d]);
|
|
12
|
-
const j = c(() => {
|
|
13
|
-
Y("0%"), O.current?.(f.current), setTimeout(() => r(null), 300);
|
|
14
|
-
}, []), S = c((h, k) => {
|
|
15
|
-
Y(h || w[0] || "60%"), r(k ?? null);
|
|
16
|
-
}, [w]), H = Q(() => R !== "0%", [R]);
|
|
17
|
-
y(() => {
|
|
18
|
-
p.current.forEach((h) => {
|
|
19
|
-
try {
|
|
20
|
-
h(H);
|
|
21
|
-
} catch {
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}, [H]), X(o, () => ({
|
|
25
|
-
open: S,
|
|
26
|
-
close: j,
|
|
27
|
-
isOpen: H,
|
|
28
|
-
subscribeOpenChange: (h) => (p.current.add(h), () => {
|
|
29
|
-
p.current.delete(h);
|
|
30
|
-
}),
|
|
31
|
-
getContext: () => f.current
|
|
32
|
-
}), [S, j, H]);
|
|
33
|
-
const F = u || R;
|
|
34
|
-
return x ? /* @__PURE__ */ m.jsx(K, { ...l, snap: F, setSnap: Y, context: M, children: D }) : Z(/* @__PURE__ */ m.jsx(K, { ...l, snap: F, setSnap: Y, context: M, children: D }), document.body);
|
|
35
|
-
}), K = ({ children: l, attachToParent: o = !1, className: D, snap: s, snapPoints: g = ["60%"], setSnap: w, hideOnClose: d = !1, unmountChildrenOnClose: u = !1, header: x, modal: R = !1, closeOnOverlayClick: Y = !1, context: M }) => {
|
|
36
|
-
const r = v(null), O = v(null), T = v(null), f = v(null), p = v(null), j = c(() => {
|
|
37
|
-
if (!r.current) return [];
|
|
38
|
-
const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
|
|
39
|
-
return g?.map((t) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) > 100 ? e : parseFloat(t) / 100 * e : typeof t == "string" && t.endsWith("px") ? parseFloat(t) : typeof t == "number" && t >= 0 && t <= 1 ? t * e : typeof t == "number" ? t : 0) || [];
|
|
40
|
-
}, [g, o]), S = c((e, t) => {
|
|
41
|
-
const n = j();
|
|
42
|
-
if (n.length === 0) return e;
|
|
43
|
-
if (Math.abs(t) > 0.05)
|
|
44
|
-
if (t > 0) {
|
|
45
|
-
const a = n.filter((i) => i < e);
|
|
46
|
-
return a.length > 0 ? Math.max(...a) : d ? 0 : B;
|
|
47
|
-
} else {
|
|
48
|
-
const a = n.filter((i) => i > e);
|
|
49
|
-
if (a.length > 0)
|
|
50
|
-
return Math.min(...a);
|
|
51
|
-
}
|
|
52
|
-
return n.reduce((a, i) => Math.abs(i - e) < Math.abs(a - e) ? i : a);
|
|
53
|
-
}, [j]), H = c((e) => {
|
|
54
|
-
if (w && g) {
|
|
55
|
-
const t = o && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= B ? "0%" : `${Math.round(e / t * 100)}%`;
|
|
56
|
-
w(n);
|
|
57
|
-
}
|
|
58
|
-
}, [w, g, o]), F = c((e) => {
|
|
59
|
-
r.current && (r.current.style.transition = P, r.current.style.height = `${e}px`);
|
|
60
|
-
}, [w, g, o]), N = c(() => {
|
|
61
|
-
if (p.current && o) {
|
|
62
|
-
const { scrollY: e } = p.current;
|
|
63
|
-
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), p.current = null;
|
|
64
|
-
}
|
|
65
|
-
}, [o]);
|
|
66
|
-
y(() => () => {
|
|
67
|
-
N();
|
|
68
|
-
}, [N]), y(() => {
|
|
69
|
-
if (!r.current || !s) return;
|
|
70
|
-
const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
|
|
71
|
-
let t = 0;
|
|
72
|
-
typeof s == "string" && s.endsWith("%") ? parseFloat(s) <= 0 ? t = d ? 0 : B : t = parseFloat(s) / 100 * e : typeof s == "string" && s.endsWith("px") ? t = parseFloat(s) : typeof s == "number" && (s >= 0 && s <= 1 ? t = s * e : t = s), F(t);
|
|
73
|
-
}, [s, o]);
|
|
74
|
-
const h = c((e) => {
|
|
75
|
-
if (!r.current) return;
|
|
76
|
-
const t = e.touches[0], n = r.current.offsetHeight;
|
|
77
|
-
f.current = {
|
|
78
|
-
isDragging: !1,
|
|
79
|
-
startY: t.clientY,
|
|
80
|
-
startHeight: n,
|
|
81
|
-
lastY: t.clientY,
|
|
82
|
-
lastTime: Date.now(),
|
|
83
|
-
velocity: 0
|
|
84
|
-
};
|
|
85
|
-
}, []), k = c((e) => {
|
|
86
|
-
if (!r.current) return;
|
|
87
|
-
const t = e, n = r.current.offsetHeight;
|
|
88
|
-
f.current = {
|
|
89
|
-
isDragging: !1,
|
|
90
|
-
startY: t.clientY,
|
|
91
|
-
startHeight: n,
|
|
92
|
-
lastY: t.clientY,
|
|
93
|
-
lastTime: Date.now(),
|
|
94
|
-
velocity: 0
|
|
95
|
-
};
|
|
96
|
-
}, []), z = c((e) => {
|
|
97
|
-
if (!f.current || !r.current) return;
|
|
98
|
-
const t = e.touches[0], n = f.current, L = n.startY - t.clientY, a = n.isDragging || Math.abs(L) > 5;
|
|
99
|
-
if (!n.isDragging && a && (n.isDragging = !0, o)) {
|
|
100
|
-
const i = window.scrollY;
|
|
101
|
-
p.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
|
|
102
|
-
}
|
|
103
|
-
if (a) {
|
|
104
|
-
e.preventDefault();
|
|
105
|
-
const i = Date.now(), I = i - n.lastTime;
|
|
106
|
-
if (I > 0) {
|
|
107
|
-
const A = (t.clientY - n.lastY) / I;
|
|
108
|
-
n.velocity = n.velocity * 0.8 + A * 0.2;
|
|
109
|
-
}
|
|
110
|
-
n.lastY = t.clientY, n.lastTime = i;
|
|
111
|
-
const C = n.startHeight + L, G = o && r.current.parentElement?.offsetHeight || window.innerHeight, W = Math.max(0, Math.min(C, G));
|
|
112
|
-
r.current.style.transition = "none", r.current.style.height = `${W}px`;
|
|
113
|
-
}
|
|
114
|
-
}, [o]), q = c((e) => {
|
|
115
|
-
if (!f.current || !r.current) return;
|
|
116
|
-
const t = e, n = f.current, L = n.startY - t.clientY, a = n.isDragging || Math.abs(L) > 5;
|
|
117
|
-
if (!n.isDragging && a && (n.isDragging = !0, o)) {
|
|
118
|
-
const i = window.scrollY;
|
|
119
|
-
p.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
|
|
120
|
-
}
|
|
121
|
-
if (a) {
|
|
122
|
-
e.preventDefault();
|
|
123
|
-
const i = Date.now(), I = i - n.lastTime;
|
|
124
|
-
if (I > 0) {
|
|
125
|
-
const A = (t.clientY - n.lastY) / I;
|
|
126
|
-
n.velocity = n.velocity * 0.8 + A * 0.2;
|
|
127
|
-
}
|
|
128
|
-
n.lastY = t.clientY, n.lastTime = i;
|
|
129
|
-
const C = n.startHeight + L, G = o && r.current.parentElement?.offsetHeight || window.innerHeight, W = Math.max(0, Math.min(C, G));
|
|
130
|
-
r.current.style.transition = "none", r.current.style.height = `${W}px`;
|
|
131
|
-
}
|
|
132
|
-
}, [o]), b = c(() => {
|
|
133
|
-
if (!f.current || !r.current) return;
|
|
134
|
-
const e = f.current;
|
|
135
|
-
if (e.isDragging) {
|
|
136
|
-
N();
|
|
137
|
-
const t = r.current.offsetHeight, n = S(t, e.velocity);
|
|
138
|
-
H(n);
|
|
139
|
-
}
|
|
140
|
-
f.current = null;
|
|
141
|
-
}, [S, F, N]);
|
|
142
|
-
y(() => {
|
|
143
|
-
const e = T.current;
|
|
144
|
-
if (e)
|
|
145
|
-
return e.addEventListener("touchstart", h, { passive: !1 }), e.addEventListener("touchmove", z, { passive: !1 }), e.addEventListener("touchend", b), e.addEventListener("touchcancel", b), e.addEventListener("mousedown", k, { passive: !1 }), e.addEventListener("mousemove", q, { passive: !1 }), e.addEventListener("mouseup", b), e.addEventListener("mouseleave", b), () => {
|
|
146
|
-
e.removeEventListener("touchstart", h), e.removeEventListener("touchmove", z), e.removeEventListener("touchend", b), e.removeEventListener("touchcancel", b), e.removeEventListener("mousedown", k), e.removeEventListener("mousemove", q), e.removeEventListener("mouseup", b), e.removeEventListener("mouseleave", b);
|
|
147
|
-
};
|
|
148
|
-
}, [h, z, b]);
|
|
149
|
-
const E = Q(() => s !== "0%", [s]), [U, J] = $(() => u ? s !== "0%" : !0);
|
|
150
|
-
return y(() => {
|
|
151
|
-
u && E && J(!0);
|
|
152
|
-
}, [E, u]), y(() => {
|
|
153
|
-
if (!u) return;
|
|
154
|
-
const e = r.current;
|
|
155
|
-
if (!e) return;
|
|
156
|
-
const t = (n) => {
|
|
157
|
-
n.propertyName === "height" && !E && s === "0%" && J(!1);
|
|
158
|
-
};
|
|
159
|
-
return e.addEventListener("transitionend", t), () => {
|
|
160
|
-
e.removeEventListener("transitionend", t);
|
|
161
|
-
};
|
|
162
|
-
}, [E, s, u]), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
163
|
-
R && /* @__PURE__ */ m.jsx(
|
|
164
|
-
"div",
|
|
165
|
-
{
|
|
166
|
-
className: _(E ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
|
|
167
|
-
onClick: (e) => {
|
|
168
|
-
e.preventDefault(), e.stopPropagation(), Y && H(0);
|
|
169
|
-
},
|
|
170
|
-
"aria-hidden": "true"
|
|
171
|
-
}
|
|
172
|
-
),
|
|
173
|
-
/* @__PURE__ */ m.jsxs(
|
|
174
|
-
"div",
|
|
175
|
-
{
|
|
176
|
-
ref: r,
|
|
177
|
-
className: _(
|
|
178
|
-
"h-0",
|
|
179
|
-
o ? "absolute" : "fixed",
|
|
180
|
-
"z-60 bottom-0 w-full overflow-hidden",
|
|
181
|
-
"bg-neutral-default-default",
|
|
182
|
-
"border-t border-neutral-strong-default rounded-t-[12px]",
|
|
183
|
-
E ? "" : "border-neutral-weak",
|
|
184
|
-
D,
|
|
185
|
-
"flex flex-col items-center",
|
|
186
|
-
"touch-none select-none"
|
|
187
|
-
),
|
|
188
|
-
children: [
|
|
189
|
-
/* @__PURE__ */ m.jsx(
|
|
190
|
-
"div",
|
|
191
|
-
{
|
|
192
|
-
ref: T,
|
|
193
|
-
className: "w-full absolute top-0 h-11 flex items-center justify-center cursor-grab active:cursor-grabbing z-50 bg-inherit!",
|
|
194
|
-
children: /* @__PURE__ */ m.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
|
|
195
|
-
}
|
|
196
|
-
),
|
|
197
|
-
typeof x == "string" ? /* @__PURE__ */ m.jsx("p", { className: " prometeo-fonts-headline-small text-neutral-default-default w-full h-11 bg-inherit absolute top-11 z-50 px-4", children: x }) : x,
|
|
198
|
-
/* @__PURE__ */ m.jsx(
|
|
199
|
-
"div",
|
|
200
|
-
{
|
|
201
|
-
ref: O,
|
|
202
|
-
className: _(
|
|
203
|
-
"w-full h-full overflow-y-auto px-4 pb-4 ",
|
|
204
|
-
x ? "mt-22" : "mt-11"
|
|
205
|
-
),
|
|
206
|
-
style: {
|
|
207
|
-
overscrollBehavior: "contain",
|
|
208
|
-
overflow: E ? "auto" : "hidden"
|
|
209
|
-
},
|
|
210
|
-
children: (!u || U) && (typeof l == "function" ? l(M) : l)
|
|
211
|
-
}
|
|
212
|
-
)
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
)
|
|
216
|
-
] });
|
|
217
|
-
}, oe = () => {
|
|
218
|
-
const l = v(null), [o, D] = $(!1), s = c((d, u) => {
|
|
219
|
-
l.current?.open(d, u);
|
|
220
|
-
}, []), g = c(() => {
|
|
221
|
-
l.current?.close();
|
|
222
|
-
}, []), w = c(() => l.current?.getContext() ?? null, []);
|
|
223
|
-
return y(() => {
|
|
224
|
-
const d = l.current?.subscribeOpenChange;
|
|
225
|
-
if (!d) return;
|
|
226
|
-
const u = d((x) => {
|
|
227
|
-
D(x);
|
|
228
|
-
});
|
|
229
|
-
return () => {
|
|
230
|
-
u && u();
|
|
231
|
-
};
|
|
232
|
-
}, [l.current?.subscribeOpenChange]), {
|
|
233
|
-
isOpen: o,
|
|
234
|
-
open: s,
|
|
235
|
-
close: g,
|
|
236
|
-
drawerRef: l,
|
|
237
|
-
getContext: w
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
export {
|
|
241
|
-
se as default,
|
|
242
|
-
oe as useDrawerMobile
|
|
243
|
-
};
|
package/dist/DropZone.d.ts
DELETED
package/dist/DropZone.es.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
|
-
import P, { useCallback as R } from "react";
|
|
4
|
-
import { useDropzone as z } from "react-dropzone";
|
|
5
|
-
import { Error as w } from "./Icons/Error.es.js";
|
|
6
|
-
import { Upload as E } from "./Icons/Upload.es.js";
|
|
7
|
-
const q = P.forwardRef(
|
|
8
|
-
({
|
|
9
|
-
onFilesAccepted: m,
|
|
10
|
-
onFilesRejected: d,
|
|
11
|
-
className: u,
|
|
12
|
-
subtitle: p = "Arrastra y suelta el archivo aquí o haz clic para cargarlo desde tu computadora",
|
|
13
|
-
acceptedFormats: x = ".PNG, .JPG, .TXT o .PDF. Máx 100 BM.",
|
|
14
|
-
variant: f = "default",
|
|
15
|
-
disabled: l = !1,
|
|
16
|
-
showIcon: h = !0,
|
|
17
|
-
accept: v,
|
|
18
|
-
maxFiles: g = 1,
|
|
19
|
-
...j
|
|
20
|
-
}, N) => {
|
|
21
|
-
const b = R((s, o) => {
|
|
22
|
-
s.length > 0 && m?.(s), o.length > 0 && d?.(o);
|
|
23
|
-
}, [m, d]), {
|
|
24
|
-
getRootProps: y,
|
|
25
|
-
getInputProps: D,
|
|
26
|
-
isDragActive: a,
|
|
27
|
-
isDragReject: t,
|
|
28
|
-
fileRejections: n
|
|
29
|
-
} = z({
|
|
30
|
-
onDrop: b,
|
|
31
|
-
accept: v,
|
|
32
|
-
maxFiles: g,
|
|
33
|
-
disabled: l,
|
|
34
|
-
...j
|
|
35
|
-
}), r = n.length > 0;
|
|
36
|
-
return /* @__PURE__ */ e.jsx("div", { className: i("w-full", u), children: /* @__PURE__ */ e.jsxs(
|
|
37
|
-
"div",
|
|
38
|
-
{
|
|
39
|
-
ref: N,
|
|
40
|
-
...y(),
|
|
41
|
-
className: i(
|
|
42
|
-
"relative rounded-lg border border-dashed transition-all duration-200 h-36",
|
|
43
|
-
"flex flex-col items-center justify-center text-center",
|
|
44
|
-
f === "default" ? "p-8 min-h-[200px] " : "p-1 min-h-[120px] h-24 md:h-36",
|
|
45
|
-
!a && !r && !l && [
|
|
46
|
-
"border-neutral-default-default",
|
|
47
|
-
"hover:border-primary/50 hover:bg-primary/5"
|
|
48
|
-
],
|
|
49
|
-
a && !t && [
|
|
50
|
-
"border-primary bg-primary/10",
|
|
51
|
-
"ring-2 ring-primary/20"
|
|
52
|
-
],
|
|
53
|
-
(t || r) && [
|
|
54
|
-
"border-destructive bg-destructive/10",
|
|
55
|
-
"ring-2 ring-destructive/20"
|
|
56
|
-
],
|
|
57
|
-
l && [
|
|
58
|
-
"cursor-default opacity-60",
|
|
59
|
-
"border-muted-foreground/20 bg-muted/30"
|
|
60
|
-
]
|
|
61
|
-
),
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ e.jsx("input", { ...D() }),
|
|
64
|
-
h && /* @__PURE__ */ e.jsx("div", { className: "mb-0.5 md:mb-4", children: r || t ? /* @__PURE__ */ e.jsx(w, { size: 24, className: " text-destructive" }) : /* @__PURE__ */ e.jsx(E, { size: 24, className: i(
|
|
65
|
-
"w-8 h-8 transition-colors",
|
|
66
|
-
a ? "text-primary" : "text-neutral-default-default"
|
|
67
|
-
) }) }),
|
|
68
|
-
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
69
|
-
/* @__PURE__ */ e.jsx("p", { className: i(
|
|
70
|
-
"text-base font-medium text-neutral-default-default",
|
|
71
|
-
r || t ? "text-destructive" : a ? "text-primary " : "text-neutral-default-default text-sm font-[400]"
|
|
72
|
-
), children: a && !t ? "Suelta los archivos aquí..." : t || r ? "Archivo no válido" : p }),
|
|
73
|
-
!r && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-medium-default", children: x })
|
|
74
|
-
] }),
|
|
75
|
-
r && /* @__PURE__ */ e.jsx("div", { className: "mt-4 space-y-1", children: n.map(({ file: s, errors: o }) => /* @__PURE__ */ e.jsxs("div", { className: "text-sm text-destructive", children: [
|
|
76
|
-
/* @__PURE__ */ e.jsx("p", { className: "font-medium", children: s.name }),
|
|
77
|
-
o.map((c) => /* @__PURE__ */ e.jsx("p", { className: "text-xs", children: c.message }, c.code))
|
|
78
|
-
] }, s.name)) })
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
) });
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
q.displayName = "DropZone";
|
|
85
|
-
export {
|
|
86
|
-
q as DropZone,
|
|
87
|
-
q as default
|
|
88
|
-
};
|
package/dist/FAButton.d.ts
DELETED