@clasing/ui 2.0.3 → 2.0.4
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-DknEN5GE.cjs → badge-BMe7WNGM.cjs} +1 -1
- package/dist/{badge-CJxUpkWv.js → badge-B_J-uqVk.js} +22 -22
- package/dist/{button-C5IBh3Tr.js → button-DPbsJTTm.js} +81 -81
- package/dist/button-DcyXjceS.cjs +1 -0
- package/dist/{card-9-UcGdV0.js → card-3-vRPTXr.js} +1 -1
- package/dist/{card-D0D_gMHR.cjs → card-DiFJZ6gb.cjs} +1 -1
- package/dist/chip-BCFqRgCq.cjs +1 -0
- package/dist/{chip-D12iiF8O.js → chip-wy9RL5iU.js} +11 -11
- package/dist/{command-pED95x7-.js → command-DTwO6Xc5.js} +53 -53
- package/dist/command-KZ-02POP.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +12 -12
- 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 +33 -33
- 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 +2 -2
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +1 -1
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +5 -5
- 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 +5 -5
- 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/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 +38 -38
- 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 +1 -1
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +14 -14
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +3 -3
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +41 -41
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +2 -2
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +6 -6
- 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 +117 -159
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +25 -22
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +1 -1
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +2 -2
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +1 -1
- package/dist/components/textarea.es.js +4 -4
- 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/{dialog-C15HjAtO.cjs → dialog-CMSUa1RD.cjs} +1 -1
- package/dist/{dialog-DIua9sAl.js → dialog-D9ZObHR9.js} +32 -32
- package/dist/input-B_INrEy1.cjs +1 -0
- package/dist/{input-Bs18T-Y3.js → input-C71fsEVP.js} +11 -11
- package/dist/{toggle-nsKZaKsW.js → toggle-BE4UelY4.js} +9 -9
- package/dist/toggle-BEGyyGWY.cjs +1 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/button-BnSM-lrr.cjs +0 -1
- package/dist/chip-DePZ5IYA.cjs +0 -1
- package/dist/command-C4Y6Ixrp.cjs +0 -1
- package/dist/input-wSGCWBH-.cjs +0 -1
- package/dist/toggle-B9JMLYVf.cjs +0 -1
|
@@ -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"),x=require("./index-C8P6Mn4U.cjs"),h=require("./index-DoxiiusW.cjs"),i=require("./icon-component-D5YssRbR.cjs"),f=x.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:"text-paragraph-xs px-3 py-px [&>svg]:size-3",sm:"text-paragraph-xs px-4 py-1 [&>svg]:size-4",md:"text-paragraph-sm px-4 py-2 [&>svg]:size-4",lg:"px-4 py-2 text-base [&>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:h.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,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { c
|
|
4
|
-
import { c as
|
|
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
5
|
import { I as o } from "./icon-component-CxQsODCa.js";
|
|
6
|
-
const x =
|
|
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,9 +23,9 @@ 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
|
|
26
|
+
xs: "text-paragraph-xs px-3 py-px [&>svg]:size-3",
|
|
27
|
+
sm: "text-paragraph-xs px-4 py-1 [&>svg]:size-4",
|
|
28
|
+
md: "text-paragraph-sm px-4 py-2 [&>svg]:size-4",
|
|
29
29
|
lg: "px-4 py-2 text-base [&>svg]:size-5"
|
|
30
30
|
},
|
|
31
31
|
weight: {
|
|
@@ -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
|
);
|
|
@@ -3,7 +3,7 @@ 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
5
|
import x from "react";
|
|
6
|
-
import { I as
|
|
6
|
+
import { I as s } from "./icon-component-CxQsODCa.js";
|
|
7
7
|
import { b as w, T as I, c as C, a as V } from "./tooltip-Bxh10S4Q.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: {
|
|
@@ -33,10 +33,10 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
33
33
|
},
|
|
34
34
|
size: {
|
|
35
35
|
xl: "h-12 gap-2 px-6 py-1 text-base",
|
|
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
|
|
36
|
+
lg: "text-paragraph-sm h-10 gap-2 px-5 py-1",
|
|
37
|
+
md: "text-paragraph-xs h-8 gap-1.5 px-4 py-1",
|
|
38
|
+
sm: "text-paragraph-xs h-7 gap-1 px-3 py-1",
|
|
39
|
+
xs: "text-paragraph-xs h-6 gap-1 px-3 py-1"
|
|
40
40
|
},
|
|
41
41
|
rounded: {
|
|
42
42
|
default: "rounded-2xl",
|
|
@@ -108,17 +108,17 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
108
108
|
{
|
|
109
109
|
variant: "link",
|
|
110
110
|
size: "md",
|
|
111
|
-
class: "h-auto gap-1.5 px-3 py-1
|
|
111
|
+
class: "text-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: "text-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: "text-paragraph-xs h-auto gap-1 px-3 py-1"
|
|
122
122
|
}
|
|
123
123
|
],
|
|
124
124
|
defaultVariants: {
|
|
@@ -141,10 +141,10 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
141
141
|
},
|
|
142
142
|
size: {
|
|
143
143
|
xl: "h-12 gap-2 px-6 text-base",
|
|
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
|
|
144
|
+
lg: "text-paragraph-sm h-10 gap-2 px-5",
|
|
145
|
+
md: "text-paragraph-xs h-8 gap-1.5 px-4",
|
|
146
|
+
sm: "text-paragraph-xs h-7 gap-1 px-3",
|
|
147
|
+
xs: "text-paragraph-xs h-6 gap-1 px-3"
|
|
148
148
|
},
|
|
149
149
|
rounded: {
|
|
150
150
|
default: "rounded-2xl",
|
|
@@ -219,17 +219,17 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
219
219
|
{
|
|
220
220
|
variant: "link",
|
|
221
221
|
size: "md",
|
|
222
|
-
class: "h-auto gap-1.5 px-3 py-1
|
|
222
|
+
class: "text-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: "text-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: "text-paragraph-xs h-auto gap-1 px-3 py-1"
|
|
233
233
|
}
|
|
234
234
|
],
|
|
235
235
|
defaultVariants: {
|
|
@@ -252,10 +252,10 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
252
252
|
},
|
|
253
253
|
size: {
|
|
254
254
|
xl: "h-12 gap-2 px-6 text-base",
|
|
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
|
|
255
|
+
lg: "text-paragraph-sm h-10 gap-2 px-5",
|
|
256
|
+
md: "text-paragraph-xs h-8 gap-1.5 px-4",
|
|
257
|
+
sm: "text-paragraph-xs h-7 gap-1 px-3",
|
|
258
|
+
xs: "text-paragraph-xs h-6 gap-1 px-3"
|
|
259
259
|
},
|
|
260
260
|
rounded: {
|
|
261
261
|
default: "rounded-2xl",
|
|
@@ -330,17 +330,17 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
330
330
|
{
|
|
331
331
|
variant: "link",
|
|
332
332
|
size: "md",
|
|
333
|
-
class: "h-auto gap-1.5 px-3 py-1
|
|
333
|
+
class: "text-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: "text-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: "text-paragraph-xs h-auto gap-1 px-3 py-1"
|
|
344
344
|
}
|
|
345
345
|
],
|
|
346
346
|
defaultVariants: {
|
|
@@ -354,22 +354,22 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
354
354
|
({
|
|
355
355
|
className: m,
|
|
356
356
|
variant: b,
|
|
357
|
-
size:
|
|
358
|
-
weight:
|
|
359
|
-
rounded:
|
|
357
|
+
size: r,
|
|
358
|
+
weight: h,
|
|
359
|
+
rounded: y,
|
|
360
360
|
children: l,
|
|
361
361
|
iconName: o,
|
|
362
|
-
iconText:
|
|
362
|
+
iconText: g,
|
|
363
363
|
iconPosition: v = "left",
|
|
364
|
-
isLoading:
|
|
364
|
+
isLoading: i,
|
|
365
365
|
isActive: E,
|
|
366
366
|
disabled: j,
|
|
367
|
-
tooltip:
|
|
367
|
+
tooltip: u,
|
|
368
368
|
tooltipPlacement: P = "top",
|
|
369
369
|
asChild: f,
|
|
370
370
|
...S
|
|
371
371
|
}, B) => {
|
|
372
|
-
const F = f ? M : "button", a = x.useMemo(() => !l && o || v === "only" ? "only" : v, [l, o, v]), e = x.useMemo(() => o ? typeof o == "string" ? { name: o } : o : null, [o]),
|
|
372
|
+
const F = f ? M : "button", a = x.useMemo(() => !l && o || v === "only" ? "only" : v, [l, o, v]), e = x.useMemo(() => o ? typeof o == "string" ? { name: o } : o : null, [o]), n = a === "only" ? {
|
|
373
373
|
xl: "size-6",
|
|
374
374
|
lg: "size-6",
|
|
375
375
|
md: "size-5",
|
|
@@ -383,19 +383,19 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
383
383
|
xs: "size-3.5"
|
|
384
384
|
}, q = /* @__PURE__ */ t.jsx(t.Fragment, { children: a === "only" ? (
|
|
385
385
|
// Renderizado para modo icon-only
|
|
386
|
-
/* @__PURE__ */ t.jsx(t.Fragment, { children:
|
|
387
|
-
|
|
386
|
+
/* @__PURE__ */ t.jsx(t.Fragment, { children: i ? /* @__PURE__ */ t.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
392
|
) : e && /* @__PURE__ */ t.jsx(
|
|
393
|
-
|
|
393
|
+
s,
|
|
394
394
|
{
|
|
395
395
|
iconName: e.name,
|
|
396
396
|
stroke: e.stroke,
|
|
397
|
-
iconText:
|
|
398
|
-
className: r
|
|
397
|
+
iconText: g,
|
|
398
|
+
className: n[r || "xl"]
|
|
399
399
|
}
|
|
400
400
|
) })
|
|
401
401
|
) : (
|
|
@@ -404,12 +404,12 @@ const k = "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 ${i ? "visible opacity-100" : "invisible opacity-0"}`,
|
|
408
408
|
children: /* @__PURE__ */ t.jsx(
|
|
409
|
-
|
|
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
|
}
|
|
@@ -419,26 +419,26 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
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
425
|
e && a === "left" && /* @__PURE__ */ t.jsx(
|
|
426
|
-
|
|
426
|
+
s,
|
|
427
427
|
{
|
|
428
428
|
iconName: e.name,
|
|
429
|
-
iconText:
|
|
429
|
+
iconText: g,
|
|
430
430
|
stroke: e.stroke,
|
|
431
|
-
className: r
|
|
431
|
+
className: n[r || "xl"]
|
|
432
432
|
}
|
|
433
433
|
),
|
|
434
434
|
l,
|
|
435
435
|
e && a === "right" && /* @__PURE__ */ t.jsx(
|
|
436
|
-
|
|
436
|
+
s,
|
|
437
437
|
{
|
|
438
438
|
iconName: e.name,
|
|
439
|
-
iconText:
|
|
439
|
+
iconText: g,
|
|
440
440
|
stroke: e.stroke,
|
|
441
|
-
className: r
|
|
441
|
+
className: n[r || "xl"]
|
|
442
442
|
}
|
|
443
443
|
)
|
|
444
444
|
]
|
|
@@ -448,44 +448,44 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
448
448
|
) }), R = () => {
|
|
449
449
|
if (!f || !x.isValidElement(l) || !e && a !== "only")
|
|
450
450
|
return l;
|
|
451
|
-
const
|
|
451
|
+
const c = l, $ = c.props.children;
|
|
452
452
|
if (a === "only")
|
|
453
|
-
return x.cloneElement(
|
|
454
|
-
...
|
|
455
|
-
children:
|
|
456
|
-
|
|
453
|
+
return x.cloneElement(c, {
|
|
454
|
+
...c.props,
|
|
455
|
+
children: i ? /* @__PURE__ */ t.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
461
|
) : e && /* @__PURE__ */ t.jsx(
|
|
462
|
-
|
|
462
|
+
s,
|
|
463
463
|
{
|
|
464
464
|
iconName: e.name,
|
|
465
465
|
stroke: e.stroke,
|
|
466
|
-
iconText:
|
|
466
|
+
iconText: g,
|
|
467
467
|
size: 24
|
|
468
468
|
}
|
|
469
469
|
)
|
|
470
470
|
});
|
|
471
471
|
const N = e && /* @__PURE__ */ t.jsx(
|
|
472
|
-
|
|
472
|
+
s,
|
|
473
473
|
{
|
|
474
474
|
iconName: e.name,
|
|
475
|
-
iconText:
|
|
475
|
+
iconText: g,
|
|
476
476
|
stroke: e.stroke,
|
|
477
|
-
className: r
|
|
477
|
+
className: n[r || "xl"]
|
|
478
478
|
}
|
|
479
479
|
), A = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
480
480
|
/* @__PURE__ */ t.jsx(
|
|
481
481
|
"span",
|
|
482
482
|
{
|
|
483
|
-
className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${
|
|
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
484
|
children: /* @__PURE__ */ t.jsx(
|
|
485
|
-
|
|
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
|
}
|
|
@@ -495,7 +495,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
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
|
a === "left" && N,
|
|
@@ -505,64 +505,64 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
505
505
|
}
|
|
506
506
|
)
|
|
507
507
|
] });
|
|
508
|
-
return x.cloneElement(
|
|
509
|
-
...
|
|
508
|
+
return x.cloneElement(c, {
|
|
509
|
+
...c.props,
|
|
510
510
|
children: A
|
|
511
511
|
});
|
|
512
|
-
},
|
|
512
|
+
}, d = /* @__PURE__ */ t.jsx(
|
|
513
513
|
F,
|
|
514
514
|
{
|
|
515
515
|
ref: B,
|
|
516
516
|
className: p(
|
|
517
|
-
|
|
517
|
+
i ? _({
|
|
518
518
|
variant: b,
|
|
519
|
-
weight:
|
|
520
|
-
size:
|
|
521
|
-
rounded:
|
|
519
|
+
weight: h,
|
|
520
|
+
size: r,
|
|
521
|
+
rounded: y,
|
|
522
522
|
iconPosition: a,
|
|
523
523
|
className: m
|
|
524
524
|
}) : E ? D({
|
|
525
525
|
variant: b,
|
|
526
|
-
weight:
|
|
527
|
-
size:
|
|
528
|
-
rounded:
|
|
526
|
+
weight: h,
|
|
527
|
+
size: r,
|
|
528
|
+
rounded: y,
|
|
529
529
|
iconPosition: a,
|
|
530
530
|
className: m
|
|
531
531
|
}) : T({
|
|
532
532
|
variant: b,
|
|
533
|
-
weight:
|
|
534
|
-
size:
|
|
535
|
-
rounded:
|
|
533
|
+
weight: h,
|
|
534
|
+
size: r,
|
|
535
|
+
rounded: y,
|
|
536
536
|
iconPosition: a,
|
|
537
537
|
className: m
|
|
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
|
|
546
|
-
/* @__PURE__ */ t.jsx(C, { asChild: a === "only", children: a === "only" ? /* @__PURE__ */ t.jsx("div", { className: "inline-block", "aria-disabled": "true", children:
|
|
545
|
+
return u && (j || i) ? /* @__PURE__ */ t.jsx(w, { children: /* @__PURE__ */ t.jsxs(I, { children: [
|
|
546
|
+
/* @__PURE__ */ t.jsx(C, { asChild: a === "only", children: a === "only" ? /* @__PURE__ */ t.jsx("div", { className: "inline-block", "aria-disabled": "true", children: d }) : d }),
|
|
547
547
|
/* @__PURE__ */ t.jsx(
|
|
548
548
|
V,
|
|
549
549
|
{
|
|
550
550
|
side: P,
|
|
551
551
|
className: "text-muted-foreground",
|
|
552
|
-
children:
|
|
552
|
+
children: u
|
|
553
553
|
}
|
|
554
554
|
)
|
|
555
|
-
] }) }) :
|
|
556
|
-
/* @__PURE__ */ t.jsx(C, { asChild: a === "only", children:
|
|
555
|
+
] }) }) : u ? /* @__PURE__ */ t.jsx(w, { children: /* @__PURE__ */ t.jsxs(I, { children: [
|
|
556
|
+
/* @__PURE__ */ t.jsx(C, { asChild: a === "only", children: d }),
|
|
557
557
|
/* @__PURE__ */ t.jsx(
|
|
558
558
|
V,
|
|
559
559
|
{
|
|
560
560
|
side: P,
|
|
561
561
|
className: "text-muted-foreground",
|
|
562
|
-
children:
|
|
562
|
+
children: u
|
|
563
563
|
}
|
|
564
564
|
)
|
|
565
|
-
] }) }) :
|
|
565
|
+
] }) }) : d;
|
|
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"),i=require("./icon-component-D5YssRbR.cjs"),o=require("./tooltip-BRSR0-4n.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:"h-12 gap-2 px-6 py-1 text-base",lg:"text-paragraph-sm h-10 gap-2 px-5 py-1",md:"text-paragraph-xs h-8 gap-1.5 px-4 py-1",sm:"text-paragraph-xs h-7 gap-1 px-3 py-1",xs:"text-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:"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:"text-paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"text-paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"text-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:"h-12 gap-2 px-6 text-base",lg:"text-paragraph-sm h-10 gap-2 px-5",md:"text-paragraph-xs h-8 gap-1.5 px-4",sm:"text-paragraph-xs h-7 gap-1 px-3",xs:"text-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:"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:"text-paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"text-paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"text-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:"h-12 gap-2 px-6 text-base",lg:"text-paragraph-sm h-10 gap-2 px-5",md:"text-paragraph-xs h-8 gap-1.5 px-4",sm:"text-paragraph-xs h-7 gap-1 px-3",xs:"text-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:"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:"text-paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"text-paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"text-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:b,variant:y,size:s,weight:h,rounded:v,children:l,iconName:p,iconText:c,iconPosition:f="left",isLoading:a,isActive:q,disabled:E,tooltip:m,tooltipPlacement:R="top",asChild:j,...S},V)=>{const T=j?$.Slot:"button",n=u.useMemo(()=>!l&&p||f==="only"?"only":f,[l,p,f]),e=u.useMemo(()=>p?typeof p=="string"?{name:p}:p:null,[p]),r=n==="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:n==="only"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:a?t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconLoader2",className:x.cn("animate-spin",r[s||"xl"])}):e&&t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e.name,stroke:e.stroke,iconText:c,className:r[s||"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 ${a?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconLoader2",className:x.cn("animate-spin",r[s||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:x.cn("flex items-center justify-center gap-2",a?"invisible opacity-0":"visible opacity-100"),children:[e&&n==="left"&&t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e.name,iconText:c,stroke:e.stroke,className:r[s||"xl"]}),l,e&&n==="right"&&t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e.name,iconText:c,stroke:e.stroke,className:r[s||"xl"]})]})]})}),F=()=>{if(!j||!u.isValidElement(l)||!e&&n!=="only")return l;const g=l,A=g.props.children;if(n==="only")return u.cloneElement(g,{...g.props,children:a?t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconLoader2",className:x.cn("animate-spin",r[s||"xl"])}):e&&t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e.name,stroke:e.stroke,iconText:c,size:24})});const P=e&&t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e.name,iconText:c,stroke:e.stroke,className:r[s||"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 ${a?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconLoader2",className:x.cn("animate-spin",r[s||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:x.cn("flex items-center justify-center gap-2",a?"invisible opacity-0":"visible opacity-100"),children:[n==="left"&&P,A,n==="right"&&P]})]});return u.cloneElement(g,{...g.props,children:M})},d=t.jsxRuntimeExports.jsx(T,{ref:V,className:x.cn(a?N({variant:y,weight:h,size:s,rounded:v,iconPosition:n,className:b}):q?I({variant:y,weight:h,size:s,rounded:v,iconPosition:n,className:b}):C({variant:y,weight:h,size:s,rounded:v,iconPosition:n,className:b})),disabled:E||a,...S,children:j?F():B});return m&&(E||a)?t.jsxRuntimeExports.jsx(o.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(o.Tooltip,{children:[t.jsxRuntimeExports.jsx(o.TooltipTrigger,{asChild:n==="only",children:n==="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:n==="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 text-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;
|
|
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 text-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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-BuHQgaKs.cjs"),b=require("./index-DoxiiusW.cjs"),j=require("./index-C8P6Mn4U.cjs"),f=require("react"),t=require("./icon-component-D5YssRbR.cjs"),n=j.cva("focus-visible:ring-ring-default inline-flex items-center gap-1 rounded-full border px-3 py-1.5 transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-default disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100",{variants:{intent:{selected:["bg-blue-050 border-blue-800 font-semibold text-blue-800"],unselected:["text-neutral-1000 lg:hover:bg-neutral-000 border-neutral-500 bg-white"],error:["bg-error-light border-error-main text-muted-foreground"]},size:{sm:"text-paragraph-xs",md:"text-paragraph-sm",lg:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"unselected",size:"md",weight:"regular"}}),c=f.forwardRef(({className:o,intent:i,size:a,weight:l,children:m,iconLeft:e,iconRight:s,notification:u,onClick:d,disabled:g,...x},p)=>(typeof e=="string"&&(e={name:e}),typeof s=="string"&&(s={name:s}),d?r.jsxRuntimeExports.jsxs("button",{ref:p,className:b.cn(n({intent:i,size:a,weight:l,className:o})),type:"button",disabled:g,onClick:d,...x,children:[e&&r.jsxRuntimeExports.jsx(t.IconComponent,{iconName:e?.name,stroke:e?.stroke,size:16}),m,s&&r.jsxRuntimeExports.jsx(t.IconComponent,{iconName:s?.name,stroke:s?.stroke,size:20,className:"min-w-5"}),u&&r.jsxRuntimeExports.jsx(t.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]}):r.jsxRuntimeExports.jsxs("div",{ref:p,className:b.cn(n({intent:i,size:a,weight:l,className:o})),...x,children:[e&&r.jsxRuntimeExports.jsx(t.IconComponent,{iconName:e?.name,stroke:e?.stroke,size:16}),m,s&&r.jsxRuntimeExports.jsx(t.IconComponent,{iconName:s?.name,stroke:s?.stroke,size:20,className:"min-w-5"}),u&&r.jsxRuntimeExports.jsx(t.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]})));c.displayName="Chip";exports.ChipComponent=c;exports.chipStyles=n;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { c as x } from "./index-CRiPKpXj.js";
|
|
3
|
-
import { c } from "./index-BqtVL8d-.js";
|
|
4
|
-
import { forwardRef as
|
|
3
|
+
import { c as g } from "./index-BqtVL8d-.js";
|
|
4
|
+
import { forwardRef as c } from "react";
|
|
5
5
|
import { I as t } from "./icon-component-CxQsODCa.js";
|
|
6
|
-
const
|
|
6
|
+
const p = g(
|
|
7
7
|
"focus-visible:ring-ring-default inline-flex items-center gap-1 rounded-full border px-3 py-1.5 transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-default disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -15,8 +15,8 @@ const f = c(
|
|
|
15
15
|
error: ["bg-error-light border-error-main text-muted-foreground"]
|
|
16
16
|
},
|
|
17
17
|
size: {
|
|
18
|
-
sm: "text-xs",
|
|
19
|
-
md: "text-sm",
|
|
18
|
+
sm: "text-paragraph-xs",
|
|
19
|
+
md: "text-paragraph-sm",
|
|
20
20
|
lg: "text-base"
|
|
21
21
|
},
|
|
22
22
|
weight: {
|
|
@@ -32,7 +32,7 @@ const f = c(
|
|
|
32
32
|
weight: "regular"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
), N =
|
|
35
|
+
), N = c(
|
|
36
36
|
({
|
|
37
37
|
className: a,
|
|
38
38
|
intent: l,
|
|
@@ -43,15 +43,15 @@ const f = c(
|
|
|
43
43
|
iconRight: r,
|
|
44
44
|
notification: m,
|
|
45
45
|
onClick: d,
|
|
46
|
-
disabled:
|
|
46
|
+
disabled: f,
|
|
47
47
|
...u
|
|
48
48
|
}, b) => (typeof e == "string" && (e = { name: e }), typeof r == "string" && (r = { name: r }), d ? /* @__PURE__ */ s.jsxs(
|
|
49
49
|
"button",
|
|
50
50
|
{
|
|
51
51
|
ref: b,
|
|
52
|
-
className: x(
|
|
52
|
+
className: x(p({ intent: l, size: o, weight: n, className: a })),
|
|
53
53
|
type: "button",
|
|
54
|
-
disabled:
|
|
54
|
+
disabled: f,
|
|
55
55
|
onClick: d,
|
|
56
56
|
...u,
|
|
57
57
|
children: [
|
|
@@ -87,7 +87,7 @@ const f = c(
|
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
89
|
ref: b,
|
|
90
|
-
className: x(
|
|
90
|
+
className: x(p({ intent: l, size: o, weight: n, className: a })),
|
|
91
91
|
...u,
|
|
92
92
|
children: [
|
|
93
93
|
e && /* @__PURE__ */ s.jsx(
|
|
@@ -123,5 +123,5 @@ const f = c(
|
|
|
123
123
|
N.displayName = "Chip";
|
|
124
124
|
export {
|
|
125
125
|
N as C,
|
|
126
|
-
|
|
126
|
+
p as c
|
|
127
127
|
};
|