@pipelinesolucoes/form 1.0.0-beta.3 → 1.0.0-beta.4
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/README.md +3 -0
- package/dist/components/FormStyled.js +66 -106
- package/dist/components/FormStyled.js.map +1 -1
- package/dist/components/NotificationSnackbar.d.ts +56 -0
- package/dist/components/NotificationSnackbar.js +55 -0
- package/dist/components/NotificationSnackbar.js.map +1 -0
- package/dist/components/TextFieldValidate.js +60 -30
- package/dist/components/TextFieldValidate.js.map +1 -1
- package/dist/components/login/GoogleButton.d.ts +4 -4
- package/dist/components/login/GoogleButton.js +4 -4
- package/dist/components/login/GoogleButton.js.map +1 -1
- package/dist/components/login/LoginForm.js +10 -28
- package/dist/components/login/LoginForm.js.map +1 -1
- package/dist/components/login/SignUpForm.js +10 -21
- package/dist/components/login/SignUpForm.js.map +1 -1
- package/dist/components/recaptcha/RecaptchaMessage.js +13 -32
- package/dist/components/recaptcha/RecaptchaMessage.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mui-theme.d.ts +33 -0
- package/dist/theme.d.ts +0 -33
- package/dist/theme.js +17 -135
- package/dist/theme.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -2
|
@@ -34,27 +34,16 @@ const DivTitulo = styled('div')(() => ({
|
|
|
34
34
|
}));
|
|
35
35
|
const DivLink = styled("div", {
|
|
36
36
|
shouldForwardProp: (prop) => !['text_color', 'align'].includes(prop),
|
|
37
|
-
})(({ theme, text_color, align }) => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
color: text_color,
|
|
48
|
-
// Tipografia
|
|
49
|
-
fontFamily: theme.typography.fontFamily,
|
|
50
|
-
fontWeight: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontWeight,
|
|
51
|
-
fontStyle: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.fontStyle,
|
|
52
|
-
lineHeight: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.lineHeight,
|
|
53
|
-
letterSpacing: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.letterSpacing,
|
|
54
|
-
fontSize: (_e = theme.typography.body1) === null || _e === void 0 ? void 0 : _e.fontSize,
|
|
55
|
-
margin: (_f = theme.typography.body1) === null || _f === void 0 ? void 0 : _f.margin,
|
|
56
|
-
});
|
|
57
|
-
});
|
|
37
|
+
})(({ theme, text_color, align }) => ({
|
|
38
|
+
display: 'flex',
|
|
39
|
+
flexDirection: 'row',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: align,
|
|
42
|
+
width: '100%',
|
|
43
|
+
padding: '0',
|
|
44
|
+
flex: '1',
|
|
45
|
+
color: text_color,
|
|
46
|
+
}));
|
|
58
47
|
const SignUpForm = ({ Icon, titulo, googleButton, color, background = 'transparent', border_radius = '0px', background_color_field = 'transparent', border_radius_field = '0px', color_button, background_color_button = 'transparent', border_radius_button = '0px', text_button, message_sucess, color_message_sucess, message_erro, color_message_erro, color_separador, children, urlLogin, color_link, }) => {
|
|
59
48
|
const [mensagemApi, setMensagemApi] = useState('');
|
|
60
49
|
const [corMensagemApi, setCorMensagemApi] = useState(color_message_erro);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUpForm.js","sourceRoot":"","sources":["../../../src/components/login/SignUpForm.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAU,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAgB,UAAU,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAA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,KAAC,cAAc,IAAC,QAAQ,EAAC,KAAK,YAC5B,KAAC,UAAU,IACT,OAAO,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EACtD,IAAI,EAAC,KAAK,YAET,mBAAmB,CAAC,CAAC,CAAC,KAAC,iBAAiB,KAAG,CAAC,CAAC,CAAC,KAAC,cAAc,KAAG,GACtD,GACE,CAClB;qCACF;iCACF,GACD,IAEU,EAGd,KAAC,gBAAgB,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAC1C,OAAO,EAAE,YAAY,EACrB,gBAAgB,EAAE,uBAAuB,EACzC,UAAU,EAAE,YAAY,EACxB,aAAa,EAAE,oBAAoB,EACnC,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAC,YAAY,YAElB,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,GACvB,EAClB,WAAW,IAAI,CACd,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,cAAc,YAC/D,WAAW,GACD,CACd,EAED,MAAC,OAAO,IAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAC,QAAQ,uCAExC,KAAC,cAAc,IAAC,IAAI,EAAE,QAAQ,EAC5B,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAC,WAAW,uBAEtD,IACT,IAEI,EAEf,QAAQ,IAEL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -3,42 +3,23 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { styled } from "@mui/material";
|
|
4
4
|
const Text = styled('div', {
|
|
5
5
|
shouldForwardProp: (prop) => !['text_color'].includes(prop),
|
|
6
|
-
})(({ theme, text_color }) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
color: text_color,
|
|
10
|
-
fontFamily: theme.typography.fontFamily,
|
|
11
|
-
fontSize: (_a = theme.typography.caption) === null || _a === void 0 ? void 0 : _a.fontSize,
|
|
12
|
-
fontWeight: (_b = theme.typography.caption) === null || _b === void 0 ? void 0 : _b.fontWeight,
|
|
13
|
-
fontStyle: (_c = theme.typography.caption) === null || _c === void 0 ? void 0 : _c.fontStyle,
|
|
14
|
-
lineHeight: (_d = theme.typography.caption) === null || _d === void 0 ? void 0 : _d.lineHeight,
|
|
15
|
-
letterSpacing: (_e = theme.typography.caption) === null || _e === void 0 ? void 0 : _e.letterSpacing,
|
|
16
|
-
margin: (_f = theme.typography.caption) === null || _f === void 0 ? void 0 : _f.margin,
|
|
17
|
-
});
|
|
18
|
-
});
|
|
6
|
+
})(({ theme, text_color }) => ({
|
|
7
|
+
color: text_color,
|
|
8
|
+
}));
|
|
19
9
|
const LinkStyled = styled('a', {
|
|
20
10
|
shouldForwardProp: (prop) => ![
|
|
21
11
|
'text_color',
|
|
22
12
|
].includes(prop),
|
|
23
|
-
})(({ theme, text_color }) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
color: text_color,
|
|
34
|
-
fontFamily: theme.typography.fontFamily,
|
|
35
|
-
fontSize: (_a = theme.typography.caption) === null || _a === void 0 ? void 0 : _a.fontSize,
|
|
36
|
-
fontWeight: (_b = theme.typography.caption) === null || _b === void 0 ? void 0 : _b.fontWeight,
|
|
37
|
-
fontStyle: (_c = theme.typography.caption) === null || _c === void 0 ? void 0 : _c.fontStyle,
|
|
38
|
-
lineHeight: (_d = theme.typography.caption) === null || _d === void 0 ? void 0 : _d.lineHeight,
|
|
39
|
-
letterSpacing: (_e = theme.typography.caption) === null || _e === void 0 ? void 0 : _e.letterSpacing,
|
|
40
|
-
});
|
|
41
|
-
});
|
|
13
|
+
})(({ theme, text_color }) => ({
|
|
14
|
+
width: 'auto',
|
|
15
|
+
cursor: 'pointer',
|
|
16
|
+
textTransform: 'none',
|
|
17
|
+
textAlign: 'center',
|
|
18
|
+
boxShadow: 'none',
|
|
19
|
+
padding: '0',
|
|
20
|
+
margin: '0',
|
|
21
|
+
color: text_color,
|
|
22
|
+
}));
|
|
42
23
|
const RecaptchaMessage = ({ color }) => {
|
|
43
24
|
return (_jsxs(Text, { text_color: color, children: ["Este site \u00E9 protegido pelo Google reCAPTCHA e est\u00E1 sujeito \u00E0 ", ' ', _jsx(LinkStyled, { href: "https://policies.google.com/privacy", text_color: color, "aria-label": 'link termo de uso', target: "_blank", rel: "noopener noreferrer", children: "Pol\u00EDtica de Privacidade" }), ' ', " e aos ", ' ', _jsx(LinkStyled, { href: "https://policies.google.com/terms", text_color: color, "aria-label": 'link termo de uso', target: "_blank", rel: "noopener noreferrer", children: "Termos de Servi\u00E7o" }), " do Google."] }));
|
|
44
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecaptchaMessage.js","sourceRoot":"","sources":["../../../src/components/recaptcha/RecaptchaMessage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,EAAE;IACzB,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC3C,CAAC,CAAuB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"RecaptchaMessage.js","sourceRoot":"","sources":["../../../src/components/recaptcha/RecaptchaMessage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,IAAI,GAAG,MAAM,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.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { default as SignUpForm } from './components/login/SignUpForm';
|
|
|
3
3
|
export { default as GoogleButton } from './components/login/GoogleButton';
|
|
4
4
|
export { default as PasswordRecoveryForm } from './components/login/PasswordRecoveryForm';
|
|
5
5
|
export { default as RecaptchaForm } from './components/recaptcha/RecaptchaForm';
|
|
6
|
+
export { default as NotificationSnackbar } from './components/NotificationSnackbar';
|
|
6
7
|
export { default as TextFieldValidate } from './components/TextFieldValidate';
|
|
7
8
|
export type { BorderProps } from "./types/BorderProps";
|
|
8
9
|
export type { ColorProps } from "./types/ColorProps";
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { default as SignUpForm } from './components/login/SignUpForm';
|
|
|
3
3
|
export { default as GoogleButton } from './components/login/GoogleButton';
|
|
4
4
|
export { default as PasswordRecoveryForm } from './components/login/PasswordRecoveryForm';
|
|
5
5
|
export { default as RecaptchaForm } from './components/recaptcha/RecaptchaForm';
|
|
6
|
+
export { default as NotificationSnackbar } from './components/NotificationSnackbar';
|
|
6
7
|
export { default as TextFieldValidate } from './components/TextFieldValidate';
|
|
7
8
|
export * from './utils/validateTelefone';
|
|
8
9
|
export * from './utils/validateEmail';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAEzF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAC,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAO9E,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAEzF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAC,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAO9E,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import "@mui/material/styles";
|
|
2
|
+
|
|
3
|
+
export interface PipeSolFormTokens {
|
|
4
|
+
|
|
5
|
+
notification?: {
|
|
6
|
+
background: string;
|
|
7
|
+
},
|
|
8
|
+
field?: {
|
|
9
|
+
background?: string;
|
|
10
|
+
backgroundDisabled?: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
colorFocused?: string;
|
|
13
|
+
colorDisabled?: string;
|
|
14
|
+
borderRadius?: string;
|
|
15
|
+
boxShadow?: string;
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
padding?: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare module "@mui/material/styles" {
|
|
22
|
+
interface Theme {
|
|
23
|
+
pipesol?: {
|
|
24
|
+
form?: PipeSolFormTokens;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface ThemeOptions {
|
|
29
|
+
pipesol?: {
|
|
30
|
+
form?: PipeSolFormTokens;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,35 +1,2 @@
|
|
|
1
|
-
declare module '@mui/material/styles' {
|
|
2
|
-
interface Palette {
|
|
3
|
-
custom: {
|
|
4
|
-
transparent: string;
|
|
5
|
-
backgroundSectionMain: string;
|
|
6
|
-
backgroundSectionAlternative: string;
|
|
7
|
-
backgroundSectionHighlight?: string;
|
|
8
|
-
colorSectionMain: string;
|
|
9
|
-
backgroundButtonCTA: string;
|
|
10
|
-
backgroundHoverButtonCTA: string;
|
|
11
|
-
colorButtonCTA: string;
|
|
12
|
-
colorHoverButtonCTA: string;
|
|
13
|
-
borderRadiusButtonCTA: string;
|
|
14
|
-
carouselColorIndicators: string;
|
|
15
|
-
carouselColorFocus: string;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
interface PaletteOptions {
|
|
19
|
-
custom?: {
|
|
20
|
-
transparent: string;
|
|
21
|
-
backgroundSectionMain: string;
|
|
22
|
-
backgroundSectionAlternative: string;
|
|
23
|
-
backgroundSectionHighlight?: string;
|
|
24
|
-
backgroundButtonCTA: string;
|
|
25
|
-
backgroundHoverButtonCTA: string;
|
|
26
|
-
colorButtonCTA: string;
|
|
27
|
-
colorHoverButtonCTA: string;
|
|
28
|
-
borderRadiusButtonCTA: string;
|
|
29
|
-
carouselColorIndicators: string;
|
|
30
|
-
carouselColorFocus: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
1
|
declare const theme: import("@mui/material/styles").Theme;
|
|
35
2
|
export { theme };
|
package/dist/theme.js
CHANGED
|
@@ -1,142 +1,24 @@
|
|
|
1
1
|
import { createTheme } from '@mui/material/styles';
|
|
2
2
|
// Definindo o tema personalizado
|
|
3
3
|
const theme = createTheme({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
contrastText: "#ffffff"
|
|
21
|
-
},
|
|
22
|
-
secondary: {
|
|
23
|
-
main: '#8c6d32',
|
|
24
|
-
light: '#b68d40',
|
|
25
|
-
contrastText: "#ffffff"
|
|
26
|
-
},
|
|
27
|
-
text: {
|
|
28
|
-
primary: '#555f56',
|
|
29
|
-
secondary: '#ffffff',
|
|
30
|
-
disabled: '#707070',
|
|
31
|
-
},
|
|
32
|
-
custom: {
|
|
33
|
-
transparent: '#00000000',
|
|
34
|
-
backgroundSectionMain: '#ffffff',
|
|
35
|
-
backgroundSectionAlternative: '#ede8de',
|
|
36
|
-
backgroundButtonCTA: "#D9D9D950",
|
|
37
|
-
backgroundHoverButtonCTA: '#b68d40',
|
|
38
|
-
colorButtonCTA: '#ffffff',
|
|
39
|
-
colorHoverButtonCTA: '#ffffff',
|
|
40
|
-
borderRadiusButtonCTA: "25px",
|
|
41
|
-
carouselColorIndicators: 'gray',
|
|
42
|
-
carouselColorFocus: '#8c6d32',
|
|
43
|
-
},
|
|
44
|
-
info: {
|
|
45
|
-
main: '#4CAF50',
|
|
46
|
-
},
|
|
47
|
-
error: {
|
|
48
|
-
main: '#F44336',
|
|
4
|
+
pipesol: {
|
|
5
|
+
form: {
|
|
6
|
+
notification: {
|
|
7
|
+
background: '#fff',
|
|
8
|
+
},
|
|
9
|
+
field: {
|
|
10
|
+
background: '#fff',
|
|
11
|
+
backgroundDisabled: "#9CA3AF",
|
|
12
|
+
color: "#000",
|
|
13
|
+
colorFocused: "#000",
|
|
14
|
+
colorDisabled: "#9CA3AF",
|
|
15
|
+
borderRadius: "0",
|
|
16
|
+
boxShadow: "none",
|
|
17
|
+
borderColor: "#ccc",
|
|
18
|
+
padding: "4px 8px",
|
|
19
|
+
}
|
|
49
20
|
}
|
|
50
|
-
}
|
|
51
|
-
typography: {
|
|
52
|
-
fontFamily: 'Inter, Arial, sans-serif',
|
|
53
|
-
h1: {
|
|
54
|
-
fontSize: '56px', // Desktop
|
|
55
|
-
lineHeight: '0.5',
|
|
56
|
-
letterSpacing: '0.01em',
|
|
57
|
-
fontWeight: 600,
|
|
58
|
-
margin: 0,
|
|
59
|
-
fontStyle: 'normal',
|
|
60
|
-
color: '#ffffff',
|
|
61
|
-
padding: '8px 0px',
|
|
62
|
-
'@media (min-width:601px) and (max-width:960px)': {
|
|
63
|
-
fontSize: '46px', // Tablet
|
|
64
|
-
},
|
|
65
|
-
'@media (max-width:600px)': {
|
|
66
|
-
fontSize: '36px', // Mobile
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
h2: {
|
|
70
|
-
fontSize: '20px', // Desktop
|
|
71
|
-
lineHeight: '1.5',
|
|
72
|
-
letterSpacing: '0.01em',
|
|
73
|
-
fontWeight: 400,
|
|
74
|
-
margin: 0,
|
|
75
|
-
color: '#ffffff',
|
|
76
|
-
'@media (min-width:601px) and (max-width:960px)': {
|
|
77
|
-
fontSize: '20px', // Tablet
|
|
78
|
-
},
|
|
79
|
-
fontStyle: 'normal',
|
|
80
|
-
'@media (max-width:600px)': {
|
|
81
|
-
fontSize: '16px', // Mobile
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
h3: {
|
|
85
|
-
fontSize: '28px', // Desktop
|
|
86
|
-
lineHeight: '1.5',
|
|
87
|
-
letterSpacing: '0.01em',
|
|
88
|
-
fontWeight: 600,
|
|
89
|
-
margin: 0,
|
|
90
|
-
fontStyle: 'normal',
|
|
91
|
-
'@media (min-width:601px) and (max-width:960px)': {
|
|
92
|
-
fontSize: '28px', // Tablet
|
|
93
|
-
},
|
|
94
|
-
'@media (max-width:600px)': {
|
|
95
|
-
fontSize: '28px', // Mobile
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
h4: {
|
|
99
|
-
fontSize: '20px', // Desktop
|
|
100
|
-
lineHeight: '1.5',
|
|
101
|
-
letterSpacing: '0.01em',
|
|
102
|
-
fontWeight: 600,
|
|
103
|
-
margin: 0,
|
|
104
|
-
fontStyle: 'normal',
|
|
105
|
-
'@media (min-width:601px) and (max-width:960px)': {
|
|
106
|
-
fontSize: '20px', // Tablet
|
|
107
|
-
},
|
|
108
|
-
'@media (max-width:600px)': {
|
|
109
|
-
fontSize: '20px', // Mobile
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
body1: {
|
|
113
|
-
fontSize: '16px', // Desktop
|
|
114
|
-
lineHeight: '1.5',
|
|
115
|
-
letterSpacing: '0.01em',
|
|
116
|
-
fontWeight: 400,
|
|
117
|
-
fontStyle: 'normal',
|
|
118
|
-
'@media (min-width:601px) and (max-width:960px)': {
|
|
119
|
-
fontSize: '16px', // Tablet
|
|
120
|
-
},
|
|
121
|
-
'@media (max-width:600px)': {
|
|
122
|
-
fontSize: '16px', // Mobile
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
body2: {
|
|
126
|
-
fontSize: '16px', // Desktop
|
|
127
|
-
lineHeight: '1.5',
|
|
128
|
-
letterSpacing: '0.01em',
|
|
129
|
-
fontWeight: 600,
|
|
130
|
-
fontStyle: 'normal',
|
|
131
|
-
'@media (min-width:601px) and (max-width:960px)': {
|
|
132
|
-
fontSize: '16px', // Tablet
|
|
133
|
-
},
|
|
134
|
-
'@media (max-width:600px)': {
|
|
135
|
-
fontSize: '16px', // Mobile
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
spacing: 8,
|
|
21
|
+
}
|
|
140
22
|
});
|
|
141
23
|
export { theme };
|
|
142
24
|
//# sourceMappingURL=theme.js.map
|
package/dist/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,iCAAiC;AACjC,MAAM,KAAK,GAAG,WAAW,CAAC;IAExB,OAAO,EAAE;QACP,IAAI,EAAC;YACH,YAAY,EAAE;gBACd,UAAU,EAAE,MAAM;aACjB;YACD,KAAK,EAAE;gBACL,UAAU,EAAE,MAAM;gBAClB,kBAAkB,EAAE,SAAS;gBAC7B,KAAK,EAAE,MAAM;gBACb,YAAY,EAAE,MAAM;gBACpB,aAAa,EAAE,SAAS;gBACxB,YAAY,EAAE,GAAG;gBACjB,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,MAAM;gBACnB,OAAO,EAAE,SAAS;aACnB;SACF;KACF;CACF,CAAC,CAAC;AAEH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|