@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,12 +1,13 @@
|
|
|
1
1
|
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { Root as
|
|
4
|
-
import { shorthands as
|
|
5
|
-
import { SLOT_ATTR as
|
|
6
|
-
import { mergeClasses as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Root as A, Portal as D, Content as B, Viewport as L, Group as $, Item as k, ItemIndicator as P, ItemText as W, Label as z, ScrollDownButton as X, ScrollUpButton as j, Separator as E, Value as M, Trigger as U, Icon as Y } from "../../vendor/@radix-ui/react-select/dist/index.js";
|
|
4
|
+
import { shorthands as c } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/index.js";
|
|
5
|
+
import { SLOT_ATTR as i } from "../../packages/volt-runtime/dist/renderer/contract.js";
|
|
6
|
+
import { mergeClasses as p } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
|
|
7
|
+
import { useDensity as F } from "../density-provider/density-provider.js";
|
|
8
|
+
import { makeVoltStyles as G } from "../../styles/make-styles.js";
|
|
9
|
+
import { radiusMd as S, spacingElement2 as d, radius2xl as O, selectContentGap as V, selectContentPadding as H, radiusLg as Z, spacingElement1 as g, semGraySoft as _, gray11 as Q, fontWeightSemibold as J, leadingXs as K, textXs as tt, grayA11 as f, accentA3 as y, grayA12 as b, leadingSm as v, textSm as I, selectItemPaddingY as C, selectItemPaddingLeft as et, body as ot, accentA11 as q, semFocusRing as R, semAccentSoft as rt, grayA8 as at } from "../../tokens/index.js";
|
|
10
|
+
const nt = (n) => /* @__PURE__ */ t(
|
|
10
11
|
"svg",
|
|
11
12
|
{
|
|
12
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17,7 +18,7 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
17
18
|
...n,
|
|
18
19
|
children: /* @__PURE__ */ t("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" })
|
|
19
20
|
}
|
|
20
|
-
),
|
|
21
|
+
), it = (n) => /* @__PURE__ */ t(
|
|
21
22
|
"svg",
|
|
22
23
|
{
|
|
23
24
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -28,7 +29,7 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
28
29
|
...n,
|
|
29
30
|
children: /* @__PURE__ */ t("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" })
|
|
30
31
|
}
|
|
31
|
-
),
|
|
32
|
+
), lt = (n) => /* @__PURE__ */ t(
|
|
32
33
|
"svg",
|
|
33
34
|
{
|
|
34
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -39,7 +40,7 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
39
40
|
...n,
|
|
40
41
|
children: /* @__PURE__ */ t("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" })
|
|
41
42
|
}
|
|
42
|
-
),
|
|
43
|
+
), T = (n) => /* @__PURE__ */ t(
|
|
43
44
|
"svg",
|
|
44
45
|
{
|
|
45
46
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -50,17 +51,17 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
50
51
|
...n,
|
|
51
52
|
children: /* @__PURE__ */ t("path", { d: "M480-528 324-372q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q12-12 28-12t28 12l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-528Z" })
|
|
52
53
|
}
|
|
53
|
-
),
|
|
54
|
+
), u = G({
|
|
54
55
|
trigger: {
|
|
55
56
|
display: "flex",
|
|
56
57
|
width: "100%",
|
|
57
58
|
alignItems: "center",
|
|
58
59
|
justifyContent: "space-between",
|
|
59
|
-
...
|
|
60
|
-
...
|
|
60
|
+
...c.gap(d),
|
|
61
|
+
...c.borderRadius(Z),
|
|
61
62
|
backgroundColor: "transparent",
|
|
62
|
-
fontSize:
|
|
63
|
-
lineHeight:
|
|
63
|
+
fontSize: I,
|
|
64
|
+
lineHeight: v,
|
|
64
65
|
outlineStyle: "none",
|
|
65
66
|
whiteSpace: "normal",
|
|
66
67
|
textAlign: "left",
|
|
@@ -68,37 +69,46 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
68
69
|
transitionProperty: "color, box-shadow",
|
|
69
70
|
transitionDuration: "150ms",
|
|
70
71
|
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
72
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
73
|
+
transitionDuration: "0.01ms"
|
|
74
|
+
},
|
|
75
|
+
":focus-visible": {
|
|
76
|
+
outlineWidth: "2px",
|
|
77
|
+
outlineStyle: "solid",
|
|
78
|
+
outlineOffset: "2px",
|
|
79
|
+
outlineColor: R
|
|
80
|
+
},
|
|
71
81
|
":disabled": {
|
|
72
82
|
cursor: "not-allowed",
|
|
73
83
|
opacity: 0.5
|
|
74
84
|
},
|
|
75
85
|
"&[data-placeholder]": {
|
|
76
|
-
color:
|
|
86
|
+
color: at
|
|
77
87
|
},
|
|
78
88
|
"& svg": {
|
|
79
89
|
pointerEvents: "none",
|
|
80
90
|
flexShrink: 0
|
|
81
91
|
},
|
|
82
|
-
[`& [${
|
|
92
|
+
[`& [${i}="select-value"]`]: {
|
|
83
93
|
display: "flex",
|
|
84
94
|
alignItems: "center",
|
|
85
|
-
...
|
|
95
|
+
...c.gap(d),
|
|
86
96
|
overflow: "hidden",
|
|
87
97
|
textOverflow: "ellipsis",
|
|
88
98
|
whiteSpace: "nowrap"
|
|
89
99
|
},
|
|
90
100
|
// The open-state chevron rotation is declared HERE, on the trigger that carries the state
|
|
91
101
|
// attribute, reaching the icon by SLOT_ATTR.
|
|
92
|
-
[`&[data-state='open'] [${
|
|
102
|
+
[`&[data-state='open'] [${i}="select-icon"] svg`]: {
|
|
93
103
|
transform: "rotate(180deg)"
|
|
94
104
|
},
|
|
95
|
-
[`&[data-state='open'] [${
|
|
105
|
+
[`&[data-state='open'] [${i}="select-icon"]`]: {
|
|
96
106
|
transform: "rotate(180deg)"
|
|
97
107
|
},
|
|
98
|
-
[`&[data-open] [${
|
|
108
|
+
[`&[data-open] [${i}="select-icon"] svg`]: {
|
|
99
109
|
transform: "rotate(180deg)"
|
|
100
110
|
},
|
|
101
|
-
[`&[data-popup-open] [${
|
|
111
|
+
[`&[data-popup-open] [${i}="select-icon"] svg`]: {
|
|
102
112
|
transform: "rotate(180deg)"
|
|
103
113
|
}
|
|
104
114
|
},
|
|
@@ -111,10 +121,13 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
111
121
|
triggerIcon: {
|
|
112
122
|
width: "1.5rem",
|
|
113
123
|
height: "1.5rem",
|
|
114
|
-
color:
|
|
124
|
+
color: f,
|
|
115
125
|
transitionProperty: "transform",
|
|
116
126
|
transitionDuration: "150ms",
|
|
117
|
-
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
127
|
+
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
128
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
129
|
+
transitionDuration: "0.01ms"
|
|
130
|
+
}
|
|
118
131
|
},
|
|
119
132
|
triggerClear: {
|
|
120
133
|
position: "absolute",
|
|
@@ -127,39 +140,51 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
127
140
|
alignItems: "center",
|
|
128
141
|
justifyContent: "center",
|
|
129
142
|
backgroundColor: "transparent",
|
|
130
|
-
color:
|
|
143
|
+
color: q,
|
|
131
144
|
cursor: "pointer",
|
|
132
|
-
...
|
|
145
|
+
...c.borderRadius(S),
|
|
133
146
|
":hover": {
|
|
134
|
-
backgroundColor:
|
|
147
|
+
backgroundColor: rt
|
|
135
148
|
},
|
|
136
149
|
":focus-visible": {
|
|
137
|
-
outlineColor:
|
|
150
|
+
outlineColor: R,
|
|
138
151
|
outlineWidth: "2px",
|
|
139
|
-
outlineStyle: "solid"
|
|
152
|
+
outlineStyle: "solid",
|
|
153
|
+
outlineOffset: "2px"
|
|
140
154
|
}
|
|
141
155
|
},
|
|
142
156
|
triggerClearIcon: {
|
|
143
157
|
width: "1.25rem",
|
|
144
158
|
height: "1.25rem",
|
|
145
|
-
color:
|
|
159
|
+
color: q
|
|
146
160
|
},
|
|
147
161
|
popup: {
|
|
148
|
-
backgroundColor:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
162
|
+
backgroundColor: ot,
|
|
163
|
+
// DENSITY-SPEC.md §2.3 — popup padding/gap only; the slide-in animation offsets a few lines
|
|
164
|
+
// below deliberately keep the plain (non-density) `spacingElement2` value: they are not in the
|
|
165
|
+
// approved matrix, and re-using the same primitive for two unrelated purposes doesn't make the
|
|
166
|
+
// animation distance a density lever too.
|
|
167
|
+
...c.padding(H),
|
|
168
|
+
...c.gap(V),
|
|
169
|
+
color: b,
|
|
152
170
|
position: "relative",
|
|
153
171
|
zIndex: 50,
|
|
154
172
|
transformOrigin: "var(--radix-select-content-transform-origin)",
|
|
155
173
|
overflowX: "hidden",
|
|
156
174
|
overflowY: "auto",
|
|
157
|
-
...
|
|
158
|
-
...
|
|
175
|
+
...c.borderRadius(O),
|
|
176
|
+
...c.border("1px", "solid", "transparent"),
|
|
159
177
|
// v1 shadow-md
|
|
160
178
|
boxShadow: "0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a",
|
|
161
179
|
outlineStyle: "none",
|
|
162
180
|
maxHeight: "var(--radix-popper-available-height, 20rem)",
|
|
181
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
182
|
+
animationDuration: "0.01ms",
|
|
183
|
+
animationIterationCount: "1",
|
|
184
|
+
"&[data-state='open']": {
|
|
185
|
+
animationDuration: "0.01ms"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
163
188
|
"&[data-state='open']": {
|
|
164
189
|
animationName: {
|
|
165
190
|
from: { opacity: 0, transform: "scale(0.95)" },
|
|
@@ -172,7 +197,7 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
172
197
|
animationName: {
|
|
173
198
|
from: {
|
|
174
199
|
opacity: 0,
|
|
175
|
-
transform: `translateY(-${
|
|
200
|
+
transform: `translateY(-${d}) scale(0.95)`
|
|
176
201
|
},
|
|
177
202
|
to: { opacity: 1, transform: "translateY(0) scale(1)" }
|
|
178
203
|
}
|
|
@@ -181,7 +206,7 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
181
206
|
animationName: {
|
|
182
207
|
from: {
|
|
183
208
|
opacity: 0,
|
|
184
|
-
transform: `translateX(${
|
|
209
|
+
transform: `translateX(${d}) scale(0.95)`
|
|
185
210
|
},
|
|
186
211
|
to: { opacity: 1, transform: "translateX(0) scale(1)" }
|
|
187
212
|
}
|
|
@@ -190,7 +215,7 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
190
215
|
animationName: {
|
|
191
216
|
from: {
|
|
192
217
|
opacity: 0,
|
|
193
|
-
transform: `translateX(-${
|
|
218
|
+
transform: `translateX(-${d}) scale(0.95)`
|
|
194
219
|
},
|
|
195
220
|
to: { opacity: 1, transform: "translateX(0) scale(1)" }
|
|
196
221
|
}
|
|
@@ -199,7 +224,7 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
199
224
|
animationName: {
|
|
200
225
|
from: {
|
|
201
226
|
opacity: 0,
|
|
202
|
-
transform: `translateY(${
|
|
227
|
+
transform: `translateY(${d}) scale(0.95)`
|
|
203
228
|
},
|
|
204
229
|
to: { opacity: 1, transform: "translateY(0) scale(1)" }
|
|
205
230
|
}
|
|
@@ -216,8 +241,8 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
216
241
|
viewport: {
|
|
217
242
|
width: "100%",
|
|
218
243
|
minWidth: "var(--radix-select-trigger-width)",
|
|
219
|
-
scrollMarginTop:
|
|
220
|
-
scrollMarginBottom:
|
|
244
|
+
scrollMarginTop: g,
|
|
245
|
+
scrollMarginBottom: g
|
|
221
246
|
},
|
|
222
247
|
item: {
|
|
223
248
|
position: "relative",
|
|
@@ -226,24 +251,27 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
226
251
|
cursor: "default",
|
|
227
252
|
userSelect: "none",
|
|
228
253
|
alignItems: "center",
|
|
229
|
-
...
|
|
230
|
-
...
|
|
231
|
-
|
|
254
|
+
...c.gap(d),
|
|
255
|
+
...c.borderRadius(S),
|
|
256
|
+
// DENSITY-SPEC.md §2.3 — left padding and vertical padding are density levers; right padding
|
|
257
|
+
// stays a fixed 32px at every tier (reserves the check-indicator's space, not modeled in
|
|
258
|
+
// density.yaml).
|
|
259
|
+
paddingLeft: et,
|
|
232
260
|
paddingRight: "2rem",
|
|
233
|
-
paddingTop:
|
|
234
|
-
paddingBottom:
|
|
235
|
-
fontSize:
|
|
236
|
-
lineHeight:
|
|
237
|
-
color:
|
|
261
|
+
paddingTop: C,
|
|
262
|
+
paddingBottom: C,
|
|
263
|
+
fontSize: I,
|
|
264
|
+
lineHeight: v,
|
|
265
|
+
color: b,
|
|
238
266
|
outlineStyle: "none",
|
|
239
267
|
":not(:first-child)": {
|
|
240
268
|
marginTop: "0.125rem"
|
|
241
269
|
},
|
|
242
270
|
"&[data-highlighted]": {
|
|
243
|
-
backgroundColor:
|
|
271
|
+
backgroundColor: y
|
|
244
272
|
},
|
|
245
273
|
"&[data-state='checked']": {
|
|
246
|
-
backgroundColor:
|
|
274
|
+
backgroundColor: y
|
|
247
275
|
},
|
|
248
276
|
"&[data-disabled]": {
|
|
249
277
|
pointerEvents: "none",
|
|
@@ -254,12 +282,12 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
254
282
|
flexShrink: 0
|
|
255
283
|
},
|
|
256
284
|
"& svg:not([class*='text-'])": {
|
|
257
|
-
color:
|
|
285
|
+
color: f
|
|
258
286
|
}
|
|
259
287
|
},
|
|
260
288
|
itemIndicatorWrapper: {
|
|
261
289
|
position: "absolute",
|
|
262
|
-
right:
|
|
290
|
+
right: d,
|
|
263
291
|
display: "flex",
|
|
264
292
|
width: "1rem",
|
|
265
293
|
height: "1rem",
|
|
@@ -269,26 +297,26 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
269
297
|
itemIndicatorIcon: {
|
|
270
298
|
width: "1rem",
|
|
271
299
|
height: "1rem",
|
|
272
|
-
color:
|
|
300
|
+
color: f
|
|
273
301
|
},
|
|
274
302
|
label: {
|
|
275
|
-
paddingLeft:
|
|
276
|
-
paddingRight:
|
|
303
|
+
paddingLeft: d,
|
|
304
|
+
paddingRight: d,
|
|
277
305
|
paddingTop: "0.375rem",
|
|
278
306
|
paddingBottom: "0.375rem",
|
|
279
|
-
fontSize:
|
|
280
|
-
lineHeight:
|
|
281
|
-
fontWeight:
|
|
282
|
-
color:
|
|
307
|
+
fontSize: tt,
|
|
308
|
+
lineHeight: K,
|
|
309
|
+
fontWeight: J,
|
|
310
|
+
color: Q
|
|
283
311
|
},
|
|
284
312
|
separator: {
|
|
285
313
|
pointerEvents: "none",
|
|
286
|
-
marginLeft: `calc(-1 * ${
|
|
287
|
-
marginRight: `calc(-1 * ${
|
|
288
|
-
marginTop:
|
|
289
|
-
marginBottom:
|
|
314
|
+
marginLeft: `calc(-1 * ${g})`,
|
|
315
|
+
marginRight: `calc(-1 * ${g})`,
|
|
316
|
+
marginTop: g,
|
|
317
|
+
marginBottom: g,
|
|
290
318
|
height: "1px",
|
|
291
|
-
backgroundColor:
|
|
319
|
+
backgroundColor: _
|
|
292
320
|
},
|
|
293
321
|
scrollArrow: {
|
|
294
322
|
display: "flex",
|
|
@@ -297,10 +325,10 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
297
325
|
justifyContent: "center"
|
|
298
326
|
},
|
|
299
327
|
scrollArrowUp: {
|
|
300
|
-
paddingBottom:
|
|
328
|
+
paddingBottom: g
|
|
301
329
|
},
|
|
302
330
|
scrollArrowDown: {
|
|
303
|
-
paddingTop:
|
|
331
|
+
paddingTop: g
|
|
304
332
|
},
|
|
305
333
|
scrollArrowIcon: {
|
|
306
334
|
width: "1.5rem",
|
|
@@ -309,185 +337,186 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
309
337
|
scrollArrowDownIcon: {
|
|
310
338
|
transform: "rotate(180deg)"
|
|
311
339
|
}
|
|
312
|
-
}),
|
|
313
|
-
return /* @__PURE__ */ t(
|
|
314
|
-
}),
|
|
340
|
+
}), xt = s.forwardRef(function(o, e) {
|
|
341
|
+
return /* @__PURE__ */ t(A, { "data-slot": "select", ...o });
|
|
342
|
+
}), St = s.forwardRef(function({ className: o, ...e }, a) {
|
|
315
343
|
return /* @__PURE__ */ t(
|
|
316
|
-
|
|
344
|
+
$,
|
|
317
345
|
{
|
|
318
346
|
ref: a,
|
|
319
347
|
"data-slot": "select-group",
|
|
320
|
-
[
|
|
348
|
+
[i]: "select-group",
|
|
321
349
|
className: o,
|
|
322
350
|
...e
|
|
323
351
|
}
|
|
324
352
|
);
|
|
325
|
-
}),
|
|
353
|
+
}), yt = s.forwardRef(function({ className: o, ...e }, a) {
|
|
326
354
|
return /* @__PURE__ */ t(
|
|
327
|
-
|
|
355
|
+
M,
|
|
328
356
|
{
|
|
329
357
|
ref: a,
|
|
330
358
|
"data-slot": "select-value",
|
|
331
|
-
[
|
|
359
|
+
[i]: "select-value",
|
|
332
360
|
className: o,
|
|
333
361
|
...e
|
|
334
362
|
}
|
|
335
363
|
);
|
|
336
|
-
}),
|
|
337
|
-
const r =
|
|
364
|
+
}), bt = s.forwardRef(function({ className: o, children: e, ...a }, l) {
|
|
365
|
+
const r = u();
|
|
338
366
|
return /* @__PURE__ */ h(
|
|
339
|
-
|
|
367
|
+
U,
|
|
340
368
|
{
|
|
341
|
-
ref:
|
|
369
|
+
ref: l,
|
|
342
370
|
"data-slot": "select-trigger",
|
|
343
|
-
[
|
|
344
|
-
className:
|
|
371
|
+
[i]: "select-trigger",
|
|
372
|
+
className: p(r.trigger, o),
|
|
345
373
|
...a,
|
|
346
374
|
children: [
|
|
347
375
|
e,
|
|
348
376
|
/* @__PURE__ */ t(
|
|
349
|
-
|
|
377
|
+
Y,
|
|
350
378
|
{
|
|
351
379
|
asChild: !0,
|
|
352
380
|
"data-slot": "select-icon",
|
|
353
|
-
[
|
|
381
|
+
[i]: "select-icon",
|
|
354
382
|
className: r.triggerIconWrapper,
|
|
355
|
-
children: /* @__PURE__ */ t(
|
|
383
|
+
children: /* @__PURE__ */ t(lt, { className: r.triggerIcon })
|
|
356
384
|
}
|
|
357
385
|
)
|
|
358
386
|
]
|
|
359
387
|
}
|
|
360
388
|
);
|
|
361
|
-
}),
|
|
362
|
-
const r =
|
|
389
|
+
}), vt = s.forwardRef(function({ className: o, onClick: e, ...a }, l) {
|
|
390
|
+
const r = u();
|
|
363
391
|
return /* @__PURE__ */ t(
|
|
364
392
|
"span",
|
|
365
393
|
{
|
|
366
|
-
ref:
|
|
394
|
+
ref: l,
|
|
367
395
|
role: "button",
|
|
368
396
|
tabIndex: 0,
|
|
369
397
|
"data-slot": "select-trigger-clear",
|
|
370
|
-
[
|
|
371
|
-
className:
|
|
372
|
-
onPointerDown: (
|
|
373
|
-
|
|
398
|
+
[i]: "select-trigger-clear",
|
|
399
|
+
className: p(r.triggerClear, o),
|
|
400
|
+
onPointerDown: (m) => {
|
|
401
|
+
m.preventDefault(), m.stopPropagation();
|
|
374
402
|
},
|
|
375
|
-
onClick: (
|
|
376
|
-
|
|
403
|
+
onClick: (m) => {
|
|
404
|
+
m.preventDefault(), m.stopPropagation(), e == null || e(m);
|
|
377
405
|
},
|
|
378
406
|
...a,
|
|
379
|
-
children: /* @__PURE__ */ t(
|
|
407
|
+
children: /* @__PURE__ */ t(nt, { className: r.triggerClearIcon })
|
|
380
408
|
}
|
|
381
409
|
);
|
|
382
|
-
}),
|
|
410
|
+
}), It = s.forwardRef(function({
|
|
383
411
|
className: o,
|
|
384
412
|
children: e,
|
|
385
413
|
position: a = "popper",
|
|
386
|
-
align:
|
|
414
|
+
align: l = "center",
|
|
387
415
|
container: r,
|
|
388
|
-
...
|
|
389
|
-
},
|
|
390
|
-
const w =
|
|
391
|
-
return /* @__PURE__ */ t(
|
|
392
|
-
|
|
416
|
+
...m
|
|
417
|
+
}, N) {
|
|
418
|
+
const w = u(), x = F();
|
|
419
|
+
return /* @__PURE__ */ t(D, { container: r, children: /* @__PURE__ */ h(
|
|
420
|
+
B,
|
|
393
421
|
{
|
|
394
|
-
ref:
|
|
422
|
+
ref: N,
|
|
395
423
|
"data-slot": "select-content",
|
|
396
|
-
[
|
|
424
|
+
[i]: "select-content",
|
|
425
|
+
...x !== void 0 ? { "data-density": x } : {},
|
|
397
426
|
position: a,
|
|
398
|
-
align:
|
|
399
|
-
className:
|
|
400
|
-
...
|
|
427
|
+
align: l,
|
|
428
|
+
className: p(w.popup, o),
|
|
429
|
+
...m,
|
|
401
430
|
children: [
|
|
402
|
-
/* @__PURE__ */ t(
|
|
431
|
+
/* @__PURE__ */ t(st, {}),
|
|
403
432
|
/* @__PURE__ */ t(
|
|
404
|
-
|
|
433
|
+
L,
|
|
405
434
|
{
|
|
406
435
|
"data-slot": "select-viewport",
|
|
407
|
-
[
|
|
436
|
+
[i]: "select-viewport",
|
|
408
437
|
className: w.viewport,
|
|
409
438
|
children: e
|
|
410
439
|
}
|
|
411
440
|
),
|
|
412
|
-
/* @__PURE__ */ t(
|
|
441
|
+
/* @__PURE__ */ t(ct, {})
|
|
413
442
|
]
|
|
414
443
|
}
|
|
415
444
|
) });
|
|
416
|
-
}),
|
|
417
|
-
const
|
|
445
|
+
}), Ct = s.forwardRef(function({ className: o, ...e }, a) {
|
|
446
|
+
const l = u();
|
|
418
447
|
return /* @__PURE__ */ t(
|
|
419
|
-
|
|
448
|
+
z,
|
|
420
449
|
{
|
|
421
450
|
ref: a,
|
|
422
451
|
"data-slot": "select-label",
|
|
423
|
-
[
|
|
424
|
-
className:
|
|
452
|
+
[i]: "select-label",
|
|
453
|
+
className: p(l.label, o),
|
|
425
454
|
...e
|
|
426
455
|
}
|
|
427
456
|
);
|
|
428
|
-
}),
|
|
429
|
-
const r =
|
|
457
|
+
}), qt = s.forwardRef(function({ className: o, children: e, ...a }, l) {
|
|
458
|
+
const r = u();
|
|
430
459
|
return /* @__PURE__ */ h(
|
|
431
|
-
|
|
460
|
+
k,
|
|
432
461
|
{
|
|
433
|
-
ref:
|
|
462
|
+
ref: l,
|
|
434
463
|
"data-slot": "select-item",
|
|
435
|
-
[
|
|
436
|
-
className:
|
|
464
|
+
[i]: "select-item",
|
|
465
|
+
className: p(r.item, o),
|
|
437
466
|
...a,
|
|
438
467
|
children: [
|
|
439
|
-
/* @__PURE__ */ t("span", { className: r.itemIndicatorWrapper, children: /* @__PURE__ */ t(
|
|
440
|
-
/* @__PURE__ */ t(
|
|
468
|
+
/* @__PURE__ */ t("span", { className: r.itemIndicatorWrapper, children: /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(it, { className: r.itemIndicatorIcon }) }) }),
|
|
469
|
+
/* @__PURE__ */ t(W, { children: e })
|
|
441
470
|
]
|
|
442
471
|
}
|
|
443
472
|
);
|
|
444
|
-
}),
|
|
445
|
-
const
|
|
473
|
+
}), Rt = s.forwardRef(function({ className: o, ...e }, a) {
|
|
474
|
+
const l = u();
|
|
446
475
|
return /* @__PURE__ */ t(
|
|
447
|
-
|
|
476
|
+
E,
|
|
448
477
|
{
|
|
449
478
|
ref: a,
|
|
450
479
|
"data-slot": "select-separator",
|
|
451
|
-
[
|
|
452
|
-
className:
|
|
480
|
+
[i]: "select-separator",
|
|
481
|
+
className: p(l.separator, o),
|
|
453
482
|
...e
|
|
454
483
|
}
|
|
455
484
|
);
|
|
456
|
-
}),
|
|
457
|
-
const r =
|
|
485
|
+
}), st = s.forwardRef(function({ className: o, children: e, ...a }, l) {
|
|
486
|
+
const r = u();
|
|
458
487
|
return /* @__PURE__ */ t(
|
|
459
|
-
|
|
488
|
+
j,
|
|
460
489
|
{
|
|
461
|
-
ref:
|
|
490
|
+
ref: l,
|
|
462
491
|
"data-slot": "select-scroll-up-button",
|
|
463
|
-
[
|
|
464
|
-
className:
|
|
492
|
+
[i]: "select-scroll-up-button",
|
|
493
|
+
className: p(
|
|
465
494
|
r.scrollArrow,
|
|
466
495
|
r.scrollArrowUp,
|
|
467
496
|
o
|
|
468
497
|
),
|
|
469
498
|
...a,
|
|
470
|
-
children: e ?? /* @__PURE__ */ t(
|
|
499
|
+
children: e ?? /* @__PURE__ */ t(T, { className: r.scrollArrowIcon })
|
|
471
500
|
}
|
|
472
501
|
);
|
|
473
|
-
}),
|
|
474
|
-
const r =
|
|
502
|
+
}), ct = s.forwardRef(function({ className: o, children: e, ...a }, l) {
|
|
503
|
+
const r = u();
|
|
475
504
|
return /* @__PURE__ */ t(
|
|
476
|
-
|
|
505
|
+
X,
|
|
477
506
|
{
|
|
478
|
-
ref:
|
|
507
|
+
ref: l,
|
|
479
508
|
"data-slot": "select-scroll-down-button",
|
|
480
|
-
[
|
|
481
|
-
className:
|
|
509
|
+
[i]: "select-scroll-down-button",
|
|
510
|
+
className: p(
|
|
482
511
|
r.scrollArrow,
|
|
483
512
|
r.scrollArrowDown,
|
|
484
513
|
o
|
|
485
514
|
),
|
|
486
515
|
...a,
|
|
487
516
|
children: e ?? /* @__PURE__ */ t(
|
|
488
|
-
|
|
517
|
+
T,
|
|
489
518
|
{
|
|
490
|
-
className:
|
|
519
|
+
className: p(
|
|
491
520
|
r.scrollArrowIcon,
|
|
492
521
|
r.scrollArrowDownIcon
|
|
493
522
|
)
|
|
@@ -497,16 +526,16 @@ const tt = (n) => /* @__PURE__ */ t(
|
|
|
497
526
|
);
|
|
498
527
|
});
|
|
499
528
|
export {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
529
|
+
xt as Select,
|
|
530
|
+
It as SelectContent,
|
|
531
|
+
St as SelectGroup,
|
|
532
|
+
qt as SelectItem,
|
|
533
|
+
Ct as SelectLabel,
|
|
534
|
+
ct as SelectScrollDownButton,
|
|
535
|
+
st as SelectScrollUpButton,
|
|
536
|
+
Rt as SelectSeparator,
|
|
537
|
+
bt as SelectTrigger,
|
|
538
|
+
vt as SelectTriggerClear,
|
|
539
|
+
yt as SelectValue
|
|
511
540
|
};
|
|
512
541
|
//# sourceMappingURL=select.js.map
|