@snowcone-app/ui 0.10.11 → 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
@@ -11972,6 +11972,8 @@ import { useCurrentRefinements } from "react-instantsearch";
11972
11972
  import { X as LucideX3 } from "lucide-react";
11973
11973
  import { jsx as jsx70, jsxs as jsxs46 } from "react/jsx-runtime";
11974
11974
  var XIcon3 = LucideX3;
11975
+ var MIN_PRICE = new RegExp("[\u2265>=]+\\s*(\\d+)");
11976
+ var MAX_PRICE = new RegExp("[\u2264<=]+\\s*(\\d+)");
11975
11977
  function CurrentRefinements() {
11976
11978
  const { items, refine } = useCurrentRefinements();
11977
11979
  const formatPriceValue = (priceInCents) => {
@@ -11992,12 +11994,12 @@ function CurrentRefinements() {
11992
11994
  const max = parseInt(rangeMatch[2]);
11993
11995
  return `${formatPriceValue(min)} - ${formatPriceValue(max)}`;
11994
11996
  }
11995
- const minMatch = label.match(/[≥>=]+\s*(\d+)/);
11997
+ const minMatch = label.match(MIN_PRICE);
11996
11998
  if (minMatch) {
11997
11999
  const min = parseInt(minMatch[1]);
11998
12000
  return `Min ${formatPriceValue(min)}`;
11999
12001
  }
12000
- const maxMatch = label.match(/[≤<=]+\s*(\d+)/);
12002
+ const maxMatch = label.match(MAX_PRICE);
12001
12003
  if (maxMatch) {
12002
12004
  const max = parseInt(maxMatch[1]);
12003
12005
  return `Max ${formatPriceValue(max)}`;