tamagui 1.135.6 → 1.136.0

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
@@ -7851,7 +7851,7 @@ function addNativeValidStyles() {
7851
7851
  }
7852
7852
  }
7853
7853
  function createOptimizedView(children, viewProps, baseViews2) {
7854
- var _viewProps_style, TextAncestor = baseViews2.TextAncestor, ViewNativeComponent = baseViews2.View, {
7854
+ var _viewProps_style, TextAncestor = baseViews2.TextAncestor, {
7855
7855
  accessibilityElementsHidden,
7856
7856
  accessibilityLabel,
7857
7857
  accessibilityLabelledBy,
@@ -7907,7 +7907,7 @@ function createOptimizedView(children, viewProps, baseViews2) {
7907
7907
  f != null && (viewProps.focusable = f), _accessibilityState != null && (viewProps.accessibilityState = _accessibilityState);
7908
7908
  var ah = ariaHidden != null ? ariaHidden : accessibilityElementsHidden;
7909
7909
  ah != null && (viewProps.accessibilityElementsHidden = ah), _accessibilityLabelledBy && (viewProps.accessibilityLabelledBy = _accessibilityLabelledBy);
7910
- var isInText = React.useContext(TextAncestor), finalElement = /* @__PURE__ */ React.createElement(ViewNativeComponent, viewProps, children);
7910
+ var isInText = React.useContext(TextAncestor), finalElement = /* @__PURE__ */ React.createElement("RCTView", viewProps, children);
7911
7911
  return isInText ? /* @__PURE__ */ React.createElement(TextAncestor.Provider, {
7912
7912
  value: false
7913
7913
  }, finalElement) : finalElement;
@@ -8047,18 +8047,13 @@ function getAccessibilityRoleFromRole(role) {
8047
8047
  }
8048
8048
  }
8049
8049
  function getBaseViews() {
8050
- var native = require("react-native"), View2, TextAncestor;
8051
- {
8052
- View2 = require("react-native/Libraries/Components/View/ViewNativeComponent").default;
8053
- var TextAncestorModule = require("react-native/Libraries/Text/TextAncestor"), _TextAncestorModule_default;
8054
- TextAncestor = (_TextAncestorModule_default = TextAncestorModule.default) !== null && _TextAncestorModule_default !== void 0 ? _TextAncestorModule_default : TextAncestorModule;
8055
- }
8056
- return View2 || (View2 = native.View || native.default.View), {
8057
- View: View2,
8058
- Text: native.Text || native.default.Text,
8059
- StyleSheet: native.StyleSheet || native.default.StyleSheet,
8060
- TextAncestor,
8061
- Pressable: native.Pressable || native.default.Pressable
8050
+ var _native_default, _native_default1, _native_default2, _native_default3, native = require("react-native");
8051
+ return {
8052
+ View: native.View || ((_native_default = native.default) === null || _native_default === void 0 ? void 0 : _native_default.View),
8053
+ Text: native.Text || ((_native_default1 = native.default) === null || _native_default1 === void 0 ? void 0 : _native_default1.Text),
8054
+ TextAncestor: native.unstable_TextAncestorContext,
8055
+ StyleSheet: native.StyleSheet || ((_native_default2 = native.default) === null || _native_default2 === void 0 ? void 0 : _native_default2.StyleSheet),
8056
+ Pressable: native.Pressable || ((_native_default3 = native.default) === null || _native_default3 === void 0 ? void 0 : _native_default3.Pressable)
8062
8057
  };
8063
8058
  }
8064
8059
  require("react-native/Libraries/Pressability/Pressability").default;
@@ -8100,10 +8095,7 @@ setupHooks({
8100
8095
  }
8101
8096
  },
8102
8097
  useChildren(elementType, children, viewProps) {
8103
- {
8104
- if (elementType === baseViews.View) return createOptimizedView(children, viewProps, baseViews);
8105
- if (process.env.TAMAGUI_OPTIMIZE_NATIVE_VIEWS && elementType === baseViews.Text) return viewProps.children = children, /* @__PURE__ */ React.createElement("RCTText", viewProps);
8106
- }
8098
+ if (elementType === baseViews.View && baseViews.TextAncestor) return createOptimizedView(children, viewProps, baseViews);
8107
8099
  }
8108
8100
  });
8109
8101
  var dontComposePressabilityKeys = {
package/dist/test.cjs CHANGED
@@ -8195,13 +8195,13 @@ function addNativeValidStyles() {
8195
8195
  }
8196
8196
  }
8197
8197
  function getBaseViews() {
8198
- var native = require("react-native"), View2, TextAncestor;
8199
- return View2 || (View2 = native.View || native.default.View), {
8200
- View: View2,
8201
- Text: native.Text || native.default.Text,
8202
- StyleSheet: native.StyleSheet || native.default.StyleSheet,
8203
- TextAncestor,
8204
- Pressable: native.Pressable || native.default.Pressable
8198
+ var _native_default, _native_default1, _native_default2, _native_default3, native = require("react-native");
8199
+ return {
8200
+ View: native.View || ((_native_default = native.default) === null || _native_default === void 0 ? void 0 : _native_default.View),
8201
+ Text: native.Text || ((_native_default1 = native.default) === null || _native_default1 === void 0 ? void 0 : _native_default1.Text),
8202
+ TextAncestor: native.unstable_TextAncestorContext,
8203
+ StyleSheet: native.StyleSheet || ((_native_default2 = native.default) === null || _native_default2 === void 0 ? void 0 : _native_default2.StyleSheet),
8204
+ Pressable: native.Pressable || ((_native_default3 = native.default) === null || _native_default3 === void 0 ? void 0 : _native_default3.Pressable)
8205
8205
  };
8206
8206
  }
8207
8207
  require("react-native/Libraries/Pressability/Pressability").default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamagui",
3
- "version": "1.135.6",
3
+ "version": "1.136.0",
4
4
  "type": "module",
5
5
  "description": "Style and UI for React (web and native) meet an optimizing compiler",
6
6
  "removeSideEffects": true,
@@ -81,62 +81,62 @@
81
81
  }
82
82
  },
83
83
  "dependencies": {
84
- "@tamagui/accordion": "1.135.6",
85
- "@tamagui/adapt": "1.135.6",
86
- "@tamagui/alert-dialog": "1.135.6",
87
- "@tamagui/animate-presence": "1.135.6",
88
- "@tamagui/avatar": "1.135.6",
89
- "@tamagui/button": "1.135.6",
90
- "@tamagui/card": "1.135.6",
91
- "@tamagui/checkbox": "1.135.6",
92
- "@tamagui/compose-refs": "1.135.6",
93
- "@tamagui/constants": "1.135.6",
94
- "@tamagui/core": "1.135.6",
95
- "@tamagui/create-context": "1.135.6",
96
- "@tamagui/dialog": "1.135.6",
97
- "@tamagui/elements": "1.135.6",
98
- "@tamagui/fake-react-native": "1.135.6",
99
- "@tamagui/focusable": "1.135.6",
100
- "@tamagui/font-size": "1.135.6",
101
- "@tamagui/form": "1.135.6",
102
- "@tamagui/get-button-sized": "1.135.6",
103
- "@tamagui/get-font-sized": "1.135.6",
104
- "@tamagui/get-token": "1.135.6",
105
- "@tamagui/group": "1.135.6",
106
- "@tamagui/helpers-tamagui": "1.135.6",
107
- "@tamagui/image": "1.135.6",
108
- "@tamagui/label": "1.135.6",
109
- "@tamagui/linear-gradient": "1.135.6",
110
- "@tamagui/list-item": "1.135.6",
111
- "@tamagui/polyfill-dev": "1.135.6",
112
- "@tamagui/popover": "1.135.6",
113
- "@tamagui/popper": "1.135.6",
114
- "@tamagui/portal": "1.135.6",
115
- "@tamagui/progress": "1.135.6",
116
- "@tamagui/radio-group": "1.135.6",
117
- "@tamagui/react-native-media-driver": "1.135.6",
118
- "@tamagui/scroll-view": "1.135.6",
119
- "@tamagui/select": "1.135.6",
120
- "@tamagui/separator": "1.135.6",
121
- "@tamagui/shapes": "1.135.6",
122
- "@tamagui/sheet": "1.135.6",
123
- "@tamagui/slider": "1.135.6",
124
- "@tamagui/stacks": "1.135.6",
125
- "@tamagui/switch": "1.135.6",
126
- "@tamagui/tabs": "1.135.6",
127
- "@tamagui/text": "1.135.6",
128
- "@tamagui/theme": "1.135.6",
129
- "@tamagui/toggle-group": "1.135.6",
130
- "@tamagui/tooltip": "1.135.6",
131
- "@tamagui/use-controllable-state": "1.135.6",
132
- "@tamagui/use-debounce": "1.135.6",
133
- "@tamagui/use-force-update": "1.135.6",
134
- "@tamagui/use-window-dimensions": "1.135.6",
135
- "@tamagui/visually-hidden": "1.135.6",
136
- "@tamagui/z-index-stack": "1.135.6"
84
+ "@tamagui/accordion": "1.136.0",
85
+ "@tamagui/adapt": "1.136.0",
86
+ "@tamagui/alert-dialog": "1.136.0",
87
+ "@tamagui/animate-presence": "1.136.0",
88
+ "@tamagui/avatar": "1.136.0",
89
+ "@tamagui/button": "1.136.0",
90
+ "@tamagui/card": "1.136.0",
91
+ "@tamagui/checkbox": "1.136.0",
92
+ "@tamagui/compose-refs": "1.136.0",
93
+ "@tamagui/constants": "1.136.0",
94
+ "@tamagui/core": "1.136.0",
95
+ "@tamagui/create-context": "1.136.0",
96
+ "@tamagui/dialog": "1.136.0",
97
+ "@tamagui/elements": "1.136.0",
98
+ "@tamagui/fake-react-native": "1.136.0",
99
+ "@tamagui/focusable": "1.136.0",
100
+ "@tamagui/font-size": "1.136.0",
101
+ "@tamagui/form": "1.136.0",
102
+ "@tamagui/get-button-sized": "1.136.0",
103
+ "@tamagui/get-font-sized": "1.136.0",
104
+ "@tamagui/get-token": "1.136.0",
105
+ "@tamagui/group": "1.136.0",
106
+ "@tamagui/helpers-tamagui": "1.136.0",
107
+ "@tamagui/image": "1.136.0",
108
+ "@tamagui/label": "1.136.0",
109
+ "@tamagui/linear-gradient": "1.136.0",
110
+ "@tamagui/list-item": "1.136.0",
111
+ "@tamagui/polyfill-dev": "1.136.0",
112
+ "@tamagui/popover": "1.136.0",
113
+ "@tamagui/popper": "1.136.0",
114
+ "@tamagui/portal": "1.136.0",
115
+ "@tamagui/progress": "1.136.0",
116
+ "@tamagui/radio-group": "1.136.0",
117
+ "@tamagui/react-native-media-driver": "1.136.0",
118
+ "@tamagui/scroll-view": "1.136.0",
119
+ "@tamagui/select": "1.136.0",
120
+ "@tamagui/separator": "1.136.0",
121
+ "@tamagui/shapes": "1.136.0",
122
+ "@tamagui/sheet": "1.136.0",
123
+ "@tamagui/slider": "1.136.0",
124
+ "@tamagui/stacks": "1.136.0",
125
+ "@tamagui/switch": "1.136.0",
126
+ "@tamagui/tabs": "1.136.0",
127
+ "@tamagui/text": "1.136.0",
128
+ "@tamagui/theme": "1.136.0",
129
+ "@tamagui/toggle-group": "1.136.0",
130
+ "@tamagui/tooltip": "1.136.0",
131
+ "@tamagui/use-controllable-state": "1.136.0",
132
+ "@tamagui/use-debounce": "1.136.0",
133
+ "@tamagui/use-force-update": "1.136.0",
134
+ "@tamagui/use-window-dimensions": "1.136.0",
135
+ "@tamagui/visually-hidden": "1.136.0",
136
+ "@tamagui/z-index-stack": "1.136.0"
137
137
  },
138
138
  "devDependencies": {
139
- "@tamagui/build": "1.135.6",
139
+ "@tamagui/build": "1.136.0",
140
140
  "react": "*",
141
141
  "react-native": "^0.79.2",
142
142
  "react-native-web": "^0.20.0"