kahuna-base-react-components 0.2.19 → 0.2.21
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/KCodeInput/KCodeInput.d.ts +36 -0
- package/dist/components/KCodeInput/index.d.ts +1 -0
- package/dist/components/KTextArea/KTextArea.d.ts +32 -0
- package/dist/components/KTextArea/index.d.ts +1 -0
- 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 +36 -2
- package/package.json +1 -1
- package/src/components/KCodeInput/KCodeInput.stories.tsx +84 -0
- package/src/components/KCodeInput/KCodeInput.tsx +260 -0
- package/src/components/KCodeInput/index.ts +1 -0
- package/src/components/KTextArea/KTextArea.stories.tsx +65 -0
- package/src/components/KTextArea/KTextArea.tsx +130 -0
- package/src/components/KTextArea/index.ts +1 -0
- package/src/index.ts +3 -1
- package/src/main.css +10 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "../../main.css";
|
|
3
|
+
export interface KCodeInputProps {
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
length?: number;
|
|
6
|
+
borderRadius?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
padding?: string;
|
|
9
|
+
gap?: number;
|
|
10
|
+
fontSize?: string;
|
|
11
|
+
fontWeight?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
lineHeight?: string;
|
|
14
|
+
allowedCharacters?: "numeric" | "alphaNumeric" | "alpha";
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
isPassword?: boolean;
|
|
19
|
+
background?: string;
|
|
20
|
+
hoverBackground?: string;
|
|
21
|
+
focusedBackground?: string;
|
|
22
|
+
filledBackground?: string;
|
|
23
|
+
border?: string;
|
|
24
|
+
hoverBorder?: string;
|
|
25
|
+
focusedBorder?: string;
|
|
26
|
+
filledBorder?: string;
|
|
27
|
+
boxShadow?: string;
|
|
28
|
+
hoverBoxShadow?: string;
|
|
29
|
+
focusedBoxShadow?: string;
|
|
30
|
+
filledBoxShadow?: string;
|
|
31
|
+
fitInContainer?: boolean;
|
|
32
|
+
isCodeCorrect?: boolean;
|
|
33
|
+
autoBlur?: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare const KInput: React.FC<KCodeInputProps>;
|
|
36
|
+
export default KInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './KCodeInput';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { KeyboardEvent } from "react";
|
|
2
|
+
import "../../main.css";
|
|
3
|
+
export interface KTextAreaProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
rows?: number;
|
|
7
|
+
onBlur?: (value: string) => void;
|
|
8
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
leftIcon?: string;
|
|
12
|
+
rightIcon?: string;
|
|
13
|
+
background?: string;
|
|
14
|
+
activeBackground?: string;
|
|
15
|
+
borderRadius?: number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
shadowDisabled?: boolean;
|
|
19
|
+
leftIconClick?: () => void;
|
|
20
|
+
rightIconClick?: () => void;
|
|
21
|
+
accentColor?: string;
|
|
22
|
+
hoverBackground?: string;
|
|
23
|
+
padding?: string;
|
|
24
|
+
gap?: string;
|
|
25
|
+
border?: string;
|
|
26
|
+
boxShadow?: string;
|
|
27
|
+
fontSize?: string;
|
|
28
|
+
iconSize?: string;
|
|
29
|
+
checked?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare const KTextArea: React.FC<KTextAreaProps>;
|
|
32
|
+
export default KTextArea;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './KTextArea';
|
package/dist/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ import KSlider from "./components/KSlider";
|
|
|
8
8
|
import KSelectDate from "./components/KSelectDate";
|
|
9
9
|
import KTooltip from "./components/KTooltip";
|
|
10
10
|
import KSliderLabel from "./components/KSliderLabel";
|
|
11
|
-
|
|
11
|
+
import KCodeInput from "./components/KCodeInput";
|
|
12
|
+
export { KButton, KSpan, KLogo, KTitleSpan, KInput, KDropdown, KSlider, KSelectDate, KTooltip, KSliderLabel, KCodeInput };
|