@tamagui/config-base 1.0.1-beta.140 → 1.0.1-beta.143
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/animations.css.js +36 -0
- package/dist/cjs/animations.css.js.map +7 -0
- package/dist/cjs/animations.js +0 -0
- package/dist/cjs/animations.js.map +2 -2
- package/dist/cjs/animations.reanimated.js +0 -0
- package/dist/cjs/animations.reanimated.js.map +0 -0
- package/dist/cjs/createGenericFont.js +0 -0
- package/dist/cjs/createGenericFont.js.map +0 -0
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/media.js +0 -0
- package/dist/cjs/media.js.map +0 -0
- package/dist/cjs/tamagui.config.js +5 -1
- package/dist/cjs/tamagui.config.js.map +2 -2
- package/dist/esm/animations.css.js +12 -0
- package/dist/esm/animations.css.js.map +7 -0
- package/dist/esm/animations.js +0 -0
- package/dist/esm/animations.js.map +2 -2
- package/dist/esm/animations.reanimated.js +0 -0
- package/dist/esm/animations.reanimated.js.map +0 -0
- package/dist/esm/createGenericFont.js +0 -0
- package/dist/esm/createGenericFont.js.map +0 -0
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/media.js +0 -0
- package/dist/esm/media.js.map +0 -0
- package/dist/esm/tamagui.config.js +4 -1
- package/dist/esm/tamagui.config.js.map +2 -2
- package/package.json +17 -10
- package/src/animations.css.ts +9 -0
- package/src/animations.ts +8 -0
- package/src/index.tsx +0 -1
- package/src/tamagui.config.ts +6 -1
- package/types/animations.css.d.ts +8 -0
- package/types/index.d.ts +0 -1
- package/types/tamagui.config.d.ts +7685 -13899
- package/dist/jsx/animations.js +0 -30
- package/dist/jsx/animations.js.map +0 -7
- package/dist/jsx/animations.reanimated.js +0 -35
- package/dist/jsx/animations.reanimated.js.map +0 -7
- package/dist/jsx/createGenericFont.js +0 -36
- package/dist/jsx/createGenericFont.js.map +0 -7
- package/dist/jsx/index.js +0 -5
- package/dist/jsx/index.js.map +0 -7
- package/dist/jsx/media.js +0 -29
- package/dist/jsx/media.js.map +0 -7
- package/dist/jsx/tamagui.config.js +0 -86
- package/dist/jsx/tamagui.config.js.map +0 -7
|
@@ -0,0 +1,36 @@
|
|
|
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 animations_css_exports = {};
|
|
20
|
+
__export(animations_css_exports, {
|
|
21
|
+
animations: () => animations
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(animations_css_exports);
|
|
24
|
+
var import_animations_css = require("@tamagui/animations-css");
|
|
25
|
+
const animations = (0, import_animations_css.createAnimations)({
|
|
26
|
+
bouncy: "ease-in 200ms",
|
|
27
|
+
lazy: "ease-in 600ms",
|
|
28
|
+
slow: "ease-in 500ms",
|
|
29
|
+
quick: "ease-in 100ms",
|
|
30
|
+
tooltip: "ease-in 400ms"
|
|
31
|
+
});
|
|
32
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
+
0 && (module.exports = {
|
|
34
|
+
animations
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=animations.css.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.css.ts"],
|
|
4
|
+
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-css'\n\nexport const animations = createAnimations({\n bouncy: 'ease-in 200ms',\n lazy: 'ease-in 600ms',\n slow: 'ease-in 500ms',\n quick: 'ease-in 100ms',\n tooltip: 'ease-in 400ms',\n})\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAiC;AAE1B,MAAM,aAAa,4CAAiB;AAAA,EACzC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/cjs/animations.js
CHANGED
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.ts"],
|
|
4
|
-
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-react-native'\n\nexport const animations = createAnimations({\n bouncy: {\n damping: 9,\n mass: 0.9,\n stiffness: 150,\n },\n lazy: {\n damping: 18,\n stiffness: 50,\n },\n slow: {\n damping: 15,\n stiffness: 40,\n },\n quick: {\n damping: 20,\n mass: 1.2,\n stiffness: 250,\n },\n tooltip: {\n damping: 10,\n mass: 0.9,\n stiffness: 100,\n },\n})\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAiC;
|
|
4
|
+
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-react-native'\n\n// import { Animated } from 'react-native-web-lite'\n// // @ts-ignore\n// import * as AnimatedImpl from 'react-native-web-lite/animated'\n\n// // TODO more work...\n\n// Animated.installAnimated(AnimatedImpl)\n\nexport const animations = createAnimations({\n bouncy: {\n damping: 9,\n mass: 0.9,\n stiffness: 150,\n },\n lazy: {\n damping: 18,\n stiffness: 50,\n },\n slow: {\n damping: 15,\n stiffness: 40,\n },\n quick: {\n damping: 20,\n mass: 1.2,\n stiffness: 250,\n },\n tooltip: {\n damping: 10,\n mass: 0.9,\n stiffness: 100,\n },\n})\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAiC;AAU1B,MAAM,aAAa,qDAAiB;AAAA,EACzC,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,7 +16,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
16
16
|
var src_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(src_exports);
|
|
18
18
|
__reExport(src_exports, require("./tamagui.config"), module.exports);
|
|
19
|
-
__reExport(src_exports, require("./animations"), module.exports);
|
|
20
19
|
__reExport(src_exports, require("./media"), module.exports);
|
|
21
20
|
__reExport(src_exports, require("./createGenericFont"), module.exports);
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["export * from './tamagui.config'\nexport * from './
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,6BAAd;AACA,wBAAc,
|
|
4
|
+
"sourcesContent": ["export * from './tamagui.config'\nexport * from './media'\nexport * from './createGenericFont'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,6BAAd;AACA,wBAAc,oBADd;AAEA,wBAAc,gCAFd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/media.js
CHANGED
|
File without changes
|
package/dist/cjs/media.js.map
CHANGED
|
File without changes
|
|
@@ -15,6 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
20
|
var tamagui_config_exports = {};
|
|
20
21
|
__export(tamagui_config_exports, {
|
|
@@ -28,6 +29,7 @@ var import_theme_base = require("@tamagui/theme-base");
|
|
|
28
29
|
var import_animations = require("./animations");
|
|
29
30
|
var import_createGenericFont = require("./createGenericFont");
|
|
30
31
|
var import_media = require("./media");
|
|
32
|
+
__reExport(tamagui_config_exports, require("./animations"), module.exports);
|
|
31
33
|
const silkscreenFont = (0, import_font_silkscreen.createSilkscreenFont)();
|
|
32
34
|
const headingFont = (0, import_font_inter.createInterFont)({
|
|
33
35
|
size: {
|
|
@@ -58,7 +60,9 @@ const headingFont = (0, import_font_inter.createInterFont)({
|
|
|
58
60
|
15: -4
|
|
59
61
|
}
|
|
60
62
|
}, { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) });
|
|
61
|
-
const bodyFont = (0, import_font_inter.createInterFont)({
|
|
63
|
+
const bodyFont = (0, import_font_inter.createInterFont)({
|
|
64
|
+
family: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
65
|
+
}, {
|
|
62
66
|
sizeSize: (size) => Math.round(size),
|
|
63
67
|
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 4))
|
|
64
68
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tamagui.config.ts"],
|
|
4
|
-
"sourcesContent": ["import { createInterFont } from '@tamagui/font-inter'\nimport { createSilkscreenFont } from '@tamagui/font-silkscreen'\nimport { shorthands } from '@tamagui/shorthands'\nimport { themes, tokens } from '@tamagui/theme-base'\n\nimport { animations } from './animations'\nimport { createGenericFont } from './createGenericFont'\nimport { media } from './media'\n\nconst silkscreenFont = createSilkscreenFont()\nconst headingFont = createInterFont(\n {\n size: {\n 5: 13,\n 6: 15,\n },\n transform: {\n 6: 'uppercase',\n 7: 'none',\n },\n weight: {\n 6: '400',\n 7: '700',\n },\n color: {\n 6: '$colorFocus',\n 7: '$color',\n },\n letterSpacing: {\n 5: 2,\n 6: 1,\n 7: 0,\n 8: 0,\n 9: -1,\n 10: -1,\n 12: -2,\n 14: -3,\n 15: -4,\n },\n },\n { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) }\n)\nconst bodyFont = createInterFont(\n {},\n {\n sizeSize: (size) => Math.round(size),\n sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 4)),\n }\n)\n\nconst monoFont = createGenericFont(\n `\"ui-monospace\", \"SFMono-Regular\", \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace`,\n {\n weight: {\n 1: '500',\n },\n size: {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 14,\n 5: 16,\n 6: 18,\n 7: 20,\n 8: 22,\n 9: 30,\n 10: 42,\n 11: 52,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 124,\n },\n },\n {\n sizeLineHeight: (x) => x * 1.5,\n }\n)\n\nexport const config = {\n defaultTheme: 'light',\n shouldAddPrefersColorThemes: true,\n themeClassNameOnRoot: true,\n animations,\n media,\n shorthands,\n themes,\n tokens,\n fonts: {\n // noto: notoFont as any,\n heading: headingFont,\n body: bodyFont,\n mono: monoFont,\n silkscreen: silkscreenFont,\n },\n}\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { createInterFont } from '@tamagui/font-inter'\nimport { createSilkscreenFont } from '@tamagui/font-silkscreen'\nimport { shorthands } from '@tamagui/shorthands'\nimport { themes, tokens } from '@tamagui/theme-base'\n\nimport { animations } from './animations'\nimport { createGenericFont } from './createGenericFont'\nimport { media } from './media'\n\nexport * from './animations'\n\nconst silkscreenFont = createSilkscreenFont()\nconst headingFont = createInterFont(\n {\n size: {\n 5: 13,\n 6: 15,\n },\n transform: {\n 6: 'uppercase',\n 7: 'none',\n },\n weight: {\n 6: '400',\n 7: '700',\n },\n color: {\n 6: '$colorFocus',\n 7: '$color',\n },\n letterSpacing: {\n 5: 2,\n 6: 1,\n 7: 0,\n 8: 0,\n 9: -1,\n 10: -1,\n 12: -2,\n 14: -3,\n 15: -4,\n },\n },\n { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) }\n)\nconst bodyFont = createInterFont(\n {\n family:\n '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"',\n },\n {\n sizeSize: (size) => Math.round(size),\n sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 4)),\n }\n)\n\nconst monoFont = createGenericFont(\n `\"ui-monospace\", \"SFMono-Regular\", \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace`,\n {\n weight: {\n 1: '500',\n },\n size: {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 14,\n 5: 16,\n 6: 18,\n 7: 20,\n 8: 22,\n 9: 30,\n 10: 42,\n 11: 52,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 124,\n },\n },\n {\n sizeLineHeight: (x) => x * 1.5,\n }\n)\n\nexport const config = {\n defaultTheme: 'light',\n shouldAddPrefersColorThemes: true,\n themeClassNameOnRoot: true,\n animations,\n media,\n shorthands,\n themes,\n tokens,\n fonts: {\n // noto: notoFont as any,\n heading: headingFont,\n body: bodyFont,\n mono: monoFont,\n silkscreen: silkscreenFont,\n },\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAgC;AAChC,6BAAqC;AACrC,wBAA2B;AAC3B,wBAA+B;AAE/B,wBAA2B;AAC3B,+BAAkC;AAClC,mBAAsB;AAEtB,mCAAc,yBATd;AAWA,MAAM,iBAAiB,iDAAqB;AAC5C,MAAM,cAAc,uCAClB;AAAA,EACE,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,WAAW;AAAA,IACT,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AACF,GACA,EAAE,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,QAAO,KAAK,KAAK,EAAE,EAAE,CAC5E;AACA,MAAM,WAAW,uCACf;AAAA,EACE,QACE;AACJ,GACA;AAAA,EACE,UAAU,CAAC,SAAS,KAAK,MAAM,IAAI;AAAA,EACnC,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,SAAQ,KAAK,KAAK,EAAE;AACzE,CACF;AAEA,MAAM,WAAW,gDACf,8FACA;AAAA,EACE,QAAQ;AAAA,IACN,GAAG;AAAA,EACL;AAAA,EACA,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AACF,GACA;AAAA,EACE,gBAAgB,CAAC,MAAM,IAAI;AAC7B,CACF;AAEO,MAAM,SAAS;AAAA,EACpB,cAAc;AAAA,EACd,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,IAEL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY;AAAA,EACd;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createAnimations } from "@tamagui/animations-css";
|
|
2
|
+
const animations = createAnimations({
|
|
3
|
+
bouncy: "ease-in 200ms",
|
|
4
|
+
lazy: "ease-in 600ms",
|
|
5
|
+
slow: "ease-in 500ms",
|
|
6
|
+
quick: "ease-in 100ms",
|
|
7
|
+
tooltip: "ease-in 400ms"
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
animations
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=animations.css.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.css.ts"],
|
|
4
|
+
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-css'\n\nexport const animations = createAnimations({\n bouncy: 'ease-in 200ms',\n lazy: 'ease-in 600ms',\n slow: 'ease-in 500ms',\n quick: 'ease-in 100ms',\n tooltip: 'ease-in 400ms',\n})\n"],
|
|
5
|
+
"mappings": "AAAA;AAEO,MAAM,aAAa,iBAAiB;AAAA,EACzC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/esm/animations.js
CHANGED
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.ts"],
|
|
4
|
-
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-react-native'\n\nexport const animations = createAnimations({\n bouncy: {\n damping: 9,\n mass: 0.9,\n stiffness: 150,\n },\n lazy: {\n damping: 18,\n stiffness: 50,\n },\n slow: {\n damping: 15,\n stiffness: 40,\n },\n quick: {\n damping: 20,\n mass: 1.2,\n stiffness: 250,\n },\n tooltip: {\n damping: 10,\n mass: 0.9,\n stiffness: 100,\n },\n})\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
4
|
+
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-react-native'\n\n// import { Animated } from 'react-native-web-lite'\n// // @ts-ignore\n// import * as AnimatedImpl from 'react-native-web-lite/animated'\n\n// // TODO more work...\n\n// Animated.installAnimated(AnimatedImpl)\n\nexport const animations = createAnimations({\n bouncy: {\n damping: 9,\n mass: 0.9,\n stiffness: 150,\n },\n lazy: {\n damping: 18,\n stiffness: 50,\n },\n slow: {\n damping: 15,\n stiffness: 40,\n },\n quick: {\n damping: 20,\n mass: 1.2,\n stiffness: 250,\n },\n tooltip: {\n damping: 10,\n mass: 0.9,\n stiffness: 100,\n },\n})\n"],
|
|
5
|
+
"mappings": "AAAA;AAUO,MAAM,aAAa,iBAAiB;AAAA,EACzC,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["export * from './tamagui.config'\nexport * from './
|
|
5
|
-
"mappings": "AAAA;AACA;AACA;
|
|
4
|
+
"sourcesContent": ["export * from './tamagui.config'\nexport * from './media'\nexport * from './createGenericFont'\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AACA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/media.js
CHANGED
|
File without changes
|
package/dist/esm/media.js.map
CHANGED
|
File without changes
|
|
@@ -5,6 +5,7 @@ import { themes, tokens } from "@tamagui/theme-base";
|
|
|
5
5
|
import { animations } from "./animations";
|
|
6
6
|
import { createGenericFont } from "./createGenericFont";
|
|
7
7
|
import { media } from "./media";
|
|
8
|
+
export * from "./animations";
|
|
8
9
|
const silkscreenFont = createSilkscreenFont();
|
|
9
10
|
const headingFont = createInterFont({
|
|
10
11
|
size: {
|
|
@@ -35,7 +36,9 @@ const headingFont = createInterFont({
|
|
|
35
36
|
15: -4
|
|
36
37
|
}
|
|
37
38
|
}, { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) });
|
|
38
|
-
const bodyFont = createInterFont({
|
|
39
|
+
const bodyFont = createInterFont({
|
|
40
|
+
family: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
41
|
+
}, {
|
|
39
42
|
sizeSize: (size) => Math.round(size),
|
|
40
43
|
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 4))
|
|
41
44
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tamagui.config.ts"],
|
|
4
|
-
"sourcesContent": ["import { createInterFont } from '@tamagui/font-inter'\nimport { createSilkscreenFont } from '@tamagui/font-silkscreen'\nimport { shorthands } from '@tamagui/shorthands'\nimport { themes, tokens } from '@tamagui/theme-base'\n\nimport { animations } from './animations'\nimport { createGenericFont } from './createGenericFont'\nimport { media } from './media'\n\nconst silkscreenFont = createSilkscreenFont()\nconst headingFont = createInterFont(\n {\n size: {\n 5: 13,\n 6: 15,\n },\n transform: {\n 6: 'uppercase',\n 7: 'none',\n },\n weight: {\n 6: '400',\n 7: '700',\n },\n color: {\n 6: '$colorFocus',\n 7: '$color',\n },\n letterSpacing: {\n 5: 2,\n 6: 1,\n 7: 0,\n 8: 0,\n 9: -1,\n 10: -1,\n 12: -2,\n 14: -3,\n 15: -4,\n },\n },\n { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) }\n)\nconst bodyFont = createInterFont(\n {},\n {\n sizeSize: (size) => Math.round(size),\n sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 4)),\n }\n)\n\nconst monoFont = createGenericFont(\n `\"ui-monospace\", \"SFMono-Regular\", \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace`,\n {\n weight: {\n 1: '500',\n },\n size: {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 14,\n 5: 16,\n 6: 18,\n 7: 20,\n 8: 22,\n 9: 30,\n 10: 42,\n 11: 52,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 124,\n },\n },\n {\n sizeLineHeight: (x) => x * 1.5,\n }\n)\n\nexport const config = {\n defaultTheme: 'light',\n shouldAddPrefersColorThemes: true,\n themeClassNameOnRoot: true,\n animations,\n media,\n shorthands,\n themes,\n tokens,\n fonts: {\n // noto: notoFont as any,\n heading: headingFont,\n body: bodyFont,\n mono: monoFont,\n silkscreen: silkscreenFont,\n },\n}\n"],
|
|
5
|
-
"mappings": "AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA,MAAM,iBAAiB,qBAAqB;AAC5C,MAAM,cAAc,gBAClB;AAAA,EACE,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,WAAW;AAAA,IACT,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AACF,GACA,EAAE,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,QAAO,KAAK,KAAK,EAAE,EAAE,CAC5E;AACA,MAAM,WAAW,gBACf,
|
|
4
|
+
"sourcesContent": ["import { createInterFont } from '@tamagui/font-inter'\nimport { createSilkscreenFont } from '@tamagui/font-silkscreen'\nimport { shorthands } from '@tamagui/shorthands'\nimport { themes, tokens } from '@tamagui/theme-base'\n\nimport { animations } from './animations'\nimport { createGenericFont } from './createGenericFont'\nimport { media } from './media'\n\nexport * from './animations'\n\nconst silkscreenFont = createSilkscreenFont()\nconst headingFont = createInterFont(\n {\n size: {\n 5: 13,\n 6: 15,\n },\n transform: {\n 6: 'uppercase',\n 7: 'none',\n },\n weight: {\n 6: '400',\n 7: '700',\n },\n color: {\n 6: '$colorFocus',\n 7: '$color',\n },\n letterSpacing: {\n 5: 2,\n 6: 1,\n 7: 0,\n 8: 0,\n 9: -1,\n 10: -1,\n 12: -2,\n 14: -3,\n 15: -4,\n },\n },\n { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) }\n)\nconst bodyFont = createInterFont(\n {\n family:\n '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"',\n },\n {\n sizeSize: (size) => Math.round(size),\n sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 4)),\n }\n)\n\nconst monoFont = createGenericFont(\n `\"ui-monospace\", \"SFMono-Regular\", \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace`,\n {\n weight: {\n 1: '500',\n },\n size: {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 14,\n 5: 16,\n 6: 18,\n 7: 20,\n 8: 22,\n 9: 30,\n 10: 42,\n 11: 52,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 124,\n },\n },\n {\n sizeLineHeight: (x) => x * 1.5,\n }\n)\n\nexport const config = {\n defaultTheme: 'light',\n shouldAddPrefersColorThemes: true,\n themeClassNameOnRoot: true,\n animations,\n media,\n shorthands,\n themes,\n tokens,\n fonts: {\n // noto: notoFont as any,\n heading: headingFont,\n body: bodyFont,\n mono: monoFont,\n silkscreen: silkscreenFont,\n },\n}\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA,MAAM,iBAAiB,qBAAqB;AAC5C,MAAM,cAAc,gBAClB;AAAA,EACE,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,WAAW;AAAA,IACT,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AACF,GACA,EAAE,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,QAAO,KAAK,KAAK,EAAE,EAAE,CAC5E;AACA,MAAM,WAAW,gBACf;AAAA,EACE,QACE;AACJ,GACA;AAAA,EACE,UAAU,CAAC,SAAS,KAAK,MAAM,IAAI;AAAA,EACnC,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,SAAQ,KAAK,KAAK,EAAE;AACzE,CACF;AAEA,MAAM,WAAW,kBACf,8FACA;AAAA,EACE,QAAQ;AAAA,IACN,GAAG;AAAA,EACL;AAAA,EACA,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AACF,GACA;AAAA,EACE,gBAAgB,CAAC,MAAM,IAAI;AAC7B,CACF;AAEO,MAAM,SAAS;AAAA,EACpB,cAAc;AAAA,EACd,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,IAEL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY;AAAA,EACd;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/config-base",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.143",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
7
|
-
"
|
|
7
|
+
"sideEffects": false,
|
|
8
8
|
"files": [
|
|
9
9
|
"src",
|
|
10
10
|
"types",
|
|
@@ -18,17 +18,24 @@
|
|
|
18
18
|
"clean": "tamagui-build clean",
|
|
19
19
|
"clean:build": "tamagui-build clean:build"
|
|
20
20
|
},
|
|
21
|
+
"exports": {
|
|
22
|
+
"./package.json": "./package.json",
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/esm/index.js",
|
|
25
|
+
"require": "./dist/cjs/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
21
28
|
"dependencies": {
|
|
22
|
-
"@tamagui/animations-
|
|
23
|
-
"@tamagui/colors": "^1.0.1-beta.
|
|
24
|
-
"@tamagui/core": "^1.0.1-beta.
|
|
25
|
-
"@tamagui/font-inter": "^1.0.1-beta.
|
|
26
|
-
"@tamagui/font-silkscreen": "^1.0.1-beta.
|
|
27
|
-
"@tamagui/shorthands": "^1.0.1-beta.
|
|
28
|
-
"@tamagui/theme-base": "^1.0.1-beta.
|
|
29
|
+
"@tamagui/animations-reanimated": "^1.0.1-beta.143",
|
|
30
|
+
"@tamagui/colors": "^1.0.1-beta.143",
|
|
31
|
+
"@tamagui/core": "^1.0.1-beta.143",
|
|
32
|
+
"@tamagui/font-inter": "^1.0.1-beta.143",
|
|
33
|
+
"@tamagui/font-silkscreen": "^1.0.1-beta.143",
|
|
34
|
+
"@tamagui/shorthands": "^1.0.1-beta.143",
|
|
35
|
+
"@tamagui/theme-base": "^1.0.1-beta.143"
|
|
29
36
|
},
|
|
30
37
|
"devDependencies": {
|
|
31
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
38
|
+
"@tamagui/build": "^1.0.1-beta.143"
|
|
32
39
|
},
|
|
33
40
|
"publishConfig": {
|
|
34
41
|
"access": "public"
|
package/src/animations.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { createAnimations } from '@tamagui/animations-react-native'
|
|
2
2
|
|
|
3
|
+
// import { Animated } from 'react-native-web-lite'
|
|
4
|
+
// // @ts-ignore
|
|
5
|
+
// import * as AnimatedImpl from 'react-native-web-lite/animated'
|
|
6
|
+
|
|
7
|
+
// // TODO more work...
|
|
8
|
+
|
|
9
|
+
// Animated.installAnimated(AnimatedImpl)
|
|
10
|
+
|
|
3
11
|
export const animations = createAnimations({
|
|
4
12
|
bouncy: {
|
|
5
13
|
damping: 9,
|
package/src/index.tsx
CHANGED
package/src/tamagui.config.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { animations } from './animations'
|
|
|
7
7
|
import { createGenericFont } from './createGenericFont'
|
|
8
8
|
import { media } from './media'
|
|
9
9
|
|
|
10
|
+
export * from './animations'
|
|
11
|
+
|
|
10
12
|
const silkscreenFont = createSilkscreenFont()
|
|
11
13
|
const headingFont = createInterFont(
|
|
12
14
|
{
|
|
@@ -41,7 +43,10 @@ const headingFont = createInterFont(
|
|
|
41
43
|
{ sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) }
|
|
42
44
|
)
|
|
43
45
|
const bodyFont = createInterFont(
|
|
44
|
-
{
|
|
46
|
+
{
|
|
47
|
+
family:
|
|
48
|
+
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
|
|
49
|
+
},
|
|
45
50
|
{
|
|
46
51
|
sizeSize: (size) => Math.round(size),
|
|
47
52
|
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 4)),
|