@tecsinapse/react-core 3.3.7 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,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>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/react-core",
|
|
3
3
|
"description": "TecSinapse hybrid React components",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "
|
|
14
|
-
"
|
|
15
|
-
"build:
|
|
16
|
-
"build:
|
|
13
|
+
"dev": "rollup --config --watch",
|
|
14
|
+
"dev:dts": "tsc --project tsconfig.build.json --watch",
|
|
15
|
+
"build:core": "rollup --config",
|
|
16
|
+
"build:core:dts": "tsc --project tsconfig.build.json",
|
|
17
17
|
"yalc:push": "yalc push --changed",
|
|
18
18
|
"yalc:show": "yalc installations show $npm_package_name"
|
|
19
19
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"react-native": "^0.72.0",
|
|
38
38
|
"react-native-vector-icons": "^9.2.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "68c1b2e4efabf493290234c3d97754f39e82b861"
|
|
41
41
|
}
|