prometeo-design-system 3.1.5 → 3.1.7
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,14 @@
|
|
|
1
|
+
import { ImageProps } from './Image';
|
|
2
|
+
interface LightBoxProps {
|
|
3
|
+
images: ImageProps[];
|
|
4
|
+
lightboxClassName?: string;
|
|
5
|
+
closeLightbox: () => void;
|
|
6
|
+
showThumbnails?: boolean;
|
|
7
|
+
thumbnailsClassName?: string;
|
|
8
|
+
currentIndex: number;
|
|
9
|
+
goToNext: () => void;
|
|
10
|
+
goToPrevious: () => void;
|
|
11
|
+
goToIndex: (index: number) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const LightBox: import('react').MemoExoticComponent<({ images, lightboxClassName, closeLightbox, showThumbnails, thumbnailsClassName, currentIndex, goToNext, goToPrevious, goToIndex }: LightBoxProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
14
|
+
export default LightBox;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ImageGalleryHandle } from './ImageGallery';
|
|
2
|
+
import { ImageProps } from './Image';
|
|
3
|
+
export declare const useImageGallery: () => {
|
|
4
|
+
isOpen: () => boolean;
|
|
5
|
+
openLightbox: () => void;
|
|
6
|
+
closeLightbox: () => void;
|
|
7
|
+
galleryRef: import('react').RefObject<ImageGalleryHandle | null>;
|
|
8
|
+
addImage: (image: ImageProps) => void;
|
|
9
|
+
images: () => ImageProps[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type InputVariant = "default" | "error" | "success";
|
|
2
|
+
export type InputSize = "small" | "medium" | "large";
|
|
3
|
+
export type LabelVariant = "default" | "static";
|
|
4
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
iconPosition?: "left" | "right";
|
|
8
|
+
isFetching?: boolean;
|
|
9
|
+
id?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
height?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
variant?: InputVariant;
|
|
15
|
+
labelVariant?: LabelVariant;
|
|
16
|
+
size?: InputSize;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
type?: "text" | "email" | "password" | "number" | "tel" | "url";
|
|
19
|
+
errorComponent?: React.ReactNode | string;
|
|
20
|
+
helperComponent?: React.ReactNode | string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
27
|
+
onClear?: () => void;
|
|
28
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
29
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
30
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
31
|
+
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: import('react').NamedExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface InputMultipleProps {
|
|
3
|
+
label: string;
|
|
4
|
+
name: string;
|
|
5
|
+
onChange: (value: string[]) => void;
|
|
6
|
+
value: string[];
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
valueSeparator?: ',' | ';';
|
|
9
|
+
variant?: 'default' | 'error' | 'success' | 'warning';
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
itemClassName?: string;
|
|
12
|
+
itemIcon?: React.ComponentType<{
|
|
13
|
+
size: number;
|
|
14
|
+
className: string;
|
|
15
|
+
}>;
|
|
16
|
+
helperText?: string | React.ReactNode;
|
|
17
|
+
errorText?: string | React.ReactNode;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
+
className?: string;
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
onValueDelete?: (value: string) => void;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: React.MemoExoticComponent<({ label, name, onChange, value, icon, valueSeparator, variant, placeholder, itemClassName, itemIcon, helperText, errorText, disabled, onClick, className, readonly, onValueDelete, ...rest }: InputMultipleProps) => import("react/jsx-runtime").JSX.Element>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface LayoutGenericProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
sidebar?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('react').MemoExoticComponent<({ children, sidebar }: LayoutGenericProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface IMenuRoot {
|
|
3
|
+
menuRef: React.RefObject<HTMLDivElement | null>;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IMenuItems {
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Menu: (({ menuRef, children, className }: IMenuRoot) => import("react/jsx-runtime").JSX.Element) & {
|
|
13
|
+
Divider: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Items: ({ onClick, children, className }: IMenuItems) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface NavItemSecondaryProps {
|
|
2
|
+
title: string;
|
|
3
|
+
path: string;
|
|
4
|
+
parentPath?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
isSelected?: boolean;
|
|
7
|
+
onClick?: (path: string) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const NavItemSecondary: import('react').MemoExoticComponent<(props: NavItemSecondaryProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export default NavItemSecondary;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
type NavigationDrawerRenderContext = {
|
|
3
|
+
toggleCollapse: () => void;
|
|
4
|
+
getIsCollapsed: () => boolean;
|
|
5
|
+
subscribeToCollapse: (listener: (collapsed: boolean) => void) => () => void;
|
|
6
|
+
openSidebar: () => void;
|
|
7
|
+
closeSidebar: () => void;
|
|
8
|
+
toggleSidebar: () => void;
|
|
9
|
+
getIsSidebarOpen: () => boolean;
|
|
10
|
+
subscribeToSidebarOpen: (listener: (open: boolean) => void) => () => void;
|
|
11
|
+
};
|
|
12
|
+
type NavigationDrawerSlotChildren = ReactNode | ((context: NavigationDrawerRenderContext) => ReactNode);
|
|
13
|
+
export interface NavigationDrawerProps {
|
|
14
|
+
children?: NavigationDrawerSlotChildren;
|
|
15
|
+
classNameDrawer?: string;
|
|
16
|
+
classNameSidebar?: string;
|
|
17
|
+
}
|
|
18
|
+
type SlotBaseProps = {
|
|
19
|
+
children?: NavigationDrawerSlotChildren;
|
|
20
|
+
className?: string;
|
|
21
|
+
context?: NavigationDrawerRenderContext;
|
|
22
|
+
};
|
|
23
|
+
type ContentProps = SlotBaseProps & Omit<React.AllHTMLAttributes<HTMLDivElement>, "children">;
|
|
24
|
+
export type NavigationDrawerSidebarProps = {
|
|
25
|
+
children?: NavigationDrawerSlotChildren;
|
|
26
|
+
className?: string;
|
|
27
|
+
context?: NavigationDrawerRenderContext;
|
|
28
|
+
modal?: boolean;
|
|
29
|
+
closeOnOverlayClick?: boolean;
|
|
30
|
+
unmountChildrenOnClose?: boolean;
|
|
31
|
+
};
|
|
32
|
+
declare const NavigationDrawer: React.NamedExoticComponent<NavigationDrawerProps> & {
|
|
33
|
+
readonly type: (props: NavigationDrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
} & {
|
|
35
|
+
Root: React.MemoExoticComponent<(props: NavigationDrawerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
36
|
+
Header: React.MemoExoticComponent<({ children, className, context }: SlotBaseProps) => import("react/jsx-runtime").JSX.Element>;
|
|
37
|
+
Content: React.MemoExoticComponent<({ children, className, context, ...props }: ContentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
38
|
+
Footer: React.MemoExoticComponent<({ children, className, context }: SlotBaseProps) => import("react/jsx-runtime").JSX.Element>;
|
|
39
|
+
Spacer: React.MemoExoticComponent<({ className }: {
|
|
40
|
+
className?: string;
|
|
41
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
42
|
+
Outlet: React.NamedExoticComponent<{
|
|
43
|
+
children?: NavigationDrawerSlotChildren;
|
|
44
|
+
className?: string;
|
|
45
|
+
context?: NavigationDrawerRenderContext;
|
|
46
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
Sidebar: React.NamedExoticComponent<NavigationDrawerSidebarProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
};
|
|
49
|
+
export default NavigationDrawer;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IconComponent } from '../../Icons/types';
|
|
2
|
+
export interface NavigationDrawerActionItemProps {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
icon?: IconComponent;
|
|
6
|
+
count?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
isView?: boolean | (() => boolean);
|
|
12
|
+
order?: number;
|
|
13
|
+
}
|
|
14
|
+
declare const NavigationDrawerActionItem: import('react').MemoExoticComponent<(props: NavigationDrawerActionItemProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
15
|
+
export default NavigationDrawerActionItem;
|
|
16
|
+
export type { NavigationDrawerActionItemProps as NavigationDrawerActionItemPropsType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NavigationDrawerActionItemProps } from './NavigationDrawerActionItem';
|
|
2
|
+
export interface NavigationDrawerActionsProps {
|
|
3
|
+
actions?: NavigationDrawerActionItemProps[];
|
|
4
|
+
activeActionId?: string;
|
|
5
|
+
onActionClick?: (id: string) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const NavigationDrawerActions: import('react').MemoExoticComponent<({ actions, activeActionId, onActionClick, className }: NavigationDrawerActionsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
export default NavigationDrawerActions;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IconComponent } from '../../Icons/types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface NavigationDrawerItemBaseProps {
|
|
4
|
+
title: string;
|
|
5
|
+
icon?: IconComponent;
|
|
6
|
+
count?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
hasSublinks?: boolean;
|
|
10
|
+
subLinksCollapsed?: boolean;
|
|
11
|
+
onToggleSublinks?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
+
as?: "a" | "button" | "div";
|
|
13
|
+
onClick?: React.MouseEventHandler;
|
|
14
|
+
onAuxClick?: React.MouseEventHandler;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const NavigationDrawerItemBase: React.MemoExoticComponent<(props: NavigationDrawerItemBaseProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
+
export default NavigationDrawerItemBase;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IconComponent } from '../../Icons/types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { NavItemSecondaryProps } from './NavItemSecondary';
|
|
4
|
+
export interface NavigationDrawerLinkItemProps {
|
|
5
|
+
path: string;
|
|
6
|
+
title: string;
|
|
7
|
+
icon?: IconComponent;
|
|
8
|
+
isView?: boolean | (() => boolean);
|
|
9
|
+
relatedPaths?: string[];
|
|
10
|
+
count?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
isSelected?: boolean;
|
|
14
|
+
toggleCollapse?: () => void;
|
|
15
|
+
getIsCollapsed?: () => boolean;
|
|
16
|
+
subscribeToCollapse?: (listener: (collapsed: boolean) => void) => () => void;
|
|
17
|
+
onClick?: (path: string) => void;
|
|
18
|
+
sublinks?: NavItemSecondaryProps[];
|
|
19
|
+
subLinksRender?: (sublinks: NavItemSecondaryProps[], controls: NavItemHandler) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
interface NavItemHandler {
|
|
22
|
+
toggle: () => void;
|
|
23
|
+
setIsCollapsed: (collapsed: boolean) => void;
|
|
24
|
+
isCollapsed: boolean;
|
|
25
|
+
isDrawerCollapsed: boolean;
|
|
26
|
+
toggleDrawerCollapse?: () => void;
|
|
27
|
+
subscribeToCollapse?: (listener: (collapsed: boolean) => void) => () => void;
|
|
28
|
+
}
|
|
29
|
+
declare const NavigationDrawerLinkItem: import('react').NamedExoticComponent<NavigationDrawerLinkItemProps & import('react').RefAttributes<NavItemHandler>>;
|
|
30
|
+
export default NavigationDrawerLinkItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NavigationDrawerLinkItemProps } from './NavigationDrawerLinkItem';
|
|
2
|
+
export interface NavigationDrawerNavlinksProps {
|
|
3
|
+
navlinks?: NavigationDrawerLinkItemProps[];
|
|
4
|
+
handleNavigation: (path: string) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
getIsCollapsed?: () => boolean;
|
|
7
|
+
toggleCollapse?: () => void;
|
|
8
|
+
subscribeToCollapse?: (listener: (collapsed: boolean) => void) => () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const NavigationDrawerNavlinks: import('react').MemoExoticComponent<({ navlinks, handleNavigation, className, getIsCollapsed, toggleCollapse, subscribeToCollapse }: NavigationDrawerNavlinksProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
+
export default NavigationDrawerNavlinks;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonVariant } from '../Shared/types';
|
|
3
|
+
export interface NotificationAction<NotificationMetadata = unknown> {
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: (metadata?: NotificationMetadata) => void;
|
|
6
|
+
variant?: ButtonVariant;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface NoitificationUser {
|
|
11
|
+
name: string;
|
|
12
|
+
profile_picture?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface NotificationCardProps<NotificationMetadata = unknown> {
|
|
15
|
+
user: NoitificationUser;
|
|
16
|
+
body: string | React.ReactNode | ((metadata?: NotificationMetadata) => React.ReactNode);
|
|
17
|
+
date: string | Date;
|
|
18
|
+
actions?: [NotificationAction<NotificationMetadata>, NotificationAction<NotificationMetadata>] | [NotificationAction<NotificationMetadata>];
|
|
19
|
+
isNew?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
metadata?: NotificationMetadata;
|
|
22
|
+
}
|
|
23
|
+
declare const NotificationCard: <NotificationMetadata = unknown>({ user, body, date, actions, isNew, className, metadata }: NotificationCardProps<NotificationMetadata>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default NotificationCard;
|
|
25
|
+
export type NotificationCardComponent = typeof NotificationCard;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OtpInputProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string, name?: string) => void;
|
|
5
|
+
onComplete?: (value: string) => void;
|
|
6
|
+
onBlur?: () => void;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
autoFocus?: boolean;
|
|
12
|
+
pasteTransformer?: (pasted: string) => string;
|
|
13
|
+
errorComponent?: React.ReactElement<{
|
|
14
|
+
className?: string;
|
|
15
|
+
}> | string;
|
|
16
|
+
hasError?: boolean;
|
|
17
|
+
helperComponent?: React.ReactElement<{
|
|
18
|
+
className?: string;
|
|
19
|
+
}> | string;
|
|
20
|
+
helperAlignment?: 'left' | 'center' | 'right';
|
|
21
|
+
slotClassName?: string;
|
|
22
|
+
hideSlotsMiddleSeparator?: boolean;
|
|
23
|
+
name?: string;
|
|
24
|
+
variant?: 'default' | 'error' | 'success';
|
|
25
|
+
}
|
|
26
|
+
declare const OtpInputComponent: {
|
|
27
|
+
({ value, name, onChange, onComplete, onBlur, maxLength, placeholder, disabled, className, autoFocus, pasteTransformer, errorComponent, hasError, helperComponent, helperAlignment, slotClassName, variant, hideSlotsMiddleSeparator }: OtpInputProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
export default OtpInputComponent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ProfilePictureUploadProps {
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
fallbackText?: string;
|
|
5
|
+
onFileSelect?: (file: File) => void;
|
|
6
|
+
onEditClick?: () => void;
|
|
7
|
+
onRemoveClick?: () => void;
|
|
8
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
showRemoveButton?: boolean;
|
|
12
|
+
acceptedTypes?: string;
|
|
13
|
+
maxFileSize?: number;
|
|
14
|
+
onError?: (error: string) => void;
|
|
15
|
+
disableEntryAnimation?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function ProfilePictureUploadComponent({ imageUrl, fallbackText, onFileSelect, onEditClick, onRemoveClick, size, className, disabled, showRemoveButton, acceptedTypes, maxFileSize, onError, }: ProfilePictureUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const ProfilePictureUpload: React.MemoExoticComponent<typeof ProfilePictureUploadComponent>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface BaseProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
}
|
|
5
|
+
interface DateProgressProps extends BaseProgressProps {
|
|
6
|
+
variant: 'date';
|
|
7
|
+
startDate: string | Date;
|
|
8
|
+
endDate: string | Date;
|
|
9
|
+
}
|
|
10
|
+
interface QuantityProgressProps extends BaseProgressProps {
|
|
11
|
+
variant: 'quantity';
|
|
12
|
+
current: number;
|
|
13
|
+
total: number;
|
|
14
|
+
unit?: string;
|
|
15
|
+
}
|
|
16
|
+
export type ProgressBarProps = DateProgressProps | QuantityProgressProps;
|
|
17
|
+
declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface PyrionHelpSectionProps {
|
|
3
|
+
onCloseClick?: VoidFunction;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
title?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const PyrionHelpSection: ({ onCloseClick, children, title }: PyrionHelpSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default PyrionHelpSection;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NavigationDrawerSidebarProps } from '../NavigationDrawer/NavigationDrawer';
|
|
3
|
+
import { NavigationDrawerActionItemProps } from '../NavigationDrawer/NavigationDrawerActionItem';
|
|
4
|
+
import { NavigationDrawerLinkItemProps } from '../NavigationDrawer/NavigationDrawerLinkItem';
|
|
5
|
+
import { NotificationCardProps } from '../NotificationCard/NotificationCard';
|
|
6
|
+
import { AllOptionAccessor } from '../Shared/types';
|
|
7
|
+
import { TabSwitchElement } from '../TabSwitch/TabSwitch';
|
|
8
|
+
import { subImageUrlAccessor } from './SystemSessions';
|
|
9
|
+
type TProduct = {
|
|
10
|
+
name: string;
|
|
11
|
+
domain: string;
|
|
12
|
+
active: boolean;
|
|
13
|
+
coverImage?: string;
|
|
14
|
+
thumbnail?: string;
|
|
15
|
+
};
|
|
16
|
+
type TCompany = {
|
|
17
|
+
name: string;
|
|
18
|
+
products?: TProduct[];
|
|
19
|
+
icon?: string;
|
|
20
|
+
};
|
|
21
|
+
type TUser = {
|
|
22
|
+
auth_id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
surname?: string;
|
|
25
|
+
email?: string;
|
|
26
|
+
profile_picture?: string;
|
|
27
|
+
};
|
|
28
|
+
export type TSystem = {
|
|
29
|
+
name: string;
|
|
30
|
+
url: string;
|
|
31
|
+
coverImage?: string;
|
|
32
|
+
thumbnail?: string;
|
|
33
|
+
_id: string;
|
|
34
|
+
};
|
|
35
|
+
type TSystemSession<TSystemMetadata> = TSystem & {
|
|
36
|
+
metadata?: TSystemMetadata;
|
|
37
|
+
};
|
|
38
|
+
export interface AuthSession<TSystemMetadata> {
|
|
39
|
+
token: string;
|
|
40
|
+
expires_at: string;
|
|
41
|
+
logoutDate?: string;
|
|
42
|
+
userHub: TUser;
|
|
43
|
+
systems: TSystemSession<TSystemMetadata>[];
|
|
44
|
+
}
|
|
45
|
+
export interface NavigationDrawerTabsProps {
|
|
46
|
+
currentTabName?: string;
|
|
47
|
+
customTabs?: TabSwitchElement[];
|
|
48
|
+
onTabClick?: (name: string) => void;
|
|
49
|
+
}
|
|
50
|
+
type AvailableData<TSystemMetadata> = {
|
|
51
|
+
company: TCompany;
|
|
52
|
+
user: TUser;
|
|
53
|
+
system?: TSystem;
|
|
54
|
+
metadata?: TSystemMetadata;
|
|
55
|
+
};
|
|
56
|
+
type SessionAvailableData<TSystemMetadata> = {
|
|
57
|
+
company: TCompany;
|
|
58
|
+
user: TUser;
|
|
59
|
+
system?: TSystemSession<TSystemMetadata>;
|
|
60
|
+
metadata?: TSystemMetadata;
|
|
61
|
+
};
|
|
62
|
+
type UserCardAccesors<TSystemMetadata> = AllOptionAccessor<AvailableData<TSystemMetadata>, string>;
|
|
63
|
+
type SessionCardAccesors<TSystemMetadata> = AllOptionAccessor<SessionAvailableData<TSystemMetadata>, string>;
|
|
64
|
+
interface UserCardOptions<TSystemMetadata> {
|
|
65
|
+
secondarySlot: UserCardAccesors<TSystemMetadata> | [UserCardAccesors<TSystemMetadata>, UserCardAccesors<TSystemMetadata>] | ((data: AvailableData<TSystemMetadata>) => React.ReactNode);
|
|
66
|
+
}
|
|
67
|
+
interface SessionCardOptions<TSystemMetadata> {
|
|
68
|
+
secondarySlot: SessionCardAccesors<TSystemMetadata> | [SessionCardAccesors<TSystemMetadata>, SessionCardAccesors<TSystemMetadata>] | ((data: SessionAvailableData<TSystemMetadata>) => React.ReactNode);
|
|
69
|
+
subImageUrlAccessor?: subImageUrlAccessor<TSystemMetadata>;
|
|
70
|
+
}
|
|
71
|
+
export interface NotificationsDrawerOptions {
|
|
72
|
+
hide?: boolean;
|
|
73
|
+
hideActionButton?: boolean;
|
|
74
|
+
onMarkAllAsRead?: () => void;
|
|
75
|
+
}
|
|
76
|
+
export interface HelpSectionDrawerOptions {
|
|
77
|
+
hide?: boolean;
|
|
78
|
+
hideActionButton?: boolean;
|
|
79
|
+
}
|
|
80
|
+
export interface ConfigurationActionOptions {
|
|
81
|
+
hideActionButton?: boolean;
|
|
82
|
+
onClick: VoidFunction;
|
|
83
|
+
}
|
|
84
|
+
export interface PyrionNavigationDrawerOptions<TSystemMetadata> {
|
|
85
|
+
userCardOptions?: UserCardOptions<TSystemMetadata>;
|
|
86
|
+
sessionCardOptions?: SessionCardOptions<TSystemMetadata>;
|
|
87
|
+
notificationsDrawerOptions?: NotificationsDrawerOptions;
|
|
88
|
+
helpSectionDrawerOptions?: HelpSectionDrawerOptions;
|
|
89
|
+
configurationActionOptions?: ConfigurationActionOptions;
|
|
90
|
+
sidebarOptions: Pick<NavigationDrawerSidebarProps, 'modal' | 'closeOnOverlayClick'>;
|
|
91
|
+
}
|
|
92
|
+
export interface PyrionNavigationDrawerProps<TSystemMetadata, NotificationMetadata = unknown> {
|
|
93
|
+
links?: NavigationDrawerLinkItemProps[];
|
|
94
|
+
actions?: NavigationDrawerActionItemProps[];
|
|
95
|
+
tabsProps?: NavigationDrawerTabsProps;
|
|
96
|
+
activeActionId?: string;
|
|
97
|
+
currentSystemId: string;
|
|
98
|
+
helpSection?: ReactNode | (() => ReactNode);
|
|
99
|
+
children?: ReactNode;
|
|
100
|
+
state: {
|
|
101
|
+
company: TCompany;
|
|
102
|
+
enabled_systems: TSystem[];
|
|
103
|
+
user: TUser;
|
|
104
|
+
sessions?: AuthSession<TSystemMetadata>[];
|
|
105
|
+
metadata?: TSystemMetadata;
|
|
106
|
+
notifications?: NotificationCardProps<NotificationMetadata>[];
|
|
107
|
+
};
|
|
108
|
+
options?: PyrionNavigationDrawerOptions<TSystemMetadata>;
|
|
109
|
+
onActionClick?: (id: string) => void;
|
|
110
|
+
onLinkClick?: (path: string) => void;
|
|
111
|
+
onSessionClick?: (session: AuthSession<TSystemMetadata>) => void;
|
|
112
|
+
onNavigate?: (from: string, to: string) => void;
|
|
113
|
+
onSystemLogoClick?: (collapsed?: boolean) => void;
|
|
114
|
+
onLogoutClick?: () => void;
|
|
115
|
+
}
|
|
116
|
+
type PyrionNavigationControls = {
|
|
117
|
+
toggleCollapse?: () => void;
|
|
118
|
+
getIsCollapsed?: () => boolean;
|
|
119
|
+
subscribeToCollapse?: (listener: (collapsed: boolean) => void) => () => void;
|
|
120
|
+
openSidebar?: () => void;
|
|
121
|
+
closeSidebar?: () => void;
|
|
122
|
+
toggleSidebar?: () => void;
|
|
123
|
+
getIsSidebarOpen?: () => boolean;
|
|
124
|
+
subscribeToSidebarOpen?: (listener: (open: boolean) => void) => () => void;
|
|
125
|
+
openNotifications?: () => void;
|
|
126
|
+
openHelp?: () => void;
|
|
127
|
+
};
|
|
128
|
+
export declare const usePyrionNavigation: () => PyrionNavigationControls;
|
|
129
|
+
declare const PyrionNavigationDrawer: <TAppMetadata = unknown, NotificationMetadata = unknown>({ children, helpSection, state, links: navlinks, onLinkClick, onNavigate, onLogoutClick, actions, activeActionId, onActionClick, tabsProps, currentSystemId, onSessionClick, options, onSystemLogoClick }: PyrionNavigationDrawerProps<TAppMetadata, NotificationMetadata>) => import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
export default PyrionNavigationDrawer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TabSwitchElement } from '../TabSwitch/TabSwitch';
|
|
3
|
+
import { TicketCardHandlerProps } from '../TicketCard/TicketCard';
|
|
4
|
+
export interface PyrionNavigationDrawerMobileAppSwitcherProps {
|
|
5
|
+
tabs: TabSwitchElement[];
|
|
6
|
+
content: React.ReactNode | (() => React.ReactNode);
|
|
7
|
+
controls?: React.RefObject<TicketCardHandlerProps | null>;
|
|
8
|
+
}
|
|
9
|
+
declare const PyrionNavigationDrawerMobileAppSwitcher: ({ tabs, content, controls }: PyrionNavigationDrawerMobileAppSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default PyrionNavigationDrawerMobileAppSwitcher;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TSystem } from './PyrionNavigationDrawer';
|
|
2
|
+
declare const SystemLogo: import('react').MemoExoticComponent<({ enabled_systems, onClick, currentSystemId }: {
|
|
3
|
+
enabled_systems?: TSystem[];
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
currentSystemId?: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default SystemLogo;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NotificationCardProps } from '../NotificationCard/NotificationCard';
|
|
2
|
+
interface PyrionNotificationsDrawerProps<NotificationMetadata> {
|
|
3
|
+
onCloseClick?: VoidFunction;
|
|
4
|
+
onMarkAllAsRead?: () => void;
|
|
5
|
+
notifications?: NotificationCardProps<NotificationMetadata>[];
|
|
6
|
+
}
|
|
7
|
+
declare const PyrionNotificationsList: <NotificationMetadata = unknown>({ onCloseClick, onMarkAllAsRead, notifications }: PyrionNotificationsDrawerProps<NotificationMetadata>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default PyrionNotificationsList;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PyrionNavigationDrawerOptions, PyrionNavigationDrawerProps } from './PyrionNavigationDrawer';
|
|
3
|
+
export type SidebarContentHandle = {
|
|
4
|
+
setActiveSection: (section: 'notifications' | 'help') => void;
|
|
5
|
+
};
|
|
6
|
+
declare const SidebarContent: import('react').ForwardRefExoticComponent<{
|
|
7
|
+
closeSidebar: () => void;
|
|
8
|
+
options?: PyrionNavigationDrawerOptions<any>;
|
|
9
|
+
state: PyrionNavigationDrawerProps<any, any>["state"];
|
|
10
|
+
helpSection?: ReactNode | (() => ReactNode);
|
|
11
|
+
initialSection?: "notifications" | "help";
|
|
12
|
+
} & import('react').RefAttributes<SidebarContentHandle>>;
|
|
13
|
+
export default SidebarContent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AllOptionAccessor } from '../Shared/types';
|
|
2
|
+
import { AuthSession } from './PyrionNavigationDrawer';
|
|
3
|
+
export interface SystemSessionsProps<TSystemMetadata> {
|
|
4
|
+
sessions?: AuthSession<TSystemMetadata>[];
|
|
5
|
+
onSessionClick?: (session: AuthSession<TSystemMetadata>) => void;
|
|
6
|
+
secondarySlot?: React.ReactNode | string | ((session: AuthSession<TSystemMetadata>) => React.ReactNode | string | null) | null;
|
|
7
|
+
subImageUrlAccessor?: subImageUrlAccessor<TSystemMetadata>;
|
|
8
|
+
currentSystemId: string;
|
|
9
|
+
}
|
|
10
|
+
export type subImageUrlAccessor<TSystemMetadata> = AllOptionAccessor<TSystemMetadata, string>;
|
|
11
|
+
declare const SystemSessions: <TSystemMetadata = unknown>(props: SystemSessionsProps<TSystemMetadata>) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export default SystemSessions;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { default as PyrionNavigationDrawer, PyrionNavigationDrawerProps, PyrionNavigationDrawerOptions, NavigationDrawerTabsProps, AuthSession } from './PyrionNavigationDrawer';
|
|
2
|
+
export { type PyrionNavigationDrawerProps, type PyrionNavigationDrawerOptions, type NavigationDrawerTabsProps, type AuthSession };
|
|
3
|
+
export default PyrionNavigationDrawer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentVariant } from '../Shared/types';
|
|
3
|
+
export interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
errorComponent?: React.ReactNode | string;
|
|
7
|
+
helperComponent?: React.ReactNode | string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
variant?: ComponentVariant;
|
|
10
|
+
className?: string;
|
|
11
|
+
labelClassName?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const RadioButton: React.NamedExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
|
|
14
|
+
export default RadioButton;
|