tamagui 1.0.0-alpha.49 → 1.0.0-alpha.52
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/helpers/withStaticProperties.js +33 -0
- package/dist/cjs/helpers/withStaticProperties.js.map +7 -0
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/views/Drawer.js +102 -0
- package/dist/cjs/views/Drawer.js.map +7 -0
- package/dist/cjs/views/DrawerProvider.js +30 -0
- package/dist/cjs/views/DrawerProvider.js.map +7 -0
- package/dist/cjs/views/NativeLinearGradientProps.js.map +1 -1
- package/dist/cjs/views/SizableText.js +0 -1
- package/dist/cjs/views/SizableText.js.map +2 -2
- package/dist/cjs/views/Stacks.js +0 -1
- package/dist/cjs/views/Stacks.js.map +2 -2
- package/dist/cjs/views/withStaticProperties.js +1 -0
- package/dist/cjs/views/withStaticProperties.js.map +7 -0
- package/dist/esm/helpers/withStaticProperties.js +10 -0
- package/dist/esm/helpers/withStaticProperties.js.map +7 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/views/Drawer.js +50 -0
- package/dist/esm/views/Drawer.js.map +7 -0
- package/dist/esm/views/DrawerProvider.js +6 -0
- package/dist/esm/views/DrawerProvider.js.map +7 -0
- package/dist/esm/views/SizableText.js +0 -1
- package/dist/esm/views/SizableText.js.map +2 -2
- package/dist/esm/views/Stacks.js +0 -1
- package/dist/esm/views/Stacks.js.map +2 -2
- package/dist/esm/views/withStaticProperties.js +1 -0
- package/dist/esm/views/withStaticProperties.js.map +7 -0
- package/dist/jsx/helpers/withStaticProperties.js +9 -0
- package/dist/jsx/index.js +8 -0
- package/dist/jsx/views/Drawer.js +38 -0
- package/dist/jsx/views/DrawerProvider.js +5 -0
- package/dist/jsx/views/SizableText.js +0 -1
- package/dist/jsx/views/Stacks.js +0 -1
- package/dist/jsx/views/withStaticProperties.js +0 -0
- package/package.json +6 -3
- package/types/helpers/withStaticProperties.d.ts +2 -0
- package/types/helpers/withStaticProperties.d.ts.map +1 -0
- package/types/index.d.ts +3 -1
- package/types/index.d.ts.map +1 -1
- package/types/views/Drawer.d.ts +9 -0
- package/types/views/Drawer.d.ts.map +1 -0
- package/types/views/DrawerProvider.d.ts +3 -0
- package/types/views/DrawerProvider.d.ts.map +1 -0
- package/types/views/NativeLinearGradientProps.d.ts +4 -1
- package/types/views/NativeLinearGradientProps.d.ts.map +1 -1
- package/types/views/SizableText.d.ts.map +1 -1
- package/types/views/Stacks.d.ts.map +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
12
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(module2))
|
|
14
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
15
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
20
|
+
return (module2, temp) => {
|
|
21
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
22
|
+
};
|
|
23
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
24
|
+
var withStaticProperties_exports = {};
|
|
25
|
+
__export(withStaticProperties_exports, {
|
|
26
|
+
withStaticProperties: () => withStaticProperties
|
|
27
|
+
});
|
|
28
|
+
const withStaticProperties = /* @__PURE__ */ __name(function(component, staticProps) {
|
|
29
|
+
Object.assign(component, staticProps);
|
|
30
|
+
return component;
|
|
31
|
+
}, "withStaticProperties");
|
|
32
|
+
module.exports = __toCommonJS(withStaticProperties_exports);
|
|
33
|
+
//# sourceMappingURL=withStaticProperties.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/withStaticProperties.tsx"],
|
|
4
|
+
"sourcesContent": ["export const withStaticProperties = function <A extends Function, B>(\n component: A,\n staticProps: B\n): A & B {\n Object.assign(component, staticProps)\n return component as any\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,uBAAuB,gCAClC,WACA,aACO;AACP,SAAO,OAAO,WAAW;AACzB,SAAO;AAAA,GAL2B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __export(src_exports, {
|
|
|
45
45
|
StaticConfigParsed: () => import_core.StaticConfigParsed,
|
|
46
46
|
TamaguiConfig: () => import_core.TamaguiConfig,
|
|
47
47
|
TamaguiCustomConfig: () => import_core.TamaguiCustomConfig,
|
|
48
|
+
TamaguiInternalConfig: () => import_core.TamaguiInternalConfig,
|
|
48
49
|
TamaguiProviderProps: () => import_core.TamaguiProviderProps,
|
|
49
50
|
Text: () => import_core.Text,
|
|
50
51
|
TextAncestorContext: () => import_core.TextAncestorContext,
|
|
@@ -59,6 +60,7 @@ __export(src_exports, {
|
|
|
59
60
|
Tokens: () => import_core.Tokens,
|
|
60
61
|
TransformStyleProps: () => import_core.TransformStyleProps,
|
|
61
62
|
Variable: () => import_core.Variable,
|
|
63
|
+
addMediaQueryListener: () => import_core.addMediaQueryListener,
|
|
62
64
|
createComponent: () => import_core.createComponent,
|
|
63
65
|
createFont: () => import_core.createFont,
|
|
64
66
|
createShorthands: () => import_core.createShorthands,
|
|
@@ -82,6 +84,7 @@ __export(src_exports, {
|
|
|
82
84
|
isWebIOS: () => import_core.isWebIOS,
|
|
83
85
|
matchMedia: () => import_core.matchMedia,
|
|
84
86
|
mediaObjectToString: () => import_core.mediaObjectToString,
|
|
87
|
+
mediaQueryConfig: () => import_core.mediaQueryConfig,
|
|
85
88
|
mediaState: () => import_core.mediaState,
|
|
86
89
|
spacedChildren: () => import_core.spacedChildren,
|
|
87
90
|
styled: () => import_core.styled,
|
|
@@ -107,6 +110,8 @@ __reExport(src_exports, require("./views/BlurView"));
|
|
|
107
110
|
__reExport(src_exports, require("./views/Box"));
|
|
108
111
|
__reExport(src_exports, require("./views/Button"));
|
|
109
112
|
__reExport(src_exports, require("./views/Circle"));
|
|
113
|
+
__reExport(src_exports, require("./views/Drawer"));
|
|
114
|
+
__reExport(src_exports, require("./views/DrawerProvider"));
|
|
110
115
|
__reExport(src_exports, require("./views/EnsureFlexed"));
|
|
111
116
|
__reExport(src_exports, require("./views/Form"));
|
|
112
117
|
__reExport(src_exports, require("./views/Grid"));
|
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": ["export { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/helpers'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport {\n // types\n GenericTamaguiConfig,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontTokens,\n FontWeightTokens,\n GetProps,\n MediaKeys,\n MediaQueries,\n MediaQueryState,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n TamaguiCustomConfig,\n TamaguiConfig,\n TamaguiProviderProps,\n StaticComponent,\n ThemeKeys,\n StaticConfig,\n ThemeableHOC,\n ThemeObject,\n TextProps,\n ThemeProps,\n Themes,\n Tokens,\n TransformStyleProps,\n StaticConfigParsed,\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n ThemeInverse,\n // context,\n TextAncestorContext,\n // constants\n isWeb,\n isSSR,\n isChrome,\n supportsTouchWeb,\n isTouchDevice,\n isWebIOS,\n // helpers\n mediaState,\n styled,\n createComponent,\n createFont,\n createShorthands,\n createTamagui,\n createTheme,\n createTokens,\n createVariable,\n mediaObjectToString,\n Variable,\n getMedia,\n getThemes,\n getTamagui,\n getTokens,\n getHasConfigured,\n getThemeParentClassName,\n spacedChildren,\n themeable,\n getStylesAtomic,\n isObj,\n isTamaguiElement,\n matchMedia,\n // hooks\n useConstant,\n useDefaultThemeName,\n useIsomorphicLayoutEffect,\n useMedia,\n useTheme,\n useThemeName,\n} from '@tamagui/core'\n\nexport * from './viewTypes'\n\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\nexport * from './hooks/useLayout'\nexport * from './hooks/useKeyboardDismissable'\n\nexport * from './views/BlurView'\nexport * from './views/Box'\nexport * from './views/Button'\nexport * from './views/Circle'\nexport * from './views/EnsureFlexed'\nexport * from './views/Form'\nexport * from './views/Grid'\nexport * from './views/Headings'\nexport * from './views/Hoverable'\nexport * from './views/HoverablePopover'\nexport * from './views/InteractiveContainer'\nexport * from './views/InteractiveFrame'\nexport * from './views/Layouts'\nexport * from './views/LinearGradient'\nexport * from './views/Modal'\nexport * from './views/Overlay'\nexport * from './views/Paragraph'\nexport * from './views/Popover/Popover'\nexport * from './views/Popover/PopoverProvider'\nexport * from './views/SafeAreaProvider'\nexport * from './views/Separator'\nexport * from './views/SizableText'\nexport * from './views/Stacks'\nexport * from './views/Table'\nexport * from './views/Toast'\nexport * from './views/Tooltip'\nexport * from './views/TouchableOpacity'\nexport * from './views/Transitions'\nexport * from './views/VisuallyHidden'\n\nexport * from './helpers/prevent'\nexport * from './helpers/getFontSize'\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAkC;AAElC,wBAAc;AAId,
|
|
4
|
+
"sourcesContent": ["export { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/helpers'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport {\n // types\n addMediaQueryListener,\n mediaQueryConfig,\n TamaguiInternalConfig,\n GenericTamaguiConfig,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontTokens,\n FontWeightTokens,\n GetProps,\n MediaKeys,\n MediaQueries,\n MediaQueryState,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n TamaguiCustomConfig,\n TamaguiConfig,\n TamaguiProviderProps,\n StaticComponent,\n ThemeKeys,\n StaticConfig,\n ThemeableHOC,\n ThemeObject,\n TextProps,\n ThemeProps,\n Themes,\n Tokens,\n TransformStyleProps,\n StaticConfigParsed,\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n ThemeInverse,\n // context,\n TextAncestorContext,\n // constants\n isWeb,\n isSSR,\n isChrome,\n supportsTouchWeb,\n isTouchDevice,\n isWebIOS,\n // helpers\n mediaState,\n styled,\n createComponent,\n createFont,\n createShorthands,\n createTamagui,\n createTheme,\n createTokens,\n createVariable,\n mediaObjectToString,\n Variable,\n getMedia,\n getThemes,\n getTamagui,\n getTokens,\n getHasConfigured,\n getThemeParentClassName,\n spacedChildren,\n themeable,\n getStylesAtomic,\n isObj,\n isTamaguiElement,\n matchMedia,\n // hooks\n useConstant,\n useDefaultThemeName,\n useIsomorphicLayoutEffect,\n useMedia,\n useTheme,\n useThemeName,\n} from '@tamagui/core'\n\nexport * from './viewTypes'\n\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\nexport * from './hooks/useLayout'\nexport * from './hooks/useKeyboardDismissable'\n\nexport * from './views/BlurView'\nexport * from './views/Box'\nexport * from './views/Button'\nexport * from './views/Circle'\nexport * from './views/Drawer'\nexport * from './views/DrawerProvider'\nexport * from './views/EnsureFlexed'\nexport * from './views/Form'\nexport * from './views/Grid'\nexport * from './views/Headings'\nexport * from './views/Hoverable'\nexport * from './views/HoverablePopover'\nexport * from './views/InteractiveContainer'\nexport * from './views/InteractiveFrame'\nexport * from './views/Layouts'\nexport * from './views/LinearGradient'\nexport * from './views/Modal'\nexport * from './views/Overlay'\nexport * from './views/Paragraph'\nexport * from './views/Popover/Popover'\nexport * from './views/Popover/PopoverProvider'\nexport * from './views/SafeAreaProvider'\nexport * from './views/Separator'\nexport * from './views/SizableText'\nexport * from './views/Stacks'\nexport * from './views/Table'\nexport * from './views/Toast'\nexport * from './views/Tooltip'\nexport * from './views/TouchableOpacity'\nexport * from './views/Transitions'\nexport * from './views/VisuallyHidden'\n\nexport * from './helpers/prevent'\nexport * from './helpers/getFontSize'\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAkC;AAElC,wBAAc;AAId,kBAiFO;AAEP,wBAAc;AAEd,wBAAc;AACd,wBAAc;AAEd,wBAAc;AACd,wBAAc;AAEd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;AAEd,wBAAc;AACd,wBAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
var __export = (target, all) => {
|
|
33
|
+
for (var name in all)
|
|
34
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
35
|
+
};
|
|
36
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
37
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
38
|
+
for (let key of __getOwnPropNames(module2))
|
|
39
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
40
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
45
|
+
return (module2, temp) => {
|
|
46
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
47
|
+
};
|
|
48
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
49
|
+
var Drawer_exports = {};
|
|
50
|
+
__export(Drawer_exports, {
|
|
51
|
+
Drawer: () => Drawer
|
|
52
|
+
});
|
|
53
|
+
var import_bottom_sheet = require("@gorhom/bottom-sheet");
|
|
54
|
+
var import_core = require("@tamagui/core");
|
|
55
|
+
var import_react = require("react");
|
|
56
|
+
var import_withStaticProperties = require("../helpers/withStaticProperties");
|
|
57
|
+
var import_DrawerProvider = require("./DrawerProvider");
|
|
58
|
+
var import_Stacks = require("./Stacks");
|
|
59
|
+
const Drawer = (0, import_withStaticProperties.withStaticProperties)((_a) => {
|
|
60
|
+
var _b = _a, {
|
|
61
|
+
children,
|
|
62
|
+
open,
|
|
63
|
+
onChange
|
|
64
|
+
} = _b, props = __objRest(_b, [
|
|
65
|
+
"children",
|
|
66
|
+
"open",
|
|
67
|
+
"onChange"
|
|
68
|
+
]);
|
|
69
|
+
var _a2, _b2;
|
|
70
|
+
const sheetRef = (0, import_react.useRef)(null);
|
|
71
|
+
const theme = (0, import_core.useTheme)();
|
|
72
|
+
(0, import_react.useEffect)(() => {
|
|
73
|
+
var _a3, _b3;
|
|
74
|
+
if (!open) {
|
|
75
|
+
(_a3 = sheetRef.current) == null ? void 0 : _a3.dismiss();
|
|
76
|
+
} else {
|
|
77
|
+
(_b3 = sheetRef.current) == null ? void 0 : _b3.present();
|
|
78
|
+
}
|
|
79
|
+
}, [open]);
|
|
80
|
+
return /* @__PURE__ */ React.createElement(import_bottom_sheet.BottomSheetModal, __spreadValues(__spreadValues({
|
|
81
|
+
backgroundStyle: {
|
|
82
|
+
backgroundColor: (_a2 = theme.bg) == null ? void 0 : _a2.toString(),
|
|
83
|
+
shadowColor: (_b2 = theme.shadowColor) == null ? void 0 : _b2.toString(),
|
|
84
|
+
shadowRadius: 10
|
|
85
|
+
},
|
|
86
|
+
snapPoints: ["40%"],
|
|
87
|
+
ref: sheetRef
|
|
88
|
+
}, !!onChange && {
|
|
89
|
+
onChange: (i) => {
|
|
90
|
+
onChange(i === 0);
|
|
91
|
+
}
|
|
92
|
+
}), props), /* @__PURE__ */ React.createElement(import_Stacks.YStack, {
|
|
93
|
+
fullscreen: true,
|
|
94
|
+
backgroundColor: "$bg",
|
|
95
|
+
borderTopLeftRadius: "$2",
|
|
96
|
+
borderTopRightRadius: "$2"
|
|
97
|
+
}, children));
|
|
98
|
+
}, {
|
|
99
|
+
Provider: import_DrawerProvider.DrawerProvider
|
|
100
|
+
});
|
|
101
|
+
module.exports = __toCommonJS(Drawer_exports);
|
|
102
|
+
//# sourceMappingURL=Drawer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/Drawer.tsx"],
|
|
4
|
+
"sourcesContent": ["import { BottomSheetModal, BottomSheetModalProps } from '@gorhom/bottom-sheet'\nimport { useTheme } from '@tamagui/core'\nimport { useEffect, useRef } from 'react'\n\nimport { withStaticProperties } from '../helpers/withStaticProperties'\nimport { DrawerProvider } from './DrawerProvider'\nimport { YStack } from './Stacks'\n\nexport const Drawer = withStaticProperties(\n ({\n children,\n open,\n onChange,\n ...props\n }: Omit<Partial<BottomSheetModalProps>, 'onChange'> & {\n open?: boolean\n onChange?: ((showing: boolean) => void) | React.Dispatch<React.SetStateAction<boolean>>\n }) => {\n const sheetRef = useRef<BottomSheetModal>(null)\n const theme = useTheme()\n\n useEffect(() => {\n if (!open) {\n sheetRef.current?.dismiss()\n } else {\n sheetRef.current?.present()\n }\n }, [open])\n\n return (\n <BottomSheetModal\n backgroundStyle={{\n backgroundColor: theme.bg?.toString(),\n shadowColor: theme.shadowColor?.toString(),\n shadowRadius: 10,\n }}\n snapPoints={['40%']}\n ref={sheetRef}\n {...(!!onChange && {\n onChange: (i) => {\n onChange(i === 0)\n },\n })}\n {...props}\n >\n <YStack fullscreen backgroundColor=\"$bg\" borderTopLeftRadius=\"$2\" borderTopRightRadius=\"$2\">\n {children}\n </YStack>\n </BottomSheetModal>\n )\n },\n {\n Provider: DrawerProvider,\n }\n)\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAwD;AACxD,kBAAyB;AACzB,mBAAkC;AAElC,kCAAqC;AACrC,4BAA+B;AAC/B,oBAAuB;AAEhB,MAAM,SAAS,sDACpB,CAAC,OAQK;AARL,eACC;AAAA;AAAA,IACA;AAAA,IACA;AAAA,MAHD,IAII,kBAJJ,IAII;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAZJ;AAkBI,QAAM,WAAW,yBAAyB;AAC1C,QAAM,QAAQ;AAEd,8BAAU,MAAM;AArBpB;AAsBM,QAAI,CAAC,MAAM;AACT,sBAAS,YAAT,oBAAkB;AAAA,WACb;AACL,sBAAS,YAAT,oBAAkB;AAAA;AAAA,KAEnB,CAAC;AAEJ,SACE,oCAAC,sCAAD;AAAA,IACE,iBAAiB;AAAA,MACf,iBAAiB,aAAM,OAAN,oBAAU;AAAA,MAC3B,aAAa,aAAM,gBAAN,oBAAmB;AAAA,MAChC,cAAc;AAAA;AAAA,IAEhB,YAAY,CAAC;AAAA,IACb,KAAK;AAAA,KACA,CAAC,CAAC,YAAY;AAAA,IACjB,UAAU,CAAC,MAAM;AACf,eAAS,MAAM;AAAA;AAAA,MAGf,QAEJ,oCAAC,sBAAD;AAAA,IAAQ,YAAU;AAAA,IAAC,iBAAgB;AAAA,IAAM,qBAAoB;AAAA,IAAK,sBAAqB;AAAA,KACpF;AAAA,GAKT;AAAA,EACE,UAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
11
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(module2))
|
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
14
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
19
|
+
return (module2, temp) => {
|
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
|
+
};
|
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
var DrawerProvider_exports = {};
|
|
24
|
+
__export(DrawerProvider_exports, {
|
|
25
|
+
DrawerProvider: () => DrawerProvider
|
|
26
|
+
});
|
|
27
|
+
var import_bottom_sheet = require("@gorhom/bottom-sheet");
|
|
28
|
+
const DrawerProvider = import_bottom_sheet.BottomSheetModalProvider;
|
|
29
|
+
module.exports = __toCommonJS(DrawerProvider_exports);
|
|
30
|
+
//# sourceMappingURL=DrawerProvider.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/DrawerProvider.tsx"],
|
|
4
|
+
"sourcesContent": ["import { BottomSheetModalProvider } from '@gorhom/bottom-sheet'\n\nexport const DrawerProvider = BottomSheetModalProvider\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAyC;AAElC,MAAM,iBAAiB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/NativeLinearGradientProps.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react'\nimport { View } from 'react-native'\n\nexport type NativeLinearGradientProps = React.ComponentProps<typeof View> &\n React.PropsWithChildren<{\n colors: (number | string)[]\n locations?: number[] | null\n start?: NativeLinearGradientPoint | null\n end?: NativeLinearGradientPoint | null\n }>\n\nexport type NativeLinearGradientPoint = [number, number]\n"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react'\nimport { View } from 'react-native'\n\nexport type NativeLinearGradientProps = React.ComponentProps<typeof View> &\n React.PropsWithChildren<{\n colors: (number | string)[]\n locations?: number[] | null\n start?: NativeLinearGradientPoint | null\n end?: NativeLinearGradientPoint | null\n }>\n\nexport type NativeLinearGradientPoint = { x?: number; y?: number } | [number, number]\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -38,7 +38,6 @@ const sizableTextSizeVariant = /* @__PURE__ */ __name((val = "$4", { tokens, pro
|
|
|
38
38
|
const fontSize = props.fontSize || font.size[val];
|
|
39
39
|
const lineHeight = props.lineHeight || font.lineHeight[val];
|
|
40
40
|
const fontWeight = props.fontWeight || font.weight[val];
|
|
41
|
-
console.log("val", val, fontSize);
|
|
42
41
|
const letterSpacing = props.letterSpacing || font.letterSpacing[val];
|
|
43
42
|
return {
|
|
44
43
|
fontFamily,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/SizableText.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, Text, Variable, styled } from '@tamagui/core'\n\nexport const sizableTextSizeVariant = (val = '$4', { tokens, props }) => {\n const family = (\n typeof props.fontFamily === 'string'\n ? props.fontFamily\n : props.fontFamily instanceof Variable\n ? props.fontFamily.val\n : props.fontFamily || '$body'\n ) as any\n const font = tokens.font[family] ?? tokens.font['$body']\n if (!font) {\n console.warn('\u26A0\uFE0F no font found', { family, fontTokens: Object.keys(tokens.font), val })\n return {}\n }\n const fontFamily = font.family\n const fontSize = props.fontSize || font.size[val]\n const lineHeight = props.lineHeight || font.lineHeight[val]\n const fontWeight = props.fontWeight || font.weight[val]\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiD;AAE1C,MAAM,yBAAyB,wBAAC,MAAM,MAAM,EAAE,QAAQ,YAAY;AACvE,QAAM,SACJ,OAAO,MAAM,eAAe,WACxB,MAAM,aACN,MAAM,sBAAsB,uBAC5B,MAAM,WAAW,MACjB,MAAM,cAAc;AAE1B,QAAM,OAAO,OAAO,KAAK,WAAW,OAAO,KAAK;AAChD,MAAI,CAAC,MAAM;AACT,YAAQ,KAAK,8BAAoB,EAAE,QAAQ,YAAY,OAAO,KAAK,OAAO,OAAO;AACjF,WAAO;AAAA;AAET,QAAM,aAAa,KAAK;AACxB,QAAM,WAAW,MAAM,YAAY,KAAK,KAAK;AAC7C,QAAM,aAAa,MAAM,cAAc,KAAK,WAAW;AACvD,QAAM,aAAa,MAAM,cAAc,KAAK,OAAO;AACnD,
|
|
4
|
+
"sourcesContent": ["import { GetProps, Text, Variable, styled } from '@tamagui/core'\n\nexport const sizableTextSizeVariant = (val = '$4', { tokens, props }) => {\n const family = (\n typeof props.fontFamily === 'string'\n ? props.fontFamily\n : props.fontFamily instanceof Variable\n ? props.fontFamily.val\n : props.fontFamily || '$body'\n ) as any\n const font = tokens.font[family] ?? tokens.font['$body']\n if (!font) {\n console.warn('\u26A0\uFE0F no font found', { family, fontTokens: Object.keys(tokens.font), val })\n return {}\n }\n const fontFamily = font.family\n const fontSize = props.fontSize || font.size[val]\n const lineHeight = props.lineHeight || font.lineHeight[val]\n const fontWeight = props.fontWeight || font.weight[val]\n const letterSpacing = props.letterSpacing || font.letterSpacing[val]\n return {\n fontFamily,\n fontWeight,\n letterSpacing,\n fontSize,\n lineHeight,\n }\n}\n\nexport const SizableText = styled(Text, {\n variants: {\n size: {\n // TODO this should be ...fontSize type not working\n '...size': sizableTextSizeVariant,\n },\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiD;AAE1C,MAAM,yBAAyB,wBAAC,MAAM,MAAM,EAAE,QAAQ,YAAY;AACvE,QAAM,SACJ,OAAO,MAAM,eAAe,WACxB,MAAM,aACN,MAAM,sBAAsB,uBAC5B,MAAM,WAAW,MACjB,MAAM,cAAc;AAE1B,QAAM,OAAO,OAAO,KAAK,WAAW,OAAO,KAAK;AAChD,MAAI,CAAC,MAAM;AACT,YAAQ,KAAK,8BAAoB,EAAE,QAAQ,YAAY,OAAO,KAAK,OAAO,OAAO;AACjF,WAAO;AAAA;AAET,QAAM,aAAa,KAAK;AACxB,QAAM,WAAW,MAAM,YAAY,KAAK,KAAK;AAC7C,QAAM,aAAa,MAAM,cAAc,KAAK,WAAW;AACvD,QAAM,aAAa,MAAM,cAAc,KAAK,OAAO;AACnD,QAAM,gBAAgB,MAAM,iBAAiB,KAAK,cAAc;AAChE,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,GAvBkC;AA2B/B,MAAM,cAAc,wBAAO,kBAAM;AAAA,EACtC,UAAU;AAAA,IACR,MAAM;AAAA,MAEJ,WAAW;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/views/Stacks.js
CHANGED
|
@@ -43,7 +43,6 @@ const YStack = (0, import_core.styled)(import_core.Stack, {
|
|
|
43
43
|
"...size": (size, { tokens, theme }) => {
|
|
44
44
|
const token = tokens.size[size];
|
|
45
45
|
const base = (0, import_core.isVariable)(token) ? +token.val : size;
|
|
46
|
-
console.log("base", base);
|
|
47
46
|
const [height, shadowRadius] = [base / 3 + 10, base / 2 + 10];
|
|
48
47
|
const shadow = {
|
|
49
48
|
shadowColor: theme.shadowColor,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Stacks.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, Stack, isVariable, styled } from '@tamagui/core'\n\nexport const YStack = styled(Stack, {\n flexDirection: 'column',\n\n variants: {\n fullscreen: {\n true: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n },\n\n elevation: {\n '...size': (size, { tokens, theme }) => {\n const token = tokens.size[size]\n const base = isVariable(token) ? +token.val : size\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAoD;AAE7C,MAAM,SAAS,wBAAO,mBAAO;AAAA,EAClC,eAAe;AAAA,EAEf,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA;AAAA;AAAA,IAIZ,WAAW;AAAA,MACT,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY;AACtC,cAAM,QAAQ,OAAO,KAAK;AAC1B,cAAM,OAAO,4BAAW,SAAS,CAAC,MAAM,MAAM;AAC9C,
|
|
4
|
+
"sourcesContent": ["import { GetProps, Stack, isVariable, styled } from '@tamagui/core'\n\nexport const YStack = styled(Stack, {\n flexDirection: 'column',\n\n variants: {\n fullscreen: {\n true: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n },\n\n elevation: {\n '...size': (size, { tokens, theme }) => {\n const token = tokens.size[size]\n const base = isVariable(token) ? +token.val : size\n const [height, shadowRadius] = [base / 3 + 10, base / 2 + 10]\n const shadow = {\n shadowColor: theme.shadowColor,\n shadowRadius,\n shadowOffset: { height, width: 0 },\n }\n return shadow\n },\n },\n },\n})\n\nexport const XStack = styled(YStack, {\n flexDirection: 'row',\n})\n\nexport const ZStack = styled(\n YStack,\n {\n position: 'relative',\n },\n {\n neverFlatten: true,\n isZStack: true,\n }\n)\n\n// these are all the same, really:\n// we'll override core StackProps first\nexport type StackProps = GetProps<typeof YStack>\nexport type YStackProps = StackProps\nexport type XStackProps = StackProps\nexport type ZStackProps = StackProps\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAoD;AAE7C,MAAM,SAAS,wBAAO,mBAAO;AAAA,EAClC,eAAe;AAAA,EAEf,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA;AAAA;AAAA,IAIZ,WAAW;AAAA,MACT,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY;AACtC,cAAM,QAAQ,OAAO,KAAK;AAC1B,cAAM,OAAO,4BAAW,SAAS,CAAC,MAAM,MAAM;AAC9C,cAAM,CAAC,QAAQ,gBAAgB,CAAC,OAAO,IAAI,IAAI,OAAO,IAAI;AAC1D,cAAM,SAAS;AAAA,UACb,aAAa,MAAM;AAAA,UACnB;AAAA,UACA,cAAc,EAAE,QAAQ,OAAO;AAAA;AAEjC,eAAO;AAAA;AAAA;AAAA;AAAA;AAMR,MAAM,SAAS,wBAAO,QAAQ;AAAA,EACnC,eAAe;AAAA;AAGV,MAAM,SAAS,wBACpB,QACA;AAAA,EACE,UAAU;AAAA,GAEZ;AAAA,EACE,cAAc;AAAA,EACd,UAAU;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=withStaticProperties.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const withStaticProperties = /* @__PURE__ */ __name(function(component, staticProps) {
|
|
4
|
+
Object.assign(component, staticProps);
|
|
5
|
+
return component;
|
|
6
|
+
}, "withStaticProperties");
|
|
7
|
+
export {
|
|
8
|
+
withStaticProperties
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=withStaticProperties.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/helpers/withStaticProperties.tsx"],
|
|
4
|
+
"sourcesContent": ["export const withStaticProperties = function <A extends Function, B>(\n component: A,\n staticProps: B\n): A & B {\n Object.assign(component, staticProps)\n return component as any\n}\n"],
|
|
5
|
+
"mappings": ";;AAAO,MAAM,uBAAuB,gCAClC,WACA,aACO;AACP,SAAO,OAAO,WAAW;AACzB,SAAO;AAAA,GAL2B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
2
2
|
export * from "@tamagui/helpers";
|
|
3
3
|
import {
|
|
4
|
+
addMediaQueryListener,
|
|
5
|
+
mediaQueryConfig,
|
|
6
|
+
TamaguiInternalConfig,
|
|
4
7
|
GenericTamaguiConfig,
|
|
5
8
|
ColorTokens,
|
|
6
9
|
CreateTamaguiConfig,
|
|
@@ -82,6 +85,8 @@ export * from "./views/BlurView";
|
|
|
82
85
|
export * from "./views/Box";
|
|
83
86
|
export * from "./views/Button";
|
|
84
87
|
export * from "./views/Circle";
|
|
88
|
+
export * from "./views/Drawer";
|
|
89
|
+
export * from "./views/DrawerProvider";
|
|
85
90
|
export * from "./views/EnsureFlexed";
|
|
86
91
|
export * from "./views/Form";
|
|
87
92
|
export * from "./views/Grid";
|
|
@@ -133,6 +138,7 @@ export {
|
|
|
133
138
|
StaticConfigParsed,
|
|
134
139
|
TamaguiConfig,
|
|
135
140
|
TamaguiCustomConfig,
|
|
141
|
+
TamaguiInternalConfig,
|
|
136
142
|
TamaguiProviderProps,
|
|
137
143
|
Text,
|
|
138
144
|
TextAncestorContext,
|
|
@@ -147,6 +153,7 @@ export {
|
|
|
147
153
|
Tokens,
|
|
148
154
|
TransformStyleProps,
|
|
149
155
|
Variable,
|
|
156
|
+
addMediaQueryListener,
|
|
150
157
|
createComponent,
|
|
151
158
|
createFont,
|
|
152
159
|
createShorthands,
|
|
@@ -170,6 +177,7 @@ export {
|
|
|
170
177
|
isWebIOS,
|
|
171
178
|
matchMedia,
|
|
172
179
|
mediaObjectToString,
|
|
180
|
+
mediaQueryConfig,
|
|
173
181
|
mediaState,
|
|
174
182
|
spacedChildren,
|
|
175
183
|
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": ["export { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/helpers'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport {\n // types\n GenericTamaguiConfig,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontTokens,\n FontWeightTokens,\n GetProps,\n MediaKeys,\n MediaQueries,\n MediaQueryState,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n TamaguiCustomConfig,\n TamaguiConfig,\n TamaguiProviderProps,\n StaticComponent,\n ThemeKeys,\n StaticConfig,\n ThemeableHOC,\n ThemeObject,\n TextProps,\n ThemeProps,\n Themes,\n Tokens,\n TransformStyleProps,\n StaticConfigParsed,\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n ThemeInverse,\n // context,\n TextAncestorContext,\n // constants\n isWeb,\n isSSR,\n isChrome,\n supportsTouchWeb,\n isTouchDevice,\n isWebIOS,\n // helpers\n mediaState,\n styled,\n createComponent,\n createFont,\n createShorthands,\n createTamagui,\n createTheme,\n createTokens,\n createVariable,\n mediaObjectToString,\n Variable,\n getMedia,\n getThemes,\n getTamagui,\n getTokens,\n getHasConfigured,\n getThemeParentClassName,\n spacedChildren,\n themeable,\n getStylesAtomic,\n isObj,\n isTamaguiElement,\n matchMedia,\n // hooks\n useConstant,\n useDefaultThemeName,\n useIsomorphicLayoutEffect,\n useMedia,\n useTheme,\n useThemeName,\n} from '@tamagui/core'\n\nexport * from './viewTypes'\n\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\nexport * from './hooks/useLayout'\nexport * from './hooks/useKeyboardDismissable'\n\nexport * from './views/BlurView'\nexport * from './views/Box'\nexport * from './views/Button'\nexport * from './views/Circle'\nexport * from './views/EnsureFlexed'\nexport * from './views/Form'\nexport * from './views/Grid'\nexport * from './views/Headings'\nexport * from './views/Hoverable'\nexport * from './views/HoverablePopover'\nexport * from './views/InteractiveContainer'\nexport * from './views/InteractiveFrame'\nexport * from './views/Layouts'\nexport * from './views/LinearGradient'\nexport * from './views/Modal'\nexport * from './views/Overlay'\nexport * from './views/Paragraph'\nexport * from './views/Popover/Popover'\nexport * from './views/Popover/PopoverProvider'\nexport * from './views/SafeAreaProvider'\nexport * from './views/Separator'\nexport * from './views/SizableText'\nexport * from './views/Stacks'\nexport * from './views/Table'\nexport * from './views/Toast'\nexport * from './views/Tooltip'\nexport * from './views/TouchableOpacity'\nexport * from './views/Transitions'\nexport * from './views/VisuallyHidden'\n\nexport * from './helpers/prevent'\nexport * from './helpers/getFontSize'\n"],
|
|
5
|
-
"mappings": "AAAA;AAEA;AAIA;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["export { useSafeAreaInsets } from 'react-native-safe-area-context'\n\nexport * from '@tamagui/helpers'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport {\n // types\n addMediaQueryListener,\n mediaQueryConfig,\n TamaguiInternalConfig,\n GenericTamaguiConfig,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontTokens,\n FontWeightTokens,\n GetProps,\n MediaKeys,\n MediaQueries,\n MediaQueryState,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n TamaguiCustomConfig,\n TamaguiConfig,\n TamaguiProviderProps,\n StaticComponent,\n ThemeKeys,\n StaticConfig,\n ThemeableHOC,\n ThemeObject,\n TextProps,\n ThemeProps,\n Themes,\n Tokens,\n TransformStyleProps,\n StaticConfigParsed,\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n ThemeInverse,\n // context,\n TextAncestorContext,\n // constants\n isWeb,\n isSSR,\n isChrome,\n supportsTouchWeb,\n isTouchDevice,\n isWebIOS,\n // helpers\n mediaState,\n styled,\n createComponent,\n createFont,\n createShorthands,\n createTamagui,\n createTheme,\n createTokens,\n createVariable,\n mediaObjectToString,\n Variable,\n getMedia,\n getThemes,\n getTamagui,\n getTokens,\n getHasConfigured,\n getThemeParentClassName,\n spacedChildren,\n themeable,\n getStylesAtomic,\n isObj,\n isTamaguiElement,\n matchMedia,\n // hooks\n useConstant,\n useDefaultThemeName,\n useIsomorphicLayoutEffect,\n useMedia,\n useTheme,\n useThemeName,\n} from '@tamagui/core'\n\nexport * from './viewTypes'\n\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\n\nexport * from './hooks/useLayout'\nexport * from './hooks/useKeyboardDismissable'\n\nexport * from './views/BlurView'\nexport * from './views/Box'\nexport * from './views/Button'\nexport * from './views/Circle'\nexport * from './views/Drawer'\nexport * from './views/DrawerProvider'\nexport * from './views/EnsureFlexed'\nexport * from './views/Form'\nexport * from './views/Grid'\nexport * from './views/Headings'\nexport * from './views/Hoverable'\nexport * from './views/HoverablePopover'\nexport * from './views/InteractiveContainer'\nexport * from './views/InteractiveFrame'\nexport * from './views/Layouts'\nexport * from './views/LinearGradient'\nexport * from './views/Modal'\nexport * from './views/Overlay'\nexport * from './views/Paragraph'\nexport * from './views/Popover/Popover'\nexport * from './views/Popover/PopoverProvider'\nexport * from './views/SafeAreaProvider'\nexport * from './views/Separator'\nexport * from './views/SizableText'\nexport * from './views/Stacks'\nexport * from './views/Table'\nexport * from './views/Toast'\nexport * from './views/Tooltip'\nexport * from './views/TouchableOpacity'\nexport * from './views/Transitions'\nexport * from './views/VisuallyHidden'\n\nexport * from './helpers/prevent'\nexport * from './helpers/getFontSize'\n"],
|
|
5
|
+
"mappings": "AAAA;AAEA;AAIA;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmFA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BottomSheetModal } from "@gorhom/bottom-sheet";
|
|
2
|
+
import { useTheme } from "@tamagui/core";
|
|
3
|
+
import { useEffect, useRef } from "react";
|
|
4
|
+
import { withStaticProperties } from "../helpers/withStaticProperties";
|
|
5
|
+
import { DrawerProvider } from "./DrawerProvider";
|
|
6
|
+
import { YStack } from "./Stacks";
|
|
7
|
+
const Drawer = withStaticProperties(({
|
|
8
|
+
children,
|
|
9
|
+
open,
|
|
10
|
+
onChange,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const sheetRef = useRef(null);
|
|
15
|
+
const theme = useTheme();
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
var _a2, _b2;
|
|
18
|
+
if (!open) {
|
|
19
|
+
(_a2 = sheetRef.current) == null ? void 0 : _a2.dismiss();
|
|
20
|
+
} else {
|
|
21
|
+
(_b2 = sheetRef.current) == null ? void 0 : _b2.present();
|
|
22
|
+
}
|
|
23
|
+
}, [open]);
|
|
24
|
+
return /* @__PURE__ */ React.createElement(BottomSheetModal, {
|
|
25
|
+
backgroundStyle: {
|
|
26
|
+
backgroundColor: (_a = theme.bg) == null ? void 0 : _a.toString(),
|
|
27
|
+
shadowColor: (_b = theme.shadowColor) == null ? void 0 : _b.toString(),
|
|
28
|
+
shadowRadius: 10
|
|
29
|
+
},
|
|
30
|
+
snapPoints: ["40%"],
|
|
31
|
+
ref: sheetRef,
|
|
32
|
+
...!!onChange && {
|
|
33
|
+
onChange: (i) => {
|
|
34
|
+
onChange(i === 0);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
...props
|
|
38
|
+
}, /* @__PURE__ */ React.createElement(YStack, {
|
|
39
|
+
fullscreen: true,
|
|
40
|
+
backgroundColor: "$bg",
|
|
41
|
+
borderTopLeftRadius: "$2",
|
|
42
|
+
borderTopRightRadius: "$2"
|
|
43
|
+
}, children));
|
|
44
|
+
}, {
|
|
45
|
+
Provider: DrawerProvider
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
Drawer
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=Drawer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/Drawer.tsx"],
|
|
4
|
+
"sourcesContent": ["import { BottomSheetModal, BottomSheetModalProps } from '@gorhom/bottom-sheet'\nimport { useTheme } from '@tamagui/core'\nimport { useEffect, useRef } from 'react'\n\nimport { withStaticProperties } from '../helpers/withStaticProperties'\nimport { DrawerProvider } from './DrawerProvider'\nimport { YStack } from './Stacks'\n\nexport const Drawer = withStaticProperties(\n ({\n children,\n open,\n onChange,\n ...props\n }: Omit<Partial<BottomSheetModalProps>, 'onChange'> & {\n open?: boolean\n onChange?: ((showing: boolean) => void) | React.Dispatch<React.SetStateAction<boolean>>\n }) => {\n const sheetRef = useRef<BottomSheetModal>(null)\n const theme = useTheme()\n\n useEffect(() => {\n if (!open) {\n sheetRef.current?.dismiss()\n } else {\n sheetRef.current?.present()\n }\n }, [open])\n\n return (\n <BottomSheetModal\n backgroundStyle={{\n backgroundColor: theme.bg?.toString(),\n shadowColor: theme.shadowColor?.toString(),\n shadowRadius: 10,\n }}\n snapPoints={['40%']}\n ref={sheetRef}\n {...(!!onChange && {\n onChange: (i) => {\n onChange(i === 0)\n },\n })}\n {...props}\n >\n <YStack fullscreen backgroundColor=\"$bg\" borderTopLeftRadius=\"$2\" borderTopRightRadius=\"$2\">\n {children}\n </YStack>\n </BottomSheetModal>\n )\n },\n {\n Provider: DrawerProvider,\n }\n)\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AACA;AAEA;AACA;AACA;AAEO,MAAM,SAAS,qBACpB,CAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,KACG;AAAA,MAIC;AAjBR;AAkBI,QAAM,WAAW,OAAyB;AAC1C,QAAM,QAAQ;AAEd,YAAU,MAAM;AArBpB;AAsBM,QAAI,CAAC,MAAM;AACT,sBAAS,YAAT,oBAAkB;AAAA,WACb;AACL,sBAAS,YAAT,oBAAkB;AAAA;AAAA,KAEnB,CAAC;AAEJ,SACE,oCAAC,kBAAD;AAAA,IACE,iBAAiB;AAAA,MACf,iBAAiB,YAAM,OAAN,mBAAU;AAAA,MAC3B,aAAa,YAAM,gBAAN,mBAAmB;AAAA,MAChC,cAAc;AAAA;AAAA,IAEhB,YAAY,CAAC;AAAA,IACb,KAAK;AAAA,OACA,CAAC,CAAC,YAAY;AAAA,MACjB,UAAU,CAAC,MAAM;AACf,iBAAS,MAAM;AAAA;AAAA;AAAA,OAGf;AAAA,KAEJ,oCAAC,QAAD;AAAA,IAAQ,YAAU;AAAA,IAAC,iBAAgB;AAAA,IAAM,qBAAoB;AAAA,IAAK,sBAAqB;AAAA,KACpF;AAAA,GAKT;AAAA,EACE,UAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/DrawerProvider.tsx"],
|
|
4
|
+
"sourcesContent": ["import { BottomSheetModalProvider } from '@gorhom/bottom-sheet'\n\nexport const DrawerProvider = BottomSheetModalProvider\n"],
|
|
5
|
+
"mappings": "AAAA;AAEO,MAAM,iBAAiB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -13,7 +13,6 @@ const sizableTextSizeVariant = /* @__PURE__ */ __name((val = "$4", { tokens, pro
|
|
|
13
13
|
const fontSize = props.fontSize || font.size[val];
|
|
14
14
|
const lineHeight = props.lineHeight || font.lineHeight[val];
|
|
15
15
|
const fontWeight = props.fontWeight || font.weight[val];
|
|
16
|
-
console.log("val", val, fontSize);
|
|
17
16
|
const letterSpacing = props.letterSpacing || font.letterSpacing[val];
|
|
18
17
|
return {
|
|
19
18
|
fontFamily,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/SizableText.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, Text, Variable, styled } from '@tamagui/core'\n\nexport const sizableTextSizeVariant = (val = '$4', { tokens, props }) => {\n const family = (\n typeof props.fontFamily === 'string'\n ? props.fontFamily\n : props.fontFamily instanceof Variable\n ? props.fontFamily.val\n : props.fontFamily || '$body'\n ) as any\n const font = tokens.font[family] ?? tokens.font['$body']\n if (!font) {\n console.warn('\u26A0\uFE0F no font found', { family, fontTokens: Object.keys(tokens.font), val })\n return {}\n }\n const fontFamily = font.family\n const fontSize = props.fontSize || font.size[val]\n const lineHeight = props.lineHeight || font.lineHeight[val]\n const fontWeight = props.fontWeight || font.weight[val]\n
|
|
5
|
-
"mappings": ";;AAAA;AAEO,MAAM,yBAAyB,wBAAC,MAAM,MAAM,EAAE,QAAQ,YAAY;AAFzE;AAGE,QAAM,SACJ,OAAO,MAAM,eAAe,WACxB,MAAM,aACN,MAAM,sBAAsB,WAC5B,MAAM,WAAW,MACjB,MAAM,cAAc;AAE1B,QAAM,OAAO,aAAO,KAAK,YAAZ,YAAuB,OAAO,KAAK;AAChD,MAAI,CAAC,MAAM;AACT,YAAQ,KAAK,8BAAoB,EAAE,QAAQ,YAAY,OAAO,KAAK,OAAO,OAAO;AACjF,WAAO;AAAA;AAET,QAAM,aAAa,KAAK;AACxB,QAAM,WAAW,MAAM,YAAY,KAAK,KAAK;AAC7C,QAAM,aAAa,MAAM,cAAc,KAAK,WAAW;AACvD,QAAM,aAAa,MAAM,cAAc,KAAK,OAAO;AACnD,
|
|
4
|
+
"sourcesContent": ["import { GetProps, Text, Variable, styled } from '@tamagui/core'\n\nexport const sizableTextSizeVariant = (val = '$4', { tokens, props }) => {\n const family = (\n typeof props.fontFamily === 'string'\n ? props.fontFamily\n : props.fontFamily instanceof Variable\n ? props.fontFamily.val\n : props.fontFamily || '$body'\n ) as any\n const font = tokens.font[family] ?? tokens.font['$body']\n if (!font) {\n console.warn('\u26A0\uFE0F no font found', { family, fontTokens: Object.keys(tokens.font), val })\n return {}\n }\n const fontFamily = font.family\n const fontSize = props.fontSize || font.size[val]\n const lineHeight = props.lineHeight || font.lineHeight[val]\n const fontWeight = props.fontWeight || font.weight[val]\n const letterSpacing = props.letterSpacing || font.letterSpacing[val]\n return {\n fontFamily,\n fontWeight,\n letterSpacing,\n fontSize,\n lineHeight,\n }\n}\n\nexport const SizableText = styled(Text, {\n variants: {\n size: {\n // TODO this should be ...fontSize type not working\n '...size': sizableTextSizeVariant,\n },\n },\n})\n\nexport type SizableTextProps = GetProps<typeof SizableText>\n"],
|
|
5
|
+
"mappings": ";;AAAA;AAEO,MAAM,yBAAyB,wBAAC,MAAM,MAAM,EAAE,QAAQ,YAAY;AAFzE;AAGE,QAAM,SACJ,OAAO,MAAM,eAAe,WACxB,MAAM,aACN,MAAM,sBAAsB,WAC5B,MAAM,WAAW,MACjB,MAAM,cAAc;AAE1B,QAAM,OAAO,aAAO,KAAK,YAAZ,YAAuB,OAAO,KAAK;AAChD,MAAI,CAAC,MAAM;AACT,YAAQ,KAAK,8BAAoB,EAAE,QAAQ,YAAY,OAAO,KAAK,OAAO,OAAO;AACjF,WAAO;AAAA;AAET,QAAM,aAAa,KAAK;AACxB,QAAM,WAAW,MAAM,YAAY,KAAK,KAAK;AAC7C,QAAM,aAAa,MAAM,cAAc,KAAK,WAAW;AACvD,QAAM,aAAa,MAAM,cAAc,KAAK,OAAO;AACnD,QAAM,gBAAgB,MAAM,iBAAiB,KAAK,cAAc;AAChE,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,GAvBkC;AA2B/B,MAAM,cAAc,OAAO,MAAM;AAAA,EACtC,UAAU;AAAA,IACR,MAAM;AAAA,MAEJ,WAAW;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/views/Stacks.js
CHANGED
|
@@ -15,7 +15,6 @@ const YStack = styled(Stack, {
|
|
|
15
15
|
"...size": (size, { tokens, theme }) => {
|
|
16
16
|
const token = tokens.size[size];
|
|
17
17
|
const base = isVariable(token) ? +token.val : size;
|
|
18
|
-
console.log("base", base);
|
|
19
18
|
const [height, shadowRadius] = [base / 3 + 10, base / 2 + 10];
|
|
20
19
|
const shadow = {
|
|
21
20
|
shadowColor: theme.shadowColor,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Stacks.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, Stack, isVariable, styled } from '@tamagui/core'\n\nexport const YStack = styled(Stack, {\n flexDirection: 'column',\n\n variants: {\n fullscreen: {\n true: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n },\n\n elevation: {\n '...size': (size, { tokens, theme }) => {\n const token = tokens.size[size]\n const base = isVariable(token) ? +token.val : size\n
|
|
5
|
-
"mappings": "AAAA;AAEO,MAAM,SAAS,OAAO,OAAO;AAAA,EAClC,eAAe;AAAA,EAEf,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA;AAAA;AAAA,IAIZ,WAAW;AAAA,MACT,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY;AACtC,cAAM,QAAQ,OAAO,KAAK;AAC1B,cAAM,OAAO,WAAW,SAAS,CAAC,MAAM,MAAM;AAC9C,
|
|
4
|
+
"sourcesContent": ["import { GetProps, Stack, isVariable, styled } from '@tamagui/core'\n\nexport const YStack = styled(Stack, {\n flexDirection: 'column',\n\n variants: {\n fullscreen: {\n true: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n },\n\n elevation: {\n '...size': (size, { tokens, theme }) => {\n const token = tokens.size[size]\n const base = isVariable(token) ? +token.val : size\n const [height, shadowRadius] = [base / 3 + 10, base / 2 + 10]\n const shadow = {\n shadowColor: theme.shadowColor,\n shadowRadius,\n shadowOffset: { height, width: 0 },\n }\n return shadow\n },\n },\n },\n})\n\nexport const XStack = styled(YStack, {\n flexDirection: 'row',\n})\n\nexport const ZStack = styled(\n YStack,\n {\n position: 'relative',\n },\n {\n neverFlatten: true,\n isZStack: true,\n }\n)\n\n// these are all the same, really:\n// we'll override core StackProps first\nexport type StackProps = GetProps<typeof YStack>\nexport type YStackProps = StackProps\nexport type XStackProps = StackProps\nexport type ZStackProps = StackProps\n"],
|
|
5
|
+
"mappings": "AAAA;AAEO,MAAM,SAAS,OAAO,OAAO;AAAA,EAClC,eAAe;AAAA,EAEf,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA;AAAA;AAAA,IAIZ,WAAW;AAAA,MACT,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY;AACtC,cAAM,QAAQ,OAAO,KAAK;AAC1B,cAAM,OAAO,WAAW,SAAS,CAAC,MAAM,MAAM;AAC9C,cAAM,CAAC,QAAQ,gBAAgB,CAAC,OAAO,IAAI,IAAI,OAAO,IAAI;AAC1D,cAAM,SAAS;AAAA,UACb,aAAa,MAAM;AAAA,UACnB;AAAA,UACA,cAAc,EAAE,QAAQ,OAAO;AAAA;AAEjC,eAAO;AAAA;AAAA;AAAA;AAAA;AAMR,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,eAAe;AAAA;AAGV,MAAM,SAAS,OACpB,QACA;AAAA,EACE,UAAU;AAAA,GAEZ;AAAA,EACE,cAAc;AAAA,EACd,UAAU;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=withStaticProperties.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const withStaticProperties = /* @__PURE__ */ __name(function(component, staticProps) {
|
|
4
|
+
Object.assign(component, staticProps);
|
|
5
|
+
return component;
|
|
6
|
+
}, "withStaticProperties");
|
|
7
|
+
export {
|
|
8
|
+
withStaticProperties
|
|
9
|
+
};
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
2
2
|
export * from "@tamagui/helpers";
|
|
3
3
|
import {
|
|
4
|
+
addMediaQueryListener,
|
|
5
|
+
mediaQueryConfig,
|
|
6
|
+
TamaguiInternalConfig,
|
|
4
7
|
GenericTamaguiConfig,
|
|
5
8
|
ColorTokens,
|
|
6
9
|
CreateTamaguiConfig,
|
|
@@ -82,6 +85,8 @@ export * from "./views/BlurView";
|
|
|
82
85
|
export * from "./views/Box";
|
|
83
86
|
export * from "./views/Button";
|
|
84
87
|
export * from "./views/Circle";
|
|
88
|
+
export * from "./views/Drawer";
|
|
89
|
+
export * from "./views/DrawerProvider";
|
|
85
90
|
export * from "./views/EnsureFlexed";
|
|
86
91
|
export * from "./views/Form";
|
|
87
92
|
export * from "./views/Grid";
|
|
@@ -133,6 +138,7 @@ export {
|
|
|
133
138
|
StaticConfigParsed,
|
|
134
139
|
TamaguiConfig,
|
|
135
140
|
TamaguiCustomConfig,
|
|
141
|
+
TamaguiInternalConfig,
|
|
136
142
|
TamaguiProviderProps,
|
|
137
143
|
Text,
|
|
138
144
|
TextAncestorContext,
|
|
@@ -147,6 +153,7 @@ export {
|
|
|
147
153
|
Tokens,
|
|
148
154
|
TransformStyleProps,
|
|
149
155
|
Variable,
|
|
156
|
+
addMediaQueryListener,
|
|
150
157
|
createComponent,
|
|
151
158
|
createFont,
|
|
152
159
|
createShorthands,
|
|
@@ -170,6 +177,7 @@ export {
|
|
|
170
177
|
isWebIOS,
|
|
171
178
|
matchMedia,
|
|
172
179
|
mediaObjectToString,
|
|
180
|
+
mediaQueryConfig,
|
|
173
181
|
mediaState,
|
|
174
182
|
spacedChildren,
|
|
175
183
|
styled,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BottomSheetModal } from "@gorhom/bottom-sheet";
|
|
2
|
+
import { useTheme } from "@tamagui/core";
|
|
3
|
+
import { useEffect, useRef } from "react";
|
|
4
|
+
import { withStaticProperties } from "../helpers/withStaticProperties";
|
|
5
|
+
import { DrawerProvider } from "./DrawerProvider";
|
|
6
|
+
import { YStack } from "./Stacks";
|
|
7
|
+
const Drawer = withStaticProperties(({
|
|
8
|
+
children,
|
|
9
|
+
open,
|
|
10
|
+
onChange,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const sheetRef = useRef(null);
|
|
15
|
+
const theme = useTheme();
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
var _a2, _b2;
|
|
18
|
+
if (!open) {
|
|
19
|
+
(_a2 = sheetRef.current) == null ? void 0 : _a2.dismiss();
|
|
20
|
+
} else {
|
|
21
|
+
(_b2 = sheetRef.current) == null ? void 0 : _b2.present();
|
|
22
|
+
}
|
|
23
|
+
}, [open]);
|
|
24
|
+
return <BottomSheetModal backgroundStyle={{
|
|
25
|
+
backgroundColor: (_a = theme.bg) == null ? void 0 : _a.toString(),
|
|
26
|
+
shadowColor: (_b = theme.shadowColor) == null ? void 0 : _b.toString(),
|
|
27
|
+
shadowRadius: 10
|
|
28
|
+
}} snapPoints={["40%"]} ref={sheetRef} {...!!onChange && {
|
|
29
|
+
onChange: (i) => {
|
|
30
|
+
onChange(i === 0);
|
|
31
|
+
}
|
|
32
|
+
}} {...props}><YStack fullscreen backgroundColor="$bg" borderTopLeftRadius="$2" borderTopRightRadius="$2">{children}</YStack></BottomSheetModal>;
|
|
33
|
+
}, {
|
|
34
|
+
Provider: DrawerProvider
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
Drawer
|
|
38
|
+
};
|
|
@@ -13,7 +13,6 @@ const sizableTextSizeVariant = /* @__PURE__ */ __name((val = "$4", { tokens, pro
|
|
|
13
13
|
const fontSize = props.fontSize || font.size[val];
|
|
14
14
|
const lineHeight = props.lineHeight || font.lineHeight[val];
|
|
15
15
|
const fontWeight = props.fontWeight || font.weight[val];
|
|
16
|
-
console.log("val", val, fontSize);
|
|
17
16
|
const letterSpacing = props.letterSpacing || font.letterSpacing[val];
|
|
18
17
|
return {
|
|
19
18
|
fontFamily,
|
package/dist/jsx/views/Stacks.js
CHANGED
|
@@ -15,7 +15,6 @@ const YStack = styled(Stack, {
|
|
|
15
15
|
"...size": (size, { tokens, theme }) => {
|
|
16
16
|
const token = tokens.size[size];
|
|
17
17
|
const base = isVariable(token) ? +token.val : size;
|
|
18
|
-
console.log("base", base);
|
|
19
18
|
const [height, shadowRadius] = [base / 3 + 10, base / 2 + 10];
|
|
20
19
|
const shadow = {
|
|
21
20
|
shadowColor: theme.shadowColor,
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.52",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"watch": "tamagui-build --watch"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@gorhom/bottom-sheet": "^4.1.5",
|
|
21
22
|
"@react-aria/ssr": "^3.1.0",
|
|
22
23
|
"@react-aria/utils": "^3.10.0",
|
|
23
24
|
"@react-native-aria/focus": "^0.2.5",
|
|
@@ -28,10 +29,12 @@
|
|
|
28
29
|
"@tamagui/helpers": "^1.0.0-alpha.48",
|
|
29
30
|
"@tamagui/use-debounce": "^1.0.0-alpha.44",
|
|
30
31
|
"@tamagui/use-force-update": "^1.0.0-alpha.44",
|
|
31
|
-
"expo-linear-gradient": "^
|
|
32
|
+
"expo-linear-gradient": "^11.0.2",
|
|
32
33
|
"normalize-css-color": "*",
|
|
33
34
|
"react": "*",
|
|
34
35
|
"react-dom": "*",
|
|
36
|
+
"react-native-gesture-handler": "^2.2.0",
|
|
37
|
+
"react-native-reanimated": "^2.3.1",
|
|
35
38
|
"react-native-safe-area-context": "^3.3.2"
|
|
36
39
|
},
|
|
37
40
|
"peerDependencies": {
|
|
@@ -43,5 +46,5 @@
|
|
|
43
46
|
"@types/react": "^17.0.35",
|
|
44
47
|
"react-native-web": "^0.17.5"
|
|
45
48
|
},
|
|
46
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ef6a6ef60d230fab7196e25745e5e695113bb046"
|
|
47
50
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withStaticProperties.d.ts","sourceRoot":"","sources":["../../src/helpers/withStaticProperties.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gEAMhC,CAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
2
2
|
export * from '@tamagui/helpers';
|
|
3
|
-
export { GenericTamaguiConfig, ColorTokens, CreateTamaguiConfig, CreateTamaguiProps, FontLetterSpacingTokens, FontLineHeightTokens, FontSizeTokens, FontTokens, FontWeightTokens, GetProps, MediaKeys, MediaQueries, MediaQueryState, Shorthands, SizeTokens, SpaceTokens, TamaguiCustomConfig, TamaguiConfig, TamaguiProviderProps, StaticComponent, ThemeKeys, StaticConfig, ThemeableHOC, ThemeObject, TextProps, ThemeProps, Themes, Tokens, TransformStyleProps, StaticConfigParsed, Spacer, Stack, Text, Theme, ThemeInverse, TextAncestorContext, isWeb, isSSR, isChrome, supportsTouchWeb, isTouchDevice, isWebIOS, mediaState, styled, createComponent, createFont, createShorthands, createTamagui, createTheme, createTokens, createVariable, mediaObjectToString, Variable, getMedia, getThemes, getTamagui, getTokens, getHasConfigured, getThemeParentClassName, spacedChildren, themeable, getStylesAtomic, isObj, isTamaguiElement, matchMedia, useConstant, useDefaultThemeName, useIsomorphicLayoutEffect, useMedia, useTheme, useThemeName, } from '@tamagui/core';
|
|
3
|
+
export { addMediaQueryListener, mediaQueryConfig, TamaguiInternalConfig, GenericTamaguiConfig, ColorTokens, CreateTamaguiConfig, CreateTamaguiProps, FontLetterSpacingTokens, FontLineHeightTokens, FontSizeTokens, FontTokens, FontWeightTokens, GetProps, MediaKeys, MediaQueries, MediaQueryState, Shorthands, SizeTokens, SpaceTokens, TamaguiCustomConfig, TamaguiConfig, TamaguiProviderProps, StaticComponent, ThemeKeys, StaticConfig, ThemeableHOC, ThemeObject, TextProps, ThemeProps, Themes, Tokens, TransformStyleProps, StaticConfigParsed, Spacer, Stack, Text, Theme, ThemeInverse, TextAncestorContext, isWeb, isSSR, isChrome, supportsTouchWeb, isTouchDevice, isWebIOS, mediaState, styled, createComponent, createFont, createShorthands, createTamagui, createTheme, createTokens, createVariable, mediaObjectToString, Variable, getMedia, getThemes, getTamagui, getTokens, getHasConfigured, getThemeParentClassName, spacedChildren, themeable, getStylesAtomic, isObj, isTamaguiElement, matchMedia, useConstant, useDefaultThemeName, useIsomorphicLayoutEffect, useMedia, useTheme, useThemeName, } from '@tamagui/core';
|
|
4
4
|
export * from './viewTypes';
|
|
5
5
|
export * from '@tamagui/use-debounce';
|
|
6
6
|
export * from '@tamagui/use-force-update';
|
|
@@ -10,6 +10,8 @@ export * from './views/BlurView';
|
|
|
10
10
|
export * from './views/Box';
|
|
11
11
|
export * from './views/Button';
|
|
12
12
|
export * from './views/Circle';
|
|
13
|
+
export * from './views/Drawer';
|
|
14
|
+
export * from './views/DrawerProvider';
|
|
13
15
|
export * from './views/EnsureFlexed';
|
|
14
16
|
export * from './views/Form';
|
|
15
17
|
export * from './views/Grid';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,cAAc,kBAAkB,CAAA;AAIhC,OAAO,EAEL,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,MAAM,EACN,mBAAmB,EACnB,kBAAkB,EAElB,MAAM,EACN,KAAK,EACL,IAAI,EACJ,KAAK,EACL,YAAY,EAEZ,mBAAmB,EAEnB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,QAAQ,EAER,UAAU,EACV,MAAM,EACN,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,SAAS,EACT,eAAe,EACf,KAAK,EACL,gBAAgB,EAChB,UAAU,EAEV,WAAW,EACX,mBAAmB,EACnB,yBAAyB,EACzB,QAAQ,EACR,QAAQ,EACR,YAAY,GACb,MAAM,eAAe,CAAA;AAEtB,cAAc,aAAa,CAAA;AAE3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AAEzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gCAAgC,CAAA;AAE9C,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AAEtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,cAAc,kBAAkB,CAAA;AAIhC,OAAO,EAEL,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,MAAM,EACN,mBAAmB,EACnB,kBAAkB,EAElB,MAAM,EACN,KAAK,EACL,IAAI,EACJ,KAAK,EACL,YAAY,EAEZ,mBAAmB,EAEnB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,QAAQ,EAER,UAAU,EACV,MAAM,EACN,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,SAAS,EACT,eAAe,EACf,KAAK,EACL,gBAAgB,EAChB,UAAU,EAEV,WAAW,EACX,mBAAmB,EACnB,yBAAyB,EACzB,QAAQ,EACR,QAAQ,EACR,YAAY,GACb,MAAM,eAAe,CAAA;AAEtB,cAAc,aAAa,CAAA;AAE3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AAEzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gCAAgC,CAAA;AAE9C,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AAEtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BottomSheetModalProps } from '@gorhom/bottom-sheet';
|
|
3
|
+
export declare const Drawer: (({ children, open, onChange, ...props }: Omit<Partial<BottomSheetModalProps>, "onChange"> & {
|
|
4
|
+
open?: boolean | undefined;
|
|
5
|
+
onChange?: import("react").Dispatch<import("react").SetStateAction<boolean>> | ((showing: boolean) => void) | undefined;
|
|
6
|
+
}) => JSX.Element) & {
|
|
7
|
+
Provider: ({ children, }: import("@gorhom/bottom-sheet/lib/typescript/components/bottomSheetModalProvider/types").BottomSheetModalProviderProps) => JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../src/views/Drawer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAQ9E,eAAO,MAAM,MAAM;;8FAQO,OAAO,KAAK,IAAI;;;CAsCzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerProvider.d.ts","sourceRoot":"","sources":["../../src/views/DrawerProvider.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,cAAc,uJAA2B,CAAA"}
|
|
@@ -6,5 +6,8 @@ export declare type NativeLinearGradientProps = React.ComponentProps<typeof View
|
|
|
6
6
|
start?: NativeLinearGradientPoint | null;
|
|
7
7
|
end?: NativeLinearGradientPoint | null;
|
|
8
8
|
}>;
|
|
9
|
-
export declare type NativeLinearGradientPoint =
|
|
9
|
+
export declare type NativeLinearGradientPoint = {
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
} | [number, number];
|
|
10
13
|
//# sourceMappingURL=NativeLinearGradientProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeLinearGradientProps.d.ts","sourceRoot":"","sources":["../../src/views/NativeLinearGradientProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,oBAAY,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GACvE,KAAK,CAAC,iBAAiB,CAAC;IACtB,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC3B,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAA;IACxC,GAAG,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAA;CACvC,CAAC,CAAA;AAEJ,oBAAY,yBAAyB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"NativeLinearGradientProps.d.ts","sourceRoot":"","sources":["../../src/views/NativeLinearGradientProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,oBAAY,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GACvE,KAAK,CAAC,iBAAiB,CAAC;IACtB,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC3B,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAA;IACxC,GAAG,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAA;CACvC,CAAC,CAAA;AAEJ,oBAAY,yBAAyB,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SizableText.d.ts","sourceRoot":"","sources":["../../src/views/SizableText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAA;AAEhE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SizableText.d.ts","sourceRoot":"","sources":["../../src/views/SizableText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAA;AAEhE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;CAyBlC,CAAA;AAED,eAAO,MAAM,WAAW;;;;0DAOtB,CAAA;AAEF,oBAAY,gBAAgB,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stacks.d.ts","sourceRoot":"","sources":["../../src/views/Stacks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,eAAe,CAAA;AAEnE,eAAO,MAAM,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"Stacks.d.ts","sourceRoot":"","sources":["../../src/views/Stacks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,eAAe,CAAA;AAEnE,eAAO,MAAM,MAAM;;;;;;0DA4BjB,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;0DAEjB,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;0DASlB,CAAA;AAID,oBAAY,UAAU,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAChD,oBAAY,WAAW,GAAG,UAAU,CAAA;AACpC,oBAAY,WAAW,GAAG,UAAU,CAAA;AACpC,oBAAY,WAAW,GAAG,UAAU,CAAA"}
|