@tamagui/core 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/constants/rnw.js +5 -7
- package/dist/cjs/constants/rnw.js.map +2 -2
- package/dist/cjs/helpers/validate.js +33 -30
- package/dist/cjs/helpers/validate.js.map +2 -2
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/constants/rnw.js +2 -7
- package/dist/esm/constants/rnw.js.map +2 -2
- package/dist/esm/helpers/validate.js +1 -1
- package/dist/esm/helpers/validate.js.map +2 -2
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +2 -2
- package/package.json +6 -6
- package/types/constants/rnw.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,19 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
17
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
21
|
var rnw_exports = {};
|
|
19
22
|
__export(rnw_exports, {
|
|
20
23
|
rnw: () => rnw
|
|
21
24
|
});
|
|
22
25
|
module.exports = __toCommonJS(rnw_exports);
|
|
23
|
-
|
|
24
|
-
const rnw =
|
|
25
|
-
if (process.env.IS_STATIC === "is_static") {
|
|
26
|
-
Object.assign(rnw, interopRequire(require("react-native-web/dist/cjs/tamagui-exports")));
|
|
27
|
-
} else if (process.env.TAMAGUI_TARGET === "web") {
|
|
28
|
-
Object.assign(rnw, interopRequire(require("react-native-web").TamaguiExports));
|
|
29
|
-
}
|
|
26
|
+
var RNW = __toESM(require("react-native-web"));
|
|
27
|
+
const rnw = RNW.TamaguiExports;
|
|
30
28
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
29
|
0 && (module.exports = {
|
|
32
30
|
rnw
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/constants/rnw.tsx"],
|
|
4
|
-
"sourcesContent": ["const interopRequire = (x: any) => ('default' in x ? x.default : x)\
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import * as RNW from 'react-native-web'\n\nexport const rnw = RNW.TamaguiExports\n\n// const interopRequire = (x: any) => ('default' in x ? x.default : x)\n// export const rnw: any = {}\n\n// // in static mode, require them directly since we can't import react-native-web at all (it has flow stuff in it)\n// if (process.env.IS_STATIC === 'is_static') {\n// Object.assign(rnw, interopRequire(require('react-native-web/dist/cjs/tamagui-exports')))\n// } else if (process.env.TAMAGUI_TARGET === 'web') {\n// Object.assign(rnw, interopRequire(require('react-native-web').TamaguiExports))\n// }\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAAqB;AAEd,MAAM,MAAM,IAAI;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
9
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -40,6 +42,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
40
42
|
}
|
|
41
43
|
return to;
|
|
42
44
|
};
|
|
45
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
43
46
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
44
47
|
var validate_exports = {};
|
|
45
48
|
__export(validate_exports, {
|
|
@@ -48,7 +51,7 @@ __export(validate_exports, {
|
|
|
48
51
|
validateTokens: () => validateTokens
|
|
49
52
|
});
|
|
50
53
|
module.exports = __toCommonJS(validate_exports);
|
|
51
|
-
|
|
54
|
+
var import_dev_only = __toESM(require("@tamagui/ow/dev-only"));
|
|
52
55
|
let Config;
|
|
53
56
|
let Tokens;
|
|
54
57
|
let FontRequired;
|
|
@@ -59,14 +62,14 @@ const validateConfig = (conf) => {
|
|
|
59
62
|
return;
|
|
60
63
|
}
|
|
61
64
|
try {
|
|
62
|
-
|
|
65
|
+
(0, import_dev_only.default)(conf, Config);
|
|
63
66
|
} catch (err) {
|
|
64
67
|
console.warn("Given config:\n", JSON.stringify(conf, null, 2), err);
|
|
65
68
|
}
|
|
66
69
|
};
|
|
67
70
|
const validateTokens = (tokens) => {
|
|
68
71
|
try {
|
|
69
|
-
|
|
72
|
+
(0, import_dev_only.default)(tokens, Tokens);
|
|
70
73
|
} catch (err) {
|
|
71
74
|
console.warn("Given tokens:\n", JSON.stringify(tokens, null, 2), err);
|
|
72
75
|
}
|
|
@@ -74,43 +77,43 @@ const validateTokens = (tokens) => {
|
|
|
74
77
|
const validateFont = (font) => {
|
|
75
78
|
try {
|
|
76
79
|
const _a = font, { style, transform, color } = _a, required = __objRest(_a, ["style", "transform", "color"]);
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
(0, import_dev_only.default)(required, FontRequired);
|
|
81
|
+
(0, import_dev_only.default)({ style, transform, color }, FontOptional);
|
|
79
82
|
} catch (err) {
|
|
80
83
|
console.warn("Given font:\n", JSON.stringify(font, null, 2), err);
|
|
81
84
|
}
|
|
82
85
|
};
|
|
83
86
|
if (process.env.NODE_ENV === "development") {
|
|
84
87
|
const fontReq = {
|
|
85
|
-
family:
|
|
86
|
-
size:
|
|
87
|
-
lineHeight:
|
|
88
|
-
weight:
|
|
89
|
-
letterSpacing:
|
|
88
|
+
family: import_dev_only.default.string,
|
|
89
|
+
size: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.number),
|
|
90
|
+
lineHeight: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.number),
|
|
91
|
+
weight: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.string),
|
|
92
|
+
letterSpacing: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.number)
|
|
90
93
|
};
|
|
91
94
|
const fontOpt = {
|
|
92
|
-
style:
|
|
93
|
-
transform:
|
|
94
|
-
color:
|
|
95
|
+
style: import_dev_only.default.optional.object.valuesOfType(import_dev_only.default.string),
|
|
96
|
+
transform: import_dev_only.default.optional.object.valuesOfType(import_dev_only.default.string),
|
|
97
|
+
color: import_dev_only.default.optional.object.valuesOfType(import_dev_only.default.any(import_dev_only.default.string, import_dev_only.default.object))
|
|
95
98
|
};
|
|
96
|
-
Config =
|
|
97
|
-
defaultTheme:
|
|
98
|
-
disableRootThemeClass:
|
|
99
|
-
shorthands:
|
|
100
|
-
themes:
|
|
101
|
-
tokens:
|
|
102
|
-
media:
|
|
103
|
-
animations:
|
|
104
|
-
fonts:
|
|
99
|
+
Config = import_dev_only.default.object.exactShape({
|
|
100
|
+
defaultTheme: import_dev_only.default.optional.string,
|
|
101
|
+
disableRootThemeClass: import_dev_only.default.optional.boolean,
|
|
102
|
+
shorthands: import_dev_only.default.optional.object.valuesOfType(import_dev_only.default.string),
|
|
103
|
+
themes: import_dev_only.default.object.valuesOfType(import_dev_only.default.object),
|
|
104
|
+
tokens: import_dev_only.default.object.valuesOfType(import_dev_only.default.object),
|
|
105
|
+
media: import_dev_only.default.object.valuesOfType(import_dev_only.default.object),
|
|
106
|
+
animations: import_dev_only.default.object.valuesOfType(import_dev_only.default.object),
|
|
107
|
+
fonts: import_dev_only.default.object.valuesOfType(import_dev_only.default.object.partialShape(__spreadValues(__spreadValues({}, fontReq), fontOpt)))
|
|
105
108
|
});
|
|
106
|
-
FontRequired =
|
|
107
|
-
FontOptional =
|
|
108
|
-
Tokens =
|
|
109
|
-
size:
|
|
110
|
-
space:
|
|
111
|
-
zIndex:
|
|
112
|
-
radius:
|
|
113
|
-
color:
|
|
109
|
+
FontRequired = import_dev_only.default.object.exactShape(fontReq);
|
|
110
|
+
FontOptional = import_dev_only.default.object.partialShape(fontOpt);
|
|
111
|
+
Tokens = import_dev_only.default.object.exactShape({
|
|
112
|
+
size: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.any(import_dev_only.default.number, import_dev_only.default.object)),
|
|
113
|
+
space: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.any(import_dev_only.default.number, import_dev_only.default.object)),
|
|
114
|
+
zIndex: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.any(import_dev_only.default.number, import_dev_only.default.object)),
|
|
115
|
+
radius: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.any(import_dev_only.default.number, import_dev_only.default.object)),
|
|
116
|
+
color: import_dev_only.default.object.nonEmpty.valuesOfType(import_dev_only.default.any(import_dev_only.default.string, import_dev_only.default.object))
|
|
114
117
|
});
|
|
115
118
|
}
|
|
116
119
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/validate.ts"],
|
|
4
|
-
"sourcesContent": ["// published a patched version that works on native\n// @ts-ignore\
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["// published a patched version that works on native\n// @ts-ignore\nimport { default as ow } from '@tamagui/ow/dev-only'\n\nlet Config: any\nlet Tokens: any\nlet FontRequired: any\nlet FontOptional: any\n\nexport const validateConfig = (conf: any) => {\n if (!conf) {\n console.warn('no conf?')\n return\n }\n try {\n ow(conf, Config)\n } catch (err: any) {\n console.warn('Given config:\\n', JSON.stringify(conf, null, 2), err)\n }\n}\n\nexport const validateTokens = (tokens: any) => {\n try {\n ow(tokens, Tokens)\n } catch (err: any) {\n console.warn('Given tokens:\\n', JSON.stringify(tokens, null, 2), err)\n }\n}\n\nexport const validateFont = (font: any) => {\n try {\n const { style, transform, color, ...required } = font\n ow(required, FontRequired)\n ow({ style, transform, color }, FontOptional)\n } catch (err: any) {\n console.warn('Given font:\\n', JSON.stringify(font, null, 2), err)\n }\n}\n\nif (process.env.NODE_ENV === 'development') {\n const fontReq = {\n family: ow.string,\n size: ow.object.nonEmpty.valuesOfType(ow.number),\n lineHeight: ow.object.nonEmpty.valuesOfType(ow.number),\n weight: ow.object.nonEmpty.valuesOfType(ow.string),\n letterSpacing: ow.object.nonEmpty.valuesOfType(ow.number),\n }\n const fontOpt = {\n style: ow.optional.object.valuesOfType(ow.string),\n transform: ow.optional.object.valuesOfType(ow.string),\n color: ow.optional.object.valuesOfType(ow.any(ow.string, ow.object)),\n }\n\n Config = ow.object.exactShape({\n defaultTheme: ow.optional.string,\n disableRootThemeClass: ow.optional.boolean,\n shorthands: ow.optional.object.valuesOfType(ow.string),\n themes: ow.object.valuesOfType(ow.object),\n tokens: ow.object.valuesOfType(ow.object),\n media: ow.object.valuesOfType(ow.object),\n animations: ow.object.valuesOfType(ow.object),\n fonts: ow.object.valuesOfType(\n ow.object.partialShape({\n ...fontReq,\n ...fontOpt,\n })\n ),\n })\n\n FontRequired = ow.object.exactShape(fontReq)\n FontOptional = ow.object.partialShape(fontOpt)\n\n Tokens = ow.object.exactShape({\n size: ow.object.nonEmpty.valuesOfType(ow.any(ow.number, ow.object)),\n space: ow.object.nonEmpty.valuesOfType(ow.any(ow.number, ow.object)),\n zIndex: ow.object.nonEmpty.valuesOfType(ow.any(ow.number, ow.object)),\n radius: ow.object.nonEmpty.valuesOfType(ow.any(ow.number, ow.object)),\n color: ow.object.nonEmpty.valuesOfType(ow.any(ow.string, ow.object)),\n })\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAA8B;AAE9B,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,IAAI;AAEG,MAAM,iBAAiB,CAAC,SAAc;AAC3C,MAAI,CAAC,MAAM;AACT,YAAQ,KAAK,UAAU;AACvB;AAAA,EACF;AACA,MAAI;AACF,iCAAG,MAAM,MAAM;AAAA,EACjB,SAAS,KAAP;AACA,YAAQ,KAAK,mBAAmB,KAAK,UAAU,MAAM,MAAM,CAAC,GAAG,GAAG;AAAA,EACpE;AACF;AAEO,MAAM,iBAAiB,CAAC,WAAgB;AAC7C,MAAI;AACF,iCAAG,QAAQ,MAAM;AAAA,EACnB,SAAS,KAAP;AACA,YAAQ,KAAK,mBAAmB,KAAK,UAAU,QAAQ,MAAM,CAAC,GAAG,GAAG;AAAA,EACtE;AACF;AAEO,MAAM,eAAe,CAAC,SAAc;AACzC,MAAI;AACF,UAAiD,WAAzC,SAAO,WAAW,UAAuB,IAAb,qBAAa,IAAb,CAA5B,SAA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AW,OAAO;AAC3C,iBAAe,wBAAG,OAAO,aAAa,OAAO;AAE7C,WAAS,wBAAG,OAAO,WAAW;AAAA,IAC5B,MAAM,wBAAG,OAAO,SAAS,aAAa,wBAAG,IAAI,wBAAG,QAAQ,wBAAG,MAAM,CAAC;AAAA,IAClE,OAAO,wBAAG,OAAO,SAAS,aAAa,wBAAG,IAAI,wBAAG,QAAQ,wBAAG,MAAM,CAAC;AAAA,IACnE,QAAQ,wBAAG,OAAO,SAAS,aAAa,wBAAG,IAAI,wBAAG,QAAQ,wBAAG,MAAM,CAAC;AAAA,IACpE,QAAQ,wBAAG,OAAO,SAAS,aAAa,wBAAG,IAAI,wBAAG,QAAQ,wBAAG,MAAM,CAAC;AAAA,IACpE,OAAO,wBAAG,OAAO,SAAS,aAAa,wBAAG,IAAI,wBAAG,QAAQ,wBAAG,MAAM,CAAC;AAAA,EACrE,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -18,8 +18,6 @@ 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
|
-
RNWTextProps: () => import_types_rnw.RNWTextProps,
|
|
22
|
-
RNWViewProps: () => import_types_rnw.RNWViewProps,
|
|
23
21
|
expandStyles: () => import_generateAtomicStyles.expandStyles,
|
|
24
22
|
getConfig: () => import_conf.getConfig,
|
|
25
23
|
getHasConfigured: () => import_conf.getHasConfigured,
|
|
@@ -40,7 +38,6 @@ __reExport(src_exports, require("./createVariables"), module.exports);
|
|
|
40
38
|
__reExport(src_exports, require("./insertFont"), module.exports);
|
|
41
39
|
__reExport(src_exports, require("./styled"), module.exports);
|
|
42
40
|
__reExport(src_exports, require("./types"), module.exports);
|
|
43
|
-
var import_types_rnw = require("./types-rnw");
|
|
44
41
|
var import_conf = require("./conf");
|
|
45
42
|
__reExport(src_exports, require("./constants/constants"), module.exports);
|
|
46
43
|
__reExport(src_exports, require("./constants/platform"), module.exports);
|
|
@@ -84,8 +81,6 @@ __reExport(src_exports, require("@tamagui/use-force-update"), module.exports);
|
|
|
84
81
|
__reExport(src_exports, require("@tamagui/helpers"), module.exports);
|
|
85
82
|
// Annotate the CommonJS export names for ESM import in node:
|
|
86
83
|
0 && (module.exports = {
|
|
87
|
-
RNWTextProps,
|
|
88
|
-
RNWViewProps,
|
|
89
84
|
expandStyles,
|
|
90
85
|
getConfig,
|
|
91
86
|
getHasConfigured,
|
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 * from './Tamagui'\nexport * from './createComponent'\nexport * from './createShorthands'\nexport * from './createTheme'\nexport * from './createTamagui'\nexport * from './createFont'\nexport * from './createTokens'\nexport * from './createVariable'\nexport * from './createVariables'\nexport * from './insertFont'\nexport * from './styled'\nexport * from './types'\n// for type portability\nexport { RNWTextProps, RNWViewProps } from './types-rnw'\nexport { getHasConfigured, getConfig, getThemes, getTokens, onConfiguredOnce } from './conf'\n\nexport * from './constants/constants'\nexport * from './constants/platform'\nexport * from './constants/rnw'\n\nexport * from './helpers/calc'\nexport * from './helpers/createShallowUpdate'\nexport * from './helpers/getStackSize'\nexport * from './helpers/getVariantExtras'\nexport * from './helpers/getExpandedShorthands'\nexport * from './helpers/getSize'\nexport * from './helpers/getSplitStyles'\nexport * from './helpers/getStylesAtomic'\nexport * from './helpers/pseudoDescriptors'\nexport * from './helpers/mergeProps'\nexport { expandStyles } from './helpers/generateAtomicStyles'\nexport * from './helpers/getTextSize'\nexport * from './helpers/isObj'\nexport * from './helpers/isTamaguiElement'\nexport * from './helpers/isTamaguiComponent'\nexport * from './helpers/matchMedia'\nexport * from './helpers/themeable'\nexport * from './helpers/withStaticProperties'\n\nexport * from './contexts/ButtonInsideButtonContext'\n\nexport * from './hooks/useConstant'\nexport * from './hooks/useId'\nexport * from './hooks/useIsMounted'\nexport * from './hooks/useIsTouchDevice'\nexport * from './hooks/useMedia'\nexport * from './hooks/usePressable'\nexport * from './hooks/useTheme'\nexport * from './hooks/useUnmountEffect'\n\nexport * from './views/Slot'\nexport * from './views/Stack'\nexport * from './views/Text'\nexport * from './views/TextAncestorContext'\nexport * from './views/Theme'\nexport * from './views/ThemeInverse'\nexport * from './views/ThemeProvider'\nexport * from './views/ThemeReset'\n\nexport * from '@tamagui/use-force-update'\nexport * from '@tamagui/helpers'\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["export * from './Tamagui'\nexport * from './createComponent'\nexport * from './createShorthands'\nexport * from './createTheme'\nexport * from './createTamagui'\nexport * from './createFont'\nexport * from './createTokens'\nexport * from './createVariable'\nexport * from './createVariables'\nexport * from './insertFont'\nexport * from './styled'\nexport * from './types'\n// for type portability\nexport type { RNWTextProps, RNWViewProps } from './types-rnw'\nexport { getHasConfigured, getConfig, getThemes, getTokens, onConfiguredOnce } from './conf'\n\nexport * from './constants/constants'\nexport * from './constants/platform'\nexport * from './constants/rnw'\n\nexport * from './helpers/calc'\nexport * from './helpers/createShallowUpdate'\nexport * from './helpers/getStackSize'\nexport * from './helpers/getVariantExtras'\nexport * from './helpers/getExpandedShorthands'\nexport * from './helpers/getSize'\nexport * from './helpers/getSplitStyles'\nexport * from './helpers/getStylesAtomic'\nexport * from './helpers/pseudoDescriptors'\nexport * from './helpers/mergeProps'\nexport { expandStyles } from './helpers/generateAtomicStyles'\nexport * from './helpers/getTextSize'\nexport * from './helpers/isObj'\nexport * from './helpers/isTamaguiElement'\nexport * from './helpers/isTamaguiComponent'\nexport * from './helpers/matchMedia'\nexport * from './helpers/themeable'\nexport * from './helpers/withStaticProperties'\n\nexport * from './contexts/ButtonInsideButtonContext'\n\nexport * from './hooks/useConstant'\nexport * from './hooks/useId'\nexport * from './hooks/useIsMounted'\nexport * from './hooks/useIsTouchDevice'\nexport * from './hooks/useMedia'\nexport * from './hooks/usePressable'\nexport * from './hooks/useTheme'\nexport * from './hooks/useUnmountEffect'\n\nexport * from './views/Slot'\nexport * from './views/Stack'\nexport * from './views/Text'\nexport * from './views/TextAncestorContext'\nexport * from './views/Theme'\nexport * from './views/ThemeInverse'\nexport * from './views/ThemeProvider'\nexport * from './views/ThemeReset'\n\nexport * from '@tamagui/use-force-update'\nexport * from '@tamagui/helpers'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,sBAAd;AACA,wBAAc,8BADd;AAEA,wBAAc,+BAFd;AAGA,wBAAc,0BAHd;AAIA,wBAAc,4BAJd;AAKA,wBAAc,yBALd;AAMA,wBAAc,2BANd;AAOA,wBAAc,6BAPd;AAQA,wBAAc,8BARd;AASA,wBAAc,yBATd;AAUA,wBAAc,qBAVd;AAWA,wBAAc,oBAXd;AAcA,kBAAoF;AAEpF,wBAAc,kCAhBd;AAiBA,wBAAc,iCAjBd;AAkBA,wBAAc,4BAlBd;AAoBA,wBAAc,2BApBd;AAqBA,wBAAc,0CArBd;AAsBA,wBAAc,mCAtBd;AAuBA,wBAAc,uCAvBd;AAwBA,wBAAc,4CAxBd;AAyBA,wBAAc,8BAzBd;AA0BA,wBAAc,qCA1Bd;AA2BA,wBAAc,sCA3Bd;AA4BA,wBAAc,wCA5Bd;AA6BA,wBAAc,iCA7Bd;AA8BA,kCAA6B;AAC7B,wBAAc,kCA/Bd;AAgCA,wBAAc,4BAhCd;AAiCA,wBAAc,uCAjCd;AAkCA,wBAAc,yCAlCd;AAmCA,wBAAc,iCAnCd;AAoCA,wBAAc,gCApCd;AAqCA,wBAAc,2CArCd;AAuCA,wBAAc,iDAvCd;AAyCA,wBAAc,gCAzCd;AA0CA,wBAAc,0BA1Cd;AA2CA,wBAAc,iCA3Cd;AA4CA,wBAAc,qCA5Cd;AA6CA,wBAAc,6BA7Cd;AA8CA,wBAAc,iCA9Cd;AA+CA,wBAAc,6BA/Cd;AAgDA,wBAAc,qCAhDd;AAkDA,wBAAc,yBAlDd;AAmDA,wBAAc,0BAnDd;AAoDA,wBAAc,yBApDd;AAqDA,wBAAc,wCArDd;AAsDA,wBAAc,0BAtDd;AAuDA,wBAAc,iCAvDd;AAwDA,wBAAc,kCAxDd;AAyDA,wBAAc,+BAzDd;AA2DA,wBAAc,sCA3Dd;AA4DA,wBAAc,6BA5Dd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const rnw =
|
|
3
|
-
if (process.env.IS_STATIC === "is_static") {
|
|
4
|
-
Object.assign(rnw, interopRequire(require("react-native-web/dist/cjs/tamagui-exports")));
|
|
5
|
-
} else if (process.env.TAMAGUI_TARGET === "web") {
|
|
6
|
-
Object.assign(rnw, interopRequire(require("react-native-web").TamaguiExports));
|
|
7
|
-
}
|
|
1
|
+
import * as RNW from "react-native-web";
|
|
2
|
+
const rnw = RNW.TamaguiExports;
|
|
8
3
|
export {
|
|
9
4
|
rnw
|
|
10
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/constants/rnw.tsx"],
|
|
4
|
-
"sourcesContent": ["const interopRequire = (x: any) => ('default' in x ? x.default : x)\
|
|
5
|
-
"mappings": "AAAA,MAAM,
|
|
4
|
+
"sourcesContent": ["import * as RNW from 'react-native-web'\n\nexport const rnw = RNW.TamaguiExports\n\n// const interopRequire = (x: any) => ('default' in x ? x.default : x)\n// export const rnw: any = {}\n\n// // in static mode, require them directly since we can't import react-native-web at all (it has flow stuff in it)\n// if (process.env.IS_STATIC === 'is_static') {\n// Object.assign(rnw, interopRequire(require('react-native-web/dist/cjs/tamagui-exports')))\n// } else if (process.env.TAMAGUI_TARGET === 'web') {\n// Object.assign(rnw, interopRequire(require('react-native-web').TamaguiExports))\n// }\n"],
|
|
5
|
+
"mappings": "AAAA;AAEO,MAAM,MAAM,IAAI;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/validate.ts"],
|
|
4
|
-
"sourcesContent": ["// published a patched version that works on native\n// @ts-ignore\
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA
|
|
4
|
+
"sourcesContent": ["// published a patched version that works on native\n// @ts-ignore\nimport { default as ow } from '@tamagui/ow/dev-only'\n\nlet Config: any\nlet Tokens: any\nlet FontRequired: any\nlet FontOptional: any\n\nexport const validateConfig = (conf: any) => {\n if (!conf) {\n console.warn('no conf?')\n return\n }\n try {\n ow(conf, Config)\n } catch (err: any) {\n console.warn('Given config:\\n', JSON.stringify(conf, null, 2), err)\n }\n}\n\nexport const validateTokens = (tokens: any) => {\n try {\n ow(tokens, Tokens)\n } catch (err: any) {\n console.warn('Given tokens:\\n', JSON.stringify(tokens, null, 2), err)\n }\n}\n\nexport const validateFont = (font: any) => {\n try {\n const { style, transform, color, ...required } = font\n ow(required, FontRequired)\n ow({ style, transform, color }, FontOptional)\n } catch (err: any) {\n console.warn('Given font:\\n', JSON.stringify(font, null, 2), err)\n }\n}\n\nif (process.env.NODE_ENV === 'development') {\n const fontReq = {\n family: ow.string,\n size: ow.object.nonEmpty.valuesOfType(ow.number),\n lineHeight: ow.object.nonEmpty.valuesOfType(ow.number),\n weight: ow.object.nonEmpty.valuesOfType(ow.string),\n letterSpacing: ow.object.nonEmpty.valuesOfType(ow.number),\n }\n const fontOpt = {\n style: ow.optional.object.valuesOfType(ow.string),\n transform: ow.optional.object.valuesOfType(ow.string),\n color: ow.optional.object.valuesOfType(ow.any(ow.string, ow.object)),\n }\n\n Config = ow.object.exactShape({\n defaultTheme: ow.optional.string,\n disableRootThemeClass: ow.optional.boolean,\n shorthands: ow.optional.object.valuesOfType(ow.string),\n themes: ow.object.valuesOfType(ow.object),\n tokens: ow.object.valuesOfType(ow.object),\n media: ow.object.valuesOfType(ow.object),\n animations: ow.object.valuesOfType(ow.object),\n fonts: ow.object.valuesOfType(\n ow.object.partialShape({\n ...fontReq,\n ...fontOpt,\n })\n ),\n })\n\n FontRequired = ow.object.exactShape(fontReq)\n FontOptional = ow.object.partialShape(fontOpt)\n\n Tokens = ow.object.exactShape({\n size: ow.object.nonEmpty.valuesOfType(ow.any(ow.number, ow.object)),\n space: ow.object.nonEmpty.valuesOfType(ow.any(ow.number, ow.object)),\n zIndex: ow.object.nonEmpty.valuesOfType(ow.any(ow.number, ow.object)),\n radius: ow.object.nonEmpty.valuesOfType(ow.any(ow.number, ow.object)),\n color: ow.object.nonEmpty.valuesOfType(ow.any(ow.string, ow.object)),\n })\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AAEA,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,IAAI;AAEG,MAAM,iBAAiB,CAAC,SAAc;AAC3C,MAAI,CAAC,MAAM;AACT,YAAQ,KAAK,UAAU;AACvB;AAAA,EACF;AACA,MAAI;AACF,OAAG,MAAM,MAAM;AAAA,EACjB,SAAS,KAAP;AACA,YAAQ,KAAK,mBAAmB,KAAK,UAAU,MAAM,MAAM,CAAC,GAAG,GAAG;AAAA,EACpE;AACF;AAEO,MAAM,iBAAiB,CAAC,WAAgB;AAC7C,MAAI;AACF,OAAG,QAAQ,MAAM;AAAA,EACnB,SAAS,KAAP;AACA,YAAQ,KAAK,mBAAmB,KAAK,UAAU,QAAQ,MAAM,CAAC,GAAG,GAAG;AAAA,EACtE;AACF;AAEO,MAAM,eAAe,CAAC,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;AAAA,EACF,CAAC;AAED,iBAAe,GAAG,OAAO,WAAW,OAAO;AAC3C,iBAAe,GAAG,OAAO,aAAa,OAAO;AAE7C,WAAS,GAAG,OAAO,WAAW;AAAA,IAC5B,MAAM,GAAG,OAAO,SAAS,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAC;AAAA,IAClE,OAAO,GAAG,OAAO,SAAS,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAC;AAAA,IACnE,QAAQ,GAAG,OAAO,SAAS,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAC;AAAA,IACpE,QAAQ,GAAG,OAAO,SAAS,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAC;AAAA,IACpE,OAAO,GAAG,OAAO,SAAS,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAC;AAAA,EACrE,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -10,7 +10,6 @@ export * from "./createVariables";
|
|
|
10
10
|
export * from "./insertFont";
|
|
11
11
|
export * from "./styled";
|
|
12
12
|
export * from "./types";
|
|
13
|
-
import { RNWTextProps, RNWViewProps } from "./types-rnw";
|
|
14
13
|
import { getHasConfigured, getConfig, getThemes, getTokens, onConfiguredOnce } from "./conf";
|
|
15
14
|
export * from "./constants/constants";
|
|
16
15
|
export * from "./constants/platform";
|
|
@@ -53,8 +52,6 @@ export * from "./views/ThemeReset";
|
|
|
53
52
|
export * from "@tamagui/use-force-update";
|
|
54
53
|
export * from "@tamagui/helpers";
|
|
55
54
|
export {
|
|
56
|
-
RNWTextProps,
|
|
57
|
-
RNWViewProps,
|
|
58
55
|
expandStyles,
|
|
59
56
|
getConfig,
|
|
60
57
|
getHasConfigured,
|
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 * from './Tamagui'\nexport * from './createComponent'\nexport * from './createShorthands'\nexport * from './createTheme'\nexport * from './createTamagui'\nexport * from './createFont'\nexport * from './createTokens'\nexport * from './createVariable'\nexport * from './createVariables'\nexport * from './insertFont'\nexport * from './styled'\nexport * from './types'\n// for type portability\nexport { RNWTextProps, RNWViewProps } from './types-rnw'\nexport { getHasConfigured, getConfig, getThemes, getTokens, onConfiguredOnce } from './conf'\n\nexport * from './constants/constants'\nexport * from './constants/platform'\nexport * from './constants/rnw'\n\nexport * from './helpers/calc'\nexport * from './helpers/createShallowUpdate'\nexport * from './helpers/getStackSize'\nexport * from './helpers/getVariantExtras'\nexport * from './helpers/getExpandedShorthands'\nexport * from './helpers/getSize'\nexport * from './helpers/getSplitStyles'\nexport * from './helpers/getStylesAtomic'\nexport * from './helpers/pseudoDescriptors'\nexport * from './helpers/mergeProps'\nexport { expandStyles } from './helpers/generateAtomicStyles'\nexport * from './helpers/getTextSize'\nexport * from './helpers/isObj'\nexport * from './helpers/isTamaguiElement'\nexport * from './helpers/isTamaguiComponent'\nexport * from './helpers/matchMedia'\nexport * from './helpers/themeable'\nexport * from './helpers/withStaticProperties'\n\nexport * from './contexts/ButtonInsideButtonContext'\n\nexport * from './hooks/useConstant'\nexport * from './hooks/useId'\nexport * from './hooks/useIsMounted'\nexport * from './hooks/useIsTouchDevice'\nexport * from './hooks/useMedia'\nexport * from './hooks/usePressable'\nexport * from './hooks/useTheme'\nexport * from './hooks/useUnmountEffect'\n\nexport * from './views/Slot'\nexport * from './views/Stack'\nexport * from './views/Text'\nexport * from './views/TextAncestorContext'\nexport * from './views/Theme'\nexport * from './views/ThemeInverse'\nexport * from './views/ThemeProvider'\nexport * from './views/ThemeReset'\n\nexport * from '@tamagui/use-force-update'\nexport * from '@tamagui/helpers'\n"],
|
|
5
|
-
"mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
4
|
+
"sourcesContent": ["export * from './Tamagui'\nexport * from './createComponent'\nexport * from './createShorthands'\nexport * from './createTheme'\nexport * from './createTamagui'\nexport * from './createFont'\nexport * from './createTokens'\nexport * from './createVariable'\nexport * from './createVariables'\nexport * from './insertFont'\nexport * from './styled'\nexport * from './types'\n// for type portability\nexport type { RNWTextProps, RNWViewProps } from './types-rnw'\nexport { getHasConfigured, getConfig, getThemes, getTokens, onConfiguredOnce } from './conf'\n\nexport * from './constants/constants'\nexport * from './constants/platform'\nexport * from './constants/rnw'\n\nexport * from './helpers/calc'\nexport * from './helpers/createShallowUpdate'\nexport * from './helpers/getStackSize'\nexport * from './helpers/getVariantExtras'\nexport * from './helpers/getExpandedShorthands'\nexport * from './helpers/getSize'\nexport * from './helpers/getSplitStyles'\nexport * from './helpers/getStylesAtomic'\nexport * from './helpers/pseudoDescriptors'\nexport * from './helpers/mergeProps'\nexport { expandStyles } from './helpers/generateAtomicStyles'\nexport * from './helpers/getTextSize'\nexport * from './helpers/isObj'\nexport * from './helpers/isTamaguiElement'\nexport * from './helpers/isTamaguiComponent'\nexport * from './helpers/matchMedia'\nexport * from './helpers/themeable'\nexport * from './helpers/withStaticProperties'\n\nexport * from './contexts/ButtonInsideButtonContext'\n\nexport * from './hooks/useConstant'\nexport * from './hooks/useId'\nexport * from './hooks/useIsMounted'\nexport * from './hooks/useIsTouchDevice'\nexport * from './hooks/useMedia'\nexport * from './hooks/usePressable'\nexport * from './hooks/useTheme'\nexport * from './hooks/useUnmountEffect'\n\nexport * from './views/Slot'\nexport * from './views/Stack'\nexport * from './views/Text'\nexport * from './views/TextAncestorContext'\nexport * from './views/Theme'\nexport * from './views/ThemeInverse'\nexport * from './views/ThemeProvider'\nexport * from './views/ThemeReset'\n\nexport * from '@tamagui/use-force-update'\nexport * from '@tamagui/helpers'\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.79",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@expo/match-media": "^0.3.0",
|
|
24
|
-
"@tamagui/compose-refs": "^1.0.1-beta.
|
|
25
|
-
"@tamagui/helpers": "^1.0.1-beta.
|
|
24
|
+
"@tamagui/compose-refs": "^1.0.1-beta.79",
|
|
25
|
+
"@tamagui/helpers": "^1.0.1-beta.79",
|
|
26
26
|
"@tamagui/ow": "^0.28.1",
|
|
27
|
-
"@tamagui/use-debounce": "^1.0.1-beta.
|
|
28
|
-
"@tamagui/use-force-update": "^1.0.1-beta.
|
|
27
|
+
"@tamagui/use-debounce": "^1.0.1-beta.79",
|
|
28
|
+
"@tamagui/use-force-update": "^1.0.1-beta.79",
|
|
29
29
|
"expo-screen-orientation": "^4.2.0",
|
|
30
30
|
"hyphenate-style-name": "^1.0.4",
|
|
31
31
|
"normalize-css-color": "^1.0.2",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-native-web": "*"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
39
|
+
"@tamagui/build": "^1.0.1-beta.79",
|
|
40
40
|
"@types/react": "^17.0.35",
|
|
41
41
|
"csstype": "^3.0.10",
|
|
42
42
|
"esbuild": "^0.14.36",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rnw.d.ts","sourceRoot":"","sources":["../../src/constants/rnw.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rnw.d.ts","sourceRoot":"","sources":["../../src/constants/rnw.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,KAAqB,CAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export * from './createVariables';
|
|
|
10
10
|
export * from './insertFont';
|
|
11
11
|
export * from './styled';
|
|
12
12
|
export * from './types';
|
|
13
|
-
export { RNWTextProps, RNWViewProps } from './types-rnw';
|
|
13
|
+
export type { RNWTextProps, RNWViewProps } from './types-rnw';
|
|
14
14
|
export { getHasConfigured, getConfig, getThemes, getTokens, onConfiguredOnce } from './conf';
|
|
15
15
|
export * from './constants/constants';
|
|
16
16
|
export * from './constants/platform';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AAEvB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBA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