armtek-uikit-react 1.0.34 → 1.0.35
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/assets/Select.scss
CHANGED
|
@@ -27,9 +27,8 @@
|
|
|
27
27
|
position: static;
|
|
28
28
|
}
|
|
29
29
|
.selectSummary__wrapper{
|
|
30
|
-
padding: calc($size-step * 2) calc($size-step * 2)
|
|
30
|
+
padding: calc($size-step * 2) calc($size-step * 2) $size-step;
|
|
31
31
|
& .selectSummary{
|
|
32
|
-
padding-bottom: $size-step;
|
|
33
32
|
border-top: 1px solid $color-gray-300;
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -40,6 +39,7 @@
|
|
|
40
39
|
display: flex;
|
|
41
40
|
align-items: center;
|
|
42
41
|
justify-content: space-between;
|
|
42
|
+
margin-top:$size-step;
|
|
43
43
|
}
|
|
44
44
|
.selectSummary__check{
|
|
45
45
|
margin-right: 60px;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
.selectSummary__options{
|
|
61
61
|
border-bottom: 1px solid $color-gray-300;
|
|
62
|
-
padding:
|
|
62
|
+
padding: 0 0 calc($size-step) 0;
|
|
63
63
|
margin-bottom: calc($size-step / 2);
|
|
64
64
|
}
|
|
65
65
|
.selectSummary__optionList{
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
1
|
+
{"name":"armtek-uikit-react","version":"1.0.35","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","clsx":"^2.0.0"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
|
|
@@ -99,7 +99,7 @@ export const TextFieldContainer = props => {
|
|
|
99
99
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
100
100
|
children: /*#__PURE__*/_jsx("div", {
|
|
101
101
|
...restProps,
|
|
102
|
-
className: clsx(css.textfield, css['textfield_' + variant], css['size_' + size], {
|
|
102
|
+
className: clsx('textfield__container', css.textfield, css['textfield_' + variant], css['size_' + size], {
|
|
103
103
|
[css.textfield_focused]: focused,
|
|
104
104
|
[css.textfield_disabled]: disabled,
|
|
105
105
|
[css.textfield_error]: error
|
|
@@ -121,6 +121,9 @@ export const TextFieldInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
121
121
|
className,
|
|
122
122
|
...inputProps
|
|
123
123
|
} = props;
|
|
124
|
+
const handleWheel = e => {
|
|
125
|
+
if (inputProps.type === 'number' && e.target instanceof HTMLElement) e.target.blur();else if (props.onWheel) props.onWheel(e);
|
|
126
|
+
};
|
|
124
127
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
125
128
|
children: /*#__PURE__*/_jsxs("div", {
|
|
126
129
|
className: clsx(css.textfield__container, css['size_' + size], {
|
|
@@ -131,6 +134,7 @@ export const TextFieldInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
131
134
|
ref: ref,
|
|
132
135
|
value: value,
|
|
133
136
|
...inputProps,
|
|
137
|
+
onWheel: handleWheel,
|
|
134
138
|
className: clsx(css.textfield__input, css['size_' + size], css['textfield__input_' + variant], {
|
|
135
139
|
[css._label]: !!label,
|
|
136
140
|
[css.textfield_focused]: focused,
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
@import "../../../assets/TextField";
|
|
1
|
+
@import "../../../assets/TextField";
|
|
2
|
+
@import "../../../assets/TextArea";
|