@tamagui/helpers 1.138.0 → 1.138.1
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/concatClassName.js +69 -0
- package/dist/cjs/concatClassName.js.map +6 -0
- package/dist/cjs/concatClassName.native.js +65 -0
- package/dist/cjs/concatClassName.native.js.map +6 -0
- package/dist/esm/concatClassName.js +53 -0
- package/dist/esm/concatClassName.js.map +6 -0
- package/dist/esm/concatClassName.native.js +48 -0
- package/dist/esm/concatClassName.native.js.map +6 -0
- package/package.json +4 -4
- package/types/concatClassName.d.ts.map +1 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var concatClassName_exports = {};
|
|
16
|
+
__export(concatClassName_exports, {
|
|
17
|
+
concatClassName: () => concatClassName
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(concatClassName_exports);
|
|
20
|
+
function concatClassName(_cn) {
|
|
21
|
+
const args = arguments, usedPrefixes = [];
|
|
22
|
+
let final = "";
|
|
23
|
+
const len = args.length;
|
|
24
|
+
let propObjects = null;
|
|
25
|
+
for (let x = len; x >= 0; x--) {
|
|
26
|
+
const cns = args[x];
|
|
27
|
+
if (!cns) continue;
|
|
28
|
+
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
29
|
+
propObjects = propObjects || [], propObjects.push(cns);
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length;
|
|
33
|
+
for (let i = numNames - 1; i >= 0; i--) {
|
|
34
|
+
const name = names[i];
|
|
35
|
+
if (!name || name === " ") continue;
|
|
36
|
+
if (name[0] !== "_") {
|
|
37
|
+
final = name + " " + final;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
const splitIndex = name.indexOf("-");
|
|
41
|
+
if (splitIndex < 1) {
|
|
42
|
+
final = name + " " + final;
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
const isMediaQuery = name[splitIndex + 1] === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
46
|
+
if (usedPrefixes.indexOf(uid) > -1)
|
|
47
|
+
continue;
|
|
48
|
+
usedPrefixes.push(uid);
|
|
49
|
+
const propName = styleKey;
|
|
50
|
+
propName && propObjects && propObjects.some((po) => {
|
|
51
|
+
if (mediaKey) {
|
|
52
|
+
const propKey = pseudoInvert[mediaKey];
|
|
53
|
+
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
54
|
+
}
|
|
55
|
+
return po && propName in po && po[propName] !== null;
|
|
56
|
+
}) || (final = name + " " + final);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return final;
|
|
60
|
+
}
|
|
61
|
+
const pseudoInvert = {
|
|
62
|
+
hover: "hoverStyle",
|
|
63
|
+
focus: "focusStyle",
|
|
64
|
+
press: "pressStyle",
|
|
65
|
+
focusVisible: "focusVisibleStyle",
|
|
66
|
+
focusWithin: "focusWithinStyle",
|
|
67
|
+
disabled: "disabledStyle"
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=concatClassName.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/concatClassName.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,SAAS,gBAAgB,KAAqD;AACnF,QAAM,OAAO,WACP,eAAyB,CAAC;AAChC,MAAI,QAAQ;AAEZ,QAAM,MAAM,KAAK;AACjB,MAAI,cAAmB;AACvB,WAAS,IAAI,KAAK,KAAK,GAAG,KAAK;AAC7B,UAAM,MAAM,KAAK,CAAC;AAElB,QAAI,CAAC,IAAK;AACV,QAAI,CAAC,MAAM,QAAQ,GAAG,KAAK,OAAO,OAAQ,UAAU;AAElD,oBAAc,eAAe,CAAC,GAC9B,YAAY,KAAK,GAAG;AACpB;AAAA,IACF;AAEA,UAAM,QAAQ,MAAM,QAAQ,GAAG,IAAI,MAAM,IAAI,MAAM,GAAG,GAChD,WAAW,MAAM;AACvB,aAAS,IAAI,WAAW,GAAG,KAAK,GAAG,KAAK;AACtC,YAAM,OAAO,MAAM,CAAC;AAEpB,UAAI,CAAC,QAAQ,SAAS,IAAK;AAC3B,UAAI,KAAK,CAAC,MAAM,KAAK;AAEnB,gBAAQ,OAAO,MAAM;AACrB;AAAA,MACF;AAEA,YAAM,aAAa,KAAK,QAAQ,GAAG;AACnC,UAAI,aAAa,GAAG;AAClB,gBAAQ,OAAO,MAAM;AAErB;AAAA,MACF;AAKA,YAAM,eAHW,KAAK,aAAa,CAAC,MAGF,KAK5B,WAAW,KAAK,MAAM,GAAG,KAAK,YAAY,GAAG,CAAC,GAE9C,WAAW,eAAe,KAAK,MAAM,aAAa,GAAG,aAAa,CAAC,IAAI,MACvE,MAAM,WAAW,WAAW,WAAW;AAG7C,UAAI,aAAa,QAAQ,GAAG,IAAI;AAE9B;AAEF,mBAAa,KAAK,GAAG;AAGrB,YAAM,WAAW;AACjB,MAAI,YAAY,eAEZ,YAAY,KAAK,CAAC,OAAO;AACvB,YAAI,UAAU;AACZ,gBAAM,UAAU,aAAa,QAAQ;AACrC,iBAAO,MAAM,GAAG,OAAO,KAAK,YAAY,GAAG,OAAO,KAAK,GAAG,OAAO,MAAM;AAAA,QACzE;AAEA,eADY,MAAM,YAAY,MAAM,GAAG,QAAQ,MAAM;AAAA,MAEvD,CAAC,MAOL,QAAQ,OAAO,MAAM;AAAA,IACvB;AAAA,EACF;AAEA,SAAO;AACT;AAEA,MAAM,eAAe;AAAA,EACnB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,cAAc;AAAA,EACd,aAAa;AAAA,EACb,UAAU;AACZ;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var concatClassName_exports = {};
|
|
17
|
+
__export(concatClassName_exports, {
|
|
18
|
+
concatClassName: () => concatClassName
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(concatClassName_exports);
|
|
21
|
+
function concatClassName(_cn) {
|
|
22
|
+
for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
|
|
23
|
+
var _loop = function(i2) {
|
|
24
|
+
var name = names[i2];
|
|
25
|
+
if (!name || name === " ") return "continue";
|
|
26
|
+
if (name[0] !== "_")
|
|
27
|
+
return final = name + " " + final, "continue";
|
|
28
|
+
var splitIndex = name.indexOf("-");
|
|
29
|
+
if (splitIndex < 1)
|
|
30
|
+
return final = name + " " + final, "continue";
|
|
31
|
+
var nextChar = name[splitIndex + 1], isMediaQuery = nextChar === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
32
|
+
if (usedPrefixes.indexOf(uid) > -1)
|
|
33
|
+
return "continue";
|
|
34
|
+
usedPrefixes.push(uid);
|
|
35
|
+
var propName = styleKey;
|
|
36
|
+
if (propName && propObjects && propObjects.some(function(po) {
|
|
37
|
+
if (mediaKey) {
|
|
38
|
+
var propKey = pseudoInvert[mediaKey];
|
|
39
|
+
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
40
|
+
}
|
|
41
|
+
var res = po && propName in po && po[propName] !== null;
|
|
42
|
+
return res;
|
|
43
|
+
}))
|
|
44
|
+
return "continue";
|
|
45
|
+
final = name + " " + final;
|
|
46
|
+
}, cns = args[x];
|
|
47
|
+
if (cns) {
|
|
48
|
+
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
49
|
+
propObjects = propObjects || [], propObjects.push(cns);
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop(i);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return final;
|
|
56
|
+
}
|
|
57
|
+
var pseudoInvert = {
|
|
58
|
+
hover: "hoverStyle",
|
|
59
|
+
focus: "focusStyle",
|
|
60
|
+
press: "pressStyle",
|
|
61
|
+
focusVisible: "focusVisibleStyle",
|
|
62
|
+
focusWithin: "focusWithinStyle",
|
|
63
|
+
disabled: "disabledStyle"
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=concatClassName.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/concatClassName.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMW,SAAS,gBAAgB,KAAK;AAMrC,WALI,OAAO,WACP,eAAe,CAAC,GAChB,QAAQ,IACR,MAAM,KAAK,QACX,cAAc,MACV,IAAI,KAAK,KAAK,GAAG,KAAI;AACzB,QAAI,QAAQ,SAASA,IAAG;AACpB,UAAI,OAAO,MAAMA,EAAC;AAClB,UAAI,CAAC,QAAQ,SAAS,IAAK,QAAO;AAClC,UAAI,KAAK,CAAC,MAAM;AAEZ,uBAAQ,OAAO,MAAM,OACd;AAEX,UAAI,aAAa,KAAK,QAAQ,GAAG;AACjC,UAAI,aAAa;AACb,uBAAQ,OAAO,MAAM,OAEd;AAEX,UAAI,WAAW,KAAK,aAAa,CAAC,GAG9B,eAAe,aAAa,KAK5B,WAAW,KAAK,MAAM,GAAG,KAAK,YAAY,GAAG,CAAC,GAE9C,WAAW,eAAe,KAAK,MAAM,aAAa,GAAG,aAAa,CAAC,IAAI,MACvE,MAAM,WAAW,WAAW,WAAW;AAE3C,UAAI,aAAa,QAAQ,GAAG,IAAI;AAE5B,eAAO;AAEX,mBAAa,KAAK,GAAG;AAErB,UAAI,WAAW;AACf,UAAI,YAAY,eACR,YAAY,KAAK,SAAS,IAAI;AAC9B,YAAI,UAAU;AACV,cAAI,UAAU,aAAa,QAAQ;AACnC,iBAAO,MAAM,GAAG,OAAO,KAAK,YAAY,GAAG,OAAO,KAAK,GAAG,OAAO,MAAM;AAAA,QAC3E;AACA,YAAI,MAAM,MAAM,YAAY,MAAM,GAAG,QAAQ,MAAM;AACnD,eAAO;AAAA,MACX,CAAC;AAEG,eAAO;AAGf,cAAQ,OAAO,MAAM;AAAA,IACzB,GACI,MAAM,KAAK,CAAC;AAChB,QAAK,KACL;AAAA,UAAI,CAAC,MAAM,QAAQ,GAAG,KAAK,OAAO,OAAQ,UAAU;AAEhD,sBAAc,eAAe,CAAC,GAC9B,YAAY,KAAK,GAAG;AACpB;AAAA,MACJ;AAGA,eAFI,QAAQ,MAAM,QAAQ,GAAG,IAAI,MAAM,IAAI,MAAM,GAAG,GAChD,WAAW,MAAM,QACb,IAAI,WAAW,GAAG,KAAK,GAAG,IAAI,OAAM,CAAC;AAAA;AAAA,EACjD;AACA,SAAO;AACX;AACA,IAAI,eAAe;AAAA,EACf,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,cAAc;AAAA,EACd,aAAa;AAAA,EACb,UAAU;AACd;",
|
|
5
|
+
"names": ["i"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
function concatClassName(_cn) {
|
|
2
|
+
const args = arguments, usedPrefixes = [];
|
|
3
|
+
let final = "";
|
|
4
|
+
const len = args.length;
|
|
5
|
+
let propObjects = null;
|
|
6
|
+
for (let x = len; x >= 0; x--) {
|
|
7
|
+
const cns = args[x];
|
|
8
|
+
if (!cns) continue;
|
|
9
|
+
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
10
|
+
propObjects = propObjects || [], propObjects.push(cns);
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
const names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length;
|
|
14
|
+
for (let i = numNames - 1; i >= 0; i--) {
|
|
15
|
+
const name = names[i];
|
|
16
|
+
if (!name || name === " ") continue;
|
|
17
|
+
if (name[0] !== "_") {
|
|
18
|
+
final = name + " " + final;
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
const splitIndex = name.indexOf("-");
|
|
22
|
+
if (splitIndex < 1) {
|
|
23
|
+
final = name + " " + final;
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
const isMediaQuery = name[splitIndex + 1] === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
27
|
+
if (usedPrefixes.indexOf(uid) > -1)
|
|
28
|
+
continue;
|
|
29
|
+
usedPrefixes.push(uid);
|
|
30
|
+
const propName = styleKey;
|
|
31
|
+
propName && propObjects && propObjects.some((po) => {
|
|
32
|
+
if (mediaKey) {
|
|
33
|
+
const propKey = pseudoInvert[mediaKey];
|
|
34
|
+
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
35
|
+
}
|
|
36
|
+
return po && propName in po && po[propName] !== null;
|
|
37
|
+
}) || (final = name + " " + final);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return final;
|
|
41
|
+
}
|
|
42
|
+
const pseudoInvert = {
|
|
43
|
+
hover: "hoverStyle",
|
|
44
|
+
focus: "focusStyle",
|
|
45
|
+
press: "pressStyle",
|
|
46
|
+
focusVisible: "focusVisibleStyle",
|
|
47
|
+
focusWithin: "focusWithinStyle",
|
|
48
|
+
disabled: "disabledStyle"
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
concatClassName
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=concatClassName.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/concatClassName.ts"],
|
|
4
|
+
"mappings": "AAUO,SAAS,gBAAgB,KAAqD;AACnF,QAAM,OAAO,WACP,eAAyB,CAAC;AAChC,MAAI,QAAQ;AAEZ,QAAM,MAAM,KAAK;AACjB,MAAI,cAAmB;AACvB,WAAS,IAAI,KAAK,KAAK,GAAG,KAAK;AAC7B,UAAM,MAAM,KAAK,CAAC;AAElB,QAAI,CAAC,IAAK;AACV,QAAI,CAAC,MAAM,QAAQ,GAAG,KAAK,OAAO,OAAQ,UAAU;AAElD,oBAAc,eAAe,CAAC,GAC9B,YAAY,KAAK,GAAG;AACpB;AAAA,IACF;AAEA,UAAM,QAAQ,MAAM,QAAQ,GAAG,IAAI,MAAM,IAAI,MAAM,GAAG,GAChD,WAAW,MAAM;AACvB,aAAS,IAAI,WAAW,GAAG,KAAK,GAAG,KAAK;AACtC,YAAM,OAAO,MAAM,CAAC;AAEpB,UAAI,CAAC,QAAQ,SAAS,IAAK;AAC3B,UAAI,KAAK,CAAC,MAAM,KAAK;AAEnB,gBAAQ,OAAO,MAAM;AACrB;AAAA,MACF;AAEA,YAAM,aAAa,KAAK,QAAQ,GAAG;AACnC,UAAI,aAAa,GAAG;AAClB,gBAAQ,OAAO,MAAM;AAErB;AAAA,MACF;AAKA,YAAM,eAHW,KAAK,aAAa,CAAC,MAGF,KAK5B,WAAW,KAAK,MAAM,GAAG,KAAK,YAAY,GAAG,CAAC,GAE9C,WAAW,eAAe,KAAK,MAAM,aAAa,GAAG,aAAa,CAAC,IAAI,MACvE,MAAM,WAAW,WAAW,WAAW;AAG7C,UAAI,aAAa,QAAQ,GAAG,IAAI;AAE9B;AAEF,mBAAa,KAAK,GAAG;AAGrB,YAAM,WAAW;AACjB,MAAI,YAAY,eAEZ,YAAY,KAAK,CAAC,OAAO;AACvB,YAAI,UAAU;AACZ,gBAAM,UAAU,aAAa,QAAQ;AACrC,iBAAO,MAAM,GAAG,OAAO,KAAK,YAAY,GAAG,OAAO,KAAK,GAAG,OAAO,MAAM;AAAA,QACzE;AAEA,eADY,MAAM,YAAY,MAAM,GAAG,QAAQ,MAAM;AAAA,MAEvD,CAAC,MAOL,QAAQ,OAAO,MAAM;AAAA,IACvB;AAAA,EACF;AAEA,SAAO;AACT;AAEA,MAAM,eAAe;AAAA,EACnB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,cAAc;AAAA,EACd,aAAa;AAAA,EACb,UAAU;AACZ;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function concatClassName(_cn) {
|
|
2
|
+
for (var args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--) {
|
|
3
|
+
var _loop = function(i2) {
|
|
4
|
+
var name = names[i2];
|
|
5
|
+
if (!name || name === " ") return "continue";
|
|
6
|
+
if (name[0] !== "_")
|
|
7
|
+
return final = name + " " + final, "continue";
|
|
8
|
+
var splitIndex = name.indexOf("-");
|
|
9
|
+
if (splitIndex < 1)
|
|
10
|
+
return final = name + " " + final, "continue";
|
|
11
|
+
var nextChar = name[splitIndex + 1], isMediaQuery = nextChar === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
12
|
+
if (usedPrefixes.indexOf(uid) > -1)
|
|
13
|
+
return "continue";
|
|
14
|
+
usedPrefixes.push(uid);
|
|
15
|
+
var propName = styleKey;
|
|
16
|
+
if (propName && propObjects && propObjects.some(function(po) {
|
|
17
|
+
if (mediaKey) {
|
|
18
|
+
var propKey = pseudoInvert[mediaKey];
|
|
19
|
+
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
20
|
+
}
|
|
21
|
+
var res = po && propName in po && po[propName] !== null;
|
|
22
|
+
return res;
|
|
23
|
+
}))
|
|
24
|
+
return "continue";
|
|
25
|
+
final = name + " " + final;
|
|
26
|
+
}, cns = args[x];
|
|
27
|
+
if (cns) {
|
|
28
|
+
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
29
|
+
propObjects = propObjects || [], propObjects.push(cns);
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--) _loop(i);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return final;
|
|
36
|
+
}
|
|
37
|
+
var pseudoInvert = {
|
|
38
|
+
hover: "hoverStyle",
|
|
39
|
+
focus: "focusStyle",
|
|
40
|
+
press: "pressStyle",
|
|
41
|
+
focusVisible: "focusVisibleStyle",
|
|
42
|
+
focusWithin: "focusWithinStyle",
|
|
43
|
+
disabled: "disabledStyle"
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
concatClassName
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=concatClassName.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/concatClassName.ts"],
|
|
4
|
+
"mappings": "AAMW,SAAS,gBAAgB,KAAK;AAMrC,WALI,OAAO,WACP,eAAe,CAAC,GAChB,QAAQ,IACR,MAAM,KAAK,QACX,cAAc,MACV,IAAI,KAAK,KAAK,GAAG,KAAI;AACzB,QAAI,QAAQ,SAASA,IAAG;AACpB,UAAI,OAAO,MAAMA,EAAC;AAClB,UAAI,CAAC,QAAQ,SAAS,IAAK,QAAO;AAClC,UAAI,KAAK,CAAC,MAAM;AAEZ,uBAAQ,OAAO,MAAM,OACd;AAEX,UAAI,aAAa,KAAK,QAAQ,GAAG;AACjC,UAAI,aAAa;AACb,uBAAQ,OAAO,MAAM,OAEd;AAEX,UAAI,WAAW,KAAK,aAAa,CAAC,GAG9B,eAAe,aAAa,KAK5B,WAAW,KAAK,MAAM,GAAG,KAAK,YAAY,GAAG,CAAC,GAE9C,WAAW,eAAe,KAAK,MAAM,aAAa,GAAG,aAAa,CAAC,IAAI,MACvE,MAAM,WAAW,WAAW,WAAW;AAE3C,UAAI,aAAa,QAAQ,GAAG,IAAI;AAE5B,eAAO;AAEX,mBAAa,KAAK,GAAG;AAErB,UAAI,WAAW;AACf,UAAI,YAAY,eACR,YAAY,KAAK,SAAS,IAAI;AAC9B,YAAI,UAAU;AACV,cAAI,UAAU,aAAa,QAAQ;AACnC,iBAAO,MAAM,GAAG,OAAO,KAAK,YAAY,GAAG,OAAO,KAAK,GAAG,OAAO,MAAM;AAAA,QAC3E;AACA,YAAI,MAAM,MAAM,YAAY,MAAM,GAAG,QAAQ,MAAM;AACnD,eAAO;AAAA,MACX,CAAC;AAEG,eAAO;AAGf,cAAQ,OAAO,MAAM;AAAA,IACzB,GACI,MAAM,KAAK,CAAC;AAChB,QAAK,KACL;AAAA,UAAI,CAAC,MAAM,QAAQ,GAAG,KAAK,OAAO,OAAQ,UAAU;AAEhD,sBAAc,eAAe,CAAC,GAC9B,YAAY,KAAK,GAAG;AACpB;AAAA,MACJ;AAGA,eAFI,QAAQ,MAAM,QAAQ,GAAG,IAAI,MAAM,IAAI,MAAM,GAAG,GAChD,WAAW,MAAM,QACb,IAAI,WAAW,GAAG,KAAK,GAAG,IAAI,OAAM,CAAC;AAAA;AAAA,EACjD;AACA,SAAO;AACX;AACA,IAAI,eAAe;AAAA,EACf,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,cAAc;AAAA,EACd,aAAa;AAAA,EACb,UAAU;AACd;",
|
|
5
|
+
"names": ["i"]
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers",
|
|
3
|
-
"version": "1.138.
|
|
3
|
+
"version": "1.138.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"clean:build": "tamagui-build clean:build"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@tamagui/constants": "1.138.
|
|
24
|
-
"@tamagui/simple-hash": "1.138.
|
|
23
|
+
"@tamagui/constants": "1.138.1",
|
|
24
|
+
"@tamagui/simple-hash": "1.138.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tamagui/build": "1.138.
|
|
27
|
+
"@tamagui/build": "1.138.1",
|
|
28
28
|
"react": "*"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concatClassName.d.ts","sourceRoot":"","sources":["../src/concatClassName.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,wBAAgB,eAAe,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAA"}
|