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,265 @@
|
|
|
1
|
+
import { j as r } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as d } from "./cn-B6yFEsav.js";
|
|
3
|
+
import M, { useRef as _, useState as x, useCallback as Z, useEffect as T } from "react";
|
|
4
|
+
import { Close as ee } from "./Icons/Close.es.js";
|
|
5
|
+
import { Info as te } from "./Icons/Info.es.js";
|
|
6
|
+
import { Error as re } from "./Icons/Error.es.js";
|
|
7
|
+
const se = ({ label: S, name: D, onChange: f, value: l, icon: C, valueSeparator: w = ",", variant: I = "default", placeholder: K, itemClassName: U, itemIcon: V, helperText: j, errorText: N, disabled: a, onClick: F, className: $, readonly: h, onValueDelete: B, ...O }) => {
|
|
8
|
+
const o = _(null), E = _(null), [u, n] = x(""), [z, i] = x(0), [q, c] = x(!0), [v, P] = x(!1), [m, p] = x(!1), [k, y] = x(null), g = (e) => {
|
|
9
|
+
if (h || !e) return;
|
|
10
|
+
const t = e.selectionStart ?? u.length;
|
|
11
|
+
i(t);
|
|
12
|
+
}, A = (e) => {
|
|
13
|
+
if (h) return;
|
|
14
|
+
if (e.target.value[e.target.value.length - 1] === w && u.length > 0) {
|
|
15
|
+
const s = u.trim();
|
|
16
|
+
if (m) {
|
|
17
|
+
s.length > 0 ? (n(s), b()) : (p(!1), n(""), c(!0), i(0));
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (s.length === 0 || l.includes(s)) {
|
|
21
|
+
n(""), c(!0), g(e.target);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
f([...l, s]), n(""), c(!0);
|
|
25
|
+
} else {
|
|
26
|
+
if (e.target.value === w) return;
|
|
27
|
+
n(e.target.value), c(!1);
|
|
28
|
+
}
|
|
29
|
+
g(e.target);
|
|
30
|
+
}, b = Z(() => {
|
|
31
|
+
const e = u.trim();
|
|
32
|
+
if (e.length === 0) {
|
|
33
|
+
p(!1), n(""), c(!0), i(0), y(null);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
p(!1), k !== null && f(Q(l.map((t, s) => s === k ? e : t))), n(""), c(!0), i(0), y(null);
|
|
37
|
+
}, [k, u, f, l]), G = (e) => {
|
|
38
|
+
if (!h) {
|
|
39
|
+
if (e.key === "Backspace" && u.length === 0) {
|
|
40
|
+
if (q) {
|
|
41
|
+
const t = l[l.length - 1];
|
|
42
|
+
t && (f(l.filter((s) => s !== t)), n(t), i(t.length));
|
|
43
|
+
} else
|
|
44
|
+
c(!0);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (e.key === "Enter") {
|
|
48
|
+
const t = u.trim();
|
|
49
|
+
if (m) {
|
|
50
|
+
t.length > 0 ? (n(t), b()) : (p(!1), n(""), c(!0), i(0));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
t.length > 0 && !l.includes(t) && t !== w && (f([...l, t]), n(""), c(!0), i(0));
|
|
54
|
+
}
|
|
55
|
+
e.key === "Escape" && m && (p(!1), n(""), c(!0), i(0), y(null)), g(e.currentTarget);
|
|
56
|
+
}
|
|
57
|
+
}, H = (e) => {
|
|
58
|
+
const t = l.filter((s) => s !== e);
|
|
59
|
+
f(t), B?.(e);
|
|
60
|
+
}, J = (e) => {
|
|
61
|
+
h || (L(e), p(!0), n(e), i(e.length), y(l.length - 1), o.current?.focus());
|
|
62
|
+
}, L = (e) => {
|
|
63
|
+
const t = l.filter((s) => s !== e);
|
|
64
|
+
f([...t, e]);
|
|
65
|
+
}, Q = (e) => e.filter((t, s, Y) => Y.indexOf(t) === s);
|
|
66
|
+
T(() => {
|
|
67
|
+
o.current && (o.current.onfocus = () => {
|
|
68
|
+
P(!0);
|
|
69
|
+
}, o.current.onblur = () => {
|
|
70
|
+
P(!1), m && b();
|
|
71
|
+
}), E.current && (E.current.onblur = () => {
|
|
72
|
+
m && b();
|
|
73
|
+
});
|
|
74
|
+
}, [m, b]);
|
|
75
|
+
const W = {
|
|
76
|
+
isFocused: {
|
|
77
|
+
error: "border-error-default-focused ring-error-default-focused",
|
|
78
|
+
success: "border-success-default-focused ring-success-default-focused",
|
|
79
|
+
warning: "border-warning-default-focused ring-warning-default-focused",
|
|
80
|
+
default: "border-primary-default-focused ring-primary-default-focused"
|
|
81
|
+
},
|
|
82
|
+
default: {
|
|
83
|
+
error: "border-error-default-default hover:border-error-default-hover",
|
|
84
|
+
success: "border-success-default-default hover:border-success-default-hover",
|
|
85
|
+
warning: "border-warning-default-default hover:border-warning-default-hover",
|
|
86
|
+
default: "border-neutral-default-default hover:border-primary-default-hover"
|
|
87
|
+
},
|
|
88
|
+
disabled: {
|
|
89
|
+
error: "border-error-default-disabled",
|
|
90
|
+
success: "border-success-default-disabled",
|
|
91
|
+
warning: "border-warning-default-disabled",
|
|
92
|
+
default: "border-neutral-default-disabled"
|
|
93
|
+
}
|
|
94
|
+
}, X = {
|
|
95
|
+
default: {
|
|
96
|
+
default: "text-neutral-default-default",
|
|
97
|
+
isFocused: "text-neutral-default-focused",
|
|
98
|
+
disabled: "text-neutral-default-disabled"
|
|
99
|
+
},
|
|
100
|
+
error: {
|
|
101
|
+
default: "text-error-medium-default",
|
|
102
|
+
isFocused: "text-error-medium-focused",
|
|
103
|
+
disabled: "text-error-medium-disabled"
|
|
104
|
+
},
|
|
105
|
+
success: {
|
|
106
|
+
default: "text-success-medium-default",
|
|
107
|
+
isFocused: "text-success-medium-focused",
|
|
108
|
+
disabled: "text-success-medium-disabled"
|
|
109
|
+
},
|
|
110
|
+
warning: {
|
|
111
|
+
default: "text-warning-default-default",
|
|
112
|
+
isFocused: "text-warning-default-focused",
|
|
113
|
+
disabled: "text-warning-default-disabled"
|
|
114
|
+
}
|
|
115
|
+
}, R = a ? "disabled" : v ? "isFocused" : "default";
|
|
116
|
+
return /* @__PURE__ */ r.jsxs("div", { className: d(
|
|
117
|
+
"relative w-full",
|
|
118
|
+
$
|
|
119
|
+
), children: [
|
|
120
|
+
/* @__PURE__ */ r.jsx("p", { className: d(
|
|
121
|
+
"mb-1 px-3",
|
|
122
|
+
"prometeo-fonts-label-large",
|
|
123
|
+
X?.[I || "default"]?.[R]
|
|
124
|
+
), children: S }),
|
|
125
|
+
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
126
|
+
/* @__PURE__ */ r.jsx(
|
|
127
|
+
"input",
|
|
128
|
+
{
|
|
129
|
+
ref: o,
|
|
130
|
+
value: u,
|
|
131
|
+
onKeyUp: G,
|
|
132
|
+
onChange: A,
|
|
133
|
+
onClick: (e) => g(e.currentTarget),
|
|
134
|
+
onSelect: (e) => g(e.currentTarget),
|
|
135
|
+
name: D,
|
|
136
|
+
disabled: a,
|
|
137
|
+
className: d(
|
|
138
|
+
"absolute inset-0 w-full h-full",
|
|
139
|
+
"opacity-0 cursor-text z-10",
|
|
140
|
+
"bg-transparent border-none outline-none",
|
|
141
|
+
"pointer-events-none"
|
|
142
|
+
),
|
|
143
|
+
autoComplete: "off",
|
|
144
|
+
autoCorrect: "off",
|
|
145
|
+
autoCapitalize: "off",
|
|
146
|
+
spellCheck: "false",
|
|
147
|
+
inputMode: "text",
|
|
148
|
+
...O
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
/* @__PURE__ */ r.jsxs(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
ref: E,
|
|
155
|
+
className: d(
|
|
156
|
+
"border border-neutral-default-default rounded-md p-3",
|
|
157
|
+
"flex flex-wrap gap-1 min-h-[58px]",
|
|
158
|
+
"transition-all duration-300 ease-in-out",
|
|
159
|
+
"cursor-text",
|
|
160
|
+
W[R][I],
|
|
161
|
+
v ? "ring-[1px]" : "",
|
|
162
|
+
// 'hover:border-primary-default-hover',
|
|
163
|
+
a && "hover:border-neutral-default-disabled"
|
|
164
|
+
),
|
|
165
|
+
onMouseDown: (e) => {
|
|
166
|
+
e.stopPropagation(), F?.(e), o.current?.focus();
|
|
167
|
+
const t = u.length;
|
|
168
|
+
o.current && (o.current.selectionStart = t, o.current.selectionEnd = t), i(t);
|
|
169
|
+
},
|
|
170
|
+
onClick: (e) => {
|
|
171
|
+
e.stopPropagation(), o.current?.focus(), F?.(e);
|
|
172
|
+
},
|
|
173
|
+
children: [
|
|
174
|
+
C && /* @__PURE__ */ r.jsx("div", { className: d(
|
|
175
|
+
"flex items-center text-neutral-default-default",
|
|
176
|
+
a && "text-neutral-default-disabled"
|
|
177
|
+
), children: C }),
|
|
178
|
+
l.map((e, t) => /* @__PURE__ */ r.jsxs(
|
|
179
|
+
"div",
|
|
180
|
+
{
|
|
181
|
+
className: d(
|
|
182
|
+
"h-8 max-h-8 rounded-lg bg-primary-light-default border border-neutral-default-default",
|
|
183
|
+
"flex items-center gap-2 px-2",
|
|
184
|
+
"prometeo-fonts-label-medium z-20",
|
|
185
|
+
t === l.length - 1 && m ? "opacity-0 hidden overflow-hidden" : "",
|
|
186
|
+
a && "border-neutral-default-disabled text-neutral-default-disabled",
|
|
187
|
+
U
|
|
188
|
+
),
|
|
189
|
+
children: [
|
|
190
|
+
V && /* @__PURE__ */ r.jsx("div", { className: "flex items-center", children: M.createElement(
|
|
191
|
+
V,
|
|
192
|
+
{
|
|
193
|
+
size: 16,
|
|
194
|
+
className: d(
|
|
195
|
+
"text-neutral-default-default",
|
|
196
|
+
a && "text-neutral-default-disabled"
|
|
197
|
+
)
|
|
198
|
+
}
|
|
199
|
+
) }),
|
|
200
|
+
/* @__PURE__ */ r.jsx(
|
|
201
|
+
"span",
|
|
202
|
+
{
|
|
203
|
+
onClick: (s) => {
|
|
204
|
+
s.stopPropagation(), !a && J(e);
|
|
205
|
+
},
|
|
206
|
+
className: d(
|
|
207
|
+
"cursor-pointer hover:text-neutral-default-hover",
|
|
208
|
+
a && "cursor-default hover:text-neutral-default-disabled"
|
|
209
|
+
),
|
|
210
|
+
children: e
|
|
211
|
+
}
|
|
212
|
+
),
|
|
213
|
+
/* @__PURE__ */ r.jsx(
|
|
214
|
+
"div",
|
|
215
|
+
{
|
|
216
|
+
onClick: (s) => {
|
|
217
|
+
s.stopPropagation(), !a && H(e);
|
|
218
|
+
},
|
|
219
|
+
className: d(
|
|
220
|
+
"cursor-pointer hover:scale-105 transition-all duration-200 ",
|
|
221
|
+
a && " cursor-default hover:scale-100 "
|
|
222
|
+
),
|
|
223
|
+
children: /* @__PURE__ */ r.jsx(
|
|
224
|
+
ee,
|
|
225
|
+
{
|
|
226
|
+
size: 16,
|
|
227
|
+
className: d(
|
|
228
|
+
"text-neutral-default-default hover:text-neutral-default-hover transition-all duration-200",
|
|
229
|
+
a && "text-neutral-default-disabled hover:text-neutral-default-disabled"
|
|
230
|
+
)
|
|
231
|
+
}
|
|
232
|
+
)
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
e
|
|
238
|
+
)),
|
|
239
|
+
v && !h && /* @__PURE__ */ r.jsxs("div", { className: "flex items-center min-w-[2px]", children: [
|
|
240
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-neutral-default-default whitespace-pre-wrap wrap-break-word", children: u.slice(0, z) }),
|
|
241
|
+
/* @__PURE__ */ r.jsx("span", { className: "animate-[cursor-intermitent_1s_ease-in-out_infinite] bg-neutral-default-pressed w-[2px] h-5 inline-block align-middle mx-px z-20" }),
|
|
242
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-neutral-default-default whitespace-pre-wrap wrap-break-word", children: u.slice(z) })
|
|
243
|
+
] }),
|
|
244
|
+
l.length === 0 && !v && /* @__PURE__ */ r.jsx("span", { className: d(
|
|
245
|
+
"text-neutral-medium-default self-center",
|
|
246
|
+
a && "text-neutral-default-disabled"
|
|
247
|
+
), children: K || `Escribe los valores separados por ${w}` })
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
] }),
|
|
252
|
+
j && I !== "error" && !a && (typeof j == "string" ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-neutral-medium-default ml-3 mt-1 flex items-center gap-1", children: [
|
|
253
|
+
/* @__PURE__ */ r.jsx(te, { size: 16, className: "text-neutral-medium-default" }),
|
|
254
|
+
j
|
|
255
|
+
] }) : /* @__PURE__ */ r.jsx("div", { className: "ml-3", children: j })),
|
|
256
|
+
N && typeof N == "string" && !a ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-error-default-default ml-3 mt-1 flex items-center gap-1", children: [
|
|
257
|
+
/* @__PURE__ */ r.jsx(re, { size: 16, className: "text-error-default-default" }),
|
|
258
|
+
N
|
|
259
|
+
] }) : N
|
|
260
|
+
] });
|
|
261
|
+
}, ie = M.memo(se);
|
|
262
|
+
export {
|
|
263
|
+
ie as InputMultiple,
|
|
264
|
+
ie as default
|
|
265
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as n } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { useRef as o, createContext as c, useContext as l, memo as d } from "react";
|
|
3
|
+
const a = c(null), f = ({ children: e }) => {
|
|
4
|
+
const r = o(null), s = o(null), u = (t) => {
|
|
5
|
+
t.current && r && (r.current = t.current);
|
|
6
|
+
}, i = (t) => {
|
|
7
|
+
t.current && s && (s.current = t.current);
|
|
8
|
+
};
|
|
9
|
+
return /* @__PURE__ */ n.jsx(a.Provider, { value: { primarySidebarRef: r, registerPrimarySidebar: u, tabBarRef: s, registerTabBar: i }, children: e });
|
|
10
|
+
}, S = () => {
|
|
11
|
+
const e = l(a);
|
|
12
|
+
if (!e)
|
|
13
|
+
throw new Error("useSidebarContext must be used within a SidebarProvider");
|
|
14
|
+
return e;
|
|
15
|
+
}, x = ({
|
|
16
|
+
children: e,
|
|
17
|
+
sidebar: r
|
|
18
|
+
}) => /* @__PURE__ */ n.jsxs("div", { className: "flex h-screen w-full bg-neutral-default-default", children: [
|
|
19
|
+
/* @__PURE__ */ n.jsx(f, { children: r }),
|
|
20
|
+
/* @__PURE__ */ n.jsx("main", { className: "w-full h-full overflow-y-auto", children: e })
|
|
21
|
+
] }), h = d(x);
|
|
22
|
+
export {
|
|
23
|
+
h as L,
|
|
24
|
+
f as S,
|
|
25
|
+
S as u
|
|
26
|
+
};
|
package/dist/Logo.d.ts
ADDED
package/dist/Logo.es.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { TicketFilled as t } from "./Icons/TicketFilled.es.js";
|
|
3
|
+
const s = () => /* @__PURE__ */ e.jsxs("div", { className: "container-logo flex items-center justify-center gap-1 bg-linear-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
|
|
4
|
+
/* @__PURE__ */ e.jsx(t, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
|
|
5
|
+
/* @__PURE__ */ e.jsx("span", { className: "font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo", children: "TICKETS" })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
s as default
|
|
9
|
+
};
|
package/dist/Menu.d.ts
ADDED
package/dist/Menu.es.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as r } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { AnimatePresence as n, motion as o } from "framer-motion";
|
|
4
|
+
const s = ({ menuRef: t, children: a, className: i }) => /* @__PURE__ */ e.jsx("div", { ref: t, className: r("flex bg-neutral-default-default absolute bottom-10 left-24 border border-neutral-strong-default h-auto w-60 rounded-md px-2", i), children: /* @__PURE__ */ e.jsx(n, { mode: "wait", children: /* @__PURE__ */ e.jsx(
|
|
5
|
+
o.div,
|
|
6
|
+
{
|
|
7
|
+
initial: { height: 0, opacity: 0 },
|
|
8
|
+
animate: {
|
|
9
|
+
height: "auto",
|
|
10
|
+
opacity: 1,
|
|
11
|
+
transition: {
|
|
12
|
+
height: { duration: 0.6, ease: "easeOut" },
|
|
13
|
+
opacity: { duration: 0.4, delay: 0.2 }
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
exit: {
|
|
17
|
+
height: 0,
|
|
18
|
+
opacity: 0,
|
|
19
|
+
transition: {
|
|
20
|
+
height: {
|
|
21
|
+
duration: 0.8,
|
|
22
|
+
delay: 0.2,
|
|
23
|
+
ease: "easeIn"
|
|
24
|
+
},
|
|
25
|
+
opacity: { duration: 0.3, delay: 0.1 }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
className: "overflow-hidden flex flex-col justify-between items-center w-full",
|
|
29
|
+
children: a
|
|
30
|
+
}
|
|
31
|
+
) }) }), l = () => /* @__PURE__ */ e.jsx(
|
|
32
|
+
o.div,
|
|
33
|
+
{
|
|
34
|
+
className: "flex justify-center items-center w-full ",
|
|
35
|
+
exit: {
|
|
36
|
+
opacity: 0,
|
|
37
|
+
scaleX: 0,
|
|
38
|
+
height: 0,
|
|
39
|
+
transition: {
|
|
40
|
+
duration: 0.4,
|
|
41
|
+
delay: 0.15,
|
|
42
|
+
ease: "easeInOut"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "border-b border-neutral-strong-default border w-full" })
|
|
46
|
+
}
|
|
47
|
+
), d = ({ onClick: t, children: a, className: i }) => /* @__PURE__ */ e.jsx(
|
|
48
|
+
o.button,
|
|
49
|
+
{
|
|
50
|
+
onClick: t,
|
|
51
|
+
className: r("flex py-2 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile", i),
|
|
52
|
+
exit: {
|
|
53
|
+
opacity: 0,
|
|
54
|
+
y: -8,
|
|
55
|
+
scale: 0.96,
|
|
56
|
+
transition: {
|
|
57
|
+
duration: 0.5,
|
|
58
|
+
delay: 0,
|
|
59
|
+
ease: "easeInOut"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
whileHover: {
|
|
63
|
+
opacity: 1,
|
|
64
|
+
scale: [1, 1.02, 1],
|
|
65
|
+
transition: { duration: 0.2 }
|
|
66
|
+
},
|
|
67
|
+
whileTap: { scale: 0.98 },
|
|
68
|
+
children: a
|
|
69
|
+
}
|
|
70
|
+
), f = Object.assign(s, {
|
|
71
|
+
Divider: l,
|
|
72
|
+
Items: d
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
f as Menu,
|
|
76
|
+
f as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as o } from "./cn-B6yFEsav.js";
|
|
3
|
+
import x from "./Avatar.es.js";
|
|
4
|
+
import p from "./Button.es.js";
|
|
5
|
+
const v = ({ user: i, body: t, date: a, actions: s, isNew: d, className: m, metadata: r }) => {
|
|
6
|
+
const f = typeof t == "function" ? t(r) : t, c = a instanceof Date ? `${a.toLocaleDateString("es-AR", { day: "2-digit", month: "2-digit", year: "numeric" })} a las ${a.toLocaleTimeString("es-AR", { hour: "2-digit", minute: "2-digit", hour12: !1 })}` : a;
|
|
7
|
+
return /* @__PURE__ */ e.jsxs("article", { className: o("flex flex-col gap-3 p-3 rounded-md bg-neutral-default-default ", m), children: [
|
|
8
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
9
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-start w-full", children: [
|
|
10
|
+
/* @__PURE__ */ e.jsxs("div", { className: " relative min-w-max", children: [
|
|
11
|
+
d && /* @__PURE__ */ e.jsx("div", { className: "size-3 border border-neutral-default bg-(--pyrion-orange-500) rounded-full absolute top-0 left-0 z-20" }),
|
|
12
|
+
/* @__PURE__ */ e.jsx(
|
|
13
|
+
x,
|
|
14
|
+
{
|
|
15
|
+
imageUrl: i.profile_picture,
|
|
16
|
+
fallbackText: i.name,
|
|
17
|
+
sizeFallback: "xs",
|
|
18
|
+
sizeImage: "xs"
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-neutral-default-default prometeo-fonts-body-medium", children: f })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-neutral-medium-default prometeo-fonts-body-xsmall text-right", children: c })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex gap-2 w-full", children: s?.map((l, n) => {
|
|
27
|
+
if (l.hidden)
|
|
28
|
+
return null;
|
|
29
|
+
const u = () => {
|
|
30
|
+
l.onClick(r);
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ e.jsx(
|
|
33
|
+
p,
|
|
34
|
+
{
|
|
35
|
+
className: o("flex-1 h-8", n === 0 && s.length > 1 && "order-2"),
|
|
36
|
+
animate: !1,
|
|
37
|
+
animateIcon: !1,
|
|
38
|
+
label: l.label,
|
|
39
|
+
onClick: u,
|
|
40
|
+
variant: l.variant || s.length > 1 ? n === 0 ? "fill" : "text" : "fill",
|
|
41
|
+
disabled: l.disabled,
|
|
42
|
+
size: "small"
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}) })
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
v as default
|
|
50
|
+
};
|