@veritone-ce/design-system 1.12.14 → 1.12.16
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.js +314 -261
- package/dist/components/Box/__tests__/Box.test.js +15 -9
- package/dist/components/Box/index.js +16 -17
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.js +34 -29
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.js +25 -14
- package/dist/components/Breadcrumbs/breadcrumbs.theme.js +16 -9
- package/dist/components/Breadcrumbs/index.js +50 -27
- package/dist/components/Button/Button.stories.js +89 -37
- package/dist/components/Button/Indicator.js +32 -17
- package/dist/components/Button/__tests__/Button.test.js +58 -33
- package/dist/components/Button/button.theme.js +121 -102
- package/dist/components/Button/index.js +44 -34
- package/dist/components/Button/useButtonProps.js +17 -15
- package/dist/components/Checkbox/Checkbox.stories.js +46 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +14 -9
- package/dist/components/Checkbox/checkbox.theme.js +23 -16
- package/dist/components/Checkbox/index.js +22 -17
- package/dist/components/CustomSlider/CustomSlider.stories.js +43 -24
- package/dist/components/CustomSlider/index.js +73 -55
- package/dist/components/Drawer/__tests__/Drawer.test.js +15 -9
- package/dist/components/Drawer/index.js +16 -17
- package/dist/components/FileUploader/FileUploader.stories.js +23 -24
- package/dist/components/FileUploader/__tests__/FileUploader.test.js +210 -220
- package/dist/components/FileUploader/index.js +211 -151
- package/dist/components/FileUploader/useUploadFile.js +69 -81
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.js +18 -9
- package/dist/components/FormControlLabel/index.js +16 -17
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.js +19 -20
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.js +14 -9
- package/dist/components/HomeOutlinedIcon/index.js +16 -17
- package/dist/components/IconGroups/IconGroups.stories.js +19 -20
- package/dist/components/IconGroups/__tests__/IconGroups.test.js +14 -9
- package/dist/components/IconGroups/index.js +17 -17
- package/dist/components/IconListItem/__tests__/IconListItem.test.js +14 -9
- package/dist/components/IconListItem/index.js +19 -17
- package/dist/components/Input/Input.stories.js +111 -51
- package/dist/components/Input/__tests__/Input.test.js +13 -9
- package/dist/components/Input/index.js +22 -19
- package/dist/components/Input/input.theme.js +104 -97
- package/dist/components/LinearProgress/LinearProgress.stories.js +42 -28
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.js +39 -17
- package/dist/components/LinearProgress/index.js +71 -21
- package/dist/components/LinearProgress/linearProgress.theme.js +19 -12
- package/dist/components/Link/__tests__/Link.test.js +14 -9
- package/dist/components/Link/index.js +16 -17
- package/dist/components/List/__tests__/List.test.js +14 -9
- package/dist/components/List/index.js +16 -17
- package/dist/components/ListItem/__tests__/ListItem.test.js +14 -9
- package/dist/components/ListItem/index.js +16 -17
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.js +14 -9
- package/dist/components/ListItemButton/index.js +16 -17
- package/dist/components/ListItemText/__tests__/ListItemText.test.js +14 -9
- package/dist/components/ListItemText/index.js +16 -17
- package/dist/components/MenuFlyout/MenuFlyout.stories.js +54 -32
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.js +41 -23
- package/dist/components/MenuFlyout/constants.js +12 -3
- package/dist/components/MenuFlyout/index.js +47 -26
- package/dist/components/MenuFlyout/menuFlyout.theme.js +46 -38
- package/dist/components/Modal/Modal.stories.js +190 -95
- package/dist/components/Modal/__tests__/Modal.test.js +16 -9
- package/dist/components/Modal/index.js +30 -17
- package/dist/components/Modal/modal.theme.js +30 -23
- package/dist/components/ModelGridView/ModelGridView.stories.js +40 -43
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.js +47 -42
- package/dist/components/ModelGridView/index.js +258 -150
- package/dist/components/Panel/Panel.stories.js +61 -44
- package/dist/components/Panel/__tests__/Panel.test.js +73 -43
- package/dist/components/Panel/index.js +116 -78
- package/dist/components/ProgressIndicator/DefaultProgress.js +28 -20
- package/dist/components/ProgressIndicator/MLProgress.js +30 -24
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +41 -38
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.js +31 -17
- package/dist/components/ProgressIndicator/index.js +26 -18
- package/dist/components/RadioButton/RadioButton.stories.js +37 -28
- package/dist/components/RadioButton/RadioButton.theme.js +59 -52
- package/dist/components/RadioButton/__tests__/RadioButton.test.js +13 -9
- package/dist/components/RadioButton/index.js +37 -28
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.js +14 -9
- package/dist/components/RadioGroup/index.js +16 -17
- package/dist/components/Select/Select.stories.js +82 -33
- package/dist/components/Select/__tests__/Select.test.js +39 -18
- package/dist/components/Select/index.js +99 -49
- package/dist/components/Select/select.theme.js +58 -51
- package/dist/components/StatusChip/StatusChip.stories.js +57 -43
- package/dist/components/StatusChip/__tests__/StatusChip.test.js +44 -27
- package/dist/components/StatusChip/constants.js +12 -3
- package/dist/components/StatusChip/index.js +28 -22
- package/dist/components/StatusChip/statusChip.theme.js +41 -22
- package/dist/components/Step/__tests__/Step.test.js +14 -9
- package/dist/components/Step/index.js +16 -17
- package/dist/components/StepLabel/__tests__/StepLabel.test.js +14 -9
- package/dist/components/StepLabel/index.js +16 -17
- package/dist/components/Stepper/Stepper.stories.js +37 -21
- package/dist/components/Stepper/__tests__/Stepper.test.js +14 -9
- package/dist/components/Stepper/index.js +15 -5
- package/dist/components/Stepper/stepper.theme.js +52 -45
- package/dist/components/Tabs/Badge.js +29 -10
- package/dist/components/Tabs/Tabs.stories.js +52 -33
- package/dist/components/Tabs/__tests__/Tabs.test.js +41 -14
- package/dist/components/Tabs/index.js +27 -18
- package/dist/components/Tabs/tabs.theme.js +34 -27
- package/dist/components/ThemeProvider/__tests__/Button.test.js +14 -9
- package/dist/components/ThemeProvider/index.js +19 -6
- package/dist/components/Toast/Toast.stories.js +103 -37
- package/dist/components/Toast/__tests__/Toast.test.js +47 -29
- package/dist/components/Toast/index.js +58 -38
- package/dist/components/Typography/Typography.stories.js +20 -20
- package/dist/components/Typography/__tests__/Typography.test.js +15 -9
- package/dist/components/Typography/index.js +16 -17
- package/dist/components/UtilityRail/UtilityRail.stories.js +22 -21
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.js +17 -10
- package/dist/components/UtilityRail/index.js +75 -53
- package/dist/components/UtilityRail/mock.js +32 -32
- package/dist/index.js +223 -31
- package/dist/react-app-env.d.js +2 -0
- package/dist/reportWebVitals.js +26 -11
- package/dist/setupTests.js +3 -5
- package/dist/utils/tests/helpers.js +31 -20
- package/package.json +9 -4
- package/dist/assets/theme.d.ts +0 -59
- package/dist/components/Box/__tests__/Box.test.d.ts +0 -1
- package/dist/components/Box/index.d.ts +0 -6
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/breadcrumbs.theme.d.ts +0 -11
- package/dist/components/Breadcrumbs/index.d.ts +0 -15
- package/dist/components/Button/Button.stories.d.ts +0 -7
- package/dist/components/Button/Indicator.d.ts +0 -2
- package/dist/components/Button/__tests__/Button.test.d.ts +0 -1
- package/dist/components/Button/button.theme.d.ts +0 -4
- package/dist/components/Button/index.d.ts +0 -10
- package/dist/components/Button/useButtonProps.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/checkbox.theme.d.ts +0 -18
- package/dist/components/Checkbox/index.d.ts +0 -7
- package/dist/components/CustomSlider/CustomSlider.stories.d.ts +0 -5
- package/dist/components/CustomSlider/index.d.ts +0 -12
- package/dist/components/Drawer/__tests__/Drawer.test.d.ts +0 -1
- package/dist/components/Drawer/index.d.ts +0 -6
- package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -15
- package/dist/components/FileUploader/__tests__/FileUploader.test.d.ts +0 -1
- package/dist/components/FileUploader/index.d.ts +0 -21
- package/dist/components/FileUploader/useUploadFile.d.ts +0 -5
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +0 -1
- package/dist/components/FormControlLabel/index.d.ts +0 -6
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +0 -7
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +0 -1
- package/dist/components/HomeOutlinedIcon/index.d.ts +0 -5
- package/dist/components/IconGroups/IconGroups.stories.d.ts +0 -7
- package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +0 -1
- package/dist/components/IconGroups/index.d.ts +0 -5
- package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +0 -1
- package/dist/components/IconListItem/index.d.ts +0 -7
- package/dist/components/Input/Input.stories.d.ts +0 -11
- package/dist/components/Input/__tests__/Input.test.d.ts +0 -1
- package/dist/components/Input/index.d.ts +0 -6
- package/dist/components/Input/input.theme.d.ts +0 -3
- package/dist/components/LinearProgress/LinearProgress.stories.d.ts +0 -14
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.d.ts +0 -1
- package/dist/components/LinearProgress/index.d.ts +0 -27
- package/dist/components/LinearProgress/linearProgress.theme.d.ts +0 -14
- package/dist/components/Link/__tests__/Link.test.d.ts +0 -1
- package/dist/components/Link/index.d.ts +0 -6
- package/dist/components/List/__tests__/List.test.d.ts +0 -1
- package/dist/components/List/index.d.ts +0 -6
- package/dist/components/ListItem/__tests__/ListItem.test.d.ts +0 -1
- package/dist/components/ListItem/index.d.ts +0 -6
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +0 -1
- package/dist/components/ListItemButton/index.d.ts +0 -6
- package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +0 -1
- package/dist/components/ListItemText/index.d.ts +0 -6
- package/dist/components/MenuFlyout/MenuFlyout.stories.d.ts +0 -31
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.d.ts +0 -1
- package/dist/components/MenuFlyout/constants.d.ts +0 -3
- package/dist/components/MenuFlyout/index.d.ts +0 -15
- package/dist/components/MenuFlyout/menuFlyout.theme.d.ts +0 -41
- package/dist/components/Modal/Modal.stories.d.ts +0 -15
- package/dist/components/Modal/__tests__/Modal.test.d.ts +0 -1
- package/dist/components/Modal/index.d.ts +0 -11
- package/dist/components/Modal/modal.theme.d.ts +0 -3
- package/dist/components/ModelGridView/ModelGridView.stories.d.ts +0 -5
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.d.ts +0 -1
- package/dist/components/ModelGridView/index.d.ts +0 -13
- package/dist/components/Panel/Panel.stories.d.ts +0 -14
- package/dist/components/Panel/__tests__/Panel.test.d.ts +0 -1
- package/dist/components/Panel/index.d.ts +0 -11
- package/dist/components/ProgressIndicator/DefaultProgress.d.ts +0 -3
- package/dist/components/ProgressIndicator/MLProgress.d.ts +0 -3
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -7
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.d.ts +0 -1
- package/dist/components/ProgressIndicator/index.d.ts +0 -11
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -10
- package/dist/components/RadioButton/RadioButton.theme.d.ts +0 -4
- package/dist/components/RadioButton/__tests__/RadioButton.test.d.ts +0 -1
- package/dist/components/RadioButton/index.d.ts +0 -7
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +0 -1
- package/dist/components/RadioGroup/index.d.ts +0 -6
- package/dist/components/Select/Select.stories.d.ts +0 -5
- package/dist/components/Select/__tests__/Select.test.d.ts +0 -1
- package/dist/components/Select/index.d.ts +0 -15
- package/dist/components/Select/select.theme.d.ts +0 -53
- package/dist/components/StatusChip/StatusChip.stories.d.ts +0 -51
- package/dist/components/StatusChip/__tests__/StatusChip.test.d.ts +0 -1
- package/dist/components/StatusChip/constants.d.ts +0 -3
- package/dist/components/StatusChip/index.d.ts +0 -28
- package/dist/components/StatusChip/statusChip.theme.d.ts +0 -4
- package/dist/components/Step/__tests__/Step.test.d.ts +0 -1
- package/dist/components/Step/index.d.ts +0 -6
- package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +0 -1
- package/dist/components/StepLabel/index.d.ts +0 -6
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -21
- package/dist/components/Stepper/__tests__/Stepper.test.d.ts +0 -1
- package/dist/components/Stepper/index.d.ts +0 -13
- package/dist/components/Stepper/stepper.theme.d.ts +0 -50
- package/dist/components/Tabs/Badge.d.ts +0 -7
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -6
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +0 -1
- package/dist/components/Tabs/index.d.ts +0 -14
- package/dist/components/Tabs/tabs.theme.d.ts +0 -4
- package/dist/components/ThemeProvider/__tests__/Button.test.d.ts +0 -1
- package/dist/components/ThemeProvider/index.d.ts +0 -3
- package/dist/components/Toast/Toast.stories.d.ts +0 -14
- package/dist/components/Toast/__tests__/Toast.test.d.ts +0 -1
- package/dist/components/Toast/index.d.ts +0 -23
- package/dist/components/Typography/Typography.stories.d.ts +0 -20
- package/dist/components/Typography/__tests__/Typography.test.d.ts +0 -1
- package/dist/components/Typography/index.d.ts +0 -6
- package/dist/components/UtilityRail/UtilityRail.stories.d.ts +0 -8
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.d.ts +0 -1
- package/dist/components/UtilityRail/index.d.ts +0 -11
- package/dist/components/UtilityRail/mock.d.ts +0 -2
- package/dist/index.d.ts +0 -31
- package/dist/reportWebVitals.d.ts +0 -3
- package/dist/setupTests.d.ts +0 -1
- package/dist/utils/tests/helpers.d.ts +0 -6
package/dist/assets/theme.js
CHANGED
|
@@ -1,270 +1,323 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.colors = void 0;
|
|
7
|
+
var _material = require("@mui/material");
|
|
8
|
+
var _stepper = _interopRequireDefault(require("../components/Stepper/stepper.theme"));
|
|
9
|
+
var _checkbox = _interopRequireDefault(require("../components/Checkbox/checkbox.theme"));
|
|
10
|
+
var _RadioButton = _interopRequireDefault(require("../components/RadioButton/RadioButton.theme"));
|
|
11
|
+
var _button = _interopRequireDefault(require("../components/Button/button.theme"));
|
|
12
|
+
var _statusChip = _interopRequireDefault(require("../components/StatusChip/statusChip.theme"));
|
|
13
|
+
var _select = _interopRequireDefault(require("../components/Select/select.theme"));
|
|
14
|
+
var _tabs = _interopRequireDefault(require("../components/Tabs/tabs.theme"));
|
|
15
|
+
var _input = _interopRequireDefault(require("../components/Input/input.theme"));
|
|
16
|
+
var _menuFlyout = require("../components/MenuFlyout/menuFlyout.theme");
|
|
17
|
+
var _modal = _interopRequireDefault(require("../components/Modal/modal.theme"));
|
|
18
|
+
var _linearProgress = _interopRequireDefault(require("../components/LinearProgress/linearProgress.theme"));
|
|
19
|
+
var _CheckCircle = _interopRequireDefault(require("@mui/icons-material/CheckCircle"));
|
|
20
|
+
var _information = _interopRequireDefault(require("./information.svg"));
|
|
21
|
+
var _warning = _interopRequireDefault(require("./warning.svg"));
|
|
22
|
+
var _Cancel = _interopRequireDefault(require("@mui/icons-material/Cancel"));
|
|
23
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
const colors = {
|
|
26
|
+
brand: {
|
|
27
|
+
pink: '#D43060',
|
|
28
|
+
blueOne: '#214167',
|
|
29
|
+
blueTwo: '#335B89',
|
|
30
|
+
warning: '#FFBB0A',
|
|
31
|
+
success: '#28BA3F',
|
|
32
|
+
error: '#EB0000',
|
|
33
|
+
white: `#FFFFFF`
|
|
34
|
+
},
|
|
35
|
+
text: {
|
|
36
|
+
primary: `#2A323C`,
|
|
37
|
+
secondary: `#5C6269`,
|
|
38
|
+
tertiary: `#465364`,
|
|
39
|
+
disabled: `#7C848D`
|
|
40
|
+
},
|
|
41
|
+
button: {
|
|
42
|
+
primary: `#1871E8`,
|
|
43
|
+
hover: `#1259B9`
|
|
44
|
+
},
|
|
45
|
+
misc: {
|
|
46
|
+
background: `#E4ECF3`,
|
|
47
|
+
altBackground: `#E0E8F0`,
|
|
48
|
+
rowHoverGreyOne: `#FAFAFA`,
|
|
49
|
+
rowOn: `#F2F7FE`,
|
|
50
|
+
rowOnHoverGreyTwo: `#EAF1FA`
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.colors = colors;
|
|
54
|
+
// create theme in steps https://mui.com/material-ui/customization/theming/#api
|
|
55
|
+
|
|
56
|
+
let theme = (0, _material.createTheme)({
|
|
57
|
+
typography: {
|
|
58
|
+
fontFamily: ['Nunito Sans', 'Helvetica', 'sans-serif'].join(','),
|
|
59
|
+
h2: {
|
|
60
|
+
fontSize: '1.429rem',
|
|
61
|
+
lineHeight: '2.143rem',
|
|
62
|
+
fontWeight: '700'
|
|
63
|
+
},
|
|
64
|
+
body1: {
|
|
65
|
+
color: colors.text.primary
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
palette: {
|
|
69
|
+
common: {
|
|
70
|
+
white: colors.brand.white
|
|
71
|
+
},
|
|
72
|
+
action: {
|
|
73
|
+
disabledBackground: colors.misc.rowHoverGreyOne,
|
|
74
|
+
disabled: colors.text.disabled
|
|
75
|
+
},
|
|
76
|
+
primary: {
|
|
77
|
+
main: colors.brand.blueOne
|
|
27
78
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
79
|
+
secondary: {
|
|
80
|
+
main: colors.brand.blueTwo,
|
|
81
|
+
contrastText: colors.brand.white
|
|
82
|
+
},
|
|
83
|
+
neutral: {
|
|
84
|
+
main: colors.text.secondary
|
|
33
85
|
},
|
|
34
86
|
button: {
|
|
35
|
-
|
|
36
|
-
|
|
87
|
+
main: colors.button.primary,
|
|
88
|
+
hover: colors.button.hover
|
|
37
89
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
rowOnHoverGreyTwo: `#EAF1FA`
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
// create theme in steps https://mui.com/material-ui/customization/theming/#api
|
|
47
|
-
let theme = createTheme({
|
|
48
|
-
typography: {
|
|
49
|
-
fontFamily: ['Nunito Sans', 'Helvetica', 'sans-serif'].join(','),
|
|
50
|
-
h2: {
|
|
51
|
-
fontSize: '1.429rem',
|
|
52
|
-
lineHeight: '2.143rem',
|
|
53
|
-
fontWeight: '700'
|
|
54
|
-
},
|
|
55
|
-
body1: {
|
|
56
|
-
color: colors.text.primary
|
|
57
|
-
}
|
|
90
|
+
success: {
|
|
91
|
+
main: colors.brand.success
|
|
92
|
+
},
|
|
93
|
+
warning: {
|
|
94
|
+
main: colors.brand.warning
|
|
58
95
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
white: colors.brand.white
|
|
62
|
-
},
|
|
63
|
-
action: {
|
|
64
|
-
disabledBackground: colors.misc.rowHoverGreyOne,
|
|
65
|
-
disabled: colors.text.disabled
|
|
66
|
-
},
|
|
67
|
-
primary: {
|
|
68
|
-
main: colors.brand.blueOne
|
|
69
|
-
},
|
|
70
|
-
secondary: {
|
|
71
|
-
main: colors.brand.blueTwo,
|
|
72
|
-
contrastText: colors.brand.white
|
|
73
|
-
},
|
|
74
|
-
neutral: {
|
|
75
|
-
main: colors.text.secondary
|
|
76
|
-
},
|
|
77
|
-
button: {
|
|
78
|
-
main: colors.button.primary,
|
|
79
|
-
hover: colors.button.hover
|
|
80
|
-
},
|
|
81
|
-
success: {
|
|
82
|
-
main: colors.brand.success
|
|
83
|
-
},
|
|
84
|
-
warning: {
|
|
85
|
-
main: colors.brand.warning
|
|
86
|
-
},
|
|
87
|
-
error: {
|
|
88
|
-
main: colors.brand.error
|
|
89
|
-
},
|
|
90
|
-
divider: colors.brand.blueOne,
|
|
91
|
-
text: colors.text,
|
|
92
|
-
misc: colors.misc
|
|
96
|
+
error: {
|
|
97
|
+
main: colors.brand.error
|
|
93
98
|
},
|
|
94
|
-
|
|
99
|
+
divider: colors.brand.blueOne,
|
|
100
|
+
text: colors.text,
|
|
101
|
+
misc: colors.misc
|
|
102
|
+
},
|
|
103
|
+
spacing: 10
|
|
95
104
|
});
|
|
96
|
-
theme = createTheme(theme, {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}, MuiDialogContent: {
|
|
150
|
-
styleOverrides: {
|
|
151
|
-
root: {
|
|
152
|
-
paddingTop: 0,
|
|
153
|
-
paddingLeft: theme.spacing(3),
|
|
154
|
-
paddingRight: theme.spacing(3),
|
|
155
|
-
paddingBottom: theme.spacing(1)
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}, MuiDialogActions: {
|
|
159
|
-
styleOverrides: {
|
|
160
|
-
root: {
|
|
161
|
-
padding: theme.spacing(3)
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}, MuiLink: {
|
|
165
|
-
defaultProps: {
|
|
166
|
-
underline: `none`,
|
|
167
|
-
color: colors.button.primary
|
|
168
|
-
}
|
|
169
|
-
}, MuiSnackbar: {
|
|
170
|
-
defaultProps: {
|
|
171
|
-
autoHideDuration: 3000,
|
|
172
|
-
anchorOrigin: {
|
|
173
|
-
vertical: `top`,
|
|
174
|
-
horizontal: `right`
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
styleOverrides: {
|
|
178
|
-
root: {
|
|
179
|
-
width: `100%`,
|
|
180
|
-
maxWidth: `415px`,
|
|
181
|
-
position: `absolute`
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}, MuiAlert: {
|
|
185
|
-
defaultProps: {
|
|
186
|
-
variant: `outlined`,
|
|
187
|
-
iconMapping: {
|
|
188
|
-
success: _jsx(CheckCircleIcon, {}),
|
|
189
|
-
info: _jsx("img", { alt: 'information icon', src: InformationIcon }),
|
|
190
|
-
warning: _jsx("img", { alt: 'warning icon', src: WarningIcon }),
|
|
191
|
-
error: _jsx(ErrorIcon, {})
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
styleOverrides: {
|
|
195
|
-
root: {
|
|
196
|
-
width: `415px`,
|
|
197
|
-
backgroundColor: `white`,
|
|
198
|
-
position: `relative`,
|
|
199
|
-
overflow: `hidden`,
|
|
200
|
-
border: `1px solid #7C848D`,
|
|
201
|
-
'&:after': {
|
|
202
|
-
content: '""',
|
|
203
|
-
position: `absolute`,
|
|
204
|
-
width: `4px`,
|
|
205
|
-
left: 0,
|
|
206
|
-
top: 0,
|
|
207
|
-
bottom: 0
|
|
208
|
-
},
|
|
209
|
-
'&.MuiAlert-outlinedSuccess:after': {
|
|
210
|
-
backgroundColor: theme.palette.success.main
|
|
211
|
-
},
|
|
212
|
-
'&.MuiAlert-outlinedInfo:after': {
|
|
213
|
-
backgroundColor: theme.palette.secondary.main
|
|
214
|
-
},
|
|
215
|
-
'&.MuiAlert-outlinedWarning:after': {
|
|
216
|
-
backgroundColor: theme.palette.warning.main
|
|
217
|
-
},
|
|
218
|
-
'&.MuiAlert-outlinedError:after': {
|
|
219
|
-
backgroundColor: theme.palette.error.main
|
|
220
|
-
},
|
|
221
|
-
'& .MuiAlert-icon': {
|
|
222
|
-
opacity: 1,
|
|
223
|
-
fontSize: 20
|
|
224
|
-
},
|
|
225
|
-
'& .MuiAlert-message': {
|
|
226
|
-
fontSize: `12px`,
|
|
227
|
-
lineHeight: `22px`,
|
|
228
|
-
color: colors.text.primary
|
|
229
|
-
},
|
|
230
|
-
'& .MuiIconButton-root': {
|
|
231
|
-
color: colors.text.tertiary
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}, MuiCircularProgress: {
|
|
236
|
-
styleOverrides: {
|
|
237
|
-
root: {
|
|
238
|
-
color: theme.palette.button.main
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}, MuiCardContent: {
|
|
242
|
-
styleOverrides: {
|
|
243
|
-
root: {
|
|
244
|
-
padding: theme.spacing(2),
|
|
245
|
-
paddingTop: theme.spacing(1)
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}, MuiDataGrid: {
|
|
249
|
-
styleOverrides: {
|
|
250
|
-
root: {
|
|
251
|
-
'& .MuiDataGrid-columnHeader:focus': {
|
|
252
|
-
outline: 0
|
|
253
|
-
},
|
|
254
|
-
'& .MuiDataGrid-cell:focus': {
|
|
255
|
-
outline: 0
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}, MuiPaper: {
|
|
260
|
-
styleOverrides: {
|
|
261
|
-
root: {
|
|
262
|
-
'&.MuiMenu-paper': {
|
|
263
|
-
// border: '1px solid ' + theme.palette.text.disabled,
|
|
264
|
-
// boxShadow: 'none'
|
|
265
|
-
}
|
|
266
|
-
}
|
|
105
|
+
theme = (0, _material.createTheme)(theme, {
|
|
106
|
+
components: {
|
|
107
|
+
MuiButton: (0, _button.default)(theme),
|
|
108
|
+
...(0, _stepper.default)(theme),
|
|
109
|
+
MuiSelect: (0, _select.default)(theme),
|
|
110
|
+
MuiTextField: (0, _input.default)(theme),
|
|
111
|
+
MuiDialog: (0, _modal.default)(theme),
|
|
112
|
+
MuiCheckbox: (0, _checkbox.default)(theme),
|
|
113
|
+
MuiRadio: (0, _RadioButton.default)(theme),
|
|
114
|
+
MuiTabs: (0, _tabs.default)(theme),
|
|
115
|
+
MuiChip: (0, _statusChip.default)(theme),
|
|
116
|
+
MuiMenu: (0, _menuFlyout.menuFlyoutTheme)(theme),
|
|
117
|
+
MuiMenuItem: (0, _menuFlyout.menuItemTheme)(theme),
|
|
118
|
+
MuiLinearProgress: (0, _linearProgress.default)(theme),
|
|
119
|
+
MuiInputLabel: {
|
|
120
|
+
styleOverrides: {
|
|
121
|
+
root: {
|
|
122
|
+
color: theme.palette.text.secondary,
|
|
123
|
+
fontSize: `14px`,
|
|
124
|
+
lineHeight: `21px`,
|
|
125
|
+
fontWeight: `600`
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
MuiFormControlLabel: {
|
|
130
|
+
styleOverrides: {
|
|
131
|
+
root: {
|
|
132
|
+
'& .MuiFormControlLabel-label': {
|
|
133
|
+
color: theme.palette.text.secondary
|
|
134
|
+
},
|
|
135
|
+
'& .MuiFormControlLabel-label.Mui-disabled': {
|
|
136
|
+
color: theme.palette.text.disabled
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
MuiFormHelperText: {
|
|
142
|
+
styleOverrides: {
|
|
143
|
+
root: {
|
|
144
|
+
position: 'relative',
|
|
145
|
+
marginLeft: 0,
|
|
146
|
+
'&.Mui-error': {
|
|
147
|
+
paddingLeft: `17px`,
|
|
148
|
+
'&::before': {
|
|
149
|
+
content: `""`,
|
|
150
|
+
height: `12px`,
|
|
151
|
+
width: '12px',
|
|
152
|
+
position: 'absolute',
|
|
153
|
+
left: 0,
|
|
154
|
+
top: `50%`,
|
|
155
|
+
transform: `translate(0, -50%)`,
|
|
156
|
+
backgroundColor: theme.palette.error.main,
|
|
157
|
+
borderRadius: `100%`
|
|
267
158
|
}
|
|
268
|
-
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
MuiDialogTitle: {
|
|
164
|
+
styleOverrides: {
|
|
165
|
+
root: {
|
|
166
|
+
fontSize: `24px`,
|
|
167
|
+
lineHeight: `34px`,
|
|
168
|
+
paddingTop: theme.spacing(3),
|
|
169
|
+
paddingLeft: theme.spacing(3),
|
|
170
|
+
paddingRight: theme.spacing(3),
|
|
171
|
+
paddingBottom: theme.spacing(1)
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
MuiDialogContent: {
|
|
176
|
+
styleOverrides: {
|
|
177
|
+
root: {
|
|
178
|
+
paddingTop: 0,
|
|
179
|
+
paddingLeft: theme.spacing(3),
|
|
180
|
+
paddingRight: theme.spacing(3),
|
|
181
|
+
paddingBottom: theme.spacing(1)
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
MuiDialogActions: {
|
|
186
|
+
styleOverrides: {
|
|
187
|
+
root: {
|
|
188
|
+
padding: theme.spacing(3)
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
MuiLink: {
|
|
193
|
+
defaultProps: {
|
|
194
|
+
underline: `none`,
|
|
195
|
+
color: colors.button.primary
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
MuiSnackbar: {
|
|
199
|
+
defaultProps: {
|
|
200
|
+
autoHideDuration: 3000,
|
|
201
|
+
anchorOrigin: {
|
|
202
|
+
vertical: `top`,
|
|
203
|
+
horizontal: `right`
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
styleOverrides: {
|
|
207
|
+
root: {
|
|
208
|
+
width: `100%`,
|
|
209
|
+
maxWidth: `415px`,
|
|
210
|
+
position: `absolute`
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
MuiAlert: {
|
|
215
|
+
defaultProps: {
|
|
216
|
+
variant: `outlined`,
|
|
217
|
+
iconMapping: {
|
|
218
|
+
success: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckCircle.default, {}),
|
|
219
|
+
info: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
220
|
+
alt: 'information icon',
|
|
221
|
+
src: _information.default
|
|
222
|
+
}),
|
|
223
|
+
warning: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
224
|
+
alt: 'warning icon',
|
|
225
|
+
src: _warning.default
|
|
226
|
+
}),
|
|
227
|
+
error: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cancel.default, {})
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
styleOverrides: {
|
|
231
|
+
root: {
|
|
232
|
+
width: `415px`,
|
|
233
|
+
backgroundColor: `white`,
|
|
234
|
+
position: `relative`,
|
|
235
|
+
overflow: `hidden`,
|
|
236
|
+
border: `1px solid #7C848D`,
|
|
237
|
+
'&:after': {
|
|
238
|
+
content: '""',
|
|
239
|
+
position: `absolute`,
|
|
240
|
+
width: `4px`,
|
|
241
|
+
left: 0,
|
|
242
|
+
top: 0,
|
|
243
|
+
bottom: 0
|
|
244
|
+
},
|
|
245
|
+
'&.MuiAlert-outlinedSuccess:after': {
|
|
246
|
+
backgroundColor: theme.palette.success.main
|
|
247
|
+
},
|
|
248
|
+
'&.MuiAlert-outlinedInfo:after': {
|
|
249
|
+
backgroundColor: theme.palette.secondary.main
|
|
250
|
+
},
|
|
251
|
+
'&.MuiAlert-outlinedWarning:after': {
|
|
252
|
+
backgroundColor: theme.palette.warning.main
|
|
253
|
+
},
|
|
254
|
+
'&.MuiAlert-outlinedError:after': {
|
|
255
|
+
backgroundColor: theme.palette.error.main
|
|
256
|
+
},
|
|
257
|
+
'& .MuiAlert-icon': {
|
|
258
|
+
opacity: 1,
|
|
259
|
+
fontSize: 20
|
|
260
|
+
},
|
|
261
|
+
'& .MuiAlert-message': {
|
|
262
|
+
fontSize: `12px`,
|
|
263
|
+
lineHeight: `22px`,
|
|
264
|
+
color: colors.text.primary
|
|
265
|
+
},
|
|
266
|
+
'& .MuiIconButton-root': {
|
|
267
|
+
color: colors.text.tertiary
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
MuiCircularProgress: {
|
|
273
|
+
styleOverrides: {
|
|
274
|
+
root: {
|
|
275
|
+
color: theme.palette.button.main
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
MuiCardContent: {
|
|
280
|
+
styleOverrides: {
|
|
281
|
+
root: {
|
|
282
|
+
padding: theme.spacing(2),
|
|
283
|
+
paddingTop: theme.spacing(1)
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
MuiDataGrid: {
|
|
288
|
+
styleOverrides: {
|
|
289
|
+
root: {
|
|
290
|
+
'& .MuiDataGrid-columnHeader:focus': {
|
|
291
|
+
outline: 0
|
|
292
|
+
},
|
|
293
|
+
'& .MuiDataGrid-cell:focus': {
|
|
294
|
+
outline: 0
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
MuiPaper: {
|
|
300
|
+
styleOverrides: {
|
|
301
|
+
root: {
|
|
302
|
+
'&.MuiMenu-paper': {
|
|
303
|
+
// border: '1px solid ' + theme.palette.text.disabled,
|
|
304
|
+
// boxShadow: 'none'
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
// MuiMenuItem: {
|
|
310
|
+
// styleOverrides: {
|
|
311
|
+
// root: {
|
|
312
|
+
// color: theme.palette.text.primary,
|
|
313
|
+
// padding: '10px 20px',
|
|
314
|
+
// ':hover, :focus': {
|
|
315
|
+
// backgroundColor: theme.palette.misc.altBackground
|
|
316
|
+
// }
|
|
317
|
+
// }
|
|
318
|
+
// }
|
|
319
|
+
// }
|
|
320
|
+
}
|
|
269
321
|
});
|
|
270
|
-
|
|
322
|
+
var _default = theme;
|
|
323
|
+
exports.default = _default;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _helpers = require("../../../utils/tests/helpers");
|
|
4
|
+
var _react = require("@testing-library/react");
|
|
5
|
+
var _ = _interopRequireDefault(require(".."));
|
|
6
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5
8
|
describe('<Box />', () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
});
|
|
9
|
+
it('should render the Box component', () => {
|
|
10
|
+
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
11
|
+
"data-testid": "box",
|
|
12
|
+
children: "Box"
|
|
13
|
+
}));
|
|
14
|
+
expect(_react.screen.getByTestId('box')).toBeInTheDocument();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
const Box = ({
|
|
10
|
+
...props
|
|
11
|
+
}) => {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
11
15
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const Box = (_a) => {
|
|
15
|
-
var props = __rest(_a, []);
|
|
16
|
-
return _jsx(MuiBox, Object.assign({}, props));
|
|
17
|
-
};
|
|
18
|
-
export default Box;
|
|
16
|
+
var _default = Box;
|
|
17
|
+
exports.default = _default;
|