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/{CardProfile-DV3gwvqE.js → CardProfile-CHUivLbW.js} +8 -8
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +3 -3
- package/dist/CheckboxFormik.es.js +1 -1
- package/dist/DatePicker.es.js +2 -2
- package/dist/DrawerDesktop.es.js +8 -8
- package/dist/DropZone.es.js +1 -1
- package/dist/FAButton.es.js +1 -1
- package/dist/{HelperComponent-U6mPwuDH.js → HelperComponent-CcGxM09g.js} +1 -1
- package/dist/Icons/Icons.d.ts +60 -0
- package/dist/Icons-ChYkaR8R.js +899 -0
- package/dist/Icons.es.js +2 -891
- package/dist/{ImageGallery-D8nIvBpV.js → ImageGallery-TkgHO3JL.js} +1 -1
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-60IT1aGF.js → Input-CsNlU1Hu.js} +66 -73
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +33 -33
- package/dist/InputFormikV2.es.js +1 -1
- package/dist/InputMultiple.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/OtpInput.es.js +39 -39
- package/dist/RadioButton.es.js +1 -1
- package/dist/{Select-C4UvSsof.js → Select-D7Cs1OlG.js} +164 -164
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectFormikLegacy.es.js +8 -8
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Steps.es.js +1 -1
- package/dist/Toast.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +5 -5
- package/package.json +2 -5
package/dist/Select.es.js
CHANGED
package/dist/SelectFormik.es.js
CHANGED
|
@@ -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-
|
|
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 {
|
|
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
|
|
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:
|
|
9
|
-
name:
|
|
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] = $(
|
|
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 =
|
|
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:
|
|
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 =
|
|
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
|
{
|
package/dist/SelectSearch.es.js
CHANGED
|
@@ -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-
|
|
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 {
|
|
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 {
|
|
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 = {
|
package/dist/Tooltip.es.js
CHANGED
|
@@ -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 {
|
|
4
|
+
import { I as b } from "./Icons-ChYkaR8R.js";
|
|
5
5
|
const N = ({
|
|
6
6
|
title: i,
|
|
7
7
|
trigger: o,
|