@threadlabs/looma 0.31.2 → 0.31.3
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/components/shared/overlay.js +1 -1
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +1 -0
- package/components/ui-popover/ui-popover.html +11 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-editor-toolbar.css +1 -0
- package/styles/ui-popover.css +11 -0
- package/vanilla/UiPopover.d.ts +1 -0
- package/vanilla/UiPopover.js +5 -5
- package/vue/UiEditorToolbar.vue +1 -0
- package/vue/UiPopover.d.ts +6 -0
- package/vue/UiPopover.vue +31 -1
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiPopover.js +23 -1
- package/vue/components.css +21 -9
- package/vue/editor/index.js +26 -4
|
@@ -364,7 +364,7 @@ export function createViewportSurface(surface, options = {}) {
|
|
|
364
364
|
// Suppress newly introduced UA borders without overriding authored theme-dependent chrome.
|
|
365
365
|
for (const side of absentBorders) surface.style[`border${side}Width`] = "0";
|
|
366
366
|
} else {
|
|
367
|
-
Object.assign(surface.style, { padding: "0", border: "0", background: "transparent" });
|
|
367
|
+
Object.assign(surface.style, { padding: "0", border: "0", background: "transparent", overflow: "visible" });
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
const hideSurface = () => {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template component="ui-popover" module="./ui-popover.js">
|
|
2
2
|
<defs>
|
|
3
|
+
<prop name="bare" type="boolean" default="false"
|
|
4
|
+
>Delegates the surface to its content, with no padding, border, background, shadow, or overflow clipping.</prop>
|
|
3
5
|
<prop name="size" type="keyword" values="content, sm, md, lg" default="content"
|
|
4
6
|
>Optional size preset. content keeps the existing intrinsic sizing; the other sizes constrain the surface for compact, medium, or large content.</prop>
|
|
5
7
|
<prop name="open" type="boolean" default="false">Whether the popover is open initially or when set externally.</prop>
|
|
@@ -93,6 +95,15 @@
|
|
|
93
95
|
box-shadow: var(--_ui-popover-shadow, var(--ui-overlay-shadow, var(--ui-elevation-overlay, var(--ui-shadow-lg))));
|
|
94
96
|
}
|
|
95
97
|
|
|
98
|
+
/* A toolbar or card can supply its own surface, including an unclipped shadow. */
|
|
99
|
+
:host([bare]) .surface {
|
|
100
|
+
overflow: visible;
|
|
101
|
+
padding: 0;
|
|
102
|
+
border: 0;
|
|
103
|
+
background: transparent;
|
|
104
|
+
box-shadow: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
96
107
|
:host(:not(:state(internalOpen))) {
|
|
97
108
|
display: none;
|
|
98
109
|
}
|