@veritone-ce/design-system 1.12.28 → 1.12.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/dist/assets/theme.d.ts +13 -11
- package/dist/assets/theme.js +53 -42
- package/dist/components/Alert/index.d.ts +22 -0
- package/dist/components/Alert/index.js +62 -0
- package/dist/components/AudioSlider/index.d.ts +12 -0
- package/dist/components/AudioSlider/index.js +73 -0
- package/dist/components/Box/index.d.ts +9 -4
- package/dist/components/Box/index.js +11 -10
- package/dist/components/Breadcrumbs/index.d.ts +6 -3
- package/dist/components/Breadcrumbs/index.js +15 -13
- package/dist/components/Button/Indicator.js +6 -4
- package/dist/components/Button/index.d.ts +14 -5
- package/dist/components/Button/index.js +27 -26
- package/dist/components/Checkbox/index.d.ts +10 -3
- package/dist/components/Checkbox/index.js +11 -14
- package/dist/components/Drawer/index.d.ts +12 -4
- package/dist/components/Drawer/index.js +12 -10
- package/dist/components/FileUploader/index.d.ts +21 -8
- package/dist/components/FileUploader/index.js +70 -102
- package/dist/components/FileUploader/useUploadFile.d.ts +1 -1
- package/dist/components/FileUploader/useUploadFile.js +10 -9
- package/dist/components/FormControlLabel/index.d.ts +9 -4
- package/dist/components/FormControlLabel/index.js +11 -10
- package/dist/components/Input/index.d.ts +22 -4
- package/dist/components/Input/index.js +27 -13
- package/dist/components/LinearProgress/index.d.ts +9 -4
- package/dist/components/LinearProgress/index.js +9 -37
- package/dist/components/Link/index.d.ts +7 -4
- package/dist/components/Link/index.js +13 -4
- package/dist/components/List/index.d.ts +8 -4
- package/dist/components/List/index.js +10 -10
- package/dist/components/ListItem/index.d.ts +8 -4
- package/dist/components/ListItem/index.js +10 -10
- package/dist/components/ListItemButton/index.d.ts +10 -4
- package/dist/components/ListItemButton/index.js +12 -10
- package/dist/components/ListItemText/index.d.ts +8 -4
- package/dist/components/ListItemText/index.js +10 -10
- package/dist/components/MenuFlyout/index.d.ts +11 -5
- package/dist/components/MenuFlyout/index.js +9 -19
- package/dist/components/Modal/index.d.ts +7 -4
- package/dist/components/Modal/index.js +10 -21
- package/dist/components/Panel/index.d.ts +7 -6
- package/dist/components/Panel/index.js +7 -16
- package/dist/components/ProgressIndicator/DefaultProgress.d.ts +2 -2
- package/dist/components/ProgressIndicator/DefaultProgress.js +10 -15
- package/dist/components/ProgressIndicator/MLProgress.d.ts +5 -2
- package/dist/components/ProgressIndicator/MLProgress.js +9 -14
- package/dist/components/ProgressIndicator/index.d.ts +13 -4
- package/dist/components/ProgressIndicator/index.js +4 -2
- package/dist/components/RadioButton/index.d.ts +15 -5
- package/dist/components/RadioButton/index.js +12 -17
- package/dist/components/RadioGroup/index.d.ts +28 -4
- package/dist/components/RadioGroup/index.js +13 -10
- package/dist/components/Select/index.d.ts +35 -9
- package/dist/components/Select/index.js +29 -30
- package/dist/components/StatusChip/index.d.ts +10 -8
- package/dist/components/StatusChip/index.js +12 -16
- package/dist/components/Step/index.d.ts +21 -4
- package/dist/components/Step/index.js +12 -11
- package/dist/components/StepLabel/index.d.ts +11 -4
- package/dist/components/StepLabel/index.js +10 -10
- package/dist/components/Stepper/index.d.ts +16 -7
- package/dist/components/Stepper/index.js +9 -11
- package/dist/components/Table/index.d.ts +85 -0
- package/dist/components/Table/index.js +123 -0
- package/dist/components/Tabs/index.d.ts +10 -6
- package/dist/components/Tabs/index.js +40 -48
- package/dist/components/ThemeProvider/index.d.ts +8 -2
- package/dist/components/ThemeProvider/index.js +12 -6
- package/dist/components/Toast/index.d.ts +5 -21
- package/dist/components/Toast/index.js +17 -51
- package/dist/components/Typography/index.d.ts +9 -3
- package/dist/components/Typography/index.js +10 -11
- package/dist/components/UtilityRail/index.d.ts +4 -3
- package/dist/components/UtilityRail/index.js +10 -18
- package/dist/components/ZeroState/index.d.ts +2 -0
- package/dist/components/ZeroState/index.js +25 -0
- package/dist/components/icons/HomeOutlinedIcon/index.d.ts +5 -0
- package/dist/components/icons/HomeOutlinedIcon/index.js +15 -0
- package/dist/components/icons/IconGroups/index.d.ts +5 -0
- package/dist/components/icons/IconGroups/index.js +16 -0
- package/dist/components/icons/IconListItem/index.d.ts +7 -0
- package/dist/components/icons/IconListItem/index.js +17 -0
- package/dist/index.d.ts +57 -23
- package/dist/index.js +85 -38
- package/package.json +4 -3
- package/dist/components/Button/useButtonProps.d.ts +0 -3
- package/dist/components/Button/useButtonProps.js +0 -26
- package/dist/components/CustomSlider/index.d.ts +0 -12
- package/dist/components/CustomSlider/index.js +0 -89
- package/dist/components/HomeOutlinedIcon/index.d.ts +0 -5
- package/dist/components/HomeOutlinedIcon/index.js +0 -22
- package/dist/components/IconGroups/index.d.ts +0 -5
- package/dist/components/IconGroups/index.js +0 -23
- package/dist/components/IconListItem/index.d.ts +0 -7
- package/dist/components/IconListItem/index.js +0 -27
- package/dist/components/ModelGridView/index.d.ts +0 -15
- package/dist/components/ModelGridView/index.js +0 -330
- package/dist/components/Tabs/Badge.d.ts +0 -7
- package/dist/components/Tabs/Badge.js +0 -29
package/dist/assets/theme.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PaletteColorOptions, SimplePaletteColorOptions } from '@mui/material';
|
|
1
|
+
import { PaletteColorOptions, SimplePaletteColorOptions, useTheme as muiUseTheme } from '@mui/material';
|
|
2
|
+
import { Theme as MuiTheme, ThemeOptions } from '@mui/material/styles';
|
|
2
3
|
declare module '@mui/material/Button' {
|
|
3
4
|
interface ButtonPropsVariantOverrides {
|
|
4
5
|
primary: true;
|
|
@@ -6,8 +7,8 @@ declare module '@mui/material/Button' {
|
|
|
6
7
|
tertiary: true;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
10
|
+
type Colors = typeof colors;
|
|
9
11
|
declare module '@mui/material/styles' {
|
|
10
|
-
type Colors = typeof colors;
|
|
11
12
|
type ButtonPaletteColorOptions = SimplePaletteColorOptions & {
|
|
12
13
|
hover: string;
|
|
13
14
|
};
|
|
@@ -15,16 +16,16 @@ declare module '@mui/material/styles' {
|
|
|
15
16
|
type TextPaletteColorOptions = Colors['text'];
|
|
16
17
|
interface TypeText extends TextPaletteColorOptions {
|
|
17
18
|
}
|
|
19
|
+
interface PaletteOptions {
|
|
20
|
+
neutral?: PaletteColorOptions;
|
|
21
|
+
button?: ButtonPaletteColorOptions;
|
|
22
|
+
misc?: MiscPaletteColorOptions;
|
|
23
|
+
}
|
|
18
24
|
interface Palette {
|
|
19
25
|
neutral: Pick<Palette['primary'], 'main'>;
|
|
20
26
|
button: ButtonPaletteColorOptions;
|
|
21
27
|
misc: MiscPaletteColorOptions;
|
|
22
28
|
}
|
|
23
|
-
interface PaletteOptions {
|
|
24
|
-
neutral: PaletteColorOptions;
|
|
25
|
-
button: ButtonPaletteColorOptions;
|
|
26
|
-
misc: MiscPaletteColorOptions;
|
|
27
|
-
}
|
|
28
29
|
}
|
|
29
30
|
export declare const colors: {
|
|
30
31
|
brand: {
|
|
@@ -54,7 +55,8 @@ export declare const colors: {
|
|
|
54
55
|
rowOnHoverGreyTwo: string;
|
|
55
56
|
};
|
|
56
57
|
};
|
|
57
|
-
export type Theme =
|
|
58
|
-
declare
|
|
59
|
-
export declare
|
|
60
|
-
export
|
|
58
|
+
export type Theme = MuiTheme;
|
|
59
|
+
export declare const useTheme: typeof muiUseTheme;
|
|
60
|
+
export declare let defaultTheme: MuiTheme;
|
|
61
|
+
export declare const createDesignSystemTheme: (newTheme?: ThemeOptions) => Theme;
|
|
62
|
+
export {};
|
package/dist/assets/theme.js
CHANGED
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports
|
|
7
|
+
exports.useTheme = exports.defaultTheme = exports.createDesignSystemTheme = exports.colors = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _material = require("@mui/material");
|
|
10
10
|
var _stepper = _interopRequireDefault(require("../components/Stepper/stepper.theme"));
|
|
@@ -88,19 +88,30 @@ var colors = {
|
|
|
88
88
|
rowOnHoverGreyTwo: "#EAF1FA"
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
exports.colors = colors;
|
|
92
|
-
// create theme in steps https://mui.com/material-ui/customization/theming/#api
|
|
93
91
|
|
|
94
|
-
|
|
92
|
+
// create theme in steps https://mui.com/material-ui/customization/theming/#api
|
|
93
|
+
exports.colors = colors;
|
|
94
|
+
var useTheme = _material.useTheme;
|
|
95
|
+
exports.useTheme = useTheme;
|
|
96
|
+
var defaultTheme = (0, _material.createTheme)({
|
|
95
97
|
typography: {
|
|
96
|
-
fontFamily:
|
|
98
|
+
fontFamily: 'Nunito Sans, Helvetica, sans-serif',
|
|
97
99
|
h2: {
|
|
98
100
|
fontSize: '1.429rem',
|
|
99
101
|
lineHeight: '2.143rem',
|
|
100
102
|
fontWeight: '700'
|
|
101
103
|
},
|
|
102
104
|
body1: {
|
|
105
|
+
fontSize: '14px',
|
|
106
|
+
fontWeight: '400',
|
|
103
107
|
color: colors.text.primary
|
|
108
|
+
},
|
|
109
|
+
body2: {
|
|
110
|
+
fontSize: '18px',
|
|
111
|
+
fontWeight: '400'
|
|
112
|
+
},
|
|
113
|
+
subtitle1: {
|
|
114
|
+
fontSize: '10px'
|
|
104
115
|
}
|
|
105
116
|
},
|
|
106
117
|
palette: {
|
|
@@ -140,24 +151,25 @@ var theme = (0, _material.createTheme)({
|
|
|
140
151
|
},
|
|
141
152
|
spacing: 10
|
|
142
153
|
});
|
|
143
|
-
|
|
154
|
+
exports.defaultTheme = defaultTheme;
|
|
155
|
+
exports.defaultTheme = defaultTheme = (0, _material.createTheme)(defaultTheme, {
|
|
144
156
|
components: _objectSpread(_objectSpread({
|
|
145
|
-
MuiButton: (0, _button["default"])(
|
|
146
|
-
}, (0, _stepper["default"])(
|
|
147
|
-
MuiSelect: (0, _select["default"])(
|
|
148
|
-
MuiTextField: (0, _input["default"])(
|
|
149
|
-
MuiDialog: (0, _modal["default"])(
|
|
150
|
-
MuiCheckbox: (0, _checkbox["default"])(
|
|
151
|
-
MuiRadio: (0, _RadioButton["default"])(
|
|
152
|
-
MuiTabs: (0, _tabs["default"])(
|
|
153
|
-
MuiChip: (0, _statusChip["default"])(
|
|
154
|
-
MuiMenu: (0, _menuFlyout.menuFlyoutTheme)(
|
|
155
|
-
MuiMenuItem: (0, _menuFlyout.menuItemTheme)(
|
|
156
|
-
MuiLinearProgress: (0, _linearProgress["default"])(
|
|
157
|
+
MuiButton: (0, _button["default"])(defaultTheme)
|
|
158
|
+
}, (0, _stepper["default"])(defaultTheme)), {}, {
|
|
159
|
+
MuiSelect: (0, _select["default"])(defaultTheme),
|
|
160
|
+
MuiTextField: (0, _input["default"])(defaultTheme),
|
|
161
|
+
MuiDialog: (0, _modal["default"])(defaultTheme),
|
|
162
|
+
MuiCheckbox: (0, _checkbox["default"])(defaultTheme),
|
|
163
|
+
MuiRadio: (0, _RadioButton["default"])(defaultTheme),
|
|
164
|
+
MuiTabs: (0, _tabs["default"])(defaultTheme),
|
|
165
|
+
MuiChip: (0, _statusChip["default"])(defaultTheme),
|
|
166
|
+
MuiMenu: (0, _menuFlyout.menuFlyoutTheme)(defaultTheme),
|
|
167
|
+
MuiMenuItem: (0, _menuFlyout.menuItemTheme)(defaultTheme),
|
|
168
|
+
MuiLinearProgress: (0, _linearProgress["default"])(defaultTheme),
|
|
157
169
|
MuiInputLabel: {
|
|
158
170
|
styleOverrides: {
|
|
159
171
|
root: {
|
|
160
|
-
color:
|
|
172
|
+
color: defaultTheme.palette.text.secondary,
|
|
161
173
|
fontSize: "14px",
|
|
162
174
|
lineHeight: "21px",
|
|
163
175
|
fontWeight: "600"
|
|
@@ -168,10 +180,10 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
168
180
|
styleOverrides: {
|
|
169
181
|
root: {
|
|
170
182
|
'& .MuiFormControlLabel-label': {
|
|
171
|
-
color:
|
|
183
|
+
color: defaultTheme.palette.text.secondary
|
|
172
184
|
},
|
|
173
185
|
'& .MuiFormControlLabel-label.Mui-disabled': {
|
|
174
|
-
color:
|
|
186
|
+
color: defaultTheme.palette.text.disabled
|
|
175
187
|
}
|
|
176
188
|
}
|
|
177
189
|
}
|
|
@@ -191,7 +203,7 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
191
203
|
left: 0,
|
|
192
204
|
top: "50%",
|
|
193
205
|
transform: "translate(0, -50%)",
|
|
194
|
-
backgroundColor:
|
|
206
|
+
backgroundColor: defaultTheme.palette.error.main,
|
|
195
207
|
borderRadius: "100%"
|
|
196
208
|
}
|
|
197
209
|
}
|
|
@@ -203,10 +215,10 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
203
215
|
root: {
|
|
204
216
|
fontSize: "24px",
|
|
205
217
|
lineHeight: "34px",
|
|
206
|
-
paddingTop:
|
|
207
|
-
paddingLeft:
|
|
208
|
-
paddingRight:
|
|
209
|
-
paddingBottom:
|
|
218
|
+
paddingTop: defaultTheme.spacing(3),
|
|
219
|
+
paddingLeft: defaultTheme.spacing(3),
|
|
220
|
+
paddingRight: defaultTheme.spacing(3),
|
|
221
|
+
paddingBottom: defaultTheme.spacing(1)
|
|
210
222
|
}
|
|
211
223
|
}
|
|
212
224
|
},
|
|
@@ -214,16 +226,16 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
214
226
|
styleOverrides: {
|
|
215
227
|
root: {
|
|
216
228
|
paddingTop: 0,
|
|
217
|
-
paddingLeft:
|
|
218
|
-
paddingRight:
|
|
219
|
-
paddingBottom:
|
|
229
|
+
paddingLeft: defaultTheme.spacing(3),
|
|
230
|
+
paddingRight: defaultTheme.spacing(3),
|
|
231
|
+
paddingBottom: defaultTheme.spacing(1)
|
|
220
232
|
}
|
|
221
233
|
}
|
|
222
234
|
},
|
|
223
235
|
MuiDialogActions: {
|
|
224
236
|
styleOverrides: {
|
|
225
237
|
root: {
|
|
226
|
-
padding:
|
|
238
|
+
padding: defaultTheme.spacing(3)
|
|
227
239
|
}
|
|
228
240
|
}
|
|
229
241
|
},
|
|
@@ -275,16 +287,16 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
275
287
|
bottom: 0
|
|
276
288
|
},
|
|
277
289
|
'&.MuiAlert-outlinedSuccess:after': {
|
|
278
|
-
backgroundColor:
|
|
290
|
+
backgroundColor: defaultTheme.palette.success.main
|
|
279
291
|
},
|
|
280
292
|
'&.MuiAlert-outlinedInfo:after': {
|
|
281
|
-
backgroundColor:
|
|
293
|
+
backgroundColor: defaultTheme.palette.secondary.main
|
|
282
294
|
},
|
|
283
295
|
'&.MuiAlert-outlinedWarning:after': {
|
|
284
|
-
backgroundColor:
|
|
296
|
+
backgroundColor: defaultTheme.palette.warning.main
|
|
285
297
|
},
|
|
286
298
|
'&.MuiAlert-outlinedError:after': {
|
|
287
|
-
backgroundColor:
|
|
299
|
+
backgroundColor: defaultTheme.palette.error.main
|
|
288
300
|
},
|
|
289
301
|
'& .MuiAlert-icon': {
|
|
290
302
|
opacity: 1,
|
|
@@ -304,15 +316,15 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
304
316
|
MuiCircularProgress: {
|
|
305
317
|
styleOverrides: {
|
|
306
318
|
root: {
|
|
307
|
-
color:
|
|
319
|
+
color: defaultTheme.palette.button.main
|
|
308
320
|
}
|
|
309
321
|
}
|
|
310
322
|
},
|
|
311
323
|
MuiCardContent: {
|
|
312
324
|
styleOverrides: {
|
|
313
325
|
root: {
|
|
314
|
-
padding:
|
|
315
|
-
paddingTop:
|
|
326
|
+
padding: defaultTheme.spacing(2),
|
|
327
|
+
paddingTop: defaultTheme.spacing(1)
|
|
316
328
|
}
|
|
317
329
|
}
|
|
318
330
|
},
|
|
@@ -340,9 +352,8 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
340
352
|
}
|
|
341
353
|
})
|
|
342
354
|
});
|
|
343
|
-
var createDesignSystemTheme = function createDesignSystemTheme(
|
|
344
|
-
|
|
355
|
+
var createDesignSystemTheme = function createDesignSystemTheme() {
|
|
356
|
+
var newTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
357
|
+
return (0, _material.createTheme)((0, _deepmerge["default"])(defaultTheme, newTheme || {}));
|
|
345
358
|
};
|
|
346
|
-
exports.createDesignSystemTheme = createDesignSystemTheme;
|
|
347
|
-
var _default = theme;
|
|
348
|
-
exports["default"] = _default;
|
|
359
|
+
exports.createDesignSystemTheme = createDesignSystemTheme;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertColor } from '@mui/material/Alert/Alert';
|
|
3
|
+
import { SxProps, Theme } from '@mui/system';
|
|
4
|
+
export type AlertProps = {
|
|
5
|
+
'data-testid'?: string;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
text?: string;
|
|
8
|
+
/**
|
|
9
|
+
* - Use can pass messageLabel or messageText
|
|
10
|
+
* - If these props are not passed in, the default label and text will be set based on severity
|
|
11
|
+
**/
|
|
12
|
+
link?: {
|
|
13
|
+
href: string;
|
|
14
|
+
content: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
severity?: AlertColor;
|
|
17
|
+
onClose?(): void;
|
|
18
|
+
sx?: SxProps<Theme>;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const Alert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default Alert;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _material = require("@mui/material");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Link = _interopRequireDefault(require("../Link"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
var defaultMessageLabel = {
|
|
13
|
+
success: "Success",
|
|
14
|
+
info: "Info",
|
|
15
|
+
warning: "Alert",
|
|
16
|
+
error: "Error"
|
|
17
|
+
};
|
|
18
|
+
var defaultMessageText = {
|
|
19
|
+
success: "Your action was completed. ",
|
|
20
|
+
info: "General information. ",
|
|
21
|
+
warning: "Your action is required. ",
|
|
22
|
+
error: "An error has occured. "
|
|
23
|
+
};
|
|
24
|
+
var Alert = function Alert(props) {
|
|
25
|
+
var _props$severity;
|
|
26
|
+
var severity = (_props$severity = props.severity) !== null && _props$severity !== void 0 ? _props$severity : 'success';
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Alert, {
|
|
28
|
+
"data-testid": props['data-testid'],
|
|
29
|
+
onClose: props.onClose,
|
|
30
|
+
severity: severity,
|
|
31
|
+
sx: props.sx,
|
|
32
|
+
className: props.className,
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
34
|
+
sx: {
|
|
35
|
+
display: "flex",
|
|
36
|
+
alignItems: "center"
|
|
37
|
+
},
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
39
|
+
sx: {
|
|
40
|
+
fontSize: "12px",
|
|
41
|
+
fontWeight: "bold",
|
|
42
|
+
marginRight: "2px"
|
|
43
|
+
},
|
|
44
|
+
children: props.label ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
45
|
+
children: [props.label, ': ']
|
|
46
|
+
}) : "".concat(defaultMessageLabel[severity], ": ")
|
|
47
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
48
|
+
sx: {
|
|
49
|
+
fontSize: "12px"
|
|
50
|
+
},
|
|
51
|
+
children: props.text ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
52
|
+
children: [props.text, " "]
|
|
53
|
+
}) : defaultMessageText[severity]
|
|
54
|
+
}), props.link && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Link["default"], {
|
|
55
|
+
href: props.link.href,
|
|
56
|
+
children: props.link.content
|
|
57
|
+
})]
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
var _default = Alert;
|
|
62
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type AudioSliderProps = {
|
|
2
|
+
'data-testid'?: string;
|
|
3
|
+
value: number;
|
|
4
|
+
onChange?(event: Event, value: number): void;
|
|
5
|
+
label?: string;
|
|
6
|
+
max?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
step?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const AudioSlider: (props: AudioSliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default AudioSlider;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _Slider = _interopRequireDefault(require("@mui/material/Slider"));
|
|
8
|
+
var _styles = require("@mui/material/styles");
|
|
9
|
+
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
var MuiSlider = (0, _styles.styled)(_Slider["default"])({
|
|
13
|
+
color: '#1871E8',
|
|
14
|
+
height: 6,
|
|
15
|
+
'& .MuiSlider-track': {
|
|
16
|
+
border: 'none',
|
|
17
|
+
height: '6px'
|
|
18
|
+
},
|
|
19
|
+
'& .MuiSlider-thumb': {
|
|
20
|
+
height: 18,
|
|
21
|
+
width: 14,
|
|
22
|
+
backgroundColor: '#2A323C',
|
|
23
|
+
borderRadius: 2,
|
|
24
|
+
position: 'relative',
|
|
25
|
+
'&::before': {
|
|
26
|
+
content: '""',
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
width: 1,
|
|
29
|
+
height: 12,
|
|
30
|
+
backgroundColor: '#FFFFFF',
|
|
31
|
+
top: '50%',
|
|
32
|
+
left: '50%',
|
|
33
|
+
transform: 'translate(-50%, -50%)'
|
|
34
|
+
},
|
|
35
|
+
'&:hover': {
|
|
36
|
+
outline: 'none'
|
|
37
|
+
},
|
|
38
|
+
'&:active': {
|
|
39
|
+
outline: 'none'
|
|
40
|
+
},
|
|
41
|
+
'&:focus': {
|
|
42
|
+
outline: 'none'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
'& .MuiSlider-rail': {
|
|
46
|
+
height: '6px',
|
|
47
|
+
backgroundColor: '#9FA2A4'
|
|
48
|
+
},
|
|
49
|
+
'& .MuiSlider-thumb.Mui-focusVisible, .MuiSlider-thumb:hover': {
|
|
50
|
+
boxShadow: 'none'
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
var AudioSlider = function AudioSlider(props) {
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
|
|
55
|
+
sx: {
|
|
56
|
+
width: 320
|
|
57
|
+
},
|
|
58
|
+
className: props.className,
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(MuiSlider, {
|
|
60
|
+
"data-testid": props['data-testid'],
|
|
61
|
+
"aria-label": "audio-slider",
|
|
62
|
+
value: props.value,
|
|
63
|
+
max: props.max,
|
|
64
|
+
step: props.step,
|
|
65
|
+
onChange: props.onChange && function (event, value) {
|
|
66
|
+
props.onChange(event, value);
|
|
67
|
+
},
|
|
68
|
+
disabled: props.disabled
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
var _default = AudioSlider;
|
|
73
|
+
exports["default"] = _default;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/system';
|
|
3
|
+
export type BoxProps = {
|
|
3
4
|
'data-testid'?: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
component?: React.ElementType;
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Box: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
11
|
export default Box;
|
|
@@ -6,17 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
var Box = function Box(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
component: props.component,
|
|
17
|
+
sx: props.sx,
|
|
18
|
+
className: props.className,
|
|
19
|
+
children: props.children
|
|
20
|
+
});
|
|
20
21
|
};
|
|
21
22
|
var _default = Box;
|
|
22
23
|
exports["default"] = _default;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
export type BreadcrumbsProps = {
|
|
2
3
|
'data-testid'?: string;
|
|
3
4
|
links: {
|
|
4
5
|
href: string;
|
|
5
6
|
label: string;
|
|
6
7
|
}[];
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
className?: string;
|
|
7
10
|
};
|
|
8
11
|
/**
|
|
9
12
|
* - This is the breadcrumbs component that is used in the header
|
|
@@ -11,5 +14,5 @@ type BreadcrumbsProps = {
|
|
|
11
14
|
* - The last link is not clickable
|
|
12
15
|
* - The last link is styled differently
|
|
13
16
|
**/
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
17
|
+
declare const Breadcrumbs: (props: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default Breadcrumbs;
|
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
|
-
var _theme = _interopRequireDefault(require("../../assets/theme"));
|
|
9
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
9
|
/**
|
|
12
10
|
* - This is the breadcrumbs component that is used in the header
|
|
13
11
|
* - It takes in an array of links and renders them as breadcrumbs
|
|
@@ -15,17 +13,19 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15
13
|
* - The last link is styled differently
|
|
16
14
|
**/
|
|
17
15
|
|
|
18
|
-
var
|
|
19
|
-
var _ref$links = _ref.links,
|
|
20
|
-
links = _ref$links === void 0 ? [] : _ref$links;
|
|
16
|
+
var Breadcrumbs = function Breadcrumbs(props) {
|
|
21
17
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Breadcrumbs, {
|
|
22
18
|
"aria-label": "breadcrumbs",
|
|
23
|
-
"data-testid":
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
"data-testid": props['data-testid'],
|
|
20
|
+
sx: props.sx,
|
|
21
|
+
className: props.className,
|
|
22
|
+
children: props.links.map(function (link, index) {
|
|
23
|
+
if (index === props.links.length - 1) {
|
|
26
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
27
25
|
sx: {
|
|
28
|
-
color:
|
|
26
|
+
color: function color(theme) {
|
|
27
|
+
return theme.palette.text.disabled;
|
|
28
|
+
},
|
|
29
29
|
fontFamily: 'Dosis',
|
|
30
30
|
fontStyle: 'normal',
|
|
31
31
|
fontWeight: 600,
|
|
@@ -33,13 +33,15 @@ var BreadcrumbsComponent = function BreadcrumbsComponent(_ref) {
|
|
|
33
33
|
textTransform: 'uppercase'
|
|
34
34
|
},
|
|
35
35
|
children: link.label
|
|
36
|
-
},
|
|
36
|
+
}, link.href);
|
|
37
37
|
} else {
|
|
38
38
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Link, {
|
|
39
39
|
href: link.href,
|
|
40
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
41
41
|
sx: {
|
|
42
|
-
color:
|
|
42
|
+
color: function color(theme) {
|
|
43
|
+
return theme.palette.button.main;
|
|
44
|
+
},
|
|
43
45
|
fontFamily: 'Dosis',
|
|
44
46
|
fontStyle: 'normal',
|
|
45
47
|
fontWeight: 600,
|
|
@@ -47,11 +49,11 @@ var BreadcrumbsComponent = function BreadcrumbsComponent(_ref) {
|
|
|
47
49
|
textTransform: 'uppercase'
|
|
48
50
|
},
|
|
49
51
|
children: link.label
|
|
50
|
-
}
|
|
52
|
+
})
|
|
51
53
|
}, link.href);
|
|
52
54
|
}
|
|
53
55
|
})
|
|
54
56
|
});
|
|
55
57
|
};
|
|
56
|
-
var _default =
|
|
58
|
+
var _default = Breadcrumbs;
|
|
57
59
|
exports["default"] = _default;
|
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
|
-
var _theme = _interopRequireDefault(require("../../assets/theme"));
|
|
9
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
9
|
var Indicator = function Indicator() {
|
|
12
10
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
13
11
|
className: "button-loader",
|
|
@@ -21,8 +19,12 @@ var Indicator = function Indicator() {
|
|
|
21
19
|
display: "grid",
|
|
22
20
|
justifyItems: "center",
|
|
23
21
|
alignItems: "center",
|
|
24
|
-
background:
|
|
25
|
-
|
|
22
|
+
background: function background(theme) {
|
|
23
|
+
return theme.palette.misc.rowHoverGreyOne;
|
|
24
|
+
},
|
|
25
|
+
border: function border(theme) {
|
|
26
|
+
return "1px solid ".concat(theme.palette.misc.rowOnHoverGreyTwo);
|
|
27
|
+
},
|
|
26
28
|
borderRadius: '0.2rem'
|
|
27
29
|
},
|
|
28
30
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CircularProgress, {
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonProps as MuiButtonProps } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { MouseEventHandler } from 'react';
|
|
4
|
+
import { SxProps, Theme } from '@mui/system';
|
|
3
5
|
export type ButtonProps = {
|
|
4
6
|
'data-testid'?: string;
|
|
7
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
5
8
|
isLoading?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
startIcon?: React.ReactNode;
|
|
11
|
+
endIcon?: React.ReactNode;
|
|
12
|
+
color?: MuiButtonProps['color'];
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
9
18
|
/**
|
|
10
19
|
- Use a button for common user click actions. Several variations available.
|
|
11
20
|
**/
|
|
12
|
-
declare const Button: (
|
|
21
|
+
declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
22
|
export default Button;
|