@butternutbox/pawprint-native 0.10.0 → 0.10.1
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 +5 -5
- package/CHANGELOG.md +7 -0
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/ProductDisplayCard/ProductDisplayCard.stories.tsx +37 -0
- package/src/components/molecules/ProductDisplayCard/ProductDisplayCard.tsx +4 -5
package/dist/index.d.cts
CHANGED
|
@@ -2088,7 +2088,7 @@ type ProductDisplayCardProps = ViewProps & {
|
|
|
2088
2088
|
imageBackgroundColor?: string;
|
|
2089
2089
|
thumbnailWidth?: number;
|
|
2090
2090
|
onImagePress?: () => void;
|
|
2091
|
-
banner?: React.ReactNode;
|
|
2091
|
+
banner?: string | React.ReactNode;
|
|
2092
2092
|
showBanner?: boolean;
|
|
2093
2093
|
bannerType?: "error" | "success" | "warning" | "info";
|
|
2094
2094
|
showBannerIcon?: boolean;
|
|
@@ -2114,8 +2114,8 @@ type ProductDisplayCardProps = ViewProps & {
|
|
|
2114
2114
|
* @param quantity - *(optional)* Current quantity value
|
|
2115
2115
|
* @param onQuantityChange - *(optional)* Callback when quantity changes
|
|
2116
2116
|
* @param showQuantityPicker - *(optional)* Show/hide quantity picker
|
|
2117
|
-
* @param image - *(optional)* Image
|
|
2118
|
-
* @param banner - *(optional)* Banner content to show below card
|
|
2117
|
+
* @param image - *(optional)* Image URL string or React element
|
|
2118
|
+
* @param banner - *(optional)* Banner content string or React element to show below card
|
|
2119
2119
|
* @param showBanner - *(optional)* Show/hide banner
|
|
2120
2120
|
* @param bannerType - *(optional)* Banner notification type: "error", "success", "warning", or "info" (default)
|
|
2121
2121
|
* @param showBannerIcon - *(optional)* Show/hide banner notification icon
|
|
@@ -2136,7 +2136,7 @@ declare const ProductDisplayCard: React.ForwardRefExoticComponent<ViewProps & {
|
|
|
2136
2136
|
imageBackgroundColor?: string;
|
|
2137
2137
|
thumbnailWidth?: number;
|
|
2138
2138
|
onImagePress?: () => void;
|
|
2139
|
-
banner?: React.ReactNode;
|
|
2139
|
+
banner?: string | React.ReactNode;
|
|
2140
2140
|
showBanner?: boolean;
|
|
2141
2141
|
bannerType?: "error" | "success" | "warning" | "info";
|
|
2142
2142
|
showBannerIcon?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -2088,7 +2088,7 @@ type ProductDisplayCardProps = ViewProps & {
|
|
|
2088
2088
|
imageBackgroundColor?: string;
|
|
2089
2089
|
thumbnailWidth?: number;
|
|
2090
2090
|
onImagePress?: () => void;
|
|
2091
|
-
banner?: React.ReactNode;
|
|
2091
|
+
banner?: string | React.ReactNode;
|
|
2092
2092
|
showBanner?: boolean;
|
|
2093
2093
|
bannerType?: "error" | "success" | "warning" | "info";
|
|
2094
2094
|
showBannerIcon?: boolean;
|
|
@@ -2114,8 +2114,8 @@ type ProductDisplayCardProps = ViewProps & {
|
|
|
2114
2114
|
* @param quantity - *(optional)* Current quantity value
|
|
2115
2115
|
* @param onQuantityChange - *(optional)* Callback when quantity changes
|
|
2116
2116
|
* @param showQuantityPicker - *(optional)* Show/hide quantity picker
|
|
2117
|
-
* @param image - *(optional)* Image
|
|
2118
|
-
* @param banner - *(optional)* Banner content to show below card
|
|
2117
|
+
* @param image - *(optional)* Image URL string or React element
|
|
2118
|
+
* @param banner - *(optional)* Banner content string or React element to show below card
|
|
2119
2119
|
* @param showBanner - *(optional)* Show/hide banner
|
|
2120
2120
|
* @param bannerType - *(optional)* Banner notification type: "error", "success", "warning", or "info" (default)
|
|
2121
2121
|
* @param showBannerIcon - *(optional)* Show/hide banner notification icon
|
|
@@ -2136,7 +2136,7 @@ declare const ProductDisplayCard: React.ForwardRefExoticComponent<ViewProps & {
|
|
|
2136
2136
|
imageBackgroundColor?: string;
|
|
2137
2137
|
thumbnailWidth?: number;
|
|
2138
2138
|
onImagePress?: () => void;
|
|
2139
|
-
banner?: React.ReactNode;
|
|
2139
|
+
banner?: string | React.ReactNode;
|
|
2140
2140
|
showBanner?: boolean;
|
|
2141
2141
|
bannerType?: "error" | "success" | "warning" | "info";
|
|
2142
2142
|
showBannerIcon?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -14683,8 +14683,7 @@ var StyledBannerWrapper = styled50(View)(({ theme: theme2 }) => {
|
|
|
14683
14683
|
var StyledRootWrapper = styled50(View)(() => {
|
|
14684
14684
|
return {
|
|
14685
14685
|
flexDirection: "column",
|
|
14686
|
-
width: "100%"
|
|
14687
|
-
maxWidth: 358
|
|
14686
|
+
width: "100%"
|
|
14688
14687
|
};
|
|
14689
14688
|
});
|
|
14690
14689
|
var StyledNotification = styled50(Notification)(({ theme: theme2 }) => {
|