@telia-ace/widget-components-back-link 1.3.41-rc.0 → 1.3.41-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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as o } from "react/jsx-runtime";
2
2
  import c from "@emotion/styled";
3
- import { linkTabStyle as f, useDispatch as w, useRouteData as x, useContainer as y, useProperties as k, createEmptyComponent as g, Button as b } from "@telia-ace/widget-ui";
3
+ import { useDispatch as f, useRouteData as w, useContainer as x, useProperties as y, createEmptyComponent as k, Button as g, linkTabStyle as b } from "@telia-ace/widget-ui";
4
4
  import { appendClassNames as l } from "@telia-ace/widget-utilities";
5
5
  const a = c.div`
6
6
  font-weight: 300;
@@ -18,7 +18,7 @@ const a = c.div`
18
18
  font-weight: 300;
19
19
  }
20
20
  &:focus-visible {
21
- ${f}
21
+ ${b}
22
22
  padding: ${(t) => {
23
23
  var e, i;
24
24
  return `calc(${(e = t.theme.sizes) == null ? void 0 : e.small} / 2) ${(i = t.theme.sizes) == null ? void 0 : i.small}`;
@@ -37,9 +37,9 @@ const a = c.div`
37
37
  }};
38
38
  }
39
39
  `, D = ({ className: t, ...e }) => {
40
- const i = w(), { params: m } = x(), h = y(), { conditions: r = [], label: s = "" } = k();
40
+ const i = f(), { params: m } = w(), h = x(), { conditions: r = [], label: s = "" } = y();
41
41
  if (!(r && r.length ? r.reduce((p, u) => m[u] ? !0 : p, !1) : !0))
42
- return g(h, {
42
+ return k(h, {
43
43
  ...e,
44
44
  className: l(t, "humany-back-link")
45
45
  });
@@ -51,7 +51,7 @@ const a = c.div`
51
51
  {
52
52
  ...e,
53
53
  className: l(t, "humany-back-link"),
54
- children: /* @__PURE__ */ o(b, { "aria-label": s, onClick: d, children: [
54
+ children: /* @__PURE__ */ o(g, { "aria-label": s, onClick: d, children: [
55
55
  /* @__PURE__ */ o(
56
56
  v,
57
57
  {
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const c=require("@telia-ace/widget-ui"),o=e=>c.createReactComponent(e,"back-link",Promise.resolve().then(()=>require("./back-link-210e4ce8.js")),t=>{t.actions.create("click",(i,r)=>{if(!r.preventDefault)return e.getAsync("router").then(n=>{n.goBack()})})});module.exports=o;
1
+ "use strict";const c=require("@telia-ace/widget-ui"),o=e=>c.createReactComponent(e,"back-link",Promise.resolve().then(()=>require("./back-link-DCrOFU9j.js")),t=>{t.actions.create("click",(i,r)=>{if(!r.preventDefault)return e.getAsync("router").then(n=>{n.goBack()})})});module.exports=o;
package/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { createReactComponent as a } from "@telia-ace/widget-ui";
2
2
  const i = (t) => a(
3
3
  t,
4
4
  "back-link",
5
- import("./back-link-837b2382.mjs"),
5
+ import("./back-link-B9dIvyQj.mjs"),
6
6
  (e) => {
7
7
  e.actions.create("click", (o, r) => {
8
8
  if (!r.preventDefault)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-back-link",
3
- "version": "1.3.41-rc.0",
3
+ "version": "1.3.41-rc.2",
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-routing": "^1.3.41-rc.0",
14
- "@telia-ace/widget-ui": "^1.3.41-rc.0",
15
- "@telia-ace/widget-utilities": "^1.3.41-rc.0",
16
- "@telia-ace/widget-core": "^1.3.41-rc.0",
13
+ "@telia-ace/widget-routing": "^1.3.41-rc.2",
14
+ "@telia-ace/widget-ui": "^1.3.41-rc.2",
15
+ "@telia-ace/widget-utilities": "^1.3.41-rc.2",
16
+ "@telia-ace/widget-core": "^1.3.41-rc.2",
17
17
  "@webprovisions/platform": "^1.1.4"
18
18
  },
19
19
  "peerDependencies": {