@flytedan/flytebot-design-system 0.86.0 → 0.87.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/dist/index.cjs +2447 -2307
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +127 -15
- package/dist/index.d.ts +127 -15
- package/dist/index.js +2412 -2277
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +177 -2
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -1062,6 +1062,22 @@
|
|
|
1062
1062
|
padding: 0 18px 14px;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
+
.fd-coll-badge {
|
|
1066
|
+
flex: none;
|
|
1067
|
+
display: inline-flex;
|
|
1068
|
+
}
|
|
1069
|
+
/* DS-59: on a phone the meta badge drops to its own line under the title and subtitle, so they
|
|
1070
|
+
keep the heading's width less the toggle; an identifier title breaks only at punctuation. */
|
|
1071
|
+
@media (max-width: 520px) {
|
|
1072
|
+
.fd-coll-trigger {
|
|
1073
|
+
flex-wrap: wrap;
|
|
1074
|
+
row-gap: 8px;
|
|
1075
|
+
}
|
|
1076
|
+
.fd-coll-badge {
|
|
1077
|
+
order: 3;
|
|
1078
|
+
flex: 1 1 100%;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1065
1081
|
.fd-coll-trigger:hover {
|
|
1066
1082
|
background: var(--surface-2);
|
|
1067
1083
|
}
|
|
@@ -1095,7 +1111,7 @@
|
|
|
1095
1111
|
transform var(--dur-base) var(--ease),
|
|
1096
1112
|
background var(--dur-fast) var(--ease);
|
|
1097
1113
|
}
|
|
1098
|
-
.fd-coll[
|
|
1114
|
+
.fd-coll-trigger[aria-expanded="true"] > .fd-coll-caret {
|
|
1099
1115
|
transform: rotate(180deg);
|
|
1100
1116
|
background: var(--brand-soft);
|
|
1101
1117
|
color: var(--brand);
|
|
@@ -1111,7 +1127,7 @@
|
|
|
1111
1127
|
grid-template-rows: 0fr;
|
|
1112
1128
|
visibility: hidden;
|
|
1113
1129
|
}
|
|
1114
|
-
.fd-coll[data-open="true"] .fd-coll-panel {
|
|
1130
|
+
.fd-coll[data-open="true"] > .fd-coll-panel {
|
|
1115
1131
|
grid-template-rows: 1fr;
|
|
1116
1132
|
visibility: visible;
|
|
1117
1133
|
transition:
|
|
@@ -1252,6 +1268,68 @@
|
|
|
1252
1268
|
border-color: var(--danger-border);
|
|
1253
1269
|
color: var(--danger-text);
|
|
1254
1270
|
}
|
|
1271
|
+
/* DS-51: StatusIndicator — a non-toggle chip. Same box in every tone, icon and loading
|
|
1272
|
+
state: fixed height and a fixed-size icon slot, so a header does not jump when the
|
|
1273
|
+
status changes. Colour comes from the tone class alone. */
|
|
1274
|
+
.fd-status {
|
|
1275
|
+
display: inline-flex;
|
|
1276
|
+
align-items: center;
|
|
1277
|
+
gap: 6px;
|
|
1278
|
+
height: 28px;
|
|
1279
|
+
max-width: 100%;
|
|
1280
|
+
box-sizing: border-box;
|
|
1281
|
+
white-space: nowrap;
|
|
1282
|
+
flex: none;
|
|
1283
|
+
padding: 0 10px;
|
|
1284
|
+
border-radius: var(--r-full);
|
|
1285
|
+
background: var(--surface-2);
|
|
1286
|
+
border: 1px solid var(--border);
|
|
1287
|
+
color: var(--text-2);
|
|
1288
|
+
font: inherit;
|
|
1289
|
+
font-size: var(--body-sm-size);
|
|
1290
|
+
font-weight: var(--w-medium);
|
|
1291
|
+
cursor: pointer;
|
|
1292
|
+
}
|
|
1293
|
+
.fd-status:hover {
|
|
1294
|
+
background: var(--surface-3);
|
|
1295
|
+
color: var(--text);
|
|
1296
|
+
}
|
|
1297
|
+
.fd-status-icon {
|
|
1298
|
+
display: inline-grid;
|
|
1299
|
+
place-items: center;
|
|
1300
|
+
width: 16px;
|
|
1301
|
+
height: 16px;
|
|
1302
|
+
flex: none;
|
|
1303
|
+
font-size: 14px;
|
|
1304
|
+
}
|
|
1305
|
+
.fd-status-icon .fd-spinner {
|
|
1306
|
+
width: 12px;
|
|
1307
|
+
height: 12px;
|
|
1308
|
+
border-width: 2px;
|
|
1309
|
+
}
|
|
1310
|
+
.fd-status-label {
|
|
1311
|
+
min-width: 0;
|
|
1312
|
+
overflow: hidden;
|
|
1313
|
+
text-overflow: ellipsis;
|
|
1314
|
+
}
|
|
1315
|
+
.fd-status-success,
|
|
1316
|
+
.fd-status-success:hover {
|
|
1317
|
+
background: var(--ok-fill);
|
|
1318
|
+
border-color: var(--ok-border);
|
|
1319
|
+
color: var(--ok-text);
|
|
1320
|
+
}
|
|
1321
|
+
.fd-status-warning,
|
|
1322
|
+
.fd-status-warning:hover {
|
|
1323
|
+
background: var(--warn-fill);
|
|
1324
|
+
border-color: var(--warn-border);
|
|
1325
|
+
color: var(--warn-text);
|
|
1326
|
+
}
|
|
1327
|
+
.fd-status-danger,
|
|
1328
|
+
.fd-status-danger:hover {
|
|
1329
|
+
background: var(--danger-fill);
|
|
1330
|
+
border-color: var(--danger-border);
|
|
1331
|
+
color: var(--danger-text);
|
|
1332
|
+
}
|
|
1255
1333
|
.fd-tag-remove {
|
|
1256
1334
|
display: grid;
|
|
1257
1335
|
place-items: center;
|
|
@@ -3236,6 +3314,27 @@
|
|
|
3236
3314
|
.fd-pop-header {
|
|
3237
3315
|
border-bottom: 1px solid var(--border);
|
|
3238
3316
|
}
|
|
3317
|
+
/* DS-51: the standard title-and-Close header (Popover `title`). */
|
|
3318
|
+
.fd-pop-title-row {
|
|
3319
|
+
display: flex;
|
|
3320
|
+
align-items: center;
|
|
3321
|
+
justify-content: space-between;
|
|
3322
|
+
gap: var(--s-8);
|
|
3323
|
+
}
|
|
3324
|
+
.fd-pop-title-row:not(:last-child) {
|
|
3325
|
+
margin-bottom: var(--s-8);
|
|
3326
|
+
}
|
|
3327
|
+
.fd-pop-title {
|
|
3328
|
+
margin: 0;
|
|
3329
|
+
min-width: 0;
|
|
3330
|
+
overflow-wrap: anywhere;
|
|
3331
|
+
font-size: var(--body-size);
|
|
3332
|
+
font-weight: var(--w-semibold);
|
|
3333
|
+
color: var(--text);
|
|
3334
|
+
}
|
|
3335
|
+
.fd-pop-title-row .fd-btn-icon {
|
|
3336
|
+
flex: none;
|
|
3337
|
+
}
|
|
3239
3338
|
.fd-pop-footer {
|
|
3240
3339
|
display: flex;
|
|
3241
3340
|
align-items: center;
|
|
@@ -3530,6 +3629,21 @@
|
|
|
3530
3629
|
min-width: 0;
|
|
3531
3630
|
max-width: min(100%, var(--filterbar-chip-max));
|
|
3532
3631
|
}
|
|
3632
|
+
/* DS-55: a chip with help keeps the chip and its help button on one line; the chip shrinks (its text
|
|
3633
|
+
ellipsizes), the button never does, so a wrapped chip carries its help with it. */
|
|
3634
|
+
.fd-filterbar-chip.has-help {
|
|
3635
|
+
display: inline-flex;
|
|
3636
|
+
align-items: center;
|
|
3637
|
+
gap: var(--space-1, 4px);
|
|
3638
|
+
}
|
|
3639
|
+
.fd-filterbar-chip.has-help > :first-child {
|
|
3640
|
+
min-width: 0;
|
|
3641
|
+
display: inline-flex;
|
|
3642
|
+
}
|
|
3643
|
+
.fd-filterbar-chip.has-help > .fd-tooltip-anchor,
|
|
3644
|
+
.fd-filterbar-fixed .fd-tooltip-anchor {
|
|
3645
|
+
flex: none;
|
|
3646
|
+
}
|
|
3533
3647
|
.fd-filterbar .fd-tag {
|
|
3534
3648
|
max-width: 100%;
|
|
3535
3649
|
min-width: 0;
|
|
@@ -4086,6 +4200,33 @@
|
|
|
4086
4200
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4087
4201
|
}
|
|
4088
4202
|
}
|
|
4203
|
+
/* DS-54 — StatGrid columns=3: three tiles at the 175px floor need 559px; below that, one column
|
|
4204
|
+
(the 2-column step above is cancelled so a set of three is never 2 + 1). */
|
|
4205
|
+
@container (width >= 366px) {
|
|
4206
|
+
.fd-stat-grid-tiles[data-columns="3"] {
|
|
4207
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4208
|
+
}
|
|
4209
|
+
}
|
|
4210
|
+
@container (width >= 559px) {
|
|
4211
|
+
.fd-stat-grid-tiles[data-columns="3"] {
|
|
4212
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4213
|
+
}
|
|
4214
|
+
}
|
|
4215
|
+
/* DS-54 — PanelRow (src/components/layout/PanelRow.tsx): two equal panels, one column when the row's
|
|
4216
|
+
own container is under 560px. */
|
|
4217
|
+
.fd-panel-row {
|
|
4218
|
+
container-type: inline-size;
|
|
4219
|
+
}
|
|
4220
|
+
.fd-panel-row-panels {
|
|
4221
|
+
display: grid;
|
|
4222
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4223
|
+
gap: 16px;
|
|
4224
|
+
}
|
|
4225
|
+
@container (width >= 560px) {
|
|
4226
|
+
.fd-panel-row-panels {
|
|
4227
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4089
4230
|
/* MP-271 — CardGrid (src/components/layout/CardGrid.tsx). `auto-fill` rather than
|
|
4090
4231
|
`fd-grid-stats`'s own `auto-fit` above on purpose: a dashboard of Cards should keep a
|
|
4091
4232
|
consistent card width as the count changes, not stretch a lone card to fill the whole row
|
|
@@ -4551,6 +4692,7 @@
|
|
|
4551
4692
|
text-align: center;
|
|
4552
4693
|
pointer-events: none;
|
|
4553
4694
|
}
|
|
4695
|
+
.fd-donut-center[hidden] { display: none; }
|
|
4554
4696
|
.fd-donut-center-big {
|
|
4555
4697
|
font-size: var(--h3-size);
|
|
4556
4698
|
font-weight: var(--w-semibold);
|
|
@@ -4568,6 +4710,17 @@
|
|
|
4568
4710
|
margin-top: 0;
|
|
4569
4711
|
flex-direction: column;
|
|
4570
4712
|
align-items: flex-start;
|
|
4713
|
+
max-width: 100%;
|
|
4714
|
+
}
|
|
4715
|
+
/* DS-54: the legend row now carries the count too, so the label may wrap inside a narrow
|
|
4716
|
+
container instead of pushing the chart past it. */
|
|
4717
|
+
.fd-donut-legend .fd-chart-legend-item {
|
|
4718
|
+
max-width: 100%;
|
|
4719
|
+
text-align: left;
|
|
4720
|
+
}
|
|
4721
|
+
.fd-donut-legend .fd-chart-legend-label {
|
|
4722
|
+
white-space: normal;
|
|
4723
|
+
min-width: 0;
|
|
4571
4724
|
}
|
|
4572
4725
|
|
|
4573
4726
|
/* BarList */
|
|
@@ -8849,6 +9002,28 @@ button.fd-erow-metric:focus-visible {
|
|
|
8849
9002
|
font-size: 12px;
|
|
8850
9003
|
color: var(--text);
|
|
8851
9004
|
}
|
|
9005
|
+
/* DS-53: the detail sits in the ring's hole, centred, never wider than the ring's box. The
|
|
9006
|
+
ring is inside the chart, so the detail can cover neither the legend (beside or under the
|
|
9007
|
+
ring) nor anything above the chart, and it is inside the viewport whenever the ring is. */
|
|
9008
|
+
.fd-donut-pop-surface {
|
|
9009
|
+
position: absolute;
|
|
9010
|
+
top: 50%;
|
|
9011
|
+
left: 50%;
|
|
9012
|
+
transform: translate(-50%, -50%);
|
|
9013
|
+
/* left: 50% leaves a shrink-to-fit box only half the ring to grow into; max-content then the cap
|
|
9014
|
+
lets it use the whole ring and wrap there. */
|
|
9015
|
+
width: max-content;
|
|
9016
|
+
max-width: 100%;
|
|
9017
|
+
box-sizing: border-box;
|
|
9018
|
+
padding: 6px 8px;
|
|
9019
|
+
text-align: center;
|
|
9020
|
+
overflow-wrap: anywhere;
|
|
9021
|
+
pointer-events: none;
|
|
9022
|
+
background: var(--surface-1, var(--surface));
|
|
9023
|
+
border-radius: var(--radius-sm, 6px);
|
|
9024
|
+
z-index: 1;
|
|
9025
|
+
}
|
|
9026
|
+
.fd-donut-pop { align-items: center; }
|
|
8852
9027
|
.fd-donut-pop strong { font-weight: 600; }
|
|
8853
9028
|
.fd-donut-pop .fd-tabular { color: var(--text-muted); }
|
|
8854
9029
|
[data-contrast="high"] .fd-donut-pop .fd-tabular { color: var(--text); }
|