@m4l/components 9.3.36 → 9.3.37-BE20251204-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 (241) hide show
  1. package/@types/export.d.ts +3 -0
  2. package/@types/types.d.ts +49 -6
  3. package/components/AccountPopover/AccountPopover.styles.js +5 -2
  4. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +6 -6
  5. package/components/ActionsGroup/constants.d.ts +1 -1
  6. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
  7. package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
  8. package/components/Chip/slots/ChipSlots.d.ts +2 -2
  9. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  10. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  11. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  12. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  13. package/components/ContainerFlow/ContainerFlow.js +1 -1
  14. package/components/DataGrid/DataGrid.js +2 -0
  15. package/components/DataGrid/Datagrid.styles.js +19 -3
  16. package/components/DataGrid/contexts/DataGridContext/index.js +2 -0
  17. package/components/DataGrid/contexts/DataGridContext/types.d.ts +2 -2
  18. package/components/DataGrid/subcomponents/Cards/subcomponents/CardHeader/index.js +15 -7
  19. package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.js +4 -1
  20. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.js +0 -3
  21. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -2
  22. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +0 -3
  23. package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.d.ts +6 -0
  24. package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.js +12 -0
  25. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.d.ts +64 -0
  26. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.js +46 -0
  27. package/components/DataGrid/tests/table/subcomponents/RadioButtonFormatter.test.d.ts +1 -0
  28. package/components/DataGrid/tests/table/subcomponents/RadioSelectColumn.test.d.ts +1 -0
  29. package/components/DataGrid/types.d.ts +7 -0
  30. package/components/DynamicFilter/DynamicFilter.styles.js +5 -2
  31. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
  32. package/components/DynamicSort/DynamicSort.styles.js +5 -2
  33. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
  34. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +3 -0
  35. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +3 -0
  36. package/components/EditLabel/constants.d.ts +1 -1
  37. package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
  38. package/components/GridLayout/styles.js +0 -1
  39. package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
  40. package/components/ImageText/constants.d.ts +1 -1
  41. package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
  42. package/components/Label/slots/LabelSlots.d.ts +3 -3
  43. package/components/LanguagePopover/LanguagePopover.styles.js +13 -4
  44. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  45. package/components/LoadingError/LoadingError.js +1 -1
  46. package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
  47. package/components/MFLoader/styles.js +0 -1
  48. package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
  49. package/components/ModalDialog/ModalDialog.styles.js +8 -1
  50. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  51. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  52. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
  53. package/components/Pager/slots/PagerSlots.d.ts +3 -3
  54. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  55. package/components/PrintingSystem/PrintingSystem.js +3 -1
  56. package/components/PrintingSystem/PrintingSystem.styles.js +179 -2
  57. package/components/PropertyValue/PropertyValue.js +1 -1
  58. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
  59. package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
  60. package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -3
  61. package/components/Stepper/slots/StepperSlot.d.ts +4 -4
  62. package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +1 -1
  63. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +2 -2
  64. package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
  65. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  66. package/components/animate/variants/background.d.ts +9 -9
  67. package/components/animate/variants/bounce.d.ts +9 -9
  68. package/components/animate/variants/fade.d.ts +20 -20
  69. package/components/animate/variants/flip.d.ts +6 -6
  70. package/components/animate/variants/rotate.d.ts +3 -3
  71. package/components/animate/variants/scale.d.ts +6 -6
  72. package/components/animate/variants/slide.d.ts +16 -16
  73. package/components/animate/variants/transition.d.ts +3 -3
  74. package/components/animate/variants/zoom.d.ts +15 -15
  75. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +3 -3
  76. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +5 -0
  77. package/components/commercial/AppBarCommercial/styles.js +1 -3
  78. package/components/commercial/HamburgerMenu/styles.js +1 -3
  79. package/components/commercial/SectionCommercial/styles.js +1 -3
  80. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -3
  81. package/components/commercial/TopBar/style.js +1 -3
  82. package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  83. package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  84. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +6 -6
  85. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
  86. package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
  87. package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
  88. package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
  89. package/components/formatters/IconsFormatter/constants.d.ts +1 -0
  90. package/components/formatters/IconsFormatter/constants.js +8 -1
  91. package/components/formatters/IconsFormatter/helpers/renderIcon.js +2 -0
  92. package/components/formatters/IconsFormatter/slots/IconsFormatterSlots.js +1 -1
  93. package/components/formatters/ImageFormatter/constants.d.ts +1 -1
  94. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
  95. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.js +1 -1
  96. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
  97. package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
  98. package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
  99. package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
  100. package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +2 -2
  101. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +2 -2
  102. package/components/hook-form/RHFCheckbox/RHFCheckbox.js +2 -2
  103. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  104. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +2 -2
  105. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
  106. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.js +1 -1
  107. package/components/hook-form/RHFDatePicker/RHFDatePicker.d.ts +7 -0
  108. package/components/hook-form/RHFDatePicker/RHFDatePicker.js +85 -0
  109. package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.d.ts +5 -0
  110. package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.js +200 -0
  111. package/components/hook-form/RHFDatePicker/__tests__/RHFDatePicker.test.d.ts +1 -0
  112. package/components/hook-form/RHFDatePicker/constants.d.ts +4 -0
  113. package/components/hook-form/RHFDatePicker/constants.js +4 -0
  114. package/components/hook-form/RHFDatePicker/icons.d.ts +6 -0
  115. package/components/hook-form/RHFDatePicker/index.d.ts +1 -0
  116. package/components/hook-form/RHFDatePicker/index.js +1 -0
  117. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerEnum.d.ts +11 -0
  118. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerEnum.js +15 -0
  119. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +50 -0
  120. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.js +44 -0
  121. package/components/hook-form/RHFDatePicker/slots/index.d.ts +2 -0
  122. package/components/hook-form/RHFDatePicker/slots/index.js +1 -0
  123. package/components/hook-form/RHFDatePicker/types.d.ts +61 -0
  124. package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +24 -1
  125. package/components/hook-form/RHFDateTime/RHFDateTime.js +2 -2
  126. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.d.ts +11 -0
  127. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.js +8 -0
  128. package/components/hook-form/RHFDateTimePicker/index.d.ts +1 -0
  129. package/components/hook-form/RHFDateTimePicker/index.js +1 -0
  130. package/components/hook-form/RHFNumberInput/RHFNumberInput.js +2 -2
  131. package/components/hook-form/RHFPeriod/RHFPeriod.js +2 -2
  132. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  133. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +1 -0
  134. package/components/hook-form/RHFSelect/RHFSelect.js +2 -2
  135. package/components/hook-form/RHFSelect/constants.d.ts +1 -1
  136. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  137. package/components/hook-form/RHFTextField/RHFTextField.js +2 -2
  138. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  139. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +2 -2
  140. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
  141. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +3 -1
  142. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
  143. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +4 -3
  144. package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +4 -0
  145. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +6 -4
  146. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
  147. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
  148. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +3 -2
  149. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/types.d.ts +1 -1
  150. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.js +13 -4
  151. package/components/hook-form/RHFUpload/RHFUploadSingleFile/types.d.ts +4 -0
  152. package/components/hook-form/RHFormProvider/classes/index.d.ts +1 -1
  153. package/components/hook-form/RHFormProvider/styles.js +4 -3
  154. package/components/hook-form/index.d.ts +2 -0
  155. package/components/mui_extended/Accordion/Accordion.js +3 -3
  156. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +3 -3
  157. package/components/mui_extended/Accordion/styles.js +8 -5
  158. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +11 -1
  159. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
  160. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +1 -1
  161. package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
  162. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  163. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +2 -2
  164. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
  165. package/components/mui_extended/DatePicker/DatePicker.d.ts +7 -0
  166. package/components/mui_extended/DatePicker/DatePicker.js +39 -0
  167. package/components/mui_extended/DatePicker/DatePicker.styles.d.ts +5 -0
  168. package/components/mui_extended/DatePicker/DatePicker.styles.js +193 -0
  169. package/components/mui_extended/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  170. package/components/mui_extended/DatePicker/constants.d.ts +2 -0
  171. package/components/mui_extended/DatePicker/constants.js +8 -0
  172. package/components/mui_extended/DatePicker/hooks/useDatePicker/types.d.ts +11 -0
  173. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.d.ts +9 -0
  174. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.js +200 -0
  175. package/components/mui_extended/DatePicker/icons.d.ts +4 -0
  176. package/components/mui_extended/DatePicker/icons.js +10 -0
  177. package/components/mui_extended/DatePicker/index.d.ts +2 -0
  178. package/components/mui_extended/DatePicker/index.js +1 -0
  179. package/components/mui_extended/DatePicker/slots/DatePickerEnum.d.ts +10 -0
  180. package/components/mui_extended/DatePicker/slots/DatePickerEnum.js +14 -0
  181. package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +44 -0
  182. package/components/mui_extended/DatePicker/slots/DatePickerSlots.js +46 -0
  183. package/components/mui_extended/DatePicker/types.d.ts +32 -0
  184. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +5 -1
  185. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
  186. package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
  187. package/components/mui_extended/IconButton/constants.d.ts +1 -1
  188. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
  189. package/components/mui_extended/ImageButton/styles.js +1 -3
  190. package/components/mui_extended/LoadingButton/index.js +1 -0
  191. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  192. package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  193. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
  194. package/components/mui_extended/NavLink/constants.d.ts +1 -1
  195. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +1 -1
  196. package/components/mui_extended/Popover/Popover.styles.js +6 -1
  197. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  198. package/components/mui_extended/RadioButton/RadioButton.d.ts +24 -0
  199. package/components/mui_extended/RadioButton/RadioButton.js +110 -0
  200. package/components/mui_extended/RadioButton/RadioButton.styles.d.ts +2 -0
  201. package/components/mui_extended/RadioButton/RadioButton.styles.js +126 -0
  202. package/components/mui_extended/RadioButton/constants.d.ts +1 -0
  203. package/components/mui_extended/RadioButton/constants.js +4 -0
  204. package/components/mui_extended/RadioButton/icons.d.ts +4 -0
  205. package/components/mui_extended/RadioButton/icons.js +7 -0
  206. package/components/mui_extended/RadioButton/index.d.ts +1 -0
  207. package/components/mui_extended/RadioButton/index.js +1 -0
  208. package/components/mui_extended/RadioButton/slots/RadioButtonEnum.d.ts +8 -0
  209. package/components/mui_extended/RadioButton/slots/RadioButtonEnum.js +12 -0
  210. package/components/mui_extended/RadioButton/slots/RadioButtonSlots.d.ts +20 -0
  211. package/components/mui_extended/RadioButton/slots/RadioButtonSlots.js +39 -0
  212. package/components/mui_extended/RadioButton/tests/RadioButton.test.d.ts +1 -0
  213. package/components/mui_extended/RadioButton/types.d.ts +50 -0
  214. package/components/mui_extended/Select/Select.js +2 -18
  215. package/components/mui_extended/Select/Select.styles.js +33 -1
  216. package/components/mui_extended/Select/constants.d.ts +2 -1
  217. package/components/mui_extended/Select/slots/SelectEnum.d.ts +2 -1
  218. package/components/mui_extended/Select/slots/SelectEnum.js +1 -0
  219. package/components/mui_extended/Select/slots/SelectSlots.d.ts +5 -5
  220. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  221. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  222. package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
  223. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +2 -2
  224. package/components/mui_extended/TabContent/TabContent.styles.js +2 -2
  225. package/components/mui_extended/Tabs/Tabs.js +48 -2
  226. package/components/mui_extended/Tabs/Tabs.styles.js +52 -26
  227. package/components/mui_extended/Tabs/icons.d.ts +4 -0
  228. package/components/mui_extended/Tabs/icons.js +7 -0
  229. package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
  230. package/components/mui_extended/Tabs/types.d.ts +4 -1
  231. package/components/mui_extended/TextField/TextField.js +2 -2
  232. package/components/mui_extended/TextField/TextField.styles.js +3 -2
  233. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +4 -4
  234. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +3 -3
  235. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  236. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  237. package/components/mui_extended/Tooltip/constants.d.ts +1 -1
  238. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  239. package/components/mui_extended/index.d.ts +2 -0
  240. package/index.js +56 -48
  241. package/package.json +1 -1
@@ -0,0 +1,126 @@
1
+ import { g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
2
+ const radioButtonStyles = {
3
+ /**
4
+ * Estilos generales para el radio button 🟦
5
+ * @param {object} theme - El tema de MUI.
6
+ * @returns {object} - Los estilos aplicados al root del radio button.
7
+ */
8
+ root: ({ theme }) => ({
9
+ display: "flex",
10
+ alignItems: "center",
11
+ outline: "none",
12
+ overflow: "visible",
13
+ boxSizing: "border-box",
14
+ gap: theme.vars.size.baseSpacings.sp1,
15
+ width: "fit-content"
16
+ }),
17
+ /**
18
+ * Componente MuiRadio, FocusVisible para cuando está seleccionado el RadioButton 🟩
19
+ * @param {object} theme - El tema de MUI.
20
+ * @param {object} ownerState - El estado del componente.
21
+ * @returns {object} - Los estilos aplicados al MuiRadio.
22
+ */
23
+ muiRadio: ({ theme, ownerState }) => {
24
+ const color = ownerState?.error ? "error" : "primary";
25
+ const opacityColor = ownerState?.error ? "error" : "default";
26
+ return {
27
+ overflow: "visible",
28
+ ...getSizeStyles(
29
+ theme,
30
+ ownerState?.size || "medium",
31
+ "action",
32
+ (size) => {
33
+ return {
34
+ width: size,
35
+ height: size
36
+ };
37
+ }
38
+ ),
39
+ borderRadius: theme.size.borderRadius.r4,
40
+ "&:hover": {
41
+ backgroundColor: theme.vars.palette[opacityColor].hoverOpacity
42
+ },
43
+ "&:active": {
44
+ backgroundColor: theme.vars.palette[opacityColor].activeOpacity
45
+ },
46
+ "&.Mui-checked": {
47
+ "&:hover": {
48
+ backgroundColor: theme.vars.palette[color].hoverOpacity,
49
+ "& .M4LIcon-icon": {
50
+ backgroundColor: theme.vars.palette[color].hover
51
+ }
52
+ },
53
+ "&:active": {
54
+ backgroundColor: theme.vars.palette[color].activeOpacity,
55
+ "& .M4LIcon-icon": {
56
+ backgroundColor: theme.vars.palette[color].active
57
+ }
58
+ }
59
+ },
60
+ "&.Mui-focusVisible, &:focus-visible": {
61
+ outline: `1px solid ${theme.vars.palette.primary.focusVisible}`
62
+ },
63
+ ...ownerState?.disabled && {
64
+ pointerEvents: ownerState?.disabled ? "none" : "auto",
65
+ "&:hover": {
66
+ pointerEvents: ownerState?.disabled ? "none" : "auto"
67
+ }
68
+ }
69
+ };
70
+ },
71
+ /**
72
+ * Estilos para el skeleton del RadioButton 📝
73
+ * @param {object} theme - El tema de MUI.
74
+ * @param {object} ownerState - El estado del componente.
75
+ * @returns {object} - Los estilos aplicados al skeletonStyled.
76
+ */
77
+ skeletonStyled: ({ theme, ownerState }) => {
78
+ return {
79
+ borderRadius: theme.vars.size.borderRadius.r1,
80
+ backgroundColor: theme.vars.palette?.skeleton.default,
81
+ "&.radioSkeleton": {
82
+ ...getSizeStyles(
83
+ theme,
84
+ ownerState?.size || "medium",
85
+ "action",
86
+ (size) => {
87
+ return {
88
+ width: size
89
+ };
90
+ }
91
+ ),
92
+ ...getSizeStyles(
93
+ theme,
94
+ ownerState?.size || "small",
95
+ "action",
96
+ (size) => {
97
+ return {
98
+ width: size
99
+ };
100
+ }
101
+ )
102
+ },
103
+ "&.radioSkeletonInlineText": {
104
+ width: theme.vars.size.baseSpacings.sp12,
105
+ borderRadius: theme.vars.size.borderRadius.r1,
106
+ ...getSizeStyles(theme, ownerState?.size || "medium", "base"),
107
+ ...getSizeStyles(theme, ownerState?.size || "small", "base")
108
+ }
109
+ };
110
+ },
111
+ /**
112
+ * Estilos para el inline-text del RadioButton 📝
113
+ */
114
+ typographyStyled: {},
115
+ /**
116
+ * El estilado de este slot, se hace en muiRadio, debido a que el input absorbe los pseudo selectores, entonces hay que hacerlos desde el nodo padre. 🟨
117
+ */
118
+ icon: {},
119
+ /**
120
+ * El estilado de este slot, se hace en muiRadio, debido a que el input absorbe los pseudo selectores, entonces hay que hacerlos desde el nodo padre. 🟨
121
+ */
122
+ iconChecked: {}
123
+ };
124
+ export {
125
+ radioButtonStyles as r
126
+ };
@@ -0,0 +1 @@
1
+ export declare const RADIO_BUTTON_KEY_COMPONENT = "M4LRadioButton";
@@ -0,0 +1,4 @@
1
+ const RADIO_BUTTON_KEY_COMPONENT = "M4LRadioButton";
2
+ export {
3
+ RADIO_BUTTON_KEY_COMPONENT as R
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const pathIcons: {
2
+ checked: string;
3
+ unchecked: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ const pathIcons = {
2
+ checked: "frontend/components/radio_button/assets/icons/checked.svg",
3
+ unchecked: "frontend/components/radio_button/assets/icons/noCheked.svg"
4
+ };
5
+ export {
6
+ pathIcons as p
7
+ };
@@ -0,0 +1 @@
1
+ export { RadioButton } from './RadioButton';
@@ -0,0 +1,8 @@
1
+ export declare enum RadioButtonSlots {
2
+ root = "root",
3
+ muiRadio = "muiRadio",
4
+ typographyStyled = "typographyStyled",
5
+ skeletonStyled = "skeletonStyled",
6
+ iconChecked = "iconChecked",
7
+ icon = "icon"
8
+ }
@@ -0,0 +1,12 @@
1
+ var RadioButtonSlots = /* @__PURE__ */ ((RadioButtonSlots2) => {
2
+ RadioButtonSlots2["root"] = "root";
3
+ RadioButtonSlots2["muiRadio"] = "muiRadio";
4
+ RadioButtonSlots2["typographyStyled"] = "typographyStyled";
5
+ RadioButtonSlots2["skeletonStyled"] = "skeletonStyled";
6
+ RadioButtonSlots2["iconChecked"] = "iconChecked";
7
+ RadioButtonSlots2["icon"] = "icon";
8
+ return RadioButtonSlots2;
9
+ })(RadioButtonSlots || {});
10
+ export {
11
+ RadioButtonSlots as R
12
+ };
@@ -0,0 +1,20 @@
1
+ export declare const RadioButtonRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
2
+ ownerState?: (Partial<import('../types').RadioButtonOwnerState> & Record<string, unknown>) | undefined;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
4
+ export declare const MUIRadioStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').RadioProps, keyof import('@mui/material').RadioProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
5
+ ownerState?: (Partial<import('../types').RadioButtonOwnerState> & Record<string, unknown>) | undefined;
6
+ }, {}, {}>;
7
+ export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "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" | "exportparts" | "part" | "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" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
8
+ ownerState?: (Partial<import('../types').RadioButtonOwnerState> & Record<string, unknown>) | undefined;
9
+ }, {}, {}>;
10
+ export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
11
+ ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
12
+ }, "children" | "variant" | "height" | "width" | "animation" | "className" | "style" | "classes" | "sx">, "children" | "ref" | "title" | "id" | "variant" | "color" | "content" | "height" | "translate" | "width" | "animation" | "className" | "style" | "classes" | "sx" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "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" | "exportparts" | "part" | "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" | "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"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
13
+ ownerState?: (Partial<import('../types').RadioButtonOwnerState> & Record<string, unknown>) | undefined;
14
+ }, {}, {}>;
15
+ export declare const IconCheckedStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
16
+ ownerState?: (Partial<import('../types').RadioButtonOwnerState> & Record<string, unknown>) | undefined;
17
+ }, {}, {}>;
18
+ export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
19
+ ownerState?: (Partial<import('../types').RadioButtonOwnerState> & Record<string, unknown>) | undefined;
20
+ }, {}, {}>;
@@ -0,0 +1,39 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { Radio, Skeleton } from "@mui/material";
3
+ import { R as RadioButtonSlots } from "./RadioButtonEnum.js";
4
+ import { R as RADIO_BUTTON_KEY_COMPONENT } from "../constants.js";
5
+ import { r as radioButtonStyles } from "../RadioButton.styles.js";
6
+ import { T as Typography } from "../../Typography/Typography.js";
7
+ import { I as Icon } from "../../../Icon/Icon.js";
8
+ const RadioButtonRootStyled = styled("div", {
9
+ name: RADIO_BUTTON_KEY_COMPONENT,
10
+ slot: RadioButtonSlots.root
11
+ })(radioButtonStyles.root);
12
+ const MUIRadioStyled = styled(Radio, {
13
+ name: RADIO_BUTTON_KEY_COMPONENT,
14
+ slot: RadioButtonSlots.muiRadio
15
+ })(radioButtonStyles.muiRadio);
16
+ const TypographyStyled = styled(Typography, {
17
+ name: RADIO_BUTTON_KEY_COMPONENT,
18
+ slot: RadioButtonSlots.typographyStyled
19
+ })(radioButtonStyles.typographyStyled);
20
+ const SkeletonStyled = styled(Skeleton, {
21
+ name: RADIO_BUTTON_KEY_COMPONENT,
22
+ slot: RadioButtonSlots.skeletonStyled
23
+ })(radioButtonStyles.skeletonStyled);
24
+ const IconCheckedStyled = styled(Icon, {
25
+ name: RADIO_BUTTON_KEY_COMPONENT,
26
+ slot: RadioButtonSlots.iconChecked
27
+ })(radioButtonStyles.iconChecked);
28
+ const IconStyled = styled(Icon, {
29
+ name: RADIO_BUTTON_KEY_COMPONENT,
30
+ slot: RadioButtonSlots.icon
31
+ })(radioButtonStyles.icon);
32
+ export {
33
+ IconStyled as I,
34
+ MUIRadioStyled as M,
35
+ RadioButtonRootStyled as R,
36
+ SkeletonStyled as S,
37
+ TypographyStyled as T,
38
+ IconCheckedStyled as a
39
+ };
@@ -0,0 +1,50 @@
1
+ import { RadioProps as MUIRadioProps, Theme } from '@mui/material';
2
+ import { RadioButtonSlots } from './slots/RadioButtonEnum';
3
+ import { ComponentPalletColor, Sizes } from '@m4l/styles';
4
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
5
+ import { RADIO_BUTTON_KEY_COMPONENT } from './constants';
6
+ import { LabelProps } from '../../Label/types';
7
+ export interface RadioButtonProps extends MUIRadioProps, Omit<LabelProps, 'label' | 'size'> {
8
+ /**
9
+ * El texto que se muestra junto al radio button
10
+ */
11
+ inlineText?: string;
12
+ /**
13
+ * Tamaño
14
+ */
15
+ size?: Extract<Sizes, 'small' | 'medium'>;
16
+ /**
17
+ * Color
18
+ */
19
+ color?: Extract<ComponentPalletColor, 'default'>;
20
+ }
21
+ export interface RadioButtonOwnerState {
22
+ /**
23
+ * Indica si el RadioButton está marcado.
24
+ */
25
+ checked?: boolean;
26
+ /**
27
+ * Indica si el RadioButton está deshabilitado.
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * El tamaño del RadioButton.
32
+ */
33
+ size: Extract<Sizes, 'small' | 'medium'>;
34
+ /**
35
+ * El color del RadioButton.
36
+ */
37
+ color: Extract<ComponentPalletColor, 'default'>;
38
+ /**
39
+ * Indica si hay un error en el RadioButton.
40
+ */
41
+ error?: boolean;
42
+ }
43
+ /**
44
+ * Tipos de slots de RadioButton
45
+ */
46
+ export type RadioButtonSlotsType = keyof typeof RadioButtonSlots;
47
+ /**
48
+ * Estilos del RadioButton
49
+ */
50
+ export type RadioButtonStyles = M4LOverridesStyleRules<RadioButtonSlotsType, typeof RADIO_BUTTON_KEY_COMPONENT, Theme>;
@@ -8,6 +8,7 @@ import { A as ArrowDownStyled, a as AdormentStyled, S as SelectRootStyled, b as
8
8
  import { I as ICON_ARROW_DOWN, S as SELECT_CLASSES, a as SELECT_KEY_COMPONENT } from "./constants.js";
9
9
  import { S as SELECT_DICTIONARY } from "./dictionary.js";
10
10
  import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
11
+ import { s as selectStyles } from "./Select.styles.js";
11
12
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
12
13
  import { C as Chip } from "../../Chip/Chip.js";
13
14
  import { S as SelectSlots } from "./slots/SelectEnum.js";
@@ -215,24 +216,7 @@ const Select = forwardRef(
215
216
  horizontal: "left"
216
217
  },
217
218
  sx: {
218
- "& .MuiPaper-root": {
219
- padding: theme.vars.size.baseSpacings.sp1,
220
- maxHeight: "200px",
221
- overflow: "auto",
222
- minWidth: `${(selectRef?.current?.offsetWidth ?? 0) + 1}px!important`,
223
- // +1 para incluir el border del contenedor root.
224
- "& .MuiList-root": {
225
- padding: 0,
226
- display: "grid",
227
- gridTemplateColumns: "auto",
228
- gap: theme.vars.size.baseSpacings.sp1,
229
- width: "fit-content!important",
230
- minWidth: "100%",
231
- "& .MuiMenuItem-root": {
232
- width: "100%"
233
- }
234
- }
235
- }
219
+ ...typeof selectStyles?.menuPaper === "function" ? selectStyles.menuPaper({ theme, selectRef }) : {}
236
220
  }
237
221
  },
238
222
  children: options.length > 0 ? options.map(
@@ -125,7 +125,6 @@ const selectStyles = {
125
125
  * Styles for the render value typography
126
126
  */
127
127
  renderValueTypography: ({ ownerState }) => ({
128
- lineHeight: "inherit!important",
129
128
  cursor: ownerState?.readOnly || ownerState?.disabled ? "default" : "pointer"
130
129
  }),
131
130
  // chip: () => ({
@@ -167,6 +166,39 @@ const selectStyles = {
167
166
  }
168
167
  }
169
168
  },
169
+ /**
170
+ * Styles for the menu paper component
171
+ * @param {object} theme - The theme object
172
+ * @returns {object} The styles for the menu paper component
173
+ */
174
+ menuPaper: ({ theme, selectRef }) => ({
175
+ "&": {
176
+ "& .MuiPaper-root": {
177
+ backgroundColor: theme.vars.palette.background.default,
178
+ marginTop: theme.vars.size.baseSpacings.sp1,
179
+ padding: theme.vars.size.baseSpacings.sp3,
180
+ boxShadow: theme.vars.customShadows.z4,
181
+ maxHeight: "200px",
182
+ overflow: "auto",
183
+ minWidth: `${(selectRef?.current?.offsetWidth ?? 0) + 1}px!important`,
184
+ // +1 para incluir el border del contenedor root.
185
+ "& .MuiList-root": {
186
+ padding: 0,
187
+ display: "grid",
188
+ gridTemplateColumns: "auto",
189
+ gap: theme.vars.size.baseSpacings.sp1,
190
+ width: "fit-content!important",
191
+ minWidth: "100%",
192
+ "& .MuiMenuItem-root": {
193
+ width: "100%"
194
+ }
195
+ }
196
+ }
197
+ // Estilos personalizados para el menú paper
198
+ // El parámetro theme está disponible para uso futuro
199
+ // Ejemplo: backgroundColor: _theme.vars.palette.background.paper,
200
+ }
201
+ }),
170
202
  /**
171
203
  * Estilos del menuItem que no tiene opciones
172
204
  * @param {object} theme - The theme object
@@ -24,8 +24,9 @@ export declare const COMBINATED_TEXTFIELD_ENUMS: {
24
24
  renderValueTypography: SelectSlots.renderValueTypography;
25
25
  labelOption: SelectSlots.labelOption;
26
26
  labelPlaceholer: SelectSlots.labelPlaceholer;
27
+ menuPaper: SelectSlots.menuPaper;
27
28
  };
28
29
  /**
29
30
  * Inventario de clases CSS para el componente Select
30
31
  */
31
- export declare const SELECT_CLASSES: Record<"text" | "menuItem" | "outlined" | "root" | "adorment" | "menuItemNoOptions" | "renderValueContainer" | "arrowDown" | "renderValueTypography" | "labelOption" | "labelPlaceholer" | "skeletonSelect", string>;
32
+ export declare const SELECT_CLASSES: Record<"text" | "menuItem" | "outlined" | "root" | "adorment" | "menuItemNoOptions" | "renderValueContainer" | "arrowDown" | "renderValueTypography" | "labelOption" | "labelPlaceholer" | "menuPaper" | "skeletonSelect", string>;
@@ -8,7 +8,8 @@ export declare enum SelectSlots {
8
8
  arrowDown = "arrowDown",
9
9
  renderValueTypography = "renderValueTypography",
10
10
  labelOption = "labelOption",
11
- labelPlaceholer = "labelPlaceholer"
11
+ labelPlaceholer = "labelPlaceholer",
12
+ menuPaper = "menuPaper"
12
13
  }
13
14
  export declare enum SelectComplementaryClasses {
14
15
  outlined = "outlined",
@@ -9,6 +9,7 @@ var SelectSlots = /* @__PURE__ */ ((SelectSlots2) => {
9
9
  SelectSlots2["renderValueTypography"] = "renderValueTypography";
10
10
  SelectSlots2["labelOption"] = "labelOption";
11
11
  SelectSlots2["labelPlaceholer"] = "labelPlaceholer";
12
+ SelectSlots2["menuPaper"] = "menuPaper";
12
13
  return SelectSlots2;
13
14
  })(SelectSlots || {});
14
15
  var SelectComplementaryClasses = /* @__PURE__ */ ((SelectComplementaryClasses2) => {