@exponential_app/eui-react 0.10.0 → 0.12.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 +4 -3
- package/dist/index.js.map +3 -3
- package/dist/types/surface.d.ts +8 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7400,7 +7400,7 @@ var useIsoLayoutEffect3 = typeof window === `undefined` ? useEffect22 : useLayou
|
|
|
7400
7400
|
function surfaceLayout(box, inputs) {
|
|
7401
7401
|
const breakpoint = activeBreakpoint(box.width, inputs.breakpoints);
|
|
7402
7402
|
const height = inputs.viewportHeight ?? box.height;
|
|
7403
|
-
const ctx = { width: box.width, height, hover: inputs.hover, reducedMotion: inputs.reducedMotion };
|
|
7403
|
+
const ctx = { width: box.width, height, hover: inputs.hover, reducedMotion: inputs.reducedMotion, breakpoints: inputs.breakpoints, formFactor: inputs.formFactor };
|
|
7404
7404
|
const xq = inputs.queries.filter((key) => {
|
|
7405
7405
|
const c = parseMediaCondition(key);
|
|
7406
7406
|
return c ? mediaMatches(c, ctx) : false;
|
|
@@ -7539,6 +7539,7 @@ function ExponentialSurface({
|
|
|
7539
7539
|
direction: directionProp,
|
|
7540
7540
|
width,
|
|
7541
7541
|
viewportHeight,
|
|
7542
|
+
formFactor,
|
|
7542
7543
|
id: idProp,
|
|
7543
7544
|
handleRef,
|
|
7544
7545
|
className,
|
|
@@ -7613,7 +7614,7 @@ function ExponentialSurface({
|
|
|
7613
7614
|
const [portal, setPortal] = useState22(null);
|
|
7614
7615
|
const [toastLayer, setToastLayer] = useState22(null);
|
|
7615
7616
|
const box = useRef26({ width: typeof width === `number` ? width : 0, height: undefined, measured: false });
|
|
7616
|
-
const layoutInputs = { breakpoints: theme.tokens.breakpoint ?? {}, queries: sheet.queries, viewportHeight, hover, reducedMotion };
|
|
7617
|
+
const layoutInputs = { breakpoints: theme.tokens.breakpoint ?? {}, queries: sheet.queries, viewportHeight, formFactor, hover, reducedMotion };
|
|
7617
7618
|
const { breakpoint, xq } = surfaceLayout(box.current, layoutInputs);
|
|
7618
7619
|
const inputsRef = useRef26(layoutInputs);
|
|
7619
7620
|
inputsRef.current = layoutInputs;
|
|
@@ -8099,5 +8100,5 @@ export {
|
|
|
8099
8100
|
walkNodes
|
|
8100
8101
|
};
|
|
8101
8102
|
|
|
8102
|
-
//# debugId=
|
|
8103
|
+
//# debugId=730892E878BA336264756E2164756E21
|
|
8103
8104
|
//# sourceMappingURL=index.js.map
|