@synerise/ds-input-number 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/dist/InputNumber.js +1 -3
- package/dist/InputNumber.styles.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [0.6.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@0.6.2...@synerise/ds-input-number@0.6.3) (2021-11-22)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @synerise/ds-input-number
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
6
14
|
## [0.6.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@0.6.1...@synerise/ds-input-number@0.6.2) (2021-11-16)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-input-number
|
package/dist/InputNumber.js
CHANGED
@@ -2,8 +2,6 @@ var _excluded = ["label", "description", "errorText", "raw", "error", "prefixel"
|
|
2
2
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4
4
|
|
5
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
6
|
-
|
7
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
8
6
|
|
9
7
|
import * as React from 'react';
|
@@ -21,7 +19,7 @@ var InputNumber = function InputNumber(_ref) {
|
|
21
19
|
prefixel = _ref.prefixel,
|
22
20
|
suffixel = _ref.suffixel,
|
23
21
|
style = _ref.style,
|
24
|
-
antdProps =
|
22
|
+
antdProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
25
23
|
|
26
24
|
var id = React.useMemo(function () {
|
27
25
|
return uuid();
|
@@ -6,7 +6,7 @@ export var AntdInputNumber = styled(BaseAntInputNumber).withConfig({
|
|
6
6
|
})(["color:", ";input,input:focus{", ";}"], function (props) {
|
7
7
|
return props.theme.palette['grey-700'];
|
8
8
|
}, function (props) {
|
9
|
-
return !!props.error && "\n background: "
|
9
|
+
return !!props.error && "\n background: " + props.theme.palette['red-050'] + ";\n border: 0;\n ";
|
10
10
|
});
|
11
11
|
export var ContentAbove = styled.div.withConfig({
|
12
12
|
displayName: "InputNumberstyles__ContentAbove",
|
@@ -52,7 +52,7 @@ export var InputNumberWrapper = styled.div.withConfig({
|
|
52
52
|
})(["display:flex;align-items:center;", ",", "{background:", ";display:flex;align-items:center;align-self:stretch;padding:0 12px;}", " ", ""], Prefixel, Suffixel, function (props) {
|
53
53
|
return props.theme.palette['grey-050'];
|
54
54
|
}, function (props) {
|
55
|
-
return props.prefixel && "\n "
|
55
|
+
return props.prefixel && "\n " + AntdInputNumber + " {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n ";
|
56
56
|
}, function (props) {
|
57
|
-
return props.suffixel && "\n "
|
57
|
+
return props.suffixel && "\n " + AntdInputNumber + " {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n ";
|
58
58
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@synerise/ds-input-number",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.3",
|
4
4
|
"description": "Input-Number UI Component for the Synerise Design System",
|
5
5
|
"license": "ISC",
|
6
6
|
"repository": "Synerise/synerise-design",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
],
|
33
33
|
"types": "dist/index.d.ts",
|
34
34
|
"dependencies": {
|
35
|
-
"@synerise/ds-utils": "^0.21.
|
35
|
+
"@synerise/ds-utils": "^0.21.3",
|
36
36
|
"uuid": "^7.0.2"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
@@ -43,5 +43,5 @@
|
|
43
43
|
"devDependencies": {
|
44
44
|
"@types/uuid": "7.0.0"
|
45
45
|
},
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "2468359677783819939fb9f1ef5acc36667ecd1a"
|
47
47
|
}
|