pixelize-design-library 2.2.21 → 2.2.23
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.
|
@@ -22,10 +22,19 @@ exports.Button = {
|
|
|
22
22
|
color: theme.colors.white,
|
|
23
23
|
_hover: {
|
|
24
24
|
bg: theme.colors[colorScheme][600],
|
|
25
|
+
_disabled: {
|
|
26
|
+
bg: theme.colors[colorScheme][600], // keep hover color on loading
|
|
27
|
+
},
|
|
25
28
|
},
|
|
26
29
|
_active: {
|
|
27
30
|
bg: theme.colors[colorScheme][700],
|
|
28
31
|
},
|
|
32
|
+
_loading: {
|
|
33
|
+
bg: theme.colors[colorScheme][600],
|
|
34
|
+
_hover: {
|
|
35
|
+
bg: theme.colors[colorScheme][600],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
29
38
|
});
|
|
30
39
|
},
|
|
31
40
|
outline: function (_a) {
|
|
@@ -39,11 +48,19 @@ exports.Button = {
|
|
|
39
48
|
bg: theme.colors[colorScheme][500],
|
|
40
49
|
borderColor: theme.colors[colorScheme][600],
|
|
41
50
|
color: theme.colors.white,
|
|
51
|
+
_disabled: {
|
|
52
|
+
// bg: theme.colors[colorScheme][500],
|
|
53
|
+
color: theme.colors[colorScheme][500],
|
|
54
|
+
},
|
|
42
55
|
},
|
|
43
56
|
_active: {
|
|
44
57
|
bg: theme.colors[colorScheme][600],
|
|
45
58
|
color: theme.colors.white,
|
|
46
59
|
},
|
|
60
|
+
_loading: {
|
|
61
|
+
// bg: theme.colors[colorScheme][500],
|
|
62
|
+
color: theme.colors[colorScheme][500],
|
|
63
|
+
},
|
|
47
64
|
});
|
|
48
65
|
},
|
|
49
66
|
ghost: function (_a) {
|
|
@@ -122,8 +122,12 @@ function NoteTextArea(_a) {
|
|
|
122
122
|
setFileError("");
|
|
123
123
|
};
|
|
124
124
|
var handleNoteChange = function (e) {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
var value = e.target.value;
|
|
126
|
+
// Allow typing, but prevent updating state with only spaces
|
|
127
|
+
if (value.trim() === "" && value !== "")
|
|
128
|
+
return;
|
|
129
|
+
setNoteValue(value);
|
|
130
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value);
|
|
127
131
|
adjustHeight();
|
|
128
132
|
};
|
|
129
133
|
var formatBytes = function (bytes, decimals) {
|