diginet-core-ui 1.4.25-beta.2 → 1.4.25-beta.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.
|
@@ -103,7 +103,7 @@ const Button = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) =
|
|
|
103
103
|
const minHeightSize = isViewTypeLink ? minHeightSizeLinkMap.get(size) : minHeightSizeMap.get(size);
|
|
104
104
|
const color = getProp(colors, colorProp, colorProp);
|
|
105
105
|
const TagName = href ? 'a' : 'button';
|
|
106
|
-
const _ButtonRootCSS = ButtonRootCSS(color, isColorDefault, viewType, loading, theme);
|
|
106
|
+
const _ButtonRootCSS = ButtonRootCSS(color, isColorDefault, viewType, loading, disabled, theme);
|
|
107
107
|
const _ButtonIconCSS = ButtonIconCSS(endIcon, label, startIcon, iconMarginSize, iconSize, theme);
|
|
108
108
|
const _NonStartIconCSS = NonStartIconCSS(iconSize, theme);
|
|
109
109
|
const _ButtonLabelCSS = ButtonLabelCSS(loading, iconMarginSize);
|
|
@@ -258,7 +258,7 @@ const ButtonSizeCSS = (paddingSize, minHeightSize, {
|
|
|
258
258
|
padding: ${spacing(paddingSize)};
|
|
259
259
|
${parseMinWidthHeight('max-content', minHeightSize)};
|
|
260
260
|
`;
|
|
261
|
-
const ButtonRootCSS = (color, isColorDefault, viewType, loading, {
|
|
261
|
+
const ButtonRootCSS = (color, isColorDefault, viewType, loading, disabled, {
|
|
262
262
|
colors
|
|
263
263
|
}) => css`
|
|
264
264
|
${displayInlineFlex};
|
|
@@ -273,7 +273,9 @@ const ButtonRootCSS = (color, isColorDefault, viewType, loading, {
|
|
|
273
273
|
${userSelectNone};
|
|
274
274
|
${parseHeight('max-content')};
|
|
275
275
|
text-decoration: none;
|
|
276
|
-
|
|
276
|
+
${disabled && css`
|
|
277
|
+
transition: all 0.5s;
|
|
278
|
+
`};
|
|
277
279
|
${loading && pointerEventsNone};
|
|
278
280
|
${viewType === 'outlined' && css`
|
|
279
281
|
${textColor(color)};
|
|
@@ -15,6 +15,7 @@ const allNewAttached = new FormData();
|
|
|
15
15
|
const attached = []; // attached = [...dataState, ...newDataState]
|
|
16
16
|
const chosenItems = [];
|
|
17
17
|
const getType = data => {
|
|
18
|
+
if (!data) return null;
|
|
18
19
|
if (data !== null && data !== void 0 && data.type) {
|
|
19
20
|
var _type$match;
|
|
20
21
|
const pattern = /word|sheet|presentation|pdf|image|compressed/i;
|
|
@@ -457,7 +458,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referenc
|
|
|
457
458
|
recentRemovedAttached,
|
|
458
459
|
removedAttached: removedAttachedRef.current,
|
|
459
460
|
oldAttached,
|
|
460
|
-
allNewAttached:
|
|
461
|
+
allNewAttached: tempNewDataState
|
|
461
462
|
});
|
|
462
463
|
!!onRemoveProp && onRemoveProp(recentRemovedAttached);
|
|
463
464
|
onClosePopup();
|