@cocoar/ui-overlay 0.1.0-beta.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/fesm2022/cocoar-ui-overlay.mjs +1246 -0
- package/fesm2022/cocoar-ui-overlay.mjs.map +1 -0
- package/package.json +46 -0
- package/types/cocoar-ui-overlay.d.ts +291 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @cocoar/ui-overlay
|
|
2
|
+
|
|
3
|
+
Overlay primitives for the Cocoar Design System.
|
|
4
|
+
|
|
5
|
+
This library provides an Angular-first overlay foundation (specs, builders, service, refs) that higher-level UI components (tooltips, popovers, menus, dialogs) can build on.
|
|
6
|
+
|
|
7
|
+
## Quick start
|
|
8
|
+
|
|
9
|
+
- Create a builder via `createOverlayBuilder()`
|
|
10
|
+
- Configure shared settings (anchor/position/dismiss/size/etc.)
|
|
11
|
+
- Choose content last via `.fromTemplate(...)` / `.fromComponent(...)` / `.fromText()` and open via `.open(...)`
|
|
12
|
+
|
|
13
|
+
## App-level policy (DI)
|
|
14
|
+
|
|
15
|
+
Consuming apps can provide `COAR_OVERLAY_SPEC_RESOLVERS` (multi provider) to apply global defaults/policies at open-time.
|
|
16
|
+
This is useful when plugins or shared libraries should inherit app behavior without importing app presets.
|
|
17
|
+
|
|
18
|
+
See the consuming guide: [docs/consuming/overlay.md](../../../docs/consuming/overlay.md)
|