@ndla/primitives 1.0.32-alpha.0 → 1.0.34-alpha.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.
@@ -56,38 +56,34 @@
56
56
  "marginBlock]___[value:small]___[cond:& > li",
57
57
  "position]___[value:absolute]___[cond:& > li<___>_before",
58
58
  "transform]___[value:translateX(-100%)]___[cond:& > li<___>_before",
59
- "paddingInlineEnd]___[value:3xsmall]___[cond:& > li<___>_before",
59
+ "paddingInlineEnd]___[value:0.25em]___[cond:& > li<___>_before",
60
60
  "fontVariantNumeric]___[value:tabular-nums]___[cond:& > li<___>_before",
61
- "marginInlineStart]___[value:small]___[cond:& > li",
61
+ "marginInlineStart]___[value:2.5ch",
62
62
  "counterReset]___[value:level1",
63
63
  "counterReset]___[value:level1 var(--start, 0)]___[cond:&[data-count='true']",
64
64
  "counterIncrement]___[value:level1]___[cond:& > li",
65
65
  "content]___[value:counter(level1, decimal) '. ']___[cond:& > li<___>_before",
66
- "marginInlineStart]___[value:medium]___[cond:& > li<___>& > ol[data-variant='letters'] > li",
67
66
  "counterReset]___[value:level2]___[cond:& > li<___>& > ol:not([data-variant='letters'])",
68
67
  "counterReset]___[value:level2 var(--start, 0)]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>&[data-count='true']",
69
- "marginInlineStart]___[value:xlarge]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
68
+ "marginInlineStart]___[value:1ch]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
70
69
  "counterIncrement]___[value:level2]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
71
70
  "content]___[value:counter(level1, decimal) '.' counter(level2, decimal) '. ']___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>_before",
72
71
  "counterReset]___[value:level3]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])",
73
72
  "counterReset]___[value:level3 var(--start, 0)]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>&[data-count='true']",
74
- "marginInlineStart]___[value:xxlarge]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
73
+ "marginInlineStart]___[value:2.5ch]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
75
74
  "counterIncrement]___[value:level3]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
76
75
  "content]___[value:counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. ']___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>_before",
77
76
  "counterReset]___[value:level4]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])",
78
77
  "counterReset]___[value:level4 var(--start, 0)]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>&[data-count='true']",
79
- "marginInlineStart]___[value:3xlarge]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
78
+ "marginInlineStart]___[value:4.5ch]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
80
79
  "counterIncrement]___[value:level4]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
81
80
  "content]___[value:counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. ']___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>_before",
81
+ "marginInlineStart]___[value:0.5ch]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol[data-variant='letters'] > li",
82
82
  "content]___[value:counter(level1, upper-alpha) '. ']___[cond:& > li<___>_before",
83
- "marginInlineStart]___[value:medium]___[cond:& > li<___>& > ol:not([data-variant='letters']) > li",
84
- "marginInlineStart]___[value:small]___[cond:& > li<___>& > ol[data-variant='letters'] > li",
85
83
  "content]___[value:counter(level1, lower-alpha) '. ']___[cond:& > li<___>& > ol[data-variant='letters'] > li<___>_before",
86
- "marginInlineStart]___[value:small]___[cond:& > li<___>& > ol[data-variant='letters'] > li<___>& > ol[data-variant='letters'] > li",
87
84
  "content]___[value:counter(level1, lower-roman) '. ']___[cond:& > li<___>& > ol[data-variant='letters'] > li<___>& > ol[data-variant='letters'] > li<___>_before",
88
- "marginInlineStart]___[value:medium]___[cond:& > li<___>& > ol[data-variant='letters'] > li<___>& > ol[data-variant='letters'] > li<___>& > ol:not([data-variant='letters']) > li",
89
85
  "listStyle]___[value:revert",
90
- "paddingInlineStart]___[value:medium",
86
+ "paddingInlineStart]___[value:2.5ch",
91
87
  "marginBlock]___[value:small]___[cond:& li",
92
88
  "color]___[value:icon.strong]___[cond:& li<___>_marker",
93
89
  "fontWeight]___[value:bold]___[cond:& dt",
@@ -162,23 +158,23 @@
162
158
  "outlineStyle]___[value:solid]___[cond:_focusVisible",
163
159
  "paddingBlock]___[value:xxsmall",
164
160
  "minHeight]___[value:24",
161
+ "marginInline]___[value:0]___[cond:& svg",
162
+ "marginBlock]___[value:0]___[cond:& svg",
163
+ "width]___[value:medium]___[cond:& svg",
164
+ "height]___[value:medium]___[cond:& svg",
165
165
  "textStyle]___[value:label.small",
166
166
  "minHeight]___[value:large",
167
167
  "paddingBlock]___[value:4xsmall",
168
+ "width]___[value:small]___[cond:& svg",
169
+ "height]___[value:small]___[cond:& svg",
168
170
  "lineHeight]___[value:1",
169
171
  "minHeight]___[value:unset",
170
172
  "--shadow-width]___[value:3px",
171
173
  "height]___[value:xxlarge",
172
174
  "width]___[value:xxlarge",
173
- "marginInline]___[value:0]___[cond:& svg",
174
- "marginBlock]___[value:0]___[cond:& svg",
175
- "width]___[value:medium]___[cond:& svg",
176
- "height]___[value:medium]___[cond:& svg",
177
175
  "--shadow-width]___[value:2px",
178
176
  "height]___[value:large",
179
177
  "width]___[value:large",
180
- "width]___[value:small]___[cond:& svg",
181
- "height]___[value:small]___[cond:& svg",
182
178
  "paddingInline]___[value:xxsmall",
183
179
  "userSelect]___[value:none",
184
180
  "color]___[value:text.action]___[cond:_hover",
@@ -203,8 +199,8 @@
203
199
  "outlineColor]___[value:stroke.hover]___[cond:_hover",
204
200
  "backgroundColor]___[value:surface.dangerSubtle]___[cond:_hover<___>_invalid",
205
201
  "color]___[value:text.onAction]___[cond:_checked",
206
- "background]___[value:surface.actionSubtle.selected]___[cond:_checked",
207
- "borderColor]___[value:surface.actionSubtle.selected]___[cond:_checked",
202
+ "background]___[value:surface.action.selected]___[cond:_checked",
203
+ "borderColor]___[value:surface.action.selected]___[cond:_checked",
208
204
  "outlineColor]___[value:icon.onAction]___[cond:_checked",
209
205
  "outlineOffset]___[value:-4px]___[cond:_checked<___>_focus",
210
206
  "outlineOffset]___[value:-2px]___[cond:_checked<___>_hover",
@@ -353,6 +349,7 @@
353
349
  "marginBlock]___[value:xsmall",
354
350
  "paddingInlineEnd]___[value:medium",
355
351
  "paddingInlineEnd]___[value:0]___[cond:tabletDown",
352
+ "paddingInlineStart]___[value:medium",
356
353
  "paddingInlineStart]___[value:0]___[cond:tabletDown",
357
354
  "paddingInlineStart]___[value:0",
358
355
  "paddingInlineEnd]___[value:0",
@@ -582,17 +579,19 @@
582
579
  "paddingBlockStart]___[value:xsmall]___[cond:_horizontal",
583
580
  "paddingInlineStart]___[value:xsmall]___[cond:_vertical",
584
581
  "boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
585
- "outline]___[value:3px solid",
586
- "outlineColor]___[value:stroke.default",
587
- "outlineOffset]___[value:-3px",
582
+ "background]___[value:stroke.default",
588
583
  "height]___[value:var(--height)]___[cond:_peerFocusVisible",
589
584
  "width]___[value:var(--width)]___[cond:_peerFocusVisible",
585
+ "outline]___[value:3px solid]___[cond:_peerFocusVisible",
586
+ "outlineOffset]___[value:-3px]___[cond:_peerFocusVisible",
587
+ "outlineColor]___[value:stroke.default]___[cond:_peerFocusVisible",
588
+ "background]___[value:transparent]___[cond:_peerFocusVisible",
590
589
  "borderTopRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_horizontal",
591
590
  "borderRightRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_vertical",
592
591
  "top]___[value:calc(var(--top) + var(--height) - 6px)]___[cond:_horizontal",
593
- "top]___[value:var(--top)]___[cond:_horizontal<___>_peerFocusVisible",
594
592
  "height]___[value:3]___[cond:_horizontal",
595
593
  "width]___[value:var(--width)]___[cond:_horizontal",
594
+ "top]___[value:var(--top)]___[cond:_horizontal<___>_peerFocusVisible",
596
595
  "height]___[value:var(--height)]___[cond:_vertical",
597
596
  "left]___[value:0]___[cond:_vertical",
598
597
  "width]___[value:3]___[cond:_vertical",
@@ -602,7 +601,7 @@
602
601
  "paddingInlineStart]___[value:xsmall",
603
602
  "cursor]___[value:initial",
604
603
  "outlineColor]___[value:transparent",
605
- "backgroundColor]___[value:surface.actionSubtle.selected",
604
+ "backgroundColor]___[value:surface.action.selected",
606
605
  "transitionProperty]___[value:background, outline-color, color",
607
606
  "backgroundColor]___[value:surface.actionSubtle.hover]___[cond:_hover",
608
607
  "color]___[value:stroke.hover]___[cond:_hover<___>& svg",
package/dist/styles.css CHANGED
@@ -170,6 +170,10 @@
170
170
  border-bottom-right-radius: var(--radii-xsmall);
171
171
  }
172
172
 
173
+ .ms_2\.5ch {
174
+ margin-inline-start: 2.5ch;
175
+ }
176
+
173
177
  .counter-reset_level1 {
174
178
  counter-reset: level1;
175
179
  }
@@ -178,8 +182,8 @@
178
182
  list-style: revert;
179
183
  }
180
184
 
181
- .ps_medium {
182
- padding-inline-start: var(--spacing-medium);
185
+ .ps_2\.5ch {
186
+ padding-inline-start: 2.5ch;
183
187
  }
184
188
 
185
189
  .px_xsmall {
@@ -556,6 +560,10 @@
556
560
  padding-inline-end: var(--spacing-medium);
557
561
  }
558
562
 
563
+ .ps_medium {
564
+ padding-inline-start: var(--spacing-medium);
565
+ }
566
+
559
567
  .ps_0 {
560
568
  padding-inline-start: 0;
561
569
  }
@@ -837,12 +845,8 @@
837
845
  padding-block: var(--spacing-3xsmall);
838
846
  }
839
847
 
840
- .ring_3px_solid {
841
- outline: 3px solid;
842
- }
843
-
844
- .ring-o_-3px {
845
- outline-offset: -3px;
848
+ .bg_stroke\.default {
849
+ background: var(--colors-stroke-default);
846
850
  }
847
851
 
848
852
  .w_full {
@@ -1357,16 +1361,12 @@
1357
1361
  border-width: 1px;
1358
1362
  }
1359
1363
 
1360
- .ring-c_stroke\.default {
1361
- outline-color: var(--colors-stroke-default);
1362
- }
1363
-
1364
1364
  .ring-c_transparent {
1365
1365
  outline-color: transparent;
1366
1366
  }
1367
1367
 
1368
- .bg-c_surface\.actionSubtle\.selected {
1369
- background-color: var(--colors-surface-action-subtle-selected);
1368
+ .bg-c_surface\.action\.selected {
1369
+ background-color: var(--colors-surface-action-selected);
1370
1370
  }
1371
1371
 
1372
1372
  .trs-prop_background\,_outline-color\,_color {
@@ -1489,10 +1489,6 @@
1489
1489
  margin-block: var(--spacing-small);
1490
1490
  }
1491
1491
 
1492
- .\[\&_\>_li\]\:ms_small > li {
1493
- margin-inline-start: var(--spacing-small);
1494
- }
1495
-
1496
1492
  .\[\&\[data-count\=\'true\'\]\]\:counter-reset_level1_var\(--start\,_0\)[data-count='true'] {
1497
1493
  counter-reset: level1 var(--start, 0);
1498
1494
  }
@@ -1549,8 +1545,8 @@
1549
1545
  color: var(--colors-text-on-action);
1550
1546
  }
1551
1547
 
1552
- .checked\:bg_surface\.actionSubtle\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
1553
- background: var(--colors-surface-action-subtle-selected);
1548
+ .checked\:bg_surface\.action\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
1549
+ background: var(--colors-surface-action-selected);
1554
1550
  }
1555
1551
 
1556
1552
  .invalid\:bg_surface\.dangerSubtle:is(:invalid, [data-invalid]) {
@@ -1907,8 +1903,8 @@
1907
1903
  border-color: var(--colors-stroke-disabled);
1908
1904
  }
1909
1905
 
1910
- .checked\:bd-c_surface\.actionSubtle\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
1911
- border-color: var(--colors-surface-action-subtle-selected);
1906
+ .checked\:bd-c_surface\.action\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
1907
+ border-color: var(--colors-surface-action-selected);
1912
1908
  }
1913
1909
 
1914
1910
  .checked\:ring-c_icon\.onAction:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
@@ -2208,6 +2204,18 @@
2208
2204
  width: var(--width);
2209
2205
  }
2210
2206
 
2207
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:ring_3px_solid {
2208
+ outline: 3px solid;
2209
+ }
2210
+
2211
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:ring-o_-3px {
2212
+ outline-offset: -3px;
2213
+ }
2214
+
2215
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:bg_transparent {
2216
+ background: transparent;
2217
+ }
2218
+
2211
2219
  .focusVisible\:ring-c_stroke\.default:is(:focus-visible, [data-focus-visible]) {
2212
2220
  outline-color: var(--colors-stroke-default);
2213
2221
  }
@@ -2240,6 +2248,10 @@
2240
2248
  outline-color: var(--colors-surface-action);
2241
2249
  }
2242
2250
 
2251
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:ring-c_stroke\.default {
2252
+ outline-color: var(--colors-stroke-default);
2253
+ }
2254
+
2243
2255
  .hover\:bg_surface\.actionSubtle\.hover:is(:hover, [data-hover]) {
2244
2256
  background: var(--colors-surface-action-subtle-hover);
2245
2257
  }
@@ -2404,26 +2416,14 @@
2404
2416
  transform: translateX(-100%);
2405
2417
  }
2406
2418
 
2407
- .\[\&_\>_li\]\:before\:pe_3xsmall > li::before {
2408
- padding-inline-end: var(--spacing-3xsmall);
2409
- }
2410
-
2411
- .\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:ms_medium > li > ol[data-variant='letters'] > li {
2412
- margin-inline-start: var(--spacing-medium);
2419
+ .\[\&_\>_li\]\:before\:pe_0\.25em > li::before {
2420
+ padding-inline-end: 0.25em;
2413
2421
  }
2414
2422
 
2415
2423
  .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:counter-reset_level2 > li > ol:not([data-variant='letters']) {
2416
2424
  counter-reset: level2;
2417
2425
  }
2418
2426
 
2419
- .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)_\>_li\]\:ms_medium > li > ol:not([data-variant='letters']) > li {
2420
- margin-inline-start: var(--spacing-medium);
2421
- }
2422
-
2423
- .\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:ms_small > li > ol[data-variant='letters'] > li {
2424
- margin-inline-start: var(--spacing-small);
2425
- }
2426
-
2427
2427
  .\[\&_li\]\:marker\:c_icon\.strong li::marker {
2428
2428
  color: var(--colors-icon-strong);
2429
2429
  }
@@ -2726,18 +2726,14 @@
2726
2726
  counter-reset: level2 var(--start, 0);
2727
2727
  }
2728
2728
 
2729
- .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:ms_xlarge > li > ol:not([data-variant='letters']) > li {
2730
- margin-inline-start: var(--spacing-xlarge);
2729
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:ms_1ch > li > ol:not([data-variant='letters']) > li {
2730
+ margin-inline-start: 1ch;
2731
2731
  }
2732
2732
 
2733
2733
  .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:counter-increment_level2 > li > ol:not([data-variant='letters']) > li {
2734
2734
  counter-increment: level2;
2735
2735
  }
2736
2736
 
2737
- .\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:ms_small > li > ol[data-variant='letters'] > li > ol[data-variant='letters'] > li {
2738
- margin-inline-start: var(--spacing-small);
2739
- }
2740
-
2741
2737
  .disabled\:checked\:hover\:c_text\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled='true']):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):is(:hover, [data-hover]) {
2742
2738
  color: var(--colors-text-disabled);
2743
2739
  }
@@ -2786,10 +2782,6 @@
2786
2782
  counter-reset: level3;
2787
2783
  }
2788
2784
 
2789
- .\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)_\>_li\]\:ms_medium > li > ol[data-variant='letters'] > li > ol[data-variant='letters'] > li > ol:not([data-variant='letters']) > li {
2790
- margin-inline-start: var(--spacing-medium);
2791
- }
2792
-
2793
2785
  .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:before\:content_counter\(level1\,_decimal\)_\'\.\'_counter\(level2\,_decimal\)_\'\._\' > li > ol:not([data-variant='letters']) > li::before {
2794
2786
  content: counter(level1, decimal) '.' counter(level2, decimal) '. ';
2795
2787
  }
@@ -2802,8 +2794,8 @@
2802
2794
  counter-reset: level3 var(--start, 0);
2803
2795
  }
2804
2796
 
2805
- .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:ms_xxlarge > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li {
2806
- margin-inline-start: var(--spacing-xxlarge);
2797
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:ms_2\.5ch > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li {
2798
+ margin-inline-start: 2.5ch;
2807
2799
  }
2808
2800
 
2809
2801
  .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:counter-increment_level3 > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li {
@@ -2822,14 +2814,18 @@
2822
2814
  counter-reset: level4 var(--start, 0);
2823
2815
  }
2824
2816
 
2825
- .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:ms_3xlarge > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li {
2826
- margin-inline-start: var(--spacing-3xlarge);
2817
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:ms_4\.5ch > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li {
2818
+ margin-inline-start: 4.5ch;
2827
2819
  }
2828
2820
 
2829
2821
  .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:counter-increment_level4 > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li {
2830
2822
  counter-increment: level4;
2831
2823
  }
2832
2824
 
2825
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:ms_0\.5ch > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li > ol[data-variant='letters'] > li {
2826
+ margin-inline-start: 0.5ch;
2827
+ }
2828
+
2833
2829
  .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:before\:content_counter\(level1\,_decimal\)_\'\.\'_counter\(level2\,_decimal\)_\'\.\'_counter\(level3\,_decimal\)_\'\.\'_counter\(level4\,_decimal\)_\'\._\' > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li::before {
2834
2830
  content: counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. ';
2835
2831
  }
@@ -23,11 +23,11 @@ const orderedListRecipe = cva({
23
23
  _before: {
24
24
  position: "absolute",
25
25
  transform: "translateX(-100%)",
26
- paddingInlineEnd: "3xsmall",
26
+ paddingInlineEnd: "0.25em",
27
27
  fontVariantNumeric: "tabular-nums"
28
- },
29
- marginInlineStart: "small"
30
- }
28
+ }
29
+ },
30
+ marginInlineStart: "2.5ch"
31
31
  },
32
32
  defaultVariants: {
33
33
  variant: "numbers"
@@ -44,16 +44,13 @@ const orderedListRecipe = cva({
44
44
  _before: {
45
45
  content: "counter(level1, decimal) '. '"
46
46
  },
47
- [LETTER_LIST_ITEM]: {
48
- marginInlineStart: "medium"
49
- },
50
47
  [NUMBER_LIST]: {
51
48
  counterReset: "level2",
52
49
  "&[data-count='true']": {
53
50
  counterReset: "level2 var(--start, 0)"
54
51
  },
55
52
  [LIST_ITEM]: {
56
- marginInlineStart: "xlarge",
53
+ marginInlineStart: "1ch",
57
54
  counterIncrement: "level2",
58
55
  _before: {
59
56
  content: "counter(level1, decimal) '.' counter(level2, decimal) '. '"
@@ -64,7 +61,7 @@ const orderedListRecipe = cva({
64
61
  counterReset: "level3 var(--start, 0)"
65
62
  },
66
63
  [LIST_ITEM]: {
67
- marginInlineStart: "xxlarge",
64
+ marginInlineStart: "2.5ch",
68
65
  counterIncrement: "level3",
69
66
  _before: {
70
67
  content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. '"
@@ -75,10 +72,13 @@ const orderedListRecipe = cva({
75
72
  counterReset: "level4 var(--start, 0)"
76
73
  },
77
74
  [LIST_ITEM]: {
78
- marginInlineStart: "3xlarge",
75
+ marginInlineStart: "4.5ch",
79
76
  counterIncrement: "level4",
80
77
  _before: {
81
78
  content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. '"
79
+ },
80
+ [LETTER_LIST_ITEM]: {
81
+ marginInlineStart: "0.5ch"
82
82
  }
83
83
  }
84
84
  }
@@ -98,21 +98,13 @@ const orderedListRecipe = cva({
98
98
  _before: {
99
99
  content: "counter(level1, upper-alpha) '. '"
100
100
  },
101
- [NUMBER_LIST_ITEM]: {
102
- marginInlineStart: "medium"
103
- },
104
101
  [LETTER_LIST_ITEM]: {
105
- marginInlineStart: "small",
106
102
  _before: {
107
103
  content: "counter(level1, lower-alpha) '. '"
108
104
  },
109
105
  [LETTER_LIST_ITEM]: {
110
- marginInlineStart: "small",
111
106
  _before: {
112
107
  content: "counter(level1, lower-roman) '. '"
113
- },
114
- [NUMBER_LIST_ITEM]: {
115
- marginInlineStart: "medium"
116
108
  }
117
109
  }
118
110
  }
@@ -148,7 +140,7 @@ export const OrderedList = /*#__PURE__*/forwardRef((_ref, ref) => {
148
140
  export const UnOrderedList = styled("ul", {
149
141
  base: {
150
142
  listStyle: "revert",
151
- paddingInlineStart: "medium",
143
+ paddingInlineStart: "2.5ch",
152
144
  "& li": {
153
145
  marginBlock: "small",
154
146
  _marker: {
package/es/Button.js CHANGED
@@ -170,13 +170,25 @@ export const buttonRecipe = cva({
170
170
  textStyle: "label.medium",
171
171
  paddingInline: "small",
172
172
  paddingBlock: "xxsmall",
173
- minHeight: "24"
173
+ minHeight: "24",
174
+ "& svg": {
175
+ marginInline: "0",
176
+ marginBlock: "0",
177
+ width: "medium",
178
+ height: "medium"
179
+ }
174
180
  },
175
181
  small: {
176
182
  textStyle: "label.small",
177
183
  minHeight: "large",
178
184
  paddingInline: "xsmall",
179
- paddingBlock: "4xsmall"
185
+ paddingBlock: "4xsmall",
186
+ "& svg": {
187
+ marginInline: "0",
188
+ marginBlock: "0",
189
+ width: "small",
190
+ height: "small"
191
+ }
180
192
  }
181
193
  }
182
194
  }
package/es/Checkbox.js CHANGED
@@ -152,8 +152,8 @@ const checkboxRecipe = sva({
152
152
  },
153
153
  _checked: {
154
154
  color: "text.onAction",
155
- background: "surface.actionSubtle.selected",
156
- borderColor: "surface.actionSubtle.selected",
155
+ background: "surface.action.selected",
156
+ borderColor: "surface.action.selected",
157
157
  outlineColor: "icon.onAction",
158
158
  _focus: {
159
159
  outlineOffset: "-4px"
package/es/Tabs.js CHANGED
@@ -111,13 +111,14 @@ const tabsRecipe = sva({
111
111
  }
112
112
  },
113
113
  indicator: {
114
- background: "transparent",
115
- outline: "3px solid",
116
- outlineColor: "stroke.default",
117
- outlineOffset: "-3px",
114
+ background: "stroke.default",
118
115
  _peerFocusVisible: {
119
116
  height: "var(--height)",
120
117
  width: "var(--width)",
118
+ outline: "3px solid",
119
+ outlineOffset: "-3px",
120
+ outlineColor: "stroke.default",
121
+ background: "transparent",
121
122
  _horizontal: {
122
123
  borderTopRadius: "xsmall"
123
124
  },
@@ -127,11 +128,11 @@ const tabsRecipe = sva({
127
128
  },
128
129
  _horizontal: {
129
130
  top: "calc(var(--top) + var(--height) - 6px)",
131
+ height: "3",
132
+ width: "var(--width)",
130
133
  _peerFocusVisible: {
131
134
  top: "var(--top)"
132
- },
133
- height: "3",
134
- width: "var(--width)"
135
+ }
135
136
  },
136
137
  _vertical: {
137
138
  height: "var(--height)",
package/es/TagsInput.js CHANGED
@@ -40,7 +40,7 @@ const tagsInputRecipe = sva({
40
40
  borderRadius: "large",
41
41
  outline: "1px solid",
42
42
  outlineColor: "transparent",
43
- backgroundColor: "surface.actionSubtle.selected",
43
+ backgroundColor: "surface.action.selected",
44
44
  color: "text.onAction",
45
45
  transitionDuration: "normal",
46
46
  transitionProperty: "background, outline-color, color",
@@ -19,16 +19,13 @@ declare const orderedListRecipe: import("@ndla/styled-system/types").RecipeRunti
19
19
  _before: {
20
20
  content: "counter(level1, decimal) '. '";
21
21
  };
22
- "& > ol[data-variant='letters'] > li": {
23
- marginInlineStart: "medium";
24
- };
25
22
  "& > ol:not([data-variant='letters'])": {
26
23
  counterReset: "level2";
27
24
  "&[data-count='true']": {
28
25
  counterReset: "level2 var(--start, 0)";
29
26
  };
30
27
  "& > li": {
31
- marginInlineStart: "xlarge";
28
+ marginInlineStart: "1ch";
32
29
  counterIncrement: "level2";
33
30
  _before: {
34
31
  content: "counter(level1, decimal) '.' counter(level2, decimal) '. '";
@@ -39,7 +36,7 @@ declare const orderedListRecipe: import("@ndla/styled-system/types").RecipeRunti
39
36
  counterReset: "level3 var(--start, 0)";
40
37
  };
41
38
  "& > li": {
42
- marginInlineStart: "xxlarge";
39
+ marginInlineStart: "2.5ch";
43
40
  counterIncrement: "level3";
44
41
  _before: {
45
42
  content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. '";
@@ -50,11 +47,14 @@ declare const orderedListRecipe: import("@ndla/styled-system/types").RecipeRunti
50
47
  counterReset: "level4 var(--start, 0)";
51
48
  };
52
49
  "& > li": {
53
- marginInlineStart: "3xlarge";
50
+ marginInlineStart: "4.5ch";
54
51
  counterIncrement: "level4";
55
52
  _before: {
56
53
  content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. '";
57
54
  };
55
+ "& > ol[data-variant='letters'] > li": {
56
+ marginInlineStart: "0.5ch";
57
+ };
58
58
  };
59
59
  };
60
60
  };
@@ -73,22 +73,14 @@ declare const orderedListRecipe: import("@ndla/styled-system/types").RecipeRunti
73
73
  _before: {
74
74
  content: "counter(level1, upper-alpha) '. '";
75
75
  };
76
- "& > ol:not([data-variant='letters']) > li": {
77
- marginInlineStart: "medium";
78
- };
79
76
  "& > ol[data-variant='letters'] > li": {
80
- marginInlineStart: "small";
81
77
  _before: {
82
78
  content: "counter(level1, lower-alpha) '. '";
83
79
  };
84
80
  "& > ol[data-variant='letters'] > li": {
85
- marginInlineStart: "small";
86
81
  _before: {
87
82
  content: "counter(level1, lower-roman) '. '";
88
83
  };
89
- "& > ol:not([data-variant='letters']) > li": {
90
- marginInlineStart: "medium";
91
- };
92
84
  };
93
85
  };
94
86
  };
@@ -29,11 +29,11 @@ const orderedListRecipe = (0, _css.cva)({
29
29
  _before: {
30
30
  position: "absolute",
31
31
  transform: "translateX(-100%)",
32
- paddingInlineEnd: "3xsmall",
32
+ paddingInlineEnd: "0.25em",
33
33
  fontVariantNumeric: "tabular-nums"
34
- },
35
- marginInlineStart: "small"
36
- }
34
+ }
35
+ },
36
+ marginInlineStart: "2.5ch"
37
37
  },
38
38
  defaultVariants: {
39
39
  variant: "numbers"
@@ -50,16 +50,13 @@ const orderedListRecipe = (0, _css.cva)({
50
50
  _before: {
51
51
  content: "counter(level1, decimal) '. '"
52
52
  },
53
- [LETTER_LIST_ITEM]: {
54
- marginInlineStart: "medium"
55
- },
56
53
  [NUMBER_LIST]: {
57
54
  counterReset: "level2",
58
55
  "&[data-count='true']": {
59
56
  counterReset: "level2 var(--start, 0)"
60
57
  },
61
58
  [LIST_ITEM]: {
62
- marginInlineStart: "xlarge",
59
+ marginInlineStart: "1ch",
63
60
  counterIncrement: "level2",
64
61
  _before: {
65
62
  content: "counter(level1, decimal) '.' counter(level2, decimal) '. '"
@@ -70,7 +67,7 @@ const orderedListRecipe = (0, _css.cva)({
70
67
  counterReset: "level3 var(--start, 0)"
71
68
  },
72
69
  [LIST_ITEM]: {
73
- marginInlineStart: "xxlarge",
70
+ marginInlineStart: "2.5ch",
74
71
  counterIncrement: "level3",
75
72
  _before: {
76
73
  content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. '"
@@ -81,10 +78,13 @@ const orderedListRecipe = (0, _css.cva)({
81
78
  counterReset: "level4 var(--start, 0)"
82
79
  },
83
80
  [LIST_ITEM]: {
84
- marginInlineStart: "3xlarge",
81
+ marginInlineStart: "4.5ch",
85
82
  counterIncrement: "level4",
86
83
  _before: {
87
84
  content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. '"
85
+ },
86
+ [LETTER_LIST_ITEM]: {
87
+ marginInlineStart: "0.5ch"
88
88
  }
89
89
  }
90
90
  }
@@ -104,21 +104,13 @@ const orderedListRecipe = (0, _css.cva)({
104
104
  _before: {
105
105
  content: "counter(level1, upper-alpha) '. '"
106
106
  },
107
- [NUMBER_LIST_ITEM]: {
108
- marginInlineStart: "medium"
109
- },
110
107
  [LETTER_LIST_ITEM]: {
111
- marginInlineStart: "small",
112
108
  _before: {
113
109
  content: "counter(level1, lower-alpha) '. '"
114
110
  },
115
111
  [LETTER_LIST_ITEM]: {
116
- marginInlineStart: "small",
117
112
  _before: {
118
113
  content: "counter(level1, lower-roman) '. '"
119
- },
120
- [NUMBER_LIST_ITEM]: {
121
- marginInlineStart: "medium"
122
114
  }
123
115
  }
124
116
  }
@@ -154,7 +146,7 @@ const OrderedList = exports.OrderedList = /*#__PURE__*/(0, _react.forwardRef)((_
154
146
  const UnOrderedList = exports.UnOrderedList = (0, _jsx2.styled)("ul", {
155
147
  base: {
156
148
  listStyle: "revert",
157
- paddingInlineStart: "medium",
149
+ paddingInlineStart: "2.5ch",
158
150
  "& li": {
159
151
  marginBlock: "small",
160
152
  _marker: {
package/lib/Button.d.ts CHANGED
@@ -123,12 +123,24 @@ export declare const buttonRecipe: import("@ndla/styled-system/types").RecipeRun
123
123
  paddingInline: "small";
124
124
  paddingBlock: "xxsmall";
125
125
  minHeight: "24";
126
+ "& svg": {
127
+ marginInline: "0";
128
+ marginBlock: "0";
129
+ width: "medium";
130
+ height: "medium";
131
+ };
126
132
  };
127
133
  small: {
128
134
  textStyle: "label.small";
129
135
  minHeight: "large";
130
136
  paddingInline: "xsmall";
131
137
  paddingBlock: "4xsmall";
138
+ "& svg": {
139
+ marginInline: "0";
140
+ marginBlock: "0";
141
+ width: "small";
142
+ height: "small";
143
+ };
132
144
  };
133
145
  };
134
146
  }>;
package/lib/Button.js CHANGED
@@ -176,13 +176,25 @@ const buttonRecipe = exports.buttonRecipe = (0, _css.cva)({
176
176
  textStyle: "label.medium",
177
177
  paddingInline: "small",
178
178
  paddingBlock: "xxsmall",
179
- minHeight: "24"
179
+ minHeight: "24",
180
+ "& svg": {
181
+ marginInline: "0",
182
+ marginBlock: "0",
183
+ width: "medium",
184
+ height: "medium"
185
+ }
180
186
  },
181
187
  small: {
182
188
  textStyle: "label.small",
183
189
  minHeight: "large",
184
190
  paddingInline: "xsmall",
185
- paddingBlock: "4xsmall"
191
+ paddingBlock: "4xsmall",
192
+ "& svg": {
193
+ marginInline: "0",
194
+ marginBlock: "0",
195
+ width: "small",
196
+ height: "small"
197
+ }
186
198
  }
187
199
  }
188
200
  }
package/lib/Checkbox.d.ts CHANGED
@@ -104,8 +104,8 @@ declare const checkboxRecipe: import("@ndla/styled-system/types").SlotRecipeRunt
104
104
  };
105
105
  _checked: {
106
106
  color: "text.onAction";
107
- background: "surface.actionSubtle.selected";
108
- borderColor: "surface.actionSubtle.selected";
107
+ background: "surface.action.selected";
108
+ borderColor: "surface.action.selected";
109
109
  outlineColor: "icon.onAction";
110
110
  _focus: {
111
111
  outlineOffset: "-4px";
package/lib/Checkbox.js CHANGED
@@ -158,8 +158,8 @@ const checkboxRecipe = (0, _css.sva)({
158
158
  },
159
159
  _checked: {
160
160
  color: "text.onAction",
161
- background: "surface.actionSubtle.selected",
162
- borderColor: "surface.actionSubtle.selected",
161
+ background: "surface.action.selected",
162
+ borderColor: "surface.action.selected",
163
163
  outlineColor: "icon.onAction",
164
164
  _focus: {
165
165
  outlineOffset: "-4px"
package/lib/Tabs.d.ts CHANGED
@@ -38,13 +38,14 @@ declare const tabsRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeF
38
38
  };
39
39
  };
40
40
  indicator: {
41
- background: "transparent";
42
- outline: "3px solid";
43
- outlineColor: "stroke.default";
44
- outlineOffset: "-3px";
41
+ background: "stroke.default";
45
42
  _peerFocusVisible: {
46
43
  height: "var(--height)";
47
44
  width: "var(--width)";
45
+ outline: "3px solid";
46
+ outlineOffset: "-3px";
47
+ outlineColor: "stroke.default";
48
+ background: "transparent";
48
49
  _horizontal: {
49
50
  borderTopRadius: "xsmall";
50
51
  };
@@ -54,11 +55,11 @@ declare const tabsRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeF
54
55
  };
55
56
  _horizontal: {
56
57
  top: "calc(var(--top) + var(--height) - 6px)";
58
+ height: "3";
59
+ width: "var(--width)";
57
60
  _peerFocusVisible: {
58
61
  top: "var(--top)";
59
62
  };
60
- height: "3";
61
- width: "var(--width)";
62
63
  };
63
64
  _vertical: {
64
65
  height: "var(--height)";
package/lib/Tabs.js CHANGED
@@ -117,13 +117,14 @@ const tabsRecipe = (0, _css.sva)({
117
117
  }
118
118
  },
119
119
  indicator: {
120
- background: "transparent",
121
- outline: "3px solid",
122
- outlineColor: "stroke.default",
123
- outlineOffset: "-3px",
120
+ background: "stroke.default",
124
121
  _peerFocusVisible: {
125
122
  height: "var(--height)",
126
123
  width: "var(--width)",
124
+ outline: "3px solid",
125
+ outlineOffset: "-3px",
126
+ outlineColor: "stroke.default",
127
+ background: "transparent",
127
128
  _horizontal: {
128
129
  borderTopRadius: "xsmall"
129
130
  },
@@ -133,11 +134,11 @@ const tabsRecipe = (0, _css.sva)({
133
134
  },
134
135
  _horizontal: {
135
136
  top: "calc(var(--top) + var(--height) - 6px)",
137
+ height: "3",
138
+ width: "var(--width)",
136
139
  _peerFocusVisible: {
137
140
  top: "var(--top)"
138
- },
139
- height: "3",
140
- width: "var(--width)"
141
+ }
141
142
  },
142
143
  _vertical: {
143
144
  height: "var(--height)",
package/lib/TagsInput.js CHANGED
@@ -46,7 +46,7 @@ const tagsInputRecipe = (0, _css.sva)({
46
46
  borderRadius: "large",
47
47
  outline: "1px solid",
48
48
  outlineColor: "transparent",
49
- backgroundColor: "surface.actionSubtle.selected",
49
+ backgroundColor: "surface.action.selected",
50
50
  color: "text.onAction",
51
51
  transitionDuration: "normal",
52
52
  transitionProperty: "background, outline-color, color",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "1.0.32-alpha.0",
3
+ "version": "1.0.34-alpha.0",
4
4
  "description": "Primitive components for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -28,12 +28,12 @@
28
28
  "lib"
29
29
  ],
30
30
  "dependencies": {
31
- "@ark-ui/react": "^3.12.0",
32
- "@ndla/styled-system": "^0.0.22",
31
+ "@ark-ui/react": "^3.12.1",
32
+ "@ndla/styled-system": "^0.0.23",
33
33
  "@ndla/util": "^5.0.0-alpha.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@ndla/preset-panda": "^0.0.33",
36
+ "@ndla/preset-panda": "^0.0.35",
37
37
  "@pandacss/dev": "^0.46.0"
38
38
  },
39
39
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "07ec7465840ff67d4bf2958dab58ead11fac1dee"
46
+ "gitHead": "5bad5d1659659f8f6a1a8cb790d43fdbbfcdedbc"
47
47
  }