ab-ui-library 1.5.5 → 1.5.7

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.
@@ -18,6 +18,7 @@ import { IconDismiss } from '../SVGIcons/IconDismiss.js';
18
18
  import { Heading } from '../Heading/Heading.js';
19
19
  import { ButtonIcon } from '../ButtonIcon/ButtonIcon.js';
20
20
  import { Tab } from '../Tab/Tab.js';
21
+ import { Divider } from '../Divider/Divider.js';
21
22
  import '../../typeof-a9012852.js';
22
23
  import 'dayjs';
23
24
  import '../../consts/index.js';
@@ -69,6 +70,8 @@ var SideSheet = function SideSheet(props) {
69
70
  closeOnOutsideClick = _props$closeOnOutside === void 0 ? true : _props$closeOnOutside,
70
71
  checkboxInfo = props.checkboxInfo,
71
72
  headerContent = props.headerContent,
73
+ _props$isWithDivider = props.isWithDivider,
74
+ isWithDivider = _props$isWithDivider === void 0 ? false : _props$isWithDivider,
72
75
  _props$isPositioned = props.isPositioned,
73
76
  isPositioned = _props$isPositioned === void 0 ? false : _props$isPositioned,
74
77
  _props$isBodyHidden = props.isBodyHidden,
@@ -191,7 +194,9 @@ var SideSheet = function SideSheet(props) {
191
194
  size: 'small'
192
195
  }, tabItemsProps, {
193
196
  className: 'side-sheet__tabs'
194
- })) : null), /*#__PURE__*/React.createElement("div", {
197
+ })) : null, isWithDivider && /*#__PURE__*/React.createElement(Divider, {
198
+ isHorizontal: true
199
+ })), /*#__PURE__*/React.createElement("div", {
195
200
  className: "side-sheet__content scrollbar scrollbar--vertical",
196
201
  ref: scrollbarContainerRef
197
202
  }, children), footerButtons ? /*#__PURE__*/React.createElement(Footer, {
@@ -44,3 +44,4 @@ import '../Tab/TabItem.js';
44
44
  import '../Badge/Badge.js';
45
45
  import '../Badge/consts.js';
46
46
  import '../Tab/consts.js';
47
+ import '../Divider/Divider.js';
@@ -33,5 +33,6 @@ export interface TSideSheetPropTypes {
33
33
  headerContent?: ReactNode;
34
34
  isPositioned?: boolean;
35
35
  isBodyHidden?: boolean;
36
+ isWithDivider?: boolean;
36
37
  withOverlay?: boolean;
37
38
  }
@@ -37,7 +37,7 @@ var TabItem = function TabItem(props) {
37
37
  as: 'span',
38
38
  weight: 'semibold',
39
39
  className: 'tab__label',
40
- "data-id": dataId,
40
+ dataId: dataId,
41
41
  lineHeight: 'xsmall',
42
42
  size: TEXT_SIZE_MAPPING[size]
43
43
  }, label), rightIconProps !== null && rightIconProps !== void 0 && rightIconProps.Component ? /*#__PURE__*/React.createElement(rightIconProps.Component, _extends({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ab-ui-library",
3
- "version": "1.5.5",
3
+ "version": "1.5.7",
4
4
  "description": "UI library for AM",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -10,6 +10,12 @@ declare const _default: {
10
10
  type: string;
11
11
  };
12
12
  };
13
+ isWithDivider: {
14
+ options: boolean[];
15
+ control: {
16
+ type: string;
17
+ };
18
+ };
13
19
  };
14
20
  };
15
21
  export default _default;