@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.
Files changed (79) hide show
  1. package/ADOPTING.md +416 -0
  2. package/README.md +32 -31
  3. package/dist/components/alert-dialog/alert-dialog.js +61 -59
  4. package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
  5. package/dist/components/avatar/avatar.js +6 -6
  6. package/dist/components/avatar/avatar.js.map +1 -1
  7. package/dist/components/badge/badge.js +47 -39
  8. package/dist/components/badge/badge.js.map +1 -1
  9. package/dist/components/button/button.js +71 -68
  10. package/dist/components/button/button.js.map +1 -1
  11. package/dist/components/checkbox/checkbox.js +23 -20
  12. package/dist/components/checkbox/checkbox.js.map +1 -1
  13. package/dist/components/command/command.js +50 -35
  14. package/dist/components/command/command.js.map +1 -1
  15. package/dist/components/data-table/data-table.js +89 -88
  16. package/dist/components/data-table/data-table.js.map +1 -1
  17. package/dist/components/density-provider/density-provider.js +28 -0
  18. package/dist/components/density-provider/density-provider.js.map +1 -0
  19. package/dist/components/dialog/dialog.js +122 -100
  20. package/dist/components/dialog/dialog.js.map +1 -1
  21. package/dist/components/drawer/drawer.js +61 -59
  22. package/dist/components/drawer/drawer.js.map +1 -1
  23. package/dist/components/dropdown-menu/dropdown-menu.js +88 -85
  24. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  25. package/dist/components/field/field-combobox.js +121 -106
  26. package/dist/components/field/field-combobox.js.map +1 -1
  27. package/dist/components/field/field.js +105 -104
  28. package/dist/components/field/field.js.map +1 -1
  29. package/dist/components/list/list.js +282 -308
  30. package/dist/components/list/list.js.map +1 -1
  31. package/dist/components/pill/pill.js +58 -56
  32. package/dist/components/pill/pill.js.map +1 -1
  33. package/dist/components/popover/popover.js +47 -38
  34. package/dist/components/popover/popover.js.map +1 -1
  35. package/dist/components/radio/radio.js +21 -18
  36. package/dist/components/radio/radio.js.map +1 -1
  37. package/dist/components/select/select.js +185 -156
  38. package/dist/components/select/select.js.map +1 -1
  39. package/dist/components/skeleton/skeleton.js +2 -2
  40. package/dist/components/skeleton/skeleton.js.map +1 -1
  41. package/dist/components/switch/switch.js +34 -29
  42. package/dist/components/switch/switch.js.map +1 -1
  43. package/dist/components/table/table-pagination.js +92 -90
  44. package/dist/components/table/table-pagination.js.map +1 -1
  45. package/dist/components/table/table.js +109 -121
  46. package/dist/components/table/table.js.map +1 -1
  47. package/dist/components/toggle/toggle.js +29 -29
  48. package/dist/components/toggle/toggle.js.map +1 -1
  49. package/dist/components/tooltip/tooltip.js +36 -34
  50. package/dist/components/tooltip/tooltip.js.map +1 -1
  51. package/dist/index.d.ts +600 -427
  52. package/dist/index.js +215 -212
  53. package/dist/index.js.map +1 -1
  54. package/dist/packages/volt-runtime/dist/sheet.js +27 -10
  55. package/dist/packages/volt-runtime/dist/sheet.js.map +1 -1
  56. package/dist/packages/volt-runtime/dist/styles/recipe.js +76 -0
  57. package/dist/packages/volt-runtime/dist/styles/recipe.js.map +1 -0
  58. package/dist/styles/document-context.js +12 -0
  59. package/dist/styles/document-context.js.map +1 -0
  60. package/dist/styles/make-styles.js +18 -10
  61. package/dist/styles/make-styles.js.map +1 -1
  62. package/dist/tokens/core.generated.js +1238 -1166
  63. package/dist/tokens/core.generated.js.map +1 -1
  64. package/dist/tokens/index.d.ts +442 -415
  65. package/dist/tokens/index.js +1105 -1078
  66. package/dist/tokens/index.js.map +1 -1
  67. package/dist/tokens/install.js +9 -5
  68. package/dist/tokens/install.js.map +1 -1
  69. package/dist/tokens/use-palette-tokens.js +20 -0
  70. package/dist/tokens/use-palette-tokens.js.map +1 -0
  71. package/dist/tokens.json +83 -2
  72. package/package.json +13 -5
  73. package/scripts/migration-diagnostics-core.mjs +859 -0
  74. package/scripts/migration-diagnostics.mjs +353 -0
  75. package/scripts/migration-sweep.mjs +179 -0
  76. package/AGENTS.md +0 -153
  77. package/AUTHORING.md +0 -292
  78. package/dist/packages/volt-runtime/dist/styles/make-styles.js +0 -22
  79. 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 c from "react";
3
- import { Root as R, Portal as T, Content as N, Viewport as A, Group as B, Item as D, ItemIndicator as L, ItemText as $, Label as k, ScrollDownButton as z, ScrollUpButton as W, Separator as X, Value as j, Trigger as E, Icon as M } from "../../vendor/@radix-ui/react-select/dist/index.js";
4
- import { shorthands as d } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/index.js";
5
- import { SLOT_ATTR as l } from "../../packages/volt-runtime/dist/renderer/contract.js";
6
- import { mergeClasses as m } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
7
- import { makeVoltStyles as P } from "../../styles/make-styles.js";
8
- import { radiusMd as x, spacingElement2 as s, radius2xl as U, spacingElement1 as p, radiusLg as G, semGraySoft as V, gray11 as Y, fontWeightSemibold as F, leadingXs as H, textXs as Z, grayA11 as u, accentA3 as S, grayA12 as y, leadingSm as b, textSm as v, spacingGroup1 as O, body as _, accentA11 as I, accentA8 as Q, semAccentSoft as J, grayA8 as K } from "../../tokens/index.js";
9
- const tt = (n) => /* @__PURE__ */ t(
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
- ), et = (n) => /* @__PURE__ */ t(
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
- ), ot = (n) => /* @__PURE__ */ t(
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
- ), C = (n) => /* @__PURE__ */ t(
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
- ), f = P({
54
+ ), u = G({
54
55
  trigger: {
55
56
  display: "flex",
56
57
  width: "100%",
57
58
  alignItems: "center",
58
59
  justifyContent: "space-between",
59
- ...d.gap(s),
60
- ...d.borderRadius(G),
60
+ ...c.gap(d),
61
+ ...c.borderRadius(Z),
61
62
  backgroundColor: "transparent",
62
- fontSize: v,
63
- lineHeight: b,
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: K
86
+ color: at
77
87
  },
78
88
  "& svg": {
79
89
  pointerEvents: "none",
80
90
  flexShrink: 0
81
91
  },
82
- [`& [${l}="select-value"]`]: {
92
+ [`& [${i}="select-value"]`]: {
83
93
  display: "flex",
84
94
  alignItems: "center",
85
- ...d.gap(s),
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'] [${l}="select-icon"] svg`]: {
102
+ [`&[data-state='open'] [${i}="select-icon"] svg`]: {
93
103
  transform: "rotate(180deg)"
94
104
  },
95
- [`&[data-state='open'] [${l}="select-icon"]`]: {
105
+ [`&[data-state='open'] [${i}="select-icon"]`]: {
96
106
  transform: "rotate(180deg)"
97
107
  },
98
- [`&[data-open] [${l}="select-icon"] svg`]: {
108
+ [`&[data-open] [${i}="select-icon"] svg`]: {
99
109
  transform: "rotate(180deg)"
100
110
  },
101
- [`&[data-popup-open] [${l}="select-icon"] svg`]: {
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: u,
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: I,
143
+ color: q,
131
144
  cursor: "pointer",
132
- ...d.borderRadius(x),
145
+ ...c.borderRadius(S),
133
146
  ":hover": {
134
- backgroundColor: J
147
+ backgroundColor: rt
135
148
  },
136
149
  ":focus-visible": {
137
- outlineColor: Q,
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: I
159
+ color: q
146
160
  },
147
161
  popup: {
148
- backgroundColor: _,
149
- ...d.padding(s),
150
- ...d.gap(p),
151
- color: y,
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
- ...d.borderRadius(U),
158
- ...d.border("1px", "solid", "transparent"),
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(-${s}) scale(0.95)`
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(${s}) scale(0.95)`
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(-${s}) scale(0.95)`
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(${s}) scale(0.95)`
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: p,
220
- scrollMarginBottom: p
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
- ...d.gap(s),
230
- ...d.borderRadius(x),
231
- paddingLeft: O,
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: "0.375rem",
234
- paddingBottom: "0.375rem",
235
- fontSize: v,
236
- lineHeight: b,
237
- color: y,
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: S
271
+ backgroundColor: y
244
272
  },
245
273
  "&[data-state='checked']": {
246
- backgroundColor: S
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: u
285
+ color: f
258
286
  }
259
287
  },
260
288
  itemIndicatorWrapper: {
261
289
  position: "absolute",
262
- right: s,
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: u
300
+ color: f
273
301
  },
274
302
  label: {
275
- paddingLeft: s,
276
- paddingRight: s,
303
+ paddingLeft: d,
304
+ paddingRight: d,
277
305
  paddingTop: "0.375rem",
278
306
  paddingBottom: "0.375rem",
279
- fontSize: Z,
280
- lineHeight: H,
281
- fontWeight: F,
282
- color: Y
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 * ${p})`,
287
- marginRight: `calc(-1 * ${p})`,
288
- marginTop: p,
289
- marginBottom: p,
314
+ marginLeft: `calc(-1 * ${g})`,
315
+ marginRight: `calc(-1 * ${g})`,
316
+ marginTop: g,
317
+ marginBottom: g,
290
318
  height: "1px",
291
- backgroundColor: V
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: p
328
+ paddingBottom: g
301
329
  },
302
330
  scrollArrowDown: {
303
- paddingTop: p
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
- }), mt = c.forwardRef(function(o, e) {
313
- return /* @__PURE__ */ t(R, { "data-slot": "select", ...o });
314
- }), gt = c.forwardRef(function({ className: o, ...e }, a) {
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
- B,
344
+ $,
317
345
  {
318
346
  ref: a,
319
347
  "data-slot": "select-group",
320
- [l]: "select-group",
348
+ [i]: "select-group",
321
349
  className: o,
322
350
  ...e
323
351
  }
324
352
  );
325
- }), ft = c.forwardRef(function({ className: o, ...e }, a) {
353
+ }), yt = s.forwardRef(function({ className: o, ...e }, a) {
326
354
  return /* @__PURE__ */ t(
327
- j,
355
+ M,
328
356
  {
329
357
  ref: a,
330
358
  "data-slot": "select-value",
331
- [l]: "select-value",
359
+ [i]: "select-value",
332
360
  className: o,
333
361
  ...e
334
362
  }
335
363
  );
336
- }), ut = c.forwardRef(function({ className: o, children: e, ...a }, i) {
337
- const r = f();
364
+ }), bt = s.forwardRef(function({ className: o, children: e, ...a }, l) {
365
+ const r = u();
338
366
  return /* @__PURE__ */ h(
339
- E,
367
+ U,
340
368
  {
341
- ref: i,
369
+ ref: l,
342
370
  "data-slot": "select-trigger",
343
- [l]: "select-trigger",
344
- className: m(r.trigger, o),
371
+ [i]: "select-trigger",
372
+ className: p(r.trigger, o),
345
373
  ...a,
346
374
  children: [
347
375
  e,
348
376
  /* @__PURE__ */ t(
349
- M,
377
+ Y,
350
378
  {
351
379
  asChild: !0,
352
380
  "data-slot": "select-icon",
353
- [l]: "select-icon",
381
+ [i]: "select-icon",
354
382
  className: r.triggerIconWrapper,
355
- children: /* @__PURE__ */ t(ot, { className: r.triggerIcon })
383
+ children: /* @__PURE__ */ t(lt, { className: r.triggerIcon })
356
384
  }
357
385
  )
358
386
  ]
359
387
  }
360
388
  );
361
- }), ht = c.forwardRef(function({ className: o, onClick: e, ...a }, i) {
362
- const r = f();
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: i,
394
+ ref: l,
367
395
  role: "button",
368
396
  tabIndex: 0,
369
397
  "data-slot": "select-trigger-clear",
370
- [l]: "select-trigger-clear",
371
- className: m(r.triggerClear, o),
372
- onPointerDown: (g) => {
373
- g.preventDefault(), g.stopPropagation();
398
+ [i]: "select-trigger-clear",
399
+ className: p(r.triggerClear, o),
400
+ onPointerDown: (m) => {
401
+ m.preventDefault(), m.stopPropagation();
374
402
  },
375
- onClick: (g) => {
376
- g.preventDefault(), g.stopPropagation(), e == null || e(g);
403
+ onClick: (m) => {
404
+ m.preventDefault(), m.stopPropagation(), e == null || e(m);
377
405
  },
378
406
  ...a,
379
- children: /* @__PURE__ */ t(tt, { className: r.triggerClearIcon })
407
+ children: /* @__PURE__ */ t(nt, { className: r.triggerClearIcon })
380
408
  }
381
409
  );
382
- }), wt = c.forwardRef(function({
410
+ }), It = s.forwardRef(function({
383
411
  className: o,
384
412
  children: e,
385
413
  position: a = "popper",
386
- align: i = "center",
414
+ align: l = "center",
387
415
  container: r,
388
- ...g
389
- }, q) {
390
- const w = f();
391
- return /* @__PURE__ */ t(T, { container: r, children: /* @__PURE__ */ h(
392
- N,
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: q,
422
+ ref: N,
395
423
  "data-slot": "select-content",
396
- [l]: "select-content",
424
+ [i]: "select-content",
425
+ ...x !== void 0 ? { "data-density": x } : {},
397
426
  position: a,
398
- align: i,
399
- className: m(w.popup, o),
400
- ...g,
427
+ align: l,
428
+ className: p(w.popup, o),
429
+ ...m,
401
430
  children: [
402
- /* @__PURE__ */ t(rt, {}),
431
+ /* @__PURE__ */ t(st, {}),
403
432
  /* @__PURE__ */ t(
404
- A,
433
+ L,
405
434
  {
406
435
  "data-slot": "select-viewport",
407
- [l]: "select-viewport",
436
+ [i]: "select-viewport",
408
437
  className: w.viewport,
409
438
  children: e
410
439
  }
411
440
  ),
412
- /* @__PURE__ */ t(at, {})
441
+ /* @__PURE__ */ t(ct, {})
413
442
  ]
414
443
  }
415
444
  ) });
416
- }), xt = c.forwardRef(function({ className: o, ...e }, a) {
417
- const i = f();
445
+ }), Ct = s.forwardRef(function({ className: o, ...e }, a) {
446
+ const l = u();
418
447
  return /* @__PURE__ */ t(
419
- k,
448
+ z,
420
449
  {
421
450
  ref: a,
422
451
  "data-slot": "select-label",
423
- [l]: "select-label",
424
- className: m(i.label, o),
452
+ [i]: "select-label",
453
+ className: p(l.label, o),
425
454
  ...e
426
455
  }
427
456
  );
428
- }), St = c.forwardRef(function({ className: o, children: e, ...a }, i) {
429
- const r = f();
457
+ }), qt = s.forwardRef(function({ className: o, children: e, ...a }, l) {
458
+ const r = u();
430
459
  return /* @__PURE__ */ h(
431
- D,
460
+ k,
432
461
  {
433
- ref: i,
462
+ ref: l,
434
463
  "data-slot": "select-item",
435
- [l]: "select-item",
436
- className: m(r.item, o),
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(L, { children: /* @__PURE__ */ t(et, { className: r.itemIndicatorIcon }) }) }),
440
- /* @__PURE__ */ t($, { children: e })
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
- }), yt = c.forwardRef(function({ className: o, ...e }, a) {
445
- const i = f();
473
+ }), Rt = s.forwardRef(function({ className: o, ...e }, a) {
474
+ const l = u();
446
475
  return /* @__PURE__ */ t(
447
- X,
476
+ E,
448
477
  {
449
478
  ref: a,
450
479
  "data-slot": "select-separator",
451
- [l]: "select-separator",
452
- className: m(i.separator, o),
480
+ [i]: "select-separator",
481
+ className: p(l.separator, o),
453
482
  ...e
454
483
  }
455
484
  );
456
- }), rt = c.forwardRef(function({ className: o, children: e, ...a }, i) {
457
- const r = f();
485
+ }), st = s.forwardRef(function({ className: o, children: e, ...a }, l) {
486
+ const r = u();
458
487
  return /* @__PURE__ */ t(
459
- W,
488
+ j,
460
489
  {
461
- ref: i,
490
+ ref: l,
462
491
  "data-slot": "select-scroll-up-button",
463
- [l]: "select-scroll-up-button",
464
- className: m(
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(C, { className: r.scrollArrowIcon })
499
+ children: e ?? /* @__PURE__ */ t(T, { className: r.scrollArrowIcon })
471
500
  }
472
501
  );
473
- }), at = c.forwardRef(function({ className: o, children: e, ...a }, i) {
474
- const r = f();
502
+ }), ct = s.forwardRef(function({ className: o, children: e, ...a }, l) {
503
+ const r = u();
475
504
  return /* @__PURE__ */ t(
476
- z,
505
+ X,
477
506
  {
478
- ref: i,
507
+ ref: l,
479
508
  "data-slot": "select-scroll-down-button",
480
- [l]: "select-scroll-down-button",
481
- className: m(
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
- C,
517
+ T,
489
518
  {
490
- className: m(
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
- mt as Select,
501
- wt as SelectContent,
502
- gt as SelectGroup,
503
- St as SelectItem,
504
- xt as SelectLabel,
505
- at as SelectScrollDownButton,
506
- rt as SelectScrollUpButton,
507
- yt as SelectSeparator,
508
- ut as SelectTrigger,
509
- ht as SelectTriggerClear,
510
- ft as SelectValue
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