@midas-ds/components 17.10.12 → 17.10.13
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.
- package/CHANGELOG.md +8 -0
- package/assets/Link.css +1 -1
- package/chunks/Link-CSIZehbN.js +59 -0
- package/index.js +2 -2
- package/link/index.js +1 -1
- package/package.json +1 -1
- package/chunks/Link-CyY3-8M8.js +0 -59
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 17.10.13 (2026-03-30)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **components,link:** wrap hover rules in @media (hover: hover) to match LinkButton ([c71848b659](https://github.com/migrationsverket/midas/commit/c71848b659))
|
|
6
|
+
- **components,link:** consolidate hover rules to match LinkButton pattern ([0fa6c2ab09](https://github.com/migrationsverket/midas/commit/0fa6c2ab09))
|
|
7
|
+
- **components,link:** move redundant :hover rules under @media (hover: hover) ([cf8e2114a4](https://github.com/migrationsverket/midas/commit/cf8e2114a4))
|
|
8
|
+
|
|
1
9
|
## 17.10.12 (2026-03-30)
|
|
2
10
|
|
|
3
11
|
### 🧱 Updated Dependencies
|
package/assets/Link.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._link_duep2_1{font-family:var(--midas-typography-font-family);color:var(--midas-link-enabled);text-decoration:underline;display:inline-flex;cursor:pointer;gap:var(--midas-space-xsmall);font-weight:400;align-items:center}@media(hover:hover){._link_duep2_1[data-hovered]:not([data-disabled],:disabled),._link_duep2_1:hover:not([data-disabled],:disabled){color:var(--midas-link-hover)}@media(forced-colors:active){._link_duep2_1[data-hovered]:not([data-disabled],:disabled),._link_duep2_1:hover:not([data-disabled],:disabled){color:highlight}}}._link_duep2_1:visited{color:var(--midas-link-visited)}._link_duep2_1[data-disabled],._link_duep2_1:disabled{cursor:not-allowed;color:var(--midas-text-disabled)}._link_duep2_1[data-pressed]:not([data-disabled],:disabled),._link_duep2_1:active:not([data-disabled],:disabled){color:var(--midas-link-pressed)}._link_duep2_1[data-focused],._link_duep2_1:focus{outline:none}._link_duep2_1[data-focus-visible],._link_duep2_1:focus-visible{box-shadow:var(--midas-state-focus)}@media(forced-colors:active){._link_duep2_1[data-focus-visible],._link_duep2_1:focus-visible{outline:3px solid highlight;outline-offset:2px}}._icon_duep2_53{flex:0 0 auto}._standalone_duep2_57{display:inline-flex;gap:var(--midas-space-small);text-decoration:none;font-weight:500}@media(hover:hover){._standalone_duep2_57[data-hovered]:not([data-disabled],:disabled),._standalone_duep2_57:hover:not([data-disabled],:disabled){text-decoration:underline}}._standalone_duep2_57[data-pressed]:not([data-disabled],:disabled),._standalone_duep2_57:active:not([data-disabled],:disabled){text-decoration:underline}._stretched_duep2_76:after{position:absolute;inset:0;z-index:var(--midas-z-index-base);content:""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as e, jsxs as _, Fragment as u } from "react/jsx-runtime";
|
|
3
|
+
import { Link as f } from "react-aria-components";
|
|
4
|
+
import { c as h } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { c as k } from "./createLucideIcon-CP-mMPfa.js";
|
|
6
|
+
import { S as w } from "./square-arrow-out-up-right-x_I6wdNi.js";
|
|
7
|
+
import { A as L } from "./arrow-right-BVcFGZmy.js";
|
|
8
|
+
import '../assets/Link.css';const x = [
|
|
9
|
+
["path", { d: "M12 17V3", key: "1cwfxf" }],
|
|
10
|
+
["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
|
|
11
|
+
["path", { d: "M19 21H5", key: "150jfl" }]
|
|
12
|
+
], g = k("arrow-down-to-line", x), y = "_link_duep2_1", A = "_icon_duep2_53", j = "_standalone_duep2_57", I = "_stretched_duep2_76", o = {
|
|
13
|
+
link: y,
|
|
14
|
+
icon: A,
|
|
15
|
+
standalone: j,
|
|
16
|
+
stretched: I
|
|
17
|
+
}, D = ({
|
|
18
|
+
children: t,
|
|
19
|
+
standalone: n,
|
|
20
|
+
target: r,
|
|
21
|
+
stretched: s,
|
|
22
|
+
download: a,
|
|
23
|
+
icon: c,
|
|
24
|
+
className: l,
|
|
25
|
+
as: d,
|
|
26
|
+
...m
|
|
27
|
+
}) => {
|
|
28
|
+
const p = d || f, i = c || (a ? g : r === "_blank" ? w : n ? L : null);
|
|
29
|
+
return /* @__PURE__ */ e(
|
|
30
|
+
p,
|
|
31
|
+
{
|
|
32
|
+
className: h(
|
|
33
|
+
o.link,
|
|
34
|
+
n && o.standalone,
|
|
35
|
+
s && o.stretched,
|
|
36
|
+
l
|
|
37
|
+
),
|
|
38
|
+
...m,
|
|
39
|
+
target: r,
|
|
40
|
+
children: /* @__PURE__ */ _(u, { children: [
|
|
41
|
+
t,
|
|
42
|
+
i ? /* @__PURE__ */ e(
|
|
43
|
+
N,
|
|
44
|
+
{
|
|
45
|
+
className: o.icon,
|
|
46
|
+
icon: i,
|
|
47
|
+
size: 16
|
|
48
|
+
}
|
|
49
|
+
) : null
|
|
50
|
+
] })
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}, N = ({
|
|
54
|
+
icon: t,
|
|
55
|
+
...n
|
|
56
|
+
}) => /* @__PURE__ */ e(t, { ...n });
|
|
57
|
+
export {
|
|
58
|
+
D as L
|
|
59
|
+
};
|
package/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import { H as po } from "./chunks/Heading-nfcRc2QF.js";
|
|
|
23
23
|
import { I as mo } from "./chunks/InfoBanner-CWLvkP6D.js";
|
|
24
24
|
import { L as fo } from "./chunks/Label-Cg0aAlnt.js";
|
|
25
25
|
import { H as To, L as lo, N as co, S as go, a as uo } from "./chunks/Layout-DLe0UoSw.js";
|
|
26
|
-
import { L as Co } from "./chunks/Link-
|
|
26
|
+
import { L as Co } from "./chunks/Link-CSIZehbN.js";
|
|
27
27
|
import { L as bo } from "./chunks/LinkButton-Dzp8ZAPs.js";
|
|
28
28
|
import { L as Io, a as Do } from "./chunks/Logo-DDykn5b2.js";
|
|
29
29
|
import { M as Ro } from "./chunks/Dialog-BSWBlyJI.js";
|
|
@@ -50,7 +50,7 @@ import { c as Qa } from "./chunks/clsx-AexbMWKp.js";
|
|
|
50
50
|
import { DialogTrigger as Za, MenuTrigger as ja, RouterProvider as qa } from "react-aria-components";
|
|
51
51
|
import { u as Ka } from "./chunks/useLocalizedStringFormatter-BHvsRxDk.js";
|
|
52
52
|
import { useToastState as Wa } from "react-stately";
|
|
53
|
-
const o = "17.10.
|
|
53
|
+
const o = "17.10.13", a = {
|
|
54
54
|
version: o
|
|
55
55
|
}, r = a.version;
|
|
56
56
|
export {
|
package/link/index.js
CHANGED
package/package.json
CHANGED
package/chunks/Link-CyY3-8M8.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as r, jsxs as _, Fragment as f } from "react/jsx-runtime";
|
|
3
|
-
import { Link as p } from "react-aria-components";
|
|
4
|
-
import { c as k } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { c as u } from "./createLucideIcon-CP-mMPfa.js";
|
|
6
|
-
import { S as w } from "./square-arrow-out-up-right-x_I6wdNi.js";
|
|
7
|
-
import { A as L } from "./arrow-right-BVcFGZmy.js";
|
|
8
|
-
import '../assets/Link.css';const x = [
|
|
9
|
-
["path", { d: "M12 17V3", key: "1cwfxf" }],
|
|
10
|
-
["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
|
|
11
|
-
["path", { d: "M19 21H5", key: "150jfl" }]
|
|
12
|
-
], g = u("arrow-down-to-line", x), y = "_link_1sdlh_1", A = "_icon_1sdlh_51", j = "_standalone_1sdlh_55", I = "_stretched_1sdlh_72", o = {
|
|
13
|
-
link: y,
|
|
14
|
-
icon: A,
|
|
15
|
-
standalone: j,
|
|
16
|
-
stretched: I
|
|
17
|
-
}, D = ({
|
|
18
|
-
children: t,
|
|
19
|
-
standalone: n,
|
|
20
|
-
target: s,
|
|
21
|
-
stretched: i,
|
|
22
|
-
download: l,
|
|
23
|
-
icon: e,
|
|
24
|
-
className: a,
|
|
25
|
-
as: d,
|
|
26
|
-
...m
|
|
27
|
-
}) => {
|
|
28
|
-
const h = d || p, c = e || (l ? g : s === "_blank" ? w : n ? L : null);
|
|
29
|
-
return /* @__PURE__ */ r(
|
|
30
|
-
h,
|
|
31
|
-
{
|
|
32
|
-
className: k(
|
|
33
|
-
o.link,
|
|
34
|
-
n && o.standalone,
|
|
35
|
-
i && o.stretched,
|
|
36
|
-
a
|
|
37
|
-
),
|
|
38
|
-
...m,
|
|
39
|
-
target: s,
|
|
40
|
-
children: /* @__PURE__ */ _(f, { children: [
|
|
41
|
-
t,
|
|
42
|
-
c ? /* @__PURE__ */ r(
|
|
43
|
-
N,
|
|
44
|
-
{
|
|
45
|
-
className: o.icon,
|
|
46
|
-
icon: c,
|
|
47
|
-
size: 16
|
|
48
|
-
}
|
|
49
|
-
) : null
|
|
50
|
-
] })
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}, N = ({
|
|
54
|
-
icon: t,
|
|
55
|
-
...n
|
|
56
|
-
}) => /* @__PURE__ */ r(t, { ...n });
|
|
57
|
-
export {
|
|
58
|
-
D as L
|
|
59
|
-
};
|