@tamagui/core 1.115.3 → 1.115.5

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.
@@ -5213,6 +5213,111 @@ var require_getStylesAtomic_native = __commonJS({
5213
5213
  }
5214
5214
  });
5215
5215
 
5216
+ // ../web/dist/cjs/helpers/isActivePlatform.native.js
5217
+ var require_isActivePlatform_native = __commonJS({
5218
+ "../web/dist/cjs/helpers/isActivePlatform.native.js"(exports2, module2) {
5219
+ "use strict";
5220
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
5221
+ for (var name in all) __defProp2(target, name, {
5222
+ get: all[name],
5223
+ enumerable: !0
5224
+ });
5225
+ }, __copyProps2 = function(to, from, except, desc) {
5226
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
5227
+ if (from && typeof from == "object" || typeof from == "function") try {
5228
+ for (var _loop = function() {
5229
+ var key = _step.value;
5230
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
5231
+ get: function() {
5232
+ return from[key];
5233
+ },
5234
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
5235
+ });
5236
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
5237
+ } catch (err) {
5238
+ _didIteratorError = !0, _iteratorError = err;
5239
+ } finally {
5240
+ try {
5241
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
5242
+ } finally {
5243
+ if (_didIteratorError)
5244
+ throw _iteratorError;
5245
+ }
5246
+ }
5247
+ return to;
5248
+ }, __toCommonJS2 = function(mod) {
5249
+ return __copyProps2(__defProp2({}, "__esModule", {
5250
+ value: !0
5251
+ }), mod);
5252
+ }, isActivePlatform_exports = {};
5253
+ __export2(isActivePlatform_exports, {
5254
+ isActivePlatform: function() {
5255
+ return isActivePlatform;
5256
+ }
5257
+ });
5258
+ module2.exports = __toCommonJS2(isActivePlatform_exports);
5259
+ var import_constants2 = require_index_native3();
5260
+ function isActivePlatform(key) {
5261
+ if (!key.startsWith("$platform")) return !0;
5262
+ var platform = key.slice(10);
5263
+ return (
5264
+ // web, ios, android
5265
+ platform === import_constants2.currentPlatform || // web, native
5266
+ platform === "native"
5267
+ );
5268
+ }
5269
+ }
5270
+ });
5271
+
5272
+ // ../web/dist/cjs/helpers/isActiveTheme.native.js
5273
+ var require_isActiveTheme_native = __commonJS({
5274
+ "../web/dist/cjs/helpers/isActiveTheme.native.js"(exports2, module2) {
5275
+ "use strict";
5276
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
5277
+ for (var name in all) __defProp2(target, name, {
5278
+ get: all[name],
5279
+ enumerable: !0
5280
+ });
5281
+ }, __copyProps2 = function(to, from, except, desc) {
5282
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
5283
+ if (from && typeof from == "object" || typeof from == "function") try {
5284
+ for (var _loop = function() {
5285
+ var key = _step.value;
5286
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
5287
+ get: function() {
5288
+ return from[key];
5289
+ },
5290
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
5291
+ });
5292
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
5293
+ } catch (err) {
5294
+ _didIteratorError = !0, _iteratorError = err;
5295
+ } finally {
5296
+ try {
5297
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
5298
+ } finally {
5299
+ if (_didIteratorError)
5300
+ throw _iteratorError;
5301
+ }
5302
+ }
5303
+ return to;
5304
+ }, __toCommonJS2 = function(mod) {
5305
+ return __copyProps2(__defProp2({}, "__esModule", {
5306
+ value: !0
5307
+ }), mod);
5308
+ }, isActiveTheme_exports = {};
5309
+ __export2(isActiveTheme_exports, {
5310
+ isActiveTheme: function() {
5311
+ return isActiveTheme;
5312
+ }
5313
+ });
5314
+ module2.exports = __toCommonJS2(isActiveTheme_exports);
5315
+ function isActiveTheme(key, activeThemeName) {
5316
+ if (key.startsWith("$theme-")) return key.slice(7).startsWith(activeThemeName);
5317
+ }
5318
+ }
5319
+ });
5320
+
5216
5321
  // ../web/dist/cjs/helpers/log.native.js
5217
5322
  var require_log_native = __commonJS({
5218
5323
  "../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
@@ -6304,9 +6409,9 @@ var require_propMapper_native = __commonJS({
6304
6409
  }
6305
6410
  });
6306
6411
 
6307
- // ../web/dist/cjs/helpers/transformsToString.native.js
6308
- var require_transformsToString_native = __commonJS({
6309
- "../web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
6412
+ // ../web/dist/cjs/helpers/sortString.native.js
6413
+ var require_sortString_native = __commonJS({
6414
+ "../web/dist/cjs/helpers/sortString.native.js"(exports2, module2) {
6310
6415
  "use strict";
6311
6416
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6312
6417
  for (var name in all) __defProp2(target, name, {
@@ -6340,31 +6445,22 @@ var require_transformsToString_native = __commonJS({
6340
6445
  return __copyProps2(__defProp2({}, "__esModule", {
6341
6446
  value: !0
6342
6447
  }), mod);
6343
- }, transformsToString_exports = {};
6344
- __export2(transformsToString_exports, {
6345
- transformsToString: function() {
6346
- return transformsToString;
6448
+ }, sortString_exports = {};
6449
+ __export2(sortString_exports, {
6450
+ sortString: function() {
6451
+ return sortString;
6347
6452
  }
6348
6453
  });
6349
- module2.exports = __toCommonJS2(transformsToString_exports);
6350
- var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
6351
- function transformsToString(transforms) {
6352
- return transforms.map(
6353
- // { scale: 2 } => 'scale(2)'
6354
- // { translateX: 20 } => 'translateX(20px)'
6355
- // { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
6356
- function(transform) {
6357
- var type = Object.keys(transform)[0], value = transform[type];
6358
- return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
6359
- }
6360
- ).join(" ");
6361
- }
6454
+ module2.exports = __toCommonJS2(sortString_exports);
6455
+ var sortString = function(a, b) {
6456
+ return a < b ? -1 : a > b ? 1 : 0;
6457
+ };
6362
6458
  }
6363
6459
  });
6364
6460
 
6365
- // ../web/dist/cjs/helpers/isActivePlatform.native.js
6366
- var require_isActivePlatform_native = __commonJS({
6367
- "../web/dist/cjs/helpers/isActivePlatform.native.js"(exports2, module2) {
6461
+ // ../web/dist/cjs/helpers/transformsToString.native.js
6462
+ var require_transformsToString_native = __commonJS({
6463
+ "../web/dist/cjs/helpers/transformsToString.native.js"(exports2, module2) {
6368
6464
  "use strict";
6369
6465
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6370
6466
  for (var name in all) __defProp2(target, name, {
@@ -6398,71 +6494,25 @@ var require_isActivePlatform_native = __commonJS({
6398
6494
  return __copyProps2(__defProp2({}, "__esModule", {
6399
6495
  value: !0
6400
6496
  }), mod);
6401
- }, isActivePlatform_exports = {};
6402
- __export2(isActivePlatform_exports, {
6403
- isActivePlatform: function() {
6404
- return isActivePlatform;
6497
+ }, transformsToString_exports = {};
6498
+ __export2(transformsToString_exports, {
6499
+ transformsToString: function() {
6500
+ return transformsToString;
6405
6501
  }
6406
6502
  });
6407
- module2.exports = __toCommonJS2(isActivePlatform_exports);
6408
- var import_constants2 = require_index_native3();
6409
- function isActivePlatform(key) {
6410
- var platform = key.slice(10);
6411
- return (
6412
- // web, ios, android
6413
- platform === import_constants2.currentPlatform || // web, native
6414
- platform === "native"
6415
- );
6416
- }
6417
- }
6418
- });
6419
-
6420
- // ../web/dist/cjs/helpers/sortString.native.js
6421
- var require_sortString_native = __commonJS({
6422
- "../web/dist/cjs/helpers/sortString.native.js"(exports2, module2) {
6423
- "use strict";
6424
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
6425
- for (var name in all) __defProp2(target, name, {
6426
- get: all[name],
6427
- enumerable: !0
6428
- });
6429
- }, __copyProps2 = function(to, from, except, desc) {
6430
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
6431
- if (from && typeof from == "object" || typeof from == "function") try {
6432
- for (var _loop = function() {
6433
- var key = _step.value;
6434
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
6435
- get: function() {
6436
- return from[key];
6437
- },
6438
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
6439
- });
6440
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
6441
- } catch (err) {
6442
- _didIteratorError = !0, _iteratorError = err;
6443
- } finally {
6444
- try {
6445
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
6446
- } finally {
6447
- if (_didIteratorError)
6448
- throw _iteratorError;
6503
+ module2.exports = __toCommonJS2(transformsToString_exports);
6504
+ var import_normalizeValueWithProperty = require_normalizeValueWithProperty_native();
6505
+ function transformsToString(transforms) {
6506
+ return transforms.map(
6507
+ // { scale: 2 } => 'scale(2)'
6508
+ // { translateX: 20 } => 'translateX(20px)'
6509
+ // { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
6510
+ function(transform) {
6511
+ var type = Object.keys(transform)[0], value = transform[type];
6512
+ return type === "matrix" || type === "matrix3d" ? `${type}(${value.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, type)})`;
6449
6513
  }
6450
- }
6451
- return to;
6452
- }, __toCommonJS2 = function(mod) {
6453
- return __copyProps2(__defProp2({}, "__esModule", {
6454
- value: !0
6455
- }), mod);
6456
- }, sortString_exports = {};
6457
- __export2(sortString_exports, {
6458
- sortString: function() {
6459
- return sortString;
6460
- }
6461
- });
6462
- module2.exports = __toCommonJS2(sortString_exports);
6463
- var sortString = function(a, b) {
6464
- return a < b ? -1 : a > b ? 1 : 0;
6465
- };
6514
+ ).join(" ");
6515
+ }
6466
6516
  }
6467
6517
  });
6468
6518
 
@@ -6530,7 +6580,7 @@ var require_getSplitStyles_native = __commonJS({
6530
6580
  }
6531
6581
  });
6532
6582
  module2.exports = __toCommonJS2(getSplitStyles_exports);
6533
- var import_react3 = __toESM2(require("react")), import_constants2 = require_index_native3(), import_helpers = require_index_native4(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_transformsToString = require_transformsToString_native(), import_isActivePlatform = require_isActivePlatform_native(), import_sortString = require_sortString_native(), consoleGroupCollapsed = import_constants2.isWeb ? console.groupCollapsed : console.info, conf, PROP_SPLIT = "-";
6583
+ var import_constants2 = require_index_native3(), import_helpers = require_index_native4(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), consoleGroupCollapsed = import_constants2.isWeb ? console.groupCollapsed : console.info, conf, PROP_SPLIT = "-";
6534
6584
  function isValidStyleKey(key, staticConfig) {
6535
6585
  var _staticConfig_accept, validStyleProps = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
6536
6586
  return validStyleProps[key] || ((_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key]);
@@ -6628,7 +6678,7 @@ var require_getSplitStyles_native = __commonJS({
6628
6678
  try {
6629
6679
  for (var _iterator12 = mediaStyles[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = !0) {
6630
6680
  var style3 = _step12.value, property = style3[0];
6631
- if (!(property[0] === "$" && property.startsWith("$platform") && !(0, import_isActivePlatform.isActivePlatform)(property))) {
6681
+ if (!(property[0] === "$" && !(0, import_isActivePlatform.isActivePlatform)(property))) {
6632
6682
  var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority), fullKey1 = `${style3[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers.StyleObjectPseudo] || ""}`;
6633
6683
  fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), mergeClassName(transforms, classNames, fullKey1, out[import_helpers.StyleObjectIdentifier], !0, !0));
6634
6684
  }
@@ -6653,9 +6703,7 @@ var require_getSplitStyles_native = __commonJS({
6653
6703
  return "continue";
6654
6704
  var mediaStyle1 = getSubStyle(styleState, key, val, !0), importanceBump = 0;
6655
6705
  if (isThemeMedia) {
6656
- dynamicThemeAccess = !0;
6657
- var mediaThemeName = mediaKeyShort.slice(6);
6658
- if (!(themeName === mediaThemeName || themeName.startsWith(mediaThemeName))) return "continue";
6706
+ if (dynamicThemeAccess = !0, !(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return "continue";
6659
6707
  } else if (isGroupMedia) {
6660
6708
  var _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupContext = context == null ? void 0 : context.groups.state[groupName];
6661
6709
  if (!groupContext) return "continue";
@@ -6686,7 +6734,7 @@ var require_getSplitStyles_native = __commonJS({
6686
6734
  continue;
6687
6735
  }
6688
6736
  if (subKey[0] === "$") {
6689
- if (!(0, import_isActivePlatform.isActivePlatform)(subKey)) continue;
6737
+ if (!(0, import_isActivePlatform.isActivePlatform)(subKey) || !(0, import_isActiveTheme.isActiveTheme)(subKey, themeName)) continue;
6690
6738
  for (var subSubKey in mediaStyle1[subKey]) mergeMediaStyle2(subSubKey, mediaStyle1[subKey][subSubKey]);
6691
6739
  } else mergeMediaStyle2(subKey, mediaStyle1[subKey]);
6692
6740
  }