@bigbinary/neetoui-rn 0.0.220 → 0.0.222

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 (44) hide show
  1. package/index.d.ts +49 -5
  2. package/lib/components/Accordion.js +1 -1
  3. package/lib/components/AnimatedImage.js +1 -1
  4. package/lib/components/BottomSheet.js +1 -1
  5. package/lib/components/Button.js +1 -1
  6. package/lib/components/ButtonGroup.js +1 -1
  7. package/lib/components/Calendar.js +1 -1
  8. package/lib/components/Chip.js +1 -1
  9. package/lib/components/FAB.js +1 -1
  10. package/lib/components/Input.js +1 -1
  11. package/lib/components/Loader.js +1 -0
  12. package/lib/components/MultiSelect.js +1 -1
  13. package/lib/components/NotificationPreferenceList.js +1 -1
  14. package/lib/components/OrganizationItem.js +1 -1
  15. package/lib/components/RichTextEditor.js +1 -1
  16. package/lib/components/SearchBar.js +1 -1
  17. package/lib/components/SegmentedTopBar.js +1 -1
  18. package/lib/components/Select.js +1 -1
  19. package/lib/components/SocialButton.js +1 -1
  20. package/lib/components/Touchable.js +1 -1
  21. package/lib/components/index.js +1 -1
  22. package/lib/theme/index.js +1 -1
  23. package/package.json +1 -1
  24. package/src/components/Accordion.js +98 -93
  25. package/src/components/AnimatedImage.js +2 -6
  26. package/src/components/BottomSheet.js +9 -11
  27. package/src/components/Button.js +19 -18
  28. package/src/components/ButtonGroup.js +6 -4
  29. package/src/components/Calendar.js +1 -2
  30. package/src/components/Chip.js +6 -3
  31. package/src/components/FAB.js +9 -0
  32. package/src/components/Input.js +17 -18
  33. package/src/components/Loader.js +119 -0
  34. package/src/components/MultiSelect.js +4 -76
  35. package/src/components/NotificationPreferenceList.js +8 -10
  36. package/src/components/OrganizationItem.js +10 -11
  37. package/src/components/RichTextEditor.js +2 -0
  38. package/src/components/SearchBar.js +13 -11
  39. package/src/components/SegmentedTopBar.js +5 -10
  40. package/src/components/Select.js +11 -14
  41. package/src/components/SocialButton.js +13 -5
  42. package/src/components/Touchable.js +1 -0
  43. package/src/components/index.js +1 -0
  44. package/src/theme/index.js +1 -0
@@ -2,11 +2,10 @@ import React, { useContext } from "react";
2
2
  import propTypes from "@styled-system/prop-types";
3
3
  import PropTypes from "prop-types";
4
4
  import { ThemeContext } from "styled-components/native";
5
- import { ActivityIndicator } from "react-native";
6
5
 
7
6
  import AppleLogo from "@assets/icons/apple-logo.svg";
8
7
  import GoogleLogo from "@assets/icons/google-logo.svg";
9
- import { Container, Typography, Touchable } from "@components";
8
+ import { Container, Typography, Touchable, Loader } from "@components";
10
9
 
11
10
  /**
12
11
  *
@@ -33,8 +32,13 @@ import { Container, Typography, Touchable } from "@components";
33
32
  *
34
33
  */
35
34
 
36
- export const SocialButton = props => {
37
- const { variant, disabled, labelStyle, isLoading, ...rest } = props;
35
+ export const SocialButton = ({
36
+ variant,
37
+ disabled,
38
+ labelStyle,
39
+ isLoading,
40
+ ...rest
41
+ }) => {
38
42
  const theme = useContext(ThemeContext);
39
43
  const capitalize = str => `${str.charAt(0).toUpperCase()}${str.slice(1)}`;
40
44
 
@@ -53,7 +57,7 @@ export const SocialButton = props => {
53
57
  {...rest}
54
58
  >
55
59
  {isLoading ? (
56
- <ActivityIndicator color={theme.colors.background.grey800} />
60
+ <Loader color={theme.colors.background.grey800} />
57
61
  ) : (
58
62
  <>
59
63
  <Container position="absolute" left={17}>
@@ -93,4 +97,8 @@ SocialButton.propTypes = {
93
97
  * Customize label style of the button
94
98
  */
95
99
  labelStyle: PropTypes.object,
100
+ /**
101
+ * Button loading status
102
+ */
103
+ isLoading: PropTypes.bool,
96
104
  };
@@ -84,4 +84,5 @@ Touchable.propTypes = {
84
84
  ...propTypes.buttonStyle,
85
85
 
86
86
  children: PropTypes.node,
87
+ elevation: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
87
88
  };
@@ -38,3 +38,4 @@ export { BottomTabBar } from "./BottomTabBar";
38
38
  export { AnimatedImage } from "./AnimatedImage";
39
39
  export { NotificationPreferenceList } from "./NotificationPreferenceList";
40
40
  export { OrganizationItem } from "./OrganizationItem";
41
+ export { Loader } from "./Loader";
@@ -30,6 +30,7 @@ const darkBlueVariant = {
30
30
 
31
31
  const lightBlueVariants = {
32
32
  lightBlue100: "#EAF3FC",
33
+ lightBlue400: "#4558F9",
33
34
  };
34
35
 
35
36
  const purpleVariants = {