@flytedan/flytebot-design-system 0.12.13 → 0.12.14

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.12.13",
3
+ "version": "0.12.14",
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",
@@ -1470,11 +1470,9 @@
1470
1470
  .fd-soon-cone-mark i {
1471
1471
  font-size: 11px;
1472
1472
  }
1473
- /* The z-index below is a resting default only — ComingSoon.tsx always sets it inline via
1474
- useOverlayLayer(SOON_HOVERCARD_BASE), which wins over this rule (see Popover.tsx). */
1473
+ /* z-index is set inline by ComingSoon.tsx via useOverlayLayer (see Popover.tsx). */
1475
1474
  .fd-soon-hovercard {
1476
1475
  transform: none;
1477
- z-index: 220;
1478
1476
  box-shadow: 0 18px 48px rgba(11, 13, 17, 0.26);
1479
1477
  animation: fd-fade var(--dur-fast) var(--ease) both;
1480
1478
  }
@@ -2335,12 +2333,12 @@
2335
2333
  }
2336
2334
 
2337
2335
  /* ============ Overlays ============ */
2336
+ /* z-index is set inline by Modal.tsx/Drawer.tsx via useOverlayLayer (see Popover.tsx). */
2338
2337
  .fd-scrim {
2339
2338
  position: fixed;
2340
2339
  inset: 0;
2341
2340
  background: var(--scrim);
2342
2341
  backdrop-filter: blur(3px);
2343
- z-index: 80;
2344
2342
  animation: fd-fade var(--dur-base) var(--ease) both;
2345
2343
  display: grid;
2346
2344
  place-items: center;
@@ -2470,8 +2468,7 @@
2470
2468
  border-top: 1px solid var(--border);
2471
2469
  background: var(--surface-2);
2472
2470
  }
2473
- /* z-index below is a resting default only — Drawer.tsx sets it (and its scrim's) inline
2474
- via useOverlayLayer(DRAWER_BASE), which wins over this rule (see Popover.tsx). */
2471
+ /* z-index is set inline by Drawer.tsx (and its scrim's) via useOverlayLayer (see Popover.tsx). */
2475
2472
  .fd-drawer {
2476
2473
  position: fixed;
2477
2474
  top: 0;
@@ -2483,7 +2480,6 @@
2483
2480
  width: min(520px, 100%);
2484
2481
  background: var(--surface);
2485
2482
  box-shadow: var(--e-4);
2486
- z-index: 90;
2487
2483
  display: flex;
2488
2484
  flex-direction: column;
2489
2485
  animation: fd-drawer-in var(--dur-panel) var(--ease-out) both;
@@ -2497,12 +2493,9 @@
2497
2493
  /* Portaled to document.body and placed by Tooltip.tsx (fixed, anchored geometry), so no
2498
2494
  overflow: hidden ancestor of the trigger can clip it. Short labels stay on one line
2499
2495
  (max-content); a sentence wraps at a readable measure instead of running off-screen.
2500
- The z-index below is a resting default only — Tooltip.tsx always sets it inline via
2501
- useOverlayLayer(TOOLTIP_BASE), which wins over this rule and is what actually keeps a
2502
- tip above whatever popover its trigger happens to be nested inside (see Popover.tsx). */
2496
+ z-index is set inline by Tooltip.tsx via useOverlayLayer (see Popover.tsx). */
2503
2497
  .fd-tooltip {
2504
2498
  position: fixed;
2505
- z-index: 150;
2506
2499
  width: max-content;
2507
2500
  max-width: min(280px, calc(100vw - 16px));
2508
2501
  background: var(--n-900);
@@ -2640,11 +2633,11 @@
2640
2633
  position: relative;
2641
2634
  }
2642
2635
  .fd-pop {
2636
+ /* z-index is set inline by Popover.tsx via useOverlayLayer (see Popover.tsx). */
2643
2637
  position: absolute;
2644
2638
  top: calc(100% + 6px);
2645
2639
  left: 0;
2646
2640
  min-width: 100%;
2647
- z-index: 110;
2648
2641
  background: var(--surface);
2649
2642
  border: 1px solid var(--border);
2650
2643
  border-radius: var(--r-md);
@@ -6440,45 +6433,6 @@ button.fd-erow-metric:focus-visible {
6440
6433
  }
6441
6434
  }
6442
6435
 
6443
- /* attachment lightbox (demo harness) */
6444
- .fdc-lightbox {
6445
- position: fixed;
6446
- inset: 0;
6447
- z-index: 200;
6448
- display: grid;
6449
- place-items: center;
6450
- padding: 36px;
6451
- background: var(--scrim);
6452
- backdrop-filter: blur(3px);
6453
- animation: fd-pop var(--dur-fast) var(--ease-out) both;
6454
- }
6455
- .fdc-lightbox figure {
6456
- margin: 0;
6457
- max-width: min(1100px, 92vw);
6458
- display: flex;
6459
- flex-direction: column;
6460
- gap: 8px;
6461
- }
6462
- .fdc-lightbox img {
6463
- max-width: 100%;
6464
- max-height: 76vh;
6465
- border-radius: var(--r-lg);
6466
- box-shadow: var(--e-4);
6467
- background: var(--surface);
6468
- }
6469
- .fdc-lightbox figcaption {
6470
- display: flex;
6471
- justify-content: space-between;
6472
- gap: 16px;
6473
- color: #fff;
6474
- font-size: var(--body-sm-size);
6475
- font-weight: var(--w-medium);
6476
- }
6477
- .fdc-lightbox figcaption span {
6478
- opacity: 0.62;
6479
- font-weight: var(--w-regular);
6480
- }
6481
-
6482
6436
  /* ============ Build mode (live / test) ============ */
6483
6437
  .fd-mode-btn {
6484
6438
  position: relative;
@@ -6533,13 +6487,11 @@ button.fd-erow-metric:focus-visible {
6533
6487
  border: 1.5px solid var(--surface);
6534
6488
  animation: fd-badge-pop 260ms var(--ease) both;
6535
6489
  }
6536
- /* The z-index below is a resting default only — ModeSwitch.tsx always sets it inline via
6537
- useOverlayLayer(MODE_SWITCH_BASE), which wins over this rule (see Popover.tsx). */
6490
+ /* z-index is set inline by ModeSwitch.tsx via useOverlayLayer (see Popover.tsx). */
6538
6491
  .fd-mode-pop {
6539
6492
  position: absolute;
6540
6493
  top: calc(100% + 8px);
6541
6494
  right: 0;
6542
- z-index: 140;
6543
6495
  width: 400px;
6544
6496
  max-width: calc(100vw - 32px);
6545
6497
  display: block;