@cscfi/csc-ui 4.0.0-alpha.24 → 4.0.0-alpha.25
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/csc-ui.js +2410 -2390
- package/dist/web-types.json +1 -1
- package/dist-types/shared/useFallbackPosition.d.ts +6 -1
- package/package.json +1 -1
package/dist/web-types.json
CHANGED
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
* declarations, so this composable computes the same placement with
|
|
9
9
|
* `@floating-ui/dom` instead: the preferred placement, then the component's
|
|
10
10
|
* fallback chain in the native order (first one that fits wins, the preferred
|
|
11
|
-
* one when none fits), the gap as an offset.
|
|
11
|
+
* one when none fits), the gap as an offset. When even the chosen placement
|
|
12
|
+
* overflows, the panel is shifted back inside the viewport on both axes, as a
|
|
13
|
+
* native `position-area` box is kept inside its containing block — a panel
|
|
14
|
+
* larger than the viewport starts at its top/left edge. The clamp applies to
|
|
15
|
+
* the margin box natively, so the gap pads the viewport on the placement's
|
|
16
|
+
* axis. The result is a style string the
|
|
12
17
|
* component appends to its panel style — never written to `el.style` directly,
|
|
13
18
|
* which Vue's next `:style` patch would wipe.
|
|
14
19
|
*
|
package/package.json
CHANGED