@ndla/ui 39.0.4 → 40.0.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/README.md +0 -18
- package/es/Article/Article.js +6 -3
- package/es/Frontpage/FrontpageAllSubjects.js +17 -10
- package/es/LearningPaths/LearningPathInformation.js +10 -6
- package/es/MultidisciplinarySubject/MultidisciplinarySubject.js +32 -28
- package/es/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +15 -10
- package/es/Navigation/index.js +1 -2
- package/es/Programme/Programme.js +13 -8
- package/es/ToolboxPage/ToolboxInfo.js +4 -9
- package/es/Topic/Topic.js +21 -18
- package/es/Translation/index.js +0 -1
- package/es/all.css +1 -1
- package/es/index.js +2 -2
- package/lib/Article/Article.js +6 -3
- package/lib/Frontpage/FrontpageAllSubjects.js +17 -10
- package/lib/LearningPaths/LearningPathInformation.js +9 -5
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.d.ts +3 -1
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.js +31 -27
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.d.ts +3 -1
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +14 -9
- package/lib/Navigation/index.d.ts +1 -2
- package/lib/Navigation/index.js +0 -7
- package/lib/Programme/Programme.js +12 -7
- package/lib/ToolboxPage/ToolboxInfo.js +5 -10
- package/lib/Topic/Topic.js +21 -18
- package/lib/Translation/index.d.ts +0 -1
- package/lib/Translation/index.js +0 -7
- package/lib/all.css +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +0 -12
- package/package.json +14 -14
- package/src/Article/Article.tsx +4 -1
- package/src/Dialog/component.dialog.scss +0 -4
- package/src/Frontpage/FrontpageAllSubjects.tsx +3 -21
- package/src/LearningPaths/LearningPathInformation.tsx +6 -12
- package/src/MultidisciplinarySubject/MultidisciplinarySubject.tsx +15 -25
- package/src/MultidisciplinarySubject/MultidisciplinarySubjectHeader.tsx +8 -2
- package/src/Navigation/index.ts +1 -2
- package/src/Programme/Programme.tsx +4 -2
- package/src/Search/component.search-result.scss +0 -8
- package/src/ToolboxPage/ToolboxInfo.tsx +2 -13
- package/src/Topic/Topic.tsx +3 -2
- package/src/Translation/index.ts +0 -1
- package/src/all.scss +0 -1
- package/src/index.ts +2 -2
- package/src/main.scss +0 -1
- package/es/Navigation/NavigationHeading.js +0 -50
- package/es/Translation/TranslationBox.js +0 -16
- package/lib/Navigation/NavigationHeading.d.ts +0 -9
- package/lib/Navigation/NavigationHeading.js +0 -58
- package/lib/Translation/TranslationBox.d.ts +0 -10
- package/lib/Translation/TranslationBox.js +0 -24
- package/src/Navigation/NavigationHeading.tsx +0 -49
- package/src/Translation/TranslationBox.tsx +0 -19
- package/src/Translation/component.translation-box.scss +0 -9
package/lib/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export { Figure, FigureCaption, FigureLicenseDialog, FigureExpandButton, FigureO
|
|
|
35
35
|
export type { FigureType } from './Figure';
|
|
36
36
|
export { LanguageSelector } from './LanguageSelector';
|
|
37
37
|
export { LearningPathWrapper, LearningPathContent, LearningPathMenu, LearningPathSticky, LearningPathInformation, LearningPathStickySibling, LearningPathStickyPlaceholder, LearningPathLastStepNavigation, LearningPathMobileStepInfo, LearningPathMobileHeader, } from './LearningPaths';
|
|
38
|
-
export { Translation, TranslationLine
|
|
38
|
+
export { Translation, TranslationLine } from './Translation';
|
|
39
39
|
export { default as SearchResultSleeve } from './Search/SearchResultSleeve';
|
|
40
40
|
export { default as ContentTypeResult } from './Search/ContentTypeResult';
|
|
41
41
|
export { SearchFieldForm } from './Search/SearchFieldForm';
|
|
@@ -48,7 +48,7 @@ export { default as Breadcrumblist } from './Breadcrumblist';
|
|
|
48
48
|
export { MessageBox, MessageBoxTag, MessageBanner } from './Messages';
|
|
49
49
|
export { ResourceBox } from './ResourceBox';
|
|
50
50
|
export { default as AudioPlayer, initAudioPlayers } from './AudioPlayer';
|
|
51
|
-
export {
|
|
51
|
+
export { NavigationBox, NavigationTopicAbout } from './Navigation';
|
|
52
52
|
export { default as Programme } from './Programme';
|
|
53
53
|
export { default as CompetenceGoalTab } from './CompetenceGoalTab';
|
|
54
54
|
export { default as MultidisciplinarySubject, MultidisciplinarySubjectHeader } from './MultidisciplinarySubject';
|
package/lib/index.js
CHANGED
|
@@ -808,12 +808,6 @@ Object.defineProperty(exports, "NavigationBox", {
|
|
|
808
808
|
return _Navigation.NavigationBox;
|
|
809
809
|
}
|
|
810
810
|
});
|
|
811
|
-
Object.defineProperty(exports, "NavigationHeading", {
|
|
812
|
-
enumerable: true,
|
|
813
|
-
get: function get() {
|
|
814
|
-
return _Navigation.NavigationHeading;
|
|
815
|
-
}
|
|
816
|
-
});
|
|
817
811
|
Object.defineProperty(exports, "NavigationTopicAbout", {
|
|
818
812
|
enumerable: true,
|
|
819
813
|
get: function get() {
|
|
@@ -1180,12 +1174,6 @@ Object.defineProperty(exports, "Translation", {
|
|
|
1180
1174
|
return _Translation.Translation;
|
|
1181
1175
|
}
|
|
1182
1176
|
});
|
|
1183
|
-
Object.defineProperty(exports, "TranslationBox", {
|
|
1184
|
-
enumerable: true,
|
|
1185
|
-
get: function get() {
|
|
1186
|
-
return _Translation.TranslationBox;
|
|
1187
|
-
}
|
|
1188
|
-
});
|
|
1189
1177
|
Object.defineProperty(exports, "TranslationLine", {
|
|
1190
1178
|
enumerable: true,
|
|
1191
1179
|
get: function get() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "40.0.0",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"types"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ndla/accordion": "^2.2.
|
|
34
|
+
"@ndla/accordion": "^2.2.7",
|
|
35
35
|
"@ndla/article-scripts": "^3.0.18",
|
|
36
|
-
"@ndla/button": "^10.1.
|
|
37
|
-
"@ndla/carousel": "^3.1.
|
|
38
|
-
"@ndla/core": "^4.0
|
|
39
|
-
"@ndla/forms": "^4.3.
|
|
36
|
+
"@ndla/button": "^10.1.6",
|
|
37
|
+
"@ndla/carousel": "^3.1.4",
|
|
38
|
+
"@ndla/core": "^4.1.0",
|
|
39
|
+
"@ndla/forms": "^4.3.6",
|
|
40
40
|
"@ndla/hooks": "^2.0.7",
|
|
41
|
-
"@ndla/icons": "^3.0.
|
|
41
|
+
"@ndla/icons": "^3.0.2",
|
|
42
42
|
"@ndla/licenses": "^7.0.4",
|
|
43
|
-
"@ndla/modal": "^3.0.
|
|
44
|
-
"@ndla/notion": "^5.0.
|
|
45
|
-
"@ndla/safelink": "^4.1.
|
|
46
|
-
"@ndla/switch": "^1.1.
|
|
47
|
-
"@ndla/tabs": "^
|
|
48
|
-
"@ndla/tooltip": "^4.1.
|
|
43
|
+
"@ndla/modal": "^3.0.3",
|
|
44
|
+
"@ndla/notion": "^5.0.3",
|
|
45
|
+
"@ndla/safelink": "^4.1.6",
|
|
46
|
+
"@ndla/switch": "^1.1.4",
|
|
47
|
+
"@ndla/tabs": "^3.0.0",
|
|
48
|
+
"@ndla/tooltip": "^4.1.6",
|
|
49
49
|
"@ndla/util": "^3.1.13",
|
|
50
50
|
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
|
51
51
|
"@radix-ui/react-popover": "^1.0.6",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "9d01ddb3d2eee554008a3e58eda434dfc968cb52"
|
|
89
89
|
}
|
package/src/Article/Article.tsx
CHANGED
|
@@ -23,6 +23,7 @@ import ArticleNotions, { NotionRelatedContent } from './ArticleNotions';
|
|
|
23
23
|
import ArticleAccessMessage from './ArticleAccessMessage';
|
|
24
24
|
import MessageBox from '../Messages/MessageBox';
|
|
25
25
|
import { ConceptNotionType } from '../Notion/ConceptNotion';
|
|
26
|
+
import { Heading } from '../Typography';
|
|
26
27
|
|
|
27
28
|
const classes = new BEMHelper({
|
|
28
29
|
name: 'article',
|
|
@@ -63,7 +64,9 @@ export const ArticleTitle = ({ children, icon, label }: ArticleTitleProps) => {
|
|
|
63
64
|
<div {...classes('title', modifiers)}>
|
|
64
65
|
{icon}
|
|
65
66
|
{labelView}
|
|
66
|
-
<h1 tabIndex={-1}>
|
|
67
|
+
<Heading element="h1" headingStyle="h1" tabIndex={-1}>
|
|
68
|
+
{children}
|
|
69
|
+
</Heading>
|
|
67
70
|
</div>
|
|
68
71
|
);
|
|
69
72
|
};
|
|
@@ -10,26 +10,6 @@ import { ToggleItem } from '../Filter';
|
|
|
10
10
|
|
|
11
11
|
const StyledWrapper = styled.nav`
|
|
12
12
|
margin: 32px 0 0;
|
|
13
|
-
.c-tabs--subjects {
|
|
14
|
-
margin: 0;
|
|
15
|
-
}
|
|
16
|
-
.c-tabs__list--subjects {
|
|
17
|
-
margin: 0;
|
|
18
|
-
}
|
|
19
|
-
.c-tabs__tab--subjects {
|
|
20
|
-
${mq.range({ until: breakpoints.tablet })} {
|
|
21
|
-
margin: 0;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
padding-left: 8px;
|
|
24
|
-
padding-right: 8px;
|
|
25
|
-
:first-of-type {
|
|
26
|
-
padding-left: 0;
|
|
27
|
-
}
|
|
28
|
-
:last-of-type {
|
|
29
|
-
padding-right: 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
13
|
`;
|
|
34
14
|
|
|
35
15
|
const StyledList = styled.ul`
|
|
@@ -213,6 +193,7 @@ const FrontpageAllSubjects = ({
|
|
|
213
193
|
category.visible &&
|
|
214
194
|
data.push({
|
|
215
195
|
title: t(`subjectCategories.${category.type}`),
|
|
196
|
+
id: category.type,
|
|
216
197
|
content: (
|
|
217
198
|
<>
|
|
218
199
|
{category.message && (
|
|
@@ -228,12 +209,13 @@ const FrontpageAllSubjects = ({
|
|
|
228
209
|
|
|
229
210
|
data.push({
|
|
230
211
|
title: t('frontpageMenu.allsubjects'),
|
|
212
|
+
id: 'allsubjects',
|
|
231
213
|
content: renderList(allSubjects, onNavigate, onToggleSubject, subjectViewType, selectedSubjects),
|
|
232
214
|
});
|
|
233
215
|
|
|
234
216
|
return (
|
|
235
217
|
<StyledWrapper>
|
|
236
|
-
<Tabs
|
|
218
|
+
<Tabs tabs={data} />
|
|
237
219
|
</StyledWrapper>
|
|
238
220
|
);
|
|
239
221
|
};
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import styled from '@emotion/styled';
|
|
11
|
-
import {
|
|
11
|
+
import { spacing, spacingUnit, breakpoints, mq, colors } from '@ndla/core';
|
|
12
12
|
import { getLicenseByAbbreviation } from '@ndla/licenses';
|
|
13
13
|
import { LicenseByline } from '@ndla/notion';
|
|
14
|
+
import { Heading } from '../Typography';
|
|
14
15
|
|
|
15
16
|
type StyledWrapperProps = {
|
|
16
17
|
invertedStyle?: boolean;
|
|
@@ -18,15 +19,6 @@ type StyledWrapperProps = {
|
|
|
18
19
|
|
|
19
20
|
const StyledWrapper = styled.div<StyledWrapperProps>`
|
|
20
21
|
background: transparent;
|
|
21
|
-
font-family: ${fonts.serif};
|
|
22
|
-
h1,
|
|
23
|
-
h2,
|
|
24
|
-
h3,
|
|
25
|
-
h4,
|
|
26
|
-
h5,
|
|
27
|
-
h6 {
|
|
28
|
-
font-family: ${fonts.serif};
|
|
29
|
-
}
|
|
30
22
|
max-width: 720px;
|
|
31
23
|
margin: ${spacingUnit * 0.75}px ${spacing.normal} ${spacing.xsmall} 0 !important;
|
|
32
24
|
${mq.range({ from: breakpoints.desktop })} {
|
|
@@ -59,7 +51,7 @@ const LicenseWrapper = styled.div`
|
|
|
59
51
|
}
|
|
60
52
|
`;
|
|
61
53
|
|
|
62
|
-
const StyledHeader = styled
|
|
54
|
+
const StyledHeader = styled(Heading)`
|
|
63
55
|
margin-bottom: ${spacing.small};
|
|
64
56
|
`;
|
|
65
57
|
|
|
@@ -79,7 +71,9 @@ export const LearningPathInformation = ({ description, title, license, invertedS
|
|
|
79
71
|
<section className="o-wrapper">
|
|
80
72
|
<StyledWrapper invertedStyle={invertedStyle} className="c-article">
|
|
81
73
|
<LicenseWrapper>
|
|
82
|
-
<StyledHeader id={id}>
|
|
74
|
+
<StyledHeader element="h1" headingStyle="h1" tabIndex={-1} id={id}>
|
|
75
|
+
{title}
|
|
76
|
+
</StyledHeader>
|
|
83
77
|
<LicenseByline licenseRights={rights} color={colors.brand.tertiary} />
|
|
84
78
|
</LicenseWrapper>
|
|
85
79
|
{description && <div dangerouslySetInnerHTML={{ __html: description }} />}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import { breakpoints,
|
|
4
|
+
import { breakpoints, mq } from '@ndla/core';
|
|
5
5
|
import LayoutItem, { OneColumn } from '../Layout';
|
|
6
6
|
import List from './List';
|
|
7
7
|
import { ListItemProps } from './ListItem';
|
|
8
|
+
import { HomeBreadcrumb, SimpleBreadcrumbItem } from '../Breadcrumb';
|
|
9
|
+
import { Heading } from '../Typography';
|
|
8
10
|
|
|
9
11
|
const StyledWrapper = styled.div`
|
|
10
12
|
display: flex;
|
|
@@ -15,11 +17,6 @@ const StyledBackground = styled.div`
|
|
|
15
17
|
width: 100%;
|
|
16
18
|
background: linear-gradient(179.64deg, rgba(255, 255, 255, 0.6) 80.1%, rgba(255, 255, 255) 99.05%),
|
|
17
19
|
linear-gradient(318.9deg, rgb(239, 238, 220, 0.6) 35.53%, rgb(250, 246, 235) 74.23%), rgb(221, 216, 175);
|
|
18
|
-
|
|
19
|
-
${mq.range({ until: breakpoints.tablet })} {
|
|
20
|
-
}
|
|
21
|
-
${mq.range({ until: breakpoints.mobileWide })} {
|
|
22
|
-
}
|
|
23
20
|
`;
|
|
24
21
|
|
|
25
22
|
const StyledLayoutWrapper = styled.div`
|
|
@@ -31,23 +28,7 @@ const Header = styled.div`
|
|
|
31
28
|
flex-direction: column;
|
|
32
29
|
justify-content: space-between;
|
|
33
30
|
margin-bottom: 32px;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const Heading = styled.h1`
|
|
37
|
-
margin: 10px 0 10px 0;
|
|
38
|
-
font-size: 20px;
|
|
39
|
-
line-height: 25px;
|
|
40
|
-
font-weight: ${fonts.weight.bold};
|
|
41
|
-
|
|
42
|
-
${mq.range({ from: breakpoints.mobileWide })} {
|
|
43
|
-
margin: 40px 0 22px;
|
|
44
|
-
${fonts.sizes('40px', '48px')};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
${mq.range({ from: breakpoints.desktop })} {
|
|
48
|
-
margin: 50px 0 24px;
|
|
49
|
-
${fonts.sizes('52px', '65px')};
|
|
50
|
-
}
|
|
31
|
+
margin-top: 32px;
|
|
51
32
|
`;
|
|
52
33
|
|
|
53
34
|
const InfoText = styled.div`
|
|
@@ -87,13 +68,21 @@ const Illustration = styled.div`
|
|
|
87
68
|
|
|
88
69
|
type Props = {
|
|
89
70
|
cards: ListItemProps[];
|
|
71
|
+
breadcrumbs?: SimpleBreadcrumbItem[];
|
|
90
72
|
children: ReactNode;
|
|
91
73
|
totalCardCount: number;
|
|
92
74
|
hideCards?: boolean;
|
|
93
75
|
id?: string;
|
|
94
76
|
};
|
|
95
77
|
|
|
96
|
-
export const MultidisciplinarySubject = ({
|
|
78
|
+
export const MultidisciplinarySubject = ({
|
|
79
|
+
cards,
|
|
80
|
+
children,
|
|
81
|
+
totalCardCount,
|
|
82
|
+
hideCards,
|
|
83
|
+
breadcrumbs = [],
|
|
84
|
+
id,
|
|
85
|
+
}: Props) => {
|
|
97
86
|
const { t } = useTranslation();
|
|
98
87
|
return (
|
|
99
88
|
<StyledWrapper>
|
|
@@ -101,7 +90,8 @@ export const MultidisciplinarySubject = ({ cards, children, totalCardCount, hide
|
|
|
101
90
|
<OneColumn wide>
|
|
102
91
|
<Header>
|
|
103
92
|
<LayoutItem layout="extend">
|
|
104
|
-
<
|
|
93
|
+
<HomeBreadcrumb items={breadcrumbs} />
|
|
94
|
+
<Heading element="h1" headingStyle="h1" id={id} tabIndex={-1}>
|
|
105
95
|
{t('frontpageMultidisciplinarySubject.heading')}
|
|
106
96
|
</Heading>
|
|
107
97
|
<InfoText>{t('frontpageMultidisciplinarySubject.text')}</InfoText>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { breakpoints, mq, fonts } from '@ndla/core';
|
|
4
|
+
import { breakpoints, mq, fonts, spacing } from '@ndla/core';
|
|
5
5
|
import SafeLink from '@ndla/safelink';
|
|
6
6
|
import {
|
|
7
7
|
ClimateIllustration,
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
PublicHealthDemocracyIllustration,
|
|
13
13
|
PublicHealthIllustration,
|
|
14
14
|
} from './Illustrations';
|
|
15
|
+
import { HomeBreadcrumb, SimpleBreadcrumbItem } from '../Breadcrumb';
|
|
15
16
|
|
|
16
17
|
const StyledWrapper = styled.div`
|
|
17
18
|
width: 100%;
|
|
@@ -33,6 +34,9 @@ const ContentWrapper = styled.div`
|
|
|
33
34
|
|
|
34
35
|
const TextWrapper = styled.div`
|
|
35
36
|
padding: 26px 26px 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: ${spacing.small};
|
|
36
40
|
width: 100%;
|
|
37
41
|
z-index: 2;
|
|
38
42
|
${mq.range({ from: breakpoints.tablet })} {
|
|
@@ -68,9 +72,10 @@ type subjectLink = {
|
|
|
68
72
|
type Props = {
|
|
69
73
|
subjects?: subjects[];
|
|
70
74
|
subjectsLinks?: subjectLink[];
|
|
75
|
+
breadcrumbs?: SimpleBreadcrumbItem[];
|
|
71
76
|
};
|
|
72
77
|
|
|
73
|
-
const MultidisciplinarySubjectHeader = ({ subjects = [], subjectsLinks = [] }: Props) => {
|
|
78
|
+
const MultidisciplinarySubjectHeader = ({ subjects = [], subjectsLinks = [], breadcrumbs = [] }: Props) => {
|
|
74
79
|
const { t } = useTranslation();
|
|
75
80
|
const getIllustration = () => {
|
|
76
81
|
if (subjects.length === 3) {
|
|
@@ -97,6 +102,7 @@ const MultidisciplinarySubjectHeader = ({ subjects = [], subjectsLinks = [] }: P
|
|
|
97
102
|
<StyledWrapper>
|
|
98
103
|
<ContentWrapper>
|
|
99
104
|
<TextWrapper>
|
|
105
|
+
<HomeBreadcrumb items={breadcrumbs} />
|
|
100
106
|
<Heading>{t('frontpageMultidisciplinarySubject.heading')}</Heading>
|
|
101
107
|
<SubjectsWrapper>
|
|
102
108
|
{t('multidisciplinarySubject.subjectsLinksDescription')}:{' '}
|
package/src/Navigation/index.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import NavigationBox from './NavigationBox';
|
|
10
|
-
import NavigationHeading from './NavigationHeading';
|
|
11
10
|
import NavigationTopicAbout from './NavigationTopicAbout';
|
|
12
11
|
|
|
13
|
-
export {
|
|
12
|
+
export { NavigationBox, NavigationTopicAbout };
|
|
@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
5
5
|
import LayoutItem, { OneColumn } from '../Layout';
|
|
6
6
|
import ProgrammeSubjects, { GradesProps } from './ProgrammeSubjects';
|
|
7
7
|
import MessageBox from '../Messages/MessageBox';
|
|
8
|
-
import {
|
|
8
|
+
import { Heading } from '..';
|
|
9
9
|
const StyledWrapper = styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
@@ -76,7 +76,9 @@ export const Programme = ({ heading, image, grades, selectedGrade, messageBoxTex
|
|
|
76
76
|
<StyledLayoutWrapper>
|
|
77
77
|
<LayoutItem layout="extend">
|
|
78
78
|
<StyledContentWrapper>
|
|
79
|
-
<
|
|
79
|
+
<Heading element="h1" margin="xlarge" headingStyle="h1" serif id={headingId} tabIndex={-1}>
|
|
80
|
+
{heading}
|
|
81
|
+
</Heading>
|
|
80
82
|
{messageBoxText && <MessageBox>{t(messageBoxText)}</MessageBox>}
|
|
81
83
|
<SubjectsWrapper>
|
|
82
84
|
<ProgrammeSubjects grades={grades} selectedGrade={selectedGrade} />
|
|
@@ -12,18 +12,7 @@ import { breakpoints, fonts, mq } from '@ndla/core';
|
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
13
13
|
import { ItemProps } from '../Navigation/NavigationBox';
|
|
14
14
|
import { NavigationBox } from '../Navigation';
|
|
15
|
-
|
|
16
|
-
const Heading = styled.h1`
|
|
17
|
-
${fonts.sizes('30px', '35px')};
|
|
18
|
-
|
|
19
|
-
${mq.range({ from: breakpoints.tablet })} {
|
|
20
|
-
${fonts.sizes('36px', '46px')};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
${mq.range({ from: breakpoints.desktop })} {
|
|
24
|
-
${fonts.sizes('52px', '65px')};
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
15
|
+
import { Heading } from '../Typography';
|
|
27
16
|
|
|
28
17
|
const Introduction = styled.p`
|
|
29
18
|
max-width: 800px;
|
|
@@ -51,7 +40,7 @@ const ToolboxInfo = ({ title, introduction, topics, onSelectTopic, id }: Props)
|
|
|
51
40
|
const { t } = useTranslation();
|
|
52
41
|
return (
|
|
53
42
|
<>
|
|
54
|
-
<Heading id={id} tabIndex={-1}>
|
|
43
|
+
<Heading element="h1" headingStyle="h1" id={id} tabIndex={-1}>
|
|
55
44
|
{title}
|
|
56
45
|
</Heading>
|
|
57
46
|
<Introduction>{introduction}</Introduction>
|
package/src/Topic/Topic.tsx
CHANGED
|
@@ -22,6 +22,7 @@ import { ItemProps } from '../Navigation/NavigationBox';
|
|
|
22
22
|
import { NavigationBox } from '../Navigation';
|
|
23
23
|
import { makeSrcQueryString, ImageCrop, ImageFocalPoint } from '../Image';
|
|
24
24
|
import { MessageBox } from '../Messages';
|
|
25
|
+
import { Heading } from '../Typography';
|
|
25
26
|
|
|
26
27
|
type InvertItProps = {
|
|
27
28
|
invertedStyle?: boolean;
|
|
@@ -257,9 +258,9 @@ const Topic = ({
|
|
|
257
258
|
<TopicIntroductionWrapper>
|
|
258
259
|
<div>
|
|
259
260
|
<HeadingWrapper>
|
|
260
|
-
<h1 id={id} tabIndex={-1}>
|
|
261
|
+
<Heading element="h1" headingStyle="h2" id={id} tabIndex={-1}>
|
|
261
262
|
{topic.title}
|
|
262
|
-
</
|
|
263
|
+
</Heading>
|
|
263
264
|
{isAdditionalTopic && (
|
|
264
265
|
<>
|
|
265
266
|
<AdditionalIcon aria-hidden="true">T</AdditionalIcon>
|
package/src/Translation/index.ts
CHANGED
package/src/all.scss
CHANGED
package/src/index.ts
CHANGED
|
@@ -124,7 +124,7 @@ export {
|
|
|
124
124
|
LearningPathMobileStepInfo,
|
|
125
125
|
LearningPathMobileHeader,
|
|
126
126
|
} from './LearningPaths';
|
|
127
|
-
export { Translation, TranslationLine
|
|
127
|
+
export { Translation, TranslationLine } from './Translation';
|
|
128
128
|
|
|
129
129
|
export { default as SearchResultSleeve } from './Search/SearchResultSleeve';
|
|
130
130
|
|
|
@@ -156,7 +156,7 @@ export { ResourceBox } from './ResourceBox';
|
|
|
156
156
|
|
|
157
157
|
export { default as AudioPlayer, initAudioPlayers } from './AudioPlayer';
|
|
158
158
|
|
|
159
|
-
export {
|
|
159
|
+
export { NavigationBox, NavigationTopicAbout } from './Navigation';
|
|
160
160
|
|
|
161
161
|
export { default as Programme } from './Programme';
|
|
162
162
|
|
package/src/main.scss
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { breakpoints, colors, fonts, mq } from '@ndla/core';
|
|
5
|
-
import { Heading } from '../Typography';
|
|
6
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
8
|
-
var StyledHeading = /*#__PURE__*/_styled(Heading, {
|
|
9
|
-
target: "eo34gso2",
|
|
10
|
-
label: "StyledHeading"
|
|
11
|
-
})("&[data-inverted='true']{color:", colors.white, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5hdmlnYXRpb25IZWFkaW5nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLcUMiLCJmaWxlIjoiTmF2aWdhdGlvbkhlYWRpbmcudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGJyZWFrcG9pbnRzLCBjb2xvcnMsIGZvbnRzLCBtcSB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgSGVhZGluZyB9IGZyb20gJy4uL1R5cG9ncmFwaHknO1xuXG5jb25zdCBTdHlsZWRIZWFkaW5nID0gc3R5bGVkKEhlYWRpbmcpYFxuICAmW2RhdGEtaW52ZXJ0ZWQ9J3RydWUnXSB7XG4gICAgY29sb3I6ICR7Y29sb3JzLndoaXRlfTtcbiAgfVxuYDtcbmNvbnN0IFN0eWxlZE1ha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dHlsZWRNYWluVGV4dD5cbiAgPC9TdHlsZWRIZWFkaW5nPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgTmF2aWdhdGlvbkhlYWRpbmc7XG4iXX0= */"));
|
|
12
|
-
var StyledMainText = /*#__PURE__*/_styled("span", {
|
|
13
|
-
target: "eo34gso1",
|
|
14
|
-
label: "StyledMainText"
|
|
15
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
16
|
-
name: "4zleql",
|
|
17
|
-
styles: "display:block"
|
|
18
|
-
} : {
|
|
19
|
-
name: "4zleql",
|
|
20
|
-
styles: "display:block",
|
|
21
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5hdmlnYXRpb25IZWFkaW5nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVa0MiLCJmaWxlIjoiTmF2aWdhdGlvbkhlYWRpbmcudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGJyZWFrcG9pbnRzLCBjb2xvcnMsIGZvbnRzLCBtcSB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgSGVhZGluZyB9IGZyb20gJy4uL1R5cG9ncmFwaHknO1xuXG5jb25zdCBTdHlsZWRIZWFkaW5nID0gc3R5bGVkKEhlYWRpbmcpYFxuICAmW2RhdGEtaW52ZXJ0ZWQ9J3RydWUnXSB7XG4gICAgY29sb3I6ICR7Y29sb3JzLndoaXRlfTtcbiAgfVxuYDtcbmNvbnN0IFN0eWxlZE1haW5UZXh0ID0gc3R5bGVkLnNwYW5gXG4gIGRpc3BsYXk6IGJsb2NrO1xuYDtcbmNvbnN0IFN0eWxlZFN1YlRleHQgPSBzdHlsZWQuc3Bhb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X0= */",
|
|
22
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
|
-
});
|
|
24
|
-
var StyledSubText = /*#__PURE__*/_styled("span", {
|
|
25
|
-
target: "eo34gso0",
|
|
26
|
-
label: "StyledSubText"
|
|
27
|
-
})("display:block;font-weight:bold;text-transform:uppercase;margin-bottom:6px;", fonts.sizes('14px', '24px'), ";", mq.range({
|
|
28
|
-
from: breakpoints.tablet
|
|
29
|
-
}), "{", fonts.sizes('18px', '32px'), ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5hdmlnYXRpb25IZWFkaW5nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhaUMiLCJmaWxlIjoiTmF2aWdhdGlvbkhlYWRpbmcudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGJyZWFrcG9pbnRzLCBjb2xvcnMsIGZvbnRzLCBtcSB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgSGVhZGluZyB9IGZyb20gJy4uL1R5cG9ncmFwaHknO1xuXG5jb25zdCBTdHlsZWRIZWFkaW5nID0gc3R5bGVkKEhlYWRpbmcpYFxuICAmW2RhdGEtaW52ZXJ0ZWQ9J3RydWUnXSB7XG4gICAgY29sb3I6ICR7Y29sb3JzLndoaXRlfTtcbiAgfVxuYDtcbmNvbnN0IFN0eWxlZE1haW5UZXh0ID0gc3R5bGVkLnNwYW5gXG4gIGRpc3BsYXk6IGJsb2NrO1xuYDtcbmNvbnN0IFN0eWxlZFN1YlRleHQgPSBzdHlsZWQuc3BhbmBcbiAgZGlzcGxheTogYmxvY2s7XG4gIGZvbnQt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ref) {
|
|
31
|
-
var subHeading = _ref.subHeading,
|
|
32
|
-
children = _ref.children,
|
|
33
|
-
invertedStyle = _ref.invertedStyle,
|
|
34
|
-
headingId = _ref.headingId;
|
|
35
|
-
return _jsxs(StyledHeading, {
|
|
36
|
-
element: "h1",
|
|
37
|
-
margin: "xlarge",
|
|
38
|
-
headingStyle: "h1",
|
|
39
|
-
serif: true,
|
|
40
|
-
"data-inverted": invertedStyle,
|
|
41
|
-
id: headingId,
|
|
42
|
-
tabIndex: -1,
|
|
43
|
-
children: [subHeading && _jsx(StyledSubText, {
|
|
44
|
-
children: subHeading
|
|
45
|
-
}), _jsx(StyledMainText, {
|
|
46
|
-
children: children
|
|
47
|
-
})]
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
export default NavigationHeading;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArticleTabs } from '@ndla/tabs';
|
|
3
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
4
|
-
var TranslationBox = function TranslationBox(_ref) {
|
|
5
|
-
var tabs = _ref.tabs;
|
|
6
|
-
return _jsx("div", {
|
|
7
|
-
className: "c-translation-box",
|
|
8
|
-
children: _jsx("div", {
|
|
9
|
-
className: "c-bodybox c-bodybox--translation",
|
|
10
|
-
children: _jsx(ArticleTabs, {
|
|
11
|
-
tabs: tabs
|
|
12
|
-
})
|
|
13
|
-
})
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
export default TranslationBox;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
subHeading?: string;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
invertedStyle?: boolean;
|
|
6
|
-
headingId?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const NavigationHeading: ({ subHeading, children, invertedStyle, headingId }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default NavigationHeading;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = exports.NavigationHeading = void 0;
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _core = require("@ndla/core");
|
|
10
|
-
var _Typography = require("../Typography");
|
|
11
|
-
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
14
|
-
var StyledHeading = /*#__PURE__*/(0, _base["default"])(_Typography.Heading, {
|
|
15
|
-
target: "eo34gso2",
|
|
16
|
-
label: "StyledHeading"
|
|
17
|
-
})("&[data-inverted='true']{color:", _core.colors.white, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5hdmlnYXRpb25IZWFkaW5nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLcUMiLCJmaWxlIjoiTmF2aWdhdGlvbkhlYWRpbmcudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGJyZWFrcG9pbnRzLCBjb2xvcnMsIGZvbnRzLCBtcSB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgSGVhZGluZy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ydGVkU3R5bGV9XG4gICAgaWQ9e2hlYWRpbmdJZH1cbiAgICB0YWJJbmRleD17LTF9XG4gID5cbiAgICB7c3ViSGVhZGluZyAmJiA8U3R5bGVkU3ViVGV4dD57c3ViSGVhZGluZ308L1N0eWxlZFN1YlRleHQ+fVxuICAgIDxTdHlsZWRNYWluVGV4dD57Y2hpbGRyZW59PC9TdHlsZWRNYWluVGV4dD5cbiAgPC9TdHlsZWRIZWFkaW5nPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgTmF2aWdhdGlvbkhlYWRpbmc7XG4iXX0= */"));
|
|
18
|
-
var StyledMainText = /*#__PURE__*/(0, _base["default"])("span", {
|
|
19
|
-
target: "eo34gso1",
|
|
20
|
-
label: "StyledMainText"
|
|
21
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
22
|
-
name: "4zleql",
|
|
23
|
-
styles: "display:block"
|
|
24
|
-
} : {
|
|
25
|
-
name: "4zleql",
|
|
26
|
-
styles: "display:block",
|
|
27
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5hdmlnYXRpb25IZWFkaW5nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVa0MiLCJmaWxlIjoiTmF2aWdhdGlvbkhlYWRpbmcudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGJyZWFrcG9pbnRzLCBjb2xvcnMsIGZvbnRzLCBtcSB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgSGVhZGluZyB9IGZyb20gJy4uL1R5cG9ncmFwaHknO1xuXG5jb25zdCBTdHlsZWRIZWFkaW5nID0gc3R5bGVkKEhlYWRpbmcpYFxuICAmW2RhdGEt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5bGVkU3ViVGV4dD57c3ViSGVhZGluZ308L1N0eWxlZFN1YlRleHQ+fVxuICAgIDxTdHlsZWRNYWluVGV4dD57Y2hpbGRyZW59PC9TdHlsZWRNYWluVGV4dD5cbiAgPC9TdHlsZWRIZWFkaW5nPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgTmF2aWdhdGlvbkhlYWRpbmc7XG4iXX0= */",
|
|
28
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
29
|
-
});
|
|
30
|
-
var StyledSubText = /*#__PURE__*/(0, _base["default"])("span", {
|
|
31
|
-
target: "eo34gso0",
|
|
32
|
-
label: "StyledSubText"
|
|
33
|
-
})("display:block;font-weight:bold;text-transform:uppercase;margin-bottom:6px;", _core.fonts.sizes('14px', '24px'), ";", _core.mq.range({
|
|
34
|
-
from: _core.breakpoints.tablet
|
|
35
|
-
}), "{", _core.fonts.sizes('18px', '32px'), ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5hdmlnYXRpb25IZWFkaW5nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhaUMiLCJmaWxlIjoiTmF2aWdhdGlvbkhlYWRpbmcudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGJyZWFrcG9pbnRzLCBjb2xvcnMsIGZvbnRzLCBtcSB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgSGVhZGluZyB9IGZyb20gJy4uL1R5cG9ncmFwaHknO1xuXG5jb25zdCBTdHlsZWRIZWFkaW5nID0gc3R5bGVkKEhlYWRpbmcpYFxuICAmW2RhdGEtaW52ZXJ0ZWQ9J3Ryd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ViSGVhZGluZ308L1N0eWxlZFN1YlRleHQ+fVxuICAgIDxTdHlsZWRNYWluVGV4dD57Y2hpbGRyZW59PC9TdHlsZWRNYWluVGV4dD5cbiAgPC9TdHlsZWRIZWFkaW5nPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgTmF2aWdhdGlvbkhlYWRpbmc7XG4iXX0= */"));
|
|
36
|
-
var NavigationHeading = function NavigationHeading(_ref) {
|
|
37
|
-
var subHeading = _ref.subHeading,
|
|
38
|
-
children = _ref.children,
|
|
39
|
-
invertedStyle = _ref.invertedStyle,
|
|
40
|
-
headingId = _ref.headingId;
|
|
41
|
-
return (0, _jsxRuntime.jsxs)(StyledHeading, {
|
|
42
|
-
element: "h1",
|
|
43
|
-
margin: "xlarge",
|
|
44
|
-
headingStyle: "h1",
|
|
45
|
-
serif: true,
|
|
46
|
-
"data-inverted": invertedStyle,
|
|
47
|
-
id: headingId,
|
|
48
|
-
tabIndex: -1,
|
|
49
|
-
children: [subHeading && (0, _jsxRuntime.jsx)(StyledSubText, {
|
|
50
|
-
children: subHeading
|
|
51
|
-
}), (0, _jsxRuntime.jsx)(StyledMainText, {
|
|
52
|
-
children: children
|
|
53
|
-
})]
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
exports.NavigationHeading = NavigationHeading;
|
|
57
|
-
var _default = NavigationHeading;
|
|
58
|
-
exports["default"] = _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
tabs: {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
content: (() => ReactNode) | ReactNode;
|
|
7
|
-
}[];
|
|
8
|
-
}
|
|
9
|
-
declare const TranslationBox: ({ tabs }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default TranslationBox;
|