@tamagui/font-size 1.13.2 → 1.13.4
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/getFontSize.js +1 -73
- package/dist/cjs/getFontSize.js.map +2 -2
- package/dist/cjs/index.js +1 -18
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/getFontSize.js +1 -47
- package/dist/esm/getFontSize.js.map +2 -2
- package/dist/esm/getFontSize.mjs +1 -47
- package/dist/esm/getFontSize.mjs.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/jsx/getFontSize.js +1 -47
- package/dist/jsx/getFontSize.js.map +2 -2
- package/dist/jsx/getFontSize.mjs +1 -47
- package/dist/jsx/getFontSize.mjs.map +2 -2
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cjs/getFontSize.js
CHANGED
|
@@ -1,74 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var getFontSize_exports = {};
|
|
20
|
-
__export(getFontSize_exports, {
|
|
21
|
-
getFontSize: () => getFontSize,
|
|
22
|
-
getFontSizeToken: () => getFontSizeToken,
|
|
23
|
-
getFontSizeVariable: () => getFontSizeVariable
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(getFontSize_exports);
|
|
26
|
-
var import_core = require("@tamagui/core");
|
|
27
|
-
const getFontSize = (inSize, opts) => {
|
|
28
|
-
const res = getFontSizeVariable(inSize, opts);
|
|
29
|
-
if ((0, import_core.isVariable)(res)) {
|
|
30
|
-
return +res.val;
|
|
31
|
-
}
|
|
32
|
-
return res ? +res : 16;
|
|
33
|
-
};
|
|
34
|
-
const getFontSizeVariable = (inSize, opts) => {
|
|
35
|
-
const token = getFontSizeToken(inSize, opts);
|
|
36
|
-
if (!token) {
|
|
37
|
-
return inSize;
|
|
38
|
-
}
|
|
39
|
-
const conf = (0, import_core.getConfig)();
|
|
40
|
-
return conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size[token];
|
|
41
|
-
};
|
|
42
|
-
const getFontSizeToken = (inSize, opts) => {
|
|
43
|
-
if (typeof inSize === "number") {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
const relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0;
|
|
47
|
-
const conf = (0, import_core.getConfig)();
|
|
48
|
-
const fontSize = conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size;
|
|
49
|
-
const size = inSize || ("$true" in fontSize ? "$true" : "$4");
|
|
50
|
-
const sizeTokens = Object.keys(fontSize);
|
|
51
|
-
let foundIndex = sizeTokens.indexOf(size);
|
|
52
|
-
if (foundIndex === -1) {
|
|
53
|
-
if (size.endsWith(".5")) {
|
|
54
|
-
foundIndex = sizeTokens.indexOf(size.replace(".5", ""));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
if (process.env.NODE_ENV === "development") {
|
|
58
|
-
if (foundIndex === -1) {
|
|
59
|
-
console.warn("No font size found", size, opts, "in size tokens", sizeTokens);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const tokenIndex = Math.min(
|
|
63
|
-
Math.max(0, foundIndex + relativeSize),
|
|
64
|
-
sizeTokens.length - 1
|
|
65
|
-
);
|
|
66
|
-
return sizeTokens[tokenIndex] ?? size;
|
|
67
|
-
};
|
|
68
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
-
0 && (module.exports = {
|
|
70
|
-
getFontSize,
|
|
71
|
-
getFontSizeToken,
|
|
72
|
-
getFontSizeVariable
|
|
73
|
-
});
|
|
1
|
+
"use strict";var u=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var k=(n,e)=>{for(var t in e)u(n,t,{get:e[t],enumerable:!0})},T=(n,e,t,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of F(e))!S.call(n,o)&&o!==t&&u(n,o,{get:()=>e[o],enumerable:!(f=a(e,o))||f.enumerable});return n};var b=n=>T(u({},"__esModule",{value:!0}),n);var x={};k(x,{getFontSize:()=>m,getFontSizeToken:()=>c,getFontSizeVariable:()=>z});module.exports=b(x);var s=require("@tamagui/core");const m=(n,e)=>{const t=z(n,e);return(0,s.isVariable)(t)?+t.val:t?+t:16},z=(n,e)=>{const t=c(n,e);return t?(0,s.getConfig)().fontsParsed[(e==null?void 0:e.font)||"$body"].size[t]:n},c=(n,e)=>{if(typeof n=="number")return null;const t=(e==null?void 0:e.relativeSize)||0,o=(0,s.getConfig)().fontsParsed[(e==null?void 0:e.font)||"$body"].size,i=n||("$true"in o?"$true":"$4"),r=Object.keys(o);let l=r.indexOf(i);l===-1&&i.endsWith(".5")&&(l=r.indexOf(i.replace(".5",""))),process.env.NODE_ENV==="development"&&l===-1&&console.warn("No font size found",i,e,"in size tokens",r);const d=Math.min(Math.max(0,l+t),r.length-1);return r[d]??i};0&&(module.exports={getFontSize,getFontSizeToken,getFontSizeVariable});
|
|
74
2
|
//# sourceMappingURL=getFontSize.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getFontSize.ts"],
|
|
4
4
|
"sourcesContent": ["import { FontSizeTokens, FontTokens, getConfig, isVariable } from '@tamagui/core'\n\ntype GetFontSizeOpts = {\n relativeSize?: number\n font?: FontTokens\n}\n\nexport const getFontSize = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): number => {\n const res = getFontSizeVariable(inSize, opts)\n if (isVariable(res)) {\n return +res.val\n }\n return res ? +res : 16\n}\n\nexport const getFontSizeVariable = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n) => {\n const token = getFontSizeToken(inSize, opts)\n if (!token) {\n return inSize\n }\n const conf = getConfig()\n return conf.fontsParsed[opts?.font || '$body'].size[token]\n}\n\nexport const getFontSizeToken = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): FontSizeTokens | null => {\n if (typeof inSize === 'number') {\n return null\n }\n // backwards compat\n const relativeSize = opts?.relativeSize || 0\n const conf = getConfig()\n const fontSize = conf.fontsParsed[opts?.font || '$body'].size\n const size = inSize || ('$true' in fontSize ? '$true' : '$4')\n const sizeTokens = Object.keys(fontSize)\n let foundIndex = sizeTokens.indexOf(size)\n if (foundIndex === -1) {\n if (size.endsWith('.5')) {\n foundIndex = sizeTokens.indexOf(size.replace('.5', ''))\n }\n }\n if (process.env.NODE_ENV === 'development') {\n if (foundIndex === -1) {\n // eslint-disable-next-line no-console\n console.warn('No font size found', size, opts, 'in size tokens', sizeTokens)\n }\n }\n const tokenIndex = Math.min(\n Math.max(0, foundIndex + relativeSize),\n sizeTokens.length - 1\n )\n return (sizeTokens[tokenIndex] ?? size) as FontSizeTokens\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iBAAAE,EAAA,qBAAAC,EAAA,wBAAAC,IAAA,eAAAC,EAAAL,GAAA,IAAAM,EAAkE,yBAO3D,MAAMJ,EAAc,CACzBK,EACAC,IACW,CACX,MAAMC,EAAML,EAAoBG,EAAQC,CAAI,EAC5C,SAAI,cAAWC,CAAG,EACT,CAACA,EAAI,IAEPA,EAAM,CAACA,EAAM,EACtB,EAEaL,EAAsB,CACjCG,EACAC,IACG,CACH,MAAME,EAAQP,EAAiBI,EAAQC,CAAI,EAC3C,OAAKE,KAGQ,aAAU,EACX,aAAYF,GAAA,YAAAA,EAAM,OAAQ,OAAO,EAAE,KAAKE,CAAK,EAHhDH,CAIX,EAEaJ,EAAmB,CAC9BI,EACAC,IAC0B,CAC1B,GAAI,OAAOD,GAAW,SACpB,OAAO,KAGT,MAAMI,GAAeH,GAAA,YAAAA,EAAM,eAAgB,EAErCI,KADO,aAAU,EACD,aAAYJ,GAAA,YAAAA,EAAM,OAAQ,OAAO,EAAE,KACnDK,EAAON,IAAW,UAAWK,EAAW,QAAU,MAClDE,EAAa,OAAO,KAAKF,CAAQ,EACvC,IAAIG,EAAaD,EAAW,QAAQD,CAAI,EACpCE,IAAe,IACbF,EAAK,SAAS,IAAI,IACpBE,EAAaD,EAAW,QAAQD,EAAK,QAAQ,KAAM,EAAE,CAAC,GAGtD,QAAQ,IAAI,WAAa,eACvBE,IAAe,IAEjB,QAAQ,KAAK,qBAAsBF,EAAML,EAAM,iBAAkBM,CAAU,EAG/E,MAAME,EAAa,KAAK,IACtB,KAAK,IAAI,EAAGD,EAAaJ,CAAY,EACrCG,EAAW,OAAS,CACtB,EACA,OAAQA,EAAWE,CAAU,GAAKH,CACpC",
|
|
6
|
+
"names": ["getFontSize_exports", "__export", "getFontSize", "getFontSizeToken", "getFontSizeVariable", "__toCommonJS", "import_core", "inSize", "opts", "res", "token", "relativeSize", "fontSize", "size", "sizeTokens", "foundIndex", "tokenIndex"]
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(src_exports);
|
|
18
|
-
__reExport(src_exports, require("./getFontSize"), module.exports);
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./getFontSize"),module.exports);
|
|
19
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["export * from './getFontSize'\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,yBAAd",
|
|
6
|
+
"names": ["src_exports", "__toCommonJS", "__reExport"]
|
|
7
7
|
}
|
package/dist/esm/getFontSize.js
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const getFontSize = (inSize, opts) => {
|
|
3
|
-
const res = getFontSizeVariable(inSize, opts);
|
|
4
|
-
if (isVariable(res)) {
|
|
5
|
-
return +res.val;
|
|
6
|
-
}
|
|
7
|
-
return res ? +res : 16;
|
|
8
|
-
};
|
|
9
|
-
const getFontSizeVariable = (inSize, opts) => {
|
|
10
|
-
const token = getFontSizeToken(inSize, opts);
|
|
11
|
-
if (!token) {
|
|
12
|
-
return inSize;
|
|
13
|
-
}
|
|
14
|
-
const conf = getConfig();
|
|
15
|
-
return conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size[token];
|
|
16
|
-
};
|
|
17
|
-
const getFontSizeToken = (inSize, opts) => {
|
|
18
|
-
if (typeof inSize === "number") {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0;
|
|
22
|
-
const conf = getConfig();
|
|
23
|
-
const fontSize = conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size;
|
|
24
|
-
const size = inSize || ("$true" in fontSize ? "$true" : "$4");
|
|
25
|
-
const sizeTokens = Object.keys(fontSize);
|
|
26
|
-
let foundIndex = sizeTokens.indexOf(size);
|
|
27
|
-
if (foundIndex === -1) {
|
|
28
|
-
if (size.endsWith(".5")) {
|
|
29
|
-
foundIndex = sizeTokens.indexOf(size.replace(".5", ""));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (process.env.NODE_ENV === "development") {
|
|
33
|
-
if (foundIndex === -1) {
|
|
34
|
-
console.warn("No font size found", size, opts, "in size tokens", sizeTokens);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const tokenIndex = Math.min(
|
|
38
|
-
Math.max(0, foundIndex + relativeSize),
|
|
39
|
-
sizeTokens.length - 1
|
|
40
|
-
);
|
|
41
|
-
return sizeTokens[tokenIndex] ?? size;
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
getFontSize,
|
|
45
|
-
getFontSizeToken,
|
|
46
|
-
getFontSizeVariable
|
|
47
|
-
};
|
|
1
|
+
import{getConfig as f,isVariable as z}from"@tamagui/core";const k=(t,e)=>{const n=c(t,e);return z(n)?+n.val:n?+n:16},c=(t,e)=>{const n=d(t,e);return n?f().fontsParsed[(e==null?void 0:e.font)||"$body"].size[n]:t},d=(t,e)=>{if(typeof t=="number")return null;const n=(e==null?void 0:e.relativeSize)||0,s=f().fontsParsed[(e==null?void 0:e.font)||"$body"].size,o=t||("$true"in s?"$true":"$4"),i=Object.keys(s);let r=i.indexOf(o);r===-1&&o.endsWith(".5")&&(r=i.indexOf(o.replace(".5",""))),process.env.NODE_ENV==="development"&&r===-1&&console.warn("No font size found",o,e,"in size tokens",i);const u=Math.min(Math.max(0,r+n),i.length-1);return i[u]??o};export{k as getFontSize,d as getFontSizeToken,c as getFontSizeVariable};
|
|
48
2
|
//# sourceMappingURL=getFontSize.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getFontSize.ts"],
|
|
4
4
|
"sourcesContent": ["import { FontSizeTokens, FontTokens, getConfig, isVariable } from '@tamagui/core'\n\ntype GetFontSizeOpts = {\n relativeSize?: number\n font?: FontTokens\n}\n\nexport const getFontSize = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): number => {\n const res = getFontSizeVariable(inSize, opts)\n if (isVariable(res)) {\n return +res.val\n }\n return res ? +res : 16\n}\n\nexport const getFontSizeVariable = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n) => {\n const token = getFontSizeToken(inSize, opts)\n if (!token) {\n return inSize\n }\n const conf = getConfig()\n return conf.fontsParsed[opts?.font || '$body'].size[token]\n}\n\nexport const getFontSizeToken = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): FontSizeTokens | null => {\n if (typeof inSize === 'number') {\n return null\n }\n // backwards compat\n const relativeSize = opts?.relativeSize || 0\n const conf = getConfig()\n const fontSize = conf.fontsParsed[opts?.font || '$body'].size\n const size = inSize || ('$true' in fontSize ? '$true' : '$4')\n const sizeTokens = Object.keys(fontSize)\n let foundIndex = sizeTokens.indexOf(size)\n if (foundIndex === -1) {\n if (size.endsWith('.5')) {\n foundIndex = sizeTokens.indexOf(size.replace('.5', ''))\n }\n }\n if (process.env.NODE_ENV === 'development') {\n if (foundIndex === -1) {\n // eslint-disable-next-line no-console\n console.warn('No font size found', size, opts, 'in size tokens', sizeTokens)\n }\n }\n const tokenIndex = Math.min(\n Math.max(0, foundIndex + relativeSize),\n sizeTokens.length - 1\n )\n return (sizeTokens[tokenIndex] ?? size) as FontSizeTokens\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAqC,aAAAA,EAAW,cAAAC,MAAkB,gBAO3D,MAAMC,EAAc,CACzBC,EACAC,IACW,CACX,MAAMC,EAAMC,EAAoBH,EAAQC,CAAI,EAC5C,OAAIH,EAAWI,CAAG,EACT,CAACA,EAAI,IAEPA,EAAM,CAACA,EAAM,EACtB,EAEaC,EAAsB,CACjCH,EACAC,IACG,CACH,MAAMG,EAAQC,EAAiBL,EAAQC,CAAI,EAC3C,OAAKG,EAGQP,EAAU,EACX,aAAYI,GAAA,YAAAA,EAAM,OAAQ,OAAO,EAAE,KAAKG,CAAK,EAHhDJ,CAIX,EAEaK,EAAmB,CAC9BL,EACAC,IAC0B,CAC1B,GAAI,OAAOD,GAAW,SACpB,OAAO,KAGT,MAAMM,GAAeL,GAAA,YAAAA,EAAM,eAAgB,EAErCM,EADOV,EAAU,EACD,aAAYI,GAAA,YAAAA,EAAM,OAAQ,OAAO,EAAE,KACnDO,EAAOR,IAAW,UAAWO,EAAW,QAAU,MAClDE,EAAa,OAAO,KAAKF,CAAQ,EACvC,IAAIG,EAAaD,EAAW,QAAQD,CAAI,EACpCE,IAAe,IACbF,EAAK,SAAS,IAAI,IACpBE,EAAaD,EAAW,QAAQD,EAAK,QAAQ,KAAM,EAAE,CAAC,GAGtD,QAAQ,IAAI,WAAa,eACvBE,IAAe,IAEjB,QAAQ,KAAK,qBAAsBF,EAAMP,EAAM,iBAAkBQ,CAAU,EAG/E,MAAME,EAAa,KAAK,IACtB,KAAK,IAAI,EAAGD,EAAaJ,CAAY,EACrCG,EAAW,OAAS,CACtB,EACA,OAAQA,EAAWE,CAAU,GAAKH,CACpC",
|
|
6
|
+
"names": ["getConfig", "isVariable", "getFontSize", "inSize", "opts", "res", "getFontSizeVariable", "token", "getFontSizeToken", "relativeSize", "fontSize", "size", "sizeTokens", "foundIndex", "tokenIndex"]
|
|
7
7
|
}
|
package/dist/esm/getFontSize.mjs
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const getFontSize = (inSize, opts) => {
|
|
3
|
-
const res = getFontSizeVariable(inSize, opts);
|
|
4
|
-
if (isVariable(res)) {
|
|
5
|
-
return +res.val;
|
|
6
|
-
}
|
|
7
|
-
return res ? +res : 16;
|
|
8
|
-
};
|
|
9
|
-
const getFontSizeVariable = (inSize, opts) => {
|
|
10
|
-
const token = getFontSizeToken(inSize, opts);
|
|
11
|
-
if (!token) {
|
|
12
|
-
return inSize;
|
|
13
|
-
}
|
|
14
|
-
const conf = getConfig();
|
|
15
|
-
return conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size[token];
|
|
16
|
-
};
|
|
17
|
-
const getFontSizeToken = (inSize, opts) => {
|
|
18
|
-
if (typeof inSize === "number") {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0;
|
|
22
|
-
const conf = getConfig();
|
|
23
|
-
const fontSize = conf.fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size;
|
|
24
|
-
const size = inSize || ("$true" in fontSize ? "$true" : "$4");
|
|
25
|
-
const sizeTokens = Object.keys(fontSize);
|
|
26
|
-
let foundIndex = sizeTokens.indexOf(size);
|
|
27
|
-
if (foundIndex === -1) {
|
|
28
|
-
if (size.endsWith(".5")) {
|
|
29
|
-
foundIndex = sizeTokens.indexOf(size.replace(".5", ""));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (process.env.NODE_ENV === "development") {
|
|
33
|
-
if (foundIndex === -1) {
|
|
34
|
-
console.warn("No font size found", size, opts, "in size tokens", sizeTokens);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const tokenIndex = Math.min(
|
|
38
|
-
Math.max(0, foundIndex + relativeSize),
|
|
39
|
-
sizeTokens.length - 1
|
|
40
|
-
);
|
|
41
|
-
return sizeTokens[tokenIndex] ?? size;
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
getFontSize,
|
|
45
|
-
getFontSizeToken,
|
|
46
|
-
getFontSizeVariable
|
|
47
|
-
};
|
|
1
|
+
import{getConfig as f,isVariable as z}from"@tamagui/core";const k=(t,e)=>{const n=c(t,e);return z(n)?+n.val:n?+n:16},c=(t,e)=>{const n=d(t,e);return n?f().fontsParsed[(e==null?void 0:e.font)||"$body"].size[n]:t},d=(t,e)=>{if(typeof t=="number")return null;const n=(e==null?void 0:e.relativeSize)||0,s=f().fontsParsed[(e==null?void 0:e.font)||"$body"].size,o=t||("$true"in s?"$true":"$4"),i=Object.keys(s);let r=i.indexOf(o);r===-1&&o.endsWith(".5")&&(r=i.indexOf(o.replace(".5",""))),process.env.NODE_ENV==="development"&&r===-1&&console.warn("No font size found",o,e,"in size tokens",i);const u=Math.min(Math.max(0,r+n),i.length-1);return i[u]??o};export{k as getFontSize,d as getFontSizeToken,c as getFontSizeVariable};
|
|
48
2
|
//# sourceMappingURL=getFontSize.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getFontSize.ts"],
|
|
4
4
|
"sourcesContent": ["import { FontSizeTokens, FontTokens, getConfig, isVariable } from '@tamagui/core'\n\ntype GetFontSizeOpts = {\n relativeSize?: number\n font?: FontTokens\n}\n\nexport const getFontSize = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): number => {\n const res = getFontSizeVariable(inSize, opts)\n if (isVariable(res)) {\n return +res.val\n }\n return res ? +res : 16\n}\n\nexport const getFontSizeVariable = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n) => {\n const token = getFontSizeToken(inSize, opts)\n if (!token) {\n return inSize\n }\n const conf = getConfig()\n return conf.fontsParsed[opts?.font || '$body'].size[token]\n}\n\nexport const getFontSizeToken = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): FontSizeTokens | null => {\n if (typeof inSize === 'number') {\n return null\n }\n // backwards compat\n const relativeSize = opts?.relativeSize || 0\n const conf = getConfig()\n const fontSize = conf.fontsParsed[opts?.font || '$body'].size\n const size = inSize || ('$true' in fontSize ? '$true' : '$4')\n const sizeTokens = Object.keys(fontSize)\n let foundIndex = sizeTokens.indexOf(size)\n if (foundIndex === -1) {\n if (size.endsWith('.5')) {\n foundIndex = sizeTokens.indexOf(size.replace('.5', ''))\n }\n }\n if (process.env.NODE_ENV === 'development') {\n if (foundIndex === -1) {\n // eslint-disable-next-line no-console\n console.warn('No font size found', size, opts, 'in size tokens', sizeTokens)\n }\n }\n const tokenIndex = Math.min(\n Math.max(0, foundIndex + relativeSize),\n sizeTokens.length - 1\n )\n return (sizeTokens[tokenIndex] ?? size) as FontSizeTokens\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAqC,aAAAA,EAAW,cAAAC,MAAkB,gBAO3D,MAAMC,EAAc,CACzBC,EACAC,IACW,CACX,MAAMC,EAAMC,EAAoBH,EAAQC,CAAI,EAC5C,OAAIH,EAAWI,CAAG,EACT,CAACA,EAAI,IAEPA,EAAM,CAACA,EAAM,EACtB,EAEaC,EAAsB,CACjCH,EACAC,IACG,CACH,MAAMG,EAAQC,EAAiBL,EAAQC,CAAI,EAC3C,OAAKG,EAGQP,EAAU,EACX,aAAYI,GAAA,YAAAA,EAAM,OAAQ,OAAO,EAAE,KAAKG,CAAK,EAHhDJ,CAIX,EAEaK,EAAmB,CAC9BL,EACAC,IAC0B,CAC1B,GAAI,OAAOD,GAAW,SACpB,OAAO,KAGT,MAAMM,GAAeL,GAAA,YAAAA,EAAM,eAAgB,EAErCM,EADOV,EAAU,EACD,aAAYI,GAAA,YAAAA,EAAM,OAAQ,OAAO,EAAE,KACnDO,EAAOR,IAAW,UAAWO,EAAW,QAAU,MAClDE,EAAa,OAAO,KAAKF,CAAQ,EACvC,IAAIG,EAAaD,EAAW,QAAQD,CAAI,EACpCE,IAAe,IACbF,EAAK,SAAS,IAAI,IACpBE,EAAaD,EAAW,QAAQD,EAAK,QAAQ,KAAM,EAAE,CAAC,GAGtD,QAAQ,IAAI,WAAa,eACvBE,IAAe,IAEjB,QAAQ,KAAK,qBAAsBF,EAAMP,EAAM,iBAAkBQ,CAAU,EAG/E,MAAME,EAAa,KAAK,IACtB,KAAK,IAAI,EAAGD,EAAaJ,CAAY,EACrCG,EAAW,OAAS,CACtB,EACA,OAAQA,EAAWE,CAAU,GAAKH,CACpC",
|
|
6
|
+
"names": ["getConfig", "isVariable", "getFontSize", "inSize", "opts", "res", "getFontSizeVariable", "token", "getFontSizeToken", "relativeSize", "fontSize", "size", "sizeTokens", "foundIndex", "tokenIndex"]
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./getFontSize";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./getFontSize";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
package/dist/jsx/getFontSize.js
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const getFontSize = (inSize, opts) => {
|
|
3
|
-
const res = getFontSizeVariable(inSize, opts);
|
|
4
|
-
if (isVariable(res)) {
|
|
5
|
-
return +res.val;
|
|
6
|
-
}
|
|
7
|
-
return res ? +res : 16;
|
|
8
|
-
};
|
|
9
|
-
const getFontSizeVariable = (inSize, opts) => {
|
|
10
|
-
const token = getFontSizeToken(inSize, opts);
|
|
11
|
-
if (!token) {
|
|
12
|
-
return inSize;
|
|
13
|
-
}
|
|
14
|
-
const conf = getConfig();
|
|
15
|
-
return conf.fontsParsed[opts?.font || "$body"].size[token];
|
|
16
|
-
};
|
|
17
|
-
const getFontSizeToken = (inSize, opts) => {
|
|
18
|
-
if (typeof inSize === "number") {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const relativeSize = opts?.relativeSize || 0;
|
|
22
|
-
const conf = getConfig();
|
|
23
|
-
const fontSize = conf.fontsParsed[opts?.font || "$body"].size;
|
|
24
|
-
const size = inSize || ("$true" in fontSize ? "$true" : "$4");
|
|
25
|
-
const sizeTokens = Object.keys(fontSize);
|
|
26
|
-
let foundIndex = sizeTokens.indexOf(size);
|
|
27
|
-
if (foundIndex === -1) {
|
|
28
|
-
if (size.endsWith(".5")) {
|
|
29
|
-
foundIndex = sizeTokens.indexOf(size.replace(".5", ""));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (process.env.NODE_ENV === "development") {
|
|
33
|
-
if (foundIndex === -1) {
|
|
34
|
-
console.warn("No font size found", size, opts, "in size tokens", sizeTokens);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const tokenIndex = Math.min(
|
|
38
|
-
Math.max(0, foundIndex + relativeSize),
|
|
39
|
-
sizeTokens.length - 1
|
|
40
|
-
);
|
|
41
|
-
return sizeTokens[tokenIndex] ?? size;
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
getFontSize,
|
|
45
|
-
getFontSizeToken,
|
|
46
|
-
getFontSizeVariable
|
|
47
|
-
};
|
|
1
|
+
import{getConfig as f,isVariable as z}from"@tamagui/core";const k=(t,n)=>{const e=c(t,n);return z(e)?+e.val:e?+e:16},c=(t,n)=>{const e=d(t,n);return e?f().fontsParsed[n?.font||"$body"].size[e]:t},d=(t,n)=>{if(typeof t=="number")return null;const e=n?.relativeSize||0,r=f().fontsParsed[n?.font||"$body"].size,o=t||("$true"in r?"$true":"$4"),i=Object.keys(r);let s=i.indexOf(o);s===-1&&o.endsWith(".5")&&(s=i.indexOf(o.replace(".5",""))),process.env.NODE_ENV==="development"&&s===-1&&console.warn("No font size found",o,n,"in size tokens",i);const u=Math.min(Math.max(0,s+e),i.length-1);return i[u]??o};export{k as getFontSize,d as getFontSizeToken,c as getFontSizeVariable};
|
|
48
2
|
//# sourceMappingURL=getFontSize.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getFontSize.ts"],
|
|
4
4
|
"sourcesContent": ["import { FontSizeTokens, FontTokens, getConfig, isVariable } from '@tamagui/core'\n\ntype GetFontSizeOpts = {\n relativeSize?: number\n font?: FontTokens\n}\n\nexport const getFontSize = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): number => {\n const res = getFontSizeVariable(inSize, opts)\n if (isVariable(res)) {\n return +res.val\n }\n return res ? +res : 16\n}\n\nexport const getFontSizeVariable = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n) => {\n const token = getFontSizeToken(inSize, opts)\n if (!token) {\n return inSize\n }\n const conf = getConfig()\n return conf.fontsParsed[opts?.font || '$body'].size[token]\n}\n\nexport const getFontSizeToken = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): FontSizeTokens | null => {\n if (typeof inSize === 'number') {\n return null\n }\n // backwards compat\n const relativeSize = opts?.relativeSize || 0\n const conf = getConfig()\n const fontSize = conf.fontsParsed[opts?.font || '$body'].size\n const size = inSize || ('$true' in fontSize ? '$true' : '$4')\n const sizeTokens = Object.keys(fontSize)\n let foundIndex = sizeTokens.indexOf(size)\n if (foundIndex === -1) {\n if (size.endsWith('.5')) {\n foundIndex = sizeTokens.indexOf(size.replace('.5', ''))\n }\n }\n if (process.env.NODE_ENV === 'development') {\n if (foundIndex === -1) {\n // eslint-disable-next-line no-console\n console.warn('No font size found', size, opts, 'in size tokens', sizeTokens)\n }\n }\n const tokenIndex = Math.min(\n Math.max(0, foundIndex + relativeSize),\n sizeTokens.length - 1\n )\n return (sizeTokens[tokenIndex] ?? size) as FontSizeTokens\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAqC,aAAAA,EAAW,cAAAC,MAAkB,gBAO3D,MAAMC,EAAc,CACzBC,EACAC,IACW,CACX,MAAMC,EAAMC,EAAoBH,EAAQC,CAAI,EAC5C,OAAIH,EAAWI,CAAG,EACT,CAACA,EAAI,IAEPA,EAAM,CAACA,EAAM,EACtB,EAEaC,EAAsB,CACjCH,EACAC,IACG,CACH,MAAMG,EAAQC,EAAiBL,EAAQC,CAAI,EAC3C,OAAKG,EAGQP,EAAU,EACX,YAAYI,GAAM,MAAQ,OAAO,EAAE,KAAKG,CAAK,EAHhDJ,CAIX,EAEaK,EAAmB,CAC9BL,EACAC,IAC0B,CAC1B,GAAI,OAAOD,GAAW,SACpB,OAAO,KAGT,MAAMM,EAAeL,GAAM,cAAgB,EAErCM,EADOV,EAAU,EACD,YAAYI,GAAM,MAAQ,OAAO,EAAE,KACnDO,EAAOR,IAAW,UAAWO,EAAW,QAAU,MAClDE,EAAa,OAAO,KAAKF,CAAQ,EACvC,IAAIG,EAAaD,EAAW,QAAQD,CAAI,EACpCE,IAAe,IACbF,EAAK,SAAS,IAAI,IACpBE,EAAaD,EAAW,QAAQD,EAAK,QAAQ,KAAM,EAAE,CAAC,GAGtD,QAAQ,IAAI,WAAa,eACvBE,IAAe,IAEjB,QAAQ,KAAK,qBAAsBF,EAAMP,EAAM,iBAAkBQ,CAAU,EAG/E,MAAME,EAAa,KAAK,IACtB,KAAK,IAAI,EAAGD,EAAaJ,CAAY,EACrCG,EAAW,OAAS,CACtB,EACA,OAAQA,EAAWE,CAAU,GAAKH,CACpC",
|
|
6
|
+
"names": ["getConfig", "isVariable", "getFontSize", "inSize", "opts", "res", "getFontSizeVariable", "token", "getFontSizeToken", "relativeSize", "fontSize", "size", "sizeTokens", "foundIndex", "tokenIndex"]
|
|
7
7
|
}
|
package/dist/jsx/getFontSize.mjs
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const getFontSize = (inSize, opts) => {
|
|
3
|
-
const res = getFontSizeVariable(inSize, opts);
|
|
4
|
-
if (isVariable(res)) {
|
|
5
|
-
return +res.val;
|
|
6
|
-
}
|
|
7
|
-
return res ? +res : 16;
|
|
8
|
-
};
|
|
9
|
-
const getFontSizeVariable = (inSize, opts) => {
|
|
10
|
-
const token = getFontSizeToken(inSize, opts);
|
|
11
|
-
if (!token) {
|
|
12
|
-
return inSize;
|
|
13
|
-
}
|
|
14
|
-
const conf = getConfig();
|
|
15
|
-
return conf.fontsParsed[opts?.font || "$body"].size[token];
|
|
16
|
-
};
|
|
17
|
-
const getFontSizeToken = (inSize, opts) => {
|
|
18
|
-
if (typeof inSize === "number") {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const relativeSize = opts?.relativeSize || 0;
|
|
22
|
-
const conf = getConfig();
|
|
23
|
-
const fontSize = conf.fontsParsed[opts?.font || "$body"].size;
|
|
24
|
-
const size = inSize || ("$true" in fontSize ? "$true" : "$4");
|
|
25
|
-
const sizeTokens = Object.keys(fontSize);
|
|
26
|
-
let foundIndex = sizeTokens.indexOf(size);
|
|
27
|
-
if (foundIndex === -1) {
|
|
28
|
-
if (size.endsWith(".5")) {
|
|
29
|
-
foundIndex = sizeTokens.indexOf(size.replace(".5", ""));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (process.env.NODE_ENV === "development") {
|
|
33
|
-
if (foundIndex === -1) {
|
|
34
|
-
console.warn("No font size found", size, opts, "in size tokens", sizeTokens);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const tokenIndex = Math.min(
|
|
38
|
-
Math.max(0, foundIndex + relativeSize),
|
|
39
|
-
sizeTokens.length - 1
|
|
40
|
-
);
|
|
41
|
-
return sizeTokens[tokenIndex] ?? size;
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
getFontSize,
|
|
45
|
-
getFontSizeToken,
|
|
46
|
-
getFontSizeVariable
|
|
47
|
-
};
|
|
1
|
+
import{getConfig as f,isVariable as z}from"@tamagui/core";const k=(t,n)=>{const e=c(t,n);return z(e)?+e.val:e?+e:16},c=(t,n)=>{const e=d(t,n);return e?f().fontsParsed[n?.font||"$body"].size[e]:t},d=(t,n)=>{if(typeof t=="number")return null;const e=n?.relativeSize||0,r=f().fontsParsed[n?.font||"$body"].size,o=t||("$true"in r?"$true":"$4"),i=Object.keys(r);let s=i.indexOf(o);s===-1&&o.endsWith(".5")&&(s=i.indexOf(o.replace(".5",""))),process.env.NODE_ENV==="development"&&s===-1&&console.warn("No font size found",o,n,"in size tokens",i);const u=Math.min(Math.max(0,s+e),i.length-1);return i[u]??o};export{k as getFontSize,d as getFontSizeToken,c as getFontSizeVariable};
|
|
48
2
|
//# sourceMappingURL=getFontSize.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getFontSize.ts"],
|
|
4
4
|
"sourcesContent": ["import { FontSizeTokens, FontTokens, getConfig, isVariable } from '@tamagui/core'\n\ntype GetFontSizeOpts = {\n relativeSize?: number\n font?: FontTokens\n}\n\nexport const getFontSize = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): number => {\n const res = getFontSizeVariable(inSize, opts)\n if (isVariable(res)) {\n return +res.val\n }\n return res ? +res : 16\n}\n\nexport const getFontSizeVariable = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n) => {\n const token = getFontSizeToken(inSize, opts)\n if (!token) {\n return inSize\n }\n const conf = getConfig()\n return conf.fontsParsed[opts?.font || '$body'].size[token]\n}\n\nexport const getFontSizeToken = (\n inSize: FontSizeTokens | null | undefined,\n opts?: GetFontSizeOpts\n): FontSizeTokens | null => {\n if (typeof inSize === 'number') {\n return null\n }\n // backwards compat\n const relativeSize = opts?.relativeSize || 0\n const conf = getConfig()\n const fontSize = conf.fontsParsed[opts?.font || '$body'].size\n const size = inSize || ('$true' in fontSize ? '$true' : '$4')\n const sizeTokens = Object.keys(fontSize)\n let foundIndex = sizeTokens.indexOf(size)\n if (foundIndex === -1) {\n if (size.endsWith('.5')) {\n foundIndex = sizeTokens.indexOf(size.replace('.5', ''))\n }\n }\n if (process.env.NODE_ENV === 'development') {\n if (foundIndex === -1) {\n // eslint-disable-next-line no-console\n console.warn('No font size found', size, opts, 'in size tokens', sizeTokens)\n }\n }\n const tokenIndex = Math.min(\n Math.max(0, foundIndex + relativeSize),\n sizeTokens.length - 1\n )\n return (sizeTokens[tokenIndex] ?? size) as FontSizeTokens\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAqC,aAAAA,EAAW,cAAAC,MAAkB,gBAO3D,MAAMC,EAAc,CACzBC,EACAC,IACW,CACX,MAAMC,EAAMC,EAAoBH,EAAQC,CAAI,EAC5C,OAAIH,EAAWI,CAAG,EACT,CAACA,EAAI,IAEPA,EAAM,CAACA,EAAM,EACtB,EAEaC,EAAsB,CACjCH,EACAC,IACG,CACH,MAAMG,EAAQC,EAAiBL,EAAQC,CAAI,EAC3C,OAAKG,EAGQP,EAAU,EACX,YAAYI,GAAM,MAAQ,OAAO,EAAE,KAAKG,CAAK,EAHhDJ,CAIX,EAEaK,EAAmB,CAC9BL,EACAC,IAC0B,CAC1B,GAAI,OAAOD,GAAW,SACpB,OAAO,KAGT,MAAMM,EAAeL,GAAM,cAAgB,EAErCM,EADOV,EAAU,EACD,YAAYI,GAAM,MAAQ,OAAO,EAAE,KACnDO,EAAOR,IAAW,UAAWO,EAAW,QAAU,MAClDE,EAAa,OAAO,KAAKF,CAAQ,EACvC,IAAIG,EAAaD,EAAW,QAAQD,CAAI,EACpCE,IAAe,IACbF,EAAK,SAAS,IAAI,IACpBE,EAAaD,EAAW,QAAQD,EAAK,QAAQ,KAAM,EAAE,CAAC,GAGtD,QAAQ,IAAI,WAAa,eACvBE,IAAe,IAEjB,QAAQ,KAAK,qBAAsBF,EAAMP,EAAM,iBAAkBQ,CAAU,EAG/E,MAAME,EAAa,KAAK,IACtB,KAAK,IAAI,EAAGD,EAAaJ,CAAY,EACrCG,EAAW,OAAS,CACtB,EACA,OAAQA,EAAWE,CAAU,GAAKH,CACpC",
|
|
6
|
+
"names": ["getConfig", "isVariable", "getFontSize", "inSize", "opts", "res", "getFontSizeVariable", "token", "getFontSizeToken", "relativeSize", "fontSize", "size", "sizeTokens", "foundIndex", "tokenIndex"]
|
|
7
7
|
}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./getFontSize";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./getFontSize";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/jsx/index.mjs.map
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/font-size",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.4",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"lint:fix": "../../node_modules/.bin/rome check --apply-suggested src"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tamagui/core": "1.13.
|
|
22
|
+
"@tamagui/core": "1.13.4"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "*"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tamagui/build": "1.13.
|
|
28
|
+
"@tamagui/build": "1.13.4",
|
|
29
29
|
"react": "^18.2.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|