@veritone-ce/design-system 1.12.44 → 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 +29 -15
- 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 +3 -2
- package/dist/{components → esm/components}/Select/select.theme.js +1 -1
- 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 +20 -4
- 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 -2
- 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 +39 -11
- 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}/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
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
var _excluded = ["variant"];
|
|
2
|
-
function
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
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); }
|
|
8
|
+
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; }
|
|
3
9
|
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; }
|
|
4
10
|
import { Table as MuiTable, TableBody as MuiTableBody, TableCell as MuiTableCell, TableContainer as MuiTableContainer, TableFooter as MuiTableFooter, TableHead as MuiTableHead, TablePagination as MuiTablePagination, TableRow as MuiTableRow, TableSortLabel as MuiTableSortLabel } from '@mui/material';
|
|
5
11
|
import React from 'react';
|
|
@@ -25,7 +31,7 @@ export var TableBody = function TableBody(props) {
|
|
|
25
31
|
export var TableCell = function TableCell(_ref) {
|
|
26
32
|
var _ref$variant = _ref.variant,
|
|
27
33
|
variant = _ref$variant === void 0 ? 'data' : _ref$variant,
|
|
28
|
-
props =
|
|
34
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
35
|
return /*#__PURE__*/_jsx(MuiTableCell, {
|
|
30
36
|
"data-testid": props['data-testid'],
|
|
31
37
|
component: variant === 'header' ? 'th' : 'td',
|
|
@@ -72,7 +78,17 @@ export var TableHead = function TableHead(props) {
|
|
|
72
78
|
});
|
|
73
79
|
};
|
|
74
80
|
export var TablePagination = function TablePagination(props) {
|
|
75
|
-
return /*#__PURE__*/_jsx(MuiTablePagination,
|
|
81
|
+
return /*#__PURE__*/_jsx(MuiTablePagination, {
|
|
82
|
+
count: props.count,
|
|
83
|
+
page: props.page,
|
|
84
|
+
rowsPerPage: props.rowsPerPage,
|
|
85
|
+
colSpan: props.colSpan,
|
|
86
|
+
onPageChange: props.onPageChange,
|
|
87
|
+
sx: props.sx,
|
|
88
|
+
className: props.className,
|
|
89
|
+
rowsPerPageOptions: props.rowsPerPageOptions,
|
|
90
|
+
onRowsPerPageChange: props.onRowsPerPageChange
|
|
91
|
+
});
|
|
76
92
|
};
|
|
77
93
|
var StyledMuiTableRow = styled(MuiTableRow)(function (_ref2) {
|
|
78
94
|
var theme = _ref2.theme;
|
|
@@ -97,5 +113,5 @@ export var TableRow = function TableRow(props) {
|
|
|
97
113
|
});
|
|
98
114
|
};
|
|
99
115
|
export var TableSortLabel = function TableSortLabel(props) {
|
|
100
|
-
return /*#__PURE__*/_jsx(MuiTableSortLabel,
|
|
116
|
+
return /*#__PURE__*/_jsx(MuiTableSortLabel, _objectSpread({}, props));
|
|
101
117
|
};
|
|
@@ -13,7 +13,7 @@ function Tabs(props) {
|
|
|
13
13
|
return /*#__PURE__*/_jsx(MuiTab, {
|
|
14
14
|
value: index,
|
|
15
15
|
label: /*#__PURE__*/_jsx(BadgeLabel, {
|
|
16
|
-
count: (_tab$count = tab.count)
|
|
16
|
+
count: (_tab$count = tab.count) !== null && _tab$count !== void 0 ? _tab$count : 0,
|
|
17
17
|
label: tab.label
|
|
18
18
|
}),
|
|
19
19
|
disableRipple: true
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';
|
|
2
4
|
import { createDesignSystemTheme } from '../../assets/theme.js';
|
|
3
5
|
import React from 'react';
|
|
@@ -6,7 +8,7 @@ export var defaultTheme = createDesignSystemTheme();
|
|
|
6
8
|
var ThemeProvider = function ThemeProvider(props) {
|
|
7
9
|
var theme = React.useMemo(function () {
|
|
8
10
|
var _props$theme;
|
|
9
|
-
return (_props$theme = props.theme)
|
|
11
|
+
return (_props$theme = props.theme) !== null && _props$theme !== void 0 ? _props$theme : defaultTheme;
|
|
10
12
|
}, [props.theme]);
|
|
11
13
|
return /*#__PURE__*/_jsx(MuiThemeProvider, {
|
|
12
14
|
theme: theme,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["open", "onClose", "sx", "className"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
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); }
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
10
|
+
import { Snackbar as MuiSnackbar } from '@mui/material';
|
|
11
|
+
import Alert from '../Alert/index.js';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var Toast = function Toast(_ref) {
|
|
14
|
+
var open = _ref.open,
|
|
15
|
+
onClose = _ref.onClose,
|
|
16
|
+
sx = _ref.sx,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
alertProps = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/_jsx(MuiSnackbar, {
|
|
20
|
+
open: open,
|
|
21
|
+
onClose: onClose,
|
|
22
|
+
sx: sx,
|
|
23
|
+
className: className,
|
|
24
|
+
children: /*#__PURE__*/_jsx(Alert, _objectSpread({
|
|
25
|
+
onClose: onClose
|
|
26
|
+
}, alertProps))
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
export default Toast;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import { useTheme } from '@mui/material/styles';
|
|
2
4
|
import { Box } from '@mui/material';
|
|
3
5
|
import Typography from '../Typography/index.js';
|
|
@@ -16,7 +18,7 @@ var UtilityRail = function UtilityRail(props) {
|
|
|
16
18
|
className: props.className,
|
|
17
19
|
children: props.items.map(function (item, index) {
|
|
18
20
|
return /*#__PURE__*/_jsx(Box, {
|
|
19
|
-
"data-testid": "item-"
|
|
21
|
+
"data-testid": "item-".concat(index),
|
|
20
22
|
sx: {
|
|
21
23
|
'&::before': {
|
|
22
24
|
content: '""',
|
|
@@ -25,10 +27,10 @@ var UtilityRail = function UtilityRail(props) {
|
|
|
25
27
|
width: '0.625rem',
|
|
26
28
|
marginLeft: '-0.5rem',
|
|
27
29
|
borderRadius: '50%',
|
|
28
|
-
border: "0.125rem "
|
|
29
|
-
backgroundColor: ""
|
|
30
|
+
border: "0.125rem ".concat(palette.secondary.main, " solid"),
|
|
31
|
+
backgroundColor: "".concat(palette.common.white)
|
|
30
32
|
},
|
|
31
|
-
borderLeft: "0.125rem "
|
|
33
|
+
borderLeft: "0.125rem ".concat(palette.secondary.main, " solid"),
|
|
32
34
|
display: 'flex'
|
|
33
35
|
},
|
|
34
36
|
children: /*#__PURE__*/_jsxs(Box, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type AudioSliderProps = {
|
|
2
3
|
'data-testid'?: string;
|
|
3
4
|
value: number;
|
|
@@ -8,5 +9,5 @@ export type AudioSliderProps = {
|
|
|
8
9
|
step?: number;
|
|
9
10
|
className?: string;
|
|
10
11
|
};
|
|
11
|
-
declare const AudioSlider: (props: AudioSliderProps) => import("react
|
|
12
|
+
declare const AudioSlider: (props: AudioSliderProps) => import("react").JSX.Element;
|
|
12
13
|
export default AudioSlider;
|
|
@@ -9,5 +9,5 @@ export type AutocompleteProps = {
|
|
|
9
9
|
width: number;
|
|
10
10
|
onChange: (event: React.SyntheticEvent, value: Item | null) => void;
|
|
11
11
|
};
|
|
12
|
-
declare function ComboBox({ items, label, width, onChange }: AutocompleteProps):
|
|
12
|
+
declare function ComboBox({ items, label, width, onChange }: AutocompleteProps): React.JSX.Element;
|
|
13
13
|
export default ComboBox;
|
|
@@ -21,5 +21,5 @@ export type BreadcrumbsLinkComponent = React.ComponentType<BreadcrumbsLinkCompon
|
|
|
21
21
|
* - The last link is not clickable
|
|
22
22
|
* - The last link is styled differently
|
|
23
23
|
**/
|
|
24
|
-
declare const Breadcrumbs: (props: BreadcrumbsProps) =>
|
|
24
|
+
declare const Breadcrumbs: (props: BreadcrumbsProps) => React.JSX.Element;
|
|
25
25
|
export default Breadcrumbs;
|
|
@@ -18,5 +18,5 @@ export type ButtonProps = {
|
|
|
18
18
|
/**
|
|
19
19
|
- Use a button for common user click actions. Several variations available.
|
|
20
20
|
**/
|
|
21
|
-
declare const Button: (props: ButtonProps) =>
|
|
21
|
+
declare const Button: (props: ButtonProps) => React.JSX.Element;
|
|
22
22
|
export default Button;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent } from 'react';
|
|
1
|
+
import React, { ChangeEvent } from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
3
|
export type CheckboxProps = {
|
|
4
4
|
'data-testid'?: string;
|
|
@@ -10,5 +10,5 @@ export type CheckboxProps = {
|
|
|
10
10
|
sx?: SxProps<Theme>;
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
|
-
declare const Checkbox: (props: CheckboxProps) =>
|
|
13
|
+
declare const Checkbox: (props: CheckboxProps) => React.JSX.Element;
|
|
14
14
|
export default Checkbox;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
3
|
import { Accept, DropzoneRootProps, DropzoneInputProps } from 'react-dropzone';
|
|
3
4
|
export interface FileState {
|
|
@@ -17,7 +18,7 @@ export type FileUploaderViewProps = {
|
|
|
17
18
|
sx?: SxProps<Theme>;
|
|
18
19
|
className?: string;
|
|
19
20
|
};
|
|
20
|
-
export declare const FileUploaderView: (props: FileUploaderViewProps) => import("react
|
|
21
|
+
export declare const FileUploaderView: (props: FileUploaderViewProps) => import("react").JSX.Element;
|
|
21
22
|
type FileUploadFn = (f: File) => AsyncGenerator<number>;
|
|
22
23
|
export type FileUploaderProps = {
|
|
23
24
|
'data-testid'?: string;
|
|
@@ -29,5 +30,5 @@ export type FileUploaderProps = {
|
|
|
29
30
|
sx?: SxProps<Theme>;
|
|
30
31
|
className?: string;
|
|
31
32
|
};
|
|
32
|
-
declare const FileUploader: ({ accept, multiple, uploadFile, onComplete, onError, ...props }: FileUploaderProps) => import("react
|
|
33
|
+
declare const FileUploader: ({ accept, multiple, uploadFile, onComplete, onError, ...props }: FileUploaderProps) => import("react").JSX.Element;
|
|
33
34
|
export default FileUploader;
|
|
@@ -7,5 +7,5 @@ export type FormControlLabelProps = {
|
|
|
7
7
|
sx?: SxProps<Theme>;
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const FormControlLabel: (props: FormControlLabelProps) =>
|
|
10
|
+
declare const FormControlLabel: (props: FormControlLabelProps) => React.JSX.Element;
|
|
11
11
|
export default FormControlLabel;
|
|
@@ -20,5 +20,5 @@ export type InputProps = {
|
|
|
20
20
|
className?: string;
|
|
21
21
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
22
22
|
};
|
|
23
|
-
declare const Input: (props: InputProps) =>
|
|
23
|
+
declare const Input: (props: InputProps) => React.JSX.Element;
|
|
24
24
|
export default Input;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
3
|
export type LinearProgressProps = {
|
|
3
4
|
'data-testid'?: string;
|
|
@@ -28,5 +29,5 @@ export type LinearProgressProps = {
|
|
|
28
29
|
- Use a Linear Progress Bar to show the user that an operation is in progress.
|
|
29
30
|
This is currently being used in conjuction with the uploader tool
|
|
30
31
|
**/
|
|
31
|
-
declare const LinearProgress: (props: LinearProgressProps) => import("react
|
|
32
|
+
declare const LinearProgress: (props: LinearProgressProps) => import("react").JSX.Element;
|
|
32
33
|
export default LinearProgress;
|
|
@@ -5,5 +5,5 @@ export type LinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'col
|
|
|
5
5
|
sx?: SxProps<Theme>;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
declare const Link: ({ sx, className, ...restProps }: LinkProps) =>
|
|
8
|
+
declare const Link: ({ sx, className, ...restProps }: LinkProps) => React.JSX.Element;
|
|
9
9
|
export default Link;
|
|
@@ -6,5 +6,5 @@ export type ListItemProps = {
|
|
|
6
6
|
sx?: SxProps<Theme>;
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const ListItem: (props: ListItemProps) =>
|
|
9
|
+
declare const ListItem: (props: ListItemProps) => React.JSX.Element;
|
|
10
10
|
export default ListItem;
|
|
@@ -8,5 +8,5 @@ export type ListItemButtonProps = {
|
|
|
8
8
|
sx?: SxProps<Theme>;
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
|
-
declare const ListItemButton: (props: ListItemButtonProps) =>
|
|
11
|
+
declare const ListItemButton: (props: ListItemButtonProps) => React.JSX.Element;
|
|
12
12
|
export default ListItemButton;
|
|
@@ -6,5 +6,5 @@ export type ListItemTextProps = {
|
|
|
6
6
|
sx?: SxProps<Theme>;
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const ListItemText: (props: ListItemTextProps) =>
|
|
9
|
+
declare const ListItemText: (props: ListItemTextProps) => React.JSX.Element;
|
|
10
10
|
export default ListItemText;
|
|
@@ -17,5 +17,5 @@ export type MenuFlyoutProps = {
|
|
|
17
17
|
sx?: SxProps<Theme>;
|
|
18
18
|
className?: string;
|
|
19
19
|
};
|
|
20
|
-
declare const MenuFlyout: (props: MenuFlyoutProps) =>
|
|
20
|
+
declare const MenuFlyout: (props: MenuFlyoutProps) => React.JSX.Element;
|
|
21
21
|
export default MenuFlyout;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { SharedProgressIndicatorProps } from './index.js';
|
|
2
|
-
declare const DefaultProgress: (props: SharedProgressIndicatorProps) => import("react
|
|
3
|
+
declare const DefaultProgress: (props: SharedProgressIndicatorProps) => import("react").JSX.Element;
|
|
3
4
|
export default DefaultProgress;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { SharedProgressIndicatorProps } from './index.js';
|
|
2
3
|
type MLProgressProps = SharedProgressIndicatorProps & {
|
|
3
4
|
type: 'medium' | 'large';
|
|
4
5
|
};
|
|
5
|
-
declare const MLProgress: (props: MLProgressProps) => import("react
|
|
6
|
+
declare const MLProgress: (props: MLProgressProps) => import("react").JSX.Element;
|
|
6
7
|
export default MLProgress;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type SharedProgressIndicatorProps = {
|
|
2
3
|
'data-testid'?: string;
|
|
3
4
|
itemLoading?: string;
|
|
@@ -16,5 +17,5 @@ export type ProgressIndicatorProps = SharedProgressIndicatorProps & {
|
|
|
16
17
|
/**
|
|
17
18
|
- Use a progress indicator to show the user that an operation is in progress.
|
|
18
19
|
**/
|
|
19
|
-
declare const ProgressIndicator: ({ type, ...props }: ProgressIndicatorProps) => import("react
|
|
20
|
+
declare const ProgressIndicator: ({ type, ...props }: ProgressIndicatorProps) => import("react").JSX.Element;
|
|
20
21
|
export default ProgressIndicator;
|
|
@@ -13,5 +13,5 @@ export type RadioButtonProps = {
|
|
|
13
13
|
onChange?(event: React.ChangeEvent<HTMLInputElement>, checked: boolean): void;
|
|
14
14
|
className?: string;
|
|
15
15
|
};
|
|
16
|
-
declare const RadioButton: (props: RadioButtonProps) =>
|
|
16
|
+
declare const RadioButton: (props: RadioButtonProps) => React.JSX.Element;
|
|
17
17
|
export default RadioButton;
|
|
@@ -26,5 +26,5 @@ export type RadioGroupProps = {
|
|
|
26
26
|
sx?: SxProps<Theme>;
|
|
27
27
|
className?: string;
|
|
28
28
|
};
|
|
29
|
-
declare const RadioGroup: (props: RadioGroupProps) =>
|
|
29
|
+
declare const RadioGroup: (props: RadioGroupProps) => React.JSX.Element;
|
|
30
30
|
export default RadioGroup;
|
|
@@ -37,5 +37,5 @@ export type SelectChangeEvent<V = string> = (Event & {
|
|
|
37
37
|
name: string;
|
|
38
38
|
};
|
|
39
39
|
}) | React.ChangeEvent<HTMLInputElement>;
|
|
40
|
-
declare function Select<V extends SelectValue>(props: SelectProps<V>):
|
|
40
|
+
declare function Select<V extends SelectValue>(props: SelectProps<V>): React.JSX.Element;
|
|
41
41
|
export default Select;
|
|
@@ -26,5 +26,5 @@ export type StatusChipProps = {
|
|
|
26
26
|
- Pass your custom string to `label` prop;
|
|
27
27
|
- Pass an MUI stock color option to `color` prop **OR** pass a custom color Hex Value to `coloroverride` prop.
|
|
28
28
|
**/
|
|
29
|
-
declare const StatusChip: (props: StatusChipProps) =>
|
|
29
|
+
declare const StatusChip: (props: StatusChipProps) => React.JSX.Element;
|
|
30
30
|
export default StatusChip;
|
|
@@ -9,5 +9,5 @@ export type StepLabelProps = {
|
|
|
9
9
|
sx?: SxProps<Theme>;
|
|
10
10
|
className?: string;
|
|
11
11
|
};
|
|
12
|
-
declare const StepLabel: (props: StepLabelProps) =>
|
|
12
|
+
declare const StepLabel: (props: StepLabelProps) => React.JSX.Element;
|
|
13
13
|
export default StepLabel;
|
|
@@ -18,5 +18,5 @@ export type StepperProps = {
|
|
|
18
18
|
/**
|
|
19
19
|
The Stepper is used for highlighting where a user is in a progression of steps.
|
|
20
20
|
**/
|
|
21
|
-
declare const Stepper: (props: StepperProps) =>
|
|
21
|
+
declare const Stepper: (props: StepperProps) => React.JSX.Element;
|
|
22
22
|
export default Stepper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableSortLabelProps as MuiTableSortLabelProps } from '@mui/material';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
4
|
export type TableProps = {
|
|
@@ -14,14 +14,14 @@ export type TableProps = {
|
|
|
14
14
|
sx?: SxProps<Theme>;
|
|
15
15
|
className?: string;
|
|
16
16
|
};
|
|
17
|
-
export declare const Table: (props: TableProps) =>
|
|
17
|
+
export declare const Table: (props: TableProps) => React.JSX.Element;
|
|
18
18
|
export type TableBodyProps = {
|
|
19
19
|
'data-testid'?: string;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
sx?: SxProps<Theme>;
|
|
22
22
|
className?: string;
|
|
23
23
|
};
|
|
24
|
-
export declare const TableBody: (props: TableBodyProps) =>
|
|
24
|
+
export declare const TableBody: (props: TableBodyProps) => React.JSX.Element;
|
|
25
25
|
export type TableCellProps = {
|
|
26
26
|
'data-testid'?: string;
|
|
27
27
|
variant?: 'header' | 'data';
|
|
@@ -36,32 +36,60 @@ export type TableCellProps = {
|
|
|
36
36
|
sx?: SxProps<Theme>;
|
|
37
37
|
className?: string;
|
|
38
38
|
};
|
|
39
|
-
export declare const TableCell: ({ variant, ...props }: TableCellProps) =>
|
|
39
|
+
export declare const TableCell: ({ variant, ...props }: TableCellProps) => React.JSX.Element;
|
|
40
40
|
export type TableContainerProps = {
|
|
41
41
|
'data-testid'?: string;
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
sx?: SxProps<Theme>;
|
|
44
44
|
className?: string;
|
|
45
45
|
};
|
|
46
|
-
export declare const TableContainer: (props: TableContainerProps) =>
|
|
46
|
+
export declare const TableContainer: (props: TableContainerProps) => React.JSX.Element;
|
|
47
47
|
export type TableFooterProps = {
|
|
48
48
|
'data-testid'?: string;
|
|
49
49
|
children?: React.ReactNode;
|
|
50
50
|
sx?: SxProps<Theme>;
|
|
51
51
|
className?: string;
|
|
52
52
|
};
|
|
53
|
-
export declare const TableFooter: (props: TableFooterProps) =>
|
|
53
|
+
export declare const TableFooter: (props: TableFooterProps) => React.JSX.Element;
|
|
54
54
|
export type TableHeadProps = {
|
|
55
55
|
'data-testid'?: string;
|
|
56
56
|
children?: React.ReactNode;
|
|
57
57
|
sx?: SxProps<Theme>;
|
|
58
58
|
className?: string;
|
|
59
59
|
};
|
|
60
|
-
export declare const TableHead: (props: TableHeadProps) =>
|
|
60
|
+
export declare const TableHead: (props: TableHeadProps) => React.JSX.Element;
|
|
61
61
|
export type TablePaginationProps = {
|
|
62
62
|
'data-testid'?: string;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
/**
|
|
64
|
+
* The total number of rows.
|
|
65
|
+
*
|
|
66
|
+
* To enable server side pagination for an unknown number of items, provide -1.
|
|
67
|
+
*/
|
|
68
|
+
count: number;
|
|
69
|
+
/**
|
|
70
|
+
* The zero-based index of the current page.
|
|
71
|
+
*/
|
|
72
|
+
page: number;
|
|
73
|
+
/**
|
|
74
|
+
* The number of rows per page.
|
|
75
|
+
*
|
|
76
|
+
* Set -1 to display all the rows.
|
|
77
|
+
*/
|
|
78
|
+
rowsPerPage: number;
|
|
79
|
+
/**
|
|
80
|
+
* Callback fired when the page is changed.
|
|
81
|
+
*
|
|
82
|
+
* @param {React.MouseEvent<HTMLButtonElement> | null} event The event source of the callback.
|
|
83
|
+
* @param {number} page The page selected.
|
|
84
|
+
*/
|
|
85
|
+
onPageChange: (event: React.MouseEvent<HTMLButtonElement> | null, page: number) => void;
|
|
86
|
+
colSpan?: number;
|
|
87
|
+
sx?: SxProps<Theme>;
|
|
88
|
+
className?: string;
|
|
89
|
+
rowsPerPageOptions: number[];
|
|
90
|
+
onRowsPerPageChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
91
|
+
};
|
|
92
|
+
export declare const TablePagination: (props: TablePaginationProps) => React.JSX.Element;
|
|
65
93
|
export type TableRowProps = {
|
|
66
94
|
'data-testid'?: string;
|
|
67
95
|
children?: React.ReactNode;
|
|
@@ -78,8 +106,8 @@ export type TableRowProps = {
|
|
|
78
106
|
sx?: SxProps<Theme>;
|
|
79
107
|
className?: string;
|
|
80
108
|
};
|
|
81
|
-
export declare const TableRow: (props: TableRowProps) =>
|
|
109
|
+
export declare const TableRow: (props: TableRowProps) => React.JSX.Element;
|
|
82
110
|
export type TableSortLabelProps = {
|
|
83
111
|
'data-testid'?: string;
|
|
84
112
|
} & MuiTableSortLabelProps;
|
|
85
|
-
export declare const TableSortLabel: (props: TableSortLabelProps) =>
|
|
113
|
+
export declare const TableSortLabel: (props: TableSortLabelProps) => React.JSX.Element;
|
|
@@ -5,5 +5,5 @@ export type ThemeProviderProps = {
|
|
|
5
5
|
theme?: Theme;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
};
|
|
8
|
-
declare const ThemeProvider: (props: ThemeProviderProps) =>
|
|
8
|
+
declare const ThemeProvider: (props: ThemeProviderProps) => React.JSX.Element;
|
|
9
9
|
export default ThemeProvider;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AlertProps } from '../Alert/index.js';
|
|
2
3
|
export type ToastProps = AlertProps & {
|
|
3
4
|
open?: boolean;
|
|
4
5
|
onClose?(): void;
|
|
5
6
|
};
|
|
6
|
-
declare const Toast: ({ open, onClose, sx, className, ...alertProps }: ToastProps) => import("react
|
|
7
|
+
declare const Toast: ({ open, onClose, sx, className, ...alertProps }: ToastProps) => import("react").JSX.Element;
|
|
7
8
|
export default Toast;
|
|
@@ -8,5 +8,5 @@ export type TypographyProps = {
|
|
|
8
8
|
sx?: SxProps<Theme>;
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
|
-
declare const Typography: (props: TypographyProps) =>
|
|
11
|
+
declare const Typography: (props: TypographyProps) => React.JSX.Element;
|
|
12
12
|
export default Typography;
|