@concretecms/bedrock 1.3.0 → 1.3.1

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,49 @@
1
+ <template>
2
+ <div class="input-group">
3
+ <input
4
+ class="form-control"
5
+ autocomplete="off"
6
+ value=""
7
+ :name="name"
8
+ :id="name"
9
+ :type="inputType"
10
+ />
11
+ <button v-if="toggler" type="button" class="input-group-icon" @click="toggle()">
12
+ <i :class="`fas fa-${iconName}`" aria-hidden="true"></i>
13
+ </button>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ data() {
20
+ return {
21
+ passwordVisible: false,
22
+ inputType: 'password',
23
+ iconName: 'eye'
24
+ }
25
+ },
26
+ props: {
27
+ name: {
28
+ type: String
29
+ },
30
+ toggler: {
31
+ type: Boolean,
32
+ default: true
33
+ }
34
+ },
35
+ methods: {
36
+ toggle() {
37
+ this.passwordVisible = !this.passwordVisible
38
+
39
+ if (this.passwordVisible === true) {
40
+ this.inputType = 'text'
41
+ this.iconName = 'eye-slash'
42
+ } else {
43
+ this.inputType = 'password'
44
+ this.iconName = 'eye'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ </script>
@@ -33,6 +33,7 @@ import ColorPageCustomizerWidget from './customizer/ColorPageCustomizerWidget'
33
33
  import ThemeCustomizerPreview from './customizer/ThemeCustomizerPreview'
34
34
  import ToolbarSliderWidget from './customizer/block/ToolbarSliderWidget'
35
35
  import ToolbarSectionWidget from './customizer/block/ToolbarSectionWidget'
36
+ import PasswordInput from './form/PasswordInput'
36
37
 
37
38
  // Export our component library
38
39
  export default {
@@ -70,5 +71,6 @@ export default {
70
71
  ThemeCustomizerPreview,
71
72
  ToolbarSliderWidget,
72
73
  ToolbarSectionWidget,
73
- ColorPageCustomizerWidget
74
+ ColorPageCustomizerWidget,
75
+ PasswordInput
74
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concretecms/bedrock",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "The asset framework and dependencies for Concrete CMS.",
5
5
  "scripts": {
6
6
  "lint": "standardx \"**/*.{js,vue}\" && stylelint assets/**/*.{scss,vue}",