@agentero/design-system 0.23.1 → 0.23.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.
|
@@ -576,13 +576,13 @@
|
|
|
576
576
|
<header>
|
|
577
577
|
<div class="wrap">
|
|
578
578
|
<h1>Manifest Debugger</h1>
|
|
579
|
-
<div class="summary"><a class="filter-pill all" data-k="all" href="#filter-all">All</a><span class="filter-pill ok" aria-disabled="true">24 components ok</span><span class="filter-pill ok" aria-disabled="true">
|
|
579
|
+
<div class="summary"><a class="filter-pill all" data-k="all" href="#filter-all">All</a><span class="filter-pill ok" aria-disabled="true">24 components ok</span><span class="filter-pill ok" aria-disabled="true">184 stories ok</span></div>
|
|
580
580
|
</div>
|
|
581
581
|
</header>
|
|
582
582
|
<main>
|
|
583
583
|
<div class="wrap">
|
|
584
584
|
<div class="note ok" style="margin-bottom: 16px;">
|
|
585
|
-
Using <code>react-docgen-typescript</code>. Generation took <strong>3.
|
|
585
|
+
Using <code>react-docgen-typescript</code>. Generation took <strong>3.2s</strong>.
|
|
586
586
|
</div>
|
|
587
587
|
<h2 class="section-title">Components</h2>
|
|
588
588
|
<div class="grid" role="list">
|
|
@@ -1854,7 +1854,7 @@ variant?: "circle" | "square" | "pillow" | "p
|
|
|
1854
1854
|
<div class="badges">
|
|
1855
1855
|
<label for="c-4-components-button-props" class="badge ok as-toggle">12 prop types</label>
|
|
1856
1856
|
|
|
1857
|
-
<label for="c-4-components-button-stories" class="badge ok as-toggle">
|
|
1857
|
+
<label for="c-4-components-button-stories" class="badge ok as-toggle">11 stories</label>
|
|
1858
1858
|
|
|
1859
1859
|
</div>
|
|
1860
1860
|
</div>
|
|
@@ -2200,6 +2200,34 @@ variant?: ButtonVariantType</code></pre>
|
|
|
2200
2200
|
</a>
|
|
2201
2201
|
</Button>
|
|
2202
2202
|
</Row>
|
|
2203
|
+
);</code></pre>
|
|
2204
|
+
</div>
|
|
2205
|
+
<div class="note ok">
|
|
2206
|
+
<div class="row">
|
|
2207
|
+
<span class="ex-name">Pressed</span>
|
|
2208
|
+
<span class="badge ok">story ok</span>
|
|
2209
|
+
</div>
|
|
2210
|
+
<div>Press feedback dips the button, excluding `link` and disabled</div>
|
|
2211
|
+
<div class="hint">Buttons dip to 97% while held so the control answers the pointer rather than only changing color. Press and hold one below to feel it — the effect is deliberately small, and if a quick click draws the eye it is too strong. `variant="link"` is excluded: it has no padding or background, so scaling bare text reads as a wobble rather than a button being pushed. Disabled buttons are excluded too, including the `asChild` anchor form, which stays keyboard-focusable and would otherwise dip on Enter. The whole effect is gated behind `motion-safe`, so it disappears under `prefers-reduced-motion`.</div>
|
|
2212
|
+
<pre><code>const Pressed = () => (
|
|
2213
|
+
<Stack>
|
|
2214
|
+
<Row>
|
|
2215
|
+
{NON_LINK_VARIANTS.map(variant => (
|
|
2216
|
+
<Button key={variant} variant={variant}>
|
|
2217
|
+
Press {variant}
|
|
2218
|
+
</Button>
|
|
2219
|
+
))}
|
|
2220
|
+
</Row>
|
|
2221
|
+
<Row>
|
|
2222
|
+
<Button variant="link">Link stays still</Button>
|
|
2223
|
+
<Button variant="primary" disabled>
|
|
2224
|
+
Disabled stays still
|
|
2225
|
+
</Button>
|
|
2226
|
+
<Button asChild variant="secondary" disabled>
|
|
2227
|
+
<a href="/dashboard">Disabled anchor stays still</a>
|
|
2228
|
+
</Button>
|
|
2229
|
+
</Row>
|
|
2230
|
+
</Stack>
|
|
2203
2231
|
);</code></pre>
|
|
2204
2232
|
</div>
|
|
2205
2233
|
</div>
|