@midas-ds/layout 0.2.65 → 0.2.66

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,13 @@
1
+ ## 0.2.66 (2026-11-16)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **components:** re-export react-aria primitives ([#1478](https://github.com/migrationsverket/midas/pull/1478))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated components to 17.34.0
10
+
1
11
  ## 0.2.65 (2026-11-11)
2
12
 
3
13
  ### 🧱 Updated Dependencies
@@ -5,14 +5,14 @@ import { n } from "./navbar-DbRci-zw.js";
5
5
  import r from "clsx";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  import { useContext as o } from "react";
8
- import { Collection as s, Focusable as c, Link as l, OverlayTriggerStateContext as u } from "react-aria-components";
9
- import { Text as d, Tooltip as f, TooltipTrigger as p, clsx as m } from "@midas-ds/components";
10
- import '../assets/navigation.css';var h = { rootList: "_rootList_l3v98_1" }, g = ({ className: e, items: t, children: n, dependencies: r, idScope: a, addIdAndValue: o, ...c }) => /* @__PURE__ */ i("nav", {
8
+ import { Link as s, OverlayTriggerStateContext as c } from "react-aria-components";
9
+ import { Collection as l, Focusable as u, Text as d, Tooltip as f, TooltipTrigger as p, clsx as m } from "@midas-ds/components";
10
+ import '../assets/navigation.css';var h = { rootList: "_rootList_l3v98_1" }, g = ({ className: e, items: t, children: n, dependencies: r, idScope: a, addIdAndValue: o, ...s }) => /* @__PURE__ */ i("nav", {
11
11
  className: e,
12
- ...c,
12
+ ...s,
13
13
  children: /* @__PURE__ */ i("ul", {
14
14
  className: h.rootList,
15
- children: /* @__PURE__ */ i(s, {
15
+ children: /* @__PURE__ */ i(l, {
16
16
  items: t,
17
17
  children: n,
18
18
  dependencies: r,
@@ -41,13 +41,13 @@ import '../assets/navigation.css';var h = { rootList: "_rootList_l3v98_1" }, g =
41
41
  collapsed: "_collapsed_7oo3n_51",
42
42
  navbar: "_navbar_7oo3n_56",
43
43
  title: "_title_7oo3n_85"
44
- }, S = ({ as: r, children: s, className: d, isActive: h, isDisabled: g, icon: _, "aria-label": v, ...y }) => {
45
- let b = o(e), S = o(t), C = o(n), w = S?.isCollapsed, T = o(u), E = r || l, D = () => {
44
+ }, S = ({ as: r, children: l, className: d, isActive: h, isDisabled: g, icon: _, "aria-label": v, ...y }) => {
45
+ let b = o(e), S = o(t), C = o(n), w = S?.isCollapsed, T = o(c), E = r || s, D = () => {
46
46
  T?.isOpen && T?.setOpen(!1);
47
- }, O = typeof s == "string" ? s : void 0;
47
+ }, O = typeof l == "string" ? l : void 0;
48
48
  return !O && !v && process.env.NODE_ENV !== "production" && console.warn("An 'aria-label' is required for <NavigationLink> elements with non plain text children"), /* @__PURE__ */ a(p, {
49
49
  isDisabled: !w || !O && !v,
50
- children: [/* @__PURE__ */ i(c, { children: /* @__PURE__ */ a(E, {
50
+ children: [/* @__PURE__ */ i(u, { children: /* @__PURE__ */ a(E, {
51
51
  "aria-current": h && "page",
52
52
  "aria-label": v || (w ? O : void 0),
53
53
  className: m(d, x.navigationLink, {
@@ -72,7 +72,7 @@ import '../assets/navigation.css';var h = { rootList: "_rootList_l3v98_1" }, g =
72
72
  ...y,
73
73
  children: [_, /* @__PURE__ */ i("span", {
74
74
  className: x.title,
75
- children: s
75
+ children: l
76
76
  })]
77
77
  }) }), /* @__PURE__ */ i(f, {
78
78
  placement: "right",
@@ -82,22 +82,22 @@ import '../assets/navigation.css';var h = { rootList: "_rootList_l3v98_1" }, g =
82
82
  }, C = {
83
83
  navigationSection: "_navigationSection_1ae77_1",
84
84
  collapsed: "_collapsed_1ae77_5"
85
- }, w = ({ className: e, title: n, ...c }) => {
86
- let l = o(t);
85
+ }, w = ({ className: e, title: n, ...s }) => {
86
+ let c = o(t);
87
87
  return /* @__PURE__ */ a(b, { children: [n && /* @__PURE__ */ i(v, { children: n }), /* @__PURE__ */ i("ul", {
88
- className: r(e, C.navigationSection, { [C.collapsed]: l?.isCollapsed }),
89
- children: /* @__PURE__ */ i(s, { ...c })
88
+ className: r(e, C.navigationSection, { [C.collapsed]: c?.isCollapsed }),
89
+ children: /* @__PURE__ */ i(l, { ...s })
90
90
  })] });
91
91
  }, T = {
92
92
  navigationSubMenu: "_navigationSubMenu_vfyl6_1",
93
93
  collapsed: "_collapsed_vfyl6_5"
94
- }, E = ({ className: e, children: n, items: a, ...c }) => {
95
- let l = o(t), { length: u } = Array.from(a || []);
94
+ }, E = ({ className: e, children: n, items: a, ...s }) => {
95
+ let c = o(t), { length: u } = Array.from(a || []);
96
96
  return typeof n == "function" && u === 0 ? null : /* @__PURE__ */ i("ul", {
97
- className: r(e, T.navigationSubMenu, { [T.collapsed]: l?.isCollapsed }),
98
- children: /* @__PURE__ */ i(s, {
97
+ className: r(e, T.navigationSubMenu, { [T.collapsed]: c?.isCollapsed }),
98
+ children: /* @__PURE__ */ i(l, {
99
99
  items: a,
100
- ...c,
100
+ ...s,
101
101
  children: n
102
102
  })
103
103
  });
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./chunks/header-msrwRHLy.js";
2
2
  import { n as s, t as c } from "./chunks/layout-B9FJji-i.js";
3
3
  import { t as l } from "./chunks/main-_ZnOv-d9.js";
4
- import { a as u, i as d, n as f, o as p, r as m, t as h } from "./chunks/navigation-C4lY3XMx.js";
4
+ import { a as u, i as d, n as f, o as p, r as m, t as h } from "./chunks/navigation-t4vonwU0.js";
5
5
  import { a as g, c as _, i as v, l as y, n as b, o as x, r as S, s as C, t as w, u as T } from "./chunks/panel-ODC_0wSA.js";
6
6
  import { n as E, t as D } from "./chunks/sidebar-DCkpA9Co.js";
7
7
  import { n as O, t as k } from "./chunks/navbar-DbRci-zw.js";
@@ -1 +1 @@
1
- export { o as Navigation, a as NavigationHeader, i as NavigationItem, r as NavigationLink, n as NavigationSection, t as NavigationSubMenu } from "../chunks/navigation-C4lY3XMx.js";
1
+ export { o as Navigation, a as NavigationHeader, i as NavigationItem, r as NavigationLink, n as NavigationSection, t as NavigationSubMenu } from "../chunks/navigation-t4vonwU0.js";
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Layout components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "0.2.65",
17
+ "version": "0.2.66",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",
@@ -41,7 +41,7 @@
41
41
  "react-dom": "^18.3.1 || ^19.0.0"
42
42
  },
43
43
  "dependencies": {
44
- "@midas-ds/components": "17.33.7",
44
+ "@midas-ds/components": "17.34.0",
45
45
  "@react-aria/utils": "3.34.1",
46
46
  "@react-stately/utils": "3.12.1",
47
47
  "lucide-react": ">=0.563.0 <2.0.0",