@bigbinary/neeto-molecules 1.6.0 → 1.6.1
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.
|
@@ -1523,6 +1523,7 @@ var LinkSection = function LinkSection(_ref) {
|
|
|
1523
1523
|
otherProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
1524
1524
|
return /*#__PURE__*/React.createElement(MenuItem.Button, _extends({
|
|
1525
1525
|
className: "neeto-molecules-menu-sublist__item-btn",
|
|
1526
|
+
"data-cy": "floating-action-menu-link-section",
|
|
1526
1527
|
key: idx,
|
|
1527
1528
|
prefix: /*#__PURE__*/React.createElement(Icon, {
|
|
1528
1529
|
size: 18
|
|
@@ -1530,6 +1531,7 @@ var LinkSection = function LinkSection(_ref) {
|
|
|
1530
1531
|
style: "text"
|
|
1531
1532
|
}, otherProps), label, isPresent(changesCount) && /*#__PURE__*/React.createElement("span", {
|
|
1532
1533
|
className: "neeto-molecules-menu-list__item-btn-count",
|
|
1534
|
+
"data-cy": "help-section-menu-changes-count",
|
|
1533
1535
|
"data-testid": "help-section-menu-changes-count"
|
|
1534
1536
|
}, changesCount));
|
|
1535
1537
|
});
|
|
@@ -1540,10 +1542,12 @@ var ProfileHeader = function ProfileHeader(_ref) {
|
|
|
1540
1542
|
var name = profileInfo.name,
|
|
1541
1543
|
email = profileInfo.email;
|
|
1542
1544
|
return /*#__PURE__*/React.createElement("div", {
|
|
1543
|
-
className: "neeto-ui-relative neeto-ui-flex neeto-ui-items-center neeto-ui-p-3 neeto-ui-bg-primary-100 neeto-molecules-profile-popup__top-section"
|
|
1545
|
+
className: "neeto-ui-relative neeto-ui-flex neeto-ui-items-center neeto-ui-p-3 neeto-ui-bg-primary-100 neeto-molecules-profile-popup__top-section",
|
|
1546
|
+
"data-cy": "floating-action-menu-profile-header"
|
|
1544
1547
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1545
1548
|
className: "top-0 left-0"
|
|
1546
1549
|
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
1550
|
+
"data-cy": "floating-action-menu-header-profile-icon",
|
|
1547
1551
|
size: "large",
|
|
1548
1552
|
user: profileInfo
|
|
1549
1553
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -1551,12 +1555,14 @@ var ProfileHeader = function ProfileHeader(_ref) {
|
|
|
1551
1555
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
1552
1556
|
className: "neeto-ui-m-0",
|
|
1553
1557
|
component: "h2",
|
|
1558
|
+
"data-cy": "floating-action-menu-header-user-name",
|
|
1554
1559
|
lineHeight: "tight",
|
|
1555
1560
|
style: "h5",
|
|
1556
1561
|
title: name,
|
|
1557
1562
|
weight: "semibold"
|
|
1558
1563
|
}, truncate(name, 18)), email && /*#__PURE__*/React.createElement(Typography, {
|
|
1559
1564
|
className: "neeto-ui-w-full neeto-ui-truncate neeto-ui-text-gray-700",
|
|
1565
|
+
"data-cy": "floating-action-menu-header-user-email",
|
|
1560
1566
|
lineHeight: "tight",
|
|
1561
1567
|
style: "body3"
|
|
1562
1568
|
}, email)));
|
|
@@ -1746,6 +1752,7 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
1746
1752
|
zIndex: 99999,
|
|
1747
1753
|
customTarget: /*#__PURE__*/React.createElement(Avatar, {
|
|
1748
1754
|
className: "neeto-ui-flex-shrink-0 neeto-molecules-floating-action-button__profile-avatar",
|
|
1755
|
+
"data-cy": "profile-avatar",
|
|
1749
1756
|
"data-testid": "profile-avatar",
|
|
1750
1757
|
size: "medium",
|
|
1751
1758
|
user: profileInfo
|
|
@@ -1762,6 +1769,7 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
1762
1769
|
topLinks: newTopLinks
|
|
1763
1770
|
})), isPresent(changesCount) && /*#__PURE__*/React.createElement("span", {
|
|
1764
1771
|
className: "neeto-molecules-menu__notif-count",
|
|
1772
|
+
"data-cy": "help-icon-changes-count",
|
|
1765
1773
|
"data-testid": "help-icon-changes-count"
|
|
1766
1774
|
}, changesCount));
|
|
1767
1775
|
};
|
|
@@ -1786,6 +1794,7 @@ var FloatingActionMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1786
1794
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
1787
1795
|
ref: ref,
|
|
1788
1796
|
className: "neeto-molecules-floating-action-menu__container",
|
|
1797
|
+
"data-cy": "floating-action-menu-container",
|
|
1789
1798
|
"data-testid": "floating-action-menu-container"
|
|
1790
1799
|
}, otherProps), /*#__PURE__*/React.createElement(ProfileButton, {
|
|
1791
1800
|
bottomLinks: bottomLinks,
|