cloudmr-ux 4.0.4 → 4.0.6

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,9 +1,14 @@
1
+ import type { ContainerProps } from "@mui/material/Container";
2
+ import type { SxProps, Theme } from "@mui/material/styles";
1
3
  import { TabInfo } from "./tab.model";
2
4
  interface CmrTabsProps {
3
5
  tabList: TabInfo[];
4
6
  onTabSelected?: (tabId: number) => void;
5
7
  tabIndicatorColor?: string;
6
8
  tabSelectedTextColor?: string;
9
+ containerMaxWidth?: ContainerProps["maxWidth"];
10
+ containerDisableGutters?: boolean;
11
+ containerSx?: SxProps<Theme>;
7
12
  }
8
13
  export default function CmrTabs(props: CmrTabsProps): import("react/jsx-runtime").JSX.Element;
9
14
  export {};
@@ -38,8 +38,8 @@ function a11yProps(index) {
38
38
  };
39
39
  }
40
40
  export default function CmrTabs(props) {
41
- var _a, _b;
42
- var _c = React.useState(0), value = _c[0], setValue = _c[1];
41
+ var _a, _b, _c, _d, _e;
42
+ var _f = React.useState(0), value = _f[0], setValue = _f[1];
43
43
  var tabIndicatorColor = (_a = props.tabIndicatorColor) !== null && _a !== void 0 ? _a : "#580F8B";
44
44
  var tabSelectedTextColor = (_b = props.tabSelectedTextColor) !== null && _b !== void 0 ? _b : "#580F8B";
45
45
  var handleChange = function (event, newValue) {
@@ -48,12 +48,15 @@ export default function CmrTabs(props) {
48
48
  props.onTabSelected(newValue);
49
49
  };
50
50
  // console.log(props.tabList);
51
- return (_jsxs(Container, __assign({ maxWidth: "lg", sx: {
52
- flex: 1,
53
- display: 'flex',
54
- flexDirection: 'column',
55
- mt: 4
56
- } }, { children: [_jsx(Box, __assign({ sx: { borderBottom: 1, borderColor: 'divider', mb: 4 } }, { children: _jsx(Tabs, __assign({ value: value, onChange: handleChange, "aria-label": "basic tabs example", textColor: 'inherit', TabIndicatorProps: {
51
+ return (
52
+ // <Container maxWidth="lg"
53
+ // sx={{
54
+ // flex: 1,
55
+ // display: 'flex',
56
+ // flexDirection: 'column',
57
+ // mt: 4
58
+ // }}>
59
+ _jsxs(Container, __assign({ maxWidth: (_c = props.containerMaxWidth) !== null && _c !== void 0 ? _c : "lg", disableGutters: (_d = props.containerDisableGutters) !== null && _d !== void 0 ? _d : false, sx: __assign({ flex: 1, display: "flex", flexDirection: "column", mt: 4 }, ((_e = props.containerSx) !== null && _e !== void 0 ? _e : {})) }, { children: [_jsx(Box, __assign({ sx: { borderBottom: 1, borderColor: 'divider', mb: 4 } }, { children: _jsx(Tabs, __assign({ value: value, onChange: handleChange, "aria-label": "basic tabs example", textColor: 'inherit', TabIndicatorProps: {
57
60
  style: {
58
61
  backgroundColor: tabIndicatorColor
59
62
  }
@@ -1,5 +1,9 @@
1
- .cmr-footer{
2
- position: absolute;
3
- bottom: 0;
1
+ // .cmr-footer{
2
+ // position: absolute;
3
+ // bottom: 0;
4
+ // width: 100%;
5
+ // }
6
+ .cmr-footer {
7
+ position: static;
4
8
  width: 100%;
5
- }
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",