- @lion/button@0.1.44 - @lion/calendar@0.1.40 - @lion/checkbox-group@0.1.40 - @lion/checkbox@0.1.37 - @lion/choice-input@0.2.14 - @lion/field@0.1.34 - @lion/fieldset@0.1.36 - @lion/form-system@0.0.42 - @lion/form@0.1.39 - @lion/input-amount@0.1.37 - @lion/input-date@0.1.36 - @lion/input-datepicker@0.1.43 - @lion/input-email@0.1.36 - @lion/input-iban@0.1.37 - @lion/input@0.1.36 - @lion/localize@0.4.5 - @lion/overlays@0.3.7 - @lion/popup@0.2.20 - @lion/radio-group@0.1.40 - @lion/radio@0.1.37 - @lion/select@0.1.34 - @lion/textarea@0.1.37 - @lion/tooltip@0.2.20 - @lion/validate@0.2.18 |
||
|---|---|---|
| .. | ||
| docs | ||
| src | ||
| stories | ||
| test | ||
| translations | ||
| CHANGELOG.md | ||
| index.js | ||
| package.json | ||
| README.md | ||
Overlays System
Supports different types of overlays like dialogs, toasts, tooltips, dropdown, etc... Manages their position on the screen relative to other elements, including other overlays.
Features
- Overlays Manager, a global repository keeping track of all different types of overlays.
- Overlays Occurrences, outline of all possible occurrences of overlays. Divided into two main types:
- Global Overlay Controller, controller for overlays relative to the viewport.
- Local Overlay Controller, controller for overlays positioned next to invokers they are related to.
How to use
Installation
npm i --save @lion/overlays
Example
import { overlays } from '@lion/overlays';
const myCtrl = overlays.add(
new OverlayTypeController({
/* options */
})
);
// name OverlayTypeController is for illustration purpose only
// please read below about existing classes for different types of overlays