@loafmarkets/ui 0.1.37 → 0.1.39
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.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9808,7 +9808,7 @@ function OrderPanel({
|
|
|
9808
9808
|
"input",
|
|
9809
9809
|
{
|
|
9810
9810
|
type: "text",
|
|
9811
|
-
inputMode: "
|
|
9811
|
+
inputMode: "decimal",
|
|
9812
9812
|
value: isPayInputFocused ? payInputValue : orderTotal.toLocaleString(),
|
|
9813
9813
|
onFocus: (e) => {
|
|
9814
9814
|
setIsPayInputFocused(true);
|
|
@@ -9816,7 +9816,12 @@ function OrderPanel({
|
|
|
9816
9816
|
e.target.select();
|
|
9817
9817
|
},
|
|
9818
9818
|
onBlur: handlePayBlur,
|
|
9819
|
-
onChange: (e) =>
|
|
9819
|
+
onChange: (e) => {
|
|
9820
|
+
const v = e.target.value;
|
|
9821
|
+
if (v === "" || /^\d*\.?\d{0,2}$/.test(v)) {
|
|
9822
|
+
setPayInputValue(v);
|
|
9823
|
+
}
|
|
9824
|
+
},
|
|
9820
9825
|
onKeyDown: (e) => {
|
|
9821
9826
|
if (e.key === "Enter") {
|
|
9822
9827
|
e.target.blur();
|
|
@@ -9882,7 +9887,12 @@ function OrderPanel({
|
|
|
9882
9887
|
e.target.select();
|
|
9883
9888
|
},
|
|
9884
9889
|
onBlur: handleReceiveBlur,
|
|
9885
|
-
onChange: (e) =>
|
|
9890
|
+
onChange: (e) => {
|
|
9891
|
+
const v = e.target.value;
|
|
9892
|
+
if (v === "" || /^\d+$/.test(v)) {
|
|
9893
|
+
setReceiveInputValue(v);
|
|
9894
|
+
}
|
|
9895
|
+
},
|
|
9886
9896
|
onKeyDown: (e) => {
|
|
9887
9897
|
if (e.key === "Enter") {
|
|
9888
9898
|
e.target.blur();
|
|
@@ -14107,6 +14117,6 @@ function useToast() {
|
|
|
14107
14117
|
return ctx;
|
|
14108
14118
|
}
|
|
14109
14119
|
|
|
14110
|
-
export { Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Header, HousePositionSlider, HousePositionSliderMobile, LoafLiquidityBadge, LoafLiquidityLogo, LoginPopup, MobileTradeNav, Orderbook, owner_booking_default as OwnerBooking, PaymentPopup, PortfolioActivityPanel, PortfolioSummary, PriceChart, PropertyBuy, PropertyCompareBar, PropertyDocuments, PropertyHeroHeader, PropertyHistory, PropertyInspectionTimes, PropertyNewsUpdates, PropertyOffers, PropertyOverview, PropertyPhotoGallery, PropertySubheader, PropertyTour, PropertyValuation, ToastProvider, TradeConfirmationModal, TradingSlider, YourOrders, badgeVariants, buttonVariants, useToast };
|
|
14120
|
+
export { AssetSelectorBar, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Header, HousePositionSlider, HousePositionSliderMobile, LoafLiquidityBadge, LoafLiquidityLogo, LoginPopup, MobileTradeNav, Orderbook, owner_booking_default as OwnerBooking, PaymentPopup, PortfolioActivityPanel, PortfolioSummary, PriceChart, PropertyBuy, PropertyCompareBar, PropertyDocuments, PropertyHeroHeader, PropertyHistory, PropertyInspectionTimes, PropertyNewsUpdates, PropertyOffers, PropertyOverview, PropertyPhotoGallery, PropertySubheader, PropertyTour, PropertyValuation, ToastProvider, TradeConfirmationModal, TradingSlider, YourOrders, badgeVariants, buttonVariants, useToast };
|
|
14111
14121
|
//# sourceMappingURL=index.mjs.map
|
|
14112
14122
|
//# sourceMappingURL=index.mjs.map
|