@hh.ru/magritte-ui-input 9.1.23 → 9.2.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.
- package/BaseInput.d.ts +1 -1
- package/BaseInput.js +9 -5
- package/BaseInput.js.map +1 -1
- package/DateTimeInput.js +2 -1
- package/DateTimeInput.js.map +1 -1
- package/Input.d.ts +1 -1
- package/Input.js +1 -0
- package/Input.js.map +1 -1
- package/NumberInput.d.ts +1 -1
- package/NumberInput.js +1 -0
- package/NumberInput.js.map +1 -1
- package/PasswordInput.js +1 -0
- package/PasswordInput.js.map +1 -1
- package/SearchInput.d.ts +1 -1
- package/SearchInput.js +1 -0
- package/SearchInput.js.map +1 -1
- package/UncontrolledDateTimeInput.js +2 -1
- package/UncontrolledDateTimeInput.js.map +1 -1
- package/UncontrolledInput.d.ts +1 -1
- package/UncontrolledInput.js +1 -0
- package/UncontrolledInput.js.map +1 -1
- package/UncontrolledNumberInput.d.ts +1 -1
- package/UncontrolledNumberInput.js +1 -0
- package/UncontrolledNumberInput.js.map +1 -1
- package/UncontrolledPasswordInput.js +1 -0
- package/UncontrolledPasswordInput.js.map +1 -1
- package/UncontrolledSearchInput.d.ts +1 -1
- package/UncontrolledSearchInput.js +1 -0
- package/UncontrolledSearchInput.js.map +1 -1
- package/index.css +99 -99
- package/{index.esm-BqyiURn1.js → index.esm-BKHyyzvl.js} +1 -1
- package/{index.esm-BqyiURn1.js.map → index.esm-BKHyyzvl.js.map} +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/maskito-exports.js +1 -1
- package/package.json +4 -3
- package/types.d.ts +5 -0
- package/useDateTimeMask.js +1 -1
package/index.js
CHANGED
|
@@ -20,12 +20,13 @@ import '@hh.ru/magritte-common-mouse';
|
|
|
20
20
|
import '@hh.ru/magritte-common-text-selection';
|
|
21
21
|
import '@hh.ru/magritte-common-use-disabled';
|
|
22
22
|
import '@hh.ru/magritte-common-use-multiple-refs';
|
|
23
|
+
import '@hh.ru/magritte-common-use-translation';
|
|
23
24
|
import '@hh.ru/magritte-ui-form-helper';
|
|
24
25
|
import '@hh.ru/magritte-ui-icon/icon';
|
|
25
26
|
import './useFocus.js';
|
|
26
27
|
import '@hh.ru/magritte-ui-typography';
|
|
27
28
|
import '@hh.ru/magritte-common-number-formatter';
|
|
28
29
|
import './useDateTimeMask.js';
|
|
29
|
-
import './index.esm-
|
|
30
|
+
import './index.esm-BKHyyzvl.js';
|
|
30
31
|
import './useUncontrolledInput.js';
|
|
31
32
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/maskito-exports.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
export { M as MASKITO_DEFAULT_OPTIONS, m as maskitoDateOptionsGenerator, a as maskitoDateRangeOptionsGenerator, b as maskitoDateTimeOptionsGenerator, c as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-
|
|
2
|
+
export { M as MASKITO_DEFAULT_OPTIONS, m as maskitoDateOptionsGenerator, a as maskitoDateRangeOptionsGenerator, b as maskitoDateTimeOptionsGenerator, c as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-BKHyyzvl.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
//# sourceMappingURL=maskito-exports.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-input",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
"@hh.ru/magritte-common-text-selection": "0.1.7",
|
|
30
30
|
"@hh.ru/magritte-common-use-disabled": "1.0.14",
|
|
31
31
|
"@hh.ru/magritte-common-use-multiple-refs": "1.1.10",
|
|
32
|
+
"@hh.ru/magritte-common-use-translation": "2.0.0",
|
|
32
33
|
"@hh.ru/magritte-design-tokens": "24.3.0",
|
|
33
34
|
"@hh.ru/magritte-ui-breakpoint": "6.0.5",
|
|
34
35
|
"@hh.ru/magritte-ui-form-helper": "2.0.23",
|
|
35
|
-
"@hh.ru/magritte-ui-icon": "13.7.
|
|
36
|
+
"@hh.ru/magritte-ui-icon": "13.7.7",
|
|
36
37
|
"@hh.ru/magritte-ui-mock-component": "1.1.6",
|
|
37
38
|
"@hh.ru/magritte-ui-typography": "4.4.4"
|
|
38
39
|
},
|
|
@@ -44,5 +45,5 @@
|
|
|
44
45
|
"publishConfig": {
|
|
45
46
|
"access": "public"
|
|
46
47
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0ec8488c44ea3c48bf1ca19e9315746d19bd7a58"
|
|
48
49
|
}
|
package/types.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ type InputWithRightButtonProps = {
|
|
|
69
69
|
clearableOnFocus?: never;
|
|
70
70
|
/** Иконка кнопки */
|
|
71
71
|
buttonIcon: IconWrapperComponentSize16 | IconWrapperComponentSize24;
|
|
72
|
+
/** aria-label кнопки */
|
|
73
|
+
buttonIconAriaLabel?: string;
|
|
72
74
|
/** Обработчик события клика по кнопке */
|
|
73
75
|
onButtonClick: OnButtonClickType;
|
|
74
76
|
};
|
|
@@ -76,18 +78,21 @@ export interface InputWithoutRightButtonProps extends InputBaseProps {
|
|
|
76
78
|
clearable?: false;
|
|
77
79
|
clearableOnFocus?: false;
|
|
78
80
|
buttonIcon?: never;
|
|
81
|
+
buttonIconAriaLabel?: never;
|
|
79
82
|
onButtonClick?: never;
|
|
80
83
|
}
|
|
81
84
|
export interface InputClearableProps extends InputBaseProps {
|
|
82
85
|
clearable: true;
|
|
83
86
|
clearableOnFocus?: never;
|
|
84
87
|
buttonIcon?: never;
|
|
88
|
+
buttonIconAriaLabel?: never;
|
|
85
89
|
onButtonClick?: OnButtonClickType;
|
|
86
90
|
}
|
|
87
91
|
export interface InputClearableOnFocusProps extends InputBaseProps {
|
|
88
92
|
clearable?: never;
|
|
89
93
|
clearableOnFocus: true;
|
|
90
94
|
buttonIcon?: never;
|
|
95
|
+
buttonIconAriaLabel?: never;
|
|
91
96
|
onButtonClick?: OnButtonClickType;
|
|
92
97
|
}
|
|
93
98
|
type InputWithRightButtonClearProps = InputClearableProps | InputClearableOnFocusProps;
|
package/useDateTimeMask.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { M as MASKITO_DEFAULT_OPTIONS, b as maskitoDateTimeOptionsGenerator, a as maskitoDateRangeOptionsGenerator, m as maskitoDateOptionsGenerator, c as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-
|
|
3
|
+
import { M as MASKITO_DEFAULT_OPTIONS, b as maskitoDateTimeOptionsGenerator, a as maskitoDateRangeOptionsGenerator, m as maskitoDateOptionsGenerator, c as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-BKHyyzvl.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Округление времени (в формате 00:00) до ближайшего заданного шага
|