prometeo-design-system 5.7.4 → 5.7.7

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/Button.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as t } from "./jsx-runtime-GkKLlHH4.js";
2
- import { memo as A, useMemo as E } from "react";
3
- import M from "./Spinner.es.js";
2
+ import { memo as E, useMemo as M } from "react";
3
+ import R from "./Spinner.es.js";
4
4
  import { c as p } from "./index-BOQuZ0gG.js";
5
5
  import { c as m } from "./cn-B6yFEsav.js";
6
6
  const v = {
@@ -152,7 +152,7 @@ const v = {
152
152
  false: {
153
153
  icon: ""
154
154
  }
155
- }, R = p(g.container, {
155
+ }, q = p(g.container, {
156
156
  variants: {
157
157
  size: {
158
158
  small: `${r.small.container} ${v.small.container}`,
@@ -249,7 +249,7 @@ const v = {
249
249
  variant: "fill",
250
250
  color: "primary"
251
251
  }
252
- }), q = p(g.icon, {
252
+ }), D = p(g.icon, {
253
253
  variants: {
254
254
  size: {
255
255
  small: r.small.icon,
@@ -300,7 +300,7 @@ const v = {
300
300
  color: "primary",
301
301
  animateIcon: !0
302
302
  }
303
- }), D = ({
303
+ }), F = ({
304
304
  label: i,
305
305
  onClick: j,
306
306
  icon: u,
@@ -311,16 +311,17 @@ const v = {
311
311
  isLoading: a = !1,
312
312
  children: d,
313
313
  hideSpinner: b = !1,
314
- spinner: x = /* @__PURE__ */ t.jsx(M, { size: "small", variant: "clip", color: "var(--neutral-600)", className: "size-4 " }),
314
+ spinner: x = /* @__PURE__ */ t.jsx(R, { size: "small", variant: "clip", color: "var(--neutral-600)", className: "size-4 " }),
315
315
  type: N,
316
316
  className: z,
317
317
  disabled: s,
318
318
  variant: l = "fill",
319
319
  form: I,
320
320
  size: o = "medium",
321
- color: S = "primary"
321
+ color: S = "primary",
322
+ ...B
322
323
  }) => {
323
- const h = !!($ && !s && !a), B = !!(k && !s && !a), n = s || a ? "disabled" : S, C = E(() => d || (a ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
324
+ const h = !!($ && !s && !a), C = !!(k && !s && !a), n = s || a ? "disabled" : S, A = M(() => d || (a ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
324
325
  !b && x,
325
326
  /* @__PURE__ */ t.jsx(
326
327
  "span",
@@ -340,7 +341,7 @@ const v = {
340
341
  u && /* @__PURE__ */ t.jsx(
341
342
  "span",
342
343
  {
343
- className: q({
344
+ className: D({
344
345
  size: o,
345
346
  variant: l,
346
347
  color: n,
@@ -380,21 +381,22 @@ const v = {
380
381
  type: N,
381
382
  className: m(
382
383
  "group",
383
- R({
384
+ q({
384
385
  size: o,
385
386
  variant: l,
386
387
  color: n,
387
- animation: B
388
+ animation: C
388
389
  }),
389
390
  z
390
391
  ),
391
392
  disabled: s || a,
392
393
  form: I,
393
394
  onClick: j,
394
- children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${c}`, children: C })
395
+ ...B,
396
+ children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${c}`, children: A })
395
397
  }
396
398
  );
397
- }, O = A(D);
399
+ }, P = E(F);
398
400
  export {
399
- O as default
401
+ P as default
400
402
  };
@@ -43,7 +43,10 @@ const X = 44, me = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ye = de((f, l)
43
43
  }
44
44
  return typeof t == "string" && t.endsWith("%") ? parseFloat(t) > 100 ? e : parseFloat(t) / 100 * e : typeof t == "string" && t.endsWith("px") ? parseFloat(t) : typeof t == "number" && t >= 0 && t <= 1 ? t * e : typeof t == "number" ? t : 0;
45
45
  }) || [];
46
- }, [d, l]), G = i(() => 46, []), W = i(() => b.current?.scrollHeight ?? 0, []), Z = i(() => T.current?.scrollHeight ?? 0, []), P = i(() => E.current?.scrollHeight ?? 0, []), _ = i((e, t, n, g, c) => {
46
+ }, [d, l]), G = i(() => 46, []), W = i(() => b.current?.scrollHeight ?? 0, []), Z = i(() => {
47
+ const e = T.current?.scrollHeight ?? 0;
48
+ return e > 0 ? e + 2 : 0;
49
+ }, []), P = i(() => E.current?.scrollHeight ?? 0, []), _ = i((e, t, n, g, c) => {
47
50
  const s = n + c + t + g, v = Math.min(100, s / e * 100);
48
51
  return `${Math.round(v)}%`;
49
52
  }, []), ee = i((e, t) => {
@@ -241,7 +244,7 @@ const X = 44, me = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ye = de((f, l)
241
244
  }
242
245
  ),
243
246
  H && /* @__PURE__ */ w.jsx("div", { ref: T, className: z(
244
- "w-full mt-2 flex items-center justify-center p-2",
247
+ "w-full mt-0 flex items-center justify-center p-0",
245
248
  "border-t border-neutral-strong-default",
246
249
  j
247
250
  ), children: typeof H == "function" ? H(D) : H })
package/dist/Table.es.js CHANGED
@@ -6,7 +6,7 @@ const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div
6
6
  {
7
7
  ref: a,
8
8
  className: l(
9
- "w-full caption-bottom text-sm border-b rounded-lg border-neutral-default-default",
9
+ "w-full caption-bottom text-sm",
10
10
  e
11
11
  ),
12
12
  ...t
@@ -31,7 +31,7 @@ const i = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
31
31
  }
32
32
  ));
33
33
  i.displayName = "TableBody";
34
- const b = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
34
+ const c = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
35
35
  "tfoot",
36
36
  {
37
37
  ref: a,
@@ -42,9 +42,9 @@ const b = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
42
42
  ...t
43
43
  }
44
44
  ));
45
- b.displayName = "TableFooter";
46
- const c = o.forwardRef(({ className: e, isSelected: t, ...a }, d) => {
47
- const s = `
45
+ c.displayName = "TableFooter";
46
+ const m = o.forwardRef(({ className: e, isSelected: t, ...a }, s) => {
47
+ const d = `
48
48
  after:content-["<span id='selected-span'></span>"]
49
49
  after:absolute
50
50
  after:top-1/2
@@ -65,18 +65,18 @@ const c = o.forwardRef(({ className: e, isSelected: t, ...a }, d) => {
65
65
  return /* @__PURE__ */ r.jsx(
66
66
  "tr",
67
67
  {
68
- ref: d,
68
+ ref: s,
69
69
  className: l(
70
70
  "border-b border-neutral-default-default relative text-center text-md text-semibold transition-colors hover:bg-neutral-medium-default/50 text-neutral-default-default",
71
- s,
71
+ d,
72
72
  e
73
73
  ),
74
74
  ...a
75
75
  }
76
76
  );
77
77
  });
78
- c.displayName = "TableRow";
79
- const m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
78
+ m.displayName = "TableRow";
79
+ const b = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
80
80
  "th",
81
81
  {
82
82
  ref: a,
@@ -87,7 +87,7 @@ const m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
87
87
  ...t
88
88
  }
89
89
  ));
90
- m.displayName = "TableHead";
90
+ b.displayName = "TableHead";
91
91
  const u = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
92
92
  "td",
93
93
  {
@@ -114,8 +114,8 @@ export {
114
114
  i as TableBody,
115
115
  p as TableCaption,
116
116
  u as TableCell,
117
- b as TableFooter,
118
- m as TableHead,
117
+ c as TableFooter,
118
+ b as TableHead,
119
119
  f as TableHeader,
120
- c as TableRow
120
+ m as TableRow
121
121
  };
@@ -19,5 +19,5 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
19
19
  color?: ColorVariant;
20
20
  hideSpinner?: boolean;
21
21
  }
22
- declare const _default: import('react').MemoExoticComponent<({ label, onClick, icon, contentClassName, loadingText, animate, animateIcon, isLoading, children, hideSpinner, spinner, type, className, disabled, variant, form, size, color }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
22
+ declare const _default: import('react').MemoExoticComponent<({ label, onClick, icon, contentClassName, loadingText, animate, animateIcon, isLoading, children, hideSpinner, spinner, type, className, disabled, variant, form, size, color, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
23
23
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "5.7.4",
4
+ "version": "5.7.7",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",