tamagui 1.69.0 → 1.69.2
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 +5 -2
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +1 -1
- package/dist/test.native.js.map +2 -2
- package/package.json +52 -52
package/dist/native.js
CHANGED
|
@@ -4986,7 +4986,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4986
4986
|
debug: debugProp
|
|
4987
4987
|
});
|
|
4988
4988
|
asChild && (elementType = import_Slot.Slot), process.env.NODE_ENV === "development" && time && time`spaced-as-child`, // in test mode disable perf unwrapping so react-testing-library finds Text properly
|
|
4989
|
-
process.env.NODE_ENV !== "test" && (elementType === BaseText || elementType === BaseView) ? (viewProps.children = content, content =
|
|
4989
|
+
process.env.NODE_ENV !== "test" && (elementType === BaseText || elementType === BaseView) ? process.env.TAMAGUI_OPTIMIZE_NATIVE_VIEWS ? (viewProps.children = content, content = (0, import_react2.createElement)(
|
|
4990
|
+
elementType === BaseText ? "RCTText" : "RCTView",
|
|
4991
|
+
viewProps
|
|
4992
|
+
)) : (viewProps.children = content, content = elementType.render(viewProps, viewProps.ref)) : content = (0, import_react2.createElement)(elementType, viewProps, content), process.env.NODE_ENV === "development" && time && time`create-element`;
|
|
4990
4993
|
let subGroupContext = (0, import_react2.useMemo)(() => {
|
|
4991
4994
|
if (groupName)
|
|
4992
4995
|
return {
|
|
@@ -17255,7 +17258,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
17255
17258
|
padding: (0, import_web.getVariableValue)(size) * 0.6
|
|
17256
17259
|
};
|
|
17257
17260
|
props.unstyled || (props.orientation === "horizontal" ? sizeProps.height = (0, import_web.getVariableValue)(size) * 2.4 : sizeProps.width = (0, import_web.getVariableValue)(size) * 2.4);
|
|
17258
|
-
let iconSize = (typeof size == "number" ? size * 0.7 : (0, import_font_size.getFontSize)(size)) * 1.2, theme = (0, import_web.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color: theme.color }), children = import_react2.default.Children.toArray(props.children).map((child) => props.disablePassStyles || !import_react2.default.isValidElement(child) ? child : getThemedIcon(child)), commonProps = {
|
|
17261
|
+
let iconSize = (typeof size == "number" ? size * 0.7 : (0, import_font_size.getFontSize)(size)) * 1.2, theme = (0, import_web.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color: theme.color }), children = import_react2.default.Children.toArray(props.children).map((child) => props.disablePassStyles || !import_react2.default.isValidElement(child) ? child : getThemedIcon(child)), commonProps = { pressed, disabled, ...sizeProps, ...props, children };
|
|
17259
17262
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupItemProvider, { scope: __scopeToggleGroup, children: context.rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17260
17263
|
import_roving_focus.RovingFocusGroup.Item,
|
|
17261
17264
|
{
|