@salutejs/sdds-finportal 0.169.0-canary.1546.11913646617.0 → 0.169.0-canary.1556.11929098791.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,53 @@ export declare const DatePicker: import("react").FunctionComponent<import("@salu
15
15
  readOnly: {
16
16
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
17
  };
18
- }> & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerVariationProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerTextFieldProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerCalendarProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerPopoverProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, "defaultValue"> & import("react").RefAttributes<HTMLInputElement>>;
18
+ }> & ((import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerVariationProps & {
19
+ defaultDate?: Date | undefined;
20
+ placeholder?: string | undefined;
21
+ name?: string | undefined;
22
+ valueError?: boolean | undefined;
23
+ valueSuccess?: boolean | undefined;
24
+ leftHelper?: string | undefined;
25
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
26
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
27
+ textBefore?: string | undefined;
28
+ textAfter?: string | undefined;
29
+ onCommitDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("@salutejs/plasma-new-hope/types/components/Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
30
+ onChangeValue?: ((event: import("react").SyntheticEvent<HTMLInputElement, Event> | null, value?: string | undefined) => void) | undefined;
31
+ onChange?: ((event: {
32
+ target: {
33
+ value?: string | undefined;
34
+ name?: string | undefined;
35
+ };
36
+ }) => void) | undefined;
37
+ } & {
38
+ label?: string | undefined;
39
+ labelPlacement: "inner";
40
+ hasPlaceholder?: boolean | undefined;
41
+ } & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerCalendarProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerPopoverProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, "defaultValue"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerVariationProps & {
42
+ defaultDate?: Date | undefined;
43
+ placeholder?: string | undefined;
44
+ name?: string | undefined;
45
+ valueError?: boolean | undefined;
46
+ valueSuccess?: boolean | undefined;
47
+ leftHelper?: string | undefined;
48
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
49
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
50
+ textBefore?: string | undefined;
51
+ textAfter?: string | undefined;
52
+ onCommitDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("@salutejs/plasma-new-hope/types/components/Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
53
+ onChangeValue?: ((event: import("react").SyntheticEvent<HTMLInputElement, Event> | null, value?: string | undefined) => void) | undefined;
54
+ onChange?: ((event: {
55
+ target: {
56
+ value?: string | undefined;
57
+ name?: string | undefined;
58
+ };
59
+ }) => void) | undefined;
60
+ } & {
61
+ label?: string | undefined;
62
+ labelPlacement?: "outer" | undefined;
63
+ hasPlaceholder?: undefined;
64
+ } & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerCalendarProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerPopoverProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, "defaultValue"> & import("react").RefAttributes<HTMLInputElement>))>;
19
65
  export declare const DatePickerRange: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
20
66
  view: {
21
67
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- declare const Dropdown: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
1
+ import type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';
2
+ import React from 'react';
3
+ declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "view" | "size"> & Pick<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
3
4
  size: {
4
5
  l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
6
  m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -9,5 +10,29 @@ declare const Dropdown: import("react").FunctionComponent<import("@salutejs/plas
9
10
  view: {
10
11
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
12
  };
12
- }> & import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownProps & import("react").RefAttributes<HTMLDivElement>>;
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;
13
38
  export { Dropdown };
@@ -5,6 +5,15 @@ 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"));
8
9
  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); }
9
12
  var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.dropdownConfig, _Dropdown.config);
10
- var Dropdown = exports.Dropdown = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
13
+ var DropdownNewHope = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
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);