@jobber/components 4.66.1-add-item-t.2 → 4.66.2
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.
package/dist/DataList/index.js
CHANGED
|
@@ -477,11 +477,8 @@ function DataListActions({ children, itemsToExpose = 2, }) {
|
|
|
477
477
|
return null;
|
|
478
478
|
if (!props.icon)
|
|
479
479
|
return null;
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
: props.label;
|
|
483
|
-
return (React__default["default"].createElement(Tooltip.Tooltip, { key: actionLabel, message: actionLabel },
|
|
484
|
-
React__default["default"].createElement(Button.Button, { icon: props.icon, ariaLabel: actionLabel, onClick: () => {
|
|
480
|
+
return (React__default["default"].createElement(Tooltip.Tooltip, { key: props.label, message: props.label },
|
|
481
|
+
React__default["default"].createElement(Button.Button, { icon: props.icon, ariaLabel: props.label, onClick: () => {
|
|
485
482
|
var _a, _b;
|
|
486
483
|
if (activeItem) {
|
|
487
484
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, activeItem);
|
|
@@ -1050,10 +1047,9 @@ function DataListAction({ label, icon, destructive, visible = () => true, onClic
|
|
|
1050
1047
|
return null;
|
|
1051
1048
|
}
|
|
1052
1049
|
const color = destructive ? "critical" : "heading";
|
|
1053
|
-
const actionLabel = typeof label === "function" && activeItem ? label(activeItem) : label;
|
|
1054
1050
|
return (React__default["default"].createElement("button", { type: "button", className: styles$1.action, onClick: handleClick },
|
|
1055
1051
|
React__default["default"].createElement(Typography.Typography, { textColor: color },
|
|
1056
|
-
React__default["default"].createElement("span", { className: styles$1.label },
|
|
1052
|
+
React__default["default"].createElement("span", { className: styles$1.label }, label)),
|
|
1057
1053
|
icon && React__default["default"].createElement(Icon.Icon, { name: icon, color: color })));
|
|
1058
1054
|
function handleClick() {
|
|
1059
1055
|
if (activeItem) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "4.66.
|
|
3
|
+
"version": "4.66.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@jobber/design": "^0.50.0",
|
|
23
|
-
"@jobber/formatters": "
|
|
23
|
+
"@jobber/formatters": "*",
|
|
24
24
|
"@jobber/hooks": "^2.7.2",
|
|
25
25
|
"@popperjs/core": "^2.0.6",
|
|
26
26
|
"@std-proposal/temporal": "0.0.1",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"> 1%",
|
|
84
84
|
"IE 10"
|
|
85
85
|
],
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "cfc28758c3edab042a182fb3a44d454c86d67449"
|
|
87
87
|
}
|