myoperator-ui 0.0.183 → 0.0.185
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 +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2234,11 +2234,11 @@ const SelectField = React.forwardRef<HTMLButtonElement, SelectFieldProps>(
|
|
|
2234
2234
|
// no-op.
|
|
2235
2235
|
const handleItemClick = React.useCallback(
|
|
2236
2236
|
(option: SelectOption) => {
|
|
2237
|
-
if (option.value === value
|
|
2238
|
-
|
|
2237
|
+
if (option.value === value) {
|
|
2238
|
+
handleValueChange(option.value);
|
|
2239
2239
|
}
|
|
2240
2240
|
},
|
|
2241
|
-
[value,
|
|
2241
|
+
[value, handleValueChange]
|
|
2242
2242
|
);
|
|
2243
2243
|
|
|
2244
2244
|
// Derive state from props
|
|
@@ -9788,6 +9788,11 @@ const PricingCard = React.forwardRef<HTMLDivElement, PricingCardProps>(
|
|
|
9788
9788
|
const buttonText =
|
|
9789
9789
|
ctaText || (isCurrentPlan ? "Current plan" : "Select plan");
|
|
9790
9790
|
|
|
9791
|
+
// Strip trailing decimal zeros: "500000000.000" \u2192 "500000000", "5,000.50" \u2192 "5,000.5"
|
|
9792
|
+
const cleanPrice = price.includes(".")
|
|
9793
|
+
? price.replace(/0+$/, "").replace(/\\.$/, "")
|
|
9794
|
+
: price;
|
|
9795
|
+
|
|
9791
9796
|
return (
|
|
9792
9797
|
<div
|
|
9793
9798
|
ref={ref}
|
|
@@ -9823,7 +9828,7 @@ const PricingCard = React.forwardRef<HTMLDivElement, PricingCardProps>(
|
|
|
9823
9828
|
<div className="flex flex-col gap-2.5">
|
|
9824
9829
|
<div className="flex items-end gap-1">
|
|
9825
9830
|
<span className="text-4xl leading-[44px] text-semantic-text-primary">
|
|
9826
|
-
\u20B9{
|
|
9831
|
+
\u20B9{cleanPrice}
|
|
9827
9832
|
</span>
|
|
9828
9833
|
<span className="text-sm text-semantic-text-muted tracking-[0.035px]">
|
|
9829
9834
|
{period}
|