@tactics/toddle-styleguide 5.4.32 → 5.4.34

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.4.32",
3
+ "version": "5.4.34",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, {PropsWithChildren} from 'react';
2
2
  import {useContext} from 'react';
3
3
  import {View} from 'react-native';
4
4
 
@@ -6,9 +6,7 @@ import {ThemeCtx} from '../../../context/theme.context';
6
6
  import {Stylesheet} from './footer.styles';
7
7
  import {useSafeAreaInsets} from 'react-native-safe-area-context';
8
8
 
9
- type FooterProps = {
10
- children: React.ReactNode;
11
- };
9
+ interface FooterProps extends PropsWithChildren {}
12
10
 
13
11
  const Footer = ({children}: FooterProps) => {
14
12
  const context = useContext(ThemeCtx);
@@ -1,9 +1,9 @@
1
- import React from "react";
1
+ import {PropsWithChildren} from 'react';
2
2
  import { VisualState } from "../../../types/visual-state.enum";
3
- type SwipeableContainerProps = {
3
+ interface SwipeableContainerProps extends PropsWithChildren {
4
4
  actions: SwipeableContainerAction[];
5
- children: React.ReactNode;
6
- };
5
+ }
6
+
7
7
  type SwipeableContainerAction = {
8
8
  visualState: VisualState;
9
9
  label: string;
@@ -4,7 +4,6 @@ import {StyleProp, TextStyle} from 'react-native';
4
4
  export interface TextProperties extends PropsWithChildren {
5
5
  bold?: boolean;
6
6
  textColor?: string;
7
- children: React.ReactNode;
8
7
  textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify' | undefined;
9
8
  numberOfLines?: number | undefined;
10
9
  ellipsizeMode?: 'head' | 'tail' | 'middle' | 'clip' | undefined;