@tamagui/core 3.0.0-beta.891.1 → 3.0.0-beta.907.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
@@ -13119,6 +13119,66 @@ var nativeTextInputColorProps = {
13119
13119
  cursorColor: "cursorColor",
13120
13120
  selectionHandleColor: "selectionHandleColor"
13121
13121
  };
13122
+ var nativeOutlineProps = [
13123
+ "outlineStyle",
13124
+ "outlineWidth",
13125
+ "outlineColor",
13126
+ "outlineOffset"
13127
+ ];
13128
+ var nativeIntrinsicSizeProps = [
13129
+ "width",
13130
+ "height",
13131
+ "minWidth",
13132
+ "minHeight",
13133
+ "maxWidth",
13134
+ "maxHeight"
13135
+ ];
13136
+ function normalizeNativeStyle(style) {
13137
+ var reset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
13138
+ var next;
13139
+ if (style.outlineStyle === "none") {
13140
+ next = _objectSpread2({}, style);
13141
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
13142
+ try {
13143
+ for (var _iterator = nativeOutlineProps[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
13144
+ var key = _step.value;
13145
+ if (reset) next[key] = null;
13146
+ else delete next[key];
13147
+ }
13148
+ } catch (err) {
13149
+ _didIteratorError = true;
13150
+ _iteratorError = err;
13151
+ } finally {
13152
+ try {
13153
+ if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
13154
+ } finally {
13155
+ if (_didIteratorError) throw _iteratorError;
13156
+ }
13157
+ }
13158
+ }
13159
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
13160
+ try {
13161
+ for (var _iterator1 = nativeIntrinsicSizeProps[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
13162
+ var key1 = _step1.value;
13163
+ var value = style[key1];
13164
+ if (value === "max-content" || value === "min-content" || value === "fit-content") {
13165
+ next || (next = _objectSpread2({}, style));
13166
+ if (reset) next[key1] = null;
13167
+ else delete next[key1];
13168
+ }
13169
+ }
13170
+ } catch (err) {
13171
+ _didIteratorError1 = true;
13172
+ _iteratorError1 = err;
13173
+ } finally {
13174
+ try {
13175
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
13176
+ } finally {
13177
+ if (_didIteratorError1) throw _iteratorError1;
13178
+ }
13179
+ }
13180
+ return next !== null && next !== void 0 ? next : style;
13181
+ }
13122
13182
  var engine = null;
13123
13183
  var scopeStates = /* @__PURE__ */ new Map();
13124
13184
  var mappingKeys = /* @__PURE__ */ new WeakMap();
@@ -13153,6 +13213,7 @@ function resolveCompiledMapping(compiled, stateName, theme) {
13153
13213
  var value = theme[compiled.mapping[styleKey]];
13154
13214
  renderProps[styleKey] = value === void 0 ? null : getVariableValue(value);
13155
13215
  }
13216
+ renderProps = normalizeNativeStyle(renderProps, true);
13156
13217
  var _engine_processStyleColors;
13157
13218
  var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;
13158
13219
  if (compiled.states.size >= 1e4) {
@@ -13281,7 +13342,7 @@ function linkNativeStyleMapping(ref, baseStyle, mapping, scopeId, stateName, the
13281
13342
  if (!base || base.engine !== engine) {
13282
13343
  base = {
13283
13344
  engine,
13284
- props: engine.processStyleColors(baseStyle)
13345
+ props: engine.processStyleColors(normalizeNativeStyle(baseStyle))
13285
13346
  };
13286
13347
  processedBases.set(baseStyle, base);
13287
13348
  }
@@ -15068,6 +15129,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15068
15129
  }
15069
15130
  }
15070
15131
  }
15132
+ if (styleState.style) styleState.style = normalizeNativeStyle(styleState.style);
15071
15133
  if (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {
15072
15134
  var provenance = {};
15073
15135
  var hasProvenance = false;
@@ -3362,6 +3362,66 @@ var nativeTextInputColorProps = {
3362
3362
  cursorColor: "cursorColor",
3363
3363
  selectionHandleColor: "selectionHandleColor"
3364
3364
  };
3365
+ var nativeOutlineProps = [
3366
+ "outlineStyle",
3367
+ "outlineWidth",
3368
+ "outlineColor",
3369
+ "outlineOffset"
3370
+ ];
3371
+ var nativeIntrinsicSizeProps = [
3372
+ "width",
3373
+ "height",
3374
+ "minWidth",
3375
+ "minHeight",
3376
+ "maxWidth",
3377
+ "maxHeight"
3378
+ ];
3379
+ function normalizeNativeStyle(style) {
3380
+ var reset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
3381
+ var next;
3382
+ if (style.outlineStyle === "none") {
3383
+ next = _objectSpread2({}, style);
3384
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
3385
+ try {
3386
+ for (var _iterator = nativeOutlineProps[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3387
+ var key = _step.value;
3388
+ if (reset) next[key] = null;
3389
+ else delete next[key];
3390
+ }
3391
+ } catch (err) {
3392
+ _didIteratorError = true;
3393
+ _iteratorError = err;
3394
+ } finally {
3395
+ try {
3396
+ if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
3397
+ } finally {
3398
+ if (_didIteratorError) throw _iteratorError;
3399
+ }
3400
+ }
3401
+ }
3402
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
3403
+ try {
3404
+ for (var _iterator1 = nativeIntrinsicSizeProps[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
3405
+ var key1 = _step1.value;
3406
+ var value = style[key1];
3407
+ if (value === "max-content" || value === "min-content" || value === "fit-content") {
3408
+ next || (next = _objectSpread2({}, style));
3409
+ if (reset) next[key1] = null;
3410
+ else delete next[key1];
3411
+ }
3412
+ }
3413
+ } catch (err) {
3414
+ _didIteratorError1 = true;
3415
+ _iteratorError1 = err;
3416
+ } finally {
3417
+ try {
3418
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
3419
+ } finally {
3420
+ if (_didIteratorError1) throw _iteratorError1;
3421
+ }
3422
+ }
3423
+ return next !== null && next !== void 0 ? next : style;
3424
+ }
3365
3425
  var engine = null;
3366
3426
  var scopeStates = /* @__PURE__ */ new Map();
3367
3427
  var mappingKeys = /* @__PURE__ */ new WeakMap();
@@ -3396,6 +3456,7 @@ function resolveCompiledMapping(compiled, stateName, theme) {
3396
3456
  var value = theme[compiled.mapping[styleKey]];
3397
3457
  renderProps[styleKey] = value === void 0 ? null : getVariableValue(value);
3398
3458
  }
3459
+ renderProps = normalizeNativeStyle(renderProps, true);
3399
3460
  var _engine_processStyleColors;
3400
3461
  var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;
3401
3462
  if (compiled.states.size >= 1e4) {
@@ -3524,7 +3585,7 @@ function linkNativeStyleMapping(ref, baseStyle, mapping, scopeId, stateName, the
3524
3585
  if (!base || base.engine !== engine) {
3525
3586
  base = {
3526
3587
  engine,
3527
- props: engine.processStyleColors(baseStyle)
3588
+ props: engine.processStyleColors(normalizeNativeStyle(baseStyle))
3528
3589
  };
3529
3590
  processedBases.set(baseStyle, base);
3530
3591
  }
@@ -5802,6 +5863,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
5802
5863
  }
5803
5864
  if (globalThis.process.env.NODE_ENV === "development" && debug && debug !== "profile") log(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
5804
5865
  }
5866
+ if (styleState.style) styleState.style = normalizeNativeStyle(styleState.style);
5805
5867
  if (globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-pre-result`;
5806
5868
  if (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {
5807
5869
  var provenance = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "3.0.0-beta.891.1",
3
+ "version": "3.0.0-beta.907.1",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -137,20 +137,20 @@
137
137
  "clean:build": "tamagui-build clean:build"
138
138
  },
139
139
  "dependencies": {
140
- "@tamagui/compose-refs": "3.0.0-beta.891.1",
141
- "@tamagui/constants": "3.0.0-beta.891.1",
142
- "@tamagui/helpers": "3.0.0-beta.891.1",
143
- "@tamagui/react-native-media-driver": "3.0.0-beta.891.1",
144
- "@tamagui/react-native-use-pressable": "3.0.0-beta.891.1",
145
- "@tamagui/size": "3.0.0-beta.891.1",
146
- "@tamagui/use-element-layout": "3.0.0-beta.891.1",
147
- "@tamagui/use-event": "3.0.0-beta.891.1",
148
- "@tamagui/web": "3.0.0-beta.891.1"
140
+ "@tamagui/compose-refs": "3.0.0-beta.907.1",
141
+ "@tamagui/constants": "3.0.0-beta.907.1",
142
+ "@tamagui/helpers": "3.0.0-beta.907.1",
143
+ "@tamagui/react-native-media-driver": "3.0.0-beta.907.1",
144
+ "@tamagui/react-native-use-pressable": "3.0.0-beta.907.1",
145
+ "@tamagui/size": "3.0.0-beta.907.1",
146
+ "@tamagui/use-element-layout": "3.0.0-beta.907.1",
147
+ "@tamagui/use-event": "3.0.0-beta.907.1",
148
+ "@tamagui/web": "3.0.0-beta.907.1"
149
149
  },
150
150
  "devDependencies": {
151
- "@tamagui/build": "3.0.0-beta.891.1",
152
- "@tamagui/native-bundle": "3.0.0-beta.891.1",
153
- "@tamagui/react-native-web-lite": "3.0.0-beta.891.1",
151
+ "@tamagui/build": "3.0.0-beta.907.1",
152
+ "@tamagui/native-bundle": "3.0.0-beta.907.1",
153
+ "@tamagui/react-native-web-lite": "3.0.0-beta.907.1",
154
154
  "@testing-library/react": "^16.1.0",
155
155
  "csstype": "^3.0.10",
156
156
  "react": "19.2.3",