@butternutbox/pawprint-native 0.23.0 → 0.23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@butternutbox/pawprint-native",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "type": "module",
5
5
  "description": "ButternutBox Pawprint Design System - React Native Components",
6
6
  "main": "./dist/index.cjs",
@@ -85,9 +85,10 @@ const StyledButton = styled(Pressable)<{
85
85
 
86
86
  const StyledTextWrapper = styled(View)<{
87
87
  textOpacity: number
88
- }>(({ textOpacity }) => ({
88
+ fullWidth?: boolean
89
+ }>(({ textOpacity, fullWidth }) => ({
89
90
  opacity: textOpacity,
90
- flex: 1
91
+ ...(fullWidth ? { flex: 1 } : {})
91
92
  }))
92
93
 
93
94
  const StyledSpinnerWrapper = styled(View)({
@@ -228,7 +229,7 @@ const Button = React.forwardRef<View, ButtonProps>(
228
229
  {...rest}
229
230
  >
230
231
  {startIcon && <IconWrapper>{startIcon}</IconWrapper>}
231
- <StyledTextWrapper textOpacity={loading ? 0 : 1}>
232
+ <StyledTextWrapper textOpacity={loading ? 0 : 1} fullWidth={fullWidth}>
232
233
  <Typography
233
234
  token={{
234
235
  fontFamily: typography.fontFamily,