@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.native.js","names":[],"sources":["jsx/code/CodeBlock/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar CodeBlock_exports = {};\n__export(CodeBlock_exports, {\n CodeBlock: () => CodeBlock\n});\nmodule.exports = __toCommonJS(CodeBlock_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_linear_gradient = require(\"@tamagui/linear-gradient\");\nvar import_react = require(\"@phosphor-icons/react\");\nvar import_theme = require(\"@multiplatform.one/theme\");\nvar import_react2 = require(\"react\");\nvar import_i18n = require(\"../../shared/i18n\");\nvar import_ScrollView = require(\"../../ScrollView\");\nvar import_forms = require(\"@multiplatform.one/forms\");\nvar import_tamagui = require(\"tamagui\");\nvar import_AnimateHeight = require(\"../../AnimateHeight\");\nvar import_ErrorBoundary = require(\"../../ErrorBoundary\");\nvar import_NotifyHost = require(\"../../feedback/NotifyHost\");\nvar import_copy = require(\"../../feedback/copy\");\nvar import_Code = require(\"../Code\");\nvar import_HighlightedCode = require(\"../HighlightedCode\");\nvar import_HoldSelect = require(\"../HoldSelect\");\nvar import_Highlighter = require(\"../Highlighter\");\nvar import_Pre = require(\"../Pre\");\nvar import_componentColors = require(\"../../componentColors\");\nvar VISIBLE_LINES = 22;\nvar lineHeightBySize = {\n $2: 16,\n $3: 16,\n $4: 18,\n $5: 20,\n $6: 22\n};\nfunction clampHeightForSize(sizeToken) {\n var _lineHeightBySize_sizeToken;\n return VISIBLE_LINES * ((_lineHeightBySize_sizeToken = lineHeightBySize[sizeToken]) !== null && _lineHeightBySize_sizeToken !== void 0 ? _lineHeightBySize_sizeToken : 18);\n}\nfunction CodeBlock(param) {\n var { children = \"\", language = \"tsx\", theme, showLineNumbers: propShowLineNumbers, highlightLines = [], copyable, disableCopy, size, onDoubleTap } = param;\n var _ref;\n (0, import_theme.warnDeprecatedProp)({\n component: \"CodeBlock\",\n prop: \"disableCopy\",\n use: \"copyable={false}\",\n removal: \"10.0.0\",\n passed: disableCopy !== void 0\n });\n var { region, copy } = (0, import_copy.useCopyFeedback)();\n var { t } = (0, import_i18n.useTranslation)();\n var { knobProps } = (0, import_theme.useResolvedKnobs)();\n var copyInk = (0, import_theme.useGlyphTintOnSurface)().glyph;\n var touch = (0, import_theme.useTouchSurface)();\n var codeSize = size !== null && size !== void 0 ? size : knobProps.sizeToken;\n var codeText = children.trim();\n var tokens = (0, import_Highlighter.useShikiTokens)(codeText, language, theme);\n var clampHeight = clampHeightForSize(String(codeSize));\n var fadeHeight = Math.round(clampHeight / 2);\n var lines = (_ref = tokens === null || tokens === void 0 ? void 0 : tokens.length) !== null && _ref !== void 0 ? _ref : codeText.split(\"\\n\").length;\n var showLineNumbers = propShowLineNumbers !== null && propShowLineNumbers !== void 0 ? propShowLineNumbers : lines > 10;\n var isLong = lines > VISIBLE_LINES;\n var [isCutoff, setIsCutoff] = (0, import_react2.useState)(isLong);\n var [expandTarget, setExpandTarget] = (0, import_react2.useState)(null);\n var clampRef = (0, import_react2.useRef)(null);\n var revealTimerRef = (0, import_react2.useRef)(null);\n (0, import_react2.useEffect)(function() {\n return function() {\n if (revealTimerRef.current != null) clearTimeout(revealTimerRef.current);\n };\n }, []);\n var transition = knobProps.motion.reveal.transition;\n var revealAll = function revealAll2() {\n var node = clampRef.current;\n var fullHeight = typeof (node === null || node === void 0 ? void 0 : node.scrollHeight) === \"number\" ? node.scrollHeight : null;\n if (!transition || fullHeight == null || fullHeight <= clampHeight) {\n setIsCutoff(false);\n return;\n }\n setExpandTarget(fullHeight);\n revealTimerRef.current = setTimeout(function() {\n revealTimerRef.current = null;\n setExpandTarget(null);\n setIsCutoff(false);\n }, (0, import_AnimateHeight.settleMs)(transition));\n };\n var clamped = isCutoff || expandTarget != null;\n var showCopy = Boolean(codeText) && (copyable !== null && copyable !== void 0 ? copyable : !disableCopy);\n var activateCopy = function activateCopy2() {\n void copy(codeText);\n };\n var capSquare = (0, import_theme.sizeRecipeForToken)(String(codeSize), {\n touch\n }).height;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n position: \"relative\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ErrorBoundary.ErrorBoundary, {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n ref: clampRef,\n position: \"relative\",\n ...(0, import_theme.transitionProps)(knobProps.motion.reveal, [\n \"maxHeight\"\n ]),\n ...clamped && {\n maxHeight: expandTarget !== null && expandTarget !== void 0 ? expandTarget : clampHeight,\n overflow: \"hidden\",\n ...knobProps.borderRadius\n },\n children: [\n isCutoff && expandTarget == null && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_linear_gradient.LinearGradient, {\n position: \"absolute\",\n bottom: 0,\n left: 0,\n right: 0,\n height: fadeHeight,\n colors: [\n \"color-0\",\n \"background\"\n ],\n zIndex: import_forms.zIndex.localTop,\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Spacer, {\n flex: 1\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_forms.Button, {\n onPress: revealAll,\n alignSelf: \"center\",\n children: t(\"Show more\")\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Spacer, {\n size: \"4\"\n })\n ]\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Pre.Pre, {\n ...knobProps.borderRadius,\n padding: 0,\n marginBottom: 0,\n flexDirection: \"row\",\n backgroundColor: import_componentColors.componentColors.code.background,\n borderWidth: 0,\n \"data-code-surface\": \"\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ScrollView.ScrollView, {\n flex: 1,\n minWidth: 0,\n contentContainerStyle: {\n minWidth: \"100%\"\n },\n horizontal: true,\n showsHorizontalScrollIndicator: false,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n flex: 1,\n minWidth: 0,\n ...knobProps.panelPadding,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_HoldSelect.HoldSelect, {\n onDoubleTap,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Code.Code, {\n backgroundColor: \"transparent\",\n borderWidth: 0,\n padding: 0,\n size: codeSize,\n \"data-register\": \"code\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_HighlightedCode.HighlightedCode, {\n tokens,\n highlightLines,\n showLineNumbers,\n fontSize: codeSize,\n children: codeText\n })\n })\n })\n })\n }),\n showCopy && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, {\n flexShrink: 0,\n alignSelf: lines > 1 ? \"flex-start\" : \"center\",\n zIndex: import_forms.zIndex.localTop,\n \"data-code-copy\": \"\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_forms.Input.Button, {\n glyphRing: true,\n size: codeSize,\n color: copyInk,\n type: \"button\",\n \"aria-label\": \"Copy to clipboard\",\n \"data-press-min\": import_theme.MIN_PRESS_TARGET,\n hitSlop: capSquare < import_theme.MIN_PRESS_TARGET ? (0, import_theme.pressTargetHitSlop)(capSquare) : void 0,\n onPress: activateCopy,\n onKeyDown: function onKeyDown(e) {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n e.stopPropagation();\n activateCopy();\n }\n },\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_forms.Input.Icon, {\n \"aria-hidden\": true,\n color: copyInk,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.CopyIcon, {\n weight: \"bold\"\n })\n })\n })\n })\n ]\n })\n ]\n })\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NotifyHost.NotifyRegion, {\n scope: \"field\",\n region,\n size: \"3\"\n })\n ]\n });\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,iBAAiB,UACnB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,yBAAyB,QAAQ,0BAA0B;AAC/D,IAAI,eAAe,QAAQ,uBAAuB;AAClD,IAAI,eAAe,QAAQ,0BAA0B;AACrD,IAAI,gBAAgB,QAAQ,OAAO;AACnC,IAAI,cAAc,QAAQ,6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AAa;OACf;MACF;MACA,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,aAAa,MAAM,MAAM;OAC7E,eAAe;OACf,OAAO;OACP,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,aAAa,UAAU,EAC3E,QAAQ,OACV,CAAC;MACH,CAAC;KACH,CAAC;IACH,CAAC,CACH;GACF,CAAC,CACH;EACF,CAAC,EACH,CAAC,GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,kBAAkB,cAAc;GAC1E,OAAO;GACP;GACA,MAAM;EACR,CAAC,CACH;CACF,CAAC;AACH"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/code/CodeBlock/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar CodeBlock_exports = {};\n__export(CodeBlock_exports, {\n CodeBlock: () => CodeBlock\n});\nmodule.exports = __toCommonJS(CodeBlock_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_linear_gradient = require(\"@tamagui/linear-gradient\");\nvar import_react = require(\"@phosphor-icons/react\");\nvar import_theme = require(\"@multiplatform.one/theme\");\nvar import_react2 = require(\"react\");\nvar import_i18n = require(\"../../shared/i18n\");\nvar import_ScrollView = require(\"../../ScrollView\");\nvar import_forms = require(\"@multiplatform.one/forms\");\nvar import_tamagui = require(\"tamagui\");\nvar import_AnimateHeight = require(\"../../AnimateHeight\");\nvar import_ErrorBoundary = require(\"../../ErrorBoundary\");\nvar import_NotifyHost = require(\"../../feedback/NotifyHost\");\nvar import_copy = require(\"../../feedback/copy\");\nvar import_Code = require(\"../Code\");\nvar import_HighlightedCode = require(\"../HighlightedCode\");\nvar import_HoldSelect = require(\"../HoldSelect\");\nvar import_Highlighter = require(\"../Highlighter\");\nvar import_Pre = require(\"../Pre\");\nvar import_componentColors = require(\"../../componentColors\");\nvar VISIBLE_LINES = 22;\nvar lineHeightBySize = {\n $2: 16,\n $3: 16,\n $4: 18,\n $5: 20,\n $6: 22\n};\nfunction clampHeightForSize(sizeToken) {\n var _lineHeightBySize_sizeToken;\n return VISIBLE_LINES * ((_lineHeightBySize_sizeToken = lineHeightBySize[sizeToken]) !== null && _lineHeightBySize_sizeToken !== void 0 ? _lineHeightBySize_sizeToken : 18);\n}\nfunction CodeBlock(param) {\n var { children = \"\", language = \"tsx\", theme, showLineNumbers: propShowLineNumbers, highlightLines = [], copyable, size, onDoubleTap } = param;\n var _ref;\n var { region, copy } = (0, import_copy.useCopyFeedback)();\n var { t } = (0, import_i18n.useTranslation)();\n var { knobProps } = (0, import_theme.useResolvedKnobs)();\n var copyInk = (0, import_theme.useGlyphTintOnSurface)().glyph;\n var touch = (0, import_theme.useTouchSurface)();\n var codeSize = size !== null && size !== void 0 ? size : knobProps.sizeToken;\n var codeText = children.trim();\n var tokens = (0, import_Highlighter.useShikiTokens)(codeText, language, theme);\n var clampHeight = clampHeightForSize(String(codeSize));\n var fadeHeight = Math.round(clampHeight / 2);\n var lines = (_ref = tokens === null || tokens === void 0 ? void 0 : tokens.length) !== null && _ref !== void 0 ? _ref : codeText.split(\"\\n\").length;\n var showLineNumbers = propShowLineNumbers !== null && propShowLineNumbers !== void 0 ? propShowLineNumbers : lines > 10;\n var isLong = lines > VISIBLE_LINES;\n var [isCutoff, setIsCutoff] = (0, import_react2.useState)(isLong);\n var [expandTarget, setExpandTarget] = (0, import_react2.useState)(null);\n var clampRef = (0, import_react2.useRef)(null);\n var revealTimerRef = (0, import_react2.useRef)(null);\n (0, import_react2.useEffect)(function() {\n return function() {\n if (revealTimerRef.current != null) clearTimeout(revealTimerRef.current);\n };\n }, []);\n var transition = knobProps.motion.reveal.transition;\n var revealAll = function revealAll2() {\n var node = clampRef.current;\n var fullHeight = typeof (node === null || node === void 0 ? void 0 : node.scrollHeight) === \"number\" ? node.scrollHeight : null;\n if (!transition || fullHeight == null || fullHeight <= clampHeight) {\n setIsCutoff(false);\n return;\n }\n setExpandTarget(fullHeight);\n revealTimerRef.current = setTimeout(function() {\n revealTimerRef.current = null;\n setExpandTarget(null);\n setIsCutoff(false);\n }, (0, import_AnimateHeight.settleMs)(transition));\n };\n var clamped = isCutoff || expandTarget != null;\n var showCopy = Boolean(codeText) && (copyable !== null && copyable !== void 0 ? copyable : true);\n var activateCopy = function activateCopy2() {\n void copy(codeText);\n };\n var capSquare = (0, import_theme.sizeRecipeForToken)(String(codeSize), {\n touch\n }).height;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n position: \"relative\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ErrorBoundary.ErrorBoundary, {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n ref: clampRef,\n position: \"relative\",\n ...(0, import_theme.transitionProps)(knobProps.motion.reveal, [\n \"maxHeight\"\n ]),\n ...clamped && {\n maxHeight: expandTarget !== null && expandTarget !== void 0 ? expandTarget : clampHeight,\n overflow: \"hidden\",\n ...knobProps.borderRadius\n },\n children: [\n isCutoff && expandTarget == null && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_linear_gradient.LinearGradient, {\n position: \"absolute\",\n bottom: 0,\n left: 0,\n right: 0,\n height: fadeHeight,\n colors: [\n \"color-0\",\n \"background\"\n ],\n zIndex: import_forms.zIndex.localTop,\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Spacer, {\n flex: 1\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_forms.Button, {\n onPress: revealAll,\n alignSelf: \"center\",\n children: t(\"Show more\")\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Spacer, {\n size: \"4\"\n })\n ]\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Pre.Pre, {\n ...knobProps.borderRadius,\n padding: 0,\n marginBottom: 0,\n flexDirection: \"row\",\n backgroundColor: import_componentColors.componentColors.code.background,\n borderWidth: 0,\n \"data-code-surface\": \"\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ScrollView.ScrollView, {\n flex: 1,\n minWidth: 0,\n contentContainerStyle: {\n minWidth: \"100%\"\n },\n horizontal: true,\n showsHorizontalScrollIndicator: false,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n flex: 1,\n minWidth: 0,\n ...knobProps.panelPadding,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_HoldSelect.HoldSelect, {\n onDoubleTap,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Code.Code, {\n backgroundColor: \"transparent\",\n borderWidth: 0,\n padding: 0,\n size: codeSize,\n \"data-register\": \"code\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_HighlightedCode.HighlightedCode, {\n tokens,\n highlightLines,\n showLineNumbers,\n fontSize: codeSize,\n children: codeText\n })\n })\n })\n })\n }),\n showCopy && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, {\n flexShrink: 0,\n alignSelf: lines > 1 ? \"flex-start\" : \"center\",\n zIndex: import_forms.zIndex.localTop,\n \"data-code-copy\": \"\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_forms.Input.Button, {\n glyphRing: true,\n size: codeSize,\n color: copyInk,\n type: \"button\",\n \"aria-label\": \"Copy to clipboard\",\n \"data-press-min\": import_theme.MIN_PRESS_TARGET,\n hitSlop: capSquare < import_theme.MIN_PRESS_TARGET ? (0, import_theme.pressTargetHitSlop)(capSquare) : void 0,\n onPress: activateCopy,\n onKeyDown: function onKeyDown(e) {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n e.stopPropagation();\n activateCopy();\n }\n },\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_forms.Input.Icon, {\n \"aria-hidden\": true,\n color: copyInk,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.CopyIcon, {\n weight: \"bold\"\n })\n })\n })\n })\n ]\n })\n ]\n })\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NotifyHost.NotifyRegion, {\n scope: \"field\",\n region,\n size: \"3\"\n })\n ]\n });\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,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,aAAa,mBAAkB,CAAE,SAAS,IAAI,KAAK;MAC5G,SAAS;MACT,WAAW,SAAS,UAAU,GAAG;OAC/B,IAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,KAAK;QACtC,EAAE,eAAe;QACjB,EAAE,gBAAgB;QAClB,aAAa;OACf;MACF;MACA,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,aAAa,MAAM,MAAM;OAC7E,eAAe;OACf,OAAO;OACP,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,aAAa,UAAU,EAC3E,QAAQ,OACV,CAAC;MACH,CAAC;KACH,CAAC;IACH,CAAC,CACH;GACF,CAAC,CACH;EACF,CAAC,EACH,CAAC,GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,kBAAkB,cAAc;GAC1E,OAAO;GACP;GACA,MAAM;EACR,CAAC,CACH;CACF,CAAC;AACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OVERLAY_ANCHOR_GAP, radiusClassProps, transitionProps, useResolvedKnobs
|
|
1
|
+
import { OVERLAY_ANCHOR_GAP, radiusClassProps, transitionProps, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
2
2
|
import { componentColors } from "../../componentColors.mjs";
|
|
3
3
|
import { config, createWithLayout } from "@multiplatform.one/platform";
|
|
4
4
|
import { Circle, Popover, XStack, YStack } from "tamagui";
|
|
@@ -6,17 +6,10 @@ import { PopoverContent } from "../../surfaces.mjs";
|
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
const pipShape = radiusClassProps("R-PILL", "debug pip");
|
|
9
|
-
function DebugLayout({ children, debugView, debugViewProps, size, debug
|
|
9
|
+
function DebugLayout({ children, debugView, debugViewProps, size, debug }) {
|
|
10
10
|
const { knobProps } = useResolvedKnobs({ component: "DebugLayout" });
|
|
11
|
-
warnDeprecatedProp({
|
|
12
|
-
component: "DebugLayout",
|
|
13
|
-
prop: "enabled",
|
|
14
|
-
use: "debug",
|
|
15
|
-
removal: "10.0.0",
|
|
16
|
-
passed: enabled !== void 0
|
|
17
|
-
});
|
|
18
11
|
const DebugView = debugView;
|
|
19
|
-
const show = debug ??
|
|
12
|
+
const show = debug ?? config.get("DEBUG") === "1";
|
|
20
13
|
const pipSize = size ?? knobProps.nestedControl.px;
|
|
21
14
|
if (!show) return /* @__PURE__ */ jsx(Fragment, { children });
|
|
22
15
|
return /* @__PURE__ */ jsxs(YStack, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["jsx/layouts/Debug/index.js"],"sourcesContent":["import {\n transitionProps,\n OVERLAY_ANCHOR_GAP,\n radiusClassProps,\n useResolvedKnobs
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["jsx/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"}
|
|
@@ -36,18 +36,10 @@ var import_tamagui = require("tamagui");
|
|
|
36
36
|
var import_surfaces = require("../../surfaces.native.js");
|
|
37
37
|
var pipShape = (0, import_theme.radiusClassProps)("R-PILL", "debug pip");
|
|
38
38
|
function DebugLayout(param) {
|
|
39
|
-
var { children, debugView, debugViewProps, size, debug
|
|
40
|
-
var _ref;
|
|
39
|
+
var { children, debugView, debugViewProps, size, debug } = param;
|
|
41
40
|
var { knobProps } = (0, import_theme.useResolvedKnobs)({ component: "DebugLayout" });
|
|
42
|
-
(0, import_theme.warnDeprecatedProp)({
|
|
43
|
-
component: "DebugLayout",
|
|
44
|
-
prop: "enabled",
|
|
45
|
-
use: "debug",
|
|
46
|
-
removal: "10.0.0",
|
|
47
|
-
passed: enabled !== void 0
|
|
48
|
-
});
|
|
49
41
|
var DebugView = debugView;
|
|
50
|
-
var show =
|
|
42
|
+
var show = debug !== null && debug !== void 0 ? debug : import_platform2.config.get("DEBUG") === "1";
|
|
51
43
|
var pipSize = size !== null && size !== void 0 ? size : knobProps.nestedControl.px;
|
|
52
44
|
if (!show) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
53
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
@@ -36,18 +36,10 @@ var import_tamagui = require("tamagui");
|
|
|
36
36
|
var import_surfaces = require("../../surfaces.native.js");
|
|
37
37
|
var pipShape = (0, import_theme.radiusClassProps)("R-PILL", "debug pip");
|
|
38
38
|
function DebugLayout(param) {
|
|
39
|
-
var { children, debugView, debugViewProps, size, debug
|
|
40
|
-
var _ref;
|
|
39
|
+
var { children, debugView, debugViewProps, size, debug } = param;
|
|
41
40
|
var { knobProps } = (0, import_theme.useResolvedKnobs)({ component: "DebugLayout" });
|
|
42
|
-
(0, import_theme.warnDeprecatedProp)({
|
|
43
|
-
component: "DebugLayout",
|
|
44
|
-
prop: "enabled",
|
|
45
|
-
use: "debug",
|
|
46
|
-
removal: "10.0.0",
|
|
47
|
-
passed: enabled !== void 0
|
|
48
|
-
});
|
|
49
41
|
var DebugView = debugView;
|
|
50
|
-
var show =
|
|
42
|
+
var show = debug !== null && debug !== void 0 ? debug : import_platform2.config.get("DEBUG") === "1";
|
|
51
43
|
var pipSize = size !== null && size !== void 0 ? size : knobProps.nestedControl.px;
|
|
52
44
|
if (!show) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
53
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/layouts/Debug/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Debug_exports = {};\n__export(Debug_exports, {\n DebugLayout: () => DebugLayout,\n createWithDebugLayout: () => createWithDebugLayout,\n withDebugLayout: () => withDebugLayout\n});\nmodule.exports = __toCommonJS(Debug_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_theme = require(\"@multiplatform.one/theme\");\nvar import_componentColors = require(\"../../componentColors\");\nvar import_platform = require(\"@multiplatform.one/platform\");\nvar import_platform2 = require(\"@multiplatform.one/platform\");\nvar import_tamagui = require(\"tamagui\");\nvar import_surfaces = require(\"../../surfaces\");\nvar pipShape = (0, import_theme.radiusClassProps)(\"R-PILL\", \"debug pip\");\nfunction DebugLayout(param) {\n var { children, debugView, debugViewProps, size, debug
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/layouts/Debug/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Debug_exports = {};\n__export(Debug_exports, {\n DebugLayout: () => DebugLayout,\n createWithDebugLayout: () => createWithDebugLayout,\n withDebugLayout: () => withDebugLayout\n});\nmodule.exports = __toCommonJS(Debug_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_theme = require(\"@multiplatform.one/theme\");\nvar import_componentColors = require(\"../../componentColors\");\nvar import_platform = require(\"@multiplatform.one/platform\");\nvar import_platform2 = require(\"@multiplatform.one/platform\");\nvar import_tamagui = require(\"tamagui\");\nvar import_surfaces = require(\"../../surfaces\");\nvar pipShape = (0, import_theme.radiusClassProps)(\"R-PILL\", \"debug pip\");\nfunction DebugLayout(param) {\n var { children, debugView, debugViewProps, size, debug } = param;\n var { knobProps } = (0, import_theme.useResolvedKnobs)({\n component: \"DebugLayout\"\n });\n var DebugView = debugView;\n var show = debug !== null && debug !== void 0 ? debug : import_platform2.config.get(\"DEBUG\") === \"1\";\n var pipSize = size !== null && size !== void 0 ? size : knobProps.nestedControl.px;\n if (!show) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {\n children\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.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__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n position: \"absolute\",\n top: 0,\n insetInlineEnd: 0,\n pointerEvents: \"box-none\",\n zIndex: 1,\n ...knobProps.panelPadding,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, {\n \"data-testid\": \"debug-container\",\n pointerEvents: \"auto\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Popover, {\n placement: \"bottom\",\n offset: import_theme.OVERLAY_ANCHOR_GAP,\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Popover.Trigger, {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Circle, {\n ...pipShape,\n cursor: \"pointer\",\n backgroundColor: import_componentColors.componentColors.debug,\n width: pipSize,\n height: pipSize,\n hitSlop: knobProps.nestedControl.hitSlop,\n \"data-testid\": \"debug-circle\",\n ...(0, import_theme.transitionProps)(knobProps.motion.control)\n })\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_surfaces.PopoverContent, {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n ...knobProps.panelPadding,\n ...knobProps.gap,\n ...knobProps.body,\n children: DebugView ? /* @__PURE__ */ (0, import_jsx_runtime.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 (0, import_platform.createWithLayout)(DebugLayout, extraLayouts, debugLayoutProps);\n}\nvar withDebugLayout = createWithDebugLayout();\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,O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,iBAAgB,CAAE,aAAa,cAAc,gBAAgB;AAC1F;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":["jsx/layouts/KeyboardAvoidingWrapper/index.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["jsx/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"}
|
|
@@ -25,20 +25,12 @@ __export(index_native_exports, { KeyboardAvoidingWrapper: () => KeyboardAvoiding
|
|
|
25
25
|
module.exports = __toCommonJS(index_native_exports);
|
|
26
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
27
|
var import_forms = require("@multiplatform.one/forms");
|
|
28
|
-
var import_theme = require("@multiplatform.one/theme");
|
|
29
28
|
var import_react_native = require("react-native");
|
|
30
29
|
var import_tamagui = require("tamagui");
|
|
31
30
|
var import_behavior = require("./behavior.native.js");
|
|
32
31
|
function KeyboardAvoidingWrapper(param) {
|
|
33
|
-
var { children, behavior, keyboardVerticalOffset = 0, disabled,
|
|
34
|
-
|
|
35
|
-
component: "KeyboardAvoidingWrapper",
|
|
36
|
-
prop: "enabled",
|
|
37
|
-
use: "disabled",
|
|
38
|
-
removal: "10.0.0",
|
|
39
|
-
passed: enabled !== void 0
|
|
40
|
-
});
|
|
41
|
-
var off = disabled !== null && disabled !== void 0 ? disabled : enabled === false;
|
|
32
|
+
var { children, behavior, keyboardVerticalOffset = 0, disabled, ...stackProps } = param;
|
|
33
|
+
var off = disabled !== null && disabled !== void 0 ? disabled : false;
|
|
42
34
|
var effectiveBehavior = (0, import_behavior.resolveKeyboardAvoidingBehavior)(import_react_native.Platform.OS, behavior);
|
|
43
35
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.KeyboardAvoidingView, {
|
|
44
36
|
style: styles.container,
|
|
@@ -25,20 +25,12 @@ __export(index_native_exports, { KeyboardAvoidingWrapper: () => KeyboardAvoiding
|
|
|
25
25
|
module.exports = __toCommonJS(index_native_exports);
|
|
26
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
27
|
var import_forms = require("@multiplatform.one/forms");
|
|
28
|
-
var import_theme = require("@multiplatform.one/theme");
|
|
29
28
|
var import_react_native = require("react-native");
|
|
30
29
|
var import_tamagui = require("tamagui");
|
|
31
30
|
var import_behavior = require("./behavior.native.js");
|
|
32
31
|
function KeyboardAvoidingWrapper(param) {
|
|
33
|
-
var { children, behavior, keyboardVerticalOffset = 0, disabled,
|
|
34
|
-
|
|
35
|
-
component: "KeyboardAvoidingWrapper",
|
|
36
|
-
prop: "enabled",
|
|
37
|
-
use: "disabled",
|
|
38
|
-
removal: "10.0.0",
|
|
39
|
-
passed: enabled !== void 0
|
|
40
|
-
});
|
|
41
|
-
var off = disabled !== null && disabled !== void 0 ? disabled : enabled === false;
|
|
32
|
+
var { children, behavior, keyboardVerticalOffset = 0, disabled, ...stackProps } = param;
|
|
33
|
+
var off = disabled !== null && disabled !== void 0 ? disabled : false;
|
|
42
34
|
var effectiveBehavior = (0, import_behavior.resolveKeyboardAvoidingBehavior)(import_react_native.Platform.OS, behavior);
|
|
43
35
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.KeyboardAvoidingView, {
|
|
44
36
|
style: styles.container,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/layouts/KeyboardAvoidingWrapper/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_native_exports = {};\n__export(index_native_exports, {\n KeyboardAvoidingWrapper: () => KeyboardAvoidingWrapper\n});\nmodule.exports = __toCommonJS(index_native_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_forms = require(\"@multiplatform.one/forms\");\nvar
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/layouts/KeyboardAvoidingWrapper/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_native_exports = {};\n__export(index_native_exports, {\n KeyboardAvoidingWrapper: () => KeyboardAvoidingWrapper\n});\nmodule.exports = __toCommonJS(index_native_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_forms = require(\"@multiplatform.one/forms\");\nvar import_react_native = require(\"react-native\");\nvar import_tamagui = require(\"tamagui\");\nvar import_behavior = require(\"./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 = (0, import_behavior.resolveKeyboardAvoidingBehavior)(import_react_native.Platform.OS, behavior);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.KeyboardAvoidingView, {\n style: styles.container,\n behavior: effectiveBehavior,\n keyboardVerticalOffset,\n enabled: !off,\n onStartShouldSetResponder: function onStartShouldSetResponder() {\n return import_react_native.Keyboard.isVisible();\n },\n onResponderRelease: function onResponderRelease() {\n return import_react_native.Keyboard.dismiss();\n },\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_forms.KeyboardChainScope, {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.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 = import_react_native.StyleSheet.create({\n container: {\n flex: 1\n }\n});\n//# sourceMappingURL=index.native.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,uBAAuB,CAAC;AAC5B,SAAS,sBAAsB,EAC7B,+BAA+B,wBACjC,CAAC;AACD,OAAO,UAAU,aAAa,oBAAoB;AAClD,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,eAAe,QAAQ,0BAA0B;AACrD,IAAI,sBAAsB,QAAQ,cAAc;AAChD,IAAI,iBAAiB,QAAQ,SAAS;AACtC,IAAI,kBAAkB,QAAQ,sBAAY;AAC1C,SAAS,wBAAwB,OAAO;CACtC,IAAI,EAAE,UAAU,UAAU,yBAAyB,GAAG,UAAU,GAAG,eAAe;CAClF,IAAI,MAAM,aAAa,QAAQ,aAAa,KAAK,IAAI,WAAW;CAChE,IAAI,qBAAqB,GAAG,gBAAgB,gCAA+B,CAAE,oBAAoB,SAAS,IAAI,QAAQ;CACtH,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,oBAAoB,sBAAsB;EAC3F,OAAO,OAAO;EACd,UAAU;EACV;EACA,SAAS,CAAC;EACV,2BAA2B,SAAS,4BAA4B;GAC9D,OAAO,oBAAoB,SAAS,UAAU;EAChD;EACA,oBAAoB,SAAS,qBAAqB;GAChD,OAAO,oBAAoB,SAAS,QAAQ;EAC9C;EACA,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,aAAa,oBAAoB,EACrF,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;GAC3E,eAAe;GACf,0BAA0B;GAC1B,iBAAiB,OAAO,GAAG;GAC3B,MAAM;GACN,GAAG;GACH;EACF,CAAC,EACH,CAAC;CACH,CAAC;AACH;AACA,IAAI,SAAS,oBAAoB,WAAW,OAAO,EACjD,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":["jsx/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;CAC7B,CAAC;CACD,MAAM,SAAS,gBAAgB;CAC/B,MAAM,OAAO,SAAS;CACtB,OAAO,SAAyB,oBAAI,cAAc;EAAE;EAAQ,OAAO;EAAM,GAAG;CAAM,CAAC,IAAoB,oBAAI,WAAW;EAAE,OAAO;EAAM,GAAG;CAAM,CAAC;AACjJ;AACA,SAAS,aAAa,EACpB,QACA,UACA,SAAS,MACT,WAA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,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":["jsx/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,MAAM,MAAM,CAAC,IAAI;AACtD;AACA,MAAM,oBAAoB,kBAAkB;AAC5C,MAAM,qBAAqB,kBAAkB;AAC7C,SAAS,OAAO,EAAE,OAAO,GAAG,SAAS;CACnC,MAAM,SAAS,gBAAgB;CAC/B,OAAO,SAAyB,oBAAI,cAAc;EAAE;EAAQ;EAAO,GAAG;CAAM,CAAC,IAAoB,oBAAI,WAAW;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A,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"}
|
|
@@ -72,22 +72,14 @@ function negateSpaceToken(token) {
|
|
|
72
72
|
var CONTENT_MAX_WIDTH = import_theme.layoutBreakpoints.xl;
|
|
73
73
|
var READABLE_MAX_WIDTH = import_theme.layoutBreakpoints.expanded;
|
|
74
74
|
function Screen(param) {
|
|
75
|
-
var { flush,
|
|
76
|
-
(0, import_theme.warnDeprecatedProp)({
|
|
77
|
-
component: "Screen",
|
|
78
|
-
prop: "noPadding",
|
|
79
|
-
use: "flush",
|
|
80
|
-
removal: "10.0.0",
|
|
81
|
-
passed: noPadding !== void 0
|
|
82
|
-
});
|
|
75
|
+
var { flush, ...props } = param;
|
|
83
76
|
var parent = (0, import_theme.useParentScreen)();
|
|
84
|
-
var edge = flush !== null && flush !== void 0 ? flush : noPadding;
|
|
85
77
|
return parent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NestedScreen, {
|
|
86
78
|
parent,
|
|
87
|
-
flush
|
|
79
|
+
flush,
|
|
88
80
|
...props
|
|
89
81
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageShell, {
|
|
90
|
-
flush
|
|
82
|
+
flush,
|
|
91
83
|
...props
|
|
92
84
|
});
|
|
93
85
|
}
|