@budibase/bbui 2.2.12-alpha.38 → 2.2.12-alpha.39

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.12-alpha.38",
4
+ "version": "2.2.12-alpha.39",
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.12-alpha.38",
41
+ "@budibase/string-templates": "2.2.12-alpha.39",
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": "593ce49bfcdfd8bcede737459807643f4304d1dc"
92
+ "gitHead": "3bbff691de1a4375e396f63692dbad1a10527fcc"
93
93
  }
@@ -2,6 +2,7 @@
2
2
  import { createEventDispatcher } from "svelte"
3
3
  import FancyField from "./FancyField.svelte"
4
4
  import FancyFieldLabel from "./FancyFieldLabel.svelte"
5
+ import { fade } from "svelte/transition"
5
6
 
6
7
  export let label
7
8
  export let value
@@ -9,6 +10,7 @@
9
10
  export let disabled = false
10
11
  export let error = null
11
12
  export let validate = null
13
+ export let suffix = null
12
14
 
13
15
  const dispatch = createEventDispatcher()
14
16
 
@@ -38,6 +40,9 @@
38
40
  on:blur={() => (focused = false)}
39
41
  class:placeholder
40
42
  />
43
+ {#if suffix && !placeholder}
44
+ <div in:fade|local={{ duration: 130 }} class="suffix">{suffix}</div>
45
+ {/if}
41
46
  </FancyField>
42
47
 
43
48
  <style>
@@ -52,6 +57,8 @@
52
57
  color: var(--spectrum-global-color-gray-900);
53
58
  outline: none;
54
59
  border: none;
60
+ padding: 0;
61
+ margin: 0;
55
62
  }
56
63
  input.placeholder {
57
64
  transform: translateY(0);
@@ -60,4 +67,11 @@
60
67
  left: 0;
61
68
  height: 100%;
62
69
  }
70
+ .suffix {
71
+ color: var(--spectrum-global-color-gray-600);
72
+ transform: translateY(9px);
73
+ font-size: 15px;
74
+ line-height: 17px;
75
+ font-family: var(--font-sans);
76
+ }
63
77
  </style>