@veritone-ce/design-system 1.12.14 → 1.12.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/theme.js +314 -261
- package/dist/components/Box/__tests__/Box.test.js +15 -9
- package/dist/components/Box/index.js +16 -17
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.js +34 -29
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.js +25 -14
- package/dist/components/Breadcrumbs/breadcrumbs.theme.js +16 -9
- package/dist/components/Breadcrumbs/index.js +50 -27
- package/dist/components/Button/Button.stories.js +89 -37
- package/dist/components/Button/Indicator.js +32 -17
- package/dist/components/Button/__tests__/Button.test.js +58 -33
- package/dist/components/Button/button.theme.js +121 -102
- package/dist/components/Button/index.js +44 -34
- package/dist/components/Button/useButtonProps.js +17 -15
- package/dist/components/Checkbox/Checkbox.stories.js +46 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +14 -9
- package/dist/components/Checkbox/checkbox.theme.js +23 -16
- package/dist/components/Checkbox/index.js +22 -17
- package/dist/components/CustomSlider/CustomSlider.stories.js +43 -24
- package/dist/components/CustomSlider/index.js +73 -55
- package/dist/components/Drawer/__tests__/Drawer.test.js +15 -9
- package/dist/components/Drawer/index.js +16 -17
- package/dist/components/FileUploader/FileUploader.stories.js +23 -24
- package/dist/components/FileUploader/__tests__/FileUploader.test.js +210 -220
- package/dist/components/FileUploader/index.js +211 -151
- package/dist/components/FileUploader/useUploadFile.js +69 -81
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.js +18 -9
- package/dist/components/FormControlLabel/index.js +16 -17
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.js +19 -20
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.js +14 -9
- package/dist/components/HomeOutlinedIcon/index.js +16 -17
- package/dist/components/IconGroups/IconGroups.stories.js +19 -20
- package/dist/components/IconGroups/__tests__/IconGroups.test.js +14 -9
- package/dist/components/IconGroups/index.js +17 -17
- package/dist/components/IconListItem/__tests__/IconListItem.test.js +14 -9
- package/dist/components/IconListItem/index.js +19 -17
- package/dist/components/Input/Input.stories.js +111 -51
- package/dist/components/Input/__tests__/Input.test.js +13 -9
- package/dist/components/Input/index.js +22 -19
- package/dist/components/Input/input.theme.js +104 -97
- package/dist/components/LinearProgress/LinearProgress.stories.js +42 -28
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.js +39 -17
- package/dist/components/LinearProgress/index.js +71 -21
- package/dist/components/LinearProgress/linearProgress.theme.js +19 -12
- package/dist/components/Link/__tests__/Link.test.js +14 -9
- package/dist/components/Link/index.js +16 -17
- package/dist/components/List/__tests__/List.test.js +14 -9
- package/dist/components/List/index.js +16 -17
- package/dist/components/ListItem/__tests__/ListItem.test.js +14 -9
- package/dist/components/ListItem/index.js +16 -17
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.js +14 -9
- package/dist/components/ListItemButton/index.js +16 -17
- package/dist/components/ListItemText/__tests__/ListItemText.test.js +14 -9
- package/dist/components/ListItemText/index.js +16 -17
- package/dist/components/MenuFlyout/MenuFlyout.stories.js +54 -32
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.js +41 -23
- package/dist/components/MenuFlyout/constants.js +12 -3
- package/dist/components/MenuFlyout/index.js +47 -26
- package/dist/components/MenuFlyout/menuFlyout.theme.js +46 -38
- package/dist/components/Modal/Modal.stories.js +190 -95
- package/dist/components/Modal/__tests__/Modal.test.js +16 -9
- package/dist/components/Modal/index.js +30 -17
- package/dist/components/Modal/modal.theme.js +30 -23
- package/dist/components/ModelGridView/ModelGridView.stories.js +40 -43
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.js +47 -42
- package/dist/components/ModelGridView/index.js +258 -150
- package/dist/components/Panel/Panel.stories.js +61 -44
- package/dist/components/Panel/__tests__/Panel.test.js +73 -43
- package/dist/components/Panel/index.js +116 -78
- package/dist/components/ProgressIndicator/DefaultProgress.js +28 -20
- package/dist/components/ProgressIndicator/MLProgress.js +30 -24
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +41 -38
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.js +31 -17
- package/dist/components/ProgressIndicator/index.js +26 -18
- package/dist/components/RadioButton/RadioButton.stories.js +37 -28
- package/dist/components/RadioButton/RadioButton.theme.js +59 -52
- package/dist/components/RadioButton/__tests__/RadioButton.test.js +13 -9
- package/dist/components/RadioButton/index.js +37 -28
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.js +14 -9
- package/dist/components/RadioGroup/index.js +16 -17
- package/dist/components/Select/Select.stories.js +82 -33
- package/dist/components/Select/__tests__/Select.test.js +39 -18
- package/dist/components/Select/index.js +99 -49
- package/dist/components/Select/select.theme.js +58 -51
- package/dist/components/StatusChip/StatusChip.stories.js +57 -43
- package/dist/components/StatusChip/__tests__/StatusChip.test.js +44 -27
- package/dist/components/StatusChip/constants.js +12 -3
- package/dist/components/StatusChip/index.js +28 -22
- package/dist/components/StatusChip/statusChip.theme.js +41 -22
- package/dist/components/Step/__tests__/Step.test.js +14 -9
- package/dist/components/Step/index.js +16 -17
- package/dist/components/StepLabel/__tests__/StepLabel.test.js +14 -9
- package/dist/components/StepLabel/index.js +16 -17
- package/dist/components/Stepper/Stepper.stories.js +37 -21
- package/dist/components/Stepper/__tests__/Stepper.test.js +14 -9
- package/dist/components/Stepper/index.js +15 -5
- package/dist/components/Stepper/stepper.theme.js +52 -45
- package/dist/components/Tabs/Badge.js +29 -10
- package/dist/components/Tabs/Tabs.stories.js +52 -33
- package/dist/components/Tabs/__tests__/Tabs.test.js +41 -14
- package/dist/components/Tabs/index.js +27 -18
- package/dist/components/Tabs/tabs.theme.js +34 -27
- package/dist/components/ThemeProvider/__tests__/Button.test.js +14 -9
- package/dist/components/ThemeProvider/index.js +19 -6
- package/dist/components/Toast/Toast.stories.js +103 -37
- package/dist/components/Toast/__tests__/Toast.test.js +47 -29
- package/dist/components/Toast/index.js +58 -38
- package/dist/components/Typography/Typography.stories.js +20 -20
- package/dist/components/Typography/__tests__/Typography.test.js +15 -9
- package/dist/components/Typography/index.js +16 -17
- package/dist/components/UtilityRail/UtilityRail.stories.js +22 -21
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.js +17 -10
- package/dist/components/UtilityRail/index.js +75 -53
- package/dist/components/UtilityRail/mock.js +32 -32
- package/dist/index.js +223 -31
- package/dist/react-app-env.d.js +2 -0
- package/dist/reportWebVitals.js +26 -11
- package/dist/setupTests.js +3 -5
- package/dist/utils/tests/helpers.js +31 -20
- package/package.json +9 -4
- package/dist/assets/theme.d.ts +0 -59
- package/dist/components/Box/__tests__/Box.test.d.ts +0 -1
- package/dist/components/Box/index.d.ts +0 -6
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/breadcrumbs.theme.d.ts +0 -11
- package/dist/components/Breadcrumbs/index.d.ts +0 -15
- package/dist/components/Button/Button.stories.d.ts +0 -7
- package/dist/components/Button/Indicator.d.ts +0 -2
- package/dist/components/Button/__tests__/Button.test.d.ts +0 -1
- package/dist/components/Button/button.theme.d.ts +0 -4
- package/dist/components/Button/index.d.ts +0 -10
- package/dist/components/Button/useButtonProps.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/checkbox.theme.d.ts +0 -18
- package/dist/components/Checkbox/index.d.ts +0 -7
- package/dist/components/CustomSlider/CustomSlider.stories.d.ts +0 -5
- package/dist/components/CustomSlider/index.d.ts +0 -12
- package/dist/components/Drawer/__tests__/Drawer.test.d.ts +0 -1
- package/dist/components/Drawer/index.d.ts +0 -6
- package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -15
- package/dist/components/FileUploader/__tests__/FileUploader.test.d.ts +0 -1
- package/dist/components/FileUploader/index.d.ts +0 -21
- package/dist/components/FileUploader/useUploadFile.d.ts +0 -5
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +0 -1
- package/dist/components/FormControlLabel/index.d.ts +0 -6
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +0 -7
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +0 -1
- package/dist/components/HomeOutlinedIcon/index.d.ts +0 -5
- package/dist/components/IconGroups/IconGroups.stories.d.ts +0 -7
- package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +0 -1
- package/dist/components/IconGroups/index.d.ts +0 -5
- package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +0 -1
- package/dist/components/IconListItem/index.d.ts +0 -7
- package/dist/components/Input/Input.stories.d.ts +0 -11
- package/dist/components/Input/__tests__/Input.test.d.ts +0 -1
- package/dist/components/Input/index.d.ts +0 -6
- package/dist/components/Input/input.theme.d.ts +0 -3
- package/dist/components/LinearProgress/LinearProgress.stories.d.ts +0 -14
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.d.ts +0 -1
- package/dist/components/LinearProgress/index.d.ts +0 -27
- package/dist/components/LinearProgress/linearProgress.theme.d.ts +0 -14
- package/dist/components/Link/__tests__/Link.test.d.ts +0 -1
- package/dist/components/Link/index.d.ts +0 -6
- package/dist/components/List/__tests__/List.test.d.ts +0 -1
- package/dist/components/List/index.d.ts +0 -6
- package/dist/components/ListItem/__tests__/ListItem.test.d.ts +0 -1
- package/dist/components/ListItem/index.d.ts +0 -6
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +0 -1
- package/dist/components/ListItemButton/index.d.ts +0 -6
- package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +0 -1
- package/dist/components/ListItemText/index.d.ts +0 -6
- package/dist/components/MenuFlyout/MenuFlyout.stories.d.ts +0 -31
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.d.ts +0 -1
- package/dist/components/MenuFlyout/constants.d.ts +0 -3
- package/dist/components/MenuFlyout/index.d.ts +0 -15
- package/dist/components/MenuFlyout/menuFlyout.theme.d.ts +0 -41
- package/dist/components/Modal/Modal.stories.d.ts +0 -15
- package/dist/components/Modal/__tests__/Modal.test.d.ts +0 -1
- package/dist/components/Modal/index.d.ts +0 -11
- package/dist/components/Modal/modal.theme.d.ts +0 -3
- package/dist/components/ModelGridView/ModelGridView.stories.d.ts +0 -5
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.d.ts +0 -1
- package/dist/components/ModelGridView/index.d.ts +0 -13
- package/dist/components/Panel/Panel.stories.d.ts +0 -14
- package/dist/components/Panel/__tests__/Panel.test.d.ts +0 -1
- package/dist/components/Panel/index.d.ts +0 -11
- package/dist/components/ProgressIndicator/DefaultProgress.d.ts +0 -3
- package/dist/components/ProgressIndicator/MLProgress.d.ts +0 -3
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -7
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.d.ts +0 -1
- package/dist/components/ProgressIndicator/index.d.ts +0 -11
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -10
- package/dist/components/RadioButton/RadioButton.theme.d.ts +0 -4
- package/dist/components/RadioButton/__tests__/RadioButton.test.d.ts +0 -1
- package/dist/components/RadioButton/index.d.ts +0 -7
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +0 -1
- package/dist/components/RadioGroup/index.d.ts +0 -6
- package/dist/components/Select/Select.stories.d.ts +0 -5
- package/dist/components/Select/__tests__/Select.test.d.ts +0 -1
- package/dist/components/Select/index.d.ts +0 -15
- package/dist/components/Select/select.theme.d.ts +0 -53
- package/dist/components/StatusChip/StatusChip.stories.d.ts +0 -51
- package/dist/components/StatusChip/__tests__/StatusChip.test.d.ts +0 -1
- package/dist/components/StatusChip/constants.d.ts +0 -3
- package/dist/components/StatusChip/index.d.ts +0 -28
- package/dist/components/StatusChip/statusChip.theme.d.ts +0 -4
- package/dist/components/Step/__tests__/Step.test.d.ts +0 -1
- package/dist/components/Step/index.d.ts +0 -6
- package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +0 -1
- package/dist/components/StepLabel/index.d.ts +0 -6
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -21
- package/dist/components/Stepper/__tests__/Stepper.test.d.ts +0 -1
- package/dist/components/Stepper/index.d.ts +0 -13
- package/dist/components/Stepper/stepper.theme.d.ts +0 -50
- package/dist/components/Tabs/Badge.d.ts +0 -7
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -6
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +0 -1
- package/dist/components/Tabs/index.d.ts +0 -14
- package/dist/components/Tabs/tabs.theme.d.ts +0 -4
- package/dist/components/ThemeProvider/__tests__/Button.test.d.ts +0 -1
- package/dist/components/ThemeProvider/index.d.ts +0 -3
- package/dist/components/Toast/Toast.stories.d.ts +0 -14
- package/dist/components/Toast/__tests__/Toast.test.d.ts +0 -1
- package/dist/components/Toast/index.d.ts +0 -23
- package/dist/components/Typography/Typography.stories.d.ts +0 -20
- package/dist/components/Typography/__tests__/Typography.test.d.ts +0 -1
- package/dist/components/Typography/index.d.ts +0 -6
- package/dist/components/UtilityRail/UtilityRail.stories.d.ts +0 -8
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.d.ts +0 -1
- package/dist/components/UtilityRail/index.d.ts +0 -11
- package/dist/components/UtilityRail/mock.d.ts +0 -2
- package/dist/index.d.ts +0 -31
- package/dist/reportWebVitals.d.ts +0 -3
- package/dist/setupTests.d.ts +0 -1
- package/dist/utils/tests/helpers.d.ts +0 -6
|
@@ -1,53 +0,0 @@
|
|
|
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;
|
|
@@ -1,51 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,50 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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">>>>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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 AudioSlider } from './components/CustomSlider';
|
|
30
|
-
export { default as theme } from './assets/theme';
|
|
31
|
-
export { useTheme } from '@mui/material';
|
package/dist/setupTests.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RenderOptions } from '@testing-library/react';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
export type CustomRenderProps = Omit<RenderOptions, 'queries'>;
|
|
4
|
-
declare const customRender: (ui: ReactElement, { ...renderOptions }?: CustomRenderProps) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
5
|
-
export * from '@testing-library/react';
|
|
6
|
-
export { customRender as render };
|