@simplybusiness/mobius 5.32.1 → 5.32.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.32.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 07312b5: Suppress number input spin buttons via a prop
8
+ - Updated dependencies [23d5f93]
9
+ - Updated dependencies [e1038a9]
10
+ - Updated dependencies [4b2f6d0]
11
+ - @simplybusiness/icons@4.32.0
12
+
3
13
  ## 5.32.1
4
14
 
5
15
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -3278,8 +3278,18 @@ var import_dedupe36 = __toESM(require("classnames/dedupe"));
3278
3278
  var import_react57 = require("react");
3279
3279
  var import_jsx_runtime45 = require("react/jsx-runtime");
3280
3280
  var NumberField = (0, import_react57.forwardRef)((props, ref) => {
3281
- const { minValue, maxValue, step, defaultValue, className, ...otherProps } = props;
3282
- const containerClasses = (0, import_dedupe36.default)("mobius-number-field", className);
3281
+ const {
3282
+ minValue,
3283
+ maxValue,
3284
+ step,
3285
+ defaultValue,
3286
+ hideSpinButtons,
3287
+ className,
3288
+ ...otherProps
3289
+ } = props;
3290
+ const containerClasses = (0, import_dedupe36.default)("mobius-number-field", className, {
3291
+ "--hide-spin-buttons": hideSpinButtons
3292
+ });
3283
3293
  const handleBeforeInput = (event) => {
3284
3294
  const { data } = event.nativeEvent;
3285
3295
  if (step != null && Number.isInteger(step) && data === ".") {