@bigbinary/neetoui-rn 0.0.269 → 0.0.271

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 (125) hide show
  1. package/lib/components/Accordion.js +1 -1
  2. package/lib/components/ActionIcon.js +1 -1
  3. package/lib/components/Alert.js +1 -1
  4. package/lib/components/AnimatedImage.js +1 -1
  5. package/lib/components/Avatar.js +1 -1
  6. package/lib/components/Badge.js +1 -1
  7. package/lib/components/BottomSheet.js +1 -1
  8. package/lib/components/BottomTabBar.js +1 -1
  9. package/lib/components/Button.js +1 -1
  10. package/lib/components/ButtonGroup.js +1 -1
  11. package/lib/components/Calendar.js +1 -1
  12. package/lib/components/Card.js +1 -1
  13. package/lib/components/Carousel.js +1 -1
  14. package/lib/components/ChatInput/AttachmentsView.js +1 -1
  15. package/lib/components/ChatInput/Badge.js +1 -1
  16. package/lib/components/ChatInput/ChatInput.js +1 -1
  17. package/lib/components/ChatInput/EmailFields.js +1 -1
  18. package/lib/components/ChatInput/IconButton.js +1 -1
  19. package/lib/components/ChatInput/MentionsInputWrapper.js +1 -1
  20. package/lib/components/CheckBox.js +1 -1
  21. package/lib/components/Chip.js +1 -1
  22. package/lib/components/Container.js +1 -1
  23. package/lib/components/Divider.js +1 -1
  24. package/lib/components/FAB.js +1 -1
  25. package/lib/components/FlashList.js +1 -1
  26. package/lib/components/FlatList.js +1 -1
  27. package/lib/components/Input.js +1 -1
  28. package/lib/components/InputEmailChip.js +1 -1
  29. package/lib/components/LineLoader.js +1 -1
  30. package/lib/components/ListItem.js +1 -1
  31. package/lib/components/Loader.js +1 -1
  32. package/lib/components/MultiSelect.js +1 -1
  33. package/lib/components/NotificationIcon.js +1 -1
  34. package/lib/components/NotificationPreferenceList.js +1 -1
  35. package/lib/components/OnBoarding.js +1 -1
  36. package/lib/components/OrganizationItem.js +1 -1
  37. package/lib/components/OtpInputs.js +1 -1
  38. package/lib/components/ParentView.js +1 -1
  39. package/lib/components/Popover.js +1 -1
  40. package/lib/components/RadioButton.js +1 -1
  41. package/lib/components/RichTextEditor.js +1 -1
  42. package/lib/components/Ripple.js +1 -1
  43. package/lib/components/ScrollView.js +1 -1
  44. package/lib/components/SearchBar.js +1 -1
  45. package/lib/components/SegmentedTopBar/Indicator.js +1 -1
  46. package/lib/components/SegmentedTopBar/Tab.js +1 -1
  47. package/lib/components/SegmentedTopBar/index.js +1 -1
  48. package/lib/components/SocialButton.js +1 -1
  49. package/lib/components/Toast.js +1 -1
  50. package/lib/components/ToggleSwitch.js +1 -1
  51. package/lib/components/TopBar.js +1 -1
  52. package/lib/components/Touchable.js +1 -1
  53. package/lib/components/TouchableWithoutFeedback.js +1 -1
  54. package/lib/components/Typography.js +1 -1
  55. package/lib/components/index.js +1 -1
  56. package/lib/config/toasterConfig.js +1 -1
  57. package/lib/contexts/index.js +1 -1
  58. package/lib/theme/index.js +1 -1
  59. package/lib/utils/utils.js +1 -1
  60. package/package.json +22 -15
  61. package/src/components/Accordion.jsx +0 -266
  62. package/src/components/ActionIcon.jsx +0 -76
  63. package/src/components/Alert.jsx +0 -262
  64. package/src/components/AnimatedImage.jsx +0 -140
  65. package/src/components/Avatar.jsx +0 -144
  66. package/src/components/Badge.jsx +0 -97
  67. package/src/components/BottomSheet.jsx +0 -487
  68. package/src/components/BottomTabBar.jsx +0 -232
  69. package/src/components/Button.jsx +0 -275
  70. package/src/components/ButtonGroup.jsx +0 -120
  71. package/src/components/Calendar.jsx +0 -128
  72. package/src/components/Card.jsx +0 -90
  73. package/src/components/Carousel.jsx +0 -116
  74. package/src/components/ChatInput/AttachmentsView.jsx +0 -51
  75. package/src/components/ChatInput/Badge.jsx +0 -24
  76. package/src/components/ChatInput/ChatInput.jsx +0 -564
  77. package/src/components/ChatInput/EmailFields.jsx +0 -122
  78. package/src/components/ChatInput/IconButton.jsx +0 -34
  79. package/src/components/ChatInput/MentionsInputWrapper.jsx +0 -155
  80. package/src/components/CheckBox.jsx +0 -150
  81. package/src/components/Chip.jsx +0 -180
  82. package/src/components/Container.jsx +0 -31
  83. package/src/components/Divider.jsx +0 -79
  84. package/src/components/FAB.jsx +0 -113
  85. package/src/components/FlashList.jsx +0 -189
  86. package/src/components/FlatList.js +0 -10
  87. package/src/components/Input.jsx +0 -357
  88. package/src/components/InputEmailChip.jsx +0 -246
  89. package/src/components/LineLoader.jsx +0 -46
  90. package/src/components/ListItem.jsx +0 -68
  91. package/src/components/Loader.jsx +0 -122
  92. package/src/components/MultiSelect.jsx +0 -631
  93. package/src/components/NotificationIcon.jsx +0 -38
  94. package/src/components/NotificationPreferenceList.jsx +0 -208
  95. package/src/components/OnBoarding.jsx +0 -134
  96. package/src/components/OrganizationItem.jsx +0 -110
  97. package/src/components/OtpInputs.jsx +0 -194
  98. package/src/components/ParentView.jsx +0 -139
  99. package/src/components/Popover.jsx +0 -221
  100. package/src/components/RadioButton.jsx +0 -155
  101. package/src/components/RichTextEditor.jsx +0 -163
  102. package/src/components/Ripple.jsx +0 -281
  103. package/src/components/ScrollView.js +0 -14
  104. package/src/components/SearchBar.jsx +0 -207
  105. package/src/components/SegmentedTopBar/Indicator.jsx +0 -77
  106. package/src/components/SegmentedTopBar/Tab.jsx +0 -37
  107. package/src/components/SegmentedTopBar/index.jsx +0 -128
  108. package/src/components/SocialButton.jsx +0 -106
  109. package/src/components/Toast.jsx +0 -195
  110. package/src/components/ToggleSwitch.jsx +0 -112
  111. package/src/components/TopBar.jsx +0 -147
  112. package/src/components/Touchable.jsx +0 -133
  113. package/src/components/TouchableWithoutFeedback.jsx +0 -51
  114. package/src/components/Typography.jsx +0 -93
  115. package/src/components/index.js +0 -45
  116. package/src/config/index.js +0 -1
  117. package/src/config/toasterConfig.jsx +0 -142
  118. package/src/contexts/index.js +0 -3
  119. package/src/hooks/index.js +0 -3
  120. package/src/hooks/useDebounce.js +0 -17
  121. package/src/hooks/useKeyboard.js +0 -33
  122. package/src/hooks/useRefreshByUser.js +0 -20
  123. package/src/index.js +0 -2
  124. package/src/theme/index.js +0 -181
  125. 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
- };