refactor(docs): remove card shells and format examples
This commit is contained in:
@@ -13,7 +13,13 @@ page UnifiedTimelinePreviewcomponent {
|
||||
<div class="topbar-actions"><a class="preview-pill" href="/access">Private preview · v0.2.65</a><button data-wire-theme-toggle class="theme-button" aria-label="Toggle color theme" title="Toggle color theme">◐</button></div>
|
||||
</header>
|
||||
<div class="mobile-doc-nav"><details><summary>Browse documentation</summary><nav><a href="/getting-started">Get started</a><a href="/packages">Packages</a><a href="/components">Components</a><a href="/language">Language</a><a href="/architecture">Architecture</a><a href="/tutorial">Tutorial</a><a href="/guides/project-structure">Guides</a><a href="/examples">Examples</a><a href="/search">Search</a></nav></details></div>
|
||||
<main class="portal-main docs-layout component-detail-page"><article id="main" class="documentation prose standalone"><nav class="breadcrumbs" aria-label="Breadcrumb"><a href="/">Home</a><span>/</span><a href="/components">Components</a><span>/</span><span aria-current="page">UnifiedTimelinePreview</span></nav><section class="doc-intro"><span class="eyebrow">content component</span><h1>UnifiedTimelinePreview</h1><p>Reusable unified timeline preview component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.65</span><span>8 props</span><span>1 slots</span><span>0 events</span></div></section><section id="usage"><h2>Usage</h2><p>Components are auto-discovered. Use the component directly in any <code>.wrn</code> view:</p><pre data-language="wrn"><code><UnifiedTimelinePreview eyebrow="eyebrow" title="title" description="description" href="href" actionLabel="Learn more" /></code></pre><p>Legacy mount name: <code>data-component="UnifiedTimelinePreview"</code>.</p></section><section id="props"><h2>Props and attributes</h2><div class="table-wrap"><table><thead><tr><th>Prop</th><th>Type</th><th>Requirement</th><th>Default</th></tr></thead><tbody><tr><td><code>eyebrow</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>description</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>href</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>actionLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>"Learn more"</code></td></tr><tr><td><code>image</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>alt</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>class</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr></tbody></table></div></section><section id="slots"><h2>Slots</h2><ul><li><code>default</code></li></ul></section><section id="events"><h2>Events</h2><p>This component does not declare a custom event.</p></section><section id="source"><h2>Source contract</h2><p>Installed source: <code>components/UnifiedTimelinePreview.wrn</code></p><pre data-language="wrn"><code>component UnifiedTimelinePreview {
|
||||
<main class="portal-main docs-layout component-detail-page"><article id="main" class="documentation prose standalone"><nav class="breadcrumbs" aria-label="Breadcrumb"><a href="/">Home</a><span>/</span><a href="/components">Components</a><span>/</span><span aria-current="page">UnifiedTimelinePreview</span></nav><section class="doc-intro"><span class="eyebrow">content component</span><h1>UnifiedTimelinePreview</h1><p>Reusable unified timeline preview component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.65</span><span>8 props</span><span>1 slots</span><span>0 events</span></div></section><section id="usage"><h2>Usage</h2><p>Components are auto-discovered. Use the component directly in any <code>.wrn</code> view:</p><pre data-language="wrn"><code><UnifiedTimelinePreview
|
||||
eyebrow="eyebrow"
|
||||
title="title"
|
||||
description="description"
|
||||
href="href"
|
||||
actionLabel="Learn more"
|
||||
/></code></pre><p>Legacy mount name: <code>data-component="UnifiedTimelinePreview"</code>.</p></section><section id="props"><h2>Props and attributes</h2><div class="table-wrap"><table><thead><tr><th>Prop</th><th>Type</th><th>Requirement</th><th>Default</th></tr></thead><tbody><tr><td><code>eyebrow</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>description</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>href</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>actionLabel</code></td><td><code>string</code></td><td>Optional</td><td><code>"Learn more"</code></td></tr><tr><td><code>image</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>alt</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr><tr><td><code>class</code></td><td><code>string</code></td><td>Optional</td><td><code>""</code></td></tr></tbody></table></div></section><section id="slots"><h2>Slots</h2><ul><li><code>default</code></li></ul></section><section id="events"><h2>Events</h2><p>This component does not declare a custom event.</p></section><section id="source"><h2>Source contract</h2><p>Installed source: <code>components/UnifiedTimelinePreview.wrn</code></p><pre data-language="wrn"><code>component UnifiedTimelinePreview {
|
||||
props {
|
||||
eyebrow = ""
|
||||
title = ""
|
||||
@@ -25,8 +31,46 @@ page UnifiedTimelinePreviewcomponent {
|
||||
class = ""
|
||||
}
|
||||
view {
|
||||
<article class="wire-card wire-catalog-card {class}">{#if image}<img src="{image}" alt="{alt}" class="wire-catalog-card__image" />{:else}<div role="img" aria-label="Unified customer timeline across automated and human interactions" class="grid min-h-52 gap-0 rounded-xl border border-slate-200 bg-slate-50 p-5 dark:border-slate-800 dark:bg-slate-950/60"><div class="grid grid-cols-[auto_1fr_auto] items-start gap-3"><span class="grid size-8 place-items-center rounded-lg bg-violet-500/10 text-violet-500"><span class="icon-[lucide--zap] size-4" aria-hidden="true"></span></span><span><strong class="block text-sm">Workflow triggered</strong><span class="text-xs text-slate-500">Order status changed</span></span><time class="text-xs text-slate-500">09:42</time></div><div class="ml-4 h-5 border-l border-dashed border-slate-300 dark:border-slate-700"></div><div class="grid grid-cols-[auto_1fr_auto] items-start gap-3"><span class="grid size-8 place-items-center rounded-lg bg-emerald-500/10 text-emerald-500"><span class="icon-[lucide--message-square-check] size-4" aria-hidden="true"></span></span><span><strong class="block text-sm">WhatsApp delivered</strong><span class="text-xs text-slate-500">Template: order shipped</span></span><time class="text-xs text-slate-500">09:43</time></div><div class="ml-4 h-5 border-l border-dashed border-slate-300 dark:border-slate-700"></div><div class="grid grid-cols-[auto_1fr_auto] items-start gap-3"><span class="grid size-8 place-items-center rounded-lg bg-sky-500/10 text-sky-500"><span class="icon-[lucide--user-round-check] size-4" aria-hidden="true"></span></span><span><strong class="block text-sm">Human follow-up</strong><span class="text-xs text-slate-500">Assigned to support</span></span><time class="text-xs text-slate-500">09:48</time></div></div>{/if}{#if eyebrow}<span class="wire-eyebrow">{eyebrow}</span>{/if}{#if title}<h3>{title}</h3>{/if}{#if description}<p>{description}</p>{/if}<slot />{#if href}<a href="{href}" class="wire-btn wire-btn--ghost">{actionLabel}</a>{/if}</article>
|
||||
}
|
||||
<article class="wire-card wire-catalog-card {class}">{#if image}<img src="{image}" alt="{alt}" class="wire-catalog-card__image" />{:else}<div role="img" aria-label="Unified customer timeline across automated and human interactions" class="grid min-h-52 gap-0 rounded-xl border border-slate-200 bg-slate-50 p-5 dark:border-slate-800 dark:bg-slate-950/60">
|
||||
<div class="grid grid-cols-[auto_1fr_auto] items-start gap-3">
|
||||
<span class="grid size-8 place-items-center rounded-lg bg-violet-500/10 text-violet-500">
|
||||
<span class="icon-[lucide--zap] size-4" aria-hidden="true">
|
||||
</span>
|
||||
</span>
|
||||
<span>
|
||||
<strong class="block text-sm">Workflow triggered</strong>
|
||||
<span class="text-xs text-slate-500">Order status changed</span>
|
||||
</span>
|
||||
<time class="text-xs text-slate-500">09:42</time>
|
||||
</div>
|
||||
<div class="ml-4 h-5 border-l border-dashed border-slate-300 dark:border-slate-700">
|
||||
</div>
|
||||
<div class="grid grid-cols-[auto_1fr_auto] items-start gap-3">
|
||||
<span class="grid size-8 place-items-center rounded-lg bg-emerald-500/10 text-emerald-500">
|
||||
<span class="icon-[lucide--message-square-check] size-4" aria-hidden="true">
|
||||
</span>
|
||||
</span>
|
||||
<span>
|
||||
<strong class="block text-sm">WhatsApp delivered</strong>
|
||||
<span class="text-xs text-slate-500">Template: order shipped</span>
|
||||
</span>
|
||||
<time class="text-xs text-slate-500">09:43</time>
|
||||
</div>
|
||||
<div class="ml-4 h-5 border-l border-dashed border-slate-300 dark:border-slate-700">
|
||||
</div>
|
||||
<div class="grid grid-cols-[auto_1fr_auto] items-start gap-3">
|
||||
<span class="grid size-8 place-items-center rounded-lg bg-sky-500/10 text-sky-500">
|
||||
<span class="icon-[lucide--user-round-check] size-4" aria-hidden="true">
|
||||
</span>
|
||||
</span>
|
||||
<span>
|
||||
<strong class="block text-sm">Human follow-up</strong>
|
||||
<span class="text-xs text-slate-500">Assigned to support</span>
|
||||
</span>
|
||||
<time class="text-xs text-slate-500">09:48</time>
|
||||
</div>
|
||||
</div>{/if}{#if eyebrow}<span class="wire-eyebrow">{eyebrow}</span>{/if}{#if title}<h3>{title}</h3>{/if}{#if description}<p>{description}</p>{/if}<slot />{#if href}<a href="{href}" class="wire-btn wire-btn--ghost">{actionLabel}</a>{/if}</article>
|
||||
}
|
||||
}
|
||||
</code></pre></section></article><aside class="on-this-page"><h2>On this page</h2><nav><a href="#usage">Usage</a><a href="#props">Props and attributes</a><a href="#slots">Slots</a><a href="#events">Events</a><a href="#source">Source contract</a></nav></aside></main>
|
||||
<footer><div class="footer-brand"><span class="footer-mark" aria-hidden="true">W</span><p><strong>WRNexusJS 0.2.65</strong><span>Complete API documentation generated from installed package declarations.</span></p></div><nav aria-label="Footer"><a href="/packages">All packages</a><a href="/getting-started">Get started</a><a href="/security">Security</a><a href="/support">Support</a><a href="/llms.txt">AI guide</a></nav><p class="footer-meta">Private Developer Preview · Bun-native</p></footer>
|
||||
|
||||
Reference in New Issue
Block a user