@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,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { AudioMetaData } from "@ndla/types-embed";
9
- import { Author } from "./ImageEmbed";
8
+ import type { AudioMetaData } from "@ndla/types-embed";
9
+ import type { Author } from "./ImageEmbed";
10
10
  interface Props {
11
11
  embed: AudioMetaData;
12
12
  lang?: string;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { BrightcoveMetaData } from "@ndla/types-embed";
9
- import { RenderContext } from "./types";
8
+ import type { BrightcoveMetaData } from "@ndla/types-embed";
9
+ import type { RenderContext } from "./types";
10
10
  interface Props {
11
11
  embed: BrightcoveMetaData;
12
12
  renderContext?: RenderContext;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { CodeMetaData } from "@ndla/types-embed";
8
+ import type { CodeMetaData } from "@ndla/types-embed";
9
9
  interface Props {
10
10
  embed: CodeMetaData;
11
11
  }
@@ -6,8 +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 _action = require("@ndla/icons/action");
10
- var _editor = require("@ndla/icons/editor");
9
+ var _icons = require("@ndla/icons");
11
10
  var _primitives = require("@ndla/primitives");
12
11
  var _jsx2 = require("@ndla/styled-system/jsx");
13
12
  var _util = require("@ndla/util");
@@ -79,7 +78,7 @@ const CodeEmbed = _ref => {
79
78
  (0, _util.copyTextToClipboard)(embed.status === "success" ? embed.data.decodedContent : "");
80
79
  setIsCopied(true);
81
80
  },
82
- children: [isCopied ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_editor.CheckLine, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FileCopyLine, {}), isCopied ? t("codeBlock.copiedCode") : t("codeBlock.copyCode")]
81
+ children: [isCopied ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CheckLine, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.FileCopyLine, {}), isCopied ? t("codeBlock.copiedCode") : t("codeBlock.copyCode")]
83
82
  })]
84
83
  });
85
84
  };
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ConceptMetaData } from "@ndla/types-embed";
9
- import { RenderContext } from "./types";
10
- import { ConceptProps } from "../Concept/Concept";
8
+ import type { ConceptMetaData } from "@ndla/types-embed";
9
+ import type { RenderContext } from "./types";
10
+ import { type ConceptProps } from "../Concept/Concept";
11
11
  interface BaseProps {
12
12
  renderContext?: RenderContext;
13
13
  lang?: string;
@@ -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 { ContentLinkMetaData } from "@ndla/types-embed";
8
+ import type { ReactNode } from "react";
9
+ import type { ContentLinkMetaData } from "@ndla/types-embed";
10
10
  interface Props {
11
11
  embed: ContentLinkMetaData;
12
12
  isOembed?: boolean;
@@ -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 { CopyrightMetaData } from "@ndla/types-embed";
8
+ import type { ReactNode } from "react";
9
+ import type { CopyrightMetaData } from "@ndla/types-embed";
10
10
  interface Props {
11
11
  embed: CopyrightMetaData;
12
12
  children?: ReactNode;
@@ -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";
8
+ import { type ReactNode } from "react";
9
9
  import { type FigureFloat, type FigureSize } from "@ndla/primitives";
10
- import { EmbedBylineErrorProps } from "../LicenseByline/EmbedByline";
10
+ import { type EmbedBylineErrorProps } from "../LicenseByline/EmbedByline";
11
11
  interface Props {
12
12
  type: EmbedBylineErrorProps["type"];
13
13
  figureType?: FigureSize;
@@ -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 _primitives = require("@ndla/primitives");
9
9
  var _jsx2 = require("@ndla/styled-system/jsx");
10
10
  var _LicenseByline = require("../LicenseByline");
@@ -54,7 +54,7 @@ const EmbedErrorPlaceholder = _ref => {
54
54
  "data-embed-type": type,
55
55
  children: [children ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(ErrorPlaceholder, {
56
56
  "data-embed-type": type,
57
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.Report, {})
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ErrorWarningLine, {})
58
58
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LicenseByline.EmbedByline, {
59
59
  error: true,
60
60
  type: type
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { type HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  declare const embedWrapperRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
11
11
  noClear: {
12
12
  true: {
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { OembedMetaData } from "@ndla/types-embed";
8
+ import type { OembedMetaData } from "@ndla/types-embed";
9
9
  interface Props {
10
10
  embed: OembedMetaData;
11
11
  }
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { FootnoteMetaData } from "@ndla/types-embed";
8
+ import type { FootnoteMetaData } from "@ndla/types-embed";
9
9
  interface Props {
10
10
  embed: FootnoteMetaData;
11
11
  }
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ConceptMetaData } from "@ndla/types-embed";
8
+ import type { ConceptMetaData } from "@ndla/types-embed";
9
9
  interface Props {
10
10
  embed: ConceptMetaData;
11
11
  }
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { H5pMetaData } from "@ndla/types-embed";
8
+ import type { H5pMetaData } from "@ndla/types-embed";
9
9
  interface Props {
10
10
  embed: H5pMetaData;
11
11
  }
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { IframeMetaData } from "@ndla/types-embed";
8
+ import type { IframeMetaData } from "@ndla/types-embed";
9
9
  interface Props {
10
10
  embed: IframeMetaData;
11
11
  }
@@ -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 { ImageEmbedData, ImageMetaData } from "@ndla/types-embed";
10
- import { RenderContext } from "./types";
8
+ import { type ReactNode } from "react";
9
+ import type { ImageEmbedData, ImageMetaData } from "@ndla/types-embed";
10
+ import type { RenderContext } from "./types";
11
11
  interface Props {
12
12
  embed: ImageMetaData;
13
13
  previewAlt?: boolean;
@@ -7,7 +7,7 @@ exports.getLicenseCredits = exports.getFocalPoint = exports.getCrop = exports.de
7
7
  var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
8
8
  var _react = require("react");
9
9
  var _reactI18next = require("react-i18next");
10
- var _action = require("@ndla/icons/action");
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 _EmbedErrorPlaceholder = _interopRequireDefault(require("./EmbedErrorPlaceholder"));
@@ -233,7 +233,7 @@ const ImageEmbed = _ref => {
233
233
  "aria-label": t(`license.images.itemImage.zoom${imageSizes ? "Out" : ""}ImageButtonLabel`),
234
234
  onClick: toggleImageSize,
235
235
  "data-expanded": !!imageSizes,
236
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.AddLine, {})
236
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.AddLine, {})
237
237
  })]
238
238
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LicenseByline.EmbedByline, {
239
239
  type: "image",
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { RelatedContentMetaData } from "@ndla/types-embed";
8
+ import type { RelatedContentMetaData } from "@ndla/types-embed";
9
9
  interface Props {
10
10
  embed: RelatedContentMetaData;
11
11
  isOembed?: boolean;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { MetaData } from "@ndla/types-embed";
8
+ import type { MetaData } from "@ndla/types-embed";
9
9
  interface Props {
10
10
  embed: MetaData<any, any>;
11
11
  }
@@ -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 { UuDisclaimerMetaData } from "@ndla/types-embed";
8
+ import { type ReactNode } from "react";
9
+ import type { UuDisclaimerMetaData } from "@ndla/types-embed";
10
10
  interface Props {
11
11
  embed: UuDisclaimerMetaData;
12
12
  children?: ReactNode;
@@ -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 _primitives = require("@ndla/primitives");
9
9
  var _safelink = require("@ndla/safelink");
10
10
  var _jsx2 = require("@ndla/styled-system/jsx");
@@ -67,7 +67,7 @@ const UuDisclaimerEmbed = _ref => {
67
67
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledMessageBox, {
68
68
  variant: "warning",
69
69
  contentEditable: false,
70
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_common.InformationLine, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Disclaimer, {
70
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.InformationLine, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Disclaimer, {
71
71
  children: [embedData.disclaimer, disclaimerLink]
72
72
  })]
73
73
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ElementType } from "react";
9
- import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
10
- import { EmbedMetaData } from "@ndla/types-embed";
8
+ import type { ElementType } from "react";
9
+ import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
10
+ import type { EmbedMetaData } from "@ndla/types-embed";
11
11
  export type HeartButtonType = ElementType<{
12
12
  embed: Extract<EmbedMetaData, {
13
13
  status: "success";
@@ -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
  messages: {
11
11
  title: string;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _reactI18next = require("react-i18next");
8
- var _common = require("@ndla/icons/common");
8
+ var _icons = require("@ndla/icons");
9
9
  var _primitives = require("@ndla/primitives");
10
10
  var _jsx2 = require("@ndla/styled-system/jsx");
11
11
  var _ErrorMessage = _interopRequireDefault(require("./ErrorMessage"));
@@ -38,14 +38,14 @@ const ErrorResourceAccessDenied = _ref => {
38
38
  back: t("errorMessage.back"),
39
39
  goToFrontPage: t("errorMessage.goToFrontPage")
40
40
  },
41
- illustrationElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.PresentationLine, {
41
+ illustrationElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PresentationLine, {
42
42
  size: "medium"
43
43
  }),
44
44
  customElement: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.Button, {
45
45
  onClick: onAuthenticateClick,
46
46
  children: [t("user.buttonLogIn"), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledLogInIconWrapper, {
47
47
  "aria-hidden": true,
48
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.LoginBoxLine, {
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LoginBoxLine, {
49
49
  size: "medium"
50
50
  })
51
51
  })]
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ComponentProps, ReactNode } from "react";
8
+ import { type ComponentProps, type ReactNode } from "react";
9
9
  interface Props extends ComponentProps<"aside"> {
10
10
  children?: ReactNode;
11
11
  defaultOpen?: boolean;
@@ -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 _jsx2 = require("@ndla/styled-system/jsx");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
@@ -149,7 +149,7 @@ const FactBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
149
149
  "aria-expanded": state === "open",
150
150
  "aria-controls": contentId,
151
151
  "aria-label": t(`factbox.${state === "open" ? "close" : "open"}`),
152
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowDownShortLine, {})
152
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowDownShortLine, {})
153
153
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledContent, {
154
154
  id: contentId,
155
155
  "data-state": state,
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ComponentPropsWithRef } from "react";
8
+ import { type ComponentPropsWithRef } from "react";
9
9
  export interface FileProps extends ComponentPropsWithRef<"div"> {
10
10
  title: string;
11
11
  url: string;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.FileListElement = exports.File = 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 _safelink = require("@ndla/safelink");
12
12
  var _jsx2 = require("@ndla/styled-system/jsx");
@@ -58,7 +58,7 @@ const File = exports.File = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
58
58
  ...rest,
59
59
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsx2.HStack, {
60
60
  gap: "xxsmall",
61
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_common.DownloadLine, {}), fileExists ? /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledSafeLink, {
61
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DownloadLine, {}), fileExists ? /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledSafeLink, {
62
62
  unstyled: true,
63
63
  css: _patterns.linkOverlay.raw(),
64
64
  to: url,
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ComponentPropsWithoutRef } from "react";
8
+ import { type ComponentPropsWithoutRef } from "react";
9
9
  interface Props extends ComponentPropsWithoutRef<"div"> {
10
10
  }
11
11
  export declare const FileListWrapper: import("@ndla/styled-system/types").StyledComponent<"div", {}>;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { type StyledVariantProps } from "@ndla/styled-system/types";
8
+ import type { StyledVariantProps } from "@ndla/styled-system/types";
9
9
  import type { IGlossData } from "@ndla/types-backend/concept-api";
10
10
  declare const StyledAccordionItem: import("@ndla/styled-system/types").StyledComponent<import("react").ForwardRefExoticComponent<import("@ndla/primitives").AccordionItemProps & import("react").RefAttributes<HTMLDivElement>>, {
11
11
  variant?: "simple" | "bordered" | undefined;
@@ -7,7 +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 _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 _GlossExample = _interopRequireDefault(require("./GlossExample"));
@@ -163,7 +163,7 @@ const Gloss = _ref => {
163
163
  title: t("gloss.showExamples"),
164
164
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemIndicator, {
165
165
  asChild: true,
166
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowDownShortLine, {
166
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowDownShortLine, {
167
167
  size: "medium"
168
168
  })
169
169
  })
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { IGlossExample } from "@ndla/types-backend/concept-api";
8
+ import type { IGlossExample } from "@ndla/types-backend/concept-api";
9
9
  interface Props {
10
10
  examples: IGlossExample[];
11
11
  originalLanguage: string | 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
  export interface GridProps {
10
10
  columns: "2" | "3" | "4" | "2x2";
11
11
  border?: "none" | "lightBlue";
@@ -5,5 +5,5 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLAttributes } from "react";
8
+ import { type HTMLAttributes } from "react";
9
9
  export declare const GridParallaxItem: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -5,12 +5,12 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ReactNode } from "react";
9
- import { ICopyright as ArticleCopyright } from "@ndla/types-backend/article-api";
10
- import { ICopyright as AudioCopyright } from "@ndla/types-backend/audio-api";
11
- import { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api";
12
- import { ICopyright as ImageCopyright } from "@ndla/types-backend/image-api";
13
- import { BrightcoveCopyright } from "@ndla/types-embed";
8
+ import { type ReactNode } from "react";
9
+ import type { ICopyright as ArticleCopyright } from "@ndla/types-backend/article-api";
10
+ import type { ICopyright as AudioCopyright } from "@ndla/types-backend/audio-api";
11
+ import type { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api";
12
+ import type { ICopyright as ImageCopyright } from "@ndla/types-backend/image-api";
13
+ import type { BrightcoveCopyright } from "@ndla/types-embed";
14
14
  interface BaseProps {
15
15
  description?: ReactNode;
16
16
  children?: ReactNode;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.LicenseContainerContent = exports.EmbedByline = 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 _licenses = require("@ndla/licenses");
11
11
  var _primitives = require("@ndla/primitives");
12
12
  var _jsx2 = require("@ndla/styled-system/jsx");
@@ -74,7 +74,7 @@ const EmbedByline = _ref => {
74
74
  const typeString = type === "h5p" ? "H5P" : t(`embed.type.${type}`).toLowerCase();
75
75
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(ErrorBylineWrapper, {
76
76
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(ContentWrapper, {
77
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_common.AlertLine, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(BaseDescription, {
77
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.AlertLine, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(BaseDescription, {
78
78
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
79
79
  children: t("embed.embedError", {
80
80
  type: typeString
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { LicenseLocaleType } from "@ndla/licenses";
9
- import { SafeLinkProps } from "@ndla/safelink";
8
+ import type { LicenseLocaleType } from "@ndla/licenses";
9
+ import { type SafeLinkProps } from "@ndla/safelink";
10
10
  interface Props extends Omit<SafeLinkProps, "to"> {
11
11
  license: LicenseLocaleType;
12
12
  hideLink?: boolean;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { LinkBlockEmbedData } from "@ndla/types-embed";
8
+ import type { LinkBlockEmbedData } from "@ndla/types-embed";
9
9
  interface Props extends Omit<LinkBlockEmbedData, "resource"> {
10
10
  path?: string;
11
11
  articleLanguage?: string;
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
8
8
  var _react = require("react");
9
- var _common = require("@ndla/icons/common");
10
- var _editor = require("@ndla/icons/editor");
9
+ var _icons = require("@ndla/icons");
11
10
  var _primitives = require("@ndla/primitives");
12
11
  var _safelink = require("@ndla/safelink");
13
12
  var _jsx2 = require("@ndla/styled-system/jsx");
@@ -65,7 +64,7 @@ const StyledDateContainer = (0, _jsx2.styled)("div", {
65
64
  gap: "xxsmall"
66
65
  }
67
66
  });
68
- const StyledCalendarEd = (0, _jsx2.styled)(_editor.CalendarLine, {
67
+ const StyledCalendarEd = (0, _jsx2.styled)(_icons.CalendarLine, {
69
68
  base: {
70
69
  color: "icon.strong"
71
70
  }
@@ -103,7 +102,7 @@ const LinkBlock = _ref => {
103
102
  }), !!date && /*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledDateContainer, {
104
103
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StyledCalendarEd, {}), formattedDate]
105
104
  })]
106
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowRightLine, {
105
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightLine, {
107
106
  "data-forward": true
108
107
  })]
109
108
  });
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLAttributes, ReactNode } from "react";
8
+ import { type HTMLAttributes, type ReactNode } from "react";
9
9
  interface Props extends HTMLAttributes<HTMLElement> {
10
10
  children: ReactNode;
11
11
  }
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ComponentPropsWithoutRef, ReactNode } from "react";
9
- import { HeadingLevel } from "../types";
8
+ import { type ComponentPropsWithoutRef, type ReactNode } from "react";
9
+ import type { HeadingLevel } from "../types";
10
10
  interface RelatedArticleProps {
11
11
  title: string;
12
12
  introduction: string;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.RelatedArticleList = exports.RelatedArticle = 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 _safelink = require("@ndla/safelink");
12
12
  var _jsx2 = require("@ndla/styled-system/jsx");
@@ -53,7 +53,7 @@ const RelatedArticle = _ref => {
53
53
  rel: linkInfo ? "noopener noreferrer" : undefined,
54
54
  css: _patterns.linkOverlay.raw(),
55
55
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledSpan, {
56
- children: [title, target === "_blank" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ExternalLinkLine, {})]
56
+ children: [title, target === "_blank" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ExternalLinkLine, {})]
57
57
  })
58
58
  })
59
59
  })
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.ResourceBox = void 0;
7
7
  var _core = require("@ndla/core");
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");
@@ -97,7 +97,7 @@ const ResourceBox = _ref => {
97
97
  to: url,
98
98
  target: "_blank",
99
99
  variant: "secondary",
100
- children: [buttonText, /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ShareBoxLine, {})]
100
+ children: [buttonText, /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ShareBoxLine, {})]
101
101
  })]
102
102
  })]
103
103
  });
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { type CollectionItem } from "@ark-ui/react";
9
- import { ComboboxControlProps, ComboboxInputProps, ComboboxRootProps, TagsInputControlProps, TagsInputInputProps, TagsInputRootProps } from "@ndla/primitives";
9
+ import { type ComboboxControlProps, type ComboboxInputProps, type ComboboxRootProps, type TagsInputControlProps, type TagsInputInputProps, type TagsInputRootProps } from "@ndla/primitives";
10
10
  export type TagSelectorRootProps<T extends CollectionItem> = ComboboxRootProps<T> & TagsInputRootProps;
11
11
  export declare const TagSelectorRoot: <T extends unknown>({ allowCustomValue, multiple, selectionBehavior, editable, addOnPaste, onValueChange, children, value, translations, ...rest }: TagSelectorRootProps<T>) => import("react/jsx-runtime").JSX.Element;
12
12
  export type TagSelectorControlProps = ComboboxControlProps & TagsInputControlProps;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.TagSelectorTrigger = exports.TagSelectorRoot = exports.TagSelectorLabel = exports.TagSelectorItemInput = exports.TagSelectorInputBase = exports.TagSelectorInput = exports.TagSelectorControl = exports.TagSelectorClearTrigger = void 0;
7
7
  var _react = require("react");
8
8
  var _react2 = require("@ark-ui/react");
9
- var _action = require("@ndla/icons/action");
9
+ var _icons = require("@ndla/icons");
10
10
  var _primitives = require("@ndla/primitives");
11
11
  var _util = require("@ndla/util");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
@@ -130,7 +130,7 @@ const TagSelectorInput = exports.TagSelectorInput = /*#__PURE__*/(0, _react.forw
130
130
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TagsInputItemText, {
131
131
  children: value
132
132
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TagsInputItemDeleteTrigger, {
133
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.CloseLine, {})
133
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CloseLine, {})
134
134
  })]
135
135
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TagsInputItemInput, {})]
136
136
  }, value)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.ComboboxInput, {