@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.cjs
CHANGED
|
@@ -996,7 +996,7 @@ function FixedBundle(props) {
|
|
|
996
996
|
onClick: handleAddToCart,
|
|
997
997
|
disabled: addingToCart || oosProductIds.size > 0,
|
|
998
998
|
"aria-busy": addingToCart,
|
|
999
|
-
children: addingToCart ? "Adding
|
|
999
|
+
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"
|
|
1000
1000
|
}
|
|
1001
1001
|
)
|
|
1002
1002
|
]
|
|
@@ -2148,7 +2148,7 @@ function MixMatchBundle(props) {
|
|
|
2148
2148
|
);
|
|
2149
2149
|
if (requiredBlocked) return null;
|
|
2150
2150
|
const currency = bundle.products[0]?.priceRange.minVariantPrice.currencyCode ?? "USD";
|
|
2151
|
-
const ctaLabel = addingToCart ? "Adding
|
|
2151
|
+
const ctaLabel = addingToCart ? "Adding to cart" : bundle.widgetConfig.cta.ctaText || "Add to cart";
|
|
2152
2152
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
2153
2153
|
"div",
|
|
2154
2154
|
{
|
|
@@ -2777,7 +2777,7 @@ function VolumeBundle(props) {
|
|
|
2777
2777
|
onClick: handleAddToCart,
|
|
2778
2778
|
disabled: addingToCart || isSoldOut || selectedTierUnavailable,
|
|
2779
2779
|
"aria-busy": addingToCart,
|
|
2780
|
-
children: addingToCart ? "Adding
|
|
2780
|
+
children: addingToCart ? "Adding to cart" : isSoldOut || selectedTierUnavailable ? "Sold out" : bundle.widgetConfig.cta.ctaText ?? "Add to cart"
|
|
2781
2781
|
}
|
|
2782
2782
|
)
|
|
2783
2783
|
]
|
|
@@ -3022,7 +3022,7 @@ function BogoBundle(props) {
|
|
|
3022
3022
|
onClick: handleAddToCart,
|
|
3023
3023
|
disabled: addingToCart || oosSides > 0,
|
|
3024
3024
|
"aria-busy": addingToCart,
|
|
3025
|
-
children: addingToCart ? "Adding
|
|
3025
|
+
children: addingToCart ? "Adding to cart" : oosSides > 0 ? `${oosSides} item${oosSides === 1 ? "" : "s"} out of stock` : bundle.widgetConfig.cta.ctaText ?? "Add to cart"
|
|
3026
3026
|
}
|
|
3027
3027
|
)
|
|
3028
3028
|
]
|
|
@@ -4155,7 +4155,7 @@ function MultiStepBundle(props) {
|
|
|
4155
4155
|
);
|
|
4156
4156
|
if (requiredBlocked) return null;
|
|
4157
4157
|
const currency = bundle.products[0]?.priceRange.minVariantPrice.currencyCode ?? "USD";
|
|
4158
|
-
const ctaLabel = addingToCart ? "Adding
|
|
4158
|
+
const ctaLabel = addingToCart ? "Adding to cart" : bundle.widgetConfig.cta.ctaText || "Add to cart";
|
|
4159
4159
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
4160
4160
|
"div",
|
|
4161
4161
|
{
|