forked from tomkp/react-split-pane
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c85d11
commit 3a8b6e6
Showing
19 changed files
with
4,210 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
stories: ['../stories/index.js'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { addons } from '@storybook/addons'; | ||
import { create } from '@storybook/theming/create'; | ||
|
||
addons.setConfig({ | ||
theme: create({ | ||
base: 'light', | ||
brandTitle: 'React Sortable Tree', | ||
brandUrl: 'https://github.com/frontend-collective/react-sortable-tree', | ||
gridCellSize: 12, | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
website/examples/basic/BasicHorizontal.js → stories/BasicHorizontal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
website/examples/basic/BasicVertical.js → stories/BasicVertical.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
website/examples/advanced/InlineStyles.js → stories/InlineStyles.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/examples/advanced/MultipleHorizontal.js → stories/MultipleHorizontal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ite/examples/advanced/MultipleVertical.js → stories/MultipleVertical.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ite/examples/advanced/NestedHorizontal.js → stories/NestedHorizontal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
website/examples/advanced/NestedVertical.js → stories/NestedVertical.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...te/examples/basic/PercentageHorizontal.js → stories/PercentageHorizontal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
website/examples/basic/PercentageVertical.js → stories/PercentageVertical.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
website/examples/basic/SnapToPosition.js → stories/SnapToPosition.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
website/examples/advanced/Subcomponent.js → stories/Subcomponent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
import BasicHorizontal from '../stories/BasicHorizontal'; | ||
import BasicNested from './examples/basic/BasicNested'; | ||
import BasicStep from '../stories/BasicStep'; | ||
import BasicVertical from '../stories/BasicVertical'; | ||
import PercentageHorizontal from '../stories/PercentageHorizontal'; | ||
import PercentageVertical from '../stories/PercentageVertical'; | ||
import SnapToPostion from './examples/basic/SnapToPosition'; | ||
|
||
import InlineStyles from './InlineStyles'; | ||
import MultipleHorizontal from './MultipleHorizontal'; | ||
import MultipleVertical from './MultipleVertical'; | ||
import NestedHorizontal from './NestedHorizontal'; | ||
import NestedVertical from './NestedVertical'; | ||
import Subcomponent from './Subcomponent'; | ||
|
||
storiesOf('Basic', module) | ||
.add('Basic Horizontal', () => <BasicHorizontal />) | ||
.add('Basic Nested', () => <BasicNested />) | ||
.add('Basic Step', () => <BasicStep />) | ||
.add('Basic Vertical', () => <BasicVertical />) | ||
.add('Percentage Horizontal', () => <PercentageHorizontal />) | ||
.add('Percentage Vertical', () => <PercentageVertical />) | ||
.add('Snap To Position', () => <SnapToPostion />); | ||
|
||
storiesOf('Advanced', module) | ||
.add('Inline Styles', () => <InlineStyles />) | ||
.add('Multiple Horizontal', () => <MultipleHorizontal />) | ||
.add('Multiple Vertical', () => <MultipleVertical />) | ||
.add('Nested Horizontal', () => <NestedHorizontal />) | ||
.add('Nested Vertical', () => <NestedVertical />) | ||
.add('Subcomponent', () => <Subcomponent />); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.