@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.
- package/index.d.ts +49 -5
- package/lib/components/Accordion.js +1 -1
- package/lib/components/AnimatedImage.js +1 -1
- package/lib/components/BottomSheet.js +1 -1
- package/lib/components/Button.js +1 -1
- package/lib/components/ButtonGroup.js +1 -1
- package/lib/components/Calendar.js +1 -1
- package/lib/components/Chip.js +1 -1
- package/lib/components/FAB.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/Loader.js +1 -0
- package/lib/components/MultiSelect.js +1 -1
- package/lib/components/NotificationPreferenceList.js +1 -1
- package/lib/components/OrganizationItem.js +1 -1
- package/lib/components/RichTextEditor.js +1 -1
- package/lib/components/SearchBar.js +1 -1
- package/lib/components/SegmentedTopBar.js +1 -1
- package/lib/components/Select.js +1 -1
- package/lib/components/SocialButton.js +1 -1
- package/lib/components/Touchable.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/theme/index.js +1 -1
- package/package.json +1 -1
- package/src/components/Accordion.js +98 -93
- package/src/components/AnimatedImage.js +2 -6
- package/src/components/BottomSheet.js +9 -11
- package/src/components/Button.js +19 -18
- package/src/components/ButtonGroup.js +6 -4
- package/src/components/Calendar.js +1 -2
- package/src/components/Chip.js +6 -3
- package/src/components/FAB.js +9 -0
- package/src/components/Input.js +17 -18
- package/src/components/Loader.js +119 -0
- package/src/components/MultiSelect.js +4 -76
- package/src/components/NotificationPreferenceList.js +8 -10
- package/src/components/OrganizationItem.js +10 -11
- package/src/components/RichTextEditor.js +2 -0
- package/src/components/SearchBar.js +13 -11
- package/src/components/SegmentedTopBar.js +5 -10
- package/src/components/Select.js +11 -14
- package/src/components/SocialButton.js +13 -5
- package/src/components/Touchable.js +1 -0
- package/src/components/index.js +1 -0
- 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 =
|
|
37
|
-
|
|
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
|
-
<
|
|
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
|
};
|
package/src/components/index.js
CHANGED
|
@@ -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";
|