@ndla/primitives 0.0.8 → 0.0.10

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "schemaVersion": "0.40.1",
2
+ "schemaVersion": "0.41.0",
3
3
  "styles": {
4
4
  "atomic": [
5
5
  "display]___[value:flex",
@@ -87,6 +87,8 @@
87
87
  "boxShadowColor]___[value:stroke.default",
88
88
  "color]___[value:text.onAction]___[cond:_disabled",
89
89
  "background]___[value:surface.disabled]___[cond:_disabled",
90
+ "boxShadowColor]___[value:surface.disabled]___[cond:_disabled",
91
+ "color]___[value:text.onAction]___[cond:_disabled<___>& svg",
90
92
  "color]___[value:text.onAction]___[cond:_disabled<___>_hover",
91
93
  "background]___[value:surface.disabled]___[cond:_disabled<___>_hover",
92
94
  "boxShadow]___[value:inset 0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
@@ -196,6 +198,30 @@
196
198
  "color]___[value:stroke.hover]___[cond:_checked<___>_hover",
197
199
  "color]___[value:stroke.disabled]___[cond:_disabled",
198
200
  "color]___[value:stroke.disabled]___[cond:_disabled<___>_hover",
201
+ "zIndex]___[value:dropdown",
202
+ "boxShadow]___[value:large",
203
+ "padding]___[value:xsmall",
204
+ "overflowY]___[value:auto",
205
+ "maxHeight]___[value:surface.xsmall",
206
+ "animation]___[value:fade-shift-in 0.25s ease-out]___[cond:_open",
207
+ "animation]___[value:fade-shift-out 0.25s ease-out]___[cond:_closed",
208
+ "transitionProperty]___[value:background, color, border-color",
209
+ "background]___[value:surface.hover]___[cond:_hover",
210
+ "background]___[value:surface.hover]___[cond:_highlighted",
211
+ "background]___[value:surface.selected]___[cond:_checked",
212
+ "background]___[value:surface.hover]___[cond:_checked<___>_highlighted",
213
+ "background]___[value:surface.default]___[cond:_hover",
214
+ "borderColor]___[value:stroke.default]___[cond:_highlighted",
215
+ "borderColor]___[value:stroke.default]___[cond:_checked",
216
+ "color]___[value:icon.default]___[cond:& svg",
217
+ "transformOrigin]___[value:center]___[cond:& svg",
218
+ "transitionDuration]___[value:normal]___[cond:& svg",
219
+ "transitionProperty]___[value:transform]___[cond:& svg",
220
+ "transitionTimingFunction]___[value:default]___[cond:& svg",
221
+ "transform]___[value:rotate(180deg)]___[cond:_open<___>& svg",
222
+ "color]___[value:stroke.default",
223
+ "textDecoration]___[value:underline]___[cond:_checked",
224
+ "textDecoration]___[value:underline]___[cond:_highlighted",
199
225
  "position]___[value:fixed",
200
226
  "height]___[value:100vh",
201
227
  "width]___[value:100vw",
@@ -214,7 +240,6 @@
214
240
  "maxWidth]___[value:95%",
215
241
  "maxHeight]___[value:95%",
216
242
  "margin]___[value:auto",
217
- "overflowY]___[value:auto",
218
243
  "borderRadius]___[value:sharp",
219
244
  "borderRadius]___[value:small]___[cond:tablet",
220
245
  "paddingBlockStart]___[value:env(safe-area-inset-top)",
@@ -263,6 +288,22 @@
263
288
  "textStyle]___[value:label.large!]___[cond:& > *",
264
289
  "color]___[value:text.error",
265
290
  "whiteSpace]___[value:pre-line",
291
+ "transitionProperty]___[value:transform, width, height",
292
+ "width]___[value:50%]___[cond:tablet",
293
+ "width]___[value:65%]___[cond:desktop",
294
+ "width]___[value:35%]___[cond:tablet",
295
+ "width]___[value:50%]___[cond:desktop",
296
+ "width]___[value:25%]___[cond:tablet",
297
+ "width]___[value:35%]___[cond:desktop",
298
+ "float]___[value:left]___[cond:tablet",
299
+ "clear]___[value:left]___[cond:tablet",
300
+ "paddingInlineEnd]___[value:medium]___[cond:tablet",
301
+ "float]___[value:right]___[cond:tablet",
302
+ "clear]___[value:right]___[cond:tablet",
303
+ "paddingInlineStart]___[value:medium]___[cond:tablet",
304
+ "zIndex]___[value:base",
305
+ "left]___[value:auto",
306
+ "marginBlock]___[value:xsmall",
266
307
  "borderRadius]___[value:small",
267
308
  "boxShadow]___[value:4px 4px 0px 0px var(--shadow-color)",
268
309
  "backgroundColor]___[value:surface.default",
@@ -309,13 +350,10 @@
309
350
  "margin]___[value:0",
310
351
  "transitionProperty]___[value:background, color",
311
352
  "textDecoration]___[value:underline]___[cond:_hover",
312
- "textDecoration]___[value:underline]___[cond:_highlighted",
313
353
  "color]___[value:stroke.disabled]___[cond:_disabled<___>& svg",
314
354
  "textDecoration]___[value:none]___[cond:_disabled<___>_hover",
315
355
  "background]___[value:surface.default]___[cond:_disabled<___>_hover",
316
356
  "color]___[value:stroke.disabled]___[cond:_disabled<___>_hover<___>& svg",
317
- "background]___[value:surface.hover]___[cond:_hover",
318
- "background]___[value:surface.hover]___[cond:_highlighted",
319
357
  "background]___[value:surface.active]___[cond:_active",
320
358
  "color]___[value:icon.error]___[cond:& svg",
321
359
  "color]___[value:text.default]___[cond:_hover",
@@ -328,9 +366,6 @@
328
366
  "minWidth]___[value:surface.xxsmall",
329
367
  "padding]___[value:3xsmall",
330
368
  "boxShadow]___[value:xsmall",
331
- "zIndex]___[value:dropdown",
332
- "animation]___[value:fade-shift-in 0.25s ease-out]___[cond:_open",
333
- "animation]___[value:fade-shift-out 0.25s ease-out]___[cond:_closed",
334
369
  "alignItems]___[value:flex-start",
335
370
  "gap]___[value:small",
336
371
  "background]___[value:surface.infoSubtle",
@@ -359,11 +394,22 @@
359
394
  "outlineColor]___[value:surface.default",
360
395
  "transitionProperty]___[value:background, border-color, box-shadow",
361
396
  "background]___[value:stroke.default]___[cond:_checked",
362
- "borderColor]___[value:stroke.default]___[cond:_checked",
363
397
  "outline]___[value:2px solid]___[cond:&:has(input:focus-visible)",
364
398
  "outlineOffset]___[value:4xsmall]___[cond:&:has(input:focus-visible)",
365
399
  "outlineColor]___[value:stroke.default]___[cond:&:has(input:focus-visible)",
366
400
  "borderRadius]___[value:xsmall]___[cond:&:has(input:focus-visible)",
401
+ "outlineOffset]___[value:-1]___[cond:_focusVisible",
402
+ "background]___[value:surface.selected]___[cond:_selected",
403
+ "background]___[value:surface.hover]___[cond:_selected<___>_hover",
404
+ "background]___[value:surface.hover]___[cond:_selected<___>_highlighted",
405
+ "background]___[value:surface.hover]___[cond:_highlighted<___>_hover",
406
+ "color]___[value:text.disabled]___[cond:_disabled<___>_highlighted",
407
+ "background]___[value:surface.disabled]___[cond:_disabled<___>_highlighted",
408
+ "color]___[value:text.disabled]___[cond:_disabled<___>_selected",
409
+ "background]___[value:surface.disabled]___[cond:_disabled<___>_selected",
410
+ "color]___[value:icon.default",
411
+ "width]___[value:surface.small",
412
+ "boxShadowColor]___[value:stroke.error]___[cond:_ariaInvalid",
367
413
  "animation]___[value:skeleton-pulse",
368
414
  "backgroundColor]___[value:surface.disabled",
369
415
  "backgroundClip]___[value:padding-box",
@@ -439,31 +485,11 @@
439
485
  "textAlign]___[value:center]___[cond:& td, & th<___>&[data-align='center']",
440
486
  "textAlign]___[value:left]___[cond:& td, & th<___>&[data-align='left']",
441
487
  "textAlign]___[value:right]___[cond:& td, & th<___>&[data-align='right']",
442
- "paddingBlockStart]___[value:xsmall]___[cond:_horizontal",
443
- "paddingInlineStart]___[value:xsmall]___[cond:_vertical",
444
- "boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
445
- "borderWidth]___[value:1px",
446
- "padding]___[value:xsmall",
447
- "outlineOffset]___[value:-3px]___[cond:_focusVisible",
448
- "outlineColor]___[value:stroke.default]___[cond:_focusVisible",
488
+ "flexDirection]___[value:column]___[cond:_horizontal",
489
+ "flexDirection]___[value:row]___[cond:_vertical",
449
490
  "overflow]___[value:auto",
450
491
  "marginBlockEnd]___[value:-1px]___[cond:_horizontal",
451
492
  "marginInlineEnd]___[value:-1px]___[cond:_vertical",
452
- "flexDirection]___[value:column]___[cond:_horizontal",
453
- "flexDirection]___[value:row]___[cond:_vertical",
454
- "outline]___[value:4px solid",
455
- "outlineColor]___[value:stroke.default",
456
- "outlineOffset]___[value:-4px",
457
- "height]___[value:var(--height)]___[cond:_peerFocusVisible",
458
- "width]___[value:var(--width)]___[cond:_peerFocusVisible",
459
- "borderTopRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_horizontal",
460
- "borderRightRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_vertical",
461
- "bottom]___[value:0]___[cond:_horizontal",
462
- "height]___[value:2]___[cond:_horizontal",
463
- "width]___[value:var(--width)]___[cond:_horizontal",
464
- "height]___[value:var(--height)]___[cond:_vertical",
465
- "left]___[value:0]___[cond:_vertical",
466
- "width]___[value:2]___[cond:_vertical",
467
493
  "transitionProperty]___[value:color, background, border-color",
468
494
  "whiteSpace]___[value:nowrap",
469
495
  "color]___[value:text.strong]___[cond:_selected",
@@ -476,6 +502,7 @@
476
502
  "justifyContent]___[value:flex-start]___[cond:_vertical",
477
503
  "borderRadius]___[value:unset]___[cond:_focusVisible",
478
504
  "borderColor]___[value:transparent",
505
+ "borderWidth]___[value:1px",
479
506
  "borderTopRadius]___[value:xsmall]___[cond:_horizontal",
480
507
  "borderTopLeftRadius]___[value:xsmall]___[cond:_vertical",
481
508
  "borderBottomLeftRadius]___[value:xsmall]___[cond:_vertical",
@@ -483,6 +510,28 @@
483
510
  "borderColor]___[value:stroke.subtle]___[cond:_selected",
484
511
  "borderBottomColor]___[value:transparent]___[cond:_selected<___>_horizontal",
485
512
  "borderRightColor]___[value:transparent]___[cond:_selected<___>_vertical",
513
+ "outlineOffset]___[value:-3px]___[cond:_focusVisible",
514
+ "outlineColor]___[value:stroke.default]___[cond:_focusVisible",
515
+ "paddingBlockStart]___[value:xsmall]___[cond:_horizontal",
516
+ "paddingInlineStart]___[value:xsmall]___[cond:_vertical",
517
+ "boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
518
+ "width]___[value:full",
519
+ "gap]___[value:1",
520
+ "paddingInlineEnd]___[value:3xsmall",
521
+ "paddingInlineStart]___[value:xsmall",
522
+ "cursor]___[value:initial",
523
+ "outlineColor]___[value:transparent",
524
+ "backgroundColor]___[value:surface.actionSubtle.selected",
525
+ "transitionProperty]___[value:background, outline-color, color",
526
+ "backgroundColor]___[value:surface.actionSubtle.hover]___[cond:_hover",
527
+ "color]___[value:stroke.hover]___[cond:_hover<___>& svg",
528
+ "backgroundColor]___[value:surface.actionSubtle.hover]___[cond:_highlighted",
529
+ "outlineWidth]___[value:3px]___[cond:_highlighted",
530
+ "outlineOffset]___[value:-1px]___[cond:_highlighted",
531
+ "outlineColor]___[value:stroke.hover]___[cond:_highlighted",
532
+ "color]___[value:stroke.hover]___[cond:_highlighted<___>& svg",
533
+ "paddingBottom]___[value:1",
534
+ "display]___[value:inline-block]___[cond:& span",
486
535
  "textStyle]___[value:body.medium",
487
536
  "textStyle]___[value:heading.medium",
488
537
  "boxShadow]___[value:medium",