@tamagui/button
Advanced tools
Comparing version 1.0.1-beta.52 to 1.0.1-beta.53
@@ -110,3 +110,3 @@ var __create = Object.create; | ||
selectable: false, | ||
flexGrow: 1, | ||
flexGrow: 0, | ||
flexShrink: 1, | ||
@@ -160,5 +160,3 @@ ellipse: true | ||
const contents = (0, import_helpers_tamagui.wrapStringChildrenInText)(ButtonText, props); | ||
return /* @__PURE__ */ import_react.default.createElement(import_core.ButtonInsideButtonContext.Provider, { | ||
value: true | ||
}, /* @__PURE__ */ import_react.default.createElement(ButtonFrame, __spreadValues(__spreadProps(__spreadValues({ | ||
return /* @__PURE__ */ import_react.default.createElement(ButtonFrame, __spreadValues(__spreadProps(__spreadValues({ | ||
fontFamily | ||
@@ -169,3 +167,5 @@ }, isInsideButton && { | ||
ref | ||
}), rest), themedIcon || themedIconAfter ? (0, import_core.spacedChildren)({ | ||
}), rest), /* @__PURE__ */ import_react.default.createElement(import_core.ButtonInsideButtonContext.Provider, { | ||
value: true | ||
}, themedIcon || themedIconAfter ? (0, import_core.spacedChildren)({ | ||
space: spaceSize, | ||
@@ -172,0 +172,0 @@ spaceFlex, |
@@ -65,3 +65,3 @@ import { | ||
selectable: false, | ||
flexGrow: 1, | ||
flexGrow: 0, | ||
flexShrink: 1, | ||
@@ -98,5 +98,3 @@ ellipse: true | ||
const contents = wrapStringChildrenInText(ButtonText, props); | ||
return /* @__PURE__ */ React.createElement(ButtonInsideButtonContext.Provider, { | ||
value: true | ||
}, /* @__PURE__ */ React.createElement(ButtonFrame, { | ||
return /* @__PURE__ */ React.createElement(ButtonFrame, { | ||
fontFamily, | ||
@@ -108,2 +106,4 @@ ...isInsideButton && { | ||
...rest | ||
}, /* @__PURE__ */ React.createElement(ButtonInsideButtonContext.Provider, { | ||
value: true | ||
}, themedIcon || themedIconAfter ? spacedChildren({ | ||
@@ -110,0 +110,0 @@ space: spaceSize, |
@@ -65,3 +65,3 @@ import { | ||
selectable: false, | ||
flexGrow: 1, | ||
flexGrow: 0, | ||
flexShrink: 1, | ||
@@ -98,5 +98,5 @@ ellipse: true | ||
const contents = wrapStringChildrenInText(ButtonText, props); | ||
return <ButtonInsideButtonContext.Provider value={true}><ButtonFrame fontFamily={fontFamily} {...isInsideButton && { | ||
return <ButtonFrame fontFamily={fontFamily} {...isInsideButton && { | ||
tag: "span" | ||
}} ref={ref} {...rest}>{themedIcon || themedIconAfter ? spacedChildren({ | ||
}} ref={ref} {...rest}><ButtonInsideButtonContext.Provider value={true}>{themedIcon || themedIconAfter ? spacedChildren({ | ||
space: spaceSize, | ||
@@ -107,3 +107,3 @@ spaceFlex, | ||
children: [themedIcon, contents, themedIconAfter] | ||
}) : contents}</ButtonFrame></ButtonInsideButtonContext.Provider>; | ||
}) : contents}</ButtonInsideButtonContext.Provider></ButtonFrame>; | ||
}); | ||
@@ -110,0 +110,0 @@ const Button = ButtonFrame.extractable(themeable(ButtonComponent), { |
{ | ||
"name": "@tamagui/button", | ||
"version": "1.0.1-beta.52", | ||
"version": "1.0.1-beta.53", | ||
"sideEffects": false, | ||
@@ -19,5 +19,5 @@ "source": "src/index.ts", | ||
"dependencies": { | ||
"@tamagui/core": "^1.0.1-beta.52", | ||
"@tamagui/font-size": "^1.0.1-beta.52", | ||
"@tamagui/helpers-tamagui": "^1.0.1-beta.52" | ||
"@tamagui/core": "^1.0.1-beta.53", | ||
"@tamagui/font-size": "^1.0.1-beta.53", | ||
"@tamagui/helpers-tamagui": "^1.0.1-beta.53" | ||
}, | ||
@@ -29,3 +29,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@tamagui/build": "^1.0.1-beta.52", | ||
"@tamagui/build": "^1.0.1-beta.53", | ||
"react": "*", | ||
@@ -32,0 +32,0 @@ "react-dom": "*" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37293
+ Added@tamagui/compose-refs@1.117.1(transitive)
+ Added@tamagui/constants@1.117.1(transitive)
+ Added@tamagui/core@1.117.1(transitive)
+ Added@tamagui/font-size@1.117.1(transitive)
+ Added@tamagui/helpers@1.117.1(transitive)
+ Added@tamagui/helpers-tamagui@1.117.1(transitive)
+ Added@tamagui/normalize-css-color@1.117.1(transitive)
+ Added@tamagui/react-native-use-pressable@1.117.1(transitive)
+ Added@tamagui/react-native-use-responder-events@1.117.1(transitive)
+ Added@tamagui/simple-hash@1.117.1(transitive)
+ Added@tamagui/timer@1.117.1(transitive)
+ Added@tamagui/types@1.117.1(transitive)
+ Added@tamagui/use-did-finish-ssr@1.117.1(transitive)
+ Added@tamagui/use-event@1.117.1(transitive)
+ Added@tamagui/use-force-update@1.117.1(transitive)
+ Added@tamagui/web@1.117.1(transitive)
- Removed@tamagui/compose-refs@1.117.2(transitive)
- Removed@tamagui/constants@1.117.2(transitive)
- Removed@tamagui/core@1.117.2(transitive)
- Removed@tamagui/font-size@1.117.2(transitive)
- Removed@tamagui/helpers@1.117.2(transitive)
- Removed@tamagui/helpers-tamagui@1.117.2(transitive)
- Removed@tamagui/normalize-css-color@1.117.2(transitive)
- Removed@tamagui/react-native-use-pressable@1.117.2(transitive)
- Removed@tamagui/react-native-use-responder-events@1.117.2(transitive)
- Removed@tamagui/simple-hash@1.117.2(transitive)
- Removed@tamagui/timer@1.117.2(transitive)
- Removed@tamagui/types@1.117.2(transitive)
- Removed@tamagui/use-did-finish-ssr@1.117.2(transitive)
- Removed@tamagui/use-event@1.117.2(transitive)
- Removed@tamagui/use-force-update@1.117.2(transitive)
- Removed@tamagui/web@1.117.2(transitive)
Updated@tamagui/core@^1.0.1-beta.53