barbican-reset 1.6.2 → 1.6.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.
@@ -0,0 +1,35 @@
1
+ <template>
2
+
3
+ <a v-on:click="loading = true" :href="href" :class="variant ? `btn btn-${variant}` : ``">
4
+
5
+ <slot v-if="!loading" />
6
+
7
+ <dot-typing v-else />
8
+
9
+ </a>
10
+
11
+ </template>
12
+
13
+ <script>
14
+ import { DotTyping } from './br_button/components'
15
+
16
+ export default {
17
+ name: "BrAnchor",
18
+ data() {
19
+ return {
20
+ loading: false
21
+ }
22
+ },
23
+ props: {
24
+ variant: {
25
+ type: String
26
+ },
27
+ href: {
28
+ type: String
29
+ }
30
+ },
31
+ components: {
32
+ DotTyping
33
+ }
34
+ }
35
+ </script>
@@ -106,14 +106,6 @@
106
106
  @if $line { line-height: $line; }
107
107
  }
108
108
 
109
- @mixin btn-outline-header {
110
- @include button-outline(
111
- $color: $white,
112
- $background: $c-brand-orange,
113
- $border: 0.125rem,
114
- $display: 'flex');
115
- }
116
-
117
109
  @mixin btn-primary {
118
110
  @include button-solid;
119
111
  min-width: 8rem;
@@ -136,6 +128,14 @@
136
128
  @include button-outline($c-grey-night);
137
129
  }
138
130
 
131
+ @mixin btn-outline-header {
132
+ @include button-outline(
133
+ $color: $white,
134
+ $background: $c-brand-orange,
135
+ $border: 0.125rem,
136
+ $display: 'flex');
137
+ }
138
+
139
139
  @mixin btn-input-edit {
140
140
  @include button-outline($c-grey-steel);
141
141
  background-color: $c-grey-pearl;
@@ -287,6 +287,15 @@
287
287
  }
288
288
  }
289
289
 
290
+ @mixin btn-invisible {
291
+ color: inherit;
292
+ padding: 0;
293
+
294
+ @include focus {
295
+ box-shadow: none;
296
+ }
297
+ }
298
+
290
299
  @mixin btn-expand {
291
300
  display: block;
292
301
  }
package/index.js CHANGED
@@ -22,6 +22,7 @@ import PaymentLogo from './components/payment_logo'
22
22
  import SkipLink from './components/skip_link'
23
23
  import BrAlert from './components/br_alert'
24
24
  import BrButton from './components/br_button'
25
+ import BrAnchor from './components/br_anchor'
25
26
  import BrFormGroup from './components/br_form_group'
26
27
 
27
28
  export {
@@ -49,5 +50,6 @@ export {
49
50
  VideoContent,
50
51
  PaymentLogo,
51
52
  SkipLink,
52
- BrButton
53
+ BrButton,
54
+ BrAnchor
53
55
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
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": {
package/scss/_btn.scss CHANGED
@@ -80,6 +80,10 @@
80
80
  @include btn-carousel;
81
81
  }
82
82
 
83
+ &.btn-invisible {
84
+ @include btn-invisible;
85
+ }
86
+
83
87
  // modifyers
84
88
  &.expand {
85
89
  @include btn-expand;