@m4l/components 9.3.13-JT010925.beta.2 → 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.
@@ -17,6 +17,7 @@ function getComparator(columns, sortColumn) {
17
17
  return column.customSort;
18
18
  }
19
19
  switch (typeOrder) {
20
+ //Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
20
21
  case "number":
21
22
  return (a, b) => {
22
23
  try {
@@ -25,6 +26,7 @@ function getComparator(columns, sortColumn) {
25
26
  return -1;
26
27
  }
27
28
  };
29
+ //Por defecto retorna una función de ordenamiento de string
28
30
  default:
29
31
  return (a, b) => {
30
32
  try {
@@ -56,9 +56,11 @@ const useNumberInput = (parameters) => {
56
56
  (event, field, fieldValue, reason) => {
57
57
  if (field === "value" && typeof fieldValue !== "string") {
58
58
  switch (reason) {
59
+ // only a blur event will dispatch `numberInput:clamp`
59
60
  case "numberInput:inputChange":
60
61
  onChange?.(event, fieldValue);
61
62
  break;
63
+ // only a blur event will dispatch `numberInput:clamp`
62
64
  case "numberInput:clamp":
63
65
  onChange?.(event, fieldValue);
64
66
  break;
@@ -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 })
@@ -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
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
441
441
  bounds: {
442
442
  left: MARGIN_GRIDLAYOUT,
443
443
  top: MARGIN_GRIDLAYOUT,
444
- right: -10,
445
- bottom: -10
444
+ right: -MARGIN_GRIDLAYOUT,
445
+ bottom: -MARGIN_GRIDLAYOUT
446
446
  }
447
447
  });
448
448
  }
@@ -65,6 +65,11 @@ const RHFAutocompleteAsyncReducer = (onChangeFilterParms) => (state, action) =>
65
65
  ...state,
66
66
  isOpen: false
67
67
  };
68
+ // case actionsType.SET_SELECTED_OPTIONS_TO_AUTOCOMPLETE:
69
+ // return {
70
+ // ...state,
71
+ // selectedOptions: action.payload,
72
+ // };
68
73
  default:
69
74
  return state;
70
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.13-JT010925.beta.2",
3
+ "version": "9.3.13-JT02092025.beta.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {