@ndla/ui 55.0.13-alpha.0 → 55.0.14-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/panda.buildinfo.json +120 -1
  2. package/dist/styles.css +511 -0
  3. package/es/Article/ArticleParagraph.js +11 -13
  4. package/es/CampaignBlock/CampaignBlock.js +103 -68
  5. package/es/Concept/Concept.js +69 -0
  6. package/es/ContentTypeBadge/ContentTypeBadgeNew.js +48 -0
  7. package/es/Embed/AudioEmbed.js +1 -2
  8. package/es/Embed/BrightcoveEmbed.js +13 -24
  9. package/es/Embed/ConceptEmbed.js +57 -301
  10. package/es/Embed/ConceptListEmbed.js +18 -24
  11. package/es/Embed/ContentLinkEmbed.js +10 -10
  12. package/es/Embed/CopyrightEmbed.js +4 -21
  13. package/es/Embed/ExternalEmbed.js +10 -18
  14. package/es/Embed/FootnoteEmbed.js +11 -8
  15. package/es/Embed/GlossEmbed.js +68 -0
  16. package/es/Embed/H5pEmbed.js +19 -19
  17. package/es/Embed/IframeEmbed.js +9 -6
  18. package/es/Embed/InlineTriggerButton.js +70 -0
  19. package/es/Embed/UnknownEmbed.js +9 -9
  20. package/es/Embed/UuDisclaimerEmbed.js +14 -25
  21. package/es/Embed/index.js +1 -3
  22. package/es/ErrorMessage/ErrorMessage.js +41 -22
  23. package/es/ErrorMessage/ErrorResourceAccessDenied.js +8 -6
  24. package/es/FactBox/FactBox.js +118 -47
  25. package/es/FileList/PdfFile.js +23 -5
  26. package/es/Gloss/Gloss.js +116 -86
  27. package/es/Gloss/GlossExample.js +49 -51
  28. package/es/LinkBlock/LinkBlock.js +61 -33
  29. package/es/LinkBlock/LinkBlockSection.js +9 -6
  30. package/es/Logo/Logo.js +1 -30
  31. package/es/RelatedArticleList/RelatedArticleList.js +70 -87
  32. package/es/ResourceBox/ResourceBox.js +65 -37
  33. package/es/TagSelector/TagSelector.js +124 -131
  34. package/es/i18n/index.js +2 -1
  35. package/es/i18n/useComponentTranslations.js +83 -0
  36. package/es/index.js +4 -11
  37. package/es/locale/messages-en.js +30 -4
  38. package/es/locale/messages-nb.js +30 -4
  39. package/es/locale/messages-nn.js +30 -4
  40. package/es/locale/messages-se.js +30 -4
  41. package/es/locale/messages-sma.js +30 -4
  42. package/es/model/ContentType.js +3 -0
  43. package/es/styles.css +511 -0
  44. package/lib/Article/ArticleParagraph.js +12 -14
  45. package/lib/CampaignBlock/CampaignBlock.d.ts +2 -2
  46. package/lib/CampaignBlock/CampaignBlock.js +106 -68
  47. package/lib/Concept/Concept.d.ts +18 -0
  48. package/lib/Concept/Concept.js +75 -0
  49. package/lib/ContentTypeBadge/ContentTypeBadgeNew.d.ts +17 -0
  50. package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +56 -0
  51. package/lib/Embed/AudioEmbed.js +2 -3
  52. package/lib/Embed/BrightcoveEmbed.d.ts +1 -2
  53. package/lib/Embed/BrightcoveEmbed.js +16 -25
  54. package/lib/Embed/ConceptEmbed.d.ts +15 -21
  55. package/lib/Embed/ConceptEmbed.js +58 -301
  56. package/lib/Embed/ConceptListEmbed.js +21 -26
  57. package/lib/Embed/ContentLinkEmbed.js +10 -11
  58. package/lib/Embed/CopyrightEmbed.js +6 -22
  59. package/lib/Embed/ExternalEmbed.d.ts +1 -2
  60. package/lib/Embed/ExternalEmbed.js +13 -19
  61. package/lib/Embed/FootnoteEmbed.js +11 -9
  62. package/lib/Embed/GlossEmbed.d.ts +13 -0
  63. package/lib/Embed/GlossEmbed.js +76 -0
  64. package/lib/Embed/H5pEmbed.d.ts +1 -2
  65. package/lib/Embed/H5pEmbed.js +21 -19
  66. package/lib/Embed/IframeEmbed.d.ts +1 -2
  67. package/lib/Embed/IframeEmbed.js +11 -8
  68. package/lib/Embed/InlineTriggerButton.d.ts +11 -0
  69. package/lib/Embed/InlineTriggerButton.js +76 -0
  70. package/lib/Embed/UnknownEmbed.js +9 -10
  71. package/lib/Embed/UuDisclaimerEmbed.js +16 -26
  72. package/lib/Embed/index.d.ts +2 -3
  73. package/lib/Embed/index.js +2 -9
  74. package/lib/ErrorMessage/ErrorMessage.js +40 -23
  75. package/lib/ErrorMessage/ErrorResourceAccessDenied.js +7 -6
  76. package/lib/FactBox/FactBox.d.ts +0 -1
  77. package/lib/FactBox/FactBox.js +119 -46
  78. package/lib/FileList/PdfFile.js +23 -5
  79. package/lib/Gloss/Gloss.d.ts +10 -2
  80. package/lib/Gloss/Gloss.js +116 -85
  81. package/lib/Gloss/GlossExample.d.ts +3 -5
  82. package/lib/Gloss/GlossExample.js +49 -52
  83. package/lib/LinkBlock/LinkBlock.js +62 -34
  84. package/lib/LinkBlock/LinkBlockSection.js +9 -7
  85. package/lib/Logo/Logo.d.ts +1 -3
  86. package/lib/Logo/Logo.js +2 -30
  87. package/lib/RelatedArticleList/RelatedArticleList.d.ts +4 -4
  88. package/lib/RelatedArticleList/RelatedArticleList.js +74 -90
  89. package/lib/ResourceBox/ResourceBox.js +64 -37
  90. package/lib/TagSelector/TagSelector.d.ts +27 -12
  91. package/lib/TagSelector/TagSelector.js +126 -131
  92. package/lib/i18n/index.d.ts +1 -0
  93. package/lib/i18n/index.js +20 -1
  94. package/lib/i18n/useComponentTranslations.d.ts +14 -0
  95. package/lib/i18n/useComponentTranslations.js +93 -0
  96. package/lib/index.d.ts +5 -14
  97. package/lib/index.js +70 -89
  98. package/lib/locale/messages-en.d.ts +26 -0
  99. package/lib/locale/messages-en.js +30 -4
  100. package/lib/locale/messages-nb.d.ts +26 -0
  101. package/lib/locale/messages-nb.js +30 -4
  102. package/lib/locale/messages-nn.d.ts +26 -0
  103. package/lib/locale/messages-nn.js +30 -4
  104. package/lib/locale/messages-se.d.ts +26 -0
  105. package/lib/locale/messages-se.js +30 -4
  106. package/lib/locale/messages-sma.d.ts +26 -0
  107. package/lib/locale/messages-sma.js +30 -4
  108. package/lib/model/ContentType.d.ts +3 -0
  109. package/lib/model/ContentType.js +4 -1
  110. package/lib/styles.css +511 -0
  111. package/package.json +11 -13
  112. package/src/Article/ArticleParagraph.tsx +11 -9
  113. package/src/CampaignBlock/CampaignBlock.tsx +92 -55
  114. package/src/Concept/Concept.stories.tsx +142 -0
  115. package/src/Concept/Concept.tsx +73 -0
  116. package/src/ContentTypeBadge/ContentTypeBadgeNew.stories.tsx +70 -0
  117. package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +69 -0
  118. package/src/Embed/AudioEmbed.tsx +2 -2
  119. package/src/Embed/BrightcoveEmbed.stories.tsx +0 -3
  120. package/src/Embed/BrightcoveEmbed.tsx +17 -19
  121. package/src/Embed/ConceptEmbed.stories.tsx +1 -105
  122. package/src/Embed/ConceptEmbed.tsx +60 -385
  123. package/src/Embed/ConceptListEmbed.tsx +20 -19
  124. package/src/Embed/ContentLinkEmbed.tsx +8 -10
  125. package/src/Embed/CopyrightEmbed.tsx +1 -11
  126. package/src/Embed/ExternalEmbed.tsx +14 -17
  127. package/src/Embed/FootnoteEmbed.stories.tsx +2 -5
  128. package/src/Embed/FootnoteEmbed.tsx +13 -16
  129. package/src/Embed/GlossEmbed.stories.tsx +140 -0
  130. package/src/Embed/GlossEmbed.tsx +64 -0
  131. package/src/Embed/H5pEmbed.tsx +22 -16
  132. package/src/Embed/IframeEmbed.tsx +12 -6
  133. package/src/Embed/InlineTriggerButton.tsx +72 -0
  134. package/src/Embed/UnknownEmbed.tsx +6 -7
  135. package/src/Embed/UuDisclaimerEmbed.stories.tsx +4 -4
  136. package/src/Embed/UuDisclaimerEmbed.tsx +17 -25
  137. package/src/Embed/index.ts +2 -3
  138. package/src/ErrorMessage/ErrorMessage.tsx +40 -29
  139. package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +8 -6
  140. package/src/FactBox/FactBox.tsx +115 -115
  141. package/src/FactBox/Factbox.stories.tsx +43 -27
  142. package/src/FileList/FileList.stories.tsx +6 -1
  143. package/src/FileList/PdfFile.tsx +22 -5
  144. package/src/Gloss/Gloss.stories.tsx +107 -1
  145. package/src/Gloss/Gloss.tsx +143 -156
  146. package/src/Gloss/GlossExample.tsx +51 -77
  147. package/src/LinkBlock/LinkBlock.stories.tsx +8 -10
  148. package/src/LinkBlock/LinkBlock.tsx +54 -59
  149. package/src/LinkBlock/LinkBlockSection.tsx +9 -12
  150. package/src/Logo/Logo.stories.tsx +0 -1
  151. package/src/Logo/Logo.tsx +2 -30
  152. package/src/RelatedArticleList/RelatedArticleList.tsx +69 -88
  153. package/src/ResourceBox/ResourceBox.tsx +63 -59
  154. package/src/TagSelector/TagSelector.stories.tsx +92 -68
  155. package/src/TagSelector/TagSelector.tsx +161 -126
  156. package/src/i18n/index.ts +5 -0
  157. package/src/i18n/useComponentTranslations.ts +72 -0
  158. package/src/index.ts +23 -18
  159. package/src/locale/messages-en.ts +28 -2
  160. package/src/locale/messages-nb.ts +28 -2
  161. package/src/locale/messages-nn.ts +28 -2
  162. package/src/locale/messages-se.ts +28 -2
  163. package/src/locale/messages-sma.ts +28 -2
  164. package/src/model/ContentType.ts +3 -0
  165. package/es/DefinitionList/DefinitionDescription.js +0 -28
  166. package/es/DefinitionList/DefinitionTerm.js +0 -28
  167. package/es/DefinitionList/index.js +0 -10
  168. package/es/Embed/conceptComponents.js +0 -155
  169. package/es/ExpandableBox/ExpandableBox.js +0 -29
  170. package/es/ExpandableBox/index.js +0 -9
  171. package/es/Figure/Figure.js +0 -73
  172. package/es/Figure/index.js +0 -9
  173. package/es/FramedContent/FramedContent.js +0 -28
  174. package/es/FramedContent/index.js +0 -10
  175. package/es/Image/Image.js +0 -99
  176. package/es/Image/ImageLink.js +0 -39
  177. package/es/Image/index.js +0 -12
  178. package/es/LetterFilter/LetterFilter.js +0 -54
  179. package/es/LetterFilter/alphabet.js +0 -9
  180. package/es/LetterFilter/index.js +0 -10
  181. package/es/Notion/Notion.js +0 -76
  182. package/es/Notion/NotionImage.js +0 -46
  183. package/es/Notion/index.js +0 -9
  184. package/es/Table/Table.js +0 -141
  185. package/es/Table/index.js +0 -11
  186. package/es/TagSelector/Control.js +0 -28
  187. package/es/TagSelector/DropdownIndicator.js +0 -60
  188. package/es/TagSelector/Input.js +0 -22
  189. package/es/TagSelector/Menu.js +0 -27
  190. package/es/TagSelector/MenuList.js +0 -28
  191. package/es/TagSelector/Option.js +0 -60
  192. package/es/TagSelector/SelectContainer.js +0 -27
  193. package/es/TagSelector/ValueButton.js +0 -53
  194. package/es/TagSelector/ariaMessages.js +0 -94
  195. package/es/TagSelector/index.js +0 -10
  196. package/es/TagSelector/types.js +0 -1
  197. package/lib/DefinitionList/DefinitionDescription.d.ts +0 -10
  198. package/lib/DefinitionList/DefinitionDescription.js +0 -35
  199. package/lib/DefinitionList/DefinitionTerm.d.ts +0 -10
  200. package/lib/DefinitionList/DefinitionTerm.js +0 -35
  201. package/lib/DefinitionList/index.d.ts +0 -9
  202. package/lib/DefinitionList/index.js +0 -20
  203. package/lib/Embed/conceptComponents.d.ts +0 -40
  204. package/lib/Embed/conceptComponents.js +0 -163
  205. package/lib/ExpandableBox/ExpandableBox.d.ts +0 -15
  206. package/lib/ExpandableBox/ExpandableBox.js +0 -37
  207. package/lib/ExpandableBox/index.d.ts +0 -8
  208. package/lib/ExpandableBox/index.js +0 -18
  209. package/lib/Figure/Figure.d.ts +0 -16
  210. package/lib/Figure/Figure.js +0 -81
  211. package/lib/Figure/index.d.ts +0 -9
  212. package/lib/Figure/index.js +0 -13
  213. package/lib/FramedContent/FramedContent.d.ts +0 -12
  214. package/lib/FramedContent/FramedContent.js +0 -35
  215. package/lib/FramedContent/index.d.ts +0 -9
  216. package/lib/FramedContent/index.js +0 -16
  217. package/lib/Image/Image.d.ts +0 -38
  218. package/lib/Image/Image.js +0 -105
  219. package/lib/Image/ImageLink.d.ts +0 -18
  220. package/lib/Image/ImageLink.js +0 -44
  221. package/lib/Image/index.d.ts +0 -12
  222. package/lib/Image/index.js +0 -30
  223. package/lib/LetterFilter/LetterFilter.d.ts +0 -14
  224. package/lib/LetterFilter/LetterFilter.js +0 -61
  225. package/lib/LetterFilter/alphabet.d.ts +0 -8
  226. package/lib/LetterFilter/alphabet.js +0 -15
  227. package/lib/LetterFilter/index.d.ts +0 -9
  228. package/lib/LetterFilter/index.js +0 -16
  229. package/lib/Notion/Notion.d.ts +0 -20
  230. package/lib/Notion/Notion.js +0 -82
  231. package/lib/Notion/NotionImage.d.ts +0 -13
  232. package/lib/Notion/NotionImage.js +0 -54
  233. package/lib/Notion/index.d.ts +0 -8
  234. package/lib/Notion/index.js +0 -13
  235. package/lib/Table/Table.d.ts +0 -19
  236. package/lib/Table/Table.js +0 -145
  237. package/lib/Table/index.d.ts +0 -10
  238. package/lib/Table/index.js +0 -23
  239. package/lib/TagSelector/Control.d.ts +0 -11
  240. package/lib/TagSelector/Control.js +0 -35
  241. package/lib/TagSelector/DropdownIndicator.d.ts +0 -11
  242. package/lib/TagSelector/DropdownIndicator.js +0 -64
  243. package/lib/TagSelector/Input.d.ts +0 -12
  244. package/lib/TagSelector/Input.js +0 -29
  245. package/lib/TagSelector/Menu.d.ts +0 -12
  246. package/lib/TagSelector/Menu.js +0 -34
  247. package/lib/TagSelector/MenuList.d.ts +0 -16
  248. package/lib/TagSelector/MenuList.js +0 -35
  249. package/lib/TagSelector/Option.d.ts +0 -12
  250. package/lib/TagSelector/Option.js +0 -67
  251. package/lib/TagSelector/SelectContainer.d.ts +0 -11
  252. package/lib/TagSelector/SelectContainer.js +0 -34
  253. package/lib/TagSelector/ValueButton.d.ts +0 -20
  254. package/lib/TagSelector/ValueButton.js +0 -60
  255. package/lib/TagSelector/ariaMessages.d.ts +0 -16
  256. package/lib/TagSelector/ariaMessages.js +0 -101
  257. package/lib/TagSelector/index.d.ts +0 -11
  258. package/lib/TagSelector/index.js +0 -13
  259. package/lib/TagSelector/types.d.ts +0 -11
  260. package/lib/TagSelector/types.js +0 -5
  261. package/src/DefinitionList/DefinitionDescription.tsx +0 -26
  262. package/src/DefinitionList/DefinitionTerm.tsx +0 -26
  263. package/src/DefinitionList/index.tsx +0 -10
  264. package/src/Embed/conceptComponents.tsx +0 -293
  265. package/src/ExpandableBox/ExpandableBox.stories.tsx +0 -41
  266. package/src/ExpandableBox/ExpandableBox.tsx +0 -23
  267. package/src/ExpandableBox/index.ts +0 -9
  268. package/src/Figure/Figure.tsx +0 -167
  269. package/src/Figure/index.ts +0 -11
  270. package/src/FramedContent/FramedContent.stories.tsx +0 -152
  271. package/src/FramedContent/FramedContent.tsx +0 -26
  272. package/src/FramedContent/index.ts +0 -10
  273. package/src/Image/Image.stories.tsx +0 -61
  274. package/src/Image/Image.tsx +0 -147
  275. package/src/Image/ImageLink.tsx +0 -37
  276. package/src/Image/index.ts +0 -14
  277. package/src/LetterFilter/LetterFilter.stories.tsx +0 -29
  278. package/src/LetterFilter/LetterFilter.tsx +0 -78
  279. package/src/LetterFilter/alphabet.ts +0 -39
  280. package/src/LetterFilter/index.ts +0 -11
  281. package/src/Notion/Notion.tsx +0 -96
  282. package/src/Notion/NotionImage.tsx +0 -64
  283. package/src/Notion/index.ts +0 -9
  284. package/src/Table/Table.stories.tsx +0 -738
  285. package/src/Table/Table.tsx +0 -284
  286. package/src/Table/index.ts +0 -12
  287. package/src/TagSelector/Control.tsx +0 -34
  288. package/src/TagSelector/DropdownIndicator.tsx +0 -55
  289. package/src/TagSelector/Input.tsx +0 -31
  290. package/src/TagSelector/Menu.tsx +0 -38
  291. package/src/TagSelector/MenuList.tsx +0 -30
  292. package/src/TagSelector/Option.tsx +0 -58
  293. package/src/TagSelector/SelectContainer.tsx +0 -31
  294. package/src/TagSelector/ValueButton.tsx +0 -47
  295. package/src/TagSelector/ariaMessages.ts +0 -96
  296. package/src/TagSelector/index.ts +0 -14
  297. package/src/TagSelector/types.ts +0 -12
package/lib/styles.css CHANGED
@@ -35,6 +35,30 @@
35
35
  font-size: calc(var(--font-sizes-medium) * 1.11);
36
36
  line-height: calc(var(--line-heights-medium) * 1.11);
37
37
  }
38
+
39
+ .textStyle_body\.medium {
40
+ font-family: var(--fonts-sans);
41
+ font-weight: var(--font-weights-normal);
42
+ font-size: var(--font-sizes-small);
43
+ line-height: var(--line-heights-small);
44
+ }
45
+
46
+ .textStyle_body\.medium:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
47
+ font-size: calc(var(--font-sizes-small) * 1.11);
48
+ line-height: calc(var(--line-heights-small) * 1.11);
49
+ }
50
+
51
+ .\[\&_a\]\:textStyle_label\.xsmall a {
52
+ font-family: var(--fonts-sans);
53
+ font-weight: var(--font-weights-normal);
54
+ font-size: var(--font-sizes-xxsmall);
55
+ line-height: var(--line-heights-xxsmall);
56
+ }
57
+
58
+ .\[\&_a\]\:textStyle_label\.xsmall a:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
59
+ font-size: calc(var(--font-sizes-xxsmall) * 1.11);
60
+ line-height: calc(var(--line-heights-xxsmall) * 1.11);
61
+ }
38
62
  }
39
63
 
40
64
  .bd_1px_solid {
@@ -230,6 +254,26 @@
230
254
  max-width: 8xl;
231
255
  }
232
256
 
257
+ .max-w_surface\.xsmall {
258
+ max-width: var(--sizes-surface-xsmall);
259
+ }
260
+
261
+ .gap_xxsmall {
262
+ gap: var(--spacing-xxsmall);
263
+ }
264
+
265
+ .td_underline {
266
+ text-decoration: underline;
267
+ }
268
+
269
+ .h_215px {
270
+ height: 215px;
271
+ }
272
+
273
+ .c_inherit {
274
+ color: inherit;
275
+ }
276
+
233
277
  .bd-l_4px_solid {
234
278
  border-left: 4px solid;
235
279
  }
@@ -246,6 +290,26 @@
246
290
  white-space: pre;
247
291
  }
248
292
 
293
+ .d_inline {
294
+ display: inline;
295
+ }
296
+
297
+ .ms_xsmall {
298
+ margin-inline-start: var(--spacing-xsmall);
299
+ }
300
+
301
+ .h_auto {
302
+ height: auto;
303
+ }
304
+
305
+ .w_surface\.xlarge {
306
+ width: var(--sizes-surface-xlarge);
307
+ }
308
+
309
+ .c_text\.error {
310
+ color: var(--colors-text-error);
311
+ }
312
+
249
313
  .h_surface\.xsmall {
250
314
  height: var(--sizes-surface-xsmall);
251
315
  }
@@ -295,6 +359,82 @@
295
359
  border-radius: var(--radii-large);
296
360
  }
297
361
 
362
+ .ov_visible {
363
+ overflow: visible;
364
+ }
365
+
366
+ .bd-b_1px_solid {
367
+ border-bottom: 1px solid;
368
+ }
369
+
370
+ .py_4xsmall {
371
+ padding-block: var(--spacing-4xsmall);
372
+ }
373
+
374
+ .px_4xsmall {
375
+ padding-inline: var(--spacing-4xsmall);
376
+ }
377
+
378
+ .ta_center {
379
+ text-align: center;
380
+ }
381
+
382
+ .my_xxlarge {
383
+ margin-block: var(--spacing-xxlarge);
384
+ }
385
+
386
+ .p_medium {
387
+ padding: var(--spacing-medium);
388
+ }
389
+
390
+ .max-h_surface\.xxsmall {
391
+ max-height: var(--sizes-surface-xxsmall);
392
+ }
393
+
394
+ .gap_small {
395
+ gap: var(--spacing-small);
396
+ }
397
+
398
+ .px_0 {
399
+ padding-inline: 0;
400
+ }
401
+
402
+ .mbs_3xsmall {
403
+ margin-block-start: var(--spacing-3xsmall);
404
+ }
405
+
406
+ .py_small {
407
+ padding-block: var(--spacing-small);
408
+ }
409
+
410
+ .bd-t_1px_solid {
411
+ border-top: 1px solid;
412
+ }
413
+
414
+ .bg_surface\.default {
415
+ background: var(--colors-surface-default);
416
+ }
417
+
418
+ .c_icon\.strong {
419
+ color: var(--colors-icon-strong);
420
+ }
421
+
422
+ .li-s_none {
423
+ list-style: none;
424
+ }
425
+
426
+ .d_grid {
427
+ display: grid;
428
+ }
429
+
430
+ .mbs_xsmall {
431
+ margin-block-start: var(--spacing-xsmall);
432
+ }
433
+
434
+ .asp_1\/1 {
435
+ aspect-ratio: 1/1;
436
+ }
437
+
298
438
  .bd-c_stroke\.default {
299
439
  border-color: var(--colors-stroke-default);
300
440
  }
@@ -342,6 +482,10 @@
342
482
  transition-timing-function: var(--easings-default);
343
483
  }
344
484
 
485
+ .as_center {
486
+ align-self: center;
487
+ }
488
+
345
489
  .bd-l-c_stroke\.default {
346
490
  border-left-color: var(--colors-stroke-default);
347
491
  }
@@ -413,6 +557,65 @@
413
557
  background-color: var(--colors-surface-action);
414
558
  }
415
559
 
560
+ .border-style_dashed {
561
+ border-style: dashed;
562
+ }
563
+
564
+ .bd-c_stroke\.hover {
565
+ border-color: var(--colors-stroke-hover);
566
+ }
567
+
568
+ .mb_medium {
569
+ margin-bottom: var(--spacing-medium);
570
+ }
571
+
572
+ .mt_3xsmall {
573
+ margin-top: var(--spacing-3xsmall);
574
+ }
575
+
576
+ .ml_3xsmall {
577
+ margin-left: var(--spacing-3xsmall);
578
+ }
579
+
580
+ .trs-prop_max-height {
581
+ --transition-prop: max-height;
582
+ transition-property: max-height;
583
+ }
584
+
585
+ .trs-dur_slow {
586
+ --transition-duration: var(--durations-slow);
587
+ transition-duration: var(--durations-slow);
588
+ }
589
+
590
+ .trs-tmf_ease-in-out {
591
+ --transition-easing: ease-in-out;
592
+ transition-timing-function: ease-in-out;
593
+ }
594
+
595
+ .bottom_-medium {
596
+ bottom: calc(var(--spacing-medium) * -1);
597
+ }
598
+
599
+ .jc_space-between {
600
+ justify-content: space-between;
601
+ }
602
+
603
+ .font-style_italic {
604
+ font-style: italic;
605
+ }
606
+
607
+ .grid-tc_repeat\(2\,_1fr\) {
608
+ grid-template-columns: repeat(2, 1fr);
609
+ }
610
+
611
+ .\[\&\[data-align\=\"center\"\]\]\:ta_center[data-align="center"] {
612
+ text-align: center;
613
+ }
614
+
615
+ .\[\&\:has\(span\[dir\=\"rtl\"\]\)\]\:direction_rtl:has(span[dir="rtl"]) {
616
+ direction: rtl;
617
+ }
618
+
416
619
  .\[\&_img\]\:w_100\% img {
417
620
  width: 100%;
418
621
  }
@@ -517,10 +720,18 @@
517
720
  opacity: 0.7;
518
721
  }
519
722
 
723
+ .\[\&_p\]\:d_inline p {
724
+ display: inline;
725
+ }
726
+
520
727
  .\[\&_\>_\*\:not\(\:where\(\:first-child\)\)\]\:mbs_xsmall > *:not(:where(:first-child)) {
521
728
  margin-block-start: var(--spacing-xsmall);
522
729
  }
523
730
 
731
+ .\[\&_li\]\:d_block li {
732
+ display: block;
733
+ }
734
+
524
735
  .\[\&_svg\]\:fill_text\.subtle svg {
525
736
  fill: var(--colors-text-subtle);
526
737
  }
@@ -541,10 +752,93 @@
541
752
  margin-block-start: var(--spacing-3xsmall);
542
753
  }
543
754
 
755
+ .\[\&_iframe\]\:h_auto iframe {
756
+ height: auto;
757
+ }
758
+
759
+ .\[\&_iframe\]\:w_100\% iframe {
760
+ width: 100%;
761
+ }
762
+
763
+ .\[\&_a\]\:ms_1 a {
764
+ margin-inline-start: var(--spacing-1);
765
+ }
766
+
544
767
  .\[\&_svg\]\:fill_primary svg {
545
768
  fill: var(--colors-primary);
546
769
  }
547
770
 
771
+ .\[\&_a\]\:c_text\.strong a {
772
+ color: var(--colors-text-strong);
773
+ }
774
+
775
+ .open\:max-h_500vh:is([open], [data-open], [data-state="open"]) {
776
+ max-height: 500vh;
777
+ }
778
+
779
+ .\[\&_\:first-child\]\:mbs_0 :first-child {
780
+ margin-block-start: 0;
781
+ }
782
+
783
+ .after\:ta_center::after {
784
+ text-align: center;
785
+ }
786
+
787
+ .after\:pos_absolute::after {
788
+ position: absolute;
789
+ }
790
+
791
+ .after\:inset_0::after {
792
+ inset: 0;
793
+ }
794
+
795
+ .after\:grad-from_surface\.default\/00::after {
796
+ --mix---gradient-from: color-mix(in srgb, var(--colors-surface-default) 00%, transparent);
797
+ --gradient-from: var(--mix---gradient-from, var(--colors-surface-default));
798
+ }
799
+
800
+ .after\:grad-to_surface\.default::after {
801
+ --gradient-to: var(--colors-surface-default);
802
+ }
803
+
804
+ .after\:bg-grad_to-b::after {
805
+ --gradient-stops: var(--gradient-via-stops, var(--gradient-from) var(--gradient-from-position), var(--gradient-to) var(--gradient-to-position));
806
+ --gradient: var(--gradient-via-stops, var(--gradient-stops));
807
+ background-image: linear-gradient(to bottom, var(--gradient));
808
+ }
809
+
810
+ .after\:op_1::after {
811
+ opacity: 1;
812
+ }
813
+
814
+ .after\:z_base::after {
815
+ z-index: var(--z-index-base);
816
+ }
817
+
818
+ .open\:pbe_xsmall:is([open], [data-open], [data-state="open"]) {
819
+ padding-block-end: var(--spacing-xsmall);
820
+ }
821
+
822
+ .first\:bg_surface\.brand\.1\.subtle:first-child {
823
+ background: var(--colors-surface-brand-1-subtle);
824
+ }
825
+
826
+ .\[\&_h3\]\:td_underline h3 {
827
+ text-decoration: underline;
828
+ }
829
+
830
+ .before\:pos_absolute::before {
831
+ position: absolute;
832
+ }
833
+
834
+ .before\:inset_0::before {
835
+ inset: 0;
836
+ }
837
+
838
+ .before\:z_0::before {
839
+ z-index: 0;
840
+ }
841
+
548
842
  .\[\&_\.linenumber\]\:bd-c_stroke\.subtle .linenumber {
549
843
  border-color: var(--colors-stroke-subtle);
550
844
  }
@@ -576,6 +870,71 @@
576
870
  transition-timing-function: ease-out;
577
871
  }
578
872
 
873
+ .\[\&_h1\]\:mt_0 h1 {
874
+ margin-top: 0;
875
+ }
876
+
877
+ .after\:content_\"\"::after {
878
+ content: "";
879
+ }
880
+
881
+ .after\:trs-prop_opacity::after {
882
+ --transition-prop: opacity;
883
+ transition-property: opacity;
884
+ }
885
+
886
+ .after\:trs-dur_slow::after {
887
+ --transition-duration: var(--durations-slow);
888
+ transition-duration: var(--durations-slow);
889
+ }
890
+
891
+ .after\:trs-tmf_ease-out::after {
892
+ --transition-easing: ease-out;
893
+ transition-timing-function: ease-out;
894
+ }
895
+
896
+ .\[\&_svg\]\:trs-tmf_ease-in-out svg {
897
+ --transition-easing: ease-in-out;
898
+ transition-timing-function: ease-in-out;
899
+ }
900
+
901
+ .\[\&_svg\]\:trs-dur_fast svg {
902
+ --transition-duration: var(--durations-fast);
903
+ transition-duration: var(--durations-fast);
904
+ }
905
+
906
+ .first\:bd-c_stroke\.default:first-child {
907
+ border-color: var(--colors-stroke-default);
908
+ }
909
+
910
+ .\[\&_\[data-forward\]\]\:trs-prop_width\,_height [data-forward] {
911
+ --transition-prop: width, height;
912
+ transition-property: width, height;
913
+ }
914
+
915
+ .\[\&_\[data-forward\]\]\:trs-tmf_ease-in-out [data-forward] {
916
+ --transition-easing: ease-in-out;
917
+ transition-timing-function: ease-in-out;
918
+ }
919
+
920
+ .\[\&_\[data-forward\]\]\:trs-dur_fast [data-forward] {
921
+ --transition-duration: var(--durations-fast);
922
+ transition-duration: var(--durations-fast);
923
+ }
924
+
925
+ .before\:content_\"\"::before {
926
+ content: "";
927
+ }
928
+
929
+ .focusVisible\:ring_none:is(:focus-visible, [data-focus-visible]) {
930
+ outline: 2px solid transparent;
931
+ outline-offset: 2px;
932
+ }
933
+
934
+ .focusVisible\:bdr_0:is(:focus-visible, [data-focus-visible]) {
935
+ border-radius: 0;
936
+ }
937
+
579
938
  .\[\&\:hover\,_\&\:focus-visible\]\:bd-c_stroke\.hover:hover,.\[\&\:hover\,_\&\:focus-visible\]\:bd-c_stroke\.hover:focus-visible {
580
939
  border-color: var(--colors-stroke-hover);
581
940
  }
@@ -584,14 +943,82 @@
584
943
  background-color: var(--colors-surface-action-subtle-hover);
585
944
  }
586
945
 
946
+ .hover\:td_none:is(:hover, [data-hover]) {
947
+ text-decoration: none;
948
+ }
949
+
950
+ .hover\:bg_surface\.actionSubtle\.hover:is(:hover, [data-hover]) {
951
+ background: var(--colors-surface-action-subtle-hover);
952
+ }
953
+
954
+ .hover\:bd-c_text\.link:is(:hover, [data-hover]) {
955
+ border-color: var(--colors-text-link);
956
+ }
957
+
958
+ .active\:bg_surface\.actionSubtle\.active:is(:active, [data-active]) {
959
+ background: var(--colors-surface-action-subtle-active);
960
+ }
961
+
962
+ .active\:bd-c_text\.link:is(:active, [data-active]) {
963
+ border-color: var(--colors-text-link);
964
+ }
965
+
587
966
  .\[\&_button\[data-expanded\=\'true\'\]\]\:\[\&_svg\]\:trf_rotate\(-45deg\) button[data-expanded='true'] svg {
588
967
  transform: rotate(-45deg);
589
968
  }
590
969
 
970
+ .open\:after\:op_0:is([open], [data-open], [data-state="open"])::after {
971
+ opacity: 0;
972
+ }
973
+
974
+ .open\:after\:z_hide:is([open], [data-open], [data-state="open"])::after {
975
+ z-index: var(--z-index-hide);
976
+ }
977
+
978
+ .open\:\[\&_svg\]\:trf_rotate\(180deg\):is([open], [data-open], [data-state="open"]) svg {
979
+ transform: rotate(180deg);
980
+ }
981
+
982
+ .first\:\[\&_p\]\:fw_bold:first-child p {
983
+ font-weight: var(--font-weights-bold);
984
+ }
985
+
591
986
  .\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:hover h1,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:hover h2,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:hover h3,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:hover h4,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:hover h5,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:hover h6,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:focus-visible h1,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:focus-visible h2,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:focus-visible h3,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:focus-visible h4,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:focus-visible h5,.\[\&\:hover\,_\&\:focus-visible\]\:\[\&_h1\,_h2\,_h3\,_h4\,_h5\,_h6\]\:td_underline:focus-visible h6 {
592
987
  text-decoration: underline;
593
988
  }
594
989
 
990
+ .focusVisible\:after\:pos_absolute:is(:focus-visible, [data-focus-visible])::after {
991
+ position: absolute;
992
+ }
993
+
994
+ .focusVisible\:after\:inset_0:is(:focus-visible, [data-focus-visible])::after {
995
+ inset: 0;
996
+ }
997
+
998
+ .focusVisible\:after\:ring_3px:is(:focus-visible, [data-focus-visible])::after {
999
+ outline: 3px;
1000
+ }
1001
+
1002
+ .focusVisible\:after\:bdr_xsmall:is(:focus-visible, [data-focus-visible])::after {
1003
+ border-radius: var(--radii-xsmall);
1004
+ }
1005
+
1006
+ .focusVisible\:after\:ring-o_3px:is(:focus-visible, [data-focus-visible])::after {
1007
+ outline-offset: 3px;
1008
+ }
1009
+
1010
+ .focusVisible\:after\:content_\"\":is(:focus-visible, [data-focus-visible])::after {
1011
+ content: "";
1012
+ }
1013
+
1014
+ .focusVisible\:after\:ring-c_stroke\.default:is(:focus-visible, [data-focus-visible])::after {
1015
+ outline-color: var(--colors-stroke-default);
1016
+ }
1017
+
1018
+ .focusVisible\:after\:outline-style_solid:is(:focus-visible, [data-focus-visible])::after {
1019
+ outline-style: solid;
1020
+ }
1021
+
595
1022
  .hover\:\[\&_\[data-byline-button\]\]\:bg_background\.default:is(:hover, [data-hover]) [data-byline-button] {
596
1023
  background: var(--colors-background-default);
597
1024
  }
@@ -600,9 +1027,33 @@
600
1027
  transform: scale(1.2);
601
1028
  }
602
1029
 
1030
+ .hover\:\[\&_h3\]\:td_none:is(:hover, [data-hover]) h3 {
1031
+ text-decoration: none;
1032
+ }
1033
+
1034
+ .hover\:\[\&_\[data-forward\]\]\:w_large:is(:hover, [data-hover]) [data-forward] {
1035
+ width: var(--sizes-large);
1036
+ }
1037
+
1038
+ .hover\:\[\&_\[data-forward\]\]\:h_large:is(:hover, [data-hover]) [data-forward] {
1039
+ height: var(--sizes-large);
1040
+ }
1041
+
1042
+ @media screen and (min-width: 29.75rem) {
1043
+ .mobileWide\:max-w_surface\.medium {
1044
+ max-width: var(--sizes-surface-medium);
1045
+ }
1046
+ }
1047
+
603
1048
  @media screen and (min-width: 37.5625rem) {
604
1049
  .tablet\:px_medium {
605
1050
  padding-inline: var(--spacing-medium);
1051
+ }
1052
+ .tablet\:mt_xxlarge {
1053
+ margin-top: var(--spacing-xxlarge);
1054
+ }
1055
+ .tablet\:mb_xxlarge {
1056
+ margin-bottom: var(--spacing-xxlarge);
606
1057
  }
607
1058
  .\[\&\[data-has-image\=\'true\'\]\]\:tablet\:py_xsmall[data-has-image='true'] {
608
1059
  padding-block: var(--spacing-xsmall);
@@ -621,6 +1072,9 @@
621
1072
  }
622
1073
  .tabletWide\:max-w_532px {
623
1074
  max-width: 532px;
1075
+ }
1076
+ .tabletWide\:max-w_1100px {
1077
+ max-width: 1100px;
624
1078
  }
625
1079
  .tabletWide\:flex-d_row {
626
1080
  flex-direction: row;
@@ -636,6 +1090,9 @@
636
1090
  }
637
1091
  .desktop\:h_260px {
638
1092
  height: 260px;
1093
+ }
1094
+ .desktop\:h_340px {
1095
+ height: 340px;
639
1096
  }
640
1097
  }
641
1098
 
@@ -663,6 +1120,9 @@
663
1120
  }
664
1121
  .tabletWideDown\:px_xsmall {
665
1122
  padding-inline: var(--spacing-xsmall);
1123
+ }
1124
+ .tabletWideDown\:p_xsmall {
1125
+ padding: var(--spacing-xsmall);
666
1126
  }
667
1127
  .tabletWideDown\:grid-tc_1fr_repeat\(5\,_auto\)_1fr {
668
1128
  grid-template-columns: 1fr repeat(5, auto) 1fr;
@@ -670,6 +1130,30 @@
670
1130
  .tabletWideDown\:grid-template-areas_\"track_track_track_track_track_track_track\"_\"\._speed_backwards_play_forwards_volume_\.\" {
671
1131
  grid-template-areas: "track track track track track track track" ". speed backwards play forwards volume .";
672
1132
  }
1133
+ }
1134
+
1135
+ @media screen and (max-width: 37.56rem) {
1136
+ .tabletDown\:gap_0 {
1137
+ gap: 0;
1138
+ }
1139
+ .tabletDown\:p_0 {
1140
+ padding: 0;
1141
+ }
1142
+ .tabletDown\:p_xsmall {
1143
+ padding: var(--spacing-xsmall);
1144
+ }
1145
+ .tabletDown\:w_100\% {
1146
+ width: 100%;
1147
+ }
1148
+ .tabletDown\:bdr_0 {
1149
+ border-radius: 0;
1150
+ }
1151
+ .tabletDown\:grid-tc_1fr {
1152
+ grid-template-columns: 1fr;
1153
+ }
1154
+ .tabletDown\:flex-d_column {
1155
+ flex-direction: column;
1156
+ }
673
1157
  }
674
1158
 
675
1159
  @media screen and (max-width: 29.7475rem) {
@@ -682,5 +1166,32 @@
682
1166
  .mobileDown\:px_xsmall {
683
1167
  padding-inline: var(--spacing-xsmall);
684
1168
  }
1169
+ }
1170
+
1171
+ @media print {
1172
+ .print\:ov_visible {
1173
+ overflow: visible;
1174
+ }
1175
+ .print\:d_none {
1176
+ display: none;
1177
+ }
1178
+ }
1179
+
1180
+ @media print {
1181
+ .closed\:print\:ov_visible:is([closed], [data-closed], [data-state="closed"]) {
1182
+ overflow: visible;
1183
+ }
1184
+ }
1185
+
1186
+ @media print {
1187
+ .closed\:print\:max-h_500vh:is([closed], [data-closed], [data-state="closed"]) {
1188
+ max-height: 500vh;
1189
+ }
1190
+ }
1191
+
1192
+ @media print {
1193
+ .print\:after\:d_none::after {
1194
+ display: none;
1195
+ }
685
1196
  }
686
1197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "55.0.13-alpha.0",
3
+ "version": "55.0.14-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -33,17 +33,17 @@
33
33
  "types"
34
34
  ],
35
35
  "dependencies": {
36
- "@ndla/accordion": "^5.0.6-alpha.0",
37
- "@ndla/button": "^14.0.6-alpha.0",
36
+ "@ndla/accordion": "^5.0.7-alpha.0",
37
+ "@ndla/button": "^14.0.7-alpha.0",
38
38
  "@ndla/core": "^5.0.1",
39
39
  "@ndla/dropdown-menu": "^1.0.38",
40
- "@ndla/forms": "^9.0.6-alpha.0",
40
+ "@ndla/forms": "^9.0.7-alpha.0",
41
41
  "@ndla/hooks": "^2.1.8",
42
- "@ndla/icons": "^7.0.7-alpha.0",
42
+ "@ndla/icons": "^7.0.8-alpha.0",
43
43
  "@ndla/licenses": "^8.0.0-alpha.0",
44
- "@ndla/modal": "^7.0.6-alpha.0",
45
- "@ndla/primitives": "^0.0.17",
46
- "@ndla/safelink": "^6.0.0-alpha.0",
44
+ "@ndla/modal": "^7.0.7-alpha.0",
45
+ "@ndla/primitives": "^0.0.18",
46
+ "@ndla/safelink": "^6.0.1-alpha.0",
47
47
  "@ndla/styled-system": "^0.0.8",
48
48
  "@ndla/tooltip": "^8.0.1",
49
49
  "@ndla/typography": "^0.4.23",
@@ -54,9 +54,7 @@
54
54
  "i18next-browser-languagedetector": "^7.1.0",
55
55
  "lodash.throttle": "^4.1.1",
56
56
  "punycode.js": "^2.3.1",
57
- "react-device-detect": "^2.2.3",
58
- "react-select": "^5.8.0",
59
- "react-swipeable": "^7.0.0"
57
+ "react-device-detect": "^2.2.3"
60
58
  },
61
59
  "peerDependencies": {
62
60
  "@emotion/react": "^11.10.4",
@@ -68,7 +66,7 @@
68
66
  "react-router-dom": "> 6.0.0"
69
67
  },
70
68
  "devDependencies": {
71
- "@ndla/preset-panda": "^0.0.10",
69
+ "@ndla/preset-panda": "^0.0.11",
72
70
  "@ndla/types-backend": "^0.2.86",
73
71
  "@ndla/types-embed": "^4.1.8",
74
72
  "@pandacss/dev": "^0.42.0",
@@ -81,5 +79,5 @@
81
79
  "publishConfig": {
82
80
  "access": "public"
83
81
  },
84
- "gitHead": "93dde6fe4aaca52642f8fa0a27f4acad359207cb"
82
+ "gitHead": "6fdfbed9f18bbd725c837fb74de2f093e80d5605"
85
83
  }
@@ -7,19 +7,21 @@
7
7
  */
8
8
 
9
9
  import { ComponentPropsWithoutRef, ReactNode } from "react";
10
- import styled from "@emotion/styled";
10
+ import { styled } from "@ndla/styled-system/jsx";
11
11
 
12
12
  interface Props extends ComponentPropsWithoutRef<"p"> {
13
13
  children?: ReactNode;
14
14
  }
15
15
 
16
- const StyledParagraph = styled.p`
17
- &[data-align="center"] {
18
- text-align: center;
19
- }
20
- &:has(span[dir="rtl"]) {
21
- direction: rtl;
22
- }
23
- `;
16
+ const StyledParagraph = styled("p", {
17
+ base: {
18
+ '&[data-align="center"]': {
19
+ textAlign: "center",
20
+ },
21
+ '&:has(span[dir="rtl"])': {
22
+ direction: "rtl",
23
+ },
24
+ },
25
+ });
24
26
 
25
27
  export const ArticleParagraph = (props: Props) => <StyledParagraph {...props} />;