@butternutbox/pawprint-native 0.23.0 → 0.23.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.
@@ -7,12 +7,12 @@
7
7
  CJS Build start
8
8
  ESM Build start
9
9
  DTS Build start
10
- CJS dist/index.cjs 551.83 KB
11
- CJS dist/index.cjs.map 1.07 MB
12
- CJS ⚡️ Build success in 7688ms
13
- ESM dist/index.js 521.42 KB
10
+ ESM dist/index.js 521.48 KB
14
11
  ESM dist/index.js.map 1.07 MB
15
- ESM ⚡️ Build success in 7691ms
16
- DTS ⚡️ Build success in 21136ms
12
+ ESM ⚡️ Build success in 7873ms
13
+ CJS dist/index.cjs 551.89 KB
14
+ CJS dist/index.cjs.map 1.07 MB
15
+ CJS ⚡️ Build success in 7873ms
16
+ DTS ⚡️ Build success in 21420ms
17
17
  DTS dist/index.d.cts 102.54 KB
18
18
  DTS dist/index.d.ts 102.54 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @butternutbox/pawprint-native
2
2
 
3
+ ## 0.23.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ec36679: Fix Button `startIcon`/`endIcon` alignment on full-width buttons. The text wrapper used `flex: 1`, which grew to fill the row and pushed the icon out to the button edge on short copy. Switched to `flexShrink: 1` so long/translated copy still wraps under the button's `minHeight`, while short copy keeps the icon next to the centred text.
8
+
9
+ ## 0.23.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 8506d1d: handle flex for when full width is false in buttons
14
+
3
15
  ## 0.23.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1227,10 +1227,9 @@ var StyledButton = styled51__default.default(reactNative.Pressable)(
1227
1227
  opacity: buttonOpacity
1228
1228
  }, buttonBorderWidth ? { borderWidth: buttonBorderWidth, borderColor: buttonBorderColor } : {}), buttonFullWidth ? { width: "100%" } : {})
1229
1229
  );
1230
- var StyledTextWrapper = styled51__default.default(reactNative.View)(({ textOpacity }) => ({
1231
- opacity: textOpacity,
1232
- flex: 1
1233
- }));
1230
+ var StyledTextWrapper = styled51__default.default(reactNative.View)(({ textOpacity, fullWidth }) => __spreadValues({
1231
+ opacity: textOpacity
1232
+ }, fullWidth ? { flexShrink: 1 } : {}));
1234
1233
  var StyledSpinnerWrapper = styled51__default.default(reactNative.View)({
1235
1234
  position: "absolute",
1236
1235
  alignItems: "center",
@@ -1321,7 +1320,7 @@ var Button = React66__default.default.forwardRef(
1321
1320
  }, rest), {
1322
1321
  children: [
1323
1322
  startIcon && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper, { children: startIcon }),
1324
- /* @__PURE__ */ jsxRuntime.jsx(StyledTextWrapper, { textOpacity: loading ? 0 : 1, children: /* @__PURE__ */ jsxRuntime.jsx(
1323
+ /* @__PURE__ */ jsxRuntime.jsx(StyledTextWrapper, { textOpacity: loading ? 0 : 1, fullWidth, children: /* @__PURE__ */ jsxRuntime.jsx(
1325
1324
  Typography,
1326
1325
  {
1327
1326
  token: {