@stigg/react-sdk 5.6.0 → 5.7.0

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.
@@ -1509,6 +1509,10 @@ function ContentLoadingSkeleton() {
1509
1509
  })))));
1510
1510
  }
1511
1511
 
1512
+ var ON_WHEEL_BLUR = function ON_WHEEL_BLUR(e) {
1513
+ return e.target.blur();
1514
+ };
1515
+
1512
1516
  function VolumePerUnitInput(_ref) {
1513
1517
  var width = _ref.width,
1514
1518
  tierUnits = _ref.tierUnits,
@@ -1516,6 +1520,7 @@ function VolumePerUnitInput(_ref) {
1516
1520
  handleChange = _ref.handleChange;
1517
1521
  return React__default.createElement(InputField, {
1518
1522
  type: "number",
1523
+ onWheel: ON_WHEEL_BLUR,
1519
1524
  fullWidth: true,
1520
1525
  sx: {
1521
1526
  minHeight: '46px',
@@ -13422,6 +13427,7 @@ function AddonListItem(_ref) {
13422
13427
  }, "Undo")), isAdded && React__default.createElement(React__default.Fragment, null, React__default.createElement(InputField, {
13423
13428
  id: addon.id + "-input",
13424
13429
  type: "number",
13430
+ onWheel: ON_WHEEL_BLUR,
13425
13431
  sx: {
13426
13432
  width: 120,
13427
13433
  marginX: 2
@@ -14017,6 +14023,7 @@ function PlanCharge(_ref) {
14017
14023
  },
14018
14024
  id: featureId + "-input",
14019
14025
  type: "number",
14026
+ onWheel: ON_WHEEL_BLUR,
14020
14027
  error: !isValid,
14021
14028
  helperText: !isValid ? getValidationText(charge, billableFeature == null ? void 0 : billableFeature.quantity) : undefined,
14022
14029
  FormHelperTextProps: {
@@ -14025,10 +14032,7 @@ function PlanCharge(_ref) {
14025
14032
  }
14026
14033
  },
14027
14034
  value: (_billableFeature$quan = billableFeature == null ? void 0 : billableFeature.quantity) != null ? _billableFeature$quan : '',
14028
- onChange: handleQuantityChange,
14029
- onWheel: function onWheel(e) {
14030
- return e.target.blur();
14031
- }
14035
+ onChange: handleQuantityChange
14032
14036
  });
14033
14037
  }
14034
14038