@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,58 @@
1
+ /// <reference types="react" />
2
+ import { TextInput } from 'react-native';
3
+ import { InputElementProps } from '.';
4
+ import { StyleProps } from '../../../types/defaults';
5
+ import { InputContainerProps } from './InputContainer/InputContainer';
6
+ export declare const disabledInputStyles: ({ disabled, theme, }: Partial<InputContainerProps> & Partial<StyleProps>) => false | import("@emotion/native").ReactNativeStyle | undefined;
7
+ export declare const StyledIconContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
8
+ theme?: import("@emotion/react").Theme | undefined;
9
+ as?: import("react").ElementType<any> | undefined;
10
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
11
+ ref?: import("react").Ref<import("react-native").View> | undefined;
12
+ }>;
13
+ export declare const StyledInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
+ } & Partial<InputContainerProps> & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
17
+ ref?: import("react").Ref<import("react-native").View> | undefined;
18
+ }>;
19
+ export declare const StyledInputElementBase: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
+ } & InputElementProps & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
23
+ ref?: import("react").Ref<TextInput> | undefined;
24
+ }>;
25
+ export declare const StyledLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ as?: import("react").ElementType<any> | undefined;
28
+ } & Partial<InputContainerProps> & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
29
+ ref?: import("react").Ref<import("react-native").View> | undefined;
30
+ }>;
31
+ export declare const StyledBorderKeeper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
32
+ theme?: import("@emotion/react").Theme | undefined;
33
+ as?: import("react").ElementType<any> | undefined;
34
+ } & Partial<InputContainerProps> & Partial<import("../../../types/defaults").ThemeProviderProps> & {
35
+ ref?: import("react").Ref<import("react-native").View> | undefined;
36
+ } & {
37
+ theme?: import("@emotion/react").Theme | undefined;
38
+ as?: import("react").ElementType<any> | undefined;
39
+ }, {}, {}>;
40
+ export declare const StyledInputElement: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
41
+ theme?: import("@emotion/react").Theme | undefined;
42
+ as?: import("react").ElementType<any> | undefined;
43
+ } & InputElementProps & Partial<import("../../../types/defaults").ThemeProviderProps> & {
44
+ ref?: import("react").Ref<TextInput> | undefined;
45
+ } & {
46
+ theme?: import("@emotion/react").Theme | undefined;
47
+ as?: import("react").ElementType<any> | undefined;
48
+ }, {}, {}>;
49
+ export declare const StyledHintContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
50
+ theme?: import("@emotion/react").Theme | undefined;
51
+ as?: import("react").ElementType<any> | undefined;
52
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
53
+ ref?: import("react").Ref<import("react-native").View> | undefined;
54
+ }>;
55
+ export declare const StyledHintIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
56
+ theme?: import("@emotion/react").Theme | undefined;
57
+ as?: import("react").ElementType<any> | undefined;
58
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ export interface PaperProps {
4
+ elevated?: boolean;
5
+ style?: StyleProp<ViewStyle>;
6
+ children?: ReactNode;
7
+ }
8
+ declare const Paper: ({ children, elevated, ...rest }: PaperProps) => JSX.Element;
9
+ export default Paper;
@@ -0,0 +1,2 @@
1
+ export { default as Paper } from './Paper';
2
+ export type { PaperProps } from './Paper';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Animated } from 'react-native';
3
+ import { PaperProps } from './Paper';
4
+ export declare const StyledPaper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & PaperProps & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ import { PressableProps, StyleProp, ViewStyle } from 'react-native';
3
+ export interface PressableSurfaceProps extends PressableProps {
4
+ effect?: 'darken' | 'lighten' | 'none';
5
+ surfaceColor?: string;
6
+ effectIntensity?: number;
7
+ effectStyle?: (pressed: boolean) => StyleProp<ViewStyle>;
8
+ children?: ReactNode;
9
+ }
10
+ declare const PressableSurface: ({ children, surfaceColor, effect, effectIntensity, effectStyle, style, ...rest }: PressableSurfaceProps) => JSX.Element;
11
+ export default PressableSurface;
@@ -0,0 +1,2 @@
1
+ export { default as PressableSurface } from './PressableSurface';
2
+ export type { PressableSurfaceProps } from './PressableSurface';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ViewProps } from 'react-native';
3
+ import { ColorGradationType, ColorType } from '../../../types/defaults';
4
+ export interface ProgressBarProps extends ViewProps {
5
+ segments?: number;
6
+ valueMin?: number;
7
+ valueMax?: number;
8
+ valueNow: number | string;
9
+ color?: ColorType;
10
+ colorTone?: ColorGradationType;
11
+ }
12
+ declare const ProgressBar: ({ segments: _segments, valueMin, valueNow: _valueNow, valueMax, color, colorTone, ...rest }: ProgressBarProps) => JSX.Element;
13
+ export default ProgressBar;
@@ -0,0 +1,2 @@
1
+ export { default as ProgressBar } from './ProgressBar';
2
+ export type { ProgressBarProps } from './ProgressBar';
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
6
+ ref?: import("react").Ref<import("react-native").View> | undefined;
7
+ }>;
8
+ export declare const Segment: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
12
+ ref?: import("react").Ref<import("react-native").View> | undefined;
13
+ }>;
14
+ export declare const Progress: 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<import("react-native").View> | undefined;
19
+ }>;
@@ -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 RadioButtonProps {
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 RadioButton: ({ children, onChange, checked, labelPosition, disabled, color, colorTone, ...rest }: RadioButtonProps) => JSX.Element;
15
+ export default RadioButton;
@@ -0,0 +1,2 @@
1
+ export { default as RadioButton } from './RadioButton';
2
+ export type { RadioButtonProps } from './RadioButton';
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { View } from 'react-native';
3
+ import { RadioButtonProps } from './RadioButton';
4
+ export declare const IconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & Partial<RadioButtonProps & import("../../../types/defaults").ThemeProviderProps>, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ export declare const ScaledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ }, {}, {
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,16 @@
1
+ import { FC } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { ColorGradationType, ColorType } from '../../../types/defaults';
4
+ export interface SwitchProps {
5
+ onChange: (active: boolean) => void;
6
+ active: boolean;
7
+ activeColor?: ColorType;
8
+ activeColorTone?: ColorGradationType;
9
+ inactiveColor?: ColorType;
10
+ inactiveColorTone?: ColorGradationType;
11
+ style?: StyleProp<ViewStyle>;
12
+ dotStyle?: StyleProp<ViewStyle>;
13
+ disabled?: boolean;
14
+ }
15
+ declare const Switch: FC<SwitchProps>;
16
+ export default Switch;
@@ -0,0 +1,2 @@
1
+ import { Animated } from 'react-native';
2
+ export declare const transitionSwitch: (active: boolean, translate: number, transitionValue: Animated.Value, animatedColor: Animated.Value) => void;
@@ -0,0 +1,3 @@
1
+ export { default as Switch } from './Switch';
2
+ export type { SwitchProps } from './Switch';
3
+ export { SWITCH_BODY_WIDTH, SWITCH_PIN_WIDTH } from './styled';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Animated } from 'react-native';
3
+ export declare const SWITCH_BODY_WIDTH = "40px";
4
+ export declare const SWITCH_PIN_WIDTH = "16px";
5
+ export declare const StyledSwitchContent: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
9
+ export declare const StyledSwitch: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { IconProps } from '../Icon';
4
+ import { ColorGradationType, ColorType } from '../../../types/defaults';
5
+ export interface TagProps extends ViewProps {
6
+ value: React.ReactNode;
7
+ icon?: IconProps;
8
+ dismiss?: boolean;
9
+ onDismiss?: () => void;
10
+ variant?: 'small' | 'default';
11
+ backgroundColorTone?: ColorType;
12
+ backgroundColorVariant?: ColorGradationType;
13
+ }
14
+ declare const Tag: React.FC<TagProps>;
15
+ export default Tag;
@@ -0,0 +1,2 @@
1
+ export { default as Tag } from './Tag';
2
+ export type { TagProps } from './Tag';
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { Animated, ViewProps } from 'react-native';
3
+ import { ColorGradationType, ColorType } from '../../../types/defaults';
4
+ import { IconProps } from '../Icon';
5
+ import { TagProps } from './Tag';
6
+ export declare const StyledTagContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<import("react-native").View>> & {
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ } & Partial<TagProps> & Partial<import("../../../types/defaults").ThemeProviderProps> & ViewProps & {
10
+ visible: boolean;
11
+ } & {
12
+ backgroundColorTone: ColorType;
13
+ backgroundColorVariant: ColorGradationType;
14
+ }, {}, {}>;
15
+ export declare const StyledLeftIcon: import("@emotion/native").StyledComponent<IconProps & {
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
19
+ export declare const StyledCloseIcon: import("@emotion/native").StyledComponent<IconProps & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
@@ -0,0 +1,20 @@
1
+ import React, { FC } from 'react';
2
+ import { ColorGradationType, ColorType, FontColorType, FontStackType, FontWeightType, TypographyVariationType } from '../../../types/defaults';
3
+ import { StyleProp, TextStyle } from 'react-native';
4
+ export interface TextProps {
5
+ fontColor?: FontColorType;
6
+ fontWeight?: FontWeightType;
7
+ typography?: TypographyVariationType;
8
+ fontStack?: FontStackType;
9
+ colorVariant?: ColorType;
10
+ colorTone?: ColorGradationType;
11
+ numberOfLines?: number;
12
+ ellipsizeMode?: 'head' | 'middle' | 'tail' | 'clip';
13
+ textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
14
+ capitalFirst?: boolean;
15
+ style?: StyleProp<TextStyle>;
16
+ children?: React.ReactNode;
17
+ testID?: string;
18
+ }
19
+ declare const Text: FC<TextProps>;
20
+ export default Text;
@@ -0,0 +1,2 @@
1
+ export declare const getFirstCapitalCharacter: (value: string) => string;
2
+ export declare const getLabel: (children: any, capitalFirst: boolean) => any;
@@ -0,0 +1,2 @@
1
+ export { default as Text } from './Text';
2
+ export type { TextProps } from './Text';
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { TextProps } from './Text';
3
+ import { Text as RNText } from 'react-native';
4
+ export declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & TextProps & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
8
+ ref?: import("react").Ref<RNText> | undefined;
9
+ }>;
10
+ export declare const StyledColoredText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & TextProps & Partial<import("../../../types/defaults").ThemeProviderProps> & {
14
+ ref?: import("react").Ref<RNText> | undefined;
15
+ } & {
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ }, {}, {}>;
@@ -0,0 +1,5 @@
1
+ import { StyleProps } from '../../../types/defaults';
2
+ export declare const baseStyles: ({ theme }: StyleProps) => any;
3
+ export declare const elevatedStyles: ({ theme, elevated, }: {
4
+ elevated?: boolean;
5
+ } & StyleProps) => any;
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { TextProps } from '../../atoms/Text';
4
+ import { SelectYearProps } from './components';
5
+ export type SelectionType = 'range' | 'day';
6
+ export type DateRange = {
7
+ lowest: Date;
8
+ highest?: Date;
9
+ };
10
+ export type Value<T extends SelectionType> = T extends 'range' ? DateRange : Date;
11
+ export interface CalendarProps<T extends SelectionType> extends ViewProps {
12
+ TextComponent?: React.FC<TextProps>;
13
+ year?: number;
14
+ month?: number;
15
+ onChange?: (value?: Value<T>) => void | never;
16
+ type?: T;
17
+ value?: Value<T>;
18
+ locale?: Locale;
19
+ selectYearProps?: Omit<SelectYearProps, 'TextComponent' | 'currentYear' | 'onSelectYear'>;
20
+ }
21
+ declare function Calendar<T extends SelectionType>({ TextComponent, year: _year, month: _month, value, type, onChange, locale, selectYearProps, ...rest }: CalendarProps<T>): JSX.Element;
22
+ export default Calendar;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { TextProps } from '../../../atoms/Text';
3
+ interface MemoizedYearCardProps {
4
+ year: number;
5
+ isSelected: boolean;
6
+ onPress: () => void;
7
+ TextComponent: React.FC<TextProps>;
8
+ }
9
+ declare const MemoizedYearCard: React.MemoExoticComponent<({ year, isSelected, onPress, TextComponent, }: MemoizedYearCardProps) => JSX.Element>;
10
+ export default MemoizedYearCard;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { SelectionType, Value } from '../Calendar';
3
+ import { TextProps } from '../../../atoms/Text';
4
+ interface IMonthWeek<T extends SelectionType> {
5
+ TextComponent: React.FC<TextProps>;
6
+ onChange?: (value?: any) => void | never;
7
+ type?: T;
8
+ value?: Value<T>;
9
+ week: Date[];
10
+ referenceDate: Date;
11
+ }
12
+ declare const _default: React.MemoExoticComponent<(<T extends SelectionType>({ week, referenceDate, type, value, TextComponent, onChange, }: IMonthWeek<T>) => JSX.Element)>;
13
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { TextProps } from '../../../atoms/Text';
3
+ export interface SelectYearProps {
4
+ currentYear: number;
5
+ onSelectYear: (year: number) => void;
6
+ TextComponent?: React.FC<TextProps>;
7
+ yearsToShow?: number;
8
+ firstYear?: number;
9
+ numColumns?: number;
10
+ }
11
+ declare const _default: React.MemoExoticComponent<({ currentYear, onSelectYear, TextComponent, yearsToShow, firstYear, numColumns, }: SelectYearProps) => JSX.Element>;
12
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface IWeekdays {
3
+ calendar: Date[][];
4
+ locale?: Locale;
5
+ Capitalized: React.ElementType;
6
+ }
7
+ declare const _default: React.MemoExoticComponent<({ calendar, locale, Capitalized }: IWeekdays) => JSX.Element>;
8
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export { default as Weekdays } from './Weekdays';
2
+ export { default as MonthWeek } from './MonthWeek';
3
+ export { default as SelectYear } from './SelectYear';
4
+ export type { SelectYearProps } from './SelectYear';
@@ -0,0 +1,2 @@
1
+ export { default as Calendar } from './Calendar';
2
+ export type { CalendarProps, SelectionType, DateRange, Value, } from './Calendar';
@@ -0,0 +1,63 @@
1
+ import { FC } from 'react';
2
+ import { PressableProps, ViewProps } from 'react-native';
3
+ import { TextProps } from '../../atoms/Text';
4
+ interface ButtonBorders {
5
+ isLeft?: boolean;
6
+ isRight?: boolean;
7
+ }
8
+ export declare const TitleContainer: import("@emotion/native").StyledComponent<ViewProps & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
12
+ ref?: import("react").Ref<import("react-native").View> | undefined;
13
+ }>;
14
+ export declare const Control: import("@emotion/native").StyledComponent<import("../../atoms/PressableSurface").PressableSurfaceProps & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ } & Partial<import("../../../types/defaults").ThemeProviderProps> & ButtonBorders & {
18
+ align: 'start' | 'end';
19
+ }, {}, {}>;
20
+ export declare const getCapitalizedTextComponent: (component: FC<TextProps>) => import("@emotion/native").StyledComponent<TextProps & {
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any> | undefined;
23
+ }, {}, {}>;
24
+ export declare const Content: import("@emotion/native").StyledComponent<ViewProps & {
25
+ theme?: import("@emotion/react").Theme | undefined;
26
+ as?: import("react").ElementType<any> | undefined;
27
+ } & Partial<import("../../../types/defaults").ThemeProviderProps> & {
28
+ height?: number | undefined;
29
+ }, {}, {
30
+ ref?: import("react").Ref<import("react-native").View> | undefined;
31
+ }>;
32
+ export declare const Week: import("@emotion/native").StyledComponent<ViewProps & {
33
+ theme?: import("@emotion/react").Theme | undefined;
34
+ as?: import("react").ElementType<any> | undefined;
35
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
36
+ ref?: import("react").Ref<import("react-native").View> | undefined;
37
+ }>;
38
+ export declare const Selected: import("@emotion/native").StyledComponent<ViewProps & {
39
+ theme?: import("@emotion/react").Theme | undefined;
40
+ as?: import("react").ElementType<any> | undefined;
41
+ } & Partial<import("../../../types/defaults").ThemeProviderProps> & {
42
+ selected: boolean;
43
+ }, {}, {
44
+ ref?: import("react").Ref<import("react-native").View> | undefined;
45
+ }>;
46
+ export declare const Cell: import("@emotion/native").StyledComponent<import("../../atoms/PressableSurface").PressableSurfaceProps & {
47
+ theme?: import("@emotion/react").Theme | undefined;
48
+ as?: import("react").ElementType<any> | undefined;
49
+ } & PressableProps & Partial<import("../../../types/defaults").ThemeProviderProps> & {
50
+ selected: boolean;
51
+ highlighted: boolean;
52
+ isLineEnd: boolean;
53
+ isLineStart: boolean;
54
+ isRangeStart: boolean;
55
+ isRangeEnd: boolean;
56
+ }, {}, {}>;
57
+ export declare const YearCard: import("@emotion/native").StyledComponent<import("../../atoms/PressableSurface").PressableSurfaceProps & {
58
+ theme?: import("@emotion/react").Theme | undefined;
59
+ as?: import("react").ElementType<any> | undefined;
60
+ } & Partial<import("../../../types/defaults").ThemeProviderProps> & ButtonBorders & {
61
+ isSelected?: boolean | undefined;
62
+ }, {}, {}>;
63
+ export {};
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import { DateTimeSelectorProps } from '../DateTimeSelector';
3
+ import { Dispatch, SetStateAction } from 'react';
4
+ export interface ControlledDateTimeSelectorProps extends DateTimeSelectorProps {
5
+ SelectorComponent: React.FC<ControlledSelectorComponentProps>;
6
+ }
7
+ export interface ControlledSelectorComponentProps {
8
+ date: Date;
9
+ setDate: Dispatch<SetStateAction<Date>>;
10
+ currentMode: number;
11
+ isDate: boolean;
12
+ isMonth: boolean;
13
+ handlePressConfirm: () => void;
14
+ handlePressBack: () => void;
15
+ handleCalendarChange: (value?: Date) => void;
16
+ modalTitle?: string;
17
+ confirmButtonText?: string;
18
+ }
19
+ declare const ControlledDateTimeSelector: React.FC<ControlledDateTimeSelectorProps>;
20
+ export default ControlledDateTimeSelector;
@@ -0,0 +1,2 @@
1
+ export { default as ControlledDateTimeSelector } from './ControlledDateTimeSelector';
2
+ export type { ControlledDateTimeSelectorProps, ControlledSelectorComponentProps, } from './ControlledDateTimeSelector';
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { InputContainerProps } from '../../atoms/Input';
3
+ import { TextProps } from '../../atoms/Text';
4
+ import { CalendarProps, SelectionType } from '../Calendar';
5
+ export interface DatePickerProps<T extends SelectionType> extends InputContainerProps, Omit<CalendarProps<T>, 'style'> {
6
+ controlComponent?: (onPress: () => void, displayValue?: string) => JSX.Element;
7
+ TextComponent?: React.FC<TextProps>;
8
+ CalendarComponent: React.FC<CalendarProps<T>>;
9
+ placeholder?: string;
10
+ onFocus?: () => void | never;
11
+ onBlur?: () => void | never;
12
+ format?: string;
13
+ closeOnPick?: boolean;
14
+ renderCalendar: (calendar: React.ReactElement, blur?: () => void) => JSX.Element | null;
15
+ requestShowCalendar: () => void;
16
+ requestCloseCalendar: () => void;
17
+ }
18
+ declare function DatePicker<T extends SelectionType>({ month, year, onChange, value, type, format, placeholder, onFocus, onBlur, disabled, controlComponent, hintComponent, hint, variant, TextComponent, CalendarComponent, rightComponent, style, locale, closeOnPick, renderCalendar, requestShowCalendar, requestCloseCalendar, ...rest }: DatePickerProps<T>): JSX.Element;
19
+ export default DatePicker;
@@ -0,0 +1,3 @@
1
+ export { default as DatePicker } from './DatePicker';
2
+ export { CalendarIcon } from './styled';
3
+ export type { DatePickerProps } from './DatePicker';
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { InputContainerProps } from '../../atoms/Input';
3
+ import { TextProps } from '../../atoms/Text';
4
+ export declare const getStyledTextComponent: (component: FC<TextProps>) => import("@emotion/native").StyledComponent<TextProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & Partial<InputContainerProps> & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
8
+ export declare const CalendarIcon: import("@emotion/native").StyledComponent<import("../../atoms/Icon").IconProps & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { InputContainerProps } from '../../atoms/Input';
3
+ import { TextProps } from '../../atoms/Text';
4
+ import { DateTimeSelectorProps } from '../DateTimeSelector';
5
+ export interface DateTimePickerProps extends InputContainerProps, Omit<DateTimeSelectorProps, 'style'> {
6
+ controlComponent?: (onPress: () => void, displayValue?: string) => JSX.Element;
7
+ TextComponent?: React.FC<TextProps>;
8
+ DateTimeSelectorComponent: React.FC<DateTimeSelectorProps>;
9
+ placeholder?: string;
10
+ onFocus?: () => void | never;
11
+ onBlur?: () => void | never;
12
+ renderSelector: (selector: React.ReactElement, blur?: () => void) => JSX.Element | null;
13
+ requestShowSelector: () => void;
14
+ requestCloseSelector: () => void;
15
+ }
16
+ declare const DateTimePicker: React.FC<DateTimePickerProps>;
17
+ export default DateTimePicker;
@@ -0,0 +1,2 @@
1
+ export { default as DateTimePicker } from './DateTimePicker';
2
+ export type { DateTimePickerProps } from './DateTimePicker';
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { DateTimeSelectorProps } from '../DateTimeSelector';
3
+ export declare const getStyledDateTimeSelector: (component: FC<DateTimeSelectorProps>) => import("@emotion/native").StyledComponent<DateTimeSelectorProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { TextProps } from '../../atoms/Text';
4
+ export type DateTimeSelectorMode = 'date' | 'time' | 'datetime' | 'month';
5
+ export interface DateTimeSelectorProps extends ViewProps {
6
+ TextComponent?: React.FC<TextProps>;
7
+ value?: Date;
8
+ onChange?: (value: Date) => void | never;
9
+ mode?: DateTimeSelectorMode;
10
+ format?: string;
11
+ locale?: Locale;
12
+ upperDateThreshold?: Date;
13
+ lowerDateThreshold?: Date;
14
+ offsetThreshold?: number;
15
+ upperOffsetThreshold?: number;
16
+ lowerOffsetThreshold?: number;
17
+ dateModalTitle?: string;
18
+ timeModalTitle?: string;
19
+ dateConfirmButtonText?: string;
20
+ timeConfirmButtonText?: string;
21
+ dayLabel?: string;
22
+ monthLabel?: string;
23
+ yearLabel?: string;
24
+ hourLabel?: string;
25
+ minuteLabel?: string;
26
+ }
27
+ declare const DateTimeSelector: React.FC<DateTimeSelectorProps>;
28
+ export default DateTimeSelector;
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { TextProps } from '../../atoms/Text';
4
+ export type Granularity = 'date' | 'month' | 'year' | 'hours' | 'minutes';
5
+ interface SelectorProps extends ViewProps {
6
+ TextComponent: React.FC<TextProps>;
7
+ granularity: Granularity;
8
+ referenceDate: Date;
9
+ label: string;
10
+ value: number;
11
+ getDisplayValue: (value: number) => string;
12
+ onChange: (value: number) => void | never;
13
+ preventUpper?: boolean;
14
+ preventLower?: boolean;
15
+ }
16
+ export declare const Selector: React.FC<SelectorProps>;
17
+ export {};