@ndla/ui 56.0.113-alpha.0 → 56.0.115-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.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2025-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import { useTranslation } from "react-i18next";
10
+ import { ExternalLinkLine } from "@ndla/icons";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ const TargetBlankIcon = () => {
13
+ const {
14
+ t
15
+ } = useTranslation();
16
+ return /*#__PURE__*/_jsx(ExternalLinkLine, {
17
+ size: "small",
18
+ "aria-label": t("license.openLink")
19
+ });
20
+ };
21
+ export default TargetBlankIcon;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2025-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ export { default as TargetBlankIcon } from "./TargetBlankIcon";
package/es/index.js CHANGED
@@ -41,5 +41,6 @@ export { Grid, GridParallaxItem } from "./Grid";
41
41
  export { Gloss, GlossExample } from "./Gloss";
42
42
  export { LinkBlock, LinkBlockSection } from "./LinkBlock";
43
43
  export { CodeBlock, codeLanguageOptions } from "./CodeBlock";
44
+ export { TargetBlankIcon } from "./TargetBlankIcon";
44
45
  export { ZendeskButton } from "./ZendeskButton/ZendeskButton";
45
46
  export { licenseAttributes } from "./utils/licenseAttributes";
@@ -43,7 +43,7 @@ const messages = {
43
43
  copyPageLinkCopied: "Lenke kopiert",
44
44
  copyHeaderLink: "Kopier lenke til overskrifta",
45
45
  conjunction: "og",
46
- authorsLabelExternal: "Denne lenka er lagd til av {{names}}",
46
+ authorsLabelExternal: "Denne lenka er lagt til av {{names}}",
47
47
  supplierLabel: "Rettshavar: {{name}}",
48
48
  multipleSuppliersLabel: "Rettshavarar: {{names}}",
49
49
  printPage: "Skriv ut teksten",
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2025-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ declare const TargetBlankIcon: () => import("react/jsx-runtime").JSX.Element;
9
+ export default TargetBlankIcon;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactI18next = require("react-i18next");
8
+ var _icons = require("@ndla/icons");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ /**
11
+ * Copyright (c) 2025-present, NDLA.
12
+ *
13
+ * This source code is licensed under the GPLv3 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ *
16
+ */
17
+
18
+ const TargetBlankIcon = () => {
19
+ const {
20
+ t
21
+ } = (0, _reactI18next.useTranslation)();
22
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ExternalLinkLine, {
23
+ size: "small",
24
+ "aria-label": t("license.openLink")
25
+ });
26
+ };
27
+ var _default = exports.default = TargetBlankIcon;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export { default as TargetBlankIcon } from "./TargetBlankIcon";
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "TargetBlankIcon", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _TargetBlankIcon.default;
10
+ }
11
+ });
12
+ var _TargetBlankIcon = _interopRequireDefault(require("./TargetBlankIcon"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
package/lib/index.d.ts CHANGED
@@ -48,6 +48,7 @@ export { Gloss, GlossExample } from "./Gloss";
48
48
  export { LinkBlock, LinkBlockSection } from "./LinkBlock";
49
49
  export type { Article as ArticleType, HeadingLevel } from "./types";
50
50
  export { CodeBlock, codeLanguageOptions } from "./CodeBlock";
51
+ export { TargetBlankIcon } from "./TargetBlankIcon";
51
52
  export { ZendeskButton } from "./ZendeskButton/ZendeskButton";
52
53
  export type { ZendeskButtonProps } from "./ZendeskButton/ZendeskButton";
53
54
  export { licenseAttributes } from "./utils/licenseAttributes";
package/lib/index.js CHANGED
@@ -411,6 +411,12 @@ Object.defineProperty(exports, "TagSelectorTrigger", {
411
411
  return _TagSelector.TagSelectorTrigger;
412
412
  }
413
413
  });
414
+ Object.defineProperty(exports, "TargetBlankIcon", {
415
+ enumerable: true,
416
+ get: function () {
417
+ return _TargetBlankIcon.TargetBlankIcon;
418
+ }
419
+ });
414
420
  Object.defineProperty(exports, "UnknownEmbed", {
415
421
  enumerable: true,
416
422
  get: function () {
@@ -587,6 +593,7 @@ var _Grid = require("./Grid");
587
593
  var _Gloss = require("./Gloss");
588
594
  var _LinkBlock = require("./LinkBlock");
589
595
  var _CodeBlock = require("./CodeBlock");
596
+ var _TargetBlankIcon = require("./TargetBlankIcon");
590
597
  var _ZendeskButton = require("./ZendeskButton/ZendeskButton");
591
598
  var _licenseAttributes = require("./utils/licenseAttributes");
592
599
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -50,7 +50,7 @@ const messages = {
50
50
  copyPageLinkCopied: "Lenke kopiert",
51
51
  copyHeaderLink: "Kopier lenke til overskrifta",
52
52
  conjunction: "og",
53
- authorsLabelExternal: "Denne lenka er lagd til av {{names}}",
53
+ authorsLabelExternal: "Denne lenka er lagt til av {{names}}",
54
54
  supplierLabel: "Rettshavar: {{name}}",
55
55
  multipleSuppliersLabel: "Rettshavarar: {{names}}",
56
56
  printPage: "Skriv ut teksten",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "56.0.113-alpha.0",
3
+ "version": "56.0.115-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@ndla/core": "^5.0.3",
36
- "@ndla/icons": "^8.0.53-alpha.0",
36
+ "@ndla/icons": "^8.0.55-alpha.0",
37
37
  "@ndla/licenses": "^9.0.1",
38
38
  "@ndla/primitives": "^1.0.85-alpha.0",
39
39
  "@ndla/safelink": "^7.0.86-alpha.0",
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "e8c865af1ed43005dd82d12f85a0704acd4ff4ae"
60
+ "gitHead": "c1e642fcd7cb08f705ed3be0e870f8c09ca7a7f6"
61
61
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2025-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import { useTranslation } from "react-i18next";
10
+ import { ExternalLinkLine } from "@ndla/icons";
11
+
12
+ const TargetBlankIcon = () => {
13
+ const { t } = useTranslation();
14
+ return <ExternalLinkLine size="small" aria-label={t("license.openLink")} />;
15
+ };
16
+
17
+ export default TargetBlankIcon;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2025-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ export { default as TargetBlankIcon } from "./TargetBlankIcon";
package/src/index.ts CHANGED
@@ -132,6 +132,8 @@ export type { Article as ArticleType, HeadingLevel } from "./types";
132
132
 
133
133
  export { CodeBlock, codeLanguageOptions } from "./CodeBlock";
134
134
 
135
+ export { TargetBlankIcon } from "./TargetBlankIcon";
136
+
135
137
  export { ZendeskButton } from "./ZendeskButton/ZendeskButton";
136
138
 
137
139
  export type { ZendeskButtonProps } from "./ZendeskButton/ZendeskButton";
@@ -42,7 +42,7 @@ const messages = {
42
42
  copyPageLinkCopied: "Lenke kopiert",
43
43
  copyHeaderLink: "Kopier lenke til overskrifta",
44
44
  conjunction: "og",
45
- authorsLabelExternal: "Denne lenka er lagd til av {{names}}",
45
+ authorsLabelExternal: "Denne lenka er lagt til av {{names}}",
46
46
  supplierLabel: "Rettshavar: {{name}}",
47
47
  multipleSuppliersLabel: "Rettshavarar: {{names}}",
48
48
  printPage: "Skriv ut teksten",