@m4l/components 9.3.13-JT02092025.beta.1 → 9.3.13-JT02092025.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.
@@ -1,5 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useMemo, Children, isValidElement, cloneElement } from "react";
3
+ import clsx from "clsx";
3
4
  import { useFlagsPresent, CommonFlags } from "@m4l/core";
4
5
  import { S as StepperRootStyled, C as ContentSectionStyled } from "./slots/StepperSlot.js";
5
6
  import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
@@ -12,7 +13,7 @@ import { S as StepperContent } from "./subcomponents/StepperContent/index.js";
12
13
  import { u as useStickyStepperFooter } from "./hooks/useStickyStepperFooter/index.js";
13
14
  import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
14
15
  function Stepper(props) {
15
- const { orientation, size, children } = props;
16
+ const { orientation, size, children, className } = props;
16
17
  const { currentSize } = useComponentSize(size);
17
18
  const containerRef = useRef(null);
18
19
  const contentSectionRef = useRef(null);
@@ -64,7 +65,7 @@ function Stepper(props) {
64
65
  if (!hasPresentFlags) {
65
66
  return null;
66
67
  }
67
- return /* @__PURE__ */ jsx(StepperProvider, { ...props, children: /* @__PURE__ */ jsxs(StepperRootStyled, { className: classRoot, children: [
68
+ return /* @__PURE__ */ jsx(StepperProvider, { ...props, children: /* @__PURE__ */ jsxs(StepperRootStyled, { className: clsx(classRoot, className), children: [
68
69
  /* @__PURE__ */ jsxs(ContentSectionStyled, { ownerState, children: [
69
70
  /* @__PURE__ */ jsx(StepArea, {}),
70
71
  /* @__PURE__ */ jsx(ContentArea, { children: stepperContent })
@@ -8,7 +8,7 @@ const stepperStyles = {
8
8
  display: "flex",
9
9
  flexDirection: "column",
10
10
  justifyContent: ownerState?.stepperFooterSticky ? "flex-start" : "space-between",
11
- background: "red",
11
+ background: theme.vars.palette.background.default,
12
12
  width: "100%",
13
13
  height: "100%",
14
14
  borderRadius: theme.vars.size.borderRadius.r1
@@ -138,12 +138,6 @@ const stepperStyles = {
138
138
  const isLastStep = step === totalSteps - 1;
139
139
  const isValidStep = ownerState?.stepValidationStatus?.[step] ?? true;
140
140
  return {
141
- ...getSizeStyles(theme, ownerState?.size || "medium", "case", (size) => {
142
- return {
143
- width: size,
144
- height: size
145
- };
146
- }),
147
141
  ...ownerState?.orientation === "horizontal" ? {
148
142
  marginTop: theme.generalSettings.isMobile ? "6px" : theme.vars.size.baseSpacings.sp1
149
143
  } : {},
@@ -169,7 +163,11 @@ const stepperStyles = {
169
163
  height: theme.vars.size.baseSpacings.sp12,
170
164
  borderLeft: `1px ${isCompleted ? "solid" : "dashed"} ${isCompleted ? theme.vars.palette.primary.enabled : theme.vars.palette.border.default}`
171
165
  }
172
- }
166
+ },
167
+ ...getSizeStyles(theme, ownerState?.size || "medium", "case", (size) => ({
168
+ width: size,
169
+ height: size
170
+ }))
173
171
  };
174
172
  },
175
173
  /**
@@ -78,6 +78,10 @@ export interface StepperProps {
78
78
  * Tamaño del componente, puede ser uno de los valores definidos en 'small' , 'medium'
79
79
  */
80
80
  size?: Extract<Sizes, 'small' | 'medium'>;
81
+ /**
82
+ * Clase personalizada para el Stepper.
83
+ */
84
+ className?: string;
81
85
  }
82
86
  /**
83
87
  * Props del StepperContent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.13-JT02092025.beta.1",
3
+ "version": "9.3.13-JT02092025.beta.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {