@flytedan/flytebot-design-system 0.87.1 → 0.87.3
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 +24 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -7
- package/dist/index.d.ts +16 -7
- package/dist/index.js +59 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +32 -16
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -3152,26 +3152,31 @@
|
|
|
3152
3152
|
color: var(--text);
|
|
3153
3153
|
font-size: var(--body-size);
|
|
3154
3154
|
}
|
|
3155
|
-
/* The corner stack: the one bottom-right
|
|
3155
|
+
/* The corner stack: the one bottom-right corner every floating surface (the toasts, the job
|
|
3156
3156
|
tray) renders into a slot of, so they lay out one above the next instead of each pinning
|
|
3157
|
-
itself to the same corner
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3157
|
+
itself to the same corner. The stack itself has no box; each slot is fixed to the corner and its
|
|
3158
|
+
layer is set inline (the toasts above every overlay layer, the jobs just under the first one, so a
|
|
3159
|
+
menu opens over the tray). A slot is 340px wide, and on a phone the width between two gutters.
|
|
3160
|
+
A slot takes no clicks: it has a real box wherever a surface is, including the gaps between
|
|
3161
|
+
surfaces and the shadow around each, and without this a click aimed at the control underneath
|
|
3162
|
+
would land on it. Each surface takes its clicks back. The toasts sit one gap above the jobs
|
|
3163
|
+
(--fd-corner-stack-inset is the jobs' reach up from the bottom, 0 when there are none), and an
|
|
3164
|
+
empty slot takes no room (the toast region is always mounted for its live region). */
|
|
3164
3165
|
.fd-corner-stack {
|
|
3166
|
+
display: contents;
|
|
3167
|
+
}
|
|
3168
|
+
.fd-corner-stack-slot {
|
|
3165
3169
|
position: fixed;
|
|
3166
3170
|
bottom: var(--s-lg);
|
|
3167
3171
|
right: calc(var(--s-lg) + var(--fd-corner-stack-offset, 0px));
|
|
3168
|
-
display: flex;
|
|
3169
|
-
flex-direction: column-reverse;
|
|
3170
3172
|
width: 340px;
|
|
3171
3173
|
pointer-events: none;
|
|
3172
3174
|
}
|
|
3175
|
+
.fd-corner-stack-slot[data-corner-stack-slot="toasts"] {
|
|
3176
|
+
bottom: max(var(--s-lg), calc(var(--fd-corner-stack-inset, 0px) + var(--s-sm)));
|
|
3177
|
+
}
|
|
3173
3178
|
@media (max-width: 640px) {
|
|
3174
|
-
.fd-corner-stack {
|
|
3179
|
+
.fd-corner-stack-slot {
|
|
3175
3180
|
width: calc(100vw - 2 * var(--s-lg));
|
|
3176
3181
|
}
|
|
3177
3182
|
}
|
|
@@ -3179,9 +3184,6 @@
|
|
|
3179
3184
|
:root[data-fd-sheet-open] .fd-corner-stack-slot[data-corner-stack-slot="jobs"] {
|
|
3180
3185
|
display: none;
|
|
3181
3186
|
}
|
|
3182
|
-
.fd-corner-stack-slot:has(> :not(:empty)) ~ .fd-corner-stack-slot:has(> :not(:empty)) {
|
|
3183
|
-
margin-bottom: var(--s-sm);
|
|
3184
|
-
}
|
|
3185
3187
|
/* ToastProvider's stack, in the corner stack's toasts slot. */
|
|
3186
3188
|
.fd-toast-region {
|
|
3187
3189
|
display: flex;
|
|
@@ -4705,7 +4707,9 @@
|
|
|
4705
4707
|
margin-top: 2px;
|
|
4706
4708
|
}
|
|
4707
4709
|
.fd-donut-legend {
|
|
4708
|
-
|
|
4710
|
+
/* Basis is the widest row, so the legend takes the room it needs beside the ring and drops below it
|
|
4711
|
+
(full width) only when that room is not there. */
|
|
4712
|
+
flex: 1 1 max-content;
|
|
4709
4713
|
min-width: 160px;
|
|
4710
4714
|
margin-top: 0;
|
|
4711
4715
|
flex-direction: column;
|
|
@@ -4714,14 +4718,20 @@
|
|
|
4714
4718
|
}
|
|
4715
4719
|
/* DS-54: the legend row now carries the count too, so the label may wrap inside a narrow
|
|
4716
4720
|
container instead of pushing the chart past it. */
|
|
4717
|
-
.fd-donut-legend
|
|
4721
|
+
.fd-donut-legend > li {
|
|
4718
4722
|
max-width: 100%;
|
|
4723
|
+
}
|
|
4724
|
+
.fd-donut-legend .fd-chart-legend-item {
|
|
4719
4725
|
text-align: left;
|
|
4720
4726
|
}
|
|
4721
4727
|
.fd-donut-legend .fd-chart-legend-label {
|
|
4722
4728
|
white-space: normal;
|
|
4723
4729
|
min-width: 0;
|
|
4724
4730
|
}
|
|
4731
|
+
/* The `pct% · count` part of a row never splits; only a long label wraps. */
|
|
4732
|
+
.fd-donut-legend-value {
|
|
4733
|
+
white-space: nowrap;
|
|
4734
|
+
}
|
|
4725
4735
|
|
|
4726
4736
|
/* BarList */
|
|
4727
4737
|
/* One shared column set for the whole list, so every row's label, bar, value and percent
|
|
@@ -8256,6 +8266,12 @@ button.fd-erow-metric:focus-visible {
|
|
|
8256
8266
|
.fd-job-card-done-note{display:block}
|
|
8257
8267
|
.fd-job-card-failed{display:flex;align-items:flex-start;gap:8px;color:var(--danger-text);font-size:var(--body-sm-size)}
|
|
8258
8268
|
.fd-job-card-failed .ph{flex:none;font-size:16px;margin-top:1px}
|
|
8269
|
+
/* On a phone the tray is the width of the screen, so each card takes only what its words need. */
|
|
8270
|
+
@media (max-width:640px){
|
|
8271
|
+
.fd-job-tray{gap:6px}
|
|
8272
|
+
.fd-job-card{padding:8px 10px 8px 12px;gap:2px}
|
|
8273
|
+
.fd-job-card-head{align-items:center}
|
|
8274
|
+
}
|
|
8259
8275
|
|
|
8260
8276
|
.fd-phased-progress{display:flex;flex-direction:column;gap:12px}
|
|
8261
8277
|
.fd-phase-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
|