prometeo-design-system 3.0.1 → 3.0.4

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,7 +2,7 @@ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as l } from "./cn-B6yFEsav.js";
3
3
  import { motion as i, AnimatePresence as c } from "framer-motion";
4
4
  import u from "./Avatar.es.js";
5
- import { ChevronDown as m, Logout as f } from "./Icons.es.js";
5
+ import { g as m, L as f } from "./Icons-BJgYCS_W.js";
6
6
  function x({
7
7
  sessions: t,
8
8
  handleTokenLogin: a
@@ -12,8 +12,8 @@ function x({
12
12
  {
13
13
  className: "w-full ",
14
14
  onClick: () => a?.(r.token),
15
- children: /* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx(
16
- o.Content,
15
+ children: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
16
+ s.Content,
17
17
  {
18
18
  onClick: () => {
19
19
  console.log("hola");
@@ -22,7 +22,7 @@ function x({
22
22
  nameUser: r.name,
23
23
  nameArea: r?.areaId?.name,
24
24
  nameCompany: r.companyId.name,
25
- cardProfile: /* @__PURE__ */ e.jsx(o.Image, { isExpanded: !1 })
25
+ cardProfile: /* @__PURE__ */ e.jsx(s.Image, { isExpanded: !1 })
26
26
  }
27
27
  ) })
28
28
  },
@@ -168,7 +168,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
168
168
  )
169
169
  ]
170
170
  }
171
- ) }), j = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper ml-1", children: /* @__PURE__ */ e.jsx(
171
+ ) }), g = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper ml-1", children: /* @__PURE__ */ e.jsx(
172
172
  u,
173
173
  {
174
174
  imageUrl: t,
@@ -176,12 +176,12 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
176
176
  sizeFallback: "xs",
177
177
  fallbackText: a
178
178
  }
179
- ) }), g = ({
179
+ ) }), j = ({
180
180
  isExpanded: t,
181
181
  nameUser: a,
182
182
  nameCompany: r,
183
183
  nameArea: n,
184
- cardProfile: s,
184
+ cardProfile: o,
185
185
  onClick: d
186
186
  }) => /* @__PURE__ */ e.jsxs(
187
187
  i.button,
@@ -198,7 +198,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
198
198
  whileTap: { scale: 0.98 },
199
199
  transition: { duration: 0.2, ease: "easeInOut" },
200
200
  children: [
201
- s,
201
+ o,
202
202
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2", children: [
203
203
  /* @__PURE__ */ e.jsx(
204
204
  "p",
@@ -265,14 +265,14 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
265
265
  }
266
266
  )
267
267
  }
268
- ), o = Object.assign(h, {
268
+ ), s = Object.assign(h, {
269
269
  Menu: p,
270
- Image: j,
271
- Content: g,
270
+ Image: g,
271
+ Content: j,
272
272
  Separator: v,
273
273
  Options: y
274
274
  });
275
275
  export {
276
- o as C,
276
+ s as C,
277
277
  x as a
278
278
  };
@@ -1,4 +1,4 @@
1
- import { C as e, C as f } from "./CardProfile-WHoeSibd.js";
1
+ import { C as e, C as f } from "./CardProfile-DUBuThnz.js";
2
2
  export {
3
3
  e as CardProfile,
4
4
  f as default
@@ -1,9 +1,9 @@
1
1
  import { j as a } from "./jsx-runtime-DKDX3adD.js";
2
- import { Check as m } from "./Icons.es.js";
3
- import { memo as k, forwardRef as g, useId as v, useRef as C, useCallback as y } from "react";
4
- const s = g(
2
+ import { C as m } from "./Icons-BJgYCS_W.js";
3
+ import { memo as k, forwardRef as C, useId as g, useRef as v, useCallback as y } from "react";
4
+ const s = C(
5
5
  ({ className: l, disabled: e, onChange: i, value: d, ...t }, r) => {
6
- const u = v(), o = C(null), f = `
6
+ const u = g(), o = v(null), f = `
7
7
  after:content-[""]
8
8
  after:absolute
9
9
  after:top-1/2
@@ -1,10 +1,10 @@
1
1
  import { j as Q } from "./jsx-runtime-DKDX3adD.js";
2
2
  import h, { createContext as mn, useContext as hn, useCallback as q, useRef as Pe, useLayoutEffect as yn, useState as ke, useEffect as Fe, useMemo as ue, memo as pn } from "react";
3
3
  import gn from "./InputMultiple.es.js";
4
- import { I as wn } from "./Input-Cf8P1QJv.js";
4
+ import { I as wn } from "./Input-ZXkhyFlL.js";
5
5
  import { createPortal as bn } from "react-dom";
6
6
  import { c as Qe } from "./cn-B6yFEsav.js";
7
- import { Calendar as Ot } from "./Icons.es.js";
7
+ import { i as Ot } from "./Icons-BJgYCS_W.js";
8
8
  import St from "./Button.es.js";
9
9
  function Mn(e, t, n = "long") {
10
10
  return new Intl.DateTimeFormat("en-US", {
@@ -1,4 +1,4 @@
1
- import { D as r, D as t } from "./DatePicker-CbXUUnv7.js";
1
+ import { D as r, D as t } from "./DatePicker-CzpFYO6L.js";
2
2
  export {
3
3
  r as DatePicker,
4
4
  t as default
@@ -3,7 +3,7 @@ import { c as k } from "./cn-B6yFEsav.js";
3
3
  import { c as O } from "./index-BOQuZ0gG.js";
4
4
  import { createPortal as T } from "react-dom";
5
5
  import { forwardRef as I, useRef as m, useState as R, useEffect as l, useCallback as w, useImperativeHandle as V } from "react";
6
- import { Close as P } from "./Icons.es.js";
6
+ import { a as P } from "./Icons-BJgYCS_W.js";
7
7
  import B from "./Button.es.js";
8
8
  const L = I((t, i) => {
9
9
  const s = m(null), [e, u] = R(t.defaultOpen || !1), [r, o] = R(null), d = m(t.onClose), a = m(r), p = m(/* @__PURE__ */ new Set()), {
@@ -1,8 +1,8 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { Error as P, Upload as R } from "./Icons.es.js";
2
+ import { E as P, o as R } from "./Icons-BJgYCS_W.js";
3
3
  import { c as i } from "./cn-B6yFEsav.js";
4
- import z, { useCallback as w } from "react";
5
- import { useDropzone as E } from "react-dropzone";
4
+ import z, { useCallback as E } from "react";
5
+ import { useDropzone as w } from "react-dropzone";
6
6
  const q = z.forwardRef(
7
7
  ({
8
8
  onFilesAccepted: d,
@@ -17,7 +17,7 @@ const q = z.forwardRef(
17
17
  maxFiles: g = 1,
18
18
  ...j
19
19
  }, N) => {
20
- const b = w((s, o) => {
20
+ const b = E((s, o) => {
21
21
  s.length > 0 && d?.(s), o.length > 0 && m?.(o);
22
22
  }, [d, m]), {
23
23
  getRootProps: y,
@@ -25,7 +25,7 @@ const q = z.forwardRef(
25
25
  isDragActive: a,
26
26
  isDragReject: r,
27
27
  fileRejections: n
28
- } = E({
28
+ } = w({
29
29
  onDrop: b,
30
30
  accept: v,
31
31
  maxFiles: g,
@@ -1,7 +1,7 @@
1
1
  import { j as c } from "./jsx-runtime-DKDX3adD.js";
2
2
  import u, { memo as n } from "react";
3
3
  import { c as f } from "./cn-B6yFEsav.js";
4
- import { Add as v } from "./Icons.es.js";
4
+ import { m as v } from "./Icons-BJgYCS_W.js";
5
5
  import { createPortal as m } from "react-dom";
6
6
  import { c as b } from "./index-BOQuZ0gG.js";
7
7
  const h = {
@@ -1,8 +1,8 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { memo as i } from "react";
3
- import { c as r } from "./cn-B6yFEsav.js";
4
- import { Check as o, Error as n, Info as d } from "./Icons.es.js";
5
- const a = (s) => {
3
+ import { c as a } from "./cn-B6yFEsav.js";
4
+ import { C as o, E as n, I as d } from "./Icons-BJgYCS_W.js";
5
+ const r = (s) => {
6
6
  const { variant: t, className: m } = s, l = {
7
7
  default: "text-neutral-medium-default pt-[1px]",
8
8
  error: "text-error-medium-default pt-[1px]",
@@ -12,13 +12,13 @@ const a = (s) => {
12
12
  error: /* @__PURE__ */ e.jsx(n, { size: 16, className: "text-error-medium-default" }),
13
13
  success: /* @__PURE__ */ e.jsx(o, { size: 16, className: "text-success-medium-default" })
14
14
  };
15
- return /* @__PURE__ */ e.jsx("div", { ref: s.ref, className: r("pl-3 mt-1", m), children: typeof s.children == "string" ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-0.5 items-start", children: [
15
+ return /* @__PURE__ */ e.jsx("div", { ref: s.ref, className: a("pl-3 mt-1", m), children: typeof s.children == "string" ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-0.5 items-start", children: [
16
16
  c[t],
17
- /* @__PURE__ */ e.jsx("p", { className: r(" prometeo-fonts-body-small", l[t]), children: s.children })
17
+ /* @__PURE__ */ e.jsx("p", { className: a(" prometeo-fonts-body-small", l[t]), children: s.children })
18
18
  ] }) : s.children });
19
19
  };
20
- a.displayName = "HelperText";
21
- const j = i(a);
20
+ r.displayName = "HelperText";
21
+ const j = i(r);
22
22
  export {
23
23
  j as H
24
24
  };
@@ -0,0 +1,2 @@
1
+ export * from '../exports/Icons'
2
+ export {}
@@ -0,0 +1,7 @@
1
+ import { B as s, e, H as r, L as H } from "../Icons-BJgYCS_W.js";
2
+ export {
3
+ s as Boards,
4
+ e as Help,
5
+ r as Home,
6
+ H as Logout
7
+ };