@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.
Files changed (96) hide show
  1. package/dist/commonjs/components/DatePicker/assets/theme.js +60 -0
  2. package/dist/commonjs/components/DatePicker/assets/theme.js.map +1 -1
  3. package/dist/commonjs/components/DatePicker/index.js +84 -0
  4. package/dist/commonjs/components/DatePicker/index.js.map +1 -1
  5. package/dist/commonjs/components/Dropdown/index.js +156 -0
  6. package/dist/commonjs/components/Dropdown/index.js.map +1 -0
  7. package/dist/commonjs/components/Dropdown/types.js +6 -0
  8. package/dist/commonjs/components/Dropdown/types.js.map +1 -0
  9. package/dist/commonjs/components/ListButton/assets/class-variants.js +2 -1
  10. package/dist/commonjs/components/ListButton/assets/class-variants.js.map +1 -1
  11. package/dist/commonjs/components/ListButton/assets/design-system-showcase.js +59 -0
  12. package/dist/commonjs/components/ListButton/assets/design-system-showcase.js.map +1 -1
  13. package/dist/commonjs/components/ListButton/enums/variant.js +1 -0
  14. package/dist/commonjs/components/ListButton/enums/variant.js.map +1 -1
  15. package/dist/commonjs/components/Tab/assets/class-variants.js +69 -0
  16. package/dist/commonjs/components/Tab/assets/class-variants.js.map +1 -0
  17. package/dist/commonjs/components/Tab/index.js +90 -0
  18. package/dist/commonjs/components/Tab/index.js.map +1 -0
  19. package/dist/commonjs/components/Tab/types.js +6 -0
  20. package/dist/commonjs/components/Tab/types.js.map +1 -0
  21. package/dist/commonjs/components/TextAreaInput/assets/class-variants.js +91 -0
  22. package/dist/commonjs/components/TextAreaInput/assets/class-variants.js.map +1 -0
  23. package/dist/commonjs/components/TextAreaInput/enums.js +12 -0
  24. package/dist/commonjs/components/TextAreaInput/enums.js.map +1 -0
  25. package/dist/commonjs/components/TextAreaInput/index.js +105 -0
  26. package/dist/commonjs/components/TextAreaInput/index.js.map +1 -0
  27. package/dist/commonjs/components/TextAreaInput/types.js +6 -0
  28. package/dist/commonjs/components/TextAreaInput/types.js.map +1 -0
  29. package/dist/commonjs/components/Title/components/marker/index.js +11 -4
  30. package/dist/commonjs/components/Title/components/marker/index.js.map +1 -1
  31. package/dist/commonjs/components/index.js +81 -26
  32. package/dist/commonjs/components/index.js.map +1 -1
  33. package/dist/module/components/DatePicker/assets/theme.js +60 -0
  34. package/dist/module/components/DatePicker/assets/theme.js.map +1 -1
  35. package/dist/module/components/DatePicker/index.js +85 -1
  36. package/dist/module/components/DatePicker/index.js.map +1 -1
  37. package/dist/module/components/Dropdown/index.js +151 -0
  38. package/dist/module/components/Dropdown/index.js.map +1 -0
  39. package/dist/module/components/Dropdown/types.js +4 -0
  40. package/dist/module/components/Dropdown/types.js.map +1 -0
  41. package/dist/module/components/ListButton/assets/class-variants.js +2 -1
  42. package/dist/module/components/ListButton/assets/class-variants.js.map +1 -1
  43. package/dist/module/components/ListButton/assets/design-system-showcase.js +59 -0
  44. package/dist/module/components/ListButton/assets/design-system-showcase.js.map +1 -1
  45. package/dist/module/components/ListButton/enums/variant.js +1 -0
  46. package/dist/module/components/ListButton/enums/variant.js.map +1 -1
  47. package/dist/module/components/Tab/assets/class-variants.js +66 -0
  48. package/dist/module/components/Tab/assets/class-variants.js.map +1 -0
  49. package/dist/module/components/Tab/index.js +86 -0
  50. package/dist/module/components/Tab/index.js.map +1 -0
  51. package/dist/module/components/Tab/types.js +4 -0
  52. package/dist/module/components/Tab/types.js.map +1 -0
  53. package/dist/module/components/TextAreaInput/assets/class-variants.js +87 -0
  54. package/dist/module/components/TextAreaInput/assets/class-variants.js.map +1 -0
  55. package/dist/module/components/TextAreaInput/enums.js +8 -0
  56. package/dist/module/components/TextAreaInput/enums.js.map +1 -0
  57. package/dist/module/components/TextAreaInput/index.js +100 -0
  58. package/dist/module/components/TextAreaInput/index.js.map +1 -0
  59. package/dist/module/components/TextAreaInput/types.js +4 -0
  60. package/dist/module/components/TextAreaInput/types.js.map +1 -0
  61. package/dist/module/components/Title/components/marker/index.js +11 -4
  62. package/dist/module/components/Title/components/marker/index.js.map +1 -1
  63. package/dist/module/components/index.js +5 -0
  64. package/dist/module/components/index.js.map +1 -1
  65. package/dist/typescript/components/DatePicker/assets/theme.d.ts +60 -0
  66. package/dist/typescript/components/Dropdown/index.d.ts +3 -0
  67. package/dist/typescript/components/Dropdown/types.d.ts +20 -0
  68. package/dist/typescript/components/ListButton/enums/variant.d.ts +2 -1
  69. package/dist/typescript/components/Tab/assets/class-variants.d.ts +18 -0
  70. package/dist/typescript/components/Tab/index.d.ts +2 -0
  71. package/dist/typescript/components/Tab/types.d.ts +17 -0
  72. package/dist/typescript/components/TextAreaInput/assets/class-variants.d.ts +17 -0
  73. package/dist/typescript/components/TextAreaInput/enums.d.ts +4 -0
  74. package/dist/typescript/components/TextAreaInput/index.d.ts +2 -0
  75. package/dist/typescript/components/TextAreaInput/types.d.ts +22 -0
  76. package/dist/typescript/components/Title/components/marker/index.d.ts +1 -1
  77. package/dist/typescript/components/Title/components/marker/types.d.ts +1 -0
  78. package/dist/typescript/components/index.d.ts +8 -0
  79. package/package.json +6 -5
  80. package/src/components/DatePicker/assets/theme.ts +60 -0
  81. package/src/components/DatePicker/index.tsx +106 -4
  82. package/src/components/Dropdown/index.tsx +165 -0
  83. package/src/components/Dropdown/types.ts +21 -0
  84. package/src/components/ListButton/assets/class-variants.ts +4 -0
  85. package/src/components/ListButton/assets/design-system-showcase.ts +69 -0
  86. package/src/components/ListButton/enums/variant.ts +1 -0
  87. package/src/components/Tab/assets/class-variants.ts +83 -0
  88. package/src/components/Tab/index.tsx +92 -0
  89. package/src/components/Tab/types.ts +20 -0
  90. package/src/components/TextAreaInput/assets/class-variants.ts +96 -0
  91. package/src/components/TextAreaInput/enums.ts +4 -0
  92. package/src/components/TextAreaInput/index.tsx +119 -0
  93. package/src/components/TextAreaInput/types.ts +28 -0
  94. package/src/components/Title/components/marker/index.tsx +10 -2
  95. package/src/components/Title/components/marker/types.ts +1 -0
  96. 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
- return <View className={`${mappedColor} ${mappedSize} rounded-500`} />;
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
  }
@@ -3,6 +3,7 @@ import { SizeEnum } from "../../../../enums";
3
3
  export type MarkerSize = SizeEnum.SMALL | SizeEnum.MEDIUM;
4
4
 
5
5
  export interface MarkerProps {
6
+ customMarkerComponent?: React.ReactNode;
6
7
  size?: MarkerSize;
7
8
  color?:
8
9
  | "pear"
@@ -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";