tamagui 1.86.1 → 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 +134 -133
- 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 +52 -52
- package/types/views/Input.d.ts +1 -1
package/dist/native.js
CHANGED
|
@@ -2655,6 +2655,27 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
2655
2655
|
}
|
|
2656
2656
|
});
|
|
2657
2657
|
|
|
2658
|
+
// ../web/dist/cjs/helpers/defaultOffset.native.js
|
|
2659
|
+
var require_defaultOffset_native = __commonJS({
|
|
2660
|
+
"../web/dist/cjs/helpers/defaultOffset.native.js"(exports2, module2) {
|
|
2661
|
+
"use strict";
|
|
2662
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2663
|
+
for (var name in all)
|
|
2664
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2665
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
2666
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
2667
|
+
for (let key of __getOwnPropNames2(from))
|
|
2668
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2669
|
+
return to;
|
|
2670
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), defaultOffset_exports = {};
|
|
2671
|
+
__export2(defaultOffset_exports, {
|
|
2672
|
+
defaultOffset: () => defaultOffset
|
|
2673
|
+
});
|
|
2674
|
+
module2.exports = __toCommonJS2(defaultOffset_exports);
|
|
2675
|
+
var defaultOffset = { height: 0, width: 0 };
|
|
2676
|
+
}
|
|
2677
|
+
});
|
|
2678
|
+
|
|
2658
2679
|
// ../../node_modules/@react-native/normalize-color/index.js
|
|
2659
2680
|
var require_normalize_color = __commonJS({
|
|
2660
2681
|
"../../node_modules/@react-native/normalize-color/index.js"(exports2, module2) {
|
|
@@ -3123,7 +3144,7 @@ var require_index_native11 = __commonJS({
|
|
|
3123
3144
|
module2.exports = __toCommonJS2(src_exports2);
|
|
3124
3145
|
var normalizeColor = __toESM2(require_normalize_color()), norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
|
|
3125
3146
|
function rgba2(colorInt) {
|
|
3126
|
-
|
|
3147
|
+
let r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
|
|
3127
3148
|
return {
|
|
3128
3149
|
r,
|
|
3129
3150
|
g,
|
|
@@ -3135,27 +3156,6 @@ var require_index_native11 = __commonJS({
|
|
|
3135
3156
|
}
|
|
3136
3157
|
});
|
|
3137
3158
|
|
|
3138
|
-
// ../web/dist/cjs/helpers/defaultOffset.native.js
|
|
3139
|
-
var require_defaultOffset_native = __commonJS({
|
|
3140
|
-
"../web/dist/cjs/helpers/defaultOffset.native.js"(exports2, module2) {
|
|
3141
|
-
"use strict";
|
|
3142
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3143
|
-
for (var name in all)
|
|
3144
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3145
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3146
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3147
|
-
for (let key of __getOwnPropNames2(from))
|
|
3148
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3149
|
-
return to;
|
|
3150
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), defaultOffset_exports = {};
|
|
3151
|
-
__export2(defaultOffset_exports, {
|
|
3152
|
-
defaultOffset: () => defaultOffset
|
|
3153
|
-
});
|
|
3154
|
-
module2.exports = __toCommonJS2(defaultOffset_exports);
|
|
3155
|
-
var defaultOffset = { height: 0, width: 0 };
|
|
3156
|
-
}
|
|
3157
|
-
});
|
|
3158
|
-
|
|
3159
3159
|
// ../web/dist/cjs/helpers/normalizeColor.native.js
|
|
3160
3160
|
var require_normalizeColor_native = __commonJS({
|
|
3161
3161
|
"../web/dist/cjs/helpers/normalizeColor.native.js"(exports2, module2) {
|
|
@@ -3170,6 +3170,7 @@ var require_normalizeColor_native = __commonJS({
|
|
|
3170
3170
|
return to;
|
|
3171
3171
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeColor_exports = {};
|
|
3172
3172
|
__export2(normalizeColor_exports, {
|
|
3173
|
+
getRgba: () => getRgba,
|
|
3173
3174
|
normalizeColor: () => normalizeColor,
|
|
3174
3175
|
rgba: () => import_normalize_css_color2.rgba
|
|
3175
3176
|
});
|
|
@@ -3179,65 +3180,17 @@ var require_normalizeColor_native = __commonJS({
|
|
|
3179
3180
|
return;
|
|
3180
3181
|
if (color[0] === "$" || color.startsWith("var("))
|
|
3181
3182
|
return color;
|
|
3182
|
-
let
|
|
3183
|
-
if (
|
|
3184
|
-
let {
|
|
3185
|
-
return `
|
|
3186
|
-
}
|
|
3187
|
-
|
|
3188
|
-
}
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
// ../web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
3193
|
-
var require_normalizeValueWithProperty_native = __commonJS({
|
|
3194
|
-
"../web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
3195
|
-
"use strict";
|
|
3196
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3197
|
-
for (var name in all)
|
|
3198
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3199
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3200
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3201
|
-
for (let key of __getOwnPropNames2(from))
|
|
3202
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3203
|
-
return to;
|
|
3204
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeValueWithProperty_exports = {};
|
|
3205
|
-
__export2(normalizeValueWithProperty_exports, {
|
|
3206
|
-
normalizeValueWithProperty: () => normalizeValueWithProperty,
|
|
3207
|
-
reverseMapClassNameToValue: () => reverseMapClassNameToValue
|
|
3208
|
-
});
|
|
3209
|
-
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
3210
|
-
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
3211
|
-
...import_helpers.stylePropsAll,
|
|
3212
|
-
translateX: !0,
|
|
3213
|
-
translateY: !0
|
|
3183
|
+
let rgba3 = getRgba(color);
|
|
3184
|
+
if (rgba3) {
|
|
3185
|
+
let colors = `${rgba3.r},${rgba3.g},${rgba3.b}`;
|
|
3186
|
+
return opacity === 1 ? `rgb(${colors})` : `rgba(${colors},${opacity ?? rgba3.a ?? 1})`;
|
|
3187
|
+
}
|
|
3188
|
+
return color;
|
|
3189
|
+
}, getRgba = (color) => {
|
|
3190
|
+
let colorNum = (0, import_normalize_css_color.normalizeCSSColor)(color);
|
|
3191
|
+
if (colorNum != null)
|
|
3192
|
+
return (0, import_normalize_css_color.rgba)(colorNum);
|
|
3214
3193
|
};
|
|
3215
|
-
function normalizeValueWithProperty(value, property) {
|
|
3216
|
-
if (!import_constants4.isWeb || typeof value == "boolean" || property && property in import_helpers.stylePropsUnitless || property && !(property in stylePropsAllPlusTransforms))
|
|
3217
|
-
return value;
|
|
3218
|
-
let res = value;
|
|
3219
|
-
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
3220
|
-
}
|
|
3221
|
-
var rcache = {};
|
|
3222
|
-
function reverseMapClassNameToValue(key, className) {
|
|
3223
|
-
let cssRule = (0, import_insertStyleRule.getAllSelectors)()[className];
|
|
3224
|
-
if (rcache[cssRule])
|
|
3225
|
-
return rcache[cssRule];
|
|
3226
|
-
if (!cssRule) {
|
|
3227
|
-
process.env.NODE_ENV === "development" && console.warn(
|
|
3228
|
-
`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`
|
|
3229
|
-
);
|
|
3230
|
-
return;
|
|
3231
|
-
}
|
|
3232
|
-
let cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
3233
|
-
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:", {
|
|
3234
|
-
res,
|
|
3235
|
-
cssVal,
|
|
3236
|
-
cssRule,
|
|
3237
|
-
key,
|
|
3238
|
-
className
|
|
3239
|
-
}), res;
|
|
3240
|
-
}
|
|
3241
3194
|
}
|
|
3242
3195
|
});
|
|
3243
3196
|
|
|
@@ -3253,30 +3206,28 @@ var require_normalizeShadow_native = __commonJS({
|
|
|
3253
3206
|
for (let key of __getOwnPropNames2(from))
|
|
3254
3207
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3255
3208
|
return to;
|
|
3256
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
3257
|
-
__export2(
|
|
3209
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeShadow_exports = {};
|
|
3210
|
+
__export2(normalizeShadow_exports, {
|
|
3258
3211
|
normalizeShadow: () => normalizeShadow
|
|
3259
3212
|
});
|
|
3260
|
-
module2.exports = __toCommonJS2(
|
|
3261
|
-
var
|
|
3213
|
+
module2.exports = __toCommonJS2(normalizeShadow_exports);
|
|
3214
|
+
var import_defaultOffset = require_defaultOffset_native(), import_normalizeColor = require_normalizeColor_native();
|
|
3262
3215
|
function normalizeShadow({
|
|
3263
3216
|
shadowColor,
|
|
3264
3217
|
shadowOffset,
|
|
3265
3218
|
shadowOpacity,
|
|
3266
3219
|
shadowRadius
|
|
3267
3220
|
}) {
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
throw new Error(`invalid shadow color ${colorStr}`);
|
|
3271
|
-
let { r, g, b, a } = (0, import_normalizeColor.rgba)(val);
|
|
3221
|
+
var _a;
|
|
3222
|
+
let { height, width } = shadowOffset || import_defaultOffset.defaultOffset;
|
|
3272
3223
|
return {
|
|
3273
3224
|
shadowOffset: {
|
|
3274
|
-
width:
|
|
3275
|
-
height:
|
|
3225
|
+
width: width || 0,
|
|
3226
|
+
height: height || 0
|
|
3276
3227
|
},
|
|
3277
|
-
shadowRadius:
|
|
3278
|
-
shadowColor:
|
|
3279
|
-
shadowOpacity: shadowOpacity ?? a
|
|
3228
|
+
shadowRadius: shadowRadius || 0,
|
|
3229
|
+
shadowColor: (0, import_normalizeColor.normalizeColor)(shadowColor, 1),
|
|
3230
|
+
shadowOpacity: shadowOpacity ?? (shadowColor ? (_a = (0, import_normalizeColor.getRgba)(shadowColor)) == null ? void 0 : _a.a : 1)
|
|
3280
3231
|
};
|
|
3281
3232
|
}
|
|
3282
3233
|
}
|
|
@@ -3365,6 +3316,58 @@ var require_log_native = __commonJS({
|
|
|
3365
3316
|
}
|
|
3366
3317
|
});
|
|
3367
3318
|
|
|
3319
|
+
// ../web/dist/cjs/helpers/normalizeValueWithProperty.native.js
|
|
3320
|
+
var require_normalizeValueWithProperty_native = __commonJS({
|
|
3321
|
+
"../web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports2, module2) {
|
|
3322
|
+
"use strict";
|
|
3323
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3324
|
+
for (var name in all)
|
|
3325
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3326
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3327
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3328
|
+
for (let key of __getOwnPropNames2(from))
|
|
3329
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3330
|
+
return to;
|
|
3331
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeValueWithProperty_exports = {};
|
|
3332
|
+
__export2(normalizeValueWithProperty_exports, {
|
|
3333
|
+
normalizeValueWithProperty: () => normalizeValueWithProperty,
|
|
3334
|
+
reverseMapClassNameToValue: () => reverseMapClassNameToValue
|
|
3335
|
+
});
|
|
3336
|
+
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
3337
|
+
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_insertStyleRule = require_insertStyleRule_native(), stylePropsAllPlusTransforms = {
|
|
3338
|
+
...import_helpers.stylePropsAll,
|
|
3339
|
+
translateX: !0,
|
|
3340
|
+
translateY: !0
|
|
3341
|
+
};
|
|
3342
|
+
function normalizeValueWithProperty(value, property = "") {
|
|
3343
|
+
if (!import_constants4.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value == "boolean")
|
|
3344
|
+
return value;
|
|
3345
|
+
let res = value;
|
|
3346
|
+
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
3347
|
+
}
|
|
3348
|
+
var rcache = {};
|
|
3349
|
+
function reverseMapClassNameToValue(key, className) {
|
|
3350
|
+
let cssRule = (0, import_insertStyleRule.getAllSelectors)()[className];
|
|
3351
|
+
if (rcache[cssRule])
|
|
3352
|
+
return rcache[cssRule];
|
|
3353
|
+
if (!cssRule) {
|
|
3354
|
+
process.env.NODE_ENV === "development" && console.warn(
|
|
3355
|
+
`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`
|
|
3356
|
+
);
|
|
3357
|
+
return;
|
|
3358
|
+
}
|
|
3359
|
+
let cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
3360
|
+
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:", {
|
|
3361
|
+
res,
|
|
3362
|
+
cssVal,
|
|
3363
|
+
cssRule,
|
|
3364
|
+
key,
|
|
3365
|
+
className
|
|
3366
|
+
}), res;
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
});
|
|
3370
|
+
|
|
3368
3371
|
// ../web/dist/cjs/helpers/expandStyle.native.js
|
|
3369
3372
|
var require_expandStyle_native = __commonJS({
|
|
3370
3373
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports2, module2) {
|
|
@@ -3424,9 +3427,30 @@ var require_expandStyle_native = __commonJS({
|
|
|
3424
3427
|
}
|
|
3425
3428
|
});
|
|
3426
3429
|
|
|
3427
|
-
// ../web/dist/cjs/helpers/
|
|
3428
|
-
var
|
|
3429
|
-
"../web/dist/cjs/helpers/
|
|
3430
|
+
// ../web/dist/cjs/helpers/isObj.native.js
|
|
3431
|
+
var require_isObj_native = __commonJS({
|
|
3432
|
+
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
3433
|
+
"use strict";
|
|
3434
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3435
|
+
for (var name in all)
|
|
3436
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3437
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
3438
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
3439
|
+
for (let key of __getOwnPropNames2(from))
|
|
3440
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3441
|
+
return to;
|
|
3442
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), isObj_exports = {};
|
|
3443
|
+
__export2(isObj_exports, {
|
|
3444
|
+
isObj: () => isObj
|
|
3445
|
+
});
|
|
3446
|
+
module2.exports = __toCommonJS2(isObj_exports);
|
|
3447
|
+
var isObj = (x) => x && !Array.isArray(x) && typeof x == "object";
|
|
3448
|
+
}
|
|
3449
|
+
});
|
|
3450
|
+
|
|
3451
|
+
// ../web/dist/cjs/helpers/normalizeStyle.native.js
|
|
3452
|
+
var require_normalizeStyle_native = __commonJS({
|
|
3453
|
+
"../web/dist/cjs/helpers/normalizeStyle.native.js"(exports2, module2) {
|
|
3430
3454
|
"use strict";
|
|
3431
3455
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3432
3456
|
for (var name in all)
|
|
@@ -3436,20 +3460,21 @@ var require_expandStylesAndRemoveNullishValues_native = __commonJS({
|
|
|
3436
3460
|
for (let key of __getOwnPropNames2(from))
|
|
3437
3461
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3438
3462
|
return to;
|
|
3439
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
3440
|
-
__export2(
|
|
3441
|
-
|
|
3463
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), normalizeStyle_exports = {};
|
|
3464
|
+
__export2(normalizeStyle_exports, {
|
|
3465
|
+
normalizeStyle: () => normalizeStyle
|
|
3442
3466
|
});
|
|
3443
|
-
module2.exports = __toCommonJS2(
|
|
3444
|
-
var import_expandStyle = require_expandStyle_native(), import_expandStyles = require_expandStyles_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_pseudoDescriptors = require_pseudoDescriptors_native();
|
|
3445
|
-
function
|
|
3467
|
+
module2.exports = __toCommonJS2(normalizeStyle_exports);
|
|
3468
|
+
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();
|
|
3469
|
+
function normalizeStyle(style, disableNormalize = !1) {
|
|
3446
3470
|
let res = {};
|
|
3447
3471
|
for (let key in style) {
|
|
3448
3472
|
let prop = style[key];
|
|
3449
3473
|
if (prop == null)
|
|
3450
3474
|
continue;
|
|
3451
|
-
if (key in import_pseudoDescriptors.pseudoDescriptors
|
|
3452
|
-
|
|
3475
|
+
if (key in import_pseudoDescriptors.pseudoDescriptors || // this should capture all parent-based styles like media, group, etc
|
|
3476
|
+
key[0] === "$" && (0, import_isObj.isObj)(prop)) {
|
|
3477
|
+
res[key] = normalizeStyle(prop, disableNormalize);
|
|
3453
3478
|
continue;
|
|
3454
3479
|
}
|
|
3455
3480
|
let value = disableNormalize ? prop : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(prop, key), out = (0, import_expandStyle.expandStyle)(key, value);
|
|
@@ -3525,27 +3550,6 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
3525
3550
|
}
|
|
3526
3551
|
});
|
|
3527
3552
|
|
|
3528
|
-
// ../web/dist/cjs/helpers/isObj.native.js
|
|
3529
|
-
var require_isObj_native = __commonJS({
|
|
3530
|
-
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
3531
|
-
"use strict";
|
|
3532
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3533
|
-
for (var name in all)
|
|
3534
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
3535
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
3536
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
3537
|
-
for (let key of __getOwnPropNames2(from))
|
|
3538
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
3539
|
-
return to;
|
|
3540
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), isObj_exports = {};
|
|
3541
|
-
__export2(isObj_exports, {
|
|
3542
|
-
isObj: () => isObj
|
|
3543
|
-
});
|
|
3544
|
-
module2.exports = __toCommonJS2(isObj_exports);
|
|
3545
|
-
var isObj = (x) => x && !Array.isArray(x) && typeof x == "object";
|
|
3546
|
-
}
|
|
3547
|
-
});
|
|
3548
|
-
|
|
3549
3553
|
// ../web/dist/cjs/helpers/propMapper.native.js
|
|
3550
3554
|
var require_propMapper_native = __commonJS({
|
|
3551
3555
|
"../web/dist/cjs/helpers/propMapper.native.js"(exports2, module2) {
|
|
@@ -3566,7 +3570,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3566
3570
|
propMapper: () => propMapper
|
|
3567
3571
|
});
|
|
3568
3572
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
3569
|
-
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_config = require_config_native(), import_isDevTools = require_isDevTools_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(),
|
|
3573
|
+
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), 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) => {
|
|
3570
3574
|
var _a;
|
|
3571
3575
|
if (lastFontFamilyToken = null, !import_constants4.isAndroid && key === "elevationAndroid")
|
|
3572
3576
|
return;
|
|
@@ -3635,10 +3639,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3635
3639
|
);
|
|
3636
3640
|
}
|
|
3637
3641
|
if (variantValue) {
|
|
3638
|
-
let expanded = (0,
|
|
3639
|
-
variantValue,
|
|
3640
|
-
!!styleProps.noNormalize
|
|
3641
|
-
);
|
|
3642
|
+
let expanded = (0, import_normalizeStyle.normalizeStyle)(variantValue, !!styleProps.noNormalize);
|
|
3642
3643
|
process.env.NODE_ENV === "development" && debug === "verbose" && console.info(" expanding styles from ", variantValue, "to", expanded);
|
|
3643
3644
|
let next = Object.entries(expanded);
|
|
3644
3645
|
return fontFamilyResult && fontFamilyResult[0] === "$" && fontFamilyCache.set(next, (0, import_createVariable.getVariableValue)(fontFamilyResult)), next;
|
|
@@ -3910,7 +3911,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3910
3911
|
let shouldPassProp = !isStyleProp || // is in parent variants
|
|
3911
3912
|
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;
|
|
3912
3913
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(
|
|
3913
|
-
|
|
3914
|
+
` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`
|
|
3914
3915
|
), (0, import_log.log)({ isVariant, valInit, shouldPassProp }), import_constants4.isClient && (0, import_log.log)({
|
|
3915
3916
|
variants,
|
|
3916
3917
|
variant: variants == null ? void 0 : variants[keyInit],
|
|
@@ -4163,7 +4164,7 @@ current`, {
|
|
|
4163
4164
|
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
|
|
4164
4165
|
}
|
|
4165
4166
|
if (className && (classNames.className = className), process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
|
|
4166
|
-
console.groupCollapsed("
|
|
4167
|
+
console.groupCollapsed("\u{1F539} getSplitStyles ===>");
|
|
4167
4168
|
try {
|
|
4168
4169
|
let logs = {
|
|
4169
4170
|
...result,
|
|
@@ -6504,7 +6505,7 @@ var require_index_native12 = __commonJS({
|
|
|
6504
6505
|
__reExport2(src_exports2, require_createStyledContext_native(), module2.exports);
|
|
6505
6506
|
__reExport2(src_exports2, require_expandStyles_native(), module2.exports);
|
|
6506
6507
|
__reExport2(src_exports2, require_createMediaStyle_native(), module2.exports);
|
|
6507
|
-
__reExport2(src_exports2,
|
|
6508
|
+
__reExport2(src_exports2, require_normalizeStyle_native(), module2.exports);
|
|
6508
6509
|
__reExport2(src_exports2, require_propMapper_native(), module2.exports);
|
|
6509
6510
|
__reExport2(src_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
6510
6511
|
__reExport2(src_exports2, require_getSplitStyles_native(), module2.exports);
|