@tecsinapse/react-core 3.3.7 → 3.4.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 (147) hide show
  1. package/dist/types/components/atoms/Avatar/Avatar.d.ts +4 -0
  2. package/dist/types/components/atoms/Avatar/helpers.d.ts +1 -0
  3. package/dist/types/components/atoms/Avatar/index.d.ts +2 -0
  4. package/dist/types/components/atoms/Avatar/styled.d.ts +24 -0
  5. package/dist/types/components/atoms/Avatar/types.d.ts +12 -0
  6. package/dist/types/components/atoms/Badge/Badge.d.ts +12 -0
  7. package/dist/types/components/atoms/Badge/index.d.ts +2 -0
  8. package/dist/types/components/atoms/Badge/styled.d.ts +15 -0
  9. package/dist/types/components/atoms/BoxContent/BoxContent.d.ts +7 -0
  10. package/dist/types/components/atoms/BoxContent/index.d.ts +2 -0
  11. package/dist/types/components/atoms/BoxContent/styled.d.ts +22 -0
  12. package/dist/types/components/atoms/Button/Button.d.ts +28 -0
  13. package/dist/types/components/atoms/Button/States/BaseState.d.ts +7 -0
  14. package/dist/types/components/atoms/Button/States/Error.d.ts +4 -0
  15. package/dist/types/components/atoms/Button/States/Loading.d.ts +4 -0
  16. package/dist/types/components/atoms/Button/States/Success.d.ts +4 -0
  17. package/dist/types/components/atoms/Button/States/index.d.ts +3 -0
  18. package/dist/types/components/atoms/Button/States/styled.d.ts +14 -0
  19. package/dist/types/components/atoms/Button/index.d.ts +3 -0
  20. package/dist/types/components/atoms/Button/styled.d.ts +6 -0
  21. package/dist/types/components/atoms/Card/Card.d.ts +10 -0
  22. package/dist/types/components/atoms/Card/Footer/Footer.d.ts +8 -0
  23. package/dist/types/components/atoms/Card/Footer/index.d.ts +2 -0
  24. package/dist/types/components/atoms/Card/Header/Header.d.ts +8 -0
  25. package/dist/types/components/atoms/Card/Header/index.d.ts +2 -0
  26. package/dist/types/components/atoms/Card/index.d.ts +2 -0
  27. package/dist/types/components/atoms/Card/styled.d.ts +6 -0
  28. package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +15 -0
  29. package/dist/types/components/atoms/Checkbox/index.d.ts +2 -0
  30. package/dist/types/components/atoms/Checkbox/styled.d.ts +27 -0
  31. package/dist/types/components/atoms/Divider/Divider.d.ts +8 -0
  32. package/dist/types/components/atoms/Divider/index.d.ts +2 -0
  33. package/dist/types/components/atoms/Divider/styled.d.ts +11 -0
  34. package/dist/types/components/atoms/GroupButton/GroupButton.d.ts +33 -0
  35. package/dist/types/components/atoms/GroupButton/GroupButtonOption.d.ts +9 -0
  36. package/dist/types/components/atoms/GroupButton/index.d.ts +4 -0
  37. package/dist/types/components/atoms/GroupButton/styled.d.ts +38 -0
  38. package/dist/types/components/atoms/Icon/AntDesign.d.ts +4 -0
  39. package/dist/types/components/atoms/Icon/Entypo.d.ts +4 -0
  40. package/dist/types/components/atoms/Icon/Evil.d.ts +4 -0
  41. package/dist/types/components/atoms/Icon/Feather.d.ts +4 -0
  42. package/dist/types/components/atoms/Icon/FontAwesome.d.ts +4 -0
  43. package/dist/types/components/atoms/Icon/FontAwesomeFive.d.ts +4 -0
  44. package/dist/types/components/atoms/Icon/Fontisto.d.ts +4 -0
  45. package/dist/types/components/atoms/Icon/Foundation.d.ts +4 -0
  46. package/dist/types/components/atoms/Icon/Icon.d.ts +15 -0
  47. package/dist/types/components/atoms/Icon/Ionicon.d.ts +4 -0
  48. package/dist/types/components/atoms/Icon/Material.d.ts +4 -0
  49. package/dist/types/components/atoms/Icon/MaterialCommunity.d.ts +4 -0
  50. package/dist/types/components/atoms/Icon/Octicon.d.ts +4 -0
  51. package/dist/types/components/atoms/Icon/SimpleLine.d.ts +4 -0
  52. package/dist/types/components/atoms/Icon/Zocial.d.ts +4 -0
  53. package/dist/types/components/atoms/Icon/functions.d.ts +7 -0
  54. package/dist/types/components/atoms/Icon/index.d.ts +2 -0
  55. package/dist/types/components/atoms/Icon/styled.d.ts +7 -0
  56. package/dist/types/components/atoms/Icon/types.d.ts +12 -0
  57. package/dist/types/components/atoms/Input/Hint.d.ts +10 -0
  58. package/dist/types/components/atoms/Input/InputContainer/InputContainer.d.ts +30 -0
  59. package/dist/types/components/atoms/Input/InputElement/InputElement.d.ts +13 -0
  60. package/dist/types/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +16 -0
  61. package/dist/types/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +11 -0
  62. package/dist/types/components/atoms/Input/PressableInputContainer/index.d.ts +2 -0
  63. package/dist/types/components/atoms/Input/PressableInputContainer/styled.d.ts +5 -0
  64. package/dist/types/components/atoms/Input/hooks/useInputFocus.d.ts +5 -0
  65. package/dist/types/components/atoms/Input/hooks/useNumberMask.d.ts +8 -0
  66. package/dist/types/components/atoms/Input/hooks/useStringMask.d.ts +8 -0
  67. package/dist/types/components/atoms/Input/index.d.ts +13 -0
  68. package/dist/types/components/atoms/Input/styled.d.ts +58 -0
  69. package/dist/types/components/atoms/Paper/Paper.d.ts +9 -0
  70. package/dist/types/components/atoms/Paper/index.d.ts +2 -0
  71. package/dist/types/components/atoms/Paper/styled.d.ts +7 -0
  72. package/dist/types/components/atoms/PressableSurface/PressableSurface.d.ts +11 -0
  73. package/dist/types/components/atoms/PressableSurface/index.d.ts +2 -0
  74. package/dist/types/components/atoms/ProgressBar/ProgressBar.d.ts +13 -0
  75. package/dist/types/components/atoms/ProgressBar/index.d.ts +2 -0
  76. package/dist/types/components/atoms/ProgressBar/styled.d.ts +19 -0
  77. package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +15 -0
  78. package/dist/types/components/atoms/RadioButton/index.d.ts +2 -0
  79. package/dist/types/components/atoms/RadioButton/styled.d.ts +27 -0
  80. package/dist/types/components/atoms/Switch/Switch.d.ts +16 -0
  81. package/dist/types/components/atoms/Switch/animation.d.ts +2 -0
  82. package/dist/types/components/atoms/Switch/index.d.ts +3 -0
  83. package/dist/types/components/atoms/Switch/styled.d.ts +12 -0
  84. package/dist/types/components/atoms/Tag/Tag.d.ts +15 -0
  85. package/dist/types/components/atoms/Tag/index.d.ts +2 -0
  86. package/dist/types/components/atoms/Tag/styled.d.ts +22 -0
  87. package/dist/types/components/atoms/Text/Text.d.ts +20 -0
  88. package/dist/types/components/atoms/Text/functions.d.ts +2 -0
  89. package/dist/types/components/atoms/Text/index.d.ts +2 -0
  90. package/dist/types/components/atoms/Text/styled.d.ts +18 -0
  91. package/dist/types/components/atoms/shared/PaperAndCard.d.ts +5 -0
  92. package/dist/types/components/molecules/Calendar/Calendar.d.ts +22 -0
  93. package/dist/types/components/molecules/Calendar/components/MemoizedYearCard.d.ts +10 -0
  94. package/dist/types/components/molecules/Calendar/components/MonthWeek.d.ts +13 -0
  95. package/dist/types/components/molecules/Calendar/components/SelectYear.d.ts +12 -0
  96. package/dist/types/components/molecules/Calendar/components/Weekdays.d.ts +8 -0
  97. package/dist/types/components/molecules/Calendar/components/index.d.ts +4 -0
  98. package/dist/types/components/molecules/Calendar/index.d.ts +2 -0
  99. package/dist/types/components/molecules/Calendar/styled.d.ts +63 -0
  100. package/dist/types/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.d.ts +20 -0
  101. package/dist/types/components/molecules/ControlledDateTimeSelector/index.d.ts +2 -0
  102. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +19 -0
  103. package/dist/types/components/molecules/DatePicker/index.d.ts +3 -0
  104. package/dist/types/components/molecules/DatePicker/styled.d.ts +11 -0
  105. package/dist/types/components/molecules/DateTimePicker/DateTimePicker.d.ts +17 -0
  106. package/dist/types/components/molecules/DateTimePicker/index.d.ts +2 -0
  107. package/dist/types/components/molecules/DateTimePicker/styled.d.ts +6 -0
  108. package/dist/types/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +28 -0
  109. package/dist/types/components/molecules/DateTimeSelector/Selector.d.ts +17 -0
  110. package/dist/types/components/molecules/DateTimeSelector/index.d.ts +2 -0
  111. package/dist/types/components/molecules/DateTimeSelector/styled.d.ts +48 -0
  112. package/dist/types/components/molecules/Grid/functions.d.ts +4 -0
  113. package/dist/types/components/molecules/Grid/index.d.ts +42 -0
  114. package/dist/types/components/molecules/HintInputContainer/HintInputContainer.d.ts +17 -0
  115. package/dist/types/components/molecules/HintInputContainer/index.d.ts +2 -0
  116. package/dist/types/components/molecules/HintInputContainer/styled.d.ts +0 -0
  117. package/dist/types/components/molecules/IconTextButton/IconComponent.d.ts +11 -0
  118. package/dist/types/components/molecules/IconTextButton/IconTextButton.d.ts +10 -0
  119. package/dist/types/components/molecules/IconTextButton/index.d.ts +2 -0
  120. package/dist/types/components/molecules/InputPassword/InputPasswordIcon.d.ts +8 -0
  121. package/dist/types/components/molecules/InputPassword/index.d.ts +1 -0
  122. package/dist/types/components/molecules/InputPassword/styled.d.ts +5 -0
  123. package/dist/types/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +11 -0
  124. package/dist/types/components/molecules/LabeledSwitch/index.d.ts +1 -0
  125. package/dist/types/components/molecules/Snackbar/Snackbar.d.ts +21 -0
  126. package/dist/types/components/molecules/Snackbar/index.d.ts +2 -0
  127. package/dist/types/components/molecules/Snackbar/styled.d.ts +37 -0
  128. package/dist/types/components/molecules/TextArea/TextArea.d.ts +14 -0
  129. package/dist/types/components/molecules/TextArea/index.d.ts +3 -0
  130. package/dist/types/components/molecules/TextArea/styled.d.ts +10 -0
  131. package/dist/types/hooks/index.d.ts +2 -0
  132. package/dist/types/hooks/useDebouncedState.d.ts +2 -0
  133. package/dist/types/hooks/useTheme.d.ts +2 -0
  134. package/dist/types/index.d.ts +66 -0
  135. package/dist/types/styles/ThemeProvider.d.ts +4 -0
  136. package/dist/types/styles/definitions.d.ts +45 -0
  137. package/dist/types/styles/light.d.ts +2 -0
  138. package/dist/types/types/defaults.d.ts +134 -0
  139. package/dist/types/utils/IPhoneXHelper.d.ts +4 -0
  140. package/dist/types/utils/ResponsiveFontSize.d.ts +3 -0
  141. package/dist/types/utils/extractNumbersFromString.d.ts +2 -0
  142. package/dist/types/utils/formatWithMask.d.ts +3 -0
  143. package/dist/types/utils/index.d.ts +7 -0
  144. package/dist/types/utils/lightenDarkenColor.d.ts +1 -0
  145. package/dist/types/utils/masks.d.ts +12 -0
  146. package/dist/types/utils/variantComplement.d.ts +6 -0
  147. package/package.json +6 -6
@@ -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';
@@ -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 | undefined;
5
+ } & import("../../../types/defaults").ThemeProviderProps) => 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';