@flytedan/flytebot-design-system 0.87.2 → 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 +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +22 -14
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;
|
|
@@ -8264,6 +8266,12 @@ button.fd-erow-metric:focus-visible {
|
|
|
8264
8266
|
.fd-job-card-done-note{display:block}
|
|
8265
8267
|
.fd-job-card-failed{display:flex;align-items:flex-start;gap:8px;color:var(--danger-text);font-size:var(--body-sm-size)}
|
|
8266
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
|
+
}
|
|
8267
8275
|
|
|
8268
8276
|
.fd-phased-progress{display:flex;flex-direction:column;gap:12px}
|
|
8269
8277
|
.fd-phase-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
|