@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,61 @@
1
+ declare const _default: {
2
+ slots: {
3
+ base: string;
4
+ separator: string;
5
+ };
6
+ variants: {
7
+ size: {
8
+ xs: {
9
+ root: string;
10
+ base: string;
11
+ };
12
+ sm: {
13
+ root: string;
14
+ base: string;
15
+ };
16
+ md: {
17
+ root: string;
18
+ base: string;
19
+ };
20
+ lg: {
21
+ root: string;
22
+ base: string;
23
+ };
24
+ xl: {
25
+ root: string;
26
+ base: string;
27
+ };
28
+ };
29
+ variant: {
30
+ outline: string;
31
+ soft: string;
32
+ subtle: string;
33
+ ghost: string;
34
+ none: string;
35
+ };
36
+ };
37
+ compoundVariants: ({
38
+ variant: string;
39
+ highlight: boolean;
40
+ class: string;
41
+ color?: undefined;
42
+ } | {
43
+ variant: string;
44
+ highlight: boolean;
45
+ color: string;
46
+ class: string;
47
+ } | {
48
+ fixed: boolean;
49
+ size: string[];
50
+ class: string;
51
+ } | ({
52
+ highlight: boolean;
53
+ } & {
54
+ color: import("./shared.ts").Color;
55
+ class: string | Record<string, string>;
56
+ }) | {
57
+ variant: string[];
58
+ class: string;
59
+ })[];
60
+ };
61
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { fieldStateVariants, fieldVariants } from "./field.js";
2
+ import { transition } from "./shared.js";
3
+ /*
4
+ * A code typed a character to a cell: each cell is a field, square at the control height, with
5
+ * the field's edge, colors and focus ring, and its character centered in Inter, the field's
6
+ * value. The cells are the control's gap apart, the gap between an icon and its value.
7
+ */
8
+ export default {
9
+ slots: {
10
+ base: `rounded-(--ws-control-radius) font-sans tabular-nums placeholder:text-text-secondary disabled:text-(--ws-field-text-disabled) disabled:opacity-100 ${transition}`,
11
+ separator: 'text-text-secondary',
12
+ },
13
+ variants: {
14
+ size: {
15
+ xs: {
16
+ root: 'gap-(--ws-control-gap-xs)',
17
+ base: 'size-(--ws-control-height-xs) p-0 text-body-sm',
18
+ },
19
+ sm: {
20
+ root: 'gap-(--ws-control-gap-sm)',
21
+ base: 'size-(--ws-control-height-sm) p-0 text-body-sm',
22
+ },
23
+ md: {
24
+ root: 'gap-(--ws-control-gap-md)',
25
+ base: 'size-(--ws-control-height-md) p-0 text-body',
26
+ },
27
+ lg: {
28
+ root: 'gap-(--ws-control-gap-lg)',
29
+ base: 'size-(--ws-control-height-lg) p-0 text-body',
30
+ },
31
+ xl: {
32
+ root: 'gap-(--ws-control-gap-xl)',
33
+ base: 'size-(--ws-control-height-xl) p-0 text-body',
34
+ },
35
+ },
36
+ variant: fieldVariants,
37
+ },
38
+ // a cell has no icons: the field's states alone
39
+ compoundVariants: fieldStateVariants,
40
+ };
@@ -95,60 +95,27 @@ declare const _default: {
95
95
  };
96
96
  };
97
97
  compoundVariants: ({
98
- leading: boolean;
99
- size: string;
100
- class: string;
101
- trailing?: undefined;
102
- } | {
103
- trailing: boolean;
104
- size: string;
105
- class: string;
106
- leading?: undefined;
107
- } | ({
108
- highlight: boolean;
109
- } & {
110
- color: import("./shared.ts").Color;
111
- class: string | Record<string, string>;
112
- }) | {
113
- variant: string[];
114
- class: string;
115
- highlight?: undefined;
116
- color?: undefined;
117
- fixed?: undefined;
118
- size?: undefined;
119
- loading?: undefined;
120
- leading?: undefined;
121
- trailing?: undefined;
122
- } | {
123
98
  variant: string;
124
99
  highlight: boolean;
125
100
  class: string;
126
101
  color?: undefined;
127
- fixed?: undefined;
128
- size?: undefined;
129
- loading?: undefined;
130
- leading?: undefined;
131
- trailing?: undefined;
132
102
  } | {
133
103
  variant: string;
134
104
  highlight: boolean;
135
105
  color: string;
136
106
  class: string;
137
- fixed?: undefined;
138
- size?: undefined;
139
- loading?: undefined;
140
- leading?: undefined;
141
- trailing?: undefined;
142
107
  } | {
143
108
  fixed: boolean;
144
109
  size: string[];
145
110
  class: string;
146
- variant?: undefined;
147
- highlight?: undefined;
148
- color?: undefined;
149
- loading?: undefined;
150
- leading?: undefined;
151
- trailing?: undefined;
111
+ } | {
112
+ leading: boolean;
113
+ size: "xs" | "sm" | "md" | "lg" | "xl";
114
+ class: string;
115
+ } | {
116
+ trailing: boolean;
117
+ size: "xs" | "sm" | "md" | "lg" | "xl";
118
+ class: string;
152
119
  } | {
153
120
  loading: boolean;
154
121
  leading: boolean;
@@ -156,11 +123,6 @@ declare const _default: {
156
123
  leadingIcon: string;
157
124
  trailingIcon?: undefined;
158
125
  };
159
- variant?: undefined;
160
- highlight?: undefined;
161
- color?: undefined;
162
- fixed?: undefined;
163
- size?: undefined;
164
126
  trailing?: undefined;
165
127
  } | {
166
128
  loading: boolean;
@@ -170,11 +132,22 @@ declare const _default: {
170
132
  trailingIcon: string;
171
133
  leadingIcon?: undefined;
172
134
  };
173
- variant?: undefined;
135
+ } | ({
136
+ highlight: boolean;
137
+ } & {
138
+ color: import("./shared.ts").Color;
139
+ class: string | Record<string, string>;
140
+ }) | {
141
+ variant: string[];
142
+ class: string;
143
+ } | {
144
+ fieldGroup: string[];
145
+ class: string;
174
146
  highlight?: undefined;
175
- color?: undefined;
176
- fixed?: undefined;
177
- size?: undefined;
147
+ } | {
148
+ fieldGroup: string[];
149
+ highlight: boolean;
150
+ class: string;
178
151
  })[];
179
152
  defaultVariants: object;
180
153
  };
@@ -1,4 +1,4 @@
1
- import { fieldCompoundVariants } from "./field.js";
1
+ import { fieldCompoundVariants, inGroup } from "./field.js";
2
2
  import { selectSlots, selectVariants } from "./select.js";
3
3
  /*
4
4
  * A select with a search field at the top of its list: the bare field, at the control height of
@@ -17,6 +17,6 @@ export default {
17
17
  input: 'border-b-thin border-border',
18
18
  },
19
19
  variants: selectVariants,
20
- compoundVariants: fieldCompoundVariants,
20
+ compoundVariants: [...fieldCompoundVariants, ...inGroup],
21
21
  defaultVariants,
22
22
  };
@@ -196,60 +196,27 @@ declare const _default: {
196
196
  };
197
197
  };
198
198
  compoundVariants: ({
199
- leading: boolean;
200
- size: string;
201
- class: string;
202
- trailing?: undefined;
203
- } | {
204
- trailing: boolean;
205
- size: string;
206
- class: string;
207
- leading?: undefined;
208
- } | ({
209
- highlight: boolean;
210
- } & {
211
- color: import("./shared.ts").Color;
212
- class: string | Record<string, string>;
213
- }) | {
214
- variant: string[];
215
- class: string;
216
- highlight?: undefined;
217
- color?: undefined;
218
- fixed?: undefined;
219
- size?: undefined;
220
- loading?: undefined;
221
- leading?: undefined;
222
- trailing?: undefined;
223
- } | {
224
199
  variant: string;
225
200
  highlight: boolean;
226
201
  class: string;
227
202
  color?: undefined;
228
- fixed?: undefined;
229
- size?: undefined;
230
- loading?: undefined;
231
- leading?: undefined;
232
- trailing?: undefined;
233
203
  } | {
234
204
  variant: string;
235
205
  highlight: boolean;
236
206
  color: string;
237
207
  class: string;
238
- fixed?: undefined;
239
- size?: undefined;
240
- loading?: undefined;
241
- leading?: undefined;
242
- trailing?: undefined;
243
208
  } | {
244
209
  fixed: boolean;
245
210
  size: string[];
246
211
  class: string;
247
- variant?: undefined;
248
- highlight?: undefined;
249
- color?: undefined;
250
- loading?: undefined;
251
- leading?: undefined;
252
- trailing?: undefined;
212
+ } | {
213
+ leading: boolean;
214
+ size: "xs" | "sm" | "md" | "lg" | "xl";
215
+ class: string;
216
+ } | {
217
+ trailing: boolean;
218
+ size: "xs" | "sm" | "md" | "lg" | "xl";
219
+ class: string;
253
220
  } | {
254
221
  loading: boolean;
255
222
  leading: boolean;
@@ -257,11 +224,6 @@ declare const _default: {
257
224
  leadingIcon: string;
258
225
  trailingIcon?: undefined;
259
226
  };
260
- variant?: undefined;
261
- highlight?: undefined;
262
- color?: undefined;
263
- fixed?: undefined;
264
- size?: undefined;
265
227
  trailing?: undefined;
266
228
  } | {
267
229
  loading: boolean;
@@ -271,11 +233,22 @@ declare const _default: {
271
233
  trailingIcon: string;
272
234
  leadingIcon?: undefined;
273
235
  };
274
- variant?: undefined;
236
+ } | ({
237
+ highlight: boolean;
238
+ } & {
239
+ color: import("./shared.ts").Color;
240
+ class: string | Record<string, string>;
241
+ }) | {
242
+ variant: string[];
243
+ class: string;
244
+ } | {
245
+ fieldGroup: string[];
246
+ class: string;
275
247
  highlight?: undefined;
276
- color?: undefined;
277
- fixed?: undefined;
278
- size?: undefined;
248
+ } | {
249
+ fieldGroup: string[];
250
+ highlight: boolean;
251
+ class: string;
279
252
  })[];
280
253
  };
281
254
  export default _default;
@@ -1,4 +1,4 @@
1
- import { fieldCompoundVariants, fieldSizes, fieldVariants } from "./field.js";
1
+ import { fieldCompoundVariants, fieldSizes, fieldVariants, inGroup } from "./field.js";
2
2
  import { forcedIcon, transition } from "./shared.js";
3
3
  /*
4
4
  * The design system's select spec, specs/select.spec.json, and its select menu spec. The trigger
@@ -105,5 +105,5 @@ export const selectVariants = {
105
105
  export default {
106
106
  slots: selectSlots,
107
107
  variants: selectVariants,
108
- compoundVariants: fieldCompoundVariants,
108
+ compoundVariants: [...fieldCompoundVariants, ...inGroup],
109
109
  };
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The field at each size: at least the control's height, its tags and its text on lines of the
3
+ * text field's, the paddings of the field's, an edge wider than at rest taking what it adds off
4
+ * them. On the smaller sizes a line of text fills the field, which then has no padding above and
5
+ * under it.
6
+ */
7
+ export declare const tagsFieldSizes: {
8
+ xs: string;
9
+ sm: string;
10
+ md: string;
11
+ lg: string;
12
+ xl: string;
13
+ };
14
+ /** The tag of each size of the field: a size smaller, and the smallest on the two smallest. */
15
+ export declare const tagOfField: {
16
+ xs: string;
17
+ sm: string;
18
+ md: string;
19
+ lg: string;
20
+ xl: string;
21
+ };
22
+ /** A tag, as the badge draws one, neutral: its words wrap where a long one is wider than the field. */
23
+ export declare const tag = "inline-flex items-center rounded-(--ws-tag-radius) font-mono font-normal wrap-anywhere ring-0 bg-(--ws-tag-neutral-bg-rest) text-(--ws-tag-neutral-text-rest) data-disabled:opacity-100 data-disabled:text-(--ws-field-text-disabled) data-[state=active]:bg-(--ws-tag-neutral-bg-rest) outline-interactive data-[state=active]:outline-2 data-[state=active]:outline-solid data-[state=active]:outline-offset-3 forced-colors:border forced-colors:border-[CanvasText] forced-colors:data-[state=active]:bg-[Highlight] forced-colors:data-[state=active]:text-[HighlightText] forced-colors:data-[state=active]:forced-color-adjust-none";
24
+ /** On a raised field, the soft and the subtle one, a tag is on the field's color at rest. */
25
+ export declare const tagOnRaised = "bg-(--ws-field-bg-rest) data-[state=active]:bg-(--ws-field-bg-rest)";
26
+ /** The button that takes a tag out, and its icon. */
27
+ export declare const tagDelete = "inline-flex items-center rounded-(--ws-radius-xs) text-(--ws-field-icon-rest) hover:text-text hover:bg-transparent disabled:opacity-100 disabled:text-(--ws-field-text-disabled) transition-colors motion-reduce:transition-none";
28
+ export declare const tagDeleteIcon = "forced-colors:not-[svg]:bg-[CanvasText] forced-colors:in-disabled:not-[svg]:bg-[GrayText] forced-colors:in-aria-disabled:not-[svg]:bg-[GrayText] forced-colors:in-data-[state=active]:not-[svg]:bg-[HighlightText]";
29
+ /**
30
+ * The icon's size at every size of the field: the system's icon size, as a tag's icons are. Nuxt
31
+ * UI sizes it with the field, so it goes in each of the field's sizes, after Nuxt UI's.
32
+ */
33
+ export declare const tagDeleteIconSize = "size-icon";
34
+ /**
35
+ * The text field after the tags, with no edge of its own: the field shows its focus. It fills
36
+ * what its line leaves, at least --ws-space-48. Its width is a share of the field's, as a text
37
+ * field's is: one with no width takes the browser's twenty characters at least, which would hold
38
+ * a field of tags at the larger sizes, with the room for its icons, wider than a phone's column.
39
+ */
40
+ export declare const tagsInput = "w-full min-w-(--ws-space-48) text-(--ws-field-text-rest) placeholder:text-text-secondary disabled:text-(--ws-field-text-disabled) disabled:opacity-100";
@@ -0,0 +1,52 @@
1
+ import { tagSizes } from "./badge.js";
2
+ import { forcedEdge, forcedIcon, transition } from "./shared.js";
3
+ /*
4
+ * A field of tags: the tags an input tags field holds, and the ones an input menu that takes
5
+ * several values shows. The field is a field at the control height that grows as its tags wrap
6
+ * onto more lines; each tag is the system's tag, neutral, at the size that fits the field's, with
7
+ * a button that takes it out. The text field after the tags is the field's value, in Inter.
8
+ *
9
+ * The tag on its tint has no edge, and an edge in forced colors, as every tag there. The tag the
10
+ * arrow keys are on, the one Backspace takes out, has the system's focus ring, and in forced
11
+ * colors the selection's colors.
12
+ */
13
+ /**
14
+ * The field at each size: at least the control's height, its tags and its text on lines of the
15
+ * text field's, the paddings of the field's, an edge wider than at rest taking what it adds off
16
+ * them. On the smaller sizes a line of text fills the field, which then has no padding above and
17
+ * under it.
18
+ */
19
+ export const tagsFieldSizes = {
20
+ xs: 'h-auto min-h-(--ws-control-height-xs) px-[calc(var(--ws-space-8)-var(--field-edge-extra,0px))] py-0 gap-(--ws-control-gap-xs) text-body-sm',
21
+ sm: 'h-auto min-h-(--ws-control-height-sm) px-[calc(var(--ws-space-10)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-2)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-sm) text-body-sm',
22
+ md: 'h-auto min-h-(--ws-control-height-md) px-[calc(var(--ws-space-12)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-4)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-md) text-body',
23
+ lg: 'h-auto min-h-(--ws-control-height-lg) px-[calc(var(--ws-space-14)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-6)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-lg) text-body',
24
+ xl: 'h-auto min-h-(--ws-control-height-xl) px-[calc(var(--ws-space-16)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-8)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-xl) text-body',
25
+ };
26
+ /** The tag of each size of the field: a size smaller, and the smallest on the two smallest. */
27
+ export const tagOfField = {
28
+ xs: tagSizes.xs,
29
+ sm: tagSizes.xs,
30
+ md: tagSizes.sm,
31
+ lg: tagSizes.md,
32
+ xl: tagSizes.lg,
33
+ };
34
+ /** A tag, as the badge draws one, neutral: its words wrap where a long one is wider than the field. */
35
+ export const tag = `inline-flex items-center rounded-(--ws-tag-radius) font-mono font-normal wrap-anywhere ring-0 bg-(--ws-tag-neutral-bg-rest) text-(--ws-tag-neutral-text-rest) data-disabled:opacity-100 data-disabled:text-(--ws-field-text-disabled) data-[state=active]:bg-(--ws-tag-neutral-bg-rest) outline-interactive data-[state=active]:outline-2 data-[state=active]:outline-solid data-[state=active]:outline-offset-3 ${forcedEdge} forced-colors:data-[state=active]:bg-[Highlight] forced-colors:data-[state=active]:text-[HighlightText] forced-colors:data-[state=active]:forced-color-adjust-none`;
36
+ /** On a raised field, the soft and the subtle one, a tag is on the field's color at rest. */
37
+ export const tagOnRaised = 'bg-(--ws-field-bg-rest) data-[state=active]:bg-(--ws-field-bg-rest)';
38
+ /** The button that takes a tag out, and its icon. */
39
+ export const tagDelete = `inline-flex items-center rounded-(--ws-radius-xs) text-(--ws-field-icon-rest) hover:text-text hover:bg-transparent disabled:opacity-100 disabled:text-(--ws-field-text-disabled) ${transition}`;
40
+ export const tagDeleteIcon = `${forcedIcon} forced-colors:in-data-[state=active]:not-[svg]:bg-[HighlightText]`;
41
+ /**
42
+ * The icon's size at every size of the field: the system's icon size, as a tag's icons are. Nuxt
43
+ * UI sizes it with the field, so it goes in each of the field's sizes, after Nuxt UI's.
44
+ */
45
+ export const tagDeleteIconSize = 'size-icon';
46
+ /**
47
+ * The text field after the tags, with no edge of its own: the field shows its focus. It fills
48
+ * what its line leaves, at least --ws-space-48. Its width is a share of the field's, as a text
49
+ * field's is: one with no width takes the browser's twenty characters at least, which would hold
50
+ * a field of tags at the larger sizes, with the room for its icons, wider than a phone's column.
51
+ */
52
+ export const tagsInput = 'w-full min-w-(--ws-space-48) text-(--ws-field-text-rest) placeholder:text-text-secondary disabled:text-(--ws-field-text-disabled) disabled:opacity-100';
@@ -0,0 +1,127 @@
1
+ declare const _default: {
2
+ slots: {
3
+ base: string;
4
+ leadingIcon: string;
5
+ trailingIcon: string;
6
+ };
7
+ variants: {
8
+ size: {
9
+ xs: {
10
+ base: string;
11
+ leading: string;
12
+ trailing: string;
13
+ leadingIcon: string;
14
+ trailingIcon: string;
15
+ };
16
+ sm: {
17
+ base: string;
18
+ leading: string;
19
+ trailing: string;
20
+ leadingIcon: string;
21
+ trailingIcon: string;
22
+ };
23
+ md: {
24
+ base: string;
25
+ leading: string;
26
+ trailing: string;
27
+ leadingIcon: string;
28
+ trailingIcon: string;
29
+ };
30
+ lg: {
31
+ base: string;
32
+ leading: string;
33
+ trailing: string;
34
+ leadingIcon: string;
35
+ trailingIcon: string;
36
+ };
37
+ xl: {
38
+ base: string;
39
+ leading: string;
40
+ trailing: string;
41
+ leadingIcon: string;
42
+ trailingIcon: string;
43
+ };
44
+ };
45
+ variant: {
46
+ outline: string;
47
+ soft: string;
48
+ subtle: string;
49
+ ghost: string;
50
+ none: string;
51
+ };
52
+ type: {
53
+ file: string;
54
+ };
55
+ };
56
+ compoundVariants: ({
57
+ variant: string;
58
+ highlight: boolean;
59
+ class: string;
60
+ color?: undefined;
61
+ } | {
62
+ variant: string;
63
+ highlight: boolean;
64
+ color: string;
65
+ class: string;
66
+ } | {
67
+ fixed: boolean;
68
+ size: string[];
69
+ class: string;
70
+ } | {
71
+ leading: boolean;
72
+ size: "xs" | "sm" | "md" | "lg" | "xl";
73
+ class: string;
74
+ } | {
75
+ trailing: boolean;
76
+ size: "xs" | "sm" | "md" | "lg" | "xl";
77
+ class: string;
78
+ } | {
79
+ loading: boolean;
80
+ leading: boolean;
81
+ class: {
82
+ leadingIcon: string;
83
+ trailingIcon?: undefined;
84
+ };
85
+ trailing?: undefined;
86
+ } | {
87
+ loading: boolean;
88
+ leading: boolean;
89
+ trailing: boolean;
90
+ class: {
91
+ trailingIcon: string;
92
+ leadingIcon?: undefined;
93
+ };
94
+ } | ({
95
+ highlight: boolean;
96
+ } & {
97
+ color: import("./shared.ts").Color;
98
+ class: string | Record<string, string>;
99
+ }) | {
100
+ variant: string[];
101
+ class: string;
102
+ } | {
103
+ fieldGroup: string[];
104
+ class: {
105
+ root: string;
106
+ };
107
+ highlight?: undefined;
108
+ } | {
109
+ fieldGroup: string[];
110
+ highlight: boolean;
111
+ class: {
112
+ root: string;
113
+ };
114
+ } | {
115
+ variant: string;
116
+ size: string;
117
+ class: {
118
+ leading: string;
119
+ trailing: string;
120
+ };
121
+ } | {
122
+ variant: string;
123
+ size: string;
124
+ class: string;
125
+ })[];
126
+ };
127
+ export default _default;
@@ -0,0 +1,72 @@
1
+ import { fieldSizes } from "./field.js";
2
+ import input from "./input.js";
3
+ /*
4
+ * The design system's text area spec, specs/textarea.spec.json: the input's field, with rows of
5
+ * text in place of its one line and no height of its own, so it is as tall as its rows. Its value
6
+ * is the field's text style at each size, line height and all. The padding above and below the
7
+ * text is half of what the control's height leaves around a line, less the edge, so its first
8
+ * line sits where an input's value does and a text area of one row is as tall as the input of
9
+ * its size. An edge wider than the rest edge, an error's, takes what it adds off the padding on
10
+ * every side, so the text keeps its place.
11
+ *
12
+ * Nuxt UI builds its text area on the input's theme, and so does this one: the edge, the value,
13
+ * the states and the variants are the input's. The spec draws no icons, as several lines have no
14
+ * one line for an icon to sit on: one an app passes anyway sits where the input's does.
15
+ */
16
+ /** The heights of the rows, with the padding around them; the icons' places are the input's. */
17
+ const size = {
18
+ xs: {
19
+ ...fieldSizes.xs,
20
+ base: 'px-[calc(var(--ws-space-8)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-2)-var(--ws-control-border-width-rest)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-xs) text-body-sm',
21
+ },
22
+ sm: {
23
+ ...fieldSizes.sm,
24
+ base: 'px-[calc(var(--ws-space-10)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-4)-var(--ws-control-border-width-rest)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-sm) text-body-sm',
25
+ },
26
+ md: {
27
+ ...fieldSizes.md,
28
+ base: 'px-[calc(var(--ws-space-12)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-6)-var(--ws-control-border-width-rest)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-md) text-body',
29
+ },
30
+ lg: {
31
+ ...fieldSizes.lg,
32
+ base: 'px-[calc(var(--ws-space-14)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-8)-var(--ws-control-border-width-rest)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-lg) text-body',
33
+ },
34
+ xl: {
35
+ ...fieldSizes.xl,
36
+ base: 'px-[calc(var(--ws-space-16)-var(--field-edge-extra,0px))] py-[calc(var(--ws-space-10)-var(--ws-control-border-width-rest)-var(--field-edge-extra,0px))] gap-(--ws-control-gap-xl) text-body',
37
+ },
38
+ };
39
+ export default {
40
+ slots: input.slots,
41
+ variants: { ...input.variants, size },
42
+ compoundVariants: [
43
+ ...input.compoundVariants,
44
+ // The bare field draws no edge, so it takes none off the padding: one row is still as tall as
45
+ // the input of its size.
46
+ {
47
+ variant: 'none',
48
+ size: 'xs',
49
+ class: 'py-[calc(var(--ws-space-2)-var(--field-edge-extra,0px))]',
50
+ },
51
+ {
52
+ variant: 'none',
53
+ size: 'sm',
54
+ class: 'py-[calc(var(--ws-space-4)-var(--field-edge-extra,0px))]',
55
+ },
56
+ {
57
+ variant: 'none',
58
+ size: 'md',
59
+ class: 'py-[calc(var(--ws-space-6)-var(--field-edge-extra,0px))]',
60
+ },
61
+ {
62
+ variant: 'none',
63
+ size: 'lg',
64
+ class: 'py-[calc(var(--ws-space-8)-var(--field-edge-extra,0px))]',
65
+ },
66
+ {
67
+ variant: 'none',
68
+ size: 'xl',
69
+ class: 'py-[calc(var(--ws-space-10)-var(--field-edge-extra,0px))]',
70
+ },
71
+ ],
72
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatsaaaa/ui-vue",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Nuxt UI themed with the Whatsaaaa design system, for Vue and Nuxt",
5
5
  "keywords": [
6
6
  "design-system",
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@nuxt/ui": "4.13.0",
47
47
  "@types/node": "^24.19.2",
48
- "@whatsaaaa/design-system": "^1.0.0",
48
+ "@whatsaaaa/design-system": "^1.1.0",
49
49
  "@whatsaaaa/tsconfig": "^1.0.0",
50
50
  "tailwindcss": "^4.3.5",
51
51
  "typescript": "~6.0.3",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@nuxt/ui": "~4.13.0",
56
- "@whatsaaaa/design-system": "^1.0.0",
56
+ "@whatsaaaa/design-system": "^1.1.0",
57
57
  "tailwindcss": "^4.3.5",
58
58
  "vue": "^3.5.0"
59
59
  },