@wix/headless-stores 0.0.71 → 0.0.72
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/cjs/dist/react/Product.js +15 -15
- package/dist/react/Product.js +15 -15
- package/package.json +1 -1
|
@@ -692,11 +692,11 @@ export const ProductActionAddToCart = React.forwardRef((props, ref) => {
|
|
|
692
692
|
const onClick = addToCart;
|
|
693
693
|
const disabled = !canAddToCart || isLoading;
|
|
694
694
|
if (asChild && children) {
|
|
695
|
-
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionAddToCart, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
695
|
+
return (_jsx(Commerce.Actions.AddToCart, { lineItems: lineItems, asChild: asChild, children: _jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionAddToCart, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
696
|
+
disabled,
|
|
697
|
+
isLoading,
|
|
698
|
+
onClick,
|
|
699
|
+
} }) }));
|
|
700
700
|
}
|
|
701
701
|
return (_jsx(Commerce.Actions.AddToCart, { ref: ref, label: label, lineItems: lineItems, className: className, disabled: disabled, loadingState: loadingState, "data-testid": TestIds.productActionAddToCart, "data-in-progress": isLoading }));
|
|
702
702
|
} }));
|
|
@@ -714,11 +714,11 @@ export const ProductActionBuyNow = React.forwardRef((props, ref) => {
|
|
|
714
714
|
const onClick = buyNow;
|
|
715
715
|
const disabled = !canAddToCart || isLoading;
|
|
716
716
|
if (asChild && children) {
|
|
717
|
-
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionBuyNow, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
717
|
+
return (_jsx(Commerce.Actions.BuyNow, { lineItems: lineItems, asChild: asChild, children: _jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionBuyNow, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
718
|
+
disabled,
|
|
719
|
+
isLoading,
|
|
720
|
+
onClick,
|
|
721
|
+
} }) }));
|
|
722
722
|
}
|
|
723
723
|
return (_jsx(Commerce.Actions.BuyNow, { ref: ref, label: label, lineItems: lineItems, className: className, disabled: disabled, loadingState: loadingState, "data-testid": TestIds.productActionBuyNow, "data-in-progress": isLoading }));
|
|
724
724
|
} }));
|
|
@@ -737,11 +737,11 @@ export const ProductActionPreOrder = React.forwardRef((props, ref) => {
|
|
|
737
737
|
const onClick = addToCart;
|
|
738
738
|
const disabled = !canPreOrder;
|
|
739
739
|
if (asChild && children) {
|
|
740
|
-
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionPreOrder, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
740
|
+
return (_jsx(Commerce.Actions.AddToCart, { lineItems: lineItems, asChild: asChild, children: _jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionPreOrder, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
741
|
+
disabled,
|
|
742
|
+
isLoading,
|
|
743
|
+
onClick,
|
|
744
|
+
} }) }));
|
|
745
745
|
}
|
|
746
746
|
return (_jsx(Commerce.Actions.AddToCart, { ref: ref, label: label, lineItems: lineItems, className: className, disabled: disabled, loadingState: loadingState, "data-testid": TestIds.productActionPreOrder, "data-in-progress": isLoading }));
|
|
747
747
|
} }));
|
package/dist/react/Product.js
CHANGED
|
@@ -692,11 +692,11 @@ export const ProductActionAddToCart = React.forwardRef((props, ref) => {
|
|
|
692
692
|
const onClick = addToCart;
|
|
693
693
|
const disabled = !canAddToCart || isLoading;
|
|
694
694
|
if (asChild && children) {
|
|
695
|
-
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionAddToCart, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
695
|
+
return (_jsx(Commerce.Actions.AddToCart, { lineItems: lineItems, asChild: asChild, children: _jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionAddToCart, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
696
|
+
disabled,
|
|
697
|
+
isLoading,
|
|
698
|
+
onClick,
|
|
699
|
+
} }) }));
|
|
700
700
|
}
|
|
701
701
|
return (_jsx(Commerce.Actions.AddToCart, { ref: ref, label: label, lineItems: lineItems, className: className, disabled: disabled, loadingState: loadingState, "data-testid": TestIds.productActionAddToCart, "data-in-progress": isLoading }));
|
|
702
702
|
} }));
|
|
@@ -714,11 +714,11 @@ export const ProductActionBuyNow = React.forwardRef((props, ref) => {
|
|
|
714
714
|
const onClick = buyNow;
|
|
715
715
|
const disabled = !canAddToCart || isLoading;
|
|
716
716
|
if (asChild && children) {
|
|
717
|
-
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionBuyNow, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
717
|
+
return (_jsx(Commerce.Actions.BuyNow, { lineItems: lineItems, asChild: asChild, children: _jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionBuyNow, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
718
|
+
disabled,
|
|
719
|
+
isLoading,
|
|
720
|
+
onClick,
|
|
721
|
+
} }) }));
|
|
722
722
|
}
|
|
723
723
|
return (_jsx(Commerce.Actions.BuyNow, { ref: ref, label: label, lineItems: lineItems, className: className, disabled: disabled, loadingState: loadingState, "data-testid": TestIds.productActionBuyNow, "data-in-progress": isLoading }));
|
|
724
724
|
} }));
|
|
@@ -737,11 +737,11 @@ export const ProductActionPreOrder = React.forwardRef((props, ref) => {
|
|
|
737
737
|
const onClick = addToCart;
|
|
738
738
|
const disabled = !canPreOrder;
|
|
739
739
|
if (asChild && children) {
|
|
740
|
-
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionPreOrder, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
740
|
+
return (_jsx(Commerce.Actions.AddToCart, { lineItems: lineItems, asChild: asChild, children: _jsx(AsChildSlot, { ref: ref, asChild: asChild, className: className, "data-testid": TestIds.productActionPreOrder, "data-in-progress": isLoading, customElement: children, customElementProps: {
|
|
741
|
+
disabled,
|
|
742
|
+
isLoading,
|
|
743
|
+
onClick,
|
|
744
|
+
} }) }));
|
|
745
745
|
}
|
|
746
746
|
return (_jsx(Commerce.Actions.AddToCart, { ref: ref, label: label, lineItems: lineItems, className: className, disabled: disabled, loadingState: loadingState, "data-testid": TestIds.productActionPreOrder, "data-in-progress": isLoading }));
|
|
747
747
|
} }));
|