Skip to content

Split Pane v2 - simplified API #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
f8e2fea
WIP for v2
tomkp Dec 31, 2017
33eb854
Updated demo
tomkp Dec 31, 2017
dafe5ea
Bump version to 2.0.0, remove script for releasing
tomkp Dec 31, 2017
b79c87d
Remove confusing examples
tomkp Dec 31, 2017
2507f81
Remove confusing examples
tomkp Dec 31, 2017
f0d53c7
Improve demo styling - increase font weight
tomkp Dec 31, 2017
1eba86b
Show source with examples
tomkp Jan 1, 2018
d9c930e
Examples...
tomkp Jan 1, 2018
7edce73
Examples - simple nested
tomkp Jan 1, 2018
e2f1e1f
Bump versions
tomkp Jan 1, 2018
7fec1bf
Fix tests: import core-js
tomkp Jan 1, 2018
17d180c
Logging
tomkp Jan 1, 2018
82efd67
Setup StoryBook for demo
tomkp Jan 1, 2018
8c3b299
Test dragging resizer
tomkp Jan 1, 2018
58d12cd
Updated demo
tomkp Jan 1, 2018
1fac160
Drag resizer test
tomkp Jan 2, 2018
1dc52b6
Drag resizer test
tomkp Jan 2, 2018
e588f69
Update lock file
tomkp Jan 2, 2018
f355497
Resizing tests
tomkp Jan 2, 2018
4107ad4
Resizing tests - multiple panes
tomkp Jan 2, 2018
3d9e916
Allow dragging resizer to very edge
tomkp Jan 2, 2018
ea3a104
Resizing tests - to very edge
tomkp Jan 2, 2018
d7d4b26
Tests - trigger onMove event for each coordinate between start & end
tomkp Jan 2, 2018
006547d
Tests
tomkp Jan 2, 2018
ad736c9
Store min/max sizes in state when componentDidMount
tomkp Jan 3, 2018
42b2be4
Extract convertSizes function
tomkp Jan 3, 2018
855ee6a
Revert: Extract convertSizes function
tomkp Jan 3, 2018
66bed1e
Rename resizerIndex
tomkp Jan 3, 2018
25b707a
Separate resizer key & index with hyphen (same as Pane)
tomkp Jan 3, 2018
e57cb35
Get Resizer dimensions
tomkp Jan 3, 2018
0a55f48
Pane doesn't actually require children
tomkp Jan 3, 2018
e585082
Allow for size of resizer
tomkp Jan 3, 2018
fae4201
Show examples and example on same page
tomkp Jan 3, 2018
eea81b7
More complex example showing multiple props used together
tomkp Jan 4, 2018
c8025d1
Allows specific dimensions for testing
tomkp Jan 8, 2018
9e9caaf
Clearer tests
tomkp Jan 8, 2018
c368f32
Adding tests
tomkp Jan 9, 2018
fd6e57e
Adding horizontal stories (#251)
Feb 4, 2018
2516ee2
fix typo on calculatePositionBetween (#254)
Feb 5, 2018
3139e31
Publish as 'next'
tomkp Mar 10, 2018
aab9e76
Publish as 'next'
tomkp Mar 10, 2018
fb81256
Revert: Publish as 'next'
tomkp Mar 10, 2018
daa88ca
Publish as 'next'
tomkp Mar 10, 2018
46fd033
Persist size units after resizing (#264)
walerun May 16, 2018
b182103
reorder demo examples
tomkp May 17, 2018
ad5e509
versioning / publishing
tomkp May 17, 2018
eb5df85
versioning / publishing
tomkp May 17, 2018
871bf10
2.0.1
tomkp May 17, 2018
77a0d7f
versioning / publishing
tomkp May 17, 2018
22e649c
2.0.2
tomkp May 17, 2018
9c49aad
Filter out null children (#283)
davvidbaker Jul 27, 2018
0ea05a6
Updated SplitPane - Resize logic updated (#406)
arpitgarg101 Dec 13, 2019
5fa3102
2.0.3
wuweiweiwu Dec 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
],
"plugins": [
"add-module-exports",
"transform-object-assign"
"transform-object-assign",
"transform-object-rest-spread",
"transform-class-properties"
]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
html-report

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
2 changes: 2 additions & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
9 changes: 9 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { configure } from '@storybook/react';

// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /.stories.js$/);
function loadStories() {
req.keys().forEach((filename) => req(filename));
}

configure(loadStories, module);
33 changes: 33 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<style>


*, *:before, *:after {
box-sizing: border-box;
position: relative;
}

html {
font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 1.5;
}

body, html, #root {
margin: 0;
height: 100vh;
min-height: 100vh;
width: 100vw;
}

a {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}

#root {
display: flex;
flex-direction: column;
flex: 1;
}

</style>
Loading