@commercetools-uikit/number-input 15.2.4 → 15.3.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.
@@ -13,7 +13,6 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  var _pt = require('prop-types');
15
15
  var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
16
- var react = require('@emotion/react');
17
16
  var utils = require('@commercetools-uikit/utils');
18
17
  var Constraints = require('@commercetools-uikit/constraints');
19
18
  var inputUtils = require('@commercetools-uikit/input-utils');
@@ -41,8 +40,6 @@ var defaultProps = {
41
40
  };
42
41
 
43
42
  var NumberInput = function NumberInput(props) {
44
- var theme = react.useTheme();
45
-
46
43
  if (!props.isReadOnly) {
47
44
  process.env.NODE_ENV !== "production" ? utils.warning(Boolean(props.onChange), 'NumberInput: `onChange` is required when input is not read only.') : void 0;
48
45
  }
@@ -63,7 +60,7 @@ var NumberInput = function NumberInput(props) {
63
60
  onFocus: props.onFocus,
64
61
  disabled: props.isDisabled,
65
62
  placeholder: props.placeholder,
66
- css: inputUtils.getInputStyles(props, theme),
63
+ css: inputUtils.getInputStyles(props),
67
64
  readOnly: props.isReadOnly,
68
65
  autoFocus: props.isAutofocussed
69
66
  }, utils.filterDataAttributes(props)), {}, {
@@ -123,7 +120,7 @@ NumberInput.hasFractionDigits = function (number) {
123
120
  var NumberInput$1 = NumberInput;
124
121
 
125
122
  // NOTE: This string will be replaced on build time with the package version.
126
- var version = "15.2.4";
123
+ var version = "15.3.0";
127
124
 
128
125
  exports["default"] = NumberInput$1;
129
126
  exports.version = version;
@@ -13,7 +13,6 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  require('prop-types');
15
15
  var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
16
- var react = require('@emotion/react');
17
16
  var utils = require('@commercetools-uikit/utils');
18
17
  var Constraints = require('@commercetools-uikit/constraints');
19
18
  var inputUtils = require('@commercetools-uikit/input-utils');
@@ -40,8 +39,6 @@ var defaultProps = {
40
39
  };
41
40
 
42
41
  var NumberInput = function NumberInput(props) {
43
- var theme = react.useTheme();
44
-
45
42
  if (!props.isReadOnly) ;
46
43
 
47
44
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
@@ -60,7 +57,7 @@ var NumberInput = function NumberInput(props) {
60
57
  onFocus: props.onFocus,
61
58
  disabled: props.isDisabled,
62
59
  placeholder: props.placeholder,
63
- css: inputUtils.getInputStyles(props, theme),
60
+ css: inputUtils.getInputStyles(props),
64
61
  readOnly: props.isReadOnly,
65
62
  autoFocus: props.isAutofocussed
66
63
  }, utils.filterDataAttributes(props)), {}, {
@@ -99,7 +96,7 @@ NumberInput.hasFractionDigits = function (number) {
99
96
  var NumberInput$1 = NumberInput;
100
97
 
101
98
  // NOTE: This string will be replaced on build time with the package version.
102
- var version = "15.2.4";
99
+ var version = "15.3.0";
103
100
 
104
101
  exports["default"] = NumberInput$1;
105
102
  exports.version = version;
@@ -9,7 +9,6 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import _pt from 'prop-types';
11
11
  import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
12
- import { useTheme } from '@emotion/react';
13
12
  import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
14
13
  import Constraints from '@commercetools-uikit/constraints';
15
14
  import { getInputStyles } from '@commercetools-uikit/input-utils';
@@ -23,8 +22,6 @@ var defaultProps = {
23
22
  };
24
23
 
25
24
  var NumberInput = function NumberInput(props) {
26
- var theme = useTheme();
27
-
28
25
  if (!props.isReadOnly) {
29
26
  process.env.NODE_ENV !== "production" ? warning(Boolean(props.onChange), 'NumberInput: `onChange` is required when input is not read only.') : void 0;
30
27
  }
@@ -45,7 +42,7 @@ var NumberInput = function NumberInput(props) {
45
42
  onFocus: props.onFocus,
46
43
  disabled: props.isDisabled,
47
44
  placeholder: props.placeholder,
48
- css: getInputStyles(props, theme),
45
+ css: getInputStyles(props),
49
46
  readOnly: props.isReadOnly,
50
47
  autoFocus: props.isAutofocussed
51
48
  }, filterDataAttributes(props)), {}, {
@@ -105,6 +102,6 @@ NumberInput.hasFractionDigits = function (number) {
105
102
  var NumberInput$1 = NumberInput;
106
103
 
107
104
  // NOTE: This string will be replaced on build time with the package version.
108
- var version = "15.2.4";
105
+ var version = "15.3.0";
109
106
 
110
107
  export { NumberInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/number-input",
3
3
  "description": "A controlled input component for numbers with validation states.",
4
- "version": "15.2.4",
4
+ "version": "15.3.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,10 +21,10 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.19.0",
23
23
  "@babel/runtime-corejs3": "^7.19.1",
24
- "@commercetools-uikit/constraints": "15.2.4",
25
- "@commercetools-uikit/design-system": "15.2.4",
26
- "@commercetools-uikit/input-utils": "15.2.4",
27
- "@commercetools-uikit/utils": "15.2.4",
24
+ "@commercetools-uikit/constraints": "15.3.0",
25
+ "@commercetools-uikit/design-system": "15.3.0",
26
+ "@commercetools-uikit/input-utils": "15.3.0",
27
+ "@commercetools-uikit/utils": "15.3.0",
28
28
  "@emotion/react": "^11.4.0",
29
29
  "@emotion/styled": "^11.3.0",
30
30
  "prop-types": "15.8.1"