prometeo-design-system 3.1.3 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +25 -5
- package/src/styles/base.css +25 -0
- package/src/styles/palette.css +3 -0
- package/dist/Avatar.d.ts +0 -4
- package/dist/Avatar.es.js +0 -88
- package/dist/Button.d.ts +0 -6
- package/dist/Button.es.js +0 -400
- package/dist/CardProfile-BVO6fKr9.js +0 -280
- package/dist/CardProfile.d.ts +0 -6
- package/dist/CardProfile.es.js +0 -5
- package/dist/CheckBox.d.ts +0 -6
- package/dist/CheckBox.es.js +0 -112
- package/dist/DatePicker-D1EwMGIN.js +0 -3568
- package/dist/DatePicker.d.ts +0 -6
- package/dist/DatePicker.es.js +0 -5
- package/dist/DialogModal.d.ts +0 -6
- package/dist/DialogModal.es.js +0 -75
- package/dist/DrawerDesktop.d.ts +0 -6
- package/dist/DrawerDesktop.es.js +0 -211
- package/dist/DrawerMobile.d.ts +0 -6
- package/dist/DrawerMobile.es.js +0 -243
- package/dist/DropZone.d.ts +0 -6
- package/dist/DropZone.es.js +0 -88
- package/dist/FAButton.d.ts +0 -4
- package/dist/FAButton.es.js +0 -111
- package/dist/Header.d.ts +0 -6
- package/dist/Header.es.js +0 -32
- package/dist/HelperComponent-DhGU_ug-.js +0 -26
- package/dist/Icons/AccountCircle.d.ts +0 -6
- package/dist/Icons/AccountCircle.es.js +0 -21
- package/dist/Icons/Add.d.ts +0 -6
- package/dist/Icons/Add.es.js +0 -19
- package/dist/Icons/ArrowLeft.d.ts +0 -6
- package/dist/Icons/ArrowLeft.es.js +0 -19
- package/dist/Icons/ArrowUpDown.d.ts +0 -6
- package/dist/Icons/ArrowUpDown.es.js +0 -21
- package/dist/Icons/AttachFile.d.ts +0 -6
- package/dist/Icons/AttachFile.es.js +0 -19
- package/dist/Icons/Boards.d.ts +0 -6
- package/dist/Icons/Boards.es.js +0 -19
- package/dist/Icons/Calendar.d.ts +0 -6
- package/dist/Icons/Calendar.es.js +0 -19
- package/dist/Icons/Cancel.d.ts +0 -6
- package/dist/Icons/Cancel.es.js +0 -19
- package/dist/Icons/Check.d.ts +0 -6
- package/dist/Icons/Check.es.js +0 -19
- package/dist/Icons/CheckCircle.d.ts +0 -6
- package/dist/Icons/CheckCircle.es.js +0 -21
- package/dist/Icons/CheckList.d.ts +0 -6
- package/dist/Icons/CheckList.es.js +0 -25
- package/dist/Icons/ChevronDown.d.ts +0 -6
- package/dist/Icons/ChevronDown.es.js +0 -21
- package/dist/Icons/Clock.d.ts +0 -6
- package/dist/Icons/Clock.es.js +0 -19
- package/dist/Icons/Close.d.ts +0 -6
- package/dist/Icons/Close.es.js +0 -19
- package/dist/Icons/CloseNavBarDesktop.d.ts +0 -6
- package/dist/Icons/CloseNavBarDesktop.es.js +0 -36
- package/dist/Icons/Collapse.d.ts +0 -6
- package/dist/Icons/Collapse.es.js +0 -19
- package/dist/Icons/Company.d.ts +0 -6
- package/dist/Icons/Company.es.js +0 -25
- package/dist/Icons/Copy.d.ts +0 -6
- package/dist/Icons/Copy.es.js +0 -19
- package/dist/Icons/CrevronLeft.d.ts +0 -6
- package/dist/Icons/CrevronLeft.es.js +0 -21
- package/dist/Icons/CrevronRight.d.ts +0 -6
- package/dist/Icons/CrevronRight.es.js +0 -21
- package/dist/Icons/DocumentFill.d.ts +0 -6
- package/dist/Icons/DocumentFill.es.js +0 -27
- package/dist/Icons/Download.d.ts +0 -6
- package/dist/Icons/Download.es.js +0 -25
- package/dist/Icons/Edit.d.ts +0 -6
- package/dist/Icons/Edit.es.js +0 -19
- package/dist/Icons/EditFill.d.ts +0 -6
- package/dist/Icons/EditFill.es.js +0 -25
- package/dist/Icons/Email.d.ts +0 -6
- package/dist/Icons/Email.es.js +0 -25
- package/dist/Icons/Error.d.ts +0 -6
- package/dist/Icons/Error.es.js +0 -19
- package/dist/Icons/EyeVisibility.d.ts +0 -6
- package/dist/Icons/EyeVisibility.es.js +0 -21
- package/dist/Icons/EyeVisibilityOff.d.ts +0 -6
- package/dist/Icons/EyeVisibilityOff.es.js +0 -21
- package/dist/Icons/FaLock.d.ts +0 -6
- package/dist/Icons/FaLock.es.js +0 -19
- package/dist/Icons/FastForward.d.ts +0 -6
- package/dist/Icons/FastForward.es.js +0 -27
- package/dist/Icons/File.d.ts +0 -6
- package/dist/Icons/File.es.js +0 -25
- package/dist/Icons/Filter.d.ts +0 -6
- package/dist/Icons/Filter.es.js +0 -19
- package/dist/Icons/FormatColorText.d.ts +0 -6
- package/dist/Icons/FormatColorText.es.js +0 -26
- package/dist/Icons/Help.d.ts +0 -6
- package/dist/Icons/Help.es.js +0 -19
- package/dist/Icons/HistoryActivity.d.ts +0 -6
- package/dist/Icons/HistoryActivity.es.js +0 -21
- package/dist/Icons/Home.d.ts +0 -6
- package/dist/Icons/Home.es.js +0 -19
- package/dist/Icons/Image.d.ts +0 -6
- package/dist/Icons/Image.es.js +0 -25
- package/dist/Icons/Info.d.ts +0 -6
- package/dist/Icons/Info.es.js +0 -19
- package/dist/Icons/Logout.d.ts +0 -6
- package/dist/Icons/Logout.es.js +0 -19
- package/dist/Icons/MessageSquare.d.ts +0 -6
- package/dist/Icons/MessageSquare.es.js +0 -21
- package/dist/Icons/MessageSquareFill.d.ts +0 -6
- package/dist/Icons/MessageSquareFill.es.js +0 -27
- package/dist/Icons/MoreVert.d.ts +0 -6
- package/dist/Icons/MoreVert.es.js +0 -19
- package/dist/Icons/Notifications.d.ts +0 -6
- package/dist/Icons/Notifications.es.js +0 -21
- package/dist/Icons/Pause.d.ts +0 -6
- package/dist/Icons/Pause.es.js +0 -19
- package/dist/Icons/Reload.d.ts +0 -6
- package/dist/Icons/Reload.es.js +0 -25
- package/dist/Icons/Search.d.ts +0 -6
- package/dist/Icons/Search.es.js +0 -19
- package/dist/Icons/Settings.d.ts +0 -6
- package/dist/Icons/Settings.es.js +0 -19
- package/dist/Icons/Shared.d.ts +0 -6
- package/dist/Icons/Shared.es.js +0 -19
- package/dist/Icons/Sort.d.ts +0 -6
- package/dist/Icons/Sort.es.js +0 -19
- package/dist/Icons/Stars.d.ts +0 -6
- package/dist/Icons/Stars.es.js +0 -19
- package/dist/Icons/Ticket.d.ts +0 -6
- package/dist/Icons/Ticket.es.js +0 -19
- package/dist/Icons/TicketFilled.d.ts +0 -6
- package/dist/Icons/TicketFilled.es.js +0 -21
- package/dist/Icons/Trash.d.ts +0 -6
- package/dist/Icons/Trash.es.js +0 -19
- package/dist/Icons/TrashFill.d.ts +0 -6
- package/dist/Icons/TrashFill.es.js +0 -25
- package/dist/Icons/Upload.d.ts +0 -6
- package/dist/Icons/Upload.es.js +0 -19
- package/dist/Icons/UploadCloud.d.ts +0 -6
- package/dist/Icons/UploadCloud.es.js +0 -21
- package/dist/Icons/UserAdd.d.ts +0 -6
- package/dist/Icons/UserAdd.es.js +0 -19
- package/dist/Icons/UserAddFill.d.ts +0 -6
- package/dist/Icons/UserAddFill.es.js +0 -27
- package/dist/Icons/UserPerson.d.ts +0 -6
- package/dist/Icons/UserPerson.es.js +0 -19
- package/dist/Icons/WhatsApp.d.ts +0 -6
- package/dist/Icons/WhatsApp.es.js +0 -76
- package/dist/Icons/components/AccountCircle.d.ts +0 -4
- package/dist/Icons/components/Add.d.ts +0 -4
- package/dist/Icons/components/ArrowLeft.d.ts +0 -4
- package/dist/Icons/components/ArrowUpDown.d.ts +0 -4
- package/dist/Icons/components/AttachFile.d.ts +0 -4
- package/dist/Icons/components/Boards.d.ts +0 -4
- package/dist/Icons/components/Calendar.d.ts +0 -4
- package/dist/Icons/components/Cancel.d.ts +0 -4
- package/dist/Icons/components/Check.d.ts +0 -4
- package/dist/Icons/components/CheckCircle.d.ts +0 -4
- package/dist/Icons/components/CheckList.d.ts +0 -4
- package/dist/Icons/components/ChevronDown.d.ts +0 -4
- package/dist/Icons/components/Clock.d.ts +0 -4
- package/dist/Icons/components/Close.d.ts +0 -4
- package/dist/Icons/components/CloseNavBarDesktop.d.ts +0 -4
- package/dist/Icons/components/Collapse.d.ts +0 -4
- package/dist/Icons/components/Company.d.ts +0 -4
- package/dist/Icons/components/Copy.d.ts +0 -4
- package/dist/Icons/components/CrevronLeft.d.ts +0 -4
- package/dist/Icons/components/CrevronRight.d.ts +0 -4
- package/dist/Icons/components/DocumentFill.d.ts +0 -4
- package/dist/Icons/components/Download.d.ts +0 -4
- package/dist/Icons/components/Edit.d.ts +0 -4
- package/dist/Icons/components/EditFill.d.ts +0 -4
- package/dist/Icons/components/Email.d.ts +0 -4
- package/dist/Icons/components/Error.d.ts +0 -4
- package/dist/Icons/components/EyeVisibility.d.ts +0 -4
- package/dist/Icons/components/EyeVisibilityOff.d.ts +0 -4
- package/dist/Icons/components/FaLock.d.ts +0 -4
- package/dist/Icons/components/FastForward.d.ts +0 -4
- package/dist/Icons/components/File.d.ts +0 -4
- package/dist/Icons/components/Filter.d.ts +0 -4
- package/dist/Icons/components/FormatColorText.d.ts +0 -4
- package/dist/Icons/components/Help.d.ts +0 -4
- package/dist/Icons/components/HistoryActivity.d.ts +0 -4
- package/dist/Icons/components/Home.d.ts +0 -4
- package/dist/Icons/components/Image.d.ts +0 -4
- package/dist/Icons/components/Info.d.ts +0 -4
- package/dist/Icons/components/Logout.d.ts +0 -4
- package/dist/Icons/components/MessageSquare.d.ts +0 -4
- package/dist/Icons/components/MessageSquareFill.d.ts +0 -4
- package/dist/Icons/components/MoreVert.d.ts +0 -4
- package/dist/Icons/components/Notifications.d.ts +0 -4
- package/dist/Icons/components/Pause.d.ts +0 -4
- package/dist/Icons/components/Reload.d.ts +0 -4
- package/dist/Icons/components/Search.d.ts +0 -4
- package/dist/Icons/components/Settings.d.ts +0 -4
- package/dist/Icons/components/Shared.d.ts +0 -4
- package/dist/Icons/components/Sort.d.ts +0 -4
- package/dist/Icons/components/Stars.d.ts +0 -4
- package/dist/Icons/components/Ticket.d.ts +0 -4
- package/dist/Icons/components/TicketFilled.d.ts +0 -4
- package/dist/Icons/components/Trash.d.ts +0 -4
- package/dist/Icons/components/TrashFill.d.ts +0 -4
- package/dist/Icons/components/Upload.d.ts +0 -4
- package/dist/Icons/components/UploadCloud.d.ts +0 -4
- package/dist/Icons/components/UserAdd.d.ts +0 -4
- package/dist/Icons/components/UserAddFill.d.ts +0 -4
- package/dist/Icons/components/UserPerson.d.ts +0 -4
- package/dist/Icons/components/WhatsApp.d.ts +0 -4
- package/dist/Icons/iconUtils.d.ts +0 -7
- package/dist/Icons/index.d.ts +0 -62
- package/dist/Icons/types.d.ts +0 -124
- package/dist/Icons.d.ts +0 -2
- package/dist/Icons.es.js +0 -122
- package/dist/Image.d.ts +0 -4
- package/dist/Image.es.js +0 -91
- package/dist/ImageGallery-4DdXqwRy.js +0 -319
- package/dist/ImageGallery.d.ts +0 -6
- package/dist/ImageGallery.es.js +0 -23
- package/dist/Input-EkMrxcNX.js +0 -241
- package/dist/Input.d.ts +0 -6
- package/dist/Input.es.js +0 -4
- package/dist/InputMultiple.d.ts +0 -6
- package/dist/InputMultiple.es.js +0 -265
- package/dist/LayoutGeneric-CbaoatQB.js +0 -26
- package/dist/LayoutGeneric.d.ts +0 -6
- package/dist/LayoutGeneric.es.js +0 -4
- package/dist/Logo.d.ts +0 -4
- package/dist/Logo.es.js +0 -9
- package/dist/Menu.d.ts +0 -6
- package/dist/Menu.es.js +0 -77
- package/dist/OtpInput.d.ts +0 -6
- package/dist/OtpInput.es.js +0 -302
- package/dist/Pagination.d.ts +0 -6
- package/dist/Pagination.es.js +0 -97
- package/dist/ProfilePictureUpload.d.ts +0 -6
- package/dist/ProfilePictureUpload.es.js +0 -189
- package/dist/ProgressBar.d.ts +0 -6
- package/dist/ProgressBar.es.js +0 -70
- package/dist/RadioButton.d.ts +0 -6
- package/dist/RadioButton.es.js +0 -78
- package/dist/RecurrentDatePicker.d.ts +0 -2
- package/dist/RecurrentDatePicker.es.js +0 -694
- package/dist/RecurrentDatePickerRRule.d.ts +0 -2
- package/dist/RecurrentDatePickerRRule.es.js +0 -1684
- package/dist/SegmentedButton.d.ts +0 -6
- package/dist/SegmentedButton.es.js +0 -185
- package/dist/Select-Bq1fVlwM.js +0 -1110
- package/dist/Select.d.ts +0 -6
- package/dist/Select.es.js +0 -4
- package/dist/SelectSearch.d.ts +0 -6
- package/dist/SelectSearch.es.js +0 -283
- package/dist/Skeleton.d.ts +0 -6
- package/dist/Skeleton.es.js +0 -74
- package/dist/Spinner.d.ts +0 -6
- package/dist/Spinner.es.js +0 -178
- package/dist/Steps.d.ts +0 -6
- package/dist/Steps.es.js +0 -214
- package/dist/SwipeContainer.d.ts +0 -4
- package/dist/SwipeContainer.es.js +0 -185
- package/dist/Switch.d.ts +0 -6
- package/dist/Switch.es.js +0 -97
- package/dist/TabLinks.d.ts +0 -4
- package/dist/TabLinks.es.js +0 -94
- package/dist/Table.d.ts +0 -2
- package/dist/Table.es.js +0 -121
- package/dist/TextArea.d.ts +0 -4
- package/dist/TextArea.es.js +0 -66
- package/dist/Toast.d.ts +0 -6
- package/dist/Toast.es.js +0 -150
- package/dist/ToastProvider.d.ts +0 -6
- package/dist/ToastProvider.es.js +0 -6
- package/dist/Tooltip.d.ts +0 -6
- package/dist/Tooltip.es.js +0 -62
- package/dist/assets/psmlogo.png +0 -0
- package/dist/cn-B6yFEsav.js +0 -8
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
- package/dist/components/Autocomplete/useAutocomplete.d.ts +0 -43
- package/dist/components/Avatar/Avatar.d.ts +0 -11
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +0 -23
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -12
- package/dist/components/CardProfile/CardProfile.d.ts +0 -55
- package/dist/components/CheckBox/CheckBox.d.ts +0 -11
- package/dist/components/DatePicker/DatePicker.d.ts +0 -82
- package/dist/components/Dialog/Dialog.d.ts +0 -35
- package/dist/components/Dialog/DialogV2.d.ts +0 -35
- package/dist/components/Dialog/useDialogControl.d.ts +0 -8
- package/dist/components/Drawer/DrawerDesktop.d.ts +0 -20
- package/dist/components/Drawer/DrawerMobile.d.ts +0 -24
- package/dist/components/Drawer/useDrawerDesktop.d.ts +0 -8
- package/dist/components/Drawer/useDrawerMobile.d.ts +0 -8
- package/dist/components/DropZone/DropZone.d.ts +0 -16
- package/dist/components/DropZone/DropzoneCompossable.d.ts +0 -54
- package/dist/components/DropZone/useFileDropzone.d.ts +0 -21
- package/dist/components/FAB/FAButton.d.ts +0 -21
- package/dist/components/FileCard/FileCard.d.ts +0 -52
- package/dist/components/Header/Header.d.ts +0 -11
- package/dist/components/Image/GalleryPreview.d.ts +0 -8
- package/dist/components/Image/Image.d.ts +0 -23
- package/dist/components/Image/ImageGallery.d.ts +0 -18
- package/dist/components/Image/LightBox.d.ts +0 -14
- package/dist/components/Image/index.d.ts +0 -5
- package/dist/components/Image/useImageGallery.d.ts +0 -10
- package/dist/components/Input/Input.d.ts +0 -34
- package/dist/components/InputMultiple/InputMultiple.d.ts +0 -25
- package/dist/components/Layout/LayoutGeneric.d.ts +0 -6
- package/dist/components/Logo/Logo.d.ts +0 -2
- package/dist/components/Menu/MenuComposable.d.ts +0 -15
- package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +0 -10
- package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +0 -33
- package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +0 -14
- package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +0 -9
- package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +0 -17
- package/dist/components/NavigationDrawer/NavigationDrawerLinkItem.d.ts +0 -29
- package/dist/components/NavigationDrawer/NavigationDrawerNavlinks.d.ts +0 -11
- package/dist/components/NavigationDrawer/index.d.ts +0 -2
- package/dist/components/OtpInput/OtpInput.d.ts +0 -30
- package/dist/components/Pagination/Pagination.d.ts +0 -6
- package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +0 -19
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -18
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +0 -51
- package/dist/components/RadioButton/RadioButton.d.ts +0 -14
- package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +0 -40
- package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +0 -13
- package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +0 -35
- package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +0 -5
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +0 -39
- package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +0 -13
- package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +0 -13
- package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +0 -9
- package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +0 -21
- package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +0 -69
- package/dist/components/Scrollable/Scrollable.d.ts +0 -25
- package/dist/components/SegmentedButton/SegmentedButton.d.ts +0 -20
- package/dist/components/Select/Select.d.ts +0 -123
- package/dist/components/SelectSearch/SelectSearch.d.ts +0 -40
- package/dist/components/Shared/Chip.d.ts +0 -15
- package/dist/components/Shared/HelperComponent.d.ts +0 -13
- package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +0 -32
- package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +0 -2
- package/dist/components/Sidebar/SecondaryBar/index.d.ts +0 -1
- package/dist/components/Sidebar/SidebarComposable.d.ts +0 -43
- package/dist/components/Sidebar/components/NavigationLink.d.ts +0 -11
- package/dist/components/Sidebar/components/badge.d.ts +0 -9
- package/dist/components/Sidebar/components/changue-account.d.ts +0 -5
- package/dist/components/Sidebar/components/collapse-button.d.ts +0 -5
- package/dist/components/Sidebar/components/company-logo.d.ts +0 -5
- package/dist/components/Sidebar/components/nav-actions.d.ts +0 -7
- package/dist/components/Sidebar/components/nav-links.d.ts +0 -7
- package/dist/components/Sidebar/context/SidebarContext.d.ts +0 -13
- package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +0 -3
- package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +0 -9
- package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +0 -4
- package/dist/components/Sidebar/hooks/useNavLinks.d.ts +0 -32
- package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +0 -13
- package/dist/components/Sidebar/index.d.ts +0 -12
- package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +0 -2
- package/dist/components/Skeleton/Skeleton.d.ts +0 -13
- package/dist/components/Spinner/Spinner.d.ts +0 -12
- package/dist/components/Steps/Steps.d.ts +0 -21
- package/dist/components/SwipeContainer/SwipeContainer.d.ts +0 -19
- package/dist/components/Switch/Switch.d.ts +0 -11
- package/dist/components/TabLinks/TabLinks.d.ts +0 -23
- package/dist/components/TabSwitch/TabSwitch.d.ts +0 -16
- package/dist/components/Table/Table.d.ts +0 -14
- package/dist/components/Table/TableWithPagination.d.ts +0 -11
- package/dist/components/TextArea/TextArea.d.ts +0 -15
- package/dist/components/Toaster/ToastProvider.d.ts +0 -5
- package/dist/components/Toaster/Toaster.d.ts +0 -36
- package/dist/components/Tooltip/Tootip.d.ts +0 -10
- package/dist/exports/Autocomplete.d.ts +0 -1
- package/dist/exports/Avatar.d.ts +0 -1
- package/dist/exports/Button.d.ts +0 -2
- package/dist/exports/CardProfile.d.ts +0 -3
- package/dist/exports/CheckBox.d.ts +0 -2
- package/dist/exports/DatePicker.d.ts +0 -3
- package/dist/exports/DialogModal.d.ts +0 -2
- package/dist/exports/DrawerDesktop.d.ts +0 -4
- package/dist/exports/DrawerMobile.d.ts +0 -4
- package/dist/exports/DropZone.d.ts +0 -3
- package/dist/exports/FAButton.d.ts +0 -1
- package/dist/exports/Header.d.ts +0 -2
- package/dist/exports/Icons.d.ts +0 -1
- package/dist/exports/Image.d.ts +0 -1
- package/dist/exports/ImageGallery.d.ts +0 -2
- package/dist/exports/Input.d.ts +0 -2
- package/dist/exports/InputMultiple.d.ts +0 -3
- package/dist/exports/LayoutGeneric.d.ts +0 -2
- package/dist/exports/Logo.d.ts +0 -1
- package/dist/exports/Menu.d.ts +0 -3
- package/dist/exports/OtpInput.d.ts +0 -2
- package/dist/exports/Pagination.d.ts +0 -2
- package/dist/exports/ProfilePictureUpload.d.ts +0 -3
- package/dist/exports/ProgressBar.d.ts +0 -2
- package/dist/exports/RadioButton.d.ts +0 -3
- package/dist/exports/RecurrentDatePicker.d.ts +0 -5
- package/dist/exports/RecurrentDatePickerRRule.d.ts +0 -2
- package/dist/exports/SegmentedButton.d.ts +0 -3
- package/dist/exports/Select.d.ts +0 -5
- package/dist/exports/SelectSearch.d.ts +0 -3
- package/dist/exports/Skeleton.d.ts +0 -3
- package/dist/exports/Spinner.d.ts +0 -3
- package/dist/exports/Steps.d.ts +0 -3
- package/dist/exports/SwipeContainer.d.ts +0 -1
- package/dist/exports/Switch.d.ts +0 -3
- package/dist/exports/TabLinks.d.ts +0 -1
- package/dist/exports/Table.d.ts +0 -1
- package/dist/exports/TextArea.d.ts +0 -1
- package/dist/exports/Toast.d.ts +0 -3
- package/dist/exports/ToastProvider.d.ts +0 -2
- package/dist/exports/Tooltip.d.ts +0 -2
- package/dist/exports/useDevice.d.ts +0 -1
- package/dist/hooks/useClickOutside.d.ts +0 -8
- package/dist/hooks/useDevice.d.ts +0 -1
- package/dist/hooks/useDragScroll.d.ts +0 -29
- package/dist/hooks/useLabelBackground.d.ts +0 -5
- package/dist/iconUtils-D0lVAgGT.js +0 -5
- package/dist/index-BOQuZ0gG.js +0 -34
- package/dist/index.d.ts +0 -104
- package/dist/jsx-runtime-DKDX3adD.js +0 -281
- package/dist/lib/cn.d.ts +0 -2
- package/dist/lib/utils.d.ts +0 -3
- package/dist/prometeo-design-system.es.js +0 -993
- package/dist/styles.css +0 -1
- package/dist/styles.d.ts +0 -1
- package/dist/useDevice.d.ts +0 -2
- package/dist/useDevice.es.js +0 -13
- package/dist/useDragScroll-CHN9OMwn.js +0 -165
- package/dist/vite.svg +0 -1
|
@@ -1,694 +0,0 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import O, { useMemo as D, memo as b, useRef as M, useCallback as g, useState as L, useEffect as W } from "react";
|
|
3
|
-
import { D as I } from "./DatePicker-D1EwMGIN.js";
|
|
4
|
-
import { S as f } from "./Select-Bq1fVlwM.js";
|
|
5
|
-
import { I as R } from "./Input-EkMrxcNX.js";
|
|
6
|
-
import _ from "./CheckBox.es.js";
|
|
7
|
-
import { c as p } from "./cn-B6yFEsav.js";
|
|
8
|
-
import { H as A } from "./HelperComponent-DhGU_ug-.js";
|
|
9
|
-
import w from "./RadioButton.es.js";
|
|
10
|
-
const B = [
|
|
11
|
-
{
|
|
12
|
-
value: "monday",
|
|
13
|
-
label: "Lunes",
|
|
14
|
-
short: "L"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
value: "tuesday",
|
|
18
|
-
label: "Martes",
|
|
19
|
-
short: "M"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
value: "wednesday",
|
|
23
|
-
label: "Miércoles",
|
|
24
|
-
short: "M"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
value: "thursday",
|
|
28
|
-
label: "Jueves",
|
|
29
|
-
short: "J"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
value: "friday",
|
|
33
|
-
label: "Viernes",
|
|
34
|
-
short: "V"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
value: "saturday",
|
|
38
|
-
label: "Sábado",
|
|
39
|
-
short: "S"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
value: "sunday",
|
|
43
|
-
label: "Domingo",
|
|
44
|
-
short: "D"
|
|
45
|
-
}
|
|
46
|
-
], E = (e) => {
|
|
47
|
-
const {
|
|
48
|
-
options: a = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"],
|
|
49
|
-
labelVariant: s = "short",
|
|
50
|
-
value: u = [],
|
|
51
|
-
onChange: c,
|
|
52
|
-
label: d,
|
|
53
|
-
required: m = !1,
|
|
54
|
-
error: h
|
|
55
|
-
} = e, o = D(
|
|
56
|
-
() => B.filter((n) => a.includes(n.value)),
|
|
57
|
-
[a]
|
|
58
|
-
), i = (n) => {
|
|
59
|
-
const t = n.target.value;
|
|
60
|
-
if (!t) return u;
|
|
61
|
-
const l = n.target.checked ? [...u, t] : u.filter((y) => y !== t);
|
|
62
|
-
c(l);
|
|
63
|
-
};
|
|
64
|
-
return /* @__PURE__ */ r.jsxs(
|
|
65
|
-
"div",
|
|
66
|
-
{
|
|
67
|
-
className: p(
|
|
68
|
-
"flex flex-col gap-1 relative"
|
|
69
|
-
),
|
|
70
|
-
children: [
|
|
71
|
-
d && /* @__PURE__ */ r.jsxs(
|
|
72
|
-
"p",
|
|
73
|
-
{
|
|
74
|
-
className: p(
|
|
75
|
-
"ml-3",
|
|
76
|
-
"prometeo-fonts-label-large text-neutral-medium-default"
|
|
77
|
-
),
|
|
78
|
-
children: [
|
|
79
|
-
d,
|
|
80
|
-
m && /* @__PURE__ */ r.jsx("span", { children: " *" })
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
),
|
|
84
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex gap-2 justify-between w-full", children: o?.map((n) => /* @__PURE__ */ r.jsxs(
|
|
85
|
-
"div",
|
|
86
|
-
{
|
|
87
|
-
className: p(
|
|
88
|
-
"flex flex-col items-center justify-center gap-1",
|
|
89
|
-
"h-18 w-12"
|
|
90
|
-
),
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ r.jsx(
|
|
93
|
-
_,
|
|
94
|
-
{
|
|
95
|
-
value: n.value,
|
|
96
|
-
onChange: i,
|
|
97
|
-
checked: u.includes(n.value)
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
/* @__PURE__ */ r.jsx(
|
|
101
|
-
"p",
|
|
102
|
-
{
|
|
103
|
-
className: p(
|
|
104
|
-
"z-20",
|
|
105
|
-
s === "large" && "text-[11px]"
|
|
106
|
-
),
|
|
107
|
-
children: s === "short" ? n.short : n.label
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
n.value
|
|
113
|
-
)) }),
|
|
114
|
-
h && /* @__PURE__ */ r.jsx(A, { variant: "error", children: h })
|
|
115
|
-
]
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
}, x = O.memo(E, (e, a) => e.value === a.value);
|
|
119
|
-
x.displayName = "WeekdaysSelector";
|
|
120
|
-
const P = ({ value: e, onChange: a, errors: s }) => {
|
|
121
|
-
const u = [
|
|
122
|
-
{
|
|
123
|
-
singularLabel: "Semana",
|
|
124
|
-
pluralLabel: "Semanas",
|
|
125
|
-
value: "weekly",
|
|
126
|
-
maxInterval: 52
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
singularLabel: "Mes",
|
|
130
|
-
pluralLabel: "Meses",
|
|
131
|
-
value: "monthly",
|
|
132
|
-
maxInterval: 12
|
|
133
|
-
}
|
|
134
|
-
], c = D(
|
|
135
|
-
() => u.find((n) => n.value === e?.frequency)?.maxInterval,
|
|
136
|
-
[e?.frequency]
|
|
137
|
-
), d = (n) => {
|
|
138
|
-
if (n === "") {
|
|
139
|
-
a({
|
|
140
|
-
kind: "setInterval",
|
|
141
|
-
interval: 1
|
|
142
|
-
});
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
const t = Number(n);
|
|
146
|
-
if (console.log("parsedValue", t), Number.isNaN(t))
|
|
147
|
-
return;
|
|
148
|
-
let l = t;
|
|
149
|
-
if (c && t > c && e?.interval === c) {
|
|
150
|
-
const k = n[n.length - 1], S = Number(k);
|
|
151
|
-
Number.isNaN(S) || (l = S);
|
|
152
|
-
}
|
|
153
|
-
let y = l;
|
|
154
|
-
c ? y < 1 ? y = 1 : y > c && (y = c) : y < 1 && (y = 1), a({
|
|
155
|
-
kind: "setInterval",
|
|
156
|
-
interval: y
|
|
157
|
-
});
|
|
158
|
-
}, m = (n) => {
|
|
159
|
-
if (!n)
|
|
160
|
-
return;
|
|
161
|
-
const t = {
|
|
162
|
-
kind: "setFrequency",
|
|
163
|
-
frequency: n.value
|
|
164
|
-
};
|
|
165
|
-
a(t);
|
|
166
|
-
}, h = (n) => {
|
|
167
|
-
a({
|
|
168
|
-
kind: "setWeekdays",
|
|
169
|
-
weekdays: n
|
|
170
|
-
});
|
|
171
|
-
}, o = (n) => {
|
|
172
|
-
if (!n)
|
|
173
|
-
return;
|
|
174
|
-
const t = {
|
|
175
|
-
kind: "setDayOfMonth",
|
|
176
|
-
dayOfMonth: n.value
|
|
177
|
-
};
|
|
178
|
-
a(t);
|
|
179
|
-
}, i = Array.from(
|
|
180
|
-
{ length: 28 },
|
|
181
|
-
(n, t) => t + 1
|
|
182
|
-
).map((n) => ({ value: n.toString(), label: n.toString() })).concat([{ value: "last", label: "último" }]);
|
|
183
|
-
return /* @__PURE__ */ r.jsxs("div", { children: [
|
|
184
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-2 w-full mb-5", children: [
|
|
185
|
-
/* @__PURE__ */ r.jsx(
|
|
186
|
-
R,
|
|
187
|
-
{
|
|
188
|
-
type: "number",
|
|
189
|
-
min: 1,
|
|
190
|
-
max: c,
|
|
191
|
-
label: "Cada",
|
|
192
|
-
onChange: (n) => d(n.target.value),
|
|
193
|
-
value: e?.interval?.toString(),
|
|
194
|
-
name: "interval",
|
|
195
|
-
labelVariant: "static",
|
|
196
|
-
className: "w-1/2",
|
|
197
|
-
variant: s?.interval ? "error" : "default",
|
|
198
|
-
errorComponent: s?.interval
|
|
199
|
-
}
|
|
200
|
-
),
|
|
201
|
-
/* @__PURE__ */ r.jsx("div", { className: "pt-2 w-1/2", children: /* @__PURE__ */ r.jsx(
|
|
202
|
-
f,
|
|
203
|
-
{
|
|
204
|
-
label: "",
|
|
205
|
-
labelVariant: "static",
|
|
206
|
-
options: u,
|
|
207
|
-
optionLabel: (n) => Number(e?.interval) > 1 ? n.pluralLabel : n.singularLabel,
|
|
208
|
-
optionValue: "value",
|
|
209
|
-
value: e?.frequency,
|
|
210
|
-
onChange: m,
|
|
211
|
-
name: "frequency",
|
|
212
|
-
dropdownOptions: {
|
|
213
|
-
hideSearchBar: !0
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
) })
|
|
217
|
-
] }),
|
|
218
|
-
/* @__PURE__ */ r.jsxs("div", { children: [
|
|
219
|
-
e?.frequency === "weekly" && /* @__PURE__ */ r.jsx(
|
|
220
|
-
x,
|
|
221
|
-
{
|
|
222
|
-
label: "Los días",
|
|
223
|
-
value: e?.weekdays,
|
|
224
|
-
onChange: h,
|
|
225
|
-
required: !0,
|
|
226
|
-
error: s?.weekdays
|
|
227
|
-
}
|
|
228
|
-
),
|
|
229
|
-
e?.frequency === "monthly" && /* @__PURE__ */ r.jsx(
|
|
230
|
-
f,
|
|
231
|
-
{
|
|
232
|
-
options: i,
|
|
233
|
-
optionLabel: "label",
|
|
234
|
-
optionValue: "value",
|
|
235
|
-
label: "El día",
|
|
236
|
-
value: e?.dayOfMonth?.toString(),
|
|
237
|
-
onChange: o,
|
|
238
|
-
name: "dayOfMonth",
|
|
239
|
-
variant: s?.dayOfMonth ? "error" : "default",
|
|
240
|
-
errorComponent: s?.dayOfMonth,
|
|
241
|
-
dropdownOptions: { hideSearchBar: !0 }
|
|
242
|
-
}
|
|
243
|
-
)
|
|
244
|
-
] })
|
|
245
|
-
] });
|
|
246
|
-
}, C = O.memo(
|
|
247
|
-
P,
|
|
248
|
-
(e, a) => e.value === a.value
|
|
249
|
-
);
|
|
250
|
-
C.displayName = "CustomFrequencySettings";
|
|
251
|
-
const T = [
|
|
252
|
-
{
|
|
253
|
-
value: "first",
|
|
254
|
-
label: "Primer"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
value: "second",
|
|
258
|
-
label: "Segundo"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
value: "third",
|
|
262
|
-
label: "Tercer"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
value: "fourth",
|
|
266
|
-
label: "Cuarto"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
value: "last",
|
|
270
|
-
label: "Último"
|
|
271
|
-
}
|
|
272
|
-
], z = [
|
|
273
|
-
{ value: "monday", label: "Lunes" },
|
|
274
|
-
{ value: "tuesday", label: "Martes" },
|
|
275
|
-
{ value: "wednesday", label: "Miércoles" },
|
|
276
|
-
{ value: "thursday", label: "Jueves" },
|
|
277
|
-
{ value: "friday", label: "Viernes" },
|
|
278
|
-
{ value: "saturday", label: "Sábado" },
|
|
279
|
-
{ value: "sunday", label: "Domingo" }
|
|
280
|
-
], J = ({ value: e, onChange: a, errors: s }) => {
|
|
281
|
-
const u = M(e);
|
|
282
|
-
u.current = e;
|
|
283
|
-
const c = g((i) => {
|
|
284
|
-
const n = i.target.value;
|
|
285
|
-
a({ kind: "setType", newType: n });
|
|
286
|
-
}, [a]), d = g((i) => {
|
|
287
|
-
!i || !u.current || u.current.type !== "relative" || a({ kind: "setRelativeDayOrder", newDayOrder: i.value });
|
|
288
|
-
}, [a, e]), m = g((i) => {
|
|
289
|
-
!i || !u.current || u.current.type !== "relative" || a({ kind: "setRelativeWeekDay", newWeekDay: i.value });
|
|
290
|
-
}, [a, e]), h = g((i) => {
|
|
291
|
-
!i || !u.current || u.current.type !== "absolute" || a({ kind: "setAbsoluteDayOfMonth", newDayOfMonth: i.value });
|
|
292
|
-
}, [a, e]), o = Array.from({ length: 28 }, (i, n) => n + 1).map((i) => ({ value: String(i), label: i.toString() })).concat([
|
|
293
|
-
{ value: "last", label: "Último" }
|
|
294
|
-
]);
|
|
295
|
-
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-6 items-start", children: [
|
|
296
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex gap-2 items-start relative w-full", children: [
|
|
297
|
-
/* @__PURE__ */ r.jsx(
|
|
298
|
-
w,
|
|
299
|
-
{
|
|
300
|
-
name: "monthly-type",
|
|
301
|
-
value: "relative",
|
|
302
|
-
className: "mt-7",
|
|
303
|
-
onChange: c,
|
|
304
|
-
checked: e?.type === "relative"
|
|
305
|
-
}
|
|
306
|
-
),
|
|
307
|
-
/* @__PURE__ */ r.jsx(
|
|
308
|
-
f,
|
|
309
|
-
{
|
|
310
|
-
label: "El",
|
|
311
|
-
options: T,
|
|
312
|
-
optionLabel: "label",
|
|
313
|
-
optionValue: "value",
|
|
314
|
-
value: e?.type === "relative" ? e.dayOrder : void 0,
|
|
315
|
-
onChange: d,
|
|
316
|
-
labelVariant: "static",
|
|
317
|
-
disabled: e?.type !== "relative",
|
|
318
|
-
variant: s?.dayOrder ? "error" : "default",
|
|
319
|
-
errorComponent: s?.dayOrder,
|
|
320
|
-
dropdownOptions: {
|
|
321
|
-
hideSearchBar: !0
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
),
|
|
325
|
-
/* @__PURE__ */ r.jsx(
|
|
326
|
-
f,
|
|
327
|
-
{
|
|
328
|
-
label: " ",
|
|
329
|
-
labelVariant: "static",
|
|
330
|
-
options: z,
|
|
331
|
-
optionLabel: "label",
|
|
332
|
-
optionValue: "value",
|
|
333
|
-
value: e?.type === "relative" ? e.weekDay : void 0,
|
|
334
|
-
disabled: e?.type !== "relative",
|
|
335
|
-
dropdownOptions: {
|
|
336
|
-
hideSearchBar: !0
|
|
337
|
-
},
|
|
338
|
-
onChange: m,
|
|
339
|
-
variant: s?.weekDay ? "error" : "default",
|
|
340
|
-
errorComponent: s?.weekDay,
|
|
341
|
-
className: "pt-6"
|
|
342
|
-
}
|
|
343
|
-
)
|
|
344
|
-
] }),
|
|
345
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex items-start w-full gap-2", children: [
|
|
346
|
-
/* @__PURE__ */ r.jsx(
|
|
347
|
-
w,
|
|
348
|
-
{
|
|
349
|
-
name: "monthly-type",
|
|
350
|
-
className: "mt-7",
|
|
351
|
-
value: "absolute",
|
|
352
|
-
onChange: c,
|
|
353
|
-
checked: e?.type === "absolute"
|
|
354
|
-
}
|
|
355
|
-
),
|
|
356
|
-
/* @__PURE__ */ r.jsx(
|
|
357
|
-
f,
|
|
358
|
-
{
|
|
359
|
-
label: "El día",
|
|
360
|
-
options: o,
|
|
361
|
-
optionLabel: "label",
|
|
362
|
-
optionValue: "value",
|
|
363
|
-
value: e?.type === "absolute" ? String(e.dayOfMonth) : void 0,
|
|
364
|
-
onChange: h,
|
|
365
|
-
labelVariant: "static",
|
|
366
|
-
disabled: e?.type !== "absolute",
|
|
367
|
-
variant: s?.dayOfMonth ? "error" : "default",
|
|
368
|
-
errorComponent: s?.dayOfMonth,
|
|
369
|
-
dropdownOptions: {
|
|
370
|
-
hideSearchBar: !0
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
)
|
|
374
|
-
] })
|
|
375
|
-
] });
|
|
376
|
-
}, j = b(J);
|
|
377
|
-
j.displayName = "MonthlyFrequencySettings";
|
|
378
|
-
const Y = ({ value: e, onChange: a, error: s }) => /* @__PURE__ */ r.jsx(
|
|
379
|
-
x,
|
|
380
|
-
{
|
|
381
|
-
label: "Los días",
|
|
382
|
-
value: e,
|
|
383
|
-
onChange: a,
|
|
384
|
-
required: !0,
|
|
385
|
-
error: s
|
|
386
|
-
}
|
|
387
|
-
), N = b(Y);
|
|
388
|
-
N.displayName = "WeeklyFrequencySettings";
|
|
389
|
-
const H = [
|
|
390
|
-
{ value: 1, label: "Enero" },
|
|
391
|
-
{ value: 2, label: "Febrero" },
|
|
392
|
-
{ value: 3, label: "Marzo" },
|
|
393
|
-
{ value: 4, label: "Abril" },
|
|
394
|
-
{ value: 5, label: "Mayo" },
|
|
395
|
-
{ value: 6, label: "Junio" },
|
|
396
|
-
{ value: 7, label: "Julio" },
|
|
397
|
-
{ value: 8, label: "Agosto" },
|
|
398
|
-
{ value: 9, label: "Septiembre" },
|
|
399
|
-
{ value: 10, label: "Octubre" },
|
|
400
|
-
{ value: 11, label: "Noviembre" },
|
|
401
|
-
{ value: 12, label: "Diciembre" }
|
|
402
|
-
], $ = ({ value: e, onChange: a, errors: s }) => {
|
|
403
|
-
const u = (o) => {
|
|
404
|
-
o && a({ kind: "setDay", newDay: o.value });
|
|
405
|
-
}, c = (o) => {
|
|
406
|
-
o && (e?.day && !d(o.value) ? a({ kind: "setMonth", newMonth: o.value, newDay: void 0 }) : a({ kind: "setMonth", newMonth: o.value }));
|
|
407
|
-
}, d = (o) => o ? m[e?.month]?.includes(o) : !1, m = {
|
|
408
|
-
2: [29, 30, 31],
|
|
409
|
-
4: [31],
|
|
410
|
-
6: [31],
|
|
411
|
-
9: [31],
|
|
412
|
-
11: [31]
|
|
413
|
-
}, h = [...Array.from({ length: 31 }, (o, i) => i + 1).filter((o) => !m[e?.month]?.includes(o))];
|
|
414
|
-
return /* @__PURE__ */ r.jsxs(
|
|
415
|
-
"div",
|
|
416
|
-
{
|
|
417
|
-
className: "flex items-start gap-2",
|
|
418
|
-
children: [
|
|
419
|
-
/* @__PURE__ */ r.jsx(
|
|
420
|
-
f,
|
|
421
|
-
{
|
|
422
|
-
name: "day",
|
|
423
|
-
label: "Día",
|
|
424
|
-
options: h,
|
|
425
|
-
optionLabel: (o) => o.toString(),
|
|
426
|
-
optionValue: (o) => o.toString(),
|
|
427
|
-
value: e?.day,
|
|
428
|
-
onChange: u,
|
|
429
|
-
labelVariant: "static",
|
|
430
|
-
variant: s?.day ? "error" : "default",
|
|
431
|
-
errorComponent: s?.day,
|
|
432
|
-
dropdownOptions: {
|
|
433
|
-
hideSearchBar: !0
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
),
|
|
437
|
-
/* @__PURE__ */ r.jsx(
|
|
438
|
-
f,
|
|
439
|
-
{
|
|
440
|
-
name: "month",
|
|
441
|
-
label: "Mes",
|
|
442
|
-
options: H,
|
|
443
|
-
optionLabel: "label",
|
|
444
|
-
optionValue: "value",
|
|
445
|
-
value: e?.month,
|
|
446
|
-
onChange: c,
|
|
447
|
-
labelVariant: "static",
|
|
448
|
-
variant: s?.month ? "error" : "default",
|
|
449
|
-
errorComponent: s?.month,
|
|
450
|
-
dropdownOptions: {
|
|
451
|
-
hideSearchBar: !0
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
)
|
|
455
|
-
]
|
|
456
|
-
}
|
|
457
|
-
);
|
|
458
|
-
}, V = b($);
|
|
459
|
-
V.displayName = "YearlyFrequencySettings";
|
|
460
|
-
const G = {
|
|
461
|
-
weekly: "El ticket se generará los días que seleccione todas las semanas",
|
|
462
|
-
monthly: "El ticket se generará todos los meses en la frecuencia que seleccione",
|
|
463
|
-
yearly: "El ticket se generará una vez por año en el día y mes que seleccione",
|
|
464
|
-
custom: "El ticket se generará de acuerdo al intervalo y unidad de tiempo que seleccione"
|
|
465
|
-
}, K = (e) => {
|
|
466
|
-
const { frequency: a } = e, s = {
|
|
467
|
-
type: "relative",
|
|
468
|
-
dayOrder: "first",
|
|
469
|
-
weekDay: "monday"
|
|
470
|
-
}, u = {
|
|
471
|
-
type: "absolute",
|
|
472
|
-
dayOfMonth: "1"
|
|
473
|
-
}, c = (t, l) => {
|
|
474
|
-
const y = t.type === "relative" ? t : s, v = t.type === "absolute" ? t : u;
|
|
475
|
-
switch (l.kind) {
|
|
476
|
-
case "setType":
|
|
477
|
-
return l.newType === "relative" ? y : v;
|
|
478
|
-
case "setRelativeDayOrder":
|
|
479
|
-
return { ...y, dayOrder: l.newDayOrder };
|
|
480
|
-
case "setRelativeWeekDay":
|
|
481
|
-
return { ...y, weekDay: l.newWeekDay };
|
|
482
|
-
case "setAbsoluteDayOfMonth":
|
|
483
|
-
return { ...v, dayOfMonth: l.newDayOfMonth };
|
|
484
|
-
}
|
|
485
|
-
}, d = (t) => {
|
|
486
|
-
e.onChange((l) => c(l, t));
|
|
487
|
-
}, m = (t, l) => {
|
|
488
|
-
switch (l.kind) {
|
|
489
|
-
case "setMonth":
|
|
490
|
-
return l.newMonth ? { ...t, month: l.newMonth, day: l?.newDay || t?.day } : t;
|
|
491
|
-
case "setDay":
|
|
492
|
-
return l.newDay ? { ...t, day: l.newDay } : t;
|
|
493
|
-
}
|
|
494
|
-
}, h = (t) => {
|
|
495
|
-
e.onChange((l) => m(l, t));
|
|
496
|
-
}, o = (t) => {
|
|
497
|
-
e.onChange(t);
|
|
498
|
-
}, i = (t, l) => {
|
|
499
|
-
switch (l.kind) {
|
|
500
|
-
case "setInterval":
|
|
501
|
-
return { ...t, interval: l.interval };
|
|
502
|
-
case "setFrequency":
|
|
503
|
-
return { ...t, frequency: l.frequency, interval: 1 };
|
|
504
|
-
case "setWeekdays":
|
|
505
|
-
return { ...t, weekdays: l.weekdays };
|
|
506
|
-
case "setDayOfMonth":
|
|
507
|
-
return { ...t, dayOfMonth: l.dayOfMonth };
|
|
508
|
-
}
|
|
509
|
-
}, n = (t) => {
|
|
510
|
-
e.onChange((l) => i(l, t));
|
|
511
|
-
};
|
|
512
|
-
return /* @__PURE__ */ r.jsxs("div", { children: [
|
|
513
|
-
/* @__PURE__ */ r.jsx("p", { className: " prometeo-fonts-body-large mb-6", children: G[a] }),
|
|
514
|
-
a === "weekly" && /* @__PURE__ */ r.jsx(
|
|
515
|
-
N,
|
|
516
|
-
{
|
|
517
|
-
value: e.frequencySettings,
|
|
518
|
-
onChange: o,
|
|
519
|
-
error: e.errors?.weeklyWeekdays
|
|
520
|
-
}
|
|
521
|
-
),
|
|
522
|
-
a === "monthly" && /* @__PURE__ */ r.jsx(
|
|
523
|
-
j,
|
|
524
|
-
{
|
|
525
|
-
onChange: d,
|
|
526
|
-
value: e.frequencySettings,
|
|
527
|
-
errors: {
|
|
528
|
-
dayOrder: e.errors?.monthlyDayOrder,
|
|
529
|
-
weekDay: e.errors?.monthlyWeekDay,
|
|
530
|
-
dayOfMonth: e.errors?.monthlyDayOfMonth
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
),
|
|
534
|
-
a === "yearly" && /* @__PURE__ */ r.jsx(
|
|
535
|
-
V,
|
|
536
|
-
{
|
|
537
|
-
onChange: h,
|
|
538
|
-
value: e.frequencySettings,
|
|
539
|
-
errors: {
|
|
540
|
-
month: e.errors?.yearlyMonth,
|
|
541
|
-
day: e.errors?.yearlyDay
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
),
|
|
545
|
-
a === "custom" && /* @__PURE__ */ r.jsx(
|
|
546
|
-
C,
|
|
547
|
-
{
|
|
548
|
-
onChange: n,
|
|
549
|
-
value: e.frequencySettings,
|
|
550
|
-
errors: {
|
|
551
|
-
interval: e.errors?.customInterval,
|
|
552
|
-
weekdays: e.errors?.customWeekdays,
|
|
553
|
-
dayOfMonth: e.errors?.customDayOfMonth
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
)
|
|
557
|
-
] });
|
|
558
|
-
}, F = b(
|
|
559
|
-
K,
|
|
560
|
-
(e, a) => e.frequency === a.frequency && e.frequencySettings === a.frequencySettings && e.onChange === a.onChange && e.errors === a.errors
|
|
561
|
-
);
|
|
562
|
-
F.displayName = "FrequencySettings";
|
|
563
|
-
const Q = [
|
|
564
|
-
{
|
|
565
|
-
label: "Semanalmente",
|
|
566
|
-
value: "weekly"
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
label: "Mensualmente",
|
|
570
|
-
value: "monthly"
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
label: "Anualmente",
|
|
574
|
-
value: "yearly"
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
label: "Personalizado",
|
|
578
|
-
value: "custom"
|
|
579
|
-
}
|
|
580
|
-
], q = {
|
|
581
|
-
weekly: [],
|
|
582
|
-
monthly: {
|
|
583
|
-
type: "relative",
|
|
584
|
-
dayOrder: "first",
|
|
585
|
-
weekDay: "monday"
|
|
586
|
-
},
|
|
587
|
-
yearly: {
|
|
588
|
-
month: 1,
|
|
589
|
-
day: void 0
|
|
590
|
-
},
|
|
591
|
-
custom: {
|
|
592
|
-
interval: 1,
|
|
593
|
-
frequency: "weekly",
|
|
594
|
-
weekdays: []
|
|
595
|
-
}
|
|
596
|
-
}, U = (e) => {
|
|
597
|
-
const a = e.value, s = a !== void 0, [u, c] = L(
|
|
598
|
-
() => e.value ?? e.defaultValue ?? {
|
|
599
|
-
frequency: "weekly",
|
|
600
|
-
startDate: /* @__PURE__ */ new Date(),
|
|
601
|
-
frequencySettings: q.weekly
|
|
602
|
-
}
|
|
603
|
-
), d = s ? a : u, m = M(!1);
|
|
604
|
-
W(() => {
|
|
605
|
-
if (!s) {
|
|
606
|
-
if (!m.current) {
|
|
607
|
-
m.current = !0;
|
|
608
|
-
return;
|
|
609
|
-
}
|
|
610
|
-
e.onChange?.(u);
|
|
611
|
-
}
|
|
612
|
-
}, [u, s, e.onChange]);
|
|
613
|
-
const h = (t) => {
|
|
614
|
-
if (s) {
|
|
615
|
-
const y = typeof t == "function" ? t(a ?? u) : t;
|
|
616
|
-
e.onChange?.(y);
|
|
617
|
-
return;
|
|
618
|
-
}
|
|
619
|
-
c(typeof t == "function" ? (l) => t(l) : t);
|
|
620
|
-
}, o = (t) => {
|
|
621
|
-
if (!t)
|
|
622
|
-
return;
|
|
623
|
-
const l = t.value, y = q[l];
|
|
624
|
-
h((v) => ({
|
|
625
|
-
...v,
|
|
626
|
-
frequency: l,
|
|
627
|
-
frequencySettings: y
|
|
628
|
-
}));
|
|
629
|
-
}, i = (t) => {
|
|
630
|
-
h(typeof t == "function" ? (l) => ({ ...l, frequencySettings: t(l.frequencySettings) }) : (l) => ({ ...l, frequencySettings: t }));
|
|
631
|
-
}, n = (t) => {
|
|
632
|
-
t && h((l) => ({
|
|
633
|
-
...l,
|
|
634
|
-
startDate: t
|
|
635
|
-
}));
|
|
636
|
-
};
|
|
637
|
-
return /* @__PURE__ */ r.jsxs("div", { className: "w-full flex flex-col gap-6", children: [
|
|
638
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex max-w-full flex-wrap gap-4", children: [
|
|
639
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex gap-2 items-end w-full justify-between", children: /* @__PURE__ */ r.jsx(
|
|
640
|
-
I,
|
|
641
|
-
{
|
|
642
|
-
selected: d?.startDate,
|
|
643
|
-
onSelect: n,
|
|
644
|
-
label: "Fecha inicio de generación",
|
|
645
|
-
inputProps: {
|
|
646
|
-
autoComplete: "off",
|
|
647
|
-
labelVariant: "static",
|
|
648
|
-
className: "mt-[11px] flex-1",
|
|
649
|
-
...e.errors?.startDate ? {
|
|
650
|
-
variant: "error",
|
|
651
|
-
errorComponent: e.errors.startDate
|
|
652
|
-
} : {}
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
) }),
|
|
656
|
-
/* @__PURE__ */ r.jsx(
|
|
657
|
-
f,
|
|
658
|
-
{
|
|
659
|
-
className: "min-w-full",
|
|
660
|
-
multiple: !1,
|
|
661
|
-
value: d.frequency,
|
|
662
|
-
options: Q,
|
|
663
|
-
label: "Repetir",
|
|
664
|
-
optionLabel: "label",
|
|
665
|
-
optionValue: "value",
|
|
666
|
-
onChange: o,
|
|
667
|
-
labelVariant: "static",
|
|
668
|
-
dropdownOptions: {
|
|
669
|
-
hideSearchBar: !0
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
)
|
|
673
|
-
] }),
|
|
674
|
-
/* @__PURE__ */ r.jsx(
|
|
675
|
-
"div",
|
|
676
|
-
{
|
|
677
|
-
className: "border-b border-neutral-strong-default w-full min-w-full "
|
|
678
|
-
}
|
|
679
|
-
),
|
|
680
|
-
/* @__PURE__ */ r.jsx(
|
|
681
|
-
F,
|
|
682
|
-
{
|
|
683
|
-
frequency: d.frequency,
|
|
684
|
-
frequencySettings: d.frequencySettings,
|
|
685
|
-
onChange: i,
|
|
686
|
-
errors: e.errors?.frequencySettings
|
|
687
|
-
}
|
|
688
|
-
)
|
|
689
|
-
] });
|
|
690
|
-
}, X = b(U);
|
|
691
|
-
X.displayName = "RecurrentDatePicker";
|
|
692
|
-
export {
|
|
693
|
-
X as RecurrentDatePicker
|
|
694
|
-
};
|