@veritone-ce/design-system 1.12.21 → 1.12.23
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 +70 -72
- package/dist/components/Box/index.js +13 -8
- package/dist/components/Breadcrumbs/breadcrumbs.theme.js +14 -10
- package/dist/components/Breadcrumbs/index.js +9 -9
- package/dist/components/Button/Indicator.js +10 -10
- package/dist/components/Button/button.theme.js +107 -105
- package/dist/components/Button/index.js +26 -18
- package/dist/components/Button/useButtonProps.js +18 -10
- package/dist/components/Checkbox/checkbox.theme.js +21 -17
- package/dist/components/Checkbox/index.js +16 -10
- package/dist/components/CustomSlider/index.js +28 -18
- package/dist/components/Drawer/index.js +13 -8
- package/dist/components/FileUploader/index.js +88 -69
- package/dist/components/FileUploader/useUploadFile.js +148 -51
- package/dist/components/FormControlLabel/index.js +13 -8
- package/dist/components/HomeOutlinedIcon/index.js +13 -8
- package/dist/components/IconGroups/index.js +14 -9
- package/dist/components/IconListItem/index.js +17 -10
- package/dist/components/Input/index.js +16 -10
- package/dist/components/Input/input.theme.js +99 -95
- package/dist/components/LinearProgress/index.js +40 -33
- package/dist/components/LinearProgress/linearProgress.theme.js +17 -13
- package/dist/components/Link/index.js +13 -8
- package/dist/components/List/index.js +13 -8
- package/dist/components/ListItem/index.js +13 -8
- package/dist/components/ListItemButton/index.js +13 -8
- package/dist/components/ListItemText/index.js +13 -8
- package/dist/components/MenuFlyout/constants.js +3 -3
- package/dist/components/MenuFlyout/index.js +21 -13
- package/dist/components/MenuFlyout/menuFlyout.theme.js +47 -39
- package/dist/components/Modal/index.js +20 -13
- package/dist/components/Modal/modal.theme.js +28 -26
- package/dist/components/ModelGridView/index.js +109 -72
- package/dist/components/Panel/index.js +21 -19
- package/dist/components/ProgressIndicator/DefaultProgress.js +16 -10
- package/dist/components/ProgressIndicator/MLProgress.js +16 -10
- package/dist/components/ProgressIndicator/index.js +17 -14
- package/dist/components/RadioButton/RadioButton.theme.js +57 -53
- package/dist/components/RadioButton/index.js +24 -14
- package/dist/components/RadioGroup/index.js +13 -8
- package/dist/components/Select/index.js +48 -33
- package/dist/components/Select/select.theme.js +55 -51
- package/dist/components/StatusChip/constants.js +3 -3
- package/dist/components/StatusChip/index.js +19 -12
- package/dist/components/StatusChip/statusChip.theme.js +33 -29
- package/dist/components/Step/index.js +13 -8
- package/dist/components/StepLabel/index.js +13 -8
- package/dist/components/Stepper/index.js +10 -6
- package/dist/components/Stepper/stepper.theme.js +44 -42
- package/dist/components/Tabs/Badge.js +5 -6
- package/dist/components/Tabs/index.js +42 -23
- package/dist/components/Tabs/tabs.theme.js +32 -28
- package/dist/components/ThemeProvider/index.js +6 -7
- package/dist/components/Toast/index.js +41 -32
- package/dist/components/Typography/index.js +13 -8
- package/dist/components/UtilityRail/index.js +65 -57
- package/dist/components/UtilityRail/mock.js +1 -1
- package/dist/index.js +72 -72
- package/package.json +84 -95
- package/dist/assets/information.svg +0 -3
- package/dist/assets/warning.svg +0 -3
- package/dist/components/Box/__tests__/Box.test.d.ts +0 -1
- package/dist/components/Box/__tests__/Box.test.js +0 -16
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.js +0 -36
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.js +0 -26
- package/dist/components/Button/Button.stories.d.ts +0 -7
- package/dist/components/Button/Button.stories.js +0 -99
- package/dist/components/Button/__tests__/Button.test.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +0 -59
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/components/Checkbox/Checkbox.stories.js +0 -49
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +0 -15
- package/dist/components/CustomSlider/CustomSlider.stories.d.ts +0 -5
- package/dist/components/CustomSlider/CustomSlider.stories.js +0 -48
- package/dist/components/Drawer/__tests__/Drawer.test.d.ts +0 -1
- package/dist/components/Drawer/__tests__/Drawer.test.js +0 -16
- package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -15
- package/dist/components/FileUploader/FileUploader.stories.js +0 -25
- package/dist/components/FileUploader/__tests__/FileUploader.test.d.ts +0 -1
- package/dist/components/FileUploader/__tests__/FileUploader.test.js +0 -226
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +0 -1
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.js +0 -19
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +0 -7
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.js +0 -20
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +0 -1
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.js +0 -15
- package/dist/components/IconGroups/IconGroups.stories.d.ts +0 -7
- package/dist/components/IconGroups/IconGroups.stories.js +0 -20
- package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +0 -1
- package/dist/components/IconGroups/__tests__/IconGroups.test.js +0 -15
- package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +0 -1
- package/dist/components/IconListItem/__tests__/IconListItem.test.js +0 -15
- package/dist/components/Input/Input.stories.d.ts +0 -11
- package/dist/components/Input/Input.stories.js +0 -113
- package/dist/components/Input/__tests__/Input.test.d.ts +0 -1
- package/dist/components/Input/__tests__/Input.test.js +0 -14
- package/dist/components/LinearProgress/LinearProgress.stories.d.ts +0 -14
- package/dist/components/LinearProgress/LinearProgress.stories.js +0 -43
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.d.ts +0 -1
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.js +0 -40
- package/dist/components/Link/__tests__/Link.test.d.ts +0 -1
- package/dist/components/Link/__tests__/Link.test.js +0 -15
- package/dist/components/List/__tests__/List.test.d.ts +0 -1
- package/dist/components/List/__tests__/List.test.js +0 -15
- package/dist/components/ListItem/__tests__/ListItem.test.d.ts +0 -1
- package/dist/components/ListItem/__tests__/ListItem.test.js +0 -15
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +0 -1
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.js +0 -15
- package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +0 -1
- package/dist/components/ListItemText/__tests__/ListItemText.test.js +0 -15
- package/dist/components/MenuFlyout/MenuFlyout.stories.d.ts +0 -31
- package/dist/components/MenuFlyout/MenuFlyout.stories.js +0 -60
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.d.ts +0 -1
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.js +0 -42
- package/dist/components/Modal/Modal.stories.d.ts +0 -15
- package/dist/components/Modal/Modal.stories.js +0 -195
- package/dist/components/Modal/__tests__/Modal.test.d.ts +0 -1
- package/dist/components/Modal/__tests__/Modal.test.js +0 -17
- package/dist/components/ModelGridView/ModelGridView.stories.d.ts +0 -5
- package/dist/components/ModelGridView/ModelGridView.stories.js +0 -41
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.d.ts +0 -1
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.js +0 -48
- package/dist/components/Panel/Panel.stories.d.ts +0 -14
- package/dist/components/Panel/Panel.stories.js +0 -63
- package/dist/components/Panel/__tests__/Panel.test.d.ts +0 -1
- package/dist/components/Panel/__tests__/Panel.test.js +0 -74
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -7
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +0 -45
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.d.ts +0 -1
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.js +0 -32
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -10
- package/dist/components/RadioButton/RadioButton.stories.js +0 -38
- package/dist/components/RadioButton/__tests__/RadioButton.test.d.ts +0 -1
- package/dist/components/RadioButton/__tests__/RadioButton.test.js +0 -14
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +0 -1
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.js +0 -15
- package/dist/components/Select/Select.stories.d.ts +0 -5
- package/dist/components/Select/Select.stories.js +0 -86
- package/dist/components/Select/__tests__/Select.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +0 -40
- package/dist/components/StatusChip/StatusChip.stories.d.ts +0 -51
- package/dist/components/StatusChip/StatusChip.stories.js +0 -59
- package/dist/components/StatusChip/__tests__/StatusChip.test.d.ts +0 -1
- package/dist/components/StatusChip/__tests__/StatusChip.test.js +0 -45
- package/dist/components/Step/__tests__/Step.test.d.ts +0 -1
- package/dist/components/Step/__tests__/Step.test.js +0 -15
- package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +0 -1
- package/dist/components/StepLabel/__tests__/StepLabel.test.js +0 -15
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -21
- package/dist/components/Stepper/Stepper.stories.js +0 -38
- package/dist/components/Stepper/__tests__/Stepper.test.d.ts +0 -1
- package/dist/components/Stepper/__tests__/Stepper.test.js +0 -15
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -6
- package/dist/components/Tabs/Tabs.stories.js +0 -56
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +0 -53
- package/dist/components/ThemeProvider/__tests__/Button.test.d.ts +0 -1
- package/dist/components/ThemeProvider/__tests__/Button.test.js +0 -15
- package/dist/components/Toast/Toast.stories.d.ts +0 -14
- package/dist/components/Toast/Toast.stories.js +0 -108
- package/dist/components/Toast/__tests__/Toast.test.d.ts +0 -1
- package/dist/components/Toast/__tests__/Toast.test.js +0 -48
- package/dist/components/Typography/Typography.stories.d.ts +0 -20
- package/dist/components/Typography/Typography.stories.js +0 -21
- package/dist/components/Typography/__tests__/Typography.test.d.ts +0 -1
- package/dist/components/Typography/__tests__/Typography.test.js +0 -16
- package/dist/components/UtilityRail/UtilityRail.stories.d.ts +0 -8
- package/dist/components/UtilityRail/UtilityRail.stories.js +0 -23
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.d.ts +0 -1
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.js +0 -18
- package/dist/react-app-env.d.js +0 -2
- package/dist/reportWebVitals.d.ts +0 -3
- package/dist/reportWebVitals.js +0 -27
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.js +0 -3
- package/dist/utils/tests/helpers.d.ts +0 -6
- package/dist/utils/tests/helpers.js +0 -32
package/dist/assets/theme.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
+
exports["default"] = exports.colors = void 0;
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
8
9
|
var _material = require("@mui/material");
|
|
9
10
|
var _stepper = _interopRequireDefault(require("../components/Stepper/stepper.theme"));
|
|
@@ -20,17 +21,21 @@ var _linearProgress = _interopRequireDefault(require("../components/LinearProgre
|
|
|
20
21
|
var _CheckCircle = _interopRequireDefault(require("@mui/icons-material/CheckCircle"));
|
|
21
22
|
var _Cancel = _interopRequireDefault(require("@mui/icons-material/Cancel"));
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
27
|
+
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; }
|
|
28
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
29
|
+
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); }
|
|
24
30
|
var InformationIcon = function InformationIcon(props) {
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
26
|
-
...props,
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
27
32
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
28
33
|
fillRule: "evenodd",
|
|
29
34
|
clipRule: "evenodd",
|
|
30
35
|
d: "M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.674-4.444.14-.575c-.072.034-.189.073-.35.118a1.655 1.655 0 0 1-.436.067c-.272 0-.464-.045-.575-.134-.11-.09-.166-.258-.166-.505 0-.098.017-.243.051-.435.034-.191.073-.362.115-.511l.524-1.86c.051-.17.087-.358.106-.563.019-.204.028-.347.028-.428 0-.392-.137-.71-.412-.956-.275-.244-.666-.367-1.173-.367-.281 0-.58.05-.895.15-.315.1-.645.22-.99.361l-.141.576c.102-.039.225-.08.368-.122.142-.043.282-.064.418-.064.277 0 .465.047.563.14.098.095.147.26.147.5 0 .131-.016.277-.048.437-.032.16-.072.33-.119.508l-.524 1.867a5.499 5.499 0 0 0-.102.527 3.366 3.366 0 0 0-.032.457c0 .384.142.7.425.95.284.249.681.373 1.192.373.333 0 .625-.043.876-.13.252-.088.588-.215 1.01-.38Zm-.093-7.552a1.09 1.09 0 0 0 .368-.828 1.1 1.1 0 0 0-.368-.83A1.247 1.247 0 0 0 12.696 7c-.345 0-.641.115-.889.345-.247.23-.37.507-.37.831 0 .324.123.6.37.828.248.228.544.342.889.342s.64-.114.885-.342Z",
|
|
31
36
|
fill: "#214167"
|
|
32
37
|
})
|
|
33
|
-
});
|
|
38
|
+
}));
|
|
34
39
|
};
|
|
35
40
|
InformationIcon.defaultProps = {
|
|
36
41
|
width: "22",
|
|
@@ -39,15 +44,14 @@ InformationIcon.defaultProps = {
|
|
|
39
44
|
xmlns: "http://www.w3.org/2000/svg"
|
|
40
45
|
};
|
|
41
46
|
var WarningIcon = function WarningIcon(props) {
|
|
42
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
43
|
-
...props,
|
|
47
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
44
48
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
45
49
|
fillRule: "evenodd",
|
|
46
50
|
clipRule: "evenodd",
|
|
47
51
|
d: "M17.075 17.075A9.976 9.976 0 0 0 20 10a9.976 9.976 0 0 0-2.925-7.075A9.976 9.976 0 0 0 10 0a9.976 9.976 0 0 0-7.075 2.925A9.976 9.976 0 0 0 0 10a9.976 9.976 0 0 0 2.925 7.075A9.976 9.976 0 0 0 10 20a9.976 9.976 0 0 0 7.075-2.925Zm-5.722-3.218A1.35 1.35 0 0 0 10 12.505c-.75 0-1.371.603-1.371 1.352 0 .75.621 1.372 1.371 1.372s1.353-.622 1.353-1.372ZM10 11.134c-.494 0-.86-.403-.914-.915l-.457-4.076C8.556 5.43 9.305 4.77 10 4.77s1.444.659 1.353 1.372l-.439 4.076c-.055.512-.42.915-.914.915Z",
|
|
48
52
|
fill: "#FFBB0A"
|
|
49
53
|
})
|
|
50
|
-
});
|
|
54
|
+
}));
|
|
51
55
|
};
|
|
52
56
|
WarningIcon.defaultProps = {
|
|
53
57
|
width: "22",
|
|
@@ -55,7 +59,7 @@ WarningIcon.defaultProps = {
|
|
|
55
59
|
fill: "none",
|
|
56
60
|
xmlns: "http://www.w3.org/2000/svg"
|
|
57
61
|
};
|
|
58
|
-
|
|
62
|
+
var colors = {
|
|
59
63
|
brand: {
|
|
60
64
|
pink: '#D43060',
|
|
61
65
|
blueOne: '#214167',
|
|
@@ -63,30 +67,30 @@ const colors = {
|
|
|
63
67
|
warning: '#FFBB0A',
|
|
64
68
|
success: '#28BA3F',
|
|
65
69
|
error: '#EB0000',
|
|
66
|
-
white:
|
|
70
|
+
white: "#FFFFFF"
|
|
67
71
|
},
|
|
68
72
|
text: {
|
|
69
|
-
primary:
|
|
70
|
-
secondary:
|
|
71
|
-
tertiary:
|
|
72
|
-
disabled:
|
|
73
|
+
primary: "#2A323C",
|
|
74
|
+
secondary: "#5C6269",
|
|
75
|
+
tertiary: "#465364",
|
|
76
|
+
disabled: "#7C848D"
|
|
73
77
|
},
|
|
74
78
|
button: {
|
|
75
|
-
primary:
|
|
76
|
-
hover:
|
|
79
|
+
primary: "#1871E8",
|
|
80
|
+
hover: "#1259B9"
|
|
77
81
|
},
|
|
78
82
|
misc: {
|
|
79
|
-
background:
|
|
80
|
-
altBackground:
|
|
81
|
-
rowHoverGreyOne:
|
|
82
|
-
rowOn:
|
|
83
|
-
rowOnHoverGreyTwo:
|
|
83
|
+
background: "#E4ECF3",
|
|
84
|
+
altBackground: "#E0E8F0",
|
|
85
|
+
rowHoverGreyOne: "#FAFAFA",
|
|
86
|
+
rowOn: "#F2F7FE",
|
|
87
|
+
rowOnHoverGreyTwo: "#EAF1FA"
|
|
84
88
|
}
|
|
85
89
|
};
|
|
86
90
|
exports.colors = colors;
|
|
87
91
|
// create theme in steps https://mui.com/material-ui/customization/theming/#api
|
|
88
92
|
|
|
89
|
-
|
|
93
|
+
var theme = (0, _material.createTheme)({
|
|
90
94
|
typography: {
|
|
91
95
|
fontFamily: ['Nunito Sans', 'Helvetica', 'sans-serif'].join(','),
|
|
92
96
|
h2: {
|
|
@@ -136,26 +140,26 @@ let theme = (0, _material.createTheme)({
|
|
|
136
140
|
spacing: 10
|
|
137
141
|
});
|
|
138
142
|
theme = (0, _material.createTheme)(theme, {
|
|
139
|
-
components: {
|
|
140
|
-
MuiButton: (0, _button
|
|
141
|
-
|
|
142
|
-
MuiSelect: (0, _select
|
|
143
|
-
MuiTextField: (0, _input
|
|
144
|
-
MuiDialog: (0, _modal
|
|
145
|
-
MuiCheckbox: (0, _checkbox
|
|
146
|
-
MuiRadio: (0, _RadioButton
|
|
147
|
-
MuiTabs: (0, _tabs
|
|
148
|
-
MuiChip: (0, _statusChip
|
|
143
|
+
components: _objectSpread(_objectSpread({
|
|
144
|
+
MuiButton: (0, _button["default"])(theme)
|
|
145
|
+
}, (0, _stepper["default"])(theme)), {}, {
|
|
146
|
+
MuiSelect: (0, _select["default"])(theme),
|
|
147
|
+
MuiTextField: (0, _input["default"])(theme),
|
|
148
|
+
MuiDialog: (0, _modal["default"])(theme),
|
|
149
|
+
MuiCheckbox: (0, _checkbox["default"])(theme),
|
|
150
|
+
MuiRadio: (0, _RadioButton["default"])(theme),
|
|
151
|
+
MuiTabs: (0, _tabs["default"])(theme),
|
|
152
|
+
MuiChip: (0, _statusChip["default"])(theme),
|
|
149
153
|
MuiMenu: (0, _menuFlyout.menuFlyoutTheme)(theme),
|
|
150
154
|
MuiMenuItem: (0, _menuFlyout.menuItemTheme)(theme),
|
|
151
|
-
MuiLinearProgress: (0, _linearProgress
|
|
155
|
+
MuiLinearProgress: (0, _linearProgress["default"])(theme),
|
|
152
156
|
MuiInputLabel: {
|
|
153
157
|
styleOverrides: {
|
|
154
158
|
root: {
|
|
155
159
|
color: theme.palette.text.secondary,
|
|
156
|
-
fontSize:
|
|
157
|
-
lineHeight:
|
|
158
|
-
fontWeight:
|
|
160
|
+
fontSize: "14px",
|
|
161
|
+
lineHeight: "21px",
|
|
162
|
+
fontWeight: "600"
|
|
159
163
|
}
|
|
160
164
|
}
|
|
161
165
|
},
|
|
@@ -177,17 +181,17 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
177
181
|
position: 'relative',
|
|
178
182
|
marginLeft: 0,
|
|
179
183
|
'&.Mui-error': {
|
|
180
|
-
paddingLeft:
|
|
184
|
+
paddingLeft: "17px",
|
|
181
185
|
'&::before': {
|
|
182
|
-
content:
|
|
183
|
-
height:
|
|
186
|
+
content: "\"\"",
|
|
187
|
+
height: "12px",
|
|
184
188
|
width: '12px',
|
|
185
189
|
position: 'absolute',
|
|
186
190
|
left: 0,
|
|
187
|
-
top:
|
|
188
|
-
transform:
|
|
191
|
+
top: "50%",
|
|
192
|
+
transform: "translate(0, -50%)",
|
|
189
193
|
backgroundColor: theme.palette.error.main,
|
|
190
|
-
borderRadius:
|
|
194
|
+
borderRadius: "100%"
|
|
191
195
|
}
|
|
192
196
|
}
|
|
193
197
|
}
|
|
@@ -196,8 +200,8 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
196
200
|
MuiDialogTitle: {
|
|
197
201
|
styleOverrides: {
|
|
198
202
|
root: {
|
|
199
|
-
fontSize:
|
|
200
|
-
lineHeight:
|
|
203
|
+
fontSize: "24px",
|
|
204
|
+
lineHeight: "34px",
|
|
201
205
|
paddingTop: theme.spacing(3),
|
|
202
206
|
paddingLeft: theme.spacing(3),
|
|
203
207
|
paddingRight: theme.spacing(3),
|
|
@@ -224,7 +228,7 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
224
228
|
},
|
|
225
229
|
MuiLink: {
|
|
226
230
|
defaultProps: {
|
|
227
|
-
underline:
|
|
231
|
+
underline: "none",
|
|
228
232
|
color: colors.button.primary
|
|
229
233
|
}
|
|
230
234
|
},
|
|
@@ -232,45 +236,39 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
232
236
|
defaultProps: {
|
|
233
237
|
autoHideDuration: 3000,
|
|
234
238
|
anchorOrigin: {
|
|
235
|
-
vertical:
|
|
236
|
-
horizontal:
|
|
239
|
+
vertical: "top",
|
|
240
|
+
horizontal: "right"
|
|
237
241
|
}
|
|
238
242
|
},
|
|
239
243
|
styleOverrides: {
|
|
240
244
|
root: {
|
|
241
|
-
width:
|
|
242
|
-
maxWidth:
|
|
243
|
-
position:
|
|
245
|
+
width: "100%",
|
|
246
|
+
maxWidth: "415px",
|
|
247
|
+
position: "absolute"
|
|
244
248
|
}
|
|
245
249
|
}
|
|
246
250
|
},
|
|
247
251
|
MuiAlert: {
|
|
248
252
|
defaultProps: {
|
|
249
|
-
variant:
|
|
253
|
+
variant: "outlined",
|
|
250
254
|
iconMapping: {
|
|
251
|
-
success: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckCircle
|
|
252
|
-
info: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}),
|
|
256
|
-
warning: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
257
|
-
alt: 'warning icon',
|
|
258
|
-
src: WarningIcon
|
|
259
|
-
}),
|
|
260
|
-
error: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cancel.default, {})
|
|
255
|
+
success: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckCircle["default"], {}),
|
|
256
|
+
info: /*#__PURE__*/(0, _jsxRuntime.jsx)(InformationIcon, {}),
|
|
257
|
+
warning: /*#__PURE__*/(0, _jsxRuntime.jsx)(WarningIcon, {}),
|
|
258
|
+
error: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cancel["default"], {})
|
|
261
259
|
}
|
|
262
260
|
},
|
|
263
261
|
styleOverrides: {
|
|
264
262
|
root: {
|
|
265
|
-
width:
|
|
266
|
-
backgroundColor:
|
|
267
|
-
position:
|
|
268
|
-
overflow:
|
|
269
|
-
border:
|
|
263
|
+
width: "415px",
|
|
264
|
+
backgroundColor: "white",
|
|
265
|
+
position: "relative",
|
|
266
|
+
overflow: "hidden",
|
|
267
|
+
border: "1px solid #7C848D",
|
|
270
268
|
'&:after': {
|
|
271
269
|
content: '""',
|
|
272
|
-
position:
|
|
273
|
-
width:
|
|
270
|
+
position: "absolute",
|
|
271
|
+
width: "4px",
|
|
274
272
|
left: 0,
|
|
275
273
|
top: 0,
|
|
276
274
|
bottom: 0
|
|
@@ -292,8 +290,8 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
292
290
|
fontSize: 20
|
|
293
291
|
},
|
|
294
292
|
'& .MuiAlert-message': {
|
|
295
|
-
fontSize:
|
|
296
|
-
lineHeight:
|
|
293
|
+
fontSize: "12px",
|
|
294
|
+
lineHeight: "22px",
|
|
297
295
|
color: colors.text.primary
|
|
298
296
|
},
|
|
299
297
|
'& .MuiIconButton-root': {
|
|
@@ -350,7 +348,7 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
350
348
|
// }
|
|
351
349
|
// }
|
|
352
350
|
// }
|
|
353
|
-
}
|
|
351
|
+
})
|
|
354
352
|
});
|
|
355
353
|
var _default = theme;
|
|
356
|
-
exports
|
|
354
|
+
exports["default"] = _default;
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
+
exports["default"] = void 0;
|
|
7
8
|
var _material = require("@mui/material");
|
|
8
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
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; }
|
|
11
|
+
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; }
|
|
12
|
+
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; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
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); }
|
|
15
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
var Box = function Box(_ref) {
|
|
18
|
+
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, _objectSpread({}, props));
|
|
15
20
|
};
|
|
16
21
|
var _default = Box;
|
|
17
|
-
exports
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var breadcrumbs = function breadcrumbs(theme) {
|
|
8
|
+
return {
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: function root() {
|
|
11
|
+
return {
|
|
12
|
+
'& .MuiBreadcrumbs-separator': {
|
|
13
|
+
color: theme.palette.text.disabled
|
|
14
|
+
}
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
16
20
|
var _default = breadcrumbs;
|
|
17
|
-
exports
|
|
21
|
+
exports["default"] = _default;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
8
|
var _theme = _interopRequireDefault(require("../../assets/theme"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
/**
|
|
12
12
|
* - This is the breadcrumbs component that is used in the header
|
|
13
13
|
* - It takes in an array of links and renders them as breadcrumbs
|
|
@@ -15,17 +15,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
15
15
|
* - The last link is styled differently
|
|
16
16
|
**/
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
links =
|
|
20
|
-
|
|
18
|
+
var BreadcrumbsComponent = function BreadcrumbsComponent(_ref) {
|
|
19
|
+
var _ref$links = _ref.links,
|
|
20
|
+
links = _ref$links === void 0 ? [] : _ref$links;
|
|
21
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Breadcrumbs, {
|
|
22
22
|
"aria-label": "breadcrumbs",
|
|
23
23
|
"data-testid": "breadcrumbs",
|
|
24
|
-
children: links
|
|
24
|
+
children: links === null || links === void 0 ? void 0 : links.map(function (link, index) {
|
|
25
25
|
if (index === links.length - 1) {
|
|
26
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
27
27
|
sx: {
|
|
28
|
-
color: _theme
|
|
28
|
+
color: _theme["default"].palette.text.disabled,
|
|
29
29
|
fontFamily: 'Dosis',
|
|
30
30
|
fontStyle: 'normal',
|
|
31
31
|
fontWeight: 600,
|
|
@@ -39,7 +39,7 @@ const BreadcrumbsComponent = ({
|
|
|
39
39
|
href: link.href,
|
|
40
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
41
41
|
sx: {
|
|
42
|
-
color: _theme
|
|
42
|
+
color: _theme["default"].palette.button.main,
|
|
43
43
|
fontFamily: 'Dosis',
|
|
44
44
|
fontStyle: 'normal',
|
|
45
45
|
fontWeight: 600,
|
|
@@ -54,4 +54,4 @@ const BreadcrumbsComponent = ({
|
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
var _default = BreadcrumbsComponent;
|
|
57
|
-
exports
|
|
57
|
+
exports["default"] = _default;
|
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
8
|
var _theme = _interopRequireDefault(require("../../assets/theme"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
var Indicator = function Indicator() {
|
|
12
12
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
13
13
|
className: "button-loader",
|
|
14
14
|
"data-testid": "loading-indicator",
|
|
15
15
|
sx: {
|
|
16
|
-
position:
|
|
16
|
+
position: "absolute",
|
|
17
17
|
top: 0,
|
|
18
18
|
left: 0,
|
|
19
19
|
right: 0,
|
|
20
20
|
bottom: 0,
|
|
21
|
-
display:
|
|
22
|
-
justifyItems:
|
|
23
|
-
alignItems:
|
|
24
|
-
background: _theme
|
|
25
|
-
border:
|
|
21
|
+
display: "grid",
|
|
22
|
+
justifyItems: "center",
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
background: _theme["default"].palette.misc.rowHoverGreyOne,
|
|
25
|
+
border: "1px solid ".concat(_theme["default"].palette.misc.rowOnHoverGreyTwo),
|
|
26
26
|
borderRadius: '0.2rem'
|
|
27
27
|
},
|
|
28
28
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CircularProgress, {
|
|
@@ -31,4 +31,4 @@ const Indicator = () => {
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
var _default = Indicator;
|
|
34
|
-
exports
|
|
34
|
+
exports["default"] = _default;
|