@ntbjs/react-components 1.3.0-rc.12 → 1.3.0-rc.13
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/{ActionButton-46735b89.js → ActionButton-15b418c5.js} +8 -7
- package/{Alert-13b75102.js → Alert-e9f818d6.js} +14 -13
- package/{AssetGallery-aca82e36.js → AssetGallery-624d9ade.js} +126 -125
- package/{AssetPreviewTopBar-912c3469.js → AssetPreviewTopBar-21b7e172.js} +9 -8
- package/AsyncSelect-3351a3d9.js +24 -0
- package/{Badge-757b0a39.js → Badge-72b369a6.js} +20 -19
- package/{Button-49f82b31.js → Button-34ce13c6.js} +16 -15
- package/{Checkbox-68dc38a8.js → Checkbox-d77eed5d.js} +17 -16
- package/{CompactAutocompleteSelect-96137f48.js → CompactAutocompleteSelect-72d523e3.js} +33 -32
- package/{CompactStarRating-15c1b812.js → CompactStarRating-bf45f620.js} +27 -26
- package/{CompactTextInput-198d0800.js → CompactTextInput-0b1979f1.js} +34 -33
- package/{ContextMenu-4ec3d9f3.js → ContextMenu-f69599d5.js} +3 -2
- package/{ContextMenuItem-ba2b697e.js → ContextMenuItem-9c5c4c9f.js} +8 -7
- package/{InputGroup-49fbc423.js → InputGroup-e30507cb.js} +3 -2
- package/{Instructions-2babb8a3.js → Instructions-42d2bc58.js} +34 -33
- package/{MultiLevelCheckboxSelect-e6e5cb90.js → MultiLevelCheckboxSelect-acaac96b.js} +53 -52
- package/{MultiSelect-efd60232.js → MultiSelect-ecb48e03.js} +21 -20
- package/{Popover-569cd272.js → Popover-a76d0fe5.js} +15 -14
- package/{Radio-32d0513a.js → Radio-7d5f630d.js} +13 -12
- package/{SectionSeparator-259a22ed.js → SectionSeparator-2a1c720b.js} +3 -2
- package/{Switch-4a41585f.js → Switch-006abdbd.js} +15 -14
- package/{Tab-f499ecbc.js → Tab-87287c6e.js} +4 -3
- package/{Tabs-116aa951.js → Tabs-8e4de5a5.js} +7 -6
- package/{TextArea-18fbcc9f.js → TextArea-76231a3b.js} +40 -39
- package/{TextInput-0d109708.js → TextInput-a440374c.js} +24 -23
- package/{Tooltip-66daf6e3.js → Tooltip-298f0547.js} +10 -9
- package/{VerificationStatusIcon-d5bfb67a.js → VerificationStatusIcon-d596165f.js} +5 -4
- package/data/Alert/index.js +3 -2
- package/data/Badge/index.js +3 -2
- package/data/Popover/index.js +4 -3
- package/data/Tab/index.js +3 -2
- package/data/Tabs/index.js +4 -3
- package/data/Tooltip/index.js +4 -3
- package/data/index.js +10 -9
- package/defaultTheme-fcd45bd0.js +339 -0
- package/{defaultTheme-ea44e34a.js → index-39bc450c.js} +0 -337
- package/inputs/ActionButton/index.js +3 -2
- package/inputs/AsyncSelect/index.js +2 -5
- package/inputs/Button/index.js +6 -5
- package/inputs/Checkbox/index.js +3 -2
- package/inputs/CompactAutocompleteSelect/index.js +11 -10
- package/inputs/CompactStarRating/index.js +11 -10
- package/inputs/CompactTextInput/index.js +11 -10
- package/inputs/MultiSelect/index.js +3 -2
- package/inputs/Radio/index.js +3 -2
- package/inputs/Switch/index.js +3 -2
- package/inputs/TextArea/index.js +11 -10
- package/inputs/TextInput/index.js +3 -2
- package/inputs/index.js +26 -25
- package/layout/InputGroup/index.js +3 -2
- package/layout/SectionSeparator/index.js +3 -2
- package/layout/index.js +4 -3
- package/package.json +1 -1
- package/{shift-away-subtle-0bed9a3c.js → shift-away-subtle-45129125.js} +1 -1
- package/widgets/AssetGallery/index.js +28 -27
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +3 -2
- package/widgets/ContextMenu/ContextMenuItem/index.js +3 -2
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +3 -2
- package/widgets/ContextMenu/index.js +3 -2
- package/widgets/Instructions/index.js +13 -12
- package/widgets/index.js +30 -29
- package/AsyncSelect-090b92ae.js +0 -36
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
5
|
var nanoid = require('nanoid');
|
|
6
|
+
var index = require('./index-39bc450c.js');
|
|
6
7
|
var React = require('react');
|
|
7
|
-
require('./Alert-
|
|
8
|
-
require('./Badge-
|
|
9
|
-
require('./Popover-
|
|
10
|
-
require('./Tab-
|
|
11
|
-
require('./Tabs-
|
|
12
|
-
var Tooltip = require('./Tooltip-
|
|
13
|
-
require('./VerificationStatusIcon-
|
|
8
|
+
require('./Alert-e9f818d6.js');
|
|
9
|
+
require('./Badge-72b369a6.js');
|
|
10
|
+
require('./Popover-a76d0fe5.js');
|
|
11
|
+
require('./Tab-87287c6e.js');
|
|
12
|
+
require('./Tabs-8e4de5a5.js');
|
|
13
|
+
var Tooltip = require('./Tooltip-298f0547.js');
|
|
14
|
+
require('./VerificationStatusIcon-d596165f.js');
|
|
14
15
|
var styled = require('styled-components');
|
|
15
16
|
var Select = require('react-select');
|
|
16
17
|
var reactSelectAsyncPaginate = require('react-select-async-paginate');
|
|
@@ -259,11 +260,11 @@ var CompactAutocompleteSelect = React__default['default'].forwardRef(function Co
|
|
|
259
260
|
};
|
|
260
261
|
|
|
261
262
|
Option$1.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
262
|
-
data:
|
|
263
|
-
icon:
|
|
264
|
-
link:
|
|
263
|
+
data: index.PropTypes.shape({
|
|
264
|
+
icon: index.PropTypes.node,
|
|
265
|
+
link: index.PropTypes.string
|
|
265
266
|
}),
|
|
266
|
-
label:
|
|
267
|
+
label: index.PropTypes.string
|
|
267
268
|
} : {};
|
|
268
269
|
|
|
269
270
|
var DropdownIndicator$1 = function DropdownIndicator$1(props) {
|
|
@@ -408,26 +409,26 @@ var CompactAutocompleteSelect = React__default['default'].forwardRef(function Co
|
|
|
408
409
|
}, input())));
|
|
409
410
|
});
|
|
410
411
|
CompactAutocompleteSelect.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
411
|
-
label:
|
|
412
|
-
placeholder:
|
|
413
|
-
availableOptions:
|
|
414
|
-
selectedOption:
|
|
415
|
-
loadOptions:
|
|
416
|
-
loadingMessageFunc:
|
|
417
|
-
createNewOptionMessageFunc:
|
|
418
|
-
noOptionsMessageFunc:
|
|
419
|
-
readOnly:
|
|
420
|
-
edit:
|
|
421
|
-
hidden:
|
|
422
|
-
error:
|
|
423
|
-
warning:
|
|
424
|
-
onUpdateCallback:
|
|
425
|
-
creatable:
|
|
426
|
-
disabled:
|
|
427
|
-
type:
|
|
428
|
-
descriptionToolTip:
|
|
429
|
-
loadingIcon:
|
|
430
|
-
successIcon:
|
|
412
|
+
label: index.PropTypes.string,
|
|
413
|
+
placeholder: index.PropTypes.string,
|
|
414
|
+
availableOptions: index.PropTypes.arrayOf(index.PropTypes.object),
|
|
415
|
+
selectedOption: index.PropTypes.object,
|
|
416
|
+
loadOptions: index.PropTypes.func,
|
|
417
|
+
loadingMessageFunc: index.PropTypes.func,
|
|
418
|
+
createNewOptionMessageFunc: index.PropTypes.func,
|
|
419
|
+
noOptionsMessageFunc: index.PropTypes.func,
|
|
420
|
+
readOnly: index.PropTypes.bool,
|
|
421
|
+
edit: index.PropTypes.bool,
|
|
422
|
+
hidden: index.PropTypes.bool,
|
|
423
|
+
error: index.PropTypes.oneOfType([index.PropTypes.bool, index.PropTypes.string]),
|
|
424
|
+
warning: index.PropTypes.oneOfType([index.PropTypes.bool, index.PropTypes.string]),
|
|
425
|
+
onUpdateCallback: index.PropTypes.func,
|
|
426
|
+
creatable: index.PropTypes.bool,
|
|
427
|
+
disabled: index.PropTypes.bool,
|
|
428
|
+
type: index.PropTypes.oneOf(['', 'error', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
429
|
+
descriptionToolTip: index.PropTypes.string,
|
|
430
|
+
loadingIcon: index.PropTypes.element,
|
|
431
|
+
successIcon: index.PropTypes.element
|
|
431
432
|
} : {};
|
|
432
433
|
CompactAutocompleteSelect.defaultProps = {
|
|
433
434
|
noOptionsMessageFunc: function noOptionsMessageFunc(inputValue) {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
|
+
var index = require('./index-39bc450c.js');
|
|
4
5
|
var React = require('react');
|
|
5
|
-
require('./Alert-
|
|
6
|
-
require('./Badge-
|
|
7
|
-
require('./Popover-
|
|
8
|
-
require('./Tab-
|
|
9
|
-
require('./Tabs-
|
|
10
|
-
var Tooltip = require('./Tooltip-
|
|
11
|
-
require('./VerificationStatusIcon-
|
|
6
|
+
require('./Alert-e9f818d6.js');
|
|
7
|
+
require('./Badge-72b369a6.js');
|
|
8
|
+
require('./Popover-a76d0fe5.js');
|
|
9
|
+
require('./Tab-87287c6e.js');
|
|
10
|
+
require('./Tabs-8e4de5a5.js');
|
|
11
|
+
var Tooltip = require('./Tooltip-298f0547.js');
|
|
12
|
+
require('./VerificationStatusIcon-d596165f.js');
|
|
12
13
|
var styled = require('styled-components');
|
|
13
14
|
|
|
14
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -302,24 +303,24 @@ var CompactStarRating = React__default['default'].forwardRef(function CompactSta
|
|
|
302
303
|
}, input())));
|
|
303
304
|
});
|
|
304
305
|
CompactStarRating.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
305
|
-
readOnly:
|
|
306
|
-
disabled:
|
|
307
|
-
edit:
|
|
308
|
-
value:
|
|
309
|
-
type:
|
|
310
|
-
defaultValue:
|
|
311
|
-
label:
|
|
312
|
-
name:
|
|
313
|
-
icon:
|
|
314
|
-
iconFill:
|
|
315
|
-
max:
|
|
316
|
-
viewEmpty:
|
|
317
|
-
onChange:
|
|
318
|
-
onBlur:
|
|
319
|
-
hidden:
|
|
320
|
-
loadingIcon:
|
|
321
|
-
successIcon:
|
|
322
|
-
descriptionToolTip:
|
|
306
|
+
readOnly: index.PropTypes.bool,
|
|
307
|
+
disabled: index.PropTypes.bool,
|
|
308
|
+
edit: index.PropTypes.bool,
|
|
309
|
+
value: index.PropTypes.number,
|
|
310
|
+
type: index.PropTypes.oneOf(['', 'error', 'warning', 'loading', 'success']),
|
|
311
|
+
defaultValue: index.PropTypes.number,
|
|
312
|
+
label: index.PropTypes.string,
|
|
313
|
+
name: index.PropTypes.string,
|
|
314
|
+
icon: index.PropTypes.element,
|
|
315
|
+
iconFill: index.PropTypes.element,
|
|
316
|
+
max: index.PropTypes.number,
|
|
317
|
+
viewEmpty: index.PropTypes.bool,
|
|
318
|
+
onChange: index.PropTypes.func,
|
|
319
|
+
onBlur: index.PropTypes.func,
|
|
320
|
+
hidden: index.PropTypes.bool,
|
|
321
|
+
loadingIcon: index.PropTypes.element,
|
|
322
|
+
successIcon: index.PropTypes.element,
|
|
323
|
+
descriptionToolTip: index.PropTypes.string
|
|
323
324
|
} : {};
|
|
324
325
|
CompactStarRating.defaultProps = {
|
|
325
326
|
label: 'Rating',
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
5
|
var nanoid = require('nanoid');
|
|
6
|
+
var index = require('./index-39bc450c.js');
|
|
6
7
|
var React = require('react');
|
|
7
8
|
var editNote = require('./edit-note-c47d292e.js');
|
|
8
|
-
require('./Alert-
|
|
9
|
-
require('./Badge-
|
|
10
|
-
require('./Popover-
|
|
11
|
-
require('./Tab-
|
|
12
|
-
require('./Tabs-
|
|
13
|
-
var Tooltip = require('./Tooltip-
|
|
14
|
-
require('./VerificationStatusIcon-
|
|
9
|
+
require('./Alert-e9f818d6.js');
|
|
10
|
+
require('./Badge-72b369a6.js');
|
|
11
|
+
require('./Popover-a76d0fe5.js');
|
|
12
|
+
require('./Tab-87287c6e.js');
|
|
13
|
+
require('./Tabs-8e4de5a5.js');
|
|
14
|
+
var Tooltip = require('./Tooltip-298f0547.js');
|
|
15
|
+
require('./VerificationStatusIcon-d596165f.js');
|
|
15
16
|
var styled = require('styled-components');
|
|
16
17
|
|
|
17
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -305,31 +306,31 @@ var CompactTextInput = React__default['default'].forwardRef(function CompactText
|
|
|
305
306
|
}, React__default['default'].createElement(editNote.SvgEditNote, null)), lodash.isEmpty(label) && React__default['default'].createElement(InputSuccessContainer, null, type === 'loading' && loadingIcon, type === 'success' && successIcon))));
|
|
306
307
|
});
|
|
307
308
|
CompactTextInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
308
|
-
label:
|
|
309
|
-
success:
|
|
310
|
-
inputType:
|
|
311
|
-
name:
|
|
312
|
-
defaultValue:
|
|
313
|
-
value:
|
|
314
|
-
placeholder:
|
|
315
|
-
link:
|
|
316
|
-
linkTarget:
|
|
317
|
-
linkHandler:
|
|
318
|
-
activeLinkHandler:
|
|
319
|
-
autoSelect:
|
|
320
|
-
readOnly:
|
|
321
|
-
disabled:
|
|
322
|
-
edit:
|
|
323
|
-
warning:
|
|
324
|
-
bold:
|
|
325
|
-
hidden:
|
|
326
|
-
onChange:
|
|
327
|
-
onFocus:
|
|
328
|
-
onBlur:
|
|
329
|
-
type:
|
|
330
|
-
descriptionToolTip:
|
|
331
|
-
loadingIcon:
|
|
332
|
-
successIcon:
|
|
309
|
+
label: index.PropTypes.string,
|
|
310
|
+
success: index.PropTypes.bool,
|
|
311
|
+
inputType: index.PropTypes.string,
|
|
312
|
+
name: index.PropTypes.string,
|
|
313
|
+
defaultValue: index.PropTypes.string,
|
|
314
|
+
value: index.PropTypes.string,
|
|
315
|
+
placeholder: index.PropTypes.string,
|
|
316
|
+
link: index.PropTypes.string,
|
|
317
|
+
linkTarget: index.PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
|
|
318
|
+
linkHandler: index.PropTypes.func,
|
|
319
|
+
activeLinkHandler: index.PropTypes.bool,
|
|
320
|
+
autoSelect: index.PropTypes.bool,
|
|
321
|
+
readOnly: index.PropTypes.bool,
|
|
322
|
+
disabled: index.PropTypes.bool,
|
|
323
|
+
edit: index.PropTypes.bool,
|
|
324
|
+
warning: index.PropTypes.oneOfType([index.PropTypes.bool, index.PropTypes.string]),
|
|
325
|
+
bold: index.PropTypes.bool,
|
|
326
|
+
hidden: index.PropTypes.bool,
|
|
327
|
+
onChange: index.PropTypes.func,
|
|
328
|
+
onFocus: index.PropTypes.func,
|
|
329
|
+
onBlur: index.PropTypes.func,
|
|
330
|
+
type: index.PropTypes.oneOf(['', 'error', 'warning', 'loading', 'success']),
|
|
331
|
+
descriptionToolTip: index.PropTypes.string,
|
|
332
|
+
loadingIcon: index.PropTypes.element,
|
|
333
|
+
successIcon: index.PropTypes.element
|
|
333
334
|
} : {};
|
|
334
335
|
CompactTextInput.defaultProps = {
|
|
335
336
|
inputType: 'text',
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-39bc450c.js');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -25,7 +26,7 @@ var ContextMenu = React__default['default'].forwardRef(function ContextMenu(_ref
|
|
|
25
26
|
}), children);
|
|
26
27
|
});
|
|
27
28
|
ContextMenu.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
28
|
-
children:
|
|
29
|
+
children: index.PropTypes.any
|
|
29
30
|
} : {};
|
|
30
31
|
ContextMenu.defaultProps = {};
|
|
31
32
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-39bc450c.js');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -93,12 +94,12 @@ var ContextMenuItem = React__default['default'].forwardRef(function ContextMenuI
|
|
|
93
94
|
}), icon && React__default['default'].createElement(IconContainer, null, icon), React__default['default'].createElement("span", null, title), opensSublevel && React__default['default'].createElement(SublevelIconContainer, null, React__default['default'].createElement(SvgTriangleRight, null)));
|
|
94
95
|
});
|
|
95
96
|
ContextMenuItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
96
|
-
title:
|
|
97
|
-
icon:
|
|
98
|
-
onClickEffect:
|
|
99
|
-
opensSublevel:
|
|
100
|
-
hoverColors:
|
|
101
|
-
hoverBackgroundColors:
|
|
97
|
+
title: index.PropTypes.string.isRequired,
|
|
98
|
+
icon: index.PropTypes.element,
|
|
99
|
+
onClickEffect: index.PropTypes.func,
|
|
100
|
+
opensSublevel: index.PropTypes.bool,
|
|
101
|
+
hoverColors: index.PropTypes.arrayOf(index.PropTypes.string),
|
|
102
|
+
hoverBackgroundColors: index.PropTypes.arrayOf(index.PropTypes.string)
|
|
102
103
|
} : {};
|
|
103
104
|
ContextMenuItem.defaultProps = {
|
|
104
105
|
icon: undefined,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-39bc450c.js');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -21,7 +22,7 @@ var InputGroup = React__default['default'].forwardRef(function InputGroup(_ref,
|
|
|
21
22
|
}, props), children);
|
|
22
23
|
});
|
|
23
24
|
InputGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
24
|
-
children:
|
|
25
|
+
children: index.PropTypes.node
|
|
25
26
|
} : {};
|
|
26
27
|
InputGroup.defaultProps = {};
|
|
27
28
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
|
+
var index = require('./index-39bc450c.js');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var warningCircle = require('./warning-circle-24522402.js');
|
|
7
|
-
var CompactAutocompleteSelect = require('./CompactAutocompleteSelect-
|
|
8
|
-
var TextArea = require('./TextArea-
|
|
8
|
+
var CompactAutocompleteSelect = require('./CompactAutocompleteSelect-72d523e3.js');
|
|
9
|
+
var TextArea = require('./TextArea-76231a3b.js');
|
|
9
10
|
var styled = require('styled-components');
|
|
10
11
|
|
|
11
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -228,36 +229,36 @@ Instructions.defaultProps = {
|
|
|
228
229
|
onUpdateCallback: function onUpdateCallback() {}
|
|
229
230
|
};
|
|
230
231
|
Instructions.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
231
|
-
name:
|
|
232
|
-
placeholder:
|
|
233
|
-
rows:
|
|
234
|
-
selectedOption:
|
|
235
|
-
loadOptions:
|
|
236
|
-
loadingMessageFunc:
|
|
237
|
-
clickToAdd:
|
|
238
|
-
customAddMessage:
|
|
239
|
-
autoSelect:
|
|
240
|
-
readOnly:
|
|
241
|
-
disabled:
|
|
242
|
-
hidden:
|
|
243
|
-
showMore:
|
|
244
|
-
showMoreText:
|
|
245
|
-
showLessText:
|
|
246
|
-
availableOptions:
|
|
247
|
-
lightBackground:
|
|
248
|
-
edit:
|
|
249
|
-
options:
|
|
250
|
-
subscribeCurrentValue:
|
|
251
|
-
onChange:
|
|
252
|
-
onFocus:
|
|
253
|
-
onBlur:
|
|
254
|
-
onUpdateCallback:
|
|
255
|
-
type:
|
|
256
|
-
selectType:
|
|
257
|
-
isExpanded:
|
|
258
|
-
loadingIcon:
|
|
259
|
-
successIcon:
|
|
260
|
-
padding:
|
|
232
|
+
name: index.PropTypes.string,
|
|
233
|
+
placeholder: index.PropTypes.string,
|
|
234
|
+
rows: index.PropTypes.oneOfType([index.PropTypes.number, index.PropTypes.string]),
|
|
235
|
+
selectedOption: index.PropTypes.any,
|
|
236
|
+
loadOptions: index.PropTypes.func,
|
|
237
|
+
loadingMessageFunc: index.PropTypes.func,
|
|
238
|
+
clickToAdd: index.PropTypes.bool,
|
|
239
|
+
customAddMessage: index.PropTypes.string,
|
|
240
|
+
autoSelect: index.PropTypes.bool,
|
|
241
|
+
readOnly: index.PropTypes.bool,
|
|
242
|
+
disabled: index.PropTypes.bool,
|
|
243
|
+
hidden: index.PropTypes.bool,
|
|
244
|
+
showMore: index.PropTypes.bool,
|
|
245
|
+
showMoreText: index.PropTypes.string,
|
|
246
|
+
showLessText: index.PropTypes.string,
|
|
247
|
+
availableOptions: index.PropTypes.arrayOf(index.PropTypes.object),
|
|
248
|
+
lightBackground: index.PropTypes.bool,
|
|
249
|
+
edit: index.PropTypes.bool,
|
|
250
|
+
options: index.PropTypes.array,
|
|
251
|
+
subscribeCurrentValue: index.PropTypes.func,
|
|
252
|
+
onChange: index.PropTypes.func,
|
|
253
|
+
onFocus: index.PropTypes.func,
|
|
254
|
+
onBlur: index.PropTypes.func,
|
|
255
|
+
onUpdateCallback: index.PropTypes.func,
|
|
256
|
+
type: index.PropTypes.oneOf(['', 'error', 'error-border', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
257
|
+
selectType: index.PropTypes.oneOf(['', 'error', 'warning', 'instructions-warning', 'loading', 'success']),
|
|
258
|
+
isExpanded: index.PropTypes.func,
|
|
259
|
+
loadingIcon: index.PropTypes.element,
|
|
260
|
+
successIcon: index.PropTypes.element,
|
|
261
|
+
padding: index.PropTypes.oneOf(['', 'small', 'medium', 'large'])
|
|
261
262
|
} : {};
|
|
262
263
|
|
|
263
264
|
exports.Instructions = Instructions;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-39bc450c.js');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
|
-
require('./Alert-
|
|
7
|
-
require('./Badge-
|
|
8
|
-
var Popover = require('./Popover-
|
|
9
|
-
require('./Tab-
|
|
10
|
-
require('./Tabs-
|
|
11
|
-
require('./Tooltip-
|
|
12
|
-
require('./VerificationStatusIcon-
|
|
13
|
-
var Checkbox = require('./Checkbox-
|
|
7
|
+
require('./Alert-e9f818d6.js');
|
|
8
|
+
require('./Badge-72b369a6.js');
|
|
9
|
+
var Popover = require('./Popover-a76d0fe5.js');
|
|
10
|
+
require('./Tab-87287c6e.js');
|
|
11
|
+
require('./Tabs-8e4de5a5.js');
|
|
12
|
+
require('./Tooltip-298f0547.js');
|
|
13
|
+
require('./VerificationStatusIcon-d596165f.js');
|
|
14
|
+
var Checkbox = require('./Checkbox-d77eed5d.js');
|
|
14
15
|
var lodash = require('lodash');
|
|
15
|
-
var TextInput = require('./TextInput-
|
|
16
|
-
require('./InputGroup-
|
|
17
|
-
var SectionSeparator = require('./SectionSeparator-
|
|
16
|
+
var TextInput = require('./TextInput-a440374c.js');
|
|
17
|
+
require('./InputGroup-e30507cb.js');
|
|
18
|
+
var SectionSeparator = require('./SectionSeparator-2a1c720b.js');
|
|
18
19
|
var close = require('./close-ebf2f3cf.js');
|
|
19
20
|
|
|
20
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -239,22 +240,22 @@ var MultiLevelCheckbox = React__default['default'].forwardRef(function MultiLeve
|
|
|
239
240
|
});
|
|
240
241
|
}), !anySearchResults && React__default['default'].createElement(MultiLevelCheckboxNoResults, null, noResultsText));
|
|
241
242
|
});
|
|
242
|
-
var NodeType =
|
|
243
|
-
label:
|
|
244
|
-
value:
|
|
243
|
+
var NodeType = index.PropTypes.shape({
|
|
244
|
+
label: index.PropTypes.string.isRequired,
|
|
245
|
+
value: index.PropTypes.any.isRequired,
|
|
245
246
|
children: NodeType
|
|
246
247
|
});
|
|
247
248
|
MultiLevelCheckbox.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
248
|
-
options:
|
|
249
|
-
label:
|
|
250
|
-
value:
|
|
251
|
-
children:
|
|
249
|
+
options: index.PropTypes.arrayOf(index.PropTypes.shape({
|
|
250
|
+
label: index.PropTypes.string.isRequired,
|
|
251
|
+
value: index.PropTypes.any.isRequired,
|
|
252
|
+
children: index.PropTypes.array
|
|
252
253
|
})),
|
|
253
|
-
checked:
|
|
254
|
-
label:
|
|
255
|
-
search:
|
|
256
|
-
noResultsText:
|
|
257
|
-
onChange:
|
|
254
|
+
checked: index.PropTypes.array.isRequired,
|
|
255
|
+
label: index.PropTypes.string,
|
|
256
|
+
search: index.PropTypes.string,
|
|
257
|
+
noResultsText: index.PropTypes.string,
|
|
258
|
+
onChange: index.PropTypes.func.isRequired
|
|
258
259
|
} : {};
|
|
259
260
|
MultiLevelCheckbox.defaultProps = {
|
|
260
261
|
options: [],
|
|
@@ -369,28 +370,28 @@ var CheckboxTree = React__default['default'].memo(function CheckboxTree(_ref2) {
|
|
|
369
370
|
}))));
|
|
370
371
|
}, lodash.isEqual);
|
|
371
372
|
CheckboxTree.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
372
|
-
node:
|
|
373
|
-
label:
|
|
374
|
-
value:
|
|
375
|
-
children:
|
|
376
|
-
label:
|
|
377
|
-
value:
|
|
378
|
-
children:
|
|
373
|
+
node: index.PropTypes.shape({
|
|
374
|
+
label: index.PropTypes.string.isRequired,
|
|
375
|
+
value: index.PropTypes.any.isRequired,
|
|
376
|
+
children: index.PropTypes.arrayOf(index.PropTypes.shape({
|
|
377
|
+
label: index.PropTypes.string.isRequired,
|
|
378
|
+
value: index.PropTypes.any.isRequired,
|
|
379
|
+
children: index.PropTypes.arrayOf(index.PropTypes.any)
|
|
379
380
|
}))
|
|
380
381
|
}),
|
|
381
|
-
nodes:
|
|
382
|
-
label:
|
|
383
|
-
value:
|
|
384
|
-
children:
|
|
385
|
-
label:
|
|
386
|
-
value:
|
|
387
|
-
children:
|
|
382
|
+
nodes: index.PropTypes.arrayOf(index.PropTypes.shape({
|
|
383
|
+
label: index.PropTypes.string.isRequired,
|
|
384
|
+
value: index.PropTypes.any.isRequired,
|
|
385
|
+
children: index.PropTypes.arrayOf(index.PropTypes.shape({
|
|
386
|
+
label: index.PropTypes.string.isRequired,
|
|
387
|
+
value: index.PropTypes.any.isRequired,
|
|
388
|
+
children: index.PropTypes.arrayOf(index.PropTypes.any)
|
|
388
389
|
}))
|
|
389
390
|
})),
|
|
390
|
-
checked:
|
|
391
|
-
search:
|
|
392
|
-
onAdd:
|
|
393
|
-
onRemove:
|
|
391
|
+
checked: index.PropTypes.array.isRequired,
|
|
392
|
+
search: index.PropTypes.string,
|
|
393
|
+
onAdd: index.PropTypes.func.isRequired,
|
|
394
|
+
onRemove: index.PropTypes.func.isRequired
|
|
394
395
|
} : {};
|
|
395
396
|
|
|
396
397
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
@@ -677,17 +678,17 @@ var MultiLevelCheckboxSelect = React__default['default'].forwardRef(function Mul
|
|
|
677
678
|
}))));
|
|
678
679
|
});
|
|
679
680
|
MultiLevelCheckboxSelect.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
680
|
-
label:
|
|
681
|
-
placeholder:
|
|
682
|
-
options:
|
|
683
|
-
label:
|
|
684
|
-
value:
|
|
685
|
-
children:
|
|
681
|
+
label: index.PropTypes.string,
|
|
682
|
+
placeholder: index.PropTypes.string,
|
|
683
|
+
options: index.PropTypes.arrayOf(index.PropTypes.shape({
|
|
684
|
+
label: index.PropTypes.string.isRequired,
|
|
685
|
+
value: index.PropTypes.any.isRequired,
|
|
686
|
+
children: index.PropTypes.arrayOf(NodeType)
|
|
686
687
|
})).isRequired,
|
|
687
|
-
checked:
|
|
688
|
-
noResultsText:
|
|
689
|
-
onChange:
|
|
690
|
-
onParentChange:
|
|
688
|
+
checked: index.PropTypes.array.isRequired,
|
|
689
|
+
noResultsText: index.PropTypes.string,
|
|
690
|
+
onChange: index.PropTypes.func.isRequired,
|
|
691
|
+
onParentChange: index.PropTypes.func
|
|
691
692
|
} : {};
|
|
692
693
|
MultiLevelCheckboxSelect.defaultProps = {
|
|
693
694
|
checked: []
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-fcd45bd0.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-39bc450c.js');
|
|
5
6
|
var nanoid = require('nanoid');
|
|
6
7
|
var styled = require('styled-components');
|
|
7
8
|
var close = require('./close-ebf2f3cf.js');
|
|
@@ -315,25 +316,25 @@ var MultiSelect = React__default['default'].forwardRef(function MultiSelect(_ref
|
|
|
315
316
|
}, error ? error : warning));
|
|
316
317
|
});
|
|
317
318
|
MultiSelect.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
318
|
-
label:
|
|
319
|
-
availableOptions:
|
|
320
|
-
selectedOptions:
|
|
321
|
-
loadOptions:
|
|
322
|
-
loadingMessageFunc:
|
|
323
|
-
onUpdateCallback:
|
|
324
|
-
editText:
|
|
325
|
-
creatable:
|
|
326
|
-
createNewOptionMessageFunc:
|
|
327
|
-
noOptionsMessageFunc:
|
|
328
|
-
onMultiValueClick:
|
|
329
|
-
showMore:
|
|
330
|
-
showMoreText:
|
|
331
|
-
displayTotalOnShowMore:
|
|
332
|
-
readOnly:
|
|
333
|
-
hidden:
|
|
334
|
-
disabled:
|
|
335
|
-
error:
|
|
336
|
-
warning:
|
|
319
|
+
label: index.PropTypes.string,
|
|
320
|
+
availableOptions: index.PropTypes.arrayOf(index.PropTypes.object),
|
|
321
|
+
selectedOptions: index.PropTypes.arrayOf(index.PropTypes.object),
|
|
322
|
+
loadOptions: index.PropTypes.func,
|
|
323
|
+
loadingMessageFunc: index.PropTypes.func,
|
|
324
|
+
onUpdateCallback: index.PropTypes.func,
|
|
325
|
+
editText: index.PropTypes.string.isRequired,
|
|
326
|
+
creatable: index.PropTypes.bool,
|
|
327
|
+
createNewOptionMessageFunc: index.PropTypes.func,
|
|
328
|
+
noOptionsMessageFunc: index.PropTypes.func,
|
|
329
|
+
onMultiValueClick: index.PropTypes.func,
|
|
330
|
+
showMore: index.PropTypes.bool,
|
|
331
|
+
showMoreText: index.PropTypes.string,
|
|
332
|
+
displayTotalOnShowMore: index.PropTypes.bool,
|
|
333
|
+
readOnly: index.PropTypes.bool,
|
|
334
|
+
hidden: index.PropTypes.bool,
|
|
335
|
+
disabled: index.PropTypes.bool,
|
|
336
|
+
error: index.PropTypes.oneOfType([index.PropTypes.bool, index.PropTypes.string]),
|
|
337
|
+
warning: index.PropTypes.oneOfType([index.PropTypes.bool, index.PropTypes.string])
|
|
337
338
|
} : {};
|
|
338
339
|
MultiSelect.defaultProps = {
|
|
339
340
|
noOptionsMessageFunc: function noOptionsMessageFunc(inputValue) {
|