barbican-reset 2.2.7 → 2.2.9

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
+ }
@@ -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.7",
4
+ "barbican-reset@2.2.9",
5
5
  "/Users/pheading/Sites/eticketing-vue"
6
6
  ]
7
7
  ],
8
- "_from": "barbican-reset@2.2.7",
9
- "_id": "barbican-reset@2.2.7",
8
+ "_from": "barbican-reset@2.2.9",
9
+ "_id": "barbican-reset@2.2.9",
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.7",
38
+ "raw": "barbican-reset@2.2.9",
39
39
  "name": "barbican-reset",
40
40
  "escapedName": "barbican-reset",
41
- "rawSpec": "2.2.7",
41
+ "rawSpec": "2.2.9",
42
42
  "saveSpec": null,
43
- "fetchSpec": "2.2.7"
43
+ "fetchSpec": "2.2.9"
44
44
  },
45
45
  "_requiredBy": [
46
46
  "/"
47
47
  ],
48
- "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.2.7.tgz",
49
- "_spec": "2.2.7",
48
+ "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.2.9.tgz",
49
+ "_spec": "2.2.9",
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.7"
103
+ "version": "2.2.9"
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
@@ -1,40 +1,41 @@
1
- @import 'node_modules/bootstrap/scss/functions';
2
- @import 'node_modules/bootstrap/scss/variables';
3
- @import 'node_modules/bootstrap/scss/mixins';
4
- @import '../helpers/index';
1
+ @import "node_modules/bootstrap/scss/functions";
2
+ @import "node_modules/bootstrap/scss/variables";
3
+ @import "node_modules/bootstrap/scss/mixins";
4
+ @import "../helpers/index";
5
5
 
6
- @import 'app';
7
- @import 'header';
8
- @import 'main';
9
- @import 'footer';
10
- @import 'klaro';
11
- @import 'fonts';
12
- @import 'close-icon';
13
- @import 'table';
6
+ @import "app";
7
+ @import "header";
8
+ @import "main";
9
+ @import "footer";
10
+ @import "klaro";
11
+ @import "fonts";
12
+ @import "close-icon";
13
+ @import "table";
14
14
 
15
- @import 'br-alert';
16
- @import 'br-container';
17
- @import 'br-form-row';
18
- @import 'br-form-update';
19
- @import 'br-loader';
20
- @import 'br-wrap';
21
- @import 'br-footer';
22
- @import 'br-promo';
23
- @import 'city-of-london';
15
+ @import "br-alert";
16
+ @import "br-container";
17
+ @import "br-form-password";
18
+ @import "br-form-row";
19
+ @import "br-form-update";
20
+ @import "br-loader";
21
+ @import "br-wrap";
22
+ @import "br-footer";
23
+ @import "br-promo";
24
+ @import "city-of-london";
24
25
 
25
26
  // bootstrap component styles
26
- @import 'btn';
27
- @import 'card/index';
28
- @import 'card-deck';
29
- @import 'custom-checkbox';
30
- @import 'custom-select';
31
- @import 'custom-radio';
32
- @import 'form';
33
- @import 'list';
34
- @import 'input';
27
+ @import "btn";
28
+ @import "card/index";
29
+ @import "card-deck";
30
+ @import "custom-checkbox";
31
+ @import "custom-select";
32
+ @import "custom-radio";
33
+ @import "form";
34
+ @import "list";
35
+ @import "input";
35
36
 
36
37
  // atomic helper styles
37
- @import 'atomic';
38
+ @import "atomic";
38
39
 
39
40
  html {
40
41
  box-sizing: border-box;
@@ -79,3 +80,9 @@ p {
79
80
  p + p {
80
81
  margin-top: 1rem;
81
82
  }
83
+
84
+ // making rule for testing purposes
85
+
86
+ .test-rule {
87
+ opacity: 1;
88
+ }