tamagui 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.
@@ -2494,15 +2494,9 @@ var require_insertStyleRule_native = __commonJS({
2494
2494
  getAllSelectors: function() {
2495
2495
  return getAllSelectors;
2496
2496
  },
2497
- getAllTransforms: function() {
2498
- return getAllTransforms;
2499
- },
2500
2497
  insertStyleRules: function() {
2501
2498
  return insertStyleRules2;
2502
2499
  },
2503
- insertedTransforms: function() {
2504
- return insertedTransforms;
2505
- },
2506
2500
  scanAllSheets: function() {
2507
2501
  return scanAllSheets;
2508
2502
  },
@@ -2520,20 +2514,11 @@ var require_insertStyleRule_native = __commonJS({
2520
2514
  }
2521
2515
  });
2522
2516
  module2.exports = __toCommonJS2(insertStyleRule_exports);
2523
- var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
2517
+ var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, getAllSelectors = function() {
2524
2518
  return allSelectors;
2525
2519
  }, getAllRules = function() {
2526
2520
  return Object.values(allRules);
2527
- }, getAllTransforms = function() {
2528
- return insertedTransforms;
2529
2521
  };
2530
- function addTransform(identifier, css, rule) {
2531
- var s = css.indexOf("transform:");
2532
- if (s !== -1) {
2533
- var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
2534
- if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
2535
- }
2536
- }
2537
2522
  function scanAllSheets() {
2538
2523
  var collectThemes = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, tokens = arguments.length > 1 ? arguments[1] : void 0;
2539
2524
  if (0) {
@@ -2562,12 +2547,12 @@ var require_insertStyleRule_native = __commonJS({
2562
2547
  var next = (totalSelectorsInserted.get(id) || 0) + 1;
2563
2548
  return totalSelectorsInserted.set(id, next), next;
2564
2549
  }
2565
- var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 700, sheet = null, trackAllRules = !0;
2550
+ var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 400, sheet = null, trackAllRules = !0;
2566
2551
  function stopAccumulatingRules() {
2567
- trackAllRules = !0;
2552
+ trackAllRules = !1;
2568
2553
  }
2569
2554
  function updateRules(identifier, rules) {
2570
- return trackAllRules && (allRules[identifier] = rules.join(" ")), identifier.startsWith("_transform-") ? addTransform(identifier, rules[0]) : !0;
2555
+ return trackAllRules && (allRules[identifier] = rules.join(" ")), !0;
2571
2556
  }
2572
2557
  var nonce = "";
2573
2558
  function setNonce2(_) {
@@ -2577,13 +2562,9 @@ var require_insertStyleRule_native = __commonJS({
2577
2562
  if (import_constants4.isClient) {
2578
2563
  if (!sheet && document.head) {
2579
2564
  var styleTag = document.createElement("style");
2580
- nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
2581
- }
2582
- if (!sheet) {
2583
- console.warn("[tamagui] no sheet");
2584
- return;
2565
+ styleTag.id = "_tamagui-styles", nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
2585
2566
  }
2586
- for (var key in rulesToInsert) {
2567
+ if (sheet) for (var key in rulesToInsert) {
2587
2568
  var styleObject = rulesToInsert[key], identifier = styleObject[import_helpers.StyleObjectIdentifier];
2588
2569
  if (shouldInsertStyleRules(identifier)) {
2589
2570
  var rules = styleObject[import_helpers.StyleObjectRules];
@@ -2594,7 +2575,7 @@ var require_insertStyleRule_native = __commonJS({
2594
2575
  try {
2595
2576
  for (var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
2596
2577
  var rule = _step.value;
2597
- sheet.insertRule(rule, sheet.cssRules.length);
2578
+ sheet.insertRule(rule, sheet.cssRules.length), identifier === "_dsp-_groupframe-maxMd_none" && console.warn("INSERT", rule);
2598
2579
  }
2599
2580
  } catch (err) {
2600
2581
  _didIteratorError = !0, _iteratorError = err;