@midas-ds/layout 0.2.15 → 0.2.17
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 +12 -0
- package/package.json +2 -2
- package/sidebar/Sidebar.d.ts +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.2.17 (2026-08-18)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **layout,sidebar:** widen style prop type to accept CSS custom properties ([2d038fffe8d](https://github.com/migrationsverket/midas/commit/2d038fffe8d))
|
|
6
|
+
|
|
7
|
+
## 0.2.16 (2026-08-18)
|
|
8
|
+
|
|
9
|
+
### 🧱 Updated Dependencies
|
|
10
|
+
|
|
11
|
+
- Updated components to 17.21.0
|
|
12
|
+
|
|
1
13
|
## 0.2.15 (2026-08-17)
|
|
2
14
|
|
|
3
15
|
### 🩹 Fixes
|
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.17",
|
|
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.21.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/Sidebar.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
import { PanelBodyProps } from '../panel';
|
|
2
|
-
|
|
3
|
+
type CSSPropertiesWithCustomProperties = CSSProperties & {
|
|
4
|
+
[key: `--${string}`]: string | number | undefined;
|
|
5
|
+
};
|
|
6
|
+
export interface SidebarProps extends Omit<PanelBodyProps, 'style'> {
|
|
3
7
|
title: string;
|
|
4
8
|
isCollapsed?: boolean;
|
|
5
9
|
defaultCollapsed?: boolean;
|
|
6
10
|
onCollapseChange?: (isCollapsed: boolean) => void;
|
|
11
|
+
style?: CSSPropertiesWithCustomProperties;
|
|
7
12
|
}
|
|
8
13
|
export declare const Sidebar: ({ children, className, title, ...props }: SidebarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export {};
|