@ndla/ui 50.13.2 → 50.13.3
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/BlogPost/BlogPost.js +5 -5
- package/es/Embed/conceptComponents.js +11 -9
- package/lib/BlogPost/BlogPost.js +5 -5
- package/lib/CompetenceGoalTab/styles.d.ts +5 -5
- package/lib/Embed/conceptComponents.js +11 -9
- package/lib/Hero/HeroContent.d.ts +1 -1
- package/lib/NDLAFilm/filmStyles.d.ts +2 -2
- package/lib/Search/ActiveFilterContent.d.ts +1 -1
- package/lib/Search/ContentTypeResultStyles.d.ts +6 -6
- package/lib/SearchTypeResult/ActiveFilterContent.d.ts +1 -1
- package/lib/TagSelector/MenuList.d.ts +1 -1
- package/lib/TagSelector/ValueButton.d.ts +1 -1
- package/package.json +17 -17
- package/src/Article/ArticleByline.stories.tsx +0 -2
- package/src/AudioPlayer/AudiPlayer.stories.tsx +0 -2
- package/src/BlogPost/BlogPost.stories.tsx +0 -4
- package/src/BlogPost/BlogPost.tsx +1 -0
- package/src/Breadcrumb/Breadcrumb.stories.tsx +0 -2
- package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +0 -2
- package/src/CampaignBlock/CampaignBlock.stories.tsx +0 -4
- package/src/ContactBlock/Contactblock.stories.tsx +0 -4
- package/src/ContentLoader/ContentLoader.stories.tsx +0 -2
- package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +0 -2
- package/src/CreatedBy/CreatedBy.stories.tsx +0 -2
- package/src/Embed/AudioEmbed.stories.tsx +0 -2
- package/src/Embed/BrightcoveEmbed.stories.tsx +0 -2
- package/src/Embed/ConceptEmbed.stories.tsx +0 -2
- package/src/Embed/ExternalEmbed.stories.tsx +0 -2
- package/src/Embed/FootnoteEmbed.stories.tsx +0 -2
- package/src/Embed/H5pEmbed.stories.tsx +0 -2
- package/src/Embed/IframeEmbed.stories.tsx +0 -2
- package/src/Embed/ImageEmbed.stories.tsx +0 -2
- package/src/Embed/RelatedContentEmbed.stories.tsx +0 -2
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +0 -2
- package/src/Embed/conceptComponents.tsx +17 -5
- package/src/ErrorMessage/ErrorMessage.stories.tsx +0 -2
- package/src/ExpandableBox/ExpandableBox.stories.tsx +0 -2
- package/src/FactBox/Factbox.stories.tsx +0 -2
- package/src/FileList/FileList.stories.tsx +0 -2
- package/src/Footer/Footer.stories.tsx +0 -2
- package/src/FramedContent/FramedContent.stories.tsx +0 -2
- package/src/Gloss/Gloss.stories.tsx +0 -4
- package/src/Grid/Grid.stories.tsx +0 -2
- package/src/Hero/Hero.stories.tsx +0 -2
- package/src/Image/Image.stories.tsx +0 -2
- package/src/KeyFigure/KeyFigure.stories.tsx +0 -2
- package/src/LanguageSelector/LanguageSelector.stories.tsx +0 -4
- package/src/LearningPaths/LearningPathMenu.stories.tsx +0 -2
- package/src/LetterFilter/LetterFilter.stories.tsx +0 -4
- package/src/LicenseByline/EmbedByline.stories.tsx +0 -4
- package/src/LinkBlock/LinkBlock.stories.tsx +0 -4
- package/src/List/OrderedList.stories.tsx +0 -2
- package/src/List/UnorderedList.stories.tsx +3 -0
- package/src/Logo/Logo.stories.tsx +0 -2
- package/src/Messages/MessageBanner.stories.tsx +0 -2
- package/src/Messages/MessageBox.stories.tsx +0 -2
- package/src/MyNdla/Resource/Folder.stories.tsx +0 -4
- package/src/MyNdla/Resource/FolderInput.stories.tsx +0 -2
- package/src/ProgrammeCard/ProgrammeCard.stories.tsx +0 -4
- package/src/Resource/BlockResource.stories.tsx +0 -4
- package/src/Resource/ListResource.stories.tsx +0 -4
- package/src/ResourceGroup/ResourceItem.stories.tsx +0 -2
- package/src/SnackBar/Snack.stories.tsx +0 -2
- package/src/Table/Table.stories.tsx +0 -2
- package/src/TagSelector/TagSelector.stories.tsx +0 -2
- package/src/TreeStructure/TreeStructure.stories.tsx +0 -2
|
@@ -15,31 +15,31 @@ type inMenuProps = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const StyledNoHit: import("@emotion/styled").StyledComponent<{
|
|
17
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
19
|
} & inMenuProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
20
20
|
export declare const showAllButtonStyle: import("@emotion/utils").SerializedStyles;
|
|
21
21
|
export declare const tooltipStyle: import("@emotion/utils").SerializedStyles;
|
|
22
22
|
export declare const StyledWrapper: import("@emotion/styled").StyledComponent<{
|
|
23
23
|
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
-
as?: import("react").ElementType<any> | undefined;
|
|
24
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
25
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
26
26
|
export declare const StyledHeader: import("@emotion/styled").StyledComponent<{
|
|
27
27
|
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
-
as?: import("react").ElementType<any> | undefined;
|
|
28
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
29
29
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
30
30
|
type StyledListItemProps = {
|
|
31
31
|
delayAnimation?: boolean;
|
|
32
32
|
};
|
|
33
33
|
export declare const StyledListItem: import("@emotion/styled").StyledComponent<{
|
|
34
34
|
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
-
as?: import("react").ElementType<any> | undefined;
|
|
35
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
36
36
|
} & StyledListItemProps, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
37
37
|
export declare const StyledList: import("@emotion/styled").StyledComponent<{
|
|
38
38
|
theme?: import("@emotion/react").Theme | undefined;
|
|
39
|
-
as?: import("react").ElementType<any> | undefined;
|
|
39
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
40
40
|
} & inMenuProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
41
41
|
export declare const StyledTag: import("@emotion/styled").StyledComponent<{
|
|
42
42
|
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
-
as?: import("react").ElementType<any> | undefined;
|
|
43
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
44
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
45
45
|
export {};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/// <reference types="react" />
|
|
9
9
|
export declare const StyledActiveFilterTitle: import("@emotion/styled").StyledComponent<{
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
12
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
13
13
|
export type FilterProps = {
|
|
14
14
|
value: string;
|
|
@@ -10,7 +10,7 @@ import { MenuListProps } from "react-select";
|
|
|
10
10
|
import { TagType } from "./types";
|
|
11
11
|
export declare const StyledMenuList: import("@emotion/styled").StyledComponent<{
|
|
12
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
14
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
15
|
declare const MenuList: ({ innerProps, innerRef, children }: MenuListProps<TagType, true>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default MenuList;
|
|
@@ -13,7 +13,7 @@ interface StyledProps {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const StyledValueButton: import("@emotion/styled").StyledComponent<{
|
|
15
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
17
|
} & StyledProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
18
|
declare const ValueButton: ({ innerProps, children, removeProps, isFocused }: MultiValueProps<TagType, true>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default ValueButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "50.13.
|
|
3
|
+
"version": "50.13.3",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
"types"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ndla/accordion": "^3.0.
|
|
35
|
-
"@ndla/button": "^12.0.
|
|
36
|
-
"@ndla/carousel": "^4.0.
|
|
37
|
-
"@ndla/core": "^4.5.
|
|
38
|
-
"@ndla/dropdown-menu": "^1.0.
|
|
39
|
-
"@ndla/forms": "^7.0.
|
|
34
|
+
"@ndla/accordion": "^3.0.38",
|
|
35
|
+
"@ndla/button": "^12.0.41",
|
|
36
|
+
"@ndla/carousel": "^4.0.39",
|
|
37
|
+
"@ndla/core": "^4.5.3",
|
|
38
|
+
"@ndla/dropdown-menu": "^1.0.34",
|
|
39
|
+
"@ndla/forms": "^7.0.11",
|
|
40
40
|
"@ndla/hooks": "^2.1.5",
|
|
41
|
-
"@ndla/icons": "^6.0.
|
|
41
|
+
"@ndla/icons": "^6.0.3",
|
|
42
42
|
"@ndla/licenses": "^7.2.5",
|
|
43
|
-
"@ndla/modal": "^5.0.
|
|
44
|
-
"@ndla/notion": "^6.0.
|
|
45
|
-
"@ndla/safelink": "^5.0.
|
|
46
|
-
"@ndla/select": "^3.3.
|
|
47
|
-
"@ndla/switch": "^1.1.
|
|
48
|
-
"@ndla/tabs": "^4.0.
|
|
49
|
-
"@ndla/tooltip": "^7.0.
|
|
50
|
-
"@ndla/typography": "^0.4.
|
|
43
|
+
"@ndla/modal": "^5.0.38",
|
|
44
|
+
"@ndla/notion": "^6.0.39",
|
|
45
|
+
"@ndla/safelink": "^5.0.3",
|
|
46
|
+
"@ndla/select": "^3.3.13",
|
|
47
|
+
"@ndla/switch": "^1.1.40",
|
|
48
|
+
"@ndla/tabs": "^4.0.3",
|
|
49
|
+
"@ndla/tooltip": "^7.0.3",
|
|
50
|
+
"@ndla/typography": "^0.4.17",
|
|
51
51
|
"@ndla/util": "^4.0.4",
|
|
52
52
|
"@radix-ui/react-popover": "^1.0.7",
|
|
53
53
|
"@radix-ui/react-slider": "^1.1.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "0aa4b6c2a8032c22c7b424e69971815328af65cc"
|
|
85
85
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryFn, StoryObj } from "@storybook/react";
|
|
10
10
|
|
|
11
11
|
import ArticleByline from "./ArticleByline";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Innholder informasjon om forfatter(e), lisensrettigheter, beskrivelse av regler ved bruk av innhold, ikon hvis artikkel er tilleggsstoff og dato for forrige oppdatering.
|
|
@@ -20,7 +19,6 @@ export default {
|
|
|
20
19
|
tags: ["autodocs"],
|
|
21
20
|
parameters: {
|
|
22
21
|
inlineStories: true,
|
|
23
|
-
...defaultParameters,
|
|
24
22
|
},
|
|
25
23
|
args: {
|
|
26
24
|
authors: [{ name: "Frida Forfatter" }, { name: "Fred Forfatter" }],
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import AudioPlayer from "./AudioPlayer";
|
|
11
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
11
|
const TextVersion = (
|
|
13
12
|
<>
|
|
14
13
|
<p>
|
|
@@ -39,7 +38,6 @@ const meta: Meta<typeof AudioPlayer> = {
|
|
|
39
38
|
title: "Components/AudioPlayer",
|
|
40
39
|
component: AudioPlayer,
|
|
41
40
|
tags: ["autodocs"],
|
|
42
|
-
parameters: defaultParameters,
|
|
43
41
|
};
|
|
44
42
|
|
|
45
43
|
export default meta;
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import { Meta, StoryFn } from "@storybook/react";
|
|
10
10
|
import BlogPost, { Props } from "./BlogPost";
|
|
11
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
11
|
|
|
13
12
|
const args: Props = {
|
|
14
13
|
title: "Min bloggpost",
|
|
@@ -26,9 +25,6 @@ export default {
|
|
|
26
25
|
title: "Components/Blog Post",
|
|
27
26
|
component: BlogPost,
|
|
28
27
|
tags: ["autodocs"],
|
|
29
|
-
parameters: {
|
|
30
|
-
...defaultParameters,
|
|
31
|
-
},
|
|
32
28
|
args: args,
|
|
33
29
|
} as Meta<typeof BlogPost>;
|
|
34
30
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import Breadcrumb from "./Breadcrumb";
|
|
11
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
11
|
|
|
13
12
|
const items = [
|
|
14
13
|
{
|
|
@@ -38,7 +37,6 @@ export default {
|
|
|
38
37
|
},
|
|
39
38
|
parameters: {
|
|
40
39
|
inlineStories: true,
|
|
41
|
-
...defaultParameters,
|
|
42
40
|
},
|
|
43
41
|
} as Meta<typeof Breadcrumb>;
|
|
44
42
|
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import { colors } from "@ndla/core";
|
|
11
11
|
import HomeBreadcrumb from "./HomeBreadcrumb";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
|
|
14
13
|
const items = [
|
|
15
14
|
{
|
|
@@ -36,7 +35,6 @@ export default {
|
|
|
36
35
|
tags: ["autodocs"],
|
|
37
36
|
parameters: {
|
|
38
37
|
inlineStories: true,
|
|
39
|
-
...defaultParameters,
|
|
40
38
|
},
|
|
41
39
|
args: {
|
|
42
40
|
items: items,
|
|
@@ -8,15 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import CampaignBlock from "./CampaignBlock";
|
|
11
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
11
|
|
|
13
12
|
export default {
|
|
14
13
|
title: "Components/Campaign Block",
|
|
15
14
|
component: CampaignBlock,
|
|
16
15
|
tags: ["autodocs"],
|
|
17
|
-
parameters: {
|
|
18
|
-
...defaultParameters,
|
|
19
|
-
},
|
|
20
16
|
args: {},
|
|
21
17
|
} as Meta<typeof CampaignBlock>;
|
|
22
18
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import { Meta, StoryFn } from "@storybook/react";
|
|
10
10
|
import ContactBlock from "./ContactBlock";
|
|
11
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
11
|
|
|
13
12
|
export default {
|
|
14
13
|
title: "Components/Contact block",
|
|
@@ -80,9 +79,6 @@ export default {
|
|
|
80
79
|
blobColor: "green",
|
|
81
80
|
blob: "pointy",
|
|
82
81
|
},
|
|
83
|
-
parameters: {
|
|
84
|
-
...defaultParameters,
|
|
85
|
-
},
|
|
86
82
|
} as Meta<typeof ContactBlock>;
|
|
87
83
|
|
|
88
84
|
export const ContactBlockStory: StoryFn<typeof ContactBlock> = ({ ...args }) => {
|
|
@@ -8,14 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import ContentLoader from ".";
|
|
11
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
11
|
|
|
13
12
|
export default {
|
|
14
13
|
title: "Components/ContentLoader",
|
|
15
14
|
tags: ["autodocs"],
|
|
16
15
|
parameters: {
|
|
17
16
|
inlineStories: true,
|
|
18
|
-
...defaultParameters,
|
|
19
17
|
},
|
|
20
18
|
args: {
|
|
21
19
|
speed: 2,
|
|
@@ -10,7 +10,6 @@ import styled from "@emotion/styled";
|
|
|
10
10
|
import { Meta, StoryFn, StoryObj } from "@storybook/react";
|
|
11
11
|
import { spacing } from "@ndla/core";
|
|
12
12
|
import { ContentTypeBadge } from "./ContentTypeBadge";
|
|
13
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
14
13
|
import * as contentTypes from "../model/ContentType";
|
|
15
14
|
|
|
16
15
|
export default {
|
|
@@ -18,7 +17,6 @@ export default {
|
|
|
18
17
|
tags: ["autodocs"],
|
|
19
18
|
parameters: {
|
|
20
19
|
inlineStories: true,
|
|
21
|
-
...defaultParameters,
|
|
22
20
|
},
|
|
23
21
|
args: {
|
|
24
22
|
size: "small",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import CreatedBy from "./CreatedBy";
|
|
11
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
11
|
|
|
13
12
|
/***
|
|
14
13
|
* LTI-versjoner av innhold fra NDLA skal vise denne teksten og logo i bunnen. "NDLA" og logoen lenker til ndla.no. "Artikkel" kan være en lenke til artikkelen på ndla.no om den fins. Begge lenker åpner som standard i ny fane men det kan overstyres med target-parameter.
|
|
@@ -19,7 +18,6 @@ export default {
|
|
|
19
18
|
tags: ["autodocs"],
|
|
20
19
|
parameters: {
|
|
21
20
|
inlineStories: true,
|
|
22
|
-
...defaultParameters,
|
|
23
21
|
},
|
|
24
22
|
args: {
|
|
25
23
|
name: "Artikkelen",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import { AudioEmbedData, AudioMeta } from "@ndla/types-embed";
|
|
11
11
|
import AudioEmbed from "./AudioEmbed";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
import StoryFavoriteButton from "../../../../stories/StoryFavoriteButton";
|
|
14
13
|
|
|
15
14
|
const embedData: AudioEmbedData = {
|
|
@@ -198,7 +197,6 @@ const meta: Meta<typeof AudioEmbed> = {
|
|
|
198
197
|
</div>
|
|
199
198
|
),
|
|
200
199
|
],
|
|
201
|
-
parameters: defaultParameters,
|
|
202
200
|
};
|
|
203
201
|
|
|
204
202
|
export default meta;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import { BrightcoveData, BrightcoveEmbedData, BrightcoveMetaData } from "@ndla/types-embed";
|
|
11
11
|
import BrightcoveEmbed from "./BrightcoveEmbed";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
import StoryFavoriteButton from "../../../../stories/StoryFavoriteButton";
|
|
14
13
|
|
|
15
14
|
const embedData: BrightcoveEmbedData = {
|
|
@@ -171,7 +170,6 @@ const meta: Meta<typeof BrightcoveEmbed> = {
|
|
|
171
170
|
</div>
|
|
172
171
|
),
|
|
173
172
|
],
|
|
174
|
-
parameters: defaultParameters,
|
|
175
173
|
};
|
|
176
174
|
|
|
177
175
|
export default meta;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import { ConceptData, ConceptEmbedData } from "@ndla/types-embed";
|
|
11
11
|
import ConceptEmbed from "./ConceptEmbed";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
import StoryFavoriteButton from "../../../../stories/StoryFavoriteButton";
|
|
14
13
|
|
|
15
14
|
const blockEmbedData: ConceptEmbedData = {
|
|
@@ -243,7 +242,6 @@ const meta: Meta<typeof ConceptEmbed> = {
|
|
|
243
242
|
</div>
|
|
244
243
|
),
|
|
245
244
|
],
|
|
246
|
-
parameters: defaultParameters,
|
|
247
245
|
};
|
|
248
246
|
|
|
249
247
|
export default meta;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import { OembedEmbedData, OembedData } from "@ndla/types-embed";
|
|
11
11
|
import ExternalEmbed from "./ExternalEmbed";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
|
|
14
13
|
const embedData: OembedEmbedData = {
|
|
15
14
|
resource: "external",
|
|
@@ -65,7 +64,6 @@ const meta: Meta<typeof ExternalEmbed> = {
|
|
|
65
64
|
</div>
|
|
66
65
|
),
|
|
67
66
|
],
|
|
68
|
-
parameters: defaultParameters,
|
|
69
67
|
};
|
|
70
68
|
|
|
71
69
|
export default meta;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryFn, StoryObj } from "@storybook/react";
|
|
10
10
|
import { FootnoteData, FootnoteEmbedData } from "@ndla/types-embed";
|
|
11
11
|
import FootnoteEmbed from "./FootnoteEmbed";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
import { ArticleByline } from "../Article";
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -25,7 +24,6 @@ export default {
|
|
|
25
24
|
component: FootnoteEmbed,
|
|
26
25
|
parameters: {
|
|
27
26
|
inlineStories: true,
|
|
28
|
-
...defaultParameters,
|
|
29
27
|
},
|
|
30
28
|
args: {
|
|
31
29
|
embed: {
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import { H5pEmbedData, H5pData } from "@ndla/types-embed";
|
|
11
11
|
import H5pEmbed from "./H5pEmbed";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
|
|
14
13
|
const embedData: H5pEmbedData = {
|
|
15
14
|
resource: "h5p",
|
|
@@ -62,7 +61,6 @@ const meta: Meta<typeof H5pEmbed> = {
|
|
|
62
61
|
</div>
|
|
63
62
|
),
|
|
64
63
|
],
|
|
65
|
-
parameters: defaultParameters,
|
|
66
64
|
};
|
|
67
65
|
|
|
68
66
|
export default meta;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import { IframeData, IframeEmbedData } from "@ndla/types-embed";
|
|
11
11
|
import IframeEmbed from "./IframeEmbed";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
|
|
14
13
|
const embedData: IframeEmbedData = {
|
|
15
14
|
width: "708px",
|
|
@@ -37,7 +36,6 @@ const meta: Meta<typeof IframeEmbed> = {
|
|
|
37
36
|
</div>
|
|
38
37
|
),
|
|
39
38
|
],
|
|
40
|
-
parameters: defaultParameters,
|
|
41
39
|
};
|
|
42
40
|
|
|
43
41
|
export default meta;
|
|
@@ -11,7 +11,6 @@ import { Meta, StoryObj } from "@storybook/react";
|
|
|
11
11
|
import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
|
|
12
12
|
import { ImageEmbedData } from "@ndla/types-embed";
|
|
13
13
|
import ImageEmbed from "./ImageEmbed";
|
|
14
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
15
14
|
import StoryFavoriteButton from "../../../../stories/StoryFavoriteButton";
|
|
16
15
|
|
|
17
16
|
const embedData: ImageEmbedData = {
|
|
@@ -104,7 +103,6 @@ const meta: Meta<typeof ImageEmbed> = {
|
|
|
104
103
|
</div>
|
|
105
104
|
),
|
|
106
105
|
],
|
|
107
|
-
parameters: defaultParameters,
|
|
108
106
|
};
|
|
109
107
|
|
|
110
108
|
export default meta;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import { RelatedContentMetaData } from "@ndla/types-embed";
|
|
11
11
|
import RelatedContentEmbed from "./RelatedContentEmbed";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
import RelatedArticleList from "../RelatedArticleList";
|
|
14
13
|
|
|
15
14
|
const filmResourceMeta: RelatedContentMetaData = {
|
|
@@ -377,7 +376,6 @@ const meta: Meta<typeof RelatedContentEmbed> = {
|
|
|
377
376
|
</div>
|
|
378
377
|
),
|
|
379
378
|
],
|
|
380
|
-
parameters: defaultParameters,
|
|
381
379
|
};
|
|
382
380
|
|
|
383
381
|
export default meta;
|
|
@@ -11,7 +11,6 @@ import { UuDisclaimerEmbedData } from "@ndla/types-embed";
|
|
|
11
11
|
import H5pEmbed from "./H5pEmbed";
|
|
12
12
|
import IframeEmbed from "./IframeEmbed";
|
|
13
13
|
import UuDisclaimerEmbed from "./UuDisclaimerEmbed";
|
|
14
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
15
14
|
import FactBox from "../FactBox";
|
|
16
15
|
import FramedContent from "../FramedContent";
|
|
17
16
|
|
|
@@ -38,7 +37,6 @@ const meta: Meta<typeof UuDisclaimerEmbed> = {
|
|
|
38
37
|
</div>
|
|
39
38
|
),
|
|
40
39
|
],
|
|
41
|
-
parameters: defaultParameters,
|
|
42
40
|
};
|
|
43
41
|
|
|
44
42
|
export default meta;
|
|
@@ -113,20 +113,32 @@ const NotionHeader = styled.div`
|
|
|
113
113
|
border-bottom: 2px solid ${colors.brand.tertiary};
|
|
114
114
|
padding-bottom: ${spacing.small};
|
|
115
115
|
h1 {
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
flex-wrap: wrap;
|
|
116
119
|
flex-grow: 1;
|
|
117
120
|
margin: 0;
|
|
118
121
|
font-weight: ${fonts.weight.bold};
|
|
119
122
|
${fonts.sizes("22px", 1.2)};
|
|
120
123
|
}
|
|
121
124
|
small {
|
|
122
|
-
|
|
123
|
-
border-left: 1px solid ${colors.brand.greyLight};
|
|
124
|
-
padding-left: ${spacing.small};
|
|
125
|
-
margin-left: ${spacing.xsmall};
|
|
126
|
-
}
|
|
125
|
+
display: flex;
|
|
127
126
|
${fonts.sizes("20px", 1.2)};
|
|
128
127
|
font-weight: ${fonts.weight.normal};
|
|
129
128
|
}
|
|
129
|
+
${mq.range({ from: breakpoints.mobileWide })} {
|
|
130
|
+
&[data-is-concept="true"] {
|
|
131
|
+
small:before {
|
|
132
|
+
display: inline-flex;
|
|
133
|
+
align-self: center;
|
|
134
|
+
margin: 0 ${spacing.xsmall};
|
|
135
|
+
content: "";
|
|
136
|
+
height: ${spacing.normal};
|
|
137
|
+
width: 1px;
|
|
138
|
+
background-color: ${colors.brand.greyLight};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
130
142
|
&[data-is-concept="false"] {
|
|
131
143
|
margin-bottom: ${spacing.large};
|
|
132
144
|
}
|
|
@@ -10,7 +10,6 @@ import { Meta, StoryFn, StoryObj } from "@storybook/react";
|
|
|
10
10
|
import ErrorMessage from "./ErrorMessage";
|
|
11
11
|
//@ts-ignore
|
|
12
12
|
import Oops from "../../../../images/oops.gif";
|
|
13
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* Feilmeldingskomponenten lenker tilbake til forrige side eller til forsiden. Den brukes når det har oppstått en feil i systemet, f.eks. ved 404- eller 503-feil.
|
|
@@ -21,7 +20,6 @@ export default {
|
|
|
21
20
|
tags: ["autodocs"],
|
|
22
21
|
parameters: {
|
|
23
22
|
inlineStories: true,
|
|
24
|
-
...defaultParameters,
|
|
25
23
|
},
|
|
26
24
|
args: {
|
|
27
25
|
illustration: {
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import { Meta, StoryFn, StoryObj } from "@storybook/react";
|
|
10
10
|
import { ExpandableBox, ExpandableBoxSummary } from "./ExpandableBox";
|
|
11
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* This is just a thin wrapper around the native HTML details element.
|
|
@@ -20,7 +19,6 @@ export default {
|
|
|
20
19
|
tags: ["autodocs"],
|
|
21
20
|
parameters: {
|
|
22
21
|
inlineStories: true,
|
|
23
|
-
...defaultParameters,
|
|
24
22
|
},
|
|
25
23
|
component: ExpandableBox,
|
|
26
24
|
render: (args) => (
|
|
@@ -11,7 +11,6 @@ import { Meta, StoryObj } from "@storybook/react";
|
|
|
11
11
|
import { spacing } from "@ndla/core";
|
|
12
12
|
import { Heading, Text } from "@ndla/typography";
|
|
13
13
|
import FactBox from "./FactBox";
|
|
14
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
15
14
|
|
|
16
15
|
const Wrapper = styled.div`
|
|
17
16
|
padding: ${spacing.normal};
|
|
@@ -26,7 +25,6 @@ export default {
|
|
|
26
25
|
tags: ["autodocs"],
|
|
27
26
|
paramemeters: {
|
|
28
27
|
inlineStories: true,
|
|
29
|
-
...defaultParameters,
|
|
30
28
|
},
|
|
31
29
|
decorators: [
|
|
32
30
|
(Story) => (
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { Meta, StoryObj } from "@storybook/react";
|
|
10
10
|
import File from "./File";
|
|
11
11
|
import FileList from "./FileList";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
|
|
14
13
|
export default {
|
|
15
14
|
title: "Components/FileList",
|
|
@@ -17,7 +16,6 @@ export default {
|
|
|
17
16
|
component: File,
|
|
18
17
|
parameters: {
|
|
19
18
|
inlineStories: true,
|
|
20
|
-
...defaultParameters,
|
|
21
19
|
},
|
|
22
20
|
args: {
|
|
23
21
|
title: "Min fil",
|
|
@@ -11,7 +11,6 @@ import { EmailOutline, Facebook, Instagram, LinkedIn, Share, Youtube } from "@nd
|
|
|
11
11
|
import { EditorName } from "./EditorName";
|
|
12
12
|
import Footer from "./Footer";
|
|
13
13
|
import { FooterText } from "./FooterText";
|
|
14
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
15
14
|
|
|
16
15
|
const mockCommonLinks = [
|
|
17
16
|
{
|
|
@@ -85,7 +84,6 @@ export default {
|
|
|
85
84
|
component: Footer,
|
|
86
85
|
parameters: {
|
|
87
86
|
inlineStories: true,
|
|
88
|
-
...defaultParameters,
|
|
89
87
|
},
|
|
90
88
|
|
|
91
89
|
args: {
|
|
@@ -10,7 +10,6 @@ import { Meta, StoryObj } from "@storybook/react";
|
|
|
10
10
|
import { CopyrightMetaData } from "@ndla/types-embed";
|
|
11
11
|
import FramedContent from "./FramedContent";
|
|
12
12
|
import FigureImage from "../../../../stories/article/FigureImage";
|
|
13
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
14
13
|
import { CopyrightEmbed } from "../Embed";
|
|
15
14
|
|
|
16
15
|
export default {
|
|
@@ -19,7 +18,6 @@ export default {
|
|
|
19
18
|
tags: ["autodocs"],
|
|
20
19
|
parameters: {
|
|
21
20
|
inlineStories: true,
|
|
22
|
-
...defaultParameters,
|
|
23
21
|
},
|
|
24
22
|
args: {
|
|
25
23
|
children: <p>Content!</p>,
|
|
@@ -9,16 +9,12 @@
|
|
|
9
9
|
import { Meta, StoryObj, StoryFn } from "@storybook/react";
|
|
10
10
|
import Gloss from "./Gloss";
|
|
11
11
|
import GlossExample from "./GlossExample";
|
|
12
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
12
|
import { wordClass } from "../model/WordClass";
|
|
14
13
|
|
|
15
14
|
const meta: Meta<typeof Gloss> = {
|
|
16
15
|
title: "Components/Gloss",
|
|
17
16
|
component: Gloss,
|
|
18
17
|
tags: ["autodocs"],
|
|
19
|
-
parameters: {
|
|
20
|
-
...defaultParameters,
|
|
21
|
-
},
|
|
22
18
|
args: {
|
|
23
19
|
title: {
|
|
24
20
|
title: "Å angripe",
|
|
@@ -11,7 +11,6 @@ import { DocsContainer, DocsContainerProps } from "@storybook/addon-docs";
|
|
|
11
11
|
import { Meta, StoryFn } from "@storybook/react";
|
|
12
12
|
import { colors } from "@ndla/core";
|
|
13
13
|
import Grid from "./Grid";
|
|
14
|
-
import { defaultParameters } from "../../../../stories/defaults";
|
|
15
14
|
import { BlogPostStory } from "../BlogPost/BlogPost.stories";
|
|
16
15
|
import { KeyFigureStory } from "../KeyFigure/KeyFigure.stories";
|
|
17
16
|
|
|
@@ -32,7 +31,6 @@ export default {
|
|
|
32
31
|
component: Grid,
|
|
33
32
|
tags: ["autodocs"],
|
|
34
33
|
parameters: {
|
|
35
|
-
...defaultParameters,
|
|
36
34
|
layout: "centered",
|
|
37
35
|
docs: {
|
|
38
36
|
container: GridDocsContainer,
|