@ndla/ui 56.0.75-alpha.0 → 56.0.77-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
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ButtonProps } from "@ndla/primitives";
8
+ import { type ButtonProps } from "@ndla/primitives";
9
9
  export interface ZendeskButtonProps extends ButtonProps {
10
10
  widgetKey: string;
11
11
  locale: string;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import type { CollectionItem } from "@ark-ui/react";
9
9
  import type { ComboboxRootProps, PaginationRootProps, TagsInputRootProps } from "@ndla/primitives";
10
- import { TagSelectorRootProps } from "../TagSelector/TagSelector";
10
+ import { type TagSelectorRootProps } from "../TagSelector/TagSelector";
11
11
  type DeepPartial<T> = {
12
12
  [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
13
13
  };
package/lib/types.d.ts CHANGED
@@ -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 type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
10
10
  export interface Contributor {
11
11
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "56.0.75-alpha.0",
3
+ "version": "56.0.77-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -32,13 +32,13 @@
32
32
  "types"
33
33
  ],
34
34
  "dependencies": {
35
- "@ndla/core": "^5.0.2",
36
- "@ndla/icons": "^8.0.46-alpha.0",
37
- "@ndla/licenses": "^8.0.4-alpha.0",
38
- "@ndla/primitives": "^1.0.59-alpha.0",
39
- "@ndla/safelink": "^7.0.60-alpha.0",
35
+ "@ndla/core": "^5.0.3",
36
+ "@ndla/icons": "^8.0.47-alpha.0",
37
+ "@ndla/licenses": "^8.0.5-alpha.0",
38
+ "@ndla/primitives": "^1.0.61-alpha.0",
39
+ "@ndla/safelink": "^7.0.62-alpha.0",
40
40
  "@ndla/styled-system": "^0.0.29",
41
- "@ndla/util": "^5.0.1-alpha.0",
41
+ "@ndla/util": "^5.0.2-alpha.0",
42
42
  "html-react-parser": "^5.1.8",
43
43
  "i18next-browser-languagedetector": "^7.1.0"
44
44
  },
@@ -50,13 +50,13 @@
50
50
  "react-router-dom": "> 6.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@ndla/preset-panda": "^0.0.47",
53
+ "@ndla/preset-panda": "^0.0.48",
54
54
  "@ndla/types-backend": "^0.2.86",
55
- "@ndla/types-embed": "^5.0.4-alpha.0",
55
+ "@ndla/types-embed": "^5.0.5-alpha.0",
56
56
  "@pandacss/dev": "^0.48.0"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "8929fb445477b02e740a9a21fd2d3ef08287d99c"
61
+ "gitHead": "bb87f73d8b8c67d7a39a3e10cc06ed55325798e4"
62
62
  }
@@ -6,16 +6,16 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ComponentPropsWithRef, ReactNode, forwardRef } from "react";
9
+ import { type ComponentPropsWithRef, type ReactNode, forwardRef } from "react";
10
10
  import { ark, type HTMLArkProps } 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 { JsxStyleProps } from "@ndla/styled-system/types";
14
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
15
15
  import { ContentTypeBadge } from "..";
16
16
  import { ArticleByline } from "./ArticleByline";
17
- import { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
18
- import { Article as ArticleType } from "../types";
17
+ import { type ContentType } from "../ContentTypeBadge/ContentTypeBadge";
18
+ import type { Article as ArticleType } from "../types";
19
19
 
20
20
  const StyledArticleContent = styled(ark.section, {}, { baseComponent: true });
21
21
 
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryFn, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryFn, StoryObj } from "@storybook/react";
10
10
 
11
11
  import { ArticleByline } from "./ArticleByline";
12
12
 
@@ -6,23 +6,23 @@
6
6
  *
7
7
  */
8
8
 
9
- import { TFunction } from "i18next";
10
- import { ReactNode, forwardRef, useCallback, useEffect, useState } from "react";
9
+ import type { TFunction } from "i18next";
10
+ import { type ReactNode, forwardRef, useCallback, useEffect, useState } from "react";
11
11
  import { useTranslation } from "react-i18next";
12
12
  import { useLocation } from "react-router-dom";
13
- import { ArrowDownShortLine } from "@ndla/icons/common";
13
+ import { ArrowDownShortLine } from "@ndla/icons";
14
14
  import {
15
15
  AccordionItem,
16
16
  AccordionItemContent,
17
17
  AccordionItemIndicator,
18
- AccordionItemProps,
18
+ type AccordionItemProps,
19
19
  AccordionItemTrigger,
20
20
  AccordionRoot,
21
21
  Heading,
22
22
  } from "@ndla/primitives";
23
23
  import { styled } from "@ndla/styled-system/jsx";
24
24
  import { ArticleFootNotes } from "./ArticleFootNotes";
25
- import { FootNote } from "../types";
25
+ import type { FootNote } from "../types";
26
26
 
27
27
  const Wrapper = styled("div", {
28
28
  base: {
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { Text } from "@ndla/primitives";
10
10
  import { styled } from "@ndla/styled-system/jsx";
11
- import { FootNote as FootNoteType } from "../types";
11
+ import type { FootNote as FootNoteType } from "../types";
12
12
 
13
13
  const citeDetailString = (description: string | undefined) => (description ? `${description}. ` : "");
14
14
 
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import AudioPlayer from "./AudioPlayer";
11
11
  const TextVersion = (
12
12
  <>
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ReactNode, useId, useMemo, useState } from "react";
9
+ import { type ReactNode, useId, useMemo, useState } from "react";
10
10
  import { useTranslation } from "react-i18next";
11
11
  import { Heading, Text, Button } from "@ndla/primitives";
12
12
  import { SafeLink } from "@ndla/safelink";
@@ -84,6 +84,7 @@ const TitleWrapper = styled("div", {
84
84
  display: "flex",
85
85
  flexDirection: "column",
86
86
  gap: "xsmall",
87
+ fontFamily: "sans",
87
88
  tabletWide: {
88
89
  width: "100%",
89
90
  flexDirection: "row",
@@ -9,9 +9,7 @@
9
9
  import { useEffect, useRef, useState } from "react";
10
10
  import { useTranslation } from "react-i18next";
11
11
  import { type SliderValueChangeDetails, 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 {
16
14
  Button,
17
15
  FieldRoot,
@@ -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
 
14
14
  type Props = {
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import Breadcrumb from "./Breadcrumb";
11
11
 
12
12
  const items = [
@@ -6,10 +6,10 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ReactNode } from "react";
9
+ import { type ReactNode } from "react";
10
10
  import { useTranslation } from "react-i18next";
11
11
  import { styled } from "@ndla/styled-system/jsx";
12
- import BreadcrumbItem, { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from "./BreadcrumbItem";
12
+ import BreadcrumbItem, { type IndexedBreadcrumbItem, type SimpleBreadcrumbItem } from "./BreadcrumbItem";
13
13
 
14
14
  interface Props {
15
15
  items: SimpleBreadcrumbItem[];
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
 
9
- import { useRef, useImperativeHandle, ReactNode, forwardRef } from "react";
10
- import { ArrowRightShortLine } from "@ndla/icons/common";
9
+ import { useRef, useImperativeHandle, type ReactNode, forwardRef } from "react";
10
+ import { ArrowRightShortLine } from "@ndla/icons";
11
11
  import { SafeLink } from "@ndla/safelink";
12
12
  import { styled } from "@ndla/styled-system/jsx";
13
13
 
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import HomeBreadcrumb from "./HomeBreadcrumb";
11
11
 
12
12
  const items = [
@@ -6,11 +6,11 @@
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";
13
- import { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from "./BreadcrumbItem";
13
+ import type { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from "./BreadcrumbItem";
14
14
 
15
15
  const StyledSafeLink = styled(SafeLink, {
16
16
  base: {
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import CampaignBlock from "./CampaignBlock";
11
11
 
12
12
  export default {
@@ -7,13 +7,13 @@
7
7
  */
8
8
 
9
9
  import parse from "html-react-parser";
10
- import { ReactNode } from "react";
11
- import { ArrowRightLine } from "@ndla/icons/common";
10
+ import { type ReactNode } from "react";
11
+ import { ArrowRightLine } from "@ndla/icons";
12
12
  import { Text } from "@ndla/primitives";
13
13
  import { SafeLinkButton } from "@ndla/safelink";
14
14
  import { styled } from "@ndla/styled-system/jsx";
15
- import { CampaignBlockEmbedData } from "@ndla/types-embed";
16
- import { HeadingLevel } from "../types";
15
+ import type { CampaignBlockEmbedData } from "@ndla/types-embed";
16
+ import type { HeadingLevel } from "../types";
17
17
  import { getPossiblyRelativeUrl } from "../utils/relativeUrl";
18
18
 
19
19
  interface Image {
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryFn, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryFn, StoryObj } from "@storybook/react";
10
10
  import CodeBlock from "./CodeBlock";
11
11
 
12
12
  export default {
@@ -9,7 +9,7 @@
9
9
  import { type ComponentPropsWithRef, forwardRef, useMemo } from "react";
10
10
  import { cx } from "@ndla/styled-system/css";
11
11
  import { styled } from "@ndla/styled-system/jsx";
12
- import { type JsxStyleProps } from "@ndla/styled-system/types";
12
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
13
13
 
14
14
  interface Props extends JsxStyleProps, ComponentPropsWithRef<"pre"> {
15
15
  highlightedCode: string;
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
10
- import { ConceptData } from "@ndla/types-embed";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
+ import type { ConceptData } from "@ndla/types-embed";
11
11
  import { Concept } from "./Concept";
12
12
 
13
13
  const visualElementData: ConceptData["visualElement"] = {
@@ -6,11 +6,11 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ComponentPropsWithRef, ReactNode, forwardRef } from "react";
9
+ import { type ComponentPropsWithRef, type ReactNode, forwardRef } from "react";
10
10
  import { Figure } from "@ndla/primitives";
11
11
  import { styled } from "@ndla/styled-system/jsx";
12
- import { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api";
13
- import { ConceptVisualElementMeta } from "@ndla/types-embed";
12
+ import type { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api";
13
+ import type { ConceptVisualElementMeta } from "@ndla/types-embed";
14
14
  import { BrightcoveEmbed, ExternalEmbed, H5pEmbed, IframeEmbed, ImageEmbed } from "../Embed";
15
15
  import { EmbedByline } from "../LicenseByline/EmbedByline";
16
16
  import { licenseAttributes } from "../utils/licenseAttributes";
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryFn } from "@storybook/react";
9
+ import type { Meta, StoryFn } from "@storybook/react";
10
10
  import { ContactBlock } from "./ContactBlock";
11
11
 
12
12
  export default {
@@ -9,8 +9,8 @@
9
9
  import { useTranslation } from "react-i18next";
10
10
  import { Text } from "@ndla/primitives";
11
11
  import { styled } from "@ndla/styled-system/jsx";
12
- import { SystemStyleObject } from "@ndla/styled-system/types";
13
- import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
12
+ import type { SystemStyleObject } from "@ndla/styled-system/types";
13
+ import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
14
14
  import { LicenseContainerContent } from "../LicenseByline/EmbedByline";
15
15
 
16
16
  export type ContactBlockBackground = "strong" | "moderate" | "subtle";
@@ -7,8 +7,8 @@
7
7
  */
8
8
 
9
9
  import { useTranslation } from "react-i18next";
10
- import { Meta, StoryFn, StoryObj } from "@storybook/react";
11
- import { MovieLine } from "@ndla/icons/editor";
10
+ import type { Meta, StoryFn, StoryObj } from "@storybook/react";
11
+ import { MovieLine } from "@ndla/icons";
12
12
  import { HStack, styled } from "@ndla/styled-system/jsx";
13
13
  import { ContentTypeBadge } from "./ContentTypeBadge";
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { forwardRef } from "react";
10
10
  import { useTranslation } from "react-i18next";
11
- import { Badge, BadgeProps, type BadgeVariant } from "@ndla/primitives";
11
+ import { Badge, type BadgeProps, type BadgeVariant } from "@ndla/primitives";
12
12
  import * as contentTypes from "../model/ContentType";
13
13
 
14
14
  export interface ContentTypeBadgeProps extends Omit<BadgeProps, "colorTheme"> {
@@ -7,8 +7,8 @@
7
7
  */
8
8
 
9
9
  import { forwardRef } from "react";
10
- import { BlockQuote, BlockQuoteProps, BlockQuoteVariantProps } from "@ndla/primitives";
11
- import { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
10
+ import { BlockQuote, type BlockQuoteProps, type BlockQuoteVariantProps } from "@ndla/primitives";
11
+ import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
12
12
 
13
13
  export type ContentTypeBlockQuoteVariant = "colored" | "neutral";
14
14
 
@@ -7,8 +7,8 @@
7
7
  */
8
8
 
9
9
  import { forwardRef } from "react";
10
- import { FramedContent, FramedContentProps, FramedContentVariantProps } from "@ndla/primitives";
11
- import { ContentType } from "..";
10
+ import { FramedContent, type FramedContentProps, type FramedContentVariantProps } from "@ndla/primitives";
11
+ import type { ContentType } from "..";
12
12
 
13
13
  const contentTypeToVariantMapping = {
14
14
  "subject-material": "brand1",
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryFn } from "@storybook/react";
9
+ import type { Meta, StoryFn } from "@storybook/react";
10
10
  import { HeroBackground, HeroContent, PageContent, Text } from "@ndla/primitives";
11
11
  import { styled } from "@ndla/styled-system/jsx";
12
12
  import { ContentTypeHero } from "./ContentTypeHero";
@@ -7,8 +7,8 @@
7
7
  */
8
8
 
9
9
  import { forwardRef } from "react";
10
- import { Hero, HeroProps, HeroVariant } from "@ndla/primitives";
11
- import { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
10
+ import { Hero, type HeroProps, type HeroVariant } from "@ndla/primitives";
11
+ import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
12
12
  import * as contentTypes from "../model/ContentType";
13
13
 
14
14
  export const contentTypeToHeroMap: Record<ContentType, HeroVariant> = {
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ReactNode, useCallback, useEffect, useMemo, useState } from "react";
9
+ import { type ReactNode, 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";
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import { PageContent } from "@ndla/primitives";
11
- import { AudioEmbedData, AudioMeta } from "@ndla/types-embed";
11
+ import type { AudioEmbedData, AudioMeta } from "@ndla/types-embed";
12
12
  import AudioEmbed from "./AudioEmbed";
13
13
  import { ArticleContent, ArticleWrapper } from "../Article";
14
14
 
@@ -7,9 +7,9 @@
7
7
  */
8
8
 
9
9
  import { Figure } from "@ndla/primitives";
10
- import { AudioMetaData } from "@ndla/types-embed";
10
+ import type { AudioMetaData } from "@ndla/types-embed";
11
11
  import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder";
12
- import { Author } from "./ImageEmbed";
12
+ import type { Author } from "./ImageEmbed";
13
13
  import AudioPlayer from "../AudioPlayer";
14
14
  import { EmbedByline } from "../LicenseByline";
15
15
  import { licenseAttributes } from "../utils/licenseAttributes";
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import { PageContent } from "@ndla/primitives";
11
- import { BrightcoveData, BrightcoveEmbedData, BrightcoveMetaData } from "@ndla/types-embed";
11
+ import type { BrightcoveData, BrightcoveEmbedData, BrightcoveMetaData } from "@ndla/types-embed";
12
12
  import BrightcoveEmbed from "./BrightcoveEmbed";
13
13
  import { ArticleContent, ArticleWrapper } from "../Article";
14
14
 
@@ -11,9 +11,9 @@ import { useEffect, useMemo, useRef, useState } from "react";
11
11
  import { useTranslation } from "react-i18next";
12
12
  import { Button, Figure } from "@ndla/primitives";
13
13
  import { styled } from "@ndla/styled-system/jsx";
14
- import { BrightcoveEmbedData, BrightcoveMetaData, BrightcoveVideoSource } from "@ndla/types-embed";
14
+ import type { BrightcoveEmbedData, BrightcoveMetaData, BrightcoveVideoSource } from "@ndla/types-embed";
15
15
  import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder";
16
- import { RenderContext } from "./types";
16
+ import type { RenderContext } from "./types";
17
17
  import { EmbedByline } from "../LicenseByline";
18
18
  import { licenseAttributes } from "../utils/licenseAttributes";
19
19
 
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import type { CodeEmbedData, CodeMetaData } from "@ndla/types-embed";
11
11
  import CodeEmbed from "./CodeEmbed";
12
12
 
@@ -8,15 +8,14 @@
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
- import { CodeMetaData } from "@ndla/types-embed";
14
+ import type { CodeMetaData } from "@ndla/types-embed";
16
15
  import { copyTextToClipboard } from "@ndla/util";
17
16
  import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder";
18
17
  import { CodeBlock, codeLanguageOptions } from "../CodeBlock";
19
- import { ICodeLangugeOption } from "../CodeBlock/codeLanguageOptions";
18
+ import type { ICodeLangugeOption } from "../CodeBlock/codeLanguageOptions";
20
19
 
21
20
  interface Props {
22
21
  embed: CodeMetaData;
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import { PageContent } from "@ndla/primitives";
11
- import { ConceptData, ConceptEmbedData } from "@ndla/types-embed";
11
+ import type { ConceptData, ConceptEmbedData } from "@ndla/types-embed";
12
12
  import { ConceptEmbed } from "./ConceptEmbed";
13
13
  import { ArticleContent, ArticleWrapper } from "../Article";
14
14
 
@@ -11,12 +11,12 @@ import { forwardRef, useMemo, useRef } from "react";
11
11
  import { Portal } from "@ark-ui/react";
12
12
  import { PopoverContent, PopoverRoot, PopoverTrigger } from "@ndla/primitives";
13
13
  import { styled } from "@ndla/styled-system/jsx";
14
- import { ConceptMetaData } from "@ndla/types-embed";
14
+ import type { ConceptMetaData } from "@ndla/types-embed";
15
15
  import { ConceptInlineTriggerButton } from "./ConceptInlineTriggerButton";
16
16
  import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder";
17
17
  import { GlossEmbed } from "./GlossEmbed";
18
- import { RenderContext } from "./types";
19
- import { Concept, ConceptProps } from "../Concept/Concept";
18
+ import type { RenderContext } from "./types";
19
+ import { Concept, type ConceptProps } from "../Concept/Concept";
20
20
 
21
21
  interface BaseProps {
22
22
  renderContext?: RenderContext;
@@ -6,10 +6,10 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ReactNode } from "react";
9
+ import type { ReactNode } from "react";
10
10
  import { useTranslation } from "react-i18next";
11
11
  import { Text } from "@ndla/primitives";
12
- import { ContentLinkMetaData } from "@ndla/types-embed";
12
+ import type { ContentLinkMetaData } from "@ndla/types-embed";
13
13
 
14
14
  interface Props {
15
15
  embed: ContentLinkMetaData;
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ReactNode } from "react";
9
+ import type { ReactNode } from "react";
10
10
  import { styled } from "@ndla/styled-system/jsx";
11
- import { CopyrightMetaData } from "@ndla/types-embed";
11
+ import type { CopyrightMetaData } from "@ndla/types-embed";
12
12
  import { EmbedByline } from "../LicenseByline";
13
13
 
14
14
  interface Props {
@@ -6,12 +6,12 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ReactNode } from "react";
10
- import { Report } from "@ndla/icons/common";
9
+ import { type ReactNode } from "react";
10
+ import { ErrorWarningLine } from "@ndla/icons";
11
11
  import { Figure, type FigureFloat, type FigureSize } from "@ndla/primitives";
12
12
  import { styled } from "@ndla/styled-system/jsx";
13
13
  import { EmbedByline } from "../LicenseByline";
14
- import { EmbedBylineErrorProps } from "../LicenseByline/EmbedByline";
14
+ import { type EmbedBylineErrorProps } from "../LicenseByline/EmbedByline";
15
15
 
16
16
  interface Props {
17
17
  type: EmbedBylineErrorProps["type"];
@@ -51,7 +51,7 @@ const EmbedErrorPlaceholder = ({ type, children, figureType, float }: Props) =>
51
51
  <StyledFigure size={figureType} float={float} data-embed-type={type}>
52
52
  {children ?? (
53
53
  <ErrorPlaceholder data-embed-type={type}>
54
- <Report />
54
+ <ErrorWarningLine />
55
55
  </ErrorPlaceholder>
56
56
  )}
57
57
  <EmbedByline error type={type} />
@@ -10,7 +10,7 @@ import { forwardRef } from "react";
10
10
  import { ark, type HTMLArkProps } from "@ark-ui/react";
11
11
  import { css, cva } from "@ndla/styled-system/css";
12
12
  import { styled } from "@ndla/styled-system/jsx";
13
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
13
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
14
14
 
15
15
  const embedWrapperRecipe = cva({
16
16
  base: {
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import { Meta, StoryObj } from "@storybook/react";
9
+ import type { Meta, StoryObj } from "@storybook/react";
10
10
  import { PageContent } from "@ndla/primitives";
11
- import { OembedEmbedData, OembedData } from "@ndla/types-embed";
11
+ import type { OembedEmbedData, OembedData } from "@ndla/types-embed";
12
12
  import ExternalEmbed from "./ExternalEmbed";
13
13
  import { ArticleWrapper, ArticleContent } from "../Article";
14
14