@tamagui/config 3.0.0-beta.924.1 → 3.0.1
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.cjs +2 -26
- package/dist/cjs/animations-motion.cjs +2 -87
- package/dist/cjs/animations-motion.native.cjs +2 -87
- package/dist/cjs/animations-motion.native.js +2 -87
- package/dist/cjs/animations-motion.native.js.map +1 -1
- package/dist/cjs/animations-reanimated.cjs +2 -101
- package/dist/cjs/animations-reanimated.native.cjs +2 -101
- package/dist/cjs/animations-reanimated.native.js +2 -101
- package/dist/cjs/animations-reanimated.native.js.map +1 -1
- package/dist/cjs/animations-rn.cjs +2 -111
- package/dist/cjs/animations-rn.native.cjs +2 -111
- package/dist/cjs/animations-rn.native.js +2 -111
- package/dist/cjs/animations-rn.native.js.map +1 -1
- package/dist/cjs/settings.cjs +1 -0
- package/dist/cjs/settings.native.cjs +1 -0
- package/dist/cjs/settings.native.js +1 -0
- package/dist/cjs/settings.native.js.map +1 -1
- package/dist/cjs/v5-base.cjs +73 -2
- package/dist/cjs/v5-base.native.cjs +73 -2
- package/dist/cjs/v5-base.native.js +73 -2
- package/dist/cjs/v5-base.native.js.map +1 -1
- package/dist/cjs/v5-fonts.cjs +6 -1
- package/dist/cjs/v5-fonts.native.cjs +6 -1
- package/dist/cjs/v5-fonts.native.js +6 -1
- package/dist/cjs/v5-fonts.native.js.map +1 -1
- package/dist/cjs/v6-base.cjs +107 -11
- package/dist/cjs/v6-base.native.cjs +109 -11
- package/dist/cjs/v6-base.native.js +109 -11
- package/dist/cjs/v6-base.native.js.map +1 -1
- package/dist/cjs/v6-tailwind-scales.generated.cjs +12 -0
- package/dist/cjs/v6-tailwind-scales.generated.native.cjs +12 -0
- package/dist/cjs/v6-tailwind-scales.generated.native.js +12 -0
- package/dist/cjs/v6-tailwind-scales.generated.native.js.map +1 -1
- package/dist/cjs/v6-themes.cjs +2 -1
- package/dist/cjs/v6-themes.native.cjs +2 -1
- package/dist/cjs/v6-themes.native.js +2 -1
- package/dist/cjs/v6-themes.native.js.map +1 -1
- package/dist/esm/animations-css.mjs +2 -26
- package/dist/esm/animations-css.mjs.map +1 -1
- package/dist/esm/animations-motion.mjs +2 -87
- package/dist/esm/animations-motion.mjs.map +1 -1
- package/dist/esm/animations-motion.native.js +2 -87
- package/dist/esm/animations-motion.native.js.map +1 -1
- package/dist/esm/animations-reanimated.mjs +2 -101
- package/dist/esm/animations-reanimated.mjs.map +1 -1
- package/dist/esm/animations-reanimated.native.js +2 -101
- package/dist/esm/animations-reanimated.native.js.map +1 -1
- package/dist/esm/animations-rn.mjs +2 -111
- package/dist/esm/animations-rn.mjs.map +1 -1
- package/dist/esm/animations-rn.native.js +2 -111
- package/dist/esm/animations-rn.native.js.map +1 -1
- package/dist/esm/settings.mjs +1 -0
- package/dist/esm/settings.mjs.map +1 -1
- package/dist/esm/settings.native.js +1 -0
- package/dist/esm/settings.native.js.map +1 -1
- package/dist/esm/v5-base.mjs +74 -4
- package/dist/esm/v5-base.mjs.map +1 -1
- package/dist/esm/v5-base.native.js +74 -4
- package/dist/esm/v5-base.native.js.map +1 -1
- package/dist/esm/v5-fonts.mjs +7 -2
- package/dist/esm/v5-fonts.mjs.map +1 -1
- package/dist/esm/v5-fonts.native.js +7 -2
- package/dist/esm/v5-fonts.native.js.map +1 -1
- package/dist/esm/v6-base.mjs +105 -11
- package/dist/esm/v6-base.mjs.map +1 -1
- package/dist/esm/v6-base.native.js +107 -11
- package/dist/esm/v6-base.native.js.map +1 -1
- package/dist/esm/v6-tailwind-scales.generated.mjs +12 -0
- package/dist/esm/v6-tailwind-scales.generated.mjs.map +1 -1
- package/dist/esm/v6-tailwind-scales.generated.native.js +12 -0
- package/dist/esm/v6-tailwind-scales.generated.native.js.map +1 -1
- package/dist/esm/v6-themes.mjs +2 -1
- package/dist/esm/v6-themes.mjs.map +1 -1
- package/dist/esm/v6-themes.native.js +2 -1
- package/dist/esm/v6-themes.native.js.map +1 -1
- package/package.json +25 -13
- package/src/animations-css.ts +2 -27
- package/src/animations-motion.ts +2 -105
- package/src/animations-reanimated.ts +2 -101
- package/src/animations-rn.ts +2 -111
- package/src/settings.ts +1 -0
- package/src/v5-base.ts +57 -2
- package/src/v5-fonts.ts +14 -7
- package/src/v6-base.ts +104 -10
- package/src/v6-tailwind-scales.generated.ts +12 -0
- package/src/v6-themes.ts +35 -4
- package/types/animations-css.d.ts +104 -44
- package/types/animations-css.d.ts.map +1 -1
- package/types/animations-motion.d.ts +102 -204
- package/types/animations-motion.d.ts.map +1 -1
- package/types/animations-reanimated.d.ts +102 -196
- package/types/animations-reanimated.d.ts.map +1 -1
- package/types/animations-rn.d.ts +102 -216
- package/types/animations-rn.d.ts.map +1 -1
- package/types/settings.d.ts +1 -0
- package/types/settings.d.ts.map +1 -1
- package/types/v5-base.d.ts +72 -2
- package/types/v5-base.d.ts.map +1 -1
- package/types/v5-fonts.d.ts.map +1 -1
- package/types/v6-base.d.ts +527 -5
- package/types/v6-base.d.ts.map +1 -1
- package/types/v6-tailwind-scales.generated.d.ts +12 -0
- package/types/v6-tailwind-scales.generated.d.ts.map +1 -1
- package/types/v6-themes.d.ts +7 -1
- package/types/v6-themes.d.ts.map +1 -1
- package/types/v6.d.ts +1343 -371
- package/types/v6.d.ts.map +1 -1
|
@@ -1,106 +1,7 @@
|
|
|
1
1
|
import { createAnimations } from "@tamagui/animations-reanimated";
|
|
2
|
+
import { animationPresets } from "@tamagui/animation-helpers";
|
|
2
3
|
|
|
3
|
-
var animationsReanimated = createAnimations(
|
|
4
|
-
"0ms": {
|
|
5
|
-
type: "timing",
|
|
6
|
-
duration: 0
|
|
7
|
-
},
|
|
8
|
-
"50ms": {
|
|
9
|
-
type: "timing",
|
|
10
|
-
duration: 50
|
|
11
|
-
},
|
|
12
|
-
"75ms": {
|
|
13
|
-
type: "timing",
|
|
14
|
-
duration: 75
|
|
15
|
-
},
|
|
16
|
-
"100ms": {
|
|
17
|
-
type: "timing",
|
|
18
|
-
duration: 100
|
|
19
|
-
},
|
|
20
|
-
"200ms": {
|
|
21
|
-
type: "timing",
|
|
22
|
-
duration: 200
|
|
23
|
-
},
|
|
24
|
-
"250ms": {
|
|
25
|
-
type: "timing",
|
|
26
|
-
duration: 250
|
|
27
|
-
},
|
|
28
|
-
"300ms": {
|
|
29
|
-
type: "timing",
|
|
30
|
-
duration: 300
|
|
31
|
-
},
|
|
32
|
-
"400ms": {
|
|
33
|
-
type: "timing",
|
|
34
|
-
duration: 400
|
|
35
|
-
},
|
|
36
|
-
"500ms": {
|
|
37
|
-
type: "timing",
|
|
38
|
-
duration: 500
|
|
39
|
-
},
|
|
40
|
-
superBouncy: {
|
|
41
|
-
damping: 5,
|
|
42
|
-
mass: .7,
|
|
43
|
-
stiffness: 180
|
|
44
|
-
},
|
|
45
|
-
bouncy: {
|
|
46
|
-
damping: 9,
|
|
47
|
-
mass: .9,
|
|
48
|
-
stiffness: 120
|
|
49
|
-
},
|
|
50
|
-
superLazy: {
|
|
51
|
-
damping: 25,
|
|
52
|
-
mass: 2,
|
|
53
|
-
stiffness: 25
|
|
54
|
-
},
|
|
55
|
-
medium: {
|
|
56
|
-
damping: 16,
|
|
57
|
-
stiffness: 90,
|
|
58
|
-
mass: .8
|
|
59
|
-
},
|
|
60
|
-
lazy: {
|
|
61
|
-
damping: 18,
|
|
62
|
-
mass: .2,
|
|
63
|
-
stiffness: 10
|
|
64
|
-
},
|
|
65
|
-
slowest: {
|
|
66
|
-
damping: 15,
|
|
67
|
-
stiffness: 10
|
|
68
|
-
},
|
|
69
|
-
slow: {
|
|
70
|
-
damping: 45,
|
|
71
|
-
stiffness: 60
|
|
72
|
-
},
|
|
73
|
-
quick: {
|
|
74
|
-
damping: 25,
|
|
75
|
-
mass: 1,
|
|
76
|
-
stiffness: 550
|
|
77
|
-
},
|
|
78
|
-
quickLessBouncy: {
|
|
79
|
-
damping: 40,
|
|
80
|
-
mass: 2,
|
|
81
|
-
stiffness: 400
|
|
82
|
-
},
|
|
83
|
-
quicker: {
|
|
84
|
-
damping: 16,
|
|
85
|
-
mass: .6,
|
|
86
|
-
stiffness: 700
|
|
87
|
-
},
|
|
88
|
-
quickerLessBouncy: {
|
|
89
|
-
damping: 27,
|
|
90
|
-
mass: .45,
|
|
91
|
-
stiffness: 750
|
|
92
|
-
},
|
|
93
|
-
quickest: {
|
|
94
|
-
damping: 15,
|
|
95
|
-
mass: .6,
|
|
96
|
-
stiffness: 400
|
|
97
|
-
},
|
|
98
|
-
quickestLessBouncy: {
|
|
99
|
-
damping: 24,
|
|
100
|
-
mass: .35,
|
|
101
|
-
stiffness: 750
|
|
102
|
-
}
|
|
103
|
-
});
|
|
4
|
+
var animationsReanimated = createAnimations(animationPresets);
|
|
104
5
|
var animations = animationsReanimated;
|
|
105
6
|
|
|
106
7
|
export { animations, animationsReanimated };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations-reanimated.native.js","names":[],"sources":["esm/animations-reanimated.native.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-reanimated\";\
|
|
1
|
+
{"version":3,"file":"animations-reanimated.native.js","names":[],"sources":["esm/animations-reanimated.native.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-reanimated\";\nimport { animationPresets } from \"@tamagui/animation-helpers\";\nvar animationsReanimated = createAnimations(animationPresets);\nvar animations = animationsReanimated;\nexport {\n animations,\n animationsReanimated\n};\n//# sourceMappingURL=animations-reanimated.js.map\n"],"mappings":";;;;AAEA,IAAI,uBAAuB,iBAAiB,gBAAgB;AAC5D,IAAI,aAAa"}
|
|
@@ -1,116 +1,7 @@
|
|
|
1
1
|
import { createAnimations } from "@tamagui/animations-react-native";
|
|
2
|
+
import { animationPresets } from "@tamagui/animation-helpers";
|
|
2
3
|
|
|
3
|
-
const animationsReactNative = createAnimations(
|
|
4
|
-
"0ms": {
|
|
5
|
-
type: "timing",
|
|
6
|
-
duration: 0
|
|
7
|
-
},
|
|
8
|
-
"50ms": {
|
|
9
|
-
type: "timing",
|
|
10
|
-
duration: 50
|
|
11
|
-
},
|
|
12
|
-
"75ms": {
|
|
13
|
-
type: "timing",
|
|
14
|
-
duration: 75
|
|
15
|
-
},
|
|
16
|
-
"100ms": {
|
|
17
|
-
type: "timing",
|
|
18
|
-
duration: 100
|
|
19
|
-
},
|
|
20
|
-
"200ms": {
|
|
21
|
-
type: "timing",
|
|
22
|
-
duration: 200
|
|
23
|
-
},
|
|
24
|
-
"250ms": {
|
|
25
|
-
type: "timing",
|
|
26
|
-
duration: 250
|
|
27
|
-
},
|
|
28
|
-
"300ms": {
|
|
29
|
-
type: "timing",
|
|
30
|
-
duration: 300
|
|
31
|
-
},
|
|
32
|
-
"400ms": {
|
|
33
|
-
type: "timing",
|
|
34
|
-
duration: 400
|
|
35
|
-
},
|
|
36
|
-
"500ms": {
|
|
37
|
-
type: "timing",
|
|
38
|
-
duration: 500
|
|
39
|
-
},
|
|
40
|
-
superBouncy: {
|
|
41
|
-
type: "spring",
|
|
42
|
-
damping: 5,
|
|
43
|
-
mass: .7,
|
|
44
|
-
stiffness: 180
|
|
45
|
-
},
|
|
46
|
-
bouncy: {
|
|
47
|
-
type: "spring",
|
|
48
|
-
damping: 9,
|
|
49
|
-
mass: .9,
|
|
50
|
-
stiffness: 120
|
|
51
|
-
},
|
|
52
|
-
superLazy: {
|
|
53
|
-
type: "spring",
|
|
54
|
-
damping: 25,
|
|
55
|
-
mass: 2,
|
|
56
|
-
stiffness: 25
|
|
57
|
-
},
|
|
58
|
-
lazy: {
|
|
59
|
-
type: "spring",
|
|
60
|
-
damping: 18,
|
|
61
|
-
mass: .2,
|
|
62
|
-
stiffness: 10
|
|
63
|
-
},
|
|
64
|
-
medium: {
|
|
65
|
-
damping: 16,
|
|
66
|
-
stiffness: 90,
|
|
67
|
-
mass: .8
|
|
68
|
-
},
|
|
69
|
-
slowest: {
|
|
70
|
-
type: "spring",
|
|
71
|
-
damping: 15,
|
|
72
|
-
stiffness: 10
|
|
73
|
-
},
|
|
74
|
-
slow: {
|
|
75
|
-
type: "spring",
|
|
76
|
-
damping: 45,
|
|
77
|
-
stiffness: 60
|
|
78
|
-
},
|
|
79
|
-
quick: {
|
|
80
|
-
type: "spring",
|
|
81
|
-
damping: 25,
|
|
82
|
-
mass: 1,
|
|
83
|
-
stiffness: 550
|
|
84
|
-
},
|
|
85
|
-
quickLessBouncy: {
|
|
86
|
-
type: "spring",
|
|
87
|
-
damping: 40,
|
|
88
|
-
mass: 2,
|
|
89
|
-
stiffness: 400
|
|
90
|
-
},
|
|
91
|
-
quicker: {
|
|
92
|
-
type: "spring",
|
|
93
|
-
damping: 16,
|
|
94
|
-
mass: .6,
|
|
95
|
-
stiffness: 700
|
|
96
|
-
},
|
|
97
|
-
quickerLessBouncy: {
|
|
98
|
-
type: "spring",
|
|
99
|
-
damping: 27,
|
|
100
|
-
mass: .45,
|
|
101
|
-
stiffness: 750
|
|
102
|
-
},
|
|
103
|
-
quickest: {
|
|
104
|
-
damping: 15,
|
|
105
|
-
mass: .6,
|
|
106
|
-
stiffness: 400
|
|
107
|
-
},
|
|
108
|
-
quickestLessBouncy: {
|
|
109
|
-
damping: 24,
|
|
110
|
-
mass: .35,
|
|
111
|
-
stiffness: 750
|
|
112
|
-
}
|
|
113
|
-
});
|
|
4
|
+
const animationsReactNative = createAnimations(animationPresets);
|
|
114
5
|
const animations = animationsReactNative;
|
|
115
6
|
|
|
116
7
|
export { animations, animationsReactNative };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations-rn.js","names":[],"sources":["esm/animations-rn.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-react-native\";\
|
|
1
|
+
{"version":3,"file":"animations-rn.js","names":[],"sources":["esm/animations-rn.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-react-native\";\nimport { animationPresets } from \"@tamagui/animation-helpers\";\nconst animationsReactNative = createAnimations(animationPresets);\nconst animations = animationsReactNative;\nexport {\n animations,\n animationsReactNative\n};\n//# sourceMappingURL=animations-rn.js.map\n"],"mappings":";;;;AAEA,MAAM,wBAAwB,iBAAiB,gBAAgB;AAC/D,MAAM,aAAa"}
|
|
@@ -1,116 +1,7 @@
|
|
|
1
1
|
import { createAnimations } from "@tamagui/animations-react-native";
|
|
2
|
+
import { animationPresets } from "@tamagui/animation-helpers";
|
|
2
3
|
|
|
3
|
-
var animationsReactNative = createAnimations(
|
|
4
|
-
"0ms": {
|
|
5
|
-
type: "timing",
|
|
6
|
-
duration: 0
|
|
7
|
-
},
|
|
8
|
-
"50ms": {
|
|
9
|
-
type: "timing",
|
|
10
|
-
duration: 50
|
|
11
|
-
},
|
|
12
|
-
"75ms": {
|
|
13
|
-
type: "timing",
|
|
14
|
-
duration: 75
|
|
15
|
-
},
|
|
16
|
-
"100ms": {
|
|
17
|
-
type: "timing",
|
|
18
|
-
duration: 100
|
|
19
|
-
},
|
|
20
|
-
"200ms": {
|
|
21
|
-
type: "timing",
|
|
22
|
-
duration: 200
|
|
23
|
-
},
|
|
24
|
-
"250ms": {
|
|
25
|
-
type: "timing",
|
|
26
|
-
duration: 250
|
|
27
|
-
},
|
|
28
|
-
"300ms": {
|
|
29
|
-
type: "timing",
|
|
30
|
-
duration: 300
|
|
31
|
-
},
|
|
32
|
-
"400ms": {
|
|
33
|
-
type: "timing",
|
|
34
|
-
duration: 400
|
|
35
|
-
},
|
|
36
|
-
"500ms": {
|
|
37
|
-
type: "timing",
|
|
38
|
-
duration: 500
|
|
39
|
-
},
|
|
40
|
-
superBouncy: {
|
|
41
|
-
type: "spring",
|
|
42
|
-
damping: 5,
|
|
43
|
-
mass: .7,
|
|
44
|
-
stiffness: 180
|
|
45
|
-
},
|
|
46
|
-
bouncy: {
|
|
47
|
-
type: "spring",
|
|
48
|
-
damping: 9,
|
|
49
|
-
mass: .9,
|
|
50
|
-
stiffness: 120
|
|
51
|
-
},
|
|
52
|
-
superLazy: {
|
|
53
|
-
type: "spring",
|
|
54
|
-
damping: 25,
|
|
55
|
-
mass: 2,
|
|
56
|
-
stiffness: 25
|
|
57
|
-
},
|
|
58
|
-
lazy: {
|
|
59
|
-
type: "spring",
|
|
60
|
-
damping: 18,
|
|
61
|
-
mass: .2,
|
|
62
|
-
stiffness: 10
|
|
63
|
-
},
|
|
64
|
-
medium: {
|
|
65
|
-
damping: 16,
|
|
66
|
-
stiffness: 90,
|
|
67
|
-
mass: .8
|
|
68
|
-
},
|
|
69
|
-
slowest: {
|
|
70
|
-
type: "spring",
|
|
71
|
-
damping: 15,
|
|
72
|
-
stiffness: 10
|
|
73
|
-
},
|
|
74
|
-
slow: {
|
|
75
|
-
type: "spring",
|
|
76
|
-
damping: 45,
|
|
77
|
-
stiffness: 60
|
|
78
|
-
},
|
|
79
|
-
quick: {
|
|
80
|
-
type: "spring",
|
|
81
|
-
damping: 25,
|
|
82
|
-
mass: 1,
|
|
83
|
-
stiffness: 550
|
|
84
|
-
},
|
|
85
|
-
quickLessBouncy: {
|
|
86
|
-
type: "spring",
|
|
87
|
-
damping: 40,
|
|
88
|
-
mass: 2,
|
|
89
|
-
stiffness: 400
|
|
90
|
-
},
|
|
91
|
-
quicker: {
|
|
92
|
-
type: "spring",
|
|
93
|
-
damping: 16,
|
|
94
|
-
mass: .6,
|
|
95
|
-
stiffness: 700
|
|
96
|
-
},
|
|
97
|
-
quickerLessBouncy: {
|
|
98
|
-
type: "spring",
|
|
99
|
-
damping: 27,
|
|
100
|
-
mass: .45,
|
|
101
|
-
stiffness: 750
|
|
102
|
-
},
|
|
103
|
-
quickest: {
|
|
104
|
-
damping: 15,
|
|
105
|
-
mass: .6,
|
|
106
|
-
stiffness: 400
|
|
107
|
-
},
|
|
108
|
-
quickestLessBouncy: {
|
|
109
|
-
damping: 24,
|
|
110
|
-
mass: .35,
|
|
111
|
-
stiffness: 750
|
|
112
|
-
}
|
|
113
|
-
});
|
|
4
|
+
var animationsReactNative = createAnimations(animationPresets);
|
|
114
5
|
var animations = animationsReactNative;
|
|
115
6
|
|
|
116
7
|
export { animations, animationsReactNative };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations-rn.native.js","names":[],"sources":["esm/animations-rn.native.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-react-native\";\
|
|
1
|
+
{"version":3,"file":"animations-rn.native.js","names":[],"sources":["esm/animations-rn.native.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-react-native\";\nimport { animationPresets } from \"@tamagui/animation-helpers\";\nvar animationsReactNative = createAnimations(animationPresets);\nvar animations = animationsReactNative;\nexport {\n animations,\n animationsReactNative\n};\n//# sourceMappingURL=animations-rn.js.map\n"],"mappings":";;;;AAEA,IAAI,wBAAwB,iBAAiB,gBAAgB;AAC7D,IAAI,aAAa"}
|
package/dist/esm/settings.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","names":[],"sources":["esm/settings.js"],"sourcesContent":["import { mediaQueryDefaultActive } from \"./media\";\nconst selectionStyles = (theme) => theme.color5 ? {\n backgroundColor: theme.color5,\n color: theme.color11\n} : null;\nconst settings = {\n mediaQueryDefaultActive,\n defaultFont: \"body\",\n fastSchemeChange: true,\n shouldAddPrefersColorThemes: true,\n allowedStyleValues: \"somewhat-strict-web\",\n addThemeClassName: \"html\",\n onlyAllowShorthands: true,\n styleCompat: \"web\"\n};\nexport {\n selectionStyles,\n settings\n};\n//# sourceMappingURL=settings.js.map\n"],"mappings":";;;AACA,MAAM,mBAAmB,UAAU,MAAM,SAAS;CAChD,iBAAiB,MAAM;CACvB,OAAO,MAAM;AACf,IAAI;AACJ,MAAM,WAAW;CACf;CACA,aAAa;CACb,kBAAkB;CAClB,6BAA6B;CAC7B,oBAAoB;CACpB,mBAAmB;CACnB,qBAAqB;CACrB,aAAa;AACf"}
|
|
1
|
+
{"version":3,"file":"settings.js","names":[],"sources":["esm/settings.js"],"sourcesContent":["import { mediaQueryDefaultActive } from \"./media\";\nconst selectionStyles = (theme) => theme.color5 ? {\n backgroundColor: theme.color5,\n color: theme.color11\n} : null;\nconst settings = {\n mediaQueryDefaultActive,\n selectionStyles,\n defaultFont: \"body\",\n fastSchemeChange: true,\n shouldAddPrefersColorThemes: true,\n allowedStyleValues: \"somewhat-strict-web\",\n addThemeClassName: \"html\",\n onlyAllowShorthands: true,\n styleCompat: \"web\"\n};\nexport {\n selectionStyles,\n settings\n};\n//# sourceMappingURL=settings.js.map\n"],"mappings":";;;AACA,MAAM,mBAAmB,UAAU,MAAM,SAAS;CAChD,iBAAiB,MAAM;CACvB,OAAO,MAAM;AACf,IAAI;AACJ,MAAM,WAAW;CACf;CACA;CACA,aAAa;CACb,kBAAkB;CAClB,6BAA6B;CAC7B,oBAAoB;CACpB,mBAAmB;CACnB,qBAAqB;CACrB,aAAa;AACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.native.js","names":[],"sources":["esm/settings.native.js"],"sourcesContent":["import { mediaQueryDefaultActive } from \"./media\";\nvar selectionStyles = function(theme) {\n return theme.color5 ? {\n backgroundColor: theme.color5,\n color: theme.color11\n } : null;\n};\nvar settings = {\n mediaQueryDefaultActive,\n defaultFont: \"body\",\n fastSchemeChange: true,\n shouldAddPrefersColorThemes: true,\n allowedStyleValues: \"somewhat-strict-web\",\n addThemeClassName: \"html\",\n onlyAllowShorthands: true,\n styleCompat: \"web\"\n};\nexport {\n selectionStyles,\n settings\n};\n//# sourceMappingURL=settings.js.map\n"],"mappings":";;;AACA,IAAI,kBAAkB,SAAS,OAAO;CACpC,OAAO,MAAM,SAAS;EACpB,iBAAiB,MAAM;EACvB,OAAO,MAAM;CACf,IAAI;AACN;AACA,IAAI,WAAW;CACb;CACA,aAAa;CACb,kBAAkB;CAClB,6BAA6B;CAC7B,oBAAoB;CACpB,mBAAmB;CACnB,qBAAqB;CACrB,aAAa;AACf"}
|
|
1
|
+
{"version":3,"file":"settings.native.js","names":[],"sources":["esm/settings.native.js"],"sourcesContent":["import { mediaQueryDefaultActive } from \"./media\";\nvar selectionStyles = function(theme) {\n return theme.color5 ? {\n backgroundColor: theme.color5,\n color: theme.color11\n } : null;\n};\nvar settings = {\n mediaQueryDefaultActive,\n selectionStyles,\n defaultFont: \"body\",\n fastSchemeChange: true,\n shouldAddPrefersColorThemes: true,\n allowedStyleValues: \"somewhat-strict-web\",\n addThemeClassName: \"html\",\n onlyAllowShorthands: true,\n styleCompat: \"web\"\n};\nexport {\n selectionStyles,\n settings\n};\n//# sourceMappingURL=settings.js.map\n"],"mappings":";;;AACA,IAAI,kBAAkB,SAAS,OAAO;CACpC,OAAO,MAAM,SAAS;EACpB,iBAAiB,MAAM;EACvB,OAAO,MAAM;CACf,IAAI;AACN;AACA,IAAI,WAAW;CACb;CACA;CACA,aAAa;CACb,kBAAkB;CAClB,6BAA6B;CAC7B,oBAAoB;CACpB,mBAAmB;CACnB,qBAAqB;CACrB,aAAa;AACf"}
|
package/dist/esm/v5-base.mjs
CHANGED
|
@@ -2,17 +2,87 @@ import { shorthands, shorthands as shorthands2 } from "@tamagui/shorthands/v4";
|
|
|
2
2
|
import { themes, tokens, tokens as tokens2 } from "@tamagui/themes/v5";
|
|
3
3
|
import { createSystemFont, fonts, fonts as fonts2 } from "./v5-fonts.mjs";
|
|
4
4
|
import { breakpoints, media, media as media2, mediaQueryDefaultActive } from "./media.mjs";
|
|
5
|
-
import { selectionStyles
|
|
5
|
+
import { selectionStyles as selectionStyles2, settings, settings as settings2 } from "./settings.mjs";
|
|
6
6
|
|
|
7
|
+
const defaultSizing = {
|
|
8
|
+
default: "md",
|
|
9
|
+
sizes: {
|
|
10
|
+
xs: {
|
|
11
|
+
fontSize: "1",
|
|
12
|
+
controlFontSize: "1",
|
|
13
|
+
paddingInline: "2",
|
|
14
|
+
paddingBlock: "1-5",
|
|
15
|
+
gap: "1-5",
|
|
16
|
+
radius: "1",
|
|
17
|
+
px: {
|
|
18
|
+
height: 24,
|
|
19
|
+
icon: 12,
|
|
20
|
+
square: 17
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
sm: {
|
|
24
|
+
fontSize: "3",
|
|
25
|
+
controlFontSize: "3",
|
|
26
|
+
paddingInline: "3",
|
|
27
|
+
paddingBlock: "2",
|
|
28
|
+
gap: "2",
|
|
29
|
+
radius: "2",
|
|
30
|
+
px: {
|
|
31
|
+
height: 32,
|
|
32
|
+
icon: 16,
|
|
33
|
+
square: 20
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
md: {
|
|
37
|
+
fontSize: "3",
|
|
38
|
+
controlFontSize: "3",
|
|
39
|
+
paddingInline: "3-5",
|
|
40
|
+
paddingBlock: "2",
|
|
41
|
+
gap: "2",
|
|
42
|
+
radius: "2",
|
|
43
|
+
px: {
|
|
44
|
+
height: 36,
|
|
45
|
+
icon: 16,
|
|
46
|
+
square: 22
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
lg: {
|
|
50
|
+
fontSize: "5",
|
|
51
|
+
controlFontSize: "5",
|
|
52
|
+
paddingInline: "5",
|
|
53
|
+
paddingBlock: "2",
|
|
54
|
+
gap: "2",
|
|
55
|
+
radius: "2",
|
|
56
|
+
px: {
|
|
57
|
+
height: 40,
|
|
58
|
+
icon: 16,
|
|
59
|
+
square: 25
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
xl: {
|
|
63
|
+
fontSize: "6",
|
|
64
|
+
controlFontSize: "6",
|
|
65
|
+
paddingInline: "6",
|
|
66
|
+
paddingBlock: "2-5",
|
|
67
|
+
gap: "2-5",
|
|
68
|
+
radius: "3",
|
|
69
|
+
px: {
|
|
70
|
+
height: 48,
|
|
71
|
+
icon: 20,
|
|
72
|
+
square: 28
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
7
77
|
const defaultConfig = {
|
|
8
78
|
media,
|
|
9
79
|
shorthands,
|
|
10
80
|
themes,
|
|
11
81
|
tokens,
|
|
12
82
|
fonts,
|
|
13
|
-
|
|
14
|
-
|
|
83
|
+
settings,
|
|
84
|
+
sizing: defaultSizing
|
|
15
85
|
};
|
|
16
86
|
|
|
17
|
-
export { breakpoints, createSystemFont, defaultConfig, fonts2 as fonts, media2 as media, mediaQueryDefaultActive, selectionStyles2 as selectionStyles, settings2 as settings, shorthands2 as shorthands, tokens2 as tokens };
|
|
87
|
+
export { breakpoints, createSystemFont, defaultConfig, defaultSizing, fonts2 as fonts, media2 as media, mediaQueryDefaultActive, selectionStyles2 as selectionStyles, settings2 as settings, shorthands2 as shorthands, tokens2 as tokens };
|
|
18
88
|
//# sourceMappingURL=v5-base.mjs.map
|
package/dist/esm/v5-base.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v5-base.js","names":[],"sources":["esm/v5-base.js"],"sourcesContent":["import { shorthands } from \"@tamagui/shorthands/v4\";\nimport { themes, tokens } from \"@tamagui/themes/v5\";\nimport { fonts } from \"./v5-fonts\";\nimport { media } from \"./media\";\nimport {
|
|
1
|
+
{"version":3,"file":"v5-base.js","names":[],"sources":["esm/v5-base.js"],"sourcesContent":["import { shorthands } from \"@tamagui/shorthands/v4\";\nimport { themes, tokens } from \"@tamagui/themes/v5\";\nimport { fonts } from \"./v5-fonts\";\nimport { media } from \"./media\";\nimport { settings } from \"./settings\";\nimport { shorthands as shorthands2 } from \"@tamagui/shorthands/v4\";\nimport {\n tokens as tokens2\n} from \"@tamagui/themes/v5\";\nimport { createSystemFont, fonts as fonts2 } from \"./v5-fonts\";\nimport { breakpoints, media as media2, mediaQueryDefaultActive } from \"./media\";\nimport { selectionStyles as selectionStyles2, settings as settings2 } from \"./settings\";\nconst defaultSizing = {\n default: \"md\",\n sizes: {\n xs: {\n fontSize: \"1\",\n controlFontSize: \"1\",\n paddingInline: \"2\",\n paddingBlock: \"1-5\",\n gap: \"1-5\",\n radius: \"1\",\n px: { height: 24, icon: 12, square: 17 }\n },\n sm: {\n fontSize: \"3\",\n controlFontSize: \"3\",\n paddingInline: \"3\",\n paddingBlock: \"2\",\n gap: \"2\",\n radius: \"2\",\n px: { height: 32, icon: 16, square: 20 }\n },\n md: {\n fontSize: \"3\",\n controlFontSize: \"3\",\n paddingInline: \"3-5\",\n paddingBlock: \"2\",\n gap: \"2\",\n radius: \"2\",\n px: { height: 36, icon: 16, square: 22 }\n },\n lg: {\n fontSize: \"5\",\n controlFontSize: \"5\",\n paddingInline: \"5\",\n paddingBlock: \"2\",\n gap: \"2\",\n radius: \"2\",\n px: { height: 40, icon: 16, square: 25 }\n },\n xl: {\n fontSize: \"6\",\n controlFontSize: \"6\",\n paddingInline: \"6\",\n paddingBlock: \"2-5\",\n gap: \"2-5\",\n radius: \"3\",\n px: { height: 48, icon: 20, square: 28 }\n }\n }\n};\nconst defaultConfig = {\n media,\n shorthands,\n themes,\n tokens,\n fonts,\n settings,\n sizing: defaultSizing\n};\nexport {\n breakpoints,\n createSystemFont,\n defaultConfig,\n defaultSizing,\n fonts2 as fonts,\n media2 as media,\n mediaQueryDefaultActive,\n selectionStyles2 as selectionStyles,\n settings2 as settings,\n shorthands2 as shorthands,\n tokens2 as tokens\n};\n//# sourceMappingURL=v5-base.js.map\n"],"mappings":";;;;;;;AAYA,MAAM,gBAAgB;CACpB,SAAS;CACT,OAAO;EACL,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IAAE,QAAQ;IAAI,MAAM;IAAI,QAAQ;GAAG;EACzC;EACA,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IAAE,QAAQ;IAAI,MAAM;IAAI,QAAQ;GAAG;EACzC;EACA,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IAAE,QAAQ;IAAI,MAAM;IAAI,QAAQ;GAAG;EACzC;EACA,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IAAE,QAAQ;IAAI,MAAM;IAAI,QAAQ;GAAG;EACzC;EACA,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IAAE,QAAQ;IAAI,MAAM;IAAI,QAAQ;GAAG;EACzC;CACF;AACF;AACA,MAAM,gBAAgB;CACpB;CACA;CACA;CACA;CACA;CACA;CACA,QAAQ;AACV"}
|
|
@@ -2,17 +2,87 @@ import { shorthands, shorthands as shorthands2 } from "@tamagui/shorthands/v4";
|
|
|
2
2
|
import { themes, tokens, tokens as tokens2 } from "@tamagui/themes/v5";
|
|
3
3
|
import { createSystemFont, fonts, fonts as fonts2 } from "./v5-fonts.native.js";
|
|
4
4
|
import { breakpoints, media, media as media2, mediaQueryDefaultActive } from "./media.native.js";
|
|
5
|
-
import { selectionStyles,
|
|
5
|
+
import { selectionStyles, settings, settings as settings2 } from "./settings.native.js";
|
|
6
6
|
|
|
7
|
+
var defaultSizing = {
|
|
8
|
+
default: "md",
|
|
9
|
+
sizes: {
|
|
10
|
+
xs: {
|
|
11
|
+
fontSize: "1",
|
|
12
|
+
controlFontSize: "1",
|
|
13
|
+
paddingInline: "2",
|
|
14
|
+
paddingBlock: "1-5",
|
|
15
|
+
gap: "1-5",
|
|
16
|
+
radius: "1",
|
|
17
|
+
px: {
|
|
18
|
+
height: 24,
|
|
19
|
+
icon: 12,
|
|
20
|
+
square: 17
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
sm: {
|
|
24
|
+
fontSize: "3",
|
|
25
|
+
controlFontSize: "3",
|
|
26
|
+
paddingInline: "3",
|
|
27
|
+
paddingBlock: "2",
|
|
28
|
+
gap: "2",
|
|
29
|
+
radius: "2",
|
|
30
|
+
px: {
|
|
31
|
+
height: 32,
|
|
32
|
+
icon: 16,
|
|
33
|
+
square: 20
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
md: {
|
|
37
|
+
fontSize: "3",
|
|
38
|
+
controlFontSize: "3",
|
|
39
|
+
paddingInline: "3-5",
|
|
40
|
+
paddingBlock: "2",
|
|
41
|
+
gap: "2",
|
|
42
|
+
radius: "2",
|
|
43
|
+
px: {
|
|
44
|
+
height: 36,
|
|
45
|
+
icon: 16,
|
|
46
|
+
square: 22
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
lg: {
|
|
50
|
+
fontSize: "5",
|
|
51
|
+
controlFontSize: "5",
|
|
52
|
+
paddingInline: "5",
|
|
53
|
+
paddingBlock: "2",
|
|
54
|
+
gap: "2",
|
|
55
|
+
radius: "2",
|
|
56
|
+
px: {
|
|
57
|
+
height: 40,
|
|
58
|
+
icon: 16,
|
|
59
|
+
square: 25
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
xl: {
|
|
63
|
+
fontSize: "6",
|
|
64
|
+
controlFontSize: "6",
|
|
65
|
+
paddingInline: "6",
|
|
66
|
+
paddingBlock: "2-5",
|
|
67
|
+
gap: "2-5",
|
|
68
|
+
radius: "3",
|
|
69
|
+
px: {
|
|
70
|
+
height: 48,
|
|
71
|
+
icon: 20,
|
|
72
|
+
square: 28
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
7
77
|
var defaultConfig = {
|
|
8
78
|
media,
|
|
9
79
|
shorthands,
|
|
10
80
|
themes,
|
|
11
81
|
tokens,
|
|
12
82
|
fonts,
|
|
13
|
-
|
|
14
|
-
|
|
83
|
+
settings,
|
|
84
|
+
sizing: defaultSizing
|
|
15
85
|
};
|
|
16
86
|
|
|
17
|
-
export { breakpoints, createSystemFont, defaultConfig, fonts2 as fonts, media2 as media, mediaQueryDefaultActive,
|
|
87
|
+
export { breakpoints, createSystemFont, defaultConfig, defaultSizing, fonts2 as fonts, media2 as media, mediaQueryDefaultActive, selectionStyles, settings2 as settings, shorthands2 as shorthands, tokens2 as tokens };
|
|
18
88
|
//# sourceMappingURL=v5-base.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v5-base.native.js","names":[],"sources":["esm/v5-base.native.js"],"sourcesContent":["import { shorthands } from \"@tamagui/shorthands/v4\";\nimport { themes, tokens } from \"@tamagui/themes/v5\";\nimport { fonts } from \"./v5-fonts\";\nimport { media } from \"./media\";\nimport {
|
|
1
|
+
{"version":3,"file":"v5-base.native.js","names":[],"sources":["esm/v5-base.native.js"],"sourcesContent":["import { shorthands } from \"@tamagui/shorthands/v4\";\nimport { themes, tokens } from \"@tamagui/themes/v5\";\nimport { fonts } from \"./v5-fonts\";\nimport { media } from \"./media\";\nimport { settings } from \"./settings\";\nimport { shorthands as shorthands2 } from \"@tamagui/shorthands/v4\";\nimport { tokens as tokens2 } from \"@tamagui/themes/v5\";\nimport { createSystemFont, fonts as fonts2 } from \"./v5-fonts\";\nimport { breakpoints, media as media2, mediaQueryDefaultActive } from \"./media\";\nimport { selectionStyles, settings as settings2 } from \"./settings\";\nvar defaultSizing = {\n default: \"md\",\n sizes: {\n xs: {\n fontSize: \"1\",\n controlFontSize: \"1\",\n paddingInline: \"2\",\n paddingBlock: \"1-5\",\n gap: \"1-5\",\n radius: \"1\",\n px: {\n height: 24,\n icon: 12,\n square: 17\n }\n },\n sm: {\n fontSize: \"3\",\n controlFontSize: \"3\",\n paddingInline: \"3\",\n paddingBlock: \"2\",\n gap: \"2\",\n radius: \"2\",\n px: {\n height: 32,\n icon: 16,\n square: 20\n }\n },\n md: {\n fontSize: \"3\",\n controlFontSize: \"3\",\n paddingInline: \"3-5\",\n paddingBlock: \"2\",\n gap: \"2\",\n radius: \"2\",\n px: {\n height: 36,\n icon: 16,\n square: 22\n }\n },\n lg: {\n fontSize: \"5\",\n controlFontSize: \"5\",\n paddingInline: \"5\",\n paddingBlock: \"2\",\n gap: \"2\",\n radius: \"2\",\n px: {\n height: 40,\n icon: 16,\n square: 25\n }\n },\n xl: {\n fontSize: \"6\",\n controlFontSize: \"6\",\n paddingInline: \"6\",\n paddingBlock: \"2-5\",\n gap: \"2-5\",\n radius: \"3\",\n px: {\n height: 48,\n icon: 20,\n square: 28\n }\n }\n }\n};\nvar defaultConfig = {\n media,\n shorthands,\n themes,\n tokens,\n fonts,\n settings,\n sizing: defaultSizing\n};\nexport {\n breakpoints,\n createSystemFont,\n defaultConfig,\n defaultSizing,\n fonts2 as fonts,\n media2 as media,\n mediaQueryDefaultActive,\n selectionStyles,\n settings2 as settings,\n shorthands2 as shorthands,\n tokens2 as tokens\n};\n//# sourceMappingURL=v5-base.js.map\n"],"mappings":";;;;;;;AAUA,IAAI,gBAAgB;CAClB,SAAS;CACT,OAAO;EACL,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IACF,QAAQ;IACR,MAAM;IACN,QAAQ;GACV;EACF;EACA,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IACF,QAAQ;IACR,MAAM;IACN,QAAQ;GACV;EACF;EACA,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IACF,QAAQ;IACR,MAAM;IACN,QAAQ;GACV;EACF;EACA,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IACF,QAAQ;IACR,MAAM;IACN,QAAQ;GACV;EACF;EACA,IAAI;GACF,UAAU;GACV,iBAAiB;GACjB,eAAe;GACf,cAAc;GACd,KAAK;GACL,QAAQ;GACR,IAAI;IACF,QAAQ;IACR,MAAM;IACN,QAAQ;GACV;EACF;CACF;AACF;AACA,IAAI,gBAAgB;CAClB;CACA;CACA;CACA;CACA;CACA;CACA,QAAQ;AACV"}
|
package/dist/esm/v5-fonts.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { createSystemFont } from "@tamagui/create-system-font";
|
|
1
|
+
import { createSystemFont, v5SystemFontLineHeight, v5SystemFontSizes } from "@tamagui/create-system-font";
|
|
2
2
|
|
|
3
3
|
const headingLineHeight = (size) => Math.round(size * 1.12 + 5);
|
|
4
|
+
const v5Scale = {
|
|
5
|
+
sizes: v5SystemFontSizes,
|
|
6
|
+
sizeLineHeight: v5SystemFontLineHeight
|
|
7
|
+
};
|
|
4
8
|
const toPxScale = (obj) => Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, typeof v === "number" ? `${v}px` : v]));
|
|
5
9
|
const pinFontToPx = (font) => ({
|
|
6
10
|
...font,
|
|
@@ -8,8 +12,9 @@ const pinFontToPx = (font) => ({
|
|
|
8
12
|
...font.lineHeight ? { lineHeight: toPxScale(font.lineHeight) } : null
|
|
9
13
|
});
|
|
10
14
|
const fonts = {
|
|
11
|
-
body: pinFontToPx(createSystemFont()),
|
|
15
|
+
body: pinFontToPx(createSystemFont(v5Scale)),
|
|
12
16
|
heading: pinFontToPx(createSystemFont({
|
|
17
|
+
...v5Scale,
|
|
13
18
|
font: { weight: {
|
|
14
19
|
0: "600",
|
|
15
20
|
6: "700",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v5-fonts.js","names":[],"sources":["esm/v5-fonts.js"],"sourcesContent":["import { createSystemFont } from \"@tamagui/create-system-font\";\n\nconst headingLineHeight = (size) => Math.round(size * 1.12 + 5);\nconst toPxScale = (obj) => Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, typeof v === \"number\" ? `${v}px` : v]));\nconst pinFontToPx = (font) => ({\n\t...font,\n\tsize: toPxScale(font.size),\n\t...font.lineHeight ? { lineHeight: toPxScale(font.lineHeight) } : null\n});\nconst fonts = {\n\tbody: pinFontToPx(createSystemFont()),\n\theading: pinFontToPx(createSystemFont({\n\t\tfont: { weight: {\n\t\t\t0: \"600\",\n\t\t\t6: \"700\",\n\t\t\t9: \"800\"\n\t\t} },\n\t\tsizeLineHeight: headingLineHeight\n\t}))\n};\n\nexport { createSystemFont, fonts };"],"mappings":";;;AAEA,MAAM,qBAAqB,SAAS,KAAK,MAAM,OAAO,OAAO,CAAC;AAC9D,MAAM,aAAa,QAAQ,OAAO,YAAY,OAAO,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,OAAO,MAAM,WAAW,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;AAC5H,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM,UAAU,KAAK,IAAI;CACzB,GAAG,KAAK,aAAa,EAAE,YAAY,UAAU,KAAK,UAAU,EAAE,IAAI;AACnE;AACA,MAAM,QAAQ;CACb,MAAM,YAAY,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"v5-fonts.js","names":[],"sources":["esm/v5-fonts.js"],"sourcesContent":["import { createSystemFont, v5SystemFontLineHeight, v5SystemFontSizes } from \"@tamagui/create-system-font\";\n\nconst headingLineHeight = (size) => Math.round(size * 1.12 + 5);\nconst v5Scale = {\n\tsizes: v5SystemFontSizes,\n\tsizeLineHeight: v5SystemFontLineHeight\n};\nconst toPxScale = (obj) => Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, typeof v === \"number\" ? `${v}px` : v]));\nconst pinFontToPx = (font) => ({\n\t...font,\n\tsize: toPxScale(font.size),\n\t...font.lineHeight ? { lineHeight: toPxScale(font.lineHeight) } : null\n});\nconst fonts = {\n\tbody: pinFontToPx(createSystemFont(v5Scale)),\n\theading: pinFontToPx(createSystemFont({\n\t\t...v5Scale,\n\t\tfont: { weight: {\n\t\t\t0: \"600\",\n\t\t\t6: \"700\",\n\t\t\t9: \"800\"\n\t\t} },\n\t\tsizeLineHeight: headingLineHeight\n\t}))\n};\n\nexport { createSystemFont, fonts };"],"mappings":";;;AAEA,MAAM,qBAAqB,SAAS,KAAK,MAAM,OAAO,OAAO,CAAC;AAC9D,MAAM,UAAU;CACf,OAAO;CACP,gBAAgB;AACjB;AACA,MAAM,aAAa,QAAQ,OAAO,YAAY,OAAO,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,OAAO,MAAM,WAAW,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;AAC5H,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM,UAAU,KAAK,IAAI;CACzB,GAAG,KAAK,aAAa,EAAE,YAAY,UAAU,KAAK,UAAU,EAAE,IAAI;AACnE;AACA,MAAM,QAAQ;CACb,MAAM,YAAY,iBAAiB,OAAO,CAAC;CAC3C,SAAS,YAAY,iBAAiB;EACrC,GAAG;EACH,MAAM,EAAE,QAAQ;GACf,GAAG;GACH,GAAG;GACH,GAAG;EACJ,EAAE;EACF,gBAAgB;CACjB,CAAC,CAAC;AACH"}
|