@semcore/input-number 16.0.11 → 17.0.0-prerelease.18
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 +6 -0
- package/README.md +4 -4
- package/lib/cjs/InputNumber.js +277 -306
- package/lib/cjs/InputNumber.js.map +1 -1
- package/lib/cjs/buttons.js +19 -21
- package/lib/cjs/buttons.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +6 -6
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +16 -16
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/InputNumber.js +265 -294
- package/lib/es6/InputNumber.js.map +1 -1
- package/lib/es6/buttons.js +16 -20
- package/lib/es6/buttons.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +15 -15
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/InputNumber.mjs +271 -254
- package/lib/esm/buttons.mjs +16 -20
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +1 -1
- package/lib/types/index.d.ts +1 -9
- package/package.json +5 -5
package/lib/esm/buttons.mjs
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, /* @__PURE__ */ React.createElement("path", {
|
|
19
|
-
d: "M0,0l10,0l-5,5Z"
|
|
20
|
-
}));
|
|
21
|
-
};
|
|
2
|
+
const IncrementIcon = () => /* @__PURE__ */ React.createElement("svg", {
|
|
3
|
+
fill: "currentColor",
|
|
4
|
+
width: "10",
|
|
5
|
+
height: "5",
|
|
6
|
+
viewBox: "0 0 10 5"
|
|
7
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
8
|
+
d: "M0,5l5,-5l5,5Z"
|
|
9
|
+
}));
|
|
10
|
+
const DecrementIcon = () => /* @__PURE__ */ React.createElement("svg", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
width: "10",
|
|
13
|
+
height: "5",
|
|
14
|
+
viewBox: "0 0 10 5"
|
|
15
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
16
|
+
d: "M0,0l10,0l-5,5Z"
|
|
17
|
+
}));
|
|
22
18
|
export {
|
|
23
19
|
DecrementIcon,
|
|
24
20
|
IncrementIcon
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { Intergalactic, PropGetterFn
|
|
1
|
+
import type { Intergalactic, PropGetterFn } from '@semcore/core';
|
|
2
2
|
import type { InputAddonProps, InputProps, InputValueProps } from '@semcore/input';
|
|
3
3
|
import type React from 'react';
|
|
4
4
|
|
|
5
5
|
export type InputNumberValue = string;
|
|
6
6
|
export type InputNumberSize = 'm' | 'l';
|
|
7
7
|
|
|
8
|
-
/** @deprecated */
|
|
9
|
-
export interface IInputNumberProps extends InputNumberProps, UnknownProperties {}
|
|
10
8
|
export type InputNumberProps = InputProps & {
|
|
11
9
|
/** Input size
|
|
12
10
|
* @default m
|
|
@@ -18,8 +16,6 @@ export type InputNumberProps = InputProps & {
|
|
|
18
16
|
locale?: string;
|
|
19
17
|
};
|
|
20
18
|
|
|
21
|
-
/** @deprecated */
|
|
22
|
-
export interface IInputNumberValueProps extends InputNumberValueProps, UnknownProperties {}
|
|
23
19
|
export type InputNumberValueProps = InputValueProps & {
|
|
24
20
|
/** Minimum value
|
|
25
21
|
* @default Number.MIN_SAFE_INTEGER
|
|
@@ -39,8 +35,6 @@ export type InputNumberValueProps = InputValueProps & {
|
|
|
39
35
|
onChange?: (value: InputNumberValue, event?: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
40
36
|
};
|
|
41
37
|
|
|
42
|
-
/** @deprecated */
|
|
43
|
-
export interface IInputNumberControlsProps extends InputNumberControlsProps, UnknownProperties {}
|
|
44
38
|
export type InputNumberControlsProps = InputAddonProps & {
|
|
45
39
|
/** Always displays controls (steppers)
|
|
46
40
|
* @default false
|
|
@@ -48,8 +42,6 @@ export type InputNumberControlsProps = InputAddonProps & {
|
|
|
48
42
|
showControls?: boolean;
|
|
49
43
|
};
|
|
50
44
|
|
|
51
|
-
/** @deprecated */
|
|
52
|
-
export interface IInputNumberCtx extends InputNumberCtx, UnknownProperties {}
|
|
53
45
|
export type InputNumberCtx = {
|
|
54
46
|
getValueProps: PropGetterFn;
|
|
55
47
|
getControlsProps: PropGetterFn;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/input-number",
|
|
3
3
|
"description": "Semrush InputNumber Component",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "17.0.0-prerelease.18",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/input": "16.1.
|
|
18
|
-
"@semcore/flex-box": "16.0.11"
|
|
17
|
+
"@semcore/input": "^16.1.2-prerelease.18"
|
|
19
18
|
},
|
|
20
19
|
"peerDependencies": {
|
|
21
|
-
"@semcore/base-components": "^
|
|
20
|
+
"@semcore/base-components": "^17.0.0-prerelease.18"
|
|
22
21
|
},
|
|
23
22
|
"repository": {
|
|
24
23
|
"type": "git",
|
|
@@ -26,7 +25,8 @@
|
|
|
26
25
|
"directory": "semcore/input-number"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
|
-
"@semcore/core": "
|
|
28
|
+
"@semcore/core": "17.0.0-prerelease.18",
|
|
29
|
+
"@semcore/base-components": "17.0.0-prerelease.18",
|
|
30
30
|
"@semcore/testing-utils": "1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|