barbican-reset 1.5.7 → 1.5.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.
@@ -1,9 +1,7 @@
1
1
  import RemoveTicket from './remove_ticket'
2
2
  import DotTyping from './dot_typing'
3
- import OutlinePrimary from './outline_primary'
4
3
 
5
4
  export {
6
5
  RemoveTicket,
7
- DotTyping,
8
- OutlinePrimary
6
+ DotTyping
9
7
  };
@@ -33,7 +33,7 @@
33
33
  <slot name="error" />
34
34
  </template>
35
35
  <template v-else>
36
- {{ state }}
36
+ {{ state.toUpperCase() }}
37
37
  </template>
38
38
  </template>
39
39
 
@@ -10,12 +10,6 @@
10
10
  </template>
11
11
  </remove-ticket>
12
12
 
13
- <outline-primary v-else-if="variant === 'outline-primary'" :state="state">
14
- <template v-for="(index, name) in $slots" v-slot:[name]>
15
- <slot :name="name" />
16
- </template>
17
- </outline-primary>
18
-
19
13
  <template v-else>
20
14
 
21
15
  <template v-if="state === 'default'">
@@ -23,7 +17,7 @@
23
17
  <slot name="default" />
24
18
  </template>
25
19
  <template v-else>
26
- {{ state }}
20
+ {{ titleCase(state) }}
27
21
  </template>
28
22
  </template>
29
23
 
@@ -31,9 +25,7 @@
31
25
  <template v-if="$slots.loading">
32
26
  <slot name="loading" />
33
27
  </template>
34
- <template v-else>
35
- {{ state }}
36
- </template>
28
+ <dot-typing v-else />
37
29
  </template>
38
30
 
39
31
  <template v-else-if="state === 'loaded'">
@@ -41,7 +33,7 @@
41
33
  <slot name="loaded" />
42
34
  </template>
43
35
  <template v-else>
44
- {{ state }}
36
+ {{ titleCase(state) }}
45
37
  </template>
46
38
  </template>
47
39
 
@@ -50,7 +42,7 @@
50
42
  <slot name="error" />
51
43
  </template>
52
44
  <template v-else>
53
- {{ state }}
45
+ {{ titleCase(state) }}
54
46
  </template>
55
47
  </template>
56
48
 
@@ -61,7 +53,7 @@
61
53
 
62
54
  <script>
63
55
  import { BButton } from 'bootstrap-vue'
64
- import { RemoveTicket, OutlinePrimary } from './br_button/components'
56
+ import { RemoveTicket, DotTyping } from './br_button/components'
65
57
 
66
58
  export default {
67
59
  name: "BrButton",
@@ -78,6 +70,11 @@ export default {
78
70
  default: "button"
79
71
  }
80
72
  },
73
+ methods: {
74
+ titleCase(str) {
75
+ return str.toLowerCase().split(' ').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
76
+ }
77
+ },
81
78
  computed: {
82
79
  loading() {
83
80
  return this.state === "loading" ? "true" : "false";
@@ -86,7 +83,7 @@ export default {
86
83
  components: {
87
84
  BButton,
88
85
  RemoveTicket,
89
- OutlinePrimary
86
+ DotTyping
90
87
  }
91
88
  }
92
89
  </script>
@@ -43,6 +43,10 @@
43
43
  @if $display { @include button-display($display, $padding * 0.625); }
44
44
  @if $line { line-height: $line; }
45
45
 
46
+ path {
47
+ fill: $color;
48
+ }
49
+
46
50
  @include focus {
47
51
  @include double-box($color, $background);
48
52
  border: $border solid $background;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.5.7",
3
+ "version": "1.5.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": {
@@ -1,60 +0,0 @@
1
- <template>
2
- <div>
3
-
4
- <template v-if="state === 'default'">
5
- <template v-if="$slots.default">
6
- <slot name="default" />
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
- <dot-typing v-else />
18
- </template>
19
-
20
- <template v-else-if="state === 'loaded'">
21
- <template v-if="$slots.loaded">
22
- <slot name="loaded" />
23
- </template>
24
- <template v-else>
25
- {{ state }}
26
- </template>
27
- </template>
28
-
29
- <template v-else-if="state === 'error'">
30
- <template v-if="$slots.error">
31
- <slot name="error" />
32
- </template>
33
- <template v-else>
34
- {{ state }}
35
- </template>
36
- </template>
37
-
38
- </div>
39
- </template>
40
-
41
- <script>
42
- import { DotTyping } from './components'
43
-
44
- export default {
45
- name: 'OutlinePrimary',
46
- components: {
47
- DotTyping
48
- },
49
- props: {
50
- state: {
51
- type: String,
52
- default: "default"
53
- }
54
- },
55
- }
56
- </script>
57
-
58
- <style>
59
-
60
- </style>