@multiplatform.one/components 10.0.0 → 10.1.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/cjs/ErrorBoundary/index.cjs +2 -10
- package/dist/cjs/ErrorBoundary/index.native.cjs +2 -10
- package/dist/cjs/ErrorBoundary/index.native.js +2 -10
- package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
- package/dist/cjs/code/CodeBlock/index.cjs +2 -9
- package/dist/cjs/code/CodeBlock/index.native.cjs +2 -9
- package/dist/cjs/code/CodeBlock/index.native.js +2 -9
- package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
- package/dist/cjs/layouts/Debug/index.cjs +2 -9
- package/dist/cjs/layouts/Debug/index.native.cjs +2 -10
- package/dist/cjs/layouts/Debug/index.native.js +2 -10
- package/dist/cjs/layouts/Debug/index.native.js.map +1 -1
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/index.cjs +2 -10
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/index.native.cjs +2 -10
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/index.native.js +2 -10
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/index.native.js.map +1 -1
- package/dist/cjs/layouts/page.cjs +3 -11
- package/dist/cjs/layouts/page.native.cjs +3 -11
- package/dist/cjs/layouts/page.native.js +3 -11
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/esm/ErrorBoundary/index.mjs +2 -10
- package/dist/esm/ErrorBoundary/index.mjs.map +1 -1
- package/dist/esm/ErrorBoundary/index.native.js +2 -10
- package/dist/esm/ErrorBoundary/index.native.js.map +1 -1
- package/dist/esm/code/CodeBlock/index.mjs +3 -10
- package/dist/esm/code/CodeBlock/index.mjs.map +1 -1
- package/dist/esm/code/CodeBlock/index.native.js +3 -10
- package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
- package/dist/esm/layouts/Debug/index.mjs +3 -10
- package/dist/esm/layouts/Debug/index.mjs.map +1 -1
- package/dist/esm/layouts/Debug/index.native.js +3 -11
- package/dist/esm/layouts/Debug/index.native.js.map +1 -1
- package/dist/esm/layouts/KeyboardAvoidingWrapper/index.mjs +2 -10
- package/dist/esm/layouts/KeyboardAvoidingWrapper/index.mjs.map +1 -1
- package/dist/esm/layouts/KeyboardAvoidingWrapper/index.native.js +2 -10
- package/dist/esm/layouts/KeyboardAvoidingWrapper/index.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +4 -12
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +4 -12
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/jsx/ErrorBoundary/index.mjs +2 -10
- package/dist/jsx/ErrorBoundary/index.mjs.map +1 -1
- package/dist/jsx/ErrorBoundary/index.native.cjs +2 -10
- package/dist/jsx/ErrorBoundary/index.native.js +2 -10
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/code/CodeBlock/index.mjs +3 -10
- package/dist/jsx/code/CodeBlock/index.mjs.map +1 -1
- package/dist/jsx/code/CodeBlock/index.native.cjs +2 -9
- package/dist/jsx/code/CodeBlock/index.native.js +2 -9
- package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
- package/dist/jsx/layouts/Debug/index.mjs +3 -10
- package/dist/jsx/layouts/Debug/index.mjs.map +1 -1
- package/dist/jsx/layouts/Debug/index.native.cjs +2 -10
- package/dist/jsx/layouts/Debug/index.native.js +2 -10
- package/dist/jsx/layouts/Debug/index.native.js.map +1 -1
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/index.mjs +2 -10
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/index.mjs.map +1 -1
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/index.native.cjs +2 -10
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/index.native.js +2 -10
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/index.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +4 -12
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.cjs +3 -11
- package/dist/jsx/layouts/page.native.js +3 -11
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/package.json +7 -7
- package/src/ErrorBoundary/ErrorBoundary.showMessage.spec.tsx +0 -26
- package/src/ErrorBoundary/index.tsx +2 -12
- package/src/code/CodeBlock/CodeBlock.copyable.spec.tsx +0 -21
- package/src/code/CodeBlock/index.tsx +1 -12
- package/src/layouts/Debug/debug.spec.tsx +0 -32
- package/src/layouts/Debug/index.tsx +1 -14
- package/src/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.disabled.native.spec.tsx +1 -26
- package/src/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.spec.tsx +1 -26
- package/src/layouts/KeyboardAvoidingWrapper/index.native.tsx +1 -12
- package/src/layouts/KeyboardAvoidingWrapper/index.tsx +1 -12
- package/src/layouts/PageTemplates.tsx +1 -1
- package/src/layouts/Screen.flush.spec.tsx +0 -32
- package/src/layouts/page.tsx +3 -14
- package/types/ErrorBoundary/index.d.ts +0 -2
- package/types/ErrorBoundary/index.d.ts.map +1 -1
- package/types/code/CodeBlock/index.d.ts +1 -3
- package/types/code/CodeBlock/index.d.ts.map +1 -1
- package/types/layouts/Debug/index.d.ts +1 -5
- package/types/layouts/Debug/index.d.ts.map +1 -1
- package/types/layouts/KeyboardAvoidingWrapper/index.d.ts +1 -3
- package/types/layouts/KeyboardAvoidingWrapper/index.d.ts.map +1 -1
- package/types/layouts/KeyboardAvoidingWrapper/index.native.d.ts +1 -3
- package/types/layouts/KeyboardAvoidingWrapper/index.native.d.ts.map +1 -1
- package/types/layouts/PageTemplates.d.ts +1 -1
- package/types/layouts/PageTemplates.d.ts.map +1 -1
- package/types/layouts/page.d.ts +1 -3
- package/types/layouts/page.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/layouts/Debug/index.js"],"sourcesContent":["import {\n transitionProps,\n OVERLAY_ANCHOR_GAP,\n radiusClassProps,\n useResolvedKnobs
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/layouts/Debug/index.js"],"sourcesContent":["import {\n transitionProps,\n OVERLAY_ANCHOR_GAP,\n radiusClassProps,\n useResolvedKnobs\n} from \"@multiplatform.one/theme\";\nimport { componentColors } from \"../../componentColors\";\nimport { createWithLayout } from \"@multiplatform.one/platform\";\nimport { config } from \"@multiplatform.one/platform\";\nimport { Circle, Popover, XStack, YStack } from \"tamagui\";\nimport { PopoverContent } from \"../../surfaces\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nconst pipShape = radiusClassProps(\"R-PILL\", \"debug pip\");\nfunction DebugLayout({\n children,\n debugView,\n debugViewProps,\n size,\n debug\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"DebugLayout\" });\n const DebugView = debugView;\n const show = debug ?? config.get(\"DEBUG\") === \"1\";\n const pipSize = size ?? knobProps.nestedControl.px;\n if (!show) return /* @__PURE__ */ jsx(Fragment, { children });\n return /* @__PURE__ */ jsxs(\n YStack,\n {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n pointerEvents: \"box-none\",\n \"data-testid\": \"debug-layout-root\",\n children: [\n children,\n /* @__PURE__ */ jsx(\n YStack,\n {\n position: \"absolute\",\n top: 0,\n insetInlineEnd: 0,\n pointerEvents: \"box-none\",\n zIndex: 1,\n ...knobProps.panelPadding,\n children: /* @__PURE__ */ jsx(XStack, { \"data-testid\": \"debug-container\", pointerEvents: \"auto\", children: /* @__PURE__ */ jsxs(Popover, { placement: \"bottom\", offset: OVERLAY_ANCHOR_GAP, children: [\n /* @__PURE__ */ jsx(Popover.Trigger, { children: /* @__PURE__ */ jsx(\n Circle,\n {\n ...pipShape,\n cursor: \"pointer\",\n backgroundColor: componentColors.debug,\n width: pipSize,\n height: pipSize,\n hitSlop: knobProps.nestedControl.hitSlop,\n \"data-testid\": \"debug-circle\",\n ...transitionProps(knobProps.motion.control)\n }\n ) }),\n /* @__PURE__ */ jsx(PopoverContent, { children: /* @__PURE__ */ jsx(YStack, { ...knobProps.panelPadding, ...knobProps.gap, ...knobProps.body, children: DebugView ? /* @__PURE__ */ jsx(DebugView, { ...debugViewProps }) : null }) })\n ] }) })\n }\n )\n ]\n }\n );\n}\nfunction createWithDebugLayout(extraLayouts, debugLayoutProps = {}) {\n return createWithLayout(\n DebugLayout,\n extraLayouts,\n debugLayoutProps\n );\n}\nconst withDebugLayout = createWithDebugLayout();\nexport {\n DebugLayout,\n createWithDebugLayout,\n withDebugLayout\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;AAYA,MAAM,WAAW,iBAAiB,UAAU,WAAW;AACvD,SAAS,YAAY,EACnB,UACA,WACA,gBACA,MACA,SACC;CACD,MAAM,EAAE,cAAc,iBAAiB,EAAE,WAAW,cAAc,CAAC;CACnE,MAAM,YAAY;CAClB,MAAM,OAAO,SAAS,OAAO,IAAI,OAAO,MAAM;CAC9C,MAAM,UAAU,QAAQ,UAAU,cAAc;CAChD,IAAI,CAAC,MAAM,OAAuB,oBAAI,UAAU,EAAE,SAAS,CAAC;CAC5D,OAAuB,qBACrB,QACA;EACE,UAAU;EACV,KAAK;EACL,MAAM;EACN,OAAO;EACP,QAAQ;EACR,eAAe;EACf,eAAe;EACf,UAAU,CACR,UACgB,oBACd,QACA;GACE,UAAU;GACV,KAAK;GACL,gBAAgB;GAChB,eAAe;GACf,QAAQ;GACR,GAAG,UAAU;GACb,UAA0B,oBAAI,QAAQ;IAAE,eAAe;IAAmB,eAAe;IAAQ,UAA0B,qBAAK,SAAS;KAAE,WAAW;KAAU,QAAQ;KAAoB,UAAU,CACpL,oBAAI,QAAQ,SAAS,EAAE,UAA0B,oBAC/D,QACA;MACE,GAAG;MACH,QAAQ;MACR,iBAAiB,gBAAgB;MACjC,OAAO;MACP,QAAQ;MACR,SAAS,UAAU,cAAc;MACjC,eAAe;MACf,GAAG,gBAAgB,UAAU,OAAO,OAAO;KAC7C,CACF,EAAE,CAAC,GACa,oBAAI,gBAAgB,EAAE,UAA0B,oBAAI,QAAQ;MAAE,GAAG,UAAU;MAAc,GAAG,UAAU;MAAK,GAAG,UAAU;MAAM,UAAU,YAA4B,oBAAI,WAAW,EAAE,GAAG,eAAe,CAAC,IAAI;KAAK,CAAC,EAAE,CAAC,CACvO;IAAE,CAAC;GAAE,CAAC;EACR,CACF,CACF;CACF,CACF;AACF;AACA,SAAS,sBAAsB,cAAc,mBAAmB,CAAC,GAAG;CAClE,OAAO,iBACL,aACA,cACA,gBACF;AACF;AACA,MAAM,kBAAkB,sBAAsB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { OVERLAY_ANCHOR_GAP, radiusClassProps, transitionProps, useResolvedKnobs
|
|
2
|
+
import { OVERLAY_ANCHOR_GAP, radiusClassProps, transitionProps, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
3
3
|
import { componentColors } from "../../componentColors.native.js";
|
|
4
4
|
import { config, createWithLayout } from "@multiplatform.one/platform";
|
|
5
5
|
import { Circle, Popover, XStack, YStack } from "tamagui";
|
|
@@ -7,18 +7,10 @@ import { PopoverContent } from "../../surfaces.native.js";
|
|
|
7
7
|
|
|
8
8
|
var pipShape = radiusClassProps("R-PILL", "debug pip");
|
|
9
9
|
function DebugLayout(param) {
|
|
10
|
-
var { children, debugView, debugViewProps, size, debug
|
|
11
|
-
var _ref;
|
|
10
|
+
var { children, debugView, debugViewProps, size, debug } = param;
|
|
12
11
|
var { knobProps } = useResolvedKnobs({ component: "DebugLayout" });
|
|
13
|
-
warnDeprecatedProp({
|
|
14
|
-
component: "DebugLayout",
|
|
15
|
-
prop: "enabled",
|
|
16
|
-
use: "debug",
|
|
17
|
-
removal: "10.0.0",
|
|
18
|
-
passed: enabled !== void 0
|
|
19
|
-
});
|
|
20
12
|
var DebugView = debugView;
|
|
21
|
-
var show =
|
|
13
|
+
var show = debug !== null && debug !== void 0 ? debug : config.get("DEBUG") === "1";
|
|
22
14
|
var pipSize = size !== null && size !== void 0 ? size : knobProps.nestedControl.px;
|
|
23
15
|
if (!show) return /* @__PURE__ */ jsx(Fragment, { children });
|
|
24
16
|
return /* @__PURE__ */ jsxs(YStack, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["_Fragment"],"sources":["esm/layouts/Debug/index.native.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { transitionProps, OVERLAY_ANCHOR_GAP, radiusClassProps, useResolvedKnobs
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["_Fragment"],"sources":["esm/layouts/Debug/index.native.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { transitionProps, OVERLAY_ANCHOR_GAP, radiusClassProps, useResolvedKnobs } from \"@multiplatform.one/theme\";\nimport { componentColors } from \"../../componentColors\";\nimport { createWithLayout } from \"@multiplatform.one/platform\";\nimport { config } from \"@multiplatform.one/platform\";\nimport { Circle, Popover, XStack, YStack } from \"tamagui\";\nimport { PopoverContent } from \"../../surfaces\";\nvar pipShape = radiusClassProps(\"R-PILL\", \"debug pip\");\nfunction DebugLayout(param) {\n var { children, debugView, debugViewProps, size, debug } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"DebugLayout\"\n });\n var DebugView = debugView;\n var show = debug !== null && debug !== void 0 ? debug : config.get(\"DEBUG\") === \"1\";\n var pipSize = size !== null && size !== void 0 ? size : knobProps.nestedControl.px;\n if (!show) return /* @__PURE__ */ _jsx(_Fragment, {\n children\n });\n return /* @__PURE__ */ _jsxs(YStack, {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n pointerEvents: \"box-none\",\n \"data-testid\": \"debug-layout-root\",\n children: [\n children,\n /* @__PURE__ */ _jsx(YStack, {\n position: \"absolute\",\n top: 0,\n insetInlineEnd: 0,\n pointerEvents: \"box-none\",\n zIndex: 1,\n ...knobProps.panelPadding,\n children: /* @__PURE__ */ _jsx(XStack, {\n \"data-testid\": \"debug-container\",\n pointerEvents: \"auto\",\n children: /* @__PURE__ */ _jsxs(Popover, {\n placement: \"bottom\",\n offset: OVERLAY_ANCHOR_GAP,\n children: [\n /* @__PURE__ */ _jsx(Popover.Trigger, {\n children: /* @__PURE__ */ _jsx(Circle, {\n ...pipShape,\n cursor: \"pointer\",\n backgroundColor: componentColors.debug,\n width: pipSize,\n height: pipSize,\n hitSlop: knobProps.nestedControl.hitSlop,\n \"data-testid\": \"debug-circle\",\n ...transitionProps(knobProps.motion.control)\n })\n }),\n /* @__PURE__ */ _jsx(PopoverContent, {\n children: /* @__PURE__ */ _jsx(YStack, {\n ...knobProps.panelPadding,\n ...knobProps.gap,\n ...knobProps.body,\n children: DebugView ? /* @__PURE__ */ _jsx(DebugView, {\n ...debugViewProps\n }) : null\n })\n })\n ]\n })\n })\n })\n ]\n });\n}\nfunction createWithDebugLayout(extraLayouts) {\n var debugLayoutProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n return createWithLayout(DebugLayout, extraLayouts, debugLayoutProps);\n}\nvar withDebugLayout = createWithDebugLayout();\nexport {\n DebugLayout,\n createWithDebugLayout,\n withDebugLayout\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;AAOA,IAAI,WAAW,iBAAiB,UAAU,WAAW;AACrD,SAAS,YAAY,OAAO;CAC1B,IAAI,EAAE,UAAU,WAAW,gBAAgB,MAAM,UAAU;CAC3D,IAAI,EAAE,cAAc,iBAAiB,EACnC,WAAW,cACb,CAAC;CACD,IAAI,YAAY;CAChB,IAAI,OAAO,UAAU,QAAQ,UAAU,KAAK,IAAI,QAAQ,OAAO,IAAI,OAAO,MAAM;CAChF,IAAI,UAAU,SAAS,QAAQ,SAAS,KAAK,IAAI,OAAO,UAAU,cAAc;CAChF,IAAI,CAAC,MAAM,OAAuB,oBAAKA,UAAW,EAChD,SACF,CAAC;CACD,OAAuB,qBAAM,QAAQ;EACnC,UAAU;EACV,KAAK;EACL,MAAM;EACN,OAAO;EACP,QAAQ;EACR,eAAe;EACf,eAAe;EACf,UAAU,CACR,UACgB,oBAAK,QAAQ;GAC3B,UAAU;GACV,KAAK;GACL,gBAAgB;GAChB,eAAe;GACf,QAAQ;GACR,GAAG,UAAU;GACb,UAA0B,oBAAK,QAAQ;IACrC,eAAe;IACf,eAAe;IACf,UAA0B,qBAAM,SAAS;KACvC,WAAW;KACX,QAAQ;KACR,UAAU,CACQ,oBAAK,QAAQ,SAAS,EACpC,UAA0B,oBAAK,QAAQ;MACrC,GAAG;MACH,QAAQ;MACR,iBAAiB,gBAAgB;MACjC,OAAO;MACP,QAAQ;MACR,SAAS,UAAU,cAAc;MACjC,eAAe;MACf,GAAG,gBAAgB,UAAU,OAAO,OAAO;KAC7C,CAAC,EACH,CAAC,GACe,oBAAK,gBAAgB,EACnC,UAA0B,oBAAK,QAAQ;MACrC,GAAG,UAAU;MACb,GAAG,UAAU;MACb,GAAG,UAAU;MACb,UAAU,YAA4B,oBAAK,WAAW,EACpD,GAAG,eACL,CAAC,IAAI;KACP,CAAC,EACH,CAAC,CACH;IACF,CAAC;GACH,CAAC;EACH,CAAC,CACH;CACF,CAAC;AACH;AACA,SAAS,sBAAsB,cAAc;CAC3C,IAAI,mBAAmB,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CACzF,OAAO,iBAAiB,aAAa,cAAc,gBAAgB;AACrE;AACA,IAAI,kBAAkB,sBAAsB"}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import { warnDeprecatedProp } from "@multiplatform.one/theme";
|
|
2
1
|
import { YStack } from "tamagui";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
|
|
5
|
-
function KeyboardAvoidingWrapper({ children, behavior: _behavior, keyboardVerticalOffset: _offset, disabled,
|
|
6
|
-
|
|
7
|
-
component: "KeyboardAvoidingWrapper",
|
|
8
|
-
prop: "enabled",
|
|
9
|
-
use: "disabled",
|
|
10
|
-
removal: "10.0.0",
|
|
11
|
-
passed: enabled !== void 0
|
|
12
|
-
});
|
|
13
|
-
const off = disabled ?? enabled === false;
|
|
4
|
+
function KeyboardAvoidingWrapper({ children, behavior: _behavior, keyboardVerticalOffset: _offset, disabled, ...stackProps }) {
|
|
5
|
+
const off = disabled ?? false;
|
|
14
6
|
return /* @__PURE__ */ jsx(YStack, {
|
|
15
7
|
"data-testid": "keyboard-avoiding-wrapper",
|
|
16
8
|
"data-keyboard-avoiding": "web",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/layouts/KeyboardAvoidingWrapper/index.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/layouts/KeyboardAvoidingWrapper/index.js"],"sourcesContent":["import { YStack } from \"tamagui\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction KeyboardAvoidingWrapper({\n children,\n behavior: _behavior,\n keyboardVerticalOffset: _offset,\n disabled,\n ...stackProps\n}) {\n const off = disabled ?? false;\n return /* @__PURE__ */ jsx(\n YStack,\n {\n \"data-testid\": \"keyboard-avoiding-wrapper\",\n \"data-keyboard-avoiding\": \"web\",\n \"data-disabled\": String(off),\n flex: 1,\n ...stackProps,\n children\n }\n );\n}\nexport {\n KeyboardAvoidingWrapper\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,SAAS,wBAAwB,EAC/B,UACA,UAAU,WACV,wBAAwB,SACxB,UACA,GAAG,cACF;CACD,MAAM,MAAM,YAAY;CACxB,OAAuB,oBACrB,QACA;EACE,eAAe;EACf,0BAA0B;EAC1B,iBAAiB,OAAO,GAAG;EAC3B,MAAM;EACN,GAAG;EACH;CACF,CACF;AACF"}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { KeyboardChainScope } from "@multiplatform.one/forms";
|
|
3
|
-
import { warnDeprecatedProp } from "@multiplatform.one/theme";
|
|
4
3
|
import { Keyboard, KeyboardAvoidingView, Platform, StyleSheet } from "react-native";
|
|
5
4
|
import { YStack } from "tamagui";
|
|
6
5
|
import { resolveKeyboardAvoidingBehavior } from "./behavior.native.js";
|
|
7
6
|
|
|
8
7
|
function KeyboardAvoidingWrapper(param) {
|
|
9
|
-
var { children, behavior, keyboardVerticalOffset = 0, disabled,
|
|
10
|
-
|
|
11
|
-
component: "KeyboardAvoidingWrapper",
|
|
12
|
-
prop: "enabled",
|
|
13
|
-
use: "disabled",
|
|
14
|
-
removal: "10.0.0",
|
|
15
|
-
passed: enabled !== void 0
|
|
16
|
-
});
|
|
17
|
-
var off = disabled !== null && disabled !== void 0 ? disabled : enabled === false;
|
|
8
|
+
var { children, behavior, keyboardVerticalOffset = 0, disabled, ...stackProps } = param;
|
|
9
|
+
var off = disabled !== null && disabled !== void 0 ? disabled : false;
|
|
18
10
|
var effectiveBehavior = resolveKeyboardAvoidingBehavior(Platform.OS, behavior);
|
|
19
11
|
return /* @__PURE__ */ jsx(KeyboardAvoidingView, {
|
|
20
12
|
style: styles.container,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["esm/layouts/KeyboardAvoidingWrapper/index.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { KeyboardChainScope } from \"@multiplatform.one/forms\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["esm/layouts/KeyboardAvoidingWrapper/index.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { KeyboardChainScope } from \"@multiplatform.one/forms\";\nimport { Keyboard, KeyboardAvoidingView, Platform, StyleSheet } from \"react-native\";\nimport { YStack } from \"tamagui\";\nimport { resolveKeyboardAvoidingBehavior } from \"./behavior\";\nfunction KeyboardAvoidingWrapper(param) {\n var { children, behavior, keyboardVerticalOffset = 0, disabled, ...stackProps } = param;\n var off = disabled !== null && disabled !== void 0 ? disabled : false;\n var effectiveBehavior = resolveKeyboardAvoidingBehavior(Platform.OS, behavior);\n return /* @__PURE__ */ _jsx(KeyboardAvoidingView, {\n style: styles.container,\n behavior: effectiveBehavior,\n keyboardVerticalOffset,\n enabled: !off,\n onStartShouldSetResponder: function onStartShouldSetResponder() {\n return Keyboard.isVisible();\n },\n onResponderRelease: function onResponderRelease() {\n return Keyboard.dismiss();\n },\n children: /* @__PURE__ */ _jsx(KeyboardChainScope, {\n children: /* @__PURE__ */ _jsx(YStack, {\n \"data-testid\": \"keyboard-avoiding-wrapper\",\n \"data-keyboard-avoiding\": \"native\",\n \"data-disabled\": String(off),\n flex: 1,\n ...stackProps,\n children\n })\n })\n });\n}\nvar styles = StyleSheet.create({\n container: {\n flex: 1\n }\n});\nexport {\n KeyboardAvoidingWrapper\n};\n//# sourceMappingURL=index.native.js.map\n"],"mappings":";;;;;;;AAKA,SAAS,wBAAwB,OAAO;CACtC,IAAI,EAAE,UAAU,UAAU,yBAAyB,GAAG,UAAU,GAAG,eAAe;CAClF,IAAI,MAAM,aAAa,QAAQ,aAAa,KAAK,IAAI,WAAW;CAChE,IAAI,oBAAoB,gCAAgC,SAAS,IAAI,QAAQ;CAC7E,OAAuB,oBAAK,sBAAsB;EAChD,OAAO,OAAO;EACd,UAAU;EACV;EACA,SAAS,CAAC;EACV,2BAA2B,SAAS,4BAA4B;GAC9D,OAAO,SAAS,UAAU;EAC5B;EACA,oBAAoB,SAAS,qBAAqB;GAChD,OAAO,SAAS,QAAQ;EAC1B;EACA,UAA0B,oBAAK,oBAAoB,EACjD,UAA0B,oBAAK,QAAQ;GACrC,eAAe;GACf,0BAA0B;GAC1B,iBAAiB,OAAO,GAAG;GAC3B,MAAM;GACN,GAAG;GACH;EACF,CAAC,EACH,CAAC;CACH,CAAC;AACH;AACA,IAAI,SAAS,WAAW,OAAO,EAC7B,WAAW,EACT,MAAM,EACR,EACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H1, H2, H3, H4, H5, H6, Heading, MIN_PRESS_TARGET, PageGutter, Paragraph, ScreenNesting, SizableText, Surface, Text, containerCapProps, hairline, layoutBreakpoints, resolvePageTitleScale, sizeTokenStep, transitionProps, useAccentOnSurface, useLayoutSizeClass, usePageGutter, useParentScreen, useResolvedKnobs
|
|
1
|
+
import { H1, H2, H3, H4, H5, H6, Heading, MIN_PRESS_TARGET, PageGutter, Paragraph, ScreenNesting, SizableText, Surface, Text, containerCapProps, hairline, layoutBreakpoints, resolvePageTitleScale, sizeTokenStep, transitionProps, useAccentOnSurface, useLayoutSizeClass, usePageGutter, useParentScreen, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
2
2
|
import { Button, IconButtonGroup, useGlyphOnPlate } from "@multiplatform.one/forms";
|
|
3
3
|
import { CaretLeftIcon, CaretRightIcon, DotsThreeIcon } from "@phosphor-icons/react";
|
|
4
4
|
import { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useState } from "react";
|
|
@@ -31,22 +31,14 @@ function negateSpaceToken(token) {
|
|
|
31
31
|
}
|
|
32
32
|
const CONTENT_MAX_WIDTH = layoutBreakpoints.xl;
|
|
33
33
|
const READABLE_MAX_WIDTH = layoutBreakpoints.expanded;
|
|
34
|
-
function Screen({ flush,
|
|
35
|
-
warnDeprecatedProp({
|
|
36
|
-
component: "Screen",
|
|
37
|
-
prop: "noPadding",
|
|
38
|
-
use: "flush",
|
|
39
|
-
removal: "10.0.0",
|
|
40
|
-
passed: noPadding !== void 0
|
|
41
|
-
});
|
|
34
|
+
function Screen({ flush, ...props }) {
|
|
42
35
|
const parent = useParentScreen();
|
|
43
|
-
const edge = flush ?? noPadding;
|
|
44
36
|
return parent ? /* @__PURE__ */ jsx(NestedScreen, {
|
|
45
37
|
parent,
|
|
46
|
-
flush
|
|
38
|
+
flush,
|
|
47
39
|
...props
|
|
48
40
|
}) : /* @__PURE__ */ jsx(PageShell, {
|
|
49
|
-
flush
|
|
41
|
+
flush,
|
|
50
42
|
...props
|
|
51
43
|
});
|
|
52
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","names":["H1","H2","H3","H4","H5","H6","Paragraph","Fragment2","SizableText","HouseText","HouseSizableText","HouseParagraph","HouseHeading","HouseH1","HouseH2","HouseH3","HouseH4","HouseH5","HouseH6"],"sources":["esm/layouts/page.js"],"sourcesContent":["import {\n MIN_PRESS_TARGET,\n PageGutter,\n ScreenNesting,\n containerCapProps,\n hairline,\n layoutBreakpoints,\n resolvePageTitleScale,\n sizeTokenStep,\n Surface,\n transitionProps,\n useAccentOnSurface,\n useLayoutSizeClass,\n useParentScreen,\n usePageGutter,\n useResolvedKnobs,\n warnDeprecatedProp,\n H1 as HouseH1,\n H2 as HouseH2,\n H3 as HouseH3,\n H4 as HouseH4,\n H5 as HouseH5,\n H6 as HouseH6,\n Heading as HouseHeading,\n Paragraph as HouseParagraph,\n SizableText as HouseSizableText,\n Text as HouseText\n} from \"@multiplatform.one/theme\";\nimport {\n Button,\n IconButtonGroup,\n useGlyphOnPlate\n} from \"@multiplatform.one/forms\";\nimport { CaretLeftIcon, CaretRightIcon, DotsThreeIcon } from \"@phosphor-icons/react\";\nimport {\n Children,\n Fragment,\n cloneElement,\n createContext,\n isValidElement,\n useCallback,\n useContext,\n useState\n} from \"react\";\nimport { barTitleSpan, sideExtents } from \"./barTitleSpan\";\nimport {\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n Paragraph,\n Separator,\n SizableText,\n XStack,\n YStack,\n isWeb,\n styled\n} from \"tamagui\";\nimport { BottomChromeClearance } from \"../appShell/BottomChromeClearance\";\nimport { useBottomChromeInset } from \"../appShell/bottomChrome\";\nimport { componentColors, sectionHeading } from \"../componentColors\";\nimport { useDirection } from \"../hooks/useDirection\";\nimport { useTranslation } from \"../shared/i18n\";\nimport { ScrollView } from \"../ScrollView\";\nimport { KeyboardAvoidingWrapper } from \"./KeyboardAvoidingWrapper\";\nimport { BottomSafeArea } from \"./bottomSafeArea\";\nimport {\n BottomAccessoryHost,\n useBottomAccessoryOccupied,\n BottomAccessoryScope,\n createBottomAccessoryStore\n} from \"./bottomAccessory\";\nimport {\n ScreenScrollScope,\n TopBarSlot,\n useLargeTitle,\n useReportScreenScroll,\n useScreenScroll,\n useScreenScrollController,\n useTopBarSlot\n} from \"./screenScroll\";\nimport {\n PageHeadingScope,\n usePageChromeInset,\n useRegisterPageHeading\n} from \"./pageHeadingScope\";\nimport { ParentScrollScope } from \"./screenScroll\";\nimport { EmptyState } from \"./EmptyState\";\nimport { Fragment as Fragment2, jsx, jsxs } from \"react/jsx-runtime\";\nconst PAGE_HEADING_TAGS = { 1: H1, 2: H2, 3: H3, 4: H4, 5: H5, 6: H6 };\nfunction negateSpaceToken(token) {\n return `-${token.startsWith(\"$\") ? token.slice(1) : token}`;\n}\nconst CONTENT_MAX_WIDTH = layoutBreakpoints.xl;\nconst READABLE_MAX_WIDTH = layoutBreakpoints.expanded;\nfunction Screen({ flush, noPadding, ...props }) {\n warnDeprecatedProp({\n component: \"Screen\",\n prop: \"noPadding\",\n use: \"flush\",\n removal: \"10.0.0\",\n passed: noPadding !== void 0\n });\n const parent = useParentScreen();\n const edge = flush ?? noPadding;\n return parent ? /* @__PURE__ */ jsx(NestedScreen, { parent, flush: edge, ...props }) : /* @__PURE__ */ jsx(PageShell, { flush: edge, ...props });\n}\nfunction NestedScreen({\n parent,\n children,\n scroll = true,\n maxWidth = CONTENT_MAX_WIDTH,\n bleed = false,\n flush = false,\n scrollViewProps,\n avoidKeyboard: _avoidKeyboard,\n topBar,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"Screen\" });\n const scrollState = useScreenScrollController();\n const ownInset = flush || parent.inset !== null ? null : knobProps.panelPadding.padding;\n const inset = ownInset ?? parent.inset;\n const cap = !parent.capped && maxWidth && !bleed ? maxWidth : null;\n const ownsScroll = scroll && !parent.scrolls;\n const content = /* @__PURE__ */ jsx(PageHeadingScope, { insetToken: inset, children: /* @__PURE__ */ jsx(\n ScreenNesting,\n {\n scrolls: scroll || parent.scrolls,\n inset,\n capped: parent.capped || cap !== null,\n holdBottomEdge: parent.holdBottomEdge,\n children: ownInset ? /* @__PURE__ */ jsx(PageGutter, { inset: ownInset, children }) : children\n }\n ) });\n const column = /* @__PURE__ */ jsxs(\n YStack,\n {\n ref: ownsScroll ? scrollState.contentRoot : void 0,\n \"data-testid\": \"screen\",\n \"data-screen-nested\": true,\n flex: 1,\n width: \"100%\",\n ...cap ? { maxWidth: cap, alignSelf: \"center\" } : null,\n ...ownInset ? knobProps.panelPadding : null,\n ...ownsScroll && parent.underChrome && parent.inset ? { paddingBottom: parent.inset } : null,\n ...knobProps.gapLg,\n ...rest,\n children: [\n ownsScroll ? null : topBar,\n content\n ]\n }\n );\n if (!ownsScroll) return /* @__PURE__ */ jsx(ParentScrollScope, { children: column });\n return /* @__PURE__ */ jsx(ScreenScrollScope, { controller: scrollState, children: /* @__PURE__ */ jsxs(YStack, { flex: 1, minHeight: 0, children: [\n topBar,\n /* @__PURE__ */ jsxs(\n ScrollView,\n {\n flex: 1,\n contentContainerStyle: { flexGrow: 1 },\n scrollEventThrottle: 16,\n ...scrollViewProps,\n onScroll: (event) => {\n scrollState.onScroll(event);\n scrollViewProps?.onScroll?.(event);\n },\n children: [\n column,\n parent.underChrome ? /* @__PURE__ */ jsx(\n YStack,\n {\n height: parent.underChrome,\n flexShrink: 0,\n \"aria-hidden\": true,\n \"data-testid\": \"screen-chrome-clearance\"\n }\n ) : null\n ]\n }\n )\n ] }) });\n}\nfunction GutterFrame({ children, ...rest }) {\n const { knobProps } = useResolvedKnobs({ component: \"Screen\" });\n const pageGutter = usePageGutter();\n if (pageGutter) {\n return /* @__PURE__ */ jsx(YStack, { \"data-gutter-frame\": \"page\", ...rest, children });\n }\n return /* @__PURE__ */ jsx(YStack, { \"data-gutter-frame\": \"own\", ...knobProps.panelPadding, ...rest, children: /* @__PURE__ */ jsx(PageGutter, { inset: knobProps.panelPadding.padding, children }) });\n}\nfunction PageShell({\n children,\n scroll = true,\n maxWidth = CONTENT_MAX_WIDTH,\n bleed = false,\n flush = false,\n scrollViewProps,\n avoidKeyboard = true,\n topBar,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"Screen\" });\n const scrollState = useScreenScrollController();\n useReportScreenScroll(scrollState.state, Boolean(topBar), useInlinePageTitle());\n const [accessories] = useState(createBottomAccessoryStore);\n const [edgeHolders, setEdgeHolders] = useState(() => /* @__PURE__ */ new Set());\n const holdBottomEdge = useCallback((id, held) => {\n setEdgeHolders((prev) => {\n if (prev.has(id) === held) return prev;\n const next = new Set(prev);\n if (held) next.add(id);\n else next.delete(id);\n return next;\n });\n }, []);\n const edgeHeld = edgeHolders.size > 0;\n const inset = flush ? null : knobProps.panelPadding.padding;\n const cap = maxWidth && !bleed ? maxWidth : null;\n const inner = /* @__PURE__ */ jsx(\n YStack,\n {\n ref: scrollState.contentRoot,\n \"data-testid\": \"screen\",\n ...scroll ? { flexGrow: 1, flexShrink: 0, flexBasis: \"auto\" } : { flex: 1 },\n width: \"100%\",\n ...maxWidth && !bleed ? { maxWidth, alignSelf: \"center\" } : null,\n ...flush ? null : knobProps.panelPadding,\n ...edgeHeld ? { paddingBottom: 0 } : null,\n ...knobProps.gapLg,\n ...rest,\n children: /* @__PURE__ */ jsx(PageHeadingScope, { insetToken: flush ? null : knobProps.panelPadding.padding, children: /* @__PURE__ */ jsx(PageGutter, { inset: flush ? null : knobProps.panelPadding.padding, children: /* @__PURE__ */ jsx(\n ScreenNesting,\n {\n scrolls: scroll,\n inset,\n capped: cap !== null,\n holdBottomEdge,\n children\n }\n ) }) })\n }\n );\n const bar = topBar ? /* @__PURE__ */ jsx(TopBarSlot, { inset, maxWidth: cap, children: topBar }) : null;\n const accessory = /* @__PURE__ */ jsx(BottomAccessoryHost, { store: accessories, inset, maxWidth: cap });\n const shell = (page) => {\n const scoped = /* @__PURE__ */ jsx(ScreenScrollScope, { controller: scrollState, children: /* @__PURE__ */ jsx(BottomAccessoryScope, { store: accessories, children: page }) });\n return isWeb || !avoidKeyboard ? scoped : /* @__PURE__ */ jsx(KeyboardAvoidingWrapper, { children: scoped });\n };\n const accessoryOccupied = useBottomAccessoryOccupied(accessories);\n const chromeInset = useBottomChromeInset();\n const chromeClearance = accessoryOccupied ? null : /* @__PURE__ */ jsx(BottomChromeClearance, { testID: \"screen-chrome-clearance\" });\n if (!scroll) {\n const bottomEdge = accessoryOccupied ? null : chromeInset > 0 ? chromeClearance : /* @__PURE__ */ jsx(BottomSafeArea, {});\n return shell(\n /* @__PURE__ */ jsxs(YStack, { flex: 1, backgroundColor: \"background\", children: [\n bar,\n inner,\n accessory,\n bottomEdge\n ] })\n );\n }\n const scroller = /* @__PURE__ */ jsxs(\n ScrollView,\n {\n ref: scrollState.scroller,\n flex: 1,\n backgroundColor: \"background\",\n ...scrollViewProps,\n contentContainerStyle: { flexGrow: 1 },\n scrollEventThrottle: 16,\n onScroll: (event) => {\n scrollState.onScroll(event);\n scrollViewProps?.onScroll?.(event);\n },\n children: [\n inner,\n chromeClearance\n ]\n }\n );\n return shell(\n // minHeight 0: a flex column's min-height is its content by default, so\n // without it the column grows to the page and an outer scroller (a\n // shell's overflow region) scrolls the bar away with the content.\n /* @__PURE__ */ jsxs(YStack, { flex: 1, minHeight: 0, backgroundColor: \"background\", children: [\n bar,\n scroller,\n accessory\n ] })\n );\n}\nconst PushedPageContext = createContext(null);\nfunction PushedPage({\n hero = false,\n children\n}) {\n return /* @__PURE__ */ jsx(PushedPageContext.Provider, { value: hero ? \"hero\" : \"inline\", children });\n}\nfunction useInlinePageTitle() {\n const pushed = useContext(PushedPageContext);\n const compact = useLayoutSizeClass() === \"compact\";\n return pushed === \"inline\" && compact;\n}\nfunction PageHeader({\n title,\n subtitle,\n status,\n heading,\n actions,\n nav,\n divider = true,\n headingLevel = 1,\n titleScale,\n children,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"PageHeader\" });\n const insetToken = usePageChromeInset();\n useRegisterPageHeading({\n level: headingLevel,\n component: \"PageHeader\",\n label: title,\n enabled: !heading && !!title\n });\n const TitleTag = PAGE_HEADING_TAGS[headingLevel];\n const largeTitle = useLargeTitle(title, headingLevel === 1 && !heading);\n const inlineTitle = useInlinePageTitle() && headingLevel === 1;\n const compact = useLayoutSizeClass() === \"compact\";\n const titleSize = titleScale ? resolvePageTitleScale(titleScale) : knobProps.pageTitle;\n const compactTitle = compact ? { numberOfLines: 1 } : null;\n const fontWeightKnob = knobProps.heading.fontWeight ? { \"data-font-weight-knob\": \"bold\" } : null;\n const titleTag = title ? /* @__PURE__ */ jsx(\n TitleTag,\n {\n margin: 0,\n ...compactTitle,\n ...largeTitle,\n ...titleSize,\n ...knobProps.heading,\n ...fontWeightKnob,\n children: title\n }\n ) : null;\n const titleNode = inlineTitle ? null : heading ?? titleTag;\n if (inlineTitle && !subtitle && !status && !actions && !nav && !children) return null;\n const showHairline = Boolean(divider);\n const rule = { ...hairline.bottom, borderColor: componentColors.divider };\n const bleed = insetToken ? { marginHorizontal: negateSpaceToken(insetToken) } : null;\n const contentPad = insetToken ? { paddingHorizontal: insetToken } : null;\n return /* @__PURE__ */ jsxs(\n YStack,\n {\n \"data-testid\": \"page-header\",\n overflow: \"visible\",\n ...bleed,\n ...showHairline && !nav ? rule : null,\n ...showHairline && nav ? { position: \"relative\" } : null,\n ...nav ? knobProps.gap : null,\n ...rest,\n children: [\n /* @__PURE__ */ jsxs(YStack, { ...contentPad, paddingBottom: nav ? 0 : knobProps.gap.gap, children: [\n /* @__PURE__ */ jsxs(\n XStack,\n {\n justifyContent: \"space-between\",\n alignItems: subtitle || status ? \"flex-start\" : \"center\",\n ...knobProps.gap,\n children: [\n titleNode || subtitle || status ? /* @__PURE__ */ jsxs(YStack, { flexGrow: 1, flexShrink: 1, minWidth: 0, gap: \"1\", children: [\n titleNode,\n subtitle ? (\n // T-HELPER on the shared body fragment — not a local size map.\n /* @__PURE__ */ jsx(Paragraph, { margin: 0, ...knobProps.body, color: knobProps.textAccentColor, children: subtitle })\n ) : null,\n status ? /* @__PURE__ */ jsx(XStack, { alignItems: \"center\", children: status }) : null\n ] }) : null,\n actions ? /* @__PURE__ */ jsx(\n XStack,\n {\n ...knobProps.gap,\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n flexShrink: 0,\n \"data-page-header-actions\": \"\",\n children: /* @__PURE__ */ jsx(Surface, { bar: true, children: /* @__PURE__ */ jsx(IconButtonGroup, { ...knobProps.gap, justifyContent: \"flex-end\", children: actions }) })\n }\n ) : null\n ]\n }\n ),\n children\n ] }),\n nav && showHairline ? (\n // Sit the tab indicator on the header hairline (Primer / Linear).\n /* @__PURE__ */ jsx(YStack, { position: \"absolute\", left: 0, right: 0, bottom: 0, pointerEvents: \"none\", ...rule })\n ) : null,\n nav ? /* @__PURE__ */ jsx(YStack, { width: \"100%\", \"data-page-header-nav\": \"\", children: nav }) : null\n ]\n }\n );\n}\nconst denseSectionHeading = { size: isWeb ? \"5\" : \"4\" };\nconst denseSectionPadding = { padding: \"3\" };\nfunction PageSection({\n title,\n description,\n heading,\n divider = false,\n surface = false,\n headingLevel = 2,\n size,\n children,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"PageSection\", size });\n const dense = sizeTokenStep(knobProps.sizeToken) < 0;\n const sectionGap = dense ? knobProps.gapSm : knobProps.gap;\n const headingFamily = knobProps.heading;\n const SectionTag = PAGE_HEADING_TAGS[headingLevel];\n const denseHeading = dense ? denseSectionHeading : null;\n const headingNode = heading ?? (title ? /* @__PURE__ */ jsx(SectionTag, { margin: 0, ...sectionHeading, ...denseHeading, ...headingFamily, children: title }) : null);\n const surfaceProps = surface ? {\n ...knobProps.surface,\n ...knobProps.containerRadius,\n ...dense ? denseSectionPadding : knobProps.panelPadding,\n ...containerCapProps(\"PageSection\", knobProps.borderRadius.borderRadius)\n } : {};\n const headerBlock = headingNode || description ? /* @__PURE__ */ jsxs(YStack, { ...knobProps.gapSm, children: [\n headingNode,\n description ? /* @__PURE__ */ jsx(Paragraph, { margin: 0, ...knobProps.body, color: knobProps.textAccentColor, children: description }) : null,\n divider ? /* @__PURE__ */ jsx(Separator, { ...hairline.line, backgroundColor: componentColors.divider }) : null\n ] }) : null;\n return /* @__PURE__ */ jsxs(\n YStack,\n {\n \"data-testid\": \"page-section\",\n \"data-size-token\": knobProps.sizeToken,\n ...sectionGap,\n ...rest,\n children: [\n headerBlock,\n surface ? /* @__PURE__ */ jsx(YStack, { ...sectionGap, ...surfaceProps, children: /* @__PURE__ */ jsx(PageGutter, { inset: null, children }) }) : children\n ]\n }\n );\n}\nfunction useBarTitleSpan() {\n const none = { x: 0, width: 0 };\n const [box, setBox] = useState({ row: 0, leading: none, trailing: none, title: 0 });\n const set = (key, value) => setBox(\n (prev) => JSON.stringify(prev[key]) === JSON.stringify(value) ? prev : { ...prev, [key]: value }\n );\n const extent = (event) => {\n const { x, width } = event.nativeEvent.layout;\n return { x, width };\n };\n return {\n span: barTitleSpan({\n row: box.row,\n title: box.title,\n ...sideExtents(box.row, box.leading, box.trailing)\n }),\n measureRow: (event) => set(\"row\", Math.floor(extent(event).width)),\n measureLeading: (event) => set(\"leading\", extent(event)),\n measureTrailing: (event) => set(\"trailing\", extent(event)),\n measureTitle: (event) => set(\"title\", Math.ceil(extent(event).width))\n };\n}\nconst pageTitleRole = { role: \"heading\", \"aria-level\": 1 };\nfunction BarTitle({\n title,\n span,\n onTitleWidth,\n shown = true,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n const text = {\n ...knobProps.body,\n fontWeight: \"600\",\n color: \"$color-12\",\n numberOfLines: 1\n };\n return /* @__PURE__ */ jsxs(Fragment2, { children: [\n shown ? /* @__PURE__ */ jsx(\n XStack,\n {\n position: \"absolute\",\n top: 0,\n left: 0,\n opacity: 0,\n pointerEvents: \"none\",\n \"aria-hidden\": true,\n onLayout: onTitleWidth,\n children: /* @__PURE__ */ jsx(SizableText, { ...text, children: title })\n }\n ) : null,\n /* @__PURE__ */ jsx(\n XStack,\n {\n position: \"absolute\",\n top: 0,\n bottom: 0,\n left: span.left,\n right: span.right,\n alignItems: \"center\",\n justifyContent: \"center\",\n pointerEvents: \"none\",\n \"aria-hidden\": !shown,\n \"data-bar-title\": \"\",\n opacity: shown ? 1 : 0,\n ...rest,\n children: /* @__PURE__ */ jsx(SizableText, { ...text, children: title })\n }\n )\n ] });\n}\nconst houseTextTypes = /* @__PURE__ */ new Set([\n HouseText,\n HouseSizableText,\n HouseParagraph,\n HouseHeading,\n HouseH1,\n HouseH2,\n HouseH3,\n HouseH4,\n HouseH5,\n HouseH6\n]);\nfunction isTextElement(node) {\n if (!isValidElement(node)) return false;\n const type = node.type;\n return houseTextTypes.has(node.type) || Boolean(type.staticConfig?.isText);\n}\nfunction oneLineText(node) {\n return Children.map(node, (child) => {\n if (isValidElement(child) && child.type === Fragment) {\n return oneLineText(child.props.children);\n }\n if (!isTextElement(child)) return child;\n const { numberOfLines, flexShrink, minWidth } = child.props;\n return cloneElement(child, {\n numberOfLines: numberOfLines ?? 1,\n flexShrink: flexShrink ?? 1,\n minWidth: minWidth ?? 0\n });\n });\n}\nconst TOOLBAR_LEADING_STYLE_ID = \"mp-toolbar-leading-css\";\nconst toolbarLeadingCss = `[data-toolbar-leading-clip] > .is_Text:not([class*=\"_wlc-\"]):not([class*=\"_WebkitLineClamp-\"]) {\n min-width: 0;\n flex-shrink: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}`;\nfunction ensureToolbarLeadingStyles() {\n if (!isWeb || typeof document === \"undefined\") return;\n if (document.getElementById(TOOLBAR_LEADING_STYLE_ID)) return;\n const tag = document.createElement(\"style\");\n tag.id = TOOLBAR_LEADING_STYLE_ID;\n tag.textContent = toolbarLeadingCss;\n document.head.appendChild(tag);\n}\nconst ToolbarLeadingClip = styled(XStack, {\n displayName: \"ToolbarLeadingClip\",\n alignItems: \"center\",\n flexShrink: 1,\n minWidth: 0,\n overflow: \"hidden\"\n});\nfunction ToolbarLeading({\n children,\n wrap,\n reach,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n ensureToolbarLeadingStyles();\n const end = knobProps.gapSm.gap;\n const start = reach;\n return /* @__PURE__ */ jsx(XStack, { minWidth: 0, alignItems: \"center\", \"data-toolbar-leading\": \"\", ...rest, children: /* @__PURE__ */ jsx(\n ToolbarLeadingClip,\n {\n ...knobProps.gap,\n flexWrap: wrap ? \"wrap\" : \"nowrap\",\n marginVertical: negateSpaceToken(start),\n paddingVertical: start,\n marginInlineStart: negateSpaceToken(start),\n paddingInlineStart: start,\n marginInlineEnd: negateSpaceToken(end),\n paddingInlineEnd: end,\n \"data-toolbar-leading-clip\": \"\",\n children: oneLineText(children)\n }\n ) });\n}\nfunction ScreenToolbar(props) {\n const slot = useTopBarSlot();\n return slot ? /* @__PURE__ */ jsx(PinnedTopBar, { ...props, slot }) : /* @__PURE__ */ jsx(InlineToolbar, { ...props });\n}\nfunction InlineToolbar({ leading, trailing, title, children, ...rest }) {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n const titleSpan = useBarTitleSpan();\n const insetToken = usePageChromeInset();\n const bleed = insetToken ? { marginHorizontal: negateSpaceToken(insetToken) } : null;\n const oneRow = useLayoutSizeClass() === \"compact\";\n const pushedTitle = useInlinePageTitle();\n const titleRole = pushedTitle ? pageTitleRole : null;\n return /* @__PURE__ */ jsx(Surface, { bar: true, children: /* @__PURE__ */ jsxs(\n XStack,\n {\n \"data-testid\": \"screen-toolbar\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n flexWrap: oneRow || title ? \"nowrap\" : \"wrap\",\n minHeight: MIN_PRESS_TARGET,\n ...title ? { position: \"relative\", onLayout: titleSpan.measureRow } : null,\n ...bleed,\n ...insetToken ? { paddingHorizontal: insetToken } : knobProps.panelPadding,\n ...knobProps.gap,\n ...rest,\n children: [\n /* @__PURE__ */ jsx(\n ToolbarLeading,\n {\n wrap: !oneRow,\n flexShrink: oneRow ? 1e3 : 1,\n reach: insetToken ?? knobProps.panelPadding.padding,\n ...title ? { onLayout: titleSpan.measureLeading } : null,\n children: leading\n }\n ),\n children,\n /* @__PURE__ */ jsx(\n IconButtonGroup,\n {\n ...knobProps.gap,\n flexWrap: oneRow ? \"nowrap\" : \"wrap\",\n flexShrink: oneRow ? 0 : 1,\n minWidth: 0,\n justifyContent: \"flex-end\",\n ...title ? { onLayout: titleSpan.measureTrailing } : null,\n children: trailing\n }\n ),\n title ? /* @__PURE__ */ jsx(\n BarTitle,\n {\n title,\n span: titleSpan.span,\n onTitleWidth: titleSpan.measureTitle,\n ...titleRole\n }\n ) : null\n ]\n }\n ) });\n}\nfunction PinnedTopBar({\n leading,\n trailing,\n title: inlineTitle,\n children,\n slot,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n const { scrolled, collapsed, title: largeTitle } = useScreenScroll();\n const titleSpan = useBarTitleSpan();\n const motion = transitionProps(knobProps.motion.control);\n const title = inlineTitle ?? largeTitle;\n const pushedTitle = useInlinePageTitle();\n const titleRole = pushedTitle ? pageTitleRole : null;\n return /* @__PURE__ */ jsx(Surface, { bar: true, children: /* @__PURE__ */ jsx(\n YStack,\n {\n \"data-testid\": \"screen-toolbar\",\n \"data-top-bar\": \"\",\n \"data-scroll-edge\": scrolled ? \"\" : void 0,\n \"data-animation\": String(knobProps.motion.control.transition ?? \"none\"),\n backgroundColor: \"background\",\n zIndex: 1,\n ...hairline.bottom,\n borderColor: scrolled ? componentColors.divider : \"transparent\",\n ...motion,\n children: /* @__PURE__ */ jsxs(\n XStack,\n {\n width: \"100%\",\n ...slot.maxWidth ? { maxWidth: slot.maxWidth, alignSelf: \"center\" } : null,\n minHeight: MIN_PRESS_TARGET,\n alignItems: \"center\",\n flexWrap: \"nowrap\",\n position: \"relative\",\n onLayout: titleSpan.measureRow,\n paddingHorizontal: slot.inset ?? knobProps.panelPadding.padding,\n ...knobProps.gap,\n ...rest,\n children: [\n /* @__PURE__ */ jsx(\n ToolbarLeading,\n {\n wrap: false,\n flexShrink: 1e3,\n reach: slot.inset ?? knobProps.panelPadding.padding,\n onLayout: titleSpan.measureLeading,\n children: leading\n }\n ),\n children,\n /* @__PURE__ */ jsx(XStack, { flexGrow: 1 }),\n /* @__PURE__ */ jsx(\n IconButtonGroup,\n {\n ...knobProps.gap,\n flexShrink: 0,\n justifyContent: \"flex-end\",\n onLayout: titleSpan.measureTrailing,\n children: trailing\n }\n ),\n title ? /* @__PURE__ */ jsx(\n BarTitle,\n {\n title,\n span: titleSpan.span,\n onTitleWidth: titleSpan.measureTitle,\n shown: Boolean(inlineTitle) || collapsed || pushedTitle,\n ...titleRole,\n ...motion\n }\n ) : null\n ]\n }\n )\n }\n ) });\n}\nfunction useTopBarControl() {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n return { size: knobProps.sizeToken, chromeless: true, accentInk: true };\n}\nconst CARET_OPTICAL_INSET = 72 / 256;\nconst CARET_INK_OFFSET = 8 / 256;\nfunction backCaret(Caret, inkSign) {\n return function BackCaret({\n size = 22,\n color,\n weight,\n ...stroke\n }) {\n const plated = useGlyphOnPlate();\n return /* @__PURE__ */ jsx(\n XStack,\n {\n \"data-back-caret\": \"\",\n ...plated ? { x: inkSign * size * CARET_INK_OFFSET } : { marginInlineStart: -Math.round(size * CARET_OPTICAL_INSET) },\n children: /* @__PURE__ */ jsx(Caret, { size, color, weight, ...stroke })\n }\n );\n };\n}\nconst BackCaretLeft = backCaret(CaretLeftIcon, 1);\nconst BackCaretRight = backCaret(CaretRightIcon, -1);\nfunction PageBackButton({ label, ...props }) {\n const control = useTopBarControl();\n const { t } = useTranslation();\n const rtl = useDirection() === \"rtl\";\n return /* @__PURE__ */ jsx(\n Button,\n {\n ...control,\n edge: \"start\",\n flexShrink: 1,\n minWidth: 0,\n glyphWeight: \"bold\",\n icon: rtl ? BackCaretRight : BackCaretLeft,\n \"aria-label\": label ? void 0 : t(\"Back\"),\n \"data-top-bar-control\": \"back\",\n ...props,\n children: label\n }\n );\n}\nfunction PageBarButton(props) {\n const control = useTopBarControl();\n return /* @__PURE__ */ jsx(Button, { ...control, \"data-top-bar-control\": \"action\", ...props });\n}\nPageBarButton.iconOnly = true;\nfunction PageMenuButton(props) {\n const { t } = useTranslation();\n return /* @__PURE__ */ jsx(\n PageBarButton,\n {\n icon: DotsThreeIcon,\n \"aria-label\": t(\"More actions\"),\n \"data-top-bar-control\": \"menu\",\n ...props\n }\n );\n}\nPageMenuButton.iconOnly = true;\nfunction PageActionButton(props) {\n const control = useTopBarControl();\n const ink = useAccentOnSurface();\n return /* @__PURE__ */ jsx(Button, { ...control, color: ink, \"data-top-bar-control\": \"action\", ...props });\n}\nexport {\n CONTENT_MAX_WIDTH,\n EmptyState,\n GutterFrame,\n PageActionButton,\n PageBackButton,\n PageBarButton,\n PageHeader,\n PageMenuButton,\n PageSection,\n PushedPage,\n READABLE_MAX_WIDTH,\n Screen,\n ScreenToolbar,\n useInlinePageTitle\n};\n//# sourceMappingURL=page.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2FA,MAAM,oBAAoB;CAAE,GAAGA;CAAI,GAAGC;CAAI,GAAGC;CAAI,GAAGC;CAAI,GAAGC;CAAI,GAAGC;AAAG;AACrE,SAAS,iBAAiB,OAAO;CAC/B,OAAO,IAAI,MAAM,WAAW,GAAG,IAAI,MAAM,MAAM,CAAC,IAAI;AACtD;AACA,MAAM,oBAAoB,kBAAkB;AAC5C,MAAM,qBAAqB,kBAAkB;AAC7C,SAAS,OAAO,EAAE,OAAO,WAAW,GAAG,SAAS;CAC9C,mBAAmB;EACjB,WAAW;EACX,MAAM;EACN,KAAK;EACL,SAAS;EACT,QAAQ,cAAc,KAAK;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G;EACH,UAAU;CACZ,CACF;AACF;AACA,SAAS,cAAc,OAAO;CAC5B,MAAM,UAAU,iBAAiB;CACjC,OAAuB,oBAAI,QAAQ;EAAE,GAAG;EAAS,wBAAwB;EAAU,GAAG;CAAM,CAAC;AAC/F;AACA,cAAc,WAAW;AACzB,SAAS,eAAe,OAAO;CAC7B,MAAM,EAAE,MAAM,eAAe;CAC7B,OAAuB,oBACrB,eACA;EACE,MAAM;EACN,cAAc,EAAE,cAAc;EAC9B,wBAAwB;EACxB,GAAG;CACL,CACF;AACF;AACA,eAAe,WAAW;AAC1B,SAAS,iBAAiB,OAAO;CAC/B,MAAM,UAAU,iBAAiB;CACjC,MAAM,MAAM,mBAAmB;CAC/B,OAAuB,oBAAI,QAAQ;EAAE,GAAG;EAAS,OAAO;EAAK,wBAAwB;EAAU,GAAG;CAAM,CAAC;AAC3G"}
|
|
1
|
+
{"version":3,"file":"page.js","names":["H1","H2","H3","H4","H5","H6","Paragraph","Fragment2","SizableText","HouseText","HouseSizableText","HouseParagraph","HouseHeading","HouseH1","HouseH2","HouseH3","HouseH4","HouseH5","HouseH6"],"sources":["esm/layouts/page.js"],"sourcesContent":["import {\n MIN_PRESS_TARGET,\n PageGutter,\n ScreenNesting,\n containerCapProps,\n hairline,\n layoutBreakpoints,\n resolvePageTitleScale,\n sizeTokenStep,\n Surface,\n transitionProps,\n useAccentOnSurface,\n useLayoutSizeClass,\n useParentScreen,\n usePageGutter,\n useResolvedKnobs,\n H1 as HouseH1,\n H2 as HouseH2,\n H3 as HouseH3,\n H4 as HouseH4,\n H5 as HouseH5,\n H6 as HouseH6,\n Heading as HouseHeading,\n Paragraph as HouseParagraph,\n SizableText as HouseSizableText,\n Text as HouseText\n} from \"@multiplatform.one/theme\";\nimport {\n Button,\n IconButtonGroup,\n useGlyphOnPlate\n} from \"@multiplatform.one/forms\";\nimport { CaretLeftIcon, CaretRightIcon, DotsThreeIcon } from \"@phosphor-icons/react\";\nimport {\n Children,\n Fragment,\n cloneElement,\n createContext,\n isValidElement,\n useCallback,\n useContext,\n useState\n} from \"react\";\nimport { barTitleSpan, sideExtents } from \"./barTitleSpan\";\nimport {\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n Paragraph,\n Separator,\n SizableText,\n XStack,\n YStack,\n isWeb,\n styled\n} from \"tamagui\";\nimport { BottomChromeClearance } from \"../appShell/BottomChromeClearance\";\nimport { useBottomChromeInset } from \"../appShell/bottomChrome\";\nimport { componentColors, sectionHeading } from \"../componentColors\";\nimport { useDirection } from \"../hooks/useDirection\";\nimport { useTranslation } from \"../shared/i18n\";\nimport { ScrollView } from \"../ScrollView\";\nimport { KeyboardAvoidingWrapper } from \"./KeyboardAvoidingWrapper\";\nimport { BottomSafeArea } from \"./bottomSafeArea\";\nimport {\n BottomAccessoryHost,\n useBottomAccessoryOccupied,\n BottomAccessoryScope,\n createBottomAccessoryStore\n} from \"./bottomAccessory\";\nimport {\n ScreenScrollScope,\n TopBarSlot,\n useLargeTitle,\n useReportScreenScroll,\n useScreenScroll,\n useScreenScrollController,\n useTopBarSlot\n} from \"./screenScroll\";\nimport {\n PageHeadingScope,\n usePageChromeInset,\n useRegisterPageHeading\n} from \"./pageHeadingScope\";\nimport { ParentScrollScope } from \"./screenScroll\";\nimport { EmptyState } from \"./EmptyState\";\nimport { Fragment as Fragment2, jsx, jsxs } from \"react/jsx-runtime\";\nconst PAGE_HEADING_TAGS = { 1: H1, 2: H2, 3: H3, 4: H4, 5: H5, 6: H6 };\nfunction negateSpaceToken(token) {\n return `-${token.startsWith(\"$\") ? token.slice(1) : token}`;\n}\nconst CONTENT_MAX_WIDTH = layoutBreakpoints.xl;\nconst READABLE_MAX_WIDTH = layoutBreakpoints.expanded;\nfunction Screen({ flush, ...props }) {\n const parent = useParentScreen();\n return parent ? /* @__PURE__ */ jsx(NestedScreen, { parent, flush, ...props }) : /* @__PURE__ */ jsx(PageShell, { flush, ...props });\n}\nfunction NestedScreen({\n parent,\n children,\n scroll = true,\n maxWidth = CONTENT_MAX_WIDTH,\n bleed = false,\n flush = false,\n scrollViewProps,\n avoidKeyboard: _avoidKeyboard,\n topBar,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"Screen\" });\n const scrollState = useScreenScrollController();\n const ownInset = flush || parent.inset !== null ? null : knobProps.panelPadding.padding;\n const inset = ownInset ?? parent.inset;\n const cap = !parent.capped && maxWidth && !bleed ? maxWidth : null;\n const ownsScroll = scroll && !parent.scrolls;\n const content = /* @__PURE__ */ jsx(PageHeadingScope, { insetToken: inset, children: /* @__PURE__ */ jsx(\n ScreenNesting,\n {\n scrolls: scroll || parent.scrolls,\n inset,\n capped: parent.capped || cap !== null,\n holdBottomEdge: parent.holdBottomEdge,\n children: ownInset ? /* @__PURE__ */ jsx(PageGutter, { inset: ownInset, children }) : children\n }\n ) });\n const column = /* @__PURE__ */ jsxs(\n YStack,\n {\n ref: ownsScroll ? scrollState.contentRoot : void 0,\n \"data-testid\": \"screen\",\n \"data-screen-nested\": true,\n flex: 1,\n width: \"100%\",\n ...cap ? { maxWidth: cap, alignSelf: \"center\" } : null,\n ...ownInset ? knobProps.panelPadding : null,\n ...ownsScroll && parent.underChrome && parent.inset ? { paddingBottom: parent.inset } : null,\n ...knobProps.gapLg,\n ...rest,\n children: [\n ownsScroll ? null : topBar,\n content\n ]\n }\n );\n if (!ownsScroll) return /* @__PURE__ */ jsx(ParentScrollScope, { children: column });\n return /* @__PURE__ */ jsx(ScreenScrollScope, { controller: scrollState, children: /* @__PURE__ */ jsxs(YStack, { flex: 1, minHeight: 0, children: [\n topBar,\n /* @__PURE__ */ jsxs(\n ScrollView,\n {\n flex: 1,\n contentContainerStyle: { flexGrow: 1 },\n scrollEventThrottle: 16,\n ...scrollViewProps,\n onScroll: (event) => {\n scrollState.onScroll(event);\n scrollViewProps?.onScroll?.(event);\n },\n children: [\n column,\n parent.underChrome ? /* @__PURE__ */ jsx(\n YStack,\n {\n height: parent.underChrome,\n flexShrink: 0,\n \"aria-hidden\": true,\n \"data-testid\": \"screen-chrome-clearance\"\n }\n ) : null\n ]\n }\n )\n ] }) });\n}\nfunction GutterFrame({ children, ...rest }) {\n const { knobProps } = useResolvedKnobs({ component: \"Screen\" });\n const pageGutter = usePageGutter();\n if (pageGutter) {\n return /* @__PURE__ */ jsx(YStack, { \"data-gutter-frame\": \"page\", ...rest, children });\n }\n return /* @__PURE__ */ jsx(YStack, { \"data-gutter-frame\": \"own\", ...knobProps.panelPadding, ...rest, children: /* @__PURE__ */ jsx(PageGutter, { inset: knobProps.panelPadding.padding, children }) });\n}\nfunction PageShell({\n children,\n scroll = true,\n maxWidth = CONTENT_MAX_WIDTH,\n bleed = false,\n flush = false,\n scrollViewProps,\n avoidKeyboard = true,\n topBar,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"Screen\" });\n const scrollState = useScreenScrollController();\n useReportScreenScroll(scrollState.state, Boolean(topBar), useInlinePageTitle());\n const [accessories] = useState(createBottomAccessoryStore);\n const [edgeHolders, setEdgeHolders] = useState(() => /* @__PURE__ */ new Set());\n const holdBottomEdge = useCallback((id, held) => {\n setEdgeHolders((prev) => {\n if (prev.has(id) === held) return prev;\n const next = new Set(prev);\n if (held) next.add(id);\n else next.delete(id);\n return next;\n });\n }, []);\n const edgeHeld = edgeHolders.size > 0;\n const inset = flush ? null : knobProps.panelPadding.padding;\n const cap = maxWidth && !bleed ? maxWidth : null;\n const inner = /* @__PURE__ */ jsx(\n YStack,\n {\n ref: scrollState.contentRoot,\n \"data-testid\": \"screen\",\n ...scroll ? { flexGrow: 1, flexShrink: 0, flexBasis: \"auto\" } : { flex: 1 },\n width: \"100%\",\n ...maxWidth && !bleed ? { maxWidth, alignSelf: \"center\" } : null,\n ...flush ? null : knobProps.panelPadding,\n ...edgeHeld ? { paddingBottom: 0 } : null,\n ...knobProps.gapLg,\n ...rest,\n children: /* @__PURE__ */ jsx(PageHeadingScope, { insetToken: flush ? null : knobProps.panelPadding.padding, children: /* @__PURE__ */ jsx(PageGutter, { inset: flush ? null : knobProps.panelPadding.padding, children: /* @__PURE__ */ jsx(\n ScreenNesting,\n {\n scrolls: scroll,\n inset,\n capped: cap !== null,\n holdBottomEdge,\n children\n }\n ) }) })\n }\n );\n const bar = topBar ? /* @__PURE__ */ jsx(TopBarSlot, { inset, maxWidth: cap, children: topBar }) : null;\n const accessory = /* @__PURE__ */ jsx(BottomAccessoryHost, { store: accessories, inset, maxWidth: cap });\n const shell = (page) => {\n const scoped = /* @__PURE__ */ jsx(ScreenScrollScope, { controller: scrollState, children: /* @__PURE__ */ jsx(BottomAccessoryScope, { store: accessories, children: page }) });\n return isWeb || !avoidKeyboard ? scoped : /* @__PURE__ */ jsx(KeyboardAvoidingWrapper, { children: scoped });\n };\n const accessoryOccupied = useBottomAccessoryOccupied(accessories);\n const chromeInset = useBottomChromeInset();\n const chromeClearance = accessoryOccupied ? null : /* @__PURE__ */ jsx(BottomChromeClearance, { testID: \"screen-chrome-clearance\" });\n if (!scroll) {\n const bottomEdge = accessoryOccupied ? null : chromeInset > 0 ? chromeClearance : /* @__PURE__ */ jsx(BottomSafeArea, {});\n return shell(\n /* @__PURE__ */ jsxs(YStack, { flex: 1, backgroundColor: \"background\", children: [\n bar,\n inner,\n accessory,\n bottomEdge\n ] })\n );\n }\n const scroller = /* @__PURE__ */ jsxs(\n ScrollView,\n {\n ref: scrollState.scroller,\n flex: 1,\n backgroundColor: \"background\",\n ...scrollViewProps,\n contentContainerStyle: { flexGrow: 1 },\n scrollEventThrottle: 16,\n onScroll: (event) => {\n scrollState.onScroll(event);\n scrollViewProps?.onScroll?.(event);\n },\n children: [\n inner,\n chromeClearance\n ]\n }\n );\n return shell(\n // minHeight 0: a flex column's min-height is its content by default, so\n // without it the column grows to the page and an outer scroller (a\n // shell's overflow region) scrolls the bar away with the content.\n /* @__PURE__ */ jsxs(YStack, { flex: 1, minHeight: 0, backgroundColor: \"background\", children: [\n bar,\n scroller,\n accessory\n ] })\n );\n}\nconst PushedPageContext = createContext(null);\nfunction PushedPage({\n hero = false,\n children\n}) {\n return /* @__PURE__ */ jsx(PushedPageContext.Provider, { value: hero ? \"hero\" : \"inline\", children });\n}\nfunction useInlinePageTitle() {\n const pushed = useContext(PushedPageContext);\n const compact = useLayoutSizeClass() === \"compact\";\n return pushed === \"inline\" && compact;\n}\nfunction PageHeader({\n title,\n subtitle,\n status,\n heading,\n actions,\n nav,\n divider = true,\n headingLevel = 1,\n titleScale,\n children,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"PageHeader\" });\n const insetToken = usePageChromeInset();\n useRegisterPageHeading({\n level: headingLevel,\n component: \"PageHeader\",\n label: title,\n enabled: !heading && !!title\n });\n const TitleTag = PAGE_HEADING_TAGS[headingLevel];\n const largeTitle = useLargeTitle(title, headingLevel === 1 && !heading);\n const inlineTitle = useInlinePageTitle() && headingLevel === 1;\n const compact = useLayoutSizeClass() === \"compact\";\n const titleSize = titleScale ? resolvePageTitleScale(titleScale) : knobProps.pageTitle;\n const compactTitle = compact ? { numberOfLines: 1 } : null;\n const fontWeightKnob = knobProps.heading.fontWeight ? { \"data-font-weight-knob\": \"bold\" } : null;\n const titleTag = title ? /* @__PURE__ */ jsx(\n TitleTag,\n {\n margin: 0,\n ...compactTitle,\n ...largeTitle,\n ...titleSize,\n ...knobProps.heading,\n ...fontWeightKnob,\n children: title\n }\n ) : null;\n const titleNode = inlineTitle ? null : heading ?? titleTag;\n if (inlineTitle && !subtitle && !status && !actions && !nav && !children) return null;\n const showHairline = Boolean(divider);\n const rule = { ...hairline.bottom, borderColor: componentColors.divider };\n const bleed = insetToken ? { marginHorizontal: negateSpaceToken(insetToken) } : null;\n const contentPad = insetToken ? { paddingHorizontal: insetToken } : null;\n return /* @__PURE__ */ jsxs(\n YStack,\n {\n \"data-testid\": \"page-header\",\n overflow: \"visible\",\n ...bleed,\n ...showHairline && !nav ? rule : null,\n ...showHairline && nav ? { position: \"relative\" } : null,\n ...nav ? knobProps.gap : null,\n ...rest,\n children: [\n /* @__PURE__ */ jsxs(YStack, { ...contentPad, paddingBottom: nav ? 0 : knobProps.gap.gap, children: [\n /* @__PURE__ */ jsxs(\n XStack,\n {\n justifyContent: \"space-between\",\n alignItems: subtitle || status ? \"flex-start\" : \"center\",\n ...knobProps.gap,\n children: [\n titleNode || subtitle || status ? /* @__PURE__ */ jsxs(YStack, { flexGrow: 1, flexShrink: 1, minWidth: 0, gap: \"1\", children: [\n titleNode,\n subtitle ? (\n // T-HELPER on the shared body fragment — not a local size map.\n /* @__PURE__ */ jsx(Paragraph, { margin: 0, ...knobProps.body, color: knobProps.textAccentColor, children: subtitle })\n ) : null,\n status ? /* @__PURE__ */ jsx(XStack, { alignItems: \"center\", children: status }) : null\n ] }) : null,\n actions ? /* @__PURE__ */ jsx(\n XStack,\n {\n ...knobProps.gap,\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n flexShrink: 0,\n \"data-page-header-actions\": \"\",\n children: /* @__PURE__ */ jsx(Surface, { bar: true, children: /* @__PURE__ */ jsx(IconButtonGroup, { ...knobProps.gap, justifyContent: \"flex-end\", children: actions }) })\n }\n ) : null\n ]\n }\n ),\n children\n ] }),\n nav && showHairline ? (\n // Sit the tab indicator on the header hairline (Primer / Linear).\n /* @__PURE__ */ jsx(YStack, { position: \"absolute\", left: 0, right: 0, bottom: 0, pointerEvents: \"none\", ...rule })\n ) : null,\n nav ? /* @__PURE__ */ jsx(YStack, { width: \"100%\", \"data-page-header-nav\": \"\", children: nav }) : null\n ]\n }\n );\n}\nconst denseSectionHeading = { size: isWeb ? \"5\" : \"4\" };\nconst denseSectionPadding = { padding: \"3\" };\nfunction PageSection({\n title,\n description,\n heading,\n divider = false,\n surface = false,\n headingLevel = 2,\n size,\n children,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"PageSection\", size });\n const dense = sizeTokenStep(knobProps.sizeToken) < 0;\n const sectionGap = dense ? knobProps.gapSm : knobProps.gap;\n const headingFamily = knobProps.heading;\n const SectionTag = PAGE_HEADING_TAGS[headingLevel];\n const denseHeading = dense ? denseSectionHeading : null;\n const headingNode = heading ?? (title ? /* @__PURE__ */ jsx(SectionTag, { margin: 0, ...sectionHeading, ...denseHeading, ...headingFamily, children: title }) : null);\n const surfaceProps = surface ? {\n ...knobProps.surface,\n ...knobProps.containerRadius,\n ...dense ? denseSectionPadding : knobProps.panelPadding,\n ...containerCapProps(\"PageSection\", knobProps.borderRadius.borderRadius)\n } : {};\n const headerBlock = headingNode || description ? /* @__PURE__ */ jsxs(YStack, { ...knobProps.gapSm, children: [\n headingNode,\n description ? /* @__PURE__ */ jsx(Paragraph, { margin: 0, ...knobProps.body, color: knobProps.textAccentColor, children: description }) : null,\n divider ? /* @__PURE__ */ jsx(Separator, { ...hairline.line, backgroundColor: componentColors.divider }) : null\n ] }) : null;\n return /* @__PURE__ */ jsxs(\n YStack,\n {\n \"data-testid\": \"page-section\",\n \"data-size-token\": knobProps.sizeToken,\n ...sectionGap,\n ...rest,\n children: [\n headerBlock,\n surface ? /* @__PURE__ */ jsx(YStack, { ...sectionGap, ...surfaceProps, children: /* @__PURE__ */ jsx(PageGutter, { inset: null, children }) }) : children\n ]\n }\n );\n}\nfunction useBarTitleSpan() {\n const none = { x: 0, width: 0 };\n const [box, setBox] = useState({ row: 0, leading: none, trailing: none, title: 0 });\n const set = (key, value) => setBox(\n (prev) => JSON.stringify(prev[key]) === JSON.stringify(value) ? prev : { ...prev, [key]: value }\n );\n const extent = (event) => {\n const { x, width } = event.nativeEvent.layout;\n return { x, width };\n };\n return {\n span: barTitleSpan({\n row: box.row,\n title: box.title,\n ...sideExtents(box.row, box.leading, box.trailing)\n }),\n measureRow: (event) => set(\"row\", Math.floor(extent(event).width)),\n measureLeading: (event) => set(\"leading\", extent(event)),\n measureTrailing: (event) => set(\"trailing\", extent(event)),\n measureTitle: (event) => set(\"title\", Math.ceil(extent(event).width))\n };\n}\nconst pageTitleRole = { role: \"heading\", \"aria-level\": 1 };\nfunction BarTitle({\n title,\n span,\n onTitleWidth,\n shown = true,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n const text = {\n ...knobProps.body,\n fontWeight: \"600\",\n color: \"$color-12\",\n numberOfLines: 1\n };\n return /* @__PURE__ */ jsxs(Fragment2, { children: [\n shown ? /* @__PURE__ */ jsx(\n XStack,\n {\n position: \"absolute\",\n top: 0,\n left: 0,\n opacity: 0,\n pointerEvents: \"none\",\n \"aria-hidden\": true,\n onLayout: onTitleWidth,\n children: /* @__PURE__ */ jsx(SizableText, { ...text, children: title })\n }\n ) : null,\n /* @__PURE__ */ jsx(\n XStack,\n {\n position: \"absolute\",\n top: 0,\n bottom: 0,\n left: span.left,\n right: span.right,\n alignItems: \"center\",\n justifyContent: \"center\",\n pointerEvents: \"none\",\n \"aria-hidden\": !shown,\n \"data-bar-title\": \"\",\n opacity: shown ? 1 : 0,\n ...rest,\n children: /* @__PURE__ */ jsx(SizableText, { ...text, children: title })\n }\n )\n ] });\n}\nconst houseTextTypes = /* @__PURE__ */ new Set([\n HouseText,\n HouseSizableText,\n HouseParagraph,\n HouseHeading,\n HouseH1,\n HouseH2,\n HouseH3,\n HouseH4,\n HouseH5,\n HouseH6\n]);\nfunction isTextElement(node) {\n if (!isValidElement(node)) return false;\n const type = node.type;\n return houseTextTypes.has(node.type) || Boolean(type.staticConfig?.isText);\n}\nfunction oneLineText(node) {\n return Children.map(node, (child) => {\n if (isValidElement(child) && child.type === Fragment) {\n return oneLineText(child.props.children);\n }\n if (!isTextElement(child)) return child;\n const { numberOfLines, flexShrink, minWidth } = child.props;\n return cloneElement(child, {\n numberOfLines: numberOfLines ?? 1,\n flexShrink: flexShrink ?? 1,\n minWidth: minWidth ?? 0\n });\n });\n}\nconst TOOLBAR_LEADING_STYLE_ID = \"mp-toolbar-leading-css\";\nconst toolbarLeadingCss = `[data-toolbar-leading-clip] > .is_Text:not([class*=\"_wlc-\"]):not([class*=\"_WebkitLineClamp-\"]) {\n min-width: 0;\n flex-shrink: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}`;\nfunction ensureToolbarLeadingStyles() {\n if (!isWeb || typeof document === \"undefined\") return;\n if (document.getElementById(TOOLBAR_LEADING_STYLE_ID)) return;\n const tag = document.createElement(\"style\");\n tag.id = TOOLBAR_LEADING_STYLE_ID;\n tag.textContent = toolbarLeadingCss;\n document.head.appendChild(tag);\n}\nconst ToolbarLeadingClip = styled(XStack, {\n displayName: \"ToolbarLeadingClip\",\n alignItems: \"center\",\n flexShrink: 1,\n minWidth: 0,\n overflow: \"hidden\"\n});\nfunction ToolbarLeading({\n children,\n wrap,\n reach,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n ensureToolbarLeadingStyles();\n const end = knobProps.gapSm.gap;\n const start = reach;\n return /* @__PURE__ */ jsx(XStack, { minWidth: 0, alignItems: \"center\", \"data-toolbar-leading\": \"\", ...rest, children: /* @__PURE__ */ jsx(\n ToolbarLeadingClip,\n {\n ...knobProps.gap,\n flexWrap: wrap ? \"wrap\" : \"nowrap\",\n marginVertical: negateSpaceToken(start),\n paddingVertical: start,\n marginInlineStart: negateSpaceToken(start),\n paddingInlineStart: start,\n marginInlineEnd: negateSpaceToken(end),\n paddingInlineEnd: end,\n \"data-toolbar-leading-clip\": \"\",\n children: oneLineText(children)\n }\n ) });\n}\nfunction ScreenToolbar(props) {\n const slot = useTopBarSlot();\n return slot ? /* @__PURE__ */ jsx(PinnedTopBar, { ...props, slot }) : /* @__PURE__ */ jsx(InlineToolbar, { ...props });\n}\nfunction InlineToolbar({ leading, trailing, title, children, ...rest }) {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n const titleSpan = useBarTitleSpan();\n const insetToken = usePageChromeInset();\n const bleed = insetToken ? { marginHorizontal: negateSpaceToken(insetToken) } : null;\n const oneRow = useLayoutSizeClass() === \"compact\";\n const pushedTitle = useInlinePageTitle();\n const titleRole = pushedTitle ? pageTitleRole : null;\n return /* @__PURE__ */ jsx(Surface, { bar: true, children: /* @__PURE__ */ jsxs(\n XStack,\n {\n \"data-testid\": \"screen-toolbar\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n flexWrap: oneRow || title ? \"nowrap\" : \"wrap\",\n minHeight: MIN_PRESS_TARGET,\n ...title ? { position: \"relative\", onLayout: titleSpan.measureRow } : null,\n ...bleed,\n ...insetToken ? { paddingHorizontal: insetToken } : knobProps.panelPadding,\n ...knobProps.gap,\n ...rest,\n children: [\n /* @__PURE__ */ jsx(\n ToolbarLeading,\n {\n wrap: !oneRow,\n flexShrink: oneRow ? 1e3 : 1,\n reach: insetToken ?? knobProps.panelPadding.padding,\n ...title ? { onLayout: titleSpan.measureLeading } : null,\n children: leading\n }\n ),\n children,\n /* @__PURE__ */ jsx(\n IconButtonGroup,\n {\n ...knobProps.gap,\n flexWrap: oneRow ? \"nowrap\" : \"wrap\",\n flexShrink: oneRow ? 0 : 1,\n minWidth: 0,\n justifyContent: \"flex-end\",\n ...title ? { onLayout: titleSpan.measureTrailing } : null,\n children: trailing\n }\n ),\n title ? /* @__PURE__ */ jsx(\n BarTitle,\n {\n title,\n span: titleSpan.span,\n onTitleWidth: titleSpan.measureTitle,\n ...titleRole\n }\n ) : null\n ]\n }\n ) });\n}\nfunction PinnedTopBar({\n leading,\n trailing,\n title: inlineTitle,\n children,\n slot,\n ...rest\n}) {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n const { scrolled, collapsed, title: largeTitle } = useScreenScroll();\n const titleSpan = useBarTitleSpan();\n const motion = transitionProps(knobProps.motion.control);\n const title = inlineTitle ?? largeTitle;\n const pushedTitle = useInlinePageTitle();\n const titleRole = pushedTitle ? pageTitleRole : null;\n return /* @__PURE__ */ jsx(Surface, { bar: true, children: /* @__PURE__ */ jsx(\n YStack,\n {\n \"data-testid\": \"screen-toolbar\",\n \"data-top-bar\": \"\",\n \"data-scroll-edge\": scrolled ? \"\" : void 0,\n \"data-animation\": String(knobProps.motion.control.transition ?? \"none\"),\n backgroundColor: \"background\",\n zIndex: 1,\n ...hairline.bottom,\n borderColor: scrolled ? componentColors.divider : \"transparent\",\n ...motion,\n children: /* @__PURE__ */ jsxs(\n XStack,\n {\n width: \"100%\",\n ...slot.maxWidth ? { maxWidth: slot.maxWidth, alignSelf: \"center\" } : null,\n minHeight: MIN_PRESS_TARGET,\n alignItems: \"center\",\n flexWrap: \"nowrap\",\n position: \"relative\",\n onLayout: titleSpan.measureRow,\n paddingHorizontal: slot.inset ?? knobProps.panelPadding.padding,\n ...knobProps.gap,\n ...rest,\n children: [\n /* @__PURE__ */ jsx(\n ToolbarLeading,\n {\n wrap: false,\n flexShrink: 1e3,\n reach: slot.inset ?? knobProps.panelPadding.padding,\n onLayout: titleSpan.measureLeading,\n children: leading\n }\n ),\n children,\n /* @__PURE__ */ jsx(XStack, { flexGrow: 1 }),\n /* @__PURE__ */ jsx(\n IconButtonGroup,\n {\n ...knobProps.gap,\n flexShrink: 0,\n justifyContent: \"flex-end\",\n onLayout: titleSpan.measureTrailing,\n children: trailing\n }\n ),\n title ? /* @__PURE__ */ jsx(\n BarTitle,\n {\n title,\n span: titleSpan.span,\n onTitleWidth: titleSpan.measureTitle,\n shown: Boolean(inlineTitle) || collapsed || pushedTitle,\n ...titleRole,\n ...motion\n }\n ) : null\n ]\n }\n )\n }\n ) });\n}\nfunction useTopBarControl() {\n const { knobProps } = useResolvedKnobs({ component: \"ScreenToolbar\" });\n return { size: knobProps.sizeToken, chromeless: true, accentInk: true };\n}\nconst CARET_OPTICAL_INSET = 72 / 256;\nconst CARET_INK_OFFSET = 8 / 256;\nfunction backCaret(Caret, inkSign) {\n return function BackCaret({\n size = 22,\n color,\n weight,\n ...stroke\n }) {\n const plated = useGlyphOnPlate();\n return /* @__PURE__ */ jsx(\n XStack,\n {\n \"data-back-caret\": \"\",\n ...plated ? { x: inkSign * size * CARET_INK_OFFSET } : { marginInlineStart: -Math.round(size * CARET_OPTICAL_INSET) },\n children: /* @__PURE__ */ jsx(Caret, { size, color, weight, ...stroke })\n }\n );\n };\n}\nconst BackCaretLeft = backCaret(CaretLeftIcon, 1);\nconst BackCaretRight = backCaret(CaretRightIcon, -1);\nfunction PageBackButton({ label, ...props }) {\n const control = useTopBarControl();\n const { t } = useTranslation();\n const rtl = useDirection() === \"rtl\";\n return /* @__PURE__ */ jsx(\n Button,\n {\n ...control,\n edge: \"start\",\n flexShrink: 1,\n minWidth: 0,\n glyphWeight: \"bold\",\n icon: rtl ? BackCaretRight : BackCaretLeft,\n \"aria-label\": label ? void 0 : t(\"Back\"),\n \"data-top-bar-control\": \"back\",\n ...props,\n children: label\n }\n );\n}\nfunction PageBarButton(props) {\n const control = useTopBarControl();\n return /* @__PURE__ */ jsx(Button, { ...control, \"data-top-bar-control\": \"action\", ...props });\n}\nPageBarButton.iconOnly = true;\nfunction PageMenuButton(props) {\n const { t } = useTranslation();\n return /* @__PURE__ */ jsx(\n PageBarButton,\n {\n icon: DotsThreeIcon,\n \"aria-label\": t(\"More actions\"),\n \"data-top-bar-control\": \"menu\",\n ...props\n }\n );\n}\nPageMenuButton.iconOnly = true;\nfunction PageActionButton(props) {\n const control = useTopBarControl();\n const ink = useAccentOnSurface();\n return /* @__PURE__ */ jsx(Button, { ...control, color: ink, \"data-top-bar-control\": \"action\", ...props });\n}\nexport {\n CONTENT_MAX_WIDTH,\n EmptyState,\n GutterFrame,\n PageActionButton,\n PageBackButton,\n PageBarButton,\n PageHeader,\n PageMenuButton,\n PageSection,\n PushedPage,\n READABLE_MAX_WIDTH,\n Screen,\n ScreenToolbar,\n useInlinePageTitle\n};\n//# sourceMappingURL=page.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0FA,MAAM,oBAAoB;CAAE,GAAGA;CAAI,GAAGC;CAAI,GAAGC;CAAI,GAAGC;CAAI,GAAGC;CAAI,GAAGC;AAAG;AACrE,SAAS,iBAAiB,OAAO;CAC/B,OAAO,IAAI,MAAM,WAAW,GAAG,IAAI,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AAM,iBAAiB;EAC7B,cAAc,QAAQ,KAAK,IAAI,EAAE,MAAM;EACvC,wBAAwB;EACxB,GAAG;EACH,UAAU;CACZ,CACF;AACF;AACA,SAAS,cAAc,OAAO;CAC5B,MAAM,UAAU,iBAAiB;CACjC,OAAuB,oBAAI,QAAQ;EAAE,GAAG;EAAS,wBAAwB;EAAU,GAAG;CAAM,CAAC;AAC/F;AACA,cAAc,WAAW;AACzB,SAAS,eAAe,OAAO;CAC7B,MAAM,EAAE,MAAM,eAAe;CAC7B,OAAuB,oBACrB,eACA;EACE,MAAM;EACN,cAAc,EAAE,cAAc;EAC9B,wBAAwB;EACxB,GAAG;CACL,CACF;AACF;AACA,eAAe,WAAW;AAC1B,SAAS,iBAAiB,OAAO;CAC/B,MAAM,UAAU,iBAAiB;CACjC,MAAM,MAAM,mBAAmB;CAC/B,OAAuB,oBAAI,QAAQ;EAAE,GAAG;EAAS,OAAO;EAAK,wBAAwB;EAAU,GAAG;CAAM,CAAC;AAC3G"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { H1, H2, H3, H4, H5, H6, Heading, MIN_PRESS_TARGET, PageGutter, Paragraph, ScreenNesting, SizableText, Surface, Text, containerCapProps, hairline, layoutBreakpoints, resolvePageTitleScale, sizeTokenStep, transitionProps, useAccentOnSurface, useLayoutSizeClass, usePageGutter, useParentScreen, useResolvedKnobs
|
|
2
|
+
import { H1, H2, H3, H4, H5, H6, Heading, MIN_PRESS_TARGET, PageGutter, Paragraph, ScreenNesting, SizableText, Surface, Text, containerCapProps, hairline, layoutBreakpoints, resolvePageTitleScale, sizeTokenStep, transitionProps, useAccentOnSurface, useLayoutSizeClass, usePageGutter, useParentScreen, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
3
3
|
import { Button, IconButtonGroup, useGlyphOnPlate } from "@multiplatform.one/forms";
|
|
4
4
|
import { CaretLeftIcon, CaretRightIcon, DotsThreeIcon } from "@phosphor-icons/react";
|
|
5
5
|
import { Children, Fragment as Fragment$1, cloneElement, createContext, isValidElement, useCallback, useContext, useState } from "react";
|
|
@@ -32,22 +32,14 @@ function negateSpaceToken(token) {
|
|
|
32
32
|
var CONTENT_MAX_WIDTH = layoutBreakpoints.xl;
|
|
33
33
|
var READABLE_MAX_WIDTH = layoutBreakpoints.expanded;
|
|
34
34
|
function Screen(param) {
|
|
35
|
-
var { flush,
|
|
36
|
-
warnDeprecatedProp({
|
|
37
|
-
component: "Screen",
|
|
38
|
-
prop: "noPadding",
|
|
39
|
-
use: "flush",
|
|
40
|
-
removal: "10.0.0",
|
|
41
|
-
passed: noPadding !== void 0
|
|
42
|
-
});
|
|
35
|
+
var { flush, ...props } = param;
|
|
43
36
|
var parent = useParentScreen();
|
|
44
|
-
var edge = flush !== null && flush !== void 0 ? flush : noPadding;
|
|
45
37
|
return parent ? /* @__PURE__ */ jsx(NestedScreen, {
|
|
46
38
|
parent,
|
|
47
|
-
flush
|
|
39
|
+
flush,
|
|
48
40
|
...props
|
|
49
41
|
}) : /* @__PURE__ */ jsx(PageShell, {
|
|
50
|
-
flush
|
|
42
|
+
flush,
|
|
51
43
|
...props
|
|
52
44
|
});
|
|
53
45
|
}
|