@budibase/bbui 3.10.3 → 3.10.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/dist/bbui.mjs CHANGED
@@ -35126,7 +35126,7 @@ function create_fragment$1b(f) {
35126
35126
  };
35127
35127
  }
35128
35128
  function instance$1a(f, u, p) {
35129
- let { value: m = null } = u, { label: v = null } = u, { labelPosition: y = "above" } = u, { placeholder: k = null } = u, { disabled: S = !1 } = u, { updateOnChange: T = !0 } = u, { quiet: R = !1 } = u, { inputRef: L = void 0 } = u, { helpText: M = null } = u;
35129
+ let { value: m = void 0 } = u, { label: v = void 0 } = u, { labelPosition: y = "above" } = u, { placeholder: k = void 0 } = u, { disabled: S = !1 } = u, { updateOnChange: T = !0 } = u, { quiet: R = !1 } = u, { inputRef: L = void 0 } = u, { helpText: M = void 0 } = u;
35130
35130
  const x = createEventDispatcher(), N = (ee) => {
35131
35131
  p(0, m = ee.detail), x("change", ee.detail);
35132
35132
  };
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": "3.10.3",
4
+ "version": "3.10.5",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.ts",
7
7
  "module": "dist/bbui.mjs",
@@ -99,5 +99,5 @@
99
99
  }
100
100
  }
101
101
  },
102
- "gitHead": "94264027da3376c3f544676c03c0241d88bd82b0"
102
+ "gitHead": "1f720b605f4e22676836dbec26918f7e94ce2434"
103
103
  }
@@ -1,20 +1,20 @@
1
- <script>
1
+ <script lang="ts">
2
2
  import Field from "./Field.svelte"
3
3
  import Search from "./Core/Search.svelte"
4
4
  import { createEventDispatcher } from "svelte"
5
5
 
6
- export let value = null
7
- export let label = null
8
- export let labelPosition = "above"
9
- export let placeholder = null
6
+ export let value: string | undefined = undefined
7
+ export let label: string | undefined = undefined
8
+ export let labelPosition: "above" | "below" = "above"
9
+ export let placeholder: string | undefined = undefined
10
10
  export let disabled = false
11
11
  export let updateOnChange = true
12
12
  export let quiet = false
13
- export let inputRef = undefined
14
- export let helpText = null
13
+ export let inputRef: HTMLInputElement | undefined = undefined
14
+ export let helpText: string | undefined = undefined
15
15
 
16
16
  const dispatch = createEventDispatcher()
17
- const onChange = e => {
17
+ const onChange = (e: CustomEvent<string>) => {
18
18
  value = e.detail
19
19
  dispatch("change", e.detail)
20
20
  }