@tecsinapse/react-core 3.3.7 → 3.4.1-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.
Files changed (177) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +9 -7
  3. package/dist/cjs/components/atoms/Input/InputContainer/InputContainer.js +2 -4
  4. package/dist/cjs/components/atoms/Input/InputMaskElement/InputMaskElement.js +1 -2
  5. package/dist/cjs/components/atoms/Input/hooks/useNumberMask.js +1 -2
  6. package/dist/cjs/components/atoms/Input/hooks/useStringMask.js +5 -10
  7. package/dist/cjs/components/atoms/Switch/animation.js +1 -2
  8. package/dist/cjs/components/molecules/Calendar/Calendar.js +1 -2
  9. package/dist/cjs/components/molecules/Calendar/components/MonthWeek.js +3 -6
  10. package/dist/cjs/components/molecules/DatePicker/DatePicker.js +2 -4
  11. package/dist/cjs/components/molecules/DateTimeSelector/DateTimeSelector.js +1 -2
  12. package/dist/cjs/components/molecules/Grid/functions.js +2 -4
  13. package/dist/cjs/hooks/useDebouncedState.js +1 -2
  14. package/dist/cjs/styles/definitions.js +1 -2
  15. package/dist/cjs/utils/ResponsiveFontSize.js +2 -4
  16. package/dist/cjs/utils/lightenDarkenColor.js +6 -12
  17. package/dist/esm/components/atoms/Input/InputContainer/InputContainer.js +2 -4
  18. package/dist/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +1 -2
  19. package/dist/esm/components/atoms/Input/hooks/useNumberMask.js +1 -2
  20. package/dist/esm/components/atoms/Input/hooks/useStringMask.js +5 -10
  21. package/dist/esm/components/atoms/Switch/animation.js +1 -2
  22. package/dist/esm/components/molecules/Calendar/Calendar.js +1 -2
  23. package/dist/esm/components/molecules/Calendar/components/MonthWeek.js +3 -6
  24. package/dist/esm/components/molecules/DatePicker/DatePicker.js +2 -4
  25. package/dist/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +1 -2
  26. package/dist/esm/components/molecules/Grid/functions.js +2 -4
  27. package/dist/esm/hooks/useDebouncedState.js +1 -2
  28. package/dist/esm/styles/definitions.js +1 -2
  29. package/dist/esm/utils/ResponsiveFontSize.js +2 -4
  30. package/dist/esm/utils/lightenDarkenColor.js +6 -12
  31. package/dist/types/components/atoms/Avatar/Avatar.d.ts +4 -0
  32. package/dist/types/components/atoms/Avatar/helpers.d.ts +1 -0
  33. package/dist/types/components/atoms/Avatar/index.d.ts +2 -0
  34. package/dist/types/components/atoms/Avatar/styled.d.ts +24 -0
  35. package/dist/types/components/atoms/Avatar/types.d.ts +12 -0
  36. package/dist/types/components/atoms/Badge/Badge.d.ts +12 -0
  37. package/dist/types/components/atoms/Badge/index.d.ts +2 -0
  38. package/dist/types/components/atoms/Badge/styled.d.ts +15 -0
  39. package/dist/types/components/atoms/BoxContent/BoxContent.d.ts +7 -0
  40. package/dist/types/components/atoms/BoxContent/index.d.ts +2 -0
  41. package/dist/types/components/atoms/BoxContent/styled.d.ts +22 -0
  42. package/dist/types/components/atoms/Button/Button.d.ts +28 -0
  43. package/dist/types/components/atoms/Button/States/BaseState.d.ts +7 -0
  44. package/dist/types/components/atoms/Button/States/Error.d.ts +4 -0
  45. package/dist/types/components/atoms/Button/States/Loading.d.ts +4 -0
  46. package/dist/types/components/atoms/Button/States/Success.d.ts +4 -0
  47. package/dist/types/components/atoms/Button/States/index.d.ts +3 -0
  48. package/dist/types/components/atoms/Button/States/styled.d.ts +14 -0
  49. package/dist/types/components/atoms/Button/index.d.ts +3 -0
  50. package/dist/types/components/atoms/Button/styled.d.ts +6 -0
  51. package/dist/types/components/atoms/Card/Card.d.ts +10 -0
  52. package/dist/types/components/atoms/Card/Footer/Footer.d.ts +8 -0
  53. package/dist/types/components/atoms/Card/Footer/index.d.ts +2 -0
  54. package/dist/types/components/atoms/Card/Header/Header.d.ts +8 -0
  55. package/dist/types/components/atoms/Card/Header/index.d.ts +2 -0
  56. package/dist/types/components/atoms/Card/index.d.ts +2 -0
  57. package/dist/types/components/atoms/Card/styled.d.ts +6 -0
  58. package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +15 -0
  59. package/dist/types/components/atoms/Checkbox/index.d.ts +2 -0
  60. package/dist/types/components/atoms/Checkbox/styled.d.ts +27 -0
  61. package/dist/types/components/atoms/Divider/Divider.d.ts +8 -0
  62. package/dist/types/components/atoms/Divider/index.d.ts +2 -0
  63. package/dist/types/components/atoms/Divider/styled.d.ts +11 -0
  64. package/dist/types/components/atoms/GroupButton/GroupButton.d.ts +33 -0
  65. package/dist/types/components/atoms/GroupButton/GroupButtonOption.d.ts +9 -0
  66. package/dist/types/components/atoms/GroupButton/index.d.ts +4 -0
  67. package/dist/types/components/atoms/GroupButton/styled.d.ts +38 -0
  68. package/dist/types/components/atoms/Icon/AntDesign.d.ts +4 -0
  69. package/dist/types/components/atoms/Icon/Entypo.d.ts +4 -0
  70. package/dist/types/components/atoms/Icon/Evil.d.ts +4 -0
  71. package/dist/types/components/atoms/Icon/Feather.d.ts +4 -0
  72. package/dist/types/components/atoms/Icon/FontAwesome.d.ts +4 -0
  73. package/dist/types/components/atoms/Icon/FontAwesomeFive.d.ts +4 -0
  74. package/dist/types/components/atoms/Icon/Fontisto.d.ts +4 -0
  75. package/dist/types/components/atoms/Icon/Foundation.d.ts +4 -0
  76. package/dist/types/components/atoms/Icon/Icon.d.ts +15 -0
  77. package/dist/types/components/atoms/Icon/Ionicon.d.ts +4 -0
  78. package/dist/types/components/atoms/Icon/Material.d.ts +4 -0
  79. package/dist/types/components/atoms/Icon/MaterialCommunity.d.ts +4 -0
  80. package/dist/types/components/atoms/Icon/Octicon.d.ts +4 -0
  81. package/dist/types/components/atoms/Icon/SimpleLine.d.ts +4 -0
  82. package/dist/types/components/atoms/Icon/Zocial.d.ts +4 -0
  83. package/dist/types/components/atoms/Icon/functions.d.ts +7 -0
  84. package/dist/types/components/atoms/Icon/index.d.ts +2 -0
  85. package/dist/types/components/atoms/Icon/styled.d.ts +7 -0
  86. package/dist/types/components/atoms/Icon/types.d.ts +12 -0
  87. package/dist/types/components/atoms/Input/Hint.d.ts +10 -0
  88. package/dist/types/components/atoms/Input/InputContainer/InputContainer.d.ts +30 -0
  89. package/dist/types/components/atoms/Input/InputElement/InputElement.d.ts +13 -0
  90. package/dist/types/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +16 -0
  91. package/dist/types/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +11 -0
  92. package/dist/types/components/atoms/Input/PressableInputContainer/index.d.ts +2 -0
  93. package/dist/types/components/atoms/Input/PressableInputContainer/styled.d.ts +5 -0
  94. package/dist/types/components/atoms/Input/hooks/useInputFocus.d.ts +5 -0
  95. package/dist/types/components/atoms/Input/hooks/useNumberMask.d.ts +8 -0
  96. package/dist/types/components/atoms/Input/hooks/useStringMask.d.ts +8 -0
  97. package/dist/types/components/atoms/Input/index.d.ts +13 -0
  98. package/dist/types/components/atoms/Input/styled.d.ts +58 -0
  99. package/dist/types/components/atoms/Paper/Paper.d.ts +9 -0
  100. package/dist/types/components/atoms/Paper/index.d.ts +2 -0
  101. package/dist/types/components/atoms/Paper/styled.d.ts +7 -0
  102. package/dist/types/components/atoms/PressableSurface/PressableSurface.d.ts +11 -0
  103. package/dist/types/components/atoms/PressableSurface/index.d.ts +2 -0
  104. package/dist/types/components/atoms/ProgressBar/ProgressBar.d.ts +13 -0
  105. package/dist/types/components/atoms/ProgressBar/index.d.ts +2 -0
  106. package/dist/types/components/atoms/ProgressBar/styled.d.ts +19 -0
  107. package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +15 -0
  108. package/dist/types/components/atoms/RadioButton/index.d.ts +2 -0
  109. package/dist/types/components/atoms/RadioButton/styled.d.ts +27 -0
  110. package/dist/types/components/atoms/Switch/Switch.d.ts +16 -0
  111. package/dist/types/components/atoms/Switch/animation.d.ts +2 -0
  112. package/dist/types/components/atoms/Switch/index.d.ts +3 -0
  113. package/dist/types/components/atoms/Switch/styled.d.ts +12 -0
  114. package/dist/types/components/atoms/Tag/Tag.d.ts +15 -0
  115. package/dist/types/components/atoms/Tag/index.d.ts +2 -0
  116. package/dist/types/components/atoms/Tag/styled.d.ts +22 -0
  117. package/dist/types/components/atoms/Text/Text.d.ts +20 -0
  118. package/dist/types/components/atoms/Text/functions.d.ts +2 -0
  119. package/dist/types/components/atoms/Text/index.d.ts +2 -0
  120. package/dist/types/components/atoms/Text/styled.d.ts +18 -0
  121. package/dist/types/components/atoms/shared/PaperAndCard.d.ts +5 -0
  122. package/dist/types/components/molecules/Calendar/Calendar.d.ts +22 -0
  123. package/dist/types/components/molecules/Calendar/components/MemoizedYearCard.d.ts +10 -0
  124. package/dist/types/components/molecules/Calendar/components/MonthWeek.d.ts +13 -0
  125. package/dist/types/components/molecules/Calendar/components/SelectYear.d.ts +12 -0
  126. package/dist/types/components/molecules/Calendar/components/Weekdays.d.ts +8 -0
  127. package/dist/types/components/molecules/Calendar/components/index.d.ts +4 -0
  128. package/dist/types/components/molecules/Calendar/index.d.ts +2 -0
  129. package/dist/types/components/molecules/Calendar/styled.d.ts +63 -0
  130. package/dist/types/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.d.ts +20 -0
  131. package/dist/types/components/molecules/ControlledDateTimeSelector/index.d.ts +2 -0
  132. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +19 -0
  133. package/dist/types/components/molecules/DatePicker/index.d.ts +3 -0
  134. package/dist/types/components/molecules/DatePicker/styled.d.ts +11 -0
  135. package/dist/types/components/molecules/DateTimePicker/DateTimePicker.d.ts +17 -0
  136. package/dist/types/components/molecules/DateTimePicker/index.d.ts +2 -0
  137. package/dist/types/components/molecules/DateTimePicker/styled.d.ts +6 -0
  138. package/dist/types/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +28 -0
  139. package/dist/types/components/molecules/DateTimeSelector/Selector.d.ts +17 -0
  140. package/dist/types/components/molecules/DateTimeSelector/index.d.ts +2 -0
  141. package/dist/types/components/molecules/DateTimeSelector/styled.d.ts +48 -0
  142. package/dist/types/components/molecules/Grid/functions.d.ts +4 -0
  143. package/dist/types/components/molecules/Grid/index.d.ts +42 -0
  144. package/dist/types/components/molecules/HintInputContainer/HintInputContainer.d.ts +17 -0
  145. package/dist/types/components/molecules/HintInputContainer/index.d.ts +2 -0
  146. package/dist/types/components/molecules/HintInputContainer/styled.d.ts +0 -0
  147. package/dist/types/components/molecules/IconTextButton/IconComponent.d.ts +11 -0
  148. package/dist/types/components/molecules/IconTextButton/IconTextButton.d.ts +10 -0
  149. package/dist/types/components/molecules/IconTextButton/index.d.ts +2 -0
  150. package/dist/types/components/molecules/InputPassword/InputPasswordIcon.d.ts +8 -0
  151. package/dist/types/components/molecules/InputPassword/index.d.ts +1 -0
  152. package/dist/types/components/molecules/InputPassword/styled.d.ts +5 -0
  153. package/dist/types/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +11 -0
  154. package/dist/types/components/molecules/LabeledSwitch/index.d.ts +1 -0
  155. package/dist/types/components/molecules/Snackbar/Snackbar.d.ts +21 -0
  156. package/dist/types/components/molecules/Snackbar/index.d.ts +2 -0
  157. package/dist/types/components/molecules/Snackbar/styled.d.ts +37 -0
  158. package/dist/types/components/molecules/TextArea/TextArea.d.ts +14 -0
  159. package/dist/types/components/molecules/TextArea/index.d.ts +3 -0
  160. package/dist/types/components/molecules/TextArea/styled.d.ts +10 -0
  161. package/dist/types/hooks/index.d.ts +2 -0
  162. package/dist/types/hooks/useDebouncedState.d.ts +2 -0
  163. package/dist/types/hooks/useTheme.d.ts +2 -0
  164. package/dist/types/index.d.ts +66 -0
  165. package/dist/types/styles/ThemeProvider.d.ts +4 -0
  166. package/dist/types/styles/definitions.d.ts +45 -0
  167. package/dist/types/styles/light.d.ts +2 -0
  168. package/dist/types/types/defaults.d.ts +134 -0
  169. package/dist/types/utils/IPhoneXHelper.d.ts +4 -0
  170. package/dist/types/utils/ResponsiveFontSize.d.ts +3 -0
  171. package/dist/types/utils/extractNumbersFromString.d.ts +2 -0
  172. package/dist/types/utils/formatWithMask.d.ts +2 -0
  173. package/dist/types/utils/index.d.ts +7 -0
  174. package/dist/types/utils/lightenDarkenColor.d.ts +1 -0
  175. package/dist/types/utils/masks.d.ts +12 -0
  176. package/dist/types/utils/variantComplement.d.ts +6 -0
  177. package/package.json +9 -9
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { StyleProps } from '../../../types/defaults';
3
+ import { View } from 'react-native';
4
+ export declare const elevatedStyles: ({ theme }: Partial<StyleProps>) => {
5
+ shadowColor: string | undefined;
6
+ shadowOffset: {
7
+ width: number;
8
+ height: number;
9
+ };
10
+ shadowOpacity: number;
11
+ shadowRadius: number;
12
+ elevation: number;
13
+ }[];
14
+ export declare const StyledBoxContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ } & Partial<import("../../../types/defaults").ThemeProviderProps> & {
18
+ ref?: import("react").Ref<View> | undefined;
19
+ } & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
+ }, {}, {}>;
@@ -0,0 +1,28 @@
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;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { ButtonStateProps } from '../Button';
3
+ export interface BaseStateProps extends ButtonStateProps {
4
+ icon: string;
5
+ }
6
+ declare const BaseState: FC<BaseStateProps>;
7
+ export default BaseState;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ButtonStateProps } from '../Button';
3
+ declare const Error: FC<ButtonStateProps>;
4
+ export default Error;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ButtonStateProps } from '../Button';
3
+ declare const Loading: FC<ButtonStateProps>;
4
+ export default Loading;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ButtonStateProps } from '../Button';
3
+ declare const Success: FC<ButtonStateProps>;
4
+ export default Success;
@@ -0,0 +1,3 @@
1
+ export { default as Error } from './Error';
2
+ export { default as Loading } from './Loading';
3
+ export { default as Success } from './Success';
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { ActivityIndicator } from 'react-native';
3
+ import { TextProps } from '../../Text';
4
+ import { ButtonStateProps } from '../Button';
5
+ export declare const getStyledTextButton: (component: FC<TextProps>) => import("@emotion/native").StyledComponent<TextProps & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & Partial<ButtonStateProps> & Partial<import("../../../../types/defaults").ThemeProviderProps>, {}, {}>;
9
+ export declare const StyledIndicator: import("@emotion/native").StyledComponent<import("react-native").ActivityIndicatorProps & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ } & Partial<ButtonStateProps> & Partial<import("../../../../types/defaults").ThemeProviderProps>, {}, {
13
+ ref?: import("react").Ref<ActivityIndicator> | undefined;
14
+ }>;
@@ -0,0 +1,3 @@
1
+ export { default as Button } from './Button';
2
+ export { Error, Success, Loading } from './States';
3
+ export type { ButtonProps, ButtonSizeType, ButtonStateType, ButtonStateProps, } from './Button';
@@ -0,0 +1,6 @@
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>, {}, {}>;
@@ -0,0 +1,10 @@
1
+ import { PressableSurfaceProps } from '../PressableSurface';
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;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,2 @@
1
+ export { default as Footer } from './Footer';
2
+ export type { FooterProps } from './Footer';
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,2 @@
1
+ export { default as Header } from './Header';
2
+ export type { HeaderProps } from './Header';
@@ -0,0 +1,2 @@
1
+ export { default as Card } from './Card';
2
+ export type { CardProps } from './Card';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from './Card';
3
+ export declare const StyledCard: import("@emotion/native").StyledComponent<import("../PressableSurface").PressableSurfaceProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & CardProps & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { ColorGradationType, ColorType } from '../../../types/defaults';
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;
@@ -0,0 +1,2 @@
1
+ export { default as Checkbox } from './Checkbox';
2
+ export type { CheckboxProps } from './Checkbox';
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { View } from 'react-native';
3
+ import { CheckboxProps } from './Checkbox';
4
+ export declare const IconUncheckedStyled: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & Partial<CheckboxProps & import("../../../types/defaults").ThemeProviderProps>, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ export declare const IconCheckedStyled: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & Partial<CheckboxProps & import("../../../types/defaults").ThemeProviderProps>, {}, {
14
+ ref?: import("react").Ref<View> | undefined;
15
+ }>;
16
+ export declare const IconViewStyled: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
20
+ ref?: import("react").Ref<View> | undefined;
21
+ }>;
22
+ export declare const ViewStyled: 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<View> | undefined;
27
+ }>;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ export interface DividerProps extends ViewProps {
4
+ linePosition: 'top' | 'bottom';
5
+ noLine?: boolean;
6
+ }
7
+ declare const Divider: FC<DividerProps>;
8
+ export default Divider;
@@ -0,0 +1,2 @@
1
+ export { default as Divider } from './Divider';
2
+ export type { DividerProps } from './Divider';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { DividerProps } from './Divider';
3
+ export declare const StyledDivider: 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("../../../types/defaults").ThemeProviderProps> & {
7
+ ref?: import("react").Ref<import("react-native").View> | undefined;
8
+ } & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & DividerProps, {}, {}>;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { ColorGradationType, ColorType } from '../../../types/defaults';
4
+ import { ButtonSizeType } from '../Button';
5
+ export interface GroupButtonOptions {
6
+ activeBackgroundColor?: ColorType;
7
+ activeBackgroundColorTone?: ColorGradationType;
8
+ activeBorderColor?: ColorType;
9
+ activeBorderColorTone?: ColorGradationType;
10
+ inactiveBackgroundColor?: ColorType;
11
+ inactiveBackgroundColorTone?: ColorGradationType;
12
+ inactiveBorderColor?: ColorType;
13
+ inactiveBorderColorTone?: ColorGradationType;
14
+ activeStyle?: StyleProp<ViewStyle>;
15
+ inactiveStyle?: StyleProp<ViewStyle>;
16
+ disabled?: boolean;
17
+ }
18
+ export interface GroupButtonValue<T> {
19
+ value: T;
20
+ options?: GroupButtonOptions;
21
+ }
22
+ export interface GroupButtonProps<T> {
23
+ value: T;
24
+ options: GroupButtonValue<T>[];
25
+ renderKey: (option?: T) => string | number | undefined;
26
+ renderOption: (option: T, active: boolean) => JSX.Element;
27
+ onChange: (option: T) => void;
28
+ buttonSize?: ButtonSizeType;
29
+ style?: StyleProp<ViewStyle>;
30
+ disableAllOptions?: boolean;
31
+ }
32
+ declare const GroupButton: <T>({ style, ...rest }: GroupButtonProps<T>) => JSX.Element;
33
+ export default GroupButton;
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,4 @@
1
+ export { default as GroupButton } from './GroupButton';
2
+ export type { GroupButtonProps, GroupButtonValue } from './GroupButton';
3
+ export { default as GroupButtonOption } from './GroupButtonOption';
4
+ export type { GroupButtonOptionProps } from './GroupButtonOption';
@@ -0,0 +1,38 @@
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 {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const AntDesign: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default AntDesign;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Entypo: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Entypo;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Evil: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Evil;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Feather: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Feather;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const FontAwesome: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default FontAwesome;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const FontAwesomeFive: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default FontAwesomeFive;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Fontisto: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Fontisto;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Foundation: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Foundation;
@@ -0,0 +1,15 @@
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;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Ionicon: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Ionicon;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Material: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Material;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const MaterialCommunity: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default MaterialCommunity;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Octicon: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Octicon;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const SimpleLine: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default SimpleLine;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconInternalProps } from './types';
3
+ declare const Zocial: ({ size, color, name, ...rest }: IconInternalProps) => JSX.Element;
4
+ export default Zocial;
@@ -0,0 +1,7 @@
1
+ import { ComponentType } from 'react';
2
+ import { ColorGradationType, ColorType, FontColorType, ThemeProp } from '../../../types/defaults';
3
+ import { IconInternalProps } from './types';
4
+ import { IconType } from '../../../styles/definitions';
5
+ export declare const registerCustomIconType: (id: string, customIcon: any) => void;
6
+ export declare const getIconComponent: (type: IconType) => ComponentType<IconInternalProps>;
7
+ export declare const getIconColor: (colorVariant: ColorType | undefined, colorGradation: ColorGradationType | undefined, fontColor: FontColorType, theme: ThemeProp) => string;
@@ -0,0 +1,2 @@
1
+ export { default as Icon } from './Icon';
2
+ export type { IconProps } from './Icon';
@@ -0,0 +1,7 @@
1
+ import { ComponentType } from 'react';
2
+ import { IconRNVIProps } from './types';
3
+ import { IconSizeType } from '../../../types/defaults';
4
+ export declare const getStyledIcon: (Component: ComponentType<IconRNVIProps>, size: IconSizeType) => import("@emotion/native").StyledComponent<IconRNVIProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
@@ -0,0 +1,12 @@
1
+ import { ColorValue, StyleProp, TextProps, TextStyle } from 'react-native';
2
+ import { IconSizeType } from '../../../types/defaults';
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
+ }
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,30 @@
1
+ import { FC } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { InputElementProps } from '..';
4
+ import { ColorGradationType, ColorType, FontColorType, FontStackType, FontWeightType, TypographyVariationType } from '../../../../types/defaults';
5
+ import { TextProps } from '../../Text';
6
+ export type InputVariantType = 'default' | 'error' | 'success';
7
+ export interface InputContainerProps {
8
+ label?: string;
9
+ labelColor?: FontColorType;
10
+ labelColorVariant?: ColorType;
11
+ labelColorTone?: ColorGradationType;
12
+ labelTypography?: TypographyVariationType;
13
+ labelStack?: FontStackType;
14
+ LabelComponent?: FC<TextProps>;
15
+ labelWeight?: FontWeightType;
16
+ leftComponent?: JSX.Element;
17
+ rightComponent?: JSX.Element;
18
+ borderColor?: ColorType;
19
+ borderColorGradation?: ColorGradationType;
20
+ style?: StyleProp<ViewStyle>;
21
+ inputContainerStyle?: StyleProp<ViewStyle>;
22
+ focused?: boolean;
23
+ disabled?: boolean;
24
+ variant?: InputVariantType;
25
+ hint?: string;
26
+ hintComponent?: JSX.Element;
27
+ testID?: string;
28
+ }
29
+ declare const InputContainer: FC<InputContainerProps & Partial<InputElementProps>>;
30
+ export default InputContainer;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { StyleProp, TextInput, TextInputProps, TextStyle } from 'react-native';
3
+ export interface InputElementProps extends Omit<TextInputProps, 'onChange' | 'value' | 'ref'> {
4
+ style?: StyleProp<TextStyle>;
5
+ value?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ onChange?: (value: string) => void;
9
+ onFocus?: () => void;
10
+ onBlur?: () => void;
11
+ }
12
+ declare const InputElement: React.ForwardRefExoticComponent<InputElementProps & React.RefAttributes<TextInput>>;
13
+ export default InputElement;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { StyleProp, TextInput, TextInputProps, TextStyle } from 'react-native';
3
+ import { MaskType } from '../hooks/useStringMask';
4
+ import { CurrencyOptions } from '../hooks/useNumberMask';
5
+ export interface InputMaskElementProps extends Omit<TextInputProps, 'onChange' | 'value' | 'ref'> {
6
+ style?: StyleProp<TextStyle>;
7
+ value?: string | number;
8
+ placeholder?: string;
9
+ disabled?: boolean;
10
+ onChange?: (value: any) => void;
11
+ mask?: (MaskType[] | ((value: string) => MaskType[])) | CurrencyOptions;
12
+ onFocus?: () => void;
13
+ onBlur?: () => void;
14
+ }
15
+ declare const InputMaskElement: React.ForwardRefExoticComponent<InputMaskElementProps & React.RefAttributes<TextInput>>;
16
+ export default InputMaskElement;
@@ -0,0 +1,11 @@
1
+ import { PressableStateCallbackType, StyleProp, ViewStyle } from 'react-native';
2
+ import { InputContainerProps } from '../InputContainer/InputContainer';
3
+ import { ReactNode } from 'react';
4
+ export interface PressableInputContainerProps extends Omit<InputContainerProps, 'value' | 'onChange' | 'onChangeText' | 'disabled' | 'style'> {
5
+ onPress?: () => void | never;
6
+ disabled?: boolean;
7
+ style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
8
+ children?: ReactNode;
9
+ }
10
+ declare const PressableInputContainer: ({ onPress, disabled, style, children, ...rest }: PressableInputContainerProps) => JSX.Element;
11
+ export default PressableInputContainer;
@@ -0,0 +1,2 @@
1
+ export { default as PressableInputContainer } from './PressableInputContainer';
2
+ export type { PressableInputContainerProps } from './PressableInputContainer';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledPressableSurface: import("@emotion/native").StyledComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View> & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, {}, {}>;
@@ -0,0 +1,5 @@
1
+ export declare const useInputFocus: (onFocus?: () => void, onBlur?: () => void, focusEnabled?: boolean) => {
2
+ focused: boolean;
3
+ handleBlur: () => void;
4
+ handleFocus: () => void;
5
+ };
@@ -0,0 +1,8 @@
1
+ import currency from 'currency.js';
2
+ import { MaskValue } from './useStringMask';
3
+ export type CurrencyOptions = currency.Options;
4
+ export declare const getInternalNumberAndMask: (value: string | number, options?: CurrencyOptions) => {
5
+ internalNumber: number;
6
+ mergedOptions: CurrencyOptions;
7
+ };
8
+ export declare const useNumberMask: (options?: CurrencyOptions, defaultValue?: string | number) => [MaskValue, (value: string | number) => void];
@@ -0,0 +1,8 @@
1
+ export interface MaskValue {
2
+ formatted?: string;
3
+ raw?: string | number;
4
+ }
5
+ export type MaskType = string | RegExp | Array<RegExp>;
6
+ export declare const mergeMask: (value: string | undefined, mask: MaskType[]) => MaskValue;
7
+ export declare const getMask: (mask: MaskType[] | ((value: string) => MaskType[]), newValue: string) => MaskType[];
8
+ export declare const useStringMask: (mask: MaskType[] | ((value: string) => MaskType[]), defaultValue?: string | number) => [MaskValue, (text: string | number) => void];
@@ -0,0 +1,13 @@
1
+ export { default as Hint } from './Hint';
2
+ export * from './hooks/useInputFocus';
3
+ export * from './hooks/useNumberMask';
4
+ export * from './hooks/useStringMask';
5
+ export { default as InputContainer } from './InputContainer/InputContainer';
6
+ export type { InputContainerProps, InputVariantType, } from './InputContainer/InputContainer';
7
+ export { default as InputElement } from './InputElement/InputElement';
8
+ export type { InputElementProps } from './InputElement/InputElement';
9
+ export { default as InputMaskElement } from './InputMaskElement/InputMaskElement';
10
+ export type { InputMaskElementProps } from './InputMaskElement/InputMaskElement';
11
+ export { PressableInputContainer } from './PressableInputContainer';
12
+ export type { PressableInputContainerProps } from './PressableInputContainer';
13
+ export { StyledBorderKeeper, disabledInputStyles } from './styled';