@tamagui/core 1.132.19 → 1.132.21

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
@@ -1406,15 +1406,9 @@ var require_insertStyleRule_native = __commonJS({
1406
1406
  getAllSelectors: function() {
1407
1407
  return getAllSelectors;
1408
1408
  },
1409
- getAllTransforms: function() {
1410
- return getAllTransforms;
1411
- },
1412
1409
  insertStyleRules: function() {
1413
1410
  return insertStyleRules2;
1414
1411
  },
1415
- insertedTransforms: function() {
1416
- return insertedTransforms;
1417
- },
1418
1412
  scanAllSheets: function() {
1419
1413
  return scanAllSheets;
1420
1414
  },
@@ -1432,23 +1426,11 @@ var require_insertStyleRule_native = __commonJS({
1432
1426
  }
1433
1427
  });
1434
1428
  module2.exports = __toCommonJS2(insertStyleRule_exports);
1435
- var import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
1429
+ var import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, getAllSelectors = function() {
1436
1430
  return allSelectors;
1437
1431
  }, getAllRules = function() {
1438
1432
  return Object.values(allRules);
1439
- }, getAllTransforms = function() {
1440
- return insertedTransforms;
1441
- };
1442
- function addTransform(identifier, css, rule) {
1443
- var s = css.indexOf("transform:");
1444
- if (s === -1) {
1445
- process.env.NODE_ENV === "development" && console.error(`\u274C Invalid transform, likely used deg/% improperly ${identifier}`);
1446
- return;
1447
- }
1448
- var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
1449
- if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
1450
- }
1451
- var lastScannedSheets = null;
1433
+ }, lastScannedSheets = null;
1452
1434
  function scanAllSheets() {
1453
1435
  var collectThemes = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, tokens = arguments.length > 1 ? arguments[1] : void 0;
1454
1436
  if (process.env.NODE_ENV !== "test" && import_constants.isClient) {
@@ -1494,7 +1476,7 @@ var require_insertStyleRule_native = __commonJS({
1494
1476
  var next = (totalSelectorsInserted.get(id) || 0) + 1;
1495
1477
  return totalSelectorsInserted.set(id, next), next;
1496
1478
  }
1497
- var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 700;
1479
+ var bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, bailAfter = bailAfterEnv ? +bailAfterEnv : 400;
1498
1480
  function updateSheetStyles(sheet2) {
1499
1481
  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;
1500
1482
  try {
@@ -1634,10 +1616,10 @@ var require_insertStyleRule_native = __commonJS({
1634
1616
  return dotIndex > -1 ? selector.slice(7, dotIndex) : selector.slice(7);
1635
1617
  }, sheet = null, trackAllRules = !0;
1636
1618
  function stopAccumulatingRules() {
1637
- trackAllRules = !0;
1619
+ trackAllRules = !1;
1638
1620
  }
1639
1621
  function updateRules(identifier, rules) {
1640
- return trackAllRules && (allRules[identifier] = rules.join(" ")), identifier.startsWith("_transform-") ? addTransform(identifier, rules[0]) : !0;
1622
+ return trackAllRules && (allRules[identifier] = rules.join(" ")), !0;
1641
1623
  }
1642
1624
  var nonce = "";
1643
1625
  function setNonce2(_) {
@@ -1647,13 +1629,9 @@ var require_insertStyleRule_native = __commonJS({
1647
1629
  if (import_constants.isClient) {
1648
1630
  if (!sheet && document.head) {
1649
1631
  var styleTag = document.createElement("style");
1650
- nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
1632
+ styleTag.id = "_tamagui-styles", nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
1651
1633
  }
1652
- if (!sheet) {
1653
- console.warn("[tamagui] no sheet");
1654
- return;
1655
- }
1656
- for (var key in rulesToInsert) {
1634
+ if (sheet) for (var key in rulesToInsert) {
1657
1635
  var styleObject = rulesToInsert[key], identifier = styleObject[import_helpers2.StyleObjectIdentifier];
1658
1636
  if (shouldInsertStyleRules(identifier)) {
1659
1637
  var rules = styleObject[import_helpers2.StyleObjectRules];
@@ -1664,7 +1642,7 @@ var require_insertStyleRule_native = __commonJS({
1664
1642
  try {
1665
1643
  for (var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
1666
1644
  var rule = _step.value;
1667
- sheet.insertRule(rule, sheet.cssRules.length);
1645
+ sheet.insertRule(rule, sheet.cssRules.length), identifier === "_dsp-_groupframe-maxMd_none" && console.warn("INSERT", rule);
1668
1646
  }
1669
1647
  } catch (err) {
1670
1648
  _didIteratorError = !0, _iteratorError = err;
@@ -2237,12 +2215,6 @@ var require_Tamagui_native = __commonJS({
2237
2215
  return (0, import_insertStyleRule.getAllSelectors)();
2238
2216
  }
2239
2217
  },
2240
- {
2241
- key: "allTransforms",
2242
- get: function() {
2243
- return (0, import_insertStyleRule.getAllTransforms)();
2244
- }
2245
- },
2246
2218
  {
2247
2219
  key: "identifierToValue",
2248
2220
  get: function() {