@tamagui/core 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 CHANGED
@@ -1273,7 +1273,12 @@ var require_concatClassName_native = __commonJS({
1273
1273
  var require_types_native2 = __commonJS({
1274
1274
  "../helpers/dist/cjs/types.native.js"(exports2, module2) {
1275
1275
  "use strict";
1276
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
1276
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
1277
+ for (var name in all) __defProp2(target, name, {
1278
+ get: all[name],
1279
+ enumerable: !0
1280
+ });
1281
+ }, __copyProps2 = function(to, from, except, desc) {
1277
1282
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
1278
1283
  if (from && typeof from == "object" || typeof from == "function") try {
1279
1284
  for (var _loop = function() {
@@ -1301,7 +1306,25 @@ var require_types_native2 = __commonJS({
1301
1306
  value: !0
1302
1307
  }), mod);
1303
1308
  }, types_exports = {};
1309
+ __export2(types_exports, {
1310
+ StyleObjectIdentifier: function() {
1311
+ return StyleObjectIdentifier;
1312
+ },
1313
+ StyleObjectProperty: function() {
1314
+ return StyleObjectProperty;
1315
+ },
1316
+ StyleObjectPseudo: function() {
1317
+ return StyleObjectPseudo;
1318
+ },
1319
+ StyleObjectRules: function() {
1320
+ return StyleObjectRules;
1321
+ },
1322
+ StyleObjectValue: function() {
1323
+ return StyleObjectValue;
1324
+ }
1325
+ });
1304
1326
  module2.exports = __toCommonJS2(types_exports);
1327
+ var StyleObjectProperty = 0, StyleObjectValue = 1, StyleObjectIdentifier = 2, StyleObjectPseudo = 3, StyleObjectRules = 4;
1305
1328
  }
1306
1329
  });
1307
1330
 
@@ -2374,7 +2397,7 @@ var require_insertStyleRule_native = __commonJS({
2374
2397
  }
2375
2398
  });
2376
2399
  module2.exports = __toCommonJS2(insertStyleRule_exports);
2377
- var import_constants = require_index_native3(), import_createVariable = require_createVariable_native();
2400
+ var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_createVariable = require_createVariable_native();
2378
2401
  function _array_like_to_array(arr, len) {
2379
2402
  (len == null || len > arr.length) && (len = arr.length);
2380
2403
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
@@ -2652,8 +2675,9 @@ var require_insertStyleRule_native = __commonJS({
2652
2675
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
2653
2676
  try {
2654
2677
  for (var _iterator = rulesToInsert[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
2655
- var _step_value = _step.value, identifier = _step_value.identifier, rules = _step_value.rules;
2678
+ var styleObject = _step.value, identifier = styleObject[import_helpers.StyleObjectIdentifier];
2656
2679
  if (shouldInsertStyleRules(identifier)) {
2680
+ var rules = styleObject[import_helpers.StyleObjectRules];
2657
2681
  allSelectors[identifier] = rules.join(`
2658
2682
  `), track(identifier), updateRules(identifier, rules);
2659
2683
  var _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
@@ -2689,7 +2713,7 @@ var require_insertStyleRule_native = __commonJS({
2689
2713
  }
2690
2714
  }
2691
2715
  }
2692
- var minInsertAmt = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAGUI_INSERT_SELECTOR_TRIES : 2;
2716
+ var minInsertAmt = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAGUI_INSERT_SELECTOR_TRIES : 1;
2693
2717
  function shouldInsertStyleRules(identifier) {
2694
2718
  if (process.env.TAMAGUI_REACT_19 || process.env.IS_STATIC === "is_static") return !0;
2695
2719
  var total = totalSelectorsInserted.get(identifier);
@@ -2974,63 +2998,6 @@ var require_useDisableSSR_native = __commonJS({
2974
2998
  }
2975
2999
  });
2976
3000
 
2977
- // ../web/dist/cjs/hooks/useDidHydrateOnce.native.js
2978
- var require_useDidHydrateOnce_native = __commonJS({
2979
- "../web/dist/cjs/hooks/useDidHydrateOnce.native.js"(exports2, module2) {
2980
- "use strict";
2981
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
2982
- for (var name in all) __defProp2(target, name, {
2983
- get: all[name],
2984
- enumerable: !0
2985
- });
2986
- }, __copyProps2 = function(to, from, except, desc) {
2987
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
2988
- if (from && typeof from == "object" || typeof from == "function") try {
2989
- for (var _loop = function() {
2990
- var key = _step.value;
2991
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
2992
- get: function() {
2993
- return from[key];
2994
- },
2995
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
2996
- });
2997
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
2998
- } catch (err) {
2999
- _didIteratorError = !0, _iteratorError = err;
3000
- } finally {
3001
- try {
3002
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
3003
- } finally {
3004
- if (_didIteratorError)
3005
- throw _iteratorError;
3006
- }
3007
- }
3008
- return to;
3009
- }, __toCommonJS2 = function(mod) {
3010
- return __copyProps2(__defProp2({}, "__esModule", {
3011
- value: !0
3012
- }), mod);
3013
- }, useDidHydrateOnce_exports = {};
3014
- __export2(useDidHydrateOnce_exports, {
3015
- useDidHydrateOnce: function() {
3016
- return useDidHydrateOnce;
3017
- },
3018
- useDidHydrateOnceRoot: function() {
3019
- return useDidHydrateOnceRoot;
3020
- }
3021
- });
3022
- module2.exports = __toCommonJS2(useDidHydrateOnce_exports);
3023
- var import_react3 = require("react");
3024
- function useDidHydrateOnceRoot() {
3025
- return !0;
3026
- }
3027
- var last = Date.now();
3028
- function useDidHydrateOnce() {
3029
- return !0;
3030
- }
3031
- }
3032
- });
3033
-
3034
3001
  // ../web/dist/cjs/hooks/useMedia.native.js
3035
3002
  var require_useMedia_native = __commonJS({
3036
3003
  "../web/dist/cjs/hooks/useMedia.native.js"(exports2, module2) {
@@ -3117,7 +3084,7 @@ var require_useMedia_native = __commonJS({
3117
3084
  }
3118
3085
  });
3119
3086
  module2.exports = __toCommonJS2(useMedia_exports);
3120
- var import_constants = require_index_native3(), import_react3 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_useDisableSSR = require_useDisableSSR_native(), import_useDidHydrateOnce = require_useDidHydrateOnce_native();
3087
+ var import_constants = require_index_native3(), import_react3 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_useDisableSSR = require_useDisableSSR_native();
3121
3088
  function _array_like_to_array(arr, len) {
3122
3089
  (len == null || len > arr.length) && (len = arr.length);
3123
3090
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
@@ -3126,9 +3093,6 @@ var require_useMedia_native = __commonJS({
3126
3093
  function _array_with_holes(arr) {
3127
3094
  if (Array.isArray(arr)) return arr;
3128
3095
  }
3129
- function _array_without_holes(arr) {
3130
- if (Array.isArray(arr)) return _array_like_to_array(arr);
3131
- }
3132
3096
  function _define_property2(obj, key, value) {
3133
3097
  return key in obj ? Object.defineProperty(obj, key, {
3134
3098
  value,
@@ -3137,9 +3101,6 @@ var require_useMedia_native = __commonJS({
3137
3101
  writable: !0
3138
3102
  }) : obj[key] = value, obj;
3139
3103
  }
3140
- function _iterable_to_array(iter) {
3141
- if ((typeof Symbol > "u" ? "undefined" : _type_of(Symbol)) < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3142
- }
3143
3104
  function _iterable_to_array_limit(arr, i) {
3144
3105
  var _i = arr == null ? null : (typeof Symbol > "u" ? "undefined" : _type_of(Symbol)) < "u" && arr[Symbol.iterator] || arr["@@iterator"];
3145
3106
  if (_i != null) {
@@ -3161,9 +3122,6 @@ var require_useMedia_native = __commonJS({
3161
3122
  function _non_iterable_rest() {
3162
3123
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3163
3124
  }
3164
- function _non_iterable_spread() {
3165
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3166
- }
3167
3125
  function _object_spread2(target) {
3168
3126
  for (var i = 1; i < arguments.length; i++) {
3169
3127
  var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
@@ -3193,9 +3151,6 @@ var require_useMedia_native = __commonJS({
3193
3151
  function _sliced_to_array(arr, i) {
3194
3152
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
3195
3153
  }
3196
- function _to_consumable_array(arr) {
3197
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
3198
- }
3199
3154
  function _unsupported_iterable_to_array(o, minLen) {
3200
3155
  if (o) {
3201
3156
  if (typeof o == "string") return _array_like_to_array(o, minLen);
@@ -3215,12 +3170,11 @@ var require_useMedia_native = __commonJS({
3215
3170
  }) : {}
3216
3171
  ), mediaQueryConfig2 = {}, getMedia2 = function() {
3217
3172
  return mediaState2;
3218
- }, mediaKeys = /* @__PURE__ */ new Set(), isMediaKey = function(key) {
3173
+ }, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
3219
3174
  if (mediaKeys.has(key)) return !0;
3220
3175
  if (key[0] === "$") {
3221
- if (key.startsWith("$platform-")) return "platform";
3222
- if (key.startsWith("$theme-")) return "theme";
3223
- if (key.startsWith("$group-")) return "group";
3176
+ var match = key.match(mediaKeyRegex);
3177
+ if (match) return match[1];
3224
3178
  }
3225
3179
  return !1;
3226
3180
  }, initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = function(key) {
@@ -3255,7 +3209,7 @@ var require_useMedia_native = __commonJS({
3255
3209
  }), update();
3256
3210
  };
3257
3211
  if (!(import_constants.isWeb && import_constants.isServer) && setupVersion !== mediaVersion) {
3258
- setupVersion = mediaVersion, process.env.NODE_ENV === "development" && unlisten();
3212
+ setupVersion = mediaVersion, unlisten();
3259
3213
  for (var key in mediaQueryConfig2) _loop(key);
3260
3214
  }
3261
3215
  }
@@ -3271,37 +3225,42 @@ var require_useMedia_native = __commonJS({
3271
3225
  function setMediaShouldUpdate(ref, props) {
3272
3226
  return States.set(ref, _object_spread2({}, States.get(ref), props));
3273
3227
  }
3274
- function getSnapshot(param) {
3275
- var touched = param.touched, prev = param.prev, enabled = param.enabled, keys = param.keys, isDisabled = enabled === !1;
3276
- if (isDisabled) return prev;
3277
- var testKeys = keys || touched ? _to_consumable_array(keys || []).concat(_to_consumable_array(touched || [])) : null, hasntUpdated = !testKeys || (testKeys == null ? void 0 : testKeys.every(function(key) {
3278
- return mediaState2[key] === prev[key];
3279
- }));
3280
- return hasntUpdated ? prev : mediaState2;
3228
+ function subscribe(subscriber) {
3229
+ return listeners.add(subscriber), function() {
3230
+ listeners.delete(subscriber);
3231
+ };
3281
3232
  }
3282
- function useMedia2(uidIn, componentContext) {
3283
- var uid = uidIn ?? (0, import_react3.useRef)(), hasHydrated = (0, import_useDidHydrateOnce.useDidHydrateOnce)(), isHydrated = !import_constants.isWeb || (0, import_useDisableSSR.getDisableSSR)(componentContext) || hasHydrated, initialState = isHydrated ? mediaState2 : initState, componentState = States.get(uid);
3233
+ function useMedia2(uidIn, componentContext, debug) {
3234
+ var uid = uidIn ?? (0, import_react3.useRef)(), disableSSR = (0, import_useDisableSSR.getDisableSSR)(componentContext), initialState = (disableSSR || !import_constants.isWeb ? mediaState2 : initState) || {}, componentState = States.get(uid);
3284
3235
  componentState || (componentState = {
3285
3236
  prev: initialState
3286
- }, States.set(uid, componentState)), componentState.touched = void 0;
3287
- var _useState = _sliced_to_array((0, import_react3.useState)(initialState), 2), state = _useState[0], setState = _useState[1];
3288
- return (0, import_constants.useIsomorphicLayoutEffect)(function() {
3289
- var update = function() {
3290
- setState(function(prev) {
3291
- var componentState2 = States.get(uid), next = getSnapshot(componentState2);
3292
- return next !== prev ? (componentState2.prev = next, next) : prev;
3293
- });
3294
- };
3295
- return update(), listeners.add(update), function() {
3296
- listeners.delete(update);
3297
- };
3298
- }, [
3299
- uid
3300
- ]), new Proxy(state, {
3237
+ }, States.set(uid, componentState));
3238
+ var getSnapshot = function() {
3239
+ if (!componentState) return initialState;
3240
+ var keys = componentState.keys, _componentState_prev = componentState.prev, prev = _componentState_prev === void 0 ? initialState : _componentState_prev;
3241
+ if (componentState && componentState.enabled === !1) return prev;
3242
+ 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) {
3243
+ return mediaState2[key] === prev[key];
3244
+ }));
3245
+ return hasntUpdated ? prev : (componentState.prev = mediaState2, mediaState2);
3246
+ }, state;
3247
+ if (process.env.TAMAGUI_SYNC_MEDIA_QUERY) state = (0, import_react3.useSyncExternalStore)(subscribe, getSnapshot, function() {
3248
+ return initialState;
3249
+ });
3250
+ else {
3251
+ var _useState = _sliced_to_array((0, import_react3.useState)(initialState), 2), internalState = _useState[0], setState = _useState[1];
3252
+ state = internalState, (0, import_constants.useIsomorphicLayoutEffect)(function() {
3253
+ var update = function() {
3254
+ setState(getSnapshot);
3255
+ };
3256
+ return update(), subscribe(update);
3257
+ }, []);
3258
+ }
3259
+ return new Proxy(state, {
3301
3260
  get: function(_, key) {
3302
3261
  if (typeof key == "string") {
3303
3262
  var _componentState;
3304
- (_componentState = componentState).touched || (_componentState.touched = /* @__PURE__ */ new Set()), componentState.touched.add(key);
3263
+ (_componentState = componentState).keys || (_componentState.keys = []), componentState.keys.includes(key) || componentState.keys.push(key), process.env.NODE_ENV === "development" && debug && console.info("useMedia() TOUCH", key);
3305
3264
  }
3306
3265
  return Reflect.get(state, key);
3307
3266
  }
@@ -5100,6 +5059,10 @@ var require_getGroupPropParts_native = __commonJS({
5100
5059
  var require_createMediaStyle_native = __commonJS({
5101
5060
  "../web/dist/cjs/helpers/createMediaStyle.native.js"(exports2, module2) {
5102
5061
  "use strict";
5062
+ function _type_of(obj) {
5063
+ "@swc/helpers - typeof";
5064
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
5065
+ }
5103
5066
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
5104
5067
  for (var name in all) __defProp2(target, name, {
5105
5068
  get: all[name],
@@ -5142,10 +5105,51 @@ var require_createMediaStyle_native = __commonJS({
5142
5105
  }
5143
5106
  });
5144
5107
  module2.exports = __toCommonJS2(createMediaStyle_exports);
5145
- var import_config = require_config_native(), import_useMedia = require_useMedia_native(), import_getGroupPropParts = require_getGroupPropParts_native(), MEDIA_SEP = "_", prefixes = null, selectors = null, groupPseudoToPseudoCSSMap = {
5108
+ var import_config = require_config_native(), import_useMedia = require_useMedia_native(), import_getGroupPropParts = require_getGroupPropParts_native();
5109
+ function _array_like_to_array(arr, len) {
5110
+ (len == null || len > arr.length) && (len = arr.length);
5111
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
5112
+ return arr2;
5113
+ }
5114
+ function _array_with_holes(arr) {
5115
+ if (Array.isArray(arr)) return arr;
5116
+ }
5117
+ function _iterable_to_array_limit(arr, i) {
5118
+ var _i = arr == null ? null : (typeof Symbol > "u" ? "undefined" : _type_of(Symbol)) < "u" && arr[Symbol.iterator] || arr["@@iterator"];
5119
+ if (_i != null) {
5120
+ var _arr = [], _n = !0, _d = !1, _s, _e;
5121
+ try {
5122
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0) ;
5123
+ } catch (err) {
5124
+ _d = !0, _e = err;
5125
+ } finally {
5126
+ try {
5127
+ !_n && _i.return != null && _i.return();
5128
+ } finally {
5129
+ if (_d) throw _e;
5130
+ }
5131
+ }
5132
+ return _arr;
5133
+ }
5134
+ }
5135
+ function _non_iterable_rest() {
5136
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5137
+ }
5138
+ function _sliced_to_array(arr, i) {
5139
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
5140
+ }
5141
+ function _unsupported_iterable_to_array(o, minLen) {
5142
+ if (o) {
5143
+ if (typeof o == "string") return _array_like_to_array(o, minLen);
5144
+ var n = Object.prototype.toString.call(o).slice(8, -1);
5145
+ if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
5146
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
5147
+ }
5148
+ }
5149
+ var MEDIA_SEP = "_", prefixes = null, selectors = null, groupPseudoToPseudoCSSMap = {
5146
5150
  press: "active"
5147
5151
  }, createMediaStyle = function(styleObject, mediaKeyIn, mediaQueries, type, negate, priority) {
5148
- var property = styleObject.property, identifier = styleObject.identifier, rules = styleObject.rules, 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) {
5152
+ 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) {
5149
5153
  return rule.replace(identifier, nextIdentifier);
5150
5154
  }).join(";");
5151
5155
  if (isNonWindowMedia) {
@@ -5181,13 +5185,15 @@ var require_createMediaStyle_native = __commonJS({
5181
5185
  ), prefix = groupMediaKey ? "@container ".concat(containerName) : "@media";
5182
5186
  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, "}"));
5183
5187
  }
5184
- return {
5188
+ return [
5185
5189
  property,
5186
- rules: [
5190
+ void 0,
5191
+ nextIdentifier,
5192
+ void 0,
5193
+ [
5187
5194
  styleRule
5188
- ],
5189
- identifier: nextIdentifier
5190
- };
5195
+ ]
5196
+ ];
5191
5197
  };
5192
5198
  }
5193
5199
  });
@@ -7119,7 +7125,7 @@ var require_propMapper_native = __commonJS({
7119
7125
  get: function(_, k) {
7120
7126
  return k === "curProps" ? subProps : Reflect.get(_, k);
7121
7127
  }
7122
- }) : styleStateIn, conf = styleState.conf, styleProps = styleState.styleProps, fontFamily = styleState.fontFamily, staticConfig = styleState.staticConfig, skipThemeTokenResolution = styleState.skipThemeTokenResolution, variants = staticConfig.variants;
7128
+ }) : styleStateIn, conf = styleState.conf, styleProps = styleState.styleProps, fontFamily = styleState.fontFamily, staticConfig = styleState.staticConfig, variants = staticConfig.variants;
7123
7129
  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) {
7124
7130
  styleState.curProps[key] = value;
7125
7131
  var variantValue = resolveVariants(key, value, styleProps, styleState, "");
@@ -7538,15 +7544,22 @@ var require_getSplitStyles_native = __commonJS({
7538
7544
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
7539
7545
  }
7540
7546
  }
7541
- var IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
7547
+ var conf, PROP_SPLIT = "-";
7542
7548
  function isValidStyleKey(key, staticConfig) {
7543
7549
  var _staticConfig_accept, validStyleProps = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
7544
7550
  return validStyleProps[key] || ((_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key]);
7545
7551
  }
7546
7552
  var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug, skipThemeTokenResolution) {
7547
7553
  conf = conf || (0, import_config.getConfig)(), import_constants.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7548
- 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 = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants.isWeb && !styleProps.noClassNames, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, styleState = {
7549
- curProps: {},
7554
+ 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 = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants.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 = {
7555
+ // this should go away, right now we're doing really crazy cumulative props,
7556
+ // as variants are resolved basically we go back and merge the results onto
7557
+ // the curProps, so that each following variant function recieves the current
7558
+ // "styles" with variants expanded. powerful, but i think too fancy
7559
+ // there's some part of the ui kit that depends on it we'd have to find and fix
7560
+ get curProps() {
7561
+ return curPropsState || (curPropsState = {}), curPropsState;
7562
+ },
7550
7563
  classNames,
7551
7564
  conf,
7552
7565
  props,
@@ -7570,15 +7583,18 @@ var require_getSplitStyles_native = __commonJS({
7570
7583
  styleState,
7571
7584
  theme: _object_spread2({}, theme)
7572
7585
  }), console.groupEnd());
7586
+ 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;
7573
7587
  for (var keyOg in props) {
7574
- var _parentStaticConfig_variants, keyInit = keyOg, valInit = props[keyOg];
7575
- if (staticConfig.accept && (staticConfig.accept[keyInit] === "style" || staticConfig.accept[keyInit] === "textStyle") && typeof valInit == "object") {
7576
- var styleObject = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
7577
- viewProps[keyInit] = styleObject;
7578
- continue;
7588
+ var keyInit = keyOg, valInit = props[keyInit];
7589
+ if (accept) {
7590
+ var accepted = accept[keyInit];
7591
+ if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") {
7592
+ viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames);
7593
+ continue;
7594
+ }
7579
7595
  }
7580
- if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), styleProps.disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
7581
- if (keyInit in import_skipProps.skipProps && !styleProps.noSkip && !isHOC) {
7596
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit !== "className" && !(keyInit in usedKeys)) {
7597
+ if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
7582
7598
  if (keyInit === "group" && !1) var identifier, containerType, containerCSS;
7583
7599
  continue;
7584
7600
  }
@@ -7587,7 +7603,7 @@ var require_getSplitStyles_native = __commonJS({
7587
7603
  var isValidClassName, isMediaOrPseudo;
7588
7604
  if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState;
7589
7605
  }
7590
- if (valInit !== props[keyInit] && (styleState.curProps[keyInit] = valInit), !isValidStyleKeyInit) {
7606
+ if (!isValidStyleKeyInit) {
7591
7607
  if (!import_constants.isAndroid && keyInit === "elevationAndroid") continue;
7592
7608
  if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
7593
7609
  else if (keyInit.startsWith("data-")) continue;
@@ -7602,10 +7618,10 @@ var require_getSplitStyles_native = __commonJS({
7602
7618
  var name = keyInit.split("-")[1];
7603
7619
  context != null && context.groups.subscribe && !(context != null && context.groups.state[name]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
7604
7620
  }
7605
- var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !styleProps.noExpand || isShorthand;
7606
- if (!(isStyleProp && (props.asChild === "except-style" || props.asChild === "except-style-web"))) {
7621
+ var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo1 || isVariant && !noExpand || isShorthand;
7622
+ if (!(isStyleProp && (asChild === "except-style" || asChild === "except-style-web"))) {
7607
7623
  var shouldPassProp = !isStyleProp || // is in parent variants
7608
- isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
7624
+ 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;
7609
7625
  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)({
7610
7626
  isVariant,
7611
7627
  valInit,
@@ -7621,7 +7637,7 @@ var require_getSplitStyles_native = __commonJS({
7621
7637
  process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
7622
7638
  continue;
7623
7639
  }
7624
- if (!styleProps.noSkip && keyInit in import_skipProps.skipProps) {
7640
+ if (!noSkip && keyInit in import_skipProps.skipProps) {
7625
7641
  process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd();
7626
7642
  continue;
7627
7643
  }
@@ -7654,17 +7670,17 @@ current`, _object_spread2({}, styleState.style)));
7654
7670
  console.groupEnd();
7655
7671
  }
7656
7672
  for (var key = keyInit, val = valInit, max = expanded ? expanded.length : 1, i = 0; i < max; i++) {
7657
- var _parentStaticConfig_variants1;
7673
+ var _parentStaticConfig_variants;
7658
7674
  if (expanded) {
7659
7675
  var _expanded_i = _sliced_to_array(expanded[i], 2), k = _expanded_i[0], v = _expanded_i[1];
7660
7676
  key = k, val = v;
7661
7677
  }
7662
7678
  if (val != null && !(key in usedKeys)) {
7663
- 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)) {
7679
+ 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)) {
7664
7680
  var _props_key;
7665
7681
  viewProps[key] = (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : val;
7666
7682
  }
7667
- var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants1 = parentStaticConfig.variants) === null || _parentStaticConfig_variants1 === void 0 ? void 0 : _parentStaticConfig_variants1[keyInit]));
7683
+ var shouldPassThrough1 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo1 || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
7668
7684
  if (shouldPassThrough1) {
7669
7685
  passDownProp(viewProps, key, val, isMediaOrPseudo1), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" - passing down prop ".concat(key)), (0, import_log.log)({
7670
7686
  val,
@@ -7676,9 +7692,9 @@ current`, _object_spread2({}, styleState.style)));
7676
7692
  if (!val) continue;
7677
7693
  var pseudoStyleObject = getSubStyle(styleState, key, val, styleProps.noClassNames), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
7678
7694
  if (!descriptor) continue;
7679
- if (!shouldDoClasses || IS_STATIC) {
7695
+ if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
7680
7696
  var _pseudos, _key;
7681
- if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), IS_STATIC) {
7697
+ if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
7682
7698
  Object.assign(pseudos[key], pseudoStyleObject);
7683
7699
  continue;
7684
7700
  }
@@ -7692,8 +7708,8 @@ current`, _object_spread2({}, styleState.style)));
7692
7708
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
7693
7709
  try {
7694
7710
  for (var _iterator = pseudoStyles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
7695
- var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle.property).concat(PROP_SPLIT).concat(descriptor.name);
7696
- fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle.identifier, isMediaOrPseudo1, !0);
7711
+ var psuedoStyle = _step.value, fullKey = "".concat(psuedoStyle[import_helpers.StyleObjectProperty]).concat(PROP_SPLIT).concat(descriptor.name);
7712
+ fullKey in usedKeys || mergeClassName(transforms, classNames, fullKey, psuedoStyle[import_helpers.StyleObjectIdentifier], isMediaOrPseudo1, !0);
7697
7713
  }
7698
7714
  } catch (err) {
7699
7715
  _didIteratorError = !0, _iteratorError = err;
@@ -7744,7 +7760,8 @@ current`, _object_spread2({}, styleState.style)));
7744
7760
  }
7745
7761
  if (isMedia) {
7746
7762
  if (!val) continue;
7747
- if (isMedia === "platform") {
7763
+ var hasSpace = val.space, mediaKeyShort = key.slice(1);
7764
+ if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), isMedia === "platform") {
7748
7765
  var platform = key.slice(10);
7749
7766
  if (
7750
7767
  // supports web, ios, android
@@ -7752,18 +7769,15 @@ current`, _object_spread2({}, styleState.style)));
7752
7769
  platform !== "native"
7753
7770
  ) continue;
7754
7771
  }
7755
- hasMedia || (hasMedia = !0);
7756
- var mediaKeyShort = key.slice(1);
7757
- process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key), {
7772
+ if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} ".concat(key), {
7758
7773
  key,
7759
7774
  val,
7760
7775
  props,
7761
7776
  shouldDoClasses,
7762
7777
  acceptsClassName,
7763
- componentState
7764
- });
7765
- var hasSpace = val.space;
7766
- if ((hasSpace || !shouldDoClasses) && (Array.isArray(hasMedia) || (hasMedia = []), hasMedia.push(mediaKeyShort)), shouldDoClasses) {
7778
+ componentState,
7779
+ mediaState: mediaState2
7780
+ }), shouldDoClasses) {
7767
7781
  var mediaStyle = getSubStyle(styleState, key, val, !1);
7768
7782
  if (hasSpace && (delete mediaStyle.space, mediaState2[mediaKeyShort])) {
7769
7783
  var importance1 = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKeyShort, "space", usedKeys, !0);
@@ -7776,8 +7790,8 @@ current`, _object_spread2({}, styleState.style)));
7776
7790
  for (var _iterator1 = mediaStyles[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
7777
7791
  var style = _step1.value, out = (0, import_createMediaStyle.createMediaStyle)(style, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority);
7778
7792
  process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("\u{1F4FA} media style:", out);
7779
- var fullKey1 = "".concat(style.property).concat(PROP_SPLIT).concat(mediaKeyShort).concat(style.pseudo || "");
7780
- fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out.identifier, !0, !0);
7793
+ var fullKey1 = "".concat(style[import_helpers.StyleObjectProperty]).concat(PROP_SPLIT).concat(mediaKeyShort).concat(style[import_helpers.StyleObjectPseudo] || "");
7794
+ fullKey1 in usedKeys || mergeClassName(transforms, classNames, fullKey1, out[import_helpers.StyleObjectIdentifier], !0, !0);
7781
7795
  }
7782
7796
  } catch (err) {
7783
7797
  _didIteratorError1 = !0, _iteratorError1 = err;
@@ -7789,9 +7803,15 @@ current`, _object_spread2({}, styleState.style)));
7789
7803
  }
7790
7804
  }
7791
7805
  } else {
7792
- var mediaStyle1 = getSubStyle(styleState, key, val, !0), isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
7793
- if (!isThemeMedia && !isPlatformMedia && !isGroupMedia && !mediaState2[mediaKeyShort]) continue;
7794
- var importanceBump = 0;
7806
+ var isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
7807
+ if (!isThemeMedia && !isPlatformMedia && !isGroupMedia) {
7808
+ if (!mediaState2[mediaKeyShort]) {
7809
+ process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} \u274C DISABLED ".concat(mediaKeyShort));
7810
+ continue;
7811
+ }
7812
+ process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" \u{1F4FA} \u2705 ENABLED ".concat(mediaKeyShort));
7813
+ }
7814
+ var mediaStyle1 = getSubStyle(styleState, key, val, !0), importanceBump = 0;
7795
7815
  if (isThemeMedia) {
7796
7816
  dynamicThemeAccess = !0;
7797
7817
  var mediaThemeName = mediaKeyShort.slice(6);
@@ -7856,7 +7876,7 @@ current`, _object_spread2({}, styleState.style)));
7856
7876
  }
7857
7877
  var avoidNormalize = styleProps.noNormalize === !1;
7858
7878
  if (!avoidNormalize) {
7859
- if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
7879
+ if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants.isWeb && !isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
7860
7880
  var _styleState2;
7861
7881
  (_styleState2 = styleState).style || (_styleState2.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
7862
7882
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
@@ -7881,7 +7901,7 @@ current`, _object_spread2({}, styleState.style)));
7881
7901
  if (!styleState.style.$$css) {
7882
7902
  var atomic, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2;
7883
7903
  try {
7884
- for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) var atomicStyle, _props_animateOnly, key4, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
7904
+ for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) var atomicStyle, _props_animateOnly, _atomicStyle, key4, value, identifier1, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
7885
7905
  } catch (err) {
7886
7906
  } finally {
7887
7907
  try {
@@ -7890,8 +7910,8 @@ current`, _object_spread2({}, styleState.style)));
7890
7910
  }
7891
7911
  }
7892
7912
  if (transforms) for (var namespace in transforms) {
7893
- var _transforms_namespace, hash, val3, identifier1;
7894
- if (import_constants.isClient && !insertedTransforms[identifier1]) var rule;
7913
+ var _transforms_namespace, hash, val3, identifier2;
7914
+ if (import_constants.isClient && !insertedTransforms[identifier2]) var rule;
7895
7915
  }
7896
7916
  }
7897
7917
  if (!isReactNative && viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
@@ -7927,7 +7947,7 @@ current`, _object_spread2({}, styleState.style)));
7927
7947
  dynamicThemeAccess,
7928
7948
  pseudoGroups,
7929
7949
  mediaGroups
7930
- }, asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
7950
+ }, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
7931
7951
  if (!asChildExceptStyleLike) {
7932
7952
  var style3 = styleState.style;
7933
7953
  if (0) {
@@ -8535,6 +8555,63 @@ var require_themeable_native = __commonJS({
8535
8555
  }
8536
8556
  });
8537
8557
 
8558
+ // ../web/dist/cjs/hooks/useDidHydrateOnce.native.js
8559
+ var require_useDidHydrateOnce_native = __commonJS({
8560
+ "../web/dist/cjs/hooks/useDidHydrateOnce.native.js"(exports2, module2) {
8561
+ "use strict";
8562
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
8563
+ for (var name in all) __defProp2(target, name, {
8564
+ get: all[name],
8565
+ enumerable: !0
8566
+ });
8567
+ }, __copyProps2 = function(to, from, except, desc) {
8568
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
8569
+ if (from && typeof from == "object" || typeof from == "function") try {
8570
+ for (var _loop = function() {
8571
+ var key = _step.value;
8572
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
8573
+ get: function() {
8574
+ return from[key];
8575
+ },
8576
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
8577
+ });
8578
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
8579
+ } catch (err) {
8580
+ _didIteratorError = !0, _iteratorError = err;
8581
+ } finally {
8582
+ try {
8583
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
8584
+ } finally {
8585
+ if (_didIteratorError)
8586
+ throw _iteratorError;
8587
+ }
8588
+ }
8589
+ return to;
8590
+ }, __toCommonJS2 = function(mod) {
8591
+ return __copyProps2(__defProp2({}, "__esModule", {
8592
+ value: !0
8593
+ }), mod);
8594
+ }, useDidHydrateOnce_exports = {};
8595
+ __export2(useDidHydrateOnce_exports, {
8596
+ useDidHydrateOnce: function() {
8597
+ return useDidHydrateOnce;
8598
+ },
8599
+ useDidHydrateOnceRoot: function() {
8600
+ return useDidHydrateOnceRoot;
8601
+ }
8602
+ });
8603
+ module2.exports = __toCommonJS2(useDidHydrateOnce_exports);
8604
+ var import_react3 = require("react");
8605
+ function useDidHydrateOnceRoot() {
8606
+ return !0;
8607
+ }
8608
+ var last = Date.now();
8609
+ function useDidHydrateOnce() {
8610
+ return !0;
8611
+ }
8612
+ }
8613
+ });
8614
+
8538
8615
  // ../web/dist/cjs/setupHooks.native.js
8539
8616
  var require_setupHooks_native = __commonJS({
8540
8617
  "../web/dist/cjs/setupHooks.native.js"(exports2, module2) {
@@ -8807,7 +8884,7 @@ var require_createComponent_native = __commonJS({
8807
8884
  }
8808
8885
  });
8809
8886
  module2.exports = __toCommonJS2(createComponent_exports);
8810
- var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = 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(), import_useDidHydrateOnce = require_useDidHydrateOnce_native();
8887
+ var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = 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();
8811
8888
  function _array_like_to_array(arr, len) {
8812
8889
  (len == null || len > arr.length) && (len = arr.length);
8813
8890
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
@@ -9128,20 +9205,22 @@ var require_createComponent_native = __commonJS({
9128
9205
  }
9129
9206
  }));
9130
9207
  var cancelTouches, useComponentState = function(props, param, staticConfig, config) {
9131
- var animationDriver = param.animationDriver, groups = param.groups, _animationDriver_usePresence, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)({}), hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
9208
+ var animationDriver = param.animationDriver, groups = param.groups, _animationDriver_usePresence, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
9209
+ stateRef.current || (stateRef.current = {});
9210
+ var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
9132
9211
  var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
9133
9212
  return !!(next || curStateRef.hasAnimated);
9134
9213
  }(), willBeAnimated = !import_constants.isServer && willBeAnimatedClient;
9135
9214
  willBeAnimated && !curStateRef.hasAnimated && (curStateRef.hasAnimated = !0);
9136
9215
  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);
9137
9216
  process.env.NODE_ENV === "development" && time && time(_templateObject());
9138
- var hasEnterState = hasEnterStyle || isEntering, didHydrateOnce = (0, import_useDidHydrateOnce.useDidHydrateOnce)(), initialState = hasEnterState || !didHydrateOnce && hasRNAnimation ? (
9217
+ var hasEnterState = hasEnterStyle || isEntering, didHydrateOnce = willBeAnimated ? (0, import_useDidHydrateOnce.useDidHydrateOnce)() : !0, shouldEnter = hasEnterState || !didHydrateOnce && hasRNAnimation, shouldEnterFromUnhydrated = import_constants.isWeb && !didHydrateOnce, initialState = shouldEnter ? (
9139
9218
  // on the very first render we switch all spring animation drivers to css rendering
9140
9219
  // this is because we need to use css variables, which they don't support to do proper SSR
9141
9220
  // without flickers of the wrong colors.
9142
9221
  // but once we do that initial hydration and we are in client side rendering mode,
9143
9222
  // we can avoid the extra re-render on mount
9144
- import_constants.isWeb && !didHydrateOnce ? import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateShouldEnter
9223
+ shouldEnterFromUnhydrated ? import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateShouldEnter
9145
9224
  ) : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
9146
9225
  disabled != null && (initialState.disabled = disabled);
9147
9226
  var states = (0, import_react3.useState)(initialState), state = props.forceStyle ? _object_spread_props(_object_spread2({}, states[0]), _define_property2({}, props.forceStyle, !0)) : states[0], setState = states[1], isHydrated = state.unmounted === !1 || state.unmounted === "should-enter", isAnimated = willBeAnimated;
@@ -9325,7 +9404,7 @@ var require_createComponent_native = __commonJS({
9325
9404
  elementType = Component || elementType;
9326
9405
  var isStringElement = typeof elementType == "string";
9327
9406
  process.env.NODE_ENV === "development" && time && time(_templateObject8());
9328
- var mediaState2 = (0, import_useMedia.useMedia)(stateRef, componentContext);
9407
+ var mediaState2 = (0, import_useMedia.useMedia)(stateRef, componentContext, debugProp);
9329
9408
  (0, import_createVariable.setDidGetVariableValue)(!1), process.env.NODE_ENV === "development" && time && time(_templateObject9());
9330
9409
  var resolveValues = (
9331
9410
  // if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
@@ -9335,7 +9414,8 @@ var require_createComponent_native = __commonJS({
9335
9414
  noClassNames,
9336
9415
  resolveValues,
9337
9416
  isExiting,
9338
- isAnimated
9417
+ isAnimated,
9418
+ willBeAnimated
9339
9419
  }, 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);
9340
9420
  if (props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
9341
9421
  var _splitStyles;
@@ -9343,7 +9423,7 @@ var require_createComponent_native = __commonJS({
9343
9423
  }
9344
9424
  process.env.NODE_ENV === "development" && time && time(_templateObject10()), curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
9345
9425
  var isMediaArray = splitStyles.hasMedia && Array.isArray(splitStyles.hasMedia), shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || isMediaArray || noClassNames && splitStyles.hasMedia === !0, mediaListeningKeys = isMediaArray ? splitStyles.hasMedia : null;
9346
- (0, import_useMedia.setMediaShouldUpdate)(stateRef, {
9426
+ process.env.NODE_ENV === "development" && debugProp && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(stateRef, {
9347
9427
  enabled: shouldListenForMedia,
9348
9428
  keys: mediaListeningKeys
9349
9429
  });
@@ -9575,14 +9655,14 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9575
9655
  children: [
9576
9656
  content,
9577
9657
  /* lets see if we can put a single style tag per rule for optimal de-duping */
9578
- splitStyles.rulesToInsert.map(function(param) {
9579
- var rules = param.rules, identifier = param.identifier;
9658
+ splitStyles.rulesToInsert.map(function(styleObject) {
9659
+ var identifier = styleObject[import_helpers.StyleObjectIdentifier];
9580
9660
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", {
9581
9661
  // @ts-ignore
9582
9662
  href: "t_".concat(identifier),
9583
9663
  // @ts-ignore
9584
9664
  precedence: "default",
9585
- children: rules.join(`
9665
+ children: styleObject[import_helpers.StyleObjectRules].join(`
9586
9666
  `)
9587
9667
  }, identifier);
9588
9668
  })