@tamagui/config 1.43.7 → 1.43.9
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 +1 -0
- package/dist/cjs/animations.css.js.map +1 -1
- package/dist/cjs/animations.reanimated.js +4 -0
- package/dist/cjs/animations.reanimated.js.map +1 -1
- package/dist/cjs/config.js +2 -2
- package/dist/cjs/config.js.map +1 -1
- package/dist/cjs/index.js +17 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.reanimated.js +3 -1
- package/dist/cjs/index.reanimated.js.map +1 -1
- package/dist/esm/animations.css.js +1 -0
- package/dist/esm/animations.css.js.map +1 -1
- package/dist/esm/animations.reanimated.js +4 -0
- package/dist/esm/animations.reanimated.js.map +1 -1
- package/dist/esm/config.js +2 -2
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/index.js +10 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.reanimated.js +1 -0
- package/dist/esm/index.reanimated.js.map +1 -1
- package/package.json +16 -11
- package/src/animations.css.ts +1 -0
- package/src/animations.reanimated.ts +4 -0
- package/src/config.ts +2 -2
- package/src/index.reanimated.ts +1 -0
- package/src/index.tsx +8 -1
- package/types/animations.css.d.ts +1 -0
- package/types/animations.css.d.ts.map +1 -1
- package/types/animations.reanimated.d.ts +4 -0
- package/types/animations.reanimated.d.ts.map +1 -1
- package/types/index.d.ts +840 -1
- package/types/index.d.ts.map +1 -1
- package/types/index.reanimated.d.ts +5 -0
- package/types/index.reanimated.d.ts.map +1 -1
- package/src/animations.moti.ts +0 -32
- package/src/tamagui.config.ts +0 -125
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,cAAc,SAAS,C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
5
|
animations: import("@tamagui/web").AnimationDriver<{
|
|
6
|
+
'100ms': {
|
|
7
|
+
type: "timing";
|
|
8
|
+
duration: number;
|
|
9
|
+
};
|
|
5
10
|
bouncy: {
|
|
6
11
|
type: "spring";
|
|
7
12
|
damping: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.reanimated.d.ts","sourceRoot":"","sources":["../src/index.reanimated.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAA;AACvB,cAAc,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.reanimated.d.ts","sourceRoot":"","sources":["../src/index.reanimated.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAA;AACvB,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AAEvC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAA"}
|
package/src/animations.moti.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createAnimations } from '@tamagui/animations-moti'
|
|
2
|
-
|
|
3
|
-
export const animations = createAnimations({
|
|
4
|
-
bouncy: {
|
|
5
|
-
type: 'spring',
|
|
6
|
-
damping: 9,
|
|
7
|
-
mass: 0.9,
|
|
8
|
-
stiffness: 150,
|
|
9
|
-
},
|
|
10
|
-
lazy: {
|
|
11
|
-
type: 'spring',
|
|
12
|
-
damping: 18,
|
|
13
|
-
stiffness: 50,
|
|
14
|
-
},
|
|
15
|
-
slow: {
|
|
16
|
-
type: 'spring',
|
|
17
|
-
damping: 15,
|
|
18
|
-
stiffness: 40,
|
|
19
|
-
},
|
|
20
|
-
quick: {
|
|
21
|
-
type: 'spring',
|
|
22
|
-
damping: 20,
|
|
23
|
-
mass: 1.2,
|
|
24
|
-
stiffness: 250,
|
|
25
|
-
},
|
|
26
|
-
tooltip: {
|
|
27
|
-
type: 'spring',
|
|
28
|
-
damping: 10,
|
|
29
|
-
mass: 0.9,
|
|
30
|
-
stiffness: 100,
|
|
31
|
-
},
|
|
32
|
-
})
|
package/src/tamagui.config.ts
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { createInterFont } from '@tamagui/font-inter'
|
|
2
|
-
import { createSilkscreenFont } from '@tamagui/font-silkscreen'
|
|
3
|
-
import { shorthands } from '@tamagui/shorthands'
|
|
4
|
-
import { themes, tokens } from '@tamagui/themes'
|
|
5
|
-
|
|
6
|
-
import { animations } from './animations'
|
|
7
|
-
import { createGenericFont } from './createGenericFont'
|
|
8
|
-
import { media, mediaQueryDefaultActive } from './media'
|
|
9
|
-
|
|
10
|
-
export * from './animations'
|
|
11
|
-
|
|
12
|
-
const silkscreenFont = createSilkscreenFont()
|
|
13
|
-
const headingFont = createInterFont(
|
|
14
|
-
{
|
|
15
|
-
size: {
|
|
16
|
-
5: 13,
|
|
17
|
-
6: 15,
|
|
18
|
-
9: 32,
|
|
19
|
-
10: 44,
|
|
20
|
-
},
|
|
21
|
-
transform: {
|
|
22
|
-
6: 'uppercase',
|
|
23
|
-
7: 'none',
|
|
24
|
-
},
|
|
25
|
-
weight: {
|
|
26
|
-
6: '400',
|
|
27
|
-
7: '700',
|
|
28
|
-
},
|
|
29
|
-
color: {
|
|
30
|
-
6: '$colorFocus',
|
|
31
|
-
7: '$color',
|
|
32
|
-
},
|
|
33
|
-
letterSpacing: {
|
|
34
|
-
5: 2,
|
|
35
|
-
6: 1,
|
|
36
|
-
7: 0,
|
|
37
|
-
8: 0,
|
|
38
|
-
9: -1,
|
|
39
|
-
10: -1.5,
|
|
40
|
-
12: -2,
|
|
41
|
-
14: -3,
|
|
42
|
-
15: -4,
|
|
43
|
-
},
|
|
44
|
-
// for native
|
|
45
|
-
face: {
|
|
46
|
-
700: { normal: 'InterBold' },
|
|
47
|
-
800: { normal: 'InterBold' },
|
|
48
|
-
900: { normal: 'InterBold' },
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{ sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 5)) }
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
const bodyFont = createInterFont(
|
|
55
|
-
{
|
|
56
|
-
weight: {
|
|
57
|
-
1: '400',
|
|
58
|
-
7: '600',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
sizeSize: (size) => Math.round(size),
|
|
63
|
-
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 8 : 4)),
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
const monoFont = createGenericFont(
|
|
68
|
-
`"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`,
|
|
69
|
-
{
|
|
70
|
-
weight: {
|
|
71
|
-
1: '500',
|
|
72
|
-
},
|
|
73
|
-
size: {
|
|
74
|
-
1: 11,
|
|
75
|
-
2: 12,
|
|
76
|
-
3: 13,
|
|
77
|
-
4: 14,
|
|
78
|
-
5: 16,
|
|
79
|
-
6: 18,
|
|
80
|
-
7: 20,
|
|
81
|
-
8: 22,
|
|
82
|
-
9: 30,
|
|
83
|
-
10: 42,
|
|
84
|
-
11: 52,
|
|
85
|
-
12: 62,
|
|
86
|
-
13: 72,
|
|
87
|
-
14: 92,
|
|
88
|
-
15: 114,
|
|
89
|
-
16: 124,
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
sizeLineHeight: (x) => x * 1.5,
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
export const config = {
|
|
98
|
-
defaultFont: 'body',
|
|
99
|
-
shouldAddPrefersColorThemes: true,
|
|
100
|
-
themeClassNameOnRoot: true,
|
|
101
|
-
animations,
|
|
102
|
-
themes,
|
|
103
|
-
media,
|
|
104
|
-
shorthands,
|
|
105
|
-
tokens,
|
|
106
|
-
fonts: {
|
|
107
|
-
// noto: notoFont as any,
|
|
108
|
-
heading: headingFont,
|
|
109
|
-
body: bodyFont,
|
|
110
|
-
mono: monoFont,
|
|
111
|
-
silkscreen: silkscreenFont,
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
config.selectionStyles = (theme) =>
|
|
117
|
-
theme.color5
|
|
118
|
-
? {
|
|
119
|
-
backgroundColor: theme.color5,
|
|
120
|
-
color: theme.color11,
|
|
121
|
-
}
|
|
122
|
-
: null
|
|
123
|
-
|
|
124
|
-
// @ts-ignore bad types
|
|
125
|
-
config.mediaQueryDefaultActive = mediaQueryDefaultActive
|