@kivid/native-components 1.0.0-alpha.20 → 1.0.0-alpha.22
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/ChatBubble/assets/class-variants.js +55 -4
- package/dist/commonjs/components/ChatBubble/assets/class-variants.js.map +1 -1
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleEar/index.js +25 -20
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleEar/index.js.map +1 -1
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleEar/types.js +6 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleEar/types.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleText/index.js +8 -3
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleText/index.js.map +1 -1
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleTime/index.js +7 -1
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleTime/index.js.map +1 -1
- package/dist/commonjs/components/ChatBubble/index.js +58 -13
- package/dist/commonjs/components/ChatBubble/index.js.map +1 -1
- package/dist/commonjs/components/DatePicker/assets/theme.js +99 -0
- package/dist/commonjs/components/DatePicker/assets/theme.js.map +1 -0
- package/dist/commonjs/components/DatePicker/index.js +174 -0
- package/dist/commonjs/components/DatePicker/index.js.map +1 -0
- package/dist/commonjs/components/DatePicker/types.js +6 -0
- package/dist/commonjs/components/DatePicker/types.js.map +1 -0
- package/dist/commonjs/components/IconButton/index.js +1 -0
- package/dist/commonjs/components/IconButton/index.js.map +1 -1
- package/dist/commonjs/components/MessageInput/assets/class-variants.js +31 -0
- package/dist/commonjs/components/MessageInput/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/MessageInput/index.js +105 -0
- package/dist/commonjs/components/MessageInput/index.js.map +1 -0
- package/dist/commonjs/components/MessageInput/types.js +6 -0
- package/dist/commonjs/components/MessageInput/types.js.map +1 -0
- package/dist/commonjs/components/TextInput/assets/class-variants.js +21 -4
- package/dist/commonjs/components/TextInput/assets/class-variants.js.map +1 -1
- package/dist/commonjs/components/TextInput/enums.js +7 -1
- package/dist/commonjs/components/TextInput/enums.js.map +1 -1
- package/dist/commonjs/components/TextInput/index.js +13 -3
- package/dist/commonjs/components/TextInput/index.js.map +1 -1
- package/dist/commonjs/components/index.js +65 -43
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/module/components/ChatBubble/assets/class-variants.js +54 -3
- package/dist/module/components/ChatBubble/assets/class-variants.js.map +1 -1
- package/dist/module/components/ChatBubble/components/ChatBubbleEar/index.js +26 -21
- package/dist/module/components/ChatBubble/components/ChatBubbleEar/index.js.map +1 -1
- package/dist/module/components/ChatBubble/components/ChatBubbleEar/types.js +4 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleEar/types.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleText/index.js +7 -2
- package/dist/module/components/ChatBubble/components/ChatBubbleText/index.js.map +1 -1
- package/dist/module/components/ChatBubble/components/ChatBubbleTime/index.js +9 -2
- package/dist/module/components/ChatBubble/components/ChatBubbleTime/index.js.map +1 -1
- package/dist/module/components/ChatBubble/index.js +59 -14
- package/dist/module/components/ChatBubble/index.js.map +1 -1
- package/dist/module/components/DatePicker/assets/theme.js +95 -0
- package/dist/module/components/DatePicker/assets/theme.js.map +1 -0
- package/dist/module/components/DatePicker/index.js +169 -0
- package/dist/module/components/DatePicker/index.js.map +1 -0
- package/dist/module/components/DatePicker/types.js +4 -0
- package/dist/module/components/DatePicker/types.js.map +1 -0
- package/dist/module/components/IconButton/index.js +1 -0
- package/dist/module/components/IconButton/index.js.map +1 -1
- package/dist/module/components/MessageInput/assets/class-variants.js +27 -0
- package/dist/module/components/MessageInput/assets/class-variants.js.map +1 -0
- package/dist/module/components/MessageInput/index.js +100 -0
- package/dist/module/components/MessageInput/index.js.map +1 -0
- package/dist/module/components/MessageInput/types.js +4 -0
- package/dist/module/components/MessageInput/types.js.map +1 -0
- package/dist/module/components/TextInput/assets/class-variants.js +21 -4
- package/dist/module/components/TextInput/assets/class-variants.js.map +1 -1
- package/dist/module/components/TextInput/enums.js +6 -0
- package/dist/module/components/TextInput/enums.js.map +1 -1
- package/dist/module/components/TextInput/index.js +14 -4
- package/dist/module/components/TextInput/index.js.map +1 -1
- package/dist/module/components/index.js +3 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/typescript/components/ChatBubble/assets/class-variants.d.ts +7 -1
- package/dist/typescript/components/ChatBubble/components/ChatBubbleEar/index.d.ts +1 -6
- package/dist/typescript/components/ChatBubble/components/ChatBubbleEar/types.d.ts +6 -0
- package/dist/typescript/components/ChatBubble/contexts/ChatBubbleContext/types.d.ts +1 -0
- package/dist/typescript/components/ChatBubble/types.d.ts +1 -0
- package/dist/typescript/components/DatePicker/assets/theme.d.ts +92 -0
- package/dist/typescript/components/DatePicker/index.d.ts +2 -0
- package/dist/typescript/components/DatePicker/types.d.ts +17 -0
- package/dist/typescript/components/MessageInput/assets/class-variants.d.ts +7 -0
- package/dist/typescript/components/MessageInput/index.d.ts +6 -0
- package/dist/typescript/components/MessageInput/types.d.ts +13 -0
- package/dist/typescript/components/TextInput/assets/class-variants.d.ts +3 -0
- package/dist/typescript/components/TextInput/enums.d.ts +5 -0
- package/dist/typescript/components/TextInput/index.d.ts +1 -1
- package/dist/typescript/components/TextInput/types.d.ts +4 -1
- package/dist/typescript/components/index.d.ts +6 -0
- package/package.json +26 -11
- package/src/components/ChatBubble/assets/class-variants.ts +130 -66
- package/src/components/ChatBubble/components/ChatBubbleEar/index.tsx +35 -24
- package/src/components/ChatBubble/components/ChatBubbleEar/types.ts +7 -0
- package/src/components/ChatBubble/components/ChatBubbleText/index.tsx +8 -5
- package/src/components/ChatBubble/components/ChatBubbleTime/index.tsx +4 -1
- package/src/components/ChatBubble/contexts/ChatBubbleContext/types.ts +1 -0
- package/src/components/ChatBubble/index.tsx +83 -23
- package/src/components/ChatBubble/types.ts +1 -0
- package/src/components/DatePicker/assets/theme.ts +92 -0
- package/src/components/DatePicker/index.tsx +203 -0
- package/src/components/DatePicker/types.ts +20 -0
- package/src/components/IconButton/index.tsx +1 -0
- package/src/components/MessageInput/assets/class-variants.ts +35 -0
- package/src/components/MessageInput/index.tsx +121 -0
- package/src/components/MessageInput/types.ts +18 -0
- package/src/components/TextInput/assets/class-variants.ts +32 -13
- package/src/components/TextInput/enums.ts +6 -0
- package/src/components/TextInput/index.tsx +9 -1
- package/src/components/TextInput/types.ts +4 -1
- package/src/components/index.ts +8 -0
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
export const textInputContainerVariants = cva("flex-row items-center border border-chia-400 bg-chia-100
|
|
4
|
+
export const textInputContainerVariants = cva("flex-row items-center border border-chia-400 bg-chia-100", {
|
|
5
5
|
variants: {
|
|
6
6
|
corners: {
|
|
7
7
|
small: "rounded-500",
|
|
8
8
|
medium: "rounded-700"
|
|
9
9
|
},
|
|
10
|
+
size: {
|
|
11
|
+
small: "h-[48px]",
|
|
12
|
+
medium: "h-[56px]",
|
|
13
|
+
large: "h-[64px]"
|
|
14
|
+
},
|
|
10
15
|
showLabel: {
|
|
11
16
|
true: "gap-400 px-600 py-500",
|
|
12
17
|
false: "px-600 py-500"
|
|
13
18
|
},
|
|
19
|
+
showLeftIcon: {
|
|
20
|
+
true: "",
|
|
21
|
+
false: ""
|
|
22
|
+
},
|
|
14
23
|
error: {
|
|
15
24
|
true: "border-blackberry-500",
|
|
16
25
|
false: "border-chia-400"
|
|
@@ -22,12 +31,14 @@ export const textInputContainerVariants = cva("flex-row items-center border bord
|
|
|
22
31
|
},
|
|
23
32
|
defaultVariants: {
|
|
24
33
|
corners: "medium",
|
|
34
|
+
size: "large",
|
|
25
35
|
showLabel: false,
|
|
36
|
+
showLeftIcon: false,
|
|
26
37
|
error: false,
|
|
27
38
|
disabled: false
|
|
28
39
|
}
|
|
29
40
|
});
|
|
30
|
-
export const textInputContentVariants = cva("flex-1 flex-col text-chia-900", {
|
|
41
|
+
export const textInputContentVariants = cva("flex-1 flex-col text-chia-900 shrink min-w-0", {
|
|
31
42
|
variants: {
|
|
32
43
|
showLabel: {
|
|
33
44
|
true: "gap-0",
|
|
@@ -38,7 +49,7 @@ export const textInputContentVariants = cva("flex-1 flex-col text-chia-900", {
|
|
|
38
49
|
showLabel: false
|
|
39
50
|
}
|
|
40
51
|
});
|
|
41
|
-
export const textInputFieldVariants = cva("font-nunito-bold text-[16px] leading-[
|
|
52
|
+
export const textInputFieldVariants = cva("flex-1 font-nunito-bold text-[16px] leading-[20px] placeholder:text-chia-600 android:p-0 min-w-0", {
|
|
42
53
|
variants: {
|
|
43
54
|
disabled: {
|
|
44
55
|
true: "",
|
|
@@ -55,13 +66,19 @@ export const textInputFieldVariants = cva("font-nunito-bold text-[16px] leading-
|
|
|
55
66
|
showLabel: {
|
|
56
67
|
true: "min-h-700",
|
|
57
68
|
false: "min-h-800"
|
|
69
|
+
},
|
|
70
|
+
size: {
|
|
71
|
+
small: "ios:pt-[3px]",
|
|
72
|
+
medium: "ios:pt-[3px]",
|
|
73
|
+
large: "ios:pt-[2px]"
|
|
58
74
|
}
|
|
59
75
|
},
|
|
60
76
|
defaultVariants: {
|
|
61
77
|
disabled: false,
|
|
62
78
|
isValid: false,
|
|
63
79
|
error: false,
|
|
64
|
-
showLabel: false
|
|
80
|
+
showLabel: false,
|
|
81
|
+
size: "large"
|
|
65
82
|
}
|
|
66
83
|
});
|
|
67
84
|
//# sourceMappingURL=class-variants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["cva","textInputContainerVariants","variants","corners","small","medium","showLabel","true","false","error","disabled","defaultVariants","textInputContentVariants","textInputFieldVariants","isValid"],"sourceRoot":"../../../../../src","sources":["components/TextInput/assets/class-variants.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAE9C,OAAO,MAAMC,0BAA0B,GAAGD,GAAG,CAC3C,
|
|
1
|
+
{"version":3,"names":["cva","textInputContainerVariants","variants","corners","small","medium","size","large","showLabel","true","false","showLeftIcon","error","disabled","defaultVariants","textInputContentVariants","textInputFieldVariants","isValid"],"sourceRoot":"../../../../../src","sources":["components/TextInput/assets/class-variants.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAE9C,OAAO,MAAMC,0BAA0B,GAAGD,GAAG,CAC3C,0DAA0D,EAC1D;EACEE,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,KAAK,EAAE,aAAa;MACpBC,MAAM,EAAE;IACV,CAAC;IACDC,IAAI,EAAE;MACJF,KAAK,EAAE,UAAU;MACjBC,MAAM,EAAE,UAAU;MAClBE,KAAK,EAAE;IACT,CAAC;IACDC,SAAS,EAAE;MACTC,IAAI,EAAE,uBAAuB;MAC7BC,KAAK,EAAE;IACT,CAAC;IACDC,YAAY,EAAE;MACZF,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE;IACT,CAAC;IACDE,KAAK,EAAE;MACLH,IAAI,EAAE,uBAAuB;MAC7BC,KAAK,EAAE;IACT,CAAC;IACDG,QAAQ,EAAE;MACRJ,IAAI,EAAE,YAAY;MAClBC,KAAK,EAAE;IACT;EACF,CAAC;EACDI,eAAe,EAAE;IACfX,OAAO,EAAE,QAAQ;IACjBG,IAAI,EAAE,OAAO;IACbE,SAAS,EAAE,KAAK;IAChBG,YAAY,EAAE,KAAK;IACnBC,KAAK,EAAE,KAAK;IACZC,QAAQ,EAAE;EACZ;AACF,CACF,CAAC;AAED,OAAO,MAAME,wBAAwB,GAAGf,GAAG,CACzC,8CAA8C,EAC9C;EACEE,QAAQ,EAAE;IACRM,SAAS,EAAE;MACTC,IAAI,EAAE,OAAO;MACbC,KAAK,EAAE;IACT;EACF,CAAC;EACDI,eAAe,EAAE;IACfN,SAAS,EAAE;EACb;AACF,CACF,CAAC;AAED,OAAO,MAAMQ,sBAAsB,GAAGhB,GAAG,CACvC,kGAAkG,EAClG;EACEE,QAAQ,EAAE;IACRW,QAAQ,EAAE;MACRJ,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE;IACT,CAAC;IACDO,OAAO,EAAE;MACPR,IAAI,EAAE,eAAe;MACrBC,KAAK,EAAE;IACT,CAAC;IACDE,KAAK,EAAE;MACLH,IAAI,EAAE,qBAAqB;MAC3BC,KAAK,EAAE;IACT,CAAC;IACDF,SAAS,EAAE;MACTC,IAAI,EAAE,WAAW;MACjBC,KAAK,EAAE;IACT,CAAC;IACDJ,IAAI,EAAE;MACJF,KAAK,EAAE,cAAc;MACrBC,MAAM,EAAE,cAAc;MACtBE,KAAK,EAAE;IACT;EACF,CAAC;EACDO,eAAe,EAAE;IACfD,QAAQ,EAAE,KAAK;IACfI,OAAO,EAAE,KAAK;IACdL,KAAK,EAAE,KAAK;IACZJ,SAAS,EAAE,KAAK;IAChBF,IAAI,EAAE;EACR;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -5,4 +5,10 @@ export let TextInputCornersEnum = /*#__PURE__*/function (TextInputCornersEnum) {
|
|
|
5
5
|
TextInputCornersEnum["MEDIUM"] = "medium";
|
|
6
6
|
return TextInputCornersEnum;
|
|
7
7
|
}({});
|
|
8
|
+
export let TextInputSizeEnum = /*#__PURE__*/function (TextInputSizeEnum) {
|
|
9
|
+
TextInputSizeEnum["SMALL"] = "small";
|
|
10
|
+
TextInputSizeEnum["MEDIUM"] = "medium";
|
|
11
|
+
TextInputSizeEnum["LARGE"] = "large";
|
|
12
|
+
return TextInputSizeEnum;
|
|
13
|
+
}({});
|
|
8
14
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TextInputCornersEnum"],"sourceRoot":"../../../../src","sources":["components/TextInput/enums.ts"],"mappings":";;AAAA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TextInputCornersEnum","TextInputSizeEnum"],"sourceRoot":"../../../../src","sources":["components/TextInput/enums.ts"],"mappings":";;AAAA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AAKhC,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ import { View, TextInput as RNTextInput, Pressable } from "react-native";
|
|
|
5
5
|
import { merge } from "@kivid/tailwind-preset";
|
|
6
6
|
import { Seal } from "../Seal/index.js";
|
|
7
7
|
import { SealVariantEnum } from "../Seal/enums/index.js";
|
|
8
|
-
import { TextInputCornersEnum } from "./enums.js";
|
|
8
|
+
import { TextInputCornersEnum, TextInputSizeEnum } from "./enums.js";
|
|
9
9
|
import { textInputContainerVariants, textInputContentVariants, textInputFieldVariants } from "./assets/class-variants.js";
|
|
10
10
|
import Typography from "../Typography/index.js";
|
|
11
11
|
import { SizeEnum } from "../../enums/index.js";
|
|
@@ -14,6 +14,7 @@ import { TooltipVariantEnum } from "../Tooltip/enum/index.js";
|
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
export function TextInput({
|
|
16
16
|
corners = TextInputCornersEnum.MEDIUM,
|
|
17
|
+
size = TextInputSizeEnum.LARGE,
|
|
17
18
|
label,
|
|
18
19
|
value,
|
|
19
20
|
onChangeText,
|
|
@@ -30,12 +31,14 @@ export function TextInput({
|
|
|
30
31
|
tooltipClassName = "",
|
|
31
32
|
tooltipPointerClassName,
|
|
32
33
|
tooltipContainerClassName,
|
|
34
|
+
leftIcon,
|
|
33
35
|
rightIcon,
|
|
34
36
|
...rest
|
|
35
37
|
}) {
|
|
36
38
|
const inputRef = useRef(null);
|
|
37
39
|
const hasLabel = !!label;
|
|
38
40
|
const hasError = !!error;
|
|
41
|
+
const hasLeftIcon = !!leftIcon;
|
|
39
42
|
const shouldShowSeal = error || isValid;
|
|
40
43
|
const renderSeal = () => {
|
|
41
44
|
if (!shouldShowSeal) return null;
|
|
@@ -78,9 +81,11 @@ export function TextInput({
|
|
|
78
81
|
testID: containerTestID,
|
|
79
82
|
className: merge(textInputContainerVariants({
|
|
80
83
|
corners,
|
|
84
|
+
size,
|
|
81
85
|
error: !!error,
|
|
82
86
|
disabled,
|
|
83
|
-
showLabel: hasLabel
|
|
87
|
+
showLabel: hasLabel,
|
|
88
|
+
showLeftIcon: hasLeftIcon
|
|
84
89
|
}), className),
|
|
85
90
|
onPress: () => {
|
|
86
91
|
if (!disabled) {
|
|
@@ -88,7 +93,10 @@ export function TextInput({
|
|
|
88
93
|
}
|
|
89
94
|
},
|
|
90
95
|
disabled: disabled,
|
|
91
|
-
children: [/*#__PURE__*/
|
|
96
|
+
children: [leftIcon && /*#__PURE__*/_jsx(View, {
|
|
97
|
+
className: "mr-400",
|
|
98
|
+
children: leftIcon
|
|
99
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
92
100
|
className: merge(textInputContentVariants({
|
|
93
101
|
showLabel: hasLabel
|
|
94
102
|
})),
|
|
@@ -102,11 +110,13 @@ export function TextInput({
|
|
|
102
110
|
onChangeText: handleChangeText,
|
|
103
111
|
editable: !disabled,
|
|
104
112
|
placeholder: placeholder,
|
|
113
|
+
textAlignVertical: "center",
|
|
105
114
|
className: merge(textInputFieldVariants({
|
|
106
115
|
disabled,
|
|
107
116
|
isValid,
|
|
108
117
|
error: hasError,
|
|
109
|
-
showLabel: hasLabel
|
|
118
|
+
showLabel: hasLabel,
|
|
119
|
+
size
|
|
110
120
|
}), inputClassName),
|
|
111
121
|
accessibilityLabel: getAccessibilityLabel(),
|
|
112
122
|
accessibilityState: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useRef","View","TextInput","RNTextInput","Pressable","merge","Seal","SealVariantEnum","TextInputCornersEnum","textInputContainerVariants","textInputContentVariants","textInputFieldVariants","Typography","SizeEnum","Tooltip","TooltipVariantEnum","jsx","_jsx","jsxs","_jsxs","corners","MEDIUM","label","value","onChangeText","disabled","error","isValid","className","inputClassName","labelClassName","placeholder","accessibilityLabel","containerTestID","ref","tooltipClassName","tooltipPointerClassName","tooltipContainerClassName","rightIcon","rest","inputRef","hasLabel","hasError","shouldShowSeal","renderSeal","testID","sealVariant","ERROR","SUCCESS","children","variant","
|
|
1
|
+
{"version":3,"names":["useRef","View","TextInput","RNTextInput","Pressable","merge","Seal","SealVariantEnum","TextInputCornersEnum","TextInputSizeEnum","textInputContainerVariants","textInputContentVariants","textInputFieldVariants","Typography","SizeEnum","Tooltip","TooltipVariantEnum","jsx","_jsx","jsxs","_jsxs","corners","MEDIUM","size","LARGE","label","value","onChangeText","disabled","error","isValid","className","inputClassName","labelClassName","placeholder","accessibilityLabel","containerTestID","ref","tooltipClassName","tooltipPointerClassName","tooltipContainerClassName","leftIcon","rightIcon","rest","inputRef","hasLabel","hasError","hasLeftIcon","shouldShowSeal","renderSeal","testID","sealVariant","ERROR","SUCCESS","children","variant","renderRightIcon","handleChangeText","text","getAccessibilityLabel","labelText","isOpenedByVariantError","message","pointerClassName","containerClassName","showLabel","showLeftIcon","onPress","current","focus","weight","editable","textAlignVertical","accessibilityState","instance","displayName"],"sourceRoot":"../../../../src","sources":["components/TextInput/index.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,OAAO;AAC9B,SAASC,IAAI,EAAEC,SAAS,IAAIC,WAAW,EAAEC,SAAS,QAAQ,cAAc;AACxE,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,eAAe,QAAQ,wBAAe;AAE/C,SAASC,oBAAoB,EAAEC,iBAAiB,QAAQ,YAAS;AACjE,SACEC,0BAA0B,EAC1BC,wBAAwB,EACxBC,sBAAsB,QACjB,4BAAyB;AAChC,OAAOC,UAAU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;IAAA,CACT;EAAC,CACL,CAAC;AAEd;AAEAtD,SAAS,CAACyE,WAAW,GAAG,WAAW;AAEnC,eAAezE,SAAS","ignoreList":[]}
|
|
@@ -12,6 +12,7 @@ export * from "./CheckboxInput/index.js";
|
|
|
12
12
|
export * from "./CheckboxInput/enums/index.js";
|
|
13
13
|
export * from "./OtpInput/index.js";
|
|
14
14
|
export * from "./OtpInput/enums/index.js";
|
|
15
|
+
export * from "./MessageInput/index.js";
|
|
15
16
|
export * from "./HighlightedText/index.js";
|
|
16
17
|
export * from "./LoadingDots/index.js";
|
|
17
18
|
export * from "./LoadingDots/types.js";
|
|
@@ -37,4 +38,6 @@ export * from "./IconButton/enums.js";
|
|
|
37
38
|
export * from "./PasswordInput/index.js";
|
|
38
39
|
export * from "./PageIndicators/index.js";
|
|
39
40
|
export * from "./ActionButton/index.js";
|
|
41
|
+
export * from "./MessageInput/index.js";
|
|
42
|
+
export * from "./DatePicker/index.js";
|
|
40
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,mBAAU;AACxB,cAAc,mBAAU;AAGxB,cAAc,uBAAc;AAI5B,cAAc,iBAAQ;AACtB,cAAc,uBAAc;AAC5B,cAAc,iBAAc;AAE5B,cAAc,8BAAqB;AACnC,cAAc,8BAA2B;AAGzC,cAAc,0BAAiB;AAC/B,cAAc,gCAAuB;AAGrC,cAAc,qBAAY;AAC1B,cAAc,2BAAkB;AAGhC,cAAc,4BAAmB;AAGjC,cAAc,wBAAe;AAC7B,cAAc,wBAAqB;AAEnC,cAAc,iBAAQ;AACtB,cAAc,uBAAc;AAG5B,cAAc,kBAAS;AAGvB,cAAc,mBAAU;AACxB,cAAc,yBAAgB;AAG9B,cAAc,uBAAc;AAG5B,cAAc,kBAAS;AACvB,cAAc,wBAAe;AAG7B,cAAc,oBAAW;AAGzB,cAAc,uBAAc;AAC5B,cAAc,6BAAoB;AAGlC,cAAc,sBAAa;AAC3B,cAAc,sBAAmB;AAGjC,cAAc,yBAAgB;AAC9B,cAAc,+BAAsB;AAGpC,cAAc,uBAAc;AAC5B,cAAc,6BAAoB;AAGlC,cAAc,uBAAc;AAC5B,cAAc,uBAAoB;AAGlC,cAAc,0BAAiB;AAG/B,cAAc,2BAAkB;AAGhC,cAAc,yBAAgB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,mBAAU;AACxB,cAAc,mBAAU;AAGxB,cAAc,uBAAc;AAI5B,cAAc,iBAAQ;AACtB,cAAc,uBAAc;AAC5B,cAAc,iBAAc;AAE5B,cAAc,8BAAqB;AACnC,cAAc,8BAA2B;AAGzC,cAAc,0BAAiB;AAC/B,cAAc,gCAAuB;AAGrC,cAAc,qBAAY;AAC1B,cAAc,2BAAkB;AAGhC,cAAc,yBAAgB;AAG9B,cAAc,4BAAmB;AAGjC,cAAc,wBAAe;AAC7B,cAAc,wBAAqB;AAEnC,cAAc,iBAAQ;AACtB,cAAc,uBAAc;AAG5B,cAAc,kBAAS;AAGvB,cAAc,mBAAU;AACxB,cAAc,yBAAgB;AAG9B,cAAc,uBAAc;AAG5B,cAAc,kBAAS;AACvB,cAAc,wBAAe;AAG7B,cAAc,oBAAW;AAGzB,cAAc,uBAAc;AAC5B,cAAc,6BAAoB;AAGlC,cAAc,sBAAa;AAC3B,cAAc,sBAAmB;AAGjC,cAAc,yBAAgB;AAC9B,cAAc,+BAAsB;AAGpC,cAAc,uBAAc;AAC5B,cAAc,6BAAoB;AAGlC,cAAc,uBAAc;AAC5B,cAAc,uBAAoB;AAGlC,cAAc,0BAAiB;AAG/B,cAAc,2BAAkB;AAGhC,cAAc,yBAAgB;AAG9B,cAAc,yBAAgB;AAG9B,cAAc,uBAAc","ignoreList":[]}
|
|
@@ -4,5 +4,11 @@ export declare const chatBubbleBoxVariants: (props?: ({
|
|
|
4
4
|
hasEar?: boolean | null | undefined;
|
|
5
5
|
messageType?: "initial" | "followUp" | null | undefined;
|
|
6
6
|
fullWidth?: boolean | null | undefined;
|
|
7
|
+
origin?: "user" | "assistant" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const chatBubbleTimeVariants: (props?: ({
|
|
10
|
+
origin?: "user" | "assistant" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
|
+
export declare const chatBubbleContainerVariants: (props?: ({
|
|
13
|
+
origin?: "user" | "assistant" | null | undefined;
|
|
7
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
-
export declare const chatBubbleTimeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
interface ChatBubbleEarProps extends SvgProps {
|
|
4
|
-
type: "fill" | "outline";
|
|
5
|
-
color?: string;
|
|
6
|
-
}
|
|
2
|
+
import { ChatBubbleEarProps } from "./types";
|
|
7
3
|
export declare const ChatBubbleEar: React.FC<ChatBubbleEarProps>;
|
|
8
|
-
export {};
|
|
@@ -10,6 +10,7 @@ export interface ChatBubbleProps extends Omit<ViewProps, "children"> {
|
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
time?: string;
|
|
12
12
|
shouldDisplayTime?: boolean;
|
|
13
|
+
origin?: "user" | "assistant";
|
|
13
14
|
messageType?: ChatBubbleMessageType;
|
|
14
15
|
chatBubbleBoxClassName?: string;
|
|
15
16
|
fullWidth?: boolean;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const defaultTheme: {
|
|
2
|
+
backgroundColor: string;
|
|
3
|
+
calendarBackground: string;
|
|
4
|
+
textSectionTitleColor: string;
|
|
5
|
+
textSectionTitleDisabledColor: string;
|
|
6
|
+
selectedDayBackgroundColor: string;
|
|
7
|
+
selectedDayTextColor: string;
|
|
8
|
+
todayTextColor: string;
|
|
9
|
+
dayTextColor: string;
|
|
10
|
+
textDisabledColor: string;
|
|
11
|
+
dotColor: string;
|
|
12
|
+
selectedDotColor: string;
|
|
13
|
+
arrowColor: string;
|
|
14
|
+
disabledArrowColor: string;
|
|
15
|
+
monthTextColor: string;
|
|
16
|
+
indicatorColor: string;
|
|
17
|
+
textDayFontFamily: string;
|
|
18
|
+
textMonthFontFamily: string;
|
|
19
|
+
textDayHeaderFontFamily: string;
|
|
20
|
+
textDayFontWeight: "500";
|
|
21
|
+
textMonthFontWeight: "600";
|
|
22
|
+
textDayHeaderFontWeight: "700";
|
|
23
|
+
textDayFontSize: number;
|
|
24
|
+
textMonthFontSize: number;
|
|
25
|
+
textDayHeaderFontSize: number;
|
|
26
|
+
"stylesheet.calendar.header": {
|
|
27
|
+
header: {
|
|
28
|
+
flexDirection: "row";
|
|
29
|
+
justifyContent: "space-between";
|
|
30
|
+
alignItems: "center";
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
borderBottomWidth: number;
|
|
33
|
+
borderBottomColor: string;
|
|
34
|
+
};
|
|
35
|
+
monthText: {
|
|
36
|
+
fontSize: number;
|
|
37
|
+
fontWeight: "600";
|
|
38
|
+
color: string;
|
|
39
|
+
};
|
|
40
|
+
arrow: {
|
|
41
|
+
padding: number;
|
|
42
|
+
};
|
|
43
|
+
arrowImage: {
|
|
44
|
+
tintColor: string;
|
|
45
|
+
};
|
|
46
|
+
week: {
|
|
47
|
+
marginTop: number;
|
|
48
|
+
marginBottom: number;
|
|
49
|
+
flexDirection: "row";
|
|
50
|
+
justifyContent: "space-around";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
"stylesheet.day.basic": {
|
|
54
|
+
base: {
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
alignItems: "center";
|
|
58
|
+
justifyContent: "center";
|
|
59
|
+
borderWidth: number;
|
|
60
|
+
borderColor: string;
|
|
61
|
+
borderRadius: number;
|
|
62
|
+
paddingTop: number;
|
|
63
|
+
paddingBottom: number;
|
|
64
|
+
};
|
|
65
|
+
text: {
|
|
66
|
+
fontSize: number;
|
|
67
|
+
fontWeight: "500";
|
|
68
|
+
color: string;
|
|
69
|
+
};
|
|
70
|
+
selected: {
|
|
71
|
+
backgroundColor: string;
|
|
72
|
+
borderWidth: number;
|
|
73
|
+
borderColor: string;
|
|
74
|
+
};
|
|
75
|
+
today: {
|
|
76
|
+
backgroundColor: string;
|
|
77
|
+
borderWidth: number;
|
|
78
|
+
borderColor: string;
|
|
79
|
+
};
|
|
80
|
+
todayText: {
|
|
81
|
+
color: string;
|
|
82
|
+
fontWeight: "600";
|
|
83
|
+
};
|
|
84
|
+
disabled: {
|
|
85
|
+
opacity: number;
|
|
86
|
+
borderWidth: number;
|
|
87
|
+
};
|
|
88
|
+
disabledText: {
|
|
89
|
+
color: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CalendarProps } from "react-native-calendars";
|
|
2
|
+
import { MarkingTypes } from "react-native-calendars/src/types";
|
|
3
|
+
export interface DatePickerProps extends Omit<CalendarProps, "onDayPress"> {
|
|
4
|
+
onDateSelect?: (date: string, additionalData?: string[] | {
|
|
5
|
+
start: string;
|
|
6
|
+
end: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
initialDate?: string;
|
|
9
|
+
minDate?: string;
|
|
10
|
+
maxDate?: string;
|
|
11
|
+
markedDates?: CalendarProps["markedDates"];
|
|
12
|
+
theme?: CalendarProps["theme"];
|
|
13
|
+
selectionType?: MarkingTypes;
|
|
14
|
+
unavailableDates?: string[];
|
|
15
|
+
selectedDates: string[];
|
|
16
|
+
onSelectedDatesChange: (dateOrUpdater: string | ((prev: string[]) => string[])) => void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const messageInputContainerVariants: (props?: ({
|
|
2
|
+
disabled?: boolean | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const messageInputContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
|
+
export declare const messageInputFieldVariants: (props?: ({
|
|
6
|
+
disabled?: boolean | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MessageInputProps } from "./types";
|
|
2
|
+
export declare function MessageInput({ value, onChangeText, disabled, className, inputClassName, placeholder, accessibilityLabel, containerTestID, ref, onSend, sendButtonDisabled, sendButtonAccessibilityLabel, multiline, ...rest }: MessageInputProps): import("react").JSX.Element;
|
|
3
|
+
export declare namespace MessageInput {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default MessageInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextInputProps as RNTextInputProps, TextInput as RNTextInput } from "react-native";
|
|
2
|
+
export interface MessageInputProps extends Omit<RNTextInputProps, "value" | "onChangeText"> {
|
|
3
|
+
value?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
inputClassName?: string;
|
|
7
|
+
containerTestID?: string;
|
|
8
|
+
onChangeText?: (text: string) => void;
|
|
9
|
+
onSend?: (text: string) => void;
|
|
10
|
+
ref?: React.RefObject<RNTextInput | null>;
|
|
11
|
+
sendButtonDisabled?: boolean;
|
|
12
|
+
sendButtonAccessibilityLabel?: string;
|
|
13
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const textInputContainerVariants: (props?: ({
|
|
2
2
|
corners?: "small" | "medium" | null | undefined;
|
|
3
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
3
4
|
showLabel?: boolean | null | undefined;
|
|
5
|
+
showLeftIcon?: boolean | null | undefined;
|
|
4
6
|
error?: boolean | null | undefined;
|
|
5
7
|
disabled?: boolean | null | undefined;
|
|
6
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -12,4 +14,5 @@ export declare const textInputFieldVariants: (props?: ({
|
|
|
12
14
|
isValid?: boolean | null | undefined;
|
|
13
15
|
error?: boolean | null | undefined;
|
|
14
16
|
showLabel?: boolean | null | undefined;
|
|
17
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
15
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TextInputProps } from "./types";
|
|
2
|
-
export declare function TextInput({ corners, label, value, onChangeText, disabled, error, isValid, className, inputClassName, labelClassName, placeholder, accessibilityLabel, containerTestID, ref, tooltipClassName, tooltipPointerClassName, tooltipContainerClassName, rightIcon, ...rest }: TextInputProps): import("react").JSX.Element;
|
|
2
|
+
export declare function TextInput({ corners, size, label, value, onChangeText, disabled, error, isValid, className, inputClassName, labelClassName, placeholder, accessibilityLabel, containerTestID, ref, tooltipClassName, tooltipPointerClassName, tooltipContainerClassName, leftIcon, rightIcon, ...rest }: TextInputProps): import("react").JSX.Element;
|
|
3
3
|
export declare namespace TextInput {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TextInputProps as RNTextInputProps, TextInput as RNTextInput } from "react-native";
|
|
2
|
-
import { TextInputCornersEnum } from "./enums";
|
|
2
|
+
import { TextInputCornersEnum, TextInputSizeEnum } from "./enums";
|
|
3
3
|
export type TextInputCorners = TextInputCornersEnum;
|
|
4
|
+
export type TextInputSize = TextInputSizeEnum;
|
|
4
5
|
export interface TextInputProps extends Omit<RNTextInputProps, "value" | "onChangeText"> {
|
|
5
6
|
corners?: TextInputCorners;
|
|
7
|
+
size?: TextInputSize;
|
|
6
8
|
label?: string;
|
|
7
9
|
value?: string;
|
|
8
10
|
disabled?: boolean;
|
|
@@ -15,6 +17,7 @@ export interface TextInputProps extends Omit<RNTextInputProps, "value" | "onChan
|
|
|
15
17
|
tooltipClassName?: string;
|
|
16
18
|
tooltipPointerClassName?: string;
|
|
17
19
|
tooltipContainerClassName?: string;
|
|
20
|
+
leftIcon?: React.ReactNode;
|
|
18
21
|
rightIcon?: React.ReactNode;
|
|
19
22
|
onChangeText?: (text: string) => void;
|
|
20
23
|
ref?: React.RefObject<RNTextInput | null>;
|
|
@@ -16,6 +16,8 @@ export type * from "./CheckboxInput/types";
|
|
|
16
16
|
export * from "./OtpInput";
|
|
17
17
|
export * from "./OtpInput/enums";
|
|
18
18
|
export type * from "./OtpInput/types";
|
|
19
|
+
export * from "./MessageInput";
|
|
20
|
+
export type * from "./MessageInput/types";
|
|
19
21
|
export * from "./HighlightedText";
|
|
20
22
|
export type * from "./HighlightedText/types";
|
|
21
23
|
export * from "./LoadingDots";
|
|
@@ -56,3 +58,7 @@ export * from "./PageIndicators";
|
|
|
56
58
|
export type * from "./PageIndicators/types";
|
|
57
59
|
export * from "./ActionButton";
|
|
58
60
|
export type * from "./ActionButton/types";
|
|
61
|
+
export * from "./MessageInput";
|
|
62
|
+
export type * from "./MessageInput/types";
|
|
63
|
+
export * from "./DatePicker";
|
|
64
|
+
export type * from "./DatePicker/types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kivid/native-components",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.22",
|
|
4
4
|
"description": "A React Native component library for the Butterfly Design System.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -53,53 +53,68 @@
|
|
|
53
53
|
]
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
|
-
"dependencies": {},
|
|
57
56
|
"devDependencies": {
|
|
58
57
|
"@babel/core": "^7.24.0",
|
|
58
|
+
"@babel/eslint-parser": "^7.28.5",
|
|
59
59
|
"@babel/preset-env": "^7.25.4",
|
|
60
60
|
"@lottiefiles/dotlottie-react": "^0.15.1",
|
|
61
61
|
"@react-native-community/cli": "^15.1.3",
|
|
62
62
|
"@react-native/babel-preset": "^0.77.0",
|
|
63
|
+
"@react-native/eslint-config": "^0.77.0",
|
|
64
|
+
"@react-native/eslint-plugin": "^0.83.0",
|
|
63
65
|
"@testing-library/react-native": "^13.3.3",
|
|
64
66
|
"@types/jest": "^29.5.12",
|
|
65
67
|
"@types/node": "^24.1.0",
|
|
66
68
|
"@types/react": "19.0.14",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
70
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
67
71
|
"babel-jest": "^29.7.0",
|
|
68
72
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
69
73
|
"class-variance-authority": "^0.7.1",
|
|
70
74
|
"cross-env": "^7.0.3",
|
|
71
|
-
"
|
|
75
|
+
"eslint": "^8.57.1",
|
|
76
|
+
"eslint-config-prettier": "^10.1.8",
|
|
77
|
+
"eslint-plugin-react": "^7.37.5",
|
|
78
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
79
|
+
"eslint-plugin-react-native": "^5.0.0",
|
|
72
80
|
"jest": "^29.7.0",
|
|
81
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
73
82
|
"lottie-react-native": "^7.2.2",
|
|
74
83
|
"prettier-plugin-tailwindcss": "^0.5.14",
|
|
84
|
+
"react": "19.0.0",
|
|
85
|
+
"react-native": "0.79.5",
|
|
75
86
|
"react-native-builder-bob": "^0.40.13",
|
|
76
87
|
"react-native-svg": "^15.12.0",
|
|
77
|
-
"react-native": "0.79.5",
|
|
78
88
|
"react-test-renderer": "19.0.0",
|
|
79
|
-
"react": "19.0.0",
|
|
80
89
|
"ts-jest": "^29.2.5",
|
|
81
90
|
"typescript": "~5.8.3",
|
|
82
|
-
"@kivid/tailwind-preset": "1.0.0-alpha.
|
|
83
|
-
"@kivid/icons": "1.0.0-alpha.
|
|
91
|
+
"@kivid/tailwind-preset": "1.0.0-alpha.22",
|
|
92
|
+
"@kivid/icons": "1.0.0-alpha.22"
|
|
84
93
|
},
|
|
85
94
|
"peerDependencies": {
|
|
86
95
|
"@lottiefiles/dotlottie-react": "^0.15.1",
|
|
87
96
|
"class-variance-authority": "^0.7.1",
|
|
88
97
|
"lottie-react-native": "^7.2.4",
|
|
89
98
|
"nativewind": "4.1.23",
|
|
90
|
-
"react-native-svg": "^15.12.0",
|
|
91
|
-
"react-native": "0.79.5",
|
|
92
99
|
"react": "19.0.0",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
100
|
+
"react-native": "0.79.5",
|
|
101
|
+
"react-native-svg": "^15.12.0",
|
|
102
|
+
"@kivid/tailwind-preset": "1.0.0-alpha.22",
|
|
103
|
+
"@kivid/icons": "1.0.0-alpha.22"
|
|
95
104
|
},
|
|
96
105
|
"eslintIgnore": [
|
|
97
106
|
"node_modules/",
|
|
98
107
|
"dist/"
|
|
99
108
|
],
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"date-fns": "^4.1.0",
|
|
111
|
+
"react-native-calendars": "^1.1313.0"
|
|
112
|
+
},
|
|
100
113
|
"scripts": {
|
|
101
114
|
"build": "rm -rf dist && tsc -p tsconfig.build.json && bob build && node postbuild.js",
|
|
102
115
|
"dev": "tsc -p tsconfig.build.json --watch",
|
|
116
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
117
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
103
118
|
"test": "jest",
|
|
104
119
|
"test:watch": "jest --watch",
|
|
105
120
|
"test:coverage": "jest --coverage"
|