@superdispatch/ui-lab 0.21.1 → 0.21.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-node/index.js
CHANGED
|
@@ -930,6 +930,7 @@ var FileListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
|
930
930
|
url,
|
|
931
931
|
name,
|
|
932
932
|
status,
|
|
933
|
+
canDelete = true,
|
|
933
934
|
onRetry,
|
|
934
935
|
onDelete
|
|
935
936
|
} = _ref2;
|
|
@@ -945,6 +946,7 @@ var FileListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
|
945
946
|
onMouseLeave: () => {
|
|
946
947
|
setIsHovered(false);
|
|
947
948
|
},
|
|
949
|
+
"aria-label": "file-list-item",
|
|
948
950
|
children: /*#__PURE__*/jsxRuntime.jsxs(ui.Columns, {
|
|
949
951
|
align: "center",
|
|
950
952
|
space: "xsmall",
|
|
@@ -995,19 +997,22 @@ var FileListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
|
995
997
|
children: /*#__PURE__*/jsxRuntime.jsx(FileListItemProgress, {
|
|
996
998
|
size: "1em"
|
|
997
999
|
})
|
|
998
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(core.
|
|
1000
|
+
}) : !isHovered && status === 'success' ? /*#__PURE__*/jsxRuntime.jsx(core.IconButton, {
|
|
1001
|
+
size: "small",
|
|
1002
|
+
children: /*#__PURE__*/jsxRuntime.jsx(icons.CheckCircle, {
|
|
1003
|
+
fontSize: "small",
|
|
1004
|
+
htmlColor: ui.Color.Green300
|
|
1005
|
+
})
|
|
1006
|
+
}) : canDelete ? /*#__PURE__*/jsxRuntime.jsx(core.Tooltip, {
|
|
999
1007
|
title: "Delete",
|
|
1000
1008
|
children: /*#__PURE__*/jsxRuntime.jsx(core.IconButton, {
|
|
1001
1009
|
size: "small",
|
|
1002
1010
|
onClick: onDelete,
|
|
1003
|
-
children:
|
|
1004
|
-
fontSize: "small",
|
|
1005
|
-
htmlColor: ui.Color.Green300
|
|
1006
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(icons.Delete, {
|
|
1011
|
+
children: /*#__PURE__*/jsxRuntime.jsx(icons.Delete, {
|
|
1007
1012
|
fontSize: "small"
|
|
1008
1013
|
})
|
|
1009
1014
|
})
|
|
1010
|
-
})
|
|
1015
|
+
}) : null
|
|
1011
1016
|
})]
|
|
1012
1017
|
})
|
|
1013
1018
|
});
|