@butternutbox/pawprint-native 0.18.0 → 0.19.0
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 +14 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/Drawer/DrawerBody.tsx +11 -1
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.05 MB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in 6588ms
|
|
13
|
-
[32mESM[39m [1mdist/index.js [22m[32m512.75 KB[39m
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m512.83 KB[39m
|
|
14
11
|
[32mESM[39m [1mdist/index.js.map [22m[32m1.05 MB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 7603ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m542.73 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.05 MB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 7608ms
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 21751ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m100.86 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m100.86 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @butternutbox/pawprint-native
|
|
2
2
|
|
|
3
|
+
## 0.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- dc0abdf: Drawer: apply the bottom safe-area inset to a footer-less body
|
|
8
|
+
|
|
9
|
+
When a `Drawer` has no `Drawer.Footer`, the body is the last element in the
|
|
10
|
+
panel, so it must clear the bottom safe area (iOS home indicator / Android
|
|
11
|
+
navigation bar) itself — as `Drawer.Footer` already does when present.
|
|
12
|
+
`DrawerBody` now sets its bottom padding to `max(spacing.2xl, insets.bottom)`
|
|
13
|
+
in the no-footer case, so short insets keep the usual spacing while a taller
|
|
14
|
+
inset (e.g. the Android nav bar) is no longer clipped. Footered drawers are
|
|
15
|
+
unchanged.
|
|
16
|
+
|
|
3
17
|
## 0.18.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -6300,12 +6300,16 @@ var DrawerBody = React66__default.default.forwardRef(
|
|
|
6300
6300
|
const footerContext = useDrawerFooterContext();
|
|
6301
6301
|
const providedMaxHeight = useDrawerBodyMax();
|
|
6302
6302
|
const { height: windowHeight } = reactNative.useWindowDimensions();
|
|
6303
|
+
const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
6303
6304
|
const gap = parseTokenValue27(content.slot.gap);
|
|
6304
6305
|
const horizontalPadding = parseTokenValue27(content.slot.horizontalPadding);
|
|
6305
6306
|
const topPadding = parseTokenValue27(content.slot.verticalPadding);
|
|
6306
6307
|
const bodyMaxHeight = providedMaxHeight != null ? providedMaxHeight : windowHeight - 300;
|
|
6307
6308
|
const paddingRight = headerContext === null ? parseTokenValue27(spacing.close.right.md) + parseTokenValue27(buttons.size.sm.height) : horizontalPadding;
|
|
6308
|
-
const bodyPaddingBottom = !footerContext ?
|
|
6309
|
+
const bodyPaddingBottom = !footerContext ? Math.max(
|
|
6310
|
+
parseTokenValue27(theme2.tokens.semantics.dimensions.spacing["2xl"]),
|
|
6311
|
+
insets.bottom
|
|
6312
|
+
) : 0;
|
|
6309
6313
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6310
6314
|
StyledScrollView,
|
|
6311
6315
|
__spreadProps(__spreadValues({
|