Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
217a060
Added initial useCurrentSpace() implementation with drag/resize funct…
aeagle Dec 23, 2020
dbbf97a
Added classes to fixed and view port spaces as used in 0.1.x versions…
aeagle Dec 23, 2020
7732c5c
Refactored resize logic
aeagle Dec 28, 2020
8286c34
Fixed positional resize logic
aeagle Dec 28, 2020
e863f85
Merge branch 'master' into 0.2.1-resize-handles
aeagle Mar 10, 2021
6226081
Fix for drag adjustment when right or bottom offset specified
aeagle Mar 10, 2021
9309260
Fixed story import
aeagle Mar 10, 2021
9bfc2bb
Implemented touch drag and upgraded typescript version and revised ty…
aeagle Mar 10, 2021
794c83e
Vulnerability fixes in npm packages
aeagle Mar 10, 2021
8c7a119
Use type for onDragEnd definition
aeagle Mar 10, 2021
60ac128
Added action knobs to stories
aeagle Mar 11, 2021
4f33414
Ensure drag end positioning reflects position in current space, not v…
aeagle Mar 14, 2021
93a409c
Ensure resize types can be passed to a custom space
aeagle Mar 14, 2021
be3b4fa
Added property to allow content from a space to overflow the space
aeagle Mar 14, 2021
8c200e1
Added parameter to determine if drag resulted in a move
aeagle Mar 14, 2021
fa9c761
Added handle placement prop
aeagle Mar 24, 2021
8bae321
Merge remote-tracking branch 'origin/master' into 0.2.1-resize-handles
aeagle Mar 25, 2021
19267e3
Merge branch 'master' into feature/resize-handles
aeagle Jul 6, 2021
464d97d
Fix stacked test story accessibility of test buttons
aeagle Jul 6, 2021
ad0a68c
Merge branch 'release/v0.3' into feature/resize-handles
aeagle Jul 6, 2021
b205d75
Merge branch 'master' into feature/resize-handles
aeagle Jul 11, 2021
f7b8ae1
Merge branch 'feature/resize-handles' of https://github.com/aeagle/re…
aeagle Jul 11, 2021
c872c7b
Can now pass a function to be called when rendering the resize handles
Aug 19, 2021
b1305a8
Merge branch 'develop' into feature/resize-handles
aeagle Oct 30, 2021
3f1e77d
Revised stories to show all variations of positioned space
aeagle Oct 30, 2021
90988f5
Refactored resize logic
aeagle Oct 31, 2021
3386eda
Merge branch 'develop' into feature/resize-handles
aeagle Nov 3, 2021
969d03d
Updated typescript / testing packages
aeagle Nov 16, 2021
9e216f0
Fixed react types
aeagle Nov 16, 2021
bd02b3a
Apply fix for bug in JSDOM to enable styles to correctly be applied f…
aeagle Nov 16, 2021
b3aa7f0
Initial positioned tests
aeagle Nov 16, 2021
17695f8
More positioned tests
aeagle Nov 16, 2021
ca78b67
Type fix
aeagle Nov 16, 2021
bc56e10
Added drag tests for positioned space
aeagle Nov 16, 2021
6ba44ac
Added resize constraint tests (failing)
aeagle Nov 16, 2021
5a55b97
Reapplied minimum/maximum logic for anchored resizable spaces
aeagle Nov 16, 2021
af1ec25
Added extra docs for useCurrentSpace() hook
aeagle Nov 16, 2021
01d9aae
Adjustment
aeagle Nov 16, 2021
320eff7
Merge branch 'feature/resize-handles' into feature/97-custom-resize-h…
aeagle Nov 17, 2021
98a9544
Updated docs for positioned space / custom handles and cleaned up props
aeagle Nov 17, 2021
ec1e91a
Fix markup
aeagle Nov 17, 2021
ba4aaa8
Storybook warning fixes
aeagle Nov 17, 2021
7661f2e
Added prop types tests
aeagle Nov 17, 2021
ee27697
Updated rollup plugins
aeagle Nov 17, 2021
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.env.test.local
.env.production.local

debug.log*
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Expand Down
4 changes: 4 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@

.spaces-resize-handle {
background-color: red !important;
opacity: 0.5;
}
.innerZoomElementWrapper .spaces-fullpage-layout {
position: absolute !important;
}
</style>
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

![NPM](https://img.shields.io/npm/v/react-spaces.svg) ![Azure Pipelines](https://allan-eagle.visualstudio.com/All%20projects/_apis/build/status/aeagle.react-spaces?branchName=master)

An easy to understand and nestable layout system, React Spaces allow you to divide a page or container into anchored, scrollable and resizable spaces enabling you to build desktop/mobile type user interfaces in the browser.
An easy to understand and nestable layout system, React Spaces allow you to divide a page or container into anchored, scrollable and resizable spaces enabling you to build desktop/mobile type user interfaces in the browser.

Rather than a library of visual UI components, Spaces are intended to be the reusable foundational blocks for laying out a UI which responds neatly to view port resizes leaving you to fill them with whatever components you want.

- No styling to achieve simple or complex layouts.
- Spaces know how to behave in relation to each other and resize accordingly.
- Spaces don't have any visual element to them (even padding or margins). You can fill them with whatever you want.
- No styling to achieve simple or complex layouts.
- Spaces know how to behave in relation to each other and resize accordingly.
- Spaces don't have any visual element to them (even padding or margins). You can fill them with whatever you want.

**Version 0.2.0 release - read [release notes here](https://www.allaneagle.com/react-spaces/release-0.2.0).**

Expand Down Expand Up @@ -48,18 +48,20 @@ There are resizable versions of these components called **\<LeftResizable /\>**,

A space which consumes any available area left in the parent container/space taking into account any anchored spaces on every side.

**\<Positioned /\>**

A space which can be absolutely placed within a parent space either by top, left, width and height or by top, left, right and bottom.

**\<Layer /\>**

Layers allow you to create layers within a parent space, for example:

```html
<ViewPort>
<Layer zIndex="{0}">
<LeftResizable size="20%" /> // floating sidebar
</Layer>
<Layer zIndex="{1}">
<Fill />
</Layer>
<Layer zIndex="{0}"> <LeftResizable size="20%" /> // floating sidebar </Layer>
<Layer zIndex="{1}">
<Fill />
</Layer>
</ViewPort>
```

Expand Down
Loading