@megafon/ui-core 8.8.0 → 8.9.0
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.
|
@@ -99,6 +99,8 @@ export type TextFieldProps = {
|
|
|
99
99
|
hideResizeButton?: boolean;
|
|
100
100
|
/** Отключает перевод строки по Enter */
|
|
101
101
|
disableEnterLineBreak?: boolean;
|
|
102
|
+
/** Обработчик клика по инпуту */
|
|
103
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
102
104
|
/** Обработчик изменения значения */
|
|
103
105
|
onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
104
106
|
/** Обработчик изменения значения маскированного инпута до обработки маской */
|
|
@@ -109,6 +109,7 @@ var TextField = function TextField(_ref) {
|
|
|
109
109
|
disableEnterLineBreak = _ref$disableEnterLine === void 0 ? false : _ref$disableEnterLine,
|
|
110
110
|
_ref$hideResizeButton = _ref.hideResizeButton,
|
|
111
111
|
hideResizeButton = _ref$hideResizeButton === void 0 ? false : _ref$hideResizeButton,
|
|
112
|
+
onClick = _ref.onClick,
|
|
112
113
|
onBlur = _ref.onBlur,
|
|
113
114
|
onChange = _ref.onChange,
|
|
114
115
|
onBeforeMaskChange = _ref.onBeforeMaskChange,
|
|
@@ -315,6 +316,7 @@ var TextField = function TextField(_ref) {
|
|
|
315
316
|
id: id,
|
|
316
317
|
name: name,
|
|
317
318
|
value: isControlled ? value : inputValue,
|
|
319
|
+
onClick: onClick,
|
|
318
320
|
onChange: handleInputChange,
|
|
319
321
|
onBlur: handleBlur,
|
|
320
322
|
onFocus: handleFocus,
|
|
@@ -99,6 +99,8 @@ export type TextFieldProps = {
|
|
|
99
99
|
hideResizeButton?: boolean;
|
|
100
100
|
/** Отключает перевод строки по Enter */
|
|
101
101
|
disableEnterLineBreak?: boolean;
|
|
102
|
+
/** Обработчик клика по инпуту */
|
|
103
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
102
104
|
/** Обработчик изменения значения */
|
|
103
105
|
onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
104
106
|
/** Обработчик изменения значения маскированного инпута до обработки маской */
|
|
@@ -119,6 +119,7 @@ var TextField = function TextField(_ref) {
|
|
|
119
119
|
disableEnterLineBreak = _ref$disableEnterLine === void 0 ? false : _ref$disableEnterLine,
|
|
120
120
|
_ref$hideResizeButton = _ref.hideResizeButton,
|
|
121
121
|
hideResizeButton = _ref$hideResizeButton === void 0 ? false : _ref$hideResizeButton,
|
|
122
|
+
onClick = _ref.onClick,
|
|
122
123
|
onBlur = _ref.onBlur,
|
|
123
124
|
onChange = _ref.onChange,
|
|
124
125
|
onBeforeMaskChange = _ref.onBeforeMaskChange,
|
|
@@ -325,6 +326,7 @@ var TextField = function TextField(_ref) {
|
|
|
325
326
|
id: id,
|
|
326
327
|
name: name,
|
|
327
328
|
value: isControlled ? value : inputValue,
|
|
329
|
+
onClick: onClick,
|
|
328
330
|
onChange: handleInputChange,
|
|
329
331
|
onBlur: handleBlur,
|
|
330
332
|
onFocus: handleFocus,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.9.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"styles"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@babel/preset-env": "^7.8.6",
|
|
51
51
|
"@babel/preset-react": "^7.8.3",
|
|
52
52
|
"@babel/preset-typescript": "^7.8.3",
|
|
53
|
-
"@megafon/ui-icons": "^3.11.
|
|
53
|
+
"@megafon/ui-icons": "^3.11.1",
|
|
54
54
|
"@svgr/core": "^2.4.1",
|
|
55
55
|
"@testing-library/jest-dom": "^6.5.0",
|
|
56
56
|
"@testing-library/react": "^16.0.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@datepicker-react/hooks": "^2.7.0",
|
|
90
90
|
"@dnd-kit/core": "^6.1.0",
|
|
91
91
|
"@dnd-kit/sortable": "^8.0.0",
|
|
92
|
-
"@megafon/ui-helpers": "^4.0.
|
|
92
|
+
"@megafon/ui-helpers": "^4.0.2",
|
|
93
93
|
"@mona-health/react-input-mask": "^3.0.3",
|
|
94
94
|
"@popperjs/core": "^2.11.8",
|
|
95
95
|
"core-js": "^3.6.4",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"simplebar-react": "^3.2.5",
|
|
105
105
|
"swiper": "^11.1.1"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "c638a22fcd9ee30fffdafb22d181f454b54f0860"
|
|
108
108
|
}
|