@budibase/bbui 2.3.18-alpha.6 → 2.3.18-alpha.8

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.3.18-alpha.6",
4
+ "version": "2.3.18-alpha.8",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
41
- "@budibase/string-templates": "2.3.18-alpha.6",
41
+ "@budibase/string-templates": "2.3.18-alpha.8",
42
42
  "@spectrum-css/accordion": "3.0.24",
43
43
  "@spectrum-css/actionbutton": "1.0.1",
44
44
  "@spectrum-css/actiongroup": "1.0.1",
@@ -89,5 +89,5 @@
89
89
  "resolutions": {
90
90
  "loader-utils": "1.4.1"
91
91
  },
92
- "gitHead": "fd87b260e1b621eb7f6eb4c2b85e919ed50f9963"
92
+ "gitHead": "76d67319b05f0babeb4c26c40dafef7849233cf2"
93
93
  }
@@ -67,6 +67,9 @@
67
67
  color: var(--spectrum-alias-icon-color-selected-hover) !important;
68
68
  cursor: pointer;
69
69
  }
70
+ svg.hoverable:active {
71
+ color: var(--spectrum-global-color-blue-400) !important;
72
+ }
70
73
 
71
74
  svg.disabled {
72
75
  color: var(--spectrum-global-color-gray-500) !important;
@@ -57,5 +57,7 @@
57
57
  --spectrum-semantic-negative-icon-color: #e34850;
58
58
  min-width: 100px;
59
59
  margin: 0;
60
+ border-color: var(--spectrum-global-color-gray-400);
61
+ border-width: 1px;
60
62
  }
61
63
  </style>
@@ -21,7 +21,7 @@
21
21
  label {
22
22
  padding: 0;
23
23
  white-space: nowrap;
24
- color: var(--spectrum-global-color-gray-600);
24
+ color: var(--spectrum-global-color-gray-700);
25
25
  }
26
26
 
27
27
  .muted {
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import "@spectrum-css/modal/dist/index-vars.css"
3
3
  import "@spectrum-css/underlay/dist/index-vars.css"
4
- import { createEventDispatcher, setContext, tick } from "svelte"
4
+ import { createEventDispatcher, setContext, tick, onMount } from "svelte"
5
5
  import { fade, fly } from "svelte/transition"
6
6
  import Portal from "svelte-portal"
7
7
  import Context from "../context"
@@ -62,9 +62,14 @@
62
62
  }
63
63
 
64
64
  setContext(Context.Modal, { show, hide, cancel })
65
- </script>
66
65
 
67
- <svelte:window on:keydown={handleKey} />
66
+ onMount(() => {
67
+ document.addEventListener("keydown", handleKey)
68
+ return () => {
69
+ document.removeEventListener("keydown", handleKey)
70
+ }
71
+ })
72
+ </script>
68
73
 
69
74
  {#if inline}
70
75
  {#if visible}
package/src/helpers.js CHANGED
@@ -104,6 +104,9 @@ export const deepSet = (obj, key, value) => {
104
104
  * @param obj the object to clone
105
105
  */
106
106
  export const cloneDeep = obj => {
107
+ if (!obj) {
108
+ return obj
109
+ }
107
110
  return JSON.parse(JSON.stringify(obj))
108
111
  }
109
112