@veritone-ce/design-system 1.12.1 → 1.12.3

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.
Files changed (98) hide show
  1. package/dist/assets/theme.js +10 -0
  2. package/dist/components/Box/__tests__/Box.test.d.ts +1 -0
  3. package/dist/components/Box/__tests__/Box.test.js +10 -0
  4. package/dist/components/Box/index.d.ts +6 -0
  5. package/dist/components/Box/index.js +18 -0
  6. package/dist/components/Button/Button.stories.d.ts +0 -1
  7. package/dist/components/Button/Indicator.d.ts +0 -1
  8. package/dist/components/Button/__tests__/Button.test.js +21 -1
  9. package/dist/components/Button/index.d.ts +0 -1
  10. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -1
  11. package/dist/components/Checkbox/index.d.ts +0 -1
  12. package/dist/components/Drawer/__tests__/Drawer.test.d.ts +1 -0
  13. package/dist/components/Drawer/__tests__/Drawer.test.js +10 -0
  14. package/dist/components/Drawer/index.d.ts +6 -0
  15. package/dist/components/Drawer/index.js +18 -0
  16. package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -1
  17. package/dist/components/FileUploader/__tests__/FileUploader.test.js +29 -46
  18. package/dist/components/FileUploader/index.d.ts +0 -1
  19. package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +1 -0
  20. package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.js +10 -0
  21. package/dist/components/FormControlLabel/index.d.ts +6 -0
  22. package/dist/components/FormControlLabel/index.js +18 -0
  23. package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +7 -0
  24. package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.js +21 -0
  25. package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +1 -0
  26. package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.js +10 -0
  27. package/dist/components/HomeOutlinedIcon/index.d.ts +5 -0
  28. package/dist/components/HomeOutlinedIcon/index.js +18 -0
  29. package/dist/components/IconGroups/IconGroups.stories.d.ts +7 -0
  30. package/dist/components/IconGroups/IconGroups.stories.js +21 -0
  31. package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +1 -0
  32. package/dist/components/IconGroups/__tests__/IconGroups.test.js +10 -0
  33. package/dist/components/IconGroups/index.d.ts +5 -0
  34. package/dist/components/IconGroups/index.js +18 -0
  35. package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +1 -0
  36. package/dist/components/IconListItem/__tests__/IconListItem.test.js +10 -0
  37. package/dist/components/IconListItem/index.d.ts +5 -0
  38. package/dist/components/IconListItem/index.js +18 -0
  39. package/dist/components/Input/Input.stories.d.ts +0 -1
  40. package/dist/components/Input/index.d.ts +0 -1
  41. package/dist/components/Link/__tests__/Link.test.d.ts +1 -0
  42. package/dist/components/Link/__tests__/Link.test.js +10 -0
  43. package/dist/components/Link/index.d.ts +6 -0
  44. package/dist/components/Link/index.js +18 -0
  45. package/dist/components/List/__tests__/List.test.d.ts +1 -0
  46. package/dist/components/List/__tests__/List.test.js +10 -0
  47. package/dist/components/List/index.d.ts +6 -0
  48. package/dist/components/List/index.js +18 -0
  49. package/dist/components/ListItem/__tests__/ListItem.test.d.ts +1 -0
  50. package/dist/components/ListItem/__tests__/ListItem.test.js +10 -0
  51. package/dist/components/ListItem/index.d.ts +6 -0
  52. package/dist/components/ListItem/index.js +18 -0
  53. package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +1 -0
  54. package/dist/components/ListItemButton/__tests__/ListItemButton.test.js +10 -0
  55. package/dist/components/ListItemButton/index.d.ts +6 -0
  56. package/dist/components/ListItemButton/index.js +18 -0
  57. package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +1 -0
  58. package/dist/components/ListItemText/__tests__/ListItemText.test.js +10 -0
  59. package/dist/components/ListItemText/index.d.ts +6 -0
  60. package/dist/components/ListItemText/index.js +18 -0
  61. package/dist/components/ProgressIndicator/DefaultProgress.d.ts +0 -1
  62. package/dist/components/ProgressIndicator/MLProgress.d.ts +0 -1
  63. package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -1
  64. package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.js +9 -1
  65. package/dist/components/ProgressIndicator/index.d.ts +0 -1
  66. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -1
  67. package/dist/components/RadioButton/index.d.ts +0 -1
  68. package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +1 -0
  69. package/dist/components/RadioGroup/__tests__/RadioGroup.test.js +10 -0
  70. package/dist/components/RadioGroup/index.d.ts +6 -0
  71. package/dist/components/RadioGroup/index.js +18 -0
  72. package/dist/components/Select/Select.stories.d.ts +0 -1
  73. package/dist/components/Select/__tests__/Select.test.js +2 -2
  74. package/dist/components/Select/index.d.ts +0 -1
  75. package/dist/components/Select/index.js +1 -13
  76. package/dist/components/StatusChip/index.d.ts +0 -1
  77. package/dist/components/Step/__tests__/Step.test.d.ts +1 -0
  78. package/dist/components/Step/__tests__/Step.test.js +10 -0
  79. package/dist/components/Step/index.d.ts +6 -0
  80. package/dist/components/Step/index.js +18 -0
  81. package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +1 -0
  82. package/dist/components/StepLabel/__tests__/StepLabel.test.js +10 -0
  83. package/dist/components/StepLabel/index.d.ts +6 -0
  84. package/dist/components/StepLabel/index.js +18 -0
  85. package/dist/components/Stepper/index.d.ts +0 -1
  86. package/dist/components/Tabs/Badge.d.ts +0 -1
  87. package/dist/components/Tabs/__tests__/Tabs.test.js +9 -4
  88. package/dist/components/Tabs/index.d.ts +0 -1
  89. package/dist/components/ThemeProvider/index.d.ts +0 -1
  90. package/dist/components/Typography/Typography.stories.d.ts +20 -0
  91. package/dist/components/Typography/Typography.stories.js +21 -0
  92. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  93. package/dist/components/Typography/__tests__/Typography.test.js +10 -0
  94. package/dist/components/Typography/index.d.ts +6 -0
  95. package/dist/components/Typography/index.js +18 -0
  96. package/dist/index.d.ts +15 -0
  97. package/dist/index.js +15 -0
  98. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { ListItem as MuiListItem } from '@mui/material';
14
+ const ListItem = (_a) => {
15
+ var props = __rest(_a, []);
16
+ return _jsx(MuiListItem, Object.assign({}, props));
17
+ };
18
+ export default ListItem;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render } from '../../../utils/tests/helpers';
3
+ import { screen } from '@testing-library/react';
4
+ import ListItemButton from '..';
5
+ describe('<ListItemButton />', () => {
6
+ it('should render the ListItemButton component', () => {
7
+ render(_jsx(ListItemButton, { "data-testid": "list-item-button" }));
8
+ expect(screen.getByTestId('list-item-button')).toBeInTheDocument();
9
+ });
10
+ });
@@ -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) => JSX.Element;
6
+ export default ListItemButton;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { ListItemButton as MuiListItemButton } from '@mui/material';
14
+ const ListItemButton = (_a) => {
15
+ var props = __rest(_a, []);
16
+ return _jsx(MuiListItemButton, Object.assign({}, props));
17
+ };
18
+ export default ListItemButton;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render } from '../../../utils/tests/helpers';
3
+ import { screen } from '@testing-library/react';
4
+ import ListItemText from '..';
5
+ describe('<ListItemText />', () => {
6
+ it('should render the ListItemText component', () => {
7
+ render(_jsx(ListItemText, { "data-testid": "list-item-text" }));
8
+ expect(screen.getByTestId('list-item-text')).toBeInTheDocument();
9
+ });
10
+ });
@@ -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) => JSX.Element;
6
+ export default ListItemText;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { ListItemText as MuiListItemText } from '@mui/material';
14
+ const ListItemText = (_a) => {
15
+ var props = __rest(_a, []);
16
+ return _jsx(MuiListItemText, Object.assign({}, props));
17
+ };
18
+ export default ListItemText;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProgressIndicatorProps } from '.';
3
2
  declare const DefaultProgress: ({ itemLoading, ...props }: ProgressIndicatorProps) => JSX.Element;
4
3
  export default DefaultProgress;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProgressIndicatorProps } from '.';
3
2
  declare const MLProgress: ({ itemLoading, ...props }: ProgressIndicatorProps) => JSX.Element;
4
3
  export default MLProgress;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
3
2
  import ProgressIndicator, { ProgressIndicatorProps } from '.';
4
3
  declare const _default: ComponentMeta<({ type, ...props }: ProgressIndicatorProps) => JSX.Element>;
@@ -4,7 +4,15 @@ import { screen } from '@testing-library/react';
4
4
  import ProgressIndicator from '../';
5
5
  describe('<ProgressIndicator />', () => {
6
6
  it('should render the ProgressIndicator component', () => {
7
- render(_jsx(ProgressIndicator, { "data-testid": "progress-indicator" }));
7
+ render(_jsx(ProgressIndicator, { "data-testid": "progress-indicator", itemLoading: "true" }));
8
+ expect(screen.getByTestId('progress-indicator')).toBeInTheDocument();
9
+ });
10
+ it('should render component ProgressIndicator type medium', () => {
11
+ render(_jsx(ProgressIndicator, { "data-testid": "progress-indicator", type: "medium", itemLoading: "true" }));
12
+ expect(screen.getByTestId('progress-indicator')).toBeInTheDocument();
13
+ });
14
+ it('should render component ProgressIndicator type large', () => {
15
+ render(_jsx(ProgressIndicator, { "data-testid": "progress-indicator", type: "large", itemLoading: "true" }));
8
16
  expect(screen.getByTestId('progress-indicator')).toBeInTheDocument();
9
17
  });
10
18
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CircularProgressProps } from '@mui/material';
3
2
  export type ProgressIndicatorProps = {
4
3
  'data-testid'?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
3
2
  import RadioButton from '.';
4
3
  declare const _default: ComponentMeta<({ label, ...props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioProps } from '@mui/material';
3
2
  type RadioButtonProps = {
4
3
  'data-testid'?: string;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render } from '../../../utils/tests/helpers';
3
+ import { screen } from '@testing-library/react';
4
+ import RadioGroup from '..';
5
+ describe('<RadioGroup />', () => {
6
+ it('should render the RadioGroup component', () => {
7
+ render(_jsx(RadioGroup, { "data-testid": "radio-group" }));
8
+ expect(screen.getByTestId('radio-group')).toBeInTheDocument();
9
+ });
10
+ });
@@ -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) => JSX.Element;
6
+ export default RadioGroup;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { RadioGroup as MuiRadioGroup } from '@mui/material';
14
+ const RadioGroup = (_a) => {
15
+ var props = __rest(_a, []);
16
+ return _jsx(MuiRadioGroup, Object.assign({}, props));
17
+ };
18
+ export default RadioGroup;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
2
  declare const _default: ComponentMeta<({ label, items, helperText, errorMessage, ...props }: import(".").SelectProps) => JSX.Element>;
4
3
  export default _default;
@@ -8,11 +8,11 @@ const items = [
8
8
  { name: 'Three', value: 3 }
9
9
  ];
10
10
  describe('<Select />', () => {
11
- it.skip('should render the Select component', () => {
11
+ it('should render the Select component', () => {
12
12
  render(_jsx(Select, { "data-testid": "select", label: 'Select', value: '', items: items }));
13
13
  expect(screen.getByTestId('select')).toBeInTheDocument();
14
14
  });
15
- it.skip('should render Select component with all properties', () => {
15
+ it('should render Select component with all properties', () => {
16
16
  render(_jsx(Select, { "data-testid": "select", label: 'Select', value: '', helperText: "Helper Text", error: true, errorMessage: "Error Message", items: items }));
17
17
  expect(screen.getByTestId('select')).toBeInTheDocument();
18
18
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps as MuiSelectProps } from '@mui/material';
3
2
  type ItemData = {
4
3
  title?: string;
@@ -35,19 +35,7 @@ const Select = (_a) => {
35
35
  }
36
36
  }
37
37
  }
38
- } }, { children: _jsxs(MuiSelect, Object.assign({}, props, { labelId: "label-select" }, { children: [_jsx(MenuItem, Object.assign({ value: "", sx: {
39
- color: (theme) => theme.palette.text.primary,
40
- padding: '10px 20px',
41
- ':hover, :focus': {
42
- backgroundColor: (theme) => theme.palette.misc.altBackground
43
- }
44
- } }, { children: "Select" })), items.map((item, index) => (_jsx(MenuItem, Object.assign({ value: item.value, sx: {
45
- color: (theme) => theme.palette.text.primary,
46
- padding: '10px 20px',
47
- ':hover, :focus': {
48
- backgroundColor: (theme) => theme.palette.misc.altBackground
49
- }
50
- } }, { children: _jsxs(Box, Object.assign({ sx: { lineHeight: '20px', fontSize: '14px', opacity: 0.9 } }, { children: [_jsx(Box, Object.assign({ sx: { fontWeight: 700 } }, { children: item.title })), _jsx(Box, { children: item.name })] })) }), index)))] })) })), helperText && (_jsx(FormHelperText, Object.assign({ sx: {
38
+ } }, { children: _jsxs(MuiSelect, Object.assign({}, props, { labelId: "label-select" }, { children: [_jsx(MenuItem, Object.assign({ value: "" }, { children: "Select" })), items.map((item, index) => (_jsx(MenuItem, Object.assign({ value: item.value }, { children: _jsxs(Box, Object.assign({ sx: { lineHeight: '20px', fontSize: '14px', opacity: 0.9 } }, { children: [_jsx(Box, Object.assign({ sx: { fontWeight: 700 } }, { children: item.title })), _jsx(Box, { children: item.name })] })) }), index)))] })) })), helperText && (_jsx(FormHelperText, Object.assign({ sx: {
51
39
  lineHeight: '18px',
52
40
  color: (theme) => theme.palette.text.disabled
53
41
  } }, { children: helperText }))), props.error && (_jsxs(Box, Object.assign({ sx: { display: 'flex', alignItems: 'center' } }, { children: [_jsx(Circle, { sx: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ChipProps as MuiChipProps } from '@mui/material';
3
2
  type StatusChipProps = {
4
3
  'data-testid'?: string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render } from '../../../utils/tests/helpers';
3
+ import { screen } from '@testing-library/react';
4
+ import Step from '..';
5
+ describe('<Step />', () => {
6
+ it('should render the Step component', () => {
7
+ render(_jsx(Step, { "data-testid": "step" }));
8
+ expect(screen.getByTestId('step')).toBeInTheDocument();
9
+ });
10
+ });
@@ -0,0 +1,6 @@
1
+ import { StepProps as MuiStepProps } from '@mui/material';
2
+ type StepProps = {
3
+ 'data-testid'?: string;
4
+ } & MuiStepProps;
5
+ declare const Step: ({ ...props }: StepProps) => JSX.Element;
6
+ export default Step;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { Step as MuiStep } from '@mui/material';
14
+ const Step = (_a) => {
15
+ var props = __rest(_a, []);
16
+ return _jsx(MuiStep, Object.assign({}, props));
17
+ };
18
+ export default Step;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render } from '../../../utils/tests/helpers';
3
+ import { screen } from '@testing-library/react';
4
+ import StepLabel from '..';
5
+ describe('<StepLabel />', () => {
6
+ it('should render the StepLabel component', () => {
7
+ render(_jsx(StepLabel, { "data-testid": "step-label" }));
8
+ expect(screen.getByTestId('step-label')).toBeInTheDocument();
9
+ });
10
+ });
@@ -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) => JSX.Element;
6
+ export default StepLabel;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { StepLabel as MuiStepLabel } from '@mui/material';
14
+ const StepLabel = (_a) => {
15
+ var props = __rest(_a, []);
16
+ return _jsx(MuiStepLabel, Object.assign({}, props));
17
+ };
18
+ export default StepLabel;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StepperProps as MuiStepperProps } from '@mui/material';
3
2
  type StepperProps = {
4
3
  'data-testid'?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BadgeProps } from '@mui/material';
3
2
  export type BadgeLabelProps = {
4
3
  badgeCount: number;
@@ -1,10 +1,15 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { render } from '../../../utils/tests/helpers';
3
+ import { Tabs } from '@mui/material';
3
4
  import { screen } from '@testing-library/react';
4
- import Tabs from '../';
5
+ import Tab from '../';
5
6
  describe('<Tabs />', () => {
6
7
  it('should render the Tabs component', () => {
7
- render(_jsx(Tabs, { "data-testid": "tabs", label: "test" }));
8
- expect(screen.getByTestId('tabs')).toBeInTheDocument();
8
+ render(_jsxs(Tabs, Object.assign({ value: 1 }, { children: [_jsx(Tab, { "data-testid": "tab", label: "test", value: 1 }), _jsx(Tab, { "data-testid": "tab", label: "test", value: 2 })] })));
9
+ expect(screen.getAllByTestId('tab')[0]).toBeInTheDocument();
10
+ });
11
+ it('should render the Tabs component with badge', () => {
12
+ render(_jsxs(Tabs, Object.assign({ value: 1 }, { children: [_jsx(Tab, { "data-testid": "tab", label: "test", count: 2, value: 1 }), _jsx(Tab, { "data-testid": "tab", label: "test", count: 2, value: 2 })] })));
13
+ expect(screen.getAllByTestId('tab')[0]).toBeInTheDocument();
9
14
  });
10
15
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TabProps } from '@mui/material';
3
2
  export type SingleTabProps = {
4
3
  'data-testid'?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ThemeProviderProps } from '@mui/system';
3
2
  declare const ThemeProvider: ({ children }: Omit<ThemeProviderProps, 'theme'>) => JSX.Element;
4
3
  export default ThemeProvider;
@@ -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<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
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">) => JSX.Element>;
19
+ export default _default;
20
+ export declare const Default: ComponentStory<typeof Typography> | Story;
@@ -0,0 +1,21 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import Typography from '.';
14
+ export default {
15
+ title: 'Components/Typography',
16
+ component: Typography
17
+ };
18
+ export const Default = (_a) => {
19
+ var args = __rest(_a, []);
20
+ return _jsx(Typography, Object.assign({}, args, { children: "Typography" }));
21
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render } from '../../../utils/tests/helpers';
3
+ import { screen } from '@testing-library/react';
4
+ import Typography from '..';
5
+ describe('<Typography />', () => {
6
+ it('should render the Typography component', () => {
7
+ render(_jsx(Typography, Object.assign({ "data-testid": "typography" }, { children: "Typography" })));
8
+ expect(screen.getByTestId('typography')).toBeInTheDocument();
9
+ });
10
+ });
@@ -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) => JSX.Element;
6
+ export default Typography;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { Typography as MuiTypography } from '@mui/material';
14
+ const Typography = (_a) => {
15
+ var props = __rest(_a, []);
16
+ return _jsx(MuiTypography, Object.assign({}, props));
17
+ };
18
+ export default Typography;
package/dist/index.d.ts CHANGED
@@ -9,5 +9,20 @@ export { default as Select } from './components/Select';
9
9
  export { default as Tabs } from './components/Tabs';
10
10
  export { default as Stepper } from './components/Stepper';
11
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';
12
27
  export { default as theme } from './assets/theme';
13
28
  export { useTheme } from '@mui/material';
package/dist/index.js CHANGED
@@ -9,5 +9,20 @@ export { default as Select } from './components/Select';
9
9
  export { default as Tabs } from './components/Tabs';
10
10
  export { default as Stepper } from './components/Stepper';
11
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';
12
27
  export { default as theme } from './assets/theme';
13
28
  export { useTheme } from '@mui/material';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritone-ce/design-system",
3
- "version": "1.12.1",
3
+ "version": "1.12.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "yarn storybook",