@clasing/ui 0.1.130 → 0.1.132
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-DcSOP6sn.js → button-BVN4jg0O.js} +74 -74
- package/dist/{button-Ha5yZjbm.cjs → button-DVFHfLyC.cjs} +1 -1
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +1 -1
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as g } from "./index-CRiPKpXj.js";
|
|
3
3
|
import { Slot as q } from "@radix-ui/react-slot";
|
|
4
4
|
import { c as v } from "./index-BqtVL8d-.js";
|
|
5
|
-
import
|
|
6
|
-
import { I as
|
|
7
|
-
import { b as
|
|
8
|
-
const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]",
|
|
5
|
+
import l from "react";
|
|
6
|
+
import { I as o } from "./icon-component-CxQsODCa.js";
|
|
7
|
+
import { b as j, T as N, c as I, a as V } from "./tooltip-BnIdKYZi.js";
|
|
8
|
+
const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]", E = v(f, {
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
// Variantes de botón sólido
|
|
@@ -128,7 +128,7 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
128
128
|
rounded: "full",
|
|
129
129
|
iconPosition: "left"
|
|
130
130
|
}
|
|
131
|
-
}),
|
|
131
|
+
}), F = v(`${f} cursor-default`, {
|
|
132
132
|
variants: {
|
|
133
133
|
variant: {
|
|
134
134
|
primary: ["bg-primary-800 text-white outline-transparent"],
|
|
@@ -239,7 +239,7 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
239
239
|
rounded: "full",
|
|
240
240
|
iconPosition: "left"
|
|
241
241
|
}
|
|
242
|
-
}),
|
|
242
|
+
}), M = v(f, {
|
|
243
243
|
variants: {
|
|
244
244
|
variant: {
|
|
245
245
|
primary: ["bg-primary-800 text-white outline-transparent"],
|
|
@@ -350,26 +350,26 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
350
350
|
rounded: "full",
|
|
351
351
|
iconPosition: "left"
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
353
|
+
}), R = l.forwardRef(
|
|
354
354
|
({
|
|
355
|
-
className:
|
|
356
|
-
variant:
|
|
355
|
+
className: d,
|
|
356
|
+
variant: c,
|
|
357
357
|
size: i,
|
|
358
|
-
weight:
|
|
359
|
-
rounded:
|
|
360
|
-
children:
|
|
358
|
+
weight: m,
|
|
359
|
+
rounded: b,
|
|
360
|
+
children: r,
|
|
361
361
|
iconName: n,
|
|
362
|
-
iconText:
|
|
363
|
-
iconPosition:
|
|
364
|
-
isLoading:
|
|
362
|
+
iconText: h,
|
|
363
|
+
iconPosition: y = "left",
|
|
364
|
+
isLoading: s,
|
|
365
365
|
isActive: S,
|
|
366
366
|
disabled: w,
|
|
367
|
-
tooltip:
|
|
367
|
+
tooltip: p,
|
|
368
368
|
tooltipPlacement: z = "top",
|
|
369
369
|
asChild: k,
|
|
370
|
-
...
|
|
371
|
-
},
|
|
372
|
-
const
|
|
370
|
+
...B
|
|
371
|
+
}, C) => {
|
|
372
|
+
const T = k ? q : "button", e = l.useMemo(() => !r && n || y === "only" ? "only" : y, [r, n, y]), a = l.useMemo(() => n ? typeof n == "string" ? { name: n } : n : null, [n]), x = e === "only" ? {
|
|
373
373
|
xl: "min-w-6 h-6",
|
|
374
374
|
lg: "min-w-6 h-6",
|
|
375
375
|
md: "min-w-5 h-5",
|
|
@@ -381,20 +381,20 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
381
381
|
md: "min-w-4 h-4",
|
|
382
382
|
sm: "min-w-4 h-4",
|
|
383
383
|
xs: "min-w-3.5 h-3.5"
|
|
384
|
-
},
|
|
384
|
+
}, P = /* @__PURE__ */ t.jsx(t.Fragment, { children: e === "only" ? (
|
|
385
385
|
// Renderizado para modo icon-only
|
|
386
|
-
/* @__PURE__ */ t.jsx(t.Fragment, { children:
|
|
387
|
-
|
|
386
|
+
/* @__PURE__ */ t.jsx(t.Fragment, { children: s ? /* @__PURE__ */ t.jsx(
|
|
387
|
+
o,
|
|
388
388
|
{
|
|
389
389
|
iconName: "IconLoader2",
|
|
390
|
-
className:
|
|
390
|
+
className: g("animate-spin", x[i || "xl"])
|
|
391
391
|
}
|
|
392
392
|
) : a && /* @__PURE__ */ t.jsx(
|
|
393
|
-
|
|
393
|
+
o,
|
|
394
394
|
{
|
|
395
395
|
iconName: a.name,
|
|
396
396
|
stroke: a.stroke,
|
|
397
|
-
iconText:
|
|
397
|
+
iconText: h,
|
|
398
398
|
size: 24
|
|
399
399
|
}
|
|
400
400
|
) })
|
|
@@ -404,12 +404,12 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
404
404
|
/* @__PURE__ */ t.jsx(
|
|
405
405
|
"span",
|
|
406
406
|
{
|
|
407
|
-
className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${
|
|
407
|
+
className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${s ? "visible opacity-100" : "invisible opacity-0"}`,
|
|
408
408
|
children: /* @__PURE__ */ t.jsx(
|
|
409
|
-
|
|
409
|
+
o,
|
|
410
410
|
{
|
|
411
411
|
iconName: "IconLoader2",
|
|
412
|
-
className:
|
|
412
|
+
className: g("animate-spin", x[i || "xl"])
|
|
413
413
|
}
|
|
414
414
|
)
|
|
415
415
|
}
|
|
@@ -417,94 +417,94 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
417
417
|
/* @__PURE__ */ t.jsxs(
|
|
418
418
|
"span",
|
|
419
419
|
{
|
|
420
|
-
className:
|
|
420
|
+
className: g(
|
|
421
421
|
"flex items-center justify-center gap-2",
|
|
422
|
-
|
|
422
|
+
s ? "invisible opacity-0" : "visible opacity-100"
|
|
423
423
|
),
|
|
424
424
|
children: [
|
|
425
425
|
a && e === "left" && /* @__PURE__ */ t.jsx(
|
|
426
|
-
|
|
426
|
+
o,
|
|
427
427
|
{
|
|
428
428
|
iconName: a.name,
|
|
429
|
-
iconText:
|
|
429
|
+
iconText: h,
|
|
430
430
|
stroke: a.stroke,
|
|
431
|
-
className:
|
|
431
|
+
className: x[i || "xl"]
|
|
432
432
|
}
|
|
433
433
|
),
|
|
434
|
-
|
|
434
|
+
r,
|
|
435
435
|
a && e === "right" && /* @__PURE__ */ t.jsx(
|
|
436
|
-
|
|
436
|
+
o,
|
|
437
437
|
{
|
|
438
438
|
iconName: a.name,
|
|
439
|
-
iconText:
|
|
439
|
+
iconText: h,
|
|
440
440
|
stroke: a.stroke,
|
|
441
|
-
className:
|
|
441
|
+
className: x[i || "xl"]
|
|
442
442
|
}
|
|
443
443
|
)
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
)
|
|
447
447
|
] })
|
|
448
|
-
) }),
|
|
449
|
-
|
|
448
|
+
) }), u = /* @__PURE__ */ t.jsx(
|
|
449
|
+
T,
|
|
450
450
|
{
|
|
451
|
-
ref:
|
|
452
|
-
className:
|
|
453
|
-
|
|
454
|
-
variant:
|
|
455
|
-
weight:
|
|
451
|
+
ref: C,
|
|
452
|
+
className: g(
|
|
453
|
+
s ? F({
|
|
454
|
+
variant: c,
|
|
455
|
+
weight: m,
|
|
456
456
|
size: i,
|
|
457
|
-
rounded:
|
|
457
|
+
rounded: b,
|
|
458
458
|
iconPosition: e,
|
|
459
|
-
className:
|
|
460
|
-
}) : S ?
|
|
461
|
-
variant:
|
|
462
|
-
weight:
|
|
459
|
+
className: d
|
|
460
|
+
}) : S ? M({
|
|
461
|
+
variant: c,
|
|
462
|
+
weight: m,
|
|
463
463
|
size: i,
|
|
464
|
-
rounded:
|
|
464
|
+
rounded: b,
|
|
465
465
|
iconPosition: e,
|
|
466
|
-
className:
|
|
467
|
-
}) :
|
|
468
|
-
variant:
|
|
469
|
-
weight:
|
|
466
|
+
className: d
|
|
467
|
+
}) : E({
|
|
468
|
+
variant: c,
|
|
469
|
+
weight: m,
|
|
470
470
|
size: i,
|
|
471
|
-
rounded:
|
|
471
|
+
rounded: b,
|
|
472
472
|
iconPosition: e,
|
|
473
|
-
className:
|
|
473
|
+
className: d
|
|
474
474
|
})
|
|
475
475
|
),
|
|
476
|
-
disabled: w ||
|
|
477
|
-
...
|
|
478
|
-
children: k ? l :
|
|
476
|
+
disabled: w || s,
|
|
477
|
+
...B,
|
|
478
|
+
children: k ? l.isValidElement(r) ? l.cloneElement(r, {}, P) : r : P
|
|
479
479
|
}
|
|
480
480
|
);
|
|
481
|
-
return
|
|
482
|
-
/* @__PURE__ */ t.jsx(
|
|
481
|
+
return p && (w || s) ? /* @__PURE__ */ t.jsx(j, { children: /* @__PURE__ */ t.jsxs(N, { children: [
|
|
482
|
+
/* @__PURE__ */ t.jsx(I, { asChild: e === "only", children: e === "only" ? /* @__PURE__ */ t.jsx("div", { className: "inline-block", "aria-disabled": "true", children: u }) : u }),
|
|
483
483
|
/* @__PURE__ */ t.jsx(
|
|
484
|
-
|
|
484
|
+
V,
|
|
485
485
|
{
|
|
486
486
|
side: z,
|
|
487
487
|
className: "text-muted-foreground",
|
|
488
|
-
children:
|
|
488
|
+
children: p
|
|
489
489
|
}
|
|
490
490
|
)
|
|
491
|
-
] }) }) :
|
|
492
|
-
/* @__PURE__ */ t.jsx(
|
|
491
|
+
] }) }) : p ? /* @__PURE__ */ t.jsx(j, { children: /* @__PURE__ */ t.jsxs(N, { children: [
|
|
492
|
+
/* @__PURE__ */ t.jsx(I, { asChild: e === "only", children: u }),
|
|
493
493
|
/* @__PURE__ */ t.jsx(
|
|
494
|
-
|
|
494
|
+
V,
|
|
495
495
|
{
|
|
496
496
|
side: z,
|
|
497
497
|
className: "text-muted-foreground",
|
|
498
|
-
children:
|
|
498
|
+
children: p
|
|
499
499
|
}
|
|
500
500
|
)
|
|
501
|
-
] }) }) :
|
|
501
|
+
] }) }) : u;
|
|
502
502
|
}
|
|
503
503
|
);
|
|
504
|
-
|
|
504
|
+
R.displayName = "Button";
|
|
505
505
|
export {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
506
|
+
R as B,
|
|
507
|
+
F as a,
|
|
508
|
+
M as b,
|
|
509
|
+
E as c
|
|
510
510
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-CEDi24JD.cjs"),
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-CEDi24JD.cjs"),g=require("./index-DoxiiusW.cjs"),V=require("@radix-ui/react-slot"),f=require("./index-C8P6Mn4U.cjs"),l=require("react"),x=require("./icon-component-DuSAouum.cjs"),i=require("./tooltip-CqOXzvfb.cjs"),j="focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]",E=f.cva(j,{variants:{variant:{primary:["bg-primary-600 lg:hover:bg-primary-800 text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],secondary:["bg-black text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 lg:hover:bg-neutral-900 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],inverse:["lg:hover:bg-neutral-000 bg-white text-black outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],outline:["text-primary-600 outline-primary-600 lg:hover:bg-primary-050 bg-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:outline-transparent disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],ghost:["bg-primary-050 text-primary-600 lg:hover:bg-primary-100 outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],destructive:["bg-error-light text-error-main outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],link:["text-primary-600 lg:hover:bg-primary-050 bg-transparent outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"]},size:{xl:"h-12 gap-2 px-6 py-1 text-base",lg:"h-10 gap-2 px-5 py-1 text-sm",md:"h-8 gap-1.5 px-4 py-1 text-xs",sm:"h-7 gap-1 px-3 py-1 text-xs",xs:"h-6 gap-1 px-3 py-1 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"outline-neutral-050 text-primary-600 lg:hover:bg-neutral-000 bg-white"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"text-primary-600 lg:hover:bg-primary-050 bg-transparent"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-1.5"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-1.5"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1.5"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-1.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-1.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),R=f.cva(`${j} cursor-default`,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"h-12 gap-2 px-6 text-base",lg:"h-10 gap-2 px-5 text-sm",md:"h-8 gap-1.5 px-4 text-xs",sm:"h-7 gap-1 px-3 text-xs",xs:"h-6 gap-1 px-3 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-3"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-2"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-0.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-0.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),C=f.cva(j,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"h-12 gap-2 px-6 text-base",lg:"h-10 gap-2 px-5 text-sm",md:"h-8 gap-1.5 px-4 text-xs",sm:"h-7 gap-1 px-3 text-xs",xs:"h-6 gap-1 px-3 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-3"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-2"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-0.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-0.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),q=l.forwardRef(({className:m,variant:d,size:s,weight:b,rounded:h,children:a,iconName:r,iconText:y,iconPosition:v="left",isLoading:o,isActive:I,disabled:w,tooltip:p,tooltipPlacement:z="top",asChild:P,...S},N)=>{const T=P?V.Slot:"button",e=l.useMemo(()=>!a&&r||v==="only"?"only":v,[a,r,v]),n=l.useMemo(()=>r?typeof r=="string"?{name:r}:r:null,[r]),u=e==="only"?{xl:"min-w-6 h-6",lg:"min-w-6 h-6",md:"min-w-5 h-5",sm:"min-w-4 h-4",xs:"min-w-3.5 h-3.5"}:{xl:"min-w-5 h-5",lg:"min-w-5 h-5",md:"min-w-4 h-4",sm:"min-w-4 h-4",xs:"min-w-3.5 h-3.5"},k=t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e==="only"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:o?t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:"IconLoader2",className:g.cn("animate-spin",u[s||"xl"])}):n&&t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:n.name,stroke:n.stroke,iconText:y,size:24})}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("span",{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${o?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:"IconLoader2",className:g.cn("animate-spin",u[s||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:g.cn("flex items-center justify-center gap-2",o?"invisible opacity-0":"visible opacity-100"),children:[n&&e==="left"&&t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:n.name,iconText:y,stroke:n.stroke,className:u[s||"xl"]}),a,n&&e==="right"&&t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:n.name,iconText:y,stroke:n.stroke,className:u[s||"xl"]})]})]})}),c=t.jsxRuntimeExports.jsx(T,{ref:N,className:g.cn(o?R({variant:d,weight:b,size:s,rounded:h,iconPosition:e,className:m}):I?C({variant:d,weight:b,size:s,rounded:h,iconPosition:e,className:m}):E({variant:d,weight:b,size:s,rounded:h,iconPosition:e,className:m})),disabled:w||o,...S,children:P?l.isValidElement(a)?l.cloneElement(a,{},k):a:k});return p&&(w||o)?t.jsxRuntimeExports.jsx(i.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(i.Tooltip,{children:[t.jsxRuntimeExports.jsx(i.TooltipTrigger,{asChild:e==="only",children:e==="only"?t.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:c}):c}),t.jsxRuntimeExports.jsx(i.TooltipContent,{side:z,className:"text-muted-foreground",children:p})]})}):p?t.jsxRuntimeExports.jsx(i.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(i.Tooltip,{children:[t.jsxRuntimeExports.jsx(i.TooltipTrigger,{asChild:e==="only",children:c}),t.jsxRuntimeExports.jsx(i.TooltipContent,{side:z,className:"text-muted-foreground",children:p})]})}):c});q.displayName="Button";exports.Button=q;exports.buttonActiveStyles=C;exports.buttonLoadingStyles=R;exports.buttonStyles=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-CEDi24JD.cjs"),u=require("@radix-ui/react-alert-dialog"),i=require("../button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-CEDi24JD.cjs"),u=require("@radix-ui/react-alert-dialog"),i=require("../button-DVFHfLyC.cjs"),r=require("../index-DoxiiusW.cjs");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(e,l,n.get?n:{enumerable:!0,get:()=>t[l]})}}return e.default=t,Object.freeze(e)}const o=d(u);function g({...t}){return a.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function x({...t}){return a.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function s({...t}){return a.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:r.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function m({className:t,...e}){return a.jsxRuntimeExports.jsxs(s,{children:[a.jsxRuntimeExports.jsx(c,{}),a.jsxRuntimeExports.jsx(o.Content,{"data-slot":"alert-dialog-content",className:r.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...e})]})}function f({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:r.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:r.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Title,{"data-slot":"alert-dialog-title",className:r.cn("text-lg font-semibold",t),...e})}function D({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Description,{"data-slot":"alert-dialog-description",className:r.cn("text-muted-foreground text-sm",t),...e})}function A({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Action,{className:r.cn(i.buttonStyles(),t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Cancel,{className:r.cn(i.buttonStyles({variant:"outline"}),t),...e})}exports.AlertDialog=g;exports.AlertDialogAction=A;exports.AlertDialogCancel=b;exports.AlertDialogContent=m;exports.AlertDialogDescription=D;exports.AlertDialogFooter=p;exports.AlertDialogHeader=f;exports.AlertDialogOverlay=c;exports.AlertDialogPortal=s;exports.AlertDialogTitle=j;exports.AlertDialogTrigger=x;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as o from "@radix-ui/react-alert-dialog";
|
|
3
|
-
import { c as r } from "../button-
|
|
3
|
+
import { c as r } from "../button-BVN4jg0O.js";
|
|
4
4
|
import { c as l } from "../index-CRiPKpXj.js";
|
|
5
5
|
function g({
|
|
6
6
|
...t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-DVFHfLyC.cjs");exports.Button=t.Button;exports.buttonActiveStyles=t.buttonActiveStyles;exports.buttonLoadingStyles=t.buttonLoadingStyles;exports.buttonStyles=t.buttonStyles;
|