@bigbinary/neetoui-rn 0.0.264 → 0.0.266

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 (41) hide show
  1. package/index.d.ts +0 -1
  2. package/lib/components/Accordion.js +1 -1
  3. package/lib/components/ActionIcon.js +1 -1
  4. package/lib/components/AnimatedImage.js +1 -1
  5. package/lib/components/Avatar.js +1 -1
  6. package/lib/components/BottomTabBar.js +1 -1
  7. package/lib/components/ChatInput/ChatInput.js +1 -1
  8. package/lib/components/ChatInput/IconButton.js +1 -1
  9. package/lib/components/CheckBox.js +1 -1
  10. package/lib/components/Chip.js +1 -1
  11. package/lib/components/FlashList.js +1 -1
  12. package/lib/components/Loader.js +1 -1
  13. package/lib/components/MultiSelect.js +1 -1
  14. package/lib/components/NotificationIcon.js +1 -1
  15. package/lib/components/Popover.js +1 -1
  16. package/lib/components/RadioButton.js +1 -1
  17. package/lib/components/SearchBar.js +1 -1
  18. package/lib/components/SegmentedTopBar/Indicator.js +1 -1
  19. package/lib/components/Toast.js +1 -1
  20. package/lib/components/ToggleSwitch.js +1 -1
  21. package/lib/config/toasterConfig.js +1 -1
  22. package/lib/hooks/useRefreshByUser.js +1 -1
  23. package/package.json +5 -5
  24. package/src/components/Accordion.jsx +3 -4
  25. package/src/components/ActionIcon.jsx +4 -1
  26. package/src/components/ChatInput/ChatInput.jsx +24 -14
  27. package/src/components/ChatInput/IconButton.jsx +24 -12
  28. package/src/components/CheckBox.jsx +7 -3
  29. package/src/components/Chip.jsx +16 -6
  30. package/src/components/MultiSelect.jsx +7 -9
  31. package/src/components/NotificationIcon.jsx +2 -1
  32. package/src/components/Popover.jsx +0 -1
  33. package/src/components/RadioButton.jsx +4 -3
  34. package/src/components/SearchBar.jsx +3 -4
  35. package/src/components/Toast.jsx +2 -2
  36. package/src/components/ToggleSwitch.jsx +5 -3
  37. package/src/config/toasterConfig.jsx +3 -6
  38. package/assets/icons/attachment.svg +0 -3
  39. package/assets/icons/canned-response.svg +0 -5
  40. package/assets/icons/forward.svg +0 -3
  41. package/assets/icons/note.svg +0 -4
@@ -2,9 +2,9 @@ import * as React from "react";
2
2
  import { useContext, useEffect } from "react";
3
3
  import { useWindowDimensions } from "react-native";
4
4
 
5
+ import { Close } from "@bigbinary/neeto-icons-rn";
5
6
  import PropTypes from "prop-types";
6
7
  import DeviceInfo from "react-native-device-info";
7
- import CloseIcon from "react-native-remix-icon";
8
8
  import { moderateScale } from "react-native-size-matters";
9
9
  import T from "react-native-toast-message";
10
10
  import { ThemeContext } from "styled-components/native";
@@ -104,7 +104,7 @@ const ToastComponent = ({ type, text1, text2, hide, isVisible }) => {
104
104
  hide();
105
105
  }}
106
106
  >
107
- <CloseIcon color={theme.colors.font.grey500} name="ri-close-line" />
107
+ <Close color={theme.colors.font.grey500} size={moderateScale(22)} />
108
108
  </Touchable>
109
109
  </Card>
110
110
  );
@@ -1,8 +1,8 @@
1
1
  import React, { useContext, useEffect, useRef } from "react";
2
2
  import { Animated } from "react-native";
3
3
 
4
+ import { Check, Close } from "@bigbinary/neeto-icons-rn";
4
5
  import PropTypes from "prop-types";
5
- import Icon from "react-native-remix-icon";
6
6
  import { moderateScale } from "react-native-size-matters";
7
7
  import { ThemeContext } from "styled-components/native";
8
8
 
@@ -61,6 +61,8 @@ export const ToggleSwitch = ({ value, onValueChange, disabled }) => {
61
61
  ? theme.colors.background.purple500
62
62
  : theme.colors.font.grey500;
63
63
 
64
+ const Icon = value ? Check : Close;
65
+
64
66
  return (
65
67
  <Touchable
66
68
  bg={containerBg}
@@ -85,8 +87,8 @@ export const ToggleSwitch = ({ value, onValueChange, disabled }) => {
85
87
  >
86
88
  <Icon
87
89
  color={iconColor}
88
- name={`ri-${value ? "check" : "close"}-line`}
89
- size={moderateScale(12)}
90
+ size={moderateScale(18)}
91
+ viewBox={value ? "0 0 22 27" : "0 0 25 25"}
90
92
  />
91
93
  </Container>
92
94
  </Animated.View>
@@ -1,18 +1,15 @@
1
1
  import React from "react";
2
2
  import { Pressable, StyleSheet } from "react-native";
3
3
 
4
- import Icon from "react-native-remix-icon";
4
+ import { Close } from "@bigbinary/neeto-icons-rn";
5
+ import { moderateScale } from "react-native-size-matters";
5
6
  import Toast, { BaseToast } from "react-native-toast-message";
6
7
 
7
8
  import { theme } from "@theme";
8
9
 
9
10
  const CloseButton = () => (
10
11
  <Pressable style={styles.closeButtonStyle} onPress={Toast.hide}>
11
- <Icon
12
- color={theme.colors.background.white}
13
- name="ri-close-fill"
14
- size={25}
15
- />
12
+ <Close color={theme.colors.background.white} size={moderateScale(22)} />
16
13
  </Pressable>
17
14
  );
18
15
 
@@ -1,3 +0,0 @@
1
- <svg width="12" height="22" viewBox="0 0 12 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M12 16.1163V6.90698C12 6.48233 11.6504 6.13953 11.2174 6.13953C10.7843 6.13953 10.4348 6.48233 10.4348 6.90698V16.1163C10.4348 18.5158 8.44696 20.4651 6 20.4651C3.55304 20.4651 1.56522 18.5158 1.56522 16.1163V4.34884C1.56522 2.7986 2.85391 1.53488 4.43478 1.53488C6.01565 1.53488 7.30435 2.7986 7.30435 4.34884V15.3488C7.30435 16.0549 6.72 16.6279 6 16.6279C5.28 16.6279 4.69565 16.0549 4.69565 15.3488V5.37209C4.69565 4.94744 4.34609 4.60465 3.91304 4.60465C3.48 4.60465 3.13043 4.94744 3.13043 5.37209V15.3488C3.13043 16.8991 4.41913 18.1628 6 18.1628C7.58087 18.1628 8.86957 16.8991 8.86957 15.3488V4.34884C8.86957 1.9493 6.88174 0 4.43478 0C1.98783 0 0 1.9493 0 4.34884V16.1163C0 19.36 2.69217 22 6 22C9.30783 22 12 19.36 12 16.1163Z" fill="#2F3941"/>
3
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M10 5H3V21L7.5 18.3H19V11" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M21 5H14" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M18.999 3L21 5L18.999 7" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M13 13.097V16.165C13 17.032 14.029 17.488 14.672 16.906L20.702 11.44C21.15 11.034 21.138 10.327 20.677 9.93697L14.647 4.81897C13.997 4.26697 13 4.72897 13 5.58097V8.01797C7.537 8.01797 3 11.39 3 17V18.129C4.847 14.445 8.687 13.097 13 13.097Z" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M18.414 6.414L15.586 3.586C15.211 3.211 14.702 3 14.172 3H7C5.895 3 5 3.895 5 5V19C5 20.105 5.895 21 7 21H17C18.105 21 19 20.105 19 19V7.828C19 7.298 18.789 6.789 18.414 6.414V6.414Z" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M19 8H15C14.448 8 14 7.552 14 7V3" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- </svg>