tamagui 1.0.1-beta.78 → 1.0.1-beta.79
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/index.js +0 -110
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +0 -110
- package/dist/esm/index.js.map +2 -2
- package/dist/jsx/createTamagui.js +1 -0
- package/dist/jsx/createTamagui.js.map +7 -0
- package/dist/jsx/helpers/focusableInputHOC.js +1 -0
- package/dist/jsx/helpers/focusableInputHOC.js.map +7 -0
- package/dist/jsx/helpers/getSpace.js +1 -0
- package/dist/jsx/helpers/getSpace.js.map +7 -0
- package/dist/jsx/helpers/inputHelpers.js +1 -0
- package/dist/jsx/helpers/inputHelpers.js.map +7 -0
- package/dist/jsx/helpers/prevent.js +1 -0
- package/dist/jsx/helpers/prevent.js.map +7 -0
- package/dist/jsx/hooks/useKeyboardDismissable.js +1 -0
- package/dist/jsx/hooks/useKeyboardDismissable.js.map +7 -0
- package/dist/jsx/index.js +1 -110
- package/dist/jsx/index.js.map +7 -0
- package/dist/jsx/lib/focusable.js +1 -0
- package/dist/jsx/lib/focusable.js.map +7 -0
- package/dist/jsx/lib/linear-gradient.js +1 -0
- package/dist/jsx/lib/linear-gradient.js.map +7 -0
- package/dist/jsx/lib/linear-gradient.native.js +1 -0
- package/dist/jsx/lib/linear-gradient.native.js.map +7 -0
- package/dist/jsx/lib/registerFocusable.js +1 -0
- package/dist/jsx/lib/registerFocusable.js.map +7 -0
- package/dist/jsx/lib/registerFocusable.native.js +1 -0
- package/dist/jsx/lib/registerFocusable.native.js.map +7 -0
- package/dist/jsx/polyfills.js +1 -0
- package/dist/jsx/polyfills.js.map +7 -0
- package/dist/jsx/viewTypes.js +1 -0
- package/dist/jsx/viewTypes.js.map +7 -0
- package/dist/jsx/views/Anchor.js +1 -0
- package/dist/jsx/views/Anchor.js.map +7 -0
- package/dist/jsx/views/BlurView.js +1 -0
- package/dist/jsx/views/BlurView.js.map +7 -0
- package/dist/jsx/views/BlurView.native.js +1 -0
- package/dist/jsx/views/BlurView.native.js.map +7 -0
- package/dist/jsx/views/EnsureFlexed.js +1 -0
- package/dist/jsx/views/EnsureFlexed.js.map +7 -0
- package/dist/jsx/views/ExitAnimationContext.js +1 -0
- package/dist/jsx/views/ExitAnimationContext.js.map +7 -0
- package/dist/jsx/views/Fieldset.js +1 -0
- package/dist/jsx/views/Fieldset.js.map +7 -0
- package/dist/jsx/views/Form.js +1 -0
- package/dist/jsx/views/Form.js.map +7 -0
- package/dist/jsx/views/Grid.js +1 -0
- package/dist/jsx/views/Grid.js.map +7 -0
- package/dist/jsx/views/Group.js +1 -0
- package/dist/jsx/views/Group.js.map +7 -0
- package/dist/jsx/views/Hoverable.js +1 -0
- package/dist/jsx/views/Hoverable.js.map +7 -0
- package/dist/jsx/views/Input.js +1 -0
- package/dist/jsx/views/Input.js.map +7 -0
- package/dist/jsx/views/Label.js +1 -0
- package/dist/jsx/views/Label.js.map +7 -0
- package/dist/jsx/views/Layouts.js +1 -0
- package/dist/jsx/views/Layouts.js.map +7 -0
- package/dist/jsx/views/LinearGradient.js +1 -0
- package/dist/jsx/views/LinearGradient.js.map +7 -0
- package/dist/jsx/views/SafeAreaProvider.js +1 -0
- package/dist/jsx/views/SafeAreaProvider.js.map +7 -0
- package/dist/jsx/views/Skeleton.js +1 -0
- package/dist/jsx/views/Skeleton.js.map +7 -0
- package/dist/jsx/views/Spinner.js +1 -0
- package/dist/jsx/views/Spinner.js.map +7 -0
- package/dist/jsx/views/Switch.js +1 -0
- package/dist/jsx/views/Switch.js.map +7 -0
- package/dist/jsx/views/Table.js +1 -0
- package/dist/jsx/views/Table.js.map +7 -0
- package/dist/jsx/views/TextArea.js +1 -0
- package/dist/jsx/views/TextArea.js.map +7 -0
- package/dist/jsx/views/Toast.js +1 -0
- package/dist/jsx/views/Toast.js.map +7 -0
- package/dist/jsx/views/VisuallyHidden.js +1 -0
- package/dist/jsx/views/VisuallyHidden.js.map +7 -0
- package/package.json +28 -28
- package/src/index.ts +4 -2
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/views/Fieldset.d.ts +3 -3
- package/types/views/Form.d.ts +3 -3
- package/types/views/Group.d.ts +6 -6
- package/types/views/Layouts.d.ts +21 -21
- package/types/views/Skeleton.d.ts +13 -16
- package/types/views/Skeleton.d.ts.map +1 -1
- package/types/views/Switch.d.ts +9 -9
- package/types/views/Table.d.ts +15 -15
- package/types/views/VisuallyHidden.d.ts +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -18,69 +18,15 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var src_exports = {};
|
|
20
20
|
__export(src_exports, {
|
|
21
|
-
AnimationKeys: () => import_core.AnimationKeys,
|
|
22
|
-
ColorTokens: () => import_core.ColorTokens,
|
|
23
|
-
CreateTamaguiConfig: () => import_core.CreateTamaguiConfig,
|
|
24
|
-
CreateTamaguiProps: () => import_core.CreateTamaguiProps,
|
|
25
|
-
FontColorTokens: () => import_core.FontColorTokens,
|
|
26
|
-
FontLetterSpacingTokens: () => import_core.FontLetterSpacingTokens,
|
|
27
|
-
FontLineHeightTokens: () => import_core.FontLineHeightTokens,
|
|
28
|
-
FontSizeTokens: () => import_core.FontSizeTokens,
|
|
29
|
-
FontStyleTokens: () => import_core.FontStyleTokens,
|
|
30
|
-
FontTokens: () => import_core.FontTokens,
|
|
31
|
-
FontTransformTokens: () => import_core.FontTransformTokens,
|
|
32
|
-
FontWeightTokens: () => import_core.FontWeightTokens,
|
|
33
|
-
GenericFont: () => import_core.GenericFont,
|
|
34
|
-
GenericStackVariants: () => import_core.GenericStackVariants,
|
|
35
|
-
GenericTamaguiConfig: () => import_core.GenericTamaguiConfig,
|
|
36
|
-
GenericTextVariants: () => import_core.GenericTextVariants,
|
|
37
|
-
GetAnimationKeys: () => import_core.GetAnimationKeys,
|
|
38
|
-
GetProps: () => import_core.GetProps,
|
|
39
|
-
GetVariantProps: () => import_core.GetVariantProps,
|
|
40
|
-
Media: () => import_core.Media,
|
|
41
|
-
MediaKeys: () => import_core.MediaKeys,
|
|
42
|
-
MediaPropKeys: () => import_core.MediaPropKeys,
|
|
43
|
-
MediaQueries: () => import_core.MediaQueries,
|
|
44
|
-
MediaQueryState: () => import_core.MediaQueryState,
|
|
45
|
-
RNWTextProps: () => import_core.RNWTextProps,
|
|
46
|
-
RNWViewProps: () => import_core.RNWViewProps,
|
|
47
|
-
Shorthands: () => import_core.Shorthands,
|
|
48
|
-
SizeTokens: () => import_core.SizeTokens,
|
|
49
|
-
SpaceTokens: () => import_core.SpaceTokens,
|
|
50
21
|
Spacer: () => import_core.Spacer,
|
|
51
22
|
Stack: () => import_core.Stack,
|
|
52
|
-
StackPropsBase: () => import_core.StackPropsBase,
|
|
53
|
-
StackPropsBaseShared: () => import_core.StackPropsBaseShared,
|
|
54
|
-
StaticConfig: () => import_core.StaticConfig,
|
|
55
|
-
StaticConfigParsed: () => import_core.StaticConfigParsed,
|
|
56
|
-
TamaguiBaseTheme: () => import_core.TamaguiBaseTheme,
|
|
57
|
-
TamaguiComponent: () => import_core.TamaguiComponent,
|
|
58
|
-
TamaguiComponentPropsBase: () => import_core.TamaguiComponentPropsBase,
|
|
59
|
-
TamaguiConfig: () => import_core.TamaguiConfig,
|
|
60
|
-
TamaguiCustomConfig: () => import_core.TamaguiCustomConfig,
|
|
61
|
-
TamaguiInternalConfig: () => import_core.TamaguiInternalConfig,
|
|
62
|
-
TamaguiProviderProps: () => import_core.TamaguiProviderProps,
|
|
63
23
|
Text: () => import_core.Text,
|
|
64
24
|
TextAncestorContext: () => import_core.TextAncestorContext,
|
|
65
|
-
TextProps: () => import_core.TextProps,
|
|
66
|
-
TextPropsBase: () => import_core.TextPropsBase,
|
|
67
|
-
TextPropsBaseShared: () => import_core.TextPropsBaseShared,
|
|
68
25
|
Theme: () => import_core.Theme,
|
|
69
26
|
ThemeInverse: () => import_core.ThemeInverse,
|
|
70
|
-
ThemeKeys: () => import_core.ThemeKeys,
|
|
71
|
-
ThemeName: () => import_core.ThemeName,
|
|
72
|
-
ThemeObject: () => import_core.ThemeObject,
|
|
73
|
-
ThemeProps: () => import_core.ThemeProps,
|
|
74
27
|
ThemeReset: () => import_core.ThemeReset,
|
|
75
|
-
ThemeValueFallback: () => import_core.ThemeValueFallback,
|
|
76
|
-
Themes: () => import_core.Themes,
|
|
77
|
-
Tokens: () => import_core.Tokens,
|
|
78
|
-
TransformStyleProps: () => import_core.TransformStyleProps,
|
|
79
28
|
Unspaced: () => import_core.Unspaced,
|
|
80
29
|
Variable: () => import_core.Variable,
|
|
81
|
-
VariantSpreadExtras: () => import_core.VariantSpreadExtras,
|
|
82
|
-
VariantSpreadFunction: () => import_core.VariantSpreadFunction,
|
|
83
|
-
ZIndexTokens: () => import_core.ZIndexTokens,
|
|
84
30
|
addMediaQueryListener: () => import_core.addMediaQueryListener,
|
|
85
31
|
calc: () => import_core.calc,
|
|
86
32
|
createComponent: () => import_core.createComponent,
|
|
@@ -110,7 +56,6 @@ __export(src_exports, {
|
|
|
110
56
|
isWebTouchable: () => import_core.isWebTouchable,
|
|
111
57
|
matchMedia: () => import_core.matchMedia,
|
|
112
58
|
mediaObjectToString: () => import_core.mediaObjectToString,
|
|
113
|
-
mediaQueryConfig: () => import_core.mediaQueryConfig,
|
|
114
59
|
mediaState: () => import_core.mediaState,
|
|
115
60
|
spacedChildren: () => import_core.spacedChildren,
|
|
116
61
|
styled: () => import_core.styled,
|
|
@@ -179,69 +124,15 @@ __reExport(src_exports, require("./views/VisuallyHidden"), module.exports);
|
|
|
179
124
|
__reExport(src_exports, require("./helpers/prevent"), module.exports);
|
|
180
125
|
// Annotate the CommonJS export names for ESM import in node:
|
|
181
126
|
0 && (module.exports = {
|
|
182
|
-
AnimationKeys,
|
|
183
|
-
ColorTokens,
|
|
184
|
-
CreateTamaguiConfig,
|
|
185
|
-
CreateTamaguiProps,
|
|
186
|
-
FontColorTokens,
|
|
187
|
-
FontLetterSpacingTokens,
|
|
188
|
-
FontLineHeightTokens,
|
|
189
|
-
FontSizeTokens,
|
|
190
|
-
FontStyleTokens,
|
|
191
|
-
FontTokens,
|
|
192
|
-
FontTransformTokens,
|
|
193
|
-
FontWeightTokens,
|
|
194
|
-
GenericFont,
|
|
195
|
-
GenericStackVariants,
|
|
196
|
-
GenericTamaguiConfig,
|
|
197
|
-
GenericTextVariants,
|
|
198
|
-
GetAnimationKeys,
|
|
199
|
-
GetProps,
|
|
200
|
-
GetVariantProps,
|
|
201
|
-
Media,
|
|
202
|
-
MediaKeys,
|
|
203
|
-
MediaPropKeys,
|
|
204
|
-
MediaQueries,
|
|
205
|
-
MediaQueryState,
|
|
206
|
-
RNWTextProps,
|
|
207
|
-
RNWViewProps,
|
|
208
|
-
Shorthands,
|
|
209
|
-
SizeTokens,
|
|
210
|
-
SpaceTokens,
|
|
211
127
|
Spacer,
|
|
212
128
|
Stack,
|
|
213
|
-
StackPropsBase,
|
|
214
|
-
StackPropsBaseShared,
|
|
215
|
-
StaticConfig,
|
|
216
|
-
StaticConfigParsed,
|
|
217
|
-
TamaguiBaseTheme,
|
|
218
|
-
TamaguiComponent,
|
|
219
|
-
TamaguiComponentPropsBase,
|
|
220
|
-
TamaguiConfig,
|
|
221
|
-
TamaguiCustomConfig,
|
|
222
|
-
TamaguiInternalConfig,
|
|
223
|
-
TamaguiProviderProps,
|
|
224
129
|
Text,
|
|
225
130
|
TextAncestorContext,
|
|
226
|
-
TextProps,
|
|
227
|
-
TextPropsBase,
|
|
228
|
-
TextPropsBaseShared,
|
|
229
131
|
Theme,
|
|
230
132
|
ThemeInverse,
|
|
231
|
-
ThemeKeys,
|
|
232
|
-
ThemeName,
|
|
233
|
-
ThemeObject,
|
|
234
|
-
ThemeProps,
|
|
235
133
|
ThemeReset,
|
|
236
|
-
ThemeValueFallback,
|
|
237
|
-
Themes,
|
|
238
|
-
Tokens,
|
|
239
|
-
TransformStyleProps,
|
|
240
134
|
Unspaced,
|
|
241
135
|
Variable,
|
|
242
|
-
VariantSpreadExtras,
|
|
243
|
-
VariantSpreadFunction,
|
|
244
|
-
ZIndexTokens,
|
|
245
136
|
addMediaQueryListener,
|
|
246
137
|
calc,
|
|
247
138
|
createComponent,
|
|
@@ -271,7 +162,6 @@ __reExport(src_exports, require("./helpers/prevent"), module.exports);
|
|
|
271
162
|
isWebTouchable,
|
|
272
163
|
matchMedia,
|
|
273
164
|
mediaObjectToString,
|
|
274
|
-
mediaQueryConfig,
|
|
275
165
|
mediaState,
|
|
276
166
|
spacedChildren,
|
|
277
167
|
styled,
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import './polyfills'\n\nexport { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/avatar'\nexport * from '@tamagui/button'\nexport * from '@tamagui/dialog'\nexport * from '@tamagui/card'\nexport * from '@tamagui/compose-refs'\nexport * from '@tamagui/create-context'\nexport * from '@tamagui/font-size'\nexport * from '@tamagui/helpers'\nexport * from '@tamagui/list-item'\nexport * from '@tamagui/popover'\nexport * from '@tamagui/popper'\nexport * from '@tamagui/progress'\nexport * from '@tamagui/select'\nexport * from '@tamagui/separator'\nexport * from '@tamagui/shapes'\nexport * from '@tamagui/slider'\nexport * from '@tamagui/image'\nexport * from '@tamagui/stacks'\nexport * from '@tamagui/text'\nexport * from '@tamagui/tooltip'\nexport * from '@tamagui/use-controllable-state'\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport {\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["import './polyfills'\n\nexport { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/avatar'\nexport * from '@tamagui/button'\nexport * from '@tamagui/dialog'\nexport * from '@tamagui/card'\nexport * from '@tamagui/compose-refs'\nexport * from '@tamagui/create-context'\nexport * from '@tamagui/font-size'\nexport * from '@tamagui/helpers'\nexport * from '@tamagui/list-item'\nexport * from '@tamagui/popover'\nexport * from '@tamagui/popper'\nexport * from '@tamagui/progress'\nexport * from '@tamagui/select'\nexport * from '@tamagui/separator'\nexport * from '@tamagui/shapes'\nexport * from '@tamagui/slider'\nexport * from '@tamagui/image'\nexport * from '@tamagui/stacks'\nexport * from '@tamagui/text'\nexport * from '@tamagui/tooltip'\nexport * from '@tamagui/use-controllable-state'\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport type {\n AnimationKeys,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontColorTokens,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontStyleTokens,\n FontTokens,\n FontTransformTokens,\n FontWeightTokens,\n GenericFont,\n GenericTamaguiConfig,\n GetAnimationKeys,\n GetProps,\n GetVariantProps,\n GenericTextVariants,\n GenericStackVariants,\n Media,\n MediaKeys,\n MediaPropKeys,\n MediaQueries,\n mediaQueryConfig,\n MediaQueryState,\n RNWTextProps,\n RNWViewProps,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n StackPropsBase,\n StackPropsBaseShared,\n StaticConfig,\n StaticConfigParsed,\n TamaguiBaseTheme,\n TamaguiComponent,\n TamaguiComponentPropsBase,\n TamaguiConfig,\n TamaguiCustomConfig,\n TamaguiInternalConfig,\n TamaguiProviderProps,\n TextProps,\n TextPropsBase,\n TextPropsBaseShared,\n ThemeKeys,\n ThemeName,\n ThemeObject,\n ThemeProps,\n Themes,\n ThemeValueFallback,\n Tokens,\n TransformStyleProps,\n VariantSpreadExtras,\n VariantSpreadFunction,\n ZIndexTokens,\n} from '@tamagui/core'\n\nexport {\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n ThemeInverse,\n ThemeReset,\n Unspaced,\n // context,\n TextAncestorContext,\n // constants\n isChrome,\n isSSR,\n isTouchable,\n isWeb,\n isWebIOS,\n isWebTouchable,\n // helpers\n calc,\n addMediaQueryListener,\n createComponent,\n createFont,\n createShorthands,\n createTheme,\n createTokens,\n createVariable,\n getConfig,\n getHasConfigured,\n getMedia,\n getStylesAtomic,\n getThemes,\n getTokens,\n getVariableValue,\n getVariableName,\n insertFont,\n isObj,\n isTamaguiElement,\n isTamaguiComponent,\n isVariable,\n matchMedia,\n mediaObjectToString,\n mediaState,\n spacedChildren,\n styled,\n themeable,\n Variable,\n withStaticProperties,\n // hooks\n useConstant,\n useDefaultThemeName,\n useIsMounted,\n useIsomorphicLayoutEffect,\n useIsTouchDevice,\n useMedia,\n usePressable,\n useTheme,\n useThemeName,\n useUnmountEffect,\n} from '@tamagui/core'\n\nexport * from './createTamagui'\nexport * from './viewTypes'\n\nexport * from './hooks/useKeyboardDismissable'\n\nexport * from './views/Anchor'\nexport * from './views/BlurView'\nexport * from './views/EnsureFlexed'\nexport * from './views/Fieldset'\nexport * from './views/Form'\nexport * from './views/Grid'\nexport * from './views/Hoverable'\nexport * from './views/Input'\nexport * from './views/Group'\nexport * from './views/Label'\nexport * from './views/Layouts'\nexport * from './views/LinearGradient'\n// export * from './views/Skeleton'\nexport * from './views/Spinner'\nexport * from './views/Switch'\nexport * from './views/Table'\nexport * from './views/TextArea'\nexport * from './views/Toast'\nexport * from './views/VisuallyHidden'\n\nexport * from './helpers/prevent'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAO;AAEP,4CAAkC;AAElC,wBAAc,4BAJd;AAKA,wBAAc,4BALd;AAMA,wBAAc,4BANd;AAOA,wBAAc,0BAPd;AAQA,wBAAc,kCARd;AASA,wBAAc,oCATd;AAUA,wBAAc,+BAVd;AAWA,wBAAc,6BAXd;AAYA,wBAAc,+BAZd;AAaA,wBAAc,6BAbd;AAcA,wBAAc,4BAdd;AAeA,wBAAc,8BAfd;AAgBA,wBAAc,4BAhBd;AAiBA,wBAAc,+BAjBd;AAkBA,wBAAc,4BAlBd;AAmBA,wBAAc,4BAnBd;AAoBA,wBAAc,2BApBd;AAqBA,wBAAc,4BArBd;AAsBA,wBAAc,0BAtBd;AAuBA,wBAAc,6BAvBd;AAwBA,wBAAc,4CAxBd;AAyBA,wBAAc,kCAzBd;AA0BA,wBAAc,sCA1Bd;AAwFA,kBA2DO;AAEP,wBAAc,4BArJd;AAsJA,wBAAc,wBAtJd;AAwJA,wBAAc,2CAxJd;AA0JA,wBAAc,2BA1Jd;AA2JA,wBAAc,6BA3Jd;AA4JA,wBAAc,iCA5Jd;AA6JA,wBAAc,6BA7Jd;AA8JA,wBAAc,yBA9Jd;AA+JA,wBAAc,yBA/Jd;AAgKA,wBAAc,8BAhKd;AAiKA,wBAAc,0BAjKd;AAkKA,wBAAc,0BAlKd;AAmKA,wBAAc,0BAnKd;AAoKA,wBAAc,4BApKd;AAqKA,wBAAc,mCArKd;AAuKA,wBAAc,4BAvKd;AAwKA,wBAAc,2BAxKd;AAyKA,wBAAc,0BAzKd;AA0KA,wBAAc,6BA1Kd;AA2KA,wBAAc,0BA3Kd;AA4KA,wBAAc,mCA5Kd;AA8KA,wBAAc,8BA9Kd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -24,61 +24,6 @@ export * from "@tamagui/use-controllable-state";
|
|
|
24
24
|
export * from "@tamagui/use-debounce";
|
|
25
25
|
export * from "@tamagui/use-force-update";
|
|
26
26
|
import {
|
|
27
|
-
AnimationKeys,
|
|
28
|
-
ColorTokens,
|
|
29
|
-
CreateTamaguiConfig,
|
|
30
|
-
CreateTamaguiProps,
|
|
31
|
-
FontColorTokens,
|
|
32
|
-
FontLetterSpacingTokens,
|
|
33
|
-
FontLineHeightTokens,
|
|
34
|
-
FontSizeTokens,
|
|
35
|
-
FontStyleTokens,
|
|
36
|
-
FontTokens,
|
|
37
|
-
FontTransformTokens,
|
|
38
|
-
FontWeightTokens,
|
|
39
|
-
GenericFont,
|
|
40
|
-
GenericTamaguiConfig,
|
|
41
|
-
GetAnimationKeys,
|
|
42
|
-
GetProps,
|
|
43
|
-
GetVariantProps,
|
|
44
|
-
GenericTextVariants,
|
|
45
|
-
GenericStackVariants,
|
|
46
|
-
Media,
|
|
47
|
-
MediaKeys,
|
|
48
|
-
MediaPropKeys,
|
|
49
|
-
MediaQueries,
|
|
50
|
-
mediaQueryConfig,
|
|
51
|
-
MediaQueryState,
|
|
52
|
-
RNWTextProps,
|
|
53
|
-
RNWViewProps,
|
|
54
|
-
Shorthands,
|
|
55
|
-
SizeTokens,
|
|
56
|
-
SpaceTokens,
|
|
57
|
-
StackPropsBase,
|
|
58
|
-
StackPropsBaseShared,
|
|
59
|
-
StaticConfig,
|
|
60
|
-
StaticConfigParsed,
|
|
61
|
-
TamaguiBaseTheme,
|
|
62
|
-
TamaguiComponent,
|
|
63
|
-
TamaguiComponentPropsBase,
|
|
64
|
-
TamaguiConfig,
|
|
65
|
-
TamaguiCustomConfig,
|
|
66
|
-
TamaguiInternalConfig,
|
|
67
|
-
TamaguiProviderProps,
|
|
68
|
-
TextProps,
|
|
69
|
-
TextPropsBase,
|
|
70
|
-
TextPropsBaseShared,
|
|
71
|
-
ThemeKeys,
|
|
72
|
-
ThemeName,
|
|
73
|
-
ThemeObject,
|
|
74
|
-
ThemeProps,
|
|
75
|
-
Themes,
|
|
76
|
-
ThemeValueFallback,
|
|
77
|
-
Tokens,
|
|
78
|
-
TransformStyleProps,
|
|
79
|
-
VariantSpreadExtras,
|
|
80
|
-
VariantSpreadFunction,
|
|
81
|
-
ZIndexTokens,
|
|
82
27
|
Spacer,
|
|
83
28
|
Stack,
|
|
84
29
|
Text,
|
|
@@ -156,69 +101,15 @@ export * from "./views/Toast";
|
|
|
156
101
|
export * from "./views/VisuallyHidden";
|
|
157
102
|
export * from "./helpers/prevent";
|
|
158
103
|
export {
|
|
159
|
-
AnimationKeys,
|
|
160
|
-
ColorTokens,
|
|
161
|
-
CreateTamaguiConfig,
|
|
162
|
-
CreateTamaguiProps,
|
|
163
|
-
FontColorTokens,
|
|
164
|
-
FontLetterSpacingTokens,
|
|
165
|
-
FontLineHeightTokens,
|
|
166
|
-
FontSizeTokens,
|
|
167
|
-
FontStyleTokens,
|
|
168
|
-
FontTokens,
|
|
169
|
-
FontTransformTokens,
|
|
170
|
-
FontWeightTokens,
|
|
171
|
-
GenericFont,
|
|
172
|
-
GenericStackVariants,
|
|
173
|
-
GenericTamaguiConfig,
|
|
174
|
-
GenericTextVariants,
|
|
175
|
-
GetAnimationKeys,
|
|
176
|
-
GetProps,
|
|
177
|
-
GetVariantProps,
|
|
178
|
-
Media,
|
|
179
|
-
MediaKeys,
|
|
180
|
-
MediaPropKeys,
|
|
181
|
-
MediaQueries,
|
|
182
|
-
MediaQueryState,
|
|
183
|
-
RNWTextProps,
|
|
184
|
-
RNWViewProps,
|
|
185
|
-
Shorthands,
|
|
186
|
-
SizeTokens,
|
|
187
|
-
SpaceTokens,
|
|
188
104
|
Spacer,
|
|
189
105
|
Stack,
|
|
190
|
-
StackPropsBase,
|
|
191
|
-
StackPropsBaseShared,
|
|
192
|
-
StaticConfig,
|
|
193
|
-
StaticConfigParsed,
|
|
194
|
-
TamaguiBaseTheme,
|
|
195
|
-
TamaguiComponent,
|
|
196
|
-
TamaguiComponentPropsBase,
|
|
197
|
-
TamaguiConfig,
|
|
198
|
-
TamaguiCustomConfig,
|
|
199
|
-
TamaguiInternalConfig,
|
|
200
|
-
TamaguiProviderProps,
|
|
201
106
|
Text,
|
|
202
107
|
TextAncestorContext,
|
|
203
|
-
TextProps,
|
|
204
|
-
TextPropsBase,
|
|
205
|
-
TextPropsBaseShared,
|
|
206
108
|
Theme,
|
|
207
109
|
ThemeInverse,
|
|
208
|
-
ThemeKeys,
|
|
209
|
-
ThemeName,
|
|
210
|
-
ThemeObject,
|
|
211
|
-
ThemeProps,
|
|
212
110
|
ThemeReset,
|
|
213
|
-
ThemeValueFallback,
|
|
214
|
-
Themes,
|
|
215
|
-
Tokens,
|
|
216
|
-
TransformStyleProps,
|
|
217
111
|
Unspaced,
|
|
218
112
|
Variable,
|
|
219
|
-
VariantSpreadExtras,
|
|
220
|
-
VariantSpreadFunction,
|
|
221
|
-
ZIndexTokens,
|
|
222
113
|
addMediaQueryListener,
|
|
223
114
|
calc,
|
|
224
115
|
createComponent,
|
|
@@ -248,7 +139,6 @@ export {
|
|
|
248
139
|
isWebTouchable,
|
|
249
140
|
matchMedia,
|
|
250
141
|
mediaObjectToString,
|
|
251
|
-
mediaQueryConfig,
|
|
252
142
|
mediaState,
|
|
253
143
|
spacedChildren,
|
|
254
144
|
styled,
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import './polyfills'\n\nexport { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/avatar'\nexport * from '@tamagui/button'\nexport * from '@tamagui/dialog'\nexport * from '@tamagui/card'\nexport * from '@tamagui/compose-refs'\nexport * from '@tamagui/create-context'\nexport * from '@tamagui/font-size'\nexport * from '@tamagui/helpers'\nexport * from '@tamagui/list-item'\nexport * from '@tamagui/popover'\nexport * from '@tamagui/popper'\nexport * from '@tamagui/progress'\nexport * from '@tamagui/select'\nexport * from '@tamagui/separator'\nexport * from '@tamagui/shapes'\nexport * from '@tamagui/slider'\nexport * from '@tamagui/image'\nexport * from '@tamagui/stacks'\nexport * from '@tamagui/text'\nexport * from '@tamagui/tooltip'\nexport * from '@tamagui/use-controllable-state'\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport {\n
|
|
5
|
-
"mappings": "AAAA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
4
|
+
"sourcesContent": ["import './polyfills'\n\nexport { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/avatar'\nexport * from '@tamagui/button'\nexport * from '@tamagui/dialog'\nexport * from '@tamagui/card'\nexport * from '@tamagui/compose-refs'\nexport * from '@tamagui/create-context'\nexport * from '@tamagui/font-size'\nexport * from '@tamagui/helpers'\nexport * from '@tamagui/list-item'\nexport * from '@tamagui/popover'\nexport * from '@tamagui/popper'\nexport * from '@tamagui/progress'\nexport * from '@tamagui/select'\nexport * from '@tamagui/separator'\nexport * from '@tamagui/shapes'\nexport * from '@tamagui/slider'\nexport * from '@tamagui/image'\nexport * from '@tamagui/stacks'\nexport * from '@tamagui/text'\nexport * from '@tamagui/tooltip'\nexport * from '@tamagui/use-controllable-state'\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport type {\n AnimationKeys,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontColorTokens,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontStyleTokens,\n FontTokens,\n FontTransformTokens,\n FontWeightTokens,\n GenericFont,\n GenericTamaguiConfig,\n GetAnimationKeys,\n GetProps,\n GetVariantProps,\n GenericTextVariants,\n GenericStackVariants,\n Media,\n MediaKeys,\n MediaPropKeys,\n MediaQueries,\n mediaQueryConfig,\n MediaQueryState,\n RNWTextProps,\n RNWViewProps,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n StackPropsBase,\n StackPropsBaseShared,\n StaticConfig,\n StaticConfigParsed,\n TamaguiBaseTheme,\n TamaguiComponent,\n TamaguiComponentPropsBase,\n TamaguiConfig,\n TamaguiCustomConfig,\n TamaguiInternalConfig,\n TamaguiProviderProps,\n TextProps,\n TextPropsBase,\n TextPropsBaseShared,\n ThemeKeys,\n ThemeName,\n ThemeObject,\n ThemeProps,\n Themes,\n ThemeValueFallback,\n Tokens,\n TransformStyleProps,\n VariantSpreadExtras,\n VariantSpreadFunction,\n ZIndexTokens,\n} from '@tamagui/core'\n\nexport {\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n ThemeInverse,\n ThemeReset,\n Unspaced,\n // context,\n TextAncestorContext,\n // constants\n isChrome,\n isSSR,\n isTouchable,\n isWeb,\n isWebIOS,\n isWebTouchable,\n // helpers\n calc,\n addMediaQueryListener,\n createComponent,\n createFont,\n createShorthands,\n createTheme,\n createTokens,\n createVariable,\n getConfig,\n getHasConfigured,\n getMedia,\n getStylesAtomic,\n getThemes,\n getTokens,\n getVariableValue,\n getVariableName,\n insertFont,\n isObj,\n isTamaguiElement,\n isTamaguiComponent,\n isVariable,\n matchMedia,\n mediaObjectToString,\n mediaState,\n spacedChildren,\n styled,\n themeable,\n Variable,\n withStaticProperties,\n // hooks\n useConstant,\n useDefaultThemeName,\n useIsMounted,\n useIsomorphicLayoutEffect,\n useIsTouchDevice,\n useMedia,\n usePressable,\n useTheme,\n useThemeName,\n useUnmountEffect,\n} from '@tamagui/core'\n\nexport * from './createTamagui'\nexport * from './viewTypes'\n\nexport * from './hooks/useKeyboardDismissable'\n\nexport * from './views/Anchor'\nexport * from './views/BlurView'\nexport * from './views/EnsureFlexed'\nexport * from './views/Fieldset'\nexport * from './views/Form'\nexport * from './views/Grid'\nexport * from './views/Hoverable'\nexport * from './views/Input'\nexport * from './views/Group'\nexport * from './views/Label'\nexport * from './views/Layouts'\nexport * from './views/LinearGradient'\n// export * from './views/Skeleton'\nexport * from './views/Spinner'\nexport * from './views/Switch'\nexport * from './views/Table'\nexport * from './views/TextArea'\nexport * from './views/Toast'\nexport * from './views/VisuallyHidden'\n\nexport * from './helpers/prevent'\n"],
|
|
5
|
+
"mappings": "AAAA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA8DA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6DA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/createTamagui.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as Core from '@tamagui/core'\nimport { CreateTamaguiProps, InferTamaguiConfig, TamaguiProviderProps } from '@tamagui/core'\nimport * as React from 'react'\n\nimport { SafeAreaProvider } from './views/SafeAreaProvider'\n\nexport function createTamagui<Conf extends CreateTamaguiProps>(\n config: Conf\n): InferTamaguiConfig<Conf> {\n const conf = Core.createTamagui(config)\n\n // add our providers\n const OGProvider = conf.Provider\n conf.Provider = ({ children, ...props }: TamaguiProviderProps) => {\n return (\n <SafeAreaProvider>\n <OGProvider {...props}>{children}</OGProvider>\n </SafeAreaProvider>\n )\n }\n\n return conf\n}\n"],
|
|
5
|
+
"mappings": "AAAA;AAIA;AAEO,uBACL,QAC0B;AAC1B,QAAM,OAAO,KAAK,cAAc,MAAM;AAGtC,QAAM,aAAa,KAAK;AACxB,OAAK,WAAW,CAAC,EAAE,aAAa,YAAkC;AAChE,WACE,CAAC,iBACC,CAAC,eAAe,QAAQ,SAAS,EAAhC,WACH,EAFC;AAAA,EAIL;AAEA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/focusableInputHOC.tsx"],
|
|
4
|
+
"sourcesContent": ["import { composeRefs } from '@tamagui/compose-refs'\nimport { isTamaguiComponent } from '@tamagui/core'\nimport React, { useRef } from 'react'\nimport { forwardRef, useCallback, useEffect } from 'react'\n\nimport { registerFocusable, unregisterFocusable } from '../lib/registerFocusable'\n\nexport function focusableInputHOC<A extends Function>(Component: A): A {\n return forwardRef(\n (\n props: {\n id?: string\n onChangeText?: (val: string) => void\n value?: string\n defaultValue?: string\n },\n ref\n ) => {\n const isInput = isTamaguiComponent(Component) && Component.staticConfig.isInput\n const inputValue = useRef(props.value || props.defaultValue || '')\n\n const inputRef = useCallback(\n (input) => {\n if (!props.id) return\n if (!input) return\n registerFocusable(props.id, {\n focus: input.focus,\n\n ...(isInput && {\n // react-native doesn't support programmatic .select()\n focusAndSelect() {\n input.focus()\n if (input.setSelection && typeof inputValue.current === 'string') {\n input.setSelection(0, inputValue.current.length)\n }\n },\n }),\n })\n },\n [props.id]\n )\n\n const combinedRefs = composeRefs(ref, inputRef)\n\n useEffect(() => {\n return () => {\n if (!props.id) return\n unregisterFocusable(props.id)\n }\n }, [props.id])\n\n const finalProps = isInput\n ? {\n ...props,\n onChangeText(value) {\n inputValue.current = value\n props.onChangeText?.(value)\n },\n }\n : props\n\n return <Component ref={combinedRefs} {...finalProps} />\n }\n ) as any\n}\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AACA;AACA;AAEA;AAEO,2BAA+C,WAAiB;AACrE,SAAO,WACL,CACE,OAMA,QACG;AACH,UAAM,UAAU,mBAAmB,SAAS,KAAK,UAAU,aAAa;AACxE,UAAM,aAAa,OAAO,MAAM,SAAS,MAAM,gBAAgB,EAAE;AAEjE,UAAM,WAAW,YACf,CAAC,UAAU;AACT,UAAI,CAAC,MAAM;AAAI;AACf,UAAI,CAAC;AAAO;AACZ,wBAAkB,MAAM,IAAI;AAAA,QAC1B,OAAO,MAAM;AAAA,QAEb,GAAI,WAAW;AAAA,UAEb,iBAAiB;AACf,kBAAM,MAAM;AACZ,gBAAI,MAAM,gBAAgB,OAAO,WAAW,YAAY,UAAU;AAChE,oBAAM,aAAa,GAAG,WAAW,QAAQ,MAAM;AAAA,YACjD;AAAA,UACF;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH,GACA,CAAC,MAAM,EAAE,CACX;AAEA,UAAM,eAAe,YAAY,KAAK,QAAQ;AAE9C,cAAU,MAAM;AACd,aAAO,MAAM;AACX,YAAI,CAAC,MAAM;AAAI;AACf,4BAAoB,MAAM,EAAE;AAAA,MAC9B;AAAA,IACF,GAAG,CAAC,MAAM,EAAE,CAAC;AAEb,UAAM,aAAa,UACf;AAAA,MACE,GAAG;AAAA,MACH,aAAa,OAAO;AAtDhC;AAuDc,mBAAW,UAAU;AACrB,oBAAM,iBAAN,+BAAqB;AAAA,MACvB;AAAA,IACF,IACA;AAEJ,WAAO,CAAC,UAAU,KAAK,kBAAkB,YAAY;AAAA,EACvD,CACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/getSpace.tsx"],
|
|
4
|
+
"sourcesContent": ["import { SpaceTokens, getTokens } from '@tamagui/core'\n\nexport const getSpace = (size?: SpaceTokens | undefined, sizeUpOrDownBy = 0) => {\n const spaces = getTokens().space as any as SpaceTokens\n const spaceNames = Object.keys(spaces)\n const key = spaceNames[Math.max(0, spaceNames.indexOf(String(size || '$4')) + sizeUpOrDownBy)]\n return (spaces[key] || spaces['$4']) as SpaceTokens\n}\n"],
|
|
5
|
+
"mappings": "AAAA;AAEO,MAAM,WAAW,CAAC,MAAgC,iBAAiB,MAAM;AAC9E,QAAM,SAAS,UAAU,EAAE;AAC3B,QAAM,aAAa,OAAO,KAAK,MAAM;AACrC,QAAM,MAAM,WAAW,KAAK,IAAI,GAAG,WAAW,QAAQ,OAAO,QAAQ,IAAI,CAAC,IAAI,cAAc;AAC5F,SAAQ,OAAO,QAAQ,OAAO;AAChC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/inputHelpers.tsx"],
|
|
4
|
+
"sourcesContent": ["import {\n SizeVariantSpreadFunction,\n calc,\n getButtonSize,\n getTextSize,\n getVariableValue,\n isWeb,\n stepTokenUpOrDown,\n} from '@tamagui/core'\n\nexport const inputSizeVariant: SizeVariantSpreadFunction<any> = (val = '$4', extras) => {\n if (extras.props.multiline || extras.props.numberOfLines > 1) {\n return textAreaSizeVariant(val, extras)\n }\n const buttonStyles = getButtonSize(val, extras)\n const paddingHorizontal = stepTokenUpOrDown(extras.tokens.space, val, -1, [2])\n const fontStyle = getTextSize(val, extras)\n // lineHeight messes up input on native\n if (!isWeb && fontStyle) {\n delete fontStyle['lineHeight']\n }\n return {\n ...fontStyle,\n ...buttonStyles,\n paddingHorizontal,\n }\n}\n\nexport const textAreaSizeVariant: SizeVariantSpreadFunction<any> = (val = '$4', extras) => {\n const { props } = extras\n const buttonStyles = getButtonSize(val, extras)\n const fontStyle = getTextSize(val, extras)!\n const minHeight = (props.numberOfLines || 1) * getVariableValue(fontStyle.lineHeight)\n const paddingVertical = stepTokenUpOrDown(extras.tokens.space, val, -2, [2])\n return {\n ...buttonStyles,\n ...fontStyle,\n paddingVertical,\n minHeight,\n }\n}\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,mBAAmD,CAAC,MAAM,MAAM,WAAW;AACtF,MAAI,OAAO,MAAM,aAAa,OAAO,MAAM,gBAAgB,GAAG;AAC5D,WAAO,oBAAoB,KAAK,MAAM;AAAA,EACxC;AACA,QAAM,eAAe,cAAc,KAAK,MAAM;AAC9C,QAAM,oBAAoB,kBAAkB,OAAO,OAAO,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC;AAC7E,QAAM,YAAY,YAAY,KAAK,MAAM;AAEzC,MAAI,CAAC,SAAS,WAAW;AACvB,WAAO,UAAU;AAAA,EACnB;AACA,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,EACF;AACF;AAEO,MAAM,sBAAsD,CAAC,MAAM,MAAM,WAAW;AACzF,QAAM,EAAE,UAAU;AAClB,QAAM,eAAe,cAAc,KAAK,MAAM;AAC9C,QAAM,YAAY,YAAY,KAAK,MAAM;AACzC,QAAM,YAAa,OAAM,iBAAiB,KAAK,iBAAiB,UAAU,UAAU;AACpF,QAAM,kBAAkB,kBAAkB,OAAO,OAAO,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC;AAC3E,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/hooks/useKeyboardDismissable.tsx"],
|
|
4
|
+
"sourcesContent": ["// forked from NativeBase\n// The MIT License (MIT)\n\n// Copyright (c) 2021 GeekyAnts India Pvt Ltd\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the \"Software\"), to deal in\n// the Software without restriction, including without limitation the rights to\n// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n// the Software, and to permit persons to whom the Software is furnished to do so,\n// subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport { isWeb } from '@tamagui/core'\nimport { useEffect } from 'react'\nimport { BackHandler } from 'react-native'\n\ntype IParams = {\n enabled?: boolean\n callback: () => any\n}\n\nlet keyboardDismissHandlers: Array<() => any> = []\nexport const keyboardDismissHandlerManager = {\n push: (handler: () => any) => {\n keyboardDismissHandlers.push(handler)\n return () => {\n keyboardDismissHandlers = keyboardDismissHandlers.filter((h) => h !== handler)\n }\n },\n length: () => keyboardDismissHandlers.length,\n pop: () => {\n return keyboardDismissHandlers.pop()\n },\n}\n\nexport const useKeyboardDismissable = ({ enabled, callback }: IParams) => {\n useEffect(() => {\n let cleanupFn = () => {}\n if (enabled) {\n cleanupFn = keyboardDismissHandlerManager.push(callback)\n } else {\n cleanupFn()\n }\n return () => {\n cleanupFn()\n }\n }, [enabled, callback])\n\n useBackHandler({ enabled, callback })\n}\n\nconst callbackOnEscape = (callback) => (e) => {\n if (e.key === 'Escape') {\n if (\n !(document.activeElement instanceof HTMLInputElement) &&\n !(document.activeElement instanceof HTMLTextAreaElement)\n ) {\n e.preventDefault()\n e.stopPropagation()\n callback()\n }\n }\n}\n\nexport function useBackHandler({ enabled, callback }: IParams) {\n useEffect(() => {\n let backHandler = () => {\n callback()\n return true\n }\n const keyHandler = callbackOnEscape(callback)\n if (enabled) {\n BackHandler.addEventListener('hardwareBackPress', backHandler)\n if (isWeb) {\n window.addEventListener('keydown', keyHandler)\n }\n } else {\n BackHandler.removeEventListener('hardwareBackPress', backHandler)\n }\n return () => {\n BackHandler.removeEventListener('hardwareBackPress', backHandler)\n if (isWeb) {\n window.removeEventListener('keydown', keyHandler)\n }\n }\n }, [enabled, callback])\n}\n"],
|
|
5
|
+
"mappings": "AAsBA;AACA;AACA;AAOA,IAAI,0BAA4C,CAAC;AAC1C,MAAM,gCAAgC;AAAA,EAC3C,MAAM,CAAC,YAAuB;AAC5B,4BAAwB,KAAK,OAAO;AACpC,WAAO,MAAM;AACX,gCAA0B,wBAAwB,OAAO,CAAC,MAAM,MAAM,OAAO;AAAA,IAC/E;AAAA,EACF;AAAA,EACA,QAAQ,MAAM,wBAAwB;AAAA,EACtC,KAAK,MAAM;AACT,WAAO,wBAAwB,IAAI;AAAA,EACrC;AACF;AAEO,MAAM,yBAAyB,CAAC,EAAE,SAAS,eAAwB;AACxE,YAAU,MAAM;AACd,QAAI,YAAY,MAAM;AAAA,IAAC;AACvB,QAAI,SAAS;AACX,kBAAY,8BAA8B,KAAK,QAAQ;AAAA,IACzD,OAAO;AACL,gBAAU;AAAA,IACZ;AACA,WAAO,MAAM;AACX,gBAAU;AAAA,IACZ;AAAA,EACF,GAAG,CAAC,SAAS,QAAQ,CAAC;AAEtB,iBAAe,EAAE,SAAS,SAAS,CAAC;AACtC;AAEA,MAAM,mBAAmB,CAAC,aAAa,CAAC,MAAM;AAC5C,MAAI,EAAE,QAAQ,UAAU;AACtB,QACE,CAAE,UAAS,yBAAyB,qBACpC,CAAE,UAAS,yBAAyB,sBACpC;AACA,QAAE,eAAe;AACjB,QAAE,gBAAgB;AAClB,eAAS;AAAA,IACX;AAAA,EACF;AACF;AAEO,wBAAwB,EAAE,SAAS,YAAqB;AAC7D,YAAU,MAAM;AACd,QAAI,cAAc,MAAM;AACtB,eAAS;AACT,aAAO;AAAA,IACT;AACA,UAAM,aAAa,iBAAiB,QAAQ;AAC5C,QAAI,SAAS;AACX,kBAAY,iBAAiB,qBAAqB,WAAW;AAC7D,UAAI,OAAO;AACT,eAAO,iBAAiB,WAAW,UAAU;AAAA,MAC/C;AAAA,IACF,OAAO;AACL,kBAAY,oBAAoB,qBAAqB,WAAW;AAAA,IAClE;AACA,WAAO,MAAM;AACX,kBAAY,oBAAoB,qBAAqB,WAAW;AAChE,UAAI,OAAO;AACT,eAAO,oBAAoB,WAAW,UAAU;AAAA,MAClD;AAAA,IACF;AAAA,EACF,GAAG,CAAC,SAAS,QAAQ,CAAC;AACxB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/jsx/index.js
CHANGED
|
@@ -24,61 +24,6 @@ export * from "@tamagui/use-controllable-state";
|
|
|
24
24
|
export * from "@tamagui/use-debounce";
|
|
25
25
|
export * from "@tamagui/use-force-update";
|
|
26
26
|
import {
|
|
27
|
-
AnimationKeys,
|
|
28
|
-
ColorTokens,
|
|
29
|
-
CreateTamaguiConfig,
|
|
30
|
-
CreateTamaguiProps,
|
|
31
|
-
FontColorTokens,
|
|
32
|
-
FontLetterSpacingTokens,
|
|
33
|
-
FontLineHeightTokens,
|
|
34
|
-
FontSizeTokens,
|
|
35
|
-
FontStyleTokens,
|
|
36
|
-
FontTokens,
|
|
37
|
-
FontTransformTokens,
|
|
38
|
-
FontWeightTokens,
|
|
39
|
-
GenericFont,
|
|
40
|
-
GenericTamaguiConfig,
|
|
41
|
-
GetAnimationKeys,
|
|
42
|
-
GetProps,
|
|
43
|
-
GetVariantProps,
|
|
44
|
-
GenericTextVariants,
|
|
45
|
-
GenericStackVariants,
|
|
46
|
-
Media,
|
|
47
|
-
MediaKeys,
|
|
48
|
-
MediaPropKeys,
|
|
49
|
-
MediaQueries,
|
|
50
|
-
mediaQueryConfig,
|
|
51
|
-
MediaQueryState,
|
|
52
|
-
RNWTextProps,
|
|
53
|
-
RNWViewProps,
|
|
54
|
-
Shorthands,
|
|
55
|
-
SizeTokens,
|
|
56
|
-
SpaceTokens,
|
|
57
|
-
StackPropsBase,
|
|
58
|
-
StackPropsBaseShared,
|
|
59
|
-
StaticConfig,
|
|
60
|
-
StaticConfigParsed,
|
|
61
|
-
TamaguiBaseTheme,
|
|
62
|
-
TamaguiComponent,
|
|
63
|
-
TamaguiComponentPropsBase,
|
|
64
|
-
TamaguiConfig,
|
|
65
|
-
TamaguiCustomConfig,
|
|
66
|
-
TamaguiInternalConfig,
|
|
67
|
-
TamaguiProviderProps,
|
|
68
|
-
TextProps,
|
|
69
|
-
TextPropsBase,
|
|
70
|
-
TextPropsBaseShared,
|
|
71
|
-
ThemeKeys,
|
|
72
|
-
ThemeName,
|
|
73
|
-
ThemeObject,
|
|
74
|
-
ThemeProps,
|
|
75
|
-
Themes,
|
|
76
|
-
ThemeValueFallback,
|
|
77
|
-
Tokens,
|
|
78
|
-
TransformStyleProps,
|
|
79
|
-
VariantSpreadExtras,
|
|
80
|
-
VariantSpreadFunction,
|
|
81
|
-
ZIndexTokens,
|
|
82
27
|
Spacer,
|
|
83
28
|
Stack,
|
|
84
29
|
Text,
|
|
@@ -156,69 +101,15 @@ export * from "./views/Toast";
|
|
|
156
101
|
export * from "./views/VisuallyHidden";
|
|
157
102
|
export * from "./helpers/prevent";
|
|
158
103
|
export {
|
|
159
|
-
AnimationKeys,
|
|
160
|
-
ColorTokens,
|
|
161
|
-
CreateTamaguiConfig,
|
|
162
|
-
CreateTamaguiProps,
|
|
163
|
-
FontColorTokens,
|
|
164
|
-
FontLetterSpacingTokens,
|
|
165
|
-
FontLineHeightTokens,
|
|
166
|
-
FontSizeTokens,
|
|
167
|
-
FontStyleTokens,
|
|
168
|
-
FontTokens,
|
|
169
|
-
FontTransformTokens,
|
|
170
|
-
FontWeightTokens,
|
|
171
|
-
GenericFont,
|
|
172
|
-
GenericStackVariants,
|
|
173
|
-
GenericTamaguiConfig,
|
|
174
|
-
GenericTextVariants,
|
|
175
|
-
GetAnimationKeys,
|
|
176
|
-
GetProps,
|
|
177
|
-
GetVariantProps,
|
|
178
|
-
Media,
|
|
179
|
-
MediaKeys,
|
|
180
|
-
MediaPropKeys,
|
|
181
|
-
MediaQueries,
|
|
182
|
-
MediaQueryState,
|
|
183
|
-
RNWTextProps,
|
|
184
|
-
RNWViewProps,
|
|
185
|
-
Shorthands,
|
|
186
|
-
SizeTokens,
|
|
187
|
-
SpaceTokens,
|
|
188
104
|
Spacer,
|
|
189
105
|
Stack,
|
|
190
|
-
StackPropsBase,
|
|
191
|
-
StackPropsBaseShared,
|
|
192
|
-
StaticConfig,
|
|
193
|
-
StaticConfigParsed,
|
|
194
|
-
TamaguiBaseTheme,
|
|
195
|
-
TamaguiComponent,
|
|
196
|
-
TamaguiComponentPropsBase,
|
|
197
|
-
TamaguiConfig,
|
|
198
|
-
TamaguiCustomConfig,
|
|
199
|
-
TamaguiInternalConfig,
|
|
200
|
-
TamaguiProviderProps,
|
|
201
106
|
Text,
|
|
202
107
|
TextAncestorContext,
|
|
203
|
-
TextProps,
|
|
204
|
-
TextPropsBase,
|
|
205
|
-
TextPropsBaseShared,
|
|
206
108
|
Theme,
|
|
207
109
|
ThemeInverse,
|
|
208
|
-
ThemeKeys,
|
|
209
|
-
ThemeName,
|
|
210
|
-
ThemeObject,
|
|
211
|
-
ThemeProps,
|
|
212
110
|
ThemeReset,
|
|
213
|
-
ThemeValueFallback,
|
|
214
|
-
Themes,
|
|
215
|
-
Tokens,
|
|
216
|
-
TransformStyleProps,
|
|
217
111
|
Unspaced,
|
|
218
112
|
Variable,
|
|
219
|
-
VariantSpreadExtras,
|
|
220
|
-
VariantSpreadFunction,
|
|
221
|
-
ZIndexTokens,
|
|
222
113
|
addMediaQueryListener,
|
|
223
114
|
calc,
|
|
224
115
|
createComponent,
|
|
@@ -248,7 +139,6 @@ export {
|
|
|
248
139
|
isWebTouchable,
|
|
249
140
|
matchMedia,
|
|
250
141
|
mediaObjectToString,
|
|
251
|
-
mediaQueryConfig,
|
|
252
142
|
mediaState,
|
|
253
143
|
spacedChildren,
|
|
254
144
|
styled,
|
|
@@ -266,3 +156,4 @@ export {
|
|
|
266
156
|
useUnmountEffect,
|
|
267
157
|
withStaticProperties
|
|
268
158
|
};
|
|
159
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import './polyfills'\n\nexport { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/avatar'\nexport * from '@tamagui/button'\nexport * from '@tamagui/dialog'\nexport * from '@tamagui/card'\nexport * from '@tamagui/compose-refs'\nexport * from '@tamagui/create-context'\nexport * from '@tamagui/font-size'\nexport * from '@tamagui/helpers'\nexport * from '@tamagui/list-item'\nexport * from '@tamagui/popover'\nexport * from '@tamagui/popper'\nexport * from '@tamagui/progress'\nexport * from '@tamagui/select'\nexport * from '@tamagui/separator'\nexport * from '@tamagui/shapes'\nexport * from '@tamagui/slider'\nexport * from '@tamagui/image'\nexport * from '@tamagui/stacks'\nexport * from '@tamagui/text'\nexport * from '@tamagui/tooltip'\nexport * from '@tamagui/use-controllable-state'\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport type {\n AnimationKeys,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontColorTokens,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontStyleTokens,\n FontTokens,\n FontTransformTokens,\n FontWeightTokens,\n GenericFont,\n GenericTamaguiConfig,\n GetAnimationKeys,\n GetProps,\n GetVariantProps,\n GenericTextVariants,\n GenericStackVariants,\n Media,\n MediaKeys,\n MediaPropKeys,\n MediaQueries,\n mediaQueryConfig,\n MediaQueryState,\n RNWTextProps,\n RNWViewProps,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n StackPropsBase,\n StackPropsBaseShared,\n StaticConfig,\n StaticConfigParsed,\n TamaguiBaseTheme,\n TamaguiComponent,\n TamaguiComponentPropsBase,\n TamaguiConfig,\n TamaguiCustomConfig,\n TamaguiInternalConfig,\n TamaguiProviderProps,\n TextProps,\n TextPropsBase,\n TextPropsBaseShared,\n ThemeKeys,\n ThemeName,\n ThemeObject,\n ThemeProps,\n Themes,\n ThemeValueFallback,\n Tokens,\n TransformStyleProps,\n VariantSpreadExtras,\n VariantSpreadFunction,\n ZIndexTokens,\n} from '@tamagui/core'\n\nexport {\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n ThemeInverse,\n ThemeReset,\n Unspaced,\n // context,\n TextAncestorContext,\n // constants\n isChrome,\n isSSR,\n isTouchable,\n isWeb,\n isWebIOS,\n isWebTouchable,\n // helpers\n calc,\n addMediaQueryListener,\n createComponent,\n createFont,\n createShorthands,\n createTheme,\n createTokens,\n createVariable,\n getConfig,\n getHasConfigured,\n getMedia,\n getStylesAtomic,\n getThemes,\n getTokens,\n getVariableValue,\n getVariableName,\n insertFont,\n isObj,\n isTamaguiElement,\n isTamaguiComponent,\n isVariable,\n matchMedia,\n mediaObjectToString,\n mediaState,\n spacedChildren,\n styled,\n themeable,\n Variable,\n withStaticProperties,\n // hooks\n useConstant,\n useDefaultThemeName,\n useIsMounted,\n useIsomorphicLayoutEffect,\n useIsTouchDevice,\n useMedia,\n usePressable,\n useTheme,\n useThemeName,\n useUnmountEffect,\n} from '@tamagui/core'\n\nexport * from './createTamagui'\nexport * from './viewTypes'\n\nexport * from './hooks/useKeyboardDismissable'\n\nexport * from './views/Anchor'\nexport * from './views/BlurView'\nexport * from './views/EnsureFlexed'\nexport * from './views/Fieldset'\nexport * from './views/Form'\nexport * from './views/Grid'\nexport * from './views/Hoverable'\nexport * from './views/Input'\nexport * from './views/Group'\nexport * from './views/Label'\nexport * from './views/Layouts'\nexport * from './views/LinearGradient'\n// export * from './views/Skeleton'\nexport * from './views/Spinner'\nexport * from './views/Switch'\nexport * from './views/Table'\nexport * from './views/TextArea'\nexport * from './views/Toast'\nexport * from './views/VisuallyHidden'\n\nexport * from './helpers/prevent'\n"],
|
|
5
|
+
"mappings": "AAAA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA8DA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6DA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=focusable.js.map
|