@m4l/components 9.3.13 → 9.3.15-BE091725-beta.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.
Files changed (108) hide show
  1. package/@types/types.d.ts +207 -61
  2. package/components/Card/Card.js +49 -0
  3. package/components/Card/Card.styles.js +56 -0
  4. package/components/Card/constants.js +17 -0
  5. package/components/Card/helpers/getSizeSpacing.d.ts +4 -3
  6. package/components/Card/helpers/getSizeSpacing.js +10 -0
  7. package/components/Card/index.js +1 -0
  8. package/components/Card/slots/CardEnum.js +7 -0
  9. package/components/Card/slots/CardSlots.js +11 -0
  10. package/components/Card/types.d.ts +5 -3
  11. package/components/MenuActions/MenuActions.js +3 -2
  12. package/components/MenuActions/MenuActions.styles.js +1 -1
  13. package/components/MenuActions/constants.d.ts +1 -0
  14. package/components/MenuActions/constants.js +12 -1
  15. package/components/MenuActions/slots/MenuActionsSlots.js +1 -1
  16. package/components/Stepper/Stepper.d.ts +8 -0
  17. package/components/Stepper/Stepper.js +70 -0
  18. package/components/Stepper/Stepper.styles.d.ts +2 -0
  19. package/components/Stepper/Stepper.styles.js +298 -0
  20. package/components/Stepper/constants.d.ts +2 -0
  21. package/components/Stepper/constants.js +6 -0
  22. package/components/Stepper/dictionary.d.ts +8 -0
  23. package/components/Stepper/dictionary.js +14 -0
  24. package/components/Stepper/helpers/evaluateVisibilityStepCondition/index.d.ts +9 -0
  25. package/components/Stepper/helpers/evaluateVisibilityStepCondition/index.js +17 -0
  26. package/components/Stepper/helpers/findNextVisibleValidStep/index.d.ts +10 -0
  27. package/components/Stepper/helpers/findNextVisibleValidStep/index.js +13 -0
  28. package/components/Stepper/helpers/findPrevVisibleValidStep/index.d.ts +10 -0
  29. package/components/Stepper/helpers/findPrevVisibleValidStep/index.js +13 -0
  30. package/components/Stepper/helpers/index.d.ts +4 -0
  31. package/components/Stepper/helpers/index.js +1 -0
  32. package/components/Stepper/helpers/isLastVisibleValidStep/index.d.ts +10 -0
  33. package/components/Stepper/helpers/isLastVisibleValidStep/index.js +16 -0
  34. package/components/Stepper/hooks/useIsLastVisibleValidStep/index.d.ts +6 -0
  35. package/components/Stepper/hooks/useIsLastVisibleValidStep/index.js +25 -0
  36. package/components/Stepper/hooks/useStepper/index.d.ts +5 -0
  37. package/components/Stepper/hooks/useStepper/index.js +14 -0
  38. package/components/Stepper/hooks/useStepperActions/index.d.ts +8 -0
  39. package/components/Stepper/hooks/useStepperActions/index.js +76 -0
  40. package/components/Stepper/icons.d.ts +9 -0
  41. package/components/Stepper/icons.js +12 -0
  42. package/components/Stepper/index.d.ts +14 -0
  43. package/components/Stepper/index.js +1 -0
  44. package/components/Stepper/slots/StepperEnum.d.ts +28 -0
  45. package/components/Stepper/slots/StepperEnum.js +38 -0
  46. package/components/Stepper/slots/StepperSlot.d.ts +63 -0
  47. package/components/Stepper/slots/StepperSlot.js +107 -0
  48. package/components/Stepper/store/StepperContext/index.d.ts +17 -0
  49. package/components/Stepper/store/StepperContext/index.js +91 -0
  50. package/components/Stepper/store/StepperStore/index.d.ts +16 -0
  51. package/components/Stepper/store/StepperStore/index.js +133 -0
  52. package/components/Stepper/store/types.d.ts +63 -0
  53. package/components/Stepper/subcomponents/ContentArea/index.d.ts +6 -0
  54. package/components/Stepper/subcomponents/ContentArea/index.js +24 -0
  55. package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperIcon/index.d.ts +4 -0
  56. package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperIcon/index.js +26 -0
  57. package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.d.ts +4 -0
  58. package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.js +23 -0
  59. package/components/Stepper/subcomponents/StepArea/index.d.ts +6 -0
  60. package/components/Stepper/subcomponents/StepArea/index.js +149 -0
  61. package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.d.ts +5 -0
  62. package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +82 -0
  63. package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.d.ts +4 -0
  64. package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.js +25 -0
  65. package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.d.ts +4 -0
  66. package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.js +42 -0
  67. package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.d.ts +4 -0
  68. package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.js +49 -0
  69. package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.d.ts +4 -0
  70. package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +20 -0
  71. package/components/Stepper/subcomponents/StepperButtons/index.d.ts +4 -0
  72. package/components/Stepper/subcomponents/StepperButtons/index.js +1 -0
  73. package/components/Stepper/subcomponents/StepperContent/index.d.ts +7 -0
  74. package/components/Stepper/subcomponents/StepperContent/index.js +23 -0
  75. package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.d.ts +6 -0
  76. package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +41 -0
  77. package/components/Stepper/subcomponents/StepperFooter/index.d.ts +6 -0
  78. package/components/Stepper/subcomponents/StepperFooter/index.js +48 -0
  79. package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterLeftActions/index.d.ts +6 -0
  80. package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterLeftActions/index.js +9 -0
  81. package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.d.ts +6 -0
  82. package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.js +33 -0
  83. package/components/Stepper/types.d.ts +165 -0
  84. package/components/WindowBase/WindowBase.styles.js +1 -1
  85. package/components/hook-form/RHFormContext/index.d.ts +1 -1
  86. package/components/hook-form/RHFormContext/index.js +5 -4
  87. package/components/hook-form/RHFormContext/types.d.ts +3 -1
  88. package/components/index.d.ts +2 -0
  89. package/components/mui_extended/Autocomplete/types.d.ts +45 -2
  90. package/components/mui_extended/Badge/Badge.styles.js +4 -2
  91. package/components/mui_extended/IconButton/IconButton.js +12 -2
  92. package/components/mui_extended/IconButton/IconButton.styles.js +7 -7
  93. package/components/mui_extended/IconButton/constants.js +8 -1
  94. package/components/mui_extended/Typography/Typography.js +3 -1
  95. package/components/mui_extended/Typography/constants.d.ts +4 -0
  96. package/components/mui_extended/Typography/types.d.ts +6 -0
  97. package/components/mui_extended/Typography/typography.styles.js +1 -0
  98. package/helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.d.ts +11 -0
  99. package/helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.js +44 -0
  100. package/helpers/getStepsAndValidationSchema/index.d.ts +2 -0
  101. package/helpers/getStepsAndValidationSchema/index.js +1 -0
  102. package/helpers/getStepsAndValidationSchema/types.d.ts +21 -0
  103. package/helpers/getStepsAndValidationSchema/types.js +1 -0
  104. package/helpers/index.d.ts +1 -0
  105. package/helpers/index.js +1 -0
  106. package/index.d.ts +1 -0
  107. package/index.js +116 -86
  108. package/package.json +1 -1
package/@types/types.d.ts CHANGED
@@ -47,11 +47,23 @@ import type {
47
47
  IconButtonOwnerState,
48
48
  IconButtonSlotsType,
49
49
  } from '../components/mui_extended/IconButton/types';
50
- import type { BadgeSlotsType, BadgeOwnerState } from '../components/mui_extended/Badge/types';
51
- import { SkeletonOwnerState, SkeletonSlotsType } from '../components/mui_extended/Skeleton/types';
52
- import { TypographyOwnerState, TypographySlotsType } from '../components/mui_extended/Typography/types';
50
+ import type {
51
+ BadgeSlotsType,
52
+ BadgeOwnerState,
53
+ } from '../components/mui_extended/Badge/types';
54
+ import {
55
+ SkeletonOwnerState,
56
+ SkeletonSlotsType,
57
+ } from '../components/mui_extended/Skeleton/types';
58
+ import {
59
+ TypographyOwnerState,
60
+ TypographySlotsType,
61
+ } from '../components/mui_extended/Typography/types';
53
62
  import { ColorOwnerState, ColorSlotsType } from '../components/Color/types';
54
- import { RHFColorPickerOwnerState, RHFColorPickerSlotsType } from '../components/hook-form/RHFColorPicker/types';
63
+ import {
64
+ RHFColorPickerOwnerState,
65
+ RHFColorPickerSlotsType,
66
+ } from '../components/hook-form/RHFColorPicker/types';
55
67
  import type {
56
68
  MenuItemSlotsType,
57
69
  MenuItemOwnerState,
@@ -88,10 +100,7 @@ import {
88
100
  AutocompleteOwnerState,
89
101
  AutocompleteSlotsType,
90
102
  } from '../components/mui_extended/Autocomplete/types';
91
- import {
92
- ChipOwnerState,
93
- ChipSlotsType,
94
- } from '../components/Chip/types';
103
+ import { ChipOwnerState, ChipSlotsType } from '../components/Chip/types';
95
104
  import {
96
105
  CircularProgressOwnerState,
97
106
  CircularProgressSlotsType,
@@ -102,57 +111,187 @@ import {
102
111
  PaperFormOwnerState,
103
112
  } from '../components/PaperForm/types';
104
113
  import { WindowBaseOwnerState, WindowBaseType } from '../components/WindowBase';
105
- import { OwnerStateWindowConfirm, WindowConfirmType } from '../components/WindowConfirm';
114
+ import {
115
+ OwnerStateWindowConfirm,
116
+ WindowConfirmType,
117
+ } from '../components/WindowConfirm';
106
118
  import { AppBarSlotsType, AppBarOwnerState } from '../components/AppBar/types';
107
- import { DialogOwnerState, DialogType } from '../components/mui_extended/Dialog/types';
108
- import { LoadingButtonOwnerState, LoadingButtonSlotsType } from '../components/mui_extended/LoadingButton/types';
109
- import { AccordionOwnerState, AccordionSlotsType } from '../components/mui_extended/Accordion/types';
110
- import {
111
- ImageOwnerState,
112
- ImageSlotsType,
113
- } from '../components/Image/types';
114
- import { PopperOwnerState, PopperSlotsType } from '../components/mui_extended/Popper/types';
115
- import { AvatarOwnerState, AvatarSlotsType } from '../components/mui_extended/Avatar/types';
116
- import { ToggleButtonOwnerState, ToggleButtonSlotsType } from '../components/mui_extended/ToggleButton/types';
117
- import { BooleanFormatterOwnerState, PresentationType } from '../components/formatters/BooleanFormatter/types';
118
- import { ToggleIconButtonOwnerState, ToggleIconButtonSlotsType } from '../components/mui_extended/ToggleIconButton/types';
119
- import { TabsSlotsType, TabsOwnerState } from '../components/mui_extended/Tabs/types';
120
- import { PopoverOwnerState, PopoverSlotsType } from '../components/mui_extended/Popover/types';
121
- import { NumberInputOwnerState, NumberInputSlotsType } from '../components/NumberInput/types';
122
- import { AccountPopoverOwnerState, AccountPopoverSlotsType } from '../components/AccountPopover/types';
123
- import { PropertyVaLueOwnerState, PropertyValueSlotsType } from '../components/PropertyValue/types';
124
- import { RHFTextFieldPasswordOwnerState, RHFTextFieldPasswordType } from '../components/hook-form/RHFTextFieldPassword/types';
125
- import { RHFAutocompleteOwnerState, RHFAutocompleteSlotsType } from '../components/hook-form/RHFAutocomplete/types';
126
- import { PropagateLoaderSpinnerOwnerState, PropagateLoaderSpinnerType } from '../components/extended/React-Spinners/PropagateLoaderSpinner/types';
127
- import { LinearProgressIndeterminateOwnerState, LinearProgressIndeterminateType } from '../components/LinearProgressIndeterminate/types';
128
- import { MenuDividerOwnerState, MenuDividerSlotsType } from '../components/mui_extended/MenuDivider/types';
129
- import { NavLinkOwnerState, NavLinkSlotsType } from '../components/mui_extended/NavLink/types';
130
- import { RHFSelectSlotsType, RHFSelectOwnerState } from '../components/hook-form/RHFSelect/types';
131
- import { StackOwnerState, StackSlotsType } from '../components/mui_extended/Stack/types';
132
- import { RHFCheckBoxOwnerState, RHFCheckBoxSlotsType } from '../components/hook-form/RHFCheckbox/types';
133
- import { ActionFormCancelOwnerState, ActionFormCancelSlotsType } from '../components/CommonActions/components/ActionFormCancel/types';
134
- import { AreasAdminOwnerState, AreasAdminType } from '../components/areas/components/AreasAdmin/types';
135
- import { DateTimePickerOwnerState, DateTimePickerSlotsType } from '../components/mui_extended/DateTimePicker/types';
136
- import { DividerOwnerState, DividerSlotsType } from '../components/mui_extended/Divider/types';
137
- import { NoItemSelectedOwnerState, NoItemSelectedSlotsType } from '../components/NoItemSelected/types';
138
- import { ActionFormIntroOwnerState, ActionFormIntroSlotsType } from '../components/CommonActions/components/ActionFormIntro/types';
139
- import { AreasViewerOwnerState, AreasViewerType } from '../components/areas/components/AreasViewer/types';
140
- import { TimePickerOwnerState, TimePickerSlotsType } from '../components/mui_extended/TimePicker/types';
141
- import { DataGridOwnerState, DataGridSlotsType } from '../components/DataGrid/types';
142
- import { DynamicFilterAndSortOwnerState, DynamicFilterAndSortSlotsType } from '../hooks/useDynamicFilterAndSort/types';
143
- import { RHFUploadSingleFileOwnerState, RHFUploadSingleFileSlotsType } from '../components/hook-form/RHFUpload/RHFUploadSingleFile/types';
119
+ import {
120
+ DialogOwnerState,
121
+ DialogType,
122
+ } from '../components/mui_extended/Dialog/types';
123
+ import {
124
+ LoadingButtonOwnerState,
125
+ LoadingButtonSlotsType,
126
+ } from '../components/mui_extended/LoadingButton/types';
127
+ import {
128
+ AccordionOwnerState,
129
+ AccordionSlotsType,
130
+ } from '../components/mui_extended/Accordion/types';
131
+ import { ImageOwnerState, ImageSlotsType } from '../components/Image/types';
132
+ import {
133
+ PopperOwnerState,
134
+ PopperSlotsType,
135
+ } from '../components/mui_extended/Popper/types';
136
+ import {
137
+ AvatarOwnerState,
138
+ AvatarSlotsType,
139
+ } from '../components/mui_extended/Avatar/types';
140
+ import {
141
+ ToggleButtonOwnerState,
142
+ ToggleButtonSlotsType,
143
+ } from '../components/mui_extended/ToggleButton/types';
144
+ import {
145
+ BooleanFormatterOwnerState,
146
+ PresentationType,
147
+ } from '../components/formatters/BooleanFormatter/types';
148
+ import {
149
+ ToggleIconButtonOwnerState,
150
+ ToggleIconButtonSlotsType,
151
+ } from '../components/mui_extended/ToggleIconButton/types';
152
+ import {
153
+ TabsSlotsType,
154
+ TabsOwnerState,
155
+ } from '../components/mui_extended/Tabs/types';
156
+ import {
157
+ PopoverOwnerState,
158
+ PopoverSlotsType,
159
+ } from '../components/mui_extended/Popover/types';
160
+ import {
161
+ NumberInputOwnerState,
162
+ NumberInputSlotsType,
163
+ } from '../components/NumberInput/types';
164
+ import {
165
+ AccountPopoverOwnerState,
166
+ AccountPopoverSlotsType,
167
+ } from '../components/AccountPopover/types';
168
+ import {
169
+ PropertyVaLueOwnerState,
170
+ PropertyValueSlotsType,
171
+ } from '../components/PropertyValue/types';
172
+ import {
173
+ RHFTextFieldPasswordOwnerState,
174
+ RHFTextFieldPasswordType,
175
+ } from '../components/hook-form/RHFTextFieldPassword/types';
176
+ import {
177
+ RHFAutocompleteOwnerState,
178
+ RHFAutocompleteSlotsType,
179
+ } from '../components/hook-form/RHFAutocomplete/types';
180
+ import {
181
+ PropagateLoaderSpinnerOwnerState,
182
+ PropagateLoaderSpinnerType,
183
+ } from '../components/extended/React-Spinners/PropagateLoaderSpinner/types';
184
+ import {
185
+ LinearProgressIndeterminateOwnerState,
186
+ LinearProgressIndeterminateType,
187
+ } from '../components/LinearProgressIndeterminate/types';
188
+ import {
189
+ MenuDividerOwnerState,
190
+ MenuDividerSlotsType,
191
+ } from '../components/mui_extended/MenuDivider/types';
192
+ import {
193
+ NavLinkOwnerState,
194
+ NavLinkSlotsType,
195
+ } from '../components/mui_extended/NavLink/types';
196
+ import {
197
+ RHFSelectSlotsType,
198
+ RHFSelectOwnerState,
199
+ } from '../components/hook-form/RHFSelect/types';
200
+ import {
201
+ StackOwnerState,
202
+ StackSlotsType,
203
+ } from '../components/mui_extended/Stack/types';
204
+ import {
205
+ RHFCheckBoxOwnerState,
206
+ RHFCheckBoxSlotsType,
207
+ } from '../components/hook-form/RHFCheckbox/types';
208
+ import {
209
+ ActionFormCancelOwnerState,
210
+ ActionFormCancelSlotsType,
211
+ } from '../components/CommonActions/components/ActionFormCancel/types';
212
+ import {
213
+ AreasAdminOwnerState,
214
+ AreasAdminType,
215
+ } from '../components/areas/components/AreasAdmin/types';
216
+ import {
217
+ DateTimePickerOwnerState,
218
+ DateTimePickerSlotsType,
219
+ } from '../components/mui_extended/DateTimePicker/types';
220
+ import {
221
+ DividerOwnerState,
222
+ DividerSlotsType,
223
+ } from '../components/mui_extended/Divider/types';
224
+ import {
225
+ NoItemSelectedOwnerState,
226
+ NoItemSelectedSlotsType,
227
+ } from '../components/NoItemSelected/types';
228
+ import {
229
+ ActionFormIntroOwnerState,
230
+ ActionFormIntroSlotsType,
231
+ } from '../components/CommonActions/components/ActionFormIntro/types';
232
+ import {
233
+ AreasViewerOwnerState,
234
+ AreasViewerType,
235
+ } from '../components/areas/components/AreasViewer/types';
236
+ import {
237
+ TimePickerOwnerState,
238
+ TimePickerSlotsType,
239
+ } from '../components/mui_extended/TimePicker/types';
240
+ import {
241
+ DataGridOwnerState,
242
+ DataGridSlotsType,
243
+ } from '../components/DataGrid/types';
244
+ import {
245
+ DynamicFilterAndSortOwnerState,
246
+ DynamicFilterAndSortSlotsType,
247
+ } from '../hooks/useDynamicFilterAndSort/types';
248
+ import {
249
+ RHFUploadSingleFileOwnerState,
250
+ RHFUploadSingleFileSlotsType,
251
+ } from '../components/hook-form/RHFUpload/RHFUploadSingleFile/types';
144
252
  import { ChipStatusFormatterSlotsType } from '../components/formatters/ChipStatusFormatter/types';
145
- import { RHFUploadImageOwnerState, RHFUploadImageSlotsType } from '../components/hook-form/RHFUpload/RHFUploadImage/types';
146
- import { PrintingSystemOwnerState, PrintingSystemSlotsType } from '../components/PrintingSystem/types';
147
- import { SettingsLayoutOwnerState, SettingsLayoutSlotsType } from '../components/SettingsLayout/types';
148
- import { ScrollBarOwnerState, ScrollBarSlotsType } from '../components/ScrollBar/types';
253
+ import {
254
+ RHFUploadImageOwnerState,
255
+ RHFUploadImageSlotsType,
256
+ } from '../components/hook-form/RHFUpload/RHFUploadImage/types';
257
+ import {
258
+ PrintingSystemOwnerState,
259
+ PrintingSystemSlotsType,
260
+ } from '../components/PrintingSystem/types';
261
+ import {
262
+ SettingsLayoutOwnerState,
263
+ SettingsLayoutSlotsType,
264
+ } from '../components/SettingsLayout/types';
265
+ import {
266
+ ScrollBarOwnerState,
267
+ ScrollBarSlotsType,
268
+ } from '../components/ScrollBar/types';
149
269
  import { SplitLayoutOwnerState } from '../components/extended/React-resizable-panels/types';
150
- import { ObjectLogsOwnerState, ObjectLogsSlotsType } from '../components/ObjectLogs/types';
151
- import { LanguagePopoverOwnerState, LanguagePopoverSlotsType } from '../components/LanguagePopover/types';
270
+ import {
271
+ ObjectLogsOwnerState,
272
+ ObjectLogsSlotsType,
273
+ } from '../components/ObjectLogs/types';
274
+ import {
275
+ LanguagePopoverOwnerState,
276
+ LanguagePopoverSlotsType,
277
+ } from '../components/LanguagePopover/types';
152
278
  import { CardOwnerState, CardSlotsType } from '../components/Card/types';
153
- import { ContainerFlowOwnerState, ContainerFlowSlotsType } from '../components/ContainerFlow/types';
154
- import { NoItemPrivilegesOwnerState, NoItemPrivilegesSlotsType } from '../components/NoItemPrivileges/types';
155
- import { ImageTextOwnerState, ImageTextSlotsType } from '../components/ImageText/types';
279
+ import {
280
+ ContainerFlowOwnerState,
281
+ ContainerFlowSlotsType,
282
+ } from '../components/ContainerFlow/types';
283
+ import {
284
+ StepperOwnerState,
285
+ StepperSlotsType,
286
+ } from '../components/Stepper/types';
287
+ import {
288
+ NoItemPrivilegesOwnerState,
289
+ NoItemPrivilegesSlotsType,
290
+ } from '../components/NoItemPrivileges/types';
291
+ import {
292
+ ImageTextOwnerState,
293
+ ImageTextSlotsType,
294
+ } from '../components/ImageText/types';
156
295
  import { FormContainerOwnerState, FormContainerSlotsType } from '../components/FormContainer/types';
157
296
 
158
297
  declare module '@mui/material/styles' {
@@ -223,7 +362,7 @@ declare module '@mui/material/styles' {
223
362
  M4LNoItemSelected: NoItemSelectedSlotsType;
224
363
  M4LActionFormIntro: ActionFormIntroSlotsType;
225
364
  M4LAreasViewer: AreasViewerType;
226
- M4LTimePicker: TimePickerSlotsType
365
+ M4LTimePicker: TimePickerSlotsType;
227
366
  M4LDataGrid: DataGridSlotsType;
228
367
  M4LDynamicFilterAndSort: DynamicFilterAndSortSlotsType;
229
368
  M4LRHFUploadSingleFile: RHFUploadSingleFileSlotsType;
@@ -239,6 +378,7 @@ declare module '@mui/material/styles' {
239
378
  M4LContainerFlow: ContainerFlowSlotsType;
240
379
  M4LNoItemPrivileges: NoItemPrivilegesSlotsType;
241
380
  M4LSettingsLayoutBase: SettingsLayoutSlotsType;
381
+ M4LStepper: StepperSlotsType;
242
382
  M4LImageText: ImageTextSlotsType;
243
383
  M4LFormContainer: FormContainerSlotsType;
244
384
  }
@@ -301,7 +441,7 @@ declare module '@mui/material/styles' {
301
441
  M4LMenuDivider: Partial<MenuDividerOwnerState>;
302
442
  M4LNavLink: Partial<NavLinkOwnerState>;
303
443
  M4LRHFSelect: Partial<RHFSelectOwnerState>;
304
- M4LActionFormCancel : Partial<ActionFormCancelOwnerState>;
444
+ M4LActionFormCancel: Partial<ActionFormCancelOwnerState>;
305
445
  M4LAreasAdmin: Partial<AreasAdminOwnerState>;
306
446
  M4LStack: Partial<StackOwnerState>;
307
447
  M4LDateTimePicker: Partial<DateTimePickerOwnerState>;
@@ -325,6 +465,7 @@ declare module '@mui/material/styles' {
325
465
  M4LContainerFlow: Partial<ContainerFlowOwnerState>;
326
466
  M4LNoItemPrivileges: Partial<NoItemPrivilegesOwnerState>;
327
467
  M4LSettingsLayoutBase: Partial<SettingsLayoutOwnerState>;
468
+ M4LStepper: Partial<StepperOwnerState>;
328
469
  M4LImageText: Partial<ImageTextOwnerState>;
329
470
  M4LFormContainer: Partial<FormContainerOwnerState>;
330
471
  }
@@ -613,7 +754,7 @@ declare module '@mui/material/styles' {
613
754
  defaultProps?: ComponentsPropsList['M4LActionFormCancel'];
614
755
  styleOverrides?: ComponentsOverrides<Theme>['M4LActionFormCancel'];
615
756
  variants?: ComponentsVariants['M4LActionFormCancel'];
616
- }
757
+ };
617
758
  M4LNavLink?: {
618
759
  defaultProps?: ComponentsPropsList['M4LNavLink'];
619
760
  styleOverrides?: ComponentsOverrides<Theme>['M4LNavLink'];
@@ -643,7 +784,7 @@ declare module '@mui/material/styles' {
643
784
  defaultProps?: ComponentsPropsList['M4LNoItemSelected'];
644
785
  styleOverrides?: ComponentsOverrides<Theme>['M4LNoItemSelected'];
645
786
  variants?: ComponentsVariants['M4LNoItemSelected'];
646
- }
787
+ };
647
788
  M4LActionFormIntro?: {
648
789
  defaultProps?: ComponentsPropsList['M4LActionFormIntro '];
649
790
  styleOverrides?: ComponentsOverrides<Theme>['M4LActionFormIntro '];
@@ -683,7 +824,7 @@ declare module '@mui/material/styles' {
683
824
  defaultProps?: ComponentsPropsList['M4LRHFUploadSingleFile'];
684
825
  styleOverrides?: ComponentsOverrides<Theme>['M4LRHFUploadSingleFile'];
685
826
  variants?: ComponentsVariants['M4LRHFUploadSingleFile'];
686
- }
827
+ };
687
828
  M4LChipStatusFormatter?: {
688
829
  defaultProps?: ComponentsPropsList['M4LChipStatusFormatter'];
689
830
  styleOverrides?: ComponentsOverrides<Theme>['M4LChipStatusFormatter'];
@@ -744,6 +885,11 @@ declare module '@mui/material/styles' {
744
885
  styleOverrides?: ComponentsOverrides<Theme>['M4LSettingsLayoutBase'];
745
886
  variants?: ComponentsVariants['M4LSettingsLayoutBase'];
746
887
  };
888
+ M4LStepper?: {
889
+ defaultProps?: ComponentsPropsList['M4LStepper'];
890
+ styleOverrides?: ComponentsOverrides<Theme>['M4LStepper'];
891
+ variants?: ComponentsVariants['M4LStepper'];
892
+ };
747
893
  M4LImageText?: {
748
894
  defaultProps?: ComponentsPropsList['M4LImageText'];
749
895
  styleOverrides?: ComponentsOverrides<Theme>['M4LImageText'];
@@ -755,4 +901,4 @@ declare module '@mui/material/styles' {
755
901
  variants?: ComponentsVariants['M4LFormContainer'];
756
902
  };
757
903
  }
758
- }
904
+ }
@@ -0,0 +1,49 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { C as CardRootStyled } from "./slots/CardSlots.js";
3
+ import { C as CARD_CLASSES } from "./constants.js";
4
+ import clsx from "clsx";
5
+ const Card = (props) => {
6
+ const {
7
+ className,
8
+ variant = "text",
9
+ gap,
10
+ height = "auto",
11
+ children,
12
+ direction = "row",
13
+ justifyContent = "center",
14
+ alignItems = "center",
15
+ selected = false,
16
+ padding,
17
+ ...others
18
+ } = props;
19
+ const ownerState = {
20
+ variant,
21
+ gap,
22
+ height,
23
+ direction,
24
+ onClick: !!props.onClick,
25
+ justifyContent,
26
+ alignItems,
27
+ selected,
28
+ padding
29
+ };
30
+ return /* @__PURE__ */ jsx(
31
+ CardRootStyled,
32
+ {
33
+ ownerState,
34
+ className: clsx(
35
+ CARD_CLASSES.root,
36
+ variant === "outlined" && CARD_CLASSES.outlined,
37
+ variant === "text" && CARD_CLASSES.text,
38
+ selected && CARD_CLASSES.selected,
39
+ className
40
+ ),
41
+ role: "card",
42
+ ...others,
43
+ children
44
+ }
45
+ );
46
+ };
47
+ export {
48
+ Card as C
49
+ };
@@ -0,0 +1,56 @@
1
+ import { g as getSizeSpacing } from "./helpers/getSizeSpacing.js";
2
+ const cardStyles = {
3
+ /**
4
+ * Estilos para el contenedor principal del card.
5
+ */
6
+ root: ({ theme, ownerState }) => {
7
+ const gap = getSizeSpacing(ownerState?.gap, theme);
8
+ const padding = getSizeSpacing(ownerState?.padding, theme);
9
+ return {
10
+ display: "flex",
11
+ justifyContent: ownerState?.justifyContent ?? "center",
12
+ alignItems: ownerState?.alignItems ?? "center",
13
+ flexDirection: ownerState?.direction ?? "column",
14
+ gap,
15
+ padding,
16
+ transition: "all 0.2s ease-in-out",
17
+ width: "100%",
18
+ outline: "unset!important",
19
+ borderRadius: theme.vars.size.borderRadius.r2,
20
+ backgroundColor: theme.palette.background.paper,
21
+ height: ownerState?.height ?? "auto",
22
+ minHeight: ownerState?.height ?? "auto",
23
+ maxHeight: ownerState?.height ?? "auto",
24
+ overflow: "hidden",
25
+ ...ownerState?.onClick && {
26
+ cursor: "pointer",
27
+ "&:hover": {
28
+ backgroundColor: theme.vars.palette.background.base
29
+ },
30
+ "&:active": {
31
+ backgroundColor: theme.vars.palette.default.activeOpacity
32
+ },
33
+ "&:focus-visible, &:focus-within": {
34
+ border: theme.vars.size.borderStroke.container,
35
+ borderColor: `${theme.vars.palette.primary.focusVisible}!important`,
36
+ outline: "unset!important"
37
+ }
38
+ },
39
+ ...ownerState?.variant === "outlined" && {
40
+ border: theme.vars.size.borderStroke.container,
41
+ borderColor: theme.vars.palette.border.disabled
42
+ },
43
+ ...ownerState?.variant === "text" && {
44
+ border: theme.vars.size.borderStroke.container,
45
+ borderColor: "transparent"
46
+ },
47
+ ...ownerState?.selected && {
48
+ border: theme.vars.size.borderStroke.container,
49
+ borderColor: theme.vars.palette.primary.enabled
50
+ }
51
+ };
52
+ }
53
+ };
54
+ export {
55
+ cardStyles as c
56
+ };
@@ -0,0 +1,17 @@
1
+ import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
2
+ import { C as CardSlots } from "./slots/CardEnum.js";
3
+ const CARD_KEY = "M4LCard";
4
+ const CARD_VARIANTS = {
5
+ text: "text",
6
+ outlined: "outlined"
7
+ };
8
+ const COMBINED_CLASSES = {
9
+ ...CARD_VARIANTS,
10
+ ...CardSlots,
11
+ selected: "selected"
12
+ };
13
+ const CARD_CLASSES = getComponentClasses(CARD_KEY, COMBINED_CLASSES);
14
+ export {
15
+ CARD_CLASSES as C,
16
+ CARD_KEY as a
17
+ };
@@ -1,7 +1,8 @@
1
- import { CardProps } from '../types';
1
+ import { SpacingsCard } from '../types';
2
+ import { Theme } from '@mui/material';
2
3
  /**
3
4
  * Obtiene el tamaño del gap de la tarjeta.
4
- * @param gap - El gap de la tarjeta.
5
+ * @param spacing - El gap de la tarjeta.
5
6
  * @returns El tamaño del gap de la tarjeta.
6
7
  */
7
- export declare const getSizeSpacing: (gap: CardProps["gap"] | number | undefined | null) => number;
8
+ export declare const getSizeSpacing: (spacing: SpacingsCard | number | undefined | null, theme: Theme) => string | number;
@@ -0,0 +1,10 @@
1
+ const getSizeSpacing = (spacing, theme) => {
2
+ if (typeof spacing === "number") {
3
+ return spacing;
4
+ }
5
+ const densityKey = spacing ?? "standard";
6
+ return theme.vars.size.density[densityKey];
7
+ };
8
+ export {
9
+ getSizeSpacing as g
10
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,7 @@
1
+ var CardSlots = /* @__PURE__ */ ((CardSlots2) => {
2
+ CardSlots2["root"] = "root";
3
+ return CardSlots2;
4
+ })(CardSlots || {});
5
+ export {
6
+ CardSlots as C
7
+ };
@@ -0,0 +1,11 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { a as CARD_KEY } from "../constants.js";
3
+ import { C as CardSlots } from "./CardEnum.js";
4
+ import { c as cardStyles } from "../Card.styles.js";
5
+ const CardRootStyled = styled("div", {
6
+ name: CARD_KEY,
7
+ slot: CardSlots.root
8
+ })(cardStyles?.root);
9
+ export {
10
+ CardRootStyled as C
11
+ };
@@ -1,7 +1,9 @@
1
- import { Theme } from '@mui/material';
1
+ import { Theme } from '@mui/material/styles';
2
2
  import { M4LOverridesStyleRules } from '../../@types/augmentations';
3
3
  import { CARD_KEY } from './constants';
4
4
  import { CardSlots } from './slots/CardEnum';
5
+ import { Density } from '@m4l/styles';
6
+ export type SpacingsCard = number | keyof Density;
5
7
  export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
6
8
  /**
7
9
  * Contenido de la tarjeta.
@@ -14,11 +16,11 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
14
16
  /**
15
17
  * Espacio entre los elementos de la tarjeta.
16
18
  */
17
- gap?: number | 'compact' | 'standard' | 'comfortable';
19
+ gap?: SpacingsCard;
18
20
  /**
19
21
  * Espacio entre los elementos de la tarjeta.
20
22
  */
21
- padding?: number | 'compact' | 'standard' | 'comfortable';
23
+ padding?: SpacingsCard;
22
24
  /**
23
25
  * Dirección de la tarjeta.
24
26
  */
@@ -4,9 +4,10 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
4
4
  import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
5
5
  import { P as Popover } from "../mui_extended/Popover/Popover.js";
6
6
  import { M as MenuItem } from "../mui_extended/MenuItem/MenuItem.js";
7
- import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_ } from "./constants.js";
7
+ import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_, b as MENU_ACTIONS_CLASSES } from "./constants.js";
8
8
  import { a as getMenuActionsDictionary, D as DICTIONARY } from "./dictionary.js";
9
9
  import { M as MenuDivider } from "../mui_extended/MenuDivider/MenuDivider.js";
10
+ import clsx from "clsx";
10
11
  import { M as MenuListStyled, a as MenuLoaderStyled, R as RootStyled, I as IconButtonStyled, H as HeaderMenuActionsStyled, F as FooterMenuActionsStyled } from "./slots/MenuActionsSlots.js";
11
12
  import { C as CircularProgress } from "../mui_extended/CircularProgress/CircularProgress.js";
12
13
  function MenuActions(props) {
@@ -128,7 +129,7 @@ function MenuActions(props) {
128
129
  endListElement && endListElement
129
130
  ] });
130
131
  }, [menuActions, header, size, footer, endListElement, objItem, getLabel, actionKey, handleClick]);
131
- return /* @__PURE__ */ jsxs(RootStyled, { className, ownerState: { ownerState }, children: [
132
+ return /* @__PURE__ */ jsxs(RootStyled, { className: clsx(className, MENU_ACTIONS_CLASSES.root, ownerState.selected && MENU_ACTIONS_CLASSES.selected), ownerState: { ownerState }, children: [
132
133
  /* @__PURE__ */ jsx(
133
134
  IconButtonStyled,
134
135
  {
@@ -38,7 +38,7 @@ const menuActionsStyles = {
38
38
  "& active": {
39
39
  backgroundColor: theme.vars.palette[ownerState?.paletteColor ?? "default"].selectedOpacity
40
40
  },
41
- '& [class*="M4LIcon-icon"]': {
41
+ "& .M4LIcon-icon": {
42
42
  backgroundColor: ownerState?.selected ? theme.vars.palette[ownerState?.paletteColor ?? "default"].selected : void 0
43
43
  }
44
44
  }),
@@ -20,3 +20,4 @@ export declare const MENU_ACTIONS_EMPTY = "menu_action_empty";
20
20
  * Prefijo de la clave que se utiliza cuando un ítem del menú está cargando en React.
21
21
  */
22
22
  export declare const MENU_ACTIONS_ = "menu_action_";
23
+ export declare const MENU_ACTIONS_CLASSES: Record<string, string>;
@@ -1,12 +1,23 @@
1
+ import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
2
+ import { M as MenuActionsSlots } from "./slots/MenuActionsEnum.js";
1
3
  const ICON_PATH = "frontend/components/menu_actions/assets/icons";
2
4
  const ICONS = {
3
5
  MENU: "menu.svg"
4
6
  };
5
7
  const MENU_ACTIONS_KEY_COMPONENT = "M4LMenuActions";
6
8
  const MENU_ACTIONS_ = "menu_action_";
9
+ const MenuActionsComplementaryClasses = {
10
+ selected: "selected"
11
+ };
12
+ const MENU_ACTIONS_COMBINATE_CLASSES = {
13
+ ...MenuActionsSlots,
14
+ ...MenuActionsComplementaryClasses
15
+ };
16
+ const MENU_ACTIONS_CLASSES = getComponentClasses(MENU_ACTIONS_KEY_COMPONENT, MENU_ACTIONS_COMBINATE_CLASSES);
7
17
  export {
8
18
  ICON_PATH as I,
9
19
  MENU_ACTIONS_ as M,
10
20
  ICONS as a,
11
- MENU_ACTIONS_KEY_COMPONENT as b
21
+ MENU_ACTIONS_CLASSES as b,
22
+ MENU_ACTIONS_KEY_COMPONENT as c
12
23
  };
@@ -1,6 +1,6 @@
1
1
  import { MenuList } from "@mui/material";
2
2
  import { styled } from "@mui/material/styles";
3
- import { b as MENU_ACTIONS_KEY_COMPONENT } from "../constants.js";
3
+ import { c as MENU_ACTIONS_KEY_COMPONENT } from "../constants.js";
4
4
  import { m as menuActionsStyles } from "../MenuActions.styles.js";
5
5
  import { M as MenuActionsSlots } from "./MenuActionsEnum.js";
6
6
  import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
@@ -0,0 +1,8 @@
1
+ import { StepperProps } from './types';
2
+ /**
3
+ * El Stepper es un componente que permite navegar a través de una serie de pasos (steps) de manera secuencial.
4
+ *
5
+ * ### Dependecias:
6
+ *- **`useFlagsPresent:`** Hook que permite verificar si una lista de flags se encuentran presentes.
7
+ */
8
+ export declare function Stepper(props: StepperProps): import("react/jsx-runtime").JSX.Element | null;