Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tamagui/font-inter

Package Overview
Dependencies
Maintainers
1
Versions
1136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/font-inter - npm Package Compare versions

Comparing version 1.0.0-beta.153 to 1.0.0-beta.181

73

dist/cjs/index.js
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;

@@ -19,2 +21,3 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;

};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });

@@ -41,57 +44,33 @@ var __export = (target, all) => {

var import_react_native = require("react-native");
const createInterFont = /* @__PURE__ */ __name((font = {}) => {
return (0, import_core.createFont)(__spreadValues({
const createInterFont = /* @__PURE__ */ __name((font = {}, {
sizeLineHeight = /* @__PURE__ */ __name((size) => size + 10, "sizeLineHeight")
} = {}) => {
const size = __spreadValues(__spreadValues({}, defaultSizes), font.size);
return (0, import_core.createFont)(__spreadProps(__spreadValues({
family: import_react_native.Platform.OS == "web" ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' : "Inter",
size,
lineHeight: {
1: 15,
2: 20,
3: 25,
4: 27,
5: 29,
6: 31,
7: 34,
8: 38,
9: 42,
10: 54,
11: 72,
12: 80,
13: 100,
14: 120,
15: 150,
16: 170
},
lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, sizeLineHeight((0, import_core.getVariableValue)(v))])),
weight: {
4: "300",
7: "600",
8: "700"
4: "300"
},
letterSpacing: {
4: 0,
7: 0,
8: -1,
9: -2,
10: -2,
11: -3,
12: -4,
13: -5,
14: -6,
15: -7
4: 0
}
}, font));
}, font), {
size
}));
}, "createInterFont");
const size = {
1: 10,
2: 12,
const defaultSizes = {
1: 12,
2: 13,
3: 14,
4: 15,
5: 16,
6: 17,
4: 16,
5: 18,
6: 19,
7: 21,
8: 25,
9: 30,
8: 26,
9: 32,
10: 45,
11: 58,
12: 68,
13: 82,
12: 64,
13: 76,
14: 102,

@@ -101,2 +80,6 @@ 15: 124,

};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
createInterFont
});
//# sourceMappingURL=index.js.map
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
import { createFont } from "@tamagui/core";
import { createFont, getVariableValue } from "@tamagui/core";
import { Platform } from "react-native";
const createInterFont = /* @__PURE__ */ __name((font = {}) => {
const createInterFont = /* @__PURE__ */ __name((font = {}, {
sizeLineHeight = /* @__PURE__ */ __name((size) => size + 10, "sizeLineHeight")
} = {}) => {
const size = {
...defaultSizes,
...font.size
};
return createFont({
family: Platform.OS == "web" ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' : "Inter",
size,
lineHeight: {
1: 15,
2: 20,
3: 25,
4: 27,
5: 29,
6: 31,
7: 34,
8: 38,
9: 42,
10: 54,
11: 72,
12: 80,
13: 100,
14: 120,
15: 150,
16: 170
},
lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])),
weight: {
4: "300",
7: "600",
8: "700"
4: "300"
},
letterSpacing: {
4: 0,
7: 0,
8: -1,
9: -2,
10: -2,
11: -3,
12: -4,
13: -5,
14: -6,
15: -7
4: 0
},
...font
...font,
size
});
}, "createInterFont");
const size = {
1: 10,
2: 12,
const defaultSizes = {
1: 12,
2: 13,
3: 14,
4: 15,
5: 16,
6: 17,
4: 16,
5: 18,
6: 19,
7: 21,
8: 25,
9: 30,
8: 26,
9: 32,
10: 45,
11: 58,
12: 68,
13: 82,
12: 64,
13: 76,
14: 102,

@@ -62,0 +40,0 @@ 15: 124,

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
import { createFont } from "@tamagui/core";
import { createFont, getVariableValue } from "@tamagui/core";
import { Platform } from "react-native";
const createInterFont = /* @__PURE__ */ __name((font = {}) => {
const createInterFont = /* @__PURE__ */ __name((font = {}, {
sizeLineHeight = /* @__PURE__ */ __name((size) => size + 10, "sizeLineHeight")
} = {}) => {
const size = {
...defaultSizes,
...font.size
};
return createFont({
family: Platform.OS == "web" ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' : "Inter",
size,
lineHeight: {
1: 15,
2: 20,
3: 25,
4: 27,
5: 29,
6: 31,
7: 34,
8: 38,
9: 42,
10: 54,
11: 72,
12: 80,
13: 100,
14: 120,
15: 150,
16: 170
},
lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])),
weight: {
4: "300",
7: "600",
8: "700"
4: "300"
},
letterSpacing: {
4: 0,
7: 0,
8: -1,
9: -2,
10: -2,
11: -3,
12: -4,
13: -5,
14: -6,
15: -7
4: 0
},
...font
...font,
size
});
}, "createInterFont");
const size = {
1: 10,
2: 12,
const defaultSizes = {
1: 12,
2: 13,
3: 14,
4: 15,
5: 16,
6: 17,
4: 16,
5: 18,
6: 19,
7: 21,
8: 25,
9: 30,
8: 26,
9: 32,
10: 45,
11: 58,
12: 68,
13: 82,
12: 64,
13: 76,
14: 102,

@@ -62,0 +40,0 @@ 15: 124,

{
"name": "@tamagui/font-inter",
"version": "1.0.0-beta.153+a49c2588",
"version": "1.0.0-beta.181+fff2a5b2",
"typings": "types",

@@ -21,4 +21,4 @@ "main": "dist/cjs",

"devDependencies": {
"@tamagui/build": "^1.0.0-beta.153+a49c2588",
"@tamagui/colors": "^1.0.0-beta.153+a49c2588"
"@tamagui/build": "^1.0.0-beta.181+fff2a5b2",
"@tamagui/colors": "^1.0.0-beta.181+fff2a5b2"
},

@@ -28,3 +28,3 @@ "publishConfig": {

},
"gitHead": "a49c2588898b6db5660f9b3346078cd87f585dcf"
"gitHead": "fff2a5b25ea3881d499e5376cd166f58556acaba"
}
import { GenericFont } from '@tamagui/core';
export declare const createInterFont: <A extends GenericFont<10 | 12 | 14 | 15 | 16 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 13>>(font?: Partial<A>) => A;
export declare const createInterFont: <A extends GenericFont<12 | 13 | 14 | 16 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15>>(font?: Partial<A>, { sizeLineHeight, }?: {
sizeLineHeight?: ((fontSize: number) => number) | undefined;
}) => A;
//# sourceMappingURL=index.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc