@tamagui/helpers 1.0.1-beta.153 → 1.0.1-beta.154

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers",
3
- "version": "1.0.1-beta.153",
3
+ "version": "1.0.1-beta.154",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -20,10 +20,10 @@
20
20
  "clean:build": "tamagui-build clean:build"
21
21
  },
22
22
  "dependencies": {
23
- "@tamagui/simple-hash": "^1.0.1-beta.153"
23
+ "@tamagui/simple-hash": "^1.0.1-beta.154"
24
24
  },
25
25
  "devDependencies": {
26
- "@tamagui/build": "^1.0.1-beta.153",
26
+ "@tamagui/build": "^1.0.1-beta.154",
27
27
  "react": "*",
28
28
  "react-native": "*"
29
29
  },
@@ -1,48 +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 simpleHash_exports = {};
20
- __export(simpleHash_exports, {
21
- isValidCSSCharCode: () => isValidCSSCharCode,
22
- simpleHash: () => simpleHash
23
- });
24
- module.exports = __toCommonJS(simpleHash_exports);
25
- const simpleHash = (str, hashMin = 10) => {
26
- let hash = 0;
27
- let valids = ``;
28
- const len = str.length;
29
- for (let i = 0; i < len; i++) {
30
- const char = str.charCodeAt(i);
31
- if (isValidCSSCharCode(char) && len <= hashMin) {
32
- valids += str[i];
33
- } else {
34
- hash = (hash << 5) - hash + char;
35
- hash &= hash;
36
- }
37
- }
38
- return valids + (hash ? new Uint32Array([hash])[0].toString(36) : "");
39
- };
40
- function isValidCSSCharCode(code) {
41
- return code >= 65 && code <= 90 || code >= 97 && code <= 122 || code == 95 || code === 45 || code >= 48 && code <= 57;
42
- }
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- isValidCSSCharCode,
46
- simpleHash
47
- });
48
- //# sourceMappingURL=simpleHash.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/simpleHash.ts"],
4
- "sourcesContent": ["export const simpleHash = (str: string, hashMin = 10) => {\n let hash = 0\n let valids = ``\n const len = str.length\n for (let i = 0; i < len; i++) {\n const char = str.charCodeAt(i)\n // dont do more than 10 non-hashed to avoid getting too girthy\n if (isValidCSSCharCode(char) && len <= hashMin) {\n valids += str[i]\n } else {\n hash = (hash << 5) - hash + char\n hash &= hash // Convert to 32bit integer\n }\n }\n return valids + (hash ? new Uint32Array([hash])[0].toString(36) : '')\n}\n\nexport function isValidCSSCharCode(code: number) {\n return (\n // A-Z\n (code >= 65 && code <= 90) ||\n // a-z\n (code >= 97 && code <= 122) ||\n // _\n code == 95 ||\n // -\n code === 45 ||\n // 0-9\n (code >= 48 && code <= 57)\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAa,CAAC,KAAa,UAAU,OAAO;AACvD,MAAI,OAAO;AACX,MAAI,SAAS;AACb,QAAM,MAAM,IAAI;AAChB,WAAS,IAAI,GAAG,IAAI,KAAK,KAAK;AAC5B,UAAM,OAAO,IAAI,WAAW,CAAC;AAE7B,QAAI,mBAAmB,IAAI,KAAK,OAAO,SAAS;AAC9C,gBAAU,IAAI;AAAA,IAChB,OAAO;AACL,cAAQ,QAAQ,KAAK,OAAO;AAC5B,cAAQ;AAAA,IACV;AAAA,EACF;AACA,SAAO,UAAU,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,IAAI;AACpE;AAEO,SAAS,mBAAmB,MAAc;AAC/C,SAEG,QAAQ,MAAM,QAAQ,MAEtB,QAAQ,MAAM,QAAQ,OAEvB,QAAQ,MAER,SAAS,MAER,QAAQ,MAAM,QAAQ;AAE3B;",
6
- "names": []
7
- }
@@ -1,23 +0,0 @@
1
- const simpleHash = (str, hashMin = 10) => {
2
- let hash = 0;
3
- let valids = ``;
4
- const len = str.length;
5
- for (let i = 0; i < len; i++) {
6
- const char = str.charCodeAt(i);
7
- if (isValidCSSCharCode(char) && len <= hashMin) {
8
- valids += str[i];
9
- } else {
10
- hash = (hash << 5) - hash + char;
11
- hash &= hash;
12
- }
13
- }
14
- return valids + (hash ? new Uint32Array([hash])[0].toString(36) : "");
15
- };
16
- function isValidCSSCharCode(code) {
17
- return code >= 65 && code <= 90 || code >= 97 && code <= 122 || code == 95 || code === 45 || code >= 48 && code <= 57;
18
- }
19
- export {
20
- isValidCSSCharCode,
21
- simpleHash
22
- };
23
- //# sourceMappingURL=simpleHash.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/simpleHash.ts"],
4
- "sourcesContent": ["export const simpleHash = (str: string, hashMin = 10) => {\n let hash = 0\n let valids = ``\n const len = str.length\n for (let i = 0; i < len; i++) {\n const char = str.charCodeAt(i)\n // dont do more than 10 non-hashed to avoid getting too girthy\n if (isValidCSSCharCode(char) && len <= hashMin) {\n valids += str[i]\n } else {\n hash = (hash << 5) - hash + char\n hash &= hash // Convert to 32bit integer\n }\n }\n return valids + (hash ? new Uint32Array([hash])[0].toString(36) : '')\n}\n\nexport function isValidCSSCharCode(code: number) {\n return (\n // A-Z\n (code >= 65 && code <= 90) ||\n // a-z\n (code >= 97 && code <= 122) ||\n // _\n code == 95 ||\n // -\n code === 45 ||\n // 0-9\n (code >= 48 && code <= 57)\n )\n}\n"],
5
- "mappings": "AAAO,MAAM,aAAa,CAAC,KAAa,UAAU,OAAO;AACvD,MAAI,OAAO;AACX,MAAI,SAAS;AACb,QAAM,MAAM,IAAI;AAChB,WAAS,IAAI,GAAG,IAAI,KAAK,KAAK;AAC5B,UAAM,OAAO,IAAI,WAAW,CAAC;AAE7B,QAAI,mBAAmB,IAAI,KAAK,OAAO,SAAS;AAC9C,gBAAU,IAAI;AAAA,IAChB,OAAO;AACL,cAAQ,QAAQ,KAAK,OAAO;AAC5B,cAAQ;AAAA,IACV;AAAA,EACF;AACA,SAAO,UAAU,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,IAAI;AACpE;AAEO,SAAS,mBAAmB,MAAc;AAC/C,SAEG,QAAQ,MAAM,QAAQ,MAEtB,QAAQ,MAAM,QAAQ,OAEvB,QAAQ,MAER,SAAS,MAER,QAAQ,MAAM,QAAQ;AAE3B;",
6
- "names": []
7
- }
@@ -1,23 +0,0 @@
1
- const simpleHash = (str, hashMin = 10) => {
2
- let hash = 0;
3
- let valids = ``;
4
- const len = str.length;
5
- for (let i = 0; i < len; i++) {
6
- const char = str.charCodeAt(i);
7
- if (isValidCSSCharCode(char) && len <= hashMin) {
8
- valids += str[i];
9
- } else {
10
- hash = (hash << 5) - hash + char;
11
- hash &= hash;
12
- }
13
- }
14
- return valids + (hash ? new Uint32Array([hash])[0].toString(36) : "");
15
- };
16
- function isValidCSSCharCode(code) {
17
- return code >= 65 && code <= 90 || code >= 97 && code <= 122 || code == 95 || code === 45 || code >= 48 && code <= 57;
18
- }
19
- export {
20
- isValidCSSCharCode,
21
- simpleHash
22
- };
23
- //# sourceMappingURL=simpleHash.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/simpleHash.ts"],
4
- "sourcesContent": ["export const simpleHash = (str: string, hashMin = 10) => {\n let hash = 0\n let valids = ``\n const len = str.length\n for (let i = 0; i < len; i++) {\n const char = str.charCodeAt(i)\n // dont do more than 10 non-hashed to avoid getting too girthy\n if (isValidCSSCharCode(char) && len <= hashMin) {\n valids += str[i]\n } else {\n hash = (hash << 5) - hash + char\n hash &= hash // Convert to 32bit integer\n }\n }\n return valids + (hash ? new Uint32Array([hash])[0].toString(36) : '')\n}\n\nexport function isValidCSSCharCode(code: number) {\n return (\n // A-Z\n (code >= 65 && code <= 90) ||\n // a-z\n (code >= 97 && code <= 122) ||\n // _\n code == 95 ||\n // -\n code === 45 ||\n // 0-9\n (code >= 48 && code <= 57)\n )\n}\n"],
5
- "mappings": "AAAO,MAAM,aAAa,CAAC,KAAa,UAAU,OAAO;AACvD,MAAI,OAAO;AACX,MAAI,SAAS;AACb,QAAM,MAAM,IAAI;AAChB,WAAS,IAAI,GAAG,IAAI,KAAK,KAAK;AAC5B,UAAM,OAAO,IAAI,WAAW,CAAC;AAE7B,QAAI,mBAAmB,IAAI,KAAK,OAAO,SAAS;AAC9C,gBAAU,IAAI;AAAA,IAChB,OAAO;AACL,cAAQ,QAAQ,KAAK,OAAO;AAC5B,cAAQ;AAAA,IACV;AAAA,EACF;AACA,SAAO,UAAU,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,IAAI;AACpE;AAEO,SAAS,mBAAmB,MAAc;AAC/C,SAEG,QAAQ,MAAM,QAAQ,MAEtB,QAAQ,MAAM,QAAQ,OAEvB,QAAQ,MAER,SAAS,MAER,QAAQ,MAAM,QAAQ;AAE3B;",
6
- "names": []
7
- }