@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.
- package/dist/components/utils/onWheelBlur.d.ts +2 -0
- package/dist/react-sdk.cjs.development.js +8 -4
- package/dist/react-sdk.cjs.development.js.map +1 -1
- package/dist/react-sdk.cjs.production.min.js +1 -1
- package/dist/react-sdk.cjs.production.min.js.map +1 -1
- package/dist/react-sdk.esm.js +8 -4
- package/dist/react-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/checkout/steps/addons/CheckoutAddonsStep.tsx +2 -0
- package/src/components/checkout/steps/plan/CheckoutChargeList.tsx +2 -1
- package/src/components/common/VolumePerUnitInput.tsx +2 -0
- package/src/components/utils/onWheelBlur.ts +3 -0
|
@@ -1445,6 +1445,10 @@ function ContentLoadingSkeleton() {
|
|
|
1445
1445
|
})))));
|
|
1446
1446
|
}
|
|
1447
1447
|
|
|
1448
|
+
var ON_WHEEL_BLUR = function ON_WHEEL_BLUR(e) {
|
|
1449
|
+
return e.target.blur();
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1448
1452
|
function VolumePerUnitInput(_ref) {
|
|
1449
1453
|
var width = _ref.width,
|
|
1450
1454
|
tierUnits = _ref.tierUnits,
|
|
@@ -1452,6 +1456,7 @@ function VolumePerUnitInput(_ref) {
|
|
|
1452
1456
|
handleChange = _ref.handleChange;
|
|
1453
1457
|
return React__default.createElement(InputField, {
|
|
1454
1458
|
type: "number",
|
|
1459
|
+
onWheel: ON_WHEEL_BLUR,
|
|
1455
1460
|
fullWidth: true,
|
|
1456
1461
|
sx: {
|
|
1457
1462
|
minHeight: '46px',
|
|
@@ -13026,6 +13031,7 @@ function AddonListItem(_ref) {
|
|
|
13026
13031
|
}, "Undo")), isAdded && React__default.createElement(React__default.Fragment, null, React__default.createElement(InputField, {
|
|
13027
13032
|
id: addon.id + "-input",
|
|
13028
13033
|
type: "number",
|
|
13034
|
+
onWheel: ON_WHEEL_BLUR,
|
|
13029
13035
|
sx: {
|
|
13030
13036
|
width: 120,
|
|
13031
13037
|
marginX: 2
|
|
@@ -13581,6 +13587,7 @@ function PlanCharge(_ref) {
|
|
|
13581
13587
|
},
|
|
13582
13588
|
id: featureId + "-input",
|
|
13583
13589
|
type: "number",
|
|
13590
|
+
onWheel: ON_WHEEL_BLUR,
|
|
13584
13591
|
error: !isValid,
|
|
13585
13592
|
helperText: !isValid ? getValidationText(charge, billableFeature == null ? void 0 : billableFeature.quantity) : undefined,
|
|
13586
13593
|
FormHelperTextProps: {
|
|
@@ -13589,10 +13596,7 @@ function PlanCharge(_ref) {
|
|
|
13589
13596
|
}
|
|
13590
13597
|
},
|
|
13591
13598
|
value: (_billableFeature$quan = billableFeature == null ? void 0 : billableFeature.quantity) != null ? _billableFeature$quan : '',
|
|
13592
|
-
onChange: handleQuantityChange
|
|
13593
|
-
onWheel: function onWheel(e) {
|
|
13594
|
-
return e.target.blur();
|
|
13595
|
-
}
|
|
13599
|
+
onChange: handleQuantityChange
|
|
13596
13600
|
});
|
|
13597
13601
|
}
|
|
13598
13602
|
|