barbican-reset 1.4.6 → 1.5.0

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,5 @@
1
+ import RemoveTicket from './remove_ticket'
2
+
3
+ export {
4
+ RemoveTicket
5
+ };
@@ -0,0 +1,57 @@
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
+ remove
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
+ removing ...
19
+ </template>
20
+ </template>
21
+
22
+ <template v-else-if="state === 'loaded'">
23
+ <template v-if="$slots.loaded">
24
+ <slot name="loaded" />
25
+ </template>
26
+ <template v-else>
27
+ removed!
28
+ </template>
29
+ </template>
30
+
31
+ <template v-else-if="state === 'error'">
32
+ <template v-if="$slots.error">
33
+ <slot name="error" />
34
+ </template>
35
+ <template v-else>
36
+ {{ state }}
37
+ </template>
38
+ </template>
39
+
40
+ </div>
41
+ </template>
42
+
43
+ <script>
44
+ export default {
45
+ name: 'RemoveTicket',
46
+ props: {
47
+ state: {
48
+ type: String,
49
+ default: "default"
50
+ }
51
+ },
52
+ }
53
+ </script>
54
+
55
+ <style>
56
+
57
+ </style>
@@ -0,0 +1,77 @@
1
+ <template>
2
+ <b-button @click="$emit('click')" :variant="variant" :type="type">
3
+
4
+ <remove-ticket v-if="variant === 'remove-ticket'" :state="state">
5
+ <template v-for="(index, name) in $slots" v-slot:[name]>
6
+ <slot :name="name" />
7
+ </template>
8
+ </remove-ticket>
9
+
10
+ <template v-else>
11
+
12
+ <template v-if="state === 'default'">
13
+ <template v-if="$slots.default">
14
+ <slot name="default" />
15
+ </template>
16
+ <template v-else>
17
+ {{ state }}
18
+ </template>
19
+ </template>
20
+
21
+ <template v-else-if="state === 'loading'">
22
+ <template v-if="$slots.loading">
23
+ <slot name="loading" />
24
+ </template>
25
+ <template v-else>
26
+ {{ state }}
27
+ </template>
28
+ </template>
29
+
30
+ <template v-else-if="state === 'loaded'">
31
+ <template v-if="$slots.loaded">
32
+ <slot name="loaded" />
33
+ </template>
34
+ <template v-else>
35
+ {{ state }}
36
+ </template>
37
+ </template>
38
+
39
+ <template v-else-if="state === 'error'">
40
+ <template v-if="$slots.error">
41
+ <slot name="error" />
42
+ </template>
43
+ <template v-else>
44
+ {{ state }}
45
+ </template>
46
+ </template>
47
+
48
+ </template>
49
+
50
+ </b-button>
51
+ </template>
52
+
53
+ <script>
54
+ import { BButton } from 'bootstrap-vue'
55
+ import { RemoveTicket } from './br_button/components'
56
+
57
+ export default {
58
+ name: "BrButton",
59
+ props: {
60
+ state: {
61
+ type: String,
62
+ default: "default"
63
+ },
64
+ variant: {
65
+ type: String
66
+ },
67
+ type: {
68
+ type: String,
69
+ default: "button"
70
+ }
71
+ },
72
+ components: {
73
+ BButton,
74
+ RemoveTicket
75
+ }
76
+ }
77
+ </script>
@@ -19,20 +19,14 @@ export default {
19
19
  <style lang="scss" module>
20
20
 
21
21
  .skiplink {
22
- border: 0.25rem solid $black;
22
+ border: 0.25rem solid $c-grey-night;
23
+ border-radius: $border-radius-lg;
23
24
  background-color: $white;
24
- display: inline-block;
25
- border-radius: 0.5rem;
25
+ color: $c-grey-night;
26
26
  position: absolute;
27
27
  padding: 0.5rem;
28
- color: $black;
29
- margin: auto;
30
- width: 12rem;
31
28
  z-index: -1;
32
- top: 0.5rem;
33
29
  opacity: 0;
34
- right: 0;
35
- left: 0;
36
30
 
37
31
  @include focus {
38
32
  opacity: 1;
@@ -74,6 +74,10 @@
74
74
  border: $border solid $color;
75
75
  background-color: $color;
76
76
  color: $background;
77
+
78
+ svg {
79
+ fill: $background;
80
+ }
77
81
  }
78
82
  }
79
83
 
@@ -17,4 +17,12 @@
17
17
  @import "festival.scss";
18
18
  @import "focus.scss";
19
19
  @import "font.scss";
20
- @import "loading.scss";
20
+ @import "loading.scss";
21
+
22
+ @mixin table_link {
23
+ @include focus {
24
+ @include single-box($c-grey-night);
25
+ background-color: $c-grey-night;
26
+ color: $white;
27
+ }
28
+ }
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.6",
3
+ "version": "1.5.0",
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": {
@@ -51,4 +51,8 @@ table.etickets {
51
51
  display: none;
52
52
  }
53
53
  }
54
+
55
+ a {
56
+ @include table_link;
57
+ }
54
58
  }
@@ -13,7 +13,7 @@ table.orders {
13
13
  }
14
14
  }
15
15
 
16
- thead tr, tbody tr.active {
16
+ thead tr, tbody tr {
17
17
  border: 1px solid $c-grey-pearl;
18
18
  display: grid;
19
19
 
@@ -44,6 +44,12 @@ table.orders {
44
44
  }
45
45
  }
46
46
 
47
+ tr.full-width {
48
+ justify-content: center;
49
+ grid-template: none;
50
+ border: none;
51
+ }
52
+
47
53
  label {
48
54
  font-size: $font-size-lg;
49
55
 
@@ -51,4 +57,8 @@ table.orders {
51
57
  display: none;
52
58
  }
53
59
  }
60
+
61
+ a {
62
+ @include table_link;
63
+ }
54
64
  }