@basiq/connect-auth 0.1.73 → 0.1.74
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/.idea/connect-code-validaiton.iml +8 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/.eslintrc.json +0 -48
- package/.prettierrc +0 -12
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/src/App.d.ts +0 -3
- package/src/App.js +0 -141
- package/src/App.test.d.ts +0 -1
- package/src/App.test.js +0 -13
- package/src/App.test.tsx +0 -9
- package/src/App.tsx +0 -80
- package/src/actions/actions.d.ts +0 -22
- package/src/actions/actions.js +0 -140
- package/src/actions/actions.ts +0 -71
- package/src/components/modals/LoadingModal.d.ts +0 -8
- package/src/components/modals/LoadingModal.js +0 -20
- package/src/components/modals/LoadingModal.tsx +0 -28
- package/src/components/modals/index.d.ts +0 -1
- package/src/components/modals/index.js +0 -8
- package/src/components/modals/index.ts +0 -1
- package/src/components/pages/AuthScreen.d.ts +0 -9
- package/src/components/pages/AuthScreen.js +0 -148
- package/src/components/pages/AuthScreen.tsx +0 -94
- package/src/components/pages/NotFound.d.ts +0 -6
- package/src/components/pages/NotFound.js +0 -27
- package/src/components/pages/NotFound.tsx +0 -44
- package/src/components/pages/Page.d.ts +0 -18
- package/src/components/pages/Page.js +0 -24
- package/src/components/pages/Page.tsx +0 -46
- package/src/components/pages/StartScreen.d.ts +0 -9
- package/src/components/pages/StartScreen.js +0 -127
- package/src/components/pages/StartScreen.tsx +0 -77
- package/src/components/pages/index.d.ts +0 -4
- package/src/components/pages/index.js +0 -14
- package/src/components/pages/index.ts +0 -4
- package/src/components/ui/Button.d.ts +0 -10
- package/src/components/ui/Button.js +0 -17
- package/src/components/ui/Button.tsx +0 -24
- package/src/components/ui/Modal.d.ts +0 -9
- package/src/components/ui/Modal.js +0 -17
- package/src/components/ui/Modal.tsx +0 -29
- package/src/components/ui/icon.d.ts +0 -7
- package/src/components/ui/icon.js +0 -13
- package/src/components/ui/icon.tsx +0 -18
- package/src/components/ui/index.d.ts +0 -1
- package/src/components/ui/index.js +0 -8
- package/src/components/ui/index.ts +0 -1
- package/src/fonts/Mark-W1G-Bold.otf +0 -0
- package/src/fonts/Mark-W1G-Book.otf +0 -0
- package/src/fonts.d.ts +0 -1
- package/src/helpers/constants.d.ts +0 -1
- package/src/helpers/constants.js +0 -5
- package/src/helpers/constants.ts +0 -3
- package/src/helpers/hookUtils.d.ts +0 -2
- package/src/helpers/hookUtils.js +0 -10
- package/src/helpers/hookUtils.ts +0 -8
- package/src/helpers/index.d.ts +0 -3
- package/src/helpers/index.js +0 -19
- package/src/helpers/index.ts +0 -3
- package/src/helpers/utils.d.ts +0 -3
- package/src/helpers/utils.js +0 -15
- package/src/helpers/utils.ts +0 -12
- package/src/images/back.svg +0 -8
- package/src/images/error.svg +0 -10
- package/src/images/loading_indicator.svg +0 -14
- package/src/index.d.ts +0 -4
- package/src/index.js +0 -23
- package/src/index.tsx +0 -19
- package/src/locales/en/translation.json +0 -28
- package/src/locales/i18n.d.ts +0 -35
- package/src/locales/i18n.js +0 -28
- package/src/locales/i18n.ts +0 -27
- package/src/logo.svg +0 -1
- package/src/react-app-env.d.ts +0 -1
- package/src/react-i18next.d.ts +0 -9
- package/src/reportWebVitals.d.ts +0 -3
- package/src/reportWebVitals.js +0 -38
- package/src/reportWebVitals.ts +0 -15
- package/src/setupTests.d.ts +0 -1
- package/src/setupTests.js +0 -7
- package/src/setupTests.ts +0 -5
- package/src/styled.d.ts +0 -6
- package/src/styledComponents/base.d.ts +0 -4
- package/src/styledComponents/base.js +0 -32
- package/src/styledComponents/base.ts +0 -73
- package/src/styledComponents/breakpoints.d.ts +0 -15
- package/src/styledComponents/breakpoints.js +0 -35
- package/src/styledComponents/breakpoints.ts +0 -32
- package/src/styledComponents/index.d.ts +0 -4
- package/src/styledComponents/index.js +0 -20
- package/src/styledComponents/index.ts +0 -4
- package/src/styledComponents/pages/auth.d.ts +0 -10
- package/src/styledComponents/pages/auth.js +0 -29
- package/src/styledComponents/pages/auth.ts +0 -49
- package/src/styledComponents/pages/basic.d.ts +0 -23
- package/src/styledComponents/pages/basic.js +0 -75
- package/src/styledComponents/pages/basic.ts +0 -126
- package/src/styledComponents/pages/index.d.ts +0 -4
- package/src/styledComponents/pages/index.js +0 -20
- package/src/styledComponents/pages/index.ts +0 -4
- package/src/styledComponents/pages/notFound.d.ts +0 -9
- package/src/styledComponents/pages/notFound.js +0 -37
- package/src/styledComponents/pages/notFound.ts +0 -70
- package/src/styledComponents/pages/start.d.ts +0 -1
- package/src/styledComponents/pages/start.js +0 -13
- package/src/styledComponents/pages/start.ts +0 -6
- package/src/styledComponents/styles.d.ts +0 -2
- package/src/styledComponents/styles.js +0 -14
- package/src/styledComponents/styles.ts +0 -25
- package/src/styledComponents/theme.d.ts +0 -45
- package/src/styledComponents/theme.js +0 -47
- package/src/styledComponents/theme.ts +0 -58
- package/src/styledComponents/ui/basic.d.ts +0 -10
- package/src/styledComponents/ui/basic.js +0 -71
- package/src/styledComponents/ui/basic.ts +0 -96
- package/src/styledComponents/ui/button.d.ts +0 -9
- package/src/styledComponents/ui/button.js +0 -65
- package/src/styledComponents/ui/button.ts +0 -112
- package/src/styledComponents/ui/index.d.ts +0 -3
- package/src/styledComponents/ui/index.js +0 -19
- package/src/styledComponents/ui/index.ts +0 -3
- package/src/styledComponents/ui/modals.d.ts +0 -7
- package/src/styledComponents/ui/modals.js +0 -26
- package/src/styledComponents/ui/modals.ts +0 -48
- package/webpack.config.js +0 -66
package/src/reportWebVitals.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
var reportWebVitals = function (onPerfEntry) {
|
|
27
|
-
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
28
|
-
Promise.resolve().then(function () { return __importStar(require('web-vitals')); }).then(function (_a) {
|
|
29
|
-
var getCLS = _a.getCLS, getFID = _a.getFID, getFCP = _a.getFCP, getLCP = _a.getLCP, getTTFB = _a.getTTFB;
|
|
30
|
-
getCLS(onPerfEntry);
|
|
31
|
-
getFID(onPerfEntry);
|
|
32
|
-
getFCP(onPerfEntry);
|
|
33
|
-
getLCP(onPerfEntry);
|
|
34
|
-
getTTFB(onPerfEntry);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.default = reportWebVitals;
|
package/src/reportWebVitals.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReportHandler } from 'web-vitals';
|
|
2
|
-
|
|
3
|
-
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
|
4
|
-
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
5
|
-
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
|
6
|
-
getCLS(onPerfEntry);
|
|
7
|
-
getFID(onPerfEntry);
|
|
8
|
-
getFCP(onPerfEntry);
|
|
9
|
-
getLCP(onPerfEntry);
|
|
10
|
-
getTTFB(onPerfEntry);
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default reportWebVitals;
|
package/src/setupTests.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
package/src/setupTests.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
4
|
-
// allows you to do things like:
|
|
5
|
-
// expect(element).toHaveTextContent(/react/i)
|
|
6
|
-
// learn more: https://github.com/testing-library/jest-dom
|
|
7
|
-
require("@testing-library/jest-dom");
|
package/src/setupTests.ts
DELETED
package/src/styled.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const Root: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const AppContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const AppContainerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const AppContainerPage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.AppContainerPage = exports.AppContainerWrapper = exports.AppContainer = exports.Root = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
var breakpoints_1 = require("./breakpoints");
|
|
13
|
-
exports.Root = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\twhite-space: pre-line;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: fixed;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\ttransform: translate(0, -50%);\n\theight: 100%;\n\tmax-height: 812px;\n\n\ta {\n\t\ttext-decoration: none;\n\t\tcolor: ", ";\n\t}\n\th3 {\n\t\tfont-weight: normal;\n\t\t", ";\n\t\tstrong {\n\t\t\t", ";\n\t\t}\n\t}\n\t", " {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmax-height: none;\n\t\tpadding: 0;\n\t}\n"], ["\n\twhite-space: pre-line;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: fixed;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\ttransform: translate(0, -50%);\n\theight: 100%;\n\tmax-height: 812px;\n\n\ta {\n\t\ttext-decoration: none;\n\t\tcolor: ", ";\n\t}\n\th3 {\n\t\tfont-weight: normal;\n\t\t", ";\n\t\tstrong {\n\t\t\t", ";\n\t\t}\n\t}\n\t", " {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmax-height: none;\n\t\tpadding: 0;\n\t}\n"])), function (_a) {
|
|
14
|
-
var theme = _a.theme;
|
|
15
|
-
return theme.color.endeavour;
|
|
16
|
-
}, function (_a) {
|
|
17
|
-
var theme = _a.theme;
|
|
18
|
-
return theme.mixin.title();
|
|
19
|
-
}, function (_a) {
|
|
20
|
-
var theme = _a.theme;
|
|
21
|
-
return theme.mixin.title();
|
|
22
|
-
}, breakpoints_1.devices.phone);
|
|
23
|
-
exports.AppContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\twidth: 539px;\n\tbackground-color: ", ";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tpadding: 16px;\n\tbox-sizing: border-box;\n\theight: 100%;\n\n\t", " {\n\t\twidth: 100%;\n\t}\n\n\t&::-webkit-scrollbar {\n\t\tdisplay: none;\n\t}\n\t-ms-overflow-style: none;\n\tscrollbar-width: none;\n\toverflow-y: scroll;\n"], ["\n\twidth: 539px;\n\tbackground-color: ", ";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tpadding: 16px;\n\tbox-sizing: border-box;\n\theight: 100%;\n\n\t", " {\n\t\twidth: 100%;\n\t}\n\n\t&::-webkit-scrollbar {\n\t\tdisplay: none;\n\t}\n\t-ms-overflow-style: none;\n\tscrollbar-width: none;\n\toverflow-y: scroll;\n"])), function (_a) {
|
|
24
|
-
var theme = _a.theme;
|
|
25
|
-
return theme.color.white;
|
|
26
|
-
}, breakpoints_1.devices.phone);
|
|
27
|
-
exports.AppContainerWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\theight: 100%;\n\tposition: relative;\n\tborder: 1px solid ", ";\n\tborder-radius: 8px;\n\toverflow: hidden;\n\t", " {\n\t\twidth: 100%;\n\t\tborder-radius: unset;\n\t\tborder: unset;\n\t}\n"], ["\n\theight: 100%;\n\tposition: relative;\n\tborder: 1px solid ", ";\n\tborder-radius: 8px;\n\toverflow: hidden;\n\t", " {\n\t\twidth: 100%;\n\t\tborder-radius: unset;\n\t\tborder: unset;\n\t}\n"])), function (_a) {
|
|
28
|
-
var theme = _a.theme;
|
|
29
|
-
return theme.color.porcelain;
|
|
30
|
-
}, breakpoints_1.devices.phone);
|
|
31
|
-
exports.AppContainerPage = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n"], ["\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n"])));
|
|
32
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { devices } from './breakpoints';
|
|
3
|
-
|
|
4
|
-
export const Root = styled.div`
|
|
5
|
-
white-space: pre-line;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
position: fixed;
|
|
10
|
-
top: 50%;
|
|
11
|
-
left: 0;
|
|
12
|
-
right: 0;
|
|
13
|
-
transform: translate(0, -50%);
|
|
14
|
-
height: 100%;
|
|
15
|
-
max-height: 812px;
|
|
16
|
-
|
|
17
|
-
a {
|
|
18
|
-
text-decoration: none;
|
|
19
|
-
color: ${({ theme }) => theme.color.endeavour};
|
|
20
|
-
}
|
|
21
|
-
h3 {
|
|
22
|
-
font-weight: normal;
|
|
23
|
-
${({ theme }) => theme.mixin.title()};
|
|
24
|
-
strong {
|
|
25
|
-
${({ theme }) => theme.mixin.title()};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
${devices.phone} {
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
max-height: none;
|
|
32
|
-
padding: 0;
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
35
|
-
export const AppContainer = styled.div`
|
|
36
|
-
width: 539px;
|
|
37
|
-
background-color: ${({ theme }) => theme.color.white};
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
align-items: center;
|
|
41
|
-
padding: 16px;
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
height: 100%;
|
|
44
|
-
|
|
45
|
-
${devices.phone} {
|
|
46
|
-
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&::-webkit-scrollbar {
|
|
50
|
-
display: none;
|
|
51
|
-
}
|
|
52
|
-
-ms-overflow-style: none;
|
|
53
|
-
scrollbar-width: none;
|
|
54
|
-
overflow-y: scroll;
|
|
55
|
-
`;
|
|
56
|
-
export const AppContainerWrapper = styled.div`
|
|
57
|
-
height: 100%;
|
|
58
|
-
position: relative;
|
|
59
|
-
border: 1px solid ${({ theme }) => theme.color.porcelain};
|
|
60
|
-
border-radius: 8px;
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
${devices.phone} {
|
|
63
|
-
width: 100%;
|
|
64
|
-
border-radius: unset;
|
|
65
|
-
border: unset;
|
|
66
|
-
}
|
|
67
|
-
`;
|
|
68
|
-
export const AppContainerPage = styled.div`
|
|
69
|
-
width: 100%;
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
align-items: center;
|
|
73
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const devices: {
|
|
2
|
-
fold: string;
|
|
3
|
-
phoneXs: string;
|
|
4
|
-
phone: string;
|
|
5
|
-
phoneLandscape: string;
|
|
6
|
-
tabletOnly: string;
|
|
7
|
-
iPadProLandscape: string;
|
|
8
|
-
iPadProPortrait: string;
|
|
9
|
-
iPad: string;
|
|
10
|
-
tablet: string;
|
|
11
|
-
desktop: string;
|
|
12
|
-
laptop: string;
|
|
13
|
-
laptopRegularScreenWidth: string;
|
|
14
|
-
bigDesktop: string;
|
|
15
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.devices = void 0;
|
|
4
|
-
var breakpoints = {
|
|
5
|
-
mobileS: '320px',
|
|
6
|
-
mobileL: '480px',
|
|
7
|
-
tabletMinus: '767px',
|
|
8
|
-
tabletH: '781px',
|
|
9
|
-
tablet: '768px',
|
|
10
|
-
tabletL: '992px',
|
|
11
|
-
laptop: '1024px',
|
|
12
|
-
laptopH: '1080px',
|
|
13
|
-
laptopXS: '1110px',
|
|
14
|
-
laptopS: '1280px',
|
|
15
|
-
laptopM: '1366px',
|
|
16
|
-
laptopL: '1440px',
|
|
17
|
-
laptopXL: '1540px',
|
|
18
|
-
desktopS: '1800px',
|
|
19
|
-
desktop: '2560px'
|
|
20
|
-
};
|
|
21
|
-
exports.devices = {
|
|
22
|
-
fold: "@media only screen and (max-width: ".concat(breakpoints.mobileS, ")"),
|
|
23
|
-
phoneXs: "@media only screen and (max-width: ".concat(breakpoints.mobileL, ")"),
|
|
24
|
-
phone: "@media only screen and (max-width: ".concat(breakpoints.tabletMinus, ")"),
|
|
25
|
-
phoneLandscape: "@media only screen and (max-width: ".concat(breakpoints.mobileL, ")"),
|
|
26
|
-
tabletOnly: "@media only screen and (min-width: ".concat(breakpoints.tablet, ") and (max-width: ").concat(breakpoints.tabletL, ")"),
|
|
27
|
-
iPadProLandscape: "@media only screen and (height: ".concat(breakpoints.laptop, ") and (width: ").concat(breakpoints.laptopM, ")"),
|
|
28
|
-
iPadProPortrait: "@media only screen and (max-width: ".concat(breakpoints.laptop, ") and (max-height: ").concat(breakpoints.laptopM, ")"),
|
|
29
|
-
iPad: "@media only screen and (max-width: ".concat(breakpoints.laptop, ") and (max-height: ").concat(breakpoints.tablet, ") "),
|
|
30
|
-
tablet: "@media only screen and (max-width: ".concat(breakpoints.tabletL, ") "),
|
|
31
|
-
desktop: "@media only screen and (min-height: ".concat(breakpoints.tabletH, " ) and (min-width: ").concat(breakpoints.laptopS, " ) "),
|
|
32
|
-
laptop: "@media only screen and (max-width: ".concat(breakpoints.laptopS, ") "),
|
|
33
|
-
laptopRegularScreenWidth: "@media only screen (max-height: ".concat(breakpoints.laptopXS, ") and and (max-width: ").concat(breakpoints.laptopXL, ") "),
|
|
34
|
-
bigDesktop: "@media only screen and (min-width: ".concat(breakpoints.desktopS, ") and (min-height: ").concat(breakpoints.laptopH, ")) ")
|
|
35
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const breakpoints = {
|
|
2
|
-
mobileS: '320px',
|
|
3
|
-
mobileL: '480px',
|
|
4
|
-
tabletMinus: '767px',
|
|
5
|
-
tabletH: '781px',
|
|
6
|
-
tablet: '768px',
|
|
7
|
-
tabletL: '992px',
|
|
8
|
-
laptop: '1024px',
|
|
9
|
-
laptopH: '1080px',
|
|
10
|
-
laptopXS: '1110px',
|
|
11
|
-
laptopS: '1280px',
|
|
12
|
-
laptopM: '1366px',
|
|
13
|
-
laptopL: '1440px',
|
|
14
|
-
laptopXL: '1540px',
|
|
15
|
-
desktopS: '1800px',
|
|
16
|
-
desktop: '2560px'
|
|
17
|
-
};
|
|
18
|
-
export const devices = {
|
|
19
|
-
fold: `@media only screen and (max-width: ${breakpoints.mobileS})`,
|
|
20
|
-
phoneXs: `@media only screen and (max-width: ${breakpoints.mobileL})`,
|
|
21
|
-
phone: `@media only screen and (max-width: ${breakpoints.tabletMinus})`,
|
|
22
|
-
phoneLandscape: `@media only screen and (max-width: ${breakpoints.mobileL})`,
|
|
23
|
-
tabletOnly: `@media only screen and (min-width: ${breakpoints.tablet}) and (max-width: ${breakpoints.tabletL})`,
|
|
24
|
-
iPadProLandscape: `@media only screen and (height: ${breakpoints.laptop}) and (width: ${breakpoints.laptopM})`,
|
|
25
|
-
iPadProPortrait: `@media only screen and (max-width: ${breakpoints.laptop}) and (max-height: ${breakpoints.laptopM})`,
|
|
26
|
-
iPad: `@media only screen and (max-width: ${breakpoints.laptop}) and (max-height: ${breakpoints.tablet}) `,
|
|
27
|
-
tablet: `@media only screen and (max-width: ${breakpoints.tabletL}) `,
|
|
28
|
-
desktop: `@media only screen and (min-height: ${breakpoints.tabletH} ) and (min-width: ${breakpoints.laptopS} ) `,
|
|
29
|
-
laptop: `@media only screen and (max-width: ${breakpoints.laptopS}) `,
|
|
30
|
-
laptopRegularScreenWidth: `@media only screen (max-height: ${breakpoints.laptopXS}) and and (max-width: ${breakpoints.laptopXL}) `,
|
|
31
|
-
bigDesktop: `@media only screen and (min-width: ${breakpoints.desktopS}) and (min-height: ${breakpoints.laptopH})) `
|
|
32
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ui"), exports);
|
|
18
|
-
__exportStar(require("./theme"), exports);
|
|
19
|
-
__exportStar(require("./pages"), exports);
|
|
20
|
-
__exportStar(require("./base"), exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface IInputStyled {
|
|
2
|
-
filled: boolean;
|
|
3
|
-
error: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const PageConnectFooterControl: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const PageConnectFooterText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export declare const InputStyled: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, IInputStyled, never>;
|
|
8
|
-
export declare const InputContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
-
export declare const DivAsLink: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.DivAsLink = exports.InputContainer = exports.InputStyled = exports.PageConnectFooterText = exports.PageConnectFooterControl = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.PageConnectFooterControl = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tposition: absolute;\n\tbottom: 80px;\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tleft: 0;\n\tflex-direction: column;\n\tbox-sizing: border-box;\n\tpadding: 16px;\n"], ["\n\tposition: absolute;\n\tbottom: 80px;\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tleft: 0;\n\tflex-direction: column;\n\tbox-sizing: border-box;\n\tpadding: 16px;\n"])));
|
|
13
|
-
exports.PageConnectFooterText = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tcolor: ", ";\n\tfont-size: 12px;\n"], ["\n\tcolor: ", ";\n\tfont-size: 12px;\n"])), function (_a) {
|
|
14
|
-
var theme = _a.theme;
|
|
15
|
-
return theme.color.abbey;
|
|
16
|
-
});
|
|
17
|
-
exports.InputStyled = styled_components_1.default.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\twidth: 100%;\n\theight: 64px;\n\tbackground: ", ";\n\tcolor: ", ";\n\tborder-radius: 2px;\n\ttext-align: center;\n\tfont-size: 32px;\n\tborder: none;\n\tbox-shadow: none;\n\tletter-spacing: 20px;\n\ttext-indent: 20px;\n"], ["\n\twidth: 100%;\n\theight: 64px;\n\tbackground: ", ";\n\tcolor: ", ";\n\tborder-radius: 2px;\n\ttext-align: center;\n\tfont-size: 32px;\n\tborder: none;\n\tbox-shadow: none;\n\tletter-spacing: 20px;\n\ttext-indent: 20px;\n"])), function (_a) {
|
|
18
|
-
var theme = _a.theme, filled = _a.filled, error = _a.error;
|
|
19
|
-
return (error ? theme.color.wePeep : filled ? theme.color.linkWater : theme.color.porcelainSecond);
|
|
20
|
-
}, function (_a) {
|
|
21
|
-
var theme = _a.theme, error = _a.error;
|
|
22
|
-
return (error ? theme.color.cerise : theme.color.endeavour);
|
|
23
|
-
});
|
|
24
|
-
exports.InputContainer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n"], ["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n"])));
|
|
25
|
-
exports.DivAsLink = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\tcolor: ", ";\n\tdisplay: inherit;\n\tcursor: pointer;\n"], ["\n\tcolor: ", ";\n\tdisplay: inherit;\n\tcursor: pointer;\n"])), function (_a) {
|
|
26
|
-
var theme = _a.theme;
|
|
27
|
-
return theme.color.endeavour;
|
|
28
|
-
});
|
|
29
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
interface IInputStyled {
|
|
4
|
-
filled: boolean;
|
|
5
|
-
error: boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const PageConnectFooterControl = styled.div`
|
|
9
|
-
position: absolute;
|
|
10
|
-
bottom: 80px;
|
|
11
|
-
width: 100%;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
left: 0;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
padding: 16px;
|
|
19
|
-
`;
|
|
20
|
-
export const PageConnectFooterText = styled.span`
|
|
21
|
-
color: ${({ theme }) => theme.color.abbey};
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
export const InputStyled = styled.input<IInputStyled>`
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: 64px;
|
|
28
|
-
background: ${({ theme, filled, error }) => (error ? theme.color.wePeep : filled ? theme.color.linkWater : theme.color.porcelainSecond)};
|
|
29
|
-
color: ${({ theme, error }) => (error ? theme.color.cerise : theme.color.endeavour)};
|
|
30
|
-
border-radius: 2px;
|
|
31
|
-
text-align: center;
|
|
32
|
-
font-size: 32px;
|
|
33
|
-
border: none;
|
|
34
|
-
box-shadow: none;
|
|
35
|
-
letter-spacing: 20px;
|
|
36
|
-
text-indent: 20px;
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
export const InputContainer = styled.div`
|
|
40
|
-
width: 100%;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
`;
|
|
45
|
-
export const DivAsLink = styled.div`
|
|
46
|
-
color: ${({ theme }) => theme.color.endeavour};
|
|
47
|
-
display: inherit;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
interface IPageStyledProps {
|
|
2
|
-
buttonCount?: number;
|
|
3
|
-
horizontal?: boolean;
|
|
4
|
-
}
|
|
5
|
-
interface IStatusMessage {
|
|
6
|
-
error?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface IPageControlsSectionProps {
|
|
9
|
-
notEmpty: boolean;
|
|
10
|
-
}
|
|
11
|
-
interface IHorizontalProps {
|
|
12
|
-
horizontal?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const PageStyled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IPageStyledProps, never>;
|
|
15
|
-
export declare const PageSubtitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
export declare const PageMainContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
export declare const PageControlsSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IPageControlsSectionProps, never>;
|
|
18
|
-
export declare const PageShadowWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IHorizontalProps, never>;
|
|
19
|
-
export declare const PageShadow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
|
-
export declare const PageHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
-
export declare const PageContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
22
|
-
export declare const StatusMessage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IStatusMessage, never>;
|
|
23
|
-
export {};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
-
}) : function(o, v) {
|
|
20
|
-
o["default"] = v;
|
|
21
|
-
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
-
if (mod && mod.__esModule) return mod;
|
|
24
|
-
var result = {};
|
|
25
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
-
__setModuleDefault(result, mod);
|
|
27
|
-
return result;
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.StatusMessage = exports.PageContent = exports.PageHeader = exports.PageShadow = exports.PageShadowWrapper = exports.PageControlsSection = exports.PageMainContainer = exports.PageSubtitle = exports.PageStyled = void 0;
|
|
31
|
-
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
-
var ui_1 = require("../ui");
|
|
33
|
-
var helpers_1 = require("../../helpers");
|
|
34
|
-
var breakpoints_1 = require("../breakpoints");
|
|
35
|
-
exports.PageStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\twidth: 100%;\n\theight: 100%;\n\t", "\n"], ["\n\twidth: 100%;\n\theight: 100%;\n\t", "\n"])), function (_a) {
|
|
36
|
-
var buttonCount = _a.buttonCount, horizontal = _a.horizontal;
|
|
37
|
-
return buttonCount && buttonCount > 0
|
|
38
|
-
? horizontal
|
|
39
|
-
? 'padding-bottom: 96px;'
|
|
40
|
-
: "padding-bottom: ".concat(46 + 50 * buttonCount, "px;")
|
|
41
|
-
: 'padding-bottom: 16px;';
|
|
42
|
-
});
|
|
43
|
-
exports.PageSubtitle = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\t", ";\n"], ["\n\t", ";\n"])), function (_a) {
|
|
44
|
-
var theme = _a.theme;
|
|
45
|
-
return theme.mixin.subtitle();
|
|
46
|
-
});
|
|
47
|
-
exports.PageMainContainer = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n"], ["\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n"])));
|
|
48
|
-
exports.PageControlsSection = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\tposition: absolute;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\t", ";\n\tbackground-color: ", ";\n\tborder-top: 1px solid ", ";\n"], ["\n\tposition: absolute;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\t", ";\n\tbackground-color: ", ";\n\tborder-top: 1px solid ", ";\n"])), function (_a) {
|
|
49
|
-
var notEmpty = _a.notEmpty;
|
|
50
|
-
return "padding: ".concat(notEmpty ? '16px' : '0');
|
|
51
|
-
}, function (_a) {
|
|
52
|
-
var theme = _a.theme;
|
|
53
|
-
return theme.color.white;
|
|
54
|
-
}, function (_a) {
|
|
55
|
-
var theme = _a.theme;
|
|
56
|
-
return theme.color.porcelainLight;
|
|
57
|
-
});
|
|
58
|
-
exports.PageShadowWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\twidth: 100%;\n\t", "\n"], ["\n\twidth: 100%;\n\t", "\n"])), function (_a) {
|
|
59
|
-
var horizontal = _a.horizontal;
|
|
60
|
-
return horizontal && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\n\t\t\t", " {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t\tmargin-right: 16px;\n\n\t\t\t\t&:last-child {\n\t\t\t\t\tmargin-right: unset;\n\t\t\t\t}\n\t\t\t}\n\t\t"], ["\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\n\t\t\t", " {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t\tmargin-right: 16px;\n\n\t\t\t\t&:last-child {\n\t\t\t\t\tmargin-right: unset;\n\t\t\t\t}\n\t\t\t}\n\t\t"])), ui_1.ButtonStyled);
|
|
61
|
-
});
|
|
62
|
-
exports.PageShadow = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n\tposition: absolute;\n\theight: 71px;\n\tleft: 0;\n\tright: 0;\n\ttop: -71px;\n\tbackground: linear-gradient(180deg, #cecece 0%, ", " 100%);\n\topacity: 0.8;\n\ttransform: rotate(-180deg);\n\tpointer-events: none;\n"], ["\n\tposition: absolute;\n\theight: 71px;\n\tleft: 0;\n\tright: 0;\n\ttop: -71px;\n\tbackground: linear-gradient(180deg, #cecece 0%, ", " 100%);\n\topacity: 0.8;\n\ttransform: rotate(-180deg);\n\tpointer-events: none;\n"])), (0, helpers_1.hexToRGBa)('#cecece', 0));
|
|
63
|
-
exports.PageHeader = styled_components_1.default.header(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n\tmargin-bottom: 32px;\n\twidth: 100%;\n\tborder-radius: 8px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground-color: ", ";\n\tpadding: 16px;\n\tbox-sizing: border-box;\n\theight: 150px;\n\t", " {\n\t\tbackground-color: unset;\n\t\toverflow: initial;\n\t\theight: 150px;\n\t\tpadding: 16px;\n\t}\n\timg {\n\t\tborder-radius: 4px;\n\t\twidth: auto !important;\n\t\theight: auto;\n\t\tmax-width: 100%;\n\t\tmax-height: 100%;\n\t\t", " {\n\t\t\twidth: 100%;\n\t\t\tpadding: 16px;\n\t\t}\n\t}\n"], ["\n\tmargin-bottom: 32px;\n\twidth: 100%;\n\tborder-radius: 8px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground-color: ", ";\n\tpadding: 16px;\n\tbox-sizing: border-box;\n\theight: 150px;\n\t", " {\n\t\tbackground-color: unset;\n\t\toverflow: initial;\n\t\theight: 150px;\n\t\tpadding: 16px;\n\t}\n\timg {\n\t\tborder-radius: 4px;\n\t\twidth: auto !important;\n\t\theight: auto;\n\t\tmax-width: 100%;\n\t\tmax-height: 100%;\n\t\t", " {\n\t\t\twidth: 100%;\n\t\t\tpadding: 16px;\n\t\t}\n\t}\n"])), function (_a) {
|
|
64
|
-
var theme = _a.theme;
|
|
65
|
-
return theme.color.porcelainSecond;
|
|
66
|
-
}, breakpoints_1.devices.phone, breakpoints_1.devices.phone);
|
|
67
|
-
exports.PageContent = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n\twidth: 100%;\n"], ["\n\twidth: 100%;\n"])));
|
|
68
|
-
exports.StatusMessage = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n\twidth: 100%;\n\tbackground: ", ";\n\tborder-radius: 4px;\n\tpadding: 11px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tfont-weight: 400;\n\tfont-size: 14px;\n\tcolor: ", ";\n\tmargin-bottom: 16px;\n"], ["\n\twidth: 100%;\n\tbackground: ", ";\n\tborder-radius: 4px;\n\tpadding: 11px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tfont-weight: 400;\n\tfont-size: 14px;\n\tcolor: ", ";\n\tmargin-bottom: 16px;\n"])), function (_a) {
|
|
69
|
-
var theme = _a.theme, error = _a.error;
|
|
70
|
-
return (error ? theme.color.wePeep : theme.color.iceberg);
|
|
71
|
-
}, function (_a) {
|
|
72
|
-
var theme = _a.theme, error = _a.error;
|
|
73
|
-
return (error ? theme.color.cerise : theme.color.gossamer);
|
|
74
|
-
});
|
|
75
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { ButtonStyled } from '../ui';
|
|
3
|
-
import { hexToRGBa } from '../../helpers';
|
|
4
|
-
import { devices } from '../breakpoints';
|
|
5
|
-
|
|
6
|
-
interface IPageStyledProps {
|
|
7
|
-
buttonCount?: number;
|
|
8
|
-
horizontal?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
interface IStatusMessage {
|
|
12
|
-
error?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface IPageControlsSectionProps {
|
|
16
|
-
notEmpty: boolean;
|
|
17
|
-
}
|
|
18
|
-
interface IHorizontalProps {
|
|
19
|
-
horizontal?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export const PageStyled = styled.div<IPageStyledProps>`
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
|
-
${({ buttonCount, horizontal }) =>
|
|
25
|
-
buttonCount && buttonCount > 0
|
|
26
|
-
? horizontal
|
|
27
|
-
? 'padding-bottom: 96px;'
|
|
28
|
-
: `padding-bottom: ${46 + 50 * buttonCount}px;`
|
|
29
|
-
: 'padding-bottom: 16px;'}
|
|
30
|
-
`;
|
|
31
|
-
export const PageSubtitle = styled.div`
|
|
32
|
-
${({ theme }) => theme.mixin.subtitle()};
|
|
33
|
-
`;
|
|
34
|
-
|
|
35
|
-
export const PageMainContainer = styled.div`
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
`;
|
|
40
|
-
export const PageControlsSection = styled.div<IPageControlsSectionProps>`
|
|
41
|
-
position: absolute;
|
|
42
|
-
bottom: 0;
|
|
43
|
-
left: 0;
|
|
44
|
-
right: 0;
|
|
45
|
-
${({ notEmpty }) => `padding: ${notEmpty ? '16px' : '0'}`};
|
|
46
|
-
background-color: ${({ theme }) => theme.color.white};
|
|
47
|
-
border-top: 1px solid ${({ theme }) => theme.color.porcelainLight};
|
|
48
|
-
`;
|
|
49
|
-
export const PageShadowWrapper = styled.div<IHorizontalProps>`
|
|
50
|
-
width: 100%;
|
|
51
|
-
${({ horizontal }) =>
|
|
52
|
-
horizontal &&
|
|
53
|
-
css`
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: space-between;
|
|
57
|
-
|
|
58
|
-
${ButtonStyled} {
|
|
59
|
-
margin-bottom: 0;
|
|
60
|
-
margin-right: 16px;
|
|
61
|
-
|
|
62
|
-
&:last-child {
|
|
63
|
-
margin-right: unset;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
`}
|
|
67
|
-
`;
|
|
68
|
-
export const PageShadow = styled.div`
|
|
69
|
-
position: absolute;
|
|
70
|
-
height: 71px;
|
|
71
|
-
left: 0;
|
|
72
|
-
right: 0;
|
|
73
|
-
top: -71px;
|
|
74
|
-
background: linear-gradient(180deg, #cecece 0%, ${hexToRGBa('#cecece', 0)} 100%);
|
|
75
|
-
opacity: 0.8;
|
|
76
|
-
transform: rotate(-180deg);
|
|
77
|
-
pointer-events: none;
|
|
78
|
-
`;
|
|
79
|
-
export const PageHeader = styled.header`
|
|
80
|
-
margin-bottom: 32px;
|
|
81
|
-
width: 100%;
|
|
82
|
-
border-radius: 8px;
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
background-color: ${({ theme }) => theme.color.porcelainSecond};
|
|
87
|
-
padding: 16px;
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
height: 150px;
|
|
90
|
-
${devices.phone} {
|
|
91
|
-
background-color: unset;
|
|
92
|
-
overflow: initial;
|
|
93
|
-
height: 150px;
|
|
94
|
-
padding: 16px;
|
|
95
|
-
}
|
|
96
|
-
img {
|
|
97
|
-
border-radius: 4px;
|
|
98
|
-
width: auto !important;
|
|
99
|
-
height: auto;
|
|
100
|
-
max-width: 100%;
|
|
101
|
-
max-height: 100%;
|
|
102
|
-
${devices.phone} {
|
|
103
|
-
width: 100%;
|
|
104
|
-
padding: 16px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
`;
|
|
108
|
-
|
|
109
|
-
export const PageContent = styled.div`
|
|
110
|
-
width: 100%;
|
|
111
|
-
`;
|
|
112
|
-
export const StatusMessage = styled.div<IStatusMessage>`
|
|
113
|
-
width: 100%;
|
|
114
|
-
background: ${({ theme, error }) => (error ? theme.color.wePeep : theme.color.iceberg)};
|
|
115
|
-
border-radius: 4px;
|
|
116
|
-
padding: 11px;
|
|
117
|
-
box-sizing: border-box;
|
|
118
|
-
text-align: center;
|
|
119
|
-
display: flex;
|
|
120
|
-
justify-content: center;
|
|
121
|
-
align-items: center;
|
|
122
|
-
font-weight: 400;
|
|
123
|
-
font-size: 14px;
|
|
124
|
-
color: ${({ theme, error }) => (error ? theme.color.cerise : theme.color.gossamer)};
|
|
125
|
-
margin-bottom: 16px;
|
|
126
|
-
`;
|