@mekari/pixel-input
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -228,2 +228,3 @@ 'use strict'; | ||
return { | ||
controlId: this.controlId, | ||
isReadOnly: this.isReadOnly, | ||
@@ -301,2 +302,3 @@ isDisabled: this.isDisabled, | ||
render(h) { | ||
const controlId = this.getFormControls.controlId; | ||
return h(pixelBox.MpBox, { | ||
@@ -324,2 +326,3 @@ attrs: { | ||
placeholder: this.placeholder, | ||
id: controlId, | ||
readonly: this.getFormControls.isReadOnly, | ||
@@ -332,4 +335,4 @@ disabled: this.getFormControls.isDisabled, | ||
'aria-required': this.getFormControls.isRequired, | ||
'aria-label': this.ariaLabel, | ||
'aria-labelledby': this.ariaLabelledBy, | ||
'aria-label': this.ariaLabel || controlId && `${controlId}-control-label`, | ||
'aria-labelledby': this.ariaLabelledBy || controlId && `${controlId}-help-text`, | ||
...this.computedAttrs | ||
@@ -336,0 +339,0 @@ }, |
@@ -228,2 +228,3 @@ 'use strict'; | ||
return { | ||
controlId: this.controlId, | ||
isReadOnly: this.isReadOnly, | ||
@@ -301,2 +302,3 @@ isDisabled: this.isDisabled, | ||
render(h) { | ||
const controlId = this.getFormControls.controlId; | ||
return h(pixelBox.MpBox, { | ||
@@ -324,2 +326,3 @@ attrs: { | ||
placeholder: this.placeholder, | ||
id: controlId, | ||
readonly: this.getFormControls.isReadOnly, | ||
@@ -332,4 +335,4 @@ disabled: this.getFormControls.isDisabled, | ||
'aria-required': this.getFormControls.isRequired, | ||
'aria-label': this.ariaLabel, | ||
'aria-labelledby': this.ariaLabelledBy, | ||
'aria-label': this.ariaLabel || controlId && `${controlId}-control-label`, | ||
'aria-labelledby': this.ariaLabelledBy || controlId && `${controlId}-help-text`, | ||
...this.computedAttrs | ||
@@ -336,0 +339,0 @@ }, |
@@ -224,2 +224,3 @@ import { MpBox } from '@mekari/pixel-box'; | ||
return { | ||
controlId: this.controlId, | ||
isReadOnly: this.isReadOnly, | ||
@@ -297,2 +298,3 @@ isDisabled: this.isDisabled, | ||
render(h) { | ||
const controlId = this.getFormControls.controlId; | ||
return h(MpBox, { | ||
@@ -320,2 +322,3 @@ attrs: { | ||
placeholder: this.placeholder, | ||
id: controlId, | ||
readonly: this.getFormControls.isReadOnly, | ||
@@ -328,4 +331,4 @@ disabled: this.getFormControls.isDisabled, | ||
'aria-required': this.getFormControls.isRequired, | ||
'aria-label': this.ariaLabel, | ||
'aria-labelledby': this.ariaLabelledBy, | ||
'aria-label': this.ariaLabel || controlId && `${controlId}-control-label`, | ||
'aria-labelledby': this.ariaLabelledBy || controlId && `${controlId}-help-text`, | ||
...this.computedAttrs | ||
@@ -332,0 +335,0 @@ }, |
{ | ||
"name": "@mekari/pixel-input", | ||
"description": "Mekari Pixel | Input component", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"homepage": "https://mekari.design/", | ||
@@ -28,3 +28,3 @@ "repository": { | ||
"@mekari/pixel-box": "^0.0.7", | ||
"@mekari/pixel-button-icon": "^0.4.1", | ||
"@mekari/pixel-button-icon": "^0.4.3", | ||
"@mekari/pixel-utils": "^0.1.0" | ||
@@ -31,0 +31,0 @@ }, |
@@ -39,2 +39,3 @@ import { MpBox } from '@mekari/pixel-box' | ||
return { | ||
controlId: this.controlId, | ||
isReadOnly: this.isReadOnly, | ||
@@ -108,2 +109,4 @@ isDisabled: this.isDisabled, | ||
render(h) { | ||
const controlId = this.getFormControls.controlId | ||
return h( | ||
@@ -135,2 +138,3 @@ MpBox, | ||
placeholder: this.placeholder, | ||
id: controlId, | ||
readonly: this.getFormControls.isReadOnly, | ||
@@ -143,4 +147,4 @@ disabled: this.getFormControls.isDisabled, | ||
'aria-required': this.getFormControls.isRequired, | ||
'aria-label': this.ariaLabel, | ||
'aria-labelledby': this.ariaLabelledBy, | ||
'aria-label': this.ariaLabel || (controlId && `${controlId}-control-label`), | ||
'aria-labelledby': this.ariaLabelledBy || (controlId && `${controlId}-help-text`), | ||
...this.computedAttrs | ||
@@ -147,0 +151,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54524
1951