@m4l/components 8.1.0-beta.devManuela.IconButton → 8.1.0-beta.devManuela.TextField
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 +4 -1
- package/@types/types.d.ts +12 -0
- package/components/DynamicFilter/DynamicFIlter.styles.js +156 -0
- package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +2 -2
- package/components/HelperError/HelperError.d.ts +11 -1
- package/components/HelperError/HelperError.stories.d.ts +7 -1
- package/components/HelperError/HelperError.styles.js +22 -3
- package/components/HelperError/slots/HelperErrorEnum.d.ts +2 -1
- package/components/HelperError/slots/HelperErrorEnum.js +1 -0
- package/components/HelperError/slots/HelperErrorSlots.d.ts +3 -0
- package/components/HelperError/slots/HelperErrorSlots.js +5 -0
- package/components/HelperError/types.d.ts +3 -0
- package/components/Icon/Icon.styles.js +1 -1
- package/components/Label/Label.d.ts +17 -1
- package/components/Label/Label.js +8 -3
- package/components/Label/Label.styles.js +43 -6
- package/components/Label/{Label.stories.d.ts → stories/PaletteColor/DefaultinternalManagement/LabelDefaultInternal.stories.d.ts} +6 -8
- package/components/Label/stories/PaletteColor/DefaultinternalManagement/LabelDefaultPredeterminado.stories.d.ts +18 -0
- package/components/Label/stories/PaletteColor/DefaultinternalManagement/commonProps/LabelDefaultInternalVariants.stories.d.ts +14 -0
- package/components/Label/stories/PaletteColor/DefaultinternalManagement/commonProps/LabelDefaultVariants.stories.d.ts +14 -0
- package/components/Label/types.d.ts +7 -1
- package/components/MFLoader/MFLoader.d.ts +6 -0
- package/components/MFLoader/MFLoader.js +3 -0
- package/components/NavLink/NavLink.d.ts +4 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +2 -2
- package/components/areas/contexts/AreasContext/store.d.ts +4 -0
- package/components/areas/contexts/AreasContext/store.js +268 -0
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +4 -0
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +4 -0
- package/components/hook-form/RHFTextField/RHFTextField.js +15 -4
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +266 -96
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +10 -10
- package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldDisabledOutlined.stories.d.ts +10 -0
- package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldDisabledText.stories.d.ts +10 -0
- package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldSkeleton.stories.d.ts +6 -0
- package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorOutlined.stories.d.ts +9 -0
- package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorText.stories.d.ts +9 -0
- package/components/hook-form/RHFTextField/stories/Primary/TextFieldOutlined.stories.d.ts +9 -0
- package/components/hook-form/RHFTextField/stories/Primary/TextFieldText.stories.d.ts +9 -0
- package/components/hook-form/RHFTextField/types.d.ts +10 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +2 -2
- package/components/maps/components/Map/contexts/MapContext/store.d.ts +2 -2
- package/components/maps/components/Map/contexts/MapContext/store.js +272 -152
- package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +2 -2
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +2 -2
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +2 -2
- package/components/mui_extended/Accordion/Accordion.d.ts +4 -0
- package/components/mui_extended/IconButton/IconButton.d.ts +5 -1
- package/components/mui_extended/IconButton/IconButton.js +26 -61
- package/components/mui_extended/IconButton/IconButton.styles.js +19 -6
- package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +1 -2
- package/components/mui_extended/IconButton/slots/IconButtonEnum.js +0 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +0 -3
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -7
- package/components/mui_extended/IconButton/types.d.ts +2 -46
- package/components/mui_extended/LoadingButton/index.d.ts +4 -0
- package/components/mui_extended/Skeleton/Skeleton.d.ts +4 -0
- package/components/mui_extended/Skeleton/skeleton.styles.js +4 -0
- package/components/mui_extended/TextField/TextField.d.ts +5 -0
- package/components/mui_extended/TextField/TextField.styles.d.ts +2 -0
- package/components/mui_extended/TextField/constants.d.ts +1 -0
- package/components/mui_extended/TextField/index.d.ts +1 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +5 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +13 -0
- package/components/mui_extended/TextField/slots/index.d.ts +2 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldDisabledOutlined.stories.d.ts +15 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldDisabledText.stories.d.ts +15 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldSkeleton.stories.d.ts +11 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/TextFieldErrorOutlined.stories.d.ts +9 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/TextFieldErrorText.stories.d.ts +9 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateActive.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateEnabled.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateFocus.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateHover.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateActive.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateEnabled.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateFocus.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateHover.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/TextFieldOutlined.stories.d.ts +9 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/TextFieldText.stories.d.ts +12 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateActive.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateEnabled.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateFocus.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateHover.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateActive.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateEnabled.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateFocus.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateHover.stories.d.ts +14 -0
- package/components/mui_extended/TextField/stories/PaletteColorTextField/sizes/TextFieldSizes.stories.d.ts +16 -0
- package/components/mui_extended/TextField/types.d.ts +35 -0
- package/components/mui_extended/Typography/Typography.d.ts +4 -0
- package/components/mui_extended/Typography/typography.styles.js +4 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +2 -2
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +82 -18
- package/contexts/RealTimeContext/store.d.ts +2 -2
- package/contexts/RealTimeContext/store.js +22 -6
- package/hooks/useSizeContainer/index.d.ts +2 -2
- package/package.json +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.stories.d.ts +0 -14
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { getPropertyByString } from "@m4l/core";
|
|
4
3
|
import { useTheme } from "@mui/material";
|
|
5
4
|
import { e as evalIconColor } from "./helpers/evalIconColor.js";
|
|
5
|
+
import { getPropertyByString, useModuleDictionary } from "@m4l/core";
|
|
6
6
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
7
|
-
import {
|
|
7
|
+
import { S as StyledMUIIconButton, B as BadgeStyled, I as IconStyled } from "./slots/IconButtonSlots.js";
|
|
8
8
|
const IconButton = (props) => {
|
|
9
9
|
const {
|
|
10
10
|
src,
|
|
@@ -14,20 +14,15 @@ const IconButton = (props) => {
|
|
|
14
14
|
disabled,
|
|
15
15
|
onClick,
|
|
16
16
|
badgeContent,
|
|
17
|
+
withBadge = false,
|
|
17
18
|
dictionaryTooltipId,
|
|
18
|
-
tooltipContent,
|
|
19
|
-
placement = "bottom",
|
|
20
|
-
instaceDataTestId,
|
|
21
19
|
componentPaletteColor = "default",
|
|
20
|
+
rotationAngle,
|
|
22
21
|
...other
|
|
23
22
|
} = props;
|
|
24
23
|
const { currentSize } = useComponentSize(size);
|
|
25
24
|
const theme = useTheme();
|
|
26
|
-
const paletteColor = getPropertyByString(
|
|
27
|
-
theme.palette,
|
|
28
|
-
disabled ? "default" : componentPaletteColor,
|
|
29
|
-
theme.palette.default
|
|
30
|
-
);
|
|
25
|
+
const paletteColor = getPropertyByString(theme.palette, disabled ? "default" : componentPaletteColor, theme.palette.default);
|
|
31
26
|
const ownerState = {
|
|
32
27
|
variant,
|
|
33
28
|
size,
|
|
@@ -39,53 +34,20 @@ const IconButton = (props) => {
|
|
|
39
34
|
() => evalIconColor(componentPaletteColor, variant),
|
|
40
35
|
[componentPaletteColor, variant]
|
|
41
36
|
);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
onClick: !disabled ? onClick : void 0,
|
|
53
|
-
disableRipple: true,
|
|
54
|
-
disabled,
|
|
55
|
-
"data-testid": "IconButtonRoot",
|
|
56
|
-
tabIndex: 0,
|
|
57
|
-
...other,
|
|
58
|
-
children: badgeContent ? /* @__PURE__ */ jsx(
|
|
59
|
-
BadgeStyled,
|
|
60
|
-
{
|
|
61
|
-
ownerState: { ...ownerState },
|
|
62
|
-
badgeContent,
|
|
63
|
-
componentPaletteColor,
|
|
64
|
-
children: /* @__PURE__ */ jsx(
|
|
65
|
-
IconStyled,
|
|
66
|
-
{
|
|
67
|
-
ownerState: { ...ownerState },
|
|
68
|
-
src,
|
|
69
|
-
size: currentSize,
|
|
70
|
-
color: iconColor,
|
|
71
|
-
disabled
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
}
|
|
75
|
-
) : /* @__PURE__ */ jsx(
|
|
76
|
-
IconStyled,
|
|
77
|
-
{
|
|
78
|
-
ownerState: { ...ownerState },
|
|
79
|
-
src,
|
|
80
|
-
size: currentSize,
|
|
81
|
-
color: iconColor,
|
|
82
|
-
disabled
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
)
|
|
37
|
+
const { getLabel } = useModuleDictionary();
|
|
38
|
+
const finalTooltip = useMemo(() => {
|
|
39
|
+
if (disabled) {
|
|
40
|
+
return void 0;
|
|
41
|
+
}
|
|
42
|
+
if (tooltip && tooltip !== "") {
|
|
43
|
+
return tooltip;
|
|
44
|
+
}
|
|
45
|
+
if (dictionaryTooltipId && getLabel) {
|
|
46
|
+
return getLabel(dictionaryTooltipId);
|
|
87
47
|
}
|
|
88
|
-
|
|
48
|
+
return void 0;
|
|
49
|
+
}, [tooltip, dictionaryTooltipId, getLabel, disabled]);
|
|
50
|
+
return /* @__PURE__ */ jsx(
|
|
89
51
|
StyledMUIIconButton,
|
|
90
52
|
{
|
|
91
53
|
ownerState: { ...ownerState },
|
|
@@ -95,7 +57,7 @@ const IconButton = (props) => {
|
|
|
95
57
|
"data-testid": "IconButtonRoot",
|
|
96
58
|
tabIndex: 0,
|
|
97
59
|
...other,
|
|
98
|
-
children:
|
|
60
|
+
children: withBadge ? /* @__PURE__ */ jsx(
|
|
99
61
|
BadgeStyled,
|
|
100
62
|
{
|
|
101
63
|
ownerState: { ...ownerState },
|
|
@@ -108,7 +70,9 @@ const IconButton = (props) => {
|
|
|
108
70
|
src,
|
|
109
71
|
size: currentSize,
|
|
110
72
|
color: iconColor,
|
|
111
|
-
disabled
|
|
73
|
+
disabled,
|
|
74
|
+
tooltipContent: finalTooltip,
|
|
75
|
+
rotationAngle
|
|
112
76
|
}
|
|
113
77
|
)
|
|
114
78
|
}
|
|
@@ -119,11 +83,12 @@ const IconButton = (props) => {
|
|
|
119
83
|
src,
|
|
120
84
|
size: currentSize,
|
|
121
85
|
color: iconColor,
|
|
122
|
-
disabled
|
|
86
|
+
disabled,
|
|
87
|
+
tooltipContent: finalTooltip
|
|
123
88
|
}
|
|
124
89
|
)
|
|
125
90
|
}
|
|
126
|
-
)
|
|
91
|
+
);
|
|
127
92
|
};
|
|
128
93
|
export {
|
|
129
94
|
IconButton as I
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
const iconButtonStyles = {
|
|
2
2
|
/**
|
|
3
3
|
* TODO: Documentar
|
|
4
|
+
* @updatedUser Bruce Escobar - automatic
|
|
5
|
+
* @updatedAt 2024-10-22 09:42:39 - automatic
|
|
6
|
+
* @createdAt 2024-10-22 09:42:38 - automatic
|
|
7
|
+
* @author Bruce Escobar - automatic
|
|
8
|
+
* @updatedUser Bruce Escobar - automatic
|
|
9
|
+
* @updatedAt 2024-10-22 09:42:39 - automatic
|
|
10
|
+
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
11
|
+
* @author Bruce Escobar - automatic
|
|
12
|
+
* @author Bruce Escobar - automatic
|
|
13
|
+
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
14
|
+
* @updatedAt 2024-10-22 09:42:39 - automatic
|
|
15
|
+
* @updatedUser Bruce Escobar - automatic
|
|
4
16
|
*/
|
|
5
17
|
styledMUIIconButton: ({ ownerState, theme }) => ({
|
|
6
18
|
cursor: ownerState.disabled ? "not-allowed" : "pointer",
|
|
@@ -42,8 +54,8 @@ const iconButtonStyles = {
|
|
|
42
54
|
},
|
|
43
55
|
"& .icon": {
|
|
44
56
|
...theme.generalSettings.isMobile ? {
|
|
45
|
-
width: theme.vars.size.mobile.medium.
|
|
46
|
-
height: theme.vars.size.mobile.medium.
|
|
57
|
+
width: theme.vars.size.mobile.medium.action,
|
|
58
|
+
height: theme.vars.size.mobile.medium.action
|
|
47
59
|
} : {
|
|
48
60
|
width: theme.vars.size.desktop.medium.base,
|
|
49
61
|
height: theme.vars.size.desktop.medium.base
|
|
@@ -255,12 +267,13 @@ const iconButtonStyles = {
|
|
|
255
267
|
}
|
|
256
268
|
}
|
|
257
269
|
}),
|
|
258
|
-
|
|
259
|
-
* Tooltip Styles
|
|
260
|
-
*/
|
|
261
|
-
tooltip: () => ({}),
|
|
270
|
+
//
|
|
262
271
|
/**
|
|
263
272
|
* Comentado por el momento, falta de documentación en Figma de Badge
|
|
273
|
+
* @author Bruce Escobar - automatic
|
|
274
|
+
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
275
|
+
* @updatedAt 2024-10-22 09:42:39 - automatic
|
|
276
|
+
* @updatedUser Bruce Escobar - automatic
|
|
264
277
|
*/
|
|
265
278
|
badgeIconButton: () => ({
|
|
266
279
|
// '& [class*="MuiBadge-badge"]': {
|
|
@@ -2,7 +2,6 @@ var IconButtonSlots = /* @__PURE__ */ ((IconButtonSlots2) => {
|
|
|
2
2
|
IconButtonSlots2["styledMUIIconButton"] = "styledMUIIconButton";
|
|
3
3
|
IconButtonSlots2["icon"] = "icon";
|
|
4
4
|
IconButtonSlots2["badgeIconButton"] = "badgeIconButton";
|
|
5
|
-
IconButtonSlots2["tooltip"] = "tooltip";
|
|
6
5
|
return IconButtonSlots2;
|
|
7
6
|
})(IconButtonSlots || {});
|
|
8
7
|
export {
|
|
@@ -11,6 +11,3 @@ export declare const BadgeStyled: import('@emotion/styled').StyledComponent<Pick
|
|
|
11
11
|
}, "color" | "sx" | "classes" | "className" | "style" | "children" | "components" | "componentsProps" | "slotProps" | "slots" | "badgeContent" | "variant" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero">, "color" | "content" | "translate" | "sx" | "classes" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "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" | "children" | "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" | "components" | "componentsProps" | "slotProps" | "slots" | "ref" | "key" | "badgeContent" | "variant" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
|
|
12
12
|
ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
|
|
13
13
|
}, {}, {}>;
|
|
14
|
-
export declare const TooltipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Tooltip').TooltipProps, keyof import('../../Tooltip').TooltipProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
|
|
15
|
-
ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
|
|
16
|
-
}, {}, {}>;
|
|
@@ -4,7 +4,6 @@ import { i as iconButtonStyles } from "../IconButton.styles.js";
|
|
|
4
4
|
import { I as IconButtonSlots } from "./IconButtonEnum.js";
|
|
5
5
|
import { IconButton, Badge } from "@mui/material";
|
|
6
6
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
7
|
-
import { T as Tooltip } from "../../Tooltip/Tooltip.js";
|
|
8
7
|
const StyledMUIIconButton = styled(IconButton, {
|
|
9
8
|
name: ICON_BUTTON_KEY_COMPONENT,
|
|
10
9
|
slot: IconButtonSlots.styledMUIIconButton
|
|
@@ -17,13 +16,8 @@ const BadgeStyled = styled(Badge, {
|
|
|
17
16
|
name: ICON_BUTTON_KEY_COMPONENT,
|
|
18
17
|
slot: IconButtonSlots.badgeIconButton
|
|
19
18
|
})(iconButtonStyles?.badgeIconButton);
|
|
20
|
-
const TooltipStyled = styled(Tooltip, {
|
|
21
|
-
name: ICON_BUTTON_KEY_COMPONENT,
|
|
22
|
-
slot: IconButtonSlots.tooltip
|
|
23
|
-
})(iconButtonStyles?.tooltip);
|
|
24
19
|
export {
|
|
25
20
|
BadgeStyled as B,
|
|
26
21
|
IconStyled as I,
|
|
27
|
-
StyledMUIIconButton as S
|
|
28
|
-
TooltipStyled as T
|
|
22
|
+
StyledMUIIconButton as S
|
|
29
23
|
};
|
|
@@ -6,60 +6,16 @@ import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
|
6
6
|
import { ICON_BUTTON_KEY_COMPONENT } from './constants';
|
|
7
7
|
import { IconButtonSlots } from './slots';
|
|
8
8
|
import { BadgeProps } from '../Badge';
|
|
9
|
-
import { TooltipProps } from '../../mui_extended';
|
|
10
|
-
import { ReactNode } from 'react';
|
|
11
9
|
export type IconButtonVariants = 'contained' | 'outline' | 'text';
|
|
12
10
|
export type IconButtonSize = 'small' | 'medium';
|
|
13
|
-
|
|
14
|
-
* Props for the IconButton component.
|
|
15
|
-
* Omit<IconProps, 'size' | 'color'>
|
|
16
|
-
* Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled'>
|
|
17
|
-
* Pick<BadgeProps, 'badgeContent'>
|
|
18
|
-
* Pick<TooltipProps, 'placement'>
|
|
19
|
-
* [tooltip] - The text to display in the tooltip.
|
|
20
|
-
* [dictionaryTooltipId] - The ID for the dictionary tooltip.
|
|
21
|
-
* [variant] - The variant of the IconButton.
|
|
22
|
-
* [size] - The size of the IconButton.
|
|
23
|
-
* [withBadge] - Whether the IconButton includes a badge.
|
|
24
|
-
* [tooltipContent] - The content to display in the tooltip.
|
|
25
|
-
* [componentPaletteColor] - The color palette for the component.
|
|
26
|
-
* [disabled] - Whether the IconButton is disabled.
|
|
27
|
-
* [instaceDataTestId] - A unique identifier for the HTML element, useful for unit and integration testing.
|
|
28
|
-
*/
|
|
29
|
-
export interface IconButtonProps extends Omit<IconProps, 'size' | 'color'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled'>, Pick<BadgeProps, 'badgeContent'>, Pick<TooltipProps, 'placement'> {
|
|
30
|
-
/**
|
|
31
|
-
* Define el uso de tooltip en IconButton
|
|
32
|
-
*/
|
|
11
|
+
export interface IconButtonProps extends Omit<IconProps, 'size' | 'color'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled'>, Pick<BadgeProps, 'badgeContent'> {
|
|
33
12
|
tooltip?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Representa la identificación del tooltip en el diccionario para que designe internamente el getLabel
|
|
36
|
-
*/
|
|
37
13
|
dictionaryTooltipId?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Variante del componente , modifica la aparencia grafica
|
|
40
|
-
*/
|
|
41
14
|
variant?: IconButtonVariants;
|
|
42
|
-
/**
|
|
43
|
-
* Define el tamaño del componente
|
|
44
|
-
*/
|
|
45
15
|
size?: Sizes;
|
|
46
|
-
|
|
47
|
-
* Define el mensaje interno del tooltip
|
|
48
|
-
*/
|
|
49
|
-
tooltipContent?: ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* Opciones de color del componente
|
|
52
|
-
*/
|
|
16
|
+
withBadge?: boolean;
|
|
53
17
|
componentPaletteColor?: ComponentPalletColor;
|
|
54
|
-
/**
|
|
55
|
-
* Representa si el componente se encuentra deshabilitado
|
|
56
|
-
*/
|
|
57
18
|
disabled?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Propiedad que sirve para complementar el nombre del data-testid, aporta un identificador único del elemento html en toda aplicación.
|
|
60
|
-
* Es útil para realizar pruebas unitarias y de integración.
|
|
61
|
-
*/
|
|
62
|
-
instaceDataTestId?: string;
|
|
63
19
|
}
|
|
64
20
|
export type OwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'componentPaletteColor'> & {
|
|
65
21
|
disabled?: boolean;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { MuiLabLoadingButtonProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* TODO: Documentar
|
|
4
|
+
* @author Bruce Escobar - automatic
|
|
5
|
+
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
6
|
+
* @updatedAt 2024-10-22 09:42:39 - automatic
|
|
7
|
+
* @updatedUser Bruce Escobar - automatic
|
|
4
8
|
*/
|
|
5
9
|
export declare const LoadingButton: (props: MuiLabLoadingButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,5 +4,9 @@ import { SkeletonProps } from './types';
|
|
|
4
4
|
* al cual se le ha agregado una capa de estilos con overrides definidos por el sistema de diseño.
|
|
5
5
|
* Este componente proporciona una experiencia de carga visual mientras los datos están siendo recuperados,
|
|
6
6
|
* y es altamente personalizable gracias a las propiedades y variantes específicas que se le han añadido.
|
|
7
|
+
* @author Bruce Escobar - automatic
|
|
8
|
+
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
9
|
+
* @updatedAt 2024-10-22 09:42:39 - automatic
|
|
10
|
+
* @updatedUser Bruce Escobar - automatic
|
|
7
11
|
*/
|
|
8
12
|
export declare const Skeleton: (props: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,10 @@ const skeletonStyles = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Slot: root
|
|
4
4
|
* Componente extendido de MUI Skeleton, que permite personalizar los estilos del componente.
|
|
5
|
+
* @author Bruce Escobar - automatic
|
|
6
|
+
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
7
|
+
* @updatedAt 2024-10-22 09:42:39 - automatic
|
|
8
|
+
* @updatedUser Bruce Escobar - automatic
|
|
5
9
|
*/
|
|
6
10
|
root: ({ ownerState, theme }) => ({
|
|
7
11
|
"&.M4lclassCssSpecificity": {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TextFieldProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente TextField extended de MUI-MATERIAL componente de entrada de datos en una interfaz de usuario que permite a los usuarios ingresar y editar texto. Es comúnmente utilizado en formularios y otros contextos donde se requiere la entrada de texto por parte del usuario.
|
|
4
|
+
*/
|
|
5
|
+
export declare const TextField: (props: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextField } from './TextField';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const MuiTextFieldStyled: import('@emotion/styled').StyledComponent<Pick<{
|
|
2
|
+
variant?: import('@mui/material').TextFieldVariants | undefined;
|
|
3
|
+
} & Omit<import('@mui/material').FilledTextFieldProps | import('@mui/material').StandardTextFieldProps | import('@mui/material').OutlinedTextFieldProps, "variant">, "color" | "content" | "translate" | "margin" | "size" | "disabled" | "sx" | "classes" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "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" | "children" | "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" | "ref" | "error" | "name" | "label" | "select" | "key" | "component" | "value" | "type" | "variant" | "autoComplete" | "placeholder" | "required" | "rows" | "fullWidth" | "inputProps" | "inputRef" | "SelectProps" | "multiline" | "maxRows" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').OwnerState> & Record<string, unknown> & {
|
|
4
|
+
ownerState: Partial<import('../types').OwnerState> & Record<string, unknown>;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export declare const TextFieldRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').OwnerState> & Record<string, unknown> & {
|
|
7
|
+
ownerState: Partial<import('../types').OwnerState> & Record<string, unknown>;
|
|
8
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
9
|
+
export declare const MuiSkeletonStyled: 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"> & {
|
|
10
|
+
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;
|
|
11
|
+
}, "height" | "width" | "animation" | "sx" | "classes" | "className" | "style" | "children" | "variant">, "color" | "content" | "height" | "translate" | "width" | "animation" | "sx" | "classes" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "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" | "children" | "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" | "ref" | "key" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').OwnerState> & Record<string, unknown> & {
|
|
12
|
+
ownerState: Partial<import('../types').OwnerState> & Record<string, unknown>;
|
|
13
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../..';
|
|
3
|
+
/**
|
|
4
|
+
* Se aplica cuando el input está deshabilitado y no puede ser interactuado por el usuario.
|
|
5
|
+
*
|
|
6
|
+
* disabled
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: Meta<typeof TextField>;
|
|
9
|
+
type Story = StoryObj<typeof TextField>;
|
|
10
|
+
export declare const OutlinedDisabled: Story;
|
|
11
|
+
export declare const WhitoutEndAdorment: Story;
|
|
12
|
+
export declare const WhitAdorment: Story;
|
|
13
|
+
export declare const WhitoutStartAdorment: Story;
|
|
14
|
+
export declare const WhitoutAdorment: Story;
|
|
15
|
+
export default meta;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../..';
|
|
3
|
+
/**
|
|
4
|
+
* Se aplica cuando el input está deshabilitado y no puede ser interactuado por el usuario.
|
|
5
|
+
*
|
|
6
|
+
* disabled
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: Meta<typeof TextField>;
|
|
9
|
+
type Story = StoryObj<typeof TextField>;
|
|
10
|
+
export declare const TextDisabled: Story;
|
|
11
|
+
export declare const WhitoutEndAdorment: Story;
|
|
12
|
+
export declare const WhitoutStartAdorment: Story;
|
|
13
|
+
export declare const WhitAdorment: Story;
|
|
14
|
+
export declare const WhitoutAdorment: Story;
|
|
15
|
+
export default meta;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../..';
|
|
3
|
+
/**
|
|
4
|
+
* Se utiliza cuando el componente está esperando datos de una fuente externa, como una API.
|
|
5
|
+
*
|
|
6
|
+
* useModuleSkeleton
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: Meta<typeof TextField>;
|
|
9
|
+
type Story = StoryObj<typeof TextField>;
|
|
10
|
+
export declare const SkeletonBase: Story;
|
|
11
|
+
export default meta;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Error en variante 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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Error en variante 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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Componente TextField en su estado Error Active con variante outlined
|
|
7
|
+
* con diferentes configuraciones de adornos y variantes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ActiveOutlined: Story;
|
|
10
|
+
export declare const WhitoutAdornments: Story;
|
|
11
|
+
export declare const WhitAdornments: Story;
|
|
12
|
+
export declare const WhitAdornmentsEnd: Story;
|
|
13
|
+
export declare const WhitAdornmentsStart: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Componente TextField en su estado Error Active con variante outlined
|
|
7
|
+
* con diferentes configuraciones de adornos y variantes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EnabledOutlined: Story;
|
|
10
|
+
export declare const WhitoutAdornments: Story;
|
|
11
|
+
export declare const WhitAdornments: Story;
|
|
12
|
+
export declare const WhitAdornmentsEnd: Story;
|
|
13
|
+
export declare const WhitAdornmentsStart: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Componente TextField en su estado Error Active con variante outlined
|
|
7
|
+
* con diferentes configuraciones de adornos y variantes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FocusOutlined: Story;
|
|
10
|
+
export declare const WhitoutAdornments: Story;
|
|
11
|
+
export declare const WhitAdornments: Story;
|
|
12
|
+
export declare const WhitAdornmentsEnd: Story;
|
|
13
|
+
export declare const WhitAdornmentsStart: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Componente TextField en su estado Error Active con variante outlined
|
|
7
|
+
* con diferentes configuraciones de adornos y variantes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const HoverOutlined: Story;
|
|
10
|
+
export declare const WhitoutAdornments: Story;
|
|
11
|
+
export declare const WhitAdornments: Story;
|
|
12
|
+
export declare const WhitAdornmentsEnd: Story;
|
|
13
|
+
export declare const WhitAdornmentsStart: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Componente TextField en su estado Error Active con variante text
|
|
7
|
+
* con diferentes configuraciones de adornos y variantes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ActiveText: Story;
|
|
10
|
+
export declare const WhitoutAdornments: Story;
|
|
11
|
+
export declare const WhitAdornments: Story;
|
|
12
|
+
export declare const WhitAdornmentsEnd: Story;
|
|
13
|
+
export declare const WhitAdornmentsStart: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Componente TextField en su estado Error Enabled con variante text
|
|
7
|
+
* con diferentes configuraciones de adornos y variantes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EnabledText: Story;
|
|
10
|
+
export declare const WhitoutAdornments: Story;
|
|
11
|
+
export declare const WhitAdornments: Story;
|
|
12
|
+
export declare const WhitAdornmentsEnd: Story;
|
|
13
|
+
export declare const WhitAdornmentsStart: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Componente TextField en su estado Error Focus con variante text
|
|
7
|
+
* con diferentes configuraciones de adornos y variantes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FocusText: Story;
|
|
10
|
+
export declare const WhitoutAdornments: Story;
|
|
11
|
+
export declare const WhitAdornments: Story;
|
|
12
|
+
export declare const WhitAdornmentsEnd: Story;
|
|
13
|
+
export declare const WhitAdornmentsStart: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Componente TextField en su estado Error Hover con variante text
|
|
7
|
+
* con diferentes configuraciones de adornos y variantes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const HoverText: Story;
|
|
10
|
+
export declare const WhitoutAdornments: Story;
|
|
11
|
+
export declare const WhitAdornments: Story;
|
|
12
|
+
export declare const WhitAdornmentsEnd: Story;
|
|
13
|
+
export declare const WhitAdornmentsStart: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { TextField } from '../../..';
|
|
3
|
+
declare const meta: Meta<typeof TextField>;
|
|
4
|
+
type Story = StoryObj<typeof TextField>;
|
|
5
|
+
/**
|
|
6
|
+
* Story for the primary outlined variant of the TextField component.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PrimaryOutlined: Story;
|
|
9
|
+
export default meta;
|