@agentero/design-system 0.13.0 → 0.15.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 +262 -20
- package/mcp/manifests/components.json +1 -1
- package/package.json +10 -1
- package/src/progress/index.d.ts +2 -0
- package/src/progress/index.js +2 -0
- package/src/progress/progress.d.ts +89 -0
- package/src/progress/progress.js +46 -0
- 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
|
@@ -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">16 components ok</span><span class="filter-pill ok" aria-disabled="true">146 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>3.1s</strong>.
|
|
586
586
|
</div>
|
|
587
587
|
<h2 class="section-title">Components</h2>
|
|
588
588
|
<div class="grid" role="list">
|
|
@@ -3220,6 +3220,248 @@ 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="Progress">
|
|
3231
|
+
<div class="head">
|
|
3232
|
+
<div class="title">
|
|
3233
|
+
<h2><span class="status-dot dot-ok"></span> Progress</h2>
|
|
3234
|
+
<div class="badges">
|
|
3235
|
+
<label for="c-9-components-progress-props" class="badge ok as-toggle">4 prop types</label>
|
|
3236
|
+
|
|
3237
|
+
<label for="c-9-components-progress-stories" class="badge ok as-toggle">4 stories</label>
|
|
3238
|
+
|
|
3239
|
+
</div>
|
|
3240
|
+
</div>
|
|
3241
|
+
<div class="meta" title="./src/progress/progress.stories.tsx">components-progress · ./src/progress/progress.stories.tsx</div>
|
|
3242
|
+
|
|
3243
|
+
<div class="hint">Progress shows how far a bounded task has advanced. Pass `percentage` (0–100) and optionally a `label` rendered above the bar. The fill paints with `currentColor`, so recolor it with a plain text class — e.g. `className="text-brand-400"`.</div>
|
|
3244
|
+
|
|
3245
|
+
</div>
|
|
3246
|
+
|
|
3247
|
+
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3248
|
+
|
|
3249
|
+
|
|
3250
|
+
<input id="c-9-components-progress-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3251
|
+
|
|
3252
|
+
<input id="c-9-components-progress-props" class="tg tg-props" type="checkbox" hidden />
|
|
3253
|
+
|
|
3254
|
+
<div class="panels">
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
|
|
3258
|
+
<div class="panel panel-props">
|
|
3259
|
+
<div class="note ok">
|
|
3260
|
+
<div class="row">
|
|
3261
|
+
<span class="ex-name">Prop types <small>(react-docgen-typescript)</small></span>
|
|
3262
|
+
<span class="badge ok">4 prop types</span>
|
|
3263
|
+
</div>
|
|
3264
|
+
<pre><code>Component: src/progress/progress.tsx::Progress</code></pre>
|
|
3265
|
+
<pre><code>Props:</code></pre>
|
|
3266
|
+
<pre><code>/**
|
|
3267
|
+
* Accessible name when no visible `label` is provided. Defaults to `'Progress'`.
|
|
3268
|
+
*/
|
|
3269
|
+
aria-label?: string
|
|
3270
|
+
|
|
3271
|
+
/**
|
|
3272
|
+
* Extra classes for the bar, merged last. The fill paints with `currentColor`,
|
|
3273
|
+
* so a text color recolors it (e.g. `text-brand-400`); sizing classes resize
|
|
3274
|
+
* the track (e.g. `h-3`).
|
|
3275
|
+
*/
|
|
3276
|
+
className?: string
|
|
3277
|
+
|
|
3278
|
+
/**
|
|
3279
|
+
* Optional label rendered above the bar, with the percentage value on the right.
|
|
3280
|
+
*/
|
|
3281
|
+
label?: string
|
|
3282
|
+
|
|
3283
|
+
/**
|
|
3284
|
+
* Completion percentage, 0–100. Values outside the range are clamped.
|
|
3285
|
+
*/
|
|
3286
|
+
percentage: number</code></pre>
|
|
3287
|
+
</div>
|
|
3288
|
+
</div>
|
|
3289
|
+
|
|
3290
|
+
<div class="panel panel-stories">
|
|
3291
|
+
|
|
3292
|
+
|
|
3293
|
+
|
|
3294
|
+
<div class="note ok">
|
|
3295
|
+
<div class="row">
|
|
3296
|
+
<span class="ex-name">Imports</span>
|
|
3297
|
+
</div>
|
|
3298
|
+
<pre><code>import { Progress } from "@agentero/design-system";</code></pre>
|
|
3299
|
+
</div>
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
<div class="note ok">
|
|
3303
|
+
<div class="row">
|
|
3304
|
+
<span class="ex-name">Default</span>
|
|
3305
|
+
<span class="badge ok">story ok</span>
|
|
3306
|
+
</div>
|
|
3307
|
+
|
|
3308
|
+
<div class="hint">Default near-black bar; exposes `role="progressbar"` with the current value.</div>
|
|
3309
|
+
<pre><code>const Default = () => <Progress percentage={62} />;</code></pre>
|
|
3310
|
+
</div>
|
|
3311
|
+
<div class="note ok">
|
|
3312
|
+
<div class="row">
|
|
3313
|
+
<span class="ex-name">With Label</span>
|
|
3314
|
+
<span class="badge ok">story ok</span>
|
|
3315
|
+
</div>
|
|
3316
|
+
|
|
3317
|
+
<div class="hint">`label` renders above the bar with the percentage value on the right.</div>
|
|
3318
|
+
<pre><code>const WithLabel = () => <Progress percentage={62} label="Profile completion" className="text-brand-400" />;</code></pre>
|
|
3319
|
+
</div>
|
|
3320
|
+
<div class="note ok">
|
|
3321
|
+
<div class="row">
|
|
3322
|
+
<span class="ex-name">Custom Colors</span>
|
|
3323
|
+
<span class="badge ok">story ok</span>
|
|
3324
|
+
</div>
|
|
3325
|
+
|
|
3326
|
+
<div class="hint">The fill follows `currentColor`: recolor it with any `text-*` class via `className`.</div>
|
|
3327
|
+
<pre><code>const CustomColors = args => (
|
|
3328
|
+
<div className="flex flex-col gap-4">
|
|
3329
|
+
{[
|
|
3330
|
+
['default', undefined],
|
|
3331
|
+
['text-brand-400', 'text-brand-400'],
|
|
3332
|
+
['text-brand-600', 'text-brand-600'],
|
|
3333
|
+
['text-purple-400', 'text-purple-400'],
|
|
3334
|
+
['text-orange-400', 'text-orange-400'],
|
|
3335
|
+
['text-pink-400', 'text-pink-400'],
|
|
3336
|
+
['text-blue-400', 'text-blue-400']
|
|
3337
|
+
].map(([name, className]) => (
|
|
3338
|
+
<Progress key={name} {...args} className={className} label={name} />
|
|
3339
|
+
))}
|
|
3340
|
+
</div>
|
|
3341
|
+
);</code></pre>
|
|
3342
|
+
</div>
|
|
3343
|
+
<div class="note ok">
|
|
3344
|
+
<div class="row">
|
|
3345
|
+
<span class="ex-name">Clamped</span>
|
|
3346
|
+
<span class="badge ok">story ok</span>
|
|
3347
|
+
</div>
|
|
3348
|
+
|
|
3349
|
+
<div class="hint">Out-of-range values are clamped to 0–100.</div>
|
|
3350
|
+
<pre><code>const Clamped = () => <Progress percentage={150} />;</code></pre>
|
|
3351
|
+
</div>
|
|
3352
|
+
</div>
|
|
3353
|
+
|
|
3354
|
+
</div>
|
|
3355
|
+
</article>
|
|
3356
|
+
<article
|
|
3357
|
+
class="card
|
|
3358
|
+
no-error
|
|
3359
|
+
no-info
|
|
3360
|
+
no-story-error
|
|
3361
|
+
no-doc-error"
|
|
3362
|
+
role="listitem"
|
|
3363
|
+
aria-label="Skeleton">
|
|
3364
|
+
<div class="head">
|
|
3365
|
+
<div class="title">
|
|
3366
|
+
<h2><span class="status-dot dot-ok"></span> Skeleton</h2>
|
|
3367
|
+
<div class="badges">
|
|
3368
|
+
|
|
3369
|
+
|
|
3370
|
+
<label for="c-10-components-skeleton-stories" class="badge ok as-toggle">4 stories</label>
|
|
3371
|
+
|
|
3372
|
+
</div>
|
|
3373
|
+
</div>
|
|
3374
|
+
<div class="meta" title="./src/skeleton/skeleton.stories.tsx">components-skeleton · ./src/skeleton/skeleton.stories.tsx</div>
|
|
3375
|
+
|
|
3376
|
+
<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>
|
|
3377
|
+
|
|
3378
|
+
</div>
|
|
3379
|
+
|
|
3380
|
+
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3381
|
+
|
|
3382
|
+
|
|
3383
|
+
<input id="c-10-components-skeleton-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3384
|
+
|
|
3385
|
+
|
|
3386
|
+
|
|
3387
|
+
<div class="panels">
|
|
3388
|
+
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
<div class="panel panel-stories">
|
|
3393
|
+
|
|
3394
|
+
|
|
3395
|
+
|
|
3396
|
+
<div class="note ok">
|
|
3397
|
+
<div class="row">
|
|
3398
|
+
<span class="ex-name">Imports</span>
|
|
3399
|
+
</div>
|
|
3400
|
+
<pre><code>import { Skeleton } from "@agentero/design-system";</code></pre>
|
|
3401
|
+
</div>
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
<div class="note ok">
|
|
3405
|
+
<div class="row">
|
|
3406
|
+
<span class="ex-name">Default</span>
|
|
3407
|
+
<span class="badge ok">story ok</span>
|
|
3408
|
+
</div>
|
|
3409
|
+
|
|
3410
|
+
<div class="hint">Default placeholder box, sized via `className`; hidden from assistive technologies.</div>
|
|
3411
|
+
<pre><code>const Default = () => <Skeleton className="h-4 w-40" />;</code></pre>
|
|
3412
|
+
</div>
|
|
3413
|
+
<div class="note ok">
|
|
3414
|
+
<div class="row">
|
|
3415
|
+
<span class="ex-name">Text Block</span>
|
|
3416
|
+
<span class="badge ok">story ok</span>
|
|
3417
|
+
</div>
|
|
3418
|
+
|
|
3419
|
+
<div class="hint">Compose plain skeletons to sketch the loading shape of real content.</div>
|
|
3420
|
+
<pre><code>const TextBlock = () => (
|
|
3421
|
+
<div className="flex w-80 flex-col gap-2">
|
|
3422
|
+
<Skeleton className="h-4 w-full" />
|
|
3423
|
+
<Skeleton className="h-4 w-full" />
|
|
3424
|
+
<Skeleton className="h-4 w-2/3" />
|
|
3425
|
+
</div>
|
|
3426
|
+
);</code></pre>
|
|
3427
|
+
</div>
|
|
3428
|
+
<div class="note ok">
|
|
3429
|
+
<div class="row">
|
|
3430
|
+
<span class="ex-name">List Item</span>
|
|
3431
|
+
<span class="badge ok">story ok</span>
|
|
3432
|
+
</div>
|
|
3433
|
+
|
|
3434
|
+
<div class="hint">`rounded-full` for avatars; pair with text lines for a list-item placeholder.</div>
|
|
3435
|
+
<pre><code>const ListItem = () => (
|
|
3436
|
+
<div className="flex w-80 items-center gap-3">
|
|
3437
|
+
<Skeleton className="size-10 shrink-0 rounded-full" />
|
|
3438
|
+
<div className="flex w-full flex-col gap-2">
|
|
3439
|
+
<Skeleton className="h-4 w-1/2" />
|
|
3440
|
+
<Skeleton className="h-3 w-3/4" />
|
|
3441
|
+
</div>
|
|
3442
|
+
</div>
|
|
3443
|
+
);</code></pre>
|
|
3444
|
+
</div>
|
|
3445
|
+
<div class="note ok">
|
|
3446
|
+
<div class="row">
|
|
3447
|
+
<span class="ex-name">Card</span>
|
|
3448
|
+
<span class="badge ok">story ok</span>
|
|
3449
|
+
</div>
|
|
3450
|
+
|
|
3451
|
+
<div class="hint">A card-shaped placeholder: media area, title, and body lines.</div>
|
|
3452
|
+
<pre><code>const Card = () => (
|
|
3453
|
+
<div className="flex w-80 flex-col gap-3 rounded-lg border border-border-default-base-primary p-4">
|
|
3454
|
+
<Skeleton className="h-32 w-full rounded-md" />
|
|
3455
|
+
<Skeleton className="h-5 w-1/2" />
|
|
3456
|
+
<Skeleton className="h-4 w-full" />
|
|
3457
|
+
<Skeleton className="h-4 w-2/3" />
|
|
3458
|
+
</div>
|
|
3459
|
+
);</code></pre>
|
|
3460
|
+
</div>
|
|
3461
|
+
</div>
|
|
3462
|
+
|
|
3463
|
+
</div>
|
|
3464
|
+
</article>
|
|
3223
3465
|
<article
|
|
3224
3466
|
class="card
|
|
3225
3467
|
no-error
|
|
@@ -3232,9 +3474,9 @@ totalCount: number</code></pre>
|
|
|
3232
3474
|
<div class="title">
|
|
3233
3475
|
<h2><span class="status-dot dot-ok"></span> Switch</h2>
|
|
3234
3476
|
<div class="badges">
|
|
3235
|
-
<label for="c-
|
|
3477
|
+
<label for="c-11-components-switch-props" class="badge ok as-toggle">2 prop types</label>
|
|
3236
3478
|
|
|
3237
|
-
<label for="c-
|
|
3479
|
+
<label for="c-11-components-switch-stories" class="badge ok as-toggle">6 stories</label>
|
|
3238
3480
|
|
|
3239
3481
|
</div>
|
|
3240
3482
|
</div>
|
|
@@ -3247,9 +3489,9 @@ totalCount: number</code></pre>
|
|
|
3247
3489
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3248
3490
|
|
|
3249
3491
|
|
|
3250
|
-
<input id="c-
|
|
3492
|
+
<input id="c-11-components-switch-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3251
3493
|
|
|
3252
|
-
<input id="c-
|
|
3494
|
+
<input id="c-11-components-switch-props" class="tg tg-props" type="checkbox" hidden />
|
|
3253
3495
|
|
|
3254
3496
|
<div class="panels">
|
|
3255
3497
|
|
|
@@ -3399,7 +3641,7 @@ size?: "sm" | "md"</code></pre>
|
|
|
3399
3641
|
<div class="badges">
|
|
3400
3642
|
|
|
3401
3643
|
|
|
3402
|
-
<label for="c-
|
|
3644
|
+
<label for="c-12-components-table-stories" class="badge ok as-toggle">9 stories</label>
|
|
3403
3645
|
|
|
3404
3646
|
</div>
|
|
3405
3647
|
</div>
|
|
@@ -3412,7 +3654,7 @@ size?: "sm" | "md"</code></pre>
|
|
|
3412
3654
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3413
3655
|
|
|
3414
3656
|
|
|
3415
|
-
<input id="c-
|
|
3657
|
+
<input id="c-12-components-table-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3416
3658
|
|
|
3417
3659
|
|
|
3418
3660
|
|
|
@@ -3586,9 +3828,9 @@ import { Fragment } from "react";</code></pre>
|
|
|
3586
3828
|
<div class="title">
|
|
3587
3829
|
<h2><span class="status-dot dot-ok"></span> Tag</h2>
|
|
3588
3830
|
<div class="badges">
|
|
3589
|
-
<label for="c-
|
|
3831
|
+
<label for="c-13-components-tag-props" class="badge ok as-toggle">6 prop types</label>
|
|
3590
3832
|
|
|
3591
|
-
<label for="c-
|
|
3833
|
+
<label for="c-13-components-tag-stories" class="badge ok as-toggle">10 stories</label>
|
|
3592
3834
|
|
|
3593
3835
|
</div>
|
|
3594
3836
|
</div>
|
|
@@ -3601,9 +3843,9 @@ import { Fragment } from "react";</code></pre>
|
|
|
3601
3843
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3602
3844
|
|
|
3603
3845
|
|
|
3604
|
-
<input id="c-
|
|
3846
|
+
<input id="c-13-components-tag-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3605
3847
|
|
|
3606
|
-
<input id="c-
|
|
3848
|
+
<input id="c-13-components-tag-props" class="tg tg-props" type="checkbox" hidden />
|
|
3607
3849
|
|
|
3608
3850
|
<div class="panels">
|
|
3609
3851
|
|
|
@@ -3960,9 +4202,9 @@ variant?: "ghost" | "secondary" | "tertiary" | &qu
|
|
|
3960
4202
|
<div class="title">
|
|
3961
4203
|
<h2><span class="status-dot dot-ok"></span> Toast</h2>
|
|
3962
4204
|
<div class="badges">
|
|
3963
|
-
<label for="c-
|
|
4205
|
+
<label for="c-14-components-toast-props" class="badge ok as-toggle">11 prop types</label>
|
|
3964
4206
|
|
|
3965
|
-
<label for="c-
|
|
4207
|
+
<label for="c-14-components-toast-stories" class="badge ok as-toggle">11 stories</label>
|
|
3966
4208
|
|
|
3967
4209
|
</div>
|
|
3968
4210
|
</div>
|
|
@@ -3975,9 +4217,9 @@ variant?: "ghost" | "secondary" | "tertiary" | &qu
|
|
|
3975
4217
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3976
4218
|
|
|
3977
4219
|
|
|
3978
|
-
<input id="c-
|
|
4220
|
+
<input id="c-14-components-toast-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3979
4221
|
|
|
3980
|
-
<input id="c-
|
|
4222
|
+
<input id="c-14-components-toast-props" class="tg tg-props" type="checkbox" hidden />
|
|
3981
4223
|
|
|
3982
4224
|
<div class="panels">
|
|
3983
4225
|
|
|
@@ -4386,9 +4628,9 @@ visibleToasts?: number</code></pre>
|
|
|
4386
4628
|
<div class="title">
|
|
4387
4629
|
<h2><span class="status-dot dot-ok"></span> Tooltip</h2>
|
|
4388
4630
|
<div class="badges">
|
|
4389
|
-
<label for="c-
|
|
4631
|
+
<label for="c-15-components-tooltip-props" class="badge ok as-toggle">9 prop types</label>
|
|
4390
4632
|
|
|
4391
|
-
<label for="c-
|
|
4633
|
+
<label for="c-15-components-tooltip-stories" class="badge ok as-toggle">5 stories</label>
|
|
4392
4634
|
|
|
4393
4635
|
</div>
|
|
4394
4636
|
</div>
|
|
@@ -4401,9 +4643,9 @@ visibleToasts?: number</code></pre>
|
|
|
4401
4643
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
4402
4644
|
|
|
4403
4645
|
|
|
4404
|
-
<input id="c-
|
|
4646
|
+
<input id="c-15-components-tooltip-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
4405
4647
|
|
|
4406
|
-
<input id="c-
|
|
4648
|
+
<input id="c-15-components-tooltip-props" class="tg tg-props" type="checkbox" hidden />
|
|
4407
4649
|
|
|
4408
4650
|
<div class="panels">
|
|
4409
4651
|
|