@telia-ace/widget-components-image-link 1.1.2-rc.0 → 1.1.2-rc.2
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.
|
@@ -4,17 +4,24 @@ import { useProperties as s, Link as n, borderTabStyle as p } from "@telia-ace/w
|
|
|
4
4
|
import { appendClassNames as c } from "@telia-ace/widget-utilities";
|
|
5
5
|
const h = ({ className: m, ...t }) => {
|
|
6
6
|
const { route: e, image: r, ariaLabel: i, altLabel: l } = s();
|
|
7
|
-
return /* @__PURE__ */ a(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
8
|
+
d,
|
|
9
|
+
{
|
|
10
|
+
...t,
|
|
11
|
+
className: c(m, "humany-image-link"),
|
|
12
|
+
children: e ? /* @__PURE__ */ a(n, { routeName: e, "aria-label": i, children: /* @__PURE__ */ a("img", { src: r, alt: l }) }) : /* @__PURE__ */ a("img", { src: r, alt: l, "aria-label": i })
|
|
14
13
|
}
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
);
|
|
15
|
+
}, d = o.div`
|
|
16
|
+
a {
|
|
17
|
+
display: block;
|
|
18
|
+
&:focus-visible {
|
|
19
|
+
${p};
|
|
17
20
|
}
|
|
21
|
+
}
|
|
22
|
+
img {
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
}
|
|
18
25
|
`;
|
|
19
26
|
export {
|
|
20
27
|
h as default
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@emotion/styled"),i=require("@telia-ace/widget-ui"),c=require("@telia-ace/widget-utilities"),u=({className:l,...n})=>{const{route:a,image:r,ariaLabel:t,altLabel:s}=i.useProperties();return e.jsx(d,{...n,className:c.appendClassNames(l,"humany-image-link"),children:a?e.jsx(i.Link,{routeName:a,"aria-label":t,children:e.jsx("img",{src:r,alt:s})}):e.jsx("img",{src:r,alt:s,"aria-label":t})})},d=o.div`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
img {
|
|
9
|
-
max-width: 100%;
|
|
2
|
+
a {
|
|
3
|
+
display: block;
|
|
4
|
+
&:focus-visible {
|
|
5
|
+
${i.borderTabStyle};
|
|
10
6
|
}
|
|
7
|
+
}
|
|
8
|
+
img {
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
}
|
|
11
11
|
`;exports.default=u;
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("@telia-ace/widget-ui"),r=e=>t.createReactComponent(e,"image-link",Promise.resolve().then(()=>require("./image-link-
|
|
1
|
+
"use strict";const t=require("@telia-ace/widget-ui"),r=e=>t.createReactComponent(e,"image-link",Promise.resolve().then(()=>require("./image-link-850d4a3c.js")));module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-image-link",
|
|
3
|
-
"version": "1.1.2-rc.
|
|
3
|
+
"version": "1.1.2-rc.2",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@telia-ace/widget-core": "^1.1.2-rc.
|
|
14
|
-
"@telia-ace/widget-ui": "^1.1.2-rc.
|
|
15
|
-
"@telia-ace/widget-utilities": "^1.1.2-rc.
|
|
13
|
+
"@telia-ace/widget-core": "^1.1.2-rc.2",
|
|
14
|
+
"@telia-ace/widget-ui": "^1.1.2-rc.2",
|
|
15
|
+
"@telia-ace/widget-utilities": "^1.1.2-rc.2",
|
|
16
16
|
"@webprovisions/platform": "^1.1.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|