@m4l/components 9.3.35-BE20251128-beta.1 → 9.3.35-BE20251129-beta.2

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 (109) hide show
  1. package/@types/export.d.ts +3 -0
  2. package/@types/types.d.ts +40 -5
  3. package/components/AccountPopover/AccountPopover.styles.js +5 -2
  4. package/components/ActionsGroup/ActionsGroup.d.ts +5 -0
  5. package/components/ActionsGroup/ActionsGroup.js +40 -0
  6. package/components/ActionsGroup/ActionsGroup.styles.d.ts +2 -0
  7. package/components/ActionsGroup/ActionsGroup.styles.js +95 -0
  8. package/components/ActionsGroup/__tests__/ActionsGroup.test.d.ts +1 -0
  9. package/components/ActionsGroup/constants.d.ts +2 -0
  10. package/components/ActionsGroup/constants.js +8 -0
  11. package/components/ActionsGroup/icons.d.ts +3 -0
  12. package/components/ActionsGroup/icons.js +6 -0
  13. package/components/ActionsGroup/index.d.ts +1 -0
  14. package/components/ActionsGroup/index.js +1 -0
  15. package/components/ActionsGroup/slots/ActionsGroupEnum.d.ts +8 -0
  16. package/components/ActionsGroup/slots/ActionsGroupEnum.js +12 -0
  17. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +15 -0
  18. package/components/ActionsGroup/slots/ActionsGroupSlots.js +35 -0
  19. package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.d.ts +6 -0
  20. package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.js +76 -0
  21. package/components/ActionsGroup/subcomponents/ActionIconButton/types.d.ts +7 -0
  22. package/components/ActionsGroup/types.d.ts +60 -0
  23. package/components/DataGrid/DataGrid.js +2 -0
  24. package/components/DataGrid/Datagrid.styles.js +19 -3
  25. package/components/DataGrid/contexts/DataGridContext/index.js +2 -0
  26. package/components/DataGrid/contexts/DataGridContext/types.d.ts +2 -2
  27. package/components/DataGrid/subcomponents/Cards/subcomponents/CardHeader/index.js +15 -7
  28. package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.js +4 -1
  29. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.js +0 -3
  30. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -2
  31. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +0 -3
  32. package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.d.ts +6 -0
  33. package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.js +12 -0
  34. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.d.ts +64 -0
  35. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.js +46 -0
  36. package/components/DataGrid/tests/table/subcomponents/RadioButtonFormatter.test.d.ts +1 -0
  37. package/components/DataGrid/tests/table/subcomponents/RadioSelectColumn.test.d.ts +1 -0
  38. package/components/DataGrid/types.d.ts +7 -0
  39. package/components/DynamicFilter/DynamicFilter.styles.js +5 -2
  40. package/components/DynamicSort/DynamicSort.styles.js +5 -2
  41. package/components/GridLayout/styles.js +0 -1
  42. package/components/Label/index.d.ts +1 -1
  43. package/components/Label/types.d.ts +6 -0
  44. package/components/LanguagePopover/LanguagePopover.styles.js +13 -4
  45. package/components/MFLoader/styles.js +0 -1
  46. package/components/ModalDialog/ModalDialog.styles.js +8 -1
  47. package/components/PrintingSystem/PrintingSystem.js +3 -1
  48. package/components/PrintingSystem/PrintingSystem.styles.js +179 -2
  49. package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -3
  50. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +10 -10
  51. package/components/WindowBase/WindowBase.styles.js +8 -0
  52. package/components/WindowBase/subcomponents/Header/useButtonActions.js +23 -13
  53. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +5 -0
  54. package/components/commercial/AppBarCommercial/styles.js +1 -3
  55. package/components/commercial/HamburgerMenu/styles.js +1 -3
  56. package/components/commercial/SectionCommercial/styles.js +1 -3
  57. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -3
  58. package/components/commercial/TopBar/style.js +1 -3
  59. package/components/hook-form/RHFActionsGroup/RHFActionsGroup.d.ts +7 -0
  60. package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +87 -0
  61. package/components/hook-form/RHFActionsGroup/RHFActionsGroupStyles.d.ts +2 -0
  62. package/components/hook-form/RHFActionsGroup/RHFActionsGroupStyles.js +14 -0
  63. package/components/hook-form/RHFActionsGroup/constants.d.ts +9 -0
  64. package/components/hook-form/RHFActionsGroup/constants.js +8 -0
  65. package/components/hook-form/RHFActionsGroup/index.d.ts +2 -0
  66. package/components/hook-form/RHFActionsGroup/index.js +1 -0
  67. package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupEnum.d.ts +3 -0
  68. package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupEnum.js +7 -0
  69. package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.d.ts +1 -0
  70. package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js +11 -0
  71. package/components/hook-form/RHFActionsGroup/slots/index.d.ts +2 -0
  72. package/components/hook-form/RHFActionsGroup/slots/index.js +1 -0
  73. package/components/hook-form/RHFActionsGroup/tests/RHFActionsGroup.test.d.ts +1 -0
  74. package/components/hook-form/RHFActionsGroup/tests/common.d.ts +28 -0
  75. package/components/hook-form/RHFActionsGroup/types.d.ts +54 -0
  76. package/components/hook-form/RHFormProvider/styles.js +4 -3
  77. package/components/hook-form/index.d.ts +1 -0
  78. package/components/index.d.ts +1 -0
  79. package/components/mui_extended/Accordion/styles.js +9 -5
  80. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +11 -1
  81. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +5 -1
  82. package/components/mui_extended/ImageButton/styles.js +1 -3
  83. package/components/mui_extended/Popover/Popover.styles.js +6 -1
  84. package/components/mui_extended/RadioButton/RadioButton.d.ts +24 -0
  85. package/components/mui_extended/RadioButton/RadioButton.js +110 -0
  86. package/components/mui_extended/RadioButton/RadioButton.styles.d.ts +2 -0
  87. package/components/mui_extended/RadioButton/RadioButton.styles.js +126 -0
  88. package/components/mui_extended/RadioButton/constants.d.ts +1 -0
  89. package/components/mui_extended/RadioButton/constants.js +4 -0
  90. package/components/mui_extended/RadioButton/icons.d.ts +4 -0
  91. package/components/mui_extended/RadioButton/icons.js +7 -0
  92. package/components/mui_extended/RadioButton/index.d.ts +1 -0
  93. package/components/mui_extended/RadioButton/index.js +1 -0
  94. package/components/mui_extended/RadioButton/slots/RadioButtonEnum.d.ts +8 -0
  95. package/components/mui_extended/RadioButton/slots/RadioButtonEnum.js +12 -0
  96. package/components/mui_extended/RadioButton/slots/RadioButtonSlots.d.ts +20 -0
  97. package/components/mui_extended/RadioButton/slots/RadioButtonSlots.js +39 -0
  98. package/components/mui_extended/RadioButton/tests/RadioButton.test.d.ts +1 -0
  99. package/components/mui_extended/RadioButton/types.d.ts +50 -0
  100. package/components/mui_extended/Select/Select.js +2 -18
  101. package/components/mui_extended/Select/Select.styles.js +33 -1
  102. package/components/mui_extended/Select/constants.d.ts +2 -1
  103. package/components/mui_extended/Select/slots/SelectEnum.d.ts +2 -1
  104. package/components/mui_extended/Select/slots/SelectEnum.js +1 -0
  105. package/components/mui_extended/TextField/TextField.styles.js +2 -1
  106. package/components/mui_extended/Tooltip/Tooltip.styles.js +22 -4
  107. package/components/mui_extended/index.d.ts +1 -0
  108. package/index.js +76 -70
  109. package/package.json +3 -3
@@ -0,0 +1,28 @@
1
+ import { renderMaterialUI } from '../../../../test';
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { RHFActionsGroupProps } from '../types';
4
+ import { ActionGroupItem } from '../../../ActionsGroup/types';
5
+ import * as Yup from 'yup';
6
+ export declare const FIELD_NAME = "rhf-actions-group";
7
+ export declare const FIELD_NAME_REQUIRED = "rhf-actions-group-required";
8
+ export declare const FIELD_NAME_PRESELECTED = "rhf-actions-group-preselected";
9
+ export declare const mockActions: ActionGroupItem<string>[];
10
+ export declare const mockActionPreselected: string;
11
+ export declare const INITIAL_FORM_VALUES: FieldValues;
12
+ export declare const DEFAULT_PROPS: RHFActionsGroupProps<string>;
13
+ export declare const errorMessage = "This field is required";
14
+ export declare const VALIDATION_SCHEMA: Yup.ObjectSchema<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, {
15
+ "rhf-actions-group-required": import('yup/lib/string').RequiredStringSchema<string | undefined, import('yup/lib/types').AnyObject>;
16
+ }>, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, {
17
+ "rhf-actions-group-required": import('yup/lib/string').RequiredStringSchema<string | undefined, import('yup/lib/types').AnyObject>;
18
+ }>>, import('yup/lib/object').AssertsShape<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, {
19
+ "rhf-actions-group-required": import('yup/lib/string').RequiredStringSchema<string | undefined, import('yup/lib/types').AnyObject>;
20
+ }>>>;
21
+ /**
22
+ * Renderiza el componente con el contexto de EnvironmentProvider y RHFormProvider.
23
+ */
24
+ export declare const renderWithContexts: (ui: React.ReactElement, initialValuesFormContext?: FieldValues, validationSchema?: any) => ReturnType<typeof renderMaterialUI>;
25
+ /**
26
+ * Renders the RHFActionsGroup component with the provided props.
27
+ */
28
+ export declare const renderRHFActionsGroup: (fieldName: string, overrideProps?: Partial<RHFActionsGroupProps<string>>, withFormValidation?: boolean) => ReturnType<typeof renderMaterialUI>;
@@ -0,0 +1,54 @@
1
+ import { ActionsGroupValueType, ActionGroupItem } from '../../ActionsGroup/types';
2
+ import { Sizes } from '@m4l/styles';
3
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
4
+ import { Theme } from '@mui/material';
5
+ import { RHFActionsGroupSlots } from './slots';
6
+ import { RHFACTIONSGROUP_KEY_COMPONENT } from './constants';
7
+ import { LabelPropsBase } from '../../../components/Label/types';
8
+ /**
9
+ * Props for the RHFActionsGroup component.
10
+ */
11
+ export interface RHFActionsGroupProps<T extends ActionsGroupValueType> extends LabelPropsBase {
12
+ /**
13
+ * The name of the field in the form.
14
+ */
15
+ name: string;
16
+ /**
17
+ * List of actions for the group.
18
+ */
19
+ actions: ActionGroupItem<T>[];
20
+ /**
21
+ * Indicates if the actions group is disabled.
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * Custom class name for the actions group.
26
+ */
27
+ className?: string;
28
+ /**
29
+ * Accessible label for the group (role toolbar).
30
+ */
31
+ ariaLabel?: string;
32
+ /**
33
+ * ID of element that labels the group (alternative to ariaLabel).
34
+ */
35
+ ariaLabelledBy?: string;
36
+ /**
37
+ * Size of the actions group.
38
+ */
39
+ size?: Extract<Sizes, 'small' | 'medium'>;
40
+ /**
41
+ * Variant of the actions group.
42
+ */
43
+ variant?: 'vertical' | 'horizontal';
44
+ }
45
+ /**
46
+ * Owner state for RHFActionsGroup component.
47
+ */
48
+ export interface RHFActionsGroupOwnerState {
49
+ disabled?: RHFActionsGroupProps<any>['disabled'];
50
+ }
51
+ /**
52
+ * Styles for RHFActionsGroup component.
53
+ */
54
+ export type RHFActionsGroupStyles = M4LOverridesStyleRules<keyof typeof RHFActionsGroupSlots, typeof RHFACTIONSGROUP_KEY_COMPONENT, Theme>;
@@ -1,8 +1,9 @@
1
1
  import { styled } from "@mui/material";
2
- const FormProviderRoot = styled("form")(({ theme }) => ({
3
- ...theme.components?.M4LRHFormProvider?.styleOverrides || {},
2
+ const FormProviderRoot = styled("form")(() => ({
4
3
  width: "100%",
5
- overflow: "hidden"
4
+ overflow: "hidden",
5
+ display: "flex",
6
+ flexDirection: "column"
6
7
  }));
7
8
  export {
8
9
  FormProviderRoot as F
@@ -16,3 +16,4 @@ export * from './RHFNumberInput';
16
16
  export { RHFUploadSingleFile } from './RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile';
17
17
  export * from './RHFUpload';
18
18
  export * from './RHFormProvider';
19
+ export * from './RHFActionsGroup';
@@ -1,4 +1,5 @@
1
1
  export * from './AccountPopover';
2
+ export * from './ActionsGroup';
2
3
  export * from './animate';
3
4
  export * from './AppBar';
4
5
  export * from './AppBar/AppBar';
@@ -7,17 +7,21 @@ const accordionStyles = {
7
7
  */
8
8
  accordionRoot: ({ theme, ownerState }) => ({
9
9
  "&&&": {
10
+ width: "100%",
11
+ margin: "unset",
12
+ overflow: "visible",
13
+ height: "min-content",
14
+ boxShadow: "unset",
15
+ backgroundColor: theme.vars.palette.background.default,
10
16
  ...ownerState?.variant === "outlined" && {
11
17
  border: `${theme.size.borderStroke.container} ${theme.vars.palette.border.secondary}`,
12
18
  borderRadius: ownerState?.variant === "outlined" ? theme.size.borderRadius.r2 : "unset"
13
19
  },
14
20
  ...ownerState?.variant === "text" && {
15
21
  borderBottom: ownerState?.expanded ? `${theme.size.borderStroke.container} ${theme.vars.palette.border.default}` : `${theme.size.borderStroke.container} ${theme.vars.palette.border.default}`,
16
- borderRadius: "unset"
17
- },
18
- margin: "unset",
19
- overflow: "visible",
20
- height: "min-content"
22
+ borderRadius: "unset",
23
+ backgroundColor: "green!important"
24
+ }
21
25
  }
22
26
  }),
23
27
  /**
@@ -9,6 +9,12 @@ const autocompleteSyles = {
9
9
  "& .M4LImage-root": {
10
10
  width: theme.vars.size.baseSpacings["sp3-5"],
11
11
  height: theme.vars.size.baseSpacings["sp3-5"]
12
+ },
13
+ "& .MuiInputBase-input": {
14
+ "&::placeholder": {
15
+ color: theme.vars.palette.text.disabled,
16
+ opacity: 1
17
+ }
12
18
  }
13
19
  }),
14
20
  /**
@@ -101,16 +107,20 @@ const autocompleteSyles = {
101
107
  /**
102
108
  * Styles for the popper component.
103
109
  */
104
- popper: () => ({
110
+ popper: ({ theme }) => ({
105
111
  width: "fit-content!important",
106
112
  maxWidth: "calc(100vw - 20px)",
107
113
  "& .MuiPaper-root": {
108
114
  minWidth: "100%",
115
+ padding: theme.vars.size.baseSpacings.sp3,
116
+ backgroundColor: theme.vars.palette.background.default,
117
+ boxShadow: theme.vars.customShadows.z4,
109
118
  maxHeight: "200px",
110
119
  "& .MuiAutocomplete-listbox": {
111
120
  display: "grid",
112
121
  gridTemplateColumns: "auto",
113
122
  height: "100%",
123
+ gap: theme.vars.size.baseSpacings.sp1,
114
124
  "& .M4LMenuItem-root ": {
115
125
  width: "100%",
116
126
  "& .M4LTypography-root": {
@@ -30,7 +30,11 @@ const dateTimePickerStyles = {
30
30
  theme.generalSettings.isMobile,
31
31
  ownerState?.size || "medium",
32
32
  "body"
33
- )
33
+ ),
34
+ "&::placeholder": {
35
+ color: theme.vars.palette.text.disabled,
36
+ opacity: 1
37
+ }
34
38
  },
35
39
  "& .MuiInputAdornment-root": {
36
40
  margin: 0,
@@ -1,7 +1,5 @@
1
1
  import { styled } from "@mui/material/styles";
2
- const WrapperImageButton = styled("div")(({ theme }) => ({
3
- ...theme.components?.M4LImageButton?.styleOverrides || {}
4
- }));
2
+ const WrapperImageButton = styled("div")(() => ({}));
5
3
  export {
6
4
  WrapperImageButton as W
7
5
  };
@@ -5,8 +5,13 @@ const popoverStyles = {
5
5
  root: ({ theme }) => ({
6
6
  "&.M4lclassCssSpecificity": {
7
7
  "& .MuiPaper-root": {
8
+ backgroundColor: theme.vars.palette.background.default,
8
9
  boxShadow: theme.vars.customShadows.z4,
9
- borderRadius: theme.vars.size.borderRadius.r1
10
+ borderRadius: theme.vars.size.borderRadius.r2,
11
+ padding: theme.vars.size.baseSpacings.sp3,
12
+ "& .MuiList-root": {
13
+ padding: "unset"
14
+ }
10
15
  }
11
16
  }
12
17
  })
@@ -0,0 +1,24 @@
1
+ import { RadioButtonProps } from './types';
2
+ /**
3
+ * Componente RadioButton 🔘
4
+ *
5
+ * Este componente representa un radio button personalizado que puede ser utilizado en formularios y otros lugares donde se necesite una opción de selección única.
6
+ * @param {RadioButtonProps} props - Las propiedades del componente.
7
+ * @param {React.Ref<HTMLButtonElement>} ref - La referencia al elemento raíz del componente.
8
+ * @returns {JSX.Element} El componente RadioButton renderizado.
9
+ * @example
10
+ * ```tsx
11
+ * <RadioButton
12
+ * size="medium"
13
+ * disabled={false}
14
+ * color="primary"
15
+ * inlineText="Opción 1"
16
+ * mandatory={true}
17
+ * mandatoryMessage="Este campo es obligatorio"
18
+ * helperMessage="Más información"
19
+ * htmlFor="radio-id"
20
+ * error={false}
21
+ * />
22
+ * ```
23
+ */
24
+ export declare const RadioButton: import('react').ForwardRefExoticComponent<Omit<RadioButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,110 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { forwardRef, useId } from "react";
3
+ import { useModuleSkeleton, useEnvironment } from "@m4l/core";
4
+ import { R as RadioButtonRootStyled, M as MUIRadioStyled, I as IconStyled, a as IconCheckedStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/RadioButtonSlots.js";
5
+ import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
6
+ import { R as RADIO_BUTTON_KEY_COMPONENT } from "./constants.js";
7
+ import clsx from "clsx";
8
+ import { p as pathIcons } from "./icons.js";
9
+ import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
10
+ const RadioButton = forwardRef(
11
+ (props, ref) => {
12
+ const {
13
+ className,
14
+ size = "medium",
15
+ disabled,
16
+ color = "default",
17
+ mandatory,
18
+ mandatoryMessage,
19
+ helperMessage,
20
+ id,
21
+ htmlFor,
22
+ error,
23
+ inlineText,
24
+ checked = false,
25
+ ...others
26
+ } = props;
27
+ const { currentSize } = useComponentSize(size);
28
+ const isSkeleton = useModuleSkeleton();
29
+ const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
30
+ const classes = getComponentSlotRoot(RADIO_BUTTON_KEY_COMPONENT);
31
+ const { host_static_assets, environment_assets } = useEnvironment();
32
+ const hookId = useId();
33
+ const finalId = id || hookId;
34
+ const ownerState = {
35
+ disabled,
36
+ color,
37
+ error,
38
+ size,
39
+ checked
40
+ };
41
+ return /* @__PURE__ */ jsx(
42
+ RadioButtonRootStyled,
43
+ {
44
+ ownerState: { ...ownerState },
45
+ className: clsx(className, classes),
46
+ children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
47
+ /* @__PURE__ */ jsx(
48
+ MUIRadioStyled,
49
+ {
50
+ ref,
51
+ ownerState: { ...ownerState },
52
+ disableRipple: true,
53
+ id: finalId,
54
+ checked,
55
+ checkedIcon: /* @__PURE__ */ jsx(
56
+ IconCheckedStyled,
57
+ {
58
+ src: `${host_static_assets}/${environment_assets}/${pathIcons.checked}`,
59
+ size: currentSize,
60
+ color: disabled ? "text.disabled" : error ? "error.enabled" : "primary.enabled",
61
+ ownerState: { ...ownerState }
62
+ }
63
+ ),
64
+ icon: /* @__PURE__ */ jsx(
65
+ IconStyled,
66
+ {
67
+ src: `${host_static_assets}/${environment_assets}/${pathIcons.unchecked}`,
68
+ size: currentSize,
69
+ ownerState: { ...ownerState },
70
+ color: disabled ? "text.disabled" : error ? "error.enabled" : "text.secondary"
71
+ }
72
+ ),
73
+ disabled,
74
+ inputProps: {
75
+ "aria-labelledby": finalId,
76
+ "aria-invalid": error ? "true" : void 0
77
+ },
78
+ ...others
79
+ }
80
+ ),
81
+ inlineText && /* @__PURE__ */ jsx(
82
+ TypographyStyled,
83
+ {
84
+ component: "label",
85
+ htmlFor: finalId,
86
+ variant: "body",
87
+ ownerState: { ...ownerState },
88
+ size: adjustedSize,
89
+ disabled,
90
+ ellipsis: true,
91
+ children: inlineText
92
+ }
93
+ )
94
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
95
+ /* @__PURE__ */ jsx(SkeletonStyled, { variant: "rounded", className: "radioSkeleton" }),
96
+ inlineText ? /* @__PURE__ */ jsx(
97
+ SkeletonStyled,
98
+ {
99
+ variant: "rectangular",
100
+ className: "radioSkeletonInlineText"
101
+ }
102
+ ) : null
103
+ ] })
104
+ }
105
+ );
106
+ }
107
+ );
108
+ export {
109
+ RadioButton as R
110
+ };
@@ -0,0 +1,2 @@
1
+ import { RadioButtonStyles } from './types';
2
+ export declare const radioButtonStyles: RadioButtonStyles;
@@ -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
+ };