@m4l/components 6.0.1 → 7.0.0-alpha1
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 +21 -0
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/Icon/types.d.ts +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +1 -1
- package/components/mui_extended/Badge/Badge.styles.d.ts +2 -0
- package/components/mui_extended/Badge/constants.d.ts +1 -0
- package/components/mui_extended/Badge/slots/BadgeEnum.d.ts +3 -0
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +6 -0
- package/components/mui_extended/Badge/slots/index.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +9 -0
- package/components/mui_extended/IconButton/IconButton.styles.d.ts +2 -0
- package/components/mui_extended/IconButton/constants.d.ts +1 -0
- package/components/mui_extended/IconButton/helpers/evalIconColor.d.ts +7 -0
- package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +5 -0
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +14 -0
- package/components/mui_extended/IconButton/slots/index.d.ts +2 -0
- package/components/mui_extended/IconButton/types.d.ts +18 -26
- package/contexts/index.d.ts +3 -3
- package/hooks/useFormAddEdit/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +3 -2
- package/{vendor-B-B0U9GM.js → vendor-BLNnjAkx.js} +440 -193
- package/components/mui_extended/Badge/classes/constants.d.ts +0 -1
- package/components/mui_extended/Badge/classes/index.d.ts +0 -6
- package/components/mui_extended/Badge/classes/types.d.ts +0 -6
- package/components/mui_extended/Badge/styles.d.ts +0 -2
- package/components/mui_extended/Badge/tests/constants.d.ts +0 -1
- package/components/mui_extended/Badge/tests/utils.d.ts +0 -2
- package/components/mui_extended/IconButton/classes/constants.d.ts +0 -1
- package/components/mui_extended/IconButton/classes/index.d.ts +0 -8
- package/components/mui_extended/IconButton/classes/types.d.ts +0 -15
- package/components/mui_extended/IconButton/styledIconButton.d.ts +0 -2
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +0 -2
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/types.d.ts +0 -3
- /package/{contexts → components/hook-form}/RHFormContext/classes/constants.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/classes/index.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/classes/types.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/dictionary.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/index.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/styles.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/types.d.ts +0 -0
package/@types/types.d.ts
CHANGED
|
@@ -34,6 +34,13 @@ import { LabelOwnerState, LabelSlotsType } from '../components/Label/types';
|
|
|
34
34
|
type Theme = Omit<MuiTheme, 'components'>;
|
|
35
35
|
import { TooltipOwnerState, TooltipSlotsType } from '../components/mui_extended/Tooltip/types';
|
|
36
36
|
|
|
37
|
+
import type {
|
|
38
|
+
IconButtonOwnerState,
|
|
39
|
+
IconButtonSlotsType,
|
|
40
|
+
} from '../components/mui_extended/IconButton/types';
|
|
41
|
+
|
|
42
|
+
import type { BadgeSlotsType, BadgeOwnerState } from '../components/mui_extended/Badge/types';
|
|
43
|
+
|
|
37
44
|
declare module '@mui/material/styles' {
|
|
38
45
|
// Define the slots in the theme
|
|
39
46
|
interface ComponentNameToClassKey {
|
|
@@ -49,6 +56,8 @@ declare module '@mui/material/styles' {
|
|
|
49
56
|
M4LHelperError: HelperErrorOwnerSlotsType;
|
|
50
57
|
M4LLabel: LabelSlotsType;
|
|
51
58
|
M4LTooltip: TooltipSlotsType;
|
|
59
|
+
M4LIconButton: IconButtonSlotsType;
|
|
60
|
+
M4LBadge: BadgeSlotsType;
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
interface ComponentsPropsList {
|
|
@@ -65,6 +74,8 @@ declare module '@mui/material/styles' {
|
|
|
65
74
|
M4LHelperError: Partial<HelperErrorOwnerState>;
|
|
66
75
|
M4LLabel: Partial<LabelOwnerState>;
|
|
67
76
|
M4LTooltip: Partial<TooltipOwnerState>;
|
|
77
|
+
M4LIconButton: Partial<IconButtonOwnerState>;
|
|
78
|
+
M4LBadge: Partial<BadgeOwnerState>;
|
|
68
79
|
}
|
|
69
80
|
|
|
70
81
|
interface Components {
|
|
@@ -128,5 +139,15 @@ declare module '@mui/material/styles' {
|
|
|
128
139
|
styleOverrides?: ComponentsOverrides<Theme>['M4LTooltip'];
|
|
129
140
|
variants?: ComponentsVariants['M4LTooltip'];
|
|
130
141
|
};
|
|
142
|
+
M4LIconButton?: {
|
|
143
|
+
defaultProps?: ComponentsPropsList['M4LIconButton'];
|
|
144
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LIconButton'];
|
|
145
|
+
variants?: ComponentsVariants['M4LIconButton'];
|
|
146
|
+
};
|
|
147
|
+
M4LBadge?: {
|
|
148
|
+
defaultProps?: ComponentsPropsList['M4LBadge'];
|
|
149
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LBadge'];
|
|
150
|
+
variants?: ComponentsVariants['M4LBadge'];
|
|
151
|
+
};
|
|
131
152
|
}
|
|
132
153
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GridLayoutClasses } from './types';
|
|
2
2
|
export declare const gridLayoutClasses: GridLayoutClasses;
|
|
3
|
-
export declare const useUtilityClasses: () => Record<"static" | "root" | "dragging" | "colapsed" | "resizing" | "gridItemRoot" | "gridItemPlaceholder" | "gridItemFreeMove" | "maximizeMe" | "maximizeOther" | "resizeHide" | "
|
|
3
|
+
export declare const useUtilityClasses: () => Record<"static" | "root" | "dragging" | "invisible" | "colapsed" | "resizing" | "gridItemRoot" | "gridItemPlaceholder" | "gridItemFreeMove" | "maximizeMe" | "maximizeOther" | "resizeHide" | "cssTransforms", string>;
|
|
4
4
|
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -33,7 +33,7 @@ export interface IconProps extends Pick<TooltipProps, 'placement'> {
|
|
|
33
33
|
/**
|
|
34
34
|
* Esquema de color a aplicar al componente de los valores definidos en 'ColorSchemeComponent'.
|
|
35
35
|
*/
|
|
36
|
-
color?: 'primary.main' | 'text.primary' | 'primary.contrastText' | 'info.main' | '
|
|
36
|
+
color?: 'primary.main' | 'text.primary' | 'primary.contrastText' | 'info.main' | 'success.main' | 'error.main' | 'warning.main';
|
|
37
37
|
/**
|
|
38
38
|
* Clase externa
|
|
39
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const RHFormProviderStyled: import("@emotion/styled").StyledComponent<import("
|
|
1
|
+
export declare const RHFormProviderStyled: import("@emotion/styled").StyledComponent<import("../../../../../../../hook-form/RHFormContext/types").FormProviderProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BADGE_LABEL_KEY_COMPONENT = "M4LBadge";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
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"> & {
|
|
3
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
4
|
+
}, "children" | "className" | "style" | "color" | "components" | "sx" | "classes" | "componentsProps" | "slotProps" | "slots" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero" | "variant">, "children" | "className" | "onResize" | "style" | "color" | "hidden" | "slot" | "title" | "onChange" | "dir" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "components" | "content" | "translate" | "sx" | "ref" | "key" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "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-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" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "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" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").BadgeOwnerState> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import("../types").BadgeOwnerState> & Record<string, unknown>;
|
|
6
|
+
}, {}, {}>;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { BadgeProps as MUIBadgeProps } from '@mui/material';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
import { BADGE_LABEL_KEY_COMPONENT } from './constants';
|
|
4
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
5
|
+
import { BadgeSlots } from './slots';
|
|
6
|
+
import { Sizes } from '@m4l/styles';
|
|
2
7
|
export interface BadgeProps extends MUIBadgeProps {
|
|
3
8
|
dataTestId?: string;
|
|
9
|
+
size?: Sizes;
|
|
4
10
|
}
|
|
11
|
+
export declare type BadgeSlotsType = keyof typeof BadgeSlots;
|
|
12
|
+
export declare type BadgeOwnerState = {};
|
|
13
|
+
export declare type BadgeStyles = Partial<OverridesStyleRules<BadgeSlotsType, typeof BADGE_LABEL_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ICON_BUTTON_KEY_COMPONENT = "M4LIconButton";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPalletColor } from '@m4l/styles';
|
|
2
|
+
import { IconButtonVariants } from '../types';
|
|
3
|
+
import { IconProps } from '../../../Icon/types';
|
|
4
|
+
/**
|
|
5
|
+
* Evalúa el color correcto según figma para ser usado en el slot icon.
|
|
6
|
+
*/
|
|
7
|
+
export declare const evalIconColor: (color: ComponentPalletColor, variant: IconButtonVariants) => IconProps['color'];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledMUIIconButton: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, "children" | "className" | "style" | "color" | "size" | "action" | "sx" | "classes" | "tabIndex" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge">, "value" | "children" | "className" | "onResize" | "style" | "color" | "hidden" | "form" | "slot" | "title" | "size" | "type" | "name" | "onChange" | "action" | "dir" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "content" | "translate" | "sx" | "ref" | "key" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "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-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" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "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" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").IconButtonOwnerState> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import("../types").IconButtonOwnerState> & Record<string, unknown>;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const IconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../../Icon").IconProps, keyof import("../../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").IconButtonOwnerState> & Record<string, unknown> & {
|
|
8
|
+
ownerState: Partial<import("../types").IconButtonOwnerState> & Record<string, unknown>;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export declare const BadgeStyled: 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"> & {
|
|
11
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
12
|
+
}, "children" | "className" | "style" | "color" | "components" | "sx" | "classes" | "componentsProps" | "slotProps" | "slots" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero" | "variant">, "children" | "className" | "onResize" | "style" | "color" | "hidden" | "slot" | "title" | "onChange" | "dir" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "components" | "content" | "translate" | "sx" | "ref" | "key" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "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-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" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "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" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").IconButtonOwnerState> & Record<string, unknown> & {
|
|
13
|
+
ownerState: Partial<import("../types").IconButtonOwnerState> & Record<string, unknown>;
|
|
14
|
+
}, {}, {}>;
|
|
@@ -1,35 +1,27 @@
|
|
|
1
1
|
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
+
import { PaletteColor, Theme } from '@mui/material/styles';
|
|
3
3
|
import { IconProps } from '../../Icon/types';
|
|
4
4
|
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
5
|
-
|
|
5
|
+
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
6
|
+
import { ICON_BUTTON_KEY_COMPONENT } from './constants';
|
|
7
|
+
import { IconButtonSlots } from './slots';
|
|
8
|
+
import { BadgeProps } from '../Badge';
|
|
9
|
+
export declare type IconButtonVariants = 'contained' | 'outline' | 'text';
|
|
6
10
|
export declare type IconButtonSize = 'small' | 'medium';
|
|
7
|
-
export interface IconButtonProps extends Omit<IconProps, 'size'>, Omit<MUIIconButtonProps, 'size' | 'color'> {
|
|
11
|
+
export interface IconButtonProps extends Omit<IconProps, 'size' | 'color'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled'>, Pick<BadgeProps, 'badgeContent'> {
|
|
8
12
|
tooltip?: string;
|
|
9
13
|
dictionaryTooltipId?: string;
|
|
10
14
|
variant?: IconButtonVariants;
|
|
11
|
-
size?:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
size: IconButtonSize;
|
|
16
|
-
isSkeleton: boolean;
|
|
17
|
-
isFocus: boolean;
|
|
18
|
-
isDisabled?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare enum IconButtonSlots {
|
|
21
|
-
root = "root",
|
|
22
|
-
skeleton = "skeleton",
|
|
23
|
-
sizemSall = "sizemSall",
|
|
24
|
-
sizeMedium = "sizeMedium",
|
|
25
|
-
variantPrimary = "variantPrimary",
|
|
26
|
-
variantSecondary = "variantSecondary",
|
|
27
|
-
variantLine = "variantLine",
|
|
28
|
-
isFocus = "isFocus",
|
|
29
|
-
isDisabled = "isDisabled",
|
|
30
|
-
/**Toggle */
|
|
31
|
-
togglePressed = "togglePressed",
|
|
32
|
-
toggleNotPressed = "toggleNotPressed"
|
|
15
|
+
size?: Sizes;
|
|
16
|
+
withBadge?: boolean;
|
|
17
|
+
componentPaletteColor?: ComponentPalletColor;
|
|
18
|
+
disabled?: boolean;
|
|
33
19
|
}
|
|
20
|
+
export declare type OwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'componentPaletteColor'> & {
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
paletteColor: PaletteColor;
|
|
23
|
+
};
|
|
34
24
|
export declare type IconButtonSlotsType = keyof typeof IconButtonSlots;
|
|
35
|
-
export
|
|
25
|
+
export interface IconButtonOwnerState extends IconButtonProps, OwnerState {
|
|
26
|
+
}
|
|
27
|
+
export declare type IconButtonStyles = Partial<OverridesStyleRules<IconButtonSlotsType, typeof ICON_BUTTON_KEY_COMPONENT, Theme> | undefined> | undefined;
|
package/contexts/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { DynamicMFParmsProvider, DynamicMFParmsContext, MemonizedDynamicMFParmsProvider, } from '../components/areas/contexts/DynamicMFParmsContext';
|
|
2
2
|
export * from './ModalContext/index';
|
|
3
3
|
export * from './ModalContext/types';
|
|
4
|
-
export type { FormInitialValues, FormStatusLoad } from '
|
|
5
|
-
export { RHFormProvider, FormProviderCustom, useCustomForm } from '
|
|
6
|
-
export { getFormComponentsDictionary } from '
|
|
4
|
+
export type { FormInitialValues, FormStatusLoad, } from '../components/hook-form/RHFormContext/types';
|
|
5
|
+
export { RHFormProvider, FormProviderCustom, useCustomForm, } from '../components/hook-form/RHFormContext';
|
|
6
|
+
export { getFormComponentsDictionary } from '../components/hook-form/RHFormContext/dictionary';
|
|
7
7
|
export { useAppearanceComponentStore, AppearanceComponentProvider, } from './AppearanceComponentContext';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormStatusLoad } from '../../
|
|
1
|
+
import { FormStatusLoad } from '../../components/hook-form/RHFormContext/types';
|
|
2
2
|
import { UseFormAddEditProps } from './types';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare function useFormAddEdit<TValues extends FieldValues = FieldValues, TEndpointValues extends FieldValues = FieldValues>(props: UseFormAddEditProps<TValues, TEndpointValues>): {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x, s, bM, bA, as, au, av, at, ar, A, by, bG, cl, k, p, o, l, bN, bR, bL, _, bO, bP, c1, c2, bQ, ah, aj, ai, al, ag, af, ak, am, ae, aX, a6, D, a0, ac, ay, ao, ce, cd, ch, aA, bH, bo, ap, I, c0, c, aL, c3, w, aq, aJ, bS, aK, bT, aM, bU, bb, L, bK, bd, aR, aT, aN, aP, aZ, aS, aW, cf, b_, bZ, cn, b5, cm, M, d, b, bf, N, bi, bm, bV, bl, bn, a8, a3, a_, c4, bE, bD, bF, a9, aI, P, bp, R, B, V, Q, E, H, F, J, O, G, X, Y, Z, cg, bq, br, aB, bs, S, bJ, bx, bt, c5, bX, c7, c9, c8, c6, T, bu, bw, cb, cc, b$, bI, ca, a1, ba, b9, m, W, aD, aC, aE, a$, b0, n, bv, ax, b8, bh, bk, az, bB, bz, t, y, aw, g, a, ab, an, cj, a5, $, a7, a4, aa, ad, bc, be, aV, aQ, aY, bY, b7, b6, bg, bj, bW, K, C, z, U, a2, cr, aG, aF, b1, b2, b3, b4, ck, cu, ci, u, co, cs, ct, aO, aU, cp, bC, r, cv, cq, q, e, f, v, i, j, h, aH } from "./vendor-
|
|
1
|
+
import { x, s, bM, bA, as, au, av, at, ar, A, by, bG, cl, k, p, o, l, bN, bR, bL, _, bO, bP, c1, c2, bQ, ah, aj, ai, al, ag, af, ak, am, ae, aX, a6, D, a0, ac, ay, ao, ce, cd, ch, aA, bH, bo, ap, I, c0, c, aL, c3, w, aq, aJ, bS, aK, bT, aM, bU, bb, L, bK, bd, aR, aT, aN, aP, aZ, aS, aW, cf, b_, bZ, cn, b5, cm, M, d, b, bf, N, bi, bm, bV, bl, bn, a8, a3, a_, c4, bE, bD, bF, a9, aI, P, bp, R, B, V, Q, E, H, F, J, O, G, X, Y, Z, cg, bq, br, aB, bs, S, bJ, bx, bt, c5, bX, c7, c9, c8, c6, T, bu, bw, cb, cc, b$, bI, ca, a1, ba, b9, m, W, aD, aC, aE, a$, b0, n, bv, ax, b8, bh, bk, az, bB, bz, t, y, aw, g, a, ab, an, cj, a5, $, a7, a4, aa, ad, bc, be, aV, aQ, aY, bY, b7, b6, bg, bj, bW, K, C, z, U, a2, cr, aG, aF, b1, b2, b3, b4, ck, cu, ci, u, co, cs, ct, aO, aU, cp, bC, r, cv, cq, q, e, f, v, i, j, h, aH } from "./vendor-BLNnjAkx.js";
|
|
2
2
|
export {
|
|
3
3
|
x as AREAS_DICCTIONARY,
|
|
4
4
|
s as AREAS_DICTIONARY_ID,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0alpha1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"lint-staged": {
|
|
6
6
|
"src/**/*.{js,ts,jsx,tsx}": "eslint --max-warnings=0 --fix",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"leaflet.markercluster": "^1.5.3",
|
|
27
27
|
"lodash.clonedeep": "^4.0.0",
|
|
28
28
|
"lodash.debounce": "^4.0.0",
|
|
29
|
-
"lodash.throttle": "^4.0.0",
|
|
30
29
|
"lodash.merge": "^4.0.0",
|
|
30
|
+
"lodash.throttle": "^4.0.0",
|
|
31
31
|
"npm": "^9.6.2",
|
|
32
32
|
"qrcode.react": "^3.1.0",
|
|
33
33
|
"react-chartjs-2": "^5.2.0",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"react-transition-group": "^4.4.5",
|
|
46
46
|
"simplebar-react": "3.2.6",
|
|
47
47
|
"storybook": "8.2.9",
|
|
48
|
+
"storybook-addon-pseudo-states": "^4.0.2",
|
|
48
49
|
"yup": "^0.32.11",
|
|
49
50
|
"zustand": "4.3.6"
|
|
50
51
|
},
|