@bigbinary/neetoui-rn 0.0.269 → 0.0.270

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/package.json +1 -2
  2. package/src/components/Accordion.jsx +0 -266
  3. package/src/components/ActionIcon.jsx +0 -76
  4. package/src/components/Alert.jsx +0 -262
  5. package/src/components/AnimatedImage.jsx +0 -140
  6. package/src/components/Avatar.jsx +0 -144
  7. package/src/components/Badge.jsx +0 -97
  8. package/src/components/BottomSheet.jsx +0 -487
  9. package/src/components/BottomTabBar.jsx +0 -232
  10. package/src/components/Button.jsx +0 -275
  11. package/src/components/ButtonGroup.jsx +0 -120
  12. package/src/components/Calendar.jsx +0 -128
  13. package/src/components/Card.jsx +0 -90
  14. package/src/components/Carousel.jsx +0 -116
  15. package/src/components/ChatInput/AttachmentsView.jsx +0 -51
  16. package/src/components/ChatInput/Badge.jsx +0 -24
  17. package/src/components/ChatInput/ChatInput.jsx +0 -564
  18. package/src/components/ChatInput/EmailFields.jsx +0 -122
  19. package/src/components/ChatInput/IconButton.jsx +0 -34
  20. package/src/components/ChatInput/MentionsInputWrapper.jsx +0 -155
  21. package/src/components/CheckBox.jsx +0 -150
  22. package/src/components/Chip.jsx +0 -180
  23. package/src/components/Container.jsx +0 -31
  24. package/src/components/Divider.jsx +0 -79
  25. package/src/components/FAB.jsx +0 -113
  26. package/src/components/FlashList.jsx +0 -189
  27. package/src/components/FlatList.js +0 -10
  28. package/src/components/Input.jsx +0 -357
  29. package/src/components/InputEmailChip.jsx +0 -246
  30. package/src/components/LineLoader.jsx +0 -46
  31. package/src/components/ListItem.jsx +0 -68
  32. package/src/components/Loader.jsx +0 -122
  33. package/src/components/MultiSelect.jsx +0 -631
  34. package/src/components/NotificationIcon.jsx +0 -38
  35. package/src/components/NotificationPreferenceList.jsx +0 -208
  36. package/src/components/OnBoarding.jsx +0 -134
  37. package/src/components/OrganizationItem.jsx +0 -110
  38. package/src/components/OtpInputs.jsx +0 -194
  39. package/src/components/ParentView.jsx +0 -139
  40. package/src/components/Popover.jsx +0 -221
  41. package/src/components/RadioButton.jsx +0 -155
  42. package/src/components/RichTextEditor.jsx +0 -163
  43. package/src/components/Ripple.jsx +0 -281
  44. package/src/components/ScrollView.js +0 -14
  45. package/src/components/SearchBar.jsx +0 -207
  46. package/src/components/SegmentedTopBar/Indicator.jsx +0 -77
  47. package/src/components/SegmentedTopBar/Tab.jsx +0 -37
  48. package/src/components/SegmentedTopBar/index.jsx +0 -128
  49. package/src/components/SocialButton.jsx +0 -106
  50. package/src/components/Toast.jsx +0 -195
  51. package/src/components/ToggleSwitch.jsx +0 -112
  52. package/src/components/TopBar.jsx +0 -147
  53. package/src/components/Touchable.jsx +0 -133
  54. package/src/components/TouchableWithoutFeedback.jsx +0 -51
  55. package/src/components/Typography.jsx +0 -93
  56. package/src/components/index.js +0 -45
  57. package/src/config/index.js +0 -1
  58. package/src/config/toasterConfig.jsx +0 -142
  59. package/src/contexts/index.js +0 -3
  60. package/src/hooks/index.js +0 -3
  61. package/src/hooks/useDebounce.js +0 -17
  62. package/src/hooks/useKeyboard.js +0 -33
  63. package/src/hooks/useRefreshByUser.js +0 -20
  64. package/src/index.js +0 -2
  65. package/src/theme/index.js +0 -181
  66. package/src/utils/utils.js +0 -56
@@ -1,181 +0,0 @@
1
- import { moderateScale } from "react-native-size-matters";
2
-
3
- const defaultColors = {
4
- white: "#ffffff",
5
- base: "#4557F8",
6
- danger: "#D95D4E",
7
- menubackground: "#F6F6FA",
8
- };
9
-
10
- const toastBorderColors = {
11
- success: "#00BA88",
12
- error: "#F56A58",
13
- info: "#276EF1",
14
- warning: "#F3CD82",
15
- };
16
-
17
- const greyVariants = {
18
- grey: "#828282",
19
- grey100: "#f8f9f9",
20
- grey200: "#e9ebed",
21
- grey300: "#d8dcde",
22
- grey400: "#c2c8cc",
23
- grey500: "#87929d",
24
- grey600: "#68737d",
25
- grey700: "#2f3941",
26
- grey800: "#1f1f1f",
27
- };
28
-
29
- const darkBlueVariant = {
30
- darkBlue100: "#0B4885",
31
- };
32
-
33
- const lightBlueVariants = {
34
- lightBlue100: "#EAF3FC",
35
- lightBlue400: "#4558F9",
36
- };
37
-
38
- const purpleVariants = {
39
- purple100: "#F2F4FF",
40
- purple200: "#ECF4FF",
41
- purple500: "#4557F8",
42
- purple700: "#342DF4",
43
- };
44
-
45
- const greenVariants = {
46
- green500: "#34C759",
47
- green600: "#33C8A0",
48
- green700: "#00BA88",
49
- green800: "#00956D",
50
- };
51
-
52
- const colors = {
53
- font: {
54
- primary: "#2F3941",
55
- secondary: "#49545C",
56
- ...defaultColors,
57
- ...greyVariants,
58
- ...lightBlueVariants,
59
- ...darkBlueVariant,
60
- ...purpleVariants,
61
- ...greenVariants,
62
- },
63
- background: {
64
- parentView: "#ffffff",
65
- primary: "#ffffff",
66
- secondary: "#F6F6FA",
67
- oldLace: "#FDF6E5",
68
- ...defaultColors,
69
- ...greyVariants,
70
- ...lightBlueVariants,
71
- ...darkBlueVariant,
72
- ...purpleVariants,
73
- ...greenVariants,
74
- },
75
- border: {
76
- primary: "#E9EBED",
77
- secondary: "#C2C8CC",
78
- ...greyVariants,
79
- ...lightBlueVariants,
80
- ...darkBlueVariant,
81
- ...defaultColors,
82
- ...purpleVariants,
83
- },
84
- toast: {
85
- ...toastBorderColors,
86
- },
87
- };
88
-
89
- const baseTheme = {
90
- colors,
91
- fonts: {
92
- // We can add below commented fonts later as follows. Also add font faces in index.web.js for the web.
93
- // https://www.bigbinary.com/learn-react-native/adding-custom-fonats
94
-
95
- // sf100: "SFProText-Thin",
96
- // sf200: "SFProText-ExtraLight",
97
- // sf300: "SFProText-Light",
98
- // sf800: "SFProText-ExtraBold",
99
- // sf900: "SFProText-Black",
100
-
101
- sf400: "SFProText-Regular",
102
- sf500: "SFProText-Medium",
103
- sf600: "SFProText-Semibold",
104
- sf700: "SFProText-Bold",
105
- },
106
- lineHeights: [24],
107
- fontSizes: {
108
- "4xs": moderateScale(10),
109
- "3xs": moderateScale(11),
110
- "2xs": moderateScale(12),
111
- xs: moderateScale(13),
112
- s: moderateScale(14),
113
- m: moderateScale(15),
114
- l: moderateScale(16),
115
- xl: moderateScale(17),
116
- "2xl": moderateScale(18),
117
- "3xl": moderateScale(20),
118
- "4xl": moderateScale(22),
119
- "5xl": moderateScale(30),
120
- },
121
- space: new Array(100).fill(0).map((_, index) => index + 1),
122
- };
123
-
124
- //aliases
125
- baseTheme.lineHeights.note = `${baseTheme.lineHeights[0]}px`;
126
-
127
- export const theme = {
128
- ...baseTheme,
129
- textStyles: {
130
- defaultTextStyle: {
131
- color: baseTheme.colors.font.grey800,
132
- fontSize: baseTheme.fontSizes.s,
133
- fontFamily: baseTheme.fonts.sf400,
134
- },
135
- header: {
136
- color: baseTheme.colors.font.primary,
137
- fontSize: baseTheme.fontSizes["3xl"],
138
- fontFamily: baseTheme.fonts.sf600,
139
- },
140
- modalHeader: {
141
- color: baseTheme.colors.font.primary,
142
- fontSize: baseTheme.fontSizes["xl"],
143
- fontFamily: baseTheme.fonts.sf600,
144
- },
145
- body: {
146
- color: baseTheme.colors.font.grey500,
147
- fontSize: baseTheme.fontSizes.s,
148
- },
149
- subtext: {
150
- color: baseTheme.colors.font.primary,
151
- fontSize: baseTheme.fontSizes["2xs"],
152
- },
153
-
154
- // buttonTextStyles
155
- solid: {
156
- color: baseTheme.colors.font.white,
157
- },
158
- inverse: {
159
- color: baseTheme.colors.font.base,
160
- },
161
- text: {
162
- color: baseTheme.colors.font.base,
163
- },
164
- },
165
- buttons: {
166
- solid: {
167
- border: 2,
168
- borderColor: baseTheme.colors.background.base,
169
- backgroundColor: baseTheme.colors.background.base,
170
- },
171
- inverse: {
172
- border: 2,
173
- borderColor: baseTheme.colors.border.base,
174
- backgroundColor: baseTheme.colors.background.white,
175
- },
176
- text: {
177
- color: baseTheme.colors.font.grey800,
178
- backgroundColor: baseTheme.colors.background.white,
179
- },
180
- },
181
- };
@@ -1,56 +0,0 @@
1
- import { Platform } from "react-native";
2
-
3
- const shadowRadiusList = [
4
- 1, 1.41, 2.22, 2.62, 3.84, 4.65, 4.65, 4.65, 5.46, 6.27, 6.68, 7.49, 8.3,
5
- 9.11, 9.51, 10.32, 11.14, 11.95, 12.35, 13.16, 13.97, 14.78, 15.19, 16,
6
- ];
7
-
8
- const shadowOpacityList = [
9
- 0.18, 0.2, 0.22, 0.23, 0.25, 0.27, 0.29, 0.3, 0.32, 0.34, 0.36, 0.37, 0.39,
10
- 0.41, 0.43, 0.44, 0.46, 0.48, 0.5, 0.51, 0.53, 0.55, 0.57, 0.58,
11
- ];
12
-
13
- export const getShadowStyles = (elevation = 0) => {
14
- if (elevation > 24) elevation = 24;
15
-
16
- return {
17
- shadowOffset: {
18
- width: 0,
19
- height: Math.floor(elevation / 2),
20
- },
21
- shadowRadius: shadowRadiusList[elevation - 1],
22
- shadowOpacity: shadowOpacityList[elevation - 1],
23
- elevation,
24
- };
25
- };
26
-
27
- export const isAndroid = () => Platform.OS === "android";
28
-
29
- export const isValidEmail = email =>
30
- String(email)
31
- .toLowerCase()
32
- .match(
33
- /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
34
- );
35
-
36
- export const charsForRegex = chars => chars?.join("|") || "";
37
-
38
- export const endsWithChars = (text, chars) => {
39
- const regex = `(${charsForRegex(chars)})$`;
40
-
41
- return text.match(regex);
42
- };
43
-
44
- export const trimChars = (text, chars) => {
45
- const charsRegex = charsForRegex(chars);
46
-
47
- const startRegexPattern = `^(${charsRegex})+`;
48
- const endRegexPattern = `(${charsRegex})+$`;
49
-
50
- const startRegex = new RegExp(startRegexPattern);
51
- const endRegex = new RegExp(endRegexPattern);
52
-
53
- const trimmedText = text.replace(startRegex, "").replace(endRegex, "");
54
-
55
- return trimmedText;
56
- };