@m4l/components 9.0.0 → 9.1.1
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/export.d.ts +0 -6
- package/@types/types.d.ts +119 -100
- package/components/AccountPopover/classes/index.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +3 -3
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +10 -10
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +2 -2
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.js +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +3 -3
- 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/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +1 -1
- package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.d.ts +5 -0
- package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.styles.d.ts +8 -0
- package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +4 -0
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerEnum.d.ts +10 -0
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +28 -0
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.defaultProps.stories.d.ts +26 -0
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.error.stories.d.ts +13 -0
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.variants.stories.d.ts +23 -0
- package/components/hook-form/RHFInputNumberSpinner/types.d.ts +71 -0
- package/components/hook-form/RHFTextField/RHFTextField.js +13 -23
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +104 -157
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorOutlined.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorText.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldOutlined.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldText.stories.d.ts +32 -0
- package/components/hook-form/RHFTextField/types.d.ts +3 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +2 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.js +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +5 -5
- package/components/modal/classes/index.d.ts +2 -2
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
- package/components/mui_extended/MenuActions/MenuActions.d.ts +8 -1
- package/components/mui_extended/MenuActions/MenuActions.js +55 -77
- package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +4 -0
- package/components/mui_extended/MenuActions/MenuActions.styles.js +11 -38
- package/components/mui_extended/MenuActions/constants.d.ts +17 -0
- package/components/mui_extended/MenuActions/constants.js +6 -2
- package/components/mui_extended/MenuActions/dictionary.d.ts +15 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +8 -5
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +1 -4
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +29 -16
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +16 -33
- package/components/mui_extended/MenuActions/stories/MenuActions.default.stories.d.ts +25 -0
- package/components/mui_extended/MenuActions/stories/MenuActions.othersProps.stories.d.ts +13 -0
- package/components/mui_extended/MenuActions/types.d.ts +80 -18
- package/components/mui_extended/MenuItem/MenuItem.js +85 -0
- package/components/mui_extended/MenuItem/MenuItem.styles.js +121 -0
- package/components/mui_extended/MenuItem/constants.js +4 -0
- package/components/mui_extended/MenuItem/index.js +1 -0
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +9 -0
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +24 -0
- package/components/mui_extended/MenuItem/types.d.ts +1 -1
- package/components/mui_extended/MenuItem/types.js +1 -0
- package/components/mui_extended/Pager/classes/index.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/TabEnum.d.ts +9 -0
- package/components/mui_extended/Tab/Slots/TabEnum.js +9 -0
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +26 -0
- package/components/mui_extended/Tab/Slots/TabSlots.js +24 -0
- package/components/mui_extended/Tab/Slots/index.d.ts +2 -0
- package/components/mui_extended/Tab/Slots/index.js +1 -0
- package/components/mui_extended/Tab/Tab.d.ts +5 -0
- package/components/mui_extended/Tab/Tab.js +67 -0
- package/components/mui_extended/Tab/Tab.styles.d.ts +5 -0
- package/components/mui_extended/Tab/Tab.styles.js +147 -0
- package/components/mui_extended/Tab/constants.d.ts +14 -0
- package/components/mui_extended/Tab/constants.js +10 -0
- package/components/mui_extended/Tab/index.d.ts +1 -5
- package/components/mui_extended/Tab/types.d.ts +53 -2
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +6 -6
- package/components/mui_extended/TextField/types.d.ts +54 -10
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/storybook/components/extended/mui/Tab/stories/Tab.disable.stories.d.ts +36 -0
- package/storybook/components/extended/mui/Tab/stories/Tab.enable.stories.d.ts +36 -0
- package/storybook/components/extended/mui/Tab/stories/Tab.sizes.stories.d.ts +28 -0
- package/storybook/components/extended/mui/Tab/stories/Tab.skeleton.stories.d.ts +32 -0
- package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorOutlined.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorText.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Primary/TextFieldOutlined.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Primary/TextFieldText.stories.d.ts +0 -9
- package/components/mui_extended/MenuActions/MenuActions.stories.d.ts +0 -25
- package/components/mui_extended/Tab/classes/constants.d.ts +0 -1
- package/components/mui_extended/Tab/classes/constants.js +0 -4
- package/components/mui_extended/Tab/classes/index.d.ts +0 -10
- package/components/mui_extended/Tab/classes/index.js +0 -25
- package/components/mui_extended/Tab/classes/types.d.ts +0 -7
- package/components/mui_extended/Tab/constant.d.ts +0 -1
- package/components/mui_extended/Tab/constant.js +0 -4
- package/components/mui_extended/Tab/index.js +0 -40
- package/components/mui_extended/Tab/styles.d.ts +0 -2
- package/components/mui_extended/Tab/styles.js +0 -11
- package/components/mui_extended/Tab/tests/index.test.d.ts +0 -1
- package/components/mui_extended/Tab/tests/utils.d.ts +0 -2
|
@@ -4,7 +4,6 @@ import { TextFieldSlots } from './slots/TextFieldEnum';
|
|
|
4
4
|
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
5
5
|
import { TEXT_FIELD_KEY_COMPONENT } from './constants';
|
|
6
6
|
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
7
|
-
import { LabelProps } from '../../Label/types';
|
|
8
7
|
/**
|
|
9
8
|
* Variants for the TextField component.
|
|
10
9
|
*/
|
|
@@ -17,19 +16,64 @@ export type SkeletonVariants = 'rectangular' | 'circular' | 'text';
|
|
|
17
16
|
* Props for the TextField component.
|
|
18
17
|
*
|
|
19
18
|
*/
|
|
20
|
-
export interface TextFieldProps extends Omit<MUITextFieldProps, 'size' | 'color' | 'disabled' | 'variant'
|
|
19
|
+
export interface TextFieldProps extends Omit<MUITextFieldProps, 'size' | 'color' | 'disabled' | 'variant'> {
|
|
20
|
+
/**
|
|
21
|
+
* todo: documentar
|
|
22
|
+
*/
|
|
21
23
|
dataTestId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Variante del campo de texto.
|
|
26
|
+
* variant="text"
|
|
27
|
+
*/
|
|
22
28
|
variant?: TextFieldVariants;
|
|
29
|
+
/**
|
|
30
|
+
* Indica si el campo de texto está deshabilitado.
|
|
31
|
+
* disabled={true}
|
|
32
|
+
*/
|
|
23
33
|
disabled?: boolean;
|
|
24
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Tamaño del campo de texto.
|
|
36
|
+
* size="medium"
|
|
37
|
+
*/
|
|
38
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
39
|
+
/**
|
|
40
|
+
* Color del campo de texto.
|
|
41
|
+
* color="primary"
|
|
42
|
+
*/
|
|
25
43
|
color?: Extract<ComponentPalletColor, 'primary'>;
|
|
26
44
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Estado del propietario del campo de texto.
|
|
47
|
+
*/
|
|
48
|
+
export interface TextFieldOwnerState {
|
|
49
|
+
/**
|
|
50
|
+
* Indica si el campo de texto está deshabilitado.
|
|
51
|
+
*/
|
|
52
|
+
textFieldDisabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Color de la paleta del campo de texto.
|
|
55
|
+
*/
|
|
56
|
+
textFieldPaletteColor: PaletteColor;
|
|
57
|
+
/**
|
|
58
|
+
* Variante del campo de texto.
|
|
59
|
+
*/
|
|
60
|
+
textFieldVariant?: TextFieldVariants;
|
|
61
|
+
/**
|
|
62
|
+
* Color de la paleta del componente del campo de texto.
|
|
63
|
+
*/
|
|
64
|
+
textFieldComponentPaletteColor?: ComponentPalletColor;
|
|
65
|
+
/**
|
|
66
|
+
* Tamaño del campo de texto.
|
|
67
|
+
*/
|
|
68
|
+
textFieldSizes: Extract<Sizes, 'small' | 'medium'>;
|
|
69
|
+
/**
|
|
70
|
+
* Indica si el campo de texto es error.
|
|
71
|
+
*/
|
|
72
|
+
textFieldError?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Color del campo de texto.
|
|
75
|
+
*/
|
|
76
|
+
textFieldColor?: Extract<ComponentPalletColor, 'primary'>;
|
|
77
|
+
}
|
|
33
78
|
export type TextFieldSlotsType = keyof typeof TextFieldSlots;
|
|
34
|
-
export type TextFieldOwnerState = OwnerState;
|
|
35
79
|
export type TextFieldStyles = Partial<OverridesStyleRules<TextFieldSlotsType, typeof TEXT_FIELD_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const StyledMUITypography: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
5
5
|
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;
|
|
6
|
-
}, "children" | "zIndex" | "paragraph" | "border" | "fontFamily" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "typography" | "flex" | "color" | "left" | "right" | "bottom" | "top" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "minWidth" | "margin" | "overflow" | "boxShadow" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "sx" | "classes" | "className" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "variantMapping">, "children" | "ref" | "title" | "zIndex" | "id" | "paragraph" | "border" | "fontFamily" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "typography" | "flex" | "hidden" | "color" | "left" | "right" | "bottom" | "top" | "content" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "minWidth" | "margin" | "overflow" | "boxShadow" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "translate" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "
|
|
6
|
+
}, "children" | "zIndex" | "paragraph" | "border" | "fontFamily" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "typography" | "flex" | "color" | "left" | "right" | "bottom" | "top" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "minWidth" | "margin" | "overflow" | "boxShadow" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "sx" | "classes" | "className" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "variantMapping">, "children" | "ref" | "title" | "zIndex" | "id" | "paragraph" | "border" | "fontFamily" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "typography" | "flex" | "hidden" | "color" | "left" | "right" | "bottom" | "top" | "content" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "minWidth" | "margin" | "overflow" | "boxShadow" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "translate" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "slot" | "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-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" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "key" | "align" | "gutterBottom" | "noWrap" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TypographyOwnerState> & Record<string, unknown> & {
|
|
7
7
|
ownerState: Partial<import('../types').TypographyOwnerState> & Record<string, unknown>;
|
|
8
8
|
}, {}, {}>;
|
|
9
9
|
/**
|
|
@@ -24,7 +24,7 @@ export * from './TabContent';
|
|
|
24
24
|
export { Pager } from './Pager';
|
|
25
25
|
export type { PagerProps } from './Pager/types';
|
|
26
26
|
export { getPagerComponentsDictionary } from './Pager/dicctionary';
|
|
27
|
-
export { Tab } from './Tab';
|
|
27
|
+
export { Tab } from './Tab/Tab';
|
|
28
28
|
export * from './TabContext';
|
|
29
29
|
export * from './Typography/Typography';
|
|
30
30
|
export * from './ToggleButton';
|
package/index.js
CHANGED
|
@@ -151,7 +151,7 @@ import { L as L9 } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
|
151
151
|
import { L as L10 } from "./components/mui_extended/LoadingButton/index.js";
|
|
152
152
|
import { P as P13 } from "./components/mui_extended/Pager/index.js";
|
|
153
153
|
import { g as g26 } from "./components/mui_extended/Pager/dicctionary.js";
|
|
154
|
-
import { T as T5 } from "./components/mui_extended/Tab/
|
|
154
|
+
import { T as T5 } from "./components/mui_extended/Tab/Tab.js";
|
|
155
155
|
import { a as a9 } from "./components/mui_extended/MenuActions/dictionary.js";
|
|
156
156
|
import { a as a10, M as M11 } from "./components/mui_extended/MenuActions/MenuActions.js";
|
|
157
157
|
import { T as T6 } from "./components/mui_extended/Tooltip/Tooltip.js";
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tab } from '../../../../../../src/components/mui_extended/Tab';
|
|
3
|
+
/**
|
|
4
|
+
* Información meta para Storybook del componente `Tab`, en la variante deshabilitada.
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Tab>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Tab>;
|
|
9
|
+
/**
|
|
10
|
+
* Historia `Base`: Tab deshabilitado con icono, texto, y sin efecto ripple.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Base: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Historia `DisabledActiveWithIconAndText`: Tab activo, deshabilitado, con icono y texto.
|
|
15
|
+
*/
|
|
16
|
+
export declare const DisabledActiveWithIconAndText: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Historia `DisabledActiveWithText`: Tab activo, deshabilitado, solo con texto.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DisabledActiveWithText: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Historia `DisabledActiveWithIcon`: Tab activo, deshabilitado, solo con icono.
|
|
23
|
+
*/
|
|
24
|
+
export declare const DisabledActiveWithIcon: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Historia `DisabledDefaultWithIconAndText`: Tab por defecto, deshabilitado, con icono y texto.
|
|
27
|
+
*/
|
|
28
|
+
export declare const DisabledDefaultWithIconAndText: Story;
|
|
29
|
+
/**
|
|
30
|
+
* Historia `DisabledDefaultActiveWithText`: Tab por defecto activo, deshabilitado, solo con texto.
|
|
31
|
+
*/
|
|
32
|
+
export declare const DisabledDefaultActiveWithText: Story;
|
|
33
|
+
/**
|
|
34
|
+
* Historia `DisabledDefaultActiveWithIcon`: Tab por defecto activo, deshabilitado, solo con icono.
|
|
35
|
+
*/
|
|
36
|
+
export declare const DisabledDefaultActiveWithIcon: Story;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tab } from '../../../../../../src/components/mui_extended/Tab';
|
|
3
|
+
/**
|
|
4
|
+
* The Tab component groups related content, enabling navigation without leaving the page.
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Tab>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Tab>;
|
|
9
|
+
/**
|
|
10
|
+
* Base tab component with icon and text
|
|
11
|
+
*/
|
|
12
|
+
export declare const Base: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Active Tab with icon and text
|
|
15
|
+
*/
|
|
16
|
+
export declare const ActiveWithIconAndText: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Active Tab with text only
|
|
19
|
+
*/
|
|
20
|
+
export declare const ActiveWithText: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Active Tab with icon only
|
|
23
|
+
*/
|
|
24
|
+
export declare const ActiveWithIcon: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Default Tab with icon and text
|
|
27
|
+
*/
|
|
28
|
+
export declare const DefaultWithIconAndText: Story;
|
|
29
|
+
/**
|
|
30
|
+
* Default active Tab with text only
|
|
31
|
+
*/
|
|
32
|
+
export declare const DefaultActiveWithText: Story;
|
|
33
|
+
/**
|
|
34
|
+
* Default active Tab with icon only
|
|
35
|
+
*/
|
|
36
|
+
export declare const DefaultActiveWithIcon: Story;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tab } from '../../../../../../src/components/mui_extended/Tab';
|
|
3
|
+
/**
|
|
4
|
+
* El componente Tab agrupa contenido relacionado y permite la navegación sin salir de la página.
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Tab>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Tab>;
|
|
9
|
+
/**
|
|
10
|
+
* Tab base con icono y tamaño mediano, estilo seleccionado (activo).
|
|
11
|
+
*/
|
|
12
|
+
export declare const Base: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Tab activo de tamaño pequeño con icono.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SmallActive: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Tab activo de tamaño mediano con icono.
|
|
19
|
+
*/
|
|
20
|
+
export declare const MediumActive: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Tab por defecto de tamaño pequeño con icono.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SmallDefault: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Tab por defecto de tamaño mediano con icono.
|
|
27
|
+
*/
|
|
28
|
+
export declare const MediumDefault: Story;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tab } from '../../../../../../src/components/mui_extended/Tab';
|
|
3
|
+
/**
|
|
4
|
+
* El componente Tab agrupa contenido relacionado y permite la navegación sin salir de la página.
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Tab>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Tab>;
|
|
9
|
+
/**
|
|
10
|
+
* Tab en estado Skeleton cuando está activo, con icono y texto.
|
|
11
|
+
*/
|
|
12
|
+
export declare const SkeletonActiveWithIconAndText: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Tab en estado Skeleton cuando está activo, con solo texto.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SkeletonActiveWithText: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Tab en estado Skeleton cuando está activo, con solo icono.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SkeletonActiveWithIcon: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Tab en estado Skeleton por defecto, con icono y texto.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SkeletonDefaultWithIconAndText: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Tab en estado Skeleton por defecto, con solo texto.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SkeletonDefaultWithText: Story;
|
|
29
|
+
/**
|
|
30
|
+
* Tab en estado Skeleton por defecto, con solo icono.
|
|
31
|
+
*/
|
|
32
|
+
export declare const SkeletonDefaultWithIcon: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { RHFTextField } from '../../..';
|
|
3
|
-
declare const meta: Meta<typeof RHFTextField>;
|
|
4
|
-
type Story = StoryObj<typeof RHFTextField>;
|
|
5
|
-
/**
|
|
6
|
-
* Error en RHFTextField outlined y text se utiliza para mostrar un campo de texto que indica un estado de error. Esto es útil para proporcionar retroalimentación visual al usuario cuando hay un problema con la entrada de datos.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ErrorOutlined: Story;
|
|
9
|
-
export default meta;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { RHFTextField } from '../../..';
|
|
3
|
-
declare const meta: Meta<typeof RHFTextField>;
|
|
4
|
-
type Story = StoryObj<typeof RHFTextField>;
|
|
5
|
-
/**
|
|
6
|
-
* Error en RHFTextField outlined y text se utiliza para mostrar un campo de texto que indica un estado de error. Esto es útil para proporcionar retroalimentación visual al usuario cuando hay un problema con la entrada de datos.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ErrorText: Story;
|
|
9
|
-
export default meta;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { RHFTextField } from '../../..';
|
|
3
|
-
declare const meta: Meta<typeof RHFTextField>;
|
|
4
|
-
type Story = StoryObj<typeof RHFTextField>;
|
|
5
|
-
/**
|
|
6
|
-
* Story for the primary outlined RHFvariants of the TextField component.
|
|
7
|
-
*/
|
|
8
|
-
export declare const PrimaryOutlined: Story;
|
|
9
|
-
export default meta;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { RHFTextField } from '../../..';
|
|
3
|
-
declare const meta: Meta<typeof RHFTextField>;
|
|
4
|
-
type Story = StoryObj<typeof RHFTextField>;
|
|
5
|
-
/**
|
|
6
|
-
* Story for the primary text variant of the TextField component.
|
|
7
|
-
*/
|
|
8
|
-
export declare const PrimaryText: Story;
|
|
9
|
-
export default meta;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { MenuActions } from './index';
|
|
3
|
-
declare const meta: Meta<typeof MenuActions>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof MenuActions>;
|
|
6
|
-
/**
|
|
7
|
-
* Base MenuActions component
|
|
8
|
-
*/
|
|
9
|
-
export declare const Base: Story;
|
|
10
|
-
/**
|
|
11
|
-
* MenuActions in skeleton mode
|
|
12
|
-
*/
|
|
13
|
-
export declare const WithSkeleton: Story;
|
|
14
|
-
/**
|
|
15
|
-
* MenuActions with Badge content
|
|
16
|
-
*/
|
|
17
|
-
export declare const WithBadge: Story;
|
|
18
|
-
/**
|
|
19
|
-
* MenuActions with end ListElement
|
|
20
|
-
*/
|
|
21
|
-
export declare const WithEndListElement: Story;
|
|
22
|
-
/**
|
|
23
|
-
* MenuActions empty state
|
|
24
|
-
*/
|
|
25
|
-
export declare const Empty: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "M4LTab";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TabClassesType } from './types';
|
|
2
|
-
export declare const tabClasses: TabClassesType;
|
|
3
|
-
export declare function getTabUtilityClass(slot: string): string;
|
|
4
|
-
/**
|
|
5
|
-
* TODO: Documentar
|
|
6
|
-
*/
|
|
7
|
-
export declare const tabUtilityClasses: () => {
|
|
8
|
-
skeleton: string;
|
|
9
|
-
root: string;
|
|
10
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
import { c as componentName } from "./constants.js";
|
|
4
|
-
generateUtilityClasses(componentName, [
|
|
5
|
-
/* elements */
|
|
6
|
-
"root",
|
|
7
|
-
"skeleton"
|
|
8
|
-
/* states or variants of elements */
|
|
9
|
-
]);
|
|
10
|
-
function getTabUtilityClass(slot) {
|
|
11
|
-
return generateUtilityClass(componentName, slot);
|
|
12
|
-
}
|
|
13
|
-
const tabUtilityClasses = () => {
|
|
14
|
-
const slots = {
|
|
15
|
-
root: ["root"],
|
|
16
|
-
skeleton: ["skeleton"]
|
|
17
|
-
};
|
|
18
|
-
const composedClasses = unstable_composeClasses(slots, getTabUtilityClass, {});
|
|
19
|
-
return {
|
|
20
|
-
...composedClasses
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
tabUtilityClasses as t
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const COMPONENT_PREFIX = "m4l-tab";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useModuleSkeleton } from "@m4l/core";
|
|
3
|
-
import { Tab as Tab$1, Skeleton } from "@mui/material";
|
|
4
|
-
import { T as TabRoot, S as SKTTabWrapper } from "./styles.js";
|
|
5
|
-
import { t as tabUtilityClasses } from "./classes/index.js";
|
|
6
|
-
import clsx from "clsx";
|
|
7
|
-
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.js";
|
|
8
|
-
import { g as getNameDataTestId } from "../../../test/getNameDataTestId.js";
|
|
9
|
-
import { C as COMPONENT_PREFIX } from "./constant.js";
|
|
10
|
-
function Tab(props) {
|
|
11
|
-
const { SKTWidth, SKTHeight, className, dataTestId = "", ...other } = props;
|
|
12
|
-
const isSkeleton = useModuleSkeleton();
|
|
13
|
-
const classes = tabUtilityClasses();
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
15
|
-
TabRoot,
|
|
16
|
-
{
|
|
17
|
-
className: clsx(classes.root, className),
|
|
18
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
19
|
-
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
|
|
20
|
-
} : {},
|
|
21
|
-
children: !isSkeleton ? /* @__PURE__ */ jsx(Tab$1, { ...other }) : /* @__PURE__ */ jsx(
|
|
22
|
-
SKTTabWrapper,
|
|
23
|
-
{
|
|
24
|
-
className: classes.skeleton,
|
|
25
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
26
|
-
[TEST_PROP_ID]: getNameDataTestId(
|
|
27
|
-
COMPONENT_PREFIX,
|
|
28
|
-
"skeleton",
|
|
29
|
-
dataTestId
|
|
30
|
-
)
|
|
31
|
-
} : {},
|
|
32
|
-
children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: SKTWidth, height: SKTHeight })
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
Tab as T
|
|
40
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const TabRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
-
export declare const SKTTabWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
const TabRoot = styled("div")(({ theme }) => ({
|
|
3
|
-
...theme.components?.M4LTab?.styleOverrides || {}
|
|
4
|
-
}));
|
|
5
|
-
const SKTTabWrapper = styled("div")(({ theme }) => ({
|
|
6
|
-
padding: theme.spacing(1.5, 2)
|
|
7
|
-
}));
|
|
8
|
-
export {
|
|
9
|
-
SKTTabWrapper as S,
|
|
10
|
-
TabRoot as T
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|