@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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/Button/Button.tsx +8 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
[34mCJS[39m Build start
|
|
8
8
|
[34mESM[39m Build start
|
|
9
9
|
[34mDTS[39m Build start
|
|
10
|
-
[
|
|
11
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.07 MB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in 7688ms
|
|
13
|
-
[32mESM[39m [1mdist/index.js [22m[32m521.42 KB[39m
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m521.48 KB[39m
|
|
14
11
|
[32mESM[39m [1mdist/index.js.map [22m[32m1.07 MB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 7873ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m551.89 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.07 MB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 7873ms
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 21420ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m102.54 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m102.54 KB[39m
|
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
|
-
|
|
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: {
|