@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.
- package/es/Article/Article.mjs +7 -0
- package/es/Article/Article.mjs.map +1 -1
- package/es/Breadcrumb/HomeBreadcrumb.mjs.map +1 -1
- package/es/CampaignBlock/CampaignBlock.mjs +7 -0
- package/es/CampaignBlock/CampaignBlock.mjs.map +1 -1
- package/es/CodeBlock/CodeBlock.mjs +7 -0
- package/es/CodeBlock/CodeBlock.mjs.map +1 -1
- package/es/Concept/Concept.mjs +7 -0
- package/es/Concept/Concept.mjs.map +1 -1
- package/es/ContactBlock/ContactBlock.mjs +7 -0
- package/es/ContactBlock/ContactBlock.mjs.map +1 -1
- package/es/Embed/AudioEmbed.mjs +7 -0
- package/es/Embed/AudioEmbed.mjs.map +1 -1
- package/es/Embed/BrightcoveEmbed.mjs +7 -0
- package/es/Embed/BrightcoveEmbed.mjs.map +1 -1
- package/es/Embed/CodeEmbed.mjs +7 -0
- package/es/Embed/CodeEmbed.mjs.map +1 -1
- package/es/Embed/ConceptEmbed.mjs +7 -0
- package/es/Embed/ConceptEmbed.mjs.map +1 -1
- package/es/Embed/ContentLinkEmbed.mjs +7 -0
- package/es/Embed/ContentLinkEmbed.mjs.map +1 -1
- package/es/Embed/CopyrightEmbed.mjs +7 -0
- package/es/Embed/CopyrightEmbed.mjs.map +1 -1
- package/es/Embed/EmbedWrapper.mjs +7 -0
- package/es/Embed/EmbedWrapper.mjs.map +1 -1
- package/es/Embed/ExternalEmbed.mjs +7 -0
- package/es/Embed/ExternalEmbed.mjs.map +1 -1
- package/es/Embed/FootnoteEmbed.mjs +7 -0
- package/es/Embed/FootnoteEmbed.mjs.map +1 -1
- package/es/Embed/GlossEmbed.mjs +7 -0
- package/es/Embed/GlossEmbed.mjs.map +1 -1
- package/es/Embed/H5pEmbed.mjs +7 -0
- package/es/Embed/H5pEmbed.mjs.map +1 -1
- package/es/Embed/IframeEmbed.mjs +7 -0
- package/es/Embed/IframeEmbed.mjs.map +1 -1
- package/es/Embed/ImageEmbed.mjs +7 -0
- package/es/Embed/ImageEmbed.mjs.map +1 -1
- package/es/Embed/UnknownEmbed.mjs +7 -0
- package/es/Embed/UnknownEmbed.mjs.map +1 -1
- package/es/Embed/UuDisclaimerEmbed.mjs +7 -0
- package/es/Embed/UuDisclaimerEmbed.mjs.map +1 -1
- package/es/Gloss/Gloss.mjs +7 -0
- package/es/Gloss/Gloss.mjs.map +1 -1
- package/es/Gloss/GlossExample.mjs +7 -0
- package/es/Gloss/GlossExample.mjs.map +1 -1
- package/es/Grid/Grid.mjs +7 -0
- package/es/Grid/Grid.mjs.map +1 -1
- package/es/LicenseByline/EmbedByline.mjs +7 -0
- package/es/LicenseByline/EmbedByline.mjs.map +1 -1
- package/es/LinkBlock/LinkBlock.mjs +7 -0
- package/es/LinkBlock/LinkBlock.mjs.map +1 -1
- package/lib/Article/Article.js +7 -0
- package/lib/Article/Article.js.map +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js.map +1 -1
- package/lib/CampaignBlock/CampaignBlock.js +7 -0
- package/lib/CampaignBlock/CampaignBlock.js.map +1 -1
- package/lib/CodeBlock/CodeBlock.js +7 -0
- package/lib/CodeBlock/CodeBlock.js.map +1 -1
- package/lib/Concept/Concept.js +7 -0
- package/lib/Concept/Concept.js.map +1 -1
- package/lib/ContactBlock/ContactBlock.js +7 -0
- package/lib/ContactBlock/ContactBlock.js.map +1 -1
- package/lib/Embed/AudioEmbed.js +7 -0
- package/lib/Embed/AudioEmbed.js.map +1 -1
- package/lib/Embed/BrightcoveEmbed.js +7 -0
- package/lib/Embed/BrightcoveEmbed.js.map +1 -1
- package/lib/Embed/CodeEmbed.js +7 -0
- package/lib/Embed/CodeEmbed.js.map +1 -1
- package/lib/Embed/ConceptEmbed.d.ts +1 -1
- package/lib/Embed/ConceptEmbed.js +7 -0
- package/lib/Embed/ConceptEmbed.js.map +1 -1
- package/lib/Embed/ContentLinkEmbed.js +7 -0
- package/lib/Embed/ContentLinkEmbed.js.map +1 -1
- package/lib/Embed/CopyrightEmbed.js +7 -0
- package/lib/Embed/CopyrightEmbed.js.map +1 -1
- package/lib/Embed/EmbedWrapper.d.ts +1 -1
- package/lib/Embed/EmbedWrapper.js +7 -0
- package/lib/Embed/EmbedWrapper.js.map +1 -1
- package/lib/Embed/ExternalEmbed.js +7 -0
- package/lib/Embed/ExternalEmbed.js.map +1 -1
- package/lib/Embed/FootnoteEmbed.js +7 -0
- package/lib/Embed/FootnoteEmbed.js.map +1 -1
- package/lib/Embed/GlossEmbed.js +7 -0
- package/lib/Embed/GlossEmbed.js.map +1 -1
- package/lib/Embed/H5pEmbed.js +7 -0
- package/lib/Embed/H5pEmbed.js.map +1 -1
- package/lib/Embed/IframeEmbed.js +7 -0
- package/lib/Embed/IframeEmbed.js.map +1 -1
- package/lib/Embed/ImageEmbed.js +7 -0
- package/lib/Embed/ImageEmbed.js.map +1 -1
- package/lib/Embed/UnknownEmbed.js +7 -0
- package/lib/Embed/UnknownEmbed.js.map +1 -1
- package/lib/Embed/UuDisclaimerEmbed.js +7 -0
- package/lib/Embed/UuDisclaimerEmbed.js.map +1 -1
- package/lib/Gloss/Gloss.js +7 -0
- package/lib/Gloss/Gloss.js.map +1 -1
- package/lib/Gloss/GlossExample.js +7 -0
- package/lib/Gloss/GlossExample.js.map +1 -1
- package/lib/Grid/Grid.js +7 -0
- package/lib/Grid/Grid.js.map +1 -1
- package/lib/LicenseByline/EmbedByline.js +7 -0
- package/lib/LicenseByline/EmbedByline.js.map +1 -1
- package/lib/LinkBlock/LinkBlock.js +7 -0
- package/lib/LinkBlock/LinkBlock.js.map +1 -1
- package/package.json +8 -8
- package/src/Article/Article.tsx +1 -1
- package/src/Breadcrumb/HomeBreadcrumb.tsx +1 -1
- package/src/CampaignBlock/CampaignBlock.tsx +1 -1
- package/src/CodeBlock/CodeBlock.tsx +1 -1
- package/src/Concept/Concept.tsx +2 -2
- package/src/ContactBlock/ContactBlock.tsx +2 -2
- package/src/Embed/AudioEmbed.stories.tsx +1 -1
- package/src/Embed/AudioEmbed.tsx +2 -2
- package/src/Embed/BrightcoveEmbed.stories.tsx +1 -1
- package/src/Embed/BrightcoveEmbed.tsx +2 -2
- package/src/Embed/CodeEmbed.tsx +1 -1
- package/src/Embed/ConceptEmbed.stories.tsx +1 -1
- package/src/Embed/ConceptEmbed.tsx +2 -2
- package/src/Embed/ContentLinkEmbed.tsx +1 -1
- package/src/Embed/CopyrightEmbed.tsx +1 -1
- package/src/Embed/EmbedWrapper.tsx +1 -1
- package/src/Embed/ExternalEmbed.stories.tsx +1 -1
- package/src/Embed/ExternalEmbed.tsx +1 -1
- package/src/Embed/FootnoteEmbed.tsx +1 -1
- package/src/Embed/GlossEmbed.tsx +1 -1
- package/src/Embed/H5pEmbed.stories.tsx +1 -1
- package/src/Embed/H5pEmbed.tsx +1 -1
- package/src/Embed/IframeEmbed.stories.tsx +1 -1
- package/src/Embed/IframeEmbed.tsx +1 -1
- package/src/Embed/ImageEmbed.stories.tsx +2 -2
- package/src/Embed/ImageEmbed.tsx +2 -2
- package/src/Embed/RelatedContentEmbed.stories.tsx +1 -1
- package/src/Embed/UnknownEmbed.tsx +1 -1
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +1 -1
- package/src/Embed/UuDisclaimerEmbed.tsx +1 -1
- package/src/FactBox/Factbox.stories.tsx +1 -1
- package/src/FileList/FileList.stories.tsx +1 -1
- package/src/Gloss/Gloss.tsx +2 -2
- package/src/Gloss/GlossExample.tsx +1 -1
- package/src/Grid/Grid.stories.tsx +1 -1
- package/src/Grid/Grid.tsx +1 -1
- package/src/LicenseByline/EmbedByline.tsx +4 -4
- package/src/LinkBlock/LinkBlock.tsx +1 -1
- package/src/Pitch/Pitch.stories.tsx +1 -1
- package/src/TagSelector/TagSelector.stories.tsx +1 -1
package/src/Embed/CodeEmbed.tsx
CHANGED
|
@@ -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";
|
package/src/Embed/GlossEmbed.tsx
CHANGED
|
@@ -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
|
|
package/src/Embed/H5pEmbed.tsx
CHANGED
|
@@ -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";
|
package/src/Embed/ImageEmbed.tsx
CHANGED
|
@@ -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,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,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";
|
package/src/Gloss/Gloss.tsx
CHANGED
|
@@ -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 {
|