@salutejs/sdds-dfa 0.174.0-canary.1562.11857238836.0 → 0.174.0-canary.1565.11870784206.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-dfa.api.md +5461 -1200
- package/components/Autocomplete/Autocomplete.d.ts +64 -2
- package/components/Dropdown/Dropdown.d.ts +3 -28
- package/components/Dropdown/Dropdown.js +1 -10
- package/components/Mask/Mask.d.ts +2732 -92
- package/components/TextField/TextField.d.ts +1676 -92
- package/es/components/Dropdown/Dropdown.js +2 -10
- package/package.json +3 -3
- package/temp/sdds-dfa.api.md +5461 -1200
@@ -27,9 +27,71 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
|
|
27
27
|
} & {
|
28
28
|
required: true;
|
29
29
|
optional?: false | undefined;
|
30
|
-
} &
|
30
|
+
} & {
|
31
|
+
validationType?: undefined;
|
32
|
+
options?: undefined;
|
33
|
+
passwordHidden?: undefined;
|
34
|
+
onValidate?: undefined;
|
35
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPropsBase, "required" | "requiredPlacement" | "optional" | "chips" | "onChangeChips" | "enumerationType" | "validationType" | "options" | "passwordHidden" | "onValidate"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & {
|
36
|
+
requiredPlacement?: "right" | "left" | undefined;
|
37
|
+
} & {
|
38
|
+
required: true;
|
39
|
+
optional?: false | undefined;
|
40
|
+
} & {
|
41
|
+
validationType: "password";
|
42
|
+
options?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").PasswordValidationOptions | undefined;
|
43
|
+
passwordHidden?: boolean | undefined;
|
44
|
+
onValidate?: ((args: {
|
45
|
+
isValid: boolean;
|
46
|
+
errorMessage?: string | undefined;
|
47
|
+
}) => void) | undefined;
|
48
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPropsBase, "required" | "requiredPlacement" | "optional" | "chips" | "onChangeChips" | "enumerationType" | "validationType" | "options" | "passwordHidden" | "onValidate"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & {
|
49
|
+
requiredPlacement?: "right" | "left" | undefined;
|
50
|
+
} & {
|
51
|
+
required: true;
|
52
|
+
optional?: false | undefined;
|
53
|
+
} & {
|
54
|
+
validationType: "email";
|
55
|
+
options?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").EmailValidationOptions | undefined;
|
56
|
+
passwordHidden?: undefined;
|
57
|
+
onValidate?: ((args: {
|
58
|
+
isValid: boolean;
|
59
|
+
errorMessage?: string | undefined;
|
60
|
+
}) => void) | undefined;
|
61
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPropsBase, "required" | "requiredPlacement" | "optional" | "chips" | "onChangeChips" | "enumerationType" | "validationType" | "options" | "passwordHidden" | "onValidate"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & {
|
31
62
|
requiredPlacement?: "right" | "left" | undefined;
|
32
63
|
} & {
|
33
64
|
optional?: true | undefined;
|
34
65
|
required?: false | undefined;
|
35
|
-
} &
|
66
|
+
} & {
|
67
|
+
validationType?: undefined;
|
68
|
+
options?: undefined;
|
69
|
+
passwordHidden?: undefined;
|
70
|
+
onValidate?: undefined;
|
71
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPropsBase, "required" | "requiredPlacement" | "optional" | "chips" | "onChangeChips" | "enumerationType" | "validationType" | "options" | "passwordHidden" | "onValidate"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & {
|
72
|
+
requiredPlacement?: "right" | "left" | undefined;
|
73
|
+
} & {
|
74
|
+
optional?: true | undefined;
|
75
|
+
required?: false | undefined;
|
76
|
+
} & {
|
77
|
+
validationType: "password";
|
78
|
+
options?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").PasswordValidationOptions | undefined;
|
79
|
+
passwordHidden?: boolean | undefined;
|
80
|
+
onValidate?: ((args: {
|
81
|
+
isValid: boolean;
|
82
|
+
errorMessage?: string | undefined;
|
83
|
+
}) => void) | undefined;
|
84
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPropsBase, "required" | "requiredPlacement" | "optional" | "chips" | "onChangeChips" | "enumerationType" | "validationType" | "options" | "passwordHidden" | "onValidate"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & {
|
85
|
+
requiredPlacement?: "right" | "left" | undefined;
|
86
|
+
} & {
|
87
|
+
optional?: true | undefined;
|
88
|
+
required?: false | undefined;
|
89
|
+
} & {
|
90
|
+
validationType: "email";
|
91
|
+
options?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").EmailValidationOptions | undefined;
|
92
|
+
passwordHidden?: undefined;
|
93
|
+
onValidate?: ((args: {
|
94
|
+
isValid: boolean;
|
95
|
+
errorMessage?: string | undefined;
|
96
|
+
}) => void) | undefined;
|
97
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPropsBase, "required" | "requiredPlacement" | "optional" | "chips" | "onChangeChips" | "enumerationType" | "validationType" | "options" | "passwordHidden" | "onValidate"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>))>;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "view" | "size"> & Pick<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const Dropdown: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
4
3
|
size: {
|
5
4
|
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
5
|
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -10,29 +9,5 @@ declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewPr
|
|
10
9
|
view: {
|
11
10
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
11
|
};
|
13
|
-
}> &
|
14
|
-
items: DropdownItemOption[];
|
15
|
-
alwaysOpened?: boolean | undefined;
|
16
|
-
children?: React.ReactNode;
|
17
|
-
itemRole?: string | undefined;
|
18
|
-
onHover?: ((index: number) => void) | undefined;
|
19
|
-
onItemSelect?: ((item: DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
20
|
-
trigger?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownTrigger | undefined;
|
21
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownPlacement | undefined;
|
22
|
-
offset?: [number, number] | undefined;
|
23
|
-
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
24
|
-
hasArrow?: boolean | undefined;
|
25
|
-
closeOnSelect?: boolean | undefined;
|
26
|
-
closeOnOverlayClick?: boolean | undefined;
|
27
|
-
onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
|
28
|
-
size?: string | undefined;
|
29
|
-
view?: string | undefined;
|
30
|
-
variant?: "normal" | "tight" | undefined;
|
31
|
-
portal?: string | React.RefObject<HTMLElement> | undefined;
|
32
|
-
renderItem?: ((item: DropdownItemOption) => React.ReactNode) | undefined;
|
33
|
-
onItemClick?: ((item: DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
34
|
-
listOverflow?: import("csstype").Property.Overflow | undefined;
|
35
|
-
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
36
|
-
hoverIndex?: number | undefined;
|
37
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "view" | "size"> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
12
|
+
}> & import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownProps & import("react").RefAttributes<HTMLDivElement>>;
|
38
13
|
export { Dropdown };
|
@@ -5,15 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.Dropdown = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
-
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
9
8
|
var _Dropdown = /*#__PURE__*/require("./Dropdown.config");
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
12
9
|
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.dropdownConfig, _Dropdown.config);
|
13
|
-
var
|
14
|
-
var DropdownComponent = function DropdownComponent(props, ref) {
|
15
|
-
return /*#__PURE__*/_react["default"].createElement(DropdownNewHope, _extends({
|
16
|
-
ref: ref
|
17
|
-
}, props));
|
18
|
-
};
|
19
|
-
var Dropdown = exports.Dropdown = /*#__PURE__*/(0, _styledComponents.fixedForwardRef)(DropdownComponent);
|
10
|
+
var Dropdown = exports.Dropdown = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|