@jsenv/navi 0.29.73 → 0.29.75
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/dist/jsenv_navi.js +375 -97
- package/dist/jsenv_navi.js.map +19 -14
- package/docs/popup_open.md +6 -4
- package/package.json +2 -2
package/docs/popup_open.md
CHANGED
|
@@ -112,8 +112,9 @@ timing.
|
|
|
112
112
|
|
|
113
113
|
A popup with no `anchor` prop uses the command's source as its anchor
|
|
114
114
|
(`detail.anchor ?? detail.source`). Passing the popup itself as the source
|
|
115
|
-
therefore makes it its own anchor. For `Dialog`
|
|
116
|
-
|
|
115
|
+
therefore makes it its own anchor. For `Dialog` the anchor does nothing at all
|
|
116
|
+
unless `sizeFromAnchor` is passed (then, and only then, it feeds the
|
|
117
|
+
`--anchor-width`/`--anchor-height` CSS vars); for `Popover`, which really is
|
|
117
118
|
positioned relative to its anchor, say what the anchor is:
|
|
118
119
|
|
|
119
120
|
```jsx
|
|
@@ -122,8 +123,9 @@ positioned relative to its anchor, say what the anchor is:
|
|
|
122
123
|
|
|
123
124
|
The `anchor` prop always wins over whatever the command carried.
|
|
124
125
|
`anchorCustomEventDetail="ignore"` goes further and drops the event's anchor
|
|
125
|
-
entirely — for a popover that must never be anchored to whatever opened it
|
|
126
|
-
for a dialog that must never be
|
|
126
|
+
entirely — for a popover that must never be anchored to whatever opened it
|
|
127
|
+
(`SidePanel` does this), and for a `sizeFromAnchor` dialog that must never be
|
|
128
|
+
sized from it.
|
|
127
129
|
|
|
128
130
|
## Opening it ON something
|
|
129
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/navi",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Library of components including navigation to create frontend applications",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepublishOnly": "npm run build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@jsenv/dom": "0.17.
|
|
32
|
+
"@jsenv/dom": "0.17.24",
|
|
33
33
|
"@jsenv/humanize": "1.7.8",
|
|
34
34
|
"@jsenv/validity": "0.4.2"
|
|
35
35
|
},
|