@liiift-studio/mac-os9-ui 0.2.24 → 0.2.26
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/dist/index.cjs +106 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/index.js +106 -11
- package/dist/index.js.map +1 -1
- package/dist/types/components/Window/Window.d.ts +26 -0
- package/package.json +1 -1
|
@@ -84,6 +84,32 @@ export interface WindowProps {
|
|
|
84
84
|
* @default false
|
|
85
85
|
*/
|
|
86
86
|
resizable?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Minimum width when resizing
|
|
89
|
+
* @default 200
|
|
90
|
+
*/
|
|
91
|
+
minWidth?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Minimum height when resizing
|
|
94
|
+
* @default 100
|
|
95
|
+
*/
|
|
96
|
+
minHeight?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Maximum width when resizing
|
|
99
|
+
*/
|
|
100
|
+
maxWidth?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Maximum height when resizing
|
|
103
|
+
*/
|
|
104
|
+
maxHeight?: number;
|
|
105
|
+
/**
|
|
106
|
+
* Callback when window is resized
|
|
107
|
+
* Only called when resizable is true
|
|
108
|
+
*/
|
|
109
|
+
onResize?: (size: {
|
|
110
|
+
width: number;
|
|
111
|
+
height: number;
|
|
112
|
+
}) => void;
|
|
87
113
|
/**
|
|
88
114
|
* Whether the window can be dragged by its title bar
|
|
89
115
|
* Window starts in normal flow and becomes absolutely positioned when dragged
|