@ntbjs/react-components 2.0.0-rc.27 → 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.
- package/build/AssetAction-98d76ce0.js +133 -0
- package/build/AssetActionsBase-9e4c0735.js +38 -0
- package/build/{widgets/AssetGallery/AssetGallery.js → AssetGallery-63f721ec.js} +32 -407
- package/build/{widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js → AssetPreviewTopBar-acd6353d.js} +4 -4
- package/build/{Button-179a2fe4.js → Button-73eb8516.js} +1 -1
- package/build/{widgets/ContextMenu/ContextMenu.js → ContextMenu-0f7134e4.js} +3 -3
- package/build/{widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js → ContextMenuItem-ea411141.js} +3 -3
- package/build/{widgets/InfoCard/InfoCard.js → InfoCard-c98b6f5a.js} +4 -4
- package/build/{widgets/Instructions/Instructions.js → Instructions-bfd28cea.js} +6 -25
- package/build/{widgets/ProgressBar/ProgressBar.js → ProgressBar-bc4a4a7e.js} +4 -4
- package/build/SummaryCard-24040650.js +223 -0
- package/build/inputs/Button/index.js +2 -2
- package/build/inputs/index.js +2 -2
- package/build/styles/utils/colors.scss +4 -4
- package/build/widgets/AssetAction/index.js +7 -0
- package/build/widgets/AssetActionsBase/index.js +8 -0
- package/build/widgets/AssetGallery/index.js +48 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +6 -0
- package/build/widgets/ContextMenu/ContextMenuItem/index.js +5 -0
- package/build/widgets/ContextMenu/index.js +5 -0
- package/build/widgets/InfoCard/index.js +6 -0
- package/build/widgets/Instructions/index.js +28 -0
- package/build/widgets/ProgressBar/index.js +6 -0
- package/build/widgets/SummaryCard/index.js +19 -0
- package/build/widgets/index.js +53 -0
- package/package.json +3 -3
- package/styles/utils/colors.scss +4 -4
- /package/build/widgets/ContextMenu/ContextMenuItemsGroup/{ContextMenuItemsGroup.js → index.js} +0 -0
package/build/{widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js → ContextMenuItem-ea411141.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _extends$1 } from '
|
|
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 '
|
|
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
|
|
127
|
+
export { ContextMenuItem as C };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
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 '
|
|
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 '
|
|
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
|
|
125
|
+
export { InfoCard as I };
|
|
@@ -1,30 +1,11 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
1
|
+
import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
|
|
2
2
|
import { isFunction } from 'lodash';
|
|
3
|
-
import { a as applyDefaultTheme, P as PropTypes } from '
|
|
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 '
|
|
6
|
-
import { C as CompactAutocompleteSelect } from '
|
|
7
|
-
import { T as TextArea } from '
|
|
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
|
|
236
|
+
export { Instructions as I };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
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 '
|
|
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 '
|
|
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
|
|
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-
|
|
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 '../../
|
|
12
|
+
import '../../ContextMenu-0f7134e4.js';
|
|
13
13
|
import '../../expand-more-c5523c46.js';
|
package/build/inputs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as ActionButton } from '../ActionButton-4db754c3.js';
|
|
2
|
-
export { B as Button } from '../Button-
|
|
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 '../
|
|
23
|
+
import '../ContextMenu-0f7134e4.js';
|
|
24
24
|
import '../expand-more-c5523c46.js';
|
|
25
25
|
import 'nanoid';
|
|
26
26
|
import '../Alert-e6847a22.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../config';
|
|
2
2
|
|
|
3
3
|
@function color($name) {
|
|
4
|
-
@if map-has-key(
|
|
5
|
-
@return map-get(
|
|
4
|
+
@if map-has-key(config.$colors, $name) {
|
|
5
|
+
@return map-get(config.$colors, $name);
|
|
6
6
|
} @else {
|
|
7
7
|
@error "No color with the name `#{$name}`. was found.";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:export {
|
|
12
|
-
@each $name, $color in
|
|
12
|
+
@each $name, $color in config.$colors {
|
|
13
13
|
#{$name}: $color;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -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';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { A as default } from '../../AssetGallery-63f721ec.js';
|
|
2
|
+
import '../../_rollupPluginBabelHelpers-c245b26a.js';
|
|
3
|
+
import 'lodash';
|
|
4
|
+
import '../../defaultTheme-1bcc2541.js';
|
|
5
|
+
import 'styled-components';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '@restart/hooks/useMergedRefs';
|
|
8
|
+
import 'resize-observer-polyfill';
|
|
9
|
+
import '../../MultiLevelCheckboxSelect-d8044c88.js';
|
|
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 '../../Checkbox-4a5fd716.js';
|
|
22
|
+
import 'nanoid';
|
|
23
|
+
import '../../TextInput-fab35842.js';
|
|
24
|
+
import '../../edit-note-283a0e15.js';
|
|
25
|
+
import '../../InputGroup-1294d190.js';
|
|
26
|
+
import '../../SectionSeparator-f47760a2.js';
|
|
27
|
+
import '../../close-a5d37608.js';
|
|
28
|
+
import '@restart/hooks/useUpdateEffect';
|
|
29
|
+
import '../../warning-circle-24f3efcd.js';
|
|
30
|
+
import '../../SummaryCard-24040650.js';
|
|
31
|
+
import '@floating-ui/react';
|
|
32
|
+
import '../../AssetActionsBase-9e4c0735.js';
|
|
33
|
+
import '../../AssetAction-98d76ce0.js';
|
|
34
|
+
import '../../ActionButton-4db754c3.js';
|
|
35
|
+
import '../../Button-73eb8516.js';
|
|
36
|
+
import '../../ContextMenu-0f7134e4.js';
|
|
37
|
+
import '../../expand-more-c5523c46.js';
|
|
38
|
+
import '../../CompactAutocompleteSelect-52c49513.js';
|
|
39
|
+
import 'react-select';
|
|
40
|
+
import 'react-select-async-paginate';
|
|
41
|
+
import 'react-select/creatable';
|
|
42
|
+
import '../../CompactStarRating-9af2f427.js';
|
|
43
|
+
import '../../CompactTextInput-42ca5d42.js';
|
|
44
|
+
import '../../MultiSelect-9f497e62.js';
|
|
45
|
+
import '../../Radio-73ca3ae2.js';
|
|
46
|
+
import '../../TextArea-1e5b9201.js';
|
|
47
|
+
import '../../Switch-ecf3122b.js';
|
|
48
|
+
import '../../ContextMenuItem-ea411141.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,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';
|
|
@@ -0,0 +1,53 @@
|
|
|
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';
|
|
10
|
+
import '../_rollupPluginBabelHelpers-c245b26a.js';
|
|
11
|
+
import 'lodash';
|
|
12
|
+
import '../defaultTheme-1bcc2541.js';
|
|
13
|
+
import 'styled-components';
|
|
14
|
+
import 'react';
|
|
15
|
+
import '@restart/hooks/useMergedRefs';
|
|
16
|
+
import 'resize-observer-polyfill';
|
|
17
|
+
import '../MultiLevelCheckboxSelect-d8044c88.js';
|
|
18
|
+
import '../Alert-e6847a22.js';
|
|
19
|
+
import '../Badge-d93586a9.js';
|
|
20
|
+
import '../Popover-20050b91.js';
|
|
21
|
+
import 'polished';
|
|
22
|
+
import '@tippyjs/react';
|
|
23
|
+
import '../shift-away-subtle-0dd94a03.js';
|
|
24
|
+
import 'popper-max-size-modifier';
|
|
25
|
+
import '../Tab-04d435c3.js';
|
|
26
|
+
import '../Tabs-74d1ea8a.js';
|
|
27
|
+
import '../Tooltip-c1d1199e.js';
|
|
28
|
+
import '../VerificationStatusIcon-49cb1c1b.js';
|
|
29
|
+
import '../Checkbox-4a5fd716.js';
|
|
30
|
+
import 'nanoid';
|
|
31
|
+
import '../TextInput-fab35842.js';
|
|
32
|
+
import '../edit-note-283a0e15.js';
|
|
33
|
+
import '../InputGroup-1294d190.js';
|
|
34
|
+
import '../SectionSeparator-f47760a2.js';
|
|
35
|
+
import '../close-a5d37608.js';
|
|
36
|
+
import '@restart/hooks/useUpdateEffect';
|
|
37
|
+
import '../warning-circle-24f3efcd.js';
|
|
38
|
+
import '@floating-ui/react';
|
|
39
|
+
import '../ActionButton-4db754c3.js';
|
|
40
|
+
import '../Button-73eb8516.js';
|
|
41
|
+
import '../expand-more-c5523c46.js';
|
|
42
|
+
import '../CompactAutocompleteSelect-52c49513.js';
|
|
43
|
+
import 'react-select';
|
|
44
|
+
import 'react-select-async-paginate';
|
|
45
|
+
import 'react-select/creatable';
|
|
46
|
+
import '../CompactStarRating-9af2f427.js';
|
|
47
|
+
import '../CompactTextInput-42ca5d42.js';
|
|
48
|
+
import '../MultiSelect-9f497e62.js';
|
|
49
|
+
import '../Radio-73ca3ae2.js';
|
|
50
|
+
import '../TextArea-1e5b9201.js';
|
|
51
|
+
import '../Switch-ecf3122b.js';
|
|
52
|
+
import '../ContextMenuItem-ea411141.js';
|
|
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.
|
|
3
|
+
"version": "2.0.0-rc.29",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"rollup-plugin-delete": "^2.0.0",
|
|
87
87
|
"rollup-plugin-multi-input": "^1.3.1",
|
|
88
88
|
"rollup-plugin-peer-deps-external": "^2.2.0",
|
|
89
|
-
"rollup-plugin-postcss": "^4.0.
|
|
89
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
90
90
|
"rollup-plugin-scss": "^2.6.1",
|
|
91
91
|
"rollup-plugin-url": "^3.0.1",
|
|
92
|
-
"sass": "^1.
|
|
92
|
+
"sass": "^1.97.2",
|
|
93
93
|
"sass-loader": "^10.1.1",
|
|
94
94
|
"storybook-dark-mode": "^2.0.4",
|
|
95
95
|
"url-loader": "^4.1.1"
|
package/styles/utils/colors.scss
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../config';
|
|
2
2
|
|
|
3
3
|
@function color($name) {
|
|
4
|
-
@if map-has-key(
|
|
5
|
-
@return map-get(
|
|
4
|
+
@if map-has-key(config.$colors, $name) {
|
|
5
|
+
@return map-get(config.$colors, $name);
|
|
6
6
|
} @else {
|
|
7
7
|
@error "No color with the name `#{$name}`. was found.";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:export {
|
|
12
|
-
@each $name, $color in
|
|
12
|
+
@each $name, $color in config.$colors {
|
|
13
13
|
#{$name}: $color;
|
|
14
14
|
}
|
|
15
15
|
}
|
/package/build/widgets/ContextMenu/ContextMenuItemsGroup/{ContextMenuItemsGroup.js → index.js}
RENAMED
|
File without changes
|