@midas-ds/components 17.11.3 → 17.11.5

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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## 17.11.5 (2026-04-14)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **components, card:** change horizontal heading level ([26fe0e0241](https://github.com/migrationsverket/midas/commit/26fe0e0241))
6
+
7
+ ## 17.11.4 (2026-04-14)
8
+
9
+ ### 🧱 Updated Dependencies
10
+
11
+ - Updated theme to 3.12.22
12
+
1
13
  ## 17.11.3 (2026-04-14)
2
14
 
3
15
  ### 🩹 Fixes
package/card/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C, a as d, b as s, c as e, d as t, e as n, f as o } from "../chunks/Card-Br5b9Esq.js";
1
+ import { C, a as d, b as s, c as e, d as t, e as n, f as o } from "../chunks/Card-DSUs7WRL.js";
2
2
  export {
3
3
  C as Card,
4
4
  d as CardActionArea,
@@ -4,111 +4,110 @@ import * as s from "react";
4
4
  import { H as m } from "./Heading-nfcRc2QF.js";
5
5
  import { Button as _, Link as u } from "react-aria-components";
6
6
  import { A as C } from "./arrow-right-BVcFGZmy.js";
7
- import '../assets/Card.css';const A = "_card_iue4c_1", h = "_horizontal_iue4c_11", I = "_cardLink_iue4c_16", x = "_cardContent_iue4c_27", z = "_cardActions_iue4c_46", k = "_cardActionArea_iue4c_56", p = "_cardImage_iue4c_89", L = "_cardLinkIcon_iue4c_121", o = {
7
+ import '../assets/Card.css';const A = "_card_iue4c_1", h = "_horizontal_iue4c_11", I = "_cardLink_iue4c_16", z = "_cardContent_iue4c_27", k = "_cardActions_iue4c_46", x = "_cardActionArea_iue4c_56", L = "_cardImage_iue4c_89", p = "_cardLinkIcon_iue4c_121", o = {
8
8
  card: A,
9
9
  horizontal: h,
10
10
  cardLink: I,
11
- cardContent: x,
12
- cardActions: z,
13
- cardActionArea: k,
14
- cardImage: p,
15
- cardLinkIcon: L
11
+ cardContent: z,
12
+ cardActions: k,
13
+ cardActionArea: x,
14
+ cardImage: L,
15
+ cardLinkIcon: p
16
16
  }, i = s.createContext({
17
17
  horizontal: void 0,
18
18
  titleId: void 0
19
19
  }), y = ({
20
- horizontal: a,
20
+ horizontal: t,
21
21
  className: c,
22
- children: t,
22
+ children: a,
23
23
  ...e
24
24
  }) => {
25
25
  const d = `card-title-${s.useId()}`;
26
- return /* @__PURE__ */ n(i.Provider, { value: { horizontal: a, titleId: d }, children: /* @__PURE__ */ n(
26
+ return /* @__PURE__ */ n(i.Provider, { value: { horizontal: t, titleId: d }, children: /* @__PURE__ */ n(
27
27
  "div",
28
28
  {
29
29
  ...e,
30
30
  className: r(
31
31
  o.card,
32
- a && o.horizontal,
32
+ t && o.horizontal,
33
33
  c
34
34
  ),
35
- children: t
35
+ children: a
36
36
  }
37
37
  ) });
38
38
  }, H = ({
39
- children: a,
39
+ children: t,
40
40
  ...c
41
41
  }) => {
42
- const { horizontal: t } = s.useContext(i);
42
+ const { horizontal: a } = s.useContext(i);
43
43
  return /* @__PURE__ */ n(
44
44
  "div",
45
45
  {
46
46
  ...c,
47
- className: r(o.cardContent, t && o.horizontal),
48
- children: a
47
+ className: r(o.cardContent, a && o.horizontal),
48
+ children: t
49
49
  }
50
50
  );
51
51
  }, R = ({
52
- elementType: a = "h2",
52
+ elementType: t = "h2",
53
53
  children: c
54
54
  }) => {
55
- const { horizontal: t, titleId: e } = s.useContext(i);
55
+ const { horizontal: a, titleId: e } = s.useContext(i);
56
56
  return /* @__PURE__ */ n(
57
57
  m,
58
58
  {
59
- level: t ? 5 : 3,
60
- elementType: a,
61
- isExpressive: t,
62
- className: r(o.cardTitle, t && o.horizontal),
59
+ level: 3,
60
+ elementType: t,
61
+ className: r(o.cardTitle, a && o.horizontal),
63
62
  id: e,
64
63
  children: c
65
64
  }
66
65
  );
67
66
  }, T = ({
68
- children: a,
67
+ children: t,
69
68
  ...c
70
69
  }) => {
71
- const { horizontal: t } = s.useContext(i);
70
+ const { horizontal: a } = s.useContext(i);
72
71
  return /* @__PURE__ */ n(
73
72
  "div",
74
73
  {
75
74
  ...c,
76
- className: r(o.cardActions, t && o.horizontal),
77
- children: a
75
+ className: r(o.cardActions, a && o.horizontal),
76
+ children: t
78
77
  }
79
78
  );
80
- }, w = ({ children: a, className: c, ...t }) => {
79
+ }, w = ({ children: t, className: c, ...a }) => {
81
80
  const { titleId: e } = s.useContext(i);
82
81
  return /* @__PURE__ */ n(
83
82
  _,
84
83
  {
85
- ...t,
84
+ ...a,
86
85
  "aria-labelledby": e,
87
86
  className: r(o.cardActionArea, c),
88
- children: a
87
+ children: t
89
88
  }
90
89
  );
91
90
  }, B = ({
92
- as: a = "img",
91
+ as: t = "img",
93
92
  className: c,
94
- ...t
93
+ ...a
95
94
  }) => /* @__PURE__ */ n(
96
- a,
95
+ t,
97
96
  {
98
- ...t,
97
+ ...a,
99
98
  className: r(o.cardImage, c)
100
99
  }
101
- ), E = ({
102
- children: a,
100
+ ), P = ({
101
+ children: t,
103
102
  as: c,
104
- ...t
103
+ ...a
105
104
  }) => /* @__PURE__ */ l(
106
105
  c || u,
107
106
  {
108
- ...t,
109
- className: r(o.cardLink, t.className),
107
+ ...a,
108
+ className: r(o.cardLink, a.className),
110
109
  children: [
111
- a,
110
+ t,
112
111
  /* @__PURE__ */ n(
113
112
  C,
114
113
  {
@@ -125,6 +124,6 @@ export {
125
124
  T as b,
126
125
  H as c,
127
126
  B as d,
128
- E as e,
127
+ P as e,
129
128
  R as f
130
129
  };
package/index.js CHANGED
@@ -5,7 +5,7 @@ import { B as n, a as d } from "./chunks/Breadcrumb-Bs836gOn.js";
5
5
  import { B as l } from "./chunks/Button-GCROAMSl.js";
6
6
  import { B as g } from "./chunks/ButtonGroup-Dr6HOBo2.js";
7
7
  import { C as L, R as C } from "./chunks/RangeCalendar-DxLInTav.js";
8
- import { C as b, a as S, b as D, c as I, d as F, e as R, f as G } from "./chunks/Card-Br5b9Esq.js";
8
+ import { C as b, a as S, b as D, c as I, d as F, e as R, f as G } from "./chunks/Card-DSUs7WRL.js";
9
9
  import { C as k } from "./chunks/CharacterCounter-Dgnv-orm.js";
10
10
  import { C as M } from "./chunks/Checkbox-CwzV5QbM.js";
11
11
  import { C as h } from "./chunks/CheckboxGroup-CF_3F36J.js";
@@ -52,7 +52,7 @@ import { c as ja } from "./chunks/clsx-AexbMWKp.js";
52
52
  import { DialogTrigger as Ja, MenuTrigger as Ka, RouterProvider as Ua } from "react-aria-components";
53
53
  import { u as Xa } from "./chunks/useLocalizedStringFormatter-BHvsRxDk.js";
54
54
  import { useToastState as _a } from "react-stately";
55
- const o = "17.11.3", a = {
55
+ const o = "17.11.5", a = {
56
56
  version: o
57
57
  }, r = a.version;
58
58
  export {
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "17.11.3",
17
+ "version": "17.11.5",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",
@@ -41,7 +41,7 @@
41
41
  "./*": "./*/index.js"
42
42
  },
43
43
  "dependencies": {
44
- "@midas-ds/theme": "3.12.21",
44
+ "@midas-ds/theme": "3.12.22",
45
45
  "react-aria-components": "1.16.0"
46
46
  }
47
47
  }