kahuna-base-react-components 0.2.9 → 0.2.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/index.d.ts +2 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +40 -8
- package/package.json +1 -1
- package/src/index.ts +2 -1
package/dist/types.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ interface KInputProps {
|
|
|
86
86
|
}
|
|
87
87
|
declare const KInput: React.FC<KInputProps>;
|
|
88
88
|
|
|
89
|
-
interface KSelectOption {
|
|
89
|
+
interface KSelectOption$1 {
|
|
90
90
|
label: string;
|
|
91
91
|
value: number;
|
|
92
92
|
type?: string;
|
|
@@ -94,11 +94,11 @@ interface KSelectOption {
|
|
|
94
94
|
value2?: string;
|
|
95
95
|
icon?: string;
|
|
96
96
|
}
|
|
97
|
-
interface KDropdownProps {
|
|
98
|
-
defaultValue?: KSelectOption | MultiValue<KSelectOption>;
|
|
99
|
-
selected?: KSelectOption | MultiValue<KSelectOption>;
|
|
100
|
-
onSelect: (selected: KSelectOption | MultiValue<KSelectOption>) => void;
|
|
101
|
-
options: KSelectOption[];
|
|
97
|
+
interface KDropdownProps$1 {
|
|
98
|
+
defaultValue?: KSelectOption$1 | MultiValue<KSelectOption$1>;
|
|
99
|
+
selected?: KSelectOption$1 | MultiValue<KSelectOption$1>;
|
|
100
|
+
onSelect: (selected: KSelectOption$1 | MultiValue<KSelectOption$1>) => void;
|
|
101
|
+
options: KSelectOption$1[];
|
|
102
102
|
width?: number;
|
|
103
103
|
height?: number;
|
|
104
104
|
leftIcon?: string;
|
|
@@ -116,7 +116,7 @@ interface KDropdownProps {
|
|
|
116
116
|
gap?: string;
|
|
117
117
|
hideChosenOptionIcon?: boolean;
|
|
118
118
|
}
|
|
119
|
-
declare const KDropdown: React.FC<KDropdownProps>;
|
|
119
|
+
declare const KDropdown: React.FC<KDropdownProps$1>;
|
|
120
120
|
|
|
121
121
|
interface SliderOption {
|
|
122
122
|
label: string;
|
|
@@ -131,4 +131,36 @@ interface KSliderProps {
|
|
|
131
131
|
}
|
|
132
132
|
declare const KSlider: React.FC<KSliderProps>;
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
interface KSelectOption {
|
|
135
|
+
label: string;
|
|
136
|
+
value: number;
|
|
137
|
+
type?: string;
|
|
138
|
+
label2?: string;
|
|
139
|
+
value2?: string;
|
|
140
|
+
icon?: string;
|
|
141
|
+
}
|
|
142
|
+
interface KDropdownProps {
|
|
143
|
+
defaultValue?: KSelectOption | MultiValue<KSelectOption>;
|
|
144
|
+
selected?: KSelectOption | MultiValue<KSelectOption>;
|
|
145
|
+
onSelect: (selected: KSelectOption | MultiValue<KSelectOption>) => void;
|
|
146
|
+
options: KSelectOption[];
|
|
147
|
+
width?: number;
|
|
148
|
+
height?: number;
|
|
149
|
+
leftIcon?: string;
|
|
150
|
+
rightIcon?: string;
|
|
151
|
+
background?: string;
|
|
152
|
+
activeBackground?: string;
|
|
153
|
+
borderRadius?: number;
|
|
154
|
+
placeholder?: string;
|
|
155
|
+
isMulti?: boolean;
|
|
156
|
+
label?: string;
|
|
157
|
+
textColor?: string;
|
|
158
|
+
shadowDisabled?: boolean;
|
|
159
|
+
menuBackground?: string;
|
|
160
|
+
padding?: string;
|
|
161
|
+
gap?: string;
|
|
162
|
+
hideChosenOptionIcon?: boolean;
|
|
163
|
+
}
|
|
164
|
+
declare const KDropdownToggle: React.FC<KDropdownProps>;
|
|
165
|
+
|
|
166
|
+
export { KButton, KDropdown, KDropdownToggle, KInput, KLogo, KSlider, KSpan, KTitleSpan };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5,7 +5,8 @@ import KLogo from "./components/KLogo"
|
|
|
5
5
|
import KInput from "./components/KInput"
|
|
6
6
|
import KDropdown from "./components/KDropdown"
|
|
7
7
|
import KSlider from "./components/KSlider"
|
|
8
|
+
import KDropdownToggle from "./components/KDropdownToggle"
|
|
8
9
|
|
|
9
10
|
export {
|
|
10
|
-
KButton, KSpan, KLogo, KTitleSpan, KInput, KDropdown, KSlider
|
|
11
|
+
KButton, KSpan, KLogo, KTitleSpan, KInput, KDropdown, KSlider, KDropdownToggle
|
|
11
12
|
}
|