@epilot/zenith-react 0.1.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.
- package/README.md +34 -0
- 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 -91
- 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 +113 -104
- 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-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 +47 -44
- 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 +212 -193
- 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 +127 -112
- 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 +91 -86
- 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 +125 -103
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +151 -114
- 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 +237 -195
- 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 +212 -79
- 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 +22 -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 -7
- package/scripts/migration-diagnostics.mjs +42 -7
- package/scripts/migration-sweep.mjs +9 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { SLOT_ATTR as
|
|
4
|
-
import { makeZenithStyles as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
1
|
+
import { jsx as n, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { SLOT_ATTR as u, mergeClasses as c, shorthands as m } from "@epilot/zenith-runtime/v1";
|
|
4
|
+
import { makeZenithStyles as L } from "../../styles/make-styles.js";
|
|
5
|
+
import { boxModel as l, nativeControl as F } from "../../styles/host-reset.js";
|
|
6
|
+
import { grayA8 as N, focusRing as v, accentA11 as q, spacingElement2 as p, spacingGroup1 as f, grayA11 as h, spacingElement1 as R, graySoft as P, leadingXs as T, textXs as V, fontWeightSemibold as D, leadingSm as C, textSm as w, grayA12 as g, radiusMd as B, radiusLg as G } from "../../tokens/index.js";
|
|
7
|
+
import { Command as k, CommandEmpty as A, CommandGroup as E, CommandInput as j, CommandItem as H, CommandList as W, CommandLoading as z, CommandSeparator as M } from "../command/command.js";
|
|
8
|
+
import { Label as O } from "../label/label.js";
|
|
9
|
+
import { Popover as Z, PopoverPortal as X, PopoverContent as _, PopoverTrigger as $ } from "../popover/popover.js";
|
|
10
|
+
import { useOptionalFieldContext as J } from "./field.js";
|
|
11
|
+
const K = (a) => /* @__PURE__ */ n(
|
|
11
12
|
"svg",
|
|
12
13
|
{
|
|
13
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -18,7 +19,7 @@ const $ = (a) => /* @__PURE__ */ n(
|
|
|
18
19
|
...a,
|
|
19
20
|
children: /* @__PURE__ */ n("path", { d: "m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z" })
|
|
20
21
|
}
|
|
21
|
-
),
|
|
22
|
+
), Q = (a) => /* @__PURE__ */ n(
|
|
22
23
|
"svg",
|
|
23
24
|
{
|
|
24
25
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -29,7 +30,7 @@ const $ = (a) => /* @__PURE__ */ n(
|
|
|
29
30
|
...a,
|
|
30
31
|
children: /* @__PURE__ */ n("path", { d: "M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z" })
|
|
31
32
|
}
|
|
32
|
-
),
|
|
33
|
+
), S = (a) => /* @__PURE__ */ n(
|
|
33
34
|
"svg",
|
|
34
35
|
{
|
|
35
36
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -40,26 +41,27 @@ const $ = (a) => /* @__PURE__ */ n(
|
|
|
40
41
|
...a,
|
|
41
42
|
children: /* @__PURE__ */ n("path", { d: "M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z" })
|
|
42
43
|
}
|
|
43
|
-
),
|
|
44
|
+
), d = L({
|
|
44
45
|
trigger: {
|
|
46
|
+
...F,
|
|
45
47
|
width: "100%",
|
|
46
48
|
display: "flex",
|
|
47
49
|
alignItems: "center",
|
|
48
50
|
justifyContent: "space-between",
|
|
49
|
-
...
|
|
50
|
-
...
|
|
51
|
+
...m.gap(p),
|
|
52
|
+
...m.borderRadius(G),
|
|
51
53
|
backgroundColor: "transparent",
|
|
52
|
-
fontSize:
|
|
53
|
-
lineHeight:
|
|
54
|
+
fontSize: w,
|
|
55
|
+
lineHeight: C,
|
|
54
56
|
whiteSpace: "nowrap",
|
|
55
57
|
outlineStyle: "none",
|
|
56
|
-
...
|
|
57
|
-
...
|
|
58
|
+
...m.border("0"),
|
|
59
|
+
...m.padding(0),
|
|
58
60
|
":focus-visible": {
|
|
59
61
|
outlineWidth: "2px",
|
|
60
62
|
outlineStyle: "solid",
|
|
61
63
|
outlineOffset: "2px",
|
|
62
|
-
outlineColor:
|
|
64
|
+
outlineColor: v
|
|
63
65
|
},
|
|
64
66
|
":disabled": {
|
|
65
67
|
cursor: "not-allowed",
|
|
@@ -67,6 +69,7 @@ const $ = (a) => /* @__PURE__ */ n(
|
|
|
67
69
|
}
|
|
68
70
|
},
|
|
69
71
|
triggerChevron: {
|
|
72
|
+
...l,
|
|
70
73
|
width: "1.5rem",
|
|
71
74
|
height: "1.5rem",
|
|
72
75
|
flexShrink: 0,
|
|
@@ -75,56 +78,63 @@ const $ = (a) => /* @__PURE__ */ n(
|
|
|
75
78
|
"@media (prefers-reduced-motion: reduce)": {
|
|
76
79
|
transitionDuration: "0.01ms"
|
|
77
80
|
},
|
|
78
|
-
color:
|
|
81
|
+
color: h,
|
|
79
82
|
"&[data-popup-open], &[data-open]": {
|
|
80
83
|
transform: "rotate(180deg)"
|
|
81
84
|
}
|
|
82
85
|
},
|
|
83
86
|
value: {
|
|
84
|
-
|
|
87
|
+
...l,
|
|
88
|
+
color: g,
|
|
85
89
|
width: "100%",
|
|
86
90
|
textAlign: "left",
|
|
87
91
|
flexWrap: "wrap",
|
|
88
92
|
display: "flex",
|
|
89
|
-
...
|
|
93
|
+
...m.gap(p),
|
|
90
94
|
position: "relative",
|
|
91
95
|
whiteSpace: "normal",
|
|
92
96
|
marginRight: "1.25rem"
|
|
93
97
|
},
|
|
94
98
|
content: {
|
|
95
|
-
...
|
|
99
|
+
...l,
|
|
100
|
+
...m.padding(0)
|
|
96
101
|
},
|
|
97
102
|
command: {
|
|
103
|
+
...l,
|
|
98
104
|
width: "100%",
|
|
99
|
-
...
|
|
105
|
+
...m.borderRadius(0)
|
|
100
106
|
},
|
|
101
107
|
input: {
|
|
108
|
+
...F,
|
|
102
109
|
width: "100%"
|
|
103
110
|
},
|
|
104
111
|
list: {
|
|
105
|
-
...
|
|
112
|
+
...l,
|
|
113
|
+
...m.padding(p)
|
|
106
114
|
},
|
|
107
115
|
item: {
|
|
108
|
-
|
|
116
|
+
...l,
|
|
117
|
+
paddingLeft: f,
|
|
109
118
|
paddingRight: "2rem",
|
|
110
119
|
paddingTop: "0.375rem",
|
|
111
120
|
paddingBottom: "0.375rem",
|
|
112
|
-
color:
|
|
121
|
+
color: g,
|
|
113
122
|
position: "relative",
|
|
114
123
|
display: "flex",
|
|
115
124
|
width: "100%",
|
|
116
125
|
cursor: "default",
|
|
117
126
|
alignItems: "center",
|
|
118
|
-
...
|
|
119
|
-
...
|
|
120
|
-
fontSize:
|
|
121
|
-
lineHeight:
|
|
127
|
+
...m.gap(p),
|
|
128
|
+
...m.borderRadius(B),
|
|
129
|
+
fontSize: w,
|
|
130
|
+
lineHeight: C,
|
|
122
131
|
outlineStyle: "none",
|
|
123
132
|
userSelect: "none"
|
|
124
133
|
},
|
|
125
134
|
itemCheckIcon: {
|
|
135
|
+
...l,
|
|
126
136
|
position: "absolute",
|
|
127
|
-
right:
|
|
137
|
+
right: p,
|
|
128
138
|
display: "flex",
|
|
129
139
|
width: "1rem",
|
|
130
140
|
height: "1rem",
|
|
@@ -132,271 +142,281 @@ const $ = (a) => /* @__PURE__ */ n(
|
|
|
132
142
|
justifyContent: "center"
|
|
133
143
|
},
|
|
134
144
|
checkSvg: {
|
|
145
|
+
...l,
|
|
135
146
|
width: "1rem",
|
|
136
147
|
height: "1rem",
|
|
137
|
-
color:
|
|
148
|
+
color: g
|
|
138
149
|
},
|
|
139
150
|
empty: {
|
|
151
|
+
...l,
|
|
140
152
|
paddingTop: "1.5rem",
|
|
141
153
|
paddingBottom: "1.5rem",
|
|
142
154
|
textAlign: "center",
|
|
143
|
-
color:
|
|
144
|
-
fontSize:
|
|
145
|
-
lineHeight:
|
|
155
|
+
color: g,
|
|
156
|
+
fontSize: w,
|
|
157
|
+
lineHeight: C
|
|
146
158
|
},
|
|
147
159
|
group: {
|
|
148
|
-
...
|
|
160
|
+
...l,
|
|
161
|
+
...m.padding(0)
|
|
149
162
|
},
|
|
150
163
|
groupLabel: {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
...l,
|
|
165
|
+
color: h,
|
|
166
|
+
fontWeight: D,
|
|
167
|
+
paddingLeft: p,
|
|
168
|
+
paddingRight: p,
|
|
169
|
+
paddingTop: p,
|
|
170
|
+
paddingBottom: p,
|
|
171
|
+
fontSize: V,
|
|
172
|
+
lineHeight: T
|
|
159
173
|
},
|
|
160
174
|
separator: {
|
|
161
|
-
|
|
175
|
+
...l,
|
|
176
|
+
backgroundColor: P,
|
|
162
177
|
pointerEvents: "none",
|
|
163
|
-
marginLeft: `calc(-1 * ${
|
|
164
|
-
marginRight: `calc(-1 * ${
|
|
165
|
-
marginTop:
|
|
166
|
-
marginBottom:
|
|
178
|
+
marginLeft: `calc(-1 * ${R})`,
|
|
179
|
+
marginRight: `calc(-1 * ${R})`,
|
|
180
|
+
marginTop: p,
|
|
181
|
+
marginBottom: p,
|
|
167
182
|
height: "1px"
|
|
168
183
|
},
|
|
169
184
|
loading: {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
185
|
+
...l,
|
|
186
|
+
color: h,
|
|
187
|
+
paddingLeft: f,
|
|
188
|
+
paddingRight: f,
|
|
189
|
+
paddingTop: p,
|
|
190
|
+
paddingBottom: p
|
|
175
191
|
},
|
|
176
192
|
clear: {
|
|
193
|
+
...l,
|
|
177
194
|
position: "absolute",
|
|
178
195
|
right: "2.75rem",
|
|
179
196
|
cursor: "pointer",
|
|
180
197
|
minHeight: "auto",
|
|
181
|
-
...
|
|
198
|
+
...m.padding("0.125rem"),
|
|
182
199
|
display: "inline-flex",
|
|
183
200
|
alignItems: "center",
|
|
184
201
|
justifyContent: "center",
|
|
185
|
-
...
|
|
202
|
+
...m.borderRadius("9999px"),
|
|
186
203
|
backgroundColor: "transparent",
|
|
187
|
-
...
|
|
188
|
-
color:
|
|
204
|
+
...m.border("0"),
|
|
205
|
+
color: q,
|
|
189
206
|
":focus-visible": {
|
|
190
207
|
outlineWidth: "2px",
|
|
191
208
|
outlineStyle: "solid",
|
|
192
209
|
outlineOffset: "2px",
|
|
193
|
-
outlineColor:
|
|
210
|
+
outlineColor: v
|
|
194
211
|
}
|
|
195
212
|
},
|
|
196
213
|
clearSvg: {
|
|
214
|
+
...l,
|
|
197
215
|
width: "1.25rem",
|
|
198
216
|
height: "1.25rem"
|
|
199
217
|
},
|
|
200
218
|
clearValue: {
|
|
219
|
+
...l,
|
|
201
220
|
cursor: "pointer",
|
|
202
221
|
":hover": {
|
|
203
222
|
opacity: 0.7
|
|
204
223
|
},
|
|
205
224
|
color: "currentColor",
|
|
206
|
-
...
|
|
225
|
+
...m.borderRadius("9999px"),
|
|
207
226
|
display: "inline-flex",
|
|
208
227
|
alignItems: "center",
|
|
209
228
|
justifyContent: "center"
|
|
210
229
|
},
|
|
211
230
|
clearValueSvg: {
|
|
231
|
+
...l,
|
|
212
232
|
width: "1rem",
|
|
213
233
|
height: "1rem",
|
|
214
234
|
color: "currentColor"
|
|
215
235
|
},
|
|
216
236
|
placeholder: {
|
|
217
|
-
color:
|
|
237
|
+
color: N
|
|
218
238
|
}
|
|
219
|
-
}),
|
|
239
|
+
}), so = s.forwardRef(
|
|
220
240
|
function(t, o) {
|
|
221
241
|
return /* @__PURE__ */ n(
|
|
222
|
-
|
|
242
|
+
Z,
|
|
223
243
|
{
|
|
224
244
|
"data-slot": "combobox",
|
|
225
|
-
[
|
|
245
|
+
[u]: "combobox",
|
|
226
246
|
...t
|
|
227
247
|
}
|
|
228
248
|
);
|
|
229
249
|
}
|
|
230
|
-
),
|
|
231
|
-
var
|
|
232
|
-
const
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
|
|
250
|
+
), mo = s.forwardRef(function({ className: t, children: o, ...r }, e) {
|
|
251
|
+
var y;
|
|
252
|
+
const b = d(), i = ((y = J()) == null ? void 0 : y.inputRef) ?? null;
|
|
253
|
+
return /* @__PURE__ */ I(
|
|
254
|
+
$,
|
|
235
255
|
{
|
|
236
|
-
ref: (
|
|
237
|
-
i && (i.current =
|
|
256
|
+
ref: (x) => {
|
|
257
|
+
i && (i.current = x), typeof e == "function" ? e(x) : e && (e.current = x);
|
|
238
258
|
},
|
|
239
259
|
"data-slot": "select-trigger",
|
|
240
|
-
[
|
|
241
|
-
className:
|
|
260
|
+
[u]: "select-trigger",
|
|
261
|
+
className: c(b.trigger, t),
|
|
242
262
|
...r,
|
|
243
263
|
children: [
|
|
244
264
|
o,
|
|
245
|
-
/* @__PURE__ */ n(
|
|
265
|
+
/* @__PURE__ */ n(Q, { className: b.triggerChevron })
|
|
246
266
|
]
|
|
247
267
|
}
|
|
248
268
|
);
|
|
249
|
-
}),
|
|
250
|
-
const i =
|
|
251
|
-
return /* @__PURE__ */ n(
|
|
252
|
-
|
|
269
|
+
}), co = s.forwardRef(function({ className: t, children: o, container: r, ...e }, b) {
|
|
270
|
+
const i = d();
|
|
271
|
+
return /* @__PURE__ */ n(X, { container: r, children: /* @__PURE__ */ n(
|
|
272
|
+
_,
|
|
253
273
|
{
|
|
254
|
-
ref:
|
|
274
|
+
ref: b,
|
|
255
275
|
"data-slot": "combobox-content",
|
|
256
|
-
[
|
|
257
|
-
className:
|
|
276
|
+
[u]: "combobox-content",
|
|
277
|
+
className: c(i.content, t),
|
|
258
278
|
...e,
|
|
259
279
|
children: /* @__PURE__ */ n(
|
|
260
|
-
|
|
280
|
+
k,
|
|
261
281
|
{
|
|
262
282
|
"data-slot": "combobox-command",
|
|
263
|
-
[
|
|
283
|
+
[u]: "combobox-command",
|
|
264
284
|
className: i.command,
|
|
265
285
|
children: o
|
|
266
286
|
}
|
|
267
287
|
)
|
|
268
288
|
}
|
|
269
289
|
) });
|
|
270
|
-
}),
|
|
271
|
-
const
|
|
290
|
+
}), bo = s.forwardRef(function({ className: t, children: o, ...r }, e) {
|
|
291
|
+
const b = d();
|
|
272
292
|
return /* @__PURE__ */ n(
|
|
273
293
|
"div",
|
|
274
294
|
{
|
|
275
295
|
ref: e,
|
|
276
296
|
"data-slot": "combobox-value",
|
|
277
|
-
[
|
|
278
|
-
className:
|
|
297
|
+
[u]: "combobox-value",
|
|
298
|
+
className: c(b.value, t),
|
|
279
299
|
...r,
|
|
280
300
|
children: o
|
|
281
301
|
}
|
|
282
302
|
);
|
|
283
|
-
}),
|
|
284
|
-
const e =
|
|
303
|
+
}), po = s.forwardRef(function({ className: t, ...o }, r) {
|
|
304
|
+
const e = d();
|
|
285
305
|
return /* @__PURE__ */ n(
|
|
286
|
-
|
|
306
|
+
j,
|
|
287
307
|
{
|
|
288
308
|
ref: r,
|
|
289
309
|
"data-slot": "combobox-command-input",
|
|
290
|
-
[
|
|
291
|
-
className:
|
|
310
|
+
[u]: "combobox-command-input",
|
|
311
|
+
className: c(e.input, t),
|
|
292
312
|
...o
|
|
293
313
|
}
|
|
294
314
|
);
|
|
295
|
-
}),
|
|
296
|
-
const e =
|
|
315
|
+
}), uo = s.forwardRef(function({ className: t, ...o }, r) {
|
|
316
|
+
const e = d();
|
|
297
317
|
return /* @__PURE__ */ n(
|
|
298
|
-
|
|
318
|
+
W,
|
|
299
319
|
{
|
|
300
320
|
ref: r,
|
|
301
321
|
"data-slot": "combobox-command-list",
|
|
302
|
-
[
|
|
303
|
-
className:
|
|
322
|
+
[u]: "combobox-command-list",
|
|
323
|
+
className: c(e.list, t),
|
|
304
324
|
...o
|
|
305
325
|
}
|
|
306
326
|
);
|
|
307
|
-
}),
|
|
308
|
-
const
|
|
327
|
+
}), go = s.forwardRef(function({ className: t, children: o, ...r }, e) {
|
|
328
|
+
const b = d();
|
|
309
329
|
return /* @__PURE__ */ n(
|
|
310
|
-
|
|
330
|
+
H,
|
|
311
331
|
{
|
|
312
332
|
ref: e,
|
|
313
333
|
"data-slot": "combobox-item",
|
|
314
|
-
[
|
|
315
|
-
className:
|
|
334
|
+
[u]: "combobox-item",
|
|
335
|
+
className: c(b.item, t),
|
|
316
336
|
...r,
|
|
317
337
|
children: o
|
|
318
338
|
}
|
|
319
339
|
);
|
|
320
|
-
}),
|
|
321
|
-
const e =
|
|
340
|
+
}), xo = s.forwardRef(function({ className: t, ...o }, r) {
|
|
341
|
+
const e = d();
|
|
322
342
|
return /* @__PURE__ */ n(
|
|
323
343
|
"span",
|
|
324
344
|
{
|
|
325
345
|
ref: r,
|
|
326
|
-
className:
|
|
346
|
+
className: c(e.itemCheckIcon, t),
|
|
327
347
|
...o,
|
|
328
|
-
children: /* @__PURE__ */ n(
|
|
348
|
+
children: /* @__PURE__ */ n(K, { className: e.checkSvg })
|
|
329
349
|
}
|
|
330
350
|
);
|
|
331
|
-
}),
|
|
332
|
-
const e =
|
|
351
|
+
}), fo = s.forwardRef(function({ className: t, ...o }, r) {
|
|
352
|
+
const e = d();
|
|
333
353
|
return /* @__PURE__ */ n(
|
|
334
|
-
|
|
354
|
+
A,
|
|
335
355
|
{
|
|
336
356
|
ref: r,
|
|
337
357
|
"data-slot": "combobox-empty",
|
|
338
|
-
[
|
|
339
|
-
className:
|
|
358
|
+
[u]: "combobox-empty",
|
|
359
|
+
className: c(e.empty, t),
|
|
340
360
|
...o
|
|
341
361
|
}
|
|
342
362
|
);
|
|
343
|
-
}),
|
|
344
|
-
const e =
|
|
363
|
+
}), ho = s.forwardRef(function({ className: t, ...o }, r) {
|
|
364
|
+
const e = d();
|
|
345
365
|
return /* @__PURE__ */ n(
|
|
346
|
-
|
|
366
|
+
E,
|
|
347
367
|
{
|
|
348
368
|
ref: r,
|
|
349
369
|
"data-slot": "combobox-group",
|
|
350
|
-
[
|
|
351
|
-
className:
|
|
370
|
+
[u]: "combobox-group",
|
|
371
|
+
className: c(e.group, t),
|
|
352
372
|
...o
|
|
353
373
|
}
|
|
354
374
|
);
|
|
355
|
-
}),
|
|
356
|
-
const e =
|
|
375
|
+
}), Co = s.forwardRef(function({ className: t, ...o }, r) {
|
|
376
|
+
const e = d();
|
|
357
377
|
return /* @__PURE__ */ n(
|
|
358
|
-
|
|
378
|
+
O,
|
|
359
379
|
{
|
|
360
380
|
ref: r,
|
|
361
381
|
"data-slot": "combobox-group-label",
|
|
362
|
-
[
|
|
363
|
-
className:
|
|
382
|
+
[u]: "combobox-group-label",
|
|
383
|
+
className: c(e.groupLabel, t),
|
|
364
384
|
...o
|
|
365
385
|
}
|
|
366
386
|
);
|
|
367
|
-
}),
|
|
368
|
-
const e =
|
|
387
|
+
}), wo = s.forwardRef(function({ className: t, ...o }, r) {
|
|
388
|
+
const e = d();
|
|
369
389
|
return /* @__PURE__ */ n(
|
|
370
|
-
|
|
390
|
+
M,
|
|
371
391
|
{
|
|
372
392
|
ref: r,
|
|
373
393
|
"data-slot": "select-separator",
|
|
374
|
-
[
|
|
375
|
-
className:
|
|
394
|
+
[u]: "select-separator",
|
|
395
|
+
className: c(e.separator, t),
|
|
376
396
|
...o
|
|
377
397
|
}
|
|
378
398
|
);
|
|
379
|
-
}),
|
|
380
|
-
const e =
|
|
399
|
+
}), yo = s.forwardRef(function({ className: t, ...o }, r) {
|
|
400
|
+
const e = d();
|
|
381
401
|
return /* @__PURE__ */ n(
|
|
382
|
-
|
|
402
|
+
z,
|
|
383
403
|
{
|
|
384
404
|
ref: r,
|
|
385
405
|
"data-slot": "combobox-command-loading",
|
|
386
|
-
[
|
|
387
|
-
className:
|
|
406
|
+
[u]: "combobox-command-loading",
|
|
407
|
+
className: c(e.loading, t),
|
|
388
408
|
...o
|
|
389
409
|
}
|
|
390
410
|
);
|
|
391
|
-
}),
|
|
392
|
-
const
|
|
411
|
+
}), Fo = s.forwardRef(function({ className: t, onClick: o, ...r }, e) {
|
|
412
|
+
const b = d();
|
|
393
413
|
return /* @__PURE__ */ n(
|
|
394
414
|
"span",
|
|
395
415
|
{
|
|
396
416
|
ref: e,
|
|
397
417
|
role: "button",
|
|
398
418
|
tabIndex: 0,
|
|
399
|
-
className:
|
|
419
|
+
className: c(b.clear, t),
|
|
400
420
|
onPointerDown: (i) => {
|
|
401
421
|
i.preventDefault(), i.stopPropagation();
|
|
402
422
|
},
|
|
@@ -404,28 +424,28 @@ const $ = (a) => /* @__PURE__ */ n(
|
|
|
404
424
|
i.preventDefault(), i.stopPropagation(), o == null || o(i);
|
|
405
425
|
},
|
|
406
426
|
...r,
|
|
407
|
-
children: /* @__PURE__ */ n(
|
|
427
|
+
children: /* @__PURE__ */ n(S, { className: b.clearSvg })
|
|
408
428
|
}
|
|
409
429
|
);
|
|
410
|
-
}),
|
|
411
|
-
const e =
|
|
430
|
+
}), vo = s.forwardRef(function({ className: t, ...o }, r) {
|
|
431
|
+
const e = d();
|
|
412
432
|
return /* @__PURE__ */ n(
|
|
413
433
|
"span",
|
|
414
434
|
{
|
|
415
435
|
ref: r,
|
|
416
|
-
className:
|
|
436
|
+
className: c(e.placeholder, t),
|
|
417
437
|
...o
|
|
418
438
|
}
|
|
419
439
|
);
|
|
420
|
-
}),
|
|
421
|
-
const
|
|
440
|
+
}), Ro = s.forwardRef(function({ className: t, onClick: o, ...r }, e) {
|
|
441
|
+
const b = d();
|
|
422
442
|
return /* @__PURE__ */ n(
|
|
423
443
|
"span",
|
|
424
444
|
{
|
|
425
445
|
ref: e,
|
|
426
446
|
role: "button",
|
|
427
447
|
tabIndex: 0,
|
|
428
|
-
className:
|
|
448
|
+
className: c(b.clearValue, t),
|
|
429
449
|
onPointerDown: (i) => {
|
|
430
450
|
i.preventDefault(), i.stopPropagation();
|
|
431
451
|
},
|
|
@@ -433,42 +453,42 @@ const $ = (a) => /* @__PURE__ */ n(
|
|
|
433
453
|
i.preventDefault(), i.stopPropagation(), o == null || o(i);
|
|
434
454
|
},
|
|
435
455
|
...r,
|
|
436
|
-
children: /* @__PURE__ */ n(
|
|
456
|
+
children: /* @__PURE__ */ n(S, { className: b.clearValueSvg })
|
|
437
457
|
}
|
|
438
458
|
);
|
|
439
459
|
});
|
|
440
460
|
export {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
461
|
+
so as Combobox,
|
|
462
|
+
Fo as ComboboxClear,
|
|
463
|
+
Ro as ComboboxClearValue,
|
|
464
|
+
co as ComboboxContent,
|
|
465
|
+
fo as ComboboxEmpty,
|
|
466
|
+
ho as ComboboxGroup,
|
|
467
|
+
Co as ComboboxGroupLabel,
|
|
468
|
+
po as ComboboxInput,
|
|
469
|
+
go as ComboboxItem,
|
|
470
|
+
xo as ComboboxItemCheckIcon,
|
|
471
|
+
uo as ComboboxList,
|
|
472
|
+
yo as ComboboxLoading,
|
|
473
|
+
vo as ComboboxPlaceholder,
|
|
474
|
+
wo as ComboboxSeparator,
|
|
475
|
+
mo as ComboboxTrigger,
|
|
476
|
+
bo as ComboboxValue,
|
|
477
|
+
so as FieldCombobox,
|
|
478
|
+
Fo as FieldComboboxClear,
|
|
479
|
+
Ro as FieldComboboxClearValue,
|
|
480
|
+
co as FieldComboboxContent,
|
|
481
|
+
fo as FieldComboboxEmpty,
|
|
482
|
+
ho as FieldComboboxGroup,
|
|
483
|
+
Co as FieldComboboxGroupLabel,
|
|
484
|
+
po as FieldComboboxInput,
|
|
485
|
+
go as FieldComboboxItem,
|
|
486
|
+
xo as FieldComboboxItemCheckIcon,
|
|
487
|
+
uo as FieldComboboxList,
|
|
488
|
+
yo as FieldComboboxLoading,
|
|
489
|
+
vo as FieldComboboxPlaceholder,
|
|
490
|
+
wo as FieldComboboxSeparator,
|
|
491
|
+
mo as FieldComboboxTrigger,
|
|
492
|
+
bo as FieldComboboxValue
|
|
473
493
|
};
|
|
474
494
|
//# sourceMappingURL=field-combobox.js.map
|