@tactics/toddle-styleguide 5.2.1 → 5.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -22,6 +22,7 @@
22
22
  "@expo/config-plugins": "~9.0.0",
23
23
  "@expo/metro-runtime": "~4.0.0",
24
24
  "@expo/webpack-config": "~19.0.1",
25
+ "@lottiefiles/dotlottie-react": "^0.14.3",
25
26
  "@miblanchard/react-native-slider": "^2.3.1",
26
27
  "@react-native-picker/picker": "2.9.0",
27
28
  "@react-navigation/bottom-tabs": "^6.5.8",
@@ -6,7 +6,7 @@ import {ThemeCtx} from '../../../context/theme.context';
6
6
  import {Stylesheet} from './pressable-icon.styles';
7
7
 
8
8
  type PressableIconProps = {
9
- icon: React.ReactElement;
9
+ icon: React.ReactElement<any>;
10
10
  inverted?: boolean;
11
11
  disabled?: boolean;
12
12
  onPress?: () => void;
@@ -28,6 +28,7 @@ export const PressableIcon = ({
28
28
  })
29
29
  );
30
30
 
31
+
31
32
  const invertedIcon = React.Children.map(icon, (child) =>
32
33
  React.cloneElement(child, {
33
34
  ...icon.props,
@@ -17,7 +17,7 @@ import {Paragraph} from '../../atoms/paragraph-components';
17
17
  type SelectListProps = {
18
18
  title: string;
19
19
  subtitle?: string;
20
- icon: React.ReactElement;
20
+ icon: React.ReactElement<any>;
21
21
  onPress?: () => void;
22
22
  inverse?: boolean;
23
23
  image?: ImageSourcePropType;
@@ -4,7 +4,7 @@ import {useLoadingContext} from '../../../context/loading-dots.context';
4
4
  import {Dot} from './dot.component';
5
5
  import {animationStyle} from './animation-style.animate';
6
6
 
7
- export const LoadingDotsContainer = (): JSX.Element => {
7
+ export const LoadingDotsContainer = () => {
8
8
  const {animation, dots, size, delay} = useLoadingContext();
9
9
 
10
10
  const animatedValues = (animation: string | undefined) => {
@@ -7,7 +7,7 @@ type DotProps = {
7
7
  dynamicSize: Animated.Value;
8
8
  };
9
9
 
10
- export const Dot = ({dynamicSize}: DotProps): JSX.Element => {
10
+ export const Dot = ({dynamicSize}: DotProps) => {
11
11
  const {animation, color, size, spacing} = useLoadingContext();
12
12
  return (
13
13
  <View
@@ -10,7 +10,7 @@ export const LoadingIndicator = ({
10
10
  size = 10,
11
11
  spacing = 2,
12
12
  delay = 260,
13
- }: LoadingDotsProps): JSX.Element => {
13
+ }: LoadingDotsProps) => {
14
14
  return (
15
15
  <LoadingDotContextProvider
16
16
  values={{animation, dots, color, size, spacing, delay}}
@@ -49,7 +49,7 @@ export const Outline = ({
49
49
  name,
50
50
  size,
51
51
  color,
52
- }: IconNameInterface): JSX.Element => {
52
+ }: IconNameInterface) => {
53
53
  const renderIcon = ({name}: IconNameInterface): React.ReactNode => {
54
54
  switch (name) {
55
55
  case 'calendar':
@@ -44,7 +44,7 @@ import {XMarkIcon as XMarkSolid} from './xmark/xmark.icon';
44
44
  import {ShareIcon} from './share/share.icon';
45
45
  import {PhotographIcon} from './photograph/photograph-solid.icon';
46
46
 
47
- export const Solid = ({name, size, color}: IconNameInterface): JSX.Element => {
47
+ export const Solid = ({name, size, color}: IconNameInterface) => {
48
48
  const renderIcon = ({name}: IconNameInterface): React.ReactNode => {
49
49
  switch (name) {
50
50
  case 'calendar':