@budibase/bbui 2.13.11 → 2.13.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.
Files changed (38) hide show
  1. package/dist/bbui.es.js +3 -3
  2. package/dist/bbui.es.js.map +1 -1
  3. package/package.json +4 -4
  4. package/src/Form/Checkbox.svelte +2 -1
  5. package/src/Form/Combobox.svelte +2 -1
  6. package/src/Form/Core/Checkbox.svelte +0 -2
  7. package/src/Form/Core/CheckboxGroup.svelte +0 -2
  8. package/src/Form/Core/Combobox.svelte +0 -3
  9. package/src/Form/Core/DatePicker.svelte +0 -13
  10. package/src/Form/Core/Dropzone.svelte +0 -5
  11. package/src/Form/Core/InputDropdown.svelte +1 -17
  12. package/src/Form/Core/Multiselect.svelte +0 -2
  13. package/src/Form/Core/Picker.svelte +0 -12
  14. package/src/Form/Core/PickerDropdown.svelte +1 -7
  15. package/src/Form/Core/RadioGroup.svelte +0 -2
  16. package/src/Form/Core/RichTextField.svelte +1 -16
  17. package/src/Form/Core/Select.svelte +0 -2
  18. package/src/Form/Core/Stepper.svelte +0 -12
  19. package/src/Form/Core/TextArea.svelte +0 -12
  20. package/src/Form/Core/TextField.svelte +0 -11
  21. package/src/Form/DatePicker.svelte +2 -1
  22. package/src/Form/Dropzone.svelte +2 -1
  23. package/src/Form/EnvDropdown.svelte +2 -1
  24. package/src/Form/Field.svelte +23 -0
  25. package/src/Form/File.svelte +2 -1
  26. package/src/Form/Input.svelte +2 -1
  27. package/src/Form/InputDropdown.svelte +2 -1
  28. package/src/Form/Multiselect.svelte +2 -1
  29. package/src/Form/PickerDropdown.svelte +2 -1
  30. package/src/Form/RadioGroup.svelte +2 -1
  31. package/src/Form/RichTextField.svelte +2 -1
  32. package/src/Form/Search.svelte +2 -1
  33. package/src/Form/Select.svelte +2 -1
  34. package/src/Form/Slider.svelte +2 -1
  35. package/src/Form/Stepper.svelte +2 -1
  36. package/src/Form/TextArea.svelte +2 -1
  37. package/src/Form/Toggle.svelte +2 -1
  38. package/src/Link/Link.svelte +1 -2
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.13.11",
4
+ "version": "2.13.13",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -36,8 +36,8 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
39
- "@budibase/shared-core": "2.13.11",
40
- "@budibase/string-templates": "2.13.11",
39
+ "@budibase/shared-core": "2.13.13",
40
+ "@budibase/string-templates": "2.13.13",
41
41
  "@spectrum-css/accordion": "3.0.24",
42
42
  "@spectrum-css/actionbutton": "1.0.1",
43
43
  "@spectrum-css/actiongroup": "1.0.1",
@@ -104,5 +104,5 @@
104
104
  }
105
105
  }
106
106
  },
107
- "gitHead": "230e8d171197a2db905600d2914decbca281f8e0"
107
+ "gitHead": "81425a13bd4a09ac74f4d2931e8fbfc660eb9e31"
108
108
  }
@@ -10,6 +10,7 @@
10
10
  export let disabled = false
11
11
  export let error = null
12
12
  export let size = "M"
13
+ export let helpText = null
13
14
 
14
15
  const dispatch = createEventDispatcher()
15
16
  const onChange = e => {
@@ -18,6 +19,6 @@
18
19
  }
19
20
  </script>
20
21
 
21
- <Field {label} {labelPosition} {error}>
22
+ <Field {helpText} {label} {labelPosition} {error}>
22
23
  <Checkbox {error} {disabled} {text} {value} {size} on:change={onChange} />
23
24
  </Field>
@@ -11,6 +11,7 @@
11
11
  export let error = null
12
12
  export let placeholder = "Choose an option or type"
13
13
  export let options = []
14
+ export let helpText = null
14
15
  export let getOptionLabel = option => extractProperty(option, "label")
15
16
  export let getOptionValue = option => extractProperty(option, "value")
16
17
 
@@ -27,7 +28,7 @@
27
28
  }
28
29
  </script>
29
30
 
30
- <Field {label} {labelPosition} {error}>
31
+ <Field {helpText} {label} {labelPosition} {error}>
31
32
  <Combobox
32
33
  {error}
33
34
  {disabled}
@@ -4,7 +4,6 @@
4
4
  import { createEventDispatcher } from "svelte"
5
5
 
6
6
  export let value = false
7
- export let error = null
8
7
  export let id = null
9
8
  export let text = null
10
9
  export let disabled = false
@@ -22,7 +21,6 @@
22
21
 
23
22
  <label
24
23
  class="spectrum-Checkbox spectrum-Checkbox--emphasized {sizeClass}"
25
- class:is-invalid={!!error}
26
24
  class:checked={value}
27
25
  class:is-indeterminate={indeterminate}
28
26
  class:readonly
@@ -6,7 +6,6 @@
6
6
  export let direction = "vertical"
7
7
  export let value = []
8
8
  export let options = []
9
- export let error = null
10
9
  export let disabled = false
11
10
  export let readonly = false
12
11
  export let getOptionLabel = option => option
@@ -34,7 +33,6 @@
34
33
  <div
35
34
  title={getOptionLabel(option)}
36
35
  class="spectrum-Checkbox spectrum-FieldGroup-item"
37
- class:is-invalid={!!error}
38
36
  class:readonly
39
37
  >
40
38
  <label
@@ -10,7 +10,6 @@
10
10
  export let placeholder = "Choose an option or type"
11
11
  export let disabled = false
12
12
  export let readonly = false
13
- export let error = null
14
13
  export let options = []
15
14
  export let getOptionLabel = option => option
16
15
  export let getOptionValue = option => option
@@ -39,12 +38,10 @@
39
38
  <div
40
39
  class="spectrum-InputGroup"
41
40
  class:is-focused={open || focus}
42
- class:is-invalid={!!error}
43
41
  class:is-disabled={disabled}
44
42
  >
45
43
  <div
46
44
  class="spectrum-Textfield spectrum-InputGroup-textfield"
47
- class:is-invalid={!!error}
48
45
  class:is-disabled={disabled}
49
46
  class:is-focused={open || focus}
50
47
  >
@@ -10,7 +10,6 @@
10
10
  export let id = null
11
11
  export let disabled = false
12
12
  export let readonly = false
13
- export let error = null
14
13
  export let enableTime = true
15
14
  export let value = null
16
15
  export let placeholder = null
@@ -188,7 +187,6 @@
188
187
  <div
189
188
  id={flatpickrId}
190
189
  class:is-disabled={disabled || readonly}
191
- class:is-invalid={!!error}
192
190
  class="flatpickr spectrum-InputGroup spectrum-Datepicker"
193
191
  class:is-focused={open}
194
192
  aria-readonly="false"
@@ -199,17 +197,7 @@
199
197
  on:click={flatpickr?.open}
200
198
  class="spectrum-Textfield spectrum-InputGroup-textfield"
201
199
  class:is-disabled={disabled}
202
- class:is-invalid={!!error}
203
200
  >
204
- {#if !!error}
205
- <svg
206
- class="spectrum-Icon spectrum-Icon--sizeM spectrum-Textfield-validationIcon"
207
- focusable="false"
208
- aria-hidden="true"
209
- >
210
- <use xlink:href="#spectrum-icon-18-Alert" />
211
- </svg>
212
- {/if}
213
201
  <input
214
202
  {disabled}
215
203
  {readonly}
@@ -227,7 +215,6 @@
227
215
  class="spectrum-Picker spectrum-Picker--sizeM spectrum-InputGroup-button"
228
216
  tabindex="-1"
229
217
  class:is-disabled={disabled}
230
- class:is-invalid={!!error}
231
218
  on:click={flatpickr?.open}
232
219
  >
233
220
  <svg
@@ -22,7 +22,6 @@
22
22
  export let handleFileTooLarge = null
23
23
  export let handleTooManyFiles = null
24
24
  export let gallery = true
25
- export let error = null
26
25
  export let fileTags = []
27
26
  export let maximum = null
28
27
  export let extensions = "*"
@@ -222,7 +221,6 @@
222
221
  {#if showDropzone}
223
222
  <div
224
223
  class="spectrum-Dropzone"
225
- class:is-invalid={!!error}
226
224
  class:disabled
227
225
  role="region"
228
226
  tabindex="0"
@@ -351,9 +349,6 @@
351
349
  .spectrum-Dropzone {
352
350
  user-select: none;
353
351
  }
354
- .spectrum-Dropzone.is-invalid {
355
- border-color: var(--spectrum-global-color-red-400);
356
- }
357
352
  input[type="file"] {
358
353
  display: none;
359
354
  }
@@ -14,7 +14,6 @@
14
14
  export let disabled = false
15
15
  export let readonly = false
16
16
  export let updateOnChange = true
17
- export let error = null
18
17
  export let options = []
19
18
  export let getOptionLabel = option => extractProperty(option, "label")
20
19
  export let getOptionValue = option => extractProperty(option, "value")
@@ -111,27 +110,12 @@
111
110
  }
112
111
  </script>
113
112
 
114
- <div
115
- class="spectrum-InputGroup"
116
- class:is-invalid={!!error}
117
- class:is-disabled={disabled}
118
- >
113
+ <div class="spectrum-InputGroup" class:is-disabled={disabled}>
119
114
  <div
120
115
  class="spectrum-Textfield spectrum-InputGroup-textfield"
121
- class:is-invalid={!!error}
122
116
  class:is-disabled={disabled}
123
117
  class:is-focused={focus}
124
118
  >
125
- {#if error}
126
- <svg
127
- class="spectrum-Icon spectrum-Icon--sizeM spectrum-Textfield-validationIcon"
128
- focusable="false"
129
- aria-hidden="true"
130
- >
131
- <use xlink:href="#spectrum-icon-18-Alert" />
132
- </svg>
133
- {/if}
134
-
135
119
  <input
136
120
  {id}
137
121
  on:click
@@ -6,7 +6,6 @@
6
6
  export let id = null
7
7
  export let placeholder = null
8
8
  export let disabled = false
9
- export let error = null
10
9
  export let options = []
11
10
  export let getOptionLabel = option => option
12
11
  export let getOptionValue = option => option
@@ -84,7 +83,6 @@
84
83
  <Picker
85
84
  on:loadMore
86
85
  {id}
87
- {error}
88
86
  {disabled}
89
87
  {readonly}
90
88
  {fieldText}
@@ -14,7 +14,6 @@
14
14
 
15
15
  export let id = null
16
16
  export let disabled = false
17
- export let error = null
18
17
  export let fieldText = ""
19
18
  export let fieldIcon = ""
20
19
  export let fieldColour = ""
@@ -113,7 +112,6 @@
113
112
  class="spectrum-Picker spectrum-Picker--sizeM"
114
113
  class:spectrum-Picker--quiet={quiet}
115
114
  {disabled}
116
- class:is-invalid={!!error}
117
115
  class:is-open={open}
118
116
  aria-haspopup="listbox"
119
117
  on:click={onClick}
@@ -142,16 +140,6 @@
142
140
  >
143
141
  {fieldText}
144
142
  </span>
145
- {#if error}
146
- <svg
147
- class="spectrum-Icon spectrum-Icon--sizeM spectrum-Picker-validationIcon"
148
- focusable="false"
149
- aria-hidden="true"
150
- aria-label="Folder"
151
- >
152
- <use xlink:href="#spectrum-icon-18-Alert" />
153
- </svg>
154
- {/if}
155
143
  <svg
156
144
  class="spectrum-Icon spectrum-UIIcon-ChevronDown100 spectrum-Picker-menuIcon"
157
145
  focusable="false"
@@ -16,7 +16,6 @@
16
16
  export let id = null
17
17
  export let placeholder = "Choose an option or type"
18
18
  export let disabled = false
19
- export let error = null
20
19
  export let secondaryOptions = []
21
20
  export let primaryOptions = []
22
21
  export let secondaryFieldText = ""
@@ -105,14 +104,9 @@
105
104
  }
106
105
  </script>
107
106
 
108
- <div
109
- class="spectrum-InputGroup"
110
- class:is-invalid={!!error}
111
- class:is-disabled={disabled}
112
- >
107
+ <div class="spectrum-InputGroup" class:is-disabled={disabled}>
113
108
  <div
114
109
  class="spectrum-Textfield spectrum-InputGroup-textfield"
115
- class:is-invalid={!!error}
116
110
  class:is-disabled={disabled}
117
111
  class:is-focused={focus}
118
112
  class:is-full-width={!secondaryOptions.length}
@@ -6,7 +6,6 @@
6
6
  export let direction = "vertical"
7
7
  export let value = null
8
8
  export let options = []
9
- export let error = null
10
9
  export let disabled = false
11
10
  export let readonly = false
12
11
  export let getOptionLabel = option => option
@@ -40,7 +39,6 @@
40
39
  <div
41
40
  title={getOptionTitle(option)}
42
41
  class="spectrum-Radio spectrum-FieldGroup-item spectrum-Radio--emphasized"
43
- class:is-invalid={!!error}
44
42
  class:readonly
45
43
  >
46
44
  <input
@@ -5,14 +5,13 @@
5
5
  export let placeholder = null
6
6
  export let disabled = false
7
7
  export let readonly = false
8
- export let error = null
9
8
  export let height = null
10
9
  export let id = null
11
10
  export let fullScreenOffset = null
12
11
  export let easyMDEOptions = null
13
12
  </script>
14
13
 
15
- <div class:error>
14
+ <div>
16
15
  <MarkdownEditor
17
16
  {value}
18
17
  {placeholder}
@@ -27,18 +26,4 @@
27
26
  </div>
28
27
 
29
28
  <style>
30
- .error :global(.EasyMDEContainer .editor-toolbar) {
31
- border-top-color: var(--spectrum-semantic-negative-color-default);
32
- border-left-color: var(--spectrum-semantic-negative-color-default);
33
- border-right-color: var(--spectrum-semantic-negative-color-default);
34
- }
35
- .error :global(.EasyMDEContainer .CodeMirror) {
36
- border-bottom-color: var(--spectrum-semantic-negative-color-default);
37
- border-left-color: var(--spectrum-semantic-negative-color-default);
38
- border-right-color: var(--spectrum-semantic-negative-color-default);
39
- }
40
- .error :global(.EasyMDEContainer .editor-preview-side) {
41
- border-bottom-color: var(--spectrum-semantic-negative-color-default);
42
- border-right-color: var(--spectrum-semantic-negative-color-default);
43
- }
44
29
  </style>
@@ -6,7 +6,6 @@
6
6
  export let id = null
7
7
  export let placeholder = "Choose an option"
8
8
  export let disabled = false
9
- export let error = null
10
9
  export let options = []
11
10
  export let getOptionLabel = option => option
12
11
  export let getOptionValue = option => option
@@ -71,7 +70,6 @@
71
70
  on:loadMore
72
71
  {quiet}
73
72
  {id}
74
- {error}
75
73
  {disabled}
76
74
  {readonly}
77
75
  {fieldText}
@@ -7,7 +7,6 @@
7
7
  export let value = null
8
8
  export let placeholder = null
9
9
  export let disabled = false
10
- export let error = null
11
10
  export let id = null
12
11
  export let readonly = false
13
12
  export let updateOnChange = true
@@ -98,20 +97,9 @@
98
97
  <div
99
98
  class="spectrum-Stepper"
100
99
  class:spectrum-Stepper--quiet={quiet}
101
- class:is-invalid={!!error}
102
100
  class:is-disabled={disabled}
103
101
  class:is-focused={focus}
104
102
  >
105
- {#if error}
106
- <svg
107
- class="spectrum-Icon spectrum-Icon--sizeM spectrum-Textfield-validationIcon"
108
- focusable="false"
109
- aria-hidden="true"
110
- >
111
- <use xlink:href="#spectrum-icon-18-Alert" />
112
- </svg>
113
- {/if}
114
-
115
103
  <div class="spectrum-Textfield spectrum-Stepper-textfield">
116
104
  <input
117
105
  {disabled}
@@ -6,7 +6,6 @@
6
6
  export let placeholder = null
7
7
  export let disabled = false
8
8
  export let readonly = false
9
- export let error = null
10
9
  export let id = null
11
10
  export let height = null
12
11
  export let minHeight = null
@@ -41,20 +40,9 @@
41
40
  <div
42
41
  style={`${heightString}${minHeightString}`}
43
42
  class="spectrum-Textfield spectrum-Textfield--multiline"
44
- class:is-invalid={!!error}
45
43
  class:is-disabled={disabled}
46
44
  class:is-focused={focus}
47
45
  >
48
- {#if error}
49
- <svg
50
- class="spectrum-Icon spectrum-Icon--sizeM
51
- spectrum-Textfield-validationIcon"
52
- focusable="false"
53
- aria-hidden="true"
54
- >
55
- <use xlink:href="#spectrum-icon-18-Alert" />
56
- </svg>
57
- {/if}
58
46
  <!-- prettier-ignore -->
59
47
  <textarea
60
48
  bind:this={textarea}
@@ -6,7 +6,6 @@
6
6
  export let placeholder = null
7
7
  export let type = "text"
8
8
  export let disabled = false
9
- export let error = null
10
9
  export let id = null
11
10
  export let readonly = false
12
11
  export let updateOnChange = true
@@ -78,19 +77,9 @@
78
77
  <div
79
78
  class="spectrum-Textfield"
80
79
  class:spectrum-Textfield--quiet={quiet}
81
- class:is-invalid={!!error}
82
80
  class:is-disabled={disabled}
83
81
  class:is-focused={focus}
84
82
  >
85
- {#if error}
86
- <svg
87
- class="spectrum-Icon spectrum-Icon--sizeM spectrum-Textfield-validationIcon"
88
- focusable="false"
89
- aria-hidden="true"
90
- >
91
- <use xlink:href="#spectrum-icon-18-Alert" />
92
- </svg>
93
- {/if}
94
83
  <input
95
84
  bind:this={field}
96
85
  {disabled}
@@ -16,6 +16,7 @@
16
16
  export let appendTo = undefined
17
17
  export let ignoreTimezones = false
18
18
  export let range = false
19
+ export let helpText = null
19
20
  const dispatch = createEventDispatcher()
20
21
 
21
22
  const onChange = e => {
@@ -30,7 +31,7 @@
30
31
  }
31
32
  </script>
32
33
 
33
- <Field {label} {labelPosition} {error}>
34
+ <Field {helpText} {label} {labelPosition} {error}>
34
35
  <DatePicker
35
36
  {error}
36
37
  {disabled}
@@ -17,6 +17,7 @@
17
17
  export let fileTags = []
18
18
  export let maximum = undefined
19
19
  export let compact = false
20
+ export let helpText = null
20
21
 
21
22
  const dispatch = createEventDispatcher()
22
23
  const onChange = e => {
@@ -25,7 +26,7 @@
25
26
  }
26
27
  </script>
27
28
 
28
- <Field {label} {labelPosition} {error}>
29
+ <Field {helpText} {label} {labelPosition} {error}>
29
30
  <CoreDropzone
30
31
  {error}
31
32
  {disabled}
@@ -16,6 +16,7 @@
16
16
  export let autofocus
17
17
  export let variables
18
18
  export let showModal
19
+ export let helpText = null
19
20
  export let environmentVariablesEnabled
20
21
  export let handleUpgradePanel
21
22
  const dispatch = createEventDispatcher()
@@ -25,7 +26,7 @@
25
26
  }
26
27
  </script>
27
28
 
28
- <Field {label} {labelPosition} {error}>
29
+ <Field {helpText} {label} {labelPosition} {error}>
29
30
  <EnvDropdown
30
31
  {updateOnChange}
31
32
  {error}
@@ -1,11 +1,13 @@
1
1
  <script>
2
2
  import "@spectrum-css/fieldlabel/dist/index-vars.css"
3
3
  import FieldLabel from "./FieldLabel.svelte"
4
+ import Icon from "../Icon/Icon.svelte"
4
5
 
5
6
  export let id = null
6
7
  export let label = null
7
8
  export let labelPosition = "above"
8
9
  export let error = null
10
+ export let helpText = null
9
11
  export let tooltip = ""
10
12
  </script>
11
13
 
@@ -17,6 +19,10 @@
17
19
  <slot />
18
20
  {#if error}
19
21
  <div class="error">{error}</div>
22
+ {:else if helpText}
23
+ <div class="helpText">
24
+ <Icon name="HelpOutline" /> <span>{helpText}</span>
25
+ </div>
20
26
  {/if}
21
27
  </div>
22
28
  </div>
@@ -39,4 +45,21 @@
39
45
  font-size: var(--spectrum-global-dimension-font-size-75);
40
46
  margin-top: var(--spectrum-global-dimension-size-75);
41
47
  }
48
+
49
+ .helpText {
50
+ display: flex;
51
+ margin-top: var(--spectrum-global-dimension-size-75);
52
+ align-items: center;
53
+ }
54
+
55
+ .helpText :global(svg) {
56
+ width: 14px;
57
+ color: var(--grey-5);
58
+ margin-right: 6px;
59
+ }
60
+
61
+ .helpText span {
62
+ color: var(--grey-7);
63
+ font-size: var(--spectrum-global-dimension-font-size-75);
64
+ }
42
65
  </style>
@@ -14,6 +14,7 @@
14
14
  export let title = null
15
15
  export let value = null
16
16
  export let tooltip = null
17
+ export let helpText = null
17
18
 
18
19
  const dispatch = createEventDispatcher()
19
20
  const onChange = e => {
@@ -22,7 +23,7 @@
22
23
  }
23
24
  </script>
24
25
 
25
- <Field {label} {labelPosition} {error} {tooltip}>
26
+ <Field {helpText} {label} {labelPosition} {error} {tooltip}>
26
27
  <CoreFile
27
28
  {error}
28
29
  {disabled}
@@ -15,6 +15,7 @@
15
15
  export let quiet = false
16
16
  export let autofocus
17
17
  export let autocomplete
18
+ export let helpText = null
18
19
 
19
20
  const dispatch = createEventDispatcher()
20
21
  const onChange = e => {
@@ -23,7 +24,7 @@
23
24
  }
24
25
  </script>
25
26
 
26
- <Field {label} {labelPosition} {error}>
27
+ <Field {helpText} {label} {labelPosition} {error}>
27
28
  <TextField
28
29
  {updateOnChange}
29
30
  {error}
@@ -15,6 +15,7 @@
15
15
  export let updateOnChange = true
16
16
  export let quiet = false
17
17
  export let autofocus
18
+ export let helpText = null
18
19
  export let options = []
19
20
 
20
21
  const dispatch = createEventDispatcher()
@@ -29,7 +30,7 @@
29
30
  }
30
31
  </script>
31
32
 
32
- <Field {label} {labelPosition} {error}>
33
+ <Field {helpText} {label} {labelPosition} {error}>
33
34
  <InputDropdown
34
35
  {updateOnChange}
35
36
  {error}
@@ -18,6 +18,7 @@
18
18
  export let autocomplete = false
19
19
  export let searchTerm = null
20
20
  export let customPopoverHeight
21
+ export let helpText = null
21
22
 
22
23
  const dispatch = createEventDispatcher()
23
24
  const onChange = e => {
@@ -26,7 +27,7 @@
26
27
  }
27
28
  </script>
28
29
 
29
- <Field {label} {labelPosition} {error}>
30
+ <Field {helpText} {label} {labelPosition} {error}>
30
31
  <Multiselect
31
32
  {error}
32
33
  {disabled}
@@ -26,6 +26,7 @@
26
26
  export let secondaryOptions = []
27
27
  export let searchTerm
28
28
  export let showClearIcon = true
29
+ export let helpText = null
29
30
 
30
31
  let primaryLabel
31
32
  let secondaryLabel
@@ -93,7 +94,7 @@
93
94
  }
94
95
  </script>
95
96
 
96
- <Field {label} {labelPosition} {error}>
97
+ <Field {helpText} {label} {labelPosition} {error}>
97
98
  <PickerDropdown
98
99
  {searchTerm}
99
100
  {autocomplete}
@@ -13,6 +13,7 @@
13
13
  export let getOptionLabel = option => extractProperty(option, "label")
14
14
  export let getOptionValue = option => extractProperty(option, "value")
15
15
  export let getOptionTitle = option => extractProperty(option, "label")
16
+ export let helpText = null
16
17
 
17
18
  const dispatch = createEventDispatcher()
18
19
  const onChange = e => {
@@ -27,7 +28,7 @@
27
28
  }
28
29
  </script>
29
30
 
30
- <Field {label} {labelPosition} {error}>
31
+ <Field {helpText} {label} {labelPosition} {error}>
31
32
  <RadioGroup
32
33
  {error}
33
34
  {disabled}
@@ -13,6 +13,7 @@
13
13
  export let id = null
14
14
  export let fullScreenOffset = null
15
15
  export let easyMDEOptions = null
16
+ export let helpText = null
16
17
 
17
18
  const dispatch = createEventDispatcher()
18
19
  const onChange = e => {
@@ -21,7 +22,7 @@
21
22
  }
22
23
  </script>
23
24
 
24
- <Field {label} {labelPosition} {error}>
25
+ <Field {helpText} {label} {labelPosition} {error}>
25
26
  <RichTextField
26
27
  {error}
27
28
  {disabled}