@epilot/volt-ui-experimental-griffel 0.2.3 → 0.3.1
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/ADOPTING.md +416 -0
- package/README.md +32 -31
- package/dist/components/alert-dialog/alert-dialog.js +61 -59
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar.js +6 -6
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +47 -39
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/button/button.js +71 -68
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +23 -20
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/command/command.js +50 -35
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/data-table/data-table.js +89 -88
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/density-provider/density-provider.js +28 -0
- package/dist/components/density-provider/density-provider.js.map +1 -0
- package/dist/components/dialog/dialog.js +122 -100
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +61 -59
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +88 -85
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +121 -106
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field.js +105 -104
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/list/list.js +282 -308
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/pill/pill.js +58 -56
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +47 -38
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio.js +21 -18
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/select/select.js +185 -156
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +2 -2
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/switch/switch.js +34 -29
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +92 -90
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/table/table.js +109 -121
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/toggle/toggle.js +29 -29
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +36 -34
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +600 -427
- package/dist/index.js +215 -212
- package/dist/index.js.map +1 -1
- package/dist/packages/volt-runtime/dist/sheet.js +27 -10
- package/dist/packages/volt-runtime/dist/sheet.js.map +1 -1
- package/dist/packages/volt-runtime/dist/styles/recipe.js +76 -0
- package/dist/packages/volt-runtime/dist/styles/recipe.js.map +1 -0
- package/dist/styles/document-context.js +12 -0
- package/dist/styles/document-context.js.map +1 -0
- package/dist/styles/make-styles.js +18 -10
- package/dist/styles/make-styles.js.map +1 -1
- package/dist/tokens/core.generated.js +1238 -1166
- package/dist/tokens/core.generated.js.map +1 -1
- package/dist/tokens/index.d.ts +442 -415
- package/dist/tokens/index.js +1105 -1078
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/install.js +9 -5
- package/dist/tokens/install.js.map +1 -1
- package/dist/tokens/use-palette-tokens.js +20 -0
- package/dist/tokens/use-palette-tokens.js.map +1 -0
- package/dist/tokens.json +83 -2
- package/package.json +13 -5
- package/scripts/migration-diagnostics-core.mjs +859 -0
- package/scripts/migration-diagnostics.mjs +353 -0
- package/scripts/migration-sweep.mjs +179 -0
- package/AGENTS.md +0 -153
- package/AUTHORING.md +0 -292
- package/dist/packages/volt-runtime/dist/styles/make-styles.js +0 -22
- package/dist/packages/volt-runtime/dist/styles/make-styles.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as R } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import { shorthands as s } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/index.js";
|
|
4
4
|
import { SLOT_ATTR as p } from "../../packages/volt-runtime/dist/renderer/contract.js";
|
|
5
5
|
import { mergeClasses as m } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
|
|
6
|
-
import { makeVoltStyles as
|
|
7
|
-
import { radiusMd as
|
|
8
|
-
import { Command as G, CommandEmpty as B, CommandGroup as
|
|
6
|
+
import { makeVoltStyles as S } from "../../styles/make-styles.js";
|
|
7
|
+
import { radiusMd as I, spacingElement2 as b, radiusLg as L, grayA8 as N, semFocusRing as y, accentA11 as q, spacingGroup1 as x, grayA11 as f, spacingElement1 as F, semGraySoft as P, leadingXs as T, textXs as V, fontWeightSemibold as D, leadingSm as h, textSm as C, grayA12 as u } from "../../tokens/index.js";
|
|
8
|
+
import { Command as G, CommandEmpty as B, CommandGroup as k, CommandInput as A, CommandItem as E, CommandList as j, CommandLoading as H, CommandSeparator as W } from "../command/command.js";
|
|
9
9
|
import { Label as z } from "../label/label.js";
|
|
10
|
-
import { Popover as
|
|
11
|
-
import { useOptionalFieldContext as
|
|
12
|
-
const
|
|
10
|
+
import { Popover as O, PopoverPortal as M, PopoverContent as X, PopoverTrigger as Z } from "../popover/popover.js";
|
|
11
|
+
import { useOptionalFieldContext as _ } from "./field.js";
|
|
12
|
+
const $ = (a) => /* @__PURE__ */ n(
|
|
13
13
|
"svg",
|
|
14
14
|
{
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17,10 +17,10 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
17
17
|
viewBox: "0 -960 960 960",
|
|
18
18
|
width: "24px",
|
|
19
19
|
fill: "currentColor",
|
|
20
|
-
...
|
|
21
|
-
children: /* @__PURE__ */
|
|
20
|
+
...a,
|
|
21
|
+
children: /* @__PURE__ */ n("path", { d: "m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z" })
|
|
22
22
|
}
|
|
23
|
-
),
|
|
23
|
+
), Q = (a) => /* @__PURE__ */ n(
|
|
24
24
|
"svg",
|
|
25
25
|
{
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -28,10 +28,10 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
28
28
|
viewBox: "0 -960 960 960",
|
|
29
29
|
width: "24px",
|
|
30
30
|
fill: "currentColor",
|
|
31
|
-
...
|
|
32
|
-
children: /* @__PURE__ */
|
|
31
|
+
...a,
|
|
32
|
+
children: /* @__PURE__ */ n("path", { d: "M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z" })
|
|
33
33
|
}
|
|
34
|
-
),
|
|
34
|
+
), v = (a) => /* @__PURE__ */ n(
|
|
35
35
|
"svg",
|
|
36
36
|
{
|
|
37
37
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -39,17 +39,17 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
39
39
|
viewBox: "0 -960 960 960",
|
|
40
40
|
width: "24px",
|
|
41
41
|
fill: "currentColor",
|
|
42
|
-
...
|
|
43
|
-
children: /* @__PURE__ */
|
|
42
|
+
...a,
|
|
43
|
+
children: /* @__PURE__ */ n("path", { d: "M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z" })
|
|
44
44
|
}
|
|
45
|
-
), c =
|
|
45
|
+
), c = S({
|
|
46
46
|
trigger: {
|
|
47
47
|
width: "100%",
|
|
48
48
|
display: "flex",
|
|
49
49
|
alignItems: "center",
|
|
50
50
|
justifyContent: "space-between",
|
|
51
51
|
...s.gap(b),
|
|
52
|
-
...s.borderRadius(
|
|
52
|
+
...s.borderRadius(L),
|
|
53
53
|
backgroundColor: "transparent",
|
|
54
54
|
fontSize: C,
|
|
55
55
|
lineHeight: h,
|
|
@@ -57,6 +57,12 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
57
57
|
outlineStyle: "none",
|
|
58
58
|
...s.border("0"),
|
|
59
59
|
...s.padding(0),
|
|
60
|
+
":focus-visible": {
|
|
61
|
+
outlineWidth: "2px",
|
|
62
|
+
outlineStyle: "solid",
|
|
63
|
+
outlineOffset: "2px",
|
|
64
|
+
outlineColor: y
|
|
65
|
+
},
|
|
60
66
|
":disabled": {
|
|
61
67
|
cursor: "not-allowed",
|
|
62
68
|
opacity: 0.5
|
|
@@ -68,13 +74,16 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
68
74
|
flexShrink: 0,
|
|
69
75
|
transitionProperty: "transform",
|
|
70
76
|
transitionDuration: "150ms",
|
|
77
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
78
|
+
transitionDuration: "0.01ms"
|
|
79
|
+
},
|
|
71
80
|
color: f,
|
|
72
81
|
"&[data-popup-open], &[data-open]": {
|
|
73
82
|
transform: "rotate(180deg)"
|
|
74
83
|
}
|
|
75
84
|
},
|
|
76
85
|
value: {
|
|
77
|
-
color:
|
|
86
|
+
color: u,
|
|
78
87
|
width: "100%",
|
|
79
88
|
textAlign: "left",
|
|
80
89
|
flexWrap: "wrap",
|
|
@@ -102,14 +111,14 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
102
111
|
paddingRight: "2rem",
|
|
103
112
|
paddingTop: "0.375rem",
|
|
104
113
|
paddingBottom: "0.375rem",
|
|
105
|
-
color:
|
|
114
|
+
color: u,
|
|
106
115
|
position: "relative",
|
|
107
116
|
display: "flex",
|
|
108
117
|
width: "100%",
|
|
109
118
|
cursor: "default",
|
|
110
119
|
alignItems: "center",
|
|
111
120
|
...s.gap(b),
|
|
112
|
-
...s.borderRadius(
|
|
121
|
+
...s.borderRadius(I),
|
|
113
122
|
fontSize: C,
|
|
114
123
|
lineHeight: h,
|
|
115
124
|
outlineStyle: "none",
|
|
@@ -127,13 +136,13 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
127
136
|
checkSvg: {
|
|
128
137
|
width: "1rem",
|
|
129
138
|
height: "1rem",
|
|
130
|
-
color:
|
|
139
|
+
color: u
|
|
131
140
|
},
|
|
132
141
|
empty: {
|
|
133
142
|
paddingTop: "1.5rem",
|
|
134
143
|
paddingBottom: "1.5rem",
|
|
135
144
|
textAlign: "center",
|
|
136
|
-
color:
|
|
145
|
+
color: u,
|
|
137
146
|
fontSize: C,
|
|
138
147
|
lineHeight: h
|
|
139
148
|
},
|
|
@@ -142,19 +151,19 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
142
151
|
},
|
|
143
152
|
groupLabel: {
|
|
144
153
|
color: f,
|
|
145
|
-
fontWeight:
|
|
154
|
+
fontWeight: D,
|
|
146
155
|
paddingLeft: b,
|
|
147
156
|
paddingRight: b,
|
|
148
157
|
paddingTop: b,
|
|
149
158
|
paddingBottom: b,
|
|
150
|
-
fontSize:
|
|
151
|
-
lineHeight:
|
|
159
|
+
fontSize: V,
|
|
160
|
+
lineHeight: T
|
|
152
161
|
},
|
|
153
162
|
separator: {
|
|
154
|
-
backgroundColor:
|
|
163
|
+
backgroundColor: P,
|
|
155
164
|
pointerEvents: "none",
|
|
156
|
-
marginLeft: `calc(-1 * ${
|
|
157
|
-
marginRight: `calc(-1 * ${
|
|
165
|
+
marginLeft: `calc(-1 * ${F})`,
|
|
166
|
+
marginRight: `calc(-1 * ${F})`,
|
|
158
167
|
marginTop: b,
|
|
159
168
|
marginBottom: b,
|
|
160
169
|
height: "1px"
|
|
@@ -178,7 +187,13 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
178
187
|
...s.borderRadius("9999px"),
|
|
179
188
|
backgroundColor: "transparent",
|
|
180
189
|
...s.border("0"),
|
|
181
|
-
color:
|
|
190
|
+
color: q,
|
|
191
|
+
":focus-visible": {
|
|
192
|
+
outlineWidth: "2px",
|
|
193
|
+
outlineStyle: "solid",
|
|
194
|
+
outlineOffset: "2px",
|
|
195
|
+
outlineColor: y
|
|
196
|
+
}
|
|
182
197
|
},
|
|
183
198
|
clearSvg: {
|
|
184
199
|
width: "1.25rem",
|
|
@@ -201,12 +216,12 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
201
216
|
color: "currentColor"
|
|
202
217
|
},
|
|
203
218
|
placeholder: {
|
|
204
|
-
color:
|
|
219
|
+
color: N
|
|
205
220
|
}
|
|
206
|
-
}),
|
|
221
|
+
}), lo = l.forwardRef(
|
|
207
222
|
function(t, o) {
|
|
208
|
-
return /* @__PURE__ */
|
|
209
|
-
|
|
223
|
+
return /* @__PURE__ */ n(
|
|
224
|
+
O,
|
|
210
225
|
{
|
|
211
226
|
"data-slot": "combobox",
|
|
212
227
|
[p]: "combobox",
|
|
@@ -214,14 +229,14 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
214
229
|
}
|
|
215
230
|
);
|
|
216
231
|
}
|
|
217
|
-
),
|
|
232
|
+
), so = l.forwardRef(function({ className: t, children: o, ...r }, e) {
|
|
218
233
|
var w;
|
|
219
|
-
const d = c(), i = ((w =
|
|
220
|
-
return /* @__PURE__ */
|
|
234
|
+
const d = c(), i = ((w = _()) == null ? void 0 : w.inputRef) ?? null;
|
|
235
|
+
return /* @__PURE__ */ R(
|
|
221
236
|
Z,
|
|
222
237
|
{
|
|
223
|
-
ref: (
|
|
224
|
-
i && (i.current =
|
|
238
|
+
ref: (g) => {
|
|
239
|
+
i && (i.current = g), typeof e == "function" ? e(g) : e && (e.current = g);
|
|
225
240
|
},
|
|
226
241
|
"data-slot": "select-trigger",
|
|
227
242
|
[p]: "select-trigger",
|
|
@@ -229,13 +244,13 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
229
244
|
...r,
|
|
230
245
|
children: [
|
|
231
246
|
o,
|
|
232
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ n(Q, { className: d.triggerChevron })
|
|
233
248
|
]
|
|
234
249
|
}
|
|
235
250
|
);
|
|
236
|
-
}),
|
|
251
|
+
}), mo = l.forwardRef(function({ className: t, children: o, container: r, ...e }, d) {
|
|
237
252
|
const i = c();
|
|
238
|
-
return /* @__PURE__ */
|
|
253
|
+
return /* @__PURE__ */ n(M, { container: r, children: /* @__PURE__ */ n(
|
|
239
254
|
X,
|
|
240
255
|
{
|
|
241
256
|
ref: d,
|
|
@@ -243,7 +258,7 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
243
258
|
[p]: "combobox-content",
|
|
244
259
|
className: m(i.content, t),
|
|
245
260
|
...e,
|
|
246
|
-
children: /* @__PURE__ */
|
|
261
|
+
children: /* @__PURE__ */ n(
|
|
247
262
|
G,
|
|
248
263
|
{
|
|
249
264
|
"data-slot": "combobox-command",
|
|
@@ -254,9 +269,9 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
254
269
|
)
|
|
255
270
|
}
|
|
256
271
|
) });
|
|
257
|
-
}),
|
|
272
|
+
}), co = l.forwardRef(function({ className: t, children: o, ...r }, e) {
|
|
258
273
|
const d = c();
|
|
259
|
-
return /* @__PURE__ */
|
|
274
|
+
return /* @__PURE__ */ n(
|
|
260
275
|
"div",
|
|
261
276
|
{
|
|
262
277
|
ref: e,
|
|
@@ -267,10 +282,10 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
267
282
|
children: o
|
|
268
283
|
}
|
|
269
284
|
);
|
|
270
|
-
}),
|
|
285
|
+
}), bo = l.forwardRef(function({ className: t, ...o }, r) {
|
|
271
286
|
const e = c();
|
|
272
|
-
return /* @__PURE__ */
|
|
273
|
-
|
|
287
|
+
return /* @__PURE__ */ n(
|
|
288
|
+
A,
|
|
274
289
|
{
|
|
275
290
|
ref: r,
|
|
276
291
|
"data-slot": "combobox-command-input",
|
|
@@ -279,10 +294,10 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
279
294
|
...o
|
|
280
295
|
}
|
|
281
296
|
);
|
|
282
|
-
}),
|
|
297
|
+
}), po = l.forwardRef(function({ className: t, ...o }, r) {
|
|
283
298
|
const e = c();
|
|
284
|
-
return /* @__PURE__ */
|
|
285
|
-
|
|
299
|
+
return /* @__PURE__ */ n(
|
|
300
|
+
j,
|
|
286
301
|
{
|
|
287
302
|
ref: r,
|
|
288
303
|
"data-slot": "combobox-command-list",
|
|
@@ -291,10 +306,10 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
291
306
|
...o
|
|
292
307
|
}
|
|
293
308
|
);
|
|
294
|
-
}),
|
|
309
|
+
}), uo = l.forwardRef(function({ className: t, children: o, ...r }, e) {
|
|
295
310
|
const d = c();
|
|
296
|
-
return /* @__PURE__ */
|
|
297
|
-
|
|
311
|
+
return /* @__PURE__ */ n(
|
|
312
|
+
E,
|
|
298
313
|
{
|
|
299
314
|
ref: e,
|
|
300
315
|
"data-slot": "combobox-item",
|
|
@@ -306,18 +321,18 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
306
321
|
);
|
|
307
322
|
}), go = l.forwardRef(function({ className: t, ...o }, r) {
|
|
308
323
|
const e = c();
|
|
309
|
-
return /* @__PURE__ */
|
|
324
|
+
return /* @__PURE__ */ n(
|
|
310
325
|
"span",
|
|
311
326
|
{
|
|
312
327
|
ref: r,
|
|
313
328
|
className: m(e.itemCheckIcon, t),
|
|
314
329
|
...o,
|
|
315
|
-
children: /* @__PURE__ */
|
|
330
|
+
children: /* @__PURE__ */ n($, { className: e.checkSvg })
|
|
316
331
|
}
|
|
317
332
|
);
|
|
318
|
-
}),
|
|
333
|
+
}), xo = l.forwardRef(function({ className: t, ...o }, r) {
|
|
319
334
|
const e = c();
|
|
320
|
-
return /* @__PURE__ */
|
|
335
|
+
return /* @__PURE__ */ n(
|
|
321
336
|
B,
|
|
322
337
|
{
|
|
323
338
|
ref: r,
|
|
@@ -327,10 +342,10 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
327
342
|
...o
|
|
328
343
|
}
|
|
329
344
|
);
|
|
330
|
-
}),
|
|
345
|
+
}), fo = l.forwardRef(function({ className: t, ...o }, r) {
|
|
331
346
|
const e = c();
|
|
332
|
-
return /* @__PURE__ */
|
|
333
|
-
|
|
347
|
+
return /* @__PURE__ */ n(
|
|
348
|
+
k,
|
|
334
349
|
{
|
|
335
350
|
ref: r,
|
|
336
351
|
"data-slot": "combobox-group",
|
|
@@ -339,9 +354,9 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
339
354
|
...o
|
|
340
355
|
}
|
|
341
356
|
);
|
|
342
|
-
}),
|
|
357
|
+
}), ho = l.forwardRef(function({ className: t, ...o }, r) {
|
|
343
358
|
const e = c();
|
|
344
|
-
return /* @__PURE__ */
|
|
359
|
+
return /* @__PURE__ */ n(
|
|
345
360
|
z,
|
|
346
361
|
{
|
|
347
362
|
ref: r,
|
|
@@ -351,10 +366,10 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
351
366
|
...o
|
|
352
367
|
}
|
|
353
368
|
);
|
|
354
|
-
}),
|
|
369
|
+
}), Co = l.forwardRef(function({ className: t, ...o }, r) {
|
|
355
370
|
const e = c();
|
|
356
|
-
return /* @__PURE__ */
|
|
357
|
-
|
|
371
|
+
return /* @__PURE__ */ n(
|
|
372
|
+
W,
|
|
358
373
|
{
|
|
359
374
|
ref: r,
|
|
360
375
|
"data-slot": "select-separator",
|
|
@@ -363,10 +378,10 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
363
378
|
...o
|
|
364
379
|
}
|
|
365
380
|
);
|
|
366
|
-
}),
|
|
381
|
+
}), wo = l.forwardRef(function({ className: t, ...o }, r) {
|
|
367
382
|
const e = c();
|
|
368
|
-
return /* @__PURE__ */
|
|
369
|
-
|
|
383
|
+
return /* @__PURE__ */ n(
|
|
384
|
+
H,
|
|
370
385
|
{
|
|
371
386
|
ref: r,
|
|
372
387
|
"data-slot": "combobox-command-loading",
|
|
@@ -375,9 +390,9 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
375
390
|
...o
|
|
376
391
|
}
|
|
377
392
|
);
|
|
378
|
-
}),
|
|
393
|
+
}), yo = l.forwardRef(function({ className: t, onClick: o, ...r }, e) {
|
|
379
394
|
const d = c();
|
|
380
|
-
return /* @__PURE__ */
|
|
395
|
+
return /* @__PURE__ */ n(
|
|
381
396
|
"span",
|
|
382
397
|
{
|
|
383
398
|
ref: e,
|
|
@@ -391,12 +406,12 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
391
406
|
i.preventDefault(), i.stopPropagation(), o == null || o(i);
|
|
392
407
|
},
|
|
393
408
|
...r,
|
|
394
|
-
children: /* @__PURE__ */
|
|
409
|
+
children: /* @__PURE__ */ n(v, { className: d.clearSvg })
|
|
395
410
|
}
|
|
396
411
|
);
|
|
397
|
-
}),
|
|
412
|
+
}), Fo = l.forwardRef(function({ className: t, ...o }, r) {
|
|
398
413
|
const e = c();
|
|
399
|
-
return /* @__PURE__ */
|
|
414
|
+
return /* @__PURE__ */ n(
|
|
400
415
|
"span",
|
|
401
416
|
{
|
|
402
417
|
ref: r,
|
|
@@ -404,9 +419,9 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
404
419
|
...o
|
|
405
420
|
}
|
|
406
421
|
);
|
|
407
|
-
}),
|
|
422
|
+
}), vo = l.forwardRef(function({ className: t, onClick: o, ...r }, e) {
|
|
408
423
|
const d = c();
|
|
409
|
-
return /* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ n(
|
|
410
425
|
"span",
|
|
411
426
|
{
|
|
412
427
|
ref: e,
|
|
@@ -420,42 +435,42 @@ const _ = (n) => /* @__PURE__ */ a(
|
|
|
420
435
|
i.preventDefault(), i.stopPropagation(), o == null || o(i);
|
|
421
436
|
},
|
|
422
437
|
...r,
|
|
423
|
-
children: /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ n(v, { className: d.clearValueSvg })
|
|
424
439
|
}
|
|
425
440
|
);
|
|
426
441
|
});
|
|
427
442
|
export {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
443
|
+
lo as Combobox,
|
|
444
|
+
yo as ComboboxClear,
|
|
445
|
+
vo as ComboboxClearValue,
|
|
446
|
+
mo as ComboboxContent,
|
|
447
|
+
xo as ComboboxEmpty,
|
|
448
|
+
fo as ComboboxGroup,
|
|
449
|
+
ho as ComboboxGroupLabel,
|
|
450
|
+
bo as ComboboxInput,
|
|
451
|
+
uo as ComboboxItem,
|
|
437
452
|
go as ComboboxItemCheckIcon,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
+
po as ComboboxList,
|
|
454
|
+
wo as ComboboxLoading,
|
|
455
|
+
Fo as ComboboxPlaceholder,
|
|
456
|
+
Co as ComboboxSeparator,
|
|
457
|
+
so as ComboboxTrigger,
|
|
458
|
+
co as ComboboxValue,
|
|
459
|
+
lo as FieldCombobox,
|
|
460
|
+
yo as FieldComboboxClear,
|
|
461
|
+
vo as FieldComboboxClearValue,
|
|
462
|
+
mo as FieldComboboxContent,
|
|
463
|
+
xo as FieldComboboxEmpty,
|
|
464
|
+
fo as FieldComboboxGroup,
|
|
465
|
+
ho as FieldComboboxGroupLabel,
|
|
466
|
+
bo as FieldComboboxInput,
|
|
467
|
+
uo as FieldComboboxItem,
|
|
453
468
|
go as FieldComboboxItemCheckIcon,
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
469
|
+
po as FieldComboboxList,
|
|
470
|
+
wo as FieldComboboxLoading,
|
|
471
|
+
Fo as FieldComboboxPlaceholder,
|
|
472
|
+
Co as FieldComboboxSeparator,
|
|
473
|
+
so as FieldComboboxTrigger,
|
|
474
|
+
co as FieldComboboxValue
|
|
460
475
|
};
|
|
461
476
|
//# sourceMappingURL=field-combobox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-combobox.js","sources":["../../../src/components/field/field-combobox.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { mergeClasses, shorthands } from \"@epilot/volt-ui-runtime\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n type CommandEmptyProps,\n type CommandGroupProps,\n type CommandInputProps,\n type CommandItemProps,\n type CommandListProps,\n type CommandLoadingProps,\n type CommandSeparatorProps,\n} from \"../command/command\"\nimport { Label, type LabelProps } from \"../label/label\"\nimport {\n Popover,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n type PopoverContentProps,\n type PopoverPortalProps,\n type PopoverProps,\n type PopoverTriggerProps,\n} from \"../popover/popover\"\nimport { useOptionalFieldContext } from \"./field\"\n\nconst CheckIcon = (props: React.ComponentProps<\"svg\">) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z\" />\n </svg>\n)\n\nconst ChevronDownIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z\" />\n </svg>\n)\n\nconst XIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z\" />\n </svg>\n)\n\nconst useStyles = makeVoltStyles({\n trigger: {\n width: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n ...shorthands.gap(tokens.spacingElement2),\n ...shorthands.borderRadius(tokens.radiusLg),\n backgroundColor: \"transparent\",\n fontSize: tokens.textSm,\n lineHeight: tokens.leadingSm,\n whiteSpace: \"nowrap\",\n outlineStyle: \"none\",\n ...shorthands.border(\"0\"),\n ...shorthands.padding(0),\n \":disabled\": {\n cursor: \"not-allowed\",\n opacity: 0.5,\n },\n },\n triggerChevron: {\n width: \"1.5rem\",\n height: \"1.5rem\",\n flexShrink: 0,\n transitionProperty: \"transform\",\n transitionDuration: \"150ms\",\n color: tokens.grayA11,\n \"&[data-popup-open], &[data-open]\": {\n transform: \"rotate(180deg)\",\n },\n },\n value: {\n color: tokens.grayA12,\n width: \"100%\",\n textAlign: \"left\",\n flexWrap: \"wrap\",\n display: \"flex\",\n ...shorthands.gap(tokens.spacingElement2),\n position: \"relative\",\n whiteSpace: \"normal\",\n marginRight: \"1.25rem\",\n },\n content: {\n ...shorthands.padding(0),\n },\n command: {\n width: \"100%\",\n ...shorthands.borderRadius(0),\n },\n input: {\n width: \"100%\",\n },\n list: {\n ...shorthands.padding(tokens.spacingElement2),\n },\n item: {\n paddingLeft: tokens.spacingGroup1,\n paddingRight: \"2rem\",\n paddingTop: \"0.375rem\",\n paddingBottom: \"0.375rem\",\n color: tokens.grayA12,\n position: \"relative\",\n display: \"flex\",\n width: \"100%\",\n cursor: \"default\",\n alignItems: \"center\",\n ...shorthands.gap(tokens.spacingElement2),\n ...shorthands.borderRadius(tokens.radiusMd),\n fontSize: tokens.textSm,\n lineHeight: tokens.leadingSm,\n outlineStyle: \"none\",\n userSelect: \"none\",\n },\n itemCheckIcon: {\n position: \"absolute\",\n right: tokens.spacingElement2,\n display: \"flex\",\n width: \"1rem\",\n height: \"1rem\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n checkSvg: {\n width: \"1rem\",\n height: \"1rem\",\n color: tokens.grayA12,\n },\n empty: {\n paddingTop: \"1.5rem\",\n paddingBottom: \"1.5rem\",\n textAlign: \"center\",\n color: tokens.grayA12,\n fontSize: tokens.textSm,\n lineHeight: tokens.leadingSm,\n },\n group: {\n ...shorthands.padding(0),\n },\n groupLabel: {\n color: tokens.grayA11,\n fontWeight: tokens.fontWeightSemibold,\n paddingLeft: tokens.spacingElement2,\n paddingRight: tokens.spacingElement2,\n paddingTop: tokens.spacingElement2,\n paddingBottom: tokens.spacingElement2,\n fontSize: tokens.textXs,\n lineHeight: tokens.leadingXs,\n },\n separator: {\n backgroundColor: tokens.semGraySoft,\n pointerEvents: \"none\",\n marginLeft: `calc(-1 * ${tokens.spacingElement1})`,\n marginRight: `calc(-1 * ${tokens.spacingElement1})`,\n marginTop: tokens.spacingElement2,\n marginBottom: tokens.spacingElement2,\n height: \"1px\",\n },\n loading: {\n color: tokens.grayA11,\n paddingLeft: tokens.spacingGroup1,\n paddingRight: tokens.spacingGroup1,\n paddingTop: tokens.spacingElement2,\n paddingBottom: tokens.spacingElement2,\n },\n clear: {\n position: \"absolute\",\n right: \"2.75rem\",\n cursor: \"pointer\",\n minHeight: \"auto\",\n ...shorthands.padding(\"0.125rem\"),\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...shorthands.borderRadius(\"9999px\"),\n backgroundColor: \"transparent\",\n ...shorthands.border(\"0\"),\n color: tokens.accentA11,\n },\n clearSvg: {\n width: \"1.25rem\",\n height: \"1.25rem\",\n },\n clearValue: {\n cursor: \"pointer\",\n \":hover\": {\n opacity: 0.7,\n },\n color: \"currentColor\",\n ...shorthands.borderRadius(\"9999px\"),\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n clearValueSvg: {\n width: \"1rem\",\n height: \"1rem\",\n color: \"currentColor\",\n },\n placeholder: {\n color: tokens.grayA8,\n },\n})\n\nexport type FieldComboboxProps = PopoverProps\n\nexport const FieldCombobox = React.forwardRef<HTMLElement, FieldComboboxProps>(\n function FieldCombobox(props, _ref) {\n return (\n <Popover\n data-slot=\"combobox\"\n {...{ [SLOT_ATTR]: \"combobox\" }}\n {...props}\n />\n )\n }\n)\n\nexport type FieldComboboxTriggerProps = PopoverTriggerProps\n\nexport const FieldComboboxTrigger = React.forwardRef<\n HTMLButtonElement,\n FieldComboboxTriggerProps\n>(function FieldComboboxTrigger(\n { className, children, ...props },\n forwardedRef\n) {\n const styles = useStyles()\n // Optional on purpose: this part is valid standalone and only picks up field wiring\n // when nested inside one. See useOptionalFieldContext.\n const inputRef = useOptionalFieldContext()?.inputRef ?? null\n\n const handleRef = (el: HTMLButtonElement | null) => {\n if (inputRef) {\n inputRef.current = el\n }\n if (typeof forwardedRef === \"function\") {\n forwardedRef(el)\n } else if (forwardedRef) {\n forwardedRef.current = el\n }\n }\n\n return (\n <PopoverTrigger\n ref={handleRef}\n data-slot=\"select-trigger\"\n {...{ [SLOT_ATTR]: \"select-trigger\" }}\n className={mergeClasses(styles.trigger, className)}\n {...props}\n >\n {children}\n <ChevronDownIcon className={styles.triggerChevron} />\n </PopoverTrigger>\n )\n})\n\nexport type FieldComboboxContentProps = PopoverContentProps & {\n container?: PopoverPortalProps[\"container\"]\n}\n\nexport const FieldComboboxContent = React.forwardRef<\n HTMLDivElement,\n FieldComboboxContentProps\n>(function FieldComboboxContent(\n { className, children, container, ...props },\n ref\n) {\n const styles = useStyles()\n\n return (\n <PopoverPortal container={container}>\n <PopoverContent\n ref={ref}\n data-slot=\"combobox-content\"\n {...{ [SLOT_ATTR]: \"combobox-content\" }}\n className={mergeClasses(styles.content, className)}\n {...props}\n >\n <Command\n data-slot=\"combobox-command\"\n {...{ [SLOT_ATTR]: \"combobox-command\" }}\n className={styles.command}\n >\n {children}\n </Command>\n </PopoverContent>\n </PopoverPortal>\n )\n})\n\nexport type FieldComboboxValueProps = React.ComponentProps<\"div\">\n\nexport const FieldComboboxValue = React.forwardRef<\n HTMLDivElement,\n FieldComboboxValueProps\n>(function FieldComboboxValue({ className, children, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"combobox-value\"\n {...{ [SLOT_ATTR]: \"combobox-value\" }}\n className={mergeClasses(styles.value, className)}\n {...props}\n >\n {children}\n </div>\n )\n})\n\nexport type FieldComboboxInputProps = CommandInputProps\n\nexport const FieldComboboxInput = React.forwardRef<\n HTMLInputElement,\n FieldComboboxInputProps\n>(function FieldComboboxInput({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandInput\n ref={ref}\n data-slot=\"combobox-command-input\"\n {...{ [SLOT_ATTR]: \"combobox-command-input\" }}\n className={mergeClasses(styles.input, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxListProps = CommandListProps\n\nexport const FieldComboboxList = React.forwardRef<\n HTMLDivElement,\n FieldComboboxListProps\n>(function FieldComboboxList({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandList\n ref={ref}\n data-slot=\"combobox-command-list\"\n {...{ [SLOT_ATTR]: \"combobox-command-list\" }}\n className={mergeClasses(styles.list, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxItemProps = CommandItemProps\n\nexport const FieldComboboxItem = React.forwardRef<\n HTMLDivElement,\n FieldComboboxItemProps\n>(function FieldComboboxItem({ className, children, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandItem\n ref={ref}\n data-slot=\"combobox-item\"\n {...{ [SLOT_ATTR]: \"combobox-item\" }}\n className={mergeClasses(styles.item, className)}\n {...props}\n >\n {children}\n </CommandItem>\n )\n})\n\nexport type FieldComboboxItemCheckIconProps = React.ComponentProps<\"span\">\n\nexport const FieldComboboxItemCheckIcon = React.forwardRef<\n HTMLSpanElement,\n FieldComboboxItemCheckIconProps\n>(function FieldComboboxItemCheckIcon({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <span\n ref={ref}\n className={mergeClasses(styles.itemCheckIcon, className)}\n {...props}\n >\n <CheckIcon className={styles.checkSvg} />\n </span>\n )\n})\n\nexport type FieldComboboxEmptyProps = CommandEmptyProps\n\nexport const FieldComboboxEmpty = React.forwardRef<\n HTMLDivElement,\n FieldComboboxEmptyProps\n>(function FieldComboboxEmpty({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandEmpty\n ref={ref}\n data-slot=\"combobox-empty\"\n {...{ [SLOT_ATTR]: \"combobox-empty\" }}\n className={mergeClasses(styles.empty, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxGroupProps = CommandGroupProps\n\nexport const FieldComboboxGroup = React.forwardRef<\n HTMLDivElement,\n FieldComboboxGroupProps\n>(function FieldComboboxGroup({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandGroup\n ref={ref}\n data-slot=\"combobox-group\"\n {...{ [SLOT_ATTR]: \"combobox-group\" }}\n className={mergeClasses(styles.group, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxGroupLabelProps = LabelProps\n\nexport const FieldComboboxGroupLabel = React.forwardRef<\n HTMLLabelElement,\n FieldComboboxGroupLabelProps\n>(function FieldComboboxGroupLabel({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <Label\n ref={ref}\n data-slot=\"combobox-group-label\"\n {...{ [SLOT_ATTR]: \"combobox-group-label\" }}\n className={mergeClasses(styles.groupLabel, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxSeparatorProps = CommandSeparatorProps\n\nexport const FieldComboboxSeparator = React.forwardRef<\n HTMLDivElement,\n FieldComboboxSeparatorProps\n>(function FieldComboboxSeparator({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandSeparator\n ref={ref}\n data-slot=\"select-separator\"\n {...{ [SLOT_ATTR]: \"select-separator\" }}\n className={mergeClasses(styles.separator, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxLoadingProps = CommandLoadingProps\n\nexport const FieldComboboxLoading = React.forwardRef<\n HTMLDivElement,\n FieldComboboxLoadingProps\n>(function FieldComboboxLoading({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandLoading\n ref={ref}\n data-slot=\"combobox-command-loading\"\n {...{ [SLOT_ATTR]: \"combobox-command-loading\" }}\n className={mergeClasses(styles.loading, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxClearProps = React.ComponentProps<\"span\">\n\nexport const FieldComboboxClear = React.forwardRef<\n HTMLSpanElement,\n FieldComboboxClearProps\n>(function FieldComboboxClear({ className, onClick, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <span\n ref={ref}\n role=\"button\"\n tabIndex={0}\n className={mergeClasses(styles.clear, className)}\n onPointerDown={(event) => {\n event.preventDefault()\n event.stopPropagation()\n }}\n onClick={(event) => {\n event.preventDefault()\n event.stopPropagation()\n onClick?.(event)\n }}\n {...props}\n >\n <XIcon className={styles.clearSvg} />\n </span>\n )\n})\n\nexport type FieldComboboxPlaceholderProps = React.ComponentProps<\"span\">\n\nexport const FieldComboboxPlaceholder = React.forwardRef<\n HTMLSpanElement,\n FieldComboboxPlaceholderProps\n>(function FieldComboboxPlaceholder({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <span\n ref={ref}\n className={mergeClasses(styles.placeholder, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxClearValueProps = React.ComponentProps<\"span\">\n\nexport const FieldComboboxClearValue = React.forwardRef<\n HTMLSpanElement,\n FieldComboboxClearValueProps\n>(function FieldComboboxClearValue({ className, onClick, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <span\n ref={ref}\n role=\"button\"\n tabIndex={0}\n className={mergeClasses(styles.clearValue, className)}\n onPointerDown={(event) => {\n event.preventDefault()\n event.stopPropagation()\n }}\n onClick={(event) => {\n event.preventDefault()\n event.stopPropagation()\n onClick?.(event)\n }}\n {...props}\n >\n <XIcon className={styles.clearValueSvg} />\n </span>\n )\n})\n\nexport {\n FieldCombobox as Combobox,\n FieldComboboxGroup as ComboboxGroup,\n FieldComboboxGroupLabel as ComboboxGroupLabel,\n FieldComboboxValue as ComboboxValue,\n FieldComboboxTrigger as ComboboxTrigger,\n FieldComboboxContent as ComboboxContent,\n FieldComboboxItem as ComboboxItem,\n FieldComboboxItemCheckIcon as ComboboxItemCheckIcon,\n FieldComboboxEmpty as ComboboxEmpty,\n FieldComboboxSeparator as ComboboxSeparator,\n FieldComboboxInput as ComboboxInput,\n FieldComboboxList as ComboboxList,\n FieldComboboxLoading as ComboboxLoading,\n FieldComboboxClear as ComboboxClear,\n FieldComboboxClearValue as ComboboxClearValue,\n FieldComboboxPlaceholder as ComboboxPlaceholder,\n}\n"],"names":["CheckIcon","props","jsx","ChevronDownIcon","XIcon","useStyles","makeVoltStyles","shorthands","tokens.spacingElement2","tokens.radiusLg","tokens.textSm","tokens.leadingSm","tokens.grayA11","tokens.grayA12","tokens.spacingGroup1","tokens.radiusMd","tokens.fontWeightSemibold","tokens.textXs","tokens.leadingXs","tokens.semGraySoft","tokens.spacingElement1","tokens.accentA11","tokens.grayA8","FieldCombobox","React","_ref","Popover","SLOT_ATTR","FieldComboboxTrigger","className","children","forwardedRef","styles","inputRef","_a","useOptionalFieldContext","jsxs","PopoverTrigger","el","mergeClasses","FieldComboboxContent","container","ref","PopoverPortal","PopoverContent","Command","FieldComboboxValue","FieldComboboxInput","CommandInput","FieldComboboxList","CommandList","FieldComboboxItem","CommandItem","FieldComboboxItemCheckIcon","FieldComboboxEmpty","CommandEmpty","FieldComboboxGroup","CommandGroup","FieldComboboxGroupLabel","Label","FieldComboboxSeparator","CommandSeparator","FieldComboboxLoading","CommandLoading","FieldComboboxClear","onClick","event","FieldComboboxPlaceholder","FieldComboboxClearValue"],"mappings":";;;;;;;;;;;AAqCA,MAAMA,IAAY,CAACC,MACjB,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,MAAK;AAAA,IACJ,GAAGD;AAAA,IAEJ,UAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,uJAAA,CAAuJ;AAAA,EAAA;AACjK,GAGIC,IAAkB,CAACF,MACvB,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,MAAK;AAAA,IACJ,GAAGD;AAAA,IAEJ,UAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,kIAAA,CAAkI;AAAA,EAAA;AAC5I,GAGIE,IAAQ,CAACH,MACb,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,MAAK;AAAA,IACJ,GAAGD;AAAA,IAEJ,UAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,oOAAA,CAAoO;AAAA,EAAA;AAC9O,GAGIG,IAAYC,EAAe;AAAA,EAC/B,SAAS;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,GAAGC,EAAW,IAAIC,CAAsB;AAAA,IACxC,GAAGD,EAAW,aAAaE,C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AAM,WAG3C,SAAiC,EAAE,WAAAK,GAAW,SAAAoC,GAAS,GAAGhE,EAAA,GAASyC,GAAK;AACxE,QAAMV,IAAS3B,EAAA;AAEf,SACE,gBAAAH;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAwC;AAAA,MACA,MAAK;AAAA,MACL,UAAU;AAAA,MACV,WAAWH,EAAaP,EAAO,YAAYH,CAAS;AAAA,MACpD,eAAe,CAACqC,MAAU;AACxB,QAAAA,EAAM,eAAA,GACNA,EAAM,gBAAA;AAAA,MACR;AAAA,MACA,SAAS,CAACA,MAAU;AAClB,QAAAA,EAAM,eAAA,GACNA,EAAM,gBAAA,GACND,KAAA,QAAAA,EAAUC;AAAA,MACZ;AAAA,MACC,GAAGjE;AAAA,MAEJ,UAAA,gBAAAC,EAACE,GAAA,EAAM,WAAW4B,EAAO,cAAA,CAAe;AAAA,IAAA;AAAA,EAAA;AAG9C,CAAC;"}
|
|
1
|
+
{"version":3,"file":"field-combobox.js","sources":["../../../src/components/field/field-combobox.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { mergeClasses, shorthands } from \"@epilot/volt-ui-runtime\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n type CommandEmptyProps,\n type CommandGroupProps,\n type CommandInputProps,\n type CommandItemProps,\n type CommandListProps,\n type CommandLoadingProps,\n type CommandSeparatorProps,\n} from \"../command/command\"\nimport { Label, type LabelProps } from \"../label/label\"\nimport {\n Popover,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n type PopoverContentProps,\n type PopoverPortalProps,\n type PopoverProps,\n type PopoverTriggerProps,\n} from \"../popover/popover\"\nimport { useOptionalFieldContext } from \"./field\"\n\nconst CheckIcon = (props: React.ComponentProps<\"svg\">) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z\" />\n </svg>\n)\n\nconst ChevronDownIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z\" />\n </svg>\n)\n\nconst XIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z\" />\n </svg>\n)\n\nconst useStyles = makeVoltStyles({\n trigger: {\n width: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n ...shorthands.gap(tokens.spacingElement2),\n ...shorthands.borderRadius(tokens.radiusLg),\n backgroundColor: \"transparent\",\n fontSize: tokens.textSm,\n lineHeight: tokens.leadingSm,\n whiteSpace: \"nowrap\",\n outlineStyle: \"none\",\n ...shorthands.border(\"0\"),\n ...shorthands.padding(0),\n \":focus-visible\": {\n outlineWidth: \"2px\",\n outlineStyle: \"solid\",\n outlineOffset: \"2px\",\n outlineColor: tokens.semFocusRing,\n },\n \":disabled\": {\n cursor: \"not-allowed\",\n opacity: 0.5,\n },\n },\n triggerChevron: {\n width: \"1.5rem\",\n height: \"1.5rem\",\n flexShrink: 0,\n transitionProperty: \"transform\",\n transitionDuration: \"150ms\",\n \"@media (prefers-reduced-motion: reduce)\": {\n transitionDuration: \"0.01ms\",\n },\n color: tokens.grayA11,\n \"&[data-popup-open], &[data-open]\": {\n transform: \"rotate(180deg)\",\n },\n },\n value: {\n color: tokens.grayA12,\n width: \"100%\",\n textAlign: \"left\",\n flexWrap: \"wrap\",\n display: \"flex\",\n ...shorthands.gap(tokens.spacingElement2),\n position: \"relative\",\n whiteSpace: \"normal\",\n marginRight: \"1.25rem\",\n },\n content: {\n ...shorthands.padding(0),\n },\n command: {\n width: \"100%\",\n ...shorthands.borderRadius(0),\n },\n input: {\n width: \"100%\",\n },\n list: {\n ...shorthands.padding(tokens.spacingElement2),\n },\n item: {\n paddingLeft: tokens.spacingGroup1,\n paddingRight: \"2rem\",\n paddingTop: \"0.375rem\",\n paddingBottom: \"0.375rem\",\n color: tokens.grayA12,\n position: \"relative\",\n display: \"flex\",\n width: \"100%\",\n cursor: \"default\",\n alignItems: \"center\",\n ...shorthands.gap(tokens.spacingElement2),\n ...shorthands.borderRadius(tokens.radiusMd),\n fontSize: tokens.textSm,\n lineHeight: tokens.leadingSm,\n outlineStyle: \"none\",\n userSelect: \"none\",\n },\n itemCheckIcon: {\n position: \"absolute\",\n right: tokens.spacingElement2,\n display: \"flex\",\n width: \"1rem\",\n height: \"1rem\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n checkSvg: {\n width: \"1rem\",\n height: \"1rem\",\n color: tokens.grayA12,\n },\n empty: {\n paddingTop: \"1.5rem\",\n paddingBottom: \"1.5rem\",\n textAlign: \"center\",\n color: tokens.grayA12,\n fontSize: tokens.textSm,\n lineHeight: tokens.leadingSm,\n },\n group: {\n ...shorthands.padding(0),\n },\n groupLabel: {\n color: tokens.grayA11,\n fontWeight: tokens.fontWeightSemibold,\n paddingLeft: tokens.spacingElement2,\n paddingRight: tokens.spacingElement2,\n paddingTop: tokens.spacingElement2,\n paddingBottom: tokens.spacingElement2,\n fontSize: tokens.textXs,\n lineHeight: tokens.leadingXs,\n },\n separator: {\n backgroundColor: tokens.semGraySoft,\n pointerEvents: \"none\",\n marginLeft: `calc(-1 * ${tokens.spacingElement1})`,\n marginRight: `calc(-1 * ${tokens.spacingElement1})`,\n marginTop: tokens.spacingElement2,\n marginBottom: tokens.spacingElement2,\n height: \"1px\",\n },\n loading: {\n color: tokens.grayA11,\n paddingLeft: tokens.spacingGroup1,\n paddingRight: tokens.spacingGroup1,\n paddingTop: tokens.spacingElement2,\n paddingBottom: tokens.spacingElement2,\n },\n clear: {\n position: \"absolute\",\n right: \"2.75rem\",\n cursor: \"pointer\",\n minHeight: \"auto\",\n ...shorthands.padding(\"0.125rem\"),\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...shorthands.borderRadius(\"9999px\"),\n backgroundColor: \"transparent\",\n ...shorthands.border(\"0\"),\n color: tokens.accentA11,\n \":focus-visible\": {\n outlineWidth: \"2px\",\n outlineStyle: \"solid\",\n outlineOffset: \"2px\",\n outlineColor: tokens.semFocusRing,\n },\n },\n clearSvg: {\n width: \"1.25rem\",\n height: \"1.25rem\",\n },\n clearValue: {\n cursor: \"pointer\",\n \":hover\": {\n opacity: 0.7,\n },\n color: \"currentColor\",\n ...shorthands.borderRadius(\"9999px\"),\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n clearValueSvg: {\n width: \"1rem\",\n height: \"1rem\",\n color: \"currentColor\",\n },\n placeholder: {\n color: tokens.grayA8,\n },\n})\n\nexport type FieldComboboxProps = PopoverProps\n\nexport const FieldCombobox = React.forwardRef<HTMLElement, FieldComboboxProps>(\n function FieldCombobox(props, _ref) {\n return (\n <Popover\n data-slot=\"combobox\"\n {...{ [SLOT_ATTR]: \"combobox\" }}\n {...props}\n />\n )\n }\n)\n\nexport type FieldComboboxTriggerProps = PopoverTriggerProps\n\nexport const FieldComboboxTrigger = React.forwardRef<\n HTMLButtonElement,\n FieldComboboxTriggerProps\n>(function FieldComboboxTrigger(\n { className, children, ...props },\n forwardedRef\n) {\n const styles = useStyles()\n // Optional on purpose: this part is valid standalone and only picks up field wiring\n // when nested inside one. See useOptionalFieldContext.\n const inputRef = useOptionalFieldContext()?.inputRef ?? null\n\n const handleRef = (el: HTMLButtonElement | null) => {\n if (inputRef) {\n inputRef.current = el\n }\n if (typeof forwardedRef === \"function\") {\n forwardedRef(el)\n } else if (forwardedRef) {\n forwardedRef.current = el\n }\n }\n\n return (\n <PopoverTrigger\n ref={handleRef}\n data-slot=\"select-trigger\"\n {...{ [SLOT_ATTR]: \"select-trigger\" }}\n className={mergeClasses(styles.trigger, className)}\n {...props}\n >\n {children}\n <ChevronDownIcon className={styles.triggerChevron} />\n </PopoverTrigger>\n )\n})\n\nexport type FieldComboboxContentProps = PopoverContentProps & {\n container?: PopoverPortalProps[\"container\"]\n}\n\nexport const FieldComboboxContent = React.forwardRef<\n HTMLDivElement,\n FieldComboboxContentProps\n>(function FieldComboboxContent(\n { className, children, container, ...props },\n ref\n) {\n const styles = useStyles()\n\n return (\n <PopoverPortal container={container}>\n <PopoverContent\n ref={ref}\n data-slot=\"combobox-content\"\n {...{ [SLOT_ATTR]: \"combobox-content\" }}\n className={mergeClasses(styles.content, className)}\n {...props}\n >\n <Command\n data-slot=\"combobox-command\"\n {...{ [SLOT_ATTR]: \"combobox-command\" }}\n className={styles.command}\n >\n {children}\n </Command>\n </PopoverContent>\n </PopoverPortal>\n )\n})\n\nexport type FieldComboboxValueProps = React.ComponentProps<\"div\">\n\nexport const FieldComboboxValue = React.forwardRef<\n HTMLDivElement,\n FieldComboboxValueProps\n>(function FieldComboboxValue({ className, children, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"combobox-value\"\n {...{ [SLOT_ATTR]: \"combobox-value\" }}\n className={mergeClasses(styles.value, className)}\n {...props}\n >\n {children}\n </div>\n )\n})\n\nexport type FieldComboboxInputProps = CommandInputProps\n\nexport const FieldComboboxInput = React.forwardRef<\n HTMLInputElement,\n FieldComboboxInputProps\n>(function FieldComboboxInput({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandInput\n ref={ref}\n data-slot=\"combobox-command-input\"\n {...{ [SLOT_ATTR]: \"combobox-command-input\" }}\n className={mergeClasses(styles.input, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxListProps = CommandListProps\n\nexport const FieldComboboxList = React.forwardRef<\n HTMLDivElement,\n FieldComboboxListProps\n>(function FieldComboboxList({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandList\n ref={ref}\n data-slot=\"combobox-command-list\"\n {...{ [SLOT_ATTR]: \"combobox-command-list\" }}\n className={mergeClasses(styles.list, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxItemProps = CommandItemProps\n\nexport const FieldComboboxItem = React.forwardRef<\n HTMLDivElement,\n FieldComboboxItemProps\n>(function FieldComboboxItem({ className, children, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandItem\n ref={ref}\n data-slot=\"combobox-item\"\n {...{ [SLOT_ATTR]: \"combobox-item\" }}\n className={mergeClasses(styles.item, className)}\n {...props}\n >\n {children}\n </CommandItem>\n )\n})\n\nexport type FieldComboboxItemCheckIconProps = React.ComponentProps<\"span\">\n\nexport const FieldComboboxItemCheckIcon = React.forwardRef<\n HTMLSpanElement,\n FieldComboboxItemCheckIconProps\n>(function FieldComboboxItemCheckIcon({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <span\n ref={ref}\n className={mergeClasses(styles.itemCheckIcon, className)}\n {...props}\n >\n <CheckIcon className={styles.checkSvg} />\n </span>\n )\n})\n\nexport type FieldComboboxEmptyProps = CommandEmptyProps\n\nexport const FieldComboboxEmpty = React.forwardRef<\n HTMLDivElement,\n FieldComboboxEmptyProps\n>(function FieldComboboxEmpty({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandEmpty\n ref={ref}\n data-slot=\"combobox-empty\"\n {...{ [SLOT_ATTR]: \"combobox-empty\" }}\n className={mergeClasses(styles.empty, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxGroupProps = CommandGroupProps\n\nexport const FieldComboboxGroup = React.forwardRef<\n HTMLDivElement,\n FieldComboboxGroupProps\n>(function FieldComboboxGroup({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandGroup\n ref={ref}\n data-slot=\"combobox-group\"\n {...{ [SLOT_ATTR]: \"combobox-group\" }}\n className={mergeClasses(styles.group, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxGroupLabelProps = LabelProps\n\nexport const FieldComboboxGroupLabel = React.forwardRef<\n HTMLLabelElement,\n FieldComboboxGroupLabelProps\n>(function FieldComboboxGroupLabel({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <Label\n ref={ref}\n data-slot=\"combobox-group-label\"\n {...{ [SLOT_ATTR]: \"combobox-group-label\" }}\n className={mergeClasses(styles.groupLabel, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxSeparatorProps = CommandSeparatorProps\n\nexport const FieldComboboxSeparator = React.forwardRef<\n HTMLDivElement,\n FieldComboboxSeparatorProps\n>(function FieldComboboxSeparator({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandSeparator\n ref={ref}\n data-slot=\"select-separator\"\n {...{ [SLOT_ATTR]: \"select-separator\" }}\n className={mergeClasses(styles.separator, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxLoadingProps = CommandLoadingProps\n\nexport const FieldComboboxLoading = React.forwardRef<\n HTMLDivElement,\n FieldComboboxLoadingProps\n>(function FieldComboboxLoading({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <CommandLoading\n ref={ref}\n data-slot=\"combobox-command-loading\"\n {...{ [SLOT_ATTR]: \"combobox-command-loading\" }}\n className={mergeClasses(styles.loading, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxClearProps = React.ComponentProps<\"span\">\n\nexport const FieldComboboxClear = React.forwardRef<\n HTMLSpanElement,\n FieldComboboxClearProps\n>(function FieldComboboxClear({ className, onClick, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <span\n ref={ref}\n role=\"button\"\n tabIndex={0}\n className={mergeClasses(styles.clear, className)}\n onPointerDown={(event) => {\n event.preventDefault()\n event.stopPropagation()\n }}\n onClick={(event) => {\n event.preventDefault()\n event.stopPropagation()\n onClick?.(event)\n }}\n {...props}\n >\n <XIcon className={styles.clearSvg} />\n </span>\n )\n})\n\nexport type FieldComboboxPlaceholderProps = React.ComponentProps<\"span\">\n\nexport const FieldComboboxPlaceholder = React.forwardRef<\n HTMLSpanElement,\n FieldComboboxPlaceholderProps\n>(function FieldComboboxPlaceholder({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <span\n ref={ref}\n className={mergeClasses(styles.placeholder, className)}\n {...props}\n />\n )\n})\n\nexport type FieldComboboxClearValueProps = React.ComponentProps<\"span\">\n\nexport const FieldComboboxClearValue = React.forwardRef<\n HTMLSpanElement,\n FieldComboboxClearValueProps\n>(function FieldComboboxClearValue({ className, onClick, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <span\n ref={ref}\n role=\"button\"\n tabIndex={0}\n className={mergeClasses(styles.clearValue, className)}\n onPointerDown={(event) => {\n event.preventDefault()\n event.stopPropagation()\n }}\n onClick={(event) => {\n event.preventDefault()\n event.stopPropagation()\n onClick?.(event)\n }}\n {...props}\n >\n <XIcon className={styles.clearValueSvg} />\n </span>\n )\n})\n\nexport {\n FieldCombobox as Combobox,\n FieldComboboxGroup as ComboboxGroup,\n FieldComboboxGroupLabel as ComboboxGroupLabel,\n FieldComboboxValue as ComboboxValue,\n FieldComboboxTrigger as ComboboxTrigger,\n FieldComboboxContent as ComboboxContent,\n FieldComboboxItem as ComboboxItem,\n FieldComboboxItemCheckIcon as ComboboxItemCheckIcon,\n FieldComboboxEmpty as ComboboxEmpty,\n FieldComboboxSeparator as ComboboxSeparator,\n FieldComboboxInput as ComboboxInput,\n FieldComboboxList as ComboboxList,\n FieldComboboxLoading as ComboboxLoading,\n FieldComboboxClear as ComboboxClear,\n FieldComboboxClearValue as ComboboxClearValue,\n FieldComboboxPlaceholder as ComboboxPlaceholder,\n}\n"],"names":["CheckIcon","props","jsx","ChevronDownIcon","XIcon","useStyles","makeVoltStyles","shorthands","tokens.spacingElement2","tokens.radiusLg","tokens.textSm","tokens.leadingSm","tokens.semFocusRing","tokens.grayA11","tokens.grayA12","tokens.spacingGroup1","tokens.radiusMd","tokens.fontWeightSemibold","tokens.textXs","tokens.leadingXs","tokens.semGraySoft","tokens.spacingElement1","tokens.accentA11","tokens.grayA8","FieldCombobox","React","_ref","Popover","SLOT_ATTR","FieldComboboxTrigger","className","children","forwardedRef","styles","inputRef","_a","useOptionalFieldContext","jsxs","PopoverTrigger","el","mergeClasses","FieldComboboxContent","container","ref","PopoverPortal","PopoverContent","Command","FieldComboboxValue","FieldComboboxInput","CommandInput","FieldComboboxList","CommandList","FieldComboboxItem","CommandItem","FieldComboboxItemCheckIcon","FieldComboboxEmpty","CommandEmpty","FieldComboboxGroup","CommandGroup","FieldComboboxGroupLabel","Label","FieldComboboxSeparator","CommandSeparator","FieldComboboxLoading","CommandLoading","FieldComboboxClear","onClick","event","FieldComboboxPlaceholder","FieldComboboxClearValue"],"mappings":";;;;;;;;;;;AAqCA,MAAMA,IAAY,CAACC,MACjB,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,MAAK;AAAA,IACJ,GAAGD;AAAA,IAEJ,UAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,uJAAA,CAAuJ;AAAA,EAAA;AACjK,GAGIC,IAAkB,CAACF,MACvB,gBAAAC;AA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