kahuna-base-react-components 1.3.7 → 1.3.9

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
@@ -24,6 +24,7 @@ interface KButtonProps {
24
24
  border?: string;
25
25
  hoverBorder?: string;
26
26
  activeBorder?: string;
27
+ fontSize?: number;
27
28
  dataTestId?: string;
28
29
  }
29
30
  declare const KButton: React.FC<KButtonProps>;
@@ -123,6 +124,7 @@ interface KInputProps {
123
124
  fontSize?: string;
124
125
  iconSize?: string;
125
126
  checked?: boolean;
127
+ autoComplete?: string;
126
128
  hoverBorder?: string;
127
129
  activeBorder?: string;
128
130
  dataTestId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kahuna-base-react-components",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "Kahuna Base React Components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -24,6 +24,7 @@ export interface KButtonProps {
24
24
  border?: string
25
25
  hoverBorder?: string
26
26
  activeBorder?: string
27
+ fontSize?: number
27
28
  dataTestId?: string
28
29
  }
29
30
 
@@ -47,6 +48,7 @@ const KButton: React.FC<KButtonProps> = (props) => {
47
48
  const border = props.border || "none"
48
49
  const hoverBorder = props.hoverBorder || border
49
50
  const activeBorder = props.activeBorder || border
51
+ const fontSize = props.fontSize || 14
50
52
 
51
53
  return (
52
54
  <button
@@ -71,7 +73,7 @@ const KButton: React.FC<KButtonProps> = (props) => {
71
73
  <div className={"flex items-center"} style={{ gap }}>
72
74
  {props.leftIcon && <img src={props.leftIcon} alt={"button-left-icon"} />}
73
75
  {props.text && (
74
- <KSpan text={props.text} color={textColor} fontWeight={fontWeight} textDecoration={textDecoration} />
76
+ <KSpan text={props.text} color={textColor} fontWeight={fontWeight} textDecoration={textDecoration} fontSize={fontSize} lineHeight={`${fontSize + 6}px`}/>
75
77
  )}
76
78
  {props.icon && <img src={props.icon} alt={"button-icon"} />}
77
79
  {props.rightIcon && <img src={props.rightIcon} alt={"button-right-icon"} />}
@@ -28,6 +28,7 @@ export interface KInputProps {
28
28
  fontSize?: string
29
29
  iconSize?: string
30
30
  checked?: boolean
31
+ autoComplete?: string
31
32
  hoverBorder?: string
32
33
  activeBorder?: string
33
34
  dataTestId?: string
@@ -109,6 +110,7 @@ const KInput: React.FC<KInputProps> = (props) => {
109
110
  fontSize
110
111
  }}
111
112
  {...(props.checked && (type === "checkbox" || type === "radio") && { checked: props.checked })}
113
+ {...(props.autoComplete && { autoComplete: props.autoComplete })}
112
114
  value={props.value}
113
115
  placeholder={props.placeholder || ""}
114
116
  disabled={disabled}