tamagui 1.89.22 → 1.89.23
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 +54 -54
package/dist/native.js
CHANGED
|
@@ -676,17 +676,11 @@ var require_validStyleProps_native = __commonJS({
|
|
|
676
676
|
stylePropsView: () => stylePropsView,
|
|
677
677
|
tokenCategories: () => tokenCategories,
|
|
678
678
|
validPseudoKeys: () => validPseudoKeys,
|
|
679
|
-
validStyles: () => validStyles
|
|
680
|
-
validStylesOnBaseProps: () => validStylesOnBaseProps
|
|
679
|
+
validStyles: () => validStyles
|
|
681
680
|
});
|
|
682
681
|
module2.exports = __toCommonJS2(validStyleProps_exports);
|
|
683
|
-
var import_constants4 = require_index_native6(),
|
|
684
|
-
placeholderTextColor: !0
|
|
685
|
-
}, validStylesOnBaseProps = {
|
|
686
|
-
...placeHolderTextColors
|
|
687
|
-
}, textColors = {
|
|
682
|
+
var import_constants4 = require_index_native6(), textColors = {
|
|
688
683
|
color: !0,
|
|
689
|
-
...placeHolderTextColors,
|
|
690
684
|
textDecorationColor: !0,
|
|
691
685
|
textShadowColor: !0
|
|
692
686
|
}, tokenCategories = {
|
|
@@ -848,7 +842,6 @@ var require_validStyleProps_native = __commonJS({
|
|
|
848
842
|
...tokenCategories.radius,
|
|
849
843
|
...tokenCategories.size,
|
|
850
844
|
...tokenCategories.radius,
|
|
851
|
-
...validStylesOnBaseProps,
|
|
852
845
|
...stylePropsTransform,
|
|
853
846
|
...stylePropsUnitless,
|
|
854
847
|
...import_constants4.isAndroid ? { elevationAndroid: !0 } : {}
|
|
@@ -2508,56 +2501,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
2508
2501
|
}
|
|
2509
2502
|
});
|
|
2510
2503
|
|
|
2511
|
-
// ../web/dist/cjs/helpers/skipProps.native.js
|
|
2512
|
-
var require_skipProps_native = __commonJS({
|
|
2513
|
-
"../web/dist/cjs/helpers/skipProps.native.js"(exports2, module2) {
|
|
2514
|
-
"use strict";
|
|
2515
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2516
|
-
for (var name in all)
|
|
2517
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2518
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
2519
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
2520
|
-
for (let key of __getOwnPropNames2(from))
|
|
2521
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2522
|
-
return to;
|
|
2523
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), skipProps_exports = {};
|
|
2524
|
-
__export2(skipProps_exports, {
|
|
2525
|
-
skipProps: () => skipProps
|
|
2526
|
-
});
|
|
2527
|
-
module2.exports = __toCommonJS2(skipProps_exports);
|
|
2528
|
-
var skipProps = {
|
|
2529
|
-
untilMeasured: 1,
|
|
2530
|
-
animation: 1,
|
|
2531
|
-
space: 1,
|
|
2532
|
-
animateOnly: 1,
|
|
2533
|
-
disableClassName: 1,
|
|
2534
|
-
debug: 1,
|
|
2535
|
-
componentName: 1,
|
|
2536
|
-
disableOptimization: 1,
|
|
2537
|
-
tag: 1,
|
|
2538
|
-
style: 1,
|
|
2539
|
-
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
2540
|
-
group: 1,
|
|
2541
|
-
themeInverse: 1
|
|
2542
|
-
};
|
|
2543
|
-
process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
|
|
2544
|
-
Object.assign(skipProps, {
|
|
2545
|
-
whiteSpace: 1,
|
|
2546
|
-
wordWrap: 1,
|
|
2547
|
-
textOverflow: 1,
|
|
2548
|
-
textDecorationDistance: 1,
|
|
2549
|
-
cursor: 1,
|
|
2550
|
-
contain: 1,
|
|
2551
|
-
boxSizing: 1,
|
|
2552
|
-
boxShadow: 1,
|
|
2553
|
-
outlineStyle: 1,
|
|
2554
|
-
outlineOffset: 1,
|
|
2555
|
-
outlineWidth: 1,
|
|
2556
|
-
outlineColor: 1
|
|
2557
|
-
});
|
|
2558
|
-
}
|
|
2559
|
-
});
|
|
2560
|
-
|
|
2561
2504
|
// ../web/dist/cjs/constants/accessibilityDirectMap.native.js
|
|
2562
2505
|
var require_accessibilityDirectMap_native = __commonJS({
|
|
2563
2506
|
"../web/dist/cjs/constants/accessibilityDirectMap.native.js"(exports2, module2) {
|
|
@@ -3386,6 +3329,51 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
3386
3329
|
}
|
|
3387
3330
|
});
|
|
3388
3331
|
|
|
3332
|
+
// ../web/dist/cjs/helpers/isObj.native.js
|
|
3333
|
+
var require_isObj_native = __commonJS({
|
|
3334
|
+
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
3335
|
+
"use strict";
|
|
3336
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3337
|
+
for (var name in all)
|
|
3338
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3339
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3340
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3341
|
+
for (let key of __getOwnPropNames2(from))
|
|
3342
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3343
|
+
return to;
|
|
3344
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), isObj_exports = {};
|
|
3345
|
+
__export2(isObj_exports, {
|
|
3346
|
+
isObj: () => isObj
|
|
3347
|
+
});
|
|
3348
|
+
module2.exports = __toCommonJS2(isObj_exports);
|
|
3349
|
+
var isObj = (x) => x && !Array.isArray(x) && typeof x == "object";
|
|
3350
|
+
}
|
|
3351
|
+
});
|
|
3352
|
+
|
|
3353
|
+
// ../web/dist/cjs/helpers/log.native.js
|
|
3354
|
+
var require_log_native = __commonJS({
|
|
3355
|
+
"../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
|
|
3356
|
+
"use strict";
|
|
3357
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3358
|
+
for (var name in all)
|
|
3359
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3360
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3361
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3362
|
+
for (let key of __getOwnPropNames2(from))
|
|
3363
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3364
|
+
return to;
|
|
3365
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), log_exports = {};
|
|
3366
|
+
__export2(log_exports, {
|
|
3367
|
+
log: () => log
|
|
3368
|
+
});
|
|
3369
|
+
module2.exports = __toCommonJS2(log_exports);
|
|
3370
|
+
function log(...args) {
|
|
3371
|
+
if (process.env.NODE_ENV !== "production")
|
|
3372
|
+
return console.log(...args);
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
});
|
|
3376
|
+
|
|
3389
3377
|
// ../web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
3390
3378
|
var require_normalizeValueWithProperty_native = __commonJS({
|
|
3391
3379
|
"../web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
@@ -3438,62 +3426,6 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
3438
3426
|
}
|
|
3439
3427
|
});
|
|
3440
3428
|
|
|
3441
|
-
// ../web/dist/cjs/helpers/transformsToString.native.js
|
|
3442
|
-
var require_transformsToString_native = __commonJS({
|
|
3443
|
-
"../web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
|
|
3444
|
-
"use strict";
|
|
3445
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3446
|
-
for (var name in all)
|
|
3447
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3448
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3449
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3450
|
-
for (let key of __getOwnPropNames2(from))
|
|
3451
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3452
|
-
return to;
|
|
3453
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), transformsToString_exports = {};
|
|
3454
|
-
__export2(transformsToString_exports, {
|
|
3455
|
-
transformsToString: () => transformsToString
|
|
3456
|
-
});
|
|
3457
|
-
module2.exports = __toCommonJS2(transformsToString_exports);
|
|
3458
|
-
var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
|
|
3459
|
-
function transformsToString(transforms) {
|
|
3460
|
-
return transforms.map(
|
|
3461
|
-
// { scale: 2 } => 'scale(2)'
|
|
3462
|
-
// { translateX: 20 } => 'translateX(20px)'
|
|
3463
|
-
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
3464
|
-
(transform) => {
|
|
3465
|
-
let type = Object.keys(transform)[0], value = transform[type];
|
|
3466
|
-
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
3467
|
-
}
|
|
3468
|
-
).join(" ");
|
|
3469
|
-
}
|
|
3470
|
-
}
|
|
3471
|
-
});
|
|
3472
|
-
|
|
3473
|
-
// ../web/dist/cjs/helpers/log.native.js
|
|
3474
|
-
var require_log_native = __commonJS({
|
|
3475
|
-
"../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
|
|
3476
|
-
"use strict";
|
|
3477
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3478
|
-
for (var name in all)
|
|
3479
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3480
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3481
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3482
|
-
for (let key of __getOwnPropNames2(from))
|
|
3483
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3484
|
-
return to;
|
|
3485
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), log_exports = {};
|
|
3486
|
-
__export2(log_exports, {
|
|
3487
|
-
log: () => log
|
|
3488
|
-
});
|
|
3489
|
-
module2.exports = __toCommonJS2(log_exports);
|
|
3490
|
-
function log(...args) {
|
|
3491
|
-
if (process.env.NODE_ENV !== "production")
|
|
3492
|
-
return console.log(...args);
|
|
3493
|
-
}
|
|
3494
|
-
}
|
|
3495
|
-
});
|
|
3496
|
-
|
|
3497
3429
|
// ../web/dist/cjs/helpers/expandStyle.native.js
|
|
3498
3430
|
var require_expandStyle_native = __commonJS({
|
|
3499
3431
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports2, module2) {
|
|
@@ -3553,27 +3485,6 @@ var require_expandStyle_native = __commonJS({
|
|
|
3553
3485
|
}
|
|
3554
3486
|
});
|
|
3555
3487
|
|
|
3556
|
-
// ../web/dist/cjs/helpers/isObj.native.js
|
|
3557
|
-
var require_isObj_native = __commonJS({
|
|
3558
|
-
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
3559
|
-
"use strict";
|
|
3560
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3561
|
-
for (var name in all)
|
|
3562
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3563
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3564
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3565
|
-
for (let key of __getOwnPropNames2(from))
|
|
3566
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3567
|
-
return to;
|
|
3568
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), isObj_exports = {};
|
|
3569
|
-
__export2(isObj_exports, {
|
|
3570
|
-
isObj: () => isObj
|
|
3571
|
-
});
|
|
3572
|
-
module2.exports = __toCommonJS2(isObj_exports);
|
|
3573
|
-
var isObj = (x) => x && !Array.isArray(x) && typeof x == "object";
|
|
3574
|
-
}
|
|
3575
|
-
});
|
|
3576
|
-
|
|
3577
3488
|
// ../web/dist/cjs/helpers/normalizeStyle.native.js
|
|
3578
3489
|
var require_normalizeStyle_native = __commonJS({
|
|
3579
3490
|
"../web/dist/cjs/helpers/normalizeStyle.native.js"(exports2, module2) {
|
|
@@ -3674,6 +3585,56 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
3674
3585
|
}
|
|
3675
3586
|
});
|
|
3676
3587
|
|
|
3588
|
+
// ../web/dist/cjs/helpers/skipProps.native.js
|
|
3589
|
+
var require_skipProps_native = __commonJS({
|
|
3590
|
+
"../web/dist/cjs/helpers/skipProps.native.js"(exports2, module2) {
|
|
3591
|
+
"use strict";
|
|
3592
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3593
|
+
for (var name in all)
|
|
3594
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3595
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3596
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3597
|
+
for (let key of __getOwnPropNames2(from))
|
|
3598
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3599
|
+
return to;
|
|
3600
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), skipProps_exports = {};
|
|
3601
|
+
__export2(skipProps_exports, {
|
|
3602
|
+
skipProps: () => skipProps
|
|
3603
|
+
});
|
|
3604
|
+
module2.exports = __toCommonJS2(skipProps_exports);
|
|
3605
|
+
var skipProps = {
|
|
3606
|
+
untilMeasured: 1,
|
|
3607
|
+
animation: 1,
|
|
3608
|
+
space: 1,
|
|
3609
|
+
animateOnly: 1,
|
|
3610
|
+
disableClassName: 1,
|
|
3611
|
+
debug: 1,
|
|
3612
|
+
componentName: 1,
|
|
3613
|
+
disableOptimization: 1,
|
|
3614
|
+
tag: 1,
|
|
3615
|
+
style: 1,
|
|
3616
|
+
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
3617
|
+
group: 1,
|
|
3618
|
+
themeInverse: 1
|
|
3619
|
+
};
|
|
3620
|
+
process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
|
|
3621
|
+
Object.assign(skipProps, {
|
|
3622
|
+
whiteSpace: 1,
|
|
3623
|
+
wordWrap: 1,
|
|
3624
|
+
textOverflow: 1,
|
|
3625
|
+
textDecorationDistance: 1,
|
|
3626
|
+
cursor: 1,
|
|
3627
|
+
contain: 1,
|
|
3628
|
+
boxSizing: 1,
|
|
3629
|
+
boxShadow: 1,
|
|
3630
|
+
outlineStyle: 1,
|
|
3631
|
+
outlineOffset: 1,
|
|
3632
|
+
outlineWidth: 1,
|
|
3633
|
+
outlineColor: 1
|
|
3634
|
+
});
|
|
3635
|
+
}
|
|
3636
|
+
});
|
|
3637
|
+
|
|
3677
3638
|
// ../web/dist/cjs/helpers/propMapper.native.js
|
|
3678
3639
|
var require_propMapper_native = __commonJS({
|
|
3679
3640
|
"../web/dist/cjs/helpers/propMapper.native.js"(exports2, module2) {
|
|
@@ -3916,6 +3877,38 @@ var require_propMapper_native = __commonJS({
|
|
|
3916
3877
|
}
|
|
3917
3878
|
});
|
|
3918
3879
|
|
|
3880
|
+
// ../web/dist/cjs/helpers/transformsToString.native.js
|
|
3881
|
+
var require_transformsToString_native = __commonJS({
|
|
3882
|
+
"../web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
|
|
3883
|
+
"use strict";
|
|
3884
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3885
|
+
for (var name in all)
|
|
3886
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3887
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3888
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3889
|
+
for (let key of __getOwnPropNames2(from))
|
|
3890
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3891
|
+
return to;
|
|
3892
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), transformsToString_exports = {};
|
|
3893
|
+
__export2(transformsToString_exports, {
|
|
3894
|
+
transformsToString: () => transformsToString
|
|
3895
|
+
});
|
|
3896
|
+
module2.exports = __toCommonJS2(transformsToString_exports);
|
|
3897
|
+
var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
|
|
3898
|
+
function transformsToString(transforms) {
|
|
3899
|
+
return transforms.map(
|
|
3900
|
+
// { scale: 2 } => 'scale(2)'
|
|
3901
|
+
// { translateX: 20 } => 'translateX(20px)'
|
|
3902
|
+
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
3903
|
+
(transform) => {
|
|
3904
|
+
let type = Object.keys(transform)[0], value = transform[type];
|
|
3905
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
|
|
3906
|
+
}
|
|
3907
|
+
).join(" ");
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3910
|
+
});
|
|
3911
|
+
|
|
3919
3912
|
// ../web/dist/cjs/helpers/getSplitStyles.native.js
|
|
3920
3913
|
var require_getSplitStyles_native = __commonJS({
|
|
3921
3914
|
"../web/dist/cjs/helpers/getSplitStyles.native.js"(exports2, module2) {
|
|
@@ -3936,7 +3929,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3936
3929
|
useSplitStyles: () => useSplitStyles
|
|
3937
3930
|
});
|
|
3938
3931
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
3939
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(),
|
|
3932
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = 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 = "-";
|
|
3940
3933
|
function isValidStyleKey(key, staticConfig) {
|
|
3941
3934
|
var _a;
|
|
3942
3935
|
return (staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles))[key] || ((_a = staticConfig.acceptTokens) == null ? void 0 : _a[key]);
|
|
@@ -4334,14 +4327,14 @@ current`, {
|
|
|
4334
4327
|
return result;
|
|
4335
4328
|
};
|
|
4336
4329
|
function mergeStyle(styleState, key, val, disableNormalize = !1) {
|
|
4337
|
-
let { classNames, viewProps, usedKeys, styleProps } = styleState;
|
|
4330
|
+
let { classNames, viewProps, usedKeys, styleProps, staticConfig } = styleState;
|
|
4338
4331
|
if (import_constants4.isWeb && (val == null ? void 0 : val[0]) === "_")
|
|
4339
4332
|
classNames[key] = val, usedKeys[key] || (usedKeys[key] = 1);
|
|
4340
4333
|
else if (key in import_helpers.stylePropsTransform)
|
|
4341
4334
|
styleState.transforms || (styleState.transforms = {}), styleState.transforms[key] = val;
|
|
4342
4335
|
else {
|
|
4343
4336
|
let out = import_constants4.isWeb && !disableNormalize && !styleProps.noNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
|
|
4344
|
-
key in
|
|
4337
|
+
staticConfig.acceptTokens && key in staticConfig.acceptTokens ? viewProps[key] = out : (styleState.style || (styleState.style = {}), styleState.style[key] = out);
|
|
4345
4338
|
}
|
|
4346
4339
|
}
|
|
4347
4340
|
var getSubStyle = (styleState, subKey, styleIn, avoidMergeTransform) => {
|