@ndla/primitives 0.0.1 → 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 +62 -14
  2. package/dist/styles.css +230 -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 -32
  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 -31
  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",
@@ -124,6 +124,7 @@
124
124
  "paddingBlock]___[value:3xsmall",
125
125
  "lineHeight]___[value:1",
126
126
  "minHeight]___[value:unset",
127
+ "height]___[value:fit-content",
127
128
  "marginInline]___[value:0]___[cond:& svg",
128
129
  "marginBlock]___[value:0]___[cond:& svg",
129
130
  "width]___[value:medium]___[cond:& svg",
@@ -153,16 +154,16 @@
153
154
  "borderColor]___[value:stroke.error]___[cond:_invalid<___>_checked",
154
155
  "backgroundColor]___[value:surface.default]___[cond:_invalid<___>_checked",
155
156
  "position]___[value:fixed",
156
- "left]___[value:0",
157
- "top]___[value:0",
158
- "width]___[value:100vw",
159
- "height]___[value:100dvh",
160
- "zIndex]___[value:modal",
161
157
  "height]___[value:100vh",
158
+ "width]___[value:100vw",
162
159
  "zIndex]___[value:overlay",
160
+ "left]___[value:0",
161
+ "top]___[value:0",
163
162
  "background]___[value:rgba(1, 1, 1, 0.3)",
164
163
  "animation]___[value:backdrop-in]___[cond:_open",
165
164
  "animation]___[value:backdrop-out]___[cond:_closed",
165
+ "height]___[value:100dvh",
166
+ "zIndex]___[value:modal",
166
167
  "--margin]___[value:token(sizes.medium)",
167
168
  "position]___[value:relative",
168
169
  "boxShadow]___[value:xlarge",
@@ -223,6 +224,7 @@
223
224
  "boxShadow]___[value:4px 4px 0px 0px var(--shadow-color)",
224
225
  "backgroundColor]___[value:surface.default",
225
226
  "boxShadowColor]___[value:surface.brand.1.strong",
227
+ "backgroundColor]___[value:surface.brand.2.subtle",
226
228
  "boxShadowColor]___[value:surface.brand.2.strong",
227
229
  "display]___[value:inline-block",
228
230
  "fill]___[value:currentcolor",
@@ -265,6 +267,14 @@
265
267
  "border]___[value:none",
266
268
  "padding]___[value:0",
267
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",
268
278
  "background]___[value:surface.hover]___[cond:_hover",
269
279
  "background]___[value:surface.hover]___[cond:_highlighted",
270
280
  "background]___[value:surface.active]___[cond:_active",
@@ -276,14 +286,6 @@
276
286
  "color]___[value:icon.default]___[cond:_highlighted<___>& svg",
277
287
  "background]___[value:surface.errorSubtle.hover]___[cond:_highlighted",
278
288
  "background]___[value:surface.errorSubtle.active]___[cond:_active",
279
- "paddingBlock]___[value:4xsmall",
280
- "transitionProperty]___[value:background, color",
281
- "textDecoration]___[value:underline]___[cond:_hover",
282
- "textDecoration]___[value:underline]___[cond:_highlighted",
283
- "color]___[value:stroke.disabled]___[cond:_disabled<___>& svg",
284
- "textDecoration]___[value:none]___[cond:_disabled<___>_hover",
285
- "background]___[value:surface.default]___[cond:_disabled<___>_hover",
286
- "color]___[value:stroke.disabled]___[cond:_disabled<___>_hover<___>& svg",
287
289
  "minWidth]___[value:surface.xxsmall",
288
290
  "padding]___[value:3xsmall",
289
291
  "boxShadow]___[value:xsmall",
@@ -401,7 +403,53 @@
401
403
  "textAlign]___[value:center]___[cond:& td, & th<___>&[data-align='center']",
402
404
  "textAlign]___[value:left]___[cond:& td, & th<___>&[data-align='left']",
403
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",
404
451
  "textStyle]___[value:body.medium",
452
+ "textStyle]___[value:heading.medium",
405
453
  "boxShadow]___[value:medium",
406
454
  "minWidth]___[value:20rem",
407
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;
@@ -251,6 +263,10 @@
251
263
  min-height: unset;
252
264
  }
253
265
 
266
+ .h_fit-content {
267
+ height: fit-content;
268
+ }
269
+
254
270
  .select_none {
255
271
  -webkit-user-select: none;
256
272
  user-select: none;
@@ -276,22 +292,14 @@
276
292
  position: fixed;
277
293
  }
278
294
 
279
- .w_100vw {
280
- width: 100vw;
281
- }
282
-
283
- .h_100dvh {
284
- height: 100dvh;
285
- }
286
-
287
- .z_modal {
288
- z-index: var(--z-index-modal);
289
- }
290
-
291
295
  .h_100vh {
292
296
  height: 100vh;
293
297
  }
294
298
 
299
+ .w_100vw {
300
+ width: 100vw;
301
+ }
302
+
295
303
  .z_overlay {
296
304
  z-index: var(--z-index-overlay);
297
305
  }
@@ -300,6 +308,14 @@
300
308
  background: rgba(1, 1, 1, 0.3);
301
309
  }
302
310
 
311
+ .h_100dvh {
312
+ height: 100dvh;
313
+ }
314
+
315
+ .z_modal {
316
+ z-index: var(--z-index-modal);
317
+ }
318
+
303
319
  .\--margin_token\(sizes\.medium\) {
304
320
  --margin: var(--sizes-medium);
305
321
  }
@@ -708,6 +724,26 @@
708
724
  table-layout: fixed;
709
725
  }
710
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
+
711
747
  .shadow_medium {
712
748
  box-shadow: var(--shadows-medium);
713
749
  }
@@ -830,8 +866,8 @@
830
866
  border-color: var(--colors-surface-brand-1-strong);
831
867
  }
832
868
 
833
- .bg_surface\.brand\.2\.subtle {
834
- background-color: var(--colors-surface-brand-2-subtle);
869
+ .bg_surface\.brand\.2\.moderate {
870
+ background-color: var(--colors-surface-brand-2-moderate);
835
871
  }
836
872
 
837
873
  .border_surface\.brand\.2\.strong {
@@ -892,6 +928,10 @@
892
928
  background-color: var(--colors-surface-default);
893
929
  }
894
930
 
931
+ .bg_surface\.brand\.2\.subtle {
932
+ background-color: var(--colors-surface-brand-2-subtle);
933
+ }
934
+
895
935
  .leading_1em {
896
936
  line-height: 1em;
897
937
  }
@@ -997,6 +1037,23 @@
997
1037
  overflow-x: auto;
998
1038
  }
999
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
+
1000
1057
  .duration_slow {
1001
1058
  --transition-duration: var(--durations-slow);
1002
1059
  transition-duration: var(--durations-slow);
@@ -1152,6 +1209,10 @@
1152
1209
  color: var(--colors-text-subtle);
1153
1210
  }
1154
1211
 
1212
+ .highlighted\:text-decor_underline[data-highlighted] {
1213
+ text-decoration: underline;
1214
+ }
1215
+
1155
1216
  .highlighted\:bg_surface\.hover[data-highlighted] {
1156
1217
  background: var(--colors-surface-hover);
1157
1218
  }
@@ -1168,10 +1229,6 @@
1168
1229
  background: var(--colors-surface-error-subtle-hover);
1169
1230
  }
1170
1231
 
1171
- .highlighted\:text-decor_underline[data-highlighted] {
1172
- text-decoration: underline;
1173
- }
1174
-
1175
1232
  .open\:animation_fade-shift-in_0\.25s_ease-out:is([open], [data-open], [data-state="open"]) {
1176
1233
  animation: fade-shift-in 0.25s ease-out;
1177
1234
  }
@@ -1288,6 +1345,59 @@
1288
1345
  padding-block: var(--spacing-3xsmall);
1289
1346
  }
1290
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
+
1291
1401
  .closed\:transition-prop_background\,_border-color\,_border\,_border-radius:is([closed], [data-closed], [data-state="closed"]) {
1292
1402
  --transition-prop: background, border-color, border, border-radius;
1293
1403
  transition-property: background, border-color, border, border-radius;
@@ -1361,6 +1471,42 @@
1361
1471
  border-color: var(--colors-surface-brand-1-subtle);
1362
1472
  }
1363
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
+
1364
1510
  .focusWithin\:ring-offset_-1px:focus-within {
1365
1511
  outline-offset: -1px;
1366
1512
  }
@@ -1443,6 +1589,26 @@
1443
1589
  outline-offset: 0px;
1444
1590
  }
1445
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
+
1446
1612
  .focus\:ring-color_stroke\.default:is(:focus, [data-focus]) {
1447
1613
  outline-color: var(--colors-stroke-default);
1448
1614
  }
@@ -1459,6 +1625,10 @@
1459
1625
  outline-color: var(--colors-surface-action);
1460
1626
  }
1461
1627
 
1628
+ .focusVisible\:ring-color_stroke\.default:is(:focus-visible, [data-focus-visible]) {
1629
+ outline-color: var(--colors-stroke-default);
1630
+ }
1631
+
1462
1632
  .hover\:bg_surface\.actionSubtle\.hover:is(:hover, [data-hover]) {
1463
1633
  background: var(--colors-surface-action-subtle-hover);
1464
1634
  }
@@ -1511,6 +1681,10 @@
1511
1681
  --shadow-color: var(--colors-surface-action-subtle-hover-strong);
1512
1682
  }
1513
1683
 
1684
+ .hover\:text-decor_underline:is(:hover, [data-hover]) {
1685
+ text-decoration: underline;
1686
+ }
1687
+
1514
1688
  .hover\:bg_surface\.hover:is(:hover, [data-hover]) {
1515
1689
  background: var(--colors-surface-hover);
1516
1690
  }
@@ -1523,10 +1697,6 @@
1523
1697
  background: var(--colors-surface-error-subtle-hover);
1524
1698
  }
1525
1699
 
1526
- .hover\:text-decor_underline:is(:hover, [data-hover]) {
1527
- text-decoration: underline;
1528
- }
1529
-
1530
1700
  .hover\:transform_translateX\(20\%\):is(:hover, [data-hover]) {
1531
1701
  transform: translateX(20%);
1532
1702
  }
@@ -1535,6 +1705,10 @@
1535
1705
  outline-color: var(--colors-stroke-hover);
1536
1706
  }
1537
1707
 
1708
+ .hover\:border_stroke\.hover:is(:hover, [data-hover]) {
1709
+ border-color: var(--colors-stroke-hover);
1710
+ }
1711
+
1538
1712
  .active\:text_text\.onAction:is(:active, [data-active]) {
1539
1713
  color: var(--colors-text-on-action);
1540
1714
  }
@@ -1607,10 +1781,6 @@
1607
1781
  margin-block-end: calc(var(--spacing-xxsmall) * -1);
1608
1782
  }
1609
1783
 
1610
- .highlighted\:\[\&_svg\]\:text_icon\.default[data-highlighted] svg {
1611
- color: var(--colors-icon-default);
1612
- }
1613
-
1614
1784
  .disabled\:\[\&_svg\]\:text_stroke\.disabled:is(:disabled, [disabled], [data-disabled]) svg {
1615
1785
  color: var(--colors-stroke-disabled);
1616
1786
  }
@@ -1623,6 +1793,10 @@
1623
1793
  background: var(--colors-surface-default);
1624
1794
  }
1625
1795
 
1796
+ .highlighted\:\[\&_svg\]\:text_icon\.default[data-highlighted] svg {
1797
+ color: var(--colors-icon-default);
1798
+ }
1799
+
1626
1800
  .checked\:hover\:transform_translateX\(100\%\):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):is(:hover, [data-hover]) {
1627
1801
  transform: translateX(100%);
1628
1802
  }
@@ -1639,6 +1813,20 @@
1639
1813
  text-align: right;
1640
1814
  }
1641
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
+
1642
1830
  .\[\&_\>_li\]\:marker\:content_counters\(list-item\,_\'\.\'\)_\'\._\' > li::marker {
1643
1831
  content: counters(list-item, '.') '. ';
1644
1832
  }
@@ -1679,6 +1867,18 @@
1679
1867
  background-color: transparent;
1680
1868
  }
1681
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
+
1682
1882
  .focusWithin\:hover\:ring-color_stroke\.default:focus-within:is(:hover, [data-hover]) {
1683
1883
  outline-color: var(--colors-stroke-default);
1684
1884
  }
@@ -1695,6 +1895,10 @@
1695
1895
  transform: translateX(0);
1696
1896
  }
1697
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
+
1698
1902
  .disabled\:hover\:\[\&_svg\]\:text_stroke\.disabled:is(:disabled, [disabled], [data-disabled]):is(:hover, [data-hover]) svg {
1699
1903
  color: var(--colors-stroke-disabled);
1700
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);