@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/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-alpha.2",
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-alpha.2",
42
- "@budibase/string-templates": "2.10.7-alpha.2",
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": "e2900e574122036f432dcf20fc9dc7c4c4d8f523"
109
+ "gitHead": "2e6fd02d84cf819c52678d941719926f50faa052"
110
110
  }
@@ -66,10 +66,6 @@
66
66
  pointer-events: all;
67
67
  width: 100%;
68
68
  }
69
-
70
- .spectrum-Toast--neutral {
71
- background-color: var(--grey-2);
72
- }
73
69
  .spectrum-Button {
74
70
  border: 1px solid rgba(255, 255, 255, 0.2);
75
71
  }
@@ -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, actionMessage, wide } (id)}
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
  />
@@ -1,7 +1,6 @@
1
1
  import { writable } from "svelte/store"
2
2
 
3
3
  export const BANNER_TYPES = {
4
- NEUTRAL: "neutral",
5
4
  INFO: "info",
6
5
  NEGATIVE: "negative",
7
6
  WARNING: "warning",
@@ -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
- }, dismissTimeout)
54
+ }, NOTIFICATION_TIMEOUT)
59
55
  timeoutIds.add(timeoutId)
60
56
  }
61
57
  }