@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.
Files changed (100) hide show
  1. package/@types/export.d.ts +4 -1
  2. package/@types/types.d.ts +12 -0
  3. package/components/DynamicFilter/DynamicFIlter.styles.js +156 -0
  4. package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +2 -2
  5. package/components/HelperError/HelperError.d.ts +11 -1
  6. package/components/HelperError/HelperError.stories.d.ts +7 -1
  7. package/components/HelperError/HelperError.styles.js +22 -3
  8. package/components/HelperError/slots/HelperErrorEnum.d.ts +2 -1
  9. package/components/HelperError/slots/HelperErrorEnum.js +1 -0
  10. package/components/HelperError/slots/HelperErrorSlots.d.ts +3 -0
  11. package/components/HelperError/slots/HelperErrorSlots.js +5 -0
  12. package/components/HelperError/types.d.ts +3 -0
  13. package/components/Icon/Icon.styles.js +1 -1
  14. package/components/Label/Label.d.ts +17 -1
  15. package/components/Label/Label.js +8 -3
  16. package/components/Label/Label.styles.js +43 -6
  17. package/components/Label/{Label.stories.d.ts → stories/PaletteColor/DefaultinternalManagement/LabelDefaultInternal.stories.d.ts} +6 -8
  18. package/components/Label/stories/PaletteColor/DefaultinternalManagement/LabelDefaultPredeterminado.stories.d.ts +18 -0
  19. package/components/Label/stories/PaletteColor/DefaultinternalManagement/commonProps/LabelDefaultInternalVariants.stories.d.ts +14 -0
  20. package/components/Label/stories/PaletteColor/DefaultinternalManagement/commonProps/LabelDefaultVariants.stories.d.ts +14 -0
  21. package/components/Label/types.d.ts +7 -1
  22. package/components/MFLoader/MFLoader.d.ts +6 -0
  23. package/components/MFLoader/MFLoader.js +3 -0
  24. package/components/NavLink/NavLink.d.ts +4 -0
  25. package/components/areas/components/AreasViewer/classes/index.d.ts +2 -2
  26. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +2 -2
  27. package/components/areas/contexts/AreasContext/store.d.ts +4 -0
  28. package/components/areas/contexts/AreasContext/store.js +268 -0
  29. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +4 -0
  30. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +4 -0
  31. package/components/hook-form/RHFTextField/RHFTextField.js +15 -4
  32. package/components/hook-form/RHFTextField/RHFTextField.styles.js +266 -96
  33. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +10 -10
  34. package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldDisabledOutlined.stories.d.ts +10 -0
  35. package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldDisabledText.stories.d.ts +10 -0
  36. package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldSkeleton.stories.d.ts +6 -0
  37. package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorOutlined.stories.d.ts +9 -0
  38. package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorText.stories.d.ts +9 -0
  39. package/components/hook-form/RHFTextField/stories/Primary/TextFieldOutlined.stories.d.ts +9 -0
  40. package/components/hook-form/RHFTextField/stories/Primary/TextFieldText.stories.d.ts +9 -0
  41. package/components/hook-form/RHFTextField/types.d.ts +10 -2
  42. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +2 -2
  43. package/components/maps/components/Map/contexts/MapContext/store.d.ts +2 -2
  44. package/components/maps/components/Map/contexts/MapContext/store.js +272 -152
  45. package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +2 -2
  46. package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +2 -2
  47. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +2 -2
  48. package/components/mui_extended/Accordion/Accordion.d.ts +4 -0
  49. package/components/mui_extended/IconButton/IconButton.d.ts +5 -1
  50. package/components/mui_extended/IconButton/IconButton.js +26 -61
  51. package/components/mui_extended/IconButton/IconButton.styles.js +19 -6
  52. package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +1 -2
  53. package/components/mui_extended/IconButton/slots/IconButtonEnum.js +0 -1
  54. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +0 -3
  55. package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -7
  56. package/components/mui_extended/IconButton/types.d.ts +2 -46
  57. package/components/mui_extended/LoadingButton/index.d.ts +4 -0
  58. package/components/mui_extended/Skeleton/Skeleton.d.ts +4 -0
  59. package/components/mui_extended/Skeleton/skeleton.styles.js +4 -0
  60. package/components/mui_extended/TextField/TextField.d.ts +5 -0
  61. package/components/mui_extended/TextField/TextField.styles.d.ts +2 -0
  62. package/components/mui_extended/TextField/constants.d.ts +1 -0
  63. package/components/mui_extended/TextField/index.d.ts +1 -0
  64. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +5 -0
  65. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +13 -0
  66. package/components/mui_extended/TextField/slots/index.d.ts +2 -0
  67. package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldDisabledOutlined.stories.d.ts +15 -0
  68. package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldDisabledText.stories.d.ts +15 -0
  69. package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldSkeleton.stories.d.ts +11 -0
  70. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/TextFieldErrorOutlined.stories.d.ts +9 -0
  71. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/TextFieldErrorText.stories.d.ts +9 -0
  72. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateActive.stories.d.ts +14 -0
  73. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateEnabled.stories.d.ts +14 -0
  74. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateFocus.stories.d.ts +14 -0
  75. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateHover.stories.d.ts +14 -0
  76. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateActive.stories.d.ts +14 -0
  77. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateEnabled.stories.d.ts +14 -0
  78. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateFocus.stories.d.ts +14 -0
  79. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateHover.stories.d.ts +14 -0
  80. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/TextFieldOutlined.stories.d.ts +9 -0
  81. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/TextFieldText.stories.d.ts +12 -0
  82. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateActive.stories.d.ts +14 -0
  83. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateEnabled.stories.d.ts +14 -0
  84. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateFocus.stories.d.ts +14 -0
  85. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateHover.stories.d.ts +14 -0
  86. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateActive.stories.d.ts +14 -0
  87. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateEnabled.stories.d.ts +14 -0
  88. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateFocus.stories.d.ts +14 -0
  89. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateHover.stories.d.ts +14 -0
  90. package/components/mui_extended/TextField/stories/PaletteColorTextField/sizes/TextFieldSizes.stories.d.ts +16 -0
  91. package/components/mui_extended/TextField/types.d.ts +35 -0
  92. package/components/mui_extended/Typography/Typography.d.ts +4 -0
  93. package/components/mui_extended/Typography/typography.styles.js +4 -0
  94. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +2 -2
  95. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +82 -18
  96. package/contexts/RealTimeContext/store.d.ts +2 -2
  97. package/contexts/RealTimeContext/store.js +22 -6
  98. package/hooks/useSizeContainer/index.d.ts +2 -2
  99. package/package.json +1 -1
  100. package/components/hook-form/RHFTextField/RHFTextField.stories.d.ts +0 -14
@@ -209,7 +209,7 @@ declare module '@mui/material/styles' {
209
209
  styleOverrides?: ComponentsOverrides<Theme>['M4LStack'];
210
210
  };
211
211
  M4LTabs?: {
212
- styleOverrides?: ComponentsOverrides<Theme>['M4LTabs'];
212
+ styleOverrides?: ComponeftntsOverrides<Theme>['M4LTabs'];
213
213
  };
214
214
  M4LNoItemSelected?: {
215
215
  styleOverrides?: ComponentsOverrides<Theme>['M4LNoItemSelected'];
@@ -256,5 +256,8 @@ declare module '@mui/material/styles' {
256
256
  M4LLabel?: {
257
257
  styleOverrides?: ComponentsOverrides<Theme>['M4LLabel'];
258
258
  };
259
+ M4LTextField?: {
260
+ styleOverrides?: ComponentsOverrides<Theme>[' M4LTextField'];
261
+ };
259
262
  }
260
263
  }
package/@types/types.d.ts CHANGED
@@ -31,6 +31,11 @@ import {
31
31
  import { HelperErrorOwnerState, HelperErrorOwnerSlotsType } from '../components/HelperError/types';
32
32
  import { LabelOwnerState, LabelSlotsType } from '../components/Label/types';
33
33
 
34
+ import {
35
+ TextFieldOwnerState,
36
+ TextFieldSlotsType,
37
+ } from '../components/mui_extended/TextField/types';
38
+
34
39
  type Theme = Omit<MuiTheme, 'components'>;
35
40
  import { TooltipOwnerState, TooltipSlotsType } from '../components/mui_extended/Tooltip/types';
36
41
 
@@ -59,6 +64,7 @@ declare module '@mui/material/styles' {
59
64
  M4LLabel: LabelSlotsType;
60
65
  M4LTooltip: TooltipSlotsType;
61
66
  M4LIconButton: IconButtonSlotsType;
67
+ M4LTextField: TextFieldSlotsType;
62
68
  M4LBadge: BadgeSlotsType;
63
69
  M4LSkeleton: SkeletonSlotsType;
64
70
  M4LTypography: TypographySlotsType;
@@ -78,6 +84,7 @@ declare module '@mui/material/styles' {
78
84
  M4LHelperError: Partial<HelperErrorOwnerState>;
79
85
  M4LLabel: Partial<LabelOwnerState>;
80
86
  M4LTooltip: Partial<TooltipOwnerState>;
87
+ M4LTextField: Partial<TextFieldOwnerState>;
81
88
  M4LIconButton: Partial<IconButtonOwnerState>;
82
89
  M4LBadge: Partial<BadgeOwnerState>;
83
90
  M4LSkeleton: Partial<SkeletonOwnerState>;
@@ -145,6 +152,11 @@ declare module '@mui/material/styles' {
145
152
  styleOverrides?: ComponentsOverrides<Theme>['M4LTooltip'];
146
153
  variants?: ComponentsVariants['M4LTooltip'];
147
154
  };
155
+ M4LTextField?: {
156
+ defaultProps?: ComponentsPropsList['M4LTextField'];
157
+ styleOverrides?: ComponentsOverrides<Theme>['M4LTextField'];
158
+ variants?: ComponentsVariants['M4LTextField'];
159
+ };
148
160
  M4LIconButton?: {
149
161
  defaultProps?: ComponentsPropsList['M4LIconButton'];
150
162
  styleOverrides?: ComponentsOverrides<Theme>['M4LIconButton'];
@@ -11,6 +11,162 @@ const dynamicFilterStyles = {
11
11
  },
12
12
  /**
13
13
  * TODO: Documentar
14
+ * @updatedUser Bruce Escobar - automatic
15
+ * @updatedUser Bruce Escobar - automatic
16
+ * @updatedUser Bruce Escobar - automatic
17
+ * @updatedUser Bruce Escobar - automatic
18
+ * @updatedUser Bruce Escobar - automatic
19
+ * @updatedUser Bruce Escobar - automatic
20
+ * @updatedUser Bruce Escobar - automatic
21
+ * @updatedUser Bruce Escobar - automatic
22
+ * @updatedUser Bruce Escobar - automatic
23
+ * @updatedUser Bruce Escobar - automatic
24
+ * @updatedUser Bruce Escobar - automatic
25
+ * @updatedUser Bruce Escobar - automatic
26
+ * @updatedUser Bruce Escobar - automatic
27
+ * @updatedUser Bruce Escobar - automatic
28
+ * @updatedUser Bruce Escobar - automatic
29
+ * @updatedUser Bruce Escobar - automatic
30
+ * @updatedUser Bruce Escobar - automatic
31
+ * @updatedUser Bruce Escobar - automatic
32
+ * @updatedUser Bruce Escobar - automatic
33
+ * @updatedAt 2024-10-22 09:42:38 - automatic
34
+ * @updatedAt 2024-10-22 09:42:38 - automatic
35
+ * @updatedAt 2024-10-22 09:42:38 - automatic
36
+ * @updatedAt 2024-10-22 09:42:38 - automatic
37
+ * @updatedAt 2024-10-22 09:42:38 - automatic
38
+ * @updatedAt 2024-10-22 09:42:38 - automatic
39
+ * @updatedAt 2024-10-22 09:42:38 - automatic
40
+ * @updatedAt 2024-10-22 09:42:38 - automatic
41
+ * @updatedAt 2024-10-22 09:42:38 - automatic
42
+ * @updatedAt 2024-10-22 09:42:38 - automatic
43
+ * @updatedAt 2024-10-22 09:42:38 - automatic
44
+ * @updatedAt 2024-10-22 09:42:38 - automatic
45
+ * @updatedAt 2024-10-22 09:42:38 - automatic
46
+ * @updatedAt 2024-10-22 09:42:38 - automatic
47
+ * @updatedAt 2024-10-22 09:42:38 - automatic
48
+ * @updatedAt 2024-10-22 09:42:38 - automatic
49
+ * @updatedAt 2024-10-22 09:42:38 - automatic
50
+ * @updatedAt 2024-10-22 09:42:38 - automatic
51
+ * @updatedAt 2024-10-22 09:42:38 - automatic
52
+ * @createdAt 2024-10-22 09:42:38 - automatic
53
+ * @createdAt 2024-10-22 09:42:38 - automatic
54
+ * @createdAt 2024-10-22 09:42:38 - automatic
55
+ * @createdAt 2024-10-22 09:42:38 - automatic
56
+ * @createdAt 2024-10-22 09:42:38 - automatic
57
+ * @createdAt 2024-10-22 09:42:38 - automatic
58
+ * @createdAt 2024-10-22 09:42:38 - automatic
59
+ * @createdAt 2024-10-22 09:42:38 - automatic
60
+ * @createdAt 2024-10-22 09:42:38 - automatic
61
+ * @createdAt 2024-10-22 09:42:38 - automatic
62
+ * @createdAt 2024-10-22 09:42:38 - automatic
63
+ * @createdAt 2024-10-22 09:42:38 - automatic
64
+ * @createdAt 2024-10-22 09:42:38 - automatic
65
+ * @createdAt 2024-10-22 09:42:38 - automatic
66
+ * @createdAt 2024-10-22 09:42:38 - automatic
67
+ * @createdAt 2024-10-22 09:42:38 - automatic
68
+ * @createdAt 2024-10-22 09:42:38 - automatic
69
+ * @createdAt 2024-10-22 09:42:38 - automatic
70
+ * @createdAt 2024-10-22 09:42:38 - automatic
71
+ * @author Bruce Escobar - automatic
72
+ * @author Bruce Escobar - automatic
73
+ * @author Bruce Escobar - automatic
74
+ * @author Bruce Escobar - automatic
75
+ * @author Bruce Escobar - automatic
76
+ * @author Bruce Escobar - automatic
77
+ * @author Bruce Escobar - automatic
78
+ * @author Bruce Escobar - automatic
79
+ * @author Bruce Escobar - automatic
80
+ * @author Bruce Escobar - automatic
81
+ * @author Bruce Escobar - automatic
82
+ * @author Bruce Escobar - automatic
83
+ * @author Bruce Escobar - automatic
84
+ * @author Bruce Escobar - automatic
85
+ * @author Bruce Escobar - automatic
86
+ * @author Bruce Escobar - automatic
87
+ * @author Bruce Escobar - automatic
88
+ * @author Bruce Escobar - automatic
89
+ * @author Bruce Escobar - automatic
90
+ * @updatedUser Bruce Escobar - automatic
91
+ * @updatedUser Bruce Escobar - automatic
92
+ * @updatedUser Bruce Escobar - automatic
93
+ * @updatedUser Bruce Escobar - automatic
94
+ * @updatedUser Bruce Escobar - automatic
95
+ * @updatedUser Bruce Escobar - automatic
96
+ * @updatedUser Bruce Escobar - automatic
97
+ * @updatedUser Bruce Escobar - automatic
98
+ * @updatedUser Bruce Escobar - automatic
99
+ * @updatedUser Bruce Escobar - automatic
100
+ * @updatedUser Bruce Escobar - automatic
101
+ * @updatedUser Bruce Escobar - automatic
102
+ * @updatedUser Bruce Escobar - automatic
103
+ * @updatedUser Bruce Escobar - automatic
104
+ * @updatedUser Bruce Escobar - automatic
105
+ * @updatedUser Bruce Escobar - automatic
106
+ * @updatedUser Bruce Escobar - automatic
107
+ * @updatedUser Bruce Escobar - automatic
108
+ * @updatedUser Bruce Escobar - automatic
109
+ * @updatedAt 2024-10-22 09:42:38 - automatic
110
+ * @updatedAt 2024-10-22 09:42:38 - automatic
111
+ * @updatedAt 2024-10-22 09:42:38 - automatic
112
+ * @updatedAt 2024-10-22 09:42:38 - automatic
113
+ * @updatedAt 2024-10-22 09:42:38 - automatic
114
+ * @updatedAt 2024-10-22 09:42:38 - automatic
115
+ * @updatedAt 2024-10-22 09:42:38 - automatic
116
+ * @updatedAt 2024-10-22 09:42:38 - automatic
117
+ * @updatedAt 2024-10-22 09:42:38 - automatic
118
+ * @updatedAt 2024-10-22 09:42:38 - automatic
119
+ * @updatedAt 2024-10-22 09:42:38 - automatic
120
+ * @updatedAt 2024-10-22 09:42:38 - automatic
121
+ * @updatedAt 2024-10-22 09:42:38 - automatic
122
+ * @updatedAt 2024-10-22 09:42:38 - automatic
123
+ * @updatedAt 2024-10-22 09:42:38 - automatic
124
+ * @updatedAt 2024-10-22 09:42:38 - automatic
125
+ * @updatedAt 2024-10-22 09:42:38 - automatic
126
+ * @updatedAt 2024-10-22 09:42:38 - automatic
127
+ * @updatedAt 2024-10-22 09:42:38 - automatic
128
+ * @createdAt 2024-10-22 09:41:31 - automatic
129
+ * @createdAt 2024-10-22 09:41:31 - automatic
130
+ * @createdAt 2024-10-22 09:41:31 - automatic
131
+ * @createdAt 2024-10-22 09:41:31 - automatic
132
+ * @createdAt 2024-10-22 09:41:31 - automatic
133
+ * @createdAt 2024-10-22 09:41:31 - automatic
134
+ * @createdAt 2024-10-22 09:41:31 - automatic
135
+ * @createdAt 2024-10-22 09:41:31 - automatic
136
+ * @createdAt 2024-10-22 09:41:31 - automatic
137
+ * @createdAt 2024-10-22 09:41:31 - automatic
138
+ * @createdAt 2024-10-22 09:41:31 - automatic
139
+ * @createdAt 2024-10-22 09:41:31 - automatic
140
+ * @createdAt 2024-10-22 09:41:31 - automatic
141
+ * @createdAt 2024-10-22 09:41:31 - automatic
142
+ * @createdAt 2024-10-22 09:41:31 - automatic
143
+ * @createdAt 2024-10-22 09:41:31 - automatic
144
+ * @createdAt 2024-10-22 09:41:31 - automatic
145
+ * @createdAt 2024-10-22 09:41:31 - automatic
146
+ * @createdAt 2024-10-22 09:41:31 - automatic
147
+ * @author Bruce Escobar - automatic
148
+ * @author Bruce Escobar - automatic
149
+ * @author Bruce Escobar - automatic
150
+ * @author Bruce Escobar - automatic
151
+ * @author Bruce Escobar - automatic
152
+ * @author Bruce Escobar - automatic
153
+ * @author Bruce Escobar - automatic
154
+ * @author Bruce Escobar - automatic
155
+ * @author Bruce Escobar - automatic
156
+ * @author Bruce Escobar - automatic
157
+ * @author Bruce Escobar - automatic
158
+ * @author Bruce Escobar - automatic
159
+ * @author Bruce Escobar - automatic
160
+ * @author Bruce Escobar - automatic
161
+ * @author Bruce Escobar - automatic
162
+ * @author Bruce Escobar - automatic
163
+ * @author Bruce Escobar - automatic
164
+ * @author Bruce Escobar - automatic
165
+ * @author Bruce Escobar - automatic
166
+ * @author Bruce Escobar - automatic
167
+ * @createdAt 2024-10-22 09:41:31 - automatic
168
+ * @updatedAt 2024-10-22 09:42:38 - automatic
169
+ * @updatedUser Bruce Escobar - automatic
14
170
  */
15
171
  innerContainer: ({ theme, ownerState }) => ({
16
172
  display: "grid",
@@ -14,8 +14,8 @@ type MinimalParameters = Pick<CoreProps, 'containerWidth' | 'containerHeight' |
14
14
  /**
15
15
  * TODO: Documentar
16
16
  * @author Juan Escobar - automatic
17
- * @updatedAt 2024-10-15 17:33:28 - automatic
18
- * @updatedUser Juan Escobar - automatic
17
+ * @updatedAt 2024-10-22 09:42:38 - automatic
18
+ * @updatedUser Bruce Escobar - automatic
19
19
  * @createdAt 2024-10-15 17:33:28 - automatic
20
20
  */
21
21
  export declare function withSizeProvider<T extends MinimalParameters>(ComposedComponent: FunctionComponent<T>): (props: Omit<T, "containerWidth" | "containerHeight" | "innerRef"> & HOCProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,13 @@
1
1
  import { HelperErrorProps } from './types';
2
- /** Es un componente de interfaz de usuario diseñado para mostrar mensajes de error, proporciona información sobre problemas o errores que han ocurrido durante la interacción con la aplicación o el sitio web. */
2
+ /**
3
+ * HelperError component displays an error message with optional skeleton width.
4
+ * @param {HelperErrorProps} props - The properties for the HelperError component.
5
+ * @param {string} [props.message] - The error message to display.
6
+ * @param {number} [props.skeletonWidth] - The width of the skeleton loader.
7
+ * @returns {JSX.Element} The rendered HelperError component.
8
+ * @author Bruce Escobar - automatic
9
+ * @createdAt 2024-10-22 09:42:38 - automatic
10
+ * @updatedAt 2024-10-22 09:42:38 - automatic
11
+ * @updatedUser Bruce Escobar - automatic
12
+ */
3
13
  export declare const HelperError: (props: HelperErrorProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,10 @@ declare const meta: Meta<typeof HelperError>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof HelperError>;
6
6
  /** Base HelperError component */
7
- export declare const Base: Story;
7
+ export declare const ErrorBase: Story;
8
+ /** Small HelperError component */
9
+ export declare const small: Story;
10
+ /** Medium HelperError component */
11
+ export declare const medium: Story;
12
+ /** Skeleton HelperError component */
13
+ export declare const Skeleton: Story;
@@ -1,11 +1,30 @@
1
1
  const helperErrorStyles = {
2
2
  /**
3
- * TODO: Documentar
3
+ * Estilos para el slot del root HelperError
4
4
  */
5
- root: ({ theme }) => ({
5
+ root: ({ theme, ownerState }) => ({
6
6
  "& .MuiTypography-root": {
7
- color: theme.vars.palette.error.main
7
+ color: theme.vars.palette.error.main,
8
+ ...ownerState.size === "small" && {
9
+ ...theme.generalSettings.isMobile ? { height: theme.size.typography.mobile.small } : { height: theme.size.typography.desktop.small }
10
+ },
11
+ ...ownerState.size === "medium" && {
12
+ ...theme.generalSettings.isMobile ? { height: theme.size.typography.mobile.medium } : { height: theme.size.typography.desktop.medium }
13
+ }
8
14
  }
15
+ }),
16
+ /**
17
+ * Estilos personalizados Skeleton
18
+ */
19
+ skeletonStyled: ({ theme, ownerState }) => ({
20
+ ...ownerState.size === "small" && {
21
+ ...theme.generalSettings.isMobile ? { height: theme.size.typography.desktop.small } : { height: theme.vars.size.desktop.small.container }
22
+ },
23
+ // Condiciones de tamaño Medium en el root
24
+ ...ownerState.size === "medium" && {
25
+ ...theme.generalSettings.isMobile ? { height: theme.vars.size.mobile.medium.container } : { height: theme.vars.size.desktop.medium.container }
26
+ },
27
+ variants: []
9
28
  })
10
29
  };
11
30
  export {
@@ -1,3 +1,4 @@
1
1
  export declare enum HelperErrorSlots {
2
- root = "root"
2
+ root = "root",
3
+ skeletonStyled = "skeletonStyled"
3
4
  }
@@ -1,5 +1,6 @@
1
1
  var HelperErrorSlots = /* @__PURE__ */ ((HelperErrorSlots2) => {
2
2
  HelperErrorSlots2["root"] = "root";
3
+ HelperErrorSlots2["skeletonStyled"] = "skeletonStyled";
3
4
  return HelperErrorSlots2;
4
5
  })(HelperErrorSlots || {});
5
6
  export {
@@ -1,3 +1,6 @@
1
1
  export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').HelperErrorProps> & Record<string, unknown> & {
2
2
  ownerState: Partial<import('..').HelperErrorProps> & Record<string, unknown>;
3
3
  }, {}, {}>;
4
+ export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Skeleton/types').SkeletonProps, keyof import('../../mui_extended/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').HelperErrorProps> & Record<string, unknown> & {
5
+ ownerState: Partial<import('..').HelperErrorProps> & Record<string, unknown>;
6
+ }, {}, {}>;
@@ -3,10 +3,15 @@ import { H as HelperErrorSlots } from "./HelperErrorEnum.js";
3
3
  import { H as HELPER_ERROR_KEY_COMPONENT } from "../constant.js";
4
4
  import { h as helperErrorStyles } from "../HelperError.styles.js";
5
5
  import { T as Typography } from "../../mui_extended/Typography/Typography.js";
6
+ import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
6
7
  const TypographyStyled = styled(Typography, {
7
8
  name: HELPER_ERROR_KEY_COMPONENT,
8
9
  slot: HelperErrorSlots.root
9
10
  })(helperErrorStyles?.root);
11
+ styled(Skeleton, {
12
+ name: HELPER_ERROR_KEY_COMPONENT,
13
+ slot: HelperErrorSlots.skeletonStyled
14
+ })(helperErrorStyles?.skeletonStyled);
10
15
  export {
11
16
  TypographyStyled as T
12
17
  };
@@ -3,6 +3,8 @@ import { TypographyProps } from '../mui_extended/Typography/types';
3
3
  import { HELPER_ERROR_KEY_COMPONENT } from './constant';
4
4
  import { HelperErrorSlots } from './slots';
5
5
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
6
+ import { Sizes } from '@m4l/styles';
7
+ export type HelperErrorSize = 'small' | 'medium';
6
8
  /**
7
9
  * Extiende de TypographyProps para incluir propiedades de esqueleto y añade la propiedad `message`.
8
10
  * `message` es el mensaje de error a mostrar.
@@ -12,6 +14,7 @@ export interface HelperErrorProps extends Pick<TypographyProps, 'skeletonWidth'>
12
14
  * Mensaje que se visualiza en el componente HelperError.
13
15
  */
14
16
  message: string | undefined;
17
+ size?: Sizes;
15
18
  }
16
19
  /**
17
20
  * Representa el estado del componente HelperError, incluyendo todas las propiedades de HelperErrorProps.
@@ -31,7 +31,7 @@ const iconStyles = {
31
31
  backgroundColor: !ownerState.disabled ? getPropertyByString(theme.vars.palette, ownerState.color || "text.primary") : theme.vars.palette.text.disabled,
32
32
  ...ownerState.size === "medium" && {
33
33
  ...theme.generalSettings.isMobile ? {
34
- minWidth: theme.vars.size.mobile.medium.base,
34
+ minWidth: theme.vars.size.mobile.medium.action,
35
35
  minHeight: theme.vars.size.mobile.medium.action
36
36
  } : {
37
37
  minWidth: theme.vars.size.desktop.medium.base,
@@ -1,5 +1,21 @@
1
1
  import { LabelProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Label es un componente React que renderiza una etiqueta de texto, la cual puede ser utilizada en formularios o en cualquier
4
+ * lugar donde se necesite una descripción textual.
5
+ * Soporta la visualización de un indicador de campo obligatorio, mensaje de ayuda a través
6
+ * de un tooltip, y puede adaptar su tamaño. El componente también puede mostrar un estado de esqueleto, indicando
7
+ * que el contenido está cargando.
8
+ * @author Bruce Escobar - automatic
9
+ * @createdAt 2024-10-22 09:34:39 - automatic
10
+ * @updatedAt 2024-10-22 09:42:38 - automatic
11
+ * @updatedUser Bruce Escobar - automatic
12
+ */
13
+ /**
14
+ * Label component that displays a label with optional mandatory and helper messages.
15
+ * @returns {JSX.Element} The rendered Label component.
16
+ * @author Bruce Escobar - automatic
17
+ * @createdAt 2024-10-22 09:34:39 - automatic
18
+ * @updatedAt 2024-10-22 09:42:38 - automatic
19
+ * @updatedUser Bruce Escobar - automatic
4
20
  */
5
21
  export declare const Label: (props: LabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,10 +2,10 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useEnvironment, useModuleSkeleton } from "@m4l/core";
3
3
  import { L as LabelRootStyled, T as TypographyStyled, a as TypographyMandatoryMessageStyled, I as IconHelperMessageStyled, S as SkeletonStyled } from "./slots/LabelSlots.js";
4
4
  const Label = (props) => {
5
- const { helperMessage, label, mandatory, mandatoryMessage, htmlFor, id, size = "medium" } = props;
5
+ const { helperMessage, label, mandatory, mandatoryMessage, htmlFor, id, error, size = "medium" } = props;
6
6
  const { host_static_assets, environment_assets } = useEnvironment();
7
7
  const isSkeleton = useModuleSkeleton();
8
- return /* @__PURE__ */ jsx(LabelRootStyled, { ownerState: {}, htmlFor, id, label: "", children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
8
+ return /* @__PURE__ */ jsx(LabelRootStyled, { ownerState: {}, htmlFor, id, label: "", variantLabel: "standard", children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
9
9
  /* @__PURE__ */ jsx(TypographyStyled, { ownerState: { size }, variant: "body", className: "", children: label }),
10
10
  mandatory && /* @__PURE__ */ jsx(
11
11
  TypographyMandatoryMessageStyled,
@@ -22,10 +22,15 @@ const Label = (props) => {
22
22
  tooltipContent: helperMessage,
23
23
  ownerState: {},
24
24
  placement: "right",
25
+ className: error ? "helper-icon-error" : "helper-icon",
25
26
  src: `${host_static_assets}/${environment_assets}/frontend/components/LabelMessage/assets/icons/infoSmall.svg`
26
27
  }
27
28
  )
28
- ] }) : /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: {}, variant: "text", width: "30%", height: "14px" }) });
29
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
30
+ /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: {}, variant: "text", width: "30%", height: "14px" }),
31
+ mandatory && /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: {}, variant: "text", width: "10px", height: "14px" }),
32
+ helperMessage && /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: { type: "helperMessage" }, variant: "rounded", width: "14px", height: "14px" })
33
+ ] }) });
29
34
  };
30
35
  export {
31
36
  Label as L
@@ -1,6 +1,10 @@
1
1
  const labelStyles = {
2
2
  /**
3
- * TODO: Documentar
3
+ * Estilos para el contenedor raíz del Label.
4
+ * @author Bruce Escobar - automatic
5
+ * @createdAt 2024-10-22 09:34:39 - automatic
6
+ * @updatedAt 2024-10-22 09:42:38 - automatic
7
+ * @updatedUser Bruce Escobar - automatic
4
8
  */
5
9
  root: ({ ownerState, theme }) => ({
6
10
  display: "flex",
@@ -8,6 +12,7 @@ const labelStyles = {
8
12
  alignItems: "center",
9
13
  flexWrap: "wrap",
10
14
  width: "100%",
15
+ gap: theme.size.baseSpacings.sp1,
11
16
  flexDirection: "row",
12
17
  [`& .${ownerState.label}`]: {
13
18
  ...ownerState.size === "small" && {
@@ -25,7 +30,11 @@ const labelStyles = {
25
30
  }
26
31
  }),
27
32
  /**
28
- * TODO: Documentar
33
+ * Estilos para el slot Typography.
34
+ * @author Bruce Escobar - automatic
35
+ * @createdAt 2024-10-22 09:34:39 - automatic
36
+ * @updatedAt 2024-10-22 09:42:38 - automatic
37
+ * @updatedUser Bruce Escobar - automatic
29
38
  */
30
39
  typographyStyled: ({ theme, ownerState }) => ({
31
40
  marginInlineStart: theme.spacing(0.4),
@@ -43,12 +52,16 @@ const labelStyles = {
43
52
  }
44
53
  }),
45
54
  /**
46
- * TODO: Documentar
55
+ * Estilos para el mensaje obligatorio.
56
+ * @author Bruce Escobar - automatic
57
+ * @createdAt 2024-10-22 09:34:39 - automatic
58
+ * @updatedAt 2024-10-22 09:42:38 - automatic
59
+ * @updatedUser Bruce Escobar - automatic
47
60
  */
48
61
  typographyMandatoryMessageStyled: ({ theme, ownerState }) => ({
49
62
  marginInlineStart: theme.spacing(0.4),
50
63
  "& .MuiTypography-root": {
51
- color: theme.vars.palette.text.secondary,
64
+ color: theme.vars.palette.text.primary,
52
65
  [theme.breakpoints.up("sm")]: {
53
66
  fontSize: ownerState.size === "medium" ? "11px" : "10px"
54
67
  },
@@ -58,11 +71,16 @@ const labelStyles = {
58
71
  }
59
72
  }),
60
73
  /**
61
- * TODO: Documentar
74
+ * Estilos para el icono del mensaje de ayuda.
75
+ * @author Bruce Escobar - automatic
76
+ * @createdAt 2024-10-22 09:34:39 - automatic
77
+ * @updatedAt 2024-10-22 09:42:38 - automatic
78
+ * @updatedUser Bruce Escobar - automatic
62
79
  */
63
80
  iconHelperMessageStyled: ({ theme }) => ({
64
81
  height: "24px",
65
82
  width: "24px",
83
+ borderRadius: theme.vars.size.borderRadius.r1,
66
84
  '&:hover > [class*="M4LIcon-icon"]': {
67
85
  backgroundColor: theme.vars.palette.primary.main
68
86
  },
@@ -71,7 +89,26 @@ const labelStyles = {
71
89
  backgroundColor: theme.vars.palette.text.secondary
72
90
  }
73
91
  }),
74
- skeletonStyled: () => ({})
92
+ /**
93
+ * Estilos para el componente Skeleton.
94
+ * @author Bruce Escobar - automatic
95
+ * @createdAt 2024-10-22 09:34:39 - automatic
96
+ * @updatedAt 2024-10-22 09:42:38 - automatic
97
+ * @updatedUser Bruce Escobar - automatic
98
+ */
99
+ skeletonStyled: ({ ownerState, theme }) => ({
100
+ // borderRadius:theme.vars.size.borderRadius.r1,
101
+ ...ownerState.size === "small" && {
102
+ ...theme.generalSettings.isMobile ? { height: theme.vars.size.mobile.small.action } : { height: theme.vars.size.desktop.small.action }
103
+ },
104
+ // Condiciones de tamaño Medium en el root
105
+ ...ownerState.size === "medium" && {
106
+ ...theme.generalSettings.isMobile ? { height: theme.vars.size.mobile.medium.action } : { height: theme.vars.size.desktop.medium.action }
107
+ },
108
+ ...ownerState.type === "helperMessage" && {
109
+ borderRadius: theme.vars.size.borderRadius.r1
110
+ }
111
+ })
75
112
  };
76
113
  export {
77
114
  labelStyles as l
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Label } from './Label';
2
+ import { Label } from '../../../Label';
3
3
  /**
4
4
  * Label es un componente React que renderiza una etiqueta de texto, la cual puede ser utilizada en formularios o en cualquier
5
5
  * lugar donde se necesite una descripción textual.
@@ -10,13 +10,11 @@ import { Label } from './Label';
10
10
  declare const meta: Meta<typeof Label>;
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof Label>;
13
- /** Base Label component */
14
- export declare const BaseDefault: Story;
15
- /** Label component With props `mandatory=true` */
16
- export declare const Obligatorio: Story;
13
+ /** Base Label componentin mode Skeleton */
14
+ export declare const MandatoryAndMelpmessage: Story;
15
+ /** Label component With props `mandatory=true` in mode Skeleton */
16
+ export declare const Mandatory: Story;
17
17
  /** Label component With props `helperMessage` */
18
- export declare const LabelWhitInfo: Story;
19
- /** Label component With props `helperMessage` and `mandatoryMessage` */
20
- export declare const LabelMandatoryMessage: Story;
18
+ export declare const Base: Story;
21
19
  /** Label component in mode Skeleton */
22
20
  export declare const Skeleton: Story;
@@ -0,0 +1,18 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Label } from '../../../Label';
3
+ /**
4
+ * Label es un componente React que renderiza una etiqueta de texto, la cual puede ser utilizada en formularios o en cualquier
5
+ * lugar donde se necesite una descripción textual.
6
+ * Soporta la visualización de un indicador de campo obligatorio, mensaje de ayuda a través
7
+ * de un tooltip, y puede adaptar su tamaño. El componente también puede mostrar un estado de esqueleto, indicando
8
+ * que el contenido está cargando.
9
+ */
10
+ declare const meta: Meta<typeof Label>;
11
+ export default meta;
12
+ type Story = StoryObj<typeof Label>;
13
+ /** Label component Props Comunes */
14
+ export declare const MandatoryAndMelpmessage: Story;
15
+ /** Label component With props `mandatory=true` */
16
+ export declare const Mandatory: Story;
17
+ /** Label component With props `helperMessage` */
18
+ export declare const Base: Story;
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Label } from '../../../../Label';
3
+ /**
4
+ * Label es un componente React que renderiza una etiqueta de texto, la cual puede ser utilizada en formularios o en cualquier
5
+ * lugar donde se necesite una descripción textual.
6
+ * Soporta la visualización de un indicador de campo obligatorio, mensaje de ayuda a través
7
+ * de un tooltip, y puede adaptar su tamaño. El componente también puede mostrar un estado de esqueleto, indicando
8
+ * que el contenido está cargando.
9
+ */
10
+ declare const meta: Meta<typeof Label>;
11
+ export default meta;
12
+ type Story = StoryObj<typeof Label>;
13
+ /** Base Label component */
14
+ export declare const Default: Story;
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Label } from '../../../../Label';
3
+ /**
4
+ * Label es un componente React que renderiza una etiqueta de texto, la cual puede ser utilizada en formularios o en cualquier
5
+ * lugar donde se necesite una descripción textual.
6
+ * Soporta la visualización de un indicador de campo obligatorio, mensaje de ayuda a través
7
+ * de un tooltip, y puede adaptar su tamaño. El componente también puede mostrar un estado de esqueleto, indicando
8
+ * que el contenido está cargando.
9
+ */
10
+ declare const meta: Meta<typeof Label>;
11
+ export default meta;
12
+ type Story = StoryObj<typeof Label>;
13
+ /** Base Label component */
14
+ export declare const WithObligationAndHelp: Story;
@@ -2,11 +2,13 @@ import { LabelSlots } from './slots';
2
2
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
3
3
  import { Theme } from '@mui/material';
4
4
  import { LABEL_KEY_COMPONENT } from './constants';
5
+ export type LabelVariants = 'standard';
5
6
  export interface LabelProps {
6
7
  /** Mesanje de ayuda opcional que se visualiza cuando se interactua con el tooltip del Icono de informacion */
7
8
  helperMessage?: string | undefined;
8
9
  /** Es la etiqueta de texto principal del componente.*/
9
10
  label: string;
11
+ variantLabel?: LabelVariants;
10
12
  /** Es una propiedad que permite visualizar el texto que acompaña a la etiqueta `label` Por defecto es `false`.*/
11
13
  mandatory?: boolean;
12
14
  /** Es una etiqueta de texto que define si el campo es obligatorio, por defecto se visualiza un `*` de lo contrario se va a mostrar el valor que se proporciona .*/
@@ -17,8 +19,12 @@ export interface LabelProps {
17
19
  id?: string;
18
20
  /** Define el tamaño de la etiqueta. Puede ser 'small' o 'medium'. Por defecto es 'medium'. */
19
21
  size?: 'small' | 'medium';
22
+ children?: React.ReactNode;
23
+ className?: string;
24
+ /** Indica si hay un error en el campo asociado a la etiqueta. */
25
+ error?: boolean;
20
26
  }
21
- export type OwnerState = Pick<LabelProps, 'size'>;
27
+ export type OwnerState = Pick<LabelProps, 'size' | 'variantLabel'>;
22
28
  export interface LabelOwnerState extends LabelProps, OwnerState {
23
29
  }
24
30
  export type LabelSlotsType = keyof typeof LabelSlots;
@@ -9,14 +9,20 @@ declare global {
9
9
  * divContainerId - El ID del contenedor DIV del microfrontend.
10
10
  * scriptId - El ID del script del microfrontend.
11
11
  * moduleId - El ID del módulo del microfrontend.
12
+ * @createdAt 2024-10-22 09:41:31 - automatic
12
13
  */
13
14
  /**
14
15
  * Componente para cargar microfrontends de manera dinámica.
15
16
  * @param {MFLoaderProps} props - Props del componente MFLoader.
16
17
  * @returns {JSX.Element} - El componente MFLoader.
18
+ * @createdAt 2024-10-22 09:41:31 - automatic
17
19
  */
18
20
  /**
19
21
  * TODO: Documentar
22
+ * @author Bruce Escobar - automatic
23
+ * @createdAt 2024-10-22 09:41:31 - automatic
24
+ * @updatedAt 2024-10-22 09:42:38 - automatic
25
+ * @updatedUser Bruce Escobar - automatic
20
26
  */
21
27
  export declare function MFLoader(props: MFLoaderProps): import("react/jsx-runtime").JSX.Element;
22
28
  export default MFLoader;