@tamagui/helpers 1.0.0-alpha.38 → 1.0.0-alpha.42

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.
Files changed (50) hide show
  1. package/dist/cjs/allRules.js +32 -0
  2. package/dist/cjs/allRules.js.map +7 -0
  3. package/dist/cjs/concatClassName.js +95 -0
  4. package/dist/cjs/concatClassName.js.map +7 -0
  5. package/dist/cjs/index.js +25 -0
  6. package/dist/cjs/index.js.map +7 -0
  7. package/dist/cjs/simpleHash.js +38 -0
  8. package/dist/cjs/simpleHash.js.map +7 -0
  9. package/dist/cjs/types.js +21 -0
  10. package/dist/cjs/types.js.map +7 -0
  11. package/dist/cjs/validStyleProps.js +179 -0
  12. package/dist/cjs/validStyleProps.js.map +7 -0
  13. package/dist/esm/allRules.js +9 -0
  14. package/dist/esm/allRules.js.map +7 -0
  15. package/dist/esm/concatClassName.js +72 -0
  16. package/dist/esm/concatClassName.js.map +7 -0
  17. package/dist/{index.js → esm/index.js} +1 -3
  18. package/dist/esm/index.js.map +7 -0
  19. package/dist/{simpleHash.js → esm/simpleHash.js} +0 -0
  20. package/dist/{simpleHash.js.map → esm/simpleHash.js.map} +1 -1
  21. package/dist/{types.js → esm/types.js} +0 -0
  22. package/dist/{types.js.map → esm/types.js.map} +0 -0
  23. package/dist/{validStyleProps.js → esm/validStyleProps.js} +26 -14
  24. package/dist/esm/validStyleProps.js.map +7 -0
  25. package/dist/jsx/allRules.js +8 -0
  26. package/dist/jsx/concatClassName.js +71 -0
  27. package/dist/jsx/index.js +4 -0
  28. package/dist/jsx/simpleHash.js +14 -0
  29. package/dist/jsx/types.js +0 -0
  30. package/dist/jsx/validStyleProps.js +149 -0
  31. package/package.json +3 -3
  32. package/types/allRules.d.ts.map +1 -0
  33. package/types/concatClassName.d.ts.map +1 -0
  34. package/types/index.d.ts.map +1 -0
  35. package/types/simpleHash.d.ts.map +1 -0
  36. package/types/types.d.ts.map +1 -0
  37. package/types/validStyleProps.d.ts.map +1 -0
  38. package/dist/.buildinfo +0 -1
  39. package/dist/concatClassName.js +0 -60
  40. package/dist/concatClassName.js.map +0 -7
  41. package/dist/getNiceKey.js +0 -16
  42. package/dist/getNiceKey.js.map +0 -7
  43. package/dist/getStylesAtomic.js +0 -101
  44. package/dist/getStylesAtomic.js.map +0 -7
  45. package/dist/index.cjs +0 -379
  46. package/dist/index.cjs.map +0 -7
  47. package/dist/index.js.map +0 -7
  48. package/dist/uniqueStyleKeys.js +0 -33
  49. package/dist/uniqueStyleKeys.js.map +0 -7
  50. package/dist/validStyleProps.js.map +0 -7
@@ -0,0 +1,32 @@
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 allRules_exports = {};
25
+ __export(allRules_exports, {
26
+ AllRules: () => AllRules,
27
+ getStyleRules: () => getStyleRules
28
+ });
29
+ const AllRules = /* @__PURE__ */ new Set();
30
+ const getStyleRules = /* @__PURE__ */ __name(() => AllRules, "getStyleRules");
31
+ module.exports = __toCommonJS(allRules_exports);
32
+ //# sourceMappingURL=allRules.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/allRules.ts"],
4
+ "sourcesContent": ["// ssr only\n\nexport const AllRules = new Set()\n\nexport const getStyleRules = () => AllRules\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,WAAW,oBAAI;AAErB,MAAM,gBAAgB,6BAAM,UAAN;",
6
+ "names": []
7
+ }
@@ -0,0 +1,95 @@
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 concatClassName_exports = {};
25
+ __export(concatClassName_exports, {
26
+ concatClassName: () => concatClassName
27
+ });
28
+ function concatClassName(_cn) {
29
+ const classNamesOrPropObjects = arguments;
30
+ const usedPrefixes = [];
31
+ let final = "";
32
+ const len = classNamesOrPropObjects.length;
33
+ let propObjects = null;
34
+ for (let x = len; x >= 0; x--) {
35
+ const cns = classNamesOrPropObjects[x];
36
+ if (!cns)
37
+ continue;
38
+ if (!Array.isArray(cns) && typeof cns !== "string") {
39
+ propObjects = propObjects || [];
40
+ propObjects.push(cns);
41
+ continue;
42
+ }
43
+ const names = Array.isArray(cns) ? cns : cns.split(" ");
44
+ const numNames = names.length;
45
+ for (let i = numNames - 1; i >= 0; i--) {
46
+ const name = names[i];
47
+ if (!name || name === " ")
48
+ continue;
49
+ if (name[0] !== "_") {
50
+ final = name + " " + final;
51
+ continue;
52
+ }
53
+ const splitIndex = name.indexOf("-");
54
+ if (splitIndex < 1) {
55
+ final = name + " " + final;
56
+ continue;
57
+ }
58
+ const nextChar = name[splitIndex + 1];
59
+ const isMediaQuery = nextChar === "_";
60
+ const isPsuedoQuery = nextChar === "-";
61
+ const styleKey = name.slice(1, splitIndex);
62
+ const mediaKey = isMediaQuery || isPsuedoQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null;
63
+ const uid = mediaKey ? styleKey + mediaKey : styleKey;
64
+ if (!isMediaQuery && !isPsuedoQuery) {
65
+ if (usedPrefixes.indexOf(uid) > -1) {
66
+ continue;
67
+ }
68
+ usedPrefixes.push(uid);
69
+ }
70
+ const propName = styleKey;
71
+ if (propName && propObjects) {
72
+ if (propObjects.some((po) => {
73
+ if (mediaKey) {
74
+ const propKey = pseudoInvert[mediaKey];
75
+ return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
76
+ }
77
+ const res = po && propName in po && po[propName] !== null;
78
+ return res;
79
+ })) {
80
+ continue;
81
+ }
82
+ }
83
+ final = name + " " + final;
84
+ }
85
+ }
86
+ return final;
87
+ }
88
+ __name(concatClassName, "concatClassName");
89
+ const pseudoInvert = {
90
+ hover: "hoverStyle",
91
+ focus: "focusStyle",
92
+ press: "pressStyle"
93
+ };
94
+ module.exports = __toCommonJS(concatClassName_exports);
95
+ //# sourceMappingURL=concatClassName.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/concatClassName.ts"],
4
+ "sourcesContent": ["// perf sensitive so doing some weird stuff\n\n// testing caching\n// because we can hit these recent ones a ton of times in common cases\n// we're caching the simple case, this shouldn't be bad on memory either\n// const recently = new Map()\n// setInterval(() => {\n// recently.clear()\n// }, 1000)\n\nexport function concatClassName(_cn: any) {\n // if (arguments.length === 1) {\n // if (recently.has(arguments[0])) {\n // return recently.get(arguments[0])\n // }\n // }\n\n const classNamesOrPropObjects = arguments\n const usedPrefixes: string[] = []\n let final = ''\n\n const len = classNamesOrPropObjects.length\n let propObjects: any = null\n for (let x = len; x >= 0; x--) {\n const cns = classNamesOrPropObjects[x]\n if (!cns) continue\n if (!Array.isArray(cns) && typeof cns !== 'string') {\n // is prop object\n propObjects = propObjects || []\n propObjects.push(cns)\n continue\n }\n const names = Array.isArray(cns) ? cns : cns.split(' ')\n\n const numNames = names.length\n for (let i = numNames - 1; i >= 0; i--) {\n const name = names[i]\n if (!name || name === ' ') continue\n if (name[0] !== '_') {\n // not snack style (todo slightly stronger heuristic)\n final = name + ' ' + final\n continue\n }\n const splitIndex = name.indexOf('-')\n\n if (splitIndex < 1) {\n final = name + ' ' + final\n continue\n }\n const nextChar = name[splitIndex + 1]\n // synced to static-ui constants\n // MEDIA_SEP\n const isMediaQuery = nextChar === '_'\n // PSEUDO_SEP\n const isPsuedoQuery = nextChar === '-'\n\n const styleKey = name.slice(1, splitIndex)\n const mediaKey =\n isMediaQuery || isPsuedoQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null\n const uid = mediaKey ? styleKey + mediaKey : styleKey\n\n if (!isMediaQuery && !isPsuedoQuery) {\n if (usedPrefixes.indexOf(uid) > -1) {\n continue\n }\n usedPrefixes.push(uid)\n }\n\n // overrides for full safety\n const propName = styleKey\n if (propName && propObjects) {\n if (\n propObjects.some((po) => {\n if (mediaKey) {\n const propKey = pseudoInvert[mediaKey]\n return po && po[propKey] && propName in po[propKey] && po[propKey] !== null\n }\n const res = po && propName in po && po[propName] !== null\n return res\n })\n ) {\n continue\n }\n }\n\n final = name + ' ' + final\n }\n }\n\n // if (arguments.length === 1) {\n // recently.set(arguments[0], final)\n // }\n\n return final\n}\n\nconst pseudoInvert = {\n hover: 'hoverStyle',\n focus: 'focusStyle',\n press: 'pressStyle',\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAUO,yBAAyB,KAAU;AAOxC,QAAM,0BAA0B;AAChC,QAAM,eAAyB;AAC/B,MAAI,QAAQ;AAEZ,QAAM,MAAM,wBAAwB;AACpC,MAAI,cAAmB;AACvB,WAAS,IAAI,KAAK,KAAK,GAAG,KAAK;AAC7B,UAAM,MAAM,wBAAwB;AACpC,QAAI,CAAC;AAAK;AACV,QAAI,CAAC,MAAM,QAAQ,QAAQ,OAAO,QAAQ,UAAU;AAElD,oBAAc,eAAe;AAC7B,kBAAY,KAAK;AACjB;AAAA;AAEF,UAAM,QAAQ,MAAM,QAAQ,OAAO,MAAM,IAAI,MAAM;AAEnD,UAAM,WAAW,MAAM;AACvB,aAAS,IAAI,WAAW,GAAG,KAAK,GAAG,KAAK;AACtC,YAAM,OAAO,MAAM;AACnB,UAAI,CAAC,QAAQ,SAAS;AAAK;AAC3B,UAAI,KAAK,OAAO,KAAK;AAEnB,gBAAQ,OAAO,MAAM;AACrB;AAAA;AAEF,YAAM,aAAa,KAAK,QAAQ;AAEhC,UAAI,aAAa,GAAG;AAClB,gBAAQ,OAAO,MAAM;AACrB;AAAA;AAEF,YAAM,WAAW,KAAK,aAAa;AAGnC,YAAM,eAAe,aAAa;AAElC,YAAM,gBAAgB,aAAa;AAEnC,YAAM,WAAW,KAAK,MAAM,GAAG;AAC/B,YAAM,WACJ,gBAAgB,gBAAgB,KAAK,MAAM,aAAa,GAAG,aAAa,KAAK;AAC/E,YAAM,MAAM,WAAW,WAAW,WAAW;AAE7C,UAAI,CAAC,gBAAgB,CAAC,eAAe;AACnC,YAAI,aAAa,QAAQ,OAAO,IAAI;AAClC;AAAA;AAEF,qBAAa,KAAK;AAAA;AAIpB,YAAM,WAAW;AACjB,UAAI,YAAY,aAAa;AAC3B,YACE,YAAY,KAAK,CAAC,OAAO;AACvB,cAAI,UAAU;AACZ,kBAAM,UAAU,aAAa;AAC7B,mBAAO,MAAM,GAAG,YAAY,YAAY,GAAG,YAAY,GAAG,aAAa;AAAA;AAEzE,gBAAM,MAAM,MAAM,YAAY,MAAM,GAAG,cAAc;AACrD,iBAAO;AAAA,YAET;AACA;AAAA;AAAA;AAIJ,cAAQ,OAAO,MAAM;AAAA;AAAA;AAQzB,SAAO;AAAA;AAnFO;AAsFhB,MAAM,eAAe;AAAA,EACnB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,25 @@
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 __reExport = (target, module2, copyDefault, desc) => {
7
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
+ for (let key of __getOwnPropNames(module2))
9
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ }
12
+ return target;
13
+ };
14
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
+ return (module2, temp) => {
16
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
+ };
18
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var src_exports = {};
20
+ __reExport(src_exports, require("./concatClassName"));
21
+ __reExport(src_exports, require("./validStyleProps"));
22
+ __reExport(src_exports, require("./types"));
23
+ __reExport(src_exports, require("./allRules"));
24
+ module.exports = __toCommonJS(src_exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './concatClassName'\nexport * from './validStyleProps'\nexport * from './types'\nexport * from './allRules'\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA,wBAAc;AACd,wBAAc;AACd,wBAAc;AACd,wBAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,38 @@
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 simpleHash_exports = {};
25
+ __export(simpleHash_exports, {
26
+ simpleHash: () => simpleHash
27
+ });
28
+ const simpleHash = /* @__PURE__ */ __name((str) => {
29
+ let hash = 0;
30
+ for (let i = 0; i < str.length; i++) {
31
+ const char = str.charCodeAt(i);
32
+ hash = (hash << 5) - hash + char;
33
+ hash &= hash;
34
+ }
35
+ return new Uint32Array([hash])[0].toString(36);
36
+ }, "simpleHash");
37
+ module.exports = __toCommonJS(simpleHash_exports);
38
+ //# sourceMappingURL=simpleHash.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/simpleHash.ts"],
4
+ "sourcesContent": ["export const simpleHash = (str: string) => {\n let hash = 0\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i)\n hash = (hash << 5) - hash + char\n hash &= hash // Convert to 32bit integer\n }\n return new Uint32Array([hash])[0].toString(36)\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAa,wBAAC,QAAgB;AACzC,MAAI,OAAO;AACX,WAAS,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;AACnC,UAAM,OAAO,IAAI,WAAW;AAC5B,WAAQ,SAAQ,KAAK,OAAO;AAC5B,YAAQ;AAAA;AAEV,SAAO,IAAI,YAAY,CAAC,OAAO,GAAG,SAAS;AAAA,GAPnB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
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 __reExport = (target, module2, copyDefault, desc) => {
7
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
+ for (let key of __getOwnPropNames(module2))
9
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ }
12
+ return target;
13
+ };
14
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
+ return (module2, temp) => {
16
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
+ };
18
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var types_exports = {};
20
+ module.exports = __toCommonJS(types_exports);
21
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/types.ts"],
4
+ "sourcesContent": ["export type StyleObject = {\n property: string\n value: string\n className: string\n identifier: string\n rules: string[]\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,179 @@
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 __export = (target, all) => {
21
+ for (var name in all)
22
+ __defProp(target, name, { get: all[name], enumerable: true });
23
+ };
24
+ var __reExport = (target, module2, copyDefault, desc) => {
25
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
26
+ for (let key of __getOwnPropNames(module2))
27
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
28
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
29
+ }
30
+ return target;
31
+ };
32
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
33
+ return (module2, temp) => {
34
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
35
+ };
36
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
37
+ var validStyleProps_exports = {};
38
+ __export(validStyleProps_exports, {
39
+ stylePropsAll: () => stylePropsAll,
40
+ stylePropsText: () => stylePropsText,
41
+ stylePropsTextOnly: () => stylePropsTextOnly,
42
+ stylePropsTransform: () => stylePropsTransform,
43
+ stylePropsView: () => stylePropsView,
44
+ validStyles: () => validStyles,
45
+ validStylesPseudo: () => validStylesPseudo
46
+ });
47
+ const stylePropsTransform = Object.freeze({
48
+ x: true,
49
+ y: true,
50
+ scale: true,
51
+ perspective: true,
52
+ scaleX: true,
53
+ scaleY: true,
54
+ skewX: true,
55
+ skewY: true,
56
+ matrix: true,
57
+ rotate: true,
58
+ rotateY: true,
59
+ rotateX: true,
60
+ rotateZ: true
61
+ });
62
+ const stylePropsView = Object.freeze(__spreadValues(__spreadValues({
63
+ backfaceVisibility: true,
64
+ backgroundColor: true,
65
+ borderBottomColor: true,
66
+ borderBottomEndRadius: true,
67
+ borderBottomLeftRadius: true,
68
+ borderBottomRightRadius: true,
69
+ borderBottomStartRadius: true,
70
+ borderBottomWidth: true,
71
+ borderColor: true,
72
+ borderEndColor: true,
73
+ borderLeftColor: true,
74
+ borderLeftWidth: true,
75
+ borderRadius: true,
76
+ borderRightColor: true,
77
+ borderRightWidth: true,
78
+ borderStartColor: true,
79
+ borderStyle: true,
80
+ borderTopColor: true,
81
+ borderTopEndRadius: true,
82
+ borderTopLeftRadius: true,
83
+ borderTopRightRadius: true,
84
+ borderTopStartRadius: true,
85
+ borderTopWidth: true,
86
+ borderWidth: true,
87
+ opacity: true,
88
+ transform: true,
89
+ alignContent: true,
90
+ alignItems: true,
91
+ alignSelf: true,
92
+ aspectRatio: true,
93
+ borderEndWidth: true,
94
+ borderStartWidth: true,
95
+ bottom: true,
96
+ display: true,
97
+ end: true,
98
+ flex: true,
99
+ flexBasis: true,
100
+ flexDirection: true,
101
+ flexGrow: true,
102
+ flexShrink: true,
103
+ flexWrap: true,
104
+ height: true,
105
+ justifyContent: true,
106
+ left: true,
107
+ margin: true,
108
+ marginBottom: true,
109
+ marginEnd: true,
110
+ marginHorizontal: true,
111
+ marginLeft: true,
112
+ marginRight: true,
113
+ marginStart: true,
114
+ marginTop: true,
115
+ marginVertical: true,
116
+ maxHeight: true,
117
+ maxWidth: true,
118
+ minHeight: true,
119
+ minWidth: true,
120
+ overflow: true,
121
+ padding: true,
122
+ paddingBottom: true,
123
+ paddingEnd: true,
124
+ paddingHorizontal: true,
125
+ paddingLeft: true,
126
+ paddingRight: true,
127
+ paddingStart: true,
128
+ paddingTop: true,
129
+ paddingVertical: true,
130
+ position: true,
131
+ right: true,
132
+ start: true,
133
+ top: true,
134
+ width: true,
135
+ zIndex: true,
136
+ direction: true,
137
+ shadowColor: true,
138
+ shadowOffset: true,
139
+ shadowOpacity: true,
140
+ shadowRadius: true
141
+ }, stylePropsTransform), process.env.TAMAGUI_TARGET === "web" && {
142
+ userSelect: true,
143
+ cursor: true,
144
+ contain: true,
145
+ pointerEvents: true,
146
+ boxSizing: true
147
+ }));
148
+ const stylePropsTextOnly = Object.freeze(__spreadValues({
149
+ color: true,
150
+ fontFamily: true,
151
+ fontSize: true,
152
+ fontStyle: true,
153
+ fontWeight: true,
154
+ letterSpacing: true,
155
+ lineHeight: true,
156
+ textAlign: true,
157
+ textDecorationLine: true,
158
+ textDecorationStyle: true,
159
+ textDecorationColor: true,
160
+ textShadowColor: true,
161
+ textShadowOffset: true,
162
+ textShadowRadius: true,
163
+ textTransform: true
164
+ }, process.env.TAMAGUI_TARGET === "web" && {
165
+ whiteSpace: true,
166
+ wordWrap: true,
167
+ textOverflow: true,
168
+ textDecorationDistance: true
169
+ }));
170
+ const stylePropsText = Object.freeze(__spreadValues(__spreadValues({}, stylePropsView), stylePropsTextOnly));
171
+ const stylePropsAll = stylePropsText;
172
+ const validStylesPseudo = Object.freeze({
173
+ hoverStyle: true,
174
+ pressStyle: true,
175
+ focusStyle: true
176
+ });
177
+ const validStyles = Object.freeze(__spreadValues(__spreadValues({}, validStylesPseudo), stylePropsView));
178
+ module.exports = __toCommonJS(validStyleProps_exports);
179
+ //# sourceMappingURL=validStyleProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/validStyleProps.ts"],
4
+ "sourcesContent": ["// flat transform props\nexport const stylePropsTransform = Object.freeze({\n x: true,\n y: true,\n scale: true,\n perspective: true,\n scaleX: true,\n scaleY: true,\n skewX: true,\n skewY: true,\n matrix: true,\n rotate: true,\n rotateY: true,\n rotateX: true,\n rotateZ: true,\n})\n\nexport const stylePropsView = Object.freeze({\n backfaceVisibility: true,\n backgroundColor: true,\n borderBottomColor: true,\n borderBottomEndRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderBottomStartRadius: true,\n borderBottomWidth: true,\n borderColor: true,\n borderEndColor: true,\n borderLeftColor: true,\n borderLeftWidth: true,\n borderRadius: true,\n borderRightColor: true,\n borderRightWidth: true,\n borderStartColor: true,\n borderStyle: true,\n borderTopColor: true,\n borderTopEndRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderTopStartRadius: true,\n borderTopWidth: true,\n borderWidth: true,\n opacity: true,\n transform: true,\n alignContent: true,\n alignItems: true,\n alignSelf: true,\n aspectRatio: true,\n borderEndWidth: true,\n borderStartWidth: true,\n bottom: true,\n display: true,\n end: true,\n flex: true,\n flexBasis: true,\n flexDirection: true,\n flexGrow: true,\n flexShrink: true,\n flexWrap: true,\n height: true,\n justifyContent: true,\n left: true,\n margin: true,\n marginBottom: true,\n marginEnd: true,\n marginHorizontal: true,\n marginLeft: true,\n marginRight: true,\n marginStart: true,\n marginTop: true,\n marginVertical: true,\n maxHeight: true,\n maxWidth: true,\n minHeight: true,\n minWidth: true,\n overflow: true,\n padding: true,\n paddingBottom: true,\n paddingEnd: true,\n paddingHorizontal: true,\n paddingLeft: true,\n paddingRight: true,\n paddingStart: true,\n paddingTop: true,\n paddingVertical: true,\n position: true,\n right: true,\n start: true,\n top: true,\n width: true,\n zIndex: true,\n direction: true,\n shadowColor: true,\n shadowOffset: true,\n shadowOpacity: true,\n shadowRadius: true,\n ...stylePropsTransform,\n\n // allow a few web only ones\n ...(process.env.TAMAGUI_TARGET === 'web' && {\n userSelect: true,\n cursor: true,\n contain: true,\n pointerEvents: true,\n boxSizing: true,\n }),\n})\n\nexport const stylePropsTextOnly = Object.freeze({\n color: true,\n fontFamily: true,\n fontSize: true,\n fontStyle: true,\n fontWeight: true,\n letterSpacing: true,\n lineHeight: true,\n textAlign: true,\n textDecorationLine: true,\n textDecorationStyle: true,\n textDecorationColor: true,\n textShadowColor: true,\n textShadowOffset: true,\n textShadowRadius: true,\n textTransform: true,\n\n // allow a few web only ones\n // TODO\n ...(process.env.TAMAGUI_TARGET === 'web' && {\n whiteSpace: true,\n wordWrap: true,\n textOverflow: true,\n textDecorationDistance: true,\n }),\n})\n\nexport const stylePropsText = Object.freeze({\n ...stylePropsView,\n ...stylePropsTextOnly,\n})\n\nexport const stylePropsAll = stylePropsText\n\nexport const validStylesPseudo = Object.freeze({\n hoverStyle: true,\n pressStyle: true,\n focusStyle: true,\n})\n\nexport const validStyles = Object.freeze({\n ...validStylesPseudo,\n ...stylePropsView,\n})\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA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EACZ,YAAY;AAAA,EACZ,YAAY;AAAA;AAGP,MAAM,cAAc,OAAO,OAAO,kCACpC,oBACA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,9 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ const AllRules = /* @__PURE__ */ new Set();
4
+ const getStyleRules = /* @__PURE__ */ __name(() => AllRules, "getStyleRules");
5
+ export {
6
+ AllRules,
7
+ getStyleRules
8
+ };
9
+ //# sourceMappingURL=allRules.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/allRules.ts"],
4
+ "sourcesContent": ["// ssr only\n\nexport const AllRules = new Set()\n\nexport const getStyleRules = () => AllRules\n"],
5
+ "mappings": ";;AAEO,MAAM,WAAW,oBAAI;AAErB,MAAM,gBAAgB,6BAAM,UAAN;",
6
+ "names": []
7
+ }
@@ -0,0 +1,72 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ function concatClassName(_cn) {
4
+ const classNamesOrPropObjects = arguments;
5
+ const usedPrefixes = [];
6
+ let final = "";
7
+ const len = classNamesOrPropObjects.length;
8
+ let propObjects = null;
9
+ for (let x = len; x >= 0; x--) {
10
+ const cns = classNamesOrPropObjects[x];
11
+ if (!cns)
12
+ continue;
13
+ if (!Array.isArray(cns) && typeof cns !== "string") {
14
+ propObjects = propObjects || [];
15
+ propObjects.push(cns);
16
+ continue;
17
+ }
18
+ const names = Array.isArray(cns) ? cns : cns.split(" ");
19
+ const numNames = names.length;
20
+ for (let i = numNames - 1; i >= 0; i--) {
21
+ const name = names[i];
22
+ if (!name || name === " ")
23
+ continue;
24
+ if (name[0] !== "_") {
25
+ final = name + " " + final;
26
+ continue;
27
+ }
28
+ const splitIndex = name.indexOf("-");
29
+ if (splitIndex < 1) {
30
+ final = name + " " + final;
31
+ continue;
32
+ }
33
+ const nextChar = name[splitIndex + 1];
34
+ const isMediaQuery = nextChar === "_";
35
+ const isPsuedoQuery = nextChar === "-";
36
+ const styleKey = name.slice(1, splitIndex);
37
+ const mediaKey = isMediaQuery || isPsuedoQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null;
38
+ const uid = mediaKey ? styleKey + mediaKey : styleKey;
39
+ if (!isMediaQuery && !isPsuedoQuery) {
40
+ if (usedPrefixes.indexOf(uid) > -1) {
41
+ continue;
42
+ }
43
+ usedPrefixes.push(uid);
44
+ }
45
+ const propName = styleKey;
46
+ if (propName && propObjects) {
47
+ if (propObjects.some((po) => {
48
+ if (mediaKey) {
49
+ const propKey = pseudoInvert[mediaKey];
50
+ return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
51
+ }
52
+ const res = po && propName in po && po[propName] !== null;
53
+ return res;
54
+ })) {
55
+ continue;
56
+ }
57
+ }
58
+ final = name + " " + final;
59
+ }
60
+ }
61
+ return final;
62
+ }
63
+ __name(concatClassName, "concatClassName");
64
+ const pseudoInvert = {
65
+ hover: "hoverStyle",
66
+ focus: "focusStyle",
67
+ press: "pressStyle"
68
+ };
69
+ export {
70
+ concatClassName
71
+ };
72
+ //# sourceMappingURL=concatClassName.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/concatClassName.ts"],
4
+ "sourcesContent": ["// perf sensitive so doing some weird stuff\n\n// testing caching\n// because we can hit these recent ones a ton of times in common cases\n// we're caching the simple case, this shouldn't be bad on memory either\n// const recently = new Map()\n// setInterval(() => {\n// recently.clear()\n// }, 1000)\n\nexport function concatClassName(_cn: any) {\n // if (arguments.length === 1) {\n // if (recently.has(arguments[0])) {\n // return recently.get(arguments[0])\n // }\n // }\n\n const classNamesOrPropObjects = arguments\n const usedPrefixes: string[] = []\n let final = ''\n\n const len = classNamesOrPropObjects.length\n let propObjects: any = null\n for (let x = len; x >= 0; x--) {\n const cns = classNamesOrPropObjects[x]\n if (!cns) continue\n if (!Array.isArray(cns) && typeof cns !== 'string') {\n // is prop object\n propObjects = propObjects || []\n propObjects.push(cns)\n continue\n }\n const names = Array.isArray(cns) ? cns : cns.split(' ')\n\n const numNames = names.length\n for (let i = numNames - 1; i >= 0; i--) {\n const name = names[i]\n if (!name || name === ' ') continue\n if (name[0] !== '_') {\n // not snack style (todo slightly stronger heuristic)\n final = name + ' ' + final\n continue\n }\n const splitIndex = name.indexOf('-')\n\n if (splitIndex < 1) {\n final = name + ' ' + final\n continue\n }\n const nextChar = name[splitIndex + 1]\n // synced to static-ui constants\n // MEDIA_SEP\n const isMediaQuery = nextChar === '_'\n // PSEUDO_SEP\n const isPsuedoQuery = nextChar === '-'\n\n const styleKey = name.slice(1, splitIndex)\n const mediaKey =\n isMediaQuery || isPsuedoQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null\n const uid = mediaKey ? styleKey + mediaKey : styleKey\n\n if (!isMediaQuery && !isPsuedoQuery) {\n if (usedPrefixes.indexOf(uid) > -1) {\n continue\n }\n usedPrefixes.push(uid)\n }\n\n // overrides for full safety\n const propName = styleKey\n if (propName && propObjects) {\n if (\n propObjects.some((po) => {\n if (mediaKey) {\n const propKey = pseudoInvert[mediaKey]\n return po && po[propKey] && propName in po[propKey] && po[propKey] !== null\n }\n const res = po && propName in po && po[propName] !== null\n return res\n })\n ) {\n continue\n }\n }\n\n final = name + ' ' + final\n }\n }\n\n // if (arguments.length === 1) {\n // recently.set(arguments[0], final)\n // }\n\n return final\n}\n\nconst pseudoInvert = {\n hover: 'hoverStyle',\n focus: 'focusStyle',\n press: 'pressStyle',\n}\n"],
5
+ "mappings": ";;AAUO,yBAAyB,KAAU;AAOxC,QAAM,0BAA0B;AAChC,QAAM,eAAyB;AAC/B,MAAI,QAAQ;AAEZ,QAAM,MAAM,wBAAwB;AACpC,MAAI,cAAmB;AACvB,WAAS,IAAI,KAAK,KAAK,GAAG,KAAK;AAC7B,UAAM,MAAM,wBAAwB;AACpC,QAAI,CAAC;AAAK;AACV,QAAI,CAAC,MAAM,QAAQ,Q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 +1,5 @@
1
1
  export * from "./concatClassName";
2
2
  export * from "./validStyleProps";
3
- export * from "./uniqueStyleKeys";
4
- export * from "./getNiceKey";
5
- export * from "./getStylesAtomic";
6
3
  export * from "./types";
4
+ export * from "./allRules";
7
5
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './concatClassName'\nexport * from './validStyleProps'\nexport * from './types'\nexport * from './allRules'\n"],
5
+ "mappings": "AAAA;AACA;AACA;AACA;",
6
+ "names": []
7
+ }
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/simpleHash.ts"],
3
+ "sources": ["../../src/simpleHash.ts"],
4
4
  "sourcesContent": ["export const simpleHash = (str: string) => {\n let hash = 0\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i)\n hash = (hash << 5) - hash + char\n hash &= hash // Convert to 32bit integer\n }\n return new Uint32Array([hash])[0].toString(36)\n}\n"],
5
5
  "mappings": ";;AAAO,MAAM,aAAa,wBAAC,QAAgB;AACzC,MAAI,OAAO;AACX,WAAS,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;AACnC,UAAM,OAAO,IAAI,WAAW;AAC5B,WAAQ,SAAQ,KAAK,OAAO;AAC5B,YAAQ;AAAA;AAEV,SAAO,IAAI,YAAY,CAAC,OAAO,GAAG,SAAS;AAAA,GAPnB;",
6
6
  "names": []
File without changes
File without changes