@snowcone-app/ui 0.10.10 → 0.10.12
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.js
CHANGED
|
@@ -11194,6 +11194,7 @@ var HeroProductImage = memo3(function HeroProductImage2({
|
|
|
11194
11194
|
className: `relative overflow-hidden ${className || ""}`,
|
|
11195
11195
|
style,
|
|
11196
11196
|
"data-hero-image": "true",
|
|
11197
|
+
"data-mockup-id": actualMockupId || void 0,
|
|
11197
11198
|
"data-fit": fit,
|
|
11198
11199
|
"data-picture-failed": imgFailed ? "E_PICTURE_UNDISPLAYED" : void 0,
|
|
11199
11200
|
"data-picture-failed-src": failedSrc,
|
|
@@ -11971,6 +11972,8 @@ import { useCurrentRefinements } from "react-instantsearch";
|
|
|
11971
11972
|
import { X as LucideX3 } from "lucide-react";
|
|
11972
11973
|
import { jsx as jsx70, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
11973
11974
|
var XIcon3 = LucideX3;
|
|
11975
|
+
var MIN_PRICE = new RegExp("[\u2265>=]+\\s*(\\d+)");
|
|
11976
|
+
var MAX_PRICE = new RegExp("[\u2264<=]+\\s*(\\d+)");
|
|
11974
11977
|
function CurrentRefinements() {
|
|
11975
11978
|
const { items, refine } = useCurrentRefinements();
|
|
11976
11979
|
const formatPriceValue = (priceInCents) => {
|
|
@@ -11991,12 +11994,12 @@ function CurrentRefinements() {
|
|
|
11991
11994
|
const max = parseInt(rangeMatch[2]);
|
|
11992
11995
|
return `${formatPriceValue(min)} - ${formatPriceValue(max)}`;
|
|
11993
11996
|
}
|
|
11994
|
-
const minMatch = label.match(
|
|
11997
|
+
const minMatch = label.match(MIN_PRICE);
|
|
11995
11998
|
if (minMatch) {
|
|
11996
11999
|
const min = parseInt(minMatch[1]);
|
|
11997
12000
|
return `Min ${formatPriceValue(min)}`;
|
|
11998
12001
|
}
|
|
11999
|
-
const maxMatch = label.match(
|
|
12002
|
+
const maxMatch = label.match(MAX_PRICE);
|
|
12000
12003
|
if (maxMatch) {
|
|
12001
12004
|
const max = parseInt(maxMatch[1]);
|
|
12002
12005
|
return `Max ${formatPriceValue(max)}`;
|