@whatsaaaa/ui-vue 0.1.0 → 0.2.0

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.
@@ -0,0 +1,110 @@
1
+ import { fieldSizeNames, fieldSizes, fieldStateVariants, fieldVariants, iconRoomEnd, iconRoomStart, inGroupRoot, } from "./field.js";
2
+ import input from "./input.js";
3
+ /*
4
+ * The design system's number field spec, specs/number-field.spec.json: the input's field at the
5
+ * control height, the value in figures of one width, with a step button inside the edge on each
6
+ * side, the decrement at the start and the increment at the end. Each holds its icon where the
7
+ * input draws its icons, at the field's padding inside the edge with the control's gap on each
8
+ * side of it, so the value starts past a button as an input's starts past an icon. The browser's
9
+ * own spin buttons stay hidden, as base.css hides them: Reka's field is a text input, the role
10
+ * spinbutton, that its arrow keys step.
11
+ *
12
+ * A step button is Nuxt UI's link button, which Reka keeps out of the Tab order. It is drawn here,
13
+ * through the slot around it, so that it keeps its look when an app passes its own props, as it
14
+ * does for its name: transparent, raised as a ghost button is while the pointer is on it or it is
15
+ * pressed, its icon in the field's icon color and faint where the button is disabled, in a
16
+ * disabled field and at its limit. Its own edge is none: the field's is around it. The raised
17
+ * fill follows the pointer alone, not the gallery's hover, which is the pointer on the field.
18
+ */
19
+ /**
20
+ * The step buttons, whichever side: the box around the icon, the icon's colors, and the raised
21
+ * fill. In forced colors the icon is a button's text, and gray where the button is disabled.
22
+ */
23
+ const stepButton = '[&>button]:px-0 [&>button]:justify-center [&_[data-slot=leadingIcon]]:text-(--ws-field-icon-rest) [&>button:disabled_[data-slot=leadingIcon]]:text-(--ws-button-text-disabled) [@media(hover:hover)]:[&>button:hover:not(:disabled)]:bg-(--ws-button-ghost-bg-hover) [&>button[data-pressed=true]]:bg-(--ws-button-ghost-bg-active) forced-colors:[&_[data-slot=leadingIcon]:not(svg)]:bg-[ButtonText] forced-colors:[&>button:disabled_[data-slot=leadingIcon]:not(svg)]:bg-[GrayText]';
24
+ /**
25
+ * Where a step button is in a row, at each size: its icon the field's padding inside the edge,
26
+ * so the button starts the gap before it; the gap after the icon, and four pixels of the field's
27
+ * height above and below it.
28
+ */
29
+ const stepPlace = {
30
+ xs: {
31
+ decrement: 'ps-[calc(var(--ws-control-border-width-rest)+var(--ws-space-8)-var(--ws-control-gap-xs))]',
32
+ increment: 'pe-[calc(var(--ws-control-border-width-rest)+var(--ws-space-8)-var(--ws-control-gap-xs))]',
33
+ button: '[&>button]:w-[calc(var(--ws-control-icon-size-xs)+var(--ws-control-gap-xs)+var(--ws-control-gap-xs))] [&>button]:h-[calc(var(--ws-control-height-xs)-var(--ws-space-8))]',
34
+ bareDecrement: 'ps-[calc(var(--ws-space-8)-var(--ws-control-gap-xs))]',
35
+ bareIncrement: 'pe-[calc(var(--ws-space-8)-var(--ws-control-gap-xs))]',
36
+ },
37
+ sm: {
38
+ decrement: 'ps-[calc(var(--ws-control-border-width-rest)+var(--ws-space-10)-var(--ws-control-gap-sm))]',
39
+ increment: 'pe-[calc(var(--ws-control-border-width-rest)+var(--ws-space-10)-var(--ws-control-gap-sm))]',
40
+ button: '[&>button]:w-[calc(var(--ws-control-icon-size-sm)+var(--ws-control-gap-sm)+var(--ws-control-gap-sm))] [&>button]:h-[calc(var(--ws-control-height-sm)-var(--ws-space-8))]',
41
+ bareDecrement: 'ps-[calc(var(--ws-space-10)-var(--ws-control-gap-sm))]',
42
+ bareIncrement: 'pe-[calc(var(--ws-space-10)-var(--ws-control-gap-sm))]',
43
+ },
44
+ md: {
45
+ decrement: 'ps-[calc(var(--ws-control-border-width-rest)+var(--ws-space-12)-var(--ws-control-gap-md))]',
46
+ increment: 'pe-[calc(var(--ws-control-border-width-rest)+var(--ws-space-12)-var(--ws-control-gap-md))]',
47
+ button: '[&>button]:w-[calc(var(--ws-control-icon-size-md)+var(--ws-control-gap-md)+var(--ws-control-gap-md))] [&>button]:h-[calc(var(--ws-control-height-md)-var(--ws-space-8))]',
48
+ bareDecrement: 'ps-[calc(var(--ws-space-12)-var(--ws-control-gap-md))]',
49
+ bareIncrement: 'pe-[calc(var(--ws-space-12)-var(--ws-control-gap-md))]',
50
+ },
51
+ lg: {
52
+ decrement: 'ps-[calc(var(--ws-control-border-width-rest)+var(--ws-space-14)-var(--ws-control-gap-lg))]',
53
+ increment: 'pe-[calc(var(--ws-control-border-width-rest)+var(--ws-space-14)-var(--ws-control-gap-lg))]',
54
+ button: '[&>button]:w-[calc(var(--ws-control-icon-size-lg)+var(--ws-control-gap-lg)+var(--ws-control-gap-lg))] [&>button]:h-[calc(var(--ws-control-height-lg)-var(--ws-space-8))]',
55
+ bareDecrement: 'ps-[calc(var(--ws-space-14)-var(--ws-control-gap-lg))]',
56
+ bareIncrement: 'pe-[calc(var(--ws-space-14)-var(--ws-control-gap-lg))]',
57
+ },
58
+ xl: {
59
+ decrement: 'ps-[calc(var(--ws-control-border-width-rest)+var(--ws-space-16)-var(--ws-control-gap-xl))]',
60
+ increment: 'pe-[calc(var(--ws-control-border-width-rest)+var(--ws-space-16)-var(--ws-control-gap-xl))]',
61
+ button: '[&>button]:w-[calc(var(--ws-control-icon-size-xl)+var(--ws-control-gap-xl)+var(--ws-control-gap-xl))] [&>button]:h-[calc(var(--ws-control-height-xl)-var(--ws-space-8))]',
62
+ bareDecrement: 'ps-[calc(var(--ws-space-16)-var(--ws-control-gap-xl))]',
63
+ bareIncrement: 'pe-[calc(var(--ws-space-16)-var(--ws-control-gap-xl))]',
64
+ },
65
+ };
66
+ export default {
67
+ slots: {
68
+ base: `${input.slots.base} tabular-nums`,
69
+ increment: stepButton,
70
+ decrement: stepButton,
71
+ },
72
+ variants: {
73
+ // Nuxt UI's sizes are the field's classes alone, as a string: an object there would be lost
74
+ // in the merge with its theme, so the step buttons take theirs in the compound variants.
75
+ size: {
76
+ xs: fieldSizes.xs.base,
77
+ sm: fieldSizes.sm.base,
78
+ md: fieldSizes.md.base,
79
+ lg: fieldSizes.lg.base,
80
+ xl: fieldSizes.xl.base,
81
+ },
82
+ variant: fieldVariants,
83
+ },
84
+ compoundVariants: [
85
+ ...fieldStateVariants,
86
+ // The value starts past each step button as an input's does past an icon.
87
+ ...fieldSizeNames.map((size) => ({ decrement: true, size, class: iconRoomStart[size] })),
88
+ ...fieldSizeNames.map((size) => ({ increment: true, size, class: iconRoomEnd[size] })),
89
+ { orientation: 'horizontal', class: 'text-start' },
90
+ // The buttons on either side of a row. A column of two at the end stays Nuxt UI's.
91
+ ...fieldSizeNames.map((size) => ({
92
+ orientation: 'horizontal',
93
+ size,
94
+ class: {
95
+ decrement: `${stepPlace[size].decrement} ${stepPlace[size].button}`,
96
+ increment: `${stepPlace[size].increment} ${stepPlace[size].button}`,
97
+ },
98
+ })),
99
+ // The bare field draws no edge: the buttons' icons start the padding in, as a bare input's do.
100
+ ...fieldSizeNames.map((size) => ({
101
+ variant: 'none',
102
+ orientation: 'horizontal',
103
+ size,
104
+ class: { decrement: stepPlace[size].bareDecrement, increment: stepPlace[size].bareIncrement },
105
+ })),
106
+ // In a field group it comes over the controls beside it as a text field does, with the focus
107
+ // over those in a color or under the pointer.
108
+ ...inGroupRoot,
109
+ ],
110
+ };
@@ -0,0 +1,284 @@
1
+ declare const _default: {
2
+ slots: {
3
+ base: string;
4
+ leadingIcon: string;
5
+ trailingIcon: string;
6
+ item: string;
7
+ itemDelete: string;
8
+ itemDeleteIcon: string;
9
+ input: string;
10
+ };
11
+ variants: {
12
+ size: {
13
+ [k: string]: {
14
+ base: string;
15
+ item: string;
16
+ itemDeleteIcon: string;
17
+ leading: string;
18
+ trailing: string;
19
+ leadingIcon: string;
20
+ trailingIcon: string;
21
+ } | {
22
+ base: string;
23
+ item: string;
24
+ itemDeleteIcon: string;
25
+ leading: string;
26
+ trailing: string;
27
+ leadingIcon: string;
28
+ trailingIcon: string;
29
+ } | {
30
+ base: string;
31
+ item: string;
32
+ itemDeleteIcon: string;
33
+ leading: string;
34
+ trailing: string;
35
+ leadingIcon: string;
36
+ trailingIcon: string;
37
+ } | {
38
+ base: string;
39
+ item: string;
40
+ itemDeleteIcon: string;
41
+ leading: string;
42
+ trailing: string;
43
+ leadingIcon: string;
44
+ trailingIcon: string;
45
+ } | {
46
+ base: string;
47
+ item: string;
48
+ itemDeleteIcon: string;
49
+ leading: string;
50
+ trailing: string;
51
+ leadingIcon: string;
52
+ trailingIcon: string;
53
+ } | {
54
+ base: string;
55
+ item: string;
56
+ itemDeleteIcon: string;
57
+ leading: string;
58
+ trailing: string;
59
+ leadingIcon: string;
60
+ trailingIcon: string;
61
+ } | {
62
+ base: string;
63
+ item: string;
64
+ itemDeleteIcon: string;
65
+ leading: string;
66
+ trailing: string;
67
+ leadingIcon: string;
68
+ trailingIcon: string;
69
+ } | {
70
+ base: string;
71
+ item: string;
72
+ itemDeleteIcon: string;
73
+ leading: string;
74
+ trailing: string;
75
+ leadingIcon: string;
76
+ trailingIcon: string;
77
+ } | {
78
+ base: string;
79
+ item: string;
80
+ itemDeleteIcon: string;
81
+ leading: string;
82
+ trailing: string;
83
+ leadingIcon: string;
84
+ trailingIcon: string;
85
+ } | {
86
+ base: string;
87
+ item: string;
88
+ itemDeleteIcon: string;
89
+ leading: string;
90
+ trailing: string;
91
+ leadingIcon: string;
92
+ trailingIcon: string;
93
+ } | {
94
+ base: string;
95
+ item: string;
96
+ itemDeleteIcon: string;
97
+ leading: string;
98
+ trailing: string;
99
+ leadingIcon: string;
100
+ trailingIcon: string;
101
+ } | {
102
+ base: string;
103
+ item: string;
104
+ itemDeleteIcon: string;
105
+ leading: string;
106
+ trailing: string;
107
+ leadingIcon: string;
108
+ trailingIcon: string;
109
+ } | {
110
+ base: string;
111
+ item: string;
112
+ itemDeleteIcon: string;
113
+ leading: string;
114
+ trailing: string;
115
+ leadingIcon: string;
116
+ trailingIcon: string;
117
+ } | {
118
+ base: string;
119
+ item: string;
120
+ itemDeleteIcon: string;
121
+ leading: string;
122
+ trailing: string;
123
+ leadingIcon: string;
124
+ trailingIcon: string;
125
+ } | {
126
+ base: string;
127
+ item: string;
128
+ itemDeleteIcon: string;
129
+ leading: string;
130
+ trailing: string;
131
+ leadingIcon: string;
132
+ trailingIcon: string;
133
+ } | {
134
+ base: string;
135
+ item: string;
136
+ itemDeleteIcon: string;
137
+ leading: string;
138
+ trailing: string;
139
+ leadingIcon: string;
140
+ trailingIcon: string;
141
+ } | {
142
+ base: string;
143
+ item: string;
144
+ itemDeleteIcon: string;
145
+ leading: string;
146
+ trailing: string;
147
+ leadingIcon: string;
148
+ trailingIcon: string;
149
+ } | {
150
+ base: string;
151
+ item: string;
152
+ itemDeleteIcon: string;
153
+ leading: string;
154
+ trailing: string;
155
+ leadingIcon: string;
156
+ trailingIcon: string;
157
+ } | {
158
+ base: string;
159
+ item: string;
160
+ itemDeleteIcon: string;
161
+ leading: string;
162
+ trailing: string;
163
+ leadingIcon: string;
164
+ trailingIcon: string;
165
+ } | {
166
+ base: string;
167
+ item: string;
168
+ itemDeleteIcon: string;
169
+ leading: string;
170
+ trailing: string;
171
+ leadingIcon: string;
172
+ trailingIcon: string;
173
+ } | {
174
+ base: string;
175
+ item: string;
176
+ itemDeleteIcon: string;
177
+ leading: string;
178
+ trailing: string;
179
+ leadingIcon: string;
180
+ trailingIcon: string;
181
+ } | {
182
+ base: string;
183
+ item: string;
184
+ itemDeleteIcon: string;
185
+ leading: string;
186
+ trailing: string;
187
+ leadingIcon: string;
188
+ trailingIcon: string;
189
+ } | {
190
+ base: string;
191
+ item: string;
192
+ itemDeleteIcon: string;
193
+ leading: string;
194
+ trailing: string;
195
+ leadingIcon: string;
196
+ trailingIcon: string;
197
+ } | {
198
+ base: string;
199
+ item: string;
200
+ itemDeleteIcon: string;
201
+ leading: string;
202
+ trailing: string;
203
+ leadingIcon: string;
204
+ trailingIcon: string;
205
+ } | {
206
+ base: string;
207
+ item: string;
208
+ itemDeleteIcon: string;
209
+ leading: string;
210
+ trailing: string;
211
+ leadingIcon: string;
212
+ trailingIcon: string;
213
+ };
214
+ };
215
+ variant: {
216
+ outline: string;
217
+ soft: string;
218
+ subtle: string;
219
+ ghost: string;
220
+ none: string;
221
+ };
222
+ };
223
+ compoundVariants: ({
224
+ variant: string;
225
+ highlight: boolean;
226
+ class: string;
227
+ color?: undefined;
228
+ } | {
229
+ variant: string;
230
+ highlight: boolean;
231
+ color: string;
232
+ class: string;
233
+ } | {
234
+ fixed: boolean;
235
+ size: string[];
236
+ class: string;
237
+ } | {
238
+ leading: boolean;
239
+ size: "xs" | "sm" | "md" | "lg" | "xl";
240
+ class: string;
241
+ } | {
242
+ trailing: boolean;
243
+ size: "xs" | "sm" | "md" | "lg" | "xl";
244
+ class: string;
245
+ } | {
246
+ loading: boolean;
247
+ leading: boolean;
248
+ class: {
249
+ leadingIcon: string;
250
+ trailingIcon?: undefined;
251
+ };
252
+ trailing?: undefined;
253
+ } | {
254
+ loading: boolean;
255
+ leading: boolean;
256
+ trailing: boolean;
257
+ class: {
258
+ trailingIcon: string;
259
+ leadingIcon?: undefined;
260
+ };
261
+ } | ({
262
+ highlight: boolean;
263
+ } & {
264
+ color: import("./shared.ts").Color;
265
+ class: string | Record<string, string>;
266
+ }) | {
267
+ variant: string[];
268
+ class: string;
269
+ } | {
270
+ fieldGroup: string[];
271
+ class: string;
272
+ highlight?: undefined;
273
+ } | {
274
+ fieldGroup: string[];
275
+ highlight: boolean;
276
+ class: string;
277
+ } | {
278
+ variant: string[];
279
+ class: {
280
+ item: string;
281
+ };
282
+ })[];
283
+ };
284
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import { fieldSizes, fieldWithinCompoundVariants, fieldWithinVariants, iconsWithinSizes, inGroup, } from "./field.js";
2
+ import { inputSlots } from "./input.js";
3
+ import { tag, tagDelete, tagDeleteIcon, tagDeleteIconSize, tagOfField, tagOnRaised, tagsFieldSizes, tagsInput, } from "./tags.js";
4
+ /*
5
+ * A field of tags, on the text field: its edge, its icons and its colors, with its focus on the
6
+ * text field inside it. Its tags are the system's tag, which tags.ts draws. Nuxt UI draws the
7
+ * field and the root as one element, so the root takes the field's classes.
8
+ */
9
+ const sizes = Object.fromEntries(['xs', 'sm', 'md', 'lg', 'xl'].map((size) => [
10
+ size,
11
+ {
12
+ ...fieldSizes[size],
13
+ ...iconsWithinSizes[size],
14
+ base: tagsFieldSizes[size],
15
+ item: tagOfField[size],
16
+ itemDeleteIcon: tagDeleteIconSize,
17
+ },
18
+ ]));
19
+ export default {
20
+ slots: {
21
+ base: inputSlots.base,
22
+ leadingIcon: inputSlots.leadingIcon,
23
+ trailingIcon: inputSlots.trailingIcon,
24
+ item: tag,
25
+ itemDelete: tagDelete,
26
+ itemDeleteIcon: tagDeleteIcon,
27
+ input: tagsInput,
28
+ },
29
+ variants: {
30
+ size: sizes,
31
+ variant: fieldWithinVariants,
32
+ },
33
+ compoundVariants: [
34
+ ...fieldWithinCompoundVariants,
35
+ ...inGroup,
36
+ { variant: ['soft', 'subtle'], class: { item: tagOnRaised } },
37
+ ],
38
+ };
@@ -0,0 +1,2 @@
1
+ import inputDate from './input-date.ts';
2
+ export default inputDate;
@@ -0,0 +1,5 @@
1
+ import inputDate from "./input-date.js";
2
+ /*
3
+ * A time typed a part at a time: the date field's, input-date.ts.
4
+ */
5
+ export default inputDate;
@@ -1,3 +1,18 @@
1
+ /** The text field's value and icons, which the fields built on it start from. */
2
+ export declare const inputSlots: {
3
+ base: string;
4
+ leadingIcon: string;
5
+ trailingIcon: string;
6
+ };
7
+ /** The bare field draws no edge: its icons start the padding in, where its value does. */
8
+ export declare const bareIcons: {
9
+ variant: string;
10
+ size: string;
11
+ class: {
12
+ leading: string;
13
+ trailing: string;
14
+ };
15
+ }[];
1
16
  declare const _default: {
2
17
  slots: {
3
18
  base: string;
@@ -54,60 +69,27 @@ declare const _default: {
54
69
  };
55
70
  };
56
71
  compoundVariants: ({
57
- leading: boolean;
58
- size: string;
59
- class: string;
60
- trailing?: undefined;
61
- } | {
62
- trailing: boolean;
63
- size: string;
64
- class: string;
65
- leading?: undefined;
66
- } | ({
67
- highlight: boolean;
68
- } & {
69
- color: import("./shared.ts").Color;
70
- class: string | Record<string, string>;
71
- }) | {
72
- variant: string[];
73
- class: string;
74
- highlight?: undefined;
75
- color?: undefined;
76
- fixed?: undefined;
77
- size?: undefined;
78
- loading?: undefined;
79
- leading?: undefined;
80
- trailing?: undefined;
81
- } | {
82
72
  variant: string;
83
73
  highlight: boolean;
84
74
  class: string;
85
75
  color?: undefined;
86
- fixed?: undefined;
87
- size?: undefined;
88
- loading?: undefined;
89
- leading?: undefined;
90
- trailing?: undefined;
91
76
  } | {
92
77
  variant: string;
93
78
  highlight: boolean;
94
79
  color: string;
95
80
  class: string;
96
- fixed?: undefined;
97
- size?: undefined;
98
- loading?: undefined;
99
- leading?: undefined;
100
- trailing?: undefined;
101
81
  } | {
102
82
  fixed: boolean;
103
83
  size: string[];
104
84
  class: string;
105
- variant?: undefined;
106
- highlight?: undefined;
107
- color?: undefined;
108
- loading?: undefined;
109
- leading?: undefined;
110
- trailing?: undefined;
85
+ } | {
86
+ leading: boolean;
87
+ size: "xs" | "sm" | "md" | "lg" | "xl";
88
+ class: string;
89
+ } | {
90
+ trailing: boolean;
91
+ size: "xs" | "sm" | "md" | "lg" | "xl";
92
+ class: string;
111
93
  } | {
112
94
  loading: boolean;
113
95
  leading: boolean;
@@ -115,11 +97,6 @@ declare const _default: {
115
97
  leadingIcon: string;
116
98
  trailingIcon?: undefined;
117
99
  };
118
- variant?: undefined;
119
- highlight?: undefined;
120
- color?: undefined;
121
- fixed?: undefined;
122
- size?: undefined;
123
100
  trailing?: undefined;
124
101
  } | {
125
102
  loading: boolean;
@@ -129,11 +106,26 @@ declare const _default: {
129
106
  trailingIcon: string;
130
107
  leadingIcon?: undefined;
131
108
  };
132
- variant?: undefined;
109
+ } | ({
110
+ highlight: boolean;
111
+ } & {
112
+ color: import("./shared.ts").Color;
113
+ class: string | Record<string, string>;
114
+ }) | {
115
+ variant: string[];
116
+ class: string;
117
+ } | {
118
+ fieldGroup: string[];
119
+ class: {
120
+ root: string;
121
+ };
133
122
  highlight?: undefined;
134
- color?: undefined;
135
- fixed?: undefined;
136
- size?: undefined;
123
+ } | {
124
+ fieldGroup: string[];
125
+ highlight: boolean;
126
+ class: {
127
+ root: string;
128
+ };
137
129
  } | {
138
130
  variant: string;
139
131
  size: string;
@@ -1,12 +1,42 @@
1
- import { fieldCompoundVariants, fieldSizes, fieldVariants } from "./field.js";
1
+ import { fieldCompoundVariants, fieldSizes, fieldVariants, inGroupRoot } from "./field.js";
2
2
  import { forcedIcon, transition } from "./shared.js";
3
- export default {
4
- slots: {
5
- // The system uses no placeholders: one an app passes anyway is the secondary text, at 4.5:1.
6
- base: `rounded-(--ws-control-radius) font-sans placeholder:text-text-secondary disabled:text-(--ws-field-text-disabled) disabled:opacity-100 ${transition}`,
7
- leadingIcon: `text-(--ws-field-icon-rest) ${forcedIcon}`,
8
- trailingIcon: `text-(--ws-field-icon-rest) ${forcedIcon}`,
3
+ /** The text field's value and icons, which the fields built on it start from. */
4
+ export const inputSlots = {
5
+ // The system uses no placeholders: one an app passes anyway is the secondary text, at 4.5:1.
6
+ base: `rounded-(--ws-control-radius) font-sans placeholder:text-text-secondary disabled:text-(--ws-field-text-disabled) disabled:opacity-100 ${transition}`,
7
+ leadingIcon: `text-(--ws-field-icon-rest) ${forcedIcon}`,
8
+ trailingIcon: `text-(--ws-field-icon-rest) ${forcedIcon}`,
9
+ };
10
+ /** The bare field draws no edge: its icons start the padding in, where its value does. */
11
+ export const bareIcons = [
12
+ {
13
+ variant: 'none',
14
+ size: 'xs',
15
+ class: { leading: 'ps-(--ws-space-8)', trailing: 'pe-(--ws-space-8)' },
16
+ },
17
+ {
18
+ variant: 'none',
19
+ size: 'sm',
20
+ class: { leading: 'ps-(--ws-space-10)', trailing: 'pe-(--ws-space-10)' },
21
+ },
22
+ {
23
+ variant: 'none',
24
+ size: 'md',
25
+ class: { leading: 'ps-(--ws-space-12)', trailing: 'pe-(--ws-space-12)' },
26
+ },
27
+ {
28
+ variant: 'none',
29
+ size: 'lg',
30
+ class: { leading: 'ps-(--ws-space-14)', trailing: 'pe-(--ws-space-14)' },
31
+ },
32
+ {
33
+ variant: 'none',
34
+ size: 'xl',
35
+ class: { leading: 'ps-(--ws-space-16)', trailing: 'pe-(--ws-space-16)' },
9
36
  },
37
+ ];
38
+ export default {
39
+ slots: inputSlots,
10
40
  variants: {
11
41
  size: fieldSizes,
12
42
  variant: fieldVariants,
@@ -14,33 +44,5 @@ export default {
14
44
  file: 'file:me-2 file:font-mono file:font-semibold file:text-text-secondary file:outline-none',
15
45
  },
16
46
  },
17
- compoundVariants: [
18
- ...fieldCompoundVariants,
19
- // The bare field draws no edge: its icons start the padding in, where its value does.
20
- {
21
- variant: 'none',
22
- size: 'xs',
23
- class: { leading: 'ps-(--ws-space-8)', trailing: 'pe-(--ws-space-8)' },
24
- },
25
- {
26
- variant: 'none',
27
- size: 'sm',
28
- class: { leading: 'ps-(--ws-space-10)', trailing: 'pe-(--ws-space-10)' },
29
- },
30
- {
31
- variant: 'none',
32
- size: 'md',
33
- class: { leading: 'ps-(--ws-space-12)', trailing: 'pe-(--ws-space-12)' },
34
- },
35
- {
36
- variant: 'none',
37
- size: 'lg',
38
- class: { leading: 'ps-(--ws-space-14)', trailing: 'pe-(--ws-space-14)' },
39
- },
40
- {
41
- variant: 'none',
42
- size: 'xl',
43
- class: { leading: 'ps-(--ws-space-16)', trailing: 'pe-(--ws-space-16)' },
44
- },
45
- ],
47
+ compoundVariants: [...fieldCompoundVariants, ...bareIcons, ...inGroupRoot],
46
48
  };