@ndla/ui 56.0.70-alpha.0 → 56.0.72-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.
@@ -12,7 +12,7 @@ import { createListCollection } from "@ark-ui/react";
12
12
  import { Replay15Line, Forward15Line } from "@ndla/icons/action";
13
13
  import { PlayFill, PauseLine, VolumeUpFill } from "@ndla/icons/common";
14
14
  import { CheckLine } from "@ndla/icons/editor";
15
- import { Button, IconButton, PopoverContent, PopoverRoot, PopoverTrigger, SelectContent, SelectControl, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectPositioner, SelectRoot, SelectTrigger, SliderControl, SliderHiddenInput, SliderLabel, SliderRange, SliderRoot, SliderThumb, SliderTrack, Text } from "@ndla/primitives";
15
+ import { Button, IconButton, PopoverContent, PopoverRoot, PopoverTrigger, SelectContent, SelectControl, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SliderControl, SliderHiddenInput, SliderLabel, SliderRange, SliderRoot, SliderThumb, SliderTrack, Text } from "@ndla/primitives";
16
16
  import { styled } from "@ndla/styled-system/jsx";
17
17
  import { visuallyHidden } from "@ndla/styled-system/patterns";
18
18
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -278,17 +278,15 @@ const Controls = _ref => {
278
278
  })
279
279
  })
280
280
  })
281
- }), /*#__PURE__*/_jsx(SelectPositioner, {
282
- children: /*#__PURE__*/_jsx(SelectContent, {
283
- children: speedValues.items.map(speed => /*#__PURE__*/_jsxs(SelectItem, {
284
- item: speed,
285
- children: [/*#__PURE__*/_jsxs(SelectItemText, {
286
- children: [speed, "x"]
287
- }), /*#__PURE__*/_jsx(SelectItemIndicator, {
288
- children: /*#__PURE__*/_jsx(CheckLine, {})
289
- })]
290
- }, speed))
291
- })
281
+ }), /*#__PURE__*/_jsx(SelectContent, {
282
+ children: speedValues.items.map(speed => /*#__PURE__*/_jsxs(SelectItem, {
283
+ item: speed,
284
+ children: [/*#__PURE__*/_jsxs(SelectItemText, {
285
+ children: [speed, "x"]
286
+ }), /*#__PURE__*/_jsx(SelectItemIndicator, {
287
+ children: /*#__PURE__*/_jsx(CheckLine, {})
288
+ })]
289
+ }, speed))
292
290
  })]
293
291
  }), /*#__PURE__*/_jsxs(PopoverRoot, {
294
292
  positioning: {
@@ -545,7 +545,8 @@ const messages = {
545
545
  aboutNdla: "About NDLA",
546
546
  blog: "Blog",
547
547
  tips: "Tips to students",
548
- vacancies: "Vacancies"
548
+ vacancies: "Vacancies",
549
+ contact: "Contact us"
549
550
  },
550
551
  otherLanguages: "Other languages"
551
552
  },
@@ -545,7 +545,8 @@ const messages = {
545
545
  aboutNdla: "About NDLA",
546
546
  blog: "Fagblogg",
547
547
  tips: "Tips til elever",
548
- vacancies: "Ledige stillinger"
548
+ vacancies: "Ledige stillinger",
549
+ contact: "Kontakt oss"
549
550
  },
550
551
  otherLanguages: "Andre språk"
551
552
  },
@@ -545,7 +545,8 @@ const messages = {
545
545
  aboutNdla: "About NDLA",
546
546
  blog: "Fagblogg",
547
547
  tips: "Tips til elevar",
548
- vacancies: "Ledige stillingar"
548
+ vacancies: "Ledige stillingar",
549
+ contact: "Kontakt oss"
549
550
  },
550
551
  otherLanguages: "Andre språk"
551
552
  },
@@ -545,7 +545,8 @@ const messages = {
545
545
  aboutNdla: "NDLA birra",
546
546
  blog: "Fágablogga",
547
547
  tips: "Cavgileapmi ohppiide",
548
- vacancies: "Rabas virggit"
548
+ vacancies: "Rabas virggit",
549
+ contact: "Kontakt oss"
549
550
  },
550
551
  otherLanguages: "Andre språk"
551
552
  },
@@ -545,7 +545,8 @@ const messages = {
545
545
  aboutNdla: "About NDLA",
546
546
  blog: "Faageblogge",
547
547
  tips: "Tipsh learoehkidie",
548
- vacancies: "Gaavnoes barkoeh"
548
+ vacancies: "Gaavnoes barkoeh",
549
+ contact: "Kontakt oss"
549
550
  },
550
551
  otherLanguages: "Andre språk"
551
552
  },
@@ -21,6 +21,9 @@ export const IMAGE = "image";
21
21
  export const VIDEO = "video";
22
22
  export const AUDIO = "audio";
23
23
  export const PODCAST = "podcast";
24
+ export const GLOSS = "gloss";
25
+ export const PROGRAMME = "programme";
26
+ export const PODCAST_SERIES = "podcast-series";
24
27
  export const contentTypes = {
25
28
  SUBJECT_MATERIAL,
26
29
  TASKS_AND_ACTIVITIES,
@@ -32,7 +35,9 @@ export const contentTypes = {
32
35
  MULTIDISCIPLINARY,
33
36
  CONCEPT,
34
37
  EXTERNAL,
35
- MISSING
38
+ MISSING,
39
+ PROGRAMME,
40
+ PODCAST_SERIES
36
41
  };
37
42
  export const RESOURCE_TYPE_LEARNING_PATH = "urn:resourcetype:learningPath";
38
43
  export const RESOURCE_TYPE_SUBJECT_MATERIAL = "urn:resourcetype:subjectMaterial";
@@ -55,5 +60,6 @@ export const resourceEmbedTypeMapping = {
55
60
  video: "video",
56
61
  concept: "concept",
57
62
  audio: "audio",
58
- podcast: "podcast"
63
+ podcast: "podcast",
64
+ gloss: "gloss"
59
65
  };
@@ -284,17 +284,15 @@ const Controls = _ref => {
284
284
  })
285
285
  })
286
286
  })
287
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SelectPositioner, {
288
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SelectContent, {
289
- children: speedValues.items.map(speed => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SelectItem, {
290
- item: speed,
291
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SelectItemText, {
292
- children: [speed, "x"]
293
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SelectItemIndicator, {
294
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_editor.CheckLine, {})
295
- })]
296
- }, speed))
297
- })
287
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SelectContent, {
288
+ children: speedValues.items.map(speed => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SelectItem, {
289
+ item: speed,
290
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.SelectItemText, {
291
+ children: [speed, "x"]
292
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SelectItemIndicator, {
293
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_editor.CheckLine, {})
294
+ })]
295
+ }, speed))
298
296
  })]
299
297
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.PopoverRoot, {
300
298
  positioning: {
@@ -536,6 +536,7 @@ declare const messages: {
536
536
  blog: string;
537
537
  tips: string;
538
538
  vacancies: string;
539
+ contact: string;
539
540
  };
540
541
  otherLanguages: string;
541
542
  };
@@ -552,7 +552,8 @@ const messages = {
552
552
  aboutNdla: "About NDLA",
553
553
  blog: "Blog",
554
554
  tips: "Tips to students",
555
- vacancies: "Vacancies"
555
+ vacancies: "Vacancies",
556
+ contact: "Contact us"
556
557
  },
557
558
  otherLanguages: "Other languages"
558
559
  },
@@ -536,6 +536,7 @@ declare const messages: {
536
536
  blog: string;
537
537
  tips: string;
538
538
  vacancies: string;
539
+ contact: string;
539
540
  };
540
541
  otherLanguages: string;
541
542
  };
@@ -552,7 +552,8 @@ const messages = {
552
552
  aboutNdla: "About NDLA",
553
553
  blog: "Fagblogg",
554
554
  tips: "Tips til elever",
555
- vacancies: "Ledige stillinger"
555
+ vacancies: "Ledige stillinger",
556
+ contact: "Kontakt oss"
556
557
  },
557
558
  otherLanguages: "Andre språk"
558
559
  },
@@ -536,6 +536,7 @@ declare const messages: {
536
536
  blog: string;
537
537
  tips: string;
538
538
  vacancies: string;
539
+ contact: string;
539
540
  };
540
541
  otherLanguages: string;
541
542
  };
@@ -552,7 +552,8 @@ const messages = {
552
552
  aboutNdla: "About NDLA",
553
553
  blog: "Fagblogg",
554
554
  tips: "Tips til elevar",
555
- vacancies: "Ledige stillingar"
555
+ vacancies: "Ledige stillingar",
556
+ contact: "Kontakt oss"
556
557
  },
557
558
  otherLanguages: "Andre språk"
558
559
  },
@@ -536,6 +536,7 @@ declare const messages: {
536
536
  blog: string;
537
537
  tips: string;
538
538
  vacancies: string;
539
+ contact: string;
539
540
  };
540
541
  otherLanguages: string;
541
542
  };
@@ -552,7 +552,8 @@ const messages = {
552
552
  aboutNdla: "NDLA birra",
553
553
  blog: "Fágablogga",
554
554
  tips: "Cavgileapmi ohppiide",
555
- vacancies: "Rabas virggit"
555
+ vacancies: "Rabas virggit",
556
+ contact: "Kontakt oss"
556
557
  },
557
558
  otherLanguages: "Andre språk"
558
559
  },
@@ -536,6 +536,7 @@ declare const messages: {
536
536
  blog: string;
537
537
  tips: string;
538
538
  vacancies: string;
539
+ contact: string;
539
540
  };
540
541
  otherLanguages: string;
541
542
  };
@@ -552,7 +552,8 @@ const messages = {
552
552
  aboutNdla: "About NDLA",
553
553
  blog: "Faageblogge",
554
554
  tips: "Tipsh learoehkidie",
555
- vacancies: "Gaavnoes barkoeh"
555
+ vacancies: "Gaavnoes barkoeh",
556
+ contact: "Kontakt oss"
556
557
  },
557
558
  otherLanguages: "Andre språk"
558
559
  },
@@ -20,6 +20,9 @@ export declare const IMAGE = "image";
20
20
  export declare const VIDEO = "video";
21
21
  export declare const AUDIO = "audio";
22
22
  export declare const PODCAST = "podcast";
23
+ export declare const GLOSS = "gloss";
24
+ export declare const PROGRAMME = "programme";
25
+ export declare const PODCAST_SERIES = "podcast-series";
23
26
  export declare const contentTypes: {
24
27
  SUBJECT_MATERIAL: string;
25
28
  TASKS_AND_ACTIVITIES: string;
@@ -32,6 +35,8 @@ export declare const contentTypes: {
32
35
  CONCEPT: string;
33
36
  EXTERNAL: string;
34
37
  MISSING: string;
38
+ PROGRAMME: string;
39
+ PODCAST_SERIES: string;
35
40
  };
36
41
  export declare const RESOURCE_TYPE_LEARNING_PATH = "urn:resourcetype:learningPath";
37
42
  export declare const RESOURCE_TYPE_SUBJECT_MATERIAL = "urn:resourcetype:subjectMaterial";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.resourceEmbedTypeMapping = exports.contentTypes = exports.contentTypeMapping = exports.VIDEO = exports.TOPIC = exports.TASKS_AND_ACTIVITIES = exports.SUBJECT_MATERIAL = exports.SUBJECT = exports.SOURCE_MATERIAL = exports.RESOURCE_TYPE_TASKS_AND_ACTIVITIES = exports.RESOURCE_TYPE_SUBJECT_MATERIAL = exports.RESOURCE_TYPE_SOURCE_MATERIAL = exports.RESOURCE_TYPE_LEARNING_PATH = exports.RESOURCE_TYPE_CONCEPT = exports.RESOURCE_TYPE_ASSESSMENT_RESOURCES = exports.PODCAST = exports.MULTIDISCIPLINARY = exports.MISSING = exports.LEARNING_PATH = exports.IMAGE = exports.EXTERNAL = exports.CONCEPT = exports.AUDIO = exports.ASSESSMENT_RESOURCES = void 0;
6
+ exports.resourceEmbedTypeMapping = exports.contentTypes = exports.contentTypeMapping = exports.VIDEO = exports.TOPIC = exports.TASKS_AND_ACTIVITIES = exports.SUBJECT_MATERIAL = exports.SUBJECT = exports.SOURCE_MATERIAL = exports.RESOURCE_TYPE_TASKS_AND_ACTIVITIES = exports.RESOURCE_TYPE_SUBJECT_MATERIAL = exports.RESOURCE_TYPE_SOURCE_MATERIAL = exports.RESOURCE_TYPE_LEARNING_PATH = exports.RESOURCE_TYPE_CONCEPT = exports.RESOURCE_TYPE_ASSESSMENT_RESOURCES = exports.PROGRAMME = exports.PODCAST_SERIES = exports.PODCAST = exports.MULTIDISCIPLINARY = exports.MISSING = exports.LEARNING_PATH = exports.IMAGE = exports.GLOSS = exports.EXTERNAL = exports.CONCEPT = exports.AUDIO = exports.ASSESSMENT_RESOURCES = void 0;
7
7
  /**
8
8
  * Copyright (c) 2017-present, NDLA.
9
9
  *
@@ -27,6 +27,9 @@ const IMAGE = exports.IMAGE = "image";
27
27
  const VIDEO = exports.VIDEO = "video";
28
28
  const AUDIO = exports.AUDIO = "audio";
29
29
  const PODCAST = exports.PODCAST = "podcast";
30
+ const GLOSS = exports.GLOSS = "gloss";
31
+ const PROGRAMME = exports.PROGRAMME = "programme";
32
+ const PODCAST_SERIES = exports.PODCAST_SERIES = "podcast-series";
30
33
  const contentTypes = exports.contentTypes = {
31
34
  SUBJECT_MATERIAL,
32
35
  TASKS_AND_ACTIVITIES,
@@ -38,7 +41,9 @@ const contentTypes = exports.contentTypes = {
38
41
  MULTIDISCIPLINARY,
39
42
  CONCEPT,
40
43
  EXTERNAL,
41
- MISSING
44
+ MISSING,
45
+ PROGRAMME,
46
+ PODCAST_SERIES
42
47
  };
43
48
  const RESOURCE_TYPE_LEARNING_PATH = exports.RESOURCE_TYPE_LEARNING_PATH = "urn:resourcetype:learningPath";
44
49
  const RESOURCE_TYPE_SUBJECT_MATERIAL = exports.RESOURCE_TYPE_SUBJECT_MATERIAL = "urn:resourcetype:subjectMaterial";
@@ -61,5 +66,6 @@ const resourceEmbedTypeMapping = exports.resourceEmbedTypeMapping = {
61
66
  video: "video",
62
67
  concept: "concept",
63
68
  audio: "audio",
64
- podcast: "podcast"
69
+ podcast: "podcast",
70
+ gloss: "gloss"
65
71
  };
@@ -21,6 +21,8 @@ declare const model: {
21
21
  CONCEPT: string;
22
22
  EXTERNAL: string;
23
23
  MISSING: string;
24
+ PROGRAMME: string;
25
+ PODCAST_SERIES: string;
24
26
  };
25
27
  subjectCategories: typeof subjectCategories;
26
28
  subjectTypes: typeof subjectTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "56.0.70-alpha.0",
3
+ "version": "56.0.72-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -35,8 +35,8 @@
35
35
  "@ndla/core": "^5.0.2",
36
36
  "@ndla/icons": "^8.0.43-alpha.0",
37
37
  "@ndla/licenses": "^8.0.3-alpha.0",
38
- "@ndla/primitives": "^1.0.54-alpha.0",
39
- "@ndla/safelink": "^7.0.55-alpha.0",
38
+ "@ndla/primitives": "^1.0.56-alpha.0",
39
+ "@ndla/safelink": "^7.0.57-alpha.0",
40
40
  "@ndla/styled-system": "^0.0.27",
41
41
  "@ndla/util": "^5.0.0-alpha.0",
42
42
  "html-react-parser": "^5.1.8",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "e06a706dabbce890a06465bf25e2a424811e7523"
61
+ "gitHead": "9977b1ca38cb32c54458378b13fea3f7ca19a187"
62
62
  }
@@ -24,7 +24,6 @@ import {
24
24
  SelectItemIndicator,
25
25
  SelectItemText,
26
26
  SelectLabel,
27
- SelectPositioner,
28
27
  SelectRoot,
29
28
  SelectTrigger,
30
29
  SliderControl,
@@ -309,18 +308,16 @@ const Controls = ({ src, title }: Props) => {
309
308
  </SpeedButton>
310
309
  </SelectTrigger>
311
310
  </SelectControl>
312
- <SelectPositioner>
313
- <SelectContent>
314
- {speedValues.items.map((speed) => (
315
- <SelectItem key={speed} item={speed}>
316
- <SelectItemText>{speed}x</SelectItemText>
317
- <SelectItemIndicator>
318
- <CheckLine />
319
- </SelectItemIndicator>
320
- </SelectItem>
321
- ))}
322
- </SelectContent>
323
- </SelectPositioner>
311
+ <SelectContent>
312
+ {speedValues.items.map((speed) => (
313
+ <SelectItem key={speed} item={speed}>
314
+ <SelectItemText>{speed}x</SelectItemText>
315
+ <SelectItemIndicator>
316
+ <CheckLine />
317
+ </SelectItemIndicator>
318
+ </SelectItem>
319
+ ))}
320
+ </SelectContent>
324
321
  </StyledSelectRoot>
325
322
  <PopoverRoot positioning={{ placement: "top" }}>
326
323
  <PopoverTrigger asChild>
@@ -18,7 +18,6 @@ import {
18
18
  ComboboxItem,
19
19
  ComboboxItemIndicator,
20
20
  ComboboxItemText,
21
- ComboboxPositioner,
22
21
  IconButton,
23
22
  Input,
24
23
  InputContainer,
@@ -95,18 +94,16 @@ export const Default: StoryFn<typeof TagSelectorRoot> = ({ translations, ...args
95
94
  </IconButton>
96
95
  </TagSelectorTrigger>
97
96
  </HStack>
98
- <ComboboxPositioner>
99
- <ComboboxContent>
100
- {options.map((item) => (
101
- <ComboboxItem key={item} item={item}>
102
- <ComboboxItemText>{item}</ComboboxItemText>
103
- <ComboboxItemIndicator>
104
- <CheckLine />
105
- </ComboboxItemIndicator>
106
- </ComboboxItem>
107
- ))}
108
- </ComboboxContent>
109
- </ComboboxPositioner>
97
+ <ComboboxContent>
98
+ {options.map((item) => (
99
+ <ComboboxItem key={item} item={item}>
100
+ <ComboboxItemText>{item}</ComboboxItemText>
101
+ <ComboboxItemIndicator>
102
+ <CheckLine />
103
+ </ComboboxItemIndicator>
104
+ </ComboboxItem>
105
+ ))}
106
+ </ComboboxContent>
110
107
  </TagSelectorRoot>
111
108
  );
112
109
  };
@@ -556,6 +556,7 @@ const messages = {
556
556
  blog: "Blog",
557
557
  tips: "Tips to students",
558
558
  vacancies: "Vacancies",
559
+ contact: "Contact us",
559
560
  },
560
561
  otherLanguages: "Other languages",
561
562
  },
@@ -557,6 +557,7 @@ const messages = {
557
557
  blog: "Fagblogg",
558
558
  tips: "Tips til elever",
559
559
  vacancies: "Ledige stillinger",
560
+ contact: "Kontakt oss",
560
561
  },
561
562
  otherLanguages: "Andre språk",
562
563
  },
@@ -557,6 +557,7 @@ const messages = {
557
557
  blog: "Fagblogg",
558
558
  tips: "Tips til elevar",
559
559
  vacancies: "Ledige stillingar",
560
+ contact: "Kontakt oss",
560
561
  },
561
562
  otherLanguages: "Andre språk",
562
563
  },
@@ -558,6 +558,7 @@ const messages = {
558
558
  blog: "Fágablogga",
559
559
  tips: "Cavgileapmi ohppiide",
560
560
  vacancies: "Rabas virggit",
561
+ contact: "Kontakt oss",
561
562
  },
562
563
  otherLanguages: "Andre språk",
563
564
  },
@@ -560,6 +560,7 @@ const messages = {
560
560
  blog: "Faageblogge",
561
561
  tips: "Tipsh learoehkidie",
562
562
  vacancies: "Gaavnoes barkoeh",
563
+ contact: "Kontakt oss",
563
564
  },
564
565
  otherLanguages: "Andre språk",
565
566
  },
@@ -21,6 +21,9 @@ export const IMAGE = "image";
21
21
  export const VIDEO = "video";
22
22
  export const AUDIO = "audio";
23
23
  export const PODCAST = "podcast";
24
+ export const GLOSS = "gloss";
25
+ export const PROGRAMME = "programme";
26
+ export const PODCAST_SERIES = "podcast-series";
24
27
 
25
28
  export const contentTypes = {
26
29
  SUBJECT_MATERIAL,
@@ -34,6 +37,8 @@ export const contentTypes = {
34
37
  CONCEPT,
35
38
  EXTERNAL,
36
39
  MISSING,
40
+ PROGRAMME,
41
+ PODCAST_SERIES,
37
42
  };
38
43
 
39
44
  export const RESOURCE_TYPE_LEARNING_PATH = "urn:resourcetype:learningPath";
@@ -60,4 +65,5 @@ export const resourceEmbedTypeMapping: Record<string, string> = {
60
65
  concept: "concept",
61
66
  audio: "audio",
62
67
  podcast: "podcast",
68
+ gloss: "gloss",
63
69
  };