@midas-ds/layout 0.2.16 → 0.2.18
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,19 @@
|
|
|
1
|
+
## 0.2.18 (2026-08-18)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **layout,navigation-section:** use type intersection instead of interface extends for props ([335fc8f437c](https://github.com/migrationsverket/midas/commit/335fc8f437c))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated components to 17.21.1
|
|
10
|
+
|
|
11
|
+
## 0.2.17 (2026-08-18)
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
- **layout,sidebar:** widen style prop type to accept CSS custom properties ([2d038fffe8d](https://github.com/migrationsverket/midas/commit/2d038fffe8d))
|
|
16
|
+
|
|
1
17
|
## 0.2.16 (2026-08-18)
|
|
2
18
|
|
|
3
19
|
### 🧱 Updated Dependencies
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CollectionProps } from 'react-aria-components';
|
|
2
|
-
export
|
|
2
|
+
export type NavigationSectionProps<T extends object> = CollectionProps<T> & {
|
|
3
3
|
title?: string;
|
|
4
4
|
className?: string;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
export declare const NavigationSection: <T extends object>({ className, title, ...rest }: NavigationSectionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
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.18",
|
|
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.21.
|
|
40
|
+
"@midas-ds/components": "17.21.1",
|
|
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 {};
|