@window-splitter/react 0.8.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/.storybook/main.ts +17 -0
- package/.storybook/preview.ts +14 -0
- package/.tshy/build.json +8 -0
- package/.tshy/commonjs.json +19 -0
- package/.tshy/esm.json +18 -0
- package/.turbo/turbo-build.log +5 -0
- package/.turbo/turbo-lint.log +5 -0
- package/CHANGELOG.md +606 -0
- package/README.md +53 -0
- package/dist/commonjs/ReactWindowSplitter.d.ts +19 -0
- package/dist/commonjs/ReactWindowSplitter.d.ts.map +1 -0
- package/dist/commonjs/ReactWindowSplitter.js +558 -0
- package/dist/commonjs/ReactWindowSplitter.js.map +1 -0
- package/dist/commonjs/ReactWindowSplitter.stories.d.ts +47 -0
- package/dist/commonjs/ReactWindowSplitter.stories.d.ts.map +1 -0
- package/dist/commonjs/ReactWindowSplitter.stories.js +330 -0
- package/dist/commonjs/ReactWindowSplitter.stories.js.map +1 -0
- package/dist/commonjs/ReactWindowSplitter.test.d.ts +2 -0
- package/dist/commonjs/ReactWindowSplitter.test.d.ts.map +1 -0
- package/dist/commonjs/ReactWindowSplitter.test.js +219 -0
- package/dist/commonjs/ReactWindowSplitter.test.js.map +1 -0
- package/dist/commonjs/bundle.size.d.ts +2 -0
- package/dist/commonjs/bundle.size.d.ts.map +1 -0
- package/dist/commonjs/bundle.size.js +29 -0
- package/dist/commonjs/bundle.size.js.map +1 -0
- package/dist/commonjs/index.d.ts +3 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +18 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/useIndexedChildren.d.ts +8 -0
- package/dist/commonjs/useIndexedChildren.d.ts.map +1 -0
- package/dist/commonjs/useIndexedChildren.js +81 -0
- package/dist/commonjs/useIndexedChildren.js.map +1 -0
- package/dist/commonjs/useMove.d.ts +8 -0
- package/dist/commonjs/useMove.d.ts.map +1 -0
- package/dist/commonjs/useMove.js +19 -0
- package/dist/commonjs/useMove.js.map +1 -0
- package/dist/esm/ReactWindowSplitter.d.ts +19 -0
- package/dist/esm/ReactWindowSplitter.d.ts.map +1 -0
- package/dist/esm/ReactWindowSplitter.js +532 -0
- package/dist/esm/ReactWindowSplitter.js.map +1 -0
- package/dist/esm/ReactWindowSplitter.stories.d.ts +47 -0
- package/dist/esm/ReactWindowSplitter.stories.d.ts.map +1 -0
- package/dist/esm/ReactWindowSplitter.stories.js +286 -0
- package/dist/esm/ReactWindowSplitter.stories.js.map +1 -0
- package/dist/esm/ReactWindowSplitter.test.d.ts +2 -0
- package/dist/esm/ReactWindowSplitter.test.d.ts.map +1 -0
- package/dist/esm/ReactWindowSplitter.test.js +191 -0
- package/dist/esm/ReactWindowSplitter.test.js.map +1 -0
- package/dist/esm/bundle.size.d.ts +2 -0
- package/dist/esm/bundle.size.d.ts.map +1 -0
- package/dist/esm/bundle.size.js +4 -0
- package/dist/esm/bundle.size.js.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/useIndexedChildren.d.ts +8 -0
- package/dist/esm/useIndexedChildren.d.ts.map +1 -0
- package/dist/esm/useIndexedChildren.js +54 -0
- package/dist/esm/useIndexedChildren.js.map +1 -0
- package/dist/esm/useMove.d.ts +8 -0
- package/dist/esm/useMove.d.ts.map +1 -0
- package/dist/esm/useMove.js +16 -0
- package/dist/esm/useMove.js.map +1 -0
- package/eslint.config.js +3 -0
- package/package.json +108 -0
- package/rsbuild.config.js +25 -0
- package/src/ReactWindowSplitter.stories.tsx +705 -0
- package/src/ReactWindowSplitter.test.tsx +384 -0
- package/src/ReactWindowSplitter.tsx +884 -0
- package/src/__snapshots__/ReactWindowSplitter.test.tsx.snap +58 -0
- package/src/bundle.size.ts +4 -0
- package/src/index.ts +2 -0
- package/src/useIndexedChildren.tsx +79 -0
- package/src/useMove.ts +22 -0
- package/tsconfig.json +6 -0
- package/vitest.config.ts +20 -0
- package/vitest.setup.ts +7 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
# v0.7.0 (Mon Apr 28 2025)
|
|
2
|
+
|
|
3
|
+
### Release Notes
|
|
4
|
+
|
|
5
|
+
#### `@window-splitter/solid` ([#54](https://github.com/hipstersmoothie/window-splitter/pull/54))
|
|
6
|
+
|
|
7
|
+
The second framework adapter for `window-splitter` is live!
|
|
8
|
+
|
|
9
|
+
Things of note:
|
|
10
|
+
|
|
11
|
+
- `react-window-splitter` is deprecated in favor of `@window-splitter/react`
|
|
12
|
+
- `@window-splitter/solid` is feature complete and passes the test full test suite
|
|
13
|
+
- `@window-splitter/interface` was created to house the shared component types and some help functions
|
|
14
|
+
|
|
15
|
+
In creating the solid adapter we had to make vanilla JS versions of some functions we previously got from a dependency. This resulted in a 7.4% bundle size reduction for the react package 🎉
|
|
16
|
+
|
|
17
|
+
### Breaking Change
|
|
18
|
+
|
|
19
|
+
The API for registering panel handles changed a little bit. If you're using the `@window-splitter/state` package directly you will have to update your code (if you exist send me a message!)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
#### 🚀 Enhancement
|
|
24
|
+
|
|
25
|
+
- `@window-splitter/solid` [#54](https://github.com/hipstersmoothie/window-splitter/pull/54) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- dynamic constraints ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
30
|
+
- lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
31
|
+
- fix attr merging ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
32
|
+
- make id automatic by rendering once ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
33
|
+
- ugh ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
34
|
+
- update names ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
35
|
+
- build ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
36
|
+
- use shared move ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
37
|
+
- fix double conditional render layout ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
38
|
+
- fix build ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
39
|
+
- move shared stuff ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
40
|
+
- move shared types out ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
41
|
+
- starting to wrk ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
42
|
+
- change folder name ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
43
|
+
|
|
44
|
+
#### ⚠️ Pushed to `main`
|
|
45
|
+
|
|
46
|
+
- add missing publish configs ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
47
|
+
|
|
48
|
+
#### Authors: 1
|
|
49
|
+
|
|
50
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
# v0.6.5 (Sat Apr 26 2025)
|
|
55
|
+
|
|
56
|
+
#### 🐛 Bug Fix
|
|
57
|
+
|
|
58
|
+
- Fix conditional panel flicker [#52](https://github.com/hipstersmoothie/react-splitter/pull/52) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
59
|
+
- Fix conditional panel flicker ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
60
|
+
|
|
61
|
+
#### Authors: 1
|
|
62
|
+
|
|
63
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
# v0.6.3 (Sat Apr 26 2025)
|
|
68
|
+
|
|
69
|
+
#### 🐛 Bug Fix
|
|
70
|
+
|
|
71
|
+
- remove reforrest [#51](https://github.com/hipstersmoothie/react-splitter/pull/51) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
72
|
+
- remove reforrest ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
73
|
+
|
|
74
|
+
#### Authors: 1
|
|
75
|
+
|
|
76
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
# v0.6.2 (Sat Apr 26 2025)
|
|
81
|
+
|
|
82
|
+
#### 🐛 Bug Fix
|
|
83
|
+
|
|
84
|
+
- bake in invariant [#50](https://github.com/hipstersmoothie/react-splitter/pull/50) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
85
|
+
- bake in invariant ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
86
|
+
|
|
87
|
+
#### Authors: 1
|
|
88
|
+
|
|
89
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
# v0.6.1 (Sat Apr 26 2025)
|
|
94
|
+
|
|
95
|
+
#### 🐛 Bug Fix
|
|
96
|
+
|
|
97
|
+
- remove tiny-cookie as runtime dep [#49](https://github.com/hipstersmoothie/react-splitter/pull/49) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
98
|
+
- remove html file from bundle check ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
99
|
+
- remove tiny-cookie as runtime dep ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
100
|
+
|
|
101
|
+
#### ⚠️ Pushed to `main`
|
|
102
|
+
|
|
103
|
+
- fix stats calculation for bundle size ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
104
|
+
|
|
105
|
+
#### Authors: 1
|
|
106
|
+
|
|
107
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
# v0.6.0 (Fri Apr 25 2025)
|
|
112
|
+
|
|
113
|
+
### Release Notes
|
|
114
|
+
|
|
115
|
+
#### No xstate ([#47](https://github.com/hipstersmoothie/react-splitter/pull/47))
|
|
116
|
+
|
|
117
|
+
This release is a dramatic reduction to the bundle size. This was done by pruning some unnecessary deps and some that were to large to justify in the headless component.
|
|
118
|
+
|
|
119
|
+
The biggest change is to `@window-splitter/state` where we refactored the state machine into a function that followed the logic of the state machine, taking careful aim to not give up any of the guarantees we had there. As a result the apis for `snapshot` changed since those were exposing `xstate`'s snapshots. The format is now just the context value, which is also a smaller amount of text than we were storing for snapshots.
|
|
120
|
+
|
|
121
|
+
That change is breaking. The version has only received a minor bump because we are still <0, where bumping the minor can include breaking changes.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
#### 🚀 Enhancement
|
|
126
|
+
|
|
127
|
+
- No xstate [#47](https://github.com/hipstersmoothie/react-splitter/pull/47) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
128
|
+
|
|
129
|
+
#### 🐛 Bug Fix
|
|
130
|
+
|
|
131
|
+
- test ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
132
|
+
- bundle size [#48](https://github.com/hipstersmoothie/react-splitter/pull/48) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
133
|
+
- fix it? ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
134
|
+
- more test fixes ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
135
|
+
- lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
136
|
+
- fix all tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
137
|
+
- w2 ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
138
|
+
- working ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
139
|
+
- start ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
140
|
+
|
|
141
|
+
#### Authors: 1
|
|
142
|
+
|
|
143
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
# v0.5.8 (Wed Apr 23 2025)
|
|
148
|
+
|
|
149
|
+
#### ⚠️ Pushed to `main`
|
|
150
|
+
|
|
151
|
+
- more utils from utils (lisowski54@gmail.com)
|
|
152
|
+
|
|
153
|
+
#### Authors: 1
|
|
154
|
+
|
|
155
|
+
- Andrew Lisowski (lisowski54@gmail.com)
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
# v0.5.6 (Wed Apr 23 2025)
|
|
160
|
+
|
|
161
|
+
#### ⚠️ Pushed to `main`
|
|
162
|
+
|
|
163
|
+
- remove utils (lisowski54@gmail.com)
|
|
164
|
+
|
|
165
|
+
#### Authors: 1
|
|
166
|
+
|
|
167
|
+
- Andrew Lisowski (lisowski54@gmail.com)
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
# v0.5.4 (Wed Apr 23 2025)
|
|
172
|
+
|
|
173
|
+
#### ⚠️ Pushed to `main`
|
|
174
|
+
|
|
175
|
+
- unused (lisowski54@gmail.com)
|
|
176
|
+
|
|
177
|
+
#### Authors: 1
|
|
178
|
+
|
|
179
|
+
- Andrew Lisowski (lisowski54@gmail.com)
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
# v0.5.3 (Wed Apr 23 2025)
|
|
184
|
+
|
|
185
|
+
#### ⚠️ Pushed to `main`
|
|
186
|
+
|
|
187
|
+
- tiny cookie (lisowski54@gmail.com)
|
|
188
|
+
- fix tests (lisowski54@gmail.com)
|
|
189
|
+
|
|
190
|
+
#### Authors: 1
|
|
191
|
+
|
|
192
|
+
- Andrew Lisowski (lisowski54@gmail.com)
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
# v0.5.2 (Wed Apr 23 2025)
|
|
197
|
+
|
|
198
|
+
#### ⚠️ Pushed to `main`
|
|
199
|
+
|
|
200
|
+
- switch to tiny-invariant (lisowski54@gmail.com)
|
|
201
|
+
|
|
202
|
+
#### Authors: 1
|
|
203
|
+
|
|
204
|
+
- Andrew Lisowski (lisowski54@gmail.com)
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
# v0.5.1 (Wed Apr 23 2025)
|
|
209
|
+
|
|
210
|
+
#### ⚠️ Pushed to `main`
|
|
211
|
+
|
|
212
|
+
- fix deps (lisowski54@gmail.com)
|
|
213
|
+
|
|
214
|
+
#### Authors: 1
|
|
215
|
+
|
|
216
|
+
- Andrew Lisowski (lisowski54@gmail.com)
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
# v0.5.0 (Thu Apr 17 2025)
|
|
221
|
+
|
|
222
|
+
#### 🚀 Enhancement
|
|
223
|
+
|
|
224
|
+
- Add `data-state=inactive` for drag handles that aren't the active one [#46](https://github.com/hipstersmoothie/react-splitter/pull/46) ([@sfc-gh-alisowski](https://github.com/sfc-gh-alisowski))
|
|
225
|
+
|
|
226
|
+
#### 🐛 Bug Fix
|
|
227
|
+
|
|
228
|
+
- Add `data-state=inactive` for drag handles that aren't the active one ([@sfc-gh-alisowski](https://github.com/sfc-gh-alisowski))
|
|
229
|
+
|
|
230
|
+
#### Authors: 1
|
|
231
|
+
|
|
232
|
+
- Andrew Lisowski ([@sfc-gh-alisowski](https://github.com/sfc-gh-alisowski))
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
# v0.4.3 (Tue Apr 15 2025)
|
|
237
|
+
|
|
238
|
+
#### 🐛 Bug Fix
|
|
239
|
+
|
|
240
|
+
- update panel settings when props update [#45](https://github.com/hipstersmoothie/react-splitter/pull/45) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
241
|
+
- update panel settings when props update ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
242
|
+
|
|
243
|
+
#### Authors: 1
|
|
244
|
+
|
|
245
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
# v0.4.2 (Tue Apr 15 2025)
|
|
250
|
+
|
|
251
|
+
#### 🐛 Bug Fix
|
|
252
|
+
|
|
253
|
+
- rebind onResize and onCollapseChange to fix restoring from snapshot [#44](https://github.com/hipstersmoothie/react-splitter/pull/44) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
254
|
+
- remove only ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
255
|
+
- rebind onResize and onCollapseChange to fix restoring from snapshot (closes #41) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
256
|
+
|
|
257
|
+
#### Authors: 1
|
|
258
|
+
|
|
259
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
# v0.4.1 (Sun Aug 25 2024)
|
|
264
|
+
|
|
265
|
+
#### 🐛 Bug Fix
|
|
266
|
+
|
|
267
|
+
- Responsive Bugs [#38](https://github.com/hipstersmoothie/react-splitter/pull/38) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
268
|
+
- move handle overflow logic to recordActualItemSize ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
269
|
+
- fix? ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
270
|
+
- more ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
271
|
+
- fix rounding errors ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
272
|
+
- update test ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
273
|
+
- stop re-run ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
274
|
+
- updating tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
275
|
+
- measure more ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
276
|
+
- Fix resize/overflow bug where if a panel hits 0 it stays at 0 ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
277
|
+
- make story use view height ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
278
|
+
- move autosave to state package [#36](https://github.com/hipstersmoothie/react-splitter/pull/36) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
279
|
+
- fix tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
280
|
+
- improve lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
281
|
+
- move autosave to state ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
282
|
+
|
|
283
|
+
#### Authors: 1
|
|
284
|
+
|
|
285
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
# v0.4.0 (Fri Aug 23 2024)
|
|
290
|
+
|
|
291
|
+
#### 🚀 Enhancement
|
|
292
|
+
|
|
293
|
+
- Add "isStaticAtRest" prop [#34](https://github.com/hipstersmoothie/react-splitter/pull/34) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
294
|
+
- Collapse Validation [#33](https://github.com/hipstersmoothie/react-splitter/pull/33) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
295
|
+
|
|
296
|
+
#### 🐛 Bug Fix
|
|
297
|
+
|
|
298
|
+
- fix lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
299
|
+
- Add "isStaticAtRest" prop ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
300
|
+
- pray ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
301
|
+
- fix install? ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
302
|
+
- only use generated id when necassary ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
303
|
+
- fix panel expandsion to min ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
304
|
+
- fix build ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
305
|
+
- fix bad measure ments ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
306
|
+
- auto collapse panels when there is no room ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
307
|
+
|
|
308
|
+
#### Authors: 1
|
|
309
|
+
|
|
310
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
# v0.3.2 (Wed Aug 21 2024)
|
|
315
|
+
|
|
316
|
+
#### 🐛 Bug Fix
|
|
317
|
+
|
|
318
|
+
- Fix panel not expanding to take up width with a default collapsed panel [#29](https://github.com/hipstersmoothie/react-splitter/pull/29) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
319
|
+
- Fix panel not expanding to take up width with a default collapsed panel ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
320
|
+
- Fix bug in onResize callbacks [#30](https://github.com/hipstersmoothie/react-splitter/pull/30) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
321
|
+
- call onResize once the item sizes are known too ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
322
|
+
|
|
323
|
+
#### Authors: 1
|
|
324
|
+
|
|
325
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
# v0.3.1 (Sun Aug 18 2024)
|
|
330
|
+
|
|
331
|
+
#### ⚠️ Pushed to `main`
|
|
332
|
+
|
|
333
|
+
- fix drag callback types ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
334
|
+
|
|
335
|
+
#### Authors: 1
|
|
336
|
+
|
|
337
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
# v0.3.0 (Sun Aug 18 2024)
|
|
342
|
+
|
|
343
|
+
#### 🚀 Enhancement
|
|
344
|
+
|
|
345
|
+
- Add `onResize` prop to Panel [#28](https://github.com/hipstersmoothie/react-splitter/pull/28) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
346
|
+
- feat: add callbacks for drag interaction [#27](https://github.com/hipstersmoothie/react-splitter/pull/27) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
347
|
+
|
|
348
|
+
#### 🐛 Bug Fix
|
|
349
|
+
|
|
350
|
+
- Add `onResize` prop to `Panel` ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
351
|
+
- add callbacks for drag interaction ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
352
|
+
- add coverage for PRs [#25](https://github.com/hipstersmoothie/react-splitter/pull/25) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
353
|
+
- testing ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
354
|
+
- add coverage for PRs ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
355
|
+
- Add react tests [#24](https://github.com/hipstersmoothie/react-splitter/pull/24) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
356
|
+
- make vertical test pass in CI better ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
357
|
+
- fix 1 test ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
358
|
+
- add docs for state machine usage ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
359
|
+
|
|
360
|
+
#### ⚠️ Pushed to `main`
|
|
361
|
+
|
|
362
|
+
- improve test coverage in state machine ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
363
|
+
|
|
364
|
+
#### Authors: 1
|
|
365
|
+
|
|
366
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
# v0.2.5 (Thu Aug 15 2024)
|
|
371
|
+
|
|
372
|
+
#### ⚠️ Pushed to `main`
|
|
373
|
+
|
|
374
|
+
- add more docs to state machine + add defaults to params ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
375
|
+
- fix repo/description ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
376
|
+
- upgrade deps ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
377
|
+
|
|
378
|
+
#### Authors: 1
|
|
379
|
+
|
|
380
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
# v0.2.4 (Thu Aug 15 2024)
|
|
385
|
+
|
|
386
|
+
#### 🐛 Bug Fix
|
|
387
|
+
|
|
388
|
+
- Fix conditional panel rendering [#22](https://github.com/hipstersmoothie/react-splitter/pull/22) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
389
|
+
- Fix conditional panel rendering ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
390
|
+
- Fix default size throwing of responsive sizing [#21](https://github.com/hipstersmoothie/react-splitter/pull/21) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
391
|
+
- Fix default size throwing of responsive sizing ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
392
|
+
|
|
393
|
+
#### Authors: 1
|
|
394
|
+
|
|
395
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
# v0.2.3 (Wed Aug 14 2024)
|
|
400
|
+
|
|
401
|
+
#### 🐛 Bug Fix
|
|
402
|
+
|
|
403
|
+
- More Tests and Bug Fixes [#18](https://github.com/hipstersmoothie/react-splitter/pull/18) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
404
|
+
- move prepareSnapshot ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
405
|
+
- fix spring animations not quite working (for real) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
406
|
+
- fix snapshots ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
407
|
+
- switch to big number ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
408
|
+
|
|
409
|
+
#### Authors: 1
|
|
410
|
+
|
|
411
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
# v0.2.2 (Tue Aug 13 2024)
|
|
416
|
+
|
|
417
|
+
#### 🐛 Bug Fix
|
|
418
|
+
|
|
419
|
+
- Split out @window-splitter/state [#16](https://github.com/hipstersmoothie/react-splitter/pull/16) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
420
|
+
- fix path ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
421
|
+
- fix lock ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
422
|
+
- split into packages ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
423
|
+
|
|
424
|
+
#### Authors: 1
|
|
425
|
+
|
|
426
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
430
|
+
# v0.2.1 (Tue Aug 13 2024)
|
|
431
|
+
|
|
432
|
+
#### 🐛 Bug Fix
|
|
433
|
+
|
|
434
|
+
- Add tests, fix a bunch of bugs [#12](https://github.com/hipstersmoothie/react-splitter/pull/12) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
435
|
+
- fix lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
436
|
+
- more tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
437
|
+
- fix imperative api bugs ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
438
|
+
- fix ordering being off ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
439
|
+
- pre-parse units ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
440
|
+
- stores actual values and don't convert between string and number, makes code more type safe ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
441
|
+
- simpler ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
442
|
+
- add another collapse test ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
443
|
+
- add collapse tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
444
|
+
- fix handles not being accounted for when adding dynamic panels ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
445
|
+
- fix conditional panel rendering ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
446
|
+
- fix commited layout ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
447
|
+
- Merge remote-tracking branch 'origin/main' into tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
448
|
+
- fix react preset in config-eslint package [#11](https://github.com/hipstersmoothie/react-splitter/pull/11) ([@Rel1cx](https://github.com/Rel1cx))
|
|
449
|
+
- switch to 1fr and fix measurement in tests (closes #3) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
450
|
+
- set initial children sizes ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
451
|
+
- fix react preset in config-eslint package ([@Rel1cx](https://github.com/Rel1cx))
|
|
452
|
+
- add no-shadow ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
453
|
+
- fix id-less renders ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
454
|
+
- add test plan ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
455
|
+
- clean up test API ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
456
|
+
- try rounding values during prepare phase ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
457
|
+
- fix default sized panels not be properly accounted for in static widths ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
458
|
+
- working ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
459
|
+
- fix default size + remove some dead code ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
460
|
+
- fix drag overshoot bugs ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
461
|
+
- setup tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
462
|
+
- remove console ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
463
|
+
|
|
464
|
+
#### Authors: 2
|
|
465
|
+
|
|
466
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
467
|
+
- Eva1ent ([@Rel1cx](https://github.com/Rel1cx))
|
|
468
|
+
|
|
469
|
+
---
|
|
470
|
+
|
|
471
|
+
# v0.2.0 (Sat Aug 10 2024)
|
|
472
|
+
|
|
473
|
+
#### 🚀 Enhancement
|
|
474
|
+
|
|
475
|
+
- Collapse Animation [#10](https://github.com/hipstersmoothie/react-splitter/pull/10) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
476
|
+
|
|
477
|
+
#### 🐛 Bug Fix
|
|
478
|
+
|
|
479
|
+
- fix controlled collapse ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
480
|
+
- make it a div so the styling is easier ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
481
|
+
- fix lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
482
|
+
- add cos for animation ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
483
|
+
- add custom ease functions ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
484
|
+
- add ability to specify duration ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
485
|
+
- only support a few ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
486
|
+
- get animation working well ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
487
|
+
- add more animations ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
488
|
+
- get collapsing working better ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
489
|
+
- add animation prop to Panel ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
490
|
+
- use rafz ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
491
|
+
- get a basic animation working ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
492
|
+
- fix old collapsed value getting clear for controlled collapse ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
493
|
+
- fix extra props in dom ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
494
|
+
|
|
495
|
+
#### Authors: 1
|
|
496
|
+
|
|
497
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
498
|
+
|
|
499
|
+
---
|
|
500
|
+
|
|
501
|
+
# v0.1.8 (Fri Aug 09 2024)
|
|
502
|
+
|
|
503
|
+
#### ⚠️ Pushed to `main`
|
|
504
|
+
|
|
505
|
+
- mark package as side effect free ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
506
|
+
- lints ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
507
|
+
- use different eslint plugin ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
508
|
+
|
|
509
|
+
#### Authors: 1
|
|
510
|
+
|
|
511
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
# v0.1.7 (Fri Aug 09 2024)
|
|
516
|
+
|
|
517
|
+
#### 🐛 Bug Fix
|
|
518
|
+
|
|
519
|
+
- Bump version to: v0.1.6 \[skip ci\] ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
520
|
+
|
|
521
|
+
#### Authors: 1
|
|
522
|
+
|
|
523
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
524
|
+
|
|
525
|
+
---
|
|
526
|
+
|
|
527
|
+
# v0.1.6 (Fri Aug 09 2024)
|
|
528
|
+
|
|
529
|
+
#### ⚠️ Pushed to `main`
|
|
530
|
+
|
|
531
|
+
- fix readme (lisowski54@gmail.com)
|
|
532
|
+
|
|
533
|
+
#### Authors: 1
|
|
534
|
+
|
|
535
|
+
- Andrew Lisowski (lisowski54@gmail.com)
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
539
|
+
# v0.1.5 (Fri Aug 09 2024)
|
|
540
|
+
|
|
541
|
+
#### ⚠️ Pushed to `main`
|
|
542
|
+
|
|
543
|
+
- try to get readme rendering ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
544
|
+
|
|
545
|
+
#### Authors: 1
|
|
546
|
+
|
|
547
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
548
|
+
|
|
549
|
+
---
|
|
550
|
+
|
|
551
|
+
# v0.1.3 (Fri Aug 09 2024)
|
|
552
|
+
|
|
553
|
+
#### ⚠️ Pushed to `main`
|
|
554
|
+
|
|
555
|
+
- cleanup readme (lisowski54@gmail.com)
|
|
556
|
+
- add links (lisowski54@gmail.com)
|
|
557
|
+
- fix linting (lisowski54@gmail.com)
|
|
558
|
+
- add basic readme (lisowski54@gmail.com)
|
|
559
|
+
- fix peer dep warnings (lisowski54@gmail.com)
|
|
560
|
+
- fix build locally (lisowski54@gmail.com)
|
|
561
|
+
- add engine (lisowski54@gmail.com)
|
|
562
|
+
|
|
563
|
+
#### Authors: 1
|
|
564
|
+
|
|
565
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
566
|
+
|
|
567
|
+
---
|
|
568
|
+
|
|
569
|
+
# v0.1.2 (Thu Aug 08 2024)
|
|
570
|
+
|
|
571
|
+
#### ⚠️ Pushed to `main`
|
|
572
|
+
|
|
573
|
+
- ship only needed files (lisowski54@gmail.com)
|
|
574
|
+
|
|
575
|
+
#### Authors: 1
|
|
576
|
+
|
|
577
|
+
- Andrew Lisowski (lisowski54@gmail.com)
|
|
578
|
+
|
|
579
|
+
---
|
|
580
|
+
|
|
581
|
+
# v0.1.1 (Thu Aug 08 2024)
|
|
582
|
+
|
|
583
|
+
#### 🐛 Bug Fix
|
|
584
|
+
|
|
585
|
+
- pr workflow [#1](https://github.com/hipstersmoothie/react-splitter/pull/1) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
586
|
+
- pr workflow ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
587
|
+
|
|
588
|
+
#### ⚠️ Pushed to `main`
|
|
589
|
+
|
|
590
|
+
- setup auto ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
591
|
+
- document imperative API ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
592
|
+
- get persistence working ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
593
|
+
- tools ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
594
|
+
- fix stories ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
595
|
+
- rename files ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
596
|
+
- automatic order ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
597
|
+
- conditional working ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
598
|
+
- get it working better with SSR ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
599
|
+
- improve conditional panels more ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
600
|
+
- fix react warnings ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
601
|
+
- conditional panels kinda ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
602
|
+
- working on docs ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
603
|
+
|
|
604
|
+
#### Authors: 1
|
|
605
|
+
|
|
606
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# `@window-splitter/react`
|
|
2
|
+
|
|
3
|
+
A full featured window splitter for React.
|
|
4
|
+
|
|
5
|
+
- Support for the full [window splitter](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/) ARIA spec
|
|
6
|
+
- Support for percentage and pixel based constraints
|
|
7
|
+
- Collapsible panels
|
|
8
|
+
- Controlled panels
|
|
9
|
+
- Layout Persistance - LocalStorage and Cookie
|
|
10
|
+
|
|
11
|
+
[Read the full docs](https://react-window-splitter-six.vercel.app)
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @window-splitter/react
|
|
17
|
+
yarn add @window-splitter/react
|
|
18
|
+
pnpm add @window-splitter/react
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { PanelGroup, Panel, PanelResizer } from "@window-splitter/react";
|
|
25
|
+
|
|
26
|
+
function Example() {
|
|
27
|
+
return (
|
|
28
|
+
<PanelGroup>
|
|
29
|
+
<Panel min="130px" max="400px" />
|
|
30
|
+
<PanelResizer />
|
|
31
|
+
<Panel min="130px" />
|
|
32
|
+
</PanelGroup>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Server Side Rendering + Strict Mode
|
|
38
|
+
|
|
39
|
+
While not required for the simple case, for anything more complex you will
|
|
40
|
+
need to add an `id` prop to your panels and handles.
|
|
41
|
+
This is so that the component can tell all of the components apart during layout and rendering.
|
|
42
|
+
|
|
43
|
+
Features that require `id`:
|
|
44
|
+
|
|
45
|
+
- Conditional Panels
|
|
46
|
+
- Server Side Rendering
|
|
47
|
+
- React Strict Mode
|
|
48
|
+
|
|
49
|
+
## Prior Art
|
|
50
|
+
|
|
51
|
+
This library is heavily inspired by the following libraries:
|
|
52
|
+
|
|
53
|
+
- [react-resizable-panels](https://github.com/bvaughn/react-resizable-panels)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PanelGroupHandle, PanelHandle, SharedPanelGroupProps, SharedPanelProps, SharedPanelResizerProps } from "@window-splitter/interface";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface PanelGroupProps extends React.HTMLAttributes<HTMLDivElement>, SharedPanelGroupProps {
|
|
4
|
+
/** Imperative handle to control the group */
|
|
5
|
+
handle?: React.Ref<PanelGroupHandle>;
|
|
6
|
+
}
|
|
7
|
+
/** A group of panels that has constraints and a user can resize */
|
|
8
|
+
export declare const PanelGroup: React.ForwardRefExoticComponent<PanelGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export interface PanelProps extends SharedPanelProps<boolean>, Omit<React.HTMLAttributes<HTMLDivElement>, "onResize"> {
|
|
10
|
+
/** Imperative handle to control the panel */
|
|
11
|
+
handle?: React.Ref<PanelHandle>;
|
|
12
|
+
}
|
|
13
|
+
/** A panel within a `PanelGroup` */
|
|
14
|
+
export declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export interface PanelResizerProps extends SharedPanelResizerProps, Omit<React.HTMLAttributes<HTMLDivElement>, "onDragStart" | "onDrag" | "onDragEnd"> {
|
|
16
|
+
}
|
|
17
|
+
/** A resize handle to place between panels. */
|
|
18
|
+
export declare const PanelResizer: React.ForwardRefExoticComponent<PanelResizerProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
//# sourceMappingURL=ReactWindowSplitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactWindowSplitter.d.ts","sourceRoot":"","sources":["../../src/ReactWindowSplitter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,gBAAgB,EAChB,WAAW,EACX,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EAExB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAQN,MAAM,OAAO,CAAC;AA+If,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,qBAAqB;IACvB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;CACtC;AA4ID,mEAAmE;AACnE,eAAO,MAAM,UAAU,wFAoBtB,CAAC;AA0KF,MAAM,WAAW,UACf,SAAQ,gBAAgB,CAAC,OAAO,CAAC,EAC/B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACxD,6CAA6C;IAC7C,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;CACjC;AAED,oCAAoC;AACpC,eAAO,MAAM,KAAK,mFAqEjB,CAAC;AAgIF,MAAM,WAAW,iBACf,SAAQ,uBAAuB,EAC7B,IAAI,CACF,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,aAAa,GAAG,QAAQ,GAAG,WAAW,CACvC;CAAG;AAER,+CAA+C;AAC/C,eAAO,MAAM,YAAY,0FAqBxB,CAAC"}
|