@clasing/ui 2.7.5 → 2.9.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-DnN1HZI0.js → badge-CaH3b0zW.js} +12 -15
- package/dist/{button-C8ApjC1N.js → button-DSpGxL2e.js} +11 -12
- package/dist/components/accordion.js +14 -16
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/blocks/interactive-card.js +45 -51
- package/dist/components/blocks/selectable-chips.js +33 -32
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/checkbox.js +13 -15
- package/dist/components/context-menu.js +7 -7
- package/dist/components/dropdown-menu.js +38 -38
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/multi-select.js +36 -38
- package/dist/components/navigation-menu.js +16 -19
- package/dist/components/phone-input.js +88 -80
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/select.js +18 -20
- package/dist/components/textarea.js +19 -25
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/{input-EFdg0T-Q.js → input-D9gqZjs0.js} +34 -42
- package/dist/{scroll-area-DQenuQib.js → scroll-area-BTNDZ-p2.js} +11 -13
- package/dist/{toggle-Bj6sVNqF.js → toggle-Df9QfXij.js} +9 -11
- package/dist/ui.css +57 -35
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { j as t, c as r } from "../index-C_XDkVGm.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as n from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import { CheckIcon as d, CircleIcon as i, CaretRightIcon as u } from "@phosphor-icons/react";
|
|
4
4
|
function p({
|
|
5
5
|
...e
|
|
6
6
|
}) {
|
|
7
|
-
return /* @__PURE__ */ t.jsx(
|
|
7
|
+
return /* @__PURE__ */ t.jsx(n.Root, { "data-slot": "dropdown-menu", ...e });
|
|
8
8
|
}
|
|
9
9
|
function m({
|
|
10
10
|
...e
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ t.jsx(
|
|
12
|
+
return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
13
13
|
}
|
|
14
14
|
function f({
|
|
15
15
|
...e
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ t.jsx(
|
|
18
|
-
|
|
18
|
+
n.Trigger,
|
|
19
19
|
{
|
|
20
20
|
"data-slot": "dropdown-menu-trigger",
|
|
21
21
|
...e
|
|
@@ -24,15 +24,15 @@ function f({
|
|
|
24
24
|
}
|
|
25
25
|
function g({
|
|
26
26
|
className: e,
|
|
27
|
-
sideOffset:
|
|
27
|
+
sideOffset: o = 4,
|
|
28
28
|
collisionPadding: a = 24,
|
|
29
29
|
...s
|
|
30
30
|
}) {
|
|
31
|
-
return /* @__PURE__ */ t.jsx(
|
|
32
|
-
|
|
31
|
+
return /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
32
|
+
n.Content,
|
|
33
33
|
{
|
|
34
34
|
"data-slot": "dropdown-menu-content",
|
|
35
|
-
sideOffset:
|
|
35
|
+
sideOffset: o,
|
|
36
36
|
className: r(
|
|
37
37
|
`
|
|
38
38
|
z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32
|
|
@@ -58,19 +58,19 @@ function g({
|
|
|
58
58
|
function x({
|
|
59
59
|
...e
|
|
60
60
|
}) {
|
|
61
|
-
return /* @__PURE__ */ t.jsx(
|
|
61
|
+
return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
62
62
|
}
|
|
63
63
|
function v({
|
|
64
64
|
className: e,
|
|
65
|
-
inset:
|
|
65
|
+
inset: o,
|
|
66
66
|
variant: a = "default",
|
|
67
67
|
...s
|
|
68
68
|
}) {
|
|
69
69
|
return /* @__PURE__ */ t.jsx(
|
|
70
|
-
|
|
70
|
+
n.Item,
|
|
71
71
|
{
|
|
72
72
|
"data-slot": "dropdown-menu-item",
|
|
73
|
-
"data-inset":
|
|
73
|
+
"data-inset": o,
|
|
74
74
|
"data-variant": a,
|
|
75
75
|
className: r(
|
|
76
76
|
`
|
|
@@ -82,10 +82,10 @@ function v({
|
|
|
82
82
|
data-[variant=destructive]:text-destructive-foreground
|
|
83
83
|
data-[variant=destructive]:focus:bg-destructive
|
|
84
84
|
data-[variant=destructive]:focus:text-destructive-foreground
|
|
85
|
-
dark:data-[variant=destructive]:focus:bg-destructive
|
|
85
|
+
dark:data-[variant=destructive]:focus:bg-destructive/80
|
|
86
86
|
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
87
87
|
[&_svg:not([class*='size-'])]:size-4
|
|
88
|
-
data-[variant=destructive]:*:[svg]:text-destructive!
|
|
88
|
+
data-[variant=destructive]:*:[svg]:text-destructive-foreground!
|
|
89
89
|
`,
|
|
90
90
|
e
|
|
91
91
|
),
|
|
@@ -95,12 +95,12 @@ function v({
|
|
|
95
95
|
}
|
|
96
96
|
function b({
|
|
97
97
|
className: e,
|
|
98
|
-
children:
|
|
98
|
+
children: o,
|
|
99
99
|
checked: a,
|
|
100
100
|
...s
|
|
101
101
|
}) {
|
|
102
102
|
return /* @__PURE__ */ t.jsxs(
|
|
103
|
-
|
|
103
|
+
n.CheckboxItem,
|
|
104
104
|
{
|
|
105
105
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
106
106
|
className: r(
|
|
@@ -124,10 +124,10 @@ function b({
|
|
|
124
124
|
pointer-events-none absolute left-2 flex size-3.5 items-center\r
|
|
125
125
|
justify-center\r
|
|
126
126
|
`,
|
|
127
|
-
children: /* @__PURE__ */ t.jsx(
|
|
127
|
+
children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(d, { className: "size-4" }) })
|
|
128
128
|
}
|
|
129
129
|
),
|
|
130
|
-
|
|
130
|
+
o
|
|
131
131
|
]
|
|
132
132
|
}
|
|
133
133
|
);
|
|
@@ -136,7 +136,7 @@ function w({
|
|
|
136
136
|
...e
|
|
137
137
|
}) {
|
|
138
138
|
return /* @__PURE__ */ t.jsx(
|
|
139
|
-
|
|
139
|
+
n.RadioGroup,
|
|
140
140
|
{
|
|
141
141
|
"data-slot": "dropdown-menu-radio-group",
|
|
142
142
|
...e
|
|
@@ -145,11 +145,11 @@ function w({
|
|
|
145
145
|
}
|
|
146
146
|
function h({
|
|
147
147
|
className: e,
|
|
148
|
-
children:
|
|
148
|
+
children: o,
|
|
149
149
|
...a
|
|
150
150
|
}) {
|
|
151
151
|
return /* @__PURE__ */ t.jsxs(
|
|
152
|
-
|
|
152
|
+
n.RadioItem,
|
|
153
153
|
{
|
|
154
154
|
"data-slot": "dropdown-menu-radio-item",
|
|
155
155
|
className: r(
|
|
@@ -172,24 +172,24 @@ function h({
|
|
|
172
172
|
pointer-events-none absolute left-2 flex size-3.5 items-center\r
|
|
173
173
|
justify-center\r
|
|
174
174
|
`,
|
|
175
|
-
children: /* @__PURE__ */ t.jsx(
|
|
175
|
+
children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(i, { weight: "fill", className: "size-2 fill-current" }) })
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
|
-
|
|
178
|
+
o
|
|
179
179
|
]
|
|
180
180
|
}
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
183
|
function j({
|
|
184
184
|
className: e,
|
|
185
|
-
inset:
|
|
185
|
+
inset: o,
|
|
186
186
|
...a
|
|
187
187
|
}) {
|
|
188
188
|
return /* @__PURE__ */ t.jsx(
|
|
189
|
-
|
|
189
|
+
n.Label,
|
|
190
190
|
{
|
|
191
191
|
"data-slot": "dropdown-menu-label",
|
|
192
|
-
"data-inset":
|
|
192
|
+
"data-inset": o,
|
|
193
193
|
className: r(
|
|
194
194
|
`
|
|
195
195
|
px-2 py-1.5 paragraph-sm font-semibold
|
|
@@ -203,20 +203,20 @@ function j({
|
|
|
203
203
|
}
|
|
204
204
|
function z({
|
|
205
205
|
className: e,
|
|
206
|
-
...
|
|
206
|
+
...o
|
|
207
207
|
}) {
|
|
208
208
|
return /* @__PURE__ */ t.jsx(
|
|
209
|
-
|
|
209
|
+
n.Separator,
|
|
210
210
|
{
|
|
211
211
|
"data-slot": "dropdown-menu-separator",
|
|
212
212
|
className: r("-mx-1 my-1 h-px bg-border", e),
|
|
213
|
-
...
|
|
213
|
+
...o
|
|
214
214
|
}
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
217
|
function D({
|
|
218
218
|
className: e,
|
|
219
|
-
...
|
|
219
|
+
...o
|
|
220
220
|
}) {
|
|
221
221
|
return /* @__PURE__ */ t.jsx(
|
|
222
222
|
"span",
|
|
@@ -226,26 +226,26 @@ function D({
|
|
|
226
226
|
"ml-auto paragraph-xs tracking-widest text-muted-foreground",
|
|
227
227
|
e
|
|
228
228
|
),
|
|
229
|
-
...
|
|
229
|
+
...o
|
|
230
230
|
}
|
|
231
231
|
);
|
|
232
232
|
}
|
|
233
233
|
function M({
|
|
234
234
|
...e
|
|
235
235
|
}) {
|
|
236
|
-
return /* @__PURE__ */ t.jsx(
|
|
236
|
+
return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
237
237
|
}
|
|
238
238
|
function N({
|
|
239
239
|
className: e,
|
|
240
|
-
inset:
|
|
240
|
+
inset: o,
|
|
241
241
|
children: a,
|
|
242
242
|
...s
|
|
243
243
|
}) {
|
|
244
244
|
return /* @__PURE__ */ t.jsxs(
|
|
245
|
-
|
|
245
|
+
n.SubTrigger,
|
|
246
246
|
{
|
|
247
247
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
248
|
-
"data-inset":
|
|
248
|
+
"data-inset": o,
|
|
249
249
|
className: r(
|
|
250
250
|
`
|
|
251
251
|
relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5
|
|
@@ -268,10 +268,10 @@ function N({
|
|
|
268
268
|
}
|
|
269
269
|
function y({
|
|
270
270
|
className: e,
|
|
271
|
-
...
|
|
271
|
+
...o
|
|
272
272
|
}) {
|
|
273
273
|
return /* @__PURE__ */ t.jsx(
|
|
274
|
-
|
|
274
|
+
n.SubContent,
|
|
275
275
|
{
|
|
276
276
|
"data-slot": "dropdown-menu-sub-content",
|
|
277
277
|
className: r(
|
|
@@ -290,7 +290,7 @@ function y({
|
|
|
290
290
|
`,
|
|
291
291
|
e
|
|
292
292
|
),
|
|
293
|
-
...
|
|
293
|
+
...o
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
@@ -54,7 +54,7 @@ function b({
|
|
|
54
54
|
data-[active=true]:z-10 data-[active=true]:border-ring
|
|
55
55
|
data-[active=true]:ring-[3px] data-[active=true]:ring-ring
|
|
56
56
|
data-[active=true]:aria-invalid:border-destructive-foreground
|
|
57
|
-
data-[active=true]:aria-invalid:ring-
|
|
57
|
+
data-[active=true]:aria-invalid:ring-
|
|
58
58
|
dark:bg-input/30
|
|
59
59
|
dark:data-[active=true]:aria-invalid:ring-destructive-foreground/40
|
|
60
60
|
`,
|
package/dist/components/input.js
CHANGED
|
@@ -116,7 +116,7 @@ function j({
|
|
|
116
116
|
data-[variant=destructive]:text-destructive-foreground
|
|
117
117
|
data-[variant=destructive]:focus:bg-destructive
|
|
118
118
|
data-[variant=destructive]:focus:text-destructive-foreground
|
|
119
|
-
dark:data-[variant=destructive]:focus:bg-destructive
|
|
119
|
+
dark:data-[variant=destructive]:focus:bg-destructive/80
|
|
120
120
|
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
121
121
|
[&_svg:not([class*='size-'])]:size-4
|
|
122
122
|
data-[variant=destructive]:*:[svg]:text-destructive-foreground!
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e, c as I } from "../index-C_XDkVGm.js";
|
|
2
|
-
import { B as z } from "../badge-
|
|
2
|
+
import { B as z } from "../badge-CaH3b0zW.js";
|
|
3
3
|
import { C as E, f as P, d as O, b as _, c as A, e as F, g as L } from "../command-Cq3FhQXv.js";
|
|
4
4
|
import { P as T, b as W, c as G } from "../popover-CLQxfbEi.js";
|
|
5
5
|
import { CheckIcon as B, CaretUpDownIcon as D, XIcon as U } from "@phosphor-icons/react";
|
|
@@ -12,27 +12,27 @@ function ne({
|
|
|
12
12
|
defaultValues: o,
|
|
13
13
|
onValuesChange: a,
|
|
14
14
|
isLoading: c,
|
|
15
|
-
onSearchChange:
|
|
15
|
+
onSearchChange: i,
|
|
16
16
|
loadingText: f = "Loading...",
|
|
17
17
|
noResultsText: u = "No results found"
|
|
18
18
|
}) {
|
|
19
19
|
const [d, p] = y(!1), [b, x] = y(
|
|
20
20
|
new Set(r ?? o)
|
|
21
|
-
), [
|
|
21
|
+
), [C, m] = y(/* @__PURE__ */ new Map()), [h, j] = y("");
|
|
22
22
|
function s(n) {
|
|
23
23
|
const g = (w) => {
|
|
24
|
-
const
|
|
25
|
-
return
|
|
24
|
+
const v = new Set(w);
|
|
25
|
+
return v.has(n) ? v.delete(n) : v.add(n), v;
|
|
26
26
|
};
|
|
27
27
|
x(g), a?.([...g(b)]);
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const l = V((n, g) => {
|
|
30
30
|
m((w) => w.get(n) === g ? w : new Map(w).set(n, g));
|
|
31
|
-
}, []),
|
|
31
|
+
}, []), S = V(
|
|
32
32
|
(n) => {
|
|
33
|
-
j(n),
|
|
33
|
+
j(n), i?.(n);
|
|
34
34
|
},
|
|
35
|
-
[
|
|
35
|
+
[i]
|
|
36
36
|
);
|
|
37
37
|
return /* @__PURE__ */ e.jsx(
|
|
38
38
|
R,
|
|
@@ -42,11 +42,11 @@ function ne({
|
|
|
42
42
|
setOpen: p,
|
|
43
43
|
selectedValues: r ? new Set(r) : b,
|
|
44
44
|
toggleValue: s,
|
|
45
|
-
items:
|
|
46
|
-
onItemAdded:
|
|
45
|
+
items: C,
|
|
46
|
+
onItemAdded: l,
|
|
47
47
|
isLoading: c,
|
|
48
48
|
searchValue: h,
|
|
49
|
-
onSearchChange:
|
|
49
|
+
onSearchChange: S,
|
|
50
50
|
loadingText: f,
|
|
51
51
|
noResultsText: u
|
|
52
52
|
},
|
|
@@ -73,9 +73,7 @@ function re({
|
|
|
73
73
|
`
|
|
74
74
|
flex w-fit items-center justify-between gap-2 overflow-hidden
|
|
75
75
|
rounded-md border border-input bg-transparent whitespace-nowrap
|
|
76
|
-
|
|
77
|
-
focus-visible:border-ring focus-visible:ring-[3px]
|
|
78
|
-
focus-visible:ring-ring/50
|
|
76
|
+
focusable-item
|
|
79
77
|
disabled:cursor-not-allowed disabled:opacity-50
|
|
80
78
|
aria-invalid:border-destructive-foreground
|
|
81
79
|
aria-invalid:ring-destructive-foreground/20
|
|
@@ -109,22 +107,22 @@ function se({
|
|
|
109
107
|
overflowBehavior: a = "wrap-when-open",
|
|
110
108
|
...c
|
|
111
109
|
}) {
|
|
112
|
-
const { selectedValues:
|
|
110
|
+
const { selectedValues: i, toggleValue: f, items: u, open: d } = N(), [p, b] = y(0), x = M(null), C = M(null), m = M(/* @__PURE__ */ new Set()), h = a === "wrap" || a === "wrap-when-open" && d;
|
|
113
111
|
k(() => {
|
|
114
112
|
h && m.current.forEach((s) => s.style.removeProperty("display"));
|
|
115
113
|
}, [h]);
|
|
116
114
|
const j = V(() => {
|
|
117
115
|
if (x.current == null) return;
|
|
118
|
-
const s = x.current,
|
|
119
|
-
|
|
120
|
-
let
|
|
116
|
+
const s = x.current, l = C.current;
|
|
117
|
+
l != null && (l.style.display = "none"), m.current.forEach((n) => n.style.removeProperty("display"));
|
|
118
|
+
let S = 0;
|
|
121
119
|
for (let n = m.current.size - 1; n >= 0; n--) {
|
|
122
120
|
const g = [...m.current][n];
|
|
123
121
|
if (s.scrollWidth <= s.clientWidth)
|
|
124
122
|
break;
|
|
125
|
-
|
|
123
|
+
S = m.current.size - n, g.style.display = "none", l?.style.removeProperty("display");
|
|
126
124
|
}
|
|
127
|
-
b(
|
|
125
|
+
b(S);
|
|
128
126
|
}, []);
|
|
129
127
|
return k(() => {
|
|
130
128
|
if (x.current == null) return;
|
|
@@ -132,7 +130,7 @@ function se({
|
|
|
132
130
|
return s.observe(x.current), () => s.disconnect();
|
|
133
131
|
}, [j]), q(() => {
|
|
134
132
|
j();
|
|
135
|
-
}, [
|
|
133
|
+
}, [i, j]), i.size === 0 && t ? /* @__PURE__ */ e.jsx("span", { className: "font-regular text-muted-foreground", children: t }) : /* @__PURE__ */ e.jsxs(
|
|
136
134
|
"div",
|
|
137
135
|
{
|
|
138
136
|
...c,
|
|
@@ -143,19 +141,19 @@ function se({
|
|
|
143
141
|
o
|
|
144
142
|
),
|
|
145
143
|
children: [
|
|
146
|
-
[...
|
|
144
|
+
[...i].filter((s) => u.has(s)).map((s) => /* @__PURE__ */ e.jsxs(
|
|
147
145
|
z,
|
|
148
146
|
{
|
|
149
|
-
ref: (
|
|
150
|
-
if (
|
|
151
|
-
return m.current.add(
|
|
152
|
-
m.current.delete(
|
|
147
|
+
ref: (l) => {
|
|
148
|
+
if (l != null)
|
|
149
|
+
return m.current.add(l), () => {
|
|
150
|
+
m.current.delete(l);
|
|
153
151
|
};
|
|
154
152
|
},
|
|
155
153
|
variant: "outline",
|
|
156
154
|
className: "group flex items-center gap-1",
|
|
157
|
-
onClick: r ? (
|
|
158
|
-
|
|
155
|
+
onClick: r ? (l) => {
|
|
156
|
+
l.stopPropagation(), f(s);
|
|
159
157
|
} : void 0,
|
|
160
158
|
children: [
|
|
161
159
|
u.get(s),
|
|
@@ -179,7 +177,7 @@ function se({
|
|
|
179
177
|
display: p > 0 && !h ? "block" : "none"
|
|
180
178
|
},
|
|
181
179
|
variant: "outline",
|
|
182
|
-
ref:
|
|
180
|
+
ref: C,
|
|
183
181
|
children: [
|
|
184
182
|
"+",
|
|
185
183
|
p
|
|
@@ -195,7 +193,7 @@ function oe({
|
|
|
195
193
|
children: r,
|
|
196
194
|
...o
|
|
197
195
|
}) {
|
|
198
|
-
const { isLoading: a, onSearchChange: c, searchValue:
|
|
196
|
+
const { isLoading: a, onSearchChange: c, searchValue: i, noResultsText: f, loadingText: u } = N(), d = typeof t == "object" ? !0 : t;
|
|
199
197
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
200
198
|
/* @__PURE__ */ e.jsx("div", { style: { display: "none" }, children: /* @__PURE__ */ e.jsx(E, { children: /* @__PURE__ */ e.jsx(P, { children: r }) }) }),
|
|
201
199
|
/* @__PURE__ */ e.jsx(W, { className: "min-w-(--radix-popover-trigger-width) p-0", children: /* @__PURE__ */ e.jsxs(E, { ...o, children: [
|
|
@@ -203,7 +201,7 @@ function oe({
|
|
|
203
201
|
O,
|
|
204
202
|
{
|
|
205
203
|
placeholder: typeof t == "object" ? t.placeholder : void 0,
|
|
206
|
-
value:
|
|
204
|
+
value: i,
|
|
207
205
|
onValueChange: c
|
|
208
206
|
}
|
|
209
207
|
) : /* @__PURE__ */ e.jsx("button", { autoFocus: !0, "aria-hidden": "true", className: "sr-only" }),
|
|
@@ -224,7 +222,7 @@ function ae({
|
|
|
224
222
|
onSelect: a,
|
|
225
223
|
...c
|
|
226
224
|
}) {
|
|
227
|
-
const { toggleValue:
|
|
225
|
+
const { toggleValue: i, selectedValues: f, onItemAdded: u } = N(), d = f.has(t);
|
|
228
226
|
return k(() => {
|
|
229
227
|
u(t, o ?? r);
|
|
230
228
|
}, [t, r, u, o]), /* @__PURE__ */ e.jsxs(
|
|
@@ -233,7 +231,7 @@ function ae({
|
|
|
233
231
|
...c,
|
|
234
232
|
value: t,
|
|
235
233
|
onSelect: (p) => {
|
|
236
|
-
|
|
234
|
+
i(p), a?.(p);
|
|
237
235
|
},
|
|
238
236
|
children: [
|
|
239
237
|
/* @__PURE__ */ e.jsx(
|
|
@@ -247,10 +245,10 @@ function ae({
|
|
|
247
245
|
}
|
|
248
246
|
);
|
|
249
247
|
}
|
|
250
|
-
function
|
|
248
|
+
function le(t) {
|
|
251
249
|
return /* @__PURE__ */ e.jsx(A, { ...t });
|
|
252
250
|
}
|
|
253
|
-
function
|
|
251
|
+
function ie(t) {
|
|
254
252
|
return /* @__PURE__ */ e.jsx(L, { ...t });
|
|
255
253
|
}
|
|
256
254
|
function N() {
|
|
@@ -264,9 +262,9 @@ function N() {
|
|
|
264
262
|
export {
|
|
265
263
|
ne as MultiSelect,
|
|
266
264
|
oe as MultiSelectContent,
|
|
267
|
-
|
|
265
|
+
le as MultiSelectGroup,
|
|
268
266
|
ae as MultiSelectItem,
|
|
269
|
-
|
|
267
|
+
ie as MultiSelectSeparator,
|
|
270
268
|
re as MultiSelectTrigger,
|
|
271
269
|
se as MultiSelectValue
|
|
272
270
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e, c as o } from "../index-C_XDkVGm.js";
|
|
2
2
|
import * as n from "@radix-ui/react-navigation-menu";
|
|
3
3
|
import { cva as s } from "class-variance-authority";
|
|
4
|
-
import { CaretDownIcon as
|
|
4
|
+
import { CaretDownIcon as d } from "@phosphor-icons/react";
|
|
5
5
|
function v({
|
|
6
6
|
className: t,
|
|
7
7
|
children: a,
|
|
@@ -28,7 +28,7 @@ function v({
|
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function p({
|
|
32
32
|
className: t,
|
|
33
33
|
...a
|
|
34
34
|
}) {
|
|
@@ -44,7 +44,7 @@ function f({
|
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function f({
|
|
48
48
|
className: t,
|
|
49
49
|
...a
|
|
50
50
|
}) {
|
|
@@ -57,14 +57,13 @@ function p({
|
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const u = s(
|
|
61
61
|
`
|
|
62
62
|
group inline-flex h-9 w-max items-center justify-center rounded-md
|
|
63
|
-
bg-background px-4 py-2 paragraph-sm font-medium
|
|
63
|
+
bg-background px-4 py-2 paragraph-sm font-medium focusable-item
|
|
64
64
|
transition-[color,box-shadow] outline-none
|
|
65
65
|
hover:bg-accent hover:text-accent-foreground
|
|
66
66
|
focus:bg-accent focus:text-accent-foreground
|
|
67
|
-
focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1
|
|
68
67
|
disabled:pointer-events-none disabled:opacity-50
|
|
69
68
|
data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground
|
|
70
69
|
data-[state=open]:hover:bg-accent
|
|
@@ -80,13 +79,13 @@ function x({
|
|
|
80
79
|
n.Trigger,
|
|
81
80
|
{
|
|
82
81
|
"data-slot": "navigation-menu-trigger",
|
|
83
|
-
className: o(
|
|
82
|
+
className: o(u(), "group", t),
|
|
84
83
|
...i,
|
|
85
84
|
children: [
|
|
86
85
|
a,
|
|
87
86
|
" ",
|
|
88
87
|
/* @__PURE__ */ e.jsx(
|
|
89
|
-
|
|
88
|
+
d,
|
|
90
89
|
{
|
|
91
90
|
className: `\r
|
|
92
91
|
relative top-px ml-1 size-3 transition duration-300\r
|
|
@@ -174,7 +173,7 @@ function l({
|
|
|
174
173
|
}
|
|
175
174
|
);
|
|
176
175
|
}
|
|
177
|
-
function
|
|
176
|
+
function h({
|
|
178
177
|
className: t,
|
|
179
178
|
...a
|
|
180
179
|
}) {
|
|
@@ -184,12 +183,10 @@ function b({
|
|
|
184
183
|
"data-slot": "navigation-menu-link",
|
|
185
184
|
className: o(
|
|
186
185
|
`
|
|
187
|
-
flex flex-col gap-1 rounded-sm p-2 paragraph-sm
|
|
188
|
-
outline-none
|
|
186
|
+
flex flex-col gap-1 rounded-sm p-2 paragraph-sm focusable-item
|
|
187
|
+
transition-all outline-none
|
|
189
188
|
hover:bg-accent hover:text-accent-foreground
|
|
190
189
|
focus:bg-accent focus:text-accent-foreground
|
|
191
|
-
focus-visible:ring-[3px] focus-visible:ring-ring/50
|
|
192
|
-
focus-visible:outline-1
|
|
193
190
|
data-[active=true]:bg-accent/50
|
|
194
191
|
data-[active=true]:text-accent-foreground
|
|
195
192
|
data-[active=true]:hover:bg-accent
|
|
@@ -202,7 +199,7 @@ function b({
|
|
|
202
199
|
}
|
|
203
200
|
);
|
|
204
201
|
}
|
|
205
|
-
function
|
|
202
|
+
function b({
|
|
206
203
|
className: t,
|
|
207
204
|
...a
|
|
208
205
|
}) {
|
|
@@ -233,11 +230,11 @@ function h({
|
|
|
233
230
|
export {
|
|
234
231
|
v as NavigationMenu,
|
|
235
232
|
w as NavigationMenuContent,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
233
|
+
b as NavigationMenuIndicator,
|
|
234
|
+
f as NavigationMenuItem,
|
|
235
|
+
h as NavigationMenuLink,
|
|
236
|
+
p as NavigationMenuList,
|
|
240
237
|
x as NavigationMenuTrigger,
|
|
241
238
|
l as NavigationMenuViewport,
|
|
242
|
-
|
|
239
|
+
u as navigationMenuTriggerStyle
|
|
243
240
|
};
|