@dloizides/ui-layout 1.38.0 → 1.38.1
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 +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -585,9 +585,17 @@ var Modal = ({
|
|
|
585
585
|
)
|
|
586
586
|
] }) });
|
|
587
587
|
};
|
|
588
|
+
var CENTRED_ROW = { flexGrow: 1, justifyContent: "center" };
|
|
588
589
|
var PageOverlay = ({ children, pageSize, visible, onClose, testID }) => {
|
|
589
590
|
const { t } = uiFeedback.useUi();
|
|
590
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Modal, { accessibilityLabel: t(LAYOUT_I18N.pageEnlarge), size: "xl", testID, visible, onClose, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
591
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Modal, { accessibilityLabel: t(LAYOUT_I18N.pageEnlarge), size: "xl", testID, visible, onClose, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, contentContainerStyle: CENTRED_ROW, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
592
|
+
reactNative.View,
|
|
593
|
+
{
|
|
594
|
+
style: { width: pageSize.width, minWidth: pageSize.width, height: pageSize.height, flexShrink: 0 },
|
|
595
|
+
testID: `${testID}-page`,
|
|
596
|
+
children
|
|
597
|
+
}
|
|
598
|
+
) }) });
|
|
591
599
|
};
|
|
592
600
|
|
|
593
601
|
// src/PageFrame/utils/pageScale.ts
|