@clasing/ui 2.0.4 → 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-B_J-uqVk.js → badge-DgjaD6g5.js} +5 -5
- package/dist/{badge-BMe7WNGM.cjs → badge-DuEEk3J_.cjs} +1 -1
- package/dist/{button-DPbsJTTm.js → button-D8hlW1CJ.js} +103 -103
- package/dist/button-U1793OQ4.cjs +1 -0
- package/dist/{card-DiFJZ6gb.cjs → card-BJMc0row.cjs} +1 -1
- package/dist/{card-3-vRPTXr.js → card-DPaMJS2f.js} +1 -1
- package/dist/{chip-wy9RL5iU.js → chip-C5OWe3FG.js} +16 -16
- package/dist/chip-CXa6E8Cf.cjs +1 -0
- package/dist/command-B7wbtmbM.cjs +1 -0
- package/dist/{command-DTwO6Xc5.js → command-RWDkdfba.js} +64 -64
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +15 -15
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +3 -3
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.es.js +20 -20
- 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 +6 -6
- 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 +2 -2
- package/dist/components/chart.es.js +2 -2
- 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 +7 -7
- 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 +7 -7
- 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 +2 -2
- 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 +8 -8
- 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 +3 -3
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +39 -39
- 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 +7 -7
- 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.es.js +17 -17
- 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-D9ZObHR9.js → dialog-BSEMFrzb.js} +7 -7
- package/dist/{dialog-CMSUa1RD.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-C71fsEVP.js → input-CUpmfQgR.js} +24 -24
- 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-BE4UelY4.js → toggle-DkQSX3ux.js} +5 -5
- 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-DcyXjceS.cjs +0 -1
- package/dist/chip-BCFqRgCq.cjs +0 -1
- package/dist/command-KZ-02POP.cjs +0 -1
- package/dist/icon-component-D5YssRbR.cjs +0 -1
- package/dist/input-B_INrEy1.cjs +0 -1
- package/dist/label-_kG7WBoJ.js +0 -22
- package/dist/toggle-BEGyyGWY.cjs +0 -1
- package/dist/tooltip-BRSR0-4n.cjs +0 -1
|
@@ -2,7 +2,7 @@ import { j as e } from "./jsx-runtime-DywqP_6a.js";
|
|
|
2
2
|
import { Slot as h } from "@radix-ui/react-slot";
|
|
3
3
|
import { c } from "./index-BqtVL8d-.js";
|
|
4
4
|
import { c as f } from "./index-CRiPKpXj.js";
|
|
5
|
-
import { I as o } from "./icon-component-
|
|
5
|
+
import { I as o } from "./icon-component-Db_44zX2.js";
|
|
6
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
|
{
|
|
@@ -23,10 +23,10 @@ const x = c(
|
|
|
23
23
|
violet: "border-transparent bg-violet-600 text-white [a&]:hover:bg-violet-600/90"
|
|
24
24
|
},
|
|
25
25
|
size: {
|
|
26
|
-
xs: "
|
|
27
|
-
sm: "
|
|
28
|
-
md: "
|
|
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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./jsx-runtime-BuHQgaKs.cjs"),v=require("@radix-ui/react-slot"),
|
|
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 s } from "./icon-component-
|
|
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: "
|
|
37
|
-
md: "
|
|
38
|
-
sm: "
|
|
39
|
-
xs: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
145
|
-
md: "
|
|
146
|
-
sm: "
|
|
147
|
-
xs: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
256
|
-
md: "
|
|
257
|
-
sm: "
|
|
258
|
-
xs: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
343
|
+
class: "paragraph-xs h-auto gap-1 px-3 py-1"
|
|
344
344
|
}
|
|
345
345
|
],
|
|
346
346
|
defaultVariants: {
|
|
@@ -350,26 +350,26 @@ 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:
|
|
355
|
+
className: x,
|
|
356
|
+
variant: h,
|
|
357
357
|
size: r,
|
|
358
|
-
weight:
|
|
358
|
+
weight: b,
|
|
359
359
|
rounded: y,
|
|
360
360
|
children: l,
|
|
361
361
|
iconName: o,
|
|
362
|
-
iconText:
|
|
362
|
+
iconText: c,
|
|
363
363
|
iconPosition: v = "left",
|
|
364
364
|
isLoading: i,
|
|
365
365
|
isActive: E,
|
|
366
366
|
disabled: j,
|
|
367
|
-
tooltip:
|
|
367
|
+
tooltip: d,
|
|
368
368
|
tooltipPlacement: P = "top",
|
|
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,31 +381,31 @@ 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__ */
|
|
386
|
+
/* @__PURE__ */ a.jsx(a.Fragment, { children: i ? /* @__PURE__ */ a.jsx(
|
|
387
387
|
s,
|
|
388
388
|
{
|
|
389
389
|
iconName: "IconLoader2",
|
|
390
390
|
className: p("animate-spin", n[r || "xl"])
|
|
391
391
|
}
|
|
392
|
-
) :
|
|
392
|
+
) : t && /* @__PURE__ */ a.jsx(
|
|
393
393
|
s,
|
|
394
394
|
{
|
|
395
|
-
iconName:
|
|
396
|
-
stroke:
|
|
397
|
-
iconText:
|
|
395
|
+
iconName: t.name,
|
|
396
|
+
stroke: t.stroke,
|
|
397
|
+
iconText: c,
|
|
398
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
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__ */
|
|
408
|
+
children: /* @__PURE__ */ a.jsx(
|
|
409
409
|
s,
|
|
410
410
|
{
|
|
411
411
|
iconName: "IconLoader2",
|
|
@@ -414,7 +414,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
414
414
|
)
|
|
415
415
|
}
|
|
416
416
|
),
|
|
417
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ a.jsxs(
|
|
418
418
|
"span",
|
|
419
419
|
{
|
|
420
420
|
className: p(
|
|
@@ -422,22 +422,22 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
422
422
|
i ? "invisible opacity-0" : "visible opacity-100"
|
|
423
423
|
),
|
|
424
424
|
children: [
|
|
425
|
-
|
|
425
|
+
t && e === "left" && /* @__PURE__ */ a.jsx(
|
|
426
426
|
s,
|
|
427
427
|
{
|
|
428
|
-
iconName:
|
|
429
|
-
iconText:
|
|
430
|
-
stroke:
|
|
428
|
+
iconName: t.name,
|
|
429
|
+
iconText: c,
|
|
430
|
+
stroke: t.stroke,
|
|
431
431
|
className: n[r || "xl"]
|
|
432
432
|
}
|
|
433
433
|
),
|
|
434
434
|
l,
|
|
435
|
-
|
|
435
|
+
t && e === "right" && /* @__PURE__ */ a.jsx(
|
|
436
436
|
s,
|
|
437
437
|
{
|
|
438
|
-
iconName:
|
|
439
|
-
iconText:
|
|
440
|
-
stroke:
|
|
438
|
+
iconName: t.name,
|
|
439
|
+
iconText: c,
|
|
440
|
+
stroke: t.stroke,
|
|
441
441
|
className: n[r || "xl"]
|
|
442
442
|
}
|
|
443
443
|
)
|
|
@@ -446,42 +446,42 @@ 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
|
-
const
|
|
452
|
-
if (
|
|
453
|
-
return
|
|
454
|
-
...
|
|
455
|
-
children: i ? /* @__PURE__ */
|
|
451
|
+
const u = l, $ = u.props.children;
|
|
452
|
+
if (e === "only")
|
|
453
|
+
return g.cloneElement(u, {
|
|
454
|
+
...u.props,
|
|
455
|
+
children: i ? /* @__PURE__ */ a.jsx(
|
|
456
456
|
s,
|
|
457
457
|
{
|
|
458
458
|
iconName: "IconLoader2",
|
|
459
459
|
className: p("animate-spin", n[r || "xl"])
|
|
460
460
|
}
|
|
461
|
-
) :
|
|
461
|
+
) : t && /* @__PURE__ */ a.jsx(
|
|
462
462
|
s,
|
|
463
463
|
{
|
|
464
|
-
iconName:
|
|
465
|
-
stroke:
|
|
466
|
-
iconText:
|
|
464
|
+
iconName: t.name,
|
|
465
|
+
stroke: t.stroke,
|
|
466
|
+
iconText: c,
|
|
467
467
|
size: 24
|
|
468
468
|
}
|
|
469
469
|
)
|
|
470
470
|
});
|
|
471
|
-
const N =
|
|
471
|
+
const N = t && /* @__PURE__ */ a.jsx(
|
|
472
472
|
s,
|
|
473
473
|
{
|
|
474
|
-
iconName:
|
|
475
|
-
iconText:
|
|
476
|
-
stroke:
|
|
474
|
+
iconName: t.name,
|
|
475
|
+
iconText: c,
|
|
476
|
+
stroke: t.stroke,
|
|
477
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
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__ */
|
|
484
|
+
children: /* @__PURE__ */ a.jsx(
|
|
485
485
|
s,
|
|
486
486
|
{
|
|
487
487
|
iconName: "IconLoader2",
|
|
@@ -490,7 +490,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
490
490
|
)
|
|
491
491
|
}
|
|
492
492
|
),
|
|
493
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ a.jsxs(
|
|
494
494
|
"span",
|
|
495
495
|
{
|
|
496
496
|
className: p(
|
|
@@ -498,43 +498,43 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
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
|
|
509
|
-
...
|
|
508
|
+
return g.cloneElement(u, {
|
|
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
517
|
i ? _({
|
|
518
|
-
variant:
|
|
519
|
-
weight:
|
|
518
|
+
variant: h,
|
|
519
|
+
weight: b,
|
|
520
520
|
size: r,
|
|
521
521
|
rounded: y,
|
|
522
|
-
iconPosition:
|
|
523
|
-
className:
|
|
522
|
+
iconPosition: e,
|
|
523
|
+
className: x
|
|
524
524
|
}) : E ? D({
|
|
525
|
-
variant:
|
|
526
|
-
weight:
|
|
525
|
+
variant: h,
|
|
526
|
+
weight: b,
|
|
527
527
|
size: r,
|
|
528
528
|
rounded: y,
|
|
529
|
-
iconPosition:
|
|
530
|
-
className:
|
|
529
|
+
iconPosition: e,
|
|
530
|
+
className: x
|
|
531
531
|
}) : T({
|
|
532
|
-
variant:
|
|
533
|
-
weight:
|
|
532
|
+
variant: h,
|
|
533
|
+
weight: b,
|
|
534
534
|
size: r,
|
|
535
535
|
rounded: y,
|
|
536
|
-
iconPosition:
|
|
537
|
-
className:
|
|
536
|
+
iconPosition: e,
|
|
537
|
+
className: x
|
|
538
538
|
})
|
|
539
539
|
),
|
|
540
540
|
disabled: j || i,
|
|
@@ -542,27 +542,27 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
542
542
|
children: f ? R() : q
|
|
543
543
|
}
|
|
544
544
|
);
|
|
545
|
-
return
|
|
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,
|
|
551
551
|
className: "text-muted-foreground",
|
|
552
|
-
children:
|
|
552
|
+
children: d
|
|
553
553
|
}
|
|
554
554
|
)
|
|
555
|
-
] }) }) :
|
|
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,
|
|
561
561
|
className: "text-muted-foreground",
|
|
562
|
-
children:
|
|
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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as p } from "./index-CRiPKpXj.js";
|
|
3
3
|
import { c as g } from "./index-BqtVL8d-.js";
|
|
4
4
|
import { forwardRef as c } from "react";
|
|
5
|
-
import { I as
|
|
6
|
-
const
|
|
5
|
+
import { I as a } from "./icon-component-Db_44zX2.js";
|
|
6
|
+
const x = 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,9 +15,9 @@ const p = g(
|
|
|
15
15
|
error: ["bg-error-light border-error-main text-muted-foreground"]
|
|
16
16
|
},
|
|
17
17
|
size: {
|
|
18
|
-
sm: "
|
|
19
|
-
md: "
|
|
20
|
-
lg: "
|
|
18
|
+
sm: "paragraph-xs",
|
|
19
|
+
md: "paragraph-sm",
|
|
20
|
+
lg: "paragraph-md"
|
|
21
21
|
},
|
|
22
22
|
weight: {
|
|
23
23
|
light: "font-light",
|
|
@@ -34,7 +34,7 @@ const p = g(
|
|
|
34
34
|
}
|
|
35
35
|
), N = c(
|
|
36
36
|
({
|
|
37
|
-
className:
|
|
37
|
+
className: t,
|
|
38
38
|
intent: l,
|
|
39
39
|
size: o,
|
|
40
40
|
weight: n,
|
|
@@ -49,14 +49,14 @@ const p = g(
|
|
|
49
49
|
"button",
|
|
50
50
|
{
|
|
51
51
|
ref: b,
|
|
52
|
-
className: x(
|
|
52
|
+
className: p(x({ intent: l, size: o, weight: n, className: t })),
|
|
53
53
|
type: "button",
|
|
54
54
|
disabled: f,
|
|
55
55
|
onClick: d,
|
|
56
56
|
...u,
|
|
57
57
|
children: [
|
|
58
58
|
e && /* @__PURE__ */ s.jsx(
|
|
59
|
-
|
|
59
|
+
a,
|
|
60
60
|
{
|
|
61
61
|
iconName: e?.name,
|
|
62
62
|
stroke: e?.stroke,
|
|
@@ -65,7 +65,7 @@ const p = g(
|
|
|
65
65
|
),
|
|
66
66
|
i,
|
|
67
67
|
r && /* @__PURE__ */ s.jsx(
|
|
68
|
-
|
|
68
|
+
a,
|
|
69
69
|
{
|
|
70
70
|
iconName: r?.name,
|
|
71
71
|
stroke: r?.stroke,
|
|
@@ -74,7 +74,7 @@ const p = g(
|
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
76
|
m && /* @__PURE__ */ s.jsx(
|
|
77
|
-
|
|
77
|
+
a,
|
|
78
78
|
{
|
|
79
79
|
iconName: "IconCircleFilled",
|
|
80
80
|
size: 4,
|
|
@@ -87,11 +87,11 @@ const p = g(
|
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
89
|
ref: b,
|
|
90
|
-
className: x(
|
|
90
|
+
className: p(x({ intent: l, size: o, weight: n, className: t })),
|
|
91
91
|
...u,
|
|
92
92
|
children: [
|
|
93
93
|
e && /* @__PURE__ */ s.jsx(
|
|
94
|
-
|
|
94
|
+
a,
|
|
95
95
|
{
|
|
96
96
|
iconName: e?.name,
|
|
97
97
|
stroke: e?.stroke,
|
|
@@ -100,7 +100,7 @@ const p = g(
|
|
|
100
100
|
),
|
|
101
101
|
i,
|
|
102
102
|
r && /* @__PURE__ */ s.jsx(
|
|
103
|
-
|
|
103
|
+
a,
|
|
104
104
|
{
|
|
105
105
|
iconName: r?.name,
|
|
106
106
|
stroke: r?.stroke,
|
|
@@ -109,7 +109,7 @@ const p = g(
|
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
111
|
m && /* @__PURE__ */ s.jsx(
|
|
112
|
-
|
|
112
|
+
a,
|
|
113
113
|
{
|
|
114
114
|
iconName: "IconCircleFilled",
|
|
115
115
|
size: 4,
|
|
@@ -123,5 +123,5 @@ const p = g(
|
|
|
123
123
|
N.displayName = "Chip";
|
|
124
124
|
export {
|
|
125
125
|
N as C,
|
|
126
|
-
|
|
126
|
+
x as c
|
|
127
127
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./jsx-runtime-BuHQgaKs.cjs"),b=require("./index-DoxiiusW.cjs"),j=require("./index-C8P6Mn4U.cjs"),f=require("react"),n=require("./icon-component-4lyl8wE_.cjs"),t=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:"paragraph-xs",md:"paragraph-sm",lg:"paragraph-md"},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:a,size:i,weight:l,children:m,iconLeft:e,iconRight:r,notification:u,onClick:d,disabled:g,...x},p)=>(typeof e=="string"&&(e={name:e}),typeof r=="string"&&(r={name:r}),d?s.jsxRuntimeExports.jsxs("button",{ref:p,className:b.cn(t({intent:a,size:i,weight:l,className:o})),type:"button",disabled:g,onClick:d,...x,children:[e&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:e?.name,stroke:e?.stroke,size:16}),m,r&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:r?.name,stroke:r?.stroke,size:20,className:"min-w-5"}),u&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]}):s.jsxRuntimeExports.jsxs("div",{ref:p,className:b.cn(t({intent:a,size:i,weight:l,className:o})),...x,children:[e&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:e?.name,stroke:e?.stroke,size:16}),m,r&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:r?.name,stroke:r?.stroke,size:20,className:"min-w-5"}),u&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]})));c.displayName="Chip";exports.ChipComponent=c;exports.chipStyles=t;
|