superdesk-ui-framework 3.0.8 → 3.0.10
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/app-typescript/components/Layouts/AuthoringInnerBody.tsx +3 -1
- package/app-typescript/components/Select.tsx +22 -27
- package/dist/examples.bundle.js +27 -25
- package/dist/react/Selects.tsx +54 -64
- package/dist/superdesk-ui.bundle.js +6 -7
- package/examples/pages/react/Selects.tsx +54 -64
- package/package.json +1 -1
- package/react/components/Layouts/AuthoringInnerBody.js +3 -1
- package/react/components/Select.d.ts +0 -5
- package/react/components/Select.js +3 -6
- package/.vscode/settings.json +0 -5
- package/app-typescript/dist/components/Alert.d.ts +0 -16
- package/app-typescript/dist/components/Autocomplete.d.ts +0 -48
- package/app-typescript/dist/components/Avatar.d.ts +0 -33
- package/app-typescript/dist/components/Badge.d.ts +0 -13
- package/app-typescript/dist/components/Button.d.ts +0 -23
- package/app-typescript/dist/components/ButtonGroup.d.ts +0 -12
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +0 -11
- package/app-typescript/dist/components/CheckGroup.d.ts +0 -9
- package/app-typescript/dist/components/Checkbox.d.ts +0 -19
- package/app-typescript/dist/components/CheckboxButton.d.ts +0 -19
- package/app-typescript/dist/components/DatePicker.d.ts +0 -37
- package/app-typescript/dist/components/Divider.d.ts +0 -9
- package/app-typescript/dist/components/DonutChart.d.ts +0 -12
- package/app-typescript/dist/components/Dropdown.d.ts +0 -28
- package/app-typescript/dist/components/DropdownFirst.d.ts +0 -42
- package/app-typescript/dist/components/EmptyState.d.ts +0 -11
- package/app-typescript/dist/components/FormLabel.d.ts +0 -9
- package/app-typescript/dist/components/Genie.d.ts +0 -13
- package/app-typescript/dist/components/GridItem.d.ts +0 -69
- package/app-typescript/dist/components/GridList.d.ts +0 -14
- package/app-typescript/dist/components/HeadingText.d.ts +0 -10
- package/app-typescript/dist/components/HelloWorld.d.ts +0 -8
- package/app-typescript/dist/components/Icon.d.ts +0 -12
- package/app-typescript/dist/components/IconButton.d.ts +0 -12
- package/app-typescript/dist/components/IconLabel.d.ts +0 -11
- package/app-typescript/dist/components/Input.d.ts +0 -24
- package/app-typescript/dist/components/Label.d.ts +0 -15
- package/app-typescript/dist/components/LeftMenu.d.ts +0 -26
- package/app-typescript/dist/components/Loader.d.ts +0 -8
- package/app-typescript/dist/components/NavButton.d.ts +0 -15
- package/app-typescript/dist/components/Popover.d.ts +0 -13
- package/app-typescript/dist/components/PropsList.d.ts +0 -15
- package/app-typescript/dist/components/Radio.d.ts +0 -19
- package/app-typescript/dist/components/RadioButton.d.ts +0 -20
- package/app-typescript/dist/components/Select.d.ts +0 -29
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +0 -32
- package/app-typescript/dist/components/SlidingToolbar.d.ts +0 -8
- package/app-typescript/dist/components/StrechBar.d.ts +0 -4
- package/app-typescript/dist/components/SubNav.d.ts +0 -10
- package/app-typescript/dist/components/Switch.d.ts +0 -12
- package/app-typescript/dist/components/TabCustom.d.ts +0 -25
- package/app-typescript/dist/components/TabList.d.ts +0 -22
- package/app-typescript/dist/components/Tag.d.ts +0 -9
- package/app-typescript/dist/components/TagInput.d.ts +0 -7
- package/app-typescript/dist/components/TagInputTest.d.ts +0 -18
- package/app-typescript/dist/components/TimePicker.d.ts +0 -11
- package/app-typescript/dist/components/Tooltip.d.ts +0 -11
- package/app-typescript/dist/components/_Positioner.d.ts +0 -27
- package/app-typescript/dist/index.d.ts +0 -56
- package/yarn-error.log +0 -111
@@ -9,6 +9,8 @@ interface IState {
|
|
9
9
|
required: boolean;
|
10
10
|
disabled: boolean;
|
11
11
|
invalid: boolean;
|
12
|
+
value: string;
|
13
|
+
value2: string;
|
12
14
|
}
|
13
15
|
|
14
16
|
export default class InputsDoc extends React.Component<{}, IState> {
|
@@ -18,7 +20,9 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
18
20
|
inlineLabel: false,
|
19
21
|
required: true,
|
20
22
|
disabled: false,
|
21
|
-
invalid: false
|
23
|
+
invalid: false,
|
24
|
+
value: '',
|
25
|
+
value2: '',
|
22
26
|
}
|
23
27
|
}
|
24
28
|
|
@@ -28,7 +32,14 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
28
32
|
|
29
33
|
<h2 className='docs-page__h2'>Select</h2>
|
30
34
|
<Markup.ReactMarkupCodePreview>{`
|
31
|
-
<Select
|
35
|
+
<Select
|
36
|
+
value={this.state.value}
|
37
|
+
onChange={(value) => {
|
38
|
+
this.setState({
|
39
|
+
value: value,
|
40
|
+
})
|
41
|
+
}}
|
42
|
+
>
|
32
43
|
<Option>Option 1</Option>
|
33
44
|
<Option>Option 2</Option>
|
34
45
|
</Select>
|
@@ -48,8 +59,9 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
48
59
|
</div>
|
49
60
|
|
50
61
|
<div className='form__row'>
|
51
|
-
<Select
|
52
|
-
value=
|
62
|
+
<Select
|
63
|
+
value={this.state.value}
|
64
|
+
label='Select label'
|
53
65
|
error='This is error message'
|
54
66
|
info='This is some hint message'
|
55
67
|
inlineLabel={this.state.inlineLabel}
|
@@ -57,7 +69,12 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
57
69
|
disabled={this.state.disabled}
|
58
70
|
invalid={this.state.invalid}
|
59
71
|
tabindex={0}
|
60
|
-
onChange={(value) => {
|
72
|
+
onChange={(value) => {
|
73
|
+
this.setState({
|
74
|
+
value: value,
|
75
|
+
})
|
76
|
+
}}
|
77
|
+
>
|
61
78
|
<Option>Option 1</Option>
|
62
79
|
<Option>Option 2</Option>
|
63
80
|
</Select>
|
@@ -65,73 +82,45 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
65
82
|
|
66
83
|
<p className="docs-page__paragraph">// Boxed with hidden label</p>
|
67
84
|
<div className='form__row'>
|
68
|
-
<Select
|
69
|
-
value=
|
70
|
-
|
85
|
+
<Select
|
86
|
+
value={this.state.value2}
|
87
|
+
label='Select label'
|
71
88
|
labelHidden
|
72
89
|
error='This is error message'
|
73
90
|
info='This is some hint message'
|
74
|
-
inlineLabel={this.state.inlineLabel}
|
75
|
-
required={this.state.required}
|
76
|
-
disabled={this.state.disabled}
|
77
|
-
invalid={this.state.invalid}
|
78
91
|
tabindex={0}
|
79
|
-
onChange={(value) => {
|
80
|
-
|
81
|
-
|
92
|
+
onChange={(value) => {
|
93
|
+
this.setState({
|
94
|
+
value2: value,
|
95
|
+
})
|
96
|
+
}}
|
97
|
+
>
|
98
|
+
<Option>Option 1</Option>
|
99
|
+
<Option>Option 2</Option>
|
82
100
|
</Select>
|
83
|
-
</div>
|
84
|
-
<div className='form__row'>
|
85
|
-
<Select label='Select label'
|
86
|
-
value='Option 2'
|
87
|
-
boxedStyle
|
88
|
-
labelHidden
|
89
|
-
size='large'
|
90
|
-
error='This is error message'
|
91
|
-
info='This is some hint message'
|
92
|
-
inlineLabel={this.state.inlineLabel}
|
93
|
-
required={this.state.required}
|
94
|
-
disabled={this.state.disabled}
|
95
|
-
invalid={this.state.invalid}
|
96
|
-
tabindex={0}
|
97
|
-
onChange={(value) => { console.log(value) }}>
|
98
|
-
<Option>Option 1</Option>
|
99
|
-
<Option>Option 2</Option>
|
100
|
-
</Select>
|
101
|
-
</div>
|
102
|
-
<div className='form__row'>
|
103
|
-
<Select label='Select label'
|
104
|
-
value='Option 2'
|
105
|
-
boxedStyle
|
106
|
-
labelHidden
|
107
|
-
size='x-large'
|
108
|
-
error='This is error message'
|
109
|
-
info='This is some hint message'
|
110
|
-
inlineLabel={this.state.inlineLabel}
|
111
|
-
required={this.state.required}
|
112
|
-
disabled={this.state.disabled}
|
113
|
-
invalid={this.state.invalid}
|
114
|
-
tabindex={0}
|
115
|
-
onChange={(value) => { console.log(value) }}>
|
116
|
-
<Option>Option 1</Option>
|
117
|
-
<Option>Option 2</Option>
|
118
|
-
</Select>
|
119
|
-
</div>
|
101
|
+
</div>
|
120
102
|
</div>
|
121
103
|
|
122
104
|
</Markup.ReactMarkupPreview>
|
123
105
|
<Markup.ReactMarkupCode>{`
|
124
|
-
<Select
|
125
|
-
value=
|
106
|
+
<Select
|
107
|
+
value={this.state.value}
|
108
|
+
label='Select label'
|
126
109
|
error='This is error message'
|
127
110
|
info='This is some hint message'
|
128
|
-
inlineLabel={
|
129
|
-
required={
|
130
|
-
disabled={
|
131
|
-
invalid={
|
132
|
-
|
133
|
-
|
134
|
-
|
111
|
+
inlineLabel={this.state.inlineLabel}
|
112
|
+
required={this.state.required}
|
113
|
+
disabled={this.state.disabled}
|
114
|
+
invalid={this.state.invalid}
|
115
|
+
tabindex={0}
|
116
|
+
onChange={(value) => {
|
117
|
+
this.setState({
|
118
|
+
value: value,
|
119
|
+
})
|
120
|
+
}}
|
121
|
+
>
|
122
|
+
<Option>Option 1</Option>
|
123
|
+
<Option>Option 2</Option>
|
135
124
|
</Select>
|
136
125
|
`}</Markup.ReactMarkupCode>
|
137
126
|
</Markup.ReactMarkup>
|
@@ -139,14 +128,15 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
139
128
|
<h3 className='docs-page__h3'>Props</h3>
|
140
129
|
<PropsList>
|
141
130
|
<Prop name='value' isRequired={false} type='string' default='/' description='Item value' />
|
142
|
-
<Prop name='label' isRequired={false} type='string' default='/' description='
|
143
|
-
<Prop name='info' isRequired={false} type='string' default='/' description='
|
144
|
-
<Prop name='error' isRequired={false} type='string' default='/' description='Error
|
131
|
+
<Prop name='label' isRequired={false} type='string' default='/' description='Label of component' />
|
132
|
+
<Prop name='info' isRequired={false} type='string' default='/' description='Info message of component' />
|
133
|
+
<Prop name='error' isRequired={false} type='string' default='/' description='Error message of component' />
|
145
134
|
<Prop name='inlineLabel' isRequired={false} type='boolean' default='false' description='Position labels as inline' />
|
146
135
|
<Prop name='required' isRequired={false} type='boolean' default='false' description='Mark field as required' />
|
147
136
|
<Prop name='disabled' isRequired={false} type='boolean' default='false' description='Mark field as disabled' />
|
148
137
|
<Prop name='invalid' isRequired={false} type='boolean' default='false' description='Mark field as invalid' />
|
149
138
|
<Prop name='tabindex' isRequired={false} type='number' default='/' description='Indicates an element can be focused on, and determines how that focus is handled.' />
|
139
|
+
<Prop name='onChange' isRequired={true} type='Function' default='/' description='Callback to invoke when value changes.'/>
|
150
140
|
</PropsList>
|
151
141
|
</section>
|
152
142
|
)
|
package/package.json
CHANGED
@@ -46,7 +46,9 @@ var AuthoringInnerBody = /** @class */ (function (_super) {
|
|
46
46
|
return _super !== null && _super.apply(this, arguments) || this;
|
47
47
|
}
|
48
48
|
AuthoringInnerBody.prototype.render = function () {
|
49
|
-
return (React.createElement("article", { className: (0, classnames_1.default)('sd-editor-content__authoring-body', {
|
49
|
+
return (React.createElement("article", { className: (0, classnames_1.default)('sd-editor-content__authoring-body', {
|
50
|
+
'sd-editor-content__authoring-body-padding': !this.props.noPadding,
|
51
|
+
}) }, this.props.children));
|
50
52
|
};
|
51
53
|
return AuthoringInnerBody;
|
52
54
|
}(React.PureComponent));
|
@@ -12,13 +12,8 @@ interface ISelect {
|
|
12
12
|
tabindex?: number;
|
13
13
|
fullWidth?: boolean;
|
14
14
|
onChange(newValue: string): void;
|
15
|
-
boxedStyle?: boolean;
|
16
|
-
boxedLable?: boolean;
|
17
|
-
placeholder?: string;
|
18
|
-
size?: 'medium' | 'large' | 'x-large';
|
19
15
|
}
|
20
16
|
interface IState {
|
21
|
-
value: string;
|
22
17
|
invalid: boolean;
|
23
18
|
}
|
24
19
|
declare class Select extends React.Component<ISelect, IState> {
|
@@ -39,29 +39,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
40
40
|
exports.Option = exports.Select = void 0;
|
41
41
|
var React = __importStar(require("react"));
|
42
|
-
// import classNames from 'classnames';
|
43
42
|
var react_id_generator_1 = __importDefault(require("react-id-generator"));
|
44
43
|
var Form_1 = require("./Form");
|
45
44
|
var Select = /** @class */ (function (_super) {
|
46
45
|
__extends(Select, _super);
|
47
46
|
function Select(props) {
|
48
|
-
var _a
|
47
|
+
var _a;
|
49
48
|
var _this = _super.call(this, props) || this;
|
50
49
|
_this.htmlId = (0, react_id_generator_1.default)();
|
51
50
|
_this.state = {
|
52
|
-
|
53
|
-
invalid: (_b = _this.props.invalid) !== null && _b !== void 0 ? _b : false,
|
51
|
+
invalid: (_a = _this.props.invalid) !== null && _a !== void 0 ? _a : false,
|
54
52
|
};
|
55
53
|
_this.handleChange = _this.handleChange.bind(_this);
|
56
54
|
return _this;
|
57
55
|
}
|
58
56
|
Select.prototype.handleChange = function (event) {
|
59
|
-
this.setState({ value: event.target.value });
|
60
57
|
this.props.onChange(event.target.value);
|
61
58
|
};
|
62
59
|
Select.prototype.render = function () {
|
63
60
|
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, required: this.props.required, disabled: this.props.disabled, invalid: this.state.invalid, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, fullWidth: this.props.fullWidth, htmlId: this.htmlId, tabindex: this.props.tabindex },
|
64
|
-
React.createElement("select", { className: 'sd-input__select', id: this.htmlId, value: this.
|
61
|
+
React.createElement("select", { className: 'sd-input__select', id: this.htmlId, value: this.props.value, "aria-describedby": this.htmlId, tabIndex: this.props.tabindex, onChange: this.handleChange, disabled: this.props.disabled }, this.props.children)));
|
65
62
|
};
|
66
63
|
return Select;
|
67
64
|
}(React.Component));
|
package/.vscode/settings.json
DELETED
@@ -1,16 +0,0 @@
|
|
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 {};
|
@@ -1,48 +0,0 @@
|
|
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 {};
|
@@ -1,33 +0,0 @@
|
|
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 {};
|
@@ -1,13 +0,0 @@
|
|
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 {};
|
@@ -1,23 +0,0 @@
|
|
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 {};
|
@@ -1,12 +0,0 @@
|
|
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 {};
|
@@ -1,11 +0,0 @@
|
|
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 {};
|
@@ -1,19 +0,0 @@
|
|
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 {};
|
@@ -1,19 +0,0 @@
|
|
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 {};
|
@@ -1,37 +0,0 @@
|
|
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 {};
|
@@ -1,12 +0,0 @@
|
|
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 {};
|
@@ -1,28 +0,0 @@
|
|
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 {};
|
@@ -1,42 +0,0 @@
|
|
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 {};
|
@@ -1,11 +0,0 @@
|
|
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 {};
|