prometeo-design-system 1.9.5 → 1.9.6

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/Avatar.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as p } from "./cn-B6yFEsav.js";
3
3
  import { motion as f } from "framer-motion";
4
4
  import { useState as u } from "react";
package/dist/Button.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as o } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import { c as N } from "./index-BOQuZ0gG.js";
4
4
  import { useAnimationControls as k, motion as y } from "framer-motion";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as l } from "./cn-B6yFEsav.js";
3
3
  import { motion as i, AnimatePresence as u } from "framer-motion";
4
4
  import m from "./Avatar.es.js";
@@ -1,4 +1,4 @@
1
- import { C as a } from "./CardProfile-Bg_q2qMm.js";
1
+ import { C as a } from "./CardProfile-BZajBGbO.js";
2
2
  export {
3
3
  a as CardProfile
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as l } from "./Icons.es.js";
3
3
  import { useId as o, useRef as d } from "react";
4
4
  const k = ({ className: s, disabled: e, ...a }) => {
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as x } from "./Icons.es.js";
3
3
  import { c as r } from "./cn-B6yFEsav.js";
4
4
  import { useField as h, ErrorMessage as p } from "formik";
@@ -1,46 +1,40 @@
1
- import { j as s } from "./jsx-runtime-DKDX3adD.js";
2
- import { forwardRef as f, useState as g, useCallback as x, useMemo as m, useImperativeHandle as j, useRef as D } from "react";
3
- import { c as d } from "./cn-B6yFEsav.js";
4
- const u = f(
5
- ({ children: e, onClose: o, className: r }, l) => {
6
- const [t, a] = g(!1), i = x(() => a(!0), []), n = () => {
7
- a(!1), o?.();
8
- }, c = m(
9
- () => ({
10
- open: i,
11
- close: n,
12
- isOpen: t
13
- }),
14
- [i, n, t]
15
- );
16
- return j(l, () => c, [c]), /* @__PURE__ */ s.jsx(s.Fragment, { children: t && /* @__PURE__ */ s.jsx(
17
- "div",
18
- {
19
- className: "fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-[1.5px]",
20
- onClick: n,
21
- children: /* @__PURE__ */ s.jsx(
22
- "div",
23
- {
24
- className: d(
25
- "bg-neutral-default-default w-3/4 h-3/4 xl:w-3/4 xl:h-10/12 rounded-lg shadow-lg border-neutral-strong-default border relative p-6",
26
- r
27
- ),
28
- onClick: (p) => p.stopPropagation(),
29
- children: e
30
- }
31
- )
32
- }
33
- ) });
34
- }
35
- ), b = ({ children: e, className: o }) => /* @__PURE__ */ s.jsx("div", { className: o, children: /* @__PURE__ */ s.jsx("div", { className: d("flex flex-col gap-4"), children: e }) }), h = ({ children: e, className: o }) => /* @__PURE__ */ s.jsx("h1", { className: o, children: e }), v = ({ children: e, className: o }) => /* @__PURE__ */ s.jsx("div", { className: o, children: e }), C = ({ children: e, className: o }) => /* @__PURE__ */ s.jsx("div", { className: o, children: e }), N = Object.assign(u, {
36
- Content: b,
37
- Header: v,
38
- Footer: C,
39
- Title: h
40
- });
41
- u.displayName = "Dialog";
42
- const R = () => {
43
- const e = D(null);
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { forwardRef as u, useState as p, useImperativeHandle as f, useRef as g } from "react";
3
+ import { c as i } from "./cn-B6yFEsav.js";
4
+ const x = u(({
5
+ children: e,
6
+ onClose: o,
7
+ className: s
8
+ }, n) => {
9
+ const [r, l] = p(!1), c = () => l(!0), a = () => {
10
+ l(!1), o?.();
11
+ };
12
+ return f(n, () => ({
13
+ open: c,
14
+ close: a,
15
+ isOpen: r
16
+ })), /* @__PURE__ */ t.jsx(t.Fragment, { children: r && /* @__PURE__ */ t.jsx(
17
+ "div",
18
+ {
19
+ className: "fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-[1.5px]",
20
+ onClick: a,
21
+ children: /* @__PURE__ */ t.jsx(
22
+ "div",
23
+ {
24
+ className: i("bg-neutral-default-default w-3/4 h-3/4 xl:w-3/4 xl:h-10/12 rounded-lg shadow-lg border-neutral-strong-default border relative p-6", s),
25
+ onClick: (d) => d.stopPropagation(),
26
+ children: e
27
+ }
28
+ )
29
+ }
30
+ ) });
31
+ }), m = ({ children: e, className: o }) => /* @__PURE__ */ t.jsx("div", { className: o, children: /* @__PURE__ */ t.jsx("div", { className: i("flex flex-col gap-4"), children: e }) }), j = ({ children: e, className: o }) => /* @__PURE__ */ t.jsx("h1", { className: o, children: e }), D = ({ children: e, className: o }) => /* @__PURE__ */ t.jsx("div", { className: o, children: e }), b = ({ children: e, className: o }) => /* @__PURE__ */ t.jsx("div", { className: o, children: e }), C = Object.assign(x, {
32
+ Content: m,
33
+ Header: D,
34
+ Footer: b,
35
+ Title: j
36
+ }), k = () => {
37
+ const e = g(null);
44
38
  return {
45
39
  ref: e,
46
40
  open: () => {
@@ -53,6 +47,6 @@ const R = () => {
53
47
  };
54
48
  };
55
49
  export {
56
- N as default,
57
- R as useDialogControl
50
+ C as default,
51
+ k as useDialogControl
58
52
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as j } from "./Icons.es.js";
3
3
  import { c as m } from "./cn-B6yFEsav.js";
4
4
  import { c as d } from "./index-BOQuZ0gG.js";
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { forwardRef as O, useState as g, useRef as x, useCallback as t, useImperativeHandle as D } from "react";
3
3
  import { Drawer as n } from "vaul";
4
4
  import { c as R } from "./cn-B6yFEsav.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as i } from "./cn-B6yFEsav.js";
3
3
  import w, { useCallback as z } from "react";
4
4
  import { useDropzone as R } from "react-dropzone";
package/dist/Header.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import { motion as i } from "framer-motion";
4
4
  import { memo as m } from "react";
package/dist/Icons.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as q } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as q } from "./jsx-runtime-ByW6EXIE.js";
2
2
  const l = ({
3
3
  size: t = 24,
4
4
  className: h,
package/dist/Input.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as O } from "./Icons.es.js";
3
3
  import { c as e } from "./cn-B6yFEsav.js";
4
4
  import { memo as ue, useState as N, useRef as ce, useCallback as fe, useEffect as $, useLayoutEffect as ie } from "react";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as u } from "./cn-B6yFEsav.js";
3
3
  import { FastField as O, ErrorMessage as q } from "formik";
4
4
  import { memo as G, useState as I, useRef as H, useCallback as y, useLayoutEffect as J } from "react";
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as E } from "./Icons.es.js";
3
3
  import { c as d } from "./cn-B6yFEsav.js";
4
4
  import M, { useRef as D, useState as p, useCallback as W, useEffect as X } from "react";
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { useRef as a, createContext as i, useContext as u, memo as c } from "react";
3
3
  const o = i(null), l = ({ children: e }) => {
4
4
  const r = a(null), s = (n) => {
@@ -1,4 +1,4 @@
1
- import { L as f } from "./LayoutGeneric-p4Pll4Cm.js";
1
+ import { L as f } from "./LayoutGeneric-jDE96L2N.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/Logo.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as t } from "./Icons.es.js";
3
3
  const s = () => /* @__PURE__ */ e.jsxs("div", { className: "container-logo flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
4
4
  /* @__PURE__ */ e.jsx(t.TicketFilled, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
package/dist/Menu.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as r } from "./cn-B6yFEsav.js";
3
3
  import { AnimatePresence as n, motion as o } from "framer-motion";
4
4
  const s = ({ menuRef: t, children: a, className: i }) => /* @__PURE__ */ e.jsx("div", { ref: t, className: r("flex bg-neutral-default-default absolute bottom-10 left-24 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2", i), children: /* @__PURE__ */ e.jsx(n, { mode: "wait", children: /* @__PURE__ */ e.jsx(
@@ -1,4 +1,4 @@
1
- import { j as p } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as p } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as ve } from "./Icons.es.js";
3
3
  import { c as L } from "./cn-B6yFEsav.js";
4
4
  import * as n from "react";
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as a } from "framer-motion";
3
3
  function h({
4
4
  currentPage: i = 1,
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as i, AnimatePresence as E } from "framer-motion";
3
3
  import { useRef as v, useState as R, useLayoutEffect as A } from "react";
4
4
  import H from "./Avatar.es.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import u from "react";
4
4
  const j = u.forwardRef(
package/dist/Select.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as w } from "./Icons.es.js";
3
3
  import { c as o } from "./cn-B6yFEsav.js";
4
4
  import { memo as se, useState as y, useRef as re, useEffect as oe } from "react";
@@ -1,41 +1,41 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
- import { Icons as v } from "./Icons.es.js";
3
- import { c as o } from "./cn-B6yFEsav.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { Icons as h } from "./Icons.es.js";
3
+ import { c as i } from "./cn-B6yFEsav.js";
4
4
  import { useField as P, ErrorMessage as M } from "formik";
5
5
  import { useState as w, useRef as R, useEffect as L } from "react";
6
6
  import B from "./Spinner.es.js";
7
7
  const T = ({
8
8
  label: N,
9
9
  name: A,
10
- placeholder: b = "",
11
- disabled: c,
10
+ placeholder: v = "",
11
+ disabled: g,
12
12
  containerClassName: k,
13
13
  className: C,
14
- options: u = [],
14
+ options: o = [],
15
15
  multiple: n = !1,
16
16
  emptyMessage: D = "No hay opciones disponibles",
17
- labelVariant: g = "default",
17
+ labelVariant: b = "default",
18
18
  isFetching: O = !1
19
19
  }) => {
20
- const [a, y, i] = P(A), [l, f] = w(!1), [m, j] = w(!1), x = R(null), p = y.touched && y.error, d = a.value && (Array.isArray(a.value) ? a.value.length > 0 : a.value.toString().length > 0), S = () => g === "static" || d || l || m ? "-top-3 left-2 scale-90" : "top-1/2 -translate-y-1/2 scale-100", V = () => a.value ? Array.isArray(a.value) ? u.filter((e) => a.value.includes(e.id)) : u.filter((e) => e.id === a.value) : [], z = (e) => {
20
+ const [r, y, u] = P(A), [l, c] = w(!1), [f, j] = w(!1), m = R(null), x = y.touched && y.error, d = r.value && (Array.isArray(r.value) ? r.value.length > 0 : r.value.toString().length > 0), S = () => b === "static" || d || l || f ? "-top-3 left-2 scale-90" : "top-1/2 -translate-y-1/2 scale-100", V = () => r.value ? Array.isArray(r.value) ? o.filter((e) => r.value.includes(e.id)) : o.filter((e) => e.id === r.value) : [], z = (e) => {
21
21
  if (n) {
22
- const r = Array.isArray(a.value) ? a.value : [], s = r.includes(e.id) ? r.filter((h) => h !== e.id) : [...r, e.id];
23
- i.setValue(s);
22
+ const a = Array.isArray(r.value) ? r.value : [], s = a.includes(e.id) ? a.filter((p) => p !== e.id) : [...a, e.id];
23
+ u.setValue(s);
24
24
  } else
25
- i.setValue(e.id), f(!1);
25
+ u.setValue(e.id), c(!1);
26
26
  }, E = (e) => {
27
- e.stopPropagation(), i.setValue(n ? [] : "");
28
- }, F = (e, r) => {
29
- if (r?.stopPropagation(), n && Array.isArray(a.value)) {
30
- const s = a.value.filter(
31
- (h) => h !== e
27
+ e.stopPropagation(), u.setValue(n ? [] : "");
28
+ }, F = (e, a) => {
29
+ if (a?.stopPropagation(), n && Array.isArray(r.value)) {
30
+ const s = r.value.filter(
31
+ (p) => p !== e
32
32
  );
33
- i.setValue(s);
33
+ u.setValue(s);
34
34
  }
35
35
  };
36
36
  L(() => {
37
- const e = (r) => {
38
- x.current && !x.current.contains(r.target) && f(!1);
37
+ const e = (a) => {
38
+ m.current && !m.current.contains(a.target) && c(!1);
39
39
  };
40
40
  return l && document.addEventListener("mousedown", e), () => {
41
41
  document.removeEventListener("mousedown", e);
@@ -43,61 +43,59 @@ const T = ({
43
43
  }, [l]);
44
44
  const I = () => {
45
45
  const e = V();
46
- return e.length === 0 ? b ? /* @__PURE__ */ t.jsx("span", { className: "text-neutral-medium-default opacity-50", children: b }) : null : n ? /* @__PURE__ */ t.jsx("div", { className: "flex items-center gap-1 flex-wrap py-1", children: e.map((r) => /* @__PURE__ */ t.jsxs(
46
+ return e.length === 0 ? v ? /* @__PURE__ */ t.jsx("span", { className: "text-neutral-medium-default opacity-50", children: v }) : null : n ? /* @__PURE__ */ t.jsx("div", { className: "flex items-center gap-1 flex-wrap py-1", children: e.map((a) => /* @__PURE__ */ t.jsxs(
47
47
  "div",
48
48
  {
49
49
  className: "inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md",
50
50
  children: [
51
- /* @__PURE__ */ t.jsx("span", { className: "truncate max-w-20", children: r.label }),
51
+ /* @__PURE__ */ t.jsx("span", { className: "truncate max-w-20", children: a.label }),
52
52
  /* @__PURE__ */ t.jsx(
53
53
  "button",
54
54
  {
55
55
  onMouseDown: (s) => {
56
- s.preventDefault(), F(r.id, s);
56
+ s.preventDefault(), F(a.id, s);
57
57
  },
58
58
  className: "flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",
59
59
  type: "button",
60
60
  tabIndex: -1,
61
- children: /* @__PURE__ */ t.jsx(v.Close, { size: 12, className: "" })
61
+ children: /* @__PURE__ */ t.jsx(h.Close, { size: 12, className: "" })
62
62
  }
63
63
  )
64
64
  ]
65
65
  },
66
- r.id
66
+ a.id
67
67
  )) }) : /* @__PURE__ */ t.jsx("span", { children: e[0]?.label });
68
68
  };
69
69
  return /* @__PURE__ */ t.jsxs(
70
70
  "div",
71
71
  {
72
- className: o("relative w-full bg-inherit", k),
73
- ref: x,
72
+ className: i("relative w-full bg-inherit", k),
73
+ ref: m,
74
74
  children: [
75
75
  /* @__PURE__ */ t.jsxs("div", { className: "relative bg-inherit", children: [
76
76
  /* @__PURE__ */ t.jsxs(
77
- "button",
77
+ "div",
78
78
  {
79
- type: "button",
80
- disabled: c,
81
- onClick: () => !c && f(!l),
79
+ onClick: () => !g && c(!l),
82
80
  onFocus: () => j(!0),
83
81
  onBlur: () => j(!1),
84
- className: o(
85
- "w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default",
82
+ className: i(
83
+ "w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-300 ease-in-out text-neutral-default-default",
86
84
  "flex items-center justify-between bg-transparent focus:outline-none",
87
- d || l || m ? "border-primary-default-default border-2" : p ? "border-error-default-default" : "border-neutral-default-default hover:border-neutral-strong-default",
88
- c && "opacity-50 cursor-not-allowed",
85
+ d || l || f ? " border-primary-default-focused ring-primary-default-focused ring-[2px]" : x ? "ring-error-default-default ring-[2px]" : "border-neutral-default-default hover:border-primary-default-hover",
86
+ g && "opacity-50 cursor-not-allowed pointer-events-none",
89
87
  C
90
88
  ),
91
89
  children: [
92
90
  /* @__PURE__ */ t.jsx(
93
91
  "label",
94
92
  {
95
- className: o(
93
+ className: i(
96
94
  "absolute pointer-events-none bg-inherit px-1 z-10",
97
- g === "default" && "transition-all duration-200 ease-in-out",
95
+ b === "default" && "transition-all duration-200 ease-in-out",
98
96
  "text-md",
99
97
  S(),
100
- d || l || m ? "text-primary-default-default" : p ? "text-red-500" : "text-neutral-medium-default",
98
+ d || l || f ? "text-primary-default-default" : x ? "text-red-500" : "text-neutral-medium-default",
101
99
  "left-3"
102
100
  ),
103
101
  children: N
@@ -114,14 +112,14 @@ const T = ({
114
112
  className: "text-neutral-medium-default hover:text-neutral-default-default transition-colors",
115
113
  type: "button",
116
114
  tabIndex: -1,
117
- children: /* @__PURE__ */ t.jsx(v.Close, { size: 16, className: "" })
115
+ children: /* @__PURE__ */ t.jsx(h.Close, { size: 16, className: "" })
118
116
  }
119
117
  ),
120
118
  O ? /* @__PURE__ */ t.jsx(B, { size: 20, variant: "clip" }) : /* @__PURE__ */ t.jsx(
121
- v.ChevronDown,
119
+ h.ChevronDown,
122
120
  {
123
121
  size: 20,
124
- className: o(
122
+ className: i(
125
123
  "transition-transform text-neutral-default-default",
126
124
  l ? "rotate-180" : ""
127
125
  )
@@ -131,24 +129,24 @@ const T = ({
131
129
  ]
132
130
  }
133
131
  ),
134
- 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: u.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "px-3 py-2 text-neutral-medium-default", children: D }) : u.map((e) => {
135
- const r = n ? Array.isArray(a.value) && a.value.includes(e.id) : a.value === e.id;
132
+ 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: o.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "px-3 py-2 text-neutral-medium-default", children: D }) : o.map((e) => {
133
+ const a = n ? Array.isArray(r.value) && r.value.includes(e.id) : r.value === e.id;
136
134
  return /* @__PURE__ */ t.jsxs(
137
135
  "div",
138
136
  {
139
137
  onMouseDown: (s) => {
140
138
  s.preventDefault(), z(e), s.stopPropagation();
141
139
  },
142
- className: o(
140
+ className: i(
143
141
  "px-3 py-2 cursor-pointer flex items-center transition-colors",
144
- r ? "bg-primary-default-default text-white" : "hover:bg-neutral-medium-selected text-neutral-default-default"
142
+ a ? "bg-primary-default-default text-white" : "hover:bg-neutral-medium-selected text-neutral-default-default"
145
143
  ),
146
144
  children: [
147
145
  n && /* @__PURE__ */ t.jsx(
148
146
  "input",
149
147
  {
150
148
  type: "checkbox",
151
- checked: r,
149
+ checked: a,
152
150
  onChange: () => {
153
151
  },
154
152
  className: "mr-2 pointer-events-none"
@@ -161,10 +159,10 @@ const T = ({
161
159
  );
162
160
  }) })
163
161
  ] }),
164
- p && /* @__PURE__ */ t.jsx(
162
+ x && /* @__PURE__ */ t.jsx(
165
163
  M,
166
164
  {
167
- name: a.name,
165
+ name: r.name,
168
166
  component: "span",
169
167
  className: "block text-error-default-default text-xs mt-1"
170
168
  }
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { ClipLoader as l, SyncLoader as m, HashLoader as p, GridLoader as x, DotLoader as j, BounceLoader as f } from "react-spinners";
3
3
  import { c as L } from "./cn-B6yFEsav.js";
4
4
  const y = ({
package/dist/Steps.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.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";
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as o } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as i } from "./cn-B6yFEsav.js";
3
3
  import { useState as d, useRef as D, useEffect as L } from "react";
4
4
  const O = ({
package/dist/Switch.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { j as n } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as r } from "./cn-B6yFEsav.js";
3
3
  import { useRef as p } from "react";
4
- import { motion as u } from "framer-motion";
5
- const x = ({ name: l, value: o, onChange: c, disabled: e = !1 }) => {
6
- const a = p(null), d = () => {
4
+ import { motion as l } from "framer-motion";
5
+ const x = ({ name: c, value: o, onChange: d, disabled: e = !1 }) => {
6
+ const a = p(null), i = () => {
7
7
  if (!a.current || e) return;
8
8
  const m = !a.current.checked;
9
- c(l, m);
10
- }, i = {
9
+ d(c, m);
10
+ }, s = {
11
11
  on: {
12
12
  default: {
13
13
  container: "bg-primary-default-default",
@@ -45,20 +45,20 @@ const x = ({ name: l, value: o, onChange: c, disabled: e = !1 }) => {
45
45
  off: {
46
46
  width: 16
47
47
  }
48
- }, t = o ? "on" : "off", s = e ? "disabled" : "default";
48
+ }, t = o ? "on" : "off", u = e ? "disabled" : "default";
49
49
  return /* @__PURE__ */ n.jsxs("div", { children: [
50
- /* @__PURE__ */ n.jsx("input", { type: "checkbox", hidden: !0, ref: a, checked: o, disabled: e }),
50
+ /* @__PURE__ */ n.jsx("input", { type: "checkbox", hidden: !0, ref: a, checked: o, disabled: e, onChange: i }),
51
51
  /* @__PURE__ */ n.jsx(
52
52
  "div",
53
53
  {
54
54
  className: r(
55
55
  "w-14 h-8 rounded-full relative px-2",
56
- i[t][s].container
56
+ s[t][u].container
57
57
  ),
58
58
  children: /* @__PURE__ */ n.jsx(
59
- u.span,
59
+ l.span,
60
60
  {
61
- onClick: d,
61
+ onClick: i,
62
62
  animate: f[t],
63
63
  whileHover: e ? {} : {
64
64
  background: t === "off" ? "rgba(29, 27, 32, 0.08)" : "rgba(101, 85, 143, 0.12)"
@@ -69,7 +69,7 @@ const x = ({ name: l, value: o, onChange: c, disabled: e = !1 }) => {
69
69
  "cursor-pointer"
70
70
  ),
71
71
  children: /* @__PURE__ */ n.jsx(
72
- u.span,
72
+ l.span,
73
73
  {
74
74
  animate: h[t],
75
75
  whileTap: e ? {} : {
@@ -78,7 +78,7 @@ const x = ({ name: l, value: o, onChange: c, disabled: e = !1 }) => {
78
78
  },
79
79
  className: r(
80
80
  "size-4 aspect-square rounded-full z-10",
81
- i[t][s].dot
81
+ s[t][u].dot
82
82
  )
83
83
  }
84
84
  )
@@ -1,4 +1,4 @@
1
- import { j as a } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as a } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as x } from "framer-motion";
3
3
  import { memo as b } from "react";
4
4
  import { c as r } from "./cn-B6yFEsav.js";
package/dist/Table.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as l } from "./cn-B6yFEsav.js";
3
3
  import * as o from "react";
4
4
  const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div", { className: "w-full", children: /* @__PURE__ */ r.jsx(
@@ -1,4 +1,4 @@
1
- import { j as y } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as y } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as C } from "./cn-B6yFEsav.js";
3
3
  import * as s from "react";
4
4
  function M({
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.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
4
  import { Icons as b } from "./Icons.es.js";
@@ -1,4 +1,5 @@
1
1
  interface DialogProps {
2
+ title?: string;
2
3
  children: React.ReactNode;
3
4
  onClose?: () => void;
4
5
  className?: string;
@@ -1,5 +1,5 @@
1
- import K from "react";
2
- var v = { exports: {} }, m = {};
1
+ import ee from "react";
2
+ var v = { exports: {} }, _ = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.js
@@ -9,29 +9,29 @@ var v = { exports: {} }, m = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var I;
13
- function ee() {
14
- if (I) return m;
15
- I = 1;
16
- var l = Symbol.for("react.transitional.element"), b = Symbol.for("react.fragment");
17
- function c(i, o, s) {
18
- var f = null;
19
- if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
12
+ var F;
13
+ function re() {
14
+ if (F) return _;
15
+ F = 1;
16
+ var l = Symbol.for("react.transitional.element"), T = Symbol.for("react.fragment");
17
+ function f(d, o, s) {
18
+ var m = null;
19
+ if (s !== void 0 && (m = "" + s), o.key !== void 0 && (m = "" + o.key), "key" in o) {
20
20
  s = {};
21
- for (var d in o)
22
- d !== "key" && (s[d] = o[d]);
21
+ for (var E in o)
22
+ E !== "key" && (s[E] = o[E]);
23
23
  } else s = o;
24
24
  return o = s.ref, {
25
25
  $$typeof: l,
26
- type: i,
27
- key: f,
26
+ type: d,
27
+ key: m,
28
28
  ref: o !== void 0 ? o : null,
29
29
  props: s
30
30
  };
31
31
  }
32
- return m.Fragment = b, m.jsx = c, m.jsxs = c, m;
32
+ return _.Fragment = T, _.jsx = f, _.jsxs = f, _;
33
33
  }
34
- var _ = {};
34
+ var R = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -41,44 +41,44 @@ var _ = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var $;
45
- function re() {
46
- return $ || ($ = 1, process.env.NODE_ENV !== "production" && (function() {
44
+ var D;
45
+ function te() {
46
+ return D || (D = 1, process.env.NODE_ENV !== "production" && (function() {
47
47
  function l(e) {
48
48
  if (e == null) return null;
49
49
  if (typeof e == "function")
50
- return e.$$typeof === H ? null : e.displayName || e.name || null;
50
+ return e.$$typeof === Z ? null : e.displayName || e.name || null;
51
51
  if (typeof e == "string") return e;
52
52
  switch (e) {
53
53
  case p:
54
54
  return "Fragment";
55
- case U:
55
+ case J:
56
56
  return "Profiler";
57
- case W:
57
+ case U:
58
58
  return "StrictMode";
59
- case z:
60
- return "Suspense";
61
59
  case G:
60
+ return "Suspense";
61
+ case X:
62
62
  return "SuspenseList";
63
- case B:
63
+ case H:
64
64
  return "Activity";
65
65
  }
66
66
  if (typeof e == "object")
67
67
  switch (typeof e.tag == "number" && console.error(
68
68
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
69
  ), e.$$typeof) {
70
- case M:
70
+ case W:
71
71
  return "Portal";
72
- case V:
73
- return e.displayName || "Context";
74
- case J:
75
- return (e._context.displayName || "Context") + ".Consumer";
72
+ case z:
73
+ return (e.displayName || "Context") + ".Provider";
76
74
  case q:
75
+ return (e._context.displayName || "Context") + ".Consumer";
76
+ case V:
77
77
  var r = e.render;
78
78
  return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
79
- case X:
79
+ case B:
80
80
  return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
81
- case T:
81
+ case g:
82
82
  r = e._payload, e = e._init;
83
83
  try {
84
84
  return l(e(r));
@@ -87,10 +87,10 @@ function re() {
87
87
  }
88
88
  return null;
89
89
  }
90
- function b(e) {
90
+ function T(e) {
91
91
  return "" + e;
92
92
  }
93
- function c(e) {
93
+ function f(e) {
94
94
  try {
95
95
  var r = !1;
96
96
  } catch {
@@ -103,12 +103,12 @@ function re() {
103
103
  r,
104
104
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
105
105
  n
106
- ), b(e);
106
+ ), T(e);
107
107
  }
108
108
  }
109
- function i(e) {
109
+ function d(e) {
110
110
  if (e === p) return "<>";
111
- if (typeof e == "object" && e !== null && e.$$typeof === T)
111
+ if (typeof e == "object" && e !== null && e.$$typeof === g)
112
112
  return "<...>";
113
113
  try {
114
114
  var r = l(e);
@@ -124,16 +124,16 @@ function re() {
124
124
  function s() {
125
125
  return Error("react-stack-top-frame");
126
126
  }
127
- function f(e) {
128
- if (x.call(e, "key")) {
127
+ function m(e) {
128
+ if (h.call(e, "key")) {
129
129
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
130
130
  if (r && r.isReactWarning) return !1;
131
131
  }
132
132
  return e.key !== void 0;
133
133
  }
134
- function d(e, r) {
134
+ function E(e, r) {
135
135
  function t() {
136
- g || (g = !0, console.error(
136
+ y || (y = !0, console.error(
137
137
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
138
138
  r
139
139
  ));
@@ -143,23 +143,22 @@ function re() {
143
143
  configurable: !0
144
144
  });
145
145
  }
146
- function D() {
146
+ function L() {
147
147
  var e = l(this.type);
148
- return h[e] || (h[e] = !0, console.error(
148
+ return N[e] || (N[e] = !0, console.error(
149
149
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
150
150
  )), e = this.props.ref, e !== void 0 ? e : null;
151
151
  }
152
- function L(e, r, t, n, R, A) {
153
- var a = t.ref;
154
- return e = {
155
- $$typeof: j,
152
+ function M(e, r, t, n, c, u, A, S) {
153
+ return t = u.ref, e = {
154
+ $$typeof: x,
156
155
  type: e,
157
156
  key: r,
158
- props: t,
159
- _owner: n
160
- }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
157
+ props: u,
158
+ _owner: c
159
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
161
160
  enumerable: !1,
162
- get: D
161
+ get: L
163
162
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
164
163
  configurable: !1,
165
164
  enumerable: !1,
@@ -174,19 +173,19 @@ function re() {
174
173
  configurable: !1,
175
174
  enumerable: !1,
176
175
  writable: !0,
177
- value: R
176
+ value: A
178
177
  }), Object.defineProperty(e, "_debugTask", {
179
178
  configurable: !1,
180
179
  enumerable: !1,
181
180
  writable: !0,
182
- value: A
181
+ value: S
183
182
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
184
183
  }
185
- function P(e, r, t, n, R, A) {
184
+ function j(e, r, t, n, c, u, A, S) {
186
185
  var a = r.children;
187
186
  if (a !== void 0)
188
187
  if (n)
189
- if (Z(a)) {
188
+ if (Q(a)) {
190
189
  for (n = 0; n < a.length; n++)
191
190
  w(a[n]);
192
191
  Object.freeze && Object.freeze(a);
@@ -195,12 +194,12 @@ function re() {
195
194
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
195
  );
197
196
  else w(a);
198
- if (x.call(r, "key")) {
197
+ if (h.call(r, "key")) {
199
198
  a = l(e);
200
- var u = Object.keys(r).filter(function(Q) {
201
- return Q !== "key";
199
+ var i = Object.keys(r).filter(function(K) {
200
+ return K !== "key";
202
201
  });
203
- n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
202
+ n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", I[a + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
204
203
  `A props object containing a "key" prop is being spread into JSX:
205
204
  let props = %s;
206
205
  <%s {...props} />
@@ -209,73 +208,76 @@ React keys must be passed directly to JSX without using spread:
209
208
  <%s key={someKey} {...props} />`,
210
209
  n,
211
210
  a,
212
- u,
211
+ i,
213
212
  a
214
- ), Y[a + n] = !0);
213
+ ), I[a + n] = !0);
215
214
  }
216
- if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
215
+ if (a = null, t !== void 0 && (f(t), a = "" + t), m(r) && (f(r.key), a = "" + r.key), "key" in r) {
217
216
  t = {};
218
- for (var S in r)
219
- S !== "key" && (t[S] = r[S]);
217
+ for (var P in r)
218
+ P !== "key" && (t[P] = r[P]);
220
219
  } else t = r;
221
- return a && d(
220
+ return a && E(
222
221
  t,
223
222
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
224
- ), L(
223
+ ), M(
225
224
  e,
226
225
  a,
227
- t,
226
+ u,
227
+ c,
228
228
  o(),
229
- R,
230
- A
229
+ t,
230
+ A,
231
+ S
231
232
  );
232
233
  }
233
234
  function w(e) {
234
- y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
235
- }
236
- function y(e) {
237
- return typeof e == "object" && e !== null && e.$$typeof === j;
235
+ typeof e == "object" && e !== null && e.$$typeof === x && e._store && (e._store.validated = 1);
238
236
  }
239
- var E = K, j = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), k = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
237
+ var b = ee, x = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, h = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
240
238
  return null;
241
239
  };
242
- E = {
240
+ b = {
243
241
  react_stack_bottom_frame: function(e) {
244
242
  return e();
245
243
  }
246
244
  };
247
- var g, h = {}, N = E.react_stack_bottom_frame.bind(
248
- E,
245
+ var y, N = {}, C = b.react_stack_bottom_frame.bind(
246
+ b,
249
247
  s
250
- )(), C = O(i(s)), Y = {};
251
- _.Fragment = p, _.jsx = function(e, r, t) {
252
- var n = 1e4 > k.recentlyCreatedOwnerStacks++;
253
- return P(
248
+ )(), Y = O(d(s)), I = {};
249
+ R.Fragment = p, R.jsx = function(e, r, t, n, c) {
250
+ var u = 1e4 > k.recentlyCreatedOwnerStacks++;
251
+ return j(
254
252
  e,
255
253
  r,
256
254
  t,
257
255
  !1,
258
- n ? Error("react-stack-top-frame") : N,
259
- n ? O(i(e)) : C
256
+ n,
257
+ c,
258
+ u ? Error("react-stack-top-frame") : C,
259
+ u ? O(d(e)) : Y
260
260
  );
261
- }, _.jsxs = function(e, r, t) {
262
- var n = 1e4 > k.recentlyCreatedOwnerStacks++;
263
- return P(
261
+ }, R.jsxs = function(e, r, t, n, c) {
262
+ var u = 1e4 > k.recentlyCreatedOwnerStacks++;
263
+ return j(
264
264
  e,
265
265
  r,
266
266
  t,
267
267
  !0,
268
- n ? Error("react-stack-top-frame") : N,
269
- n ? O(i(e)) : C
268
+ n,
269
+ c,
270
+ u ? Error("react-stack-top-frame") : C,
271
+ u ? O(d(e)) : Y
270
272
  );
271
273
  };
272
- })()), _;
274
+ })()), R;
273
275
  }
274
- var F;
275
- function te() {
276
- return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = /* @__PURE__ */ ee() : v.exports = /* @__PURE__ */ re()), v.exports;
276
+ var $;
277
+ function ne() {
278
+ return $ || ($ = 1, process.env.NODE_ENV === "production" ? v.exports = /* @__PURE__ */ re() : v.exports = /* @__PURE__ */ te()), v.exports;
277
279
  }
278
- var ae = /* @__PURE__ */ te();
280
+ var oe = /* @__PURE__ */ ne();
279
281
  export {
280
- ae as j
282
+ oe as j
281
283
  };
@@ -1,6 +1,6 @@
1
1
  import { default as Ne } from "./Avatar.es.js";
2
2
  import { default as Se } from "./Button.es.js";
3
- import { C as Ie, a as Be } from "./CardProfile-Bg_q2qMm.js";
3
+ import { C as Ie, a as Be } from "./CardProfile-BZajBGbO.js";
4
4
  import { default as Re } from "./CheckBox.es.js";
5
5
  import { default as Pe } from "./CheckboxFormik.es.js";
6
6
  import { default as Te, useDialogControl as ze } from "./DialogModal.es.js";
@@ -25,9 +25,9 @@ import { Table as vt, TableBody as ht, TableCaption as wt, TableCell as jt, Tabl
25
25
  import { default as Bt } from "./TabLinks.es.js";
26
26
  import { default as Rt } from "./TextArea.es.js";
27
27
  import { default as Pt } from "./Tooltip.es.js";
28
- import { u as j } from "./LayoutGeneric-p4Pll4Cm.js";
29
- import { L as Tt, S as zt } from "./LayoutGeneric-p4Pll4Cm.js";
30
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
28
+ import { u as j } from "./LayoutGeneric-jDE96L2N.js";
29
+ import { L as Tt, S as zt } from "./LayoutGeneric-jDE96L2N.js";
30
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
31
31
  import { c as l } from "./cn-B6yFEsav.js";
32
32
  import q, { useRef as p, useState as v, useLayoutEffect as P, createContext as D, useContext as T, forwardRef as N, useCallback as z, useEffect as C } from "react";
33
33
  import { useGSAP as S } from "@gsap/react";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "1.9.5",
4
+ "version": "1.9.6",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",