@midas-ds/layout 0.2.13 → 0.2.14
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 +10 -0
- package/assets/sidebar.css +1 -1
- package/chunks/{navigation-CTvX1yRi.js → navigation-C7-tspse.js} +1 -1
- package/chunks/{sidebar-c0uIh8ge.js → sidebar-Dq4ivTMY.js} +6 -6
- package/index.js +2 -2
- package/navigation/index.js +1 -1
- package/package.json +2 -2
- package/sidebar/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.2.14 (2026-08-14)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **components,badge:** pin badge to icon corner in width-constrained containers ([b1d8e302d10](https://github.com/migrationsverket/midas/commit/b1d8e302d10))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated components to 17.20.0
|
|
10
|
+
|
|
1
11
|
## 0.2.13 (2026-08-13)
|
|
2
12
|
|
|
3
13
|
### 🧱 Updated Dependencies
|
package/assets/sidebar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._sidebar_1jo8l_1{background-color:var(--midas-background-base);border-right:1px solid var(--midas-border-color-subtle);transition:width var(--midas-transition-duration-fast) ease-out;flex-shrink:0;width:300px}._sidebar_1jo8l_1._collapsed_1jo8l_8{width:calc(var(--midas-size-icon) + 4 * var(--midas-space-small))}@media (width<=640px){._sidebar_1jo8l_1{display:none}}._sidebarHeader_1jo8l_17{transition:padding-left var(--midas-transition-duration-fast) ease-out;gap:0}._sidebarHeader_1jo8l_17._collapsed_1jo8l_8{padding-left:var(--midas-space-30)}._sidebarTitle_1jo8l_26{font-size:var(--midas-typography-font-size-30);font-weight:var(--midas-typography-weight-semi-bold);line-height:var(--midas-typography-line-height-50);white-space:nowrap;max-width:100%;transition:max-width var(--midas-transition-duration-fast) ease-out, opacity var(--midas-transition-duration-fast) ease-out;display:block;overflow:hidden}._sidebarTitle_1jo8l_26._collapsed_1jo8l_8{opacity:0;max-width:0}._collapseButton_1jo8l_44{display:inline-flex}._collapseButton_1jo8l_44._collapsed_1jo8l_8{transform:scaleX(-1)}._sidebarContent_1jo8l_52{padding:var(--midas-space-small)}@media (prefers-reduced-motion:reduce){._sidebar_1jo8l_1,._sidebarHeader_1jo8l_17,._sidebarTitle_1jo8l_26{transition:none}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clsx-CbxlCXZ3.js";
|
|
3
3
|
import { r as t } from "./header-5ItL8E3-.js";
|
|
4
|
-
import { n } from "./sidebar-
|
|
4
|
+
import { n } from "./sidebar-Dq4ivTMY.js";
|
|
5
5
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
import { useContext as a } from "react";
|
|
7
7
|
import { Collection as o, Focusable as s, Link as c, OverlayTriggerStateContext as l } from "react-aria-components";
|
|
@@ -35,12 +35,12 @@ import '../assets/sidebar.css';var h = t("panel-left-close", [
|
|
|
35
35
|
collapseSidebar: "Minimera sidopanel"
|
|
36
36
|
}
|
|
37
37
|
}, _ = u(void 0), v = {
|
|
38
|
-
sidebar: "
|
|
39
|
-
collapsed: "
|
|
40
|
-
sidebarHeader: "
|
|
41
|
-
sidebarTitle: "
|
|
42
|
-
collapseButton: "
|
|
43
|
-
sidebarContent: "
|
|
38
|
+
sidebar: "_sidebar_1jo8l_1",
|
|
39
|
+
collapsed: "_collapsed_1jo8l_8",
|
|
40
|
+
sidebarHeader: "_sidebarHeader_1jo8l_17",
|
|
41
|
+
sidebarTitle: "_sidebarTitle_1jo8l_26",
|
|
42
|
+
collapseButton: "_collapseButton_1jo8l_44",
|
|
43
|
+
sidebarContent: "_sidebarContent_1jo8l_52"
|
|
44
44
|
}, y = ({ children: t, className: u, title: y, ...b }) => {
|
|
45
45
|
let x = f(g), S = o(), [C, w] = p(b.isCollapsed, b.defaultCollapsed || !1, b.onCollapseChange), [T, E] = l.useState(!1), D = () => {
|
|
46
46
|
E(!0), w((e) => !e);
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-5ItL8E3-.js";
|
|
2
|
-
import { n as s, t as c } from "./chunks/sidebar-
|
|
2
|
+
import { n as s, t as c } from "./chunks/sidebar-Dq4ivTMY.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-CJr6C1-h.js";
|
|
4
4
|
import { n as y, t as b } from "./chunks/layout-BL0juoss.js";
|
|
5
5
|
import { t as x } from "./chunks/main-BHQLIt4r.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-C7-tspse.js";
|
|
7
7
|
import { t as O } from "./chunks/navbar-C63VGKFb.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, O as Navbar, 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-C7-tspse.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.14",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"./*": "./*/index.js"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@midas-ds/components": "17.
|
|
40
|
+
"@midas-ds/components": "17.20.0",
|
|
41
41
|
"@react-aria/collections": "^3.0.3",
|
|
42
42
|
"@react-aria/utils": "^3.33.1",
|
|
43
43
|
"@react-stately/utils": "^3.11.0"
|
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-Dq4ivTMY.js";
|
|
2
2
|
export { t as Sidebar, e as SidebarContext };
|