@tamagui/web 1.30.27 → 1.30.29
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/package.json +9 -9
- package/dist/cjs/helpers/warnOnce.js +0 -38
- package/dist/cjs/helpers/warnOnce.js.map +0 -6
- package/dist/esm/helpers/warnOnce.js +0 -14
- package/dist/esm/helpers/warnOnce.js.map +0 -6
- package/types/helpers/createVariantContext.d.ts +0 -9
- package/types/helpers/createVariantProvider.d.ts +0 -9
- package/types/helpers/warnOnce.d.ts +0 -2
- package/types/helpers/warnOnce.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.29",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"reset.css"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/compose-refs": "1.30.
|
|
31
|
-
"@tamagui/constants": "1.30.
|
|
32
|
-
"@tamagui/helpers": "1.30.
|
|
33
|
-
"@tamagui/normalize-css-color": "1.30.
|
|
34
|
-
"@tamagui/use-did-finish-ssr": "1.30.
|
|
35
|
-
"@tamagui/use-event": "1.30.
|
|
36
|
-
"@tamagui/use-force-update": "1.30.
|
|
30
|
+
"@tamagui/compose-refs": "1.30.29",
|
|
31
|
+
"@tamagui/constants": "1.30.29",
|
|
32
|
+
"@tamagui/helpers": "1.30.29",
|
|
33
|
+
"@tamagui/normalize-css-color": "1.30.29",
|
|
34
|
+
"@tamagui/use-did-finish-ssr": "1.30.29",
|
|
35
|
+
"@tamagui/use-event": "1.30.29",
|
|
36
|
+
"@tamagui/use-force-update": "1.30.29"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "*"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@tamagui/build": "1.30.
|
|
42
|
+
"@tamagui/build": "1.30.29",
|
|
43
43
|
"@testing-library/react": "^13.4.0",
|
|
44
44
|
"csstype": "^3.0.10",
|
|
45
45
|
"react": "^18.2.0",
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var warnOnce_exports = {};
|
|
20
|
-
__export(warnOnce_exports, {
|
|
21
|
-
warnOnce: () => warnOnce
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(warnOnce_exports);
|
|
24
|
-
let hasWarned;
|
|
25
|
-
function warnOnce(key, warning) {
|
|
26
|
-
if (process.env.NODE_ENV === "development") {
|
|
27
|
-
hasWarned ?? (hasWarned = {});
|
|
28
|
-
if (!hasWarned[key]) {
|
|
29
|
-
hasWarned[key] = true;
|
|
30
|
-
console.warn(warning);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
-
0 && (module.exports = {
|
|
36
|
-
warnOnce
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=warnOnce.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/helpers/warnOnce.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAI;AAEG,SAAS,SAAS,KAAa,SAAiB;AACrD,MAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,8BAAc,CAAC;AACf,QAAI,CAAC,UAAU,GAAG,GAAG;AACnB,gBAAU,GAAG,IAAI;AACjB,cAAQ,KAAK,OAAO;AAAA,IACtB;AAAA,EACF;AACF;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
let hasWarned;
|
|
2
|
-
function warnOnce(key, warning) {
|
|
3
|
-
if (process.env.NODE_ENV === "development") {
|
|
4
|
-
hasWarned ??= {};
|
|
5
|
-
if (!hasWarned[key]) {
|
|
6
|
-
hasWarned[key] = true;
|
|
7
|
-
console.warn(warning);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
warnOnce
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=warnOnce.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/helpers/warnOnce.tsx"],
|
|
4
|
-
"mappings": "AAAA,IAAI;AAEG,SAAS,SAAS,KAAa,SAAiB;AACrD,MAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,kBAAc,CAAC;AACf,QAAI,CAAC,UAAU,GAAG,GAAG;AACnB,gBAAU,GAAG,IAAI;AACjB,cAAQ,KAAK,OAAO;AAAA,IACtB;AAAA,EACF;AACF;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type providerProvider<Props extends Object = any> = React.FunctionComponent<Props & {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}> & {
|
|
5
|
-
Context: React.Context<any>;
|
|
6
|
-
variants: Object;
|
|
7
|
-
};
|
|
8
|
-
export declare function createVariantProvider<Variants extends Record<string, any>>(variants: Variants): providerProvider<Variants>;
|
|
9
|
-
//# sourceMappingURL=createVariantContext.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type VariantProvider<Props extends Object = any> = React.FunctionComponent<Props & {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}> & {
|
|
5
|
-
Context: React.Context<any>;
|
|
6
|
-
variants: Object;
|
|
7
|
-
};
|
|
8
|
-
export declare function createVariantProvider<Variants extends Record<string, any>>(variants: Variants): VariantProvider<Variants>;
|
|
9
|
-
//# sourceMappingURL=createVariantProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warnOnce.d.ts","sourceRoot":"","sources":["../../src/helpers/warnOnce.tsx"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAQpD"}
|