@telia-ace/widget-components-copyright 1.1.1-rc.1 → 1.1.1-rc.3

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"),n=require("./index-56fbe768.js"),s=require("react");require("react-dom");const l=()=>s.useContext(n.ComponentPropertyContext),r=({className:e,...h})=>{const{mode:t="compact"}=l();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(i,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink",viewBox:"0 0 1000 150",mode:t,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.1s4.1,6.5,4.1,11.4c0,4.9-1.4,8.7-4.1,11.5c-2.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-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H889.3z`})]})]})})})},a=n.newStyled.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
- `,i=n.newStyled.svg`
48
- width: ${e=>e.mode==="compact"?"130px":"145px"};
49
- `;exports.default=r;
47
+ `,r=e.svg`
48
+ width: ${h=>h.mode==="compact"?"130px":"145px"};
49
+ `;exports.default=i;
@@ -1,26 +1,26 @@
1
- import { jsx as c, jsxs as e } from "react/jsx-runtime";
2
- import { C as a, a as p, n as t, l as r } from "./index-09163fc2.mjs";
3
- import { useContext as o } from "react";
4
- import "react-dom";
5
- const s = () => o(a), H = ({ className: h, ...n }) => {
6
- const { mode: l = "compact" } = s();
7
- return /* @__PURE__ */ c(i, { ...n, className: p(h, "humany-copyright"), children: /* @__PURE__ */ c(
1
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
2
+ import e from "@emotion/styled";
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(
8
8
  "a",
9
9
  {
10
10
  "aria-label": "Powered by Telia ACE",
11
11
  href: "https://ace-showcase.com/marketplace/ace-knowledge/",
12
12
  target: "_blank",
13
13
  rel: "noopener noreferrer",
14
- children: /* @__PURE__ */ e(
15
- d,
14
+ children: /* @__PURE__ */ l(
15
+ o,
16
16
  {
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
19
  xlinkHref: "http://www.w3.org/1999/xlink",
20
20
  viewBox: "0 0 1000 150",
21
- mode: l,
21
+ mode: t,
22
22
  children: [
23
- /* @__PURE__ */ e("g", { children: [
23
+ /* @__PURE__ */ l("g", { children: [
24
24
  /* @__PURE__ */ c(
25
25
  "path",
26
26
  {
@@ -82,7 +82,7 @@ const s = () => o(a), H = ({ className: h, ...n }) => {
82
82
  ),
83
83
  /* @__PURE__ */ c("path", { d: "M540.8,100.5h-7V79l-20.3-31h8.3l15.7,25l15.4-25h7.9l-20.1,31V100.5z" })
84
84
  ] }),
85
- /* @__PURE__ */ e("g", { children: [
85
+ /* @__PURE__ */ l("g", { children: [
86
86
  /* @__PURE__ */ c(
87
87
  "path",
88
88
  {
@@ -158,7 +158,7 @@ const s = () => o(a), H = ({ className: h, ...n }) => {
158
158
  )
159
159
  }
160
160
  ) });
161
- }, i = t.div`
161
+ }, i = e.div`
162
162
  padding: ${(h) => {
163
163
  var n;
164
164
  return (n = h.theme.sizes) == null ? void 0 : n.cardinal;
@@ -169,13 +169,13 @@ const s = () => o(a), H = ({ className: h, ...n }) => {
169
169
  justify-content: center;
170
170
  align-items: center;
171
171
  &:focus-visible svg {
172
- ${r};
172
+ ${p};
173
173
  }
174
174
  outline: none;
175
175
  }
176
- `, d = t.svg`
176
+ `, o = e.svg`
177
177
  width: ${(h) => h.mode === "compact" ? "130px" : "145px"};
178
178
  `;
179
179
  export {
180
- H as default
180
+ M as default
181
181
  };
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index-56fbe768.js");require("react/jsx-runtime");require("react");require("react-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,7 +1,5 @@
1
- import { b as i } from "./index-09163fc2.mjs";
2
- import "react/jsx-runtime";
3
- import "react";
4
- import "react-dom";
1
+ import { createReactComponent as o } from "@telia-ace/widget-ui";
2
+ const e = (t) => o(t, "copyright", import("./copyright-f101185c.mjs"));
5
3
  export {
6
- i as default
4
+ e as default
7
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.1",
3
+ "version": "1.1.1-rc.3",
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.1",
14
- "@telia-ace/widget-utilities": "^1.1.1-rc.1",
13
+ "@telia-ace/widget-ui": "^1.1.1-rc.3",
14
+ "@telia-ace/widget-utilities": "^1.1.1-rc.3",
15
15
  "@webprovisions/platform": "^1.1.4",
16
- "@telia-ace/widget-core": "^1.1.1-rc.1"
16
+ "@telia-ace/widget-core": "^1.1.1-rc.3"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@emotion/styled": "11.11.0",