@threadlabs/looma 0.43.0 → 0.43.1
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/ui-card/ui-card.html +6 -6
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +3 -0
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +4 -0
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +1 -0
- package/dist/index.js +1 -1
- package/docs/README.md +2 -2
- package/docs/card.html +2 -6
- package/docs/card.js +7 -37
- package/docs/catalog.json +214 -10
- package/docs/catalog.mjs +1 -1
- package/docs/customizer-render.mjs +7 -6
- package/docs/customizer.js +2 -7
- package/docs/documentation.css +3 -7
- package/docs/examples/ui-button/examples/08-loading.behavior.js +1 -1
- package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +1 -1
- package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +1 -0
- package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +81 -0
- package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +24 -0
- package/docs/examples/ui-search-shell/examples/00-preview.behavior.js +14 -0
- package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +7 -7
- package/docs/examples/ui-toast/examples/01-authored.behavior.js +2 -2
- package/docs/index.d.ts +1 -1
- package/docs/local-server.mjs +2 -5
- package/docs/pastoral.svg +54 -0
- package/docs/portrait.svg +15 -0
- package/docs/render.mjs +33 -3
- package/docs/site.mjs +22 -54
- package/package.json +1 -1
- package/styles/ui-card.css +6 -6
- package/vanilla/UiEditorTableOverlay.js +50 -36
- package/vue/UiCard.vue +6 -6
- package/vue/UiEditorTableOverlay.d.ts +11 -1
- package/vue/UiEditorTableOverlay.vue +98 -63
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +41 -13
- package/vue/components.css +54 -53
- package/docs/preview.js +0 -22
|
@@ -179,16 +179,16 @@
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
:host([size="sm"]) {
|
|
182
|
-
inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
183
|
-
max-inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
182
|
+
inline-size: min(22rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
183
|
+
max-inline-size: min(22rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
184
184
|
}
|
|
185
185
|
:host([size="md"]) {
|
|
186
|
-
inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
187
|
-
max-inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
186
|
+
inline-size: min(28rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
187
|
+
max-inline-size: min(28rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
188
188
|
}
|
|
189
189
|
:host([size="lg"]) {
|
|
190
|
-
inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
191
|
-
max-inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
190
|
+
inline-size: min(36rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
191
|
+
max-inline-size: min(36rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
@@ -35,6 +35,9 @@ export function connect(host) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
const stop = host.effect(() => {
|
|
38
|
+
// The deferred DOM pass cannot track these reads for the effect.
|
|
39
|
+
void host.props.open.value;
|
|
40
|
+
void host.props.anchorRect.value;
|
|
38
41
|
if (!authoredLabel) element.setAttribute("aria-label", String(host.props.label.value || "Mentions"));
|
|
39
42
|
const items = (Array.isArray(host.props.items.value) ? host.props.items.value : []).slice(0, 20);
|
|
40
43
|
host.state.rows = items.map((item) => ({ ...item, initials: item.initials ?? String(item.label).slice(0, 2).toUpperCase() }));
|
|
@@ -43,6 +43,10 @@ export function connect(host) {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
const stop = host.effect(() => {
|
|
46
|
+
// The deferred DOM pass cannot track these reads for the effect.
|
|
47
|
+
void host.props.open.value;
|
|
48
|
+
void host.props.anchorRect.value;
|
|
49
|
+
void host.props.query.value;
|
|
46
50
|
const items = Array.isArray(host.props.items.value) ? host.props.items.value : [];
|
|
47
51
|
if (!authoredLabel) element.setAttribute("aria-label", String(host.props.label.value || "Insert block"));
|
|
48
52
|
host.state.rows = items.map((item) => ({ ...item, value: String(item.value ?? item.title) }));
|