tamagui 1.101.0 → 1.101.1
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 +384 -140
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +205 -146
- package/dist/test.native.js.map +3 -3
- package/package.json +54 -54
- package/types/views/Anchor.d.ts.map +1 -1
- package/types/views/Fieldset.d.ts +4 -4
- package/types/views/Input.d.ts +97 -296
- package/types/views/Input.d.ts.map +1 -1
- package/types/views/TextArea.d.ts +2 -22
- package/types/views/TextArea.d.ts.map +1 -1
package/dist/native.js
CHANGED
|
@@ -1040,7 +1040,12 @@ var require_concatClassName_native = __commonJS({
|
|
|
1040
1040
|
var require_types_native2 = __commonJS({
|
|
1041
1041
|
"../helpers/dist/cjs/types.native.js"(exports2, module2) {
|
|
1042
1042
|
"use strict";
|
|
1043
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty,
|
|
1043
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
1044
|
+
for (var name in all) __defProp2(target, name, {
|
|
1045
|
+
get: all[name],
|
|
1046
|
+
enumerable: !0
|
|
1047
|
+
});
|
|
1048
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
1044
1049
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
1045
1050
|
if (from && typeof from == "object" || typeof from == "function") try {
|
|
1046
1051
|
for (var _loop = function() {
|
|
@@ -1068,7 +1073,25 @@ var require_types_native2 = __commonJS({
|
|
|
1068
1073
|
value: !0
|
|
1069
1074
|
}), mod);
|
|
1070
1075
|
}, types_exports = {};
|
|
1076
|
+
__export2(types_exports, {
|
|
1077
|
+
StyleObjectIdentifier: function() {
|
|
1078
|
+
return StyleObjectIdentifier;
|
|
1079
|
+
},
|
|
1080
|
+
StyleObjectProperty: function() {
|
|
1081
|
+
return StyleObjectProperty;
|
|
1082
|
+
},
|
|
1083
|
+
StyleObjectPseudo: function() {
|
|
1084
|
+
return StyleObjectPseudo;
|
|
1085
|
+
},
|
|
1086
|
+
StyleObjectRules: function() {
|
|
1087
|
+
return StyleObjectRules;
|
|
1088
|
+
},
|
|
1089
|
+
StyleObjectValue: function() {
|
|
1090
|
+
return StyleObjectValue;
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1071
1093
|
module2.exports = __toCommonJS2(types_exports);
|
|
1094
|
+
var StyleObjectProperty = 0, StyleObjectValue = 1, StyleObjectIdentifier = 2, StyleObjectPseudo = 3, StyleObjectRules = 4;
|
|
1072
1095
|
}
|
|
1073
1096
|
});
|
|
1074
1097
|
|
|
@@ -2456,7 +2479,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2456
2479
|
}
|
|
2457
2480
|
});
|
|
2458
2481
|
module2.exports = __toCommonJS2(insertStyleRule_exports);
|
|
2459
|
-
var import_constants4 = require_index_native6(), import_createVariable = require_createVariable_native();
|
|
2482
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native();
|
|
2460
2483
|
function _array_like_to_array2(arr, len) {
|
|
2461
2484
|
(len == null || len > arr.length) && (len = arr.length);
|
|
2462
2485
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -2734,8 +2757,9 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2734
2757
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2735
2758
|
try {
|
|
2736
2759
|
for (var _iterator = rulesToInsert[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
2737
|
-
var
|
|
2760
|
+
var styleObject = _step.value, identifier = styleObject[import_helpers.StyleObjectIdentifier];
|
|
2738
2761
|
if (shouldInsertStyleRules(identifier)) {
|
|
2762
|
+
var rules = styleObject[import_helpers.StyleObjectRules];
|
|
2739
2763
|
allSelectors[identifier] = rules.join(`
|
|
2740
2764
|
`), track(identifier), updateRules(identifier, rules);
|
|
2741
2765
|
var _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
|
|
@@ -2771,7 +2795,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2771
2795
|
}
|
|
2772
2796
|
}
|
|
2773
2797
|
}
|
|
2774
|
-
var minInsertAmt = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAGUI_INSERT_SELECTOR_TRIES :
|
|
2798
|
+
var minInsertAmt = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAGUI_INSERT_SELECTOR_TRIES : 1;
|
|
2775
2799
|
function shouldInsertStyleRules(identifier) {
|
|
2776
2800
|
if (process.env.TAMAGUI_REACT_19 || process.env.IS_STATIC === "is_static") return !0;
|
|
2777
2801
|
var total = totalSelectorsInserted.get(identifier);
|
|
@@ -3005,9 +3029,9 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
3005
3029
|
}
|
|
3006
3030
|
});
|
|
3007
3031
|
|
|
3008
|
-
// ../web/dist/cjs/hooks/
|
|
3009
|
-
var
|
|
3010
|
-
"../web/dist/cjs/hooks/
|
|
3032
|
+
// ../web/dist/cjs/hooks/useDidHydrateOnce.native.js
|
|
3033
|
+
var require_useDidHydrateOnce_native = __commonJS({
|
|
3034
|
+
"../web/dist/cjs/hooks/useDidHydrateOnce.native.js"(exports2, module2) {
|
|
3011
3035
|
"use strict";
|
|
3012
3036
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3013
3037
|
for (var name in all) __defProp2(target, name, {
|
|
@@ -3041,24 +3065,30 @@ var require_useDisableSSR_native = __commonJS({
|
|
|
3041
3065
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3042
3066
|
value: !0
|
|
3043
3067
|
}), mod);
|
|
3044
|
-
},
|
|
3045
|
-
__export2(
|
|
3046
|
-
|
|
3047
|
-
return
|
|
3068
|
+
}, useDidHydrateOnce_exports = {};
|
|
3069
|
+
__export2(useDidHydrateOnce_exports, {
|
|
3070
|
+
useDidHydrateOnce: function() {
|
|
3071
|
+
return useDidHydrateOnce;
|
|
3072
|
+
},
|
|
3073
|
+
useDidHydrateOnceRoot: function() {
|
|
3074
|
+
return useDidHydrateOnceRoot;
|
|
3048
3075
|
}
|
|
3049
3076
|
});
|
|
3050
|
-
module2.exports = __toCommonJS2(
|
|
3051
|
-
var
|
|
3052
|
-
function
|
|
3053
|
-
|
|
3054
|
-
|
|
3077
|
+
module2.exports = __toCommonJS2(useDidHydrateOnce_exports);
|
|
3078
|
+
var import_react4 = require("react");
|
|
3079
|
+
function useDidHydrateOnceRoot() {
|
|
3080
|
+
return process.env.TAMAGUI_REACT_19, !0;
|
|
3081
|
+
}
|
|
3082
|
+
var last = Date.now();
|
|
3083
|
+
function useDidHydrateOnce() {
|
|
3084
|
+
return !0;
|
|
3055
3085
|
}
|
|
3056
3086
|
}
|
|
3057
3087
|
});
|
|
3058
3088
|
|
|
3059
|
-
// ../web/dist/cjs/hooks/
|
|
3060
|
-
var
|
|
3061
|
-
"../web/dist/cjs/hooks/
|
|
3089
|
+
// ../web/dist/cjs/hooks/useDisableSSR.native.js
|
|
3090
|
+
var require_useDisableSSR_native = __commonJS({
|
|
3091
|
+
"../web/dist/cjs/hooks/useDisableSSR.native.js"(exports2, module2) {
|
|
3062
3092
|
"use strict";
|
|
3063
3093
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3064
3094
|
for (var name in all) __defProp2(target, name, {
|
|
@@ -3092,23 +3122,17 @@ var require_useDidHydrateOnce_native = __commonJS({
|
|
|
3092
3122
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3093
3123
|
value: !0
|
|
3094
3124
|
}), mod);
|
|
3095
|
-
},
|
|
3096
|
-
__export2(
|
|
3097
|
-
|
|
3098
|
-
return
|
|
3099
|
-
},
|
|
3100
|
-
useDidHydrateOnceRoot: function() {
|
|
3101
|
-
return useDidHydrateOnceRoot;
|
|
3125
|
+
}, useDisableSSR_exports = {};
|
|
3126
|
+
__export2(useDisableSSR_exports, {
|
|
3127
|
+
getDisableSSR: function() {
|
|
3128
|
+
return getDisableSSR;
|
|
3102
3129
|
}
|
|
3103
3130
|
});
|
|
3104
|
-
module2.exports = __toCommonJS2(
|
|
3105
|
-
var
|
|
3106
|
-
function
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
var last = Date.now();
|
|
3110
|
-
function useDidHydrateOnce() {
|
|
3111
|
-
return !0;
|
|
3131
|
+
module2.exports = __toCommonJS2(useDisableSSR_exports);
|
|
3132
|
+
var import_config = require_config_native();
|
|
3133
|
+
function getDisableSSR(componentContext) {
|
|
3134
|
+
var _componentContext_disableSSR;
|
|
3135
|
+
return (_componentContext_disableSSR = componentContext == null ? void 0 : componentContext.disableSSR) !== null && _componentContext_disableSSR !== void 0 ? _componentContext_disableSSR : (0, import_config.getConfig)().disableSSR;
|
|
3112
3136
|
}
|
|
3113
3137
|
}
|
|
3114
3138
|
});
|
|
@@ -3199,7 +3223,7 @@ var require_useMedia_native = __commonJS({
|
|
|
3199
3223
|
}
|
|
3200
3224
|
});
|
|
3201
3225
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
3202
|
-
var import_constants4 = require_index_native6(), import_react4 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(),
|
|
3226
|
+
var import_constants4 = require_index_native6(), import_react4 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_useDidHydrateOnce = require_useDidHydrateOnce_native(), import_useDisableSSR = require_useDisableSSR_native();
|
|
3203
3227
|
function _array_like_to_array2(arr, len) {
|
|
3204
3228
|
(len == null || len > arr.length) && (len = arr.length);
|
|
3205
3229
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -3297,12 +3321,11 @@ var require_useMedia_native = __commonJS({
|
|
|
3297
3321
|
}) : {}
|
|
3298
3322
|
), mediaQueryConfig3 = {}, getMedia3 = function() {
|
|
3299
3323
|
return mediaState3;
|
|
3300
|
-
}, mediaKeys = /* @__PURE__ */ new Set(), isMediaKey = function(key) {
|
|
3324
|
+
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
3301
3325
|
if (mediaKeys.has(key)) return !0;
|
|
3302
3326
|
if (key[0] === "$") {
|
|
3303
|
-
|
|
3304
|
-
if (
|
|
3305
|
-
if (key.startsWith("$group-")) return "group";
|
|
3327
|
+
var match = key.match(mediaKeyRegex);
|
|
3328
|
+
if (match) return match[1];
|
|
3306
3329
|
}
|
|
3307
3330
|
return !1;
|
|
3308
3331
|
}, initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = function(key) {
|
|
@@ -3354,23 +3377,31 @@ var require_useMedia_native = __commonJS({
|
|
|
3354
3377
|
return States.set(ref, _object_spread9({}, States.get(ref), props));
|
|
3355
3378
|
}
|
|
3356
3379
|
function getSnapshot(param) {
|
|
3357
|
-
var touched = param.touched, prev = param.prev, enabled = param.enabled
|
|
3358
|
-
if (
|
|
3359
|
-
var
|
|
3380
|
+
var touched = param.touched, prev = param.prev, enabled = param.enabled;
|
|
3381
|
+
if (enabled === !1) return prev;
|
|
3382
|
+
var hasntUpdated = !touched || touched.every(function(key) {
|
|
3360
3383
|
return mediaState3[key] === prev[key];
|
|
3361
|
-
})
|
|
3384
|
+
});
|
|
3362
3385
|
return hasntUpdated ? prev : mediaState3;
|
|
3363
3386
|
}
|
|
3364
3387
|
function useMedia3(uidIn, componentContext) {
|
|
3365
|
-
var uid = uidIn ?? (0, import_react4.useRef)(), hasHydrated = (0, import_useDidHydrateOnce.useDidHydrateOnce)(), isHydrated = !import_constants4.isWeb || (0, import_useDisableSSR.getDisableSSR)(componentContext) || hasHydrated, initialState = isHydrated ? mediaState3 : initState, componentState = States.get(uid);
|
|
3388
|
+
var debug = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, uid = uidIn ?? (0, import_react4.useRef)(), hasHydrated = (0, import_useDidHydrateOnce.useDidHydrateOnce)(), isHydrated = !import_constants4.isWeb || (0, import_useDisableSSR.getDisableSSR)(componentContext) || hasHydrated, initialState = isHydrated ? mediaState3 : initState, componentState = States.get(uid);
|
|
3366
3389
|
componentState || (componentState = {
|
|
3367
3390
|
prev: initialState
|
|
3368
|
-
}, States.set(uid, componentState))
|
|
3391
|
+
}, States.set(uid, componentState));
|
|
3369
3392
|
var _useState = _sliced_to_array((0, import_react4.useState)(initialState), 2), state = _useState[0], setState = _useState[1];
|
|
3370
3393
|
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
3371
3394
|
var update = function() {
|
|
3372
3395
|
setState(function(prev) {
|
|
3373
|
-
var componentState2 = States.get(uid)
|
|
3396
|
+
var componentState2 = States.get(uid);
|
|
3397
|
+
process.env.NODE_ENV === "development" && debug && console.info("useMedia() update?", getSnapshot(componentState2) !== prev, {
|
|
3398
|
+
componentState: componentState2,
|
|
3399
|
+
touched: _to_consumable_array2(componentState2.touched || []),
|
|
3400
|
+
prev: _object_spread9({}, componentState2.prev),
|
|
3401
|
+
next: getSnapshot(componentState2),
|
|
3402
|
+
mediaState: _object_spread9({}, mediaState3)
|
|
3403
|
+
});
|
|
3404
|
+
var next = getSnapshot(componentState2);
|
|
3374
3405
|
return next !== prev ? (componentState2.prev = next, next) : prev;
|
|
3375
3406
|
});
|
|
3376
3407
|
};
|
|
@@ -3383,7 +3414,7 @@ var require_useMedia_native = __commonJS({
|
|
|
3383
3414
|
get: function(_, key) {
|
|
3384
3415
|
if (typeof key == "string") {
|
|
3385
3416
|
var _componentState;
|
|
3386
|
-
(_componentState = componentState).touched || (_componentState.touched =
|
|
3417
|
+
(_componentState = componentState).touched || (_componentState.touched = []), componentState.touched.includes(key) || componentState.touched.push(key), process.env.NODE_ENV === "development" && debug && console.info("useMedia() TOUCH", key);
|
|
3387
3418
|
}
|
|
3388
3419
|
return Reflect.get(state, key);
|
|
3389
3420
|
}
|
|
@@ -5182,6 +5213,10 @@ var require_getGroupPropParts_native = __commonJS({
|
|
|
5182
5213
|
var require_createMediaStyle_native = __commonJS({
|
|
5183
5214
|
"../web/dist/cjs/helpers/createMediaStyle.native.js"(exports2, module2) {
|
|
5184
5215
|
"use strict";
|
|
5216
|
+
function _type_of(obj) {
|
|
5217
|
+
"@swc/helpers - typeof";
|
|
5218
|
+
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
5219
|
+
}
|
|
5185
5220
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5186
5221
|
for (var name in all) __defProp2(target, name, {
|
|
5187
5222
|
get: all[name],
|
|
@@ -5224,10 +5259,51 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
5224
5259
|
}
|
|
5225
5260
|
});
|
|
5226
5261
|
module2.exports = __toCommonJS2(createMediaStyle_exports);
|
|
5227
|
-
var import_config = require_config_native(), import_useMedia = require_useMedia_native(), import_getGroupPropParts = require_getGroupPropParts_native()
|
|
5262
|
+
var import_config = require_config_native(), import_useMedia = require_useMedia_native(), import_getGroupPropParts = require_getGroupPropParts_native();
|
|
5263
|
+
function _array_like_to_array2(arr, len) {
|
|
5264
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
5265
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
5266
|
+
return arr2;
|
|
5267
|
+
}
|
|
5268
|
+
function _array_with_holes(arr) {
|
|
5269
|
+
if (Array.isArray(arr)) return arr;
|
|
5270
|
+
}
|
|
5271
|
+
function _iterable_to_array_limit(arr, i) {
|
|
5272
|
+
var _i = arr == null ? null : (typeof Symbol > "u" ? "undefined" : _type_of(Symbol)) < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5273
|
+
if (_i != null) {
|
|
5274
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
5275
|
+
try {
|
|
5276
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0) ;
|
|
5277
|
+
} catch (err) {
|
|
5278
|
+
_d = !0, _e = err;
|
|
5279
|
+
} finally {
|
|
5280
|
+
try {
|
|
5281
|
+
!_n && _i.return != null && _i.return();
|
|
5282
|
+
} finally {
|
|
5283
|
+
if (_d) throw _e;
|
|
5284
|
+
}
|
|
5285
|
+
}
|
|
5286
|
+
return _arr;
|
|
5287
|
+
}
|
|
5288
|
+
}
|
|
5289
|
+
function _non_iterable_rest() {
|
|
5290
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5291
|
+
}
|
|
5292
|
+
function _sliced_to_array(arr, i) {
|
|
5293
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array2(arr, i) || _non_iterable_rest();
|
|
5294
|
+
}
|
|
5295
|
+
function _unsupported_iterable_to_array2(o, minLen) {
|
|
5296
|
+
if (o) {
|
|
5297
|
+
if (typeof o == "string") return _array_like_to_array2(o, minLen);
|
|
5298
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5299
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
5300
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array2(o, minLen);
|
|
5301
|
+
}
|
|
5302
|
+
}
|
|
5303
|
+
var MEDIA_SEP = "_", prefixes = null, selectors = null, groupPseudoToPseudoCSSMap = {
|
|
5228
5304
|
press: "active"
|
|
5229
5305
|
}, createMediaStyle = function(styleObject, mediaKeyIn, mediaQueries, type, negate, priority) {
|
|
5230
|
-
var
|
|
5306
|
+
var _styleObject = _sliced_to_array(styleObject, 5), property = _styleObject[0], _value = _styleObject[1], identifier = _styleObject[2], _pseudo = _styleObject[3], rules = _styleObject[4], conf = (0, import_config.getConfig)(), enableMediaPropOrder = conf.settings.mediaPropOrder, isTheme = type === "theme", isPlatform = type === "platform", isGroup = type === "group", isNonWindowMedia = isTheme || isPlatform || isGroup, negKey = negate ? "0" : "", ogPrefix = identifier.slice(0, identifier.indexOf("-") + 1), id = "".concat(ogPrefix).concat(MEDIA_SEP).concat(mediaKeyIn.replace("-", "")).concat(negKey).concat(MEDIA_SEP), styleRule = "", groupMediaKey, containerName, nextIdentifier = identifier.replace(ogPrefix, id), styleInner = rules.map(function(rule) {
|
|
5231
5307
|
return rule.replace(identifier, nextIdentifier);
|
|
5232
5308
|
}).join(";");
|
|
5233
5309
|
if (isNonWindowMedia) {
|
|
@@ -5263,13 +5339,15 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
5263
5339
|
), prefix = groupMediaKey ? "@container ".concat(containerName) : "@media";
|
|
5264
5340
|
groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", " and ".concat(mediaQuery, " {")).replace("and screen and", "and") : styleRule = "".concat(prefix, " ").concat(mediaQuery, "{").concat(precedenceImportancePrefix1).concat(styleInner, "}"), groupMediaKey && (styleRule = "@supports (contain: ".concat(conf.settings.webContainerType || "inline-size", ") {").concat(styleRule, "}"));
|
|
5265
5341
|
}
|
|
5266
|
-
return
|
|
5342
|
+
return [
|
|
5267
5343
|
property,
|
|
5268
|
-
|
|
5344
|
+
void 0,
|
|
5345
|
+
nextIdentifier,
|
|
5346
|
+
void 0,
|
|
5347
|
+
[
|
|
5269
5348
|
styleRule
|
|
5270
|
-
]
|
|
5271
|
-
|
|
5272
|
-
};
|
|
5349
|
+
]
|
|
5350
|
+
];
|
|
5273
5351
|
};
|
|
5274
5352
|
}
|
|
5275
5353
|
});
|
|
@@ -7201,7 +7279,7 @@ var require_propMapper_native = __commonJS({
|
|
|
7201
7279
|
get: function(_, k) {
|
|
7202
7280
|
return k === "curProps" ? subProps : Reflect.get(_, k);
|
|
7203
7281
|
}
|
|
7204
|
-
}) : styleStateIn, conf = styleState.conf, styleProps = styleState.styleProps, fontFamily = styleState.fontFamily, staticConfig = styleState.staticConfig,
|
|
7282
|
+
}) : styleStateIn, conf = styleState.conf, styleProps = styleState.styleProps, fontFamily = styleState.fontFamily, staticConfig = styleState.staticConfig, variants = staticConfig.variants;
|
|
7205
7283
|
if (process.env.NODE_ENV === "development" && fontFamily && fontFamily[0] === "$" && !(fontFamily in conf.fontsParsed) && console.warn('Warning: no fontFamily "'.concat(fontFamily, '" found in config: ').concat(Object.keys(conf.fontsParsed).join(", "))), !styleProps.noExpand && variants && key in variants) {
|
|
7206
7284
|
styleState.curProps[key] = value;
|
|
7207
7285
|
var variantValue = resolveVariants(key, value, styleProps, styleState, "");
|
|
@@ -7620,15 +7698,22 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7620
7698
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array2(o, minLen);
|
|
7621
7699
|
}
|
|
7622
7700
|
}
|
|
7623
|
-
var
|
|
7701
|
+
var conf, PROP_SPLIT = "-";
|
|
7624
7702
|
function isValidStyleKey(key, staticConfig) {
|
|
7625
7703
|
var _staticConfig_accept, validStyleProps = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
|
|
7626
7704
|
return validStyleProps[key] || ((_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key]);
|
|
7627
7705
|
}
|
|
7628
7706
|
var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug, skipThemeTokenResolution) {
|
|
7629
7707
|
conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
7630
|
-
var shorthands = conf.shorthands, isHOC = staticConfig.isHOC, isText = staticConfig.isText, isInput = staticConfig.isInput, variants = staticConfig.variants, isReactNative = staticConfig.isReactNative, inlineProps = staticConfig.inlineProps, inlineWhenUnflattened = staticConfig.inlineWhenUnflattened, parentStaticConfig = staticConfig.parentStaticConfig, acceptsClassName = staticConfig.acceptsClassName, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClassNames, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, styleState = {
|
|
7631
|
-
|
|
7708
|
+
var shorthands = conf.shorthands, isHOC = staticConfig.isHOC, isText = staticConfig.isText, isInput = staticConfig.isInput, variants = staticConfig.variants, isReactNative = staticConfig.isReactNative, inlineProps = staticConfig.inlineProps, inlineWhenUnflattened = staticConfig.inlineWhenUnflattened, parentStaticConfig = staticConfig.parentStaticConfig, acceptsClassName = staticConfig.acceptsClassName, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClassNames, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, curPropsState, styleState = {
|
|
7709
|
+
// this should go away, right now we're doing really crazy cumulative props,
|
|
7710
|
+
// as variants are resolved basically we go back and merge the results onto
|
|
7711
|
+
// the curProps, so that each following variant function recieves the current
|
|
7712
|
+
// "styles" with variants expanded. powerful, but i think too fancy
|
|
7713
|
+
// there's some part of the ui kit that depends on it we'd have to find and fix
|
|
7714
|
+
get curProps() {
|
|
7715
|
+
return curPropsState || (curPropsState = {}), curPropsState;
|
|
7716
|
+
},
|
|
7632
7717
|
classNames,
|
|
7633
7718
|
conf,
|
|
7634
7719
|
props,
|
|
@@ -7652,15 +7737,18 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7652
7737
|
styleState,
|
|
7653
7738
|
theme: _object_spread9({}, theme)
|
|
7654
7739
|
}), console.groupEnd());
|
|
7740
|
+
var asChild = props.asChild, accept = staticConfig.accept, noSkip = styleProps.noSkip, disableExpandShorthands = styleProps.disableExpandShorthands, noExpand = styleProps.noExpand, webContainerType = conf.settings.webContainerType, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
7655
7741
|
for (var keyOg in props) {
|
|
7656
|
-
var
|
|
7657
|
-
if (
|
|
7658
|
-
var
|
|
7659
|
-
|
|
7660
|
-
|
|
7742
|
+
var keyInit = keyOg, valInit = props[keyInit];
|
|
7743
|
+
if (accept) {
|
|
7744
|
+
var accepted = accept[keyInit];
|
|
7745
|
+
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") {
|
|
7746
|
+
viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
|
|
7747
|
+
continue;
|
|
7748
|
+
}
|
|
7661
7749
|
}
|
|
7662
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(),
|
|
7663
|
-
if (keyInit in import_skipProps.skipProps && !
|
|
7750
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
|
|
7751
|
+
if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
|
|
7664
7752
|
if (keyInit === "group" && !1) var identifier, containerType, containerCSS;
|
|
7665
7753
|
continue;
|
|
7666
7754
|
}
|
|
@@ -7669,7 +7757,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7669
7757
|
var isValidClassName, isMediaOrPseudo;
|
|
7670
7758
|
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState;
|
|
7671
7759
|
}
|
|
7672
|
-
if (
|
|
7760
|
+
if (!isValidStyleKeyInit) {
|
|
7673
7761
|
if (!import_constants4.isAndroid && keyInit === "elevationAndroid") continue;
|
|
7674
7762
|
if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
|
|
7675
7763
|
else if (keyInit.startsWith("data-")) continue;
|
|
@@ -7684,10 +7772,10 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7684
7772
|
var name = keyInit.split("-")[1];
|
|
7685
7773
|
context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
7686
7774
|
}
|
|
7687
|
-
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !
|
|
7688
|
-
if (!(isStyleProp && (
|
|
7775
|
+
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
|
|
7776
|
+
if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
|
|
7689
7777
|
var shouldPassProp = !isStyleProp || // is in parent variants
|
|
7690
|
-
isHOC &&
|
|
7778
|
+
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
7691
7779
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupEnd(), console.groupEnd(), console.groupCollapsed(" \u{1F511} ".concat(keyOg).concat(keyInit !== keyOg ? " (shorthand for ".concat(keyInit, ")") : "", " ").concat(shouldPassThrough ? "(pass)" : "")), (0, import_log.log)({
|
|
7692
7780
|
isVariant,
|
|
7693
7781
|
valInit,
|
|
@@ -7703,7 +7791,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7703
7791
|
process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
|
|
7704
7792
|
continue;
|
|
7705
7793
|
}
|
|
7706
|
-
if (!
|
|
7794
|
+
if (!noSkip && keyInit in import_skipProps.skipProps) {
|
|
7707
7795
|
process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
|
|
7708
7796
|
continue;
|
|
7709
7797
|
}
|
|
@@ -7736,17 +7824,17 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7736
7824
|
console.groupEnd();
|
|
7737
7825
|
}
|
|
7738
7826
|
for (var key = keyInit, val = valInit, max2 = expanded ? expanded.length : 1, i = 0; i < max2; i++) {
|
|
7739
|
-
var
|
|
7827
|
+
var _parentStaticConfig_variants;
|
|
7740
7828
|
if (expanded) {
|
|
7741
7829
|
var _expanded_i = _sliced_to_array(expanded[i], 2), k = _expanded_i[0], v = _expanded_i[1];
|
|
7742
7830
|
key = k, val = v;
|
|
7743
7831
|
}
|
|
7744
7832
|
if (val != null && !(key in usedKeys)) {
|
|
7745
|
-
if (isPseudo = key in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key), isMediaOrPseudo1 = !!(isMedia || isPseudo), isVariant = variants && key in variants, inlineProps != null && inlineProps.has(key) || IS_STATIC && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) {
|
|
7833
|
+
if (isPseudo = key in import_helpers.validPseudoKeys, isMedia = !isPseudo && !isValidStyleKeyInit && (0, import_useMedia.isMediaKey)(key), isMediaOrPseudo1 = !!(isMedia || isPseudo), isVariant = variants && key in variants, inlineProps != null && inlineProps.has(key) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key)) {
|
|
7746
7834
|
var _props_key;
|
|
7747
7835
|
viewProps[key] = (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : val;
|
|
7748
7836
|
}
|
|
7749
|
-
var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (
|
|
7837
|
+
var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
7750
7838
|
if (shouldPassThrough1) {
|
|
7751
7839
|
passDownProp(viewProps, key, val, isMediaOrPseudo1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" - passing down prop ".concat(key)), (0, import_log.log)({
|
|
7752
7840
|
val,
|
|
@@ -7758,9 +7846,9 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7758
7846
|
if (!val) continue;
|
|
7759
7847
|
var pseudoStyleObject = getSubStyle(styleState, key, val, styleProps.noClassNames), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
|
|
7760
7848
|
if (!descriptor) continue;
|
|
7761
|
-
if (!shouldDoClasses || IS_STATIC) {
|
|
7849
|
+
if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
|
|
7762
7850
|
var _pseudos, _key;
|
|
7763
|
-
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), IS_STATIC) {
|
|
7851
|
+
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
|
|
7764
7852
|
Object.assign(pseudos[key], pseudoStyleObject);
|
|
7765
7853
|
continue;
|
|
7766
7854
|
}
|
|
@@ -7774,8 +7862,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7774
7862
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7775
7863
|
try {
|
|
7776
7864
|
for (var _iterator = pseudoStyles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
7777
|
-
var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle.
|
|
7778
|
-
fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle.
|
|
7865
|
+
var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle[import_helpers.StyleObjectProperty]).concat(PROP_SPLIT).concat(descriptor.name);
|
|
7866
|
+
fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle[import_helpers.StyleObjectIdentifier], isMediaOrPseudo1, !0);
|
|
7779
7867
|
}
|
|
7780
7868
|
} catch (err) {
|
|
7781
7869
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -7826,7 +7914,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7826
7914
|
}
|
|
7827
7915
|
if (isMedia) {
|
|
7828
7916
|
if (!val) continue;
|
|
7829
|
-
|
|
7917
|
+
var hasSpace = val.space, mediaKeyShort = key.slice(1);
|
|
7918
|
+
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), isMedia === "platform") {
|
|
7830
7919
|
var platform = key.slice(10);
|
|
7831
7920
|
if (
|
|
7832
7921
|
// supports web, ios, android
|
|
@@ -7834,18 +7923,15 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7834
7923
|
platform !== "native"
|
|
7835
7924
|
) continue;
|
|
7836
7925
|
}
|
|
7837
|
-
|
|
7838
|
-
var mediaKeyShort = key.slice(1);
|
|
7839
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key), {
|
|
7926
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key), {
|
|
7840
7927
|
key,
|
|
7841
7928
|
val,
|
|
7842
7929
|
props,
|
|
7843
7930
|
shouldDoClasses,
|
|
7844
7931
|
acceptsClassName,
|
|
7845
|
-
componentState
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
if ((hasSpace || !shouldDoClasses) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), shouldDoClasses) {
|
|
7932
|
+
componentState,
|
|
7933
|
+
mediaState: mediaState3
|
|
7934
|
+
}), shouldDoClasses) {
|
|
7849
7935
|
var mediaStyle = getSubStyle(styleState, key, val, !1);
|
|
7850
7936
|
if (hasSpace && (delete mediaStyle.space, mediaState3[mediaKeyShort])) {
|
|
7851
7937
|
var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
|
|
@@ -7858,8 +7944,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7858
7944
|
for (var _iterator1 = mediaStyles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
|
|
7859
7945
|
var style = _step1.value, out = (0, import_createMediaStyle.createMediaStyle)(style, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority);
|
|
7860
7946
|
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("\u{1F4FA} media style:", out);
|
|
7861
|
-
var fullKey1 = "".concat(style.
|
|
7862
|
-
fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out.
|
|
7947
|
+
var fullKey1 = "".concat(style[import_helpers.StyleObjectProperty]).concat(PROP_SPLIT).concat(mediaKeyShort).concat(style[import_helpers.StyleObjectPseudo] || "");
|
|
7948
|
+
fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out[import_helpers.StyleObjectIdentifier], !0, !0);
|
|
7863
7949
|
}
|
|
7864
7950
|
} catch (err) {
|
|
7865
7951
|
_didIteratorError1 = !0, _iteratorError1 = err;
|
|
@@ -7871,9 +7957,15 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7871
7957
|
}
|
|
7872
7958
|
}
|
|
7873
7959
|
} else {
|
|
7874
|
-
var
|
|
7875
|
-
if (!isThemeMedia && !isPlatformMedia && !isGroupMedia
|
|
7876
|
-
|
|
7960
|
+
var isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
7961
|
+
if (!isThemeMedia && !isPlatformMedia && !isGroupMedia) {
|
|
7962
|
+
if (!mediaState3[mediaKeyShort]) {
|
|
7963
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} \u274C DISABLED ".concat(mediaKeyShort));
|
|
7964
|
+
continue;
|
|
7965
|
+
}
|
|
7966
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} \u2705 ENABLED ".concat(mediaKeyShort));
|
|
7967
|
+
}
|
|
7968
|
+
var mediaStyle1 = getSubStyle(styleState, key, val, !0), importanceBump = 0;
|
|
7877
7969
|
if (isThemeMedia) {
|
|
7878
7970
|
dynamicThemeAccess = !0;
|
|
7879
7971
|
var mediaThemeName = mediaKeyShort.slice(6);
|
|
@@ -7938,7 +8030,7 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7938
8030
|
}
|
|
7939
8031
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7940
8032
|
if (!avoidNormalize) {
|
|
7941
|
-
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !
|
|
8033
|
+
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
7942
8034
|
var _styleState2;
|
|
7943
8035
|
(_styleState2 = styleState).style || (_styleState2.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
7944
8036
|
var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
|
|
@@ -7963,7 +8055,7 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7963
8055
|
if (!styleState.style.$$css) {
|
|
7964
8056
|
var atomic, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2;
|
|
7965
8057
|
try {
|
|
7966
|
-
for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) var atomicStyle, _props_animateOnly, key4, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
8058
|
+
for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) var atomicStyle, _props_animateOnly, _atomicStyle, key4, value, identifier1, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
7967
8059
|
} catch (err) {
|
|
7968
8060
|
} finally {
|
|
7969
8061
|
try {
|
|
@@ -7972,8 +8064,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7972
8064
|
}
|
|
7973
8065
|
}
|
|
7974
8066
|
if (transforms) for (var namespace in transforms) {
|
|
7975
|
-
var _transforms_namespace, hash, val3,
|
|
7976
|
-
if (import_constants4.isClient && !insertedTransforms[
|
|
8067
|
+
var _transforms_namespace, hash, val3, identifier2;
|
|
8068
|
+
if (import_constants4.isClient && !insertedTransforms[identifier2]) var rule;
|
|
7977
8069
|
}
|
|
7978
8070
|
}
|
|
7979
8071
|
if (!isReactNative && viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
|
|
@@ -8009,7 +8101,7 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8009
8101
|
dynamicThemeAccess,
|
|
8010
8102
|
pseudoGroups,
|
|
8011
8103
|
mediaGroups
|
|
8012
|
-
},
|
|
8104
|
+
}, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
8013
8105
|
if (!asChildExceptStyleLike) {
|
|
8014
8106
|
var style3 = styleState.style;
|
|
8015
8107
|
if (0) {
|
|
@@ -8889,7 +8981,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8889
8981
|
}
|
|
8890
8982
|
});
|
|
8891
8983
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8892
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react4 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native()
|
|
8984
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react4 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_themeable = require_themeable_native(), import_useDidHydrateOnce = require_useDidHydrateOnce_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native();
|
|
8893
8985
|
function _array_like_to_array2(arr, len) {
|
|
8894
8986
|
(len == null || len > arr.length) && (len = arr.length);
|
|
8895
8987
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -9210,20 +9302,22 @@ var require_createComponent_native = __commonJS({
|
|
|
9210
9302
|
}
|
|
9211
9303
|
}));
|
|
9212
9304
|
var cancelTouches, useComponentState = function(props, param, staticConfig, config) {
|
|
9213
|
-
var animationDriver = param.animationDriver, groups = param.groups, _animationDriver_usePresence, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react4.useRef)(
|
|
9305
|
+
var animationDriver = param.animationDriver, groups = param.groups, _animationDriver_usePresence, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react4.useRef)(void 0);
|
|
9306
|
+
stateRef.current || (stateRef.current = {});
|
|
9307
|
+
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
|
|
9214
9308
|
var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
|
|
9215
9309
|
return !!(next || curStateRef.hasAnimated);
|
|
9216
9310
|
}(), willBeAnimated = !import_constants4.isServer && willBeAnimatedClient;
|
|
9217
9311
|
willBeAnimated && !curStateRef.hasAnimated && (curStateRef.hasAnimated = !0);
|
|
9218
9312
|
var presence = willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasRNAnimation = hasAnimationProp && (animationDriver == null ? void 0 : animationDriver.isReactNative);
|
|
9219
9313
|
process.env.NODE_ENV === "development" && time && time(_templateObject());
|
|
9220
|
-
var hasEnterState = hasEnterStyle || isEntering, didHydrateOnce = (0, import_useDidHydrateOnce.useDidHydrateOnce)(),
|
|
9314
|
+
var hasEnterState = hasEnterStyle || isEntering, didHydrateOnce = willBeAnimated ? (0, import_useDidHydrateOnce.useDidHydrateOnce)() : !0, shouldEnter = hasEnterState || !didHydrateOnce && hasRNAnimation, shouldEnterFromUnhydrated = import_constants4.isWeb && !didHydrateOnce, initialState = shouldEnter ? (
|
|
9221
9315
|
// on the very first render we switch all spring animation drivers to css rendering
|
|
9222
9316
|
// this is because we need to use css variables, which they don't support to do proper SSR
|
|
9223
9317
|
// without flickers of the wrong colors.
|
|
9224
9318
|
// but once we do that initial hydration and we are in client side rendering mode,
|
|
9225
9319
|
// we can avoid the extra re-render on mount
|
|
9226
|
-
|
|
9320
|
+
shouldEnterFromUnhydrated ? import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateShouldEnter
|
|
9227
9321
|
) : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
|
|
9228
9322
|
disabled != null && (initialState.disabled = disabled);
|
|
9229
9323
|
var states = (0, import_react4.useState)(initialState), state = props.forceStyle ? _object_spread_props8(_object_spread9({}, states[0]), _define_property9({}, props.forceStyle, !0)) : states[0], setState = states[1], isHydrated = state.unmounted === !1 || state.unmounted === "should-enter", isAnimated = willBeAnimated;
|
|
@@ -9407,7 +9501,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9407
9501
|
elementType = Component || elementType;
|
|
9408
9502
|
var isStringElement = typeof elementType == "string";
|
|
9409
9503
|
process.env.NODE_ENV === "development" && time && time(_templateObject8());
|
|
9410
|
-
var mediaState3 = (0, import_useMedia.useMedia)(stateRef, componentContext);
|
|
9504
|
+
var mediaState3 = (0, import_useMedia.useMedia)(stateRef, componentContext, debugProp);
|
|
9411
9505
|
(0, import_createVariable.setDidGetVariableValue)(!1), process.env.NODE_ENV === "development" && time && time(_templateObject9());
|
|
9412
9506
|
var resolveValues = (
|
|
9413
9507
|
// if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
|
|
@@ -9417,7 +9511,8 @@ var require_createComponent_native = __commonJS({
|
|
|
9417
9511
|
noClassNames,
|
|
9418
9512
|
resolveValues,
|
|
9419
9513
|
isExiting,
|
|
9420
|
-
isAnimated
|
|
9514
|
+
isAnimated,
|
|
9515
|
+
willBeAnimated
|
|
9421
9516
|
}, splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, (themeState == null || (_themeState_state = themeState.state) === null || _themeState_state === void 0 ? void 0 : _themeState_state.name) || "", state, styleProps, null, componentContext, elementType, debugProp);
|
|
9422
9517
|
if (props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
|
|
9423
9518
|
var _splitStyles;
|
|
@@ -9425,9 +9520,9 @@ var require_createComponent_native = __commonJS({
|
|
|
9425
9520
|
}
|
|
9426
9521
|
process.env.NODE_ENV === "development" && time && time(_templateObject10()), curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
|
|
9427
9522
|
var isMediaArray = splitStyles.hasMedia && Array.isArray(splitStyles.hasMedia), shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || isMediaArray || noClassNames && splitStyles.hasMedia === !0, mediaListeningKeys = isMediaArray ? splitStyles.hasMedia : null;
|
|
9428
|
-
(0, import_useMedia.setMediaShouldUpdate)(stateRef, {
|
|
9523
|
+
process.env.NODE_ENV === "development" && debugProp && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(stateRef, {
|
|
9429
9524
|
enabled: shouldListenForMedia,
|
|
9430
|
-
|
|
9525
|
+
touched: mediaListeningKeys
|
|
9431
9526
|
});
|
|
9432
9527
|
var viewPropsIn = splitStyles.viewProps, pseudos = splitStyles.pseudos, splitStylesStyle = splitStyles.style, classNames = splitStyles.classNames, space = splitStyles.space, propsWithAnimation = props, asChild = viewPropsIn.asChild, children = viewPropsIn.children, themeShallow = viewPropsIn.themeShallow, _spaceDirection = viewPropsIn.spaceDirection, onPress = viewPropsIn.onPress, onLongPress = viewPropsIn.onLongPress, onPressIn = viewPropsIn.onPressIn, onPressOut = viewPropsIn.onPressOut, onHoverIn = viewPropsIn.onHoverIn, onHoverOut = viewPropsIn.onHoverOut, onMouseUp = viewPropsIn.onMouseUp, onMouseDown = viewPropsIn.onMouseDown, onMouseEnter = viewPropsIn.onMouseEnter, onMouseLeave = viewPropsIn.onMouseLeave, onFocus = viewPropsIn.onFocus, onBlur = viewPropsIn.onBlur, separator = viewPropsIn.separator, _forceStyle = viewPropsIn.forceStyle, onClick = viewPropsIn.onClick, _themeProp = viewPropsIn.theme, defaultVariants = viewPropsIn.defaultVariants, nonTamaguiProps = _object_without_properties5(viewPropsIn, [
|
|
9433
9528
|
"asChild",
|
|
@@ -9657,14 +9752,14 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9657
9752
|
children: [
|
|
9658
9753
|
content,
|
|
9659
9754
|
/* lets see if we can put a single style tag per rule for optimal de-duping */
|
|
9660
|
-
splitStyles.rulesToInsert.map(function(
|
|
9661
|
-
var
|
|
9755
|
+
splitStyles.rulesToInsert.map(function(styleObject) {
|
|
9756
|
+
var identifier = styleObject[import_helpers.StyleObjectIdentifier];
|
|
9662
9757
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("style", {
|
|
9663
9758
|
// @ts-ignore
|
|
9664
9759
|
href: "t_".concat(identifier),
|
|
9665
9760
|
// @ts-ignore
|
|
9666
9761
|
precedence: "default",
|
|
9667
|
-
children:
|
|
9762
|
+
children: styleObject[import_helpers.StyleObjectRules].join(`
|
|
9668
9763
|
`)
|
|
9669
9764
|
}, identifier);
|
|
9670
9765
|
})
|
|
@@ -22007,7 +22102,7 @@ var require_Image_native = __commonJS({
|
|
|
22007
22102
|
}
|
|
22008
22103
|
});
|
|
22009
22104
|
module2.exports = __toCommonJS2(Image_exports);
|
|
22010
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_react_native4 = require("react-native");
|
|
22105
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_react4 = require("react"), import_react_native4 = require("react-native");
|
|
22011
22106
|
function _array_like_to_array2(arr, len) {
|
|
22012
22107
|
(len == null || len > arr.length) && (len = arr.length);
|
|
22013
22108
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -22016,6 +22111,30 @@ var require_Image_native = __commonJS({
|
|
|
22016
22111
|
function _array_with_holes(arr) {
|
|
22017
22112
|
if (Array.isArray(arr)) return arr;
|
|
22018
22113
|
}
|
|
22114
|
+
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
22115
|
+
try {
|
|
22116
|
+
var info = gen[key](arg), value = info.value;
|
|
22117
|
+
} catch (error) {
|
|
22118
|
+
reject(error);
|
|
22119
|
+
return;
|
|
22120
|
+
}
|
|
22121
|
+
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
|
|
22122
|
+
}
|
|
22123
|
+
function _async_to_generator2(fn) {
|
|
22124
|
+
return function() {
|
|
22125
|
+
var self = this, args = arguments;
|
|
22126
|
+
return new Promise(function(resolve, reject) {
|
|
22127
|
+
var gen = fn.apply(self, args);
|
|
22128
|
+
function _next(value) {
|
|
22129
|
+
asyncGeneratorStep2(gen, resolve, reject, _next, _throw, "next", value);
|
|
22130
|
+
}
|
|
22131
|
+
function _throw(err) {
|
|
22132
|
+
asyncGeneratorStep2(gen, resolve, reject, _next, _throw, "throw", err);
|
|
22133
|
+
}
|
|
22134
|
+
_next(void 0);
|
|
22135
|
+
});
|
|
22136
|
+
};
|
|
22137
|
+
}
|
|
22019
22138
|
function _define_property9(obj, key, value) {
|
|
22020
22139
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
22021
22140
|
value,
|
|
@@ -22082,6 +22201,92 @@ var require_Image_native = __commonJS({
|
|
|
22082
22201
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array2(o, minLen);
|
|
22083
22202
|
}
|
|
22084
22203
|
}
|
|
22204
|
+
function _ts_generator2(thisArg, body) {
|
|
22205
|
+
var f, y, t, g, _ = {
|
|
22206
|
+
label: 0,
|
|
22207
|
+
sent: function() {
|
|
22208
|
+
if (t[0] & 1) throw t[1];
|
|
22209
|
+
return t[1];
|
|
22210
|
+
},
|
|
22211
|
+
trys: [],
|
|
22212
|
+
ops: []
|
|
22213
|
+
};
|
|
22214
|
+
return g = {
|
|
22215
|
+
next: verb(0),
|
|
22216
|
+
throw: verb(1),
|
|
22217
|
+
return: verb(2)
|
|
22218
|
+
}, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
|
|
22219
|
+
return this;
|
|
22220
|
+
}), g;
|
|
22221
|
+
function verb(n) {
|
|
22222
|
+
return function(v) {
|
|
22223
|
+
return step([
|
|
22224
|
+
n,
|
|
22225
|
+
v
|
|
22226
|
+
]);
|
|
22227
|
+
};
|
|
22228
|
+
}
|
|
22229
|
+
function step(op) {
|
|
22230
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
22231
|
+
for (; _; ) try {
|
|
22232
|
+
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
22233
|
+
switch (y = 0, t && (op = [
|
|
22234
|
+
op[0] & 2,
|
|
22235
|
+
t.value
|
|
22236
|
+
]), op[0]) {
|
|
22237
|
+
case 0:
|
|
22238
|
+
case 1:
|
|
22239
|
+
t = op;
|
|
22240
|
+
break;
|
|
22241
|
+
case 4:
|
|
22242
|
+
return _.label++, {
|
|
22243
|
+
value: op[1],
|
|
22244
|
+
done: !1
|
|
22245
|
+
};
|
|
22246
|
+
case 5:
|
|
22247
|
+
_.label++, y = op[1], op = [
|
|
22248
|
+
0
|
|
22249
|
+
];
|
|
22250
|
+
continue;
|
|
22251
|
+
case 7:
|
|
22252
|
+
op = _.ops.pop(), _.trys.pop();
|
|
22253
|
+
continue;
|
|
22254
|
+
default:
|
|
22255
|
+
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
22256
|
+
_ = 0;
|
|
22257
|
+
continue;
|
|
22258
|
+
}
|
|
22259
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
22260
|
+
_.label = op[1];
|
|
22261
|
+
break;
|
|
22262
|
+
}
|
|
22263
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
22264
|
+
_.label = t[1], t = op;
|
|
22265
|
+
break;
|
|
22266
|
+
}
|
|
22267
|
+
if (t && _.label < t[2]) {
|
|
22268
|
+
_.label = t[2], _.ops.push(op);
|
|
22269
|
+
break;
|
|
22270
|
+
}
|
|
22271
|
+
t[2] && _.ops.pop(), _.trys.pop();
|
|
22272
|
+
continue;
|
|
22273
|
+
}
|
|
22274
|
+
op = body.call(thisArg, _);
|
|
22275
|
+
} catch (e) {
|
|
22276
|
+
op = [
|
|
22277
|
+
6,
|
|
22278
|
+
e
|
|
22279
|
+
], y = 0;
|
|
22280
|
+
} finally {
|
|
22281
|
+
f = t = 0;
|
|
22282
|
+
}
|
|
22283
|
+
if (op[0] & 5) throw op[1];
|
|
22284
|
+
return {
|
|
22285
|
+
value: op[0] ? op[1] : void 0,
|
|
22286
|
+
done: !0
|
|
22287
|
+
};
|
|
22288
|
+
}
|
|
22289
|
+
}
|
|
22085
22290
|
var StyledImage = (0, import_core12.styled)(import_react_native4.Image, {
|
|
22086
22291
|
name: "Image"
|
|
22087
22292
|
}), hasWarned = !1, Image = StyledImage.styleable(function(inProps, ref) {
|
|
@@ -22093,8 +22298,8 @@ var require_Image_native = __commonJS({
|
|
|
22093
22298
|
var finalSource = typeof src == "string" ? _object_spread9({
|
|
22094
22299
|
uri: src
|
|
22095
22300
|
}, import_constants4.isWeb && {
|
|
22096
|
-
width: props.width,
|
|
22097
|
-
height: props.height
|
|
22301
|
+
width: props.width || (style == null ? void 0 : style.width),
|
|
22302
|
+
height: props.height || (style == null ? void 0 : style.height)
|
|
22098
22303
|
}) : source ?? src;
|
|
22099
22304
|
if (finalSource && typeof finalSource == "object") {
|
|
22100
22305
|
if (!Array.isArray(finalSource) && typeof finalSource.uri == "number" && (finalSource = finalSource.uri, source && typeof source == "object" && !Array.isArray(source))) {
|
|
@@ -22103,9 +22308,59 @@ var require_Image_native = __commonJS({
|
|
|
22103
22308
|
var _height;
|
|
22104
22309
|
(_height = (_style1 = style).height) !== null && _height !== void 0 || (_style1.height = source.height);
|
|
22105
22310
|
}
|
|
22106
|
-
|
|
22311
|
+
process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && (0, import_react4.useEffect)(function() {
|
|
22312
|
+
var run = function() {
|
|
22313
|
+
return _run.apply(this, arguments);
|
|
22314
|
+
};
|
|
22315
|
+
function _run() {
|
|
22316
|
+
return _run = _async_to_generator2(function() {
|
|
22317
|
+
var err;
|
|
22318
|
+
return _ts_generator2(this, function(_state) {
|
|
22319
|
+
switch (_state.label) {
|
|
22320
|
+
case 0:
|
|
22321
|
+
if (typeof src != "string") return [
|
|
22322
|
+
3,
|
|
22323
|
+
4
|
|
22324
|
+
];
|
|
22325
|
+
_state.label = 1;
|
|
22326
|
+
case 1:
|
|
22327
|
+
return _state.trys.push([
|
|
22328
|
+
1,
|
|
22329
|
+
3,
|
|
22330
|
+
,
|
|
22331
|
+
4
|
|
22332
|
+
]), [
|
|
22333
|
+
4,
|
|
22334
|
+
fetch(src).then(function(res) {
|
|
22335
|
+
return res.text();
|
|
22336
|
+
})
|
|
22337
|
+
];
|
|
22338
|
+
case 2:
|
|
22339
|
+
return _state.sent(), [
|
|
22340
|
+
3,
|
|
22341
|
+
4
|
|
22342
|
+
];
|
|
22343
|
+
case 3:
|
|
22344
|
+
return err = _state.sent(), console.error("Error loading image: ".concat(src), {
|
|
22345
|
+
props
|
|
22346
|
+
}), [
|
|
22347
|
+
3,
|
|
22348
|
+
4
|
|
22349
|
+
];
|
|
22350
|
+
case 4:
|
|
22351
|
+
return [
|
|
22352
|
+
2
|
|
22353
|
+
];
|
|
22354
|
+
}
|
|
22355
|
+
});
|
|
22356
|
+
}), _run.apply(this, arguments);
|
|
22357
|
+
}
|
|
22358
|
+
run();
|
|
22359
|
+
}, [
|
|
22360
|
+
src
|
|
22361
|
+
]), finalSource.default && (finalSource = finalSource.default);
|
|
22107
22362
|
}
|
|
22108
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
22363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native4.Image, _object_spread9({
|
|
22109
22364
|
ref,
|
|
22110
22365
|
source: finalSource,
|
|
22111
22366
|
style
|
|
@@ -29733,37 +29988,26 @@ var require_Popper_native = __commonJS({
|
|
|
29733
29988
|
(typeof offsetOptions > "u" ? "undefined" : _type_of(offsetOptions)) < "u" ? (0, import_floating.offset)(offsetOptions) : null,
|
|
29734
29989
|
checkFloating
|
|
29735
29990
|
].filter(Boolean)
|
|
29736
|
-
}), refs = floating.refs, middlewareData = floating.middlewareData, open = floating.open;
|
|
29737
|
-
|
|
29738
|
-
|
|
29991
|
+
}), refs = floating.refs, middlewareData = floating.middlewareData, open = floating.open, dimensions = (0, import_react_native4.useWindowDimensions)(), _React_useState2 = _sliced_to_array(React2.useState(!1), 2), keyboardOpen = _React_useState2[0], setKeyboardOpen = _React_useState2[1];
|
|
29992
|
+
React2.useEffect(function() {
|
|
29993
|
+
var showSubscription = import_react_native4.Keyboard.addListener("keyboardDidShow", function() {
|
|
29994
|
+
React2.startTransition(function() {
|
|
29995
|
+
setKeyboardOpen(!0);
|
|
29996
|
+
});
|
|
29997
|
+
}), hideSubscription = import_react_native4.Keyboard.addListener("keyboardDidHide", function() {
|
|
29998
|
+
React2.startTransition(function() {
|
|
29999
|
+
setKeyboardOpen(!1);
|
|
30000
|
+
});
|
|
30001
|
+
});
|
|
30002
|
+
return function() {
|
|
30003
|
+
showSubscription.remove(), hideSubscription.remove();
|
|
30004
|
+
};
|
|
30005
|
+
}, []), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
30006
|
+
floating.update();
|
|
29739
30007
|
}, [
|
|
29740
|
-
|
|
29741
|
-
|
|
29742
|
-
refs.floating,
|
|
29743
|
-
refs.reference
|
|
30008
|
+
dimensions,
|
|
30009
|
+
keyboardOpen
|
|
29744
30010
|
]);
|
|
29745
|
-
else {
|
|
29746
|
-
var dimensions = (0, import_react_native4.useWindowDimensions)(), _React_useState2 = _sliced_to_array(React2.useState(!1), 2), keyboardOpen = _React_useState2[0], setKeyboardOpen = _React_useState2[1];
|
|
29747
|
-
React2.useEffect(function() {
|
|
29748
|
-
var showSubscription = import_react_native4.Keyboard.addListener("keyboardDidShow", function() {
|
|
29749
|
-
React2.startTransition(function() {
|
|
29750
|
-
setKeyboardOpen(!0);
|
|
29751
|
-
});
|
|
29752
|
-
}), hideSubscription = import_react_native4.Keyboard.addListener("keyboardDidHide", function() {
|
|
29753
|
-
React2.startTransition(function() {
|
|
29754
|
-
setKeyboardOpen(!1);
|
|
29755
|
-
});
|
|
29756
|
-
});
|
|
29757
|
-
return function() {
|
|
29758
|
-
showSubscription.remove(), hideSubscription.remove();
|
|
29759
|
-
};
|
|
29760
|
-
}, []), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
29761
|
-
floating.update();
|
|
29762
|
-
}, [
|
|
29763
|
-
dimensions,
|
|
29764
|
-
keyboardOpen
|
|
29765
|
-
]);
|
|
29766
|
-
}
|
|
29767
30011
|
var popperContext = _object_spread9({
|
|
29768
30012
|
size: size3,
|
|
29769
30013
|
arrowRef: setArrow,
|