barbican-reset 2.2.6 → 2.2.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.
Binary file
@@ -0,0 +1,69 @@
1
+ <template>
2
+ <div class="br-form-password">
3
+ <input
4
+ @input="$emit('input', $event.target.value)"
5
+ :autocomplete="autocomplete"
6
+ :data-test="testData"
7
+ name="password"
8
+ :value="value"
9
+ :type="type"
10
+ required
11
+ :id="id"
12
+ />
13
+ <br-button class="padding-0" @click="showPassword = !showPassword">
14
+ <span class="sr-only"><template v-if="showPassword">Hide</template><template v-else>Show</template> password</span>
15
+ <show-password-icon v-if="showPassword" />
16
+ <hide-password-icon v-else />
17
+ </br-button>
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+ import { BrButton } from 'barbican-reset'
23
+ import {
24
+ HidePasswordIcon,
25
+ ShowPasswordIcon
26
+ } from 'barbican-reset/icons/password'
27
+
28
+ export default {
29
+ name: 'PasswordField',
30
+ data() {
31
+ return {
32
+ password: '',
33
+ showPassword: false
34
+ }
35
+ },
36
+ components: {
37
+ HidePasswordIcon,
38
+ ShowPasswordIcon,
39
+ BrButton
40
+ },
41
+ props: {
42
+ value: {
43
+ type: String
44
+ },
45
+ id: {
46
+ type: String,
47
+ default: 'password'
48
+ },
49
+ testData: {
50
+ type: String,
51
+ default: 'password-field'
52
+ }
53
+ },
54
+ computed: {
55
+ type() {
56
+ return this.showPassword ? 'text' : 'password'
57
+ },
58
+ autocomplete() {
59
+ return this.showPassword ? 'off' : 'current-password'
60
+ }
61
+ }
62
+ }
63
+ </script>
64
+
65
+ <style lang="scss" scoped>
66
+ .button {
67
+ padding: 0;
68
+ }
69
+ </style>
package/dist/.DS_Store CHANGED
Binary file
package/helpers/.DS_Store CHANGED
Binary file
Binary file
@@ -0,0 +1,5 @@
1
+ @mixin br-form-password {
2
+ grid-template-columns: auto 4rem;
3
+ display: grid;
4
+ gap: 1rem;
5
+ }
@@ -59,7 +59,7 @@
59
59
 
60
60
  @mixin solid-button(
61
61
  $background: $c-brand-generic,
62
- $color: $white,
62
+ $color: white,
63
63
  $border: 1px,
64
64
  $padding: false,
65
65
  $margin: false,
@@ -110,7 +110,7 @@
110
110
 
111
111
  @mixin outline-button(
112
112
  $color: $c-brand-generic,
113
- $background: $white,
113
+ $background: white,
114
114
  $border: 1px,
115
115
  $padding: false,
116
116
  $margin: false,
@@ -223,7 +223,7 @@
223
223
 
224
224
  @mixin btn-outline-header {
225
225
  @include outline-button(
226
- $color: $white,
226
+ $color: white,
227
227
  $background: $c-brand-generic,
228
228
  $border: 0.125rem,
229
229
  $display: "flex"
@@ -248,7 +248,7 @@
248
248
  }
249
249
 
250
250
  @mixin btn-power-login {
251
- @include solid-button($background: $white, $color: $c-power-blue);
251
+ @include solid-button($background: white, $color: $c-power-blue);
252
252
  }
253
253
 
254
254
  @mixin btn-info {
@@ -285,7 +285,7 @@
285
285
 
286
286
  @include focus {
287
287
  background-color: $c-grey-l44;
288
- color: $white;
288
+ color: white;
289
289
  }
290
290
  }
291
291
 
@@ -304,7 +304,7 @@
304
304
  border-radius: 50%;
305
305
 
306
306
  path.cross {
307
- fill: $white;
307
+ fill: white;
308
308
  }
309
309
 
310
310
  path.tint {
@@ -334,7 +334,7 @@
334
334
  }
335
335
 
336
336
  @mixin btn-membership-card {
337
- @include outline-button($color: $white, $background: transparent);
337
+ @include outline-button($color: white, $background: transparent);
338
338
 
339
339
  @include focus {
340
340
  &.member {
@@ -347,20 +347,20 @@
347
347
  }
348
348
 
349
349
  @mixin btn-video-login {
350
- // @include solid-button($background: $white, $color: $c-splash-videos);
350
+ @include solid-button($background: white, $color: #0a0a0a);
351
351
  }
352
352
 
353
353
  @mixin btn-cta {
354
354
  @include solid-button($background: $c-grey-l21, $display: "flex");
355
- fill: $white;
355
+ fill: white;
356
356
  }
357
357
 
358
358
  @mixin btn-carousel {
359
359
  @include solid-button($c-grey-l21);
360
- @include single-box($white);
360
+ @include single-box(white);
361
361
  border-radius: 50%;
362
362
  font-size: 0;
363
- fill: $white;
363
+ fill: white;
364
364
 
365
365
  @include media-breakpoint-down(lg) {
366
366
  padding: 0.75rem;
@@ -378,7 +378,7 @@
378
378
  }
379
379
 
380
380
  @mixin btn-menu-focus($brand: $c-brand-generic) {
381
- background-color: $white;
381
+ background-color: white;
382
382
  color: $brand;
383
383
 
384
384
  path {
@@ -389,7 +389,7 @@
389
389
  @mixin btn-menu {
390
390
  @include display-button(flex, 0.75);
391
391
  @include outline-button(
392
- $color: $white,
392
+ $color: white,
393
393
  $background: $c-brand-generic,
394
394
  $padding: 0 0.75rem,
395
395
  $margin: 0.25rem,
@@ -410,7 +410,7 @@
410
410
  @mixin btn-basket {
411
411
  @include display-button(flex, 0.5);
412
412
  @include solid-button(
413
- $background: $white,
413
+ $background: white,
414
414
  $color: $c-brand-generic,
415
415
  $padding: 0 0.75rem,
416
416
  $margin: 0.25rem,
@@ -1,4 +1,3 @@
1
-
2
1
  @mixin inset($val: 0) {
3
2
  bottom: $val;
4
3
  right: $val;
@@ -7,7 +6,7 @@
7
6
  }
8
7
 
9
8
  @mixin sr-only {
10
- clip: rect(0,0,0,0);
9
+ clip: rect(0, 0, 0, 0);
11
10
  position: absolute;
12
11
  overflow: hidden;
13
12
  margin: -1px;
@@ -17,21 +16,22 @@
17
16
  border: 0;
18
17
  }
19
18
 
20
- @import "br-alert";
21
- @import "br-form-row";
22
- @import "br-form-update";
23
- @import "br-footer";
24
- @import "account/orders";
25
- @import "basket";
26
- @import "buttons";
27
- @import "card";
28
- @import "content";
29
- @import "city-of-london";
30
- @import "core";
31
- @import "drupal/index.scss";
32
- @import "festival";
33
- @import "focus";
34
- @import "font";
35
- @import "loading";
36
- @import "input";
37
- @import "table";
19
+ @import 'br-alert';
20
+ @import 'br-form-row';
21
+ @import 'br-form-update';
22
+ @import 'br-form-password';
23
+ @import 'br-footer';
24
+ @import 'account/orders';
25
+ @import 'basket';
26
+ @import 'buttons';
27
+ @import 'card';
28
+ @import 'content';
29
+ @import 'city-of-london';
30
+ @import 'core';
31
+ @import 'drupal/index.scss';
32
+ @import 'festival';
33
+ @import 'focus';
34
+ @import 'font';
35
+ @import 'loading';
36
+ @import 'input';
37
+ @import 'table';
package/icons/.DS_Store CHANGED
Binary file
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <svg viewBox="0 0 48 48" width="30">
3
+ <path
4
+ d="M40.8,44.8l-8.4-8.2c-1.2,0.5-2.5,0.8-4,1.1C27,37.9,25.5,38,24,38c-4.9,0-9.3-1.4-13.2-4.1S3.9,27.6,2,23 c0.7-1.7,1.6-3.4,2.8-5.1s2.6-3.2,4.3-4.7L2.8,6.9l2.1-2.2l37.8,37.8L40.8,44.8z M24,31.5c0.5,0,1,0,1.5-0.1s1-0.2,1.4-0.4L16,20.1 c-0.2,0.4-0.3,0.9-0.4,1.4s-0.1,1-0.1,1.5c0,2.4,0.8,4.4,2.5,6C19.7,30.7,21.7,31.5,24,31.5z M37.9,33.5L31.5,27 c0.3-0.5,0.6-1.2,0.8-1.9c0.2-0.7,0.3-1.4,0.3-2.2c0-2.4-0.8-4.4-2.5-6c-1.6-1.7-3.7-2.5-6-2.5c-0.7,0-1.4,0.1-2.1,0.2 c-0.7,0.2-1.3,0.4-1.9,0.8L14.4,10c1.2-0.5,2.7-1,4.5-1.4C20.7,8.2,22.5,8,24.2,8c4.8,0,9.1,1.4,13.1,4.1S44.2,18.4,46,23 c-0.9,2.1-2,4.1-3.3,5.9S39.7,32.2,37.9,33.5z M29.3,24.9l-7.1-7.1c1-0.4,2-0.4,3-0.2c1,0.2,1.9,0.7,2.7,1.4 c0.8,0.8,1.3,1.6,1.6,2.6C29.8,22.5,29.7,23.6,29.3,24.9z"
5
+ />
6
+ </svg>
7
+ </template>
8
+
9
+ <script>
10
+ export default {
11
+ name: 'HidePassword'
12
+ }
13
+ </script>
@@ -0,0 +1,4 @@
1
+ import HidePasswordIcon from './hide'
2
+ import ShowPasswordIcon from './show'
3
+
4
+ export { HidePasswordIcon, ShowPasswordIcon }
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <svg width="30" viewBox="0 0 48 48">
3
+ <path
4
+ d="M24,38c-4.9,0-9.3-1.4-13.2-4.2S3.9,27.5,2,23c1.9-4.5,4.9-8.1,8.8-10.9S19.1,8,24,8s9.3,1.4,13.2,4.1S44.1,18.5,46,23 c-1.9,4.5-4.9,8.1-8.8,10.8S28.9,38,24,38z M24,32.3c2.6,0,4.8-0.9,6.6-2.7c1.9-1.8,2.7-4.1,2.7-6.6s-0.9-4.8-2.7-6.6 c-1.8-1.9-4.1-2.8-6.6-2.8s-4.8,0.9-6.6,2.8c-1.9,1.8-2.8,4.1-2.8,6.6s0.9,4.8,2.8,6.6C19.2,31.5,21.4,32.3,24,32.3z M24,28.6 c-1.6,0-2.9-0.5-4-1.6s-1.6-2.4-1.6-4s0.5-2.9,1.6-4s2.4-1.6,4-1.6s2.9,0.5,4,1.6s1.6,2.4,1.6,4s-0.5,2.9-1.6,4S25.6,28.6,24,28.6z"
5
+ />
6
+ </svg>
7
+ </template>
8
+
9
+ <script>
10
+ export default {
11
+ name: 'ShowPassword'
12
+ }
13
+ </script>
package/index.js CHANGED
@@ -1,34 +1,35 @@
1
- import EventSummary from './components/event_summary'
2
- import AccountTitle from './components/account_title'
3
- import RelatedTitle from './components/related_title'
4
- import RelatedCard from './components/related_card'
5
- import RelatedRow from './components/related_row'
6
- import TypeText from './components/type_text'
7
- import Placeholder from './components/placeholder'
8
- import CardDisplay from './components/card_display'
9
- import FluidIframe from './components/fluid_iframe'
10
- import HelpRow from './components/help_row'
11
- import VideoContent from './components/video_content'
12
- import PaymentLogo from './components/payment_logo'
13
- import SkipLink from './components/skip_link'
1
+ import EventSummary from "./components/event_summary";
2
+ import AccountTitle from "./components/account_title";
3
+ import RelatedTitle from "./components/related_title";
4
+ import RelatedCard from "./components/related_card";
5
+ import RelatedRow from "./components/related_row";
6
+ import TypeText from "./components/type_text";
7
+ import Placeholder from "./components/placeholder";
8
+ import CardDisplay from "./components/card_display";
9
+ import FluidIframe from "./components/fluid_iframe";
10
+ import HelpRow from "./components/help_row";
11
+ import VideoContent from "./components/video_content";
12
+ import PaymentLogo from "./components/payment_logo";
13
+ import SkipLink from "./components/skip_link";
14
14
 
15
- import BrAlert from './components/br_alert'
16
- import BrAnchor from './components/br_anchor'
17
- import BrButton from './components/br_button'
18
- import BrConfirmDone from './components/br_confirm_done'
19
- import BrConfirmEmail from './components/br_confirm_email'
20
- import BrContainer from './components/br_container'
21
- import BrFormBlock from './components/br_form_block'
22
- import BrFormRow from './components/br_form_row'
23
- import BrFormUpdate from './components/br_form_update'
24
- import BrLoader from './components/br_loader'
25
- import BrWrap from './components/br_wrap'
15
+ import BrAlert from "./components/br_alert";
16
+ import BrAnchor from "./components/br_anchor";
17
+ import BrButton from "./components/br_button";
18
+ import BrConfirmDone from "./components/br_confirm_done";
19
+ import BrConfirmEmail from "./components/br_confirm_email";
20
+ import BrContainer from "./components/br_container";
21
+ import BrFormBlock from "./components/br_form_block";
22
+ import BrFormRow from "./components/br_form_row";
23
+ import BrFormUpdate from "./components/br_form_update";
24
+ import BrFormPassword from "./components/br_form_password";
25
+ import BrLoader from "./components/br_loader";
26
+ import BrWrap from "./components/br_wrap";
26
27
 
27
- import BrFooterUpper from './components/br_footer/upper'
28
- import BrFooterLower from './components/br_footer/lower'
28
+ import BrFooterUpper from "./components/br_footer/upper";
29
+ import BrFooterLower from "./components/br_footer/lower";
29
30
 
30
- export {
31
- BrLoader,
31
+ export {
32
+ BrLoader,
32
33
  BrAlert,
33
34
  RelatedTitle,
34
35
  RelatedCard,
@@ -39,6 +40,7 @@ export {
39
40
  Placeholder,
40
41
  BrFormBlock,
41
42
  BrFormUpdate,
43
+ BrFormPassword,
42
44
  BrFormRow,
43
45
  EventSummary,
44
46
  BrFooterLower,
@@ -53,5 +55,5 @@ export {
53
55
  BrAnchor,
54
56
  BrConfirmDone,
55
57
  BrConfirmEmail,
56
- BrWrap
57
- };
58
+ BrWrap,
59
+ };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "_args": [
3
3
  [
4
- "barbican-reset@2.2.6",
4
+ "barbican-reset@2.2.8",
5
5
  "/Users/pheading/Sites/eticketing-vue"
6
6
  ]
7
7
  ],
8
- "_from": "barbican-reset@2.2.6",
9
- "_id": "barbican-reset@2.2.6",
8
+ "_from": "barbican-reset@2.2.8",
9
+ "_id": "barbican-reset@2.2.8",
10
10
  "_inBundle": false,
11
11
  "_integrity": "sha512-9QMrzuoZ/NZfFlFagC6go3ofn5hBhU9rtSPEeGH0krwY5dBKOlfs8oGIvqUaEGFKI+jQ3spuDOQoeyYK5NRiQw==",
12
12
  "_location": "/barbican-reset",
@@ -35,18 +35,18 @@
35
35
  "_requested": {
36
36
  "type": "version",
37
37
  "registry": true,
38
- "raw": "barbican-reset@2.2.6",
38
+ "raw": "barbican-reset@2.2.8",
39
39
  "name": "barbican-reset",
40
40
  "escapedName": "barbican-reset",
41
- "rawSpec": "2.2.6",
41
+ "rawSpec": "2.2.8",
42
42
  "saveSpec": null,
43
- "fetchSpec": "2.2.6"
43
+ "fetchSpec": "2.2.8"
44
44
  },
45
45
  "_requiredBy": [
46
46
  "/"
47
47
  ],
48
- "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.2.6.tgz",
49
- "_spec": "2.2.6",
48
+ "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.2.8.tgz",
49
+ "_spec": "2.2.8",
50
50
  "_where": "/Users/pheading/Sites/eticketing-vue",
51
51
  "author": {
52
52
  "name": "Paul Heading"
@@ -100,5 +100,5 @@
100
100
  "watch:patterns": "cd patterns && gulp watch"
101
101
  },
102
102
  "style": "dist/css/barbican-reset.css",
103
- "version": "2.2.6"
103
+ "version": "2.2.8"
104
104
  }
Binary file
package/scss/_atomic.scss CHANGED
@@ -62,6 +62,10 @@ $paddings05: 'padding-top', 'padding-bottom', 'padding-right', 'padding-left';
62
62
  margin: 0;
63
63
  }
64
64
 
65
+ .padding-0 {
66
+ padding: 0;
67
+ }
68
+
65
69
  .margin-bottom-0 {
66
70
  margin-bottom: 0;
67
71
  }
@@ -0,0 +1,3 @@
1
+ .br-form-password {
2
+ @include br-form-password;
3
+ }
@@ -1,8 +1,7 @@
1
-
2
1
  .br-form-update {
3
2
  @include br-form-update;
4
3
  }
5
4
 
6
5
  .br-form-update--input {
7
6
  @include br-form-update--input;
8
- }
7
+ }
package/scss/index.scss CHANGED
@@ -14,6 +14,7 @@
14
14
 
15
15
  @import 'br-alert';
16
16
  @import 'br-container';
17
+ @import 'br-form-password';
17
18
  @import 'br-form-row';
18
19
  @import 'br-form-update';
19
20
  @import 'br-loader';