@butternutbox/pawprint-native 1.3.1 → 1.4.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 +15 -0
- package/dist/index.cjs +334 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -3
- package/dist/index.d.ts +62 -3
- package/dist/index.js +302 -77
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/Button/Button.stories.tsx +4 -4
- package/src/components/atoms/Button/Button.test.tsx +9 -2
- package/src/components/atoms/Button/Button.tsx +39 -7
- package/src/components/molecules/NavigationHeader/NavigationHeader.stories.tsx +140 -0
- package/src/components/molecules/NavigationHeader/NavigationHeader.test.tsx +110 -0
- package/src/components/molecules/NavigationHeader/NavigationHeader.tsx +273 -0
- package/src/components/molecules/NavigationHeader/NavigationHeaderButton.tsx +87 -0
- package/src/components/molecules/NavigationHeader/NavigationHeaderContext.ts +38 -0
- package/src/components/molecules/NavigationHeader/index.ts +14 -0
- package/src/components/molecules/index.ts +1 -0
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
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
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[32m573.11 KB[39m
|
|
11
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.12 MB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 6196ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m541.22 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m1.12 MB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 6197ms
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 17774ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m114.50 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m114.50 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @butternutbox/pawprint-native
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b35050e: `NavigationHeader`: add new molecule on web and native, matching the design-system navigation header.
|
|
8
|
+
- **Variants:** `primary` (landing pages, large title) and `secondary` (child pages, back button via `onBack` and `backLabel`).
|
|
9
|
+
- **Surfaces:** `brand` (default), `subtle` and `plain`, with optional radius pips (`showRadiusPips`, on by default for `brand`).
|
|
10
|
+
- **Actions:** pass `NavigationHeader.Button` and `NavigationHeader.IconButton` in the `actions` slot. They default to the surface — white `filled` / `tertiary` on `brand`; `outlined` button and `secondary` icon button elsewhere — and `variant` / `colour` override the default. The back button follows the same rule.
|
|
11
|
+
- **Web desktop layout:** switches automatically from the `md` breakpoint, or is forced with `layout="mobile" | "desktop"`. No surface or pips, a labelled `secondary` back button, a `heading.desktop.xl` title (centred on `secondary`, flush-left on `primary`), large outlined buttons, and page gutters that `disableGutters` removes for templates that provide their own.
|
|
12
|
+
- **Native:** applies the top safe area inset (`safeAreaTop`).
|
|
13
|
+
|
|
14
|
+
`Button`: add `tertiary` colour for the `filled` variant, mirroring `IconButton`'s tertiary behaviour — white background with action text, switching to the pink background with inverse text on hover/press.
|
|
15
|
+
|
|
16
|
+
Adds an internal `useMediaQuery` hook to pawprint-web.
|
|
17
|
+
|
|
3
18
|
## 1.3.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|