@tamagui/config 3.0.0-beta.924.1 → 3.0.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.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
package/src/v6-base.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// the aligned v6 base: Tailwind-aligned shorthands, scales, fonts, media and settings.
|
|
2
2
|
// colors and themes are deliberately separate so createV6Config can accept any pack.
|
|
3
3
|
import { shorthands } from '@tamagui/shorthands/v6'
|
|
4
|
+
import { defaultSizing } from '@tamagui/web'
|
|
5
|
+
import { copyAuthoredThemeScheme } from '@tamagui/web/internal-runtime'
|
|
4
6
|
import type { CreateTamaguiProps } from '@tamagui/web'
|
|
5
7
|
import { fonts as systemFonts } from './fonts'
|
|
6
8
|
import { media } from './media'
|
|
7
|
-
import {
|
|
9
|
+
import { settings as baseSettings } from './settings'
|
|
8
10
|
import {
|
|
9
11
|
tailwindFontSize,
|
|
10
12
|
tailwindLineHeight,
|
|
@@ -18,17 +20,93 @@ import {
|
|
|
18
20
|
} from '@tamagui/style-grammar/v6-themes'
|
|
19
21
|
|
|
20
22
|
export { shorthands }
|
|
23
|
+
export { defaultSizing }
|
|
21
24
|
export { createSystemFont } from './fonts'
|
|
22
25
|
export { breakpoints, media, mediaQueryDefaultActive } from './media'
|
|
23
|
-
export { selectionStyles }
|
|
24
26
|
export { tailwindSource } from './v6-tailwind-scales.generated'
|
|
25
27
|
export { v6RemovedThemeNames, v6ThemeNameReplacements }
|
|
26
28
|
export { toV6Themes, type V6Theme, type V6Themes } from './v6-themes'
|
|
27
29
|
// space and size deliberately remain separate configured domains even though their default
|
|
28
30
|
// values coincide. z-index is literal, so its identity scale is not configured as tokens.
|
|
31
|
+
/**
|
|
32
|
+
* Tailwind's `--container-*` scale, which is width-only by design: `max-w-3xl` is a
|
|
33
|
+
* utility and `h-3xl` is not. It is spread into the width/inline-size domains below
|
|
34
|
+
* and deliberately NOT into any height or block-size domain, so `width="$3xl"` is 768
|
|
35
|
+
* while `height="$3xl"` finds nothing on the shared `size` scale and stays unresolved.
|
|
36
|
+
* Adding it to `height` would invent a Tamagui-only spelling the class path still
|
|
37
|
+
* rejects. Documented for users in `docs/tailwind-mode.md`.
|
|
38
|
+
*/
|
|
39
|
+
const tailwindContainerSize = {
|
|
40
|
+
'3xs': 256,
|
|
41
|
+
'2xs': 288,
|
|
42
|
+
xs: 320,
|
|
43
|
+
sm: 384,
|
|
44
|
+
md: 448,
|
|
45
|
+
lg: 512,
|
|
46
|
+
xl: 576,
|
|
47
|
+
'2xl': 672,
|
|
48
|
+
'3xl': 768,
|
|
49
|
+
'4xl': 896,
|
|
50
|
+
'5xl': 1024,
|
|
51
|
+
'6xl': 1152,
|
|
52
|
+
'7xl': 1280,
|
|
53
|
+
} as const
|
|
54
|
+
|
|
29
55
|
export const tokens = {
|
|
30
56
|
space: tailwindSpace,
|
|
31
57
|
size: tailwindSize,
|
|
58
|
+
width: {
|
|
59
|
+
...tailwindSize,
|
|
60
|
+
...tailwindContainerSize,
|
|
61
|
+
},
|
|
62
|
+
minWidth: { ...tailwindSize, ...tailwindContainerSize },
|
|
63
|
+
maxWidth: { ...tailwindSize, ...tailwindContainerSize },
|
|
64
|
+
inlineSize: { ...tailwindSize, ...tailwindContainerSize },
|
|
65
|
+
minInlineSize: { ...tailwindSize, ...tailwindContainerSize },
|
|
66
|
+
maxInlineSize: { ...tailwindSize, ...tailwindContainerSize },
|
|
67
|
+
flexBasis: { ...tailwindSize, ...tailwindContainerSize },
|
|
68
|
+
borderWidth: {
|
|
69
|
+
0: 0,
|
|
70
|
+
1: 1,
|
|
71
|
+
2: 2,
|
|
72
|
+
4: 4,
|
|
73
|
+
8: 8,
|
|
74
|
+
},
|
|
75
|
+
outlineWidth: {
|
|
76
|
+
0: 0,
|
|
77
|
+
1: 1,
|
|
78
|
+
2: 2,
|
|
79
|
+
4: 4,
|
|
80
|
+
8: 8,
|
|
81
|
+
},
|
|
82
|
+
outlineOffset: {
|
|
83
|
+
0: 0,
|
|
84
|
+
1: 1,
|
|
85
|
+
2: 2,
|
|
86
|
+
4: 4,
|
|
87
|
+
8: 8,
|
|
88
|
+
'-1': -1,
|
|
89
|
+
'-2': -2,
|
|
90
|
+
'-4': -4,
|
|
91
|
+
'-8': -8,
|
|
92
|
+
},
|
|
93
|
+
boxShadow: {
|
|
94
|
+
'2xs': '0 1px rgb(0 0 0 / 0.05)',
|
|
95
|
+
xs: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
|
|
96
|
+
sm: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
|
|
97
|
+
md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
|
|
98
|
+
lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
|
|
99
|
+
xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
|
|
100
|
+
'2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
|
|
101
|
+
inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
|
|
102
|
+
},
|
|
103
|
+
perspective: {
|
|
104
|
+
dramatic: 100,
|
|
105
|
+
near: 300,
|
|
106
|
+
normal: 500,
|
|
107
|
+
midrange: 800,
|
|
108
|
+
distant: 1200,
|
|
109
|
+
},
|
|
32
110
|
radius: {
|
|
33
111
|
0: 0,
|
|
34
112
|
1: 3,
|
|
@@ -47,7 +125,13 @@ export const tokens = {
|
|
|
47
125
|
},
|
|
48
126
|
} as const
|
|
49
127
|
|
|
50
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Adds the tailwind type-scale keys (`xs sm base lg xl 2xl ...`) to a font.
|
|
130
|
+
* Wrap any font you pass to a v6 config with it.
|
|
131
|
+
*/
|
|
132
|
+
export function withTailwindTypeScale<F extends { size: object; lineHeight: object }>(
|
|
133
|
+
font: F
|
|
134
|
+
) {
|
|
51
135
|
return {
|
|
52
136
|
...font,
|
|
53
137
|
size: { ...font.size, ...tailwindFontSize },
|
|
@@ -60,8 +144,18 @@ export const fonts = {
|
|
|
60
144
|
heading: withTailwindTypeScale(systemFonts.heading),
|
|
61
145
|
} satisfies NonNullable<CreateTamaguiProps['fonts']>
|
|
62
146
|
|
|
147
|
+
/** v6 theme keys are hyphenated, so the v5 spelling in ./settings does not apply */
|
|
148
|
+
export const selectionStyles = (theme) =>
|
|
149
|
+
theme['color-5']
|
|
150
|
+
? {
|
|
151
|
+
backgroundColor: theme['color-5'],
|
|
152
|
+
color: theme['color-11'],
|
|
153
|
+
}
|
|
154
|
+
: null
|
|
155
|
+
|
|
63
156
|
export const settings = {
|
|
64
157
|
...baseSettings,
|
|
158
|
+
selectionStyles,
|
|
65
159
|
} satisfies CreateTamaguiProps['settings']
|
|
66
160
|
|
|
67
161
|
export type V6Settings = typeof settings
|
|
@@ -93,7 +187,7 @@ type Twelve<Value> = readonly [
|
|
|
93
187
|
Value,
|
|
94
188
|
]
|
|
95
189
|
|
|
96
|
-
/** one 12-step scale, light and dark values from step 1 (faintest) to 12 (strongest) */
|
|
190
|
+
/** one 12-step scale, light and dark values from step 1 (faintest) to 12 (strongest), keyed `${name}-${step}` */
|
|
97
191
|
export type V6ColorScale = {
|
|
98
192
|
light: Twelve<string>
|
|
99
193
|
dark: Twelve<string>
|
|
@@ -104,7 +198,7 @@ export type V6ColorScales = Record<string, V6ColorScale>
|
|
|
104
198
|
type ScaleStep = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
105
199
|
|
|
106
200
|
type ColorScaleThemeKeys<Scales extends V6ColorScales> = {
|
|
107
|
-
[Name in keyof Scales & string as `${Name}
|
|
201
|
+
[Name in keyof Scales & string as `${Name}-${ScaleStep}`]: string
|
|
108
202
|
}
|
|
109
203
|
|
|
110
204
|
type WithColorScales<
|
|
@@ -132,16 +226,16 @@ function themesWithColorScales<
|
|
|
132
226
|
)
|
|
133
227
|
}
|
|
134
228
|
scale.light.forEach((value, index) => {
|
|
135
|
-
light[`${name}
|
|
229
|
+
light[`${name}-${index + 1}`] = value
|
|
136
230
|
})
|
|
137
231
|
scale.dark.forEach((value, index) => {
|
|
138
|
-
dark[`${name}
|
|
232
|
+
dark[`${name}-${index + 1}`] = value
|
|
139
233
|
})
|
|
140
234
|
}
|
|
141
235
|
return {
|
|
142
236
|
...themes,
|
|
143
|
-
light: { ...themes.light, ...light },
|
|
144
|
-
dark: { ...themes.dark, ...dark },
|
|
237
|
+
light: copyAuthoredThemeScheme({ ...themes.light, ...light }, themes.light),
|
|
238
|
+
dark: copyAuthoredThemeScheme({ ...themes.dark, ...dark }, themes.dark),
|
|
145
239
|
} as WithColorScales<Themes, Scales>
|
|
146
240
|
}
|
|
147
241
|
|
|
@@ -149,8 +243,8 @@ const alignedConfig = {
|
|
|
149
243
|
media,
|
|
150
244
|
shorthands,
|
|
151
245
|
fonts,
|
|
152
|
-
selectionStyles,
|
|
153
246
|
settings,
|
|
247
|
+
sizing: defaultSizing,
|
|
154
248
|
}
|
|
155
249
|
|
|
156
250
|
/** Compose the aligned v6 base with a colors pack into a createTamagui-ready config. */
|
|
@@ -38,17 +38,25 @@ export const tailwindSpace = {
|
|
|
38
38
|
'80': 320,
|
|
39
39
|
'96': 384,
|
|
40
40
|
px: 1,
|
|
41
|
+
'0.5': 2,
|
|
41
42
|
'0-5': 2,
|
|
43
|
+
'1.5': 6,
|
|
42
44
|
'1-5': 6,
|
|
45
|
+
'2.5': 10,
|
|
43
46
|
'2-5': 10,
|
|
47
|
+
'3.5': 14,
|
|
44
48
|
'3-5': 14,
|
|
45
49
|
'-px': -1,
|
|
50
|
+
'-0.5': -2,
|
|
46
51
|
'-0-5': -2,
|
|
47
52
|
'-1': -4,
|
|
53
|
+
'-1.5': -6,
|
|
48
54
|
'-1-5': -6,
|
|
49
55
|
'-2': -8,
|
|
56
|
+
'-2.5': -10,
|
|
50
57
|
'-2-5': -10,
|
|
51
58
|
'-3': -12,
|
|
59
|
+
'-3.5': -14,
|
|
52
60
|
'-3-5': -14,
|
|
53
61
|
'-4': -16,
|
|
54
62
|
'-5': -20,
|
|
@@ -110,9 +118,13 @@ export const tailwindSize = {
|
|
|
110
118
|
'80': 320,
|
|
111
119
|
'96': 384,
|
|
112
120
|
px: 1,
|
|
121
|
+
'0.5': 2,
|
|
113
122
|
'0-5': 2,
|
|
123
|
+
'1.5': 6,
|
|
114
124
|
'1-5': 6,
|
|
125
|
+
'2.5': 10,
|
|
115
126
|
'2-5': 10,
|
|
127
|
+
'3.5': 14,
|
|
116
128
|
'3-5': 14,
|
|
117
129
|
} as const
|
|
118
130
|
|
package/src/v6-themes.ts
CHANGED
|
@@ -3,18 +3,49 @@ import {
|
|
|
3
3
|
v6ThemeNameReplacements,
|
|
4
4
|
} from '@tamagui/style-grammar/v6-themes'
|
|
5
5
|
|
|
6
|
+
type Digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
|
|
7
|
+
|
|
8
|
+
type AllDigits<Name extends string> = Name extends ''
|
|
9
|
+
? true
|
|
10
|
+
: Name extends `${infer Head}${infer Rest}`
|
|
11
|
+
? Head extends Digit
|
|
12
|
+
? AllDigits<Rest>
|
|
13
|
+
: false
|
|
14
|
+
: false
|
|
15
|
+
|
|
16
|
+
/** `color5` -> `color-5`, `black04` -> `black-04`, leaving hyphenated and digitless keys alone */
|
|
17
|
+
type HyphenateRamp<Name extends string, Prefix extends string = ''> = string extends Name
|
|
18
|
+
? Name
|
|
19
|
+
: Name extends `${infer Head}${infer Rest}`
|
|
20
|
+
? Head extends Digit
|
|
21
|
+
? AllDigits<Rest> extends true
|
|
22
|
+
? Prefix extends '' | `${string}-`
|
|
23
|
+
? `${Prefix}${Name}`
|
|
24
|
+
: `${Prefix}-${Name}`
|
|
25
|
+
: HyphenateRamp<Rest, `${Prefix}${Head}`>
|
|
26
|
+
: HyphenateRamp<Rest, `${Prefix}${Head}`>
|
|
27
|
+
: Prefix
|
|
28
|
+
|
|
29
|
+
export type V6ThemeKey<Name> = Name extends keyof typeof v6ThemeNameReplacements
|
|
30
|
+
? (typeof v6ThemeNameReplacements)[Name]
|
|
31
|
+
: Name extends string
|
|
32
|
+
? HyphenateRamp<Name>
|
|
33
|
+
: Name
|
|
34
|
+
|
|
6
35
|
export type V6Theme<Theme> = {
|
|
7
36
|
[Name in keyof Theme as Name extends (typeof v6RemovedThemeNames)[number]
|
|
8
37
|
? never
|
|
9
|
-
: Name
|
|
10
|
-
? (typeof v6ThemeNameReplacements)[Name]
|
|
11
|
-
: Name]: Theme[Name]
|
|
38
|
+
: V6ThemeKey<Name>]: Theme[Name]
|
|
12
39
|
}
|
|
13
40
|
|
|
14
41
|
export type V6Themes<Themes extends Record<string, object>> = {
|
|
15
42
|
[Name in keyof Themes]: V6Theme<Themes[Name]>
|
|
16
43
|
}
|
|
17
44
|
|
|
45
|
+
// the digit run only splits off when a non-hyphen, non-digit character precedes
|
|
46
|
+
// it, so `shadow-1` and `2xl` are already in the v6 grammar and pass through
|
|
47
|
+
const trailingRamp = /^(.*[^-\d])(\d+)$/
|
|
48
|
+
|
|
18
49
|
/** Apply the v6 theme-key grammar to any generated theme pack. */
|
|
19
50
|
export function toV6Themes<Themes extends Record<string, object>>(
|
|
20
51
|
themes: Themes
|
|
@@ -33,7 +64,7 @@ export function toV6Themes<Themes extends Record<string, object>>(
|
|
|
33
64
|
)
|
|
34
65
|
.map(([name, value]) => [
|
|
35
66
|
v6ThemeNameReplacements[name as keyof typeof v6ThemeNameReplacements] ??
|
|
36
|
-
name,
|
|
67
|
+
name.replace(trailingRamp, '$1-$2'),
|
|
37
68
|
value,
|
|
38
69
|
])
|
|
39
70
|
)
|
|
@@ -1,49 +1,109 @@
|
|
|
1
1
|
export declare const animationsCSS: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
quick:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
readonly quickest: {
|
|
3
|
+
readonly duration: 120;
|
|
4
|
+
readonly bounce: 0.2;
|
|
5
|
+
};
|
|
6
|
+
readonly quickestLessBouncy: {
|
|
7
|
+
readonly duration: 120;
|
|
8
|
+
readonly bounce: 0;
|
|
9
|
+
};
|
|
10
|
+
readonly quicker: {
|
|
11
|
+
readonly duration: 160;
|
|
12
|
+
readonly bounce: 0.25;
|
|
13
|
+
};
|
|
14
|
+
readonly quickerLessBouncy: {
|
|
15
|
+
readonly duration: 160;
|
|
16
|
+
readonly bounce: 0;
|
|
17
|
+
};
|
|
18
|
+
readonly quick: {
|
|
19
|
+
readonly duration: 220;
|
|
20
|
+
readonly bounce: 0.3;
|
|
21
|
+
};
|
|
22
|
+
readonly quickLessBouncy: {
|
|
23
|
+
readonly duration: 220;
|
|
24
|
+
readonly bounce: 0;
|
|
25
|
+
};
|
|
26
|
+
readonly medium: {
|
|
27
|
+
readonly duration: 300;
|
|
28
|
+
readonly bounce: 0.15;
|
|
29
|
+
};
|
|
30
|
+
readonly slow: {
|
|
31
|
+
readonly duration: 450;
|
|
32
|
+
readonly bounce: 0.1;
|
|
33
|
+
};
|
|
34
|
+
readonly slowest: {
|
|
35
|
+
readonly duration: 700;
|
|
36
|
+
readonly bounce: 0.1;
|
|
37
|
+
};
|
|
38
|
+
readonly lazy: {
|
|
39
|
+
readonly duration: 500;
|
|
40
|
+
readonly bounce: -0.2;
|
|
41
|
+
};
|
|
42
|
+
readonly superLazy: {
|
|
43
|
+
readonly duration: 800;
|
|
44
|
+
readonly bounce: -0.3;
|
|
45
|
+
};
|
|
46
|
+
readonly bouncy: {
|
|
47
|
+
readonly duration: 400;
|
|
48
|
+
readonly bounce: 0.5;
|
|
49
|
+
};
|
|
50
|
+
readonly superBouncy: {
|
|
51
|
+
readonly duration: 400;
|
|
52
|
+
readonly bounce: 0.75;
|
|
53
|
+
};
|
|
24
54
|
}>;
|
|
25
55
|
export declare const animations: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
quick:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
readonly quickest: {
|
|
57
|
+
readonly duration: 120;
|
|
58
|
+
readonly bounce: 0.2;
|
|
59
|
+
};
|
|
60
|
+
readonly quickestLessBouncy: {
|
|
61
|
+
readonly duration: 120;
|
|
62
|
+
readonly bounce: 0;
|
|
63
|
+
};
|
|
64
|
+
readonly quicker: {
|
|
65
|
+
readonly duration: 160;
|
|
66
|
+
readonly bounce: 0.25;
|
|
67
|
+
};
|
|
68
|
+
readonly quickerLessBouncy: {
|
|
69
|
+
readonly duration: 160;
|
|
70
|
+
readonly bounce: 0;
|
|
71
|
+
};
|
|
72
|
+
readonly quick: {
|
|
73
|
+
readonly duration: 220;
|
|
74
|
+
readonly bounce: 0.3;
|
|
75
|
+
};
|
|
76
|
+
readonly quickLessBouncy: {
|
|
77
|
+
readonly duration: 220;
|
|
78
|
+
readonly bounce: 0;
|
|
79
|
+
};
|
|
80
|
+
readonly medium: {
|
|
81
|
+
readonly duration: 300;
|
|
82
|
+
readonly bounce: 0.15;
|
|
83
|
+
};
|
|
84
|
+
readonly slow: {
|
|
85
|
+
readonly duration: 450;
|
|
86
|
+
readonly bounce: 0.1;
|
|
87
|
+
};
|
|
88
|
+
readonly slowest: {
|
|
89
|
+
readonly duration: 700;
|
|
90
|
+
readonly bounce: 0.1;
|
|
91
|
+
};
|
|
92
|
+
readonly lazy: {
|
|
93
|
+
readonly duration: 500;
|
|
94
|
+
readonly bounce: -0.2;
|
|
95
|
+
};
|
|
96
|
+
readonly superLazy: {
|
|
97
|
+
readonly duration: 800;
|
|
98
|
+
readonly bounce: -0.3;
|
|
99
|
+
};
|
|
100
|
+
readonly bouncy: {
|
|
101
|
+
readonly duration: 400;
|
|
102
|
+
readonly bounce: 0.5;
|
|
103
|
+
};
|
|
104
|
+
readonly superBouncy: {
|
|
105
|
+
readonly duration: 400;
|
|
106
|
+
readonly bounce: 0.75;
|
|
107
|
+
};
|
|
48
108
|
}>;
|
|
49
109
|
//# sourceMappingURL=animations-css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations-css.d.ts","sourceRoot":"","sources":["../src/animations-css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animations-css.d.ts","sourceRoot":"","sources":["../src/animations-css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqC,CAAA;AAE/D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgB,CAAA"}
|