barbican-reset 1.4.7 → 1.4.8

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.
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <b-button @click="$emit('click')" :variant="variant">
3
+
4
+ <template v-if="state === 'ready'">
5
+ <template v-if="$slots.ready">
6
+ <slot name="ready" />
7
+ </template>
8
+ <template v-else>
9
+ {{ state }}
10
+ </template>
11
+ </template>
12
+
13
+ <template v-else-if="state === 'loading'">
14
+ <template v-if="$slots.loading">
15
+ <slot name="loading" />
16
+ </template>
17
+ <template v-else>
18
+ {{ state }}
19
+ </template>
20
+ </template>
21
+
22
+ <template v-else-if="state === 'error'">
23
+ <template v-if="$slots.error">
24
+ <slot name="error" />
25
+ </template>
26
+ <template v-else>
27
+ {{ state }}
28
+ </template>
29
+ </template>
30
+
31
+ <template v-else-if="state === 'updated'">
32
+ <template v-if="$slots.updated">
33
+ <slot name="updated" />
34
+ </template>
35
+ <template v-else>
36
+ {{ state }}
37
+ </template>
38
+ </template>
39
+
40
+ </b-button>
41
+ </template>
42
+
43
+ <script>
44
+ import { BButton } from 'bootstrap-vue'
45
+
46
+ export default {
47
+ name: "BrButton",
48
+ props: {
49
+ state: {
50
+ type: String,
51
+ default: "ready"
52
+ },
53
+ variant: {
54
+ type: String
55
+ }
56
+ },
57
+ components: {
58
+ BButton
59
+ }
60
+ }
61
+ </script>
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  import Container from './components/container'
3
2
  import EventSummary from './components/event_summary'
4
3
  import AccountTitle from './components/account_title'
@@ -23,6 +22,7 @@ import HelpRow from './components/help_row'
23
22
  import VideoContent from './components/video_content'
24
23
  import PaymentLogo from './components/payment_logo'
25
24
  import SkipLink from './components/skip_link'
25
+ import BrButton from './components/br_button'
26
26
 
27
27
  export {
28
28
  Loader,
@@ -48,5 +48,6 @@ export {
48
48
  CardDisplay,
49
49
  VideoContent,
50
50
  PaymentLogo,
51
- SkipLink
51
+ SkipLink,
52
+ BrButton
52
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {