@tamagui/core 3.0.0-beta.1551.1 → 3.0.0-beta.1564.1

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.cjs CHANGED
@@ -15598,7 +15598,54 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15598
15598
  }
15599
15599
  var direct = styleState;
15600
15600
  var prevStyle = direct.flatPrevStyle;
15601
- if (prevStyle && styleState.style && !direct.flatStyleChanged && Object.keys(prevStyle).length === Object.keys(styleState.style).length) styleState.style = prevStyle;
15601
+ if (prevStyle && styleState.style && !direct.flatStyleChanged && Object.keys(prevStyle).length === Object.keys(styleState.style).length) {
15602
+ var previousTransform = prevStyle.transform;
15603
+ var nextTransform = styleState.style.transform;
15604
+ var transformMatches = previousTransform === nextTransform;
15605
+ if (!transformMatches && Array.isArray(previousTransform) && Array.isArray(nextTransform) && previousTransform.length === nextTransform.length) {
15606
+ transformMatches = true;
15607
+ for (var index1 = 0; index1 < nextTransform.length; index1++) {
15608
+ var previousPart = previousTransform[index1];
15609
+ var nextPart = nextTransform[index1];
15610
+ if (previousPart === nextPart) continue;
15611
+ if (!previousPart || !nextPart || typeof previousPart !== "object" || typeof nextPart !== "object") {
15612
+ transformMatches = false;
15613
+ break;
15614
+ }
15615
+ var keys = Object.keys(nextPart);
15616
+ if (keys.length !== Object.keys(previousPart).length) {
15617
+ transformMatches = false;
15618
+ break;
15619
+ }
15620
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
15621
+ try {
15622
+ var _loop = function() {
15623
+ var key9 = _step1.value;
15624
+ var previousValue = previousPart[key9];
15625
+ var nextValue = nextPart[key9];
15626
+ if (previousValue !== nextValue && !(Array.isArray(previousValue) && Array.isArray(nextValue) && previousValue.length === nextValue.length && nextValue.every(function(value, valueIndex) {
15627
+ return value === previousValue[valueIndex];
15628
+ }))) {
15629
+ transformMatches = false;
15630
+ return "break";
15631
+ }
15632
+ };
15633
+ for (var _iterator1 = keys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) if (_loop() === "break") break;
15634
+ } catch (err) {
15635
+ _didIteratorError1 = true;
15636
+ _iteratorError1 = err;
15637
+ } finally {
15638
+ try {
15639
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
15640
+ } finally {
15641
+ if (_didIteratorError1) throw _iteratorError1;
15642
+ }
15643
+ }
15644
+ if (!transformMatches) break;
15645
+ }
15646
+ }
15647
+ if (transformMatches) styleState.style = prevStyle;
15648
+ }
15602
15649
  var result = {
15603
15650
  hasMedia,
15604
15651
  fontFamily: styleState.fontFamily,
@@ -6375,7 +6375,54 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
6375
6375
  }
6376
6376
  var direct = styleState;
6377
6377
  var prevStyle = direct.flatPrevStyle;
6378
- if (prevStyle && styleState.style && !direct.flatStyleChanged && Object.keys(prevStyle).length === Object.keys(styleState.style).length) styleState.style = prevStyle;
6378
+ if (prevStyle && styleState.style && !direct.flatStyleChanged && Object.keys(prevStyle).length === Object.keys(styleState.style).length) {
6379
+ var previousTransform = prevStyle.transform;
6380
+ var nextTransform = styleState.style.transform;
6381
+ var transformMatches = previousTransform === nextTransform;
6382
+ if (!transformMatches && Array.isArray(previousTransform) && Array.isArray(nextTransform) && previousTransform.length === nextTransform.length) {
6383
+ transformMatches = true;
6384
+ for (var index1 = 0; index1 < nextTransform.length; index1++) {
6385
+ var previousPart = previousTransform[index1];
6386
+ var nextPart = nextTransform[index1];
6387
+ if (previousPart === nextPart) continue;
6388
+ if (!previousPart || !nextPart || typeof previousPart !== "object" || typeof nextPart !== "object") {
6389
+ transformMatches = false;
6390
+ break;
6391
+ }
6392
+ var keys = Object.keys(nextPart);
6393
+ if (keys.length !== Object.keys(previousPart).length) {
6394
+ transformMatches = false;
6395
+ break;
6396
+ }
6397
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
6398
+ try {
6399
+ var _loop = function() {
6400
+ var key9 = _step1.value;
6401
+ var previousValue = previousPart[key9];
6402
+ var nextValue = nextPart[key9];
6403
+ if (previousValue !== nextValue && !(Array.isArray(previousValue) && Array.isArray(nextValue) && previousValue.length === nextValue.length && nextValue.every(function(value, valueIndex) {
6404
+ return value === previousValue[valueIndex];
6405
+ }))) {
6406
+ transformMatches = false;
6407
+ return "break";
6408
+ }
6409
+ };
6410
+ for (var _iterator1 = keys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) if (_loop() === "break") break;
6411
+ } catch (err) {
6412
+ _didIteratorError1 = true;
6413
+ _iteratorError1 = err;
6414
+ } finally {
6415
+ try {
6416
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
6417
+ } finally {
6418
+ if (_didIteratorError1) throw _iteratorError1;
6419
+ }
6420
+ }
6421
+ if (!transformMatches) break;
6422
+ }
6423
+ }
6424
+ if (transformMatches) styleState.style = prevStyle;
6425
+ }
6379
6426
  var result = {
6380
6427
  hasMedia,
6381
6428
  fontFamily: styleState.fontFamily,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "3.0.0-beta.1551.1",
3
+ "version": "3.0.0-beta.1564.1",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -137,19 +137,19 @@
137
137
  "clean:build": "tamagui-build clean:build"
138
138
  },
139
139
  "dependencies": {
140
- "@tamagui/compose-refs": "3.0.0-beta.1551.1",
141
- "@tamagui/constants": "3.0.0-beta.1551.1",
142
- "@tamagui/helpers": "3.0.0-beta.1551.1",
143
- "@tamagui/react-native-media-driver": "3.0.0-beta.1551.1",
144
- "@tamagui/react-native-use-pressable": "3.0.0-beta.1551.1",
145
- "@tamagui/use-element-layout": "3.0.0-beta.1551.1",
146
- "@tamagui/use-event": "3.0.0-beta.1551.1",
147
- "@tamagui/web": "3.0.0-beta.1551.1"
140
+ "@tamagui/compose-refs": "3.0.0-beta.1564.1",
141
+ "@tamagui/constants": "3.0.0-beta.1564.1",
142
+ "@tamagui/helpers": "3.0.0-beta.1564.1",
143
+ "@tamagui/react-native-media-driver": "3.0.0-beta.1564.1",
144
+ "@tamagui/react-native-use-pressable": "3.0.0-beta.1564.1",
145
+ "@tamagui/use-element-layout": "3.0.0-beta.1564.1",
146
+ "@tamagui/use-event": "3.0.0-beta.1564.1",
147
+ "@tamagui/web": "3.0.0-beta.1564.1"
148
148
  },
149
149
  "devDependencies": {
150
- "@tamagui/build": "3.0.0-beta.1551.1",
151
- "@tamagui/native-bundle": "3.0.0-beta.1551.1",
152
- "@tamagui/react-native-web-lite": "3.0.0-beta.1551.1",
150
+ "@tamagui/build": "3.0.0-beta.1564.1",
151
+ "@tamagui/native-bundle": "3.0.0-beta.1564.1",
152
+ "@tamagui/react-native-web-lite": "3.0.0-beta.1564.1",
153
153
  "@testing-library/react": "^16.1.0",
154
154
  "csstype": "^3.0.10",
155
155
  "react": "19.2.3",