@m4l/components 9.1.39 → 9.1.41
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/@types/types.d.ts +16 -0
- package/components/AccountPopover/AccountPopover.js +32 -39
- package/components/AccountPopover/{style.js → AccountPopover.styles.js} +17 -10
- package/components/AccountPopover/slots/AccountPopoverEnum.d.ts +3 -3
- package/components/AccountPopover/slots/AccountPopoverEnum.js +3 -3
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +8 -8
- package/components/AccountPopover/slots/AccountPopoverSlots.js +16 -16
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +3 -2
- package/components/AccountPopover/subcomponents/MyAvatar/MyAvatar.js +2 -3
- package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +4 -0
- package/components/AppBar/AppBar.js +1 -1
- package/components/AppBar/slots/AppBarSlots.d.ts +6 -6
- package/components/Chip/slots/ChipSlots.d.ts +2 -2
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +4 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +4 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +4 -0
- package/components/DragResizeWindow/slots/DragResizeWindowSlots.d.ts +2 -2
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +16 -16
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +16 -16
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/slots/IconSlots.d.ts +2 -2
- package/components/Icon/types.d.ts +1 -1
- package/components/Image/Image.d.ts +5 -0
- package/components/Image/Image.js +1 -1
- package/components/Image/hoc/WithTrackWindowScroll.d.ts +4 -0
- package/components/Image/image.styles.js +20 -7
- package/components/Image/slots/ImageEnum.d.ts +5 -5
- package/components/Image/slots/ImageEnum.js +5 -5
- package/components/Image/slots/ImageSlots.js +10 -10
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +5 -0
- package/components/Image/types.d.ts +1 -1
- package/components/Image/utils/get-scroll-ancestor.d.ts +4 -0
- package/components/Image/utils/isIntersectionObserverAvailable.d.ts +4 -0
- package/components/InputNumberSpinner/slots/InputNumberSpinnerSlots.d.ts +1 -1
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/LanguagePopover.d.ts +5 -0
- package/components/MFLoader/MFLoader.js +3 -3
- package/components/MenuActions/MenuActions.d.ts +2 -2
- package/components/MenuActions/MenuActions.styles.d.ts +1 -0
- package/components/MenuActions/MenuActions.styles.js +8 -0
- package/components/MenuActions/dictionary.d.ts +14 -0
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
- package/components/MenuActions/types.d.ts +26 -0
- package/components/ModalDialog/ModalDialog.styles.js +3 -1
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +4 -4
- package/components/ModalDialog/types.d.ts +1 -1
- package/components/PaperForm/PaperForm.js +1 -1
- package/components/PaperForm/slots/PaperFormSlots.d.ts +3 -3
- package/components/SideBar/slots/SideBarSlots.d.ts +15 -15
- package/components/SideBar/subcomponents/ContentComponent/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/index.js +4 -5
- package/components/SideBar/subcomponents/ContentGroups/styles.js +5 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +3 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.d.ts +1 -1
- package/components/SideBar/subcomponents/FooterSidebar/index.d.ts +1 -1
- package/components/SideBar/subcomponents/FooterSidebar/styles.js +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +1 -1
- package/components/SideBar/types.d.ts +1 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +5 -5
- package/components/WindowBase/WindowBase.d.ts +2 -2
- package/components/WindowBase/WindowBase.js +1 -1
- package/components/WindowBase/WindowBase.styles.js +24 -24
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +7 -7
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts +2 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +2 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +4 -4
- package/components/WindowBase/types.d.ts +2 -2
- package/components/WindowConfirm/WindowConfirm.js +1 -1
- package/components/WindowConfirm/WindowConfirm.styles.js +5 -1
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +8 -8
- package/components/WindowConfirm/types.d.ts +1 -1
- package/components/animate/variants/background.d.ts +9 -9
- package/components/animate/variants/bounce.d.ts +9 -9
- package/components/animate/variants/fade.d.ts +20 -20
- package/components/animate/variants/flip.d.ts +6 -6
- package/components/animate/variants/rotate.d.ts +3 -3
- package/components/animate/variants/scale.d.ts +6 -6
- package/components/animate/variants/slide.d.ts +16 -16
- package/components/animate/variants/transition.d.ts +3 -3
- package/components/animate/variants/zoom.d.ts +15 -15
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.js +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +4 -0
- package/components/areas/contexts/AreasContext/store.js +1 -397
- package/components/areas/types.d.ts +27 -2
- package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +4 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +1 -1
- package/components/formatters/BooleanFormatter/types.d.ts +1 -1
- package/components/gclick/MyDevice/slots/MyDeviceSlots.d.ts +2 -2
- package/components/gclick/MyDeviceStatus/slots/MyDeviceStatusSlots.d.ts +2 -2
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.js +3 -3
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +2 -2
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +4 -0
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +2 -2
- package/components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps.js +1 -1
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/ MapPopupMyGpsSlots.d.ts +3 -3
- package/components/maps/components/Map/slots/MapSlots.d.ts +3 -3
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +2 -2
- package/components/mui_extended/Accordion/Accordion.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +10 -3
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +18 -6
- package/components/mui_extended/Accordion/styles.js +9 -7
- package/components/mui_extended/Accordion/types.d.ts +2 -1
- package/components/mui_extended/Autocomplete/slots /AutocompleteSlots.d.ts +3 -3
- package/components/mui_extended/Avatar/Avatar.js +19 -12
- package/components/mui_extended/Avatar/constants.d.ts +1 -0
- package/components/mui_extended/Avatar/constants.js +4 -0
- package/components/mui_extended/Avatar/slots/AvatarEnum.d.ts +3 -0
- package/components/mui_extended/Avatar/slots/AvatarEnum.js +7 -0
- package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +5 -0
- package/components/mui_extended/Avatar/slots/AvatarSlots.js +12 -0
- package/components/mui_extended/Avatar/styles.d.ts +2 -1
- package/components/mui_extended/Avatar/styles.js +25 -5
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +7 -3
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.js +8 -8
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/types.d.ts +2 -2
- package/components/mui_extended/Avatar/tests/Avatar.test.d.ts +1 -0
- package/components/mui_extended/Avatar/types.d.ts +11 -3
- package/components/mui_extended/Badge/Badge.js +1 -1
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/Button.d.ts +1 -1
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.styles.js +2 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
- package/components/mui_extended/CheckBox/types.d.ts +1 -1
- package/components/mui_extended/Dialog/Dialog.js +1 -1
- package/components/mui_extended/Dialog/Dialog.styles.js +5 -3
- package/components/mui_extended/Dialog/slots/DialogSlots.d.ts +2 -2
- package/components/mui_extended/Dialog/types.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.d.ts +2 -2
- package/components/mui_extended/IconButton/IconButton.js +1 -1
- package/components/mui_extended/IconButton/IconButton.styles.js +12 -4
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +3 -3
- package/components/mui_extended/IconButton/types.d.ts +1 -1
- package/components/mui_extended/ImageButton/ImageButton.d.ts +4 -0
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/MenuItem.d.ts +2 -2
- package/components/mui_extended/MenuItem/MenuItem.js +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +20 -12
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
- package/components/mui_extended/Pager/classes/index.d.ts +1 -1
- package/components/mui_extended/Popover/Popover.d.ts +5 -0
- package/components/mui_extended/Popover/Popover.styles.js +8 -0
- package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.d.ts +4 -0
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/Tab/Tab.styles.d.ts +1 -0
- package/components/mui_extended/Tab/Tab.styles.js +10 -0
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.d.ts +2 -2
- package/components/mui_extended/TextField/TextField.styles.js +4 -4
- package/components/mui_extended/TextField/constants.js +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.js +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.styles.js +1 -1
- package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.js +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/Tooltip.styles.js +2 -1
- package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/types.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/Typography/typography.styles.js +2 -2
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +5 -5
- package/package.json +1 -1
- package/utils/getComponentSlotRoot.js +2 -2
- package/components/mui_extended/Avatar/classes/constants.d.ts +0 -1
- package/components/mui_extended/Avatar/classes/constants.js +0 -4
- package/components/mui_extended/Avatar/classes/index.d.ts +0 -10
- package/components/mui_extended/Avatar/classes/index.js +0 -25
- package/components/mui_extended/Avatar/classes/types.d.ts +0 -7
- package/components/mui_extended/Avatar/index.js +0 -1
- package/components/mui_extended/Avatar/tests/constants.d.ts +0 -1
- package/components/mui_extended/Avatar/tests/constants.js +0 -4
- package/components/mui_extended/Avatar/tests/index.test.d.ts +0 -5
- package/components/mui_extended/Avatar/tests/utils.d.ts +0 -2
- package/components/mui_extended/Avatar/tests/utils.js +0 -7
- /package/components/AccountPopover/{style.d.ts → AccountPopover.styles.d.ts} +0 -0
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { Avatar as Avatar$1 } from "@mui/material";
|
|
4
3
|
import { useModuleSkeleton } from "@m4l/core";
|
|
5
4
|
import { S as SkeletonAvatar } from "./subcomponents/SkeletonAvatar/index.js";
|
|
6
|
-
import { u as useAvatarUtilityClasses } from "./classes/index.js";
|
|
7
|
-
import { A as AvatarRoot } from "./styles.js";
|
|
8
5
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.js";
|
|
9
|
-
import { g as
|
|
6
|
+
import { g as getNameDataTestId } from "../../../test/getNameDataTestId.js";
|
|
7
|
+
import { A as AvatarRootStyled } from "./slots/AvatarSlots.js";
|
|
8
|
+
import { A as AVATAR_KEY } from "./constants.js";
|
|
9
|
+
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
10
10
|
import clsx from "clsx";
|
|
11
|
+
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
11
12
|
const Avatar = forwardRef(
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
(props, ref) => {
|
|
14
|
+
const { size, dataTestid, className, ...others } = props;
|
|
14
15
|
const isSkeleton = useModuleSkeleton();
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const { currentSize } = useComponentSize(size);
|
|
17
|
+
const classRoot = getComponentSlotRoot(AVATAR_KEY);
|
|
18
|
+
const ownerState = { size: currentSize === "large" ? "medium" : currentSize };
|
|
19
|
+
return isSkeleton ? /* @__PURE__ */ jsx(SkeletonAvatar, { width: 32, height: 32 }) : /* @__PURE__ */ jsx(
|
|
20
|
+
AvatarRootStyled,
|
|
18
21
|
{
|
|
19
|
-
className: clsx(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
className: clsx(classRoot, className),
|
|
23
|
+
ref,
|
|
24
|
+
sizes: size,
|
|
25
|
+
variant: "rounded",
|
|
26
|
+
ownerState,
|
|
27
|
+
...others,
|
|
28
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId(AVATAR_KEY, "root", dataTestid) } : {}
|
|
22
29
|
}
|
|
23
30
|
);
|
|
24
31
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AVATAR_KEY = "M4LAvatar";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const AvatarRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').AvatarOwnProps & import('@mui/material').AvatarSlotsAndSlotProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, "children" | "style" | "variant" | "sx" | "classes" | "className" | "slotProps" | "slots" | "src" | "sizes" | "alt" | "srcSet" | "imgProps">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "onResize" | "onResizeCapture" | "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" | "slotProps" | "slots" | "key" | "src" | "sizes" | "alt" | "srcSet" | "imgProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AvatarOwnerState> & Record<string, unknown> & {
|
|
4
|
+
ownerState: Partial<import('../types').AvatarOwnerState> & Record<string, unknown>;
|
|
5
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Avatar } from "@mui/material";
|
|
2
|
+
import { styled } from "@mui/material/styles";
|
|
3
|
+
import { A as AVATAR_KEY } from "../constants.js";
|
|
4
|
+
import { A as AvatarSlots } from "./AvatarEnum.js";
|
|
5
|
+
import { a as avatarStyles } from "../styles.js";
|
|
6
|
+
const AvatarRootStyled = styled(Avatar, {
|
|
7
|
+
name: AVATAR_KEY,
|
|
8
|
+
slot: AvatarSlots.avatarRoot
|
|
9
|
+
})(avatarStyles?.avatarRoot);
|
|
10
|
+
export {
|
|
11
|
+
AvatarRootStyled as A
|
|
12
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AvatarStyles } from './types';
|
|
2
|
+
export declare const avatarStyles: AvatarStyles;
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const avatarStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* *********************************************
|
|
4
|
+
* Estilos para el root del componente Avatar.
|
|
5
|
+
* *********************************************
|
|
6
|
+
* @author Andrés Quintero - automatic
|
|
7
|
+
* @createdAt 2024-12-13 12:26:04 - automatic
|
|
8
|
+
* @updatedAt 2024-12-18 10:21:54 - automatic
|
|
9
|
+
* @updatedUser Andrés Quintero - automatic
|
|
10
|
+
*/
|
|
11
|
+
avatarRoot: ({ theme, ownerState }) => ({
|
|
12
|
+
width: theme.vars.size[theme.generalSettings.isMobile ? "desktop" : "mobile"][ownerState.size ?? "medium"].action,
|
|
13
|
+
height: theme.vars.size[theme.generalSettings.isMobile ? "desktop" : "mobile"][ownerState.size ?? "medium"].action,
|
|
14
|
+
"&.MuiAvatar-rounded": {
|
|
15
|
+
borderRadius: theme.vars.size.borderRadius.r1,
|
|
16
|
+
fontSize: theme.vars.size.typography[theme.generalSettings.isMobile ? "desktop" : "mobile"].medium.paragraph,
|
|
17
|
+
color: theme.vars.palette.default.contrastText,
|
|
18
|
+
fontWeight: theme.vars.size.typography.weight.dens
|
|
19
|
+
},
|
|
20
|
+
"&.MuiAvatar-colorDefault": {
|
|
21
|
+
backgroundColor: "transparent"
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
};
|
|
5
25
|
export {
|
|
6
|
-
|
|
26
|
+
avatarStyles as a
|
|
7
27
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SkeletonAvatarProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Skeleton Avatar component.
|
|
4
|
+
* @author Andrés Quintero - automatic
|
|
5
|
+
* @createdAt 2024-12-13 12:26:04 - automatic
|
|
6
|
+
* @updatedAt 2024-12-13 12:38:40 - automatic
|
|
7
|
+
* @updatedUser Andrés Quintero - automatic
|
|
4
8
|
*/
|
|
5
|
-
export declare const SkeletonAvatar: (props:
|
|
9
|
+
export declare const SkeletonAvatar: (props: SkeletonAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Skeleton } from "@mui/material";
|
|
3
|
-
import { g as getNameAvatarDataTestId } from "../../tests/utils.js";
|
|
4
2
|
import { T as TEST_PROP_ID } from "../../../../../test/constants_no_mock.js";
|
|
3
|
+
import { g as getNameDataTestId } from "../../../../../test/getNameDataTestId.js";
|
|
4
|
+
import { A as AVATAR_KEY } from "../../constants.js";
|
|
5
|
+
import { S as Skeleton } from "../../../Skeleton/Skeleton.js";
|
|
5
6
|
const SkeletonAvatar = (props) => {
|
|
6
|
-
const {
|
|
7
|
+
const { width, height, variant = "rounded" } = props;
|
|
7
8
|
return /* @__PURE__ */ jsx(
|
|
8
9
|
Skeleton,
|
|
9
10
|
{
|
|
10
|
-
variant
|
|
11
|
-
width
|
|
12
|
-
height
|
|
13
|
-
|
|
14
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameAvatarDataTestId("skeleton") } : {}
|
|
11
|
+
variant,
|
|
12
|
+
width,
|
|
13
|
+
height,
|
|
14
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId(AVATAR_KEY, "root", "skeleton") } : {}
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
17
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { SkeletonProps } from '@mui/material';
|
|
2
|
+
export interface SkeletonAvatarProps extends SkeletonProps {
|
|
3
3
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Sizes } from '@m4l/styles';
|
|
2
|
+
import { AvatarProps as MUIAvatarProps, Theme } from '@mui/material';
|
|
3
|
+
import { AvatarSlots } from './slots/AvatarEnum';
|
|
4
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
5
|
+
import { AVATAR_KEY } from './constants';
|
|
6
|
+
export interface AvatarProps extends Omit<MUIAvatarProps, 'color' | 'size'> {
|
|
7
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
8
|
+
dataTestid?: string;
|
|
4
9
|
}
|
|
10
|
+
export type AvatarSlotsType = keyof typeof AvatarSlots;
|
|
11
|
+
export type AvatarStyles = OverridesStyleRules<AvatarSlotsType, typeof AVATAR_KEY, Theme>;
|
|
12
|
+
export type AvatarOwnerState = Pick<AvatarProps, 'size'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { B as BadgeRootStyled } from "./slots/BadgeSlots.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
5
5
|
import { B as BADGE_LABEL_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
7
7
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const BadgeRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').BadgeOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
2
2
|
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;
|
|
3
|
-
}, "children" | "components" | "color" | "style" | "variant" | "
|
|
3
|
+
}, "children" | "components" | "color" | "style" | "variant" | "sx" | "classes" | "className" | "componentsProps" | "slotProps" | "slots" | "max" | "badgeContent" | "anchorOrigin" | "invisible" | "overlap" | "showZero">, "children" | "ref" | "title" | "id" | "components" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "onResize" | "onResizeCapture" | "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" | "componentsProps" | "slotProps" | "slots" | "key" | "max" | "badgeContent" | "anchorOrigin" | "invisible" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').BadgeOwnerState> & Record<string, unknown> & {
|
|
4
4
|
ownerState: Partial<import('..').BadgeOwnerState> & Record<string, unknown>;
|
|
5
5
|
}, {}, {}>;
|
|
@@ -7,7 +7,7 @@ import { ButtonProps } from './types';
|
|
|
7
7
|
* @returns
|
|
8
8
|
* @author SebastianM - automatic
|
|
9
9
|
* @createdAt 2024-11-06 07:42:00 - automatic
|
|
10
|
-
* @updatedAt 2024-12-
|
|
10
|
+
* @updatedAt 2024-12-27 08:28:36 - automatic
|
|
11
11
|
* @updatedUser Andrés Quintero - automatic
|
|
12
12
|
*/
|
|
13
13
|
export declare const Button: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -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
|
-
}, "children" | "size" | "action" | "color" | "style" | "disabled" | "variant" | "
|
|
3
|
+
}, "children" | "size" | "action" | "color" | "style" | "disabled" | "variant" | "sx" | "classes" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "startIcon" | "endIcon" | "fullWidth" | "disableElevation">, "children" | "value" | "ref" | "title" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "onResize" | "onResizeCapture" | "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" | "form" | "key" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "startIcon" | "endIcon" | "fullWidth" | "disableElevation"> & 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> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const CheckBoxRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
|
|
3
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
4
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> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
|
|
5
5
|
ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
|
|
6
6
|
}, {}, {}>;
|
|
@@ -9,6 +9,6 @@ export declare const LabelCheckBoxStyled: import('@emotion/styled').StyledCompon
|
|
|
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" | "
|
|
12
|
+
}, "children" | "style" | "variant" | "width" | "height" | "animation" | "sx" | "classes" | "className">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "width" | "height" | "translate" | "animation" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "onResize" | "onResizeCapture" | "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" | "key"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
|
|
13
13
|
ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
|
|
14
14
|
}, {}, {}>;
|
|
@@ -44,4 +44,4 @@ export interface CheckBoxOwnerState {
|
|
|
44
44
|
CheckBoxColor?: Extract<ComponentPalletColor, 'primary'>;
|
|
45
45
|
}
|
|
46
46
|
export type CheckBoxSlotsType = keyof typeof CheckBoxSlots;
|
|
47
|
-
export type CheckBoxStyles =
|
|
47
|
+
export type CheckBoxStyles = OverridesStyleRules<CheckBoxSlotsType, typeof CHECK_BOX_KEY_COMPONENT, Theme>;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
4
4
|
import { D as DIALOG_KEY_COMPONENT } from "./constants.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { D as DialogRootStyled } from "./slots/DialogSlots.js";
|
|
8
8
|
import { D as DialogSlots } from "./slots/DialogEnum.js";
|
|
@@ -3,8 +3,8 @@ const dialogStyles = {
|
|
|
3
3
|
* Dialog Root style
|
|
4
4
|
* @author cesar - automatic
|
|
5
5
|
* @createdAt 2024-11-24 15:58:24 - automatic
|
|
6
|
-
* @updatedAt 2024-12-
|
|
7
|
-
* @updatedUser
|
|
6
|
+
* @updatedAt 2024-12-27 08:28:36 - automatic
|
|
7
|
+
* @updatedUser Andrés Quintero - automatic
|
|
8
8
|
*/
|
|
9
9
|
dialogRoot: ({ theme }) => ({
|
|
10
10
|
background: theme.vars.palette.background.backdrop,
|
|
@@ -20,7 +20,9 @@ const dialogStyles = {
|
|
|
20
20
|
justifyContent: "center",
|
|
21
21
|
overflow: "hidden"
|
|
22
22
|
}
|
|
23
|
-
})
|
|
23
|
+
}),
|
|
24
|
+
dialogBackDrop: {},
|
|
25
|
+
dialogStackMaster: {}
|
|
24
26
|
};
|
|
25
27
|
export {
|
|
26
28
|
dialogStyles as d
|
|
@@ -3,7 +3,7 @@ export declare const DialogRootStyled: import('@emotion/styled').StyledComponent
|
|
|
3
3
|
}, {}, {}>;
|
|
4
4
|
export declare const DialogBackDropStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').DialogOwnerState> & Record<string, unknown> & {
|
|
5
5
|
ownerState: Partial<import('..').DialogOwnerState> & Record<string, unknown>;
|
|
6
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
6
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
7
7
|
export declare const DialogStackMasterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').DialogOwnerState> & Record<string, unknown> & {
|
|
8
8
|
ownerState: Partial<import('..').DialogOwnerState> & Record<string, unknown>;
|
|
9
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
9
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
@@ -57,4 +57,4 @@ export type DialogOwnerState = Pick<DialogProps, 'variant'> & {
|
|
|
57
57
|
* - **DIALOG_KEY_COMPONENT** - Key used to register the `Dialog` component with the theme.
|
|
58
58
|
* - **Theme** - The theme object containing styling information.
|
|
59
59
|
*/
|
|
60
|
-
export type DialogStyles =
|
|
60
|
+
export type DialogStyles = OverridesStyleRules<DialogType, typeof DIALOG_KEY_COMPONENT, Theme>;
|
|
@@ -5,7 +5,7 @@ import { IconButtonProps } from './types';
|
|
|
5
5
|
* @returns
|
|
6
6
|
* @author Bruce Escobar - automatic
|
|
7
7
|
* @createdAt 2024-10-22 19:53:39 - automatic
|
|
8
|
-
* @updatedAt 2024-12-
|
|
9
|
-
* @updatedUser
|
|
8
|
+
* @updatedAt 2024-12-27 08:28:36 - automatic
|
|
9
|
+
* @updatedUser Andrés Quintero - automatic
|
|
10
10
|
*/
|
|
11
11
|
export declare const IconButton: import('react').ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useMemo } from "react";
|
|
3
3
|
import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
4
4
|
import { useTheme } from "@mui/material";
|
|
5
|
-
import {
|
|
5
|
+
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
6
6
|
import { e as evalIconColor } from "./helpers/evalIconColor.js";
|
|
7
7
|
import { I as ICON_BUTTON_KEY_COMPONENT } from "./constants.js";
|
|
8
8
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const iconButtonStyles = {
|
|
2
2
|
/**
|
|
3
3
|
* TODO: Documentar
|
|
4
|
-
* @updatedUser
|
|
5
|
-
* @updatedAt 2024-
|
|
4
|
+
* @updatedUser Andrés Quintero - automatic
|
|
5
|
+
* @updatedAt 2024-12-27 08:28:36 - automatic
|
|
6
6
|
* @createdAt 2024-10-22 19:53:39 - automatic
|
|
7
7
|
* @author Bruce Escobar - automatic
|
|
8
8
|
*/
|
|
@@ -139,8 +139,8 @@ const iconButtonStyles = {
|
|
|
139
139
|
* Comentado por el momento, falta de documentación en Figma de Badge
|
|
140
140
|
* @author Bruce Escobar - automatic
|
|
141
141
|
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
142
|
-
* @updatedAt 2024-
|
|
143
|
-
* @updatedUser
|
|
142
|
+
* @updatedAt 2024-12-27 08:28:36 - automatic
|
|
143
|
+
* @updatedUser Andrés Quintero - automatic
|
|
144
144
|
*/
|
|
145
145
|
badgeIconButton: () => ({
|
|
146
146
|
// '& [class*="MuiBadge-badge"]': {
|
|
@@ -178,6 +178,10 @@ const iconButtonStyles = {
|
|
|
178
178
|
}),
|
|
179
179
|
/**
|
|
180
180
|
* Slot de contenedor de reactNode
|
|
181
|
+
* @author Andrés Quintero - automatic
|
|
182
|
+
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
183
|
+
* @updatedAt 2024-12-27 08:28:36 - automatic
|
|
184
|
+
* @updatedUser Andrés Quintero - automatic
|
|
181
185
|
*/
|
|
182
186
|
containReact: ({ isSkeleton }) => ({
|
|
183
187
|
display: isSkeleton ? "none" : "flex",
|
|
@@ -186,6 +190,10 @@ const iconButtonStyles = {
|
|
|
186
190
|
}),
|
|
187
191
|
/**
|
|
188
192
|
* Slot skeleton con sus estilos de tamaño
|
|
193
|
+
* @author Andrés Quintero - automatic
|
|
194
|
+
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
195
|
+
* @updatedAt 2024-12-27 08:28:36 - automatic
|
|
196
|
+
* @updatedUser Andrés Quintero - automatic
|
|
189
197
|
*/
|
|
190
198
|
skeleton: ({ theme, ownerState }) => ({
|
|
191
199
|
"&.M4lclassCssSpecificity": {
|