prometeo-design-system 2.7.9 → 2.8.1

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.
package/dist/Select.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as f } from "./Select-C4UvSsof.js";
1
+ import { S as f } from "./Select-D7Cs1OlG.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { j as c } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { useField as y } from "formik";
3
- import { S as m } from "./Select-C4UvSsof.js";
3
+ import { S as m } from "./Select-D7Cs1OlG.js";
4
4
  import { useRef as p, useEffect as g } from "react";
5
5
  function f(e) {
6
6
  return Array.isArray(e) && e.every(
@@ -1,12 +1,12 @@
1
1
  import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
- import { Icons as g } from "./Icons.es.js";
2
+ import { I as g } from "./Icons-ChYkaR8R.js";
3
3
  import { c as d } from "./cn-B6yFEsav.js";
4
4
  import { useField as $, ErrorMessage as q } from "formik";
5
- import { memo as G, useState as k, useRef as H, useEffect as J } from "react";
5
+ import { memo as G, useState as V, useRef as H, useEffect as J } from "react";
6
6
  import K from "./Spinner.es.js";
7
7
  const Q = ({
8
- label: C,
9
- name: I,
8
+ label: k,
9
+ name: C,
10
10
  placeholder: b = "",
11
11
  disabled: j,
12
12
  containerClassName: S,
@@ -19,9 +19,9 @@ const Q = ({
19
19
  returnFullObject: m = !1
20
20
  // Por defecto false para mantener compatibilidad
21
21
  }) => {
22
- const [r, N, u] = $(I), [l, x] = k(!1), [p, A] = k(!1), h = H(null), v = N.touched && N.error, o = (e) => e ? typeof e == "object" && e.id !== void 0 ? e.id : e : null, V = () => r.value ? Array.isArray(r.value) ? r.value.map(o) : o(r.value) : i ? [] : null, f = r.value && (Array.isArray(r.value) ? r.value.length > 0 : typeof r.value == "object" ? r.value.id : r.value?.toString().length > 0), O = () => w === "static" || f || l || p ? "-top-3 left-2 scale-90" : "top-1/2 -translate-y-1/2 scale-100", L = () => {
22
+ const [r, N, u] = $(C), [l, x] = V(!1), [p, A] = V(!1), h = H(null), v = N.touched && N.error, o = (e) => e ? typeof e == "object" && e.id !== void 0 ? e.id : e : null, I = () => r.value ? Array.isArray(r.value) ? r.value.map(o) : o(r.value) : i ? [] : null, f = r.value && (Array.isArray(r.value) ? r.value.length > 0 : typeof r.value == "object" ? r.value.id : r.value?.toString().length > 0), O = () => w === "static" || f || l || p ? "-top-3 left-2 scale-90" : "top-1/2 -translate-y-1/2 scale-100", L = () => {
23
23
  if (!r.value) return [];
24
- const e = V();
24
+ const e = I();
25
25
  return Array.isArray(e) ? c.filter((a) => e.includes(a.id)) : c.filter((a) => a.id === e);
26
26
  }, P = (e) => {
27
27
  if (i) {
@@ -116,7 +116,7 @@ const Q = ({
116
116
  f || l || p ? "text-primary-default-default" : v ? "text-red-500" : "text-neutral-medium-default",
117
117
  "left-3"
118
118
  ),
119
- children: C
119
+ children: k
120
120
  }
121
121
  ),
122
122
  /* @__PURE__ */ t.jsx("div", { className: "flex-1 min-w-0", children: R() }),
@@ -148,7 +148,7 @@ const Q = ({
148
148
  }
149
149
  ),
150
150
  l && /* @__PURE__ */ t.jsx("div", { className: "absolute z-50 w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-md shadow-lg max-h-60 overflow-auto", children: c.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "px-3 py-2 text-neutral-medium-default", children: z }) : c.map((e) => {
151
- const a = V(), s = i ? Array.isArray(a) && a.includes(e.id) : a === e.id;
151
+ const a = I(), s = i ? Array.isArray(a) && a.includes(e.id) : a === e.id;
152
152
  return /* @__PURE__ */ t.jsxs(
153
153
  "div",
154
154
  {
@@ -1,5 +1,5 @@
1
1
  import { j as G } from "./jsx-runtime-DKDX3adD.js";
2
- import { g as i, S as H } from "./Select-C4UvSsof.js";
2
+ import { g as i, S as H } from "./Select-D7Cs1OlG.js";
3
3
  import { useState as T, useRef as I, useEffect as h, useMemo as Q, useCallback as X } from "react";
4
4
  function te(e) {
5
5
  const {
package/dist/Steps.es.js CHANGED
@@ -2,7 +2,7 @@ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as j } from "./cn-B6yFEsav.js";
3
3
  import { motion as r } from "framer-motion";
4
4
  import N from "react";
5
- import { Icons as y } from "./Icons.es.js";
5
+ import { I as y } from "./Icons-ChYkaR8R.js";
6
6
  const b = ({
7
7
  index: n,
8
8
  isHorizontal: t,
package/dist/Toast.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import b from "react";
3
3
  import { toast as p } from "sonner";
4
- import { Icons as m } from "./Icons.es.js";
4
+ import { I as m } from "./Icons-ChYkaR8R.js";
5
5
  import { c as s } from "./cn-B6yFEsav.js";
6
6
  import u from "./Button.es.js";
7
7
  const x = {
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { AnimatePresence as f, motion as n } from "framer-motion";
3
3
  import { useState as p, cloneElement as x } from "react";
4
- import { Icons as b } from "./Icons.es.js";
4
+ import { I as b } from "./Icons-ChYkaR8R.js";
5
5
  const N = ({
6
6
  title: i,
7
7
  trigger: o,