@budibase/bbui 1.0.19-alpha.2 → 1.0.19-alpha.3
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.es.js +1 -1
- package/dist/bbui.es.js.map +1 -1
- package/package.json +2 -2
- package/src/Modal/ModalContent.svelte +6 -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": "1.0.19-alpha.
|
|
4
|
+
"version": "1.0.19-alpha.3",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"svelte-flatpickr": "^3.2.3",
|
|
83
83
|
"svelte-portal": "^1.0.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "c9f8ffdd5c30919e4d3e765b248953d754530915"
|
|
86
86
|
}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
export let showSecondaryButton = false
|
|
22
22
|
export let secondaryButtonText = undefined
|
|
23
23
|
export let secondaryAction = undefined
|
|
24
|
+
export let secondaryButtonWarning = false
|
|
24
25
|
|
|
25
26
|
const { hide, cancel } = getContext(Context.Modal)
|
|
26
27
|
let loading = false
|
|
@@ -88,8 +89,11 @@
|
|
|
88
89
|
|
|
89
90
|
{#if showSecondaryButton && secondaryButtonText && secondaryAction}
|
|
90
91
|
<div class="secondary-action">
|
|
91
|
-
<Button
|
|
92
|
-
|
|
92
|
+
<Button
|
|
93
|
+
group
|
|
94
|
+
secondary
|
|
95
|
+
warning={secondaryButtonWarning}
|
|
96
|
+
on:click={secondary}>{secondaryButtonText}</Button
|
|
93
97
|
>
|
|
94
98
|
</div>
|
|
95
99
|
{/if}
|