@epilot/zenith-react 0.2.0-next.0 → 0.2.0-next.3
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/dist/components/accordion/accordion.js +57 -48
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +120 -92
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar-group.js +38 -35
- package/dist/components/avatar/avatar-group.js.map +1 -1
- package/dist/components/avatar/avatar.js +78 -71
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +60 -55
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +99 -54
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +87 -77
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +36 -32
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/callout/callout.js +105 -98
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/card/card.js +62 -52
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +22 -19
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/code-block/code-block.js +135 -123
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-editor/code-editor.js +276 -260
- package/dist/components/code-editor/code-editor.js.map +1 -1
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +62 -56
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
- package/dist/components/command/command.js +116 -105
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/data-table/data-table-body.js +38 -34
- package/dist/components/data-table/data-table-body.js.map +1 -1
- package/dist/components/data-table/data-table-column-header.js +30 -26
- package/dist/components/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/data-table/data-table-column-order.js +79 -73
- package/dist/components/data-table/data-table-column-order.js.map +1 -1
- package/dist/components/data-table/data-table-column-visibility.js +25 -22
- package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
- package/dist/components/data-table/data-table-content.js +47 -44
- package/dist/components/data-table/data-table-content.js.map +1 -1
- package/dist/components/data-table/data-table-error.js +36 -32
- package/dist/components/data-table/data-table-error.js.map +1 -1
- package/dist/components/data-table/data-table-footer.js +10 -8
- package/dist/components/data-table/data-table-footer.js.map +1 -1
- package/dist/components/data-table/data-table-header-draggable.js +40 -36
- package/dist/components/data-table/data-table-header-draggable.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +113 -99
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-loading.js +21 -18
- package/dist/components/data-table/data-table-loading.js.map +1 -1
- package/dist/components/data-table/data-table-resize-handle.js +13 -11
- package/dist/components/data-table/data-table-resize-handle.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +71 -59
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/data-table/data-table-toolbar.js +9 -7
- package/dist/components/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/data-table/data-table.js +48 -46
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +173 -164
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-range-picker/range-calendar.js +36 -34
- package/dist/components/date-range-picker/range-calendar.js.map +1 -1
- package/dist/components/date-time-picker/calendar.js +290 -272
- package/dist/components/date-time-picker/calendar.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +22 -20
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-panel.js +126 -120
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +42 -40
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/date-time-picker/time-picker.js +95 -87
- package/dist/components/date-time-picker/time-picker.js.map +1 -1
- package/dist/components/dialog/dialog.js +115 -95
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +144 -109
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +141 -112
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +196 -176
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field.js +137 -126
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/list/list.js +237 -219
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +129 -116
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +55 -51
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +53 -36
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio.js +38 -34
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +38 -35
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +166 -151
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +93 -85
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +149 -128
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js +19 -16
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +34 -30
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/spinner/spinner.js +22 -17
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/surface/surface.js +25 -22
- package/dist/components/surface/surface.js.map +1 -1
- package/dist/components/switch/switch.js +66 -57
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +139 -129
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/table/table.js +104 -90
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.js +206 -128
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/toast/toast.js +112 -100
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle.js +32 -30
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +59 -46
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/lib/clear-button.js +18 -17
- package/dist/lib/clear-button.js.map +1 -1
- package/dist/styles/host-reset.js +47 -0
- package/dist/styles/host-reset.js.map +1 -0
- package/dist/styles/overlay-layer.js +5 -0
- package/dist/styles/overlay-layer.js.map +1 -0
- package/dist/tokens.json +1 -1
- package/package.json +8 -6
- package/scripts/migration-diagnostics.mjs +42 -7
- package/scripts/migration-sweep.mjs +9 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { Root as
|
|
4
|
-
import { SLOT_ATTR as i, mergeClasses as
|
|
5
|
-
import { useAppearanceAttributes as
|
|
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 {
|
|
9
|
-
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
...
|
|
60
|
-
...
|
|
62
|
+
...d.gap(p),
|
|
63
|
+
...d.borderRadius(ct),
|
|
61
64
|
backgroundColor: "transparent",
|
|
62
|
-
fontSize:
|
|
63
|
-
lineHeight:
|
|
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:
|
|
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
|
-
...
|
|
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:
|
|
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:
|
|
147
|
+
color: R,
|
|
143
148
|
cursor: "pointer",
|
|
144
|
-
...
|
|
149
|
+
...d.borderRadius(N),
|
|
145
150
|
":hover": {
|
|
146
|
-
backgroundColor:
|
|
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:
|
|
164
|
+
color: R
|
|
159
165
|
},
|
|
160
166
|
popup: {
|
|
161
|
-
|
|
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
|
-
...
|
|
167
|
-
...
|
|
168
|
-
color:
|
|
173
|
+
...d.padding(st),
|
|
174
|
+
...d.gap(lt),
|
|
175
|
+
color: b,
|
|
169
176
|
position: "relative",
|
|
170
|
-
zIndex:
|
|
177
|
+
zIndex: _,
|
|
171
178
|
transformOrigin: "var(--radix-select-content-transform-origin)",
|
|
172
179
|
overflowX: "hidden",
|
|
173
180
|
overflowY: "auto",
|
|
174
|
-
...
|
|
175
|
-
...
|
|
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(-${
|
|
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(${
|
|
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(-${
|
|
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(${
|
|
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:
|
|
244
|
-
scrollMarginBottom:
|
|
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
|
-
...
|
|
254
|
-
...
|
|
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:
|
|
270
|
+
paddingLeft: ot,
|
|
259
271
|
paddingRight: "2rem",
|
|
260
|
-
paddingTop:
|
|
261
|
-
paddingBottom:
|
|
262
|
-
fontSize:
|
|
263
|
-
lineHeight:
|
|
264
|
-
color:
|
|
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:
|
|
282
|
+
backgroundColor: y
|
|
271
283
|
},
|
|
272
284
|
"&[data-state='checked']": {
|
|
273
|
-
backgroundColor:
|
|
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:
|
|
296
|
+
color: h
|
|
285
297
|
}
|
|
286
298
|
},
|
|
287
299
|
itemIndicatorWrapper: {
|
|
300
|
+
...s,
|
|
288
301
|
position: "absolute",
|
|
289
|
-
right:
|
|
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:
|
|
315
|
+
color: h
|
|
300
316
|
},
|
|
301
317
|
label: {
|
|
302
|
-
|
|
303
|
-
|
|
318
|
+
...s,
|
|
319
|
+
paddingLeft: p,
|
|
320
|
+
paddingRight: p,
|
|
304
321
|
paddingTop: "0.375rem",
|
|
305
322
|
paddingBottom: "0.375rem",
|
|
306
|
-
fontSize:
|
|
307
|
-
lineHeight:
|
|
308
|
-
fontWeight:
|
|
309
|
-
color:
|
|
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 * ${
|
|
314
|
-
marginRight: `calc(-1 * ${
|
|
315
|
-
marginTop:
|
|
316
|
-
marginBottom:
|
|
331
|
+
marginLeft: `calc(-1 * ${u})`,
|
|
332
|
+
marginRight: `calc(-1 * ${u})`,
|
|
333
|
+
marginTop: u,
|
|
334
|
+
marginBottom: u,
|
|
317
335
|
height: "1px",
|
|
318
|
-
backgroundColor:
|
|
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
|
-
|
|
345
|
+
...s,
|
|
346
|
+
paddingBottom: u
|
|
328
347
|
},
|
|
329
348
|
scrollArrowDown: {
|
|
330
|
-
|
|
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
|
-
}),
|
|
340
|
-
return /* @__PURE__ */ t(
|
|
341
|
-
}),
|
|
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
|
-
|
|
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
|
-
}),
|
|
373
|
+
}), qt = c.forwardRef(function({ className: o, ...e }, a) {
|
|
353
374
|
return /* @__PURE__ */ t(
|
|
354
|
-
|
|
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
|
-
}),
|
|
364
|
-
const r =
|
|
365
|
-
return /* @__PURE__ */
|
|
366
|
-
|
|
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:
|
|
392
|
+
className: m(r.trigger, o),
|
|
372
393
|
...a,
|
|
373
394
|
children: [
|
|
374
395
|
e,
|
|
375
396
|
/* @__PURE__ */ t(
|
|
376
|
-
|
|
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(
|
|
403
|
+
children: /* @__PURE__ */ t(mt, { className: r.triggerIcon })
|
|
383
404
|
}
|
|
384
405
|
)
|
|
385
406
|
]
|
|
386
407
|
}
|
|
387
408
|
);
|
|
388
|
-
}),
|
|
389
|
-
const r =
|
|
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:
|
|
399
|
-
onPointerDown: (
|
|
400
|
-
|
|
419
|
+
className: m(r.triggerClear, o),
|
|
420
|
+
onPointerDown: (g) => {
|
|
421
|
+
g.preventDefault(), g.stopPropagation();
|
|
401
422
|
},
|
|
402
|
-
onClick: (
|
|
403
|
-
|
|
423
|
+
onClick: (g) => {
|
|
424
|
+
g.preventDefault(), g.stopPropagation(), e == null || e(g);
|
|
404
425
|
},
|
|
405
426
|
...a,
|
|
406
|
-
children: /* @__PURE__ */ t(
|
|
427
|
+
children: /* @__PURE__ */ t(dt, { className: r.triggerClearIcon })
|
|
407
428
|
}
|
|
408
429
|
);
|
|
409
|
-
}),
|
|
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
|
-
...
|
|
416
|
-
},
|
|
417
|
-
const
|
|
418
|
-
return /* @__PURE__ */ t(B, { container: r, children: /* @__PURE__ */
|
|
419
|
-
|
|
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:
|
|
442
|
+
ref: A,
|
|
422
443
|
"data-slot": "select-content",
|
|
423
444
|
[i]: "select-content",
|
|
424
|
-
...
|
|
425
|
-
...
|
|
445
|
+
...S !== void 0 ? { "data-density": S } : {},
|
|
446
|
+
...D,
|
|
426
447
|
position: a,
|
|
427
448
|
align: l,
|
|
428
|
-
className:
|
|
429
|
-
...
|
|
449
|
+
className: m(x.popup, o),
|
|
450
|
+
...g,
|
|
430
451
|
children: [
|
|
431
|
-
/* @__PURE__ */ t(
|
|
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:
|
|
458
|
+
className: x.viewport,
|
|
438
459
|
children: e
|
|
439
460
|
}
|
|
440
461
|
),
|
|
441
|
-
/* @__PURE__ */ t(
|
|
462
|
+
/* @__PURE__ */ t(ut, {})
|
|
442
463
|
]
|
|
443
464
|
}
|
|
444
465
|
) });
|
|
445
|
-
}),
|
|
446
|
-
const l =
|
|
466
|
+
}), Dt = c.forwardRef(function({ className: o, ...e }, a) {
|
|
467
|
+
const l = f();
|
|
447
468
|
return /* @__PURE__ */ t(
|
|
448
|
-
|
|
469
|
+
E,
|
|
449
470
|
{
|
|
450
471
|
ref: a,
|
|
451
472
|
"data-slot": "select-label",
|
|
452
473
|
[i]: "select-label",
|
|
453
|
-
className:
|
|
474
|
+
className: m(l.label, o),
|
|
454
475
|
...e
|
|
455
476
|
}
|
|
456
477
|
);
|
|
457
|
-
}),
|
|
458
|
-
const r =
|
|
459
|
-
return /* @__PURE__ */
|
|
460
|
-
|
|
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:
|
|
486
|
+
className: m(r.item, o),
|
|
466
487
|
...a,
|
|
467
488
|
children: [
|
|
468
|
-
/* @__PURE__ */ t("span", { className: r.itemIndicatorWrapper, children: /* @__PURE__ */ t(
|
|
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
|
-
}),
|
|
474
|
-
const l =
|
|
494
|
+
}), Bt = c.forwardRef(function({ className: o, ...e }, a) {
|
|
495
|
+
const l = f();
|
|
475
496
|
return /* @__PURE__ */ t(
|
|
476
|
-
|
|
497
|
+
Y,
|
|
477
498
|
{
|
|
478
499
|
ref: a,
|
|
479
500
|
"data-slot": "select-separator",
|
|
480
501
|
[i]: "select-separator",
|
|
481
|
-
className:
|
|
502
|
+
className: m(l.separator, o),
|
|
482
503
|
...e
|
|
483
504
|
}
|
|
484
505
|
);
|
|
485
|
-
}),
|
|
486
|
-
const r =
|
|
506
|
+
}), gt = c.forwardRef(function({ className: o, children: e, ...a }, l) {
|
|
507
|
+
const r = f();
|
|
487
508
|
return /* @__PURE__ */ t(
|
|
488
|
-
|
|
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:
|
|
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
|
-
}),
|
|
503
|
-
const r =
|
|
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:
|
|
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:
|
|
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
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
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
|