@basiq/connect-auth 0.1.71 → 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 -3
- 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 -6
- package/src/index.js +0 -23
- package/src/index.tsx +0 -28
- 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
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { SimpleButton } from './basic';
|
|
3
|
-
import { ButtonType } from '../../components/ui/Button';
|
|
4
|
-
|
|
5
|
-
export const ButtonLabel = styled.span`
|
|
6
|
-
font-size: 18px;
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
interface IButtonStyled {
|
|
10
|
-
buttonType?: ButtonType;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
onClick: () => void;
|
|
13
|
-
}
|
|
14
|
-
export const ButtonStyled = styled(SimpleButton)<IButtonStyled>`
|
|
15
|
-
min-height: 40px;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
background-color: ${(props) => props.theme.color.endeavour};
|
|
18
|
-
text-align: center;
|
|
19
|
-
box-shadow: none;
|
|
20
|
-
border: none;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
color: ${({ theme }) => theme.color.white};
|
|
23
|
-
|
|
24
|
-
&:last-child {
|
|
25
|
-
margin-bottom: 0;
|
|
26
|
-
}
|
|
27
|
-
&:hover {
|
|
28
|
-
background-color: ${({ theme }) => theme.color.bostonBlue};
|
|
29
|
-
}
|
|
30
|
-
&:active {
|
|
31
|
-
background-color: ${({ theme }) => theme.color.congressBlue};
|
|
32
|
-
}
|
|
33
|
-
${({ buttonType, theme }) => {
|
|
34
|
-
switch (buttonType) {
|
|
35
|
-
case 'secondary':
|
|
36
|
-
return css`
|
|
37
|
-
color: ${theme.color.ebony};
|
|
38
|
-
background-color: ${theme.color.porcelainSecond};
|
|
39
|
-
&:hover {
|
|
40
|
-
color: ${theme.color.abbey};
|
|
41
|
-
background-color: ${theme.color.porcelainSecondLight};
|
|
42
|
-
}
|
|
43
|
-
&:active {
|
|
44
|
-
background-color: ${theme.color.ironSecond};
|
|
45
|
-
}
|
|
46
|
-
`;
|
|
47
|
-
case 'tiny':
|
|
48
|
-
return css`
|
|
49
|
-
width: auto;
|
|
50
|
-
min-height: 32px;
|
|
51
|
-
padding: 6px 16px;
|
|
52
|
-
box-sizing: border-box;
|
|
53
|
-
font-size: 14px;
|
|
54
|
-
color: ${theme.color.cyprus};
|
|
55
|
-
background-color: ${theme.color.hokeyPokey};
|
|
56
|
-
&:hover {
|
|
57
|
-
background-color: ${theme.color.hokeyPokeyLight};
|
|
58
|
-
}
|
|
59
|
-
&:active {
|
|
60
|
-
background-color: ${theme.color.anzac};
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
case 'back':
|
|
65
|
-
return css`
|
|
66
|
-
background: none;
|
|
67
|
-
justify-content: initial;
|
|
68
|
-
padding: 0;
|
|
69
|
-
min-height: unset;
|
|
70
|
-
color: ${theme.color.casper};
|
|
71
|
-
width: auto;
|
|
72
|
-
img {
|
|
73
|
-
width: 25px;
|
|
74
|
-
filter: invert(68%) sepia(13%) saturate(348%) hue-rotate(155deg) brightness(91%) contrast(94%);
|
|
75
|
-
}
|
|
76
|
-
&:hover {
|
|
77
|
-
color: ${theme.color.abbey};
|
|
78
|
-
background-color: unset;
|
|
79
|
-
img {
|
|
80
|
-
filter: invert(31%) sepia(10%) saturate(313%) hue-rotate(155deg) brightness(96%) contrast(87%);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
&:active {
|
|
84
|
-
color: ${theme.color.jumbo};
|
|
85
|
-
background-color: unset;
|
|
86
|
-
img {
|
|
87
|
-
filter: invert(49%) sepia(0%) saturate(5%) hue-rotate(29deg) brightness(99%) contrast(83%);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
&:disabled {
|
|
91
|
-
color: ${theme.color.porcelain};
|
|
92
|
-
background-color: unset !important;
|
|
93
|
-
img {
|
|
94
|
-
color: ${theme.color.porcelain};
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
`;
|
|
98
|
-
default:
|
|
99
|
-
return '';
|
|
100
|
-
}
|
|
101
|
-
}}
|
|
102
|
-
img {
|
|
103
|
-
color: ${({ theme }) => theme.color.casper};
|
|
104
|
-
margin-right: 3px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:disabled {
|
|
108
|
-
background-color: ${({ theme }) => theme.color.porcelain};
|
|
109
|
-
color: ${({ theme }) => theme.color.casper};
|
|
110
|
-
cursor: not-allowed;
|
|
111
|
-
}
|
|
112
|
-
`;
|
|
@@ -1,19 +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("./basic"), exports);
|
|
18
|
-
__exportStar(require("./button"), exports);
|
|
19
|
-
__exportStar(require("./modals"), exports);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface IModalStyled {
|
|
2
|
-
disableTransparency: boolean;
|
|
3
|
-
}
|
|
4
|
-
export declare const ModalStyled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IModalStyled, never>;
|
|
5
|
-
export declare const LoadingModalStyled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IModalStyled, never>;
|
|
6
|
-
export declare const LoadingModalText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export {};
|
|
@@ -1,26 +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.LoadingModalText = exports.LoadingModalStyled = exports.ModalStyled = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
var helpers_1 = require("../../helpers");
|
|
13
|
-
var basic_1 = require("./basic");
|
|
14
|
-
exports.ModalStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground-color: ", ";\n\tz-index: 1000000000;\n\tpadding: 16px;\n\n\ta {\n\t\tmargin-bottom: 8px;\n\t}\n"], ["\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground-color: ", ";\n\tz-index: 1000000000;\n\tpadding: 16px;\n\n\ta {\n\t\tmargin-bottom: 8px;\n\t}\n"])), function (_a) {
|
|
15
|
-
var theme = _a.theme, disableTransparency = _a.disableTransparency;
|
|
16
|
-
return (disableTransparency ? theme.color.jumbo : (0, helpers_1.hexToRGBa)(theme.color.blackPearl, 0.7));
|
|
17
|
-
});
|
|
18
|
-
exports.LoadingModalStyled = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tbox-shadow: ", ";\n\tborder-radius: 2px;\n\tpadding: 16px 12px;\n\tfont-size: 16px;\n\tline-height: 16px;\n\tcolor: ", ";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\n\t", " {\n\t\tfilter: invert(1);\n\t\tmargin-bottom: 15px;\n\t\twidth: 48px;\n\t}\n"], ["\n\tbox-shadow: ", ";\n\tborder-radius: 2px;\n\tpadding: 16px 12px;\n\tfont-size: 16px;\n\tline-height: 16px;\n\tcolor: ", ";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\n\t", " {\n\t\tfilter: invert(1);\n\t\tmargin-bottom: 15px;\n\t\twidth: 48px;\n\t}\n"])), function (_a) {
|
|
19
|
-
var theme = _a.theme, disableTransparency = _a.disableTransparency;
|
|
20
|
-
return (disableTransparency ? 'none' : "0 1px 2px ".concat((0, helpers_1.hexToRGBa)(theme.color.blueBayoux, 0.3)));
|
|
21
|
-
}, function (_a) {
|
|
22
|
-
var theme = _a.theme;
|
|
23
|
-
return theme.color.white;
|
|
24
|
-
}, basic_1.IconWrapper);
|
|
25
|
-
exports.LoadingModalText = styled_components_1.default.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tfont-size: 18px;\n\twhite-space: pre-line;\n\ttext-align: center;\n\tline-height: 30px;\n"], ["\n\tfont-size: 18px;\n\twhite-space: pre-line;\n\ttext-align: center;\n\tline-height: 30px;\n"])));
|
|
26
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { hexToRGBa } from '../../helpers';
|
|
3
|
-
import { IconWrapper } from './basic';
|
|
4
|
-
|
|
5
|
-
interface IModalStyled {
|
|
6
|
-
disableTransparency: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const ModalStyled = styled.div<IModalStyled>`
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 0;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
right: 0;
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
background-color: ${({ theme, disableTransparency }) => (disableTransparency ? theme.color.jumbo : hexToRGBa(theme.color.blackPearl, 0.7))};
|
|
19
|
-
z-index: 1000000000;
|
|
20
|
-
padding: 16px;
|
|
21
|
-
|
|
22
|
-
a {
|
|
23
|
-
margin-bottom: 8px;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
export const LoadingModalStyled = styled.div<IModalStyled>`
|
|
27
|
-
box-shadow: ${({ theme, disableTransparency }) => (disableTransparency ? 'none' : `0 1px 2px ${hexToRGBa(theme.color.blueBayoux, 0.3)}`)};
|
|
28
|
-
border-radius: 2px;
|
|
29
|
-
padding: 16px 12px;
|
|
30
|
-
font-size: 16px;
|
|
31
|
-
line-height: 16px;
|
|
32
|
-
color: ${({ theme }) => theme.color.white};
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
align-items: center;
|
|
36
|
-
|
|
37
|
-
${IconWrapper} {
|
|
38
|
-
filter: invert(1);
|
|
39
|
-
margin-bottom: 15px;
|
|
40
|
-
width: 48px;
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
export const LoadingModalText = styled.span`
|
|
44
|
-
font-size: 18px;
|
|
45
|
-
white-space: pre-line;
|
|
46
|
-
text-align: center;
|
|
47
|
-
line-height: 30px;
|
|
48
|
-
`;
|
package/webpack.config.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
mode: 'production',
|
|
5
|
-
resolve: {
|
|
6
|
-
extensions: ['.js', '.jsx', '.ts', '.tsx']
|
|
7
|
-
},
|
|
8
|
-
entry: {
|
|
9
|
-
main: './src/index.tsx'
|
|
10
|
-
},
|
|
11
|
-
output: {
|
|
12
|
-
path: path.resolve(__dirname, 'dist'),
|
|
13
|
-
filename: 'main.js',
|
|
14
|
-
library: 'BasiqConnect',
|
|
15
|
-
libraryTarget: 'umd',
|
|
16
|
-
publicPath: '/dist/',
|
|
17
|
-
umdNamedDefine: true
|
|
18
|
-
},
|
|
19
|
-
module: {
|
|
20
|
-
rules: [
|
|
21
|
-
{
|
|
22
|
-
test: /\.ts|\.tsx$/,
|
|
23
|
-
use: 'ts-loader',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
test: /.*\/src\/.*\.(js|jsx)$/,
|
|
27
|
-
exclude: /(node_modules|bower_components)/,
|
|
28
|
-
use: {
|
|
29
|
-
loader: 'babel-loader'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
test: /\.(gif|png|jpe?g|svg)$/i,
|
|
34
|
-
use: {
|
|
35
|
-
loader: 'url-loader',
|
|
36
|
-
options: {
|
|
37
|
-
limit: 10000,
|
|
38
|
-
name: '[name].[ext]'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
|
44
|
-
loader: "file-loader"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
test: /\.html$/,
|
|
48
|
-
use: ['html-loader']
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
externals: {
|
|
53
|
-
react: {
|
|
54
|
-
commonjs: 'react',
|
|
55
|
-
commonjs2: 'react',
|
|
56
|
-
amd: 'React',
|
|
57
|
-
root: 'React'
|
|
58
|
-
},
|
|
59
|
-
'react-dom': {
|
|
60
|
-
commonjs: 'react-dom',
|
|
61
|
-
commonjs2: 'react-dom',
|
|
62
|
-
amd: 'ReactDOM',
|
|
63
|
-
root: 'ReactDOM'
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|