prometeo-design-system 2.3.7 → 2.3.9

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.
Files changed (47) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/{Button-Bc0LYLfg.js → Button-DsbEyjth.js} +1 -1
  3. package/dist/Button.es.js +1 -1
  4. package/dist/{CardProfile-BhHJmvqs.js → CardProfile-Fn44kEnM.js} +1 -1
  5. package/dist/CardProfile.es.js +1 -1
  6. package/dist/CheckBox.es.js +1 -1
  7. package/dist/CheckboxFormik.es.js +1 -1
  8. package/dist/DatePicker.es.js +2 -2
  9. package/dist/DialogModal.es.js +51 -48
  10. package/dist/DrawerDesktop.es.js +2 -2
  11. package/dist/DrawerMobile.es.js +1 -1
  12. package/dist/DropZone.es.js +1 -1
  13. package/dist/Header.es.js +27 -18
  14. package/dist/Icons.es.js +1 -1
  15. package/dist/Image.es.js +1 -1
  16. package/dist/{ImageGallery-BeADef_g.js → ImageGallery-DnoRTpCr.js} +2 -2
  17. package/dist/ImageGallery.es.js +1 -1
  18. package/dist/Input.es.js +1 -1
  19. package/dist/InputFormik.es.js +1 -1
  20. package/dist/InputMultiple.es.js +1 -1
  21. package/dist/{LayoutGeneric-jDE96L2N.js → LayoutGeneric-p4Pll4Cm.js} +1 -1
  22. package/dist/LayoutGeneric.es.js +1 -1
  23. package/dist/Logo.es.js +1 -1
  24. package/dist/Menu.es.js +1 -1
  25. package/dist/OtpInput.es.js +1 -1
  26. package/dist/Pagination.es.js +1 -1
  27. package/dist/ProfilePictureUpload.es.js +161 -195
  28. package/dist/ProgressBar.es.js +1 -1
  29. package/dist/SegmentedButton.es.js +1 -1
  30. package/dist/Select.es.js +1 -1
  31. package/dist/SelectFormik.es.js +1 -1
  32. package/dist/SelectFormikLegacy.es.js +1 -1
  33. package/dist/Skeleton.es.js +1 -1
  34. package/dist/Spinner.es.js +1 -1
  35. package/dist/Steps.es.js +1 -1
  36. package/dist/SwipeContainer.es.js +1 -1
  37. package/dist/Switch.es.js +1 -1
  38. package/dist/TabLinks.es.js +54 -45
  39. package/dist/Table.es.js +1 -1
  40. package/dist/TextArea.es.js +1 -1
  41. package/dist/Tooltip.es.js +1 -1
  42. package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +5 -2
  43. package/dist/components/TabLinks/TabLinks.d.ts +14 -10
  44. package/dist/{jsx-runtime-ByW6EXIE.js → jsx-runtime-DKDX3adD.js} +94 -96
  45. package/dist/prometeo-design-system.css +1 -1
  46. package/dist/prometeo-design-system.es.js +6 -6
  47. package/package.json +1 -1
@@ -1,247 +1,213 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
- import { motion as i, AnimatePresence as E } from "framer-motion";
3
- import { useRef as v, useState as R, useLayoutEffect as A } from "react";
4
- import H from "./Avatar.es.js";
5
- import { c as O } from "./cn-B6yFEsav.js";
6
- const W = {
1
+ import { j as n } from "./jsx-runtime-DKDX3adD.js";
2
+ import { motion as s } from "framer-motion";
3
+ import { memo as T, useRef as b, useLayoutEffect as A } from "react";
4
+ import M from "./Avatar.es.js";
5
+ import { c as l } from "./cn-B6yFEsav.js";
6
+ const I = {
7
7
  sm: "w-16 h-16",
8
8
  md: "w-24 h-24",
9
9
  lg: "w-32 h-32",
10
10
  xl: "w-40 h-40"
11
- }, F = {
11
+ }, U = {
12
12
  sm: "w-4 h-4",
13
13
  md: "w-5 h-5",
14
14
  lg: "w-6 h-6",
15
15
  xl: "w-8 h-8"
16
- }, T = {
16
+ }, z = {
17
17
  sm: "w-6 h-6",
18
18
  md: "w-7 h-7",
19
19
  lg: "w-8 h-8",
20
20
  xl: "w-10 h-10"
21
- }, V = {
21
+ }, H = {
22
22
  sm: "-bottom-1 -right-0.5",
23
23
  md: "-bottom-0.5 -right-0.5",
24
24
  lg: "bottom-1 right-1",
25
25
  xl: "bottom-3 right-2"
26
- }, y = {
26
+ }, k = {
27
27
  sm: "w-4 h-4",
28
28
  md: "w-5 h-5",
29
29
  lg: "w-6 h-6",
30
30
  xl: "w-7 h-7"
31
- }, q = {
31
+ }, W = {
32
32
  sm: "-top-0.5 -right-0.5",
33
33
  md: "-top-1 -right-1",
34
34
  lg: "-top-1 -right-0",
35
35
  xl: "top-1 right-1"
36
36
  };
37
- function X({
38
- imageUrl: d,
39
- fallbackText: b = "S L",
40
- onFileSelect: k,
41
- onEditClick: m,
42
- onRemoveClick: j,
43
- size: o = "lg",
44
- className: C,
45
- disabled: t = !1,
46
- showRemoveButton: B = !0,
47
- acceptedTypes: L = "image/*",
48
- maxFileSize: h = 5 * 1024 * 1024,
49
- onError: g,
50
- disbaleEntryAnimation: S = !1
37
+ function O({
38
+ imageUrl: t,
39
+ fallbackText: e = "S L",
40
+ onFileSelect: p,
41
+ onEditClick: h,
42
+ onRemoveClick: C,
43
+ size: i = "lg",
44
+ className: x,
45
+ disabled: o = !1,
46
+ showRemoveButton: j = !0,
47
+ acceptedTypes: v = "image/*",
48
+ maxFileSize: g = 5 * 1024 * 1024,
49
+ onError: f,
50
+ disableEntryAnimation: w = !1
51
51
  }) {
52
- const p = v(null), s = v(null), [u, f] = R(!1), $ = (r) => r.type.startsWith("image/") ? r.size > h ? (g?.(`La imagen debe ser menor a ${Math.round(h / 1024 / 1024)}MB`), !1) : !0 : (g?.("Por favor selecciona un archivo de imagen válido"), !1), M = (r) => {
53
- const n = r.target.files?.[0];
54
- n && ($(n) && k?.(n), r.target.value = "");
55
- }, N = () => {
56
- t || (m ? m() : p.current?.click());
57
- }, P = (r) => {
58
- r.stopPropagation(), !t && j?.();
52
+ const y = b(null), u = b(null), B = (r) => r.type.startsWith("image/") ? r.size > g ? (f?.(
53
+ `La imagen debe ser menor a ${Math.round(g / 1024 / 1024)}MB`
54
+ ), !1) : !0 : (f?.("Por favor selecciona un archivo de imagen válido"), !1), S = (r) => {
55
+ const a = r.target.files?.[0];
56
+ a && (B(a) && p?.(a), r.target.value = "");
57
+ }, L = () => {
58
+ o || (h ? h() : y.current?.click());
59
+ }, N = (r) => {
60
+ r.stopPropagation(), !o && C?.();
59
61
  };
60
62
  A(() => {
61
- if (s.current) {
62
- const n = ((I) => {
63
- let a = I;
64
- for (; a && a !== document.body; ) {
65
- const c = window.getComputedStyle(a).backgroundColor;
66
- if (c && c !== "transparent" && c !== "rgba(0, 0, 0, 0)")
67
- return c;
68
- a = a.parentElement;
63
+ if (u.current) {
64
+ const a = ((F) => {
65
+ let c = F;
66
+ for (; c && c !== document.body; ) {
67
+ const d = window.getComputedStyle(c).backgroundColor;
68
+ if (d && d !== "transparent" && d !== "rgba(0, 0, 0, 0)")
69
+ return d;
70
+ c = c.parentElement;
69
71
  }
70
- const l = window.getComputedStyle(document.body).backgroundColor;
71
- return l && l !== "transparent" && l !== "rgba(0, 0, 0, 0)" ? l : "rgb(255, 255, 255)";
72
- })(s.current.parentElement);
73
- s.current.style.borderColor = n;
72
+ const m = window.getComputedStyle(document.body).backgroundColor;
73
+ return m && m !== "transparent" && m !== "rgba(0, 0, 0, 0)" ? m : "rgb(255, 255, 255)";
74
+ })(
75
+ u.current.parentElement
76
+ );
77
+ u.current.style.borderColor = a;
74
78
  }
75
79
  }, []);
76
- const w = {
77
- initial: {
78
- animated: {
79
- container: {
80
- width: 0,
81
- height: 0
82
- },
83
- svg: {}
84
- },
85
- static: {
86
- container: {},
87
- svg: {}
88
- }
89
- },
90
- default: {
91
- animated: {
92
- container: {
93
- width: "auto",
94
- height: "auto"
95
- },
96
- svg: {}
97
- },
98
- static: {
99
- container: {},
100
- svg: {}
101
- }
102
- }
103
- }, x = S ? "static" : "animated";
104
- return /* @__PURE__ */ e.jsxs(
80
+ const E = w ? {} : { width: 0, height: 0 }, R = w ? {} : { width: "auto", height: "auto" };
81
+ return /* @__PURE__ */ n.jsxs(
105
82
  "div",
106
83
  {
107
- onMouseEnter: () => f(!0),
108
- onMouseLeave: () => f(!1),
109
- className: `relative inline-block border-inherit ${C || ""}`,
84
+ className: l("relative inline-block border-inherit group", x),
110
85
  children: [
111
- /* @__PURE__ */ e.jsx(
86
+ /* @__PURE__ */ n.jsx(
112
87
  "input",
113
88
  {
114
- ref: p,
89
+ ref: y,
115
90
  type: "file",
116
- accept: L,
117
- onChange: M,
91
+ accept: v,
92
+ onChange: S,
118
93
  className: "hidden",
119
- disabled: t
94
+ disabled: o
95
+ }
96
+ ),
97
+ /* @__PURE__ */ n.jsx(
98
+ s.div,
99
+ {
100
+ className: l(
101
+ I[i],
102
+ "rounded-full overflow-hidden flex items-center justify-center relative",
103
+ o && "opacity-50 cursor-not-allowed"
104
+ ),
105
+ children: /* @__PURE__ */ n.jsx(
106
+ M,
107
+ {
108
+ imageUrl: t,
109
+ fallbackText: e,
110
+ sizeImage: i,
111
+ sizeFallback: i
112
+ }
113
+ )
120
114
  }
121
115
  ),
122
- /* @__PURE__ */ e.jsx(
123
- i.div,
116
+ /* @__PURE__ */ n.jsx(
117
+ s.button,
124
118
  {
125
- className: `
126
- ${W[o]}
127
- rounded-full
128
- overflow-hidden
129
- flex items-center justify-center
130
- relative
131
- ${t ? "opacity-50 cursor-not-allowed" : ""}
132
- `,
133
- children: /* @__PURE__ */ e.jsx(
134
- H,
119
+ ref: u,
120
+ className: l(
121
+ "absolute bg-primary-default-default rounded-lg border-[2px] hover:bg-primary-default-hover cursor-pointer grid place-content-center",
122
+ H[i],
123
+ z[i],
124
+ o && "opacity-50 cursor-not-allowed"
125
+ ),
126
+ onClick: L,
127
+ disabled: o,
128
+ whileTap: o ? {} : { scale: 0.95 },
129
+ initial: E,
130
+ animate: R,
131
+ transition: { duration: 0.3, ease: "easeOut" },
132
+ children: /* @__PURE__ */ n.jsx(
133
+ s.svg,
135
134
  {
136
- imageUrl: d,
137
- fallbackText: b,
138
- sizeImage: o,
139
- sizeFallback: o
135
+ className: l(U[i], "text-white"),
136
+ fill: "none",
137
+ stroke: "currentColor",
138
+ viewBox: "0 0 24 24",
139
+ whileHover: o ? {} : {
140
+ x: [0, -1, 0, 1, -1, 0, 1],
141
+ y: [0, 1, 0, 1, 0, 1, 1],
142
+ rotate: [0, 5, -3, 8, -5, 3, 1]
143
+ },
144
+ transition: {
145
+ duration: 2,
146
+ ease: "easeInOut"
147
+ },
148
+ children: /* @__PURE__ */ n.jsx(
149
+ "path",
150
+ {
151
+ strokeLinecap: "round",
152
+ strokeLinejoin: "round",
153
+ strokeWidth: 2,
154
+ d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
155
+ }
156
+ )
140
157
  }
141
158
  )
142
159
  }
143
160
  ),
144
- /* @__PURE__ */ e.jsxs(E, { children: [
145
- /* @__PURE__ */ e.jsx(
146
- i.button,
147
- {
148
- ref: s,
149
- className: O(
150
- "absolute",
151
- "bg-primary-default-default rounded-lg border-[2px] hover:bg-primary-default-hover cursor-pointer grid place-content-center",
152
- V[o],
153
- T[o],
154
- t ? "opacity-50 cursor-not-allowed" : ""
155
- ),
156
- onClick: N,
157
- disabled: t,
158
- whileTap: t ? {} : { scale: 0.95, transition: { duration: 0.2, ease: "easeInOut" } },
159
- initial: w.initial[x].container,
160
- animate: w.default[x].container,
161
- children: /* @__PURE__ */ e.jsx(
162
- i.svg,
163
- {
164
- className: `${F[o]} text-white`,
165
- fill: "none",
166
- stroke: "currentColor",
167
- viewBox: "0 0 24 24",
168
- animate: u && !t ? {
169
- x: [0, -1, 0, 1, -1, 0, 1],
170
- y: [0, 1, 0, 1, 0, 1, 1],
171
- rotate: [0, 5, -3, 8, -5, 3, 1],
172
- transition: {
173
- duration: 2,
174
- ease: "easeInOut"
175
- }
176
- } : { x: 0, y: 0, rotate: 0 },
177
- transition: {
178
- duration: 1.2,
179
- repeat: 0,
180
- ease: "easeInOut"
181
- },
182
- children: /* @__PURE__ */ e.jsx(
183
- "path",
184
- {
185
- strokeLinecap: "round",
186
- strokeLinejoin: "round",
187
- strokeWidth: 2,
188
- d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
189
- }
190
- )
191
- }
192
- )
193
- }
194
- ),
195
- d && B && !t && /* @__PURE__ */ e.jsx(
196
- i.button,
197
- {
198
- className: `
199
- absolute
200
- ${q[o]}
201
- ${y[o]}
202
- rounded-full
203
- shadow-lg
204
- bg-error-light
205
- flex
206
- cursor-pointer
207
- items-center
208
- justify-center
209
- ${t ? "opacity-50 cursor-not-allowed" : ""}
210
- `,
211
- disabled: t,
212
- onClick: P,
213
- initial: { scale: 0, opacity: 0, rotate: -90 },
214
- animate: {
215
- scale: u ? 1 : 0.8,
216
- opacity: u ? 1 : 0,
217
- rotate: 0
218
- },
219
- exit: { scale: 0, opacity: 0, rotate: 90 },
220
- whileTap: { scale: 0.9 },
221
- transition: {
222
- type: "spring",
223
- stiffness: 300,
224
- damping: 25
225
- },
226
- children: /* @__PURE__ */ e.jsx(
227
- i.svg,
228
- {
229
- className: `${y[o]} text-white p-1`,
230
- fill: "none",
231
- stroke: "currentColor",
232
- viewBox: "0 0 24 24",
233
- whileHover: { rotate: 90 },
234
- transition: { duration: 0.2 },
235
- children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" })
236
- }
237
- )
238
- }
239
- )
240
- ] })
161
+ t && j && !o && /* @__PURE__ */ n.jsx(
162
+ s.button,
163
+ {
164
+ className: l(
165
+ "absolute rounded-full shadow-lg bg-error-light flex cursor-pointer items-center justify-center",
166
+ "opacity-0 scale-80 group-hover:opacity-100 group-hover:scale-100",
167
+ "transition-all duration-200 ease-out",
168
+ W[i],
169
+ k[i],
170
+ o && "opacity-50 cursor-not-allowed"
171
+ ),
172
+ disabled: o,
173
+ onClick: N,
174
+ whileTap: { scale: 0.9 },
175
+ transition: {
176
+ type: "spring",
177
+ stiffness: 300,
178
+ damping: 25
179
+ },
180
+ children: /* @__PURE__ */ n.jsx(
181
+ s.svg,
182
+ {
183
+ className: l(k[i], "text-white p-1"),
184
+ fill: "none",
185
+ stroke: "currentColor",
186
+ viewBox: "0 0 24 24",
187
+ whileHover: { rotate: 90 },
188
+ transition: { duration: 0.2 },
189
+ children: /* @__PURE__ */ n.jsx(
190
+ "path",
191
+ {
192
+ strokeLinecap: "round",
193
+ strokeLinejoin: "round",
194
+ strokeWidth: 2,
195
+ d: "M6 18L18 6M6 6l12 12"
196
+ }
197
+ )
198
+ }
199
+ )
200
+ }
201
+ )
241
202
  ]
242
203
  }
243
204
  );
244
205
  }
206
+ const $ = T(
207
+ O,
208
+ (t, e) => t.imageUrl === e.imageUrl && t.fallbackText === e.fallbackText && t.size === e.size && t.className === e.className && t.disabled === e.disabled && t.showRemoveButton === e.showRemoveButton && t.acceptedTypes === e.acceptedTypes && t.maxFileSize === e.maxFileSize && t.disableEntryAnimation === e.disableEntryAnimation && t.onFileSelect === e.onFileSelect && t.onEditClick === e.onEditClick && t.onRemoveClick === e.onRemoveClick && t.onError === e.onError
209
+ );
210
+ $.displayName = "ProfilePictureUpload";
245
211
  export {
246
- X as ProfilePictureUpload
212
+ $ as ProfilePictureUpload
247
213
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import u from "react";
4
4
  const j = u.forwardRef(
@@ -1,4 +1,4 @@
1
- import { j as u } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as u } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as d } from "./cn-B6yFEsav.js";
3
3
  import z, { useState as M, useMemo as C, useEffect as L } from "react";
4
4
  import { motion as E } from "framer-motion";
package/dist/Select.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons as k } from "./Icons.es.js";
3
3
  import { c as a } from "./cn-B6yFEsav.js";
4
4
  import ce, { useRef as F, useLayoutEffect as we, memo as z, useState as ie, useMemo as U, useCallback as P, useEffect as Z } from "react";
@@ -1,4 +1,4 @@
1
- import { j as m } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as m } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { useField as s } from "formik";
3
3
  import i from "./Select.es.js";
4
4
  const p = (e) => {
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons as g } from "./Icons.es.js";
3
3
  import { c as d } from "./cn-B6yFEsav.js";
4
4
  import { useField as $, ErrorMessage as q } from "formik";
@@ -1,4 +1,4 @@
1
- import { j as E } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as E } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as B } from "./cn-B6yFEsav.js";
3
3
  import { memo as N, useRef as R, useCallback as D, useLayoutEffect as M } from "react";
4
4
  const y = (n) => {
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.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-ByW6EXIE.js";
1
+ 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";
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as o } from "./jsx-runtime-DKDX3adD.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,4 +1,4 @@
1
- import { j as a } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as a } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as r } from "./cn-B6yFEsav.js";
3
3
  import { memo as w, useRef as b } from "react";
4
4
  import { motion as c } from "framer-motion";
@@ -1,56 +1,56 @@
1
- import { j as a } from "./jsx-runtime-ByW6EXIE.js";
2
- import { motion as h } from "framer-motion";
3
- import { memo as d } from "react";
4
- import { c as i } from "./cn-B6yFEsav.js";
5
- const l = d(function({
6
- items: o,
7
- activeTab: n,
8
- onTabChange: u,
9
- className: f,
10
- tabClassName: c,
11
- activeTabClassName: m,
12
- indicatorClassName: b,
13
- animated: p = !0,
14
- renderTab: r
1
+ import { j as n } from "./jsx-runtime-DKDX3adD.js";
2
+ import { motion as x } from "framer-motion";
3
+ import { memo as N } from "react";
4
+ import { c as r } from "./cn-B6yFEsav.js";
5
+ function c({
6
+ items: t,
7
+ activeTab: e,
8
+ onTabChange: i,
9
+ className: l,
10
+ tabClassName: d,
11
+ activeTabClassName: u,
12
+ indicatorClassName: f,
13
+ animated: b = !0,
14
+ renderTab: o
15
15
  }) {
16
- const x = (t) => {
17
- t.disabled || u?.(t.id, t);
16
+ const h = (a) => {
17
+ a.disabled || i?.(a.id, a);
18
18
  };
19
- return /* @__PURE__ */ a.jsx(
19
+ return /* @__PURE__ */ n.jsx(
20
20
  "div",
21
21
  {
22
- className: i(
22
+ className: r(
23
23
  "flex flex-row justify-around items-end relative border-b-1 border-neutral-strong-default w-full md:justify-start md:px-10 md:gap-5",
24
- f
24
+ l
25
25
  ),
26
26
  role: "tablist",
27
- children: o?.map((t) => {
28
- const e = n === t.id, s = () => x(t);
29
- return r ? /* @__PURE__ */ a.jsx("div", { children: r(t, e, s) }, t.id) : /* @__PURE__ */ a.jsxs(
27
+ children: t?.map((a) => {
28
+ const s = e === a.id, m = () => h(a);
29
+ return o ? /* @__PURE__ */ n.jsx("div", { children: o(a, s, m) }, a.id) : /* @__PURE__ */ n.jsxs(
30
30
  "button",
31
31
  {
32
- onClick: s,
33
- disabled: t.disabled,
34
- className: i(
32
+ onClick: m,
33
+ disabled: a.disabled,
34
+ className: r(
35
35
  "relative flex justify-center items-center h-10 px-4 font-medium focus:outline-none transition-colors",
36
- !t.disabled && "hover:text-primary-default-default cursor-pointer",
37
- t.disabled && "opacity-50 cursor-not-allowed",
38
- c,
39
- e && m
36
+ !a.disabled && "hover:text-primary-default-default cursor-pointer",
37
+ a.disabled && "opacity-50 cursor-not-allowed",
38
+ d,
39
+ s && u
40
40
  ),
41
- tabIndex: t.disabled ? -1 : 0,
42
- "aria-label": t.title,
41
+ tabIndex: a.disabled ? -1 : 0,
42
+ "aria-label": a.title,
43
43
  role: "tab",
44
- "aria-selected": e,
45
- title: t.description,
44
+ "aria-selected": s,
45
+ title: a.description,
46
46
  children: [
47
- e && p && /* @__PURE__ */ a.jsx(
48
- h.div,
47
+ s && b && /* @__PURE__ */ n.jsx(
48
+ x.div,
49
49
  {
50
50
  layoutId: "tab-indicator",
51
- className: i(
51
+ className: r(
52
52
  "absolute -bottom-[1px] left-0 right-0 h-[5px] rounded-t-xl bg-primary-default-default z-0",
53
- b
53
+ f
54
54
  ),
55
55
  transition: {
56
56
  type: "spring",
@@ -60,26 +60,35 @@ const l = d(function({
60
60
  "aria-hidden": "true"
61
61
  }
62
62
  ),
63
- /* @__PURE__ */ a.jsx(
63
+ /* @__PURE__ */ n.jsx(
64
64
  "span",
65
65
  {
66
- className: i(
66
+ className: r(
67
67
  "relative z-10",
68
- e ? "text-primary-default-default font-semibold text-md" : "text-neutral-medium-default font-medium text-md"
68
+ s ? "text-primary-default-default font-semibold text-md" : "text-neutral-medium-default font-medium text-md"
69
69
  ),
70
- children: t.title
70
+ children: a.title
71
71
  }
72
72
  )
73
73
  ]
74
74
  },
75
- t.id
75
+ a.id
76
76
  );
77
77
  })
78
78
  }
79
79
  );
80
+ }
81
+ c.displayName = "TabLinks";
82
+ const C = N(c, (t, e) => {
83
+ if (t.activeTab !== e.activeTab || t.className !== e.className || t.tabClassName !== e.tabClassName || t.activeTabClassName !== e.activeTabClassName || t.indicatorClassName !== e.indicatorClassName || t.animated !== e.animated || t.onTabChange !== e.onTabChange || t.renderTab !== e.renderTab || t.items.length !== e.items.length)
84
+ return !1;
85
+ for (let i = 0; i < t.items.length; i++) {
86
+ const l = t.items[i], d = e.items[i];
87
+ if (l.id !== d.id || l.title !== d.title || l.disabled !== d.disabled || l.description !== d.description)
88
+ return !1;
89
+ }
90
+ return !0;
80
91
  });
81
- l.displayName = "TabLinks";
82
- const N = d(l);
83
92
  export {
84
- N as default
93
+ C as default
85
94
  };
package/dist/Table.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as r } from "./jsx-runtime-DKDX3adD.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-ByW6EXIE.js";
1
+ import { j as y } from "./jsx-runtime-DKDX3adD.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-ByW6EXIE.js";
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
4
  import { Icons as b } from "./Icons.es.js";