@basiq/connect-auth 0.1.79 → 0.1.81

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 (48) hide show
  1. package/package.json +7 -6
  2. package/src/App.tsx +0 -96
  3. package/src/BasiqConnect.tsx +0 -17
  4. package/src/actions/actions.ts +0 -72
  5. package/src/components/modals/LoadingModal.tsx +0 -28
  6. package/src/components/modals/index.ts +0 -1
  7. package/src/components/pages/AuthScreen.tsx +0 -96
  8. package/src/components/pages/NotFound.tsx +0 -44
  9. package/src/components/pages/Page.tsx +0 -46
  10. package/src/components/pages/StartScreen.tsx +0 -83
  11. package/src/components/pages/index.ts +0 -4
  12. package/src/components/ui/Button.tsx +0 -24
  13. package/src/components/ui/Modal.tsx +0 -29
  14. package/src/components/ui/icon.tsx +0 -18
  15. package/src/components/ui/index.ts +0 -1
  16. package/src/custom.d.ts +0 -9
  17. package/src/fonts/Mark-W1G-Bold.otf +0 -0
  18. package/src/fonts/Mark-W1G-Book.otf +0 -0
  19. package/src/fonts.d.ts +0 -1
  20. package/src/helpers/constants.ts +0 -2
  21. package/src/helpers/hookUtils.ts +0 -8
  22. package/src/helpers/index.ts +0 -3
  23. package/src/helpers/utils.ts +0 -12
  24. package/src/images/back.svg +0 -8
  25. package/src/images/error.svg +0 -10
  26. package/src/images/loading_indicator.svg +0 -14
  27. package/src/index.tsx +0 -1
  28. package/src/locales/en/translation.json +0 -29
  29. package/src/locales/i18n.ts +0 -27
  30. package/src/logo.svg +0 -1
  31. package/src/react-app-env.d.ts +0 -1
  32. package/src/react-i18next.d.ts +0 -9
  33. package/src/setupTests.ts +0 -5
  34. package/src/styled.d.ts +0 -6
  35. package/src/styledComponents/base.ts +0 -73
  36. package/src/styledComponents/breakpoints.ts +0 -32
  37. package/src/styledComponents/index.ts +0 -4
  38. package/src/styledComponents/pages/auth.ts +0 -49
  39. package/src/styledComponents/pages/basic.ts +0 -126
  40. package/src/styledComponents/pages/index.ts +0 -4
  41. package/src/styledComponents/pages/notFound.ts +0 -70
  42. package/src/styledComponents/pages/start.ts +0 -6
  43. package/src/styledComponents/styles.ts +0 -25
  44. package/src/styledComponents/theme.ts +0 -58
  45. package/src/styledComponents/ui/basic.ts +0 -96
  46. package/src/styledComponents/ui/button.ts +0 -112
  47. package/src/styledComponents/ui/index.ts +0 -3
  48. package/src/styledComponents/ui/modals.ts +0 -48
@@ -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,3 +0,0 @@
1
- export * from './basic';
2
- export * from './button';
3
- export * from './modals';
@@ -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
- `;