@butternutbox/pawprint-native 0.24.1 → 0.24.2
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 +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/ProductDisplayCard/ProductDisplayCard.tsx +9 -2
package/dist/index.d.cts
CHANGED
|
@@ -2361,6 +2361,7 @@ type ProductDisplayCardProps = ViewProps & {
|
|
|
2361
2361
|
incrementDisabled?: boolean;
|
|
2362
2362
|
decrementDisabled?: boolean;
|
|
2363
2363
|
minQuantity?: number;
|
|
2364
|
+
quantityStep?: number;
|
|
2364
2365
|
image?: string | React.ReactNode;
|
|
2365
2366
|
imageBackgroundColor?: string;
|
|
2366
2367
|
thumbnailWidth?: number;
|
|
@@ -2394,6 +2395,7 @@ type ProductDisplayCardProps = ViewProps & {
|
|
|
2394
2395
|
* @param quantityBadge - *(optional)* Show a quantity badge over the image instead
|
|
2395
2396
|
* of the picker (renders the current `quantity`). Mutually exclusive with the
|
|
2396
2397
|
* quantity picker; defaults to `false`. Used on OOB recipe and Extras cards.
|
|
2398
|
+
* @param quantityStep - *(optional)* Increment/decrement amount (default: 1)
|
|
2397
2399
|
* @param image - *(optional)* Image URL string or React element
|
|
2398
2400
|
* @param banner - *(optional)* Banner content string or React element to show below card
|
|
2399
2401
|
* @param showBanner - *(optional)* Show/hide banner
|
|
@@ -2419,6 +2421,7 @@ declare const ProductDisplayCard: React.ForwardRefExoticComponent<ViewProps & {
|
|
|
2419
2421
|
incrementDisabled?: boolean;
|
|
2420
2422
|
decrementDisabled?: boolean;
|
|
2421
2423
|
minQuantity?: number;
|
|
2424
|
+
quantityStep?: number;
|
|
2422
2425
|
image?: string | React.ReactNode;
|
|
2423
2426
|
imageBackgroundColor?: string;
|
|
2424
2427
|
thumbnailWidth?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -2361,6 +2361,7 @@ type ProductDisplayCardProps = ViewProps & {
|
|
|
2361
2361
|
incrementDisabled?: boolean;
|
|
2362
2362
|
decrementDisabled?: boolean;
|
|
2363
2363
|
minQuantity?: number;
|
|
2364
|
+
quantityStep?: number;
|
|
2364
2365
|
image?: string | React.ReactNode;
|
|
2365
2366
|
imageBackgroundColor?: string;
|
|
2366
2367
|
thumbnailWidth?: number;
|
|
@@ -2394,6 +2395,7 @@ type ProductDisplayCardProps = ViewProps & {
|
|
|
2394
2395
|
* @param quantityBadge - *(optional)* Show a quantity badge over the image instead
|
|
2395
2396
|
* of the picker (renders the current `quantity`). Mutually exclusive with the
|
|
2396
2397
|
* quantity picker; defaults to `false`. Used on OOB recipe and Extras cards.
|
|
2398
|
+
* @param quantityStep - *(optional)* Increment/decrement amount (default: 1)
|
|
2397
2399
|
* @param image - *(optional)* Image URL string or React element
|
|
2398
2400
|
* @param banner - *(optional)* Banner content string or React element to show below card
|
|
2399
2401
|
* @param showBanner - *(optional)* Show/hide banner
|
|
@@ -2419,6 +2421,7 @@ declare const ProductDisplayCard: React.ForwardRefExoticComponent<ViewProps & {
|
|
|
2419
2421
|
incrementDisabled?: boolean;
|
|
2420
2422
|
decrementDisabled?: boolean;
|
|
2421
2423
|
minQuantity?: number;
|
|
2424
|
+
quantityStep?: number;
|
|
2422
2425
|
image?: string | React.ReactNode;
|
|
2423
2426
|
imageBackgroundColor?: string;
|
|
2424
2427
|
thumbnailWidth?: number;
|
package/dist/index.js
CHANGED
|
@@ -12248,6 +12248,7 @@ var ProductDisplayCard = React66.forwardRef(
|
|
|
12248
12248
|
incrementDisabled = false,
|
|
12249
12249
|
decrementDisabled = false,
|
|
12250
12250
|
minQuantity = 1,
|
|
12251
|
+
quantityStep = 1,
|
|
12251
12252
|
image,
|
|
12252
12253
|
imageBackgroundColor,
|
|
12253
12254
|
thumbnailWidth,
|
|
@@ -12269,6 +12270,7 @@ var ProductDisplayCard = React66.forwardRef(
|
|
|
12269
12270
|
"incrementDisabled",
|
|
12270
12271
|
"decrementDisabled",
|
|
12271
12272
|
"minQuantity",
|
|
12273
|
+
"quantityStep",
|
|
12272
12274
|
"image",
|
|
12273
12275
|
"imageBackgroundColor",
|
|
12274
12276
|
"thumbnailWidth",
|
|
@@ -12324,8 +12326,8 @@ var ProductDisplayCard = React66.forwardRef(
|
|
|
12324
12326
|
handleQuantityChange(value);
|
|
12325
12327
|
}
|
|
12326
12328
|
},
|
|
12327
|
-
onIncrement: () => handleQuantityChange(quantity +
|
|
12328
|
-
onDecrement: () => handleQuantityChange(quantity -
|
|
12329
|
+
onIncrement: () => handleQuantityChange(quantity + quantityStep),
|
|
12330
|
+
onDecrement: () => handleQuantityChange(quantity - quantityStep),
|
|
12329
12331
|
min: minQuantity,
|
|
12330
12332
|
accessible: true,
|
|
12331
12333
|
accessibilityLabel: `Quantity: ${quantity}`,
|