@ndla/primitives 0.0.2 → 0.0.3

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.
Files changed (84) hide show
  1. package/dist/panda.buildinfo.json +61 -14
  2. package/dist/styles.css +226 -26
  3. package/es/ArticleLists.js +4 -32
  4. package/es/Badge.js +4 -16
  5. package/es/BlockQuote.js +3 -15
  6. package/es/Button.js +40 -33
  7. package/es/Dialog.js +6 -7
  8. package/es/ExpandableBox.js +4 -17
  9. package/es/FieldErrorMessage.js +9 -7
  10. package/es/FieldHelper.js +7 -5
  11. package/es/FormControl.js +2 -1
  12. package/es/FramedContent.js +3 -15
  13. package/es/Icon.js +9 -6
  14. package/es/Input.js +13 -10
  15. package/es/Label.js +10 -9
  16. package/es/Menu.js +32 -6
  17. package/es/MessageBox.js +3 -15
  18. package/es/NdlaLogo.js +6 -5
  19. package/es/RadioGroup.js +6 -2
  20. package/es/Skeleton.js +2 -8
  21. package/es/Spinner.js +3 -15
  22. package/es/Switch.js +8 -4
  23. package/es/Table.js +2 -5
  24. package/es/Tabs.js +232 -0
  25. package/es/Text.js +33 -32
  26. package/es/Toast.js +14 -6
  27. package/es/createStyleContext.js +15 -7
  28. package/lib/Accordion.d.ts +14 -7
  29. package/lib/ArticleLists.d.ts +9 -11
  30. package/lib/ArticleLists.js +5 -36
  31. package/lib/Badge.d.ts +9 -4
  32. package/lib/Badge.js +4 -17
  33. package/lib/BlockQuote.d.ts +8 -3
  34. package/lib/BlockQuote.js +3 -16
  35. package/lib/Button.d.ts +24 -11
  36. package/lib/Button.js +39 -32
  37. package/lib/Checkbox.d.ts +12 -5
  38. package/lib/Dialog.d.ts +18 -10
  39. package/lib/Dialog.js +6 -7
  40. package/lib/ExpandableBox.d.ts +8 -5
  41. package/lib/ExpandableBox.js +5 -20
  42. package/lib/FieldErrorMessage.d.ts +3 -3
  43. package/lib/FieldErrorMessage.js +8 -6
  44. package/lib/FieldHelper.d.ts +3 -3
  45. package/lib/FieldHelper.js +6 -4
  46. package/lib/FormControl.d.ts +4 -2
  47. package/lib/FormControl.js +2 -1
  48. package/lib/FramedContent.d.ts +8 -4
  49. package/lib/FramedContent.js +3 -16
  50. package/lib/Icon.d.ts +3 -2
  51. package/lib/Icon.js +8 -5
  52. package/lib/Input.d.ts +12 -11
  53. package/lib/Input.js +12 -9
  54. package/lib/Label.d.ts +16 -7
  55. package/lib/Label.js +9 -8
  56. package/lib/Menu.d.ts +66 -13
  57. package/lib/Menu.js +41 -15
  58. package/lib/MessageBox.d.ts +8 -4
  59. package/lib/MessageBox.js +3 -16
  60. package/lib/NdlaLogo.d.ts +5 -4
  61. package/lib/NdlaLogo.js +5 -4
  62. package/lib/Pagination.d.ts +17 -6
  63. package/lib/Popover.d.ts +34 -13
  64. package/lib/RadioGroup.d.ts +18 -7
  65. package/lib/RadioGroup.js +6 -2
  66. package/lib/Skeleton.d.ts +5 -2
  67. package/lib/Skeleton.js +3 -10
  68. package/lib/Slider.d.ts +18 -7
  69. package/lib/Spinner.d.ts +8 -3
  70. package/lib/Spinner.js +3 -16
  71. package/lib/Switch.d.ts +12 -7
  72. package/lib/Switch.js +9 -5
  73. package/lib/Table.d.ts +6 -3
  74. package/lib/Table.js +4 -8
  75. package/lib/Tabs.d.ts +145 -0
  76. package/lib/Tabs.js +240 -0
  77. package/lib/Text.d.ts +6 -9
  78. package/lib/Text.js +32 -33
  79. package/lib/Toast.d.ts +10 -7
  80. package/lib/Toast.js +15 -7
  81. package/lib/Tooltip.d.ts +19 -7
  82. package/lib/createStyleContext.d.ts +5 -3
  83. package/lib/createStyleContext.js +14 -6
  84. package/package.json +5 -5
@@ -66,7 +66,7 @@
66
66
  "width]___[value:fit-content",
67
67
  "backgroundColor]___[value:surface.brand.1.subtle",
68
68
  "borderColor]___[value:surface.brand.1.strong",
69
- "backgroundColor]___[value:surface.brand.2.subtle",
69
+ "backgroundColor]___[value:surface.brand.2.moderate",
70
70
  "borderColor]___[value:surface.brand.2.strong",
71
71
  "backgroundColor]___[value:surface.brand.3.subtle",
72
72
  "borderColor]___[value:surface.brand.3.strong",
@@ -154,16 +154,16 @@
154
154
  "borderColor]___[value:stroke.error]___[cond:_invalid<___>_checked",
155
155
  "backgroundColor]___[value:surface.default]___[cond:_invalid<___>_checked",
156
156
  "position]___[value:fixed",
157
- "left]___[value:0",
158
- "top]___[value:0",
159
- "width]___[value:100vw",
160
- "height]___[value:100dvh",
161
- "zIndex]___[value:modal",
162
157
  "height]___[value:100vh",
158
+ "width]___[value:100vw",
163
159
  "zIndex]___[value:overlay",
160
+ "left]___[value:0",
161
+ "top]___[value:0",
164
162
  "background]___[value:rgba(1, 1, 1, 0.3)",
165
163
  "animation]___[value:backdrop-in]___[cond:_open",
166
164
  "animation]___[value:backdrop-out]___[cond:_closed",
165
+ "height]___[value:100dvh",
166
+ "zIndex]___[value:modal",
167
167
  "--margin]___[value:token(sizes.medium)",
168
168
  "position]___[value:relative",
169
169
  "boxShadow]___[value:xlarge",
@@ -224,6 +224,7 @@
224
224
  "boxShadow]___[value:4px 4px 0px 0px var(--shadow-color)",
225
225
  "backgroundColor]___[value:surface.default",
226
226
  "boxShadowColor]___[value:surface.brand.1.strong",
227
+ "backgroundColor]___[value:surface.brand.2.subtle",
227
228
  "boxShadowColor]___[value:surface.brand.2.strong",
228
229
  "display]___[value:inline-block",
229
230
  "fill]___[value:currentcolor",
@@ -266,6 +267,14 @@
266
267
  "border]___[value:none",
267
268
  "padding]___[value:0",
268
269
  "margin]___[value:0",
270
+ "paddingBlock]___[value:4xsmall",
271
+ "transitionProperty]___[value:background, color",
272
+ "textDecoration]___[value:underline]___[cond:_hover",
273
+ "textDecoration]___[value:underline]___[cond:_highlighted",
274
+ "color]___[value:stroke.disabled]___[cond:_disabled<___>& svg",
275
+ "textDecoration]___[value:none]___[cond:_disabled<___>_hover",
276
+ "background]___[value:surface.default]___[cond:_disabled<___>_hover",
277
+ "color]___[value:stroke.disabled]___[cond:_disabled<___>_hover<___>& svg",
269
278
  "background]___[value:surface.hover]___[cond:_hover",
270
279
  "background]___[value:surface.hover]___[cond:_highlighted",
271
280
  "background]___[value:surface.active]___[cond:_active",
@@ -277,14 +286,6 @@
277
286
  "color]___[value:icon.default]___[cond:_highlighted<___>& svg",
278
287
  "background]___[value:surface.errorSubtle.hover]___[cond:_highlighted",
279
288
  "background]___[value:surface.errorSubtle.active]___[cond:_active",
280
- "paddingBlock]___[value:4xsmall",
281
- "transitionProperty]___[value:background, color",
282
- "textDecoration]___[value:underline]___[cond:_hover",
283
- "textDecoration]___[value:underline]___[cond:_highlighted",
284
- "color]___[value:stroke.disabled]___[cond:_disabled<___>& svg",
285
- "textDecoration]___[value:none]___[cond:_disabled<___>_hover",
286
- "background]___[value:surface.default]___[cond:_disabled<___>_hover",
287
- "color]___[value:stroke.disabled]___[cond:_disabled<___>_hover<___>& svg",
288
289
  "minWidth]___[value:surface.xxsmall",
289
290
  "padding]___[value:3xsmall",
290
291
  "boxShadow]___[value:xsmall",
@@ -402,7 +403,53 @@
402
403
  "textAlign]___[value:center]___[cond:& td, & th<___>&[data-align='center']",
403
404
  "textAlign]___[value:left]___[cond:& td, & th<___>&[data-align='left']",
404
405
  "textAlign]___[value:right]___[cond:& td, & th<___>&[data-align='right']",
406
+ "flexDirection]___[value:column]___[cond:_horizontal",
407
+ "flexDirection]___[value:row]___[cond:_vertical",
408
+ "overflow]___[value:auto",
409
+ "marginBlockEnd]___[value:-1px]___[cond:_horizontal",
410
+ "marginInlineEnd]___[value:-1px]___[cond:_vertical",
411
+ "transitionProperty]___[value:color, background, border-color",
412
+ "whiteSpace]___[value:nowrap",
413
+ "color]___[value:text.strong]___[cond:_selected",
414
+ "color]___[value:text.subtle]___[cond:_disabled<___>_hover",
415
+ "borderColor]___[value:stroke.hover]___[cond:_hover",
416
+ "borderColor]___[value:stroke.default]___[cond:_hover<___>_focusVisible",
417
+ "borderBottom]___[value:1px solid]___[cond:_horizontal",
418
+ "borderColor]___[value:stroke.default]___[cond:_disabled",
419
+ "borderColor]___[value:stroke.default]___[cond:_disabled<___>_hover",
420
+ "borderLeft]___[value:1px solid]___[cond:_vertical",
421
+ "justifyContent]___[value:flex-start]___[cond:_vertical",
422
+ "borderRadius]___[value:unset]___[cond:_focusVisible",
423
+ "borderColor]___[value:transparent",
424
+ "borderWidth]___[value:1px",
425
+ "borderTopRadius]___[value:xsmall]___[cond:_horizontal",
426
+ "borderTopLeftRadius]___[value:xsmall]___[cond:_vertical",
427
+ "borderBottomLeftRadius]___[value:xsmall]___[cond:_vertical",
428
+ "background]___[value:surface.default]___[cond:_selected",
429
+ "borderColor]___[value:stroke.subtle]___[cond:_selected",
430
+ "borderBottomColor]___[value:transparent]___[cond:_selected<___>_horizontal",
431
+ "borderRightColor]___[value:transparent]___[cond:_selected<___>_vertical",
432
+ "outlineOffset]___[value:-3px]___[cond:_focusVisible",
433
+ "outlineColor]___[value:stroke.default]___[cond:_focusVisible",
434
+ "paddingBlockStart]___[value:xsmall]___[cond:_horizontal",
435
+ "paddingInlineStart]___[value:xsmall]___[cond:_vertical",
436
+ "boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
437
+ "padding]___[value:xsmall",
438
+ "outline]___[value:4px solid",
439
+ "outlineColor]___[value:stroke.default",
440
+ "outlineOffset]___[value:-4px",
441
+ "height]___[value:var(--height)]___[cond:_peerFocusVisible",
442
+ "width]___[value:var(--width)]___[cond:_peerFocusVisible",
443
+ "borderTopRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_horizontal",
444
+ "borderRightRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_vertical",
445
+ "bottom]___[value:0]___[cond:_horizontal",
446
+ "height]___[value:2]___[cond:_horizontal",
447
+ "width]___[value:var(--width)]___[cond:_horizontal",
448
+ "height]___[value:var(--height)]___[cond:_vertical",
449
+ "left]___[value:0]___[cond:_vertical",
450
+ "width]___[value:2]___[cond:_vertical",
405
451
  "textStyle]___[value:body.medium",
452
+ "textStyle]___[value:heading.medium",
406
453
  "boxShadow]___[value:medium",
407
454
  "minWidth]___[value:20rem",
408
455
  "height]___[value:var(--height)",
package/dist/styles.css CHANGED
@@ -60,6 +60,18 @@
60
60
  line-height: calc(var(--line-heights-small) * 1.11);
61
61
  }
62
62
 
63
+ .textStyle_heading\.medium {
64
+ font-family: var(--fonts-sans);
65
+ font-weight: var(--font-weights-bold);
66
+ font-size: var(--font-sizes-3xlarge);
67
+ line-height: var(--line-heights-3xlarge);
68
+ }
69
+
70
+ .textStyle_heading\.medium:where([lang='zh'], .textStyle_heading\.medium[lang='zh-Hans'], .textStyle_heading\.medium[lang='zh-Hant']):not([data-pinyin]) {
71
+ font-size: calc(var(--font-sizes-3xlarge) * 1.11);
72
+ line-height: calc(var(--line-heights-3xlarge) * 1.11);
73
+ }
74
+
63
75
  .\[\&_\>_\*\]\:textStyle_label\.large\! > * {
64
76
  font-family: var(--fonts-sans) !important;
65
77
  font-weight: var(--font-weights-normal) !important;
@@ -280,22 +292,14 @@
280
292
  position: fixed;
281
293
  }
282
294
 
283
- .w_100vw {
284
- width: 100vw;
285
- }
286
-
287
- .h_100dvh {
288
- height: 100dvh;
289
- }
290
-
291
- .z_modal {
292
- z-index: var(--z-index-modal);
293
- }
294
-
295
295
  .h_100vh {
296
296
  height: 100vh;
297
297
  }
298
298
 
299
+ .w_100vw {
300
+ width: 100vw;
301
+ }
302
+
299
303
  .z_overlay {
300
304
  z-index: var(--z-index-overlay);
301
305
  }
@@ -304,6 +308,14 @@
304
308
  background: rgba(1, 1, 1, 0.3);
305
309
  }
306
310
 
311
+ .h_100dvh {
312
+ height: 100dvh;
313
+ }
314
+
315
+ .z_modal {
316
+ z-index: var(--z-index-modal);
317
+ }
318
+
307
319
  .\--margin_token\(sizes\.medium\) {
308
320
  --margin: var(--sizes-medium);
309
321
  }
@@ -712,6 +724,26 @@
712
724
  table-layout: fixed;
713
725
  }
714
726
 
727
+ .overflow_auto {
728
+ overflow: auto;
729
+ }
730
+
731
+ .white-space_nowrap {
732
+ white-space: nowrap;
733
+ }
734
+
735
+ .p_xsmall {
736
+ padding: var(--spacing-xsmall);
737
+ }
738
+
739
+ .ring_4px_solid {
740
+ outline: 4px solid;
741
+ }
742
+
743
+ .ring-offset_-4px {
744
+ outline-offset: -4px;
745
+ }
746
+
715
747
  .shadow_medium {
716
748
  box-shadow: var(--shadows-medium);
717
749
  }
@@ -834,8 +866,8 @@
834
866
  border-color: var(--colors-surface-brand-1-strong);
835
867
  }
836
868
 
837
- .bg_surface\.brand\.2\.subtle {
838
- background-color: var(--colors-surface-brand-2-subtle);
869
+ .bg_surface\.brand\.2\.moderate {
870
+ background-color: var(--colors-surface-brand-2-moderate);
839
871
  }
840
872
 
841
873
  .border_surface\.brand\.2\.strong {
@@ -896,6 +928,10 @@
896
928
  background-color: var(--colors-surface-default);
897
929
  }
898
930
 
931
+ .bg_surface\.brand\.2\.subtle {
932
+ background-color: var(--colors-surface-brand-2-subtle);
933
+ }
934
+
899
935
  .leading_1em {
900
936
  line-height: 1em;
901
937
  }
@@ -1001,6 +1037,23 @@
1001
1037
  overflow-x: auto;
1002
1038
  }
1003
1039
 
1040
+ .transition-prop_color\,_background\,_border-color {
1041
+ --transition-prop: color, background, border-color;
1042
+ transition-property: color, background, border-color;
1043
+ }
1044
+
1045
+ .border_transparent {
1046
+ border-color: transparent;
1047
+ }
1048
+
1049
+ .border-w_1px {
1050
+ border-width: 1px;
1051
+ }
1052
+
1053
+ .ring-color_stroke\.default {
1054
+ outline-color: var(--colors-stroke-default);
1055
+ }
1056
+
1004
1057
  .duration_slow {
1005
1058
  --transition-duration: var(--durations-slow);
1006
1059
  transition-duration: var(--durations-slow);
@@ -1156,6 +1209,10 @@
1156
1209
  color: var(--colors-text-subtle);
1157
1210
  }
1158
1211
 
1212
+ .highlighted\:text-decor_underline[data-highlighted] {
1213
+ text-decoration: underline;
1214
+ }
1215
+
1159
1216
  .highlighted\:bg_surface\.hover[data-highlighted] {
1160
1217
  background: var(--colors-surface-hover);
1161
1218
  }
@@ -1172,10 +1229,6 @@
1172
1229
  background: var(--colors-surface-error-subtle-hover);
1173
1230
  }
1174
1231
 
1175
- .highlighted\:text-decor_underline[data-highlighted] {
1176
- text-decoration: underline;
1177
- }
1178
-
1179
1232
  .open\:animation_fade-shift-in_0\.25s_ease-out:is([open], [data-open], [data-state="open"]) {
1180
1233
  animation: fade-shift-in 0.25s ease-out;
1181
1234
  }
@@ -1292,6 +1345,59 @@
1292
1345
  padding-block: var(--spacing-3xsmall);
1293
1346
  }
1294
1347
 
1348
+ .horizontal\:mb_-1px[data-orientation=horizontal] {
1349
+ margin-block-end: -1px;
1350
+ }
1351
+
1352
+ .vertical\:me_-1px[data-orientation=vertical] {
1353
+ margin-inline-end: -1px;
1354
+ }
1355
+
1356
+ .selected\:text_text\.strong:is([aria-selected=true], [data-selected]) {
1357
+ color: var(--colors-text-strong);
1358
+ }
1359
+
1360
+ .horizontal\:border-b_1px_solid[data-orientation=horizontal] {
1361
+ border-bottom: 1px solid;
1362
+ }
1363
+
1364
+ .vertical\:border-l_1px_solid[data-orientation=vertical] {
1365
+ border-left: 1px solid;
1366
+ }
1367
+
1368
+ .horizontal\:rounded-t_xsmall[data-orientation=horizontal] {
1369
+ border-top-left-radius: var(--radii-xsmall);
1370
+ border-top-right-radius: var(--radii-xsmall);
1371
+ }
1372
+
1373
+ .selected\:bg_surface\.default:is([aria-selected=true], [data-selected]) {
1374
+ background: var(--colors-surface-default);
1375
+ }
1376
+
1377
+ .horizontal\:pt_xsmall[data-orientation=horizontal] {
1378
+ padding-block-start: var(--spacing-xsmall);
1379
+ }
1380
+
1381
+ .vertical\:ps_xsmall[data-orientation=vertical] {
1382
+ padding-inline-start: var(--spacing-xsmall);
1383
+ }
1384
+
1385
+ .horizontal\:h_2[data-orientation=horizontal] {
1386
+ height: var(--sizes-2);
1387
+ }
1388
+
1389
+ .horizontal\:w_var\(--width\)[data-orientation=horizontal] {
1390
+ width: var(--width);
1391
+ }
1392
+
1393
+ .vertical\:h_var\(--height\)[data-orientation=vertical] {
1394
+ height: var(--height);
1395
+ }
1396
+
1397
+ .vertical\:w_2[data-orientation=vertical] {
1398
+ width: var(--sizes-2);
1399
+ }
1400
+
1295
1401
  .closed\:transition-prop_background\,_border-color\,_border\,_border-radius:is([closed], [data-closed], [data-state="closed"]) {
1296
1402
  --transition-prop: background, border-color, border, border-radius;
1297
1403
  transition-property: background, border-color, border, border-radius;
@@ -1365,6 +1471,42 @@
1365
1471
  border-color: var(--colors-surface-brand-1-subtle);
1366
1472
  }
1367
1473
 
1474
+ .horizontal\:flex_column[data-orientation=horizontal] {
1475
+ flex-direction: column;
1476
+ }
1477
+
1478
+ .vertical\:flex_row[data-orientation=vertical] {
1479
+ flex-direction: row;
1480
+ }
1481
+
1482
+ .disabled\:border_stroke\.default:is(:disabled, [disabled], [data-disabled]) {
1483
+ border-color: var(--colors-stroke-default);
1484
+ }
1485
+
1486
+ .vertical\:justify_flex-start[data-orientation=vertical] {
1487
+ justify-content: flex-start;
1488
+ }
1489
+
1490
+ .vertical\:rounded-tl_xsmall[data-orientation=vertical] {
1491
+ border-top-left-radius: var(--radii-xsmall);
1492
+ }
1493
+
1494
+ .vertical\:rounded-bl_xsmall[data-orientation=vertical] {
1495
+ border-bottom-left-radius: var(--radii-xsmall);
1496
+ }
1497
+
1498
+ .selected\:border_stroke\.subtle:is([aria-selected=true], [data-selected]) {
1499
+ border-color: var(--colors-stroke-subtle);
1500
+ }
1501
+
1502
+ .horizontal\:bottom_0[data-orientation=horizontal] {
1503
+ bottom: 0;
1504
+ }
1505
+
1506
+ .vertical\:left_0[data-orientation=vertical] {
1507
+ left: 0;
1508
+ }
1509
+
1368
1510
  .focusWithin\:ring-offset_-1px:focus-within {
1369
1511
  outline-offset: -1px;
1370
1512
  }
@@ -1447,6 +1589,26 @@
1447
1589
  outline-offset: 0px;
1448
1590
  }
1449
1591
 
1592
+ .focusVisible\:rounded_unset:is(:focus-visible, [data-focus-visible]) {
1593
+ border-radius: unset;
1594
+ }
1595
+
1596
+ .focusVisible\:ring-offset_-3px:is(:focus-visible, [data-focus-visible]) {
1597
+ outline-offset: -3px;
1598
+ }
1599
+
1600
+ .focusVisible\:shadow_0_0_0_3px_var\(--shadow-color\):is(:focus-visible, [data-focus-visible]) {
1601
+ box-shadow: 0 0 0 3px var(--shadow-color);
1602
+ }
1603
+
1604
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:h_var\(--height\) {
1605
+ height: var(--height);
1606
+ }
1607
+
1608
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:w_var\(--width\) {
1609
+ width: var(--width);
1610
+ }
1611
+
1450
1612
  .focus\:ring-color_stroke\.default:is(:focus, [data-focus]) {
1451
1613
  outline-color: var(--colors-stroke-default);
1452
1614
  }
@@ -1463,6 +1625,10 @@
1463
1625
  outline-color: var(--colors-surface-action);
1464
1626
  }
1465
1627
 
1628
+ .focusVisible\:ring-color_stroke\.default:is(:focus-visible, [data-focus-visible]) {
1629
+ outline-color: var(--colors-stroke-default);
1630
+ }
1631
+
1466
1632
  .hover\:bg_surface\.actionSubtle\.hover:is(:hover, [data-hover]) {
1467
1633
  background: var(--colors-surface-action-subtle-hover);
1468
1634
  }
@@ -1515,6 +1681,10 @@
1515
1681
  --shadow-color: var(--colors-surface-action-subtle-hover-strong);
1516
1682
  }
1517
1683
 
1684
+ .hover\:text-decor_underline:is(:hover, [data-hover]) {
1685
+ text-decoration: underline;
1686
+ }
1687
+
1518
1688
  .hover\:bg_surface\.hover:is(:hover, [data-hover]) {
1519
1689
  background: var(--colors-surface-hover);
1520
1690
  }
@@ -1527,10 +1697,6 @@
1527
1697
  background: var(--colors-surface-error-subtle-hover);
1528
1698
  }
1529
1699
 
1530
- .hover\:text-decor_underline:is(:hover, [data-hover]) {
1531
- text-decoration: underline;
1532
- }
1533
-
1534
1700
  .hover\:transform_translateX\(20\%\):is(:hover, [data-hover]) {
1535
1701
  transform: translateX(20%);
1536
1702
  }
@@ -1539,6 +1705,10 @@
1539
1705
  outline-color: var(--colors-stroke-hover);
1540
1706
  }
1541
1707
 
1708
+ .hover\:border_stroke\.hover:is(:hover, [data-hover]) {
1709
+ border-color: var(--colors-stroke-hover);
1710
+ }
1711
+
1542
1712
  .active\:text_text\.onAction:is(:active, [data-active]) {
1543
1713
  color: var(--colors-text-on-action);
1544
1714
  }
@@ -1611,10 +1781,6 @@
1611
1781
  margin-block-end: calc(var(--spacing-xxsmall) * -1);
1612
1782
  }
1613
1783
 
1614
- .highlighted\:\[\&_svg\]\:text_icon\.default[data-highlighted] svg {
1615
- color: var(--colors-icon-default);
1616
- }
1617
-
1618
1784
  .disabled\:\[\&_svg\]\:text_stroke\.disabled:is(:disabled, [disabled], [data-disabled]) svg {
1619
1785
  color: var(--colors-stroke-disabled);
1620
1786
  }
@@ -1627,6 +1793,10 @@
1627
1793
  background: var(--colors-surface-default);
1628
1794
  }
1629
1795
 
1796
+ .highlighted\:\[\&_svg\]\:text_icon\.default[data-highlighted] svg {
1797
+ color: var(--colors-icon-default);
1798
+ }
1799
+
1630
1800
  .checked\:hover\:transform_translateX\(100\%\):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):is(:hover, [data-hover]) {
1631
1801
  transform: translateX(100%);
1632
1802
  }
@@ -1643,6 +1813,20 @@
1643
1813
  text-align: right;
1644
1814
  }
1645
1815
 
1816
+ .disabled\:hover\:text_text\.subtle:is(:disabled, [disabled], [data-disabled]):is(:hover, [data-hover]) {
1817
+ color: var(--colors-text-subtle);
1818
+ }
1819
+
1820
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:horizontal\:rounded-t_xsmall[data-orientation=horizontal] {
1821
+ border-top-left-radius: var(--radii-xsmall);
1822
+ border-top-right-radius: var(--radii-xsmall);
1823
+ }
1824
+
1825
+ .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:vertical\:rounded-r_xsmall[data-orientation=vertical] {
1826
+ border-top-right-radius: var(--radii-xsmall);
1827
+ border-bottom-right-radius: var(--radii-xsmall);
1828
+ }
1829
+
1646
1830
  .\[\&_\>_li\]\:marker\:content_counters\(list-item\,_\'\.\'\)_\'\._\' > li::marker {
1647
1831
  content: counters(list-item, '.') '. ';
1648
1832
  }
@@ -1683,6 +1867,18 @@
1683
1867
  background-color: transparent;
1684
1868
  }
1685
1869
 
1870
+ .disabled\:hover\:border_stroke\.default:is(:disabled, [disabled], [data-disabled]):is(:hover, [data-hover]) {
1871
+ border-color: var(--colors-stroke-default);
1872
+ }
1873
+
1874
+ .selected\:horizontal\:border-b_transparent:is([aria-selected=true], [data-selected])[data-orientation=horizontal] {
1875
+ border-bottom-color: transparent;
1876
+ }
1877
+
1878
+ .selected\:vertical\:border-r_transparent:is([aria-selected=true], [data-selected])[data-orientation=vertical] {
1879
+ border-right-color: transparent;
1880
+ }
1881
+
1686
1882
  .focusWithin\:hover\:ring-color_stroke\.default:focus-within:is(:hover, [data-hover]) {
1687
1883
  outline-color: var(--colors-stroke-default);
1688
1884
  }
@@ -1699,6 +1895,10 @@
1699
1895
  transform: translateX(0);
1700
1896
  }
1701
1897
 
1898
+ .hover\:focusVisible\:border_stroke\.default:is(:hover, [data-hover]):is(:focus-visible, [data-focus-visible]) {
1899
+ border-color: var(--colors-stroke-default);
1900
+ }
1901
+
1702
1902
  .disabled\:hover\:\[\&_svg\]\:text_stroke\.disabled:is(:disabled, [disabled], [data-disabled]):is(:hover, [data-hover]) svg {
1703
1903
  color: var(--colors-stroke-disabled);
1704
1904
  }
@@ -7,8 +7,7 @@
7
7
  */
8
8
 
9
9
  import { styled } from "@ndla/styled-system/jsx";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- const StyledOrderedList = styled("ol", {
10
+ export const OrderedList = styled("ol", {
12
11
  base: {
13
12
  listStyle: "revert",
14
13
  listStylePosition: "inside",
@@ -54,18 +53,7 @@ const StyledOrderedList = styled("ol", {
54
53
  }
55
54
  }
56
55
  });
57
- export const OrderedList = _ref => {
58
- let {
59
- variant = "numbers",
60
- ...props
61
- } = _ref;
62
- return /*#__PURE__*/_jsx(StyledOrderedList, {
63
- variant: variant,
64
- "data-variant": variant,
65
- ...props
66
- });
67
- };
68
- const StyledUnOrderedList = styled("ul", {
56
+ export const UnOrderedList = styled("ul", {
69
57
  base: {
70
58
  listStyle: "revert",
71
59
  listStylePosition: "inside",
@@ -78,15 +66,7 @@ const StyledUnOrderedList = styled("ul", {
78
66
  }
79
67
  }
80
68
  });
81
- export const UnOrderedList = _ref2 => {
82
- let {
83
- ...props
84
- } = _ref2;
85
- return /*#__PURE__*/_jsx(StyledUnOrderedList, {
86
- ...props
87
- });
88
- };
89
- const StyledDefinitionList = styled("dl", {
69
+ export const DefinitionList = styled("dl", {
90
70
  base: {
91
71
  "& dt": {
92
72
  fontWeight: "bold"
@@ -95,12 +75,4 @@ const StyledDefinitionList = styled("dl", {
95
75
  marginInlineStart: "medium"
96
76
  }
97
77
  }
98
- });
99
- export const DefinitionList = _ref3 => {
100
- let {
101
- ...props
102
- } = _ref3;
103
- return /*#__PURE__*/_jsx(StyledDefinitionList, {
104
- ...props
105
- });
106
- };
78
+ });
package/es/Badge.js CHANGED
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import { cva, cx } from "@ndla/styled-system/css";
9
+ import { ark } from "@ark-ui/react";
10
+ import { cva } from "@ndla/styled-system/css";
10
11
  import { styled } from "@ndla/styled-system/jsx";
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
12
  const badgeRecipe = cva({
13
13
  base: {
14
14
  paddingInline: "xsmall",
@@ -26,7 +26,7 @@ const badgeRecipe = cva({
26
26
  borderColor: "surface.brand.1.strong"
27
27
  },
28
28
  brand2: {
29
- backgroundColor: "surface.brand.2.subtle",
29
+ backgroundColor: "surface.brand.2.moderate",
30
30
  borderColor: "surface.brand.2.strong"
31
31
  },
32
32
  brand3: {
@@ -40,16 +40,4 @@ const badgeRecipe = cva({
40
40
  }
41
41
  }
42
42
  });
43
- export const Badge = _ref => {
44
- let {
45
- colorTheme,
46
- className,
47
- ...rest
48
- } = _ref;
49
- return /*#__PURE__*/_jsx(styled.div, {
50
- className: cx(badgeRecipe({
51
- colorTheme
52
- }), className),
53
- ...rest
54
- });
55
- };
43
+ export const Badge = styled(ark.div, badgeRecipe);
package/es/BlockQuote.js CHANGED
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import { cva, cx } from "@ndla/styled-system/css";
9
+ import { ark } from "@ark-ui/react";
10
+ import { cva } from "@ndla/styled-system/css";
10
11
  import { styled } from "@ndla/styled-system/jsx";
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
12
  const blockQuoteRecipe = cva({
13
13
  base: {
14
14
  borderInlineStart: "4px solid",
@@ -34,16 +34,4 @@ const blockQuoteRecipe = cva({
34
34
  variant: "neutral"
35
35
  }
36
36
  });
37
- export const BlockQuote = _ref => {
38
- let {
39
- className,
40
- variant,
41
- ...rest
42
- } = _ref;
43
- return /*#__PURE__*/_jsx(styled.blockquote, {
44
- className: cx(blockQuoteRecipe({
45
- variant
46
- }), className),
47
- ...rest
48
- });
49
- };
37
+ export const BlockQuote = styled(ark.blockquote, blockQuoteRecipe);