@ndla/ui 56.0.75-alpha.0 → 56.0.76-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/dist/panda.buildinfo.json +1 -0
- package/dist/styles.css +4 -0
- package/es/Article/ArticleByline.js +1 -1
- package/es/AudioPlayer/AudioPlayer.js +1 -0
- package/es/AudioPlayer/Controls.js +1 -3
- package/es/AudioPlayer/SpeechControl.js +1 -1
- package/es/Breadcrumb/BreadcrumbItem.js +1 -1
- package/es/Breadcrumb/HomeBreadcrumb.js +1 -1
- package/es/CampaignBlock/CampaignBlock.js +1 -1
- package/es/CopyParagraphButton/CopyParagraphButton.js +1 -1
- package/es/Embed/CodeEmbed.js +1 -2
- package/es/Embed/EmbedErrorPlaceholder.js +2 -2
- package/es/Embed/ImageEmbed.js +1 -1
- package/es/Embed/UuDisclaimerEmbed.js +1 -1
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +1 -1
- package/es/FactBox/FactBox.js +1 -1
- package/es/FileList/File.js +1 -1
- package/es/Gloss/Gloss.js +1 -1
- package/es/LicenseByline/EmbedByline.js +1 -1
- package/es/LinkBlock/LinkBlock.js +1 -2
- package/es/RelatedArticleList/RelatedArticleList.js +1 -1
- package/es/ResourceBox/ResourceBox.js +1 -1
- package/es/TagSelector/TagSelector.js +1 -1
- package/lib/Article/Article.d.ts +3 -3
- package/lib/Article/ArticleByline.d.ts +3 -3
- package/lib/Article/ArticleByline.js +2 -2
- package/lib/Article/ArticleFootNotes.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.js +1 -0
- package/lib/AudioPlayer/Controls.js +6 -8
- package/lib/AudioPlayer/SpeechControl.js +2 -2
- package/lib/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.js +2 -2
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +4 -4
- package/lib/CampaignBlock/CampaignBlock.d.ts +2 -2
- package/lib/CampaignBlock/CampaignBlock.js +2 -2
- package/lib/CodeBlock/CodeBlock.d.ts +1 -1
- package/lib/Concept/Concept.d.ts +3 -3
- package/lib/ContactBlock/ContactBlock.d.ts +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +1 -1
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.d.ts +2 -2
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.d.ts +2 -2
- package/lib/ContentTypeHero/ContentTypeHero.d.ts +2 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -1
- package/lib/CopyParagraphButton/CopyParagraphButton.js +2 -2
- package/lib/Embed/AudioEmbed.d.ts +2 -2
- package/lib/Embed/BrightcoveEmbed.d.ts +2 -2
- package/lib/Embed/CodeEmbed.d.ts +1 -1
- package/lib/Embed/CodeEmbed.js +2 -3
- package/lib/Embed/ConceptEmbed.d.ts +3 -3
- package/lib/Embed/ContentLinkEmbed.d.ts +2 -2
- package/lib/Embed/CopyrightEmbed.d.ts +2 -2
- package/lib/Embed/EmbedErrorPlaceholder.d.ts +2 -2
- package/lib/Embed/EmbedErrorPlaceholder.js +2 -2
- package/lib/Embed/EmbedWrapper.d.ts +1 -1
- package/lib/Embed/ExternalEmbed.d.ts +1 -1
- package/lib/Embed/FootnoteEmbed.d.ts +1 -1
- package/lib/Embed/GlossEmbed.d.ts +1 -1
- package/lib/Embed/H5pEmbed.d.ts +1 -1
- package/lib/Embed/IframeEmbed.d.ts +1 -1
- package/lib/Embed/ImageEmbed.d.ts +3 -3
- package/lib/Embed/ImageEmbed.js +2 -2
- package/lib/Embed/RelatedContentEmbed.d.ts +1 -1
- package/lib/Embed/UnknownEmbed.d.ts +1 -1
- package/lib/Embed/UuDisclaimerEmbed.d.ts +2 -2
- package/lib/Embed/UuDisclaimerEmbed.js +2 -2
- package/lib/Embed/types.d.ts +3 -3
- package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +3 -3
- package/lib/FactBox/FactBox.d.ts +1 -1
- package/lib/FactBox/FactBox.js +2 -2
- package/lib/FileList/File.d.ts +1 -1
- package/lib/FileList/File.js +2 -2
- package/lib/FileList/FileList.d.ts +1 -1
- package/lib/Gloss/Gloss.d.ts +1 -1
- package/lib/Gloss/Gloss.js +2 -2
- package/lib/Gloss/GlossExample.d.ts +1 -1
- package/lib/Grid/Grid.d.ts +1 -1
- package/lib/Grid/GridParallaxItem.d.ts +1 -1
- package/lib/LicenseByline/EmbedByline.d.ts +6 -6
- package/lib/LicenseByline/EmbedByline.js +2 -2
- package/lib/LicenseByline/LicenseLink.d.ts +2 -2
- package/lib/LinkBlock/LinkBlock.d.ts +1 -1
- package/lib/LinkBlock/LinkBlock.js +3 -4
- package/lib/LinkBlock/LinkBlockSection.d.ts +1 -1
- package/lib/RelatedArticleList/RelatedArticleList.d.ts +2 -2
- package/lib/RelatedArticleList/RelatedArticleList.js +2 -2
- package/lib/ResourceBox/ResourceBox.js +2 -2
- package/lib/TagSelector/TagSelector.d.ts +1 -1
- package/lib/TagSelector/TagSelector.js +2 -2
- package/lib/ZendeskButton/ZendeskButton.d.ts +1 -1
- package/lib/i18n/useComponentTranslations.d.ts +1 -1
- package/lib/types.d.ts +1 -1
- package/package.json +10 -10
- package/src/Article/Article.tsx +4 -4
- package/src/Article/ArticleByline.stories.tsx +1 -1
- package/src/Article/ArticleByline.tsx +5 -5
- package/src/Article/ArticleFootNotes.tsx +1 -1
- package/src/AudioPlayer/AudiPlayer.stories.tsx +1 -1
- package/src/AudioPlayer/AudioPlayer.tsx +2 -1
- package/src/AudioPlayer/Controls.tsx +1 -3
- package/src/AudioPlayer/SpeechControl.tsx +1 -1
- package/src/Breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/src/Breadcrumb/Breadcrumb.tsx +2 -2
- package/src/Breadcrumb/BreadcrumbItem.tsx +2 -2
- package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +1 -1
- package/src/Breadcrumb/HomeBreadcrumb.tsx +2 -2
- package/src/CampaignBlock/CampaignBlock.stories.tsx +1 -1
- package/src/CampaignBlock/CampaignBlock.tsx +4 -4
- package/src/CodeBlock/CodeBlock.stories.tsx +1 -1
- package/src/CodeBlock/CodeBlock.tsx +1 -1
- package/src/Concept/Concept.stories.tsx +2 -2
- package/src/Concept/Concept.tsx +3 -3
- package/src/ContactBlock/ContactBlock.stories.tsx +1 -1
- package/src/ContactBlock/ContactBlock.tsx +2 -2
- package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +2 -2
- package/src/ContentTypeBadge/ContentTypeBadge.tsx +1 -1
- package/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx +2 -2
- package/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx +2 -2
- package/src/ContentTypeHero/ContentTypeHero.stories.tsx +1 -1
- package/src/ContentTypeHero/ContentTypeHero.tsx +2 -2
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +2 -2
- package/src/Embed/AudioEmbed.stories.tsx +2 -2
- package/src/Embed/AudioEmbed.tsx +2 -2
- package/src/Embed/BrightcoveEmbed.stories.tsx +2 -2
- package/src/Embed/BrightcoveEmbed.tsx +2 -2
- package/src/Embed/CodeEmbed.stories.tsx +1 -1
- package/src/Embed/CodeEmbed.tsx +3 -4
- package/src/Embed/ConceptEmbed.stories.tsx +2 -2
- package/src/Embed/ConceptEmbed.tsx +3 -3
- package/src/Embed/ContentLinkEmbed.tsx +2 -2
- package/src/Embed/CopyrightEmbed.tsx +2 -2
- package/src/Embed/EmbedErrorPlaceholder.tsx +4 -4
- package/src/Embed/EmbedWrapper.tsx +1 -1
- package/src/Embed/ExternalEmbed.stories.tsx +2 -2
- package/src/Embed/ExternalEmbed.tsx +1 -1
- package/src/Embed/FootnoteEmbed.stories.tsx +2 -2
- package/src/Embed/FootnoteEmbed.tsx +1 -1
- package/src/Embed/GlossEmbed.stories.tsx +2 -2
- package/src/Embed/GlossEmbed.tsx +1 -1
- package/src/Embed/H5pEmbed.stories.tsx +2 -2
- package/src/Embed/H5pEmbed.tsx +1 -1
- package/src/Embed/IframeEmbed.stories.tsx +2 -2
- package/src/Embed/IframeEmbed.tsx +1 -1
- package/src/Embed/ImageEmbed.stories.tsx +4 -4
- package/src/Embed/ImageEmbed.tsx +5 -5
- package/src/Embed/InlineTriggerButton.tsx +1 -1
- package/src/Embed/RelatedContentEmbed.stories.tsx +2 -2
- package/src/Embed/RelatedContentEmbed.tsx +1 -1
- package/src/Embed/UnknownEmbed.tsx +1 -1
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +2 -2
- package/src/Embed/UuDisclaimerEmbed.tsx +3 -3
- package/src/Embed/types.ts +3 -3
- package/src/ErrorMessage/ErrorMessage.stories.tsx +1 -1
- package/src/ErrorMessage/ErrorMessage.tsx +1 -1
- package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +1 -1
- package/src/FactBox/FactBox.tsx +11 -2
- package/src/FactBox/Factbox.stories.tsx +1 -1
- package/src/FileList/File.tsx +2 -2
- package/src/FileList/FileList.stories.tsx +3 -4
- package/src/FileList/FileList.tsx +1 -1
- package/src/Gloss/Gloss.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/Grid/GridParallaxItem.tsx +1 -1
- package/src/KeyFigure/KeyFigure.stories.tsx +1 -1
- package/src/LicenseByline/EmbedByline.stories.tsx +1 -1
- package/src/LicenseByline/EmbedByline.tsx +7 -7
- package/src/LicenseByline/LicenseLink.tsx +2 -2
- package/src/LinkBlock/LinkBlock.stories.tsx +1 -1
- package/src/LinkBlock/LinkBlock.tsx +2 -3
- package/src/LinkBlock/LinkBlockSection.tsx +1 -1
- package/src/Pitch/Pitch.stories.tsx +2 -2
- package/src/RelatedArticleList/RelatedArticleList.tsx +3 -3
- package/src/ResourceBox/ResourceBox.tsx +1 -1
- package/src/TagSelector/TagSelector.stories.tsx +2 -4
- package/src/TagSelector/TagSelector.tsx +7 -7
- package/src/ZendeskButton/ZendeskButton.tsx +1 -1
- package/src/i18n/useComponentTranslations.ts +1 -1
- package/src/types.ts +1 -1
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"padding]___[value:xsmall",
|
|
57
57
|
"paddingBlock]___[value:xsmall]___[cond:&[data-has-image='true']<___>tablet",
|
|
58
58
|
"paddingInline]___[value:medium]___[cond:&[data-has-image='true']<___>tablet",
|
|
59
|
+
"fontFamily]___[value:sans",
|
|
59
60
|
"width]___[value:100%]___[cond:tabletWide",
|
|
60
61
|
"justifyContent]___[value:space-between]___[cond:tabletWide",
|
|
61
62
|
"borderBlockStart]___[value:1px solid",
|
package/dist/styles.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { forwardRef, useCallback, useEffect, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import { useLocation } from "react-router-dom";
|
|
12
|
-
import { ArrowDownShortLine } from "@ndla/icons
|
|
12
|
+
import { ArrowDownShortLine } from "@ndla/icons";
|
|
13
13
|
import { AccordionItem, AccordionItemContent, AccordionItemIndicator, AccordionItemTrigger, AccordionRoot, Heading } from "@ndla/primitives";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
15
15
|
import { ArticleFootNotes } from "./ArticleFootNotes";
|
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
import { useEffect, useRef, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import { createListCollection } from "@ark-ui/react";
|
|
12
|
-
import { Replay15Line, Forward15Line } from "@ndla/icons
|
|
13
|
-
import { PlayFill, PauseLine, VolumeUpFill } from "@ndla/icons/common";
|
|
14
|
-
import { CheckLine } from "@ndla/icons/editor";
|
|
12
|
+
import { Replay15Line, Forward15Line, PlayFill, PauseLine, VolumeUpFill, CheckLine } from "@ndla/icons";
|
|
15
13
|
import { Button, FieldRoot, IconButton, PopoverContent, PopoverRoot, PopoverTrigger, SelectContent, SelectControl, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SliderControl, SliderHiddenInput, SliderLabel, SliderRange, SliderRoot, SliderThumb, SliderTrack, Text } from "@ndla/primitives";
|
|
16
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
17
15
|
import { visuallyHidden } from "@ndla/styled-system/patterns";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useRef } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { VolumeUpFill } from "@ndla/icons
|
|
11
|
+
import { VolumeUpFill } from "@ndla/icons";
|
|
12
12
|
import { TooltipRoot, TooltipTrigger, TooltipContent, IconButton } from "@ndla/primitives";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
const SpeechControl = _ref => {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useRef, useImperativeHandle, forwardRef } from "react";
|
|
10
|
-
import { ArrowRightShortLine } from "@ndla/icons
|
|
10
|
+
import { ArrowRightShortLine } from "@ndla/icons";
|
|
11
11
|
import { SafeLink } from "@ndla/safelink";
|
|
12
12
|
import { styled } from "@ndla/styled-system/jsx";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { ArrowRightShortLine, HomeLine } from "@ndla/icons
|
|
9
|
+
import { ArrowRightShortLine, HomeLine } from "@ndla/icons";
|
|
10
10
|
import { SafeLink } from "@ndla/safelink";
|
|
11
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
12
12
|
import Breadcrumb from "./Breadcrumb";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import parse from "html-react-parser";
|
|
10
|
-
import { ArrowRightLine } from "@ndla/icons
|
|
10
|
+
import { ArrowRightLine } from "@ndla/icons";
|
|
11
11
|
import { Text } from "@ndla/primitives";
|
|
12
12
|
import { SafeLinkButton } from "@ndla/safelink";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { LinkMedium } from "@ndla/icons
|
|
11
|
+
import { LinkMedium } from "@ndla/icons";
|
|
12
12
|
import { IconButton } from "@ndla/primitives";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
14
14
|
import { copyTextToClipboard } from "@ndla/util";
|
package/es/Embed/CodeEmbed.js
CHANGED
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useEffect, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { FileCopyLine } from "@ndla/icons
|
|
12
|
-
import { CheckLine } from "@ndla/icons/editor";
|
|
11
|
+
import { FileCopyLine, CheckLine } from "@ndla/icons";
|
|
13
12
|
import { Button, Figure } from "@ndla/primitives";
|
|
14
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
15
14
|
import { copyTextToClipboard } from "@ndla/util";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { ErrorWarningLine } from "@ndla/icons";
|
|
10
10
|
import { Figure } from "@ndla/primitives";
|
|
11
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
12
12
|
import { EmbedByline } from "../LicenseByline";
|
|
@@ -48,7 +48,7 @@ const EmbedErrorPlaceholder = _ref => {
|
|
|
48
48
|
"data-embed-type": type,
|
|
49
49
|
children: [children ?? /*#__PURE__*/_jsx(ErrorPlaceholder, {
|
|
50
50
|
"data-embed-type": type,
|
|
51
|
-
children: /*#__PURE__*/_jsx(
|
|
51
|
+
children: /*#__PURE__*/_jsx(ErrorWarningLine, {})
|
|
52
52
|
}), /*#__PURE__*/_jsx(EmbedByline, {
|
|
53
53
|
error: true,
|
|
54
54
|
type: type
|
package/es/Embed/ImageEmbed.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import parse from "html-react-parser";
|
|
10
10
|
import { useMemo, useState } from "react";
|
|
11
11
|
import { useTranslation } from "react-i18next";
|
|
12
|
-
import { AddLine } from "@ndla/icons
|
|
12
|
+
import { AddLine } from "@ndla/icons";
|
|
13
13
|
import { Figure, Image } from "@ndla/primitives";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
15
15
|
import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
10
|
-
import { PresentationLine, LoginBoxLine } from "@ndla/icons
|
|
10
|
+
import { PresentationLine, LoginBoxLine } from "@ndla/icons";
|
|
11
11
|
import { Button } from "@ndla/primitives";
|
|
12
12
|
import { styled } from "@ndla/styled-system/jsx";
|
|
13
13
|
import ErrorMessage from "./ErrorMessage";
|
package/es/FactBox/FactBox.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { forwardRef, useCallback, useEffect, useId, useMemo, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { ArrowDownShortLine } from "@ndla/icons
|
|
11
|
+
import { ArrowDownShortLine } from "@ndla/icons";
|
|
12
12
|
import { IconButton } from "@ndla/primitives";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
package/es/FileList/File.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { forwardRef } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { DownloadLine } from "@ndla/icons
|
|
11
|
+
import { DownloadLine } from "@ndla/icons";
|
|
12
12
|
import { Text } from "@ndla/primitives";
|
|
13
13
|
import { SafeLink } from "@ndla/safelink";
|
|
14
14
|
import { HStack, styled } from "@ndla/styled-system/jsx";
|
package/es/Gloss/Gloss.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { useMemo } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import { AccordionItemTrigger } from "@ark-ui/react";
|
|
12
|
-
import { ArrowDownShortLine } from "@ndla/icons
|
|
12
|
+
import { ArrowDownShortLine } from "@ndla/icons";
|
|
13
13
|
import { AccordionItem, AccordionItemContent, AccordionItemIndicator, AccordionRoot, IconButton, Text } from "@ndla/primitives";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
15
15
|
import GlossExample from "./GlossExample";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { AlertLine } from "@ndla/icons
|
|
11
|
+
import { AlertLine } from "@ndla/icons";
|
|
12
12
|
import { getLicenseByAbbreviation, getLicenseCredits } from "@ndla/licenses";
|
|
13
13
|
import { Button, Text } from "@ndla/primitives";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import parse from "html-react-parser";
|
|
10
10
|
import { useMemo } from "react";
|
|
11
|
-
import { ArrowRightLine } from "@ndla/icons
|
|
12
|
-
import { CalendarLine } from "@ndla/icons/editor";
|
|
11
|
+
import { ArrowRightLine, CalendarLine } from "@ndla/icons";
|
|
13
12
|
import { Heading } from "@ndla/primitives";
|
|
14
13
|
import { SafeLink } from "@ndla/safelink";
|
|
15
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { Children, useMemo, useState } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import { ExternalLinkLine } from "@ndla/icons
|
|
11
|
+
import { ExternalLinkLine } from "@ndla/icons";
|
|
12
12
|
import { CardContent, CardHeading, CardRoot, Text, Heading, Button } from "@ndla/primitives";
|
|
13
13
|
import { SafeLink } from "@ndla/safelink";
|
|
14
14
|
import { styled } from "@ndla/styled-system/jsx";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { breakpoints } from "@ndla/core";
|
|
10
|
-
import { ShareBoxLine } from "@ndla/icons
|
|
10
|
+
import { ShareBoxLine } from "@ndla/icons";
|
|
11
11
|
import { Heading, Image, Text } from "@ndla/primitives";
|
|
12
12
|
import { SafeLinkButton } from "@ndla/safelink";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { forwardRef, useEffect, useId, useRef } from "react";
|
|
10
10
|
import { useTagsInputContext, useComboboxContext } from "@ark-ui/react";
|
|
11
|
-
import { CloseLine } from "@ndla/icons
|
|
11
|
+
import { CloseLine } from "@ndla/icons";
|
|
12
12
|
import { ComboboxClearTrigger, ComboboxControl, ComboboxInput, ComboboxLabel, ComboboxRoot, ComboboxTrigger, TagsInputControl, TagsInputInput, TagsInputItem, TagsInputItemDeleteTrigger, TagsInputItemPreview, TagsInputItemText, TagsInputRoot, TagsInputItemInput } from "@ndla/primitives";
|
|
13
13
|
import { contains } from "@ndla/util";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
package/lib/Article/Article.d.ts
CHANGED
|
@@ -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 { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
|
|
10
|
-
import { Article as ArticleType } from "../types";
|
|
8
|
+
import { type ReactNode } from "react";
|
|
9
|
+
import { type ContentType } from "../ContentTypeBadge/ContentTypeBadge";
|
|
10
|
+
import type { Article as ArticleType } from "../types";
|
|
11
11
|
export declare const ArticleContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
|
|
12
12
|
consumeCss?: boolean;
|
|
13
13
|
} & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -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 { AccordionItemProps } from "@ndla/primitives";
|
|
10
|
-
import { FootNote } from "../types";
|
|
8
|
+
import { type ReactNode } from "react";
|
|
9
|
+
import { type AccordionItemProps } from "@ndla/primitives";
|
|
10
|
+
import type { FootNote } from "../types";
|
|
11
11
|
type AuthorProps = {
|
|
12
12
|
name: string;
|
|
13
13
|
};
|
|
@@ -7,7 +7,7 @@ exports.ArticleBylineAccordionItem = exports.ArticleByline = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactI18next = require("react-i18next");
|
|
9
9
|
var _reactRouterDom = require("react-router-dom");
|
|
10
|
-
var
|
|
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 _ArticleFootNotes = require("./ArticleFootNotes");
|
|
@@ -178,7 +178,7 @@ const ArticleBylineAccordionItem = exports.ArticleBylineAccordionItem = /*#__PUR
|
|
|
178
178
|
})
|
|
179
179
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemIndicator, {
|
|
180
180
|
asChild: true,
|
|
181
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
181
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowDownShortLine, {})
|
|
182
182
|
})]
|
|
183
183
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemContent, {
|
|
184
184
|
children: children
|
|
@@ -7,9 +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
|
|
11
|
-
var _common = require("@ndla/icons/common");
|
|
12
|
-
var _editor = require("@ndla/icons/editor");
|
|
10
|
+
var _icons = require("@ndla/icons");
|
|
13
11
|
var _primitives = require("@ndla/primitives");
|
|
14
12
|
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
15
13
|
var _patterns = require("@ndla/styled-system/patterns");
|
|
@@ -218,18 +216,18 @@ const Controls = _ref => {
|
|
|
218
216
|
title: t("audio.controls.rewind15sec"),
|
|
219
217
|
"aria-label": t("audio.controls.rewind15sec"),
|
|
220
218
|
onClick: () => onSeekSeconds(-15),
|
|
221
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
219
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Replay15Line, {})
|
|
222
220
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(PlayButton, {
|
|
223
221
|
"aria-label": t(playing ? t("audio.pause") : t("audio.play")),
|
|
224
222
|
variant: "primary",
|
|
225
223
|
onClick: togglePlay,
|
|
226
|
-
children: playing ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
224
|
+
children: playing ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PauseLine, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PlayFill, {})
|
|
227
225
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Forward15SecButton, {
|
|
228
226
|
variant: "tertiary",
|
|
229
227
|
title: t("audio.controls.forward15sec"),
|
|
230
228
|
"aria-label": t("audio.controls.forward15sec"),
|
|
231
229
|
onClick: () => onSeekSeconds(15),
|
|
232
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
230
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Forward15Line, {})
|
|
233
231
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(ProgressWrapper, {
|
|
234
232
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StyledText, {
|
|
235
233
|
textStyle: "label.medium",
|
|
@@ -293,7 +291,7 @@ const Controls = _ref => {
|
|
|
293
291
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SelectItemText, {
|
|
294
292
|
children: [speed, "x"]
|
|
295
293
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SelectItemIndicator, {
|
|
296
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
294
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CheckLine, {})
|
|
297
295
|
})]
|
|
298
296
|
}, speed))
|
|
299
297
|
})]
|
|
@@ -307,7 +305,7 @@ const Controls = _ref => {
|
|
|
307
305
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(VolumeButton, {
|
|
308
306
|
variant: "tertiary",
|
|
309
307
|
"aria-label": t("audio.controls.adjustVolume"),
|
|
310
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
308
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.VolumeUpFill, {})
|
|
311
309
|
})
|
|
312
310
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledPopoverContent, {
|
|
313
311
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SliderRoot, {
|
|
@@ -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
|
|
9
|
+
var _icons = require("@ndla/icons");
|
|
10
10
|
var _primitives = require("@ndla/primitives");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
/**
|
|
@@ -51,7 +51,7 @@ const SpeechControl = _ref => {
|
|
|
51
51
|
variant: "tertiary",
|
|
52
52
|
"aria-label": t(`${type}.play`),
|
|
53
53
|
onClick: togglePlay,
|
|
54
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
54
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.VolumeUpFill, {})
|
|
55
55
|
})
|
|
56
56
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TooltipContent, {
|
|
57
57
|
children: t(`${type}.play`)
|
|
@@ -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 { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from "./BreadcrumbItem";
|
|
8
|
+
import { type ReactNode } from "react";
|
|
9
|
+
import { type IndexedBreadcrumbItem, type SimpleBreadcrumbItem } from "./BreadcrumbItem";
|
|
10
10
|
interface Props {
|
|
11
11
|
items: SimpleBreadcrumbItem[];
|
|
12
12
|
collapseFirst?: boolean;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _icons = require("@ndla/icons");
|
|
9
9
|
var _safelink = require("@ndla/safelink");
|
|
10
10
|
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -62,7 +62,7 @@ const BreadcrumbItem = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
62
62
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
63
63
|
children: name
|
|
64
64
|
})
|
|
65
|
-
}), renderSeparator ? renderSeparator(item, totalCount) : !isLast && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
65
|
+
}), renderSeparator ? renderSeparator(item, totalCount) : !isLast && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightShortLine, {})]
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
var _default = exports.default = BreadcrumbItem;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _icons = require("@ndla/icons");
|
|
8
8
|
var _safelink = require("@ndla/safelink");
|
|
9
9
|
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
10
10
|
var _Breadcrumb = _interopRequireDefault(require("./Breadcrumb"));
|
|
@@ -30,7 +30,7 @@ const StyledSafeLink = (0, _jsx2.styled)(_safelink.SafeLink, {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
-
const StyledArrowRight = (0, _jsx2.styled)(
|
|
33
|
+
const StyledArrowRight = (0, _jsx2.styled)(_icons.ArrowRightShortLine, {
|
|
34
34
|
base: {
|
|
35
35
|
tabletDown: {
|
|
36
36
|
display: "none"
|
|
@@ -56,7 +56,7 @@ const HomeBreadcrumb = _ref => {
|
|
|
56
56
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(IconSafeLink, {
|
|
57
57
|
"aria-label": item.name,
|
|
58
58
|
to: item.to,
|
|
59
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.HomeLine, {
|
|
60
60
|
title: item.name
|
|
61
61
|
})
|
|
62
62
|
});
|
|
@@ -73,7 +73,7 @@ const HomeBreadcrumb = _ref => {
|
|
|
73
73
|
if (item.index === 0) {
|
|
74
74
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledArrowRight, {});
|
|
75
75
|
}
|
|
76
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightShortLine, {});
|
|
77
77
|
};
|
|
78
78
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Breadcrumb.default, {
|
|
79
79
|
items: items,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { CampaignBlockEmbedData } from "@ndla/types-embed";
|
|
9
|
-
import { HeadingLevel } from "../types";
|
|
8
|
+
import type { CampaignBlockEmbedData } from "@ndla/types-embed";
|
|
9
|
+
import type { HeadingLevel } from "../types";
|
|
10
10
|
interface Image {
|
|
11
11
|
src: string;
|
|
12
12
|
alt: string;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
|
|
8
|
-
var
|
|
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");
|
|
@@ -179,7 +179,7 @@ const CampaignBlock = _ref2 => {
|
|
|
179
179
|
}), !!url?.url && /*#__PURE__*/(0, _jsxRuntime.jsxs)(LinkButton, {
|
|
180
180
|
url: url.url,
|
|
181
181
|
path: path,
|
|
182
|
-
children: [(0, _htmlReactParser.default)(url.text ?? ""), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
182
|
+
children: [(0, _htmlReactParser.default)(url.text ?? ""), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightLine, {})]
|
|
183
183
|
})]
|
|
184
184
|
}), imageSide !== "left" && imageComponent]
|
|
185
185
|
})
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
import { type ComponentPropsWithRef } from "react";
|
|
9
|
-
import {
|
|
9
|
+
import type { JsxStyleProps } from "@ndla/styled-system/types";
|
|
10
10
|
interface Props extends JsxStyleProps, ComponentPropsWithRef<"pre"> {
|
|
11
11
|
highlightedCode: string;
|
|
12
12
|
format: string;
|
package/lib/Concept/Concept.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
9
|
-
import { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api";
|
|
10
|
-
import { ConceptVisualElementMeta } from "@ndla/types-embed";
|
|
8
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
9
|
+
import type { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api";
|
|
10
|
+
import type { ConceptVisualElementMeta } from "@ndla/types-embed";
|
|
11
11
|
export interface ConceptProps extends ComponentPropsWithRef<"figure"> {
|
|
12
12
|
copyright?: ConceptCopyright;
|
|
13
13
|
visualElement?: ConceptVisualElementMeta;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
|
|
8
|
+
import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
|
|
9
9
|
export type ContactBlockBackground = "strong" | "moderate" | "subtle";
|
|
10
10
|
export declare const contactBlockBackgrounds: ContactBlockBackground[];
|
|
11
11
|
interface Props {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { BadgeProps, type BadgeVariant } from "@ndla/primitives";
|
|
8
|
+
import { type BadgeProps, type BadgeVariant } from "@ndla/primitives";
|
|
9
9
|
import * as contentTypes from "../model/ContentType";
|
|
10
10
|
export interface ContentTypeBadgeProps extends Omit<BadgeProps, "colorTheme"> {
|
|
11
11
|
contentType: ContentType | undefined;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { BlockQuoteProps } from "@ndla/primitives";
|
|
9
|
-
import { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
|
|
8
|
+
import { type BlockQuoteProps } from "@ndla/primitives";
|
|
9
|
+
import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
|
|
10
10
|
export type ContentTypeBlockQuoteVariant = "colored" | "neutral";
|
|
11
11
|
interface Props extends Omit<BlockQuoteProps, "variant"> {
|
|
12
12
|
variant?: ContentTypeBlockQuoteVariant;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { FramedContentProps } from "@ndla/primitives";
|
|
9
|
-
import { ContentType } from "..";
|
|
8
|
+
import { type FramedContentProps } from "@ndla/primitives";
|
|
9
|
+
import type { ContentType } from "..";
|
|
10
10
|
export type ContentTypeFramedContentVariant = "colored" | "neutral";
|
|
11
11
|
interface Props extends FramedContentProps {
|
|
12
12
|
variant?: ContentTypeFramedContentVariant;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { HeroProps, HeroVariant } from "@ndla/primitives";
|
|
9
|
-
import { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
|
|
8
|
+
import { type HeroProps, type HeroVariant } from "@ndla/primitives";
|
|
9
|
+
import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
|
|
10
10
|
export declare const contentTypeToHeroMap: Record<ContentType, HeroVariant>;
|
|
11
11
|
export interface ContentTypeHeroProps extends HeroProps {
|
|
12
12
|
contentType: ContentType | undefined;
|
|
@@ -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
|
|
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 _util = require("@ndla/util");
|
|
@@ -77,7 +77,7 @@ const CopyParagraphButton = _ref => {
|
|
|
77
77
|
onClick: onCopyClick,
|
|
78
78
|
title: tooltip,
|
|
79
79
|
"aria-label": `${tooltip}: ${copyText}`,
|
|
80
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
80
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LinkMedium, {})
|
|
81
81
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
|
|
82
82
|
id: sanitizedTitle,
|
|
83
83
|
tabIndex: -1,
|