@ndla/ui 56.0.4-alpha.0 → 56.0.5-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 -3
- package/dist/styles.css +4 -11
- package/es/Breadcrumb/Breadcrumb.js +2 -3
- package/es/Breadcrumb/BreadcrumbItem.js +1 -1
- package/es/Breadcrumb/HomeBreadcrumb.js +2 -2
- package/es/styles.css +4 -11
- package/lib/Breadcrumb/Breadcrumb.js +2 -3
- package/lib/Breadcrumb/BreadcrumbItem.js +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +1 -1
- package/lib/styles.css +4 -11
- package/package.json +6 -6
- package/src/Breadcrumb/Breadcrumb.tsx +1 -2
- package/src/Breadcrumb/BreadcrumbItem.tsx +1 -1
- package/src/Breadcrumb/HomeBreadcrumb.tsx +2 -2
- package/src/Embed/ImageEmbed.stories.tsx +1 -3
|
@@ -119,12 +119,11 @@
|
|
|
119
119
|
"width]___[value:fit-content",
|
|
120
120
|
"maxWidth]___[value:8xl",
|
|
121
121
|
"flexWrap]___[value:wrap",
|
|
122
|
+
"gap]___[value:xxsmall",
|
|
122
123
|
"alignItems]___[value:flex-start]___[cond:mobileDown",
|
|
123
124
|
"justifyContent]___[value:center]___[cond:mobileDown",
|
|
124
125
|
"flexDirection]___[value:column]___[cond:mobileDown",
|
|
125
|
-
"gap]___[value:xxsmall]___[cond:mobileDown",
|
|
126
126
|
"color]___[value:inherit",
|
|
127
|
-
"gap]___[value:4xsmall",
|
|
128
127
|
"alignItems]___[value:flex-end",
|
|
129
128
|
"display]___[value:block]___[cond:tabletDown",
|
|
130
129
|
"textDecoration]___[value:underline",
|
|
@@ -134,7 +133,6 @@
|
|
|
134
133
|
"maxWidth]___[value:surface.xsmall",
|
|
135
134
|
"maxWidth]___[value:surface.medium]___[cond:mobileWide",
|
|
136
135
|
"maxWidth]___[value:1100px]___[cond:tabletWide",
|
|
137
|
-
"gap]___[value:xxsmall",
|
|
138
136
|
"alignSelf]___[value:center",
|
|
139
137
|
"height]___[value:215px",
|
|
140
138
|
"height]___[value:340px]___[cond:desktop",
|
package/dist/styles.css
CHANGED
|
@@ -326,12 +326,12 @@
|
|
|
326
326
|
max-width: 8xl;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
.
|
|
330
|
-
|
|
329
|
+
.gap_xxsmall {
|
|
330
|
+
gap: var(--spacing-xxsmall);
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
.
|
|
334
|
-
|
|
333
|
+
.c_inherit {
|
|
334
|
+
color: inherit;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
.td_underline {
|
|
@@ -342,10 +342,6 @@
|
|
|
342
342
|
max-width: var(--sizes-surface-xsmall);
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
.gap_xxsmall {
|
|
346
|
-
gap: var(--spacing-xxsmall);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
345
|
.h_215px {
|
|
350
346
|
height: 215px;
|
|
351
347
|
}
|
|
@@ -1723,9 +1719,6 @@
|
|
|
1723
1719
|
@media screen and (max-width: 19.9975rem) {
|
|
1724
1720
|
.mobileDown\:px_xsmall {
|
|
1725
1721
|
padding-inline: var(--spacing-xsmall);
|
|
1726
|
-
}
|
|
1727
|
-
.mobileDown\:gap_xxsmall {
|
|
1728
|
-
gap: var(--spacing-xxsmall);
|
|
1729
1722
|
}
|
|
1730
1723
|
.mobileDown\:ai_flex-start {
|
|
1731
1724
|
align-items: flex-start;
|
|
@@ -16,12 +16,11 @@ const StyledList = styled("ol", {
|
|
|
16
16
|
flexWrap: "wrap",
|
|
17
17
|
alignItems: "center",
|
|
18
18
|
listStyle: "none",
|
|
19
|
-
gap: "
|
|
19
|
+
gap: "xxsmall",
|
|
20
20
|
mobileDown: {
|
|
21
21
|
alignItems: "flex-start",
|
|
22
22
|
justifyContent: "center",
|
|
23
|
-
flexDirection: "column"
|
|
24
|
-
gap: "xxsmall"
|
|
23
|
+
flexDirection: "column"
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
});
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { ArrowRightShortLine,
|
|
9
|
+
import { ArrowRightShortLine, HomeLine } from "@ndla/icons/common";
|
|
10
10
|
import { SafeLink } from "@ndla/safelink";
|
|
11
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
12
12
|
import Breadcrumb from "./Breadcrumb";
|
|
@@ -49,7 +49,7 @@ const HomeBreadcrumb = _ref => {
|
|
|
49
49
|
return /*#__PURE__*/_jsx(IconSafeLink, {
|
|
50
50
|
"aria-label": item.name,
|
|
51
51
|
to: item.to,
|
|
52
|
-
children: /*#__PURE__*/_jsx(
|
|
52
|
+
children: /*#__PURE__*/_jsx(HomeLine, {
|
|
53
53
|
title: item.name
|
|
54
54
|
})
|
|
55
55
|
});
|
package/es/styles.css
CHANGED
|
@@ -326,12 +326,12 @@
|
|
|
326
326
|
max-width: 8xl;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
.
|
|
330
|
-
|
|
329
|
+
.gap_xxsmall {
|
|
330
|
+
gap: var(--spacing-xxsmall);
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
.
|
|
334
|
-
|
|
333
|
+
.c_inherit {
|
|
334
|
+
color: inherit;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
.td_underline {
|
|
@@ -342,10 +342,6 @@
|
|
|
342
342
|
max-width: var(--sizes-surface-xsmall);
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
.gap_xxsmall {
|
|
346
|
-
gap: var(--spacing-xxsmall);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
345
|
.h_215px {
|
|
350
346
|
height: 215px;
|
|
351
347
|
}
|
|
@@ -1723,9 +1719,6 @@
|
|
|
1723
1719
|
@media screen and (max-width: 19.9975rem) {
|
|
1724
1720
|
.mobileDown\:px_xsmall {
|
|
1725
1721
|
padding-inline: var(--spacing-xsmall);
|
|
1726
|
-
}
|
|
1727
|
-
.mobileDown\:gap_xxsmall {
|
|
1728
|
-
gap: var(--spacing-xxsmall);
|
|
1729
1722
|
}
|
|
1730
1723
|
.mobileDown\:ai_flex-start {
|
|
1731
1724
|
align-items: flex-start;
|
|
@@ -23,12 +23,11 @@ const StyledList = (0, _jsx2.styled)("ol", {
|
|
|
23
23
|
flexWrap: "wrap",
|
|
24
24
|
alignItems: "center",
|
|
25
25
|
listStyle: "none",
|
|
26
|
-
gap: "
|
|
26
|
+
gap: "xxsmall",
|
|
27
27
|
mobileDown: {
|
|
28
28
|
alignItems: "flex-start",
|
|
29
29
|
justifyContent: "center",
|
|
30
|
-
flexDirection: "column"
|
|
31
|
-
gap: "xxsmall"
|
|
30
|
+
flexDirection: "column"
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
});
|
|
@@ -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)(_common.
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.HomeLine, {
|
|
60
60
|
title: item.name
|
|
61
61
|
})
|
|
62
62
|
});
|
package/lib/styles.css
CHANGED
|
@@ -326,12 +326,12 @@
|
|
|
326
326
|
max-width: 8xl;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
.
|
|
330
|
-
|
|
329
|
+
.gap_xxsmall {
|
|
330
|
+
gap: var(--spacing-xxsmall);
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
.
|
|
334
|
-
|
|
333
|
+
.c_inherit {
|
|
334
|
+
color: inherit;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
.td_underline {
|
|
@@ -342,10 +342,6 @@
|
|
|
342
342
|
max-width: var(--sizes-surface-xsmall);
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
.gap_xxsmall {
|
|
346
|
-
gap: var(--spacing-xxsmall);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
345
|
.h_215px {
|
|
350
346
|
height: 215px;
|
|
351
347
|
}
|
|
@@ -1723,9 +1719,6 @@
|
|
|
1723
1719
|
@media screen and (max-width: 19.9975rem) {
|
|
1724
1720
|
.mobileDown\:px_xsmall {
|
|
1725
1721
|
padding-inline: var(--spacing-xsmall);
|
|
1726
|
-
}
|
|
1727
|
-
.mobileDown\:gap_xxsmall {
|
|
1728
|
-
gap: var(--spacing-xxsmall);
|
|
1729
1722
|
}
|
|
1730
1723
|
.mobileDown\:ai_flex-start {
|
|
1731
1724
|
align-items: flex-start;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "56.0.
|
|
3
|
+
"version": "56.0.5-alpha.0",
|
|
4
4
|
"description": "UI component library for NDLA",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"types"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ndla/button": "^15.0.
|
|
36
|
+
"@ndla/button": "^15.0.5-alpha.0",
|
|
37
37
|
"@ndla/core": "^5.0.1",
|
|
38
38
|
"@ndla/hooks": "^2.1.8",
|
|
39
|
-
"@ndla/icons": "^8.0.
|
|
39
|
+
"@ndla/icons": "^8.0.5-alpha.0",
|
|
40
40
|
"@ndla/licenses": "^8.0.0-alpha.0",
|
|
41
|
-
"@ndla/primitives": "^1.0.
|
|
42
|
-
"@ndla/safelink": "^7.0.
|
|
41
|
+
"@ndla/primitives": "^1.0.5-alpha.0",
|
|
42
|
+
"@ndla/safelink": "^7.0.5-alpha.0",
|
|
43
43
|
"@ndla/styled-system": "^0.0.10",
|
|
44
44
|
"@ndla/typography": "^0.4.23",
|
|
45
45
|
"@ndla/util": "^4.1.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "1d1e87ed1d2fccefbc0ece2130f42d7d71cbe1a9"
|
|
77
77
|
}
|
|
@@ -25,12 +25,11 @@ const StyledList = styled("ol", {
|
|
|
25
25
|
flexWrap: "wrap",
|
|
26
26
|
alignItems: "center",
|
|
27
27
|
listStyle: "none",
|
|
28
|
-
gap: "
|
|
28
|
+
gap: "xxsmall",
|
|
29
29
|
mobileDown: {
|
|
30
30
|
alignItems: "flex-start",
|
|
31
31
|
justifyContent: "center",
|
|
32
32
|
flexDirection: "column",
|
|
33
|
-
gap: "xxsmall",
|
|
34
33
|
},
|
|
35
34
|
},
|
|
36
35
|
});
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { ArrowRightShortLine,
|
|
9
|
+
import { ArrowRightShortLine, HomeLine } from "@ndla/icons/common";
|
|
10
10
|
import { SafeLink } from "@ndla/safelink";
|
|
11
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
12
12
|
import Breadcrumb from "./Breadcrumb";
|
|
@@ -51,7 +51,7 @@ const HomeBreadcrumb = ({ items }: Props) => {
|
|
|
51
51
|
if (item.index === 0 && typeof item.name === "string") {
|
|
52
52
|
return (
|
|
53
53
|
<IconSafeLink aria-label={item.name} to={item.to}>
|
|
54
|
-
<
|
|
54
|
+
<HomeLine title={item.name} />
|
|
55
55
|
</IconSafeLink>
|
|
56
56
|
);
|
|
57
57
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { ReactNode } from "react";
|
|
10
10
|
import { Meta, StoryFn, StoryObj } from "@storybook/react";
|
|
11
11
|
import { Text } from "@ndla/primitives";
|
|
12
|
-
import { css } from "@ndla/styled-system/css";
|
|
13
12
|
import { styled } from "@ndla/styled-system/jsx";
|
|
14
13
|
import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
|
|
15
14
|
import { ImageEmbedData } from "@ndla/types-embed";
|
|
@@ -186,8 +185,7 @@ export const Cropped: StoryObj<typeof ImageEmbed> = {
|
|
|
186
185
|
};
|
|
187
186
|
|
|
188
187
|
const TextWrapper = ({ children }: { children: ReactNode }) => (
|
|
189
|
-
|
|
190
|
-
<styled.div css={css.raw({ "& > p": { marginBlock: "medium", width: "100%" } })}>
|
|
188
|
+
<styled.div css={{ "& > p": { marginBlock: "medium", width: "100%" } }}>
|
|
191
189
|
<Text>
|
|
192
190
|
Du har en kjempegod idé til en kortfilm. Men det koster mange penger å produsere filmen. Derfor er du avhengig av
|
|
193
191
|
at noen tenner på idéen din og bestemmer seg for å bruke ressurser på nettopp dette prosjektet.
|