@superdispatch/ui-lab 0.21.0 → 0.21.4
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 +13 -7
- package/dist-node/index.js.map +1 -1
- package/dist-src/box/Box.js +2 -1
- package/dist-src/file-list-item/FileListItem.js +11 -6
- package/dist-types/index.d.ts +308 -307
- package/dist-web/index.js +13 -7
- package/dist-web/index.js.map +1 -1
- package/package.json +34 -34
package/dist-web/index.js
CHANGED
|
@@ -156,7 +156,8 @@ function parseMargin(input) {
|
|
|
156
156
|
|
|
157
157
|
var normalizeBorderRadius = /*#__PURE__*/createRuleNormalizer({
|
|
158
158
|
none: 0,
|
|
159
|
-
small: 4
|
|
159
|
+
small: 4,
|
|
160
|
+
medium: 8
|
|
160
161
|
});
|
|
161
162
|
var normalizeBorderWidth = /*#__PURE__*/createRuleNormalizer({
|
|
162
163
|
none: 0,
|
|
@@ -922,6 +923,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
922
923
|
url,
|
|
923
924
|
name,
|
|
924
925
|
status,
|
|
926
|
+
canDelete = true,
|
|
925
927
|
onRetry,
|
|
926
928
|
onDelete
|
|
927
929
|
} = _ref2;
|
|
@@ -937,6 +939,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
937
939
|
onMouseLeave: () => {
|
|
938
940
|
setIsHovered(false);
|
|
939
941
|
},
|
|
942
|
+
"aria-label": "file-list-item",
|
|
940
943
|
children: /*#__PURE__*/jsxs(Columns, {
|
|
941
944
|
align: "center",
|
|
942
945
|
space: "xsmall",
|
|
@@ -987,19 +990,22 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
987
990
|
children: /*#__PURE__*/jsx(FileListItemProgress, {
|
|
988
991
|
size: "1em"
|
|
989
992
|
})
|
|
990
|
-
}) : /*#__PURE__*/jsx(
|
|
993
|
+
}) : !isHovered && status === 'success' ? /*#__PURE__*/jsx(IconButton, {
|
|
994
|
+
size: "small",
|
|
995
|
+
children: /*#__PURE__*/jsx(CheckCircle, {
|
|
996
|
+
fontSize: "small",
|
|
997
|
+
htmlColor: Color.Green300
|
|
998
|
+
})
|
|
999
|
+
}) : canDelete ? /*#__PURE__*/jsx(Tooltip, {
|
|
991
1000
|
title: "Delete",
|
|
992
1001
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
993
1002
|
size: "small",
|
|
994
1003
|
onClick: onDelete,
|
|
995
|
-
children:
|
|
996
|
-
fontSize: "small",
|
|
997
|
-
htmlColor: Color.Green300
|
|
998
|
-
}) : /*#__PURE__*/jsx(Delete, {
|
|
1004
|
+
children: /*#__PURE__*/jsx(Delete, {
|
|
999
1005
|
fontSize: "small"
|
|
1000
1006
|
})
|
|
1001
1007
|
})
|
|
1002
|
-
})
|
|
1008
|
+
}) : null
|
|
1003
1009
|
})]
|
|
1004
1010
|
})
|
|
1005
1011
|
});
|