@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
package/dist/assets/theme.js
CHANGED
|
@@ -256,6 +256,16 @@ theme = createTheme(theme, {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
+
}, MuiMenuItem: {
|
|
260
|
+
styleOverrides: {
|
|
261
|
+
root: {
|
|
262
|
+
color: theme.palette.text.primary,
|
|
263
|
+
padding: '10px 20px',
|
|
264
|
+
':hover, :focus': {
|
|
265
|
+
backgroundColor: theme.palette.misc.altBackground
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
259
269
|
} })
|
|
260
270
|
});
|
|
261
271
|
export default theme;
|
|
@@ -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 Box from '..';
|
|
5
|
+
describe('<Box />', () => {
|
|
6
|
+
it('should render the Box component', () => {
|
|
7
|
+
render(_jsx(Box, Object.assign({ "data-testid": "box" }, { children: "Box" })));
|
|
8
|
+
expect(screen.getByTestId('box')).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 { Box as MuiBox } from '@mui/material';
|
|
14
|
+
const Box = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(MuiBox, Object.assign({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default Box;
|
|
@@ -7,8 +7,28 @@ describe('<Button />', () => {
|
|
|
7
7
|
render(_jsx(Button, { children: "Button" }));
|
|
8
8
|
expect(screen.getByText('Button')).toBeInTheDocument();
|
|
9
9
|
});
|
|
10
|
-
it('should
|
|
10
|
+
it('should render error Button component', () => {
|
|
11
|
+
render(_jsx(Button, Object.assign({ color: "error" }, { children: "Button" })));
|
|
12
|
+
expect(screen.getByText('Button')).toBeInTheDocument();
|
|
13
|
+
});
|
|
14
|
+
it('should render loading Button component', () => {
|
|
11
15
|
render(_jsx(Button, Object.assign({ isLoading: true }, { children: "Button" })));
|
|
12
16
|
expect(screen.getByTestId('loading-indicator')).toBeInTheDocument();
|
|
13
17
|
});
|
|
18
|
+
it('should render outlined Button component', () => {
|
|
19
|
+
render(_jsx(Button, Object.assign({ variant: "outlined" }, { children: "Button" })));
|
|
20
|
+
expect(screen.getByText('Button')).toBeInTheDocument();
|
|
21
|
+
});
|
|
22
|
+
it('should render error outlined Button component', () => {
|
|
23
|
+
render(_jsx(Button, Object.assign({ variant: "outlined", color: "error" }, { children: "Button" })));
|
|
24
|
+
expect(screen.getByText('Button')).toBeInTheDocument();
|
|
25
|
+
});
|
|
26
|
+
it('should render text Button component', () => {
|
|
27
|
+
render(_jsx(Button, Object.assign({ variant: "text" }, { children: "Button" })));
|
|
28
|
+
expect(screen.getByText('Button')).toBeInTheDocument();
|
|
29
|
+
});
|
|
30
|
+
it('should render error text Button component', () => {
|
|
31
|
+
render(_jsx(Button, Object.assign({ variant: "text", color: "error" }, { children: "Button" })));
|
|
32
|
+
expect(screen.getByText('Button')).toBeInTheDocument();
|
|
33
|
+
});
|
|
14
34
|
});
|
|
@@ -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 Drawer from '..';
|
|
5
|
+
describe('<Drawer />', () => {
|
|
6
|
+
it('should render the Drawer component', () => {
|
|
7
|
+
render(_jsx(Drawer, { "data-testid": "drawer", open: true }));
|
|
8
|
+
expect(screen.getByTestId('drawer')).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 { Drawer as MuiDrawer } from '@mui/material';
|
|
14
|
+
const Drawer = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(MuiDrawer, Object.assign({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default Drawer;
|
|
@@ -79,7 +79,7 @@ describe('<FileUploader />', () => {
|
|
|
79
79
|
mockedAxios.default.mockImplementation(({
|
|
80
80
|
//@ts-ignore
|
|
81
81
|
onUploadProgress }) => {
|
|
82
|
-
onUploadProgress({ loaded:
|
|
82
|
+
onUploadProgress({ loaded: 100, total: 100 });
|
|
83
83
|
return Promise.resolve({});
|
|
84
84
|
});
|
|
85
85
|
yield act(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -87,9 +87,6 @@ describe('<FileUploader />', () => {
|
|
|
87
87
|
}));
|
|
88
88
|
yield waitFor(() => {
|
|
89
89
|
expect(screen.getAllByTestId('file-item')[0]).toBeInTheDocument();
|
|
90
|
-
expect(screen.getAllByTestId('file-progress-bar')[0]).toBeInTheDocument();
|
|
91
|
-
const progressStyles = getComputedStyle(screen.getAllByTestId('file-progress-bar')[0]);
|
|
92
|
-
expect(progressStyles.width).toBe('0%');
|
|
93
90
|
});
|
|
94
91
|
expect(onSuccess).toBeCalled();
|
|
95
92
|
}));
|
|
@@ -208,46 +205,32 @@ describe('<FileUploader />', () => {
|
|
|
208
205
|
|
|
209
206
|
expect(files).toBeCalled()
|
|
210
207
|
})
|
|
211
|
-
|
|
212
|
-
it('should delete a file on list',
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
})
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
expect(screen.getAllByTestId('file-item-size')[0]).toBeInTheDocument()
|
|
241
|
-
})
|
|
242
|
-
|
|
243
|
-
expect(files).toBeCalled()
|
|
244
|
-
|
|
245
|
-
await act(async () => {
|
|
246
|
-
fireEvent.click(screen.getAllByTestId('file-item-delete-button')[0])
|
|
247
|
-
})
|
|
248
|
-
|
|
249
|
-
await waitFor(() => {
|
|
250
|
-
expect(screen.queryAllByTestId('file-item')).toHaveLength(0)
|
|
251
|
-
})
|
|
252
|
-
}) */
|
|
208
|
+
*/
|
|
209
|
+
it('should delete a file on list', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
210
|
+
const files = jest.fn();
|
|
211
|
+
render(_jsx(FileUploader, { uploadUrl: "testing", files: files }));
|
|
212
|
+
const dropzone = screen.getByTestId('dropzone');
|
|
213
|
+
const exampleFile = new File(['file'], 'image.png', {
|
|
214
|
+
type: 'image/png'
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(dropzone, 'files', {
|
|
217
|
+
value: [exampleFile]
|
|
218
|
+
});
|
|
219
|
+
mockedAxios.default.mockImplementation(({
|
|
220
|
+
//@ts-ignore
|
|
221
|
+
onUploadProgress }) => {
|
|
222
|
+
onUploadProgress({ loaded: 0, total: 100 });
|
|
223
|
+
return Promise.resolve({});
|
|
224
|
+
});
|
|
225
|
+
yield act(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
226
|
+
fireEvent.drop(dropzone);
|
|
227
|
+
}));
|
|
228
|
+
expect(files).toBeCalled();
|
|
229
|
+
yield act(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
230
|
+
fireEvent.click(screen.getAllByTestId('file-item-delete-button')[0]);
|
|
231
|
+
}));
|
|
232
|
+
yield waitFor(() => {
|
|
233
|
+
expect(screen.queryAllByTestId('file-item')).toHaveLength(0);
|
|
234
|
+
});
|
|
235
|
+
}));
|
|
253
236
|
});
|
|
@@ -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 FormControlLabel from '..';
|
|
5
|
+
describe('<FormControlLabel />', () => {
|
|
6
|
+
it('should render the FormControlLabel component', () => {
|
|
7
|
+
render(_jsx(FormControlLabel, { "data-testid": "form-control-label", control: _jsx("div", { children: "test" }), label: "test" }));
|
|
8
|
+
expect(screen.getByTestId('form-control-label')).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormControlLabelProps as MuiFormControlLabelProps } from '@mui/material';
|
|
2
|
+
type FormControlLabelProps = {
|
|
3
|
+
'data-testid'?: string;
|
|
4
|
+
} & MuiFormControlLabelProps;
|
|
5
|
+
declare const FormControlLabel: ({ ...props }: FormControlLabelProps) => JSX.Element;
|
|
6
|
+
export default FormControlLabel;
|
|
@@ -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 { FormControlLabel as MuiFormControlLabel } from '@mui/material';
|
|
14
|
+
const FormControlLabel = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(MuiFormControlLabel, Object.assign({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default FormControlLabel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import HomeOutlinedIcon from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
}) => JSX.Element>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: ComponentStory<typeof HomeOutlinedIcon> | 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 HomeOutlinedIcon from '.';
|
|
14
|
+
export default {
|
|
15
|
+
title: 'Components/HomeOutlinedIcon',
|
|
16
|
+
component: HomeOutlinedIcon
|
|
17
|
+
};
|
|
18
|
+
export const Default = (_a) => {
|
|
19
|
+
var args = __rest(_a, []);
|
|
20
|
+
return _jsx(HomeOutlinedIcon, Object.assign({}, args));
|
|
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 HomeOutlinedIcon from '..';
|
|
5
|
+
describe('<HomeOutlinedIcon />', () => {
|
|
6
|
+
it('should render the HomeOutlinedIcon component', () => {
|
|
7
|
+
render(_jsx(HomeOutlinedIcon, { "data-testid": "home-outlined-icon" }));
|
|
8
|
+
expect(screen.getByTestId('home-outlined-icon')).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 { HomeOutlined as MuiHomeOutlinedIcon } from '@mui/icons-material';
|
|
14
|
+
const HomeOutlinedIcon = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(MuiHomeOutlinedIcon, Object.assign({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default HomeOutlinedIcon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import IconGroups from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ ...props }: {
|
|
4
|
+
'data-testid'?: string | undefined;
|
|
5
|
+
}) => JSX.Element>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: ComponentStory<typeof IconGroups> | 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 IconGroups from '.';
|
|
14
|
+
export default {
|
|
15
|
+
title: 'Components/IconGroups',
|
|
16
|
+
component: IconGroups
|
|
17
|
+
};
|
|
18
|
+
export const Default = (_a) => {
|
|
19
|
+
var args = __rest(_a, []);
|
|
20
|
+
return _jsx(IconGroups, Object.assign({}, args));
|
|
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 IconGroups from '..';
|
|
5
|
+
describe('<IconGroups />', () => {
|
|
6
|
+
it('should render the IconGroups component', () => {
|
|
7
|
+
render(_jsx(IconGroups, { "data-testid": "groups-icon" }));
|
|
8
|
+
expect(screen.getByTestId('groups-icon')).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 GroupsIcon from '@mui/icons-material/Groups';
|
|
14
|
+
const IconGroups = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(GroupsIcon, Object.assign({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default IconGroups;
|
|
@@ -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 IconListItem from '..';
|
|
5
|
+
describe('<IconListItem />', () => {
|
|
6
|
+
it('should render the IconListItem component', () => {
|
|
7
|
+
render(_jsx(IconListItem, { "data-testid": "list-item-icon" }));
|
|
8
|
+
expect(screen.getByTestId('list-item-icon')).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 ListItemIcon from '@mui/material/ListItemIcon';
|
|
14
|
+
const IconListItem = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(ListItemIcon, Object.assign({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default IconListItem;
|
|
@@ -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 Link from '..';
|
|
5
|
+
describe('<Link />', () => {
|
|
6
|
+
it('should render the Link component', () => {
|
|
7
|
+
render(_jsx(Link, { "data-testid": "link" }));
|
|
8
|
+
expect(screen.getByTestId('link')).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 { Link as MuiLink } from '@mui/material';
|
|
14
|
+
const Link = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(MuiLink, Object.assign({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default Link;
|
|
@@ -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 List from '..';
|
|
5
|
+
describe('<List />', () => {
|
|
6
|
+
it('should render the List component', () => {
|
|
7
|
+
render(_jsx(List, { "data-testid": "list" }));
|
|
8
|
+
expect(screen.getByTestId('list')).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 { List as MuiList } from '@mui/material';
|
|
14
|
+
const List = (_a) => {
|
|
15
|
+
var props = __rest(_a, []);
|
|
16
|
+
return _jsx(MuiList, Object.assign({}, props));
|
|
17
|
+
};
|
|
18
|
+
export default List;
|
|
@@ -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 ListItem from '..';
|
|
5
|
+
describe('<ListItem />', () => {
|
|
6
|
+
it('should render the ListItem component', () => {
|
|
7
|
+
render(_jsx(ListItem, { "data-testid": "list-item" }));
|
|
8
|
+
expect(screen.getByTestId('list-item')).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
});
|