@butternutbox/pawprint-native 1.3.1 → 1.5.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 +21 -0
- package/dist/index.cjs +2668 -649
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +81 -3
- package/dist/index.d.ts +81 -3
- package/dist/index.js +2483 -468
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__mocks__/react-native-reanimated.tsx +5 -0
- package/src/__mocks__/react-native-svg.tsx +1 -0
- 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/atoms/ChefDogLoader/ChefDogLoader.stories.tsx +21 -0
- package/src/components/atoms/ChefDogLoader/ChefDogLoader.test.tsx +33 -0
- package/src/components/atoms/ChefDogLoader/ChefDogLoader.tsx +115 -0
- package/src/components/atoms/ChefDogLoader/index.ts +2 -0
- package/src/components/atoms/index.ts +1 -0
- 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[32m3.79 MB[39m
|
|
11
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m4.52 MB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 8631ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m3.74 MB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m4.52 MB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 8634ms
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 17466ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m115.15 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m115.15 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @butternutbox/pawprint-native
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a76ed81: Add `ChefDogLoader`, the labrador in a chef's hat wagging its tail, for loading states.
|
|
8
|
+
|
|
9
|
+
## 1.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- b35050e: `NavigationHeader`: add new molecule on web and native, matching the design-system navigation header.
|
|
14
|
+
- **Variants:** `primary` (landing pages, large title) and `secondary` (child pages, back button via `onBack` and `backLabel`).
|
|
15
|
+
- **Surfaces:** `brand` (default), `subtle` and `plain`, with optional radius pips (`showRadiusPips`, on by default for `brand`).
|
|
16
|
+
- **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.
|
|
17
|
+
- **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.
|
|
18
|
+
- **Native:** applies the top safe area inset (`safeAreaTop`).
|
|
19
|
+
|
|
20
|
+
`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.
|
|
21
|
+
|
|
22
|
+
Adds an internal `useMediaQuery` hook to pawprint-web.
|
|
23
|
+
|
|
3
24
|
## 1.3.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|