aefis-core-ui 2.4.0-rc14 → 2.4.0-rc15

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.
@@ -15800,18 +15800,23 @@ BusinessObject.defaultProps = {
15800
15800
  };
15801
15801
 
15802
15802
  // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
15803
- const CardSectionTitle$1 = props => {
15803
+ const CardSectionTitle$1 = ({
15804
+ titleComponent: _titleComponent = "div",
15805
+ title,
15806
+ dense: _dense = false
15807
+ }) => {
15804
15808
  const titleStyle = {
15805
15809
  fontSize: 12,
15806
15810
  fontWeight: "bolder",
15807
- textTransform: "uppercase"
15811
+ textTransform: "uppercase",
15812
+ pb: _dense ? 0 : "4px"
15808
15813
  };
15809
15814
  return /*#__PURE__*/jsx(Typography, {
15810
15815
  gutterBottom: true,
15811
15816
  variant: "h3",
15812
- component: props.titleComponent,
15817
+ component: _titleComponent,
15813
15818
  sx: titleStyle,
15814
- children: props.title
15819
+ children: title
15815
15820
  });
15816
15821
  };
15817
15822
  CardSectionTitle$1.defaultProps = {
@@ -15819,16 +15824,18 @@ CardSectionTitle$1.defaultProps = {
15819
15824
  };
15820
15825
  CardSectionTitle$1.propTypes = {
15821
15826
  titleComponent: PropTypes.oneOf(["h1", "h2", "h3", "h4", "h5", "div", "p", "span"]),
15822
- title: PropTypes.string
15827
+ title: PropTypes.string,
15828
+ dense: PropTypes.bool
15823
15829
  };
15824
15830
 
15825
- const _excluded$m = ["title", "children", "height", "titleComponent"];
15831
+ const _excluded$m = ["title", "children", "height", "titleComponent", "titleDense"];
15826
15832
  const CardSection$1 = _ref => {
15827
15833
  let {
15828
15834
  title,
15829
15835
  children,
15830
15836
  height,
15831
- titleComponent
15837
+ titleComponent = "div",
15838
+ titleDense = false
15832
15839
  } = _ref,
15833
15840
  props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
15834
15841
  return /*#__PURE__*/jsxs(Box$2, _extends({
@@ -15838,19 +15845,18 @@ const CardSection$1 = _ref => {
15838
15845
  }, props, {
15839
15846
  children: [title && /*#__PURE__*/jsx(CardSectionTitle$1, {
15840
15847
  title: title,
15841
- titleComponent: titleComponent
15848
+ titleComponent: titleComponent,
15849
+ dense: titleDense
15842
15850
  }), children]
15843
15851
  }));
15844
15852
  };
15845
- CardSection$1.defaultProps = {
15846
- titleComponent: "div"
15847
- };
15848
15853
  CardSection$1.propTypes = {
15849
15854
  children: PropTypes.any,
15850
15855
  compact: PropTypes.bool,
15851
15856
  height: PropTypes.any,
15852
15857
  title: PropTypes.string,
15853
- titleComponent: PropTypes.oneOf(["h1", "h2", "h3", "h4", "h5", "div", "p", "span"])
15858
+ titleComponent: PropTypes.oneOf(["h1", "h2", "h3", "h4", "h5", "div", "p", "span"]),
15859
+ titleDense: PropTypes.bool
15854
15860
  };
15855
15861
 
15856
15862
  // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
@@ -16895,39 +16901,43 @@ ListItemGroup.propTypes = {
16895
16901
  containerComponent: PropTypes.string
16896
16902
  };
16897
16903
 
16898
- // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
16899
- const SectionTitle = props => {
16904
+ // Copyright (c) 2023 HelioCampus Inc., all rights reserved.
16905
+ const SectionTitle = ({
16906
+ title,
16907
+ component: _component = "h3",
16908
+ dense
16909
+ }) => {
16900
16910
  const titleStyle = {
16901
16911
  fontSize: "0.875rem",
16902
16912
  fontWeight: "bolder",
16903
- textTransform: "uppercase"
16913
+ textTransform: "uppercase",
16914
+ pb: dense ? 0 : 1
16904
16915
  };
16905
16916
  return /*#__PURE__*/jsx(Typography, {
16906
16917
  gutterBottom: true,
16907
16918
  variant: "h3",
16908
- component: props.component,
16919
+ component: _component,
16909
16920
  sx: titleStyle,
16910
- children: props.title
16921
+ children: title
16911
16922
  });
16912
16923
  };
16913
- SectionTitle.defaultProps = {
16914
- component: "h3"
16915
- };
16916
16924
  SectionTitle.propTypes = {
16917
16925
  title: PropTypes.string,
16918
- component: PropTypes.string
16926
+ component: PropTypes.string,
16927
+ dense: PropTypes.bool
16919
16928
  };
16920
16929
 
16921
- const _excluded$k = ["title", "subtitle", "children", "display", "format", "renderList", "titleComponent"];
16930
+ const _excluded$k = ["title", "subtitle", "children", "display", "format", "renderList", "titleComponent", "titleDense"];
16922
16931
  const Section = _ref => {
16923
16932
  let {
16924
16933
  title,
16925
16934
  subtitle,
16926
16935
  children,
16927
- display,
16928
- format,
16929
- renderList,
16930
- titleComponent
16936
+ display = "default",
16937
+ format = "default",
16938
+ renderList = true,
16939
+ titleComponent = "h3",
16940
+ titleDense = false
16931
16941
  } = _ref,
16932
16942
  props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
16933
16943
  const containerStyle = {
@@ -16947,7 +16957,8 @@ const Section = _ref => {
16947
16957
  children: [display === "default" && /*#__PURE__*/jsxs(Fragment, {
16948
16958
  children: [title && /*#__PURE__*/jsx(SectionTitle, {
16949
16959
  title: title,
16950
- component: titleComponent
16960
+ component: titleComponent,
16961
+ dense: titleDense
16951
16962
  }), children]
16952
16963
  }), display === "list" && /*#__PURE__*/jsx(ListItemGroup, {
16953
16964
  title: title,
@@ -16972,12 +16983,6 @@ const Section = _ref => {
16972
16983
  })]
16973
16984
  }));
16974
16985
  };
16975
- Section.defaultProps = {
16976
- format: "default",
16977
- display: "default",
16978
- renderList: true,
16979
- titleComponent: "h3"
16980
- };
16981
16986
  Section.propTypes = {
16982
16987
  children: PropTypes.any,
16983
16988
  title: PropTypes.string,
@@ -16985,7 +16990,8 @@ Section.propTypes = {
16985
16990
  format: PropTypes.oneOf(["default", "noFormat"]),
16986
16991
  display: PropTypes.oneOf(["default", "list"]),
16987
16992
  renderList: PropTypes.bool,
16988
- titleComponent: PropTypes.string
16993
+ titleComponent: PropTypes.string,
16994
+ titleDense: PropTypes.bool
16989
16995
  };
16990
16996
 
16991
16997
  // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
@@ -17029,6 +17035,7 @@ const Header$1 = props => {
17029
17035
  avatar: props.avatarIcon || props.avatarIconName ? props.avatarIcon : props.avatarIcon ? /*#__PURE__*/jsx(Icon$1, {
17030
17036
  name: props.avatarIconName
17031
17037
  }) : undefined,
17038
+ avatarShadow: true,
17032
17039
  formatContent: false,
17033
17040
  size: "medium"
17034
17041
  })