@midas-ds/layout 0.2.33 → 0.2.35
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 +20 -0
- package/chunks/{header-5ItL8E3-.js → header-BltmIBxL.js} +1 -1
- package/chunks/{navigation-D2t2tspT.js → navigation-3ushsAQf.js} +2 -2
- package/chunks/{sidebar-B59uaWIo.js → sidebar-HGfteIDk.js} +1 -1
- package/chunks/utils-In-o3O3t.js +39 -0
- package/header/index.js +1 -1
- package/index.js +3 -3
- package/navigation/index.js +1 -1
- package/package.json +7 -5
- package/sidebar/index.js +1 -1
- package/utils/index.js +1 -1
- package/chunks/utils-B0BlrR1T.js +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 0.2.35 (2026-09-17)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated components to 17.24.0
|
|
6
|
+
|
|
7
|
+
## 0.2.34 (2026-09-17)
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- **layout:** externalize shared dependencies ([e44cc511364](https://github.com/migrationsverket/midas/commit/e44cc511364))
|
|
12
|
+
|
|
13
|
+
### 🔧 Maintenance
|
|
14
|
+
|
|
15
|
+
- **layout:** configure @nx/dependency-checks ([c29e20fcf93](https://github.com/migrationsverket/midas/commit/c29e20fcf93))
|
|
16
|
+
|
|
17
|
+
### 🧱 Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated components to 17.23.9
|
|
20
|
+
|
|
1
21
|
## 0.2.33 (2026-09-08)
|
|
2
22
|
|
|
3
23
|
### 🧱 Updated Dependencies
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clsx-CbxlCXZ3.js";
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
|
-
import { t as n } from "./utils-
|
|
4
|
+
import { t as n } from "./utils-In-o3O3t.js";
|
|
5
5
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import { createContext as o, forwardRef as s } from "react";
|
|
7
7
|
import { Dialog as c, Modal as l, composeRenderProps as u } from "react-aria-components";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clsx-CbxlCXZ3.js";
|
|
3
|
-
import { r as t } from "./header-
|
|
4
|
-
import { n } from "./sidebar-
|
|
3
|
+
import { r as t } from "./header-BltmIBxL.js";
|
|
4
|
+
import { n } from "./sidebar-HGfteIDk.js";
|
|
5
5
|
import { n as r } from "./navbar-DWupsHC1.js";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
import { useContext as o } from "react";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as e } from "./clsx-CbxlCXZ3.js";
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
4
|
import { c as n, l as r, s as i, u as a } from "./panel-C16S0Sww.js";
|
|
5
|
-
import { t as o } from "./utils-
|
|
5
|
+
import { t as o } from "./utils-In-o3O3t.js";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import l, { createContext as u } from "react";
|
|
8
8
|
import { Button as d, useLocalizedStringFormatter as f } from "@midas-ds/components";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import e, { useContext as t, useEffect as n, useState as r } from "react";
|
|
3
|
+
String(Math.round(Math.random() * 1e10));
|
|
4
|
+
//#region ../../node_modules/@react-aria/ssr/dist/SSRProvider.mjs
|
|
5
|
+
var i = /*#__PURE__*/ e.createContext(!1);
|
|
6
|
+
typeof window < "u" && window.document && window.document.createElement, e.useId;
|
|
7
|
+
function a() {
|
|
8
|
+
return !1;
|
|
9
|
+
}
|
|
10
|
+
function o() {
|
|
11
|
+
return !0;
|
|
12
|
+
}
|
|
13
|
+
function s(e) {
|
|
14
|
+
return () => {};
|
|
15
|
+
}
|
|
16
|
+
function c() {
|
|
17
|
+
return typeof e.useSyncExternalStore == "function" ? e.useSyncExternalStore(s, a, o) : t(i);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../../node_modules/@react-spectrum/utils/dist/useMediaQuery.mjs
|
|
21
|
+
function l(e) {
|
|
22
|
+
let t = typeof window < "u" && typeof window.matchMedia == "function", [i, a] = r(() => t ? window.matchMedia(e).matches : !1);
|
|
23
|
+
return n(() => {
|
|
24
|
+
if (!t) return;
|
|
25
|
+
let n = window.matchMedia(e), r = (e) => {
|
|
26
|
+
a(e.matches);
|
|
27
|
+
};
|
|
28
|
+
return n.addListener(r), () => {
|
|
29
|
+
n.removeListener(r);
|
|
30
|
+
};
|
|
31
|
+
}, [t, e]), c() ? !1 : i;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/utils/useIsMobileDevice.ts
|
|
35
|
+
function u() {
|
|
36
|
+
return l("(max-width: 640px)");
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { u as t };
|
package/header/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../chunks/header-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../chunks/header-BltmIBxL.js";
|
|
2
2
|
export { o as Header, r as HeaderAction, a as HeaderActions, e as HeaderLogo, t as HeaderTitle, n as MobileMenu, i as MobileMenuContext };
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./chunks/header-
|
|
2
|
-
import { n as s, t as c } from "./chunks/sidebar-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./chunks/header-BltmIBxL.js";
|
|
2
|
+
import { n as s, t as c } from "./chunks/sidebar-HGfteIDk.js";
|
|
3
3
|
import { a as l, c as u, i as d, l as f, n as p, o as m, r as h, s as g, t as _, u as v } from "./chunks/panel-C16S0Sww.js";
|
|
4
4
|
import { n as y, t as b } from "./chunks/layout-4Fc6PGCm.js";
|
|
5
5
|
import { t as x } from "./chunks/main-C-aHrwYe.js";
|
|
6
|
-
import { a as S, i as C, n as w, o as T, r as E, t as D } from "./chunks/navigation-
|
|
6
|
+
import { a as S, i as C, n as w, o as T, r as E, t as D } from "./chunks/navigation-3ushsAQf.js";
|
|
7
7
|
import { n as O, t as k } from "./chunks/navbar-DWupsHC1.js";
|
|
8
8
|
export { o as Header, r as HeaderAction, a as HeaderActions, e as HeaderLogo, t as HeaderTitle, y as Layout, b as LayoutContent, x as Main, n as MobileMenu, i as MobileMenuContext, k as Navbar, O as NavbarContext, T as Navigation, S as NavigationHeader, C as NavigationItem, E as NavigationLink, w as NavigationSection, D as NavigationSubMenu, m as Panel, v as PanelBody, f as PanelContent, d as PanelContext, u as PanelHeader, h as PanelProvider, _ as PanelRegion, g as PanelTitle, c as Sidebar, s as SidebarContext, l as UsePanels, p as usePanels };
|
package/navigation/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/navigation-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/navigation-3ushsAQf.js";
|
|
2
2
|
export { r as Navigation, e as NavigationHeader, t as NavigationItem, i as NavigationLink, n as NavigationSection, a as NavigationSubMenu };
|
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.
|
|
17
|
+
"version": "0.2.35",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -36,12 +36,14 @@
|
|
|
36
36
|
"./*/index.js": "./*/index.js",
|
|
37
37
|
"./*": "./*/index.js"
|
|
38
38
|
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
41
|
+
"react-dom": "^18.3.1 || ^19.0.0"
|
|
42
|
+
},
|
|
39
43
|
"dependencies": {
|
|
40
|
-
"@midas-ds/components": "17.
|
|
41
|
-
"@react-aria/collections": "^3.0.3",
|
|
42
|
-
"@react-aria/ssr": "^3.9.10",
|
|
44
|
+
"@midas-ds/components": "17.24.0",
|
|
43
45
|
"@react-aria/utils": "^3.33.1",
|
|
44
|
-
"@react-stately/utils": "^3.
|
|
46
|
+
"@react-stately/utils": "^3.12.1",
|
|
45
47
|
"react-aria-components": "1.20.0"
|
|
46
48
|
}
|
|
47
49
|
}
|
package/sidebar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/sidebar-
|
|
1
|
+
import { n as e, t } from "../chunks/sidebar-HGfteIDk.js";
|
|
2
2
|
export { t as Sidebar, e as SidebarContext };
|
package/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/utils-
|
|
1
|
+
import { t as e } from "../chunks/utils-In-o3O3t.js";
|
|
2
2
|
export { e as useIsMobileDevice };
|
package/chunks/utils-B0BlrR1T.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { useEffect as e, useState as t } from "react";
|
|
3
|
-
import { useIsSSR as n } from "@react-aria/ssr";
|
|
4
|
-
//#region ../../node_modules/@react-spectrum/utils/dist/useMediaQuery.mjs
|
|
5
|
-
function r(r) {
|
|
6
|
-
let i = typeof window < "u" && typeof window.matchMedia == "function", [a, o] = t(() => i ? window.matchMedia(r).matches : !1);
|
|
7
|
-
return e(() => {
|
|
8
|
-
if (!i) return;
|
|
9
|
-
let e = window.matchMedia(r), t = (e) => {
|
|
10
|
-
o(e.matches);
|
|
11
|
-
};
|
|
12
|
-
return e.addListener(t), () => {
|
|
13
|
-
e.removeListener(t);
|
|
14
|
-
};
|
|
15
|
-
}, [i, r]), n() ? !1 : a;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/utils/useIsMobileDevice.ts
|
|
19
|
-
function i() {
|
|
20
|
-
return r("(max-width: 640px)");
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { i as t };
|