@fixefy/fixefy-ui-components 0.3.9 → 0.3.11
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/FxTabs/FxTabs.d.ts +4 -3
- package/dist/FxTabs/FxTabs.js +7 -43
- package/package.json +1 -1
package/dist/FxTabs/FxTabs.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ export interface Tab {
|
|
|
3
3
|
value: string | number | boolean;
|
|
4
4
|
label: string;
|
|
5
5
|
show: boolean;
|
|
6
|
-
maxWidth?: number;
|
|
7
|
-
minWidth?: number;
|
|
6
|
+
maxWidth?: number | string;
|
|
7
|
+
minWidth?: number | string;
|
|
8
8
|
}
|
|
9
|
-
export declare const FxTabs: ({ tabsData, handleClickPOV }: {
|
|
9
|
+
export declare const FxTabs: ({ activeTab, tabsData, handleClickPOV, }: {
|
|
10
|
+
activeTab: string;
|
|
10
11
|
tabsData: Tab[];
|
|
11
12
|
handleClickPOV: any;
|
|
12
13
|
}) => React.JSX.Element;
|
package/dist/FxTabs/FxTabs.js
CHANGED
|
@@ -9,51 +9,15 @@ Object.defineProperty(exports, "FxTabs", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
13
|
const _material = require("@mui/material");
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var cacheNodeInterop = new WeakMap();
|
|
18
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
19
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
20
|
-
})(nodeInterop);
|
|
21
|
-
}
|
|
22
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
23
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
24
|
-
return obj;
|
|
25
|
-
}
|
|
26
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
27
|
-
return {
|
|
28
|
-
default: obj
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
32
|
-
if (cache && cache.has(obj)) {
|
|
33
|
-
return cache.get(obj);
|
|
34
|
-
}
|
|
35
|
-
var newObj = {
|
|
36
|
-
__proto__: null
|
|
14
|
+
function _interop_require_default(obj) {
|
|
15
|
+
return obj && obj.__esModule ? obj : {
|
|
16
|
+
default: obj
|
|
37
17
|
};
|
|
38
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
39
|
-
for(var key in obj){
|
|
40
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
41
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
42
|
-
if (desc && (desc.get || desc.set)) {
|
|
43
|
-
Object.defineProperty(newObj, key, desc);
|
|
44
|
-
} else {
|
|
45
|
-
newObj[key] = obj[key];
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
newObj.default = obj;
|
|
50
|
-
if (cache) {
|
|
51
|
-
cache.set(obj, newObj);
|
|
52
|
-
}
|
|
53
|
-
return newObj;
|
|
54
18
|
}
|
|
55
|
-
const FxTabs = ({ tabsData, handleClickPOV })=>{
|
|
56
|
-
const [activeTab, setActiveTab] =
|
|
19
|
+
const FxTabs = ({ activeTab, tabsData, handleClickPOV })=>{
|
|
20
|
+
// const [activeTab, setActiveTab] = useState(tabsData[0].value)
|
|
57
21
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.ToggleButtonGroup, {
|
|
58
22
|
sx: {
|
|
59
23
|
height: '40px',
|
|
@@ -65,7 +29,7 @@ const FxTabs = ({ tabsData, handleClickPOV })=>{
|
|
|
65
29
|
onChange: (e, val)=>{
|
|
66
30
|
e.preventDefault();
|
|
67
31
|
setTimeout(()=>{
|
|
68
|
-
setActiveTab(val)
|
|
32
|
+
// setActiveTab(val)
|
|
69
33
|
handleClickPOV(val);
|
|
70
34
|
}, 500);
|
|
71
35
|
},
|
package/package.json
CHANGED