@exponential_app/eui-react 0.7.1 → 0.9.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/index.js +53 -34
- package/dist/index.js.map +5 -5
- package/dist/types/context.d.ts +2 -0
- package/dist/types/natives/overlays.d.ts +1 -1
- package/dist/types/surface.d.ts +9 -1
- package/package.json +2 -2
package/dist/types/context.d.ts
CHANGED
|
@@ -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").
|
|
49
|
+
export declare function ToastNative({ node, props, rootProps, emit, scope }: NativeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
50
|
export {};
|
package/dist/types/surface.d.ts
CHANGED
|
@@ -44,6 +44,9 @@ export interface ExponentialSurfaceProps {
|
|
|
44
44
|
timeZone?: string;
|
|
45
45
|
/** Built-in string overrides by id (`catalog/strings.json`). */
|
|
46
46
|
strings?: Record<string, string>;
|
|
47
|
+
/** VAPP-200: the viewer may read, not write (an app at app access
|
|
48
|
+
* `read`): every writing control paints disabled (`readOnlyTree`). */
|
|
49
|
+
readOnly?: boolean;
|
|
47
50
|
host?: HostPlugin;
|
|
48
51
|
extensions?: readonly ReactExtension[];
|
|
49
52
|
/** Forced interaction states on every node (the builder's recipe sheet). */
|
|
@@ -53,6 +56,11 @@ export interface ExponentialSurfaceProps {
|
|
|
53
56
|
w: number;
|
|
54
57
|
h: number;
|
|
55
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;
|
|
56
64
|
/** Default: the locale's direction (`textDirection`). */
|
|
57
65
|
direction?: `ltr` | `rtl`;
|
|
58
66
|
/** The surface width; default = the host's box. */
|
|
@@ -114,4 +122,4 @@ export declare function surfaceLayout(box: SurfaceBox, inputs: LayoutInputs): {
|
|
|
114
122
|
* inline `data={{ items, filter }}` with stable values costs one pass over
|
|
115
123
|
* its top-level keys). */
|
|
116
124
|
export declare function sameData(a: unknown, b: unknown): boolean;
|
|
117
|
-
export declare function ExponentialSurface({ surface, root: rootProp, templates: templatesProp, data: dataProp, theme: themeProp, mode: modeSetting, density, contrast, locale, timeZone, strings: stringOverrides, 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.
|
|
3
|
+
"version": "0.9.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.
|
|
45
|
+
"@exponential_app/eui": "^0.9.0",
|
|
46
46
|
"class-variance-authority": "^0.7.1",
|
|
47
47
|
"clsx": "^2.1.1",
|
|
48
48
|
"lucide-react": "^0.544.0",
|