@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/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.2",
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": "13dd988c51c1fd2ebfddeac8476577f52e4516cf"
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 group secondary on:click={secondary}
92
- >{secondaryButtonText}</Button
92
+ <Button
93
+ group
94
+ secondary
95
+ warning={secondaryButtonWarning}
96
+ on:click={secondary}>{secondaryButtonText}</Button
93
97
  >
94
98
  </div>
95
99
  {/if}