@ndla/primitives 0.0.18 → 0.0.19

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,16 +49,35 @@
49
49
  "borderWidth]___[value:0 1px 1px",
50
50
  "borderStyle]___[value:solid",
51
51
  "borderColor]___[value:stroke.default",
52
+ "marginBlock]___[value:small]___[cond:& li",
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",
52
76
  "listStyle]___[value:revert",
53
77
  "listStylePosition]___[value:inside",
54
- "paddingInlineStart]___[value:small",
55
- "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",
78
+ "paddingInlineStart]___[value:medium",
61
79
  "color]___[value:icon.strong]___[cond:& li<___>_marker",
80
+ "display]___[value:inline]___[cond:& li > *:not(ol, ul, li)",
62
81
  "fontWeight]___[value:bold]___[cond:& dt",
63
82
  "marginInlineStart]___[value:medium]___[cond:& dd",
64
83
  "paddingInline]___[value:xsmall",
@@ -303,7 +322,6 @@
303
322
  "left]___[value:auto",
304
323
  "marginBlock]___[value:xsmall",
305
324
  "paddingInlineEnd]___[value:medium",
306
- "paddingInlineStart]___[value:medium",
307
325
  "paddingInlineStart]___[value:0",
308
326
  "paddingInlineEnd]___[value:0",
309
327
  "borderRadius]___[value:small",
@@ -479,7 +497,6 @@
479
497
  "textAlign]___[value:right]___[cond:& td, & th<___>&[data-align='right']",
480
498
  "flexDirection]___[value:column]___[cond:_horizontal",
481
499
  "flexDirection]___[value:row]___[cond:_vertical",
482
- "overflow]___[value:auto",
483
500
  "marginBlockEnd]___[value:-1px]___[cond:_horizontal",
484
501
  "marginInlineEnd]___[value:-1px]___[cond:_vertical",
485
502
  "transitionProperty]___[value:color, background, border-color",
@@ -507,6 +524,20 @@
507
524
  "paddingBlockStart]___[value:xsmall]___[cond:_horizontal",
508
525
  "paddingInlineStart]___[value:xsmall]___[cond:_vertical",
509
526
  "boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
527
+ "outline]___[value:3px solid",
528
+ "outlineColor]___[value:stroke.default",
529
+ "outlineOffset]___[value:-3px",
530
+ "height]___[value:var(--height)]___[cond:_peerFocusVisible",
531
+ "width]___[value:var(--width)]___[cond:_peerFocusVisible",
532
+ "borderTopRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_horizontal",
533
+ "borderRightRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_vertical",
534
+ "top]___[value:calc(var(--top) + var(--height) - 6px)]___[cond:_horizontal",
535
+ "top]___[value:var(--top)]___[cond:_horizontal<___>_peerFocusVisible",
536
+ "height]___[value:3]___[cond:_horizontal",
537
+ "width]___[value:var(--width)]___[cond:_horizontal",
538
+ "height]___[value:var(--height)]___[cond:_vertical",
539
+ "left]___[value:0]___[cond:_vertical",
540
+ "width]___[value:3]___[cond:_vertical",
510
541
  "width]___[value:full",
511
542
  "gap]___[value:1",
512
543
  "paddingInlineEnd]___[value:3xsmall",
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
  }
@@ -748,14 +756,18 @@
748
756
  table-layout: fixed;
749
757
  }
750
758
 
751
- .ov_auto {
752
- overflow: auto;
753
- }
754
-
755
759
  .white-space_nowrap {
756
760
  white-space: nowrap;
757
761
  }
758
762
 
763
+ .ring_3px_solid {
764
+ outline: 3px solid;
765
+ }
766
+
767
+ .ring-o_-3px {
768
+ outline-offset: -3px;
769
+ }
770
+
759
771
  .w_full {
760
772
  width: full;
761
773
  }
@@ -1100,6 +1112,10 @@
1100
1112
  border-width: 1px;
1101
1113
  }
1102
1114
 
1115
+ .ring-c_stroke\.default {
1116
+ outline-color: var(--colors-stroke-default);
1117
+ }
1118
+
1103
1119
  .ring-c_transparent {
1104
1120
  outline-color: transparent;
1105
1121
  }
@@ -1176,6 +1192,18 @@
1176
1192
  margin-block: var(--spacing-small);
1177
1193
  }
1178
1194
 
1195
+ .\[\&\[data-count\=\'true\'\]\]\:counter-reset_level1_var\(--start\,_0\)[data-count='true'] {
1196
+ counter-reset: level1 var(--start, 0);
1197
+ }
1198
+
1199
+ .\[\&_\>_li\]\:counter-increment_level1 > li {
1200
+ counter-increment: level1;
1201
+ }
1202
+
1203
+ .\[\&_li_\>_\*\:not\(ol\,_ul\,_li\)\]\:d_inline li > *:not(ol, ul, li) {
1204
+ display: inline;
1205
+ }
1206
+
1179
1207
  .\[\&_dd\]\:ms_medium dd {
1180
1208
  margin-inline-start: var(--spacing-medium);
1181
1209
  }
@@ -1497,6 +1525,22 @@
1497
1525
  padding-inline-start: var(--spacing-xsmall);
1498
1526
  }
1499
1527
 
1528
+ .horizontal\:h_3[data-orientation=horizontal] {
1529
+ height: var(--sizes-3);
1530
+ }
1531
+
1532
+ .horizontal\:w_var\(--width\)[data-orientation=horizontal] {
1533
+ width: var(--width);
1534
+ }
1535
+
1536
+ .vertical\:h_var\(--height\)[data-orientation=vertical] {
1537
+ height: var(--height);
1538
+ }
1539
+
1540
+ .vertical\:w_3[data-orientation=vertical] {
1541
+ width: var(--sizes-3);
1542
+ }
1543
+
1500
1544
  .highlighted\:ring-o_-1px[data-highlighted] {
1501
1545
  outline-offset: -1px;
1502
1546
  }
@@ -1637,6 +1681,14 @@
1637
1681
  border-color: var(--colors-stroke-subtle);
1638
1682
  }
1639
1683
 
1684
+ .horizontal\:top_calc\(var\(--top\)_\+_var\(--height\)_-_6px\)[data-orientation=horizontal] {
1685
+ top: calc(var(--top) + var(--height) - 6px);
1686
+ }
1687
+
1688
+ .vertical\:left_0[data-orientation=vertical] {
1689
+ left: 0;
1690
+ }
1691
+
1640
1692
  .highlighted\:bg-c_surface\.actionSubtle\.hover[data-highlighted] {
1641
1693
  background-color: var(--colors-surface-action-subtle-hover);
1642
1694
  }
@@ -1751,6 +1803,14 @@
1751
1803
  box-shadow: 0 0 0 3px var(--shadow-color);
1752
1804
  }
1753
1805
 
1806
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:h_var\(--height\) {
1807
+ height: var(--height);
1808
+ }
1809
+
1810
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:w_var\(--width\) {
1811
+ width: var(--width);
1812
+ }
1813
+
1754
1814
  .focus\:ring-c_stroke\.default:is(:focus, [data-focus]) {
1755
1815
  outline-color: var(--colors-stroke-default);
1756
1816
  }
@@ -1911,6 +1971,14 @@
1911
1971
  color: var(--colors-text-disabled);
1912
1972
  }
1913
1973
 
1974
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:ms_xlarge > li > ol:not([data-variant='letters']) {
1975
+ margin-inline-start: var(--spacing-xlarge);
1976
+ }
1977
+
1978
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:counter-reset_level2 > li > ol:not([data-variant='letters']) {
1979
+ counter-reset: level2;
1980
+ }
1981
+
1914
1982
  .\[\&_li\]\:marker\:c_icon\.strong li::marker {
1915
1983
  color: var(--colors-icon-strong);
1916
1984
  }
@@ -2055,20 +2123,26 @@
2055
2123
  color: var(--colors-text-subtle);
2056
2124
  }
2057
2125
 
2058
- .highlighted\:\[\&_svg\]\:c_stroke\.hover[data-highlighted] svg {
2059
- color: var(--colors-stroke-hover);
2126
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:horizontal\:bdr-t_xsmall[data-orientation=horizontal] {
2127
+ border-top-left-radius: var(--radii-xsmall);
2128
+ border-top-right-radius: var(--radii-xsmall);
2060
2129
  }
2061
2130
 
2062
- .\[\&_\>_li\]\:marker\:content_counters\(list-item\,_\'\.\'\)_\'\._\' > li::marker {
2063
- content: counters(list-item, '.') '. ';
2131
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:vertical\:bdr-r_xsmall[data-orientation=vertical] {
2132
+ border-top-right-radius: var(--radii-xsmall);
2133
+ border-bottom-right-radius: var(--radii-xsmall);
2064
2134
  }
2065
2135
 
2066
- .\[\&_ol\[data-variant\=\'numbers\'\]_\>_li\]\:marker\:content_counter\(list-item\,_numeric\)_\'\._\' ol[data-variant='numbers'] > li::marker {
2067
- content: counter(list-item, numeric) '. ';
2136
+ .highlighted\:\[\&_svg\]\:c_stroke\.hover[data-highlighted] svg {
2137
+ color: var(--colors-stroke-hover);
2068
2138
  }
2069
2139
 
2070
- .\[\&_li\]\:marker\:content_counter\(list-item\,_upper-alpha\)_\'\._\' li::marker {
2071
- content: counter(list-item, upper-alpha) '. ';
2140
+ .\[\&_\>_li\]\:marker\:content_counter\(level1\,_decimal\)_\'\._\' > li::marker {
2141
+ content: counter(level1, decimal) '. ';
2142
+ }
2143
+
2144
+ .\[\&_\>_li\]\:marker\:content_counter\(level1\,_upper-alpha\)_\'\._\' > li::marker {
2145
+ content: counter(level1, upper-alpha) '. ';
2072
2146
  }
2073
2147
 
2074
2148
  .disabled\:hover\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled]):is(:hover, [data-hover]) {
@@ -2127,6 +2201,10 @@
2127
2201
  border-right-color: transparent;
2128
2202
  }
2129
2203
 
2204
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .horizontal\:peerFocusVisible\:top_var\(--top\)[data-orientation=horizontal] {
2205
+ top: var(--top);
2206
+ }
2207
+
2130
2208
  .focusWithin\:hover\:ring-c_stroke\.default:focus-within:is(:hover, [data-hover]) {
2131
2209
  outline-color: var(--colors-stroke-default);
2132
2210
  }
@@ -2155,6 +2233,14 @@
2155
2233
  border-color: var(--colors-stroke-default);
2156
2234
  }
2157
2235
 
2236
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&\[data-count\=\'true\'\]\]\:counter-reset_level2_var\(--start\,_0\) > li > ol:not([data-variant='letters'])[data-count='true'] {
2237
+ counter-reset: level2 var(--start, 0);
2238
+ }
2239
+
2240
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:counter-increment_level2 > li > ol:not([data-variant='letters']) > li {
2241
+ counter-increment: level2;
2242
+ }
2243
+
2158
2244
  .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
2245
  color: var(--colors-text-disabled);
2160
2246
  }
@@ -2171,8 +2257,8 @@
2171
2257
  transform: translateX(120%);
2172
2258
  }
2173
2259
 
2174
- .\[\&_li\]\:\[\&_\>_ol_\>_li\]\:marker\:content_counter\(list-item\,_lower-alpha\)_\'\._\' li > ol > li::marker {
2175
- content: counter(list-item, lower-alpha) '. ';
2260
+ .\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:marker\:content_counter\(level1\,_lower-alpha\)_\'\._\' > li > ol[data-variant='letters'] > li::marker {
2261
+ content: counter(level1, lower-alpha) '. ';
2176
2262
  }
2177
2263
 
2178
2264
  .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 +2277,48 @@
2191
2277
  outline-color: var(--colors-stroke-error);
2192
2278
  }
2193
2279
 
2194
- .\[\&_li\]\:\[\&_\>_ol_\>_li\]\:\[\&_li\]\:marker\:content_counter\(list-item\,_lower-roman\)_\'\._\' li > ol > li li::marker {
2195
- content: counter(list-item, lower-roman) '. ';
2280
+ .\[\&_\>_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']) {
2281
+ margin-inline-start: var(--spacing-xxlarge);
2282
+ }
2283
+
2284
+ .\[\&_\>_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']) {
2285
+ counter-reset: level3;
2286
+ }
2287
+
2288
+ .\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:marker\:content_counter\(level1\,_decimal\)_\'\.\'_counter\(level2\,_decimal\)_\'\._\' > li > ol:not([data-variant='letters']) > li::marker {
2289
+ content: counter(level1, decimal) '.' counter(level2, decimal) '. ';
2290
+ }
2291
+
2292
+ .\[\&_\>_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 {
2293
+ content: counter(level1, lower-roman) '. ';
2294
+ }
2295
+
2296
+ .\[\&_\>_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'] {
2297
+ counter-reset: level3 var(--start, 0);
2298
+ }
2299
+
2300
+ .\[\&_\>_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 {
2301
+ counter-increment: level3;
2302
+ }
2303
+
2304
+ .\[\&_\>_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']) {
2305
+ counter-reset: level4;
2306
+ }
2307
+
2308
+ .\[\&_\>_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'] {
2309
+ counter-reset: level4 var(--start, 0);
2310
+ }
2311
+
2312
+ .\[\&_\>_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 {
2313
+ counter-increment: level4;
2314
+ }
2315
+
2316
+ .\[\&_\>_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 {
2317
+ content: counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. ';
2318
+ }
2319
+
2320
+ .\[\&_\>_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 {
2321
+ content: counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. ';
2196
2322
  }
2197
2323
 
2198
2324
  @media screen and (min-width: 37.5625rem) {
@@ -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,26 +106,36 @@ 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
129
  listStylePosition: "inside",
81
- paddingInlineStart: "small",
130
+ paddingInlineStart: "medium",
82
131
  "& li": {
83
132
  marginBlock: "small",
84
133
  _marker: {
85
134
  color: "icon.strong"
86
135
  }
136
+ },
137
+ "& li > *:not(ol, ul, li)": {
138
+ display: "inline"
87
139
  }
88
140
  }
89
141
  });
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
  });
package/es/Select.js CHANGED
@@ -217,4 +217,7 @@ export const SelectTrigger = withContext(Select.Trigger, "trigger", {
217
217
  });
218
218
  export const SelectValueText = withContext(Select.ValueText, "valueText", {
219
219
  baseComponent: true
220
+ });
221
+ export const SelectList = withContext(Select.List, "list", {
222
+ baseComponent: true
220
223
  });
package/es/Tabs.js CHANGED
@@ -6,12 +6,14 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Tabs, tabsAnatomy } from "@ark-ui/react";
9
+ import { Tabs } from "@ark-ui/react";
10
10
  import { cx, sva } from "@ndla/styled-system/css";
11
11
  import { createStyleContext } from "./createStyleContext";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  const tabsRecipe = sva({
14
- slots: tabsAnatomy.keys(),
14
+ // TODO: This still doesn't work. Need to figure out why we need to pass keys manually.
15
+ // slots: tabsAnatomy.keys(),
16
+ slots: ["root", "list", "trigger", "content", "indicator"],
15
17
  base: {
16
18
  root: {
17
19
  position: "relative",
@@ -28,7 +30,7 @@ const tabsRecipe = sva({
28
30
  position: "relative",
29
31
  display: "flex",
30
32
  flexShrink: "0",
31
- overflow: "auto",
33
+ flexWrap: "wrap",
32
34
  _horizontal: {
33
35
  flexDirection: "row"
34
36
  },
@@ -106,10 +108,9 @@ const tabsRecipe = sva({
106
108
  },
107
109
  indicator: {
108
110
  background: "transparent",
109
- outline: "4px solid",
111
+ outline: "3px solid",
110
112
  outlineColor: "stroke.default",
111
- pointerEvents: "none",
112
- outlineOffset: "-4px",
113
+ outlineOffset: "-3px",
113
114
  _peerFocusVisible: {
114
115
  height: "var(--height)",
115
116
  width: "var(--width)",
@@ -121,14 +122,17 @@ const tabsRecipe = sva({
121
122
  }
122
123
  },
123
124
  _horizontal: {
124
- bottom: "0",
125
- height: "2",
125
+ top: "calc(var(--top) + var(--height) - 6px)",
126
+ _peerFocusVisible: {
127
+ top: "var(--top)"
128
+ },
129
+ height: "3",
126
130
  width: "var(--width)"
127
131
  },
128
132
  _vertical: {
129
133
  height: "var(--height)",
130
134
  left: "0",
131
- width: "2"
135
+ width: "3"
132
136
  }
133
137
  },
134
138
  content: {
package/es/index.js CHANGED
@@ -13,7 +13,7 @@ export { BlockQuote } from "./BlockQuote";
13
13
  export { Button, IconButton, buttonBaseRecipe, buttonRecipe, iconButtonRecipe } from "./Button";
14
14
  export { CardRoot, CardHeading, CardContent, CardImage } from "./Card/Card";
15
15
  export { CheckboxRoot, CheckboxIndicator, CheckboxLabel, CheckboxControl, CheckboxGroup, CheckboxHiddenInput } from "./Checkbox";
16
- export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger } from "./Combobox";
16
+ export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, ComboboxList } from "./Combobox";
17
17
  export { DialogRoot, DialogBackdrop, DialogStandaloneContent, DialogPositioner, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DialogCloseTrigger, DialogHeader, DialogBody } from "./Dialog";
18
18
  export { ExpandableBox, ExpandableBoxSummary } from "./ExpandableBox";
19
19
  export { FieldRoot } from "./Field";
@@ -30,7 +30,7 @@ export { NdlaLogoEn, NdlaLogoNb, NdlaLogoText } from "./NdlaLogo";
30
30
  export { PaginationRoot, PaginationItem, PaginationEllipsis, PaginationPrevTrigger, PaginationNextTrigger } from "./Pagination";
31
31
  export { PopoverRoot, PopoverAnchor, PopoverArrowStandalone, PopoverArrow, PopoverArrowTip, PopoverCloseTrigger, PopoverContentStandalone, PopoverContent, PopoverDescription, PopoverIndicator, PopoverPositioner, PopoverTitle, PopoverTrigger } from "./Popover";
32
32
  export { RadioGroupRoot, RadioGroupIndicator, RadioGroupItemControl, RadioGroupItem, RadioGroupItemText, RadioGroupLabel, RadioGroupItemHiddenInput } from "./RadioGroup";
33
- export { SelectRoot, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItemGroupLabel, SelectItemGroup, SelectItemIndicator, SelectItem, SelectItemText, SelectLabel, SelectPositioner, SelectTrigger, SelectValueText } from "./Select";
33
+ export { SelectRoot, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItemGroupLabel, SelectItemGroup, SelectItemIndicator, SelectItem, SelectItemText, SelectLabel, SelectPositioner, SelectTrigger, SelectValueText, SelectList } from "./Select";
34
34
  export { Skeleton } from "./Skeleton";
35
35
  export { SliderRoot, SliderControl, SliderTrack, SliderRange, SliderThumb, SliderLabel, SliderHiddenInput } from "./Slider";
36
36
  export { Spinner } from "./Spinner";
@@ -10,29 +10,74 @@ import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  declare const orderedListRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
11
11
  variant: {
12
12
  numbers: {
13
+ counterReset: "level1";
14
+ "&[data-count='true']": {
15
+ counterReset: "level1 var(--start, 0)";
16
+ };
17
+ marginInline: "small";
13
18
  "& > li": {
19
+ counterIncrement: "level1";
14
20
  _marker: {
15
- content: "counters(list-item, '.') '. '";
21
+ content: "counter(level1, decimal) '. '";
22
+ };
23
+ "& > ol:not([data-variant='letters'])": {
24
+ marginInlineStart: "xlarge";
25
+ counterReset: "level2";
26
+ "&[data-count='true']": {
27
+ counterReset: "level2 var(--start, 0)";
28
+ };
29
+ "& > li": {
30
+ counterIncrement: "level2";
31
+ _marker: {
32
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '. '";
33
+ };
34
+ "& > ol:not([data-variant='letters'])": {
35
+ marginInlineStart: "xxlarge";
36
+ counterReset: "level3";
37
+ "&[data-count='true']": {
38
+ counterReset: "level3 var(--start, 0)";
39
+ };
40
+ "& > li": {
41
+ counterIncrement: "level3";
42
+ _marker: {
43
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. '";
44
+ };
45
+ };
46
+ "& > ol:not([data-variant='letters'])": {
47
+ counterReset: "level4";
48
+ "&[data-count='true']": {
49
+ counterReset: "level4 var(--start, 0)";
50
+ };
51
+ "& > li": {
52
+ counterIncrement: "level4";
53
+ _marker: {
54
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. '";
55
+ };
56
+ };
57
+ };
58
+ };
59
+ };
16
60
  };
17
61
  };
18
62
  };
19
63
  letters: {
20
- "& ol[data-variant='numbers'] > li": {
21
- _marker: {
22
- content: "counter(list-item, numeric) '. '";
23
- };
64
+ counterReset: "level1";
65
+ "&[data-count='true']": {
66
+ counterReset: "level1 var(--start, 0)";
24
67
  };
25
- "& li": {
68
+ paddingInlineStart: "small";
69
+ "& > li": {
70
+ counterIncrement: "level1";
26
71
  _marker: {
27
- content: "counter(list-item, upper-alpha) '. '";
72
+ content: "counter(level1, upper-alpha) '. '";
28
73
  };
29
- "& > ol > li": {
74
+ "& > ol[data-variant='letters'] > li": {
30
75
  _marker: {
31
- content: "counter(list-item, lower-alpha) '. '";
76
+ content: "counter(level1, lower-alpha) '. '";
32
77
  };
33
- "& li": {
78
+ "& > ol[data-variant='letters'] > li": {
34
79
  _marker: {
35
- content: "counter(list-item, lower-roman) '. '";
80
+ content: "counter(level1, lower-roman) '. '";
36
81
  };
37
82
  };
38
83
  };
@@ -19,9 +19,6 @@ var _jsxRuntime = require("react/jsx-runtime");
19
19
 
20
20
  const orderedListRecipe = (0, _css.cva)({
21
21
  base: {
22
- listStyle: "revert",
23
- listStylePosition: "inside",
24
- paddingInlineStart: "small",
25
22
  "& li": {
26
23
  marginBlock: "small"
27
24
  }
@@ -32,29 +29,74 @@ const orderedListRecipe = (0, _css.cva)({
32
29
  variants: {
33
30
  variant: {
34
31
  numbers: {
32
+ counterReset: "level1",
33
+ "&[data-count='true']": {
34
+ counterReset: "level1 var(--start, 0)"
35
+ },
36
+ marginInline: "small",
35
37
  "& > li": {
38
+ counterIncrement: "level1",
36
39
  _marker: {
37
- content: "counters(list-item, '.') '. '"
40
+ content: "counter(level1, decimal) '. '"
41
+ },
42
+ "& > ol:not([data-variant='letters'])": {
43
+ marginInlineStart: "xlarge",
44
+ counterReset: "level2",
45
+ "&[data-count='true']": {
46
+ counterReset: "level2 var(--start, 0)"
47
+ },
48
+ "& > li": {
49
+ counterIncrement: "level2",
50
+ _marker: {
51
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '. '"
52
+ },
53
+ "& > ol:not([data-variant='letters'])": {
54
+ marginInlineStart: "xxlarge",
55
+ counterReset: "level3",
56
+ "&[data-count='true']": {
57
+ counterReset: "level3 var(--start, 0)"
58
+ },
59
+ "& > li": {
60
+ counterIncrement: "level3",
61
+ _marker: {
62
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '. '"
63
+ }
64
+ },
65
+ "& > ol:not([data-variant='letters'])": {
66
+ counterReset: "level4",
67
+ "&[data-count='true']": {
68
+ counterReset: "level4 var(--start, 0)"
69
+ },
70
+ "& > li": {
71
+ counterIncrement: "level4",
72
+ _marker: {
73
+ content: "counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. '"
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
38
79
  }
39
80
  }
40
81
  },
41
82
  letters: {
42
- "& ol[data-variant='numbers'] > li": {
43
- _marker: {
44
- content: "counter(list-item, numeric) '. '"
45
- }
83
+ counterReset: "level1",
84
+ "&[data-count='true']": {
85
+ counterReset: "level1 var(--start, 0)"
46
86
  },
47
- "& li": {
87
+ paddingInlineStart: "small",
88
+ "& > li": {
89
+ counterIncrement: "level1",
48
90
  _marker: {
49
- content: "counter(list-item, upper-alpha) '. '"
91
+ content: "counter(level1, upper-alpha) '. '"
50
92
  },
51
- "& > ol > li": {
93
+ "& > ol[data-variant='letters'] > li": {
52
94
  _marker: {
53
- content: "counter(list-item, lower-alpha) '. '"
95
+ content: "counter(level1, lower-alpha) '. '"
54
96
  },
55
- "& li": {
97
+ "& > ol[data-variant='letters'] > li": {
56
98
  _marker: {
57
- content: "counter(list-item, lower-roman) '. '"
99
+ content: "counter(level1, lower-roman) '. '"
58
100
  }
59
101
  }
60
102
  }
@@ -70,26 +112,36 @@ const OrderedList = exports.OrderedList = /*#__PURE__*/(0, _react.forwardRef)((_
70
112
  let {
71
113
  variant,
72
114
  css: cssProp,
115
+ start,
73
116
  ...props
74
117
  } = _ref;
118
+ const style = (0, _react.useMemo)(() => ({
119
+ "--start": start ? start - 1 : undefined
120
+ }), [start]);
75
121
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledOrderedList, {
122
+ "data-variant": variant,
123
+ "data-count": start !== undefined,
76
124
  css: _css.css.raw(orderedListRecipe.raw({
77
125
  variant
78
126
  }), cssProp),
79
- ...props,
80
- ref: ref
127
+ style: style,
128
+ ref: ref,
129
+ ...props
81
130
  });
82
131
  });
83
132
  const UnOrderedList = exports.UnOrderedList = (0, _jsx2.styled)("ul", {
84
133
  base: {
85
134
  listStyle: "revert",
86
135
  listStylePosition: "inside",
87
- paddingInlineStart: "small",
136
+ paddingInlineStart: "medium",
88
137
  "& li": {
89
138
  marginBlock: "small",
90
139
  _marker: {
91
140
  color: "icon.strong"
92
141
  }
142
+ },
143
+ "& li > *:not(ol, ul, li)": {
144
+ display: "inline"
93
145
  }
94
146
  }
95
147
  });
package/lib/Combobox.d.ts CHANGED
@@ -88,4 +88,8 @@ export type ComboboxTriggerProps = Combobox.TriggerProps & JsxStyleProps;
88
88
  export declare const ComboboxTrigger: import("react").ForwardRefExoticComponent<Combobox.TriggerProps & {
89
89
  consumeCss?: boolean | undefined;
90
90
  } & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLButtonElement>>;
91
+ export type ComboboxListProps = Combobox.ListProps & JsxStyleProps;
92
+ export declare const ComboboxList: import("react").ForwardRefExoticComponent<Combobox.ListProps & {
93
+ consumeCss?: boolean | undefined;
94
+ } & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLDivElement>>;
91
95
  export {};
package/lib/Combobox.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ComboboxTrigger = exports.ComboboxRoot = exports.ComboboxPositioner = exports.ComboboxLabel = exports.ComboboxItemText = exports.ComboboxItemIndicator = exports.ComboboxItemGroupLabel = exports.ComboboxItemGroup = exports.ComboboxItem = exports.ComboboxInput = exports.ComboboxControl = exports.ComboboxContent = exports.ComboboxClearTrigger = void 0;
6
+ exports.ComboboxTrigger = exports.ComboboxRoot = exports.ComboboxPositioner = exports.ComboboxList = exports.ComboboxLabel = exports.ComboboxItemText = exports.ComboboxItemIndicator = exports.ComboboxItemGroupLabel = exports.ComboboxItemGroup = exports.ComboboxItem = exports.ComboboxInput = exports.ComboboxControl = exports.ComboboxContent = exports.ComboboxClearTrigger = void 0;
7
7
  var _react = require("@ark-ui/react");
8
8
  var _css = require("@ndla/styled-system/css");
9
9
  var _createStyleContext = require("./createStyleContext");
@@ -256,4 +256,7 @@ const ComboboxPositioner = exports.ComboboxPositioner = withContext(_react.Combo
256
256
  });
257
257
  const ComboboxTrigger = exports.ComboboxTrigger = withContext(_react.Combobox.Trigger, "trigger", {
258
258
  baseComponent: true
259
+ });
260
+ const ComboboxList = exports.ComboboxList = withContext(_react.Combobox.List, "list", {
261
+ baseComponent: true
259
262
  });
package/lib/Select.d.ts CHANGED
@@ -49,3 +49,6 @@ export declare const SelectTrigger: import("react").ForwardRefExoticComponent<Se
49
49
  export declare const SelectValueText: import("react").ForwardRefExoticComponent<Select.ValueTextProps & {
50
50
  consumeCss?: boolean | undefined;
51
51
  } & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLSpanElement>>;
52
+ export declare const SelectList: import("react").ForwardRefExoticComponent<Select.ListProps & {
53
+ consumeCss?: boolean | undefined;
54
+ } & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLDivElement>>;
package/lib/Select.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.SelectValueText = exports.SelectTrigger = exports.SelectRoot = exports.SelectPositioner = exports.SelectLabel = exports.SelectItemText = exports.SelectItemIndicator = exports.SelectItemGroupLabel = exports.SelectItemGroup = exports.SelectItem = exports.SelectIndicator = exports.SelectControl = exports.SelectContent = exports.SelectClearTrigger = void 0;
6
+ exports.SelectValueText = exports.SelectTrigger = exports.SelectRoot = exports.SelectPositioner = exports.SelectList = exports.SelectLabel = exports.SelectItemText = exports.SelectItemIndicator = exports.SelectItemGroupLabel = exports.SelectItemGroup = exports.SelectItem = exports.SelectIndicator = exports.SelectControl = exports.SelectContent = exports.SelectClearTrigger = void 0;
7
7
  var _react = require("react");
8
8
  var _react2 = require("@ark-ui/react");
9
9
  var _css = require("@ndla/styled-system/css");
@@ -224,4 +224,7 @@ const SelectTrigger = exports.SelectTrigger = withContext(_react2.Select.Trigger
224
224
  });
225
225
  const SelectValueText = exports.SelectValueText = withContext(_react2.Select.ValueText, "valueText", {
226
226
  baseComponent: true
227
+ });
228
+ const SelectList = exports.SelectList = withContext(_react2.Select.List, "list", {
229
+ baseComponent: true
227
230
  });
package/lib/Tabs.d.ts CHANGED
@@ -39,10 +39,9 @@ declare const tabsRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeF
39
39
  };
40
40
  indicator: {
41
41
  background: "transparent";
42
- outline: "4px solid";
42
+ outline: "3px solid";
43
43
  outlineColor: "stroke.default";
44
- pointerEvents: "none";
45
- outlineOffset: "-4px";
44
+ outlineOffset: "-3px";
46
45
  _peerFocusVisible: {
47
46
  height: "var(--height)";
48
47
  width: "var(--width)";
@@ -54,14 +53,17 @@ declare const tabsRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeF
54
53
  };
55
54
  };
56
55
  _horizontal: {
57
- bottom: "0";
58
- height: "2";
56
+ top: "calc(var(--top) + var(--height) - 6px)";
57
+ _peerFocusVisible: {
58
+ top: "var(--top)";
59
+ };
60
+ height: "3";
59
61
  width: "var(--width)";
60
62
  };
61
63
  _vertical: {
62
64
  height: "var(--height)";
63
65
  left: "0";
64
- width: "2";
66
+ width: "3";
65
67
  };
66
68
  };
67
69
  content: {
package/lib/Tabs.js CHANGED
@@ -17,7 +17,9 @@ var _jsxRuntime = require("react/jsx-runtime");
17
17
  */
18
18
 
19
19
  const tabsRecipe = (0, _css.sva)({
20
- slots: _react.tabsAnatomy.keys(),
20
+ // TODO: This still doesn't work. Need to figure out why we need to pass keys manually.
21
+ // slots: tabsAnatomy.keys(),
22
+ slots: ["root", "list", "trigger", "content", "indicator"],
21
23
  base: {
22
24
  root: {
23
25
  position: "relative",
@@ -34,7 +36,7 @@ const tabsRecipe = (0, _css.sva)({
34
36
  position: "relative",
35
37
  display: "flex",
36
38
  flexShrink: "0",
37
- overflow: "auto",
39
+ flexWrap: "wrap",
38
40
  _horizontal: {
39
41
  flexDirection: "row"
40
42
  },
@@ -112,10 +114,9 @@ const tabsRecipe = (0, _css.sva)({
112
114
  },
113
115
  indicator: {
114
116
  background: "transparent",
115
- outline: "4px solid",
117
+ outline: "3px solid",
116
118
  outlineColor: "stroke.default",
117
- pointerEvents: "none",
118
- outlineOffset: "-4px",
119
+ outlineOffset: "-3px",
119
120
  _peerFocusVisible: {
120
121
  height: "var(--height)",
121
122
  width: "var(--width)",
@@ -127,14 +128,17 @@ const tabsRecipe = (0, _css.sva)({
127
128
  }
128
129
  },
129
130
  _horizontal: {
130
- bottom: "0",
131
- height: "2",
131
+ top: "calc(var(--top) + var(--height) - 6px)",
132
+ _peerFocusVisible: {
133
+ top: "var(--top)"
134
+ },
135
+ height: "3",
132
136
  width: "var(--width)"
133
137
  },
134
138
  _vertical: {
135
139
  height: "var(--height)",
136
140
  left: "0",
137
- width: "2"
141
+ width: "3"
138
142
  }
139
143
  },
140
144
  content: {
package/lib/index.d.ts CHANGED
@@ -18,8 +18,8 @@ export { Button, IconButton, buttonBaseRecipe, buttonRecipe, iconButtonRecipe }
18
18
  export { CardRoot, CardHeading, CardContent, CardImage } from "./Card/Card";
19
19
  export type { CheckboxVariantProps, CheckboxRootProps } from "./Checkbox";
20
20
  export { CheckboxRoot, CheckboxIndicator, CheckboxLabel, CheckboxControl, CheckboxGroup, CheckboxHiddenInput, } from "./Checkbox";
21
- export type { ComboboxVariantProps, ComboboxRootProps, ComboboxClearTriggerProps, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemProps, ComboboxItemIndicatorProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxTriggerProps, } from "./Combobox";
22
- export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, } from "./Combobox";
21
+ export type { ComboboxVariantProps, ComboboxRootProps, ComboboxClearTriggerProps, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemProps, ComboboxItemIndicatorProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxTriggerProps, ComboboxListProps, } from "./Combobox";
22
+ export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, ComboboxList, } from "./Combobox";
23
23
  export type { DialogVariantProps, DialogRootProps } from "./Dialog";
24
24
  export { DialogRoot, DialogBackdrop, DialogStandaloneContent, DialogPositioner, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DialogCloseTrigger, DialogHeader, DialogBody, } from "./Dialog";
25
25
  export type { ExpandableBoxProps, ExpandableBoxSummaryProps } from "./ExpandableBox";
@@ -49,7 +49,7 @@ export { PopoverRoot, PopoverAnchor, PopoverArrowStandalone, PopoverArrow, Popov
49
49
  export type { RadioGroupRootProps } from "./RadioGroup";
50
50
  export { RadioGroupRoot, RadioGroupIndicator, RadioGroupItemControl, RadioGroupItem, RadioGroupItemText, RadioGroupLabel, RadioGroupItemHiddenInput, } from "./RadioGroup";
51
51
  export type { SelectRootProps } from "./Select";
52
- export { SelectRoot, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItemGroupLabel, SelectItemGroup, SelectItemIndicator, SelectItem, SelectItemText, SelectLabel, SelectPositioner, SelectTrigger, SelectValueText, } from "./Select";
52
+ export { SelectRoot, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItemGroupLabel, SelectItemGroup, SelectItemIndicator, SelectItem, SelectItemText, SelectLabel, SelectPositioner, SelectTrigger, SelectValueText, SelectList, } from "./Select";
53
53
  export type { SkeletonProps } from "./Skeleton";
54
54
  export { Skeleton } from "./Skeleton";
55
55
  export type { SliderRootProps } from "./Slider";
package/lib/index.js CHANGED
@@ -171,6 +171,12 @@ Object.defineProperty(exports, "ComboboxLabel", {
171
171
  return _Combobox.ComboboxLabel;
172
172
  }
173
173
  });
174
+ Object.defineProperty(exports, "ComboboxList", {
175
+ enumerable: true,
176
+ get: function () {
177
+ return _Combobox.ComboboxList;
178
+ }
179
+ });
174
180
  Object.defineProperty(exports, "ComboboxPositioner", {
175
181
  enumerable: true,
176
182
  get: function () {
@@ -663,6 +669,12 @@ Object.defineProperty(exports, "SelectLabel", {
663
669
  return _Select.SelectLabel;
664
670
  }
665
671
  });
672
+ Object.defineProperty(exports, "SelectList", {
673
+ enumerable: true,
674
+ get: function () {
675
+ return _Select.SelectList;
676
+ }
677
+ });
666
678
  Object.defineProperty(exports, "SelectPositioner", {
667
679
  enumerable: true,
668
680
  get: function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Primitive components for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "6fdfbed9f18bbd725c837fb74de2f093e80d5605"
46
+ "gitHead": "3675a902b9f44f5afb37c648038b8d90f1ccd7d0"
47
47
  }