@ndla/ui 56.0.74-alpha.0 → 56.0.76-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.
- package/dist/panda.buildinfo.json +4 -21
- package/dist/styles.css +12 -76
- package/es/Article/Article.js +2 -2
- package/es/Article/ArticleByline.js +1 -1
- package/es/AudioPlayer/AudioPlayer.js +1 -0
- package/es/AudioPlayer/Controls.js +1 -3
- package/es/AudioPlayer/SpeechControl.js +1 -1
- package/es/Breadcrumb/BreadcrumbItem.js +1 -1
- package/es/Breadcrumb/HomeBreadcrumb.js +1 -1
- package/es/CampaignBlock/CampaignBlock.js +1 -1
- package/es/ContentTypeBadge/ContentTypeBadge.js +35 -213
- package/es/ContentTypeHero/ContentTypeHero.js +2 -1
- package/es/CopyParagraphButton/CopyParagraphButton.js +1 -1
- package/es/Embed/CodeEmbed.js +1 -2
- package/es/Embed/EmbedErrorPlaceholder.js +2 -2
- package/es/Embed/ImageEmbed.js +1 -1
- package/es/Embed/UuDisclaimerEmbed.js +1 -1
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +1 -1
- package/es/FactBox/FactBox.js +1 -1
- package/es/FileList/File.js +1 -1
- package/es/Gloss/Gloss.js +1 -1
- package/es/LicenseByline/EmbedByline.js +1 -1
- package/es/LinkBlock/LinkBlock.js +1 -2
- package/es/RelatedArticleList/RelatedArticleList.js +2 -2
- package/es/ResourceBox/ResourceBox.js +1 -1
- package/es/TagSelector/TagSelector.js +1 -1
- package/es/index.js +1 -3
- package/es/locale/messages-en.js +2 -1
- package/es/locale/messages-nb.js +2 -1
- package/es/locale/messages-nn.js +2 -1
- package/es/locale/messages-se.js +2 -1
- package/es/locale/messages-sma.js +2 -1
- package/es/model/ContentType.js +2 -0
- package/lib/Article/Article.d.ts +3 -3
- package/lib/Article/Article.js +1 -1
- package/lib/Article/ArticleByline.d.ts +3 -3
- package/lib/Article/ArticleByline.js +2 -2
- package/lib/Article/ArticleFootNotes.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.js +1 -0
- package/lib/AudioPlayer/Controls.js +6 -8
- package/lib/AudioPlayer/SpeechControl.js +2 -2
- package/lib/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.js +2 -2
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +4 -4
- package/lib/CampaignBlock/CampaignBlock.d.ts +2 -2
- package/lib/CampaignBlock/CampaignBlock.js +2 -2
- package/lib/CodeBlock/CodeBlock.d.ts +1 -1
- package/lib/Concept/Concept.d.ts +3 -3
- package/lib/ContactBlock/ContactBlock.d.ts +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +9 -19
- package/lib/ContentTypeBadge/ContentTypeBadge.js +36 -223
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.d.ts +2 -2
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.d.ts +2 -2
- package/lib/ContentTypeHero/ContentTypeHero.d.ts +2 -2
- package/lib/ContentTypeHero/ContentTypeHero.js +2 -1
- package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -1
- package/lib/CopyParagraphButton/CopyParagraphButton.js +2 -2
- package/lib/Embed/AudioEmbed.d.ts +2 -2
- package/lib/Embed/BrightcoveEmbed.d.ts +2 -2
- package/lib/Embed/CodeEmbed.d.ts +1 -1
- package/lib/Embed/CodeEmbed.js +2 -3
- package/lib/Embed/ConceptEmbed.d.ts +3 -3
- package/lib/Embed/ContentLinkEmbed.d.ts +2 -2
- package/lib/Embed/CopyrightEmbed.d.ts +2 -2
- package/lib/Embed/EmbedErrorPlaceholder.d.ts +2 -2
- package/lib/Embed/EmbedErrorPlaceholder.js +2 -2
- package/lib/Embed/EmbedWrapper.d.ts +1 -1
- package/lib/Embed/ExternalEmbed.d.ts +1 -1
- package/lib/Embed/FootnoteEmbed.d.ts +1 -1
- package/lib/Embed/GlossEmbed.d.ts +1 -1
- package/lib/Embed/H5pEmbed.d.ts +1 -1
- package/lib/Embed/IframeEmbed.d.ts +1 -1
- package/lib/Embed/ImageEmbed.d.ts +3 -3
- package/lib/Embed/ImageEmbed.js +2 -2
- package/lib/Embed/RelatedContentEmbed.d.ts +1 -1
- package/lib/Embed/UnknownEmbed.d.ts +1 -1
- package/lib/Embed/UuDisclaimerEmbed.d.ts +2 -2
- package/lib/Embed/UuDisclaimerEmbed.js +2 -2
- package/lib/Embed/types.d.ts +3 -3
- package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +3 -3
- package/lib/FactBox/FactBox.d.ts +1 -1
- package/lib/FactBox/FactBox.js +2 -2
- package/lib/FileList/File.d.ts +1 -1
- package/lib/FileList/File.js +2 -2
- package/lib/FileList/FileList.d.ts +1 -1
- package/lib/Gloss/Gloss.d.ts +1 -1
- package/lib/Gloss/Gloss.js +2 -2
- package/lib/Gloss/GlossExample.d.ts +1 -1
- package/lib/Grid/Grid.d.ts +1 -1
- package/lib/Grid/GridParallaxItem.d.ts +1 -1
- package/lib/LicenseByline/EmbedByline.d.ts +6 -6
- package/lib/LicenseByline/EmbedByline.js +2 -2
- package/lib/LicenseByline/LicenseLink.d.ts +2 -2
- package/lib/LinkBlock/LinkBlock.d.ts +1 -1
- package/lib/LinkBlock/LinkBlock.js +3 -4
- package/lib/LinkBlock/LinkBlockSection.d.ts +1 -1
- package/lib/RelatedArticleList/RelatedArticleList.d.ts +2 -2
- package/lib/RelatedArticleList/RelatedArticleList.js +4 -4
- package/lib/ResourceBox/ResourceBox.js +2 -2
- package/lib/TagSelector/TagSelector.d.ts +1 -1
- package/lib/TagSelector/TagSelector.js +2 -2
- package/lib/ZendeskButton/ZendeskButton.d.ts +1 -1
- package/lib/i18n/useComponentTranslations.d.ts +1 -1
- package/lib/index.d.ts +2 -4
- package/lib/index.js +5 -61
- package/lib/locale/messages-en.d.ts +1 -0
- package/lib/locale/messages-en.js +2 -1
- package/lib/locale/messages-nb.d.ts +1 -0
- package/lib/locale/messages-nb.js +2 -1
- package/lib/locale/messages-nn.d.ts +1 -0
- package/lib/locale/messages-nn.js +2 -1
- package/lib/locale/messages-se.d.ts +1 -0
- package/lib/locale/messages-se.js +2 -1
- package/lib/locale/messages-sma.d.ts +1 -0
- package/lib/locale/messages-sma.js +2 -1
- package/lib/model/ContentType.d.ts +1 -0
- package/lib/model/ContentType.js +3 -1
- package/lib/types.d.ts +1 -1
- package/package.json +12 -12
- package/src/Article/Article.tsx +6 -6
- package/src/Article/ArticleByline.stories.tsx +1 -1
- package/src/Article/ArticleByline.tsx +5 -5
- package/src/Article/ArticleFootNotes.tsx +1 -1
- package/src/AudioPlayer/AudiPlayer.stories.tsx +1 -1
- package/src/AudioPlayer/AudioPlayer.tsx +2 -1
- package/src/AudioPlayer/Controls.tsx +1 -3
- package/src/AudioPlayer/SpeechControl.tsx +1 -1
- package/src/Breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/src/Breadcrumb/Breadcrumb.tsx +2 -2
- package/src/Breadcrumb/BreadcrumbItem.tsx +2 -2
- package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +1 -1
- package/src/Breadcrumb/HomeBreadcrumb.tsx +2 -2
- package/src/CampaignBlock/CampaignBlock.stories.tsx +1 -1
- package/src/CampaignBlock/CampaignBlock.tsx +4 -4
- package/src/CodeBlock/CodeBlock.stories.tsx +1 -1
- package/src/CodeBlock/CodeBlock.tsx +1 -1
- package/src/Concept/Concept.stories.tsx +2 -2
- package/src/Concept/Concept.tsx +3 -3
- package/src/ContactBlock/ContactBlock.stories.tsx +1 -1
- package/src/ContactBlock/ContactBlock.tsx +2 -2
- package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +46 -54
- package/src/ContentTypeBadge/ContentTypeBadge.tsx +63 -211
- package/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx +2 -2
- package/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx +2 -2
- package/src/ContentTypeHero/ContentTypeHero.stories.tsx +1 -1
- package/src/ContentTypeHero/ContentTypeHero.tsx +3 -2
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +2 -2
- package/src/Embed/AudioEmbed.stories.tsx +2 -2
- package/src/Embed/AudioEmbed.tsx +2 -2
- package/src/Embed/BrightcoveEmbed.stories.tsx +2 -2
- package/src/Embed/BrightcoveEmbed.tsx +2 -2
- package/src/Embed/CodeEmbed.stories.tsx +1 -1
- package/src/Embed/CodeEmbed.tsx +3 -4
- package/src/Embed/ConceptEmbed.stories.tsx +2 -2
- package/src/Embed/ConceptEmbed.tsx +3 -3
- package/src/Embed/ContentLinkEmbed.tsx +2 -2
- package/src/Embed/CopyrightEmbed.tsx +2 -2
- package/src/Embed/EmbedErrorPlaceholder.tsx +4 -4
- package/src/Embed/EmbedWrapper.tsx +1 -1
- package/src/Embed/ExternalEmbed.stories.tsx +2 -2
- package/src/Embed/ExternalEmbed.tsx +1 -1
- package/src/Embed/FootnoteEmbed.stories.tsx +2 -2
- package/src/Embed/FootnoteEmbed.tsx +1 -1
- package/src/Embed/GlossEmbed.stories.tsx +2 -2
- package/src/Embed/GlossEmbed.tsx +1 -1
- package/src/Embed/H5pEmbed.stories.tsx +2 -2
- package/src/Embed/H5pEmbed.tsx +1 -1
- package/src/Embed/IframeEmbed.stories.tsx +2 -2
- package/src/Embed/IframeEmbed.tsx +1 -1
- package/src/Embed/ImageEmbed.stories.tsx +4 -4
- package/src/Embed/ImageEmbed.tsx +5 -5
- package/src/Embed/InlineTriggerButton.tsx +1 -1
- package/src/Embed/RelatedContentEmbed.stories.tsx +2 -2
- package/src/Embed/RelatedContentEmbed.tsx +1 -1
- package/src/Embed/UnknownEmbed.tsx +1 -1
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +2 -2
- package/src/Embed/UuDisclaimerEmbed.tsx +3 -3
- package/src/Embed/types.ts +3 -3
- package/src/ErrorMessage/ErrorMessage.stories.tsx +1 -1
- package/src/ErrorMessage/ErrorMessage.tsx +1 -1
- package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +1 -1
- package/src/FactBox/FactBox.tsx +11 -2
- package/src/FactBox/Factbox.stories.tsx +1 -1
- package/src/FileList/File.tsx +2 -2
- package/src/FileList/FileList.stories.tsx +3 -4
- package/src/FileList/FileList.tsx +1 -1
- package/src/Gloss/Gloss.stories.tsx +1 -1
- package/src/Gloss/Gloss.tsx +2 -2
- package/src/Gloss/GlossExample.tsx +1 -1
- package/src/Grid/Grid.stories.tsx +1 -1
- package/src/Grid/Grid.tsx +1 -1
- package/src/Grid/GridParallaxItem.tsx +1 -1
- package/src/KeyFigure/KeyFigure.stories.tsx +1 -1
- package/src/LicenseByline/EmbedByline.stories.tsx +1 -1
- package/src/LicenseByline/EmbedByline.tsx +7 -7
- package/src/LicenseByline/LicenseLink.tsx +2 -2
- package/src/LinkBlock/LinkBlock.stories.tsx +1 -1
- package/src/LinkBlock/LinkBlock.tsx +2 -3
- package/src/LinkBlock/LinkBlockSection.tsx +1 -1
- package/src/Pitch/Pitch.stories.tsx +2 -2
- package/src/RelatedArticleList/RelatedArticleList.tsx +4 -4
- package/src/ResourceBox/ResourceBox.tsx +1 -1
- package/src/TagSelector/TagSelector.stories.tsx +2 -4
- package/src/TagSelector/TagSelector.tsx +7 -7
- package/src/ZendeskButton/ZendeskButton.tsx +1 -1
- package/src/i18n/useComponentTranslations.ts +1 -1
- package/src/index.ts +2 -18
- package/src/locale/messages-en.ts +1 -0
- package/src/locale/messages-nb.ts +1 -0
- package/src/locale/messages-nn.ts +1 -0
- package/src/locale/messages-se.ts +1 -0
- package/src/locale/messages-sma.ts +1 -0
- package/src/model/ContentType.ts +2 -0
- package/src/types.ts +1 -1
- package/es/ContentLoader/index.js +0 -82
- package/es/ContentTypeBadge/ContentTypeBadgeNew.js +0 -49
- package/es/ContentTypeBadge/index.js +0 -11
- package/lib/ContentLoader/index.d.ts +0 -16
- package/lib/ContentLoader/index.js +0 -88
- package/lib/ContentTypeBadge/ContentTypeBadgeNew.d.ts +0 -16
- package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +0 -57
- package/lib/ContentTypeBadge/index.d.ts +0 -10
- package/lib/ContentTypeBadge/index.js +0 -57
- package/src/ContentLoader/ContentLoader.stories.tsx +0 -62
- package/src/ContentLoader/index.tsx +0 -73
- package/src/ContentTypeBadge/ContentTypeBadgeNew.stories.tsx +0 -70
- package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +0 -77
- package/src/ContentTypeBadge/index.ts +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "0.
|
|
2
|
+
"schemaVersion": "0.48.0",
|
|
3
3
|
"styles": {
|
|
4
4
|
"atomic": [
|
|
5
5
|
"background]___[value:background.default",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"padding]___[value:xsmall",
|
|
57
57
|
"paddingBlock]___[value:xsmall]___[cond:&[data-has-image='true']<___>tablet",
|
|
58
58
|
"paddingInline]___[value:medium]___[cond:&[data-has-image='true']<___>tablet",
|
|
59
|
+
"fontFamily]___[value:sans",
|
|
59
60
|
"width]___[value:100%]___[cond:tabletWide",
|
|
60
61
|
"justifyContent]___[value:space-between]___[cond:tabletWide",
|
|
61
62
|
"borderBlockStart]___[value:1px solid",
|
|
@@ -171,26 +172,6 @@
|
|
|
171
172
|
"width]___[value:surface.xsmall",
|
|
172
173
|
"height]___[value:surface.xsmall",
|
|
173
174
|
"fontFamily]___[value:serif",
|
|
174
|
-
"display]___[value:inline-flex",
|
|
175
|
-
"borderRadius]___[value:100%",
|
|
176
|
-
"color]___[value:var(--icon-color)",
|
|
177
|
-
"width]___[value:20px",
|
|
178
|
-
"height]___[value:20px",
|
|
179
|
-
"width]___[value:10px]___[cond:& svg",
|
|
180
|
-
"height]___[value:10px]___[cond:& svg",
|
|
181
|
-
"height]___[value:26px]___[cond:tablet",
|
|
182
|
-
"width]___[value:26px]___[cond:tablet",
|
|
183
|
-
"width]___[value:12px]___[cond:& svg<___>tablet",
|
|
184
|
-
"height]___[value:12px]___[cond:& svg<___>tablet",
|
|
185
|
-
"width]___[value:34px",
|
|
186
|
-
"height]___[value:34px",
|
|
187
|
-
"width]___[value:50px",
|
|
188
|
-
"height]___[value:50px",
|
|
189
|
-
"width]___[value:25px]___[cond:& svg",
|
|
190
|
-
"height]___[value:25px]___[cond:& svg",
|
|
191
|
-
"border]___[value:2px solid",
|
|
192
|
-
"borderColor]___[value:var(--icon-color)",
|
|
193
|
-
"backgroundColor]___[value:var(--background-color)",
|
|
194
175
|
"opacity]___[value:1]___[cond:_hover<___>& [data-copy-button]",
|
|
195
176
|
"cursor]___[value:pointer]___[cond:_hover<___>& [data-copy-button]",
|
|
196
177
|
"position]___[value:absolute",
|
|
@@ -250,6 +231,7 @@
|
|
|
250
231
|
"right]___[value:xsmall",
|
|
251
232
|
"width]___[value:medium",
|
|
252
233
|
"height]___[value:medium",
|
|
234
|
+
"border]___[value:2px solid",
|
|
253
235
|
"borderColor]___[value:background.default",
|
|
254
236
|
"transitionProperty]___[value:transform, background-color, color",
|
|
255
237
|
"transitionDuration]___[value:normal",
|
|
@@ -349,6 +331,7 @@
|
|
|
349
331
|
"color]___[value:text.subtle",
|
|
350
332
|
"borderColor]___[value:stroke.error",
|
|
351
333
|
"background]___[value:surface.dangerSubtle",
|
|
334
|
+
"display]___[value:inline-flex",
|
|
352
335
|
"whiteSpace]___[value:pre-wrap",
|
|
353
336
|
"display]___[value:grid]___[cond:mobileWideDown",
|
|
354
337
|
"gridTemplateColumns]___[value:1fr auto]___[cond:mobileWideDown",
|
package/dist/styles.css
CHANGED
|
@@ -393,46 +393,6 @@
|
|
|
393
393
|
height: var(--sizes-surface-xsmall);
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
.d_inline-flex {
|
|
397
|
-
display: inline-flex;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.bdr_100\% {
|
|
401
|
-
border-radius: 100%;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.c_var\(--icon-color\) {
|
|
405
|
-
color: var(--icon-color);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.w_20px {
|
|
409
|
-
width: 20px;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.h_20px {
|
|
413
|
-
height: 20px;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.w_34px {
|
|
417
|
-
width: 34px;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.h_34px {
|
|
421
|
-
height: 34px;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.w_50px {
|
|
425
|
-
width: 50px;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.h_50px {
|
|
429
|
-
height: 50px;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
.bd_2px_solid {
|
|
433
|
-
border: 2px solid;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
396
|
.pos_absolute {
|
|
437
397
|
position: absolute;
|
|
438
398
|
}
|
|
@@ -509,6 +469,10 @@
|
|
|
509
469
|
height: var(--sizes-medium);
|
|
510
470
|
}
|
|
511
471
|
|
|
472
|
+
.bd_2px_solid {
|
|
473
|
+
border: 2px solid;
|
|
474
|
+
}
|
|
475
|
+
|
|
512
476
|
.c_background\.default {
|
|
513
477
|
color: var(--colors-background-default);
|
|
514
478
|
}
|
|
@@ -577,6 +541,10 @@
|
|
|
577
541
|
background: var(--colors-surface-danger-subtle);
|
|
578
542
|
}
|
|
579
543
|
|
|
544
|
+
.d_inline-flex {
|
|
545
|
+
display: inline-flex;
|
|
546
|
+
}
|
|
547
|
+
|
|
580
548
|
.white-space_pre-wrap {
|
|
581
549
|
white-space: pre-wrap;
|
|
582
550
|
}
|
|
@@ -637,6 +605,10 @@
|
|
|
637
605
|
border-color: var(--colors-stroke-default);
|
|
638
606
|
}
|
|
639
607
|
|
|
608
|
+
.ff_sans {
|
|
609
|
+
font-family: var(--fonts-sans);
|
|
610
|
+
}
|
|
611
|
+
|
|
640
612
|
.as_flex-start {
|
|
641
613
|
align-self: flex-start;
|
|
642
614
|
}
|
|
@@ -685,14 +657,6 @@
|
|
|
685
657
|
font-family: var(--fonts-serif);
|
|
686
658
|
}
|
|
687
659
|
|
|
688
|
-
.bd-c_var\(--icon-color\) {
|
|
689
|
-
border-color: var(--icon-color);
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.bg-c_var\(--background-color\) {
|
|
693
|
-
background-color: var(--background-color);
|
|
694
|
-
}
|
|
695
|
-
|
|
696
660
|
.left_-xxlarge {
|
|
697
661
|
left: calc(var(--spacing-xxlarge) * -1);
|
|
698
662
|
}
|
|
@@ -911,22 +875,6 @@
|
|
|
911
875
|
z-index: var(--z-index-hide);
|
|
912
876
|
}
|
|
913
877
|
|
|
914
|
-
.\[\&_svg\]\:w_10px svg {
|
|
915
|
-
width: 10px;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
.\[\&_svg\]\:h_10px svg {
|
|
919
|
-
height: 10px;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
.\[\&_svg\]\:w_25px svg {
|
|
923
|
-
width: 25px;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
.\[\&_svg\]\:h_25px svg {
|
|
927
|
-
height: 25px;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
878
|
.\[\&_\>_\*\:not\(\:where\(\:first-child\)\)\]\:mbs_xsmall > *:not(:where(:first-child)) {
|
|
931
879
|
margin-block-start: var(--spacing-xsmall);
|
|
932
880
|
}
|
|
@@ -1351,12 +1299,6 @@
|
|
|
1351
1299
|
}
|
|
1352
1300
|
.tablet\:box-orient_vertical {
|
|
1353
1301
|
box-orient: vertical;
|
|
1354
|
-
}
|
|
1355
|
-
.tablet\:h_26px {
|
|
1356
|
-
height: 26px;
|
|
1357
|
-
}
|
|
1358
|
-
.tablet\:w_26px {
|
|
1359
|
-
width: 26px;
|
|
1360
1302
|
}
|
|
1361
1303
|
.tablet\:ai_unset {
|
|
1362
1304
|
align-items: unset;
|
|
@@ -1375,12 +1317,6 @@
|
|
|
1375
1317
|
}
|
|
1376
1318
|
.\[\&\[data-has-image\=\'true\'\]\]\:tablet\:px_medium[data-has-image='true'] {
|
|
1377
1319
|
padding-inline: var(--spacing-medium);
|
|
1378
|
-
}
|
|
1379
|
-
.\[\&_svg\]\:tablet\:w_12px svg {
|
|
1380
|
-
width: 12px;
|
|
1381
|
-
}
|
|
1382
|
-
.\[\&_svg\]\:tablet\:h_12px svg {
|
|
1383
|
-
height: 12px;
|
|
1384
1320
|
}
|
|
1385
1321
|
}
|
|
1386
1322
|
|
package/es/Article/Article.js
CHANGED
|
@@ -11,7 +11,7 @@ import { ark } from "@ark-ui/react";
|
|
|
11
11
|
import { Heading, Text } from "@ndla/primitives";
|
|
12
12
|
import { cx } from "@ndla/styled-system/css";
|
|
13
13
|
import { Stack, styled } from "@ndla/styled-system/jsx";
|
|
14
|
-
import {
|
|
14
|
+
import { ContentTypeBadge } from "..";
|
|
15
15
|
import { ArticleByline } from "./ArticleByline";
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
const StyledArticleContent = styled(ark.section, {}, {
|
|
@@ -118,7 +118,7 @@ export const ArticleTitle = _ref2 => {
|
|
|
118
118
|
align: "center",
|
|
119
119
|
direction: "row",
|
|
120
120
|
gap: "small",
|
|
121
|
-
children: [!!contentType && /*#__PURE__*/_jsx(
|
|
121
|
+
children: [!!contentType && /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
122
122
|
contentType: contentType,
|
|
123
123
|
children: contentTypeLabel
|
|
124
124
|
}), heartButton]
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { forwardRef, useCallback, useEffect, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import { useLocation } from "react-router-dom";
|
|
12
|
-
import { ArrowDownShortLine } from "@ndla/icons
|
|
12
|
+
import { ArrowDownShortLine } from "@ndla/icons";
|
|
13
13
|
import { AccordionItem, AccordionItemContent, AccordionItemIndicator, AccordionItemTrigger, AccordionRoot, Heading } from "@ndla/primitives";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
15
15
|
import { ArticleFootNotes } from "./ArticleFootNotes";
|
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
import { useEffect, useRef, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import { createListCollection } from "@ark-ui/react";
|
|
12
|
-
import { Replay15Line, Forward15Line } from "@ndla/icons
|
|
13
|
-
import { PlayFill, PauseLine, VolumeUpFill } from "@ndla/icons/common";
|
|
14
|
-
import { CheckLine } from "@ndla/icons/editor";
|
|
12
|
+
import { Replay15Line, Forward15Line, PlayFill, PauseLine, VolumeUpFill, CheckLine } from "@ndla/icons";
|
|
15
13
|
import { Button, FieldRoot, IconButton, PopoverContent, PopoverRoot, PopoverTrigger, SelectContent, SelectControl, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SliderControl, SliderHiddenInput, SliderLabel, SliderRange, SliderRoot, SliderThumb, SliderTrack, Text } from "@ndla/primitives";
|
|
16
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
17
15
|
import { visuallyHidden } from "@ndla/styled-system/patterns";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useRef } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { VolumeUpFill } from "@ndla/icons
|
|
11
|
+
import { VolumeUpFill } from "@ndla/icons";
|
|
12
12
|
import { TooltipRoot, TooltipTrigger, TooltipContent, IconButton } from "@ndla/primitives";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
const SpeechControl = _ref => {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useRef, useImperativeHandle, forwardRef } from "react";
|
|
10
|
-
import { ArrowRightShortLine } from "@ndla/icons
|
|
10
|
+
import { ArrowRightShortLine } from "@ndla/icons";
|
|
11
11
|
import { SafeLink } from "@ndla/safelink";
|
|
12
12
|
import { styled } from "@ndla/styled-system/jsx";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { ArrowRightShortLine, HomeLine } from "@ndla/icons
|
|
9
|
+
import { ArrowRightShortLine, HomeLine } from "@ndla/icons";
|
|
10
10
|
import { SafeLink } from "@ndla/safelink";
|
|
11
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
12
12
|
import Breadcrumb from "./Breadcrumb";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import parse from "html-react-parser";
|
|
10
|
-
import { ArrowRightLine } from "@ndla/icons
|
|
10
|
+
import { ArrowRightLine } from "@ndla/icons";
|
|
11
11
|
import { Text } from "@ndla/primitives";
|
|
12
12
|
import { SafeLinkButton } from "@ndla/safelink";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
@@ -1,228 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2024-present, NDLA.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the GPLv3 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { BookReadFill, ShareFill, VoicePrintLine } from "@ndla/icons/common";
|
|
13
|
-
import { MenuSearchLine, LearningPath, SharedResource, TasksAndActivities } from "@ndla/icons/contentType";
|
|
14
|
-
import { ChatLine, FileListLine, LinkMedium, ImageLine, MovieLine } from "@ndla/icons/editor";
|
|
15
|
-
import { styled } from "@ndla/styled-system/jsx";
|
|
9
|
+
import { forwardRef } from "react";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import { Badge } from "@ndla/primitives";
|
|
16
12
|
import * as contentTypes from "../model/ContentType";
|
|
17
|
-
|
|
18
|
-
// TODO: Remove this component
|
|
19
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
width: "10px",
|
|
41
|
-
height: "10px"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"x-small": {
|
|
45
|
-
width: "20px",
|
|
46
|
-
height: "20px",
|
|
47
|
-
border: "1px solid",
|
|
48
|
-
tablet: {
|
|
49
|
-
height: "26px",
|
|
50
|
-
width: "26px"
|
|
51
|
-
},
|
|
52
|
-
"& svg": {
|
|
53
|
-
width: "10px",
|
|
54
|
-
height: "10px",
|
|
55
|
-
tablet: {
|
|
56
|
-
width: "12px",
|
|
57
|
-
height: "12px"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
small: {
|
|
62
|
-
width: "34px",
|
|
63
|
-
height: "34px"
|
|
64
|
-
},
|
|
65
|
-
large: {
|
|
66
|
-
width: "50px",
|
|
67
|
-
height: "50px",
|
|
68
|
-
"& svg": {
|
|
69
|
-
width: "25px",
|
|
70
|
-
height: "25px"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
border: {
|
|
75
|
-
true: {
|
|
76
|
-
border: "2px solid",
|
|
77
|
-
borderColor: "var(--icon-color)"
|
|
78
|
-
},
|
|
79
|
-
false: {}
|
|
80
|
-
},
|
|
81
|
-
background: {
|
|
82
|
-
true: {
|
|
83
|
-
backgroundColor: "var(--background-color)"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
const iconMap = {
|
|
89
|
-
[contentTypes.SUBJECT_MATERIAL]: {
|
|
90
|
-
icon: FileListLine,
|
|
91
|
-
iconColor: colors.subjectMaterial.dark,
|
|
92
|
-
backgroundColor: colors.subjectMaterial.light
|
|
93
|
-
},
|
|
94
|
-
[contentTypes.TASKS_AND_ACTIVITIES]: {
|
|
95
|
-
icon: TasksAndActivities,
|
|
96
|
-
iconColor: colors.tasksAndActivities.dark,
|
|
97
|
-
backgroundColor: colors.tasksAndActivities.light
|
|
98
|
-
},
|
|
99
|
-
[contentTypes.ASSESSMENT_RESOURCES]: {
|
|
100
|
-
icon: MenuSearchLine,
|
|
101
|
-
iconColor: colors.assessmentResource.dark,
|
|
102
|
-
backgroundColor: colors.assessmentResource.light
|
|
103
|
-
},
|
|
104
|
-
[contentTypes.SUBJECT]: {
|
|
105
|
-
icon: BookReadFill,
|
|
106
|
-
iconColor: colors.subject.dark,
|
|
107
|
-
backgroundColor: colors.subject.light
|
|
108
|
-
},
|
|
109
|
-
[contentTypes.SOURCE_MATERIAL]: {
|
|
110
|
-
icon: SharedResource,
|
|
111
|
-
iconColor: colors.sourceMaterial.dark,
|
|
112
|
-
backgroundColor: colors.sourceMaterial.light
|
|
113
|
-
},
|
|
114
|
-
[contentTypes.LEARNING_PATH]: {
|
|
115
|
-
icon: LearningPath,
|
|
116
|
-
iconColor: colors.learningPath.dark,
|
|
117
|
-
backgroundColor: colors.learningPath.light
|
|
118
|
-
},
|
|
119
|
-
[contentTypes.TOPIC]: {
|
|
120
|
-
icon: BookmarkLine,
|
|
121
|
-
iconColor: colors.subject.dark,
|
|
122
|
-
backgroundColor: colors.subject.light
|
|
123
|
-
},
|
|
124
|
-
[contentTypes.MULTIDISCIPLINARY]: {
|
|
125
|
-
icon: ShareFill,
|
|
126
|
-
backgroundColor: "#b9b37b"
|
|
127
|
-
},
|
|
128
|
-
[contentTypes.CONCEPT]: {
|
|
129
|
-
icon: ChatLine,
|
|
130
|
-
iconColor: colors.concept.text,
|
|
131
|
-
backgroundColor: colors.concept.light
|
|
132
|
-
},
|
|
133
|
-
[contentTypes.EXTERNAL]: {
|
|
134
|
-
icon: LinkMedium,
|
|
135
|
-
iconColor: colors.external.dark,
|
|
136
|
-
backgroundColor: colors.external.light
|
|
137
|
-
},
|
|
138
|
-
[contentTypes.resourceEmbedTypeMapping.image]: {
|
|
139
|
-
icon: ImageLine,
|
|
140
|
-
iconColor: colors.brand.grey,
|
|
141
|
-
backgroundColor: colors.brand.greyLight
|
|
142
|
-
},
|
|
143
|
-
[contentTypes.resourceEmbedTypeMapping.audio]: {
|
|
144
|
-
icon: VoicePrintLine,
|
|
145
|
-
iconColor: colors.brand.grey,
|
|
146
|
-
backgroundColor: colors.brand.greyLight
|
|
147
|
-
},
|
|
148
|
-
[contentTypes.resourceEmbedTypeMapping.video]: {
|
|
149
|
-
icon: MovieLine,
|
|
150
|
-
iconColor: colors.brand.grey,
|
|
151
|
-
backgroundColor: colors.brand.greyLight
|
|
152
|
-
},
|
|
153
|
-
[contentTypes.MISSING]: {
|
|
154
|
-
icon: SubtractLine,
|
|
155
|
-
iconColor: colors.brand.grey,
|
|
156
|
-
backgroundColor: colors.brand.greyLight
|
|
157
|
-
}
|
|
14
|
+
export const contentTypeToBadgeVariantMap = {
|
|
15
|
+
[contentTypes.SUBJECT_MATERIAL]: "brand1",
|
|
16
|
+
[contentTypes.TASKS_AND_ACTIVITIES]: "brand2",
|
|
17
|
+
[contentTypes.ASSESSMENT_RESOURCES]: "brand2",
|
|
18
|
+
[contentTypes.SUBJECT]: "neutral",
|
|
19
|
+
[contentTypes.SOURCE_MATERIAL]: "brand1",
|
|
20
|
+
[contentTypes.LEARNING_PATH]: "brand3",
|
|
21
|
+
[contentTypes.TOPIC]: "neutral",
|
|
22
|
+
[contentTypes.MULTIDISCIPLINARY]: "neutral",
|
|
23
|
+
[contentTypes.CONCEPT]: "brand1",
|
|
24
|
+
[contentTypes.EXTERNAL]: "brand2",
|
|
25
|
+
[contentTypes.IMAGE]: "brand1",
|
|
26
|
+
[contentTypes.AUDIO]: "brand1",
|
|
27
|
+
[contentTypes.PODCAST]: "brand1",
|
|
28
|
+
[contentTypes.VIDEO]: "brand1",
|
|
29
|
+
[contentTypes.MISSING]: "neutral",
|
|
30
|
+
[contentTypes.PODCAST_SERIES]: "brand1",
|
|
31
|
+
[contentTypes.GLOSS]: "brand1",
|
|
32
|
+
[contentTypes.PROGRAMME]: "neutral",
|
|
33
|
+
[contentTypes.FRONTPAGE_ARTICLE]: "brand2"
|
|
158
34
|
};
|
|
159
|
-
export const ContentTypeBadge = _ref => {
|
|
35
|
+
export const ContentTypeBadge = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
160
36
|
let {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
size = "small",
|
|
165
|
-
border = true,
|
|
166
|
-
className,
|
|
167
|
-
...rest
|
|
37
|
+
contentType,
|
|
38
|
+
children,
|
|
39
|
+
...props
|
|
168
40
|
} = _ref;
|
|
169
41
|
const {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
};
|
|
178
|
-
return {
|
|
179
|
-
Icon: fromMap.icon,
|
|
180
|
-
style
|
|
181
|
-
};
|
|
182
|
-
}, [type]);
|
|
183
|
-
return /*#__PURE__*/_jsx(StyledContentTypeBadge, {
|
|
184
|
-
title: title,
|
|
185
|
-
background: background,
|
|
186
|
-
size: size,
|
|
187
|
-
border: border,
|
|
188
|
-
style: style,
|
|
189
|
-
"aria-label": title,
|
|
190
|
-
className: className,
|
|
191
|
-
"data-badge": "",
|
|
192
|
-
"data-type": type,
|
|
193
|
-
...rest,
|
|
194
|
-
children: /*#__PURE__*/_jsx(Icon, {})
|
|
42
|
+
t
|
|
43
|
+
} = useTranslation();
|
|
44
|
+
return /*#__PURE__*/_jsx(Badge, {
|
|
45
|
+
colorTheme: contentTypeToBadgeVariantMap[contentType ?? "missing"] ?? contentTypeToBadgeVariantMap["missing"],
|
|
46
|
+
...props,
|
|
47
|
+
ref: ref,
|
|
48
|
+
children: children ?? t(`contentTypes.${contentType}`)
|
|
195
49
|
});
|
|
196
|
-
};
|
|
197
|
-
export const SubjectMaterialBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
198
|
-
...props,
|
|
199
|
-
type: contentTypes.SUBJECT_MATERIAL
|
|
200
|
-
});
|
|
201
|
-
export const TasksAndActivitiesBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
202
|
-
...props,
|
|
203
|
-
type: contentTypes.TASKS_AND_ACTIVITIES
|
|
204
|
-
});
|
|
205
|
-
export const AssessmentResourcesBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
206
|
-
...props,
|
|
207
|
-
type: contentTypes.ASSESSMENT_RESOURCES
|
|
208
|
-
});
|
|
209
|
-
export const SubjectBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
210
|
-
...props,
|
|
211
|
-
type: contentTypes.SUBJECT
|
|
212
|
-
});
|
|
213
|
-
export const SourceMaterialBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
214
|
-
...props,
|
|
215
|
-
type: contentTypes.SOURCE_MATERIAL
|
|
216
|
-
});
|
|
217
|
-
export const LearningPathBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
218
|
-
...props,
|
|
219
|
-
type: contentTypes.LEARNING_PATH
|
|
220
|
-
});
|
|
221
|
-
export const MultidisciplinaryTopicBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
222
|
-
...props,
|
|
223
|
-
type: contentTypes.MULTIDISCIPLINARY
|
|
224
|
-
});
|
|
225
|
-
export const ConceptBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
|
|
226
|
-
...props,
|
|
227
|
-
type: contentTypes.CONCEPT
|
|
228
50
|
});
|
|
@@ -32,7 +32,8 @@ export const contentTypeToHeroMap = {
|
|
|
32
32
|
// this will never happen
|
|
33
33
|
[contentTypes.PROGRAMME]: "primary",
|
|
34
34
|
// this will never happen
|
|
35
|
-
[contentTypes.PODCAST_SERIES]: "primary"
|
|
35
|
+
[contentTypes.PODCAST_SERIES]: "primary",
|
|
36
|
+
[contentTypes.FRONTPAGE_ARTICLE]: "primary"
|
|
36
37
|
};
|
|
37
38
|
export const ContentTypeHero = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
38
39
|
let {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { LinkMedium } from "@ndla/icons
|
|
11
|
+
import { LinkMedium } from "@ndla/icons";
|
|
12
12
|
import { IconButton } from "@ndla/primitives";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
14
14
|
import { copyTextToClipboard } from "@ndla/util";
|
package/es/Embed/CodeEmbed.js
CHANGED
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useEffect, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { FileCopyLine } from "@ndla/icons
|
|
12
|
-
import { CheckLine } from "@ndla/icons/editor";
|
|
11
|
+
import { FileCopyLine, CheckLine } from "@ndla/icons";
|
|
13
12
|
import { Button, Figure } from "@ndla/primitives";
|
|
14
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
15
14
|
import { copyTextToClipboard } from "@ndla/util";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { ErrorWarningLine } from "@ndla/icons";
|
|
10
10
|
import { Figure } from "@ndla/primitives";
|
|
11
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
12
12
|
import { EmbedByline } from "../LicenseByline";
|
|
@@ -48,7 +48,7 @@ const EmbedErrorPlaceholder = _ref => {
|
|
|
48
48
|
"data-embed-type": type,
|
|
49
49
|
children: [children ?? /*#__PURE__*/_jsx(ErrorPlaceholder, {
|
|
50
50
|
"data-embed-type": type,
|
|
51
|
-
children: /*#__PURE__*/_jsx(
|
|
51
|
+
children: /*#__PURE__*/_jsx(ErrorWarningLine, {})
|
|
52
52
|
}), /*#__PURE__*/_jsx(EmbedByline, {
|
|
53
53
|
error: true,
|
|
54
54
|
type: type
|
package/es/Embed/ImageEmbed.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import parse from "html-react-parser";
|
|
10
10
|
import { useMemo, useState } from "react";
|
|
11
11
|
import { useTranslation } from "react-i18next";
|
|
12
|
-
import { AddLine } from "@ndla/icons
|
|
12
|
+
import { AddLine } from "@ndla/icons";
|
|
13
13
|
import { Figure, Image } from "@ndla/primitives";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
15
15
|
import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
10
|
-
import { PresentationLine, LoginBoxLine } from "@ndla/icons
|
|
10
|
+
import { PresentationLine, LoginBoxLine } from "@ndla/icons";
|
|
11
11
|
import { Button } from "@ndla/primitives";
|
|
12
12
|
import { styled } from "@ndla/styled-system/jsx";
|
|
13
13
|
import ErrorMessage from "./ErrorMessage";
|
package/es/FactBox/FactBox.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { forwardRef, useCallback, useEffect, useId, useMemo, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { ArrowDownShortLine } from "@ndla/icons
|
|
11
|
+
import { ArrowDownShortLine } from "@ndla/icons";
|
|
12
12
|
import { IconButton } from "@ndla/primitives";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
package/es/FileList/File.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { forwardRef } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { DownloadLine } from "@ndla/icons
|
|
11
|
+
import { DownloadLine } from "@ndla/icons";
|
|
12
12
|
import { Text } from "@ndla/primitives";
|
|
13
13
|
import { SafeLink } from "@ndla/safelink";
|
|
14
14
|
import { HStack, styled } from "@ndla/styled-system/jsx";
|
package/es/Gloss/Gloss.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { useMemo } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import { AccordionItemTrigger } from "@ark-ui/react";
|
|
12
|
-
import { ArrowDownShortLine } from "@ndla/icons
|
|
12
|
+
import { ArrowDownShortLine } from "@ndla/icons";
|
|
13
13
|
import { AccordionItem, AccordionItemContent, AccordionItemIndicator, AccordionRoot, IconButton, Text } from "@ndla/primitives";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
15
15
|
import GlossExample from "./GlossExample";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { AlertLine } from "@ndla/icons
|
|
11
|
+
import { AlertLine } from "@ndla/icons";
|
|
12
12
|
import { getLicenseByAbbreviation, getLicenseCredits } from "@ndla/licenses";
|
|
13
13
|
import { Button, Text } from "@ndla/primitives";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|