@tamagui/core 1.75.7 → 1.75.8

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.
@@ -2295,14 +2295,14 @@ var require_createMediaStyle_native = __commonJS({
2295
2295
  mediaKeys.map((k, index) => [k, new Array(index + 1).fill(":root").join("")])
2296
2296
  ));
2297
2297
  }
2298
- let mediaKey = groupMediaKey || mediaKeyIn, mediaSelector = selectors[mediaKey], mediaQuery = `${negate ? "not all and" : ""} ${mediaSelector}`, precedenceImportancePrefix = groupMediaKey ? "" : enableMediaPropOrder ? (
2298
+ let mediaKey = groupMediaKey || mediaKeyIn, mediaSelector = selectors[mediaKey], mediaQuery = `${negate ? "not all and " : ""}${mediaSelector}`, precedenceImportancePrefix = groupMediaKey ? "" : enableMediaPropOrder ? (
2299
2299
  // this new array should be cached
2300
2300
  new Array(priority).fill(":root").join("")
2301
2301
  ) : (
2302
2302
  // @ts-ignore
2303
2303
  prefixes[mediaKey]
2304
2304
  ), prefix = groupMediaKey ? `@container ${containerName}` : "@media";
2305
- groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", ` and ${mediaQuery} {`) : styleRule = `${prefix} ${mediaQuery}{${precedenceImportancePrefix}${styleInner}}`;
2305
+ groupMediaKey && (styleInner = styleRule), styleInner.includes(prefix) ? styleRule = styleInner.replace("{", ` and ${mediaQuery} {`) : styleRule = `${prefix} ${mediaQuery}{${precedenceImportancePrefix}${styleInner}}`, groupMediaKey && (styleRule = `@supports (contain: inline-size) {${styleRule}}`);
2306
2306
  }
2307
2307
  return {
2308
2308
  property,
@@ -3704,12 +3704,13 @@ var require_getSplitStyles_native = __commonJS({
3704
3704
  return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
3705
3705
  };
3706
3706
  function mergeStylePropIntoStyle(styleState, cur) {
3707
- if (cur)
3708
- if (cur.$$css)
3709
- Object.assign(styleState.classNames, cur);
3710
- else
3711
- for (let key in cur)
3712
- key in styleState.usedKeys || mergeStyle(styleState, key, cur[key]);
3707
+ if (!cur)
3708
+ return;
3709
+ let styles = Array.isArray(cur) ? cur : [cur];
3710
+ for (let style of styles) {
3711
+ let isRNW = style.$$css;
3712
+ Object.assign(isRNW ? styleState.classNames : styleState.style, style);
3713
+ }
3713
3714
  }
3714
3715
  var useInsertEffectCompat = import_constants2.isWeb ? import_react3.useInsertionEffect || import_constants2.useIsomorphicLayoutEffect : () => {
3715
3716
  }, useSplitStyles = (...args) => {
@@ -6025,10 +6026,10 @@ var require_View_native = __commonJS({
6025
6026
  return to;
6026
6027
  }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), View_exports = {};
6027
6028
  __export2(View_exports, {
6028
- View: () => View
6029
+ View: () => View2
6029
6030
  });
6030
6031
  module2.exports = __toCommonJS2(View_exports);
6031
- var import_helpers = require_index_native4(), import_createComponent = require_createComponent_native(), View = (0, import_createComponent.createComponent)({
6032
+ var import_helpers = require_index_native4(), import_createComponent = require_createComponent_native(), View2 = (0, import_createComponent.createComponent)({
6032
6033
  acceptsClassName: !0,
6033
6034
  defaultProps: {
6034
6035
  display: "flex"
@@ -6439,7 +6440,8 @@ var idFn_default, init_idFn = __esm({
6439
6440
  var src_exports = {};
6440
6441
  __export(src_exports, {
6441
6442
  Stack: () => Stack,
6442
- Text: () => Text
6443
+ Text: () => Text,
6444
+ View: () => View
6443
6445
  });
6444
6446
  module.exports = __toCommonJS(src_exports);
6445
6447
  var import_react_native_use_responder_events = __toESM(require_index_native()), import_web2 = __toESM(require_index_native9()), import_react2 = require("react");
@@ -6647,9 +6649,9 @@ function getAccessibilityRoleFromRole(role) {
6647
6649
 
6648
6650
  // src/getBaseViews.native.ts
6649
6651
  function getBaseViews() {
6650
- let native = require("react-native"), View, TextAncestor;
6651
- return View || (View = native.View || native.default.View), {
6652
- View,
6652
+ let native = require("react-native"), View2, TextAncestor;
6653
+ return View2 || (View2 = native.View || native.default.View), {
6654
+ View: View2,
6653
6655
  Text: native.Text || native.default.Text,
6654
6656
  StyleSheet: native.StyleSheet || native.default.StyleSheet,
6655
6657
  TextAncestor,
@@ -6732,7 +6734,7 @@ var Pressability = require_fake_react_native().default, usePressability = (init_
6732
6734
 
6733
6735
  // src/index.tsx
6734
6736
  __reExport(src_exports, __toESM(require_index_native9()), module.exports);
6735
- var Stack = import_web2.Stack, Text = import_web2.Text, baseViews = getBaseViews();
6737
+ var View = import_web2.View, Stack = import_web2.Stack, Text = import_web2.Text, baseViews = getBaseViews();
6736
6738
  (0, import_web2.setupHooks)({
6737
6739
  getBaseViews,
6738
6740
  usePropsTransform(elementType, propsIn, hostRef) {
@@ -6815,6 +6817,7 @@ var dontComposePressabilityKeys = {
6815
6817
  // Annotate the CommonJS export names for ESM import in node:
6816
6818
  0 && (module.exports = {
6817
6819
  Stack,
6818
- Text
6820
+ Text,
6821
+ View
6819
6822
  });
6820
6823
  //# sourceMappingURL=test.js.map