@ntbjs/react-components 1.2.0-rc.94 → 1.2.0-rc.96
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-1a0e7adc.js → ActionButton-adaadbae.js} +8 -7
- package/{Alert-67936720.js → Alert-b41a748e.js} +14 -13
- package/{AssetGallery-6dd55b64.js → AssetGallery-d94cad32.js} +126 -124
- package/{AssetPreviewTopBar-8d2cceaf.js → AssetPreviewTopBar-ac66b804.js} +9 -8
- package/{Badge-0edffd2a.js → Badge-4a2a9f6b.js} +20 -19
- package/{Button-b057997e.js → Button-4c60d2f4.js} +16 -15
- package/{Checkbox-53f14dc1.js → Checkbox-84dd9aa1.js} +17 -16
- package/CompactAutocompleteSelect-bf5e8820.js +418 -0
- package/CompactAutocompleteSelectAsync-e76bf873.js +28 -0
- package/{CompactStarRating-ad593265.js → CompactStarRating-017d64cb.js} +27 -26
- package/{CompactTextInput-f63edb86.js → CompactTextInput-8132e42d.js} +34 -33
- package/{ContextMenu-ea917be1.js → ContextMenu-4427ad11.js} +3 -2
- package/{ContextMenuItem-4a376e8f.js → ContextMenuItem-b5f97001.js} +8 -7
- package/{InputGroup-e8dd2f87.js → InputGroup-9d1cd295.js} +3 -2
- package/{Instructions-6658da76.js → Instructions-235aa0fc.js} +34 -33
- package/{MultiLevelCheckboxSelect-552a40db.js → MultiLevelCheckboxSelect-4f51a1a2.js} +53 -52
- package/{MultiSelect-0dfdb663.js → MultiSelect-53089d1e.js} +22 -21
- package/{Popover-d6cfcb7f.js → Popover-938e6bfc.js} +15 -14
- package/{Radio-5b9c83b1.js → Radio-1d09e729.js} +13 -12
- package/{SectionSeparator-3c32b45b.js → SectionSeparator-d9ae38b7.js} +3 -2
- package/{Switch-aa706662.js → Switch-15d9a890.js} +15 -14
- package/{Tab-d978a3c4.js → Tab-88f77a44.js} +4 -3
- package/{Tabs-adff38d2.js → Tabs-e64ecfaa.js} +8 -7
- package/{TextArea-092dde3a.js → TextArea-cbe713eb.js} +42 -41
- package/{TextInput-af1a2a84.js → TextInput-b9414cc6.js} +24 -23
- package/{Tooltip-b4907b91.js → Tooltip-22238771.js} +10 -9
- package/{VerificationStatusIcon-f831c83f.js → VerificationStatusIcon-99a54d5d.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-8bd3e0b9.js +271 -0
- package/{defaultTheme-104fcbf4.js → index-1e234d23.js} +0 -269
- package/inputs/ActionButton/index.js +3 -2
- package/inputs/Button/index.js +6 -5
- package/inputs/Checkbox/index.js +3 -2
- package/inputs/CompactAutocompleteSelect/index.js +17 -3
- package/inputs/CompactAutocompleteSelectAsync/index.js +11 -0
- package/inputs/CompactStarRating/index.js +11 -10
- package/inputs/CompactTextInput/index.js +11 -10
- package/inputs/MultiSelect/index.js +4 -3
- 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 +28 -25
- package/layout/InputGroup/index.js +3 -2
- package/layout/SectionSeparator/index.js +3 -2
- package/layout/index.js +4 -3
- package/package.json +3 -3
- package/{react-select-creatable.esm-2d52a2fd.js → react-select-creatable.esm-31bd2caf.js} +2 -2
- package/{shift-away-subtle-6d929fae.js → shift-away-subtle-c3c2f2b2.js} +1 -1
- package/widgets/AssetGallery/index.js +29 -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 +18 -17
- package/widgets/index.js +31 -29
- package/CompactAutocompleteSelect-28353593.js +0 -190
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-8bd3e0b9.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-1e234d23.js');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
7
|
var polished = require('polished');
|
|
7
8
|
|
|
@@ -45,12 +46,12 @@ var ActionButton = React__default["default"].forwardRef(function ActionButton(_r
|
|
|
45
46
|
}, props), icon);
|
|
46
47
|
});
|
|
47
48
|
ActionButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
48
|
-
icon:
|
|
49
|
-
disabled:
|
|
50
|
-
active:
|
|
51
|
-
onClick:
|
|
52
|
-
backgroundColors:
|
|
53
|
-
buttonWidthHeight:
|
|
49
|
+
icon: index.PropTypes.element.isRequired,
|
|
50
|
+
disabled: index.PropTypes.bool,
|
|
51
|
+
active: index.PropTypes.bool,
|
|
52
|
+
onClick: index.PropTypes.func,
|
|
53
|
+
backgroundColors: index.PropTypes.arrayOf(index.PropTypes.string),
|
|
54
|
+
buttonWidthHeight: index.PropTypes.array
|
|
54
55
|
} : {};
|
|
55
56
|
ActionButton.defaultProps = {
|
|
56
57
|
onClick: function onClick() {},
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-8bd3e0b9.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-1e234d23.js');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
7
|
var lodash = require('lodash');
|
|
7
8
|
|
|
@@ -87,18 +88,18 @@ var Alert = React__default["default"].forwardRef(function Alert(_ref, forwardedR
|
|
|
87
88
|
}, icon, " ", React__default["default"].createElement("span", null, alertMessage)));
|
|
88
89
|
});
|
|
89
90
|
Alert.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
90
|
-
warning:
|
|
91
|
-
error:
|
|
92
|
-
type:
|
|
93
|
-
icon:
|
|
94
|
-
align:
|
|
95
|
-
alertMessage:
|
|
96
|
-
fontSize:
|
|
97
|
-
lineHeight:
|
|
98
|
-
lineClamp:
|
|
99
|
-
verticalPadding:
|
|
100
|
-
horizontalPadding:
|
|
101
|
-
width:
|
|
91
|
+
warning: index.PropTypes.bool,
|
|
92
|
+
error: index.PropTypes.bool,
|
|
93
|
+
type: index.PropTypes.oneOf(['warning', 'error', 'info']),
|
|
94
|
+
icon: index.PropTypes.element,
|
|
95
|
+
align: index.PropTypes.oneOf(['left', 'center']),
|
|
96
|
+
alertMessage: index.PropTypes.string,
|
|
97
|
+
fontSize: index.PropTypes.number,
|
|
98
|
+
lineHeight: index.PropTypes.number,
|
|
99
|
+
lineClamp: index.PropTypes.number,
|
|
100
|
+
verticalPadding: index.PropTypes.number,
|
|
101
|
+
horizontalPadding: index.PropTypes.number,
|
|
102
|
+
width: index.PropTypes.number
|
|
102
103
|
} : {};
|
|
103
104
|
Alert.defaultProps = {
|
|
104
105
|
warning: false,
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-8bd3e0b9.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
|
+
var index = require('./index-1e234d23.js');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var useMergedRefs = require('./useMergedRefs-b6d2f8fc.js');
|
|
7
8
|
var ResizeObserver = require('resize-observer-polyfill');
|
|
8
|
-
var MultiLevelCheckboxSelect = require('./MultiLevelCheckboxSelect-
|
|
9
|
+
var MultiLevelCheckboxSelect = require('./MultiLevelCheckboxSelect-4f51a1a2.js');
|
|
9
10
|
var styled = require('styled-components');
|
|
10
11
|
var reactLazyLoadImageComponent = require('react-lazy-load-image-component');
|
|
11
12
|
var warningCircle = require('./warning-circle-478e65cc.js');
|
|
12
|
-
var Alert = require('./Alert-
|
|
13
|
-
var Badge = require('./Badge-
|
|
14
|
-
var Popover = require('./Popover-
|
|
15
|
-
require('./Tab-
|
|
16
|
-
require('./Tabs-
|
|
17
|
-
var Tooltip = require('./Tooltip-
|
|
18
|
-
require('./VerificationStatusIcon-
|
|
19
|
-
var ActionButton = require('./ActionButton-
|
|
20
|
-
require('./Button-
|
|
21
|
-
require('./Checkbox-
|
|
22
|
-
require('./CompactAutocompleteSelect-
|
|
23
|
-
require('./
|
|
24
|
-
require('./
|
|
25
|
-
require('./
|
|
26
|
-
require('./
|
|
27
|
-
require('./
|
|
28
|
-
require('./
|
|
29
|
-
require('./
|
|
30
|
-
|
|
31
|
-
var
|
|
13
|
+
var Alert = require('./Alert-b41a748e.js');
|
|
14
|
+
var Badge = require('./Badge-4a2a9f6b.js');
|
|
15
|
+
var Popover = require('./Popover-938e6bfc.js');
|
|
16
|
+
require('./Tab-88f77a44.js');
|
|
17
|
+
require('./Tabs-e64ecfaa.js');
|
|
18
|
+
var Tooltip = require('./Tooltip-22238771.js');
|
|
19
|
+
require('./VerificationStatusIcon-99a54d5d.js');
|
|
20
|
+
var ActionButton = require('./ActionButton-adaadbae.js');
|
|
21
|
+
require('./Button-4c60d2f4.js');
|
|
22
|
+
require('./Checkbox-84dd9aa1.js');
|
|
23
|
+
require('./CompactAutocompleteSelect-bf5e8820.js');
|
|
24
|
+
require('./CompactAutocompleteSelectAsync-e76bf873.js');
|
|
25
|
+
require('./CompactStarRating-017d64cb.js');
|
|
26
|
+
require('./CompactTextInput-8132e42d.js');
|
|
27
|
+
require('./MultiSelect-53089d1e.js');
|
|
28
|
+
require('./Radio-1d09e729.js');
|
|
29
|
+
require('./TextArea-cbe713eb.js');
|
|
30
|
+
require('./TextInput-b9414cc6.js');
|
|
31
|
+
require('./Switch-15d9a890.js');
|
|
32
|
+
var ContextMenu = require('./ContextMenu-4427ad11.js');
|
|
33
|
+
var ContextMenuItem = require('./ContextMenuItem-b5f97001.js');
|
|
32
34
|
var polished = require('polished');
|
|
33
35
|
|
|
34
36
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -105,51 +107,51 @@ function SvgPlay(props) {
|
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
var assetShape = {
|
|
108
|
-
key:
|
|
109
|
-
previewUrl:
|
|
110
|
-
title:
|
|
111
|
-
note:
|
|
112
|
-
icon:
|
|
113
|
-
message:
|
|
110
|
+
key: index.PropTypes.oneOfType([index.PropTypes.string, index.PropTypes.number]).isRequired,
|
|
111
|
+
previewUrl: index.PropTypes.string,
|
|
112
|
+
title: index.PropTypes.string,
|
|
113
|
+
note: index.PropTypes.shape({
|
|
114
|
+
icon: index.PropTypes.element,
|
|
115
|
+
message: index.PropTypes.string
|
|
114
116
|
}),
|
|
115
|
-
width:
|
|
116
|
-
height:
|
|
117
|
-
fileType:
|
|
118
|
-
fileTypeIconPosition:
|
|
119
|
-
group:
|
|
120
|
-
actions:
|
|
121
|
-
title:
|
|
122
|
-
icon:
|
|
123
|
-
onClick:
|
|
124
|
-
className:
|
|
125
|
-
component:
|
|
117
|
+
width: index.PropTypes.number,
|
|
118
|
+
height: index.PropTypes.number,
|
|
119
|
+
fileType: index.PropTypes.oneOf(['image', 'video', 'pdf', 'file', 'audio']).isRequired,
|
|
120
|
+
fileTypeIconPosition: index.PropTypes.oneOf(['top-left', 'top-right']),
|
|
121
|
+
group: index.PropTypes.string,
|
|
122
|
+
actions: index.PropTypes.arrayOf(index.PropTypes.shape({
|
|
123
|
+
title: index.PropTypes.string.isRequired,
|
|
124
|
+
icon: index.PropTypes.element.isRequired,
|
|
125
|
+
onClick: index.PropTypes.func.isRequired,
|
|
126
|
+
className: index.PropTypes.shape,
|
|
127
|
+
component: index.PropTypes.func
|
|
126
128
|
})),
|
|
127
|
-
overlay:
|
|
128
|
-
completed:
|
|
129
|
-
hasError:
|
|
130
|
-
disabled:
|
|
131
|
-
onClick:
|
|
132
|
-
onContextMenu:
|
|
133
|
-
onMouseEnter:
|
|
134
|
-
summary:
|
|
135
|
-
title:
|
|
136
|
-
description:
|
|
137
|
-
instructions:
|
|
138
|
-
instructionsType:
|
|
139
|
-
headerLeft:
|
|
140
|
-
headerRight:
|
|
141
|
-
footerLeft:
|
|
142
|
-
footerRight:
|
|
129
|
+
overlay: index.PropTypes.element,
|
|
130
|
+
completed: index.PropTypes.bool,
|
|
131
|
+
hasError: index.PropTypes.bool,
|
|
132
|
+
disabled: index.PropTypes.bool,
|
|
133
|
+
onClick: index.PropTypes.func,
|
|
134
|
+
onContextMenu: index.PropTypes.func,
|
|
135
|
+
onMouseEnter: index.PropTypes.func,
|
|
136
|
+
summary: index.PropTypes.shape({
|
|
137
|
+
title: index.PropTypes.string,
|
|
138
|
+
description: index.PropTypes.string,
|
|
139
|
+
instructions: index.PropTypes.string,
|
|
140
|
+
instructionsType: index.PropTypes.oneOf(['warning', 'error', 'info']),
|
|
141
|
+
headerLeft: index.PropTypes.node,
|
|
142
|
+
headerRight: index.PropTypes.node,
|
|
143
|
+
footerLeft: index.PropTypes.node,
|
|
144
|
+
footerRight: index.PropTypes.node
|
|
143
145
|
})
|
|
144
146
|
};
|
|
145
147
|
var assetShapeWithLayout = defaultTheme._objectSpread2(defaultTheme._objectSpread2({}, assetShape), {}, {
|
|
146
|
-
layout:
|
|
147
|
-
width:
|
|
148
|
-
height:
|
|
149
|
-
translateX:
|
|
150
|
-
translateY:
|
|
151
|
-
type:
|
|
152
|
-
hasHeightAndWidth:
|
|
148
|
+
layout: index.PropTypes.shape({
|
|
149
|
+
width: index.PropTypes.number.isRequired,
|
|
150
|
+
height: index.PropTypes.number.isRequired,
|
|
151
|
+
translateX: index.PropTypes.number.isRequired,
|
|
152
|
+
translateY: index.PropTypes.number.isRequired,
|
|
153
|
+
type: index.PropTypes.oneOf(['groupLabel', 'asset']).isRequired,
|
|
154
|
+
hasHeightAndWidth: index.PropTypes.bool
|
|
153
155
|
}).isRequired
|
|
154
156
|
});
|
|
155
157
|
|
|
@@ -257,17 +259,17 @@ var SummaryCard = React__default["default"].forwardRef(function AssetSummaryCard
|
|
|
257
259
|
}));
|
|
258
260
|
});
|
|
259
261
|
SummaryCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
260
|
-
activeSummaryCard:
|
|
261
|
-
title:
|
|
262
|
-
description:
|
|
263
|
-
instructions:
|
|
264
|
-
instructionsType:
|
|
265
|
-
headerLeft:
|
|
266
|
-
headerRight:
|
|
267
|
-
footerLeft:
|
|
268
|
-
footerRight:
|
|
269
|
-
width:
|
|
270
|
-
useBorder:
|
|
262
|
+
activeSummaryCard: index.PropTypes.bool,
|
|
263
|
+
title: index.PropTypes.string,
|
|
264
|
+
description: index.PropTypes.string,
|
|
265
|
+
instructions: index.PropTypes.string,
|
|
266
|
+
instructionsType: index.PropTypes.oneOf(['warning', 'error', 'info']),
|
|
267
|
+
headerLeft: index.PropTypes.node,
|
|
268
|
+
headerRight: index.PropTypes.node,
|
|
269
|
+
footerLeft: index.PropTypes.node,
|
|
270
|
+
footerRight: index.PropTypes.node,
|
|
271
|
+
width: index.PropTypes.number,
|
|
272
|
+
useBorder: index.PropTypes.bool
|
|
271
273
|
} : {};
|
|
272
274
|
SummaryCard.defaultProps = {
|
|
273
275
|
title: '',
|
|
@@ -786,19 +788,19 @@ var AssetGalleryCompactCard = function AssetGalleryCompactCard(props) {
|
|
|
786
788
|
})), asset.overlay && React__default["default"].createElement(ConsumerDefinedOverlay$1, null, asset.overlay)));
|
|
787
789
|
};
|
|
788
790
|
AssetGalleryCompactCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
789
|
-
asset:
|
|
790
|
-
hasHeightAndWidth:
|
|
791
|
-
selectable:
|
|
792
|
-
selected:
|
|
793
|
-
extendedSelectMode:
|
|
794
|
-
onAssetSelected:
|
|
795
|
-
onAssetUnselected:
|
|
796
|
-
softSelected:
|
|
797
|
-
component:
|
|
798
|
-
scrollPosition:
|
|
799
|
-
collapseExtraInfo:
|
|
800
|
-
activeSummaryCard:
|
|
801
|
-
actionButtonWidthHeight:
|
|
791
|
+
asset: index.PropTypes.shape(assetShapeWithLayout).isRequired,
|
|
792
|
+
hasHeightAndWidth: index.PropTypes.bool,
|
|
793
|
+
selectable: index.PropTypes.bool,
|
|
794
|
+
selected: index.PropTypes.bool,
|
|
795
|
+
extendedSelectMode: index.PropTypes.bool,
|
|
796
|
+
onAssetSelected: index.PropTypes.func.isRequired,
|
|
797
|
+
onAssetUnselected: index.PropTypes.func.isRequired,
|
|
798
|
+
softSelected: index.PropTypes.bool.isRequired,
|
|
799
|
+
component: index.PropTypes.func,
|
|
800
|
+
scrollPosition: index.PropTypes.number,
|
|
801
|
+
collapseExtraInfo: index.PropTypes.bool,
|
|
802
|
+
activeSummaryCard: index.PropTypes.bool,
|
|
803
|
+
actionButtonWidthHeight: index.PropTypes.array
|
|
802
804
|
} : {};
|
|
803
805
|
AssetGalleryCompactCard.defaultProps = {};
|
|
804
806
|
var AssetGalleryCompactCard$1 = reactLazyLoadImageComponent.trackWindowScroll(React__default["default"].memo(AssetGalleryCompactCard, function (prevProps, nextProps) {
|
|
@@ -1248,15 +1250,15 @@ var AssetGalleryGridCard = function AssetGalleryGridCard(props) {
|
|
|
1248
1250
|
}, asset.previewUrl && renderPreview(asset)), renderSummary())));
|
|
1249
1251
|
};
|
|
1250
1252
|
AssetGalleryGridCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1251
|
-
asset:
|
|
1252
|
-
selectable:
|
|
1253
|
-
selected:
|
|
1254
|
-
extendedSelectMode:
|
|
1255
|
-
onAssetSelected:
|
|
1256
|
-
onAssetUnselected:
|
|
1257
|
-
softSelected:
|
|
1258
|
-
component:
|
|
1259
|
-
scrollPosition:
|
|
1253
|
+
asset: index.PropTypes.shape(assetShapeWithLayout).isRequired,
|
|
1254
|
+
selectable: index.PropTypes.bool,
|
|
1255
|
+
selected: index.PropTypes.bool,
|
|
1256
|
+
extendedSelectMode: index.PropTypes.bool,
|
|
1257
|
+
onAssetSelected: index.PropTypes.func.isRequired,
|
|
1258
|
+
onAssetUnselected: index.PropTypes.func.isRequired,
|
|
1259
|
+
softSelected: index.PropTypes.bool.isRequired,
|
|
1260
|
+
component: index.PropTypes.func,
|
|
1261
|
+
scrollPosition: index.PropTypes.number
|
|
1260
1262
|
} : {};
|
|
1261
1263
|
AssetGalleryGridCard.defaultProps = {};
|
|
1262
1264
|
var AssetGalleryGridCard$1 = reactLazyLoadImageComponent.trackWindowScroll(React__default["default"].memo(AssetGalleryGridCard, function (prevProps, nextProps) {
|
|
@@ -1640,22 +1642,22 @@ var AssetGalleryBase = React__default["default"].forwardRef(function AssetGaller
|
|
|
1640
1642
|
})));
|
|
1641
1643
|
});
|
|
1642
1644
|
AssetGalleryBase.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1643
|
-
assets:
|
|
1644
|
-
activeSummaryCard:
|
|
1645
|
-
displayVersionCount:
|
|
1646
|
-
displayVerificationIcon:
|
|
1647
|
-
viewMode:
|
|
1648
|
-
thumbnailMaxHeight:
|
|
1649
|
-
selectable:
|
|
1650
|
-
selectedAssetKeys:
|
|
1651
|
-
scrollElement:
|
|
1652
|
-
onAssetSelected:
|
|
1653
|
-
onAssetUnselected:
|
|
1654
|
-
softSelectable:
|
|
1655
|
-
softSelectedAssetKey:
|
|
1656
|
-
onAssetSoftSelectedChanged:
|
|
1657
|
-
component:
|
|
1658
|
-
className:
|
|
1645
|
+
assets: index.PropTypes.arrayOf(index.PropTypes.shape(assetShape)),
|
|
1646
|
+
activeSummaryCard: index.PropTypes.bool,
|
|
1647
|
+
displayVersionCount: index.PropTypes.bool,
|
|
1648
|
+
displayVerificationIcon: index.PropTypes.bool,
|
|
1649
|
+
viewMode: index.PropTypes.oneOf(['compact', 'grid']),
|
|
1650
|
+
thumbnailMaxHeight: index.PropTypes.number,
|
|
1651
|
+
selectable: index.PropTypes.bool,
|
|
1652
|
+
selectedAssetKeys: index.PropTypes.oneOfType([index.PropTypes.arrayOf(index.PropTypes.string), index.PropTypes.arrayOf(index.PropTypes.number)]).isRequired,
|
|
1653
|
+
scrollElement: index.PropTypes.instanceOf(Element),
|
|
1654
|
+
onAssetSelected: index.PropTypes.func.isRequired,
|
|
1655
|
+
onAssetUnselected: index.PropTypes.func.isRequired,
|
|
1656
|
+
softSelectable: index.PropTypes.bool,
|
|
1657
|
+
softSelectedAssetKey: index.PropTypes.oneOfType([index.PropTypes.string, index.PropTypes.number]),
|
|
1658
|
+
onAssetSoftSelectedChanged: index.PropTypes.func.isRequired,
|
|
1659
|
+
component: index.PropTypes.func,
|
|
1660
|
+
className: index.PropTypes.string
|
|
1659
1661
|
} : {};
|
|
1660
1662
|
|
|
1661
1663
|
var _excluded = ["assets", "activeSummaryCard", "displayVersionCount", "displayVerificationIcon", "viewMode", "thumbnailMaxHeight", "selectable", "selectedAssetKeys", "onSelectedChanged", "softSelectable", "scrollElement", "onSoftSelectedChanged", "component"];
|
|
@@ -1741,19 +1743,19 @@ var AssetGallery = React__default["default"].forwardRef(function AssetGallery(_r
|
|
|
1741
1743
|
}, props));
|
|
1742
1744
|
});
|
|
1743
1745
|
AssetGallery.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1744
|
-
assets:
|
|
1745
|
-
displayVersionCount:
|
|
1746
|
-
displayVerificationIcon:
|
|
1747
|
-
activeSummaryCard:
|
|
1748
|
-
viewMode:
|
|
1749
|
-
thumbnailMaxHeight:
|
|
1750
|
-
selectable:
|
|
1751
|
-
selectedAssetKeys:
|
|
1752
|
-
onSelectedChanged:
|
|
1753
|
-
softSelectable:
|
|
1754
|
-
scrollElement:
|
|
1755
|
-
onSoftSelectedChanged:
|
|
1756
|
-
component:
|
|
1746
|
+
assets: index.PropTypes.arrayOf(index.PropTypes.shape(assetShape)),
|
|
1747
|
+
displayVersionCount: index.PropTypes.bool,
|
|
1748
|
+
displayVerificationIcon: index.PropTypes.bool,
|
|
1749
|
+
activeSummaryCard: index.PropTypes.bool,
|
|
1750
|
+
viewMode: index.PropTypes.oneOf(['compact', 'grid']),
|
|
1751
|
+
thumbnailMaxHeight: index.PropTypes.number,
|
|
1752
|
+
selectable: index.PropTypes.bool,
|
|
1753
|
+
selectedAssetKeys: index.PropTypes.oneOfType([index.PropTypes.arrayOf(index.PropTypes.string), index.PropTypes.arrayOf(index.PropTypes.number)]),
|
|
1754
|
+
onSelectedChanged: index.PropTypes.func,
|
|
1755
|
+
softSelectable: index.PropTypes.bool,
|
|
1756
|
+
scrollElement: index.PropTypes.instanceOf(Element),
|
|
1757
|
+
onSoftSelectedChanged: index.PropTypes.func,
|
|
1758
|
+
component: index.PropTypes.func
|
|
1757
1759
|
} : {};
|
|
1758
1760
|
AssetGallery.defaultProps = {
|
|
1759
1761
|
assets: [],
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-8bd3e0b9.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-1e234d23.js');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
7
|
var close = require('./close-1751121a.js');
|
|
7
8
|
|
|
@@ -82,13 +83,13 @@ var AssetPreviewTopBar = React__default["default"].forwardRef(function AssetPrev
|
|
|
82
83
|
})));
|
|
83
84
|
});
|
|
84
85
|
AssetPreviewTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
85
|
-
onBackButtonClick:
|
|
86
|
-
backButtonText:
|
|
87
|
-
backButtonAsClose:
|
|
88
|
-
leftText:
|
|
89
|
-
shadow:
|
|
90
|
-
border:
|
|
91
|
-
buttons:
|
|
86
|
+
onBackButtonClick: index.PropTypes.func.isRequired,
|
|
87
|
+
backButtonText: index.PropTypes.string.isRequired,
|
|
88
|
+
backButtonAsClose: index.PropTypes.bool,
|
|
89
|
+
leftText: index.PropTypes.string,
|
|
90
|
+
shadow: index.PropTypes.bool,
|
|
91
|
+
border: index.PropTypes.bool,
|
|
92
|
+
buttons: index.PropTypes.arrayOf(index.PropTypes.node)
|
|
92
93
|
} : {};
|
|
93
94
|
AssetPreviewTopBar.defaultProps = {};
|
|
94
95
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-8bd3e0b9.js');
|
|
4
|
+
var index = require('./index-1e234d23.js');
|
|
4
5
|
var React = require('react');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
7
|
|
|
@@ -168,24 +169,24 @@ var Badge = React__default["default"].forwardRef(function Badge(_ref, forwardedR
|
|
|
168
169
|
}, badgeIcon), badgeContent));
|
|
169
170
|
});
|
|
170
171
|
Badge.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
171
|
-
badgeIcon:
|
|
172
|
-
badgeContent:
|
|
173
|
-
children:
|
|
174
|
-
elevated:
|
|
175
|
-
active:
|
|
176
|
-
error:
|
|
177
|
-
warning:
|
|
178
|
-
fontSize:
|
|
179
|
-
fontWeight:
|
|
180
|
-
lineHeight:
|
|
181
|
-
colors:
|
|
182
|
-
backgroundColors:
|
|
183
|
-
verticalPadding:
|
|
184
|
-
horizontalPadding:
|
|
185
|
-
height:
|
|
186
|
-
minHeight:
|
|
187
|
-
width:
|
|
188
|
-
minWidth:
|
|
172
|
+
badgeIcon: index.PropTypes.node,
|
|
173
|
+
badgeContent: index.PropTypes.oneOfType([index.PropTypes.string, index.PropTypes.number]),
|
|
174
|
+
children: index.PropTypes.oneOfType([index.PropTypes.node, index.PropTypes.string]),
|
|
175
|
+
elevated: index.PropTypes.bool,
|
|
176
|
+
active: index.PropTypes.bool,
|
|
177
|
+
error: index.PropTypes.bool,
|
|
178
|
+
warning: index.PropTypes.bool,
|
|
179
|
+
fontSize: index.PropTypes.oneOfType([index.PropTypes.number, index.PropTypes.string]),
|
|
180
|
+
fontWeight: index.PropTypes.oneOfType([index.PropTypes.number, index.PropTypes.string]),
|
|
181
|
+
lineHeight: index.PropTypes.oneOfType([index.PropTypes.number, index.PropTypes.string]),
|
|
182
|
+
colors: index.PropTypes.arrayOf(index.PropTypes.string),
|
|
183
|
+
backgroundColors: index.PropTypes.arrayOf(index.PropTypes.string),
|
|
184
|
+
verticalPadding: index.PropTypes.number,
|
|
185
|
+
horizontalPadding: index.PropTypes.number,
|
|
186
|
+
height: index.PropTypes.number,
|
|
187
|
+
minHeight: index.PropTypes.number,
|
|
188
|
+
width: index.PropTypes.number,
|
|
189
|
+
minWidth: index.PropTypes.number
|
|
189
190
|
} : {};
|
|
190
191
|
Badge.defaultProps = {
|
|
191
192
|
elevated: false,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-8bd3e0b9.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('./index-1e234d23.js');
|
|
5
6
|
var styled = require('styled-components');
|
|
6
|
-
var Popover = require('./Popover-
|
|
7
|
-
var ContextMenu = require('./ContextMenu-
|
|
7
|
+
var Popover = require('./Popover-938e6bfc.js');
|
|
8
|
+
var ContextMenu = require('./ContextMenu-4427ad11.js');
|
|
8
9
|
var expandMore = require('./expand-more-d74e2bd2.js');
|
|
9
10
|
|
|
10
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -231,18 +232,18 @@ var Button = React__default["default"].forwardRef(function Button(_ref, forwarde
|
|
|
231
232
|
}, icon, children), React__default["default"].createElement(expandMore.SvgExpandMore, null)))))));
|
|
232
233
|
});
|
|
233
234
|
Button.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
234
|
-
onClickEffect:
|
|
235
|
-
singleAction:
|
|
236
|
-
dropdownItems:
|
|
237
|
-
secondary:
|
|
238
|
-
outlined:
|
|
239
|
-
block:
|
|
240
|
-
icon:
|
|
241
|
-
size:
|
|
242
|
-
disabled:
|
|
243
|
-
loading:
|
|
244
|
-
className:
|
|
245
|
-
children:
|
|
235
|
+
onClickEffect: index.PropTypes.func,
|
|
236
|
+
singleAction: index.PropTypes.bool,
|
|
237
|
+
dropdownItems: index.PropTypes.node,
|
|
238
|
+
secondary: index.PropTypes.bool,
|
|
239
|
+
outlined: index.PropTypes.bool,
|
|
240
|
+
block: index.PropTypes.bool,
|
|
241
|
+
icon: index.PropTypes.element,
|
|
242
|
+
size: index.PropTypes.oneOf(['x-small', 'small', 'normal', 'large']),
|
|
243
|
+
disabled: index.PropTypes.bool,
|
|
244
|
+
loading: index.PropTypes.bool,
|
|
245
|
+
className: index.PropTypes.string,
|
|
246
|
+
children: index.PropTypes.any.isRequired
|
|
246
247
|
} : {};
|
|
247
248
|
Button.defaultProps = {
|
|
248
249
|
size: 'normal',
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-8bd3e0b9.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var nanoid = require('nanoid');
|
|
6
|
+
var index = require('./index-1e234d23.js');
|
|
6
7
|
var lodash = require('lodash');
|
|
7
8
|
var styled = require('styled-components');
|
|
8
9
|
|
|
@@ -110,21 +111,21 @@ var Checkbox = React__default["default"].forwardRef(function Checkbox(_ref, forw
|
|
|
110
111
|
}, descriptionText));
|
|
111
112
|
});
|
|
112
113
|
Checkbox.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
113
|
-
checked:
|
|
114
|
-
defaultChecked:
|
|
115
|
-
label:
|
|
116
|
-
disabled:
|
|
117
|
-
readOnly:
|
|
118
|
-
name:
|
|
119
|
-
value:
|
|
120
|
-
description:
|
|
121
|
-
error:
|
|
122
|
-
indeterminate:
|
|
123
|
-
muted:
|
|
124
|
-
onChange:
|
|
125
|
-
onBlur:
|
|
126
|
-
className:
|
|
127
|
-
style:
|
|
114
|
+
checked: index.PropTypes.bool,
|
|
115
|
+
defaultChecked: index.PropTypes.bool,
|
|
116
|
+
label: index.PropTypes.oneOfType([index.PropTypes.string, index.PropTypes.element]),
|
|
117
|
+
disabled: index.PropTypes.bool,
|
|
118
|
+
readOnly: index.PropTypes.bool,
|
|
119
|
+
name: index.PropTypes.string,
|
|
120
|
+
value: index.PropTypes.string,
|
|
121
|
+
description: index.PropTypes.string,
|
|
122
|
+
error: index.PropTypes.oneOfType([index.PropTypes.bool, index.PropTypes.string]),
|
|
123
|
+
indeterminate: index.PropTypes.bool,
|
|
124
|
+
muted: index.PropTypes.bool,
|
|
125
|
+
onChange: index.PropTypes.func,
|
|
126
|
+
onBlur: index.PropTypes.func,
|
|
127
|
+
className: index.PropTypes.string,
|
|
128
|
+
style: index.PropTypes.object
|
|
128
129
|
} : {};
|
|
129
130
|
Checkbox.defaultProps = {
|
|
130
131
|
disabled: false,
|