@veritone-ce/design-system 0.0.10
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/CHANGELOG.md +7 -0
- package/README.md +36 -0
- package/dist/assets/theme.d.ts +29 -0
- package/dist/assets/theme.js +320 -0
- package/dist/components/Button/index.d.ts +13 -0
- package/dist/components/Button/index.js +46 -0
- package/dist/components/ThemeProvider/index.d.ts +4 -0
- package/dist/components/ThemeProvider/index.js +19 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/package.json +124 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Veritone CE Design System
|
|
2
|
+
|
|
3
|
+
This project uses [Storybook](https://storybook.js.org/) to preview components.
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run:
|
|
8
|
+
|
|
9
|
+
### `yarn start`
|
|
10
|
+
|
|
11
|
+
Runs storybook in development mode. Opens storybook in a new browser tab.
|
|
12
|
+
|
|
13
|
+
### `yarn test`
|
|
14
|
+
|
|
15
|
+
Launches the test runner.
|
|
16
|
+
See the section about [running tests](https://storybook.js.org/tutorials/design-systems-for-developers/react/en/test/) for more information.
|
|
17
|
+
|
|
18
|
+
### `yarn build`
|
|
19
|
+
|
|
20
|
+
Builds the for production to the `dist` folder.
|
|
21
|
+
|
|
22
|
+
### `yarn build-docs`
|
|
23
|
+
|
|
24
|
+
Builds the documentation for production to the `storybook-static` folder.\
|
|
25
|
+
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
+
|
|
27
|
+
The build is minified and the filenames include the hashes.\
|
|
28
|
+
Your app is ready to be deployed!
|
|
29
|
+
|
|
30
|
+
See the section about [documentation](https://storybook.js.org/tutorials/design-systems-for-developers/react/en/document/) for more information.
|
|
31
|
+
|
|
32
|
+
## Learn More
|
|
33
|
+
|
|
34
|
+
You can learn more in the [Storybook Design System for Developers](https://storybook.js.org/tutorials/design-systems-for-developers/).
|
|
35
|
+
|
|
36
|
+
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ThemeOptions as MuiThemeOptions } from '@mui/material';
|
|
2
|
+
import '@fontsource/nunito-sans';
|
|
3
|
+
import '@fontsource/dosis';
|
|
4
|
+
declare module '@mui/material/Button' {
|
|
5
|
+
interface ButtonPropsVariantOverrides {
|
|
6
|
+
secondary: true;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
declare module '@mui/material/styles/createPalette' {
|
|
10
|
+
type ButtonPaletteColorOptions = SimplePaletteColorOptions & {
|
|
11
|
+
hover: string;
|
|
12
|
+
};
|
|
13
|
+
interface Palette {
|
|
14
|
+
button: ButtonPaletteColorOptions;
|
|
15
|
+
neutral: Palette['primary'];
|
|
16
|
+
}
|
|
17
|
+
interface PaletteOptions {
|
|
18
|
+
button?: ButtonPaletteColorOptions;
|
|
19
|
+
neutral?: PaletteColorOptions;
|
|
20
|
+
}
|
|
21
|
+
interface ThemeOptions extends MuiThemeOptions {
|
|
22
|
+
pallete?: {
|
|
23
|
+
button?: ButtonPaletteColorOptions;
|
|
24
|
+
neutral?: PaletteColorOptions;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
declare let theme: import("@mui/material").Theme;
|
|
29
|
+
export default theme;
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { createTheme } from '@mui/material';
|
|
14
|
+
import '@fontsource/nunito-sans';
|
|
15
|
+
import '@fontsource/dosis';
|
|
16
|
+
import sx from '@mui/system/sx';
|
|
17
|
+
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
|
|
18
|
+
import InfoIcon from '@mui/icons-material/Info';
|
|
19
|
+
import WarningIcon from '@mui/icons-material/Error';
|
|
20
|
+
import ErrorIcon from '@mui/icons-material/Cancel';
|
|
21
|
+
// create theme in steps https://mui.com/material-ui/customization/theming/#api
|
|
22
|
+
var theme = createTheme({
|
|
23
|
+
typography: {
|
|
24
|
+
fontFamily: ['Nunito Sans', 'Helvetica', 'sans-serif'].join(','),
|
|
25
|
+
h2: {
|
|
26
|
+
fontSize: '1.429rem',
|
|
27
|
+
lineHeight: '2.143rem',
|
|
28
|
+
fontWeight: '700',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
palette: {
|
|
32
|
+
primary: {
|
|
33
|
+
main: '#214167',
|
|
34
|
+
},
|
|
35
|
+
secondary: {
|
|
36
|
+
main: '#335B89',
|
|
37
|
+
contrastText: '#ffffff',
|
|
38
|
+
},
|
|
39
|
+
neutral: {
|
|
40
|
+
main: '#5C6269',
|
|
41
|
+
},
|
|
42
|
+
button: {
|
|
43
|
+
main: '#1871E8',
|
|
44
|
+
hover: '#335B89',
|
|
45
|
+
},
|
|
46
|
+
success: {
|
|
47
|
+
main: '#28BA3F',
|
|
48
|
+
},
|
|
49
|
+
info: {
|
|
50
|
+
main: '#325491',
|
|
51
|
+
},
|
|
52
|
+
warning: {
|
|
53
|
+
main: '#FFBB0A',
|
|
54
|
+
},
|
|
55
|
+
error: {
|
|
56
|
+
main: '#D43060',
|
|
57
|
+
},
|
|
58
|
+
divider: '#214167',
|
|
59
|
+
},
|
|
60
|
+
spacing: 10,
|
|
61
|
+
});
|
|
62
|
+
theme = createTheme(theme, {
|
|
63
|
+
components: {
|
|
64
|
+
MuiButton: {
|
|
65
|
+
defaultProps: {
|
|
66
|
+
variant: 'contained',
|
|
67
|
+
disableRipple: true,
|
|
68
|
+
},
|
|
69
|
+
styleOverrides: {
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
root: function (_a) {
|
|
72
|
+
var ownerState = _a.ownerState;
|
|
73
|
+
return (__assign(__assign({ textTransform: 'none', '&.Mui-disabled': {
|
|
74
|
+
borderColor: "#E0E8F0",
|
|
75
|
+
}, '&.Mui-disabled .MuiButton-startIcon': {
|
|
76
|
+
opacity: 0.3,
|
|
77
|
+
} }, (ownerState.variant === "contained" &&
|
|
78
|
+
{
|
|
79
|
+
fontWeight: '600',
|
|
80
|
+
backgroundColor: theme.palette.button.main,
|
|
81
|
+
':hover': {
|
|
82
|
+
backgroundColor: theme.palette.button.hover,
|
|
83
|
+
},
|
|
84
|
+
})), (ownerState.variant === "text" &&
|
|
85
|
+
{
|
|
86
|
+
fontWeight: '600',
|
|
87
|
+
color: theme.palette.button.main,
|
|
88
|
+
':hover': {
|
|
89
|
+
color: theme.palette.button.hover,
|
|
90
|
+
},
|
|
91
|
+
'.MuiButton-startIcon': {
|
|
92
|
+
color: "#555F7C",
|
|
93
|
+
marginRight: theme.spacing(2),
|
|
94
|
+
},
|
|
95
|
+
})));
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
variants: [
|
|
99
|
+
{
|
|
100
|
+
props: {
|
|
101
|
+
variant: 'secondary',
|
|
102
|
+
},
|
|
103
|
+
style: sx({
|
|
104
|
+
backgroundColor: 'white',
|
|
105
|
+
color: theme.palette.neutral.main,
|
|
106
|
+
border: "1px solid ".concat(theme.palette.neutral.main),
|
|
107
|
+
':hover': {
|
|
108
|
+
border: "1px solid ".concat(theme.palette.primary.main),
|
|
109
|
+
color: theme.palette.primary.main,
|
|
110
|
+
backgroundColor: 'white',
|
|
111
|
+
},
|
|
112
|
+
}),
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
MuiInputLabel: {
|
|
117
|
+
styleOverrides: {
|
|
118
|
+
root: sx({
|
|
119
|
+
color: "#5C6269",
|
|
120
|
+
fontSize: "14px",
|
|
121
|
+
lineHeight: "21px",
|
|
122
|
+
fontWeight: "600",
|
|
123
|
+
}),
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
MuiFormHelperText: {
|
|
127
|
+
styleOverrides: {
|
|
128
|
+
root: sx({
|
|
129
|
+
position: 'relative',
|
|
130
|
+
marginLeft: 0,
|
|
131
|
+
'&.Mui-error': {
|
|
132
|
+
paddingLeft: "17px",
|
|
133
|
+
'&::before': {
|
|
134
|
+
content: "\"\"",
|
|
135
|
+
height: "12px",
|
|
136
|
+
width: '12px',
|
|
137
|
+
position: 'absolute',
|
|
138
|
+
left: 0,
|
|
139
|
+
top: "50%",
|
|
140
|
+
transform: "translate(0, -50%)",
|
|
141
|
+
backgroundColor: theme.palette.error.main,
|
|
142
|
+
borderRadius: "100%",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
}),
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
MuiTextField: {
|
|
149
|
+
defaultProps: {
|
|
150
|
+
size: 'small',
|
|
151
|
+
},
|
|
152
|
+
styleOverrides: {
|
|
153
|
+
root: sx({
|
|
154
|
+
color: "#2A323C",
|
|
155
|
+
'& .MuiOutlinedInput-root': {
|
|
156
|
+
'& fieldset': {
|
|
157
|
+
borderColor: "#E0E8F0",
|
|
158
|
+
},
|
|
159
|
+
'&:hover fieldset': {
|
|
160
|
+
borderColor: "#335B89",
|
|
161
|
+
},
|
|
162
|
+
'&.Mui-focused fieldset': {
|
|
163
|
+
border: "1px solid #5C6269",
|
|
164
|
+
},
|
|
165
|
+
'&.Mui-error fieldset': {
|
|
166
|
+
borderColor: theme.palette.error.main,
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
}),
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
MuiStepIcon: {
|
|
173
|
+
styleOverrides: {
|
|
174
|
+
root: {
|
|
175
|
+
borderRadius: "100%",
|
|
176
|
+
outline: "1px solid #465364",
|
|
177
|
+
color: "white",
|
|
178
|
+
text: {
|
|
179
|
+
fill: "#465364",
|
|
180
|
+
},
|
|
181
|
+
'&.Mui-active': {
|
|
182
|
+
outline: "none",
|
|
183
|
+
color: theme.palette.button.main,
|
|
184
|
+
text: {
|
|
185
|
+
fill: "white",
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
MuiDialogTitle: {
|
|
192
|
+
styleOverrides: {
|
|
193
|
+
root: {
|
|
194
|
+
fontSize: "24px",
|
|
195
|
+
lineHeight: "34px",
|
|
196
|
+
paddingTop: theme.spacing(3),
|
|
197
|
+
paddingLeft: theme.spacing(3),
|
|
198
|
+
paddingRight: theme.spacing(3),
|
|
199
|
+
paddingBottom: theme.spacing(1),
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
MuiDialogContent: {
|
|
204
|
+
styleOverrides: {
|
|
205
|
+
root: {
|
|
206
|
+
paddingTop: 0,
|
|
207
|
+
paddingLeft: theme.spacing(3),
|
|
208
|
+
paddingRight: theme.spacing(3),
|
|
209
|
+
paddingBottom: theme.spacing(1),
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
MuiDialogActions: {
|
|
214
|
+
styleOverrides: {
|
|
215
|
+
root: {
|
|
216
|
+
padding: theme.spacing(3),
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
MuiLink: {
|
|
221
|
+
defaultProps: {
|
|
222
|
+
underline: "none",
|
|
223
|
+
color: "#1871E8",
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
MuiSnackbar: {
|
|
227
|
+
defaultProps: {
|
|
228
|
+
autoHideDuration: 6000,
|
|
229
|
+
anchorOrigin: {
|
|
230
|
+
vertical: "top",
|
|
231
|
+
horizontal: "right",
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
styleOverrides: {
|
|
235
|
+
root: {
|
|
236
|
+
width: "100%",
|
|
237
|
+
maxWidth: "415px",
|
|
238
|
+
position: "absolute",
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
MuiAlert: {
|
|
243
|
+
defaultProps: {
|
|
244
|
+
variant: "outlined",
|
|
245
|
+
iconMapping: {
|
|
246
|
+
success: _jsx(CheckCircleIcon, {}),
|
|
247
|
+
info: _jsx(InfoIcon, {}),
|
|
248
|
+
warning: _jsx(WarningIcon, {}),
|
|
249
|
+
error: _jsx(ErrorIcon, {}),
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
styleOverrides: {
|
|
253
|
+
root: {
|
|
254
|
+
width: "100%",
|
|
255
|
+
backgroundColor: "white",
|
|
256
|
+
borderColor: "#D5DFE9",
|
|
257
|
+
position: "relative",
|
|
258
|
+
overflow: "hidden",
|
|
259
|
+
'&:after': {
|
|
260
|
+
content: '""',
|
|
261
|
+
position: "absolute",
|
|
262
|
+
width: "4px",
|
|
263
|
+
left: 0,
|
|
264
|
+
top: 0,
|
|
265
|
+
bottom: 0,
|
|
266
|
+
},
|
|
267
|
+
'&.MuiAlert-outlinedSuccess:after': {
|
|
268
|
+
backgroundColor: theme.palette.success.main,
|
|
269
|
+
},
|
|
270
|
+
'&.MuiAlert-outlinedInfo:after': {
|
|
271
|
+
backgroundColor: theme.palette.info.main,
|
|
272
|
+
},
|
|
273
|
+
'&.MuiAlert-outlinedWarning:after': {
|
|
274
|
+
backgroundColor: theme.palette.warning.main,
|
|
275
|
+
},
|
|
276
|
+
'&.MuiAlert-outlinedError:after': {
|
|
277
|
+
backgroundColor: theme.palette.error.main,
|
|
278
|
+
},
|
|
279
|
+
'& .MuiAlert-icon': {
|
|
280
|
+
opacity: 1,
|
|
281
|
+
fontSize: 20,
|
|
282
|
+
},
|
|
283
|
+
'& .MuiAlert-message': {
|
|
284
|
+
fontSize: "12px",
|
|
285
|
+
lineHeight: "22px",
|
|
286
|
+
color: "black",
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
MuiCircularProgress: {
|
|
292
|
+
styleOverrides: {
|
|
293
|
+
root: {
|
|
294
|
+
color: theme.palette.button.main,
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
MuiCardContent: {
|
|
299
|
+
styleOverrides: {
|
|
300
|
+
root: {
|
|
301
|
+
padding: theme.spacing(2),
|
|
302
|
+
paddingTop: theme.spacing(1),
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
MuiDataGrid: {
|
|
307
|
+
styleOverrides: {
|
|
308
|
+
root: {
|
|
309
|
+
'& .MuiDataGrid-columnHeader:focus': {
|
|
310
|
+
outline: 0,
|
|
311
|
+
},
|
|
312
|
+
'& .MuiDataGrid-cell:focus': {
|
|
313
|
+
outline: 0,
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
});
|
|
320
|
+
export default theme;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps as MuiButtonProps } from '@mui/material';
|
|
3
|
+
export declare type ButtonProps = {
|
|
4
|
+
/**
|
|
5
|
+
Use the isProcessing prop to indicate to the user that an action is in process. This will disable the button.
|
|
6
|
+
*/
|
|
7
|
+
isProcessing?: boolean;
|
|
8
|
+
} & MuiButtonProps;
|
|
9
|
+
/**
|
|
10
|
+
- Use a button for common user click actions. Several variations available.
|
|
11
|
+
**/
|
|
12
|
+
declare const Button: ({ children, isProcessing, ...props }: ButtonProps) => JSX.Element;
|
|
13
|
+
export default Button;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { Button as MuiButton, CircularProgress, Box } from '@mui/material';
|
|
25
|
+
/**
|
|
26
|
+
- Use a button for common user click actions. Several variations available.
|
|
27
|
+
**/
|
|
28
|
+
var Button = function (_a) {
|
|
29
|
+
var children = _a.children, _b = _a.isProcessing, isProcessing = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isProcessing"]);
|
|
30
|
+
var processingIndicator = (_jsx(Box, __assign({ sx: {
|
|
31
|
+
position: "absolute",
|
|
32
|
+
top: 0,
|
|
33
|
+
left: 0,
|
|
34
|
+
right: 0,
|
|
35
|
+
bottom: 0,
|
|
36
|
+
display: "grid",
|
|
37
|
+
justifyItems: "center",
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
} }, { children: _jsx(CircularProgress, { size: 20 }) })));
|
|
40
|
+
var indicator = isProcessing ? processingIndicator : null;
|
|
41
|
+
return (_jsxs(Box, __assign({ sx: {
|
|
42
|
+
display: "inline-flex",
|
|
43
|
+
position: "relative",
|
|
44
|
+
} }, { children: [_jsx(MuiButton, __assign({}, props, { disabled: isProcessing || props.disabled }, { children: children })), indicator] })));
|
|
45
|
+
};
|
|
46
|
+
export default Button;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { ThemeProvider as MuiThemeProvider } from '@mui/system';
|
|
14
|
+
import theme from '../../assets/theme';
|
|
15
|
+
var ThemeProvider = function (_a) {
|
|
16
|
+
var children = _a.children;
|
|
17
|
+
return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: children })));
|
|
18
|
+
};
|
|
19
|
+
export default ThemeProvider;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './components/Button';
|
|
2
|
+
export { default as Button } from "./components/Button";
|
|
3
|
+
export * from './components/ThemeProvider';
|
|
4
|
+
export { default as ThemeProvider } from './components/ThemeProvider';
|
|
5
|
+
export * from './assets/theme';
|
|
6
|
+
export { default as theme } from './assets/theme';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './components/Button';
|
|
2
|
+
export { default as Button } from "./components/Button";
|
|
3
|
+
export * from './components/ThemeProvider';
|
|
4
|
+
export { default as ThemeProvider } from './components/ThemeProvider';
|
|
5
|
+
export * from './assets/theme';
|
|
6
|
+
export { default as theme } from './assets/theme';
|
package/package.json
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@veritone-ce/design-system",
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"private": false,
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@emotion/react": "^11.10.4",
|
|
7
|
+
"@emotion/styled": "^11.10.4",
|
|
8
|
+
"@fontsource/dosis": "^4.5.10",
|
|
9
|
+
"@fontsource/nunito-sans": "^4.5.10",
|
|
10
|
+
"@fontsource/roboto": "^4.5.8",
|
|
11
|
+
"@mui/icons-material": "^5.10.6",
|
|
12
|
+
"@mui/material": "^5.10.8",
|
|
13
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
14
|
+
"@testing-library/react": "^13.0.0",
|
|
15
|
+
"@testing-library/user-event": "^13.2.1",
|
|
16
|
+
"@types/jest": "^27.0.1",
|
|
17
|
+
"@types/node": "^16.7.13",
|
|
18
|
+
"react-scripts": "5.0.1",
|
|
19
|
+
"typescript": "^4.4.2",
|
|
20
|
+
"web-vitals": "^2.1.0"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"start": "yarn storybook",
|
|
24
|
+
"build": "yarn tsc",
|
|
25
|
+
"build-docs": "yarn build-storybook-docs",
|
|
26
|
+
"test": "yarn test-storybook",
|
|
27
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
28
|
+
"release": "auto shipit --base-branch=main",
|
|
29
|
+
"build-storybook": "build-storybook -s public",
|
|
30
|
+
"test-storybook": "test-storybook",
|
|
31
|
+
"build-storybook-docs": "build-storybook --docs",
|
|
32
|
+
"prepare": "install-peers"
|
|
33
|
+
},
|
|
34
|
+
"eslintConfig": {
|
|
35
|
+
"extends": [
|
|
36
|
+
"react-app",
|
|
37
|
+
"react-app/jest"
|
|
38
|
+
],
|
|
39
|
+
"overrides": [
|
|
40
|
+
{
|
|
41
|
+
"files": [
|
|
42
|
+
"**/*.stories.*"
|
|
43
|
+
],
|
|
44
|
+
"rules": {
|
|
45
|
+
"import/no-anonymous-default-export": "off"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"browserslist": {
|
|
51
|
+
"production": [
|
|
52
|
+
">0.2%",
|
|
53
|
+
"not dead",
|
|
54
|
+
"not op_mini all"
|
|
55
|
+
],
|
|
56
|
+
"development": [
|
|
57
|
+
"last 1 chrome version",
|
|
58
|
+
"last 1 firefox version",
|
|
59
|
+
"last 1 safari version"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@babel/cli": "^7.19.3",
|
|
64
|
+
"@storybook/addon-a11y": "^6.5.12",
|
|
65
|
+
"@storybook/addon-actions": "^6.5.12",
|
|
66
|
+
"@storybook/addon-essentials": "^6.5.12",
|
|
67
|
+
"@storybook/addon-interactions": "^6.5.12",
|
|
68
|
+
"@storybook/addon-links": "^6.5.12",
|
|
69
|
+
"@storybook/builder-webpack5": "^6.5.12",
|
|
70
|
+
"@storybook/jest": "^0.0.10",
|
|
71
|
+
"@storybook/manager-webpack5": "^6.5.12",
|
|
72
|
+
"@storybook/node-logger": "^6.5.12",
|
|
73
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
74
|
+
"@storybook/react": "^6.5.12",
|
|
75
|
+
"@storybook/test-runner": "^0.7.2",
|
|
76
|
+
"@storybook/testing-library": "^0.0.13",
|
|
77
|
+
"auto": "^10.37.6",
|
|
78
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
79
|
+
"chromatic": "^6.10.1",
|
|
80
|
+
"cross-env": "^7.0.3",
|
|
81
|
+
"install-peers-cli": "^2.2.0",
|
|
82
|
+
"jest": "27",
|
|
83
|
+
"prettier": "^2.7.1",
|
|
84
|
+
"prop-types": "^15.8.1",
|
|
85
|
+
"webpack": "^5.74.0"
|
|
86
|
+
},
|
|
87
|
+
"peerDependencies": {
|
|
88
|
+
"@types/react": "^18.0.0",
|
|
89
|
+
"@types/react-dom": "^18.0.0",
|
|
90
|
+
"react": "^18.2.0",
|
|
91
|
+
"react-dom": "^18.2.0"
|
|
92
|
+
},
|
|
93
|
+
"babel": {
|
|
94
|
+
"presets": [
|
|
95
|
+
[
|
|
96
|
+
"react-app",
|
|
97
|
+
{
|
|
98
|
+
"absoluteRuntime": false
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"description": "Design System for Veritone CE",
|
|
104
|
+
"repository": {
|
|
105
|
+
"type": "git",
|
|
106
|
+
"url": "git+ssh://git@github.com/veritone/design-system.git"
|
|
107
|
+
},
|
|
108
|
+
"author": "Veritone",
|
|
109
|
+
"license": "MIT",
|
|
110
|
+
"bugs": {
|
|
111
|
+
"url": "https://github.com/veritone/design-system/issues"
|
|
112
|
+
},
|
|
113
|
+
"homepage": "https://github.com/veritone/design-system#readme",
|
|
114
|
+
"keywords": [
|
|
115
|
+
"design system",
|
|
116
|
+
"ui library"
|
|
117
|
+
],
|
|
118
|
+
"main": "dist/index.js",
|
|
119
|
+
"module": "dist/index.js",
|
|
120
|
+
"files": [
|
|
121
|
+
"dist"
|
|
122
|
+
],
|
|
123
|
+
"types": "dist/index.d.ts"
|
|
124
|
+
}
|