idea-react 2.0.0-rc.10 → 2.0.0-rc.11
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.
- package/ReadMe.md +196 -208
- package/dist/index.d.ts +16 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/eslint.config.ts +69 -0
- package/package.json +37 -45
- package/source/CodeBlock.tsx +3 -13
- package/source/EditorHTML.tsx +16 -21
- package/source/MonthCalendar.tsx +9 -33
- package/source/Timeline/index.tsx +3 -13
- package/source/UserRank/index.tsx +108 -122
- package/tsconfig.json +1 -1
package/ReadMe.md
CHANGED
|
@@ -1,208 +1,196 @@
|
|
|
1
|
-
# Idea React
|
|
2
|
-
|
|
3
|
-
A **[React][1] advanced components library** based on [TypeScript][2] & [Bootstrap][3], built by **[idea2app][4] remote developers team**.
|
|
4
|
-
|
|
5
|
-
[][5]
|
|
6
|
-
[][6]
|
|
7
|
-
[][7]
|
|
8
|
-
|
|
9
|
-
[][8]
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
## Versions
|
|
16
|
-
|
|
17
|
-
| SemVer | status | ES decorator | MobX |
|
|
18
|
-
| :----: | :----------: | :----------: | :---------: |
|
|
19
|
-
| `>=2` | ✅developing | stage-3 | `>=6.11` |
|
|
20
|
-
| `<2` | ❌deprecated | stage-2 | `>=4 <6.11` |
|
|
21
|
-
|
|
22
|
-
## Content
|
|
23
|
-
|
|
24
|
-
### Components
|
|
25
|
-
|
|
26
|
-
1. [Time](source/Time.tsx)
|
|
27
|
-
2. [Time Distance](source/TimeDistance.tsx)
|
|
28
|
-
3. [Timeline](source/Timeline/)
|
|
29
|
-
4. [Icon](source/Icon.tsx)
|
|
30
|
-
5. [Avatar](source/Avatar.tsx)
|
|
31
|
-
6. [Nameplate](source/Nameplate.tsx)
|
|
32
|
-
7. [Type Echo](source/TypeEcho.tsx)
|
|
33
|
-
8. [Horizontal Marquee](source/HorizontalMarquee/)
|
|
34
|
-
9. [Vertical Marquee](source/VerticalMarquee/)
|
|
35
|
-
10. [Click Boundary](source/ClickBoundary.tsx)
|
|
36
|
-
11. [Spinner Button](source/SpinnerButton.tsx)
|
|
37
|
-
12. [Select](source/Select.tsx)
|
|
38
|
-
13. [Month Calendar](source/MonthCalendar.tsx)
|
|
39
|
-
14. [Code Block](source/CodeBlock.tsx)
|
|
40
|
-
15. [Page Nav](source/PageNav.tsx)
|
|
41
|
-
16. [Editor](source/Editor.tsx)
|
|
42
|
-
17. [Editor HTML](source/EditorHTML.tsx)
|
|
43
|
-
18. [Table Spinner](source/TableSpinner.tsx)
|
|
44
|
-
19. [Loading](source/Loading.tsx)
|
|
45
|
-
20. [Share Box](source/ShareBox.tsx)
|
|
46
|
-
21. [Overlay Box](source/OverlayBox.tsx)
|
|
47
|
-
22. [Dialog](source/Dialog.tsx)
|
|
48
|
-
23. [User Rank](source/UserRank/)
|
|
49
|
-
|
|
50
|
-
#### Data components
|
|
51
|
-
|
|
52
|
-
Table, List & Form components around Data models, have been migrated to https://github.com/idea2app/MobX-RESTful-table, since Idea-React v1.0.0.
|
|
53
|
-
|
|
54
|
-
#### Map components
|
|
55
|
-
|
|
56
|
-
Open Map component & model, have been migrated to https://github.com/idea2app/
|
|
57
|
-
|
|
58
|
-
### Utilities
|
|
59
|
-
|
|
60
|
-
1. [`text2color`](source/color.ts)
|
|
61
|
-
2. [`animate()`](source/animate.ts)
|
|
62
|
-
|
|
63
|
-
## Usage
|
|
64
|
-
|
|
65
|
-
### Scaffolds
|
|
66
|
-
|
|
67
|
-
1. MobX: [demo][9] & [usage][10]
|
|
68
|
-
2. Next.js: [demo][11] & [usage][12]
|
|
69
|
-
|
|
70
|
-
### CSS on CDN
|
|
71
|
-
|
|
72
|
-
```html
|
|
73
|
-
<link
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/>
|
|
77
|
-
<link
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
>
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
)
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
```shell
|
|
182
|
-
git
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
[1]: https://reactjs.org/
|
|
198
|
-
[2]: https://www.typescriptlang.org/
|
|
199
|
-
[3]: https://getbootstrap.com/
|
|
200
|
-
[4]: https://idea2app.github.io/
|
|
201
|
-
[5]: https://mobx.js.org/
|
|
202
|
-
[6]: https://libraries.io/npm/idea-react
|
|
203
|
-
[7]: https://github.com/idea2app/Idea-React/actions/workflows/main.yml
|
|
204
|
-
[8]: https://nodei.co/npm/idea-react/
|
|
205
|
-
[9]: https://idea2app.github.io/React-MobX-Bootstrap-ts/
|
|
206
|
-
[10]: https://github.com/idea2app/React-MobX-Bootstrap-ts/blob/master/src/page/Component.tsx
|
|
207
|
-
[11]: https://next-bootstrap-ts.vercel.app/
|
|
208
|
-
[12]: https://github.com/idea2app/next-bootstrap-ts/blob/main/pages/component.tsx
|
|
1
|
+
# Idea React
|
|
2
|
+
|
|
3
|
+
A **[React][1] advanced components library** based on [TypeScript][2] & [Bootstrap][3], built by **[idea2app][4] remote developers team**.
|
|
4
|
+
|
|
5
|
+
[][5]
|
|
6
|
+
[][6]
|
|
7
|
+
[][7]
|
|
8
|
+
|
|
9
|
+
[][8]
|
|
10
|
+
|
|
11
|
+
- API document: https://idea2app.github.io/Idea-React/
|
|
12
|
+
- Preview site: https://idea2app.github.io/Idea-React/preview/
|
|
13
|
+
- Storybook playground: https://idea-react.vercel.app/
|
|
14
|
+
|
|
15
|
+
## Versions
|
|
16
|
+
|
|
17
|
+
| SemVer | status | ES decorator | MobX |
|
|
18
|
+
| :----: | :----------: | :----------: | :---------: |
|
|
19
|
+
| `>=2` | ✅developing | stage-3 | `>=6.11` |
|
|
20
|
+
| `<2` | ❌deprecated | stage-2 | `>=4 <6.11` |
|
|
21
|
+
|
|
22
|
+
## Content
|
|
23
|
+
|
|
24
|
+
### Components
|
|
25
|
+
|
|
26
|
+
1. [Time](source/Time.tsx)
|
|
27
|
+
2. [Time Distance](source/TimeDistance.tsx)
|
|
28
|
+
3. [Timeline](source/Timeline/)
|
|
29
|
+
4. [Icon](source/Icon.tsx)
|
|
30
|
+
5. [Avatar](source/Avatar.tsx)
|
|
31
|
+
6. [Nameplate](source/Nameplate.tsx)
|
|
32
|
+
7. [Type Echo](source/TypeEcho.tsx)
|
|
33
|
+
8. [Horizontal Marquee](source/HorizontalMarquee/)
|
|
34
|
+
9. [Vertical Marquee](source/VerticalMarquee/)
|
|
35
|
+
10. [Click Boundary](source/ClickBoundary.tsx)
|
|
36
|
+
11. [Spinner Button](source/SpinnerButton.tsx)
|
|
37
|
+
12. [Select](source/Select.tsx)
|
|
38
|
+
13. [Month Calendar](source/MonthCalendar.tsx)
|
|
39
|
+
14. [Code Block](source/CodeBlock.tsx)
|
|
40
|
+
15. [Page Nav](source/PageNav.tsx)
|
|
41
|
+
16. [Editor](source/Editor.tsx)
|
|
42
|
+
17. [Editor HTML](source/EditorHTML.tsx)
|
|
43
|
+
18. [Table Spinner](source/TableSpinner.tsx)
|
|
44
|
+
19. [Loading](source/Loading.tsx)
|
|
45
|
+
20. [Share Box](source/ShareBox.tsx)
|
|
46
|
+
21. [Overlay Box](source/OverlayBox.tsx)
|
|
47
|
+
22. [Dialog](source/Dialog.tsx)
|
|
48
|
+
23. [User Rank](source/UserRank/)
|
|
49
|
+
|
|
50
|
+
#### Data components
|
|
51
|
+
|
|
52
|
+
Table, List & Form components around Data models, have been migrated to https://github.com/idea2app/MobX-RESTful-table, since Idea-React v1.0.0.
|
|
53
|
+
|
|
54
|
+
#### Map components
|
|
55
|
+
|
|
56
|
+
Open Map component & model, have been migrated to https://github.com/idea2app/OpenReactMap, since Idea-React v1.0.0.
|
|
57
|
+
|
|
58
|
+
### Utilities
|
|
59
|
+
|
|
60
|
+
1. [`text2color`](source/color.ts)
|
|
61
|
+
2. [`animate()`](source/animate.ts)
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
### Scaffolds
|
|
66
|
+
|
|
67
|
+
1. MobX: [demo][9] & [usage][10]
|
|
68
|
+
2. Next.js: [demo][11] & [usage][12]
|
|
69
|
+
|
|
70
|
+
### CSS on CDN
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<link rel="stylesheet" href="https://unpkg.com/bootstrap@5.3.3/dist/css/bootstrap.min.css" />
|
|
74
|
+
<link rel="stylesheet" href="https://unpkg.com/bootstrap-icons@1.11.3/font/bootstrap-icons.css" />
|
|
75
|
+
<link rel="stylesheet" href="https://unpkg.com/animate.css@4.1.1/animate.min.css" />
|
|
76
|
+
<link rel="stylesheet" href="https://unpkg.com/prismjs@1.30.0/themes/prism.min.css" />
|
|
77
|
+
<link rel="stylesheet" href="https://unpkg.com/idea-react/dist/index.css" />
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### `tsconfig.json`
|
|
81
|
+
|
|
82
|
+
Compatible with MobX 6/7:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"compilerOptions": {
|
|
87
|
+
"target": "ES6",
|
|
88
|
+
"moduleResolution": "Node",
|
|
89
|
+
"useDefineForClassFields": true,
|
|
90
|
+
"experimentalDecorators": false,
|
|
91
|
+
"jsx": "react-jsx"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Dialog
|
|
97
|
+
|
|
98
|
+
```tsx
|
|
99
|
+
import { formToJSON } from 'web-utility';
|
|
100
|
+
import { Component } from 'react';
|
|
101
|
+
import { Button, Form, Modal } from 'react-bootstrap';
|
|
102
|
+
import { Dialog, DialogClose } from 'idea-react';
|
|
103
|
+
|
|
104
|
+
export class ExamplePage extends Component {
|
|
105
|
+
inputDialog = new Dialog<Record<'a' | 'b', number>>(({ defer }) => (
|
|
106
|
+
<Modal show={!!defer} onHide={() => defer?.reject(new DialogClose())}>
|
|
107
|
+
<Modal.Header>Dialog</Modal.Header>
|
|
108
|
+
<Modal.Body>
|
|
109
|
+
<Form
|
|
110
|
+
id="input-dialog"
|
|
111
|
+
onSubmit={event => {
|
|
112
|
+
event.preventDefault();
|
|
113
|
+
|
|
114
|
+
defer?.resolve(formToJSON(event.currentTarget));
|
|
115
|
+
}}
|
|
116
|
+
onReset={() => defer?.reject(new DialogClose())}
|
|
117
|
+
>
|
|
118
|
+
<Form.Group>
|
|
119
|
+
<Form.Label>A</Form.Label>
|
|
120
|
+
<Form.Control type="number" name="a" />
|
|
121
|
+
</Form.Group>
|
|
122
|
+
<Form.Group>
|
|
123
|
+
<Form.Label>B</Form.Label>
|
|
124
|
+
<Form.Control type="number" name="b" />
|
|
125
|
+
</Form.Group>
|
|
126
|
+
</Form>
|
|
127
|
+
</Modal.Body>
|
|
128
|
+
<Modal.Footer className="d-flex justify-content-end gap-3">
|
|
129
|
+
<Button form="input-dialog" type="submit">
|
|
130
|
+
√
|
|
131
|
+
</Button>
|
|
132
|
+
<Button form="input-dialog" type="reset" variant="danger">
|
|
133
|
+
×
|
|
134
|
+
</Button>
|
|
135
|
+
</Modal.Footer>
|
|
136
|
+
</Modal>
|
|
137
|
+
));
|
|
138
|
+
|
|
139
|
+
someLogic = async () => {
|
|
140
|
+
try {
|
|
141
|
+
const data = await this.inputDialog.open();
|
|
142
|
+
|
|
143
|
+
alert(JSON.stringify(data, null, 4));
|
|
144
|
+
} catch (error) {
|
|
145
|
+
if (error instanceof DialogClose) console.warn(error.message);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
render() {
|
|
150
|
+
return (
|
|
151
|
+
<>
|
|
152
|
+
<Button onClick={this.someLogic}>open Dialog</Button>
|
|
153
|
+
|
|
154
|
+
<this.inputDialog.Component />
|
|
155
|
+
</>
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Development
|
|
162
|
+
|
|
163
|
+
### Publish
|
|
164
|
+
|
|
165
|
+
1. update `version` in `package.json` file
|
|
166
|
+
|
|
167
|
+
2. add Git tag
|
|
168
|
+
|
|
169
|
+
```shell
|
|
170
|
+
git tag vx.xx.x # such as v2.0.0
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
3. review tag
|
|
174
|
+
|
|
175
|
+
```shell
|
|
176
|
+
git tag
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
4. publish code with tag version
|
|
180
|
+
|
|
181
|
+
```shell
|
|
182
|
+
git push origin master --tags # push all branches and tags on master
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
[1]: https://reactjs.org/
|
|
186
|
+
[2]: https://www.typescriptlang.org/
|
|
187
|
+
[3]: https://getbootstrap.com/
|
|
188
|
+
[4]: https://idea2app.github.io/
|
|
189
|
+
[5]: https://mobx.js.org/
|
|
190
|
+
[6]: https://libraries.io/npm/idea-react
|
|
191
|
+
[7]: https://github.com/idea2app/Idea-React/actions/workflows/main.yml
|
|
192
|
+
[8]: https://nodei.co/npm/idea-react/
|
|
193
|
+
[9]: https://idea2app.github.io/React-MobX-Bootstrap-ts/
|
|
194
|
+
[10]: https://github.com/idea2app/React-MobX-Bootstrap-ts/blob/master/src/page/Component.tsx
|
|
195
|
+
[11]: https://next-bootstrap-ts.vercel.app/
|
|
196
|
+
[12]: https://github.com/idea2app/next-bootstrap-ts/blob/main/pages/component.tsx
|
package/dist/index.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ import { FC } from 'react';
|
|
|
9
9
|
import { HTMLAttributes } from 'react';
|
|
10
10
|
import { ImgHTMLAttributes } from 'react';
|
|
11
11
|
import { InputHTMLAttributes } from 'react';
|
|
12
|
-
import { JSX } from 'react/jsx-runtime';
|
|
12
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
13
13
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
14
14
|
import { NavProps } from 'react-bootstrap';
|
|
15
|
+
import { ObservedComponent } from 'mobx-react-helper';
|
|
15
16
|
import { OutputBlockData } from '@editorjs/editorjs';
|
|
16
17
|
import { OutputData } from '@editorjs/editorjs';
|
|
17
18
|
import { OverlayTriggerProps } from 'react-bootstrap';
|
|
@@ -42,7 +43,7 @@ export declare class ClickBoundary extends PureComponent<ClickBoundaryProps> {
|
|
|
42
43
|
switchClick: (event: MouseEvent) => void;
|
|
43
44
|
componentDidMount(): void;
|
|
44
45
|
componentWillUnmount(): void;
|
|
45
|
-
render():
|
|
46
|
+
render(): JSX_2.Element;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export declare type ClickBoundaryProps = PropsWithChildren<{
|
|
@@ -83,15 +84,14 @@ export declare class Editor extends Component<EditorProps> {
|
|
|
83
84
|
private core?;
|
|
84
85
|
accessor innerValue: OutputData;
|
|
85
86
|
save: () => Promise<OutputData>;
|
|
86
|
-
render():
|
|
87
|
+
render(): JSX_2.Element;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
export declare const EditorHTML: FC<EditorHTMLProps>;
|
|
90
91
|
|
|
91
|
-
export declare
|
|
92
|
-
className?: string;
|
|
92
|
+
export declare interface EditorHTMLProps extends HTMLAttributes<HTMLDivElement> {
|
|
93
93
|
data: OutputData;
|
|
94
|
-
}
|
|
94
|
+
}
|
|
95
95
|
|
|
96
96
|
export declare type EditorProps = PropsWithoutRef<WrapperProps & Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'required'>>;
|
|
97
97
|
|
|
@@ -119,15 +119,14 @@ export declare type LoadingProps = HTMLAttributes<HTMLDivElement>;
|
|
|
119
119
|
/**
|
|
120
120
|
* Re-implement from https://github.com/EasyWebApp/BootCell/blob/3d30027a97fe0a8c4ab8fabc8dfef22aede04de7/source/Calendar/MonthCalendar.tsx
|
|
121
121
|
*/
|
|
122
|
-
export declare class MonthCalendar extends
|
|
122
|
+
export declare class MonthCalendar extends ObservedComponent<MonthCalendarProps> {
|
|
123
123
|
static displayName: string;
|
|
124
|
-
observedProps: MonthCalendarProps;
|
|
125
124
|
get weekFormatter(): Intl.DateTimeFormat;
|
|
126
125
|
accessor currentDate: Date;
|
|
127
126
|
get dateGrid(): Date[][];
|
|
128
127
|
changeMonth(delta: number): void;
|
|
129
|
-
renderDate: (date: Date) =>
|
|
130
|
-
render():
|
|
128
|
+
renderDate: (date: Date) => JSX_2.Element;
|
|
129
|
+
render(): JSX_2.Element;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
export declare interface MonthCalendarProps extends Omit<TableProps, 'variant' | 'onChange' | 'onSelect'>, Pick<ButtonProps, 'variant'> {
|
|
@@ -170,8 +169,8 @@ export declare class PageNav extends Component<PageNavProps> {
|
|
|
170
169
|
componentDidMount(): void;
|
|
171
170
|
componentWillUnmount(): void;
|
|
172
171
|
scrollTo: (meta: HeadingMeta) => () => void;
|
|
173
|
-
renderLink: ({ id, level, text, top }: HeadingMeta) =>
|
|
174
|
-
render():
|
|
172
|
+
renderLink: ({ id, level, text, top }: HeadingMeta) => JSX_2.Element;
|
|
173
|
+
render(): JSX_2.Element;
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
export declare interface PageNavProps extends NavProps {
|
|
@@ -200,7 +199,7 @@ export declare class ShareBox extends Component<ShareBoxProps> {
|
|
|
200
199
|
componentWillUnmount(): void;
|
|
201
200
|
generateImage: () => Promise<void>;
|
|
202
201
|
share: (event: MouseEvent_2<HTMLImageElement>) => Promise<void>;
|
|
203
|
-
render():
|
|
202
|
+
render(): JSX_2.Element;
|
|
204
203
|
}
|
|
205
204
|
|
|
206
205
|
export declare type ShareBoxProps = HTMLAttributes<HTMLDivElement> & ShareData;
|
|
@@ -257,7 +256,7 @@ export declare class TypeEcho extends Component<TypeEchoProps> {
|
|
|
257
256
|
static displayName: string;
|
|
258
257
|
accessor echoed: string;
|
|
259
258
|
init: RefCallback<HTMLPreElement>;
|
|
260
|
-
render():
|
|
259
|
+
render(): JSX_2.Element;
|
|
261
260
|
}
|
|
262
261
|
|
|
263
262
|
export declare interface TypeEchoProps extends HTMLAttributes<HTMLPreElement> {
|
|
@@ -276,9 +275,9 @@ export declare interface UserRank extends UserAddressProps {
|
|
|
276
275
|
|
|
277
276
|
export declare class UserRankView extends PureComponent<UserRankViewProps> {
|
|
278
277
|
static displayName: string;
|
|
279
|
-
renderMedal: (user: UserRank) =>
|
|
280
|
-
renderRow: (user: UserRank, index: number, { length }: UserRank[]) =>
|
|
281
|
-
render():
|
|
278
|
+
renderMedal: (user: UserRank) => JSX_2.Element;
|
|
279
|
+
renderRow: (user: UserRank, index: number, { length }: UserRank[]) => JSX_2.Element;
|
|
280
|
+
render(): JSX_2.Element;
|
|
282
281
|
}
|
|
283
282
|
|
|
284
283
|
export declare interface UserRankViewProps extends RowProps {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;AAEA,wBAAwB,IAAI,EAAE,MAAM,GAAG,YAAY,OAAO,CAAC,CAiB1D;AChBD,4BAA6B,SAAQ,kBAAkB,gBAAgB,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,OAAO,MAAM,QAAQ,GAAG,WAAW,CAelC,CAAC;ACdF,iCAAiC,kBAC7B;IACI,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,GAAG,CAAC;IAC1C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,GAAG,CAAC;CAC7C,GAAG,kBAAkB,eAAe,cAAc,CAAC,EAAE,cAAc,CAAC,CACxE,CAAC;AAEF,0BAA2B,SAAQ,cAAc,kBAAkB,CAAC;IAChE,IAAI,4BAA+B;IAEnC,WAAW,GAAI,OAAO,UAAU,UAM9B;IAEF,iBAAiB;IAIjB,oBAAoB;IAIpB,MAAM;CAST;ACvCD,+BAAgC,SAAQ,eAAe,cAAc,CAAC;I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AM,CAAC,WAAW,SAAkB;IAEpC,WAAW,GAAI,MAAM,QAAQ,iBAmB3B;IAEF,SAAS,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,EAAE,YAAY,QAAQ,EAAE,iBA4BhE;IAEF,MAAM;CAkCT;ACvGD,qCAAsC,SAAQ,eAAe,cAAc,CAAC;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,OAAO,MAAM,iBAAiB,GAAG,oBAAoB,CAiBpD,CAAC","sources":["source/source/animate.ts","source/source/Avatar.tsx","source/source/ClickBoundary.tsx","source/source/CodeBlock.tsx","source/source/color.ts","source/source/Dialog.tsx","source/source/Editor.tsx","source/source/EditorHTML.tsx","source/source/HorizontalMarquee/index.tsx","source/source/Icon.tsx","source/source/Loading.tsx","source/source/OverlayBox.tsx","source/source/MonthCalendar.tsx","source/source/Nameplate.tsx","source/source/PageNav.tsx","source/source/Select.tsx","source/source/ShareBox.tsx","source/source/SpinnerButton.tsx","source/source/TableSpinner.tsx","source/source/Time.tsx","source/source/TimeDistance.tsx","source/source/Timeline/index.tsx","source/source/TypeEcho.tsx","source/source/UserRank/Address.tsx","source/source/UserRank/index.tsx","source/source/VerticalMarquee/index.tsx","source/source/index.ts","source/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export * from './animate';\r\nexport * from './Avatar';\r\nexport * from './ClickBoundary';\r\nexport * from './CodeBlock';\r\nexport * from './color';\r\nexport * from './Dialog';\r\nexport * from './Editor';\r\nexport * from './EditorHTML';\r\nexport * from './HorizontalMarquee';\r\nexport * from './Icon';\r\nexport * from './Loading';\r\nexport * from './MonthCalendar';\r\nexport * from './Nameplate';\r\nexport * from './OverlayBox';\r\nexport * from './PageNav';\r\nexport * from './Select';\r\nexport * from './ShareBox';\r\nexport * from './SpinnerButton';\r\nexport * from './TableSpinner';\r\nexport * from './Time';\r\nexport * from './TimeDistance';\r\nexport * from './Timeline';\r\nexport * from './TypeEcho';\r\nexport * from './UserRank';\r\nexport * from './VerticalMarquee';\r\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|