@budibase/bbui 2.3.18-alpha.8 → 2.3.18

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.8",
4
+ "version": "2.3.18",
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.8",
41
+ "@budibase/string-templates": "^2.3.18",
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": "76d67319b05f0babeb4c26c40dafef7849233cf2"
92
+ "gitHead": "7a59ee813fc92b82f415225421ff10e5f53a6b81"
93
93
  }
@@ -67,9 +67,6 @@
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
- }
73
70
 
74
71
  svg.disabled {
75
72
  color: var(--spectrum-global-color-gray-500) !important;
@@ -57,7 +57,5 @@
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;
62
60
  }
63
61
  </style>
@@ -21,7 +21,7 @@
21
21
  label {
22
22
  padding: 0;
23
23
  white-space: nowrap;
24
- color: var(--spectrum-global-color-gray-700);
24
+ color: var(--spectrum-global-color-gray-600);
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, onMount } from "svelte"
4
+ import { createEventDispatcher, setContext, tick } from "svelte"
5
5
  import { fade, fly } from "svelte/transition"
6
6
  import Portal from "svelte-portal"
7
7
  import Context from "../context"
@@ -62,15 +62,10 @@
62
62
  }
63
63
 
64
64
  setContext(Context.Modal, { show, hide, cancel })
65
-
66
- onMount(() => {
67
- document.addEventListener("keydown", handleKey)
68
- return () => {
69
- document.removeEventListener("keydown", handleKey)
70
- }
71
- })
72
65
  </script>
73
66
 
67
+ <svelte:window on:keydown={handleKey} />
68
+
74
69
  {#if inline}
75
70
  {#if visible}
76
71
  <div use:focusModal bind:this={modal} class="spectrum-Modal inline is-open">
package/src/helpers.js CHANGED
@@ -104,9 +104,6 @@ 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
- }
110
107
  return JSON.parse(JSON.stringify(obj))
111
108
  }
112
109