@rescui/input 0.1.0 → 0.1.4
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/lib/index.css +389 -340
- package/lib/input.js +12 -2
- package/lib/input.module.pcss.js +27 -26
- package/lib/parts/custom-icon.js +5 -6
- package/package.json +8 -8
package/lib/input.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
2
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
3
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
4
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
5
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
1
7
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
2
8
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
3
9
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
4
10
|
var _excluded = ["id", "className", "placeholder", "disabled", "error", "busy", "onChange", "onFocus", "onBlur", "onClear", "mode", "size", "theme", "type", "value", "icon", "iconType", "label", "note", "clearIcon", "suffix", "offSystemMicroelements", "style"];
|
|
5
|
-
|
|
11
|
+
|
|
12
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
+
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
15
|
+
|
|
6
16
|
import * as React from 'react';
|
|
7
17
|
import PropTypes from 'prop-types';
|
|
8
18
|
import { CloseIcon } from '@rescui/icons';
|
|
@@ -131,7 +141,7 @@ function (_ref, ref) {
|
|
|
131
141
|
iconIsFocusable: false,
|
|
132
142
|
iconPosition: "left",
|
|
133
143
|
size: size
|
|
134
|
-
}), /*#__PURE__*/React.createElement("input",
|
|
144
|
+
}), /*#__PURE__*/React.createElement("input", _objectSpread(_objectSpread({}, restProps), {}, {
|
|
135
145
|
id: id,
|
|
136
146
|
className: styles.inner,
|
|
137
147
|
type: type,
|
package/lib/input.module.pcss.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"container": "
|
|
3
|
-
"wrapper": "
|
|
4
|
-
"light": "
|
|
5
|
-
"enabled": "
|
|
6
|
-
"filled": "
|
|
7
|
-
"focused": "
|
|
8
|
-
"classic": "
|
|
9
|
-
"rock": "
|
|
10
|
-
"dark": "
|
|
11
|
-
"error": "
|
|
12
|
-
"disabled": "
|
|
13
|
-
"field": "
|
|
14
|
-
"sizeL": "
|
|
15
|
-
"sizeM": "
|
|
16
|
-
"sizeS": "
|
|
17
|
-
"inner": "
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
2
|
+
"container": "_container_fih98l_8",
|
|
3
|
+
"wrapper": "_wrapper_fih98l_12",
|
|
4
|
+
"light": "_light_fih98l_19",
|
|
5
|
+
"enabled": "_enabled_fih98l_25",
|
|
6
|
+
"filled": "_filled_fih98l_25",
|
|
7
|
+
"focused": "_focused_fih98l_35",
|
|
8
|
+
"classic": "_classic_fih98l_40",
|
|
9
|
+
"rock": "_rock_fih98l_44",
|
|
10
|
+
"dark": "_dark_fih98l_48",
|
|
11
|
+
"error": "_error_fih98l_77",
|
|
12
|
+
"disabled": "_disabled_fih98l_92",
|
|
13
|
+
"field": "_field_fih98l_150",
|
|
14
|
+
"sizeL": "_sizeL_fih98l_110",
|
|
15
|
+
"sizeM": "_sizeM_fih98l_114",
|
|
16
|
+
"sizeS": "_sizeS_fih98l_118",
|
|
17
|
+
"inner": "_inner_fih98l_160",
|
|
18
|
+
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_fih98l_1",
|
|
19
|
+
"offSystemMicroelements": "_offSystemMicroelements_fih98l_322",
|
|
20
|
+
"icon": "_icon_fih98l_333",
|
|
21
|
+
"action": "_action_fih98l_337",
|
|
22
|
+
"right": "_right_fih98l_418",
|
|
23
|
+
"left": "_left_fih98l_430",
|
|
24
|
+
"divider": "_divider_fih98l_493",
|
|
25
|
+
"suffix": "_suffix_fih98l_528",
|
|
26
|
+
"errorMessage": "_errorMessage_fih98l_563",
|
|
27
|
+
"note": "_note_fih98l_577",
|
|
28
|
+
"label": "_label_fih98l_611"
|
|
28
29
|
};
|
|
29
30
|
export default styles;
|
package/lib/parts/custom-icon.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "core-js/modules/web.dom-collections.for-each.js";
|
|
2
|
-
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
-
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
4
|
-
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
5
2
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
6
3
|
|
|
7
4
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -10,7 +7,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
7
|
|
|
11
8
|
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
12
9
|
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
13
|
-
import _Object$
|
|
10
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
11
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
12
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
14
13
|
import * as React from 'react';
|
|
15
14
|
import cn from 'classnames';
|
|
16
15
|
import styles from '../input.module.pcss.js';
|
|
@@ -47,11 +46,11 @@ var CustomIcon = function CustomIcon(_ref) {
|
|
|
47
46
|
size: size,
|
|
48
47
|
focusable: false
|
|
49
48
|
}, mouseEvents.icon));
|
|
50
|
-
return /*#__PURE__*/React.createElement("span",
|
|
49
|
+
return /*#__PURE__*/React.createElement("span", _objectSpread(_objectSpread({
|
|
51
50
|
role: iconIsAction ? 'button' : null,
|
|
52
51
|
key: "icon",
|
|
53
52
|
className: cn(styles.icon, styles[iconPosition], iconIsAction && styles.action)
|
|
54
|
-
}, mouseEvents.button, {
|
|
53
|
+
}, mouseEvents.button), {}, {
|
|
55
54
|
"data-test": "input__icon",
|
|
56
55
|
tabIndex: iconIsAction && iconIsFocusable ? 0 : -1
|
|
57
56
|
}), iconJsx);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/input",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime-corejs3": "^7.14.0",
|
|
18
|
-
"@rescui/icons": "^0.
|
|
18
|
+
"@rescui/icons": "^0.4.0",
|
|
19
19
|
"classnames": "^2.2.6",
|
|
20
20
|
"core-js": "^3.9.1"
|
|
21
21
|
},
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"react": ">=16.8.0 <18"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@rescui/colors": "^0.0.
|
|
29
|
-
"@rescui/postcss-preset-library": "^0.0.
|
|
30
|
-
"@rescui/scripts": "^0.1.
|
|
31
|
-
"@rescui/tooltip": "^0.
|
|
32
|
-
"@rescui/typography": "^0.
|
|
28
|
+
"@rescui/colors": "^0.0.6",
|
|
29
|
+
"@rescui/postcss-preset-library": "^0.0.4",
|
|
30
|
+
"@rescui/scripts": "^0.1.4",
|
|
31
|
+
"@rescui/tooltip": "^0.2.0",
|
|
32
|
+
"@rescui/typography": "^0.4.0",
|
|
33
33
|
"@rescui/visual-regression": "^0.0.1",
|
|
34
34
|
"@types/classnames": "^2.2.11"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "rescui-scripts build"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "6b1d206de2641861028760d73f33dee214c07911"
|
|
40
40
|
}
|