@salutejs/sdds-cs 0.317.1-canary.2008.15410012369.0 → 0.317.1-canary.2013.15560496949.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.
Files changed (113) hide show
  1. package/components/Accordion/Accordion.d.ts +9 -10
  2. package/components/Attach/Attach.d.ts +158 -159
  3. package/components/Autocomplete/Autocomplete.d.ts +352 -353
  4. package/components/Avatar/Avatar.d.ts +46 -47
  5. package/components/AvatarGroup/AvatarGroup.d.ts +1 -2
  6. package/components/Badge/Badge.d.ts +40 -41
  7. package/components/Breadcrumbs/Breadcrumbs.d.ts +3 -4
  8. package/components/Button/Button.d.ts +71 -71
  9. package/components/ButtonGroup/ButtonGroup.d.ts +0 -1
  10. package/components/Card/Card.d.ts +5 -6
  11. package/components/Carousel/Carousel.config.d.ts +14 -0
  12. package/components/Carousel/Carousel.config.js +23 -0
  13. package/components/Carousel/Carousel.d.ts +9 -0
  14. package/components/Carousel/Carousel.js +10 -0
  15. package/components/Carousel/index.d.ts +2 -0
  16. package/components/Carousel/index.js +19 -0
  17. package/components/Cell/Cell.d.ts +19 -20
  18. package/components/Checkbox/Checkbox.d.ts +1 -1
  19. package/components/Chip/Chip.d.ts +0 -1
  20. package/components/ChipGroup/ChipGroup.d.ts +0 -1
  21. package/components/Combobox/Combobox.config.js +3 -3
  22. package/components/Combobox/Combobox.d.ts +975 -951
  23. package/components/Counter/Counter.d.ts +0 -1
  24. package/components/DatePicker/DatePicker.d.ts +52 -54
  25. package/components/Divider/Divider.d.ts +0 -1
  26. package/components/Drawer/Drawer.d.ts +18 -19
  27. package/components/Dropdown/Dropdown.d.ts +52 -52
  28. package/components/Dropzone/Dropzone.d.ts +15 -16
  29. package/components/EmptyState/EmptyState.d.ts +0 -1
  30. package/components/Flow/Flow.d.ts +1 -2
  31. package/components/Grid/Grid.d.ts +0 -1
  32. package/components/IconButton/IconButton.d.ts +35 -36
  33. package/components/Image/Image.d.ts +3 -4
  34. package/components/Indicator/Indicator.d.ts +0 -1
  35. package/components/Link/Link.d.ts +1 -2
  36. package/components/Mask/Mask.d.ts +224 -225
  37. package/components/Notification/Notification.d.ts +7 -6
  38. package/components/Notification/Notification.js +3 -21
  39. package/components/Notification/index.d.ts +3 -2
  40. package/components/Notification/index.js +4 -3
  41. package/components/NumberFormat/NumberFormat.d.ts +1 -1
  42. package/components/NumberInput/NumberInput.d.ts +38 -39
  43. package/components/Pagination/Pagination.d.ts +0 -1
  44. package/components/Popover/Popover.d.ts +0 -1
  45. package/components/Price/Price.d.ts +0 -1
  46. package/components/Progress/Progress.d.ts +0 -1
  47. package/components/Radiobox/Radiobox.d.ts +1 -1
  48. package/components/Range/Range.d.ts +105 -106
  49. package/components/Rating/Rating.d.ts +13 -14
  50. package/components/Segment/Segment.d.ts +8 -9
  51. package/components/Select/Select.config.js +3 -3
  52. package/components/Select/Select.d.ts +247 -244
  53. package/components/Sheet/Sheet.d.ts +0 -1
  54. package/components/Skeleton/Skeleton.d.ts +4 -5
  55. package/components/Slider/Slider.d.ts +96 -105
  56. package/components/Spinner/Spinner.d.ts +9 -14
  57. package/components/Steps/Steps.d.ts +0 -1
  58. package/components/Switch/Switch.d.ts +1 -1
  59. package/components/Table/Table.config.js +3 -3
  60. package/components/Table/Table.d.ts +0 -1
  61. package/components/Tabs/TabItem.d.ts +23 -23
  62. package/components/Tabs/Tabs.d.ts +1 -1
  63. package/components/TextArea/TextArea.d.ts +205 -206
  64. package/components/TextField/TextField.d.ts +224 -225
  65. package/components/Toast/Toast.d.ts +0 -1
  66. package/components/ToastNew/ToastNew.d.ts +1 -1
  67. package/components/Tokens/Colors/Colors.styles.d.ts +25 -26
  68. package/components/Tokens/Typography/Typography.styles.d.ts +23 -24
  69. package/components/Toolbar/Toolbar.d.ts +5 -6
  70. package/components/Tree/Tree.d.ts +0 -1
  71. package/components/Typography/Typography.d.ts +204 -205
  72. package/components/ViewContainer/ViewContainer.d.ts +0 -1
  73. package/emotion/cjs/components/Carousel/Carousel.config.js +23 -0
  74. package/emotion/cjs/components/Carousel/Carousel.js +10 -0
  75. package/emotion/cjs/components/Carousel/Carousel.stories.tsx +138 -0
  76. package/emotion/cjs/components/Carousel/index.js +19 -0
  77. package/emotion/cjs/components/Combobox/Combobox.config.js +3 -3
  78. package/emotion/cjs/components/Combobox/Combobox.stories.tsx +186 -0
  79. package/emotion/cjs/components/DatePicker/DatePicker.stories.tsx +10 -2
  80. package/emotion/cjs/components/Notification/Notification.js +3 -21
  81. package/emotion/cjs/components/Notification/Notification.stories.tsx +3 -8
  82. package/emotion/cjs/components/Notification/index.js +4 -3
  83. package/emotion/cjs/components/Select/Select.config.js +3 -3
  84. package/emotion/cjs/components/Select/Select.stories.tsx +186 -0
  85. package/emotion/cjs/components/Table/Table.config.js +3 -3
  86. package/emotion/cjs/index.js +11 -0
  87. package/emotion/es/components/Carousel/Carousel.config.js +17 -0
  88. package/emotion/es/components/Carousel/Carousel.js +5 -0
  89. package/emotion/es/components/Carousel/Carousel.stories.tsx +138 -0
  90. package/emotion/es/components/Carousel/index.js +2 -0
  91. package/emotion/es/components/Combobox/Combobox.config.js +3 -3
  92. package/emotion/es/components/Combobox/Combobox.stories.tsx +186 -0
  93. package/emotion/es/components/DatePicker/DatePicker.stories.tsx +10 -2
  94. package/emotion/es/components/Notification/Notification.js +4 -5
  95. package/emotion/es/components/Notification/Notification.stories.tsx +3 -8
  96. package/emotion/es/components/Notification/index.js +2 -1
  97. package/emotion/es/components/Select/Select.config.js +3 -3
  98. package/emotion/es/components/Select/Select.stories.tsx +186 -0
  99. package/emotion/es/components/Table/Table.config.js +3 -3
  100. package/emotion/es/index.js +1 -0
  101. package/es/components/Carousel/Carousel.config.js +17 -0
  102. package/es/components/Carousel/Carousel.js +5 -0
  103. package/es/components/Carousel/index.js +2 -0
  104. package/es/components/Combobox/Combobox.config.js +3 -3
  105. package/es/components/Notification/Notification.js +4 -5
  106. package/es/components/Notification/index.js +2 -1
  107. package/es/components/Select/Select.config.js +3 -3
  108. package/es/components/Table/Table.config.js +3 -3
  109. package/es/index.js +1 -0
  110. package/index.d.ts +1 -0
  111. package/index.js +11 -0
  112. package/mixins/index.d.ts +1 -2
  113. package/package.json +7 -7
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
3
2
  view: {
4
3
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -27,41 +26,41 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
27
26
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
28
27
  };
29
28
  }> & {
30
- size?: string | undefined;
31
- view?: string | undefined;
32
- readOnly?: boolean | undefined;
33
- disabled?: boolean | undefined;
29
+ size?: string;
30
+ view?: string;
31
+ readOnly?: boolean;
32
+ disabled?: boolean;
34
33
  } & {
35
34
  titleCaption?: import("react").ReactNode;
36
35
  leftHelper?: import("react").ReactNode;
37
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
38
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
39
- textBefore?: string | undefined;
40
- textAfter?: string | undefined;
41
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
36
+ contentLeft?: React.ReactElement;
37
+ contentRight?: React.ReactElement;
38
+ textBefore?: string;
39
+ textAfter?: string;
40
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
42
41
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
43
- clear?: boolean | undefined;
44
- hasDivider?: boolean | undefined;
42
+ clear?: boolean;
43
+ hasDivider?: boolean;
45
44
  } & {
46
45
  hintText: string;
47
- hintTrigger?: "click" | "hover" | undefined;
48
- hintView?: string | undefined;
49
- hintSize?: string | undefined;
46
+ hintTrigger?: "hover" | "click";
47
+ hintView?: string;
48
+ hintSize?: string;
50
49
  hintTargetIcon?: import("react").ReactNode;
51
- hintTargetPlacement?: "outer" | "inner" | undefined;
52
- hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic[] | undefined;
53
- hintHasArrow?: boolean | undefined;
54
- hintOffset?: [number, number] | undefined;
55
- hintWidth?: string | undefined;
50
+ hintTargetPlacement?: "inner" | "outer";
51
+ hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
52
+ hintHasArrow?: boolean;
53
+ hintOffset?: [number, number];
54
+ hintWidth?: string;
56
55
  hintContentLeft?: import("react").ReactNode;
57
56
  } & {
58
- chips?: undefined;
59
- onChangeChips?: undefined;
60
- enumerationType?: "plain" | undefined;
61
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
62
- chipType?: undefined;
63
- chipView?: undefined;
64
- chipValidator?: undefined;
57
+ chips?: never;
58
+ onChangeChips?: never;
59
+ enumerationType?: "plain";
60
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
61
+ chipType?: never;
62
+ chipView?: never;
63
+ chipValidator?: never;
65
64
  } & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
66
65
  view: {
67
66
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -90,43 +89,43 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
90
89
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
91
90
  };
92
91
  }> & {
93
- size?: string | undefined;
94
- view?: string | undefined;
95
- readOnly?: boolean | undefined;
96
- disabled?: boolean | undefined;
92
+ size?: string;
93
+ view?: string;
94
+ readOnly?: boolean;
95
+ disabled?: boolean;
97
96
  } & {
98
97
  titleCaption?: import("react").ReactNode;
99
98
  leftHelper?: import("react").ReactNode;
100
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
101
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
102
- textBefore?: string | undefined;
103
- textAfter?: string | undefined;
104
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
99
+ contentLeft?: React.ReactElement;
100
+ contentRight?: React.ReactElement;
101
+ textBefore?: string;
102
+ textAfter?: string;
103
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
105
104
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
106
- clear?: boolean | undefined;
107
- hasDivider?: boolean | undefined;
105
+ clear?: boolean;
106
+ hasDivider?: boolean;
108
107
  } & {
109
108
  hintText: string;
110
- hintTrigger?: "click" | "hover" | undefined;
111
- hintView?: string | undefined;
112
- hintSize?: string | undefined;
109
+ hintTrigger?: "hover" | "click";
110
+ hintView?: string;
111
+ hintSize?: string;
113
112
  hintTargetIcon?: import("react").ReactNode;
114
- hintTargetPlacement?: "outer" | "inner" | undefined;
115
- hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic[] | undefined;
116
- hintHasArrow?: boolean | undefined;
117
- hintOffset?: [number, number] | undefined;
118
- hintWidth?: string | undefined;
113
+ hintTargetPlacement?: "inner" | "outer";
114
+ hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
115
+ hintHasArrow?: boolean;
116
+ hintOffset?: [number, number];
117
+ hintWidth?: string;
119
118
  hintContentLeft?: import("react").ReactNode;
120
119
  } & {
121
120
  enumerationType: "chip";
122
- onSearch?: undefined;
123
- chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
124
- onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
125
- chipType?: "text" | "default" | undefined;
126
- chipView?: string | undefined;
127
- chipValidator?: ((value: string) => {
128
- view?: string | undefined;
129
- }) | undefined;
121
+ onSearch?: never;
122
+ chips?: Array<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue>;
123
+ onChangeChips?: (value: Array<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue>) => void;
124
+ chipType?: "default" | "text";
125
+ chipView?: string;
126
+ chipValidator?: (value: string) => {
127
+ view?: string;
128
+ };
130
129
  } & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
131
130
  view: {
132
131
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -155,41 +154,41 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
155
154
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
156
155
  };
157
156
  }> & {
158
- size?: string | undefined;
159
- view?: string | undefined;
160
- readOnly?: boolean | undefined;
161
- disabled?: boolean | undefined;
157
+ size?: string;
158
+ view?: string;
159
+ readOnly?: boolean;
160
+ disabled?: boolean;
162
161
  } & {
163
162
  titleCaption?: import("react").ReactNode;
164
163
  leftHelper?: import("react").ReactNode;
165
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
166
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
167
- textBefore?: string | undefined;
168
- textAfter?: string | undefined;
169
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
164
+ contentLeft?: React.ReactElement;
165
+ contentRight?: React.ReactElement;
166
+ textBefore?: string;
167
+ textAfter?: string;
168
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
170
169
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
171
- clear?: boolean | undefined;
172
- hasDivider?: boolean | undefined;
170
+ clear?: boolean;
171
+ hasDivider?: boolean;
173
172
  } & {
174
- hintTrigger?: undefined;
175
- hintText?: undefined;
176
- hintView?: undefined;
177
- hintSize?: undefined;
178
- hintTargetIcon?: undefined;
179
- hintTargetPlacement?: undefined;
180
- hintPlacement?: undefined;
181
- hintHasArrow?: undefined;
182
- hintOffset?: undefined;
183
- hintWidth?: undefined;
184
- hintContentLeft?: undefined;
173
+ hintTrigger?: never;
174
+ hintText?: never;
175
+ hintView?: never;
176
+ hintSize?: never;
177
+ hintTargetIcon?: never;
178
+ hintTargetPlacement?: never;
179
+ hintPlacement?: never;
180
+ hintHasArrow?: never;
181
+ hintOffset?: never;
182
+ hintWidth?: never;
183
+ hintContentLeft?: never;
185
184
  } & {
186
- chips?: undefined;
187
- onChangeChips?: undefined;
188
- enumerationType?: "plain" | undefined;
189
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
190
- chipType?: undefined;
191
- chipView?: undefined;
192
- chipValidator?: undefined;
185
+ chips?: never;
186
+ onChangeChips?: never;
187
+ enumerationType?: "plain";
188
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
189
+ chipType?: never;
190
+ chipView?: never;
191
+ chipValidator?: never;
193
192
  } & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
194
193
  view: {
195
194
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -218,43 +217,43 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
218
217
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
219
218
  };
220
219
  }> & {
221
- size?: string | undefined;
222
- view?: string | undefined;
223
- readOnly?: boolean | undefined;
224
- disabled?: boolean | undefined;
220
+ size?: string;
221
+ view?: string;
222
+ readOnly?: boolean;
223
+ disabled?: boolean;
225
224
  } & {
226
225
  titleCaption?: import("react").ReactNode;
227
226
  leftHelper?: import("react").ReactNode;
228
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
229
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
230
- textBefore?: string | undefined;
231
- textAfter?: string | undefined;
232
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
227
+ contentLeft?: React.ReactElement;
228
+ contentRight?: React.ReactElement;
229
+ textBefore?: string;
230
+ textAfter?: string;
231
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
233
232
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
234
- clear?: boolean | undefined;
235
- hasDivider?: boolean | undefined;
233
+ clear?: boolean;
234
+ hasDivider?: boolean;
236
235
  } & {
237
- hintTrigger?: undefined;
238
- hintText?: undefined;
239
- hintView?: undefined;
240
- hintSize?: undefined;
241
- hintTargetIcon?: undefined;
242
- hintTargetPlacement?: undefined;
243
- hintPlacement?: undefined;
244
- hintHasArrow?: undefined;
245
- hintOffset?: undefined;
246
- hintWidth?: undefined;
247
- hintContentLeft?: undefined;
236
+ hintTrigger?: never;
237
+ hintText?: never;
238
+ hintView?: never;
239
+ hintSize?: never;
240
+ hintTargetIcon?: never;
241
+ hintTargetPlacement?: never;
242
+ hintPlacement?: never;
243
+ hintHasArrow?: never;
244
+ hintOffset?: never;
245
+ hintWidth?: never;
246
+ hintContentLeft?: never;
248
247
  } & {
249
248
  enumerationType: "chip";
250
- onSearch?: undefined;
251
- chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
252
- onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
253
- chipType?: "text" | "default" | undefined;
254
- chipView?: string | undefined;
255
- chipValidator?: ((value: string) => {
256
- view?: string | undefined;
257
- }) | undefined;
249
+ onSearch?: never;
250
+ chips?: Array<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue>;
251
+ onChangeChips?: (value: Array<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue>) => void;
252
+ chipType?: "default" | "text";
253
+ chipView?: string;
254
+ chipValidator?: (value: string) => {
255
+ view?: string;
256
+ };
258
257
  } & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
259
258
  view: {
260
259
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -283,41 +282,41 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
283
282
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
284
283
  };
285
284
  }> & {
286
- size?: string | undefined;
287
- view?: string | undefined;
288
- readOnly?: boolean | undefined;
289
- disabled?: boolean | undefined;
285
+ size?: string;
286
+ view?: string;
287
+ readOnly?: boolean;
288
+ disabled?: boolean;
290
289
  } & {
291
290
  titleCaption?: import("react").ReactNode;
292
291
  leftHelper?: import("react").ReactNode;
293
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
294
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
295
- textBefore?: string | undefined;
296
- textAfter?: string | undefined;
297
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
292
+ contentLeft?: React.ReactElement;
293
+ contentRight?: React.ReactElement;
294
+ textBefore?: string;
295
+ textAfter?: string;
296
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
298
297
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
299
- clear?: false | undefined;
300
- hasDivider?: undefined;
298
+ clear?: false;
299
+ hasDivider?: never;
301
300
  } & {
302
301
  hintText: string;
303
- hintTrigger?: "click" | "hover" | undefined;
304
- hintView?: string | undefined;
305
- hintSize?: string | undefined;
302
+ hintTrigger?: "hover" | "click";
303
+ hintView?: string;
304
+ hintSize?: string;
306
305
  hintTargetIcon?: import("react").ReactNode;
307
- hintTargetPlacement?: "outer" | "inner" | undefined;
308
- hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic[] | undefined;
309
- hintHasArrow?: boolean | undefined;
310
- hintOffset?: [number, number] | undefined;
311
- hintWidth?: string | undefined;
306
+ hintTargetPlacement?: "inner" | "outer";
307
+ hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
308
+ hintHasArrow?: boolean;
309
+ hintOffset?: [number, number];
310
+ hintWidth?: string;
312
311
  hintContentLeft?: import("react").ReactNode;
313
312
  } & {
314
- chips?: undefined;
315
- onChangeChips?: undefined;
316
- enumerationType?: "plain" | undefined;
317
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
318
- chipType?: undefined;
319
- chipView?: undefined;
320
- chipValidator?: undefined;
313
+ chips?: never;
314
+ onChangeChips?: never;
315
+ enumerationType?: "plain";
316
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
317
+ chipType?: never;
318
+ chipView?: never;
319
+ chipValidator?: never;
321
320
  } & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
322
321
  view: {
323
322
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -346,43 +345,43 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
346
345
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
347
346
  };
348
347
  }> & {
349
- size?: string | undefined;
350
- view?: string | undefined;
351
- readOnly?: boolean | undefined;
352
- disabled?: boolean | undefined;
348
+ size?: string;
349
+ view?: string;
350
+ readOnly?: boolean;
351
+ disabled?: boolean;
353
352
  } & {
354
353
  titleCaption?: import("react").ReactNode;
355
354
  leftHelper?: import("react").ReactNode;
356
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
357
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
358
- textBefore?: string | undefined;
359
- textAfter?: string | undefined;
360
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
355
+ contentLeft?: React.ReactElement;
356
+ contentRight?: React.ReactElement;
357
+ textBefore?: string;
358
+ textAfter?: string;
359
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
361
360
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
362
- clear?: false | undefined;
363
- hasDivider?: undefined;
361
+ clear?: false;
362
+ hasDivider?: never;
364
363
  } & {
365
364
  hintText: string;
366
- hintTrigger?: "click" | "hover" | undefined;
367
- hintView?: string | undefined;
368
- hintSize?: string | undefined;
365
+ hintTrigger?: "hover" | "click";
366
+ hintView?: string;
367
+ hintSize?: string;
369
368
  hintTargetIcon?: import("react").ReactNode;
370
- hintTargetPlacement?: "outer" | "inner" | undefined;
371
- hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic[] | undefined;
372
- hintHasArrow?: boolean | undefined;
373
- hintOffset?: [number, number] | undefined;
374
- hintWidth?: string | undefined;
369
+ hintTargetPlacement?: "inner" | "outer";
370
+ hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
371
+ hintHasArrow?: boolean;
372
+ hintOffset?: [number, number];
373
+ hintWidth?: string;
375
374
  hintContentLeft?: import("react").ReactNode;
376
375
  } & {
377
376
  enumerationType: "chip";
378
- onSearch?: undefined;
379
- chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
380
- onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
381
- chipType?: "text" | "default" | undefined;
382
- chipView?: string | undefined;
383
- chipValidator?: ((value: string) => {
384
- view?: string | undefined;
385
- }) | undefined;
377
+ onSearch?: never;
378
+ chips?: Array<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue>;
379
+ onChangeChips?: (value: Array<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue>) => void;
380
+ chipType?: "default" | "text";
381
+ chipView?: string;
382
+ chipValidator?: (value: string) => {
383
+ view?: string;
384
+ };
386
385
  } & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
387
386
  view: {
388
387
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -411,41 +410,41 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
411
410
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
412
411
  };
413
412
  }> & {
414
- size?: string | undefined;
415
- view?: string | undefined;
416
- readOnly?: boolean | undefined;
417
- disabled?: boolean | undefined;
413
+ size?: string;
414
+ view?: string;
415
+ readOnly?: boolean;
416
+ disabled?: boolean;
418
417
  } & {
419
418
  titleCaption?: import("react").ReactNode;
420
419
  leftHelper?: import("react").ReactNode;
421
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
422
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
423
- textBefore?: string | undefined;
424
- textAfter?: string | undefined;
425
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
420
+ contentLeft?: React.ReactElement;
421
+ contentRight?: React.ReactElement;
422
+ textBefore?: string;
423
+ textAfter?: string;
424
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
426
425
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
427
- clear?: false | undefined;
428
- hasDivider?: undefined;
426
+ clear?: false;
427
+ hasDivider?: never;
429
428
  } & {
430
- hintTrigger?: undefined;
431
- hintText?: undefined;
432
- hintView?: undefined;
433
- hintSize?: undefined;
434
- hintTargetIcon?: undefined;
435
- hintTargetPlacement?: undefined;
436
- hintPlacement?: undefined;
437
- hintHasArrow?: undefined;
438
- hintOffset?: undefined;
439
- hintWidth?: undefined;
440
- hintContentLeft?: undefined;
429
+ hintTrigger?: never;
430
+ hintText?: never;
431
+ hintView?: never;
432
+ hintSize?: never;
433
+ hintTargetIcon?: never;
434
+ hintTargetPlacement?: never;
435
+ hintPlacement?: never;
436
+ hintHasArrow?: never;
437
+ hintOffset?: never;
438
+ hintWidth?: never;
439
+ hintContentLeft?: never;
441
440
  } & {
442
- chips?: undefined;
443
- onChangeChips?: undefined;
444
- enumerationType?: "plain" | undefined;
445
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
446
- chipType?: undefined;
447
- chipView?: undefined;
448
- chipValidator?: undefined;
441
+ chips?: never;
442
+ onChangeChips?: never;
443
+ enumerationType?: "plain";
444
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
445
+ chipType?: never;
446
+ chipView?: never;
447
+ chipValidator?: never;
449
448
  } & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
450
449
  view: {
451
450
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -474,41 +473,41 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
474
473
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
475
474
  };
476
475
  }> & {
477
- size?: string | undefined;
478
- view?: string | undefined;
479
- readOnly?: boolean | undefined;
480
- disabled?: boolean | undefined;
476
+ size?: string;
477
+ view?: string;
478
+ readOnly?: boolean;
479
+ disabled?: boolean;
481
480
  } & {
482
481
  titleCaption?: import("react").ReactNode;
483
482
  leftHelper?: import("react").ReactNode;
484
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
485
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
486
- textBefore?: string | undefined;
487
- textAfter?: string | undefined;
488
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
483
+ contentLeft?: React.ReactElement;
484
+ contentRight?: React.ReactElement;
485
+ textBefore?: string;
486
+ textAfter?: string;
487
+ onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
489
488
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
490
- clear?: false | undefined;
491
- hasDivider?: undefined;
489
+ clear?: false;
490
+ hasDivider?: never;
492
491
  } & {
493
- hintTrigger?: undefined;
494
- hintText?: undefined;
495
- hintView?: undefined;
496
- hintSize?: undefined;
497
- hintTargetIcon?: undefined;
498
- hintTargetPlacement?: undefined;
499
- hintPlacement?: undefined;
500
- hintHasArrow?: undefined;
501
- hintOffset?: undefined;
502
- hintWidth?: undefined;
503
- hintContentLeft?: undefined;
492
+ hintTrigger?: never;
493
+ hintText?: never;
494
+ hintView?: never;
495
+ hintSize?: never;
496
+ hintTargetIcon?: never;
497
+ hintTargetPlacement?: never;
498
+ hintPlacement?: never;
499
+ hintHasArrow?: never;
500
+ hintOffset?: never;
501
+ hintWidth?: never;
502
+ hintContentLeft?: never;
504
503
  } & {
505
504
  enumerationType: "chip";
506
- onSearch?: undefined;
507
- chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
508
- onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
509
- chipType?: "text" | "default" | undefined;
510
- chipView?: string | undefined;
511
- chipValidator?: ((value: string) => {
512
- view?: string | undefined;
513
- }) | undefined;
505
+ onSearch?: never;
506
+ chips?: Array<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue>;
507
+ onChangeChips?: (value: Array<import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue>) => void;
508
+ chipType?: "default" | "text";
509
+ chipView?: string;
510
+ chipValidator?: (value: string) => {
511
+ view?: string;
512
+ };
514
513
  } & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref">) & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,7 +1,7 @@
1
- import React, { ReactNode } from 'react';
2
- import { NotificationProps, NotificationIconPlacement, NotificationPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
3
- export { modalClasses } from '../Modal';
4
- export declare const Notification: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
1
+ import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';
2
+ import { NotificationProps as NotificationPropsNewHope, NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
3
+ export type { NotificationPlacement };
4
+ export declare const NotificationNewHope: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
5
5
  view: {
6
6
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
7
  };
@@ -17,11 +17,12 @@ export declare const Notification: React.FunctionComponent<import("@salutejs/pla
17
17
  thin: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
18
18
  };
19
19
  }> & (React.HTMLAttributes<HTMLElement> | import("@salutejs/plasma-new-hope/types/engines/types").HTMLAttributesWithoutOnChange<HTMLElement> | import("@salutejs/plasma-new-hope/types/engines/types").HTMLAttributesWithoutOnChangeAndDefaultValue<HTMLElement>)>;
20
+ type ConfigProps = 'size' | 'view' | 'layout' | 'closeIconType';
21
+ type NotificationProps = Pick<ComponentProps<typeof NotificationNewHope>, ConfigProps> & Omit<NotificationPropsNewHope, ConfigProps>;
22
+ export declare const Notification: ForwardRefExoticComponent<NotificationProps>;
20
23
  export declare const NotificationsProvider: React.FC<{
21
24
  children: ReactNode;
22
25
  frame?: string;
23
26
  placement?: NotificationPlacement;
24
27
  UNSAFE_SSR_ENABLED?: boolean;
25
28
  }>;
26
- export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
27
- export { addNotification, closeNotification };
@@ -3,32 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.NotificationsProvider = exports.Notification = void 0;
7
- Object.defineProperty(exports, "addNotification", {
8
- enumerable: true,
9
- get: function get() {
10
- return _styledComponents.addNotification;
11
- }
12
- });
13
- Object.defineProperty(exports, "closeNotification", {
14
- enumerable: true,
15
- get: function get() {
16
- return _styledComponents.closeNotification;
17
- }
18
- });
19
- Object.defineProperty(exports, "modalClasses", {
20
- enumerable: true,
21
- get: function get() {
22
- return _Modal.modalClasses;
23
- }
24
- });
6
+ exports.NotificationsProvider = exports.NotificationNewHope = exports.Notification = void 0;
25
7
  var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
26
8
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
27
9
  var _Notification = /*#__PURE__*/require("./Notification.config");
28
- var _Modal = /*#__PURE__*/require("../Modal");
29
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
30
11
  var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.notificationConfig, _Notification.config);
31
- var Notification = exports.Notification = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
12
+ var NotificationNewHope = exports.NotificationNewHope = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
13
+ var Notification = exports.Notification = NotificationNewHope;
32
14
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
33
15
  var children = _ref.children,
34
16
  _ref$frame = _ref.frame,