@veritone-ce/design-system 1.12.60 → 1.12.62
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/cjs/components/Panel/index.js +34 -10
- package/dist/cjs/components/Select/index.js +1 -1
- package/dist/cjs/index.js +7 -1
- package/dist/esm/components/Panel/index.js +32 -10
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/components/Panel/index.d.ts +7 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
+
exports.PanelContent = PanelContent;
|
|
7
8
|
exports["default"] = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
10
|
var _material = require("@mui/material");
|
|
9
11
|
var _iconsMaterial = require("@mui/icons-material");
|
|
10
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
14
|
var Panel = function Panel(props) {
|
|
12
15
|
var _useTheme = (0, _material.useTheme)(),
|
|
13
16
|
palette = _useTheme.palette;
|
|
@@ -33,10 +36,10 @@ var Panel = function Panel(props) {
|
|
|
33
36
|
background: palette.common.white,
|
|
34
37
|
width: props.size === 'medium' ? '560px' : props.size === 'small' ? '380px' : '720px',
|
|
35
38
|
height: '100%',
|
|
36
|
-
display: '
|
|
37
|
-
|
|
39
|
+
display: 'grid',
|
|
40
|
+
gridTemplateRows: 'min-content 1fr',
|
|
38
41
|
boxShadow: "0 4px 10px ".concat(palette.text.primary, "80"),
|
|
39
|
-
overflow: '
|
|
42
|
+
overflow: 'hidden',
|
|
40
43
|
borderBottom: "5px solid ".concat(palette.secondary.main),
|
|
41
44
|
zIndex: 2
|
|
42
45
|
},
|
|
@@ -50,8 +53,6 @@ var Panel = function Panel(props) {
|
|
|
50
53
|
display: 'flex',
|
|
51
54
|
alignItems: 'center',
|
|
52
55
|
justifyContent: 'space-between',
|
|
53
|
-
position: 'sticky',
|
|
54
|
-
top: 0,
|
|
55
56
|
zIndex: 1000
|
|
56
57
|
},
|
|
57
58
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
@@ -92,10 +93,6 @@ var Panel = function Panel(props) {
|
|
|
92
93
|
component: "div",
|
|
93
94
|
"data-testid": "panel-content",
|
|
94
95
|
sx: {
|
|
95
|
-
display: 'flex',
|
|
96
|
-
flexDirection: 'column',
|
|
97
|
-
flex: 1,
|
|
98
|
-
padding: '30px',
|
|
99
96
|
overflow: 'auto'
|
|
100
97
|
},
|
|
101
98
|
children: props.children
|
|
@@ -104,4 +101,31 @@ var Panel = function Panel(props) {
|
|
|
104
101
|
});
|
|
105
102
|
};
|
|
106
103
|
var _default = Panel;
|
|
107
|
-
exports["default"] = _default;
|
|
104
|
+
exports["default"] = _default;
|
|
105
|
+
function PanelContent(props) {
|
|
106
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
107
|
+
sx: {
|
|
108
|
+
height: '100%',
|
|
109
|
+
display: 'grid',
|
|
110
|
+
gridTemplateRows: '1fr min-content',
|
|
111
|
+
overflowY: 'hidden',
|
|
112
|
+
paddingBottom: '30px'
|
|
113
|
+
},
|
|
114
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
115
|
+
sx: {
|
|
116
|
+
overflowY: 'auto',
|
|
117
|
+
paddingTop: '30px',
|
|
118
|
+
paddingLeft: '30px',
|
|
119
|
+
paddingRight: '30px'
|
|
120
|
+
},
|
|
121
|
+
children: props.content
|
|
122
|
+
}), props.actions && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
123
|
+
sx: {
|
|
124
|
+
marginTop: '30px',
|
|
125
|
+
paddingLeft: '30px',
|
|
126
|
+
paddingRight: '30px'
|
|
127
|
+
},
|
|
128
|
+
children: props.actions
|
|
129
|
+
})]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
@@ -18,7 +18,7 @@ function Select(props) {
|
|
|
18
18
|
maxHeight: props.helperText ? '77px' : '56px'
|
|
19
19
|
},
|
|
20
20
|
className: props.className,
|
|
21
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.InputLabel, {
|
|
21
|
+
children: [props.label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.InputLabel, {
|
|
22
22
|
sx: {
|
|
23
23
|
display: 'flex',
|
|
24
24
|
alignItems: 'flex-end',
|
package/dist/cjs/index.js
CHANGED
|
@@ -160,6 +160,12 @@ Object.defineProperty(exports, "Panel", {
|
|
|
160
160
|
return _index20["default"];
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
|
+
Object.defineProperty(exports, "PanelContent", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function get() {
|
|
166
|
+
return _index20.PanelContent;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
163
169
|
Object.defineProperty(exports, "ProgressIndicator", {
|
|
164
170
|
enumerable: true,
|
|
165
171
|
get: function get() {
|
|
@@ -354,7 +360,7 @@ var _index16 = _interopRequireDefault(require("./components/ListItemButton/index
|
|
|
354
360
|
var _index17 = _interopRequireDefault(require("./components/ListItemText/index.js"));
|
|
355
361
|
var _index18 = _interopRequireDefault(require("./components/MenuFlyout/index.js"));
|
|
356
362
|
var _index19 = _interopRequireDefault(require("./components/Modal/index.js"));
|
|
357
|
-
var _index20 =
|
|
363
|
+
var _index20 = _interopRequireWildcard(require("./components/Panel/index.js"));
|
|
358
364
|
var _index21 = _interopRequireDefault(require("./components/ProgressIndicator/index.js"));
|
|
359
365
|
var _index22 = _interopRequireDefault(require("./components/RadioButton/index.js"));
|
|
360
366
|
var _index23 = _interopRequireDefault(require("./components/RadioGroup/index.js"));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import React from 'react';
|
|
3
4
|
import { Box, Typography, useTheme } from '@mui/material';
|
|
4
5
|
import { Close as CloseIcon } from '@mui/icons-material';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -29,10 +30,10 @@ var Panel = function Panel(props) {
|
|
|
29
30
|
background: palette.common.white,
|
|
30
31
|
width: props.size === 'medium' ? '560px' : props.size === 'small' ? '380px' : '720px',
|
|
31
32
|
height: '100%',
|
|
32
|
-
display: '
|
|
33
|
-
|
|
33
|
+
display: 'grid',
|
|
34
|
+
gridTemplateRows: 'min-content 1fr',
|
|
34
35
|
boxShadow: "0 4px 10px ".concat(palette.text.primary, "80"),
|
|
35
|
-
overflow: '
|
|
36
|
+
overflow: 'hidden',
|
|
36
37
|
borderBottom: "5px solid ".concat(palette.secondary.main),
|
|
37
38
|
zIndex: 2
|
|
38
39
|
},
|
|
@@ -46,8 +47,6 @@ var Panel = function Panel(props) {
|
|
|
46
47
|
display: 'flex',
|
|
47
48
|
alignItems: 'center',
|
|
48
49
|
justifyContent: 'space-between',
|
|
49
|
-
position: 'sticky',
|
|
50
|
-
top: 0,
|
|
51
50
|
zIndex: 1000
|
|
52
51
|
},
|
|
53
52
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
@@ -88,10 +87,6 @@ var Panel = function Panel(props) {
|
|
|
88
87
|
component: "div",
|
|
89
88
|
"data-testid": "panel-content",
|
|
90
89
|
sx: {
|
|
91
|
-
display: 'flex',
|
|
92
|
-
flexDirection: 'column',
|
|
93
|
-
flex: 1,
|
|
94
|
-
padding: '30px',
|
|
95
90
|
overflow: 'auto'
|
|
96
91
|
},
|
|
97
92
|
children: props.children
|
|
@@ -99,4 +94,31 @@ var Panel = function Panel(props) {
|
|
|
99
94
|
})
|
|
100
95
|
});
|
|
101
96
|
};
|
|
102
|
-
export default Panel;
|
|
97
|
+
export default Panel;
|
|
98
|
+
export function PanelContent(props) {
|
|
99
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
100
|
+
sx: {
|
|
101
|
+
height: '100%',
|
|
102
|
+
display: 'grid',
|
|
103
|
+
gridTemplateRows: '1fr min-content',
|
|
104
|
+
overflowY: 'hidden',
|
|
105
|
+
paddingBottom: '30px'
|
|
106
|
+
},
|
|
107
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
108
|
+
sx: {
|
|
109
|
+
overflowY: 'auto',
|
|
110
|
+
paddingTop: '30px',
|
|
111
|
+
paddingLeft: '30px',
|
|
112
|
+
paddingRight: '30px'
|
|
113
|
+
},
|
|
114
|
+
children: props.content
|
|
115
|
+
}), props.actions && /*#__PURE__*/_jsx(Box, {
|
|
116
|
+
sx: {
|
|
117
|
+
marginTop: '30px',
|
|
118
|
+
paddingLeft: '30px',
|
|
119
|
+
paddingRight: '30px'
|
|
120
|
+
},
|
|
121
|
+
children: props.actions
|
|
122
|
+
})]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
@@ -10,7 +10,7 @@ function Select(props) {
|
|
|
10
10
|
maxHeight: props.helperText ? '77px' : '56px'
|
|
11
11
|
},
|
|
12
12
|
className: props.className,
|
|
13
|
-
children: [/*#__PURE__*/_jsx(InputLabel, {
|
|
13
|
+
children: [props.label && /*#__PURE__*/_jsx(InputLabel, {
|
|
14
14
|
sx: {
|
|
15
15
|
display: 'flex',
|
|
16
16
|
alignItems: 'flex-end',
|
package/dist/esm/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { default as ListItemButton } from './components/ListItemButton/index.js'
|
|
|
20
20
|
export { default as ListItemText } from './components/ListItemText/index.js';
|
|
21
21
|
export { default as MenuFlyout } from './components/MenuFlyout/index.js';
|
|
22
22
|
export { default as Modal } from './components/Modal/index.js';
|
|
23
|
-
export { default as Panel } from './components/Panel/index.js';
|
|
23
|
+
export { default as Panel, PanelContent } from './components/Panel/index.js';
|
|
24
24
|
export { default as ProgressIndicator } from './components/ProgressIndicator/index.js';
|
|
25
25
|
export { default as RadioButton } from './components/RadioButton/index.js';
|
|
26
26
|
export { default as RadioGroup } from './components/RadioGroup/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export type PanelProps = {
|
|
3
3
|
'data-testid'?: string;
|
|
4
4
|
title: string;
|
|
@@ -8,5 +8,10 @@ export type PanelProps = {
|
|
|
8
8
|
onClose?(): void;
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
|
-
declare const Panel: (props: PanelProps) =>
|
|
11
|
+
declare const Panel: (props: PanelProps) => React.JSX.Element;
|
|
12
12
|
export default Panel;
|
|
13
|
+
export type PanelContentProps = {
|
|
14
|
+
content: React.ReactNode;
|
|
15
|
+
actions?: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export declare function PanelContent(props: PanelContentProps): React.JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -38,8 +38,8 @@ export { default as MenuFlyout } from './components/MenuFlyout/index.js';
|
|
|
38
38
|
export type { MenuFlyoutProps } from './components/MenuFlyout/index.js';
|
|
39
39
|
export { default as Modal } from './components/Modal/index.js';
|
|
40
40
|
export type { ModalProps } from './components/Modal/index.js';
|
|
41
|
-
export { default as Panel } from './components/Panel/index.js';
|
|
42
|
-
export type { PanelProps } from './components/Panel/index.js';
|
|
41
|
+
export { default as Panel, PanelContent } from './components/Panel/index.js';
|
|
42
|
+
export type { PanelProps, PanelContentProps } from './components/Panel/index.js';
|
|
43
43
|
export { default as ProgressIndicator } from './components/ProgressIndicator/index.js';
|
|
44
44
|
export type { ProgressIndicatorProps } from './components/ProgressIndicator/index.js';
|
|
45
45
|
export { default as RadioButton } from './components/RadioButton/index.js';
|