@zag-js/splitter 1.18.4 → 1.19.0
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.d.mts +28 -28
- package/dist/index.d.ts +28 -28
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -49,9 +49,9 @@ interface ExpandCollapseDetails {
|
|
|
49
49
|
}
|
|
50
50
|
type ElementIds = Partial<{
|
|
51
51
|
root: string;
|
|
52
|
-
resizeTrigger(id: string)
|
|
53
|
-
label(id: string)
|
|
54
|
-
panel(id: string | number)
|
|
52
|
+
resizeTrigger: (id: string) => string;
|
|
53
|
+
label: (id: string) => string;
|
|
54
|
+
panel: (id: string | number) => string;
|
|
55
55
|
}>;
|
|
56
56
|
interface SplitterProps extends DirectionProperty, CommonProperties {
|
|
57
57
|
/**
|
|
@@ -163,52 +163,52 @@ interface SplitterApi<T extends PropTypes = PropTypes> {
|
|
|
163
163
|
*/
|
|
164
164
|
dragging: boolean;
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Returns the current sizes of the panels.
|
|
167
167
|
*/
|
|
168
|
-
getSizes()
|
|
168
|
+
getSizes: () => number[];
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Sets the sizes of the panels.
|
|
171
171
|
*/
|
|
172
|
-
setSizes(size: number[])
|
|
172
|
+
setSizes: (size: number[]) => void;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* Returns the items of the splitter.
|
|
175
175
|
*/
|
|
176
|
-
getItems()
|
|
176
|
+
getItems: () => SplitterItem[];
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* Returns the size of the specified panel.
|
|
179
179
|
*/
|
|
180
|
-
getPanelSize(id: PanelId)
|
|
180
|
+
getPanelSize: (id: PanelId) => number;
|
|
181
181
|
/**
|
|
182
|
-
*
|
|
182
|
+
* Returns whether the specified panel is collapsed.
|
|
183
183
|
*/
|
|
184
|
-
isPanelCollapsed(id: PanelId)
|
|
184
|
+
isPanelCollapsed: (id: PanelId) => boolean;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* Returns whether the specified panel is expanded.
|
|
187
187
|
*/
|
|
188
|
-
isPanelExpanded(id: PanelId)
|
|
188
|
+
isPanelExpanded: (id: PanelId) => boolean;
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Collapses the specified panel.
|
|
191
191
|
*/
|
|
192
|
-
collapsePanel(id: PanelId)
|
|
192
|
+
collapsePanel: (id: PanelId) => void;
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* Expands the specified panel.
|
|
195
195
|
*/
|
|
196
|
-
expandPanel(id: PanelId, minSize?: number)
|
|
196
|
+
expandPanel: (id: PanelId, minSize?: number) => void;
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* Resizes the specified panel.
|
|
199
199
|
*/
|
|
200
|
-
resizePanel(id: PanelId, unsafePanelSize: number)
|
|
200
|
+
resizePanel: (id: PanelId, unsafePanelSize: number) => void;
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
202
|
+
* Returns the layout of the splitter.
|
|
203
203
|
*/
|
|
204
|
-
getLayout()
|
|
204
|
+
getLayout: () => string;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
* Resets the splitter to its initial state.
|
|
207
207
|
*/
|
|
208
|
-
resetSizes
|
|
209
|
-
getRootProps()
|
|
210
|
-
getPanelProps(props: PanelProps)
|
|
211
|
-
getResizeTriggerProps(props: ResizeTriggerProps)
|
|
208
|
+
resetSizes: VoidFunction;
|
|
209
|
+
getRootProps: () => T["element"];
|
|
210
|
+
getPanelProps: (props: PanelProps) => T["element"];
|
|
211
|
+
getResizeTriggerProps: (props: ResizeTriggerProps) => T["element"];
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
declare function connect<T extends PropTypes>(service: SplitterService, normalize: NormalizeProps<T>): SplitterApi<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,9 +49,9 @@ interface ExpandCollapseDetails {
|
|
|
49
49
|
}
|
|
50
50
|
type ElementIds = Partial<{
|
|
51
51
|
root: string;
|
|
52
|
-
resizeTrigger(id: string)
|
|
53
|
-
label(id: string)
|
|
54
|
-
panel(id: string | number)
|
|
52
|
+
resizeTrigger: (id: string) => string;
|
|
53
|
+
label: (id: string) => string;
|
|
54
|
+
panel: (id: string | number) => string;
|
|
55
55
|
}>;
|
|
56
56
|
interface SplitterProps extends DirectionProperty, CommonProperties {
|
|
57
57
|
/**
|
|
@@ -163,52 +163,52 @@ interface SplitterApi<T extends PropTypes = PropTypes> {
|
|
|
163
163
|
*/
|
|
164
164
|
dragging: boolean;
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Returns the current sizes of the panels.
|
|
167
167
|
*/
|
|
168
|
-
getSizes()
|
|
168
|
+
getSizes: () => number[];
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Sets the sizes of the panels.
|
|
171
171
|
*/
|
|
172
|
-
setSizes(size: number[])
|
|
172
|
+
setSizes: (size: number[]) => void;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* Returns the items of the splitter.
|
|
175
175
|
*/
|
|
176
|
-
getItems()
|
|
176
|
+
getItems: () => SplitterItem[];
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* Returns the size of the specified panel.
|
|
179
179
|
*/
|
|
180
|
-
getPanelSize(id: PanelId)
|
|
180
|
+
getPanelSize: (id: PanelId) => number;
|
|
181
181
|
/**
|
|
182
|
-
*
|
|
182
|
+
* Returns whether the specified panel is collapsed.
|
|
183
183
|
*/
|
|
184
|
-
isPanelCollapsed(id: PanelId)
|
|
184
|
+
isPanelCollapsed: (id: PanelId) => boolean;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* Returns whether the specified panel is expanded.
|
|
187
187
|
*/
|
|
188
|
-
isPanelExpanded(id: PanelId)
|
|
188
|
+
isPanelExpanded: (id: PanelId) => boolean;
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Collapses the specified panel.
|
|
191
191
|
*/
|
|
192
|
-
collapsePanel(id: PanelId)
|
|
192
|
+
collapsePanel: (id: PanelId) => void;
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* Expands the specified panel.
|
|
195
195
|
*/
|
|
196
|
-
expandPanel(id: PanelId, minSize?: number)
|
|
196
|
+
expandPanel: (id: PanelId, minSize?: number) => void;
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* Resizes the specified panel.
|
|
199
199
|
*/
|
|
200
|
-
resizePanel(id: PanelId, unsafePanelSize: number)
|
|
200
|
+
resizePanel: (id: PanelId, unsafePanelSize: number) => void;
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
202
|
+
* Returns the layout of the splitter.
|
|
203
203
|
*/
|
|
204
|
-
getLayout()
|
|
204
|
+
getLayout: () => string;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
* Resets the splitter to its initial state.
|
|
207
207
|
*/
|
|
208
|
-
resetSizes
|
|
209
|
-
getRootProps()
|
|
210
|
-
getPanelProps(props: PanelProps)
|
|
211
|
-
getResizeTriggerProps(props: ResizeTriggerProps)
|
|
208
|
+
resetSizes: VoidFunction;
|
|
209
|
+
getRootProps: () => T["element"];
|
|
210
|
+
getPanelProps: (props: PanelProps) => T["element"];
|
|
211
|
+
getResizeTriggerProps: (props: ResizeTriggerProps) => T["element"];
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
declare function connect<T extends PropTypes>(service: SplitterService, normalize: NormalizeProps<T>): SplitterApi<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/splitter",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "Core logic for the splitter widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@zag-js/anatomy": "1.
|
|
31
|
-
"@zag-js/core": "1.
|
|
32
|
-
"@zag-js/types": "1.
|
|
33
|
-
"@zag-js/dom-query": "1.
|
|
34
|
-
"@zag-js/utils": "1.
|
|
30
|
+
"@zag-js/anatomy": "1.19.0",
|
|
31
|
+
"@zag-js/core": "1.19.0",
|
|
32
|
+
"@zag-js/types": "1.19.0",
|
|
33
|
+
"@zag-js/dom-query": "1.19.0",
|
|
34
|
+
"@zag-js/utils": "1.19.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|