@lime-bundles/react 7.5.1 → 7.5.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/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -953,7 +953,7 @@ function FixedBundle(props) {
|
|
|
953
953
|
onClick: handleAddToCart,
|
|
954
954
|
disabled: addingToCart || oosProductIds.size > 0,
|
|
955
955
|
"aria-busy": addingToCart,
|
|
956
|
-
children: addingToCart ? "Adding
|
|
956
|
+
children: addingToCart ? "Adding to cart" : oosProductIds.size > 0 ? `${oosProductIds.size} item${oosProductIds.size === 1 ? "" : "s"} out of stock` : bundle.widgetConfig.cta.ctaText ?? "Add to cart"
|
|
957
957
|
}
|
|
958
958
|
)
|
|
959
959
|
]
|
|
@@ -2122,7 +2122,7 @@ function MixMatchBundle(props) {
|
|
|
2122
2122
|
);
|
|
2123
2123
|
if (requiredBlocked) return null;
|
|
2124
2124
|
const currency = bundle.products[0]?.priceRange.minVariantPrice.currencyCode ?? "USD";
|
|
2125
|
-
const ctaLabel = addingToCart ? "Adding
|
|
2125
|
+
const ctaLabel = addingToCart ? "Adding to cart" : bundle.widgetConfig.cta.ctaText || "Add to cart";
|
|
2126
2126
|
return /* @__PURE__ */ jsxs6(
|
|
2127
2127
|
"div",
|
|
2128
2128
|
{
|
|
@@ -2763,7 +2763,7 @@ function VolumeBundle(props) {
|
|
|
2763
2763
|
onClick: handleAddToCart,
|
|
2764
2764
|
disabled: addingToCart || isSoldOut || selectedTierUnavailable,
|
|
2765
2765
|
"aria-busy": addingToCart,
|
|
2766
|
-
children: addingToCart ? "Adding
|
|
2766
|
+
children: addingToCart ? "Adding to cart" : isSoldOut || selectedTierUnavailable ? "Sold out" : bundle.widgetConfig.cta.ctaText ?? "Add to cart"
|
|
2767
2767
|
}
|
|
2768
2768
|
)
|
|
2769
2769
|
]
|
|
@@ -3012,7 +3012,7 @@ function BogoBundle(props) {
|
|
|
3012
3012
|
onClick: handleAddToCart,
|
|
3013
3013
|
disabled: addingToCart || oosSides > 0,
|
|
3014
3014
|
"aria-busy": addingToCart,
|
|
3015
|
-
children: addingToCart ? "Adding
|
|
3015
|
+
children: addingToCart ? "Adding to cart" : oosSides > 0 ? `${oosSides} item${oosSides === 1 ? "" : "s"} out of stock` : bundle.widgetConfig.cta.ctaText ?? "Add to cart"
|
|
3016
3016
|
}
|
|
3017
3017
|
)
|
|
3018
3018
|
]
|
|
@@ -4165,7 +4165,7 @@ function MultiStepBundle(props) {
|
|
|
4165
4165
|
);
|
|
4166
4166
|
if (requiredBlocked) return null;
|
|
4167
4167
|
const currency = bundle.products[0]?.priceRange.minVariantPrice.currencyCode ?? "USD";
|
|
4168
|
-
const ctaLabel = addingToCart ? "Adding
|
|
4168
|
+
const ctaLabel = addingToCart ? "Adding to cart" : bundle.widgetConfig.cta.ctaText || "Add to cart";
|
|
4169
4169
|
return /* @__PURE__ */ jsxs10(
|
|
4170
4170
|
"div",
|
|
4171
4171
|
{
|