superdesk-ui-framework 3.0.1-beta.15 → 3.0.1-beta.16
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/.vscode/settings.json +5 -0
- package/app/styles/_table-list.scss +4 -0
- package/app/styles/layout/_editor.scss +1 -0
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
- package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
- package/app-typescript/components/Lists/ContentList.tsx +7 -3
- package/app-typescript/components/Lists/TableList.tsx +29 -16
- package/app-typescript/dist/components/Alert.d.ts +16 -0
- package/app-typescript/dist/components/Autocomplete.d.ts +48 -0
- package/app-typescript/dist/components/Avatar.d.ts +33 -0
- package/app-typescript/dist/components/Badge.d.ts +13 -0
- package/app-typescript/dist/components/Button.d.ts +23 -0
- package/app-typescript/dist/components/ButtonGroup.d.ts +12 -0
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +11 -0
- package/app-typescript/dist/components/CheckGroup.d.ts +9 -0
- package/app-typescript/dist/components/Checkbox.d.ts +19 -0
- package/app-typescript/dist/components/CheckboxButton.d.ts +19 -0
- package/app-typescript/dist/components/DatePicker.d.ts +37 -0
- package/app-typescript/dist/components/Divider.d.ts +9 -0
- package/app-typescript/dist/components/DonutChart.d.ts +12 -0
- package/app-typescript/dist/components/Dropdown.d.ts +28 -0
- package/app-typescript/dist/components/DropdownFirst.d.ts +42 -0
- package/app-typescript/dist/components/EmptyState.d.ts +11 -0
- package/app-typescript/dist/components/FormLabel.d.ts +9 -0
- package/app-typescript/dist/components/Genie.d.ts +13 -0
- package/app-typescript/dist/components/GridItem.d.ts +69 -0
- package/app-typescript/dist/components/GridList.d.ts +14 -0
- package/app-typescript/dist/components/HeadingText.d.ts +10 -0
- package/app-typescript/dist/components/HelloWorld.d.ts +8 -0
- package/app-typescript/dist/components/Icon.d.ts +12 -0
- package/app-typescript/dist/components/IconButton.d.ts +12 -0
- package/app-typescript/dist/components/IconLabel.d.ts +11 -0
- package/app-typescript/dist/components/Input.d.ts +24 -0
- package/app-typescript/dist/components/Label.d.ts +15 -0
- package/app-typescript/dist/components/LeftMenu.d.ts +26 -0
- package/app-typescript/dist/components/Loader.d.ts +8 -0
- package/app-typescript/dist/components/NavButton.d.ts +15 -0
- package/app-typescript/dist/components/Popover.d.ts +13 -0
- package/app-typescript/dist/components/PropsList.d.ts +15 -0
- package/app-typescript/dist/components/Radio.d.ts +19 -0
- package/app-typescript/dist/components/RadioButton.d.ts +20 -0
- package/app-typescript/dist/components/Select.d.ts +29 -0
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +32 -0
- package/app-typescript/dist/components/SlidingToolbar.d.ts +8 -0
- package/app-typescript/dist/components/StrechBar.d.ts +4 -0
- package/app-typescript/dist/components/SubNav.d.ts +10 -0
- package/app-typescript/dist/components/Switch.d.ts +12 -0
- package/app-typescript/dist/components/TabCustom.d.ts +25 -0
- package/app-typescript/dist/components/TabList.d.ts +22 -0
- package/app-typescript/dist/components/Tag.d.ts +9 -0
- package/app-typescript/dist/components/TagInput.d.ts +7 -0
- package/app-typescript/dist/components/TagInputTest.d.ts +18 -0
- package/app-typescript/dist/components/TimePicker.d.ts +11 -0
- package/app-typescript/dist/components/Tooltip.d.ts +11 -0
- package/app-typescript/dist/components/_Positioner.d.ts +27 -0
- package/app-typescript/dist/index.d.ts +56 -0
- package/dist/examples.bundle.js +18 -16
- package/dist/superdesk-ui.bundle.css +5 -1
- package/dist/superdesk-ui.bundle.js +17 -15
- package/package.json +1 -1
- package/react/components/Layouts/AuthoringInnerHeader.js +1 -1
- package/react/components/Layouts/AuthoringMain.js +1 -1
- package/react/components/Lists/ContentList.js +2 -2
- package/react/components/Lists/TableList.d.ts +4 -0
- package/react/components/Lists/TableList.js +13 -11
- package/yarn-error.log +111 -0
@@ -84,6 +84,10 @@ $table-list-palette: $sd-basic-palette;
|
|
84
84
|
}
|
85
85
|
}
|
86
86
|
}
|
87
|
+
&--locked {
|
88
|
+
border-color: hsla(350, 70%, 60%, 0.75);
|
89
|
+
border-left-color: hsla(350, 70%, 60%, 0.75) !important;
|
90
|
+
}
|
87
91
|
&.table-list__item--selected.table-list__item--clickable {
|
88
92
|
&:hover {
|
89
93
|
box-shadow: var(--sd-shadow__item--selected-thin);
|
@@ -31,8 +31,10 @@ export class AuthoringMain extends React.PureComponent<IProps> {
|
|
31
31
|
)}
|
32
32
|
<AuthoringMainContent>
|
33
33
|
{this.props.authoringHeader && (
|
34
|
-
<AuthoringInnerHeader
|
35
|
-
{this.props.
|
34
|
+
<AuthoringInnerHeader
|
35
|
+
headerPadding={this.props.headerPadding}
|
36
|
+
collapsed={this.props.headerCollapsed}>
|
37
|
+
{this.props.authoringHeader}
|
36
38
|
</AuthoringInnerHeader>
|
37
39
|
)}
|
38
40
|
{this.props.authoringBookmarks && (
|
@@ -49,7 +49,11 @@ class ContentListItem extends React.PureComponent<IPropsItem> {
|
|
49
49
|
});
|
50
50
|
|
51
51
|
return (
|
52
|
-
<div
|
52
|
+
<div
|
53
|
+
role='listitem'
|
54
|
+
className={classes}
|
55
|
+
onClick={this.onSingleClick}
|
56
|
+
onDoubleClick={this.onDoubleClick}>
|
53
57
|
{this.props.locked
|
54
58
|
? <div className="sd-list-item__border sd-list-item__border--locked"></div>
|
55
59
|
: <div className="sd-list-item__border"></div>}
|
@@ -100,7 +104,7 @@ class ContentList extends React.PureComponent<IProps> {
|
|
100
104
|
render() {
|
101
105
|
let classes = classNames('sd-list-item-group sd-list-item-group--space-between-items');
|
102
106
|
return (
|
103
|
-
<
|
107
|
+
<div role='list' className={classes}>
|
104
108
|
{this.props.items.map((item, index) => {
|
105
109
|
return <ContentListItem
|
106
110
|
key={index}
|
@@ -114,7 +118,7 @@ class ContentList extends React.PureComponent<IProps> {
|
|
114
118
|
onClick={item.onClick}
|
115
119
|
onDoubleClick={item.onDoubleClick} />;
|
116
120
|
})}
|
117
|
-
</
|
121
|
+
</div>
|
118
122
|
);
|
119
123
|
}
|
120
124
|
}
|
@@ -25,6 +25,8 @@ export interface IPropsArrayItem {
|
|
25
25
|
hexColor?: string;
|
26
26
|
onClick?(): void;
|
27
27
|
onDoubleClick?(): void;
|
28
|
+
locked?: boolean;
|
29
|
+
positionLocked?: boolean;
|
28
30
|
}
|
29
31
|
|
30
32
|
interface IState {
|
@@ -113,7 +115,8 @@ class TableList extends React.PureComponent<IProps, IState> {
|
|
113
115
|
? <DragDropContext onDragEnd={this.onDragEnd}>
|
114
116
|
<Droppable droppableId="droppable">
|
115
117
|
{(provided, _snapshot) => (
|
116
|
-
<
|
118
|
+
<div
|
119
|
+
role='list'
|
117
120
|
className={classes}
|
118
121
|
ref={provided.innerRef}
|
119
122
|
{...provided.droppableProps} >
|
@@ -139,6 +142,8 @@ class TableList extends React.PureComponent<IProps, IState> {
|
|
139
142
|
? this.props.itemsDropdown(index)
|
140
143
|
: []}
|
141
144
|
hexColor={item.hexColor}
|
145
|
+
locked={item.locked}
|
146
|
+
positionLocked={item.positionLocked}
|
142
147
|
onAddItem={() => this.props.onAddItem
|
143
148
|
&& this.props.onAddItem(index, item)}
|
144
149
|
showDragHandle={this.props.showDragHandle}
|
@@ -149,19 +154,19 @@ class TableList extends React.PureComponent<IProps, IState> {
|
|
149
154
|
))}
|
150
155
|
{provided.placeholder}
|
151
156
|
{(this.props.addItem && !this.props.readOnly) &&
|
152
|
-
<
|
157
|
+
<div className={`table-list__add-item table-list__item--margin`}>
|
153
158
|
<Tooltip text='Add item' flow='top' appendToBody={true}>
|
154
159
|
<div className='table-list__add-item--container sd-margin-x--auto'>
|
155
160
|
{this.dropDown()}
|
156
161
|
</div>
|
157
162
|
</Tooltip>
|
158
|
-
</
|
163
|
+
</div>
|
159
164
|
}
|
160
|
-
</
|
165
|
+
</div>
|
161
166
|
)}
|
162
167
|
</Droppable>
|
163
168
|
</DragDropContext>
|
164
|
-
: <
|
169
|
+
: <div role='list' className={classes}>
|
165
170
|
{this.state.items.map((item: IPropsArrayItem, index: number) => (
|
166
171
|
<TableListItem
|
167
172
|
key={index}
|
@@ -176,29 +181,31 @@ class TableList extends React.PureComponent<IProps, IState> {
|
|
176
181
|
addItem={this.props.addItem}
|
177
182
|
itemsDropdown={() => this.props.itemsDropdown ? this.props.itemsDropdown(index) : []}
|
178
183
|
hexColor={item.hexColor}
|
184
|
+
locked={item.locked}
|
185
|
+
positionLocked={item.positionLocked}
|
179
186
|
onAddItem={() => this.props.onAddItem
|
180
187
|
&& this.props.onAddItem(index, item)}
|
181
188
|
/>
|
182
189
|
))}
|
183
190
|
{(this.props.addItem && !this.props.readOnly) &&
|
184
|
-
<
|
191
|
+
<div className={`table-list__add-item table-list__item--margin`}>
|
185
192
|
<Tooltip text='Add item' flow='top' appendToBody={true}>
|
186
193
|
<div className='table-list__add-item--container sd-margin-x--auto'>
|
187
194
|
{this.dropDown()}
|
188
195
|
</div>
|
189
196
|
</Tooltip>
|
190
|
-
</
|
197
|
+
</div>
|
191
198
|
}
|
192
|
-
</
|
193
|
-
: (this.props.addItem && !this.props.readOnly) ? <
|
194
|
-
<
|
199
|
+
</div>
|
200
|
+
: (this.props.addItem && !this.props.readOnly) ? <div role='list' className={classes}>
|
201
|
+
<div className={`table-list__add-item table-list__item--margin`}>
|
195
202
|
<Tooltip text='Add item' flow='top' appendToBody={true}>
|
196
203
|
<div className='table-list__add-item--container sd-margin-x--auto'>
|
197
204
|
{this.dropDown()}
|
198
205
|
</div>
|
199
206
|
</Tooltip>
|
200
|
-
</
|
201
|
-
</
|
207
|
+
</div>
|
208
|
+
</div>
|
202
209
|
: null
|
203
210
|
);
|
204
211
|
}
|
@@ -213,6 +220,8 @@ export interface IPropsItem {
|
|
213
220
|
dragAndDrop?: boolean;
|
214
221
|
hexColor?: string;
|
215
222
|
showDragHandle?: 'always' | 'onHover' | 'none';
|
223
|
+
locked?: boolean;
|
224
|
+
positionLocked?: boolean;
|
216
225
|
onClick?(): void;
|
217
226
|
onDoubleClick?(): void;
|
218
227
|
onSelect?(): void;
|
@@ -251,14 +260,17 @@ class TableListItem extends React.PureComponent<IPropsItem> {
|
|
251
260
|
let classes = classNames('table-list__item', {
|
252
261
|
'table-list__item--clickable': this.props.onClick,
|
253
262
|
'table-list__item--draggable': this.props.dragAndDrop,
|
263
|
+
'table-list__item--locked': this.props.locked,
|
264
|
+
'table-list__item--position-locked': this.props.positionLocked,
|
254
265
|
'table-list__item--drag-handles-always': !this.props.showDragHandle,
|
255
266
|
'table-list__item--drag-handles-none': this.props.showDragHandle === 'none',
|
256
267
|
});
|
257
268
|
|
258
269
|
return (
|
259
270
|
this.props.addItem ?
|
260
|
-
<
|
271
|
+
<div className='table-list__item-container'>
|
261
272
|
<div
|
273
|
+
role='listitem'
|
262
274
|
onClick={() => this.onSingleClick()}
|
263
275
|
onDoubleClick={() => this.onDoubleClick()}
|
264
276
|
className={classes}>
|
@@ -297,8 +309,9 @@ class TableListItem extends React.PureComponent<IPropsItem> {
|
|
297
309
|
</div>
|
298
310
|
</Tooltip>
|
299
311
|
</div>
|
300
|
-
</
|
301
|
-
: <
|
312
|
+
</div>
|
313
|
+
: <div
|
314
|
+
role='listitem'
|
302
315
|
className={`${classes} table-list__item--margin`}
|
303
316
|
onClick={() => this.onSingleClick()}
|
304
317
|
onDoubleClick={() => this.onDoubleClick()}>
|
@@ -317,7 +330,7 @@ class TableListItem extends React.PureComponent<IPropsItem> {
|
|
317
330
|
{this.props.action && <div className='table-list__slide-in-actions'>
|
318
331
|
{this.props.action}
|
319
332
|
</div>}
|
320
|
-
</
|
333
|
+
</div>
|
321
334
|
);
|
322
335
|
}
|
323
336
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
type?: 'primary' | 'success' | 'warning' | 'alert' | 'highlight' | 'sd-green';
|
4
|
+
style?: 'filled' | 'hollow';
|
5
|
+
size?: 'normal' | 'small';
|
6
|
+
restoreIcon?: 'info' | 'help';
|
7
|
+
}
|
8
|
+
interface IState {
|
9
|
+
open: boolean;
|
10
|
+
}
|
11
|
+
export declare class Alert extends React.PureComponent<IProps, IState> {
|
12
|
+
constructor(props: IProps);
|
13
|
+
onToggle(): void;
|
14
|
+
render(): JSX.Element;
|
15
|
+
}
|
16
|
+
export {};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
items: Array<any>;
|
4
|
+
keyValue?: string;
|
5
|
+
minLength?: number;
|
6
|
+
value?: string | object;
|
7
|
+
label?: string;
|
8
|
+
placeholder?: string;
|
9
|
+
info?: string;
|
10
|
+
error?: string;
|
11
|
+
required?: boolean;
|
12
|
+
disabled?: boolean;
|
13
|
+
invalid?: boolean;
|
14
|
+
inlineLabel?: boolean;
|
15
|
+
isSearchField?: boolean;
|
16
|
+
listItemTemplate?(value: any): any;
|
17
|
+
search?(searhString: string, callback: (result: Array<any>) => void): {
|
18
|
+
cancel: () => void;
|
19
|
+
};
|
20
|
+
onChange(newValue: string): void;
|
21
|
+
onSelect?(suggestion: string): void;
|
22
|
+
}
|
23
|
+
interface IState {
|
24
|
+
selectedItem: any;
|
25
|
+
filteredItems: any;
|
26
|
+
invalid: boolean;
|
27
|
+
focused: boolean;
|
28
|
+
}
|
29
|
+
export declare class Autocomplete extends React.Component<IProps, IState> {
|
30
|
+
latestCall?: {
|
31
|
+
cancel: () => void;
|
32
|
+
};
|
33
|
+
constructor(props: IProps);
|
34
|
+
htmlId: string;
|
35
|
+
search(term: string): void;
|
36
|
+
searchItem(event: any): void;
|
37
|
+
handleChange(event: {
|
38
|
+
originalEvent: Event;
|
39
|
+
value: any;
|
40
|
+
}): void;
|
41
|
+
handleSelect(event: {
|
42
|
+
originalEvent: Event;
|
43
|
+
value: any;
|
44
|
+
}): void;
|
45
|
+
handleInputClear(): void;
|
46
|
+
render(): JSX.Element;
|
47
|
+
}
|
48
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IBase {
|
3
|
+
tooltipText?: string;
|
4
|
+
}
|
5
|
+
interface IImageAvatar extends IBase {
|
6
|
+
imageUrl?: string;
|
7
|
+
}
|
8
|
+
interface ITextAvatar extends IBase {
|
9
|
+
text: string;
|
10
|
+
}
|
11
|
+
export declare class AvatarContentText extends React.PureComponent<ITextAvatar> {
|
12
|
+
render(): JSX.Element;
|
13
|
+
}
|
14
|
+
export declare class AvatarContentImage extends React.PureComponent<IImageAvatar> {
|
15
|
+
render(): JSX.Element;
|
16
|
+
}
|
17
|
+
interface IPropsAvatarWrapper {
|
18
|
+
size?: 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
|
19
|
+
statusIndicator?: {
|
20
|
+
status: 'online' | 'offline';
|
21
|
+
tooltipText?: string;
|
22
|
+
};
|
23
|
+
administratorIndicator?: {
|
24
|
+
enabled: boolean;
|
25
|
+
tooltipText?: string;
|
26
|
+
};
|
27
|
+
children: React.ReactNode;
|
28
|
+
'data-test-id'?: string;
|
29
|
+
}
|
30
|
+
export declare class AvatarWrapper extends React.PureComponent<IPropsAvatarWrapper> {
|
31
|
+
render(): JSX.Element;
|
32
|
+
}
|
33
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
text?: string;
|
4
|
+
type?: 'default' | 'primary' | 'success' | 'warning' | 'alert' | 'highlight' | 'light';
|
5
|
+
color?: string;
|
6
|
+
shape?: 'round' | 'square';
|
7
|
+
children?: React.ReactNode;
|
8
|
+
'data-test-id'?: string;
|
9
|
+
}
|
10
|
+
export declare class Badge extends React.PureComponent<IProps> {
|
11
|
+
render(): JSX.Element;
|
12
|
+
}
|
13
|
+
export {};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IButtonBase {
|
3
|
+
id?: string;
|
4
|
+
theme?: 'light' | 'dark';
|
5
|
+
type?: 'default' | 'primary' | 'success' | 'warning' | 'alert' | 'highlight' | 'sd-green';
|
6
|
+
size?: 'small' | 'normal' | 'large';
|
7
|
+
children?: never;
|
8
|
+
icon?: string;
|
9
|
+
disabled?: boolean;
|
10
|
+
iconOnly?: boolean;
|
11
|
+
onClick(): void;
|
12
|
+
'data-test-id'?: string;
|
13
|
+
}
|
14
|
+
interface IPropsButton extends IButtonBase {
|
15
|
+
text: string;
|
16
|
+
expand?: boolean;
|
17
|
+
style?: 'filled' | 'hollow' | 'text-only';
|
18
|
+
shape?: 'square' | 'round';
|
19
|
+
}
|
20
|
+
export declare class Button extends React.PureComponent<IPropsButton> {
|
21
|
+
render(): JSX.Element;
|
22
|
+
}
|
23
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
orientation?: 'horizontal' | 'vertical';
|
4
|
+
spaces?: 'comfort' | 'compact';
|
5
|
+
align?: 'left' | 'right' | 'center' | 'inline';
|
6
|
+
padded?: boolean;
|
7
|
+
children: React.ReactNode;
|
8
|
+
}
|
9
|
+
export declare class ButtonGroup extends React.PureComponent<IProps> {
|
10
|
+
render(): JSX.Element;
|
11
|
+
}
|
12
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
orientation?: 'horizontal' | 'vertical';
|
4
|
+
grid?: boolean;
|
5
|
+
align?: 'left' | 'right' | 'center' | 'inline';
|
6
|
+
padded?: boolean;
|
7
|
+
}
|
8
|
+
export declare class CheckButtonGroup extends React.PureComponent<IProps> {
|
9
|
+
render(): JSX.Element;
|
10
|
+
}
|
11
|
+
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
label: {
|
4
|
+
text: string;
|
5
|
+
side?: 'left' | 'right';
|
6
|
+
hidden?: boolean;
|
7
|
+
};
|
8
|
+
checked?: boolean;
|
9
|
+
disabled?: boolean;
|
10
|
+
required?: boolean;
|
11
|
+
onChange(nextValue: boolean): void;
|
12
|
+
}
|
13
|
+
export declare class Checkbox extends React.Component<IProps> {
|
14
|
+
htmlId: string;
|
15
|
+
constructor(props: IProps);
|
16
|
+
handleChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
17
|
+
render(): JSX.Element;
|
18
|
+
}
|
19
|
+
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
label: {
|
4
|
+
text: string;
|
5
|
+
icon?: string;
|
6
|
+
hidden?: boolean;
|
7
|
+
};
|
8
|
+
checked?: boolean;
|
9
|
+
disabled?: boolean;
|
10
|
+
required?: boolean;
|
11
|
+
onChange(nextValue: boolean): void;
|
12
|
+
}
|
13
|
+
export declare class CheckboxButton extends React.Component<IProps> {
|
14
|
+
htmlId: string;
|
15
|
+
constructor(props: IProps);
|
16
|
+
handleChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
17
|
+
render(): JSX.Element;
|
18
|
+
}
|
19
|
+
export {};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { LocaleSettings, CalendarProps } from '@superdesk/primereact/calendar';
|
3
|
+
export declare type DatePickerLocaleSettings = Omit<LocaleSettings, 'today' | 'clear'>;
|
4
|
+
interface IDatePickerBase {
|
5
|
+
disabled?: boolean;
|
6
|
+
dateFormat: string;
|
7
|
+
shortcuts?: Array<{
|
8
|
+
days: number;
|
9
|
+
label: string;
|
10
|
+
}>;
|
11
|
+
locale?: DatePickerLocaleSettings;
|
12
|
+
}
|
13
|
+
interface IDatePicker extends IDatePickerBase {
|
14
|
+
value: Date | null;
|
15
|
+
onChange(valueNext: Date | null): void;
|
16
|
+
}
|
17
|
+
interface IState {
|
18
|
+
value: CalendarProps['value'];
|
19
|
+
valid: boolean;
|
20
|
+
}
|
21
|
+
export declare class DatePicker extends React.PureComponent<IDatePicker, IState> {
|
22
|
+
private instance;
|
23
|
+
hidePopupOnScroll: () => void;
|
24
|
+
constructor(props: IDatePicker);
|
25
|
+
componentDidMount(): void;
|
26
|
+
componentWillUnmount(): void;
|
27
|
+
componentDidUpdate(prevProps: IDatePicker): void;
|
28
|
+
render(): JSX.Element;
|
29
|
+
}
|
30
|
+
interface IDatePickerISO extends IDatePickerBase {
|
31
|
+
value: string;
|
32
|
+
onChange(value: string): void;
|
33
|
+
}
|
34
|
+
export declare class DatePickerISO extends React.PureComponent<IDatePickerISO> {
|
35
|
+
render(): JSX.Element;
|
36
|
+
}
|
37
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { ChartData, ChartOptions } from 'chart.js';
|
3
|
+
interface IProps {
|
4
|
+
data: ChartData;
|
5
|
+
options: ChartOptions;
|
6
|
+
width: string;
|
7
|
+
height: string;
|
8
|
+
}
|
9
|
+
export declare class DonutChart extends React.Component<IProps, {}> {
|
10
|
+
render(): JSX.Element;
|
11
|
+
}
|
12
|
+
export {};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
export interface IMenuItem {
|
3
|
+
label: string;
|
4
|
+
icon?: string;
|
5
|
+
onSelect(): void;
|
6
|
+
}
|
7
|
+
export interface ISubmenu {
|
8
|
+
type: 'submenu';
|
9
|
+
label: string;
|
10
|
+
icon?: string;
|
11
|
+
items: Array<IMenuItem | ISubmenu | IMenuGroup | 'divider'>;
|
12
|
+
}
|
13
|
+
export interface IMenuGroup {
|
14
|
+
type: 'group';
|
15
|
+
label?: string;
|
16
|
+
items: Array<IMenuItem | ISubmenu | IMenuGroup | 'divider'>;
|
17
|
+
}
|
18
|
+
interface IMenu {
|
19
|
+
label?: string;
|
20
|
+
align?: 'left' | 'right';
|
21
|
+
items: Array<IMenuItem | ISubmenu | IMenuGroup | 'divider'>;
|
22
|
+
header?: Array<IMenuItem | ISubmenu | IMenuGroup | 'divider'>;
|
23
|
+
footer?: Array<IMenuItem | ISubmenu | IMenuGroup | 'divider'>;
|
24
|
+
append?: boolean;
|
25
|
+
children: React.ReactNode;
|
26
|
+
}
|
27
|
+
export declare const Dropdown: ({ items, header, footer, children, append, align, }: IMenu) => JSX.Element;
|
28
|
+
export {};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
name: string;
|
4
|
+
align?: 'left' | 'right';
|
5
|
+
side?: 'left' | 'right';
|
6
|
+
icon?: string;
|
7
|
+
navDropdown?: boolean;
|
8
|
+
level?: boolean;
|
9
|
+
headerFooter?: boolean;
|
10
|
+
children: React.ReactNode;
|
11
|
+
}
|
12
|
+
interface IPropsItem {
|
13
|
+
text: string;
|
14
|
+
noLink?: boolean;
|
15
|
+
icon?: string;
|
16
|
+
onSelect(): void;
|
17
|
+
children?: never;
|
18
|
+
}
|
19
|
+
interface IPropsLabel {
|
20
|
+
text: string;
|
21
|
+
children?: never;
|
22
|
+
}
|
23
|
+
interface IPropsMenu {
|
24
|
+
title: string;
|
25
|
+
children: React.ReactNode;
|
26
|
+
}
|
27
|
+
export declare const DropdownFirst: {
|
28
|
+
({ name, align, side, level, icon, headerFooter, navDropdown, children, }: IProps): JSX.Element;
|
29
|
+
Item: ({ text, icon, noLink, onSelect, }: IPropsItem) => JSX.Element;
|
30
|
+
Divider: ({}: {}) => JSX.Element;
|
31
|
+
Label: ({ text, }: IPropsLabel) => JSX.Element;
|
32
|
+
Header: ({ title, children, }: IPropsMenu) => JSX.Element;
|
33
|
+
Body: ({ title, children, }: IPropsMenu) => JSX.Element;
|
34
|
+
Footer: ({ title, children, }: IPropsMenu) => JSX.Element;
|
35
|
+
};
|
36
|
+
export declare const DropdownItem: ({ text, icon, noLink, onSelect, }: IPropsItem) => JSX.Element;
|
37
|
+
export declare const DropdownDivider: ({}: {}) => JSX.Element;
|
38
|
+
export declare const DropdownLabel: ({ text, }: IPropsLabel) => JSX.Element;
|
39
|
+
export declare const DropdownHeader: ({ title, children, }: IPropsMenu) => JSX.Element;
|
40
|
+
export declare const DropdownBody: ({ title, children, }: IPropsMenu) => JSX.Element;
|
41
|
+
export declare const DropdownFooter: ({ title, children, }: IPropsMenu) => JSX.Element;
|
42
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
illustration?: string;
|
4
|
+
size?: 'small' | 'large';
|
5
|
+
title: string;
|
6
|
+
description?: string;
|
7
|
+
}
|
8
|
+
export declare class EmptyState extends React.PureComponent<IProps> {
|
9
|
+
render(): JSX.Element;
|
10
|
+
}
|
11
|
+
export {};
|