@brightlocal/ui-components 0.4.0 → 0.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 +2 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +2 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +64 -64
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.js +47 -47
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +27 -26
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +34 -34
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +58 -57
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +19 -37
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +5 -0
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +49 -36
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.d.ts +3 -8
- package/dist/centred-layout.d.ts.map +1 -1
- package/dist/centred-layout.js +33 -48
- package/dist/chart.cjs +2 -2
- package/dist/chart.d.ts +3 -1
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +21 -21
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +9 -9
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +6 -1
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +126 -116
- package/dist/command.cjs +1 -1
- package/dist/command.js +35 -35
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +3 -3
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.js +7 -7
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +22 -22
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +47 -52
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +50 -49
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +334 -319
- package/dist/input-chip.d.ts.map +1 -1
- package/dist/input-chip.js +18 -25
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +10 -10
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +6 -6
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +56 -56
- package/dist/input.cjs +1 -1
- package/dist/input.js +9 -9
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +1 -8
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +30 -17
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.js +13 -13
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.js +2 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +28 -28
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +3 -3
- package/dist/rating.cjs +1 -1
- package/dist/rating.js +8 -8
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +1 -1
- package/dist/resizable.js +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +40 -44
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +1 -1
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +19 -19
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.js +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +28 -28
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +10 -12
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +9 -9
- package/dist/typography.cjs +1 -0
- package/dist/typography.d.ts +176 -0
- package/dist/typography.d.ts.map +1 -0
- package/dist/typography.js +331 -0
- package/package.json +2 -2
- package/src/blocks/data-table.tsx +10 -10
- package/src/blocks/sidebar.tsx +16 -15
- package/src/components/accordion.tsx +2 -2
- package/src/components/alert.tsx +10 -10
- package/src/components/breadcrumb.tsx +3 -3
- package/src/components/button.tsx +7 -7
- package/src/components/calendar.tsx +4 -19
- package/src/components/card.tsx +24 -1
- package/src/components/centred-layout.tsx +6 -29
- package/src/components/chart.tsx +5 -5
- package/src/components/checkbox.tsx +3 -3
- package/src/components/combobox.tsx +20 -8
- package/src/components/command.tsx +5 -5
- package/src/components/context-menu.tsx +3 -3
- package/src/components/date-picker.tsx +1 -1
- package/src/components/dialog.tsx +3 -3
- package/src/components/dropdown-menu.tsx +7 -12
- package/src/components/field.tsx +36 -33
- package/src/components/input-chip.tsx +1 -4
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-otp.tsx +3 -3
- package/src/components/input-password.tsx +2 -10
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +1 -1
- package/src/components/link.tsx +1 -5
- package/src/components/logo.tsx +16 -9
- package/src/components/menubar.tsx +3 -3
- package/src/components/navigation-menu.tsx +2 -1
- package/src/components/pagination.tsx +4 -8
- package/src/components/radio-group.tsx +2 -2
- package/src/components/rating.tsx +2 -2
- package/src/components/resizable.tsx +1 -1
- package/src/components/select.tsx +8 -12
- package/src/components/sheet.tsx +5 -5
- package/src/components/sonner.tsx +1 -1
- package/src/components/switch.tsx +1 -1
- package/src/components/tabs.tsx +0 -2
- package/src/components/toggle.tsx +1 -1
- package/src/components/typography.tsx +678 -0
- package/src/index.ts +1 -0
package/dist/combobox.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as I, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Check as P, ChevronsUpDown as M } from "@brightlocal/icons";
|
|
4
4
|
import { cva as G } from "class-variance-authority";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as f } from "@brightlocal/ui-components/lib/utils";
|
|
6
6
|
import { Popover as U, PopoverContent as _, PopoverTrigger as $ } from "@brightlocal/ui-components/popover";
|
|
7
|
-
import { Command as F, CommandEmpty as O, CommandGroup as
|
|
7
|
+
import { Command as F, CommandEmpty as O, CommandGroup as z, CommandInput as D, CommandItem as H, CommandList as V, CommandSeparator as q } from "@brightlocal/ui-components/command";
|
|
8
8
|
const E = t.createContext(null);
|
|
9
9
|
function y() {
|
|
10
10
|
const o = t.useContext(E);
|
|
@@ -12,58 +12,58 @@ function y() {
|
|
|
12
12
|
throw new Error("Combobox components must be used within a <Combobox>");
|
|
13
13
|
return o;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function so({
|
|
16
16
|
value: o,
|
|
17
17
|
onValueChange: e,
|
|
18
|
-
open:
|
|
18
|
+
open: n,
|
|
19
19
|
onOpenChange: r,
|
|
20
20
|
shouldFilter: s = !0,
|
|
21
|
-
disabled:
|
|
22
|
-
children:
|
|
21
|
+
disabled: d = !1,
|
|
22
|
+
children: i
|
|
23
23
|
}) {
|
|
24
|
-
const [
|
|
24
|
+
const [x, c] = t.useState(""), [l, g] = t.useState(!1), [u, b] = t.useState(
|
|
25
25
|
() => /* @__PURE__ */ new Map()
|
|
26
|
-
),
|
|
27
|
-
(
|
|
28
|
-
p ||
|
|
26
|
+
), C = o !== void 0, p = n !== void 0, v = C ? o : x, h = p ? n : l, w = t.useCallback(
|
|
27
|
+
(m) => {
|
|
28
|
+
p || g(m), r?.(m);
|
|
29
29
|
},
|
|
30
30
|
[p, r]
|
|
31
31
|
), N = t.useCallback(
|
|
32
|
-
(
|
|
33
|
-
|
|
32
|
+
(m) => {
|
|
33
|
+
C || c(m), e?.(m);
|
|
34
34
|
},
|
|
35
|
-
[
|
|
36
|
-
), R = t.useCallback((
|
|
37
|
-
|
|
38
|
-
if (k.get(
|
|
35
|
+
[C, e]
|
|
36
|
+
), R = t.useCallback((m, S) => {
|
|
37
|
+
b((k) => {
|
|
38
|
+
if (k.get(m) === S) return k;
|
|
39
39
|
const L = new Map(k);
|
|
40
|
-
return L.set(
|
|
40
|
+
return L.set(m, S), L;
|
|
41
41
|
});
|
|
42
42
|
}, []), T = t.useMemo(
|
|
43
43
|
() => ({
|
|
44
|
-
open:
|
|
45
|
-
setOpen:
|
|
46
|
-
value:
|
|
44
|
+
open: h,
|
|
45
|
+
setOpen: w,
|
|
46
|
+
value: v,
|
|
47
47
|
onValueChange: N,
|
|
48
48
|
shouldFilter: s,
|
|
49
|
-
disabled:
|
|
49
|
+
disabled: d,
|
|
50
50
|
itemLabels: u,
|
|
51
51
|
registerItem: R
|
|
52
52
|
}),
|
|
53
53
|
[
|
|
54
|
-
v,
|
|
55
54
|
h,
|
|
56
|
-
|
|
55
|
+
w,
|
|
56
|
+
v,
|
|
57
57
|
N,
|
|
58
58
|
s,
|
|
59
|
-
|
|
59
|
+
d,
|
|
60
60
|
u,
|
|
61
61
|
R
|
|
62
62
|
]
|
|
63
63
|
);
|
|
64
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ a(E.Provider, { value: T, children: /* @__PURE__ */ a(U, { open: h, onOpenChange: w, children: i }) });
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const A = G(
|
|
67
67
|
[
|
|
68
68
|
// Base layout
|
|
69
69
|
"relative flex w-full items-center justify-between gap-2",
|
|
@@ -89,8 +89,7 @@ const B = G(
|
|
|
89
89
|
// Transitions
|
|
90
90
|
"transition-[background-color,border-color,box-shadow] duration-200 ease-out",
|
|
91
91
|
// Icon styles
|
|
92
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
93
|
-
"[&_svg:not([class*='size-'])]:size-4"
|
|
92
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
94
93
|
],
|
|
95
94
|
{
|
|
96
95
|
variants: {
|
|
@@ -102,42 +101,42 @@ const B = G(
|
|
|
102
101
|
variant: "default"
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
|
-
),
|
|
104
|
+
), B = t.forwardRef(
|
|
106
105
|
({
|
|
107
106
|
className: o,
|
|
108
107
|
variant: e,
|
|
109
|
-
dataHook:
|
|
108
|
+
dataHook: n,
|
|
110
109
|
trackingEl: r,
|
|
111
110
|
trackingLabel: s,
|
|
112
|
-
children:
|
|
113
|
-
...
|
|
114
|
-
},
|
|
115
|
-
const { open:
|
|
116
|
-
return /* @__PURE__ */
|
|
111
|
+
children: d,
|
|
112
|
+
...i
|
|
113
|
+
}, x) => {
|
|
114
|
+
const { open: c, disabled: l, value: g } = y(), u = t.useId(), b = !g;
|
|
115
|
+
return /* @__PURE__ */ a($, { asChild: !0, children: /* @__PURE__ */ I(
|
|
117
116
|
"button",
|
|
118
117
|
{
|
|
119
|
-
ref:
|
|
120
|
-
"aria-controls":
|
|
121
|
-
"aria-expanded":
|
|
118
|
+
ref: x,
|
|
119
|
+
"aria-controls": c ? u : void 0,
|
|
120
|
+
"aria-expanded": c,
|
|
122
121
|
"aria-haspopup": "listbox",
|
|
123
|
-
className:
|
|
124
|
-
"data-hook":
|
|
125
|
-
"data-placeholder":
|
|
122
|
+
className: f(A({ variant: e }), o),
|
|
123
|
+
"data-hook": n,
|
|
124
|
+
"data-placeholder": b,
|
|
126
125
|
"data-slot": "combobox-trigger",
|
|
127
|
-
"data-state":
|
|
126
|
+
"data-state": c ? "open" : "closed",
|
|
128
127
|
"data-tracking-el": r || "combobox-trigger",
|
|
129
128
|
"data-tracking-label": s,
|
|
130
|
-
disabled:
|
|
129
|
+
disabled: l || i.disabled,
|
|
131
130
|
role: "combobox",
|
|
132
131
|
type: "button",
|
|
133
|
-
...
|
|
132
|
+
...i,
|
|
134
133
|
children: [
|
|
135
|
-
|
|
136
|
-
/* @__PURE__ */
|
|
134
|
+
d,
|
|
135
|
+
/* @__PURE__ */ a(
|
|
137
136
|
M,
|
|
138
137
|
{
|
|
139
138
|
"aria-hidden": "true",
|
|
140
|
-
className: "text-muted-foreground ml-auto
|
|
139
|
+
className: "text-muted-foreground ml-auto shrink-0"
|
|
141
140
|
}
|
|
142
141
|
)
|
|
143
142
|
]
|
|
@@ -145,13 +144,13 @@ const B = G(
|
|
|
145
144
|
) });
|
|
146
145
|
}
|
|
147
146
|
);
|
|
148
|
-
|
|
149
|
-
function
|
|
150
|
-
const { value:
|
|
151
|
-
return /* @__PURE__ */
|
|
147
|
+
B.displayName = "ComboboxTrigger";
|
|
148
|
+
function io({ placeholder: o, className: e }) {
|
|
149
|
+
const { value: n, itemLabels: r } = y(), s = n ? r.get(n) || n : o;
|
|
150
|
+
return /* @__PURE__ */ a(
|
|
152
151
|
"span",
|
|
153
152
|
{
|
|
154
|
-
className:
|
|
153
|
+
className: f(
|
|
155
154
|
"text-foreground overflow-hidden text-sm leading-normal font-medium text-ellipsis whitespace-nowrap",
|
|
156
155
|
e
|
|
157
156
|
),
|
|
@@ -163,89 +162,94 @@ function co({ placeholder: o, className: e }) {
|
|
|
163
162
|
function mo({
|
|
164
163
|
dataHook: o,
|
|
165
164
|
className: e,
|
|
166
|
-
children:
|
|
167
|
-
align: r = "start"
|
|
165
|
+
children: n,
|
|
166
|
+
align: r = "start",
|
|
167
|
+
hideList: s = !1
|
|
168
168
|
}) {
|
|
169
|
-
const { shouldFilter:
|
|
170
|
-
return /* @__PURE__ */
|
|
169
|
+
const { shouldFilter: d } = y();
|
|
170
|
+
return /* @__PURE__ */ a(
|
|
171
171
|
_,
|
|
172
172
|
{
|
|
173
173
|
align: r,
|
|
174
|
-
className:
|
|
174
|
+
className: f("w-[var(--radix-popover-trigger-width)] p-0", e),
|
|
175
175
|
"data-slot": "combobox-popover",
|
|
176
|
-
|
|
176
|
+
side: "bottom",
|
|
177
|
+
children: /* @__PURE__ */ a(
|
|
177
178
|
F,
|
|
178
179
|
{
|
|
179
|
-
className:
|
|
180
|
+
className: f(
|
|
181
|
+
"border-0 shadow-none",
|
|
182
|
+
s && "[&_[data-slot='command-input-wrapper']]:border-b-0"
|
|
183
|
+
),
|
|
180
184
|
"data-slot": "combobox-command",
|
|
181
185
|
dataHook: o || "combobox-command",
|
|
182
|
-
shouldFilter:
|
|
183
|
-
children:
|
|
186
|
+
shouldFilter: d,
|
|
187
|
+
children: n
|
|
184
188
|
}
|
|
185
189
|
)
|
|
186
190
|
}
|
|
187
191
|
);
|
|
188
192
|
}
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
function
|
|
193
|
+
const J = t.forwardRef((o, e) => /* @__PURE__ */ a(D, { ref: e, "data-slot": "combobox-input", ...o }));
|
|
194
|
+
J.displayName = "ComboboxInput";
|
|
195
|
+
const K = t.forwardRef((o, e) => /* @__PURE__ */ a(V, { ref: e, "data-slot": "combobox-list", ...o }));
|
|
196
|
+
K.displayName = "ComboboxList";
|
|
197
|
+
const Q = t.forwardRef((o, e) => /* @__PURE__ */ a(O, { ref: e, "data-slot": "combobox-empty", ...o }));
|
|
198
|
+
Q.displayName = "ComboboxEmpty";
|
|
199
|
+
const W = t.forwardRef((o, e) => /* @__PURE__ */ a(z, { ref: e, "data-slot": "combobox-group", ...o }));
|
|
200
|
+
W.displayName = "ComboboxGroup";
|
|
201
|
+
function X(o, e, n) {
|
|
198
202
|
if (!e || !e.trim())
|
|
199
203
|
return o;
|
|
200
204
|
const r = new RegExp(
|
|
201
205
|
`(${e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`,
|
|
202
206
|
"gi"
|
|
203
207
|
), s = o.split(r);
|
|
204
|
-
return /* @__PURE__ */
|
|
205
|
-
(
|
|
208
|
+
return /* @__PURE__ */ a("span", { children: s.map(
|
|
209
|
+
(d, i) => i % 2 === 1 ? /* @__PURE__ */ a("span", { className: n, children: d }, i) : /* @__PURE__ */ a(t.Fragment, { children: d }, i)
|
|
206
210
|
) });
|
|
207
211
|
}
|
|
208
|
-
const
|
|
212
|
+
const Y = t.forwardRef(
|
|
209
213
|
({
|
|
210
214
|
value: o,
|
|
211
215
|
label: e,
|
|
212
|
-
dataHook:
|
|
216
|
+
dataHook: n,
|
|
213
217
|
children: r,
|
|
214
218
|
className: s,
|
|
215
|
-
highlight:
|
|
216
|
-
highlightClassName:
|
|
217
|
-
...
|
|
218
|
-
},
|
|
219
|
-
const { value:
|
|
219
|
+
highlight: d,
|
|
220
|
+
highlightClassName: i,
|
|
221
|
+
...x
|
|
222
|
+
}, c) => {
|
|
223
|
+
const { value: l, onValueChange: g, setOpen: u, registerItem: b } = y(), C = l === o, p = t.useMemo(() => e || (typeof r == "string" ? r : typeof r == "number" ? String(r) : o), [e, r, o]), v = t.useRef(b);
|
|
220
224
|
t.useEffect(() => {
|
|
221
|
-
|
|
222
|
-
}, [
|
|
223
|
-
|
|
225
|
+
v.current = b;
|
|
226
|
+
}, [b]), t.useEffect(() => {
|
|
227
|
+
v.current(o, p);
|
|
224
228
|
}, [o, p]);
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
},
|
|
229
|
+
const h = () => {
|
|
230
|
+
g(o === l ? "" : o), u(!1);
|
|
231
|
+
}, w = () => d && typeof r == "string" ? X(
|
|
228
232
|
r,
|
|
229
|
-
|
|
230
|
-
|
|
233
|
+
d,
|
|
234
|
+
i || "text-sm leading-normal font-semibold"
|
|
231
235
|
) : r;
|
|
232
236
|
return /* @__PURE__ */ I(
|
|
233
|
-
|
|
237
|
+
H,
|
|
234
238
|
{
|
|
235
|
-
ref:
|
|
236
|
-
className:
|
|
239
|
+
ref: c,
|
|
240
|
+
className: f("justify-between", s),
|
|
237
241
|
"data-slot": "combobox-item",
|
|
238
|
-
dataHook:
|
|
242
|
+
dataHook: n,
|
|
239
243
|
value: o,
|
|
240
|
-
onSelect:
|
|
241
|
-
...
|
|
244
|
+
onSelect: h,
|
|
245
|
+
...x,
|
|
242
246
|
children: [
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
247
|
+
w(),
|
|
248
|
+
C && /* @__PURE__ */ a(
|
|
249
|
+
P,
|
|
246
250
|
{
|
|
247
251
|
"aria-hidden": "true",
|
|
248
|
-
className: "text-muted-foreground
|
|
252
|
+
className: "text-muted-foreground shrink-0"
|
|
249
253
|
}
|
|
250
254
|
)
|
|
251
255
|
]
|
|
@@ -253,35 +257,41 @@ const Z = t.forwardRef(
|
|
|
253
257
|
);
|
|
254
258
|
}
|
|
255
259
|
);
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
function
|
|
260
|
-
return /* @__PURE__ */
|
|
260
|
+
Y.displayName = "ComboboxItem";
|
|
261
|
+
const Z = t.forwardRef((o, e) => /* @__PURE__ */ a(q, { ref: e, "data-slot": "combobox-separator", ...o }));
|
|
262
|
+
Z.displayName = "ComboboxSeparator";
|
|
263
|
+
function co({ className: o, children: e }) {
|
|
264
|
+
return /* @__PURE__ */ a(
|
|
261
265
|
"div",
|
|
262
266
|
{
|
|
263
|
-
className:
|
|
267
|
+
className: f(
|
|
264
268
|
"text-muted-foreground flex items-center justify-center gap-2 py-6 text-sm",
|
|
265
269
|
o
|
|
266
270
|
),
|
|
267
271
|
"data-slot": "combobox-loading",
|
|
268
272
|
children: e || /* @__PURE__ */ I(j, { children: [
|
|
269
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ a(
|
|
274
|
+
"div",
|
|
275
|
+
{
|
|
276
|
+
"aria-hidden": "true",
|
|
277
|
+
className: "size-4 animate-spin rounded-full border-2 border-current border-t-transparent [animation-duration:0.6s]"
|
|
278
|
+
}
|
|
279
|
+
),
|
|
270
280
|
"Loading..."
|
|
271
281
|
] })
|
|
272
282
|
}
|
|
273
283
|
);
|
|
274
284
|
}
|
|
275
285
|
export {
|
|
276
|
-
|
|
286
|
+
so as Combobox,
|
|
277
287
|
mo as ComboboxContent,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
288
|
+
Q as ComboboxEmpty,
|
|
289
|
+
W as ComboboxGroup,
|
|
290
|
+
J as ComboboxInput,
|
|
291
|
+
Y as ComboboxItem,
|
|
292
|
+
K as ComboboxList,
|
|
293
|
+
co as ComboboxLoading,
|
|
294
|
+
Z as ComboboxSeparator,
|
|
295
|
+
B as ComboboxTrigger,
|
|
296
|
+
io as ComboboxValue
|
|
287
297
|
};
|
package/dist/command.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),O=require("react"),s=require("cmdk"),f=require("@brightlocal/icons"),E=require("@brightlocal/ui-components/button"),c=require("@brightlocal/ui-components/lib/utils");function G(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:()=>a[e]})}}return t.default=a,Object.freeze(t)}const d=G(O),C=d.forwardRef(({className:a,dataHook:t,trackingEl:e,trackingLabel:o,...r},m)=>n.jsx(s.Command,{ref:m,className:c.cn("bg-popover text-popover-foreground flex w-full flex-col overflow-hidden rounded-lg border shadow-md",a),"data-hook":t,"data-slot":"command","data-tracking-el":e,"data-tracking-label":o,...r}));C.displayName="Command";const b=d.forwardRef(({className:a,dataHook:t,trackingEl:e,trackingLabel:o,value:r,onValueChange:m,onClear:l,...i},S)=>{const u=d.useRef(null),[R,g]=d.useState("");d.useImperativeHandle(S,()=>u.current,[]);const p=r!==void 0,x=p?r:R,I=String(x).length>0,_=h=>{p||g(h),m?.(h)},q=()=>{p||g(""),m?.(""),l?.(),u.current?.focus()};return n.jsxs("div",{className:"border-base-border flex h-12 items-center gap-2 self-stretch border-b px-3","data-hook":t,"data-slot":"command-input-wrapper",children:[n.jsx(f.Search,{className:"shrink-0 opacity-50"}),n.jsx(s.Command.Input,{ref:u,className:c.cn("placeholder:text-muted-foreground flex w-full bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",a),"data-slot":"command-input","data-tracking-el":e,"data-tracking-label":o,value:x,onValueChange:_,...i}),I&&n.jsx(E.Button,{"aria-label":"Clear search",className:"text-muted-foreground hover:text-foreground",dataHook:"command-input-clear",variant:"ghost",onClick:q,children:n.jsx(f.X,{})})]})});b.displayName="CommandInput";const k=d.forwardRef(({className:a,dataHook:t,...e},o)=>n.jsx(s.Command.List,{ref:o,className:c.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",a),"data-hook":t,"data-slot":"command-list",...e}));k.displayName="CommandList";const y=d.forwardRef(({dataHook:a,...t},e)=>n.jsx(s.Command.Empty,{ref:e,className:"py-6 text-center text-sm","data-hook":a,"data-slot":"command-empty",...t}));y.displayName="CommandEmpty";const v=d.forwardRef(({className:a,dataHook:t,...e},o)=>n.jsx(s.Command.Group,{ref:o,className:c.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden px-2 py-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",a),"data-hook":t,"data-slot":"command-group",...e}));v.displayName="CommandGroup";const N=d.forwardRef(({className:a,dataHook:t,...e},o)=>n.jsx(s.Command.Separator,{ref:o,className:c.cn("bg-border -mx-1 h-px",a),"data-hook":t,"data-slot":"command-separator",...e}));N.displayName="CommandSeparator";const j=d.forwardRef(({className:a,dataHook:t,trackingEl:e,trackingLabel:o,selected:r,children:m,...l},i)=>n.jsxs(s.Command.Item,{ref:i,className:c.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-3 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",a),"data-hook":t,"data-selected-item":r||void 0,"data-slot":"command-item","data-tracking-el":e,"data-tracking-label":o,...l,children:[m,r&&n.jsx(f.Check,{className:"text-foreground ml-auto"})]}));j.displayName="CommandItem";const w=d.forwardRef(({className:a,dataHook:t,trackingEl:e,trackingLabel:o,...r},m)=>n.jsx("span",{ref:m,className:c.cn("text-muted-foreground ml-auto text-xs tracking-widest",a),"data-hook":t,"data-slot":"command-shortcut","data-tracking-el":e,"data-tracking-label":o,...r}));w.displayName="CommandShortcut";exports.Command=C;exports.CommandEmpty=y;exports.CommandGroup=v;exports.CommandInput=b;exports.CommandItem=j;exports.CommandList=k;exports.CommandSeparator=N;exports.CommandShortcut=w;
|
package/dist/command.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as d, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { Command as s } from "cmdk";
|
|
4
|
-
import {
|
|
5
|
-
import { Button as
|
|
4
|
+
import { Search as v, X as w, Check as R } from "@brightlocal/icons";
|
|
5
|
+
import { Button as I } from "@brightlocal/ui-components/button";
|
|
6
6
|
import { cn as l } from "@brightlocal/ui-components/lib/utils";
|
|
7
|
-
const
|
|
7
|
+
const S = r.forwardRef(({ className: a, dataHook: e, trackingEl: t, trackingLabel: o, ...n }, m) => /* @__PURE__ */ d(
|
|
8
8
|
s,
|
|
9
9
|
{
|
|
10
10
|
ref: m,
|
|
@@ -19,8 +19,8 @@ const _ = r.forwardRef(({ className: a, dataHook: e, trackingEl: t, trackingLabe
|
|
|
19
19
|
...n
|
|
20
20
|
}
|
|
21
21
|
));
|
|
22
|
-
|
|
23
|
-
const
|
|
22
|
+
S.displayName = "Command";
|
|
23
|
+
const _ = r.forwardRef(
|
|
24
24
|
({
|
|
25
25
|
className: a,
|
|
26
26
|
dataHook: e,
|
|
@@ -33,9 +33,9 @@ const S = r.forwardRef(
|
|
|
33
33
|
}, k) => {
|
|
34
34
|
const p = r.useRef(null), [C, f] = r.useState("");
|
|
35
35
|
r.useImperativeHandle(k, () => p.current, []);
|
|
36
|
-
const u = n !== void 0, g = u ? n : C, b = String(g).length > 0,
|
|
36
|
+
const u = n !== void 0, g = u ? n : C, b = String(g).length > 0, y = (h) => {
|
|
37
37
|
u || f(h), m?.(h);
|
|
38
|
-
},
|
|
38
|
+
}, N = () => {
|
|
39
39
|
u || f(""), m?.(""), c?.(), p.current?.focus();
|
|
40
40
|
};
|
|
41
41
|
return /* @__PURE__ */ x(
|
|
@@ -45,7 +45,7 @@ const S = r.forwardRef(
|
|
|
45
45
|
"data-hook": e,
|
|
46
46
|
"data-slot": "command-input-wrapper",
|
|
47
47
|
children: [
|
|
48
|
-
/* @__PURE__ */ d(
|
|
48
|
+
/* @__PURE__ */ d(v, { className: "shrink-0 opacity-50" }),
|
|
49
49
|
/* @__PURE__ */ d(
|
|
50
50
|
s.Input,
|
|
51
51
|
{
|
|
@@ -58,19 +58,19 @@ const S = r.forwardRef(
|
|
|
58
58
|
"data-tracking-el": t,
|
|
59
59
|
"data-tracking-label": o,
|
|
60
60
|
value: g,
|
|
61
|
-
onValueChange:
|
|
61
|
+
onValueChange: y,
|
|
62
62
|
...i
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
65
|
b && /* @__PURE__ */ d(
|
|
66
|
-
|
|
66
|
+
I,
|
|
67
67
|
{
|
|
68
68
|
"aria-label": "Clear search",
|
|
69
69
|
className: "text-muted-foreground hover:text-foreground",
|
|
70
70
|
dataHook: "command-input-clear",
|
|
71
71
|
variant: "ghost",
|
|
72
|
-
onClick:
|
|
73
|
-
children: /* @__PURE__ */ d(w, {
|
|
72
|
+
onClick: N,
|
|
73
|
+
children: /* @__PURE__ */ d(w, {})
|
|
74
74
|
}
|
|
75
75
|
)
|
|
76
76
|
]
|
|
@@ -78,8 +78,8 @@ const S = r.forwardRef(
|
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
const
|
|
81
|
+
_.displayName = "CommandInput";
|
|
82
|
+
const E = r.forwardRef(({ className: a, dataHook: e, ...t }, o) => /* @__PURE__ */ d(
|
|
83
83
|
s.List,
|
|
84
84
|
{
|
|
85
85
|
ref: o,
|
|
@@ -92,8 +92,8 @@ const z = r.forwardRef(({ className: a, dataHook: e, ...t }, o) => /* @__PURE__
|
|
|
92
92
|
...t
|
|
93
93
|
}
|
|
94
94
|
));
|
|
95
|
-
|
|
96
|
-
const
|
|
95
|
+
E.displayName = "CommandList";
|
|
96
|
+
const G = r.forwardRef(({ dataHook: a, ...e }, t) => /* @__PURE__ */ d(
|
|
97
97
|
s.Empty,
|
|
98
98
|
{
|
|
99
99
|
ref: t,
|
|
@@ -103,8 +103,8 @@ const E = r.forwardRef(({ dataHook: a, ...e }, t) => /* @__PURE__ */ d(
|
|
|
103
103
|
...e
|
|
104
104
|
}
|
|
105
105
|
));
|
|
106
|
-
|
|
107
|
-
const
|
|
106
|
+
G.displayName = "CommandEmpty";
|
|
107
|
+
const L = r.forwardRef(({ className: a, dataHook: e, ...t }, o) => /* @__PURE__ */ d(
|
|
108
108
|
s.Group,
|
|
109
109
|
{
|
|
110
110
|
ref: o,
|
|
@@ -117,8 +117,8 @@ const G = r.forwardRef(({ className: a, dataHook: e, ...t }, o) => /* @__PURE__
|
|
|
117
117
|
...t
|
|
118
118
|
}
|
|
119
119
|
));
|
|
120
|
-
|
|
121
|
-
const
|
|
120
|
+
L.displayName = "CommandGroup";
|
|
121
|
+
const j = r.forwardRef(({ className: a, dataHook: e, ...t }, o) => /* @__PURE__ */ d(
|
|
122
122
|
s.Separator,
|
|
123
123
|
{
|
|
124
124
|
ref: o,
|
|
@@ -128,8 +128,8 @@ const L = r.forwardRef(({ className: a, dataHook: e, ...t }, o) => /* @__PURE__
|
|
|
128
128
|
...t
|
|
129
129
|
}
|
|
130
130
|
));
|
|
131
|
-
|
|
132
|
-
const
|
|
131
|
+
j.displayName = "CommandSeparator";
|
|
132
|
+
const B = r.forwardRef(
|
|
133
133
|
({
|
|
134
134
|
className: a,
|
|
135
135
|
dataHook: e,
|
|
@@ -143,7 +143,7 @@ const j = r.forwardRef(
|
|
|
143
143
|
{
|
|
144
144
|
ref: i,
|
|
145
145
|
className: l(
|
|
146
|
-
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground
|
|
146
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-3 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
147
147
|
a
|
|
148
148
|
),
|
|
149
149
|
"data-hook": e,
|
|
@@ -154,13 +154,13 @@ const j = r.forwardRef(
|
|
|
154
154
|
...c,
|
|
155
155
|
children: [
|
|
156
156
|
m,
|
|
157
|
-
n && /* @__PURE__ */ d(
|
|
157
|
+
n && /* @__PURE__ */ d(R, { className: "text-foreground ml-auto" })
|
|
158
158
|
]
|
|
159
159
|
}
|
|
160
160
|
)
|
|
161
161
|
);
|
|
162
|
-
|
|
163
|
-
const
|
|
162
|
+
B.displayName = "CommandItem";
|
|
163
|
+
const H = r.forwardRef(
|
|
164
164
|
({ className: a, dataHook: e, trackingEl: t, trackingLabel: o, ...n }, m) => /* @__PURE__ */ d(
|
|
165
165
|
"span",
|
|
166
166
|
{
|
|
@@ -177,14 +177,14 @@ const B = r.forwardRef(
|
|
|
177
177
|
}
|
|
178
178
|
)
|
|
179
179
|
);
|
|
180
|
-
|
|
180
|
+
H.displayName = "CommandShortcut";
|
|
181
181
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
182
|
+
S as Command,
|
|
183
|
+
G as CommandEmpty,
|
|
184
|
+
L as CommandGroup,
|
|
185
|
+
_ as CommandInput,
|
|
186
|
+
B as CommandItem,
|
|
187
|
+
E as CommandList,
|
|
188
|
+
j as CommandSeparator,
|
|
189
|
+
H as CommandShortcut
|
|
190
190
|
};
|
package/dist/context-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),I=require("react"),z=require("@radix-ui/react-context-menu"),m=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils");function x(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=x(I),a=x(z);function p({...e}){return o.jsx(a.Root,{"data-slot":"context-menu",...e})}p.displayName="ContextMenu";const f=s.forwardRef(({dataHook:e,...n},t)=>o.jsx(a.Trigger,{ref:t,"data-hook":e,"data-slot":"context-menu-trigger",...n}));f.displayName="ContextMenuTrigger";function b({...e}){return o.jsx(a.Group,{"data-slot":"context-menu-group",...e})}b.displayName="ContextMenuGroup";function g({...e}){return o.jsx(a.Portal,{"data-slot":"context-menu-portal",...e})}g.displayName="ContextMenuPortal";function C({...e}){return o.jsx(a.Sub,{"data-slot":"context-menu-sub",...e})}C.displayName="ContextMenuSub";function M({...e}){return o.jsx(a.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}M.displayName="ContextMenuRadioGroup";const h=s.forwardRef(({className:e,inset:n,children:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.SubTrigger,{ref:l,className:d.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none",n&&"pl-8",e),"data-hook":r,"data-slot":"context-menu-sub-trigger","data-tracking-el":u,"data-tracking-label":i,...c,children:[t,o.jsx(m.ChevronRight,{className:"ml-auto
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),I=require("react"),z=require("@radix-ui/react-context-menu"),m=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils");function x(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=x(I),a=x(z);function p({...e}){return o.jsx(a.Root,{"data-slot":"context-menu",...e})}p.displayName="ContextMenu";const f=s.forwardRef(({dataHook:e,...n},t)=>o.jsx(a.Trigger,{ref:t,"data-hook":e,"data-slot":"context-menu-trigger",...n}));f.displayName="ContextMenuTrigger";function b({...e}){return o.jsx(a.Group,{"data-slot":"context-menu-group",...e})}b.displayName="ContextMenuGroup";function g({...e}){return o.jsx(a.Portal,{"data-slot":"context-menu-portal",...e})}g.displayName="ContextMenuPortal";function C({...e}){return o.jsx(a.Sub,{"data-slot":"context-menu-sub",...e})}C.displayName="ContextMenuSub";function M({...e}){return o.jsx(a.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}M.displayName="ContextMenuRadioGroup";const h=s.forwardRef(({className:e,inset:n,children:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.SubTrigger,{ref:l,className:d.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none",n&&"pl-8",e),"data-hook":r,"data-slot":"context-menu-sub-trigger","data-tracking-el":u,"data-tracking-label":i,...c,children:[t,o.jsx(m.ChevronRight,{className:"ml-auto"})]}));h.displayName="ContextMenuSubTrigger";const j=s.forwardRef(({className:e,...n},t)=>o.jsx(a.SubContent,{ref:t,className:d.cn("border-border bg-popover text-popover-foreground 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-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),"data-slot":"context-menu-sub-content",...n}));j.displayName="ContextMenuSubContent";const y=s.forwardRef(({className:e,...n},t)=>o.jsx(a.Portal,{children:o.jsx(a.Content,{ref:t,className:d.cn("border-border bg-popover text-popover-foreground animate-in fade-in-80 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-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),"data-slot":"context-menu-content",...n})}));y.displayName="ContextMenuContent";const N=s.forwardRef(({className:e,inset:n,dataHook:t,trackingEl:r,trackingLabel:u,...i},c)=>o.jsx(a.Item,{ref:c,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),"data-hook":t,"data-slot":"context-menu-item","data-tracking-el":r,"data-tracking-label":u,...i}));N.displayName="ContextMenuItem";const R=s.forwardRef(({className:e,children:n,checked:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.CheckboxItem,{ref:l,checked:t,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-hook":r,"data-slot":"context-menu-checkbox-item","data-tracking-el":u,"data-tracking-label":i,...c,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(m.Check,{})})}),n]}));R.displayName="ContextMenuCheckboxItem";const S=s.forwardRef(({className:e,children:n,dataHook:t,trackingEl:r,trackingLabel:u,...i},c)=>o.jsxs(a.RadioItem,{ref:c,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-hook":t,"data-slot":"context-menu-radio-item","data-tracking-el":r,"data-tracking-label":u,...i,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(m.Circle,{className:"fill-current",size:8})})}),n]}));S.displayName="ContextMenuRadioItem";const k=s.forwardRef(({className:e,inset:n,...t},r)=>o.jsx(a.Label,{ref:r,className:d.cn("text-foreground px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),"data-slot":"context-menu-label",...t}));k.displayName="ContextMenuLabel";const w=s.forwardRef(({className:e,...n},t)=>o.jsx(a.Separator,{ref:t,className:d.cn("bg-border -mx-1 my-1 h-px",e),"data-slot":"context-menu-separator",...n}));w.displayName="ContextMenuSeparator";const v=s.forwardRef(({className:e,...n},t)=>o.jsx("span",{ref:t,className:d.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),"data-slot":"context-menu-shortcut",...n}));v.displayName="ContextMenuShortcut";exports.ContextMenu=p;exports.ContextMenuCheckboxItem=R;exports.ContextMenuContent=y;exports.ContextMenuGroup=b;exports.ContextMenuItem=N;exports.ContextMenuLabel=k;exports.ContextMenuPortal=g;exports.ContextMenuRadioGroup=M;exports.ContextMenuRadioItem=S;exports.ContextMenuSeparator=w;exports.ContextMenuShortcut=v;exports.ContextMenuSub=C;exports.ContextMenuSubContent=j;exports.ContextMenuSubTrigger=h;exports.ContextMenuTrigger=f;
|
package/dist/context-menu.js
CHANGED
|
@@ -64,7 +64,7 @@ const y = r.forwardRef(
|
|
|
64
64
|
...c,
|
|
65
65
|
children: [
|
|
66
66
|
o,
|
|
67
|
-
/* @__PURE__ */ t(x, { className: "ml-auto
|
|
67
|
+
/* @__PURE__ */ t(x, { className: "ml-auto" })
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
70
|
)
|
|
@@ -139,7 +139,7 @@ const v = r.forwardRef(
|
|
|
139
139
|
"data-tracking-label": l,
|
|
140
140
|
...c,
|
|
141
141
|
children: [
|
|
142
|
-
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, {
|
|
142
|
+
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, {}) }) }),
|
|
143
143
|
a
|
|
144
144
|
]
|
|
145
145
|
}
|
|
@@ -161,7 +161,7 @@ const S = r.forwardRef(
|
|
|
161
161
|
"data-tracking-label": i,
|
|
162
162
|
...l,
|
|
163
163
|
children: [
|
|
164
|
-
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "
|
|
164
|
+
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "fill-current", size: 8 }) }) }),
|
|
165
165
|
a
|
|
166
166
|
]
|
|
167
167
|
}
|