@tecsinapse/react-core 3.3.5 → 3.3.7-beta.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/package.json +3 -3
- package/dist/types/components/atoms/Avatar/Avatar.d.ts +0 -4
- package/dist/types/components/atoms/Avatar/Avatar.stories.d.ts +0 -8
- package/dist/types/components/atoms/Avatar/helpers.d.ts +0 -1
- package/dist/types/components/atoms/Avatar/index.d.ts +0 -2
- package/dist/types/components/atoms/Avatar/styled.d.ts +0 -24
- package/dist/types/components/atoms/Avatar/types.d.ts +0 -12
- package/dist/types/components/atoms/Badge/Badge.d.ts +0 -12
- package/dist/types/components/atoms/Badge/index.d.ts +0 -2
- package/dist/types/components/atoms/Badge/styled.d.ts +0 -15
- package/dist/types/components/atoms/BoxContent/BoxContent.d.ts +0 -7
- package/dist/types/components/atoms/BoxContent/BoxContent.stories.d.ts +0 -8
- package/dist/types/components/atoms/BoxContent/index.d.ts +0 -2
- package/dist/types/components/atoms/BoxContent/styled.d.ts +0 -11
- package/dist/types/components/atoms/Button/Button.d.ts +0 -28
- package/dist/types/components/atoms/Button/States/BaseState.d.ts +0 -7
- package/dist/types/components/atoms/Button/States/Error.d.ts +0 -4
- package/dist/types/components/atoms/Button/States/Loading.d.ts +0 -4
- package/dist/types/components/atoms/Button/States/Success.d.ts +0 -4
- package/dist/types/components/atoms/Button/States/index.d.ts +0 -3
- package/dist/types/components/atoms/Button/States/styled.d.ts +0 -7
- package/dist/types/components/atoms/Button/index.d.ts +0 -3
- package/dist/types/components/atoms/Button/styled.d.ts +0 -6
- package/dist/types/components/atoms/Card/Card.d.ts +0 -10
- package/dist/types/components/atoms/Card/Card.stories.d.ts +0 -7
- package/dist/types/components/atoms/Card/Footer/Footer.d.ts +0 -8
- package/dist/types/components/atoms/Card/Footer/index.d.ts +0 -2
- package/dist/types/components/atoms/Card/Header/Header.d.ts +0 -8
- package/dist/types/components/atoms/Card/Header/index.d.ts +0 -2
- package/dist/types/components/atoms/Card/index.d.ts +0 -2
- package/dist/types/components/atoms/Card/styled.d.ts +0 -1
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +0 -15
- package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +0 -7
- package/dist/types/components/atoms/Checkbox/index.d.ts +0 -2
- package/dist/types/components/atoms/Checkbox/styled.d.ts +0 -23
- package/dist/types/components/atoms/Divider/Divider.d.ts +0 -8
- package/dist/types/components/atoms/Divider/Divider.stories.d.ts +0 -8
- package/dist/types/components/atoms/Divider/index.d.ts +0 -2
- package/dist/types/components/atoms/Divider/styled.d.ts +0 -1
- package/dist/types/components/atoms/GroupButton/GroupButton.d.ts +0 -32
- package/dist/types/components/atoms/GroupButton/GroupButton.stories.d.ts +0 -7
- package/dist/types/components/atoms/GroupButton/GroupButtonOption.d.ts +0 -9
- package/dist/types/components/atoms/GroupButton/index.d.ts +0 -4
- package/dist/types/components/atoms/GroupButton/styled.d.ts +0 -38
- package/dist/types/components/atoms/Icon/AntDesign.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Entypo.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Evil.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Feather.d.ts +0 -3
- package/dist/types/components/atoms/Icon/FontAwesome.d.ts +0 -3
- package/dist/types/components/atoms/Icon/FontAwesomeFive.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Fontisto.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Foundation.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Icon.d.ts +0 -15
- package/dist/types/components/atoms/Icon/Icon.stories.d.ts +0 -8
- package/dist/types/components/atoms/Icon/Ionicon.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Material.d.ts +0 -3
- package/dist/types/components/atoms/Icon/MaterialCommunity.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Octicon.d.ts +0 -3
- package/dist/types/components/atoms/Icon/SimpleLine.d.ts +0 -3
- package/dist/types/components/atoms/Icon/Zocial.d.ts +0 -3
- package/dist/types/components/atoms/Icon/functions.d.ts +0 -6
- package/dist/types/components/atoms/Icon/index.d.ts +0 -2
- package/dist/types/components/atoms/Icon/styled.d.ts +0 -3
- package/dist/types/components/atoms/Icon/types.d.ts +0 -12
- package/dist/types/components/atoms/Input/Hint.d.ts +0 -10
- package/dist/types/components/atoms/Input/InputContainer/InputContainer.d.ts +0 -30
- package/dist/types/components/atoms/Input/InputElement/InputElement.d.ts +0 -13
- package/dist/types/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +0 -16
- package/dist/types/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +0 -11
- package/dist/types/components/atoms/Input/PressableInputContainer/index.d.ts +0 -2
- package/dist/types/components/atoms/Input/PressableInputContainer/styled.d.ts +0 -5
- package/dist/types/components/atoms/Input/hooks/useInputFocus.d.ts +0 -5
- package/dist/types/components/atoms/Input/hooks/useNumberMask.d.ts +0 -8
- package/dist/types/components/atoms/Input/hooks/useStringMask.d.ts +0 -8
- package/dist/types/components/atoms/Input/index.d.ts +0 -13
- package/dist/types/components/atoms/Input/styled.d.ts +0 -58
- package/dist/types/components/atoms/Paper/Paper.d.ts +0 -9
- package/dist/types/components/atoms/Paper/Paper.stories.d.ts +0 -7
- package/dist/types/components/atoms/Paper/index.d.ts +0 -2
- package/dist/types/components/atoms/Paper/styled.d.ts +0 -1
- package/dist/types/components/atoms/PressableSurface/PressableSurface.d.ts +0 -11
- package/dist/types/components/atoms/PressableSurface/index.d.ts +0 -2
- package/dist/types/components/atoms/ProgressBar/ProgressBar.d.ts +0 -12
- package/dist/types/components/atoms/ProgressBar/ProgressBar.stories.d.ts +0 -7
- package/dist/types/components/atoms/ProgressBar/index.d.ts +0 -2
- package/dist/types/components/atoms/ProgressBar/styled.d.ts +0 -19
- package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +0 -15
- package/dist/types/components/atoms/RadioButton/RadioButton.stories.d.ts +0 -7
- package/dist/types/components/atoms/RadioButton/index.d.ts +0 -2
- package/dist/types/components/atoms/RadioButton/styled.d.ts +0 -27
- package/dist/types/components/atoms/Switch/Switch.d.ts +0 -16
- package/dist/types/components/atoms/Switch/Switch.stories.d.ts +0 -8
- package/dist/types/components/atoms/Switch/animation.d.ts +0 -2
- package/dist/types/components/atoms/Switch/index.d.ts +0 -3
- package/dist/types/components/atoms/Switch/styled.d.ts +0 -4
- package/dist/types/components/atoms/Tag/Tag.d.ts +0 -15
- package/dist/types/components/atoms/Tag/index.d.ts +0 -2
- package/dist/types/components/atoms/Tag/styled.d.ts +0 -22
- package/dist/types/components/atoms/Text/Text.d.ts +0 -20
- package/dist/types/components/atoms/Text/Text.stories.d.ts +0 -8
- package/dist/types/components/atoms/Text/functions.d.ts +0 -2
- package/dist/types/components/atoms/Text/index.d.ts +0 -2
- package/dist/types/components/atoms/Text/styled.d.ts +0 -6
- package/dist/types/components/atoms/shared/PaperAndCard.d.ts +0 -3
- package/dist/types/components/molecules/Calendar/Calendar.d.ts +0 -22
- package/dist/types/components/molecules/Calendar/Calendar.stories.d.ts +0 -7
- package/dist/types/components/molecules/Calendar/components/MemoizedYearCard.d.ts +0 -10
- package/dist/types/components/molecules/Calendar/components/MonthWeek.d.ts +0 -13
- package/dist/types/components/molecules/Calendar/components/SelectYear.d.ts +0 -12
- package/dist/types/components/molecules/Calendar/components/Weekdays.d.ts +0 -8
- package/dist/types/components/molecules/Calendar/components/index.d.ts +0 -4
- package/dist/types/components/molecules/Calendar/index.d.ts +0 -2
- package/dist/types/components/molecules/Calendar/styled.d.ts +0 -63
- package/dist/types/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.d.ts +0 -20
- package/dist/types/components/molecules/ControlledDateTimeSelector/index.d.ts +0 -2
- package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +0 -19
- package/dist/types/components/molecules/DatePicker/index.d.ts +0 -3
- package/dist/types/components/molecules/DatePicker/styled.d.ts +0 -11
- package/dist/types/components/molecules/DateTimePicker/DateTimePicker.d.ts +0 -17
- package/dist/types/components/molecules/DateTimePicker/index.d.ts +0 -2
- package/dist/types/components/molecules/DateTimePicker/styled.d.ts +0 -6
- package/dist/types/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +0 -28
- package/dist/types/components/molecules/DateTimeSelector/Selector.d.ts +0 -17
- package/dist/types/components/molecules/DateTimeSelector/index.d.ts +0 -2
- package/dist/types/components/molecules/DateTimeSelector/styled.d.ts +0 -48
- package/dist/types/components/molecules/Grid/functions.d.ts +0 -3
- package/dist/types/components/molecules/Grid/index.d.ts +0 -42
- package/dist/types/components/molecules/HintInputContainer/HintInputContainer.d.ts +0 -17
- package/dist/types/components/molecules/HintInputContainer/index.d.ts +0 -2
- package/dist/types/components/molecules/HintInputContainer/styled.d.ts +0 -0
- package/dist/types/components/molecules/IconTextButton/IconComponent.d.ts +0 -9
- package/dist/types/components/molecules/IconTextButton/IconTextButton.d.ts +0 -8
- package/dist/types/components/molecules/IconTextButton/index.d.ts +0 -2
- package/dist/types/components/molecules/InputPassword/InputPasswordIcon.d.ts +0 -8
- package/dist/types/components/molecules/InputPassword/index.d.ts +0 -1
- package/dist/types/components/molecules/InputPassword/styled.d.ts +0 -5
- package/dist/types/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +0 -11
- package/dist/types/components/molecules/LabeledSwitch/index.d.ts +0 -1
- package/dist/types/components/molecules/Snackbar/Snackbar.d.ts +0 -21
- package/dist/types/components/molecules/Snackbar/index.d.ts +0 -2
- package/dist/types/components/molecules/Snackbar/styled.d.ts +0 -37
- package/dist/types/components/molecules/TextArea/TextArea.d.ts +0 -14
- package/dist/types/components/molecules/TextArea/index.d.ts +0 -3
- package/dist/types/components/molecules/TextArea/styled.d.ts +0 -2
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/useDebouncedState.d.ts +0 -2
- package/dist/types/hooks/useTheme.d.ts +0 -2
- package/dist/types/index.d.ts +0 -66
- package/dist/types/styles/ThemeProvider.d.ts +0 -4
- package/dist/types/styles/definitions.d.ts +0 -45
- package/dist/types/styles/light.d.ts +0 -2
- package/dist/types/types/defaults.d.ts +0 -134
- package/dist/types/utils/IPhoneXHelper.d.ts +0 -4
- package/dist/types/utils/ResponsiveFontSize.d.ts +0 -3
- package/dist/types/utils/extractNumbersFromString.d.ts +0 -2
- package/dist/types/utils/formatWithMask.d.ts +0 -3
- package/dist/types/utils/index.d.ts +0 -7
- package/dist/types/utils/lightenDarkenColor.d.ts +0 -1
- package/dist/types/utils/masks.d.ts +0 -12
- package/dist/types/utils/variantComplement.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/react-core",
|
|
3
3
|
"description": "TecSinapse hybrid React components",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.7-beta.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"homepage": "https://tecsinapse.github.io/design-system/",
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^18.0.0",
|
|
37
|
-
"react-native": "^0.
|
|
37
|
+
"react-native": "^0.72.0",
|
|
38
38
|
"react-native-vector-icons": "^9.2.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "a1a418553abed1699b51725c61eacd30f518fe3c"
|
|
41
41
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AvatarProps } from './types';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: React.FC<AvatarProps>;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, AvatarProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getIniciais: (name: string) => string;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Image, View } from 'react-native';
|
|
3
|
-
import { TextProps } from '../Text';
|
|
4
|
-
import { AvatarProps } from './types';
|
|
5
|
-
export declare const ContainerButtonAvatar: import("@emotion/native").StyledComponent<import("../PressableSurface").PressableSurfaceProps & {
|
|
6
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
8
|
-
} & Partial<import("../../../types/defaults").ThemeProviderProps & AvatarProps>, {}, {}>;
|
|
9
|
-
export declare const StyledAvatar: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
as?: import("react").ElementType<any> | undefined;
|
|
12
|
-
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
|
|
13
|
-
ref?: import("react").Ref<Image> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const StyledBackground: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
-
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
|
|
19
|
-
ref?: import("react").Ref<View> | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const getStyledTextComponent: (component: FC<TextProps>) => import("@emotion/native").StyledComponent<TextProps & {
|
|
22
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
-
as?: import("react").ElementType<any> | undefined;
|
|
24
|
-
}, {}, {}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IconSize } from '../../../types/defaults';
|
|
2
|
-
import { ImageSourcePropType } from 'react-native';
|
|
3
|
-
import { FC } from 'react';
|
|
4
|
-
import { TextProps } from '../Text';
|
|
5
|
-
export type SizeAvatar = Omit<IconSize, 'centi' | 'deca'>;
|
|
6
|
-
export interface AvatarProps {
|
|
7
|
-
source?: ImageSourcePropType;
|
|
8
|
-
name: string;
|
|
9
|
-
onPress?: () => void;
|
|
10
|
-
size?: keyof SizeAvatar;
|
|
11
|
-
TextComponent?: FC<TextProps>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { ColorGradationType, ColorType } from '@tecsinapse/react-core';
|
|
4
|
-
export interface BadgeProps {
|
|
5
|
-
color: ColorType;
|
|
6
|
-
tone?: ColorGradationType;
|
|
7
|
-
style?: StyleProp<ViewStyle>;
|
|
8
|
-
value: React.ReactNode;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
declare const Badge: ({ children, style, color, tone, value, }: BadgeProps) => JSX.Element;
|
|
12
|
-
export default Badge;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import { BadgeProps } from './Badge';
|
|
4
|
-
export declare const BadgeStyle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
7
|
-
} & Partial<import("../../../types/defaults").ThemeProviderProps & BadgeProps>, {}, {
|
|
8
|
-
ref?: import("react").Ref<View> | undefined;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const ViewStyled: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
} & Partial<import("../../../types/defaults").ThemeProviderProps & BadgeProps>, {}, {
|
|
14
|
-
ref?: import("react").Ref<View> | undefined;
|
|
15
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BoxContentProps } from '.';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: React.FC<BoxContentProps>;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, BoxContentProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const elevatedStyles: ({ theme }: StyleProps) => {
|
|
2
|
-
shadowColor: any;
|
|
3
|
-
shadowOffset: {
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
};
|
|
7
|
-
shadowOpacity: number;
|
|
8
|
-
shadowRadius: number;
|
|
9
|
-
elevation: number;
|
|
10
|
-
}[];
|
|
11
|
-
export declare const StyledBoxContent: import("@emotion/native").StyledComponent<any, {}, {}>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { BorderRadiusType, ColorGradationType, ColorType, FontColorType, VariantType } from '../../../types/defaults';
|
|
4
|
-
import { PressableSurfaceProps } from '../PressableSurface';
|
|
5
|
-
import { TextProps } from '../Text';
|
|
6
|
-
export type ButtonSizeType = 'small' | 'default';
|
|
7
|
-
export type ButtonStateType = 'loading' | 'error' | 'success' | 'default';
|
|
8
|
-
export interface ButtonStateProps {
|
|
9
|
-
buttonSize?: ButtonSizeType;
|
|
10
|
-
fontColor?: FontColorType;
|
|
11
|
-
textComponent?: React.FC<TextProps>;
|
|
12
|
-
text?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ButtonProps extends PressableSurfaceProps {
|
|
15
|
-
style?: StyleProp<ViewStyle>;
|
|
16
|
-
color?: ColorType;
|
|
17
|
-
variant?: VariantType;
|
|
18
|
-
tone?: ColorGradationType;
|
|
19
|
-
frozen?: boolean | null;
|
|
20
|
-
borderRadius?: BorderRadiusType;
|
|
21
|
-
size?: ButtonSizeType;
|
|
22
|
-
state?: ButtonStateType;
|
|
23
|
-
loadingComponent?: JSX.Element;
|
|
24
|
-
errorComponent?: JSX.Element;
|
|
25
|
-
successComponent?: JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
declare const Button: FC<ButtonProps>;
|
|
28
|
-
export default Button;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ActivityIndicator } from 'react-native';
|
|
3
|
-
import { TextProps } from '../../Text';
|
|
4
|
-
export declare const getStyledTextButton: (component: FC<TextProps>) => import("@emotion/native").StyledComponent<any, {}, {}>;
|
|
5
|
-
export declare const StyledIndicator: import("@emotion/native").StyledComponent<any, {}, {
|
|
6
|
-
ref?: import("react").Ref<ActivityIndicator> | undefined;
|
|
7
|
-
}>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonProps } from './Button';
|
|
3
|
-
export declare const StyledButton: import("@emotion/native").StyledComponent<import("../PressableSurface").PressableSurfaceProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & ButtonProps & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PressableSurfaceProps } from '@tecsinapse/react-core';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { GestureResponderEvent } from 'react-native';
|
|
4
|
-
import { PaperProps } from '../Paper';
|
|
5
|
-
export interface CardProps extends PaperProps, Omit<PressableSurfaceProps, 'style'> {
|
|
6
|
-
onPress?: null | ((event: GestureResponderEvent) => void);
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const Card: ({ children, elevated, onPress, ...rest }: CardProps) => JSX.Element;
|
|
10
|
-
export default Card;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CardProps } from './Card';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ children, elevated, onPress, ...rest }: CardProps) => JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, CardProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export interface FooterProps {
|
|
4
|
-
style?: StyleProp<ViewStyle>;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare const Footer: ({ children, style }: FooterProps) => JSX.Element;
|
|
8
|
-
export default Footer;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export interface HeaderProps {
|
|
4
|
-
style?: StyleProp<ViewStyle>;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare const Header: ({ children, style }: HeaderProps) => JSX.Element;
|
|
8
|
-
export default Header;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledCard: import("@emotion/native").StyledComponent<any, {}, {}>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { ColorGradationType, ColorType } from '@tecsinapse/react-core';
|
|
4
|
-
export interface CheckboxProps {
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
onChange?: (checked: boolean) => void;
|
|
7
|
-
labelPosition?: 'left' | 'right';
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
color?: ColorType;
|
|
10
|
-
colorTone?: ColorGradationType;
|
|
11
|
-
style?: StyleProp<ViewStyle>;
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const Checkbox: ({ children, checked, onChange, color, colorTone, labelPosition, disabled, ...rest }: CheckboxProps) => JSX.Element;
|
|
15
|
-
export default Checkbox;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CheckboxProps } from './Checkbox';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ children, checked, onChange, color, colorTone, labelPosition, disabled, ...rest }: CheckboxProps) => JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, CheckboxProps>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
export declare const IconUncheckedStyled: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & Partial<any>, {}, {
|
|
7
|
-
ref?: import("react").Ref<View> | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const IconCheckedStyled: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
as?: import("react").ElementType<any> | undefined;
|
|
12
|
-
} & Partial<any>, {}, {
|
|
13
|
-
ref?: import("react").Ref<View> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const IconViewStyled: import("@emotion/native").StyledComponent<any, {}, {
|
|
16
|
-
ref?: import("react").Ref<View> | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const ViewStyled: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
19
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
-
as?: import("react").ElementType<any> | undefined;
|
|
21
|
-
}, {}, {
|
|
22
|
-
ref?: import("react").Ref<View> | undefined;
|
|
23
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DividerProps } from './Divider';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: React.FC<DividerProps>;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DividerProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledDivider: import("@emotion/native").StyledComponent<any, {}, {}>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import { ColorGradationType, ColorType } from '../../../types/defaults';
|
|
3
|
-
import { ButtonSizeType } from '../Button';
|
|
4
|
-
export interface GroupButtonOptions {
|
|
5
|
-
activeBackgroundColor?: ColorType;
|
|
6
|
-
activeBackgroundColorTone?: ColorGradationType;
|
|
7
|
-
activeBorderColor?: ColorType;
|
|
8
|
-
activeBorderColorTone?: ColorGradationType;
|
|
9
|
-
inactiveBackgroundColor?: ColorType;
|
|
10
|
-
inactiveBackgroundColorTone?: ColorGradationType;
|
|
11
|
-
inactiveBorderColor?: ColorType;
|
|
12
|
-
inactiveBorderColorTone?: ColorGradationType;
|
|
13
|
-
activeStyle?: StyleProp<ViewStyle>;
|
|
14
|
-
inactiveStyle?: StyleProp<ViewStyle>;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface GroupButtonValue<T> {
|
|
18
|
-
value: T;
|
|
19
|
-
options?: GroupButtonOptions;
|
|
20
|
-
}
|
|
21
|
-
export interface GroupButtonProps<T> {
|
|
22
|
-
value: T;
|
|
23
|
-
options: GroupButtonValue<T>[];
|
|
24
|
-
renderKey: (option?: T) => string | number | undefined;
|
|
25
|
-
renderOption: (option: T, active: boolean) => JSX.Element;
|
|
26
|
-
onChange: (option: T) => void;
|
|
27
|
-
buttonSize?: ButtonSizeType;
|
|
28
|
-
style?: StyleProp<ViewStyle>;
|
|
29
|
-
disableAllOptions?: boolean;
|
|
30
|
-
}
|
|
31
|
-
declare const GroupButton: <T>({ style, ...rest }: GroupButtonProps<T>) => JSX.Element;
|
|
32
|
-
export default GroupButton;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GroupButtonProps } from '../GroupButton';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: <T>({ style, ...rest }: GroupButtonProps<T>) => JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, GroupButtonProps<any>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TextProps } from '../Text';
|
|
3
|
-
export interface GroupButtonOptionProps {
|
|
4
|
-
active: boolean;
|
|
5
|
-
description: string;
|
|
6
|
-
TextComponent?: FC<TextProps>;
|
|
7
|
-
}
|
|
8
|
-
declare const GroupButtonOption: ({ TextComponent, active, description, }: GroupButtonOptionProps) => JSX.Element;
|
|
9
|
-
export default GroupButtonOption;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ButtonSizeType } from '../Button';
|
|
3
|
-
import { TextProps } from '../Text';
|
|
4
|
-
import { GroupButtonOptions } from './GroupButton';
|
|
5
|
-
import { GroupButtonOptionProps } from './GroupButtonOption';
|
|
6
|
-
interface PressableOptions extends GroupButtonOptions {
|
|
7
|
-
isActive: boolean;
|
|
8
|
-
isFirstOption: boolean;
|
|
9
|
-
isLastOption: boolean;
|
|
10
|
-
buttonSize?: ButtonSizeType;
|
|
11
|
-
}
|
|
12
|
-
export declare const StyledGroupButton: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
13
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
15
|
-
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
|
|
16
|
-
ref?: import("react").Ref<import("react-native").View> | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const getStyledGroupItemText: (component: FC<TextProps>) => import("@emotion/native").StyledComponent<TextProps & {
|
|
19
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
-
as?: import("react").ElementType<any> | undefined;
|
|
21
|
-
} & Partial<GroupButtonOptionProps> & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
22
|
-
export declare const StyledOption: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
-
as?: import("react").ElementType<any> | undefined;
|
|
25
|
-
}, {}, {
|
|
26
|
-
ref?: import("react").Ref<import("react-native").View> | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
export declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
29
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
-
as?: import("react").ElementType<any> | undefined;
|
|
31
|
-
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
|
|
32
|
-
ref?: import("react").Ref<import("react-native").View> | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
export declare const StyledPressable: import("@emotion/native").StyledComponent<import("../PressableSurface").PressableSurfaceProps & {
|
|
35
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
36
|
-
as?: import("react").ElementType<any> | undefined;
|
|
37
|
-
} & PressableOptions & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
38
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { StyleProp, TextStyle } from 'react-native';
|
|
3
|
-
import { ColorGradationType, ColorType, FontColorType, IconSizeType } from '../../../types/defaults';
|
|
4
|
-
import { IconType } from '../../../styles/definitions';
|
|
5
|
-
export interface IconProps {
|
|
6
|
-
name: string;
|
|
7
|
-
size?: IconSizeType;
|
|
8
|
-
type: IconType;
|
|
9
|
-
fontColor?: FontColorType;
|
|
10
|
-
colorVariant?: ColorType;
|
|
11
|
-
colorTone?: ColorGradationType;
|
|
12
|
-
style?: StyleProp<TextStyle>;
|
|
13
|
-
}
|
|
14
|
-
declare const Icon: FC<IconProps>;
|
|
15
|
-
export default Icon;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IconProps } from './Icon';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: React.FC<IconProps>;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IconProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { ColorGradationType, ColorType } from '@tecsinapse/react-core';
|
|
3
|
-
import { IconInternalProps } from './types';
|
|
4
|
-
export declare const registerCustomIconType: (id: string, customIcon: any) => void;
|
|
5
|
-
export declare const getIconComponent: (type: IconType) => ComponentType<IconInternalProps>;
|
|
6
|
-
export declare const getIconColor: (colorVariant: ColorType | undefined, colorGradation: ColorGradationType | undefined, fontColor: FontColorType, theme: ThemeProp) => string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ColorValue, StyleProp, TextProps, TextStyle } from 'react-native';
|
|
2
|
-
import { IconSizeType } from '@tecsinapse/react-core';
|
|
3
|
-
export interface IconRNVIProps extends TextProps {
|
|
4
|
-
name: string;
|
|
5
|
-
color?: ColorValue | number | undefined;
|
|
6
|
-
}
|
|
7
|
-
export interface IconInternalProps {
|
|
8
|
-
size: IconSizeType;
|
|
9
|
-
color: string;
|
|
10
|
-
name: string;
|
|
11
|
-
style?: StyleProp<TextStyle>;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { InputVariantType } from '../Input';
|
|
3
|
-
import { TextProps } from '../Text';
|
|
4
|
-
interface HintProps {
|
|
5
|
-
text?: string;
|
|
6
|
-
variant: InputVariantType;
|
|
7
|
-
TextComponent?: FC<TextProps>;
|
|
8
|
-
}
|
|
9
|
-
declare const Hint: FC<HintProps>;
|
|
10
|
-
export default Hint;
|