@agentero/design-system 0.12.0 → 0.14.0
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 +307 -16
- package/mcp/manifests/components.json +1 -1
- package/package.json +10 -1
- package/src/skeleton/index.d.ts +2 -0
- package/src/skeleton/index.js +2 -0
- package/src/skeleton/skeleton.d.ts +19 -0
- package/src/skeleton/skeleton.js +13 -0
- package/src/tooltip/index.d.ts +2 -0
- package/src/tooltip/index.js +2 -0
- package/src/tooltip/tooltip.d.ts +45 -0
- package/src/tooltip/tooltip.js +43 -0
- package/theme/base.css +48 -0
|
@@ -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">
|
|
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">15 components ok</span><span class="filter-pill ok" aria-disabled="true">142 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>
|
|
585
|
+
Using <code>react-docgen-typescript</code>. Generation took <strong>2.9s</strong>.
|
|
586
586
|
</div>
|
|
587
587
|
<h2 class="section-title">Components</h2>
|
|
588
588
|
<div class="grid" role="list">
|
|
@@ -3220,6 +3220,115 @@ totalCount: number</code></pre>
|
|
|
3220
3220
|
|
|
3221
3221
|
</div>
|
|
3222
3222
|
</article>
|
|
3223
|
+
<article
|
|
3224
|
+
class="card
|
|
3225
|
+
no-error
|
|
3226
|
+
no-info
|
|
3227
|
+
no-story-error
|
|
3228
|
+
no-doc-error"
|
|
3229
|
+
role="listitem"
|
|
3230
|
+
aria-label="Skeleton">
|
|
3231
|
+
<div class="head">
|
|
3232
|
+
<div class="title">
|
|
3233
|
+
<h2><span class="status-dot dot-ok"></span> Skeleton</h2>
|
|
3234
|
+
<div class="badges">
|
|
3235
|
+
|
|
3236
|
+
|
|
3237
|
+
<label for="c-9-components-skeleton-stories" class="badge ok as-toggle">4 stories</label>
|
|
3238
|
+
|
|
3239
|
+
</div>
|
|
3240
|
+
</div>
|
|
3241
|
+
<div class="meta" title="./src/skeleton/skeleton.stories.tsx">components-skeleton · ./src/skeleton/skeleton.stories.tsx</div>
|
|
3242
|
+
|
|
3243
|
+
<div class="hint">Skeleton renders a pulsing placeholder box while content loads. Size and shape it with Tailwind classes to mirror the content it stands in for.</div>
|
|
3244
|
+
|
|
3245
|
+
</div>
|
|
3246
|
+
|
|
3247
|
+
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3248
|
+
|
|
3249
|
+
|
|
3250
|
+
<input id="c-9-components-skeleton-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3251
|
+
|
|
3252
|
+
|
|
3253
|
+
|
|
3254
|
+
<div class="panels">
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
|
|
3258
|
+
|
|
3259
|
+
<div class="panel panel-stories">
|
|
3260
|
+
|
|
3261
|
+
|
|
3262
|
+
|
|
3263
|
+
<div class="note ok">
|
|
3264
|
+
<div class="row">
|
|
3265
|
+
<span class="ex-name">Imports</span>
|
|
3266
|
+
</div>
|
|
3267
|
+
<pre><code>import { Skeleton } from "@agentero/design-system";</code></pre>
|
|
3268
|
+
</div>
|
|
3269
|
+
|
|
3270
|
+
|
|
3271
|
+
<div class="note ok">
|
|
3272
|
+
<div class="row">
|
|
3273
|
+
<span class="ex-name">Default</span>
|
|
3274
|
+
<span class="badge ok">story ok</span>
|
|
3275
|
+
</div>
|
|
3276
|
+
|
|
3277
|
+
<div class="hint">Default placeholder box, sized via `className`; hidden from assistive technologies.</div>
|
|
3278
|
+
<pre><code>const Default = () => <Skeleton className="h-4 w-40" />;</code></pre>
|
|
3279
|
+
</div>
|
|
3280
|
+
<div class="note ok">
|
|
3281
|
+
<div class="row">
|
|
3282
|
+
<span class="ex-name">Text Block</span>
|
|
3283
|
+
<span class="badge ok">story ok</span>
|
|
3284
|
+
</div>
|
|
3285
|
+
|
|
3286
|
+
<div class="hint">Compose plain skeletons to sketch the loading shape of real content.</div>
|
|
3287
|
+
<pre><code>const TextBlock = () => (
|
|
3288
|
+
<div className="flex w-80 flex-col gap-2">
|
|
3289
|
+
<Skeleton className="h-4 w-full" />
|
|
3290
|
+
<Skeleton className="h-4 w-full" />
|
|
3291
|
+
<Skeleton className="h-4 w-2/3" />
|
|
3292
|
+
</div>
|
|
3293
|
+
);</code></pre>
|
|
3294
|
+
</div>
|
|
3295
|
+
<div class="note ok">
|
|
3296
|
+
<div class="row">
|
|
3297
|
+
<span class="ex-name">List Item</span>
|
|
3298
|
+
<span class="badge ok">story ok</span>
|
|
3299
|
+
</div>
|
|
3300
|
+
|
|
3301
|
+
<div class="hint">`rounded-full` for avatars; pair with text lines for a list-item placeholder.</div>
|
|
3302
|
+
<pre><code>const ListItem = () => (
|
|
3303
|
+
<div className="flex w-80 items-center gap-3">
|
|
3304
|
+
<Skeleton className="size-10 shrink-0 rounded-full" />
|
|
3305
|
+
<div className="flex w-full flex-col gap-2">
|
|
3306
|
+
<Skeleton className="h-4 w-1/2" />
|
|
3307
|
+
<Skeleton className="h-3 w-3/4" />
|
|
3308
|
+
</div>
|
|
3309
|
+
</div>
|
|
3310
|
+
);</code></pre>
|
|
3311
|
+
</div>
|
|
3312
|
+
<div class="note ok">
|
|
3313
|
+
<div class="row">
|
|
3314
|
+
<span class="ex-name">Card</span>
|
|
3315
|
+
<span class="badge ok">story ok</span>
|
|
3316
|
+
</div>
|
|
3317
|
+
|
|
3318
|
+
<div class="hint">A card-shaped placeholder: media area, title, and body lines.</div>
|
|
3319
|
+
<pre><code>const Card = () => (
|
|
3320
|
+
<div className="flex w-80 flex-col gap-3 rounded-lg border border-border-default-base-primary p-4">
|
|
3321
|
+
<Skeleton className="h-32 w-full rounded-md" />
|
|
3322
|
+
<Skeleton className="h-5 w-1/2" />
|
|
3323
|
+
<Skeleton className="h-4 w-full" />
|
|
3324
|
+
<Skeleton className="h-4 w-2/3" />
|
|
3325
|
+
</div>
|
|
3326
|
+
);</code></pre>
|
|
3327
|
+
</div>
|
|
3328
|
+
</div>
|
|
3329
|
+
|
|
3330
|
+
</div>
|
|
3331
|
+
</article>
|
|
3223
3332
|
<article
|
|
3224
3333
|
class="card
|
|
3225
3334
|
no-error
|
|
@@ -3232,9 +3341,9 @@ totalCount: number</code></pre>
|
|
|
3232
3341
|
<div class="title">
|
|
3233
3342
|
<h2><span class="status-dot dot-ok"></span> Switch</h2>
|
|
3234
3343
|
<div class="badges">
|
|
3235
|
-
<label for="c-
|
|
3344
|
+
<label for="c-10-components-switch-props" class="badge ok as-toggle">2 prop types</label>
|
|
3236
3345
|
|
|
3237
|
-
<label for="c-
|
|
3346
|
+
<label for="c-10-components-switch-stories" class="badge ok as-toggle">6 stories</label>
|
|
3238
3347
|
|
|
3239
3348
|
</div>
|
|
3240
3349
|
</div>
|
|
@@ -3247,9 +3356,9 @@ totalCount: number</code></pre>
|
|
|
3247
3356
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3248
3357
|
|
|
3249
3358
|
|
|
3250
|
-
<input id="c-
|
|
3359
|
+
<input id="c-10-components-switch-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3251
3360
|
|
|
3252
|
-
<input id="c-
|
|
3361
|
+
<input id="c-10-components-switch-props" class="tg tg-props" type="checkbox" hidden />
|
|
3253
3362
|
|
|
3254
3363
|
<div class="panels">
|
|
3255
3364
|
|
|
@@ -3399,7 +3508,7 @@ size?: "sm" | "md"</code></pre>
|
|
|
3399
3508
|
<div class="badges">
|
|
3400
3509
|
|
|
3401
3510
|
|
|
3402
|
-
<label for="c-
|
|
3511
|
+
<label for="c-11-components-table-stories" class="badge ok as-toggle">9 stories</label>
|
|
3403
3512
|
|
|
3404
3513
|
</div>
|
|
3405
3514
|
</div>
|
|
@@ -3412,7 +3521,7 @@ size?: "sm" | "md"</code></pre>
|
|
|
3412
3521
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3413
3522
|
|
|
3414
3523
|
|
|
3415
|
-
<input id="c-
|
|
3524
|
+
<input id="c-11-components-table-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3416
3525
|
|
|
3417
3526
|
|
|
3418
3527
|
|
|
@@ -3586,9 +3695,9 @@ import { Fragment } from "react";</code></pre>
|
|
|
3586
3695
|
<div class="title">
|
|
3587
3696
|
<h2><span class="status-dot dot-ok"></span> Tag</h2>
|
|
3588
3697
|
<div class="badges">
|
|
3589
|
-
<label for="c-
|
|
3698
|
+
<label for="c-12-components-tag-props" class="badge ok as-toggle">6 prop types</label>
|
|
3590
3699
|
|
|
3591
|
-
<label for="c-
|
|
3700
|
+
<label for="c-12-components-tag-stories" class="badge ok as-toggle">10 stories</label>
|
|
3592
3701
|
|
|
3593
3702
|
</div>
|
|
3594
3703
|
</div>
|
|
@@ -3601,9 +3710,9 @@ import { Fragment } from "react";</code></pre>
|
|
|
3601
3710
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3602
3711
|
|
|
3603
3712
|
|
|
3604
|
-
<input id="c-
|
|
3713
|
+
<input id="c-12-components-tag-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3605
3714
|
|
|
3606
|
-
<input id="c-
|
|
3715
|
+
<input id="c-12-components-tag-props" class="tg tg-props" type="checkbox" hidden />
|
|
3607
3716
|
|
|
3608
3717
|
<div class="panels">
|
|
3609
3718
|
|
|
@@ -3960,9 +4069,9 @@ variant?: "ghost" | "secondary" | "tertiary" | &qu
|
|
|
3960
4069
|
<div class="title">
|
|
3961
4070
|
<h2><span class="status-dot dot-ok"></span> Toast</h2>
|
|
3962
4071
|
<div class="badges">
|
|
3963
|
-
<label for="c-
|
|
4072
|
+
<label for="c-13-components-toast-props" class="badge ok as-toggle">11 prop types</label>
|
|
3964
4073
|
|
|
3965
|
-
<label for="c-
|
|
4074
|
+
<label for="c-13-components-toast-stories" class="badge ok as-toggle">11 stories</label>
|
|
3966
4075
|
|
|
3967
4076
|
</div>
|
|
3968
4077
|
</div>
|
|
@@ -3975,9 +4084,9 @@ variant?: "ghost" | "secondary" | "tertiary" | &qu
|
|
|
3975
4084
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3976
4085
|
|
|
3977
4086
|
|
|
3978
|
-
<input id="c-
|
|
4087
|
+
<input id="c-13-components-toast-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3979
4088
|
|
|
3980
|
-
<input id="c-
|
|
4089
|
+
<input id="c-13-components-toast-props" class="tg tg-props" type="checkbox" hidden />
|
|
3981
4090
|
|
|
3982
4091
|
<div class="panels">
|
|
3983
4092
|
|
|
@@ -4372,6 +4481,188 @@ visibleToasts?: number</code></pre>
|
|
|
4372
4481
|
</div>
|
|
4373
4482
|
</div>
|
|
4374
4483
|
|
|
4484
|
+
</div>
|
|
4485
|
+
</article>
|
|
4486
|
+
<article
|
|
4487
|
+
class="card
|
|
4488
|
+
no-error
|
|
4489
|
+
no-info
|
|
4490
|
+
no-story-error
|
|
4491
|
+
no-doc-error"
|
|
4492
|
+
role="listitem"
|
|
4493
|
+
aria-label="Tooltip">
|
|
4494
|
+
<div class="head">
|
|
4495
|
+
<div class="title">
|
|
4496
|
+
<h2><span class="status-dot dot-ok"></span> Tooltip</h2>
|
|
4497
|
+
<div class="badges">
|
|
4498
|
+
<label for="c-14-components-tooltip-props" class="badge ok as-toggle">9 prop types</label>
|
|
4499
|
+
|
|
4500
|
+
<label for="c-14-components-tooltip-stories" class="badge ok as-toggle">5 stories</label>
|
|
4501
|
+
|
|
4502
|
+
</div>
|
|
4503
|
+
</div>
|
|
4504
|
+
<div class="meta" title="./src/tooltip/tooltip.stories.tsx">components-tooltip · ./src/tooltip/tooltip.stories.tsx</div>
|
|
4505
|
+
|
|
4506
|
+
<div class="hint">Tooltip reveals a short, non-essential hint anchored to a trigger element on hover or focus.</div>
|
|
4507
|
+
|
|
4508
|
+
</div>
|
|
4509
|
+
|
|
4510
|
+
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
4511
|
+
|
|
4512
|
+
|
|
4513
|
+
<input id="c-14-components-tooltip-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
4514
|
+
|
|
4515
|
+
<input id="c-14-components-tooltip-props" class="tg tg-props" type="checkbox" hidden />
|
|
4516
|
+
|
|
4517
|
+
<div class="panels">
|
|
4518
|
+
|
|
4519
|
+
|
|
4520
|
+
|
|
4521
|
+
<div class="panel panel-props">
|
|
4522
|
+
<div class="note ok">
|
|
4523
|
+
<div class="row">
|
|
4524
|
+
<span class="ex-name">Prop types <small>(react-docgen-typescript)</small></span>
|
|
4525
|
+
<span class="badge ok">9 prop types</span>
|
|
4526
|
+
</div>
|
|
4527
|
+
<pre><code>Component: src/tooltip/tooltip.tsx::Tooltip</code></pre>
|
|
4528
|
+
<pre><code>Props:</code></pre>
|
|
4529
|
+
<pre><code>/**
|
|
4530
|
+
* Preferred alignment against the trigger. Defaults to `'center'`.
|
|
4531
|
+
*/
|
|
4532
|
+
align?: "center" | "start" | "end"
|
|
4533
|
+
|
|
4534
|
+
/**
|
|
4535
|
+
* Merge Radix's behavior onto an already-interactive child instead of wrapping it in a `<button>`. Defaults to `false`.
|
|
4536
|
+
*/
|
|
4537
|
+
asChild?: boolean = false
|
|
4538
|
+
|
|
4539
|
+
/**
|
|
4540
|
+
* The trigger element. Hovering or focusing it reveals the tooltip.
|
|
4541
|
+
*/
|
|
4542
|
+
children: ReactNode
|
|
4543
|
+
|
|
4544
|
+
/**
|
|
4545
|
+
* Extra classes for the content surface, merged last.
|
|
4546
|
+
*/
|
|
4547
|
+
className?: string
|
|
4548
|
+
|
|
4549
|
+
/**
|
|
4550
|
+
* The floating hint. Keep it short — labels or hints, not paragraphs.
|
|
4551
|
+
*/
|
|
4552
|
+
content: ReactNode
|
|
4553
|
+
|
|
4554
|
+
/**
|
|
4555
|
+
* Delay in ms before opening on hover. Defaults to `0`; focus always opens instantly.
|
|
4556
|
+
*/
|
|
4557
|
+
delayDuration?: number = 0
|
|
4558
|
+
|
|
4559
|
+
/**
|
|
4560
|
+
* Hide the tooltip when the trigger is clipped away (e.g. scrolled out of an `overflow` container).
|
|
4561
|
+
*/
|
|
4562
|
+
hideWhenDetached?: boolean
|
|
4563
|
+
|
|
4564
|
+
/**
|
|
4565
|
+
* Preferred side of the trigger; flips on collision. Defaults to `'top'`.
|
|
4566
|
+
*/
|
|
4567
|
+
side?: "top" | "right" | "bottom" | "left" = top
|
|
4568
|
+
|
|
4569
|
+
/**
|
|
4570
|
+
* Distance in pixels between the tooltip and its trigger. Defaults to `4`.
|
|
4571
|
+
*/
|
|
4572
|
+
sideOffset?: number = 4</code></pre>
|
|
4573
|
+
</div>
|
|
4574
|
+
</div>
|
|
4575
|
+
|
|
4576
|
+
<div class="panel panel-stories">
|
|
4577
|
+
|
|
4578
|
+
|
|
4579
|
+
|
|
4580
|
+
<div class="note ok">
|
|
4581
|
+
<div class="row">
|
|
4582
|
+
<span class="ex-name">Imports</span>
|
|
4583
|
+
</div>
|
|
4584
|
+
<pre><code>import { Button, Tooltip } from "@agentero/design-system";</code></pre>
|
|
4585
|
+
</div>
|
|
4586
|
+
|
|
4587
|
+
|
|
4588
|
+
<div class="note ok">
|
|
4589
|
+
<div class="row">
|
|
4590
|
+
<span class="ex-name">Default</span>
|
|
4591
|
+
<span class="badge ok">story ok</span>
|
|
4592
|
+
</div>
|
|
4593
|
+
|
|
4594
|
+
<div class="hint">Default hint revealed on hover; hides again on unhover.</div>
|
|
4595
|
+
<pre><code>const Default = () => <Tooltip content="Archive this carrier" side="top" asChild>
|
|
4596
|
+
<Button variant="secondary">Hover me</Button>
|
|
4597
|
+
</Tooltip>;</code></pre>
|
|
4598
|
+
</div>
|
|
4599
|
+
<div class="note ok">
|
|
4600
|
+
<div class="row">
|
|
4601
|
+
<span class="ex-name">Opens On Focus</span>
|
|
4602
|
+
<span class="badge ok">story ok</span>
|
|
4603
|
+
</div>
|
|
4604
|
+
|
|
4605
|
+
<div class="hint">Opens on keyboard focus too, wiring `aria-describedby` on the trigger.</div>
|
|
4606
|
+
<pre><code>const OpensOnFocus = () => <Tooltip content="Archive this carrier" side="top" asChild>
|
|
4607
|
+
<Button variant="secondary">Focus me</Button>
|
|
4608
|
+
</Tooltip>;</code></pre>
|
|
4609
|
+
</div>
|
|
4610
|
+
<div class="note ok">
|
|
4611
|
+
<div class="row">
|
|
4612
|
+
<span class="ex-name">Sides</span>
|
|
4613
|
+
<span class="badge ok">story ok</span>
|
|
4614
|
+
</div>
|
|
4615
|
+
|
|
4616
|
+
<div class="hint">`side` sets the preferred placement; it flips on viewport collision.</div>
|
|
4617
|
+
<pre><code>const Sides = () => (
|
|
4618
|
+
<div className="grid grid-cols-2 gap-6">
|
|
4619
|
+
<Tooltip content="Tooltip on top" side="top" asChild>
|
|
4620
|
+
<Button variant="secondary">Top</Button>
|
|
4621
|
+
</Tooltip>
|
|
4622
|
+
<Tooltip content="Tooltip on the right" side="right" asChild>
|
|
4623
|
+
<Button variant="secondary">Right</Button>
|
|
4624
|
+
</Tooltip>
|
|
4625
|
+
<Tooltip content="Tooltip on the bottom" side="bottom" asChild>
|
|
4626
|
+
<Button variant="secondary">Bottom</Button>
|
|
4627
|
+
</Tooltip>
|
|
4628
|
+
<Tooltip content="Tooltip on the left" side="left" asChild>
|
|
4629
|
+
<Button variant="secondary">Left</Button>
|
|
4630
|
+
</Tooltip>
|
|
4631
|
+
</div>
|
|
4632
|
+
);</code></pre>
|
|
4633
|
+
</div>
|
|
4634
|
+
<div class="note ok">
|
|
4635
|
+
<div class="row">
|
|
4636
|
+
<span class="ex-name">As Child</span>
|
|
4637
|
+
<span class="badge ok">story ok</span>
|
|
4638
|
+
</div>
|
|
4639
|
+
|
|
4640
|
+
<div class="hint">`asChild` decorates an already-interactive trigger instead of wrapping it in a `<button>`.</div>
|
|
4641
|
+
<pre><code>const AsChild = () => <Tooltip content="Opens in a new tab" side="bottom" asChild>
|
|
4642
|
+
<a
|
|
4643
|
+
href="https://agentero.com"
|
|
4644
|
+
target="_blank"
|
|
4645
|
+
rel="noreferrer"
|
|
4646
|
+
className="text-text-default-base-primary underline">Docs
|
|
4647
|
+
</a>
|
|
4648
|
+
</Tooltip>;</code></pre>
|
|
4649
|
+
</div>
|
|
4650
|
+
<div class="note ok">
|
|
4651
|
+
<div class="row">
|
|
4652
|
+
<span class="ex-name">Long Content</span>
|
|
4653
|
+
<span class="badge ok">story ok</span>
|
|
4654
|
+
</div>
|
|
4655
|
+
|
|
4656
|
+
<div class="hint">Content wraps at the `32ch` max width.</div>
|
|
4657
|
+
<pre><code>const LongContent = () => <Tooltip
|
|
4658
|
+
content="This carrier requires a completed appointment before you can request quotes for this line of business."
|
|
4659
|
+
side="top"
|
|
4660
|
+
asChild>
|
|
4661
|
+
<Button variant="secondary">Why is this disabled?</Button>
|
|
4662
|
+
</Tooltip>;</code></pre>
|
|
4663
|
+
</div>
|
|
4664
|
+
</div>
|
|
4665
|
+
|
|
4375
4666
|
</div>
|
|
4376
4667
|
</article>
|
|
4377
4668
|
</div>
|