@nova-design-system/nova-base 3.0.0-beta.31 → 3.0.0-beta.34
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/dist/css/mccs.css +0 -178809
- package/dist/css/nova-utils.css +313 -243
- package/dist/css/ocean.css +450 -208721
- package/dist/css/spark.css +431 -208702
- package/dist/lib/cjs/generated/nova-tailwind-components.js +292 -0
- package/dist/lib/cjs/{nova-tailwind-tokens.js → generated/nova-tailwind-tokens.js} +0 -123
- package/dist/lib/cjs/{nova-plugin.js → lib/nova-plugin.js} +3 -11
- package/dist/lib/cjs/{nova-safelist.js → lib/nova-safelist.js} +6 -3
- package/dist/lib/generated/nova-tailwind-components.d.ts +288 -0
- package/dist/lib/generated/nova-tailwind-components.js +289 -0
- package/dist/lib/{nova-tailwind-tokens.d.ts → generated/nova-tailwind-tokens.d.ts} +0 -123
- package/dist/lib/{nova-tailwind-tokens.js → generated/nova-tailwind-tokens.js} +0 -123
- package/dist/lib/{nova-plugin.js → lib/nova-plugin.js} +3 -9
- package/dist/lib/{nova-safelist.js → lib/nova-safelist.js} +6 -3
- package/package.json +7 -2
- /package/dist/lib/cjs/{index.js → lib/index.js} +0 -0
- /package/dist/lib/cjs/{nova-theme.js → lib/nova-theme.js} +0 -0
- /package/dist/lib/{index.d.ts → lib/index.d.ts} +0 -0
- /package/dist/lib/{index.js → lib/index.js} +0 -0
- /package/dist/lib/{nova-plugin.d.ts → lib/nova-plugin.d.ts} +0 -0
- /package/dist/lib/{nova-safelist.d.ts → lib/nova-safelist.d.ts} +0 -0
- /package/dist/lib/{nova-theme.d.ts → lib/nova-theme.d.ts} +0 -0
- /package/dist/lib/{nova-theme.js → lib/nova-theme.js} +0 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NOVA_TAILWIND_COMPONENTS = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Do not edit directly, this file was auto-generated
|
|
7
|
+
* @ref generate-tailwind-components.ts
|
|
8
|
+
*/
|
|
9
|
+
exports.NOVA_TAILWIND_COMPONENTS = {
|
|
10
|
+
'.nv-button': {
|
|
11
|
+
'textDecoration': 'none',
|
|
12
|
+
'display': 'inline-flex',
|
|
13
|
+
'justifyContent': 'center',
|
|
14
|
+
'alignItems': 'center',
|
|
15
|
+
'fontStyle': 'normal',
|
|
16
|
+
'fontWeight': 'var(--font-weight-medium-emphasis)',
|
|
17
|
+
'fontFamily': '\'TT Norms Pro\', sans-serif',
|
|
18
|
+
'transition': 'background-color 150ms ease-out',
|
|
19
|
+
'userSelect': 'none',
|
|
20
|
+
'cursor': 'pointer',
|
|
21
|
+
'height': 'fit-content',
|
|
22
|
+
'width': 'fit-content',
|
|
23
|
+
'padding': 'var(--button-md-padding-y) var(--button-md-padding-x)',
|
|
24
|
+
'gap': 'var(--button-md-gap)',
|
|
25
|
+
'borderRadius': 'var(--button-md-border-radius)',
|
|
26
|
+
'lineHeight': 'var(--button-md-line-height)',
|
|
27
|
+
'fontSize': 'var(--button-md-font-size)',
|
|
28
|
+
'background': 'var(--components-button-medium-background)',
|
|
29
|
+
'border': '1px solid var(--components-button-medium-border)',
|
|
30
|
+
'color': 'var(--components-button-medium-text)'
|
|
31
|
+
},
|
|
32
|
+
'.nv-button nv-icon > svg': {
|
|
33
|
+
'width': 'var(--spacing-5)',
|
|
34
|
+
'height': 'var(--spacing-5)',
|
|
35
|
+
'strokeWidth': '1.6px'
|
|
36
|
+
},
|
|
37
|
+
'.nv-button:hover': {
|
|
38
|
+
'background': 'var(--components-button-medium-background-hover)',
|
|
39
|
+
'border': '1px solid var(--components-button-medium-border)',
|
|
40
|
+
'color': 'var(--components-button-medium-text-hover)'
|
|
41
|
+
},
|
|
42
|
+
'.nv-button:focus, .nv-button:focus-within': {
|
|
43
|
+
'outline': 'none'
|
|
44
|
+
},
|
|
45
|
+
'.nv-button:focus-visible, .nv-button:has(:focus-visible)': {
|
|
46
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
|
|
47
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
48
|
+
},
|
|
49
|
+
'.nv-button:disabled:not([disabled=false])': {
|
|
50
|
+
'opacity': '0.5',
|
|
51
|
+
'cursor': 'not-allowed',
|
|
52
|
+
'boxShadow': 'none'
|
|
53
|
+
},
|
|
54
|
+
'.nv-button.danger': {
|
|
55
|
+
'background': 'var(--components-button-destructive-high-background)',
|
|
56
|
+
'border': '1px solid unset',
|
|
57
|
+
'color': 'var(--components-button-destructive-high-text)'
|
|
58
|
+
},
|
|
59
|
+
'.nv-button.danger:hover': {
|
|
60
|
+
'background': 'var(--components-button-destructive-high-background-hover)',
|
|
61
|
+
'border': '1px solid unset',
|
|
62
|
+
'color': 'var(--components-button-destructive-high-text-hover)'
|
|
63
|
+
},
|
|
64
|
+
'.nv-button.danger:focus, .nv-button.danger:focus-within': {
|
|
65
|
+
'outline': 'none'
|
|
66
|
+
},
|
|
67
|
+
'.nv-button.danger:focus-visible, .nv-button.danger:has(:focus-visible)': {
|
|
68
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
|
|
69
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
70
|
+
},
|
|
71
|
+
'.nv-button.size-xs': {
|
|
72
|
+
'padding': 'var(--button-xs-padding-y) var(--button-xs-padding-x)',
|
|
73
|
+
'gap': 'var(--button-xs-gap)',
|
|
74
|
+
'borderRadius': 'var(--button-xs-border-radius)',
|
|
75
|
+
'lineHeight': 'var(--button-xs-line-height)',
|
|
76
|
+
'fontSize': 'var(--button-xs-font-size)'
|
|
77
|
+
},
|
|
78
|
+
'.nv-button.size-xs nv-icon > svg': {
|
|
79
|
+
'width': 'var(--spacing-3)',
|
|
80
|
+
'height': 'var(--spacing-3)',
|
|
81
|
+
'strokeWidth': '1.2px'
|
|
82
|
+
},
|
|
83
|
+
'.nv-button.size-sm': {
|
|
84
|
+
'padding': 'var(--button-sm-padding-y) var(--button-sm-padding-x)',
|
|
85
|
+
'gap': 'var(--button-sm-gap)',
|
|
86
|
+
'borderRadius': 'var(--button-sm-border-radius)',
|
|
87
|
+
'lineHeight': 'var(--button-sm-line-height)',
|
|
88
|
+
'fontSize': 'var(--button-sm-font-size)'
|
|
89
|
+
},
|
|
90
|
+
'.nv-button.size-sm nv-icon > svg': {
|
|
91
|
+
'width': 'var(--spacing-4)',
|
|
92
|
+
'height': 'var(--spacing-4)',
|
|
93
|
+
'strokeWidth': '1.5px'
|
|
94
|
+
},
|
|
95
|
+
'.nv-button.size-md': {
|
|
96
|
+
'padding': 'var(--button-md-padding-y) var(--button-md-padding-x)',
|
|
97
|
+
'gap': 'var(--button-md-gap)',
|
|
98
|
+
'borderRadius': 'var(--button-md-border-radius)',
|
|
99
|
+
'lineHeight': 'var(--button-md-line-height)',
|
|
100
|
+
'fontSize': 'var(--button-md-font-size)'
|
|
101
|
+
},
|
|
102
|
+
'.nv-button.size-md nv-icon > svg': {
|
|
103
|
+
'width': 'var(--spacing-5)',
|
|
104
|
+
'height': 'var(--spacing-5)',
|
|
105
|
+
'strokeWidth': '1.6px'
|
|
106
|
+
},
|
|
107
|
+
'.nv-button.size-lg': {
|
|
108
|
+
'padding': 'var(--button-lg-padding-y) var(--button-lg-padding-x)',
|
|
109
|
+
'gap': 'var(--button-lg-gap)',
|
|
110
|
+
'borderRadius': 'var(--button-lg-border-radius)',
|
|
111
|
+
'lineHeight': 'var(--button-lg-line-height)',
|
|
112
|
+
'fontSize': 'var(--button-lg-font-size)'
|
|
113
|
+
},
|
|
114
|
+
'.nv-button.size-lg nv-icon > svg': {
|
|
115
|
+
'width': 'var(--spacing-6)',
|
|
116
|
+
'height': 'var(--spacing-6)',
|
|
117
|
+
'strokeWidth': '1.8px'
|
|
118
|
+
},
|
|
119
|
+
'.nv-button.emphasis-high': {
|
|
120
|
+
'background': 'var(--components-button-high-background)',
|
|
121
|
+
'border': '1px solid var(--components-button-high-border)',
|
|
122
|
+
'color': 'var(--components-button-high-text)'
|
|
123
|
+
},
|
|
124
|
+
'.nv-button.emphasis-high:hover': {
|
|
125
|
+
'background': 'var(--components-button-high-background-hover)',
|
|
126
|
+
'border': '1px solid var(--components-button-high-border)',
|
|
127
|
+
'color': 'var(--components-button-high-text-hover)'
|
|
128
|
+
},
|
|
129
|
+
'.nv-button.emphasis-high:focus, .nv-button.emphasis-high:focus-within': {
|
|
130
|
+
'outline': 'none'
|
|
131
|
+
},
|
|
132
|
+
'.nv-button.emphasis-high:focus-visible, .nv-button.emphasis-high:has(:focus-visible)': {
|
|
133
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
|
|
134
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
135
|
+
},
|
|
136
|
+
'.nv-button.emphasis-high:disabled:not([disabled=false])': {
|
|
137
|
+
'opacity': '0.5',
|
|
138
|
+
'cursor': 'not-allowed',
|
|
139
|
+
'boxShadow': 'none'
|
|
140
|
+
},
|
|
141
|
+
'.nv-button.emphasis-high.danger': {
|
|
142
|
+
'background': 'var(--components-button-destructive-high-background)',
|
|
143
|
+
'border': '1px solid unset',
|
|
144
|
+
'color': 'var(--components-button-destructive-high-text)'
|
|
145
|
+
},
|
|
146
|
+
'.nv-button.emphasis-high.danger:hover': {
|
|
147
|
+
'background': 'var(--components-button-destructive-high-background-hover)',
|
|
148
|
+
'border': '1px solid unset',
|
|
149
|
+
'color': 'var(--components-button-destructive-high-text-hover)'
|
|
150
|
+
},
|
|
151
|
+
'.nv-button.emphasis-high.danger:focus, .nv-button.emphasis-high.danger:focus-within': {
|
|
152
|
+
'outline': 'none'
|
|
153
|
+
},
|
|
154
|
+
'.nv-button.emphasis-high.danger:focus-visible, .nv-button.emphasis-high.danger:has(:focus-visible)': {
|
|
155
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
|
|
156
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
157
|
+
},
|
|
158
|
+
'.nv-button.emphasis-medium': {
|
|
159
|
+
'background': 'var(--components-button-medium-background)',
|
|
160
|
+
'border': '1px solid var(--components-button-medium-border)',
|
|
161
|
+
'color': 'var(--components-button-medium-text)'
|
|
162
|
+
},
|
|
163
|
+
'.nv-button.emphasis-medium:hover': {
|
|
164
|
+
'background': 'var(--components-button-medium-background-hover)',
|
|
165
|
+
'border': '1px solid var(--components-button-medium-border)',
|
|
166
|
+
'color': 'var(--components-button-medium-text-hover)'
|
|
167
|
+
},
|
|
168
|
+
'.nv-button.emphasis-medium:focus, .nv-button.emphasis-medium:focus-within': {
|
|
169
|
+
'outline': 'none'
|
|
170
|
+
},
|
|
171
|
+
'.nv-button.emphasis-medium:focus-visible, .nv-button.emphasis-medium:has(:focus-visible)': {
|
|
172
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
|
|
173
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
174
|
+
},
|
|
175
|
+
'.nv-button.emphasis-medium:disabled:not([disabled=false])': {
|
|
176
|
+
'opacity': '0.5',
|
|
177
|
+
'cursor': 'not-allowed',
|
|
178
|
+
'boxShadow': 'none'
|
|
179
|
+
},
|
|
180
|
+
'.nv-button.emphasis-medium.danger': {
|
|
181
|
+
'background': 'var(--components-button-destructive-medium-background)',
|
|
182
|
+
'border': '1px solid var(--components-button-destructive-medium-border)',
|
|
183
|
+
'color': 'var(--components-button-destructive-medium-text)'
|
|
184
|
+
},
|
|
185
|
+
'.nv-button.emphasis-medium.danger:hover': {
|
|
186
|
+
'background': 'var(--components-button-destructive-medium-background-hover)',
|
|
187
|
+
'border': '1px solid var(--components-button-destructive-medium-border)',
|
|
188
|
+
'color': 'var(--components-button-destructive-medium-text-hover)'
|
|
189
|
+
},
|
|
190
|
+
'.nv-button.emphasis-medium.danger:focus, .nv-button.emphasis-medium.danger:focus-within': {
|
|
191
|
+
'outline': 'none'
|
|
192
|
+
},
|
|
193
|
+
'.nv-button.emphasis-medium.danger:focus-visible, .nv-button.emphasis-medium.danger:has(:focus-visible)': {
|
|
194
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
|
|
195
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
196
|
+
},
|
|
197
|
+
'.nv-button.emphasis-low': {
|
|
198
|
+
'background': 'var(--components-button-low-background)',
|
|
199
|
+
'border': '1px solid var(--components-button-low-border)',
|
|
200
|
+
'color': 'var(--components-button-low-text)'
|
|
201
|
+
},
|
|
202
|
+
'.nv-button.emphasis-low:hover': {
|
|
203
|
+
'background': 'var(--components-button-low-background-hover)',
|
|
204
|
+
'border': '1px solid var(--components-button-low-border)',
|
|
205
|
+
'color': 'var(--components-button-low-text-hover)'
|
|
206
|
+
},
|
|
207
|
+
'.nv-button.emphasis-low:focus, .nv-button.emphasis-low:focus-within': {
|
|
208
|
+
'outline': 'none'
|
|
209
|
+
},
|
|
210
|
+
'.nv-button.emphasis-low:focus-visible, .nv-button.emphasis-low:has(:focus-visible)': {
|
|
211
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
|
|
212
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
213
|
+
},
|
|
214
|
+
'.nv-button.emphasis-low:disabled:not([disabled=false])': {
|
|
215
|
+
'opacity': '0.5',
|
|
216
|
+
'cursor': 'not-allowed',
|
|
217
|
+
'boxShadow': 'none'
|
|
218
|
+
},
|
|
219
|
+
'.nv-button.emphasis-low.danger': {
|
|
220
|
+
'background': 'var(--components-button-destructive-low-background)',
|
|
221
|
+
'border': '1px solid var(--components-button-destructive-low-border)',
|
|
222
|
+
'color': 'var(--components-button-destructive-low-text)'
|
|
223
|
+
},
|
|
224
|
+
'.nv-button.emphasis-low.danger:hover': {
|
|
225
|
+
'background': 'var(--components-button-destructive-low-background-hover)',
|
|
226
|
+
'border': '1px solid var(--components-button-destructive-low-border)',
|
|
227
|
+
'color': 'var(--components-button-destructive-low-text-hover)'
|
|
228
|
+
},
|
|
229
|
+
'.nv-button.emphasis-low.danger:focus, .nv-button.emphasis-low.danger:focus-within': {
|
|
230
|
+
'outline': 'none'
|
|
231
|
+
},
|
|
232
|
+
'.nv-button.emphasis-low.danger:focus-visible, .nv-button.emphasis-low.danger:has(:focus-visible)': {
|
|
233
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
|
|
234
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
235
|
+
},
|
|
236
|
+
'.nv-button.emphasis-lower': {
|
|
237
|
+
'background': 'var(--components-button-lower-background)',
|
|
238
|
+
'border': '1px solid var(--components-button-lower-border)',
|
|
239
|
+
'color': 'var(--components-button-lower-text)'
|
|
240
|
+
},
|
|
241
|
+
'.nv-button.emphasis-lower:hover': {
|
|
242
|
+
'background': 'var(--components-button-lower-background-hover)',
|
|
243
|
+
'border': '1px solid var(--components-button-lower-border)',
|
|
244
|
+
'color': 'var(--components-button-lower-text-hover)'
|
|
245
|
+
},
|
|
246
|
+
'.nv-button.emphasis-lower:focus, .nv-button.emphasis-lower:focus-within': {
|
|
247
|
+
'outline': 'none'
|
|
248
|
+
},
|
|
249
|
+
'.nv-button.emphasis-lower:focus-visible, .nv-button.emphasis-lower:has(:focus-visible)': {
|
|
250
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
|
|
251
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
252
|
+
},
|
|
253
|
+
'.nv-button.emphasis-lower:disabled:not([disabled=false])': {
|
|
254
|
+
'opacity': '0.5',
|
|
255
|
+
'cursor': 'not-allowed',
|
|
256
|
+
'boxShadow': 'none'
|
|
257
|
+
},
|
|
258
|
+
'.nv-button.emphasis-lower.danger': {
|
|
259
|
+
'background': 'var(--components-button-destructive-lower-background)',
|
|
260
|
+
'border': '1px solid var(--components-button-destructive-lower-border)',
|
|
261
|
+
'color': 'var(--components-button-destructive-lower-text)'
|
|
262
|
+
},
|
|
263
|
+
'.nv-button.emphasis-lower.danger:hover': {
|
|
264
|
+
'background': 'var(--components-button-destructive-lower-background-hover)',
|
|
265
|
+
'border': '1px solid var(--components-button-destructive-lower-border)',
|
|
266
|
+
'color': 'var(--components-button-destructive-lower-text-hover)'
|
|
267
|
+
},
|
|
268
|
+
'.nv-button.emphasis-lower.danger:focus, .nv-button.emphasis-lower.danger:focus-within': {
|
|
269
|
+
'outline': 'none'
|
|
270
|
+
},
|
|
271
|
+
'.nv-button.emphasis-lower.danger:focus-visible, .nv-button.emphasis-lower.danger:has(:focus-visible)': {
|
|
272
|
+
'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
|
|
273
|
+
'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
|
|
274
|
+
},
|
|
275
|
+
'.nv-button.fluid': {
|
|
276
|
+
'width': '100%'
|
|
277
|
+
},
|
|
278
|
+
'.nv-link': {
|
|
279
|
+
'color': 'var(--color-interaction-link-high-text)',
|
|
280
|
+
'fontWeight': '500',
|
|
281
|
+
'textDecoration': 'none'
|
|
282
|
+
},
|
|
283
|
+
'.nv-link:hover': {
|
|
284
|
+
'color': 'var(--color-interaction-link-high-text-hover)'
|
|
285
|
+
},
|
|
286
|
+
'.nv-tabs .nv-link': {
|
|
287
|
+
'borderColor': 'transparent'
|
|
288
|
+
},
|
|
289
|
+
'.nv-tabs .nv-link:hover,\n.nv-tabs .selected': {
|
|
290
|
+
'borderColor': 'var(--color-interaction-container-branded-high-border)'
|
|
291
|
+
}
|
|
292
|
+
};
|
|
@@ -7,21 +7,6 @@ exports.NOVA_TAILWIND_TOKENS = void 0;
|
|
|
7
7
|
* @ref generate-tailwind-tokens.ts
|
|
8
8
|
*/
|
|
9
9
|
exports.NOVA_TAILWIND_TOKENS = {
|
|
10
|
-
'.border-base-focus': {
|
|
11
|
-
'border-color': 'var(--color-base-border-focus)'
|
|
12
|
-
},
|
|
13
|
-
'.border-base-focus-high': {
|
|
14
|
-
'border-color': 'var(--color-base-border-focus-high)'
|
|
15
|
-
},
|
|
16
|
-
'.border-base-high-emphasis': {
|
|
17
|
-
'border-color': 'var(--color-base-border-high-emphasis)'
|
|
18
|
-
},
|
|
19
|
-
'.border-base-low-emphasis': {
|
|
20
|
-
'border-color': 'var(--color-base-border-low-emphasis)'
|
|
21
|
-
},
|
|
22
|
-
'.border-base-medium-emphasis': {
|
|
23
|
-
'border-color': 'var(--color-base-border-medium-emphasis)'
|
|
24
|
-
},
|
|
25
10
|
'.border-high': {
|
|
26
11
|
'border-color': 'var(--color-content-high-border)'
|
|
27
12
|
},
|
|
@@ -196,54 +181,6 @@ exports.NOVA_TAILWIND_TOKENS = {
|
|
|
196
181
|
'.text-feedback-warning-low': {
|
|
197
182
|
'color': 'var(--color-feedback-warning-low-text)'
|
|
198
183
|
},
|
|
199
|
-
'.bg-interaction-brand-high': {
|
|
200
|
-
'background-color': 'var(--color-interaction-brand-high-background)'
|
|
201
|
-
},
|
|
202
|
-
'.bg-interaction-brand-high-hover': {
|
|
203
|
-
'background-color': 'var(--color-interaction-brand-high-background-hover)'
|
|
204
|
-
},
|
|
205
|
-
'.border-interaction-brand-high': {
|
|
206
|
-
'border-color': 'var(--color-interaction-brand-high-border)'
|
|
207
|
-
},
|
|
208
|
-
'.border-interaction-brand-high-hover': {
|
|
209
|
-
'border-color': 'var(--color-interaction-brand-high-border-hover)'
|
|
210
|
-
},
|
|
211
|
-
'.icon-interaction-brand-high': {
|
|
212
|
-
'color': 'var(--color-interaction-brand-high-icon)'
|
|
213
|
-
},
|
|
214
|
-
'.icon-interaction-brand-high-hover': {
|
|
215
|
-
'color': 'var(--color-interaction-brand-high-icon-hover)'
|
|
216
|
-
},
|
|
217
|
-
'.text-interaction-brand-high': {
|
|
218
|
-
'color': 'var(--color-interaction-brand-high-text)'
|
|
219
|
-
},
|
|
220
|
-
'.text-interaction-brand-high-hover': {
|
|
221
|
-
'color': 'var(--color-interaction-brand-high-text-hover)'
|
|
222
|
-
},
|
|
223
|
-
'.bg-interaction-brand-low': {
|
|
224
|
-
'background-color': 'var(--color-interaction-brand-low-background)'
|
|
225
|
-
},
|
|
226
|
-
'.bg-interaction-brand-low-hover': {
|
|
227
|
-
'background-color': 'var(--color-interaction-brand-low-background-hover)'
|
|
228
|
-
},
|
|
229
|
-
'.border-interaction-brand-low': {
|
|
230
|
-
'border-color': 'var(--color-interaction-brand-low-border)'
|
|
231
|
-
},
|
|
232
|
-
'.border-interaction-brand-low-hover': {
|
|
233
|
-
'border-color': 'var(--color-interaction-brand-low-border-hover)'
|
|
234
|
-
},
|
|
235
|
-
'.icon-interaction-brand-low': {
|
|
236
|
-
'color': 'var(--color-interaction-brand-low-icon)'
|
|
237
|
-
},
|
|
238
|
-
'.icon-interaction-brand-low-hover': {
|
|
239
|
-
'color': 'var(--color-interaction-brand-low-icon-hover)'
|
|
240
|
-
},
|
|
241
|
-
'.text-interaction-brand-low': {
|
|
242
|
-
'color': 'var(--color-interaction-brand-low-text)'
|
|
243
|
-
},
|
|
244
|
-
'.text-interaction-brand-low-hover': {
|
|
245
|
-
'color': 'var(--color-interaction-brand-low-text-hover)'
|
|
246
|
-
},
|
|
247
184
|
'.bg-interaction-container-branded-high': {
|
|
248
185
|
'background-color': 'var(--color-interaction-container-branded-high-background)'
|
|
249
186
|
},
|
|
@@ -328,18 +265,6 @@ exports.NOVA_TAILWIND_TOKENS = {
|
|
|
328
265
|
'.text-interaction-link-high-hover': {
|
|
329
266
|
'color': 'var(--color-interaction-link-high-text-hover)'
|
|
330
267
|
},
|
|
331
|
-
'.icon-interaction-link-inline': {
|
|
332
|
-
'color': 'var(--color-interaction-link-inline-icon)'
|
|
333
|
-
},
|
|
334
|
-
'.icon-interaction-link-inline-hover': {
|
|
335
|
-
'color': 'var(--color-interaction-link-inline-icon-hover)'
|
|
336
|
-
},
|
|
337
|
-
'.text-interaction-link-inline': {
|
|
338
|
-
'color': 'var(--color-interaction-link-inline-text)'
|
|
339
|
-
},
|
|
340
|
-
'.text-interaction-link-inline-hover': {
|
|
341
|
-
'color': 'var(--color-interaction-link-inline-text-hover)'
|
|
342
|
-
},
|
|
343
268
|
'.icon-interaction-link-low': {
|
|
344
269
|
'color': 'var(--color-interaction-link-low-icon)'
|
|
345
270
|
},
|
|
@@ -352,54 +277,6 @@ exports.NOVA_TAILWIND_TOKENS = {
|
|
|
352
277
|
'.text-interaction-link-low-hover': {
|
|
353
278
|
'color': 'var(--color-interaction-link-low-text-hover)'
|
|
354
279
|
},
|
|
355
|
-
'.icon-interaction-link-standalone': {
|
|
356
|
-
'color': 'var(--color-interaction-link-standalone-icon)'
|
|
357
|
-
},
|
|
358
|
-
'.icon-interaction-link-standalone-hover': {
|
|
359
|
-
'color': 'var(--color-interaction-link-standalone-icon-hover)'
|
|
360
|
-
},
|
|
361
|
-
'.text-interaction-link-standalone': {
|
|
362
|
-
'color': 'var(--color-interaction-link-standalone-text)'
|
|
363
|
-
},
|
|
364
|
-
'.text-interaction-link-standalone-hover': {
|
|
365
|
-
'color': 'var(--color-interaction-link-standalone-text-hover)'
|
|
366
|
-
},
|
|
367
|
-
'.icon-interaction-link-table': {
|
|
368
|
-
'color': 'var(--color-interaction-link-table-icon)'
|
|
369
|
-
},
|
|
370
|
-
'.icon-interaction-link-table-hover': {
|
|
371
|
-
'color': 'var(--color-interaction-link-table-icon-hover)'
|
|
372
|
-
},
|
|
373
|
-
'.text-interaction-link-table': {
|
|
374
|
-
'color': 'var(--color-interaction-link-table-text)'
|
|
375
|
-
},
|
|
376
|
-
'.text-interaction-link-table-hover': {
|
|
377
|
-
'color': 'var(--color-interaction-link-table-text-hover)'
|
|
378
|
-
},
|
|
379
|
-
'.bg-interaction-neutral': {
|
|
380
|
-
'background-color': 'var(--color-interaction-neutral-background)'
|
|
381
|
-
},
|
|
382
|
-
'.bg-interaction-neutral-hover': {
|
|
383
|
-
'background-color': 'var(--color-interaction-neutral-background-hover)'
|
|
384
|
-
},
|
|
385
|
-
'.border-interaction-neutral': {
|
|
386
|
-
'border-color': 'var(--color-interaction-neutral-border)'
|
|
387
|
-
},
|
|
388
|
-
'.border-interaction-neutral-hover': {
|
|
389
|
-
'border-color': 'var(--color-interaction-neutral-border-hover)'
|
|
390
|
-
},
|
|
391
|
-
'.icon-interaction-neutral': {
|
|
392
|
-
'color': 'var(--color-interaction-neutral-icon)'
|
|
393
|
-
},
|
|
394
|
-
'.icon-interaction-neutral-hover': {
|
|
395
|
-
'color': 'var(--color-interaction-neutral-icon-hover)'
|
|
396
|
-
},
|
|
397
|
-
'.text-interaction-neutral': {
|
|
398
|
-
'color': 'var(--color-interaction-neutral-text)'
|
|
399
|
-
},
|
|
400
|
-
'.text-interaction-neutral-hover': {
|
|
401
|
-
'color': 'var(--color-interaction-neutral-text-hover)'
|
|
402
|
-
},
|
|
403
280
|
'.bg-level-00': {
|
|
404
281
|
'background-color': 'var(--color-level-00-background)'
|
|
405
282
|
},
|
|
@@ -19,7 +19,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.novaTailwindPlugin = void 0;
|
|
21
21
|
var plugin_js_1 = __importDefault(require("tailwindcss/plugin.js"));
|
|
22
|
-
var nova_tailwind_tokens_js_1 = require("
|
|
22
|
+
var nova_tailwind_tokens_js_1 = require("../generated/nova-tailwind-tokens.js");
|
|
23
|
+
var nova_tailwind_components_js_1 = require("../generated/nova-tailwind-components.js");
|
|
23
24
|
exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
|
|
24
25
|
var addUtilities = _a.addUtilities, addComponents = _a.addComponents, addBase = _a.addBase, theme = _a.theme;
|
|
25
26
|
addBase({
|
|
@@ -83,16 +84,7 @@ exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
|
|
|
83
84
|
color: 'var(--color-content-low-text)',
|
|
84
85
|
},
|
|
85
86
|
});
|
|
86
|
-
addComponents({
|
|
87
|
-
'.link': {
|
|
88
|
-
color: 'var(--color-interaction-link-high-text)',
|
|
89
|
-
fontWeight: '500',
|
|
90
|
-
'text-decoration': 'none',
|
|
91
|
-
},
|
|
92
|
-
'.link:hover': {
|
|
93
|
-
color: 'var(--color-interaction-link-high-text-hover)',
|
|
94
|
-
},
|
|
95
|
-
});
|
|
87
|
+
addComponents(__assign({}, nova_tailwind_components_js_1.NOVA_TAILWIND_COMPONENTS));
|
|
96
88
|
addUtilities(__assign(__assign({}, nova_tailwind_tokens_js_1.NOVA_TAILWIND_TOKENS), { '.visually-hidden': {
|
|
97
89
|
position: 'absolute',
|
|
98
90
|
padding: '0',
|
|
@@ -19,7 +19,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.novaThemeSafelist = exports.gap = exports.margin = exports.padding = exports.pointer = exports.colorSchemes = exports.responsive = void 0;
|
|
21
21
|
var nova_theme_js_1 = require("./nova-theme.js");
|
|
22
|
-
var nova_tailwind_tokens_js_1 = require("
|
|
22
|
+
var nova_tailwind_tokens_js_1 = require("../generated/nova-tailwind-tokens.js");
|
|
23
|
+
var nova_tailwind_components_js_1 = require("../generated/nova-tailwind-components.js");
|
|
23
24
|
// Enables responsive spacing modifiers for safelist variants
|
|
24
25
|
exports.responsive = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'];
|
|
25
26
|
// Enables responsive color schemes for safelist variants
|
|
@@ -329,8 +330,10 @@ var utils = [
|
|
|
329
330
|
{ pattern: /^bg-level-(00|10|20|30|40)(-hover)?$/ },
|
|
330
331
|
{ pattern: /^border-(high|medium|low)$/ },
|
|
331
332
|
];
|
|
332
|
-
// From the nova tailwind
|
|
333
|
-
var components = [
|
|
333
|
+
// From the nova tailwind components (nova-tailwind-components.ts)
|
|
334
|
+
var components = __spreadArray([], Object.keys(nova_tailwind_components_js_1.NOVA_TAILWIND_COMPONENTS).filter(function (key) {
|
|
335
|
+
return /^\.[a-zA-Z0-9-]+$/.test(key);
|
|
336
|
+
}), true);
|
|
334
337
|
// From the nova tailwind tokens (nova-tailwind-tokens.ts)
|
|
335
338
|
var tokens = __spreadArray(__spreadArray([], Object.keys(nova_tailwind_tokens_js_1.NOVA_TAILWIND_TOKENS), true), [
|
|
336
339
|
{ pattern: /-hover$/, variants: ['hover'] },
|