@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.
- package/LICENSE.md +1 -1
- package/README.md +9 -7
- package/dist/cjs/components/atoms/Input/InputContainer/InputContainer.js +2 -4
- package/dist/cjs/components/atoms/Input/InputMaskElement/InputMaskElement.js +1 -2
- package/dist/cjs/components/atoms/Input/hooks/useNumberMask.js +1 -2
- package/dist/cjs/components/atoms/Input/hooks/useStringMask.js +5 -10
- package/dist/cjs/components/atoms/Switch/animation.js +1 -2
- package/dist/cjs/components/molecules/Calendar/Calendar.js +1 -2
- package/dist/cjs/components/molecules/Calendar/components/MonthWeek.js +3 -6
- package/dist/cjs/components/molecules/DatePicker/DatePicker.js +2 -4
- package/dist/cjs/components/molecules/DateTimeSelector/DateTimeSelector.js +1 -2
- package/dist/cjs/components/molecules/Grid/functions.js +2 -4
- package/dist/cjs/hooks/useDebouncedState.js +1 -2
- package/dist/cjs/styles/definitions.js +1 -2
- package/dist/cjs/utils/ResponsiveFontSize.js +2 -4
- package/dist/cjs/utils/lightenDarkenColor.js +6 -12
- package/dist/esm/components/atoms/Input/InputContainer/InputContainer.js +2 -4
- package/dist/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +1 -2
- package/dist/esm/components/atoms/Input/hooks/useNumberMask.js +1 -2
- package/dist/esm/components/atoms/Input/hooks/useStringMask.js +5 -10
- package/dist/esm/components/atoms/Switch/animation.js +1 -2
- package/dist/esm/components/molecules/Calendar/Calendar.js +1 -2
- package/dist/esm/components/molecules/Calendar/components/MonthWeek.js +3 -6
- package/dist/esm/components/molecules/DatePicker/DatePicker.js +2 -4
- package/dist/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +1 -2
- package/dist/esm/components/molecules/Grid/functions.js +2 -4
- package/dist/esm/hooks/useDebouncedState.js +1 -2
- package/dist/esm/styles/definitions.js +1 -2
- package/dist/esm/utils/ResponsiveFontSize.js +2 -4
- package/dist/esm/utils/lightenDarkenColor.js +6 -12
- package/dist/types/components/atoms/Avatar/Avatar.d.ts +4 -0
- package/dist/types/components/atoms/Avatar/helpers.d.ts +1 -0
- package/dist/types/components/atoms/Avatar/index.d.ts +2 -0
- package/dist/types/components/atoms/Avatar/styled.d.ts +24 -0
- package/dist/types/components/atoms/Avatar/types.d.ts +12 -0
- package/dist/types/components/atoms/Badge/Badge.d.ts +12 -0
- package/dist/types/components/atoms/Badge/index.d.ts +2 -0
- package/dist/types/components/atoms/Badge/styled.d.ts +15 -0
- package/dist/types/components/atoms/BoxContent/BoxContent.d.ts +7 -0
- package/dist/types/components/atoms/BoxContent/index.d.ts +2 -0
- package/dist/types/components/atoms/BoxContent/styled.d.ts +22 -0
- package/dist/types/components/atoms/Button/Button.d.ts +28 -0
- package/dist/types/components/atoms/Button/States/BaseState.d.ts +7 -0
- package/dist/types/components/atoms/Button/States/Error.d.ts +4 -0
- package/dist/types/components/atoms/Button/States/Loading.d.ts +4 -0
- package/dist/types/components/atoms/Button/States/Success.d.ts +4 -0
- package/dist/types/components/atoms/Button/States/index.d.ts +3 -0
- package/dist/types/components/atoms/Button/States/styled.d.ts +14 -0
- package/dist/types/components/atoms/Button/index.d.ts +3 -0
- package/dist/types/components/atoms/Button/styled.d.ts +6 -0
- package/dist/types/components/atoms/Card/Card.d.ts +10 -0
- package/dist/types/components/atoms/Card/Footer/Footer.d.ts +8 -0
- package/dist/types/components/atoms/Card/Footer/index.d.ts +2 -0
- package/dist/types/components/atoms/Card/Header/Header.d.ts +8 -0
- package/dist/types/components/atoms/Card/Header/index.d.ts +2 -0
- package/dist/types/components/atoms/Card/index.d.ts +2 -0
- package/dist/types/components/atoms/Card/styled.d.ts +6 -0
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +15 -0
- package/dist/types/components/atoms/Checkbox/index.d.ts +2 -0
- package/dist/types/components/atoms/Checkbox/styled.d.ts +27 -0
- package/dist/types/components/atoms/Divider/Divider.d.ts +8 -0
- package/dist/types/components/atoms/Divider/index.d.ts +2 -0
- package/dist/types/components/atoms/Divider/styled.d.ts +11 -0
- package/dist/types/components/atoms/GroupButton/GroupButton.d.ts +33 -0
- package/dist/types/components/atoms/GroupButton/GroupButtonOption.d.ts +9 -0
- package/dist/types/components/atoms/GroupButton/index.d.ts +4 -0
- package/dist/types/components/atoms/GroupButton/styled.d.ts +38 -0
- package/dist/types/components/atoms/Icon/AntDesign.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Entypo.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Evil.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Feather.d.ts +4 -0
- package/dist/types/components/atoms/Icon/FontAwesome.d.ts +4 -0
- package/dist/types/components/atoms/Icon/FontAwesomeFive.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Fontisto.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Foundation.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Icon.d.ts +15 -0
- package/dist/types/components/atoms/Icon/Ionicon.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Material.d.ts +4 -0
- package/dist/types/components/atoms/Icon/MaterialCommunity.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Octicon.d.ts +4 -0
- package/dist/types/components/atoms/Icon/SimpleLine.d.ts +4 -0
- package/dist/types/components/atoms/Icon/Zocial.d.ts +4 -0
- package/dist/types/components/atoms/Icon/functions.d.ts +7 -0
- package/dist/types/components/atoms/Icon/index.d.ts +2 -0
- package/dist/types/components/atoms/Icon/styled.d.ts +7 -0
- package/dist/types/components/atoms/Icon/types.d.ts +12 -0
- package/dist/types/components/atoms/Input/Hint.d.ts +10 -0
- package/dist/types/components/atoms/Input/InputContainer/InputContainer.d.ts +30 -0
- package/dist/types/components/atoms/Input/InputElement/InputElement.d.ts +13 -0
- package/dist/types/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +16 -0
- package/dist/types/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +11 -0
- package/dist/types/components/atoms/Input/PressableInputContainer/index.d.ts +2 -0
- package/dist/types/components/atoms/Input/PressableInputContainer/styled.d.ts +5 -0
- package/dist/types/components/atoms/Input/hooks/useInputFocus.d.ts +5 -0
- package/dist/types/components/atoms/Input/hooks/useNumberMask.d.ts +8 -0
- package/dist/types/components/atoms/Input/hooks/useStringMask.d.ts +8 -0
- package/dist/types/components/atoms/Input/index.d.ts +13 -0
- package/dist/types/components/atoms/Input/styled.d.ts +58 -0
- package/dist/types/components/atoms/Paper/Paper.d.ts +9 -0
- package/dist/types/components/atoms/Paper/index.d.ts +2 -0
- package/dist/types/components/atoms/Paper/styled.d.ts +7 -0
- package/dist/types/components/atoms/PressableSurface/PressableSurface.d.ts +11 -0
- package/dist/types/components/atoms/PressableSurface/index.d.ts +2 -0
- package/dist/types/components/atoms/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/types/components/atoms/ProgressBar/index.d.ts +2 -0
- package/dist/types/components/atoms/ProgressBar/styled.d.ts +19 -0
- package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +15 -0
- package/dist/types/components/atoms/RadioButton/index.d.ts +2 -0
- package/dist/types/components/atoms/RadioButton/styled.d.ts +27 -0
- package/dist/types/components/atoms/Switch/Switch.d.ts +16 -0
- package/dist/types/components/atoms/Switch/animation.d.ts +2 -0
- package/dist/types/components/atoms/Switch/index.d.ts +3 -0
- package/dist/types/components/atoms/Switch/styled.d.ts +12 -0
- package/dist/types/components/atoms/Tag/Tag.d.ts +15 -0
- package/dist/types/components/atoms/Tag/index.d.ts +2 -0
- package/dist/types/components/atoms/Tag/styled.d.ts +22 -0
- package/dist/types/components/atoms/Text/Text.d.ts +20 -0
- package/dist/types/components/atoms/Text/functions.d.ts +2 -0
- package/dist/types/components/atoms/Text/index.d.ts +2 -0
- package/dist/types/components/atoms/Text/styled.d.ts +18 -0
- package/dist/types/components/atoms/shared/PaperAndCard.d.ts +5 -0
- package/dist/types/components/molecules/Calendar/Calendar.d.ts +22 -0
- package/dist/types/components/molecules/Calendar/components/MemoizedYearCard.d.ts +10 -0
- package/dist/types/components/molecules/Calendar/components/MonthWeek.d.ts +13 -0
- package/dist/types/components/molecules/Calendar/components/SelectYear.d.ts +12 -0
- package/dist/types/components/molecules/Calendar/components/Weekdays.d.ts +8 -0
- package/dist/types/components/molecules/Calendar/components/index.d.ts +4 -0
- package/dist/types/components/molecules/Calendar/index.d.ts +2 -0
- package/dist/types/components/molecules/Calendar/styled.d.ts +63 -0
- package/dist/types/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.d.ts +20 -0
- package/dist/types/components/molecules/ControlledDateTimeSelector/index.d.ts +2 -0
- package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +19 -0
- package/dist/types/components/molecules/DatePicker/index.d.ts +3 -0
- package/dist/types/components/molecules/DatePicker/styled.d.ts +11 -0
- package/dist/types/components/molecules/DateTimePicker/DateTimePicker.d.ts +17 -0
- package/dist/types/components/molecules/DateTimePicker/index.d.ts +2 -0
- package/dist/types/components/molecules/DateTimePicker/styled.d.ts +6 -0
- package/dist/types/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +28 -0
- package/dist/types/components/molecules/DateTimeSelector/Selector.d.ts +17 -0
- package/dist/types/components/molecules/DateTimeSelector/index.d.ts +2 -0
- package/dist/types/components/molecules/DateTimeSelector/styled.d.ts +48 -0
- package/dist/types/components/molecules/Grid/functions.d.ts +4 -0
- package/dist/types/components/molecules/Grid/index.d.ts +42 -0
- package/dist/types/components/molecules/HintInputContainer/HintInputContainer.d.ts +17 -0
- package/dist/types/components/molecules/HintInputContainer/index.d.ts +2 -0
- package/dist/types/components/molecules/HintInputContainer/styled.d.ts +0 -0
- package/dist/types/components/molecules/IconTextButton/IconComponent.d.ts +11 -0
- package/dist/types/components/molecules/IconTextButton/IconTextButton.d.ts +10 -0
- package/dist/types/components/molecules/IconTextButton/index.d.ts +2 -0
- package/dist/types/components/molecules/InputPassword/InputPasswordIcon.d.ts +8 -0
- package/dist/types/components/molecules/InputPassword/index.d.ts +1 -0
- package/dist/types/components/molecules/InputPassword/styled.d.ts +5 -0
- package/dist/types/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +11 -0
- package/dist/types/components/molecules/LabeledSwitch/index.d.ts +1 -0
- package/dist/types/components/molecules/Snackbar/Snackbar.d.ts +21 -0
- package/dist/types/components/molecules/Snackbar/index.d.ts +2 -0
- package/dist/types/components/molecules/Snackbar/styled.d.ts +37 -0
- package/dist/types/components/molecules/TextArea/TextArea.d.ts +14 -0
- package/dist/types/components/molecules/TextArea/index.d.ts +3 -0
- package/dist/types/components/molecules/TextArea/styled.d.ts +10 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useDebouncedState.d.ts +2 -0
- package/dist/types/hooks/useTheme.d.ts +2 -0
- package/dist/types/index.d.ts +66 -0
- package/dist/types/styles/ThemeProvider.d.ts +4 -0
- package/dist/types/styles/definitions.d.ts +45 -0
- package/dist/types/styles/light.d.ts +2 -0
- package/dist/types/types/defaults.d.ts +134 -0
- package/dist/types/utils/IPhoneXHelper.d.ts +4 -0
- package/dist/types/utils/ResponsiveFontSize.d.ts +3 -0
- package/dist/types/utils/extractNumbersFromString.d.ts +2 -0
- package/dist/types/utils/formatWithMask.d.ts +2 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/lightenDarkenColor.d.ts +1 -0
- package/dist/types/utils/masks.d.ts +12 -0
- package/dist/types/utils/variantComplement.d.ts +6 -0
- 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,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,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,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,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,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,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,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,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,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 {};
|
package/dist/types/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.d.ts
ADDED
|
@@ -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,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,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,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 {};
|