@flytedan/flytebot-design-system 0.82.0 → 0.83.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 +2446 -2306
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -1
- package/dist/index.d.ts +65 -1
- package/dist/index.js +2448 -2310
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +135 -6
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -1068,14 +1068,23 @@
|
|
|
1068
1068
|
background: var(--brand-soft);
|
|
1069
1069
|
color: var(--brand);
|
|
1070
1070
|
}
|
|
1071
|
+
/* A closed panel is collapsed to zero height, and must also leave the tab order and the accessibility
|
|
1072
|
+
tree: visibility flips only after the close animation, and at once on open. */
|
|
1071
1073
|
.fd-coll-panel {
|
|
1072
1074
|
overflow: hidden;
|
|
1073
|
-
transition:
|
|
1075
|
+
transition:
|
|
1076
|
+
grid-template-rows var(--dur-panel) var(--ease),
|
|
1077
|
+
visibility 0s linear var(--dur-panel);
|
|
1074
1078
|
display: grid;
|
|
1075
1079
|
grid-template-rows: 0fr;
|
|
1080
|
+
visibility: hidden;
|
|
1076
1081
|
}
|
|
1077
1082
|
.fd-coll[data-open="true"] .fd-coll-panel {
|
|
1078
1083
|
grid-template-rows: 1fr;
|
|
1084
|
+
visibility: visible;
|
|
1085
|
+
transition:
|
|
1086
|
+
grid-template-rows var(--dur-panel) var(--ease),
|
|
1087
|
+
visibility 0s;
|
|
1079
1088
|
}
|
|
1080
1089
|
.fd-coll-panel > div {
|
|
1081
1090
|
overflow: hidden;
|
|
@@ -3551,6 +3560,18 @@
|
|
|
3551
3560
|
min-width: 90px;
|
|
3552
3561
|
color: var(--text-on-surface-brand);
|
|
3553
3562
|
}
|
|
3563
|
+
/* DS-44: the value panel's two toggles (Is any of / Is none of, Search / Paste a list) share one
|
|
3564
|
+
row. Each keeps its natural width and its options on one line, so a row too narrow for both wraps
|
|
3565
|
+
the second toggle whole onto its own line. The compact option padding is what lets the pair fit
|
|
3566
|
+
a 375-390px phone. */
|
|
3567
|
+
.fd-filterbar-toggles .fd-seg {
|
|
3568
|
+
flex: none;
|
|
3569
|
+
flex-wrap: nowrap;
|
|
3570
|
+
}
|
|
3571
|
+
.fd-filterbar-toggles .fd-seg button {
|
|
3572
|
+
padding: 0 var(--s-8);
|
|
3573
|
+
white-space: nowrap;
|
|
3574
|
+
}
|
|
3554
3575
|
/* The multi-select panel's own option rows are DIVs, not buttons (MP-243: options are
|
|
3555
3576
|
reached by arrow keys via aria-activedescendant, not by Tab), so the checked/unchecked
|
|
3556
3577
|
indicator is a plain decorative icon rather than .fd-opt-check's "only present once
|
|
@@ -5317,6 +5338,109 @@
|
|
|
5317
5338
|
border-color: var(--danger-border);
|
|
5318
5339
|
}
|
|
5319
5340
|
|
|
5341
|
+
/* ============ ReferenceList ============ */
|
|
5342
|
+
/* Reads the same at every width: the term and its tag on one line, the description wrapped below.
|
|
5343
|
+
Long terms break anywhere rather than push the page sideways. */
|
|
5344
|
+
.fd-ref {
|
|
5345
|
+
display: flex;
|
|
5346
|
+
flex-direction: column;
|
|
5347
|
+
gap: 10px;
|
|
5348
|
+
min-width: 0;
|
|
5349
|
+
}
|
|
5350
|
+
.fd-ref-body {
|
|
5351
|
+
display: flex;
|
|
5352
|
+
flex-direction: column;
|
|
5353
|
+
gap: 10px;
|
|
5354
|
+
min-width: 0;
|
|
5355
|
+
}
|
|
5356
|
+
/* The match-count live region stays rendered (and so in the accessibility tree) while empty: a region that
|
|
5357
|
+
only appears with its first text is not reliably announced. Empty, it takes no room. */
|
|
5358
|
+
.fd-ref-status {
|
|
5359
|
+
margin: 0;
|
|
5360
|
+
font-size: var(--body-sm-size);
|
|
5361
|
+
color: var(--text-2);
|
|
5362
|
+
}
|
|
5363
|
+
.fd-ref-status:not(:empty) {
|
|
5364
|
+
margin-top: var(--s-6);
|
|
5365
|
+
}
|
|
5366
|
+
.fd-ref-empty {
|
|
5367
|
+
margin: 0;
|
|
5368
|
+
color: var(--text-2);
|
|
5369
|
+
}
|
|
5370
|
+
.fd-ref-entries {
|
|
5371
|
+
margin: 0;
|
|
5372
|
+
display: flex;
|
|
5373
|
+
flex-direction: column;
|
|
5374
|
+
}
|
|
5375
|
+
.fd-ref-entry {
|
|
5376
|
+
display: grid;
|
|
5377
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
5378
|
+
grid-template-areas: "head actions" "desc desc";
|
|
5379
|
+
align-items: center;
|
|
5380
|
+
column-gap: 8px;
|
|
5381
|
+
row-gap: 2px;
|
|
5382
|
+
padding: 10px 0;
|
|
5383
|
+
border-top: 1px solid var(--border);
|
|
5384
|
+
min-width: 0;
|
|
5385
|
+
}
|
|
5386
|
+
.fd-ref-entry:first-child {
|
|
5387
|
+
border-top: 0;
|
|
5388
|
+
padding-top: 0;
|
|
5389
|
+
}
|
|
5390
|
+
.fd-ref-head {
|
|
5391
|
+
grid-area: head;
|
|
5392
|
+
display: flex;
|
|
5393
|
+
flex-wrap: wrap;
|
|
5394
|
+
align-items: center;
|
|
5395
|
+
gap: 4px 8px;
|
|
5396
|
+
min-width: 0;
|
|
5397
|
+
}
|
|
5398
|
+
.fd-ref-term {
|
|
5399
|
+
font-weight: var(--w-medium);
|
|
5400
|
+
color: var(--text);
|
|
5401
|
+
overflow-wrap: anywhere;
|
|
5402
|
+
min-width: 0;
|
|
5403
|
+
}
|
|
5404
|
+
.fd-ref-term.is-mono {
|
|
5405
|
+
font-family: var(--font-mono);
|
|
5406
|
+
font-size: var(--mono-size);
|
|
5407
|
+
}
|
|
5408
|
+
.fd-ref-tag {
|
|
5409
|
+
height: 20px;
|
|
5410
|
+
font-family: var(--font-mono);
|
|
5411
|
+
}
|
|
5412
|
+
.fd-ref-desc {
|
|
5413
|
+
grid-area: desc;
|
|
5414
|
+
margin: 0;
|
|
5415
|
+
color: var(--text-2);
|
|
5416
|
+
font-size: var(--body-sm-size);
|
|
5417
|
+
overflow-wrap: anywhere;
|
|
5418
|
+
white-space: normal;
|
|
5419
|
+
}
|
|
5420
|
+
.fd-ref-actions {
|
|
5421
|
+
grid-area: actions;
|
|
5422
|
+
margin: 0;
|
|
5423
|
+
display: flex;
|
|
5424
|
+
align-items: center;
|
|
5425
|
+
}
|
|
5426
|
+
|
|
5427
|
+
/* ============ Scroll region and plain list (utilities) ============ */
|
|
5428
|
+
/* .fd-scroll-region — a bounded-height, vertically scrolling container. The height cap is
|
|
5429
|
+
--fd-scroll-region-max (override it on the element or an ancestor); the scrollbar is
|
|
5430
|
+
.fd-scrollbar's treatment (shared rules below). A scrollable region must be reachable by keyboard: give it tabIndex={0}
|
|
5431
|
+
and an aria-label. */
|
|
5432
|
+
.fd-scroll-region {
|
|
5433
|
+
max-height: var(--fd-scroll-region-max, min(60vh, 480px));
|
|
5434
|
+
overflow-y: auto;
|
|
5435
|
+
overflow-x: hidden;
|
|
5436
|
+
}
|
|
5437
|
+
/* .fd-list-plain — a ul/ol with no bullets, margin or padding. */
|
|
5438
|
+
.fd-list-plain {
|
|
5439
|
+
list-style: none;
|
|
5440
|
+
margin: 0;
|
|
5441
|
+
padding: 0;
|
|
5442
|
+
}
|
|
5443
|
+
|
|
5320
5444
|
/* ============ Custom scrollbar (utility) ============ */
|
|
5321
5445
|
/* .fd-scrollbar — the one on-brand thin scrollbar treatment, applicable to any
|
|
5322
5446
|
scrollable container (vertical or horizontal). Named distinctly from the
|
|
@@ -5329,22 +5453,27 @@
|
|
|
5329
5453
|
everything else via the ::-webkit-scrollbar pseudo-elements; both read the
|
|
5330
5454
|
same border tokens so light/dark theming (see tokens.css's
|
|
5331
5455
|
[data-theme="dark"] overrides of --border-strong) is automatic. */
|
|
5332
|
-
.fd-scrollbar
|
|
5456
|
+
.fd-scrollbar,
|
|
5457
|
+
.fd-scroll-region {
|
|
5333
5458
|
scrollbar-width: thin;
|
|
5334
5459
|
scrollbar-color: var(--border-strong) transparent;
|
|
5335
5460
|
}
|
|
5336
|
-
.fd-scrollbar::-webkit-scrollbar
|
|
5461
|
+
.fd-scrollbar::-webkit-scrollbar,
|
|
5462
|
+
.fd-scroll-region::-webkit-scrollbar {
|
|
5337
5463
|
width: 6px;
|
|
5338
5464
|
height: 6px;
|
|
5339
5465
|
}
|
|
5340
|
-
.fd-scrollbar::-webkit-scrollbar-thumb
|
|
5466
|
+
.fd-scrollbar::-webkit-scrollbar-thumb,
|
|
5467
|
+
.fd-scroll-region::-webkit-scrollbar-thumb {
|
|
5341
5468
|
background: var(--border-strong);
|
|
5342
5469
|
border-radius: 99px;
|
|
5343
5470
|
}
|
|
5344
|
-
.fd-scrollbar::-webkit-scrollbar-thumb:hover
|
|
5471
|
+
.fd-scrollbar::-webkit-scrollbar-thumb:hover,
|
|
5472
|
+
.fd-scroll-region::-webkit-scrollbar-thumb:hover {
|
|
5345
5473
|
background: var(--text-muted);
|
|
5346
5474
|
}
|
|
5347
|
-
.fd-scrollbar::-webkit-scrollbar-track
|
|
5475
|
+
.fd-scrollbar::-webkit-scrollbar-track,
|
|
5476
|
+
.fd-scroll-region::-webkit-scrollbar-track {
|
|
5348
5477
|
background: transparent;
|
|
5349
5478
|
}
|
|
5350
5479
|
|