@veritone-ce/design-system 1.12.17 → 1.12.19
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/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 +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ModelGridViewData {
|
|
2
|
+
modelName: string;
|
|
3
|
+
lastModified: string;
|
|
4
|
+
consentForm: string;
|
|
5
|
+
versions: number;
|
|
6
|
+
deployed: number;
|
|
7
|
+
}
|
|
8
|
+
export type ModelGridViewProps = {
|
|
9
|
+
'data-testid'?: string;
|
|
10
|
+
rows: ModelGridViewData[];
|
|
11
|
+
};
|
|
12
|
+
declare const ModelGridView: ({ rows }: ModelGridViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default ModelGridView;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<({ title, isOpen, children, size, handleClose, ...props }: {
|
|
4
|
+
title: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
size?: "big" | "small" | "medium" | undefined;
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
handleClose?: (() => void) | undefined;
|
|
9
|
+
'data-testid'?: string | undefined;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Big: Story;
|
|
13
|
+
export declare const Medium: Story;
|
|
14
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type PanelProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
size?: 'big' | 'medium' | 'small';
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
handleClose?: () => void;
|
|
8
|
+
'data-testid'?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Panel: ({ title, isOpen, children, size, handleClose, ...props }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Panel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import ProgressIndicator, { ProgressIndicatorProps } from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ type, ...props }: ProgressIndicatorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof ProgressIndicator> | Story;
|
|
6
|
+
export declare const Medium: Story<import("@storybook/react").Args> | ComponentStory<({ type, ...props }: ProgressIndicatorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export declare const Large: Story<import("@storybook/react").Args> | ComponentStory<({ type, ...props }: ProgressIndicatorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CircularProgressProps } from '@mui/material';
|
|
2
|
+
export type ProgressIndicatorProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
itemLoading?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
} & CircularProgressProps;
|
|
7
|
+
/**
|
|
8
|
+
- Use a progress indicator to show the user that an operation is in progress.
|
|
9
|
+
**/
|
|
10
|
+
declare const ProgressIndicator: ({ type, ...props }: ProgressIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ProgressIndicator;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import RadioButton from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ label, ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
} & import("@mui/material").RadioProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: ComponentStory<typeof RadioButton> | Story;
|
|
9
|
+
export declare const Checked: ComponentStory<typeof RadioButton> | Story;
|
|
10
|
+
export declare const Disabled: ComponentStory<typeof RadioButton> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RadioProps } from '@mui/material';
|
|
2
|
+
type RadioButtonProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
} & RadioProps;
|
|
6
|
+
declare const RadioButton: ({ label, ...props }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default RadioButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RadioGroupProps as MuiRadioGroupProps } from '@mui/material';
|
|
2
|
+
type RadioGroupProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
} & MuiRadioGroupProps;
|
|
5
|
+
declare const RadioGroup: ({ ...props }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default RadioGroup;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
declare const _default: ComponentMeta<({ label, items, helperText, errorMessage, ...props }: import(".").SelectProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: ComponentStory<({ label, items, helperText, errorMessage, ...props }: import(".").SelectProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
export declare const MultiLine: ComponentStory<({ label, items, helperText, errorMessage, ...props }: import(".").SelectProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SelectProps as MuiSelectProps } from '@mui/material';
|
|
2
|
+
type ItemData = {
|
|
3
|
+
title?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
};
|
|
7
|
+
export type SelectProps = {
|
|
8
|
+
'data-testid'?: string;
|
|
9
|
+
label: string;
|
|
10
|
+
items: ItemData[];
|
|
11
|
+
helperText?: string;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
} & MuiSelectProps;
|
|
14
|
+
declare const Select: ({ label, items, helperText, errorMessage, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Select;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Theme } from '../../assets/theme';
|
|
2
|
+
declare const selectTheme: (theme: Theme) => {
|
|
3
|
+
defaultProps: {
|
|
4
|
+
fullWidth: boolean;
|
|
5
|
+
displayEmpty: boolean;
|
|
6
|
+
};
|
|
7
|
+
styleOverrides: {
|
|
8
|
+
root: () => {
|
|
9
|
+
'&.MuiOutlinedInput-root': {
|
|
10
|
+
'& .MuiSelect-outlined': {
|
|
11
|
+
border: string;
|
|
12
|
+
};
|
|
13
|
+
'&.Mui-focused': {
|
|
14
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
15
|
+
borderColor: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
'&.Mui-error': {
|
|
19
|
+
'& .MuiSelect-outlined': {
|
|
20
|
+
color: string;
|
|
21
|
+
border: string;
|
|
22
|
+
fontSize: string;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
};
|
|
25
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
26
|
+
borderColor: string;
|
|
27
|
+
};
|
|
28
|
+
'& .MuiSelect-iconOutlined': {
|
|
29
|
+
color: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
'&.Mui-disabled': {
|
|
33
|
+
'& .MuiSelect-iconOutlined': {
|
|
34
|
+
color: string;
|
|
35
|
+
};
|
|
36
|
+
'& .MuiSelect-outlined': {
|
|
37
|
+
background: string;
|
|
38
|
+
borderColor: string;
|
|
39
|
+
color: string;
|
|
40
|
+
WebkitTextFillColor: string;
|
|
41
|
+
};
|
|
42
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
43
|
+
border: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
'& .MuiSelect-iconOutlined': {
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export default selectTheme;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<({ label, ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
status: "error" | "complete" | "processing" | "custom";
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
coloroverride?: string | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
10
|
+
children?: null | undefined;
|
|
11
|
+
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
12
|
+
clickable?: boolean | undefined;
|
|
13
|
+
color?: "primary" | "secondary" | "success" | "error" | "info" | "warning" | "default" | undefined;
|
|
14
|
+
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
15
|
+
disabled?: boolean | undefined;
|
|
16
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
17
|
+
label?: import("react").ReactNode;
|
|
18
|
+
onDelete?: ((event: any) => void) | undefined;
|
|
19
|
+
size?: "small" | "medium" | undefined;
|
|
20
|
+
skipFocusWhenDisabled?: boolean | undefined;
|
|
21
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
22
|
+
tabIndex?: number | undefined;
|
|
23
|
+
variant?: "outlined" | "filled" | undefined;
|
|
24
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
25
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
+
}, "color" | "icon" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "tabIndex" | "children" | "disabled" | "sx" | "size" | "variant" | "clickable" | "avatar" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled">) => import("react/jsx-runtime").JSX.Element>;
|
|
27
|
+
export default _default;
|
|
28
|
+
export declare const Options: ComponentStory<({ label, ...props }: {
|
|
29
|
+
'data-testid'?: string | undefined;
|
|
30
|
+
status: "error" | "complete" | "processing" | "custom";
|
|
31
|
+
label?: string | undefined;
|
|
32
|
+
coloroverride?: string | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
35
|
+
children?: null | undefined;
|
|
36
|
+
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
37
|
+
clickable?: boolean | undefined;
|
|
38
|
+
color?: "primary" | "secondary" | "success" | "error" | "info" | "warning" | "default" | undefined;
|
|
39
|
+
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
40
|
+
disabled?: boolean | undefined;
|
|
41
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
42
|
+
label?: import("react").ReactNode;
|
|
43
|
+
onDelete?: ((event: any) => void) | undefined;
|
|
44
|
+
size?: "small" | "medium" | undefined;
|
|
45
|
+
skipFocusWhenDisabled?: boolean | undefined;
|
|
46
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
47
|
+
tabIndex?: number | undefined;
|
|
48
|
+
variant?: "outlined" | "filled" | undefined;
|
|
49
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
50
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
51
|
+
}, "color" | "icon" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "tabIndex" | "children" | "disabled" | "sx" | "size" | "variant" | "clickable" | "avatar" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled">) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChipProps as MuiChipProps } from '@mui/material';
|
|
2
|
+
type StatusChipProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
/**
|
|
5
|
+
Determines stock color. Used as label if no label prop is provided.
|
|
6
|
+
**/
|
|
7
|
+
status: 'complete' | 'processing' | 'error' | 'custom';
|
|
8
|
+
/**
|
|
9
|
+
If no label prop provided, status prop is used as chip label.
|
|
10
|
+
**/
|
|
11
|
+
label?: string;
|
|
12
|
+
/**
|
|
13
|
+
To override the StatusChip stock colors, use `coloroverride` prop. The `coloroverride` prop should be a HEX Value.
|
|
14
|
+
**/
|
|
15
|
+
coloroverride?: string;
|
|
16
|
+
} & MuiChipProps;
|
|
17
|
+
/**
|
|
18
|
+
- Use a StatusChip to display the status of some action to the user.
|
|
19
|
+
- Veritone stock options derive from the required `status` prop and include Complete, Processing, or Error. Their corresponding colors derive from Veritone's Design System guidelines.
|
|
20
|
+
- To override Stock Option labels, but retain corresponding chip color, use the `label` prop.
|
|
21
|
+
- To override Stock Option colors, but retain corresponding label, either use the `color` prop (for MUI stock color options) **OR** use the `coloroverride` prop (for full color customization).
|
|
22
|
+
- To fully customize StatusChip:
|
|
23
|
+
- Set `status` prop to "custom";
|
|
24
|
+
- Pass your custom string to `label` prop;
|
|
25
|
+
- Pass an MUI stock color option to `color` prop **OR** pass a custom color Hex Value to `coloroverride` prop.
|
|
26
|
+
**/
|
|
27
|
+
declare const StatusChip: ({ label, ...props }: StatusChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default StatusChip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StepLabelProps as MuiStepLabelProps } from '@mui/material';
|
|
2
|
+
type StepLabelProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
} & MuiStepLabelProps;
|
|
5
|
+
declare const StepLabel: ({ ...props }: StepLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default StepLabel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import Stepper from '.';
|
|
4
|
+
declare const _default: ComponentMeta<(props: {
|
|
5
|
+
'data-testid'?: string | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
component?: import("react").ElementType<any> | undefined;
|
|
8
|
+
} & Pick<import("@mui/material").PaperProps<"div", {}>, "variant" | "square" | "elevation"> & {
|
|
9
|
+
activeStep?: number | undefined;
|
|
10
|
+
alternativeLabel?: boolean | undefined;
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
classes?: Partial<import("@mui/material").StepperClasses> | undefined;
|
|
13
|
+
connector?: import("react").ReactElement<any, any> | null | undefined;
|
|
14
|
+
nonLinear?: boolean | undefined;
|
|
15
|
+
orientation?: import("@mui/material").Orientation | undefined;
|
|
16
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
17
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "square" | "elevation" | "orientation" | "component" | "activeStep" | "alternativeLabel" | "connector" | "nonLinear">) => import("react/jsx-runtime").JSX.Element>;
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const Default: ComponentStory<typeof Stepper> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StepperProps as MuiStepperProps } from '@mui/material';
|
|
2
|
+
type StepperProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
} & MuiStepperProps;
|
|
5
|
+
/**
|
|
6
|
+
The Stepper is used for highlighting where a user is in a progression of steps.
|
|
7
|
+
For additional information see:
|
|
8
|
+
https://mui.com/material-ui/react-stepper/ ,
|
|
9
|
+
https://mui.com/material-ui/api/step/ ,
|
|
10
|
+
https://mui.com/material-ui/api/step-label/ .
|
|
11
|
+
**/
|
|
12
|
+
declare const Stepper: (props: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Stepper;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Theme } from '../../assets/theme';
|
|
2
|
+
declare const stepperTheme: (theme: Theme) => {
|
|
3
|
+
MuiStepConnector: {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
line: {
|
|
6
|
+
borderColor: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
MuiStep: {
|
|
11
|
+
defaultProps: {
|
|
12
|
+
completed: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
MuiStepIcon: {
|
|
16
|
+
styleOverrides: {
|
|
17
|
+
root: {
|
|
18
|
+
borderRadius: string;
|
|
19
|
+
height: string;
|
|
20
|
+
width: string;
|
|
21
|
+
outline: string;
|
|
22
|
+
color: string;
|
|
23
|
+
text: {
|
|
24
|
+
fill: string;
|
|
25
|
+
};
|
|
26
|
+
'&.Mui-active': {
|
|
27
|
+
outline: string;
|
|
28
|
+
color: string;
|
|
29
|
+
text: {
|
|
30
|
+
fill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
MuiStepLabel: {
|
|
37
|
+
styleOverrides: {
|
|
38
|
+
label: {
|
|
39
|
+
fontWeight: string;
|
|
40
|
+
'&.Mui-active': {
|
|
41
|
+
fontWeight: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
iconContainer: {
|
|
45
|
+
padding: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export default stepperTheme;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BadgeProps } from '@mui/material';
|
|
2
|
+
export type BadgeLabelProps = {
|
|
3
|
+
badgeCount: number;
|
|
4
|
+
label: string;
|
|
5
|
+
} & BadgeProps;
|
|
6
|
+
declare function BadgeLabel({ badgeCount, label }: BadgeLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BadgeLabel;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { Tabs } from '@mui/material';
|
|
3
|
+
declare const _default: ComponentMeta<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TabsTypeMap<{}, import("@mui/material").ExtendButtonBase<import("@mui/material").ButtonBaseTypeMap<{}, "button">>>>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const OnOffState: ComponentStory<typeof Tabs> | Story;
|
|
6
|
+
export declare const OnOffWithCount: Story<import("@storybook/react").Args> | ComponentStory<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TabsTypeMap<{}, import("@mui/material").ExtendButtonBase<import("@mui/material").ButtonBaseTypeMap<{}, "button">>>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TabProps } from '@mui/material';
|
|
2
|
+
export type SingleTabProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
count?: number;
|
|
6
|
+
value?: number;
|
|
7
|
+
} & TabProps;
|
|
8
|
+
/**
|
|
9
|
+
* - This is a wrapper around the Tab component
|
|
10
|
+
* - It adds a badge to the tab if the count is greater than 0
|
|
11
|
+
* - It also adds a11y props to the tab
|
|
12
|
+
**/
|
|
13
|
+
declare const BasicTabs: ({ count, value, label, ...props }: SingleTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default BasicTabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import Toast from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ severity, messageLabel, messageText, linkText, handleClose, open, ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
messageLabel?: string | undefined;
|
|
6
|
+
messageText?: string | undefined;
|
|
7
|
+
linkText?: string | undefined;
|
|
8
|
+
handleClose?: (() => void) | undefined;
|
|
9
|
+
open?: boolean | undefined;
|
|
10
|
+
} & import("@mui/material").SnackbarProps & import("@mui/material").AlertProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const DefaultAutoHide: ComponentStory<typeof Toast> | Story;
|
|
13
|
+
export declare const onClose: ComponentStory<typeof Toast> | Story;
|
|
14
|
+
export declare const onCloseWithLink: ComponentStory<typeof Toast> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SnackbarProps, AlertProps } from '@mui/material';
|
|
2
|
+
type ToastProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
messageLabel?: string;
|
|
5
|
+
messageText?: string;
|
|
6
|
+
/**
|
|
7
|
+
* - Use can pass messageLabel or messageText
|
|
8
|
+
* - If these props are not passed in, the default label and text will be set based on severity
|
|
9
|
+
**/
|
|
10
|
+
linkText?: string;
|
|
11
|
+
/**
|
|
12
|
+
* - User can add linkText if they want to provide users a link with information related to the toast
|
|
13
|
+
**/
|
|
14
|
+
handleClose?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* - handleClose is an optional function a user can pass
|
|
17
|
+
* - if user does not pass this function, the autoHideDuration will control when the toast disappears
|
|
18
|
+
* -
|
|
19
|
+
**/
|
|
20
|
+
open?: boolean;
|
|
21
|
+
} & SnackbarProps & AlertProps;
|
|
22
|
+
declare const Toast: ({ severity, messageLabel, messageText, linkText, handleClose, open, ...props }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Toast;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import Typography from '.';
|
|
4
|
+
declare const _default: ComponentMeta<({ ...props }: {
|
|
5
|
+
'data-testid'?: string | undefined;
|
|
6
|
+
} & import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
7
|
+
align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
10
|
+
gutterBottom?: boolean | undefined;
|
|
11
|
+
noWrap?: boolean | undefined;
|
|
12
|
+
paragraph?: boolean | undefined;
|
|
13
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
14
|
+
variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
|
|
15
|
+
variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
|
|
16
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
18
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | ("color" | "p" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">) => import("react/jsx-runtime").JSX.Element>;
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const Default: ComponentStory<typeof Typography> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TypographyProps as MuiTypographyProps } from '@mui/material';
|
|
2
|
+
type TypographyProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
} & MuiTypographyProps;
|
|
5
|
+
declare const Typography: ({ ...props }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Typography;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import UtilityRail from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ items, ...props }: {
|
|
4
|
+
items: import(".").Item[];
|
|
5
|
+
'data-testid'?: string | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: ComponentStory<typeof UtilityRail> | Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type Item = {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle: string;
|
|
4
|
+
description: string;
|
|
5
|
+
};
|
|
6
|
+
type UtilityRailProps = {
|
|
7
|
+
items: Item[];
|
|
8
|
+
'data-testid'?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const UtilityRail: ({ items, ...props }: UtilityRailProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default UtilityRail;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { default as Button } from './components/Button';
|
|
2
|
+
export { default as Checkbox } from './components/Checkbox';
|
|
3
|
+
export { default as FileUploader } from './components/FileUploader';
|
|
4
|
+
export { default as Input } from './components/Input';
|
|
5
|
+
export { default as Panel } from './components/Panel';
|
|
6
|
+
export { default as ProgressIndicator } from './components/ProgressIndicator';
|
|
7
|
+
export { default as RadioButton } from './components/RadioButton';
|
|
8
|
+
export { default as Select } from './components/Select';
|
|
9
|
+
export { default as Tabs } from './components/Tabs';
|
|
10
|
+
export { default as Stepper } from './components/Stepper';
|
|
11
|
+
export { default as ThemeProvider } from './components/ThemeProvider';
|
|
12
|
+
export { default as Typography } from './components/Typography';
|
|
13
|
+
export { default as Box } from './components/Box';
|
|
14
|
+
export { default as Drawer } from './components/Drawer';
|
|
15
|
+
export { default as FormControlLabel } from './components/FormControlLabel';
|
|
16
|
+
export { default as IconGroups } from './components/IconGroups';
|
|
17
|
+
export { default as HomeOutlinedIcon } from './components/HomeOutlinedIcon';
|
|
18
|
+
export { default as Link } from './components/Link';
|
|
19
|
+
export { default as List } from './components/List';
|
|
20
|
+
export { default as ListItem } from './components/ListItem';
|
|
21
|
+
export { default as ListItemButton } from './components/ListItemButton';
|
|
22
|
+
export { default as IconListItem } from './components/IconListItem';
|
|
23
|
+
export { default as ListItemText } from './components/ListItemText';
|
|
24
|
+
export { default as RadioGroup } from './components/RadioGroup';
|
|
25
|
+
export { default as Step } from './components/Step';
|
|
26
|
+
export { default as StepLabel } from './components/StepLabel';
|
|
27
|
+
export { default as ModelGridView } from './components/ModelGridView';
|
|
28
|
+
export { default as Breadcrumbs } from './components/Breadcrumbs';
|
|
29
|
+
export { default as CustomSlider } from './components/CustomSlider';
|
|
30
|
+
export { default as theme } from './assets/theme';
|
|
31
|
+
export { useTheme } from '@mui/material';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|