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,OAAF,EAAW,UAAU,OAAV,CAAkB,OAAlB,CAA0B,YAA1B,CAAuC,MAAM,OAAN,IAAiB,MAAM,KAA9D,EAAqE,IAArE,CAAX,EAAuF,QAAvF,CAAP;AACD;AA/CqC,CAAzB,CAAf","sourcesContent":["// Styles\nimport '../../stylus/components/_labels.styl'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable, { functionalThemeClasses } from '../../mixins/themeable'\n\n// Types\nimport { VNode } from 'vue'\nimport mixins from '../../util/mixins'\n\n// Helpers\nimport { convertToUnit } from '../../util/helpers'\n\n/* @vue/component */\nexport default mixins(Themeable).extend({\n name: 'v-label',\n\n functional: true,\n\n props: {\n absolute: Boolean,\n color: {\n type: String,\n default: 'primary'\n },\n disabled: Boolean,\n focused: Boolean,\n for: String,\n left: {\n type: [Number, String],\n default: 0\n },\n right: {\n type: [Number, String],\n default: 'auto'\n },\n value: Boolean\n },\n\n render (h, ctx): VNode {\n const { children, listeners, props } = ctx\n const data = {\n staticClass: 'v-label',\n 'class': {\n 'v-label--active': props.value,\n 'v-label--is-disabled': props.disabled,\n ...functionalThemeClasses(ctx)\n },\n attrs: {\n for: props.for,\n 'aria-hidden': !props.for\n },\n on: listeners,\n style: {\n left: convertToUnit(props.left),\n right: convertToUnit(props.right),\n position: props.absolute ? 'absolute' : 'relative'\n }\n }\n\n return h('label', Colorable.options.methods.setTextColor(props.focused && props.color, data), children)\n }\n})\n"],"sourceRoot":""}
|