Skip to content

Commit 991f400

Browse files
committed
chore: remove website and update title
1 parent 3a8b6e6 commit 991f400

File tree

13 files changed

+116
-445
lines changed

13 files changed

+116
-445
lines changed

.storybook/manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { create } from '@storybook/theming/create';
44
addons.setConfig({
55
theme: create({
66
base: 'light',
7-
brandTitle: 'React Sortable Tree',
8-
brandUrl: 'https://github.com/frontend-collective/react-sortable-tree',
7+
brandTitle: 'React Split Pane',
8+
brandUrl: 'https://github.com/tomkp/react-split-pane',
99
gridCellSize: 12,
1010
}),
1111
});

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ Split-Pane React component, can be nested or split vertically or horizontally!
1111

1212
## Installing
1313

14-
```sh
14+
````sh
1515
npm install react-split-pane
1616

1717
# or if you use yarn
1818

1919
yarn add react-split-pane
20-
```
2120

2221
## Example Usage
2322

@@ -26,7 +25,7 @@ yarn add react-split-pane
2625
<div />
2726
<div />
2827
</SplitPane>
29-
```
28+
````
3029
3130
```jsx
3231
<SplitPane split="vertical" minSize={50}>

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
"build": "rollup -c",
3434
"build:watch": "rollup -c --watch",
3535
"clean": "rimraf dist",
36-
"clean:website": "rimraf build",
37-
"prebuild:website": "yarn run clean:website",
38-
"build:website": "parcel build website/index.html -d build --public-url /react-split-pane/",
3936
"test": "BABEL_ENV=test mochify -R spec --transform babelify",
4037
"test:watch": "BABEL_ENV=test mochify -R spec --watch --transform babelify",
4138
"test:coverage": "BABEL_ENV=test mochify --plugin [ mochify-istanbul --exclude '**/test/**' --report lcovonly ] --transform babelify && cat lcov.info | coveralls && rm lcov.info",
@@ -69,6 +66,7 @@
6966
"@storybook/theming": "^5.3.17",
7067
"@types/react": "^16.9.11",
7168
"babel-eslint": "^10.0.3",
69+
"babel-loader": "^8.0.0-beta.6",
7270
"babelify": "^10.0.0",
7371
"chai": "^4.2.0",
7472
"chai-spies": "^1.0.0",

stories/index.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
.Resizer {
2+
background: #000;
3+
opacity: 0.2;
4+
z-index: 1;
5+
-moz-box-sizing: border-box;
6+
-webkit-box-sizing: border-box;
7+
box-sizing: border-box;
8+
-moz-background-clip: padding;
9+
-webkit-background-clip: padding;
10+
background-clip: padding-box;
11+
}
12+
13+
.Resizer:hover {
14+
-webkit-transition: all 2s ease;
15+
transition: all 2s ease;
16+
}
17+
18+
.Resizer.horizontal {
19+
height: 11px;
20+
margin: -5px 0;
21+
border-top: 5px solid rgba(255, 255, 255, 0);
22+
border-bottom: 5px solid rgba(255, 255, 255, 0);
23+
cursor: row-resize;
24+
width: 100%;
25+
}
26+
27+
.Resizer.horizontal:hover {
28+
border-top: 5px solid rgba(0, 0, 0, 0.5);
29+
border-bottom: 5px solid rgba(0, 0, 0, 0.5);
30+
}
31+
32+
.Resizer.vertical {
33+
width: 11px;
34+
margin: 0 -5px;
35+
border-left: 5px solid rgba(255, 255, 255, 0);
36+
border-right: 5px solid rgba(255, 255, 255, 0);
37+
cursor: col-resize;
38+
}
39+
40+
.Resizer.vertical:hover {
41+
border-left: 5px solid rgba(0, 0, 0, 0.5);
42+
border-right: 5px solid rgba(0, 0, 0, 0.5);
43+
}
44+
.Resizer.disabled {
45+
cursor: not-allowed;
46+
}
47+
.Resizer.disabled:hover {
48+
border-color: transparent;
49+
}

stories/index.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from 'react';
22
import { storiesOf } from '@storybook/react';
33

4-
import BasicHorizontal from '../stories/BasicHorizontal';
5-
import BasicNested from './examples/basic/BasicNested';
6-
import BasicStep from '../stories/BasicStep';
7-
import BasicVertical from '../stories/BasicVertical';
8-
import PercentageHorizontal from '../stories/PercentageHorizontal';
9-
import PercentageVertical from '../stories/PercentageVertical';
10-
import SnapToPostion from './examples/basic/SnapToPosition';
4+
import BasicHorizontal from './BasicHorizontal';
5+
import BasicNested from './BasicNested';
6+
import BasicStep from './BasicStep';
7+
import BasicVertical from './BasicVertical';
8+
import PercentageHorizontal from './PercentageHorizontal';
9+
import PercentageVertical from './PercentageVertical';
10+
import SnapToPostion from './SnapToPosition';
1111

1212
import InlineStyles from './InlineStyles';
1313
import MultipleHorizontal from './MultipleHorizontal';
@@ -16,6 +16,8 @@ import NestedHorizontal from './NestedHorizontal';
1616
import NestedVertical from './NestedVertical';
1717
import Subcomponent from './Subcomponent';
1818

19+
import './index.css';
20+
1921
storiesOf('Basic', module)
2022
.add('Basic Horizontal', () => <BasicHorizontal />)
2123
.add('Basic Nested', () => <BasicNested />)

website/App.js

Lines changed: 0 additions & 86 deletions
This file was deleted.

website/App.module.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)