tamagui 1.101.0 → 1.101.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 +441 -239
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +278 -235
- 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);
|
|
@@ -3056,63 +3080,6 @@ var require_useDisableSSR_native = __commonJS({
|
|
|
3056
3080
|
}
|
|
3057
3081
|
});
|
|
3058
3082
|
|
|
3059
|
-
// ../web/dist/cjs/hooks/useDidHydrateOnce.native.js
|
|
3060
|
-
var require_useDidHydrateOnce_native = __commonJS({
|
|
3061
|
-
"../web/dist/cjs/hooks/useDidHydrateOnce.native.js"(exports2, module2) {
|
|
3062
|
-
"use strict";
|
|
3063
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3064
|
-
for (var name in all) __defProp2(target, name, {
|
|
3065
|
-
get: all[name],
|
|
3066
|
-
enumerable: !0
|
|
3067
|
-
});
|
|
3068
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
3069
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3070
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3071
|
-
for (var _loop = function() {
|
|
3072
|
-
var key = _step.value;
|
|
3073
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3074
|
-
get: function() {
|
|
3075
|
-
return from[key];
|
|
3076
|
-
},
|
|
3077
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3078
|
-
});
|
|
3079
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3080
|
-
} catch (err) {
|
|
3081
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
3082
|
-
} finally {
|
|
3083
|
-
try {
|
|
3084
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3085
|
-
} finally {
|
|
3086
|
-
if (_didIteratorError)
|
|
3087
|
-
throw _iteratorError;
|
|
3088
|
-
}
|
|
3089
|
-
}
|
|
3090
|
-
return to;
|
|
3091
|
-
}, __toCommonJS2 = function(mod) {
|
|
3092
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3093
|
-
value: !0
|
|
3094
|
-
}), mod);
|
|
3095
|
-
}, useDidHydrateOnce_exports = {};
|
|
3096
|
-
__export2(useDidHydrateOnce_exports, {
|
|
3097
|
-
useDidHydrateOnce: function() {
|
|
3098
|
-
return useDidHydrateOnce;
|
|
3099
|
-
},
|
|
3100
|
-
useDidHydrateOnceRoot: function() {
|
|
3101
|
-
return useDidHydrateOnceRoot;
|
|
3102
|
-
}
|
|
3103
|
-
});
|
|
3104
|
-
module2.exports = __toCommonJS2(useDidHydrateOnce_exports);
|
|
3105
|
-
var import_react4 = require("react");
|
|
3106
|
-
function useDidHydrateOnceRoot() {
|
|
3107
|
-
return !0;
|
|
3108
|
-
}
|
|
3109
|
-
var last = Date.now();
|
|
3110
|
-
function useDidHydrateOnce() {
|
|
3111
|
-
return !0;
|
|
3112
|
-
}
|
|
3113
|
-
}
|
|
3114
|
-
});
|
|
3115
|
-
|
|
3116
3083
|
// ../web/dist/cjs/hooks/useMedia.native.js
|
|
3117
3084
|
var require_useMedia_native = __commonJS({
|
|
3118
3085
|
"../web/dist/cjs/hooks/useMedia.native.js"(exports2, module2) {
|
|
@@ -3199,7 +3166,7 @@ var require_useMedia_native = __commonJS({
|
|
|
3199
3166
|
}
|
|
3200
3167
|
});
|
|
3201
3168
|
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(), import_useDisableSSR = require_useDisableSSR_native()
|
|
3169
|
+
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_useDisableSSR = require_useDisableSSR_native();
|
|
3203
3170
|
function _array_like_to_array2(arr, len) {
|
|
3204
3171
|
(len == null || len > arr.length) && (len = arr.length);
|
|
3205
3172
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -3208,9 +3175,6 @@ var require_useMedia_native = __commonJS({
|
|
|
3208
3175
|
function _array_with_holes(arr) {
|
|
3209
3176
|
if (Array.isArray(arr)) return arr;
|
|
3210
3177
|
}
|
|
3211
|
-
function _array_without_holes2(arr) {
|
|
3212
|
-
if (Array.isArray(arr)) return _array_like_to_array2(arr);
|
|
3213
|
-
}
|
|
3214
3178
|
function _define_property9(obj, key, value) {
|
|
3215
3179
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
3216
3180
|
value,
|
|
@@ -3219,9 +3183,6 @@ var require_useMedia_native = __commonJS({
|
|
|
3219
3183
|
writable: !0
|
|
3220
3184
|
}) : obj[key] = value, obj;
|
|
3221
3185
|
}
|
|
3222
|
-
function _iterable_to_array2(iter) {
|
|
3223
|
-
if ((typeof Symbol > "u" ? "undefined" : _type_of(Symbol)) < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3224
|
-
}
|
|
3225
3186
|
function _iterable_to_array_limit(arr, i) {
|
|
3226
3187
|
var _i = arr == null ? null : (typeof Symbol > "u" ? "undefined" : _type_of(Symbol)) < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3227
3188
|
if (_i != null) {
|
|
@@ -3243,9 +3204,6 @@ var require_useMedia_native = __commonJS({
|
|
|
3243
3204
|
function _non_iterable_rest() {
|
|
3244
3205
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3245
3206
|
}
|
|
3246
|
-
function _non_iterable_spread2() {
|
|
3247
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3248
|
-
}
|
|
3249
3207
|
function _object_spread9(target) {
|
|
3250
3208
|
for (var i = 1; i < arguments.length; i++) {
|
|
3251
3209
|
var source = arguments[i] != null ? arguments[i] : {}, ownKeys22 = Object.keys(source);
|
|
@@ -3275,9 +3233,6 @@ var require_useMedia_native = __commonJS({
|
|
|
3275
3233
|
function _sliced_to_array(arr, i) {
|
|
3276
3234
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array2(arr, i) || _non_iterable_rest();
|
|
3277
3235
|
}
|
|
3278
|
-
function _to_consumable_array2(arr) {
|
|
3279
|
-
return _array_without_holes2(arr) || _iterable_to_array2(arr) || _unsupported_iterable_to_array2(arr) || _non_iterable_spread2();
|
|
3280
|
-
}
|
|
3281
3236
|
function _unsupported_iterable_to_array2(o, minLen) {
|
|
3282
3237
|
if (o) {
|
|
3283
3238
|
if (typeof o == "string") return _array_like_to_array2(o, minLen);
|
|
@@ -3297,12 +3252,11 @@ var require_useMedia_native = __commonJS({
|
|
|
3297
3252
|
}) : {}
|
|
3298
3253
|
), mediaQueryConfig3 = {}, getMedia3 = function() {
|
|
3299
3254
|
return mediaState3;
|
|
3300
|
-
}, mediaKeys = /* @__PURE__ */ new Set(), isMediaKey = function(key) {
|
|
3255
|
+
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
3301
3256
|
if (mediaKeys.has(key)) return !0;
|
|
3302
3257
|
if (key[0] === "$") {
|
|
3303
|
-
|
|
3304
|
-
if (
|
|
3305
|
-
if (key.startsWith("$group-")) return "group";
|
|
3258
|
+
var match = key.match(mediaKeyRegex);
|
|
3259
|
+
if (match) return match[1];
|
|
3306
3260
|
}
|
|
3307
3261
|
return !1;
|
|
3308
3262
|
}, initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = function(key) {
|
|
@@ -3337,7 +3291,7 @@ var require_useMedia_native = __commonJS({
|
|
|
3337
3291
|
}), update();
|
|
3338
3292
|
};
|
|
3339
3293
|
if (!(import_constants4.isWeb && import_constants4.isServer) && setupVersion !== mediaVersion) {
|
|
3340
|
-
setupVersion = mediaVersion,
|
|
3294
|
+
setupVersion = mediaVersion, unlisten();
|
|
3341
3295
|
for (var key in mediaQueryConfig3) _loop(key);
|
|
3342
3296
|
}
|
|
3343
3297
|
}
|
|
@@ -3353,37 +3307,42 @@ var require_useMedia_native = __commonJS({
|
|
|
3353
3307
|
function setMediaShouldUpdate(ref, props) {
|
|
3354
3308
|
return States.set(ref, _object_spread9({}, States.get(ref), props));
|
|
3355
3309
|
}
|
|
3356
|
-
function
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
return mediaState3[key] === prev[key];
|
|
3361
|
-
}));
|
|
3362
|
-
return hasntUpdated ? prev : mediaState3;
|
|
3310
|
+
function subscribe(subscriber) {
|
|
3311
|
+
return listeners.add(subscriber), function() {
|
|
3312
|
+
listeners.delete(subscriber);
|
|
3313
|
+
};
|
|
3363
3314
|
}
|
|
3364
|
-
function useMedia3(uidIn, componentContext) {
|
|
3365
|
-
var uid = uidIn ?? (0, import_react4.useRef)(),
|
|
3315
|
+
function useMedia3(uidIn, componentContext, debug) {
|
|
3316
|
+
var uid = uidIn ?? (0, import_react4.useRef)(), disableSSR = (0, import_useDisableSSR.getDisableSSR)(componentContext), initialState = (disableSSR || !import_constants4.isWeb ? mediaState3 : initState) || {}, componentState = States.get(uid);
|
|
3366
3317
|
componentState || (componentState = {
|
|
3367
3318
|
prev: initialState
|
|
3368
|
-
}, States.set(uid, componentState))
|
|
3369
|
-
var
|
|
3370
|
-
|
|
3371
|
-
var
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
}
|
|
3381
|
-
|
|
3382
|
-
|
|
3319
|
+
}, States.set(uid, componentState));
|
|
3320
|
+
var getSnapshot = function() {
|
|
3321
|
+
if (!componentState) return initialState;
|
|
3322
|
+
var keys = componentState.keys, _componentState_prev = componentState.prev, prev = _componentState_prev === void 0 ? initialState : _componentState_prev;
|
|
3323
|
+
if (componentState && componentState.enabled === !1) return prev;
|
|
3324
|
+
var _componentState_keys, _ref, testKeys = (_ref = (_componentState_keys = componentState == null ? void 0 : componentState.keys) !== null && _componentState_keys !== void 0 ? _componentState_keys : (!componentState || componentState.enabled) && keys) !== null && _ref !== void 0 ? _ref : null, hasntUpdated = !testKeys || (testKeys == null ? void 0 : testKeys.every(function(key) {
|
|
3325
|
+
return mediaState3[key] === prev[key];
|
|
3326
|
+
}));
|
|
3327
|
+
return hasntUpdated ? prev : (componentState.prev = mediaState3, mediaState3);
|
|
3328
|
+
}, state;
|
|
3329
|
+
if (process.env.TAMAGUI_SYNC_MEDIA_QUERY) state = (0, import_react4.useSyncExternalStore)(subscribe, getSnapshot, function() {
|
|
3330
|
+
return initialState;
|
|
3331
|
+
});
|
|
3332
|
+
else {
|
|
3333
|
+
var _useState = _sliced_to_array((0, import_react4.useState)(initialState), 2), internalState = _useState[0], setState = _useState[1];
|
|
3334
|
+
state = internalState, (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
3335
|
+
var update = function() {
|
|
3336
|
+
setState(getSnapshot);
|
|
3337
|
+
};
|
|
3338
|
+
return update(), subscribe(update);
|
|
3339
|
+
}, []);
|
|
3340
|
+
}
|
|
3341
|
+
return new Proxy(state, {
|
|
3383
3342
|
get: function(_, key) {
|
|
3384
3343
|
if (typeof key == "string") {
|
|
3385
3344
|
var _componentState;
|
|
3386
|
-
(_componentState = componentState).
|
|
3345
|
+
(_componentState = componentState).keys || (_componentState.keys = []), componentState.keys.includes(key) || componentState.keys.push(key), process.env.NODE_ENV === "development" && debug && console.info("useMedia() TOUCH", key);
|
|
3387
3346
|
}
|
|
3388
3347
|
return Reflect.get(state, key);
|
|
3389
3348
|
}
|
|
@@ -5182,6 +5141,10 @@ var require_getGroupPropParts_native = __commonJS({
|
|
|
5182
5141
|
var require_createMediaStyle_native = __commonJS({
|
|
5183
5142
|
"../web/dist/cjs/helpers/createMediaStyle.native.js"(exports2, module2) {
|
|
5184
5143
|
"use strict";
|
|
5144
|
+
function _type_of(obj) {
|
|
5145
|
+
"@swc/helpers - typeof";
|
|
5146
|
+
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
5147
|
+
}
|
|
5185
5148
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5186
5149
|
for (var name in all) __defProp2(target, name, {
|
|
5187
5150
|
get: all[name],
|
|
@@ -5224,10 +5187,51 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
5224
5187
|
}
|
|
5225
5188
|
});
|
|
5226
5189
|
module2.exports = __toCommonJS2(createMediaStyle_exports);
|
|
5227
|
-
var import_config = require_config_native(), import_useMedia = require_useMedia_native(), import_getGroupPropParts = require_getGroupPropParts_native()
|
|
5190
|
+
var import_config = require_config_native(), import_useMedia = require_useMedia_native(), import_getGroupPropParts = require_getGroupPropParts_native();
|
|
5191
|
+
function _array_like_to_array2(arr, len) {
|
|
5192
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
5193
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
5194
|
+
return arr2;
|
|
5195
|
+
}
|
|
5196
|
+
function _array_with_holes(arr) {
|
|
5197
|
+
if (Array.isArray(arr)) return arr;
|
|
5198
|
+
}
|
|
5199
|
+
function _iterable_to_array_limit(arr, i) {
|
|
5200
|
+
var _i = arr == null ? null : (typeof Symbol > "u" ? "undefined" : _type_of(Symbol)) < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5201
|
+
if (_i != null) {
|
|
5202
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
5203
|
+
try {
|
|
5204
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0) ;
|
|
5205
|
+
} catch (err) {
|
|
5206
|
+
_d = !0, _e = err;
|
|
5207
|
+
} finally {
|
|
5208
|
+
try {
|
|
5209
|
+
!_n && _i.return != null && _i.return();
|
|
5210
|
+
} finally {
|
|
5211
|
+
if (_d) throw _e;
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
return _arr;
|
|
5215
|
+
}
|
|
5216
|
+
}
|
|
5217
|
+
function _non_iterable_rest() {
|
|
5218
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5219
|
+
}
|
|
5220
|
+
function _sliced_to_array(arr, i) {
|
|
5221
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array2(arr, i) || _non_iterable_rest();
|
|
5222
|
+
}
|
|
5223
|
+
function _unsupported_iterable_to_array2(o, minLen) {
|
|
5224
|
+
if (o) {
|
|
5225
|
+
if (typeof o == "string") return _array_like_to_array2(o, minLen);
|
|
5226
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5227
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
5228
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array2(o, minLen);
|
|
5229
|
+
}
|
|
5230
|
+
}
|
|
5231
|
+
var MEDIA_SEP = "_", prefixes = null, selectors = null, groupPseudoToPseudoCSSMap = {
|
|
5228
5232
|
press: "active"
|
|
5229
5233
|
}, createMediaStyle = function(styleObject, mediaKeyIn, mediaQueries, type, negate, priority) {
|
|
5230
|
-
var
|
|
5234
|
+
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
5235
|
return rule.replace(identifier, nextIdentifier);
|
|
5232
5236
|
}).join(";");
|
|
5233
5237
|
if (isNonWindowMedia) {
|
|
@@ -5263,13 +5267,15 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
5263
5267
|
), prefix = groupMediaKey ? "@container ".concat(containerName) : "@media";
|
|
5264
5268
|
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
5269
|
}
|
|
5266
|
-
return
|
|
5270
|
+
return [
|
|
5267
5271
|
property,
|
|
5268
|
-
|
|
5272
|
+
void 0,
|
|
5273
|
+
nextIdentifier,
|
|
5274
|
+
void 0,
|
|
5275
|
+
[
|
|
5269
5276
|
styleRule
|
|
5270
|
-
]
|
|
5271
|
-
|
|
5272
|
-
};
|
|
5277
|
+
]
|
|
5278
|
+
];
|
|
5273
5279
|
};
|
|
5274
5280
|
}
|
|
5275
5281
|
});
|
|
@@ -7201,7 +7207,7 @@ var require_propMapper_native = __commonJS({
|
|
|
7201
7207
|
get: function(_, k) {
|
|
7202
7208
|
return k === "curProps" ? subProps : Reflect.get(_, k);
|
|
7203
7209
|
}
|
|
7204
|
-
}) : styleStateIn, conf = styleState.conf, styleProps = styleState.styleProps, fontFamily = styleState.fontFamily, staticConfig = styleState.staticConfig,
|
|
7210
|
+
}) : styleStateIn, conf = styleState.conf, styleProps = styleState.styleProps, fontFamily = styleState.fontFamily, staticConfig = styleState.staticConfig, variants = staticConfig.variants;
|
|
7205
7211
|
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
7212
|
styleState.curProps[key] = value;
|
|
7207
7213
|
var variantValue = resolveVariants(key, value, styleProps, styleState, "");
|
|
@@ -7620,15 +7626,22 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7620
7626
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array2(o, minLen);
|
|
7621
7627
|
}
|
|
7622
7628
|
}
|
|
7623
|
-
var
|
|
7629
|
+
var conf, PROP_SPLIT = "-";
|
|
7624
7630
|
function isValidStyleKey(key, staticConfig) {
|
|
7625
7631
|
var _staticConfig_accept, validStyleProps = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
|
|
7626
7632
|
return validStyleProps[key] || ((_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key]);
|
|
7627
7633
|
}
|
|
7628
7634
|
var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug, skipThemeTokenResolution) {
|
|
7629
7635
|
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
|
-
|
|
7636
|
+
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 = {
|
|
7637
|
+
// this should go away, right now we're doing really crazy cumulative props,
|
|
7638
|
+
// as variants are resolved basically we go back and merge the results onto
|
|
7639
|
+
// the curProps, so that each following variant function recieves the current
|
|
7640
|
+
// "styles" with variants expanded. powerful, but i think too fancy
|
|
7641
|
+
// there's some part of the ui kit that depends on it we'd have to find and fix
|
|
7642
|
+
get curProps() {
|
|
7643
|
+
return curPropsState || (curPropsState = {}), curPropsState;
|
|
7644
|
+
},
|
|
7632
7645
|
classNames,
|
|
7633
7646
|
conf,
|
|
7634
7647
|
props,
|
|
@@ -7652,15 +7665,18 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7652
7665
|
styleState,
|
|
7653
7666
|
theme: _object_spread9({}, theme)
|
|
7654
7667
|
}), console.groupEnd());
|
|
7668
|
+
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
7669
|
for (var keyOg in props) {
|
|
7656
|
-
var
|
|
7657
|
-
if (
|
|
7658
|
-
var
|
|
7659
|
-
|
|
7660
|
-
|
|
7670
|
+
var keyInit = keyOg, valInit = props[keyInit];
|
|
7671
|
+
if (accept) {
|
|
7672
|
+
var accepted = accept[keyInit];
|
|
7673
|
+
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") {
|
|
7674
|
+
viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
|
|
7675
|
+
continue;
|
|
7676
|
+
}
|
|
7661
7677
|
}
|
|
7662
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(),
|
|
7663
|
-
if (keyInit in import_skipProps.skipProps && !
|
|
7678
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
|
|
7679
|
+
if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
|
|
7664
7680
|
if (keyInit === "group" && !1) var identifier, containerType, containerCSS;
|
|
7665
7681
|
continue;
|
|
7666
7682
|
}
|
|
@@ -7669,7 +7685,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7669
7685
|
var isValidClassName, isMediaOrPseudo;
|
|
7670
7686
|
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState;
|
|
7671
7687
|
}
|
|
7672
|
-
if (
|
|
7688
|
+
if (!isValidStyleKeyInit) {
|
|
7673
7689
|
if (!import_constants4.isAndroid && keyInit === "elevationAndroid") continue;
|
|
7674
7690
|
if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
|
|
7675
7691
|
else if (keyInit.startsWith("data-")) continue;
|
|
@@ -7684,10 +7700,10 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7684
7700
|
var name = keyInit.split("-")[1];
|
|
7685
7701
|
context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
7686
7702
|
}
|
|
7687
|
-
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !
|
|
7688
|
-
if (!(isStyleProp && (
|
|
7703
|
+
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
|
|
7704
|
+
if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
|
|
7689
7705
|
var shouldPassProp = !isStyleProp || // is in parent variants
|
|
7690
|
-
isHOC &&
|
|
7706
|
+
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
7707
|
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
7708
|
isVariant,
|
|
7693
7709
|
valInit,
|
|
@@ -7703,7 +7719,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7703
7719
|
process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
|
|
7704
7720
|
continue;
|
|
7705
7721
|
}
|
|
7706
|
-
if (!
|
|
7722
|
+
if (!noSkip && keyInit in import_skipProps.skipProps) {
|
|
7707
7723
|
process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
|
|
7708
7724
|
continue;
|
|
7709
7725
|
}
|
|
@@ -7736,17 +7752,17 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7736
7752
|
console.groupEnd();
|
|
7737
7753
|
}
|
|
7738
7754
|
for (var key = keyInit, val = valInit, max2 = expanded ? expanded.length : 1, i = 0; i < max2; i++) {
|
|
7739
|
-
var
|
|
7755
|
+
var _parentStaticConfig_variants;
|
|
7740
7756
|
if (expanded) {
|
|
7741
7757
|
var _expanded_i = _sliced_to_array(expanded[i], 2), k = _expanded_i[0], v = _expanded_i[1];
|
|
7742
7758
|
key = k, val = v;
|
|
7743
7759
|
}
|
|
7744
7760
|
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)) {
|
|
7761
|
+
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
7762
|
var _props_key;
|
|
7747
7763
|
viewProps[key] = (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : val;
|
|
7748
7764
|
}
|
|
7749
|
-
var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (
|
|
7765
|
+
var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
7750
7766
|
if (shouldPassThrough1) {
|
|
7751
7767
|
passDownProp(viewProps, key, val, isMediaOrPseudo1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" - passing down prop ".concat(key)), (0, import_log.log)({
|
|
7752
7768
|
val,
|
|
@@ -7758,9 +7774,9 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7758
7774
|
if (!val) continue;
|
|
7759
7775
|
var pseudoStyleObject = getSubStyle(styleState, key, val, styleProps.noClassNames), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
|
|
7760
7776
|
if (!descriptor) continue;
|
|
7761
|
-
if (!shouldDoClasses || IS_STATIC) {
|
|
7777
|
+
if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
|
|
7762
7778
|
var _pseudos, _key;
|
|
7763
|
-
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), IS_STATIC) {
|
|
7779
|
+
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
|
|
7764
7780
|
Object.assign(pseudos[key], pseudoStyleObject);
|
|
7765
7781
|
continue;
|
|
7766
7782
|
}
|
|
@@ -7774,8 +7790,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7774
7790
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7775
7791
|
try {
|
|
7776
7792
|
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.
|
|
7793
|
+
var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle[import_helpers.StyleObjectProperty]).concat(PROP_SPLIT).concat(descriptor.name);
|
|
7794
|
+
fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle[import_helpers.StyleObjectIdentifier], isMediaOrPseudo1, !0);
|
|
7779
7795
|
}
|
|
7780
7796
|
} catch (err) {
|
|
7781
7797
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -7826,7 +7842,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7826
7842
|
}
|
|
7827
7843
|
if (isMedia) {
|
|
7828
7844
|
if (!val) continue;
|
|
7829
|
-
|
|
7845
|
+
var hasSpace = val.space, mediaKeyShort = key.slice(1);
|
|
7846
|
+
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), isMedia === "platform") {
|
|
7830
7847
|
var platform = key.slice(10);
|
|
7831
7848
|
if (
|
|
7832
7849
|
// supports web, ios, android
|
|
@@ -7834,18 +7851,15 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7834
7851
|
platform !== "native"
|
|
7835
7852
|
) continue;
|
|
7836
7853
|
}
|
|
7837
|
-
|
|
7838
|
-
var mediaKeyShort = key.slice(1);
|
|
7839
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key), {
|
|
7854
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key), {
|
|
7840
7855
|
key,
|
|
7841
7856
|
val,
|
|
7842
7857
|
props,
|
|
7843
7858
|
shouldDoClasses,
|
|
7844
7859
|
acceptsClassName,
|
|
7845
|
-
componentState
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
if ((hasSpace || !shouldDoClasses) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), shouldDoClasses) {
|
|
7860
|
+
componentState,
|
|
7861
|
+
mediaState: mediaState3
|
|
7862
|
+
}), shouldDoClasses) {
|
|
7849
7863
|
var mediaStyle = getSubStyle(styleState, key, val, !1);
|
|
7850
7864
|
if (hasSpace && (delete mediaStyle.space, mediaState3[mediaKeyShort])) {
|
|
7851
7865
|
var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
|
|
@@ -7858,8 +7872,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7858
7872
|
for (var _iterator1 = mediaStyles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
|
|
7859
7873
|
var style = _step1.value, out = (0, import_createMediaStyle.createMediaStyle)(style, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority);
|
|
7860
7874
|
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.
|
|
7875
|
+
var fullKey1 = "".concat(style[import_helpers.StyleObjectProperty]).concat(PROP_SPLIT).concat(mediaKeyShort).concat(style[import_helpers.StyleObjectPseudo] || "");
|
|
7876
|
+
fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out[import_helpers.StyleObjectIdentifier], !0, !0);
|
|
7863
7877
|
}
|
|
7864
7878
|
} catch (err) {
|
|
7865
7879
|
_didIteratorError1 = !0, _iteratorError1 = err;
|
|
@@ -7871,9 +7885,15 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7871
7885
|
}
|
|
7872
7886
|
}
|
|
7873
7887
|
} else {
|
|
7874
|
-
var
|
|
7875
|
-
if (!isThemeMedia && !isPlatformMedia && !isGroupMedia
|
|
7876
|
-
|
|
7888
|
+
var isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
7889
|
+
if (!isThemeMedia && !isPlatformMedia && !isGroupMedia) {
|
|
7890
|
+
if (!mediaState3[mediaKeyShort]) {
|
|
7891
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} \u274C DISABLED ".concat(mediaKeyShort));
|
|
7892
|
+
continue;
|
|
7893
|
+
}
|
|
7894
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} \u2705 ENABLED ".concat(mediaKeyShort));
|
|
7895
|
+
}
|
|
7896
|
+
var mediaStyle1 = getSubStyle(styleState, key, val, !0), importanceBump = 0;
|
|
7877
7897
|
if (isThemeMedia) {
|
|
7878
7898
|
dynamicThemeAccess = !0;
|
|
7879
7899
|
var mediaThemeName = mediaKeyShort.slice(6);
|
|
@@ -7938,7 +7958,7 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7938
7958
|
}
|
|
7939
7959
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7940
7960
|
if (!avoidNormalize) {
|
|
7941
|
-
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !
|
|
7961
|
+
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
7942
7962
|
var _styleState2;
|
|
7943
7963
|
(_styleState2 = styleState).style || (_styleState2.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
7944
7964
|
var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
|
|
@@ -7963,7 +7983,7 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7963
7983
|
if (!styleState.style.$$css) {
|
|
7964
7984
|
var atomic, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2;
|
|
7965
7985
|
try {
|
|
7966
|
-
for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) var atomicStyle, _props_animateOnly, key4, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
7986
|
+
for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) var atomicStyle, _props_animateOnly, _atomicStyle, key4, value, identifier1, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
7967
7987
|
} catch (err) {
|
|
7968
7988
|
} finally {
|
|
7969
7989
|
try {
|
|
@@ -7972,8 +7992,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
7972
7992
|
}
|
|
7973
7993
|
}
|
|
7974
7994
|
if (transforms) for (var namespace in transforms) {
|
|
7975
|
-
var _transforms_namespace, hash, val3,
|
|
7976
|
-
if (import_constants4.isClient && !insertedTransforms[
|
|
7995
|
+
var _transforms_namespace, hash, val3, identifier2;
|
|
7996
|
+
if (import_constants4.isClient && !insertedTransforms[identifier2]) var rule;
|
|
7977
7997
|
}
|
|
7978
7998
|
}
|
|
7979
7999
|
if (!isReactNative && viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
|
|
@@ -8009,7 +8029,7 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8009
8029
|
dynamicThemeAccess,
|
|
8010
8030
|
pseudoGroups,
|
|
8011
8031
|
mediaGroups
|
|
8012
|
-
},
|
|
8032
|
+
}, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
8013
8033
|
if (!asChildExceptStyleLike) {
|
|
8014
8034
|
var style3 = styleState.style;
|
|
8015
8035
|
if (0) {
|
|
@@ -8617,6 +8637,63 @@ var require_themeable_native = __commonJS({
|
|
|
8617
8637
|
}
|
|
8618
8638
|
});
|
|
8619
8639
|
|
|
8640
|
+
// ../web/dist/cjs/hooks/useDidHydrateOnce.native.js
|
|
8641
|
+
var require_useDidHydrateOnce_native = __commonJS({
|
|
8642
|
+
"../web/dist/cjs/hooks/useDidHydrateOnce.native.js"(exports2, module2) {
|
|
8643
|
+
"use strict";
|
|
8644
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
8645
|
+
for (var name in all) __defProp2(target, name, {
|
|
8646
|
+
get: all[name],
|
|
8647
|
+
enumerable: !0
|
|
8648
|
+
});
|
|
8649
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
8650
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
8651
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
8652
|
+
for (var _loop = function() {
|
|
8653
|
+
var key = _step.value;
|
|
8654
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
8655
|
+
get: function() {
|
|
8656
|
+
return from[key];
|
|
8657
|
+
},
|
|
8658
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
8659
|
+
});
|
|
8660
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
8661
|
+
} catch (err) {
|
|
8662
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
8663
|
+
} finally {
|
|
8664
|
+
try {
|
|
8665
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
8666
|
+
} finally {
|
|
8667
|
+
if (_didIteratorError)
|
|
8668
|
+
throw _iteratorError;
|
|
8669
|
+
}
|
|
8670
|
+
}
|
|
8671
|
+
return to;
|
|
8672
|
+
}, __toCommonJS2 = function(mod) {
|
|
8673
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
8674
|
+
value: !0
|
|
8675
|
+
}), mod);
|
|
8676
|
+
}, useDidHydrateOnce_exports = {};
|
|
8677
|
+
__export2(useDidHydrateOnce_exports, {
|
|
8678
|
+
useDidHydrateOnce: function() {
|
|
8679
|
+
return useDidHydrateOnce;
|
|
8680
|
+
},
|
|
8681
|
+
useDidHydrateOnceRoot: function() {
|
|
8682
|
+
return useDidHydrateOnceRoot;
|
|
8683
|
+
}
|
|
8684
|
+
});
|
|
8685
|
+
module2.exports = __toCommonJS2(useDidHydrateOnce_exports);
|
|
8686
|
+
var import_react4 = require("react");
|
|
8687
|
+
function useDidHydrateOnceRoot() {
|
|
8688
|
+
return !0;
|
|
8689
|
+
}
|
|
8690
|
+
var last = Date.now();
|
|
8691
|
+
function useDidHydrateOnce() {
|
|
8692
|
+
return !0;
|
|
8693
|
+
}
|
|
8694
|
+
}
|
|
8695
|
+
});
|
|
8696
|
+
|
|
8620
8697
|
// ../web/dist/cjs/setupHooks.native.js
|
|
8621
8698
|
var require_setupHooks_native = __commonJS({
|
|
8622
8699
|
"../web/dist/cjs/setupHooks.native.js"(exports2, module2) {
|
|
@@ -8889,7 +8966,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8889
8966
|
}
|
|
8890
8967
|
});
|
|
8891
8968
|
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()
|
|
8969
|
+
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
8970
|
function _array_like_to_array2(arr, len) {
|
|
8894
8971
|
(len == null || len > arr.length) && (len = arr.length);
|
|
8895
8972
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -9210,20 +9287,22 @@ var require_createComponent_native = __commonJS({
|
|
|
9210
9287
|
}
|
|
9211
9288
|
}));
|
|
9212
9289
|
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)(
|
|
9290
|
+
var animationDriver = param.animationDriver, groups = param.groups, _animationDriver_usePresence, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react4.useRef)(void 0);
|
|
9291
|
+
stateRef.current || (stateRef.current = {});
|
|
9292
|
+
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
|
|
9214
9293
|
var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
|
|
9215
9294
|
return !!(next || curStateRef.hasAnimated);
|
|
9216
9295
|
}(), willBeAnimated = !import_constants4.isServer && willBeAnimatedClient;
|
|
9217
9296
|
willBeAnimated && !curStateRef.hasAnimated && (curStateRef.hasAnimated = !0);
|
|
9218
9297
|
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
9298
|
process.env.NODE_ENV === "development" && time && time(_templateObject());
|
|
9220
|
-
var hasEnterState = hasEnterStyle || isEntering, didHydrateOnce = (0, import_useDidHydrateOnce.useDidHydrateOnce)(),
|
|
9299
|
+
var hasEnterState = hasEnterStyle || isEntering, didHydrateOnce = willBeAnimated ? (0, import_useDidHydrateOnce.useDidHydrateOnce)() : !0, shouldEnter = hasEnterState || !didHydrateOnce && hasRNAnimation, shouldEnterFromUnhydrated = import_constants4.isWeb && !didHydrateOnce, initialState = shouldEnter ? (
|
|
9221
9300
|
// on the very first render we switch all spring animation drivers to css rendering
|
|
9222
9301
|
// this is because we need to use css variables, which they don't support to do proper SSR
|
|
9223
9302
|
// without flickers of the wrong colors.
|
|
9224
9303
|
// but once we do that initial hydration and we are in client side rendering mode,
|
|
9225
9304
|
// we can avoid the extra re-render on mount
|
|
9226
|
-
|
|
9305
|
+
shouldEnterFromUnhydrated ? import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateShouldEnter
|
|
9227
9306
|
) : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
|
|
9228
9307
|
disabled != null && (initialState.disabled = disabled);
|
|
9229
9308
|
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 +9486,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9407
9486
|
elementType = Component || elementType;
|
|
9408
9487
|
var isStringElement = typeof elementType == "string";
|
|
9409
9488
|
process.env.NODE_ENV === "development" && time && time(_templateObject8());
|
|
9410
|
-
var mediaState3 = (0, import_useMedia.useMedia)(stateRef, componentContext);
|
|
9489
|
+
var mediaState3 = (0, import_useMedia.useMedia)(stateRef, componentContext, debugProp);
|
|
9411
9490
|
(0, import_createVariable.setDidGetVariableValue)(!1), process.env.NODE_ENV === "development" && time && time(_templateObject9());
|
|
9412
9491
|
var resolveValues = (
|
|
9413
9492
|
// if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
|
|
@@ -9417,7 +9496,8 @@ var require_createComponent_native = __commonJS({
|
|
|
9417
9496
|
noClassNames,
|
|
9418
9497
|
resolveValues,
|
|
9419
9498
|
isExiting,
|
|
9420
|
-
isAnimated
|
|
9499
|
+
isAnimated,
|
|
9500
|
+
willBeAnimated
|
|
9421
9501
|
}, 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
9502
|
if (props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
|
|
9423
9503
|
var _splitStyles;
|
|
@@ -9425,7 +9505,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9425
9505
|
}
|
|
9426
9506
|
process.env.NODE_ENV === "development" && time && time(_templateObject10()), curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
|
|
9427
9507
|
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, {
|
|
9508
|
+
process.env.NODE_ENV === "development" && debugProp && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(stateRef, {
|
|
9429
9509
|
enabled: shouldListenForMedia,
|
|
9430
9510
|
keys: mediaListeningKeys
|
|
9431
9511
|
});
|
|
@@ -9657,14 +9737,14 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9657
9737
|
children: [
|
|
9658
9738
|
content,
|
|
9659
9739
|
/* lets see if we can put a single style tag per rule for optimal de-duping */
|
|
9660
|
-
splitStyles.rulesToInsert.map(function(
|
|
9661
|
-
var
|
|
9740
|
+
splitStyles.rulesToInsert.map(function(styleObject) {
|
|
9741
|
+
var identifier = styleObject[import_helpers.StyleObjectIdentifier];
|
|
9662
9742
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("style", {
|
|
9663
9743
|
// @ts-ignore
|
|
9664
9744
|
href: "t_".concat(identifier),
|
|
9665
9745
|
// @ts-ignore
|
|
9666
9746
|
precedence: "default",
|
|
9667
|
-
children:
|
|
9747
|
+
children: styleObject[import_helpers.StyleObjectRules].join(`
|
|
9668
9748
|
`)
|
|
9669
9749
|
}, identifier);
|
|
9670
9750
|
})
|
|
@@ -20986,9 +21066,7 @@ var require_Dialog_native = __commonJS({
|
|
|
20986
21066
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
|
|
20987
21067
|
}))
|
|
20988
21068
|
});
|
|
20989
|
-
})
|
|
20990
|
-
DialogTrigger.displayName = TRIGGER_NAME;
|
|
20991
|
-
var PORTAL_NAME = "DialogPortal", _createDialogContext1 = _sliced_to_array(createDialogContext(PORTAL_NAME, {
|
|
21069
|
+
}), PORTAL_NAME = "DialogPortal", _createDialogContext1 = _sliced_to_array(createDialogContext(PORTAL_NAME, {
|
|
20992
21070
|
forceMount: void 0
|
|
20993
21071
|
}), 2), PortalProvider2 = _createDialogContext1[0], usePortalContext = _createDialogContext1[1], DialogPortalFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
20994
21072
|
pointerEvents: "none",
|
|
@@ -21074,9 +21152,7 @@ var require_Dialog_native = __commonJS({
|
|
|
21074
21152
|
});
|
|
21075
21153
|
}
|
|
21076
21154
|
return contents;
|
|
21077
|
-
}
|
|
21078
|
-
DialogPortal.displayName = PORTAL_NAME;
|
|
21079
|
-
var PassthroughTheme = function(param) {
|
|
21155
|
+
}, PassthroughTheme = function(param) {
|
|
21080
21156
|
var children = param.children, themeName = (0, import_core12.useThemeName)();
|
|
21081
21157
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
|
|
21082
21158
|
name: themeName,
|
|
@@ -21091,29 +21167,14 @@ var require_Dialog_native = __commonJS({
|
|
|
21091
21167
|
]), portalContext = usePortalContext(OVERLAY_NAME, __scopeDialog), _props_forceMount = props.forceMount, forceMount = _props_forceMount === void 0 ? portalContext.forceMount : _props_forceMount, overlayProps = _object_without_properties5(props, [
|
|
21092
21168
|
"forceMount"
|
|
21093
21169
|
]), context = useDialogContext(OVERLAY_NAME, __scopeDialog), showSheet = useShowDialogSheet(context);
|
|
21094
|
-
return !forceMount && (!context.modal || showSheet) ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
21095
|
-
context
|
|
21170
|
+
return !forceMount && (!context.modal || showSheet) ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogOverlayFrame, _object_spread_props8(_object_spread9({
|
|
21171
|
+
"data-state": getState(context.open),
|
|
21172
|
+
// We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.
|
|
21173
|
+
pointerEvents: context.open ? "auto" : "none"
|
|
21096
21174
|
}, overlayProps), {
|
|
21097
21175
|
ref: forwardedRef
|
|
21098
21176
|
}));
|
|
21099
|
-
}))
|
|
21100
|
-
DialogOverlay.displayName = OVERLAY_NAME;
|
|
21101
|
-
var DialogOverlayImpl = /* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
|
|
21102
|
-
var context = props.context, overlayProps = _object_without_properties5(props, [
|
|
21103
|
-
"context"
|
|
21104
|
-
]);
|
|
21105
|
-
return (
|
|
21106
|
-
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
21107
|
-
// ie. when `Overlay` and `Content` are siblings
|
|
21108
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogOverlayFrame, _object_spread_props8(_object_spread9({
|
|
21109
|
-
"data-state": getState(context.open),
|
|
21110
|
-
// We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.
|
|
21111
|
-
pointerEvents: context.open ? "auto" : "none"
|
|
21112
|
-
}, overlayProps), {
|
|
21113
|
-
ref: forwardedRef
|
|
21114
|
-
}))
|
|
21115
|
-
);
|
|
21116
|
-
}), CONTENT_NAME = "DialogContent", DialogContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
21177
|
+
})), CONTENT_NAME = "DialogContent", DialogContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
21117
21178
|
name: CONTENT_NAME,
|
|
21118
21179
|
tag: "dialog",
|
|
21119
21180
|
variants: {
|
|
@@ -21166,9 +21227,7 @@ var require_Dialog_native = __commonJS({
|
|
|
21166
21227
|
children: contents
|
|
21167
21228
|
})
|
|
21168
21229
|
});
|
|
21169
|
-
}))
|
|
21170
|
-
DialogContent.displayName = CONTENT_NAME;
|
|
21171
|
-
var DialogContentModal = /* @__PURE__ */ React2.forwardRef(function(_param, forwardedRef) {
|
|
21230
|
+
})), DialogContentModal = /* @__PURE__ */ React2.forwardRef(function(_param, forwardedRef) {
|
|
21172
21231
|
var children = _param.children, context = _param.context, props = _object_without_properties5(_param, [
|
|
21173
21232
|
"children",
|
|
21174
21233
|
"context"
|
|
@@ -21290,20 +21349,18 @@ var require_Dialog_native = __commonJS({
|
|
|
21290
21349
|
})
|
|
21291
21350
|
]
|
|
21292
21351
|
}) : contents;
|
|
21293
|
-
}),
|
|
21294
|
-
name:
|
|
21352
|
+
}), DialogTitleFrame = (0, import_core12.styled)(import_text2.H2, {
|
|
21353
|
+
name: "DialogTitle"
|
|
21295
21354
|
}), DialogTitle = DialogTitleFrame.styleable(function(props, forwardedRef) {
|
|
21296
21355
|
var __scopeDialog = props.__scopeDialog, titleProps = _object_without_properties5(props, [
|
|
21297
21356
|
"__scopeDialog"
|
|
21298
|
-
]), context = useDialogContext(
|
|
21357
|
+
]), context = useDialogContext("DialogTitle", __scopeDialog);
|
|
21299
21358
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogTitleFrame, _object_spread_props8(_object_spread9({
|
|
21300
21359
|
id: context.titleId
|
|
21301
21360
|
}, titleProps), {
|
|
21302
21361
|
ref: forwardedRef
|
|
21303
21362
|
}));
|
|
21304
|
-
})
|
|
21305
|
-
DialogTitle.displayName = TITLE_NAME;
|
|
21306
|
-
var DialogDescriptionFrame = (0, import_core12.styled)(import_text2.Paragraph, {
|
|
21363
|
+
}), DialogDescriptionFrame = (0, import_core12.styled)(import_text2.Paragraph, {
|
|
21307
21364
|
name: "DialogDescription"
|
|
21308
21365
|
}), DESCRIPTION_NAME = "DialogDescription", DialogDescription = DialogDescriptionFrame.styleable(function(props, forwardedRef) {
|
|
21309
21366
|
var __scopeDialog = props.__scopeDialog, descriptionProps = _object_without_properties5(props, [
|
|
@@ -21314,9 +21371,7 @@ var require_Dialog_native = __commonJS({
|
|
|
21314
21371
|
}, descriptionProps), {
|
|
21315
21372
|
ref: forwardedRef
|
|
21316
21373
|
}));
|
|
21317
|
-
})
|
|
21318
|
-
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
21319
|
-
var CLOSE_NAME = "DialogClose", DialogCloseFrame = (0, import_core12.styled)(import_core12.View, {
|
|
21374
|
+
}), CLOSE_NAME = "DialogClose", DialogCloseFrame = (0, import_core12.styled)(import_core12.View, {
|
|
21320
21375
|
name: CLOSE_NAME,
|
|
21321
21376
|
tag: "button"
|
|
21322
21377
|
}), DialogClose = DialogCloseFrame.styleable(function(props, forwardedRef) {
|
|
@@ -21342,7 +21397,7 @@ var require_Dialog_native = __commonJS({
|
|
|
21342
21397
|
}
|
|
21343
21398
|
var TITLE_WARNING_NAME = "DialogTitleWarning", _createContext = _sliced_to_array((0, import_create_context.createContext)(TITLE_WARNING_NAME, {
|
|
21344
21399
|
contentName: CONTENT_NAME,
|
|
21345
|
-
titleName:
|
|
21400
|
+
titleName: "DialogTitle",
|
|
21346
21401
|
docsSlug: "dialog"
|
|
21347
21402
|
}), 2), DialogWarningProvider = _createContext[0], useWarningContext = _createContext[1], TitleWarning = function(param) {
|
|
21348
21403
|
var titleId = param.titleId;
|
|
@@ -21445,7 +21500,7 @@ var require_Dialog_native = __commonJS({
|
|
|
21445
21500
|
Close: DialogClose,
|
|
21446
21501
|
Sheet: import_sheet.Sheet.Controlled,
|
|
21447
21502
|
Adapt: import_adapt.Adapt
|
|
21448
|
-
}),
|
|
21503
|
+
}), DialogSheetContents = function(_param) {
|
|
21449
21504
|
var name = _param.name, props = _object_without_properties5(_param, [
|
|
21450
21505
|
"name"
|
|
21451
21506
|
]);
|
|
@@ -21453,9 +21508,7 @@ var require_Dialog_native = __commonJS({
|
|
|
21453
21508
|
forwardProps: props,
|
|
21454
21509
|
name
|
|
21455
21510
|
});
|
|
21456
|
-
}
|
|
21457
|
-
DialogSheetContents.displayName = SHEET_CONTENTS_NAME;
|
|
21458
|
-
var getSheetContentsName = function(param) {
|
|
21511
|
+
}, getSheetContentsName = function(param) {
|
|
21459
21512
|
var scopeKey = param.scopeKey, contentId = param.contentId;
|
|
21460
21513
|
return "".concat(scopeKey || contentId, "SheetContents");
|
|
21461
21514
|
}, DialogSheetController = function(props) {
|
|
@@ -22007,7 +22060,7 @@ var require_Image_native = __commonJS({
|
|
|
22007
22060
|
}
|
|
22008
22061
|
});
|
|
22009
22062
|
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");
|
|
22063
|
+
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
22064
|
function _array_like_to_array2(arr, len) {
|
|
22012
22065
|
(len == null || len > arr.length) && (len = arr.length);
|
|
22013
22066
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -22016,6 +22069,30 @@ var require_Image_native = __commonJS({
|
|
|
22016
22069
|
function _array_with_holes(arr) {
|
|
22017
22070
|
if (Array.isArray(arr)) return arr;
|
|
22018
22071
|
}
|
|
22072
|
+
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
22073
|
+
try {
|
|
22074
|
+
var info = gen[key](arg), value = info.value;
|
|
22075
|
+
} catch (error) {
|
|
22076
|
+
reject(error);
|
|
22077
|
+
return;
|
|
22078
|
+
}
|
|
22079
|
+
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
|
|
22080
|
+
}
|
|
22081
|
+
function _async_to_generator2(fn) {
|
|
22082
|
+
return function() {
|
|
22083
|
+
var self = this, args = arguments;
|
|
22084
|
+
return new Promise(function(resolve, reject) {
|
|
22085
|
+
var gen = fn.apply(self, args);
|
|
22086
|
+
function _next(value) {
|
|
22087
|
+
asyncGeneratorStep2(gen, resolve, reject, _next, _throw, "next", value);
|
|
22088
|
+
}
|
|
22089
|
+
function _throw(err) {
|
|
22090
|
+
asyncGeneratorStep2(gen, resolve, reject, _next, _throw, "throw", err);
|
|
22091
|
+
}
|
|
22092
|
+
_next(void 0);
|
|
22093
|
+
});
|
|
22094
|
+
};
|
|
22095
|
+
}
|
|
22019
22096
|
function _define_property9(obj, key, value) {
|
|
22020
22097
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
22021
22098
|
value,
|
|
@@ -22082,6 +22159,92 @@ var require_Image_native = __commonJS({
|
|
|
22082
22159
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array2(o, minLen);
|
|
22083
22160
|
}
|
|
22084
22161
|
}
|
|
22162
|
+
function _ts_generator2(thisArg, body) {
|
|
22163
|
+
var f, y, t, g, _ = {
|
|
22164
|
+
label: 0,
|
|
22165
|
+
sent: function() {
|
|
22166
|
+
if (t[0] & 1) throw t[1];
|
|
22167
|
+
return t[1];
|
|
22168
|
+
},
|
|
22169
|
+
trys: [],
|
|
22170
|
+
ops: []
|
|
22171
|
+
};
|
|
22172
|
+
return g = {
|
|
22173
|
+
next: verb(0),
|
|
22174
|
+
throw: verb(1),
|
|
22175
|
+
return: verb(2)
|
|
22176
|
+
}, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
|
|
22177
|
+
return this;
|
|
22178
|
+
}), g;
|
|
22179
|
+
function verb(n) {
|
|
22180
|
+
return function(v) {
|
|
22181
|
+
return step([
|
|
22182
|
+
n,
|
|
22183
|
+
v
|
|
22184
|
+
]);
|
|
22185
|
+
};
|
|
22186
|
+
}
|
|
22187
|
+
function step(op) {
|
|
22188
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
22189
|
+
for (; _; ) try {
|
|
22190
|
+
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;
|
|
22191
|
+
switch (y = 0, t && (op = [
|
|
22192
|
+
op[0] & 2,
|
|
22193
|
+
t.value
|
|
22194
|
+
]), op[0]) {
|
|
22195
|
+
case 0:
|
|
22196
|
+
case 1:
|
|
22197
|
+
t = op;
|
|
22198
|
+
break;
|
|
22199
|
+
case 4:
|
|
22200
|
+
return _.label++, {
|
|
22201
|
+
value: op[1],
|
|
22202
|
+
done: !1
|
|
22203
|
+
};
|
|
22204
|
+
case 5:
|
|
22205
|
+
_.label++, y = op[1], op = [
|
|
22206
|
+
0
|
|
22207
|
+
];
|
|
22208
|
+
continue;
|
|
22209
|
+
case 7:
|
|
22210
|
+
op = _.ops.pop(), _.trys.pop();
|
|
22211
|
+
continue;
|
|
22212
|
+
default:
|
|
22213
|
+
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
22214
|
+
_ = 0;
|
|
22215
|
+
continue;
|
|
22216
|
+
}
|
|
22217
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
22218
|
+
_.label = op[1];
|
|
22219
|
+
break;
|
|
22220
|
+
}
|
|
22221
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
22222
|
+
_.label = t[1], t = op;
|
|
22223
|
+
break;
|
|
22224
|
+
}
|
|
22225
|
+
if (t && _.label < t[2]) {
|
|
22226
|
+
_.label = t[2], _.ops.push(op);
|
|
22227
|
+
break;
|
|
22228
|
+
}
|
|
22229
|
+
t[2] && _.ops.pop(), _.trys.pop();
|
|
22230
|
+
continue;
|
|
22231
|
+
}
|
|
22232
|
+
op = body.call(thisArg, _);
|
|
22233
|
+
} catch (e) {
|
|
22234
|
+
op = [
|
|
22235
|
+
6,
|
|
22236
|
+
e
|
|
22237
|
+
], y = 0;
|
|
22238
|
+
} finally {
|
|
22239
|
+
f = t = 0;
|
|
22240
|
+
}
|
|
22241
|
+
if (op[0] & 5) throw op[1];
|
|
22242
|
+
return {
|
|
22243
|
+
value: op[0] ? op[1] : void 0,
|
|
22244
|
+
done: !0
|
|
22245
|
+
};
|
|
22246
|
+
}
|
|
22247
|
+
}
|
|
22085
22248
|
var StyledImage = (0, import_core12.styled)(import_react_native4.Image, {
|
|
22086
22249
|
name: "Image"
|
|
22087
22250
|
}), hasWarned = !1, Image = StyledImage.styleable(function(inProps, ref) {
|
|
@@ -22093,8 +22256,8 @@ var require_Image_native = __commonJS({
|
|
|
22093
22256
|
var finalSource = typeof src == "string" ? _object_spread9({
|
|
22094
22257
|
uri: src
|
|
22095
22258
|
}, import_constants4.isWeb && {
|
|
22096
|
-
width: props.width,
|
|
22097
|
-
height: props.height
|
|
22259
|
+
width: props.width || (style == null ? void 0 : style.width),
|
|
22260
|
+
height: props.height || (style == null ? void 0 : style.height)
|
|
22098
22261
|
}) : source ?? src;
|
|
22099
22262
|
if (finalSource && typeof finalSource == "object") {
|
|
22100
22263
|
if (!Array.isArray(finalSource) && typeof finalSource.uri == "number" && (finalSource = finalSource.uri, source && typeof source == "object" && !Array.isArray(source))) {
|
|
@@ -22103,9 +22266,59 @@ var require_Image_native = __commonJS({
|
|
|
22103
22266
|
var _height;
|
|
22104
22267
|
(_height = (_style1 = style).height) !== null && _height !== void 0 || (_style1.height = source.height);
|
|
22105
22268
|
}
|
|
22106
|
-
|
|
22269
|
+
process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && (0, import_react4.useEffect)(function() {
|
|
22270
|
+
var run = function() {
|
|
22271
|
+
return _run.apply(this, arguments);
|
|
22272
|
+
};
|
|
22273
|
+
function _run() {
|
|
22274
|
+
return _run = _async_to_generator2(function() {
|
|
22275
|
+
var err;
|
|
22276
|
+
return _ts_generator2(this, function(_state) {
|
|
22277
|
+
switch (_state.label) {
|
|
22278
|
+
case 0:
|
|
22279
|
+
if (typeof src != "string") return [
|
|
22280
|
+
3,
|
|
22281
|
+
4
|
|
22282
|
+
];
|
|
22283
|
+
_state.label = 1;
|
|
22284
|
+
case 1:
|
|
22285
|
+
return _state.trys.push([
|
|
22286
|
+
1,
|
|
22287
|
+
3,
|
|
22288
|
+
,
|
|
22289
|
+
4
|
|
22290
|
+
]), [
|
|
22291
|
+
4,
|
|
22292
|
+
fetch(src).then(function(res) {
|
|
22293
|
+
return res.text();
|
|
22294
|
+
})
|
|
22295
|
+
];
|
|
22296
|
+
case 2:
|
|
22297
|
+
return _state.sent(), [
|
|
22298
|
+
3,
|
|
22299
|
+
4
|
|
22300
|
+
];
|
|
22301
|
+
case 3:
|
|
22302
|
+
return err = _state.sent(), console.error("Error loading image: ".concat(src), {
|
|
22303
|
+
props
|
|
22304
|
+
}), [
|
|
22305
|
+
3,
|
|
22306
|
+
4
|
|
22307
|
+
];
|
|
22308
|
+
case 4:
|
|
22309
|
+
return [
|
|
22310
|
+
2
|
|
22311
|
+
];
|
|
22312
|
+
}
|
|
22313
|
+
});
|
|
22314
|
+
}), _run.apply(this, arguments);
|
|
22315
|
+
}
|
|
22316
|
+
run();
|
|
22317
|
+
}, [
|
|
22318
|
+
src
|
|
22319
|
+
]), finalSource.default && (finalSource = finalSource.default);
|
|
22107
22320
|
}
|
|
22108
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
22321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native4.Image, _object_spread9({
|
|
22109
22322
|
ref,
|
|
22110
22323
|
source: finalSource,
|
|
22111
22324
|
style
|
|
@@ -29733,37 +29946,26 @@ var require_Popper_native = __commonJS({
|
|
|
29733
29946
|
(typeof offsetOptions > "u" ? "undefined" : _type_of(offsetOptions)) < "u" ? (0, import_floating.offset)(offsetOptions) : null,
|
|
29734
29947
|
checkFloating
|
|
29735
29948
|
].filter(Boolean)
|
|
29736
|
-
}), refs = floating.refs, middlewareData = floating.middlewareData, open = floating.open;
|
|
29737
|
-
|
|
29738
|
-
|
|
29949
|
+
}), 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];
|
|
29950
|
+
React2.useEffect(function() {
|
|
29951
|
+
var showSubscription = import_react_native4.Keyboard.addListener("keyboardDidShow", function() {
|
|
29952
|
+
React2.startTransition(function() {
|
|
29953
|
+
setKeyboardOpen(!0);
|
|
29954
|
+
});
|
|
29955
|
+
}), hideSubscription = import_react_native4.Keyboard.addListener("keyboardDidHide", function() {
|
|
29956
|
+
React2.startTransition(function() {
|
|
29957
|
+
setKeyboardOpen(!1);
|
|
29958
|
+
});
|
|
29959
|
+
});
|
|
29960
|
+
return function() {
|
|
29961
|
+
showSubscription.remove(), hideSubscription.remove();
|
|
29962
|
+
};
|
|
29963
|
+
}, []), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
29964
|
+
floating.update();
|
|
29739
29965
|
}, [
|
|
29740
|
-
|
|
29741
|
-
|
|
29742
|
-
refs.floating,
|
|
29743
|
-
refs.reference
|
|
29966
|
+
dimensions,
|
|
29967
|
+
keyboardOpen
|
|
29744
29968
|
]);
|
|
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
29969
|
var popperContext = _object_spread9({
|
|
29768
29970
|
size: size3,
|
|
29769
29971
|
arrowRef: setArrow,
|