@m4l/components 9.2.57 → 9.2.58
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/.storybook/utils/flattenDeep.d.ts +8 -0
- package/.storybook/utils/getStylesColorsByMode.d.ts +52 -4
- package/@types/augmentations.d.ts +1 -1
- package/@types/types.d.ts +10 -9
- package/components/AccountPopover/AccountPopover.js +3 -4
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +32 -32
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +13 -14
- package/components/AccountPopover/types.d.ts +2 -2
- package/components/AppBar/AppBar.js +6 -9
- package/components/AppBar/slots/AppBarSlots.d.ts +16 -16
- package/components/AppBar/styles.js +2 -1
- package/components/AppBar/types.d.ts +2 -2
- package/components/Chip/Chip.js +1 -1
- package/components/Chip/ChipStyles.js +12 -12
- package/components/Chip/slots/ChipSlots.d.ts +6 -6
- package/components/Color/Color.styles.js +11 -11
- package/components/Color/slots/ColorSlots.d.ts +5 -5
- package/components/CommonActions/components/ActionCancel/ActionCancel.js +1 -1
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormIntro/ActionFormIntro.js +0 -1
- package/components/CommonActions/components/ActionFormIntro/slots/ActionFormIntroSlots.d.ts +2 -2
- package/components/CommonActions/components/ActionFormIntro/types.d.ts +2 -2
- package/components/CommonActions/components/ActionIntro/ActionIntro.js +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/DataGrid/DataGrid.js +36 -8
- package/components/DataGrid/Datagrid.styles.js +630 -0
- package/components/DataGrid/constants.d.ts +9 -0
- package/components/DataGrid/constants.js +9 -3
- package/components/DataGrid/contexts/DataGridContext/index.js +23 -5
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +4 -0
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +0 -2
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js +2 -2
- package/components/DataGrid/icons.d.ts +1 -0
- package/components/DataGrid/icons.js +4 -3
- package/components/DataGrid/index.d.ts +1 -1
- package/components/DataGrid/slots/DataGridEnum.d.ts +6 -0
- package/components/DataGrid/slots/DataGridEnum.js +10 -2
- package/components/DataGrid/slots/DataGridSlot.d.ts +9 -0
- package/components/DataGrid/slots/DataGridSlot.js +35 -14
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.d.ts +5 -0
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +30 -0
- package/components/DataGrid/subcomponents/ControlNavigate/index.d.ts +2 -0
- package/components/DataGrid/subcomponents/ControlNavigate/types.d.ts +7 -0
- package/components/DataGrid/subcomponents/HeaderActions/index.d.ts +5 -0
- package/components/DataGrid/subcomponents/HeaderActions/index.js +40 -0
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/index.js +4 -3
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/index.js +3 -2
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.js +4 -4
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.js +5 -2
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +34 -24
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +4 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +8 -0
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/index.js +11 -6
- package/components/DataGrid/subcomponents/HeaderActions/types.d.ts +5 -0
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -6
- package/components/DataGrid/subcomponents/Table/index.js +4 -4
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +12 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +28 -13
- package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +3 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.js +4 -2
- package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
- package/components/DataGrid/types.d.ts +20 -3
- package/components/DragResizeWindowRND/DragResizeWindowRND.styles.js +1 -1
- package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.d.ts +3 -5
- package/components/DynamicFilter/DynamicFilter.styles.js +13 -13
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +19 -19
- package/components/DynamicFilter/store/DynamicFilterStore.js +2 -2
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +2 -2
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +2 -3
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +3 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -1
- package/components/DynamicSort/DynamicSort.styles.js +13 -13
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +19 -19
- package/components/DynamicSort/store/DynamicSortStore.js +2 -2
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -2
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -1
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +4 -5
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +2 -3
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -2
- package/components/GridLayout/styles.js +4 -82
- package/components/HelperError/HelperError.styles.js +4 -4
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/Icon.styles.js +10 -10
- package/components/Image/Image.js +1 -1
- package/components/Image/image.styles.js +1 -1
- package/components/Image/slots/ImageSlots.d.ts +12 -12
- package/components/Image/subcomponents/IntersectComponent/index.js +0 -1
- package/components/Image/types.d.ts +2 -2
- package/components/Label/Label.js +1 -1
- package/components/Label/Label.styles.js +22 -13
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.styles.js +3 -3
- package/components/LoadingError/LoadingError.js +1 -2
- package/components/LoadingError/LoadingError.styles.js +6 -3
- package/components/MenuActions/MenuActions.js +3 -3
- package/components/MenuActions/MenuActions.styles.js +4 -4
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +12 -12
- package/components/MenuActions/types.d.ts +3 -3
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NoItemSelected/NoItemSelected.js +23 -7
- package/components/NoItemSelected/NoItemSelected.styles.js +24 -17
- package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +7 -7
- package/components/NumberInput/NumberInput.styles.js +20 -20
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/hooks/useDetailFormatter.js +3 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +20 -20
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -4
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -4
- package/components/ObjectLogs/types.d.ts +2 -2
- package/components/Pager/Pager.js +2 -3
- package/components/Pager/Pager.styles.js +13 -12
- package/components/Pager/index.d.ts +2 -0
- package/components/Pager/slots/PagerEnum.d.ts +2 -1
- package/components/Pager/slots/PagerEnum.js +1 -0
- package/components/Pager/slots/PagerSlots.d.ts +1 -0
- package/components/Pager/slots/PagerSlots.js +7 -2
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +16 -18
- package/components/Pager/subcomponents/PagerActions/PagerActions.js +4 -2
- package/components/Pager/subcomponents/PagerActions/types.d.ts +1 -0
- package/components/PaperForm/components/Header.js +2 -2
- package/components/PaperForm/slots/PaperFormSlots.d.ts +10 -10
- package/components/PaperForm/styles.js +7 -7
- package/components/PaperForm/types.d.ts +2 -2
- package/components/PrintingSystem/slots/PrintingSystemSlots.d.ts +42 -42
- package/components/PrintingSystem/subcomponents/BodyNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/DividerNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/FooterNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/GridNode/index.js +0 -5
- package/components/PrintingSystem/subcomponents/HeaderNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/PageNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/PaperNode/index.js +0 -5
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +0 -2
- package/components/PrintingSystem/subcomponents/SectionNode/index.js +0 -1
- package/components/PrintingSystem/types.d.ts +2 -2
- package/components/PropertyValue/PropertyValue.js +3 -4
- package/components/PropertyValue/PropertyValue.styles.js +36 -31
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +3 -3
- package/components/ScrollBar/ScrollBar.d.ts +3 -3
- package/components/ScrollBar/ScrollBar.js +6 -45
- package/components/ScrollBar/ScrollBar.styles.js +7 -52
- package/components/ScrollBar/constants.d.ts +5 -2
- package/components/ScrollBar/constants.js +4 -4
- package/components/ScrollBar/index.d.ts +2 -0
- package/components/ScrollBar/index.js +1 -0
- package/components/ScrollBar/slots/ScrollBarSlots.d.ts +2 -5
- package/components/ScrollBar/slots/ScrollBarSlots.js +7 -13
- package/components/ScrollBar/slots/ScrollbarEnum.d.ts +3 -0
- package/components/ScrollBar/slots/ScrollbarEnum.js +7 -0
- package/components/ScrollBar/types.d.ts +19 -38
- package/components/SideBar/slots/SideBarSlots.d.ts +34 -34
- package/components/SideBar/subcomponents/ContentComponent/style.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentComponent/style.js +10 -7
- package/components/SideBar/subcomponents/ContentGroups/index.js +3 -3
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/styles.js +15 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -10
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +0 -1
- package/components/SideBar/subcomponents/FooterSidebar/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/HeaderSidebar/index.js +2 -2
- package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/SideBarDesktop/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +2 -2
- package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -1
- package/components/SideBar/subcomponents/SideBarMobile/styles.d.ts +2 -2
- package/components/SideBar/types.d.ts +9 -2
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/WindowBase/WindowBase.js +13 -7
- package/components/WindowBase/WindowBase.styles.js +233 -116
- package/components/WindowBase/icons.js +2 -2
- package/components/WindowBase/slots/WindowBaseEnum.d.ts +3 -3
- package/components/WindowBase/slots/WindowBaseEnum.js +2 -2
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +18 -23
- package/components/WindowBase/slots/WindowBaseSlots.js +13 -12
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +24 -12
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowBase/subcomponents/Header/useButtonActions.js +5 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +9 -0
- package/components/WindowBase/types.d.ts +16 -0
- package/components/WindowConfirm/WindowConfirm.js +2 -3
- package/components/WindowConfirm/WindowConfirm.styles.js +5 -7
- package/components/areas/components/AreasAdmin/AreasAdmin.js +14 -20
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +24 -23
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +23 -23
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +2 -5
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +3 -4
- package/components/areas/components/AreasAdmin/types.d.ts +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +12 -4
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +7 -4
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +5 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +20 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +7 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +8 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +7 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/types.d.ts +6 -0
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +2 -9
- package/components/areas/contexts/AreasContext/helpers/helper.js +14 -16
- package/components/areas/contexts/AreasContext/index.js +1 -1
- package/components/areas/contexts/AreasContext/store.js +4 -4
- package/components/areas/contexts/AreasContext/types.d.ts +1 -1
- package/components/areas/icons.d.ts +2 -2
- package/components/areas/icons.js +4 -4
- package/components/commercial/SectionCommercial/classes/index.d.ts +2 -2
- package/components/commercial/SectionCommercial/classes/index.js +3 -3
- package/components/commercial/SectionCommercial/types.d.ts +1 -1
- package/components/extended/React-Resizable/helpers.d.ts +2 -9
- package/components/extended/React-Resizable/helpers.js +15 -13
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +0 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.js +1 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.d.ts +4 -4
- package/components/extended/React-Spinners/PropagateLoaderSpinner/types.d.ts +2 -2
- package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +3 -3
- package/components/extended/React-resizable-panels/SplitLayout.styles.js +6 -6
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +8 -8
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +3 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +1 -1
- package/components/formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.d.ts +2 -2
- package/components/formatters/PeriodFormatter/PeriodFormatter.styles.js +1 -1
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +1 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
- package/components/hook-form/RHFDateTime/types.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
- package/components/hook-form/RHFSelect/RHFSelect.js +1 -1
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFSelect/slots/RHFSlots.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +13 -17
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +2 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/types.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +2 -2
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +8 -8
- package/components/hook-form/RHFTextFieldPassword/types.d.ts +2 -2
- package/components/hook-form/RHFTimePicker/types.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.js +3 -3
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +22 -22
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +9 -10
- package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.styles.js +2 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +22 -22
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +2 -7
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +5 -6
- package/components/hook-form/RHFormContext/index.d.ts +1 -1
- package/components/hook-form/RHFormContext/styles.js +2 -1
- package/components/index.d.ts +2 -0
- package/components/mui_extended/Accordion/Accordion.js +32 -22
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +12 -12
- package/components/mui_extended/Accordion/styles.js +60 -33
- package/components/mui_extended/Accordion/types.d.ts +39 -6
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +3 -3
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +17 -17
- package/components/mui_extended/Avatar/Avatar.js +1 -1
- package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
- package/components/mui_extended/Avatar/styles.js +3 -3
- package/components/mui_extended/Badge/Badge.js +1 -2
- package/components/mui_extended/Badge/Badge.styles.js +9 -9
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +2 -2
- package/components/mui_extended/Badge/types.d.ts +2 -2
- package/components/mui_extended/Button/Button.js +4 -5
- package/components/mui_extended/Button/ButtonStyles.js +37 -26
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.js +2 -2
- package/components/mui_extended/CheckBox/CheckBox.styles.js +12 -12
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +12 -12
- package/components/mui_extended/CheckBox/types.d.ts +2 -2
- package/components/mui_extended/CircularProgress/CircularProgress.styles.js +5 -5
- package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +49 -49
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +12 -12
- package/components/mui_extended/Divider/Divider.js +1 -2
- package/components/mui_extended/Divider/Divider.styles.js +9 -9
- package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.js +3 -2
- package/components/mui_extended/IconButton/IconButton.styles.js +21 -21
- package/components/mui_extended/IconButton/helpers/getIconButtonColors.d.ts +1 -1
- package/components/mui_extended/IconButton/helpers/getIconButtonColors.js +4 -4
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +5 -5
- package/components/mui_extended/IconButton/types.d.ts +1 -1
- package/components/mui_extended/LoadingButton/LoadingButton.js +1 -1
- package/components/mui_extended/LoadingButton/LoadingButton.styles.js +5 -5
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuDivider/MenuDivider.js +1 -2
- package/components/mui_extended/MenuDivider/MenuDivider.styles.js +9 -9
- package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +10 -10
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +7 -7
- package/components/mui_extended/MenuItem/types.d.ts +8 -3
- package/components/mui_extended/NavLink/NavLink.js +1 -2
- package/components/mui_extended/NavLink/NavLink.styles.js +9 -9
- package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +4 -4
- package/components/mui_extended/Popover/Popover.js +0 -1
- package/components/mui_extended/Popover/slots/PopoverSlots.d.ts +2 -2
- package/components/mui_extended/Popover/types.d.ts +3 -3
- package/components/mui_extended/Popper/PopperStyles.js +1 -1
- package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/Select/Select.js +2 -3
- package/components/mui_extended/Select/Select.styles.js +10 -10
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +12 -12
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Skeleton/Skeleton.js +2 -2
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Skeleton/skeleton.styles.js +6 -5
- package/components/mui_extended/Skeleton/types.d.ts +1 -1
- package/components/mui_extended/Stack/Stack.styles.js +3 -3
- package/components/mui_extended/Stack/slots/StackSlot.d.ts +2 -2
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.js +2 -0
- package/components/mui_extended/Tab/Tab.styles.js +27 -49
- package/components/mui_extended/Tab/types.d.ts +4 -0
- package/components/mui_extended/TabContent/TabContent.js +2 -2
- package/components/mui_extended/TabContent/TabContent.styles.js +13 -7
- package/components/mui_extended/TabContent/index.d.ts +1 -0
- package/components/mui_extended/TabContent/slots/TabContentSlots.d.ts +2 -2
- package/components/mui_extended/TabContent/types.d.ts +3 -2
- package/components/mui_extended/Tabs/Tabs.styles.js +2 -1
- package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.js +11 -6
- package/components/mui_extended/TextField/TextField.styles.js +71 -68
- package/components/mui_extended/TextField/constants.d.ts +1 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +2 -1
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +1 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
- package/components/mui_extended/TextField/types.d.ts +7 -0
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +9 -9
- package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/Tooltip.styles.js +1 -1
- package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +3 -3
- package/components/mui_extended/Typography/Typography.js +2 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +4 -4
- package/components/mui_extended/Typography/types.d.ts +3 -2
- package/components/mui_extended/Typography/typography.styles.js +12 -9
- package/components/mui_extended/index.d.ts +0 -2
- package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +4 -4
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +7 -9
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +2 -0
- package/hooks/useComponentSize/useComponentSize.d.ts +3 -3
- package/hooks/useComponentSize/useComponentSize.js +5 -2
- package/hooks/useDynamicFilterAndSort/icons.d.ts +2 -2
- package/hooks/useDynamicFilterAndSort/icons.js +2 -2
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -6
- package/hooks/useDynamicFilterAndSort/styles.js +8 -7
- package/hooks/useDynamicFilterAndSort/types.d.ts +2 -2
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +3 -3
- package/index.js +24 -26
- package/package.json +1 -1
- package/storybook/components/Chip/Chip.stories.d.ts +4 -0
- package/storybook/components/DataGrid/DataGrid.stories.d.ts +16 -0
- package/storybook/components/Icon/Icon.stories.d.ts +4 -0
- package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +4 -0
- package/storybook/components/PropertyValue/PropertyValue.stories.d.ts +5 -1
- package/storybook/components/{extended/scrollBar → ScrollBar}/ScrollBar.stories.d.ts +2 -2
- package/storybook/components/WindowBase/windowBase.stories.d.ts +64 -7
- package/storybook/components/extended/mui/Accordion/Accordion.stories.d.ts +72 -20
- package/storybook/components/extended/mui/Tab/Tab.stories.d.ts +24 -24
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +11 -0
- package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +13 -0
- package/storybook/wrappers/LineGuide/LineGuide.d.ts +9 -0
- package/storybook/wrappers/LineGuide/styles.d.ts +1 -0
- package/storybook/wrappers/LineGuide/types.d.ts +5 -0
- package/components/DataGrid/styles.js +0 -484
- package/components/DataGrid/subcomponents/Actions/index.d.ts +0 -5
- package/components/DataGrid/subcomponents/Actions/index.js +0 -49
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +0 -7
- package/components/DataGrid/subcomponents/Actions/types.d.ts +0 -16
- package/components/ScrollBar/slots/ScrollBarEnum.d.ts +0 -4
- package/components/ScrollBar/slots/ScrollBarEnum.js +0 -8
- package/components/ScrollBar/slots/index.d.ts +0 -2
- package/storybook/components/extended/scrollBar/ScrollBarDecorator.d.ts +0 -11
- /package/components/DataGrid/{styles.d.ts → Datagrid.styles.d.ts} +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/types.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Filter/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Filter/index.js +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/types.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/types.d.ts +0 -0
- /package/components/{ScrollBar/slots → Pager}/index.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const ButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
3
|
-
}, "size" | "children" | "disabled" | "action" | "color" | "style" | "variant" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "startIcon" | "endIcon" | "disableElevation" | "fullWidth">, "value" | "size" | "children" | "ref" | "title" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "
|
|
3
|
+
}, "size" | "children" | "disabled" | "action" | "color" | "style" | "variant" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "startIcon" | "endIcon" | "disableElevation" | "fullWidth">, "value" | "size" | "children" | "ref" | "title" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "startIcon" | "endIcon" | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').ButtonOwnerState> & Record<string, unknown> & {
|
|
4
4
|
ownerState: Partial<import('..').ButtonOwnerState> & Record<string, unknown>;
|
|
5
5
|
}, {}, {}>;
|
|
6
6
|
declare const SkeletonButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').ButtonOwnerState> & Record<string, unknown> & {
|
|
@@ -68,8 +68,8 @@ const CheckBox = forwardRef((props, ref) => {
|
|
|
68
68
|
}
|
|
69
69
|
)
|
|
70
70
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
71
|
-
/* @__PURE__ */ jsx(SkeletonStyled, {
|
|
72
|
-
inlineText ? /* @__PURE__ */ jsx(SkeletonStyled, {
|
|
71
|
+
/* @__PURE__ */ jsx(SkeletonStyled, { variant: "rounded", className: "checkSkeleton" }),
|
|
72
|
+
inlineText ? /* @__PURE__ */ jsx(SkeletonStyled, { variant: "rectangular", className: "checkSkeletonInlineText" }) : null
|
|
73
73
|
] }) });
|
|
74
74
|
});
|
|
75
75
|
export {
|
|
@@ -23,10 +23,10 @@ const checkBoxStyles = {
|
|
|
23
23
|
* @returns {object} - Los estilos aplicados al MuiCheckBox.
|
|
24
24
|
*/
|
|
25
25
|
muiCheckBox: ({ theme, ownerState }) => {
|
|
26
|
-
const color = ownerState
|
|
27
|
-
const opacityColor = ownerState
|
|
26
|
+
const color = ownerState?.error ? "error" : "primary";
|
|
27
|
+
const opacityColor = ownerState?.error ? "error" : "default";
|
|
28
28
|
const device = theme.generalSettings.isMobile ? "mobile" : "desktop";
|
|
29
|
-
const size = ownerState
|
|
29
|
+
const size = ownerState?.size ?? "medium";
|
|
30
30
|
return {
|
|
31
31
|
overflow: "visible",
|
|
32
32
|
height: theme.vars.size[device][size].action,
|
|
@@ -56,10 +56,10 @@ const checkBoxStyles = {
|
|
|
56
56
|
outline: `1px solid ${theme.vars.palette["primary"].focusVisible}`
|
|
57
57
|
},
|
|
58
58
|
// Historia Disabled para CheckBox 😶🌫️
|
|
59
|
-
...ownerState
|
|
60
|
-
pointerEvents: ownerState
|
|
59
|
+
...ownerState?.disabled && {
|
|
60
|
+
pointerEvents: ownerState?.disabled ? "none" : "auto",
|
|
61
61
|
"&:hover": {
|
|
62
|
-
pointerEvents: ownerState
|
|
62
|
+
pointerEvents: ownerState?.disabled ? "none" : "auto"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -72,15 +72,15 @@ const checkBoxStyles = {
|
|
|
72
72
|
*/
|
|
73
73
|
skeletonStyled: ({ theme, ownerState }) => {
|
|
74
74
|
const device = theme.generalSettings.isMobile ? "mobile" : "desktop";
|
|
75
|
-
const size = ownerState
|
|
75
|
+
const size = ownerState?.size ?? "medium";
|
|
76
76
|
return {
|
|
77
77
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
78
|
-
backgroundColor: theme.vars.palette?.skeleton.
|
|
78
|
+
backgroundColor: theme.vars.palette?.skeleton.default,
|
|
79
79
|
"&.checkSkeleton": {
|
|
80
80
|
width: theme.vars.size[device][size].action,
|
|
81
81
|
...getHeightSizeStyles(
|
|
82
82
|
theme.generalSettings.isMobile,
|
|
83
|
-
ownerState
|
|
83
|
+
ownerState?.size || "medium",
|
|
84
84
|
"action",
|
|
85
85
|
(val) => {
|
|
86
86
|
return {
|
|
@@ -90,7 +90,7 @@ const checkBoxStyles = {
|
|
|
90
90
|
),
|
|
91
91
|
...getHeightSizeStyles(
|
|
92
92
|
theme.generalSettings.isMobile,
|
|
93
|
-
ownerState
|
|
93
|
+
ownerState?.size || "small",
|
|
94
94
|
"action",
|
|
95
95
|
(val) => {
|
|
96
96
|
return {
|
|
@@ -104,12 +104,12 @@ const checkBoxStyles = {
|
|
|
104
104
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
105
105
|
...getHeightSizeStyles(
|
|
106
106
|
theme.generalSettings.isMobile,
|
|
107
|
-
ownerState
|
|
107
|
+
ownerState?.size || "medium",
|
|
108
108
|
"base"
|
|
109
109
|
),
|
|
110
110
|
...getHeightSizeStyles(
|
|
111
111
|
theme.generalSettings.isMobile,
|
|
112
|
-
ownerState
|
|
112
|
+
ownerState?.size || "small",
|
|
113
113
|
"base"
|
|
114
114
|
)
|
|
115
115
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export declare const CheckBoxRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> &
|
|
2
|
-
ownerState
|
|
1
|
+
export declare const CheckBoxRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: (Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>) | undefined;
|
|
3
3
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
-
export declare const MUICheckboxStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').CheckboxProps, keyof import('@mui/material').CheckboxProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> &
|
|
5
|
-
ownerState
|
|
4
|
+
export declare const MUICheckboxStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').CheckboxProps, keyof import('@mui/material').CheckboxProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
5
|
+
ownerState?: (Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>) | undefined;
|
|
6
6
|
}, {}, {}>;
|
|
7
|
-
export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> &
|
|
8
|
-
ownerState
|
|
7
|
+
export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
8
|
+
ownerState?: (Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>) | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
10
10
|
export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
11
11
|
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
12
|
-
}, "children" | "style" | "variant" | "width" | "height" | "animation" | "className" | "classes" | "sx">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "width" | "height" | "translate" | "animation" | "className" | "classes" | "sx" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "
|
|
13
|
-
ownerState
|
|
12
|
+
}, "children" | "style" | "variant" | "width" | "height" | "animation" | "className" | "classes" | "sx">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "width" | "height" | "translate" | "animation" | "className" | "classes" | "sx" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
13
|
+
ownerState?: (Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>) | undefined;
|
|
14
14
|
}, {}, {}>;
|
|
15
|
-
export declare const IconCheckedStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> &
|
|
16
|
-
ownerState
|
|
15
|
+
export declare const IconCheckedStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
16
|
+
ownerState?: (Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>) | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
18
|
-
export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> &
|
|
19
|
-
ownerState
|
|
18
|
+
export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
19
|
+
ownerState?: (Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>) | undefined;
|
|
20
20
|
}, {}, {}>;
|
|
@@ -2,8 +2,8 @@ import { CheckboxProps as MUICheckboxProps, Theme } from '@mui/material';
|
|
|
2
2
|
import { LabelProps } from '../../Label/types';
|
|
3
3
|
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
4
4
|
import { CheckBoxSlots } from './slots';
|
|
5
|
-
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
6
5
|
import { CHECK_BOX_KEY_COMPONENT } from './constants';
|
|
6
|
+
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
7
7
|
/**
|
|
8
8
|
* Propiedades del estado del propietario del CheckBox.
|
|
9
9
|
* size - El tamaño del CheckBox.
|
|
@@ -62,4 +62,4 @@ export type CheckBoxSlotsType = keyof typeof CheckBoxSlots;
|
|
|
62
62
|
/**
|
|
63
63
|
* Estilos del CheckBox.
|
|
64
64
|
*/
|
|
65
|
-
export type CheckBoxStyles =
|
|
65
|
+
export type CheckBoxStyles = M4LOverridesStyleRules<CheckBoxSlotsType, typeof CHECK_BOX_KEY_COMPONENT, Theme>;
|
|
@@ -4,9 +4,9 @@ const circularProgressStyles = {
|
|
|
4
4
|
*/
|
|
5
5
|
root: ({ theme, ownerState }) => ({
|
|
6
6
|
//overrides
|
|
7
|
-
color: theme.vars.palette[ownerState
|
|
7
|
+
color: theme.vars.palette[ownerState?.color || "primary"].enabled,
|
|
8
8
|
//Sizes
|
|
9
|
-
...ownerState
|
|
9
|
+
...ownerState?.size === "small" && {
|
|
10
10
|
...theme.generalSettings.isMobile ? {
|
|
11
11
|
height: `${theme.vars.size.mobile.small.base} !important`,
|
|
12
12
|
width: `${theme.vars.size.mobile.small.base} !important`
|
|
@@ -15,7 +15,7 @@ const circularProgressStyles = {
|
|
|
15
15
|
width: `${theme.vars.size.desktop.small.base} !important`
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
...ownerState
|
|
18
|
+
...ownerState?.size === "medium" && {
|
|
19
19
|
...theme.generalSettings.isMobile ? {
|
|
20
20
|
height: `${theme.vars.size.mobile.medium.base} !important`,
|
|
21
21
|
width: `${theme.vars.size.mobile.medium.base} !important`
|
|
@@ -31,7 +31,7 @@ const circularProgressStyles = {
|
|
|
31
31
|
skeleton: ({ theme, ownerState }) => ({
|
|
32
32
|
"&.M4lclassCssSpecificity": {
|
|
33
33
|
//Sizes
|
|
34
|
-
...ownerState
|
|
34
|
+
...ownerState?.size === "small" && {
|
|
35
35
|
...theme.generalSettings.isMobile ? {
|
|
36
36
|
height: theme.vars.size.mobile.small.base,
|
|
37
37
|
width: theme.vars.size.mobile.small.base
|
|
@@ -40,7 +40,7 @@ const circularProgressStyles = {
|
|
|
40
40
|
width: theme.vars.size.desktop.small.base
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
...ownerState
|
|
43
|
+
...ownerState?.size === "medium" && {
|
|
44
44
|
...theme.generalSettings.isMobile ? {
|
|
45
45
|
height: theme.vars.size.mobile.medium.base,
|
|
46
46
|
width: theme.vars.size.mobile.medium.base
|
|
@@ -8,7 +8,7 @@ const dateTimePickerStyles = {
|
|
|
8
8
|
// ↴ Overrides sizes ❌
|
|
9
9
|
...getHeightSizeStyles(
|
|
10
10
|
theme.generalSettings.isMobile,
|
|
11
|
-
ownerState
|
|
11
|
+
ownerState?.size || "medium",
|
|
12
12
|
"action",
|
|
13
13
|
(height) => ({
|
|
14
14
|
height: `${height} !important`,
|
|
@@ -28,7 +28,7 @@ const dateTimePickerStyles = {
|
|
|
28
28
|
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
29
29
|
...getTypographyStyles(
|
|
30
30
|
theme.generalSettings.isMobile,
|
|
31
|
-
ownerState
|
|
31
|
+
ownerState?.size || "medium",
|
|
32
32
|
"body"
|
|
33
33
|
)
|
|
34
34
|
},
|
|
@@ -36,7 +36,7 @@ const dateTimePickerStyles = {
|
|
|
36
36
|
margin: 0,
|
|
37
37
|
...getHeightSizeStyles(
|
|
38
38
|
theme.generalSettings.isMobile,
|
|
39
|
-
ownerState
|
|
39
|
+
ownerState?.size || "medium",
|
|
40
40
|
"action",
|
|
41
41
|
(height) => ({
|
|
42
42
|
height,
|
|
@@ -50,37 +50,37 @@ const dateTimePickerStyles = {
|
|
|
50
50
|
"&.MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline": {
|
|
51
51
|
outline: 0,
|
|
52
52
|
minHeight: 0,
|
|
53
|
-
...ownerState
|
|
53
|
+
...ownerState?.variant === "outlined" && {
|
|
54
54
|
border: theme.vars.size.borderStroke.actionInput
|
|
55
55
|
},
|
|
56
|
-
...ownerState
|
|
56
|
+
...ownerState?.variant === "text" && {
|
|
57
57
|
border: 0,
|
|
58
58
|
borderBottom: theme.vars.size.borderStroke.actionInput
|
|
59
59
|
},
|
|
60
|
-
borderColor: ownerState
|
|
60
|
+
borderColor: ownerState?.error ? theme.vars.palette.error.hover : ownerState?.disabled ? `${theme.vars.palette.border.secondary}` : theme.vars.palette.border.default,
|
|
61
61
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
62
62
|
borderWidth: 1
|
|
63
63
|
},
|
|
64
64
|
// ↴ Overrides ❌
|
|
65
65
|
"&.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
66
66
|
outline: 0,
|
|
67
|
-
...ownerState
|
|
67
|
+
...ownerState?.variant === "outlined" && {
|
|
68
68
|
border: theme.vars.size.borderStroke.actionInput
|
|
69
69
|
},
|
|
70
|
-
...ownerState
|
|
70
|
+
...ownerState?.variant === "text" && {
|
|
71
71
|
border: 0,
|
|
72
72
|
borderBottom: theme.vars.size.borderStroke.actionInput
|
|
73
73
|
},
|
|
74
|
-
borderColor: ownerState
|
|
74
|
+
borderColor: ownerState?.error ? theme.vars.palette.error.active : theme.vars.palette.primary.enabled
|
|
75
75
|
},
|
|
76
76
|
// ↴ Overrides ❌
|
|
77
77
|
"&.MuiOutlinedInput-root.Mui-focused .M4LIcon-icon": {
|
|
78
|
-
backgroundColor: ownerState
|
|
78
|
+
backgroundColor: ownerState?.error ? theme.vars.palette.error.active : theme.vars.palette.primary.enabled
|
|
79
79
|
},
|
|
80
80
|
// ↴ Overrides ❌
|
|
81
|
-
...!ownerState
|
|
81
|
+
...!ownerState?.disabled && {
|
|
82
82
|
"&:hover": {
|
|
83
|
-
background: ownerState
|
|
83
|
+
background: ownerState?.error ? theme.vars.palette.error.hoverOpacity : theme.vars.palette.primary.hoverOpacity
|
|
84
84
|
},
|
|
85
85
|
"&:active": {
|
|
86
86
|
background: theme.vars.palette.background.default
|
|
@@ -95,7 +95,7 @@ const dateTimePickerStyles = {
|
|
|
95
95
|
// ↴ Overrides sizes ❌
|
|
96
96
|
...getHeightSizeStyles(
|
|
97
97
|
theme.generalSettings.isMobile,
|
|
98
|
-
ownerState
|
|
98
|
+
ownerState?.size || "medium",
|
|
99
99
|
"action",
|
|
100
100
|
(height) => ({
|
|
101
101
|
height: `${height} !important`,
|
|
@@ -115,7 +115,7 @@ const dateTimePickerStyles = {
|
|
|
115
115
|
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
116
116
|
...getTypographyStyles(
|
|
117
117
|
theme.generalSettings.isMobile,
|
|
118
|
-
ownerState
|
|
118
|
+
ownerState?.size || "medium",
|
|
119
119
|
"body"
|
|
120
120
|
)
|
|
121
121
|
},
|
|
@@ -123,32 +123,32 @@ const dateTimePickerStyles = {
|
|
|
123
123
|
"&.MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline": {
|
|
124
124
|
outline: 0,
|
|
125
125
|
minHeight: 0,
|
|
126
|
-
...ownerState
|
|
126
|
+
...ownerState?.variant === "outlined" && {
|
|
127
127
|
border: theme.vars.size.borderStroke.actionInput
|
|
128
128
|
},
|
|
129
|
-
...ownerState
|
|
129
|
+
...ownerState?.variant === "text" && {
|
|
130
130
|
border: 0,
|
|
131
131
|
borderBottom: theme.vars.size.borderStroke.actionInput
|
|
132
132
|
},
|
|
133
|
-
borderColor: ownerState
|
|
133
|
+
borderColor: ownerState?.error ? theme.vars.palette.error.hover : ownerState?.disabled ? `${theme.vars.palette.border.secondary}` : theme.vars.palette.border.default,
|
|
134
134
|
borderRadius: theme.vars.size.borderRadius.r1
|
|
135
135
|
},
|
|
136
136
|
// ↴ Overrides ❌
|
|
137
137
|
"&.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
138
138
|
outline: 0,
|
|
139
|
-
...ownerState
|
|
139
|
+
...ownerState?.variant === "outlined" && {
|
|
140
140
|
border: theme.vars.size.borderStroke.actionInput
|
|
141
141
|
},
|
|
142
|
-
...ownerState
|
|
142
|
+
...ownerState?.variant === "text" && {
|
|
143
143
|
border: 0,
|
|
144
144
|
borderBottom: theme.vars.size.borderStroke.actionInput
|
|
145
145
|
},
|
|
146
|
-
borderColor: ownerState
|
|
146
|
+
borderColor: ownerState?.error ? theme.vars.palette.error.active : theme.vars.palette.primary.enabled
|
|
147
147
|
},
|
|
148
148
|
// ↴ Overrides ❌
|
|
149
|
-
...!ownerState
|
|
149
|
+
...!ownerState?.disabled && {
|
|
150
150
|
"&:hover": {
|
|
151
|
-
background: ownerState
|
|
151
|
+
background: ownerState?.error ? theme.vars.palette.error.hoverOpacity : theme.vars.palette.primary.hoverOpacity
|
|
152
152
|
},
|
|
153
153
|
"&:active": {
|
|
154
154
|
background: theme.vars.palette.background.default
|
|
@@ -217,7 +217,7 @@ const dateTimePickerStyles = {
|
|
|
217
217
|
},
|
|
218
218
|
...getHeightSizeStyles(
|
|
219
219
|
theme.generalSettings.isMobile,
|
|
220
|
-
ownerState
|
|
220
|
+
ownerState?.size || "small",
|
|
221
221
|
"action",
|
|
222
222
|
(height) => ({
|
|
223
223
|
minHeight: height,
|
|
@@ -227,7 +227,7 @@ const dateTimePickerStyles = {
|
|
|
227
227
|
),
|
|
228
228
|
...getTypographyStyles(
|
|
229
229
|
theme.generalSettings.isMobile,
|
|
230
|
-
ownerState
|
|
230
|
+
ownerState?.size || "medium",
|
|
231
231
|
"body"
|
|
232
232
|
)
|
|
233
233
|
}
|
|
@@ -244,12 +244,12 @@ const dateTimePickerStyles = {
|
|
|
244
244
|
margin: 0,
|
|
245
245
|
...getTypographyStyles(
|
|
246
246
|
theme.generalSettings.isMobile,
|
|
247
|
-
ownerState
|
|
247
|
+
ownerState?.size || "medium",
|
|
248
248
|
"body"
|
|
249
249
|
),
|
|
250
250
|
...getHeightSizeStyles(
|
|
251
251
|
theme.generalSettings.isMobile,
|
|
252
|
-
ownerState
|
|
252
|
+
ownerState?.size || "small",
|
|
253
253
|
"action",
|
|
254
254
|
(height) => ({
|
|
255
255
|
minHeight: height,
|
|
@@ -287,7 +287,7 @@ const dateTimePickerStyles = {
|
|
|
287
287
|
margin: 0,
|
|
288
288
|
...getHeightSizeStyles(
|
|
289
289
|
theme.generalSettings.isMobile,
|
|
290
|
-
ownerState
|
|
290
|
+
ownerState?.size || "small",
|
|
291
291
|
"action",
|
|
292
292
|
(height) => ({
|
|
293
293
|
minHeight: height,
|
|
@@ -300,7 +300,7 @@ const dateTimePickerStyles = {
|
|
|
300
300
|
),
|
|
301
301
|
...getTypographyStyles(
|
|
302
302
|
theme.generalSettings.isMobile,
|
|
303
|
-
ownerState
|
|
303
|
+
ownerState?.size || "medium",
|
|
304
304
|
"body"
|
|
305
305
|
)
|
|
306
306
|
}
|
|
@@ -314,7 +314,7 @@ const dateTimePickerStyles = {
|
|
|
314
314
|
margin: 0,
|
|
315
315
|
...getHeightSizeStyles(
|
|
316
316
|
theme.generalSettings.isMobile,
|
|
317
|
-
ownerState
|
|
317
|
+
ownerState?.size || "small",
|
|
318
318
|
"action",
|
|
319
319
|
(height) => ({
|
|
320
320
|
minHeight: height,
|
|
@@ -327,7 +327,7 @@ const dateTimePickerStyles = {
|
|
|
327
327
|
),
|
|
328
328
|
...getTypographyStyles(
|
|
329
329
|
theme.generalSettings.isMobile,
|
|
330
|
-
ownerState
|
|
330
|
+
ownerState?.size || "medium",
|
|
331
331
|
"body"
|
|
332
332
|
)
|
|
333
333
|
}
|
|
@@ -351,7 +351,7 @@ const dateTimePickerStyles = {
|
|
|
351
351
|
"& > span:first-of-type": {
|
|
352
352
|
...getTypographyStyles(
|
|
353
353
|
theme.generalSettings.isMobile,
|
|
354
|
-
ownerState
|
|
354
|
+
ownerState?.size || "medium",
|
|
355
355
|
"body"
|
|
356
356
|
)
|
|
357
357
|
},
|
|
@@ -367,14 +367,14 @@ const dateTimePickerStyles = {
|
|
|
367
367
|
"& button:nth-of-type(1) > span": {
|
|
368
368
|
...getTypographyStyles(
|
|
369
369
|
theme.generalSettings.isMobile,
|
|
370
|
-
ownerState
|
|
370
|
+
ownerState?.size || "medium",
|
|
371
371
|
"body"
|
|
372
372
|
)
|
|
373
373
|
},
|
|
374
374
|
"& button:nth-of-type(2) > span": {
|
|
375
375
|
...getTypographyStyles(
|
|
376
376
|
theme.generalSettings.isMobile,
|
|
377
|
-
ownerState
|
|
377
|
+
ownerState?.size || "medium",
|
|
378
378
|
"subtitle"
|
|
379
379
|
)
|
|
380
380
|
}
|
|
@@ -395,7 +395,7 @@ const dateTimePickerStyles = {
|
|
|
395
395
|
"& button:nth-of-type(1) > span, & button:nth-of-type(2) > span": {
|
|
396
396
|
...getTypographyStyles(
|
|
397
397
|
theme.generalSettings.isMobile,
|
|
398
|
-
ownerState
|
|
398
|
+
ownerState?.size || "medium",
|
|
399
399
|
"subtitle"
|
|
400
400
|
)
|
|
401
401
|
}
|
|
@@ -406,7 +406,7 @@ const dateTimePickerStyles = {
|
|
|
406
406
|
alignSelf: "center",
|
|
407
407
|
...getTypographyStyles(
|
|
408
408
|
theme.generalSettings.isMobile,
|
|
409
|
-
ownerState
|
|
409
|
+
ownerState?.size || "medium",
|
|
410
410
|
"subtitle"
|
|
411
411
|
)
|
|
412
412
|
},
|
|
@@ -419,7 +419,7 @@ const dateTimePickerStyles = {
|
|
|
419
419
|
alignItems: "center",
|
|
420
420
|
...getHeightSizeStyles(
|
|
421
421
|
theme.generalSettings.isMobile,
|
|
422
|
-
ownerState
|
|
422
|
+
ownerState?.size || "small",
|
|
423
423
|
"action",
|
|
424
424
|
(height) => ({
|
|
425
425
|
height,
|
|
@@ -429,7 +429,7 @@ const dateTimePickerStyles = {
|
|
|
429
429
|
),
|
|
430
430
|
...getTypographyStyles(
|
|
431
431
|
theme.generalSettings.isMobile,
|
|
432
|
-
ownerState
|
|
432
|
+
ownerState?.size || "medium",
|
|
433
433
|
"body"
|
|
434
434
|
)
|
|
435
435
|
}
|
|
@@ -458,7 +458,7 @@ const dateTimePickerStyles = {
|
|
|
458
458
|
borderTopRightRadius: `calc(${theme.vars.size.borderRadius.r1} - 1px)`,
|
|
459
459
|
...getHeightSizeStyles(
|
|
460
460
|
theme.generalSettings.isMobile,
|
|
461
|
-
ownerState
|
|
461
|
+
ownerState?.size || "small",
|
|
462
462
|
"container",
|
|
463
463
|
(height) => ({
|
|
464
464
|
minHeight: height,
|
|
@@ -482,7 +482,7 @@ const dateTimePickerStyles = {
|
|
|
482
482
|
height: theme.vars.size.borderRadius["r0-5"],
|
|
483
483
|
left: 0,
|
|
484
484
|
top: 0,
|
|
485
|
-
backgroundColor: ownerState
|
|
485
|
+
backgroundColor: ownerState?.tabSkeleton ? theme.vars.palette.skeleton.default : ownerState?.tabDisabled ? theme.vars.palette.text.disabled : theme.vars.palette.primary.enabled,
|
|
486
486
|
borderEndStartRadius: theme.vars.size.borderRadius["r1"],
|
|
487
487
|
borderEndEndRadius: theme.vars.size.borderRadius["r1"],
|
|
488
488
|
position: "absolute"
|
|
@@ -526,7 +526,7 @@ const dateTimePickerStyles = {
|
|
|
526
526
|
},
|
|
527
527
|
...getHeightSizeStyles(
|
|
528
528
|
theme.generalSettings.isMobile,
|
|
529
|
-
ownerState
|
|
529
|
+
ownerState?.size || "small",
|
|
530
530
|
"action",
|
|
531
531
|
(height) => ({
|
|
532
532
|
minHeight: height,
|
|
@@ -536,7 +536,7 @@ const dateTimePickerStyles = {
|
|
|
536
536
|
),
|
|
537
537
|
...getTypographyStyles(
|
|
538
538
|
theme.generalSettings.isMobile,
|
|
539
|
-
ownerState
|
|
539
|
+
ownerState?.size || "medium",
|
|
540
540
|
"body"
|
|
541
541
|
)
|
|
542
542
|
}
|
|
@@ -553,12 +553,12 @@ const dateTimePickerStyles = {
|
|
|
553
553
|
margin: 0,
|
|
554
554
|
...getTypographyStyles(
|
|
555
555
|
theme.generalSettings.isMobile,
|
|
556
|
-
ownerState
|
|
556
|
+
ownerState?.size || "medium",
|
|
557
557
|
"body"
|
|
558
558
|
),
|
|
559
559
|
...getHeightSizeStyles(
|
|
560
560
|
theme.generalSettings.isMobile,
|
|
561
|
-
ownerState
|
|
561
|
+
ownerState?.size || "small",
|
|
562
562
|
"action",
|
|
563
563
|
(height) => ({
|
|
564
564
|
minHeight: height,
|
|
@@ -606,7 +606,7 @@ const dateTimePickerStyles = {
|
|
|
606
606
|
margin: 0,
|
|
607
607
|
...getHeightSizeStyles(
|
|
608
608
|
theme.generalSettings.isMobile,
|
|
609
|
-
ownerState
|
|
609
|
+
ownerState?.size || "small",
|
|
610
610
|
"action",
|
|
611
611
|
(height) => ({
|
|
612
612
|
minHeight: height,
|
|
@@ -617,7 +617,7 @@ const dateTimePickerStyles = {
|
|
|
617
617
|
),
|
|
618
618
|
...getTypographyStyles(
|
|
619
619
|
theme.generalSettings.isMobile,
|
|
620
|
-
ownerState
|
|
620
|
+
ownerState?.size || "medium",
|
|
621
621
|
"body"
|
|
622
622
|
)
|
|
623
623
|
},
|
|
@@ -653,7 +653,7 @@ const dateTimePickerStyles = {
|
|
|
653
653
|
},
|
|
654
654
|
...getHeightSizeStyles(
|
|
655
655
|
theme.generalSettings.isMobile,
|
|
656
|
-
ownerState
|
|
656
|
+
ownerState?.size || "small",
|
|
657
657
|
"action",
|
|
658
658
|
(height) => ({
|
|
659
659
|
minHeight: height,
|
|
@@ -679,7 +679,7 @@ const dateTimePickerStyles = {
|
|
|
679
679
|
borderColor: theme.vars.palette.border.default,
|
|
680
680
|
...getHeightSizeStyles(
|
|
681
681
|
theme.generalSettings.isMobile,
|
|
682
|
-
ownerState
|
|
682
|
+
ownerState?.size || "medium",
|
|
683
683
|
"action",
|
|
684
684
|
(height) => ({
|
|
685
685
|
height,
|
|
@@ -696,7 +696,7 @@ const dateTimePickerStyles = {
|
|
|
696
696
|
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
697
697
|
...getTypographyStyles(
|
|
698
698
|
theme.generalSettings.isMobile,
|
|
699
|
-
ownerState
|
|
699
|
+
ownerState?.size || "medium",
|
|
700
700
|
"body"
|
|
701
701
|
)
|
|
702
702
|
}
|
|
@@ -710,7 +710,7 @@ const dateTimePickerStyles = {
|
|
|
710
710
|
skeleton: ({ theme, ownerState }) => ({
|
|
711
711
|
...getHeightSizeStyles(
|
|
712
712
|
theme.generalSettings.isMobile,
|
|
713
|
-
ownerState
|
|
713
|
+
ownerState?.size || "small",
|
|
714
714
|
"action",
|
|
715
715
|
(height) => ({
|
|
716
716
|
height,
|