@rescui/input 0.6.1 → 0.7.1
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 +279 -242
- package/lib/input.d.ts +1 -0
- package/lib/input.js +3 -2
- package/lib/input.p.module.css.js +28 -27
- package/package.json +5 -5
package/lib/input.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ declare type InputExclusiveProps = {
|
|
|
82
82
|
suffix?: React.ReactNode;
|
|
83
83
|
/** Turns off system microelements in input. For example turns off arrows for input[type='number'] */
|
|
84
84
|
offSystemMicroelements?: boolean;
|
|
85
|
+
boldLabel?: boolean;
|
|
85
86
|
};
|
|
86
87
|
export declare type InputProps = InputExclusiveProps & Omit<React.HTMLProps<HTMLInputElement>, keyof InputExclusiveProps>;
|
|
87
88
|
export declare const Input: React.FC<InputProps>;
|
package/lib/input.js
CHANGED
|
@@ -8,7 +8,7 @@ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-st
|
|
|
8
8
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
9
9
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
10
10
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
11
|
-
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"];
|
|
11
|
+
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", "boldLabel"];
|
|
12
12
|
|
|
13
13
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
14
|
|
|
@@ -62,6 +62,7 @@ function (_ref, ref) {
|
|
|
62
62
|
suffix = _ref.suffix,
|
|
63
63
|
offSystemMicroelements = _ref.offSystemMicroelements,
|
|
64
64
|
style = _ref.style,
|
|
65
|
+
boldLabel = _ref.boldLabel,
|
|
65
66
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
66
67
|
|
|
67
68
|
var theme = useTheme(themeFromProps); // replace with :focus-within when ie11 is not supported anymore
|
|
@@ -97,7 +98,7 @@ function (_ref, ref) {
|
|
|
97
98
|
var renderLeftCustomIcon = icon && iconType === 'left';
|
|
98
99
|
var renderRightCustomIcon = icon && (iconType === 'right' || iconType === 'rightAction' || iconType === 'rightActionFocusable');
|
|
99
100
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
|
-
className: cn(styles.container, styles[theme], styles[mode], sizeStyles[size], (_cn = {}, _defineProperty(_cn, styles.focused, focused), _defineProperty(_cn, styles.filled, filled), _defineProperty(_cn, styles.enabled, enabled), _defineProperty(_cn, styles.error, Boolean(error)), _defineProperty(_cn, styles.disabled, disabled), _defineProperty(_cn, styles.offSystemMicroelements, offSystemMicroelements), _cn), className),
|
|
101
|
+
className: cn(styles.container, styles[theme], styles[mode], sizeStyles[size], (_cn = {}, _defineProperty(_cn, styles.focused, focused), _defineProperty(_cn, styles.filled, filled), _defineProperty(_cn, styles.enabled, enabled), _defineProperty(_cn, styles.error, Boolean(error)), _defineProperty(_cn, styles.disabled, disabled), _defineProperty(_cn, styles.offSystemMicroelements, offSystemMicroelements), _defineProperty(_cn, styles.boldLabel, boldLabel), _cn), className),
|
|
101
102
|
style: style,
|
|
102
103
|
"data-test": "input"
|
|
103
104
|
}, /*#__PURE__*/React.createElement("label", null, label && /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,30 +1,31 @@
|
|
|
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
|
-
"rs-reset-letter-spacing": "_rs-reset-letter-
|
|
19
|
-
"offSystemMicroelements": "
|
|
20
|
-
"icon": "
|
|
21
|
-
"action": "
|
|
22
|
-
"right": "
|
|
23
|
-
"left": "
|
|
24
|
-
"divider": "
|
|
25
|
-
"suffix": "
|
|
26
|
-
"errorMessage": "
|
|
27
|
-
"note": "
|
|
28
|
-
"label": "
|
|
2
|
+
"container": "_container_14fc5tb_10",
|
|
3
|
+
"wrapper": "_wrapper_14fc5tb_14",
|
|
4
|
+
"light": "_light_14fc5tb_21",
|
|
5
|
+
"enabled": "_enabled_14fc5tb_27",
|
|
6
|
+
"filled": "_filled_14fc5tb_27",
|
|
7
|
+
"focused": "_focused_14fc5tb_39",
|
|
8
|
+
"classic": "_classic_14fc5tb_44",
|
|
9
|
+
"rock": "_rock_14fc5tb_48",
|
|
10
|
+
"dark": "_dark_14fc5tb_52",
|
|
11
|
+
"error": "_error_14fc5tb_83",
|
|
12
|
+
"disabled": "_disabled_14fc5tb_103",
|
|
13
|
+
"field": "_field_14fc5tb_161",
|
|
14
|
+
"sizeL": "_sizeL_14fc5tb_121",
|
|
15
|
+
"sizeM": "_sizeM_14fc5tb_125",
|
|
16
|
+
"sizeS": "_sizeS_14fc5tb_129",
|
|
17
|
+
"inner": "_inner_14fc5tb_171",
|
|
18
|
+
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_14fc5tb_1",
|
|
19
|
+
"offSystemMicroelements": "_offSystemMicroelements_14fc5tb_345",
|
|
20
|
+
"icon": "_icon_14fc5tb_356",
|
|
21
|
+
"action": "_action_14fc5tb_360",
|
|
22
|
+
"right": "_right_14fc5tb_441",
|
|
23
|
+
"left": "_left_14fc5tb_453",
|
|
24
|
+
"divider": "_divider_14fc5tb_523",
|
|
25
|
+
"suffix": "_suffix_14fc5tb_558",
|
|
26
|
+
"errorMessage": "_errorMessage_14fc5tb_596",
|
|
27
|
+
"note": "_note_14fc5tb_614",
|
|
28
|
+
"label": "_label_14fc5tb_646",
|
|
29
|
+
"boldLabel": "_boldLabel_14fc5tb_661"
|
|
29
30
|
};
|
|
30
31
|
export { styles as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/input",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
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.10.
|
|
18
|
+
"@rescui/icons": "^0.10.5",
|
|
19
19
|
"classnames": "^2.2.6",
|
|
20
20
|
"core-js": "^3.9.1"
|
|
21
21
|
},
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@rescui/colors": "^0.1.5",
|
|
29
29
|
"@rescui/postcss-preset-library": "^0.1.0",
|
|
30
30
|
"@rescui/scripts": "^0.1.7",
|
|
31
|
-
"@rescui/tooltip": "^0.4.
|
|
32
|
-
"@rescui/typography": "^0.
|
|
31
|
+
"@rescui/tooltip": "^0.4.9",
|
|
32
|
+
"@rescui/typography": "^0.9.1",
|
|
33
33
|
"@rescui/visual-regression": "^0.0.4",
|
|
34
34
|
"@types/classnames": "^2.2.11"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "rescui-scripts build"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "ea688b60033d202e0eac03b46488d984730d638f"
|
|
40
40
|
}
|