@threadlabs/looma 0.43.0 → 0.43.2
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/components/ui-site-header/ui-site-header.html +1 -1
- 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 +217 -13
- 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/styles/ui-site-header.css +1 -1
- 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/UiSiteHeader.vue +1 -1
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +41 -13
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/components.css +55 -54
- package/docs/preview.js +0 -22
package/docs/README.md
CHANGED
|
@@ -246,7 +246,7 @@ description: Sam has finished the morning checklist.
|
|
|
246
246
|
<office-status label="Ready for second breakfast"></office-status>
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
-
The example appears in
|
|
249
|
+
The first example also appears in the component directory, so keep it representative at a narrow card width. Full variations belong in the later reference examples. Optional `.behavior.js` or `.behavior.ts` companions export a default setup function receiving the example root; return a cleanup function when needed. Select controls through example-local data attributes: generated IDs and their label, trigger and command references are namespaced for each instance. Add `preview: resizable` to expose the shared card's width control, or `preview: stretch` when the sample needs the available inline width, such as percentage-based loading placeholders. Framework-specific `.snippet.html` and `.vue` companions provide literal source views.
|
|
250
250
|
|
|
251
251
|
Discovery reads definitions and descriptions without executing their controllers. New resources under a selected root appear after the local server rebuilds. External components keep their own contracts and supported token hooks; discovery does not make arbitrary components respond to Looma's tokens.
|
|
252
252
|
|
|
@@ -260,7 +260,7 @@ Use the `@threadlabs/looma/docs` entrypoint for programmatic discovery, catalog
|
|
|
260
260
|
|
|
261
261
|
## Saving and recovery
|
|
262
262
|
|
|
263
|
-
The local editor writes only the configured recipe and CSS inside the project. It rejects symlink paths, generated or dependency directories, cross-origin save requests and stale file revisions. A competing edit leaves your unsaved preview in place; reload and reconcile it before saving again. Examples
|
|
263
|
+
The local editor writes only the configured recipe and CSS inside the project. It rejects symlink paths, generated or dependency directories, cross-origin save requests and stale file revisions. A competing edit leaves your unsaved preview in place; reload and reconcile it before saving again. Examples are pre-rendered directly in the documentation page and share its styles and HTML Next runtime. Project component roots and example companions are trusted application code, so opt in only to sources you would run in your application. Example IDs and their label, trigger and command relationships are namespaced per specimen; companions can select stable authored hooks such as data-example-id. Width controls resize the inline stage; viewport media queries follow the documentation window.
|
|
264
264
|
|
|
265
265
|
The writer stages complete files, serializes saves with a project lock, and rolls back the recipe if replacing the CSS fails. If a process stops during a save or build, close the old editor before removing its `.looma/theme-write.lock` or `.looma/docs-build.lock`; restart and save the loaded recipe to regenerate a consistent pair. Change the server base, output directory or theme-file paths by restarting `dev`.
|
|
266
266
|
|
package/docs/card.html
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
<prop name="exampleTitle" type="string" default="">The selected authored example.</prop>
|
|
11
11
|
<prop name="previewOnly" type="boolean" default="false">Show only the live example, for compact theme samplers whose host supplies the heading.</prop>
|
|
12
12
|
<prop name="reference" type="boolean" default="false">Use the spacious full-reference example presentation.</prop>
|
|
13
|
-
<prop name="src" type="string" default="">The compiled isolated example page.</prop>
|
|
14
13
|
<prop name="resizable" type="boolean" default="false">Expose a width control for responsive examples.</prop>
|
|
15
14
|
<prop name="category" type="string" default="forms">The shared category identity.</prop>
|
|
16
15
|
<prop name="tag" type="string" default="">The component's authored tag.</prop>
|
|
@@ -18,11 +17,10 @@
|
|
|
18
17
|
<prop name="nativeRoot" type="string" default="">The component's semantic native root.</prop>
|
|
19
18
|
<prop name="href" type="string" default="">The component reference page.</prop>
|
|
20
19
|
<prop name="removable" type="boolean" default="false">Offer removal when this card is selected in the customizer.</prop>
|
|
21
|
-
<prop name="loading" type="keyword" values="lazy, eager" default="lazy">Load visible catalog cards lazily; selected customizer cards eagerly.</prop>
|
|
22
20
|
</defs>
|
|
23
21
|
<article from:data-example-card="$identity" from:data-component-card="$tag" from:data-category="$category">
|
|
24
22
|
<header $if="$reference" class="example-heading"><slot name="heading"><h3>{$exampleTitle}</h3><p>{$description}</p></slot></header>
|
|
25
|
-
<div class="preview"><
|
|
23
|
+
<div class="preview"><div class="stage" $ref="stage"><slot name="preview"></slot></div></div>
|
|
26
24
|
<section $if="$reference" class="example-code"><h4>Code</h4><slot name="code"></slot></section>
|
|
27
25
|
<div $if="$resizable" class="preview-width"> <ui-form-field><label slot="label">Preview width</label><span slot="help">Explore the example at a narrower width.</span><ui-input $ref="width" type="number" min="240" max="1600" value="720" aria-label="Preview width in pixels" size="sm"></ui-input></ui-form-field></div>
|
|
28
26
|
<div $if="not $reference and not $previewOnly" class="body"><ui-stack gap="xs">
|
|
@@ -58,12 +56,10 @@
|
|
|
58
56
|
.example-code h4 { margin: 0 0 var(--ui-space-3) !important; font-size: var(--ui-font-size-md); }
|
|
59
57
|
.example-heading p { margin: var(--ui-space-2) 0 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-sm); }
|
|
60
58
|
:host([reference]) .preview { min-block-size: 11rem; display: grid !important; align-items: center !important; border-block-end: 0; }
|
|
61
|
-
:host([reference]) iframe { min-block-size: 11rem; }
|
|
62
|
-
:host([reference][category="overlay"]) iframe { min-block-size: 26rem; }
|
|
63
59
|
:host([reference]) .preview::before { display: none; }
|
|
64
60
|
.preview { position: relative; min-block-size: 13rem; overflow: hidden; border-block-end: var(--ui-border-width) solid var(--ui-border); background: color-mix(in srgb, var(--_card-accent) 5%, var(--ui-surface)); }
|
|
65
61
|
.preview::before { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 3.5rem; block-size: 3px; background: var(--_card-accent); content: ""; z-index: 1; }
|
|
66
|
-
|
|
62
|
+
.stage { inline-size: var(--_preview-width, 100%); max-inline-size: 100%; min-inline-size: 0; }
|
|
67
63
|
footer { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: var(--ui-space-2) !important; }
|
|
68
64
|
.preview-width { padding: var(--ui-space-4) !important; }
|
|
69
65
|
.body { padding: var(--ui-space-5) !important; }
|
package/docs/card.js
CHANGED
|
@@ -1,48 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
1
|
+
import { exampleBehaviors } from './example-behaviors.js';
|
|
2
|
+
/** Cards share their document's theme and runtime; width controls size only this stage. */
|
|
3
3
|
export function connect(host) {
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const removeCard = () => host.element.dispatchEvent(new CustomEvent("looma-example-remove", { bubbles: true, detail: { id: host.props.identity.value } }));
|
|
8
|
-
const view = frame.ownerDocument.defaultView;
|
|
9
|
-
let theme = documentationTheme(view)?.css ?? '';
|
|
10
|
-
const documentTheme = () => { theme = documentationTheme(view)?.css ?? ''; send(); };
|
|
11
|
-
const preference = view.matchMedia('(prefers-color-scheme: dark)');
|
|
12
|
-
const send = () => {
|
|
13
|
-
if (!host.element.getClientRects().length) return;
|
|
14
|
-
const scheme = view.getComputedStyle(host.element).colorScheme;
|
|
15
|
-
const mode = scheme === 'dark' || (scheme.includes('dark') && scheme.includes('light') && preference.matches) ? 'dark' : 'light';
|
|
16
|
-
frame.contentWindow?.postMessage({ type: 'looma-theme', css: theme, mode, reference: Boolean(host.props.reference.value) }, '*');
|
|
17
|
-
};
|
|
18
|
-
// Observe only this card's ancestors: an opposite-mode boundary belongs to its own subtree.
|
|
19
|
-
const modes = new view.MutationObserver(send);
|
|
20
|
-
for (let ancestor = host.element; ancestor; ancestor = ancestor.parentElement) modes.observe(ancestor, { attributes: true, attributeFilter: ['data-theme', 'style', 'class'] });
|
|
21
|
-
const message = event => {
|
|
22
|
-
if (event.source !== frame.contentWindow) return;
|
|
23
|
-
if (event.data?.type === 'looma-preview-ready') send();
|
|
24
|
-
if (event.data?.type === 'looma-preview-height' && Number.isFinite(event.data.height)) frame.height = String(Math.max(120, Math.min(2400, Math.ceil(event.data.height))));
|
|
25
|
-
};
|
|
26
|
-
const update = event => { theme = event.detail.css; send(); };
|
|
4
|
+
const { stage, width, remove } = host.refs;
|
|
5
|
+
const stopExample = exampleBehaviors[host.props.identity.value]?.(host.element.querySelector('[data-preview]'));
|
|
6
|
+
const removeCard = () => host.element.dispatchEvent(new CustomEvent('looma-example-remove', { bubbles: true, detail: { id: host.props.identity.value } }));
|
|
27
7
|
const resize = event => {
|
|
28
8
|
const value = Number(event.detail?.value ?? event.target.value);
|
|
29
|
-
if (value >= 240 && value <= 1600)
|
|
9
|
+
if (value >= 240 && value <= 1600) stage.style.setProperty('--_preview-width', `${value}px`);
|
|
30
10
|
};
|
|
31
|
-
host.element.addEventListener('looma-theme-preview', update);
|
|
32
11
|
width?.addEventListener('input', resize);
|
|
33
12
|
remove?.addEventListener('click', removeCard);
|
|
34
|
-
view.addEventListener('message', message);
|
|
35
|
-
view.addEventListener(themeEvent, documentTheme);
|
|
36
|
-
frame.addEventListener('load', send);
|
|
37
|
-
preference.addEventListener('change', send);
|
|
38
13
|
return () => {
|
|
39
|
-
|
|
14
|
+
stopExample?.();
|
|
40
15
|
width?.removeEventListener('input', resize);
|
|
41
16
|
remove?.removeEventListener('click', removeCard);
|
|
42
|
-
view.removeEventListener('message', message);
|
|
43
|
-
view.removeEventListener(themeEvent, documentTheme);
|
|
44
|
-
frame.removeEventListener('load', send);
|
|
45
|
-
preference.removeEventListener('change', send);
|
|
46
|
-
modes.disconnect();
|
|
47
17
|
};
|
|
48
18
|
}
|
package/docs/catalog.json
CHANGED
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
],
|
|
464
464
|
"schemaVersion": 1,
|
|
465
465
|
"package": "@threadlabs/looma",
|
|
466
|
-
"version": "0.43.
|
|
466
|
+
"version": "0.43.2",
|
|
467
467
|
"groups": [
|
|
468
468
|
{
|
|
469
469
|
"id": "layout",
|
|
@@ -544,6 +544,16 @@
|
|
|
544
544
|
"vue"
|
|
545
545
|
],
|
|
546
546
|
"examples": [
|
|
547
|
+
{
|
|
548
|
+
"id": "@threadlabs/looma/ui-action-bar/00-preview",
|
|
549
|
+
"name": "00-preview",
|
|
550
|
+
"title": "Form actions",
|
|
551
|
+
"description": "Secondary and primary actions in a compact footer.",
|
|
552
|
+
"markup": "<ui-action-bar><ui-button slot=\"secondary\" size=\"sm\">Cancel</ui-button><ui-button slot=\"primary\" size=\"sm\" preset=\"primary\">Save</ui-button></ui-action-bar>",
|
|
553
|
+
"resizable": false,
|
|
554
|
+
"bindings": "",
|
|
555
|
+
"frameworks": {}
|
|
556
|
+
},
|
|
547
557
|
{
|
|
548
558
|
"id": "@threadlabs/looma/ui-action-bar/01-form-footer",
|
|
549
559
|
"name": "01-form-footer",
|
|
@@ -643,6 +653,17 @@
|
|
|
643
653
|
"vue"
|
|
644
654
|
],
|
|
645
655
|
"examples": [
|
|
656
|
+
{
|
|
657
|
+
"id": "@threadlabs/looma/ui-affordance-scope/00-preview",
|
|
658
|
+
"name": "00-preview",
|
|
659
|
+
"title": "Nearby actions",
|
|
660
|
+
"description": "Move toward the guide dots to reveal the actions.",
|
|
661
|
+
"markup": "<ui-affordance-scope><ui-stack gap=\"s\"><ui-text variant=\"caption\">Move toward the actions</ui-text><ui-cluster><ui-icon-button\n anticipatory\n label=\"Add\"\n variant=\"outline\"\n ><ui-icon name=\"plus\"></ui-icon></ui-icon-button><ui-icon-button anticipatory label=\"More actions\" variant=\"outline\"><ui-icon\n name=\"ellipsis\"\n ></ui-icon></ui-icon-button></ui-cluster></ui-stack></ui-affordance-scope>",
|
|
662
|
+
"resizable": false,
|
|
663
|
+
"stretch": true,
|
|
664
|
+
"bindings": "",
|
|
665
|
+
"frameworks": {}
|
|
666
|
+
},
|
|
646
667
|
{
|
|
647
668
|
"id": "@threadlabs/looma/ui-affordance-scope/01-default-radius",
|
|
648
669
|
"name": "01-default-radius",
|
|
@@ -915,7 +936,7 @@
|
|
|
915
936
|
"name": "02-image",
|
|
916
937
|
"title": "Image",
|
|
917
938
|
"description": "Place an ordinary image inside Avatar; its own alt text supplies the accessible name and the fallback remains available if loading fails.",
|
|
918
|
-
"markup": "<ui-avatar name=\"Maya Chen\" fallback=\"MC\">\n <img src=\"/
|
|
939
|
+
"markup": "<ui-avatar name=\"Maya Chen\" fallback=\"MC\">\n <img src=\"/_looma/portrait.svg\" alt=\"Maya Chen\" />\n</ui-avatar>",
|
|
919
940
|
"resizable": false,
|
|
920
941
|
"bindings": "",
|
|
921
942
|
"frameworks": {}
|
|
@@ -3170,7 +3191,7 @@
|
|
|
3170
3191
|
"name": "08-loading",
|
|
3171
3192
|
"title": "Loading action",
|
|
3172
3193
|
"description": "Press Save changes to see the loading state. Its spinner appears beside the label, and the action stays focusable while another press is blocked.",
|
|
3173
|
-
"markup": "<ui-button id=\"docs-save-changes\" variant=\"solid\">Save changes</ui-button>",
|
|
3194
|
+
"markup": "<ui-button id=\"docs-save-changes\" data-example-id=\"docs-save-changes\" variant=\"solid\">Save changes</ui-button>",
|
|
3174
3195
|
"resizable": false,
|
|
3175
3196
|
"bindings": "",
|
|
3176
3197
|
"frameworks": {
|
|
@@ -3849,6 +3870,16 @@
|
|
|
3849
3870
|
"vue"
|
|
3850
3871
|
],
|
|
3851
3872
|
"examples": [
|
|
3873
|
+
{
|
|
3874
|
+
"id": "@threadlabs/looma/ui-card/00-preview",
|
|
3875
|
+
"name": "00-preview",
|
|
3876
|
+
"title": "Content card",
|
|
3877
|
+
"description": "A single surface with a heading and supporting text.",
|
|
3878
|
+
"markup": "<ui-card padding=\"sm\"><ui-stack gap=\"xs\"><ui-text variant=\"heading\" as=\"h4\">Team notes</ui-text><ui-text variant=\"caption\"\n >A clear place for shared work.</ui-text></ui-stack></ui-card>",
|
|
3879
|
+
"resizable": false,
|
|
3880
|
+
"bindings": "",
|
|
3881
|
+
"frameworks": {}
|
|
3882
|
+
},
|
|
3852
3883
|
{
|
|
3853
3884
|
"id": "@threadlabs/looma/ui-card/01-variants",
|
|
3854
3885
|
"name": "01-variants",
|
|
@@ -4242,7 +4273,7 @@
|
|
|
4242
4273
|
"name": "02-checked-indeterminate-and-disabled",
|
|
4243
4274
|
"title": "Select all and mixed state",
|
|
4244
4275
|
"description": "Change an item to see the parent return to a mixed state. Clicking the parent selects or clears the whole group.",
|
|
4245
|
-
"markup": "<ui-stack gap=\"s\">\n <ui-checkbox id=\"docs-checkbox-all\" indeterminate>Select all</ui-checkbox>\n <ui-stack gap=\"xs\" style=\"padding-inline-start: 1.5rem\">\n <ui-checkbox class=\"docs-checkbox-item\" checked>Design</ui-checkbox>\n <ui-checkbox class=\"docs-checkbox-item\">Build</ui-checkbox>\n <ui-checkbox class=\"docs-checkbox-item\">Review</ui-checkbox>\n </ui-stack>\n</ui-stack>",
|
|
4276
|
+
"markup": "<ui-stack gap=\"s\">\n <ui-checkbox id=\"docs-checkbox-all\" data-example-id=\"docs-checkbox-all\" indeterminate>Select all</ui-checkbox>\n <ui-stack gap=\"xs\" style=\"padding-inline-start: 1.5rem\">\n <ui-checkbox class=\"docs-checkbox-item\" checked>Design</ui-checkbox>\n <ui-checkbox class=\"docs-checkbox-item\">Build</ui-checkbox>\n <ui-checkbox class=\"docs-checkbox-item\">Review</ui-checkbox>\n </ui-stack>\n</ui-stack>",
|
|
4246
4277
|
"resizable": false,
|
|
4247
4278
|
"bindings": "",
|
|
4248
4279
|
"frameworks": {
|
|
@@ -4846,6 +4877,16 @@
|
|
|
4846
4877
|
"vue"
|
|
4847
4878
|
],
|
|
4848
4879
|
"examples": [
|
|
4880
|
+
{
|
|
4881
|
+
"id": "@threadlabs/looma/ui-color-picker/00-preview",
|
|
4882
|
+
"name": "00-preview",
|
|
4883
|
+
"title": "Accent color",
|
|
4884
|
+
"description": "One editable color with its accessible label.",
|
|
4885
|
+
"markup": "<ui-color-picker value=\"#7658d6\" label=\"Accent color\"></ui-color-picker>",
|
|
4886
|
+
"resizable": false,
|
|
4887
|
+
"bindings": "",
|
|
4888
|
+
"frameworks": {}
|
|
4889
|
+
},
|
|
4849
4890
|
{
|
|
4850
4891
|
"id": "@threadlabs/looma/ui-color-picker/01-shapes-and-sizes",
|
|
4851
4892
|
"name": "01-shapes-and-sizes",
|
|
@@ -7038,6 +7079,16 @@
|
|
|
7038
7079
|
"vue"
|
|
7039
7080
|
],
|
|
7040
7081
|
"examples": [
|
|
7082
|
+
{
|
|
7083
|
+
"id": "@threadlabs/looma/ui-cover/00-preview",
|
|
7084
|
+
"name": "00-preview",
|
|
7085
|
+
"title": "Centered content",
|
|
7086
|
+
"description": "A cover centers its content in the available space.",
|
|
7087
|
+
"markup": "<ui-cover size=\"fill\"><ui-card padding=\"sm\"><ui-text variant=\"label\">Welcome back</ui-text></ui-card></ui-cover>",
|
|
7088
|
+
"resizable": false,
|
|
7089
|
+
"bindings": "",
|
|
7090
|
+
"frameworks": {}
|
|
7091
|
+
},
|
|
7041
7092
|
{
|
|
7042
7093
|
"id": "@threadlabs/looma/ui-cover/01-default",
|
|
7043
7094
|
"name": "01-default",
|
|
@@ -7259,6 +7310,17 @@
|
|
|
7259
7310
|
"vue"
|
|
7260
7311
|
],
|
|
7261
7312
|
"examples": [
|
|
7313
|
+
{
|
|
7314
|
+
"id": "@threadlabs/looma/ui-curve-editor/00-preview",
|
|
7315
|
+
"name": "00-preview",
|
|
7316
|
+
"title": "Edit an easing curve",
|
|
7317
|
+
"description": "Expand to edit the curve and its exact coordinates.",
|
|
7318
|
+
"markup": "<ui-stack gap=\"s\"><ui-text variant=\"code\">ease-in-out</ui-text><ui-disclosure summary=\"Edit easing curve\"><ui-curve-editor\n label=\"Easing curve\"\n value=\"ease-in-out\"\n size=\"sm\"\n ></ui-curve-editor></ui-disclosure></ui-stack>",
|
|
7319
|
+
"resizable": false,
|
|
7320
|
+
"stretch": true,
|
|
7321
|
+
"bindings": "",
|
|
7322
|
+
"frameworks": {}
|
|
7323
|
+
},
|
|
7262
7324
|
{
|
|
7263
7325
|
"id": "@threadlabs/looma/ui-curve-editor/01-editing",
|
|
7264
7326
|
"name": "01-editing",
|
|
@@ -9900,6 +9962,17 @@
|
|
|
9900
9962
|
"vue"
|
|
9901
9963
|
],
|
|
9902
9964
|
"examples": [
|
|
9965
|
+
{
|
|
9966
|
+
"id": "@threadlabs/looma/ui-editor-link-card/00-preview",
|
|
9967
|
+
"name": "00-preview",
|
|
9968
|
+
"title": "Linked page",
|
|
9969
|
+
"description": "A resolved page title leaves room for the link actions.",
|
|
9970
|
+
"markup": "<ui-editor-link-card href=\"https://example.com/guide\" open-href=\"https://example.com/guide\" label=\"Guide\"></ui-editor-link-card>",
|
|
9971
|
+
"resizable": false,
|
|
9972
|
+
"stretch": true,
|
|
9973
|
+
"bindings": "",
|
|
9974
|
+
"frameworks": {}
|
|
9975
|
+
},
|
|
9903
9976
|
{
|
|
9904
9977
|
"id": "@threadlabs/looma/ui-editor-link-card/01-address",
|
|
9905
9978
|
"name": "01-address",
|
|
@@ -10618,6 +10691,17 @@
|
|
|
10618
10691
|
"vue"
|
|
10619
10692
|
],
|
|
10620
10693
|
"examples": [
|
|
10694
|
+
{
|
|
10695
|
+
"id": "@threadlabs/looma/ui-editor-mention-menu/00-preview",
|
|
10696
|
+
"name": "00-preview",
|
|
10697
|
+
"title": "Mention a teammate",
|
|
10698
|
+
"description": "Open the interactive surface when needed; it starts closed in the component directory.",
|
|
10699
|
+
"markup": "<ui-button data-demo-trigger aria-haspopup=\"listbox\" aria-expanded=\"false\" aria-controls=\"preview-mentions\"\n>Mention a teammate</ui-button><ui-editor-mention-menu\n id=\"preview-mentions\"\n tabindex=\"-1\"\n data-demo-surface\n items='[{\"id\":\"maya\",\"label\":\"Maya Chen\",\"detail\":\"Design\",\"initials\":\"MC\"},{\"id\":\"noah\",\"label\":\"Noah Williams\",\"detail\":\"Engineering\",\"initials\":\"NW\"}]'\n></ui-editor-mention-menu>",
|
|
10700
|
+
"resizable": false,
|
|
10701
|
+
"bindings": "items=people",
|
|
10702
|
+
"frameworks": {},
|
|
10703
|
+
"behavior": "@threadlabs/looma/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js"
|
|
10704
|
+
},
|
|
10621
10705
|
{
|
|
10622
10706
|
"id": "@threadlabs/looma/ui-editor-mention-menu/01-open",
|
|
10623
10707
|
"name": "01-open",
|
|
@@ -11150,6 +11234,17 @@
|
|
|
11150
11234
|
"vue"
|
|
11151
11235
|
],
|
|
11152
11236
|
"examples": [
|
|
11237
|
+
{
|
|
11238
|
+
"id": "@threadlabs/looma/ui-editor-slash-menu/00-preview",
|
|
11239
|
+
"name": "00-preview",
|
|
11240
|
+
"title": "Insert a block",
|
|
11241
|
+
"description": "Open the interactive surface when needed; it starts closed in the component directory.",
|
|
11242
|
+
"markup": "<ui-button data-demo-trigger aria-haspopup=\"listbox\" aria-expanded=\"false\" aria-controls=\"preview-commands\">Insert a block</ui-button>\n<ui-editor-slash-menu id=\"preview-commands\" data-demo-surface tabindex=\"-1\">\n <ui-editor-slash-menu-item id=\"preview-text\" value=\"text\" icon=\"pilcrow\" description=\"Plain paragraph\">Text</ui-editor-slash-menu-item>\n <ui-editor-slash-menu-item id=\"preview-table\" value=\"table\" icon=\"table\" description=\"Rows and columns\">Table</ui-editor-slash-menu-item>\n</ui-editor-slash-menu>",
|
|
11243
|
+
"resizable": false,
|
|
11244
|
+
"bindings": "",
|
|
11245
|
+
"frameworks": {},
|
|
11246
|
+
"behavior": "@threadlabs/looma/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js"
|
|
11247
|
+
},
|
|
11153
11248
|
{
|
|
11154
11249
|
"id": "@threadlabs/looma/ui-editor-slash-menu/01-open",
|
|
11155
11250
|
"name": "01-open",
|
|
@@ -12067,7 +12162,12 @@
|
|
|
12067
12162
|
"detailDocs": "Emitted with the declared detail payload."
|
|
12068
12163
|
}
|
|
12069
12164
|
],
|
|
12070
|
-
"slots": [
|
|
12165
|
+
"slots": [
|
|
12166
|
+
{
|
|
12167
|
+
"name": "default",
|
|
12168
|
+
"description": "Default child content."
|
|
12169
|
+
}
|
|
12170
|
+
],
|
|
12071
12171
|
"group": "editor",
|
|
12072
12172
|
"id": "@threadlabs/looma/ui-editor-table-overlay",
|
|
12073
12173
|
"title": "Editor Table Overlay",
|
|
@@ -12077,6 +12177,18 @@
|
|
|
12077
12177
|
"vue"
|
|
12078
12178
|
],
|
|
12079
12179
|
"examples": [
|
|
12180
|
+
{
|
|
12181
|
+
"id": "@threadlabs/looma/ui-editor-table-overlay/00-preview",
|
|
12182
|
+
"name": "00-preview",
|
|
12183
|
+
"title": "Table edge controls",
|
|
12184
|
+
"description": "A small table with measured row and column boundaries; hover an edge to reveal its insertion action.",
|
|
12185
|
+
"markup": "<ui-editor-table-overlay data-demo-table-controls open><ui-table><table aria-label=\"Example table\">\n <tbody>\n <tr>\n <td>A1</td>\n <td>B1</td>\n </tr>\n <tr>\n <td>A2</td>\n <td>B2</td>\n </tr>\n </tbody>\n </table></ui-table></ui-editor-table-overlay>",
|
|
12186
|
+
"resizable": false,
|
|
12187
|
+
"stretch": true,
|
|
12188
|
+
"bindings": "",
|
|
12189
|
+
"frameworks": {},
|
|
12190
|
+
"behavior": "@threadlabs/looma/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js"
|
|
12191
|
+
},
|
|
12080
12192
|
{
|
|
12081
12193
|
"id": "@threadlabs/looma/ui-editor-table-overlay/01-open-with-geometry",
|
|
12082
12194
|
"name": "01-open-with-geometry",
|
|
@@ -14153,7 +14265,7 @@
|
|
|
14153
14265
|
"name": "01-image",
|
|
14154
14266
|
"title": "Image",
|
|
14155
14267
|
"description": "A semantic image surface with automatic sizing and a text alternative.",
|
|
14156
|
-
"markup": "<ui-image src=\"/
|
|
14268
|
+
"markup": "<ui-image src=\"/_looma/pastoral.svg\" alt=\"Green hills, a farmhouse, and sheep beside a winding stream\" width=\"320\" height=\"200\"></ui-image>",
|
|
14157
14269
|
"resizable": false,
|
|
14158
14270
|
"bindings": "",
|
|
14159
14271
|
"frameworks": {}
|
|
@@ -14163,7 +14275,7 @@
|
|
|
14163
14275
|
"name": "02-selected",
|
|
14164
14276
|
"title": "Selected and resizable",
|
|
14165
14277
|
"description": "Four corner handles keep the intrinsic ratio while reporting preview, commit, and cancel intent; a consumer persists committed dimensions.",
|
|
14166
|
-
"markup": "<ui-image
|
|
14278
|
+
"markup": "<ui-image\n src=\"/_looma/pastoral.svg\"\n alt=\"Green hills, a farmhouse, and sheep beside a winding stream\"\n width=\"320\"\n height=\"200\"\n placement=\"center\"\n selected\n resizable\n></ui-image>",
|
|
14167
14279
|
"resizable": false,
|
|
14168
14280
|
"bindings": "",
|
|
14169
14281
|
"frameworks": {}
|
|
@@ -20011,6 +20123,17 @@
|
|
|
20011
20123
|
"vue"
|
|
20012
20124
|
],
|
|
20013
20125
|
"examples": [
|
|
20126
|
+
{
|
|
20127
|
+
"id": "@threadlabs/looma/ui-search-shell/00-preview",
|
|
20128
|
+
"name": "00-preview",
|
|
20129
|
+
"title": "Search commands",
|
|
20130
|
+
"description": "Open the interactive surface when needed; it starts closed in the component directory.",
|
|
20131
|
+
"markup": "<ui-button data-demo-trigger>Search commands</ui-button><ui-search-shell data-demo-surface label=\"Search commands\"><ui-input\n slot=\"search\"\n type=\"search\"\n aria-label=\"Search commands\"\n placeholder=\"Find a command\"\n ></ui-input><ui-search-result-row slot=\"body\"><ui-icon slot=\"leading\" name=\"file-text\"></ui-icon><span slot=\"title\"\n >Team notes</span></ui-search-result-row></ui-search-shell>",
|
|
20132
|
+
"resizable": false,
|
|
20133
|
+
"bindings": "",
|
|
20134
|
+
"frameworks": {},
|
|
20135
|
+
"behavior": "@threadlabs/looma/docs/examples/ui-search-shell/examples/00-preview.behavior.js"
|
|
20136
|
+
},
|
|
20014
20137
|
{
|
|
20015
20138
|
"id": "@threadlabs/looma/ui-search-shell/01-open",
|
|
20016
20139
|
"name": "01-open",
|
|
@@ -20026,7 +20149,7 @@
|
|
|
20026
20149
|
"name": "02-label-dismissible-status-and-footer",
|
|
20027
20150
|
"title": "label, dismissible, status, and footer",
|
|
20028
20151
|
"description": "Label names the dialog, dismissible enables backdrop dismissal, and the status, body, and footer slots host application-owned search state. Escape always closes it.",
|
|
20029
|
-
"markup": "<ui-search-shell id=\"docs-search-shell\" open dismissible label=\"Search documentation\">\n <ui-input
|
|
20152
|
+
"markup": "<ui-search-shell id=\"docs-search-shell\" data-example-id=\"docs-search-shell\" open dismissible label=\"Search documentation\">\n <ui-input\n id=\"docs-search-input\"\n data-example-id=\"docs-search-input\"\n slot=\"search\"\n type=\"search\"\n aria-label=\"Search documentation\"\n placeholder=\"Search documentation\"\n >\n </ui-input>\n <div id=\"docs-search-status\" data-example-id=\"docs-search-status\" slot=\"status\" aria-live=\"polite\">3 results</div>\n <div id=\"docs-search-results\" data-example-id=\"docs-search-results\" slot=\"body\">\n <ui-search-result-row id=\"docs-result-design-tokens\" data-example-id=\"docs-result-design-tokens\">\n <strong slot=\"title\">Design tokens</strong>\n <span slot=\"excerpt\">Color, type, spacing, and motion.</span>\n </ui-search-result-row>\n <ui-search-result-row id=\"docs-result-token-overrides\" data-example-id=\"docs-result-token-overrides\">\n <strong slot=\"title\">Token overrides</strong>\n <span slot=\"excerpt\">Customize shared and component tokens.</span>\n </ui-search-result-row>\n <ui-search-result-row id=\"docs-result-button-variants\" data-example-id=\"docs-result-button-variants\">\n <strong slot=\"title\">Button variants</strong>\n <span slot=\"excerpt\">Choose solid, outline, ghost, or danger.</span>\n </ui-search-result-row>\n <p id=\"docs-search-empty\" data-example-id=\"docs-search-empty\" hidden>No matching documentation.</p>\n </div>\n <form slot=\"footer\" method=\"dialog\">\n <ui-button type=\"submit\" size=\"sm\">Close</ui-button>\n </form>\n</ui-search-shell>",
|
|
20030
20153
|
"resizable": false,
|
|
20031
20154
|
"bindings": "",
|
|
20032
20155
|
"frameworks": {
|
|
@@ -21103,6 +21226,16 @@
|
|
|
21103
21226
|
"vue"
|
|
21104
21227
|
],
|
|
21105
21228
|
"examples": [
|
|
21229
|
+
{
|
|
21230
|
+
"id": "@threadlabs/looma/ui-sidebar/00-preview",
|
|
21231
|
+
"name": "00-preview",
|
|
21232
|
+
"title": "Workspace navigation",
|
|
21233
|
+
"description": "A compact sidebar with its own toggle for narrow screens.",
|
|
21234
|
+
"markup": "<ui-sidebar id=\"preview-sidebar\" width=\"176\" min-width=\"160\" breakpoint=\"sm\" aria-label=\"Workspace\"><ui-stack gap=\"xs\"><ui-nav-item href=\"#notes\" current=\"true\"\n >Notes</ui-nav-item><ui-nav-item href=\"#files\">Files</ui-nav-item></ui-stack></ui-sidebar><ui-icon-button\n commandfor=\"preview-sidebar\"\n command=\"--toggle\"\n label=\"Toggle sidebar\"\n><ui-icon name=\"panel-left\"></ui-icon></ui-icon-button>",
|
|
21235
|
+
"resizable": false,
|
|
21236
|
+
"bindings": "",
|
|
21237
|
+
"frameworks": {}
|
|
21238
|
+
},
|
|
21106
21239
|
{
|
|
21107
21240
|
"id": "@threadlabs/looma/ui-sidebar/01-app-shell",
|
|
21108
21241
|
"name": "01-app-shell",
|
|
@@ -21173,9 +21306,6 @@
|
|
|
21173
21306
|
}
|
|
21174
21307
|
],
|
|
21175
21308
|
"shared": [
|
|
21176
|
-
{
|
|
21177
|
-
"name": "--ui-accent-active"
|
|
21178
|
-
},
|
|
21179
21309
|
{
|
|
21180
21310
|
"name": "--ui-border"
|
|
21181
21311
|
},
|
|
@@ -21203,6 +21333,9 @@
|
|
|
21203
21333
|
{
|
|
21204
21334
|
"name": "--ui-font-size-sm"
|
|
21205
21335
|
},
|
|
21336
|
+
{
|
|
21337
|
+
"name": "--ui-link-color"
|
|
21338
|
+
},
|
|
21206
21339
|
{
|
|
21207
21340
|
"name": "--ui-space-2"
|
|
21208
21341
|
},
|
|
@@ -21307,6 +21440,16 @@
|
|
|
21307
21440
|
"vue"
|
|
21308
21441
|
],
|
|
21309
21442
|
"examples": [
|
|
21443
|
+
{
|
|
21444
|
+
"id": "@threadlabs/looma/ui-site-header/00-preview",
|
|
21445
|
+
"name": "00-preview",
|
|
21446
|
+
"title": "Compact header",
|
|
21447
|
+
"description": "Branding and a trailing action in a compact header.",
|
|
21448
|
+
"markup": "<ui-site-header><a slot=\"brand\" href=\"#home\"><ui-icon name=\"compass\"></ui-icon>Folio</a><ui-icon-button slot=\"actions\" label=\"Search\" size=\"sm\"><ui-icon\n name=\"search\"\n ></ui-icon></ui-icon-button></ui-site-header>",
|
|
21449
|
+
"resizable": false,
|
|
21450
|
+
"bindings": "",
|
|
21451
|
+
"frameworks": {}
|
|
21452
|
+
},
|
|
21310
21453
|
{
|
|
21311
21454
|
"id": "@threadlabs/looma/ui-site-header/01-default",
|
|
21312
21455
|
"name": "01-default",
|
|
@@ -21440,6 +21583,17 @@
|
|
|
21440
21583
|
"vue"
|
|
21441
21584
|
],
|
|
21442
21585
|
"examples": [
|
|
21586
|
+
{
|
|
21587
|
+
"id": "@threadlabs/looma/ui-skeleton/00-preview",
|
|
21588
|
+
"name": "00-preview",
|
|
21589
|
+
"title": "Loading text",
|
|
21590
|
+
"description": "Placeholders reserve real line boxes while content loads.",
|
|
21591
|
+
"markup": "<ui-stack gap=\"xs\"><ui-skeleton></ui-skeleton><ui-skeleton width=\"85%\"></ui-skeleton><ui-skeleton width=\"60%\"></ui-skeleton></ui-stack>",
|
|
21592
|
+
"resizable": false,
|
|
21593
|
+
"stretch": true,
|
|
21594
|
+
"bindings": "",
|
|
21595
|
+
"frameworks": {}
|
|
21596
|
+
},
|
|
21443
21597
|
{
|
|
21444
21598
|
"id": "@threadlabs/looma/ui-skeleton/01-text",
|
|
21445
21599
|
"name": "01-text",
|
|
@@ -22124,6 +22278,16 @@
|
|
|
22124
22278
|
"vue"
|
|
22125
22279
|
],
|
|
22126
22280
|
"examples": [
|
|
22281
|
+
{
|
|
22282
|
+
"id": "@threadlabs/looma/ui-status-message/00-preview",
|
|
22283
|
+
"name": "00-preview",
|
|
22284
|
+
"title": "Empty state",
|
|
22285
|
+
"description": "One empty state and its next action.",
|
|
22286
|
+
"markup": "<ui-status-message heading=\"No notes yet\"><ui-button slot=\"action\" size=\"sm\" preset=\"primary\">Create a note</ui-button></ui-status-message>",
|
|
22287
|
+
"resizable": false,
|
|
22288
|
+
"bindings": "",
|
|
22289
|
+
"frameworks": {}
|
|
22290
|
+
},
|
|
22127
22291
|
{
|
|
22128
22292
|
"id": "@threadlabs/looma/ui-status-message/01-kinds",
|
|
22129
22293
|
"name": "01-kinds",
|
|
@@ -22261,6 +22425,16 @@
|
|
|
22261
22425
|
"vue"
|
|
22262
22426
|
],
|
|
22263
22427
|
"examples": [
|
|
22428
|
+
{
|
|
22429
|
+
"id": "@threadlabs/looma/ui-swatch/00-preview",
|
|
22430
|
+
"name": "00-preview",
|
|
22431
|
+
"title": "Choose a color",
|
|
22432
|
+
"description": "Three tones show selection without overflowing the compact card.",
|
|
22433
|
+
"markup": "<ui-radio-group label=\"Color\" value=\"blue\"><ui-swatch tone=\"blue\"></ui-swatch><ui-swatch tone=\"green\"></ui-swatch><ui-swatch\n tone=\"purple\"\n ></ui-swatch></ui-radio-group>",
|
|
22434
|
+
"resizable": false,
|
|
22435
|
+
"bindings": "",
|
|
22436
|
+
"frameworks": {}
|
|
22437
|
+
},
|
|
22264
22438
|
{
|
|
22265
22439
|
"id": "@threadlabs/looma/ui-swatch/01-tones",
|
|
22266
22440
|
"name": "01-tones",
|
|
@@ -22939,6 +23113,16 @@
|
|
|
22939
23113
|
"vue"
|
|
22940
23114
|
],
|
|
22941
23115
|
"examples": [
|
|
23116
|
+
{
|
|
23117
|
+
"id": "@threadlabs/looma/ui-table/00-preview",
|
|
23118
|
+
"name": "00-preview",
|
|
23119
|
+
"title": "Recent updates",
|
|
23120
|
+
"description": "A compact two-column table with readable headings and two rows.",
|
|
23121
|
+
"markup": "<ui-table><table>\n <caption>Recent updates</caption>\n <thead>\n <tr>\n <th scope=\"col\">Page</th>\n <th scope=\"col\">Status</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th scope=\"row\">Roadmap</th>\n <td>Draft</td>\n </tr>\n <tr>\n <th scope=\"row\">Guide</th>\n <td>Ready</td>\n </tr>\n </tbody>\n </table></ui-table>",
|
|
23122
|
+
"resizable": false,
|
|
23123
|
+
"bindings": "",
|
|
23124
|
+
"frameworks": {}
|
|
23125
|
+
},
|
|
22942
23126
|
{
|
|
22943
23127
|
"id": "@threadlabs/looma/ui-table/01-default",
|
|
22944
23128
|
"name": "01-default",
|
|
@@ -23704,6 +23888,16 @@
|
|
|
23704
23888
|
"vue"
|
|
23705
23889
|
],
|
|
23706
23890
|
"examples": [
|
|
23891
|
+
{
|
|
23892
|
+
"id": "@threadlabs/looma/ui-text/00-preview",
|
|
23893
|
+
"name": "00-preview",
|
|
23894
|
+
"title": "Text hierarchy",
|
|
23895
|
+
"description": "Heading, body and supporting text at normal reading size.",
|
|
23896
|
+
"markup": "<ui-stack gap=\"xs\"><ui-text variant=\"heading\" as=\"h4\">Clear ideas.</ui-text><ui-text>Space to make them happen.</ui-text><ui-text variant=\"caption\"\n >Updated today</ui-text></ui-stack>",
|
|
23897
|
+
"resizable": false,
|
|
23898
|
+
"bindings": "",
|
|
23899
|
+
"frameworks": {}
|
|
23900
|
+
},
|
|
23707
23901
|
{
|
|
23708
23902
|
"id": "@threadlabs/looma/ui-text/01-tones",
|
|
23709
23903
|
"name": "01-tones",
|
|
@@ -24388,7 +24582,7 @@
|
|
|
24388
24582
|
"name": "01-authored",
|
|
24389
24583
|
"title": "Authored status and action",
|
|
24390
24584
|
"description": "A toast can carry a semantic tone and an authored action. It starts hidden here; the application clears hidden to show it and handles the action, and the toast hides itself when dismissed.",
|
|
24391
|
-
"markup": "<ui-button id=\"show-saved-toast\">Show toast</ui-button>\n<ui-toast-region placement=\"top-end\">\n <ui-toast id=\"saved-toast\" tone=\"success\" hidden>\n Draft saved.\n <button slot=\"action\" type=\"button\">Undo</button>\n </ui-toast>\n</ui-toast-region>",
|
|
24585
|
+
"markup": "<ui-button id=\"show-saved-toast\" data-example-id=\"show-saved-toast\">Show toast</ui-button>\n<ui-toast-region placement=\"top-end\">\n <ui-toast id=\"saved-toast\" data-example-id=\"saved-toast\" tone=\"success\" hidden>\n Draft saved.\n <button slot=\"action\" type=\"button\">Undo</button>\n </ui-toast>\n</ui-toast-region>",
|
|
24392
24586
|
"resizable": false,
|
|
24393
24587
|
"bindings": "",
|
|
24394
24588
|
"frameworks": {},
|
|
@@ -24399,7 +24593,7 @@
|
|
|
24399
24593
|
"name": "02-danger",
|
|
24400
24594
|
"title": "Danger alert",
|
|
24401
24595
|
"description": "A danger toast uses an assertive alert role. Keep important alerts persistent until a person can act on them. Clearing hidden shows it, and it hides itself when dismissed.",
|
|
24402
|
-
"markup": "<ui-button id=\"show-failed-toast\">Show alert</ui-button>\n<ui-toast-region placement=\"bottom\">\n <ui-toast id=\"failed-toast\" tone=\"danger\" hidden>The upload failed. Check the connection and try again.</ui-toast>\n</ui-toast-region>",
|
|
24596
|
+
"markup": "<ui-button id=\"show-failed-toast\" data-example-id=\"show-failed-toast\">Show alert</ui-button>\n<ui-toast-region placement=\"bottom\">\n <ui-toast id=\"failed-toast\" data-example-id=\"failed-toast\" tone=\"danger\" hidden>The upload failed. Check the connection and try again.</ui-toast>\n</ui-toast-region>",
|
|
24403
24597
|
"resizable": false,
|
|
24404
24598
|
"bindings": "",
|
|
24405
24599
|
"frameworks": {},
|
|
@@ -25662,6 +25856,16 @@
|
|
|
25662
25856
|
"vue"
|
|
25663
25857
|
],
|
|
25664
25858
|
"examples": [
|
|
25859
|
+
{
|
|
25860
|
+
"id": "@threadlabs/looma/ui-tree/00-preview",
|
|
25861
|
+
"name": "00-preview",
|
|
25862
|
+
"title": "Project files",
|
|
25863
|
+
"description": "A small expanded branch shows the hierarchy without filling the card.",
|
|
25864
|
+
"markup": "<ui-tree label=\"Project files\"><ui-tree-item item-id=\"project\" label=\"Project\" expanded><ui-tree-item item-id=\"guide\" label=\"Guide\"></ui-tree-item><ui-tree-item\n item-id=\"notes\"\n label=\"Notes\"\n ></ui-tree-item></ui-tree-item></ui-tree>",
|
|
25865
|
+
"resizable": false,
|
|
25866
|
+
"bindings": "",
|
|
25867
|
+
"frameworks": {}
|
|
25868
|
+
},
|
|
25665
25869
|
{
|
|
25666
25870
|
"id": "@threadlabs/looma/ui-tree/01-default",
|
|
25667
25871
|
"name": "01-default",
|
package/docs/catalog.mjs
CHANGED
|
@@ -27,7 +27,7 @@ export async function readExamples(directory, componentId) {
|
|
|
27
27
|
if (files.includes(name + extension)) frameworks[target] = { language, code: await readFile(path.join(directory, name + extension), 'utf8') };
|
|
28
28
|
}
|
|
29
29
|
const behavior = files.includes(name + '.behavior.ts') ? path.join(directory, name + '.behavior.ts') : files.includes(name + '.behavior.js') ? path.join(directory, name + '.behavior.js') : undefined;
|
|
30
|
-
return { id: `${componentId}/${name}`, name, title: fields.title ?? name, description: fields.description ?? '', markup: source.slice(meta[0].length).trim(), resizable: fields.preview === 'resizable', bindings: fields.bind ?? '', frameworks, ...(behavior ? { behavior } : {}) };
|
|
30
|
+
return { id: `${componentId}/${name}`, name, title: fields.title ?? name, description: fields.description ?? '', markup: source.slice(meta[0].length).trim(), resizable: fields.preview === 'resizable', ...(fields.preview === 'stretch' ? { stretch: true } : {}), bindings: fields.bind ?? '', frameworks, ...(behavior ? { behavior } : {}) };
|
|
31
31
|
}));
|
|
32
32
|
}
|
|
33
33
|
|