@m4l/components 9.1.60 β†’ 9.1.62

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 (44) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/Icon/types.d.ts +1 -1
  3. package/components/hook-form/RHFCheckbox/RHFCheckbox.js +1 -1
  4. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +1 -1
  5. package/components/mui_extended/CheckBox/CheckBox.d.ts +1 -1
  6. package/components/mui_extended/CheckBox/CheckBox.js +42 -34
  7. package/components/mui_extended/CheckBox/CheckBox.styles.js +60 -68
  8. package/components/mui_extended/CheckBox/slots/CheckBoxEnum.d.ts +4 -2
  9. package/components/mui_extended/CheckBox/slots/CheckBoxEnum.js +3 -1
  10. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +7 -1
  11. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +20 -9
  12. package/components/mui_extended/CheckBox/test/CheckBox.test.d.ts +1 -0
  13. package/components/mui_extended/CheckBox/types.d.ts +11 -18
  14. package/components/mui_extended/Tab/Slots/TabEnum.d.ts +1 -0
  15. package/components/mui_extended/Tab/Slots/TabEnum.js +1 -0
  16. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +8 -0
  17. package/components/mui_extended/Tab/Slots/TabSlots.js +6 -0
  18. package/components/mui_extended/Tab/Tab.js +6 -6
  19. package/components/mui_extended/Tab/Tab.styles.js +33 -48
  20. package/components/mui_extended/Tab/constants.d.ts +0 -10
  21. package/components/mui_extended/Tab/constants.js +1 -7
  22. package/components/mui_extended/Tabs/Tabs.d.ts +2 -2
  23. package/components/mui_extended/Tabs/Tabs.js +3 -5
  24. package/components/mui_extended/Tabs/Tabs.styles.d.ts +2 -0
  25. package/components/mui_extended/Tabs/Tabs.styles.js +34 -0
  26. package/components/mui_extended/Tabs/Tabs.test.d.ts +1 -0
  27. package/components/mui_extended/Tabs/constants.d.ts +4 -0
  28. package/components/mui_extended/Tabs/constants.js +4 -0
  29. package/components/mui_extended/Tabs/slots/TabsEnum.d.ts +3 -0
  30. package/components/mui_extended/Tabs/slots/TabsEnum.js +7 -0
  31. package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +5 -0
  32. package/components/mui_extended/Tabs/slots/TabsSlots.js +11 -0
  33. package/components/mui_extended/Tabs/types.d.ts +21 -0
  34. package/components/mui_extended/Typography/Typography.js +6 -4
  35. package/components/mui_extended/Typography/types.d.ts +8 -5
  36. package/components/mui_extended/Typography/typography.styles.js +6 -6
  37. package/package.json +1 -1
  38. package/components/mui_extended/Tabs/classes/constants.d.ts +0 -1
  39. package/components/mui_extended/Tabs/classes/constants.js +0 -4
  40. package/components/mui_extended/Tabs/classes/index.d.ts +0 -9
  41. package/components/mui_extended/Tabs/classes/index.js +0 -23
  42. package/components/mui_extended/Tabs/classes/types.d.ts +0 -6
  43. package/components/mui_extended/Tabs/styles.d.ts +0 -3
  44. package/components/mui_extended/Tabs/styles.js +0 -7
package/@types/types.d.ts CHANGED
@@ -132,6 +132,7 @@ import { ToggleButtonOwnerState, ToggleButtonSlotsType } from '../components/mui
132
132
 
133
133
  import { BooleanFormatterOwnerState, PresentationType } from '../components/formatters/BooleanFormatter/types';
134
134
  import { ToggleIconButtonOwnerState, ToggleIconButtonSlotsType } from '../components/mui_extended/ToggleIconButton/types';
135
+ import { TabsSlotsType,TabsOwnerState } from '../components/mui_extended/Tabs/types';
135
136
 
136
137
  import { PopoverOwnerState, PopoverSlotsType } from '../components/mui_extended/Popover/types';
137
138
  import { AccountPopoverOwnerState, AccountPopoverSlotsType } from '../components/AccountPopover/types';
@@ -189,6 +190,7 @@ declare module '@mui/material/styles' {
189
190
  M4LToggleButton: ToggleButtonSlotsType;
190
191
  M4LBooleanFormatter: PresentationType;
191
192
  M4LToggleIconButton: ToggleIconButtonSlotsType;
193
+ M4LTabs: TabsSlotsType;
192
194
  RHFM4LAutocomplete: RHFAutocompleteSlotsType;
193
195
  M4LAccountPopover: AccountPopoverSlotsType;
194
196
  M4LPropertyValue: PropertyValueType;
@@ -241,6 +243,7 @@ declare module '@mui/material/styles' {
241
243
  M4LToggleButton: Partial<ToggleButtonOwnerState>;
242
244
  M4LBooleanFormatter: Partial<BooleanFormatterOwnerState>;
243
245
  M4LToggleIconButton: Partial<ToggleIconButtonOwnerState>;
246
+ M4LTabs: Partial<TabsOwnerState>;
244
247
  RHFM4LAutocomplete: Partial<RHFAutocompleteOwnerState>;
245
248
  M4LAccountPopover: Partial<AccountPopoverOwnerState>;
246
249
  M4LPropertyValue: Partial<PropertyVaLueOwnerState>;
@@ -570,6 +573,11 @@ declare module '@mui/material/styles' {
570
573
  styleOverrides?: ComponentsOverrides<Theme>['M4LPropertyValue'];
571
574
  variants?: ComponentsVariants['M4LPropertyValue'];
572
575
  };
576
+ M4LTabs?: {
577
+ defaultProps?: ComponentsPropsList['M4LTabs'];
578
+ styleOverrides?: ComponentsOverrides<Theme>['M4LTabs'];
579
+ variants?: ComponentsVariants['M4LTabs'];
580
+ };
573
581
  M4LColor?: {
574
582
  defaultProps?: ComponentsPropsList['M4LColor'];
575
583
  styleOverrides?: ComponentsOverrides<Theme>['M4LColor'];
@@ -8,7 +8,7 @@ import { TooltipProps } from '../mui_extended/Tooltip/types';
8
8
  /**
9
9
  * Define la lista de posibles colores que se pueden aplicar al componente icono.
10
10
  */
11
- export type IconColors = 'primary.main' | 'text.primary' | 'primary.contrastText' | 'info.main' | 'success.main' | 'error.main' | 'warning.main' | string;
11
+ export type IconColors = 'primary.main' | 'text.primary' | 'text.disabled' | 'primary.contrastText' | 'info.main' | 'success.main' | 'error.main' | 'warning.main' | string;
12
12
  export interface IconProps extends Pick<TooltipProps, 'placement'> {
13
13
  /**
14
14
  * URL o ruta de la imagen que se va a mostrar.
@@ -66,7 +66,7 @@ function RHFCheckbox(props) {
66
66
  checked: value,
67
67
  disabled: disabled ? true : false,
68
68
  disableRipple: true,
69
- label,
69
+ inlineText: label,
70
70
  mandatory,
71
71
  mandatoryMessage,
72
72
  helperMessage,
@@ -109,7 +109,7 @@ function MapSourcesTool() {
109
109
  {
110
110
  disabled: currentMapSourceId !== mapSourceOption.id,
111
111
  checked: mapSourceOption.roadSeletedOptions?.bicyclingLayer || false,
112
- label: "Bycicle",
112
+ inlineText: "Bycicle",
113
113
  onChange: (_e, checked) => {
114
114
  setMapSourceRoadMapOptions({ bicyclingLayer: checked });
115
115
  }
@@ -21,4 +21,4 @@ import { CheckboxProps } from './types';
21
21
  * />
22
22
  * ```
23
23
  */
24
- export declare const CheckBox: import('react').ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
24
+ export declare const CheckBox: import('react').ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,66 +1,74 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
4
- import { useTheme } from "@mui/material";
2
+ import { forwardRef, useId } from "react";
3
+ import { useModuleSkeleton, useEnvironment } from "@m4l/core";
4
+ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
5
+ import { C as CHECK_BOX_KEY_COMPONENT } from "./constants.js";
6
+ import clsx from "clsx";
5
7
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
6
- import { C as CheckBoxRootStyled, M as MUICheckboxStyled, L as LabelCheckBoxStyled, S as SkeletonStyled } from "./slots/CheckBoxSlots.js";
7
- const CheckBox = forwardRef((props, ref) => {
8
+ import { C as CheckBoxRootStyled, M as MUICheckboxStyled, I as IconCheckedStyled, a as IconStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/CheckBoxSlots.js";
9
+ import { C as CheckBoxSlots } from "./slots/CheckBoxEnum.js";
10
+ const CheckBox = forwardRef((props) => {
8
11
  const {
9
12
  className,
10
- size = "small",
13
+ size = "medium",
11
14
  disabled,
12
- color = "primary",
13
- label,
15
+ color = "default",
14
16
  mandatory,
15
17
  mandatoryMessage,
16
18
  helperMessage,
19
+ id,
17
20
  htmlFor,
18
21
  error,
22
+ inlineText,
23
+ checked,
19
24
  ...others
20
25
  } = props;
21
26
  const { currentSize } = useComponentSize(size);
22
- const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
23
27
  const isSkeleton = useModuleSkeleton();
24
- const theme = useTheme();
25
- const paletteColor = getPropertyByString(
26
- theme.palette,
27
- disabled ? "default" : error ? "error" : color,
28
- theme.palette.default
29
- );
28
+ const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
29
+ const classes = getComponentClasses(CHECK_BOX_KEY_COMPONENT, CheckBoxSlots);
30
+ const { host_static_assets, environment_assets } = useEnvironment();
31
+ const hookId = useId();
32
+ const finalId = id || hookId;
33
+ const checkedIconUrl = `${host_static_assets}/${environment_assets}/frontend/components/check_box/assets/icons/checked.svg`;
34
+ const uncheckedIconUrl = `${host_static_assets}/${environment_assets}/frontend/components/check_box/assets/icons/unchecked.svg`;
30
35
  const ownerState = {
31
- CheckBoxPaletteColor: paletteColor,
32
- CheckBoxDisabled: disabled,
33
- CheckBoxColor: color,
34
- CheckBoxError: error,
35
- CheckBoxSizes: adjustedSize
36
+ disabled,
37
+ color,
38
+ error,
39
+ size,
40
+ checked
36
41
  };
37
- return /* @__PURE__ */ jsx(CheckBoxRootStyled, { ref, ownerState: { ...ownerState }, children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
42
+ return /* @__PURE__ */ jsx(CheckBoxRootStyled, { ownerState: { ...ownerState }, className: clsx(className, classes.root), children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
38
43
  /* @__PURE__ */ jsx(
39
44
  MUICheckboxStyled,
40
45
  {
41
- ownerState: { ownerState },
46
+ ownerState: { ...ownerState },
42
47
  disableRipple: true,
43
- id: htmlFor,
44
- tabIndex: 0,
48
+ id: finalId,
49
+ checked,
50
+ checkedIcon: /* @__PURE__ */ jsx(IconCheckedStyled, { src: checkedIconUrl, size: currentSize, color: disabled ? "text.disabled" : error ? "error.main" : "primary.main", ownerState: { ...ownerState } }),
51
+ icon: /* @__PURE__ */ jsx(IconStyled, { src: uncheckedIconUrl, size: currentSize, ownerState: { ...ownerState }, color: disabled ? "text.disabled" : error ? "error.main" : "text.primary" }),
52
+ disabled,
53
+ inputProps: { "aria-labelledby": finalId, "aria-invalid": error ? "true" : void 0 },
45
54
  ...others
46
55
  }
47
56
  ),
48
- label && /* @__PURE__ */ jsx(
49
- LabelCheckBoxStyled,
57
+ inlineText && /* @__PURE__ */ jsx(
58
+ TypographyStyled,
50
59
  {
60
+ component: "label",
61
+ htmlFor: finalId,
62
+ variant: "body",
51
63
  ownerState: { ...ownerState },
52
- label,
53
- className: "MuiTypography-checkbox",
54
- mandatory,
55
- mandatoryMessage,
56
- helperMessage,
57
- htmlFor,
58
- disabled
64
+ size: adjustedSize,
65
+ disabled,
66
+ children: inlineText
59
67
  }
60
68
  )
61
69
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
62
70
  /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: {}, variant: "rounded", width: "24px", height: "24px" }),
63
- label && /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: {}, variant: "text", width: "100px", height: "24px" })
71
+ inlineText ? /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: {}, variant: "text", width: "100px", height: "24px" }) : null
64
72
  ] }) });
65
73
  });
66
74
  export {
@@ -1,92 +1,84 @@
1
1
  const checkBoxStyles = {
2
2
  /**
3
3
  * Estilos generales para el checkbox
4
- * @author AndrΓ©s Quintero - automatic
5
- * @createdAt 2024-12-30 14:36:06 - automatic
6
- * @updatedAt 2024-12-30 14:36:10 - automatic
7
- * @updatedUser AndrΓ©s Quintero - automatic
8
4
  */
9
- root: ({ theme, ownerState }) => ({
10
- display: "flex",
11
- alignItems: "center",
12
- outline: "none",
13
- paddingRight: theme.vars.size.baseSpacings.sp1,
14
- overflow: "visible",
15
- boxSizing: "border-box",
16
- gap: theme.vars.size.baseSpacings.sp1,
17
- //Estilos para el checkbox
18
- "& .MuiCheckbox-root": {
19
- color: ownerState.CheckBoxPaletteColor?.main || theme.vars.palette?.text.primary,
5
+ root: ({ theme }) => {
6
+ return {
7
+ display: "flex",
8
+ alignItems: "center",
9
+ outline: "none",
10
+ paddingRight: theme.vars.size.baseSpacings.sp1,
11
+ overflow: "visible",
12
+ boxSizing: "border-box",
13
+ gap: theme.vars.size.baseSpacings.sp1
14
+ // height: theme.vars.size[device][size].action,
15
+ };
16
+ },
17
+ /**
18
+ * Componente MuiCheckBox, FocusVisible para cuando esta seleccionado el CheckBox
19
+ */
20
+ muiCheckBox: ({ theme, ownerState }) => {
21
+ const color = ownerState.error ? "error" : "primary";
22
+ const opacityColor = ownerState.error ? "error" : "default";
23
+ const device = theme.generalSettings.isMobile ? "mobile" : "desktop";
24
+ const size = ownerState.size ?? "medium";
25
+ return {
26
+ overflow: "visible",
27
+ height: theme.vars.size[device][size].action,
28
+ width: theme.vars.size[device][size].action,
20
29
  borderRadius: theme.size.borderRadius.r1,
30
+ "&:hover": {
31
+ backgroundColor: theme.vars.palette[opacityColor].hoverOpacity
32
+ },
21
33
  "&:active": {
22
- color: ownerState.CheckBoxPaletteColor?.active,
23
- backgroundColor: ownerState.CheckBoxPaletteColor?.activeOpacity
34
+ backgroundColor: theme.vars.palette[opacityColor].activeOpacity
24
35
  },
25
36
  "&.Mui-checked": {
26
- borderRadius: theme.size.borderRadius.r1,
27
- color: ownerState.CheckBoxPaletteColor?.main,
28
- "&:active": {
29
- color: ownerState.CheckBoxPaletteColor?.active,
30
- backgroundColor: ownerState.CheckBoxPaletteColor?.activeOpacity
31
- },
32
37
  "&:hover": {
33
- color: ownerState.CheckBoxPaletteColor?.hover,
34
- backgroundColor: ownerState.CheckBoxPaletteColor?.hoverOpacity
38
+ backgroundColor: theme.vars.palette[color].hoverOpacity,
39
+ "& .M4LIcon-icon": {
40
+ backgroundColor: theme.vars.palette[color].hover
41
+ }
42
+ },
43
+ "&:active": {
44
+ backgroundColor: theme.vars.palette[color].activeOpacity,
45
+ "& .M4LIcon-icon": {
46
+ backgroundColor: theme.vars.palette[color].active
47
+ }
35
48
  }
36
49
  },
50
+ "&.Mui-focusVisible, &:focus-visible": {
51
+ outline: `1px solid ${theme.vars.palette["primary"].focusVisible}`,
52
+ outlineOffset: 2
53
+ },
37
54
  // Historia Disabled para CheckBox
38
- ...ownerState.CheckBoxDisabled && {
39
- color: theme.vars.palette?.text.disabled,
40
- pointerEvents: ownerState.CheckBoxDisabled ? "none" : "auto",
55
+ ...ownerState.disabled && {
56
+ pointerEvents: ownerState.disabled ? "none" : "auto",
41
57
  "&:hover": {
42
- pointerEvents: ownerState.CheckBoxDisabled ? "none" : "auto"
58
+ pointerEvents: ownerState.disabled ? "none" : "auto"
43
59
  }
44
60
  }
45
- },
46
- //Estilos para el label del CheckBox Disabled
47
- "& .MuiTypography-root": {
48
- ...ownerState.CheckBoxDisabled && {
49
- color: `${theme.vars.palette?.text.disabled} !important`
50
- }
51
- },
52
- //Clase de estilo para cuando esta en estado hover pero no esta seleccionado el CheckBox
53
- "& .MuiCheckbox-root:not(.Mui-checked):hover": {
54
- backgroundColor: theme.palette.action.selected
55
- }
56
- }),
61
+ };
62
+ },
57
63
  /**
58
- * Componente MuiCheckBox, FocusVisible para cuando esta seleccionado el CheckBox
59
- * @author AndrΓ©s Quintero - automatic
60
- * @createdAt 2024-12-30 14:36:06 - automatic
61
- * @updatedAt 2024-12-30 14:36:10 - automatic
62
- * @updatedUser AndrΓ©s Quintero - automatic
64
+ * Estilos para el inline-text del CheckBox
63
65
  */
64
- muiCheckBox: ({ theme }) => ({
65
- overflow: "visible",
66
- "&.Mui-focusVisible, &:focus-visible": {
67
- "&::before": {
68
- content: '""',
69
- position: "absolute",
70
- inset: "0px",
71
- border: theme.vars.size.borderStroke.container,
72
- color: theme.vars.palette.primary.main,
73
- borderRadius: theme.vars.size.borderRadius.r1,
74
- boxSizing: "border-box"
75
- }
76
- },
77
- "&.MuiButtonBase-root": {}
66
+ skeletonStyled: ({ theme }) => ({
67
+ borderRadius: theme.vars.size.borderRadius.r1,
68
+ backgroundColor: theme.vars.palette?.skeleton.default
78
69
  }),
70
+ /**
71
+ * El estilado de este slot, se hace en muiCheckBox, debido a que el input absorve los psuedo selectore, entonces hay que hacerlos desde el nodo padre.
72
+ */
73
+ icon: {},
74
+ /**
75
+ * El estilado de este slot, se hace en muiCheckBox, debido a que el input absorve los psuedo selectore, entonces hay que hacerlos desde el nodo padre.
76
+ */
77
+ iconChecked: {},
79
78
  /**
80
79
  * Estilos para el label del CheckBox
81
- * @author AndrΓ©s Quintero - automatic
82
- * @createdAt 2024-12-30 14:36:06 - automatic
83
- * @updatedAt 2024-12-30 14:36:10 - automatic
84
- * @updatedUser AndrΓ©s Quintero - automatic
85
80
  */
86
- skeletonStyled: ({ theme }) => ({
87
- borderRadius: theme.vars.size.borderRadius.r1
88
- }),
89
- labelCheckBox: {}
81
+ typographyStyled: {}
90
82
  };
91
83
  export {
92
84
  checkBoxStyles as c
@@ -1,6 +1,8 @@
1
1
  export declare enum CheckBoxSlots {
2
2
  root = "root",
3
3
  muiCheckBox = "muiCheckBox",
4
- labelCheckBox = "labelCheckBox",
5
- skeletonStyled = "skeletonStyled"
4
+ typographyStyled = "typographyStyled",
5
+ skeletonStyled = "skeletonStyled",
6
+ iconChecked = "iconChecked",
7
+ icon = "icon"
6
8
  }
@@ -1,8 +1,10 @@
1
1
  var CheckBoxSlots = /* @__PURE__ */ ((CheckBoxSlots2) => {
2
2
  CheckBoxSlots2["root"] = "root";
3
3
  CheckBoxSlots2["muiCheckBox"] = "muiCheckBox";
4
- CheckBoxSlots2["labelCheckBox"] = "labelCheckBox";
4
+ CheckBoxSlots2["typographyStyled"] = "typographyStyled";
5
5
  CheckBoxSlots2["skeletonStyled"] = "skeletonStyled";
6
+ CheckBoxSlots2["iconChecked"] = "iconChecked";
7
+ CheckBoxSlots2["icon"] = "icon";
6
8
  return CheckBoxSlots2;
7
9
  })(CheckBoxSlots || {});
8
10
  export {
@@ -4,7 +4,7 @@ export declare const CheckBoxRootStyled: import('@emotion/styled').StyledCompone
4
4
  export declare const MUICheckboxStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').CheckboxProps, keyof import('@mui/material').CheckboxProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
5
5
  ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
6
6
  }, {}, {}>;
7
- export declare const LabelCheckBoxStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Label').LabelProps, keyof import('../../../Label').LabelProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
7
+ export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
8
8
  ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
9
9
  }, {}, {}>;
10
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"> & {
@@ -12,3 +12,9 @@ export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<P
12
12
  }, "children" | "style" | "variant" | "width" | "height" | "animation" | "sx" | "classes" | "className">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "width" | "height" | "translate" | "animation" | "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" | "key"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
13
13
  ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
14
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> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
16
+ ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
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> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
19
+ ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
20
+ }, {}, {}>;
@@ -3,26 +3,37 @@ import { Checkbox, Skeleton } from "@mui/material";
3
3
  import { C as CheckBoxSlots } from "./CheckBoxEnum.js";
4
4
  import { C as CHECK_BOX_KEY_COMPONENT } from "../constants.js";
5
5
  import { c as checkBoxStyles } from "../CheckBox.styles.js";
6
- import { L as Label } from "../../../Label/Label.js";
6
+ import { T as Typography } from "../../Typography/Typography.js";
7
+ import { I as Icon } from "../../../Icon/Icon.js";
7
8
  const CheckBoxRootStyled = styled("div", {
8
9
  name: CHECK_BOX_KEY_COMPONENT,
9
10
  slot: CheckBoxSlots.root
10
- })(checkBoxStyles?.root);
11
+ })(checkBoxStyles.root);
11
12
  const MUICheckboxStyled = styled(Checkbox, {
12
13
  name: CHECK_BOX_KEY_COMPONENT,
13
14
  slot: CheckBoxSlots.muiCheckBox
14
- })(checkBoxStyles?.muiCheckBox);
15
- const LabelCheckBoxStyled = styled(Label, {
15
+ })(checkBoxStyles.muiCheckBox);
16
+ const TypographyStyled = styled(Typography, {
16
17
  name: CHECK_BOX_KEY_COMPONENT,
17
- slot: CheckBoxSlots.labelCheckBox
18
- })(checkBoxStyles?.labelCheckBox);
18
+ slot: CheckBoxSlots.typographyStyled
19
+ })(checkBoxStyles.typographyStyled);
19
20
  const SkeletonStyled = styled(Skeleton, {
20
21
  name: CHECK_BOX_KEY_COMPONENT,
21
22
  slot: CheckBoxSlots.skeletonStyled
22
- })(checkBoxStyles?.skeletonStyled);
23
+ })(checkBoxStyles.skeletonStyled);
24
+ const IconCheckedStyled = styled(Icon, {
25
+ name: CHECK_BOX_KEY_COMPONENT,
26
+ slot: CheckBoxSlots.iconChecked
27
+ })(checkBoxStyles.iconChecked);
28
+ const IconStyled = styled(Icon, {
29
+ name: CHECK_BOX_KEY_COMPONENT,
30
+ slot: CheckBoxSlots.icon
31
+ })(checkBoxStyles.icon);
23
32
  export {
24
33
  CheckBoxRootStyled as C,
25
- LabelCheckBoxStyled as L,
34
+ IconCheckedStyled as I,
26
35
  MUICheckboxStyled as M,
27
- SkeletonStyled as S
36
+ SkeletonStyled as S,
37
+ TypographyStyled as T,
38
+ IconStyled as a
28
39
  };
@@ -1,4 +1,4 @@
1
- import { CheckboxProps as MUICheckboxProps, PaletteColor, Theme } from '@mui/material';
1
+ import { CheckboxProps as MUICheckboxProps, Theme } from '@mui/material';
2
2
  import { LabelProps } from '../../Label/types';
3
3
  import { ComponentPalletColor, Sizes } from '@m4l/styles';
4
4
  import { CheckBoxSlots } from './slots';
@@ -10,38 +10,31 @@ export type OwnerState = Pick<CheckboxProps, 'size' | 'disabled'>;
10
10
  */
11
11
  export type CheckBoxVariants = 'standard';
12
12
  export interface CheckboxProps extends MUICheckboxProps, Omit<LabelProps, 'label' | 'size'> {
13
- label?: string;
14
- color?: Extract<ComponentPalletColor, 'primary'>;
13
+ size?: Extract<Sizes, 'small' | 'medium'>;
14
+ color?: Extract<ComponentPalletColor, 'default'>;
15
+ inlineText?: string;
15
16
  }
16
17
  export interface CheckBoxOwnerState {
17
18
  /**
18
- * Indica si el CheckBox estΓ‘ deshabilitado.
19
- */
20
- CheckBoxDisabled?: boolean;
21
- /**
22
- * Color de la paleta de CheckBox.
19
+ * Si estΓ‘ checkedo o no.
23
20
  */
24
- CheckBoxPaletteColor: PaletteColor;
21
+ checked?: boolean;
25
22
  /**
26
- * Variante de CheckBox.
27
- */
28
- CheckBoxVariant?: CheckBoxVariants;
29
- /**
30
- * Color de la paleta del componente del CheckBox.
23
+ * Indica si el CheckBox estΓ‘ deshabilitado.
31
24
  */
32
- CheckBoxComponentPaletteColor?: ComponentPalletColor;
25
+ disabled?: boolean;
33
26
  /**
34
27
  * TamaΓ±o de CheckBox.
35
28
  */
36
- CheckBoxSizes: Extract<Sizes, 'small' | 'medium'>;
29
+ size: Extract<Sizes, 'small' | 'medium'>;
37
30
  /**
38
31
  * Indica si CheckBox es error.
39
32
  */
40
- CheckBoxError?: boolean;
33
+ error?: boolean;
41
34
  /**
42
35
  * Color del campo de CheckBox.
43
36
  */
44
- CheckBoxColor?: Extract<ComponentPalletColor, 'primary'>;
37
+ color: Extract<ComponentPalletColor, 'default'>;
45
38
  }
46
39
  export type CheckBoxSlotsType = keyof typeof CheckBoxSlots;
47
40
  export type CheckBoxStyles = OverridesStyleRules<CheckBoxSlotsType, typeof CHECK_BOX_KEY_COMPONENT, Theme>;
@@ -4,5 +4,6 @@
4
4
  */
5
5
  export declare enum TabSlots {
6
6
  root = "root",
7
+ icon = "icon",
7
8
  tipography = "tipography"
8
9
  }
@@ -1,5 +1,6 @@
1
1
  var TabSlots = /* @__PURE__ */ ((TabSlots2) => {
2
2
  TabSlots2["root"] = "root";
3
+ TabSlots2["icon"] = "icon";
3
4
  TabSlots2["tipography"] = "tipography";
4
5
  return TabSlots2;
5
6
  })(TabSlots || {});
@@ -8,6 +8,14 @@ export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<
8
8
  }, "children" | "value" | "action" | "style" | "icon" | "disabled" | "sx" | "classes" | "className" | "tabIndex" | "label" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "iconPosition" | "wrapped">, "children" | "value" | "ref" | "title" | "id" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "disabled" | "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" | "label" | "key" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "iconPosition" | "wrapped"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TabOwnerState> & Record<string, unknown> & {
9
9
  ownerState: Partial<import('../types').TabOwnerState> & Record<string, unknown>;
10
10
  }, {}, {}>;
11
+ /**
12
+ * `IconStyled`:
13
+ * Componente de tipo icono (`Icon`).
14
+ * Utiliza el slot `icon` para agregar estilos especΓ­ficos al icono del Tab.
15
+ */
16
+ export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TabOwnerState> & Record<string, unknown> & {
17
+ ownerState: Partial<import('../types').TabOwnerState> & Record<string, unknown>;
18
+ }, {}, {}>;
11
19
  /**
12
20
  * `TypographyStyled`:
13
21
  * Componente de texto estilizado basado en `Typography`, se usa para mostrar texto en cada pestaΓ±a.
@@ -4,15 +4,21 @@ import { t as tabStyles } from "../Tab.styles.js";
4
4
  import { T as TAB_KEY_COMPONENT } from "../constants.js";
5
5
  import { T as TabSlots } from "./TabEnum.js";
6
6
  import { T as Typography } from "../../Typography/Typography.js";
7
+ import { I as Icon } from "../../../Icon/Icon.js";
7
8
  const RootStyled = styled(Tab, {
8
9
  name: TAB_KEY_COMPONENT,
9
10
  slot: TabSlots.root
10
11
  })(tabStyles?.root);
12
+ const IconStyled = styled(Icon, {
13
+ name: TAB_KEY_COMPONENT,
14
+ slot: TabSlots.icon
15
+ })(tabStyles?.icon);
11
16
  const TypographyStyled = styled(Typography, {
12
17
  name: TAB_KEY_COMPONENT,
13
18
  slot: TabSlots.tipography
14
19
  })(tabStyles?.tipography);
15
20
  export {
21
+ IconStyled as I,
16
22
  RootStyled as R,
17
23
  TypographyStyled as T
18
24
  };
@@ -2,11 +2,10 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { clsx } from "clsx";
3
3
  import { useModuleSkeleton } from "@m4l/core";
4
4
  import { T as TabSlots } from "./Slots/TabEnum.js";
5
- import { a as TYPOGRAPHY_KEY, b as TAB_SPECIFY, I as ICON_KEY, T as TAB_KEY_COMPONENT } from "./constants.js";
5
+ import { T as TAB_KEY_COMPONENT } from "./constants.js";
6
6
  import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
7
7
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
8
- import { R as RootStyled, T as TypographyStyled } from "./Slots/TabSlots.js";
9
- import { I as Icon } from "../../Icon/Icon.js";
8
+ import { R as RootStyled, T as TypographyStyled, I as IconStyled } from "./Slots/TabSlots.js";
10
9
  function Tab(props) {
11
10
  const {
12
11
  size = "medium",
@@ -38,13 +37,14 @@ function Tab(props) {
38
37
  return /* @__PURE__ */ jsx(
39
38
  RootStyled,
40
39
  {
41
- label: label ? /* @__PURE__ */ jsx(TypographyStyled, { className: clsx(TYPOGRAPHY_KEY, TAB_SPECIFY), ownerState: { ...OwnerState }, variant: "body", children: label }) : void 0,
40
+ label: label ? /* @__PURE__ */ jsx(TypographyStyled, { size: adjustedSize, className: clsx(classes.tipography, className), ownerState: { ...OwnerState }, variant: "body", children: label }) : void 0,
42
41
  disabled: isSkeleton || disabled,
43
42
  ownerState: { ...OwnerState },
44
43
  icon: urlIcon ? /* @__PURE__ */ jsx(
45
- Icon,
44
+ IconStyled,
46
45
  {
47
- className: clsx(ICON_KEY, TAB_SPECIFY),
46
+ ownerState: { ...OwnerState },
47
+ className: clsx(classes.icon, className),
48
48
  src: urlIcon,
49
49
  size
50
50
  }
@@ -48,14 +48,25 @@ const tabStyles = {
48
48
  },
49
49
  // Ajuste de alineaciΓ³n del icono
50
50
  "& .MuiTab-iconWrapper": {
51
- marginBottom: 1
51
+ marginBottom: 0
52
52
  },
53
- // Default o disabled
54
- ".icon.M4lclassCssSpecificity div": {
55
- backgroundColor: ownerState.tabDisabled ? theme.vars.palette.text.disabled : theme.vars.palette.text.secondary
53
+ //Disabled
54
+ ...ownerState.tabDisabled && {
55
+ ".M4LTab-icon div": {
56
+ backgroundColor: `${theme.vars.palette.text.disabled} !important`
57
+ },
58
+ ".M4LTab-tipography": {
59
+ color: `${theme.vars.palette.text.disabled} !important`
60
+ }
56
61
  },
57
- "span.M4lclassCssSpecificity": {
58
- color: ownerState.tabDisabled ? theme.vars.palette.text.disabled : theme.vars.palette.text.secondary
62
+ //Default
63
+ "&:not(.Mui-selected)": {
64
+ ".M4LTab-icon div": {
65
+ backgroundColor: theme.vars.palette.text.secondary
66
+ },
67
+ ".M4LTab-tipography": {
68
+ color: theme.vars.palette.text.secondary
69
+ }
59
70
  },
60
71
  /**
61
72
  * **Pseudoclases**:
@@ -79,10 +90,10 @@ const tabStyles = {
79
90
  border: theme.vars.size.borderStroke.container,
80
91
  borderColor: theme.vars.palette.border.secondary,
81
92
  borderBottom: 0,
82
- ".icon.M4lclassCssSpecificity div": {
93
+ ".M4LTab-icon div": {
83
94
  backgroundColor: ownerState.tabDisabled ? theme.vars.palette.text.disabled : theme.vars.palette.primary.enabled
84
95
  },
85
- "span": {
96
+ ".M4LTab-tipography": {
86
97
  color: ownerState.tabDisabled ? theme.vars.palette.text.disabled : theme.vars.palette.primary.enabled
87
98
  },
88
99
  // Efecto ripple en estado seleccionado
@@ -97,7 +108,7 @@ const tabStyles = {
97
108
  height: theme.vars.size.borderRadius["r0-5"],
98
109
  left: 0,
99
110
  top: -1,
100
- backgroundColor: ownerState.tabSkeleton ? theme.vars.palette.background.surface : ownerState.tabDisabled ? theme.vars.palette.background.surface : theme.vars.palette.primary.main,
111
+ backgroundColor: ownerState.tabSkeleton ? theme.vars.palette.skeleton.default : ownerState.tabDisabled ? theme.vars.palette.text.disabled : theme.vars.palette.primary.main,
101
112
  borderEndStartRadius: theme.vars.size.borderRadius["r1"],
102
113
  borderEndEndRadius: theme.vars.size.borderRadius["r1"],
103
114
  position: "absolute"
@@ -107,10 +118,10 @@ const tabStyles = {
107
118
  },
108
119
  "&:active": {
109
120
  background: theme.vars.palette.primary.activeOpacity,
110
- ".icon.M4lclassCssSpecificity div": {
121
+ ".M4LTab-icon div": {
111
122
  backgroundColor: theme.vars.palette.primary.active
112
123
  },
113
- "span": {
124
+ ".M4LTab-tipography": {
114
125
  color: theme.vars.palette.primary.active
115
126
  },
116
127
  "&::after": {
@@ -120,44 +131,18 @@ const tabStyles = {
120
131
  },
121
132
  "&.Mui-selected:focus-visible": {
122
133
  background: theme.vars.palette.primary.activeOpacity,
123
- "&::before": {
124
- zIndex: 1,
125
- content: '""',
126
- position: "absolute",
127
- top: `-${theme.size.baseSpacings.sp1}`,
128
- left: `-${theme.size.baseSpacings.sp1}`,
129
- right: `-${theme.size.baseSpacings.sp1}`,
130
- bottom: 0,
131
- boxSizing: "border-box",
132
- border: theme.vars.size.borderStroke.container,
133
- borderBottom: 0,
134
- borderColor: theme.vars.palette.primary.focusVisible,
135
- borderRadius: theme.vars.size.borderRadius["r1-5"],
136
- borderBottomRightRadius: 0,
137
- borderBottomLeftRadius: 0
138
- },
134
+ outline: "1px solid",
135
+ outlineOffset: "-1px",
136
+ color: theme.vars.palette[ownerState.tabColor || "default"].focusVisible,
139
137
  "&:hover": {
140
138
  backgroundColor: theme.vars.palette.primary.activeOpacity
141
139
  }
142
140
  },
143
141
  "&:focus-visible": {
144
142
  background: theme.vars.palette[ownerState.tabColor || "default"].activeOpacity,
145
- "&::before": {
146
- zIndex: 1,
147
- content: '""',
148
- position: "absolute",
149
- top: `-${theme.size.baseSpacings.sp1}`,
150
- left: `-${theme.size.baseSpacings.sp1}`,
151
- right: `-${theme.size.baseSpacings.sp1}`,
152
- bottom: 0,
153
- boxSizing: "border-box",
154
- border: theme.vars.size.borderStroke.container,
155
- borderBottom: 0,
156
- borderColor: theme.vars.palette[ownerState.tabColor || "default"].focusVisible,
157
- borderRadius: theme.vars.size.borderRadius["r1-5"],
158
- borderBottomRightRadius: 0,
159
- borderBottomLeftRadius: 0
160
- },
143
+ outline: "1px solid",
144
+ outlineOffset: "-1px",
145
+ color: theme.vars.palette[ownerState.tabColor || "default"].focusVisible,
161
146
  "&:hover": {
162
147
  backgroundColor: theme.vars.palette[ownerState.tabColor || "default"].activeOpacity
163
148
  }
@@ -172,12 +157,12 @@ const tabStyles = {
172
157
  * @updatedUser AndrΓ©s Quintero - automatic
173
158
  */
174
159
  tipography: ({ ownerState }) => ({
175
- "&.M4lclassCssSpecificity": {
176
- ...ownerState.tabSkeleton && {
177
- width: "32px !important"
178
- }
160
+ cursor: "pointer",
161
+ ...ownerState.tabSkeleton && {
162
+ width: "32px"
179
163
  }
180
- })
164
+ }),
165
+ icon: {}
181
166
  };
182
167
  export {
183
168
  tabStyles as t
@@ -2,13 +2,3 @@
2
2
  * Nombre de clase que se usa para dar identidad a los slots del componente.
3
3
  */
4
4
  export declare const TAB_KEY_COMPONENT = "M4LTab";
5
- /**
6
- * Nombre de clase creado para aportar especificidad a los estilos del componente. Es usado para sobreescribir los estilos de MUI sin
7
- * tener la necesidad de agregar valores en !important.
8
- */
9
- export declare const TAB_SPECIFY = "M4lclassCssSpecificity";
10
- /**
11
- *
12
- */
13
- export declare const TYPOGRAPHY_KEY = "tipography";
14
- export declare const ICON_KEY = "icon";
@@ -1,10 +1,4 @@
1
1
  const TAB_KEY_COMPONENT = "M4LTab";
2
- const TAB_SPECIFY = "M4lclassCssSpecificity";
3
- const TYPOGRAPHY_KEY = "tipography";
4
- const ICON_KEY = "icon";
5
2
  export {
6
- ICON_KEY as I,
7
- TAB_KEY_COMPONENT as T,
8
- TYPOGRAPHY_KEY as a,
9
- TAB_SPECIFY as b
3
+ TAB_KEY_COMPONENT as T
10
4
  };
@@ -1,5 +1,5 @@
1
- import { TabsProps } from '@mui/material';
1
+ import { TabsProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Componente `Tabs` usandon el `MuiTabs` de MUI.
4
4
  */
5
5
  export declare const Tabs: (props: TabsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
- import { u as useTabsUtilityClasses } from "./classes/index.js";
4
- import { M as MUITabs } from "./styles.js";
2
+ import { R as RootStyled } from "./slots/TabsSlots.js";
5
3
  const Tabs = (props) => {
6
4
  const { children, className, ...others } = props;
7
- const classes = useTabsUtilityClasses();
8
- return /* @__PURE__ */ jsx(MUITabs, { className: clsx(classes.root, className), ...others, children });
5
+ const ownerState = {};
6
+ return /* @__PURE__ */ jsx(RootStyled, { ownerState: { ownerState }, ...others, children });
9
7
  };
10
8
  export {
11
9
  Tabs as T
@@ -0,0 +1,2 @@
1
+ import { TabsStyles } from './types';
2
+ export declare const tabsStyles: TabsStyles;
@@ -0,0 +1,34 @@
1
+ const tabsStyles = {
2
+ /**
3
+ * Elemento root referencia a `MuiTabs` de MUI
4
+ */
5
+ root: ({ theme }) => ({
6
+ position: "relative",
7
+ zIndex: 2,
8
+ display: "flex",
9
+ overflow: "auto",
10
+ width: "100%",
11
+ height: "fit-content",
12
+ maxWidth: "fit-content",
13
+ minHeight: "fit-content",
14
+ background: theme.vars.palette.default.enabled,
15
+ paddingBottom: theme.vars.size.baseSpacings.sp0,
16
+ gap: theme.vars.size.baseSpacings.sp0,
17
+ borderRadius: theme.vars.size.borderRadius.r1,
18
+ borderBottomLeftRadius: theme.vars.size.borderRadius.r0,
19
+ borderBottomRightRadius: theme.vars.size.borderRadius.r0,
20
+ "& .MuiTabs-scroller": {
21
+ overflow: "visible !important"
22
+ },
23
+ "& .MuiTabs-indicator": {
24
+ display: "none"
25
+ },
26
+ "& .simplebar-content": {
27
+ display: "flex",
28
+ gap: theme.vars.size.baseSpacings.sp0
29
+ }
30
+ })
31
+ };
32
+ export {
33
+ tabsStyles as t
34
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * `TABS_KEY_COMPONENT` key para identificar el componente.
3
+ */
4
+ export declare const TABS_KEY_COMPONENT = "M4LTabs";
@@ -0,0 +1,4 @@
1
+ const TABS_KEY_COMPONENT = "M4LTabs";
2
+ export {
3
+ TABS_KEY_COMPONENT as T
4
+ };
@@ -0,0 +1,3 @@
1
+ export declare enum TabsSlots {
2
+ root = "root"
3
+ }
@@ -0,0 +1,7 @@
1
+ var TabsSlots = /* @__PURE__ */ ((TabsSlots2) => {
2
+ TabsSlots2["root"] = "root";
3
+ return TabsSlots2;
4
+ })(TabsSlots || {});
5
+ export {
6
+ TabsSlots as T
7
+ };
@@ -0,0 +1,5 @@
1
+ export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').TabsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
3
+ }, "children" | "value" | "action" | "style" | "variant" | "sx" | "classes" | "className" | "aria-label" | "aria-labelledby" | "onChange" | "slotProps" | "slots" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar">, "children" | "value" | "ref" | "title" | "id" | "action" | "hidden" | "color" | "content" | "style" | "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" | "slotProps" | "slots" | "key" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TabsProps> & Record<string, unknown> & {
4
+ ownerState: Partial<import('../types').TabsProps> & Record<string, unknown>;
5
+ }, {}, {}>;
@@ -0,0 +1,11 @@
1
+ import { styled, Tabs } from "@mui/material";
2
+ import { t as tabsStyles } from "../Tabs.styles.js";
3
+ import { T as TABS_KEY_COMPONENT } from "../constants.js";
4
+ import { T as TabsSlots } from "./TabsEnum.js";
5
+ const RootStyled = styled(Tabs, {
6
+ name: TABS_KEY_COMPONENT,
7
+ slot: TabsSlots.root
8
+ })(tabsStyles.root);
9
+ export {
10
+ RootStyled as R
11
+ };
@@ -0,0 +1,21 @@
1
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
+ import { TabsProps as MuiTabProps } from '@mui/material/Tabs';
3
+ import { TabsSlots } from './slots/TabsEnum';
4
+ import { TABS_KEY_COMPONENT } from './constants';
5
+ import { Theme } from '@mui/material';
6
+ /**
7
+ * Props for the tabs component.
8
+ */
9
+ export type TabsProps = MuiTabProps;
10
+ /**
11
+ * State for the tabs component.
12
+ */
13
+ export type TabsOwnerState = TabsProps;
14
+ /**
15
+ * Slots for the tabs component.
16
+ */
17
+ export type TabsSlotsType = typeof TabsSlots;
18
+ /**
19
+ * Styles for the tabs component overrides.
20
+ */
21
+ export type TabsStyles = OverridesStyleRules<TabsSlots, typeof TABS_KEY_COMPONENT, Theme>;
@@ -16,16 +16,18 @@ function Typography(props) {
16
16
  className,
17
17
  dataTestid,
18
18
  children,
19
+ disabled,
19
20
  ...other
20
21
  } = props;
21
22
  const isSkeleton = useModuleSkeleton();
22
23
  const { currentSize } = useComponentSize(size);
23
24
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
24
25
  const ownerState = {
25
- typographyColor: color,
26
- typographySize: adjustedSize,
27
- typographyskeletonRows: skeletonRows,
28
- typographyVariant: variant
26
+ disabled,
27
+ color,
28
+ size: adjustedSize,
29
+ skeletonRows,
30
+ variant
29
31
  };
30
32
  return /* @__PURE__ */ jsx(
31
33
  StyledMUITypography,
@@ -41,15 +41,18 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
41
41
  dataTestid?: string;
42
42
  /** Sirve para vincular un elemento de etiqueta con un elemento de formulario, como un campo de entrada, lo que permite que al hacer clic en el texto de la etiqueta, se active el campo correspondiente*/
43
43
  htmlFor?: string | undefined;
44
+ /** Si esta disabled, el texto pasa a text.disabled */
45
+ disabled?: boolean;
44
46
  }
45
47
  /**
46
48
  * Define valores de estado necesarios para estilar el componente.
47
49
  */
48
50
  export interface TypographyOwnerState {
49
- typographyColor: TypographyProps['color'];
50
- typographyVariant: TypographyProps['variant'];
51
- typographySize: TypographyProps['size'];
52
- typographyskeletonRows: TypographyProps['skeletonRows'];
51
+ disabled?: boolean;
52
+ color: TypographyProps['color'];
53
+ variant: TypographyProps['variant'];
54
+ size: TypographyProps['size'];
55
+ skeletonRows: TypographyProps['skeletonRows'];
53
56
  }
54
57
  /**
55
58
  * Agrupa la lista de slots del componente.
@@ -59,4 +62,4 @@ export type TypographySlotsType = keyof typeof TypographySlots;
59
62
  * Define las capacidades de estilos css disponibles para los slots del componente,
60
63
  * tambiΓ©n asocia la clase TYPOGRAPHY_KEY_COMPONENT a cada slot.
61
64
  */
62
- export type TypographyStyles = Partial<OverridesStyleRules<TypographySlotsType, typeof TYPOGRAPHY_KEY_COMPONENT, Theme> | undefined> | undefined;
65
+ export type TypographyStyles = OverridesStyleRules<TypographySlotsType, typeof TYPOGRAPHY_KEY_COMPONENT, Theme>;
@@ -14,27 +14,27 @@ const typographyStyles = {
14
14
  // Estilos generales 🌐
15
15
  // skeleton spacing when multiple rows 🦴
16
16
  fontFamily: theme.typography.fontFamily,
17
- ...ownerState.typographyskeletonRows && ownerState.typographyskeletonRows > 1 && {
17
+ ...ownerState.skeletonRows && ownerState.skeletonRows > 1 && {
18
18
  display: "flex",
19
19
  flexDirection: "column"
20
20
  },
21
21
  // Override de estilos generales de MUI 🚫
22
22
  // color text.primary 🎨
23
- ...ownerState.typographyColor === "text.primary" && {
23
+ ...ownerState.color === "text.primary" && {
24
24
  color: theme.vars.palette.text.primary
25
25
  },
26
26
  // color text.secondary 🎨
27
- ...ownerState.typographyColor === "text.secondary" && {
27
+ ...ownerState.color === "text.secondary" && {
28
28
  color: theme.vars.palette.text.secondary
29
29
  },
30
30
  // color text.disabled 🎨
31
- ...ownerState.typographyColor === "text.disabled" && {
31
+ ...(ownerState.disabled || ownerState.color === "text.disabled") && {
32
32
  color: theme.vars.palette.text.disabled
33
33
  },
34
34
  ...getTypographyStyles(
35
35
  theme.generalSettings.isMobile,
36
- ownerState.typographySize || "medium",
37
- ownerState.typographyVariant || "body"
36
+ ownerState.size || "medium",
37
+ ownerState.variant || "body"
38
38
  )
39
39
  }
40
40
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.1.60",
3
+ "version": "9.1.62",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
@@ -1 +0,0 @@
1
- export declare const componentName = "M4LTabs";
@@ -1,4 +0,0 @@
1
- const componentName = "M4LTabs";
2
- export {
3
- componentName as c
4
- };
@@ -1,9 +0,0 @@
1
- import { TabsClassesType } from './types';
2
- export declare const tabsClasses: TabsClassesType;
3
- export declare function getTabsUtilityClass(slot: string): string;
4
- /**
5
- * TODO: Documentar
6
- */
7
- export declare const useTabsUtilityClasses: () => {
8
- root: string;
9
- };
@@ -1,23 +0,0 @@
1
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
- import { unstable_composeClasses } from "@mui/base";
3
- import { c as componentName } from "./constants.js";
4
- generateUtilityClasses(componentName, [
5
- /* elements */
6
- "root"
7
- /* states or variants of elements */
8
- ]);
9
- function getTabsUtilityClass(slot) {
10
- return generateUtilityClass(componentName, slot);
11
- }
12
- const useTabsUtilityClasses = () => {
13
- const slots = {
14
- root: ["root"]
15
- };
16
- const composedClasses = unstable_composeClasses(slots, getTabsUtilityClass, {});
17
- return {
18
- ...composedClasses
19
- };
20
- };
21
- export {
22
- useTabsUtilityClasses as u
23
- };
@@ -1,6 +0,0 @@
1
- import { useTabsUtilityClasses } from '.';
2
- export interface TabsClassesType {
3
- root: string;
4
- }
5
- export type TabsClassesKey = keyof TabsClassesType;
6
- export type Classes = ReturnType<typeof useTabsUtilityClasses>;
@@ -1,3 +0,0 @@
1
- export declare const MUITabs: import('@emotion/styled').StyledComponent<import('@mui/material').TabsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
- ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
3
- }, "children" | "value" | "action" | "style" | "variant" | "sx" | "classes" | "className" | "aria-label" | "aria-labelledby" | "onChange" | "slotProps" | "slots" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,7 +0,0 @@
1
- import { styled, Tabs } from "@mui/material";
2
- const MUITabs = styled(Tabs)(({ theme }) => ({
3
- ...theme.components?.M4LTabs?.styleOverrides || {}
4
- }));
5
- export {
6
- MUITabs as M
7
- };