@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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liiift-studio/mac-os9-ui",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "description": "A pixel-perfect Mac OS 9 UI component library for React and TypeScript",
5
5
  "private": false,
6
6
  "sideEffects": [