@linzjs/windows

5.4.1 • Public • Published

@linzjs/windows

semantic-release: react

Reusable promise based windowing component for LINZ / Toitū te whenua.

React state based modals/windows are painful because they require:

  • shared states for open/closed.
  • callbacks/states for return values.
  • inline modal/window includes, which prevent you from closing the invoking component before the modal/window has completed.

This module gives you promise based modals/windows which don't require all the state based boilerplate / inline-components.

So you can simply do this in your react-app:

const result = await showModal(TestModal)

Features

  • Async HTML dialog based Modals.
  • Draggable and resizeable, pop-in/out Panels/Windows.

Install

npm install @linzjs/windows

or with Yarn

yarn add @linzjs/windows

Debug log

To enable debug logs set:

localStorage.setItem("@linzjs/windows.debugEnabled", "true");

Demo

npm run storybook

See Chromatic storybook for documentation.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.4.179latest

Version History

VersionDownloads (Last 7 Days)Published
5.4.179
5.4.081
5.3.0710
5.2.1419
5.2.04
5.1.11
5.1.00
5.0.12
5.0.00
4.1.396
4.1.20
4.1.12
4.1.02
4.0.20
4.0.12
4.0.02
3.8.00
3.7.02
3.6.10
3.6.00
3.5.41
3.5.3279
3.5.22
3.5.10
3.5.00
3.4.41
3.4.32
3.4.20
3.4.12
3.4.00
3.3.11
3.3.00
3.2.40
3.2.31
3.2.21
3.2.12
3.2.01
3.1.00
3.0.00
2.3.00
2.2.00
2.1.01
2.0.10
2.0.00
1.5.22
1.5.12
1.5.02
1.4.60
1.4.50
1.4.40
1.4.30
1.4.20
1.4.10
1.4.00
1.3.00
1.2.00
1.1.20
1.1.11
1.1.01
1.0.01

Package Sidebar

Install

npm i @linzjs/windows

Weekly Downloads

1,504

Version

5.4.1

License

MIT

Unpacked Size

75.5 kB

Total Files

45

Last publish

Collaborators

  • linzds
  • blacha
  • philals