@ndla/primitives 0.0.18 → 0.0.20

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.
@@ -49,15 +49,32 @@
49
49
  "borderWidth]___[value:0 1px 1px",
50
50
  "borderStyle]___[value:solid",
51
51
  "borderColor]___[value:stroke.default",
52
- "listStyle]___[value:revert",
53
- "listStylePosition]___[value:inside",
54
- "paddingInlineStart]___[value:small",
55
52
  "marginBlock]___[value:small]___[cond:& li",
56
- "content]___[value:counters(list-item, '.') '. ']___[cond:& > li<___>_marker",
57
- "content]___[value:counter(list-item, numeric) '. ']___[cond:& ol[data-variant='numbers'] > li<___>_marker",
58
- "content]___[value:counter(list-item, upper-alpha) '. ']___[cond:& li<___>_marker",
59
- "content]___[value:counter(list-item, lower-alpha) '. ']___[cond:& li<___>& > ol > li<___>_marker",
60
- "content]___[value:counter(list-item, lower-roman) '. ']___[cond:& li<___>& > ol > li<___>& li<___>_marker",
53
+ "counterReset]___[value:level1",
54
+ "counterReset]___[value:level1 var(--start, 0)]___[cond:&[data-count='true']",
55
+ "marginInline]___[value:small",
56
+ "counterIncrement]___[value:level1]___[cond:& > li",
57
+ "content]___[value:counter(level1, decimal) '. ']___[cond:& > li<___>_marker",
58
+ "marginInlineStart]___[value:xlarge]___[cond:& > li<___>& > ol:not([data-variant='letters'])",
59
+ "counterReset]___[value:level2]___[cond:& > li<___>& > ol:not([data-variant='letters'])",
60
+ "counterReset]___[value:level2 var(--start, 0)]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>&[data-count='true']",
61
+ "counterIncrement]___[value:level2]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
62
+ "content]___[value:counter(level1, decimal) '.' counter(level2, decimal) '. ']___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>_marker",
63
+ "marginInlineStart]___[value:xxlarge]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])",
64
+ "counterReset]___[value:level3]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])",
65
+ "counterReset]___[value:level3 var(--start, 0)]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>&[data-count='true']",
66
+ "counterIncrement]___[value:level3]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > li",
67
+ "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<___>_marker",
68
+ "counterReset]___[value:level4]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > ol:not([data-variant='letters'])",
69
+ "counterReset]___[value:level4 var(--start, 0)]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > ol:not([data-variant='letters'])<___>&[data-count='true']",
70
+ "counterIncrement]___[value:level4]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > ol:not([data-variant='letters'])<___>& > li",
71
+ "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'])<___>& > ol:not([data-variant='letters'])<___>& > li<___>_marker",
72
+ "paddingInlineStart]___[value:small",
73
+ "content]___[value:counter(level1, upper-alpha) '. ']___[cond:& > li<___>_marker",
74
+ "content]___[value:counter(level1, lower-alpha) '. ']___[cond:& > li<___>& > ol[data-variant='letters'] > li<___>_marker",
75
+ "content]___[value:counter(level1, lower-roman) '. ']___[cond:& > li<___>& > ol[data-variant='letters'] > li<___>& > ol[data-variant='letters'] > li<___>_marker",
76
+ "listStyle]___[value:revert",
77
+ "paddingInlineStart]___[value:medium",
61
78
  "color]___[value:icon.strong]___[cond:& li<___>_marker",
62
79
  "fontWeight]___[value:bold]___[cond:& dt",
63
80
  "marginInlineStart]___[value:medium]___[cond:& dd",
@@ -303,12 +320,24 @@
303
320
  "left]___[value:auto",
304
321
  "marginBlock]___[value:xsmall",
305
322
  "paddingInlineEnd]___[value:medium",
306
- "paddingInlineStart]___[value:medium",
307
323
  "paddingInlineStart]___[value:0",
308
324
  "paddingInlineEnd]___[value:0",
309
325
  "borderRadius]___[value:small",
310
326
  "backgroundColor]___[value:surface.default",
311
327
  "backgroundColor]___[value:surface.brand.2.subtle",
328
+ "height]___[value:350px",
329
+ "zIndex]___[value:hide",
330
+ "clipPath]___[value:polygon(0 0, 100% 0, 100% 65%, 0 100%)",
331
+ "position]___[value:absolute",
332
+ "background]___[value:primary",
333
+ "background]___[value:blue.800",
334
+ "background]___[value:surface.brand.2",
335
+ "background]___[value:surface.brand.1",
336
+ "background]___[value:surface.infoSubtle",
337
+ "background]___[value:surface.brand.4",
338
+ "flexWrap]___[value:wrap",
339
+ "alignItems]___[value:flex-end",
340
+ "paddingBlockStart]___[value:xxlarge]___[cond:tablet",
312
341
  "outline]___[value:1px solid",
313
342
  "background]___[value:background.default",
314
343
  "minHeight]___[value:xxlarge",
@@ -357,7 +386,6 @@
357
386
  "boxShadow]___[value:small",
358
387
  "alignItems]___[value:flex-start",
359
388
  "gap]___[value:small",
360
- "background]___[value:surface.infoSubtle",
361
389
  "background]___[value:surface.warningSubtle",
362
390
  "borderColor]___[value:stroke.warning",
363
391
  "background]___[value:surface.successSubtle",
@@ -372,7 +400,6 @@
372
400
  "animation]___[value:fade-shift-out 0.2s ease-out]___[cond:_closed",
373
401
  "--arrow-size]___[value:sizes.xxsmall",
374
402
  "--arrow-background]___[value:colors.surface.default",
375
- "flexWrap]___[value:wrap",
376
403
  "flexDirection]___[value:column]___[cond:_vertical",
377
404
  "flexDirection]___[value:row]___[cond:_horizontal",
378
405
  "borderRadius]___[value:full",
@@ -479,7 +506,6 @@
479
506
  "textAlign]___[value:right]___[cond:& td, & th<___>&[data-align='right']",
480
507
  "flexDirection]___[value:column]___[cond:_horizontal",
481
508
  "flexDirection]___[value:row]___[cond:_vertical",
482
- "overflow]___[value:auto",
483
509
  "marginBlockEnd]___[value:-1px]___[cond:_horizontal",
484
510
  "marginInlineEnd]___[value:-1px]___[cond:_vertical",
485
511
  "transitionProperty]___[value:color, background, border-color",
@@ -507,6 +533,20 @@
507
533
  "paddingBlockStart]___[value:xsmall]___[cond:_horizontal",
508
534
  "paddingInlineStart]___[value:xsmall]___[cond:_vertical",
509
535
  "boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
536
+ "outline]___[value:3px solid",
537
+ "outlineColor]___[value:stroke.default",
538
+ "outlineOffset]___[value:-3px",
539
+ "height]___[value:var(--height)]___[cond:_peerFocusVisible",
540
+ "width]___[value:var(--width)]___[cond:_peerFocusVisible",
541
+ "borderTopRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_horizontal",
542
+ "borderRightRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_vertical",
543
+ "top]___[value:calc(var(--top) + var(--height) - 6px)]___[cond:_horizontal",
544
+ "top]___[value:var(--top)]___[cond:_horizontal<___>_peerFocusVisible",
545
+ "height]___[value:3]___[cond:_horizontal",
546
+ "width]___[value:var(--width)]___[cond:_horizontal",
547
+ "height]___[value:var(--height)]___[cond:_vertical",
548
+ "left]___[value:0]___[cond:_vertical",
549
+ "width]___[value:3]___[cond:_vertical",
510
550
  "width]___[value:full",
511
551
  "gap]___[value:1",
512
552
  "paddingInlineEnd]___[value:3xsmall",
@@ -538,7 +578,6 @@
538
578
  "zIndex]___[value:var(--z-index)",
539
579
  "transitionDuration]___[value:slow",
540
580
  "transitionProperty]___[value:translate, scale, opacity, height",
541
- "position]___[value:absolute",
542
581
  "top]___[value:xxsmall",
543
582
  "right]___[value:xxsmall",
544
583
  "paddingInline]___[value:xxsmall",
package/dist/styles.css CHANGED
@@ -150,14 +150,26 @@
150
150
  border-bottom-right-radius: var(--radii-xsmall);
151
151
  }
152
152
 
153
- .li-s_revert {
154
- list-style: revert;
153
+ .counter-reset_level1 {
154
+ counter-reset: level1;
155
+ }
156
+
157
+ .mx_small {
158
+ margin-inline: var(--spacing-small);
155
159
  }
156
160
 
157
161
  .ps_small {
158
162
  padding-inline-start: var(--spacing-small);
159
163
  }
160
164
 
165
+ .li-s_revert {
166
+ list-style: revert;
167
+ }
168
+
169
+ .ps_medium {
170
+ padding-inline-start: var(--spacing-medium);
171
+ }
172
+
161
173
  .px_xsmall {
162
174
  padding-inline: var(--spacing-xsmall);
163
175
  }
@@ -520,10 +532,6 @@
520
532
  padding-inline-end: var(--spacing-medium);
521
533
  }
522
534
 
523
- .ps_medium {
524
- padding-inline-start: var(--spacing-medium);
525
- }
526
-
527
535
  .ps_0 {
528
536
  padding-inline-start: 0;
529
537
  }
@@ -536,6 +544,47 @@
536
544
  border-radius: var(--radii-small);
537
545
  }
538
546
 
547
+ .h_350px {
548
+ height: 350px;
549
+ }
550
+
551
+ .z_hide {
552
+ z-index: var(--z-index-hide);
553
+ }
554
+
555
+ .cp-path_polygon\(0_0\,_100\%_0\,_100\%_65\%\,_0_100\%\) {
556
+ clip-path: polygon(0 0, 100% 0, 100% 65%, 0 100%);
557
+ -webkit-clip-path: polygon(0 0, 100% 0, 100% 65%, 0 100%);
558
+ }
559
+
560
+ .pos_absolute {
561
+ position: absolute;
562
+ }
563
+
564
+ .bg_primary {
565
+ background: var(--colors-primary);
566
+ }
567
+
568
+ .bg_blue\.800 {
569
+ background: var(--colors-blue-800);
570
+ }
571
+
572
+ .bg_surface\.brand\.2 {
573
+ background: var(--colors-surface-brand-2);
574
+ }
575
+
576
+ .bg_surface\.brand\.1 {
577
+ background: var(--colors-surface-brand-1);
578
+ }
579
+
580
+ .bg_surface\.infoSubtle {
581
+ background: var(--colors-surface-info-subtle);
582
+ }
583
+
584
+ .bg_surface\.brand\.4 {
585
+ background: var(--colors-surface-brand-4);
586
+ }
587
+
539
588
  .ring_1px_solid {
540
589
  outline: 1px solid;
541
590
  }
@@ -608,10 +657,6 @@
608
657
  gap: var(--spacing-small);
609
658
  }
610
659
 
611
- .bg_surface\.infoSubtle {
612
- background: var(--colors-surface-info-subtle);
613
- }
614
-
615
660
  .bg_surface\.warningSubtle {
616
661
  background: var(--colors-surface-warning-subtle);
617
662
  }
@@ -748,14 +793,18 @@
748
793
  table-layout: fixed;
749
794
  }
750
795
 
751
- .ov_auto {
752
- overflow: auto;
753
- }
754
-
755
796
  .white-space_nowrap {
756
797
  white-space: nowrap;
757
798
  }
758
799
 
800
+ .ring_3px_solid {
801
+ outline: 3px solid;
802
+ }
803
+
804
+ .ring-o_-3px {
805
+ outline-offset: -3px;
806
+ }
807
+
759
808
  .w_full {
760
809
  width: full;
761
810
  }
@@ -816,10 +865,6 @@
816
865
  z-index: var(--z-index);
817
866
  }
818
867
 
819
- .pos_absolute {
820
- position: absolute;
821
- }
822
-
823
868
  .px_xxsmall {
824
869
  padding-inline: var(--spacing-xxsmall);
825
870
  }
@@ -894,10 +939,6 @@
894
939
  border-color: var(--colors-stroke-default);
895
940
  }
896
941
 
897
- .li-pos_inside {
898
- list-style-position: inside;
899
- }
900
-
901
942
  .bg-c_surface\.brand\.1\.subtle {
902
943
  background-color: var(--colors-surface-brand-1-subtle);
903
944
  }
@@ -990,6 +1031,14 @@
990
1031
  background-color: var(--colors-surface-brand-2-subtle);
991
1032
  }
992
1033
 
1034
+ .flex-wrap_wrap {
1035
+ flex-wrap: wrap;
1036
+ }
1037
+
1038
+ .ai_flex-end {
1039
+ align-items: flex-end;
1040
+ }
1041
+
993
1042
  .ov-y_hidden {
994
1043
  overflow-y: hidden;
995
1044
  }
@@ -1019,10 +1068,6 @@
1019
1068
  font-variant-numeric: tabular-nums;
1020
1069
  }
1021
1070
 
1022
- .flex-wrap_wrap {
1023
- flex-wrap: wrap;
1024
- }
1025
-
1026
1071
  .bd-w_2px {
1027
1072
  border-width: 2px;
1028
1073
  }
@@ -1100,6 +1145,10 @@
1100
1145
  border-width: 1px;
1101
1146
  }
1102
1147
 
1148
+ .ring-c_stroke\.default {
1149
+ outline-color: var(--colors-stroke-default);
1150
+ }
1151
+
1103
1152
  .ring-c_transparent {
1104
1153
  outline-color: transparent;
1105
1154
  }
@@ -1176,6 +1225,14 @@
1176
1225
  margin-block: var(--spacing-small);
1177
1226
  }
1178
1227
 
1228
+ .\[\&\[data-count\=\'true\'\]\]\:counter-reset_level1_var\(--start\,_0\)[data-count='true'] {
1229
+ counter-reset: level1 var(--start, 0);
1230
+ }
1231
+
1232
+ .\[\&_\>_li\]\:counter-increment_level1 > li {
1233
+ counter-increment: level1;
1234
+ }
1235
+
1179
1236
  .\[\&_dd\]\:ms_medium dd {
1180
1237
  margin-inline-start: var(--spacing-medium);
1181
1238
  }
@@ -1497,6 +1554,22 @@
1497
1554
  padding-inline-start: var(--spacing-xsmall);
1498
1555
  }
1499
1556
 
1557
+ .horizontal\:h_3[data-orientation=horizontal] {
1558
+ height: var(--sizes-3);
1559
+ }
1560
+
1561
+ .horizontal\:w_var\(--width\)[data-orientation=horizontal] {
1562
+ width: var(--width);
1563
+ }
1564
+
1565
+ .vertical\:h_var\(--height\)[data-orientation=vertical] {
1566
+ height: var(--height);
1567
+ }
1568
+
1569
+ .vertical\:w_3[data-orientation=vertical] {
1570
+ width: var(--sizes-3);
1571
+ }
1572
+
1500
1573
  .highlighted\:ring-o_-1px[data-highlighted] {
1501
1574
  outline-offset: -1px;
1502
1575
  }
@@ -1637,6 +1710,14 @@
1637
1710
  border-color: var(--colors-stroke-subtle);
1638
1711
  }
1639
1712
 
1713
+ .horizontal\:top_calc\(var\(--top\)_\+_var\(--height\)_-_6px\)[data-orientation=horizontal] {
1714
+ top: calc(var(--top) + var(--height) - 6px);
1715
+ }
1716
+
1717
+ .vertical\:left_0[data-orientation=vertical] {
1718
+ left: 0;
1719
+ }
1720
+
1640
1721
  .highlighted\:bg-c_surface\.actionSubtle\.hover[data-highlighted] {
1641
1722
  background-color: var(--colors-surface-action-subtle-hover);
1642
1723
  }
@@ -1751,6 +1832,14 @@
1751
1832
  box-shadow: 0 0 0 3px var(--shadow-color);
1752
1833
  }
1753
1834
 
1835
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:h_var\(--height\) {
1836
+ height: var(--height);
1837
+ }
1838
+
1839
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:w_var\(--width\) {
1840
+ width: var(--width);
1841
+ }
1842
+
1754
1843
  .focus\:ring-c_stroke\.default:is(:focus, [data-focus]) {
1755
1844
  outline-color: var(--colors-stroke-default);
1756
1845
  }
@@ -1911,6 +2000,14 @@
1911
2000
  color: var(--colors-text-disabled);
1912
2001
  }
1913
2002
 
2003
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:ms_xlarge > li > ol:not([data-variant='letters']) {
2004
+ margin-inline-start: var(--spacing-xlarge);
2005
+ }
2006
+
2007
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:counter-reset_level2 > li > ol:not([data-variant='letters']) {
2008
+ counter-reset: level2;
2009
+ }
2010
+
1914
2011
  .\[\&_li\]\:marker\:c_icon\.strong li::marker {
1915
2012
  color: var(--colors-icon-strong);
1916
2013
  }
@@ -2055,20 +2152,26 @@
2055
2152
  color: var(--colors-text-subtle);
2056
2153
  }
2057
2154
 
2058
- .highlighted\:\[\&_svg\]\:c_stroke\.hover[data-highlighted] svg {
2059
- color: var(--colors-stroke-hover);
2155
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:horizontal\:bdr-t_xsmall[data-orientation=horizontal] {
2156
+ border-top-left-radius: var(--radii-xsmall);
2157
+ border-top-right-radius: var(--radii-xsmall);
2060
2158
  }
2061
2159
 
2062
- .\[\&_\>_li\]\:marker\:content_counters\(list-item\,_\'\.\'\)_\'\._\' > li::marker {
2063
- content: counters(list-item, '.') '. ';
2160
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:vertical\:bdr-r_xsmall[data-orientation=vertical] {
2161
+ border-top-right-radius: var(--radii-xsmall);
2162
+ border-bottom-right-radius: var(--radii-xsmall);
2064
2163
  }
2065
2164
 
2066
- .\[\&_ol\[data-variant\=\'numbers\'\]_\>_li\]\:marker\:content_counter\(list-item\,_numeric\)_\'\._\' ol[data-variant='numbers'] > li::marker {
2067
- content: counter(list-item, numeric) '. ';
2165
+ .highlighted\:\[\&_svg\]\:c_stroke\.hover[data-highlighted] svg {
2166
+ color: var(--colors-stroke-hover);
2068
2167
  }
2069
2168
 
2070
- .\[\&_li\]\:marker\:content_counter\(list-item\,_upper-alpha\)_\'\._\' li::marker {
2071
- content: counter(list-item, upper-alpha) '. ';
2169
+ .\[\&_\>_li\]\:marker\:content_counter\(level1\,_decimal\)_\'\._\' > li::marker {
2170
+ content: counter(level1, decimal) '. ';
2171
+ }
2172
+
2173
+ .\[\&_\>_li\]\:marker\:content_counter\(level1\,_upper-alpha\)_\'\._\' > li::marker {
2174
+ content: counter(level1, upper-alpha) '. ';
2072
2175
  }
2073
2176
 
2074
2177
  .disabled\:hover\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled]):is(:hover, [data-hover]) {
@@ -2127,6 +2230,10 @@
2127
2230
  border-right-color: transparent;
2128
2231
  }
2129
2232
 
2233
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .horizontal\:peerFocusVisible\:top_var\(--top\)[data-orientation=horizontal] {
2234
+ top: var(--top);
2235
+ }
2236
+
2130
2237
  .focusWithin\:hover\:ring-c_stroke\.default:focus-within:is(:hover, [data-hover]) {
2131
2238
  outline-color: var(--colors-stroke-default);
2132
2239
  }
@@ -2155,6 +2262,14 @@
2155
2262
  border-color: var(--colors-stroke-default);
2156
2263
  }
2157
2264
 
2265
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&\[data-count\=\'true\'\]\]\:counter-reset_level2_var\(--start\,_0\) > li > ol:not([data-variant='letters'])[data-count='true'] {
2266
+ counter-reset: level2 var(--start, 0);
2267
+ }
2268
+
2269
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:counter-increment_level2 > li > ol:not([data-variant='letters']) > li {
2270
+ counter-increment: level2;
2271
+ }
2272
+
2158
2273
  .disabled\:checked\:hover\:c_text\.disabled:is(:disabled, [disabled], [data-disabled]):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):is(:hover, [data-hover]) {
2159
2274
  color: var(--colors-text-disabled);
2160
2275
  }
@@ -2171,8 +2286,8 @@
2171
2286
  transform: translateX(120%);
2172
2287
  }
2173
2288
 
2174
- .\[\&_li\]\:\[\&_\>_ol_\>_li\]\:marker\:content_counter\(list-item\,_lower-alpha\)_\'\._\' li > ol > li::marker {
2175
- content: counter(list-item, lower-alpha) '. ';
2289
+ .\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:marker\:content_counter\(level1\,_lower-alpha\)_\'\._\' > li > ol[data-variant='letters'] > li::marker {
2290
+ content: counter(level1, lower-alpha) '. ';
2176
2291
  }
2177
2292
 
2178
2293
  .disabled\:checked\:hover\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled]):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):is(:hover, [data-hover]) {
@@ -2191,8 +2306,48 @@
2191
2306
  outline-color: var(--colors-stroke-error);
2192
2307
  }
2193
2308
 
2194
- .\[\&_li\]\:\[\&_\>_ol_\>_li\]\:\[\&_li\]\:marker\:content_counter\(list-item\,_lower-roman\)_\'\._\' li > ol > li li::marker {
2195
- content: counter(list-item, lower-roman) '. ';
2309
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:ms_xxlarge > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) {
2310
+ margin-inline-start: var(--spacing-xxlarge);
2311
+ }
2312
+
2313
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:counter-reset_level3 > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) {
2314
+ counter-reset: level3;
2315
+ }
2316
+
2317
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:marker\:content_counter\(level1\,_decimal\)_\'\.\'_counter\(level2\,_decimal\)_\'\._\' > li > ol:not([data-variant='letters']) > li::marker {
2318
+ content: counter(level1, decimal) '.' counter(level2, decimal) '. ';
2319
+ }
2320
+
2321
+ .\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:marker\:content_counter\(level1\,_lower-roman\)_\'\._\' > li > ol[data-variant='letters'] > li > ol[data-variant='letters'] > li::marker {
2322
+ content: counter(level1, lower-roman) '. ';
2323
+ }
2324
+
2325
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&\[data-count\=\'true\'\]\]\:counter-reset_level3_var\(--start\,_0\) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters'])[data-count='true'] {
2326
+ counter-reset: level3 var(--start, 0);
2327
+ }
2328
+
2329
+ .\[\&_\>_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 {
2330
+ counter-increment: level3;
2331
+ }
2332
+
2333
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:counter-reset_level4 > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > ol:not([data-variant='letters']) {
2334
+ counter-reset: level4;
2335
+ }
2336
+
2337
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&\[data-count\=\'true\'\]\]\:counter-reset_level4_var\(--start\,_0\) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > ol:not([data-variant='letters'])[data-count='true'] {
2338
+ counter-reset: level4 var(--start, 0);
2339
+ }
2340
+
2341
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:counter-increment_level4 > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > ol:not([data-variant='letters']) > li {
2342
+ counter-increment: level4;
2343
+ }
2344
+
2345
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:marker\:content_counter\(level1\,_decimal\)_\'\.\'_counter\(level2\,_decimal\)_\'\.\'_counter\(level3\,_decimal\)_\'\._\' > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > li::marker {
2346
+ content: counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. ';
2347
+ }
2348
+
2349
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:marker\: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']) > ol:not([data-variant='letters']) > li::marker {
2350
+ content: counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. ';
2196
2351
  }
2197
2352
 
2198
2353
  @media screen and (min-width: 37.5625rem) {
@@ -2222,6 +2377,9 @@
2222
2377
  }
2223
2378
  .tablet\:clear_right {
2224
2379
  clear: right;
2380
+ }
2381
+ .tablet\:pbs_xxlarge {
2382
+ padding-block-start: var(--spacing-xxlarge);
2225
2383
  }
2226
2384
  }
2227
2385
 
@@ -6,16 +6,13 @@
6
6
  *
7
7
  */
8
8
 
9
- import { forwardRef } from "react";
9
+ import { forwardRef, useMemo } from "react";
10
10
  import { ark } from "@ark-ui/react";
11
11
  import { css, cva } from "@ndla/styled-system/css";
12
12
  import { styled } from "@ndla/styled-system/jsx";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  const orderedListRecipe = cva({
15
15
  base: {
16
- listStyle: "revert",
17
- listStylePosition: "inside",
18
- paddingInlineStart: "small",
19
16
  "& li": {
20
17
  marginBlock: "small"
21
18
  }
@@ -26,29 +23,74 @@ const orderedListRecipe = cva({
26
23
  variants: {
27
24
  variant: {
28
25
  numbers: {
26
+ counterReset: "level1",
27
+ "&[data-count='true']": {
28
+ counterReset: "level1 var(--start, 0)"
29
+ },
30
+ marginInline: "small",
29
31
  "& > li": {
32
+ counterIncrement: "level1",
30
33
  _marker: {
31
- content: "counters(list-item, '.') '. '"
34
+ content: "counter(level1, decimal) '. '"
35
+ },
36
+ "& > ol:not([data-variant='letters'])": {
37
+ marginInlineStart: "xlarge",
38
+ counterReset: "level2",
39
+ "&[data-count='true']": {
40
+ counterReset: "level2 var(--start, 0)"
41
+ },
42
+ "& > li": {
43
+ counterIncrement: "level2",
44
+ _marker: {
45
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '. '"
46
+ },
47
+ "& > ol:not([data-variant='letters'])": {
48
+ marginInlineStart: "xxlarge",
49
+ counterReset: "level3",
50
+ "&[data-count='true']": {
51
+ counterReset: "level3 var(--start, 0)"
52
+ },
53
+ "& > li": {
54
+ counterIncrement: "level3",
55
+ _marker: {
56
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. '"
57
+ }
58
+ },
59
+ "& > ol:not([data-variant='letters'])": {
60
+ counterReset: "level4",
61
+ "&[data-count='true']": {
62
+ counterReset: "level4 var(--start, 0)"
63
+ },
64
+ "& > li": {
65
+ counterIncrement: "level4",
66
+ _marker: {
67
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. '"
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
32
73
  }
33
74
  }
34
75
  },
35
76
  letters: {
36
- "& ol[data-variant='numbers'] > li": {
37
- _marker: {
38
- content: "counter(list-item, numeric) '. '"
39
- }
77
+ counterReset: "level1",
78
+ "&[data-count='true']": {
79
+ counterReset: "level1 var(--start, 0)"
40
80
  },
41
- "& li": {
81
+ paddingInlineStart: "small",
82
+ "& > li": {
83
+ counterIncrement: "level1",
42
84
  _marker: {
43
- content: "counter(list-item, upper-alpha) '. '"
85
+ content: "counter(level1, upper-alpha) '. '"
44
86
  },
45
- "& > ol > li": {
87
+ "& > ol[data-variant='letters'] > li": {
46
88
  _marker: {
47
- content: "counter(list-item, lower-alpha) '. '"
89
+ content: "counter(level1, lower-alpha) '. '"
48
90
  },
49
- "& li": {
91
+ "& > ol[data-variant='letters'] > li": {
50
92
  _marker: {
51
- content: "counter(list-item, lower-roman) '. '"
93
+ content: "counter(level1, lower-roman) '. '"
52
94
  }
53
95
  }
54
96
  }
@@ -64,21 +106,27 @@ export const OrderedList = /*#__PURE__*/forwardRef((_ref, ref) => {
64
106
  let {
65
107
  variant,
66
108
  css: cssProp,
109
+ start,
67
110
  ...props
68
111
  } = _ref;
112
+ const style = useMemo(() => ({
113
+ "--start": start ? start - 1 : undefined
114
+ }), [start]);
69
115
  return /*#__PURE__*/_jsx(StyledOrderedList, {
116
+ "data-variant": variant,
117
+ "data-count": start !== undefined,
70
118
  css: css.raw(orderedListRecipe.raw({
71
119
  variant
72
120
  }), cssProp),
73
- ...props,
74
- ref: ref
121
+ style: style,
122
+ ref: ref,
123
+ ...props
75
124
  });
76
125
  });
77
126
  export const UnOrderedList = styled("ul", {
78
127
  base: {
79
128
  listStyle: "revert",
80
- listStylePosition: "inside",
81
- paddingInlineStart: "small",
129
+ paddingInlineStart: "medium",
82
130
  "& li": {
83
131
  marginBlock: "small",
84
132
  _marker: {
package/es/Combobox.js CHANGED
@@ -246,4 +246,7 @@ export const ComboboxPositioner = withContext(Combobox.Positioner, "positioner",
246
246
  });
247
247
  export const ComboboxTrigger = withContext(Combobox.Trigger, "trigger", {
248
248
  baseComponent: true
249
+ });
250
+ export const ComboboxList = withContext(Combobox.List, "list", {
251
+ baseComponent: true
249
252
  });