@gitlab/ui 137.0.3 → 137.1.0
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.
|
@@ -60,6 +60,16 @@ var script = {
|
|
|
60
60
|
type: Boolean,
|
|
61
61
|
required: false,
|
|
62
62
|
default: false
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* CSS class(es) applied to the inner input element, not the wrapper.
|
|
66
|
+
* Use it for hooks or styles that must target the input itself, since a
|
|
67
|
+
* `class` passed to this component lands on the wrapper under Vue 2.
|
|
68
|
+
*/
|
|
69
|
+
inputClass: {
|
|
70
|
+
type: [String, Array, Object],
|
|
71
|
+
required: false,
|
|
72
|
+
default: ''
|
|
63
73
|
}
|
|
64
74
|
},
|
|
65
75
|
data() {
|
|
@@ -96,7 +106,7 @@ var script = {
|
|
|
96
106
|
const __vue_script__ = script;
|
|
97
107
|
|
|
98
108
|
/* template */
|
|
99
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-form-password-input"},[_c('gl-form-input',_vm._g(_vm._b({staticClass:"gl-form-password-input-field",attrs:{"value":_vm.value,"type":_vm.type,"disabled":_vm.disabled}},'gl-form-input',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),_c('gl-button',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:(_vm.toggleLabel),expression:"toggleLabel"}],staticClass:"gl-form-password-input-toggle",attrs:{"category":"tertiary","size":"small","aria-label":_vm.toggleLabel,"icon":_vm.toggleIcon,"disabled":_vm.disabled},on:{"click":_vm.toggleVisibility}})],1)};
|
|
109
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-form-password-input"},[_c('gl-form-input',_vm._g(_vm._b({staticClass:"gl-form-password-input-field",class:_vm.inputClass,attrs:{"value":_vm.value,"type":_vm.type,"disabled":_vm.disabled}},'gl-form-input',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),_c('gl-button',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:(_vm.toggleLabel),expression:"toggleLabel"}],staticClass:"gl-form-password-input-toggle",attrs:{"category":"tertiary","size":"small","aria-label":_vm.toggleLabel,"icon":_vm.toggleIcon,"disabled":_vm.disabled},on:{"click":_vm.toggleVisibility}})],1)};
|
|
100
110
|
var __vue_staticRenderFns__ = [];
|
|
101
111
|
|
|
102
112
|
/* style */
|
package/package.json
CHANGED
|
@@ -61,6 +61,16 @@ export default {
|
|
|
61
61
|
required: false,
|
|
62
62
|
default: false,
|
|
63
63
|
},
|
|
64
|
+
/**
|
|
65
|
+
* CSS class(es) applied to the inner input element, not the wrapper.
|
|
66
|
+
* Use it for hooks or styles that must target the input itself, since a
|
|
67
|
+
* `class` passed to this component lands on the wrapper under Vue 2.
|
|
68
|
+
*/
|
|
69
|
+
inputClass: {
|
|
70
|
+
type: [String, Array, Object],
|
|
71
|
+
required: false,
|
|
72
|
+
default: '',
|
|
73
|
+
},
|
|
64
74
|
},
|
|
65
75
|
data() {
|
|
66
76
|
return {
|
|
@@ -98,6 +108,7 @@ export default {
|
|
|
98
108
|
<gl-form-input
|
|
99
109
|
v-bind="$attrs"
|
|
100
110
|
class="gl-form-password-input-field"
|
|
111
|
+
:class="inputClass"
|
|
101
112
|
:value="value"
|
|
102
113
|
:type="type"
|
|
103
114
|
:disabled="disabled"
|