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,20 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { CustomSelectOptionRendererProps } from '../Select/Select';
|
|
3
|
+
import { OptionAccessor } from '../Shared/types';
|
|
4
|
+
export interface AutocompleteProps<T> {
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
options?: T[];
|
|
10
|
+
optionValue: OptionAccessor<T, string | number>;
|
|
11
|
+
optionLabel: OptionAccessor<T, string>;
|
|
12
|
+
fetcher?: (input?: string) => Promise<T[]>;
|
|
13
|
+
asyncMode?: 'fetch_in_open' | 'fetch_on_type';
|
|
14
|
+
debounceDelay?: number;
|
|
15
|
+
labelVariant?: 'static' | 'default';
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
renderOption?: ComponentType<CustomSelectOptionRendererProps<T>>;
|
|
18
|
+
}
|
|
19
|
+
declare const Autocomplete: <T extends object>(props: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default Autocomplete;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { OptionAccessor } from '../Shared/types';
|
|
2
|
+
export interface UseAutocompleteOptionsMultiple<T extends object> extends UseAutocompleteBaseOptions<T> {
|
|
3
|
+
multiple: true;
|
|
4
|
+
controlledValue?: T[];
|
|
5
|
+
onChange?: (newValue: T[], name?: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface UseAutocompleteOptionsSingle<T extends object> extends UseAutocompleteBaseOptions<T> {
|
|
8
|
+
multiple?: false;
|
|
9
|
+
controlledValue?: T;
|
|
10
|
+
onChange?: (newValue: T, name?: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface UseAutocompleteBaseOptions<T extends object> {
|
|
13
|
+
options?: (T | undefined | null)[];
|
|
14
|
+
fetcher?: (input?: string) => Promise<T[]>;
|
|
15
|
+
asyncMode?: 'fetch_in_open' | 'fetch_on_type';
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
debounceDelay?: number;
|
|
18
|
+
minCharacters?: number;
|
|
19
|
+
optionLabel?: OptionAccessor<T, string>;
|
|
20
|
+
optionValue?: OptionAccessor<T, string | number>;
|
|
21
|
+
inputRef?: React.RefObject<HTMLInputElement | null> | (() => React.RefObject<HTMLInputElement | null> | undefined);
|
|
22
|
+
onFetchingStart?: () => void;
|
|
23
|
+
onFetchingEnd?: () => void;
|
|
24
|
+
onTypeStart?: () => void;
|
|
25
|
+
onOpen?: () => void;
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
isOpen?: boolean;
|
|
28
|
+
subscribeOpenChange?: (cb: (open: boolean) => void) => (() => void) | undefined;
|
|
29
|
+
name?: string;
|
|
30
|
+
}
|
|
31
|
+
export type UseAutocompleteOptions<T extends object> = UseAutocompleteOptionsMultiple<T> | UseAutocompleteOptionsSingle<T>;
|
|
32
|
+
export declare function useAutocomplete<T extends object>(options?: UseAutocompleteOptions<T>): {
|
|
33
|
+
inputValue: string;
|
|
34
|
+
setInputValue: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
35
|
+
cleanInputValue: () => void;
|
|
36
|
+
cleanOptions: () => void;
|
|
37
|
+
clearValue: () => void;
|
|
38
|
+
filteredOptions: T[];
|
|
39
|
+
isLoading: boolean;
|
|
40
|
+
value: T | T[] | undefined;
|
|
41
|
+
setValue: import('react').Dispatch<import('react').SetStateAction<T | T[] | undefined>>;
|
|
42
|
+
onOptionClick: (option: T) => void;
|
|
43
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type SizeVariant = "xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
2
|
+
interface IAvatar {
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
sizeImage?: SizeVariant;
|
|
5
|
+
sizeFallback?: SizeVariant;
|
|
6
|
+
fallbackText?: string;
|
|
7
|
+
subImageUrl?: string;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function Avatar({ imageUrl, sizeImage, sizeFallback, fallbackText, subImageUrl, }: IAvatar): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Avatar';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ButtonVariant, ColorVariant, SizeVariant } from '../Shared/types';
|
|
2
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
contentClassName?: string;
|
|
7
|
+
loadingText?: string;
|
|
8
|
+
animate?: boolean;
|
|
9
|
+
animateIcon?: boolean;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
spinner?: React.ReactNode;
|
|
13
|
+
type?: 'button' | "submit" | "reset";
|
|
14
|
+
className?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
variant?: ButtonVariant;
|
|
17
|
+
form?: string;
|
|
18
|
+
size?: SizeVariant;
|
|
19
|
+
color?: ColorVariant;
|
|
20
|
+
hideSpinner?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: import('react').MemoExoticComponent<({ label, onClick, icon, contentClassName, loadingText, animate, animateIcon, isLoading, children, hideSpinner, spinner, type, className, disabled, variant, form, size, color }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ICard {
|
|
2
|
+
onClickClose: () => void;
|
|
3
|
+
userName: string;
|
|
4
|
+
urlImage: string;
|
|
5
|
+
companyName: string;
|
|
6
|
+
areaName: string;
|
|
7
|
+
expiresAt: string;
|
|
8
|
+
onClickLogin: () => void;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Card: ({ onClickClose, userName, urlImage, companyName, areaName, expiresAt, onClickLogin, loading }: ICard) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Card;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ICardProfile {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
dropMenu?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface IArea {
|
|
7
|
+
_id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICompany {
|
|
11
|
+
_id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ISessionLocalStorage {
|
|
15
|
+
_id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
email: string;
|
|
18
|
+
username: string;
|
|
19
|
+
areaId: IArea;
|
|
20
|
+
companyId: ICompany;
|
|
21
|
+
expires_at: string;
|
|
22
|
+
logoutDate: string;
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
interface IDropMenu {
|
|
26
|
+
isExpanded: boolean;
|
|
27
|
+
sessions: ISessionLocalStorage[];
|
|
28
|
+
onClickLogout: () => void;
|
|
29
|
+
handleTokenLogin: () => void;
|
|
30
|
+
}
|
|
31
|
+
interface ICardProfileImage {
|
|
32
|
+
isExpanded: boolean;
|
|
33
|
+
imageUrl?: string;
|
|
34
|
+
fallbackText?: string;
|
|
35
|
+
}
|
|
36
|
+
interface ICardProfileContent {
|
|
37
|
+
isExpanded: boolean;
|
|
38
|
+
nameUser: string;
|
|
39
|
+
nameCompany: string;
|
|
40
|
+
nameArea: string;
|
|
41
|
+
cardProfile: ReactNode;
|
|
42
|
+
onClick: () => void;
|
|
43
|
+
}
|
|
44
|
+
interface ICardProfileOptions {
|
|
45
|
+
onClick: () => void;
|
|
46
|
+
isExpanded: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare const CardProfile: (({ children }: ICardProfile) => import("react/jsx-runtime").JSX.Element) & {
|
|
49
|
+
Menu: ({ isExpanded, sessions, onClickLogout, handleTokenLogin, }: IDropMenu) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
Image: ({ imageUrl, fallbackText }: ICardProfileImage) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
Content: ({ isExpanded, nameUser, nameCompany, nameArea, cardProfile, onClick, }: ICardProfileContent) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
Separator: () => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
Options: ({ isExpanded, onClick }: ICardProfileOptions) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
};
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
export type CheckBoxProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
} & HTMLProps<HTMLInputElement>;
|
|
6
|
+
interface ICheckBox extends CheckBoxProps {
|
|
7
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
value?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('react').NamedExoticComponent<Omit<ICheckBox, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { DateAfter, DateBefore, DateInterval, DateRange, DayOfWeek, Matcher } from 'react-day-picker';
|
|
2
|
+
import { InputProps } from '../Input/Input';
|
|
3
|
+
interface DatePickerBaseProps {
|
|
4
|
+
variant?: 'input' | 'only-calendar' | 'input-and-calendar';
|
|
5
|
+
required?: boolean;
|
|
6
|
+
disabledDates?: boolean | Matcher[] | Date | Date[] | DateRange | DateBefore | DateAfter | DateInterval | DayOfWeek | ((date: Date) => boolean);
|
|
7
|
+
className?: string;
|
|
8
|
+
header?: string | React.ReactNode;
|
|
9
|
+
footer?: string | React.ReactNode;
|
|
10
|
+
hideOutsideDays?: boolean;
|
|
11
|
+
numberOfMonths?: number;
|
|
12
|
+
startMonth?: Date;
|
|
13
|
+
endMonth?: Date;
|
|
14
|
+
showActionButtons?: boolean;
|
|
15
|
+
applyLabel?: string;
|
|
16
|
+
cancelLabel?: string;
|
|
17
|
+
onApply?: (value: Date | DateRange | Date[] | undefined) => void;
|
|
18
|
+
onCancel?: () => void;
|
|
19
|
+
hideFooter?: boolean;
|
|
20
|
+
inputProps?: Partial<InputProps>;
|
|
21
|
+
label?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
min?: number;
|
|
24
|
+
max?: number;
|
|
25
|
+
}
|
|
26
|
+
interface DatePickerSingleProps extends DatePickerBaseProps {
|
|
27
|
+
mode?: "single";
|
|
28
|
+
selected: Date | undefined;
|
|
29
|
+
onSelect: (date: Date) => void;
|
|
30
|
+
}
|
|
31
|
+
interface DatePickerRangeProps extends DatePickerBaseProps {
|
|
32
|
+
mode: "range";
|
|
33
|
+
selected: DateRange | undefined;
|
|
34
|
+
onSelect: (range: DateRange) => void;
|
|
35
|
+
min?: number;
|
|
36
|
+
max?: number;
|
|
37
|
+
excludeDisabled?: boolean;
|
|
38
|
+
}
|
|
39
|
+
interface DatePickerMultipleProps extends DatePickerBaseProps {
|
|
40
|
+
mode: "multiple";
|
|
41
|
+
selected: Date[] | undefined;
|
|
42
|
+
onSelect: (dates: Date[]) => void;
|
|
43
|
+
min?: number;
|
|
44
|
+
max?: number;
|
|
45
|
+
}
|
|
46
|
+
export type DatePickerProps = DatePickerSingleProps | DatePickerRangeProps | DatePickerMultipleProps;
|
|
47
|
+
declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export default DatePicker;
|
|
49
|
+
interface CalendarProps {
|
|
50
|
+
min?: number;
|
|
51
|
+
max?: number;
|
|
52
|
+
excludeDisabled?: boolean;
|
|
53
|
+
endMonth?: Date;
|
|
54
|
+
startMonth?: Date;
|
|
55
|
+
readonly?: boolean;
|
|
56
|
+
className?: string;
|
|
57
|
+
required?: boolean;
|
|
58
|
+
hideFooter?: boolean;
|
|
59
|
+
applyLabel?: string;
|
|
60
|
+
cancelLabel?: string;
|
|
61
|
+
onApply?: () => void;
|
|
62
|
+
onCancel?: () => void;
|
|
63
|
+
numberOfMonths?: number;
|
|
64
|
+
hideOutsideDays?: boolean;
|
|
65
|
+
style?: React.CSSProperties;
|
|
66
|
+
showActionButtons?: boolean;
|
|
67
|
+
header?: string | React.ReactNode;
|
|
68
|
+
footer?: string | React.ReactNode;
|
|
69
|
+
mode: "single" | "range" | "multiple";
|
|
70
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
71
|
+
selected: Date | DateRange | Date[] | undefined;
|
|
72
|
+
displayValue: Date | DateRange | Date[] | undefined;
|
|
73
|
+
onSelect?: (value: Date | DateRange | Date[]) => void;
|
|
74
|
+
calendarPosition?: {
|
|
75
|
+
top: number;
|
|
76
|
+
bottom: number;
|
|
77
|
+
left: number;
|
|
78
|
+
right: number;
|
|
79
|
+
};
|
|
80
|
+
disabledDates?: boolean | Matcher[] | Date | Date[] | DateRange | DateBefore | DateAfter | DateInterval | DayOfWeek | ((date: Date) => boolean);
|
|
81
|
+
}
|
|
82
|
+
export declare const Calendar: import('react').MemoExoticComponent<(props: CalendarProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface DialogProps<TContext = unknown> {
|
|
2
|
+
title?: string;
|
|
3
|
+
children: React.ReactNode | ((context: TContext | null) => React.ReactNode);
|
|
4
|
+
onClose?: (context: TContext | null) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DialogHandle<TContext = unknown> {
|
|
8
|
+
open: (context?: TContext) => void;
|
|
9
|
+
close: () => void;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
getContext: () => TContext | null;
|
|
12
|
+
}
|
|
13
|
+
interface DialogContentProps {
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
interface DialogTitleProps {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
interface DialogHeaderProps {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
interface DialogFooterProps {
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const DialogModal: import('react').ForwardRefExoticComponent<DialogProps<any> & import('react').RefAttributes<DialogHandle<any>>> & {
|
|
30
|
+
Content: import('react').MemoExoticComponent<({ children, className }: DialogContentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
31
|
+
Header: import('react').MemoExoticComponent<({ children, className }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
32
|
+
Footer: import('react').MemoExoticComponent<({ children, className }: DialogFooterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
33
|
+
Title: import('react').MemoExoticComponent<({ children, className }: DialogTitleProps) => import("react/jsx-runtime").JSX.Element>;
|
|
34
|
+
};
|
|
35
|
+
export default DialogModal;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface DialogProps<TContext = unknown> {
|
|
2
|
+
title?: string;
|
|
3
|
+
children: React.ReactNode | ((context: TContext | null) => React.ReactNode);
|
|
4
|
+
onClose?: (context: TContext | null) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DialogHandle<TContext = unknown> {
|
|
8
|
+
open: (context?: TContext) => void;
|
|
9
|
+
close: () => void;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
getContext: () => TContext | null;
|
|
12
|
+
}
|
|
13
|
+
interface DialogContentProps {
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
interface DialogTitleProps {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
interface DialogHeaderProps {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
interface DialogFooterProps {
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const DialogModal: import('react').ForwardRefExoticComponent<DialogProps<any> & import('react').RefAttributes<DialogHandle<any>>> & {
|
|
30
|
+
Content: import('react').MemoExoticComponent<({ children, className }: DialogContentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
31
|
+
Header: import('react').MemoExoticComponent<({ children, className }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
32
|
+
Footer: import('react').MemoExoticComponent<({ children, className }: DialogFooterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
33
|
+
Title: import('react').MemoExoticComponent<({ children, className }: DialogTitleProps) => import("react/jsx-runtime").JSX.Element>;
|
|
34
|
+
};
|
|
35
|
+
export default DialogModal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DialogHandle } from './Dialog';
|
|
2
|
+
export declare const useDialogControl: <TContext = unknown>() => {
|
|
3
|
+
ref: import('react').RefObject<DialogHandle<TContext> | null>;
|
|
4
|
+
open: (context?: TContext) => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
isOpen: () => boolean;
|
|
7
|
+
getContext: () => NonNullable<TContext> | null;
|
|
8
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DrawerDesktopHandle<TContext = unknown> {
|
|
2
|
+
open: (context?: TContext) => void;
|
|
3
|
+
close: () => void;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
getContext: () => TContext | null;
|
|
6
|
+
subscribeOpenChange: (cb: (open: boolean) => void) => () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface DrawerDesktopProps<TContext = unknown> {
|
|
9
|
+
children?: React.ReactNode | ((context: TContext | null) => React.ReactNode);
|
|
10
|
+
direction?: "left" | "right";
|
|
11
|
+
modal?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
onClose?: (context?: TContext) => void;
|
|
14
|
+
defaultOpen?: boolean;
|
|
15
|
+
attachToParent?: boolean;
|
|
16
|
+
closeOnOverlayClick?: boolean;
|
|
17
|
+
hideCloseButton?: boolean;
|
|
18
|
+
unmountChildrenOnClose?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const DrawerDesktop: import('react').ForwardRefExoticComponent<DrawerDesktopProps<any> & import('react').RefAttributes<DrawerDesktopHandle<any>>>;
|
|
21
|
+
export default DrawerDesktop;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DrawerMobileProps<TContext = unknown> {
|
|
3
|
+
children?: React.ReactNode | ((context: TContext | null) => React.ReactNode);
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
onClose?: (context: TContext | null) => void;
|
|
6
|
+
snap?: string | number | null;
|
|
7
|
+
snapPoints?: (string | number)[];
|
|
8
|
+
setSnap?: (snap: string | number) => void;
|
|
9
|
+
attachToParent?: boolean;
|
|
10
|
+
hideOnClose?: boolean;
|
|
11
|
+
unmountChildrenOnClose?: boolean;
|
|
12
|
+
header?: React.ReactNode | string;
|
|
13
|
+
modal?: boolean;
|
|
14
|
+
closeOnOverlayClick?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface DrawerMobileHandle<TContext = unknown> {
|
|
17
|
+
open: (snap?: string | number, context?: TContext) => void;
|
|
18
|
+
close: () => void;
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
getContext: () => TContext | null;
|
|
21
|
+
subscribeOpenChange: (cb: (open: boolean) => void) => () => void;
|
|
22
|
+
}
|
|
23
|
+
declare const DrawerMobile: React.ForwardRefExoticComponent<DrawerMobileProps<any> & React.RefAttributes<DrawerMobileHandle<any>>>;
|
|
24
|
+
export default DrawerMobile;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DrawerDesktopHandle } from './DrawerDesktop';
|
|
2
|
+
export declare const useDrawerDesktop: <TContext = unknown>() => {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
open: (context?: TContext) => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
drawerRef: import('react').RefObject<DrawerDesktopHandle<TContext> | null>;
|
|
7
|
+
getContext: () => NonNullable<TContext> | null;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DrawerMobileHandle } from './DrawerMobile';
|
|
2
|
+
export declare const useDrawerMobile: <TContext = unknown>() => {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
open: (snap?: string | number, context?: TContext) => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
drawerRef: import('react').RefObject<DrawerMobileHandle<TContext> | null>;
|
|
7
|
+
getContext: () => NonNullable<TContext> | null;
|
|
8
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
3
|
+
interface DropZoneProps extends Omit<DropzoneOptions, 'onDrop'> {
|
|
4
|
+
onFilesAccepted?: (files: File[]) => void;
|
|
5
|
+
onFilesRejected?: (rejectedFiles: unknown[]) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
acceptedFormats?: string;
|
|
9
|
+
maxSize: number;
|
|
10
|
+
variant?: 'default' | 'compact';
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
showIcon?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const DropZone: React.ForwardRefExoticComponent<DropZoneProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export { DropZone };
|
|
16
|
+
export type { DropZoneProps };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { useFileDropzone, UseFileDropzoneOptions } from './useFileDropzone';
|
|
3
|
+
interface DropZoneAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant?: 'default' | 'compact';
|
|
5
|
+
isDragActive?: boolean;
|
|
6
|
+
isDragReject?: boolean;
|
|
7
|
+
hasErrors?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
getRootProps?: () => unknown;
|
|
10
|
+
getInputProps?: () => unknown;
|
|
11
|
+
}
|
|
12
|
+
interface DropZoneHeaderProps {
|
|
13
|
+
title?: string;
|
|
14
|
+
variant?: 'default' | 'compact';
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
interface DropZoneIconProps {
|
|
18
|
+
size?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
showIcon?: boolean;
|
|
21
|
+
isDragActive?: boolean;
|
|
22
|
+
isDragReject?: boolean;
|
|
23
|
+
hasErrors?: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface DropZoneMessageProps {
|
|
26
|
+
subtitle?: string;
|
|
27
|
+
acceptedFormats?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
isDragActive?: boolean;
|
|
30
|
+
isDragReject?: boolean;
|
|
31
|
+
hasErrors?: boolean;
|
|
32
|
+
}
|
|
33
|
+
interface DropZoneErrorsProps {
|
|
34
|
+
className?: string;
|
|
35
|
+
fileRejections?: unknown[];
|
|
36
|
+
}
|
|
37
|
+
interface DropZoneWrapperProps extends UseFileDropzoneOptions {
|
|
38
|
+
className?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
subtitle?: string;
|
|
41
|
+
acceptedFormats?: string;
|
|
42
|
+
variant?: 'default' | 'compact';
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
showIcon?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare const DropZone: (({ children, className }: DropZoneWrapperProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
47
|
+
Header: ({ title, variant, className }: DropZoneHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
48
|
+
Area: ({ children, className, variant, isDragActive, isDragReject, hasErrors, disabled, getRootProps, getInputProps, ...props }: DropZoneAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
Icon: ({ size, className, showIcon, isDragActive, isDragReject, hasErrors }: DropZoneIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
Message: ({ subtitle, acceptedFormats, className, isDragActive, isDragReject, hasErrors }: DropZoneMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
Errors: ({ className, fileRejections }: DropZoneErrorsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
52
|
+
useDropzone: typeof useFileDropzone;
|
|
53
|
+
};
|
|
54
|
+
export type { DropZoneAreaProps, DropZoneErrorsProps, DropZoneHeaderProps, DropZoneIconProps, DropZoneMessageProps, DropZoneWrapperProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
3
|
+
export interface UseFileDropzoneOptions extends Omit<DropzoneOptions, "onDrop"> {
|
|
4
|
+
onFilesAccepted?: (files: File[]) => void;
|
|
5
|
+
onFilesRejected?: (rejectedFiles: unknown[]) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function useFileDropzone({ onFilesAccepted, onFilesRejected, ...options }: UseFileDropzoneOptions): {
|
|
8
|
+
hasErrors: boolean;
|
|
9
|
+
open: () => void;
|
|
10
|
+
isFocused: boolean;
|
|
11
|
+
isDragActive: boolean;
|
|
12
|
+
isDragAccept: boolean;
|
|
13
|
+
isDragReject: boolean;
|
|
14
|
+
isFileDialogActive: boolean;
|
|
15
|
+
acceptedFiles: readonly import('file-selector').FileWithPath[];
|
|
16
|
+
fileRejections: readonly import('react-dropzone').FileRejection[];
|
|
17
|
+
rootRef: React.RefObject<HTMLElement>;
|
|
18
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
19
|
+
getRootProps: <T extends import('react-dropzone').DropzoneRootProps>(props?: T) => T;
|
|
20
|
+
getInputProps: <T extends import('react-dropzone').DropzoneInputProps>(props?: T) => T;
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorVariant, ButtonVariant } from '../Shared/types';
|
|
3
|
+
import { IconComponent } from '../../Icons/types';
|
|
4
|
+
export interface FAButtonProps {
|
|
5
|
+
icon?: IconComponent;
|
|
6
|
+
label?: string;
|
|
7
|
+
attachToParent?: boolean;
|
|
8
|
+
position?: {
|
|
9
|
+
left?: number | string;
|
|
10
|
+
top?: number | string;
|
|
11
|
+
right?: number | string;
|
|
12
|
+
bottom?: number | string;
|
|
13
|
+
};
|
|
14
|
+
color?: ColorVariant;
|
|
15
|
+
variant?: ButtonVariant;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const FAButton: React.MemoExoticComponent<(props: FAButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
21
|
+
export default FAButton;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface FileWithPreview {
|
|
2
|
+
file: File;
|
|
3
|
+
preview?: string;
|
|
4
|
+
progress?: number;
|
|
5
|
+
status?: 'pending' | 'uploading' | 'uploaded' | 'error';
|
|
6
|
+
error?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FileCardProps {
|
|
9
|
+
files: FileWithPreview[];
|
|
10
|
+
onRemoveFile: (index: number) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface FileCardItemProps {
|
|
14
|
+
file: File;
|
|
15
|
+
preview?: string;
|
|
16
|
+
index: number;
|
|
17
|
+
progress?: number;
|
|
18
|
+
status?: 'pending' | 'uploading' | 'uploaded' | 'error';
|
|
19
|
+
error?: string;
|
|
20
|
+
onRemove: (index: number) => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface FilePreviewProps {
|
|
24
|
+
file: File;
|
|
25
|
+
preview?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface FileInfoProps {
|
|
29
|
+
file: File;
|
|
30
|
+
progress?: number;
|
|
31
|
+
status?: 'pending' | 'uploading' | 'uploaded' | 'error';
|
|
32
|
+
error?: string;
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface FileActionsProps {
|
|
36
|
+
index: number;
|
|
37
|
+
onRemove: (index: number) => void;
|
|
38
|
+
status?: 'pending' | 'uploading' | 'uploaded' | 'error';
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const FilePreview: ({ file, preview, className }: FilePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare const FileInfo: ({ file, progress, status, error, className }: FileInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const FileActions: ({ index, onRemove, status, className }: FileActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const FileCardItem: ({ file, preview, index, progress, status, error, onRemove, className }: FileCardItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const FileCard: ({ files, onRemoveFile, className }: FileCardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
46
|
+
declare const FileCardCompound: (({ files, onRemoveFile, className }: FileCardProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
47
|
+
Item: ({ file, preview, index, progress, status, error, onRemove, className }: FileCardItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
Preview: ({ file, preview, className }: FilePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
Info: ({ file, progress, status, error, className }: FileInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
Actions: ({ index, onRemove, status, className }: FileActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
};
|
|
52
|
+
export default FileCardCompound;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface IHeader {
|
|
3
|
+
title?: string;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
subtitleClassName?: string;
|
|
8
|
+
titleClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('react').MemoExoticComponent<({ title, subtitle, children, className, subtitleClassName, titleClassName }: IHeader) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement, default as React } from 'react';
|
|
2
|
+
import { ImageProps } from './Image';
|
|
3
|
+
interface GalleryPreviewProps {
|
|
4
|
+
images?: ReactElement<ImageProps>[];
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const GalleryPreview: React.NamedExoticComponent<GalleryPreviewProps & React.RefAttributes<unknown>>;
|
|
8
|
+
export default GalleryPreview;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SpinnerProps } from '../Spinner/Spinner';
|
|
2
|
+
import { ImageGalleryHandle } from './ImageGallery';
|
|
3
|
+
export interface ImageProps {
|
|
4
|
+
src: string;
|
|
5
|
+
alt: string;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
height?: number | string;
|
|
8
|
+
className?: string;
|
|
9
|
+
lazy?: boolean;
|
|
10
|
+
showLoader?: boolean;
|
|
11
|
+
loaderProps?: {
|
|
12
|
+
loaderType?: 'skeleton' | 'clasic';
|
|
13
|
+
variant?: SpinnerProps['variant'];
|
|
14
|
+
speedMultiplier?: SpinnerProps['speedMultiplier'];
|
|
15
|
+
className?: string;
|
|
16
|
+
size?: SpinnerProps['size'];
|
|
17
|
+
backdropClassName?: string;
|
|
18
|
+
};
|
|
19
|
+
allowPreview?: boolean;
|
|
20
|
+
galleryRef?: React.RefObject<ImageGalleryHandle | null>;
|
|
21
|
+
}
|
|
22
|
+
declare const CustomImage: import('react').MemoExoticComponent<(props: ImageProps) => import("react/jsx-runtime").JSX.Element>;
|
|
23
|
+
export default CustomImage;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ImageProps } from './Image';
|
|
3
|
+
export interface ImageGalleryProps {
|
|
4
|
+
children?: ReactElement<ImageProps> | ReactElement<ImageProps>[];
|
|
5
|
+
className?: string;
|
|
6
|
+
lightboxClassName?: string;
|
|
7
|
+
showThumbnails?: boolean;
|
|
8
|
+
thumbnailsClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ImageGalleryHandle {
|
|
11
|
+
openLightbox: (index?: number) => void;
|
|
12
|
+
closeLightbox: () => void;
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
addImage: (image: ImageProps) => void;
|
|
15
|
+
images: ImageProps[];
|
|
16
|
+
}
|
|
17
|
+
declare const ImageGallery: import('react').ForwardRefExoticComponent<ImageGalleryProps & import('react').RefAttributes<ImageGalleryHandle>>;
|
|
18
|
+
export default ImageGallery;
|