superdesk-ui-framework 4.0.36 → 4.0.38
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/DatePicker.tsx +1 -0
- package/app-typescript/components/DateTimePicker.tsx +1 -0
- package/app-typescript/components/DurationInput.tsx +1 -0
- package/app-typescript/components/Form/InputWrapper.tsx +16 -3
- package/app-typescript/components/FormLabel.tsx +12 -1
- package/app-typescript/components/Input.tsx +3 -1
- package/app-typescript/components/MultiSelect.tsx +1 -0
- package/app-typescript/components/Select.tsx +1 -0
- package/app-typescript/components/SelectWithTemplate.tsx +52 -49
- package/app-typescript/components/TagInput.tsx +1 -0
- package/app-typescript/components/TimePicker.tsx +1 -0
- package/app-typescript/components/TimePickerV2.tsx +1 -0
- package/app-typescript/components/TreeSelect/TreeSelect.tsx +1 -0
- package/app-typescript/components/card.tsx +36 -0
- package/dist/components/Card.tsx +24 -0
- package/dist/components/Index.tsx +5 -0
- package/dist/examples.bundle.js +253 -101
- package/dist/superdesk-ui.bundle.js +102 -89
- package/examples/pages/components/Card.tsx +24 -0
- package/examples/pages/components/Index.tsx +5 -0
- package/package.json +1 -1
- package/react/components/DatePicker.js +1 -1
- package/react/components/DateTimePicker.js +1 -1
- package/react/components/DurationInput.js +1 -1
- package/react/components/Form/InputWrapper.d.ts +10 -3
- package/react/components/Form/InputWrapper.js +8 -4
- package/react/components/FormLabel.d.ts +1 -0
- package/react/components/FormLabel.js +8 -1
- package/react/components/Input.d.ts +2 -1
- package/react/components/Input.js +1 -1
- package/react/components/MultiSelect.js +1 -1
- package/react/components/Select.js +1 -1
- package/react/components/SelectWithTemplate.js +1 -1
- package/react/components/TagInput.js +1 -1
- package/react/components/TimePicker.js +1 -1
- package/react/components/TimePickerV2.js +1 -1
- package/react/components/TreeSelect/TreeSelect.js +1 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as Markup from "../../js/react";
|
3
|
+
import {Card} from '../../../app-typescript/components/card';
|
4
|
+
|
5
|
+
export default class CardDoc extends React.Component {
|
6
|
+
render() {
|
7
|
+
return (
|
8
|
+
<section className="docs-page__container">
|
9
|
+
<h2 className="docs-page__h2">Card</h2>
|
10
|
+
|
11
|
+
<Markup.ReactMarkupCodePreview>{`
|
12
|
+
<Card paddingBase="1">
|
13
|
+
card content
|
14
|
+
</Card>
|
15
|
+
`}
|
16
|
+
</Markup.ReactMarkupCodePreview>
|
17
|
+
|
18
|
+
<Card paddingBase="1">
|
19
|
+
card content
|
20
|
+
</Card>
|
21
|
+
</section>
|
22
|
+
)
|
23
|
+
}
|
24
|
+
}
|
@@ -86,6 +86,7 @@ import { OpacityUtilitiesDoc } from './utilities/OpacityUtilities';
|
|
86
86
|
import { ObjectFitUtilitiesDoc } from './utilities/ObjectFitUtilities';
|
87
87
|
import { ObjectPositionUtilitiesDoc } from './utilities/ObjectPositionUtilities';
|
88
88
|
import LoaderDoc from './Loader';
|
89
|
+
import CardDoc from './Card';
|
89
90
|
|
90
91
|
|
91
92
|
interface IPages {
|
@@ -104,6 +105,10 @@ const pages: IPages = {
|
|
104
105
|
basicComponents: {
|
105
106
|
name: 'Basic Components',
|
106
107
|
items: {
|
108
|
+
'card': {
|
109
|
+
name: 'Card',
|
110
|
+
component: CardDoc,
|
111
|
+
},
|
107
112
|
'buttons': {
|
108
113
|
name: 'Buttons',
|
109
114
|
component: ButtonsDoc,
|
package/package.json
CHANGED
@@ -140,7 +140,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
140
140
|
var showClearButton = this.props.required === true
|
141
141
|
? false
|
142
142
|
: this.props.hideClearButton !== true;
|
143
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex },
|
143
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, inputWrapper: this.props.inputWrapper },
|
144
144
|
React.createElement(calendar_1.Calendar, { className: 'sd-input__input', footerTemplate: showClearButton ? function () { return (React.createElement("div", { className: 'd-flex justify-end' },
|
145
145
|
React.createElement(Button_1.Button, { onClick: function () {
|
146
146
|
_this.props.onChange(null);
|
@@ -84,7 +84,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
84
84
|
var convertedTimeValue = this.props.value != null
|
85
85
|
? "".concat(this.prepareFormat(this.props.value.getHours()), ":").concat(this.prepareFormat(this.props.value.getMinutes()))
|
86
86
|
: "";
|
87
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, fullWidth: this.props.fullWidth, "data-test-id": this.props["data-test-id"], ref: this.props.ref },
|
87
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, fullWidth: this.props.fullWidth, inputWrapper: this.props.inputWrapper, "data-test-id": this.props["data-test-id"], ref: this.props.ref },
|
88
88
|
React.createElement(common_1.Spacer, { h: true, gap: "8", alignItems: "end", noWrap: true },
|
89
89
|
React.createElement("div", { style: { flexGrow: 1 } },
|
90
90
|
React.createElement(DatePicker_1.DatePicker, { disabled: this.props.disabled, preview: this.props.preview, required: this.props.required, hideClearButton: true, value: this.props.value, onChange: function (val) {
|
@@ -316,7 +316,7 @@ var DurationInput = /** @class */ (function (_super) {
|
|
316
316
|
React.createElement("span", { className: 'duration-input-preview' }, this.state.seconds),
|
317
317
|
React.createElement("span", { className: 'sd-input__suffix' }, "s"))));
|
318
318
|
}
|
319
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex },
|
319
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, inputWrapper: this.props.inputWrapper },
|
320
320
|
React.createElement("div", { className: 'sd-input__duration-input' },
|
321
321
|
React.createElement("input", { className: "duration-input ".concat(this.state.blink === 'hour' ? 'blink_me' : ''), type: 'text', id: 'hours', autoComplete: "off", max: 99, min: 0, ref: this.hourRef, value: this.state.hours, disabled: this.props.disabled, onKeyDown: function (event) { return _this.handleKeyDown(event); }, onKeyUp: function (event) { return _this.handleFocusOnKeyUp(event, _this.minuteRef.current); }, onChange: function (event) { _this.handleChange(event, 'hours'); }, onBlur: function (event) { return _this.setState({ hours: _this.zeroPad(event.target.value) }); }, onKeyPress: function (event) {
|
322
322
|
if (!/[0-9]/.test(event.key)) {
|
@@ -20,8 +20,15 @@ export interface IInputCommon {
|
|
20
20
|
}
|
21
21
|
export interface IInputWrapper extends IInputCommon {
|
22
22
|
invalid?: boolean;
|
23
|
+
inputWrapper?: {
|
24
|
+
kind: 'custom';
|
25
|
+
component: React.ComponentType<{
|
26
|
+
label: string;
|
27
|
+
input: React.ReactNode;
|
28
|
+
}>;
|
29
|
+
};
|
23
30
|
}
|
24
|
-
interface
|
31
|
+
interface IProps extends IInputWrapper {
|
25
32
|
children: React.ReactNode;
|
26
33
|
maxLength?: number;
|
27
34
|
value?: string | number;
|
@@ -32,8 +39,8 @@ interface IPropsBase extends IInputWrapper {
|
|
32
39
|
interface IState {
|
33
40
|
value: string | number;
|
34
41
|
}
|
35
|
-
export declare class InputWrapper extends React.Component<
|
36
|
-
constructor(props:
|
42
|
+
export declare class InputWrapper extends React.Component<IProps, IState> {
|
43
|
+
constructor(props: IProps);
|
37
44
|
render(): JSX.Element;
|
38
45
|
}
|
39
46
|
export {};
|
@@ -57,8 +57,12 @@ var InputWrapper = /** @class */ (function (_super) {
|
|
57
57
|
}
|
58
58
|
InputWrapper.prototype.render = function () {
|
59
59
|
var _a;
|
60
|
-
var _b, _c;
|
61
|
-
|
60
|
+
var _b, _c, _d, _e;
|
61
|
+
if (((_b = this.props.inputWrapper) === null || _b === void 0 ? void 0 : _b.kind) === 'custom') {
|
62
|
+
var Component = this.props.inputWrapper.component;
|
63
|
+
return (React.createElement(Component, { input: this.props.children, label: (_c = this.props.label) !== null && _c !== void 0 ? _c : '' }));
|
64
|
+
}
|
65
|
+
var fullWidth = (_d = this.props.fullWidth) !== null && _d !== void 0 ? _d : true;
|
62
66
|
var classes = (0, classnames_1.default)('sd-input', (_a = {
|
63
67
|
'sd-input--inline-label': this.props.inlineLabel,
|
64
68
|
'sd-input--required': this.props.required,
|
@@ -80,8 +84,8 @@ var InputWrapper = /** @class */ (function (_super) {
|
|
80
84
|
React.createElement("label", { className: labelClasses, htmlFor: this.props.htmlId, id: this.props.htmlId + 'label', tabIndex: this.props.tabindex === undefined ? undefined : -1 }, this.props.label),
|
81
85
|
React.createElement("div", { className: "sd-input__input-container" }, this.props.children),
|
82
86
|
this.props.maxLength
|
83
|
-
&& React.createElement("div", { className: 'sd-input__char-count' }, (
|
84
|
-
|
87
|
+
&& React.createElement("div", { className: 'sd-input__char-count' }, (_e = this.props.value) === null || _e === void 0 ? void 0 :
|
88
|
+
_e.toString().length,
|
85
89
|
" / ",
|
86
90
|
this.props.maxLength),
|
87
91
|
React.createElement("div", { className: 'sd-input__message-box' },
|
@@ -53,7 +53,14 @@ var FormLabel = /** @class */ (function (_super) {
|
|
53
53
|
var classes = (0, classnames_1.default)('form-label form-label--block', {
|
54
54
|
'form-label--light': this.props.style === 'light',
|
55
55
|
});
|
56
|
-
|
56
|
+
var style = {};
|
57
|
+
if (this.props.noMinWidth) {
|
58
|
+
style.minWidth = 'auto';
|
59
|
+
}
|
60
|
+
if (this.props.noMinHeight) {
|
61
|
+
style.minHeight = 'auto';
|
62
|
+
}
|
63
|
+
return (React.createElement("label", { className: classes, style: style }, this.props.text));
|
57
64
|
};
|
58
65
|
return FormLabel;
|
59
66
|
}(React.PureComponent));
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import { IInputCommon } from './Form/InputWrapper';
|
2
|
+
import { IInputCommon, IInputWrapper } from './Form/InputWrapper';
|
3
3
|
interface IPropsBase extends IInputCommon {
|
4
4
|
maxLength?: number;
|
5
5
|
placeholder?: string;
|
6
6
|
size?: 'medium' | 'large' | 'x-large';
|
7
7
|
'data-test-id'?: string;
|
8
|
+
inputWrapper?: IInputWrapper['inputWrapper'];
|
8
9
|
}
|
9
10
|
interface IPropsText extends IPropsBase {
|
10
11
|
type: 'text';
|
@@ -67,7 +67,7 @@ var Input = /** @class */ (function (_super) {
|
|
67
67
|
return (React.createElement("div", null,
|
68
68
|
React.createElement("span", null, this.props.value)));
|
69
69
|
}
|
70
|
-
return (React.createElement(InputWrapper_1.InputWrapper, { label: this.props.label, required: this.props.required, disabled: this.props.disabled, value: this.props.value, error: this.props.error, invalid: this.props.error != null, info: this.props.info, maxLength: this.props.maxLength, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, size: (_a = this.props.size) !== null && _a !== void 0 ? _a : 'medium', fullWidth: this.props.fullWidth, htmlId: this.htmlId, boxedStyle: this.props.boxedStyle, boxedLable: this.props.boxedLable, tabindex: this.props.tabindex },
|
70
|
+
return (React.createElement(InputWrapper_1.InputWrapper, { label: this.props.label, required: this.props.required, disabled: this.props.disabled, value: this.props.value, error: this.props.error, invalid: this.props.error != null, info: this.props.info, maxLength: this.props.maxLength, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, size: (_a = this.props.size) !== null && _a !== void 0 ? _a : 'medium', fullWidth: this.props.fullWidth, htmlId: this.htmlId, boxedStyle: this.props.boxedStyle, boxedLable: this.props.boxedLable, tabindex: this.props.tabindex, inputWrapper: this.props.inputWrapper },
|
71
71
|
React.createElement("input", { className: 'sd-input__input', type: (_b = this.props.type) !== null && _b !== void 0 ? _b : 'text', id: this.htmlId, value: this.props.value, "aria-describedby": this.htmlId + 'label', tabIndex: this.props.tabindex, onChange: this.handleChange, placeholder: this.props.placeholder, disabled: this.props.disabled, "data-test-id": this.props['data-test-id'] })));
|
72
72
|
};
|
73
73
|
return Input;
|
@@ -72,7 +72,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
72
72
|
if (this.props.preview) {
|
73
73
|
return (React.createElement(SelectPreview_1.SelectPreview, { kind: { mode: 'multi-select' }, items: this.state.value, valueTemplate: this.props.selectedItemTemplate, getLabel: this.props.optionLabel }));
|
74
74
|
}
|
75
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex },
|
75
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, inputWrapper: this.props.inputWrapper },
|
76
76
|
React.createElement(multiselect_1.MultiSelect, { panelClassName: classes, value: this.props.value, options: this.props.options, onChange: function (_a) {
|
77
77
|
var value = _a.value;
|
78
78
|
return _this.props.onChange(value);
|
@@ -61,7 +61,7 @@ var Select = /** @class */ (function (_super) {
|
|
61
61
|
return (React.createElement("div", null,
|
62
62
|
React.createElement("span", null, this.props.value)));
|
63
63
|
}
|
64
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, readonly: this.props.readonly, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, fullWidth: this.props.fullWidth, htmlId: this.htmlId, tabindex: this.props.tabindex },
|
64
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, readonly: this.props.readonly, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, fullWidth: this.props.fullWidth, htmlId: this.htmlId, tabindex: this.props.tabindex, inputWrapper: this.props.inputWrapper },
|
65
65
|
React.createElement("span", { className: 'sd-input__select-caret-wrapper' },
|
66
66
|
React.createElement("select", { className: 'sd-input__select', id: this.htmlId, value: this.props.value, "aria-describedby": this.htmlId + 'label', tabIndex: this.props.tabindex, onChange: this.handleChange, disabled: this.props.disabled || this.props.readonly, "data-test-id": this.props['data-test-id'] }, this.props.children))));
|
67
67
|
};
|
@@ -99,7 +99,7 @@ var SelectWithTemplate = /** @class */ (function (_super) {
|
|
99
99
|
// needs to be passed to prime react component
|
100
100
|
// or it will not be displayed at all, even if returned by itemTemplate
|
101
101
|
var fakePlaceholderWithNonBreakingSpace = ' ';
|
102
|
-
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 },
|
102
|
+
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, inputWrapper: this.props.inputWrapper },
|
103
103
|
React.createElement(dropdown_1.Dropdown, { inputId: this.htmlId, ariaLabelledBy: this.htmlId + 'label', value: valueInternal, options: optionsInternal, onChange: function (e) {
|
104
104
|
onChange(e.value == null ? null : e.value.original);
|
105
105
|
}, placeholder: fakePlaceholderWithNonBreakingSpace, filterPlaceholder: filterPlaceholder, filter: true, filterBy: labelKey, showClear: !required, emptyFilterMessage: emptyFilterMessage, itemTemplate: function (option) { var _a; return React.createElement(ItemTemplate, { option: (_a = option === null || option === void 0 ? void 0 : option.original) !== null && _a !== void 0 ? _a : null }); }, valueTemplate: function (option) {
|
@@ -59,7 +59,7 @@ var TagInput = /** @class */ (function (_super) {
|
|
59
59
|
if (this.props.preview) {
|
60
60
|
return (React.createElement(SelectPreview_1.SelectPreview, { kind: { mode: 'multi-select' }, items: this.props.value, getLabel: function (item) { return item; } }));
|
61
61
|
}
|
62
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex },
|
62
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, inputWrapper: this.props.inputWrapper },
|
63
63
|
React.createElement(chips_1.Chips, { className: "\n tags-input--multi-select sd-input__input\n ".concat(this.props.disabled ? ' tags-input__padding-disabled' : ''), allowDuplicate: false, separator: ",", onChange: function (event) { return onChange(event.value); }, value: value, placeholder: this.props.disabled ? undefined : placeholder, disabled: this.props.disabled })));
|
64
64
|
};
|
65
65
|
return TagInput;
|
@@ -58,7 +58,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
58
58
|
return (React.createElement("div", null,
|
59
59
|
React.createElement("span", null, this.props.value)));
|
60
60
|
}
|
61
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex },
|
61
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, inputWrapper: this.props.inputWrapper },
|
62
62
|
React.createElement("input", { value: this.props.value, type: "time", className: "sd-input__input", id: this.htmlId, "aria-labelledby": this.htmlId + 'label', step: this.props.allowSeconds ? 1 : undefined, required: this.props.required, disabled: this.props.disabled, onChange: function (event) {
|
63
63
|
_this.props.onChange(event.target.value);
|
64
64
|
}, "data-test-id": this.props['data-test-id'] })));
|
@@ -149,7 +149,7 @@ var TimePickerV2 = /** @class */ (function (_super) {
|
|
149
149
|
TimePickerV2.prototype.render = function () {
|
150
150
|
var _this = this;
|
151
151
|
var timeUnitValuesArray = this.updatedTimeUnit();
|
152
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, tabindex: this.props.tabindex },
|
152
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, tabindex: this.props.tabindex, inputWrapper: this.props.inputWrapper },
|
153
153
|
React.createElement("div", { className: 'sd__input__time-picker-v2', "data-test-id": this.props['data-test-id'] },
|
154
154
|
React.createElement("div", { className: 'input-wrapper__time-picker-v2' },
|
155
155
|
React.createElement("select", { className: 'sd-input__select', value: timeUnitValuesArray[0], onChange: function (_a) {
|
@@ -570,7 +570,7 @@ var TreeSelect = /** @class */ (function (_super) {
|
|
570
570
|
var children = _a.children;
|
571
571
|
return React.createElement(React.Fragment, null, children);
|
572
572
|
};
|
573
|
-
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, fullWidth: this.props.fullWidth, "data-test-id": this.props['data-test-id'] },
|
573
|
+
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, fullWidth: this.props.fullWidth, "data-test-id": this.props['data-test-id'], inputWrapper: this.props.inputWrapper },
|
574
574
|
React.createElement("div", { className: "\n tags-input sd-input__input\n tags-input--".concat(this.props.allowMultiple ? 'multi-select' : 'single-select'), ref: this.treeSelectRef, "data-test-id": this.props.allowMultiple ? undefined : 'open-popover' }, this.props.allowMultiple
|
575
575
|
? React.createElement("div", { className: "tags-input__tags" },
|
576
576
|
this.props.readOnly
|