@zag-js/splitter 1.9.2 → 1.10.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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -202,6 +202,10 @@ interface SplitterApi<T extends PropTypes = PropTypes> {
|
|
|
202
202
|
* Get the layout of the splitter.
|
|
203
203
|
*/
|
|
204
204
|
getLayout(): string;
|
|
205
|
+
/**
|
|
206
|
+
* Reset the splitter to its initial state.
|
|
207
|
+
*/
|
|
208
|
+
resetSizes(): void;
|
|
205
209
|
getRootProps(): T["element"];
|
|
206
210
|
getPanelProps(props: PanelProps): T["element"];
|
|
207
211
|
getResizeTriggerProps(props: ResizeTriggerProps): T["element"];
|
package/dist/index.d.ts
CHANGED
|
@@ -202,6 +202,10 @@ interface SplitterApi<T extends PropTypes = PropTypes> {
|
|
|
202
202
|
* Get the layout of the splitter.
|
|
203
203
|
*/
|
|
204
204
|
getLayout(): string;
|
|
205
|
+
/**
|
|
206
|
+
* Reset the splitter to its initial state.
|
|
207
|
+
*/
|
|
208
|
+
resetSizes(): void;
|
|
205
209
|
getRootProps(): T["element"];
|
|
206
210
|
getPanelProps(props: PanelProps): T["element"];
|
|
207
211
|
getResizeTriggerProps(props: ResizeTriggerProps): T["element"];
|
package/dist/index.js
CHANGED
|
@@ -255,6 +255,9 @@ function connect(service, normalize) {
|
|
|
255
255
|
setSizes(size) {
|
|
256
256
|
send({ type: "SIZE.SET", size });
|
|
257
257
|
},
|
|
258
|
+
resetSizes() {
|
|
259
|
+
send({ type: "SIZE.SET", size: context.initial("size") });
|
|
260
|
+
},
|
|
258
261
|
collapsePanel(id) {
|
|
259
262
|
send({ type: "PANEL.COLLAPSE", id });
|
|
260
263
|
},
|
|
@@ -400,7 +403,7 @@ function connect(service, normalize) {
|
|
|
400
403
|
send({ type: "ENTER", id });
|
|
401
404
|
},
|
|
402
405
|
ArrowUp() {
|
|
403
|
-
send({ type: "KEYBOARD_MOVE", id, delta: horizontal ? 0 : delta });
|
|
406
|
+
send({ type: "KEYBOARD_MOVE", id, delta: horizontal ? 0 : -delta });
|
|
404
407
|
},
|
|
405
408
|
ArrowDown() {
|
|
406
409
|
send({ type: "KEYBOARD_MOVE", id, delta: horizontal ? 0 : delta });
|
package/dist/index.mjs
CHANGED
|
@@ -253,6 +253,9 @@ function connect(service, normalize) {
|
|
|
253
253
|
setSizes(size) {
|
|
254
254
|
send({ type: "SIZE.SET", size });
|
|
255
255
|
},
|
|
256
|
+
resetSizes() {
|
|
257
|
+
send({ type: "SIZE.SET", size: context.initial("size") });
|
|
258
|
+
},
|
|
256
259
|
collapsePanel(id) {
|
|
257
260
|
send({ type: "PANEL.COLLAPSE", id });
|
|
258
261
|
},
|
|
@@ -398,7 +401,7 @@ function connect(service, normalize) {
|
|
|
398
401
|
send({ type: "ENTER", id });
|
|
399
402
|
},
|
|
400
403
|
ArrowUp() {
|
|
401
|
-
send({ type: "KEYBOARD_MOVE", id, delta: horizontal ? 0 : delta });
|
|
404
|
+
send({ type: "KEYBOARD_MOVE", id, delta: horizontal ? 0 : -delta });
|
|
402
405
|
},
|
|
403
406
|
ArrowDown() {
|
|
404
407
|
send({ type: "KEYBOARD_MOVE", id, delta: horizontal ? 0 : delta });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/splitter",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.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.10.0",
|
|
31
|
+
"@zag-js/core": "1.10.0",
|
|
32
|
+
"@zag-js/types": "1.10.0",
|
|
33
|
+
"@zag-js/dom-query": "1.10.0",
|
|
34
|
+
"@zag-js/utils": "1.10.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|