@tamagui/core 1.86.0 → 1.86.2
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/native.js +133 -132
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +121 -119
- package/dist/test.native.js.map +3 -3
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -2819,6 +2819,27 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
2821
|
|
|
2822
|
+
// ../web/dist/cjs/helpers/defaultOffset.native.js
|
|
2823
|
+
var require_defaultOffset_native = __commonJS({
|
|
2824
|
+
"../web/dist/cjs/helpers/defaultOffset.native.js"(exports2, module2) {
|
|
2825
|
+
"use strict";
|
|
2826
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2827
|
+
for (var name in all)
|
|
2828
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2829
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
2830
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
2831
|
+
for (let key of __getOwnPropNames2(from))
|
|
2832
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2833
|
+
return to;
|
|
2834
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), defaultOffset_exports = {};
|
|
2835
|
+
__export2(defaultOffset_exports, {
|
|
2836
|
+
defaultOffset: () => defaultOffset
|
|
2837
|
+
});
|
|
2838
|
+
module2.exports = __toCommonJS2(defaultOffset_exports);
|
|
2839
|
+
var defaultOffset = { height: 0, width: 0 };
|
|
2840
|
+
}
|
|
2841
|
+
});
|
|
2842
|
+
|
|
2822
2843
|
// ../../node_modules/@react-native/normalize-color/index.js
|
|
2823
2844
|
var require_normalize_color = __commonJS({
|
|
2824
2845
|
"../../node_modules/@react-native/normalize-color/index.js"(exports2, module2) {
|
|
@@ -3287,7 +3308,7 @@ var require_index_native7 = __commonJS({
|
|
|
3287
3308
|
module2.exports = __toCommonJS2(src_exports2);
|
|
3288
3309
|
var normalizeColor = __toESM2(require_normalize_color()), norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
|
|
3289
3310
|
function rgba2(colorInt) {
|
|
3290
|
-
|
|
3311
|
+
let r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
|
|
3291
3312
|
return {
|
|
3292
3313
|
r,
|
|
3293
3314
|
g,
|
|
@@ -3299,27 +3320,6 @@ var require_index_native7 = __commonJS({
|
|
|
3299
3320
|
}
|
|
3300
3321
|
});
|
|
3301
3322
|
|
|
3302
|
-
// ../web/dist/cjs/helpers/defaultOffset.native.js
|
|
3303
|
-
var require_defaultOffset_native = __commonJS({
|
|
3304
|
-
"../web/dist/cjs/helpers/defaultOffset.native.js"(exports2, module2) {
|
|
3305
|
-
"use strict";
|
|
3306
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3307
|
-
for (var name in all)
|
|
3308
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3309
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3310
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3311
|
-
for (let key of __getOwnPropNames2(from))
|
|
3312
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3313
|
-
return to;
|
|
3314
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), defaultOffset_exports = {};
|
|
3315
|
-
__export2(defaultOffset_exports, {
|
|
3316
|
-
defaultOffset: () => defaultOffset
|
|
3317
|
-
});
|
|
3318
|
-
module2.exports = __toCommonJS2(defaultOffset_exports);
|
|
3319
|
-
var defaultOffset = { height: 0, width: 0 };
|
|
3320
|
-
}
|
|
3321
|
-
});
|
|
3322
|
-
|
|
3323
3323
|
// ../web/dist/cjs/helpers/normalizeColor.native.js
|
|
3324
3324
|
var require_normalizeColor_native = __commonJS({
|
|
3325
3325
|
"../web/dist/cjs/helpers/normalizeColor.native.js"(exports2, module2) {
|
|
@@ -3334,6 +3334,7 @@ var require_normalizeColor_native = __commonJS({
|
|
|
3334
3334
|
return to;
|
|
3335
3335
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeColor_exports = {};
|
|
3336
3336
|
__export2(normalizeColor_exports, {
|
|
3337
|
+
getRgba: () => getRgba,
|
|
3337
3338
|
normalizeColor: () => normalizeColor,
|
|
3338
3339
|
rgba: () => import_normalize_css_color2.rgba
|
|
3339
3340
|
});
|
|
@@ -3343,65 +3344,17 @@ var require_normalizeColor_native = __commonJS({
|
|
|
3343
3344
|
return;
|
|
3344
3345
|
if (color[0] === "$" || color.startsWith("var("))
|
|
3345
3346
|
return color;
|
|
3346
|
-
let
|
|
3347
|
-
if (
|
|
3348
|
-
let {
|
|
3349
|
-
return `
|
|
3347
|
+
let rgba3 = getRgba(color);
|
|
3348
|
+
if (rgba3) {
|
|
3349
|
+
let colors = `${rgba3.r},${rgba3.g},${rgba3.b}`;
|
|
3350
|
+
return opacity === 1 ? `rgb(${colors})` : `rgba(${colors},${opacity ?? rgba3.a ?? 1})`;
|
|
3350
3351
|
}
|
|
3351
|
-
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
// ../web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
3357
|
-
var require_normalizeValueWithProperty_native = __commonJS({
|
|
3358
|
-
"../web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
3359
|
-
"use strict";
|
|
3360
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3361
|
-
for (var name in all)
|
|
3362
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3363
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3364
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3365
|
-
for (let key of __getOwnPropNames2(from))
|
|
3366
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3367
|
-
return to;
|
|
3368
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeValueWithProperty_exports = {};
|
|
3369
|
-
__export2(normalizeValueWithProperty_exports, {
|
|
3370
|
-
normalizeValueWithProperty: () => normalizeValueWithProperty,
|
|
3371
|
-
reverseMapClassNameToValue: () => reverseMapClassNameToValue
|
|
3372
|
-
});
|
|
3373
|
-
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
3374
|
-
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
3375
|
-
...import_helpers.stylePropsAll,
|
|
3376
|
-
translateX: !0,
|
|
3377
|
-
translateY: !0
|
|
3352
|
+
return color;
|
|
3353
|
+
}, getRgba = (color) => {
|
|
3354
|
+
let colorNum = (0, import_normalize_css_color.normalizeCSSColor)(color);
|
|
3355
|
+
if (colorNum != null)
|
|
3356
|
+
return (0, import_normalize_css_color.rgba)(colorNum);
|
|
3378
3357
|
};
|
|
3379
|
-
function normalizeValueWithProperty(value, property) {
|
|
3380
|
-
if (!import_constants.isWeb || typeof value == "boolean" || property && property in import_helpers.stylePropsUnitless || property && !(property in stylePropsAllPlusTransforms))
|
|
3381
|
-
return value;
|
|
3382
|
-
let res = value;
|
|
3383
|
-
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
3384
|
-
}
|
|
3385
|
-
var rcache = {};
|
|
3386
|
-
function reverseMapClassNameToValue(key, className) {
|
|
3387
|
-
let cssRule = (0, import_insertStyleRule.getAllSelectors)()[className];
|
|
3388
|
-
if (rcache[cssRule])
|
|
3389
|
-
return rcache[cssRule];
|
|
3390
|
-
if (!cssRule) {
|
|
3391
|
-
process.env.NODE_ENV === "development" && console.warn(
|
|
3392
|
-
`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`
|
|
3393
|
-
);
|
|
3394
|
-
return;
|
|
3395
|
-
}
|
|
3396
|
-
let cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
3397
|
-
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && Number.isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
|
|
3398
|
-
res,
|
|
3399
|
-
cssVal,
|
|
3400
|
-
cssRule,
|
|
3401
|
-
key,
|
|
3402
|
-
className
|
|
3403
|
-
}), res;
|
|
3404
|
-
}
|
|
3405
3358
|
}
|
|
3406
3359
|
});
|
|
3407
3360
|
|
|
@@ -3417,30 +3370,28 @@ var require_normalizeShadow_native = __commonJS({
|
|
|
3417
3370
|
for (let key of __getOwnPropNames2(from))
|
|
3418
3371
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3419
3372
|
return to;
|
|
3420
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
3421
|
-
__export2(
|
|
3373
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeShadow_exports = {};
|
|
3374
|
+
__export2(normalizeShadow_exports, {
|
|
3422
3375
|
normalizeShadow: () => normalizeShadow
|
|
3423
3376
|
});
|
|
3424
|
-
module2.exports = __toCommonJS2(
|
|
3425
|
-
var
|
|
3377
|
+
module2.exports = __toCommonJS2(normalizeShadow_exports);
|
|
3378
|
+
var import_defaultOffset = require_defaultOffset_native(), import_normalizeColor = require_normalizeColor_native();
|
|
3426
3379
|
function normalizeShadow({
|
|
3427
3380
|
shadowColor,
|
|
3428
3381
|
shadowOffset,
|
|
3429
3382
|
shadowOpacity,
|
|
3430
3383
|
shadowRadius
|
|
3431
3384
|
}) {
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
throw new Error(`invalid shadow color ${colorStr}`);
|
|
3435
|
-
let { r, g, b, a } = (0, import_normalizeColor.rgba)(val);
|
|
3385
|
+
var _a;
|
|
3386
|
+
let { height, width } = shadowOffset || import_defaultOffset.defaultOffset;
|
|
3436
3387
|
return {
|
|
3437
3388
|
shadowOffset: {
|
|
3438
|
-
width:
|
|
3439
|
-
height:
|
|
3389
|
+
width: width || 0,
|
|
3390
|
+
height: height || 0
|
|
3440
3391
|
},
|
|
3441
|
-
shadowRadius:
|
|
3442
|
-
shadowColor:
|
|
3443
|
-
shadowOpacity: shadowOpacity ?? a
|
|
3392
|
+
shadowRadius: shadowRadius || 0,
|
|
3393
|
+
shadowColor: (0, import_normalizeColor.normalizeColor)(shadowColor, 1),
|
|
3394
|
+
shadowOpacity: shadowOpacity ?? (shadowColor ? (_a = (0, import_normalizeColor.getRgba)(shadowColor)) == null ? void 0 : _a.a : 1)
|
|
3444
3395
|
};
|
|
3445
3396
|
}
|
|
3446
3397
|
}
|
|
@@ -3529,6 +3480,58 @@ var require_log_native = __commonJS({
|
|
|
3529
3480
|
}
|
|
3530
3481
|
});
|
|
3531
3482
|
|
|
3483
|
+
// ../web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
3484
|
+
var require_normalizeValueWithProperty_native = __commonJS({
|
|
3485
|
+
"../web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
3486
|
+
"use strict";
|
|
3487
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3488
|
+
for (var name in all)
|
|
3489
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3490
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3491
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3492
|
+
for (let key of __getOwnPropNames2(from))
|
|
3493
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3494
|
+
return to;
|
|
3495
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeValueWithProperty_exports = {};
|
|
3496
|
+
__export2(normalizeValueWithProperty_exports, {
|
|
3497
|
+
normalizeValueWithProperty: () => normalizeValueWithProperty,
|
|
3498
|
+
reverseMapClassNameToValue: () => reverseMapClassNameToValue
|
|
3499
|
+
});
|
|
3500
|
+
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
3501
|
+
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
3502
|
+
...import_helpers.stylePropsAll,
|
|
3503
|
+
translateX: !0,
|
|
3504
|
+
translateY: !0
|
|
3505
|
+
};
|
|
3506
|
+
function normalizeValueWithProperty(value, property = "") {
|
|
3507
|
+
if (!import_constants.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean")
|
|
3508
|
+
return value;
|
|
3509
|
+
let res = value;
|
|
3510
|
+
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
3511
|
+
}
|
|
3512
|
+
var rcache = {};
|
|
3513
|
+
function reverseMapClassNameToValue(key, className) {
|
|
3514
|
+
let cssRule = (0, import_insertStyleRule.getAllSelectors)()[className];
|
|
3515
|
+
if (rcache[cssRule])
|
|
3516
|
+
return rcache[cssRule];
|
|
3517
|
+
if (!cssRule) {
|
|
3518
|
+
process.env.NODE_ENV === "development" && console.warn(
|
|
3519
|
+
`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`
|
|
3520
|
+
);
|
|
3521
|
+
return;
|
|
3522
|
+
}
|
|
3523
|
+
let cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
3524
|
+
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && Number.isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
|
|
3525
|
+
res,
|
|
3526
|
+
cssVal,
|
|
3527
|
+
cssRule,
|
|
3528
|
+
key,
|
|
3529
|
+
className
|
|
3530
|
+
}), res;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
});
|
|
3534
|
+
|
|
3532
3535
|
// ../web/dist/cjs/helpers/expandStyle.native.js
|
|
3533
3536
|
var require_expandStyle_native = __commonJS({
|
|
3534
3537
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports2, module2) {
|
|
@@ -3588,9 +3591,30 @@ var require_expandStyle_native = __commonJS({
|
|
|
3588
3591
|
}
|
|
3589
3592
|
});
|
|
3590
3593
|
|
|
3591
|
-
// ../web/dist/cjs/helpers/
|
|
3592
|
-
var
|
|
3593
|
-
"../web/dist/cjs/helpers/
|
|
3594
|
+
// ../web/dist/cjs/helpers/isObj.native.js
|
|
3595
|
+
var require_isObj_native = __commonJS({
|
|
3596
|
+
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
3597
|
+
"use strict";
|
|
3598
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3599
|
+
for (var name in all)
|
|
3600
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3601
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3602
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3603
|
+
for (let key of __getOwnPropNames2(from))
|
|
3604
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3605
|
+
return to;
|
|
3606
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), isObj_exports = {};
|
|
3607
|
+
__export2(isObj_exports, {
|
|
3608
|
+
isObj: () => isObj
|
|
3609
|
+
});
|
|
3610
|
+
module2.exports = __toCommonJS2(isObj_exports);
|
|
3611
|
+
var isObj = (x) => x && !Array.isArray(x) && typeof x == "object";
|
|
3612
|
+
}
|
|
3613
|
+
});
|
|
3614
|
+
|
|
3615
|
+
// ../web/dist/cjs/helpers/normalizeStyle.native.js
|
|
3616
|
+
var require_normalizeStyle_native = __commonJS({
|
|
3617
|
+
"../web/dist/cjs/helpers/normalizeStyle.native.js"(exports2, module2) {
|
|
3594
3618
|
"use strict";
|
|
3595
3619
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3596
3620
|
for (var name in all)
|
|
@@ -3600,20 +3624,21 @@ var require_expandStylesAndRemoveNullishValues_native = __commonJS({
|
|
|
3600
3624
|
for (let key of __getOwnPropNames2(from))
|
|
3601
3625
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3602
3626
|
return to;
|
|
3603
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
3604
|
-
__export2(
|
|
3605
|
-
|
|
3627
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeStyle_exports = {};
|
|
3628
|
+
__export2(normalizeStyle_exports, {
|
|
3629
|
+
normalizeStyle: () => normalizeStyle
|
|
3606
3630
|
});
|
|
3607
|
-
module2.exports = __toCommonJS2(
|
|
3608
|
-
var import_expandStyle = require_expandStyle_native(), import_expandStyles = require_expandStyles_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_pseudoDescriptors = require_pseudoDescriptors_native();
|
|
3609
|
-
function
|
|
3631
|
+
module2.exports = __toCommonJS2(normalizeStyle_exports);
|
|
3632
|
+
var import_expandStyle = require_expandStyle_native(), import_expandStyles = require_expandStyles_native(), import_isObj = require_isObj_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_pseudoDescriptors = require_pseudoDescriptors_native();
|
|
3633
|
+
function normalizeStyle(style, disableNormalize = !1) {
|
|
3610
3634
|
let res = {};
|
|
3611
3635
|
for (let key in style) {
|
|
3612
3636
|
let prop = style[key];
|
|
3613
3637
|
if (prop == null)
|
|
3614
3638
|
continue;
|
|
3615
|
-
if (key in import_pseudoDescriptors.pseudoDescriptors
|
|
3616
|
-
|
|
3639
|
+
if (key in import_pseudoDescriptors.pseudoDescriptors || // this should capture all parent-based styles like media, group, etc
|
|
3640
|
+
key[0] === "$" && (0, import_isObj.isObj)(prop)) {
|
|
3641
|
+
res[key] = normalizeStyle(prop, disableNormalize);
|
|
3617
3642
|
continue;
|
|
3618
3643
|
}
|
|
3619
3644
|
let value = disableNormalize ? prop : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(prop, key), out = (0, import_expandStyle.expandStyle)(key, value);
|
|
@@ -3689,27 +3714,6 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
3689
3714
|
}
|
|
3690
3715
|
});
|
|
3691
3716
|
|
|
3692
|
-
// ../web/dist/cjs/helpers/isObj.native.js
|
|
3693
|
-
var require_isObj_native = __commonJS({
|
|
3694
|
-
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
3695
|
-
"use strict";
|
|
3696
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3697
|
-
for (var name in all)
|
|
3698
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3699
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3700
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3701
|
-
for (let key of __getOwnPropNames2(from))
|
|
3702
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3703
|
-
return to;
|
|
3704
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), isObj_exports = {};
|
|
3705
|
-
__export2(isObj_exports, {
|
|
3706
|
-
isObj: () => isObj
|
|
3707
|
-
});
|
|
3708
|
-
module2.exports = __toCommonJS2(isObj_exports);
|
|
3709
|
-
var isObj = (x) => x && !Array.isArray(x) && typeof x == "object";
|
|
3710
|
-
}
|
|
3711
|
-
});
|
|
3712
|
-
|
|
3713
3717
|
// ../web/dist/cjs/helpers/propMapper.native.js
|
|
3714
3718
|
var require_propMapper_native = __commonJS({
|
|
3715
3719
|
"../web/dist/cjs/helpers/propMapper.native.js"(exports2, module2) {
|
|
@@ -3730,7 +3734,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3730
3734
|
propMapper: () => propMapper
|
|
3731
3735
|
});
|
|
3732
3736
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
3733
|
-
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_config = require_config_native(), import_isDevTools = require_isDevTools_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(),
|
|
3737
|
+
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_config = require_config_native(), import_isDevTools = require_isDevTools_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_normalizeStyle = require_normalizeStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), propMapper = (key, value, styleStateIn, subPropsIn) => {
|
|
3734
3738
|
var _a;
|
|
3735
3739
|
if (lastFontFamilyToken = null, !import_constants.isAndroid && key === "elevationAndroid")
|
|
3736
3740
|
return;
|
|
@@ -3799,10 +3803,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3799
3803
|
);
|
|
3800
3804
|
}
|
|
3801
3805
|
if (variantValue) {
|
|
3802
|
-
let expanded = (0,
|
|
3803
|
-
variantValue,
|
|
3804
|
-
!!styleProps.noNormalize
|
|
3805
|
-
);
|
|
3806
|
+
let expanded = (0, import_normalizeStyle.normalizeStyle)(variantValue, !!styleProps.noNormalize);
|
|
3806
3807
|
process.env.NODE_ENV === "development" && debug === "verbose" && console.info(" expanding styles from ", variantValue, "to", expanded);
|
|
3807
3808
|
let next = Object.entries(expanded);
|
|
3808
3809
|
return fontFamilyResult && fontFamilyResult[0] === "$" && fontFamilyCache.set(next, (0, import_createVariable.getVariableValue)(fontFamilyResult)), next;
|
|
@@ -4074,7 +4075,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
4074
4075
|
let shouldPassProp = !isStyleProp || // is in parent variants
|
|
4075
4076
|
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = (_a = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _a[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
4076
4077
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(
|
|
4077
|
-
|
|
4078
|
+
` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`
|
|
4078
4079
|
), (0, import_log.log)({ isVariant, valInit, shouldPassProp }), import_constants.isClient && (0, import_log.log)({
|
|
4079
4080
|
variants,
|
|
4080
4081
|
variant: variants == null ? void 0 : variants[keyInit],
|
|
@@ -4327,7 +4328,7 @@ current`, {
|
|
|
4327
4328
|
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
|
|
4328
4329
|
}
|
|
4329
4330
|
if (className && (classNames.className = className), process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
|
|
4330
|
-
console.groupCollapsed("
|
|
4331
|
+
console.groupCollapsed("\u{1F539} getSplitStyles ===>");
|
|
4331
4332
|
try {
|
|
4332
4333
|
let logs = {
|
|
4333
4334
|
...result,
|
|
@@ -6744,7 +6745,7 @@ var require_index_native9 = __commonJS({
|
|
|
6744
6745
|
__reExport2(src_exports2, require_createStyledContext_native(), module2.exports);
|
|
6745
6746
|
__reExport2(src_exports2, require_expandStyles_native(), module2.exports);
|
|
6746
6747
|
__reExport2(src_exports2, require_createMediaStyle_native(), module2.exports);
|
|
6747
|
-
__reExport2(src_exports2,
|
|
6748
|
+
__reExport2(src_exports2, require_normalizeStyle_native(), module2.exports);
|
|
6748
6749
|
__reExport2(src_exports2, require_propMapper_native(), module2.exports);
|
|
6749
6750
|
__reExport2(src_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
6750
6751
|
__reExport2(src_exports2, require_getSplitStyles_native(), module2.exports);
|