ab-ui-library 1.4.2 → 1.4.3
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,15 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Text } from '../Text/Text.js';
|
|
3
3
|
import { Divider } from '../Divider/Divider.js';
|
|
4
|
-
import 'classnames';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
5
|
import '../../utils/helpers.js';
|
|
6
6
|
import 'dayjs';
|
|
7
7
|
|
|
8
8
|
var Block = function Block(props) {
|
|
9
9
|
var children = props.children,
|
|
10
|
-
label = props.label
|
|
10
|
+
label = props.label,
|
|
11
|
+
_props$className = props.className,
|
|
12
|
+
className = _props$className === void 0 ? '' : _props$className;
|
|
11
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
className:
|
|
14
|
+
className: classNames('navigation-block', className)
|
|
13
15
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14
16
|
className: "navigation-block__label"
|
|
15
17
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
|
|
@@ -53,7 +53,9 @@ var NavigationItem = function NavigationItem(props) {
|
|
|
53
53
|
size: 'medium'
|
|
54
54
|
} : _props$expandIconProp,
|
|
55
55
|
children = props.children,
|
|
56
|
-
actionsList = props.actionsList
|
|
56
|
+
actionsList = props.actionsList,
|
|
57
|
+
_props$className = props.className,
|
|
58
|
+
className = _props$className === void 0 ? '' : _props$className;
|
|
57
59
|
var _useState = useState(false),
|
|
58
60
|
_useState2 = _slicedToArray(_useState, 2),
|
|
59
61
|
childOpen = _useState2[0],
|
|
@@ -66,7 +68,7 @@ var NavigationItem = function NavigationItem(props) {
|
|
|
66
68
|
};
|
|
67
69
|
var displayHeader = isOpen && type === NavigationItemTypes.HEADER && showAction && actionElm && actionElm;
|
|
68
70
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: classNames('navigation-item', "navigation-item--".concat(type), "".concat(expandable ? 'navigation-item--expandable' : '')),
|
|
71
|
+
className: classNames('navigation-item', "navigation-item--".concat(type), "".concat(expandable ? 'navigation-item--expandable' : ''), className),
|
|
70
72
|
onClick: function onClick() {
|
|
71
73
|
return setChildOpen(!childOpen);
|
|
72
74
|
}
|