kahuna-base-react-components 0.1.9 → 0.1.10
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/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ export interface KInputProps {
|
|
|
12
12
|
background?: string
|
|
13
13
|
activeBackground?: string
|
|
14
14
|
borderRadius?: number
|
|
15
|
+
disabled?: boolean
|
|
15
16
|
placeholder?: string
|
|
16
17
|
shadowDisabled?: boolean
|
|
17
18
|
type?: string
|
|
@@ -37,6 +38,7 @@ const KInput: React.FC<KInputProps> = (props) => {
|
|
|
37
38
|
const boxShadow = props.shadowDisabled ? "" : "0 0 0 1px rgba(17, 17, 17, 0.04), 0 1px 1px 0 rgba(17, 17, 17, 0.04)"
|
|
38
39
|
const type = props.type || "text"
|
|
39
40
|
const accentColor = props.accentColor || ""
|
|
41
|
+
const disabled = props.disabled || false
|
|
40
42
|
|
|
41
43
|
return (
|
|
42
44
|
<div className={"k-input-container"} style={{background, borderRadius, boxShadow}}>
|
|
@@ -52,6 +54,7 @@ const KInput: React.FC<KInputProps> = (props) => {
|
|
|
52
54
|
style={{background, width, height, accentColor}}
|
|
53
55
|
value={props.value}
|
|
54
56
|
placeholder={props.placeholder || ""}
|
|
57
|
+
disabled={disabled}
|
|
55
58
|
onBlur={(event) => {
|
|
56
59
|
if (props.onBlur) props.onBlur(event.target.value)
|
|
57
60
|
}}
|