barbican-reset 2.2.7 → 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.
- package/components/.DS_Store +0 -0
- package/components/br_form_password.vue +69 -0
- package/dist/.DS_Store +0 -0
- package/helpers/.DS_Store +0 -0
- package/helpers/mixins/.DS_Store +0 -0
- package/helpers/mixins/_br-form-password.scss +5 -0
- package/helpers/mixins/index.scss +20 -20
- package/icons/.DS_Store +0 -0
- package/icons/password/hide.vue +13 -0
- package/icons/password/index.js +4 -0
- package/icons/password/show.vue +13 -0
- package/index.js +32 -30
- package/package.json +9 -9
- package/patterns/.DS_Store +0 -0
- package/scss/_atomic.scss +4 -0
- package/scss/_br-form-password.scss +3 -0
- package/scss/_br-form-update.scss +1 -2
- package/scss/index.scss +1 -0
package/components/.DS_Store
CHANGED
|
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
|
|
@@ -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
|
|
21
|
-
@import
|
|
22
|
-
@import
|
|
23
|
-
@import
|
|
24
|
-
@import
|
|
25
|
-
@import
|
|
26
|
-
@import
|
|
27
|
-
@import
|
|
28
|
-
@import
|
|
29
|
-
@import
|
|
30
|
-
@import
|
|
31
|
-
@import
|
|
32
|
-
@import
|
|
33
|
-
@import
|
|
34
|
-
@import
|
|
35
|
-
@import
|
|
36
|
-
@import
|
|
37
|
-
@import
|
|
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,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
|
|
2
|
-
import AccountTitle from
|
|
3
|
-
import RelatedTitle from
|
|
4
|
-
import RelatedCard from
|
|
5
|
-
import RelatedRow from
|
|
6
|
-
import TypeText from
|
|
7
|
-
import Placeholder from
|
|
8
|
-
import CardDisplay from
|
|
9
|
-
import FluidIframe from
|
|
10
|
-
import HelpRow from
|
|
11
|
-
import VideoContent from
|
|
12
|
-
import PaymentLogo from
|
|
13
|
-
import SkipLink from
|
|
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
|
|
16
|
-
import BrAnchor from
|
|
17
|
-
import BrButton from
|
|
18
|
-
import BrConfirmDone from
|
|
19
|
-
import BrConfirmEmail from
|
|
20
|
-
import BrContainer from
|
|
21
|
-
import BrFormBlock from
|
|
22
|
-
import BrFormRow from
|
|
23
|
-
import BrFormUpdate from
|
|
24
|
-
import
|
|
25
|
-
import
|
|
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
|
|
28
|
-
import BrFooterLower from
|
|
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.
|
|
4
|
+
"barbican-reset@2.2.8",
|
|
5
5
|
"/Users/pheading/Sites/eticketing-vue"
|
|
6
6
|
]
|
|
7
7
|
],
|
|
8
|
-
"_from": "barbican-reset@2.2.
|
|
9
|
-
"_id": "barbican-reset@2.2.
|
|
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.
|
|
38
|
+
"raw": "barbican-reset@2.2.8",
|
|
39
39
|
"name": "barbican-reset",
|
|
40
40
|
"escapedName": "barbican-reset",
|
|
41
|
-
"rawSpec": "2.2.
|
|
41
|
+
"rawSpec": "2.2.8",
|
|
42
42
|
"saveSpec": null,
|
|
43
|
-
"fetchSpec": "2.2.
|
|
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.
|
|
49
|
-
"_spec": "2.2.
|
|
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.
|
|
103
|
+
"version": "2.2.8"
|
|
104
104
|
}
|
|
Binary file
|
package/scss/_atomic.scss
CHANGED