@kivid/native-components 1.0.0-alpha.24 → 1.0.0-alpha.26
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/commonjs/components/DatePicker/assets/theme.js +60 -0
- package/dist/commonjs/components/DatePicker/assets/theme.js.map +1 -1
- package/dist/commonjs/components/DatePicker/index.js +84 -0
- package/dist/commonjs/components/DatePicker/index.js.map +1 -1
- package/dist/commonjs/components/Dropdown/index.js +156 -0
- package/dist/commonjs/components/Dropdown/index.js.map +1 -0
- package/dist/commonjs/components/Dropdown/types.js +6 -0
- package/dist/commonjs/components/Dropdown/types.js.map +1 -0
- package/dist/commonjs/components/ListButton/assets/class-variants.js +2 -1
- package/dist/commonjs/components/ListButton/assets/class-variants.js.map +1 -1
- package/dist/commonjs/components/ListButton/assets/design-system-showcase.js +59 -0
- package/dist/commonjs/components/ListButton/assets/design-system-showcase.js.map +1 -1
- package/dist/commonjs/components/ListButton/enums/variant.js +1 -0
- package/dist/commonjs/components/ListButton/enums/variant.js.map +1 -1
- package/dist/commonjs/components/Tab/assets/class-variants.js +69 -0
- package/dist/commonjs/components/Tab/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/Tab/index.js +90 -0
- package/dist/commonjs/components/Tab/index.js.map +1 -0
- package/dist/commonjs/components/Tab/types.js +6 -0
- package/dist/commonjs/components/Tab/types.js.map +1 -0
- package/dist/commonjs/components/TextAreaInput/assets/class-variants.js +91 -0
- package/dist/commonjs/components/TextAreaInput/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/TextAreaInput/enums.js +12 -0
- package/dist/commonjs/components/TextAreaInput/enums.js.map +1 -0
- package/dist/commonjs/components/TextAreaInput/index.js +105 -0
- package/dist/commonjs/components/TextAreaInput/index.js.map +1 -0
- package/dist/commonjs/components/TextAreaInput/types.js +6 -0
- package/dist/commonjs/components/TextAreaInput/types.js.map +1 -0
- package/dist/commonjs/components/Title/components/marker/index.js +11 -4
- package/dist/commonjs/components/Title/components/marker/index.js.map +1 -1
- package/dist/commonjs/components/index.js +81 -26
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/module/components/DatePicker/assets/theme.js +60 -0
- package/dist/module/components/DatePicker/assets/theme.js.map +1 -1
- package/dist/module/components/DatePicker/index.js +85 -1
- package/dist/module/components/DatePicker/index.js.map +1 -1
- package/dist/module/components/Dropdown/index.js +151 -0
- package/dist/module/components/Dropdown/index.js.map +1 -0
- package/dist/module/components/Dropdown/types.js +4 -0
- package/dist/module/components/Dropdown/types.js.map +1 -0
- package/dist/module/components/ListButton/assets/class-variants.js +2 -1
- package/dist/module/components/ListButton/assets/class-variants.js.map +1 -1
- package/dist/module/components/ListButton/assets/design-system-showcase.js +59 -0
- package/dist/module/components/ListButton/assets/design-system-showcase.js.map +1 -1
- package/dist/module/components/ListButton/enums/variant.js +1 -0
- package/dist/module/components/ListButton/enums/variant.js.map +1 -1
- package/dist/module/components/Tab/assets/class-variants.js +66 -0
- package/dist/module/components/Tab/assets/class-variants.js.map +1 -0
- package/dist/module/components/Tab/index.js +86 -0
- package/dist/module/components/Tab/index.js.map +1 -0
- package/dist/module/components/Tab/types.js +4 -0
- package/dist/module/components/Tab/types.js.map +1 -0
- package/dist/module/components/TextAreaInput/assets/class-variants.js +87 -0
- package/dist/module/components/TextAreaInput/assets/class-variants.js.map +1 -0
- package/dist/module/components/TextAreaInput/enums.js +8 -0
- package/dist/module/components/TextAreaInput/enums.js.map +1 -0
- package/dist/module/components/TextAreaInput/index.js +100 -0
- package/dist/module/components/TextAreaInput/index.js.map +1 -0
- package/dist/module/components/TextAreaInput/types.js +4 -0
- package/dist/module/components/TextAreaInput/types.js.map +1 -0
- package/dist/module/components/Title/components/marker/index.js +11 -4
- package/dist/module/components/Title/components/marker/index.js.map +1 -1
- package/dist/module/components/index.js +5 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/typescript/components/DatePicker/assets/theme.d.ts +60 -0
- package/dist/typescript/components/Dropdown/index.d.ts +3 -0
- package/dist/typescript/components/Dropdown/types.d.ts +20 -0
- package/dist/typescript/components/ListButton/enums/variant.d.ts +2 -1
- package/dist/typescript/components/Tab/assets/class-variants.d.ts +18 -0
- package/dist/typescript/components/Tab/index.d.ts +2 -0
- package/dist/typescript/components/Tab/types.d.ts +17 -0
- package/dist/typescript/components/TextAreaInput/assets/class-variants.d.ts +17 -0
- package/dist/typescript/components/TextAreaInput/enums.d.ts +4 -0
- package/dist/typescript/components/TextAreaInput/index.d.ts +2 -0
- package/dist/typescript/components/TextAreaInput/types.d.ts +22 -0
- package/dist/typescript/components/Title/components/marker/index.d.ts +1 -1
- package/dist/typescript/components/Title/components/marker/types.d.ts +1 -0
- package/dist/typescript/components/index.d.ts +8 -0
- package/package.json +6 -5
- package/src/components/DatePicker/assets/theme.ts +60 -0
- package/src/components/DatePicker/index.tsx +106 -4
- package/src/components/Dropdown/index.tsx +165 -0
- package/src/components/Dropdown/types.ts +21 -0
- package/src/components/ListButton/assets/class-variants.ts +4 -0
- package/src/components/ListButton/assets/design-system-showcase.ts +69 -0
- package/src/components/ListButton/enums/variant.ts +1 -0
- package/src/components/Tab/assets/class-variants.ts +83 -0
- package/src/components/Tab/index.tsx +92 -0
- package/src/components/Tab/types.ts +20 -0
- package/src/components/TextAreaInput/assets/class-variants.ts +96 -0
- package/src/components/TextAreaInput/enums.ts +4 -0
- package/src/components/TextAreaInput/index.tsx +119 -0
- package/src/components/TextAreaInput/types.ts +28 -0
- package/src/components/Title/components/marker/index.tsx +10 -2
- package/src/components/Title/components/marker/types.ts +1 -0
- package/src/components/index.ts +11 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TextInputProps as RNTextInputProps,
|
|
3
|
+
TextInput as RNTextInput,
|
|
4
|
+
} from "react-native";
|
|
5
|
+
import { TextAreaInputCornersEnum } from "./enums";
|
|
6
|
+
|
|
7
|
+
export type TextAreaInputCorners = TextAreaInputCornersEnum;
|
|
8
|
+
|
|
9
|
+
export interface TextAreaInputProps
|
|
10
|
+
extends Omit<RNTextInputProps, "value" | "onChangeText"> {
|
|
11
|
+
corners?: TextAreaInputCorners;
|
|
12
|
+
label?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
inputClassName?: string;
|
|
18
|
+
labelClassName?: string;
|
|
19
|
+
containerTestID?: string;
|
|
20
|
+
tooltipClassName?: string;
|
|
21
|
+
tooltipPointerClassName?: string;
|
|
22
|
+
tooltipContainerClassName?: string;
|
|
23
|
+
maxLength?: number;
|
|
24
|
+
showMaxLength?: boolean;
|
|
25
|
+
insideLabel?: boolean;
|
|
26
|
+
onChangeText?: (text: string) => void;
|
|
27
|
+
ref?: React.RefObject<RNTextInput | null>;
|
|
28
|
+
}
|
|
@@ -3,7 +3,7 @@ import type { MarkerProps } from "./types";
|
|
|
3
3
|
import { SizeEnum } from "../../../../enums";
|
|
4
4
|
|
|
5
5
|
export function Marker(props: MarkerProps) {
|
|
6
|
-
const { size = SizeEnum.MEDIUM, color = "chia" } = props;
|
|
6
|
+
const { size = SizeEnum.MEDIUM, color = "chia", customMarkerComponent } = props;
|
|
7
7
|
|
|
8
8
|
const mappedSize = {
|
|
9
9
|
[SizeEnum.SMALL]: "w-700 h-300",
|
|
@@ -22,5 +22,13 @@ export function Marker(props: MarkerProps) {
|
|
|
22
22
|
ghost: "bg-chia-200",
|
|
23
23
|
}[color];
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
function renderMarker() {
|
|
26
|
+
if (customMarkerComponent) {
|
|
27
|
+
return customMarkerComponent
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return <View className={`${mappedColor} ${mappedSize} rounded-500`} />;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return renderMarker();
|
|
26
34
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -50,6 +50,7 @@ export * from "./Toast/enums";
|
|
|
50
50
|
export type * from "./Toast/types";
|
|
51
51
|
|
|
52
52
|
export * from "./Tooltip";
|
|
53
|
+
export * from "./Tooltip/enum";
|
|
53
54
|
export type * from "./Tooltip/types";
|
|
54
55
|
|
|
55
56
|
export * from "./ListButton";
|
|
@@ -86,3 +87,13 @@ export type * from "./MessageInput/types";
|
|
|
86
87
|
|
|
87
88
|
export * from "./DatePicker";
|
|
88
89
|
export type * from "./DatePicker/types";
|
|
90
|
+
|
|
91
|
+
export * from "./Tab";
|
|
92
|
+
export type * from "./Tab/types";
|
|
93
|
+
|
|
94
|
+
export * from "./Dropdown";
|
|
95
|
+
export type * from "./Dropdown/types";
|
|
96
|
+
|
|
97
|
+
export * from "./TextAreaInput";
|
|
98
|
+
export * from "./TextAreaInput/enums";
|
|
99
|
+
export type * from "./TextAreaInput/types";
|