@clasing/ui 2.0.3 → 2.0.5
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/{badge-CJxUpkWv.js → badge-DgjaD6g5.js} +24 -24
- package/dist/{badge-DknEN5GE.cjs → badge-DuEEk3J_.cjs} +1 -1
- package/dist/{button-C5IBh3Tr.js → button-D8hlW1CJ.js} +123 -123
- package/dist/button-U1793OQ4.cjs +1 -0
- package/dist/{card-D0D_gMHR.cjs → card-BJMc0row.cjs} +1 -1
- package/dist/{card-9-UcGdV0.js → card-DPaMJS2f.js} +1 -1
- package/dist/{chip-D12iiF8O.js → chip-C5OWe3FG.js} +21 -21
- package/dist/chip-CXa6E8Cf.cjs +1 -0
- package/dist/command-B7wbtmbM.cjs +1 -0
- package/dist/command-RWDkdfba.js +176 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +23 -23
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +14 -14
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.es.js +35 -35
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +9 -9
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +37 -37
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +10 -10
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +10 -10
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +8 -8
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +3 -3
- package/dist/components/chart.es.js +24 -24
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.es.js +1 -1
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.es.js +39 -39
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +30 -30
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +15 -15
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +3 -3
- package/dist/components/icon-component.cjs.js +1 -1
- package/dist/components/icon-component.es.js +1 -1
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +4 -4
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +42 -42
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +8 -8
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +7 -7
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.d.ts +0 -5
- package/dist/components/phone-input.es.js +112 -154
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +30 -27
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +2 -2
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +28 -28
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +1 -1
- package/dist/components/textarea.es.js +19 -19
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +1 -1
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/{dialog-DIua9sAl.js → dialog-BSEMFrzb.js} +37 -37
- package/dist/{dialog-C15HjAtO.cjs → dialog-aYmcf_6q.cjs} +1 -1
- package/dist/icon-component-4lyl8wE_.cjs +1 -0
- package/dist/{icon-component-CxQsODCa.js → icon-component-Db_44zX2.js} +2 -2
- package/dist/{input-Bs18T-Y3.js → input-CUpmfQgR.js} +29 -29
- package/dist/input-belq5zLm.cjs +1 -0
- package/dist/label-CKObiJEl.js +22 -0
- package/dist/{label-U5GnYvFO.cjs → label-RxaHfl3U.cjs} +1 -1
- package/dist/{toggle-nsKZaKsW.js → toggle-DkQSX3ux.js} +13 -13
- package/dist/toggle-v18XjPC4.cjs +1 -0
- package/dist/{tooltip-Bxh10S4Q.js → tooltip-DgWl3klK.js} +1 -1
- package/dist/tooltip-__VfWmJD.cjs +1 -0
- package/dist/ui.css +692 -688
- package/package.json +357 -357
- package/dist/button-BnSM-lrr.cjs +0 -1
- package/dist/chip-DePZ5IYA.cjs +0 -1
- package/dist/command-C4Y6Ixrp.cjs +0 -1
- package/dist/command-pED95x7-.js +0 -176
- package/dist/icon-component-D5YssRbR.cjs +0 -1
- package/dist/input-wSGCWBH-.cjs +0 -1
- package/dist/label-_kG7WBoJ.js +0 -22
- package/dist/toggle-B9JMLYVf.cjs +0 -1
- package/dist/tooltip-BRSR0-4n.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { c
|
|
4
|
-
import { c as
|
|
5
|
-
import { I as o } from "./icon-component-
|
|
6
|
-
const x =
|
|
1
|
+
import { j as e } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { Slot as h } from "@radix-ui/react-slot";
|
|
3
|
+
import { c } from "./index-BqtVL8d-.js";
|
|
4
|
+
import { c as f } from "./index-CRiPKpXj.js";
|
|
5
|
+
import { I as o } from "./icon-component-Db_44zX2.js";
|
|
6
|
+
const x = c(
|
|
7
7
|
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-2 overflow-hidden border font-semibold whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -23,10 +23,10 @@ const x = f(
|
|
|
23
23
|
violet: "border-transparent bg-violet-600 text-white [a&]:hover:bg-violet-600/90"
|
|
24
24
|
},
|
|
25
25
|
size: {
|
|
26
|
-
xs: "px-3 py-px
|
|
27
|
-
sm: "px-4 py-1
|
|
28
|
-
md: "px-4 py-2
|
|
29
|
-
lg: "px-4 py-2
|
|
26
|
+
xs: "paragraph-xs px-3 py-px [&>svg]:size-3",
|
|
27
|
+
sm: "paragraph-xs px-4 py-1 [&>svg]:size-4",
|
|
28
|
+
md: "paragraph-sm px-4 py-2 [&>svg]:size-4",
|
|
29
|
+
lg: "paragraph-md px-4 py-2 [&>svg]:size-5"
|
|
30
30
|
},
|
|
31
31
|
weight: {
|
|
32
32
|
light: "font-light",
|
|
@@ -50,32 +50,32 @@ const x = f(
|
|
|
50
50
|
function z({
|
|
51
51
|
className: s,
|
|
52
52
|
variant: n,
|
|
53
|
-
size:
|
|
54
|
-
weight:
|
|
53
|
+
size: g,
|
|
54
|
+
weight: d,
|
|
55
55
|
rounded: l,
|
|
56
|
-
iconName:
|
|
56
|
+
iconName: r,
|
|
57
57
|
iconPosition: t = "left",
|
|
58
58
|
iconStroke: a,
|
|
59
59
|
iconOnly: i,
|
|
60
60
|
asChild: b = !1,
|
|
61
|
-
children:
|
|
62
|
-
...
|
|
61
|
+
children: p,
|
|
62
|
+
...u
|
|
63
63
|
}) {
|
|
64
|
-
const
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
|
|
64
|
+
const v = b ? h : "span";
|
|
65
|
+
return /* @__PURE__ */ e.jsxs(
|
|
66
|
+
v,
|
|
67
67
|
{
|
|
68
68
|
"data-slot": "badge",
|
|
69
|
-
className:
|
|
70
|
-
x({ variant: n, size:
|
|
69
|
+
className: f(
|
|
70
|
+
x({ variant: n, size: g, weight: d, rounded: l }),
|
|
71
71
|
i && "px-2.5 py-2",
|
|
72
72
|
s
|
|
73
73
|
),
|
|
74
|
-
...
|
|
74
|
+
...u,
|
|
75
75
|
children: [
|
|
76
|
-
|
|
77
|
-
!i &&
|
|
78
|
-
|
|
76
|
+
r && t === "left" && /* @__PURE__ */ e.jsx(o, { iconName: r, stroke: a }),
|
|
77
|
+
!i && p,
|
|
78
|
+
r && t === "right" && /* @__PURE__ */ e.jsx(o, { iconName: r, stroke: a })
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./jsx-runtime-BuHQgaKs.cjs"),
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-BuHQgaKs.cjs"),v=require("@radix-ui/react-slot"),h=require("./index-C8P6Mn4U.cjs"),x=require("./index-DoxiiusW.cjs"),i=require("./icon-component-4lyl8wE_.cjs"),f=h.cva("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-2 overflow-hidden border font-semibold whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none",{variants:{variant:{default:"bg-muted text-muted-foreground [a&]:hover:bg-muted/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",error:"bg-error-light text-error-main [a&]:hover:bg-error-light/90 border-transparent",warning:"bg-warning-light text-warning-main [a&]:hover:bg-warning-light/90 border-transparent",success:"bg-success-light text-success-main [a&]:hover:bg-success-light/90 border-transparent",info:"bg-info-light text-info-main [a&]:hover:bg-info-light/90 border-transparent",neutral:"border-transparent bg-black text-white [a&]:hover:bg-black/90",primary:"bg-primary-600 [a&]:hover:bg-primary-600/90 border-transparent text-white",yellow:"border-transparent bg-yellow-600 text-white [a&]:hover:bg-yellow-600/90",blue:"border-transparent bg-blue-600 text-white [a&]:hover:bg-blue-600/90",violet:"border-transparent bg-violet-600 text-white [a&]:hover:bg-violet-600/90"},size:{xs:"paragraph-xs px-3 py-px [&>svg]:size-3",sm:"paragraph-xs px-4 py-1 [&>svg]:size-4",md:"paragraph-sm px-4 py-2 [&>svg]:size-4",lg:"paragraph-md px-4 py-2 [&>svg]:size-5"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{default:"rounded-2xl",full:"rounded-full"}},defaultVariants:{variant:"default",size:"xs",weight:"semibold",rounded:"full"}});function m({className:s,variant:o,size:d,weight:g,rounded:l,iconName:e,iconPosition:t="left",iconStroke:a,iconOnly:n,asChild:b=!1,children:u,...c}){const p=b?v.Slot:"span";return r.jsxRuntimeExports.jsxs(p,{"data-slot":"badge",className:x.cn(f({variant:o,size:d,weight:g,rounded:l}),n&&"px-2.5 py-2",s),...c,children:[e&&t==="left"&&r.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e,stroke:a}),!n&&u,e&&t==="right"&&r.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e,stroke:a})]})}exports.Badge=m;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as a } from "./jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { c as p } from "./index-CRiPKpXj.js";
|
|
3
3
|
import { Slot as M } from "@radix-ui/react-slot";
|
|
4
4
|
import { c as z } from "./index-BqtVL8d-.js";
|
|
5
|
-
import
|
|
6
|
-
import { I as
|
|
7
|
-
import { b as w, T as I, c as C, a as V } from "./tooltip-
|
|
5
|
+
import g from "react";
|
|
6
|
+
import { I as s } from "./icon-component-Db_44zX2.js";
|
|
7
|
+
import { b as w, T as I, c as C, a as V } from "./tooltip-DgWl3klK.js";
|
|
8
8
|
const k = "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]", T = z(k, {
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -32,11 +32,11 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
size: {
|
|
35
|
-
xl: "h-12 gap-2 px-6 py-1
|
|
36
|
-
lg: "h-10 gap-2 px-5 py-1
|
|
37
|
-
md: "h-8 gap-1.5 px-4 py-1
|
|
38
|
-
sm: "h-7 gap-1 px-3 py-1
|
|
39
|
-
xs: "h-6 gap-1 px-3 py-1
|
|
35
|
+
xl: "paragraph-md h-12 gap-2 px-6 py-1",
|
|
36
|
+
lg: "paragraph-sm h-10 gap-2 px-5 py-1",
|
|
37
|
+
md: "paragraph-xs h-8 gap-1.5 px-4 py-1",
|
|
38
|
+
sm: "paragraph-xs h-7 gap-1 px-3 py-1",
|
|
39
|
+
xs: "paragraph-xs h-6 gap-1 px-3 py-1"
|
|
40
40
|
},
|
|
41
41
|
rounded: {
|
|
42
42
|
default: "rounded-2xl",
|
|
@@ -98,27 +98,27 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
98
98
|
{
|
|
99
99
|
variant: "link",
|
|
100
100
|
size: "xl",
|
|
101
|
-
class: "h-auto gap-2 px-3 py-1
|
|
101
|
+
class: "paragraph-md h-auto gap-2 px-3 py-1"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
variant: "link",
|
|
105
105
|
size: "lg",
|
|
106
|
-
class: "h-auto gap-2 px-3 py-1
|
|
106
|
+
class: "paragraph-md h-auto gap-2 px-3 py-1"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
variant: "link",
|
|
110
110
|
size: "md",
|
|
111
|
-
class: "h-auto gap-1.5 px-3 py-1
|
|
111
|
+
class: "paragraph-sm h-auto gap-1.5 px-3 py-1"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
variant: "link",
|
|
115
115
|
size: "sm",
|
|
116
|
-
class: "h-auto gap-1 px-3 py-1
|
|
116
|
+
class: "paragraph-xs h-auto gap-1 px-3 py-1"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
variant: "link",
|
|
120
120
|
size: "xs",
|
|
121
|
-
class: "h-auto gap-1 px-3 py-1
|
|
121
|
+
class: "paragraph-xs h-auto gap-1 px-3 py-1"
|
|
122
122
|
}
|
|
123
123
|
],
|
|
124
124
|
defaultVariants: {
|
|
@@ -140,11 +140,11 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
140
140
|
link: ["bg-primary-050 text-primary-600"]
|
|
141
141
|
},
|
|
142
142
|
size: {
|
|
143
|
-
xl: "h-12 gap-2 px-6
|
|
144
|
-
lg: "h-10 gap-2 px-5
|
|
145
|
-
md: "h-8 gap-1.5 px-4
|
|
146
|
-
sm: "h-7 gap-1 px-3
|
|
147
|
-
xs: "h-6 gap-1 px-3
|
|
143
|
+
xl: "paragraph-md h-12 gap-2 px-6",
|
|
144
|
+
lg: "paragraph-sm h-10 gap-2 px-5",
|
|
145
|
+
md: "paragraph-xs h-8 gap-1.5 px-4",
|
|
146
|
+
sm: "paragraph-xs h-7 gap-1 px-3",
|
|
147
|
+
xs: "paragraph-xs h-6 gap-1 px-3"
|
|
148
148
|
},
|
|
149
149
|
rounded: {
|
|
150
150
|
default: "rounded-2xl",
|
|
@@ -209,27 +209,27 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
209
209
|
{
|
|
210
210
|
variant: "link",
|
|
211
211
|
size: "xl",
|
|
212
|
-
class: "h-auto gap-2 px-3 py-1
|
|
212
|
+
class: "paragraph-md h-auto gap-2 px-3 py-1"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
variant: "link",
|
|
216
216
|
size: "lg",
|
|
217
|
-
class: "h-auto gap-2 px-3 py-1
|
|
217
|
+
class: "paragraph-md h-auto gap-2 px-3 py-1"
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
variant: "link",
|
|
221
221
|
size: "md",
|
|
222
|
-
class: "h-auto gap-1.5 px-3 py-1
|
|
222
|
+
class: "paragraph-sm h-auto gap-1.5 px-3 py-1"
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
variant: "link",
|
|
226
226
|
size: "sm",
|
|
227
|
-
class: "h-auto gap-1 px-3 py-1
|
|
227
|
+
class: "paragraph-xs h-auto gap-1 px-3 py-1"
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
variant: "link",
|
|
231
231
|
size: "xs",
|
|
232
|
-
class: "h-auto gap-1 px-3 py-1
|
|
232
|
+
class: "paragraph-xs h-auto gap-1 px-3 py-1"
|
|
233
233
|
}
|
|
234
234
|
],
|
|
235
235
|
defaultVariants: {
|
|
@@ -251,11 +251,11 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
251
251
|
link: ["bg-primary-050 text-primary-600"]
|
|
252
252
|
},
|
|
253
253
|
size: {
|
|
254
|
-
xl: "h-12 gap-2 px-6
|
|
255
|
-
lg: "h-10 gap-2 px-5
|
|
256
|
-
md: "h-8 gap-1.5 px-4
|
|
257
|
-
sm: "h-7 gap-1 px-3
|
|
258
|
-
xs: "h-6 gap-1 px-3
|
|
254
|
+
xl: "paragraph-md h-12 gap-2 px-6",
|
|
255
|
+
lg: "paragraph-sm h-10 gap-2 px-5",
|
|
256
|
+
md: "paragraph-xs h-8 gap-1.5 px-4",
|
|
257
|
+
sm: "paragraph-xs h-7 gap-1 px-3",
|
|
258
|
+
xs: "paragraph-xs h-6 gap-1 px-3"
|
|
259
259
|
},
|
|
260
260
|
rounded: {
|
|
261
261
|
default: "rounded-2xl",
|
|
@@ -320,27 +320,27 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
320
320
|
{
|
|
321
321
|
variant: "link",
|
|
322
322
|
size: "xl",
|
|
323
|
-
class: "h-auto gap-2 px-3 py-1
|
|
323
|
+
class: "paragraph-md h-auto gap-2 px-3 py-1"
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
variant: "link",
|
|
327
327
|
size: "lg",
|
|
328
|
-
class: "h-auto gap-2 px-3 py-1
|
|
328
|
+
class: "paragraph-md h-auto gap-2 px-3 py-1"
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
331
|
variant: "link",
|
|
332
332
|
size: "md",
|
|
333
|
-
class: "h-auto gap-1.5 px-3 py-1
|
|
333
|
+
class: "paragraph-sm h-auto gap-1.5 px-3 py-1"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
variant: "link",
|
|
337
337
|
size: "sm",
|
|
338
|
-
class: "h-auto gap-1 px-3 py-1
|
|
338
|
+
class: "paragraph-xs h-auto gap-1 px-3 py-1"
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
variant: "link",
|
|
342
342
|
size: "xs",
|
|
343
|
-
class: "h-auto gap-1 px-3 py-1
|
|
343
|
+
class: "paragraph-xs h-auto gap-1 px-3 py-1"
|
|
344
344
|
}
|
|
345
345
|
],
|
|
346
346
|
defaultVariants: {
|
|
@@ -350,18 +350,18 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
350
350
|
rounded: "full",
|
|
351
351
|
iconPosition: "left"
|
|
352
352
|
}
|
|
353
|
-
}), G =
|
|
353
|
+
}), G = g.forwardRef(
|
|
354
354
|
({
|
|
355
|
-
className:
|
|
356
|
-
variant:
|
|
357
|
-
size:
|
|
358
|
-
weight:
|
|
359
|
-
rounded:
|
|
355
|
+
className: x,
|
|
356
|
+
variant: h,
|
|
357
|
+
size: r,
|
|
358
|
+
weight: b,
|
|
359
|
+
rounded: y,
|
|
360
360
|
children: l,
|
|
361
361
|
iconName: o,
|
|
362
362
|
iconText: c,
|
|
363
363
|
iconPosition: v = "left",
|
|
364
|
-
isLoading:
|
|
364
|
+
isLoading: i,
|
|
365
365
|
isActive: E,
|
|
366
366
|
disabled: j,
|
|
367
367
|
tooltip: d,
|
|
@@ -369,7 +369,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
369
369
|
asChild: f,
|
|
370
370
|
...S
|
|
371
371
|
}, B) => {
|
|
372
|
-
const F = f ? M : "button",
|
|
372
|
+
const F = f ? M : "button", e = g.useMemo(() => !l && o || v === "only" ? "only" : v, [l, o, v]), t = g.useMemo(() => o ? typeof o == "string" ? { name: o } : o : null, [o]), n = e === "only" ? {
|
|
373
373
|
xl: "size-6",
|
|
374
374
|
lg: "size-6",
|
|
375
375
|
md: "size-5",
|
|
@@ -381,64 +381,64 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
381
381
|
md: "size-4",
|
|
382
382
|
sm: "size-4",
|
|
383
383
|
xs: "size-3.5"
|
|
384
|
-
}, q = /* @__PURE__ */
|
|
384
|
+
}, q = /* @__PURE__ */ a.jsx(a.Fragment, { children: e === "only" ? (
|
|
385
385
|
// Renderizado para modo icon-only
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
|
|
386
|
+
/* @__PURE__ */ a.jsx(a.Fragment, { children: i ? /* @__PURE__ */ a.jsx(
|
|
387
|
+
s,
|
|
388
388
|
{
|
|
389
389
|
iconName: "IconLoader2",
|
|
390
|
-
className: p("animate-spin", r
|
|
390
|
+
className: p("animate-spin", n[r || "xl"])
|
|
391
391
|
}
|
|
392
|
-
) :
|
|
393
|
-
|
|
392
|
+
) : t && /* @__PURE__ */ a.jsx(
|
|
393
|
+
s,
|
|
394
394
|
{
|
|
395
|
-
iconName:
|
|
396
|
-
stroke:
|
|
395
|
+
iconName: t.name,
|
|
396
|
+
stroke: t.stroke,
|
|
397
397
|
iconText: c,
|
|
398
|
-
className: r
|
|
398
|
+
className: n[r || "xl"]
|
|
399
399
|
}
|
|
400
400
|
) })
|
|
401
401
|
) : (
|
|
402
402
|
// Renderizado para modo botón normal con texto
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
404
|
+
/* @__PURE__ */ a.jsx(
|
|
405
405
|
"span",
|
|
406
406
|
{
|
|
407
|
-
className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${
|
|
408
|
-
children: /* @__PURE__ */
|
|
409
|
-
|
|
407
|
+
className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${i ? "visible opacity-100" : "invisible opacity-0"}`,
|
|
408
|
+
children: /* @__PURE__ */ a.jsx(
|
|
409
|
+
s,
|
|
410
410
|
{
|
|
411
411
|
iconName: "IconLoader2",
|
|
412
|
-
className: p("animate-spin", r
|
|
412
|
+
className: p("animate-spin", n[r || "xl"])
|
|
413
413
|
}
|
|
414
414
|
)
|
|
415
415
|
}
|
|
416
416
|
),
|
|
417
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ a.jsxs(
|
|
418
418
|
"span",
|
|
419
419
|
{
|
|
420
420
|
className: p(
|
|
421
421
|
"flex items-center justify-center gap-2",
|
|
422
|
-
|
|
422
|
+
i ? "invisible opacity-0" : "visible opacity-100"
|
|
423
423
|
),
|
|
424
424
|
children: [
|
|
425
|
-
|
|
426
|
-
|
|
425
|
+
t && e === "left" && /* @__PURE__ */ a.jsx(
|
|
426
|
+
s,
|
|
427
427
|
{
|
|
428
|
-
iconName:
|
|
428
|
+
iconName: t.name,
|
|
429
429
|
iconText: c,
|
|
430
|
-
stroke:
|
|
431
|
-
className: r
|
|
430
|
+
stroke: t.stroke,
|
|
431
|
+
className: n[r || "xl"]
|
|
432
432
|
}
|
|
433
433
|
),
|
|
434
434
|
l,
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
t && e === "right" && /* @__PURE__ */ a.jsx(
|
|
436
|
+
s,
|
|
437
437
|
{
|
|
438
|
-
iconName:
|
|
438
|
+
iconName: t.name,
|
|
439
439
|
iconText: c,
|
|
440
|
-
stroke:
|
|
441
|
-
className: r
|
|
440
|
+
stroke: t.stroke,
|
|
441
|
+
className: n[r || "xl"]
|
|
442
442
|
}
|
|
443
443
|
)
|
|
444
444
|
]
|
|
@@ -446,105 +446,105 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
446
446
|
)
|
|
447
447
|
] })
|
|
448
448
|
) }), R = () => {
|
|
449
|
-
if (!f || !
|
|
449
|
+
if (!f || !g.isValidElement(l) || !t && e !== "only")
|
|
450
450
|
return l;
|
|
451
451
|
const u = l, $ = u.props.children;
|
|
452
|
-
if (
|
|
453
|
-
return
|
|
452
|
+
if (e === "only")
|
|
453
|
+
return g.cloneElement(u, {
|
|
454
454
|
...u.props,
|
|
455
|
-
children:
|
|
456
|
-
|
|
455
|
+
children: i ? /* @__PURE__ */ a.jsx(
|
|
456
|
+
s,
|
|
457
457
|
{
|
|
458
458
|
iconName: "IconLoader2",
|
|
459
|
-
className: p("animate-spin", r
|
|
459
|
+
className: p("animate-spin", n[r || "xl"])
|
|
460
460
|
}
|
|
461
|
-
) :
|
|
462
|
-
|
|
461
|
+
) : t && /* @__PURE__ */ a.jsx(
|
|
462
|
+
s,
|
|
463
463
|
{
|
|
464
|
-
iconName:
|
|
465
|
-
stroke:
|
|
464
|
+
iconName: t.name,
|
|
465
|
+
stroke: t.stroke,
|
|
466
466
|
iconText: c,
|
|
467
467
|
size: 24
|
|
468
468
|
}
|
|
469
469
|
)
|
|
470
470
|
});
|
|
471
|
-
const N =
|
|
472
|
-
|
|
471
|
+
const N = t && /* @__PURE__ */ a.jsx(
|
|
472
|
+
s,
|
|
473
473
|
{
|
|
474
|
-
iconName:
|
|
474
|
+
iconName: t.name,
|
|
475
475
|
iconText: c,
|
|
476
|
-
stroke:
|
|
477
|
-
className: r
|
|
476
|
+
stroke: t.stroke,
|
|
477
|
+
className: n[r || "xl"]
|
|
478
478
|
}
|
|
479
|
-
), A = /* @__PURE__ */
|
|
480
|
-
/* @__PURE__ */
|
|
479
|
+
), A = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
480
|
+
/* @__PURE__ */ a.jsx(
|
|
481
481
|
"span",
|
|
482
482
|
{
|
|
483
|
-
className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${
|
|
484
|
-
children: /* @__PURE__ */
|
|
485
|
-
|
|
483
|
+
className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${i ? "visible opacity-100" : "invisible opacity-0"}`,
|
|
484
|
+
children: /* @__PURE__ */ a.jsx(
|
|
485
|
+
s,
|
|
486
486
|
{
|
|
487
487
|
iconName: "IconLoader2",
|
|
488
|
-
className: p("animate-spin", r
|
|
488
|
+
className: p("animate-spin", n[r || "xl"])
|
|
489
489
|
}
|
|
490
490
|
)
|
|
491
491
|
}
|
|
492
492
|
),
|
|
493
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ a.jsxs(
|
|
494
494
|
"span",
|
|
495
495
|
{
|
|
496
496
|
className: p(
|
|
497
497
|
"flex items-center justify-center gap-2",
|
|
498
|
-
|
|
498
|
+
i ? "invisible opacity-0" : "visible opacity-100"
|
|
499
499
|
),
|
|
500
500
|
children: [
|
|
501
|
-
|
|
501
|
+
e === "left" && N,
|
|
502
502
|
$,
|
|
503
|
-
|
|
503
|
+
e === "right" && N
|
|
504
504
|
]
|
|
505
505
|
}
|
|
506
506
|
)
|
|
507
507
|
] });
|
|
508
|
-
return
|
|
508
|
+
return g.cloneElement(u, {
|
|
509
509
|
...u.props,
|
|
510
510
|
children: A
|
|
511
511
|
});
|
|
512
|
-
},
|
|
512
|
+
}, m = /* @__PURE__ */ a.jsx(
|
|
513
513
|
F,
|
|
514
514
|
{
|
|
515
515
|
ref: B,
|
|
516
516
|
className: p(
|
|
517
|
-
|
|
518
|
-
variant:
|
|
519
|
-
weight:
|
|
520
|
-
size:
|
|
521
|
-
rounded:
|
|
522
|
-
iconPosition:
|
|
523
|
-
className:
|
|
517
|
+
i ? _({
|
|
518
|
+
variant: h,
|
|
519
|
+
weight: b,
|
|
520
|
+
size: r,
|
|
521
|
+
rounded: y,
|
|
522
|
+
iconPosition: e,
|
|
523
|
+
className: x
|
|
524
524
|
}) : E ? D({
|
|
525
|
-
variant:
|
|
526
|
-
weight:
|
|
527
|
-
size:
|
|
528
|
-
rounded:
|
|
529
|
-
iconPosition:
|
|
530
|
-
className:
|
|
525
|
+
variant: h,
|
|
526
|
+
weight: b,
|
|
527
|
+
size: r,
|
|
528
|
+
rounded: y,
|
|
529
|
+
iconPosition: e,
|
|
530
|
+
className: x
|
|
531
531
|
}) : T({
|
|
532
|
-
variant:
|
|
533
|
-
weight:
|
|
534
|
-
size:
|
|
535
|
-
rounded:
|
|
536
|
-
iconPosition:
|
|
537
|
-
className:
|
|
532
|
+
variant: h,
|
|
533
|
+
weight: b,
|
|
534
|
+
size: r,
|
|
535
|
+
rounded: y,
|
|
536
|
+
iconPosition: e,
|
|
537
|
+
className: x
|
|
538
538
|
})
|
|
539
539
|
),
|
|
540
|
-
disabled: j ||
|
|
540
|
+
disabled: j || i,
|
|
541
541
|
...S,
|
|
542
542
|
children: f ? R() : q
|
|
543
543
|
}
|
|
544
544
|
);
|
|
545
|
-
return d && (j ||
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
-
/* @__PURE__ */
|
|
545
|
+
return d && (j || i) ? /* @__PURE__ */ a.jsx(w, { children: /* @__PURE__ */ a.jsxs(I, { children: [
|
|
546
|
+
/* @__PURE__ */ a.jsx(C, { asChild: e === "only", children: e === "only" ? /* @__PURE__ */ a.jsx("div", { className: "inline-block", "aria-disabled": "true", children: m }) : m }),
|
|
547
|
+
/* @__PURE__ */ a.jsx(
|
|
548
548
|
V,
|
|
549
549
|
{
|
|
550
550
|
side: P,
|
|
@@ -552,9 +552,9 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
552
552
|
children: d
|
|
553
553
|
}
|
|
554
554
|
)
|
|
555
|
-
] }) }) : d ? /* @__PURE__ */
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
-
/* @__PURE__ */
|
|
555
|
+
] }) }) : d ? /* @__PURE__ */ a.jsx(w, { children: /* @__PURE__ */ a.jsxs(I, { children: [
|
|
556
|
+
/* @__PURE__ */ a.jsx(C, { asChild: e === "only", children: m }),
|
|
557
|
+
/* @__PURE__ */ a.jsx(
|
|
558
558
|
V,
|
|
559
559
|
{
|
|
560
560
|
side: P,
|
|
@@ -562,7 +562,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
562
562
|
children: d
|
|
563
563
|
}
|
|
564
564
|
)
|
|
565
|
-
] }) }) :
|
|
565
|
+
] }) }) : m;
|
|
566
566
|
}
|
|
567
567
|
);
|
|
568
568
|
G.displayName = "Button";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-BuHQgaKs.cjs"),x=require("./index-DoxiiusW.cjs"),$=require("@radix-ui/react-slot"),z=require("./index-C8P6Mn4U.cjs"),u=require("react"),s=require("./icon-component-4lyl8wE_.cjs"),o=require("./tooltip-__VfWmJD.cjs"),k="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]",C=z.cva(k,{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:"paragraph-md h-12 gap-2 px-6 py-1",lg:"paragraph-sm h-10 gap-2 px-5 py-1",md:"paragraph-xs h-8 gap-1.5 px-4 py-1",sm:"paragraph-xs h-7 gap-1 px-3 py-1",xs:"paragraph-xs h-6 gap-1 px-3 py-1"},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:"size-12 p-1.5"},{iconPosition:"only",size:"lg",class:"size-10 p-1.5"},{iconPosition:"only",size:"md",class:"size-8 p-1.5"},{iconPosition:"only",size:"sm",class:"size-7 p-1.5"},{iconPosition:"only",size:"xs",class:"size-6 p-1.5"},{variant:"link",size:"xl",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"lg",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"md",class:"paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"paragraph-xs h-auto gap-1 px-3 py-1"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),N=z.cva(`${k} 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:"paragraph-md h-12 gap-2 px-6",lg:"paragraph-sm h-10 gap-2 px-5",md:"paragraph-xs h-8 gap-1.5 px-4",sm:"paragraph-xs h-7 gap-1 px-3",xs:"paragraph-xs h-6 gap-1 px-3"},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:"size-12 p-3"},{iconPosition:"only",size:"lg",class:"size-10 p-2"},{iconPosition:"only",size:"md",class:"size-8 p-1"},{iconPosition:"only",size:"sm",class:"size-7 p-0.5"},{iconPosition:"only",size:"xs",class:"size-6 p-0.5"},{variant:"link",size:"xl",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"lg",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"md",class:"paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"paragraph-xs h-auto gap-1 px-3 py-1"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),I=z.cva(k,{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:"paragraph-md h-12 gap-2 px-6",lg:"paragraph-sm h-10 gap-2 px-5",md:"paragraph-xs h-8 gap-1.5 px-4",sm:"paragraph-xs h-7 gap-1 px-3",xs:"paragraph-xs h-6 gap-1 px-3"},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:"size-12 p-3"},{iconPosition:"only",size:"lg",class:"size-10 p-2"},{iconPosition:"only",size:"md",class:"size-8 p-1"},{iconPosition:"only",size:"sm",class:"size-7 p-0.5"},{iconPosition:"only",size:"xs",class:"size-6 p-0.5"},{variant:"link",size:"xl",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"lg",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"md",class:"paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"paragraph-xs h-auto gap-1 px-3 py-1"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),w=u.forwardRef(({className:h,variant:b,size:r,weight:y,rounded:v,children:l,iconName:p,iconText:c,iconPosition:f="left",isLoading:n,isActive:q,disabled:E,tooltip:m,tooltipPlacement:R="top",asChild:j,...S},V)=>{const T=j?$.Slot:"button",a=u.useMemo(()=>!l&&p||f==="only"?"only":f,[l,p,f]),e=u.useMemo(()=>p?typeof p=="string"?{name:p}:p:null,[p]),i=a==="only"?{xl:"size-6",lg:"size-6",md:"size-5",sm:"size-4",xs:"size-3.5"}:{xl:"size-5",lg:"size-5",md:"size-4",sm:"size-4",xs:"size-3.5"},B=t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:a==="only"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:n?t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconLoader2",className:x.cn("animate-spin",i[r||"xl"])}):e&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,stroke:e.stroke,iconText:c,className:i[r||"xl"]})}):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 ${n?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconLoader2",className:x.cn("animate-spin",i[r||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:x.cn("flex items-center justify-center gap-2",n?"invisible opacity-0":"visible opacity-100"),children:[e&&a==="left"&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,iconText:c,stroke:e.stroke,className:i[r||"xl"]}),l,e&&a==="right"&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,iconText:c,stroke:e.stroke,className:i[r||"xl"]})]})]})}),F=()=>{if(!j||!u.isValidElement(l)||!e&&a!=="only")return l;const g=l,A=g.props.children;if(a==="only")return u.cloneElement(g,{...g.props,children:n?t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconLoader2",className:x.cn("animate-spin",i[r||"xl"])}):e&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,stroke:e.stroke,iconText:c,size:24})});const P=e&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,iconText:c,stroke:e.stroke,className:i[r||"xl"]}),M=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 ${n?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconLoader2",className:x.cn("animate-spin",i[r||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:x.cn("flex items-center justify-center gap-2",n?"invisible opacity-0":"visible opacity-100"),children:[a==="left"&&P,A,a==="right"&&P]})]});return u.cloneElement(g,{...g.props,children:M})},d=t.jsxRuntimeExports.jsx(T,{ref:V,className:x.cn(n?N({variant:b,weight:y,size:r,rounded:v,iconPosition:a,className:h}):q?I({variant:b,weight:y,size:r,rounded:v,iconPosition:a,className:h}):C({variant:b,weight:y,size:r,rounded:v,iconPosition:a,className:h})),disabled:E||n,...S,children:j?F():B});return m&&(E||n)?t.jsxRuntimeExports.jsx(o.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(o.Tooltip,{children:[t.jsxRuntimeExports.jsx(o.TooltipTrigger,{asChild:a==="only",children:a==="only"?t.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:d}):d}),t.jsxRuntimeExports.jsx(o.TooltipContent,{side:R,className:"text-muted-foreground",children:m})]})}):m?t.jsxRuntimeExports.jsx(o.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(o.Tooltip,{children:[t.jsxRuntimeExports.jsx(o.TooltipTrigger,{asChild:a==="only",children:d}),t.jsxRuntimeExports.jsx(o.TooltipContent,{side:R,className:"text-muted-foreground",children:m})]})}):d});w.displayName="Button";exports.Button=w;exports.buttonActiveStyles=I;exports.buttonLoadingStyles=N;exports.buttonStyles=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./jsx-runtime-BuHQgaKs.cjs"),e=require("./index-DoxiiusW.cjs");function s({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:e.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6",t),...r})}function n({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:e.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function o({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:e.cn("leading-none font-semibold",t),...r})}function d({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:e.cn("text-muted-foreground
|
|
1
|
+
"use strict";const a=require("./jsx-runtime-BuHQgaKs.cjs"),e=require("./index-DoxiiusW.cjs");function s({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:e.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6",t),...r})}function n({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:e.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function o({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:e.cn("leading-none font-semibold",t),...r})}function d({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:e.cn("text-muted-foreground paragraph-sm",t),...r})}function i({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:e.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...r})}function c({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:e.cn("px-6",t),...r})}function u({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:e.cn("flex items-center px-6 [.border-t]:pt-6",t),...r})}exports.Card=s;exports.CardAction=i;exports.CardContent=c;exports.CardDescription=d;exports.CardFooter=u;exports.CardHeader=n;exports.CardTitle=o;
|