@partrunner-ai/ui 2.0.1 → 2.1.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/dist/index.cjs +169 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +120 -1
- package/dist/index.d.ts +120 -1
- package/dist/index.js +166 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/styles/light.css +433 -0
- package/styles/theme.css +433 -0
- package/styles/ui.css +433 -0
package/styles/ui.css
CHANGED
|
@@ -3198,3 +3198,436 @@ button.pr-stepper__dot:focus-visible {
|
|
|
3198
3198
|
.pr-sheet__title {
|
|
3199
3199
|
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3200
3200
|
}
|
|
3201
|
+
|
|
3202
|
+
/* ───────────────────────── PageHeader ───────────────────────── */
|
|
3203
|
+
|
|
3204
|
+
/* Stacks on small screens, spreads title/actions from 640px up. Text colours
|
|
3205
|
+
come from --pr-fg/--pr-fg-muted rather than fixed brand greys: opacity over
|
|
3206
|
+
a themed surface does not produce a legible grey, and the tokens are
|
|
3207
|
+
audited in both themes. */
|
|
3208
|
+
.pr-page-header {
|
|
3209
|
+
display: flex;
|
|
3210
|
+
flex-direction: column;
|
|
3211
|
+
gap: 16px;
|
|
3212
|
+
margin-block-end: 24px;
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
.pr-page-header__text {
|
|
3216
|
+
min-width: 0;
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
.pr-page-header__eyebrow {
|
|
3220
|
+
display: inline-flex;
|
|
3221
|
+
align-items: center;
|
|
3222
|
+
gap: 6px;
|
|
3223
|
+
padding: 4px 10px;
|
|
3224
|
+
border: 1px solid var(--pr-glass-border);
|
|
3225
|
+
border-radius: 999px;
|
|
3226
|
+
background: color-mix(in srgb, var(--pr-surface) 70%, transparent);
|
|
3227
|
+
-webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
3228
|
+
backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
3229
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3230
|
+
font-size: 11px;
|
|
3231
|
+
font-weight: 600;
|
|
3232
|
+
text-transform: uppercase;
|
|
3233
|
+
letter-spacing: 0.14em;
|
|
3234
|
+
color: var(--pr-fg-muted);
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
.pr-page-header__eyebrow + .pr-page-header__title {
|
|
3238
|
+
margin-block-start: 8px;
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3241
|
+
.pr-page-header__title {
|
|
3242
|
+
margin: 0;
|
|
3243
|
+
font-size: 24px;
|
|
3244
|
+
font-weight: 700;
|
|
3245
|
+
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3246
|
+
line-height: 1.25;
|
|
3247
|
+
color: var(--pr-fg);
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
.pr-page-header__subtitle {
|
|
3251
|
+
margin: 6px 0 0;
|
|
3252
|
+
font-size: 14px;
|
|
3253
|
+
line-height: 1.375;
|
|
3254
|
+
color: var(--pr-fg-muted);
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
.pr-page-header__actions {
|
|
3258
|
+
display: flex;
|
|
3259
|
+
flex-wrap: wrap;
|
|
3260
|
+
align-items: center;
|
|
3261
|
+
gap: 8px;
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
@media (min-width: 640px) {
|
|
3265
|
+
.pr-page-header {
|
|
3266
|
+
flex-direction: row;
|
|
3267
|
+
align-items: flex-end;
|
|
3268
|
+
justify-content: space-between;
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
.pr-page-header__title {
|
|
3272
|
+
font-size: 30px;
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
/* ───────────────────────── StatTile ───────────────────────── */
|
|
3277
|
+
|
|
3278
|
+
/* The tone wash mixes the tone into the current surface, so the tile stays on
|
|
3279
|
+
the semantic surface in both themes instead of sitting on fixed white.
|
|
3280
|
+
The trend chip is the one place with fixed light-theme colours: its 11px
|
|
3281
|
+
text needs AA and the tone foregrounds only clear AA under .dark. */
|
|
3282
|
+
.pr-stat-tile {
|
|
3283
|
+
position: relative;
|
|
3284
|
+
overflow: hidden;
|
|
3285
|
+
padding: 16px;
|
|
3286
|
+
border: 1px solid var(--pr-glass-border);
|
|
3287
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
3288
|
+
background: color-mix(in srgb, var(--pr-surface) 90%, transparent);
|
|
3289
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3290
|
+
transition:
|
|
3291
|
+
transform 200ms var(--pr-ease, ease),
|
|
3292
|
+
box-shadow 200ms var(--pr-ease, ease);
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
.pr-stat-tile:hover {
|
|
3296
|
+
transform: translateY(-2px);
|
|
3297
|
+
box-shadow: var(--pr-shadow-card);
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
.pr-stat-tile--yellow {
|
|
3301
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-yellow-bg));
|
|
3302
|
+
}
|
|
3303
|
+
.pr-stat-tile--amber {
|
|
3304
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-amber-bg));
|
|
3305
|
+
}
|
|
3306
|
+
.pr-stat-tile--blue {
|
|
3307
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-blue-bg));
|
|
3308
|
+
}
|
|
3309
|
+
.pr-stat-tile--purple {
|
|
3310
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-purple-bg));
|
|
3311
|
+
}
|
|
3312
|
+
.pr-stat-tile--green {
|
|
3313
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-green-bg));
|
|
3314
|
+
}
|
|
3315
|
+
.pr-stat-tile--rose {
|
|
3316
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-rose-bg));
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
.pr-stat-tile__body {
|
|
3320
|
+
display: flex;
|
|
3321
|
+
align-items: flex-start;
|
|
3322
|
+
justify-content: space-between;
|
|
3323
|
+
gap: 12px;
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
.pr-stat-tile__main {
|
|
3327
|
+
min-width: 0;
|
|
3328
|
+
flex: 1;
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3331
|
+
.pr-stat-tile__label {
|
|
3332
|
+
margin: 0;
|
|
3333
|
+
font-size: 11px;
|
|
3334
|
+
font-weight: 600;
|
|
3335
|
+
text-transform: uppercase;
|
|
3336
|
+
letter-spacing: 0.12em;
|
|
3337
|
+
color: var(--pr-fg-muted);
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
.pr-stat-tile__value {
|
|
3341
|
+
margin: 8px 0 0;
|
|
3342
|
+
font-size: 24px;
|
|
3343
|
+
font-weight: 700;
|
|
3344
|
+
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3345
|
+
line-height: 1;
|
|
3346
|
+
color: var(--pr-fg);
|
|
3347
|
+
}
|
|
3348
|
+
|
|
3349
|
+
.pr-stat-tile__hint {
|
|
3350
|
+
margin: 6px 0 0;
|
|
3351
|
+
font-size: 12px;
|
|
3352
|
+
line-height: 1.375;
|
|
3353
|
+
color: var(--pr-fg-muted);
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
.pr-stat-tile__icon {
|
|
3357
|
+
display: flex;
|
|
3358
|
+
flex-shrink: 0;
|
|
3359
|
+
align-items: center;
|
|
3360
|
+
justify-content: center;
|
|
3361
|
+
width: 36px;
|
|
3362
|
+
height: 36px;
|
|
3363
|
+
border-radius: var(--pr-radius-sm, 0.375rem);
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
.pr-stat-tile__icon svg {
|
|
3367
|
+
width: 18px;
|
|
3368
|
+
height: 18px;
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
/* Icon-chip pairs use the audited tone bg/fg pairs. The light-theme tone
|
|
3372
|
+
foregrounds sit below AA for text but only ever paint an 18px icon here,
|
|
3373
|
+
which is governed by the 3:1 non-text minimum. */
|
|
3374
|
+
.pr-stat-tile--yellow .pr-stat-tile__icon {
|
|
3375
|
+
background: var(--pr-tone-yellow-bg);
|
|
3376
|
+
color: var(--pr-tone-yellow-fg);
|
|
3377
|
+
}
|
|
3378
|
+
.pr-stat-tile--amber .pr-stat-tile__icon {
|
|
3379
|
+
background: var(--pr-tone-amber-bg);
|
|
3380
|
+
color: var(--pr-tone-amber-fg);
|
|
3381
|
+
}
|
|
3382
|
+
.pr-stat-tile--blue .pr-stat-tile__icon {
|
|
3383
|
+
background: var(--pr-tone-blue-bg);
|
|
3384
|
+
color: var(--pr-tone-blue-fg);
|
|
3385
|
+
}
|
|
3386
|
+
.pr-stat-tile--purple .pr-stat-tile__icon {
|
|
3387
|
+
background: var(--pr-tone-purple-bg);
|
|
3388
|
+
color: var(--pr-tone-purple-fg);
|
|
3389
|
+
}
|
|
3390
|
+
.pr-stat-tile--green .pr-stat-tile__icon {
|
|
3391
|
+
background: var(--pr-tone-green-bg);
|
|
3392
|
+
color: var(--pr-tone-green-fg);
|
|
3393
|
+
}
|
|
3394
|
+
.pr-stat-tile--rose .pr-stat-tile__icon {
|
|
3395
|
+
background: var(--pr-tone-rose-bg);
|
|
3396
|
+
color: var(--pr-tone-rose-fg);
|
|
3397
|
+
}
|
|
3398
|
+
.pr-stat-tile--neutral .pr-stat-tile__icon {
|
|
3399
|
+
background: var(--pr-border);
|
|
3400
|
+
color: var(--pr-fg-muted);
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
.pr-stat-tile__meta {
|
|
3404
|
+
display: flex;
|
|
3405
|
+
align-items: center;
|
|
3406
|
+
justify-content: space-between;
|
|
3407
|
+
gap: 8px;
|
|
3408
|
+
margin-block-start: 12px;
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
.pr-stat-tile__trend {
|
|
3412
|
+
display: inline-flex;
|
|
3413
|
+
align-items: center;
|
|
3414
|
+
gap: 4px;
|
|
3415
|
+
padding: 2px 8px;
|
|
3416
|
+
border-radius: 999px;
|
|
3417
|
+
font-size: 11px;
|
|
3418
|
+
font-weight: 600;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
.pr-stat-tile__trend svg {
|
|
3422
|
+
width: 12px;
|
|
3423
|
+
height: 12px;
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
.pr-stat-tile__trend--up {
|
|
3427
|
+
background: #d1fae5;
|
|
3428
|
+
color: #047857;
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
.pr-stat-tile__trend--down {
|
|
3432
|
+
background: #ffe4e6;
|
|
3433
|
+
color: #be123c;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
.dark .pr-stat-tile__trend--up {
|
|
3437
|
+
background: var(--pr-tone-green-bg);
|
|
3438
|
+
color: var(--pr-tone-green-fg);
|
|
3439
|
+
}
|
|
3440
|
+
|
|
3441
|
+
.dark .pr-stat-tile__trend--down {
|
|
3442
|
+
background: var(--pr-tone-rose-bg);
|
|
3443
|
+
color: var(--pr-tone-rose-fg);
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
.pr-stat-tile__footer {
|
|
3447
|
+
min-width: 0;
|
|
3448
|
+
overflow: hidden;
|
|
3449
|
+
font-size: 11px;
|
|
3450
|
+
color: var(--pr-fg-faint);
|
|
3451
|
+
text-overflow: ellipsis;
|
|
3452
|
+
white-space: nowrap;
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
@media (min-width: 640px) {
|
|
3456
|
+
.pr-stat-tile {
|
|
3457
|
+
padding: 20px;
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3460
|
+
.pr-stat-tile__value {
|
|
3461
|
+
font-size: 28px;
|
|
3462
|
+
}
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
/* ───────────────────────── Toolbar ───────────────────────── */
|
|
3466
|
+
|
|
3467
|
+
/* Glass surface, same recipe as the shell chrome at half the blur: separates
|
|
3468
|
+
from the page background without weight, and follows the theme. */
|
|
3469
|
+
.pr-toolbar {
|
|
3470
|
+
display: flex;
|
|
3471
|
+
flex-wrap: wrap;
|
|
3472
|
+
align-items: center;
|
|
3473
|
+
gap: 8px;
|
|
3474
|
+
padding: 10px 12px;
|
|
3475
|
+
border: 1px solid var(--pr-glass-border);
|
|
3476
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
3477
|
+
background: color-mix(in srgb, var(--pr-surface) 75%, transparent);
|
|
3478
|
+
-webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
3479
|
+
backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
3480
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3481
|
+
}
|
|
3482
|
+
|
|
3483
|
+
/* ───────────────────────── IconButton ───────────────────────── */
|
|
3484
|
+
|
|
3485
|
+
/* Icon-only button with an accessibility contract: the touch target is at
|
|
3486
|
+
least 44x44 on small screens for every size, and on all screens unless
|
|
3487
|
+
`compact` is set. Desktop sizes step down visually while the pointer
|
|
3488
|
+
stays coarse. */
|
|
3489
|
+
.pr-icon-btn {
|
|
3490
|
+
display: inline-flex;
|
|
3491
|
+
align-items: center;
|
|
3492
|
+
justify-content: center;
|
|
3493
|
+
min-width: 44px;
|
|
3494
|
+
min-height: 44px;
|
|
3495
|
+
padding: 0;
|
|
3496
|
+
border: none;
|
|
3497
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
3498
|
+
background: transparent;
|
|
3499
|
+
cursor: pointer;
|
|
3500
|
+
transition:
|
|
3501
|
+
background-color 160ms var(--pr-ease, ease),
|
|
3502
|
+
color 160ms var(--pr-ease, ease),
|
|
3503
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
.pr-icon-btn:focus-visible {
|
|
3507
|
+
outline: none;
|
|
3508
|
+
box-shadow: var(--pr-focus-ring);
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
.pr-icon-btn:active:not(:disabled) {
|
|
3512
|
+
transform: scale(0.96);
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
.pr-icon-btn:disabled,
|
|
3516
|
+
.pr-icon-btn[aria-disabled='true'] {
|
|
3517
|
+
opacity: 0.6;
|
|
3518
|
+
cursor: not-allowed;
|
|
3519
|
+
pointer-events: none;
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
@media (min-width: 640px) {
|
|
3523
|
+
.pr-icon-btn--sm {
|
|
3524
|
+
min-width: 36px;
|
|
3525
|
+
min-height: 36px;
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
.pr-icon-btn--md {
|
|
3529
|
+
min-width: 40px;
|
|
3530
|
+
min-height: 40px;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
.pr-icon-btn--lg {
|
|
3534
|
+
min-width: 48px;
|
|
3535
|
+
min-height: 48px;
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
.pr-icon-btn--compact {
|
|
3539
|
+
min-width: 32px;
|
|
3540
|
+
min-height: 32px;
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
.pr-icon-btn svg {
|
|
3545
|
+
width: 18px;
|
|
3546
|
+
height: 18px;
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
.pr-icon-btn--default,
|
|
3550
|
+
.pr-icon-btn--subtle {
|
|
3551
|
+
color: var(--pr-fg-muted);
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3554
|
+
.pr-icon-btn--default:hover,
|
|
3555
|
+
.pr-icon-btn--subtle:hover {
|
|
3556
|
+
background: var(--pr-glass-bg);
|
|
3557
|
+
color: var(--pr-fg);
|
|
3558
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
.pr-icon-btn--ghost {
|
|
3562
|
+
color: var(--pr-fg-muted);
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
.pr-icon-btn--ghost:hover {
|
|
3566
|
+
background: var(--pr-glass-bg);
|
|
3567
|
+
color: var(--pr-fg);
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
.pr-icon-btn--primary {
|
|
3571
|
+
color: var(--pr-accent);
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
.pr-icon-btn--primary:hover {
|
|
3575
|
+
background: color-mix(in srgb, var(--pr-accent) 15%, transparent);
|
|
3576
|
+
color: var(--pr-accent-strong);
|
|
3577
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3580
|
+
.pr-icon-btn--danger {
|
|
3581
|
+
color: var(--pr-danger);
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
.pr-icon-btn--danger:hover {
|
|
3585
|
+
background: color-mix(in srgb, var(--pr-danger) 12%, transparent);
|
|
3586
|
+
color: var(--pr-danger);
|
|
3587
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
/* ───────────────────────── ConfirmDialog ───────────────────────── */
|
|
3591
|
+
|
|
3592
|
+
.pr-confirm-dialog__actions {
|
|
3593
|
+
display: flex;
|
|
3594
|
+
flex-direction: column-reverse;
|
|
3595
|
+
gap: 8px;
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
.pr-confirm-dialog__icon-row {
|
|
3599
|
+
display: flex;
|
|
3600
|
+
justify-content: center;
|
|
3601
|
+
padding-block: 8px;
|
|
3602
|
+
}
|
|
3603
|
+
|
|
3604
|
+
.pr-confirm-dialog__icon {
|
|
3605
|
+
display: inline-flex;
|
|
3606
|
+
align-items: center;
|
|
3607
|
+
justify-content: center;
|
|
3608
|
+
width: 48px;
|
|
3609
|
+
height: 48px;
|
|
3610
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
.pr-confirm-dialog__icon svg {
|
|
3614
|
+
width: 24px;
|
|
3615
|
+
height: 24px;
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3618
|
+
.pr-confirm-dialog__icon--danger {
|
|
3619
|
+
background: color-mix(in srgb, var(--pr-danger) 12%, transparent);
|
|
3620
|
+
color: var(--pr-danger);
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
.pr-confirm-dialog__icon--accent {
|
|
3624
|
+
background: var(--pr-tone-yellow-bg);
|
|
3625
|
+
color: var(--pr-tone-yellow-fg);
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
@media (min-width: 640px) {
|
|
3629
|
+
.pr-confirm-dialog__actions {
|
|
3630
|
+
flex-direction: row;
|
|
3631
|
+
justify-content: flex-end;
|
|
3632
|
+
}
|
|
3633
|
+
}
|