@salutejs/plasma-web 1.583.1-canary.2008.15410012369.0 → 1.583.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 (149) 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 +344 -345
  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 +35 -36
  9. package/components/ButtonGroup/ButtonGroup.d.ts +0 -4
  10. package/components/Carousel/Carousel.config.d.ts +14 -0
  11. package/components/Carousel/Carousel.config.js +23 -0
  12. package/components/Carousel/Carousel.d.ts +19 -5
  13. package/components/Carousel/Carousel.js +18 -3
  14. package/components/Carousel/Legacy/Carousel.d.ts +4 -0
  15. package/components/Carousel/{Carousel.examples.d.ts → Legacy/Carousel.examples.d.ts} +1 -1
  16. package/components/Carousel/{Carousel.examples.js → Legacy/Carousel.examples.js} +5 -5
  17. package/components/Carousel/Legacy/Carousel.js +10 -0
  18. package/components/Carousel/index.d.ts +2 -3
  19. package/components/Cell/Cell.d.ts +19 -20
  20. package/components/Checkbox/Checkbox.d.ts +1 -1
  21. package/components/Chip/Chip.d.ts +0 -1
  22. package/components/ChipGroup/ChipGroup.d.ts +0 -1
  23. package/components/CodeField/CodeField.d.ts +18 -19
  24. package/components/Combobox/Combobox.config.js +8 -8
  25. package/components/Combobox/Combobox.d.ts +977 -953
  26. package/components/Combobox/Legacy/Combobox.d.ts +36 -37
  27. package/components/Counter/Counter.d.ts +0 -1
  28. package/components/DatePicker/DatePicker.d.ts +52 -54
  29. package/components/Divider/Divider.d.ts +0 -1
  30. package/components/Drawer/Drawer.d.ts +18 -19
  31. package/components/Dropdown/Dropdown.d.ts +52 -52
  32. package/components/Dropdown/components/DropdownItem.d.ts +14 -14
  33. package/components/Dropzone/Dropzone.d.ts +15 -16
  34. package/components/Editable/Editable.d.ts +0 -1
  35. package/components/EmptyState/EmptyState.d.ts +0 -1
  36. package/components/Flow/Flow.d.ts +1 -2
  37. package/components/Grid/Grid.d.ts +0 -1
  38. package/components/IconButton/IconButton.d.ts +35 -36
  39. package/components/Image/Image.d.ts +3 -4
  40. package/components/Indicator/Indicator.d.ts +0 -1
  41. package/components/Link/Link.d.ts +0 -1
  42. package/components/LinkButton/LinkButton.d.ts +8 -9
  43. package/components/List/List.d.ts +4 -5
  44. package/components/Mask/Mask.d.ts +224 -225
  45. package/components/Note/Note.d.ts +11 -12
  46. package/components/Notification/Notification.d.ts +6 -3
  47. package/components/Notification/Notification.js +3 -2
  48. package/components/Notification/index.d.ts +1 -1
  49. package/components/NumberFormat/NumberFormat.d.ts +1 -1
  50. package/components/NumberInput/NumberInput.d.ts +38 -39
  51. package/components/Pagination/Pagination.d.ts +0 -1
  52. package/components/Popover/Popover.d.ts +0 -1
  53. package/components/Price/Price.d.ts +0 -1
  54. package/components/Progress/Progress.d.ts +0 -1
  55. package/components/Radiobox/Radiobox.d.ts +1 -1
  56. package/components/Range/Range.d.ts +105 -106
  57. package/components/Rating/Rating.d.ts +13 -14
  58. package/components/Segment/Segment.d.ts +8 -9
  59. package/components/Select/Select.config.js +14 -14
  60. package/components/Select/Select.d.ts +247 -244
  61. package/components/Sheet/Sheet.d.ts +0 -1
  62. package/components/Skeleton/Skeleton.d.ts +4 -5
  63. package/components/Slider/Slider.d.ts +96 -105
  64. package/components/Steps/Steps.d.ts +0 -1
  65. package/components/Switch/Switch.d.ts +1 -1
  66. package/components/Table/Table.config.js +3 -3
  67. package/components/Table/Table.d.ts +0 -1
  68. package/components/Tabs/TabItem.d.ts +14 -14
  69. package/components/Tabs/Tabs.d.ts +5 -7
  70. package/components/TextArea/TextArea.config.js +4 -4
  71. package/components/TextArea/TextArea.d.ts +205 -206
  72. package/components/TextArea/index.d.ts +4 -4
  73. package/components/TextField/TextField.d.ts +261 -269
  74. package/components/TextFieldGroup/TextFieldGroup.d.ts +12 -13
  75. package/components/Toast/Toast.d.ts +0 -1
  76. package/components/Tokens/Colors/Colors.styles.d.ts +25 -26
  77. package/components/Tokens/Typography/Typography.styles.d.ts +23 -24
  78. package/components/Toolbar/Toolbar.d.ts +5 -6
  79. package/components/Tree/Tree.d.ts +0 -1
  80. package/components/Typography/Old/index.d.ts +36 -37
  81. package/components/Typography/Typography.d.ts +204 -205
  82. package/css/cjs/components/Carousel/Carousel.config.js +22 -0
  83. package/css/cjs/components/Carousel/Carousel.config.js.map +1 -0
  84. package/css/cjs/components/Carousel/Carousel.config_1r461vi.css +2 -0
  85. package/css/cjs/components/Carousel/Carousel.css +2 -0
  86. package/css/cjs/components/Carousel/Carousel.js +21 -3
  87. package/css/cjs/components/Carousel/Carousel.js.map +1 -1
  88. package/css/cjs/components/Carousel/Legacy/Carousel.js +12 -0
  89. package/css/cjs/components/Carousel/Legacy/Carousel.js.map +1 -0
  90. package/css/cjs/components/Combobox/Combobox.config.js +1 -1
  91. package/css/cjs/components/Combobox/Combobox.config.js.map +1 -1
  92. package/css/{es/components/Combobox/Combobox.config_i068pn.css → cjs/components/Combobox/Combobox.config_16vxdhl.css} +8 -8
  93. package/css/cjs/components/Combobox/Combobox.css +14 -14
  94. package/css/cjs/components/Notification/Notification.js +3 -1
  95. package/css/cjs/components/Notification/Notification.js.map +1 -1
  96. package/css/cjs/components/Select/Select.config.js +1 -1
  97. package/css/cjs/components/Select/Select.config.js.map +1 -1
  98. package/css/{es/components/Select/Select.config_1kk8sph.css → cjs/components/Select/Select.config_14aqv25.css} +14 -14
  99. package/css/cjs/components/Select/Select.css +23 -23
  100. package/css/cjs/components/Table/Table.config.js +1 -1
  101. package/css/cjs/components/Table/Table.config.js.map +1 -1
  102. package/css/cjs/components/Table/Table.config_11seey5.css +5 -0
  103. package/css/cjs/components/Table/Table.css +5 -5
  104. package/css/cjs/components/TextArea/TextArea.config.js +1 -1
  105. package/css/cjs/components/TextArea/TextArea.config.js.map +1 -1
  106. package/css/cjs/components/TextArea/{TextArea.config_si8t6e.css → TextArea.config_ww37fs.css} +4 -4
  107. package/css/cjs/components/TextArea/TextArea.css +14 -14
  108. package/css/cjs/index.css +62 -59
  109. package/css/es/components/Carousel/Carousel.config.js +18 -0
  110. package/css/es/components/Carousel/Carousel.config.js.map +1 -0
  111. package/css/es/components/Carousel/Carousel.config_1r461vi.css +2 -0
  112. package/css/es/components/Carousel/Carousel.css +2 -0
  113. package/css/es/components/Carousel/Carousel.js +18 -4
  114. package/css/es/components/Carousel/Carousel.js.map +1 -1
  115. package/css/es/components/Carousel/Legacy/Carousel.js +8 -0
  116. package/css/es/components/Carousel/Legacy/Carousel.js.map +1 -0
  117. package/css/es/components/Combobox/Combobox.config.js +1 -1
  118. package/css/es/components/Combobox/Combobox.config.js.map +1 -1
  119. package/css/{cjs/components/Combobox/Combobox.config_i068pn.css → es/components/Combobox/Combobox.config_16vxdhl.css} +8 -8
  120. package/css/es/components/Combobox/Combobox.css +14 -14
  121. package/css/es/components/Notification/Notification.js +4 -3
  122. package/css/es/components/Notification/Notification.js.map +1 -1
  123. package/css/es/components/Select/Select.config.js +1 -1
  124. package/css/es/components/Select/Select.config.js.map +1 -1
  125. package/css/{cjs/components/Select/Select.config_1kk8sph.css → es/components/Select/Select.config_14aqv25.css} +14 -14
  126. package/css/es/components/Select/Select.css +23 -23
  127. package/css/es/components/Table/Table.config.js +1 -1
  128. package/css/es/components/Table/Table.config.js.map +1 -1
  129. package/css/es/components/Table/Table.config_11seey5.css +5 -0
  130. package/css/es/components/Table/Table.css +5 -5
  131. package/css/es/components/TextArea/TextArea.config.js +1 -1
  132. package/css/es/components/TextArea/TextArea.config.js.map +1 -1
  133. package/css/es/components/TextArea/{TextArea.config_si8t6e.css → TextArea.config_ww37fs.css} +4 -4
  134. package/css/es/components/TextArea/TextArea.css +14 -14
  135. package/css/es/index.css +62 -59
  136. package/es/components/Carousel/Carousel.config.js +17 -0
  137. package/es/components/Carousel/Carousel.js +19 -4
  138. package/es/components/Carousel/{Carousel.examples.js → Legacy/Carousel.examples.js} +5 -5
  139. package/es/components/Carousel/Legacy/Carousel.js +4 -0
  140. package/es/components/Carousel/index.js +2 -2
  141. package/es/components/Combobox/Combobox.config.js +8 -8
  142. package/es/components/Notification/Notification.js +2 -1
  143. package/es/components/Select/Select.config.js +14 -14
  144. package/es/components/Table/Table.config.js +3 -3
  145. package/es/components/TextArea/TextArea.config.js +4 -4
  146. package/mixins/index.d.ts +1 -2
  147. package/package.json +11 -11
  148. package/css/cjs/components/Table/Table.config_lk2ssy.css +0 -5
  149. package/css/es/components/Table/Table.config_lk2ssy.css +0 -5
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components").ComponentConfig<string, {
3
2
  view: {
4
3
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -64,17 +63,17 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
64
63
  light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
65
64
  };
66
65
  }>, (import("react").HTMLAttributes<HTMLDivElement> & {
67
- size?: string | undefined;
68
- name?: string | undefined;
69
- url?: string | undefined;
70
- customText?: string | undefined;
71
- status?: "active" | "inactive" | undefined;
72
- isScalable?: boolean | undefined;
73
- focused?: boolean | undefined;
74
- statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels | undefined;
75
- hasExtra?: boolean | undefined;
76
- type?: "badge" | "counter" | undefined;
77
- extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
66
+ size?: string;
67
+ name?: string;
68
+ url?: string;
69
+ customText?: string;
70
+ status?: "active" | "inactive";
71
+ isScalable?: boolean;
72
+ focused?: boolean;
73
+ statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels;
74
+ hasExtra?: boolean;
75
+ type?: "badge" | "counter";
76
+ extraPlacement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
78
77
  } & {
79
78
  badgeView?: string | undefined;
80
79
  pilled?: boolean | undefined;
@@ -88,17 +87,17 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
88
87
  count?: undefined;
89
88
  maxCount?: undefined;
90
89
  } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
91
- size?: string | undefined;
92
- name?: string | undefined;
93
- url?: string | undefined;
94
- customText?: string | undefined;
95
- status?: "active" | "inactive" | undefined;
96
- isScalable?: boolean | undefined;
97
- focused?: boolean | undefined;
98
- statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels | undefined;
99
- hasExtra?: boolean | undefined;
100
- type?: "badge" | "counter" | undefined;
101
- extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
90
+ size?: string;
91
+ name?: string;
92
+ url?: string;
93
+ customText?: string;
94
+ status?: "active" | "inactive";
95
+ isScalable?: boolean;
96
+ focused?: boolean;
97
+ statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels;
98
+ hasExtra?: boolean;
99
+ type?: "badge" | "counter";
100
+ extraPlacement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
102
101
  } & {
103
102
  counterView?: string | undefined;
104
103
  count?: number | undefined;
@@ -108,7 +107,7 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
108
107
  pilled?: undefined;
109
108
  text?: undefined;
110
109
  contentLeft?: undefined;
111
- contentRight?: undefined;
110
+ contentRight?: never | undefined;
112
111
  customColor?: undefined;
113
112
  customBackgroundColor?: undefined;
114
113
  } & import("react").RefAttributes<HTMLDivElement>)>;
@@ -145,17 +144,17 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
145
144
  light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
146
145
  };
147
146
  }> & ((import("react").HTMLAttributes<HTMLDivElement> & {
148
- size?: string | undefined;
149
- name?: string | undefined;
150
- url?: string | undefined;
151
- customText?: string | undefined;
152
- status?: "active" | "inactive" | undefined;
153
- isScalable?: boolean | undefined;
154
- focused?: boolean | undefined;
155
- statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels | undefined;
156
- hasExtra?: boolean | undefined;
157
- type?: "badge" | "counter" | undefined;
158
- extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
147
+ size?: string;
148
+ name?: string;
149
+ url?: string;
150
+ customText?: string;
151
+ status?: "active" | "inactive";
152
+ isScalable?: boolean;
153
+ focused?: boolean;
154
+ statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels;
155
+ hasExtra?: boolean;
156
+ type?: "badge" | "counter";
157
+ extraPlacement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
159
158
  } & {
160
159
  badgeView?: string | undefined;
161
160
  pilled?: boolean | undefined;
@@ -169,17 +168,17 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
169
168
  count?: undefined;
170
169
  maxCount?: undefined;
171
170
  } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
172
- size?: string | undefined;
173
- name?: string | undefined;
174
- url?: string | undefined;
175
- customText?: string | undefined;
176
- status?: "active" | "inactive" | undefined;
177
- isScalable?: boolean | undefined;
178
- focused?: boolean | undefined;
179
- statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels | undefined;
180
- hasExtra?: boolean | undefined;
181
- type?: "badge" | "counter" | undefined;
182
- extraPlacement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
171
+ size?: string;
172
+ name?: string;
173
+ url?: string;
174
+ customText?: string;
175
+ status?: "active" | "inactive";
176
+ isScalable?: boolean;
177
+ focused?: boolean;
178
+ statusLabels?: import("@salutejs/plasma-new-hope/types/components/Avatar/Avatar.types").StatusLabels;
179
+ hasExtra?: boolean;
180
+ type?: "badge" | "counter";
181
+ extraPlacement?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
183
182
  } & {
184
183
  counterView?: string | undefined;
185
184
  count?: number | undefined;
@@ -189,7 +188,7 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
189
188
  pilled?: undefined;
190
189
  text?: undefined;
191
190
  contentLeft?: undefined;
192
- contentRight?: undefined;
191
+ contentRight?: never | undefined;
193
192
  customColor?: undefined;
194
193
  customBackgroundColor?: undefined;
195
194
  } & import("react").RefAttributes<HTMLDivElement>))>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const AvatarGroup: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<import("@salutejs/plasma-new-hope/types/engines/types").Variants> & import("react").HTMLAttributes<HTMLDivElement> & {
3
- children: import("react").ReactNode;
2
+ children: React.ReactNode;
4
3
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Компонент Badge.
4
3
  */
@@ -29,59 +28,59 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
29
28
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
30
29
  };
31
30
  }> & ((import("react").HTMLAttributes<HTMLDivElement> & {
32
- text?: string | undefined;
33
- customColor?: string | undefined;
34
- customBackgroundColor?: string | undefined;
35
- maxWidth?: import("csstype").Property.Width<string | number> | undefined;
36
- size?: string | undefined;
37
- view?: string | undefined;
31
+ text?: string;
32
+ customColor?: string;
33
+ customBackgroundColor?: string;
34
+ maxWidth?: import("react").CSSProperties["width"];
35
+ size?: string;
36
+ view?: string;
38
37
  } & {
39
38
  contentLeft?: import("react").ReactNode;
40
- contentRight?: undefined;
39
+ contentRight?: never;
41
40
  } & {
42
- clear?: true | undefined;
43
- pilled?: undefined;
44
- transparent?: undefined;
41
+ clear?: true;
42
+ pilled?: never;
43
+ transparent?: never;
45
44
  } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
46
- text?: string | undefined;
47
- customColor?: string | undefined;
48
- customBackgroundColor?: string | undefined;
49
- maxWidth?: import("csstype").Property.Width<string | number> | undefined;
50
- size?: string | undefined;
51
- view?: string | undefined;
45
+ text?: string;
46
+ customColor?: string;
47
+ customBackgroundColor?: string;
48
+ maxWidth?: import("react").CSSProperties["width"];
49
+ size?: string;
50
+ view?: string;
52
51
  } & {
53
52
  contentLeft?: import("react").ReactNode;
54
- contentRight?: undefined;
53
+ contentRight?: never;
55
54
  } & {
56
- pilled?: boolean | undefined;
57
- transparent?: boolean | undefined;
58
- clear?: undefined;
55
+ pilled?: boolean;
56
+ transparent?: boolean;
57
+ clear?: never;
59
58
  } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
60
- text?: string | undefined;
61
- customColor?: string | undefined;
62
- customBackgroundColor?: string | undefined;
63
- maxWidth?: import("csstype").Property.Width<string | number> | undefined;
64
- size?: string | undefined;
65
- view?: string | undefined;
59
+ text?: string;
60
+ customColor?: string;
61
+ customBackgroundColor?: string;
62
+ maxWidth?: import("react").CSSProperties["width"];
63
+ size?: string;
64
+ view?: string;
66
65
  } & {
67
- contentLeft?: undefined;
66
+ contentLeft?: never;
68
67
  contentRight?: import("react").ReactNode;
69
68
  } & {
70
- clear?: true | undefined;
71
- pilled?: undefined;
72
- transparent?: undefined;
69
+ clear?: true;
70
+ pilled?: never;
71
+ transparent?: never;
73
72
  } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
74
- text?: string | undefined;
75
- customColor?: string | undefined;
76
- customBackgroundColor?: string | undefined;
77
- maxWidth?: import("csstype").Property.Width<string | number> | undefined;
78
- size?: string | undefined;
79
- view?: string | undefined;
73
+ text?: string;
74
+ customColor?: string;
75
+ customBackgroundColor?: string;
76
+ maxWidth?: import("react").CSSProperties["width"];
77
+ size?: string;
78
+ view?: string;
80
79
  } & {
81
- contentLeft?: undefined;
80
+ contentLeft?: never;
82
81
  contentRight?: import("react").ReactNode;
83
82
  } & {
84
- pilled?: boolean | undefined;
85
- transparent?: boolean | undefined;
86
- clear?: undefined;
83
+ pilled?: boolean;
84
+ transparent?: boolean;
85
+ clear?: never;
87
86
  } & import("react").RefAttributes<HTMLDivElement>))>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Breadcrumbs
4
3
  */
@@ -13,9 +12,9 @@ export declare const Breadcrumbs: import("react").FunctionComponent<import("@sal
13
12
  xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
13
  };
15
14
  }> & import("react").HTMLAttributes<HTMLDivElement> & {
16
- view?: string | undefined;
17
- size?: string | undefined;
15
+ view?: string;
16
+ size?: string;
18
17
  separator?: import("react").ReactNode;
19
18
  items: import("@salutejs/plasma-new-hope/types/components/Breadcrumbs/Breadcrumbs.types").BreadcrumbsItem[];
20
- showItems?: number | undefined;
19
+ showItems?: number;
21
20
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Компонент Button.
4
3
  */
@@ -40,46 +39,46 @@ export declare const Button: import("react").FunctionComponent<import("@salutejs
40
39
  filled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
41
40
  fixed: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
42
41
  };
43
- }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
44
- text?: string | undefined;
42
+ }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
43
+ text?: string;
45
44
  contentLeft?: import("react").ReactNode;
46
- contentPlacing?: ("default" | "relaxed") | undefined;
47
- isLoading?: boolean | undefined;
45
+ contentPlacing?: "default" | "relaxed";
46
+ isLoading?: boolean;
48
47
  loader?: import("react").ReactNode;
49
- stretch?: boolean | undefined;
50
- stretching?: ("fixed" | "auto" | "filled") | undefined;
51
- square?: boolean | undefined;
52
- focused?: boolean | undefined;
53
- disabled?: boolean | undefined;
54
- pin?: "square-square" | "square-clear" | "clear-square" | "clear-clear" | "clear-circle" | "circle-clear" | "circle-circle" | undefined;
55
- view?: string | undefined;
56
- size?: string | undefined;
57
- outlined?: boolean | undefined;
58
- shiftLeft?: boolean | undefined;
59
- shiftRight?: boolean | undefined;
60
- blur?: "small" | "medium" | "large" | undefined;
48
+ stretch?: boolean;
49
+ stretching?: "fixed" | "auto" | "filled";
50
+ square?: boolean;
51
+ focused?: boolean;
52
+ disabled?: boolean;
53
+ pin?: import("@salutejs/plasma-new-hope/types/utils/roundness").Pin;
54
+ view?: string;
55
+ size?: string;
56
+ outlined?: boolean;
57
+ shiftLeft?: boolean;
58
+ shiftRight?: boolean;
59
+ blur?: import("@salutejs/plasma-new-hope/styled-components").Blur;
61
60
  } & {
62
- value?: string | number | undefined;
63
- contentRight?: undefined;
64
- } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
65
- text?: string | undefined;
61
+ value?: string | number;
62
+ contentRight?: never;
63
+ } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
64
+ text?: string;
66
65
  contentLeft?: import("react").ReactNode;
67
- contentPlacing?: ("default" | "relaxed") | undefined;
68
- isLoading?: boolean | undefined;
66
+ contentPlacing?: "default" | "relaxed";
67
+ isLoading?: boolean;
69
68
  loader?: import("react").ReactNode;
70
- stretch?: boolean | undefined;
71
- stretching?: ("fixed" | "auto" | "filled") | undefined;
72
- square?: boolean | undefined;
73
- focused?: boolean | undefined;
74
- disabled?: boolean | undefined;
75
- pin?: "square-square" | "square-clear" | "clear-square" | "clear-clear" | "clear-circle" | "circle-clear" | "circle-circle" | undefined;
76
- view?: string | undefined;
77
- size?: string | undefined;
78
- outlined?: boolean | undefined;
79
- shiftLeft?: boolean | undefined;
80
- shiftRight?: boolean | undefined;
81
- blur?: "small" | "medium" | "large" | undefined;
69
+ stretch?: boolean;
70
+ stretching?: "fixed" | "auto" | "filled";
71
+ square?: boolean;
72
+ focused?: boolean;
73
+ disabled?: boolean;
74
+ pin?: import("@salutejs/plasma-new-hope/types/utils/roundness").Pin;
75
+ view?: string;
76
+ size?: string;
77
+ outlined?: boolean;
78
+ shiftLeft?: boolean;
79
+ shiftRight?: boolean;
80
+ blur?: import("@salutejs/plasma-new-hope/styled-components").Blur;
82
81
  } & {
83
- value?: undefined;
82
+ value?: never;
84
83
  contentRight?: import("react").ReactNode;
85
84
  } & import("react").RefAttributes<HTMLButtonElement>))>;
@@ -1,11 +1,7 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Группа кнопок.
4
3
  */
5
4
  export declare const ButtonGroup: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
6
- /**
7
- * Группа кнопок.
8
- */
9
5
  view: {
10
6
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
7
  primary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -0,0 +1,14 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ };
6
+ variations: {
7
+ view: {
8
+ default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
9
+ };
10
+ size: {
11
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
12
+ };
13
+ };
14
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
+ var _templateObject, _templateObject2;
9
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
10
+ var config = exports.config = {
11
+ defaults: {
12
+ view: 'default',
13
+ size: 's'
14
+ },
15
+ variations: {
16
+ view: {
17
+ "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-solid-default);\n "])), _styledComponents.carouselNewTokens.paginationDotBackground, _styledComponents.carouselNewTokens.paginationDotActiveBackground)
18
+ },
19
+ size: {
20
+ s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral([""])))
21
+ }
22
+ }
23
+ };
@@ -1,5 +1,19 @@
1
- /// <reference types="react" />
2
- export declare const Carousel: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<import("@salutejs/plasma-new-hope/types/engines/types").Variants> & Omit<import("@salutejs/plasma-new-hope/types/components/Carousel/Carousel.types").BasicProps & (import("@salutejs/plasma-new-hope/types/components/Carousel/Carousel.types").DetectionProps | import("@salutejs/plasma-new-hope/types/components/Carousel/Carousel.types").NoDetectionProps), "axis" | "animatedScrollByIndex" | "throttleMs" | "debounceMs"> & {
3
- ariaLive?: "off" | "polite" | undefined;
4
- isDragScrollDisabled?: boolean | undefined;
5
- } & import("react").RefAttributes<HTMLDivElement>>;
1
+ import type { ComponentProps } from 'react';
2
+ import React from 'react';
3
+ import { CarouselOld } from './Legacy/Carousel';
4
+ declare const CarouselNew: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
5
+ view: {
6
+ default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
+ };
8
+ size: {
9
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
10
+ };
11
+ }> & import("@salutejs/plasma-new-hope/styled-components").CarouselNewProps & React.RefAttributes<HTMLDivElement>>;
12
+ type PropsOld = ComponentProps<typeof CarouselOld>;
13
+ type PropsNew = ComponentProps<typeof CarouselNew> & {
14
+ index?: never;
15
+ };
16
+ type CarouselProps = PropsOld | PropsNew;
17
+ declare const Carousel: (props: CarouselProps & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
18
+ export { Carousel };
19
+ export type { CarouselProps };
@@ -5,6 +5,21 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Carousel = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
- var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.carouselConfig);
9
- var CarouselComponent = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
10
- var Carousel = exports.Carousel = CarouselComponent;
8
+ var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
9
+ var _Carousel = /*#__PURE__*/require("./Legacy/Carousel");
10
+ var _Carousel2 = /*#__PURE__*/require("./Carousel.config");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ 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); }
13
+ var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.carouselNewConfig, _Carousel2.config);
14
+ var CarouselNew = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
15
+ var CarouselComponent = function CarouselComponent(props, ref) {
16
+ if (typeof props.index === 'number' && !Number.isNaN(props.index)) {
17
+ return /*#__PURE__*/_react["default"].createElement(_Carousel.CarouselOld, _extends({
18
+ ref: ref
19
+ }, props));
20
+ }
21
+ return /*#__PURE__*/_react["default"].createElement(CarouselNew, _extends({
22
+ ref: ref
23
+ }, props));
24
+ };
25
+ var Carousel = exports.Carousel = /*#__PURE__*/(0, _styledComponents.fixedForwardRef)(CarouselComponent);
@@ -0,0 +1,4 @@
1
+ export declare const CarouselOld: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<import("@salutejs/plasma-new-hope/types/engines/types").Variants> & Omit<import("@salutejs/plasma-new-hope/types/components/Carousel/CarouselOld/Carousel.types").BasicProps & (import("@salutejs/plasma-new-hope/types/components/Carousel/CarouselOld/Carousel.types").DetectionProps | import("@salutejs/plasma-new-hope/types/components/Carousel/CarouselOld/Carousel.types").NoDetectionProps), "axis" | "animatedScrollByIndex" | "throttleMs" | "debounceMs"> & {
2
+ ariaLive?: "off" | "polite";
3
+ isDragScrollDisabled?: boolean;
4
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import React, { FC } from 'react';
2
- import { ImageProps } from '../Image';
2
+ import { ImageProps } from '../../Image';
3
3
  interface CarouselCardProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
4
  title: string;
5
5
  subtitle: string;
@@ -6,21 +6,21 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.CarouselCard = void 0;
7
7
  var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
8
  var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
9
- var _mixins = /*#__PURE__*/require("../../mixins");
10
- var _Image = /*#__PURE__*/require("../Image");
11
- var _Typography = /*#__PURE__*/require("../Typography");
9
+ var _mixins = /*#__PURE__*/require("../../../mixins");
10
+ var _Image = /*#__PURE__*/require("../../Image");
11
+ var _Typography = /*#__PURE__*/require("../../Typography");
12
12
  var _excluded = ["title", "subtitle", "imageSrc", "imageAlt", "imageBase"];
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
14
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
16
  var StyledCard = /*#__PURE__*/_styledComponents["default"].a.withConfig({
17
- componentId: "plasma-web__sc-18sk49o-0"
17
+ componentId: "plasma-web__sc-18zpu6x-0"
18
18
  })(["display:flex;position:relative;border-radius:1rem;", ""], /*#__PURE__*/(0, _mixins.addFocus)({
19
19
  outlined: true,
20
20
  outlineRadius: '1.125rem'
21
21
  }));
22
22
  var StyledCardContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
23
- componentId: "plasma-web__sc-18sk49o-1"
23
+ componentId: "plasma-web__sc-18zpu6x-1"
24
24
  })(["position:absolute;left:0;right:0;bottom:0;padding:1.72rem;color:#fff;"]);
25
25
 
26
26
  /**
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CarouselOld = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
+ var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.carouselConfig);
9
+ var CarouselComponent = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
10
+ var CarouselOld = exports.CarouselOld = CarouselComponent;
@@ -1,5 +1,4 @@
1
1
  export { CarouselGridWrapper } from '@salutejs/plasma-new-hope/styled-components';
2
- export type { CarouselProps } from '@salutejs/plasma-new-hope';
3
- export { Carousel } from './Carousel';
4
2
  export { CarouselItem } from '@salutejs/plasma-new-hope/styled-components';
5
- export type { CarouselItemProps } from '@salutejs/plasma-new-hope';
3
+ export { Carousel } from './Carousel';
4
+ export type { CarouselProps } from './Carousel';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Кнопка.
4
3
  */
@@ -13,33 +12,33 @@ export declare const Cell: import("react").FunctionComponent<import("@salutejs/p
13
12
  xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
13
  };
15
14
  }> & (({
16
- size?: string | undefined;
17
- view?: string | undefined;
15
+ size?: string;
16
+ view?: string;
18
17
  contentLeft?: import("react").ReactNode;
19
18
  contentRight?: import("react").ReactNode;
20
- alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp | undefined;
21
- alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp | undefined;
22
- stretching?: "fixed" | "auto" | "filled" | undefined;
19
+ alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
20
+ alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
21
+ stretching?: "fixed" | "filled" | "auto";
23
22
  content?: import("react").ReactNode;
24
- description?: string | undefined;
23
+ description?: string;
25
24
  } & {
26
- title?: string | undefined;
27
- subtitle?: string | undefined;
28
- label?: string | undefined;
29
- children?: undefined;
25
+ title?: string;
26
+ subtitle?: string;
27
+ label?: string;
28
+ children?: never;
30
29
  } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>) | ({
31
- size?: string | undefined;
32
- view?: string | undefined;
30
+ size?: string;
31
+ view?: string;
33
32
  contentLeft?: import("react").ReactNode;
34
33
  contentRight?: import("react").ReactNode;
35
- alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp | undefined;
36
- alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp | undefined;
37
- stretching?: "fixed" | "auto" | "filled" | undefined;
34
+ alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
35
+ alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
36
+ stretching?: "fixed" | "filled" | "auto";
38
37
  content?: import("react").ReactNode;
39
- description?: string | undefined;
38
+ description?: string;
40
39
  } & {
41
- title?: undefined;
42
- subtitle?: undefined;
43
- label?: undefined;
40
+ title?: never;
41
+ subtitle?: never;
42
+ label?: never;
44
43
  children?: import("react").ReactNode;
45
44
  } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>))>;
@@ -23,7 +23,7 @@ declare const CheckboxComponent: import("react").FunctionComponent<import("@salu
23
23
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
24
24
  };
25
25
  }> & import("@salutejs/plasma-new-hope/types/components/Checkbox/Checkbox.types").CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
26
- export declare type CheckboxProps = ComponentProps<typeof CheckboxComponent>;
26
+ export type CheckboxProps = ComponentProps<typeof CheckboxComponent>;
27
27
  /**
28
28
  * Флажок или чекбокс. Позволяет пользователю управлять параметром с двумя состояниями — ☑ включено и ☐ отключено.
29
29
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Компонент chip.
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const ChipGroup: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
3
2
  view: {
4
3
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;