@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 +2 -1
- package/src/components/molecules/pressable-icon/pressable-icon.component.tsx +2 -1
- package/src/components/molecules/select-list-item/select-list-item.component.tsx +1 -1
- package/src/components/organisms/loading-indicator/container.component.tsx +1 -1
- package/src/components/organisms/loading-indicator/dot.component.tsx +1 -1
- package/src/components/organisms/loading-indicator/loading-indicator.component.tsx +1 -1
- package/src/icons/outline/outline.tsx +1 -1
- package/src/icons/solid/solid.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tactics/toddle-styleguide",
|
|
3
|
-
"version": "5.2.
|
|
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 = ()
|
|
7
|
+
export const LoadingDotsContainer = () => {
|
|
8
8
|
const {animation, dots, size, delay} = useLoadingContext();
|
|
9
9
|
|
|
10
10
|
const animatedValues = (animation: string | undefined) => {
|
|
@@ -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)
|
|
47
|
+
export const Solid = ({name, size, color}: IconNameInterface) => {
|
|
48
48
|
const renderIcon = ({name}: IconNameInterface): React.ReactNode => {
|
|
49
49
|
switch (name) {
|
|
50
50
|
case 'calendar':
|