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