@clasing/ui 2.4.0 → 2.5.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/README.md +7 -12
- package/dist/{badge-Cprh3bik.js → badge-C29hQNIG.js} +2 -2
- package/dist/{button-3Q4mqjFF.js → button-Bn-b-nVw.js} +62 -81
- package/dist/button-C7U_D8vv.cjs +1 -0
- package/dist/{card-CbF9kVVs.js → card-Cv2M4wv8.js} +1 -1
- package/dist/chip-C_Uh7fe6.cjs +1 -0
- package/dist/{chip-B7Mqq278.js → chip-ZryYiiU1.js} +9 -9
- package/dist/{clasing-icon-XjkVWhKg.js → clasing-icon-BIYMLc8o.js} +11 -19
- package/dist/clasing-icon-Bym32_-4.cjs +1 -0
- package/dist/{command-ev4m9IoQ.js → command-CGrOI2Z9.js} +2 -2
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +2 -2
- package/dist/components/alert.es.js +2 -2
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +5 -5
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +3 -3
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button-group.cjs.js +1 -0
- package/dist/components/button-group.d.ts +11 -0
- package/dist/components/button-group.es.js +75 -0
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +0 -3
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +2 -2
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.es.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/clasing-icon.cjs.js +1 -1
- package/dist/components/clasing-icon.es.js +1 -1
- package/dist/components/collapsible.es.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.es.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 +2 -18
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/dropdown-menu.es.js +1 -1
- package/dist/components/form.es.js +2 -2
- package/dist/components/hover-card.es.js +1 -1
- package/dist/components/input-otp.es.js +1 -1
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/kbd.cjs.js +1 -0
- package/dist/components/kbd.d.ts +3 -0
- package/dist/components/kbd.es.js +30 -0
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.es.js +1 -1
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +5 -5
- package/dist/components/navigation-menu.es.js +2 -2
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +5 -5
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.es.js +1 -1
- package/dist/components/resizable.es.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/sheet.es.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.es.js +1 -1
- package/dist/components/sonner.es.js +1 -1
- package/dist/components/switch.es.js +2 -2
- package/dist/components/table.es.js +1 -1
- package/dist/components/textarea.es.js +2 -2
- package/dist/components/toggle-group.es.js +2 -2
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/{dialog-CXbzQHxn.js → dialog-CH4VxKX4.js} +1 -1
- package/dist/divider-BMxVoyPg.js +20 -0
- package/dist/divider-BcIwJzm7.cjs +1 -0
- package/dist/entries/button-group.d.ts +2 -0
- package/dist/entries/kbd.d.ts +2 -0
- package/dist/{index-D5lmpham.js → index-BCEGphus.js} +2 -2
- package/dist/{index-DN28Pf0m.js → index-DEha_UuN.js} +1 -1
- package/dist/{input-SV4tkGu9.js → input-BvfRiqqw.js} +3 -3
- package/dist/{input-D3AVygkb.cjs → input-Dtd0sjiW.cjs} +1 -1
- package/dist/{label-DDxTPxHk.js → label-Bl6V6esj.js} +1 -1
- package/dist/{popover-BdDS9aoy.js → popover-1_WpciTS.js} +1 -1
- package/dist/{scroll-area-oS6ZJIMN.js → scroll-area-CxpVQq0v.js} +1 -1
- package/dist/{toggle-BNzrNg1r.js → toggle-99EXLQgX.js} +2 -2
- package/dist/{tooltip-rv-jVOxy.js → tooltip-BS84dkwx.js} +1 -1
- package/package.json +373 -357
- package/dist/button-BekvnyS7.cjs +0 -1
- package/dist/chip-BG4NEZUv.cjs +0 -1
- package/dist/clasing-icon-CMe7j64k.cjs +0 -1
package/README.md
CHANGED
|
@@ -17,22 +17,17 @@ To install the packages, you need to run the following command: `npm install @cl
|
|
|
17
17
|
|
|
18
18
|
### Step 2: Initial configuration
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
If you are not using TailwindCSS in your project, you need to add the following line to your `index.tsx`, `layout.tsx` or root file: `import "@clasing/ui/styles"`
|
|
23
|
-
|
|
24
|
-
#### If you are using TailwindCSS
|
|
25
|
-
|
|
26
|
-
If you are using TailwindCSS in your project, you need to add the following line to your `tailwind.config.js` file (have in account that you should have the initial config of TailwindCSS):
|
|
27
|
-
|
|
28
|
-
- At `content` array, add `./node_modules/@clasing/ui/dist/index.umd.js`
|
|
29
|
-
- At `presets` array, add `require('@clasing/ui/tailwind.config.js')`
|
|
30
|
-
- Add the following line to your `index.tsx`, `layout.tsx` or root file: `import "@clasing/ui/styles"`
|
|
20
|
+
If you are using TailwindCSS in your project, you need to add the following lines to your main CSS file:
|
|
21
|
+
`@import '@clasing/ui/styles';` and `@source '../../node_modules/@clasing/ui/dist*.{js,ts,jsx,tsx}';`
|
|
31
22
|
|
|
32
23
|
### Step 3: Using the components
|
|
33
24
|
|
|
34
|
-
Now you can use the components in your project. You can import the components like this: `import { Button } from "@clasing/ui"`
|
|
25
|
+
Now you can use the components in your project. You can import the components like this: `import { Button } from "@clasing/ui/button"`
|
|
35
26
|
|
|
36
27
|
## Contributing
|
|
37
28
|
|
|
38
29
|
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
|
|
30
|
+
|
|
31
|
+
## Maintenance
|
|
32
|
+
|
|
33
|
+
For information on updating dependencies and maintaining the project, see [MAINTENANCE.md](MAINTENANCE.md).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as b, c as d } from "./index-
|
|
1
|
+
import { j as b, c as d } from "./index-BCEGphus.js";
|
|
2
2
|
import { Slot as u } from "@radix-ui/react-slot";
|
|
3
|
-
import { c as h } from "./index-
|
|
3
|
+
import { c as h } from "./index-DEha_UuN.js";
|
|
4
4
|
const p = h(
|
|
5
5
|
"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",
|
|
6
6
|
{
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
import { C as
|
|
6
|
-
import { b as
|
|
7
|
-
const
|
|
1
|
+
import { c as d, j as t } from "./index-BCEGphus.js";
|
|
2
|
+
import { Slot as N } from "@radix-ui/react-slot";
|
|
3
|
+
import { c as b } from "./index-DEha_UuN.js";
|
|
4
|
+
import S from "react";
|
|
5
|
+
import { C as T } from "./clasing-icon-BIYMLc8o.js";
|
|
6
|
+
import { b as h, T as v, c as y, a as c } from "./tooltip-BS84dkwx.js";
|
|
7
|
+
const g = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,background-color,box-shadow] [&_svg]:shrink-0 rounded-full", B = b(g, {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
// Variantes de botón sólido
|
|
11
11
|
primary: [
|
|
12
|
-
"bg-primary-600
|
|
12
|
+
"bg-primary-600 hover:bg-primary-800 outline-primary-600 hover:outline-primary-800 text-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"
|
|
13
13
|
],
|
|
14
14
|
secondary: [
|
|
15
|
-
"bg-
|
|
15
|
+
"bg-neutral-1000 outline-neutral-1000 text-white hover:bg-neutral-900 hover:outline-neutral-900 disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"
|
|
16
16
|
],
|
|
17
17
|
inverse: [
|
|
18
|
-
"
|
|
18
|
+
"hover:bg-neutral-000 bg-white text-black outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"
|
|
19
19
|
],
|
|
20
20
|
outline: [
|
|
21
|
-
"text-primary-600 outline-primary-600
|
|
21
|
+
"text-primary-600 outline-primary-600 hover:bg-primary-050 bg-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:outline-transparent disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"
|
|
22
22
|
],
|
|
23
23
|
ghost: [
|
|
24
|
-
"bg-primary-050 text-primary-600
|
|
24
|
+
"bg-primary-050 text-primary-600 hover:bg-primary-100 outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"
|
|
25
25
|
],
|
|
26
26
|
destructive: [
|
|
27
|
-
"bg-error-light text-error-main outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:
|
|
27
|
+
"bg-error-light text-error-main outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"
|
|
28
28
|
],
|
|
29
29
|
link: [
|
|
30
|
-
"text-primary-600
|
|
30
|
+
"text-primary-600 hover:bg-primary-050 bg-transparent outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
size: {
|
|
@@ -37,10 +37,6 @@ const b = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
37
37
|
sm: "button-text-sm h-7 gap-1 px-3 py-1 leading-[100%] [&_svg]:size-3.5",
|
|
38
38
|
xs: "button-text-sm h-6 gap-1 px-3 py-1 leading-[100%] [&_svg]:size-3.5"
|
|
39
39
|
},
|
|
40
|
-
rounded: {
|
|
41
|
-
default: "rounded-2xl",
|
|
42
|
-
full: "rounded-full"
|
|
43
|
-
},
|
|
44
40
|
weight: {
|
|
45
41
|
light: "font-light",
|
|
46
42
|
regular: "font-regular",
|
|
@@ -51,10 +47,9 @@ const b = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
51
47
|
defaultVariants: {
|
|
52
48
|
variant: "primary",
|
|
53
49
|
size: "xl",
|
|
54
|
-
weight: "semibold"
|
|
55
|
-
rounded: "full"
|
|
50
|
+
weight: "semibold"
|
|
56
51
|
}
|
|
57
|
-
}),
|
|
52
|
+
}), R = b(`${g} cursor-default`, {
|
|
58
53
|
variants: {
|
|
59
54
|
variant: {
|
|
60
55
|
primary: ["bg-primary-800 text-white outline-transparent"],
|
|
@@ -72,10 +67,6 @@ const b = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
72
67
|
sm: "button-text-sm h-7 gap-1 px-3 py-1 leading-[100%] [&_svg]:size-3.5",
|
|
73
68
|
xs: "button-text-sm h-6 gap-1 px-3 py-1 leading-[100%] [&_svg]:size-3.5"
|
|
74
69
|
},
|
|
75
|
-
rounded: {
|
|
76
|
-
default: "rounded-2xl",
|
|
77
|
-
full: "rounded-full"
|
|
78
|
-
},
|
|
79
70
|
weight: {
|
|
80
71
|
light: "font-light",
|
|
81
72
|
regular: "font-regular",
|
|
@@ -86,10 +77,9 @@ const b = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
86
77
|
defaultVariants: {
|
|
87
78
|
variant: "primary",
|
|
88
79
|
size: "xl",
|
|
89
|
-
weight: "semibold"
|
|
90
|
-
rounded: "full"
|
|
80
|
+
weight: "semibold"
|
|
91
81
|
}
|
|
92
|
-
}),
|
|
82
|
+
}), V = b(g, {
|
|
93
83
|
variants: {
|
|
94
84
|
variant: {
|
|
95
85
|
primary: ["bg-primary-800 text-white outline-transparent"],
|
|
@@ -107,10 +97,6 @@ const b = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
107
97
|
sm: "button-text-sm h-7 gap-1 px-3 leading-[100%] [&_svg]:size-3.5",
|
|
108
98
|
xs: "button-text-sm h-6 gap-1 px-3 leading-[100%] [&_svg]:size-3.5"
|
|
109
99
|
},
|
|
110
|
-
rounded: {
|
|
111
|
-
default: "rounded-2xl",
|
|
112
|
-
full: "rounded-full"
|
|
113
|
-
},
|
|
114
100
|
weight: {
|
|
115
101
|
light: "font-light",
|
|
116
102
|
regular: "font-regular",
|
|
@@ -121,58 +107,53 @@ const b = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
121
107
|
defaultVariants: {
|
|
122
108
|
variant: "primary",
|
|
123
109
|
size: "xl",
|
|
124
|
-
weight: "semibold"
|
|
125
|
-
rounded: "full"
|
|
110
|
+
weight: "semibold"
|
|
126
111
|
}
|
|
127
|
-
}),
|
|
112
|
+
}), A = S.forwardRef(
|
|
128
113
|
({
|
|
129
|
-
className:
|
|
114
|
+
className: l,
|
|
130
115
|
variant: s,
|
|
131
116
|
size: r,
|
|
132
117
|
weight: o,
|
|
133
|
-
|
|
134
|
-
children: p,
|
|
118
|
+
children: u,
|
|
135
119
|
isLoading: e,
|
|
136
|
-
isActive:
|
|
137
|
-
disabled:
|
|
120
|
+
isActive: f,
|
|
121
|
+
disabled: p,
|
|
138
122
|
tooltip: a,
|
|
139
|
-
tooltipPlacement:
|
|
140
|
-
asChild:
|
|
141
|
-
iconOnly:
|
|
142
|
-
...
|
|
143
|
-
},
|
|
144
|
-
const
|
|
123
|
+
tooltipPlacement: x = "top",
|
|
124
|
+
asChild: m,
|
|
125
|
+
iconOnly: i,
|
|
126
|
+
..._
|
|
127
|
+
}, w) => {
|
|
128
|
+
const z = m ? N : "button", j = i ? {
|
|
145
129
|
xl: "w-12 px-0",
|
|
146
130
|
lg: "w-10 px-0",
|
|
147
131
|
md: "w-8 px-0",
|
|
148
132
|
sm: "w-7 px-0",
|
|
149
133
|
xs: "w-6 px-0"
|
|
150
|
-
}[r || "xl"] : "",
|
|
151
|
-
e ?
|
|
134
|
+
}[r || "xl"] : "", k = d(
|
|
135
|
+
e ? R({
|
|
152
136
|
variant: s,
|
|
153
137
|
weight: o,
|
|
154
138
|
size: r,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}) : _ ? A({
|
|
139
|
+
className: l
|
|
140
|
+
}) : f ? V({
|
|
158
141
|
variant: s,
|
|
159
142
|
weight: o,
|
|
160
143
|
size: r,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}) : R({
|
|
144
|
+
className: l
|
|
145
|
+
}) : B({
|
|
164
146
|
variant: s,
|
|
165
147
|
weight: o,
|
|
166
148
|
size: r,
|
|
167
|
-
|
|
168
|
-
className: i
|
|
149
|
+
className: l
|
|
169
150
|
}),
|
|
170
|
-
|
|
171
|
-
),
|
|
151
|
+
j
|
|
152
|
+
), C = m ? u : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
172
153
|
e && /* @__PURE__ */ t.jsx(
|
|
173
|
-
|
|
154
|
+
T,
|
|
174
155
|
{
|
|
175
|
-
className:
|
|
156
|
+
className: d(
|
|
176
157
|
"pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
177
158
|
{
|
|
178
159
|
"visible animate-[spin_2s_linear_infinite] opacity-100": e
|
|
@@ -183,39 +164,39 @@ const b = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
183
164
|
/* @__PURE__ */ t.jsx(
|
|
184
165
|
"span",
|
|
185
166
|
{
|
|
186
|
-
className:
|
|
167
|
+
className: d(
|
|
187
168
|
"flex items-center justify-center gap-2",
|
|
188
169
|
e ? "invisible opacity-0" : "visible opacity-100"
|
|
189
170
|
),
|
|
190
|
-
children:
|
|
171
|
+
children: u
|
|
191
172
|
}
|
|
192
173
|
)
|
|
193
174
|
] }), n = /* @__PURE__ */ t.jsx(
|
|
194
|
-
|
|
175
|
+
z,
|
|
195
176
|
{
|
|
196
|
-
ref:
|
|
197
|
-
className:
|
|
198
|
-
disabled:
|
|
199
|
-
...
|
|
200
|
-
children:
|
|
177
|
+
ref: w,
|
|
178
|
+
className: k,
|
|
179
|
+
disabled: p || e,
|
|
180
|
+
..._,
|
|
181
|
+
children: C
|
|
201
182
|
}
|
|
202
183
|
);
|
|
203
|
-
return a && (
|
|
204
|
-
/* @__PURE__ */ t.jsx(y, { asChild:
|
|
184
|
+
return a && (p || e) ? /* @__PURE__ */ t.jsx(h, { children: /* @__PURE__ */ t.jsxs(v, { children: [
|
|
185
|
+
/* @__PURE__ */ t.jsx(y, { asChild: i, children: i ? /* @__PURE__ */ t.jsx("div", { className: "inline-block", "aria-disabled": "true", children: n }) : n }),
|
|
205
186
|
/* @__PURE__ */ t.jsx(
|
|
206
|
-
|
|
187
|
+
c,
|
|
207
188
|
{
|
|
208
|
-
side:
|
|
189
|
+
side: x,
|
|
209
190
|
className: "text-muted-foreground",
|
|
210
191
|
children: a
|
|
211
192
|
}
|
|
212
193
|
)
|
|
213
|
-
] }) }) : a ? /* @__PURE__ */ t.jsx(
|
|
214
|
-
/* @__PURE__ */ t.jsx(y, { asChild:
|
|
194
|
+
] }) }) : a ? /* @__PURE__ */ t.jsx(h, { children: /* @__PURE__ */ t.jsxs(v, { children: [
|
|
195
|
+
/* @__PURE__ */ t.jsx(y, { asChild: i, children: n }),
|
|
215
196
|
/* @__PURE__ */ t.jsx(
|
|
216
|
-
|
|
197
|
+
c,
|
|
217
198
|
{
|
|
218
|
-
side:
|
|
199
|
+
side: x,
|
|
219
200
|
className: "text-muted-foreground",
|
|
220
201
|
children: a
|
|
221
202
|
}
|
|
@@ -223,10 +204,10 @@ const b = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
223
204
|
] }) }) : n;
|
|
224
205
|
}
|
|
225
206
|
);
|
|
226
|
-
|
|
207
|
+
A.displayName = "Button";
|
|
227
208
|
export {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
209
|
+
A as B,
|
|
210
|
+
R as a,
|
|
211
|
+
V as b,
|
|
212
|
+
B as c
|
|
232
213
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./index-9HRzXEQf.cjs"),S=require("@radix-ui/react-slot"),d=require("./index-ECyCsPX0.cjs"),T=require("react"),k=require("./clasing-icon-Bym32_-4.cjs"),e=require("./tooltip-BccdAn4x.cjs"),x="focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,background-color,box-shadow] [&_svg]:shrink-0 rounded-full",h=d.cva(x,{variants:{variant:{primary:["bg-primary-600 hover:bg-primary-800 outline-primary-600 hover:outline-primary-800 text-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"],secondary:["bg-neutral-1000 outline-neutral-1000 text-white hover:bg-neutral-900 hover:outline-neutral-900 disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"],inverse:["hover:bg-neutral-000 bg-white text-black outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"],outline:["text-primary-600 outline-primary-600 hover:bg-primary-050 bg-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:outline-transparent disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"],ghost:["bg-primary-050 text-primary-600 hover:bg-primary-100 outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"],destructive:["bg-error-light text-error-main outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"],link:["text-primary-600 hover:bg-primary-050 bg-transparent outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:hover:bg-neutral-100 disabled:hover:text-neutral-700"]},size:{xl:"button-text-lg h-12 gap-2 px-6 py-1 leading-[100%] [&_svg]:size-5",lg:"button-text-md h-10 gap-2 px-5 py-1 leading-[100%] [&_svg]:size-4",md:"button-text-sm h-8 gap-1.5 px-4 py-1 leading-[100%] [&_svg]:size-3.5",sm:"button-text-sm h-7 gap-1 px-3 py-1 leading-[100%] [&_svg]:size-3.5",xs:"button-text-sm h-6 gap-1 px-3 py-1 leading-[100%] [&_svg]:size-3.5"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"primary",size:"xl",weight:"semibold"}}),v=d.cva(`${x} 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 outline-transparent"]},size:{xl:"button-text-lg h-12 gap-2 px-6 py-1 leading-[100%] [&_svg]:size-5",lg:"button-text-md h-10 gap-2 px-5 py-1 leading-[100%] [&_svg]:size-4",md:"button-text-sm h-8 gap-1.5 px-4 py-1 leading-[100%] [&_svg]:size-3.5",sm:"button-text-sm h-7 gap-1 px-3 py-1 leading-[100%] [&_svg]:size-3.5",xs:"button-text-sm h-6 gap-1 px-3 py-1 leading-[100%] [&_svg]:size-3.5"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"primary",size:"xl",weight:"semibold"}}),c=d.cva(x,{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 outline-transparent"]},size:{xl:"button-text-lg h-12 gap-2 px-6 leading-[100%] [&_svg]:size-5",lg:"button-text-md h-10 gap-2 px-5 leading-[100%] [&_svg]:size-4",md:"button-text-sm h-8 gap-1.5 px-4 leading-[100%] [&_svg]:size-3.5",sm:"button-text-sm h-7 gap-1 px-3 leading-[100%] [&_svg]:size-3.5",xs:"button-text-sm h-6 gap-1 px-3 leading-[100%] [&_svg]:size-3.5"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"primary",size:"xl",weight:"semibold"}}),y=T.forwardRef(({className:l,variant:o,size:n,weight:u,children:p,isLoading:r,isActive:f,disabled:g,tooltip:i,tooltipPlacement:b="top",asChild:m,iconOnly:a,...j},w)=>{const _=m?S.Slot:"button",z=a?{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"]:"",R=t.cn(r?v({variant:o,weight:u,size:n,className:l}):f?c({variant:o,weight:u,size:n,className:l}):h({variant:o,weight:u,size:n,className:l}),z),E=m?p:t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[r&&t.jsxRuntimeExports.jsx(k.ClasingIcon,{className:t.cn("pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",{"visible animate-[spin_2s_linear_infinite] opacity-100":r})}),t.jsxRuntimeExports.jsx("span",{className:t.cn("flex items-center justify-center gap-2",r?"invisible opacity-0":"visible opacity-100"),children:p})]}),s=t.jsxRuntimeExports.jsx(_,{ref:w,className:R,disabled:g||r,...j,children:E});return i&&(g||r)?t.jsxRuntimeExports.jsx(e.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(e.Tooltip,{children:[t.jsxRuntimeExports.jsx(e.TooltipTrigger,{asChild:a,children:a?t.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:s}):s}),t.jsxRuntimeExports.jsx(e.TooltipContent,{side:b,className:"text-muted-foreground",children:i})]})}):i?t.jsxRuntimeExports.jsx(e.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(e.Tooltip,{children:[t.jsxRuntimeExports.jsx(e.TooltipTrigger,{asChild:a,children:s}),t.jsxRuntimeExports.jsx(e.TooltipContent,{side:b,className:"text-muted-foreground",children:i})]})}):s});y.displayName="Button";exports.Button=y;exports.buttonActiveStyles=c;exports.buttonLoadingStyles=v;exports.buttonStyles=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-9HRzXEQf.cjs"),g=require("./index-ECyCsPX0.cjs"),m=require("react"),r=g.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:hover:bg-neutral-100",{variants:{intent:{selected:["bg-blue-050 border-blue-800 font-semibold text-blue-800"],unselected:["text-neutral-1000 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"}}),b=m.forwardRef(({className:t,intent:i,size:s,weight:n,children:a,notification:l,onClick:o,disabled:c,...d},u)=>o?e.jsxRuntimeExports.jsxs("button",{ref:u,className:e.cn(r({intent:i,size:s,weight:n,className:t})),type:"button",disabled:c,onClick:o,...d,children:[a,l&&e.jsxRuntimeExports.jsx("span",{"data-slot":"notification","aria-hidden":"true",className:"bg-error-main size-1 min-w-1 rounded-full"})]}):e.jsxRuntimeExports.jsxs("div",{ref:u,className:e.cn(r({intent:i,size:s,weight:n,className:t})),...d,children:[a,l&&e.jsxRuntimeExports.jsx("span",{"data-slot":"notification","aria-hidden":"true",className:"bg-error-main size-1 min-w-1 rounded-full"})]}));b.displayName="Chip";exports.ChipComponent=b;exports.chipStyles=r;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as e, c as u } from "./index-
|
|
2
|
-
import { c as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
const b =
|
|
5
|
-
"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:
|
|
1
|
+
import { j as e, c as u } from "./index-BCEGphus.js";
|
|
2
|
+
import { c as f } from "./index-DEha_UuN.js";
|
|
3
|
+
import { forwardRef as g } from "react";
|
|
4
|
+
const b = f(
|
|
5
|
+
"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:hover:bg-neutral-100",
|
|
6
6
|
{
|
|
7
7
|
variants: {
|
|
8
8
|
intent: {
|
|
9
9
|
selected: ["bg-blue-050 border-blue-800 font-semibold text-blue-800"],
|
|
10
10
|
unselected: [
|
|
11
|
-
"text-neutral-1000
|
|
11
|
+
"text-neutral-1000 hover:bg-neutral-000 border-neutral-500 bg-white"
|
|
12
12
|
],
|
|
13
13
|
error: ["bg-error-light border-error-main text-muted-foreground"]
|
|
14
14
|
},
|
|
@@ -30,7 +30,7 @@ const b = m(
|
|
|
30
30
|
weight: "regular"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
), c =
|
|
33
|
+
), c = g(
|
|
34
34
|
({
|
|
35
35
|
className: r,
|
|
36
36
|
intent: t,
|
|
@@ -39,7 +39,7 @@ const b = m(
|
|
|
39
39
|
children: s,
|
|
40
40
|
notification: l,
|
|
41
41
|
onClick: n,
|
|
42
|
-
disabled:
|
|
42
|
+
disabled: m,
|
|
43
43
|
...o
|
|
44
44
|
}, d) => n ? /* @__PURE__ */ e.jsxs(
|
|
45
45
|
"button",
|
|
@@ -47,7 +47,7 @@ const b = m(
|
|
|
47
47
|
ref: d,
|
|
48
48
|
className: u(b({ intent: t, size: a, weight: i, className: r })),
|
|
49
49
|
type: "button",
|
|
50
|
-
disabled:
|
|
50
|
+
disabled: m,
|
|
51
51
|
onClick: n,
|
|
52
52
|
...o,
|
|
53
53
|
children: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as L, c as i } from "./index-
|
|
1
|
+
import { j as L, c as i } from "./index-BCEGphus.js";
|
|
2
2
|
function h({
|
|
3
3
|
className: s,
|
|
4
4
|
variant: t,
|
|
@@ -6,24 +6,16 @@ function h({
|
|
|
6
6
|
...a
|
|
7
7
|
}) {
|
|
8
8
|
let l = [];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"#F6AF00"
|
|
20
|
-
];
|
|
21
|
-
break;
|
|
22
|
-
default:
|
|
23
|
-
l = Array(8).fill(C);
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
return /* @__PURE__ */ L.jsxs(
|
|
9
|
+
return t === "default" ? l = [
|
|
10
|
+
"#6CC422",
|
|
11
|
+
"#FF7BAA",
|
|
12
|
+
"#FF6F03",
|
|
13
|
+
"#0243F1",
|
|
14
|
+
"#00DBB7",
|
|
15
|
+
"#CF161C",
|
|
16
|
+
"#DD6DFF",
|
|
17
|
+
"#F6AF00"
|
|
18
|
+
] : l = Array(8).fill(C), /* @__PURE__ */ L.jsxs(
|
|
27
19
|
"svg",
|
|
28
20
|
{
|
|
29
21
|
width: "48",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./index-9HRzXEQf.cjs");function e({className:i,variant:l,color:x="currentColor",...L}){let s=[];return l==="default"?s=["#6CC422","#FF7BAA","#FF6F03","#0243F1","#00DBB7","#CF161C","#DD6DFF","#F6AF00"]:s=Array(8).fill(x),t.jsxRuntimeExports.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t.cn(i),...L,children:[t.jsxRuntimeExports.jsx("path",{d:"M22.0316 19.2438L9.82361 6.99085C9.05365 6.2205 7.80528 6.2205 7.0353 6.99085L7.03328 6.99289C6.26332 7.76325 6.26332 9.01224 7.03328 9.78259L19.1481 21.9646L22.0316 24.1086V19.2438Z",fill:s[0]}),t.jsxRuntimeExports.jsx("path",{d:"M40.9576 38.2141L28.8136 25.9861L22.0315 24.1099L26.0506 28.8388L38.1672 41.0059C38.9372 41.7762 40.1856 41.7762 40.9556 41.0059L40.9576 41.0038C41.7275 40.2335 41.7275 38.9845 40.9576 38.2141Z",fill:s[1]}),t.jsxRuntimeExports.jsx("path",{d:"M28.7858 21.9952L40.9823 9.77469C41.7437 9.00615 41.7437 7.76007 40.9823 6.99153L40.9803 6.98949C40.2188 6.22095 38.9843 6.22095 38.2229 6.98949L25.9939 19.087L22.0315 24.1086L28.7858 21.9952Z",fill:s[2]}),t.jsxRuntimeExports.jsx("path",{d:"M19.1799 26.0002L7.03063 38.1476C6.2599 38.9162 6.26441 40.2079 7.03514 40.9765L7.03717 40.9785C7.8079 41.747 9.0575 41.747 9.82824 40.9785L22.0309 28.782V24.1099L19.1799 26.0002Z",fill:s[3]}),t.jsxRuntimeExports.jsx("path",{d:"M19.1588 21.961L1.94788 21.9965C0.872081 21.9965 0 22.8889 0 23.9898V23.9928C0 25.0937 0.872081 25.9862 1.94788 25.9862L19.1803 26.0002L22.0312 24.1099L19.1588 21.961Z",fill:s[4]}),t.jsxRuntimeExports.jsx("path",{d:"M28.6254 25.9858H46.0272C47.1167 25.9858 47.9999 25.0933 47.9999 23.9924V23.9895C47.9999 22.8886 47.1167 21.9961 46.0272 21.9961H28.7858L22.0315 24.1096L28.6254 25.9858Z",fill:s[5]}),t.jsxRuntimeExports.jsx("path",{d:"M22.0059 45.9811C22.0051 47.0967 22.896 48.0012 23.9948 48.0004C25.0914 47.9995 25.98 47.0973 25.9809 45.9841L26.0502 28.8388L22.0311 24.1099",fill:s[6]}),t.jsxRuntimeExports.jsx("path",{d:"M22.0319 24.109L25.9943 19.0874V1.84509C25.9943 0.7448 25.0315 0 23.9311 0H23.9282C22.8278 0 21.9263 0.891965 21.9263 1.99226",fill:s[7]})]})}exports.ClasingIcon=e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, c as o } from "./index-
|
|
1
|
+
import { j as e, c as o } from "./index-BCEGphus.js";
|
|
2
2
|
import { Command as r } from "cmdk";
|
|
3
|
-
import { D as c, e as i, h as p, c as l, b as u } from "./dialog-
|
|
3
|
+
import { D as c, e as i, h as p, c as l, b as u } from "./dialog-CH4VxKX4.js";
|
|
4
4
|
import { MagnifyingGlassIcon as g } from "@phosphor-icons/react";
|
|
5
5
|
function x({
|
|
6
6
|
className: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),c=require("@radix-ui/react-alert-dialog"),n=require("../button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),c=require("@radix-ui/react-alert-dialog"),n=require("../button-C7U_D8vv.cjs");function u(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(a,l,r.get?r:{enumerable:!0,get:()=>t[l]})}}return a.default=t,Object.freeze(a)}const o=u(c);function d({...t}){return e.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function g({...t}){return e.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function i({...t}){return e.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function s({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:e.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function x({className:t,...a}){return e.jsxRuntimeExports.jsxs(i,{children:[e.jsxRuntimeExports.jsx(s,{}),e.jsxRuntimeExports.jsx(o.Content,{"data-slot":"alert-dialog-content",className:e.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-90 data-[state=open]:zoom-in-90 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 ease-in-out sm:max-w-lg",t),...a})]})}function m({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:e.cn("flex flex-col gap-2 text-left",t),...a})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:e.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Title,{"data-slot":"alert-dialog-title",className:e.cn("label-2xl font-semibold",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Description,{"data-slot":"alert-dialog-description",className:e.cn("text-muted-foreground paragraph-md",t),...a})}function D({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Action,{className:e.cn(n.buttonStyles(),t),...a})}function A({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Cancel,{className:e.cn(n.buttonStyles({variant:"outline"}),t),...a})}exports.AlertDialog=d;exports.AlertDialogAction=D;exports.AlertDialogCancel=A;exports.AlertDialogContent=x;exports.AlertDialogDescription=j;exports.AlertDialogFooter=f;exports.AlertDialogHeader=m;exports.AlertDialogOverlay=s;exports.AlertDialogPortal=i;exports.AlertDialogTitle=p;exports.AlertDialogTrigger=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, c as l } from "../index-
|
|
1
|
+
import { j as e, c as l } from "../index-BCEGphus.js";
|
|
2
2
|
import * as o from "@radix-ui/react-alert-dialog";
|
|
3
|
-
import { c as r } from "../button-
|
|
3
|
+
import { c as r } from "../button-Bn-b-nVw.js";
|
|
4
4
|
function c({
|
|
5
5
|
...t
|
|
6
6
|
}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r, c as e } from "../index-
|
|
1
|
+
import { j as r, c as e } from "../index-BCEGphus.js";
|
|
2
2
|
import { QuestionIcon as g, WarningCircleIcon as u, WarningIcon as m, CheckCircleIcon as p, InfoIcon as d } from "@phosphor-icons/react";
|
|
3
|
-
import { c as x } from "../index-
|
|
3
|
+
import { c as x } from "../index-DEha_UuN.js";
|
|
4
4
|
const f = x(
|
|
5
5
|
"paragraph-sm text-foreground relative grid w-full grid-cols-[0_1fr] items-start gap-y-2 rounded-2xl px-6 py-6 has-[>svg]:grid-cols-[calc(var(--spacing)*5)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-5 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
6
6
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as r, c as a } from "../../index-
|
|
2
|
-
import { B as v } from "../../badge-
|
|
3
|
-
import { C as w, e as I, b as y, d as z } from "../../card-
|
|
4
|
-
import { T as k, c as B, a as R } from "../../tooltip-
|
|
1
|
+
import { j as r, c as a } from "../../index-BCEGphus.js";
|
|
2
|
+
import { B as v } from "../../badge-C29hQNIG.js";
|
|
3
|
+
import { C as w, e as I, b as y, d as z } from "../../card-Cv2M4wv8.js";
|
|
4
|
+
import { T as k, c as B, a as R } from "../../tooltip-BS84dkwx.js";
|
|
5
5
|
import { InfoIcon as E } from "@phosphor-icons/react";
|
|
6
|
-
import { c as F } from "../../index-
|
|
6
|
+
import { c as F } from "../../index-DEha_UuN.js";
|
|
7
7
|
import { forwardRef as H } from "react";
|
|
8
8
|
const O = F(
|
|
9
9
|
"focus-visible:border-ring focus-visible:ring-ring/50 transition-[color,box-shadow] focus-visible:ring-[3px]"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../index-9HRzXEQf.cjs"),p=require("../../chip-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../index-9HRzXEQf.cjs"),p=require("../../chip-C_Uh7fe6.cjs"),S=require("../../label-D3iN3bzS.cjs"),y=require("@phosphor-icons/react"),E=({id:j,label:x,options:u,multiple:i=!1,selectedOptions:t,setSelectedOptions:m,className:d,disabled:c,helperText:v,error:a,touched:r})=>{const n=t,h=e=>{if(!i)return m(e.value),e.value;let s=[];return s=Array.isArray(n)?n.includes(e.value)?n.filter(b=>b!==e.value):[...n,e.value]:[e.value],m(s),s},f=e=>i&&Array.isArray(t)?t.includes(e.value):t===e.value;return u.length===0?null:l.jsxRuntimeExports.jsxs("div",{className:l.cn("flex flex-col gap-3",d),children:[x&&l.jsxRuntimeExports.jsx(S.Label,{htmlFor:j,className:l.cn({"text-neutral-700":c}),children:x}),l.jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:u.map(e=>{const s=f(e);return l.jsxRuntimeExports.jsxs(p.ChipComponent,{intent:s?"selected":"unselected",onClick:()=>h(e),className:"py-1",disabled:c,children:[s&&l.jsxRuntimeExports.jsx(y.CheckIcon,{}),e.label]},e.label)})}),a&&r?l.jsxRuntimeExports.jsx("span",{className:"text-error-main label-md -mt-1",children:a}):l.jsxRuntimeExports.jsx("span",{className:l.clsx("label-md -mt-1",{"text-neutral-1000":!a&&!r,"text-error-main":a&&r,"text-success-main":r&&!a,"text-neutral-700":c}),children:v})]})};exports.SelectableChips=E;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as a, c as f, a as y } from "../../index-
|
|
2
|
-
import { C as S } from "../../chip-
|
|
3
|
-
import { L as p } from "../../label-
|
|
1
|
+
import { j as a, c as f, a as y } from "../../index-BCEGphus.js";
|
|
2
|
+
import { C as S } from "../../chip-ZryYiiU1.js";
|
|
3
|
+
import { L as p } from "../../label-Bl6V6esj.js";
|
|
4
4
|
import { CheckIcon as A } from "@phosphor-icons/react";
|
|
5
5
|
const w = ({
|
|
6
6
|
id: v,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),s=require("@radix-ui/react-slot"),a=require("../index-ECyCsPX0.cjs"),u=require("../divider-BcIwJzm7.cjs"),n=a.cva("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-full [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none! [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none!",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none! [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none!"}},defaultVariants:{orientation:"horizontal"}});function l({className:o,orientation:t,...r}){return e.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"button-group","data-orientation":t,className:e.cn(n({orientation:t}),o),...r})}function d({className:o,asChild:t=!1,...r}){const i=t?s.Slot:"div";return e.jsxRuntimeExports.jsx(i,{className:e.cn("bg-muted flex items-center gap-2 rounded-full border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",o),...r})}function c({className:o,orientation:t="vertical",...r}){return e.jsxRuntimeExports.jsx(u.Divider,{"data-slot":"button-group-separator",orientation:t,className:e.cn("bg-input relative m-0! self-stretch data-[orientation=vertical]:h-auto",o),...r})}exports.ButtonGroup=l;exports.ButtonGroupDivider=c;exports.ButtonGroupText=d;exports.buttonGroupVariants=n;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Divider } from './divider';
|
|
3
|
+
declare const buttonGroupVariants: (props?: ({
|
|
4
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<'div'> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function ButtonGroupDivider({ className, orientation, ...props }: React.ComponentProps<typeof Divider>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { ButtonGroup, ButtonGroupDivider, ButtonGroupText, buttonGroupVariants };
|