@tecsinapse/react-native-kit 2.2.1-beta.0 → 3.0.0

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 (26) hide show
  1. package/README.md +33 -7
  2. package/dist/types/components/atoms/BottomNavigator/styled.d.ts +19 -4
  3. package/dist/types/components/atoms/GroupButton/GroupButtonOption.d.ts +1 -1
  4. package/dist/types/components/atoms/Header/styled.d.ts +13 -5
  5. package/dist/types/components/atoms/Input/Input.d.ts +1 -1
  6. package/dist/types/components/atoms/Input/styled.d.ts +7 -1
  7. package/dist/types/components/atoms/InputMask/styled.d.ts +10 -4
  8. package/dist/types/components/atoms/Modal/ui/styled.d.ts +13 -3
  9. package/dist/types/components/atoms/Skeleton/Pulse.d.ts +0 -1
  10. package/dist/types/components/atoms/Skeleton/Wave.d.ts +0 -1
  11. package/dist/types/components/atoms/Skeleton/styled.d.ts +2 -1
  12. package/dist/types/components/atoms/Text/styled.d.ts +5 -4
  13. package/dist/types/components/atoms/TextArea/styled.d.ts +1 -4
  14. package/dist/types/components/molecules/Calendar/Calendar.d.ts +1 -1
  15. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +0 -1
  16. package/dist/types/components/molecules/DatePicker/styled.d.ts +4 -3
  17. package/dist/types/components/molecules/Grid/Grid.d.ts +1 -2
  18. package/dist/types/components/molecules/Grid/Item/Item.d.ts +3 -4
  19. package/dist/types/components/molecules/IconTextButton/styled.d.ts +17 -2
  20. package/dist/types/components/molecules/InputPassword/InputPassword.d.ts +1 -1
  21. package/dist/types/components/molecules/LabeledSwitch/styled.d.ts +7 -1
  22. package/dist/types/components/molecules/Select/Modal.d.ts +0 -1
  23. package/dist/types/components/molecules/Select/Select.d.ts +0 -1
  24. package/dist/types/components/molecules/Select/styled.d.ts +50 -20
  25. package/dist/types/components/molecules/Snackbar/styled.d.ts +4 -3
  26. package/package.json +7 -7
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # TecSinapse Design System
4
4
 
5
- [![Stars](https://img.shields.io/github/stars/tecsinapse/design-system?style=social)](https://github.com/tecsinapse/design-system/) [![License](https://img.shields.io/github/license/tecsinapse/design-system)](./LICENSE.md) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](CODE_OF_CONDUCT.md)![build workflow](https://github.com/tecsinapse/design-system/actions/workflows/build-deploy.yml/badge.svg)
5
+ [![Stars](https://img.shields.io/github/stars/tecsinapse/design-system?style=social)](https://github.com/tecsinapse/design-system/) [![License](https://img.shields.io/github/license/tecsinapse/design-system)](./LICENSE.md) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](CODE_OF_CONDUCT.md)![build workflow](https://github.com/tecsinapse/design-system/actions/workflows/ci.yml/badge.svg)
6
6
 
7
7
 
8
8
  [TecSinapse Design System](https://tecsinapse.github.io/design-system) is the hybrid implementation of the [TecSinapse](https://www.tecsinapse.com.br/) Design System.
@@ -23,11 +23,12 @@ Here are a few helpful links for getting started:
23
23
 
24
24
  ## Packages
25
25
 
26
- | Package | Content | Version |
27
- | --------------------------------------------------------------- | ---------------------------------------------------- | ------------------------------------------- |
28
- | **[@tecsinapse/react-core](./packages/react-core)** | the core hybrid React component library | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-core.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-core) |
29
- | **[@tecsinapse/react-web-kit](./packages/react-web-kit)** | the React component library focused on web | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-web-kit.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-web-kit) |
26
+ | Package | Content | Version |
27
+ |-----------------------------------------------------------------|------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
28
+ | **[@tecsinapse/react-core](./packages/react-core)** | the core hybrid React component library | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-core.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-core) |
29
+ | **[@tecsinapse/react-web-kit](./packages/react-web-kit)** | the React component library focused on web | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-web-kit.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-web-kit) |
30
30
  | **[@tecsinapse/react-native-kit](./packages/react-native-kit)** | the React native component library focused on mobile | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-native-kit.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-native-kit) |
31
+ | **[@tecsinapse/react-charts](./packages/react-charts)** | Charts for React based on SVG | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-charts.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-charts) |
31
32
 
32
33
  ## Code of conduct
33
34
 
@@ -35,11 +36,36 @@ We want to foster an inclusive and friendly community around our Open Source eff
35
36
 
36
37
  If you feel another member of the community violated our code or you are experiencing problems participating in our community because of another individual's behavior, please get in touch with our maintainers.
37
38
 
39
+ ## How to make local changes available for other projects?
40
+
41
+ At times, it may be necessary to test changes directly in a product, and not in the design system, and for this to work in a less laborious way, we can follow the steps below:
42
+
43
+ 3 terminal tabs should open:
44
+ - In one run the JS code watch:
45
+ ```
46
+ yarn build:watch
47
+ ```
48
+ - In another run the watch of the TS code watch
49
+ ```
50
+ yarn build:declarations:watch
51
+ ```
52
+ - On another run yalc push (this script updates linked local projects)
53
+ ```
54
+ yarn yalc:push
55
+ ```
56
+
57
+ With that, all changes will be in yalc locally.
58
+
59
+ To access in your application, see this [example](https://github.com/tecsinapse/vendas-web-poc-playground#tools) in topic "**Yalc link Design System:**"
60
+
61
+
38
62
  ### Maintainers
39
63
 
64
+ - [Beatriz Silva](mailto:beatriz.silva@tecsinapse.com.br)
40
65
  - [Denner Vidal](mailto:denner.vidal@tecsinapse.com.br)
41
- - [Nilson Altonio](mailto:nilson.antonio@tecsinapse.com.br)
42
- - [Agnaldo Citadin](mailto:agnaldo.citadin@tecsinapse.com.br)
66
+ - [Gabriel Sanches](mailto:gabriel.sanches@tecsinapse.com.br)
67
+ - [Lucas Ramos](mailto:lucas.ramos@tecsinapse.com.br)
68
+ - [Nilson Antonio](mailto:nilson.antonio@tecsinapse.com.br)
43
69
  - [Ryan Correa](mailto:ryan.correa@tecsinapse.com.br)
44
70
 
45
71
  ## Contributing
@@ -1,11 +1,26 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledView: import("@emotion/native").StyledComponent<any, {}, {
2
+ import { PressableProps, ViewProps } from 'react-native';
3
+ export declare const StyledView: import("@emotion/native").StyledComponent<ViewProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
3
7
  ref?: import("react").Ref<import("react-native").View> | undefined;
4
8
  }>;
5
- export declare const TabContainer: import("@emotion/native").StyledComponent<any, {}, {}>;
6
- export declare const TabContent: import("@emotion/native").StyledComponent<any, {}, {
9
+ export declare const TabContainer: import("@emotion/native").StyledComponent<PressableProps & import("react").RefAttributes<import("react-native").View> & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ } & {
13
+ selected: boolean;
14
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
15
+ export declare const TabContent: import("@emotion/native").StyledComponent<ViewProps & {
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
7
19
  ref?: import("react").Ref<import("react-native").View> | undefined;
8
20
  }>;
9
- export declare const CustomTabContent: import("@emotion/native").StyledComponent<any, {}, {
21
+ export declare const CustomTabContent: import("@emotion/native").StyledComponent<ViewProps & {
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
10
25
  ref?: import("react").Ref<import("react-native").View> | undefined;
11
26
  }>;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import { GroupButtonOptionProps } from '@tecsinapse/react-core';
2
2
  declare const GroupButtonOption: (props: GroupButtonOptionProps) => JSX.Element;
3
3
  export default GroupButtonOption;
@@ -1,8 +1,16 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledView: import("@emotion/native").StyledComponent<any, {}, {
2
+ import { ButtonProps } from '@tecsinapse/react-core';
3
+ export declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
3
7
  ref?: import("react").Ref<import("react-native").View> | undefined;
4
8
  }>;
5
- export declare const FloatingButton: import("@emotion/native").StyledComponent<any, {}, {
6
- ref?: import("react").Ref<any> | undefined;
7
- }>;
8
- export declare const Dummy: import("@emotion/native").StyledComponent<any, {}, {}>;
9
+ export declare const FloatingButton: import("@emotion/native").StyledComponent<ButtonProps & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
13
+ export declare const Dummy: import("@emotion/native").StyledComponent<ButtonProps & {
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
@@ -5,5 +5,5 @@ export interface InputNativeProps extends Omit<InputElementProps, 'style'>, Inpu
5
5
  inputFontStack?: FontStackType;
6
6
  inputFontWeight?: FontWeightType;
7
7
  }
8
- declare const Input: React.ForwardRefExoticComponent<Pick<InputNativeProps, keyof InputNativeProps> & React.RefAttributes<TextInput>>;
8
+ declare const Input: React.ForwardRefExoticComponent<InputNativeProps & React.RefAttributes<TextInput>>;
9
9
  export default Input;
@@ -1 +1,7 @@
1
- export declare const StyledNativeInput: import("@emotion/native").StyledComponent<any, {}, {}>;
1
+ /// <reference types="react" />
2
+ import { Font } from '../Text/styled';
3
+ import { InputNativeProps } from './Input';
4
+ export declare const StyledNativeInput: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").InputElementProps & import("react").RefAttributes<import("react-native").TextInput> & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & Partial<InputNativeProps> & Partial<import("@tecsinapse/react-core").ThemeProviderProps> & Font, {}, {}>;
@@ -1,5 +1,11 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledInputContainer: import("@emotion/native").StyledComponent<any, {}, {
3
- ref?: import("react").Ref<any> | undefined;
4
- }>;
5
- export declare const StyledNativeInputMask: import("@emotion/native").StyledComponent<any, {}, {}>;
2
+ import { Font } from '../Text/styled';
3
+ import { InputMaskNativeProps } from './InputMask';
4
+ export declare const StyledInputContainer: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").InputContainerProps & Partial<import("@tecsinapse/react-core").InputElementProps> & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
8
+ export declare const StyledNativeInputMask: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").InputMaskElementProps & import("react").RefAttributes<import("react-native").TextInput> & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & Partial<InputMaskNativeProps> & Partial<import("@tecsinapse/react-core").ThemeProviderProps> & Font, {}, {}>;
@@ -1,6 +1,16 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledPressableBackDrop: import("@emotion/native").StyledComponent<any, {}, {}>;
3
- export declare const BackDropView: import("@emotion/native").StyledComponent<any, {}, {}>;
4
- export declare const CloseBar: import("@emotion/native").StyledComponent<any, {}, {
2
+ import { Animated } from 'react-native';
3
+ export declare const StyledPressableBackDrop: import("@emotion/native").StyledComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View> & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
7
+ export declare const BackDropView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
8
+ theme?: import("@emotion/react").Theme | undefined;
9
+ as?: import("react").ElementType<any> | undefined;
10
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
11
+ export declare const CloseBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
5
15
  ref?: import("react").Ref<import("react-native").View> | undefined;
6
16
  }>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { IAnimationComponent } from './types';
3
2
  export declare const Pulse: ({ active, width, height, childrenLayout, }: IAnimationComponent) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { IAnimationComponent } from './types';
3
2
  export declare const Wave: ({ active, width, height, childrenLayout, }: IAnimationComponent) => JSX.Element;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { SkeletonProps } from './Skeleton';
2
3
  export declare const Wrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
4
  theme?: import("@emotion/react").Theme | undefined;
4
5
  as?: import("react").ElementType<any> | undefined;
5
- } & Partial<any>, {}, {
6
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps & SkeletonProps>, {}, {
6
7
  ref?: import("react").Ref<import("react-native").View> | undefined;
7
8
  }>;
@@ -4,7 +4,8 @@ export interface Font {
4
4
  fontStack?: FontStackType;
5
5
  fontWeight?: FontWeightType;
6
6
  }
7
- export declare const fontStyles: ({ theme, fontStack, fontWeight, }: Partial<Font & Partial<StyleProps>>) => any;
8
- export declare const StyledNativeText: import("@emotion/native").StyledComponent<any, {}, {
9
- ref?: import("react").Ref<any> | undefined;
10
- }>;
7
+ export declare const fontStyles: ({ theme, fontStack, fontWeight, }: Partial<Font & Partial<StyleProps>>) => import("@emotion/native").ReactNativeStyle;
8
+ export declare const StyledNativeText: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").TextProps & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & Font & Partial<import("@tecsinapse/react-core").TextProps> & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
@@ -1,4 +1 @@
1
- /// <reference types="react" />
2
- export declare const StyledNativeInput: import("@emotion/native").StyledComponent<any, {}, {
3
- ref?: import("react").Ref<any> | undefined;
4
- }>;
1
+ export declare const StyledNativeInput: import("@emotion/native").StyledComponent<any, {}, {}>;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
1
+ import { CalendarProps, SelectionType } from '@tecsinapse/react-core';
2
2
  export declare const Calendar: <T extends SelectionType>({ locale, ...rest }: CalendarProps<T>) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DatePickerProps, SelectionType } from '@tecsinapse/react-core';
3
2
  export type NativeDatePickerProps<T extends SelectionType> = Omit<DatePickerProps<T>, 'CalendarComponent' | 'renderCalendar' | 'requestCloseCalendar' | 'requestShowCalendar'>;
4
3
  export declare const DatePicker: <T extends SelectionType>({ locale, onChange, ...rest }: NativeDatePickerProps<T>) => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const CalendarBoxContent: import("@emotion/native").StyledComponent<any, {}, {
3
- ref?: import("react").Ref<any> | undefined;
4
- }>;
2
+ export declare const CalendarBoxContent: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").BoxContentProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ViewProps } from 'react-native';
3
2
  import { IGrid } from '@tecsinapse/react-core';
4
- export type IGridNative = IGrid & ViewProps;
3
+ export type IGridNative = IGrid & Omit<ViewProps, 'children'>;
5
4
  declare const Grid: ({ children, columns, layout, style, spacing, ...rest }: IGridNative) => JSX.Element;
6
5
  export default Grid;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
- import { ViewProps } from 'react-native';
1
+ import { DimensionValue, ViewProps } from 'react-native';
3
2
  import { IGridItem } from '@tecsinapse/react-core';
4
- export type IGridItemNative = IGridItem & ViewProps & {
5
- flexBasis?: string | 'auto';
3
+ export type IGridItemNative = IGridItem & Omit<ViewProps, 'children'> & {
4
+ flexBasis?: DimensionValue;
6
5
  };
7
6
  declare const GridItem: ({ children, span, columns, loadingComponent, loading, spacing: _spacing, wrapper, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, justifyContent, flexBasis, style, ...rest }: IGridItemNative) => JSX.Element;
8
7
  export default GridItem;
@@ -1,2 +1,17 @@
1
- export declare const StyledIconTextButton: import("@emotion/native").StyledComponent<any, {}, {}>;
2
- export declare const StyledText: import("@emotion/native").StyledComponent<any, {}, {}>;
1
+ /// <reference types="react" />
2
+ import { IconPositionOptions } from '@tecsinapse/react-core';
3
+ export declare const StyledIconTextButton: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").ButtonProps & {
4
+ autoDismissKeyboard?: boolean | undefined;
5
+ } & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps> & {
9
+ boxed: boolean;
10
+ }, {}, {}>;
11
+ export declare const StyledText: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").TextProps & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps> & {
15
+ iconPosition: IconPositionOptions;
16
+ hasIcon?: boolean | undefined;
17
+ }, {}, {}>;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { InputNativeProps } from '../../atoms/Input';
3
3
  import { TextInput } from 'react-native';
4
4
  export type InputPasswordNativeProps = InputNativeProps;
5
- declare const InputPassword: React.ForwardRefExoticComponent<Pick<InputNativeProps, keyof InputNativeProps> & React.RefAttributes<TextInput>>;
5
+ declare const InputPassword: React.ForwardRefExoticComponent<InputNativeProps & React.RefAttributes<TextInput>>;
6
6
  export default InputPassword;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { LabelPositionOptions } from '@tecsinapse/react-core';
2
3
  import { View } from 'react-native';
3
4
  export declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
5
  theme?: import("@emotion/react").Theme | undefined;
@@ -6,4 +7,9 @@ export declare const StyledView: import("@emotion/native").StyledComponent<impor
6
7
  }, {}, {
7
8
  ref?: import("react").Ref<View> | undefined;
8
9
  }>;
9
- export declare const StyledLabel: import("@emotion/native").StyledComponent<any, {}, {}>;
10
+ export declare const StyledLabel: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").TextProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps> & {
14
+ labelPosition: LabelPositionOptions;
15
+ }, {}, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBaseModal } from '../../atoms/Modal';
3
2
  import { SelectNativeProps } from './Select';
4
3
  interface LoadingProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputContainerProps } from '@tecsinapse/react-core';
3
2
  export interface SelectNativeProps<Data, Type extends 'single' | 'multi'> extends Omit<InputContainerProps, 'value' | 'onChange' | 'onChangeText'> {
4
3
  options: ((searchInput?: string) => Promise<Data[]>) | Data[];
@@ -1,42 +1,72 @@
1
1
  /// <reference types="react" />
2
+ import { ButtonProps, InputContainerProps, PressableSurfaceProps } from '@tecsinapse/react-core';
2
3
  import { ActivityIndicator, View, ViewProps } from 'react-native';
3
- export declare const getStyledModal: (safeTop?: number) => import("@emotion/native").StyledComponent<any, {}, {
4
+ import { InputNativeProps } from '../../atoms/Input';
5
+ export declare const getStyledModal: (safeTop?: number) => import("@emotion/native").StyledComponent<ViewProps & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & import("react-native").ModalBaseProps & import("react-native").ModalPropsIOS & import("react-native").ModalPropsAndroid & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
4
9
  ref?: import("react").Ref<View> | undefined;
5
10
  }>;
6
- export declare const StyledSelectionText: import("@emotion/native").StyledComponent<any, {}, {}>;
11
+ export declare const StyledSelectionText: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").TextProps & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
+ } & Partial<InputContainerProps> & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
7
15
  export declare const Dummy: import("@emotion/native").StyledComponent<ViewProps & {
8
16
  theme?: import("@emotion/react").Theme | undefined;
9
17
  as?: import("react").ElementType<any> | undefined;
10
18
  }, {}, {
11
19
  ref?: import("react").Ref<View> | undefined;
12
20
  }>;
13
- export declare const StyledPressableSurface: import("@emotion/native").StyledComponent<any, {}, {
14
- ref?: import("react").Ref<any> | undefined;
15
- }>;
16
- export declare const Header: import("@emotion/native").StyledComponent<any, {}, {
21
+ export declare const StyledPressableSurface: import("@emotion/native").StyledComponent<PressableSurfaceProps & {
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
+ }, {}, {}>;
25
+ export declare const Header: import("@emotion/native").StyledComponent<ViewProps & {
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ as?: import("react").ElementType<any> | undefined;
28
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
17
29
  ref?: import("react").Ref<View> | undefined;
18
30
  }>;
19
- export declare const CloseButton: import("@emotion/native").StyledComponent<any, {}, {
20
- ref?: import("react").Ref<any> | undefined;
21
- }>;
22
- export declare const SearchBarContainer: import("@emotion/native").StyledComponent<any, {}, {
31
+ export declare const CloseButton: import("@emotion/native").StyledComponent<ButtonProps & {
32
+ theme?: import("@emotion/react").Theme | undefined;
33
+ as?: import("react").ElementType<any> | undefined;
34
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
35
+ export declare const SearchBarContainer: import("@emotion/native").StyledComponent<ViewProps & {
36
+ theme?: import("@emotion/react").Theme | undefined;
37
+ as?: import("react").ElementType<any> | undefined;
38
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
23
39
  ref?: import("react").Ref<View> | undefined;
24
40
  }>;
25
- export declare const SearchBar: import("@emotion/native").StyledComponent<any, {}, {}>;
26
- export declare const ListItem: import("@emotion/native").StyledComponent<any, {}, {
27
- ref?: import("react").Ref<any> | undefined;
28
- }>;
29
- export declare const ModalFooter: import("@emotion/native").StyledComponent<any, {}, {
41
+ export declare const SearchBar: import("@emotion/native").StyledComponent<InputNativeProps & import("react").RefAttributes<import("react-native").TextInput> & {
42
+ theme?: import("@emotion/react").Theme | undefined;
43
+ as?: import("react").ElementType<any> | undefined;
44
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
45
+ export declare const ListItem: import("@emotion/native").StyledComponent<PressableSurfaceProps & {
46
+ theme?: import("@emotion/react").Theme | undefined;
47
+ as?: import("react").ElementType<any> | undefined;
48
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
49
+ export declare const ModalFooter: import("@emotion/native").StyledComponent<ViewProps & {
50
+ theme?: import("@emotion/react").Theme | undefined;
51
+ as?: import("react").ElementType<any> | undefined;
52
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {
30
53
  ref?: import("react").Ref<View> | undefined;
31
54
  }>;
32
- export declare const SelectIcon: import("@emotion/native").StyledComponent<any, {}, {
33
- ref?: import("react").Ref<any> | undefined;
34
- }>;
55
+ export declare const SelectIcon: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").IconProps & {
56
+ theme?: import("@emotion/react").Theme | undefined;
57
+ as?: import("react").ElementType<any> | undefined;
58
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
35
59
  export declare const FetchIndicator: import("@emotion/native").StyledComponent<import("react-native").ActivityIndicatorProps & {
36
60
  theme?: import("@emotion/react").Theme | undefined;
37
61
  as?: import("react").ElementType<any> | undefined;
38
62
  }, {}, {
39
63
  ref?: import("react").Ref<ActivityIndicator> | undefined;
40
64
  }>;
41
- export declare const TextTitleModal: import("@emotion/native").StyledComponent<any, {}, {}>;
42
- export declare const StyledTextItemSelect: import("@emotion/native").StyledComponent<any, {}, {}>;
65
+ export declare const TextTitleModal: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").TextProps & {
66
+ theme?: import("@emotion/react").Theme | undefined;
67
+ as?: import("react").ElementType<any> | undefined;
68
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
69
+ export declare const StyledTextItemSelect: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").TextProps & {
70
+ theme?: import("@emotion/react").Theme | undefined;
71
+ as?: import("react").ElementType<any> | undefined;
72
+ }, {}, {}>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const SnackbarStyled: import("@emotion/native").StyledComponent<any, {}, {
3
- ref?: import("react").Ref<any> | undefined;
4
- }>;
2
+ export declare const SnackbarStyled: import("@emotion/native").StyledComponent<import("@tecsinapse/react-core").SnackbarProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tecsinapse/react-native-kit",
3
3
  "description": "TecSinapse React Native components",
4
- "version": "2.2.1-beta.0+66dfc116",
4
+ "version": "3.0.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
7
7
  "module": "dist/esm/index.js",
@@ -10,17 +10,17 @@
10
10
  "dist"
11
11
  ],
12
12
  "scripts": {
13
- "start": "yarn build:es --watch",
14
- "build:es": "yarn rollup --config",
13
+ "dev": "rollup --watch",
14
+ "build:es": "rollup --config",
15
15
  "build:declaration": "tsc --project tsconfig.build.json",
16
16
  "build:declaration:watch": "tsc --project tsconfig.build.json --watch",
17
17
  "yalc:push": "yalc push --changed",
18
18
  "yalc:show": "yalc installations show $npm_package_name"
19
19
  },
20
20
  "dependencies": {
21
- "@emotion/native": "~11.10.0",
22
- "@emotion/react": "~11.10.0",
23
- "@tecsinapse/react-core": "2.2.1-beta.0+66dfc116",
21
+ "@emotion/native": "~11.11.0",
22
+ "@emotion/react": "~11.11.0",
23
+ "@tecsinapse/react-core": "^3.0.0",
24
24
  "react-native-linear-gradient": "~2.8.3"
25
25
  },
26
26
  "repository": {
@@ -39,5 +39,5 @@
39
39
  "react-native-safe-area-context": "^4.0.0",
40
40
  "react-native-vector-icons": "^9.2.0"
41
41
  },
42
- "gitHead": "66dfc11647cad934077a753144e1c39324e87ad2"
42
+ "gitHead": "59db148f23b2b94e8db779e035b43e58a0104fed"
43
43
  }