@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,48 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Root: 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 Content: 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 SelectorRoot: 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
|
+
}>;
|
|
20
|
+
export declare const SelectorValue: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
}, {}, {
|
|
24
|
+
ref?: import("react").Ref<import("react-native").View> | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const SelectorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
27
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
+
as?: import("react").ElementType<any> | undefined;
|
|
29
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps> & {
|
|
30
|
+
isFirst?: boolean | undefined;
|
|
31
|
+
isLast?: boolean | undefined;
|
|
32
|
+
}, {}, {
|
|
33
|
+
ref?: import("react").Ref<import("react-native").View> | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const Control: import("@emotion/native").StyledComponent<import("../../atoms/PressableSurface").PressableSurfaceProps & {
|
|
36
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
+
as?: import("react").ElementType<any> | undefined;
|
|
38
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
39
|
+
export declare const Header: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
40
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
41
|
+
as?: import("react").ElementType<any> | undefined;
|
|
42
|
+
}, {}, {
|
|
43
|
+
ref?: import("react").Ref<import("react-native").View> | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const BackButton: import("@emotion/native").StyledComponent<import("../../atoms/PressableSurface").PressableSurfaceProps & {
|
|
46
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
47
|
+
as?: import("react").ElementType<any> | undefined;
|
|
48
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Spacing } from '../../../types/defaults';
|
|
2
|
+
import { GridSpacing, PaddingPosition } from './index';
|
|
3
|
+
export declare const getGridItemPadding: (pos: PaddingPosition, _spacing: GridSpacing | undefined, themeSpacing: Spacing) => number | undefined;
|
|
4
|
+
export declare const getGridItemColumSpan: (columns: number, span: number) => number;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpacingType } from '../../../types/defaults';
|
|
3
|
+
export interface IGrid {
|
|
4
|
+
children: JSX.Element[];
|
|
5
|
+
layout?: number[][];
|
|
6
|
+
columns?: number;
|
|
7
|
+
spacing?: SpacingType | {
|
|
8
|
+
top?: SpacingType;
|
|
9
|
+
right?: SpacingType;
|
|
10
|
+
bottom?: SpacingType;
|
|
11
|
+
left?: SpacingType;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export type FlexPositioning = 'flex-start' | 'flex-end' | 'center';
|
|
15
|
+
export type FlexAlignBase = FlexPositioning | 'stretch';
|
|
16
|
+
export type FlexAlignType = FlexAlignBase | 'baseline';
|
|
17
|
+
export type FlexSpacing = 'space-between' | 'space-around';
|
|
18
|
+
export type PaddingPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
19
|
+
export type GridSpacing = SpacingType | {
|
|
20
|
+
top?: SpacingType;
|
|
21
|
+
right?: SpacingType;
|
|
22
|
+
bottom?: SpacingType;
|
|
23
|
+
left?: SpacingType;
|
|
24
|
+
};
|
|
25
|
+
export interface IGridItem {
|
|
26
|
+
children: React.ReactElement;
|
|
27
|
+
span: number;
|
|
28
|
+
columns?: number;
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
loadingComponent?: React.ReactElement;
|
|
31
|
+
alignContent?: FlexAlignBase | FlexSpacing;
|
|
32
|
+
alignItems?: FlexAlignType;
|
|
33
|
+
alignSelf?: 'auto' | FlexAlignType;
|
|
34
|
+
flex?: number;
|
|
35
|
+
flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
36
|
+
flexGrow?: number;
|
|
37
|
+
flexShrink?: number;
|
|
38
|
+
justifyContent?: FlexPositioning | FlexSpacing | 'space-evenly';
|
|
39
|
+
spacing?: GridSpacing;
|
|
40
|
+
wrapper?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export { getGridItemColumSpan, getGridItemPadding } from './functions';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { InputVariantType, PressableInputContainerProps } from '../../atoms/Input';
|
|
4
|
+
import { TextProps } from '../../atoms/Text';
|
|
5
|
+
export interface HintInputContainerProps extends PressableInputContainerProps {
|
|
6
|
+
viewStyle?: StyleProp<ViewStyle>;
|
|
7
|
+
focused: boolean;
|
|
8
|
+
LabelComponent?: React.FC<TextProps>;
|
|
9
|
+
onPress?: () => void | never;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
hint?: string;
|
|
12
|
+
hintComponent?: JSX.Element;
|
|
13
|
+
variant?: InputVariantType;
|
|
14
|
+
rightComponent?: JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
declare const HintInputContainer: React.FC<HintInputContainerProps>;
|
|
17
|
+
export default HintInputContainer;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../../atoms/Icon';
|
|
3
|
+
import { ButtonSizeType } from '../../atoms/Button';
|
|
4
|
+
import { FontColor } from '../../../types/defaults';
|
|
5
|
+
interface IconComponentProps {
|
|
6
|
+
iconProps?: IconProps;
|
|
7
|
+
size?: ButtonSizeType;
|
|
8
|
+
defaultFontColor: keyof FontColor;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.NamedExoticComponent<IconComponentProps>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconProps } from '../../atoms/Icon';
|
|
2
|
+
import { TextProps } from '../../atoms/Text';
|
|
3
|
+
import { ButtonProps } from '../../atoms/Button';
|
|
4
|
+
export type IconPositionOptions = 'left' | 'right';
|
|
5
|
+
export interface IconTextButtonProps extends ButtonProps {
|
|
6
|
+
iconProps?: IconProps;
|
|
7
|
+
iconPosition?: IconPositionOptions;
|
|
8
|
+
textProps?: TextProps;
|
|
9
|
+
label?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ButtonProps } from '../../atoms/Button';
|
|
3
|
+
interface InputPasswordIconProps extends ButtonProps {
|
|
4
|
+
revealed: boolean;
|
|
5
|
+
onChangeState: (revealed: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const InputPasswordIcon: FC<InputPasswordIconProps>;
|
|
8
|
+
export default InputPasswordIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InputPasswordIcon } from './InputPasswordIcon';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledPasswordButtonIcon: import("@emotion/native").StyledComponent<import("../../atoms/Button").ButtonProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SwitchProps } from '../../atoms/Switch';
|
|
2
|
+
export type LabelPositionOptions = 'left' | 'right';
|
|
3
|
+
export type LabeledSwitchProps = {
|
|
4
|
+
pressableLabel?: boolean;
|
|
5
|
+
leftLabel?: string;
|
|
6
|
+
rightLabel?: string;
|
|
7
|
+
} & ({
|
|
8
|
+
leftLabel: string;
|
|
9
|
+
} | {
|
|
10
|
+
rightLabel: string;
|
|
11
|
+
}) & SwitchProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { LabeledSwitchProps, LabelPositionOptions } from './LabeledSwitch';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { ColorGradationType, ColorType } from '../../../types/defaults';
|
|
4
|
+
import { IconProps } from '../../atoms/Icon';
|
|
5
|
+
export interface SnackbarProps {
|
|
6
|
+
colorVariant?: ColorType;
|
|
7
|
+
colorTone?: ColorGradationType;
|
|
8
|
+
open: boolean;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
dismissable?: boolean;
|
|
11
|
+
timeout?: number;
|
|
12
|
+
showProgressBar?: boolean;
|
|
13
|
+
leftIcon?: IconProps;
|
|
14
|
+
rightIcon?: Omit<IconProps, 'name' | 'type'>;
|
|
15
|
+
anchor?: 'top' | 'bottom';
|
|
16
|
+
anchorDistance?: number;
|
|
17
|
+
style?: StyleProp<ViewStyle>;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const Snackbar: ({ children, open, onClose, dismissable, timeout, leftIcon, colorTone, colorVariant, rightIcon, anchor, anchorDistance, style, }: SnackbarProps) => JSX.Element;
|
|
21
|
+
export default Snackbar;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { SnackbarProps } from './Snackbar';
|
|
4
|
+
export declare const SnackbarContainer: import("@emotion/native").StyledComponent<import("../../atoms/Paper").PaperProps & {
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
} & Partial<SnackbarProps & import("../../../types/defaults").ThemeProviderProps> & {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export declare const ContentContainer: 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 IconContainer: 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 DismissContainer: import("@emotion/native").StyledComponent<import("../../atoms/PressableSurface").PressableSurfaceProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
26
|
+
export declare const StyledContainerFlexRow: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
27
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
+
as?: import("react").ElementType<any> | undefined;
|
|
29
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
|
|
30
|
+
ref?: import("react").Ref<View> | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const TextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
33
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
34
|
+
as?: import("react").ElementType<any> | undefined;
|
|
35
|
+
}, {}, {
|
|
36
|
+
ref?: import("react").Ref<View> | undefined;
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { FontStackType, FontWeightType } from '../../../types/defaults';
|
|
3
|
+
import { InputContainerProps, InputElementProps } from '../../atoms/Input';
|
|
4
|
+
import { TextProps } from '../../atoms/Text';
|
|
5
|
+
export interface TextAreaProps extends Omit<InputElementProps, 'style' | 'multiline' | 'value'>, InputContainerProps {
|
|
6
|
+
inputFontStack?: FontStackType;
|
|
7
|
+
inputFontWeight?: FontWeightType;
|
|
8
|
+
maxCharCount?: number;
|
|
9
|
+
value: string;
|
|
10
|
+
TextComponent?: FC<TextProps>;
|
|
11
|
+
focused?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const TextArea: FC<TextAreaProps>;
|
|
14
|
+
export default TextArea;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextAreaProps } from './TextArea';
|
|
3
|
+
export declare const StyledInputContainer: import("@emotion/native").StyledComponent<import("../../atoms/Input").InputContainerProps & Partial<import("../../atoms/Input").InputElementProps> & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
7
|
+
export declare const TextAreaInputBase: import("@emotion/native").StyledComponent<import("../../atoms/Input").InputElementProps & import("react").RefAttributes<import("react-native").TextInput> & {
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
} & Partial<TextAreaProps> & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export { Avatar } from './components/atoms/Avatar/';
|
|
2
|
+
export type { AvatarProps } from './components/atoms/Avatar';
|
|
3
|
+
export { Badge } from './components/atoms/Badge';
|
|
4
|
+
export type { BadgeProps } from './components/atoms/Badge';
|
|
5
|
+
export { BoxContent } from './components/atoms/BoxContent';
|
|
6
|
+
export type { BoxContentProps } from './components/atoms/BoxContent';
|
|
7
|
+
export { Button, Error, Loading, Success } from './components/atoms/Button';
|
|
8
|
+
export type { ButtonProps, ButtonSizeType, ButtonStateProps, ButtonStateType, } from './components/atoms/Button';
|
|
9
|
+
export { Card } from './components/atoms/Card';
|
|
10
|
+
export type { CardProps } from './components/atoms/Card';
|
|
11
|
+
export { Footer } from './components/atoms/Card/Footer';
|
|
12
|
+
export type { FooterProps } from './components/atoms/Card/Footer';
|
|
13
|
+
export { Header } from './components/atoms/Card/Header';
|
|
14
|
+
export type { HeaderProps } from './components/atoms/Card/Header';
|
|
15
|
+
export { Checkbox } from './components/atoms/Checkbox';
|
|
16
|
+
export type { CheckboxProps } from './components/atoms/Checkbox';
|
|
17
|
+
export { Divider } from './components/atoms/Divider';
|
|
18
|
+
export type { DividerProps } from './components/atoms/Divider';
|
|
19
|
+
export { GroupButton, GroupButtonOption } from './components/atoms/GroupButton';
|
|
20
|
+
export type { GroupButtonOptionProps, GroupButtonProps, GroupButtonValue, } from './components/atoms/GroupButton';
|
|
21
|
+
export { Icon } from './components/atoms/Icon';
|
|
22
|
+
export type { IconProps } from './components/atoms/Icon';
|
|
23
|
+
export { disabledInputStyles, Hint, InputContainer, InputElement, InputMaskElement, PressableInputContainer, StyledBorderKeeper, useInputFocus, useNumberMask, useStringMask, } from './components/atoms/Input';
|
|
24
|
+
export type { InputContainerProps, InputElementProps, InputMaskElementProps, InputVariantType, PressableInputContainerProps, CurrencyOptions, } from './components/atoms/Input';
|
|
25
|
+
export { Paper } from './components/atoms/Paper';
|
|
26
|
+
export type { PaperProps } from './components/atoms/Paper';
|
|
27
|
+
export { PressableSurface } from './components/atoms/PressableSurface';
|
|
28
|
+
export type { PressableSurfaceProps } from './components/atoms/PressableSurface';
|
|
29
|
+
export { ProgressBar } from './components/atoms/ProgressBar';
|
|
30
|
+
export type { ProgressBarProps } from './components/atoms/ProgressBar';
|
|
31
|
+
export { RadioButton } from './components/atoms/RadioButton';
|
|
32
|
+
export type { RadioButtonProps } from './components/atoms/RadioButton';
|
|
33
|
+
export { Switch, SWITCH_PIN_WIDTH, SWITCH_BODY_WIDTH, } from './components/atoms/Switch';
|
|
34
|
+
export type { SwitchProps } from './components/atoms/Switch';
|
|
35
|
+
export { Tag } from './components/atoms/Tag';
|
|
36
|
+
export type { TagProps } from './components/atoms/Tag';
|
|
37
|
+
export { Text } from './components/atoms/Text';
|
|
38
|
+
export type { TextProps } from './components/atoms/Text';
|
|
39
|
+
export { Calendar } from './components/molecules/Calendar';
|
|
40
|
+
export type { CalendarProps, DateRange, SelectionType, Value, } from './components/molecules/Calendar';
|
|
41
|
+
export { DatePicker, CalendarIcon } from './components/molecules/DatePicker';
|
|
42
|
+
export type { DatePickerProps } from './components/molecules/DatePicker';
|
|
43
|
+
export { DateTimePicker } from './components/molecules/DateTimePicker';
|
|
44
|
+
export type { DateTimePickerProps } from './components/molecules/DateTimePicker';
|
|
45
|
+
export { DateTimeSelector } from './components/molecules/DateTimeSelector';
|
|
46
|
+
export type { DateTimeSelectorMode, DateTimeSelectorProps, } from './components/molecules/DateTimeSelector';
|
|
47
|
+
export { getGridItemPadding, getGridItemColumSpan, } from './components/molecules/Grid';
|
|
48
|
+
export type { GridSpacing, IGridItem, IGrid, FlexAlignBase, FlexAlignType, FlexPositioning, FlexSpacing, PaddingPosition, } from './components/molecules/Grid';
|
|
49
|
+
export { HintInputContainer } from './components/molecules/HintInputContainer';
|
|
50
|
+
export type { HintInputContainerProps } from './components/molecules/HintInputContainer';
|
|
51
|
+
export { IconComponent } from './components/molecules/IconTextButton';
|
|
52
|
+
export type { IconPositionOptions, IconTextButtonProps, } from './components/molecules/IconTextButton';
|
|
53
|
+
export { InputPasswordIcon } from './components/molecules/InputPassword';
|
|
54
|
+
export type { LabeledSwitchProps, LabelPositionOptions, } from './components/molecules/LabeledSwitch';
|
|
55
|
+
export { Snackbar } from './components/molecules/Snackbar';
|
|
56
|
+
export type { SnackbarProps } from './components/molecules/Snackbar';
|
|
57
|
+
export { TextArea, TextAreaInputBase } from './components/molecules/TextArea';
|
|
58
|
+
export type { TextAreaProps } from './components/molecules/TextArea';
|
|
59
|
+
export * from './hooks';
|
|
60
|
+
export * from './styles/definitions';
|
|
61
|
+
export * from './styles/light';
|
|
62
|
+
export { default as ThemeProvider } from './styles/ThemeProvider';
|
|
63
|
+
export * from './types/defaults';
|
|
64
|
+
export * from './utils';
|
|
65
|
+
export { ControlledDateTimeSelector } from './components/molecules/ControlledDateTimeSelector';
|
|
66
|
+
export type { ControlledDateTimeSelectorProps, ControlledSelectorComponentProps, } from './components/molecules/ControlledDateTimeSelector';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BorderRadius, BorderWidth, Breakpoints, FontColor, FontStack, FontWeight, IconSize, Miscellaneous, Spacing, TypographyVariation, ZIndex } from '../types/defaults';
|
|
2
|
+
export declare const statusColor: {
|
|
3
|
+
error: {
|
|
4
|
+
xlight: string;
|
|
5
|
+
light: string;
|
|
6
|
+
medium: string;
|
|
7
|
+
dark: string;
|
|
8
|
+
xdark: string;
|
|
9
|
+
};
|
|
10
|
+
warning: {
|
|
11
|
+
xlight: string;
|
|
12
|
+
light: string;
|
|
13
|
+
medium: string;
|
|
14
|
+
dark: string;
|
|
15
|
+
xdark: string;
|
|
16
|
+
};
|
|
17
|
+
success: {
|
|
18
|
+
xlight: string;
|
|
19
|
+
light: string;
|
|
20
|
+
medium: string;
|
|
21
|
+
dark: string;
|
|
22
|
+
xdark: string;
|
|
23
|
+
};
|
|
24
|
+
info: {
|
|
25
|
+
xlight: string;
|
|
26
|
+
light: string;
|
|
27
|
+
medium: string;
|
|
28
|
+
dark: string;
|
|
29
|
+
xdark: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const hex2rgba: (hex: any, alpha?: number) => string;
|
|
33
|
+
export declare const miscellaneous: Miscellaneous;
|
|
34
|
+
export declare const spacing: Spacing;
|
|
35
|
+
export declare const iconSize: IconSize;
|
|
36
|
+
export declare const borderRadius: BorderRadius;
|
|
37
|
+
export declare const borderWidth: BorderWidth;
|
|
38
|
+
export declare const typography: TypographyVariation;
|
|
39
|
+
export declare const fontStack: FontStack;
|
|
40
|
+
export declare const fontWeight: FontWeight;
|
|
41
|
+
export declare const fontFiles: FontWeight;
|
|
42
|
+
export declare const fontColor: FontColor;
|
|
43
|
+
export declare const zIndex: ZIndex;
|
|
44
|
+
export type IconType = 'material' | 'material-community' | 'simple-line-icon' | 'zocial' | 'font-awesome' | 'octicon' | 'ionicon' | 'foundation' | 'evilicon' | 'entypo' | 'antdesign' | 'font-awesome-5' | string;
|
|
45
|
+
export declare const breakpoints: Breakpoints;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type Color = {
|
|
3
|
+
primary: ColorGradation;
|
|
4
|
+
secondary: ColorGradation;
|
|
5
|
+
error: ColorGradation;
|
|
6
|
+
success: ColorGradation;
|
|
7
|
+
info: ColorGradation;
|
|
8
|
+
warning: ColorGradation;
|
|
9
|
+
};
|
|
10
|
+
export type TypographyVariation = {
|
|
11
|
+
h1: Typography;
|
|
12
|
+
h2: Typography;
|
|
13
|
+
h3: Typography;
|
|
14
|
+
h4: Typography;
|
|
15
|
+
h5: Typography;
|
|
16
|
+
base: Typography;
|
|
17
|
+
sub: Typography;
|
|
18
|
+
label: Typography;
|
|
19
|
+
};
|
|
20
|
+
export type Miscellaneous = {
|
|
21
|
+
shadow: string;
|
|
22
|
+
overlay: string;
|
|
23
|
+
bodyColor: string;
|
|
24
|
+
surfaceColor: string;
|
|
25
|
+
};
|
|
26
|
+
export type Spacing = {
|
|
27
|
+
nano: string;
|
|
28
|
+
micro: string;
|
|
29
|
+
mili: string;
|
|
30
|
+
centi: string;
|
|
31
|
+
deca: string;
|
|
32
|
+
kilo: string;
|
|
33
|
+
mega: string;
|
|
34
|
+
giga: string;
|
|
35
|
+
tera: string;
|
|
36
|
+
peta: string;
|
|
37
|
+
hexa: string;
|
|
38
|
+
};
|
|
39
|
+
export type IconSize = {
|
|
40
|
+
micro: string;
|
|
41
|
+
mili: string;
|
|
42
|
+
centi: string;
|
|
43
|
+
deca: string;
|
|
44
|
+
kilo: string;
|
|
45
|
+
mega: string;
|
|
46
|
+
};
|
|
47
|
+
export type BorderRadius = {
|
|
48
|
+
nano: string;
|
|
49
|
+
micro: string;
|
|
50
|
+
mili: string;
|
|
51
|
+
centi: string;
|
|
52
|
+
deca: string;
|
|
53
|
+
pill: string;
|
|
54
|
+
};
|
|
55
|
+
export type BorderWidth = {
|
|
56
|
+
pico: string;
|
|
57
|
+
nano: string;
|
|
58
|
+
};
|
|
59
|
+
export type Typography = {
|
|
60
|
+
lineHeight: string;
|
|
61
|
+
fontSize: string;
|
|
62
|
+
};
|
|
63
|
+
export type ColorGradation = {
|
|
64
|
+
xlight: string;
|
|
65
|
+
light: string;
|
|
66
|
+
medium: string;
|
|
67
|
+
dark: string;
|
|
68
|
+
xdark: string;
|
|
69
|
+
};
|
|
70
|
+
export type FontStack = {
|
|
71
|
+
default: string;
|
|
72
|
+
mono: string;
|
|
73
|
+
};
|
|
74
|
+
export type FontColor = {
|
|
75
|
+
light: string;
|
|
76
|
+
medium: string;
|
|
77
|
+
dark: string;
|
|
78
|
+
orange: string;
|
|
79
|
+
};
|
|
80
|
+
export type ZIndex = {
|
|
81
|
+
default: number;
|
|
82
|
+
absolute: number;
|
|
83
|
+
drawer: number;
|
|
84
|
+
select: number;
|
|
85
|
+
input: number;
|
|
86
|
+
popover: number;
|
|
87
|
+
tooltip: number;
|
|
88
|
+
header: number;
|
|
89
|
+
backdrop: number;
|
|
90
|
+
sidebar: number;
|
|
91
|
+
modal: number;
|
|
92
|
+
};
|
|
93
|
+
export type FontWeight = {
|
|
94
|
+
regular: string;
|
|
95
|
+
bold: string;
|
|
96
|
+
black: string;
|
|
97
|
+
};
|
|
98
|
+
export type Breakpoints = {
|
|
99
|
+
sm: number;
|
|
100
|
+
md: number;
|
|
101
|
+
lg: number;
|
|
102
|
+
};
|
|
103
|
+
export type ThemeProp = {
|
|
104
|
+
color: Color;
|
|
105
|
+
miscellaneous: Miscellaneous;
|
|
106
|
+
spacing: Spacing;
|
|
107
|
+
iconSize: IconSize;
|
|
108
|
+
borderRadius: BorderRadius;
|
|
109
|
+
borderWidth: BorderWidth;
|
|
110
|
+
typography: TypographyVariation;
|
|
111
|
+
font: {
|
|
112
|
+
color: FontColor;
|
|
113
|
+
stack: FontStack;
|
|
114
|
+
weight: FontWeight;
|
|
115
|
+
files: FontWeight;
|
|
116
|
+
};
|
|
117
|
+
zIndex: ZIndex;
|
|
118
|
+
breakpoints: Breakpoints;
|
|
119
|
+
};
|
|
120
|
+
export interface ThemeProviderProps {
|
|
121
|
+
children?: ReactNode;
|
|
122
|
+
theme: ThemeProp;
|
|
123
|
+
}
|
|
124
|
+
export type StyleProps = ThemeProviderProps;
|
|
125
|
+
export type ColorType = keyof Color;
|
|
126
|
+
export type SpacingType = keyof Spacing;
|
|
127
|
+
export type TypographyVariationType = keyof TypographyVariation;
|
|
128
|
+
export type FontWeightType = keyof FontWeight;
|
|
129
|
+
export type VariantType = 'filled' | 'outlined' | 'text';
|
|
130
|
+
export type ColorGradationType = keyof ColorGradation;
|
|
131
|
+
export type FontColorType = keyof FontColor;
|
|
132
|
+
export type BorderRadiusType = keyof BorderRadius;
|
|
133
|
+
export type FontStackType = keyof FontStack;
|
|
134
|
+
export type IconSizeType = keyof IconSize;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { extractDigitsFromString, extractNumbersFromString, } from './extractNumbersFromString';
|
|
2
|
+
export * from './formatWithMask';
|
|
3
|
+
export * from './IPhoneXHelper';
|
|
4
|
+
export { lightenDarkenColor } from './lightenDarkenColor';
|
|
5
|
+
export * from './masks';
|
|
6
|
+
export * from './ResponsiveFontSize';
|
|
7
|
+
export * from './variantComplement';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const lightenDarkenColor: (color: string, variation: number) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const Masks: {
|
|
2
|
+
CPF: string[];
|
|
3
|
+
CNPJ: string[];
|
|
4
|
+
DATE: string[];
|
|
5
|
+
HOUR: string[];
|
|
6
|
+
MONTH_YEAR: string[];
|
|
7
|
+
CEP: string[];
|
|
8
|
+
PHONE: string[];
|
|
9
|
+
PHONE_EXTENDED: string[];
|
|
10
|
+
COMBINED_PHONE: (value: string) => string[];
|
|
11
|
+
COMBINED_CPF_CNPJ: (value: string) => string[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ColorGradationType, ColorType, FontColorType, VariantType } from '../types/defaults';
|
|
2
|
+
export declare const fontColorVC: Record<VariantType, FontColorType>;
|
|
3
|
+
export declare const colorVC: Record<VariantType, ColorType>;
|
|
4
|
+
export declare const colorGradationVC: Record<VariantType, ColorGradationType>;
|
|
5
|
+
export declare const borderColorVC: Record<VariantType, ColorType>;
|
|
6
|
+
export declare const borderColorGradationVC: Record<VariantType, ColorGradationType>;
|