@tamagui/helpers-tamagui 1.30.15 → 1.30.17
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 +4 -4
- package/dist/cjs/getSpace.js +0 -35
- package/dist/cjs/getSpace.js.map +0 -6
- package/dist/esm/getSpace.js +0 -11
- package/dist/esm/getSpace.js.map +0 -6
- package/types/getSpace.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers-tamagui",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.17",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"clean:build": "tamagui-build clean:build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tamagui/helpers": "1.30.
|
|
23
|
-
"@tamagui/web": "1.30.
|
|
22
|
+
"@tamagui/helpers": "1.30.17",
|
|
23
|
+
"@tamagui/web": "1.30.17"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@tamagui/build": "1.30.
|
|
26
|
+
"@tamagui/build": "1.30.17",
|
|
27
27
|
"react": "^18.2.0",
|
|
28
28
|
"react-native": "^0.71.7",
|
|
29
29
|
"vitest": "^0.26.3"
|
package/dist/cjs/getSpace.js
DELETED
|
@@ -1,35 +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 getSpace_exports = {};
|
|
20
|
-
__export(getSpace_exports, {
|
|
21
|
-
getSpace: () => getSpace
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(getSpace_exports);
|
|
24
|
-
var import_core = require("@tamagui/core");
|
|
25
|
-
const getSpace = (token, sizeUpOrDownBy = 0) => {
|
|
26
|
-
const spaces = (0, import_core.getTokens)().space;
|
|
27
|
-
const spaceNames = Object.keys(spaces);
|
|
28
|
-
const key = spaceNames[Math.max(0, spaceNames.indexOf(String(token || "$true")) + sizeUpOrDownBy)];
|
|
29
|
-
return spaces[key] || spaces["$true"];
|
|
30
|
-
};
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
getSpace
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=getSpace.js.map
|
package/dist/cjs/getSpace.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/getSpace.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AAEhC,MAAM,WAAW,CAAC,OAAiC,iBAAiB,MAAM;AAC/E,QAAM,aAAS,uBAAU,EAAE;AAC3B,QAAM,aAAa,OAAO,KAAK,MAAM;AACrC,QAAM,MACJ,WAAW,KAAK,IAAI,GAAG,WAAW,QAAQ,OAAO,SAAS,OAAO,CAAC,IAAI,cAAc,CAAC;AACvF,SAAQ,OAAO,GAAG,KAAK,OAAO,OAAO;AACvC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/esm/getSpace.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { getTokens } from "@tamagui/core";
|
|
2
|
-
const getSpace = (token, sizeUpOrDownBy = 0) => {
|
|
3
|
-
const spaces = getTokens().space;
|
|
4
|
-
const spaceNames = Object.keys(spaces);
|
|
5
|
-
const key = spaceNames[Math.max(0, spaceNames.indexOf(String(token || "$true")) + sizeUpOrDownBy)];
|
|
6
|
-
return spaces[key] || spaces["$true"];
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
getSpace
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=getSpace.js.map
|
package/dist/esm/getSpace.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/getSpace.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAsB,iBAAiB;AAEhC,MAAM,WAAW,CAAC,OAAiC,iBAAiB,MAAM;AAC/E,QAAM,SAAS,UAAU,EAAE;AAC3B,QAAM,aAAa,OAAO,KAAK,MAAM;AACrC,QAAM,MACJ,WAAW,KAAK,IAAI,GAAG,WAAW,QAAQ,OAAO,SAAS,OAAO,CAAC,IAAI,cAAc,CAAC;AACvF,SAAQ,OAAO,GAAG,KAAK,OAAO,OAAO;AACvC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/types/getSpace.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getSpace.d.ts","sourceRoot":"","sources":["../src/getSpace.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAa,MAAM,eAAe,CAAA;AAEtD,eAAO,MAAM,QAAQ,WAAY,WAAW,GAAG,SAAS,yCAMvD,CAAA"}
|