@tactics/toddle-styleguide 5.4.31 → 5.4.33

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.31",
3
+ "version": "5.4.33",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -1,8 +1,8 @@
1
1
  import React, {useContext} from 'react';
2
2
  import {Text} from 'react-native';
3
- import {TextProperties} from '../../../../types/text-properties.type';
4
3
  import {Stylesheet} from '../paragraph-text.styles';
5
4
  import {ThemeCtx} from '../../../../context/theme.context';
5
+ import {TextProperties} from '../../../../types/text-properties.type';
6
6
 
7
7
  export const SmallText = ({
8
8
  bold,
@@ -1,9 +1,4 @@
1
- import React, {Children, ReactNode, useContext, useRef, useState} from 'react';
2
- import { Platform } from 'react-native';
3
- import {ThemeCtx} from '../../../context/theme.context';
4
- import {Stylesheet} from './swipe.styles';
5
- import {Icon} from '../../../icons/index';
6
- import {Pressable, View} from 'react-native';
1
+ import React, {Children, ReactNode} from 'react';
7
2
 
8
3
  type SwipeProps = {
9
4
  children: ReactNode;
@@ -1,12 +1,11 @@
1
- import React from 'react';
1
+ import React, {PropsWithChildren} from 'react';
2
2
  import {StyleProp, TextStyle} from 'react-native';
3
3
 
4
- export type TextProperties = {
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;
11
10
  addStyle?: StyleProp<TextStyle>;
12
- };
11
+ }