@ntbjs/react-components 2.0.0-rc.28 → 2.0.0-rc.29

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.
Files changed (26) hide show
  1. package/build/AssetAction-98d76ce0.js +133 -0
  2. package/build/AssetActionsBase-9e4c0735.js +38 -0
  3. package/build/{AssetGallery-f67393d4.js → AssetGallery-63f721ec.js} +12 -374
  4. package/build/{widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js → AssetPreviewTopBar-acd6353d.js} +4 -4
  5. package/build/{Button-179a2fe4.js → Button-73eb8516.js} +1 -1
  6. package/build/{widgets/ContextMenu/ContextMenu.js → ContextMenu-0f7134e4.js} +3 -3
  7. package/build/{widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js → ContextMenuItem-ea411141.js} +3 -3
  8. package/build/{widgets/InfoCard/InfoCard.js → InfoCard-c98b6f5a.js} +4 -4
  9. package/build/{widgets/Instructions/Instructions.js → Instructions-bfd28cea.js} +6 -25
  10. package/build/{widgets/ProgressBar/ProgressBar.js → ProgressBar-bc4a4a7e.js} +4 -4
  11. package/build/SummaryCard-24040650.js +223 -0
  12. package/build/inputs/Button/index.js +2 -2
  13. package/build/inputs/index.js +2 -2
  14. package/build/widgets/AssetAction/index.js +7 -0
  15. package/build/widgets/AssetActionsBase/index.js +8 -0
  16. package/build/widgets/AssetGallery/{AssetGallery.js → index.js} +8 -5
  17. package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +6 -0
  18. package/build/widgets/ContextMenu/ContextMenuItem/index.js +5 -0
  19. package/build/widgets/ContextMenu/index.js +5 -0
  20. package/build/widgets/InfoCard/index.js +6 -0
  21. package/build/widgets/Instructions/index.js +28 -0
  22. package/build/widgets/ProgressBar/index.js +6 -0
  23. package/build/widgets/SummaryCard/index.js +19 -0
  24. package/build/widgets/index.js +11 -8
  25. package/package.json +1 -1
  26. /package/build/widgets/ContextMenu/ContextMenuItemsGroup/{ContextMenuItemsGroup.js → index.js} +0 -0
@@ -0,0 +1,133 @@
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
2
+ import React__default, { useRef, useState, useCallback } from 'react';
3
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
4
+ import styled from 'styled-components';
5
+ import { FloatingArrow, useFloating, autoUpdate, offset, flip, shift, arrow, useTransitionStyles, useHover, useDismiss, useInteractions } from '@floating-ui/react';
6
+ import { isFunction } from 'lodash';
7
+
8
+ const AssetAction$1 = styled.div.attrs(applyDefaultTheme)`
9
+ font-family: ${props => props.theme.primaryFontFamily};
10
+ `;
11
+ const AssetActionButton = styled.div.attrs(applyDefaultTheme)`
12
+ border-radius: 50%;
13
+ width: ${props => props.actionWidthHeight ? `${props.actionWidthHeight[0]}px` : 'auto'};
14
+ height: ${props => props.actionWidthHeight ? `${props.actionWidthHeight[1]}px` : 'auto'};
15
+ cursor: pointer;
16
+ display: flex;
17
+ justify-content: center;
18
+ align-items: center;
19
+ box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
20
+ ${props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('white'))};
21
+ svg {
22
+ pointer-events: none;
23
+ width: ${props => props.actionWidthHeight ? `${props.actionWidthHeight[0] - 14}px` : 'auto'};
24
+ height: ${props => props.actionWidthHeight ? `${props.actionWidthHeight[1] - 14}px` : 'auto'};
25
+ ${props => props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('white'))};
26
+ }
27
+ `;
28
+ const ActionTitle = styled.div.attrs(applyDefaultTheme)`
29
+ font-size: 14px;
30
+ border-radius: 4px;
31
+ padding: 8px 12px;
32
+ white-space: nowrap;
33
+ color: white;
34
+ background: ${props => props.theme.getColor('gray-700')};
35
+ `;
36
+ const StyledFloatingArrow = styled(FloatingArrow).attrs(applyDefaultTheme)`
37
+ fill: ${props => props.theme.getColor('gray-700')};
38
+ `;
39
+ const Floating = styled.div.attrs(applyDefaultTheme)`
40
+ pointer-events: none;
41
+ `;
42
+
43
+ const AssetAction = React__default.forwardRef(function AssetAction({
44
+ action,
45
+ asset,
46
+ itemKey,
47
+ ...props
48
+ }, forwardedRef) {
49
+ const ARROW_WIDTH = 10;
50
+ const ARROW_HEIGHT = 5;
51
+ const GAP = 3;
52
+ const arrowRef = useRef(null);
53
+ const [isOpen, setIsOpen] = useState(false);
54
+ const [placement] = useState('bottom');
55
+ const {
56
+ refs,
57
+ floatingStyles,
58
+ context
59
+ } = useFloating({
60
+ placement,
61
+ open: isOpen,
62
+ onOpenChange: setIsOpen,
63
+ whileElementsMounted: autoUpdate,
64
+ middleware: [offset(ARROW_HEIGHT + GAP), flip({
65
+ padding: 5
66
+ }), shift({
67
+ padding: 5
68
+ }), arrow({
69
+ element: arrowRef
70
+ })]
71
+ });
72
+ const {
73
+ isMounted,
74
+ styles
75
+ } = useTransitionStyles(context, {
76
+ initial: {
77
+ transform: 'translateY(-8px)',
78
+ opacity: 0
79
+ },
80
+ duration: {
81
+ open: 200,
82
+ close: 100
83
+ }
84
+ });
85
+ const hover = useHover(context);
86
+ const dismiss = useDismiss(context, {
87
+ referencePress: true
88
+ });
89
+ const {
90
+ getReferenceProps,
91
+ getFloatingProps
92
+ } = useInteractions([dismiss, hover]);
93
+ const onActionClick = useCallback((e, action) => {
94
+ e.preventDefault();
95
+ e.stopPropagation();
96
+ if (isFunction(action?.onClick)) {
97
+ action.onClick(asset);
98
+ }
99
+ }, [action]);
100
+ return React__default.createElement(AssetAction$1, _extends({
101
+ ref: forwardedRef
102
+ }, props), React__default.createElement(AssetActionButton, _extends({
103
+ key: itemKey,
104
+ ref: refs.setReference
105
+ }, getReferenceProps(), {
106
+ onClick: e => onActionClick(e, action.onClick(asset), itemKey),
107
+ actionWidthHeight: action.actionWidthHeight
108
+ }), action.icon), isOpen && isMounted && React__default.createElement(Floating, _extends({
109
+ className: "floating",
110
+ ref: refs.setFloating,
111
+ style: floatingStyles
112
+ }, getFloatingProps()), React__default.createElement(ActionTitle, {
113
+ style: styles
114
+ }, action.title), React__default.createElement(StyledFloatingArrow, {
115
+ ref: arrowRef,
116
+ context: context,
117
+ width: ARROW_WIDTH,
118
+ height: ARROW_HEIGHT
119
+ })));
120
+ });
121
+ AssetAction.propTypes = process.env.NODE_ENV !== "production" ? {
122
+ action: PropTypes.shape({
123
+ icon: PropTypes.node,
124
+ onClick: PropTypes.func,
125
+ actionWidthHeight: PropTypes.arrayOf(PropTypes.number),
126
+ title: PropTypes.string
127
+ }),
128
+ asset: PropTypes.object,
129
+ itemKey: PropTypes.string
130
+ } : {};
131
+ AssetAction.defaultProps = {};
132
+
133
+ export { AssetAction as A };
@@ -0,0 +1,38 @@
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
2
+ import React__default from 'react';
3
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
4
+ import styled from 'styled-components';
5
+ import { A as AssetAction } from './AssetAction-98d76ce0.js';
6
+
7
+ const AssetActions = styled.div.attrs(applyDefaultTheme)`
8
+ font-family: ${props => props.theme.primaryFontFamily};
9
+ font-size: 1rem;
10
+ font-weight: 500;
11
+ display: flex;
12
+ flex-direction: column;
13
+ padding: 2px;
14
+ gap: 8px;
15
+ `;
16
+
17
+ const AssetActionsBase = React__default.forwardRef(function AssetActionsBase({
18
+ actions,
19
+ asset,
20
+ ...props
21
+ }, forwardedRef) {
22
+ const assetActions = actions.map((action, index) => React__default.createElement(AssetAction, _extends({
23
+ key: `index_${action.title}`,
24
+ ref: forwardedRef
25
+ }, props, {
26
+ action: action,
27
+ asset: asset,
28
+ itemKey: `${index}-${action.title}`
29
+ })));
30
+ return React__default.createElement(AssetActions, null, assetActions);
31
+ });
32
+ AssetActionsBase.propTypes = process.env.NODE_ENV !== "production" ? {
33
+ actions: PropTypes.arrayOf(PropTypes.object),
34
+ asset: PropTypes.object
35
+ } : {};
36
+ AssetActionsBase.defaultProps = {};
37
+
38
+ export { AssetActionsBase as A };
@@ -1,24 +1,26 @@
1
1
  import { _ as _extends$4 } from './_rollupPluginBabelHelpers-c245b26a.js';
2
- import { isFunction, get, mapKeys, omit, isEmpty, throttle } from 'lodash';
2
+ import { get, isFunction, mapKeys, omit, isEmpty, throttle } from 'lodash';
3
3
  import { P as PropTypes, a as applyDefaultTheme, s as styleInject } from './defaultTheme-1bcc2541.js';
4
4
  import * as React from 'react';
5
- import React__default, { useRef, useState, useCallback, useEffect, useMemo } from 'react';
5
+ import React__default, { useRef, useState, useEffect, useCallback, useMemo } from 'react';
6
6
  import useMergedRefs from '@restart/hooks/useMergedRefs';
7
7
  import ResizeObserver from 'resize-observer-polyfill';
8
8
  import { u as useIsomorphicLayoutEffect } from './MultiLevelCheckboxSelect-d8044c88.js';
9
9
  import styled, { css } from 'styled-components';
10
10
  import { S as SvgWarningCircle } from './warning-circle-24f3efcd.js';
11
- import { A as Alert } from './Alert-e6847a22.js';
11
+ import './Alert-e6847a22.js';
12
12
  import { B as Badge } from './Badge-d93586a9.js';
13
13
  import { P as Popover } from './Popover-20050b91.js';
14
14
  import './Tab-04d435c3.js';
15
15
  import './Tabs-74d1ea8a.js';
16
16
  import { T as Tooltip } from './Tooltip-c1d1199e.js';
17
17
  import './VerificationStatusIcon-49cb1c1b.js';
18
- import { FloatingArrow, useFloating, autoUpdate, offset, flip, shift, arrow, useTransitionStyles, useHover, useDismiss, useInteractions, useMergeRefs } from '@floating-ui/react';
18
+ import { S as SummaryCard } from './SummaryCard-24040650.js';
19
19
  import { rgba } from 'polished';
20
+ import { FloatingArrow, useFloating, autoUpdate, offset, flip, shift, arrow, useTransitionStyles, useHover, useDismiss, useInteractions, useMergeRefs } from '@floating-ui/react';
21
+ import { A as AssetActionsBase } from './AssetActionsBase-9e4c0735.js';
20
22
  import { A as ActionButton } from './ActionButton-4db754c3.js';
21
- import './Button-179a2fe4.js';
23
+ import './Button-73eb8516.js';
22
24
  import './Checkbox-4a5fd716.js';
23
25
  import './CompactAutocompleteSelect-52c49513.js';
24
26
  import './CompactStarRating-9af2f427.js';
@@ -28,8 +30,8 @@ import './Radio-73ca3ae2.js';
28
30
  import './TextArea-1e5b9201.js';
29
31
  import './TextInput-fab35842.js';
30
32
  import './Switch-ecf3122b.js';
31
- import ContextMenu from './widgets/ContextMenu/ContextMenu.js';
32
- import ContextMenuItem from './widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js';
33
+ import { C as ContextMenu } from './ContextMenu-0f7134e4.js';
34
+ import { C as ContextMenuItem } from './ContextMenuItem-ea411141.js';
33
35
 
34
36
  var _path$3;
35
37
  function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
@@ -176,214 +178,6 @@ const convertMsToHMS = ms => {
176
178
  return hmsString;
177
179
  };
178
180
 
179
- const shouldForwardProp$1 = prop => {
180
- return prop !== 'theme' && !prop.startsWith('$');
181
- };
182
- const SummaryCard$1 = styled.div.withConfig({
183
- shouldForwardProp: shouldForwardProp$1
184
- }).attrs(applyDefaultTheme)`
185
- display: flex;
186
- flex-direction: column;
187
- border-radius: 4px;
188
- width: ${props => props.width ? `${props.width}px` : '100%'};
189
- ${props => props.view === 'compact' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white')) : 'background: transparent'};
190
-
191
- ${props => props.$useBorder ? props.theme.themeProp('border', `1px solid ${props.theme.getColor('gray-500')}`, `1px solid ${props.theme.getColor('gray-300')}`) : null}
192
- `;
193
- const Gutter = styled.div.withConfig({
194
- shouldForwardProp: shouldForwardProp$1
195
- }).attrs(applyDefaultTheme)`
196
- ${props => {
197
- if (props.renderAsMargin) {
198
- return css`
199
- margin-bottom: ${props.$gutter || 8}px;
200
- `;
201
- } else {
202
- return css`
203
- padding-bottom: ${props.$gutter || 8}px;
204
- `;
205
- }
206
- }}
207
- padding-bottom: ${props => props.$gutter || 8}px;
208
- `;
209
- const Header = styled.div.withConfig({
210
- shouldForwardProp: shouldForwardProp$1
211
- }).attrs(applyDefaultTheme)`
212
- display: flex;
213
- align-items: center;
214
- justify-content: space-between;
215
- padding: 0 16px;
216
- `;
217
- const HeaderLeft = styled.div.withConfig({
218
- shouldForwardProp: shouldForwardProp$1
219
- }).attrs(applyDefaultTheme)`
220
- display: flex;
221
- align-items: center;
222
- justify-content: flex-start;
223
-
224
- > * {
225
- margin-right: 4px;
226
- }
227
- `;
228
- const HeaderRight = styled.div.withConfig({
229
- shouldForwardProp: shouldForwardProp$1
230
- }).attrs(applyDefaultTheme)`
231
- display: flex;
232
- align-items: center;
233
- justify-content: flex-end;
234
-
235
- > * {
236
- margin-left: 4px;
237
- }
238
- `;
239
- const Title = styled.span.withConfig({
240
- shouldForwardProp: shouldForwardProp$1
241
- }).attrs(applyDefaultTheme)`
242
- display: inline-block;
243
- padding: 0 16px;
244
- font: normal normal 500 14px/19px Roboto;
245
- letter-spacing: 0.28px;
246
- display: -webkit-box;
247
- -webkit-line-clamp: 1;
248
- -webkit-box-orient: vertical;
249
- overflow: hidden;
250
- text-overflow: ellipsis;
251
- box-sizing: border-box;
252
-
253
- ${props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'))};
254
- `;
255
- const Description = styled.span.withConfig({
256
- shouldForwardProp: shouldForwardProp$1
257
- }).attrs(applyDefaultTheme)`
258
- padding: 0 16px;
259
- text-align: left;
260
- font: normal normal normal 12px/16px Roboto;
261
- letter-spacing: 0.24px;
262
- display: -webkit-box;
263
- -webkit-line-clamp: 3;
264
- -webkit-box-orient: vertical;
265
- overflow: hidden;
266
- text-overflow: ellipsis;
267
- box-sizing: border-box;
268
-
269
- ${props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'))};
270
- `;
271
- const Instruction = styled.div.withConfig({
272
- shouldForwardProp: shouldForwardProp$1
273
- }).attrs(applyDefaultTheme)``;
274
- const Footer = styled.div.withConfig({
275
- shouldForwardProp: shouldForwardProp$1
276
- }).attrs(applyDefaultTheme)`
277
- display: flex;
278
- align-items: center;
279
- justify-content: space-between;
280
- padding: 0 16px;
281
- `;
282
- const FooterLeft = styled.div.withConfig({
283
- shouldForwardProp: shouldForwardProp$1
284
- }).attrs(applyDefaultTheme)`
285
- display: flex;
286
- align-items: center;
287
- justify-content: flex-start;
288
-
289
- > * {
290
- margin-right: 4px;
291
- }
292
- `;
293
- const FooterRight = styled.div.withConfig({
294
- shouldForwardProp: shouldForwardProp$1
295
- }).attrs(applyDefaultTheme)`
296
- display: flex;
297
- align-items: center;
298
- justify-content: flex-end;
299
-
300
- > * {
301
- margin-left: 4px;
302
- }
303
- `;
304
- styled(FloatingArrow).withConfig({
305
- shouldForwardProp: shouldForwardProp$1
306
- }).attrs(applyDefaultTheme)`
307
- ${props => props.theme.themeProp('fill', props.theme.getColor('gray-700'), props.theme.getColor('white'))}
308
- `;
309
-
310
- const SummaryCard = React__default.forwardRef(function AssetSummaryCard({
311
- activeSummaryCard,
312
- title,
313
- description,
314
- instructions,
315
- instructionsType,
316
- headerLeft,
317
- headerRight,
318
- footerLeft,
319
- footerRight,
320
- width,
321
- useBorder,
322
- view,
323
- ...props
324
- }, forwardedRef) {
325
- const shouldRenderInstructions = !!instructions;
326
- const shouldRenderHeader = !!headerLeft || !!headerRight;
327
- const shouldRenderFooter = !!footerLeft || !!footerRight;
328
- const shouldAddGutterAfterInstructions = shouldRenderInstructions && shouldRenderFooter;
329
- const shouldAddGutterAfterTitle = !!title && (!!description || !!instructions || shouldRenderFooter);
330
- if (!activeSummaryCard) return null;
331
- return React__default.createElement(SummaryCard$1, _extends$4({
332
- ref: forwardedRef,
333
- width: width,
334
- useBorder: useBorder
335
- }, props, {
336
- view: view
337
- }), shouldRenderHeader && React__default.createElement(React__default.Fragment, null, React__default.createElement(Gutter, {
338
- gutter: 8
339
- }), React__default.createElement(Header, null, React__default.createElement(HeaderLeft, null, headerLeft), React__default.createElement(HeaderRight, null, headerRight))), React__default.createElement(Gutter, {
340
- gutter: shouldRenderHeader ? 8 : 16
341
- }), title && React__default.createElement(Title, null, title), shouldAddGutterAfterTitle && React__default.createElement(Gutter, {
342
- gutter: 4
343
- }), description && React__default.createElement(Description, null, description), React__default.createElement(Gutter, {
344
- gutter: 16
345
- }), shouldRenderInstructions && React__default.createElement(Instruction, null, React__default.createElement(Alert, {
346
- icon: React__default.createElement(SvgWarningCircle, null),
347
- alertMessage: instructions,
348
- type: instructionsType,
349
- fontSize: 12,
350
- verticalPadding: 12,
351
- horizontalPadding: 16,
352
- width: width,
353
- lineClamp: 1
354
- })), shouldAddGutterAfterInstructions && React__default.createElement(Gutter, {
355
- gutter: 16
356
- }), shouldRenderFooter && React__default.createElement(Footer, null, React__default.createElement(FooterLeft, null, footerLeft), React__default.createElement(FooterRight, null, footerRight)), shouldRenderFooter && React__default.createElement(Gutter, {
357
- gutter: 16
358
- }));
359
- });
360
- SummaryCard.propTypes = process.env.NODE_ENV !== "production" ? {
361
- activeSummaryCard: PropTypes.bool,
362
- title: PropTypes.string,
363
- description: PropTypes.string,
364
- instructions: PropTypes.string,
365
- instructionsType: PropTypes.oneOf(['warning', 'error', 'info']),
366
- headerLeft: PropTypes.node,
367
- headerRight: PropTypes.node,
368
- footerLeft: PropTypes.node,
369
- footerRight: PropTypes.node,
370
- width: PropTypes.number,
371
- useBorder: PropTypes.bool,
372
- view: PropTypes.string
373
- } : {};
374
- SummaryCard.defaultProps = {
375
- title: '',
376
- description: '',
377
- instructions: '',
378
- instructionsType: 'info',
379
- headerLeft: null,
380
- headerRight: null,
381
- footerLeft: null,
382
- footerRight: null,
383
- useBorder: false,
384
- activeSummaryCard: false
385
- };
386
-
387
181
  const shouldForwardProp = prop => {
388
182
  return prop !== 'theme' && !prop.startsWith('$');
389
183
  };
@@ -700,168 +494,12 @@ styled.div.withConfig({
700
494
  padding: 4px 8px;
701
495
  border-radius: 4px;
702
496
  `;
703
- const StyledFloatingArrow$1 = styled(FloatingArrow).withConfig({
497
+ const StyledFloatingArrow = styled(FloatingArrow).withConfig({
704
498
  shouldForwardProp
705
499
  }).attrs(applyDefaultTheme)`
706
500
  ${props => props.theme.themeProp('fill', props.theme.getColor('gray-700'), props.theme.getColor('white'))}
707
501
  `;
708
502
 
709
- const AssetActions = styled.div.attrs(applyDefaultTheme)`
710
- font-family: ${props => props.theme.primaryFontFamily};
711
- font-size: 1rem;
712
- font-weight: 500;
713
- display: flex;
714
- flex-direction: column;
715
- padding: 2px;
716
- gap: 8px;
717
- `;
718
-
719
- const AssetAction$1 = styled.div.attrs(applyDefaultTheme)`
720
- font-family: ${props => props.theme.primaryFontFamily};
721
- `;
722
- const AssetActionButton = styled.div.attrs(applyDefaultTheme)`
723
- border-radius: 50%;
724
- width: ${props => props.actionWidthHeight ? `${props.actionWidthHeight[0]}px` : 'auto'};
725
- height: ${props => props.actionWidthHeight ? `${props.actionWidthHeight[1]}px` : 'auto'};
726
- cursor: pointer;
727
- display: flex;
728
- justify-content: center;
729
- align-items: center;
730
- box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
731
- ${props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('white'))};
732
- svg {
733
- pointer-events: none;
734
- width: ${props => props.actionWidthHeight ? `${props.actionWidthHeight[0] - 14}px` : 'auto'};
735
- height: ${props => props.actionWidthHeight ? `${props.actionWidthHeight[1] - 14}px` : 'auto'};
736
- ${props => props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('white'))};
737
- }
738
- `;
739
- const ActionTitle = styled.div.attrs(applyDefaultTheme)`
740
- font-size: 14px;
741
- border-radius: 4px;
742
- padding: 8px 12px;
743
- white-space: nowrap;
744
- color: white;
745
- background: ${props => props.theme.getColor('gray-700')};
746
- `;
747
- const StyledFloatingArrow = styled(FloatingArrow).attrs(applyDefaultTheme)`
748
- fill: ${props => props.theme.getColor('gray-700')};
749
- `;
750
- const Floating = styled.div.attrs(applyDefaultTheme)`
751
- pointer-events: none;
752
- `;
753
-
754
- const AssetAction = React__default.forwardRef(function AssetAction({
755
- action,
756
- asset,
757
- itemKey,
758
- ...props
759
- }, forwardedRef) {
760
- const ARROW_WIDTH = 10;
761
- const ARROW_HEIGHT = 5;
762
- const GAP = 3;
763
- const arrowRef = useRef(null);
764
- const [isOpen, setIsOpen] = useState(false);
765
- const [placement] = useState('bottom');
766
- const {
767
- refs,
768
- floatingStyles,
769
- context
770
- } = useFloating({
771
- placement,
772
- open: isOpen,
773
- onOpenChange: setIsOpen,
774
- whileElementsMounted: autoUpdate,
775
- middleware: [offset(ARROW_HEIGHT + GAP), flip({
776
- padding: 5
777
- }), shift({
778
- padding: 5
779
- }), arrow({
780
- element: arrowRef
781
- })]
782
- });
783
- const {
784
- isMounted,
785
- styles
786
- } = useTransitionStyles(context, {
787
- initial: {
788
- transform: 'translateY(-8px)',
789
- opacity: 0
790
- },
791
- duration: {
792
- open: 200,
793
- close: 100
794
- }
795
- });
796
- const hover = useHover(context);
797
- const dismiss = useDismiss(context, {
798
- referencePress: true
799
- });
800
- const {
801
- getReferenceProps,
802
- getFloatingProps
803
- } = useInteractions([dismiss, hover]);
804
- const onActionClick = useCallback((e, action) => {
805
- e.preventDefault();
806
- e.stopPropagation();
807
- if (isFunction(action?.onClick)) {
808
- action.onClick(asset);
809
- }
810
- }, [action]);
811
- return React__default.createElement(AssetAction$1, _extends$4({
812
- ref: forwardedRef
813
- }, props), React__default.createElement(AssetActionButton, _extends$4({
814
- key: itemKey,
815
- ref: refs.setReference
816
- }, getReferenceProps(), {
817
- onClick: e => onActionClick(e, action.onClick(asset), itemKey),
818
- actionWidthHeight: action.actionWidthHeight
819
- }), action.icon), isOpen && isMounted && React__default.createElement(Floating, _extends$4({
820
- className: "floating",
821
- ref: refs.setFloating,
822
- style: floatingStyles
823
- }, getFloatingProps()), React__default.createElement(ActionTitle, {
824
- style: styles
825
- }, action.title), React__default.createElement(StyledFloatingArrow, {
826
- ref: arrowRef,
827
- context: context,
828
- width: ARROW_WIDTH,
829
- height: ARROW_HEIGHT
830
- })));
831
- });
832
- AssetAction.propTypes = process.env.NODE_ENV !== "production" ? {
833
- action: PropTypes.shape({
834
- icon: PropTypes.node,
835
- onClick: PropTypes.func,
836
- actionWidthHeight: PropTypes.arrayOf(PropTypes.number),
837
- title: PropTypes.string
838
- }),
839
- asset: PropTypes.object,
840
- itemKey: PropTypes.string
841
- } : {};
842
- AssetAction.defaultProps = {};
843
-
844
- const AssetActionsBase = React__default.forwardRef(function AssetActionsBase({
845
- actions,
846
- asset,
847
- ...props
848
- }, forwardedRef) {
849
- const assetActions = actions.map((action, index) => React__default.createElement(AssetAction, _extends$4({
850
- key: `index_${action.title}`,
851
- ref: forwardedRef
852
- }, props, {
853
- action: action,
854
- asset: asset,
855
- itemKey: `${index}-${action.title}`
856
- })));
857
- return React__default.createElement(AssetActions, null, assetActions);
858
- });
859
- AssetActionsBase.propTypes = process.env.NODE_ENV !== "production" ? {
860
- actions: PropTypes.arrayOf(PropTypes.object),
861
- asset: PropTypes.object
862
- } : {};
863
- AssetActionsBase.defaultProps = {};
864
-
865
503
  const ComputedRootComponent$1 = ({
866
504
  component,
867
505
  asset,
@@ -1208,7 +846,7 @@ const AssetGalleryCompactCard = props => {
1208
846
  }, getFloatingProps()), React__default.createElement("div", {
1209
847
  style: styles,
1210
848
  className: "floating"
1211
- }, renderPopoverContent(), React__default.createElement(StyledFloatingArrow$1, {
849
+ }, renderPopoverContent(), React__default.createElement(StyledFloatingArrow, {
1212
850
  ref: arrowRef,
1213
851
  context: context,
1214
852
  width: ARROW_WIDTH,
@@ -2340,4 +1978,4 @@ AssetGallery.defaultProps = {
2340
1978
  displayIcon: ''
2341
1979
  };
2342
1980
 
2343
- export { AssetGallery as A, SummaryCard as S, AssetActionsBase as a, AssetAction as b };
1981
+ export { AssetGallery as A };
@@ -1,9 +1,9 @@
1
- import { _ as _extends$1 } from '../../../_rollupPluginBabelHelpers-c245b26a.js';
1
+ import { _ as _extends$1 } from './_rollupPluginBabelHelpers-c245b26a.js';
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
- import { a as applyDefaultTheme, P as PropTypes } from '../../../defaultTheme-1bcc2541.js';
4
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
5
5
  import styled, { css } from 'styled-components';
6
- import { S as SvgClose } from '../../../close-a5d37608.js';
6
+ import { S as SvgClose } from './close-a5d37608.js';
7
7
 
8
8
  var _path;
9
9
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
@@ -124,4 +124,4 @@ AssetPreviewTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
124
124
  } : {};
125
125
  AssetPreviewTopBar.defaultProps = {};
126
126
 
127
- export { AssetPreviewTopBar as default };
127
+ export { AssetPreviewTopBar as A };
@@ -3,7 +3,7 @@ import React__default, { useState, useRef, useEffect } from 'react';
3
3
  import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
4
4
  import styled, { css } from 'styled-components';
5
5
  import { P as Popover } from './Popover-20050b91.js';
6
- import ContextMenu from './widgets/ContextMenu/ContextMenu.js';
6
+ import { C as ContextMenu } from './ContextMenu-0f7134e4.js';
7
7
  import { S as SvgExpandMore } from './expand-more-c5523c46.js';
8
8
 
9
9
  const Button$1 = styled.button.attrs(applyDefaultTheme)`
@@ -1,6 +1,6 @@
1
- import { _ as _extends } from '../../_rollupPluginBabelHelpers-c245b26a.js';
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
2
2
  import React__default from 'react';
3
- import { a as applyDefaultTheme, P as PropTypes } from '../../defaultTheme-1bcc2541.js';
3
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
4
4
  import styled from 'styled-components';
5
5
 
6
6
  const ContextMenu$1 = styled.div.attrs(applyDefaultTheme)`
@@ -23,4 +23,4 @@ ContextMenu.propTypes = process.env.NODE_ENV !== "production" ? {
23
23
  } : {};
24
24
  ContextMenu.defaultProps = {};
25
25
 
26
- export { ContextMenu as default };
26
+ export { ContextMenu as C };
@@ -1,7 +1,7 @@
1
- import { _ as _extends$1 } from '../../../_rollupPluginBabelHelpers-c245b26a.js';
1
+ import { _ as _extends$1 } from './_rollupPluginBabelHelpers-c245b26a.js';
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
- import { a as applyDefaultTheme, P as PropTypes } from '../../../defaultTheme-1bcc2541.js';
4
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
5
5
  import styled, { css } from 'styled-components';
6
6
 
7
7
  var _path;
@@ -124,4 +124,4 @@ ContextMenuItem.defaultProps = {
124
124
  opensSublevel: false
125
125
  };
126
126
 
127
- export { ContextMenuItem as default };
127
+ export { ContextMenuItem as C };
@@ -1,8 +1,8 @@
1
- import { _ as _extends } from '../../_rollupPluginBabelHelpers-c245b26a.js';
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
2
2
  import React__default, { useState } from 'react';
3
- import { a as applyDefaultTheme, P as PropTypes } from '../../defaultTheme-1bcc2541.js';
3
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
4
4
  import styled from 'styled-components';
5
- import { S as SvgArrowForward } from '../../arrow-forward-ad12c5f3.js';
5
+ import { S as SvgArrowForward } from './arrow-forward-ad12c5f3.js';
6
6
 
7
7
  const Container = styled.div.attrs(applyDefaultTheme)`
8
8
  font-family: ${props => props.theme.primaryFontFamily};
@@ -122,4 +122,4 @@ InfoCard.propTypes = process.env.NODE_ENV !== "production" ? {
122
122
  height: PropTypes.number
123
123
  } : {};
124
124
 
125
- export { InfoCard as default };
125
+ export { InfoCard as I };
@@ -1,30 +1,11 @@
1
- import { _ as _extends } from '../../_rollupPluginBabelHelpers-c245b26a.js';
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
2
2
  import { isFunction } from 'lodash';
3
- import { a as applyDefaultTheme, P as PropTypes } from '../../defaultTheme-1bcc2541.js';
3
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
4
4
  import React__default, { useState, useEffect, useCallback } from 'react';
5
- import { S as SvgWarningCircle } from '../../warning-circle-24f3efcd.js';
6
- import { C as CompactAutocompleteSelect } from '../../CompactAutocompleteSelect-52c49513.js';
7
- import { T as TextArea } from '../../TextArea-1e5b9201.js';
5
+ import { S as SvgWarningCircle } from './warning-circle-24f3efcd.js';
6
+ import { C as CompactAutocompleteSelect } from './CompactAutocompleteSelect-52c49513.js';
7
+ import { T as TextArea } from './TextArea-1e5b9201.js';
8
8
  import styled from 'styled-components';
9
- import 'nanoid';
10
- import '../../Alert-e6847a22.js';
11
- import '../../Badge-d93586a9.js';
12
- import '../../Popover-20050b91.js';
13
- import 'polished';
14
- import '@tippyjs/react';
15
- import '../../shift-away-subtle-0dd94a03.js';
16
- import 'popper-max-size-modifier';
17
- import '../../Tab-04d435c3.js';
18
- import '../../Tabs-74d1ea8a.js';
19
- import '../../Tooltip-c1d1199e.js';
20
- import '../../VerificationStatusIcon-49cb1c1b.js';
21
- import 'react-select';
22
- import 'react-select-async-paginate';
23
- import 'react-select/creatable';
24
- import '../../close-a5d37608.js';
25
- import '../../expand-more-c5523c46.js';
26
- import '@restart/hooks/useMergedRefs';
27
- import '../../edit-note-283a0e15.js';
28
9
 
29
10
  const Instructions$1 = styled.div.attrs(applyDefaultTheme)`
30
11
  display: flex;
@@ -252,4 +233,4 @@ Instructions.propTypes = process.env.NODE_ENV !== "production" ? {
252
233
  padding: PropTypes.oneOf(['', 'small', 'medium', 'large'])
253
234
  } : {};
254
235
 
255
- export { Instructions as default };
236
+ export { Instructions as I };
@@ -1,8 +1,8 @@
1
- import { _ as _extends } from '../../_rollupPluginBabelHelpers-c245b26a.js';
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
2
2
  import React__default, { useState } from 'react';
3
- import { a as applyDefaultTheme, P as PropTypes } from '../../defaultTheme-1bcc2541.js';
3
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
4
4
  import styled from 'styled-components';
5
- import { S as SvgArrowForward } from '../../arrow-forward-ad12c5f3.js';
5
+ import { S as SvgArrowForward } from './arrow-forward-ad12c5f3.js';
6
6
 
7
7
  const getBackgroundColor = props => {
8
8
  if (props.barColor) {
@@ -207,4 +207,4 @@ ProgressBar.propTypes = process.env.NODE_ENV !== "production" ? {
207
207
  onClick: PropTypes.func
208
208
  } : {};
209
209
 
210
- export { ProgressBar as default };
210
+ export { ProgressBar as P };
@@ -0,0 +1,223 @@
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
2
+ import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
3
+ import React__default from 'react';
4
+ import { S as SvgWarningCircle } from './warning-circle-24f3efcd.js';
5
+ import { A as Alert } from './Alert-e6847a22.js';
6
+ import './Badge-d93586a9.js';
7
+ import './Popover-20050b91.js';
8
+ import './Tab-04d435c3.js';
9
+ import './Tabs-74d1ea8a.js';
10
+ import './Tooltip-c1d1199e.js';
11
+ import './VerificationStatusIcon-49cb1c1b.js';
12
+ import styled, { css } from 'styled-components';
13
+ import { FloatingArrow } from '@floating-ui/react';
14
+
15
+ const shouldForwardProp = prop => {
16
+ return prop !== 'theme' && !prop.startsWith('$');
17
+ };
18
+ const SummaryCard$1 = styled.div.withConfig({
19
+ shouldForwardProp
20
+ }).attrs(applyDefaultTheme)`
21
+ display: flex;
22
+ flex-direction: column;
23
+ border-radius: 4px;
24
+ width: ${props => props.width ? `${props.width}px` : '100%'};
25
+ ${props => props.view === 'compact' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white')) : 'background: transparent'};
26
+
27
+ ${props => props.$useBorder ? props.theme.themeProp('border', `1px solid ${props.theme.getColor('gray-500')}`, `1px solid ${props.theme.getColor('gray-300')}`) : null}
28
+ `;
29
+ const Gutter = styled.div.withConfig({
30
+ shouldForwardProp
31
+ }).attrs(applyDefaultTheme)`
32
+ ${props => {
33
+ if (props.renderAsMargin) {
34
+ return css`
35
+ margin-bottom: ${props.$gutter || 8}px;
36
+ `;
37
+ } else {
38
+ return css`
39
+ padding-bottom: ${props.$gutter || 8}px;
40
+ `;
41
+ }
42
+ }}
43
+ padding-bottom: ${props => props.$gutter || 8}px;
44
+ `;
45
+ const Header = styled.div.withConfig({
46
+ shouldForwardProp
47
+ }).attrs(applyDefaultTheme)`
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: space-between;
51
+ padding: 0 16px;
52
+ `;
53
+ const HeaderLeft = styled.div.withConfig({
54
+ shouldForwardProp
55
+ }).attrs(applyDefaultTheme)`
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: flex-start;
59
+
60
+ > * {
61
+ margin-right: 4px;
62
+ }
63
+ `;
64
+ const HeaderRight = styled.div.withConfig({
65
+ shouldForwardProp
66
+ }).attrs(applyDefaultTheme)`
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: flex-end;
70
+
71
+ > * {
72
+ margin-left: 4px;
73
+ }
74
+ `;
75
+ const Title = styled.span.withConfig({
76
+ shouldForwardProp
77
+ }).attrs(applyDefaultTheme)`
78
+ display: inline-block;
79
+ padding: 0 16px;
80
+ font: normal normal 500 14px/19px Roboto;
81
+ letter-spacing: 0.28px;
82
+ display: -webkit-box;
83
+ -webkit-line-clamp: 1;
84
+ -webkit-box-orient: vertical;
85
+ overflow: hidden;
86
+ text-overflow: ellipsis;
87
+ box-sizing: border-box;
88
+
89
+ ${props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'))};
90
+ `;
91
+ const Description = styled.span.withConfig({
92
+ shouldForwardProp
93
+ }).attrs(applyDefaultTheme)`
94
+ padding: 0 16px;
95
+ text-align: left;
96
+ font: normal normal normal 12px/16px Roboto;
97
+ letter-spacing: 0.24px;
98
+ display: -webkit-box;
99
+ -webkit-line-clamp: 3;
100
+ -webkit-box-orient: vertical;
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
103
+ box-sizing: border-box;
104
+
105
+ ${props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'))};
106
+ `;
107
+ const Instruction = styled.div.withConfig({
108
+ shouldForwardProp
109
+ }).attrs(applyDefaultTheme)``;
110
+ const Footer = styled.div.withConfig({
111
+ shouldForwardProp
112
+ }).attrs(applyDefaultTheme)`
113
+ display: flex;
114
+ align-items: center;
115
+ justify-content: space-between;
116
+ padding: 0 16px;
117
+ `;
118
+ const FooterLeft = styled.div.withConfig({
119
+ shouldForwardProp
120
+ }).attrs(applyDefaultTheme)`
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: flex-start;
124
+
125
+ > * {
126
+ margin-right: 4px;
127
+ }
128
+ `;
129
+ const FooterRight = styled.div.withConfig({
130
+ shouldForwardProp
131
+ }).attrs(applyDefaultTheme)`
132
+ display: flex;
133
+ align-items: center;
134
+ justify-content: flex-end;
135
+
136
+ > * {
137
+ margin-left: 4px;
138
+ }
139
+ `;
140
+ styled(FloatingArrow).withConfig({
141
+ shouldForwardProp
142
+ }).attrs(applyDefaultTheme)`
143
+ ${props => props.theme.themeProp('fill', props.theme.getColor('gray-700'), props.theme.getColor('white'))}
144
+ `;
145
+
146
+ const SummaryCard = React__default.forwardRef(function AssetSummaryCard({
147
+ activeSummaryCard,
148
+ title,
149
+ description,
150
+ instructions,
151
+ instructionsType,
152
+ headerLeft,
153
+ headerRight,
154
+ footerLeft,
155
+ footerRight,
156
+ width,
157
+ useBorder,
158
+ view,
159
+ ...props
160
+ }, forwardedRef) {
161
+ const shouldRenderInstructions = !!instructions;
162
+ const shouldRenderHeader = !!headerLeft || !!headerRight;
163
+ const shouldRenderFooter = !!footerLeft || !!footerRight;
164
+ const shouldAddGutterAfterInstructions = shouldRenderInstructions && shouldRenderFooter;
165
+ const shouldAddGutterAfterTitle = !!title && (!!description || !!instructions || shouldRenderFooter);
166
+ if (!activeSummaryCard) return null;
167
+ return React__default.createElement(SummaryCard$1, _extends({
168
+ ref: forwardedRef,
169
+ width: width,
170
+ useBorder: useBorder
171
+ }, props, {
172
+ view: view
173
+ }), shouldRenderHeader && React__default.createElement(React__default.Fragment, null, React__default.createElement(Gutter, {
174
+ gutter: 8
175
+ }), React__default.createElement(Header, null, React__default.createElement(HeaderLeft, null, headerLeft), React__default.createElement(HeaderRight, null, headerRight))), React__default.createElement(Gutter, {
176
+ gutter: shouldRenderHeader ? 8 : 16
177
+ }), title && React__default.createElement(Title, null, title), shouldAddGutterAfterTitle && React__default.createElement(Gutter, {
178
+ gutter: 4
179
+ }), description && React__default.createElement(Description, null, description), React__default.createElement(Gutter, {
180
+ gutter: 16
181
+ }), shouldRenderInstructions && React__default.createElement(Instruction, null, React__default.createElement(Alert, {
182
+ icon: React__default.createElement(SvgWarningCircle, null),
183
+ alertMessage: instructions,
184
+ type: instructionsType,
185
+ fontSize: 12,
186
+ verticalPadding: 12,
187
+ horizontalPadding: 16,
188
+ width: width,
189
+ lineClamp: 1
190
+ })), shouldAddGutterAfterInstructions && React__default.createElement(Gutter, {
191
+ gutter: 16
192
+ }), shouldRenderFooter && React__default.createElement(Footer, null, React__default.createElement(FooterLeft, null, footerLeft), React__default.createElement(FooterRight, null, footerRight)), shouldRenderFooter && React__default.createElement(Gutter, {
193
+ gutter: 16
194
+ }));
195
+ });
196
+ SummaryCard.propTypes = process.env.NODE_ENV !== "production" ? {
197
+ activeSummaryCard: PropTypes.bool,
198
+ title: PropTypes.string,
199
+ description: PropTypes.string,
200
+ instructions: PropTypes.string,
201
+ instructionsType: PropTypes.oneOf(['warning', 'error', 'info']),
202
+ headerLeft: PropTypes.node,
203
+ headerRight: PropTypes.node,
204
+ footerLeft: PropTypes.node,
205
+ footerRight: PropTypes.node,
206
+ width: PropTypes.number,
207
+ useBorder: PropTypes.bool,
208
+ view: PropTypes.string
209
+ } : {};
210
+ SummaryCard.defaultProps = {
211
+ title: '',
212
+ description: '',
213
+ instructions: '',
214
+ instructionsType: 'info',
215
+ headerLeft: null,
216
+ headerRight: null,
217
+ footerLeft: null,
218
+ footerRight: null,
219
+ useBorder: false,
220
+ activeSummaryCard: false
221
+ };
222
+
223
+ export { SummaryCard as S };
@@ -1,4 +1,4 @@
1
- export { B as default } from '../../Button-179a2fe4.js';
1
+ export { B as default } from '../../Button-73eb8516.js';
2
2
  import '../../_rollupPluginBabelHelpers-c245b26a.js';
3
3
  import 'react';
4
4
  import '../../defaultTheme-1bcc2541.js';
@@ -9,5 +9,5 @@ import 'polished';
9
9
  import '@tippyjs/react';
10
10
  import '../../shift-away-subtle-0dd94a03.js';
11
11
  import 'popper-max-size-modifier';
12
- import '../../widgets/ContextMenu/ContextMenu.js';
12
+ import '../../ContextMenu-0f7134e4.js';
13
13
  import '../../expand-more-c5523c46.js';
@@ -1,5 +1,5 @@
1
1
  export { A as ActionButton } from '../ActionButton-4db754c3.js';
2
- export { B as Button } from '../Button-179a2fe4.js';
2
+ export { B as Button } from '../Button-73eb8516.js';
3
3
  export { C as Checkbox } from '../Checkbox-4a5fd716.js';
4
4
  export { C as CompactAutocompleteSelect } from '../CompactAutocompleteSelect-52c49513.js';
5
5
  export { C as CompactStarRating } from '../CompactStarRating-9af2f427.js';
@@ -20,7 +20,7 @@ import 'lodash';
20
20
  import '@tippyjs/react';
21
21
  import '../shift-away-subtle-0dd94a03.js';
22
22
  import 'popper-max-size-modifier';
23
- import '../widgets/ContextMenu/ContextMenu.js';
23
+ import '../ContextMenu-0f7134e4.js';
24
24
  import '../expand-more-c5523c46.js';
25
25
  import 'nanoid';
26
26
  import '../Alert-e6847a22.js';
@@ -0,0 +1,7 @@
1
+ export { A as default } from '../../AssetAction-98d76ce0.js';
2
+ import '../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import 'react';
4
+ import '../../defaultTheme-1bcc2541.js';
5
+ import 'styled-components';
6
+ import '@floating-ui/react';
7
+ import 'lodash';
@@ -0,0 +1,8 @@
1
+ export { A as default } from '../../AssetActionsBase-9e4c0735.js';
2
+ import '../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import 'react';
4
+ import '../../defaultTheme-1bcc2541.js';
5
+ import 'styled-components';
6
+ import '../../AssetAction-98d76ce0.js';
7
+ import '@floating-ui/react';
8
+ import 'lodash';
@@ -1,9 +1,9 @@
1
+ export { A as default } from '../../AssetGallery-63f721ec.js';
1
2
  import '../../_rollupPluginBabelHelpers-c245b26a.js';
2
3
  import 'lodash';
3
4
  import '../../defaultTheme-1bcc2541.js';
4
- import 'react';
5
- export { A as default } from '../../AssetGallery-f67393d4.js';
6
5
  import 'styled-components';
6
+ import 'react';
7
7
  import '@restart/hooks/useMergedRefs';
8
8
  import 'resize-observer-polyfill';
9
9
  import '../../MultiLevelCheckboxSelect-d8044c88.js';
@@ -27,10 +27,13 @@ import '../../SectionSeparator-f47760a2.js';
27
27
  import '../../close-a5d37608.js';
28
28
  import '@restart/hooks/useUpdateEffect';
29
29
  import '../../warning-circle-24f3efcd.js';
30
+ import '../../SummaryCard-24040650.js';
30
31
  import '@floating-ui/react';
32
+ import '../../AssetActionsBase-9e4c0735.js';
33
+ import '../../AssetAction-98d76ce0.js';
31
34
  import '../../ActionButton-4db754c3.js';
32
- import '../../Button-179a2fe4.js';
33
- import '../ContextMenu/ContextMenu.js';
35
+ import '../../Button-73eb8516.js';
36
+ import '../../ContextMenu-0f7134e4.js';
34
37
  import '../../expand-more-c5523c46.js';
35
38
  import '../../CompactAutocompleteSelect-52c49513.js';
36
39
  import 'react-select';
@@ -42,4 +45,4 @@ import '../../MultiSelect-9f497e62.js';
42
45
  import '../../Radio-73ca3ae2.js';
43
46
  import '../../TextArea-1e5b9201.js';
44
47
  import '../../Switch-ecf3122b.js';
45
- import '../ContextMenu/ContextMenuItem/ContextMenuItem.js';
48
+ import '../../ContextMenuItem-ea411141.js';
@@ -0,0 +1,6 @@
1
+ export { A as default } from '../../../AssetPreviewTopBar-acd6353d.js';
2
+ import '../../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import 'react';
4
+ import '../../../defaultTheme-1bcc2541.js';
5
+ import 'styled-components';
6
+ import '../../../close-a5d37608.js';
@@ -0,0 +1,5 @@
1
+ export { C as default } from '../../../ContextMenuItem-ea411141.js';
2
+ import '../../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import 'react';
4
+ import '../../../defaultTheme-1bcc2541.js';
5
+ import 'styled-components';
@@ -0,0 +1,5 @@
1
+ export { C as default } from '../../ContextMenu-0f7134e4.js';
2
+ import '../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import 'react';
4
+ import '../../defaultTheme-1bcc2541.js';
5
+ import 'styled-components';
@@ -0,0 +1,6 @@
1
+ export { I as default } from '../../InfoCard-c98b6f5a.js';
2
+ import '../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import 'react';
4
+ import '../../defaultTheme-1bcc2541.js';
5
+ import 'styled-components';
6
+ import '../../arrow-forward-ad12c5f3.js';
@@ -0,0 +1,28 @@
1
+ export { I as default } from '../../Instructions-bfd28cea.js';
2
+ import '../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import 'lodash';
4
+ import '../../defaultTheme-1bcc2541.js';
5
+ import 'styled-components';
6
+ import 'react';
7
+ import '../../warning-circle-24f3efcd.js';
8
+ import '../../CompactAutocompleteSelect-52c49513.js';
9
+ import 'nanoid';
10
+ import '../../Alert-e6847a22.js';
11
+ import '../../Badge-d93586a9.js';
12
+ import '../../Popover-20050b91.js';
13
+ import 'polished';
14
+ import '@tippyjs/react';
15
+ import '../../shift-away-subtle-0dd94a03.js';
16
+ import 'popper-max-size-modifier';
17
+ import '../../Tab-04d435c3.js';
18
+ import '../../Tabs-74d1ea8a.js';
19
+ import '../../Tooltip-c1d1199e.js';
20
+ import '../../VerificationStatusIcon-49cb1c1b.js';
21
+ import 'react-select';
22
+ import 'react-select-async-paginate';
23
+ import 'react-select/creatable';
24
+ import '../../close-a5d37608.js';
25
+ import '../../expand-more-c5523c46.js';
26
+ import '../../TextArea-1e5b9201.js';
27
+ import '@restart/hooks/useMergedRefs';
28
+ import '../../edit-note-283a0e15.js';
@@ -0,0 +1,6 @@
1
+ export { P as default } from '../../ProgressBar-bc4a4a7e.js';
2
+ import '../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import 'react';
4
+ import '../../defaultTheme-1bcc2541.js';
5
+ import 'styled-components';
6
+ import '../../arrow-forward-ad12c5f3.js';
@@ -0,0 +1,19 @@
1
+ export { S as default } from '../../SummaryCard-24040650.js';
2
+ import '../../_rollupPluginBabelHelpers-c245b26a.js';
3
+ import '../../defaultTheme-1bcc2541.js';
4
+ import 'styled-components';
5
+ import 'react';
6
+ import '../../warning-circle-24f3efcd.js';
7
+ import '../../Alert-e6847a22.js';
8
+ import 'lodash';
9
+ import '../../Badge-d93586a9.js';
10
+ import '../../Popover-20050b91.js';
11
+ import 'polished';
12
+ import '@tippyjs/react';
13
+ import '../../shift-away-subtle-0dd94a03.js';
14
+ import 'popper-max-size-modifier';
15
+ import '../../Tab-04d435c3.js';
16
+ import '../../Tabs-74d1ea8a.js';
17
+ import '../../Tooltip-c1d1199e.js';
18
+ import '../../VerificationStatusIcon-49cb1c1b.js';
19
+ import '@floating-ui/react';
@@ -1,9 +1,12 @@
1
- export { b as AssetAction, a as AssetActionBase, A as AssetGallery, S as SummaryCard } from '../AssetGallery-f67393d4.js';
2
- export { default as ContextMenu } from './ContextMenu/ContextMenu.js';
3
- export { default as AssetPreviewTopBar } from './AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js';
4
- export { default as Instructions } from './Instructions/Instructions.js';
5
- export { default as ProgressBar } from './ProgressBar/ProgressBar.js';
6
- export { default as InfoCard } from './InfoCard/InfoCard.js';
1
+ export { A as AssetGallery } from '../AssetGallery-63f721ec.js';
2
+ export { C as ContextMenu } from '../ContextMenu-0f7134e4.js';
3
+ export { A as AssetPreviewTopBar } from '../AssetPreviewTopBar-acd6353d.js';
4
+ export { I as Instructions } from '../Instructions-bfd28cea.js';
5
+ export { S as SummaryCard } from '../SummaryCard-24040650.js';
6
+ export { A as AssetActionBase } from '../AssetActionsBase-9e4c0735.js';
7
+ export { A as AssetAction } from '../AssetAction-98d76ce0.js';
8
+ export { P as ProgressBar } from '../ProgressBar-bc4a4a7e.js';
9
+ export { I as InfoCard } from '../InfoCard-c98b6f5a.js';
7
10
  import '../_rollupPluginBabelHelpers-c245b26a.js';
8
11
  import 'lodash';
9
12
  import '../defaultTheme-1bcc2541.js';
@@ -34,7 +37,7 @@ import '@restart/hooks/useUpdateEffect';
34
37
  import '../warning-circle-24f3efcd.js';
35
38
  import '@floating-ui/react';
36
39
  import '../ActionButton-4db754c3.js';
37
- import '../Button-179a2fe4.js';
40
+ import '../Button-73eb8516.js';
38
41
  import '../expand-more-c5523c46.js';
39
42
  import '../CompactAutocompleteSelect-52c49513.js';
40
43
  import 'react-select';
@@ -46,5 +49,5 @@ import '../MultiSelect-9f497e62.js';
46
49
  import '../Radio-73ca3ae2.js';
47
50
  import '../TextArea-1e5b9201.js';
48
51
  import '../Switch-ecf3122b.js';
49
- import './ContextMenu/ContextMenuItem/ContextMenuItem.js';
52
+ import '../ContextMenuItem-ea411141.js';
50
53
  import '../arrow-forward-ad12c5f3.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ntbjs/react-components",
3
- "version": "2.0.0-rc.28",
3
+ "version": "2.0.0-rc.29",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },