@flytedan/flytebot-design-system 0.82.1 → 0.84.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 +2454 -2308
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -2
- package/dist/index.d.ts +70 -2
- package/dist/index.js +2456 -2312
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +154 -6
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -1030,6 +1030,25 @@
|
|
|
1030
1030
|
cursor: pointer;
|
|
1031
1031
|
transition: background var(--dur-fast) var(--ease);
|
|
1032
1032
|
}
|
|
1033
|
+
.fd-coll-head {
|
|
1034
|
+
display: flex;
|
|
1035
|
+
align-items: center;
|
|
1036
|
+
}
|
|
1037
|
+
.fd-coll-head > .fd-coll-trigger {
|
|
1038
|
+
flex: 1;
|
|
1039
|
+
width: auto;
|
|
1040
|
+
min-width: 0;
|
|
1041
|
+
}
|
|
1042
|
+
.fd-coll-actions {
|
|
1043
|
+
flex: none;
|
|
1044
|
+
display: flex;
|
|
1045
|
+
align-items: center;
|
|
1046
|
+
gap: 8px;
|
|
1047
|
+
padding-right: 18px;
|
|
1048
|
+
}
|
|
1049
|
+
.fd-coll-head .fd-coll-title {
|
|
1050
|
+
overflow-wrap: anywhere;
|
|
1051
|
+
}
|
|
1033
1052
|
.fd-coll-trigger:hover {
|
|
1034
1053
|
background: var(--surface-2);
|
|
1035
1054
|
}
|
|
@@ -1068,14 +1087,23 @@
|
|
|
1068
1087
|
background: var(--brand-soft);
|
|
1069
1088
|
color: var(--brand);
|
|
1070
1089
|
}
|
|
1090
|
+
/* A closed panel is collapsed to zero height, and must also leave the tab order and the accessibility
|
|
1091
|
+
tree: visibility flips only after the close animation, and at once on open. */
|
|
1071
1092
|
.fd-coll-panel {
|
|
1072
1093
|
overflow: hidden;
|
|
1073
|
-
transition:
|
|
1094
|
+
transition:
|
|
1095
|
+
grid-template-rows var(--dur-panel) var(--ease),
|
|
1096
|
+
visibility 0s linear var(--dur-panel);
|
|
1074
1097
|
display: grid;
|
|
1075
1098
|
grid-template-rows: 0fr;
|
|
1099
|
+
visibility: hidden;
|
|
1076
1100
|
}
|
|
1077
1101
|
.fd-coll[data-open="true"] .fd-coll-panel {
|
|
1078
1102
|
grid-template-rows: 1fr;
|
|
1103
|
+
visibility: visible;
|
|
1104
|
+
transition:
|
|
1105
|
+
grid-template-rows var(--dur-panel) var(--ease),
|
|
1106
|
+
visibility 0s;
|
|
1079
1107
|
}
|
|
1080
1108
|
.fd-coll-panel > div {
|
|
1081
1109
|
overflow: hidden;
|
|
@@ -3551,6 +3579,18 @@
|
|
|
3551
3579
|
min-width: 90px;
|
|
3552
3580
|
color: var(--text-on-surface-brand);
|
|
3553
3581
|
}
|
|
3582
|
+
/* DS-44: the value panel's two toggles (Is any of / Is none of, Search / Paste a list) share one
|
|
3583
|
+
row. Each keeps its natural width and its options on one line, so a row too narrow for both wraps
|
|
3584
|
+
the second toggle whole onto its own line. The compact option padding is what lets the pair fit
|
|
3585
|
+
a 375-390px phone. */
|
|
3586
|
+
.fd-filterbar-toggles .fd-seg {
|
|
3587
|
+
flex: none;
|
|
3588
|
+
flex-wrap: nowrap;
|
|
3589
|
+
}
|
|
3590
|
+
.fd-filterbar-toggles .fd-seg button {
|
|
3591
|
+
padding: 0 var(--s-8);
|
|
3592
|
+
white-space: nowrap;
|
|
3593
|
+
}
|
|
3554
3594
|
/* The multi-select panel's own option rows are DIVs, not buttons (MP-243: options are
|
|
3555
3595
|
reached by arrow keys via aria-activedescendant, not by Tab), so the checked/unchecked
|
|
3556
3596
|
indicator is a plain decorative icon rather than .fd-opt-check's "only present once
|
|
@@ -5317,6 +5357,109 @@
|
|
|
5317
5357
|
border-color: var(--danger-border);
|
|
5318
5358
|
}
|
|
5319
5359
|
|
|
5360
|
+
/* ============ ReferenceList ============ */
|
|
5361
|
+
/* Reads the same at every width: the term and its tag on one line, the description wrapped below.
|
|
5362
|
+
Long terms break anywhere rather than push the page sideways. */
|
|
5363
|
+
.fd-ref {
|
|
5364
|
+
display: flex;
|
|
5365
|
+
flex-direction: column;
|
|
5366
|
+
gap: 10px;
|
|
5367
|
+
min-width: 0;
|
|
5368
|
+
}
|
|
5369
|
+
.fd-ref-body {
|
|
5370
|
+
display: flex;
|
|
5371
|
+
flex-direction: column;
|
|
5372
|
+
gap: 10px;
|
|
5373
|
+
min-width: 0;
|
|
5374
|
+
}
|
|
5375
|
+
/* The match-count live region stays rendered (and so in the accessibility tree) while empty: a region that
|
|
5376
|
+
only appears with its first text is not reliably announced. Empty, it takes no room. */
|
|
5377
|
+
.fd-ref-status {
|
|
5378
|
+
margin: 0;
|
|
5379
|
+
font-size: var(--body-sm-size);
|
|
5380
|
+
color: var(--text-2);
|
|
5381
|
+
}
|
|
5382
|
+
.fd-ref-status:not(:empty) {
|
|
5383
|
+
margin-top: var(--s-6);
|
|
5384
|
+
}
|
|
5385
|
+
.fd-ref-empty {
|
|
5386
|
+
margin: 0;
|
|
5387
|
+
color: var(--text-2);
|
|
5388
|
+
}
|
|
5389
|
+
.fd-ref-entries {
|
|
5390
|
+
margin: 0;
|
|
5391
|
+
display: flex;
|
|
5392
|
+
flex-direction: column;
|
|
5393
|
+
}
|
|
5394
|
+
.fd-ref-entry {
|
|
5395
|
+
display: grid;
|
|
5396
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
5397
|
+
grid-template-areas: "head actions" "desc desc";
|
|
5398
|
+
align-items: center;
|
|
5399
|
+
column-gap: 8px;
|
|
5400
|
+
row-gap: 2px;
|
|
5401
|
+
padding: 10px 0;
|
|
5402
|
+
border-top: 1px solid var(--border);
|
|
5403
|
+
min-width: 0;
|
|
5404
|
+
}
|
|
5405
|
+
.fd-ref-entry:first-child {
|
|
5406
|
+
border-top: 0;
|
|
5407
|
+
padding-top: 0;
|
|
5408
|
+
}
|
|
5409
|
+
.fd-ref-head {
|
|
5410
|
+
grid-area: head;
|
|
5411
|
+
display: flex;
|
|
5412
|
+
flex-wrap: wrap;
|
|
5413
|
+
align-items: center;
|
|
5414
|
+
gap: 4px 8px;
|
|
5415
|
+
min-width: 0;
|
|
5416
|
+
}
|
|
5417
|
+
.fd-ref-term {
|
|
5418
|
+
font-weight: var(--w-medium);
|
|
5419
|
+
color: var(--text);
|
|
5420
|
+
overflow-wrap: anywhere;
|
|
5421
|
+
min-width: 0;
|
|
5422
|
+
}
|
|
5423
|
+
.fd-ref-term.is-mono {
|
|
5424
|
+
font-family: var(--font-mono);
|
|
5425
|
+
font-size: var(--mono-size);
|
|
5426
|
+
}
|
|
5427
|
+
.fd-ref-tag {
|
|
5428
|
+
height: 20px;
|
|
5429
|
+
font-family: var(--font-mono);
|
|
5430
|
+
}
|
|
5431
|
+
.fd-ref-desc {
|
|
5432
|
+
grid-area: desc;
|
|
5433
|
+
margin: 0;
|
|
5434
|
+
color: var(--text-2);
|
|
5435
|
+
font-size: var(--body-sm-size);
|
|
5436
|
+
overflow-wrap: anywhere;
|
|
5437
|
+
white-space: normal;
|
|
5438
|
+
}
|
|
5439
|
+
.fd-ref-actions {
|
|
5440
|
+
grid-area: actions;
|
|
5441
|
+
margin: 0;
|
|
5442
|
+
display: flex;
|
|
5443
|
+
align-items: center;
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5446
|
+
/* ============ Scroll region and plain list (utilities) ============ */
|
|
5447
|
+
/* .fd-scroll-region — a bounded-height, vertically scrolling container. The height cap is
|
|
5448
|
+
--fd-scroll-region-max (override it on the element or an ancestor); the scrollbar is
|
|
5449
|
+
.fd-scrollbar's treatment (shared rules below). A scrollable region must be reachable by keyboard: give it tabIndex={0}
|
|
5450
|
+
and an aria-label. */
|
|
5451
|
+
.fd-scroll-region {
|
|
5452
|
+
max-height: var(--fd-scroll-region-max, min(60vh, 480px));
|
|
5453
|
+
overflow-y: auto;
|
|
5454
|
+
overflow-x: hidden;
|
|
5455
|
+
}
|
|
5456
|
+
/* .fd-list-plain — a ul/ol with no bullets, margin or padding. */
|
|
5457
|
+
.fd-list-plain {
|
|
5458
|
+
list-style: none;
|
|
5459
|
+
margin: 0;
|
|
5460
|
+
padding: 0;
|
|
5461
|
+
}
|
|
5462
|
+
|
|
5320
5463
|
/* ============ Custom scrollbar (utility) ============ */
|
|
5321
5464
|
/* .fd-scrollbar — the one on-brand thin scrollbar treatment, applicable to any
|
|
5322
5465
|
scrollable container (vertical or horizontal). Named distinctly from the
|
|
@@ -5329,22 +5472,27 @@
|
|
|
5329
5472
|
everything else via the ::-webkit-scrollbar pseudo-elements; both read the
|
|
5330
5473
|
same border tokens so light/dark theming (see tokens.css's
|
|
5331
5474
|
[data-theme="dark"] overrides of --border-strong) is automatic. */
|
|
5332
|
-
.fd-scrollbar
|
|
5475
|
+
.fd-scrollbar,
|
|
5476
|
+
.fd-scroll-region {
|
|
5333
5477
|
scrollbar-width: thin;
|
|
5334
5478
|
scrollbar-color: var(--border-strong) transparent;
|
|
5335
5479
|
}
|
|
5336
|
-
.fd-scrollbar::-webkit-scrollbar
|
|
5480
|
+
.fd-scrollbar::-webkit-scrollbar,
|
|
5481
|
+
.fd-scroll-region::-webkit-scrollbar {
|
|
5337
5482
|
width: 6px;
|
|
5338
5483
|
height: 6px;
|
|
5339
5484
|
}
|
|
5340
|
-
.fd-scrollbar::-webkit-scrollbar-thumb
|
|
5485
|
+
.fd-scrollbar::-webkit-scrollbar-thumb,
|
|
5486
|
+
.fd-scroll-region::-webkit-scrollbar-thumb {
|
|
5341
5487
|
background: var(--border-strong);
|
|
5342
5488
|
border-radius: 99px;
|
|
5343
5489
|
}
|
|
5344
|
-
.fd-scrollbar::-webkit-scrollbar-thumb:hover
|
|
5490
|
+
.fd-scrollbar::-webkit-scrollbar-thumb:hover,
|
|
5491
|
+
.fd-scroll-region::-webkit-scrollbar-thumb:hover {
|
|
5345
5492
|
background: var(--text-muted);
|
|
5346
5493
|
}
|
|
5347
|
-
.fd-scrollbar::-webkit-scrollbar-track
|
|
5494
|
+
.fd-scrollbar::-webkit-scrollbar-track,
|
|
5495
|
+
.fd-scroll-region::-webkit-scrollbar-track {
|
|
5348
5496
|
background: transparent;
|
|
5349
5497
|
}
|
|
5350
5498
|
|