prometeo-design-system 5.7.3 → 5.7.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/Button.es.js +16 -14
- package/dist/Select.es.js +452 -447
- package/dist/SelectSearch.es.js +35 -35
- package/dist/Table.es.js +13 -13
- package/dist/components/Button/Button.d.ts +1 -1
- package/package.json +1 -1
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
|
|
3
|
-
import
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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(
|
|
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),
|
|
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:
|
|
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
|
-
|
|
384
|
+
q({
|
|
384
385
|
size: o,
|
|
385
386
|
variant: l,
|
|
386
387
|
color: n,
|
|
387
|
-
animation:
|
|
388
|
+
animation: C
|
|
388
389
|
}),
|
|
389
390
|
z
|
|
390
391
|
),
|
|
391
392
|
disabled: s || a,
|
|
392
393
|
form: I,
|
|
393
394
|
onClick: j,
|
|
394
|
-
|
|
395
|
+
...B,
|
|
396
|
+
children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${c}`, children: A })
|
|
395
397
|
}
|
|
396
398
|
);
|
|
397
|
-
},
|
|
399
|
+
}, P = E(F);
|
|
398
400
|
export {
|
|
399
|
-
|
|
401
|
+
P as default
|
|
400
402
|
};
|