kahuna-base-react-components 1.2.0 → 1.2.2
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/components/KButton/KButton.d.ts +4 -0
- package/dist/components/KDropdown/KDropdown.d.ts +3 -0
- package/dist/components/KInput/KInput.d.ts +2 -0
- package/dist/components/KSpan/KSpan.d.ts +1 -4
- package/dist/components/KTitleSpan/KTitleSpan.d.ts +1 -0
- 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 +11 -4
- package/package.json +1 -1
- package/src/components/KButton/KButton.stories.tsx +6 -2
- package/src/components/KButton/KButton.tsx +23 -3
- package/src/components/KDropdown/KDropdown.stories.tsx +48 -9
- package/src/components/KDropdown/KDropdown.tsx +21 -2
- package/src/components/KInput/KInput.stories.tsx +44 -18
- package/src/components/KInput/KInput.tsx +16 -2
- package/src/components/KSpan/KSpan.stories.tsx +16 -17
- package/src/components/KSpan/KSpan.tsx +9 -41
- package/src/components/KTitleSpan/KTitleSpan.stories.tsx +25 -2
- package/src/components/KTitleSpan/KTitleSpan.tsx +65 -10
- package/src/index.ts +13 -2
- package/src/main.css +6 -1
|
@@ -18,6 +18,10 @@ export interface KButtonProps {
|
|
|
18
18
|
fontWeight?: number;
|
|
19
19
|
textDecoration?: string;
|
|
20
20
|
gap?: string;
|
|
21
|
+
activeBackground?: string;
|
|
22
|
+
border?: string;
|
|
23
|
+
hoverBorder?: string;
|
|
24
|
+
activeBorder?: string;
|
|
21
25
|
}
|
|
22
26
|
declare const KButton: React.FC<KButtonProps>;
|
|
23
27
|
export default KButton;
|
|
@@ -31,6 +31,7 @@ export interface KDropdownProps {
|
|
|
31
31
|
menuBackground?: string;
|
|
32
32
|
padding?: string;
|
|
33
33
|
gap?: string;
|
|
34
|
+
onBlur?: (value: KSelectOption | MultiValue<KSelectOption> | undefined) => void;
|
|
34
35
|
hideChosenOptionIcon?: boolean;
|
|
35
36
|
isClearable?: boolean;
|
|
36
37
|
isEllipsis?: boolean;
|
|
@@ -40,6 +41,8 @@ export interface KDropdownProps {
|
|
|
40
41
|
placeholderColor?: string;
|
|
41
42
|
enableIndicator?: boolean;
|
|
42
43
|
allowContainerShrink?: boolean;
|
|
44
|
+
border?: string;
|
|
45
|
+
activeBorder?: string;
|
|
43
46
|
}
|
|
44
47
|
declare const KDropdown: React.FC<KDropdownProps>;
|
|
45
48
|
export default KDropdown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "../../main.css";
|
|
3
3
|
export interface KSpanProps {
|
|
4
4
|
text: string;
|
|
@@ -8,9 +8,6 @@ export interface KSpanProps {
|
|
|
8
8
|
lineHeight?: string;
|
|
9
9
|
fontStyle?: string;
|
|
10
10
|
letterSpacing?: string;
|
|
11
|
-
hoverText?: string;
|
|
12
|
-
hoverTextColor?: string;
|
|
13
|
-
hoverStyle?: CSSProperties;
|
|
14
11
|
textDecoration?: string;
|
|
15
12
|
ellipsis?: boolean;
|
|
16
13
|
}
|