@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.
@@ -35,7 +35,8 @@ function parseMargin(input) {
35
35
 
36
36
  var normalizeBorderRadius = /*#__PURE__*/createRuleNormalizer({
37
37
  none: 0,
38
- small: 4
38
+ small: 4,
39
+ medium: 8
39
40
  });
40
41
  var normalizeBorderWidth = /*#__PURE__*/createRuleNormalizer({
41
42
  none: 0,
@@ -44,6 +44,7 @@ export var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
44
44
  url,
45
45
  name,
46
46
  status,
47
+ canDelete = true,
47
48
  onRetry,
48
49
  onDelete
49
50
  } = _ref2;
@@ -59,6 +60,7 @@ export var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
59
60
  onMouseLeave: () => {
60
61
  setIsHovered(false);
61
62
  },
63
+ "aria-label": "file-list-item",
62
64
  children: /*#__PURE__*/_jsxs(Columns, {
63
65
  align: "center",
64
66
  space: "xsmall",
@@ -109,19 +111,22 @@ export var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
109
111
  children: /*#__PURE__*/_jsx(FileListItemProgress, {
110
112
  size: "1em"
111
113
  })
112
- }) : /*#__PURE__*/_jsx(Tooltip, {
114
+ }) : !isHovered && status === 'success' ? /*#__PURE__*/_jsx(IconButton, {
115
+ size: "small",
116
+ children: /*#__PURE__*/_jsx(CheckCircle, {
117
+ fontSize: "small",
118
+ htmlColor: Color.Green300
119
+ })
120
+ }) : canDelete ? /*#__PURE__*/_jsx(Tooltip, {
113
121
  title: "Delete",
114
122
  children: /*#__PURE__*/_jsx(IconButton, {
115
123
  size: "small",
116
124
  onClick: onDelete,
117
- children: !isHovered && status === 'success' ? /*#__PURE__*/_jsx(CheckCircle, {
118
- fontSize: "small",
119
- htmlColor: Color.Green300
120
- }) : /*#__PURE__*/_jsx(Delete, {
125
+ children: /*#__PURE__*/_jsx(Delete, {
121
126
  fontSize: "small"
122
127
  })
123
128
  })
124
- })
129
+ }) : null
125
130
  })]
126
131
  })
127
132
  });