@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.
- package/dist/assets/theme.js +10 -0
- package/dist/components/Box/__tests__/Box.test.d.ts +1 -0
- package/dist/components/Box/__tests__/Box.test.js +10 -0
- package/dist/components/Box/index.d.ts +6 -0
- package/dist/components/Box/index.js +18 -0
- package/dist/components/Button/Button.stories.d.ts +0 -1
- package/dist/components/Button/Indicator.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +21 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/Drawer/__tests__/Drawer.test.d.ts +1 -0
- package/dist/components/Drawer/__tests__/Drawer.test.js +10 -0
- package/dist/components/Drawer/index.d.ts +6 -0
- package/dist/components/Drawer/index.js +18 -0
- package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -1
- package/dist/components/FileUploader/__tests__/FileUploader.test.js +29 -46
- package/dist/components/FileUploader/index.d.ts +0 -1
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +1 -0
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.js +10 -0
- package/dist/components/FormControlLabel/index.d.ts +6 -0
- package/dist/components/FormControlLabel/index.js +18 -0
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +7 -0
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.js +21 -0
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +1 -0
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.js +10 -0
- package/dist/components/HomeOutlinedIcon/index.d.ts +5 -0
- package/dist/components/HomeOutlinedIcon/index.js +18 -0
- package/dist/components/IconGroups/IconGroups.stories.d.ts +7 -0
- package/dist/components/IconGroups/IconGroups.stories.js +21 -0
- package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +1 -0
- package/dist/components/IconGroups/__tests__/IconGroups.test.js +10 -0
- package/dist/components/IconGroups/index.d.ts +5 -0
- package/dist/components/IconGroups/index.js +18 -0
- package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +1 -0
- package/dist/components/IconListItem/__tests__/IconListItem.test.js +10 -0
- package/dist/components/IconListItem/index.d.ts +5 -0
- package/dist/components/IconListItem/index.js +18 -0
- package/dist/components/Input/Input.stories.d.ts +0 -1
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Link/__tests__/Link.test.d.ts +1 -0
- package/dist/components/Link/__tests__/Link.test.js +10 -0
- package/dist/components/Link/index.d.ts +6 -0
- package/dist/components/Link/index.js +18 -0
- package/dist/components/List/__tests__/List.test.d.ts +1 -0
- package/dist/components/List/__tests__/List.test.js +10 -0
- package/dist/components/List/index.d.ts +6 -0
- package/dist/components/List/index.js +18 -0
- package/dist/components/ListItem/__tests__/ListItem.test.d.ts +1 -0
- package/dist/components/ListItem/__tests__/ListItem.test.js +10 -0
- package/dist/components/ListItem/index.d.ts +6 -0
- package/dist/components/ListItem/index.js +18 -0
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +1 -0
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.js +10 -0
- package/dist/components/ListItemButton/index.d.ts +6 -0
- package/dist/components/ListItemButton/index.js +18 -0
- package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +1 -0
- package/dist/components/ListItemText/__tests__/ListItemText.test.js +10 -0
- package/dist/components/ListItemText/index.d.ts +6 -0
- package/dist/components/ListItemText/index.js +18 -0
- package/dist/components/ProgressIndicator/DefaultProgress.d.ts +0 -1
- package/dist/components/ProgressIndicator/MLProgress.d.ts +0 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -1
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.js +9 -1
- package/dist/components/ProgressIndicator/index.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -1
- package/dist/components/RadioButton/index.d.ts +0 -1
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +1 -0
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.js +10 -0
- package/dist/components/RadioGroup/index.d.ts +6 -0
- package/dist/components/RadioGroup/index.js +18 -0
- package/dist/components/Select/Select.stories.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +2 -2
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Select/index.js +1 -13
- package/dist/components/StatusChip/index.d.ts +0 -1
- package/dist/components/Step/__tests__/Step.test.d.ts +1 -0
- package/dist/components/Step/__tests__/Step.test.js +10 -0
- package/dist/components/Step/index.d.ts +6 -0
- package/dist/components/Step/index.js +18 -0
- package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +1 -0
- package/dist/components/StepLabel/__tests__/StepLabel.test.js +10 -0
- package/dist/components/StepLabel/index.d.ts +6 -0
- package/dist/components/StepLabel/index.js +18 -0
- package/dist/components/Stepper/index.d.ts +0 -1
- package/dist/components/Tabs/Badge.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +9 -4
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/ThemeProvider/index.d.ts +0 -1
- package/dist/components/Typography/Typography.stories.d.ts +20 -0
- package/dist/components/Typography/Typography.stories.js +21 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +10 -0
- package/dist/components/Typography/index.d.ts +6 -0
- package/dist/components/Typography/index.js +18 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +15 -0
- 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 @@
|
|
|
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 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 @@
|
|
|
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 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,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;
|
|
@@ -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
|
});
|
|
@@ -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 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,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;
|
|
@@ -8,11 +8,11 @@ const items = [
|
|
|
8
8
|
{ name: 'Three', value: 3 }
|
|
9
9
|
];
|
|
10
10
|
describe('<Select />', () => {
|
|
11
|
-
it
|
|
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
|
|
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
|
});
|
|
@@ -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: {
|
|
@@ -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,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 @@
|
|
|
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 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,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,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
|
|
5
|
+
import Tab from '../';
|
|
5
6
|
describe('<Tabs />', () => {
|
|
6
7
|
it('should render the Tabs component', () => {
|
|
7
|
-
render(
|
|
8
|
-
expect(screen.
|
|
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
|
});
|
|
@@ -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 @@
|
|
|
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 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,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';
|