@hh.ru/magritte-ui-input 6.0.16 → 7.0.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/BaseInput.d.ts +1 -1
- package/BaseInput.js +4 -5
- package/BaseInput.js.map +1 -1
- package/DateTimeInput.js +1 -2
- package/DateTimeInput.js.map +1 -1
- package/Input.d.ts +1 -1
- package/Input.js +0 -1
- package/Input.js.map +1 -1
- package/NumberInput.d.ts +1 -1
- package/NumberInput.js +0 -1
- package/NumberInput.js.map +1 -1
- package/PasswordInput.js +0 -1
- package/PasswordInput.js.map +1 -1
- package/SearchInput.d.ts +1 -1
- package/SearchInput.js +0 -1
- package/SearchInput.js.map +1 -1
- package/UncontrolledDateTimeInput.js +1 -2
- package/UncontrolledDateTimeInput.js.map +1 -1
- package/UncontrolledInput.d.ts +1 -1
- package/UncontrolledInput.js +0 -1
- package/UncontrolledInput.js.map +1 -1
- package/UncontrolledNumberInput.d.ts +1 -1
- package/UncontrolledNumberInput.js +0 -1
- package/UncontrolledNumberInput.js.map +1 -1
- package/UncontrolledPasswordInput.js +0 -1
- package/UncontrolledPasswordInput.js.map +1 -1
- package/UncontrolledSearchInput.d.ts +1 -1
- package/UncontrolledSearchInput.js +0 -1
- package/UncontrolledSearchInput.js.map +1 -1
- package/index.css +316 -316
- package/{index.esm-B9YRf7M2.js → index.esm-DNp-bcrK.js} +1 -1
- package/{index.esm-B9YRf7M2.js.map → index.esm-DNp-bcrK.js.map} +1 -1
- package/index.js +1 -2
- package/index.js.map +1 -1
- package/maskito-exports.js +1 -1
- package/package.json +8 -9
- package/types.d.ts +1 -14
- package/useDateTimeMask.js +1 -1
package/index.js
CHANGED
|
@@ -22,13 +22,12 @@ import '@hh.ru/magritte-common-text-selection';
|
|
|
22
22
|
import '@hh.ru/magritte-common-use-disabled';
|
|
23
23
|
import '@hh.ru/magritte-common-use-multiple-refs';
|
|
24
24
|
import '@hh.ru/magritte-ui-action';
|
|
25
|
-
import '@hh.ru/magritte-ui-counter';
|
|
26
25
|
import '@hh.ru/magritte-ui-form-helper';
|
|
27
26
|
import '@hh.ru/magritte-ui-icon/icon';
|
|
28
27
|
import './useFocus.js';
|
|
29
28
|
import '@hh.ru/magritte-ui-typography';
|
|
30
29
|
import '@hh.ru/magritte-common-number-formatter';
|
|
31
30
|
import './useDateTimeMask.js';
|
|
32
|
-
import './index.esm-
|
|
31
|
+
import './index.esm-DNp-bcrK.js';
|
|
33
32
|
import './useUncontrolledInput.js';
|
|
34
33
|
//# 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 maskitoDateTimeOptionsGenerator, b as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-
|
|
2
|
+
export { M as MASKITO_DEFAULT_OPTIONS, m as maskitoDateOptionsGenerator, a as maskitoDateTimeOptionsGenerator, b as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-DNp-bcrK.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": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -30,15 +30,14 @@
|
|
|
30
30
|
"@hh.ru/magritte-common-text-selection": "0.1.5",
|
|
31
31
|
"@hh.ru/magritte-common-use-disabled": "1.0.9",
|
|
32
32
|
"@hh.ru/magritte-common-use-multiple-refs": "1.1.4",
|
|
33
|
-
"@hh.ru/magritte-design-tokens": "19.1.
|
|
34
|
-
"@hh.ru/magritte-ui-action": "4.4.
|
|
33
|
+
"@hh.ru/magritte-design-tokens": "19.1.1",
|
|
34
|
+
"@hh.ru/magritte-ui-action": "4.4.11",
|
|
35
35
|
"@hh.ru/magritte-ui-breakpoint": "4.0.3",
|
|
36
|
-
"@hh.ru/magritte-ui-
|
|
37
|
-
"@hh.ru/magritte-ui-
|
|
38
|
-
"@hh.ru/magritte-ui-icon": "7.9.0",
|
|
36
|
+
"@hh.ru/magritte-ui-form-helper": "1.0.11",
|
|
37
|
+
"@hh.ru/magritte-ui-icon": "7.9.1",
|
|
39
38
|
"@hh.ru/magritte-ui-mock-component": "1.0.11",
|
|
40
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.
|
|
41
|
-
"@hh.ru/magritte-ui-typography": "3.0.
|
|
39
|
+
"@hh.ru/magritte-ui-theme-provider": "1.1.30",
|
|
40
|
+
"@hh.ru/magritte-ui-typography": "3.0.17"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@maskito/core": "2.4.0",
|
|
@@ -48,5 +47,5 @@
|
|
|
48
47
|
"publishConfig": {
|
|
49
48
|
"access": "public"
|
|
50
49
|
},
|
|
51
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "97b2c0c9ad82c0c7a940eef5c3d0d6cddeeef5cf"
|
|
52
51
|
}
|
package/types.d.ts
CHANGED
|
@@ -77,39 +77,26 @@ interface InputWithRightButtonProps extends InputBaseProps {
|
|
|
77
77
|
buttonIcon: IconWrapperComponentSize24;
|
|
78
78
|
/** Обработчик события клика по кнопке */
|
|
79
79
|
onButtonClick: OnButtonClickType;
|
|
80
|
-
/** Запрещено к использованию */
|
|
81
|
-
counter?: never;
|
|
82
80
|
}
|
|
83
81
|
export interface InputWithoutRightButtonProps extends InputBaseProps {
|
|
84
82
|
clearable?: false;
|
|
85
83
|
clearableOnFocus?: false;
|
|
86
84
|
buttonIcon?: never;
|
|
87
85
|
onButtonClick?: never;
|
|
88
|
-
counter?: never;
|
|
89
86
|
}
|
|
90
87
|
interface InputClearableProps extends InputBaseProps {
|
|
91
88
|
clearable: true;
|
|
92
89
|
clearableOnFocus?: never;
|
|
93
90
|
buttonIcon?: never;
|
|
94
91
|
onButtonClick?: OnButtonClickType;
|
|
95
|
-
counter?: never;
|
|
96
92
|
}
|
|
97
93
|
interface InputClearableOnFocusProps extends InputBaseProps {
|
|
98
94
|
clearable?: never;
|
|
99
95
|
clearableOnFocus: true;
|
|
100
96
|
buttonIcon?: never;
|
|
101
97
|
onButtonClick?: OnButtonClickType;
|
|
102
|
-
counter?: never;
|
|
103
98
|
}
|
|
104
99
|
export type InputWithRightButtonClearProps = InputClearableProps | InputClearableOnFocusProps;
|
|
105
|
-
interface InputWithRightCounterProps extends InputBaseProps {
|
|
106
|
-
/** Значение счетчика */
|
|
107
|
-
counter: ReactNode;
|
|
108
|
-
clearable?: never;
|
|
109
|
-
clearableOnFocus?: never;
|
|
110
|
-
buttonIcon?: never;
|
|
111
|
-
onButtonClick?: never;
|
|
112
|
-
}
|
|
113
100
|
interface InputWithInputIconProps extends InputBaseProps {
|
|
114
101
|
inputIcon?: IconWrapperComponentSize24;
|
|
115
102
|
}
|
|
@@ -118,7 +105,7 @@ interface InputWithFixedPlaceholderProps extends InputBaseProps {
|
|
|
118
105
|
fixedPlaceholder?: string;
|
|
119
106
|
}
|
|
120
107
|
type NoButtonInputProps = LargeInputProps | MediumInputProps;
|
|
121
|
-
export type BaseInputProps = NoButtonInputProps & (InputWithRightButtonProps | InputWithoutRightButtonProps | InputWithRightButtonClearProps
|
|
108
|
+
export type BaseInputProps = NoButtonInputProps & (InputWithRightButtonProps | InputWithoutRightButtonProps | InputWithRightButtonClearProps) & InputWithInputIconProps & InputWithFixedPlaceholderProps & InputWithHintProps & ControlledProps;
|
|
122
109
|
type InputProps = NoButtonInputProps & InputWithHintProps & (InputWithRightButtonProps | InputWithoutRightButtonProps | InputWithRightButtonClearProps);
|
|
123
110
|
export type ControlledInputProps = InputProps & ControlledProps;
|
|
124
111
|
export type UncontrolledInputProps = InputProps & UncontrolledProps;
|
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, a as maskitoDateTimeOptionsGenerator, m as maskitoDateOptionsGenerator, b as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-
|
|
3
|
+
import { M as MASKITO_DEFAULT_OPTIONS, a as maskitoDateTimeOptionsGenerator, m as maskitoDateOptionsGenerator, b as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-DNp-bcrK.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Округление времени (в формате 00:00) до ближайшего заданного шага
|