@m4l/components 9.1.5 → 9.1.7

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 (143) hide show
  1. package/@types/types.d.ts +127 -2
  2. package/components/CommonActions/components/ActionCancel/ActionCancel.d.ts +11 -0
  3. package/components/CommonActions/components/ActionCancel/ActionCancel.js +52 -0
  4. package/components/CommonActions/components/ActionCancel/ActionCancel.test.d.ts +1 -0
  5. package/components/CommonActions/components/ActionCancel/ActionCancelStyles.d.ts +2 -0
  6. package/components/CommonActions/components/ActionCancel/ActionCancelStyles.js +6 -0
  7. package/components/CommonActions/components/ActionCancel/constants.d.ts +8 -0
  8. package/components/CommonActions/components/ActionCancel/constants.js +4 -0
  9. package/components/CommonActions/components/ActionCancel/index.d.ts +2 -5
  10. package/components/CommonActions/components/ActionCancel/index.js +1 -12
  11. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelEnum.d.ts +3 -0
  12. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelEnum.js +7 -0
  13. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +4 -0
  14. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.js +12 -0
  15. package/components/CommonActions/components/ActionCancel/slots/index.d.ts +2 -0
  16. package/components/CommonActions/components/ActionCancel/slots/index.js +1 -0
  17. package/components/CommonActions/components/ActionCancel/types.d.ts +33 -0
  18. package/components/CommonActions/components/ActionCancel/types.js +1 -0
  19. package/components/CommonActions/components/ActionFormCancel/index.d.ts +4 -0
  20. package/components/CommonActions/components/ActionFormCancel/index.js +2 -2
  21. package/components/CommonActions/components/ActionIntro/ActionIntro.d.ts +12 -0
  22. package/components/CommonActions/components/ActionIntro/ActionIntro.integration.test.d.ts +1 -0
  23. package/components/CommonActions/components/ActionIntro/ActionIntro.js +51 -0
  24. package/components/CommonActions/components/ActionIntro/ActionIntro.test.d.ts +1 -0
  25. package/components/CommonActions/components/ActionIntro/ActionIntroStyles.d.ts +2 -0
  26. package/components/CommonActions/components/ActionIntro/ActionIntroStyles.js +6 -0
  27. package/components/CommonActions/components/ActionIntro/constants.d.ts +8 -0
  28. package/components/CommonActions/components/ActionIntro/constants.js +4 -0
  29. package/components/CommonActions/components/ActionIntro/index.d.ts +2 -5
  30. package/components/CommonActions/components/ActionIntro/index.js +1 -25
  31. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroEnum.d.ts +3 -0
  32. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroEnum.js +7 -0
  33. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +4 -0
  34. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.js +12 -0
  35. package/components/CommonActions/components/ActionIntro/slots/index.d.ts +2 -0
  36. package/components/CommonActions/components/ActionIntro/slots/index.js +1 -0
  37. package/components/CommonActions/components/ActionIntro/types.d.ts +33 -0
  38. package/components/CommonActions/components/ActionIntro/types.js +1 -0
  39. package/components/CommonActions/components/ActionsContainer/index.d.ts +2 -0
  40. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +2 -2
  41. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +2 -2
  42. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
  43. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +4 -0
  44. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +2 -2
  45. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
  46. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.d.ts +4 -0
  47. package/components/Icon/types.d.ts +1 -1
  48. package/components/Label/Label.js +5 -5
  49. package/components/Label/Label.styles.js +4 -0
  50. package/components/Label/stories/PaletteColor/{DefaultinternalManagement → VariantsLabel}/LabelDefaultInternal.stories.d.ts +4 -6
  51. package/components/Label/stories/PaletteColor/{DefaultinternalManagement → VariantsLabel}/LabelDefaultPredeterminado.stories.d.ts +1 -1
  52. package/components/Label/types.d.ts +9 -1
  53. package/components/LoadingError/LoadingError.d.ts +5 -0
  54. package/components/LoadingError/LoadingError.js +7 -1
  55. package/components/PDFViewer/PDFViewer.d.ts +4 -0
  56. package/components/PDFViewer/PDFViewer.js +1 -1
  57. package/components/SplitLayout/SplitLayout.js +1 -1
  58. package/components/ToastContainer/ToastContainer.stories.d.ts +4 -0
  59. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +43 -1
  60. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.js +4 -5
  61. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +4 -0
  62. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +6 -8
  63. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +27 -3
  64. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +4 -5
  65. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.d.ts +4 -0
  66. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +7 -6
  67. package/components/hook-form/RHFColorPicker/RFHColorPicker.d.ts +4 -0
  68. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
  69. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +2 -2
  70. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.js +1 -1
  71. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +2 -2
  72. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +7 -1
  73. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +2 -2
  74. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +1 -1
  75. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +2 -2
  76. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +1 -1
  77. package/components/modal/WindowConfirm/index.d.ts +3 -3
  78. package/components/modal/WindowConfirm/index.js +2 -2
  79. package/components/mui_extended/Button/Button.d.ts +8 -6
  80. package/components/mui_extended/Button/Button.integration.test.d.ts +1 -0
  81. package/components/mui_extended/Button/Button.js +70 -34
  82. package/components/mui_extended/Button/Button.test.d.ts +1 -0
  83. package/components/mui_extended/Button/ButtonStyles.d.ts +2 -0
  84. package/components/mui_extended/Button/ButtonStyles.js +223 -0
  85. package/components/mui_extended/Button/classes/index.d.ts +5 -2
  86. package/components/mui_extended/Button/classes/index.js +5 -29
  87. package/components/mui_extended/Button/classes/types.d.ts +10 -0
  88. package/components/mui_extended/Button/constans.d.ts +8 -0
  89. package/components/mui_extended/Button/constans.js +4 -0
  90. package/components/mui_extended/Button/slots/ButtonEnum.d.ts +6 -0
  91. package/components/mui_extended/Button/slots/ButtonEnum.js +10 -0
  92. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +15 -0
  93. package/components/mui_extended/Button/slots/ButtonSlots.js +30 -0
  94. package/components/mui_extended/Button/slots/index.d.ts +3 -0
  95. package/components/mui_extended/Button/slots/index.js +1 -0
  96. package/components/mui_extended/Button/types.d.ts +45 -8
  97. package/components/mui_extended/CheckBox/CheckBox.d.ts +22 -0
  98. package/components/mui_extended/CheckBox/CheckBox.js +40 -18
  99. package/components/mui_extended/CheckBox/CheckBox.styles.d.ts +2 -0
  100. package/components/mui_extended/CheckBox/CheckBox.styles.js +80 -0
  101. package/components/mui_extended/CheckBox/constants.d.ts +1 -0
  102. package/components/mui_extended/CheckBox/constants.js +4 -0
  103. package/components/mui_extended/CheckBox/slots/CheckBoxEnum.d.ts +6 -0
  104. package/components/mui_extended/CheckBox/slots/CheckBoxEnum.js +10 -0
  105. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +14 -0
  106. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +28 -0
  107. package/components/mui_extended/CheckBox/slots/index.d.ts +2 -0
  108. package/components/mui_extended/CheckBox/slots/index.js +1 -0
  109. package/components/mui_extended/CheckBox/types.d.ts +42 -1
  110. package/components/mui_extended/ToggleButton/ToggleButton.js +1 -1
  111. package/components/mui_extended/Typography/types.d.ts +5 -1
  112. package/index.js +2 -2
  113. package/package.json +1 -1
  114. package/storybook/components/commonActions/components/ActionCancel/ActionCancel.stories.d.ts +22 -0
  115. package/storybook/components/commonActions/components/ActionIntro/ActionIntro.stories.d.ts +22 -0
  116. package/storybook/components/extended/mui/Button/Button.stories.d.ts +26 -0
  117. package/storybook/components/extended/mui/CheckBox/PaletteColor/Default/states/CheckBoxDisabled.stories.d.ts +22 -0
  118. package/storybook/components/extended/mui/CheckBox/PaletteColor/Default/states/CheckBoxSkeleton.stories.d.ts +10 -0
  119. package/storybook/components/extended/mui/CheckBox/PaletteColor/Error/states/CheckBoxActive.stories.d.ts +16 -0
  120. package/storybook/components/extended/mui/CheckBox/PaletteColor/Error/states/CheckBoxEnabled.stories.d.ts +16 -0
  121. package/storybook/components/extended/mui/CheckBox/PaletteColor/Error/states/CheckBoxFocusVisible.stories.d.ts +16 -0
  122. package/storybook/components/extended/mui/CheckBox/PaletteColor/Error/states/CheckBoxHover.stories.d.ts +16 -0
  123. package/storybook/components/extended/mui/CheckBox/PaletteColor/Primary/states/CheckBoxActive.stories.d.ts +18 -0
  124. package/storybook/components/extended/mui/CheckBox/PaletteColor/Primary/states/CheckBoxEnabled.stories.d.ts +17 -0
  125. package/storybook/components/extended/mui/CheckBox/PaletteColor/Primary/states/CheckBoxFocusVisible.stories.d.ts +17 -0
  126. package/storybook/components/extended/mui/CheckBox/PaletteColor/Primary/states/CheckBoxHover.stories.d.ts +17 -0
  127. package/components/CommonActions/components/ActionIntro/test/contants.js +0 -4
  128. package/components/Label/stories/PaletteColor/DefaultinternalManagement/commonProps/LabelDefaultInternalVariants.stories.d.ts +0 -14
  129. package/components/Label/stories/PaletteColor/DefaultinternalManagement/commonProps/LabelDefaultVariants.stories.d.ts +0 -14
  130. package/components/mui_extended/Button/styles.d.ts +0 -4
  131. package/components/mui_extended/Button/styles.js +0 -12
  132. package/components/mui_extended/CheckBox/classes/constants.d.ts +0 -1
  133. package/components/mui_extended/CheckBox/classes/constants.js +0 -4
  134. package/components/mui_extended/CheckBox/classes/index.d.ts +0 -11
  135. package/components/mui_extended/CheckBox/classes/index.js +0 -33
  136. package/components/mui_extended/CheckBox/classes/types.d.ts +0 -10
  137. package/components/mui_extended/CheckBox/styles.d.ts +0 -1
  138. package/components/mui_extended/CheckBox/styles.js +0 -7
  139. package/components/mui_extended/CheckBox/subcomponents/Skeleton/index.d.ts +0 -5
  140. package/components/mui_extended/CheckBox/subcomponents/Skeleton/index.js +0 -9
  141. package/components/mui_extended/CheckBox/subcomponents/Skeleton/types.d.ts +0 -4
  142. package/internal_libs/react-splitter-layout.js +0 -158
  143. /package/components/{mui_extended/Button/index.test.d.ts → CommonActions/components/ActionCancel/ActionCancel.integration.test.d.ts} +0 -0
package/@types/types.d.ts CHANGED
@@ -52,10 +52,18 @@ import type {
52
52
  } from '../components/mui_extended/MenuItem/types';
53
53
 
54
54
  import { SelectOwnerState, SelectSlotsType } from '../components/mui_extended/Select/types';
55
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
56
+ import { C } from 'vitest/dist/chunks/environment.CzISCQ7o';
57
+
58
+ import { CheckBoxOwnerState, CheckBoxSlotsType } from '../components/mui_extended/CheckBox/types';
55
59
  import { RHFInputNumberSpinnerOwnerState, RHFInputNumberSpinnerSlotsType } from '../components/hook-form/RHFInputNumberSpinner/types';
56
60
  import { TabOwnerState, TabSlotsType } from '../components/mui_extended/Tab/types';
57
61
 
58
62
 
63
+ import { ButtonOwnerState, ButtonSlotsType } from '../components/mui_extended/Button/types';
64
+ import { ActionIntroOwnerState, ActionIntroSlotsType } from '../components/CommonActions/components/ActionIntro/types';
65
+ import { ActionCancelOwnerState, ActionCancelSlotsType } from 'src/components/CommonActions/components/ActionCancel/types';
66
+
59
67
  declare module '@mui/material/styles' {
60
68
  // Define the slots in the theme
61
69
  interface ComponentNameToClassKey {
@@ -79,9 +87,12 @@ declare module '@mui/material/styles' {
79
87
  M4LSkeleton: SkeletonSlotsType;
80
88
  M4LSelect: SelectSlotsType;
81
89
  M4LTypography: TypographySlotsType;
90
+ M4LCheckBox: CheckBoxSlotsType;
82
91
  M4LRHFInputNumberSpinner: RHFInputNumberSpinnerSlotsType;
83
92
  M4LTab: TabSlotsType;
84
-
93
+ M4LButton: ButtonSlotsType;
94
+ M4LActionIntro: ActionIntroSlotsType;
95
+ M4LActionCancel: ActionCancelSlotsType;
85
96
  }
86
97
 
87
98
  interface ComponentsPropsList {
@@ -106,8 +117,12 @@ declare module '@mui/material/styles' {
106
117
  M4LSkeleton: Partial<SkeletonOwnerState>;
107
118
  M4LSelect: Partial<SelectOwnerState>;
108
119
  M4LTypography: Partial<TypographyOwnerState>;
120
+ M4LCheckBox: Partial<CheckBoxOwnerState>;
109
121
  M4LRHFInputNumberSpinner:Partial<RHFInputNumberSpinnerOwnerState>
110
122
  M4LTab: Partial<TabOwnerState>;
123
+ M4LButton: Partial<ButtonOwnerState>;
124
+ M4LActionIntro: Partial<ActionIntroOwnerState>;
125
+ M4LActionCancel: Partial<ActionCancelOwnerState>;
111
126
 
112
127
  }
113
128
 
@@ -221,6 +236,116 @@ declare module '@mui/material/styles' {
221
236
  styleOverrides?: ComponentsOverrides<Theme>['M4LTab'];
222
237
  variants?: ComponentsVariants['M4LTab'];
223
238
  };
224
- }
239
+ M4LButton?: {
240
+ defaultProps?: ComponentsPropsList['M4LButton'];
241
+ styleOverrides?: ComponentsOverrides<Theme>['M4LButton'];
242
+ variants?: ComponentsVariants['M4LButton'];
243
+ };
244
+ };
245
+ M4LActionIntro?: {
246
+ defaultProps?: ComponentsPropsList['M4LActionIntro'];
247
+ styleOverrides?: ComponentsOverrides<Theme>['M4LActionIntro'];
248
+ variants?: ComponentsVariants['M4LActionIntro'];
249
+ };
250
+ M4LDynamicSort?: {
251
+ defaultProps?: ComponentsPropsList['M4LDynamicSort'];
252
+ styleOverrides?: ComponentsOverrides<Theme>['M4LDynamicSort'];
253
+ variants?: ComponentsVariants['M4LDynamicSort'];
254
+ };
255
+ M4LMenuActions?: {
256
+ defaultProps?: ComponentsPropsList['M4LMenuActions'];
257
+ styleOverrides?: ComponentsOverrides<Theme>['M4LMenuActions'];
258
+ variants?: ComponentsVariants['M4LMenuActions'];
259
+ };
260
+ M4LInputNumberSpinner?: {
261
+ defaultProps?: ComponentsPropsList['M4LInputNumberSpinner'];
262
+ styleOverrides?: ComponentsOverrides<Theme>['M4LInputNumberSpinner'];
263
+ variants?: ComponentsVariants['M4LInputNumberSpinner'];
264
+ };
265
+ M4LPopupsViewer?: {
266
+ defaultProps?: ComponentsPropsList['M4LPopupsViewer'];
267
+ styleOverrides?: ComponentsOverrides<Theme>['M4LPopupsViewer'];
268
+ variants?: ComponentsVariants['M4LPopupsViewer'];
269
+ };
270
+ M4LDragResizeWindow?: {
271
+ defaultProps?: ComponentsPropsList['M4LDragResizeWindow'];
272
+ styleOverrides?: ComponentsOverrides<Theme>['M4LDragResizeWindow'];
273
+ variants?: ComponentsVariants['M4LDragResizeWindow'];
274
+ };
275
+ M4LToastContainer?: {
276
+ defaultProps?: ComponentsPropsList['M4LToastContainer'];
277
+ styleOverrides?: ComponentsOverrides<Theme>['M4LToastContainer'];
278
+ variants?: ComponentsVariants['M4LToastContainer'];
279
+ };
280
+ M4LHelperError?: {
281
+ defaultProps?: ComponentsPropsList['M4LHelperError'];
282
+ styleOverrides?: ComponentsOverrides<Theme>['M4LHelperError'];
283
+ variants?: ComponentsVariants['M4LHelperError'];
284
+ };
285
+ M4LLabel?: {
286
+ defaultProps?: ComponentsPropsList['M4LLabel'];
287
+ styleOverrides?: ComponentsOverrides<Theme>['M4LLabel'];
288
+ variants?: ComponentsVariants['M4LLabel'];
289
+ };
290
+ M4LIcon?: {
291
+ defaultProps?: ComponentsPropsList['M4LIcon'];
292
+ styleOverrides?: ComponentsOverrides<Theme>['M4LIcon'];
293
+ variants?: ComponentsVariants['M4LIcon'];
294
+ };
295
+ M4LTooltip?: {
296
+ defaultProps?: ComponentsPropsList['M4LTooltip'];
297
+ styleOverrides?: ComponentsOverrides<Theme>['M4LTooltip'];
298
+ variants?: ComponentsVariants['M4LTooltip'];
299
+ };
300
+ M4LTextField?: {
301
+ defaultProps?: ComponentsPropsList['M4LTextField'];
302
+ styleOverrides?: ComponentsOverrides<Theme>['M4LTextField'];
303
+ variants?: ComponentsVariants['M4LTextField'];
304
+ };
305
+ M4LIconButton?: {
306
+ defaultProps?: ComponentsPropsList['M4LIconButton'];
307
+ styleOverrides?: ComponentsOverrides<Theme>['M4LIconButton'];
308
+ variants?: ComponentsVariants['M4LIconButton'];
309
+ };
310
+ M4LBadge?: {
311
+ defaultProps?: ComponentsPropsList['M4LBadge'];
312
+ styleOverrides?: ComponentsOverrides<Theme>['M4LBadge'];
313
+ variants?: ComponentsVariants['M4LBadge'];
314
+ };
315
+ M4LControlIncrement?: {
316
+ defaultProps?: ComponentsPropsList['M4LControlIncrement'];
317
+ styleOverrides?: ComponentsOverrides<Theme>['M4LControlIncrement'];
318
+ variants?: ComponentsVariants['M4LControlIncrement'];
319
+ M4LMenuItem?: {
320
+ defaultProps?: ComponentsPropsList['M4LMenuItem'];
321
+ styleOverrides?: ComponentsOverrides<Theme>['M4LMenuItem'];
322
+ variants?: ComponentsVariants['M4LMenuItem'];
323
+ };
324
+ M4LSkeleton?: {
325
+ defaultProps?: ComponentsPropsList['M4LSkeleton'];
326
+ styleOverrides?: ComponentsOverrides<Theme>['M4LSkeleton'];
327
+ variants?: ComponentsVariants['M4LSkeleton'];
328
+ };
329
+ M4LSelect: {
330
+ defaultProps?: ComponentsPropsList['M4LSelect'];
331
+ styleOverrides?: ComponentsOverrides<Theme>['M4LSelect'];
332
+ variants?: ComponentsVariants['M4LSelect'];
333
+ };
334
+ M4LTypography?: {
335
+ defaultProps?: ComponentsPropsList['M4LTypography'];
336
+ styleOverrides?: ComponentsOverrides<Theme>['M4LTypography'];
337
+ variants?: ComponentsVariants['M4LTypography'];
338
+ };
339
+ M4LCheckBox?: {
340
+ defaultProps?: ComponentsPropsList['M4LCheckBox'];
341
+ styleOverrides?: ComponentsOverrides<Theme>['M4LCheckBox'];
342
+ variants?: ComponentsVariants['M4LCheckBox'];
343
+ };
344
+ M4LActionCancel?: {
345
+ defaultProps?: ComponentsPropsList['M4LActionCancel'];
346
+ styleOverrides?: ComponentsOverrides<Theme>['M4LActionCancel'];
347
+ variants?: ComponentsVariants['M4LActionCancel'];
348
+ };
225
349
  }
350
+ }
226
351
  }
@@ -0,0 +1,11 @@
1
+ import { ActionCancelProps } from './types';
2
+ /**
3
+ * This component renders a cancel button with a label from the module dictionary.
4
+ * Extends ButtonProps - The props for the button component.
5
+ * @param props
6
+ * @author SebastianM - automatic
7
+ * @createdAt 2024-11-06 09:00:05 - automatic
8
+ * @updatedAt 2024-11-13 08:44:55 - automatic
9
+ * @updatedUser SebastianM - automatic
10
+ */
11
+ export declare const ActionCancel: import('react').ForwardRefExoticComponent<Omit<Omit<ActionCancelProps, "label">, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,52 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useModuleDictionary, getPropertyByString } from "@m4l/core";
3
+ import { useTheme } from "@mui/material";
4
+ import { forwardRef } from "react";
5
+ import { A as ActionCancelRootStyled } from "./slots/ActionsCancelSlots.js";
6
+ const ActionCancel = forwardRef((props, ref) => {
7
+ const {
8
+ color,
9
+ className,
10
+ endIcon,
11
+ startIcon,
12
+ skeletonWidth = props.size === "small" ? "60px" : "80px",
13
+ dataTestid,
14
+ disabled = false,
15
+ size = "small",
16
+ variant = "outlined",
17
+ ...others
18
+ } = props;
19
+ const { getLabel } = useModuleDictionary();
20
+ const theme = useTheme();
21
+ const paletteColor = getPropertyByString(
22
+ theme.vars.palette,
23
+ disabled ? "default" : color || "default",
24
+ theme.vars.palette.default
25
+ );
26
+ const ownerState = {
27
+ size,
28
+ variant,
29
+ paletteColor
30
+ };
31
+ return /* @__PURE__ */ jsx(
32
+ ActionCancelRootStyled,
33
+ {
34
+ variant,
35
+ color: "default",
36
+ "data-testid": dataTestid,
37
+ disabled,
38
+ endIcon,
39
+ label: getLabel("common_actions.cancel"),
40
+ ownerState: { ...ownerState },
41
+ skeletonWidth,
42
+ startIcon,
43
+ size,
44
+ ref,
45
+ ...others
46
+ }
47
+ );
48
+ });
49
+ ActionCancel.displayName = "ActionCancel";
50
+ export {
51
+ ActionCancel as A
52
+ };
@@ -0,0 +1,2 @@
1
+ import { ActionCancelStyles } from './types';
2
+ export declare const actionCancelStyles: ActionCancelStyles;
@@ -0,0 +1,6 @@
1
+ const actionCancelStyles = {
2
+ actionsCancelRoot: {}
3
+ };
4
+ export {
5
+ actionCancelStyles as a
6
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Clave de identificación del componente ActionCancel dentro del sistema.
3
+ *
4
+ * Esta constante se utiliza como identificador único para asociar y personalizar estilos y configuraciones
5
+ * relacionadas con el componente `ActionCancel` dentro del sistema de temas y estilos.
6
+ * @default 'M4LActionCancel'
7
+ */
8
+ export declare const ACTIONCANCEL_KEY_COMPONENT = "M4LActionCancel";
@@ -0,0 +1,4 @@
1
+ const ACTIONCANCEL_KEY_COMPONENT = "M4LActionCancel";
2
+ export {
3
+ ACTIONCANCEL_KEY_COMPONENT as A
4
+ };
@@ -1,5 +1,2 @@
1
- import { ButtonProps } from '../../../mui_extended/Button';
2
- /**
3
- * TODO: Documentar
4
- */
5
- export declare const ActionCancel: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
1
+ export * from './ActionCancel';
2
+ export * from './types';
@@ -1,12 +1 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useModuleDictionary } from "@m4l/core";
3
- import { B as Button } from "../../../mui_extended/Button/Button.js";
4
- import { u as useCommonActionsUtilityClasses } from "../../classes/index.js";
5
- const ActionCancel = (props) => {
6
- const { getLabel } = useModuleDictionary();
7
- const classes = useCommonActionsUtilityClasses();
8
- return /* @__PURE__ */ jsx(Button, { variant: "outlined", color: "inherit", ...props, className: classes.actionCancel, children: getLabel("common_actions.cancel") });
9
- };
10
- export {
11
- ActionCancel as A
12
- };
1
+
@@ -0,0 +1,3 @@
1
+ export declare enum ActionCancelSlots {
2
+ actionsCancelRoot = "actionsCancelRoot"
3
+ }
@@ -0,0 +1,7 @@
1
+ var ActionCancelSlots = /* @__PURE__ */ ((ActionCancelSlots2) => {
2
+ ActionCancelSlots2["actionsCancelRoot"] = "actionsCancelRoot";
3
+ return ActionCancelSlots2;
4
+ })(ActionCancelSlots || {});
5
+ export {
6
+ ActionCancelSlots as A
7
+ };
@@ -0,0 +1,4 @@
1
+ declare const ActionCancelRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "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" | "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" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "form" | "label" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "endIcon" | "skeletonWidth" | "disableElevation" | "fullWidth" | "startIcon" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ActionCancelOwnerState> & Record<string, unknown> & {
2
+ ownerState: Partial<import('..').ActionCancelOwnerState> & Record<string, unknown>;
3
+ }, {}, {}>;
4
+ export { ActionCancelRootStyled };
@@ -0,0 +1,12 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { A as ACTIONCANCEL_KEY_COMPONENT } from "../constants.js";
3
+ import { A as ActionCancelSlots } from "./ActionsCancelEnum.js";
4
+ import { a as actionCancelStyles } from "../ActionCancelStyles.js";
5
+ import { B as Button } from "../../../../mui_extended/Button/Button.js";
6
+ const ActionCancelRootStyled = styled(Button, {
7
+ name: ACTIONCANCEL_KEY_COMPONENT,
8
+ slot: ActionCancelSlots.actionsCancelRoot
9
+ })(actionCancelStyles?.actionsCancelRoot);
10
+ export {
11
+ ActionCancelRootStyled as A
12
+ };
@@ -0,0 +1,2 @@
1
+ export * from './ActionsCancelEnum';
2
+ export * from './ActionsCancelSlots';
@@ -0,0 +1,33 @@
1
+ import { PaletteColor, Theme } from '@mui/material';
2
+ import { ButtonProps } from '../../../mui_extended/Button/types';
3
+ import { Sizes } from '@m4l/styles';
4
+ import { ReactNode } from 'react';
5
+ import { ACTIONCANCEL_KEY_COMPONENT } from './constants';
6
+ import { ActionCancelSlots } from './slots';
7
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
8
+ export type ActionCancelVariants = 'outlined';
9
+ /**
10
+ * Properties of the `ActionCancel` component.
11
+ * The `ActionIntro` component renders a button with an optional icon and label.
12
+ * It supports different sizes, colors, and states such as disabled.
13
+ */
14
+ export interface ActionCancelProps extends Omit<ButtonProps, 'variant' | 'color' | 'size'> {
15
+ variant?: ActionCancelVariants;
16
+ color?: Extract<PaletteColor, 'default'>;
17
+ dataTestid?: 'string';
18
+ size?: Extract<Sizes, 'small' | 'medium'>;
19
+ startIcon?: ReactNode;
20
+ endIcon?: ReactNode;
21
+ }
22
+ /**
23
+ * Owner state of the `ActionCancel` used to define internal style and behavior properties.
24
+ */
25
+ export interface ActionCancelOwnerState extends Pick<ButtonProps, 'size' | 'variant' | 'color' | 'disabled'> {
26
+ disabled?: boolean;
27
+ paletteColor: PaletteColor;
28
+ }
29
+ export type ActionCancelSlotsType = keyof typeof ActionCancelSlots;
30
+ /**
31
+ * Styles applicable to the `ActionCancel` using themes and custom slots.
32
+ */
33
+ export type ActionCancelStyles = Partial<OverridesStyleRules<ActionCancelSlotsType, typeof ACTIONCANCEL_KEY_COMPONENT, Theme> | undefined> | undefined;
@@ -1,4 +1,8 @@
1
1
  /**
2
2
  * TODO: Documentar
3
+ * @author SebastianM - automatic
4
+ * @createdAt 2024-11-06 09:00:05 - automatic
5
+ * @updatedAt 2024-11-06 10:39:53 - automatic
6
+ * @updatedUser SebastianM - automatic
3
7
  */
4
8
  export declare function ActionFormCancel(): import("react/jsx-runtime").JSX.Element;
@@ -44,10 +44,10 @@ function ActionFormCancel() {
44
44
  Button,
45
45
  {
46
46
  variant: "outlined",
47
- color: "inherit",
47
+ color: "default",
48
48
  onClick: onClickCancel,
49
49
  className: classes.actionFormCancel,
50
- children: getLabel("common_actions.cancel")
50
+ label: getLabel("common_actions.cancel")
51
51
  }
52
52
  );
53
53
  }
@@ -0,0 +1,12 @@
1
+ import { ActionIntroProps } from './types';
2
+ /**
3
+ * ActionIntro component renders a styled button with various props.
4
+ * It supports different sizes, colors, and states such as disabled.
5
+ * @param props
6
+ * @returns
7
+ * @author SebastianM - automatic
8
+ * @createdAt 2024-11-08 10:59:45 - automatic
9
+ * @updatedAt 2024-11-13 09:11:08 - automatic
10
+ * @updatedUser SebastianM - automatic
11
+ */
12
+ export declare const ActionIntro: import('react').ForwardRefExoticComponent<Omit<Omit<ActionIntroProps, "label">, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,51 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useModuleDictionary, getPropertyByString } from "@m4l/core";
3
+ import { useTheme } from "@mui/material";
4
+ import { forwardRef } from "react";
5
+ import { A as ActionIntroRootStyled } from "./slots/ActionsIntroSlots.js";
6
+ const ActionIntro = forwardRef((props, ref) => {
7
+ const {
8
+ color = "primary",
9
+ className,
10
+ endIcon,
11
+ skeletonWidth = props.size === "small" ? "80px" : "100px",
12
+ startIcon,
13
+ disabled = false,
14
+ size = "small",
15
+ variant = "contained",
16
+ ...others
17
+ } = props;
18
+ const { getLabel } = useModuleDictionary();
19
+ const theme = useTheme();
20
+ const paletteColor = getPropertyByString(
21
+ theme.vars.palette,
22
+ disabled ? "default" : color || "default",
23
+ theme.vars.palette.default
24
+ );
25
+ const ownerState = {
26
+ size,
27
+ variant,
28
+ paletteColor
29
+ };
30
+ return /* @__PURE__ */ jsx(
31
+ ActionIntroRootStyled,
32
+ {
33
+ variant,
34
+ type: "submit",
35
+ color,
36
+ disabled,
37
+ endIcon,
38
+ label: getLabel("common_actions.intro"),
39
+ ownerState: { ...ownerState },
40
+ skeletonWidth,
41
+ startIcon,
42
+ size,
43
+ ref,
44
+ ...others
45
+ }
46
+ );
47
+ });
48
+ ActionIntro.displayName = "ActionIntro";
49
+ export {
50
+ ActionIntro as A
51
+ };
@@ -0,0 +1,2 @@
1
+ import { ActionIntroStyles } from './types';
2
+ export declare const actionIntroStyles: ActionIntroStyles;
@@ -0,0 +1,6 @@
1
+ const actionIntroStyles = {
2
+ actionsIntroRoot: {}
3
+ };
4
+ export {
5
+ actionIntroStyles as a
6
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Clave de identificación del componente ActionIntro dentro del sistema.
3
+ *
4
+ * Esta constante se utiliza como identificador único para asociar y personalizar estilos y configuraciones
5
+ * relacionadas con el componente `ActionIntro` dentro del sistema de temas y estilos.
6
+ * @default 'M4LActionIntro'
7
+ */
8
+ export declare const ACTIONINTRO_KEY_COMPONENT = "M4LActionIntro";
@@ -0,0 +1,4 @@
1
+ const ACTIONINTRO_KEY_COMPONENT = "M4LActionIntro";
2
+ export {
3
+ ACTIONINTRO_KEY_COMPONENT as A
4
+ };
@@ -1,5 +1,2 @@
1
- import { ButtonProps } from '../../../mui_extended/Button';
2
- /**
3
- * TODO: Documentar
4
- */
5
- export declare const ActionIntro: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
1
+ export * from './ActionIntro';
2
+ export * from './types';
@@ -1,25 +1 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useModuleDictionary } from "@m4l/core";
3
- import { B as Button } from "../../../mui_extended/Button/Button.js";
4
- import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
5
- import { A as ACTIONINTRO_TEST_ID } from "./test/contants.js";
6
- import { u as useCommonActionsUtilityClasses } from "../../classes/index.js";
7
- const ActionIntro = (props) => {
8
- const { getLabel } = useModuleDictionary();
9
- const classes = useCommonActionsUtilityClasses();
10
- return /* @__PURE__ */ jsx(
11
- Button,
12
- {
13
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: ACTIONINTRO_TEST_ID } : {},
14
- variant: "contained",
15
- type: "submit",
16
- color: "primary",
17
- className: classes.actionIntro,
18
- ...props,
19
- children: getLabel("common_actions.intro")
20
- }
21
- );
22
- };
23
- export {
24
- ActionIntro as A
25
- };
1
+
@@ -0,0 +1,3 @@
1
+ export declare enum ActionIntroSlots {
2
+ actionsIntroRoot = "actionsCancelRoot"
3
+ }
@@ -0,0 +1,7 @@
1
+ var ActionIntroSlots = /* @__PURE__ */ ((ActionIntroSlots2) => {
2
+ ActionIntroSlots2["actionsIntroRoot"] = "actionsCancelRoot";
3
+ return ActionIntroSlots2;
4
+ })(ActionIntroSlots || {});
5
+ export {
6
+ ActionIntroSlots as A
7
+ };
@@ -0,0 +1,4 @@
1
+ declare const ActionIntroRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "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" | "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" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "form" | "label" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "endIcon" | "skeletonWidth" | "disableElevation" | "fullWidth" | "startIcon" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ActionIntroOwnerState> & Record<string, unknown> & {
2
+ ownerState: Partial<import('..').ActionIntroOwnerState> & Record<string, unknown>;
3
+ }, {}, {}>;
4
+ export { ActionIntroRootStyled };
@@ -0,0 +1,12 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { A as ACTIONINTRO_KEY_COMPONENT } from "../constants.js";
3
+ import { A as ActionIntroSlots } from "./ActionsIntroEnum.js";
4
+ import { a as actionIntroStyles } from "../ActionIntroStyles.js";
5
+ import { B as Button } from "../../../../mui_extended/Button/Button.js";
6
+ const ActionIntroRootStyled = styled(Button, {
7
+ name: ACTIONINTRO_KEY_COMPONENT,
8
+ slot: ActionIntroSlots.actionsIntroRoot
9
+ })(actionIntroStyles?.actionsIntroRoot);
10
+ export {
11
+ ActionIntroRootStyled as A
12
+ };
@@ -0,0 +1,2 @@
1
+ export * from './ActionsIntroEnum';
2
+ export * from './ActionsIntroSlots';
@@ -0,0 +1,33 @@
1
+ import { PaletteColor, Theme } from '@mui/material';
2
+ import { ButtonProps } from '../../../mui_extended/Button/types';
3
+ import { Sizes } from '@m4l/styles';
4
+ import { ReactNode } from 'react';
5
+ import { ACTIONINTRO_KEY_COMPONENT } from './constants';
6
+ import { ActionIntroSlots } from './slots';
7
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
8
+ export type ActionIntroVariants = 'contained';
9
+ /**
10
+ * Properties of the `ActionIntro` component.
11
+ * The `ActionIntro` component renders a button with an optional icon and label.
12
+ * It supports different sizes, colors, and states such as disabled.
13
+ */
14
+ export interface ActionIntroProps extends Omit<ButtonProps, 'variant' | 'color' | 'size'> {
15
+ variant?: ActionIntroVariants;
16
+ color?: Extract<PaletteColor, 'primary'>;
17
+ dataTestid?: 'string';
18
+ size?: Extract<Sizes, 'small' | 'medium'>;
19
+ startIcon?: ReactNode;
20
+ endIcon?: ReactNode;
21
+ }
22
+ /**
23
+ * Owner state of the `ActionIntro` used to define internal style and behavior properties.
24
+ */
25
+ export interface ActionIntroOwnerState extends Pick<ButtonProps, 'size' | 'variant' | 'color' | 'disabled'> {
26
+ disabled?: boolean;
27
+ paletteColor: PaletteColor;
28
+ }
29
+ export type ActionIntroSlotsType = keyof typeof ActionIntroSlots;
30
+ /**
31
+ * Styles applicable to the `ActionIntro` using themes and custom slots.
32
+ */
33
+ export type ActionIntroStyles = Partial<OverridesStyleRules<ActionIntroSlotsType, typeof ACTIONINTRO_KEY_COMPONENT, Theme> | undefined> | undefined;
@@ -0,0 +1,2 @@
1
+ export * from './ActionsContainer';
2
+ export * from './types';