@whatsaaaa/ui-vue 0.0.0-stage → 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.
Files changed (61) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -2
  3. package/dist/color-mode.d.ts +14 -0
  4. package/dist/color-mode.js +34 -0
  5. package/dist/index.d.ts +12 -0
  6. package/dist/index.js +12 -0
  7. package/dist/theme/badge.d.ts +70 -0
  8. package/dist/theme/badge.js +116 -0
  9. package/dist/theme/button.d.ts +136 -0
  10. package/dist/theme/button.js +193 -0
  11. package/dist/theme/card.d.ts +29 -0
  12. package/dist/theme/card.js +44 -0
  13. package/dist/theme/checkbox.d.ts +159 -0
  14. package/dist/theme/checkbox.js +73 -0
  15. package/dist/theme/choice.d.ts +82 -0
  16. package/dist/theme/choice.js +124 -0
  17. package/dist/theme/field-group.d.ts +9 -0
  18. package/dist/theme/field-group.js +16 -0
  19. package/dist/theme/field.d.ts +263 -0
  20. package/dist/theme/field.js +248 -0
  21. package/dist/theme/file-upload.d.ts +106 -0
  22. package/dist/theme/file-upload.js +124 -0
  23. package/dist/theme/form-field.d.ts +44 -0
  24. package/dist/theme/form-field.js +34 -0
  25. package/dist/theme/index.d.ts +2349 -0
  26. package/dist/theme/index.js +130 -0
  27. package/dist/theme/input-date.d.ts +127 -0
  28. package/dist/theme/input-date.js +78 -0
  29. package/dist/theme/input-menu.d.ts +210 -0
  30. package/dist/theme/input-menu.js +83 -0
  31. package/dist/theme/input-number.d.ts +77 -0
  32. package/dist/theme/input-number.js +110 -0
  33. package/dist/theme/input-tags.d.ts +284 -0
  34. package/dist/theme/input-tags.js +38 -0
  35. package/dist/theme/input-time.d.ts +2 -0
  36. package/dist/theme/input-time.js +5 -0
  37. package/dist/theme/input.d.ts +138 -0
  38. package/dist/theme/input.js +48 -0
  39. package/dist/theme/modal.d.ts +31 -0
  40. package/dist/theme/modal.js +44 -0
  41. package/dist/theme/pin-input.d.ts +61 -0
  42. package/dist/theme/pin-input.js +40 -0
  43. package/dist/theme/radio-group.d.ts +177 -0
  44. package/dist/theme/radio-group.js +111 -0
  45. package/dist/theme/select-menu.d.ts +154 -0
  46. package/dist/theme/select-menu.js +22 -0
  47. package/dist/theme/select.d.ts +254 -0
  48. package/dist/theme/select.js +109 -0
  49. package/dist/theme/shared.d.ts +69 -0
  50. package/dist/theme/shared.js +103 -0
  51. package/dist/theme/table.d.ts +45 -0
  52. package/dist/theme/table.js +111 -0
  53. package/dist/theme/tabs.d.ts +95 -0
  54. package/dist/theme/tabs.js +144 -0
  55. package/dist/theme/tags.d.ts +40 -0
  56. package/dist/theme/tags.js +52 -0
  57. package/dist/theme/textarea.d.ts +127 -0
  58. package/dist/theme/textarea.js +72 -0
  59. package/package.json +65 -3
  60. package/src/index.css +123 -0
  61. package/src/nuxt-ui.css +148 -0
@@ -0,0 +1,44 @@
1
+ /*
2
+ * The design system's modal spec, specs/modal.spec.json. A modal is a window of the terminal
3
+ * frame, a panel of the overlay, --ws-overlay-*: the surface in the field border's edge, which
4
+ * reads at 3:1, with the window's radius and no shadow. Its header is a bar as tall as the tab
5
+ * bar, on the page color, with the title as a minor heading and the close button at its end. The
6
+ * page behind it is dimmed in its own color. The edge is a border, so forced colors keep it.
7
+ *
8
+ * The window's padding is the overlay's from 64rem up; below it, as the frame's paddings narrow
9
+ * there too, it is --ws-space-16.
10
+ */
11
+ const fadeIn = 'data-[state=open]:animate-[fade-in_var(--ws-motion-duration-base)_var(--ws-motion-easing-out)]';
12
+ const fadeOut = 'data-[state=closed]:animate-[fade-out_var(--ws-motion-duration-base)_var(--ws-motion-easing-in)]';
13
+ export default {
14
+ slots: {
15
+ content: 'bg-(--ws-overlay-bg-rest) divide-y-thin divide-border',
16
+ header: 'items-start gap-3 min-h-(--ws-size-tab-bar) px-(--ws-space-16) py-0 sm:px-(--ws-space-16) lg:px-(--ws-overlay-window-padding) bg-bg',
17
+ wrapper: 'flex-1 min-w-0 py-3',
18
+ body: 'p-(--ws-space-16) sm:p-(--ws-space-16) lg:p-(--ws-overlay-window-padding)',
19
+ footer: 'flex-wrap justify-end gap-(--ws-space-12) px-(--ws-space-16) py-(--ws-space-12) sm:px-(--ws-space-16) lg:px-(--ws-overlay-window-padding)',
20
+ title: 'font-mono font-(--ws-text-h4-font-weight) text-h4 text-text',
21
+ description: 'font-sans text-body-sm text-text-secondary',
22
+ // A square of the small control, in the header's flow, not over it, and smaller than the
23
+ // bar, so its focus ring has room inside the window. Its box reaches into the header's
24
+ // padding, so its icon ends where the content does.
25
+ close: 'static shrink-0 size-(--ws-control-height-sm) mt-2 -me-2',
26
+ },
27
+ variants: {
28
+ transition: {
29
+ true: {
30
+ overlay: `${fadeIn} ${fadeOut}`,
31
+ // the window grows into place, and only fades for a reader who asks for less motion
32
+ content: `${fadeIn} ${fadeOut} motion-safe:data-[state=open]:animate-[scale-in_var(--ws-motion-duration-base)_var(--ws-motion-easing-out)] motion-safe:data-[state=closed]:animate-[scale-out_var(--ws-motion-duration-base)_var(--ws-motion-easing-in)]`,
33
+ },
34
+ },
35
+ fullscreen: {
36
+ false: {
37
+ content: 'w-[calc(100vw-2rem)] max-w-[32rem] rounded-(--ws-overlay-window-radius) border-(length:--ws-overlay-border-width) border-(--ws-overlay-border-rest) ring-0 [box-shadow:none] overflow-hidden',
38
+ },
39
+ },
40
+ overlay: {
41
+ true: { overlay: 'bg-[color-mix(in_srgb,var(--ws-color-bg)_80%,transparent)]' },
42
+ },
43
+ },
44
+ };
@@ -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
+ };
@@ -0,0 +1,177 @@
1
+ declare const _default: {
2
+ slots: {
3
+ legend: string;
4
+ base: string;
5
+ indicator: string;
6
+ label: string;
7
+ description: string;
8
+ };
9
+ variants: {
10
+ color: {
11
+ primary: {
12
+ indicator: string;
13
+ };
14
+ success: {
15
+ indicator: string;
16
+ };
17
+ info: {
18
+ indicator: string;
19
+ };
20
+ warning: {
21
+ indicator: string;
22
+ };
23
+ error: {
24
+ indicator: string;
25
+ };
26
+ neutral: {
27
+ indicator: string;
28
+ };
29
+ };
30
+ variant: {
31
+ card: {
32
+ item: string;
33
+ };
34
+ table: {
35
+ item: string;
36
+ };
37
+ };
38
+ orientation: {
39
+ horizontal: {
40
+ fieldset: string;
41
+ };
42
+ };
43
+ indicator: {
44
+ start: {
45
+ wrapper: string;
46
+ };
47
+ end: {
48
+ wrapper: string;
49
+ };
50
+ hidden: {
51
+ base: string;
52
+ };
53
+ };
54
+ size: {
55
+ xs: {
56
+ legend: string;
57
+ fieldset: string;
58
+ indicator: string;
59
+ base: string;
60
+ container: string;
61
+ wrapper: string;
62
+ };
63
+ sm: {
64
+ legend: string;
65
+ fieldset: string;
66
+ indicator: string;
67
+ base: string;
68
+ container: string;
69
+ wrapper: string;
70
+ };
71
+ md: {
72
+ legend: string;
73
+ fieldset: string;
74
+ indicator: string;
75
+ base: string;
76
+ container: string;
77
+ wrapper: string;
78
+ };
79
+ lg: {
80
+ legend: string;
81
+ fieldset: string;
82
+ indicator: string;
83
+ base: string;
84
+ container: string;
85
+ wrapper: string;
86
+ };
87
+ xl: {
88
+ legend: string;
89
+ fieldset: string;
90
+ indicator: string;
91
+ base: string;
92
+ container: string;
93
+ wrapper: string;
94
+ };
95
+ };
96
+ required: {
97
+ true: {
98
+ legend: string;
99
+ };
100
+ };
101
+ disabled: {
102
+ true: {
103
+ item: string;
104
+ indicator: string;
105
+ base: string;
106
+ label: string;
107
+ description: string;
108
+ };
109
+ };
110
+ };
111
+ compoundVariants: (({
112
+ variant: string[];
113
+ } & {
114
+ color: import("./shared.ts").Color;
115
+ class: string | Record<string, string>;
116
+ }) | ({
117
+ highlight: boolean;
118
+ } & {
119
+ color: import("./shared.ts").Color;
120
+ class: string | Record<string, string>;
121
+ }) | {
122
+ variant: string;
123
+ indicator: string[];
124
+ class: {
125
+ base: string;
126
+ item?: undefined;
127
+ };
128
+ highlight?: undefined;
129
+ size?: undefined;
130
+ } | {
131
+ variant: string[];
132
+ class: {
133
+ item: string;
134
+ base?: undefined;
135
+ };
136
+ indicator?: undefined;
137
+ highlight?: undefined;
138
+ size?: undefined;
139
+ } | {
140
+ variant: string;
141
+ indicator: string;
142
+ class: {
143
+ item: string;
144
+ base?: undefined;
145
+ };
146
+ highlight?: undefined;
147
+ size?: undefined;
148
+ } | {
149
+ variant: string[];
150
+ highlight: boolean;
151
+ class: {
152
+ item: string;
153
+ base?: undefined;
154
+ };
155
+ indicator?: undefined;
156
+ size?: undefined;
157
+ } | {
158
+ size: string;
159
+ variant: string[];
160
+ class: {
161
+ item: string;
162
+ base?: undefined;
163
+ };
164
+ indicator?: undefined;
165
+ highlight?: undefined;
166
+ } | {
167
+ size: string[];
168
+ variant: string[];
169
+ class: {
170
+ item: string;
171
+ base?: undefined;
172
+ };
173
+ indicator?: undefined;
174
+ highlight?: undefined;
175
+ })[];
176
+ };
177
+ export default _default;
@@ -0,0 +1,111 @@
1
+ import { cardFocus, cardHoverBorder, cardHoverFill, checkedCard, choiceFocus, choiceSizes, control, description, disabled, forcedCheckedCard, highlight, highlightCard, indicator, label, } from "./choice.js";
2
+ import { byColor, forcedChecked, forcedControlEdge, transition } from "./shared.js";
3
+ /*
4
+ * A round control with a dot, as the design system's radio group spec draws it. The group's name
5
+ * is a field label, in mono, and its options are apart by the sample apps' gap.
6
+ */
7
+ /**
8
+ * The checked fill and the dot on it: the dot is the color of a checkbox's tick. The spec's color
9
+ * is primary, which reads the tier.
10
+ */
11
+ const checked = {
12
+ primary: 'bg-(--ws-choice-indicator-bg-checked) after:bg-(--ws-choice-indicator-icon-checked)',
13
+ success: 'bg-tip-text after:bg-bg',
14
+ info: 'bg-note-text after:bg-bg',
15
+ warning: 'bg-warning-text after:bg-bg',
16
+ error: 'bg-danger-text after:bg-bg',
17
+ neutral: 'bg-text after:bg-bg',
18
+ };
19
+ export default {
20
+ slots: {
21
+ legend: 'font-mono font-normal text-(--ws-field-label-text-rest)',
22
+ base: `rounded-(--ws-radius-full) ${control} ${forcedControlEdge} ${transition}`,
23
+ indicator: `${indicator} ${forcedChecked} forced-colors:after:bg-[HighlightText] forced-colors:in-disabled:after:bg-[Canvas]`,
24
+ label,
25
+ description,
26
+ },
27
+ variants: {
28
+ color: {
29
+ primary: { indicator: checked.primary },
30
+ success: { indicator: checked.success },
31
+ info: { indicator: checked.info },
32
+ warning: { indicator: checked.warning },
33
+ error: { indicator: checked.error },
34
+ neutral: { indicator: checked.neutral },
35
+ },
36
+ variant: {
37
+ card: {
38
+ item: `border border-border rounded-lg ${cardHoverFill} ${forcedCheckedCard} ${transition}`,
39
+ },
40
+ table: { item: `border border-border ${cardHoverFill} ${forcedCheckedCard} ${transition}` },
41
+ },
42
+ orientation: {
43
+ horizontal: { fieldset: 'gap-x-6' },
44
+ },
45
+ // Hidden, the control takes no room: Nuxt UI hides it as sr-only, which keeps it out of the
46
+ // row only while it is not relative.
47
+ indicator: {
48
+ start: { wrapper: 'ms-2.5' },
49
+ end: { wrapper: 'me-2.5' },
50
+ hidden: { base: 'absolute overflow-hidden' },
51
+ },
52
+ size: {
53
+ xs: {
54
+ ...choiceSizes.xs,
55
+ legend: 'mb-2 text-label-sm',
56
+ fieldset: 'gap-y-2',
57
+ indicator: 'after:size-(--ws-space-6)',
58
+ },
59
+ sm: {
60
+ ...choiceSizes.sm,
61
+ legend: 'mb-2 text-label-sm',
62
+ fieldset: 'gap-y-2',
63
+ indicator: 'after:size-(--ws-space-6)',
64
+ },
65
+ md: {
66
+ ...choiceSizes.md,
67
+ legend: 'mb-2.5 text-label',
68
+ fieldset: 'gap-y-2.5',
69
+ indicator: 'after:size-(--ws-space-8)',
70
+ },
71
+ lg: {
72
+ ...choiceSizes.lg,
73
+ legend: 'mb-2.5 text-label',
74
+ fieldset: 'gap-y-2.5',
75
+ indicator: 'after:size-(--ws-space-8)',
76
+ },
77
+ xl: {
78
+ ...choiceSizes.xl,
79
+ legend: 'mb-3 text-label',
80
+ fieldset: 'gap-y-3',
81
+ indicator: 'after:size-(--ws-space-10)',
82
+ },
83
+ },
84
+ required: {
85
+ true: {
86
+ legend: "after:content-['*'] after:ms-0.5 after:text-(--ws-field-required-text-rest)",
87
+ },
88
+ },
89
+ disabled: {
90
+ true: {
91
+ ...disabled,
92
+ item: 'opacity-100',
93
+ // A disabled group that has an answer keeps it: the dot, on the faint fill.
94
+ indicator: 'bg-(--ws-choice-indicator-bg-disabled) after:bg-(--ws-choice-indicator-icon-disabled)',
95
+ },
96
+ },
97
+ },
98
+ compoundVariants: [
99
+ { variant: 'list', indicator: ['start', 'end'], class: { base: choiceFocus } },
100
+ { variant: ['card', 'table'], class: { item: cardFocus } },
101
+ { variant: 'list', indicator: 'hidden', class: { item: cardFocus } },
102
+ { variant: ['card', 'table'], highlight: false, class: { item: cardHoverBorder } },
103
+ { size: 'xs', variant: ['card', 'table'], class: { item: 'p-2.5' } },
104
+ { size: 'sm', variant: ['card', 'table'], class: { item: 'p-3' } },
105
+ { size: ['md', 'lg'], variant: ['card', 'table'], class: { item: 'p-4' } },
106
+ { size: 'xl', variant: ['card', 'table'], class: { item: 'p-5' } },
107
+ ...byColor(checkedCard, { variant: ['card', 'table'] }, 'item'),
108
+ ...byColor(highlight, { highlight: true }, 'base'),
109
+ ...byColor(highlightCard, { indicator: 'hidden', highlight: true }, 'item'),
110
+ ],
111
+ };
@@ -0,0 +1,154 @@
1
+ declare const _default: {
2
+ slots: {
3
+ input: string;
4
+ base: string;
5
+ placeholder: string;
6
+ leadingIcon: string;
7
+ trailingIcon: string;
8
+ content: string;
9
+ arrow: string;
10
+ viewport: string;
11
+ group: string;
12
+ empty: string;
13
+ label: string;
14
+ separator: string;
15
+ item: string;
16
+ itemLeadingIcon: string;
17
+ itemTrailing: string;
18
+ itemTrailingIcon: string;
19
+ itemDescription: string;
20
+ };
21
+ variants: {
22
+ size: {
23
+ xs: {
24
+ leading: string;
25
+ trailing: string;
26
+ label: string;
27
+ item: string;
28
+ itemLeadingIcon: string;
29
+ itemTrailingIcon: string;
30
+ empty: string;
31
+ base: string;
32
+ leadingIcon: string;
33
+ trailingIcon: string;
34
+ };
35
+ sm: {
36
+ leading: string;
37
+ trailing: string;
38
+ label: string;
39
+ item: string;
40
+ itemLeadingIcon: string;
41
+ itemTrailingIcon: string;
42
+ empty: string;
43
+ base: string;
44
+ leadingIcon: string;
45
+ trailingIcon: string;
46
+ };
47
+ md: {
48
+ leading: string;
49
+ trailing: string;
50
+ label: string;
51
+ item: string;
52
+ itemLeadingIcon: string;
53
+ itemTrailingIcon: string;
54
+ empty: string;
55
+ base: string;
56
+ leadingIcon: string;
57
+ trailingIcon: string;
58
+ };
59
+ lg: {
60
+ leading: string;
61
+ trailing: string;
62
+ label: string;
63
+ item: string;
64
+ itemLeadingIcon: string;
65
+ itemTrailingIcon: string;
66
+ empty: string;
67
+ base: string;
68
+ leadingIcon: string;
69
+ trailingIcon: string;
70
+ };
71
+ xl: {
72
+ leading: string;
73
+ trailing: string;
74
+ label: string;
75
+ item: string;
76
+ itemLeadingIcon: string;
77
+ itemTrailingIcon: string;
78
+ empty: string;
79
+ base: string;
80
+ leadingIcon: string;
81
+ trailingIcon: string;
82
+ };
83
+ };
84
+ variant: {
85
+ outline: string;
86
+ subtle: string;
87
+ soft: string;
88
+ ghost: string;
89
+ none: string;
90
+ };
91
+ position: {
92
+ popper: {
93
+ content: string;
94
+ };
95
+ };
96
+ };
97
+ compoundVariants: ({
98
+ variant: string;
99
+ highlight: boolean;
100
+ class: string;
101
+ color?: undefined;
102
+ } | {
103
+ variant: string;
104
+ highlight: boolean;
105
+ color: string;
106
+ class: string;
107
+ } | {
108
+ fixed: boolean;
109
+ size: string[];
110
+ class: string;
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;
119
+ } | {
120
+ loading: boolean;
121
+ leading: boolean;
122
+ class: {
123
+ leadingIcon: string;
124
+ trailingIcon?: undefined;
125
+ };
126
+ trailing?: undefined;
127
+ } | {
128
+ loading: boolean;
129
+ leading: boolean;
130
+ trailing: boolean;
131
+ class: {
132
+ trailingIcon: string;
133
+ leadingIcon?: undefined;
134
+ };
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;
146
+ highlight?: undefined;
147
+ } | {
148
+ fieldGroup: string[];
149
+ highlight: boolean;
150
+ class: string;
151
+ })[];
152
+ defaultVariants: object;
153
+ };
154
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { fieldCompoundVariants, inGroup } from "./field.js";
2
+ import { selectSlots, selectVariants } from "./select.js";
3
+ /*
4
+ * A select with a search field at the top of its list: the bare field, at the control height of
5
+ * the select menu's size, on the panel's edge, with a line of the border color under it. Its
6
+ * icon is the field's, drawn unless an app passes a search field of its own.
7
+ */
8
+ /**
9
+ * The search field's icon, by default. Nuxt UI takes a default for any prop of a component from
10
+ * its defaultVariants in the app config, after the prop itself and UTheme's, though the app
11
+ * config's types take only the variants: so it is typed as an object.
12
+ */
13
+ const defaultVariants = { searchInput: { icon: 'i-lucide-search' } };
14
+ export default {
15
+ slots: {
16
+ ...selectSlots,
17
+ input: 'border-b-thin border-border',
18
+ },
19
+ variants: selectVariants,
20
+ compoundVariants: [...fieldCompoundVariants, ...inGroup],
21
+ defaultVariants,
22
+ };