@tamagui/web 1.125.27 → 1.125.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/dist/cjs/helpers/getExpandedShorthands.cjs +5 -0
- package/dist/cjs/helpers/getExpandedShorthands.js +5 -0
- package/dist/cjs/helpers/getExpandedShorthands.js.map +1 -1
- package/dist/cjs/helpers/getExpandedShorthands.native.js +6 -0
- package/dist/cjs/helpers/getExpandedShorthands.native.js.map +2 -2
- package/dist/esm/helpers/getExpandedShorthands.js +5 -0
- package/dist/esm/helpers/getExpandedShorthands.js.map +1 -1
- package/dist/esm/helpers/getExpandedShorthands.mjs +5 -1
- package/dist/esm/helpers/getExpandedShorthands.mjs.map +1 -1
- package/dist/esm/helpers/getExpandedShorthands.native.js +6 -1
- package/dist/esm/helpers/getExpandedShorthands.native.js.map +1 -1
- package/package.json +11 -11
- package/src/helpers/getExpandedShorthands.ts +5 -0
- package/types/helpers/getExpandedShorthands.d.ts +1 -0
- package/types/helpers/getExpandedShorthands.d.ts.map +1 -1
|
@@ -20,6 +20,7 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
20
20
|
}), mod);
|
|
21
21
|
var getExpandedShorthands_exports = {};
|
|
22
22
|
__export(getExpandedShorthands_exports, {
|
|
23
|
+
getExpandedShorthand: () => getExpandedShorthand,
|
|
23
24
|
getExpandedShorthands: () => getExpandedShorthands
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(getExpandedShorthands_exports);
|
|
@@ -30,4 +31,8 @@ function getExpandedShorthands(props) {
|
|
|
30
31
|
const res = {};
|
|
31
32
|
for (const key in props) res[shorthands[key] || key] = props[key];
|
|
32
33
|
return res;
|
|
34
|
+
}
|
|
35
|
+
function getExpandedShorthand(propKey, props) {
|
|
36
|
+
const shorthands = (0, import_config.getConfig)().inverseShorthands;
|
|
37
|
+
return props[propKey] ?? props[shorthands[propKey]];
|
|
33
38
|
}
|
|
@@ -14,6 +14,7 @@ var __export = (target, all) => {
|
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
15
|
var getExpandedShorthands_exports = {};
|
|
16
16
|
__export(getExpandedShorthands_exports, {
|
|
17
|
+
getExpandedShorthand: () => getExpandedShorthand,
|
|
17
18
|
getExpandedShorthands: () => getExpandedShorthands
|
|
18
19
|
});
|
|
19
20
|
module.exports = __toCommonJS(getExpandedShorthands_exports);
|
|
@@ -26,4 +27,8 @@ function getExpandedShorthands(props) {
|
|
|
26
27
|
res[shorthands[key] || key] = props[key];
|
|
27
28
|
return res;
|
|
28
29
|
}
|
|
30
|
+
function getExpandedShorthand(propKey, props) {
|
|
31
|
+
const shorthands = (0, import_config.getConfig)().inverseShorthands;
|
|
32
|
+
return props[propKey] ?? props[shorthands[propKey]];
|
|
33
|
+
}
|
|
29
34
|
//# sourceMappingURL=getExpandedShorthands.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/getExpandedShorthands.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA0B;AAMnB,SAAS,sBACd,OAC2B;AAC3B,QAAM,iBAAa,yBAAU,EAAE;AAC/B,MAAI,CAAC,WAAY,QAAO;AACxB,QAAM,MAAM,CAAC;AACb,aAAW,OAAO;AAEhB,QAAI,WAAW,GAAG,KAAK,GAAG,IAAI,MAAM,GAAG;AAEzC,SAAO;AACT;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA0B;AAMnB,SAAS,sBACd,OAC2B;AAC3B,QAAM,iBAAa,yBAAU,EAAE;AAC/B,MAAI,CAAC,WAAY,QAAO;AACxB,QAAM,MAAM,CAAC;AACb,aAAW,OAAO;AAEhB,QAAI,WAAW,GAAG,KAAK,GAAG,IAAI,MAAM,GAAG;AAEzC,SAAO;AACT;AAEO,SAAS,qBAAqB,SAAiB,OAAe;AACnE,QAAM,iBAAa,yBAAU,EAAE;AAC/B,SAAO,MAAM,OAAO,KAAK,MAAM,WAAW,OAAO,CAAC;AACpD;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -15,6 +15,7 @@ var __export = (target, all) => {
|
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
16
|
var getExpandedShorthands_exports = {};
|
|
17
17
|
__export(getExpandedShorthands_exports, {
|
|
18
|
+
getExpandedShorthand: () => getExpandedShorthand,
|
|
18
19
|
getExpandedShorthands: () => getExpandedShorthands
|
|
19
20
|
});
|
|
20
21
|
module.exports = __toCommonJS(getExpandedShorthands_exports);
|
|
@@ -27,8 +28,13 @@ function getExpandedShorthands(props) {
|
|
|
27
28
|
res[shorthands[key] || key] = props[key];
|
|
28
29
|
return res;
|
|
29
30
|
}
|
|
31
|
+
function getExpandedShorthand(propKey, props) {
|
|
32
|
+
var shorthands = (0, import_config.getConfig)().inverseShorthands, _props_propKey;
|
|
33
|
+
return (_props_propKey = props[propKey]) !== null && _props_propKey !== void 0 ? _props_propKey : props[shorthands[propKey]];
|
|
34
|
+
}
|
|
30
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
36
|
0 && (module.exports = {
|
|
37
|
+
getExpandedShorthand,
|
|
32
38
|
getExpandedShorthands
|
|
33
39
|
});
|
|
34
40
|
//# sourceMappingURL=getExpandedShorthands.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/getExpandedShorthands.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
|
5
|
-
"names": ["getExpandedShorthands", "props", "shorthands", "getConfig", "res", "key"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;oBAA0B;AAMnB,SAASA,sBACdC,OAAQ;AAER,MAAMC,iBAAaC,yBAAAA,EAAYD;AAC/B,MAAI,CAACA,WAAY,QAAOD;AACxB,MAAMG,MAAM,CAAC;AACb,WAAWC,OAAOJ;AAEhBG,QAAIF,WAAWG,GAAAA,KAAQA,GAAAA,IAAOJ,MAAMI,GAAAA;AAEtC,SAAOD;AACT;AAEO,SAASE,qBAAqBC,SAAiBN,OAAa;AACjE,MAAMC,iBAAaC,yBAAAA,EAAYK,mBACxBP;AAAP,UAAOA,iBAAAA,MAAMM,OAAAA,OAAQ,QAAdN,mBAAAA,SAAAA,iBAAkBA,MAAMC,WAAWK,OAAAA,CAAQ;AACpD;",
|
|
5
|
+
"names": ["getExpandedShorthands", "props", "shorthands", "getConfig", "res", "key", "getExpandedShorthand", "propKey", "inverseShorthands"]
|
|
6
6
|
}
|
|
@@ -7,7 +7,12 @@ function getExpandedShorthands(props) {
|
|
|
7
7
|
res[shorthands[key] || key] = props[key];
|
|
8
8
|
return res;
|
|
9
9
|
}
|
|
10
|
+
function getExpandedShorthand(propKey, props) {
|
|
11
|
+
const shorthands = getConfig().inverseShorthands;
|
|
12
|
+
return props[propKey] ?? props[shorthands[propKey]];
|
|
13
|
+
}
|
|
10
14
|
export {
|
|
15
|
+
getExpandedShorthand,
|
|
11
16
|
getExpandedShorthands
|
|
12
17
|
};
|
|
13
18
|
//# sourceMappingURL=getExpandedShorthands.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/getExpandedShorthands.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,iBAAiB;AAMnB,SAAS,sBACd,OAC2B;AAC3B,QAAM,aAAa,UAAU,EAAE;AAC/B,MAAI,CAAC,WAAY,QAAO;AACxB,QAAM,MAAM,CAAC;AACb,aAAW,OAAO;AAEhB,QAAI,WAAW,GAAG,KAAK,GAAG,IAAI,MAAM,GAAG;AAEzC,SAAO;AACT;",
|
|
4
|
+
"mappings": "AAAA,SAAS,iBAAiB;AAMnB,SAAS,sBACd,OAC2B;AAC3B,QAAM,aAAa,UAAU,EAAE;AAC/B,MAAI,CAAC,WAAY,QAAO;AACxB,QAAM,MAAM,CAAC;AACb,aAAW,OAAO;AAEhB,QAAI,WAAW,GAAG,KAAK,GAAG,IAAI,MAAM,GAAG;AAEzC,SAAO;AACT;AAEO,SAAS,qBAAqB,SAAiB,OAAe;AACnE,QAAM,aAAa,UAAU,EAAE;AAC/B,SAAO,MAAM,OAAO,KAAK,MAAM,WAAW,OAAO,CAAC;AACpD;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -6,5 +6,9 @@ function getExpandedShorthands(props) {
|
|
|
6
6
|
for (const key in props) res[shorthands[key] || key] = props[key];
|
|
7
7
|
return res;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
function getExpandedShorthand(propKey, props) {
|
|
10
|
+
const shorthands = getConfig().inverseShorthands;
|
|
11
|
+
return props[propKey] ?? props[shorthands[propKey]];
|
|
12
|
+
}
|
|
13
|
+
export { getExpandedShorthand, getExpandedShorthands };
|
|
10
14
|
//# sourceMappingURL=getExpandedShorthands.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getConfig","getExpandedShorthands","props","shorthands","res","key"],"sources":["../../../src/helpers/getExpandedShorthands.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAMnB,SAASC,sBACdC,KAAA,EAC2B;EAC3B,MAAMC,UAAA,GAAaH,SAAA,CAAU,EAAEG,UAAA;EAC/B,IAAI,CAACA,UAAA,EAAY,OAAOD,KAAA;EACxB,MAAME,GAAA,GAAM,CAAC;EACb,WAAWC,GAAA,IAAOH,KAAA,EAEhBE,GAAA,CAAID,UAAA,CAAWE,GAAG,KAAKA,GAAG,IAAIH,KAAA,CAAMG,GAAG;EAEzC,OAAOD,GAAA;AACT","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["getConfig","getExpandedShorthands","props","shorthands","res","key","getExpandedShorthand","propKey","inverseShorthands"],"sources":["../../../src/helpers/getExpandedShorthands.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAMnB,SAASC,sBACdC,KAAA,EAC2B;EAC3B,MAAMC,UAAA,GAAaH,SAAA,CAAU,EAAEG,UAAA;EAC/B,IAAI,CAACA,UAAA,EAAY,OAAOD,KAAA;EACxB,MAAME,GAAA,GAAM,CAAC;EACb,WAAWC,GAAA,IAAOH,KAAA,EAEhBE,GAAA,CAAID,UAAA,CAAWE,GAAG,KAAKA,GAAG,IAAIH,KAAA,CAAMG,GAAG;EAEzC,OAAOD,GAAA;AACT;AAEO,SAASE,qBAAqBC,OAAA,EAAiBL,KAAA,EAAe;EACnE,MAAMC,UAAA,GAAaH,SAAA,CAAU,EAAEQ,iBAAA;EAC/B,OAAON,KAAA,CAAMK,OAAO,KAAKL,KAAA,CAAMC,UAAA,CAAWI,OAAO,CAAC;AACpD","ignoreList":[]}
|
|
@@ -6,5 +6,10 @@ function getExpandedShorthands(props) {
|
|
|
6
6
|
for (var key in props) res[shorthands[key] || key] = props[key];
|
|
7
7
|
return res;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
function getExpandedShorthand(propKey, props) {
|
|
10
|
+
var shorthands = getConfig().inverseShorthands,
|
|
11
|
+
_props_propKey;
|
|
12
|
+
return (_props_propKey = props[propKey]) !== null && _props_propKey !== void 0 ? _props_propKey : props[shorthands[propKey]];
|
|
13
|
+
}
|
|
14
|
+
export { getExpandedShorthand, getExpandedShorthands };
|
|
10
15
|
//# sourceMappingURL=getExpandedShorthands.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getConfig","getExpandedShorthands","props","shorthands","res","key"],"sources":["../../../src/helpers/getExpandedShorthands.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAMnB,SAASC,sBACdC,KAAA,EAC2B;EAC3B,IAAAC,UAAM,GAAAH,SAAa,GAAUG,UAAE;EAC/B,IAAI,CAACA,UAAA,EAAY,OAAOD,KAAA;EACxB,IAAAE,GAAM,KAAM;EACZ,SAAAC,GAAW,IAAAH,KAAO,EAEhBE,GAAA,CAAID,UAAA,CAAWE,GAAG,KAAKA,GAAG,IAAIH,KAAA,CAAMG,GAAG;EAEzC,OAAOD,GAAA;AACT","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["getConfig","getExpandedShorthands","props","shorthands","res","key","getExpandedShorthand","propKey","inverseShorthands","_props_propKey"],"sources":["../../../src/helpers/getExpandedShorthands.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAMnB,SAASC,sBACdC,KAAA,EAC2B;EAC3B,IAAAC,UAAM,GAAAH,SAAa,GAAUG,UAAE;EAC/B,IAAI,CAACA,UAAA,EAAY,OAAOD,KAAA;EACxB,IAAAE,GAAM,KAAM;EACZ,SAAAC,GAAW,IAAAH,KAAO,EAEhBE,GAAA,CAAID,UAAA,CAAWE,GAAG,KAAKA,GAAG,IAAIH,KAAA,CAAMG,GAAG;EAEzC,OAAOD,GAAA;AACT;AAEO,SAASE,qBAAqBC,OAAA,EAAiBL,KAAA,EAAe;EACnE,IAAAC,UAAM,GAAAH,SAAa,GAAUQ,iBAAE;IAAAC,cAAA;EAC/B,OAAO,CAAAA,cAAa,GAAKP,KAAA,CAAMK,OAAA,OAAW,IAAO,IAACE,cAAA,cAAAA,cAAA,GAAAP,KAAA,CAAAC,UAAA,CAAAI,OAAA;AACpD","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "1.125.
|
|
3
|
+
"version": "1.125.29",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"reset.css"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/compose-refs": "1.125.
|
|
31
|
-
"@tamagui/constants": "1.125.
|
|
32
|
-
"@tamagui/helpers": "1.125.
|
|
33
|
-
"@tamagui/normalize-css-color": "1.125.
|
|
34
|
-
"@tamagui/timer": "1.125.
|
|
35
|
-
"@tamagui/types": "1.125.
|
|
36
|
-
"@tamagui/use-did-finish-ssr": "1.125.
|
|
37
|
-
"@tamagui/use-event": "1.125.
|
|
38
|
-
"@tamagui/use-force-update": "1.125.
|
|
30
|
+
"@tamagui/compose-refs": "1.125.29",
|
|
31
|
+
"@tamagui/constants": "1.125.29",
|
|
32
|
+
"@tamagui/helpers": "1.125.29",
|
|
33
|
+
"@tamagui/normalize-css-color": "1.125.29",
|
|
34
|
+
"@tamagui/timer": "1.125.29",
|
|
35
|
+
"@tamagui/types": "1.125.29",
|
|
36
|
+
"@tamagui/use-did-finish-ssr": "1.125.29",
|
|
37
|
+
"@tamagui/use-event": "1.125.29",
|
|
38
|
+
"@tamagui/use-force-update": "1.125.29"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "*",
|
|
42
42
|
"react-dom": "*"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@tamagui/build": "1.125.
|
|
45
|
+
"@tamagui/build": "1.125.29",
|
|
46
46
|
"@testing-library/react": "^16.1.0",
|
|
47
47
|
"csstype": "^3.0.10",
|
|
48
48
|
"react": "*",
|
|
@@ -16,3 +16,8 @@ export function getExpandedShorthands<A extends Object>(
|
|
|
16
16
|
}
|
|
17
17
|
return res
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
export function getExpandedShorthand(propKey: string, props: Object) {
|
|
21
|
+
const shorthands = getConfig().inverseShorthands
|
|
22
|
+
return props[propKey] ?? props[shorthands[propKey]]
|
|
23
|
+
}
|
|
@@ -3,4 +3,5 @@ import type { Shorthands } from '../types';
|
|
|
3
3
|
* @deprecated use useProps instead
|
|
4
4
|
*/
|
|
5
5
|
export declare function getExpandedShorthands<A extends Object>(props: A): Omit<A, keyof Shorthands>;
|
|
6
|
+
export declare function getExpandedShorthand(propKey: string, props: Object): any;
|
|
6
7
|
//# sourceMappingURL=getExpandedShorthands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getExpandedShorthands.d.ts","sourceRoot":"","sources":["../../src/helpers/getExpandedShorthands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,EACpD,KAAK,EAAE,CAAC,GACP,IAAI,CAAC,CAAC,EAAE,MAAM,UAAU,CAAC,CAS3B"}
|
|
1
|
+
{"version":3,"file":"getExpandedShorthands.d.ts","sourceRoot":"","sources":["../../src/helpers/getExpandedShorthands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,EACpD,KAAK,EAAE,CAAC,GACP,IAAI,CAAC,CAAC,EAAE,MAAM,UAAU,CAAC,CAS3B;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,OAGlE"}
|