@ndla/ui 47.3.1 → 47.4.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/CampaignBlock/CampaignBlock.js +8 -6
- package/es/ContactBlock/ContactBlock.js +17 -14
- package/es/CopyParagraphButton/CopyParagraphButtonV2.js +5 -3
- package/es/Embed/ConceptEmbed.js +22 -13
- package/es/Embed/ConceptListEmbed.js +6 -3
- package/es/Embed/ImageEmbed.js +5 -3
- package/es/Embed/conceptComponents.js +14 -11
- package/es/Footer/Footer.js +11 -9
- package/es/Footer/FooterLinks.js +19 -34
- package/es/FrontpageArticle/FrontpageArticle.js +5 -2
- package/es/Image/Image.js +8 -5
- package/es/KeyFigure/KeyFigure.js +8 -5
- package/es/Notion/Notion.js +7 -5
- package/es/Table/Table.js +6 -6
- package/es/locale/messages-en.js +1 -0
- package/es/locale/messages-nb.js +1 -0
- package/es/locale/messages-nn.js +2 -1
- package/es/locale/messages-se.js +1 -0
- package/es/locale/messages-sma.js +1 -0
- package/lib/CampaignBlock/CampaignBlock.js +8 -6
- package/lib/ContactBlock/ContactBlock.d.ts +2 -1
- package/lib/ContactBlock/ContactBlock.js +17 -14
- package/lib/CopyParagraphButton/CopyParagraphButtonV2.d.ts +2 -1
- package/lib/CopyParagraphButton/CopyParagraphButtonV2.js +5 -3
- package/lib/Embed/ConceptEmbed.d.ts +4 -3
- package/lib/Embed/ConceptEmbed.js +22 -13
- package/lib/Embed/ConceptListEmbed.d.ts +2 -1
- package/lib/Embed/ConceptListEmbed.js +6 -3
- package/lib/Embed/ImageEmbed.d.ts +2 -1
- package/lib/Embed/ImageEmbed.js +5 -3
- package/lib/Embed/conceptComponents.d.ts +1 -0
- package/lib/Embed/conceptComponents.js +14 -11
- package/lib/Footer/Footer.d.ts +6 -1
- package/lib/Footer/Footer.js +11 -9
- package/lib/Footer/FooterLinks.d.ts +7 -2
- package/lib/Footer/FooterLinks.js +19 -34
- package/lib/FrontpageArticle/FrontpageArticle.d.ts +2 -1
- package/lib/FrontpageArticle/FrontpageArticle.js +5 -2
- package/lib/Image/Image.d.ts +2 -1
- package/lib/Image/Image.js +8 -5
- package/lib/KeyFigure/KeyFigure.d.ts +2 -1
- package/lib/KeyFigure/KeyFigure.js +8 -5
- package/lib/Notion/Notion.d.ts +2 -1
- package/lib/Notion/Notion.js +7 -5
- package/lib/Table/Table.d.ts +1 -0
- package/lib/Table/Table.js +6 -6
- package/lib/locale/messages-en.d.ts +1 -0
- package/lib/locale/messages-en.js +1 -0
- package/lib/locale/messages-nb.d.ts +1 -0
- package/lib/locale/messages-nb.js +1 -0
- package/lib/locale/messages-nn.d.ts +1 -0
- package/lib/locale/messages-nn.js +2 -1
- package/lib/locale/messages-se.d.ts +1 -0
- package/lib/locale/messages-se.js +1 -0
- package/lib/locale/messages-sma.d.ts +1 -0
- package/lib/locale/messages-sma.js +1 -0
- package/package.json +2 -2
- package/src/CampaignBlock/CampaignBlock.tsx +4 -2
- package/src/ContactBlock/ContactBlock.tsx +13 -3
- package/src/CopyParagraphButton/CopyParagraphButtonV2.tsx +3 -2
- package/src/Embed/ConceptEmbed.tsx +10 -1
- package/src/Embed/ConceptListEmbed.tsx +4 -3
- package/src/Embed/ImageEmbed.tsx +3 -1
- package/src/Embed/conceptComponents.tsx +4 -2
- package/src/Footer/Footer.stories.tsx +22 -0
- package/src/Footer/Footer.tsx +24 -18
- package/src/Footer/FooterLinks.tsx +17 -24
- package/src/FrontpageArticle/FrontpageArticle.tsx +4 -3
- package/src/Image/Image.tsx +11 -2
- package/src/KeyFigure/KeyFigure.tsx +4 -3
- package/src/Notion/Notion.tsx +3 -2
- package/src/Table/Table.tsx +1 -0
- package/src/locale/messages-en.ts +1 -0
- package/src/locale/messages-nb.ts +1 -0
- package/src/locale/messages-nn.ts +2 -1
- package/src/locale/messages-se.ts +1 -0
- package/src/locale/messages-sma.ts +1 -0
|
@@ -13,19 +13,20 @@ interface Props {
|
|
|
13
13
|
embed: ConceptMetaData;
|
|
14
14
|
fullWidth?: boolean;
|
|
15
15
|
heartButton?: HeartButtonType;
|
|
16
|
+
lang?: string;
|
|
16
17
|
}
|
|
17
|
-
export declare const ConceptEmbed: ({ embed, fullWidth, heartButton: HeartButton }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const ConceptEmbed: ({ embed, fullWidth, heartButton: HeartButton, lang }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
19
|
interface InlineConceptProps extends ConceptNotionData {
|
|
19
20
|
linkText: ReactNode;
|
|
20
21
|
heartButton?: HeartButtonType;
|
|
21
22
|
headerButtons?: ReactNode;
|
|
22
23
|
conceptHeartButton?: ReactNode;
|
|
23
24
|
}
|
|
24
|
-
export declare const InlineConcept: ({ title, content, copyright, source, visualElement, linkText, heartButton, conceptHeartButton, glossData, conceptType, headerButtons, }: InlineConceptProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const InlineConcept: ({ title, content, copyright, source, visualElement, linkText, heartButton, conceptHeartButton, glossData, conceptType, headerButtons, lang, }: InlineConceptProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
26
|
interface ConceptProps extends ConceptNotionData {
|
|
26
27
|
fullWidth?: boolean;
|
|
27
28
|
heartButton?: HeartButtonType;
|
|
28
29
|
conceptHeartButton?: ReactElement;
|
|
29
30
|
}
|
|
30
|
-
export declare const BlockConcept: ({ title, content, metaImage, copyright, source, visualElement, fullWidth, heartButton, conceptHeartButton, glossData, conceptType, }: ConceptProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const BlockConcept: ({ title, content, metaImage, copyright, source, visualElement, fullWidth, heartButton, conceptHeartButton, glossData, conceptType, lang, }: ConceptProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
32
|
export default ConceptEmbed;
|