@nova-design-system/nova-base 3.0.0-beta.36 → 3.0.0-beta.38

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.
@@ -39,11 +39,16 @@ exports.NOVA_TAILWIND_COMPONENTS = {
39
39
  'border': '1px solid var(--components-button-medium-border)',
40
40
  'color': 'var(--components-button-medium-text-hover)'
41
41
  },
42
+ '.nv-button:active': {
43
+ 'background': 'var(--components-button-medium-background-active)',
44
+ 'border': '1px solid var(--components-button-medium-border-active)',
45
+ 'color': 'var(--components-button-medium-text-active)'
46
+ },
42
47
  '.nv-button:focus, .nv-button:focus-within': {
43
48
  'outline': 'none'
44
49
  },
45
50
  '.nv-button:focus-visible, .nv-button:has(:focus-visible)': {
46
- 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
51
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand)',
47
52
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
48
53
  },
49
54
  '.nv-button:disabled:not([disabled=false])': {
@@ -51,21 +56,26 @@ exports.NOVA_TAILWIND_COMPONENTS = {
51
56
  'cursor': 'not-allowed',
52
57
  'boxShadow': 'none'
53
58
  },
59
+ '.nv-button.active': {
60
+ 'background': 'var(--components-button-medium-background-active)',
61
+ 'border': '1px solid var(--components-button-medium-border-active)',
62
+ 'color': 'var(--components-button-medium-text-active)'
63
+ },
54
64
  '.nv-button.danger': {
55
65
  'background': 'var(--components-button-destructive-high-background)',
56
- 'border': '1px solid unset',
66
+ 'border': '1px solid transparent',
57
67
  'color': 'var(--components-button-destructive-high-text)'
58
68
  },
59
69
  '.nv-button.danger:hover': {
60
70
  'background': 'var(--components-button-destructive-high-background-hover)',
61
- 'border': '1px solid unset',
71
+ 'border': '1px solid transparent',
62
72
  'color': 'var(--components-button-destructive-high-text-hover)'
63
73
  },
64
74
  '.nv-button.danger:focus, .nv-button.danger:focus-within': {
65
75
  'outline': 'none'
66
76
  },
67
77
  '.nv-button.danger:focus-visible, .nv-button.danger:has(:focus-visible)': {
68
- 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-destructive)',
78
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive)',
69
79
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
70
80
  },
71
81
  '.nv-button.size-xs': {
@@ -126,11 +136,16 @@ exports.NOVA_TAILWIND_COMPONENTS = {
126
136
  'border': '1px solid var(--components-button-high-border)',
127
137
  'color': 'var(--components-button-high-text-hover)'
128
138
  },
139
+ '.nv-button.emphasis-high:active': {
140
+ 'background': 'var(--components-button-high-background-active)',
141
+ 'border': '1px solid var(--components-button-high-border-active)',
142
+ 'color': 'var(--components-button-high-text-active)'
143
+ },
129
144
  '.nv-button.emphasis-high:focus, .nv-button.emphasis-high:focus-within': {
130
145
  'outline': 'none'
131
146
  },
132
147
  '.nv-button.emphasis-high:focus-visible, .nv-button.emphasis-high:has(:focus-visible)': {
133
- 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
148
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand)',
134
149
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
135
150
  },
136
151
  '.nv-button.emphasis-high:disabled:not([disabled=false])': {
@@ -138,21 +153,26 @@ exports.NOVA_TAILWIND_COMPONENTS = {
138
153
  'cursor': 'not-allowed',
139
154
  'boxShadow': 'none'
140
155
  },
156
+ '.nv-button.emphasis-high.active': {
157
+ 'background': 'var(--components-button-high-background-active)',
158
+ 'border': '1px solid var(--components-button-high-border-active)',
159
+ 'color': 'var(--components-button-high-text-active)'
160
+ },
141
161
  '.nv-button.emphasis-high.danger': {
142
162
  'background': 'var(--components-button-destructive-high-background)',
143
- 'border': '1px solid unset',
163
+ 'border': '1px solid transparent',
144
164
  'color': 'var(--components-button-destructive-high-text)'
145
165
  },
146
166
  '.nv-button.emphasis-high.danger:hover': {
147
167
  'background': 'var(--components-button-destructive-high-background-hover)',
148
- 'border': '1px solid unset',
168
+ 'border': '1px solid transparent',
149
169
  'color': 'var(--components-button-destructive-high-text-hover)'
150
170
  },
151
171
  '.nv-button.emphasis-high.danger:focus, .nv-button.emphasis-high.danger:focus-within': {
152
172
  'outline': 'none'
153
173
  },
154
174
  '.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)',
175
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive)',
156
176
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
157
177
  },
158
178
  '.nv-button.emphasis-medium': {
@@ -165,11 +185,16 @@ exports.NOVA_TAILWIND_COMPONENTS = {
165
185
  'border': '1px solid var(--components-button-medium-border)',
166
186
  'color': 'var(--components-button-medium-text-hover)'
167
187
  },
188
+ '.nv-button.emphasis-medium:active': {
189
+ 'background': 'var(--components-button-medium-background-active)',
190
+ 'border': '1px solid var(--components-button-medium-border-active)',
191
+ 'color': 'var(--components-button-medium-text-active)'
192
+ },
168
193
  '.nv-button.emphasis-medium:focus, .nv-button.emphasis-medium:focus-within': {
169
194
  'outline': 'none'
170
195
  },
171
196
  '.nv-button.emphasis-medium:focus-visible, .nv-button.emphasis-medium:has(:focus-visible)': {
172
- 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
197
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand)',
173
198
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
174
199
  },
175
200
  '.nv-button.emphasis-medium:disabled:not([disabled=false])': {
@@ -177,6 +202,11 @@ exports.NOVA_TAILWIND_COMPONENTS = {
177
202
  'cursor': 'not-allowed',
178
203
  'boxShadow': 'none'
179
204
  },
205
+ '.nv-button.emphasis-medium.active': {
206
+ 'background': 'var(--components-button-medium-background-active)',
207
+ 'border': '1px solid var(--components-button-medium-border-active)',
208
+ 'color': 'var(--components-button-medium-text-active)'
209
+ },
180
210
  '.nv-button.emphasis-medium.danger': {
181
211
  'background': 'var(--components-button-destructive-medium-background)',
182
212
  'border': '1px solid var(--components-button-destructive-medium-border)',
@@ -191,7 +221,7 @@ exports.NOVA_TAILWIND_COMPONENTS = {
191
221
  'outline': 'none'
192
222
  },
193
223
  '.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)',
224
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive)',
195
225
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
196
226
  },
197
227
  '.nv-button.emphasis-low': {
@@ -204,11 +234,16 @@ exports.NOVA_TAILWIND_COMPONENTS = {
204
234
  'border': '1px solid var(--components-button-low-border)',
205
235
  'color': 'var(--components-button-low-text-hover)'
206
236
  },
237
+ '.nv-button.emphasis-low:active': {
238
+ 'background': 'var(--components-button-low-background-active)',
239
+ 'border': '1px solid var(--components-button-low-border-active)',
240
+ 'color': 'var(--components-button-low-text-active)'
241
+ },
207
242
  '.nv-button.emphasis-low:focus, .nv-button.emphasis-low:focus-within': {
208
243
  'outline': 'none'
209
244
  },
210
245
  '.nv-button.emphasis-low:focus-visible, .nv-button.emphasis-low:has(:focus-visible)': {
211
- 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
246
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand)',
212
247
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
213
248
  },
214
249
  '.nv-button.emphasis-low:disabled:not([disabled=false])': {
@@ -216,6 +251,11 @@ exports.NOVA_TAILWIND_COMPONENTS = {
216
251
  'cursor': 'not-allowed',
217
252
  'boxShadow': 'none'
218
253
  },
254
+ '.nv-button.emphasis-low.active': {
255
+ 'background': 'var(--components-button-low-background-active)',
256
+ 'border': '1px solid var(--components-button-low-border-active)',
257
+ 'color': 'var(--components-button-low-text-active)'
258
+ },
219
259
  '.nv-button.emphasis-low.danger': {
220
260
  'background': 'var(--components-button-destructive-low-background)',
221
261
  'border': '1px solid var(--components-button-destructive-low-border)',
@@ -230,7 +270,7 @@ exports.NOVA_TAILWIND_COMPONENTS = {
230
270
  'outline': 'none'
231
271
  },
232
272
  '.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)',
273
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive)',
234
274
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
235
275
  },
236
276
  '.nv-button.emphasis-lower': {
@@ -243,11 +283,16 @@ exports.NOVA_TAILWIND_COMPONENTS = {
243
283
  'border': '1px solid var(--components-button-lower-border)',
244
284
  'color': 'var(--components-button-lower-text-hover)'
245
285
  },
286
+ '.nv-button.emphasis-lower:active': {
287
+ 'background': 'var(--components-button-lower-background-active)',
288
+ 'border': '1px solid var(--components-button-lower-border-active)',
289
+ 'color': 'var(--components-button-lower-text-active)'
290
+ },
246
291
  '.nv-button.emphasis-lower:focus, .nv-button.emphasis-lower:focus-within': {
247
292
  'outline': 'none'
248
293
  },
249
294
  '.nv-button.emphasis-lower:focus-visible, .nv-button.emphasis-lower:has(:focus-visible)': {
250
- 'outline': 'var(--focus-outline-stroke) solid var(--color-focus-brand)',
295
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand)',
251
296
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
252
297
  },
253
298
  '.nv-button.emphasis-lower:disabled:not([disabled=false])': {
@@ -255,6 +300,11 @@ exports.NOVA_TAILWIND_COMPONENTS = {
255
300
  'cursor': 'not-allowed',
256
301
  'boxShadow': 'none'
257
302
  },
303
+ '.nv-button.emphasis-lower.active': {
304
+ 'background': 'var(--components-button-lower-background-active)',
305
+ 'border': '1px solid var(--components-button-lower-border-active)',
306
+ 'color': 'var(--components-button-lower-text-active)'
307
+ },
258
308
  '.nv-button.emphasis-lower.danger': {
259
309
  'background': 'var(--components-button-destructive-lower-background)',
260
310
  'border': '1px solid var(--components-button-destructive-lower-border)',
@@ -269,7 +319,7 @@ exports.NOVA_TAILWIND_COMPONENTS = {
269
319
  'outline': 'none'
270
320
  },
271
321
  '.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)',
322
+ 'outline': 'calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive)',
273
323
  'outlineOffset': 'calc(var(--focus-outline-offset) * 1)'
274
324
  },
275
325
  '.nv-button.fluid': {
@@ -283,10 +333,71 @@ exports.NOVA_TAILWIND_COMPONENTS = {
283
333
  '.nv-link:hover': {
284
334
  'color': 'var(--color-interaction-link-high-text-hover)'
285
335
  },
336
+ '.nv-sidenav .nv-link, .nv-navbar .nv-link, .nv-tabs .nv-link': {
337
+ 'display': 'flex',
338
+ 'alignItems': 'center',
339
+ 'color': 'var(--color-interaction-container-neutral-text)',
340
+ 'backgroundColor': 'var(--color-interaction-container-neutral-background)',
341
+ 'textDecoration': 'none',
342
+ 'fontWeight': '500',
343
+ 'padding': 'var(--spacing-2) var(--spacing-3)',
344
+ 'columnGap': 'var(--spacing-2)'
345
+ },
346
+ '.nv-tabs': {
347
+ 'display': 'flex',
348
+ 'flex': '1 1 0%',
349
+ 'alignItems': 'center',
350
+ 'borderBottom': '1px solid var(--color-content-low-border)',
351
+ 'columnGap': 'var(--spacing-0-5)'
352
+ },
286
353
  '.nv-tabs .nv-link': {
287
- 'borderColor': 'transparent'
354
+ 'borderStyle': 'solid',
355
+ 'borderColor': 'transparent',
356
+ 'borderWidth': '0 0 2px 0'
357
+ },
358
+ '.nv-tabs .nv-link:hover': {
359
+ 'color': 'var(--color-interaction-container-branded-low-text-hover)',
360
+ 'borderColor': 'transparent',
361
+ 'backgroundColor': 'transparent'
362
+ },
363
+ '.nv-tabs .nv-link.active': {
364
+ 'color': 'var(--color-interaction-container-branded-low-text-active)',
365
+ 'borderColor': 'var(--color-interaction-container-branded-low-border-active)',
366
+ 'backgroundColor': 'transparent'
367
+ },
368
+ '.nv-navbar .nv-link, .nv-sidenav .nv-link': {
369
+ 'border': 'solid 0 transparent',
370
+ 'borderRadius': 'var(--radius-rounded-md)'
371
+ },
372
+ '.nv-navbar .nv-link:hover, .nv-sidenav .nv-link:hover': {
373
+ 'color': 'var(--color-interaction-container-neutral-text-hover)',
374
+ 'borderColor': 'var(--color-interaction-container-neutral-border-hover)',
375
+ 'backgroundColor': 'var(--color-interaction-container-neutral-background-hover)'
376
+ },
377
+ '.nv-navbar .nv-link.active, .nv-navbar .nv-link.router-link-active, .nv-sidenav .nv-link.active, .nv-sidenav .nv-link.router-link-active': {
378
+ 'color': 'var(--color-interaction-container-neutral-text-active)',
379
+ 'borderColor': 'var(--color-interaction-container-neutral-text-active)',
380
+ 'backgroundColor': 'var(--color-interaction-container-neutral-background-active)'
381
+ },
382
+ '.nv-sidenav .collapsible .nv-link': {
383
+ 'justifyContent': 'space-between'
384
+ },
385
+ '.nv-sidenav .collapsible .nv-link .nv-iconbutton': {
386
+ 'width': '20px !important',
387
+ 'height': '20px !important'
388
+ },
389
+ '.nv-link .nv-badge': {
390
+ 'borderRadius': 'var(--radius-rounded-full)',
391
+ 'width': 'var(--spacing-5)',
392
+ 'display': 'flex',
393
+ 'alignItems': 'center',
394
+ 'justifyContent': 'center',
395
+ 'fontSize': 'var(--font-size-xs)',
396
+ 'color': 'var(--color-feedback-neutral-high-icon)',
397
+ 'backgroundColor': 'var(--color-feedback-neutral-high-background)'
288
398
  },
289
- '.nv-tabs .nv-link:hover,\n.nv-tabs .selected': {
290
- 'borderColor': 'var(--color-interaction-container-branded-high-border)'
399
+ '.nv-link.disabled': {
400
+ 'opacity': '0.5',
401
+ 'cursor': 'not-allowed'
291
402
  }
292
403
  };
@@ -47,6 +47,9 @@ exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
47
47
  'a:hover': {
48
48
  color: 'var(--color-interaction-link-high-text-hover)',
49
49
  },
50
+ 'no-underline': {
51
+ 'text-decoration': 'none',
52
+ },
50
53
  h1: {
51
54
  fontSize: 'var(--global-typography-h1-font-size)',
52
55
  lineHeight: 'var(--global-typography-h1-line-height)',
@@ -109,3 +112,4 @@ exports.novaTailwindPlugin = (0, plugin_js_1.default)(function (_a) {
109
112
  width: 'unset',
110
113
  } }));
111
114
  });
115
+ exports.default = exports.novaTailwindPlugin;
@@ -246,3 +246,4 @@ exports.novaTailwindTheme = {
246
246
  lineHeight: exports.lineHeight,
247
247
  },
248
248
  };
249
+ exports.default = exports.novaTailwindTheme;