aefis-core-ui 3.0.0-rc66 → 3.0.0-rc67
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/index.modern.js +64 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -19529,6 +19529,11 @@ const Tabs = ({
|
|
|
19529
19529
|
scrollButtons: "auto",
|
|
19530
19530
|
sx: _extends({
|
|
19531
19531
|
border: _buttonContainerOutlined ? theme => `1px solid ${theme.palette.divider}` : `none`,
|
|
19532
|
+
width: {
|
|
19533
|
+
xs: "100%",
|
|
19534
|
+
sm: "100%",
|
|
19535
|
+
md: "auto"
|
|
19536
|
+
},
|
|
19532
19537
|
borderRadius: _buttonContainerOutlined ? "8px" : "0"
|
|
19533
19538
|
}, tabListContainerStyle),
|
|
19534
19539
|
children: config == null ? void 0 : config.map((tab, index) => {
|
|
@@ -19611,15 +19616,18 @@ const TabPanels = /*#__PURE__*/React__default.forwardRef(({
|
|
|
19611
19616
|
const buttonAlignStyle = {
|
|
19612
19617
|
left: {
|
|
19613
19618
|
marginLeft: 0,
|
|
19614
|
-
alignItems: "center"
|
|
19619
|
+
alignItems: "center",
|
|
19620
|
+
justifyContent: "flex-start"
|
|
19615
19621
|
},
|
|
19616
19622
|
center: {
|
|
19617
19623
|
margin: "auto",
|
|
19618
|
-
alignItems: "center"
|
|
19624
|
+
alignItems: "center",
|
|
19625
|
+
justifyContent: "center"
|
|
19619
19626
|
},
|
|
19620
19627
|
right: {
|
|
19621
19628
|
marginLeft: "auto",
|
|
19622
|
-
alignItems: "center"
|
|
19629
|
+
alignItems: "center",
|
|
19630
|
+
justifyContent: "flex-end"
|
|
19623
19631
|
}
|
|
19624
19632
|
};
|
|
19625
19633
|
useImperativeHandle(ref, () => ({
|
|
@@ -19636,8 +19644,8 @@ const TabPanels = /*#__PURE__*/React__default.forwardRef(({
|
|
|
19636
19644
|
const tabContainerStyle = _extends({
|
|
19637
19645
|
width: "100%",
|
|
19638
19646
|
display: _buttonContainerOutlined2 ? "flex" : "block",
|
|
19639
|
-
pl: 2,
|
|
19640
|
-
pr: 2
|
|
19647
|
+
pl: title && _useButtons ? 0 : 2,
|
|
19648
|
+
pr: title && _useButtons ? 0 : 2
|
|
19641
19649
|
}, tabContainerStyles);
|
|
19642
19650
|
return /*#__PURE__*/jsxs(TabContext, {
|
|
19643
19651
|
value: currentTab,
|
|
@@ -19657,29 +19665,58 @@ const TabPanels = /*#__PURE__*/React__default.forwardRef(({
|
|
|
19657
19665
|
tabListContainerStyle: tabListContainerStyles
|
|
19658
19666
|
})
|
|
19659
19667
|
})
|
|
19660
|
-
}) : /*#__PURE__*/
|
|
19668
|
+
}) : /*#__PURE__*/jsx(Box$2, {
|
|
19661
19669
|
sx: tabContainerStyle,
|
|
19662
|
-
children:
|
|
19663
|
-
|
|
19664
|
-
|
|
19665
|
-
|
|
19666
|
-
|
|
19667
|
-
|
|
19668
|
-
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19681
|
-
|
|
19682
|
-
|
|
19670
|
+
children: /*#__PURE__*/jsxs(Grid$1, {
|
|
19671
|
+
container: true,
|
|
19672
|
+
direction: "row",
|
|
19673
|
+
justifyContent: "space-between",
|
|
19674
|
+
spacing: 0,
|
|
19675
|
+
children: [title && /*#__PURE__*/jsx(Grid$1, {
|
|
19676
|
+
item: true,
|
|
19677
|
+
sm: 12,
|
|
19678
|
+
md: 4,
|
|
19679
|
+
lg: 4,
|
|
19680
|
+
zeroMinWidth: true,
|
|
19681
|
+
sx: {
|
|
19682
|
+
display: "inline-flex",
|
|
19683
|
+
alignItems: "center"
|
|
19684
|
+
},
|
|
19685
|
+
children: /*#__PURE__*/jsx(TitleAndActionHeader, _extends({
|
|
19686
|
+
title: title,
|
|
19687
|
+
titleComponent: _titleComponent,
|
|
19688
|
+
subtitle: subtitle,
|
|
19689
|
+
showExport: false,
|
|
19690
|
+
gutter: false
|
|
19691
|
+
}, titleProps))
|
|
19692
|
+
}), /*#__PURE__*/jsx(Grid$1, {
|
|
19693
|
+
item: true,
|
|
19694
|
+
sm: 12,
|
|
19695
|
+
md: 8,
|
|
19696
|
+
lg: 8,
|
|
19697
|
+
sx: {
|
|
19698
|
+
display: "inline-flex",
|
|
19699
|
+
alignItems: "center",
|
|
19700
|
+
width: "100%"
|
|
19701
|
+
},
|
|
19702
|
+
zeroMinWidth: true,
|
|
19703
|
+
children: /*#__PURE__*/jsx(Box$2, {
|
|
19704
|
+
sx: _extends({
|
|
19705
|
+
display: "flex",
|
|
19706
|
+
flexWrap: "nowrap",
|
|
19707
|
+
width: "100%"
|
|
19708
|
+
}, buttonAlignStyle[title ? "right" : _buttonPosition]),
|
|
19709
|
+
children: /*#__PURE__*/jsx(Tabs, {
|
|
19710
|
+
name: _name,
|
|
19711
|
+
config: config,
|
|
19712
|
+
handleTabChange: handleTabChange,
|
|
19713
|
+
useButtons: _useButtons,
|
|
19714
|
+
buttonContainerOutlined: _buttonContainerOutlined2,
|
|
19715
|
+
tabListContainerStyle: tabListContainerStyles
|
|
19716
|
+
})
|
|
19717
|
+
})
|
|
19718
|
+
})]
|
|
19719
|
+
})
|
|
19683
19720
|
}), config == null ? void 0 : config.map((tab, index) => /*#__PURE__*/jsx(TabPanel$1, {
|
|
19684
19721
|
value: index + "",
|
|
19685
19722
|
sx: [{
|