@partrunner-ai/ui 2.5.0 → 2.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partrunner-ai/ui",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "L1 primitives built on the PartRunner token scale. Plain CSS over --pr-* so it works in Tailwind v3, v4, or no Tailwind at all.",
5
5
  "license": "(MIT AND OFL-1.1)",
6
6
  "type": "module",
package/recipes/inbox.md CHANGED
@@ -411,6 +411,7 @@ export function InboxRecipe({ state, onRetry }: RecipeProps) {
411
411
  />
412
412
  )
413
413
  ) : (
414
+ // compact = the dense work queue: three text lines in 59 px a row. Do not restyle the row parts.
414
415
  <ItemList aria-label="Flotas" density="compact">
415
416
  {fleets.map((fleet) => (
416
417
  <ItemRow
package/styles/light.css CHANGED
@@ -5280,11 +5280,25 @@ button.pr-stepper__dot:focus-visible {
5280
5280
  cursor: pointer;
5281
5281
  transition: background-color 160ms var(--pr-ease, ease);
5282
5282
  }
5283
+ /* Compact: the dense work-queue rhythm. Three text lines are 59 px, with fixed line heights. */
5283
5284
  .pr-item-list--compact .pr-item-row__main {
5284
5285
  --pr-item-min: 36px;
5285
- gap: 8px;
5286
- padding: 6px 12px;
5287
- }
5286
+ align-items: flex-start;
5287
+ gap: 10px;
5288
+ padding-block: 5px;
5289
+ padding-inline: 14px 12px;
5290
+ }
5291
+ .pr-item-list--compact .pr-item-row__leading { padding-block-start: 2px; }
5292
+ .pr-item-list--compact .pr-item-row__trailing { align-self: center; }
5293
+ .pr-item-list--compact .pr-item-row__body { gap: 0; align-self: center; }
5294
+ .pr-item-list--compact .pr-item-row__top { align-items: center; }
5295
+ .pr-item-list--compact .pr-item-row__title { line-height: 18px; }
5296
+ .pr-item-list--compact .pr-item-row__description { line-height: 16px; }
5297
+ .pr-item-list--compact .pr-item-row__meta,
5298
+ .pr-item-list--compact .pr-item-row__footer { line-height: 15px; }
5299
+ .pr-item-list--compact .pr-item-row__dot--overlay { inset-block-start: 0; }
5300
+ /* A footer that starts with a badge is as tall as the badge: 18 px with a sm badge. */
5301
+ .pr-item-list--compact .pr-item-row__footer .pr-badge { margin-block: 0; line-height: 14px; }
5288
5302
  .pr-item-row__main:hover:not(:disabled):not([aria-disabled='true']) {
5289
5303
  --pr-item-bg: var(--pr-elevated);
5290
5304
  background: var(--pr-elevated);
@@ -5363,7 +5377,8 @@ button.pr-stepper__dot:focus-visible {
5363
5377
  width: 8px;
5364
5378
  height: 8px;
5365
5379
  border-radius: 999px;
5366
- background: var(--pr-accent);
5380
+ /* The accent darkened toward the text colour: at least 3:1 on the row in both themes. */
5381
+ background: color-mix(in srgb, var(--pr-accent-deep) 55%, var(--pr-fg));
5367
5382
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pr-fg) 25%, transparent);
5368
5383
  }
5369
5384
  .pr-item-row__dot--overlay {
@@ -5390,6 +5405,10 @@ button.pr-stepper__dot:focus-visible {
5390
5405
  white-space: nowrap;
5391
5406
  text-overflow: ellipsis;
5392
5407
  }
5408
+ .pr-item-row__description strong {
5409
+ color: var(--pr-fg);
5410
+ font-weight: 600;
5411
+ }
5393
5412
  .pr-item-row__footer {
5394
5413
  display: block;
5395
5414
  min-width: 0;
package/styles/theme.css CHANGED
@@ -5335,11 +5335,25 @@ button.pr-stepper__dot:focus-visible {
5335
5335
  cursor: pointer;
5336
5336
  transition: background-color 160ms var(--pr-ease, ease);
5337
5337
  }
5338
+ /* Compact: the dense work-queue rhythm. Three text lines are 59 px, with fixed line heights. */
5338
5339
  .pr-item-list--compact .pr-item-row__main {
5339
5340
  --pr-item-min: 36px;
5340
- gap: 8px;
5341
- padding: 6px 12px;
5342
- }
5341
+ align-items: flex-start;
5342
+ gap: 10px;
5343
+ padding-block: 5px;
5344
+ padding-inline: 14px 12px;
5345
+ }
5346
+ .pr-item-list--compact .pr-item-row__leading { padding-block-start: 2px; }
5347
+ .pr-item-list--compact .pr-item-row__trailing { align-self: center; }
5348
+ .pr-item-list--compact .pr-item-row__body { gap: 0; align-self: center; }
5349
+ .pr-item-list--compact .pr-item-row__top { align-items: center; }
5350
+ .pr-item-list--compact .pr-item-row__title { line-height: 18px; }
5351
+ .pr-item-list--compact .pr-item-row__description { line-height: 16px; }
5352
+ .pr-item-list--compact .pr-item-row__meta,
5353
+ .pr-item-list--compact .pr-item-row__footer { line-height: 15px; }
5354
+ .pr-item-list--compact .pr-item-row__dot--overlay { inset-block-start: 0; }
5355
+ /* A footer that starts with a badge is as tall as the badge: 18 px with a sm badge. */
5356
+ .pr-item-list--compact .pr-item-row__footer .pr-badge { margin-block: 0; line-height: 14px; }
5343
5357
  .pr-item-row__main:hover:not(:disabled):not([aria-disabled='true']) {
5344
5358
  --pr-item-bg: var(--pr-elevated);
5345
5359
  background: var(--pr-elevated);
@@ -5418,7 +5432,8 @@ button.pr-stepper__dot:focus-visible {
5418
5432
  width: 8px;
5419
5433
  height: 8px;
5420
5434
  border-radius: 999px;
5421
- background: var(--pr-accent);
5435
+ /* The accent darkened toward the text colour: at least 3:1 on the row in both themes. */
5436
+ background: color-mix(in srgb, var(--pr-accent-deep) 55%, var(--pr-fg));
5422
5437
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pr-fg) 25%, transparent);
5423
5438
  }
5424
5439
  .pr-item-row__dot--overlay {
@@ -5445,6 +5460,10 @@ button.pr-stepper__dot:focus-visible {
5445
5460
  white-space: nowrap;
5446
5461
  text-overflow: ellipsis;
5447
5462
  }
5463
+ .pr-item-row__description strong {
5464
+ color: var(--pr-fg);
5465
+ font-weight: 600;
5466
+ }
5448
5467
  .pr-item-row__footer {
5449
5468
  display: block;
5450
5469
  min-width: 0;
package/styles/ui.css CHANGED
@@ -5090,11 +5090,25 @@ button.pr-stepper__dot:focus-visible {
5090
5090
  cursor: pointer;
5091
5091
  transition: background-color 160ms var(--pr-ease, ease);
5092
5092
  }
5093
+ /* Compact: the dense work-queue rhythm. Three text lines are 59 px, with fixed line heights. */
5093
5094
  .pr-item-list--compact .pr-item-row__main {
5094
5095
  --pr-item-min: 36px;
5095
- gap: 8px;
5096
- padding: 6px 12px;
5097
- }
5096
+ align-items: flex-start;
5097
+ gap: 10px;
5098
+ padding-block: 5px;
5099
+ padding-inline: 14px 12px;
5100
+ }
5101
+ .pr-item-list--compact .pr-item-row__leading { padding-block-start: 2px; }
5102
+ .pr-item-list--compact .pr-item-row__trailing { align-self: center; }
5103
+ .pr-item-list--compact .pr-item-row__body { gap: 0; align-self: center; }
5104
+ .pr-item-list--compact .pr-item-row__top { align-items: center; }
5105
+ .pr-item-list--compact .pr-item-row__title { line-height: 18px; }
5106
+ .pr-item-list--compact .pr-item-row__description { line-height: 16px; }
5107
+ .pr-item-list--compact .pr-item-row__meta,
5108
+ .pr-item-list--compact .pr-item-row__footer { line-height: 15px; }
5109
+ .pr-item-list--compact .pr-item-row__dot--overlay { inset-block-start: 0; }
5110
+ /* A footer that starts with a badge is as tall as the badge: 18 px with a sm badge. */
5111
+ .pr-item-list--compact .pr-item-row__footer .pr-badge { margin-block: 0; line-height: 14px; }
5098
5112
  .pr-item-row__main:hover:not(:disabled):not([aria-disabled='true']) {
5099
5113
  --pr-item-bg: var(--pr-elevated);
5100
5114
  background: var(--pr-elevated);
@@ -5173,7 +5187,8 @@ button.pr-stepper__dot:focus-visible {
5173
5187
  width: 8px;
5174
5188
  height: 8px;
5175
5189
  border-radius: 999px;
5176
- background: var(--pr-accent);
5190
+ /* The accent darkened toward the text colour: at least 3:1 on the row in both themes. */
5191
+ background: color-mix(in srgb, var(--pr-accent-deep) 55%, var(--pr-fg));
5177
5192
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pr-fg) 25%, transparent);
5178
5193
  }
5179
5194
  .pr-item-row__dot--overlay {
@@ -5200,6 +5215,10 @@ button.pr-stepper__dot:focus-visible {
5200
5215
  white-space: nowrap;
5201
5216
  text-overflow: ellipsis;
5202
5217
  }
5218
+ .pr-item-row__description strong {
5219
+ color: var(--pr-fg);
5220
+ font-weight: 600;
5221
+ }
5203
5222
  .pr-item-row__footer {
5204
5223
  display: block;
5205
5224
  min-width: 0;