@clasing/ui 2.5.0 → 2.7.0
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-DK9gdPpu.cjs +91 -0
- package/dist/badge-aFyTFGVU.js +173 -0
- package/dist/button-2VesFn_C.js +256 -0
- package/dist/button-DWBp81pk.cjs +70 -0
- package/dist/card-DkYKwjsA.cjs +12 -0
- package/dist/{card-Cv2M4wv8.js → card-aAzRmGVH.js} +19 -5
- package/dist/chip-BlWb6w16.cjs +17 -0
- package/dist/chip-BmqvnZuy.js +116 -0
- package/dist/{clasing-icon-Bym32_-4.cjs → clasing-icon-CHt2Otn8.cjs} +1 -1
- package/dist/{clasing-icon-BIYMLc8o.js → clasing-icon-CJQQN554.js} +1 -1
- package/dist/command-FBkK3fzE.cjs +36 -0
- package/dist/{command-CGrOI2Z9.js → command-Vk11GgqU.js} +67 -26
- package/dist/components/accordion.cjs.js +20 -1
- package/dist/components/accordion.es.js +38 -16
- package/dist/components/alert-dialog.cjs.js +17 -1
- package/dist/components/alert-dialog.es.js +23 -7
- package/dist/components/alert.cjs.js +6 -1
- package/dist/components/alert.d.ts +1 -2
- package/dist/components/alert.es.js +54 -50
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +5 -1
- package/dist/components/blocks/interactive-card.es.js +60 -56
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.d.ts +6 -6
- package/dist/components/blocks/selectable-chips.es.js +88 -55
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button-group.cjs.js +1 -1
- package/dist/components/button-group.es.js +3 -3
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +8 -17
- package/dist/components/button.es.js +2 -4
- package/dist/components/calendar.cjs.js +73 -1
- package/dist/components/calendar.es.js +120 -42
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +27 -2
- package/dist/components/chart.es.js +38 -7
- package/dist/components/checkbox.cjs.js +15 -1
- package/dist/components/checkbox.es.js +28 -14
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +3 -3
- package/dist/components/chip.es.js +1 -1
- package/dist/components/clasing-icon.cjs.js +1 -1
- package/dist/components/clasing-icon.es.js +1 -1
- package/dist/components/collapsible.cjs.js +10 -1
- package/dist/components/collapsible.es.js +17 -8
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +71 -1
- package/dist/components/context-menu.es.js +128 -45
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/drawer.cjs.js +42 -1
- package/dist/components/drawer.es.js +63 -17
- package/dist/components/dropdown-menu.cjs.js +69 -1
- package/dist/components/dropdown-menu.es.js +93 -12
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +21 -21
- package/dist/components/hover-card.cjs.js +13 -1
- package/dist/components/hover-card.es.js +31 -18
- package/dist/components/input-otp.cjs.js +19 -1
- package/dist/components/input-otp.es.js +49 -25
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/kbd.cjs.js +9 -1
- package/dist/components/kbd.es.js +11 -3
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +75 -1
- package/dist/components/menubar.es.js +119 -32
- package/dist/components/multi-select.cjs.js +24 -1
- package/dist/components/multi-select.es.js +61 -27
- package/dist/components/navigation-menu.cjs.js +71 -1
- package/dist/components/navigation-menu.es.js +86 -11
- package/dist/components/phone-input.cjs.js +21 -1
- package/dist/components/phone-input.es.js +267 -174
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +3 -3
- package/dist/components/resizable.cjs.js +22 -1
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/resizable.es.js +52 -17
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +57 -1
- package/dist/components/select.d.ts +2 -1
- package/dist/components/select.es.js +84 -23
- package/dist/components/sheet.cjs.js +36 -1
- package/dist/components/sheet.es.js +75 -34
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +23 -1
- package/dist/components/slider.es.js +46 -24
- package/dist/components/sonner.cjs.js +15 -1
- package/dist/components/sonner.es.js +67 -41
- package/dist/components/switch.cjs.js +19 -1
- package/dist/components/switch.es.js +29 -11
- package/dist/components/table.cjs.js +20 -1
- package/dist/components/table.es.js +56 -34
- package/dist/components/textarea.cjs.js +22 -1
- package/dist/components/textarea.es.js +46 -25
- package/dist/components/toggle-group.cjs.js +12 -1
- package/dist/components/toggle-group.es.js +15 -4
- 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-BUaX7IId.cjs +28 -0
- package/dist/{dialog-CH4VxKX4.js → dialog-CdmsVmRe.js} +41 -14
- package/dist/divider-D4EfIlt3.cjs +1 -0
- package/dist/{divider-BMxVoyPg.js → divider-DumyhJI_.js} +6 -6
- package/dist/entries/button.d.ts +2 -2
- package/dist/index-Bfismeyo.cjs +6 -0
- package/dist/{index-ECyCsPX0.cjs → index-BmhzhLcV.cjs} +1 -1
- package/dist/{index-DEha_UuN.js → index-CnqageB2.js} +1 -1
- package/dist/{index-BCEGphus.js → index-CwFDnnd3.js} +678 -519
- package/dist/input-kOA9xJIa.js +122 -0
- package/dist/input-u-OTHOPe.cjs +28 -0
- package/dist/label-BteX4MEt.js +27 -0
- package/dist/label-O3mSiGyx.cjs +7 -0
- package/dist/popover-A1-x5q-F.cjs +13 -0
- package/dist/popover-eQq2Is-I.js +57 -0
- package/dist/{scroll-area-CxpVQq0v.js → scroll-area-CJy_EOqT.js} +10 -5
- package/dist/scroll-area-DFyIQG6Z.cjs +6 -0
- package/dist/toggle-BdWGPLza.cjs +21 -0
- package/dist/toggle-DuhnqdDT.js +63 -0
- package/dist/tooltip-BYeLeBei.js +74 -0
- package/dist/tooltip-BZWEHWmU.cjs +14 -0
- package/dist/ui.css +209 -209
- package/package.json +32 -27
- package/dist/badge-C29hQNIG.js +0 -84
- package/dist/badge-Da_xHgvC.cjs +0 -1
- package/dist/button-Bn-b-nVw.js +0 -213
- package/dist/button-C7U_D8vv.cjs +0 -1
- package/dist/card-COFAc2zN.cjs +0 -1
- package/dist/chip-C_Uh7fe6.cjs +0 -1
- package/dist/chip-ZryYiiU1.js +0 -89
- package/dist/command-CrtCQpi_.cjs +0 -1
- package/dist/dialog-DHZARK1o.cjs +0 -1
- package/dist/divider-BcIwJzm7.cjs +0 -1
- package/dist/index-9HRzXEQf.cjs +0 -6
- package/dist/input-BvfRiqqw.js +0 -82
- package/dist/input-Dtd0sjiW.cjs +0 -1
- package/dist/label-Bl6V6esj.js +0 -21
- package/dist/label-D3iN3bzS.cjs +0 -1
- package/dist/popover-1_WpciTS.js +0 -44
- package/dist/popover-CeOAAwBQ.cjs +0 -1
- package/dist/scroll-area-D74XszlE.cjs +0 -1
- package/dist/toggle-99EXLQgX.js +0 -43
- package/dist/toggle-CtoQhQby.cjs +0 -1
- package/dist/tooltip-BS84dkwx.js +0 -55
- package/dist/tooltip-BccdAn4x.cjs +0 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";const e=require("./index-Bfismeyo.cjs"),b=require("@radix-ui/react-slot"),c=require("./index-BmhzhLcV.cjs"),v=c.cva(`
|
|
2
|
+
box-border inline-flex w-fit shrink-0 items-center justify-center gap-2
|
|
3
|
+
overflow-hidden font-semibold whitespace-nowrap
|
|
4
|
+
transition-[color,box-shadow]
|
|
5
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
6
|
+
focus-visible:ring-ring/50
|
|
7
|
+
aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
8
|
+
dark:aria-invalid:ring-destructive/40
|
|
9
|
+
[&>svg]:pointer-events-none
|
|
10
|
+
`,{variants:{variant:{default:`
|
|
11
|
+
bg-muted text-foreground/80
|
|
12
|
+
[a&]:hover:bg-muted/90
|
|
13
|
+
`,secondary:`
|
|
14
|
+
bg-secondary text-secondary-foreground
|
|
15
|
+
[a&]:hover:bg-secondary/90
|
|
16
|
+
`,destructive:`
|
|
17
|
+
bg-destructive text-destructive-foreground
|
|
18
|
+
focus-visible:ring-destructive/20
|
|
19
|
+
dark:bg-destructive
|
|
20
|
+
dark:focus-visible:ring-destructive
|
|
21
|
+
[a&]:hover:bg-destructive/90
|
|
22
|
+
`,outline:`
|
|
23
|
+
text-foreground
|
|
24
|
+
[a&]:hover:bg-accent [a&]:hover:text-accent-foreground
|
|
25
|
+
`,error:`
|
|
26
|
+
bg-destructive text-destructive-foreground
|
|
27
|
+
[a&]:hover:bg-destructive/90
|
|
28
|
+
`,warning:`
|
|
29
|
+
bg-warning text-warning-foreground
|
|
30
|
+
[a&]:hover:bg-warning/90
|
|
31
|
+
`,success:`
|
|
32
|
+
bg-success text-success-foreground
|
|
33
|
+
[a&]:hover:bg-success/90
|
|
34
|
+
`,info:`
|
|
35
|
+
bg-info text-info-foreground
|
|
36
|
+
[a&]:hover:bg-info/90
|
|
37
|
+
`,neutral:`
|
|
38
|
+
bg-black text-white
|
|
39
|
+
[a&]:hover:bg-black/90
|
|
40
|
+
`,primary:`
|
|
41
|
+
bg-primary text-primary-foreground
|
|
42
|
+
[a&]:hover:bg-primary/90
|
|
43
|
+
`,yellow:`
|
|
44
|
+
bg-yellow-600 text-white
|
|
45
|
+
[a&]:hover:bg-yellow-600/90
|
|
46
|
+
`,blue:`
|
|
47
|
+
bg-blue-600 text-white
|
|
48
|
+
[a&]:hover:bg-blue-600/90
|
|
49
|
+
`,violet:`
|
|
50
|
+
bg-violet-600 text-white
|
|
51
|
+
[a&]:hover:bg-violet-600/90
|
|
52
|
+
`,"not-started":`
|
|
53
|
+
border bg-background text-muted-foreground
|
|
54
|
+
[a&]:hover:bg-background/90
|
|
55
|
+
`,"in-progress":`
|
|
56
|
+
border border-warning-foreground bg-background text-warning-foreground
|
|
57
|
+
[a&]:hover:bg-background/90
|
|
58
|
+
`,completed:`
|
|
59
|
+
border border-success-foreground bg-background text-success-foreground
|
|
60
|
+
[a&]:hover:bg-background/90
|
|
61
|
+
`,blocked:`
|
|
62
|
+
border bg-background text-muted-foreground
|
|
63
|
+
[a&]:hover:bg-background/90
|
|
64
|
+
`,paused:`
|
|
65
|
+
border bg-background text-muted-foreground
|
|
66
|
+
[a&]:hover:bg-background/90
|
|
67
|
+
`,failed:`
|
|
68
|
+
border border-destructive-foreground bg-background
|
|
69
|
+
text-destructive-foreground
|
|
70
|
+
[a&]:hover:bg-background/90
|
|
71
|
+
`,expired:`
|
|
72
|
+
border border-destructive-foreground bg-background
|
|
73
|
+
text-destructive-foreground
|
|
74
|
+
[a&]:hover:bg-background/90
|
|
75
|
+
`,cancelled:`
|
|
76
|
+
border border-destructive-foreground bg-background
|
|
77
|
+
text-destructive-foreground
|
|
78
|
+
[a&]:hover:bg-background/90
|
|
79
|
+
`},size:{xs:`
|
|
80
|
+
h-6.5 px-3 py-px paragraph-xs
|
|
81
|
+
[&>svg]:size-3.5
|
|
82
|
+
`,sm:`
|
|
83
|
+
px-4 py-1 paragraph-xs
|
|
84
|
+
[&>svg]:size-4
|
|
85
|
+
`,md:`
|
|
86
|
+
px-4 py-2 paragraph-sm
|
|
87
|
+
[&>svg]:size-4
|
|
88
|
+
`,lg:`
|
|
89
|
+
px-4 py-2 paragraph-md
|
|
90
|
+
[&>svg]:size-5
|
|
91
|
+
`},weight:{regular:"font-regular",medium:"font-medium",semibold:"font-semibold"},rounded:{default:"rounded-2xl",full:"rounded-full"}},defaultVariants:{variant:"default",size:"xs",weight:"semibold",rounded:"full"}});function l({className:r,variant:o,size:t,weight:d,rounded:a,iconOnly:n,asChild:g=!1,children:i,...u}){const s=g?b.Slot:"span";return e.jsxRuntimeExports.jsx(s,{"data-slot":"badge",className:e.cn(v({variant:o,size:t,weight:d,rounded:a}),n&&"px-2.5 py-2",r),...u,children:i})}exports.Badge=l;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { j as u, c as b } from "./index-CwFDnnd3.js";
|
|
2
|
+
import { Slot as c } from "@radix-ui/react-slot";
|
|
3
|
+
import { c as v } from "./index-CnqageB2.js";
|
|
4
|
+
const l = v(
|
|
5
|
+
`
|
|
6
|
+
box-border inline-flex w-fit shrink-0 items-center justify-center gap-2
|
|
7
|
+
overflow-hidden font-semibold whitespace-nowrap
|
|
8
|
+
transition-[color,box-shadow]
|
|
9
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
10
|
+
focus-visible:ring-ring/50
|
|
11
|
+
aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
12
|
+
dark:aria-invalid:ring-destructive/40
|
|
13
|
+
[&>svg]:pointer-events-none
|
|
14
|
+
`,
|
|
15
|
+
{
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: `
|
|
19
|
+
bg-muted text-foreground/80
|
|
20
|
+
[a&]:hover:bg-muted/90
|
|
21
|
+
`,
|
|
22
|
+
secondary: `
|
|
23
|
+
bg-secondary text-secondary-foreground
|
|
24
|
+
[a&]:hover:bg-secondary/90
|
|
25
|
+
`,
|
|
26
|
+
destructive: `
|
|
27
|
+
bg-destructive text-destructive-foreground
|
|
28
|
+
focus-visible:ring-destructive/20
|
|
29
|
+
dark:bg-destructive
|
|
30
|
+
dark:focus-visible:ring-destructive
|
|
31
|
+
[a&]:hover:bg-destructive/90
|
|
32
|
+
`,
|
|
33
|
+
outline: `
|
|
34
|
+
text-foreground
|
|
35
|
+
[a&]:hover:bg-accent [a&]:hover:text-accent-foreground
|
|
36
|
+
`,
|
|
37
|
+
error: `
|
|
38
|
+
bg-destructive text-destructive-foreground
|
|
39
|
+
[a&]:hover:bg-destructive/90
|
|
40
|
+
`,
|
|
41
|
+
warning: `
|
|
42
|
+
bg-warning text-warning-foreground
|
|
43
|
+
[a&]:hover:bg-warning/90
|
|
44
|
+
`,
|
|
45
|
+
success: `
|
|
46
|
+
bg-success text-success-foreground
|
|
47
|
+
[a&]:hover:bg-success/90
|
|
48
|
+
`,
|
|
49
|
+
info: `
|
|
50
|
+
bg-info text-info-foreground
|
|
51
|
+
[a&]:hover:bg-info/90
|
|
52
|
+
`,
|
|
53
|
+
neutral: `
|
|
54
|
+
bg-black text-white
|
|
55
|
+
[a&]:hover:bg-black/90
|
|
56
|
+
`,
|
|
57
|
+
primary: `
|
|
58
|
+
bg-primary text-primary-foreground
|
|
59
|
+
[a&]:hover:bg-primary/90
|
|
60
|
+
`,
|
|
61
|
+
yellow: `
|
|
62
|
+
bg-yellow-600 text-white
|
|
63
|
+
[a&]:hover:bg-yellow-600/90
|
|
64
|
+
`,
|
|
65
|
+
blue: `
|
|
66
|
+
bg-blue-600 text-white
|
|
67
|
+
[a&]:hover:bg-blue-600/90
|
|
68
|
+
`,
|
|
69
|
+
violet: `
|
|
70
|
+
bg-violet-600 text-white
|
|
71
|
+
[a&]:hover:bg-violet-600/90
|
|
72
|
+
`,
|
|
73
|
+
"not-started": `
|
|
74
|
+
border bg-background text-muted-foreground
|
|
75
|
+
[a&]:hover:bg-background/90
|
|
76
|
+
`,
|
|
77
|
+
"in-progress": `
|
|
78
|
+
border border-warning-foreground bg-background text-warning-foreground
|
|
79
|
+
[a&]:hover:bg-background/90
|
|
80
|
+
`,
|
|
81
|
+
completed: `
|
|
82
|
+
border border-success-foreground bg-background text-success-foreground
|
|
83
|
+
[a&]:hover:bg-background/90
|
|
84
|
+
`,
|
|
85
|
+
blocked: `
|
|
86
|
+
border bg-background text-muted-foreground
|
|
87
|
+
[a&]:hover:bg-background/90
|
|
88
|
+
`,
|
|
89
|
+
paused: `
|
|
90
|
+
border bg-background text-muted-foreground
|
|
91
|
+
[a&]:hover:bg-background/90
|
|
92
|
+
`,
|
|
93
|
+
failed: `
|
|
94
|
+
border border-destructive-foreground bg-background
|
|
95
|
+
text-destructive-foreground
|
|
96
|
+
[a&]:hover:bg-background/90
|
|
97
|
+
`,
|
|
98
|
+
expired: `
|
|
99
|
+
border border-destructive-foreground bg-background
|
|
100
|
+
text-destructive-foreground
|
|
101
|
+
[a&]:hover:bg-background/90
|
|
102
|
+
`,
|
|
103
|
+
cancelled: `
|
|
104
|
+
border border-destructive-foreground bg-background
|
|
105
|
+
text-destructive-foreground
|
|
106
|
+
[a&]:hover:bg-background/90
|
|
107
|
+
`
|
|
108
|
+
},
|
|
109
|
+
size: {
|
|
110
|
+
xs: `
|
|
111
|
+
h-6.5 px-3 py-px paragraph-xs
|
|
112
|
+
[&>svg]:size-3.5
|
|
113
|
+
`,
|
|
114
|
+
sm: `
|
|
115
|
+
px-4 py-1 paragraph-xs
|
|
116
|
+
[&>svg]:size-4
|
|
117
|
+
`,
|
|
118
|
+
md: `
|
|
119
|
+
px-4 py-2 paragraph-sm
|
|
120
|
+
[&>svg]:size-4
|
|
121
|
+
`,
|
|
122
|
+
lg: `
|
|
123
|
+
px-4 py-2 paragraph-md
|
|
124
|
+
[&>svg]:size-5
|
|
125
|
+
`
|
|
126
|
+
},
|
|
127
|
+
weight: {
|
|
128
|
+
regular: "font-regular",
|
|
129
|
+
medium: "font-medium",
|
|
130
|
+
semibold: "font-semibold"
|
|
131
|
+
},
|
|
132
|
+
rounded: {
|
|
133
|
+
default: "rounded-2xl",
|
|
134
|
+
full: "rounded-full"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
defaultVariants: {
|
|
138
|
+
variant: "default",
|
|
139
|
+
size: "xs",
|
|
140
|
+
weight: "semibold",
|
|
141
|
+
rounded: "full"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
function h({
|
|
146
|
+
className: e,
|
|
147
|
+
variant: r,
|
|
148
|
+
size: o,
|
|
149
|
+
weight: t,
|
|
150
|
+
rounded: d,
|
|
151
|
+
iconOnly: a,
|
|
152
|
+
asChild: g = !1,
|
|
153
|
+
children: n,
|
|
154
|
+
...i
|
|
155
|
+
}) {
|
|
156
|
+
const s = g ? c : "span";
|
|
157
|
+
return /* @__PURE__ */ u.jsx(
|
|
158
|
+
s,
|
|
159
|
+
{
|
|
160
|
+
"data-slot": "badge",
|
|
161
|
+
className: b(
|
|
162
|
+
l({ variant: r, size: o, weight: t, rounded: d }),
|
|
163
|
+
a && "px-2.5 py-2",
|
|
164
|
+
e
|
|
165
|
+
),
|
|
166
|
+
...i,
|
|
167
|
+
children: n
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
export {
|
|
172
|
+
h as B
|
|
173
|
+
};
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { c as a, j as e } from "./index-CwFDnnd3.js";
|
|
2
|
+
import { Slot as _ } from "@radix-ui/react-slot";
|
|
3
|
+
import { c as k } from "./index-CnqageB2.js";
|
|
4
|
+
import w from "react";
|
|
5
|
+
import { C } from "./clasing-icon-CJQQN554.js";
|
|
6
|
+
import { b, T as c, c as g, a as f } from "./tooltip-BYeLeBei.js";
|
|
7
|
+
const T = k(
|
|
8
|
+
`
|
|
9
|
+
relative z-0 flex items-center justify-center rounded-full
|
|
10
|
+
transition-[color,background-color,box-shadow]
|
|
11
|
+
before:absolute before:inset-0 before:z-[-1] before:rounded-full
|
|
12
|
+
before:transition-transform before:duration-150 before:ease-in-out
|
|
13
|
+
focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-1
|
|
14
|
+
active:before:scale-96
|
|
15
|
+
[&_svg]:shrink-0
|
|
16
|
+
`,
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
// Variantes de botón sólido
|
|
21
|
+
primary: [
|
|
22
|
+
`
|
|
23
|
+
text-primary-foreground
|
|
24
|
+
before:bg-primary
|
|
25
|
+
hover:before:bg-primary/80
|
|
26
|
+
`
|
|
27
|
+
],
|
|
28
|
+
secondary: [
|
|
29
|
+
`
|
|
30
|
+
text-secondary-foreground
|
|
31
|
+
before:bg-secondary
|
|
32
|
+
hover:before:bg-secondary/60
|
|
33
|
+
`
|
|
34
|
+
],
|
|
35
|
+
ghost: [
|
|
36
|
+
`
|
|
37
|
+
text-foreground
|
|
38
|
+
before:bg-background
|
|
39
|
+
hover:before:bg-muted
|
|
40
|
+
`
|
|
41
|
+
],
|
|
42
|
+
outline: [
|
|
43
|
+
`
|
|
44
|
+
text-foreground
|
|
45
|
+
before:border before:border-foreground before:bg-background
|
|
46
|
+
hover:before:bg-muted
|
|
47
|
+
`
|
|
48
|
+
],
|
|
49
|
+
destructive: [
|
|
50
|
+
`
|
|
51
|
+
text-destructive-foreground
|
|
52
|
+
before:bg-destructive
|
|
53
|
+
hover:before:bg-destructive/80
|
|
54
|
+
`
|
|
55
|
+
],
|
|
56
|
+
link: [
|
|
57
|
+
`
|
|
58
|
+
text-blue-500
|
|
59
|
+
hover:bg-blue-050
|
|
60
|
+
dark:text-blue-300
|
|
61
|
+
dark:hover:bg-blue-900/30
|
|
62
|
+
`
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
size: {
|
|
66
|
+
xl: `
|
|
67
|
+
h-12 gap-2 px-6 py-1 button-text-lg leading-[100%]
|
|
68
|
+
[&_svg]:size-5
|
|
69
|
+
`,
|
|
70
|
+
lg: `
|
|
71
|
+
h-10 gap-2 px-5 py-1 button-text-md leading-[100%]
|
|
72
|
+
[&_svg]:size-5
|
|
73
|
+
`,
|
|
74
|
+
md: `
|
|
75
|
+
h-8 gap-1.5 px-4 py-1 button-text-sm leading-[100%]
|
|
76
|
+
[&_svg]:size-4
|
|
77
|
+
`,
|
|
78
|
+
sm: `
|
|
79
|
+
h-7 gap-1 px-3 py-1 button-text-sm leading-[100%]
|
|
80
|
+
[&_svg]:size-4
|
|
81
|
+
`,
|
|
82
|
+
xs: `
|
|
83
|
+
h-6 gap-1 px-3 py-1 button-text-sm leading-[100%]
|
|
84
|
+
[&_svg]:size-3.5
|
|
85
|
+
`
|
|
86
|
+
},
|
|
87
|
+
weight: {
|
|
88
|
+
regular: "font-regular",
|
|
89
|
+
medium: "font-medium",
|
|
90
|
+
semibold: "font-semibold"
|
|
91
|
+
},
|
|
92
|
+
isLoading: {
|
|
93
|
+
false: null,
|
|
94
|
+
true: "cursor-wait"
|
|
95
|
+
},
|
|
96
|
+
isActive: {
|
|
97
|
+
false: null,
|
|
98
|
+
true: ""
|
|
99
|
+
},
|
|
100
|
+
disabled: {
|
|
101
|
+
false: null,
|
|
102
|
+
true: `
|
|
103
|
+
disabled:cursor-not-allowed disabled:text-muted-foreground!
|
|
104
|
+
disabled:before:bg-muted!
|
|
105
|
+
`
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
compoundVariants: [
|
|
109
|
+
{
|
|
110
|
+
variant: "link",
|
|
111
|
+
size: ["xl", "lg", "md", "sm", "xs"],
|
|
112
|
+
className: "h-auto px-3 py-1"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
variant: "link",
|
|
116
|
+
size: ["xl", "lg"],
|
|
117
|
+
className: `
|
|
118
|
+
button-text-lg!
|
|
119
|
+
[&_svg]:size-5
|
|
120
|
+
`
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
variant: "link",
|
|
124
|
+
size: "md",
|
|
125
|
+
className: "button-text-md!"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
variant: "link",
|
|
129
|
+
size: ["sm", "xs"],
|
|
130
|
+
className: "[&_svg]:size-3.5"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
variant: "primary",
|
|
134
|
+
isLoading: !0,
|
|
135
|
+
className: `
|
|
136
|
+
text-primary-foreground!
|
|
137
|
+
before:bg-primary/80!
|
|
138
|
+
`
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
variant: "secondary",
|
|
142
|
+
isLoading: !0,
|
|
143
|
+
className: `
|
|
144
|
+
text-secondary-foreground!
|
|
145
|
+
before:bg-secondary/60!
|
|
146
|
+
`
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
variant: "outline",
|
|
150
|
+
isLoading: !0,
|
|
151
|
+
className: `
|
|
152
|
+
text-secondary-foreground!
|
|
153
|
+
before:bg-neutral-200!
|
|
154
|
+
`
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
variant: "ghost",
|
|
158
|
+
isLoading: !0,
|
|
159
|
+
className: `
|
|
160
|
+
text-secondary-foreground!
|
|
161
|
+
before:bg-neutral-200!
|
|
162
|
+
`
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
variant: "destructive",
|
|
166
|
+
isLoading: !0,
|
|
167
|
+
className: `
|
|
168
|
+
text-destructive-foreground!
|
|
169
|
+
before:bg-destructive/80!
|
|
170
|
+
`
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
defaultVariants: {
|
|
174
|
+
variant: "primary",
|
|
175
|
+
size: "xl",
|
|
176
|
+
weight: "semibold"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
), B = w.forwardRef(
|
|
180
|
+
({
|
|
181
|
+
className: m,
|
|
182
|
+
variant: x,
|
|
183
|
+
size: i,
|
|
184
|
+
weight: p,
|
|
185
|
+
children: n,
|
|
186
|
+
isLoading: r,
|
|
187
|
+
disabled: o,
|
|
188
|
+
tooltip: t,
|
|
189
|
+
tooltipPlacement: l = "top",
|
|
190
|
+
asChild: d,
|
|
191
|
+
iconOnly: u,
|
|
192
|
+
...v
|
|
193
|
+
}, y) => {
|
|
194
|
+
const h = d ? _ : "button", j = u ? {
|
|
195
|
+
xl: "w-12 px-0",
|
|
196
|
+
lg: "w-10 px-0",
|
|
197
|
+
md: "w-8 px-0",
|
|
198
|
+
sm: "w-7 px-0",
|
|
199
|
+
xs: "w-6 px-0"
|
|
200
|
+
}[i || "xl"] : "", N = a(
|
|
201
|
+
T({
|
|
202
|
+
variant: x,
|
|
203
|
+
weight: p,
|
|
204
|
+
size: i,
|
|
205
|
+
isLoading: r,
|
|
206
|
+
disabled: o
|
|
207
|
+
}),
|
|
208
|
+
m,
|
|
209
|
+
j
|
|
210
|
+
), z = d ? n : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
211
|
+
r && /* @__PURE__ */ e.jsx(
|
|
212
|
+
C,
|
|
213
|
+
{
|
|
214
|
+
variant: "default",
|
|
215
|
+
className: a(
|
|
216
|
+
"pointer-events-none absolute top-1/2 left-1/2 -translate-1/2",
|
|
217
|
+
{
|
|
218
|
+
"visible animate-[spin_2s_linear_infinite] opacity-100": r
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
/* @__PURE__ */ e.jsx(
|
|
224
|
+
"span",
|
|
225
|
+
{
|
|
226
|
+
className: a(
|
|
227
|
+
"flex items-center justify-center gap-2",
|
|
228
|
+
r ? "invisible opacity-0" : "visible opacity-100"
|
|
229
|
+
),
|
|
230
|
+
children: n
|
|
231
|
+
}
|
|
232
|
+
)
|
|
233
|
+
] }), s = /* @__PURE__ */ e.jsx(
|
|
234
|
+
h,
|
|
235
|
+
{
|
|
236
|
+
ref: y,
|
|
237
|
+
className: N,
|
|
238
|
+
disabled: !!r || !!o,
|
|
239
|
+
...v,
|
|
240
|
+
children: z
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
return t && (o || r) ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(c, { children: [
|
|
244
|
+
/* @__PURE__ */ e.jsx(g, { asChild: !0, children: u ? /* @__PURE__ */ e.jsx("div", { className: "inline-block", "aria-disabled": "true", children: s }) : s }),
|
|
245
|
+
/* @__PURE__ */ e.jsx(f, { side: l, children: t })
|
|
246
|
+
] }) }) : t ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(c, { children: [
|
|
247
|
+
/* @__PURE__ */ e.jsx(g, { asChild: !0, children: s }),
|
|
248
|
+
/* @__PURE__ */ e.jsx(f, { side: l, children: t })
|
|
249
|
+
] }) }) : s;
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
B.displayName = "Button";
|
|
253
|
+
export {
|
|
254
|
+
B,
|
|
255
|
+
T as b
|
|
256
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";const e=require("./index-Bfismeyo.cjs"),R=require("@radix-ui/react-slot"),N=require("./index-BmhzhLcV.cjs"),z=require("react"),E=require("./clasing-icon-CHt2Otn8.cjs"),t=require("./tooltip-BZWEHWmU.cjs"),x=N.cva(`
|
|
2
|
+
relative z-0 flex items-center justify-center rounded-full
|
|
3
|
+
transition-[color,background-color,box-shadow]
|
|
4
|
+
before:absolute before:inset-0 before:z-[-1] before:rounded-full
|
|
5
|
+
before:transition-transform before:duration-150 before:ease-in-out
|
|
6
|
+
focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-1
|
|
7
|
+
active:before:scale-96
|
|
8
|
+
[&_svg]:shrink-0
|
|
9
|
+
`,{variants:{variant:{primary:[`
|
|
10
|
+
text-primary-foreground
|
|
11
|
+
before:bg-primary
|
|
12
|
+
hover:before:bg-primary/80
|
|
13
|
+
`],secondary:[`
|
|
14
|
+
text-secondary-foreground
|
|
15
|
+
before:bg-secondary
|
|
16
|
+
hover:before:bg-secondary/60
|
|
17
|
+
`],ghost:[`
|
|
18
|
+
text-foreground
|
|
19
|
+
before:bg-background
|
|
20
|
+
hover:before:bg-muted
|
|
21
|
+
`],outline:[`
|
|
22
|
+
text-foreground
|
|
23
|
+
before:border before:border-foreground before:bg-background
|
|
24
|
+
hover:before:bg-muted
|
|
25
|
+
`],destructive:[`
|
|
26
|
+
text-destructive-foreground
|
|
27
|
+
before:bg-destructive
|
|
28
|
+
hover:before:bg-destructive/80
|
|
29
|
+
`],link:[`
|
|
30
|
+
text-blue-500
|
|
31
|
+
hover:bg-blue-050
|
|
32
|
+
dark:text-blue-300
|
|
33
|
+
dark:hover:bg-blue-900/30
|
|
34
|
+
`]},size:{xl:`
|
|
35
|
+
h-12 gap-2 px-6 py-1 button-text-lg leading-[100%]
|
|
36
|
+
[&_svg]:size-5
|
|
37
|
+
`,lg:`
|
|
38
|
+
h-10 gap-2 px-5 py-1 button-text-md leading-[100%]
|
|
39
|
+
[&_svg]:size-5
|
|
40
|
+
`,md:`
|
|
41
|
+
h-8 gap-1.5 px-4 py-1 button-text-sm leading-[100%]
|
|
42
|
+
[&_svg]:size-4
|
|
43
|
+
`,sm:`
|
|
44
|
+
h-7 gap-1 px-3 py-1 button-text-sm leading-[100%]
|
|
45
|
+
[&_svg]:size-4
|
|
46
|
+
`,xs:`
|
|
47
|
+
h-6 gap-1 px-3 py-1 button-text-sm leading-[100%]
|
|
48
|
+
[&_svg]:size-3.5
|
|
49
|
+
`},weight:{regular:"font-regular",medium:"font-medium",semibold:"font-semibold"},isLoading:{false:null,true:"cursor-wait"},isActive:{false:null,true:""},disabled:{false:null,true:`
|
|
50
|
+
disabled:cursor-not-allowed disabled:text-muted-foreground!
|
|
51
|
+
disabled:before:bg-muted!
|
|
52
|
+
`}},compoundVariants:[{variant:"link",size:["xl","lg","md","sm","xs"],className:"h-auto px-3 py-1"},{variant:"link",size:["xl","lg"],className:`
|
|
53
|
+
button-text-lg!
|
|
54
|
+
[&_svg]:size-5
|
|
55
|
+
`},{variant:"link",size:"md",className:"button-text-md!"},{variant:"link",size:["sm","xs"],className:"[&_svg]:size-3.5"},{variant:"primary",isLoading:!0,className:`
|
|
56
|
+
text-primary-foreground!
|
|
57
|
+
before:bg-primary/80!
|
|
58
|
+
`},{variant:"secondary",isLoading:!0,className:`
|
|
59
|
+
text-secondary-foreground!
|
|
60
|
+
before:bg-secondary/60!
|
|
61
|
+
`},{variant:"outline",isLoading:!0,className:`
|
|
62
|
+
text-secondary-foreground!
|
|
63
|
+
before:bg-neutral-200!
|
|
64
|
+
`},{variant:"ghost",isLoading:!0,className:`
|
|
65
|
+
text-secondary-foreground!
|
|
66
|
+
before:bg-neutral-200!
|
|
67
|
+
`},{variant:"destructive",isLoading:!0,className:`
|
|
68
|
+
text-destructive-foreground!
|
|
69
|
+
before:bg-destructive/80!
|
|
70
|
+
`}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold"}}),b=z.forwardRef(({className:c,variant:g,size:n,weight:m,children:a,isLoading:r,disabled:i,tooltip:s,tooltipPlacement:l="top",asChild:u,iconOnly:d,...f},p)=>{const v=u?R.Slot:"button",y=d?{xl:"w-12 px-0",lg:"w-10 px-0",md:"w-8 px-0",sm:"w-7 px-0",xs:"w-6 px-0"}[n||"xl"]:"",h=e.cn(x({variant:g,weight:m,size:n,isLoading:r,disabled:i}),c,y),j=u?a:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[r&&e.jsxRuntimeExports.jsx(E.ClasingIcon,{variant:"default",className:e.cn("pointer-events-none absolute top-1/2 left-1/2 -translate-1/2",{"visible animate-[spin_2s_linear_infinite] opacity-100":r})}),e.jsxRuntimeExports.jsx("span",{className:e.cn("flex items-center justify-center gap-2",r?"invisible opacity-0":"visible opacity-100"),children:a})]}),o=e.jsxRuntimeExports.jsx(v,{ref:p,className:h,disabled:!!r||!!i,...f,children:j});return s&&(i||r)?e.jsxRuntimeExports.jsx(t.TooltipProvider,{children:e.jsxRuntimeExports.jsxs(t.Tooltip,{children:[e.jsxRuntimeExports.jsx(t.TooltipTrigger,{asChild:!0,children:d?e.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:o}):o}),e.jsxRuntimeExports.jsx(t.TooltipContent,{side:l,children:s})]})}):s?e.jsxRuntimeExports.jsx(t.TooltipProvider,{children:e.jsxRuntimeExports.jsxs(t.Tooltip,{children:[e.jsxRuntimeExports.jsx(t.TooltipTrigger,{asChild:!0,children:o}),e.jsxRuntimeExports.jsx(t.TooltipContent,{side:l,children:s})]})}):o});b.displayName="Button";exports.Button=b;exports.buttonStyles=x;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const t=require("./index-Bfismeyo.cjs");function e({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:t.cn(`
|
|
2
|
+
flex flex-col gap-6 rounded-xl border bg-card py-6
|
|
3
|
+
text-card-foreground
|
|
4
|
+
`,r),...a})}function s({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:t.cn(`
|
|
5
|
+
@container/card-header grid auto-rows-min grid-rows-[auto_auto]
|
|
6
|
+
items-start gap-1.5 px-6
|
|
7
|
+
has-data-[slot=card-action]:grid-cols-[1fr_auto]
|
|
8
|
+
[.border-b]:pb-6
|
|
9
|
+
`,r),...a})}function n({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:t.cn("leading-none font-semibold",r),...a})}function o({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:t.cn("paragraph-sm text-muted-foreground",r),...a})}function d({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:t.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",r),...a})}function c({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:t.cn("px-6",r),...a})}function i({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:t.cn(`
|
|
10
|
+
flex items-center px-6
|
|
11
|
+
[.border-t]:pt-6
|
|
12
|
+
`,r),...a})}exports.Card=e;exports.CardAction=d;exports.CardContent=c;exports.CardDescription=o;exports.CardFooter=i;exports.CardHeader=s;exports.CardTitle=n;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { j as r, c as s } from "./index-
|
|
1
|
+
import { j as r, c as s } from "./index-CwFDnnd3.js";
|
|
2
2
|
function o({ className: a, ...t }) {
|
|
3
3
|
return /* @__PURE__ */ r.jsx(
|
|
4
4
|
"div",
|
|
5
5
|
{
|
|
6
6
|
"data-slot": "card",
|
|
7
7
|
className: s(
|
|
8
|
-
|
|
8
|
+
`
|
|
9
|
+
flex flex-col gap-6 rounded-xl border bg-card py-6
|
|
10
|
+
text-card-foreground
|
|
11
|
+
`,
|
|
9
12
|
a
|
|
10
13
|
),
|
|
11
14
|
...t
|
|
@@ -18,7 +21,12 @@ function d({ className: a, ...t }) {
|
|
|
18
21
|
{
|
|
19
22
|
"data-slot": "card-header",
|
|
20
23
|
className: s(
|
|
21
|
-
|
|
24
|
+
`
|
|
25
|
+
@container/card-header grid auto-rows-min grid-rows-[auto_auto]
|
|
26
|
+
items-start gap-1.5 px-6
|
|
27
|
+
has-data-[slot=card-action]:grid-cols-[1fr_auto]
|
|
28
|
+
[.border-b]:pb-6
|
|
29
|
+
`,
|
|
22
30
|
a
|
|
23
31
|
),
|
|
24
32
|
...t
|
|
@@ -40,7 +48,7 @@ function c({ className: a, ...t }) {
|
|
|
40
48
|
"div",
|
|
41
49
|
{
|
|
42
50
|
"data-slot": "card-description",
|
|
43
|
-
className: s("text-muted-foreground
|
|
51
|
+
className: s("paragraph-sm text-muted-foreground", a),
|
|
44
52
|
...t
|
|
45
53
|
}
|
|
46
54
|
);
|
|
@@ -73,7 +81,13 @@ function u({ className: a, ...t }) {
|
|
|
73
81
|
"div",
|
|
74
82
|
{
|
|
75
83
|
"data-slot": "card-footer",
|
|
76
|
-
className: s(
|
|
84
|
+
className: s(
|
|
85
|
+
`
|
|
86
|
+
flex items-center px-6
|
|
87
|
+
[.border-t]:pt-6
|
|
88
|
+
`,
|
|
89
|
+
a
|
|
90
|
+
),
|
|
77
91
|
...t
|
|
78
92
|
}
|
|
79
93
|
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";const e=require("./index-Bfismeyo.cjs"),g=require("./index-BmhzhLcV.cjs"),m=require("react"),t=g.cva(`
|
|
2
|
+
inline-flex items-center gap-1 rounded-full border px-3 py-1.5
|
|
3
|
+
transition-colors
|
|
4
|
+
focus-visible:ring-[1.5px] focus-visible:ring-ring-default
|
|
5
|
+
focus-visible:ring-offset-1 focus-visible:outline-hidden
|
|
6
|
+
`,{variants:{variant:{selected:[`
|
|
7
|
+
border-info-foreground bg-info/20 font-semibold text-info-foreground
|
|
8
|
+
dark:text-info-foreground
|
|
9
|
+
`],unselected:[`
|
|
10
|
+
border bg-background text-foreground
|
|
11
|
+
hover:bg-muted
|
|
12
|
+
`],error:[`
|
|
13
|
+
border-destructive-foreground bg-destructive
|
|
14
|
+
text-destructive-foreground
|
|
15
|
+
`]},size:{sm:"paragraph-xs",md:"paragraph-sm",lg:"paragraph-md"},weight:{regular:"font-regular",medium:"font-medium",semibold:"font-semibold"},disabled:{false:null,true:`
|
|
16
|
+
cursor-default border-muted-foreground bg-muted text-muted-foreground
|
|
17
|
+
`}},defaultVariants:{variant:"unselected",size:"md",weight:"regular"}}),c=m.forwardRef(({className:o,variant:i,size:n,weight:s,children:d,notification:u,onClick:a,disabled:r,...l},f)=>a?e.jsxRuntimeExports.jsxs("button",{ref:f,className:e.cn(t({variant:i,size:n,weight:s,className:o,disabled:r})),type:"button",disabled:r??void 0,onClick:a,...l,children:[d,u&&e.jsxRuntimeExports.jsx("span",{"data-slot":"notification","aria-hidden":"true",className:"size-1 min-w-1 rounded-full bg-destructive-foreground"})]}):e.jsxRuntimeExports.jsxs("div",{ref:f,className:e.cn(t({variant:i,size:n,weight:s,className:o,disabled:r})),...l,children:[d,u&&e.jsxRuntimeExports.jsx("span",{"data-slot":"notification","aria-hidden":"true",className:"size-1 min-w-1 rounded-full bg-destructive-foreground"})]}));c.displayName="Chip";exports.ChipComponent=c;exports.chipStyles=t;
|