@basiq/connect-auth 0.1.7 → 0.1.10

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.
Files changed (99) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +59 -1
  3. package/dist/App.d.ts +3 -0
  4. package/dist/actions/actions.d.ts +40 -0
  5. package/dist/components/BasiqConnect.d.ts +5 -0
  6. package/dist/components/modals/LoadingModal.d.ts +7 -0
  7. package/{src/components/modals/index.ts → dist/components/modals/index.d.ts} +1 -1
  8. package/dist/components/pages/AuthScreen.d.ts +9 -0
  9. package/dist/components/pages/NotFound.d.ts +5 -0
  10. package/dist/components/pages/Page.d.ts +18 -0
  11. package/dist/components/pages/StartScreen.d.ts +10 -0
  12. package/{src/components/pages/index.ts → dist/components/pages/index.d.ts} +4 -4
  13. package/dist/components/ui/Button.d.ts +9 -0
  14. package/dist/components/ui/Modal.d.ts +9 -0
  15. package/dist/components/ui/icon.d.ts +6 -0
  16. package/{src/components/ui/index.ts → dist/components/ui/index.d.ts} +1 -1
  17. package/dist/connect-auth.cjs.development.js +1566 -0
  18. package/dist/connect-auth.cjs.development.js.map +1 -0
  19. package/dist/connect-auth.cjs.production.min.js +2 -0
  20. package/dist/connect-auth.cjs.production.min.js.map +1 -0
  21. package/dist/connect-auth.esm.js +1558 -0
  22. package/dist/connect-auth.esm.js.map +1 -0
  23. package/dist/helpers/constants.d.ts +2 -0
  24. package/dist/helpers/hookUtils.d.ts +2 -0
  25. package/{src/helpers/index.ts → dist/helpers/index.d.ts} +3 -3
  26. package/dist/helpers/utils.d.ts +4 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +8 -0
  29. package/dist/locales/i18n.d.ts +36 -0
  30. package/dist/setupTests.d.ts +1 -0
  31. package/dist/styledComponents/base.d.ts +4 -0
  32. package/dist/styledComponents/breakpoints.d.ts +15 -0
  33. package/{src/styledComponents/index.ts → dist/styledComponents/index.d.ts} +4 -4
  34. package/dist/styledComponents/pages/auth.d.ts +10 -0
  35. package/dist/styledComponents/pages/basic.d.ts +23 -0
  36. package/{src/styledComponents/pages/index.ts → dist/styledComponents/pages/index.d.ts} +4 -4
  37. package/dist/styledComponents/pages/notFound.d.ts +9 -0
  38. package/dist/styledComponents/pages/start.d.ts +1 -0
  39. package/dist/styledComponents/styles.d.ts +2 -0
  40. package/dist/styledComponents/theme.d.ts +45 -0
  41. package/dist/styledComponents/ui/basic.d.ts +10 -0
  42. package/dist/styledComponents/ui/button.d.ts +9 -0
  43. package/{src/styledComponents/ui/index.ts → dist/styledComponents/ui/index.d.ts} +3 -3
  44. package/dist/styledComponents/ui/modals.d.ts +7 -0
  45. package/package.json +56 -89
  46. package/.babelrc +0 -3
  47. package/.eslintrc.json +0 -47
  48. package/.prettierrc +0 -12
  49. package/config-overrides.js +0 -12
  50. package/index.js +0 -1
  51. package/public/favicon.ico +0 -0
  52. package/public/index.html +0 -43
  53. package/public/logo192.png +0 -0
  54. package/public/logo512.png +0 -0
  55. package/public/manifest.json +0 -25
  56. package/public/robots.txt +0 -3
  57. package/src/App.css +0 -38
  58. package/src/App.test.tsx +0 -9
  59. package/src/App.tsx +0 -81
  60. package/src/actions/actions.ts +0 -71
  61. package/src/components/modals/LoadingModal.tsx +0 -28
  62. package/src/components/pages/AuthScreen.tsx +0 -94
  63. package/src/components/pages/NotFound.tsx +0 -44
  64. package/src/components/pages/Page.tsx +0 -46
  65. package/src/components/pages/StartScreen.tsx +0 -77
  66. package/src/components/ui/Button.tsx +0 -24
  67. package/src/components/ui/Modal.tsx +0 -29
  68. package/src/components/ui/icon.tsx +0 -18
  69. package/src/fonts/Mark-W1G-Bold.otf +0 -0
  70. package/src/fonts/Mark-W1G-Book.otf +0 -0
  71. package/src/fonts.d.ts +0 -1
  72. package/src/helpers/constants.ts +0 -3
  73. package/src/helpers/hookUtils.ts +0 -8
  74. package/src/helpers/utils.ts +0 -12
  75. package/src/images/back.svg +0 -8
  76. package/src/images/error.svg +0 -10
  77. package/src/images/loading_indicator.svg +0 -14
  78. package/src/index.css +0 -11
  79. package/src/index.tsx +0 -28
  80. package/src/locales/en/translation.json +0 -28
  81. package/src/locales/i18n.ts +0 -27
  82. package/src/logo.svg +0 -1
  83. package/src/react-app-env.d.ts +0 -1
  84. package/src/react-i18next.d.ts +0 -9
  85. package/src/reportWebVitals.ts +0 -15
  86. package/src/setupTests.ts +0 -5
  87. package/src/styled.d.ts +0 -6
  88. package/src/styledComponents/base.ts +0 -73
  89. package/src/styledComponents/breakpoints.ts +0 -32
  90. package/src/styledComponents/pages/auth.ts +0 -49
  91. package/src/styledComponents/pages/basic.ts +0 -126
  92. package/src/styledComponents/pages/notFound.ts +0 -70
  93. package/src/styledComponents/pages/start.ts +0 -6
  94. package/src/styledComponents/styles.ts +0 -25
  95. package/src/styledComponents/theme.ts +0 -58
  96. package/src/styledComponents/ui/basic.ts +0 -96
  97. package/src/styledComponents/ui/button.ts +0 -112
  98. package/src/styledComponents/ui/modals.ts +0 -48
  99. package/tsconfig.json +0 -21
@@ -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,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/tsconfig.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "esModuleInterop": true,
8
- "allowSyntheticDefaultImports": true,
9
- "strict": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "noFallthroughCasesInSwitch": true,
12
- "module": "esnext",
13
- "moduleResolution": "node",
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
- "noEmit": true,
17
- "jsx": "react",
18
- "strictNullChecks": false
19
- },
20
- "include": ["src"]
21
- }