@everymatrix/cashier-error 1.37.11 → 1.38.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-error",
3
- "version": "1.37.11",
3
+ "version": "1.38.0",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "bf020b7053c86226ac419f42cea1dabb823cee47"
38
+ "gitHead": "7070080d10ab3c85ed4a5d2eeb2442cc9ff8fb2d"
39
39
  }
@@ -3,6 +3,7 @@
3
3
  import { _, addNewMessages, setLocale } from './i18n';
4
4
  import { TRANSLATIONS } from './translations';
5
5
  export let assetsurl: string = '';
6
+ export let imgurl: string = '';
6
7
  export let lang: string = 'en';
7
8
  export let hidebuttons: string = '';
8
9
  export let errorcode: string = '';
@@ -63,9 +64,10 @@
63
64
  </script>
64
65
 
65
66
  <div class="CashierError" bind:this={customStylingContainer}>
67
+ <div class="CashierErrorContent">
66
68
  <slot name="icon" class="CashierErrorIcon">
67
69
  {#if assetsurl}
68
- <img src="{`${assetsurl}/error-general-icon.png`}" width="300px" alt="error">
70
+ <img src="{`${assetsurl}/${imgurl || 'error-general-icon.png'}`}" width="300px" alt="error">
69
71
  {/if}
70
72
  </slot>
71
73
  <slot name="title" class="CashierErrorTitle">
@@ -81,16 +83,25 @@
81
83
  </slot>
82
84
  </div>
83
85
  {/if}
86
+ </div>
84
87
  </div>
85
88
 
86
89
 
87
90
  <style lang="scss">
88
91
  .CashierError {
92
+ display: flex;
89
93
  width: 100%;
94
+ justify-content: center;
95
+ }
96
+ .CashierErrorContent {
90
97
  display: flex;
91
98
  flex-direction: column;
99
+ width: 100%;
100
+ max-width: 400px;
92
101
  align-items: center;
93
102
  gap: var(--emw--spacing-large, 20px);
103
+ box-sizing: border-box;
104
+ padding: 0 var(--emw--spacing-medium, 15px);
94
105
  }
95
106
  .CashierErrorTitle {
96
107
  color: var(--emw--color-black, #000);