@aircall/ds 0.31.2 → 0.33.0

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/theme.css CHANGED
@@ -438,6 +438,34 @@
438
438
  margin-block-end: -0.25em;
439
439
  }
440
440
 
441
+ /*
442
+ * The overlay layering scale, such as it is. Two tiers, and the gap between them is the point.
443
+ *
444
+ * MODAL SURFACES sit at `z-50`: the `Dialog` / `AlertDialog` / `Sheet` / `Drawer` backdrops and
445
+ * their panels. Those stay on plain `z-50` — this utility is deliberately not applied to them.
446
+ *
447
+ * POPUPS get this tier, one step above, and it has to be a real step rather than the shared
448
+ * `z-50` they used to carry. A popup opened from INSIDE a modal surface must paint above that
449
+ * surface's backdrop, and at an EQUAL z-index that is decided by paint order — which Base UI
450
+ * cannot guarantee here. Its portal container resolves to
451
+ * `container ?? parentPortalNode ?? document.body`, and React runs effects child-first: a
452
+ * `SelectContent` mounted inside a `DialogContent` runs its portal effect BEFORE the dialog's, so
453
+ * `PortalContext` has no node yet, the popup lands in `<body>`, and the dialog's own portal node
454
+ * is appended after it. The backdrop then paints over the popup, and because it carries
455
+ * `backdrop-filter` the popup comes out blurred rather than merely behind.
456
+ *
457
+ * That ordering depends on whether the consumer mounts the dialog eagerly (a `show` prop on an
458
+ * always-rendered modal) or on open, which is why it looked intermittent. One tier of separation
459
+ * makes it a z-index question instead, and z-index does not care about mount order.
460
+ *
461
+ * Applied to each popup family's POSITIONER — the `position: fixed` element that actually
462
+ * competes with the backdrop, and the one a consumer's `className` cannot reach (it lands on the
463
+ * popup, inside the positioner's own `isolation: isolate` stacking context).
464
+ */
465
+ @utility z-popup {
466
+ z-index: 60;
467
+ }
468
+
441
469
  /*
442
470
  * Attachment utilities — ported verbatim from the shadcn base theme
443
471
  * (packages/shadcn/src/tailwind.css). Consumed by the Attachment component:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.31.2",
3
+ "version": "0.33.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [
@@ -52,9 +52,19 @@
52
52
  }
53
53
  },
54
54
  "dependencies": {
55
+ "@ariakit/react": "0.4.36",
55
56
  "@base-ui/react": "1.3.0",
56
57
  "@headless-tree/core": "1.7.0",
57
58
  "@headless-tree/react": "1.7.0",
59
+ "@platejs/basic-nodes": "53.0.0",
60
+ "@platejs/combobox": "53.0.0",
61
+ "@platejs/floating": "53.0.0",
62
+ "@platejs/indent": "53.0.0",
63
+ "@platejs/link": "53.3.1",
64
+ "@platejs/list": "53.1.3",
65
+ "@platejs/markdown": "53.3.3",
66
+ "@platejs/mention": "53.0.0",
67
+ "@platejs/slash-command": "53.0.0",
58
68
  "@tanstack/react-virtual": "3.13.12",
59
69
  "class-variance-authority": "0.7.1",
60
70
  "clsx": "2.1.1",
@@ -63,6 +73,8 @@
63
73
  "emoji-picker-react": "4.4.9",
64
74
  "input-otp": "1.4.2",
65
75
  "next-themes": "0.4.6",
76
+ "platejs": "53.3.3",
77
+ "remark-gfm": "4.0.1",
66
78
  "sonner": "2.0.3",
67
79
  "tailwind-merge": "3.4.0",
68
80
  "tw-animate-css": "1.4.0"
@@ -102,7 +114,7 @@
102
114
  "storybook": "10.3.3",
103
115
  "storybook-addon-pseudo-states": "10.3.3",
104
116
  "tailwindcss": "4.1.18",
105
- "tsdown": "0.20.0-beta.3",
117
+ "tsdown": "0.22.14",
106
118
  "typescript": "5.9.3",
107
119
  "vite": "7.3.1",
108
120
  "vitest": "4.0.17",