aefis-core-ui 2.1.20 → 2.1.21

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.
@@ -5286,7 +5286,8 @@ const useStyles$y = makeStyles(theme => ({
5286
5286
  root: {
5287
5287
  margin: 0,
5288
5288
  padding: theme.spacing(2),
5289
- position: "relative"
5289
+ position: "relative",
5290
+ minHeight: 60
5290
5291
  },
5291
5292
  closeButton: {
5292
5293
  position: "absolute",
@@ -14632,36 +14633,7 @@ Header.propTypes = {
14632
14633
  allStepsCompleted: PropTypes.bool
14633
14634
  };
14634
14635
 
14635
- // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
14636
14636
  const useStyles$5 = makeStyles(theme => ({
14637
- container: {
14638
- position: "absolute",
14639
- overflowY: "auto",
14640
- left: 0,
14641
- right: 0,
14642
- bottom: 64,
14643
- top: 178
14644
- },
14645
- tabBar: {
14646
- borderBottom: "1px solid rgba(0, 0, 0, 0.12)",
14647
- zIndex: 1,
14648
- background: "#ffffff",
14649
- padding: theme.spacing(2)
14650
- },
14651
- scrolledTabBar: {
14652
- zIndex: 1,
14653
- borderBottom: "none",
14654
- background: "#ffffff",
14655
- padding: theme.spacing(2),
14656
- boxShadow: "0px 2px 4px -4px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px -10px rgba(0,0,0,0.12)"
14657
- },
14658
- bottomBar: {
14659
- borderTop: "1px solid rgba(0, 0, 0, 0.12)"
14660
- },
14661
- scrolledBottomBar: {
14662
- borderTop: "none",
14663
- boxShadow: "0px -4px 8px -4px rgba(0,0,0,0.12)"
14664
- },
14665
14637
  buttonContainer: {
14666
14638
  marginLeft: "auto",
14667
14639
  display: "flex"
@@ -14674,7 +14646,7 @@ const useStyles$5 = makeStyles(theme => ({
14674
14646
  marginRight: 8
14675
14647
  }
14676
14648
  }));
14677
- const bottomBarStyle = {
14649
+ const bottomBarDefaultStyle = {
14678
14650
  background: "#ffffff",
14679
14651
  display: "flex",
14680
14652
  minHeight: 64,
@@ -14690,7 +14662,7 @@ const bottomBarStyle = {
14690
14662
  right: 0
14691
14663
  };
14692
14664
 
14693
- /** Component to display a "stepper" wizard panel for multiple step proceses with swipeable tabs. Designed to be display within a Drawer component. */
14665
+ /** Component to display a "stepper" wizard panel for multiple step processes with swipeable tabs. Designed to be display within a Drawer component. */
14694
14666
 
14695
14667
  const WizardPanel = props => {
14696
14668
  var _props$panels;
@@ -14722,9 +14694,34 @@ const WizardPanel = props => {
14722
14694
  props.onComplete && props.onComplete();
14723
14695
  };
14724
14696
  const theme = useTheme$1();
14697
+ const stepsContainer = {
14698
+ position: "absolute",
14699
+ overflowY: "auto",
14700
+ left: 0,
14701
+ right: 0,
14702
+ bottom: 64,
14703
+ top: 178
14704
+ };
14725
14705
  const containerStyle = {
14726
14706
  backgroundColor: props.cardContent ? "rgb(239, 242, 246)" : "rgb(255,255,255)"
14727
14707
  };
14708
+ const tabBarStyle = {
14709
+ borderBottom: "1px solid rgba(0, 0, 0, 0.12)",
14710
+ zIndex: 1,
14711
+ background: "#ffffff",
14712
+ padding: props.display === "drawer" ? 2 : "0px 0px 16px 0px"
14713
+ };
14714
+ const scrolledTabBarStyle = {
14715
+ zIndex: 1,
14716
+ borderBottom: "none",
14717
+ background: "#ffffff",
14718
+ padding: props.display === "drawer" ? 2 : "0px 0px 16px 0px",
14719
+ boxShadow: "0px 2px 4px -4px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px -10px rgba(0,0,0,0.12)"
14720
+ };
14721
+ const bottomBarStyle = _extends({}, bottomBarDefaultStyle, {
14722
+ borderTop: "none",
14723
+ boxShadow: props.display === "drawer" ? "0px -4px 8px -4px rgba(0,0,0,0.12)" : "none"
14724
+ });
14728
14725
  useEffect(() => {
14729
14726
  var _containerRef$current;
14730
14727
  (_containerRef$current = containerRef.current) == null ? void 0 : _containerRef$current.scrollTo == null ? void 0 : _containerRef$current.scrollTo({
@@ -14738,9 +14735,9 @@ const WizardPanel = props => {
14738
14735
  }, [props.completed]);
14739
14736
  return /*#__PURE__*/jsxs(Fragment, {
14740
14737
  children: [/*#__PURE__*/jsx(AppBar$1, {
14741
- position: "sticky",
14738
+ position: props.display === "drawer" ? "sticky" : "relative",
14742
14739
  component: "div",
14743
- className: scrollTrigger ? classes.scrolledTabBar : classes.tabBar,
14740
+ sx: scrollTrigger ? scrolledTabBarStyle : tabBarStyle,
14744
14741
  elevation: 0,
14745
14742
  color: "default",
14746
14743
  children: /*#__PURE__*/jsx(Header, {
@@ -14751,7 +14748,7 @@ const WizardPanel = props => {
14751
14748
  }), /*#__PURE__*/jsx(Box$1, {
14752
14749
  ref: containerRef,
14753
14750
  sx: containerStyle,
14754
- className: classes.container,
14751
+ style: props.display === "drawer" ? stepsContainer : undefined,
14755
14752
  children: /*#__PURE__*/jsx(SwipeableViews, {
14756
14753
  axis: theme.direction === "rtl" ? "x-reverse" : "x",
14757
14754
  index: activeStep,
@@ -14768,7 +14765,6 @@ const WizardPanel = props => {
14768
14765
  })
14769
14766
  }), /*#__PURE__*/jsx(Box$1, {
14770
14767
  style: bottomBarStyle,
14771
- className: classes.scrolledBottomBar,
14772
14768
  children: /*#__PURE__*/jsxs(Box$1, {
14773
14769
  className: classes.buttonContainer,
14774
14770
  children: [/*#__PURE__*/jsx(Button, {
@@ -14829,9 +14825,12 @@ WizardPanel.defaultProps = {
14829
14825
  completed: false,
14830
14826
  completeButtonText: "Finish",
14831
14827
  disableComplete: false,
14832
- completing: false
14828
+ completing: false,
14829
+ display: "drawer"
14833
14830
  };
14834
14831
  WizardPanel.propTypes = {
14832
+ /** Where to display the panel, a dialog or drawer. */
14833
+ display: PropTypes.oneOf(["drawer"], ["dialog"]),
14835
14834
  /** The data defining the wizard steps and content. */
14836
14835
  panels: PropTypes.arrayOf(PropTypes.shape({
14837
14836
  id: PropTypes.any.isRequired,