@agentero/design-system 0.15.0 → 0.15.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/mcp/manifests/components.html +27 -4
- package/mcp/manifests/components.json +1 -1
- package/package.json +1 -1
- package/src/switch/switch.d.ts +37 -4
- package/src/switch/switch.js +42 -23
|
@@ -576,7 +576,7 @@
|
|
|
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">16 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">16 components ok</span><span class="filter-pill ok" aria-disabled="true">147 stories ok</span></div>
|
|
580
580
|
</div>
|
|
581
581
|
</header>
|
|
582
582
|
<main>
|
|
@@ -3474,9 +3474,9 @@ percentage: number</code></pre>
|
|
|
3474
3474
|
<div class="title">
|
|
3475
3475
|
<h2><span class="status-dot dot-ok"></span> Switch</h2>
|
|
3476
3476
|
<div class="badges">
|
|
3477
|
-
<label for="c-11-components-switch-props" class="badge ok as-toggle">
|
|
3477
|
+
<label for="c-11-components-switch-props" class="badge ok as-toggle">4 prop types</label>
|
|
3478
3478
|
|
|
3479
|
-
<label for="c-11-components-switch-stories" class="badge ok as-toggle">
|
|
3479
|
+
<label for="c-11-components-switch-stories" class="badge ok as-toggle">7 stories</label>
|
|
3480
3480
|
|
|
3481
3481
|
</div>
|
|
3482
3482
|
</div>
|
|
@@ -3501,12 +3501,21 @@ percentage: number</code></pre>
|
|
|
3501
3501
|
<div class="note ok">
|
|
3502
3502
|
<div class="row">
|
|
3503
3503
|
<span class="ex-name">Prop types <small>(react-docgen-typescript)</small></span>
|
|
3504
|
-
<span class="badge ok">
|
|
3504
|
+
<span class="badge ok">4 prop types</span>
|
|
3505
3505
|
</div>
|
|
3506
3506
|
<pre><code>Component: src/switch/switch.tsx::Switch</code></pre>
|
|
3507
3507
|
<pre><code>Props:</code></pre>
|
|
3508
3508
|
<pre><code>asChild?: boolean
|
|
3509
3509
|
|
|
3510
|
+
/**
|
|
3511
|
+
* Optional text rendered beside the toggle and associated with it via
|
|
3512
|
+
* `htmlFor`. Provide an `id` so the association resolves. Omit it to keep
|
|
3513
|
+
* the toggle headless and supply your own `<label htmlFor>`.
|
|
3514
|
+
*/
|
|
3515
|
+
label?: string
|
|
3516
|
+
|
|
3517
|
+
reverse?: boolean
|
|
3518
|
+
|
|
3510
3519
|
size?: "sm" | "md"</code></pre>
|
|
3511
3520
|
</div>
|
|
3512
3521
|
</div>
|
|
@@ -3601,6 +3610,20 @@ size?: "sm" | "md"</code></pre>
|
|
|
3601
3610
|
</div>
|
|
3602
3611
|
);
|
|
3603
3612
|
};</code></pre>
|
|
3613
|
+
</div>
|
|
3614
|
+
<div class="note ok">
|
|
3615
|
+
<div class="row">
|
|
3616
|
+
<span class="ex-name">With Label</span>
|
|
3617
|
+
<span class="badge ok">story ok</span>
|
|
3618
|
+
</div>
|
|
3619
|
+
|
|
3620
|
+
<div class="hint">The built-in `label` prop renders an associated text label beside the toggle (wired via `htmlFor`/`id`); `reverse` places the label before the toggle.</div>
|
|
3621
|
+
<pre><code>const WithLabel = () => (
|
|
3622
|
+
<div className="flex items-center gap-6">
|
|
3623
|
+
<Switch id="with-label" label="Email" defaultChecked />
|
|
3624
|
+
<Switch id="with-label-reverse" label="SMS" reverse />
|
|
3625
|
+
</div>
|
|
3626
|
+
);</code></pre>
|
|
3604
3627
|
</div>
|
|
3605
3628
|
<div class="note ok">
|
|
3606
3629
|
<div class="row">
|