@veritone-ce/design-system 1.12.45 → 1.12.46
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/cjs/assets/theme.js +367 -0
- package/dist/cjs/components/Alert/index.js +66 -0
- package/dist/cjs/components/AudioSlider/index.js +71 -0
- package/dist/cjs/components/Autocomplete/index.js +37 -0
- package/dist/cjs/components/Breadcrumbs/breadcrumbs.theme.js +21 -0
- package/dist/cjs/components/Breadcrumbs/index.js +72 -0
- package/dist/cjs/components/Button/Indicator.js +36 -0
- package/dist/cjs/components/Button/button.theme.js +125 -0
- package/dist/cjs/components/Button/index.js +56 -0
- package/dist/cjs/components/Checkbox/checkbox.theme.js +28 -0
- package/dist/cjs/components/Checkbox/index.js +26 -0
- package/dist/cjs/components/Drawer/index.js +24 -0
- package/dist/cjs/components/FileUploader/index.js +330 -0
- package/dist/cjs/components/FormControlLabel/index.js +23 -0
- package/dist/cjs/components/Input/index.js +42 -0
- package/dist/cjs/components/Input/input.theme.js +108 -0
- package/dist/cjs/components/LinearProgress/index.js +55 -0
- package/dist/cjs/components/LinearProgress/linearProgress.theme.js +24 -0
- package/dist/cjs/components/Link/index.js +31 -0
- package/dist/cjs/components/List/index.js +22 -0
- package/dist/cjs/components/ListItem/index.js +22 -0
- package/dist/cjs/components/ListItemButton/index.js +24 -0
- package/dist/cjs/components/ListItemText/index.js +22 -0
- package/dist/cjs/components/MenuFlyout/constants.js +12 -0
- package/dist/cjs/components/MenuFlyout/index.js +46 -0
- package/dist/cjs/components/MenuFlyout/menuFlyout.theme.js +52 -0
- package/dist/cjs/components/Modal/index.js +27 -0
- package/dist/cjs/components/Modal/modal.theme.js +35 -0
- package/dist/cjs/components/Panel/index.js +112 -0
- package/dist/cjs/components/ProgressIndicator/DefaultProgress.js +30 -0
- package/dist/cjs/components/ProgressIndicator/MLProgress.js +32 -0
- package/dist/cjs/components/ProgressIndicator/index.js +35 -0
- package/dist/cjs/components/RadioButton/RadioButton.theme.js +64 -0
- package/dist/cjs/components/RadioButton/index.js +44 -0
- package/dist/cjs/components/RadioGroup/index.js +25 -0
- package/dist/cjs/components/Select/index.js +118 -0
- package/dist/cjs/components/Select/select.theme.js +63 -0
- package/dist/cjs/components/StatusChip/constants.js +12 -0
- package/dist/cjs/components/StatusChip/index.js +40 -0
- package/dist/cjs/components/StatusChip/statusChip.theme.js +46 -0
- package/dist/cjs/components/Step/index.js +23 -0
- package/dist/cjs/components/StepLabel/index.js +22 -0
- package/dist/cjs/components/Stepper/index.js +25 -0
- package/dist/cjs/components/Stepper/stepper.theme.js +58 -0
- package/dist/cjs/components/Table/index.js +133 -0
- package/dist/cjs/components/Tabs/index.js +50 -0
- package/dist/cjs/components/Tabs/tabs.theme.js +39 -0
- package/dist/cjs/components/ThemeProvider/index.js +26 -0
- package/dist/cjs/components/Toast/index.js +37 -0
- package/dist/cjs/components/Typography/index.js +21 -0
- package/dist/cjs/components/UtilityRail/index.js +76 -0
- package/dist/cjs/components/UtilityRail/mock.js +32 -0
- package/dist/cjs/components/ZeroState/index.js +25 -0
- package/dist/cjs/components/icons/HomeOutlinedIcon/index.js +15 -0
- package/dist/cjs/components/icons/IconGroups/index.js +15 -0
- package/dist/cjs/components/icons/IconListItem/index.js +16 -0
- package/dist/cjs/index.js +312 -0
- package/dist/{assets → esm/assets}/theme.js +12 -9
- package/dist/{components → esm/components}/Alert/index.js +2 -2
- package/dist/esm/components/Autocomplete/index.js +29 -0
- package/dist/{components → esm/components}/Breadcrumbs/index.js +3 -1
- package/dist/{components → esm/components}/Button/Indicator.js +1 -1
- package/dist/{components → esm/components}/Button/button.theme.js +14 -9
- package/dist/esm/components/FileUploader/index.js +324 -0
- package/dist/{components → esm/components}/Input/input.theme.js +2 -2
- package/dist/{components → esm/components}/LinearProgress/index.js +1 -1
- package/dist/esm/components/Link/index.js +22 -0
- package/dist/{components → esm/components}/Modal/modal.theme.js +1 -1
- package/dist/{components → esm/components}/Panel/index.js +6 -4
- package/dist/{components → esm/components}/ProgressIndicator/DefaultProgress.js +1 -1
- package/dist/{components → esm/components}/ProgressIndicator/MLProgress.js +1 -1
- package/dist/esm/components/ProgressIndicator/index.js +28 -0
- package/dist/{components → esm/components}/RadioButton/RadioButton.theme.js +3 -3
- package/dist/{components → esm/components}/Select/index.js +2 -2
- package/dist/esm/components/StatusChip/statusChip.theme.js +39 -0
- package/dist/{components → esm/components}/Stepper/stepper.theme.js +1 -1
- package/dist/{components → esm/components}/Table/index.js +9 -3
- package/dist/{components → esm/components}/Tabs/index.js +1 -1
- package/dist/{components → esm/components}/ThemeProvider/index.js +3 -1
- package/dist/esm/components/Toast/index.js +29 -0
- package/dist/{components → esm/components}/UtilityRail/index.js +6 -4
- package/dist/{components → types/components}/Alert/index.d.ts +1 -1
- package/dist/{components → types/components}/AudioSlider/index.d.ts +2 -1
- package/dist/{components → types/components}/Autocomplete/index.d.ts +1 -1
- package/dist/{components → types/components}/Breadcrumbs/breadcrumbs.theme.d.ts +1 -1
- package/dist/{components → types/components}/Breadcrumbs/index.d.ts +1 -1
- package/dist/types/components/Button/Indicator.d.ts +3 -0
- package/dist/{components → types/components}/Button/button.theme.d.ts +1 -1
- package/dist/{components → types/components}/Button/index.d.ts +1 -1
- package/dist/{components → types/components}/Checkbox/checkbox.theme.d.ts +1 -1
- package/dist/{components → types/components}/Checkbox/index.d.ts +2 -2
- package/dist/{components → types/components}/Drawer/index.d.ts +1 -1
- package/dist/{components → types/components}/FileUploader/index.d.ts +3 -2
- package/dist/{components → types/components}/FormControlLabel/index.d.ts +1 -1
- package/dist/{components → types/components}/Input/index.d.ts +1 -1
- package/dist/{components → types/components}/LinearProgress/index.d.ts +2 -1
- package/dist/{components → types/components}/Link/index.d.ts +1 -1
- package/dist/{components → types/components}/List/index.d.ts +1 -1
- package/dist/{components → types/components}/ListItem/index.d.ts +1 -1
- package/dist/{components → types/components}/ListItemButton/index.d.ts +1 -1
- package/dist/{components → types/components}/ListItemText/index.d.ts +1 -1
- package/dist/{components → types/components}/MenuFlyout/index.d.ts +1 -1
- package/dist/{components → types/components}/Modal/index.d.ts +1 -1
- package/dist/{components → types/components}/Panel/index.d.ts +1 -1
- package/dist/{components → types/components}/ProgressIndicator/DefaultProgress.d.ts +2 -1
- package/dist/{components → types/components}/ProgressIndicator/MLProgress.d.ts +2 -1
- package/dist/{components → types/components}/ProgressIndicator/index.d.ts +2 -1
- package/dist/{components → types/components}/RadioButton/RadioButton.theme.d.ts +1 -1
- package/dist/{components → types/components}/RadioButton/index.d.ts +1 -1
- package/dist/{components → types/components}/RadioGroup/index.d.ts +1 -1
- package/dist/{components → types/components}/Select/index.d.ts +1 -1
- package/dist/{components → types/components}/Select/select.theme.d.ts +1 -1
- package/dist/{components → types/components}/StatusChip/index.d.ts +1 -1
- package/dist/{components → types/components}/StatusChip/statusChip.theme.d.ts +1 -1
- package/dist/{components → types/components}/Step/index.d.ts +1 -1
- package/dist/{components → types/components}/StepLabel/index.d.ts +1 -1
- package/dist/{components → types/components}/Stepper/index.d.ts +1 -1
- package/dist/{components → types/components}/Stepper/stepper.theme.d.ts +1 -1
- package/dist/{components → types/components}/Table/index.d.ts +9 -9
- package/dist/{components → types/components}/Tabs/index.d.ts +1 -1
- package/dist/{components → types/components}/Tabs/tabs.theme.d.ts +1 -1
- package/dist/{components → types/components}/ThemeProvider/index.d.ts +1 -1
- package/dist/{components → types/components}/Toast/index.d.ts +2 -1
- package/dist/{components → types/components}/Typography/index.d.ts +1 -1
- package/dist/{components → types/components}/UtilityRail/index.d.ts +2 -1
- package/dist/types/components/ZeroState/index.d.ts +3 -0
- package/dist/{components → types/components}/icons/HomeOutlinedIcon/index.d.ts +2 -1
- package/dist/{components → types/components}/icons/IconGroups/index.d.ts +2 -1
- package/dist/{components → types/components}/icons/IconListItem/index.d.ts +2 -2
- package/package.json +10 -8
- package/dist/components/Autocomplete/index.js +0 -24
- package/dist/components/Button/Indicator.d.ts +0 -2
- package/dist/components/FileUploader/index.js +0 -305
- package/dist/components/Link/index.js +0 -16
- package/dist/components/ProgressIndicator/index.js +0 -22
- package/dist/components/StatusChip/statusChip.theme.js +0 -34
- package/dist/components/Toast/index.js +0 -23
- package/dist/components/ZeroState/index.d.ts +0 -2
- /package/dist/{components → esm/components}/AudioSlider/index.js +0 -0
- /package/dist/{components → esm/components}/Breadcrumbs/breadcrumbs.theme.js +0 -0
- /package/dist/{components → esm/components}/Button/index.js +0 -0
- /package/dist/{components → esm/components}/Checkbox/checkbox.theme.js +0 -0
- /package/dist/{components → esm/components}/Checkbox/index.js +0 -0
- /package/dist/{components → esm/components}/Drawer/index.js +0 -0
- /package/dist/{components → esm/components}/FormControlLabel/index.js +0 -0
- /package/dist/{components → esm/components}/Input/index.js +0 -0
- /package/dist/{components → esm/components}/LinearProgress/linearProgress.theme.js +0 -0
- /package/dist/{components → esm/components}/List/index.js +0 -0
- /package/dist/{components → esm/components}/ListItem/index.js +0 -0
- /package/dist/{components → esm/components}/ListItemButton/index.js +0 -0
- /package/dist/{components → esm/components}/ListItemText/index.js +0 -0
- /package/dist/{components → esm/components}/MenuFlyout/constants.js +0 -0
- /package/dist/{components → esm/components}/MenuFlyout/index.js +0 -0
- /package/dist/{components → esm/components}/MenuFlyout/menuFlyout.theme.js +0 -0
- /package/dist/{components → esm/components}/Modal/index.js +0 -0
- /package/dist/{components → esm/components}/RadioButton/index.js +0 -0
- /package/dist/{components → esm/components}/RadioGroup/index.js +0 -0
- /package/dist/{components → esm/components}/Select/select.theme.js +0 -0
- /package/dist/{components → esm/components}/StatusChip/constants.js +0 -0
- /package/dist/{components → esm/components}/StatusChip/index.js +0 -0
- /package/dist/{components → esm/components}/Step/index.js +0 -0
- /package/dist/{components → esm/components}/StepLabel/index.js +0 -0
- /package/dist/{components → esm/components}/Stepper/index.js +0 -0
- /package/dist/{components → esm/components}/Tabs/tabs.theme.js +0 -0
- /package/dist/{components → esm/components}/Typography/index.js +0 -0
- /package/dist/{components → esm/components}/UtilityRail/mock.js +0 -0
- /package/dist/{components → esm/components}/ZeroState/index.js +0 -0
- /package/dist/{components → esm/components}/icons/HomeOutlinedIcon/index.js +0 -0
- /package/dist/{components → esm/components}/icons/IconGroups/index.js +0 -0
- /package/dist/{components → esm/components}/icons/IconListItem/index.js +0 -0
- /package/dist/{index.js → esm/index.js} +0 -0
- /package/dist/{assets → types/assets}/theme.d.ts +0 -0
- /package/dist/{components → types/components}/Input/input.theme.d.ts +0 -0
- /package/dist/{components → types/components}/LinearProgress/linearProgress.theme.d.ts +0 -0
- /package/dist/{components → types/components}/MenuFlyout/constants.d.ts +0 -0
- /package/dist/{components → types/components}/MenuFlyout/menuFlyout.theme.d.ts +0 -0
- /package/dist/{components → types/components}/Modal/modal.theme.d.ts +0 -0
- /package/dist/{components → types/components}/StatusChip/constants.d.ts +0 -0
- /package/dist/{components → types/components}/UtilityRail/mock.d.ts +0 -0
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
var Input = function Input(props) {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TextField, {
|
|
13
|
+
InputLabelProps: {
|
|
14
|
+
shrink: false
|
|
15
|
+
},
|
|
16
|
+
"data-testid": props['data-testid'],
|
|
17
|
+
type: props.type,
|
|
18
|
+
value: props.value,
|
|
19
|
+
helperText: props.helperText,
|
|
20
|
+
label: props.label,
|
|
21
|
+
disabled: props.disabled,
|
|
22
|
+
placeholder: props.placeholder,
|
|
23
|
+
required: props.required,
|
|
24
|
+
error: props.error,
|
|
25
|
+
name: props.name,
|
|
26
|
+
multiline: props.multiline,
|
|
27
|
+
rows: props.rows,
|
|
28
|
+
maxRows: props.maxRows,
|
|
29
|
+
minRows: props.minRows,
|
|
30
|
+
InputProps: {
|
|
31
|
+
startAdornment: props.prefixEl ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.InputAdornment, {
|
|
32
|
+
position: "start",
|
|
33
|
+
children: props.prefixEl
|
|
34
|
+
}) : null
|
|
35
|
+
},
|
|
36
|
+
sx: props.sx,
|
|
37
|
+
className: props.className,
|
|
38
|
+
onChange: props.onChange
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
var _default = Input;
|
|
42
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var inputTheme = function inputTheme(theme) {
|
|
8
|
+
return {
|
|
9
|
+
defaultProps: {},
|
|
10
|
+
styleOverrides: {
|
|
11
|
+
root: function root() {
|
|
12
|
+
return {
|
|
13
|
+
// display: 'flex',
|
|
14
|
+
gap: '3px',
|
|
15
|
+
'& .MuiInputLabel-root': {
|
|
16
|
+
position: 'initial',
|
|
17
|
+
transform: 'initial',
|
|
18
|
+
fontWeight: 600,
|
|
19
|
+
fontSize: '14px',
|
|
20
|
+
lineHeight: '20px',
|
|
21
|
+
color: theme.palette.neutral.main,
|
|
22
|
+
'&.Mui-focused': {
|
|
23
|
+
color: theme.palette.neutral.main
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
'& .MuiInputLabel-root.Mui-disabled': {
|
|
27
|
+
color: theme.palette.neutral.main
|
|
28
|
+
},
|
|
29
|
+
'& .MuiInputLabel-root.Mui-error': {
|
|
30
|
+
color: theme.palette.neutral.main
|
|
31
|
+
},
|
|
32
|
+
'& .MuiInputBase-root': {
|
|
33
|
+
padding: '0px 0px 4px',
|
|
34
|
+
height: '36px',
|
|
35
|
+
'& input': {
|
|
36
|
+
boxSizing: 'border-box',
|
|
37
|
+
height: '100%',
|
|
38
|
+
width: '100%',
|
|
39
|
+
padding: '8px',
|
|
40
|
+
fontFamily: 'Nunito Sans',
|
|
41
|
+
fontSize: '14px',
|
|
42
|
+
fontWeight: '400',
|
|
43
|
+
lineHeight: '20px',
|
|
44
|
+
color: theme.palette.text.primary,
|
|
45
|
+
border: 'none',
|
|
46
|
+
'&:disabled': {
|
|
47
|
+
background: theme.palette.action.disabledBackground,
|
|
48
|
+
borderColor: '#E0E8F0 !important'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
'& fieldset': {
|
|
52
|
+
border: "1px solid ".concat(theme.palette.neutral.main),
|
|
53
|
+
borderRadius: '4px',
|
|
54
|
+
'&:focus': {
|
|
55
|
+
border: "2px solid ".concat(theme.palette.secondary.main)
|
|
56
|
+
},
|
|
57
|
+
'&:disabled': {
|
|
58
|
+
background: theme.palette.action.disabledBackground,
|
|
59
|
+
borderColor: '#E0E8F0 !important'
|
|
60
|
+
},
|
|
61
|
+
'& legend': {
|
|
62
|
+
display: 'none'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
'& .MuiInputBase-root.MuiInputBase-multiline': {
|
|
67
|
+
height: '157px',
|
|
68
|
+
border: 'none',
|
|
69
|
+
fontWeight: 400,
|
|
70
|
+
fontSize: '14px',
|
|
71
|
+
lineHeight: '20px',
|
|
72
|
+
'& textarea': {
|
|
73
|
+
boxSizing: 'border-box',
|
|
74
|
+
height: '100% !important',
|
|
75
|
+
width: '100%',
|
|
76
|
+
padding: '8px'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
'& .MuiFormHelperText-root': {
|
|
80
|
+
fontWeight: 400,
|
|
81
|
+
fontSize: '12px',
|
|
82
|
+
lineHeight: '18px',
|
|
83
|
+
margin: 0,
|
|
84
|
+
color: theme.palette.action.disabled
|
|
85
|
+
},
|
|
86
|
+
'& .MuiFormHelperText-root.Mui-error': {
|
|
87
|
+
color: theme.palette.error.main
|
|
88
|
+
},
|
|
89
|
+
'& .Mui-error': {
|
|
90
|
+
'& input': {
|
|
91
|
+
border: 'none',
|
|
92
|
+
'&:focus': {
|
|
93
|
+
border: 'none'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
'& .MuiInputAdornment-root': {
|
|
98
|
+
padding: '9px 2px 9px 8px',
|
|
99
|
+
marginRight: '0px',
|
|
100
|
+
color: theme.palette.text.tertiary
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
var _default = inputTheme;
|
|
108
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
/**
|
|
10
|
+
- Use a Linear Progress Bar to show the user that an operation is in progress.
|
|
11
|
+
This is currently being used in conjuction with the uploader tool
|
|
12
|
+
**/
|
|
13
|
+
|
|
14
|
+
var LinearProgress = function LinearProgress(props) {
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
16
|
+
sx: {
|
|
17
|
+
width: "100%",
|
|
18
|
+
margin: "5px 0"
|
|
19
|
+
},
|
|
20
|
+
className: props.className,
|
|
21
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
22
|
+
sx: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
justifyContent: "space-between",
|
|
25
|
+
marginBottom: "5px"
|
|
26
|
+
},
|
|
27
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
28
|
+
sx: {
|
|
29
|
+
fontSize: "14px",
|
|
30
|
+
fontWeight: "600"
|
|
31
|
+
},
|
|
32
|
+
children: props.itemLoading
|
|
33
|
+
})
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.LinearProgress, {
|
|
35
|
+
"aria-label": 'linear progress bar',
|
|
36
|
+
variant: "determinate",
|
|
37
|
+
value: props.value,
|
|
38
|
+
"data-testid": props['data-testid'],
|
|
39
|
+
sx: {
|
|
40
|
+
'& .MuiLinearProgress-bar': {
|
|
41
|
+
backgroundColor: props.isError ? "#EB0000" : props.isUploaded ? "#28BA3F" : undefined
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
45
|
+
sx: {
|
|
46
|
+
fontSize: "11px",
|
|
47
|
+
marginTop: "10px",
|
|
48
|
+
color: "#5C6269"
|
|
49
|
+
},
|
|
50
|
+
children: props.feedbackText ? props.feedbackText : "".concat(props.value, "%")
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
var _default = LinearProgress;
|
|
55
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var linearProgress = function linearProgress() {
|
|
8
|
+
return {
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: function root() {
|
|
11
|
+
return {
|
|
12
|
+
borderRadius: "20px",
|
|
13
|
+
backgroundColor: "#E0E8F0",
|
|
14
|
+
'& .MuiLinearProgress-bar': {
|
|
15
|
+
backgroundColor: '#335B89',
|
|
16
|
+
borderRadius: "20px"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
var _default = linearProgress;
|
|
24
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _excluded = ["sx", "className"];
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
20
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
var Link = function Link(_ref) {
|
|
22
|
+
var sx = _ref.sx,
|
|
23
|
+
className = _ref.className,
|
|
24
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Link, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
26
|
+
sx: sx,
|
|
27
|
+
className: className
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
var _default = Link;
|
|
31
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 List = function List(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.List, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.children
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var _default = List;
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 ListItem = function ListItem(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItem, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.children
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var _default = ListItem;
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 ListItemButton = function ListItemButton(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemButton, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
disabled: props.disabled,
|
|
17
|
+
selected: props.selected,
|
|
18
|
+
sx: props.sx,
|
|
19
|
+
className: props.className,
|
|
20
|
+
children: props.children
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
var _default = ListItemButton;
|
|
24
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 ListItemText = function ListItemText(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemText, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.children
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var _default = ListItemText;
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.shareWithLabel = exports.editLabel = exports.deleteLabel = void 0;
|
|
7
|
+
var editLabel = 'Edit Project';
|
|
8
|
+
exports.editLabel = editLabel;
|
|
9
|
+
var shareWithLabel = 'Share with...';
|
|
10
|
+
exports.shareWithLabel = shareWithLabel;
|
|
11
|
+
var deleteLabel = 'Delete Project';
|
|
12
|
+
exports.deleteLabel = deleteLabel;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
var MenuFlyout = function MenuFlyout(props) {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Menu, {
|
|
13
|
+
"data-testid": props['data-testid'],
|
|
14
|
+
open: props.open,
|
|
15
|
+
onClose: props.onClose,
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.menuOptions.map(function (menuItem, index) {
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
21
|
+
sx: {
|
|
22
|
+
display: 'flex',
|
|
23
|
+
alignItems: 'center'
|
|
24
|
+
},
|
|
25
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
26
|
+
sx: {
|
|
27
|
+
mr: '10px'
|
|
28
|
+
},
|
|
29
|
+
children: menuItem.icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemIcon, {
|
|
30
|
+
children: menuItem.icon
|
|
31
|
+
})
|
|
32
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
34
|
+
sx: {
|
|
35
|
+
fontSize: '14px'
|
|
36
|
+
},
|
|
37
|
+
children: menuItem.label
|
|
38
|
+
})
|
|
39
|
+
})]
|
|
40
|
+
})
|
|
41
|
+
}, index);
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var _default = MenuFlyout;
|
|
46
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.menuItemTheme = exports.menuFlyoutTheme = void 0;
|
|
7
|
+
var menuFlyoutTheme = function menuFlyoutTheme() {
|
|
8
|
+
return {
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: function root() {
|
|
11
|
+
return {
|
|
12
|
+
height: 'auto',
|
|
13
|
+
fontSize: '14px',
|
|
14
|
+
borderRadius: '2px',
|
|
15
|
+
fontFamily: 'Nunito',
|
|
16
|
+
fontStyle: 'normal',
|
|
17
|
+
fontWeight: 400,
|
|
18
|
+
textTransform: 'capitalize',
|
|
19
|
+
'& .MuiList-root, &.MuiMenu-list': {
|
|
20
|
+
minWidth: 168,
|
|
21
|
+
maxWidth: 200,
|
|
22
|
+
padding: 0
|
|
23
|
+
},
|
|
24
|
+
'& .MuiPaper-root': {
|
|
25
|
+
background: '#FFFFFF',
|
|
26
|
+
border: '1px solid #7C848D',
|
|
27
|
+
borderRadius: '0px 0px 4px 4px',
|
|
28
|
+
padding: '10px',
|
|
29
|
+
gap: '20px',
|
|
30
|
+
boxShadow: '3px 3px 5px rgba(0, 0, 0, 0.2)'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
exports.menuFlyoutTheme = menuFlyoutTheme;
|
|
38
|
+
var menuItemTheme = function menuItemTheme() {
|
|
39
|
+
return {
|
|
40
|
+
styleOverrides: {
|
|
41
|
+
root: function root() {
|
|
42
|
+
return {
|
|
43
|
+
whiteSpace: 'normal',
|
|
44
|
+
minWidth: 168,
|
|
45
|
+
maxWidth: 200,
|
|
46
|
+
padding: '5px'
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
exports.menuItemTheme = menuItemTheme;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
var Modal = function Modal(props) {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Dialog, {
|
|
13
|
+
"data-testid": props['data-testid'],
|
|
14
|
+
open: props.open,
|
|
15
|
+
onClose: props.onClose,
|
|
16
|
+
"aria-labelledby": "alert-dialog-title",
|
|
17
|
+
"aria-describedby": "alert-dialog-description",
|
|
18
|
+
sx: props.sx,
|
|
19
|
+
className: props.className,
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.DialogTitle, {
|
|
21
|
+
id: "alert-dialog-title",
|
|
22
|
+
children: props.title
|
|
23
|
+
}), props.children]
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var _default = Modal;
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var modalTheme = function modalTheme(theme) {
|
|
8
|
+
return {
|
|
9
|
+
defaultProps: {},
|
|
10
|
+
styleOverrides: {
|
|
11
|
+
root: function root() {
|
|
12
|
+
return {
|
|
13
|
+
borderRadius: '4px',
|
|
14
|
+
'& .MuiBackdrop-root': {
|
|
15
|
+
backgroundColor: theme.palette.neutral.main
|
|
16
|
+
},
|
|
17
|
+
margin: 'auto',
|
|
18
|
+
'& .MuiPaper-root': {
|
|
19
|
+
margin: '0px',
|
|
20
|
+
boxShadow: "\n 0px 4px 34px\n ".concat(theme.palette.text.primary),
|
|
21
|
+
width: '410px'
|
|
22
|
+
},
|
|
23
|
+
'& .MuiDialogTitle-root': {
|
|
24
|
+
fontSize: '18px',
|
|
25
|
+
fontWeight: '600',
|
|
26
|
+
lineHeight: '24px',
|
|
27
|
+
color: theme.palette.text.primary
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
var _default = modalTheme;
|
|
35
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _iconsMaterial = require("@mui/icons-material");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var Panel = function Panel(props) {
|
|
12
|
+
var _useTheme = (0, _material.useTheme)(),
|
|
13
|
+
palette = _useTheme.palette;
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
15
|
+
component: "div",
|
|
16
|
+
"data-testid": props['data-testid'] ? "overlay-".concat(props['data-testid']) : 'overlay-panel',
|
|
17
|
+
sx: {
|
|
18
|
+
position: 'absolute',
|
|
19
|
+
top: 0,
|
|
20
|
+
right: 0,
|
|
21
|
+
bottom: 0,
|
|
22
|
+
zIndex: 1,
|
|
23
|
+
display: !props.open ? 'none' : 'block',
|
|
24
|
+
marginTop: '55px'
|
|
25
|
+
},
|
|
26
|
+
className: props.className,
|
|
27
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
28
|
+
component: "div",
|
|
29
|
+
"data-testid": props['data-testid'] || 'wrapper-panel',
|
|
30
|
+
sx: {
|
|
31
|
+
position: 'fixed',
|
|
32
|
+
right: 0,
|
|
33
|
+
background: palette.common.white,
|
|
34
|
+
maxWidth: props.size === 'medium' ? '560px' : props.size === 'small' ? '380px' : '720px',
|
|
35
|
+
width: '100%',
|
|
36
|
+
height: '100%',
|
|
37
|
+
display: 'flex',
|
|
38
|
+
flexDirection: 'column',
|
|
39
|
+
boxShadow: "0 4px 10px ".concat(palette.text.primary, "80"),
|
|
40
|
+
overflow: 'auto',
|
|
41
|
+
borderBottom: "5px solid ".concat(palette.secondary.main),
|
|
42
|
+
zIndex: 2
|
|
43
|
+
},
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
45
|
+
component: "header",
|
|
46
|
+
"data-testid": "header-panel",
|
|
47
|
+
sx: {
|
|
48
|
+
background: palette.secondary.main,
|
|
49
|
+
height: '64px',
|
|
50
|
+
padding: '0px 25px 0px 30px',
|
|
51
|
+
display: 'flex',
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
justifyContent: 'space-between',
|
|
54
|
+
position: 'sticky',
|
|
55
|
+
top: 0,
|
|
56
|
+
zIndex: 1000
|
|
57
|
+
},
|
|
58
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
59
|
+
sx: {
|
|
60
|
+
fontFamily: 'Dosis',
|
|
61
|
+
textTransform: 'uppercase',
|
|
62
|
+
fontWeight: 600,
|
|
63
|
+
fontSize: '18px',
|
|
64
|
+
color: palette.common.white,
|
|
65
|
+
lineHeight: '23px',
|
|
66
|
+
letterSpacing: '0.25px'
|
|
67
|
+
},
|
|
68
|
+
children: props.title
|
|
69
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
70
|
+
component: "button",
|
|
71
|
+
"aria-label": "close-button-panel",
|
|
72
|
+
"data-testid": props['data-testid'] ? "close-button-".concat(props['data-testid']) : 'close-button-wrapper-panel',
|
|
73
|
+
onClick: props.onClose,
|
|
74
|
+
sx: {
|
|
75
|
+
cursor: 'pointer',
|
|
76
|
+
background: 'transparent',
|
|
77
|
+
border: 'none',
|
|
78
|
+
width: '26px',
|
|
79
|
+
height: '26px',
|
|
80
|
+
display: 'flex',
|
|
81
|
+
alignItems: 'center',
|
|
82
|
+
justifyContent: 'center'
|
|
83
|
+
},
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconsMaterial.Close, {
|
|
85
|
+
"data-testid": "panel-close-icon",
|
|
86
|
+
sx: {
|
|
87
|
+
fill: palette.common.white,
|
|
88
|
+
margin: 'auto'
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
})]
|
|
92
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
93
|
+
component: "div",
|
|
94
|
+
sx: {
|
|
95
|
+
overflow: 'auto',
|
|
96
|
+
flex: 1
|
|
97
|
+
},
|
|
98
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
99
|
+
component: "div",
|
|
100
|
+
"data-testid": "panel-content",
|
|
101
|
+
sx: {
|
|
102
|
+
flex: 1,
|
|
103
|
+
padding: '30px'
|
|
104
|
+
},
|
|
105
|
+
children: props.children
|
|
106
|
+
})
|
|
107
|
+
})]
|
|
108
|
+
})
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
var _default = Panel;
|
|
112
|
+
exports["default"] = _default;
|