@veritone-ce/design-system 1.12.16 → 1.12.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/theme.d.ts +59 -0
- package/dist/assets/theme.js +37 -4
- package/dist/components/Box/__tests__/Box.test.d.ts +1 -0
- package/dist/components/Box/index.d.ts +6 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +11 -0
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +1 -0
- package/dist/components/Breadcrumbs/breadcrumbs.theme.d.ts +11 -0
- package/dist/components/Breadcrumbs/index.d.ts +15 -0
- package/dist/components/Button/Button.stories.d.ts +7 -0
- package/dist/components/Button/Indicator.d.ts +2 -0
- package/dist/components/Button/__tests__/Button.test.d.ts +1 -0
- package/dist/components/Button/button.theme.d.ts +4 -0
- package/dist/components/Button/index.d.ts +10 -0
- package/dist/components/Button/useButtonProps.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/components/Checkbox/checkbox.theme.d.ts +18 -0
- package/dist/components/Checkbox/index.d.ts +7 -0
- package/dist/components/CustomSlider/CustomSlider.stories.d.ts +5 -0
- package/dist/components/CustomSlider/index.d.ts +12 -0
- package/dist/components/Drawer/__tests__/Drawer.test.d.ts +1 -0
- package/dist/components/Drawer/index.d.ts +6 -0
- package/dist/components/FileUploader/FileUploader.stories.d.ts +15 -0
- package/dist/components/FileUploader/__tests__/FileUploader.test.d.ts +1 -0
- package/dist/components/FileUploader/index.d.ts +21 -0
- package/dist/components/FileUploader/useUploadFile.d.ts +5 -0
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +1 -0
- package/dist/components/FormControlLabel/index.d.ts +6 -0
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +7 -0
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +1 -0
- package/dist/components/HomeOutlinedIcon/index.d.ts +5 -0
- package/dist/components/IconGroups/IconGroups.stories.d.ts +7 -0
- package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +1 -0
- package/dist/components/IconGroups/index.d.ts +5 -0
- package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +1 -0
- package/dist/components/IconListItem/index.d.ts +7 -0
- package/dist/components/Input/Input.stories.d.ts +11 -0
- package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/Input/index.d.ts +6 -0
- package/dist/components/Input/input.theme.d.ts +3 -0
- package/dist/components/LinearProgress/LinearProgress.stories.d.ts +14 -0
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.d.ts +1 -0
- package/dist/components/LinearProgress/index.d.ts +27 -0
- package/dist/components/LinearProgress/linearProgress.theme.d.ts +14 -0
- package/dist/components/Link/__tests__/Link.test.d.ts +1 -0
- package/dist/components/Link/index.d.ts +6 -0
- package/dist/components/List/__tests__/List.test.d.ts +1 -0
- package/dist/components/List/index.d.ts +6 -0
- package/dist/components/ListItem/__tests__/ListItem.test.d.ts +1 -0
- package/dist/components/ListItem/index.d.ts +6 -0
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +1 -0
- package/dist/components/ListItemButton/index.d.ts +6 -0
- package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +1 -0
- package/dist/components/ListItemText/index.d.ts +6 -0
- package/dist/components/MenuFlyout/MenuFlyout.stories.d.ts +31 -0
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.d.ts +1 -0
- package/dist/components/MenuFlyout/constants.d.ts +3 -0
- package/dist/components/MenuFlyout/index.d.ts +15 -0
- package/dist/components/MenuFlyout/menuFlyout.theme.d.ts +41 -0
- package/dist/components/Modal/Modal.stories.d.ts +15 -0
- package/dist/components/Modal/__tests__/Modal.test.d.ts +1 -0
- package/dist/components/Modal/index.d.ts +11 -0
- package/dist/components/Modal/modal.theme.d.ts +3 -0
- package/dist/components/ModelGridView/ModelGridView.stories.d.ts +5 -0
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.d.ts +1 -0
- package/dist/components/ModelGridView/index.d.ts +13 -0
- package/dist/components/Panel/Panel.stories.d.ts +14 -0
- package/dist/components/Panel/__tests__/Panel.test.d.ts +1 -0
- package/dist/components/Panel/index.d.ts +11 -0
- package/dist/components/ProgressIndicator/DefaultProgress.d.ts +3 -0
- package/dist/components/ProgressIndicator/MLProgress.d.ts +3 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +7 -0
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.d.ts +1 -0
- package/dist/components/ProgressIndicator/index.d.ts +11 -0
- package/dist/components/RadioButton/RadioButton.stories.d.ts +10 -0
- package/dist/components/RadioButton/RadioButton.theme.d.ts +4 -0
- package/dist/components/RadioButton/__tests__/RadioButton.test.d.ts +1 -0
- package/dist/components/RadioButton/index.d.ts +7 -0
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +1 -0
- package/dist/components/RadioGroup/index.d.ts +6 -0
- package/dist/components/Select/Select.stories.d.ts +5 -0
- package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/Select/index.d.ts +15 -0
- package/dist/components/Select/select.theme.d.ts +53 -0
- package/dist/components/StatusChip/StatusChip.stories.d.ts +51 -0
- package/dist/components/StatusChip/__tests__/StatusChip.test.d.ts +1 -0
- package/dist/components/StatusChip/constants.d.ts +3 -0
- package/dist/components/StatusChip/index.d.ts +28 -0
- package/dist/components/StatusChip/statusChip.theme.d.ts +4 -0
- package/dist/components/Step/__tests__/Step.test.d.ts +1 -0
- package/dist/components/Step/index.d.ts +6 -0
- package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +1 -0
- package/dist/components/StepLabel/index.d.ts +6 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +21 -0
- package/dist/components/Stepper/__tests__/Stepper.test.d.ts +1 -0
- package/dist/components/Stepper/index.d.ts +13 -0
- package/dist/components/Stepper/stepper.theme.d.ts +50 -0
- package/dist/components/Tabs/Badge.d.ts +7 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +6 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/index.d.ts +14 -0
- package/dist/components/Tabs/tabs.theme.d.ts +4 -0
- package/dist/components/ThemeProvider/__tests__/Button.test.d.ts +1 -0
- package/dist/components/ThemeProvider/index.d.ts +3 -0
- package/dist/components/Toast/Toast.stories.d.ts +14 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/index.d.ts +23 -0
- package/dist/components/Typography/Typography.stories.d.ts +20 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/index.d.ts +6 -0
- package/dist/components/UtilityRail/UtilityRail.stories.d.ts +8 -0
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.d.ts +1 -0
- package/dist/components/UtilityRail/index.d.ts +11 -0
- package/dist/components/UtilityRail/mock.d.ts +2 -0
- package/dist/index.d.ts +31 -0
- package/dist/reportWebVitals.d.ts +3 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/utils/tests/helpers.d.ts +6 -0
- package/package.json +4 -2
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PaletteColorOptions, SimplePaletteColorOptions } from '@mui/material';
|
|
2
|
+
declare module '@mui/material/Button' {
|
|
3
|
+
interface ButtonPropsVariantOverrides {
|
|
4
|
+
primary: true;
|
|
5
|
+
secondary: true;
|
|
6
|
+
tertiary: true;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
declare module '@mui/material/styles' {
|
|
10
|
+
type Colors = typeof colors;
|
|
11
|
+
type ButtonPaletteColorOptions = SimplePaletteColorOptions & {
|
|
12
|
+
hover: string;
|
|
13
|
+
};
|
|
14
|
+
type MiscPaletteColorOptions = Colors['misc'];
|
|
15
|
+
type TextPaletteColorOptions = Colors['text'];
|
|
16
|
+
interface TypeText extends TextPaletteColorOptions {
|
|
17
|
+
}
|
|
18
|
+
interface Palette {
|
|
19
|
+
neutral: Pick<Palette['primary'], 'main'>;
|
|
20
|
+
button: ButtonPaletteColorOptions;
|
|
21
|
+
misc: MiscPaletteColorOptions;
|
|
22
|
+
}
|
|
23
|
+
interface PaletteOptions {
|
|
24
|
+
neutral: PaletteColorOptions;
|
|
25
|
+
button: ButtonPaletteColorOptions;
|
|
26
|
+
misc: MiscPaletteColorOptions;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare const colors: {
|
|
30
|
+
brand: {
|
|
31
|
+
pink: string;
|
|
32
|
+
blueOne: string;
|
|
33
|
+
blueTwo: string;
|
|
34
|
+
warning: string;
|
|
35
|
+
success: string;
|
|
36
|
+
error: string;
|
|
37
|
+
white: string;
|
|
38
|
+
};
|
|
39
|
+
text: {
|
|
40
|
+
primary: string;
|
|
41
|
+
secondary: string;
|
|
42
|
+
tertiary: string;
|
|
43
|
+
disabled: string;
|
|
44
|
+
};
|
|
45
|
+
button: {
|
|
46
|
+
primary: string;
|
|
47
|
+
hover: string;
|
|
48
|
+
};
|
|
49
|
+
misc: {
|
|
50
|
+
background: string;
|
|
51
|
+
altBackground: string;
|
|
52
|
+
rowHoverGreyOne: string;
|
|
53
|
+
rowOn: string;
|
|
54
|
+
rowOnHoverGreyTwo: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export type Theme = typeof theme;
|
|
58
|
+
declare let theme: import("@mui/material").Theme;
|
|
59
|
+
export default theme;
|
package/dist/assets/theme.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.colors = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
8
|
var _material = require("@mui/material");
|
|
8
9
|
var _stepper = _interopRequireDefault(require("../components/Stepper/stepper.theme"));
|
|
9
10
|
var _checkbox = _interopRequireDefault(require("../components/Checkbox/checkbox.theme"));
|
|
@@ -17,11 +18,43 @@ var _menuFlyout = require("../components/MenuFlyout/menuFlyout.theme");
|
|
|
17
18
|
var _modal = _interopRequireDefault(require("../components/Modal/modal.theme"));
|
|
18
19
|
var _linearProgress = _interopRequireDefault(require("../components/LinearProgress/linearProgress.theme"));
|
|
19
20
|
var _CheckCircle = _interopRequireDefault(require("@mui/icons-material/CheckCircle"));
|
|
20
|
-
var _information = _interopRequireDefault(require("./information.svg"));
|
|
21
|
-
var _warning = _interopRequireDefault(require("./warning.svg"));
|
|
22
21
|
var _Cancel = _interopRequireDefault(require("@mui/icons-material/Cancel"));
|
|
23
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
+
var InformationIcon = function InformationIcon(props) {
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
26
|
+
...props,
|
|
27
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
clipRule: "evenodd",
|
|
30
|
+
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
|
+
fill: "#214167"
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
InformationIcon.defaultProps = {
|
|
36
|
+
width: "22",
|
|
37
|
+
height: "22",
|
|
38
|
+
fill: "none",
|
|
39
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
40
|
+
};
|
|
41
|
+
var WarningIcon = function WarningIcon(props) {
|
|
42
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
43
|
+
...props,
|
|
44
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
45
|
+
fillRule: "evenodd",
|
|
46
|
+
clipRule: "evenodd",
|
|
47
|
+
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
|
+
fill: "#FFBB0A"
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
WarningIcon.defaultProps = {
|
|
53
|
+
width: "22",
|
|
54
|
+
height: "22",
|
|
55
|
+
fill: "none",
|
|
56
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
57
|
+
};
|
|
25
58
|
const colors = {
|
|
26
59
|
brand: {
|
|
27
60
|
pink: '#D43060',
|
|
@@ -218,11 +251,11 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
218
251
|
success: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckCircle.default, {}),
|
|
219
252
|
info: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
220
253
|
alt: 'information icon',
|
|
221
|
-
src:
|
|
254
|
+
src: InformationIcon
|
|
222
255
|
}),
|
|
223
256
|
warning: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
224
257
|
alt: 'warning icon',
|
|
225
|
-
src:
|
|
258
|
+
src: WarningIcon
|
|
226
259
|
}),
|
|
227
260
|
error: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cancel.default, {})
|
|
228
261
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import BreadcrumbsComponent from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ links }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
links: {
|
|
6
|
+
href: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: ComponentStory<typeof BreadcrumbsComponent> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type BreadcrumbsProps = {
|
|
2
|
+
'data-testid'?: string;
|
|
3
|
+
links: {
|
|
4
|
+
href: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* - This is the breadcrumbs component that is used in the header
|
|
10
|
+
* - It takes in an array of links and renders them as breadcrumbs
|
|
11
|
+
* - The last link is not clickable
|
|
12
|
+
* - The last link is styled differently
|
|
13
|
+
**/
|
|
14
|
+
declare const BreadcrumbsComponent: ({ links }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default BreadcrumbsComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
+
import { ButtonProps } from './';
|
|
3
|
+
declare const _default: ComponentMeta<({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Contained: ComponentStory<({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
export declare const Outlined: ComponentStory<({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export declare const Text: ComponentStory<({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonProps as MuiButtonProps } from '@mui/material';
|
|
2
|
+
export type ButtonProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
} & MuiButtonProps;
|
|
6
|
+
/**
|
|
7
|
+
- Use a button for common user click actions. Several variations available.
|
|
8
|
+
**/
|
|
9
|
+
declare const Button: ({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Button;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
declare const _default: ComponentMeta<({ label, ...props }: import(".").CheckboxProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: ComponentStory<({ label, ...props }: import(".").CheckboxProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
export declare const WithoutLabel: ComponentStory<({ label, ...props }: import(".").CheckboxProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Theme } from '../../assets/theme';
|
|
2
|
+
declare const checkboxTheme: (theme: Theme) => {
|
|
3
|
+
styleOverrides: {
|
|
4
|
+
root: () => {
|
|
5
|
+
marginRight: string;
|
|
6
|
+
'&.MuiCheckbox-root': {
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
'&.Mui-checked, &.MuiCheckbox-indeterminate': {
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
'&.Mui-disabled': {
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default checkboxTheme;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CheckboxProps as MuiCheckboxProps } from '@mui/material';
|
|
2
|
+
export type CheckboxProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
} & MuiCheckboxProps;
|
|
6
|
+
declare const Checkbox: ({ label, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Checkbox;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SliderProps as MuiSliderProps } from '@mui/material/Slider';
|
|
2
|
+
export type CustomSliderProps = {
|
|
3
|
+
value: number;
|
|
4
|
+
onChange: (event: Event, value: number) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
max?: number;
|
|
7
|
+
isAvailable?: boolean;
|
|
8
|
+
step?: number;
|
|
9
|
+
typeData?: string;
|
|
10
|
+
} & MuiSliderProps;
|
|
11
|
+
declare const AudioSlider: ({ value, onChange, max, isAvailable, step, label, typeData, ...props }: CustomSliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default AudioSlider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import FileUploader from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ uploadUrl, files, accept, multiple, onSuccess, onError, extensions, ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
accept?: import("react-dropzone").Accept | undefined;
|
|
6
|
+
multiple?: boolean | undefined;
|
|
7
|
+
chunking?: boolean | undefined;
|
|
8
|
+
uploadUrl?: string | undefined;
|
|
9
|
+
extensions?: string[] | undefined;
|
|
10
|
+
files?: ((v: File[]) => void) | undefined;
|
|
11
|
+
onError?: ((v: Error) => void) | undefined;
|
|
12
|
+
onSuccess?: ((v: boolean) => void) | undefined;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export default _default;
|
|
15
|
+
export declare const Default: ComponentStory<typeof FileUploader> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Accept } from 'react-dropzone';
|
|
2
|
+
export interface FileData {
|
|
3
|
+
file: File | any;
|
|
4
|
+
uploadProgress: number;
|
|
5
|
+
isUploaded: boolean;
|
|
6
|
+
withError: boolean;
|
|
7
|
+
feedbackText: string;
|
|
8
|
+
}
|
|
9
|
+
type FileUploaderProps = {
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
accept?: Accept;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
chunking?: boolean;
|
|
14
|
+
uploadUrl?: string;
|
|
15
|
+
extensions?: string[];
|
|
16
|
+
files?: (v: File[]) => void;
|
|
17
|
+
onError?: (v: Error) => void;
|
|
18
|
+
onSuccess?: (v: boolean) => void;
|
|
19
|
+
};
|
|
20
|
+
declare const FileUploader: ({ uploadUrl, files, accept, multiple, onSuccess, onError, extensions, ...props }: FileUploaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default FileUploader;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FileData } from '.';
|
|
2
|
+
export declare const useUploadFile: (setfileList: (v: FileData[]) => void, uploadUrl?: string, onSuccess?: ((v: boolean) => void) | undefined, onError?: ((v: Error) => void) | undefined) => {
|
|
3
|
+
onDrop: <T extends File>(acceptedFiles: T[]) => Promise<void>;
|
|
4
|
+
};
|
|
5
|
+
export declare const uploadFile: (uploadUrl: string, file: File, setProgress: (v: number) => void, method?: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormControlLabelProps as MuiFormControlLabelProps } from '@mui/material';
|
|
2
|
+
type FormControlLabelProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
} & MuiFormControlLabelProps;
|
|
5
|
+
declare const FormControlLabel: ({ ...props }: FormControlLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default FormControlLabel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import HomeOutlinedIcon from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: ComponentStory<typeof HomeOutlinedIcon> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import IconGroups from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: ComponentStory<typeof IconGroups> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type ListItemIconProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
declare const IconListItem: ({ children, ...props }: ListItemIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default IconListItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import Input from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ ...TextFieldProps }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
} & import("@mui/material").TextFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: ComponentStory<typeof Input> | Story;
|
|
8
|
+
export declare const Disabled: ComponentStory<typeof Input> | Story;
|
|
9
|
+
export declare const Error: ComponentStory<typeof Input> | Story;
|
|
10
|
+
export declare const Search: ComponentStory<typeof Input> | Story;
|
|
11
|
+
export declare const MultiLine: ComponentStory<typeof Input> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import LinearProgress from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ value, itemLoading, isError, feedbackText, isUploaded, ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
value: number;
|
|
6
|
+
itemLoading: string;
|
|
7
|
+
isError?: boolean | undefined;
|
|
8
|
+
feedbackText?: string | undefined;
|
|
9
|
+
isUploaded: boolean;
|
|
10
|
+
} & import("@mui/material").LinearProgressProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: ComponentStory<typeof LinearProgress> | Story;
|
|
13
|
+
export declare const FullProgress: ComponentStory<typeof LinearProgress> | Story;
|
|
14
|
+
export declare const ProgressError: ComponentStory<typeof LinearProgress> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LinearProgressProps as MuiLinearProgressProps } from '@mui/material';
|
|
2
|
+
type LinearProgressProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
value: number;
|
|
5
|
+
/**
|
|
6
|
+
- The value of the progress indicator for the determinate and buffer variants. Value between 0 and 100.
|
|
7
|
+
**/
|
|
8
|
+
itemLoading: string;
|
|
9
|
+
/**
|
|
10
|
+
- The name of the item or file loading
|
|
11
|
+
**/
|
|
12
|
+
isError?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
- Optional prop that can be passed to show error state in bar
|
|
15
|
+
**/
|
|
16
|
+
feedbackText?: string;
|
|
17
|
+
/**
|
|
18
|
+
- Optional prop that can be passed to show error message
|
|
19
|
+
**/
|
|
20
|
+
isUploaded: boolean;
|
|
21
|
+
} & MuiLinearProgressProps;
|
|
22
|
+
/**
|
|
23
|
+
- Use a Linear Progress Bar to show the user that an operation is in progress.
|
|
24
|
+
This is currently being used in conjuction with the uploader tool
|
|
25
|
+
**/
|
|
26
|
+
declare const LinearProgress: ({ value, itemLoading, isError, feedbackText, isUploaded, ...props }: LinearProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default LinearProgress;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Theme } from '../../assets/theme';
|
|
2
|
+
declare const linearProgress: (theme: Theme) => {
|
|
3
|
+
styleOverrides: {
|
|
4
|
+
root: () => {
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
'& .MuiLinearProgress-bar': {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default linearProgress;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ListItemButtonProps as MuiListItemButtonProps } from '@mui/material';
|
|
2
|
+
type ListItemButtonProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
} & MuiListItemButtonProps;
|
|
5
|
+
declare const ListItemButton: ({ ...props }: ListItemButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ListItemButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ListItemTextProps as MuiListItemTextProps } from '@mui/material';
|
|
2
|
+
type ListItemTextProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
} & MuiListItemTextProps;
|
|
5
|
+
declare const ListItemText: ({ ...props }: ListItemTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ListItemText;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<({ menuOptions, open, ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
menuOptions: {
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
8
|
+
}[];
|
|
9
|
+
} & import("@mui/material").MenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: ComponentStory<({ menuOptions, open, ...props }: {
|
|
12
|
+
'data-testid'?: string | undefined;
|
|
13
|
+
menuOptions: {
|
|
14
|
+
label: string;
|
|
15
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
} & import("@mui/material").MenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
+
export declare const WithIcons: ComponentStory<({ menuOptions, open, ...props }: {
|
|
19
|
+
'data-testid'?: string | undefined;
|
|
20
|
+
menuOptions: {
|
|
21
|
+
label: string;
|
|
22
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
23
|
+
}[];
|
|
24
|
+
} & import("@mui/material").MenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
25
|
+
export declare const WithoutIcons: ComponentStory<({ menuOptions, open, ...props }: {
|
|
26
|
+
'data-testid'?: string | undefined;
|
|
27
|
+
menuOptions: {
|
|
28
|
+
label: string;
|
|
29
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
30
|
+
}[];
|
|
31
|
+
} & import("@mui/material").MenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MenuProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type MenuOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: React.ReactElement;
|
|
6
|
+
};
|
|
7
|
+
type MenuFlyoutProps = {
|
|
8
|
+
'data-testid'?: string;
|
|
9
|
+
/**
|
|
10
|
+
An array of objects of type `MenuOption[]`. Each object in this array **requires** a label property of type `string` and an **optional** icon property of type `React.ReactElement`. Each object represents a list item on the menu flyout component.
|
|
11
|
+
**/
|
|
12
|
+
menuOptions: MenuOption[];
|
|
13
|
+
} & MenuProps;
|
|
14
|
+
declare const MenuFlyout: ({ menuOptions, open, ...props }: MenuFlyoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default MenuFlyout;
|