@ndla/ui 56.0.176-alpha.0 → 56.0.178-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 (145) hide show
  1. package/es/Article/Article.mjs +7 -0
  2. package/es/Article/Article.mjs.map +1 -1
  3. package/es/Breadcrumb/HomeBreadcrumb.mjs.map +1 -1
  4. package/es/CampaignBlock/CampaignBlock.mjs +7 -0
  5. package/es/CampaignBlock/CampaignBlock.mjs.map +1 -1
  6. package/es/CodeBlock/CodeBlock.mjs +7 -0
  7. package/es/CodeBlock/CodeBlock.mjs.map +1 -1
  8. package/es/Concept/Concept.mjs +7 -0
  9. package/es/Concept/Concept.mjs.map +1 -1
  10. package/es/ContactBlock/ContactBlock.mjs +7 -0
  11. package/es/ContactBlock/ContactBlock.mjs.map +1 -1
  12. package/es/Embed/AudioEmbed.mjs +7 -0
  13. package/es/Embed/AudioEmbed.mjs.map +1 -1
  14. package/es/Embed/BrightcoveEmbed.mjs +7 -0
  15. package/es/Embed/BrightcoveEmbed.mjs.map +1 -1
  16. package/es/Embed/CodeEmbed.mjs +7 -0
  17. package/es/Embed/CodeEmbed.mjs.map +1 -1
  18. package/es/Embed/ConceptEmbed.mjs +7 -0
  19. package/es/Embed/ConceptEmbed.mjs.map +1 -1
  20. package/es/Embed/ContentLinkEmbed.mjs +7 -0
  21. package/es/Embed/ContentLinkEmbed.mjs.map +1 -1
  22. package/es/Embed/CopyrightEmbed.mjs +7 -0
  23. package/es/Embed/CopyrightEmbed.mjs.map +1 -1
  24. package/es/Embed/EmbedWrapper.mjs +7 -0
  25. package/es/Embed/EmbedWrapper.mjs.map +1 -1
  26. package/es/Embed/ExternalEmbed.mjs +7 -0
  27. package/es/Embed/ExternalEmbed.mjs.map +1 -1
  28. package/es/Embed/FootnoteEmbed.mjs +7 -0
  29. package/es/Embed/FootnoteEmbed.mjs.map +1 -1
  30. package/es/Embed/GlossEmbed.mjs +7 -0
  31. package/es/Embed/GlossEmbed.mjs.map +1 -1
  32. package/es/Embed/H5pEmbed.mjs +7 -0
  33. package/es/Embed/H5pEmbed.mjs.map +1 -1
  34. package/es/Embed/IframeEmbed.mjs +7 -0
  35. package/es/Embed/IframeEmbed.mjs.map +1 -1
  36. package/es/Embed/ImageEmbed.mjs +7 -0
  37. package/es/Embed/ImageEmbed.mjs.map +1 -1
  38. package/es/Embed/UnknownEmbed.mjs +7 -0
  39. package/es/Embed/UnknownEmbed.mjs.map +1 -1
  40. package/es/Embed/UuDisclaimerEmbed.mjs +7 -0
  41. package/es/Embed/UuDisclaimerEmbed.mjs.map +1 -1
  42. package/es/Gloss/Gloss.mjs +7 -0
  43. package/es/Gloss/Gloss.mjs.map +1 -1
  44. package/es/Gloss/GlossExample.mjs +7 -0
  45. package/es/Gloss/GlossExample.mjs.map +1 -1
  46. package/es/Grid/Grid.mjs +7 -0
  47. package/es/Grid/Grid.mjs.map +1 -1
  48. package/es/LicenseByline/EmbedByline.mjs +7 -0
  49. package/es/LicenseByline/EmbedByline.mjs.map +1 -1
  50. package/es/LinkBlock/LinkBlock.mjs +7 -0
  51. package/es/LinkBlock/LinkBlock.mjs.map +1 -1
  52. package/lib/Article/Article.js +7 -0
  53. package/lib/Article/Article.js.map +1 -1
  54. package/lib/Breadcrumb/HomeBreadcrumb.js.map +1 -1
  55. package/lib/CampaignBlock/CampaignBlock.js +7 -0
  56. package/lib/CampaignBlock/CampaignBlock.js.map +1 -1
  57. package/lib/CodeBlock/CodeBlock.js +7 -0
  58. package/lib/CodeBlock/CodeBlock.js.map +1 -1
  59. package/lib/Concept/Concept.js +7 -0
  60. package/lib/Concept/Concept.js.map +1 -1
  61. package/lib/ContactBlock/ContactBlock.js +7 -0
  62. package/lib/ContactBlock/ContactBlock.js.map +1 -1
  63. package/lib/Embed/AudioEmbed.js +7 -0
  64. package/lib/Embed/AudioEmbed.js.map +1 -1
  65. package/lib/Embed/BrightcoveEmbed.js +7 -0
  66. package/lib/Embed/BrightcoveEmbed.js.map +1 -1
  67. package/lib/Embed/CodeEmbed.js +7 -0
  68. package/lib/Embed/CodeEmbed.js.map +1 -1
  69. package/lib/Embed/ConceptEmbed.d.ts +1 -1
  70. package/lib/Embed/ConceptEmbed.js +7 -0
  71. package/lib/Embed/ConceptEmbed.js.map +1 -1
  72. package/lib/Embed/ContentLinkEmbed.js +7 -0
  73. package/lib/Embed/ContentLinkEmbed.js.map +1 -1
  74. package/lib/Embed/CopyrightEmbed.js +7 -0
  75. package/lib/Embed/CopyrightEmbed.js.map +1 -1
  76. package/lib/Embed/EmbedWrapper.d.ts +1 -1
  77. package/lib/Embed/EmbedWrapper.js +7 -0
  78. package/lib/Embed/EmbedWrapper.js.map +1 -1
  79. package/lib/Embed/ExternalEmbed.js +7 -0
  80. package/lib/Embed/ExternalEmbed.js.map +1 -1
  81. package/lib/Embed/FootnoteEmbed.js +7 -0
  82. package/lib/Embed/FootnoteEmbed.js.map +1 -1
  83. package/lib/Embed/GlossEmbed.js +7 -0
  84. package/lib/Embed/GlossEmbed.js.map +1 -1
  85. package/lib/Embed/H5pEmbed.js +7 -0
  86. package/lib/Embed/H5pEmbed.js.map +1 -1
  87. package/lib/Embed/IframeEmbed.js +7 -0
  88. package/lib/Embed/IframeEmbed.js.map +1 -1
  89. package/lib/Embed/ImageEmbed.js +7 -0
  90. package/lib/Embed/ImageEmbed.js.map +1 -1
  91. package/lib/Embed/UnknownEmbed.js +7 -0
  92. package/lib/Embed/UnknownEmbed.js.map +1 -1
  93. package/lib/Embed/UuDisclaimerEmbed.js +7 -0
  94. package/lib/Embed/UuDisclaimerEmbed.js.map +1 -1
  95. package/lib/Gloss/Gloss.js +7 -0
  96. package/lib/Gloss/Gloss.js.map +1 -1
  97. package/lib/Gloss/GlossExample.js +7 -0
  98. package/lib/Gloss/GlossExample.js.map +1 -1
  99. package/lib/Grid/Grid.js +7 -0
  100. package/lib/Grid/Grid.js.map +1 -1
  101. package/lib/LicenseByline/EmbedByline.js +7 -0
  102. package/lib/LicenseByline/EmbedByline.js.map +1 -1
  103. package/lib/LinkBlock/LinkBlock.js +7 -0
  104. package/lib/LinkBlock/LinkBlock.js.map +1 -1
  105. package/package.json +8 -8
  106. package/src/Article/Article.tsx +1 -1
  107. package/src/Breadcrumb/HomeBreadcrumb.tsx +1 -1
  108. package/src/CampaignBlock/CampaignBlock.tsx +1 -1
  109. package/src/CodeBlock/CodeBlock.tsx +1 -1
  110. package/src/Concept/Concept.tsx +2 -2
  111. package/src/ContactBlock/ContactBlock.tsx +2 -2
  112. package/src/Embed/AudioEmbed.stories.tsx +1 -1
  113. package/src/Embed/AudioEmbed.tsx +2 -2
  114. package/src/Embed/BrightcoveEmbed.stories.tsx +1 -1
  115. package/src/Embed/BrightcoveEmbed.tsx +2 -2
  116. package/src/Embed/CodeEmbed.tsx +1 -1
  117. package/src/Embed/ConceptEmbed.stories.tsx +1 -1
  118. package/src/Embed/ConceptEmbed.tsx +2 -2
  119. package/src/Embed/ContentLinkEmbed.tsx +1 -1
  120. package/src/Embed/CopyrightEmbed.tsx +1 -1
  121. package/src/Embed/EmbedWrapper.tsx +1 -1
  122. package/src/Embed/ExternalEmbed.stories.tsx +1 -1
  123. package/src/Embed/ExternalEmbed.tsx +1 -1
  124. package/src/Embed/FootnoteEmbed.tsx +1 -1
  125. package/src/Embed/GlossEmbed.tsx +1 -1
  126. package/src/Embed/H5pEmbed.stories.tsx +1 -1
  127. package/src/Embed/H5pEmbed.tsx +1 -1
  128. package/src/Embed/IframeEmbed.stories.tsx +1 -1
  129. package/src/Embed/IframeEmbed.tsx +1 -1
  130. package/src/Embed/ImageEmbed.stories.tsx +2 -2
  131. package/src/Embed/ImageEmbed.tsx +2 -2
  132. package/src/Embed/RelatedContentEmbed.stories.tsx +1 -1
  133. package/src/Embed/UnknownEmbed.tsx +1 -1
  134. package/src/Embed/UuDisclaimerEmbed.stories.tsx +1 -1
  135. package/src/Embed/UuDisclaimerEmbed.tsx +1 -1
  136. package/src/FactBox/Factbox.stories.tsx +1 -1
  137. package/src/FileList/FileList.stories.tsx +1 -1
  138. package/src/Gloss/Gloss.tsx +2 -2
  139. package/src/Gloss/GlossExample.tsx +1 -1
  140. package/src/Grid/Grid.stories.tsx +1 -1
  141. package/src/Grid/Grid.tsx +1 -1
  142. package/src/LicenseByline/EmbedByline.tsx +4 -4
  143. package/src/LinkBlock/LinkBlock.tsx +1 -1
  144. package/src/Pitch/Pitch.stories.tsx +1 -1
  145. package/src/TagSelector/TagSelector.stories.tsx +1 -1
@@ -6,10 +6,10 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { CodeMetaData } from "@ndla/types-embed";
10
9
  import { FileCopyLine, CheckLine } from "@ndla/icons";
11
10
  import { Button, Figure } from "@ndla/primitives";
12
11
  import { styled } from "@ndla/styled-system/jsx";
12
+ import type { CodeMetaData } from "@ndla/types-embed";
13
13
  import { useEffect, useState } from "react";
14
14
  import { useTranslation } from "react-i18next";
15
15
  import { CodeBlock } from "../CodeBlock/CodeBlock";
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { PageContent } from "@ndla/primitives";
9
10
  import type { ConceptData, ConceptEmbedData } from "@ndla/types-embed";
10
11
  import type { Meta, StoryObj } from "@storybook/react";
11
- import { PageContent } from "@ndla/primitives";
12
12
  import { ArticleContent, ArticleWrapper } from "../Article/Article";
13
13
  import { ConceptEmbed } from "./ConceptEmbed";
14
14
 
@@ -6,17 +6,17 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { ConceptMetaData } from "@ndla/types-embed";
10
9
  import { Portal } from "@ark-ui/react";
11
10
  import { PopoverContent, PopoverRoot, PopoverTrigger } from "@ndla/primitives";
12
11
  import { styled } from "@ndla/styled-system/jsx";
12
+ import type { ConceptMetaData } from "@ndla/types-embed";
13
13
  import parse from "html-react-parser";
14
14
  import { forwardRef, useMemo, useRef, type ReactNode } from "react";
15
- import type { RenderContext } from "./types";
16
15
  import { Concept, type ConceptProps } from "../Concept/Concept";
17
16
  import { ConceptInlineTriggerButton } from "./ConceptInlineTriggerButton";
18
17
  import { EmbedErrorPlaceholder } from "./EmbedErrorPlaceholder";
19
18
  import { GlossEmbed } from "./GlossEmbed";
19
+ import type { RenderContext } from "./types";
20
20
 
21
21
  interface BaseProps {
22
22
  renderContext?: RenderContext;
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { Text } from "@ndla/primitives";
9
10
  import type { ContentLinkMetaData } from "@ndla/types-embed";
10
11
  import type { ReactNode } from "react";
11
- import { Text } from "@ndla/primitives";
12
12
  import { useTranslation } from "react-i18next";
13
13
 
14
14
  interface Props {
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { styled } from "@ndla/styled-system/jsx";
9
10
  import type { CopyrightMetaData } from "@ndla/types-embed";
10
11
  import type { ReactNode } from "react";
11
- import { styled } from "@ndla/styled-system/jsx";
12
12
  import { EmbedByline } from "../LicenseByline/EmbedByline";
13
13
 
14
14
  interface Props {
@@ -6,10 +6,10 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { StyledProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
9
  import { ark, type HTMLArkProps } from "@ark-ui/react";
11
10
  import { css, cva } from "@ndla/styled-system/css";
12
11
  import { styled } from "@ndla/styled-system/jsx";
12
+ import type { StyledProps, RecipeVariantProps } from "@ndla/styled-system/types";
13
13
  import { forwardRef } from "react";
14
14
 
15
15
  const embedWrapperRecipe = cva({
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { PageContent } from "@ndla/primitives";
9
10
  import type { OembedEmbedData, OembedData } from "@ndla/types-embed";
10
11
  import type { Meta, StoryObj } from "@storybook/react";
11
- import { PageContent } from "@ndla/primitives";
12
12
  import { ArticleWrapper, ArticleContent } from "../Article/Article";
13
13
  import { ExternalEmbed } from "./ExternalEmbed";
14
14
 
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { OembedMetaData } from "@ndla/types-embed";
10
9
  import { Figure } from "@ndla/primitives";
11
10
  import { styled } from "@ndla/styled-system/jsx";
11
+ import type { OembedMetaData } from "@ndla/types-embed";
12
12
  import { useEffect, useRef } from "react";
13
13
  import { useTranslation } from "react-i18next";
14
14
  import { ResourceBox } from "../ResourceBox/ResourceBox";
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { FootnoteMetaData } from "@ndla/types-embed";
10
9
  import { styled } from "@ndla/styled-system/jsx";
10
+ import type { FootnoteMetaData } from "@ndla/types-embed";
11
11
  import { useTranslation } from "react-i18next";
12
12
 
13
13
  interface Props {
@@ -6,10 +6,10 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { ConceptMetaData } from "@ndla/types-embed";
10
9
  import { Portal } from "@ark-ui/react";
11
10
  import { Figure, PopoverContent, PopoverRoot, PopoverTrigger } from "@ndla/primitives";
12
11
  import { styled } from "@ndla/styled-system/jsx";
12
+ import type { ConceptMetaData } from "@ndla/types-embed";
13
13
  import { useRef, type ReactNode } from "react";
14
14
  import { Gloss } from "../Gloss/Gloss";
15
15
  import { ConceptInlineTriggerButton } from "./ConceptInlineTriggerButton";
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { PageContent } from "@ndla/primitives";
9
10
  import type { H5pEmbedData, H5pData } from "@ndla/types-embed";
10
11
  import type { Meta, StoryObj } from "@storybook/react";
11
- import { PageContent } from "@ndla/primitives";
12
12
  import { ArticleWrapper, ArticleContent } from "../Article/Article";
13
13
  import { H5pEmbed } from "./H5pEmbed";
14
14
 
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { H5pMetaData } from "@ndla/types-embed";
10
9
  import { Figure } from "@ndla/primitives";
11
10
  import { styled } from "@ndla/styled-system/jsx";
11
+ import type { H5pMetaData } from "@ndla/types-embed";
12
12
  import { useTranslation } from "react-i18next";
13
13
  import { EmbedErrorPlaceholder } from "./EmbedErrorPlaceholder";
14
14
 
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { PageContent } from "@ndla/primitives";
9
10
  import type { IframeData, IframeEmbedData } from "@ndla/types-embed";
10
11
  import type { Meta, StoryObj } from "@storybook/react";
11
- import { PageContent } from "@ndla/primitives";
12
12
  import { ArticleWrapper, ArticleContent } from "../Article/Article";
13
13
  import { IframeEmbed } from "./IframeEmbed";
14
14
 
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { IframeMetaData } from "@ndla/types-embed";
10
9
  import { Figure } from "@ndla/primitives";
11
10
  import { styled } from "@ndla/styled-system/jsx";
11
+ import type { IframeMetaData } from "@ndla/types-embed";
12
12
  import { useEffect, useRef } from "react";
13
13
  import { useTranslation } from "react-i18next";
14
14
  import { ResourceBox } from "../ResourceBox/ResourceBox";
@@ -6,12 +6,12 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { PageContent, Text } from "@ndla/primitives";
10
+ import { styled } from "@ndla/styled-system/jsx";
9
11
  import type { ImageMetaInformationV3DTO } from "@ndla/types-backend/image-api";
10
12
  import type { ImageEmbedData } from "@ndla/types-embed";
11
13
  import type { Meta, StoryFn, StoryObj } from "@storybook/react";
12
14
  import type { ReactNode } from "react";
13
- import { PageContent, Text } from "@ndla/primitives";
14
- import { styled } from "@ndla/styled-system/jsx";
15
15
  import { ArticleWrapper, ArticleContent } from "../Article/Article";
16
16
  import { Grid } from "../Grid/Grid";
17
17
  import { ImageEmbed } from "./ImageEmbed";
@@ -6,17 +6,17 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { ImageEmbedData, ImageMetaData } from "@ndla/types-embed";
10
9
  import { AddLine } from "@ndla/icons";
11
10
  import { Figure, type FigureSize, type FigureVariantProps, Image } from "@ndla/primitives";
12
11
  import { styled } from "@ndla/styled-system/jsx";
12
+ import type { ImageEmbedData, ImageMetaData } from "@ndla/types-embed";
13
13
  import parse from "html-react-parser";
14
14
  import { type ReactNode, useMemo, useState } from "react";
15
15
  import { useTranslation } from "react-i18next";
16
- import type { RenderContext } from "./types";
17
16
  import { EmbedByline } from "../LicenseByline/EmbedByline";
18
17
  import { licenseAttributes } from "../utils/licenseAttributes";
19
18
  import { EmbedErrorPlaceholder } from "./EmbedErrorPlaceholder";
19
+ import type { RenderContext } from "./types";
20
20
 
21
21
  interface Props {
22
22
  embed: ImageMetaData;
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { PageContent } from "@ndla/primitives";
9
10
  import type { RelatedContentMetaData } from "@ndla/types-embed";
10
11
  import type { Meta, StoryObj } from "@storybook/react";
11
- import { PageContent } from "@ndla/primitives";
12
12
  import { ArticleWrapper, ArticleContent } from "../Article/Article";
13
13
  import { RelatedArticleList } from "../RelatedArticleList/RelatedArticleList";
14
14
  import { RelatedContentEmbed } from "./RelatedContentEmbed";
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { MetaData } from "@ndla/types-embed";
10
9
  import { Text } from "@ndla/primitives";
10
+ import type { MetaData } from "@ndla/types-embed";
11
11
  import { useTranslation } from "react-i18next";
12
12
 
13
13
  interface Props {
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { ExpandableBox, ExpandableBoxSummary, FramedContent, PageContent } from "@ndla/primitives";
9
10
  import type { UUDisclaimerData, UuDisclaimerEmbedData } from "@ndla/types-embed";
10
11
  import type { Meta, StoryObj } from "@storybook/react";
11
- import { ExpandableBox, ExpandableBoxSummary, FramedContent, PageContent } from "@ndla/primitives";
12
12
  import { AnchorHeading } from "../AnchorHeading/AnchorHeading";
13
13
  import { ArticleWrapper, ArticleContent } from "../Article/Article";
14
14
  import { FactBox } from "../FactBox/FactBox";
@@ -6,11 +6,11 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { UuDisclaimerMetaData } from "@ndla/types-embed";
10
9
  import { Portal } from "@ark-ui/react";
11
10
  import { AccessibilityFill, ErrorWarningFill } from "@ndla/icons";
12
11
  import { IconButton, PopoverContent, PopoverRoot, PopoverTrigger } from "@ndla/primitives";
13
12
  import { styled } from "@ndla/styled-system/jsx";
13
+ import type { UuDisclaimerMetaData } from "@ndla/types-embed";
14
14
  import { type ReactNode } from "react";
15
15
  import { useTranslation } from "react-i18next";
16
16
 
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { Meta, StoryObj } from "@storybook/react";
10
9
  import { Button, Heading, UnOrderedList, OrderedList } from "@ndla/primitives";
10
+ import type { Meta, StoryObj } from "@storybook/react";
11
11
  import { FactBox } from "./FactBox";
12
12
 
13
13
  /**
@@ -6,10 +6,10 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { Meta, StoryFn, StoryObj } from "@storybook/react";
10
9
  import { PencilFill, DeleteBinLine, Draggable } from "@ndla/icons";
11
10
  import { IconButton } from "@ndla/primitives";
12
11
  import { HStack, styled } from "@ndla/styled-system/jsx";
12
+ import type { Meta, StoryFn, StoryObj } from "@storybook/react";
13
13
  import { File } from "./File";
14
14
  import { FileListEmbed, FileListItem } from "./FileList";
15
15
  import { PdfFile } from "./PdfFile";
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { StyledVariantProps } from "@ndla/styled-system/types";
10
- import type { ConceptTitleDTO, GlossDataDTO, GlossExampleDTO } from "@ndla/types-backend/concept-api";
11
9
  import { AccordionItemTrigger } from "@ark-ui/react";
12
10
  import { ArrowDownShortLine } from "@ndla/icons";
13
11
  import {
@@ -19,6 +17,8 @@ import {
19
17
  Text,
20
18
  } from "@ndla/primitives";
21
19
  import { styled } from "@ndla/styled-system/jsx";
20
+ import type { StyledVariantProps } from "@ndla/styled-system/types";
21
+ import type { ConceptTitleDTO, GlossDataDTO, GlossExampleDTO } from "@ndla/types-backend/concept-api";
22
22
  import parse from "html-react-parser";
23
23
  import { useMemo } from "react";
24
24
  import { useTranslation } from "react-i18next";
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { GlossExampleDTO } from "@ndla/types-backend/concept-api";
10
9
  import { Text } from "@ndla/primitives";
11
10
  import { styled } from "@ndla/styled-system/jsx";
11
+ import type { GlossExampleDTO } from "@ndla/types-backend/concept-api";
12
12
  import { Fragment } from "react";
13
13
 
14
14
  interface Props {
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { Meta, StoryFn } from "@storybook/react";
10
9
  import { PageContent } from "@ndla/primitives";
11
10
  import { ArticleContent, ArticleWrapper } from "@ndla/ui";
11
+ import type { Meta, StoryFn } from "@storybook/react";
12
12
  import { Plain } from "../KeyFigure/KeyFigure.stories";
13
13
  import { Default as PitchStory } from "../Pitch/Pitch.stories";
14
14
  import { Grid, GridItem } from "./Grid";
package/src/Grid/Grid.tsx CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { StyledVariantProps } from "@ndla/styled-system/types";
10
9
  import { styled } from "@ndla/styled-system/jsx";
10
+ import type { StyledVariantProps } from "@ndla/styled-system/types";
11
11
  import { type ComponentProps, type ReactNode } from "react";
12
12
 
13
13
  const GridContainer = styled("div", {
@@ -6,15 +6,15 @@
6
6
  *
7
7
  */
8
8
 
9
+ import { AlertLine } from "@ndla/icons";
10
+ import { getLicenseByAbbreviation } from "@ndla/licenses";
11
+ import { Button, Text } from "@ndla/primitives";
12
+ import { styled } from "@ndla/styled-system/jsx";
9
13
  import type { CopyrightDTO as ArticleCopyright } from "@ndla/types-backend/article-api";
10
14
  import type { CopyrightDTO as AudioCopyright } from "@ndla/types-backend/audio-api";
11
15
  import type { DraftCopyrightDTO as ConceptCopyright } from "@ndla/types-backend/concept-api";
12
16
  import type { CopyrightDTO as ImageCopyright } from "@ndla/types-backend/image-api";
13
17
  import type { BrightcoveCopyright } from "@ndla/types-embed";
14
- import { AlertLine } from "@ndla/icons";
15
- import { getLicenseByAbbreviation } from "@ndla/licenses";
16
- import { Button, Text } from "@ndla/primitives";
17
- import { styled } from "@ndla/styled-system/jsx";
18
18
  import { type Dispatch, type ReactNode, type SetStateAction, useState } from "react";
19
19
  import { useTranslation } from "react-i18next";
20
20
  import { LicenseLink } from "./LicenseLink";
@@ -6,11 +6,11 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { LinkBlockEmbedData } from "@ndla/types-embed";
10
9
  import { ArrowRightLine, CalendarLine } from "@ndla/icons";
11
10
  import { Heading } from "@ndla/primitives";
12
11
  import { SafeLink } from "@ndla/safelink";
13
12
  import { styled } from "@ndla/styled-system/jsx";
13
+ import type { LinkBlockEmbedData } from "@ndla/types-embed";
14
14
  import parse from "html-react-parser";
15
15
  import { useMemo } from "react";
16
16
  import { getPossiblyRelativeUrl } from "../utils/relativeUrl";
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { Meta } from "@storybook/react";
10
9
  import { PageContent } from "@ndla/primitives";
10
+ import type { Meta } from "@storybook/react";
11
11
  import { ArticleContent, ArticleWrapper } from "../Article/Article";
12
12
  import { Grid } from "../Grid/Grid";
13
13
  import { Pitch, type Props } from "./Pitch";
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import type { Meta, StoryFn } from "@storybook/react";
10
9
  import { type ComboboxInputValueChangeDetails, createListCollection } from "@ark-ui/react";
11
10
  import { CloseLine, ArrowDownShortLine, CheckLine } from "@ndla/icons";
12
11
  import {
@@ -19,6 +18,7 @@ import {
19
18
  InputContainer,
20
19
  } from "@ndla/primitives";
21
20
  import { HStack } from "@ndla/styled-system/jsx";
21
+ import type { Meta, StoryFn } from "@storybook/react";
22
22
  import { useState } from "react";
23
23
  import { useTagSelectorTranslations } from "../i18n/useComponentTranslations";
24
24
  import {