@bigbinary/neetoui-rn 0.0.123 → 0.0.126

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 (66) hide show
  1. package/assets/fonts/SFProText-Bold.ttf +0 -0
  2. package/assets/fonts/SFProText-Medium.ttf +0 -0
  3. package/assets/fonts/SFProText-Regular.ttf +0 -0
  4. package/assets/fonts/SFProText-Semibold.ttf +0 -0
  5. package/assets/icons/apple-logo.svg +3 -0
  6. package/assets/icons/error.svg +4 -0
  7. package/assets/icons/google-logo.svg +6 -0
  8. package/assets/icons/info.svg +7 -0
  9. package/assets/icons/success.svg +3 -0
  10. package/assets/icons/warning.svg +5 -0
  11. package/lib/components/Alert.js +1 -1
  12. package/lib/components/Avatar.js +1 -1
  13. package/lib/components/Badge.js +1 -1
  14. package/lib/components/BottomSheet.js +1 -1
  15. package/lib/components/Button.js +1 -1
  16. package/lib/components/Carousel.js +1 -0
  17. package/lib/components/CheckBox.js +1 -1
  18. package/lib/components/Chip.js +1 -1
  19. package/lib/components/Input.js +1 -1
  20. package/lib/components/ListItem.js +1 -0
  21. package/lib/components/MultiSelect.js +1 -1
  22. package/lib/components/OnBoarding.js +1 -0
  23. package/lib/components/OtpInputs.js +1 -1
  24. package/lib/components/Popover.js +1 -1
  25. package/lib/components/RadioButton.js +1 -1
  26. package/lib/components/SearchBar.js +1 -0
  27. package/lib/components/SegmentPicker.js +1 -0
  28. package/lib/components/Select.js +1 -1
  29. package/lib/components/SocialButton.js +1 -0
  30. package/lib/components/Toast.js +1 -1
  31. package/lib/components/ToggleSwitch.js +1 -1
  32. package/lib/components/index.js +1 -1
  33. package/lib/config/toasterConfig.js +1 -1
  34. package/lib/hooks/index.js +1 -1
  35. package/lib/hooks/useDebounce.js +1 -0
  36. package/lib/theme/index.js +1 -1
  37. package/package.json +5 -3
  38. package/src/components/Alert.js +5 -5
  39. package/src/components/Avatar.js +1 -1
  40. package/src/components/Badge.js +1 -1
  41. package/src/components/BottomSheet.js +114 -74
  42. package/src/components/Button.js +66 -64
  43. package/src/components/Carousel.js +112 -0
  44. package/src/components/CheckBox.js +87 -81
  45. package/src/components/Chip.js +1 -1
  46. package/src/components/Input.js +147 -241
  47. package/src/components/ListItem.js +59 -0
  48. package/src/components/MultiSelect.js +10 -8
  49. package/src/components/OnBoarding.js +116 -0
  50. package/src/components/OtpInputs.js +1 -1
  51. package/src/components/Popover.js +13 -1
  52. package/src/components/RadioButton.js +88 -114
  53. package/src/components/SearchBar.js +134 -0
  54. package/src/components/SegmentPicker.js +210 -0
  55. package/src/components/Select.js +9 -7
  56. package/src/components/SocialButton.js +89 -0
  57. package/src/components/Toast.js +85 -30
  58. package/src/components/ToggleSwitch.js +49 -97
  59. package/src/components/Typography.js +2 -2
  60. package/src/components/index.js +6 -0
  61. package/src/config/toasterConfig.js +2 -2
  62. package/src/hooks/index.js +1 -0
  63. package/src/hooks/useDebounce.js +16 -0
  64. package/src/theme/index.js +65 -34
  65. package/assets/fonts/Inter-Bold.ttf +0 -0
  66. package/assets/fonts/Inter-Regular.ttf +0 -0
@@ -1,4 +1,5 @@
1
1
  export { Button } from "./Button";
2
+ export { SocialButton } from "./SocialButton";
2
3
  export { Container } from "./Container";
3
4
  export { Typography } from "./Typography";
4
5
  export { Input } from "./Input";
@@ -25,3 +26,8 @@ export { MultiSelect } from "./MultiSelect";
25
26
  export { Divider } from "./Divider";
26
27
  export { FlatList } from "./FlatList";
27
28
  export { ScrollView } from "./ScrollView";
29
+ export { SegmentPicker } from "./SegmentPicker";
30
+ export { ListItem } from "./ListItem";
31
+ export { Carousel } from "./Carousel";
32
+ export { OnBoarding } from "./OnBoarding";
33
+ export { SearchBar } from "./SearchBar";
@@ -121,12 +121,12 @@ const styles = StyleSheet.create({
121
121
  },
122
122
  text1Style: {
123
123
  fontSize: 15,
124
- fontFamily: theme.fonts.inter700,
124
+ fontFamily: theme.fonts.sf700,
125
125
  color: theme.colors.font.white,
126
126
  },
127
127
  text2Style: {
128
128
  fontSize: 16,
129
- fontFamily: theme.fonts.inter700,
129
+ fontFamily: theme.fonts.sf700,
130
130
  color: theme.colors.font.white,
131
131
  },
132
132
  closeButtonStyle: {
@@ -1 +1,2 @@
1
1
  export { useKeyboard } from "./useKeyboard";
2
+ export { useDebounce } from "./useDebounce";
@@ -0,0 +1,16 @@
1
+ import { useState, useEffect } from "react";
2
+
3
+ export function useDebounce(value, delay) {
4
+ const [debouncedValue, setDebouncedValue] = useState(value);
5
+
6
+ useEffect(() => {
7
+ const handler = setTimeout(() => {
8
+ setDebouncedValue(value);
9
+ }, delay);
10
+ return () => {
11
+ clearTimeout(handler);
12
+ };
13
+ }, [value, delay]);
14
+
15
+ return debouncedValue;
16
+ }
@@ -1,19 +1,19 @@
1
1
  const defaultColors = {
2
2
  white: "#ffffff",
3
3
  black: "#000000",
4
- base: "#2f3941",
4
+ base: "#4557F8",
5
5
  danger: "#ff6969",
6
- menubackground: "#f4f5f7",
6
+ menubackground: "#F6F6FA",
7
7
  };
8
8
 
9
9
  const toastBorderColors = {
10
- success: "#5cb85c",
11
- error: "#d9534f",
12
- info: "#5bc0de",
13
- warning: "#f0ad4e",
10
+ success: "#00BA88",
11
+ error: "#F56A58",
12
+ info: "#276EF1",
13
+ warning: "#F3CD82",
14
14
  };
15
15
 
16
- const greyVarients = {
16
+ const greyVariants = {
17
17
  grey: "#828282",
18
18
  grey100: "#f8f9f9",
19
19
  grey200: "#e9ebed",
@@ -21,27 +21,48 @@ const greyVarients = {
21
21
  grey400: "#c2c8cc",
22
22
  grey500: "#87929d",
23
23
  grey600: "#68737d",
24
+ grey700: "#49545C",
24
25
  grey800: "#2f3941",
25
26
  };
26
27
 
28
+ const purpleVariants = {
29
+ purple800: "#342DF4",
30
+ purple700: "#4557F8",
31
+ purple600: "#7280FA",
32
+ purple500: "#5E5CE6",
33
+ };
34
+
35
+ const greenVariants = {
36
+ green800: "#00956D",
37
+ green700: "#00BA88",
38
+ green600: "#33C8A0",
39
+ green500: "#34C759",
40
+ };
41
+
27
42
  const colors = {
28
43
  font: {
29
- primary: "#1b1f23",
30
- secondary: "#828282",
44
+ primary: "#2F3941",
45
+ secondary: "#49545C",
31
46
  ...defaultColors,
32
- ...greyVarients,
47
+ ...greyVariants,
48
+ ...purpleVariants,
49
+ ...greenVariants,
33
50
  },
34
51
  background: {
35
52
  parentView: "#ffffff",
36
53
  primary: "#ffffff",
37
- secondary: "#e4e4e7",
54
+ secondary: "#F6F6FA",
38
55
  ...defaultColors,
39
- ...greyVarients,
56
+ ...greyVariants,
57
+ ...purpleVariants,
58
+ ...greenVariants,
40
59
  },
41
60
  border: {
42
- primary: "#e4e4e7",
43
- ...greyVarients,
61
+ primary: "#E9EBED",
62
+ secondary: "#C2C8CC",
63
+ ...greyVariants,
44
64
  ...defaultColors,
65
+ ...purpleVariants,
45
66
  },
46
67
  toast: {
47
68
  ...toastBorderColors,
@@ -54,25 +75,30 @@ const baseTheme = {
54
75
  // We can add below commented fonts later as follows. Also add font faces in index.web.js for the web.
55
76
  // https://www.bigbinary.com/learn-react-native/adding-custom-fonats
56
77
 
57
- // inter100: "Inter-Thin",
58
- // inter200: "Inter-ExtraLight",
59
- // inter300: "Inter-Light",
60
- // inter500: "Inter-Medium",
61
- // inter600: "Inter-SemiBold",
62
- // inter800: "Inter-ExtraBold",
63
- // inter900: "Inter-Black",
78
+ // sf100: "SFProText-Thin",
79
+ // sf200: "SFProText-ExtraLight",
80
+ // sf300: "SFProText-Light",
81
+ // sf800: "SFProText-ExtraBold",
82
+ // sf900: "SFProText-Black",
64
83
 
65
- inter400: "Inter-Regular",
66
- inter700: "Inter-Bold",
84
+ sf400: "SFProText-Regular",
85
+ sf500: "SFProText-Medium",
86
+ sf600: "SFProText-Semibold",
87
+ sf700: "SFProText-Bold",
67
88
  },
68
89
  lineHeights: [24],
69
90
  fontSizes: {
70
- xs: 10,
71
- s: 12,
72
- m: 14,
73
- l: 18,
74
- xl: 24,
75
- xxl: 32,
91
+ "3xs": 10,
92
+ "2xs": 12,
93
+ xs: 13,
94
+ s: 14,
95
+ m: 15,
96
+ l: 16,
97
+ xl: 17,
98
+ "2xl": 18,
99
+ "3xl": 20,
100
+ "4xl": 22,
101
+ "5xl": 30,
76
102
  },
77
103
  };
78
104
 
@@ -87,16 +113,21 @@ export const theme = {
87
113
  },
88
114
  header: {
89
115
  color: baseTheme.colors.font.primary,
90
- fontSize: baseTheme.fontSizes.l,
91
- fontFamily: baseTheme.fonts.inter700,
116
+ fontSize: baseTheme.fontSizes["3xl"],
117
+ fontFamily: baseTheme.fonts.sf700,
118
+ },
119
+ modalHeader: {
120
+ color: baseTheme.colors.font.black,
121
+ fontSize: baseTheme.fontSizes["xl"],
122
+ fontFamily: baseTheme.fonts.sf600,
92
123
  },
93
124
  body: {
94
- color: baseTheme.colors.font.primary,
95
- fontSize: baseTheme.fontSizes.m,
125
+ color: baseTheme.colors.font.grey500,
126
+ fontSize: baseTheme.fontSizes.s,
96
127
  },
97
128
  subtext: {
98
129
  color: baseTheme.colors.font.primary,
99
- fontSize: baseTheme.fontSizes.s,
130
+ fontSize: baseTheme.fontSizes["2xs"],
100
131
  },
101
132
 
102
133
  // buttonTextStyles
Binary file
Binary file