@veritone-ce/design-system 1.12.20 → 1.12.22
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 +4 -6
- package/dist/components/Input/Input.stories.d.ts +1 -1
- package/dist/components/Tabs/Tabs.stories.d.ts +4 -4
- package/dist/components/Tabs/Tabs.stories.js +28 -28
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +43 -32
- package/dist/components/Tabs/index.d.ts +7 -9
- package/dist/components/Tabs/index.js +23 -17
- package/dist/index.d.ts +5 -0
- package/dist/index.js +35 -0
- package/dist/modules.d.js +1 -0
- package/package.json +16 -17
- package/dist/react-app-env.d.js +0 -2
- package/dist/reportWebVitals.d.ts +0 -3
- package/dist/reportWebVitals.js +0 -27
package/dist/assets/theme.js
CHANGED
|
@@ -249,13 +249,11 @@ theme = (0, _material.createTheme)(theme, {
|
|
|
249
249
|
variant: `outlined`,
|
|
250
250
|
iconMapping: {
|
|
251
251
|
success: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckCircle.default, {}),
|
|
252
|
-
info: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
253
|
-
|
|
254
|
-
src: InformationIcon
|
|
252
|
+
info: /*#__PURE__*/(0, _jsxRuntime.jsx)(InformationIcon, {
|
|
253
|
+
title: 'information icon'
|
|
255
254
|
}),
|
|
256
|
-
warning: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
257
|
-
|
|
258
|
-
src: WarningIcon
|
|
255
|
+
warning: /*#__PURE__*/(0, _jsxRuntime.jsx)(WarningIcon, {
|
|
256
|
+
title: 'warning icon'
|
|
259
257
|
}),
|
|
260
258
|
error: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cancel.default, {})
|
|
261
259
|
}
|
|
@@ -2,7 +2,7 @@ import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
|
2
2
|
import Input from '.';
|
|
3
3
|
declare const _default: ComponentMeta<({ ...TextFieldProps }: {
|
|
4
4
|
'data-testid'?: string | undefined;
|
|
5
|
-
} & import("@mui/material").
|
|
5
|
+
} & (import("@mui/material").OutlinedTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").StandardTextFieldProps)) => import("react/jsx-runtime").JSX.Element>;
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const Default: ComponentStory<typeof Input> | Story;
|
|
8
8
|
export declare const Disabled: ComponentStory<typeof Input> | Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
-
import
|
|
3
|
-
declare const _default: ComponentMeta<
|
|
2
|
+
import BasicTabs from '.';
|
|
3
|
+
declare const _default: ComponentMeta<({ tabs, ...props }: import(".").BasicTabsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const OnOffState: ComponentStory<typeof
|
|
6
|
-
export declare const OnOffWithCount: Story<import("@storybook/react").Args> | ComponentStory<
|
|
5
|
+
export declare const OnOffState: ComponentStory<typeof BasicTabs> | Story;
|
|
6
|
+
export declare const OnOffWithCount: Story<import("@storybook/react").Args> | ComponentStory<({ tabs, ...props }: import(".").BasicTabsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -11,39 +11,28 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
var _default = {
|
|
13
13
|
title: 'Components/Tabs',
|
|
14
|
-
component:
|
|
14
|
+
component: _.default
|
|
15
15
|
};
|
|
16
16
|
exports.default = _default;
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
17
|
+
const tabs = [{
|
|
18
|
+
label: 'Item One',
|
|
19
|
+
'data-testid': 'tab-0'
|
|
20
|
+
}, {
|
|
21
|
+
label: 'Item Two',
|
|
22
|
+
'data-testid': 'tab-1'
|
|
23
|
+
}, {
|
|
24
|
+
label: 'Item Three',
|
|
25
|
+
'data-testid': 'tab-3'
|
|
26
|
+
}];
|
|
27
|
+
const OnOffState = () => {
|
|
29
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
30
29
|
sx: {
|
|
31
30
|
borderBottom: 1,
|
|
32
31
|
borderColor: 'divider'
|
|
33
32
|
},
|
|
34
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"aria-label": "basic tabs example",
|
|
38
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
39
|
-
label: "Item One",
|
|
40
|
-
...a11yProps(0),
|
|
41
|
-
...args
|
|
42
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
43
|
-
label: "Item Two",
|
|
44
|
-
...a11yProps(1),
|
|
45
|
-
...args
|
|
46
|
-
})]
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
34
|
+
tabs: tabs,
|
|
35
|
+
"aria-label": "basic tabs example"
|
|
47
36
|
})
|
|
48
37
|
});
|
|
49
38
|
};
|
|
@@ -51,6 +40,17 @@ exports.OnOffState = OnOffState;
|
|
|
51
40
|
const OnOffWithCount = OnOffState.bind({});
|
|
52
41
|
exports.OnOffWithCount = OnOffWithCount;
|
|
53
42
|
OnOffWithCount.args = {
|
|
54
|
-
|
|
55
|
-
|
|
43
|
+
tabs: [{
|
|
44
|
+
label: 'Item One',
|
|
45
|
+
'data-testid': 'tab-0',
|
|
46
|
+
count: 1
|
|
47
|
+
}, {
|
|
48
|
+
label: 'Item Two',
|
|
49
|
+
'data-testid': 'tab-1',
|
|
50
|
+
count: 2
|
|
51
|
+
}, {
|
|
52
|
+
label: 'Item Three',
|
|
53
|
+
'data-testid': 'tab-3',
|
|
54
|
+
count: 3
|
|
55
|
+
}]
|
|
56
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -1,42 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _helpers = require("../../../utils/tests/helpers");
|
|
4
|
-
var _material = require("@mui/material");
|
|
5
3
|
var _react = require("@testing-library/react");
|
|
6
|
-
|
|
4
|
+
require("@testing-library/jest-dom");
|
|
5
|
+
var _Tabs = _interopRequireDefault(require("../../Tabs"));
|
|
7
6
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
describe('
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
describe('BasicTabs component', () => {
|
|
9
|
+
const tabs = [{
|
|
10
|
+
label: 'Tab 1',
|
|
11
|
+
count: 5,
|
|
12
|
+
content: 'Content 1'
|
|
13
|
+
}, {
|
|
14
|
+
label: 'Tab 2',
|
|
15
|
+
count: 10,
|
|
16
|
+
content: 'Content 2'
|
|
17
|
+
}, {
|
|
18
|
+
label: 'Tab 3',
|
|
19
|
+
content: 'Content 3'
|
|
20
|
+
}];
|
|
21
|
+
it('should render the correct number of tabs', () => {
|
|
22
|
+
const {
|
|
23
|
+
getAllByRole
|
|
24
|
+
} = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tabs.default, {
|
|
25
|
+
tabs: tabs
|
|
22
26
|
}));
|
|
23
|
-
|
|
27
|
+
const tabElements = getAllByRole('tab');
|
|
28
|
+
expect(tabElements).toHaveLength(tabs.length);
|
|
24
29
|
});
|
|
25
|
-
it('should
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
label: "test",
|
|
31
|
-
count: 2,
|
|
32
|
-
value: 1
|
|
33
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
34
|
-
"data-testid": "tab",
|
|
35
|
-
label: "test",
|
|
36
|
-
count: 2,
|
|
37
|
-
value: 2
|
|
38
|
-
})]
|
|
30
|
+
it('should display correct labels and optionally counts', () => {
|
|
31
|
+
const {
|
|
32
|
+
getByText
|
|
33
|
+
} = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tabs.default, {
|
|
34
|
+
tabs: tabs
|
|
39
35
|
}));
|
|
40
|
-
|
|
36
|
+
tabs.forEach(tab => {
|
|
37
|
+
expect(getByText(tab.label)).toBeInTheDocument();
|
|
38
|
+
if (tab.count !== undefined) {
|
|
39
|
+
expect(getByText(tab.count.toString())).toBeInTheDocument();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
it('should set the correct tab as active when clicked', () => {
|
|
44
|
+
const {
|
|
45
|
+
getAllByRole
|
|
46
|
+
} = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tabs.default, {
|
|
47
|
+
tabs: tabs
|
|
48
|
+
}));
|
|
49
|
+
const tabElements = getAllByRole('tab');
|
|
50
|
+
_react.fireEvent.click(tabElements[1]);
|
|
51
|
+
expect(tabElements[1]).toHaveClass('Mui-selected');
|
|
41
52
|
});
|
|
42
53
|
});
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { TabProps } from '@mui/material';
|
|
2
|
-
export type SingleTabProps = {
|
|
2
|
+
export type SingleTabProps = TabProps & {
|
|
3
3
|
'data-testid'?: string;
|
|
4
4
|
label: string;
|
|
5
5
|
count?: number;
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
**/
|
|
13
|
-
declare const BasicTabs: ({ count, value, label, ...props }: SingleTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
content?: string;
|
|
7
|
+
};
|
|
8
|
+
export type BasicTabsProps = {
|
|
9
|
+
tabs: SingleTabProps[];
|
|
10
|
+
};
|
|
11
|
+
declare const BasicTabs: ({ tabs, ...props }: BasicTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
export default BasicTabs;
|
|
@@ -4,29 +4,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _material = require("@mui/material");
|
|
8
9
|
var _Badge = _interopRequireDefault(require("./Badge"));
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
/**
|
|
12
|
-
* - This is a wrapper around the Tab component
|
|
13
|
-
* - It adds a badge to the tab if the count is greater than 0
|
|
14
|
-
* - It also adds a11y props to the tab
|
|
15
|
-
**/
|
|
16
12
|
const BasicTabs = ({
|
|
17
|
-
|
|
18
|
-
value,
|
|
19
|
-
label,
|
|
13
|
+
tabs,
|
|
20
14
|
...props
|
|
21
15
|
}) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
const [selectedTab, setSelectedTab] = (0, _react.useState)(0);
|
|
17
|
+
const handleChange = (event, newValue) => {
|
|
18
|
+
setSelectedTab(newValue);
|
|
19
|
+
};
|
|
20
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tabs, {
|
|
22
|
+
value: selectedTab,
|
|
23
|
+
onChange: handleChange,
|
|
24
|
+
...props,
|
|
25
|
+
children: tabs.map((tab, index) => /*#__PURE__*/(0, _react.createElement)(_material.Tab, {
|
|
26
|
+
...tab,
|
|
27
|
+
key: index,
|
|
28
|
+
value: index,
|
|
29
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
|
|
30
|
+
badgeCount: tab.count ?? 0,
|
|
31
|
+
label: tab.label
|
|
32
|
+
}),
|
|
33
|
+
disableRipple: true
|
|
34
|
+
}))
|
|
35
|
+
}), tabs[selectedTab].content && tabs[selectedTab].content]
|
|
30
36
|
});
|
|
31
37
|
};
|
|
32
38
|
var _default = BasicTabs;
|
package/dist/index.d.ts
CHANGED
|
@@ -27,5 +27,10 @@ export { default as StepLabel } from './components/StepLabel';
|
|
|
27
27
|
export { default as ModelGridView } from './components/ModelGridView';
|
|
28
28
|
export { default as Breadcrumbs } from './components/Breadcrumbs';
|
|
29
29
|
export { default as CustomSlider } from './components/CustomSlider';
|
|
30
|
+
export { default as LinearProgress } from './components/LinearProgress';
|
|
31
|
+
export { default as MenuFlyout } from './components/MenuFlyout';
|
|
32
|
+
export { default as Modal } from './components/Modal';
|
|
33
|
+
export { default as StatusChip } from './components/StatusChip';
|
|
34
|
+
export { default as Toast } from './components/Toast';
|
|
30
35
|
export { default as theme } from './assets/theme';
|
|
31
36
|
export { useTheme } from '@mui/material';
|
package/dist/index.js
CHANGED
|
@@ -75,6 +75,12 @@ Object.defineProperty(exports, "Input", {
|
|
|
75
75
|
return _Input.default;
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
+
Object.defineProperty(exports, "LinearProgress", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _LinearProgress.default;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
78
84
|
Object.defineProperty(exports, "Link", {
|
|
79
85
|
enumerable: true,
|
|
80
86
|
get: function () {
|
|
@@ -105,6 +111,18 @@ Object.defineProperty(exports, "ListItemText", {
|
|
|
105
111
|
return _ListItemText.default;
|
|
106
112
|
}
|
|
107
113
|
});
|
|
114
|
+
Object.defineProperty(exports, "MenuFlyout", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _MenuFlyout.default;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "Modal", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _Modal.default;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
108
126
|
Object.defineProperty(exports, "ModelGridView", {
|
|
109
127
|
enumerable: true,
|
|
110
128
|
get: function () {
|
|
@@ -141,6 +159,12 @@ Object.defineProperty(exports, "Select", {
|
|
|
141
159
|
return _Select.default;
|
|
142
160
|
}
|
|
143
161
|
});
|
|
162
|
+
Object.defineProperty(exports, "StatusChip", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _StatusChip.default;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
144
168
|
Object.defineProperty(exports, "Step", {
|
|
145
169
|
enumerable: true,
|
|
146
170
|
get: function () {
|
|
@@ -171,6 +195,12 @@ Object.defineProperty(exports, "ThemeProvider", {
|
|
|
171
195
|
return _ThemeProvider.default;
|
|
172
196
|
}
|
|
173
197
|
});
|
|
198
|
+
Object.defineProperty(exports, "Toast", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return _Toast.default;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
174
204
|
Object.defineProperty(exports, "Typography", {
|
|
175
205
|
enumerable: true,
|
|
176
206
|
get: function () {
|
|
@@ -218,6 +248,11 @@ var _StepLabel = _interopRequireDefault(require("./components/StepLabel"));
|
|
|
218
248
|
var _ModelGridView = _interopRequireDefault(require("./components/ModelGridView"));
|
|
219
249
|
var _Breadcrumbs = _interopRequireDefault(require("./components/Breadcrumbs"));
|
|
220
250
|
var _CustomSlider = _interopRequireDefault(require("./components/CustomSlider"));
|
|
251
|
+
var _LinearProgress = _interopRequireDefault(require("./components/LinearProgress"));
|
|
252
|
+
var _MenuFlyout = _interopRequireDefault(require("./components/MenuFlyout"));
|
|
253
|
+
var _Modal = _interopRequireDefault(require("./components/Modal"));
|
|
254
|
+
var _StatusChip = _interopRequireDefault(require("./components/StatusChip"));
|
|
255
|
+
var _Toast = _interopRequireDefault(require("./components/Toast"));
|
|
221
256
|
var _theme = _interopRequireDefault(require("./assets/theme"));
|
|
222
257
|
var _material = require("@mui/material");
|
|
223
258
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veritone-ce/design-system",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "yarn storybook",
|
|
@@ -35,26 +35,11 @@
|
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@emotion/react": "^11.10.4",
|
|
39
|
-
"@emotion/styled": "^11.10.4",
|
|
40
38
|
"@fontsource/dosis": "^4.5.10",
|
|
41
39
|
"@fontsource/nunito-sans": "^4.5.10",
|
|
42
40
|
"@fontsource/roboto": "^4.5.8",
|
|
43
|
-
"@mui/icons-material": "^5.10.6",
|
|
44
|
-
"@mui/material": "^5.10.8",
|
|
45
|
-
"@testing-library/jest-dom": "^5.14.1",
|
|
46
|
-
"@testing-library/react": "^13.4.0",
|
|
47
|
-
"@testing-library/user-event": "^13.2.1",
|
|
48
|
-
"@types/jest": "^27.0.1",
|
|
49
|
-
"@types/node": "^16.7.13",
|
|
50
41
|
"axios": "^1.2.1",
|
|
51
|
-
"
|
|
52
|
-
"react": "^18.2.0",
|
|
53
|
-
"react-dom": "^18.2.0",
|
|
54
|
-
"react-dropzone": "^14.2.3",
|
|
55
|
-
"react-scripts": "5.0.1",
|
|
56
|
-
"typescript": "^4.4.2",
|
|
57
|
-
"web-vitals": "^2.1.0"
|
|
42
|
+
"react-dropzone": "^14.2.3"
|
|
58
43
|
},
|
|
59
44
|
"devDependencies": {
|
|
60
45
|
"@babel/cli": "^7.21.5",
|
|
@@ -79,6 +64,11 @@
|
|
|
79
64
|
"@storybook/react": "^6.5.13",
|
|
80
65
|
"@storybook/test-runner": "^0.9.1",
|
|
81
66
|
"@storybook/testing-library": "^0.0.13",
|
|
67
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
68
|
+
"@testing-library/react": "^13.4.0",
|
|
69
|
+
"@testing-library/user-event": "^13.2.1",
|
|
70
|
+
"@types/jest": "^27.0.1",
|
|
71
|
+
"@types/node": "^16.7.13",
|
|
82
72
|
"@types/react-dropzone": "^5.1.0",
|
|
83
73
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
84
74
|
"@typescript-eslint/parser": "^5.45.0",
|
|
@@ -90,8 +80,11 @@
|
|
|
90
80
|
"babel-plugin-named-exports-order": "^0.0.2",
|
|
91
81
|
"chromatic": "^6.10.1",
|
|
92
82
|
"cross-env": "^7.0.3",
|
|
83
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
84
|
+
"eslint": "^8.45.0",
|
|
93
85
|
"eslint-config-prettier": "^8.5.0",
|
|
94
86
|
"eslint-plugin-prettier": "^4.2.1",
|
|
87
|
+
"eslint-plugin-react": "^7.32.2",
|
|
95
88
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
96
89
|
"husky": "8.0.2",
|
|
97
90
|
"install-peers-cli": "^2.2.0",
|
|
@@ -100,10 +93,16 @@
|
|
|
100
93
|
"plop": "^3.1.1",
|
|
101
94
|
"prettier": "^2.8.0",
|
|
102
95
|
"prop-types": "^15.8.1",
|
|
96
|
+
"react-scripts": "^5.0.1",
|
|
103
97
|
"tsc-alias": "^1.8.2",
|
|
98
|
+
"typescript": "^4.4.2",
|
|
104
99
|
"webpack": "^5.74.0"
|
|
105
100
|
},
|
|
106
101
|
"peerDependencies": {
|
|
102
|
+
"@emotion/react": "^11.10.4",
|
|
103
|
+
"@emotion/styled": "^11.10.4",
|
|
104
|
+
"@mui/icons-material": "^5.10.6",
|
|
105
|
+
"@mui/material": "^5.10.8",
|
|
107
106
|
"@types/react": "^18.0.0",
|
|
108
107
|
"@types/react-dom": "^18.0.0",
|
|
109
108
|
"react": "^18.2.0",
|
package/dist/react-app-env.d.js
DELETED
package/dist/reportWebVitals.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
8
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
9
|
-
const reportWebVitals = onPerfEntry => {
|
|
10
|
-
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
11
|
-
Promise.resolve().then(() => _interopRequireWildcard(require('web-vitals'))).then(({
|
|
12
|
-
getCLS,
|
|
13
|
-
getFID,
|
|
14
|
-
getFCP,
|
|
15
|
-
getLCP,
|
|
16
|
-
getTTFB
|
|
17
|
-
}) => {
|
|
18
|
-
getCLS(onPerfEntry);
|
|
19
|
-
getFID(onPerfEntry);
|
|
20
|
-
getFCP(onPerfEntry);
|
|
21
|
-
getLCP(onPerfEntry);
|
|
22
|
-
getTTFB(onPerfEntry);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
var _default = reportWebVitals;
|
|
27
|
-
exports.default = _default;
|