@ndla/ui 56.0.75-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.
Files changed (184) hide show
  1. package/dist/panda.buildinfo.json +1 -0
  2. package/dist/styles.css +4 -0
  3. package/es/Article/ArticleByline.js +1 -1
  4. package/es/AudioPlayer/AudioPlayer.js +1 -0
  5. package/es/AudioPlayer/Controls.js +1 -3
  6. package/es/AudioPlayer/SpeechControl.js +1 -1
  7. package/es/Breadcrumb/BreadcrumbItem.js +1 -1
  8. package/es/Breadcrumb/HomeBreadcrumb.js +1 -1
  9. package/es/CampaignBlock/CampaignBlock.js +1 -1
  10. package/es/CopyParagraphButton/CopyParagraphButton.js +1 -1
  11. package/es/Embed/CodeEmbed.js +1 -2
  12. package/es/Embed/EmbedErrorPlaceholder.js +2 -2
  13. package/es/Embed/ImageEmbed.js +1 -1
  14. package/es/Embed/UuDisclaimerEmbed.js +1 -1
  15. package/es/ErrorMessage/ErrorResourceAccessDenied.js +1 -1
  16. package/es/FactBox/FactBox.js +1 -1
  17. package/es/FileList/File.js +1 -1
  18. package/es/Gloss/Gloss.js +1 -1
  19. package/es/LicenseByline/EmbedByline.js +1 -1
  20. package/es/LinkBlock/LinkBlock.js +1 -2
  21. package/es/RelatedArticleList/RelatedArticleList.js +1 -1
  22. package/es/ResourceBox/ResourceBox.js +1 -1
  23. package/es/TagSelector/TagSelector.js +1 -1
  24. package/lib/Article/Article.d.ts +3 -3
  25. package/lib/Article/ArticleByline.d.ts +3 -3
  26. package/lib/Article/ArticleByline.js +2 -2
  27. package/lib/Article/ArticleFootNotes.d.ts +1 -1
  28. package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
  29. package/lib/AudioPlayer/AudioPlayer.js +1 -0
  30. package/lib/AudioPlayer/Controls.js +6 -8
  31. package/lib/AudioPlayer/SpeechControl.js +2 -2
  32. package/lib/Breadcrumb/Breadcrumb.d.ts +2 -2
  33. package/lib/Breadcrumb/BreadcrumbItem.d.ts +1 -1
  34. package/lib/Breadcrumb/BreadcrumbItem.js +2 -2
  35. package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -1
  36. package/lib/Breadcrumb/HomeBreadcrumb.js +4 -4
  37. package/lib/CampaignBlock/CampaignBlock.d.ts +2 -2
  38. package/lib/CampaignBlock/CampaignBlock.js +2 -2
  39. package/lib/CodeBlock/CodeBlock.d.ts +1 -1
  40. package/lib/Concept/Concept.d.ts +3 -3
  41. package/lib/ContactBlock/ContactBlock.d.ts +1 -1
  42. package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +1 -1
  43. package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.d.ts +2 -2
  44. package/lib/ContentTypeFramedContent/ContentTypeFramedContent.d.ts +2 -2
  45. package/lib/ContentTypeHero/ContentTypeHero.d.ts +2 -2
  46. package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -1
  47. package/lib/CopyParagraphButton/CopyParagraphButton.js +2 -2
  48. package/lib/Embed/AudioEmbed.d.ts +2 -2
  49. package/lib/Embed/BrightcoveEmbed.d.ts +2 -2
  50. package/lib/Embed/CodeEmbed.d.ts +1 -1
  51. package/lib/Embed/CodeEmbed.js +2 -3
  52. package/lib/Embed/ConceptEmbed.d.ts +3 -3
  53. package/lib/Embed/ContentLinkEmbed.d.ts +2 -2
  54. package/lib/Embed/CopyrightEmbed.d.ts +2 -2
  55. package/lib/Embed/EmbedErrorPlaceholder.d.ts +2 -2
  56. package/lib/Embed/EmbedErrorPlaceholder.js +2 -2
  57. package/lib/Embed/EmbedWrapper.d.ts +1 -1
  58. package/lib/Embed/ExternalEmbed.d.ts +1 -1
  59. package/lib/Embed/FootnoteEmbed.d.ts +1 -1
  60. package/lib/Embed/GlossEmbed.d.ts +1 -1
  61. package/lib/Embed/H5pEmbed.d.ts +1 -1
  62. package/lib/Embed/IframeEmbed.d.ts +1 -1
  63. package/lib/Embed/ImageEmbed.d.ts +3 -3
  64. package/lib/Embed/ImageEmbed.js +2 -2
  65. package/lib/Embed/RelatedContentEmbed.d.ts +1 -1
  66. package/lib/Embed/UnknownEmbed.d.ts +1 -1
  67. package/lib/Embed/UuDisclaimerEmbed.d.ts +2 -2
  68. package/lib/Embed/UuDisclaimerEmbed.js +2 -2
  69. package/lib/Embed/types.d.ts +3 -3
  70. package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
  71. package/lib/ErrorMessage/ErrorResourceAccessDenied.js +3 -3
  72. package/lib/FactBox/FactBox.d.ts +1 -1
  73. package/lib/FactBox/FactBox.js +2 -2
  74. package/lib/FileList/File.d.ts +1 -1
  75. package/lib/FileList/File.js +2 -2
  76. package/lib/FileList/FileList.d.ts +1 -1
  77. package/lib/Gloss/Gloss.d.ts +1 -1
  78. package/lib/Gloss/Gloss.js +2 -2
  79. package/lib/Gloss/GlossExample.d.ts +1 -1
  80. package/lib/Grid/Grid.d.ts +1 -1
  81. package/lib/Grid/GridParallaxItem.d.ts +1 -1
  82. package/lib/LicenseByline/EmbedByline.d.ts +6 -6
  83. package/lib/LicenseByline/EmbedByline.js +2 -2
  84. package/lib/LicenseByline/LicenseLink.d.ts +2 -2
  85. package/lib/LinkBlock/LinkBlock.d.ts +1 -1
  86. package/lib/LinkBlock/LinkBlock.js +3 -4
  87. package/lib/LinkBlock/LinkBlockSection.d.ts +1 -1
  88. package/lib/RelatedArticleList/RelatedArticleList.d.ts +2 -2
  89. package/lib/RelatedArticleList/RelatedArticleList.js +2 -2
  90. package/lib/ResourceBox/ResourceBox.js +2 -2
  91. package/lib/TagSelector/TagSelector.d.ts +1 -1
  92. package/lib/TagSelector/TagSelector.js +2 -2
  93. package/lib/ZendeskButton/ZendeskButton.d.ts +1 -1
  94. package/lib/i18n/useComponentTranslations.d.ts +1 -1
  95. package/lib/types.d.ts +1 -1
  96. package/package.json +10 -10
  97. package/src/Article/Article.tsx +4 -4
  98. package/src/Article/ArticleByline.stories.tsx +1 -1
  99. package/src/Article/ArticleByline.tsx +5 -5
  100. package/src/Article/ArticleFootNotes.tsx +1 -1
  101. package/src/AudioPlayer/AudiPlayer.stories.tsx +1 -1
  102. package/src/AudioPlayer/AudioPlayer.tsx +2 -1
  103. package/src/AudioPlayer/Controls.tsx +1 -3
  104. package/src/AudioPlayer/SpeechControl.tsx +1 -1
  105. package/src/Breadcrumb/Breadcrumb.stories.tsx +1 -1
  106. package/src/Breadcrumb/Breadcrumb.tsx +2 -2
  107. package/src/Breadcrumb/BreadcrumbItem.tsx +2 -2
  108. package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +1 -1
  109. package/src/Breadcrumb/HomeBreadcrumb.tsx +2 -2
  110. package/src/CampaignBlock/CampaignBlock.stories.tsx +1 -1
  111. package/src/CampaignBlock/CampaignBlock.tsx +4 -4
  112. package/src/CodeBlock/CodeBlock.stories.tsx +1 -1
  113. package/src/CodeBlock/CodeBlock.tsx +1 -1
  114. package/src/Concept/Concept.stories.tsx +2 -2
  115. package/src/Concept/Concept.tsx +3 -3
  116. package/src/ContactBlock/ContactBlock.stories.tsx +1 -1
  117. package/src/ContactBlock/ContactBlock.tsx +2 -2
  118. package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +2 -2
  119. package/src/ContentTypeBadge/ContentTypeBadge.tsx +1 -1
  120. package/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx +2 -2
  121. package/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx +2 -2
  122. package/src/ContentTypeHero/ContentTypeHero.stories.tsx +1 -1
  123. package/src/ContentTypeHero/ContentTypeHero.tsx +2 -2
  124. package/src/CopyParagraphButton/CopyParagraphButton.tsx +2 -2
  125. package/src/Embed/AudioEmbed.stories.tsx +2 -2
  126. package/src/Embed/AudioEmbed.tsx +2 -2
  127. package/src/Embed/BrightcoveEmbed.stories.tsx +2 -2
  128. package/src/Embed/BrightcoveEmbed.tsx +2 -2
  129. package/src/Embed/CodeEmbed.stories.tsx +1 -1
  130. package/src/Embed/CodeEmbed.tsx +3 -4
  131. package/src/Embed/ConceptEmbed.stories.tsx +2 -2
  132. package/src/Embed/ConceptEmbed.tsx +3 -3
  133. package/src/Embed/ContentLinkEmbed.tsx +2 -2
  134. package/src/Embed/CopyrightEmbed.tsx +2 -2
  135. package/src/Embed/EmbedErrorPlaceholder.tsx +4 -4
  136. package/src/Embed/EmbedWrapper.tsx +1 -1
  137. package/src/Embed/ExternalEmbed.stories.tsx +2 -2
  138. package/src/Embed/ExternalEmbed.tsx +1 -1
  139. package/src/Embed/FootnoteEmbed.stories.tsx +2 -2
  140. package/src/Embed/FootnoteEmbed.tsx +1 -1
  141. package/src/Embed/GlossEmbed.stories.tsx +2 -2
  142. package/src/Embed/GlossEmbed.tsx +1 -1
  143. package/src/Embed/H5pEmbed.stories.tsx +2 -2
  144. package/src/Embed/H5pEmbed.tsx +1 -1
  145. package/src/Embed/IframeEmbed.stories.tsx +2 -2
  146. package/src/Embed/IframeEmbed.tsx +1 -1
  147. package/src/Embed/ImageEmbed.stories.tsx +4 -4
  148. package/src/Embed/ImageEmbed.tsx +5 -5
  149. package/src/Embed/InlineTriggerButton.tsx +1 -1
  150. package/src/Embed/RelatedContentEmbed.stories.tsx +2 -2
  151. package/src/Embed/RelatedContentEmbed.tsx +1 -1
  152. package/src/Embed/UnknownEmbed.tsx +1 -1
  153. package/src/Embed/UuDisclaimerEmbed.stories.tsx +2 -2
  154. package/src/Embed/UuDisclaimerEmbed.tsx +3 -3
  155. package/src/Embed/types.ts +3 -3
  156. package/src/ErrorMessage/ErrorMessage.stories.tsx +1 -1
  157. package/src/ErrorMessage/ErrorMessage.tsx +1 -1
  158. package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +1 -1
  159. package/src/FactBox/FactBox.tsx +11 -2
  160. package/src/FactBox/Factbox.stories.tsx +1 -1
  161. package/src/FileList/File.tsx +2 -2
  162. package/src/FileList/FileList.stories.tsx +3 -4
  163. package/src/FileList/FileList.tsx +1 -1
  164. package/src/Gloss/Gloss.stories.tsx +1 -1
  165. package/src/Gloss/Gloss.tsx +2 -2
  166. package/src/Gloss/GlossExample.tsx +1 -1
  167. package/src/Grid/Grid.stories.tsx +1 -1
  168. package/src/Grid/Grid.tsx +1 -1
  169. package/src/Grid/GridParallaxItem.tsx +1 -1
  170. package/src/KeyFigure/KeyFigure.stories.tsx +1 -1
  171. package/src/LicenseByline/EmbedByline.stories.tsx +1 -1
  172. package/src/LicenseByline/EmbedByline.tsx +7 -7
  173. package/src/LicenseByline/LicenseLink.tsx +2 -2
  174. package/src/LinkBlock/LinkBlock.stories.tsx +1 -1
  175. package/src/LinkBlock/LinkBlock.tsx +2 -3
  176. package/src/LinkBlock/LinkBlockSection.tsx +1 -1
  177. package/src/Pitch/Pitch.stories.tsx +2 -2
  178. package/src/RelatedArticleList/RelatedArticleList.tsx +3 -3
  179. package/src/ResourceBox/ResourceBox.tsx +1 -1
  180. package/src/TagSelector/TagSelector.stories.tsx +2 -4
  181. package/src/TagSelector/TagSelector.tsx +7 -7
  182. package/src/ZendeskButton/ZendeskButton.tsx +1 -1
  183. package/src/i18n/useComponentTranslations.ts +1 -1
  184. package/src/types.ts +1 -1
@@ -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",
package/dist/styles.css CHANGED
@@ -605,6 +605,10 @@
605
605
  border-color: var(--colors-stroke-default);
606
606
  }
607
607
 
608
+ .ff_sans {
609
+ font-family: var(--fonts-sans);
610
+ }
611
+
608
612
  .as_flex-start {
609
613
  align-self: flex-start;
610
614
  }
@@ -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/common";
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";
@@ -80,6 +80,7 @@ const TitleWrapper = styled("div", {
80
80
  display: "flex",
81
81
  flexDirection: "column",
82
82
  gap: "xsmall",
83
+ fontFamily: "sans",
83
84
  tabletWide: {
84
85
  width: "100%",
85
86
  flexDirection: "row",
@@ -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/action";
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/common";
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/common";
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/common";
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/common";
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";
@@ -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/editor";
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";
@@ -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/action";
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 { Report } from "@ndla/icons/common";
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(Report, {})
51
+ children: /*#__PURE__*/_jsx(ErrorWarningLine, {})
52
52
  }), /*#__PURE__*/_jsx(EmbedByline, {
53
53
  error: true,
54
54
  type: type
@@ -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/action";
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";
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { InformationLine } from "@ndla/icons/common";
9
+ import { InformationLine } from "@ndla/icons";
10
10
  import { MessageBox } from "@ndla/primitives";
11
11
  import { SafeLink } from "@ndla/safelink";
12
12
  import { styled } from "@ndla/styled-system/jsx";
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { useTranslation } from "react-i18next";
10
- import { PresentationLine, LoginBoxLine } from "@ndla/icons/common";
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";
@@ -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/common";
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";
@@ -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/common";
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/common";
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/common";
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";
@@ -8,8 +8,7 @@
8
8
 
9
9
  import parse from "html-react-parser";
10
10
  import { useMemo } from "react";
11
- import { ArrowRightLine } from "@ndla/icons/common";
12
- import { CalendarLine } from "@ndla/icons/editor";
11
+ import { ArrowRightLine, CalendarLine } from "@ndla/icons";
13
12
  import { Heading } from "@ndla/primitives";
14
13
  import { SafeLink } from "@ndla/safelink";
15
14
  import { styled } from "@ndla/styled-system/jsx";
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { Children, useMemo, useState } from "react";
10
10
  import { useTranslation } from "react-i18next";
11
- import { ExternalLinkLine } from "@ndla/icons/common";
11
+ import { ExternalLinkLine } from "@ndla/icons";
12
12
  import { CardContent, CardHeading, CardRoot, Text, Heading, Button } from "@ndla/primitives";
13
13
  import { SafeLink } from "@ndla/safelink";
14
14
  import { styled } from "@ndla/styled-system/jsx";
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { breakpoints } from "@ndla/core";
10
- import { ShareBoxLine } from "@ndla/icons/common";
10
+ import { ShareBoxLine } from "@ndla/icons";
11
11
  import { Heading, Image, Text } from "@ndla/primitives";
12
12
  import { SafeLinkButton } from "@ndla/safelink";
13
13
  import { styled } from "@ndla/styled-system/jsx";
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { forwardRef, useEffect, useId, useRef } from "react";
10
10
  import { useTagsInputContext, useComboboxContext } from "@ark-ui/react";
11
- import { CloseLine } from "@ndla/icons/action";
11
+ import { CloseLine } from "@ndla/icons";
12
12
  import { ComboboxClearTrigger, ComboboxControl, ComboboxInput, ComboboxLabel, ComboboxRoot, ComboboxTrigger, TagsInputControl, TagsInputInput, TagsInputItem, TagsInputItemDeleteTrigger, TagsInputItemPreview, TagsInputItemText, TagsInputRoot, TagsInputItemInput } from "@ndla/primitives";
13
13
  import { contains } from "@ndla/util";
14
14
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ReactNode } from "react";
9
- import { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
10
- import { Article as ArticleType } from "../types";
8
+ import { type ReactNode } from "react";
9
+ import { type ContentType } from "../ContentTypeBadge/ContentTypeBadge";
10
+ import type { Article as ArticleType } from "../types";
11
11
  export declare const ArticleContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
12
12
  consumeCss?: boolean;
13
13
  } & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLElement>>;
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ReactNode } from "react";
9
- import { AccordionItemProps } from "@ndla/primitives";
10
- import { FootNote } from "../types";
8
+ import { type ReactNode } from "react";
9
+ import { type AccordionItemProps } from "@ndla/primitives";
10
+ import type { FootNote } from "../types";
11
11
  type AuthorProps = {
12
12
  name: string;
13
13
  };
@@ -7,7 +7,7 @@ exports.ArticleBylineAccordionItem = exports.ArticleByline = void 0;
7
7
  var _react = require("react");
8
8
  var _reactI18next = require("react-i18next");
9
9
  var _reactRouterDom = require("react-router-dom");
10
- var _common = require("@ndla/icons/common");
10
+ var _icons = require("@ndla/icons");
11
11
  var _primitives = require("@ndla/primitives");
12
12
  var _jsx2 = require("@ndla/styled-system/jsx");
13
13
  var _ArticleFootNotes = require("./ArticleFootNotes");
@@ -178,7 +178,7 @@ const ArticleBylineAccordionItem = exports.ArticleBylineAccordionItem = /*#__PUR
178
178
  })
179
179
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemIndicator, {
180
180
  asChild: true,
181
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowDownShortLine, {})
181
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowDownShortLine, {})
182
182
  })]
183
183
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemContent, {
184
184
  children: children
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { FootNote as FootNoteType } from "../types";
8
+ import type { FootNote as FootNoteType } from "../types";
9
9
  type ArticleFootNotesProps = {
10
10
  footNotes: Array<FootNoteType>;
11
11
  };
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ReactNode } from "react";
8
+ import { type ReactNode } from "react";
9
9
  type Props = {
10
10
  src: string;
11
11
  title: string;
@@ -86,6 +86,7 @@ const TitleWrapper = (0, _jsx2.styled)("div", {
86
86
  display: "flex",
87
87
  flexDirection: "column",
88
88
  gap: "xsmall",
89
+ fontFamily: "sans",
89
90
  tabletWide: {
90
91
  width: "100%",
91
92
  flexDirection: "row",
@@ -7,9 +7,7 @@ exports.default = void 0;
7
7
  var _react = require("react");
8
8
  var _reactI18next = require("react-i18next");
9
9
  var _react2 = require("@ark-ui/react");
10
- var _action = require("@ndla/icons/action");
11
- var _common = require("@ndla/icons/common");
12
- var _editor = require("@ndla/icons/editor");
10
+ var _icons = require("@ndla/icons");
13
11
  var _primitives = require("@ndla/primitives");
14
12
  var _jsx2 = require("@ndla/styled-system/jsx");
15
13
  var _patterns = require("@ndla/styled-system/patterns");
@@ -218,18 +216,18 @@ const Controls = _ref => {
218
216
  title: t("audio.controls.rewind15sec"),
219
217
  "aria-label": t("audio.controls.rewind15sec"),
220
218
  onClick: () => onSeekSeconds(-15),
221
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.Replay15Line, {})
219
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Replay15Line, {})
222
220
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(PlayButton, {
223
221
  "aria-label": t(playing ? t("audio.pause") : t("audio.play")),
224
222
  variant: "primary",
225
223
  onClick: togglePlay,
226
- children: playing ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.PauseLine, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.PlayFill, {})
224
+ children: playing ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PauseLine, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PlayFill, {})
227
225
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Forward15SecButton, {
228
226
  variant: "tertiary",
229
227
  title: t("audio.controls.forward15sec"),
230
228
  "aria-label": t("audio.controls.forward15sec"),
231
229
  onClick: () => onSeekSeconds(15),
232
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.Forward15Line, {})
230
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Forward15Line, {})
233
231
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(ProgressWrapper, {
234
232
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StyledText, {
235
233
  textStyle: "label.medium",
@@ -293,7 +291,7 @@ const Controls = _ref => {
293
291
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SelectItemText, {
294
292
  children: [speed, "x"]
295
293
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SelectItemIndicator, {
296
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_editor.CheckLine, {})
294
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CheckLine, {})
297
295
  })]
298
296
  }, speed))
299
297
  })]
@@ -307,7 +305,7 @@ const Controls = _ref => {
307
305
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(VolumeButton, {
308
306
  variant: "tertiary",
309
307
  "aria-label": t("audio.controls.adjustVolume"),
310
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.VolumeUpFill, {})
308
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.VolumeUpFill, {})
311
309
  })
312
310
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledPopoverContent, {
313
311
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SliderRoot, {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = require("react");
8
8
  var _reactI18next = require("react-i18next");
9
- var _common = require("@ndla/icons/common");
9
+ var _icons = require("@ndla/icons");
10
10
  var _primitives = require("@ndla/primitives");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  /**
@@ -51,7 +51,7 @@ const SpeechControl = _ref => {
51
51
  variant: "tertiary",
52
52
  "aria-label": t(`${type}.play`),
53
53
  onClick: togglePlay,
54
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.VolumeUpFill, {})
54
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.VolumeUpFill, {})
55
55
  })
56
56
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TooltipContent, {
57
57
  children: t(`${type}.play`)
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ReactNode } from "react";
9
- import { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from "./BreadcrumbItem";
8
+ import { type ReactNode } from "react";
9
+ import { type IndexedBreadcrumbItem, type SimpleBreadcrumbItem } from "./BreadcrumbItem";
10
10
  interface Props {
11
11
  items: SimpleBreadcrumbItem[];
12
12
  collapseFirst?: boolean;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ReactNode } from "react";
8
+ import { type ReactNode } from "react";
9
9
  export interface SimpleBreadcrumbItem {
10
10
  to: string | Partial<Location>;
11
11
  name: ReactNode;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = require("react");
8
- var _common = require("@ndla/icons/common");
8
+ var _icons = require("@ndla/icons");
9
9
  var _safelink = require("@ndla/safelink");
10
10
  var _jsx2 = require("@ndla/styled-system/jsx");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
@@ -62,7 +62,7 @@ const BreadcrumbItem = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
62
62
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
63
63
  children: name
64
64
  })
65
- }), renderSeparator ? renderSeparator(item, totalCount) : !isLast && /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowRightShortLine, {})]
65
+ }), renderSeparator ? renderSeparator(item, totalCount) : !isLast && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightShortLine, {})]
66
66
  });
67
67
  });
68
68
  var _default = exports.default = BreadcrumbItem;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { SimpleBreadcrumbItem } from "./BreadcrumbItem";
8
+ import type { SimpleBreadcrumbItem } from "./BreadcrumbItem";
9
9
  interface Props {
10
10
  items: SimpleBreadcrumbItem[];
11
11
  }
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _common = require("@ndla/icons/common");
7
+ var _icons = require("@ndla/icons");
8
8
  var _safelink = require("@ndla/safelink");
9
9
  var _jsx2 = require("@ndla/styled-system/jsx");
10
10
  var _Breadcrumb = _interopRequireDefault(require("./Breadcrumb"));
@@ -30,7 +30,7 @@ const StyledSafeLink = (0, _jsx2.styled)(_safelink.SafeLink, {
30
30
  }
31
31
  }
32
32
  });
33
- const StyledArrowRight = (0, _jsx2.styled)(_common.ArrowRightShortLine, {
33
+ const StyledArrowRight = (0, _jsx2.styled)(_icons.ArrowRightShortLine, {
34
34
  base: {
35
35
  tabletDown: {
36
36
  display: "none"
@@ -56,7 +56,7 @@ const HomeBreadcrumb = _ref => {
56
56
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(IconSafeLink, {
57
57
  "aria-label": item.name,
58
58
  to: item.to,
59
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.HomeLine, {
59
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.HomeLine, {
60
60
  title: item.name
61
61
  })
62
62
  });
@@ -73,7 +73,7 @@ const HomeBreadcrumb = _ref => {
73
73
  if (item.index === 0) {
74
74
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledArrowRight, {});
75
75
  }
76
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowRightShortLine, {});
76
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightShortLine, {});
77
77
  };
78
78
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Breadcrumb.default, {
79
79
  items: items,
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { CampaignBlockEmbedData } from "@ndla/types-embed";
9
- import { HeadingLevel } from "../types";
8
+ import type { CampaignBlockEmbedData } from "@ndla/types-embed";
9
+ import type { HeadingLevel } from "../types";
10
10
  interface Image {
11
11
  src: string;
12
12
  alt: string;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
8
- var _common = require("@ndla/icons/common");
8
+ var _icons = require("@ndla/icons");
9
9
  var _primitives = require("@ndla/primitives");
10
10
  var _safelink = require("@ndla/safelink");
11
11
  var _jsx2 = require("@ndla/styled-system/jsx");
@@ -179,7 +179,7 @@ const CampaignBlock = _ref2 => {
179
179
  }), !!url?.url && /*#__PURE__*/(0, _jsxRuntime.jsxs)(LinkButton, {
180
180
  url: url.url,
181
181
  path: path,
182
- children: [(0, _htmlReactParser.default)(url.text ?? ""), /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowRightLine, {})]
182
+ children: [(0, _htmlReactParser.default)(url.text ?? ""), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightLine, {})]
183
183
  })]
184
184
  }), imageSide !== "left" && imageComponent]
185
185
  })
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { type ComponentPropsWithRef } from "react";
9
- import { type JsxStyleProps } from "@ndla/styled-system/types";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
10
  interface Props extends JsxStyleProps, ComponentPropsWithRef<"pre"> {
11
11
  highlightedCode: string;
12
12
  format: string;
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ComponentPropsWithRef, ReactNode } from "react";
9
- import { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api";
10
- import { ConceptVisualElementMeta } from "@ndla/types-embed";
8
+ import { type ComponentPropsWithRef, type ReactNode } from "react";
9
+ import type { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api";
10
+ import type { ConceptVisualElementMeta } from "@ndla/types-embed";
11
11
  export interface ConceptProps extends ComponentPropsWithRef<"figure"> {
12
12
  copyright?: ConceptCopyright;
13
13
  visualElement?: ConceptVisualElementMeta;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
8
+ import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
9
9
  export type ContactBlockBackground = "strong" | "moderate" | "subtle";
10
10
  export declare const contactBlockBackgrounds: ContactBlockBackground[];
11
11
  interface Props {
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { BadgeProps, type BadgeVariant } from "@ndla/primitives";
8
+ import { type BadgeProps, type BadgeVariant } from "@ndla/primitives";
9
9
  import * as contentTypes from "../model/ContentType";
10
10
  export interface ContentTypeBadgeProps extends Omit<BadgeProps, "colorTheme"> {
11
11
  contentType: ContentType | undefined;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { BlockQuoteProps } from "@ndla/primitives";
9
- import { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
8
+ import { type BlockQuoteProps } from "@ndla/primitives";
9
+ import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
10
10
  export type ContentTypeBlockQuoteVariant = "colored" | "neutral";
11
11
  interface Props extends Omit<BlockQuoteProps, "variant"> {
12
12
  variant?: ContentTypeBlockQuoteVariant;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { FramedContentProps } from "@ndla/primitives";
9
- import { ContentType } from "..";
8
+ import { type FramedContentProps } from "@ndla/primitives";
9
+ import type { ContentType } from "..";
10
10
  export type ContentTypeFramedContentVariant = "colored" | "neutral";
11
11
  interface Props extends FramedContentProps {
12
12
  variant?: ContentTypeFramedContentVariant;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HeroProps, HeroVariant } from "@ndla/primitives";
9
- import { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
8
+ import { type HeroProps, type HeroVariant } from "@ndla/primitives";
9
+ import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
10
10
  export declare const contentTypeToHeroMap: Record<ContentType, HeroVariant>;
11
11
  export interface ContentTypeHeroProps extends HeroProps {
12
12
  contentType: ContentType | undefined;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ReactNode } from "react";
8
+ import { type ReactNode } from "react";
9
9
  interface Props {
10
10
  children: ReactNode;
11
11
  copyText: string;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = require("react");
8
8
  var _reactI18next = require("react-i18next");
9
- var _editor = require("@ndla/icons/editor");
9
+ var _icons = require("@ndla/icons");
10
10
  var _primitives = require("@ndla/primitives");
11
11
  var _jsx2 = require("@ndla/styled-system/jsx");
12
12
  var _util = require("@ndla/util");
@@ -77,7 +77,7 @@ const CopyParagraphButton = _ref => {
77
77
  onClick: onCopyClick,
78
78
  title: tooltip,
79
79
  "aria-label": `${tooltip}: ${copyText}`,
80
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_editor.LinkMedium, {})
80
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LinkMedium, {})
81
81
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
82
82
  id: sanitizedTitle,
83
83
  tabIndex: -1,