amis 1.5.6-beta.5 → 1.5.6

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 (66) hide show
  1. package/lib/components/Card.js +1 -1
  2. package/lib/components/Card.js.map +2 -2
  3. package/lib/components/Collapse.js +1 -1
  4. package/lib/components/Collapse.js.map +2 -2
  5. package/lib/components/Rating.d.ts +203 -73
  6. package/lib/components/Rating.js +147 -31
  7. package/lib/components/Rating.js.map +2 -2
  8. package/lib/components/icons.js +2 -0
  9. package/lib/components/icons.js.map +2 -2
  10. package/lib/icons/star.js +12 -0
  11. package/lib/index.js +1 -1
  12. package/lib/renderers/Form/InputRating.d.ts +37 -0
  13. package/lib/renderers/Form/InputRating.js +6 -2
  14. package/lib/renderers/Form/InputRating.js.map +2 -2
  15. package/lib/renderers/Json.js +7 -0
  16. package/lib/renderers/Json.js.map +2 -2
  17. package/lib/themes/ang-ie11.css +44 -10
  18. package/lib/themes/ang.css +44 -10
  19. package/lib/themes/ang.css.map +1 -1
  20. package/lib/themes/antd-ie11.css +44 -10
  21. package/lib/themes/antd.css +44 -10
  22. package/lib/themes/antd.css.map +1 -1
  23. package/lib/themes/cxd-ie11.css +45 -10
  24. package/lib/themes/cxd.css +45 -10
  25. package/lib/themes/cxd.css.map +1 -1
  26. package/lib/themes/dark-ie11.css +44 -10
  27. package/lib/themes/dark.css +44 -10
  28. package/lib/themes/dark.css.map +1 -1
  29. package/lib/themes/default.css +45 -10
  30. package/lib/themes/default.css.map +1 -1
  31. package/package.json +2 -2
  32. package/schema.json +59 -7
  33. package/scss/_properties.scss +3 -1
  34. package/scss/components/form/_rating.scss +60 -21
  35. package/scss/themes/_cxd-variables.scss +2 -0
  36. package/sdk/ang-ie11.css +47 -8
  37. package/sdk/ang.css +51 -10
  38. package/sdk/antd-ie11.css +47 -8
  39. package/sdk/antd.css +51 -10
  40. package/sdk/charts.js +13 -13
  41. package/sdk/codemirror.js +7 -7
  42. package/sdk/color-picker.js +65 -65
  43. package/sdk/cropperjs.js +2 -2
  44. package/sdk/cxd-ie11.css +47 -8
  45. package/sdk/cxd.css +52 -10
  46. package/sdk/dark-ie11.css +47 -8
  47. package/sdk/dark.css +51 -10
  48. package/sdk/exceljs.js +1 -1
  49. package/sdk/markdown.js +69 -69
  50. package/sdk/papaparse.js +1 -1
  51. package/sdk/renderers/Form/CityDB.js +1 -1
  52. package/sdk/rest.js +18 -18
  53. package/sdk/rich-text.js +62 -62
  54. package/sdk/sdk-ie11.css +47 -8
  55. package/sdk/sdk.css +52 -10
  56. package/sdk/sdk.js +1213 -1211
  57. package/sdk/thirds/hls.js/hls.js +1 -1
  58. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  59. package/sdk/tinymce.js +57 -57
  60. package/src/components/Card.tsx +2 -2
  61. package/src/components/Collapse.tsx +1 -1
  62. package/src/components/Rating.tsx +235 -47
  63. package/src/components/icons.tsx +2 -0
  64. package/src/icons/star.svg +12 -0
  65. package/src/renderers/Form/InputRating.tsx +66 -3
  66. package/src/renderers/Json.tsx +5 -0
@@ -6,22 +6,33 @@
6
6
  /// <reference types="hoist-non-react-statics" />
7
7
  import React from 'react';
8
8
  import { ClassNamesFn } from '../theme';
9
+ export declare type textPositionType = 'left' | 'right';
9
10
  interface RatingProps {
10
11
  id?: string;
11
12
  key?: string | number;
12
13
  style?: React.CSSProperties;
13
14
  count: number;
14
15
  half: boolean;
15
- char: string;
16
- size: number;
16
+ char: string | React.ReactNode;
17
17
  className?: string;
18
- onChange?: (value: any) => void;
18
+ charClassName?: string;
19
+ textClassName?: string;
20
+ onChange?: (value: number) => void;
21
+ onHoverChange?: (value: number) => void;
19
22
  value: number;
20
- containerClass: string;
23
+ containerClass?: string;
21
24
  readOnly: boolean;
22
25
  classPrefix: string;
23
26
  disabled?: boolean;
24
27
  allowClear?: boolean;
28
+ inactiveColor?: string;
29
+ colors?: string | {
30
+ [propName: string]: string;
31
+ };
32
+ texts?: {
33
+ [propName: string]: string;
34
+ };
35
+ textPosition?: textPositionType;
25
36
  classnames: ClassNamesFn;
26
37
  }
27
38
  export declare class Rating extends React.Component<RatingProps, any> {
@@ -32,65 +43,99 @@ export declare class Rating extends React.Component<RatingProps, any> {
32
43
  allowClear: boolean;
33
44
  value: number;
34
45
  count: number;
35
- char: string;
36
- size: number;
46
+ char: JSX.Element;
47
+ colors: {
48
+ '2': string;
49
+ '3': string;
50
+ '5': string;
51
+ };
52
+ textPosition: textPositionType;
37
53
  };
54
+ starsNode: Record<string, any>;
38
55
  constructor(props: RatingProps);
39
56
  componentDidMount(): void;
40
57
  componentDidUpdate(prevProps: RatingProps): void;
58
+ sortKeys(map: {
59
+ [propName: number]: string;
60
+ }): string[];
61
+ getShowColorAndText(value: number): void;
41
62
  getRate(): number;
42
63
  getStars(activeCount?: number): {
43
64
  active: boolean;
44
65
  }[];
45
- mouseOver(event: React.ChangeEvent<any>): void;
46
- moreThanHalf(event: any, size: number): boolean;
66
+ saveRef(index: number): (node: React.ReactNode) => void;
67
+ mouseOver(event: React.ChangeEvent<any>, index: number): void;
68
+ onHoverChange(value: number): void;
69
+ moreThanHalf(event: any, index: number): boolean;
47
70
  mouseLeave(): void;
48
- handleClick(event: React.ChangeEvent<any>): void;
49
- renderStars(): any;
71
+ handleStarMouseLeave(event: any, index: number): void;
72
+ handleClick(event: React.ChangeEvent<any>, index: number): void;
73
+ renderStars(): JSX.Element;
74
+ renderText(): JSX.Element | null;
50
75
  render(): JSX.Element;
51
76
  }
52
77
  declare const _default: {
53
- new (props: (Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
78
+ new (props: (Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
54
79
  containerClass: string;
55
80
  readOnly: boolean;
56
81
  half: boolean;
57
82
  allowClear: boolean;
58
83
  value: number;
59
84
  count: number;
60
- char: string;
61
- size: number;
62
- }, never>> & import("../theme").ThemeOutterProps) | Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
85
+ char: JSX.Element;
86
+ colors: {
87
+ '2': string;
88
+ '3': string;
89
+ '5': string;
90
+ };
91
+ textPosition: textPositionType;
92
+ }, never>> & import("../theme").ThemeOutterProps) | Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
63
93
  containerClass: string;
64
94
  readOnly: boolean;
65
95
  half: boolean;
66
96
  allowClear: boolean;
67
97
  value: number;
68
98
  count: number;
69
- char: string;
70
- size: number;
99
+ char: JSX.Element;
100
+ colors: {
101
+ '2': string;
102
+ '3': string;
103
+ '5': string;
104
+ };
105
+ textPosition: textPositionType;
71
106
  }, never>> & import("../theme").ThemeOutterProps>): {
72
107
  render(): JSX.Element;
73
108
  context: any;
74
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
109
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
75
110
  containerClass: string;
76
111
  readOnly: boolean;
77
112
  half: boolean;
78
113
  allowClear: boolean;
79
114
  value: number;
80
115
  count: number;
81
- char: string;
82
- size: number;
116
+ char: JSX.Element;
117
+ colors: {
118
+ '2': string;
119
+ '3': string;
120
+ '5': string;
121
+ };
122
+ textPosition: textPositionType;
83
123
  }, never>> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
84
124
  forceUpdate(callback?: (() => void) | undefined): void;
85
- readonly props: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
125
+ readonly props: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
86
126
  containerClass: string;
87
127
  readOnly: boolean;
88
128
  half: boolean;
89
129
  allowClear: boolean;
90
130
  value: number;
91
131
  count: number;
92
- char: string;
93
- size: number;
132
+ char: JSX.Element;
133
+ colors: {
134
+ '2': string;
135
+ '3': string;
136
+ '5': string;
137
+ };
138
+ textPosition: textPositionType;
94
139
  }, never>> & import("../theme").ThemeOutterProps> & Readonly<{
95
140
  children?: React.ReactNode;
96
141
  }>;
@@ -99,113 +144,163 @@ declare const _default: {
99
144
  [key: string]: React.ReactInstance;
100
145
  };
101
146
  componentDidMount?(): void;
102
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
147
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
103
148
  containerClass: string;
104
149
  readOnly: boolean;
105
150
  half: boolean;
106
151
  allowClear: boolean;
107
152
  value: number;
108
153
  count: number;
109
- char: string;
110
- size: number;
154
+ char: JSX.Element;
155
+ colors: {
156
+ '2': string;
157
+ '3': string;
158
+ '5': string;
159
+ };
160
+ textPosition: textPositionType;
111
161
  }, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
112
162
  componentWillUnmount?(): void;
113
163
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
114
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
164
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
115
165
  containerClass: string;
116
166
  readOnly: boolean;
117
167
  half: boolean;
118
168
  allowClear: boolean;
119
169
  value: number;
120
170
  count: number;
121
- char: string;
122
- size: number;
171
+ char: JSX.Element;
172
+ colors: {
173
+ '2': string;
174
+ '3': string;
175
+ '5': string;
176
+ };
177
+ textPosition: textPositionType;
123
178
  }, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
124
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
179
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
125
180
  containerClass: string;
126
181
  readOnly: boolean;
127
182
  half: boolean;
128
183
  allowClear: boolean;
129
184
  value: number;
130
185
  count: number;
131
- char: string;
132
- size: number;
186
+ char: JSX.Element;
187
+ colors: {
188
+ '2': string;
189
+ '3': string;
190
+ '5': string;
191
+ };
192
+ textPosition: textPositionType;
133
193
  }, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
134
194
  componentWillMount?(): void;
135
195
  UNSAFE_componentWillMount?(): void;
136
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
196
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
137
197
  containerClass: string;
138
198
  readOnly: boolean;
139
199
  half: boolean;
140
200
  allowClear: boolean;
141
201
  value: number;
142
202
  count: number;
143
- char: string;
144
- size: number;
203
+ char: JSX.Element;
204
+ colors: {
205
+ '2': string;
206
+ '3': string;
207
+ '5': string;
208
+ };
209
+ textPosition: textPositionType;
145
210
  }, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void;
146
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
211
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
147
212
  containerClass: string;
148
213
  readOnly: boolean;
149
214
  half: boolean;
150
215
  allowClear: boolean;
151
216
  value: number;
152
217
  count: number;
153
- char: string;
154
- size: number;
218
+ char: JSX.Element;
219
+ colors: {
220
+ '2': string;
221
+ '3': string;
222
+ '5': string;
223
+ };
224
+ textPosition: textPositionType;
155
225
  }, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void;
156
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
226
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
157
227
  containerClass: string;
158
228
  readOnly: boolean;
159
229
  half: boolean;
160
230
  allowClear: boolean;
161
231
  value: number;
162
232
  count: number;
163
- char: string;
164
- size: number;
233
+ char: JSX.Element;
234
+ colors: {
235
+ '2': string;
236
+ '3': string;
237
+ '5': string;
238
+ };
239
+ textPosition: textPositionType;
165
240
  }, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
166
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
241
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
167
242
  containerClass: string;
168
243
  readOnly: boolean;
169
244
  half: boolean;
170
245
  allowClear: boolean;
171
246
  value: number;
172
247
  count: number;
173
- char: string;
174
- size: number;
248
+ char: JSX.Element;
249
+ colors: {
250
+ '2': string;
251
+ '3': string;
252
+ '5': string;
253
+ };
254
+ textPosition: textPositionType;
175
255
  }, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
176
256
  };
177
- new (props: Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
257
+ new (props: Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
178
258
  containerClass: string;
179
259
  readOnly: boolean;
180
260
  half: boolean;
181
261
  allowClear: boolean;
182
262
  value: number;
183
263
  count: number;
184
- char: string;
185
- size: number;
264
+ char: JSX.Element;
265
+ colors: {
266
+ '2': string;
267
+ '3': string;
268
+ '5': string;
269
+ };
270
+ textPosition: textPositionType;
186
271
  }, never>> & import("../theme").ThemeOutterProps, context: any): {
187
272
  render(): JSX.Element;
188
273
  context: any;
189
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
274
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
190
275
  containerClass: string;
191
276
  readOnly: boolean;
192
277
  half: boolean;
193
278
  allowClear: boolean;
194
279
  value: number;
195
280
  count: number;
196
- char: string;
197
- size: number;
281
+ char: JSX.Element;
282
+ colors: {
283
+ '2': string;
284
+ '3': string;
285
+ '5': string;
286
+ };
287
+ textPosition: textPositionType;
198
288
  }, never>> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
199
289
  forceUpdate(callback?: (() => void) | undefined): void;
200
- readonly props: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
290
+ readonly props: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
201
291
  containerClass: string;
202
292
  readOnly: boolean;
203
293
  half: boolean;
204
294
  allowClear: boolean;
205
295
  value: number;
206
296
  count: number;
207
- char: string;
208
- size: number;
297
+ char: JSX.Element;
298
+ colors: {
299
+ '2': string;
300
+ '3': string;
301
+ '5': string;
302
+ };
303
+ textPosition: textPositionType;
209
304
  }, never>> & import("../theme").ThemeOutterProps> & Readonly<{
210
305
  children?: React.ReactNode;
211
306
  }>;
@@ -214,79 +309,114 @@ declare const _default: {
214
309
  [key: string]: React.ReactInstance;
215
310
  };
216
311
  componentDidMount?(): void;
217
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
312
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
218
313
  containerClass: string;
219
314
  readOnly: boolean;
220
315
  half: boolean;
221
316
  allowClear: boolean;
222
317
  value: number;
223
318
  count: number;
224
- char: string;
225
- size: number;
319
+ char: JSX.Element;
320
+ colors: {
321
+ '2': string;
322
+ '3': string;
323
+ '5': string;
324
+ };
325
+ textPosition: textPositionType;
226
326
  }, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
227
327
  componentWillUnmount?(): void;
228
328
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
229
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
329
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
230
330
  containerClass: string;
231
331
  readOnly: boolean;
232
332
  half: boolean;
233
333
  allowClear: boolean;
234
334
  value: number;
235
335
  count: number;
236
- char: string;
237
- size: number;
336
+ char: JSX.Element;
337
+ colors: {
338
+ '2': string;
339
+ '3': string;
340
+ '5': string;
341
+ };
342
+ textPosition: textPositionType;
238
343
  }, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
239
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
344
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
240
345
  containerClass: string;
241
346
  readOnly: boolean;
242
347
  half: boolean;
243
348
  allowClear: boolean;
244
349
  value: number;
245
350
  count: number;
246
- char: string;
247
- size: number;
351
+ char: JSX.Element;
352
+ colors: {
353
+ '2': string;
354
+ '3': string;
355
+ '5': string;
356
+ };
357
+ textPosition: textPositionType;
248
358
  }, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
249
359
  componentWillMount?(): void;
250
360
  UNSAFE_componentWillMount?(): void;
251
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
361
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
252
362
  containerClass: string;
253
363
  readOnly: boolean;
254
364
  half: boolean;
255
365
  allowClear: boolean;
256
366
  value: number;
257
367
  count: number;
258
- char: string;
259
- size: number;
368
+ char: JSX.Element;
369
+ colors: {
370
+ '2': string;
371
+ '3': string;
372
+ '5': string;
373
+ };
374
+ textPosition: textPositionType;
260
375
  }, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void;
261
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
376
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
262
377
  containerClass: string;
263
378
  readOnly: boolean;
264
379
  half: boolean;
265
380
  allowClear: boolean;
266
381
  value: number;
267
382
  count: number;
268
- char: string;
269
- size: number;
383
+ char: JSX.Element;
384
+ colors: {
385
+ '2': string;
386
+ '3': string;
387
+ '5': string;
388
+ };
389
+ textPosition: textPositionType;
270
390
  }, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void;
271
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
391
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
272
392
  containerClass: string;
273
393
  readOnly: boolean;
274
394
  half: boolean;
275
395
  allowClear: boolean;
276
396
  value: number;
277
397
  count: number;
278
- char: string;
279
- size: number;
398
+ char: JSX.Element;
399
+ colors: {
400
+ '2': string;
401
+ '3': string;
402
+ '5': string;
403
+ };
404
+ textPosition: textPositionType;
280
405
  }, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
281
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "size" | "readOnly" | "half" | "count" | "allowClear" | "containerClass">> & Partial<Pick<{
406
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "style" | "key" | "disabled" | "id" | "onChange" | "inactiveColor" | "texts" | "charClassName" | "textClassName" | "onHoverChange"> & Partial<Pick<Omit<RatingProps, keyof import("../theme").ThemeProps>, "value" | "char" | "readOnly" | "half" | "count" | "allowClear" | "colors" | "textPosition" | "containerClass">> & Partial<Pick<{
282
407
  containerClass: string;
283
408
  readOnly: boolean;
284
409
  half: boolean;
285
410
  allowClear: boolean;
286
411
  value: number;
287
412
  count: number;
288
- char: string;
289
- size: number;
413
+ char: JSX.Element;
414
+ colors: {
415
+ '2': string;
416
+ '3': string;
417
+ '5': string;
418
+ };
419
+ textPosition: textPositionType;
290
420
  }, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
291
421
  };
292
422
  displayName: string;