@telia-ace/widget-components-copyright 1.1.1-rc.2 → 1.1.1-rc.4

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),t=require("@emotion/styled");require("@emotion/react");const n=require("./index-6ac9584a.js"),l=require("react");require("react-dom");require("react-transition-group");require("react-router-dom");const r=()=>l.useContext(n.ComponentPropertyContext),i=({className:e,...h})=>{const{mode:s="compact"}=r();return c.jsx(a,{...h,className:n.appendClassNames(e,"humany-copyright"),children:c.jsx("a",{"aria-label":"Powered by Telia ACE",href:"https://ace-showcase.com/marketplace/ace-knowledge/",target:"_blank",rel:"noopener noreferrer",children:c.jsxs(o,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink",viewBox:"0 0 1000 150",mode:s,children:[c.jsxs("g",{children:[c.jsx("path",{d:`M107.5,47.9c5.3,0,9.3,1.4,12,4.1s4.1,6.5,4.1,11.4c0,4.9-1.4,8.7-4.1,11.5c-2.7,2.7-6.7,4.1-12,4h-16v21.5h-7V47.9H107.5z
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("@emotion/styled"),l=require("@telia-ace/widget-ui"),t=require("@telia-ace/widget-utilities"),i=({className:h,...n})=>{const{mode:s="compact"}=l.useProperties();return c.jsx(a,{...n,className:t.appendClassNames(h,"humany-copyright"),children:c.jsx("a",{"aria-label":"Powered by Telia ACE",href:"https://ace-showcase.com/marketplace/ace-knowledge/",target:"_blank",rel:"noopener noreferrer",children:c.jsxs(r,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink",viewBox:"0 0 1000 150",mode:s,children:[c.jsxs("g",{children:[c.jsx("path",{d:`M107.5,47.9c5.3,0,9.3,1.4,12,4.1s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22
35
- c1.8,0,2.7,0.9,2.7,2.6c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H889.3z`})]})]})})})},a=t.div`
36
- padding: ${e=>{var h;return(h=e.theme.sizes)==null?void 0:h.cardinal}}px;
35
+ c1.8,0,2.7,0.9,2.7,2.6c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H889.3z`})]})]})})})},a=e.div`
36
+ padding: ${h=>{var n;return(n=h.theme.sizes)==null?void 0:n.cardinal}}px;
37
37
 
38
38
  a {
39
39
  display: flex;
40
40
  justify-content: center;
41
41
  align-items: center;
42
42
  &:focus-visible svg {
43
- ${n.linkTabStyle};
43
+ ${l.linkTabStyle};
44
44
  }
45
45
  outline: none;
46
46
  }
47
- `,o=t.svg`
48
- width: ${e=>e.mode==="compact"?"130px":"145px"};
47
+ `,r=e.svg`
48
+ width: ${h=>h.mode==="compact"?"130px":"145px"};
49
49
  `;exports.default=i;
@@ -1,30 +1,26 @@
1
- import { jsx as c, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
2
2
  import e from "@emotion/styled";
3
- import "@emotion/react";
4
- import { C as r, a, l as p } from "./index-91f1324d.mjs";
5
- import { useContext as o } from "react";
6
- import "react-dom";
7
- import "react-transition-group";
8
- import "react-router-dom";
9
- const i = () => o(r), x = ({ className: h, ...n }) => {
10
- const { mode: l = "compact" } = i();
11
- return /* @__PURE__ */ c(s, { ...n, className: a(h, "humany-copyright"), children: /* @__PURE__ */ c(
3
+ import { useProperties as a, linkTabStyle as p } from "@telia-ace/widget-ui";
4
+ import { appendClassNames as r } from "@telia-ace/widget-utilities";
5
+ const M = ({ className: h, ...n }) => {
6
+ const { mode: t = "compact" } = a();
7
+ return /* @__PURE__ */ c(i, { ...n, className: r(h, "humany-copyright"), children: /* @__PURE__ */ c(
12
8
  "a",
13
9
  {
14
10
  "aria-label": "Powered by Telia ACE",
15
11
  href: "https://ace-showcase.com/marketplace/ace-knowledge/",
16
12
  target: "_blank",
17
13
  rel: "noopener noreferrer",
18
- children: /* @__PURE__ */ t(
19
- d,
14
+ children: /* @__PURE__ */ l(
15
+ o,
20
16
  {
21
17
  version: "1.1",
22
18
  xmlns: "http://www.w3.org/2000/svg",
23
19
  xlinkHref: "http://www.w3.org/1999/xlink",
24
20
  viewBox: "0 0 1000 150",
25
- mode: l,
21
+ mode: t,
26
22
  children: [
27
- /* @__PURE__ */ t("g", { children: [
23
+ /* @__PURE__ */ l("g", { children: [
28
24
  /* @__PURE__ */ c(
29
25
  "path",
30
26
  {
@@ -86,7 +82,7 @@ const i = () => o(r), x = ({ className: h, ...n }) => {
86
82
  ),
87
83
  /* @__PURE__ */ c("path", { d: "M540.8,100.5h-7V79l-20.3-31h8.3l15.7,25l15.4-25h7.9l-20.1,31V100.5z" })
88
84
  ] }),
89
- /* @__PURE__ */ t("g", { children: [
85
+ /* @__PURE__ */ l("g", { children: [
90
86
  /* @__PURE__ */ c(
91
87
  "path",
92
88
  {
@@ -162,7 +158,7 @@ const i = () => o(r), x = ({ className: h, ...n }) => {
162
158
  )
163
159
  }
164
160
  ) });
165
- }, s = e.div`
161
+ }, i = e.div`
166
162
  padding: ${(h) => {
167
163
  var n;
168
164
  return (n = h.theme.sizes) == null ? void 0 : n.cardinal;
@@ -177,9 +173,9 @@ const i = () => o(r), x = ({ className: h, ...n }) => {
177
173
  }
178
174
  outline: none;
179
175
  }
180
- `, d = e.svg`
176
+ `, o = e.svg`
181
177
  width: ${(h) => h.mode === "compact" ? "130px" : "145px"};
182
178
  `;
183
179
  export {
184
- x as default
180
+ M as default
185
181
  };
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index-6ac9584a.js");require("@emotion/react");require("react/jsx-runtime");require("react");require("@emotion/styled");require("react-transition-group");require("react-dom");require("react-router-dom");module.exports=e.CopyrightComponent;
1
+ "use strict";const t=require("@telia-ace/widget-ui"),r=e=>t.createReactComponent(e,"copyright",Promise.resolve().then(()=>require("./copyright-62a516d2.js")));module.exports=r;
package/index.mjs CHANGED
@@ -1,11 +1,5 @@
1
- import { b } from "./index-91f1324d.mjs";
2
- import "@emotion/react";
3
- import "react/jsx-runtime";
4
- import "react";
5
- import "@emotion/styled";
6
- import "react-transition-group";
7
- import "react-dom";
8
- import "react-router-dom";
1
+ import { createReactComponent as o } from "@telia-ace/widget-ui";
2
+ const e = (t) => o(t, "copyright", import("./copyright-f101185c.mjs"));
9
3
  export {
10
- b as default
4
+ e as default
11
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-copyright",
3
- "version": "1.1.1-rc.2",
3
+ "version": "1.1.1-rc.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -10,10 +10,10 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "@telia-ace/widget-ui": "^1.1.1-rc.2",
14
- "@telia-ace/widget-utilities": "^1.1.1-rc.2",
13
+ "@telia-ace/widget-ui": "^1.1.1-rc.4",
14
+ "@telia-ace/widget-utilities": "^1.1.1-rc.4",
15
15
  "@webprovisions/platform": "^1.1.4",
16
- "@telia-ace/widget-core": "^1.1.1-rc.2"
16
+ "@telia-ace/widget-core": "^1.1.1-rc.4"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@emotion/styled": "11.11.0",