@exponential_app/eui-react 0.8.0 → 0.10.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.
@@ -33,6 +33,8 @@ export interface SurfaceContextValue {
33
33
  portal: HTMLElement | null;
34
34
  /** The toast layer (above dialogs). */
35
35
  toastLayer: HTMLElement | null;
36
+ /** EXP-1673: overlays paint OPEN in place, no portal (a static render). */
37
+ inlineOverlays: boolean;
36
38
  /** The direction of the node being painted (round 2 §2: `direction` on
37
39
  * ANY node, inherited; the surface's at the root). */
38
40
  direction: `ltr` | `rtl`;
@@ -46,5 +46,5 @@ export declare function MenuNative(p: NativeProps): import("react/jsx-runtime").
46
46
  * 3 visible (base CSS). The renderer runs `duration` (0 = sticky), PAUSED
47
47
  * while hovered or focused, then writes `open: false` and fires `dismiss`
48
48
  * + `change`. `error` is assertive, the rest polite; never takes focus. */
49
- export declare function ToastNative({ node, props, rootProps, emit, scope }: NativeProps): import("react").ReactPortal | null;
49
+ export declare function ToastNative({ node, props, rootProps, emit, scope }: NativeProps): import("react/jsx-runtime").JSX.Element | null;
50
50
  export {};
@@ -56,6 +56,11 @@ export interface ExponentialSurfaceProps {
56
56
  w: number;
57
57
  h: number;
58
58
  } | null;
59
+ /** EXP-1673: a static render (docs, galleries, server markup): every
60
+ * overlay paints OPEN in place of its portal, below its trigger, with no
61
+ * focus trap or scroll lock. Dialog, Drawer and Popover still follow
62
+ * `open`; Tooltip, Menu and Toast always show. */
63
+ inlineOverlays?: boolean;
59
64
  /** Default: the locale's direction (`textDirection`). */
60
65
  direction?: `ltr` | `rtl`;
61
66
  /** The surface width; default = the host's box. */
@@ -117,4 +122,4 @@ export declare function surfaceLayout(box: SurfaceBox, inputs: LayoutInputs): {
117
122
  * inline `data={{ items, filter }}` with stable values costs one pass over
118
123
  * its top-level keys). */
119
124
  export declare function sameData(a: unknown, b: unknown): boolean;
120
- export declare function ExponentialSurface({ surface, root: rootProp, templates: templatesProp, data: dataProp, theme: themeProp, mode: modeSetting, density, contrast, locale, timeZone, strings: stringOverrides, readOnly, host, extensions: extensionsProp, states, measure, direction: directionProp, width, viewportHeight, id: idProp, handleRef, className, style, children, }: ExponentialSurfaceProps): import("react/jsx-runtime").JSX.Element;
125
+ export declare function ExponentialSurface({ surface, root: rootProp, templates: templatesProp, data: dataProp, theme: themeProp, mode: modeSetting, density, contrast, locale, timeZone, strings: stringOverrides, readOnly, host, extensions: extensionsProp, states, measure, inlineOverlays, direction: directionProp, width, viewportHeight, id: idProp, handleRef, className, style, children, }: ExponentialSurfaceProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exponential_app/eui-react",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Exponential UI for React: the reference renderer of the core A2UI catalog on Radix with real CSS, runtime themes, extensions, and the shadcn primitive set the Exponential app shares.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://exponential.at/ui/",
@@ -42,7 +42,7 @@
42
42
  "*.css"
43
43
  ],
44
44
  "dependencies": {
45
- "@exponential_app/eui": "^0.8.0",
45
+ "@exponential_app/eui": "^0.10.0",
46
46
  "class-variance-authority": "^0.7.1",
47
47
  "clsx": "^2.1.1",
48
48
  "lucide-react": "^0.544.0",