pcm-shared-components 2.0.26 → 2.0.28
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
|
|
@@ -7,18 +6,16 @@ const TabPanel = props => {
|
|
|
7
6
|
const {
|
|
8
7
|
children,
|
|
9
8
|
value,
|
|
10
|
-
index
|
|
11
|
-
...other
|
|
9
|
+
index
|
|
12
10
|
} = props;
|
|
13
|
-
return /*#__PURE__*/React.createElement("div",
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
12
|
role: "tabpanel",
|
|
15
13
|
hidden: value !== index,
|
|
16
14
|
id: `scrollable-auto-tabpanel-${index}`,
|
|
17
|
-
"aria-labelledby": `scrollable-auto-tab-${index}
|
|
18
|
-
}, other, {
|
|
15
|
+
"aria-labelledby": `scrollable-auto-tab-${index}`,
|
|
19
16
|
className: "w-full h-full overflow-hidden",
|
|
20
17
|
style: {}
|
|
21
|
-
}
|
|
18
|
+
}, value === index && /*#__PURE__*/React.createElement("div", {
|
|
22
19
|
className: "w-full h-full"
|
|
23
20
|
}, children));
|
|
24
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import AppBar from '@mui/material/AppBar';
|
|
5
5
|
import Tabs from '@mui/material/Tabs';
|
|
@@ -79,10 +79,9 @@ export const SimpleTab = props => {
|
|
|
79
79
|
}, childrenTabs.map((ct, idx) => /*#__PURE__*/React.createElement(Tab, _extends({
|
|
80
80
|
classes: classes,
|
|
81
81
|
style: tabStyles,
|
|
82
|
-
label: ct.tabTitle
|
|
83
|
-
}, a11yProps(idx), {
|
|
82
|
+
label: ct.tabTitle,
|
|
84
83
|
key: `simple_tabs_${idx}`
|
|
85
|
-
})))))), childrenTabs.map((ct, idx) => /*#__PURE__*/React.createElement(TabPanel, {
|
|
84
|
+
}, a11yProps(idx))))))), childrenTabs.map((ct, idx) => /*#__PURE__*/React.createElement(TabPanel, {
|
|
86
85
|
value: selectedTabIndex,
|
|
87
86
|
index: idx,
|
|
88
87
|
key: `simple_tabs_panels_${idx}`
|