@onehat/ui 0.4.50 → 0.4.52
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.52",
|
|
4
4
|
"description": "Base UI for OneHat apps",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,35 +25,35 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "UNLICENSED",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@gluestack-ui/accordion": "^1.0.
|
|
29
|
-
"@gluestack-ui/actionsheet": "^0.2.
|
|
28
|
+
"@gluestack-ui/accordion": "^1.0.14",
|
|
29
|
+
"@gluestack-ui/actionsheet": "^0.2.52",
|
|
30
30
|
"@gluestack-ui/alert": "^0.1.16",
|
|
31
|
-
"@gluestack-ui/alert-dialog": "^0.1.
|
|
31
|
+
"@gluestack-ui/alert-dialog": "^0.1.38",
|
|
32
32
|
"@gluestack-ui/avatar": "^0.1.18",
|
|
33
|
-
"@gluestack-ui/button": "^1.0.
|
|
34
|
-
"@gluestack-ui/checkbox": "^0.1.
|
|
33
|
+
"@gluestack-ui/button": "^1.0.14",
|
|
34
|
+
"@gluestack-ui/checkbox": "^0.1.39",
|
|
35
35
|
"@gluestack-ui/divider": "^0.1.10",
|
|
36
|
-
"@gluestack-ui/fab": "^0.1.
|
|
36
|
+
"@gluestack-ui/fab": "^0.1.28",
|
|
37
37
|
"@gluestack-ui/form-control": "^0.1.19",
|
|
38
|
-
"@gluestack-ui/icon": "^0.1.
|
|
39
|
-
"@gluestack-ui/image": "^0.1.
|
|
40
|
-
"@gluestack-ui/input": "^0.1.
|
|
41
|
-
"@gluestack-ui/link": "^0.1.
|
|
42
|
-
"@gluestack-ui/menu": "^0.2.
|
|
43
|
-
"@gluestack-ui/modal": "^0.1.
|
|
38
|
+
"@gluestack-ui/icon": "^0.1.26",
|
|
39
|
+
"@gluestack-ui/image": "^0.1.17",
|
|
40
|
+
"@gluestack-ui/input": "^0.1.38",
|
|
41
|
+
"@gluestack-ui/link": "^0.1.29",
|
|
42
|
+
"@gluestack-ui/menu": "^0.2.43",
|
|
43
|
+
"@gluestack-ui/modal": "^0.1.41",
|
|
44
44
|
"@gluestack-ui/nativewind-utils": "^1.0.25",
|
|
45
45
|
"@gluestack-ui/overlay": "^0.1.15",
|
|
46
|
-
"@gluestack-ui/popover": "^0.1.
|
|
47
|
-
"@gluestack-ui/pressable": "^0.1.
|
|
46
|
+
"@gluestack-ui/popover": "^0.1.49",
|
|
47
|
+
"@gluestack-ui/pressable": "^0.1.23",
|
|
48
48
|
"@gluestack-ui/progress": "^0.1.18",
|
|
49
|
-
"@gluestack-ui/radio": "^0.1.
|
|
50
|
-
"@gluestack-ui/select": "^0.1.
|
|
51
|
-
"@gluestack-ui/slider": "^0.1.
|
|
49
|
+
"@gluestack-ui/radio": "^0.1.40",
|
|
50
|
+
"@gluestack-ui/select": "^0.1.31",
|
|
51
|
+
"@gluestack-ui/slider": "^0.1.32",
|
|
52
52
|
"@gluestack-ui/spinner": "^0.1.15",
|
|
53
|
-
"@gluestack-ui/switch": "^0.1.
|
|
53
|
+
"@gluestack-ui/switch": "^0.1.29",
|
|
54
54
|
"@gluestack-ui/textarea": "^0.1.24",
|
|
55
|
-
"@gluestack-ui/toast": "^1.0.
|
|
56
|
-
"@gluestack-ui/tooltip": "^0.1.
|
|
55
|
+
"@gluestack-ui/toast": "^1.0.9",
|
|
56
|
+
"@gluestack-ui/tooltip": "^0.1.44",
|
|
57
57
|
"@hookform/resolvers": "^3.3.1",
|
|
58
58
|
"@k-renwick/colour-mixer": "^1.2.1",
|
|
59
59
|
"@legendapp/motion": "^2.4.0",
|
|
@@ -90,6 +90,8 @@ function AttachmentsElement(props) {
|
|
|
90
90
|
collapsedMax = COLLAPSED_MAX,
|
|
91
91
|
autoUpload = true,
|
|
92
92
|
onAfterDropzoneChange, // fn, should return true if it mutated the files array
|
|
93
|
+
onUpload,
|
|
94
|
+
onDelete,
|
|
93
95
|
|
|
94
96
|
// withComponent
|
|
95
97
|
self,
|
|
@@ -192,6 +194,9 @@ function AttachmentsElement(props) {
|
|
|
192
194
|
if (!isError) {
|
|
193
195
|
setIsUploading(false);
|
|
194
196
|
Repository.reload();
|
|
197
|
+
if (onUpload) {
|
|
198
|
+
onUpload(files);
|
|
199
|
+
}
|
|
195
200
|
}
|
|
196
201
|
}
|
|
197
202
|
},
|
|
@@ -327,6 +332,9 @@ function AttachmentsElement(props) {
|
|
|
327
332
|
});
|
|
328
333
|
setFiles(newFiles);
|
|
329
334
|
}
|
|
335
|
+
if (onDelete) {
|
|
336
|
+
onDelete(id);
|
|
337
|
+
}
|
|
330
338
|
};
|
|
331
339
|
|
|
332
340
|
if (!_.isEqual(modelidCalc, modelid.current)) {
|