@multiplatform.one/theme 10.10.3 → 10.11.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/theme/Text.cjs +1 -1
- package/dist/cjs/theme/Text.native.cjs +1 -1
- package/dist/cjs/theme/Text.native.js +1 -1
- package/dist/cjs/theme/Text.native.js.map +1 -1
- package/dist/esm/theme/Text.mjs +2 -2
- package/dist/esm/theme/Text.mjs.map +1 -1
- package/dist/esm/theme/Text.native.js +2 -2
- package/dist/esm/theme/Text.native.js.map +1 -1
- package/package.json +5 -5
- package/src/theme/Text.tsx +3 -4
- package/src/theme/scale/scaleTokenKeys.spec.ts +10 -0
- package/src/theme/textLeading.spec.ts +34 -0
- package/types/theme/Text.d.ts.map +1 -1
package/dist/cjs/theme/Text.cjs
CHANGED
|
@@ -54,7 +54,7 @@ function leadingFor(fontSize) {
|
|
|
54
54
|
return import_scaleInputs.FONT_KEYS.includes(key) ? key : void 0;
|
|
55
55
|
}
|
|
56
56
|
function consumerLeading(lineHeight) {
|
|
57
|
-
return
|
|
57
|
+
return typeof lineHeight === "number" && lineHeight > 4 ? { lineHeight: `${lineHeight}px` } : {};
|
|
58
58
|
}
|
|
59
59
|
function useBodyVoice(fontWeight, { variant, tabular } = {}) {
|
|
60
60
|
const { knobProps } = (0, import_useResolvedKnobs.useResolvedKnobs)();
|
|
@@ -56,7 +56,7 @@ function leadingFor(fontSize) {
|
|
|
56
56
|
return import_scaleInputs.FONT_KEYS.includes(key) ? key : void 0;
|
|
57
57
|
}
|
|
58
58
|
function consumerLeading(lineHeight) {
|
|
59
|
-
return
|
|
59
|
+
return typeof lineHeight === "number" && lineHeight > 4 ? { lineHeight: `${lineHeight}px` } : {};
|
|
60
60
|
}
|
|
61
61
|
function useBodyVoice(fontWeight) {
|
|
62
62
|
var { variant, tabular } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -56,7 +56,7 @@ function leadingFor(fontSize) {
|
|
|
56
56
|
return import_scaleInputs.FONT_KEYS.includes(key) ? key : void 0;
|
|
57
57
|
}
|
|
58
58
|
function consumerLeading(lineHeight) {
|
|
59
|
-
return
|
|
59
|
+
return typeof lineHeight === "number" && lineHeight > 4 ? { lineHeight: `${lineHeight}px` } : {};
|
|
60
60
|
}
|
|
61
61
|
function useBodyVoice(fontWeight) {
|
|
62
62
|
var { variant, tabular } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.native.js","names":[],"sources":["cjs/theme/Text.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 Text_exports = {};\n__export(Text_exports, {\n Anchor: () => Anchor,\n Paragraph: () => Paragraph,\n SizableText: () => SizableText,\n Text: () => Text\n});\nmodule.exports = __toCommonJS(Text_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_readableColor = require(\"./readableColor\");\nvar import_scaleInputs = require(\"./scale/scaleInputs\");\nvar import_useResolvedKnobs = require(\"./useResolvedKnobs\");\nvar import_tamagui = require(\"tamagui\");\nfunction bodyStop(body, props) {\n if (props.size !== void 0) {\n var { lineHeight: _lineHeight, letterSpacing: _letterSpacing, ...voice } = body;\n return {\n ...voice,\n fontSize: void 0,\n lineHeight: void 0,\n letterSpacing: void 0\n };\n }\n return {\n ...body,\n fontSize: \"4\",\n lineHeight: leadingFor(props.fontSize)\n };\n}\nfunction leadingFor(fontSize) {\n if (fontSize === void 0) return \"4\";\n if (typeof fontSize !== \"string\") return void 0;\n var key = fontSize.startsWith(\"$\") ? fontSize.slice(1) : fontSize;\n return import_scaleInputs.FONT_KEYS.includes(key) ? key : void 0;\n}\nfunction consumerLeading(lineHeight) {\n return
|
|
1
|
+
{"version":3,"file":"Text.native.js","names":[],"sources":["cjs/theme/Text.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 Text_exports = {};\n__export(Text_exports, {\n Anchor: () => Anchor,\n Paragraph: () => Paragraph,\n SizableText: () => SizableText,\n Text: () => Text\n});\nmodule.exports = __toCommonJS(Text_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_readableColor = require(\"./readableColor\");\nvar import_scaleInputs = require(\"./scale/scaleInputs\");\nvar import_useResolvedKnobs = require(\"./useResolvedKnobs\");\nvar import_tamagui = require(\"tamagui\");\nfunction bodyStop(body, props) {\n if (props.size !== void 0) {\n var { lineHeight: _lineHeight, letterSpacing: _letterSpacing, ...voice } = body;\n return {\n ...voice,\n fontSize: void 0,\n lineHeight: void 0,\n letterSpacing: void 0\n };\n }\n return {\n ...body,\n fontSize: \"4\",\n lineHeight: leadingFor(props.fontSize)\n };\n}\nfunction leadingFor(fontSize) {\n if (fontSize === void 0) return \"4\";\n if (typeof fontSize !== \"string\") return void 0;\n var key = fontSize.startsWith(\"$\") ? fontSize.slice(1) : fontSize;\n return import_scaleInputs.FONT_KEYS.includes(key) ? key : void 0;\n}\nfunction consumerLeading(lineHeight) {\n return typeof lineHeight === \"number\" && lineHeight > 4 ? {\n lineHeight: `${lineHeight}px`\n } : {};\n}\nfunction useBodyVoice(fontWeight) {\n var { variant, tabular } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var { knobProps } = (0, import_useResolvedKnobs.useResolvedKnobs)();\n var { fontWeight: knobWeight, ...body } = knobProps.body;\n return {\n body,\n variantProps: variant === \"mutedMono\" ? knobProps.typography.mutedMono : void 0,\n digitProps: tabular ? knobProps.typography.tabular : void 0,\n color: knobProps.textAccentColor,\n weight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : knobWeight\n };\n}\nfunction Text(param) {\n var { fontWeight, variant, tabular, style, ...props } = param;\n var { body, color, weight, variantProps, digitProps } = useBodyVoice(fontWeight, {\n variant,\n tabular: tabular && props.fontVariant === void 0\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Text, {\n ...bodyStop(body, props),\n color,\n ...variantProps,\n ...digitProps,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight,\n style: (digitProps === null || digitProps === void 0 ? void 0 : digitProps.style) ? [\n digitProps.style,\n ...[\n style\n ].flat()\n ] : style\n });\n}\nfunction SizableText(param) {\n var { fontWeight, ...props } = param;\n var { body, color, weight } = useBodyVoice(fontWeight);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, {\n ...bodyStop(body, props),\n color,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight\n });\n}\nfunction Paragraph(param) {\n var { fontWeight, variant, tabular, style, ...props } = param;\n var { body, color, weight, variantProps, digitProps } = useBodyVoice(fontWeight, {\n variant,\n tabular: tabular && props.fontVariant === void 0\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {\n ...bodyStop(body, props),\n color,\n ...variantProps,\n ...digitProps,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight,\n style: (digitProps === null || digitProps === void 0 ? void 0 : digitProps.style) ? [\n digitProps.style,\n ...[\n style\n ].flat()\n ] : style\n });\n}\nvar linkInkByIntent = {\n error: \"$red-11\"\n};\nfunction Anchor(param) {\n var { fontWeight, inline, intent, ...props } = param;\n var { body, weight } = useBodyVoice(fontWeight);\n var accentInk = (0, import_readableColor.useAccentOnSurface)();\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Anchor, {\n // link-chrome-escape: the house Anchor is where link chrome is drawn (LC-181).\n ...bodyStop(body, props),\n color: intent ? linkInkByIntent[intent] : accentInk,\n textDecorationLine: inline ? \"underline\" : {\n default: \"none\",\n hover: \"underline\"\n },\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight\n });\n}\n//# sourceMappingURL=Text.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,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AAgB,KAAK;CACjD,CAAC;CACD,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,WAAW;EAC3E,GAAG,SAAS,MAAM,KAAK;EACvB;EACA,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG,gBAAgB,MAAM,UAAU;EACnC,YAAY;EACZ,QAAQ,eAAe,QAAQ,eAAe,KAAK,IAAI,KAAK,IAAI,WAAW,SAAS,CAClF,WAAW,OACX,GAAG,CACD,KACF,CAAC,CAAC,KAAK,CACT,IAAI;CACN,CAAC;AACH;AACA,IAAI,kBAAkB,EACpB,OAAO,UACT;AACA,SAAS,OAAO,OAAO;CACrB,IAAI,EAAE,YAAY,QAAQ,QAAQ,GAAG,UAAU;CAC/C,IAAI,EAAE,MAAM,WAAW,aAAa,UAAU;CAC9C,IAAI,aAAa,GAAG,qBAAqB,mBAAkB,CAAE;CAC7D,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;EAExE,GAAG,SAAS,MAAM,KAAK;EACvB,OAAO,SAAS,gBAAgB,UAAU;EAC1C,oBAAoB,SAAS,cAAc;GACzC,SAAS;GACT,OAAO;EACT;EACA,GAAG;EACH,GAAG,gBAAgB,MAAM,UAAU;EACnC,YAAY;CACd,CAAC;AACH"}
|
package/dist/esm/theme/Text.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAccentOnSurface } from "./readableColor.mjs";
|
|
2
2
|
import { FONT_KEYS } from "./scale/scaleInputs.mjs";
|
|
3
3
|
import { useResolvedKnobs } from "./useResolvedKnobs.mjs";
|
|
4
|
-
import { Anchor as Anchor$1, Paragraph as Paragraph$1, SizableText as SizableText$1, Text as Text$1
|
|
4
|
+
import { Anchor as Anchor$1, Paragraph as Paragraph$1, SizableText as SizableText$1, Text as Text$1 } from "tamagui";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
function bodyStop(body, props) {
|
|
@@ -27,7 +27,7 @@ function leadingFor(fontSize) {
|
|
|
27
27
|
return FONT_KEYS.includes(key) ? key : void 0;
|
|
28
28
|
}
|
|
29
29
|
function consumerLeading(lineHeight) {
|
|
30
|
-
return
|
|
30
|
+
return typeof lineHeight === "number" && lineHeight > 4 ? { lineHeight: `${lineHeight}px` } : {};
|
|
31
31
|
}
|
|
32
32
|
function useBodyVoice(fontWeight, { variant, tabular } = {}) {
|
|
33
33
|
const { knobProps } = useResolvedKnobs();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","names":["RawText","RawSizableText","RawParagraph","RawAnchor"],"sources":["esm/theme/Text.js"],"sourcesContent":["import { useAccentOnSurface } from \"./readableColor\";\nimport { FONT_KEYS } from \"./scale/scaleInputs\";\nimport { useResolvedKnobs } from \"./useResolvedKnobs\";\nimport {\n Anchor as RawAnchor,\n Paragraph as RawParagraph,\n SizableText as RawSizableText,\n Text as RawText
|
|
1
|
+
{"version":3,"file":"Text.js","names":["RawText","RawSizableText","RawParagraph","RawAnchor"],"sources":["esm/theme/Text.js"],"sourcesContent":["import { useAccentOnSurface } from \"./readableColor\";\nimport { FONT_KEYS } from \"./scale/scaleInputs\";\nimport { useResolvedKnobs } from \"./useResolvedKnobs\";\nimport {\n Anchor as RawAnchor,\n Paragraph as RawParagraph,\n SizableText as RawSizableText,\n Text as RawText\n} from \"tamagui\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction bodyStop(body, props) {\n if (props.size !== void 0) {\n const { lineHeight: _lineHeight, letterSpacing: _letterSpacing, ...voice } = body;\n return { ...voice, fontSize: void 0, lineHeight: void 0, letterSpacing: void 0 };\n }\n return { ...body, fontSize: \"4\", lineHeight: leadingFor(props.fontSize) };\n}\nfunction leadingFor(fontSize) {\n if (fontSize === void 0) return \"4\";\n if (typeof fontSize !== \"string\") return void 0;\n const key = fontSize.startsWith(\"$\") ? fontSize.slice(1) : fontSize;\n return FONT_KEYS.includes(key) ? key : void 0;\n}\nfunction consumerLeading(lineHeight) {\n return typeof lineHeight === \"number\" && lineHeight > 4 ? { lineHeight: `${lineHeight}px` } : {};\n}\nfunction useBodyVoice(fontWeight, { variant, tabular } = {}) {\n const { knobProps } = useResolvedKnobs();\n const { fontWeight: knobWeight, ...body } = knobProps.body;\n return {\n body,\n variantProps: variant === \"mutedMono\" ? knobProps.typography.mutedMono : void 0,\n digitProps: tabular ? knobProps.typography.tabular : void 0,\n color: knobProps.textAccentColor,\n weight: fontWeight ?? knobWeight\n };\n}\nfunction Text({ fontWeight, variant, tabular, style, ...props }) {\n const { body, color, weight, variantProps, digitProps } = useBodyVoice(fontWeight, {\n variant,\n tabular: tabular && props.fontVariant === void 0\n });\n return /* @__PURE__ */ jsx(\n RawText,\n {\n ...bodyStop(body, props),\n color,\n ...variantProps,\n ...digitProps,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight,\n style: digitProps?.style ? [digitProps.style, ...[style].flat()] : style\n }\n );\n}\nfunction SizableText({ fontWeight, ...props }) {\n const { body, color, weight } = useBodyVoice(fontWeight);\n return /* @__PURE__ */ jsx(\n RawSizableText,\n {\n ...bodyStop(body, props),\n color,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight\n }\n );\n}\nfunction Paragraph({ fontWeight, variant, tabular, style, ...props }) {\n const { body, color, weight, variantProps, digitProps } = useBodyVoice(fontWeight, {\n variant,\n tabular: tabular && props.fontVariant === void 0\n });\n return /* @__PURE__ */ jsx(\n RawParagraph,\n {\n ...bodyStop(body, props),\n color,\n ...variantProps,\n ...digitProps,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight,\n style: digitProps?.style ? [digitProps.style, ...[style].flat()] : style\n }\n );\n}\nconst linkInkByIntent = { error: \"$red-11\" };\nfunction Anchor({ fontWeight, inline, intent, ...props }) {\n const { body, weight } = useBodyVoice(fontWeight);\n const accentInk = useAccentOnSurface();\n return /* @__PURE__ */ jsx(\n RawAnchor,\n {\n ...bodyStop(body, props),\n color: intent ? linkInkByIntent[intent] : accentInk,\n textDecorationLine: inline ? \"underline\" : { default: \"none\", hover: \"underline\" },\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight\n }\n );\n}\nexport {\n Anchor,\n Paragraph,\n SizableText,\n Text\n};\n//# sourceMappingURL=Text.js.map\n"],"mappings":";;;;;;;AAUA,SAAS,SAAS,MAAM,OAAO;CAC7B,IAAI,MAAM,SAAS,KAAK,GAAG;EACzB,MAAM,EAAE,YAAY,aAAa,eAAe,gBAAgB,GAAG,UAAU;EAC7E,OAAO;GAAE,GAAG;GAAO,UAAU,KAAK;GAAG,YAAY,KAAK;GAAG,eAAe,KAAK;EAAE;CACjF;CACA,OAAO;EAAE,GAAG;EAAM,UAAU;EAAK,YAAY,WAAW,MAAM,QAAQ;CAAE;AAC1E;AACA,SAAS,WAAW,UAAU;CAC5B,IAAI,aAAa,KAAK,GAAG,OAAO;CAChC,IAAI,OAAO,aAAa,UAAU,OAAO,KAAK;CAC9C,MAAM,MAAM,SAAS,WAAW,GAAG,IAAI,SAAS,MAAM,CAAC,IAAI;CAC3D,OAAO,UAAU,SAAS,GAAG,IAAI,MAAM,KAAK;AAC9C;AACA,SAAS,gBAAgB,YAAY;CACnC,OAAO,OAAO,eAAe,YAAY,aAAa,IAAI,EAAE,YAAY,GAAG,WAAW,IAAI,IAAI,CAAC;AACjG;AACA,SAAS,aAAa,YAAY,EAAE,SAAS,YAAY,CAAC,GAAG;CAC3D,MAAM,EAAE,cAAc,iBAAiB;CACvC,MAAM,EAAE,YAAY,YAAY,GAAG,SAAS,UAAU;CACtD,OAAO;EACL;EACA,cAAc,YAAY,cAAc,UAAU,WAAW,YAAY,KAAK;EAC9E,YAAY,UAAU,UAAU,WAAW,UAAU,KAAK;EAC1D,OAAO,UAAU;EACjB,QAAQ,cAAc;CACxB;AACF;AACA,SAAS,KAAK,EAAE,YAAY,SAAS,SAAS,OAAO,GAAG,SAAS;CAC/D,MAAM,EAAE,MAAM,OAAO,QAAQ,cAAc,eAAe,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E,SAAS;GAAQ,OAAO;EAAY;EACjF,GAAG;EACH,GAAG,gBAAgB,MAAM,UAAU;EACnC,YAAY;CACd,CACF;AACF"}
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useAccentOnSurface } from "./readableColor.native.js";
|
|
3
3
|
import { FONT_KEYS } from "./scale/scaleInputs.native.js";
|
|
4
4
|
import { useResolvedKnobs } from "./useResolvedKnobs.native.js";
|
|
5
|
-
import { Anchor as Anchor$1, Paragraph as Paragraph$1, SizableText as SizableText$1, Text as Text$1
|
|
5
|
+
import { Anchor as Anchor$1, Paragraph as Paragraph$1, SizableText as SizableText$1, Text as Text$1 } from "tamagui";
|
|
6
6
|
|
|
7
7
|
function bodyStop(body, props) {
|
|
8
8
|
if (props.size !== void 0) {
|
|
@@ -27,7 +27,7 @@ function leadingFor(fontSize) {
|
|
|
27
27
|
return FONT_KEYS.includes(key) ? key : void 0;
|
|
28
28
|
}
|
|
29
29
|
function consumerLeading(lineHeight) {
|
|
30
|
-
return
|
|
30
|
+
return typeof lineHeight === "number" && lineHeight > 4 ? { lineHeight: `${lineHeight}px` } : {};
|
|
31
31
|
}
|
|
32
32
|
function useBodyVoice(fontWeight) {
|
|
33
33
|
var { variant, tabular } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.native.js","names":["RawText","RawSizableText","RawParagraph","RawAnchor"],"sources":["esm/theme/Text.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useAccentOnSurface } from \"./readableColor\";\nimport { FONT_KEYS } from \"./scale/scaleInputs\";\nimport { useResolvedKnobs } from \"./useResolvedKnobs\";\nimport { Anchor as RawAnchor, Paragraph as RawParagraph, SizableText as RawSizableText, Text as RawText
|
|
1
|
+
{"version":3,"file":"Text.native.js","names":["RawText","RawSizableText","RawParagraph","RawAnchor"],"sources":["esm/theme/Text.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useAccentOnSurface } from \"./readableColor\";\nimport { FONT_KEYS } from \"./scale/scaleInputs\";\nimport { useResolvedKnobs } from \"./useResolvedKnobs\";\nimport { Anchor as RawAnchor, Paragraph as RawParagraph, SizableText as RawSizableText, Text as RawText } from \"tamagui\";\nfunction bodyStop(body, props) {\n if (props.size !== void 0) {\n var { lineHeight: _lineHeight, letterSpacing: _letterSpacing, ...voice } = body;\n return {\n ...voice,\n fontSize: void 0,\n lineHeight: void 0,\n letterSpacing: void 0\n };\n }\n return {\n ...body,\n fontSize: \"4\",\n lineHeight: leadingFor(props.fontSize)\n };\n}\nfunction leadingFor(fontSize) {\n if (fontSize === void 0) return \"4\";\n if (typeof fontSize !== \"string\") return void 0;\n var key = fontSize.startsWith(\"$\") ? fontSize.slice(1) : fontSize;\n return FONT_KEYS.includes(key) ? key : void 0;\n}\nfunction consumerLeading(lineHeight) {\n return typeof lineHeight === \"number\" && lineHeight > 4 ? {\n lineHeight: `${lineHeight}px`\n } : {};\n}\nfunction useBodyVoice(fontWeight) {\n var { variant, tabular } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var { knobProps } = useResolvedKnobs();\n var { fontWeight: knobWeight, ...body } = knobProps.body;\n return {\n body,\n variantProps: variant === \"mutedMono\" ? knobProps.typography.mutedMono : void 0,\n digitProps: tabular ? knobProps.typography.tabular : void 0,\n color: knobProps.textAccentColor,\n weight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : knobWeight\n };\n}\nfunction Text(param) {\n var { fontWeight, variant, tabular, style, ...props } = param;\n var { body, color, weight, variantProps, digitProps } = useBodyVoice(fontWeight, {\n variant,\n tabular: tabular && props.fontVariant === void 0\n });\n return /* @__PURE__ */ _jsx(RawText, {\n ...bodyStop(body, props),\n color,\n ...variantProps,\n ...digitProps,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight,\n style: (digitProps === null || digitProps === void 0 ? void 0 : digitProps.style) ? [\n digitProps.style,\n ...[\n style\n ].flat()\n ] : style\n });\n}\nfunction SizableText(param) {\n var { fontWeight, ...props } = param;\n var { body, color, weight } = useBodyVoice(fontWeight);\n return /* @__PURE__ */ _jsx(RawSizableText, {\n ...bodyStop(body, props),\n color,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight\n });\n}\nfunction Paragraph(param) {\n var { fontWeight, variant, tabular, style, ...props } = param;\n var { body, color, weight, variantProps, digitProps } = useBodyVoice(fontWeight, {\n variant,\n tabular: tabular && props.fontVariant === void 0\n });\n return /* @__PURE__ */ _jsx(RawParagraph, {\n ...bodyStop(body, props),\n color,\n ...variantProps,\n ...digitProps,\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight,\n style: (digitProps === null || digitProps === void 0 ? void 0 : digitProps.style) ? [\n digitProps.style,\n ...[\n style\n ].flat()\n ] : style\n });\n}\nvar linkInkByIntent = {\n error: \"$red-11\"\n};\nfunction Anchor(param) {\n var { fontWeight, inline, intent, ...props } = param;\n var { body, weight } = useBodyVoice(fontWeight);\n var accentInk = useAccentOnSurface();\n return /* @__PURE__ */ _jsx(RawAnchor, {\n // link-chrome-escape: the house Anchor is where link chrome is drawn (LC-181).\n ...bodyStop(body, props),\n color: intent ? linkInkByIntent[intent] : accentInk,\n textDecorationLine: inline ? \"underline\" : {\n default: \"none\",\n hover: \"underline\"\n },\n ...props,\n ...consumerLeading(props.lineHeight),\n fontWeight: weight\n });\n}\nexport {\n Anchor,\n Paragraph,\n SizableText,\n Text\n};\n//# sourceMappingURL=Text.js.map\n"],"mappings":";;;;;;;AAKA,SAAS,SAAS,MAAM,OAAO;CAC7B,IAAI,MAAM,SAAS,KAAK,GAAG;EACzB,IAAI,EAAE,YAAY,aAAa,eAAe,gBAAgB,GAAG,UAAU;EAC3E,OAAO;GACL,GAAG;GACH,UAAU,KAAK;GACf,YAAY,KAAK;GACjB,eAAe,KAAK;EACtB;CACF;CACA,OAAO;EACL,GAAG;EAC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|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.11.0",
|
|
4
4
|
"description": "Tamagui theme system for multiplatform.one",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"multiplatform",
|
|
@@ -163,8 +163,8 @@
|
|
|
163
163
|
"access": "public"
|
|
164
164
|
},
|
|
165
165
|
"dependencies": {
|
|
166
|
-
"@multiplatform.one/platform": "^10.
|
|
167
|
-
"@multiplatform.one/store": "^10.
|
|
166
|
+
"@multiplatform.one/platform": "^10.11.0",
|
|
167
|
+
"@multiplatform.one/store": "^10.11.0",
|
|
168
168
|
"@tamagui/animations-react-native": "3.2.3",
|
|
169
169
|
"@tamagui/colors": "3.2.3",
|
|
170
170
|
"@tamagui/config": "3.2.3",
|
|
@@ -178,8 +178,8 @@
|
|
|
178
178
|
},
|
|
179
179
|
"devDependencies": {
|
|
180
180
|
"@expo/prebuild-config": "58.0.19",
|
|
181
|
-
"@multiplatform.one/config": "10.
|
|
182
|
-
"@multiplatform.one/test-utils": "10.
|
|
181
|
+
"@multiplatform.one/config": "10.11.0",
|
|
182
|
+
"@multiplatform.one/test-utils": "10.11.0",
|
|
183
183
|
"@tamagui/animations-css": "3.2.3",
|
|
184
184
|
"@tamagui/animations-reanimated": "3.2.3",
|
|
185
185
|
"@tamagui/build": "3.2.3",
|
package/src/theme/Text.tsx
CHANGED
|
@@ -66,7 +66,6 @@ import {
|
|
|
66
66
|
type SizableTextProps,
|
|
67
67
|
Text as RawText,
|
|
68
68
|
type TextProps as RawTextProps,
|
|
69
|
-
isWeb,
|
|
70
69
|
} from "tamagui";
|
|
71
70
|
|
|
72
71
|
export type { SizableTextProps };
|
|
@@ -115,11 +114,11 @@ function leadingFor(fontSize: TextProps["fontSize"]): TextProps["lineHeight"] {
|
|
|
115
114
|
* native branch returns it early — so on web a bare number lands as a CSS
|
|
116
115
|
* multiplier and `lineHeight={27}` means 27x, not 27px. Converting is the
|
|
117
116
|
* caller's job by v3's design, which is what its own `resolveSizing` does with
|
|
118
|
-
* `toPx`. On native a number is
|
|
119
|
-
* so
|
|
117
|
+
* `toPx`. On native a number is multiplied by fontSize and a px string kept,
|
|
118
|
+
* so both convert one above 4. Returns nothing to change when there is nothing.
|
|
120
119
|
*/
|
|
121
120
|
function consumerLeading(lineHeight: TextProps["lineHeight"]) {
|
|
122
|
-
return
|
|
121
|
+
return typeof lineHeight === "number" && lineHeight > 4 ? { lineHeight: `${lineHeight}px` } : {};
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
/** The body fragment without its weight, and the weight a voice writes last. */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** LC-311: the design lint's token keys are the scale's, so it never flags a real token or misses a dropped one. */
|
|
2
|
+
import { scaleTokenKeys } from "@multiplatform.one/config/design-lint";
|
|
3
|
+
import { describe, expect, it } from "vitest";
|
|
4
|
+
import { SIZE_KEYS } from "./scaleInputs";
|
|
5
|
+
|
|
6
|
+
describe("the design lint's scale keys (FZ-12784)", () => {
|
|
7
|
+
it("are the theme's SIZE_KEYS", () => {
|
|
8
|
+
expect(scaleTokenKeys).toEqual([...SIZE_KEYS]);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FZ-12784: on native, Tamagui 3 multiplies a numeric lineHeight by fontSize
|
|
3
|
+
* and keeps an "Npx" string absolute. Drover's `lineHeight={17}` at 13pt drew
|
|
4
|
+
* 221pt lines. MPO's text hands a point leading over as "Npx" on both
|
|
5
|
+
* platforms, which is only right while Tamagui keeps that contract.
|
|
6
|
+
*/
|
|
7
|
+
import { createRequire } from "node:module";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import { pathToFileURL } from "node:url";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
const tamaguiWeb = path.dirname(createRequire(import.meta.url).resolve("@tamagui/web"));
|
|
13
|
+
const { resolveTextMetrics } = (await import(
|
|
14
|
+
pathToFileURL(path.join(tamaguiWeb, "../esm/helpers/nativeTextMetrics.native.js")).href
|
|
15
|
+
)) as {
|
|
16
|
+
resolveTextMetrics: (style: Record<string, unknown>, lineHeight: unknown) => unknown;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
function nativeLeading(fontSize: number, lineHeight: unknown) {
|
|
20
|
+
const style: Record<string, unknown> = { fontSize };
|
|
21
|
+
resolveTextMetrics(style, lineHeight);
|
|
22
|
+
return style.lineHeight;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
describe("Tamagui 3's native text leading", () => {
|
|
26
|
+
it("multiplies a bare number by the font size", () => {
|
|
27
|
+
expect(nativeLeading(13, 17)).toBe(221);
|
|
28
|
+
expect(nativeLeading(13, 1.2)).toBeCloseTo(15.6);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it("keeps an Npx string as points", () => {
|
|
32
|
+
expect(nativeLeading(13, "17px")).toBe(17);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/theme/Text.tsx"],"names":[],"mappings":"AA2DA,OAAO,EAEL,KAAK,WAAW,IAAI,cAAc,EAElC,KAAK,cAAc,IAAI,iBAAiB,EAExC,KAAK,gBAAgB,EAErB,KAAK,SAAS,IAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/theme/Text.tsx"],"names":[],"mappings":"AA2DA,OAAO,EAEL,KAAK,WAAW,IAAI,cAAc,EAElC,KAAK,cAAc,IAAI,iBAAiB,EAExC,KAAK,gBAAgB,EAErB,KAAK,SAAS,IAAI,YAAY,EAC/B,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,SAAS,G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