@epilot/zenith-react 0.2.0-next.4 → 0.2.0-next.6
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 +12 -1
- package/codemods/README.md +18 -4
- package/codemods/format.ts +86 -0
- package/codemods/migrate/from-base-elements.ts +8 -2
- package/codemods/migrate/from-volt.ts +8 -2
- package/codemods/radix-to-base-ui.ts +300 -12
- package/dist/_virtual/_zenith-runtime-family_accordion.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_alert-dialog.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_avatar.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_button.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_checkbox.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_csp-provider.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_dialog.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_direction-provider.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_menu.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_merge-props.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_popover.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_radio-group.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_radio.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_scroll-area.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_select.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_separator.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_switch.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_tabs.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_toast.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_toggle-group.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_toggle.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_tooltip.js +1 -1
- package/dist/_virtual/_zenith-runtime-family_use-render.js +1 -1
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +1 -1
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/appearance-boundary/appearance-boundary.js +1 -1
- package/dist/components/appearance-boundary/appearance-boundary.js.map +1 -1
- package/dist/components/avatar/avatar-group.js +1 -1
- package/dist/components/avatar/avatar-group.js.map +1 -1
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +1 -1
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/callout/callout.js +1 -1
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/code-block/code-block.js +1 -1
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-editor/code-editor.js +1 -1
- package/dist/components/code-editor/code-editor.js.map +1 -1
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +1 -1
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
- package/dist/components/command/command.js +1 -1
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/data-table/data-table-body.js +1 -1
- package/dist/components/data-table/data-table-body.js.map +1 -1
- package/dist/components/data-table/data-table-column-header.js +1 -1
- package/dist/components/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/data-table/data-table-column-order.js +1 -1
- package/dist/components/data-table/data-table-column-order.js.map +1 -1
- package/dist/components/data-table/data-table-column-visibility.js +1 -1
- package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
- package/dist/components/data-table/data-table-content.js +1 -1
- package/dist/components/data-table/data-table-content.js.map +1 -1
- package/dist/components/data-table/data-table-error.js +1 -1
- package/dist/components/data-table/data-table-error.js.map +1 -1
- package/dist/components/data-table/data-table-footer.js +1 -1
- package/dist/components/data-table/data-table-footer.js.map +1 -1
- package/dist/components/data-table/data-table-header-draggable.js +1 -1
- package/dist/components/data-table/data-table-header-draggable.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +1 -1
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-loading.js +1 -1
- package/dist/components/data-table/data-table-loading.js.map +1 -1
- package/dist/components/data-table/data-table-resize-handle.js +1 -1
- package/dist/components/data-table/data-table-resize-handle.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +1 -1
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/data-table/data-table-toolbar.js +1 -1
- package/dist/components/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/data-table/data-table.js +1 -1
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-range-picker/range-calendar.js +1 -1
- package/dist/components/date-range-picker/range-calendar.js.map +1 -1
- package/dist/components/date-time-picker/calendar.js +1 -1
- package/dist/components/date-time-picker/calendar.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +1 -1
- 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 +1 -1
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/date-time-picker/time-picker.js +1 -1
- package/dist/components/date-time-picker/time-picker.js.map +1 -1
- package/dist/components/density-provider/density-provider.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +190 -181
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field-select.js +37 -22
- package/dist/components/field/field-select.js.map +1 -1
- package/dist/components/field/field.js +1 -1
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/label/label.js +1 -1
- package/dist/components/label/label.js.map +1 -1
- package/dist/components/list/list.js +1 -1
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +1 -1
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +1 -1
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +1 -1
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/scroll-area/scrollbar-styles.js +1 -1
- package/dist/components/scroll-area/scrollbar-styles.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +22 -22
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +133 -122
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js +1 -1
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/slot/compose-as-child.js +1 -1
- package/dist/components/slot/compose-as-child.js.map +1 -1
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/surface/surface.js +1 -1
- package/dist/components/surface/surface.js.map +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +1 -1
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/table/table.js +1 -1
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/text/text.js +1 -1
- package/dist/components/text/text.js.map +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle-group.js +1 -1
- package/dist/components/toggle/toggle-group.js.map +1 -1
- package/dist/components/toggle/toggle.js +29 -26
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/clear-button.js +1 -1
- package/dist/lib/clear-button.js.map +1 -1
- package/dist/packages/tokens/dist/delivery/index.js +1 -1
- package/dist/packages/tokens/dist/delivery/index.js.map +1 -1
- package/dist/packages/tokens/dist/install.js +1 -1
- package/dist/packages/tokens/dist/install.js.map +1 -1
- package/dist/renderer/served.js +19 -14
- package/dist/renderer/served.js.map +1 -1
- package/dist/styles/host-reset.js.map +1 -1
- package/dist/styles/make-styles.js +1 -1
- package/dist/styles/make-styles.js.map +1 -1
- package/dist/styles/text-box.js.map +1 -1
- package/dist/tokens.json +1 -1
- package/package.json +5 -3
- package/scripts/migration-diagnostics-core.mjs +284 -0
- package/scripts/migration-sweep.mjs +10 -10
- package/testing/setup.cjs +87 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as L } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { SLOT_ATTR as
|
|
4
|
-
import { makeZenithStyles as
|
|
3
|
+
import { SLOT_ATTR as d, mergeClasses as b, shorthands as c } from "@epilot/zenith-runtime/v1/core.js";
|
|
4
|
+
import { makeZenithStyles as N } from "../../styles/make-styles.js";
|
|
5
5
|
import { boxModel as l, nativeControl as F } from "../../styles/host-reset.js";
|
|
6
|
-
import { grayA8 as
|
|
7
|
-
import { Command as
|
|
8
|
-
import { Label as
|
|
9
|
-
import { Popover as
|
|
10
|
-
import { useOptionalFieldContext as
|
|
11
|
-
const
|
|
6
|
+
import { grayA8 as q, focusRing as v, accentA11 as T, spacingElement2 as u, spacingGroup1 as f, grayA11 as h, spacingElement1 as S, graySoft as P, leadingXs as V, textXs as D, fontWeightSemibold as B, leadingSm as C, textSm as w, grayA12 as g, radiusMd as G, radiusLg as k } from "../../tokens/index.js";
|
|
7
|
+
import { Command as A, CommandEmpty as E, CommandGroup as j, CommandInput as z, CommandItem as H, CommandList as W, CommandLoading as M, CommandSeparator as O } from "../command/command.js";
|
|
8
|
+
import { Label as Z } from "../label/label.js";
|
|
9
|
+
import { Popover as X, PopoverPortal as $, PopoverContent as _, PopoverTrigger as J } from "../popover/popover.js";
|
|
10
|
+
import { useOptionalFieldContext as K } from "./field.js";
|
|
11
|
+
const Q = (a) => /* @__PURE__ */ r(
|
|
12
12
|
"svg",
|
|
13
13
|
{
|
|
14
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17,9 +17,9 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
17
17
|
width: "24px",
|
|
18
18
|
fill: "currentColor",
|
|
19
19
|
...a,
|
|
20
|
-
children: /* @__PURE__ */
|
|
20
|
+
children: /* @__PURE__ */ r("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" })
|
|
21
21
|
}
|
|
22
|
-
),
|
|
22
|
+
), U = (a) => /* @__PURE__ */ r(
|
|
23
23
|
"svg",
|
|
24
24
|
{
|
|
25
25
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -28,9 +28,9 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
28
28
|
width: "24px",
|
|
29
29
|
fill: "currentColor",
|
|
30
30
|
...a,
|
|
31
|
-
children: /* @__PURE__ */
|
|
31
|
+
children: /* @__PURE__ */ r("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" })
|
|
32
32
|
}
|
|
33
|
-
),
|
|
33
|
+
), R = (a) => /* @__PURE__ */ r(
|
|
34
34
|
"svg",
|
|
35
35
|
{
|
|
36
36
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -39,24 +39,24 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
39
39
|
width: "24px",
|
|
40
40
|
fill: "currentColor",
|
|
41
41
|
...a,
|
|
42
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ r("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" })
|
|
43
43
|
}
|
|
44
|
-
),
|
|
44
|
+
), p = N({
|
|
45
45
|
trigger: {
|
|
46
46
|
...F,
|
|
47
47
|
width: "100%",
|
|
48
48
|
display: "flex",
|
|
49
49
|
alignItems: "center",
|
|
50
50
|
justifyContent: "space-between",
|
|
51
|
-
...
|
|
52
|
-
...
|
|
51
|
+
...c.gap(u),
|
|
52
|
+
...c.borderRadius(k),
|
|
53
53
|
backgroundColor: "transparent",
|
|
54
54
|
fontSize: w,
|
|
55
55
|
lineHeight: C,
|
|
56
56
|
whiteSpace: "nowrap",
|
|
57
57
|
outlineStyle: "none",
|
|
58
|
-
...
|
|
59
|
-
...
|
|
58
|
+
...c.border("0"),
|
|
59
|
+
...c.padding(0),
|
|
60
60
|
":focus-visible": {
|
|
61
61
|
outlineWidth: "2px",
|
|
62
62
|
outlineStyle: "solid",
|
|
@@ -69,10 +69,16 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
69
69
|
},
|
|
70
70
|
// The open-state chevron rotation is declared HERE, on the trigger that carries the state
|
|
71
71
|
// attribute, reaching the chevron by SLOT_ATTR.
|
|
72
|
-
[`&[data-popup-open] [${
|
|
72
|
+
[`&[data-popup-open] [${d}="combobox-icon"]`]: {
|
|
73
73
|
transform: "rotate(180deg)"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
+
triggerInField: {
|
|
77
|
+
outlineStyle: "none",
|
|
78
|
+
":focus-visible": {
|
|
79
|
+
outlineStyle: "none"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
76
82
|
triggerChevron: {
|
|
77
83
|
...l,
|
|
78
84
|
width: "1.5rem",
|
|
@@ -93,19 +99,19 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
93
99
|
textAlign: "left",
|
|
94
100
|
flexWrap: "wrap",
|
|
95
101
|
display: "flex",
|
|
96
|
-
...
|
|
102
|
+
...c.gap(u),
|
|
97
103
|
position: "relative",
|
|
98
104
|
whiteSpace: "normal",
|
|
99
105
|
marginRight: "1.25rem"
|
|
100
106
|
},
|
|
101
107
|
content: {
|
|
102
108
|
...l,
|
|
103
|
-
...
|
|
109
|
+
...c.padding(0)
|
|
104
110
|
},
|
|
105
111
|
command: {
|
|
106
112
|
...l,
|
|
107
113
|
width: "100%",
|
|
108
|
-
...
|
|
114
|
+
...c.borderRadius(0)
|
|
109
115
|
},
|
|
110
116
|
input: {
|
|
111
117
|
...F,
|
|
@@ -113,7 +119,7 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
113
119
|
},
|
|
114
120
|
list: {
|
|
115
121
|
...l,
|
|
116
|
-
...
|
|
122
|
+
...c.padding(u)
|
|
117
123
|
},
|
|
118
124
|
item: {
|
|
119
125
|
...l,
|
|
@@ -127,8 +133,8 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
127
133
|
width: "100%",
|
|
128
134
|
cursor: "default",
|
|
129
135
|
alignItems: "center",
|
|
130
|
-
...
|
|
131
|
-
...
|
|
136
|
+
...c.gap(u),
|
|
137
|
+
...c.borderRadius(G),
|
|
132
138
|
fontSize: w,
|
|
133
139
|
lineHeight: C,
|
|
134
140
|
outlineStyle: "none",
|
|
@@ -161,25 +167,25 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
161
167
|
},
|
|
162
168
|
group: {
|
|
163
169
|
...l,
|
|
164
|
-
...
|
|
170
|
+
...c.padding(0)
|
|
165
171
|
},
|
|
166
172
|
groupLabel: {
|
|
167
173
|
...l,
|
|
168
174
|
color: h,
|
|
169
|
-
fontWeight:
|
|
175
|
+
fontWeight: B,
|
|
170
176
|
paddingLeft: u,
|
|
171
177
|
paddingRight: u,
|
|
172
178
|
paddingTop: u,
|
|
173
179
|
paddingBottom: u,
|
|
174
|
-
fontSize:
|
|
175
|
-
lineHeight:
|
|
180
|
+
fontSize: D,
|
|
181
|
+
lineHeight: V
|
|
176
182
|
},
|
|
177
183
|
separator: {
|
|
178
184
|
...l,
|
|
179
|
-
backgroundColor:
|
|
185
|
+
backgroundColor: P,
|
|
180
186
|
pointerEvents: "none",
|
|
181
|
-
marginLeft: `calc(-1 * ${
|
|
182
|
-
marginRight: `calc(-1 * ${
|
|
187
|
+
marginLeft: `calc(-1 * ${S})`,
|
|
188
|
+
marginRight: `calc(-1 * ${S})`,
|
|
183
189
|
marginTop: u,
|
|
184
190
|
marginBottom: u,
|
|
185
191
|
height: "1px"
|
|
@@ -198,14 +204,14 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
198
204
|
right: "2.75rem",
|
|
199
205
|
cursor: "pointer",
|
|
200
206
|
minHeight: "auto",
|
|
201
|
-
...
|
|
207
|
+
...c.padding("0.125rem"),
|
|
202
208
|
display: "inline-flex",
|
|
203
209
|
alignItems: "center",
|
|
204
210
|
justifyContent: "center",
|
|
205
|
-
...
|
|
211
|
+
...c.borderRadius("9999px"),
|
|
206
212
|
backgroundColor: "transparent",
|
|
207
|
-
...
|
|
208
|
-
color:
|
|
213
|
+
...c.border("0"),
|
|
214
|
+
color: T,
|
|
209
215
|
":focus-visible": {
|
|
210
216
|
outlineWidth: "2px",
|
|
211
217
|
outlineStyle: "solid",
|
|
@@ -225,7 +231,7 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
225
231
|
opacity: 0.7
|
|
226
232
|
},
|
|
227
233
|
color: "currentColor",
|
|
228
|
-
...
|
|
234
|
+
...c.borderRadius("9999px"),
|
|
229
235
|
display: "inline-flex",
|
|
230
236
|
alignItems: "center",
|
|
231
237
|
justifyContent: "center"
|
|
@@ -237,268 +243,271 @@ const K = (a) => /* @__PURE__ */ n(
|
|
|
237
243
|
color: "currentColor"
|
|
238
244
|
},
|
|
239
245
|
placeholder: {
|
|
240
|
-
color:
|
|
246
|
+
color: q
|
|
241
247
|
}
|
|
242
|
-
}),
|
|
248
|
+
}), mo = s.forwardRef(
|
|
243
249
|
function(t, o) {
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
|
|
250
|
+
return /* @__PURE__ */ r(
|
|
251
|
+
X,
|
|
246
252
|
{
|
|
247
253
|
"data-slot": "combobox",
|
|
248
|
-
[
|
|
254
|
+
[d]: "combobox",
|
|
249
255
|
...t
|
|
250
256
|
}
|
|
251
257
|
);
|
|
252
258
|
}
|
|
253
|
-
),
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
_,
|
|
259
|
+
), co = s.forwardRef(function({ className: t, children: o, ...n }, e) {
|
|
260
|
+
const m = p(), i = K(), I = i !== null, y = (i == null ? void 0 : i.inputRef) ?? null;
|
|
261
|
+
return /* @__PURE__ */ L(
|
|
262
|
+
J,
|
|
258
263
|
{
|
|
259
264
|
ref: (x) => {
|
|
260
|
-
|
|
265
|
+
y && (y.current = x), typeof e == "function" ? e(x) : e && (e.current = x);
|
|
261
266
|
},
|
|
262
267
|
"data-slot": "select-trigger",
|
|
263
|
-
[
|
|
264
|
-
className:
|
|
265
|
-
|
|
268
|
+
[d]: "select-trigger",
|
|
269
|
+
className: b(
|
|
270
|
+
m.trigger,
|
|
271
|
+
I && m.triggerInField,
|
|
272
|
+
t
|
|
273
|
+
),
|
|
274
|
+
...n,
|
|
266
275
|
children: [
|
|
267
276
|
o,
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
|
|
277
|
+
/* @__PURE__ */ r(
|
|
278
|
+
U,
|
|
270
279
|
{
|
|
271
280
|
"data-slot": "combobox-icon",
|
|
272
|
-
[
|
|
273
|
-
className:
|
|
281
|
+
[d]: "combobox-icon",
|
|
282
|
+
className: m.triggerChevron
|
|
274
283
|
}
|
|
275
284
|
)
|
|
276
285
|
]
|
|
277
286
|
}
|
|
278
287
|
);
|
|
279
|
-
}),
|
|
280
|
-
const i =
|
|
281
|
-
return /* @__PURE__ */
|
|
282
|
-
|
|
288
|
+
}), bo = s.forwardRef(function({ className: t, children: o, container: n, ...e }, m) {
|
|
289
|
+
const i = p();
|
|
290
|
+
return /* @__PURE__ */ r($, { container: n, children: /* @__PURE__ */ r(
|
|
291
|
+
_,
|
|
283
292
|
{
|
|
284
|
-
ref:
|
|
293
|
+
ref: m,
|
|
285
294
|
"data-slot": "combobox-content",
|
|
286
|
-
[
|
|
287
|
-
className:
|
|
295
|
+
[d]: "combobox-content",
|
|
296
|
+
className: b(i.content, t),
|
|
288
297
|
...e,
|
|
289
|
-
children: /* @__PURE__ */
|
|
290
|
-
|
|
298
|
+
children: /* @__PURE__ */ r(
|
|
299
|
+
A,
|
|
291
300
|
{
|
|
292
301
|
"data-slot": "combobox-command",
|
|
293
|
-
[
|
|
302
|
+
[d]: "combobox-command",
|
|
294
303
|
className: i.command,
|
|
295
304
|
children: o
|
|
296
305
|
}
|
|
297
306
|
)
|
|
298
307
|
}
|
|
299
308
|
) });
|
|
300
|
-
}),
|
|
301
|
-
const
|
|
302
|
-
return /* @__PURE__ */
|
|
309
|
+
}), po = s.forwardRef(function({ className: t, children: o, ...n }, e) {
|
|
310
|
+
const m = p();
|
|
311
|
+
return /* @__PURE__ */ r(
|
|
303
312
|
"div",
|
|
304
313
|
{
|
|
305
314
|
ref: e,
|
|
306
315
|
"data-slot": "combobox-value",
|
|
307
|
-
[
|
|
308
|
-
className:
|
|
309
|
-
...
|
|
316
|
+
[d]: "combobox-value",
|
|
317
|
+
className: b(m.value, t),
|
|
318
|
+
...n,
|
|
310
319
|
children: o
|
|
311
320
|
}
|
|
312
321
|
);
|
|
313
|
-
}),
|
|
314
|
-
const e =
|
|
315
|
-
return /* @__PURE__ */
|
|
316
|
-
|
|
322
|
+
}), uo = s.forwardRef(function({ className: t, ...o }, n) {
|
|
323
|
+
const e = p();
|
|
324
|
+
return /* @__PURE__ */ r(
|
|
325
|
+
z,
|
|
317
326
|
{
|
|
318
|
-
ref:
|
|
327
|
+
ref: n,
|
|
319
328
|
"data-slot": "combobox-command-input",
|
|
320
|
-
[
|
|
321
|
-
className:
|
|
329
|
+
[d]: "combobox-command-input",
|
|
330
|
+
className: b(e.input, t),
|
|
322
331
|
...o
|
|
323
332
|
}
|
|
324
333
|
);
|
|
325
|
-
}),
|
|
326
|
-
const e =
|
|
327
|
-
return /* @__PURE__ */
|
|
328
|
-
|
|
334
|
+
}), go = s.forwardRef(function({ className: t, ...o }, n) {
|
|
335
|
+
const e = p();
|
|
336
|
+
return /* @__PURE__ */ r(
|
|
337
|
+
W,
|
|
329
338
|
{
|
|
330
|
-
ref:
|
|
339
|
+
ref: n,
|
|
331
340
|
"data-slot": "combobox-command-list",
|
|
332
|
-
[
|
|
333
|
-
className:
|
|
341
|
+
[d]: "combobox-command-list",
|
|
342
|
+
className: b(e.list, t),
|
|
334
343
|
...o
|
|
335
344
|
}
|
|
336
345
|
);
|
|
337
|
-
}),
|
|
338
|
-
const
|
|
339
|
-
return /* @__PURE__ */
|
|
340
|
-
|
|
346
|
+
}), xo = s.forwardRef(function({ className: t, children: o, ...n }, e) {
|
|
347
|
+
const m = p();
|
|
348
|
+
return /* @__PURE__ */ r(
|
|
349
|
+
H,
|
|
341
350
|
{
|
|
342
351
|
ref: e,
|
|
343
352
|
"data-slot": "combobox-item",
|
|
344
|
-
[
|
|
345
|
-
className:
|
|
346
|
-
...
|
|
353
|
+
[d]: "combobox-item",
|
|
354
|
+
className: b(m.item, t),
|
|
355
|
+
...n,
|
|
347
356
|
children: o
|
|
348
357
|
}
|
|
349
358
|
);
|
|
350
|
-
}),
|
|
351
|
-
const e =
|
|
352
|
-
return /* @__PURE__ */
|
|
359
|
+
}), fo = s.forwardRef(function({ className: t, ...o }, n) {
|
|
360
|
+
const e = p();
|
|
361
|
+
return /* @__PURE__ */ r(
|
|
353
362
|
"span",
|
|
354
363
|
{
|
|
355
|
-
ref:
|
|
356
|
-
className:
|
|
364
|
+
ref: n,
|
|
365
|
+
className: b(e.itemCheckIcon, t),
|
|
357
366
|
...o,
|
|
358
|
-
children: /* @__PURE__ */
|
|
367
|
+
children: /* @__PURE__ */ r(Q, { className: e.checkSvg })
|
|
359
368
|
}
|
|
360
369
|
);
|
|
361
|
-
}),
|
|
362
|
-
const e =
|
|
363
|
-
return /* @__PURE__ */
|
|
364
|
-
|
|
370
|
+
}), ho = s.forwardRef(function({ className: t, ...o }, n) {
|
|
371
|
+
const e = p();
|
|
372
|
+
return /* @__PURE__ */ r(
|
|
373
|
+
E,
|
|
365
374
|
{
|
|
366
|
-
ref:
|
|
375
|
+
ref: n,
|
|
367
376
|
"data-slot": "combobox-empty",
|
|
368
|
-
[
|
|
369
|
-
className:
|
|
377
|
+
[d]: "combobox-empty",
|
|
378
|
+
className: b(e.empty, t),
|
|
370
379
|
...o
|
|
371
380
|
}
|
|
372
381
|
);
|
|
373
|
-
}),
|
|
374
|
-
const e =
|
|
375
|
-
return /* @__PURE__ */
|
|
376
|
-
|
|
382
|
+
}), Co = s.forwardRef(function({ className: t, ...o }, n) {
|
|
383
|
+
const e = p();
|
|
384
|
+
return /* @__PURE__ */ r(
|
|
385
|
+
j,
|
|
377
386
|
{
|
|
378
|
-
ref:
|
|
387
|
+
ref: n,
|
|
379
388
|
"data-slot": "combobox-group",
|
|
380
|
-
[
|
|
381
|
-
className:
|
|
389
|
+
[d]: "combobox-group",
|
|
390
|
+
className: b(e.group, t),
|
|
382
391
|
...o
|
|
383
392
|
}
|
|
384
393
|
);
|
|
385
|
-
}),
|
|
386
|
-
const e =
|
|
387
|
-
return /* @__PURE__ */
|
|
388
|
-
|
|
394
|
+
}), wo = s.forwardRef(function({ className: t, ...o }, n) {
|
|
395
|
+
const e = p();
|
|
396
|
+
return /* @__PURE__ */ r(
|
|
397
|
+
Z,
|
|
389
398
|
{
|
|
390
|
-
ref:
|
|
399
|
+
ref: n,
|
|
391
400
|
"data-slot": "combobox-group-label",
|
|
392
|
-
[
|
|
393
|
-
className:
|
|
401
|
+
[d]: "combobox-group-label",
|
|
402
|
+
className: b(e.groupLabel, t),
|
|
394
403
|
...o
|
|
395
404
|
}
|
|
396
405
|
);
|
|
397
|
-
}),
|
|
398
|
-
const e =
|
|
399
|
-
return /* @__PURE__ */
|
|
400
|
-
|
|
406
|
+
}), yo = s.forwardRef(function({ className: t, ...o }, n) {
|
|
407
|
+
const e = p();
|
|
408
|
+
return /* @__PURE__ */ r(
|
|
409
|
+
O,
|
|
401
410
|
{
|
|
402
|
-
ref:
|
|
411
|
+
ref: n,
|
|
403
412
|
"data-slot": "select-separator",
|
|
404
|
-
[
|
|
405
|
-
className:
|
|
413
|
+
[d]: "select-separator",
|
|
414
|
+
className: b(e.separator, t),
|
|
406
415
|
...o
|
|
407
416
|
}
|
|
408
417
|
);
|
|
409
|
-
}),
|
|
410
|
-
const e =
|
|
411
|
-
return /* @__PURE__ */
|
|
412
|
-
|
|
418
|
+
}), Fo = s.forwardRef(function({ className: t, ...o }, n) {
|
|
419
|
+
const e = p();
|
|
420
|
+
return /* @__PURE__ */ r(
|
|
421
|
+
M,
|
|
413
422
|
{
|
|
414
|
-
ref:
|
|
423
|
+
ref: n,
|
|
415
424
|
"data-slot": "combobox-command-loading",
|
|
416
|
-
[
|
|
417
|
-
className:
|
|
425
|
+
[d]: "combobox-command-loading",
|
|
426
|
+
className: b(e.loading, t),
|
|
418
427
|
...o
|
|
419
428
|
}
|
|
420
429
|
);
|
|
421
|
-
}),
|
|
422
|
-
const
|
|
423
|
-
return /* @__PURE__ */
|
|
430
|
+
}), vo = s.forwardRef(function({ className: t, onClick: o, ...n }, e) {
|
|
431
|
+
const m = p();
|
|
432
|
+
return /* @__PURE__ */ r(
|
|
424
433
|
"span",
|
|
425
434
|
{
|
|
426
435
|
ref: e,
|
|
427
436
|
role: "button",
|
|
428
437
|
tabIndex: 0,
|
|
429
|
-
className:
|
|
438
|
+
className: b(m.clear, t),
|
|
430
439
|
onPointerDown: (i) => {
|
|
431
440
|
i.preventDefault(), i.stopPropagation();
|
|
432
441
|
},
|
|
433
442
|
onClick: (i) => {
|
|
434
443
|
i.preventDefault(), i.stopPropagation(), o == null || o(i);
|
|
435
444
|
},
|
|
436
|
-
...
|
|
437
|
-
children: /* @__PURE__ */
|
|
445
|
+
...n,
|
|
446
|
+
children: /* @__PURE__ */ r(R, { className: m.clearSvg })
|
|
438
447
|
}
|
|
439
448
|
);
|
|
440
|
-
}),
|
|
441
|
-
const e =
|
|
442
|
-
return /* @__PURE__ */
|
|
449
|
+
}), So = s.forwardRef(function({ className: t, ...o }, n) {
|
|
450
|
+
const e = p();
|
|
451
|
+
return /* @__PURE__ */ r(
|
|
443
452
|
"span",
|
|
444
453
|
{
|
|
445
|
-
ref:
|
|
446
|
-
className:
|
|
454
|
+
ref: n,
|
|
455
|
+
className: b(e.placeholder, t),
|
|
447
456
|
...o
|
|
448
457
|
}
|
|
449
458
|
);
|
|
450
|
-
}), Ro = s.forwardRef(function({ className: t, onClick: o, ...
|
|
451
|
-
const
|
|
452
|
-
return /* @__PURE__ */
|
|
459
|
+
}), Ro = s.forwardRef(function({ className: t, onClick: o, ...n }, e) {
|
|
460
|
+
const m = p();
|
|
461
|
+
return /* @__PURE__ */ r(
|
|
453
462
|
"span",
|
|
454
463
|
{
|
|
455
464
|
ref: e,
|
|
456
465
|
role: "button",
|
|
457
466
|
tabIndex: 0,
|
|
458
|
-
className:
|
|
467
|
+
className: b(m.clearValue, t),
|
|
459
468
|
onPointerDown: (i) => {
|
|
460
469
|
i.preventDefault(), i.stopPropagation();
|
|
461
470
|
},
|
|
462
471
|
onClick: (i) => {
|
|
463
472
|
i.preventDefault(), i.stopPropagation(), o == null || o(i);
|
|
464
473
|
},
|
|
465
|
-
...
|
|
466
|
-
children: /* @__PURE__ */
|
|
474
|
+
...n,
|
|
475
|
+
children: /* @__PURE__ */ r(R, { className: m.clearValueSvg })
|
|
467
476
|
}
|
|
468
477
|
);
|
|
469
478
|
});
|
|
470
479
|
export {
|
|
471
|
-
|
|
472
|
-
|
|
480
|
+
mo as Combobox,
|
|
481
|
+
vo as ComboboxClear,
|
|
473
482
|
Ro as ComboboxClearValue,
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
483
|
+
bo as ComboboxContent,
|
|
484
|
+
ho as ComboboxEmpty,
|
|
485
|
+
Co as ComboboxGroup,
|
|
486
|
+
wo as ComboboxGroupLabel,
|
|
487
|
+
uo as ComboboxInput,
|
|
488
|
+
xo as ComboboxItem,
|
|
489
|
+
fo as ComboboxItemCheckIcon,
|
|
490
|
+
go as ComboboxList,
|
|
491
|
+
Fo as ComboboxLoading,
|
|
492
|
+
So as ComboboxPlaceholder,
|
|
493
|
+
yo as ComboboxSeparator,
|
|
494
|
+
co as ComboboxTrigger,
|
|
495
|
+
po as ComboboxValue,
|
|
496
|
+
mo as FieldCombobox,
|
|
497
|
+
vo as FieldComboboxClear,
|
|
489
498
|
Ro as FieldComboboxClearValue,
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
499
|
+
bo as FieldComboboxContent,
|
|
500
|
+
ho as FieldComboboxEmpty,
|
|
501
|
+
Co as FieldComboboxGroup,
|
|
502
|
+
wo as FieldComboboxGroupLabel,
|
|
503
|
+
uo as FieldComboboxInput,
|
|
504
|
+
xo as FieldComboboxItem,
|
|
505
|
+
fo as FieldComboboxItemCheckIcon,
|
|
506
|
+
go as FieldComboboxList,
|
|
507
|
+
Fo as FieldComboboxLoading,
|
|
508
|
+
So as FieldComboboxPlaceholder,
|
|
509
|
+
yo as FieldComboboxSeparator,
|
|
510
|
+
co as FieldComboboxTrigger,
|
|
511
|
+
po as FieldComboboxValue
|
|
503
512
|
};
|
|
504
513
|
//# sourceMappingURL=field-combobox.js.map
|