@tamagui/config 1.61.3 → 1.62.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/animations.css.js +6 -9
- package/dist/cjs/animations.css.js.map +1 -1
- package/dist/cjs/animations.css.native.js +35 -0
- package/dist/cjs/animations.css.native.js.map +6 -0
- package/dist/cjs/animations.js +10 -9
- package/dist/cjs/animations.js.map +1 -1
- package/dist/cjs/animations.native.js +60 -0
- package/dist/cjs/animations.native.js.map +6 -0
- package/dist/cjs/animations.reanimated.js +10 -9
- package/dist/cjs/animations.reanimated.js.map +1 -1
- package/dist/cjs/animations.reanimated.native.js +65 -0
- package/dist/cjs/animations.reanimated.native.js.map +6 -0
- package/dist/cjs/config.js +9 -17
- package/dist/cjs/config.js.map +1 -1
- package/dist/cjs/config.native.js +43 -0
- package/dist/cjs/config.native.js.map +6 -0
- package/dist/cjs/createGenericFont.js +5 -9
- package/dist/cjs/createGenericFont.js.map +1 -1
- package/dist/cjs/createGenericFont.native.js +59 -0
- package/dist/cjs/createGenericFont.native.js.map +6 -0
- package/dist/cjs/fonts.js +12 -23
- package/dist/cjs/fonts.js.map +1 -1
- package/dist/cjs/fonts.native.js +113 -0
- package/dist/cjs/fonts.native.js.map +6 -0
- package/dist/cjs/index.js +7 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +38 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/index.reanimated.js +7 -13
- package/dist/cjs/index.reanimated.js.map +1 -1
- package/dist/cjs/index.reanimated.native.js +36 -0
- package/dist/cjs/index.reanimated.native.js.map +6 -0
- package/dist/cjs/media.js +13 -20
- package/dist/cjs/media.js.map +1 -1
- package/dist/cjs/media.native.js +54 -0
- package/dist/cjs/media.native.js.map +6 -0
- package/dist/esm/animations.css.js +1 -0
- package/dist/esm/animations.css.js.map +1 -1
- package/dist/esm/animations.js +5 -0
- package/dist/esm/animations.js.map +1 -1
- package/dist/esm/animations.reanimated.js +5 -0
- package/dist/esm/animations.reanimated.js.map +1 -1
- package/dist/esm/config.js +2 -2
- package/dist/esm/fonts.js +5 -9
- package/dist/esm/fonts.js.map +1 -1
- package/dist/esm/media.js +8 -11
- package/dist/esm/media.js.map +1 -1
- package/package.json +11 -11
- package/src/animations.css.ts +1 -0
- package/src/animations.reanimated.ts +5 -0
- package/src/animations.ts +5 -0
- package/types/animations.css.d.ts +1 -0
- package/types/animations.css.d.ts.map +1 -1
- package/types/animations.d.ts +5 -0
- package/types/animations.d.ts.map +1 -1
- package/types/animations.reanimated.d.ts +5 -0
- package/types/animations.reanimated.d.ts.map +1 -1
- package/types/config.d.ts +3 -3
- package/types/fonts.d.ts +3 -3
- package/types/index.d.ts +8 -3
- package/types/index.d.ts.map +1 -1
- package/types/index.reanimated.d.ts +8 -3
- package/types/index.reanimated.d.ts.map +1 -1
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var animations_css_exports = {};
|
|
20
16
|
__export(animations_css_exports, {
|
|
21
17
|
animations: () => animations
|
|
@@ -27,6 +23,7 @@ const animations = (0, import_animations_css.createAnimations)({
|
|
|
27
23
|
bouncy: "ease-in 200ms",
|
|
28
24
|
lazy: "ease-in 600ms",
|
|
29
25
|
slow: "ease-in 500ms",
|
|
26
|
+
medium: "ease-in 300ms",
|
|
30
27
|
quick: "ease-in 100ms",
|
|
31
28
|
tooltip: "ease-in 400ms"
|
|
32
29
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.css.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAiC;AAE1B,MAAM,iBAAa,wCAAiB;AAAA,EACzC,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AACX,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var animations_css_exports = {};
|
|
17
|
+
__export(animations_css_exports, {
|
|
18
|
+
animations: () => animations
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(animations_css_exports);
|
|
21
|
+
var import_animations_css = require("@tamagui/animations-css");
|
|
22
|
+
const animations = (0, import_animations_css.createAnimations)({
|
|
23
|
+
"100ms": "ease-in 100ms",
|
|
24
|
+
bouncy: "ease-in 200ms",
|
|
25
|
+
lazy: "ease-in 600ms",
|
|
26
|
+
slow: "ease-in 500ms",
|
|
27
|
+
medium: "ease-in 300ms",
|
|
28
|
+
quick: "ease-in 100ms",
|
|
29
|
+
tooltip: "ease-in 400ms"
|
|
30
|
+
});
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
animations
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=animations.css.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.css.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAiC;AAE1B,MAAM,iBAAa,wCAAiB;AAAA,EACzC,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AACX,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/animations.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var animations_exports = {};
|
|
20
16
|
__export(animations_exports, {
|
|
21
17
|
animations: () => animations
|
|
@@ -36,6 +32,11 @@ const animations = (0, import_animations_react_native.createAnimations)({
|
|
|
36
32
|
damping: 18,
|
|
37
33
|
stiffness: 50
|
|
38
34
|
},
|
|
35
|
+
medium: {
|
|
36
|
+
damping: 15,
|
|
37
|
+
stiffness: 120,
|
|
38
|
+
mass: 1
|
|
39
|
+
},
|
|
39
40
|
slow: {
|
|
40
41
|
damping: 15,
|
|
41
42
|
stiffness: 40
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAiC;AAE1B,MAAM,iBAAa,iDAAiB;AAAA,EACzC,SAAS;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA,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,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,MAAM;AAAA,EACR;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;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var animations_exports = {};
|
|
17
|
+
__export(animations_exports, {
|
|
18
|
+
animations: () => animations
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(animations_exports);
|
|
21
|
+
var import_animations_react_native = require("@tamagui/animations-react-native");
|
|
22
|
+
const animations = (0, import_animations_react_native.createAnimations)({
|
|
23
|
+
"100ms": {
|
|
24
|
+
type: "timing",
|
|
25
|
+
duration: 100
|
|
26
|
+
},
|
|
27
|
+
bouncy: {
|
|
28
|
+
damping: 9,
|
|
29
|
+
mass: 0.9,
|
|
30
|
+
stiffness: 150
|
|
31
|
+
},
|
|
32
|
+
lazy: {
|
|
33
|
+
damping: 18,
|
|
34
|
+
stiffness: 50
|
|
35
|
+
},
|
|
36
|
+
medium: {
|
|
37
|
+
damping: 15,
|
|
38
|
+
stiffness: 120,
|
|
39
|
+
mass: 1
|
|
40
|
+
},
|
|
41
|
+
slow: {
|
|
42
|
+
damping: 15,
|
|
43
|
+
stiffness: 40
|
|
44
|
+
},
|
|
45
|
+
quick: {
|
|
46
|
+
damping: 20,
|
|
47
|
+
mass: 1.2,
|
|
48
|
+
stiffness: 250
|
|
49
|
+
},
|
|
50
|
+
tooltip: {
|
|
51
|
+
damping: 10,
|
|
52
|
+
mass: 0.9,
|
|
53
|
+
stiffness: 100
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
animations
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=animations.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAiC;AAE1B,MAAM,iBAAa,iDAAiB;AAAA,EACzC,SAAS;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA,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,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,MAAM;AAAA,EACR;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;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var animations_reanimated_exports = {};
|
|
20
16
|
__export(animations_reanimated_exports, {
|
|
21
17
|
animations: () => animations
|
|
@@ -38,6 +34,11 @@ const animations = (0, import_animations_moti.createAnimations)({
|
|
|
38
34
|
damping: 18,
|
|
39
35
|
stiffness: 50
|
|
40
36
|
},
|
|
37
|
+
medium: {
|
|
38
|
+
damping: 15,
|
|
39
|
+
stiffness: 120,
|
|
40
|
+
mass: 1
|
|
41
|
+
},
|
|
41
42
|
slow: {
|
|
42
43
|
type: "spring",
|
|
43
44
|
damping: 15,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.reanimated.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAiC;AAE1B,MAAM,iBAAa,yCAAiB;AAAA,EACzC,SAAS;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,MAAM;AAAA,EACR;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var animations_reanimated_exports = {};
|
|
17
|
+
__export(animations_reanimated_exports, {
|
|
18
|
+
animations: () => animations
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(animations_reanimated_exports);
|
|
21
|
+
var import_animations_moti = require("@tamagui/animations-moti");
|
|
22
|
+
const animations = (0, import_animations_moti.createAnimations)({
|
|
23
|
+
"100ms": {
|
|
24
|
+
type: "timing",
|
|
25
|
+
duration: 100
|
|
26
|
+
},
|
|
27
|
+
bouncy: {
|
|
28
|
+
type: "spring",
|
|
29
|
+
damping: 9,
|
|
30
|
+
mass: 0.9,
|
|
31
|
+
stiffness: 150
|
|
32
|
+
},
|
|
33
|
+
lazy: {
|
|
34
|
+
type: "spring",
|
|
35
|
+
damping: 18,
|
|
36
|
+
stiffness: 50
|
|
37
|
+
},
|
|
38
|
+
medium: {
|
|
39
|
+
damping: 15,
|
|
40
|
+
stiffness: 120,
|
|
41
|
+
mass: 1
|
|
42
|
+
},
|
|
43
|
+
slow: {
|
|
44
|
+
type: "spring",
|
|
45
|
+
damping: 15,
|
|
46
|
+
stiffness: 40
|
|
47
|
+
},
|
|
48
|
+
quick: {
|
|
49
|
+
type: "spring",
|
|
50
|
+
damping: 20,
|
|
51
|
+
mass: 1.2,
|
|
52
|
+
stiffness: 250
|
|
53
|
+
},
|
|
54
|
+
tooltip: {
|
|
55
|
+
type: "spring",
|
|
56
|
+
damping: 10,
|
|
57
|
+
mass: 0.9,
|
|
58
|
+
stiffness: 100
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
animations
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=animations.reanimated.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.reanimated.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAiC;AAE1B,MAAM,iBAAa,yCAAiB;AAAA,EACzC,SAAS;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,MAAM;AAAA,EACR;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/config.js
CHANGED
|
@@ -1,36 +1,28 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
|
-
};
|
|
18
|
-
var
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
13
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
20
15
|
var config_exports = {};
|
|
21
16
|
__export(config_exports, {
|
|
22
17
|
configWithoutAnimations: () => configWithoutAnimations
|
|
23
18
|
});
|
|
24
19
|
module.exports = __toCommonJS(config_exports);
|
|
25
|
-
var import_shorthands = require("@tamagui/shorthands");
|
|
26
|
-
var import_themes = require("@tamagui/themes");
|
|
27
|
-
var import_fonts = require("./fonts");
|
|
28
|
-
var import_media = require("./media");
|
|
20
|
+
var import_shorthands = require("@tamagui/shorthands"), import_themes = require("@tamagui/themes"), import_fonts = require("./fonts"), import_media = require("./media");
|
|
29
21
|
__reExport(config_exports, require("./animations"), module.exports);
|
|
30
22
|
const configWithoutAnimations = {
|
|
31
23
|
defaultFont: "body",
|
|
32
|
-
shouldAddPrefersColorThemes:
|
|
33
|
-
themeClassNameOnRoot:
|
|
24
|
+
shouldAddPrefersColorThemes: !0,
|
|
25
|
+
themeClassNameOnRoot: !0,
|
|
34
26
|
themes: import_themes.themes,
|
|
35
27
|
media: import_media.media,
|
|
36
28
|
shorthands: import_shorthands.shorthands,
|
package/dist/cjs/config.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/config.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,gBAA+B,4BAG/B,eAAsB,oBACtB,eAA+C;AAE/C,2BAAc,yBAPd;AASO,MAAM,0BAA0B;AAAA,EACrC,aAAa;AAAA,EACb,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,yBAAyB;AAAA,EACzB,iBAAiB,CAAC,UAChB,MAAM,SACF;AAAA,IACE,iBAAiB,MAAM;AAAA,IACvB,OAAO,MAAM;AAAA,EACf,IACA;AACR;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var config_exports = {};
|
|
17
|
+
__export(config_exports, {
|
|
18
|
+
configWithoutAnimations: () => configWithoutAnimations
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(config_exports);
|
|
21
|
+
var import_shorthands = require("@tamagui/shorthands"), import_themes = require("@tamagui/themes"), import_fonts = require("./fonts"), import_media = require("./media");
|
|
22
|
+
__reExport(config_exports, require("./animations"), module.exports);
|
|
23
|
+
const configWithoutAnimations = {
|
|
24
|
+
defaultFont: "body",
|
|
25
|
+
shouldAddPrefersColorThemes: !0,
|
|
26
|
+
themeClassNameOnRoot: !0,
|
|
27
|
+
themes: import_themes.themes,
|
|
28
|
+
media: import_media.media,
|
|
29
|
+
shorthands: import_shorthands.shorthands,
|
|
30
|
+
tokens: import_themes.tokens,
|
|
31
|
+
fonts: import_fonts.fonts,
|
|
32
|
+
mediaQueryDefaultActive: import_media.mediaQueryDefaultActive,
|
|
33
|
+
selectionStyles: (theme) => theme.color5 ? {
|
|
34
|
+
backgroundColor: theme.color5,
|
|
35
|
+
color: theme.color11
|
|
36
|
+
} : null
|
|
37
|
+
};
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
configWithoutAnimations,
|
|
41
|
+
...require("./animations")
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/config.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,gBAA+B,4BAG/B,eAAsB,oBACtB,eAA+C;AAE/C,2BAAc,yBAPd;AASO,MAAM,0BAA0B;AAAA,EACrC,aAAa;AAAA,EACb,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,yBAAyB;AAAA,EACzB,iBAAiB,CAAC,UAChB,MAAM,SACF;AAAA,IACE,iBAAiB,MAAM;AAAA,IACvB,OAAO,MAAM;AAAA,EACf,IACA;AACR;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var createGenericFont_exports = {};
|
|
20
16
|
__export(createGenericFont_exports, {
|
|
21
17
|
createGenericFont: () => createGenericFont
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createGenericFont.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAwC;AAExC,MAAM,mBAAmB;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,SAAS,kBACd,QACA,OAAmB,CAAC,GACpB;AAAA,EACE,iBAAiB,CAAC,QAAQ,MAAM;AAClC,IAEI,CAAC,GACF;AACH,QAAM,OAAO,KAAK,QAAQ;AAC1B,aAAO,uBAAW;AAAA,IAChB;AAAA,IACA;AAAA,IACA,YAAY,OAAO;AAAA,MACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA,IAC9D;AAAA,IACA,QAAQ,EAAE,GAAG,MAAM;AAAA,IACnB,eAAe,EAAE,GAAG,EAAE;AAAA,IACtB,GAAI;AAAA,EACN,CAAC;AACH;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var createGenericFont_exports = {};
|
|
17
|
+
__export(createGenericFont_exports, {
|
|
18
|
+
createGenericFont: () => createGenericFont
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(createGenericFont_exports);
|
|
21
|
+
var import_web = require("@tamagui/web");
|
|
22
|
+
const genericFontSizes = {
|
|
23
|
+
1: 10,
|
|
24
|
+
2: 11,
|
|
25
|
+
3: 12,
|
|
26
|
+
4: 14,
|
|
27
|
+
5: 15,
|
|
28
|
+
6: 16,
|
|
29
|
+
7: 20,
|
|
30
|
+
8: 22,
|
|
31
|
+
9: 30,
|
|
32
|
+
10: 42,
|
|
33
|
+
11: 52,
|
|
34
|
+
12: 62,
|
|
35
|
+
13: 72,
|
|
36
|
+
14: 92,
|
|
37
|
+
15: 114,
|
|
38
|
+
16: 124
|
|
39
|
+
};
|
|
40
|
+
function createGenericFont(family, font = {}, {
|
|
41
|
+
sizeLineHeight = (val) => val * 1.35
|
|
42
|
+
} = {}) {
|
|
43
|
+
const size = font.size || genericFontSizes;
|
|
44
|
+
return (0, import_web.createFont)({
|
|
45
|
+
family,
|
|
46
|
+
size,
|
|
47
|
+
lineHeight: Object.fromEntries(
|
|
48
|
+
Object.entries(size).map(([k, v]) => [k, sizeLineHeight(+v)])
|
|
49
|
+
),
|
|
50
|
+
weight: { 0: "300" },
|
|
51
|
+
letterSpacing: { 4: 0 },
|
|
52
|
+
...font
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
createGenericFont
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=createGenericFont.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/createGenericFont.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAwC;AAExC,MAAM,mBAAmB;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,SAAS,kBACd,QACA,OAAmB,CAAC,GACpB;AAAA,EACE,iBAAiB,CAAC,QAAQ,MAAM;AAClC,IAEI,CAAC,GACF;AACH,QAAM,OAAO,KAAK,QAAQ;AAC1B,aAAO,uBAAW;AAAA,IAChB;AAAA,IACA;AAAA,IACA,YAAY,OAAO;AAAA,MACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA,IAC9D;AAAA,IACA,QAAQ,EAAE,GAAG,MAAM;AAAA,IACnB,eAAe,EAAE,GAAG,EAAE;AAAA,IACtB,GAAI;AAAA,EACN,CAAC;AACH;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/fonts.js
CHANGED
|
@@ -1,33 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
|
-
};
|
|
18
|
-
var
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
13
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
20
15
|
var fonts_exports = {};
|
|
21
16
|
__export(fonts_exports, {
|
|
22
17
|
fonts: () => fonts
|
|
23
18
|
});
|
|
24
19
|
module.exports = __toCommonJS(fonts_exports);
|
|
25
|
-
var import_font_inter = require("@tamagui/font-inter");
|
|
26
|
-
var import_font_silkscreen = require("@tamagui/font-silkscreen");
|
|
27
|
-
var import_createGenericFont = require("./createGenericFont");
|
|
20
|
+
var import_font_inter = require("@tamagui/font-inter"), import_font_silkscreen = require("@tamagui/font-silkscreen"), import_createGenericFont = require("./createGenericFont");
|
|
28
21
|
__reExport(fonts_exports, require("./animations"), module.exports);
|
|
29
|
-
const silkscreenFont = (0, import_font_silkscreen.createSilkscreenFont)()
|
|
30
|
-
const headingFont = (0, import_font_inter.createInterFont)(
|
|
22
|
+
const silkscreenFont = (0, import_font_silkscreen.createSilkscreenFont)(), headingFont = (0, import_font_inter.createInterFont)(
|
|
31
23
|
{
|
|
32
24
|
size: {
|
|
33
25
|
5: 13,
|
|
@@ -66,8 +58,7 @@ const headingFont = (0, import_font_inter.createInterFont)(
|
|
|
66
58
|
}
|
|
67
59
|
},
|
|
68
60
|
{ sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 5)) }
|
|
69
|
-
)
|
|
70
|
-
const bodyFont = (0, import_font_inter.createInterFont)(
|
|
61
|
+
), bodyFont = (0, import_font_inter.createInterFont)(
|
|
71
62
|
{
|
|
72
63
|
weight: {
|
|
73
64
|
1: "400",
|
|
@@ -78,9 +69,8 @@ const bodyFont = (0, import_font_inter.createInterFont)(
|
|
|
78
69
|
sizeSize: (size) => Math.round(size),
|
|
79
70
|
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 8 : 4))
|
|
80
71
|
}
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
`"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`,
|
|
72
|
+
), monoFont = (0, import_createGenericFont.createGenericFont)(
|
|
73
|
+
'"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',
|
|
84
74
|
{
|
|
85
75
|
weight: {
|
|
86
76
|
1: "500"
|
|
@@ -107,8 +97,7 @@ const monoFont = (0, import_createGenericFont.createGenericFont)(
|
|
|
107
97
|
{
|
|
108
98
|
sizeLineHeight: (x) => x * 1.5
|
|
109
99
|
}
|
|
110
|
-
)
|
|
111
|
-
const fonts = {
|
|
100
|
+
), fonts = {
|
|
112
101
|
// noto: notoFont as any,
|
|
113
102
|
heading: headingFont,
|
|
114
103
|
body: bodyFont,
|
package/dist/cjs/fonts.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/fonts.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAgC,gCAChC,yBAAqC,qCAErC,2BAAkC;AAElC,0BAAc,yBALd;AAOA,MAAM,qBAAiB,6CAAqB,GAEtC,kBAAc;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,MACJ,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,IACN;AAAA,IACA,WAAW;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA;AAAA,IAEA,MAAM;AAAA,MACJ,KAAK,EAAE,QAAQ,YAAY;AAAA,MAC3B,KAAK,EAAE,QAAQ,YAAY;AAAA,MAC3B,KAAK,EAAE,QAAQ,YAAY;AAAA,IAC7B;AAAA,EACF;AAAA,EACA,EAAE,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,OAAO,OAAO,KAAK,KAAK,EAAE,EAAE;AAC5E,GAEM,eAAW;AAAA,EACf;AAAA,IACE,QAAQ;AAAA,MACN,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,EACF;AAAA,EACA;AAAA,IACE,UAAU,CAAC,SAAS,KAAK,MAAM,IAAI;AAAA,IACnC,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,OAAO,QAAQ,KAAK,IAAI,EAAE;AAAA,EACxE;AACF,GAEM,eAAW;AAAA,EACf;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,MAAM;AAAA,MACJ,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,EACF;AAAA,EACA;AAAA,IACE,gBAAgB,CAAC,MAAM,IAAI;AAAA,EAC7B;AACF,GAEa,QAAQ;AAAA;AAAA,EAEnB,SAAS;AAAA,EACT,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AACd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|