@rebilly/instruments 3.12.3-beta.0 → 3.13.2-beta.0

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 (84) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +43 -66
  3. package/dist/index.min.js +43 -66
  4. package/package.json +3 -6
  5. package/src/functions/destroy.js +8 -2
  6. package/src/functions/mount/fetch-data.js +9 -2
  7. package/src/functions/mount/index.js +15 -10
  8. package/src/functions/mount/mount.spec.js +10 -11
  9. package/src/functions/mount/setup-framepay-theme.js +30 -72
  10. package/src/functions/mount/setup-options.js +2 -2
  11. package/src/functions/mount/{setup-styles.js → setup-styles-vars.js} +9 -7
  12. package/src/functions/purchase.js +2 -5
  13. package/src/functions/setup.js +3 -6
  14. package/src/functions/show.js +2 -2
  15. package/src/functions/show.spec.js +4 -4
  16. package/src/functions/update.spec.js +4 -3
  17. package/src/instance.js +4 -1
  18. package/src/loader/index.js +57 -33
  19. package/src/storefront/index.js +2 -5
  20. package/src/storefront/payment-instruments.js +7 -0
  21. package/src/style/base/__snapshots__/theme.spec.js.snap +136 -220
  22. package/src/style/base/default-theme.js +187 -14
  23. package/src/style/base/index.js +487 -79
  24. package/src/style/base/theme.js +3 -4
  25. package/src/style/base/theme.spec.js +2 -3
  26. package/src/style/index.js +4 -24
  27. package/src/style/utils/color-values.js +1 -1
  28. package/src/style/utils/minifyCss.js +14 -0
  29. package/src/views/common/iframe/base-iframe.js +3 -2
  30. package/src/views/common/iframe/event-listeners.js +12 -9
  31. package/src/views/common/iframe/method-iframe.js +3 -1
  32. package/src/views/common/iframe/modal-iframe.js +4 -2
  33. package/src/views/common/iframe/view-iframe.js +3 -1
  34. package/src/views/confirmation.js +12 -7
  35. package/src/views/errors.js +95 -0
  36. package/src/views/method-selector/express-methods.js +51 -0
  37. package/src/views/method-selector/generate-framepay-config.js +54 -0
  38. package/src/views/method-selector/generate-framepay-config.spec.js +195 -0
  39. package/src/views/method-selector/get-payment-methods.js +0 -1
  40. package/src/views/method-selector/index.js +45 -58
  41. package/src/views/method-selector/method-selector.spec.js +1 -1
  42. package/src/views/method-selector/mount-express-methods.js +66 -26
  43. package/src/views/modal.js +1 -1
  44. package/src/views/result.js +3 -3
  45. package/src/views/summary.js +24 -190
  46. package/tests/mocks/storefront-api-mock.js +48 -27
  47. package/src/style/browserslist.js +0 -1
  48. package/src/style/components/accordion.js +0 -140
  49. package/src/style/components/address.js +0 -55
  50. package/src/style/components/button.js +0 -117
  51. package/src/style/components/divider.js +0 -39
  52. package/src/style/components/forms/checkbox.js +0 -75
  53. package/src/style/components/forms/field.js +0 -56
  54. package/src/style/components/forms/form.js +0 -18
  55. package/src/style/components/forms/input.js +0 -77
  56. package/src/style/components/forms/label.js +0 -55
  57. package/src/style/components/forms/radio.js +0 -80
  58. package/src/style/components/forms/select.js +0 -86
  59. package/src/style/components/forms/validation.js +0 -72
  60. package/src/style/components/icons.js +0 -13
  61. package/src/style/components/index.js +0 -39
  62. package/src/style/components/loader.js +0 -41
  63. package/src/style/components/methods.js +0 -97
  64. package/src/style/components/overlay.js +0 -24
  65. package/src/style/helpers/index.js +0 -54
  66. package/src/style/payment-instruments/content.js +0 -8
  67. package/src/style/payment-instruments/index.js +0 -14
  68. package/src/style/payment-instruments/payment-card.js +0 -27
  69. package/src/style/payment-instruments/payment-instrument-list.js +0 -44
  70. package/src/style/payment-instruments/payment-instrument.js +0 -55
  71. package/src/style/utils/remove-empty-null.js +0 -10
  72. package/src/style/vendor/framepay.js +0 -28
  73. package/src/style/vendor/postmate.js +0 -18
  74. package/src/style/views/confirmation.js +0 -26
  75. package/src/style/views/index.js +0 -16
  76. package/src/style/views/method-selector.js +0 -11
  77. package/src/style/views/modal.js +0 -91
  78. package/src/style/views/result.js +0 -52
  79. package/src/style/views/summary.js +0 -118
  80. package/src/views/__snapshots__/summary.spec.js.snap +0 -246
  81. package/src/views/method-selector/express-methods/apple-pay.js +0 -92
  82. package/src/views/method-selector/express-methods/index.js +0 -25
  83. package/src/views/method-selector/mount-methods.js +0 -178
  84. package/src/views/summary.spec.js +0 -145
@@ -1,13 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to the icons component.
3
- // -----------------------------------------------------------------------------
4
- export const icons = () => `
5
- /**
6
- * Icons
7
- */
8
- .rebilly-instruments-icon {
9
- width: var(--rebilly-fontLineHeightBase, calc(var(--rebilly-fontSizeBase) * 1.5));
10
- height: var(--rebilly-fontLineHeightBase, calc(var(--rebilly-fontSizeBase) * 1.5));
11
- fill: var(--rebilly-colorText);
12
- }
13
- `;
@@ -1,39 +0,0 @@
1
- import { expressMethods, methods } from './methods';
2
- import { form } from './forms/form';
3
- import { checkbox } from './forms/checkbox';
4
- import { radio } from './forms/radio';
5
- import { field } from './forms/field';
6
- import { input } from './forms/input';
7
- import { label } from './forms/label';
8
- import { select } from './forms/select';
9
- import { validation } from './forms/validation';
10
- import { button } from './button';
11
- import { divider } from './divider';
12
- import { loader } from './loader';
13
- import { icons } from './icons';
14
- import { address } from './address';
15
- import { overlay } from './overlay';
16
- import { accordion } from './accordion';
17
-
18
- // Order of components matters for style cascade
19
- export const components = (theme) => `
20
- /* Components
21
- ------------------------------------------------------------ */
22
- ${expressMethods(theme)}
23
- ${methods()}
24
- ${form(theme)}
25
- ${field(theme)}
26
- ${input(theme)}
27
- ${select(theme)}
28
- ${label(theme)}
29
- ${checkbox()}
30
- ${radio()}
31
- ${validation(theme)}
32
- ${button(theme)}
33
- ${divider(theme)}
34
- ${loader(theme)}
35
- ${icons(theme)}
36
- ${address(theme)}
37
- ${overlay(theme)}
38
- ${accordion()}
39
- `;
@@ -1,41 +0,0 @@
1
- import { lighten } from '../utils/color-values';
2
- // -----------------------------------------------------------------------------
3
- // This file contains all styles related to the loader component.
4
- // -----------------------------------------------------------------------------
5
- export const loader = (theme) => `
6
- /**
7
- * Loader
8
- */
9
- .rebilly-instruments-loader {
10
- display: none;
11
- position: absolute;
12
- top: 0;
13
- bottom: 0;
14
- left: 0;
15
- right: 0;
16
- justify-content: center;
17
- align-items: center;
18
- flex-direction: column;
19
- background-color: var(--rebilly-colorBackground);
20
- z-index: 1000;
21
- transition: all 200ms;
22
- }
23
-
24
- .rebilly-instruments-loader.is-active {
25
- display: flex;
26
- }
27
-
28
- .rebilly-instruments-loader-spinner {
29
- border: 4px solid ${lighten(theme.colorPrimary, 80)};
30
- border-top: 4px solid var(--rebilly-colorPrimary);
31
- border-radius: 50%;
32
- width: 40px;
33
- height: 40px;
34
- animation: spin 0.5s ease infinite;
35
- }
36
-
37
- @keyframes spin {
38
- 0% { transform: rotate(0deg); }
39
- 100% { transform: rotate(360deg); }
40
- }
41
- `;
@@ -1,97 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to the methods component.
3
- // -----------------------------------------------------------------------------
4
- export const expressMethods = () => `
5
- /**
6
- * Express methods
7
- */
8
-
9
- @keyframes rebillyExpressShine {
10
- to {
11
- background-position-x: -200%;
12
- }
13
- }
14
-
15
- .rebilly-instruments-express-methods.is-compact {
16
- border: 1px solid var(--rebilly-colorMutedBorder);
17
- padding: var(--rebilly-spacings-s);
18
- padding-top: calc(var(--rebilly-spacings-xs) + var(--rebilly-spacings-s));
19
- padding-top: calc(var(--rebilly-fontSizeBase) + var(--rebilly-spacings-2xs));
20
- border-radius: 4px;
21
- position: relative;
22
- }
23
-
24
- .rebilly-instruments-express-methods .rebilly-instruments-iframe {
25
- display: block;
26
- margin-bottom: 0;
27
- height: 44px;
28
- }
29
-
30
- .rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > * {
31
- border-radius: 6px;
32
- margin-bottom: var(--rebilly-spacings-xs);
33
- background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);
34
- background-size: 200% 100%;
35
- animation: 1.5s rebillyExpressShine linear infinite;
36
- height: 44px;
37
- }
38
- .rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > *:last-child {
39
- margin: 0;
40
- }
41
-
42
- .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {
43
- display: flex;
44
- justify-content: center;
45
- }
46
-
47
- .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {
48
- flex: 1 1 0px;
49
- max-width: 260px;
50
- margin: 0 var(--rebilly-spacings-xs);
51
- }
52
- .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:first-child {
53
- margin-left: 0;
54
- }
55
- .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {
56
- margin-right: 0;
57
- }
58
-
59
- .rebilly-instruments-express-methods .rebilly-instruments-express-methods-label {
60
- display: none;
61
- }
62
- .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-label {
63
- position: absolute;
64
- top: 0; left: 50%;
65
- transform: translateX(-50%) translateY(-50%);
66
- color: var(--rebilly-colorText);
67
- padding: var(--rebilly-spacings-2xs) var(--rebilly-spacings-s);
68
- line-height: 1;
69
- background: var(--rebilly-colorBackground);
70
- display: inline-block;
71
- font-weight: 500;
72
- min-height: auto;
73
- margin: 0;
74
- white-space: nowrap;
75
- }
76
-
77
- @media (max-width: 600px) {
78
- .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {
79
- flex-direction: column;
80
- }
81
- .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {
82
- max-width: 100%;
83
- margin: 0 0 var(--rebilly-spacings-s);
84
- }
85
- .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {
86
- margin: 0;
87
- }
88
- }
89
- `;
90
-
91
- export const methods = () => `
92
- /**
93
- * Methods
94
- */
95
-
96
- .rebilly-instruments-methods {}
97
- `;
@@ -1,24 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to the overlay component.
3
- // -----------------------------------------------------------------------------
4
- export const overlay = () => `
5
- /**
6
- * Overlay
7
- */
8
- .rebilly-instruments-overlay {
9
- position: fixed;
10
- left: 0;
11
- right: 0;
12
- top: 0;
13
- bottom: 0;
14
- background: rgba(0,0,0,0.8);
15
- display: flex;
16
- justify-content: center;
17
- align-items: center;
18
- color: #FFF;
19
- font-family: var(--rebilly-fontFamily);
20
- font-size: calc(var(--rebilly-fontSizeBase) * 1.12);
21
- line-height: var(--rebilly-fontLineHeightBase, calc(var(--rebilly-fontSizeBase) * 1.5));
22
- z-index: 9001
23
- }
24
- `;
@@ -1,54 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to helpers.
3
- // -----------------------------------------------------------------------------
4
-
5
- export const helpers = () => `
6
- /* Helpers
7
- ------------------------------------------------------------ */
8
- .rebilly-instruments-helper-visually-hidden {
9
- border: 0;
10
- clip: rect(0 0 0 0);
11
- height: 1px;
12
- margin: -1px;
13
- overflow: hidden;
14
- padding: 0;
15
- position: absolute;
16
- width: 1px;
17
- }
18
-
19
- .rebilly-instruments-helper-mt-xxs { margin-top: var(--rebilly-spacings-2xs) !important }
20
- .rebilly-instruments-helper-mt-xs { margin-top: var(--rebilly-spacings-xs) !important }
21
- .rebilly-instruments-helper-mt-s { margin-top: var(--rebilly-spacings-s) !important }
22
- .rebilly-instruments-helper-mt-m { margin-top: var(--rebilly-spacings-base) !important }
23
- .rebilly-instruments-helper-mt-l { margin-top: var(--rebilly-spacings-l) !important }
24
- .rebilly-instruments-helper-mt-xl { margin-top: var(--rebilly-spacings-xl) !important }
25
- .rebilly-instruments-helper-mt-xxl { margin-top: var(--rebilly-spacings-2xl) !important }
26
- .rebilly-instruments-helper-mt-0 { margin-top: 0!important }
27
- .rebilly-instruments-helper-mr-xxs { margin-right: var(--rebilly-spacings-2xs) !important }
28
- .rebilly-instruments-helper-mr-xs { margin-right: var(--rebilly-spacings-xs) !important }
29
- .rebilly-instruments-helper-mr-s { margin-right: var(--rebilly-spacings-s) !important }
30
- .rebilly-instruments-helper-mr-m { margin-right: var(--rebilly-spacings-base) !important }
31
- .rebilly-instruments-helper-mr-l { margin-right: var(--rebilly-spacings-l) !important }
32
- .rebilly-instruments-helper-mr-xl { margin-right: var(--rebilly-spacings-xl) !important }
33
- .rebilly-instruments-helper-mr-xxl { margin-right: var(--rebilly-spacings-2xl) !important }
34
- .rebilly-instruments-helper-mr-0 { margin-right: 0!important }
35
- .rebilly-instruments-helper-mb-xxs { margin-bottom: var(--rebilly-spacings-2xs) !important }
36
- .rebilly-instruments-helper-mb-xs { margin-bottom: var(--rebilly-spacings-xs) !important }
37
- .rebilly-instruments-helper-mb-s { margin-bottom: var(--rebilly-spacings-s) !important }
38
- .rebilly-instruments-helper-mb-m { margin-bottom: var(--rebilly-spacings-base) !important }
39
- .rebilly-instruments-helper-mb-l { margin-bottom: var(--rebilly-spacings-l) !important }
40
- .rebilly-instruments-helper-mb-xl { margin-bottom: var(--rebilly-spacings-xl) !important }
41
- .rebilly-instruments-helper-mb-xxl { margin-bottom: var(--rebilly-spacings-2xl) !important }
42
- .rebilly-instruments-helper-mb-0 { margin-bottom: 0!important }
43
- .rebilly-instruments-helper-ml-xxs { margin-left: var(--rebilly-spacings-2xs) !important }
44
- .rebilly-instruments-helper-ml-xs { margin-left: var(--rebilly-spacings-xs) !important }
45
- .rebilly-instruments-helper-ml-s { margin-left: var(--rebilly-spacings-s) !important }
46
- .rebilly-instruments-helper-ml-m { margin-left: var(--rebilly-spacings-base) !important }
47
- .rebilly-instruments-helper-ml-l { margin-left: var(--rebilly-spacings-l) !important }
48
- .rebilly-instruments-helper-ml-xl { margin-left: var(--rebilly-spacings-xl) !important }
49
- .rebilly-instruments-helper-ml-xxl { margin-left: var(--rebilly-spacings-2xl) !important }
50
- .rebilly-instruments-helper-ml-0 { margin-left: 0!important }
51
-
52
- .rebilly-instruments-display-flex { display: flex!important }
53
- .rebilly-instruments-align-items-center { align-items: center!important }
54
- `;
@@ -1,8 +0,0 @@
1
- export const methodContent = () => `
2
- /**
3
- * Content
4
- */
5
- .rebilly-instruments-method-content {
6
- padding: 2px;
7
- }
8
- `;
@@ -1,14 +0,0 @@
1
- import { methodContent } from './content';
2
- import { paymentCard } from './payment-card';
3
- import { paymentInstrumentList } from './payment-instrument-list';
4
- import { paymentInstrument } from './payment-instrument';
5
-
6
- // Order of components matters for style cascade
7
- export const paymentInstruments = (theme) => `
8
- /* Payment instruments
9
- ------------------------------------------------------------ */
10
- ${methodContent()}
11
- ${paymentCard(theme)}
12
- ${paymentInstrument()}
13
- ${paymentInstrumentList()}
14
- `;
@@ -1,27 +0,0 @@
1
- export const paymentCard = () => `
2
- /**
3
- * Payment card
4
- */
5
- .rebilly-instruments-payment-card-brands {
6
- display: inline-flex;
7
- width: 100%;
8
- justify-content: flex-end;
9
- margin-top: var(--rebilly-spacings-s);
10
- }
11
-
12
- .rebilly-instruments-payment-card-brands figure {
13
- margin: 0 0 0 var(--rebilly-spacings-2xs);
14
- padding: 0;
15
- height: 26px;
16
- }
17
-
18
- .rebilly-instruments-payment-card-brands figure img {
19
- width: auto;
20
- height: 100%;
21
- border-radius: 4px;
22
- }
23
-
24
- .rebilly-instruments-modal-container.rebilly-instruments-payment-card {
25
- max-width: 600px;
26
- }
27
- `;
@@ -1,44 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to the payment instrument list component.
3
- // -----------------------------------------------------------------------------
4
- export const paymentInstrumentList = () => `
5
- .rebilly-instruments-payment-instrument-list {
6
- margin: 0;
7
- padding: 0;
8
- }
9
-
10
- .rebilly-instruments-payment-instrument-list > li {
11
- display: flex;
12
- width: 100%;
13
- align-items: center;
14
- list-style-type: none;
15
- padding: var(--rebilly-spacings-xs) 0;
16
- }
17
-
18
- .rebilly-instruments-payment-instrument-list > li:first-child {
19
- padding-top: 0;
20
- }
21
-
22
- .rebilly-instruments-payment-instrument-list > li:last-child {
23
- padding-bottom: 0;
24
- }
25
-
26
- .rebilly-instruments-payment-instrument-list > li + li {
27
- border-top: 1px solid var(--rebilly-colorMutedBorder);
28
- }
29
-
30
- .rebilly-instruments-payment-instrument-list.is-relaxed > li {
31
- min-height: var(--rebilly-spacings-form-element-min-height);
32
- }
33
-
34
- .rebilly-instruments-payment-instrument-list .rebilly-instruments-form-field {
35
- width: 100%;
36
- }
37
-
38
- .rebilly-instruments-payment-instrument-list > li .rebilly-instruments-payment-instrument-list-container {
39
- display: flex;
40
- justify-content: space-between;
41
- align-items: center;
42
- width: 100%;
43
- }
44
- `;
@@ -1,55 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to the payment instrument component.
3
- // -----------------------------------------------------------------------------
4
- export const paymentInstrument = () => `
5
- .rebilly-instruments-payment-instrument {
6
- display: inline-flex;
7
- align-items: center;
8
- justify-content: space-between;
9
- height: 26px;
10
- margin: 0 0 var(--rebilly-spacings-l);
11
- }
12
-
13
- .rebilly-instruments-payment-instrument figure {
14
- margin: 0 var(--rebilly-spacings-2xs) 0 0;
15
- height: 26px;
16
- padding: 0;
17
- }
18
-
19
- .rebilly-instruments-payment-instrument figure img {
20
- width: auto;
21
- height: 100%;
22
- border-radius: 4px;
23
- }
24
-
25
- .rebilly-instruments-payment-instrument-brand,
26
- .rebilly-instruments-payment-instrument-exp,
27
- .rebilly-instruments-payment-instrument-last4 {
28
- display: inline-block;
29
- white-space: nowrap;
30
- }
31
-
32
- .rebilly-instruments-payment-instrument-brand {
33
- margin: 0 0 0 var(--rebilly-spacings-xs);
34
- }
35
-
36
- .rebilly-instruments-payment-instrument-last4 {
37
- margin: 0 var(--rebilly-spacings-s);
38
- }
39
-
40
- .rebilly-instruments-payment-instrument-exp {
41
- color: var(--rebilly-colorMutedText);
42
- }
43
-
44
- @media screen and (max-width: 480px) {
45
- .rebilly-instruments-payment-instrument-exp {
46
- display: none;
47
- }
48
- }
49
-
50
- @media screen and (max-width: 320px) {
51
- .rebilly-instruments-payment-instrument-brand {
52
- display: none;
53
- }
54
- }
55
- `;
@@ -1,10 +0,0 @@
1
- export default () => ({
2
- postcssPlugin: 'postcss-remove-empty-null',
3
- Once (root) {
4
- root.walkAtRules(decl => {
5
- if ((decl.value === '\'\'' || decl.value === '""' || decl.value.includes('null')) && decl.prop !== 'content') {
6
- decl.remove();
7
- }
8
- });
9
- }
10
- })
@@ -1,28 +0,0 @@
1
- export const framepayStyle = () => `
2
- .rebilly-instruments-framepay .rebilly-framepay {
3
- min-height: var(--rebilly-spacings-form-element-min-height);
4
- border: var(--rebilly-inputBorder);
5
- margin-bottom: 0;
6
- background: var(--rebilly-inputColorBackground);
7
- border-radius: var(--rebilly-inputBorderRadius);
8
- box-shadow: var(--rebilly-inputBoxShadow);
9
- }
10
-
11
- .rebilly-instruments-framepay .rebilly-framepay.rebilly-framepay-focus {
12
- background: var(--rebilly-inputFocusColorBackground);
13
- border: var(--rebilly-inputFocusBorder);
14
- border-radius: var(--rebilly-inputFocusBorderRadius);
15
- box-shadow: var(--rebilly-inputFocusBoxShadow);
16
- }
17
-
18
- .rebilly-instruments-framepay .rebilly-framepay.rebilly-framepay-invalid {
19
- border-color: var(--rebilly-colorDanger);
20
- box-shadow: none;
21
- }
22
-
23
- .rebilly-instruments-framepay .rebilly-framepay.rebilly-framepay-google-pay {
24
- min-height: auto;
25
- border: none;
26
- margin: 0;
27
- }
28
- `;
@@ -1,18 +0,0 @@
1
- export const postmateStyle = () => `
2
- .rebilly-instruments-iframe {
3
- border: none;
4
- width: 100%;
5
- padding: 0;
6
- min-height: var(--rebilly-spacings-form-element-min-height);
7
- }
8
-
9
- .rebilly-instruments-iframe-overlay {
10
- top: -2px;
11
- left: -2px;
12
- width: calc(100vw + 2px);
13
- height: 100vh;
14
- min-height: calc(100vh + 4px);
15
- position: fixed;
16
- z-index: 99999999999999;
17
- }
18
- `;
@@ -1,26 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to the confirmation view.
3
- // -----------------------------------------------------------------------------
4
- export const confirmation = () => `
5
- /**
6
- * Confirmation
7
- */
8
- .rebilly-instruments-confirmation {
9
- padding: 2px;
10
- }
11
-
12
- .rebilly-instruments-confirmation-go-back-link {
13
- display: inline-block;
14
- margin-bottom: var(--rebilly-spacings-base);
15
- margin-left: calc(var(--rebilly-spacings-xs) * -1);
16
- }
17
-
18
- .rebilly-instruments-confirmation-address-title {
19
- display: flex;
20
- justify-content: flex-start;
21
- }
22
-
23
- .rebilly-instruments-confirmation-address-title .rebilly-instruments-link {
24
- margin-left: var(--rebilly-spacings-s);
25
- }
26
- `;
@@ -1,16 +0,0 @@
1
- import { summary } from './summary';
2
- import { methodSelector } from './method-selector';
3
- import { confirmation } from './confirmation';
4
- import { result } from './result';
5
- import { modal } from './modal';
6
-
7
- // Order of components matters for style cascade
8
- export const views = (theme) => `
9
- /* Views
10
- ------------------------------------------------------------ */
11
- ${summary(theme)}
12
- ${methodSelector(theme)}
13
- ${confirmation(theme)}
14
- ${result(theme)}
15
- ${modal(theme)}
16
- `;
@@ -1,11 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to the selector view.
3
- // -----------------------------------------------------------------------------
4
- export const methodSelector = () => `
5
- /**
6
- * Method selector
7
- */
8
- .rebilly-instruments-method-selector.has-express-compact {
9
- padding-top: var(--rebilly-spacings-s);
10
- }
11
- `;
@@ -1,91 +0,0 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all styles related to the modal view.
3
- // -----------------------------------------------------------------------------
4
- export const modal = () => `
5
- /**
6
- * Modal
7
- */
8
-
9
- .rebilly-instruments-modal-overlay {
10
- position: fixed;
11
- top: 0;
12
- left: 0;
13
- overflow-x: hidden;
14
- overflow-y: auto;
15
- z-index: 1055;
16
- padding: 30px;
17
- width: 100%;
18
- height: 100%;
19
- margin: 0;
20
- padding: 0;
21
- transition: all 0.12s ease-in-out;
22
- background-color: rgba(0,0,0,0.7);
23
- opacity: 0
24
- }
25
-
26
- .rebilly-instruments-modal-overlay.is-visible {
27
- opacity: 1;
28
- }
29
-
30
- .rebilly-instruments-modal-container {
31
- transition: all .24s ease-in-out;
32
- position: relative;
33
- max-width: 800px;
34
- background: var(--rebilly-colorBackground);
35
- margin: 50px auto 20px;
36
- box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);
37
- border-radius: 4px;
38
- transform: translateY(-50px);
39
- opacity: 0;
40
- }
41
-
42
- .rebilly-instruments-modal-container.is-visible {
43
- transform: translateY(0);
44
- opacity: 1;
45
- }
46
-
47
- .rebilly-instruments-modal-container.is-redirect {
48
- max-width: 60vw;
49
- width: auto;
50
- }
51
-
52
- .rebilly-instruments-modal-content {
53
- transition: all .15s;
54
- padding: 20px;
55
- overflow: hidden;
56
- background-color: var(--rebilly-colorBackground);
57
- text-align: center;
58
- border-radius: 4px;
59
- }
60
-
61
- .rebilly-instruments-modal-content .rebilly-instruments-iframe {
62
- transition: all .15s;
63
- height: auto;
64
- min-height: 360px;
65
- }
66
-
67
- .rebilly-instruments-modal-container.is-redirect .rebilly-instruments-modal-content {
68
- padding: 0;
69
- }
70
-
71
- .rebilly-instruments-modal-close {
72
- position: absolute;
73
- width: 30px;
74
- height: 30px;
75
- top: -40px;
76
- right: 0;
77
- fill: #FFF;
78
- cursor: pointer;
79
- }
80
-
81
- .rebilly-instruments-modal-close:hover{
82
- color: #000;
83
- }
84
-
85
- @media screen and (max-width: 480px) {
86
- .rebilly-instruments-modal-container.is-redirect {
87
- max-width: 96vw;
88
- margin: 20px auto 20px;
89
- }
90
- }
91
- `;