@ntbjs/react-components 1.3.0-rc.36 → 1.3.0-rc.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/{ActionButton-b2345555.js → ActionButton-df714c16.js} +6 -4
- package/{Alert-d69a3f95.js → Alert-28de48e1.js} +13 -8
- package/{AssetAction-32bdf257.js → AssetAction-163f4042.js} +293 -110
- package/{AssetPreviewTopBar-f800a63a.js → AssetPreviewTopBar-5636a6e9.js} +25 -17
- package/{Badge-e984e6f5.js → Badge-2e008fe7.js} +21 -10
- package/{Button-17bb2db1.js → Button-700afca4.js} +58 -32
- package/{Checkbox-ad9c9e54.js → Checkbox-89fb44b0.js} +29 -12
- package/{CompactAutocompleteSelect-76b297c1.js → CompactAutocompleteSelect-394a96f2.js} +108 -49
- package/{CompactStarRating-158381c8.js → CompactStarRating-c02080fd.js} +50 -30
- package/{CompactTextInput-90c41fe2.js → CompactTextInput-1a216516.js} +72 -43
- package/{ContextMenu-4eb8fdc5.js → ContextMenu-265b13dc.js} +5 -3
- package/{ContextMenuItem-c536b460.js → ContextMenuItem-9008feb7.js} +16 -8
- package/{InputGroup-a89a0ea3.js → InputGroup-daac9ea0.js} +5 -3
- package/{Instructions-52e8f6dd.js → Instructions-5d777a4d.js} +19 -8
- package/{MultiLevelCheckboxSelect-3fa37f40.js → MultiLevelCheckboxSelect-d8e6ab4c.js} +86 -34
- package/{MultiSelect-32e3ed90.js → MultiSelect-f9fbcdff.js} +89 -30
- package/Popover-8e025dcb.js +146 -0
- package/{Radio-55db4781.js → Radio-ecf4226c.js} +11 -6
- package/{SectionSeparator-af8dc1ce.js → SectionSeparator-e69cddfd.js} +5 -3
- package/{Switch-04ecd8d0.js → Switch-76d7d568.js} +27 -10
- package/{Tab-e43241f0.js → Tab-74c2bca2.js} +5 -3
- package/{Tabs-cfc08c6b.js → Tabs-41bd6cc1.js} +28 -14
- package/{TextArea-77fd5efd.js → TextArea-40baf21d.js} +87 -55
- package/{TextInput-9a995449.js → TextInput-c1bb5c8c.js} +49 -26
- package/{Tooltip-a68a7e49.js → Tooltip-dbd1bc99.js} +6 -4
- package/{VerificationStatusIcon-7b0e23fe.js → VerificationStatusIcon-b43db48d.js} +14 -6
- package/data/Alert/index.js +2 -2
- package/data/Badge/index.js +2 -2
- package/data/Popover/index.js +4 -3
- package/data/Tab/index.js +2 -2
- package/data/Tabs/index.js +3 -3
- package/data/Tooltip/index.js +3 -3
- package/data/index.js +10 -9
- package/{defaultTheme-cd01e6c2.js → defaultTheme-b6420d7d.js} +1 -10
- package/inputs/ActionButton/index.js +2 -2
- package/inputs/Button/index.js +6 -5
- package/inputs/Checkbox/index.js +2 -2
- package/inputs/CompactAutocompleteSelect/index.js +12 -11
- package/inputs/CompactStarRating/index.js +11 -10
- package/inputs/CompactTextInput/index.js +11 -10
- package/inputs/MultiSelect/index.js +3 -3
- package/inputs/Radio/index.js +2 -2
- package/inputs/Switch/index.js +2 -2
- package/inputs/TextArea/index.js +11 -10
- package/inputs/TextInput/index.js +2 -2
- package/inputs/index.js +26 -25
- package/layout/InputGroup/index.js +2 -2
- package/layout/SectionSeparator/index.js +2 -2
- package/layout/index.js +3 -3
- package/package.json +6 -6
- package/{react-select-creatable.esm-753a67f1.js → react-select-creatable.esm-a9d74549.js} +9 -7
- package/{shift-away-subtle-631cd794.js → shift-away-subtle-e3830923.js} +1 -1
- package/widgets/AssetGallery/index.js +30 -29
- package/widgets/AssetPreview/AssetPreviewTopBar/index.js +2 -2
- package/widgets/ContextMenu/ContextMenuItem/index.js +2 -2
- package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +5 -3
- package/widgets/ContextMenu/index.js +2 -2
- package/widgets/Instructions/index.js +14 -13
- package/widgets/index.js +30 -29
- package/Popover-85ce744d.js +0 -131
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defaultTheme = require('./defaultTheme-
|
|
3
|
+
var defaultTheme = require('./defaultTheme-b6420d7d.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var useMergedRefs = require('./useMergedRefs-b6d2f8fc.js');
|
|
7
7
|
var ResizeObserver = require('resize-observer-polyfill');
|
|
8
|
-
var MultiLevelCheckboxSelect = require('./MultiLevelCheckboxSelect-
|
|
8
|
+
var MultiLevelCheckboxSelect = require('./MultiLevelCheckboxSelect-d8e6ab4c.js');
|
|
9
9
|
var styled = require('styled-components');
|
|
10
10
|
var reactLazyLoadImageComponent = require('react-lazy-load-image-component');
|
|
11
|
-
var Instructions = require('./Instructions-
|
|
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-
|
|
11
|
+
var Instructions = require('./Instructions-5d777a4d.js');
|
|
12
|
+
var Alert = require('./Alert-28de48e1.js');
|
|
13
|
+
var Badge = require('./Badge-2e008fe7.js');
|
|
14
|
+
var Popover = require('./Popover-8e025dcb.js');
|
|
15
|
+
require('./Tab-74c2bca2.js');
|
|
16
|
+
require('./Tabs-41bd6cc1.js');
|
|
17
|
+
var Tooltip = require('./Tooltip-dbd1bc99.js');
|
|
18
|
+
require('./VerificationStatusIcon-b43db48d.js');
|
|
19
19
|
var react = require('@floating-ui/react');
|
|
20
20
|
var polished = require('polished');
|
|
21
|
-
var ContextMenu = require('./ContextMenu-
|
|
22
|
-
require('./AssetPreviewTopBar-
|
|
23
|
-
var ActionButton = require('./ActionButton-
|
|
24
|
-
require('./Button-
|
|
25
|
-
require('./Checkbox-
|
|
26
|
-
require('./CompactAutocompleteSelect-
|
|
27
|
-
require('./CompactStarRating-
|
|
28
|
-
require('./CompactTextInput-
|
|
29
|
-
require('./MultiSelect-
|
|
30
|
-
require('./Radio-
|
|
31
|
-
require('./TextArea-
|
|
32
|
-
require('./TextInput-
|
|
33
|
-
require('./Switch-
|
|
34
|
-
var ContextMenuItem = require('./ContextMenuItem-
|
|
21
|
+
var ContextMenu = require('./ContextMenu-265b13dc.js');
|
|
22
|
+
require('./AssetPreviewTopBar-5636a6e9.js');
|
|
23
|
+
var ActionButton = require('./ActionButton-df714c16.js');
|
|
24
|
+
require('./Button-700afca4.js');
|
|
25
|
+
require('./Checkbox-89fb44b0.js');
|
|
26
|
+
require('./CompactAutocompleteSelect-394a96f2.js');
|
|
27
|
+
require('./CompactStarRating-c02080fd.js');
|
|
28
|
+
require('./CompactTextInput-1a216516.js');
|
|
29
|
+
require('./MultiSelect-f9fbcdff.js');
|
|
30
|
+
require('./Radio-ecf4226c.js');
|
|
31
|
+
require('./TextArea-40baf21d.js');
|
|
32
|
+
require('./TextInput-c1bb5c8c.js');
|
|
33
|
+
require('./Switch-76d7d568.js');
|
|
34
|
+
var ContextMenuItem = require('./ContextMenuItem-9008feb7.js');
|
|
35
35
|
|
|
36
36
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
37
37
|
|
|
@@ -155,14 +155,22 @@ var assetShapeWithLayout = defaultTheme._objectSpread2(defaultTheme._objectSprea
|
|
|
155
155
|
}).isRequired
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
var AssetGalleryBase$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
159
|
+
displayName: "AssetGalleryBasestyled__AssetGalleryBase",
|
|
160
|
+
componentId: "sc-1i613b5-0"
|
|
161
|
+
})(["position:relative;"]);
|
|
162
|
+
var GroupLabel = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
163
|
+
displayName: "AssetGalleryBasestyled__GroupLabel",
|
|
164
|
+
componentId: "sc-1i613b5-1"
|
|
165
|
+
})(["font-family:", ";", " display:flex;align-items:flex-end;position:absolute;padding-bottom:4px;box-sizing:border-box;"], function (props) {
|
|
161
166
|
return props.theme.primaryFontFamily;
|
|
162
167
|
}, function (props) {
|
|
163
168
|
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-700'));
|
|
164
169
|
});
|
|
165
|
-
var AssetGalleryCardBase = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
170
|
+
var AssetGalleryCardBase = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
171
|
+
displayName: "AssetGalleryBasestyled__AssetGalleryCardBase",
|
|
172
|
+
componentId: "sc-1i613b5-2"
|
|
173
|
+
})(["position:absolute;top:0;left:0;margin:0;z-index:1;will-change:transform,width,height;&:hover{z-index:2;}"]);
|
|
166
174
|
|
|
167
175
|
var css_248z = ".lazy-load-image-background.opacity {\n opacity: 0;\n}\n\n.lazy-load-image-background.opacity.lazy-load-image-loaded {\n opacity: 1;\n transition: opacity .3s;\n}\n";
|
|
168
176
|
defaultTheme.styleInject(css_248z);
|
|
@@ -182,37 +190,72 @@ var convertMsToHMS = function convertMsToHMS(ms) {
|
|
|
182
190
|
return hmsString;
|
|
183
191
|
};
|
|
184
192
|
|
|
185
|
-
var
|
|
186
|
-
|
|
193
|
+
var SummaryCard$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
194
|
+
displayName: "SummaryCardstyled__SummaryCard",
|
|
195
|
+
componentId: "sc-yp7o2-0"
|
|
196
|
+
})(["display:flex;flex-direction:column;border-radius:4px;width:", ";", ";", ""], function (props) {
|
|
187
197
|
return props.width ? "".concat(props.width, "px") : '100%';
|
|
188
198
|
}, function (props) {
|
|
189
199
|
return props.compact ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white')) : 'background: transparent';
|
|
190
200
|
}, function (props) {
|
|
191
201
|
return props.useBorder ? props.theme.themeProp('border', "1px solid ".concat(props.theme.getColor('gray-500')), "1px solid ".concat(props.theme.getColor('gray-300'))) : null;
|
|
192
202
|
});
|
|
193
|
-
var Gutter = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
203
|
+
var Gutter = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
204
|
+
displayName: "SummaryCardstyled__Gutter",
|
|
205
|
+
componentId: "sc-yp7o2-1"
|
|
206
|
+
})(["", " padding-bottom:", "px;"], function (props) {
|
|
194
207
|
if (props.renderAsMargin) {
|
|
195
|
-
return styled.css(
|
|
208
|
+
return styled.css(["margin-bottom:", "px;"], props.gutter || 8);
|
|
196
209
|
} else {
|
|
197
|
-
return styled.css(
|
|
210
|
+
return styled.css(["padding-bottom:", "px;"], props.gutter || 8);
|
|
198
211
|
}
|
|
199
212
|
}, function (props) {
|
|
200
213
|
return props.gutter || 8;
|
|
201
214
|
});
|
|
202
|
-
var Header = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
215
|
+
var Header = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
216
|
+
displayName: "SummaryCardstyled__Header",
|
|
217
|
+
componentId: "sc-yp7o2-2"
|
|
218
|
+
})(["display:flex;align-items:center;justify-content:space-between;padding:0 16px;"]);
|
|
219
|
+
var HeaderLeft = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
220
|
+
displayName: "SummaryCardstyled__HeaderLeft",
|
|
221
|
+
componentId: "sc-yp7o2-3"
|
|
222
|
+
})(["display:flex;align-items:center;justify-content:flex-start;> *{margin-right:4px;}"]);
|
|
223
|
+
var HeaderRight = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
224
|
+
displayName: "SummaryCardstyled__HeaderRight",
|
|
225
|
+
componentId: "sc-yp7o2-4"
|
|
226
|
+
})(["display:flex;align-items:center;justify-content:flex-end;> *{margin-left:4px;}"]);
|
|
227
|
+
var Title = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
228
|
+
displayName: "SummaryCardstyled__Title",
|
|
229
|
+
componentId: "sc-yp7o2-5"
|
|
230
|
+
})(["display:inline-block;padding:0 16px;font:normal normal 500 14px/19px Roboto;letter-spacing:0.28px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;", ";"], function (props) {
|
|
206
231
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'));
|
|
207
232
|
});
|
|
208
|
-
var Description = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme)
|
|
233
|
+
var Description = styled__default["default"].span.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
234
|
+
displayName: "SummaryCardstyled__Description",
|
|
235
|
+
componentId: "sc-yp7o2-6"
|
|
236
|
+
})(["padding:0 16px;text-align:left;font:normal normal normal 12px/16px Roboto;letter-spacing:0.24px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;", ";"], function (props) {
|
|
209
237
|
return props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'));
|
|
210
238
|
});
|
|
211
|
-
var Instruction = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
styled__default["default"]
|
|
239
|
+
var Instruction = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
240
|
+
displayName: "SummaryCardstyled__Instruction",
|
|
241
|
+
componentId: "sc-yp7o2-7"
|
|
242
|
+
})([""]);
|
|
243
|
+
var Footer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
244
|
+
displayName: "SummaryCardstyled__Footer",
|
|
245
|
+
componentId: "sc-yp7o2-8"
|
|
246
|
+
})(["display:flex;align-items:center;justify-content:space-between;padding:0 16px;"]);
|
|
247
|
+
var FooterLeft = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
248
|
+
displayName: "SummaryCardstyled__FooterLeft",
|
|
249
|
+
componentId: "sc-yp7o2-9"
|
|
250
|
+
})(["display:flex;align-items:center;justify-content:flex-start;> *{margin-right:4px;}"]);
|
|
251
|
+
var FooterRight = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
252
|
+
displayName: "SummaryCardstyled__FooterRight",
|
|
253
|
+
componentId: "sc-yp7o2-10"
|
|
254
|
+
})(["display:flex;align-items:center;justify-content:flex-end;> *{margin-left:4px;}"]);
|
|
255
|
+
styled__default["default"](react.FloatingArrow).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
256
|
+
displayName: "SummaryCardstyled__StyledFloatingArrow",
|
|
257
|
+
componentId: "sc-yp7o2-11"
|
|
258
|
+
})(["", ""], function (props) {
|
|
216
259
|
return props.theme.themeProp('fill', props.theme.getColor('gray-700'), props.theme.getColor('white'));
|
|
217
260
|
});
|
|
218
261
|
|
|
@@ -293,12 +336,20 @@ SummaryCard.defaultProps = {
|
|
|
293
336
|
activeSummaryCard: false
|
|
294
337
|
};
|
|
295
338
|
|
|
296
|
-
var
|
|
297
|
-
|
|
298
|
-
|
|
339
|
+
var AssetGalleryWrapper$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
340
|
+
displayName: "AssetGalleryCompactCardstyled__AssetGalleryWrapper",
|
|
341
|
+
componentId: "sc-1efhhw4-0"
|
|
342
|
+
})(["", ";"], function (props) {
|
|
343
|
+
return props.disabled && styled.css(["cursor:not-allowed;"]);
|
|
299
344
|
});
|
|
300
|
-
var Reference = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
301
|
-
|
|
345
|
+
var Reference = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
346
|
+
displayName: "AssetGalleryCompactCardstyled__Reference",
|
|
347
|
+
componentId: "sc-1efhhw4-1"
|
|
348
|
+
})(["width:100%;height:100%;"]);
|
|
349
|
+
var AssetGalleryCompactCard$2 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
350
|
+
displayName: "AssetGalleryCompactCardstyled__AssetGalleryCompactCard",
|
|
351
|
+
componentId: "sc-1efhhw4-2"
|
|
352
|
+
})(["display:block;height:100%;padding-left:", "px;padding-right:", "px;padding-top:", "px;box-sizing:border-box;cursor:pointer;", ";", ";", ";", " video{width:100%;height:100%;}.audio{display:flex;justify-content:center;svg{width:25%;}}"], function (props) {
|
|
302
353
|
return props.selected ? 1 : 0;
|
|
303
354
|
}, function (props) {
|
|
304
355
|
return props.selected ? 1 : 0;
|
|
@@ -309,36 +360,60 @@ var AssetGalleryCompactCard$2 = styled__default["default"].div.attrs(defaultThem
|
|
|
309
360
|
}, function (props) {
|
|
310
361
|
return props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-700'));
|
|
311
362
|
}, function (props) {
|
|
312
|
-
return props.disabled && styled.css(
|
|
363
|
+
return props.disabled && styled.css(["pointer-events:none;opacity:0.4;"]);
|
|
313
364
|
}, function (props) {
|
|
314
|
-
return props.extendedSelectMode && styled.css(
|
|
365
|
+
return props.extendedSelectMode && styled.css(["cursor:pointer;"]);
|
|
315
366
|
});
|
|
316
|
-
var Figure$1 = styled__default["default"].figure
|
|
317
|
-
|
|
367
|
+
var Figure$1 = styled__default["default"].figure.withConfig({
|
|
368
|
+
displayName: "AssetGalleryCompactCardstyled__Figure",
|
|
369
|
+
componentId: "sc-1efhhw4-3"
|
|
370
|
+
})(["display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;position:relative;margin:0;width:100%;height:100%;box-sizing:border-box;.lazy-load-image-background{display:block !important;}img{display:block;height:100%;width:100%;", "}"], function (props) {
|
|
371
|
+
return props.hasHeightAndWidth ? styled.css(["object-fit:cover;"]) : styled.css(["object-fit:contain;"]);
|
|
318
372
|
});
|
|
319
|
-
var FigureOverlayBackdrop$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
373
|
+
var FigureOverlayBackdrop$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
374
|
+
displayName: "AssetGalleryCompactCardstyled__FigureOverlayBackdrop",
|
|
375
|
+
componentId: "sc-1efhhw4-4"
|
|
376
|
+
})(["position:absolute;inset:0;opacity:", ";background-color:", ";"], function (props) {
|
|
320
377
|
return props.selected ? 0.6 : 0;
|
|
321
378
|
}, function (props) {
|
|
322
379
|
return props.selected ? '#ACCEF7' : 'transparent';
|
|
323
380
|
});
|
|
324
|
-
var Overlay$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
325
|
-
|
|
326
|
-
|
|
381
|
+
var Overlay$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
382
|
+
displayName: "AssetGalleryCompactCardstyled__Overlay",
|
|
383
|
+
componentId: "sc-1efhhw4-5"
|
|
384
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;"]);
|
|
385
|
+
var OverlayBackdrop$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
386
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayBackdrop",
|
|
387
|
+
componentId: "sc-1efhhw4-6"
|
|
388
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;opacity:0;transition:opacity 220ms;", " ", " ", ":hover &{opacity:1;}"], function (props) {
|
|
389
|
+
return !props.selected ? styled.css(["background:radial-gradient( ellipse at center,rgba(0,0,0,0.3) 27%,rgba(0,0,0,0.5) 60%,rgba(0,0,0,0.7) 90% );"]) : null;
|
|
327
390
|
}, function (props) {
|
|
328
|
-
return (props.selected || props.softSelected) && styled.css(
|
|
391
|
+
return (props.selected || props.softSelected) && styled.css(["opacity:1;"]);
|
|
329
392
|
}, Overlay$1);
|
|
330
|
-
var OverlayInfo$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
393
|
+
var OverlayInfo$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
394
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayInfo",
|
|
395
|
+
componentId: "sc-1efhhw4-7"
|
|
396
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;justify-content:space-between;padding:15px 50px 10px 12px;color:", ";& span{overflow:hidden;word-wrap:break-word;}"], function (props) {
|
|
331
397
|
return props.theme.getColor('gray-100');
|
|
332
398
|
});
|
|
333
|
-
var OverlayCompleted = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
399
|
+
var OverlayCompleted = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
400
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayCompleted",
|
|
401
|
+
componentId: "sc-1efhhw4-8"
|
|
402
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;transition:border-color 120ms;border:3px solid;", ";"], function (props) {
|
|
334
403
|
if (props.softSelected) return null;
|
|
335
404
|
return props.theme.themeProp('border-color', props.theme.getColor('emerald-500'), polished.rgba(props.theme.getColor('emerald-500'), 0.7));
|
|
336
405
|
});
|
|
337
|
-
var OverlayHasError = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
406
|
+
var OverlayHasError = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
407
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayHasError",
|
|
408
|
+
componentId: "sc-1efhhw4-9"
|
|
409
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;transition:border-color 120ms;border:3px solid;", ""], function (props) {
|
|
338
410
|
if (props.softSelected) return null;
|
|
339
411
|
return props.theme.themeProp('border-color', props.theme.getColor('red-600'), polished.rgba(props.theme.getColor('red-500'), 0.7));
|
|
340
412
|
});
|
|
341
|
-
var OverlaySelected$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
413
|
+
var OverlaySelected$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
414
|
+
displayName: "AssetGalleryCompactCardstyled__OverlaySelected",
|
|
415
|
+
componentId: "sc-1efhhw4-10"
|
|
416
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;transition:border-color 120ms;border-style:solid;border-width:3px;", ";"], function (props) {
|
|
342
417
|
if (props.softSelected) {
|
|
343
418
|
return props.theme.themeProp('border-color', polished.rgba(props.theme.getColor('gray-100'), 0.5), polished.rgba(props.theme.getColor('gray-700'), 0.5));
|
|
344
419
|
}
|
|
@@ -347,40 +422,75 @@ var OverlaySelected$1 = styled__default["default"].div.attrs(defaultTheme.applyD
|
|
|
347
422
|
}
|
|
348
423
|
return props.theme.themeProp('border-color', 'transparent', 'transparent');
|
|
349
424
|
});
|
|
350
|
-
var OverlayInfoTop$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
351
|
-
|
|
425
|
+
var OverlayInfoTop$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
426
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayInfoTop",
|
|
427
|
+
componentId: "sc-1efhhw4-11"
|
|
428
|
+
})(["position:absolute;left:0;right:0;top:0;padding:8px;display:flex;"]);
|
|
429
|
+
var OverlayInfoTopActions$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
430
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayInfoTopActions",
|
|
431
|
+
componentId: "sc-1efhhw4-12"
|
|
432
|
+
})(["position:absolute;top:0;right:0;padding:4px;display:flex;flex-direction:column;justify-content:space-between;transition:opacity 220ms;z-index:99999;", " opacity:", ";"], function (props) {
|
|
352
433
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700'));
|
|
353
434
|
}, function (props) {
|
|
354
435
|
return props.isOverlayHovered ? 1 : 0;
|
|
355
436
|
});
|
|
356
|
-
var OverlayInfoTopLeft = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
437
|
+
var OverlayInfoTopLeft = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
438
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayInfoTopLeft",
|
|
439
|
+
componentId: "sc-1efhhw4-13"
|
|
440
|
+
})(["opacity:1;display:", ";", ":hover &{opacity:0;}"], function (props) {
|
|
357
441
|
return props !== null && props !== void 0 && props.collapseExtraInfo ? 'none' : 'block';
|
|
358
442
|
}, Overlay$1);
|
|
359
|
-
var OverlayInfoTopWarning$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
443
|
+
var OverlayInfoTopWarning$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
444
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayInfoTopWarning",
|
|
445
|
+
componentId: "sc-1efhhw4-14"
|
|
446
|
+
})(["margin-left:auto;height:24px;width:24px;border-radius:50%;box-sizing:border-box;padding:", ";background-color:", ";opacity:1;svg{width:100%;color:", ";}", ":hover &{opacity:0;}"], function (props) {
|
|
360
447
|
return props.type === 'error' ? 0 : '3px 4px';
|
|
361
448
|
}, function (props) {
|
|
362
449
|
return props.type === 'error' ? props.theme.getColor('red-500') : props.theme.getColor('gray-100');
|
|
363
450
|
}, function (props) {
|
|
364
451
|
return props.type === 'error' ? props.theme.getColor('gray-100') : props.theme.getColor('gray-700');
|
|
365
452
|
}, Overlay$1);
|
|
366
|
-
var OverlayInfoBottom$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
367
|
-
|
|
453
|
+
var OverlayInfoBottom$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
454
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayInfoBottom",
|
|
455
|
+
componentId: "sc-1efhhw4-15"
|
|
456
|
+
})(["position:absolute;left:0;right:0;bottom:0;padding:8px;display:flex;"]);
|
|
457
|
+
var OverlayInfoBottomSelectButton$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
458
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayInfoBottomSelectButton",
|
|
459
|
+
componentId: "sc-1efhhw4-16"
|
|
460
|
+
})(["opacity:", ";flex-shrink:0;cursor:pointer;transition:opacity 220ms;height:24px;> svg{width:24px;height:24px;transition:opacity 120ms;opacity:", ";}", ":hover &{opacity:1;}"], function (props) {
|
|
368
461
|
return props.selected ? 1 : 0;
|
|
369
462
|
}, function (props) {
|
|
370
463
|
return props.selected ? 1 : 0.5;
|
|
371
464
|
}, Overlay$1);
|
|
372
|
-
var OverlayInfoBottomMediaIcon$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
465
|
+
var OverlayInfoBottomMediaIcon$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
466
|
+
displayName: "AssetGalleryCompactCardstyled__OverlayInfoBottomMediaIcon",
|
|
467
|
+
componentId: "sc-1efhhw4-17"
|
|
468
|
+
})(["margin-left:auto;opacity:1;", ":hover &{opacity:0;}"], Overlay$1);
|
|
469
|
+
var ConsumerDefinedOverlay$1 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
470
|
+
displayName: "AssetGalleryCompactCardstyled__ConsumerDefinedOverlay",
|
|
471
|
+
componentId: "sc-1efhhw4-18"
|
|
472
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;"]);
|
|
473
|
+
styled__default["default"].div.withConfig({
|
|
474
|
+
displayName: "AssetGalleryCompactCardstyled__Fragment",
|
|
475
|
+
componentId: "sc-1efhhw4-19"
|
|
476
|
+
})(["margin:4px;"]);
|
|
477
|
+
styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
478
|
+
displayName: "AssetGalleryCompactCardstyled__ActionTitle",
|
|
479
|
+
componentId: "sc-1efhhw4-20"
|
|
480
|
+
})(["", " padding:4px 8px;border-radius:4px;"], function (props) {
|
|
376
481
|
return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white'));
|
|
377
482
|
});
|
|
378
|
-
var StyledFloatingArrow$1 = styled__default["default"](react.FloatingArrow).attrs(defaultTheme.applyDefaultTheme)
|
|
483
|
+
var StyledFloatingArrow$1 = styled__default["default"](react.FloatingArrow).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
484
|
+
displayName: "AssetGalleryCompactCardstyled__StyledFloatingArrow",
|
|
485
|
+
componentId: "sc-1efhhw4-21"
|
|
486
|
+
})(["", ""], function (props) {
|
|
379
487
|
return props.theme.themeProp('fill', props.theme.getColor('gray-700'), props.theme.getColor('white'));
|
|
380
488
|
});
|
|
381
489
|
|
|
382
|
-
var
|
|
383
|
-
|
|
490
|
+
var AssetActions = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
491
|
+
displayName: "AssetActionsBasestyled__AssetActions",
|
|
492
|
+
componentId: "sc-1h2xr12-0"
|
|
493
|
+
})(["font-family:", ";font-size:1rem;font-weight:500;display:flex;flex-direction:column;padding:2px;gap:8px;"], function (props) {
|
|
384
494
|
return props.theme.primaryFontFamily;
|
|
385
495
|
});
|
|
386
496
|
|
|
@@ -487,10 +597,14 @@ var AssetGalleryCompactCard = function AssetGalleryCompactCard(props) {
|
|
|
487
597
|
}),
|
|
488
598
|
isMounted = _useTransitionStyles.isMounted,
|
|
489
599
|
styles = _useTransitionStyles.styles;
|
|
490
|
-
var hover = react.useHover(context
|
|
600
|
+
var hover = react.useHover(context, {
|
|
601
|
+
restMs: 100
|
|
602
|
+
});
|
|
491
603
|
var dismiss = react.useDismiss(context, {
|
|
492
604
|
referencePress: true,
|
|
493
|
-
ancestorScroll: true
|
|
605
|
+
ancestorScroll: true,
|
|
606
|
+
windowScroll: true,
|
|
607
|
+
windowBlur: true
|
|
494
608
|
});
|
|
495
609
|
var _useInteractions = react.useInteractions([dismiss, hover]),
|
|
496
610
|
getReferenceProps = _useInteractions.getReferenceProps,
|
|
@@ -742,7 +856,7 @@ var AssetGalleryCompactCard = function AssetGalleryCompactCard(props) {
|
|
|
742
856
|
}), selectable && React__default["default"].createElement(OverlaySelected$1, {
|
|
743
857
|
selected: selected,
|
|
744
858
|
softSelected: softSelected
|
|
745
|
-
}), isOpen && isMounted && activeSummaryCard && !isAnySubActionsOpened && React__default["default"].createElement("div", defaultTheme._extends({
|
|
859
|
+
}), isOpen && isOverlayHovered && isMounted && activeSummaryCard && !isAnySubActionsOpened && React__default["default"].createElement("div", defaultTheme._extends({
|
|
746
860
|
ref: refs.setFloating,
|
|
747
861
|
style: floatingStyles
|
|
748
862
|
}, getFloatingProps()), React__default["default"].createElement("div", {
|
|
@@ -770,7 +884,6 @@ AssetGalleryCompactCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
770
884
|
activeSummaryCard: defaultTheme.PropTypes.bool,
|
|
771
885
|
displayIcon: defaultTheme.PropTypes.oneOf(['versions', 'verifications', ''])
|
|
772
886
|
} : {};
|
|
773
|
-
AssetGalleryCompactCard.defaultProps = {};
|
|
774
887
|
var AssetGalleryCompactCard$1 = reactLazyLoadImageComponent.trackWindowScroll(React__default["default"].memo(AssetGalleryCompactCard, function (prevProps, nextProps) {
|
|
775
888
|
var reactiveProps = ['selectable', 'selected', 'extendedSelectMode', 'softSelected', 'asset.previewUrl', 'asset.overlay', 'hasHeightAndWidth', 'collapseExtraInfo'];
|
|
776
889
|
return reactiveProps.every(function (propKey) {
|
|
@@ -778,11 +891,16 @@ var AssetGalleryCompactCard$1 = reactLazyLoadImageComponent.trackWindowScroll(Re
|
|
|
778
891
|
});
|
|
779
892
|
}));
|
|
780
893
|
|
|
781
|
-
var
|
|
782
|
-
|
|
783
|
-
|
|
894
|
+
var AssetGalleryWrapper = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
895
|
+
displayName: "AssetGalleryGridCardstyled__AssetGalleryWrapper",
|
|
896
|
+
componentId: "sc-j1t2nm-0"
|
|
897
|
+
})(["", ";"], function (props) {
|
|
898
|
+
return props.disabled && styled.css(["cursor:not-allowed;"]);
|
|
784
899
|
});
|
|
785
|
-
var AssetGalleryGridCard$2 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
900
|
+
var AssetGalleryGridCard$2 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
901
|
+
displayName: "AssetGalleryGridCardstyled__AssetGalleryGridCard",
|
|
902
|
+
componentId: "sc-j1t2nm-1"
|
|
903
|
+
})(["display:block;position:relative;height:100%;margin:0;box-sizing:border-box;border-width:", "px;border-style:solid;text-decoration:none;cursor:pointer;", " ", ";", " ", ";"], function (props) {
|
|
786
904
|
var selected = props.selected,
|
|
787
905
|
softSelected = props.softSelected,
|
|
788
906
|
hasError = props.hasError,
|
|
@@ -791,9 +909,9 @@ var AssetGalleryGridCard$2 = styled__default["default"].div.attrs(defaultTheme.a
|
|
|
791
909
|
}, function (props) {
|
|
792
910
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700'));
|
|
793
911
|
}, function (props) {
|
|
794
|
-
return props.disabled && styled.css(
|
|
912
|
+
return props.disabled && styled.css(["pointer-events:none;opacity:0.4;"]);
|
|
795
913
|
}, function (props) {
|
|
796
|
-
return props.extendedSelectMode && styled.css(
|
|
914
|
+
return props.extendedSelectMode && styled.css(["cursor:pointer;"]);
|
|
797
915
|
}, function (props) {
|
|
798
916
|
if (props.softSelected) {
|
|
799
917
|
return props.theme.themeProp('border-color', polished.rgba(props.theme.getColor('gray-100'), 0.5), polished.rgba(props.theme.getColor('gray-700'), 0.5));
|
|
@@ -809,51 +927,102 @@ var AssetGalleryGridCard$2 = styled__default["default"].div.attrs(defaultTheme.a
|
|
|
809
927
|
}
|
|
810
928
|
return props.theme.themeProp('border-color', props.theme.getColor('gray-700'), props.theme.getColor('gray-300'));
|
|
811
929
|
});
|
|
812
|
-
var ContentWrapper = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
930
|
+
var ContentWrapper = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
931
|
+
displayName: "AssetGalleryGridCardstyled__ContentWrapper",
|
|
932
|
+
componentId: "sc-j1t2nm-2"
|
|
933
|
+
})(["display:flex;flex-direction:column;box-sizing:border-box;padding:", "px;padding-top:35px;height:100%;"], function (props) {
|
|
813
934
|
return props.selected || props.softSelected ? 4 : 0;
|
|
814
935
|
});
|
|
815
|
-
var Asset = styled__default["default"].div
|
|
816
|
-
|
|
817
|
-
|
|
936
|
+
var Asset = styled__default["default"].div.withConfig({
|
|
937
|
+
displayName: "AssetGalleryGridCardstyled__Asset",
|
|
938
|
+
componentId: "sc-j1t2nm-3"
|
|
939
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:flex-start;position:relative;padding:0 36px;min-height:200px;box-sizing:border-box;video{display:block;}.audio{display:flex;justify-content:center;svg{width:25%;}}"]);
|
|
940
|
+
var Figure = styled__default["default"].figure.withConfig({
|
|
941
|
+
displayName: "AssetGalleryGridCardstyled__Figure",
|
|
942
|
+
componentId: "sc-j1t2nm-4"
|
|
943
|
+
})(["position:relative;display:flex;flex-direction:column;justify-content:flex-start;margin:0;img,video,.audio{display:block;max-height:200px;width:100%;box-sizing:border-box;", "}.audio{display:flex;height:200px;justify-content:center;svg{width:25%;}}"], function (props) {
|
|
944
|
+
return props.hasHeightAndWidth ? styled.css(["object-fit:cover;"]) : styled.css(["object-fit:contain;"]);
|
|
818
945
|
});
|
|
819
|
-
var FigureOverlayBackdrop = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
946
|
+
var FigureOverlayBackdrop = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
947
|
+
displayName: "AssetGalleryGridCardstyled__FigureOverlayBackdrop",
|
|
948
|
+
componentId: "sc-j1t2nm-5"
|
|
949
|
+
})(["position:absolute;inset:0;opacity:", ";background-color:", ";"], function (props) {
|
|
820
950
|
return props.selected ? 0.6 : 0;
|
|
821
951
|
}, function (props) {
|
|
822
952
|
return props.selected ? '#ACCEF7' : 'transparent';
|
|
823
953
|
});
|
|
824
|
-
var Overlay = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
825
|
-
|
|
826
|
-
|
|
954
|
+
var Overlay = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
955
|
+
displayName: "AssetGalleryGridCardstyled__Overlay",
|
|
956
|
+
componentId: "sc-j1t2nm-6"
|
|
957
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;"]);
|
|
958
|
+
var OverlayBackdrop = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
959
|
+
displayName: "AssetGalleryGridCardstyled__OverlayBackdrop",
|
|
960
|
+
componentId: "sc-j1t2nm-7"
|
|
961
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;opacity:0;transition:opacity 220ms;", " ", " ", ":hover &{opacity:1;}", ":hover &{opacity:1;}"], function (props) {
|
|
962
|
+
return !props.selected ? styled.css(["background:radial-gradient( ellipse at center,rgba(0,0,0,0.3) 27%,rgba(0,0,0,0.5) 60%,rgba(0,0,0,0.7) 90% );"]) : null;
|
|
827
963
|
}, function (props) {
|
|
828
|
-
return (props.selected || props.softSelected) && styled.css(
|
|
964
|
+
return (props.selected || props.softSelected) && styled.css(["opacity:1;"]);
|
|
829
965
|
}, Overlay, AssetGalleryGridCard$2);
|
|
830
|
-
var OverlayInfo = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
966
|
+
var OverlayInfo = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
967
|
+
displayName: "AssetGalleryGridCardstyled__OverlayInfo",
|
|
968
|
+
componentId: "sc-j1t2nm-8"
|
|
969
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;justify-content:space-between;padding:15px 12px 10px;color:", ";"], function (props) {
|
|
831
970
|
return props.theme.getColor('gray-100');
|
|
832
971
|
});
|
|
833
|
-
var OverlaySelected = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
972
|
+
var OverlaySelected = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
973
|
+
displayName: "AssetGalleryGridCardstyled__OverlaySelected",
|
|
974
|
+
componentId: "sc-j1t2nm-9"
|
|
975
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;"]);
|
|
976
|
+
var OverlayInfoTop = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
977
|
+
displayName: "AssetGalleryGridCardstyled__OverlayInfoTop",
|
|
978
|
+
componentId: "sc-j1t2nm-10"
|
|
979
|
+
})(["position:absolute;left:0;right:0;top:0;padding:8px;display:flex;"]);
|
|
980
|
+
var OverlayInfoTopVersions = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
981
|
+
displayName: "AssetGalleryGridCardstyled__OverlayInfoTopVersions",
|
|
982
|
+
componentId: "sc-j1t2nm-11"
|
|
983
|
+
})(["opacity:1;", ":hover &{opacity:0;}"], AssetGalleryGridCard$2);
|
|
984
|
+
var OverlayInfoTopWarning = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
985
|
+
displayName: "AssetGalleryGridCardstyled__OverlayInfoTopWarning",
|
|
986
|
+
componentId: "sc-j1t2nm-12"
|
|
987
|
+
})(["margin-left:auto;height:24px;width:24px;border-radius:50%;box-sizing:border-box;padding:", ";background-color:", ";opacity:1;svg{width:100%;color:", ";}", ":hover &{opacity:0;}"], function (props) {
|
|
837
988
|
return props.type === 'error' ? 0 : '4px';
|
|
838
989
|
}, function (props) {
|
|
839
990
|
return props.type === 'error' ? props.theme.getColor('red-500') : props.theme.getColor('gray-100');
|
|
840
991
|
}, function (props) {
|
|
841
992
|
return props.type === 'error' ? props.theme.getColor('gray-100') : props.theme.getColor('gray-700');
|
|
842
993
|
}, AssetGalleryGridCard$2);
|
|
843
|
-
var OverlayInfoTopActions = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
994
|
+
var OverlayInfoTopActions = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
995
|
+
displayName: "AssetGalleryGridCardstyled__OverlayInfoTopActions",
|
|
996
|
+
componentId: "sc-j1t2nm-13"
|
|
997
|
+
})(["position:absolute;top:0;right:0;padding:4px;display:flex;flex-direction:column;justify-content:space-between;transition:opacity 220ms;z-index:99999;", " opacity:", ";"], function (props) {
|
|
844
998
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700'));
|
|
845
999
|
}, function (props) {
|
|
846
1000
|
return props.isCardHovered ? 1 : 0;
|
|
847
1001
|
});
|
|
848
|
-
var OverlayInfoBottom = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
849
|
-
|
|
1002
|
+
var OverlayInfoBottom = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1003
|
+
displayName: "AssetGalleryGridCardstyled__OverlayInfoBottom",
|
|
1004
|
+
componentId: "sc-j1t2nm-14"
|
|
1005
|
+
})(["position:absolute;left:0;right:0;bottom:0;padding:8px;display:flex;"]);
|
|
1006
|
+
var OverlayInfoBottomSelectButton = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1007
|
+
displayName: "AssetGalleryGridCardstyled__OverlayInfoBottomSelectButton",
|
|
1008
|
+
componentId: "sc-j1t2nm-15"
|
|
1009
|
+
})(["opacity:", ";flex-shrink:0;cursor:pointer;transition:opacity 220ms;> svg{width:23px;height:100%;transition:opacity 120ms;opacity:", ";}", ":hover &{opacity:1;}", ":hover &{opacity:1;}"], function (props) {
|
|
850
1010
|
return props.selected ? 1 : 0;
|
|
851
1011
|
}, function (props) {
|
|
852
1012
|
return props.selected ? 1 : 0.5;
|
|
853
1013
|
}, Overlay, AssetGalleryGridCard$2);
|
|
854
|
-
var OverlayInfoBottomMediaIcon = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
855
|
-
|
|
856
|
-
|
|
1014
|
+
var OverlayInfoBottomMediaIcon = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1015
|
+
displayName: "AssetGalleryGridCardstyled__OverlayInfoBottomMediaIcon",
|
|
1016
|
+
componentId: "sc-j1t2nm-16"
|
|
1017
|
+
})(["margin-left:auto;opacity:1;", ":hover &{opacity:0;}"], AssetGalleryGridCard$2);
|
|
1018
|
+
var ConsumerDefinedOverlay = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1019
|
+
displayName: "AssetGalleryGridCardstyled__ConsumerDefinedOverlay",
|
|
1020
|
+
componentId: "sc-j1t2nm-17"
|
|
1021
|
+
})(["position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;"]);
|
|
1022
|
+
var Fragment = styled__default["default"].div.withConfig({
|
|
1023
|
+
displayName: "AssetGalleryGridCardstyled__Fragment",
|
|
1024
|
+
componentId: "sc-j1t2nm-18"
|
|
1025
|
+
})(["margin:4px;"]);
|
|
857
1026
|
|
|
858
1027
|
var _excluded$3 = ["component", "asset"],
|
|
859
1028
|
_excluded2 = ["component", "className", "subActions", "isSubActionsOpened"];
|
|
@@ -1732,11 +1901,16 @@ AssetGallery.defaultProps = {
|
|
|
1732
1901
|
displayIcon: ''
|
|
1733
1902
|
};
|
|
1734
1903
|
|
|
1735
|
-
var
|
|
1736
|
-
|
|
1904
|
+
var AssetAction$2 = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1905
|
+
displayName: "AssetActionstyled__AssetAction",
|
|
1906
|
+
componentId: "sc-ccistm-0"
|
|
1907
|
+
})(["font-family:", ";"], function (props) {
|
|
1737
1908
|
return props.theme.primaryFontFamily;
|
|
1738
1909
|
});
|
|
1739
|
-
var AssetActionButton = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
1910
|
+
var AssetActionButton = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1911
|
+
displayName: "AssetActionstyled__AssetActionButton",
|
|
1912
|
+
componentId: "sc-ccistm-1"
|
|
1913
|
+
})(["border-radius:50%;width:", ";height:", ";cursor:pointer;display:flex;justify-content:center;align-items:center;box-shadow:0px 3px 6px rgba(0,0,0,0.16);", ";svg{pointer-events:none;width:", ";height:", ";", ";}"], function (props) {
|
|
1740
1914
|
return props.actionWidthHeight ? "".concat(props.actionWidthHeight[0], "px") : 'auto';
|
|
1741
1915
|
}, function (props) {
|
|
1742
1916
|
return props.actionWidthHeight ? "".concat(props.actionWidthHeight[1], "px") : 'auto';
|
|
@@ -1749,13 +1923,22 @@ var AssetActionButton = styled__default["default"].div.attrs(defaultTheme.applyD
|
|
|
1749
1923
|
}, function (props) {
|
|
1750
1924
|
return props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('white'));
|
|
1751
1925
|
});
|
|
1752
|
-
var ActionTitle = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
1926
|
+
var ActionTitle = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1927
|
+
displayName: "AssetActionstyled__ActionTitle",
|
|
1928
|
+
componentId: "sc-ccistm-2"
|
|
1929
|
+
})(["font-size:14px;border-radius:4px;padding:8px 12px;white-space:nowrap;color:white;background:", ";"], function (props) {
|
|
1753
1930
|
return props.theme.getColor('gray-700');
|
|
1754
1931
|
});
|
|
1755
|
-
var StyledFloatingArrow = styled__default["default"](react.FloatingArrow).attrs(defaultTheme.applyDefaultTheme)
|
|
1932
|
+
var StyledFloatingArrow = styled__default["default"](react.FloatingArrow).attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1933
|
+
displayName: "AssetActionstyled__StyledFloatingArrow",
|
|
1934
|
+
componentId: "sc-ccistm-3"
|
|
1935
|
+
})(["fill:", ";"], function (props) {
|
|
1756
1936
|
return props.theme.getColor('gray-700');
|
|
1757
1937
|
});
|
|
1758
|
-
var Floating = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)
|
|
1938
|
+
var Floating = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme).withConfig({
|
|
1939
|
+
displayName: "AssetActionstyled__Floating",
|
|
1940
|
+
componentId: "sc-ccistm-4"
|
|
1941
|
+
})(["pointer-events:none;"]);
|
|
1759
1942
|
|
|
1760
1943
|
var _excluded = ["action", "asset", "itemKey"];
|
|
1761
1944
|
var AssetAction = React__default["default"].forwardRef(function AssetAction(_ref, forwardedRef) {
|