@butternutbox/pawprint-native 0.16.1 → 0.18.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 +9 -9
- package/CHANGELOG.md +22 -0
- package/dist/index.cjs +463 -212
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +464 -213
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/atoms/Button/Button.stories.tsx +44 -0
- package/src/components/atoms/Icon/Icon.tsx +1 -1
- package/src/components/molecules/Drawer/Drawer.tsx +84 -4
- package/src/components/molecules/Drawer/DrawerBody.tsx +16 -23
- package/src/components/molecules/Drawer/DrawerBodyMaxContext.ts +21 -0
- package/src/components/molecules/Drawer/DrawerContent.tsx +98 -92
- package/src/components/molecules/Drawer/DrawerContext.ts +9 -0
- package/src/components/molecules/Drawer/DrawerFooter.tsx +17 -3
- package/src/components/molecules/Drawer/DrawerHeader.tsx +25 -3
- package/src/components/molecules/Drawer/DrawerMeasureContext.ts +9 -6
- package/src/components/molecules/Drawer/DrawerOverlay.tsx +4 -1
- package/src/components/molecules/Drawer/DrawerOverlayContext.ts +21 -0
- package/src/components/molecules/Drawer/index.ts +2 -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
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
11
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
14
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m1.
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
10
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m542.62 KB[39m
|
|
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
|
|
14
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m1.05 MB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 6590ms
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 21038ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m100.86 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m100.86 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @butternutbox/pawprint-native
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 322e972: Drawer: robust self-sizing, backdrop toggle, and an app-overlay slot
|
|
8
|
+
- **Self-sizing panel (fix):** the panel now wraps its content naturally (capped at 90% of the window) and the body `ScrollView` self-sizes to its content up to a chrome-aware `maxHeight` (`90%·window − measured header/footer`). This replaces the previous explicit-panel-height + content-measurement feedback loop, fixing the clipped footer/action button on tall content and the leftover gap above the footer when content shrinks.
|
|
9
|
+
- **`backdrop` prop (new):** `Drawer.Root` accepts `backdrop` (default `true`). Set `backdrop={false}` for a backdrop-less, pass-through drawer — it renders inline (no native `Modal`), omits the overlay, and lets touches outside the panel reach the content behind it (e.g. a calendar stays interactive while the sheet is open).
|
|
10
|
+
- **`Drawer.OverlayProvider` (new):** provides an app-level component rendered on top of every modal drawer, inside the drawer's native `Modal`, so app-root overlays (e.g. toast notifications) surface above the drawer instead of behind its OS window. Opt-in (defaults to nothing rendered).
|
|
11
|
+
|
|
12
|
+
All changes are backward compatible — existing drawers need no changes.
|
|
13
|
+
|
|
14
|
+
## 0.17.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 8cff714: update marketing icons with new sizes and color
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [8cff714]
|
|
23
|
+
- @butternutbox/pawprint-tokens@0.4.0
|
|
24
|
+
|
|
3
25
|
## 0.16.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|