kahuna-base-react-components 0.2.7 → 0.2.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.
@@ -16,6 +16,7 @@ export interface KButtonProps {
16
16
  shadowDisabled?: boolean;
17
17
  hoverBackground?: string;
18
18
  fontWeight?: number;
19
+ textDecoration?: string;
19
20
  }
20
21
  declare const KButton: React.FC<KButtonProps>;
21
22
  export default KButton;
@@ -27,7 +27,6 @@ export interface KDropdownProps {
27
27
  textColor?: string;
28
28
  shadowDisabled?: boolean;
29
29
  menuBackground?: string;
30
- onInput?: (input: string) => void;
31
30
  padding?: string;
32
31
  gap?: string;
33
32
  hideChosenOptionIcon?: boolean;
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ import "../../main.css";
3
+ import { MultiValue } from "react-select";
4
+ export interface KSelectOption {
5
+ label: string;
6
+ value: number;
7
+ type?: string;
8
+ label2?: string;
9
+ value2?: string;
10
+ icon?: string;
11
+ }
12
+ export interface KDropdownProps {
13
+ defaultValue?: KSelectOption | MultiValue<KSelectOption>;
14
+ selected?: KSelectOption | MultiValue<KSelectOption>;
15
+ onSelect: (selected: KSelectOption | MultiValue<KSelectOption>) => void;
16
+ options: KSelectOption[];
17
+ width?: number;
18
+ height?: number;
19
+ leftIcon?: string;
20
+ rightIcon?: string;
21
+ background?: string;
22
+ activeBackground?: string;
23
+ borderRadius?: number;
24
+ placeholder?: string;
25
+ isMulti?: boolean;
26
+ label?: string;
27
+ textColor?: string;
28
+ shadowDisabled?: boolean;
29
+ menuBackground?: string;
30
+ padding?: string;
31
+ gap?: string;
32
+ hideChosenOptionIcon?: boolean;
33
+ }
34
+ declare const KDropdownToggle: React.FC<KDropdownProps>;
35
+ export default KDropdownToggle;
@@ -0,0 +1 @@
1
+ export { default } from './KDropdownToggle';
@@ -1,9 +1,10 @@
1
- import React from "react";
1
+ import React, { KeyboardEvent } from "react";
2
2
  import "../../main.css";
3
3
  export interface KInputProps {
4
4
  value: string;
5
5
  onChange: (value: string) => void;
6
6
  onBlur?: (value: string) => void;
7
+ onKeyDown?: (event: KeyboardEvent) => void;
7
8
  width?: number;
8
9
  height?: number;
9
10
  leftIcon?: string;
@@ -25,6 +26,7 @@ export interface KInputProps {
25
26
  boxShadow?: string;
26
27
  fontSize?: string;
27
28
  iconSize?: string;
29
+ checked?: boolean;
28
30
  }
29
31
  declare const KInput: React.FC<KInputProps>;
30
32
  export default KInput;