@tecsinapse/react-core 3.3.7-beta.0 → 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.
- 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 +3 -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 +6 -6
|
@@ -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 {};
|
|
@@ -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, } 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;
|