@budibase/bbui 2.10.7-alpha.2 → 2.10.7
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/bbui.es.js +2 -2
- package/dist/bbui.es.js.map +1 -1
- package/package.json +4 -4
- package/src/Banner/Banner.svelte +0 -4
- package/src/Notification/Notification.svelte +1 -5
- package/src/Notification/NotificationDisplay.svelte +1 -2
- package/src/Stores/banner.js +0 -1
- package/src/Stores/notifications.js +1 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "2.10.7
|
|
4
|
+
"version": "2.10.7",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@adobe/spectrum-css-workflow-icons": "1.2.1",
|
|
41
|
-
"@budibase/shared-core": "2.10.7
|
|
42
|
-
"@budibase/string-templates": "2.10.7
|
|
41
|
+
"@budibase/shared-core": "2.10.7",
|
|
42
|
+
"@budibase/string-templates": "2.10.7",
|
|
43
43
|
"@spectrum-css/accordion": "3.0.24",
|
|
44
44
|
"@spectrum-css/actionbutton": "1.0.1",
|
|
45
45
|
"@spectrum-css/actiongroup": "1.0.1",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "2e6fd02d84cf819c52678d941719926f50faa052"
|
|
110
110
|
}
|
package/src/Banner/Banner.svelte
CHANGED
|
@@ -27,11 +27,7 @@
|
|
|
27
27
|
<div class="spectrum-Toast-body" class:actionBody={!!action}>
|
|
28
28
|
<div class="wrap spectrum-Toast-content">{message || ""}</div>
|
|
29
29
|
{#if action}
|
|
30
|
-
<ActionButton
|
|
31
|
-
quiet
|
|
32
|
-
emphasized
|
|
33
|
-
on:click={() => action(() => dispatch("dismiss"))}
|
|
34
|
-
>
|
|
30
|
+
<ActionButton quiet emphasized on:click={action}>
|
|
35
31
|
<div style="color: white; font-weight: 600;">{actionMessage}</div>
|
|
36
32
|
</ActionButton>
|
|
37
33
|
{/if}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<Portal target=".modal-container">
|
|
10
10
|
<div class="notifications">
|
|
11
|
-
{#each $notifications as { type, icon, message, id, dismissable, action,
|
|
11
|
+
{#each $notifications as { type, icon, message, id, dismissable, action, wide } (id)}
|
|
12
12
|
<div transition:fly={{ y: 30 }}>
|
|
13
13
|
<Notification
|
|
14
14
|
{type}
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
{message}
|
|
17
17
|
{dismissable}
|
|
18
18
|
{action}
|
|
19
|
-
{actionMessage}
|
|
20
19
|
{wide}
|
|
21
20
|
on:dismiss={() => notifications.dismiss(id)}
|
|
22
21
|
/>
|
package/src/Stores/banner.js
CHANGED
|
@@ -27,9 +27,7 @@ export const createNotificationStore = () => {
|
|
|
27
27
|
icon = "",
|
|
28
28
|
autoDismiss = true,
|
|
29
29
|
action = null,
|
|
30
|
-
actionMessage = null,
|
|
31
30
|
wide = false,
|
|
32
|
-
dismissTimeout = NOTIFICATION_TIMEOUT,
|
|
33
31
|
}
|
|
34
32
|
) => {
|
|
35
33
|
if (block) {
|
|
@@ -46,16 +44,14 @@ export const createNotificationStore = () => {
|
|
|
46
44
|
icon,
|
|
47
45
|
dismissable: !autoDismiss,
|
|
48
46
|
action,
|
|
49
|
-
actionMessage,
|
|
50
47
|
wide,
|
|
51
|
-
dismissTimeout,
|
|
52
48
|
},
|
|
53
49
|
]
|
|
54
50
|
})
|
|
55
51
|
if (autoDismiss) {
|
|
56
52
|
const timeoutId = setTimeout(() => {
|
|
57
53
|
dismissNotification(_id)
|
|
58
|
-
},
|
|
54
|
+
}, NOTIFICATION_TIMEOUT)
|
|
59
55
|
timeoutIds.add(timeoutId)
|
|
60
56
|
}
|
|
61
57
|
}
|