@tamagui/core 1.89.22 → 1.89.24
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 +132 -139
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +131 -138
- package/dist/test.native.js.map +3 -3
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -979,17 +979,11 @@ var require_validStyleProps_native = __commonJS({
|
|
|
979
979
|
stylePropsView: () => stylePropsView,
|
|
980
980
|
tokenCategories: () => tokenCategories,
|
|
981
981
|
validPseudoKeys: () => validPseudoKeys,
|
|
982
|
-
validStyles: () => validStyles
|
|
983
|
-
validStylesOnBaseProps: () => validStylesOnBaseProps
|
|
982
|
+
validStyles: () => validStyles
|
|
984
983
|
});
|
|
985
984
|
module2.exports = __toCommonJS2(validStyleProps_exports);
|
|
986
|
-
var import_constants = require_index_native3(),
|
|
987
|
-
placeholderTextColor: !0
|
|
988
|
-
}, validStylesOnBaseProps = {
|
|
989
|
-
...placeHolderTextColors
|
|
990
|
-
}, textColors = {
|
|
985
|
+
var import_constants = require_index_native3(), textColors = {
|
|
991
986
|
color: !0,
|
|
992
|
-
...placeHolderTextColors,
|
|
993
987
|
textDecorationColor: !0,
|
|
994
988
|
textShadowColor: !0
|
|
995
989
|
}, tokenCategories = {
|
|
@@ -1151,7 +1145,6 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1151
1145
|
...tokenCategories.radius,
|
|
1152
1146
|
...tokenCategories.size,
|
|
1153
1147
|
...tokenCategories.radius,
|
|
1154
|
-
...validStylesOnBaseProps,
|
|
1155
1148
|
...stylePropsTransform,
|
|
1156
1149
|
...stylePropsUnitless,
|
|
1157
1150
|
...import_constants.isAndroid ? { elevationAndroid: !0 } : {}
|
|
@@ -2669,56 +2662,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
2669
2662
|
}
|
|
2670
2663
|
});
|
|
2671
2664
|
|
|
2672
|
-
// ../web/dist/cjs/helpers/skipProps.native.js
|
|
2673
|
-
var require_skipProps_native = __commonJS({
|
|
2674
|
-
"../web/dist/cjs/helpers/skipProps.native.js"(exports2, module2) {
|
|
2675
|
-
"use strict";
|
|
2676
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2677
|
-
for (var name in all)
|
|
2678
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2679
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
2680
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
2681
|
-
for (let key of __getOwnPropNames2(from))
|
|
2682
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2683
|
-
return to;
|
|
2684
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), skipProps_exports = {};
|
|
2685
|
-
__export2(skipProps_exports, {
|
|
2686
|
-
skipProps: () => skipProps
|
|
2687
|
-
});
|
|
2688
|
-
module2.exports = __toCommonJS2(skipProps_exports);
|
|
2689
|
-
var skipProps = {
|
|
2690
|
-
untilMeasured: 1,
|
|
2691
|
-
animation: 1,
|
|
2692
|
-
space: 1,
|
|
2693
|
-
animateOnly: 1,
|
|
2694
|
-
disableClassName: 1,
|
|
2695
|
-
debug: 1,
|
|
2696
|
-
componentName: 1,
|
|
2697
|
-
disableOptimization: 1,
|
|
2698
|
-
tag: 1,
|
|
2699
|
-
style: 1,
|
|
2700
|
-
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
2701
|
-
group: 1,
|
|
2702
|
-
themeInverse: 1
|
|
2703
|
-
};
|
|
2704
|
-
process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
|
|
2705
|
-
Object.assign(skipProps, {
|
|
2706
|
-
whiteSpace: 1,
|
|
2707
|
-
wordWrap: 1,
|
|
2708
|
-
textOverflow: 1,
|
|
2709
|
-
textDecorationDistance: 1,
|
|
2710
|
-
cursor: 1,
|
|
2711
|
-
contain: 1,
|
|
2712
|
-
boxSizing: 1,
|
|
2713
|
-
boxShadow: 1,
|
|
2714
|
-
outlineStyle: 1,
|
|
2715
|
-
outlineOffset: 1,
|
|
2716
|
-
outlineWidth: 1,
|
|
2717
|
-
outlineColor: 1
|
|
2718
|
-
});
|
|
2719
|
-
}
|
|
2720
|
-
});
|
|
2721
|
-
|
|
2722
2665
|
// ../web/dist/cjs/constants/accessibilityDirectMap.native.js
|
|
2723
2666
|
var require_accessibilityDirectMap_native = __commonJS({
|
|
2724
2667
|
"../web/dist/cjs/constants/accessibilityDirectMap.native.js"(exports2, module2) {
|
|
@@ -3547,6 +3490,51 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
3547
3490
|
}
|
|
3548
3491
|
});
|
|
3549
3492
|
|
|
3493
|
+
// ../web/dist/cjs/helpers/isObj.native.js
|
|
3494
|
+
var require_isObj_native = __commonJS({
|
|
3495
|
+
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
3496
|
+
"use strict";
|
|
3497
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3498
|
+
for (var name in all)
|
|
3499
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3500
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3501
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3502
|
+
for (let key of __getOwnPropNames2(from))
|
|
3503
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3504
|
+
return to;
|
|
3505
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), isObj_exports = {};
|
|
3506
|
+
__export2(isObj_exports, {
|
|
3507
|
+
isObj: () => isObj
|
|
3508
|
+
});
|
|
3509
|
+
module2.exports = __toCommonJS2(isObj_exports);
|
|
3510
|
+
var isObj = (x) => x && !Array.isArray(x) && typeof x == "object";
|
|
3511
|
+
}
|
|
3512
|
+
});
|
|
3513
|
+
|
|
3514
|
+
// ../web/dist/cjs/helpers/log.native.js
|
|
3515
|
+
var require_log_native = __commonJS({
|
|
3516
|
+
"../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
|
|
3517
|
+
"use strict";
|
|
3518
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3519
|
+
for (var name in all)
|
|
3520
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3521
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3522
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3523
|
+
for (let key of __getOwnPropNames2(from))
|
|
3524
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3525
|
+
return to;
|
|
3526
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), log_exports = {};
|
|
3527
|
+
__export2(log_exports, {
|
|
3528
|
+
log: () => log
|
|
3529
|
+
});
|
|
3530
|
+
module2.exports = __toCommonJS2(log_exports);
|
|
3531
|
+
function log(...args) {
|
|
3532
|
+
if (process.env.NODE_ENV !== "production")
|
|
3533
|
+
return console.log(...args);
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3536
|
+
});
|
|
3537
|
+
|
|
3550
3538
|
// ../web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
3551
3539
|
var require_normalizeValueWithProperty_native = __commonJS({
|
|
3552
3540
|
"../web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
@@ -3599,62 +3587,6 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
3599
3587
|
}
|
|
3600
3588
|
});
|
|
3601
3589
|
|
|
3602
|
-
// ../web/dist/cjs/helpers/transformsToString.native.js
|
|
3603
|
-
var require_transformsToString_native = __commonJS({
|
|
3604
|
-
"../web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
|
|
3605
|
-
"use strict";
|
|
3606
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3607
|
-
for (var name in all)
|
|
3608
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3609
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3610
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3611
|
-
for (let key of __getOwnPropNames2(from))
|
|
3612
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3613
|
-
return to;
|
|
3614
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), transformsToString_exports = {};
|
|
3615
|
-
__export2(transformsToString_exports, {
|
|
3616
|
-
transformsToString: () => transformsToString
|
|
3617
|
-
});
|
|
3618
|
-
module2.exports = __toCommonJS2(transformsToString_exports);
|
|
3619
|
-
var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
|
|
3620
|
-
function transformsToString(transforms) {
|
|
3621
|
-
return transforms.map(
|
|
3622
|
-
// { scale: 2 } => 'scale(2)'
|
|
3623
|
-
// { translateX: 20 } => 'translateX(20px)'
|
|
3624
|
-
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
3625
|
-
(transform) => {
|
|
3626
|
-
let type = Object.keys(transform)[0], value = transform[type];
|
|
3627
|
-
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
3628
|
-
}
|
|
3629
|
-
).join(" ");
|
|
3630
|
-
}
|
|
3631
|
-
}
|
|
3632
|
-
});
|
|
3633
|
-
|
|
3634
|
-
// ../web/dist/cjs/helpers/log.native.js
|
|
3635
|
-
var require_log_native = __commonJS({
|
|
3636
|
-
"../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
|
|
3637
|
-
"use strict";
|
|
3638
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3639
|
-
for (var name in all)
|
|
3640
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3641
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3642
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3643
|
-
for (let key of __getOwnPropNames2(from))
|
|
3644
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3645
|
-
return to;
|
|
3646
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), log_exports = {};
|
|
3647
|
-
__export2(log_exports, {
|
|
3648
|
-
log: () => log
|
|
3649
|
-
});
|
|
3650
|
-
module2.exports = __toCommonJS2(log_exports);
|
|
3651
|
-
function log(...args) {
|
|
3652
|
-
if (process.env.NODE_ENV !== "production")
|
|
3653
|
-
return console.log(...args);
|
|
3654
|
-
}
|
|
3655
|
-
}
|
|
3656
|
-
});
|
|
3657
|
-
|
|
3658
3590
|
// ../web/dist/cjs/helpers/expandStyle.native.js
|
|
3659
3591
|
var require_expandStyle_native = __commonJS({
|
|
3660
3592
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports2, module2) {
|
|
@@ -3714,27 +3646,6 @@ var require_expandStyle_native = __commonJS({
|
|
|
3714
3646
|
}
|
|
3715
3647
|
});
|
|
3716
3648
|
|
|
3717
|
-
// ../web/dist/cjs/helpers/isObj.native.js
|
|
3718
|
-
var require_isObj_native = __commonJS({
|
|
3719
|
-
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
3720
|
-
"use strict";
|
|
3721
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3722
|
-
for (var name in all)
|
|
3723
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3724
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3725
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3726
|
-
for (let key of __getOwnPropNames2(from))
|
|
3727
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3728
|
-
return to;
|
|
3729
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), isObj_exports = {};
|
|
3730
|
-
__export2(isObj_exports, {
|
|
3731
|
-
isObj: () => isObj
|
|
3732
|
-
});
|
|
3733
|
-
module2.exports = __toCommonJS2(isObj_exports);
|
|
3734
|
-
var isObj = (x) => x && !Array.isArray(x) && typeof x == "object";
|
|
3735
|
-
}
|
|
3736
|
-
});
|
|
3737
|
-
|
|
3738
3649
|
// ../web/dist/cjs/helpers/normalizeStyle.native.js
|
|
3739
3650
|
var require_normalizeStyle_native = __commonJS({
|
|
3740
3651
|
"../web/dist/cjs/helpers/normalizeStyle.native.js"(exports2, module2) {
|
|
@@ -3835,6 +3746,56 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
3835
3746
|
}
|
|
3836
3747
|
});
|
|
3837
3748
|
|
|
3749
|
+
// ../web/dist/cjs/helpers/skipProps.native.js
|
|
3750
|
+
var require_skipProps_native = __commonJS({
|
|
3751
|
+
"../web/dist/cjs/helpers/skipProps.native.js"(exports2, module2) {
|
|
3752
|
+
"use strict";
|
|
3753
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3754
|
+
for (var name in all)
|
|
3755
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3756
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3757
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3758
|
+
for (let key of __getOwnPropNames2(from))
|
|
3759
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3760
|
+
return to;
|
|
3761
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), skipProps_exports = {};
|
|
3762
|
+
__export2(skipProps_exports, {
|
|
3763
|
+
skipProps: () => skipProps
|
|
3764
|
+
});
|
|
3765
|
+
module2.exports = __toCommonJS2(skipProps_exports);
|
|
3766
|
+
var skipProps = {
|
|
3767
|
+
untilMeasured: 1,
|
|
3768
|
+
animation: 1,
|
|
3769
|
+
space: 1,
|
|
3770
|
+
animateOnly: 1,
|
|
3771
|
+
disableClassName: 1,
|
|
3772
|
+
debug: 1,
|
|
3773
|
+
componentName: 1,
|
|
3774
|
+
disableOptimization: 1,
|
|
3775
|
+
tag: 1,
|
|
3776
|
+
style: 1,
|
|
3777
|
+
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
3778
|
+
group: 1,
|
|
3779
|
+
themeInverse: 1
|
|
3780
|
+
};
|
|
3781
|
+
process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
|
|
3782
|
+
Object.assign(skipProps, {
|
|
3783
|
+
whiteSpace: 1,
|
|
3784
|
+
wordWrap: 1,
|
|
3785
|
+
textOverflow: 1,
|
|
3786
|
+
textDecorationDistance: 1,
|
|
3787
|
+
cursor: 1,
|
|
3788
|
+
contain: 1,
|
|
3789
|
+
boxSizing: 1,
|
|
3790
|
+
boxShadow: 1,
|
|
3791
|
+
outlineStyle: 1,
|
|
3792
|
+
outlineOffset: 1,
|
|
3793
|
+
outlineWidth: 1,
|
|
3794
|
+
outlineColor: 1
|
|
3795
|
+
});
|
|
3796
|
+
}
|
|
3797
|
+
});
|
|
3798
|
+
|
|
3838
3799
|
// ../web/dist/cjs/helpers/propMapper.native.js
|
|
3839
3800
|
var require_propMapper_native = __commonJS({
|
|
3840
3801
|
"../web/dist/cjs/helpers/propMapper.native.js"(exports2, module2) {
|
|
@@ -4077,6 +4038,38 @@ var require_propMapper_native = __commonJS({
|
|
|
4077
4038
|
}
|
|
4078
4039
|
});
|
|
4079
4040
|
|
|
4041
|
+
// ../web/dist/cjs/helpers/transformsToString.native.js
|
|
4042
|
+
var require_transformsToString_native = __commonJS({
|
|
4043
|
+
"../web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
|
|
4044
|
+
"use strict";
|
|
4045
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4046
|
+
for (var name in all)
|
|
4047
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
4048
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
4049
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
4050
|
+
for (let key of __getOwnPropNames2(from))
|
|
4051
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
4052
|
+
return to;
|
|
4053
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), transformsToString_exports = {};
|
|
4054
|
+
__export2(transformsToString_exports, {
|
|
4055
|
+
transformsToString: () => transformsToString
|
|
4056
|
+
});
|
|
4057
|
+
module2.exports = __toCommonJS2(transformsToString_exports);
|
|
4058
|
+
var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
|
|
4059
|
+
function transformsToString(transforms) {
|
|
4060
|
+
return transforms.map(
|
|
4061
|
+
// { scale: 2 } => 'scale(2)'
|
|
4062
|
+
// { translateX: 20 } => 'translateX(20px)'
|
|
4063
|
+
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
4064
|
+
(transform) => {
|
|
4065
|
+
let type = Object.keys(transform)[0], value = transform[type];
|
|
4066
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
4067
|
+
}
|
|
4068
|
+
).join(" ");
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
4071
|
+
});
|
|
4072
|
+
|
|
4080
4073
|
// ../web/dist/cjs/helpers/getSplitStyles.native.js
|
|
4081
4074
|
var require_getSplitStyles_native = __commonJS({
|
|
4082
4075
|
"../web/dist/cjs/helpers/getSplitStyles.native.js"(exports2, module2) {
|
|
@@ -4097,7 +4090,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
4097
4090
|
useSplitStyles: () => useSplitStyles
|
|
4098
4091
|
});
|
|
4099
4092
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
4100
|
-
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(),
|
|
4093
|
+
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants2 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_transformsToString = require_transformsToString_native(), IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
|
|
4101
4094
|
function isValidStyleKey(key, staticConfig) {
|
|
4102
4095
|
var _a;
|
|
4103
4096
|
return (staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles))[key] || ((_a = staticConfig.acceptTokens) == null ? void 0 : _a[key]);
|
|
@@ -4495,14 +4488,14 @@ current`, {
|
|
|
4495
4488
|
return result;
|
|
4496
4489
|
};
|
|
4497
4490
|
function mergeStyle(styleState, key, val, disableNormalize = !1) {
|
|
4498
|
-
let { classNames, viewProps, usedKeys, styleProps } = styleState;
|
|
4491
|
+
let { classNames, viewProps, usedKeys, styleProps, staticConfig } = styleState;
|
|
4499
4492
|
if (import_constants.isWeb && (val == null ? void 0 : val[0]) === "_")
|
|
4500
4493
|
classNames[key] = val, usedKeys[key] || (usedKeys[key] = 1);
|
|
4501
4494
|
else if (key in import_helpers.stylePropsTransform)
|
|
4502
4495
|
styleState.transforms || (styleState.transforms = {}), styleState.transforms[key] = val;
|
|
4503
4496
|
else {
|
|
4504
4497
|
let out = import_constants.isWeb && !disableNormalize && !styleProps.noNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
|
|
4505
|
-
key in
|
|
4498
|
+
staticConfig.acceptTokens && key in staticConfig.acceptTokens ? viewProps[key] = out : (styleState.style || (styleState.style = {}), styleState.style[key] = out);
|
|
4506
4499
|
}
|
|
4507
4500
|
}
|
|
4508
4501
|
var getSubStyle = (styleState, subKey, styleIn, avoidMergeTransform) => {
|