@budibase/bbui 2.2.4-alpha.3 → 2.2.4-alpha.5

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.2.4-alpha.3",
4
+ "version": "2.2.4-alpha.5",
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.2.4-alpha.3",
41
+ "@budibase/string-templates": "2.2.4-alpha.5",
42
42
  "@spectrum-css/actionbutton": "1.0.1",
43
43
  "@spectrum-css/actiongroup": "1.0.1",
44
44
  "@spectrum-css/avatar": "3.0.2",
@@ -88,5 +88,5 @@
88
88
  "resolutions": {
89
89
  "loader-utils": "1.4.1"
90
90
  },
91
- "gitHead": "ac227e9be15dea8cb47997d7b3a2793e95ec0f1c"
91
+ "gitHead": "c08d5dbfdd487e73d3cc3dfa8e029bc17c801336"
92
92
  }
@@ -10,10 +10,13 @@
10
10
  export let green = false
11
11
  export let active = false
12
12
  export let inactive = false
13
+ export let hoverable = false
13
14
  </script>
14
15
 
15
16
  <span
17
+ on:click
16
18
  class="spectrum-Label"
19
+ class:hoverable
17
20
  class:spectrum-Label--small={size === "S"}
18
21
  class:spectrum-Label--large={size === "L"}
19
22
  class:spectrum-Label--grey={grey}
@@ -27,3 +30,13 @@
27
30
  >
28
31
  <slot />
29
32
  </span>
33
+
34
+ <style>
35
+ .spectrum-Label--grey {
36
+ background-color: var(--spectrum-global-color-gray-500);
37
+ font-weight: 600;
38
+ }
39
+ .hoverable:hover {
40
+ cursor: pointer;
41
+ }
42
+ </style>
@@ -1,6 +1,7 @@
1
1
  <script>
2
2
  import "@spectrum-css/label/dist/index-vars.css"
3
3
  import { createEventDispatcher } from "svelte"
4
+ import Badge from "../Badge/Badge.svelte"
4
5
 
5
6
  export let row
6
7
  export let value
@@ -24,17 +25,11 @@
24
25
 
25
26
  {#each relationships as relationship}
26
27
  {#if relationship?.primaryDisplay}
27
- <span class="spectrum-Label spectrum-Label--grey" on:click={onClick}>
28
+ <Badge hoverable grey on:click={onClick}>
28
29
  {relationship.primaryDisplay}
29
- </span>
30
+ </Badge>
30
31
  {/if}
31
32
  {/each}
32
33
  {#if leftover}
33
34
  <div>+{leftover} more</div>
34
35
  {/if}
35
-
36
- <style>
37
- span:hover {
38
- cursor: pointer;
39
- }
40
- </style>