@ndla/ui 56.0.23-alpha.0 → 56.0.25-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 +7 -7
- package/dist/styles.css +22 -22
- package/es/AudioPlayer/Controls.js +16 -5
- package/es/Embed/ConceptEmbed.js +2 -0
- package/es/Embed/EmbedErrorPlaceholder.js +1 -0
- package/es/Embed/GlossEmbed.js +9 -6
- package/es/Embed/ImageEmbed.js +5 -4
- package/es/Embed/InlineTriggerButton.js +1 -1
- package/es/KeyFigure/KeyFigure.js +2 -1
- package/es/ResourceBox/ResourceBox.js +2 -1
- package/es/i18n/index.js +1 -1
- package/es/i18n/useComponentTranslations.js +18 -0
- package/es/index.js +1 -1
- package/es/locale/messages-en.js +10 -0
- package/es/locale/messages-nb.js +10 -0
- package/es/locale/messages-nn.js +10 -0
- package/es/locale/messages-se.js +10 -0
- package/es/locale/messages-sma.js +10 -0
- package/es/styles.css +22 -22
- package/lib/AudioPlayer/Controls.js +16 -5
- package/lib/Embed/ConceptEmbed.js +2 -0
- package/lib/Embed/EmbedErrorPlaceholder.js +1 -0
- package/lib/Embed/GlossEmbed.js +9 -6
- package/lib/Embed/ImageEmbed.js +5 -4
- package/lib/Embed/InlineTriggerButton.js +1 -1
- package/lib/KeyFigure/KeyFigure.js +2 -1
- package/lib/ResourceBox/ResourceBox.js +2 -1
- package/lib/i18n/index.d.ts +1 -1
- package/lib/i18n/index.js +6 -0
- package/lib/i18n/useComponentTranslations.d.ts +13 -2
- package/lib/i18n/useComponentTranslations.js +21 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +6 -0
- package/lib/locale/messages-en.d.ts +10 -0
- package/lib/locale/messages-en.js +10 -0
- package/lib/locale/messages-nb.d.ts +10 -0
- package/lib/locale/messages-nb.js +10 -0
- package/lib/locale/messages-nn.d.ts +10 -0
- package/lib/locale/messages-nn.js +10 -0
- package/lib/locale/messages-se.d.ts +10 -0
- package/lib/locale/messages-se.js +10 -0
- package/lib/locale/messages-sma.d.ts +10 -0
- package/lib/locale/messages-sma.js +10 -0
- package/lib/styles.css +22 -22
- package/package.json +8 -8
- package/src/AudioPlayer/Controls.tsx +20 -7
- package/src/Embed/ConceptEmbed.tsx +9 -2
- package/src/Embed/EmbedErrorPlaceholder.tsx +1 -0
- package/src/Embed/GlossEmbed.tsx +8 -5
- package/src/Embed/ImageEmbed.tsx +4 -3
- package/src/Embed/InlineTriggerButton.tsx +1 -1
- package/src/KeyFigure/KeyFigure.tsx +1 -0
- package/src/ResourceBox/ResourceBox.tsx +1 -0
- package/src/i18n/index.ts +1 -0
- package/src/i18n/useComponentTranslations.ts +28 -2
- package/src/index.ts +1 -0
- package/src/locale/messages-en.ts +10 -0
- package/src/locale/messages-nb.ts +10 -0
- package/src/locale/messages-nn.ts +10 -0
- package/src/locale/messages-se.ts +10 -0
- package/src/locale/messages-sma.ts +10 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "0.
|
|
2
|
+
"schemaVersion": "0.46.0",
|
|
3
3
|
"styles": {
|
|
4
4
|
"atomic": [
|
|
5
5
|
"background]___[value:background.default",
|
|
@@ -77,17 +77,20 @@
|
|
|
77
77
|
"gridArea]___[value:forwards",
|
|
78
78
|
"gridArea]___[value:backwards",
|
|
79
79
|
"flex]___[value:1",
|
|
80
|
+
"gap]___[value:xxsmall",
|
|
80
81
|
"gridArea]___[value:track",
|
|
81
82
|
"paddingInline]___[value:xsmall]___[cond:mobileDown",
|
|
83
|
+
"minWidth]___[value:xxlarge",
|
|
82
84
|
"gridArea]___[value:volume",
|
|
83
85
|
"paddingBlock]___[value:auto",
|
|
84
86
|
"paddingInline]___[value:auto",
|
|
85
87
|
"maxWidth]___[value:xxlarge",
|
|
86
88
|
"maxHeight]___[value:xxlarge",
|
|
87
|
-
"minWidth]___[value:xxlarge",
|
|
88
89
|
"flex]___[value:1]___[cond:& span",
|
|
89
90
|
"gridArea]___[value:speed",
|
|
90
91
|
"height]___[value:surface.3xsmall",
|
|
92
|
+
"minWidth]___[value:small",
|
|
93
|
+
"paddingInline]___[value:small",
|
|
91
94
|
"srOnly]___[value:true",
|
|
92
95
|
"backgroundColor]___[value:background.default",
|
|
93
96
|
"transitionDuration]___[value:fast",
|
|
@@ -109,7 +112,6 @@
|
|
|
109
112
|
"width]___[value:fit-content",
|
|
110
113
|
"maxWidth]___[value:8xl",
|
|
111
114
|
"flexWrap]___[value:wrap",
|
|
112
|
-
"gap]___[value:xxsmall",
|
|
113
115
|
"alignItems]___[value:flex-start]___[cond:mobileDown",
|
|
114
116
|
"justifyContent]___[value:center]___[cond:mobileDown",
|
|
115
117
|
"flexDirection]___[value:column]___[cond:mobileDown",
|
|
@@ -250,9 +252,7 @@
|
|
|
250
252
|
"width]___[value:100%]___[cond:& iframe",
|
|
251
253
|
"textStyle]___[value:label.xsmall]___[cond:& a",
|
|
252
254
|
"marginInlineStart]___[value:1]___[cond:& a",
|
|
253
|
-
"
|
|
254
|
-
"borderBottomLeftRadius]___[value:0",
|
|
255
|
-
"borderBottomRightRadius]___[value:0",
|
|
255
|
+
"borderRadius]___[value:0]___[cond:& img",
|
|
256
256
|
"background]___[value:background.default]___[cond:_hover<___>& [data-byline-button]",
|
|
257
257
|
"transform]___[value:scale(1.2)]___[cond:_hover<___>& button[data-expanded]",
|
|
258
258
|
"transform]___[value:rotate(-45deg)]___[cond:& button[data-expanded='true']<___>& svg",
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"borderBottom]___[value:1px solid",
|
|
276
276
|
"borderStyle]___[value:dashed",
|
|
277
277
|
"borderColor]___[value:stroke.hover",
|
|
278
|
-
"
|
|
278
|
+
"paddingBlockStart]___[value:5xsmall",
|
|
279
279
|
"paddingInline]___[value:4xsmall",
|
|
280
280
|
"borderColor]___[value:text.link]___[cond:_hover",
|
|
281
281
|
"background]___[value:surface.actionSubtle.hover]___[cond:_hover",
|
package/dist/styles.css
CHANGED
|
@@ -230,10 +230,18 @@
|
|
|
230
230
|
flex: 1 1 0%;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
.gap_xxsmall {
|
|
234
|
+
gap: var(--spacing-xxsmall);
|
|
235
|
+
}
|
|
236
|
+
|
|
233
237
|
.grid-area_track {
|
|
234
238
|
grid-area: track;
|
|
235
239
|
}
|
|
236
240
|
|
|
241
|
+
.min-w_xxlarge {
|
|
242
|
+
min-width: var(--sizes-xxlarge);
|
|
243
|
+
}
|
|
244
|
+
|
|
237
245
|
.grid-area_volume {
|
|
238
246
|
grid-area: volume;
|
|
239
247
|
}
|
|
@@ -254,10 +262,6 @@
|
|
|
254
262
|
max-height: var(--sizes-xxlarge);
|
|
255
263
|
}
|
|
256
264
|
|
|
257
|
-
.min-w_xxlarge {
|
|
258
|
-
min-width: var(--sizes-xxlarge);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
265
|
.grid-area_speed {
|
|
262
266
|
grid-area: speed;
|
|
263
267
|
}
|
|
@@ -266,6 +270,14 @@
|
|
|
266
270
|
height: var(--sizes-surface-3xsmall);
|
|
267
271
|
}
|
|
268
272
|
|
|
273
|
+
.min-w_small {
|
|
274
|
+
min-width: var(--sizes-small);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.px_small {
|
|
278
|
+
padding-inline: var(--spacing-small);
|
|
279
|
+
}
|
|
280
|
+
|
|
269
281
|
.sr_true {
|
|
270
282
|
position: absolute;
|
|
271
283
|
width: 1px;
|
|
@@ -314,10 +326,6 @@
|
|
|
314
326
|
max-width: 8xl;
|
|
315
327
|
}
|
|
316
328
|
|
|
317
|
-
.gap_xxsmall {
|
|
318
|
-
gap: var(--spacing-xxsmall);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
329
|
.c_inherit {
|
|
322
330
|
color: inherit;
|
|
323
331
|
}
|
|
@@ -454,10 +462,6 @@
|
|
|
454
462
|
color: var(--colors-text-error);
|
|
455
463
|
}
|
|
456
464
|
|
|
457
|
-
.bd-b_0 {
|
|
458
|
-
border-bottom: 0;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
465
|
.p_0 {
|
|
462
466
|
padding: 0;
|
|
463
467
|
}
|
|
@@ -486,8 +490,8 @@
|
|
|
486
490
|
border-bottom: 1px solid;
|
|
487
491
|
}
|
|
488
492
|
|
|
489
|
-
.
|
|
490
|
-
padding-block: var(--spacing-
|
|
493
|
+
.pbs_5xsmall {
|
|
494
|
+
padding-block-start: var(--spacing-5xsmall);
|
|
491
495
|
}
|
|
492
496
|
|
|
493
497
|
.px_4xsmall {
|
|
@@ -729,14 +733,6 @@
|
|
|
729
733
|
background-color: var(--colors-surface-disabled);
|
|
730
734
|
}
|
|
731
735
|
|
|
732
|
-
.bdr-bl_0 {
|
|
733
|
-
border-bottom-left-radius: 0;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
.bdr-br_0 {
|
|
737
|
-
border-bottom-right-radius: 0;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
736
|
.top_xsmall {
|
|
741
737
|
top: var(--spacing-xsmall);
|
|
742
738
|
}
|
|
@@ -1079,6 +1075,10 @@
|
|
|
1079
1075
|
margin-inline-start: var(--spacing-1);
|
|
1080
1076
|
}
|
|
1081
1077
|
|
|
1078
|
+
.\[\&_img\]\:bdr_0 img {
|
|
1079
|
+
border-radius: 0;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
1082
|
.\[\&_a\]\:c_text\.strong a {
|
|
1083
1083
|
color: var(--colors-text-strong);
|
|
1084
1084
|
}
|
|
@@ -62,7 +62,7 @@ const ProgressWrapper = styled("div", {
|
|
|
62
62
|
flex: "1",
|
|
63
63
|
display: "flex",
|
|
64
64
|
alignItems: "center",
|
|
65
|
-
gap: "
|
|
65
|
+
gap: "xxsmall",
|
|
66
66
|
gridArea: "track",
|
|
67
67
|
paddingBlock: "xsmall",
|
|
68
68
|
mobileDown: {
|
|
@@ -70,6 +70,11 @@ const ProgressWrapper = styled("div", {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
+
const StyledText = styled(Text, {
|
|
74
|
+
base: {
|
|
75
|
+
minWidth: "xxlarge"
|
|
76
|
+
}
|
|
77
|
+
});
|
|
73
78
|
const VolumeButton = styled(IconButton, {
|
|
74
79
|
base: {
|
|
75
80
|
gridArea: "volume"
|
|
@@ -95,7 +100,13 @@ const StyledSelectRoot = styled(SelectRoot, {
|
|
|
95
100
|
});
|
|
96
101
|
const StyledSliderControl = styled(SliderControl, {
|
|
97
102
|
base: {
|
|
98
|
-
height: "surface.3xsmall"
|
|
103
|
+
height: "surface.3xsmall",
|
|
104
|
+
minWidth: "small"
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
const StyledPopoverContent = styled(PopoverContent, {
|
|
108
|
+
base: {
|
|
109
|
+
paddingInline: "small"
|
|
99
110
|
}
|
|
100
111
|
});
|
|
101
112
|
const formatTime = seconds => {
|
|
@@ -208,7 +219,7 @@ const Controls = _ref => {
|
|
|
208
219
|
onClick: () => onSeekSeconds(15),
|
|
209
220
|
children: /*#__PURE__*/_jsx(Forward15Line, {})
|
|
210
221
|
}), /*#__PURE__*/_jsxs(ProgressWrapper, {
|
|
211
|
-
children: [/*#__PURE__*/_jsx(
|
|
222
|
+
children: [/*#__PURE__*/_jsx(StyledText, {
|
|
212
223
|
textStyle: "label.medium",
|
|
213
224
|
asChild: true,
|
|
214
225
|
consumeCss: true,
|
|
@@ -233,7 +244,7 @@ const Controls = _ref => {
|
|
|
233
244
|
children: /*#__PURE__*/_jsx(SliderHiddenInput, {})
|
|
234
245
|
})]
|
|
235
246
|
})
|
|
236
|
-
}), /*#__PURE__*/_jsx(
|
|
247
|
+
}), /*#__PURE__*/_jsx(StyledText, {
|
|
237
248
|
textStyle: "label.medium",
|
|
238
249
|
asChild: true,
|
|
239
250
|
consumeCss: true,
|
|
@@ -286,7 +297,7 @@ const Controls = _ref => {
|
|
|
286
297
|
"aria-label": t("audio.controls.adjustVolume"),
|
|
287
298
|
children: /*#__PURE__*/_jsx(VolumeUpFill, {})
|
|
288
299
|
})
|
|
289
|
-
}), /*#__PURE__*/_jsx(
|
|
300
|
+
}), /*#__PURE__*/_jsx(StyledPopoverContent, {
|
|
290
301
|
children: /*#__PURE__*/_jsxs(SliderRoot, {
|
|
291
302
|
orientation: "vertical",
|
|
292
303
|
value: [volumeValue],
|
package/es/Embed/ConceptEmbed.js
CHANGED
|
@@ -82,6 +82,7 @@ export const InlineConcept = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
82
82
|
linkText,
|
|
83
83
|
copyright,
|
|
84
84
|
visualElement,
|
|
85
|
+
previewAlt,
|
|
85
86
|
lang,
|
|
86
87
|
children,
|
|
87
88
|
title,
|
|
@@ -104,6 +105,7 @@ export const InlineConcept = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
104
105
|
lang: lang,
|
|
105
106
|
title: title,
|
|
106
107
|
source: source,
|
|
108
|
+
previewAlt: previewAlt,
|
|
107
109
|
children: children
|
|
108
110
|
})
|
|
109
111
|
})
|
package/es/Embed/GlossEmbed.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { Portal } from "@ark-ui/react";
|
|
9
10
|
import { Figure, PopoverContent, PopoverRoot, PopoverTrigger } from "@ndla/primitives";
|
|
10
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
11
12
|
import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder";
|
|
@@ -46,12 +47,14 @@ export const GlossEmbed = _ref => {
|
|
|
46
47
|
children: /*#__PURE__*/_jsx(InlineTriggerButton, {
|
|
47
48
|
children: embed.embedData.linkText
|
|
48
49
|
})
|
|
49
|
-
}), /*#__PURE__*/_jsx(
|
|
50
|
-
children: /*#__PURE__*/_jsx(
|
|
51
|
-
children: /*#__PURE__*/_jsx(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
}), /*#__PURE__*/_jsx(Portal, {
|
|
51
|
+
children: /*#__PURE__*/_jsx(StyledPopoverContent, {
|
|
52
|
+
children: /*#__PURE__*/_jsx(Figure, {
|
|
53
|
+
children: /*#__PURE__*/_jsx(Gloss, {
|
|
54
|
+
glossData: concept.glossData,
|
|
55
|
+
title: concept.title,
|
|
56
|
+
audio: audio
|
|
57
|
+
})
|
|
55
58
|
})
|
|
56
59
|
})
|
|
57
60
|
})]
|
package/es/Embed/ImageEmbed.js
CHANGED
|
@@ -94,10 +94,10 @@ const ImageWrapper = styled("div", {
|
|
|
94
94
|
true: {
|
|
95
95
|
border: "1px solid",
|
|
96
96
|
borderColor: "stroke.subtle",
|
|
97
|
-
borderBottom: "0",
|
|
98
97
|
borderRadius: "xsmall",
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
"& img": {
|
|
99
|
+
borderRadius: "0"
|
|
100
|
+
}
|
|
101
101
|
},
|
|
102
102
|
false: {}
|
|
103
103
|
},
|
|
@@ -215,7 +215,8 @@ const ImageEmbed = _ref => {
|
|
|
215
215
|
alt: altText,
|
|
216
216
|
src: data.image.imageUrl,
|
|
217
217
|
lang: lang,
|
|
218
|
-
onClick: figureProps?.float ? toggleImageSize : undefined
|
|
218
|
+
onClick: figureProps?.float ? toggleImageSize : undefined,
|
|
219
|
+
variant: "rounded"
|
|
219
220
|
}), !!embedData.align && /*#__PURE__*/_jsx(ExpandButton, {
|
|
220
221
|
"aria-label": t(`license.images.itemImage.zoom${imageSizes ? "Out" : ""}ImageButtonLabel`),
|
|
221
222
|
onClick: toggleImageSize,
|
|
@@ -17,7 +17,7 @@ const StyledSpan = styled("span", {
|
|
|
17
17
|
borderBottom: "1px solid",
|
|
18
18
|
borderStyle: "dashed",
|
|
19
19
|
borderColor: "stroke.hover",
|
|
20
|
-
|
|
20
|
+
paddingBlockStart: "5xsmall",
|
|
21
21
|
paddingInline: "4xsmall",
|
|
22
22
|
width: "fit-content",
|
|
23
23
|
cursor: "pointer",
|
|
@@ -73,7 +73,8 @@ export const ResourceBox = _ref => {
|
|
|
73
73
|
children: [/*#__PURE__*/_jsx(StyledImage, {
|
|
74
74
|
src: image.src,
|
|
75
75
|
alt: image.alt,
|
|
76
|
-
sizes: `(min-width: ${breakpoints.desktop}) 150px, (max-width: ${breakpoints.tablet} ) 400px, 200px
|
|
76
|
+
sizes: `(min-width: ${breakpoints.desktop}) 150px, (max-width: ${breakpoints.tablet} ) 400px, 200px`,
|
|
77
|
+
variant: "rounded"
|
|
77
78
|
}), /*#__PURE__*/_jsxs(ContentWrapper, {
|
|
78
79
|
children: [/*#__PURE__*/_jsx(Heading, {
|
|
79
80
|
textStyle: "label.large",
|
package/es/i18n/index.js
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
export { i18nInstance } from "./i18n";
|
|
10
10
|
export { formatNestedMessages } from "./formatNestedMessages";
|
|
11
|
-
export { useComboboxTranslations, useTagSelectorTranslations, useTagsInputTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations } from "./useComponentTranslations";
|
|
11
|
+
export { useComboboxTranslations, useTagSelectorTranslations, useTagsInputTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, useVideoSearchTranslations } from "./useComponentTranslations";
|
|
@@ -142,4 +142,22 @@ export const useAudioSearchTranslations = function () {
|
|
|
142
142
|
},
|
|
143
143
|
...remaining
|
|
144
144
|
};
|
|
145
|
+
};
|
|
146
|
+
export const useVideoSearchTranslations = translations => {
|
|
147
|
+
const {
|
|
148
|
+
t
|
|
149
|
+
} = useTranslation("translation", {
|
|
150
|
+
keyPrefix: "component.videoSearch"
|
|
151
|
+
});
|
|
152
|
+
return {
|
|
153
|
+
searchPlaceholder: t("searchPlaceholder"),
|
|
154
|
+
searchButtonTitle: t("searchButtonTitle"),
|
|
155
|
+
loadMoreVideos: t("loadMoreVideos"),
|
|
156
|
+
noResults: t("noResults"),
|
|
157
|
+
is360Video: t("is360Video"),
|
|
158
|
+
previewVideo: t("previewVideo"),
|
|
159
|
+
addVideo: t("addVideo"),
|
|
160
|
+
close: t("close"),
|
|
161
|
+
...translations
|
|
162
|
+
};
|
|
145
163
|
};
|
package/es/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export { default as messagesEN } from "./locale/messages-en";
|
|
|
29
29
|
export { default as messagesSE } from "./locale/messages-se";
|
|
30
30
|
export { default as messagesSMA } from "./locale/messages-sma";
|
|
31
31
|
export { default as Breadcrumb, HomeBreadcrumb } from "./Breadcrumb";
|
|
32
|
-
export { i18nInstance, formatNestedMessages, useTagsInputTranslations, useTagSelectorTranslations, useComboboxTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations } from "./i18n";
|
|
32
|
+
export { i18nInstance, formatNestedMessages, useTagsInputTranslations, useTagSelectorTranslations, useComboboxTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, useVideoSearchTranslations } from "./i18n";
|
|
33
33
|
export { default as LayoutItem, OneColumn, PageContainer } from "./Layout";
|
|
34
34
|
export { default as ContentTypeBadge, SubjectMaterialBadge, TasksAndActivitiesBadge, AssessmentResourcesBadge, LearningPathBadge, SubjectBadge, SourceMaterialBadge, ConceptBadge } from "./ContentTypeBadge";
|
|
35
35
|
export { ContentTypeBadge as ContentTypeBadgeNew, contentTypeToBadgeVariantMap } from "./ContentTypeBadge/ContentTypeBadgeNew";
|
package/es/locale/messages-en.js
CHANGED
|
@@ -1492,6 +1492,16 @@ const messages = {
|
|
|
1492
1492
|
searchButtonTitle: "Search",
|
|
1493
1493
|
useAudio: "Chose audio",
|
|
1494
1494
|
noResults: "No audio files found"
|
|
1495
|
+
},
|
|
1496
|
+
videoSearch: {
|
|
1497
|
+
searchPlaceholder: "Search videos",
|
|
1498
|
+
searchButtonTitle: "Search",
|
|
1499
|
+
loadMoreVideos: "Load more videos",
|
|
1500
|
+
noResults: "No videos found",
|
|
1501
|
+
addVideo: "Use video",
|
|
1502
|
+
previewVideo: "Preview",
|
|
1503
|
+
is360Video: "VR video",
|
|
1504
|
+
close: "Lukk"
|
|
1495
1505
|
}
|
|
1496
1506
|
}
|
|
1497
1507
|
};
|
package/es/locale/messages-nb.js
CHANGED
|
@@ -1492,6 +1492,16 @@ const messages = {
|
|
|
1492
1492
|
searchButtonTitle: "Søk",
|
|
1493
1493
|
useAudio: "Velg lyd",
|
|
1494
1494
|
noResults: "Ingen resultater funnet"
|
|
1495
|
+
},
|
|
1496
|
+
videoSearch: {
|
|
1497
|
+
searchPlaceholder: "Søk i videoer",
|
|
1498
|
+
searchButtonTitle: "Søk",
|
|
1499
|
+
loadMoreVideos: "Last flere videoer",
|
|
1500
|
+
noResults: "Ingen videoer funnet",
|
|
1501
|
+
addVideo: "Bruk video",
|
|
1502
|
+
previewVideo: "Forhåndsvis",
|
|
1503
|
+
is360Video: "VR-video",
|
|
1504
|
+
close: "Lukk"
|
|
1495
1505
|
}
|
|
1496
1506
|
}
|
|
1497
1507
|
};
|
package/es/locale/messages-nn.js
CHANGED
|
@@ -1492,6 +1492,16 @@ const messages = {
|
|
|
1492
1492
|
searchButtonTitle: "Søk",
|
|
1493
1493
|
useAudio: "Velg lyd",
|
|
1494
1494
|
noResults: "Ingen resultat funnet"
|
|
1495
|
+
},
|
|
1496
|
+
videoSearch: {
|
|
1497
|
+
searchPlaceholder: "Søk i videoar",
|
|
1498
|
+
searchButtonTitle: "Søk",
|
|
1499
|
+
loadMoreVideos: "Last fleire videoar",
|
|
1500
|
+
noResults: "Ingen videoar funnet",
|
|
1501
|
+
addVideo: "Bruk video",
|
|
1502
|
+
previewVideo: "Førehandsvis",
|
|
1503
|
+
is360Video: "VR-video",
|
|
1504
|
+
close: "Lukk"
|
|
1495
1505
|
}
|
|
1496
1506
|
}
|
|
1497
1507
|
};
|
package/es/locale/messages-se.js
CHANGED
|
@@ -1492,6 +1492,16 @@ const messages = {
|
|
|
1492
1492
|
searchButtonTitle: "Søk",
|
|
1493
1493
|
useAudio: "Velg lyd",
|
|
1494
1494
|
noResults: "Ingen resultater funnet"
|
|
1495
|
+
},
|
|
1496
|
+
videoSearch: {
|
|
1497
|
+
searchPlaceholder: "Søk i videoar",
|
|
1498
|
+
searchButtonTitle: "Søk",
|
|
1499
|
+
loadMoreVideos: "Last fleire videoar",
|
|
1500
|
+
noResults: "Ingen videoar funnet",
|
|
1501
|
+
addVideo: "Bruk video",
|
|
1502
|
+
previewVideo: "Forhåndsvis",
|
|
1503
|
+
is360Video: "VR-video",
|
|
1504
|
+
close: "Lukk"
|
|
1495
1505
|
}
|
|
1496
1506
|
}
|
|
1497
1507
|
};
|
|
@@ -1492,6 +1492,16 @@ const messages = {
|
|
|
1492
1492
|
searchButtonTitle: "Søk",
|
|
1493
1493
|
useAudio: "Velg lyd",
|
|
1494
1494
|
noResults: "Ingen resultater funnet"
|
|
1495
|
+
},
|
|
1496
|
+
videoSearch: {
|
|
1497
|
+
searchPlaceholder: "Søk i videoar",
|
|
1498
|
+
searchButtonTitle: "Søk",
|
|
1499
|
+
loadMoreVideos: "Last fleire videoar",
|
|
1500
|
+
noResults: "Ingen videoar funnet",
|
|
1501
|
+
addVideo: "Bruk video",
|
|
1502
|
+
previewVideo: "Forhåndsvis",
|
|
1503
|
+
is360Video: "VR-video",
|
|
1504
|
+
close: "Lukk"
|
|
1495
1505
|
}
|
|
1496
1506
|
}
|
|
1497
1507
|
};
|
package/es/styles.css
CHANGED
|
@@ -230,10 +230,18 @@
|
|
|
230
230
|
flex: 1 1 0%;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
.gap_xxsmall {
|
|
234
|
+
gap: var(--spacing-xxsmall);
|
|
235
|
+
}
|
|
236
|
+
|
|
233
237
|
.grid-area_track {
|
|
234
238
|
grid-area: track;
|
|
235
239
|
}
|
|
236
240
|
|
|
241
|
+
.min-w_xxlarge {
|
|
242
|
+
min-width: var(--sizes-xxlarge);
|
|
243
|
+
}
|
|
244
|
+
|
|
237
245
|
.grid-area_volume {
|
|
238
246
|
grid-area: volume;
|
|
239
247
|
}
|
|
@@ -254,10 +262,6 @@
|
|
|
254
262
|
max-height: var(--sizes-xxlarge);
|
|
255
263
|
}
|
|
256
264
|
|
|
257
|
-
.min-w_xxlarge {
|
|
258
|
-
min-width: var(--sizes-xxlarge);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
265
|
.grid-area_speed {
|
|
262
266
|
grid-area: speed;
|
|
263
267
|
}
|
|
@@ -266,6 +270,14 @@
|
|
|
266
270
|
height: var(--sizes-surface-3xsmall);
|
|
267
271
|
}
|
|
268
272
|
|
|
273
|
+
.min-w_small {
|
|
274
|
+
min-width: var(--sizes-small);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.px_small {
|
|
278
|
+
padding-inline: var(--spacing-small);
|
|
279
|
+
}
|
|
280
|
+
|
|
269
281
|
.sr_true {
|
|
270
282
|
position: absolute;
|
|
271
283
|
width: 1px;
|
|
@@ -314,10 +326,6 @@
|
|
|
314
326
|
max-width: 8xl;
|
|
315
327
|
}
|
|
316
328
|
|
|
317
|
-
.gap_xxsmall {
|
|
318
|
-
gap: var(--spacing-xxsmall);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
329
|
.c_inherit {
|
|
322
330
|
color: inherit;
|
|
323
331
|
}
|
|
@@ -454,10 +462,6 @@
|
|
|
454
462
|
color: var(--colors-text-error);
|
|
455
463
|
}
|
|
456
464
|
|
|
457
|
-
.bd-b_0 {
|
|
458
|
-
border-bottom: 0;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
465
|
.p_0 {
|
|
462
466
|
padding: 0;
|
|
463
467
|
}
|
|
@@ -486,8 +490,8 @@
|
|
|
486
490
|
border-bottom: 1px solid;
|
|
487
491
|
}
|
|
488
492
|
|
|
489
|
-
.
|
|
490
|
-
padding-block: var(--spacing-
|
|
493
|
+
.pbs_5xsmall {
|
|
494
|
+
padding-block-start: var(--spacing-5xsmall);
|
|
491
495
|
}
|
|
492
496
|
|
|
493
497
|
.px_4xsmall {
|
|
@@ -729,14 +733,6 @@
|
|
|
729
733
|
background-color: var(--colors-surface-disabled);
|
|
730
734
|
}
|
|
731
735
|
|
|
732
|
-
.bdr-bl_0 {
|
|
733
|
-
border-bottom-left-radius: 0;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
.bdr-br_0 {
|
|
737
|
-
border-bottom-right-radius: 0;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
736
|
.top_xsmall {
|
|
741
737
|
top: var(--spacing-xsmall);
|
|
742
738
|
}
|
|
@@ -1079,6 +1075,10 @@
|
|
|
1079
1075
|
margin-inline-start: var(--spacing-1);
|
|
1080
1076
|
}
|
|
1081
1077
|
|
|
1078
|
+
.\[\&_img\]\:bdr_0 img {
|
|
1079
|
+
border-radius: 0;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
1082
|
.\[\&_a\]\:c_text\.strong a {
|
|
1083
1083
|
color: var(--colors-text-strong);
|
|
1084
1084
|
}
|
|
@@ -68,7 +68,7 @@ const ProgressWrapper = (0, _jsx2.styled)("div", {
|
|
|
68
68
|
flex: "1",
|
|
69
69
|
display: "flex",
|
|
70
70
|
alignItems: "center",
|
|
71
|
-
gap: "
|
|
71
|
+
gap: "xxsmall",
|
|
72
72
|
gridArea: "track",
|
|
73
73
|
paddingBlock: "xsmall",
|
|
74
74
|
mobileDown: {
|
|
@@ -76,6 +76,11 @@ const ProgressWrapper = (0, _jsx2.styled)("div", {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
+
const StyledText = (0, _jsx2.styled)(_primitives.Text, {
|
|
80
|
+
base: {
|
|
81
|
+
minWidth: "xxlarge"
|
|
82
|
+
}
|
|
83
|
+
});
|
|
79
84
|
const VolumeButton = (0, _jsx2.styled)(_primitives.IconButton, {
|
|
80
85
|
base: {
|
|
81
86
|
gridArea: "volume"
|
|
@@ -101,7 +106,13 @@ const StyledSelectRoot = (0, _jsx2.styled)(_primitives.SelectRoot, {
|
|
|
101
106
|
});
|
|
102
107
|
const StyledSliderControl = (0, _jsx2.styled)(_primitives.SliderControl, {
|
|
103
108
|
base: {
|
|
104
|
-
height: "surface.3xsmall"
|
|
109
|
+
height: "surface.3xsmall",
|
|
110
|
+
minWidth: "small"
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
const StyledPopoverContent = (0, _jsx2.styled)(_primitives.PopoverContent, {
|
|
114
|
+
base: {
|
|
115
|
+
paddingInline: "small"
|
|
105
116
|
}
|
|
106
117
|
});
|
|
107
118
|
const formatTime = seconds => {
|
|
@@ -214,7 +225,7 @@ const Controls = _ref => {
|
|
|
214
225
|
onClick: () => onSeekSeconds(15),
|
|
215
226
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.Forward15Line, {})
|
|
216
227
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(ProgressWrapper, {
|
|
217
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
228
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StyledText, {
|
|
218
229
|
textStyle: "label.medium",
|
|
219
230
|
asChild: true,
|
|
220
231
|
consumeCss: true,
|
|
@@ -239,7 +250,7 @@ const Controls = _ref => {
|
|
|
239
250
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SliderHiddenInput, {})
|
|
240
251
|
})]
|
|
241
252
|
})
|
|
242
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
253
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledText, {
|
|
243
254
|
textStyle: "label.medium",
|
|
244
255
|
asChild: true,
|
|
245
256
|
consumeCss: true,
|
|
@@ -292,7 +303,7 @@ const Controls = _ref => {
|
|
|
292
303
|
"aria-label": t("audio.controls.adjustVolume"),
|
|
293
304
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.VolumeUpFill, {})
|
|
294
305
|
})
|
|
295
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
306
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledPopoverContent, {
|
|
296
307
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SliderRoot, {
|
|
297
308
|
orientation: "vertical",
|
|
298
309
|
value: [volumeValue],
|
|
@@ -90,6 +90,7 @@ const InlineConcept = exports.InlineConcept = /*#__PURE__*/(0, _react.forwardRef
|
|
|
90
90
|
linkText,
|
|
91
91
|
copyright,
|
|
92
92
|
visualElement,
|
|
93
|
+
previewAlt,
|
|
93
94
|
lang,
|
|
94
95
|
children,
|
|
95
96
|
title,
|
|
@@ -112,6 +113,7 @@ const InlineConcept = exports.InlineConcept = /*#__PURE__*/(0, _react.forwardRef
|
|
|
112
113
|
lang: lang,
|
|
113
114
|
title: title,
|
|
114
115
|
source: source,
|
|
116
|
+
previewAlt: previewAlt,
|
|
115
117
|
children: children
|
|
116
118
|
})
|
|
117
119
|
})
|
package/lib/Embed/GlossEmbed.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GlossEmbed = void 0;
|
|
7
|
+
var _react = require("@ark-ui/react");
|
|
7
8
|
var _primitives = require("@ndla/primitives");
|
|
8
9
|
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
9
10
|
var _EmbedErrorPlaceholder = _interopRequireDefault(require("./EmbedErrorPlaceholder"));
|
|
@@ -53,12 +54,14 @@ const GlossEmbed = _ref => {
|
|
|
53
54
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_InlineTriggerButton.InlineTriggerButton, {
|
|
54
55
|
children: embed.embedData.linkText
|
|
55
56
|
})
|
|
56
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
57
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
58
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Portal, {
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledPopoverContent, {
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Figure, {
|
|
60
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Gloss.Gloss, {
|
|
61
|
+
glossData: concept.glossData,
|
|
62
|
+
title: concept.title,
|
|
63
|
+
audio: audio
|
|
64
|
+
})
|
|
62
65
|
})
|
|
63
66
|
})
|
|
64
67
|
})]
|