@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.
- package/README.md +33 -7
- package/dist/types/components/atoms/BottomNavigator/styled.d.ts +19 -4
- package/dist/types/components/atoms/GroupButton/GroupButtonOption.d.ts +1 -1
- package/dist/types/components/atoms/Header/styled.d.ts +13 -5
- package/dist/types/components/atoms/Input/Input.d.ts +1 -1
- package/dist/types/components/atoms/Input/styled.d.ts +7 -1
- package/dist/types/components/atoms/InputMask/styled.d.ts +10 -4
- package/dist/types/components/atoms/Modal/ui/styled.d.ts +13 -3
- package/dist/types/components/atoms/Skeleton/Pulse.d.ts +0 -1
- package/dist/types/components/atoms/Skeleton/Wave.d.ts +0 -1
- package/dist/types/components/atoms/Skeleton/styled.d.ts +2 -1
- package/dist/types/components/atoms/Text/styled.d.ts +5 -4
- package/dist/types/components/atoms/TextArea/styled.d.ts +1 -4
- package/dist/types/components/molecules/Calendar/Calendar.d.ts +1 -1
- package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +0 -1
- package/dist/types/components/molecules/DatePicker/styled.d.ts +4 -3
- package/dist/types/components/molecules/Grid/Grid.d.ts +1 -2
- package/dist/types/components/molecules/Grid/Item/Item.d.ts +3 -4
- package/dist/types/components/molecules/IconTextButton/styled.d.ts +17 -2
- package/dist/types/components/molecules/InputPassword/InputPassword.d.ts +1 -1
- package/dist/types/components/molecules/LabeledSwitch/styled.d.ts +7 -1
- package/dist/types/components/molecules/Select/Modal.d.ts +0 -1
- package/dist/types/components/molecules/Select/Select.d.ts +0 -1
- package/dist/types/components/molecules/Select/styled.d.ts +50 -20
- package/dist/types/components/molecules/Snackbar/styled.d.ts +4 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# TecSinapse Design System
|
|
4
4
|
|
|
5
|
-
[](https://github.com/tecsinapse/design-system/) [](./LICENSE.md) [](CODE_OF_CONDUCT.md)](https://github.com/tecsinapse/design-system/) [](./LICENSE.md) [](CODE_OF_CONDUCT.md)
|
|
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 | [](https://badge.fury.io/js/%40tecsinapse%2Freact-core)
|
|
29
|
-
| **[@tecsinapse/react-web-kit](./packages/react-web-kit)** | the React component library focused on web | [](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 | [](https://badge.fury.io/js/%40tecsinapse%2Freact-core) |
|
|
29
|
+
| **[@tecsinapse/react-web-kit](./packages/react-web-kit)** | the React component library focused on web | [](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 | [](https://badge.fury.io/js/%40tecsinapse%2Freact-native-kit) |
|
|
31
|
+
| **[@tecsinapse/react-charts](./packages/react-charts)** | Charts for React based on 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
|
-
- [
|
|
42
|
-
- [
|
|
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
|
-
|
|
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<
|
|
6
|
-
|
|
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<
|
|
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,8 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
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<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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<
|
|
8
|
+
declare const Input: React.ForwardRefExoticComponent<InputNativeProps & React.RefAttributes<TextInput>>;
|
|
9
9
|
export default Input;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
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,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<
|
|
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>>) =>
|
|
8
|
-
export declare const StyledNativeText: import("@emotion/native").StyledComponent<
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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<
|
|
3
|
-
|
|
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
|
-
|
|
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?:
|
|
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
|
-
|
|
2
|
-
|
|
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<
|
|
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<
|
|
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 { 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
|
-
|
|
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<
|
|
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<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}>;
|
|
29
|
-
export declare const
|
|
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<
|
|
33
|
-
|
|
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<
|
|
42
|
-
|
|
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<
|
|
3
|
-
|
|
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": "
|
|
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
|
-
"
|
|
14
|
-
"build:es": "
|
|
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.
|
|
22
|
-
"@emotion/react": "~11.
|
|
23
|
-
"@tecsinapse/react-core": "
|
|
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": "
|
|
42
|
+
"gitHead": "59db148f23b2b94e8db779e035b43e58a0104fed"
|
|
43
43
|
}
|