@commercetools-uikit/number-input 14.0.1 → 14.0.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.
|
@@ -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
|
-
require('react');
|
|
17
16
|
var react = require('@emotion/react');
|
|
18
17
|
var utils = require('@commercetools-uikit/utils');
|
|
19
18
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
@@ -124,7 +123,7 @@ NumberInput.hasFractionDigits = function (number) {
|
|
|
124
123
|
var NumberInput$1 = NumberInput;
|
|
125
124
|
|
|
126
125
|
// NOTE: This string will be replaced on build time with the package version.
|
|
127
|
-
var version = "14.0.
|
|
126
|
+
var version = "14.0.2";
|
|
128
127
|
|
|
129
128
|
exports["default"] = NumberInput$1;
|
|
130
129
|
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
|
-
require('react');
|
|
17
16
|
var react = require('@emotion/react');
|
|
18
17
|
var utils = require('@commercetools-uikit/utils');
|
|
19
18
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
@@ -100,7 +99,7 @@ NumberInput.hasFractionDigits = function (number) {
|
|
|
100
99
|
var NumberInput$1 = NumberInput;
|
|
101
100
|
|
|
102
101
|
// NOTE: This string will be replaced on build time with the package version.
|
|
103
|
-
var version = "14.0.
|
|
102
|
+
var version = "14.0.2";
|
|
104
103
|
|
|
105
104
|
exports["default"] = NumberInput$1;
|
|
106
105
|
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 'react';
|
|
13
12
|
import { useTheme } from '@emotion/react';
|
|
14
13
|
import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
|
|
15
14
|
import Constraints from '@commercetools-uikit/constraints';
|
|
@@ -106,6 +105,6 @@ NumberInput.hasFractionDigits = function (number) {
|
|
|
106
105
|
var NumberInput$1 = NumberInput;
|
|
107
106
|
|
|
108
107
|
// NOTE: This string will be replaced on build time with the package version.
|
|
109
|
-
var version = "14.0.
|
|
108
|
+
var version = "14.0.2";
|
|
110
109
|
|
|
111
110
|
export { NumberInput$1 as default, version };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEventHandler, FocusEventHandler } from 'react';
|
|
1
|
+
import type { ChangeEventHandler, FocusEventHandler } from 'react';
|
|
2
2
|
export declare type TNumberInputProps = {
|
|
3
3
|
id?: string;
|
|
4
4
|
name?: string;
|
|
@@ -10,9 +10,9 @@ export declare type TNumberInputProps = {
|
|
|
10
10
|
min?: number;
|
|
11
11
|
max?: number;
|
|
12
12
|
step?: number | 'any';
|
|
13
|
-
onChange?: ChangeEventHandler
|
|
14
|
-
onBlur?: FocusEventHandler
|
|
15
|
-
onFocus?: FocusEventHandler
|
|
13
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
14
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
15
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
16
16
|
isAutofocussed?: boolean;
|
|
17
17
|
isDisabled?: boolean;
|
|
18
18
|
isReadOnly?: boolean;
|
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": "14.0.
|
|
4
|
+
"version": "14.0.2",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@babel/runtime-corejs3": "^7.17.2",
|
|
24
24
|
"@commercetools-uikit/constraints": "14.0.1",
|
|
25
25
|
"@commercetools-uikit/design-system": "14.0.0",
|
|
26
|
-
"@commercetools-uikit/input-utils": "14.0.
|
|
26
|
+
"@commercetools-uikit/input-utils": "14.0.2",
|
|
27
27
|
"@commercetools-uikit/utils": "14.0.1",
|
|
28
28
|
"@emotion/react": "^11.4.0",
|
|
29
29
|
"@emotion/styled": "^11.3.0",
|