@tamagui/core 1.132.19 → 1.132.20

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.
@@ -1389,15 +1389,9 @@ var require_insertStyleRule_native = __commonJS({
1389
1389
  getAllSelectors: function() {
1390
1390
  return getAllSelectors;
1391
1391
  },
1392
- getAllTransforms: function() {
1393
- return getAllTransforms;
1394
- },
1395
1392
  insertStyleRules: function() {
1396
1393
  return insertStyleRules2;
1397
1394
  },
1398
- insertedTransforms: function() {
1399
- return insertedTransforms;
1400
- },
1401
1395
  scanAllSheets: function() {
1402
1396
  return scanAllSheets;
1403
1397
  },
@@ -1415,20 +1409,11 @@ var require_insertStyleRule_native = __commonJS({
1415
1409
  }
1416
1410
  });
1417
1411
  module2.exports = __toCommonJS2(insertStyleRule_exports);
1418
- var import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
1412
+ var import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, getAllSelectors = function() {
1419
1413
  return allSelectors;
1420
1414
  }, getAllRules = function() {
1421
1415
  return Object.values(allRules);
1422
- }, getAllTransforms = function() {
1423
- return insertedTransforms;
1424
1416
  };
1425
- function addTransform(identifier, css, rule) {
1426
- var s = css.indexOf("transform:");
1427
- if (s !== -1) {
1428
- var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
1429
- if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
1430
- }
1431
- }
1432
1417
  function scanAllSheets() {
1433
1418
  var collectThemes = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, tokens = arguments.length > 1 ? arguments[1] : void 0;
1434
1419
  if (0) {
@@ -1457,12 +1442,12 @@ var require_insertStyleRule_native = __commonJS({
1457
1442
  var next = (totalSelectorsInserted.get(id) || 0) + 1;
1458
1443
  return totalSelectorsInserted.set(id, next), next;
1459
1444
  }
1460
- var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 700, sheet = null, trackAllRules = !0;
1445
+ var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 400, sheet = null, trackAllRules = !0;
1461
1446
  function stopAccumulatingRules() {
1462
- trackAllRules = !0;
1447
+ trackAllRules = !1;
1463
1448
  }
1464
1449
  function updateRules(identifier, rules) {
1465
- return trackAllRules && (allRules[identifier] = rules.join(" ")), identifier.startsWith("_transform-") ? addTransform(identifier, rules[0]) : !0;
1450
+ return trackAllRules && (allRules[identifier] = rules.join(" ")), !0;
1466
1451
  }
1467
1452
  var nonce = "";
1468
1453
  function setNonce2(_) {
@@ -1472,13 +1457,9 @@ var require_insertStyleRule_native = __commonJS({
1472
1457
  if (import_constants.isClient) {
1473
1458
  if (!sheet && document.head) {
1474
1459
  var styleTag = document.createElement("style");
1475
- nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
1476
- }
1477
- if (!sheet) {
1478
- console.warn("[tamagui] no sheet");
1479
- return;
1460
+ styleTag.id = "_tamagui-styles", nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
1480
1461
  }
1481
- for (var key in rulesToInsert) {
1462
+ if (sheet) for (var key in rulesToInsert) {
1482
1463
  var styleObject = rulesToInsert[key], identifier = styleObject[import_helpers2.StyleObjectIdentifier];
1483
1464
  if (shouldInsertStyleRules(identifier)) {
1484
1465
  var rules = styleObject[import_helpers2.StyleObjectRules];
@@ -1489,7 +1470,7 @@ var require_insertStyleRule_native = __commonJS({
1489
1470
  try {
1490
1471
  for (var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
1491
1472
  var rule = _step.value;
1492
- sheet.insertRule(rule, sheet.cssRules.length);
1473
+ sheet.insertRule(rule, sheet.cssRules.length), identifier === "_dsp-_groupframe-maxMd_none" && console.warn("INSERT", rule);
1493
1474
  }
1494
1475
  } catch (err) {
1495
1476
  _didIteratorError = !0, _iteratorError = err;