@budibase/bbui 2.29.8 → 2.29.13

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.29.8",
4
+ "version": "2.29.13",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -35,8 +35,8 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
38
- "@budibase/shared-core": "2.29.8",
39
- "@budibase/string-templates": "2.29.8",
38
+ "@budibase/shared-core": "2.29.13",
39
+ "@budibase/string-templates": "2.29.13",
40
40
  "@spectrum-css/accordion": "3.0.24",
41
41
  "@spectrum-css/actionbutton": "1.0.1",
42
42
  "@spectrum-css/actiongroup": "1.0.1",
@@ -103,5 +103,5 @@
103
103
  }
104
104
  }
105
105
  },
106
- "gitHead": "bae20c501ab454a1220ffe5727013184805982ab"
106
+ "gitHead": "45bf2019957b2b038299a6a2043ea5a4c7eabfdb"
107
107
  }
@@ -1,33 +1,25 @@
1
1
  <script>
2
- import Tooltip from "./Tooltip.svelte"
3
2
  import Icon from "../Icon/Icon.svelte"
3
+ import AbsTooltip from "./AbsTooltip.svelte"
4
4
 
5
5
  export let tooltip = ""
6
6
  export let size = "M"
7
7
  export let disabled = true
8
-
9
- let showTooltip = false
10
8
  </script>
11
9
 
12
- <!-- svelte-ignore a11y-no-static-element-interactions -->
13
10
  <div class:container={!!tooltip}>
14
11
  <slot />
15
12
  {#if tooltip}
16
13
  <div class="icon-container">
17
- <div
18
- class="icon"
19
- class:icon-small={size === "M" || size === "S"}
20
- on:mouseover={() => (showTooltip = true)}
21
- on:mouseleave={() => (showTooltip = false)}
22
- on:focus
23
- >
24
- <Icon name="InfoOutline" size="S" {disabled} />
25
- </div>
26
- {#if showTooltip}
27
- <div class="tooltip">
28
- <Tooltip textWrapping={true} direction={"bottom"} text={tooltip} />
14
+ <AbsTooltip text={tooltip}>
15
+ <div
16
+ class="icon"
17
+ class:icon-small={size === "M" || size === "S"}
18
+ on:focus
19
+ >
20
+ <Icon name="InfoOutline" size="S" {disabled} hoverable />
29
21
  </div>
30
- {/if}
22
+ </AbsTooltip>
31
23
  </div>
32
24
  {/if}
33
25
  </div>
@@ -44,14 +36,6 @@
44
36
  margin-left: 5px;
45
37
  margin-right: 5px;
46
38
  }
47
- .tooltip {
48
- position: absolute;
49
- display: flex;
50
- justify-content: center;
51
- top: 15px;
52
- z-index: 200;
53
- width: 160px;
54
- }
55
39
  .icon {
56
40
  transform: scale(0.75);
57
41
  }