tamagui 1.132.19-1755213268416 → 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.
package/dist/native.js CHANGED
@@ -2511,15 +2511,9 @@ var require_insertStyleRule_native = __commonJS({
2511
2511
  getAllSelectors: function() {
2512
2512
  return getAllSelectors;
2513
2513
  },
2514
- getAllTransforms: function() {
2515
- return getAllTransforms;
2516
- },
2517
2514
  insertStyleRules: function() {
2518
2515
  return insertStyleRules2;
2519
2516
  },
2520
- insertedTransforms: function() {
2521
- return insertedTransforms;
2522
- },
2523
2517
  scanAllSheets: function() {
2524
2518
  return scanAllSheets;
2525
2519
  },
@@ -2537,23 +2531,11 @@ var require_insertStyleRule_native = __commonJS({
2537
2531
  }
2538
2532
  });
2539
2533
  module2.exports = __toCommonJS2(insertStyleRule_exports);
2540
- var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
2534
+ var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, getAllSelectors = function() {
2541
2535
  return allSelectors;
2542
2536
  }, getAllRules = function() {
2543
2537
  return Object.values(allRules);
2544
- }, getAllTransforms = function() {
2545
- return insertedTransforms;
2546
- };
2547
- function addTransform(identifier, css, rule) {
2548
- var s = css.indexOf("transform:");
2549
- if (s === -1) {
2550
- process.env.NODE_ENV === "development" && console.error(`\u274C Invalid transform, likely used deg/% improperly ${identifier}`);
2551
- return;
2552
- }
2553
- var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
2554
- if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
2555
- }
2556
- var lastScannedSheets = null;
2538
+ }, lastScannedSheets = null;
2557
2539
  function scanAllSheets() {
2558
2540
  var collectThemes = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, tokens = arguments.length > 1 ? arguments[1] : void 0;
2559
2541
  if (process.env.NODE_ENV !== "test" && import_constants4.isClient) {
@@ -2599,7 +2581,7 @@ var require_insertStyleRule_native = __commonJS({
2599
2581
  var next = (totalSelectorsInserted.get(id) || 0) + 1;
2600
2582
  return totalSelectorsInserted.set(id, next), next;
2601
2583
  }
2602
- var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 700;
2584
+ var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 400;
2603
2585
  function updateSheetStyles(sheet2) {
2604
2586
  var remove = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, collectThemes = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, tokens = arguments.length > 3 ? arguments[3] : void 0, _getTamaguiSelector, _getTamaguiSelector1, rules;
2605
2587
  try {
@@ -2739,10 +2721,10 @@ var require_insertStyleRule_native = __commonJS({
2739
2721
  return dotIndex > -1 ? selector.slice(7, dotIndex) : selector.slice(7);
2740
2722
  }, sheet = null, trackAllRules = !0;
2741
2723
  function stopAccumulatingRules() {
2742
- trackAllRules = !0;
2724
+ trackAllRules = !1;
2743
2725
  }
2744
2726
  function updateRules(identifier, rules) {
2745
- return trackAllRules && (allRules[identifier] = rules.join(" ")), identifier.startsWith("_transform-") ? addTransform(identifier, rules[0]) : !0;
2727
+ return trackAllRules && (allRules[identifier] = rules.join(" ")), !0;
2746
2728
  }
2747
2729
  var nonce = "";
2748
2730
  function setNonce2(_) {
@@ -2752,13 +2734,9 @@ var require_insertStyleRule_native = __commonJS({
2752
2734
  if (import_constants4.isClient) {
2753
2735
  if (!sheet && document.head) {
2754
2736
  var styleTag = document.createElement("style");
2755
- nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
2737
+ styleTag.id = "_tamagui-styles", nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
2756
2738
  }
2757
- if (!sheet) {
2758
- console.warn("[tamagui] no sheet");
2759
- return;
2760
- }
2761
- for (var key in rulesToInsert) {
2739
+ if (sheet) for (var key in rulesToInsert) {
2762
2740
  var styleObject = rulesToInsert[key], identifier = styleObject[import_helpers.StyleObjectIdentifier];
2763
2741
  if (shouldInsertStyleRules(identifier)) {
2764
2742
  var rules = styleObject[import_helpers.StyleObjectRules];
@@ -2769,7 +2747,7 @@ var require_insertStyleRule_native = __commonJS({
2769
2747
  try {
2770
2748
  for (var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
2771
2749
  var rule = _step.value;
2772
- sheet.insertRule(rule, sheet.cssRules.length);
2750
+ sheet.insertRule(rule, sheet.cssRules.length), identifier === "_dsp-_groupframe-maxMd_none" && console.warn("INSERT", rule);
2773
2751
  }
2774
2752
  } catch (err) {
2775
2753
  _didIteratorError = !0, _iteratorError = err;
@@ -3342,12 +3320,6 @@ var require_Tamagui_native = __commonJS({
3342
3320
  return (0, import_insertStyleRule.getAllSelectors)();
3343
3321
  }
3344
3322
  },
3345
- {
3346
- key: "allTransforms",
3347
- get: function() {
3348
- return (0, import_insertStyleRule.getAllTransforms)();
3349
- }
3350
- },
3351
3323
  {
3352
3324
  key: "identifierToValue",
3353
3325
  get: function() {