@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.
@@ -7,12 +7,12 @@
7
7
  CJS Build start
8
8
  ESM Build start
9
9
  DTS Build start
10
- CJS dist/index.cjs 542.62 KB
11
- CJS dist/index.cjs.map 1.05 MB
12
- CJS ⚡️ Build success in 6588ms
13
- ESM dist/index.js 512.75 KB
10
+ ESM dist/index.js 512.83 KB
14
11
  ESM dist/index.js.map 1.05 MB
15
- ESM ⚡️ Build success in 6590ms
16
- DTS ⚡️ Build success in 21038ms
12
+ ESM ⚡️ Build success in 7603ms
13
+ CJS dist/index.cjs 542.73 KB
14
+ CJS dist/index.cjs.map 1.05 MB
15
+ CJS ⚡️ Build success in 7608ms
16
+ DTS ⚡️ Build success in 21751ms
17
17
  DTS dist/index.d.cts 100.86 KB
18
18
  DTS dist/index.d.ts 100.86 KB
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 ? parseTokenValue27(theme2.tokens.semantics.dimensions.spacing["2xl"]) : 0;
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({