@m4l/components 9.3.24-JT04112025.beta.2 → 9.3.24-JT04112025.beta.3

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.
@@ -2,13 +2,13 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { getPropertyByString } from "@m4l/core";
3
3
  import { T as TagsFormatter } from "../../../formatters/TagsFormatter/TagsFormatter.js";
4
4
  const ColumnTagsFormatter = (props) => {
5
- const { fieldTags, size, className } = props;
5
+ const { fieldValue } = props;
6
6
  return (renderProps) => {
7
7
  const tags = getPropertyByString(
8
8
  renderProps.row,
9
- fieldTags.toString()
9
+ fieldValue.toString()
10
10
  );
11
- return /* @__PURE__ */ jsx(TagsFormatter, { tags, size, className });
11
+ return /* @__PURE__ */ jsx(TagsFormatter, { tags });
12
12
  };
13
13
  };
14
14
  export {
@@ -1,5 +1,5 @@
1
1
  import { DeepKeyOf } from '../../../../utils/types';
2
2
  import { TagsFormatterProps } from '../../../formatters/TagsFormatter/types';
3
- export interface ColumnTagsFormatterProps<TRow> extends Pick<TagsFormatterProps, 'size' | 'className'> {
4
- fieldTags: DeepKeyOf<TRow>;
3
+ export interface ColumnTagsFormatterProps<TRow> extends Pick<TagsFormatterProps, 'tags'> {
4
+ fieldValue: DeepKeyOf<TRow>;
5
5
  }
@@ -4,11 +4,11 @@ import { g as getColumnKey } from "../../helpers/getColumnKey.js";
4
4
  import { deepEqual } from "fast-equals";
5
5
  import { useState, useRef, useEffect, useMemo } from "react";
6
6
  const getCustomTagFilter = (props) => {
7
- const { fieldTags } = props;
7
+ const { fieldValue } = props;
8
8
  return (row, value) => {
9
9
  const tags = getPropertyByString(
10
10
  row,
11
- getColumnKey(fieldTags),
11
+ getColumnKey(fieldValue),
12
12
  null
13
13
  );
14
14
  if (!tags) {
@@ -24,12 +24,12 @@ const getCustomTagSort = (props) => {
24
24
  return (a, b) => {
25
25
  const tagsA = getPropertyByString(
26
26
  a,
27
- getColumnKey(props.fieldTags),
27
+ getColumnKey(props.fieldValue),
28
28
  null
29
29
  );
30
30
  const tagsB = getPropertyByString(
31
31
  b,
32
- getColumnKey(props.fieldTags),
32
+ getColumnKey(props.fieldValue),
33
33
  null
34
34
  );
35
35
  const firstLabelA = tagsA ? Array.isArray(tagsA) ? tagsA[0]?.label : tagsA.label : "";
@@ -17,7 +17,7 @@ const Tag = (props) => {
17
17
  );
18
18
  if (!validateHexColor(backgroundColor)) {
19
19
  console.error(
20
- `Color no válido: "${backgroundColor}". Color debe ser un color hexadecimal.`
20
+ `backgroundColor no válido: "${backgroundColor}". backgroundColor debe ser un color hexadecimal.`
21
21
  );
22
22
  return null;
23
23
  }
@@ -0,0 +1 @@
1
+ export { Tag } from './Tag';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.24-JT04112025.beta.2",
3
+ "version": "9.3.24-JT04112025.beta.3",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {