@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flytedan/flytebot-design-system",
3
- "version": "0.87.2",
3
+ "version": "0.87.3",
4
4
  "description": "flytedesk Design System — shared component library, tokens, and business-logic kits for flytedesk apps.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -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 box every floating surface (the toasts, the job
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 (z-index is set inline from OVERLAY_CEILING, above every layer).
3158
- It is 340px wide, and on a phone the width between two gutters. The stack
3159
- takes no clicks: it has a real box wherever a surface is, including the gaps between
3160
- surfaces and the shadow around each, and without this a click aimed at the control
3161
- underneath would land on it. Each surface takes its clicks back. Slots run bottom to top;
3162
- two occupied slots are one gap apart, and an empty one (the toast region is always mounted
3163
- for its live region) takes no room. */
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}