@hypersokrat/hyper-pay 1.0.1 → 1.0.3

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 (118) hide show
  1. package/dist/index.es.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/package.json +1 -1
  4. package/.storybook/main.js +0 -9
  5. package/.storybook/preview.js +0 -41
  6. package/rollup.config.js +0 -60
  7. package/src/assets/css/main-theme.css +0 -311
  8. package/src/assets/fonts/LackRegular/Lack-Regular.eot +0 -0
  9. package/src/assets/fonts/LackRegular/Lack-Regular.svg +0 -5284
  10. package/src/assets/fonts/LackRegular/Lack-Regular.ttf +0 -0
  11. package/src/assets/fonts/LackRegular/Lack-Regular.woff +0 -0
  12. package/src/assets/fonts/LackRegular/Lack-Regular.woff2 +0 -0
  13. package/src/assets/fonts/Marcellus/Marcellus-Regular.eot +0 -0
  14. package/src/assets/fonts/Marcellus/Marcellus-Regular.svg +0 -1966
  15. package/src/assets/fonts/Marcellus/Marcellus-Regular.ttf +0 -0
  16. package/src/assets/fonts/Marcellus/Marcellus-Regular.woff +0 -0
  17. package/src/assets/fonts/Marcellus/Marcellus-Regular.woff2 +0 -0
  18. package/src/assets/fonts/Marcellus/demo.html +0 -192
  19. package/src/assets/fonts/Marcellus/stylesheet.css +0 -13
  20. package/src/assets/fonts/Poppins/Poppins-Regular.eot +0 -0
  21. package/src/assets/fonts/Poppins/Poppins-Regular.svg +0 -3213
  22. package/src/assets/fonts/Poppins/Poppins-Regular.ttf +0 -0
  23. package/src/assets/fonts/Poppins/Poppins-Regular.woff +0 -0
  24. package/src/assets/fonts/Poppins/Poppins-Regular.woff2 +0 -0
  25. package/src/assets/fonts/Poppins/stylesheet.css +0 -13
  26. package/src/assets/fonts/UberMove/UberMove-Medium.eot +0 -0
  27. package/src/assets/fonts/UberMove/UberMove-Medium.svg +0 -4049
  28. package/src/assets/fonts/UberMove/UberMove-Medium.ttf +0 -0
  29. package/src/assets/fonts/UberMove/UberMove-Medium.woff +0 -0
  30. package/src/assets/fonts/UberMove/UberMove-Medium.woff2 +0 -0
  31. package/src/assets/fonts/UberMove/UberMove-Regular.eot +0 -0
  32. package/src/assets/fonts/UberMove/UberMove-Regular.svg +0 -4055
  33. package/src/assets/fonts/UberMove/UberMove-Regular.ttf +0 -0
  34. package/src/assets/fonts/UberMove/UberMove-Regular.woff +0 -0
  35. package/src/assets/fonts/UberMove/UberMove-Regular.woff2 +0 -0
  36. package/src/assets/img/currency/bitcoin.png +0 -0
  37. package/src/assets/img/currency/bnb.png +0 -0
  38. package/src/assets/img/currency/ethereum.jpg +0 -0
  39. package/src/assets/img/currency/ethereum.png +0 -0
  40. package/src/assets/img/currency/metamask.png +0 -0
  41. package/src/assets/img/currency/tether.png +0 -0
  42. package/src/components/Button/Button.css +0 -29
  43. package/src/components/Button/Button.jsx +0 -20
  44. package/src/components/Button/index.js +0 -1
  45. package/src/components/Metamask/Metamask.css +0 -14
  46. package/src/components/Metamask/Metamask.jsx +0 -79
  47. package/src/components/Metamask/index.js +0 -1
  48. package/src/components/Modal/Modal.css +0 -138
  49. package/src/components/Modal/Modal.jsx +0 -297
  50. package/src/components/Modal/index.js +0 -1
  51. package/src/components/Tabs/Tab.jsx +0 -32
  52. package/src/components/Tabs/Tabs.css +0 -52
  53. package/src/components/Tabs/Tabs.jsx +0 -15
  54. package/src/components/Tabs/index.js +0 -2
  55. package/src/hooks/index.js +0 -1
  56. package/src/hooks/useConnect.js +0 -136
  57. package/src/index.js +0 -6
  58. package/src/stories/Button.stories.js +0 -25
  59. package/src/stories/Metamask.stories.js +0 -13
  60. package/src/stories/Modal.stories.js +0 -23
  61. package/src/stories/Tabs.stories.js +0 -33
  62. package/src/translates.json +0 -713
  63. package/src/utils/WBNB.json +0 -153
  64. package/src/utils/chainConfig.js +0 -47
  65. package/storybook-static/0.2ab68c35.iframe.bundle.js +0 -3
  66. package/storybook-static/0.2ab68c35.iframe.bundle.js.LICENSE.txt +0 -8
  67. package/storybook-static/0.2ab68c35.iframe.bundle.js.map +0 -1
  68. package/storybook-static/0.e5489f12ab94aa497491.manager.bundle.js +0 -2
  69. package/storybook-static/0.e5489f12ab94aa497491.manager.bundle.js.LICENSE.txt +0 -8
  70. package/storybook-static/1.7d0dd704b26935d06a04.manager.bundle.js +0 -1
  71. package/storybook-static/1.8c220da3.iframe.bundle.js +0 -3
  72. package/storybook-static/1.8c220da3.iframe.bundle.js.LICENSE.txt +0 -14
  73. package/storybook-static/1.8c220da3.iframe.bundle.js.map +0 -1
  74. package/storybook-static/10.398dd7a0522c1ff2b3a8.manager.bundle.js +0 -1
  75. package/storybook-static/10.dab4e389.iframe.bundle.js +0 -3
  76. package/storybook-static/10.dab4e389.iframe.bundle.js.LICENSE.txt +0 -12
  77. package/storybook-static/10.dab4e389.iframe.bundle.js.map +0 -1
  78. package/storybook-static/11.e487b823.iframe.bundle.js +0 -1
  79. package/storybook-static/2.21286279.iframe.bundle.js +0 -1
  80. package/storybook-static/3.17beddd8.iframe.bundle.js +0 -1
  81. package/storybook-static/5.23ef655b5acff6eac8ad.manager.bundle.js +0 -1
  82. package/storybook-static/6.d2f96bcf3b11b0f1a44b.manager.bundle.js +0 -1
  83. package/storybook-static/7.5ef1ca09.iframe.bundle.js +0 -3
  84. package/storybook-static/7.5ef1ca09.iframe.bundle.js.LICENSE.txt +0 -31
  85. package/storybook-static/7.5ef1ca09.iframe.bundle.js.map +0 -1
  86. package/storybook-static/7.a1c5467faea0833b53d1.manager.bundle.js +0 -1
  87. package/storybook-static/8.65ec2749796fb05c258c.manager.bundle.js +0 -2
  88. package/storybook-static/8.65ec2749796fb05c258c.manager.bundle.js.LICENSE.txt +0 -12
  89. package/storybook-static/8.869413af.iframe.bundle.js +0 -1
  90. package/storybook-static/9.4080b133.iframe.bundle.js +0 -1
  91. package/storybook-static/9.acd0ef9064e0667433ac.manager.bundle.js +0 -2
  92. package/storybook-static/9.acd0ef9064e0667433ac.manager.bundle.js.LICENSE.txt +0 -31
  93. package/storybook-static/favicon.ico +0 -0
  94. package/storybook-static/iframe.html +0 -364
  95. package/storybook-static/index.html +0 -51
  96. package/storybook-static/main.93d2c8aa127bed373c8a.manager.bundle.js +0 -2
  97. package/storybook-static/main.93d2c8aa127bed373c8a.manager.bundle.js.LICENSE.txt +0 -54
  98. package/storybook-static/main.f075035f.iframe.bundle.js +0 -3
  99. package/storybook-static/main.f075035f.iframe.bundle.js.LICENSE.txt +0 -1
  100. package/storybook-static/main.f075035f.iframe.bundle.js.map +0 -1
  101. package/storybook-static/project.json +0 -1
  102. package/storybook-static/runtime~main.8e5cf3a9715a0d32d390.manager.bundle.js +0 -1
  103. package/storybook-static/runtime~main.f8e70bd7.iframe.bundle.js +0 -1
  104. package/storybook-static/static/media/Marcellus-Regular.2fb50c7c.eot +0 -0
  105. package/storybook-static/static/media/Marcellus-Regular.62064e40.woff +0 -0
  106. package/storybook-static/static/media/Marcellus-Regular.8ae4aad6.woff2 +0 -0
  107. package/storybook-static/static/media/Marcellus-Regular.e15056e4.ttf +0 -0
  108. package/storybook-static/static/media/Marcellus-Regular.e719d450.svg +0 -1966
  109. package/storybook-static/static/media/Poppins-Regular.387f9003.woff +0 -0
  110. package/storybook-static/static/media/Poppins-Regular.a20e7b73.eot +0 -0
  111. package/storybook-static/static/media/Poppins-Regular.ad19729d.woff2 +0 -0
  112. package/storybook-static/static/media/Poppins-Regular.c533b610.svg +0 -3213
  113. package/storybook-static/static/media/Poppins-Regular.e09d5cf4.ttf +0 -0
  114. package/storybook-static/vendors~main.7c47903ea43e951c3707.manager.bundle.js +0 -2
  115. package/storybook-static/vendors~main.7c47903ea43e951c3707.manager.bundle.js.LICENSE.txt +0 -55
  116. package/storybook-static/vendors~main.aea8d710.iframe.bundle.js +0 -3
  117. package/storybook-static/vendors~main.aea8d710.iframe.bundle.js.LICENSE.txt +0 -89
  118. package/storybook-static/vendors~main.aea8d710.iframe.bundle.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypersokrat/hyper-pay",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Crypto payment gateway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3
- addons: [
4
- "@storybook/addon-links",
5
- "@storybook/addon-essentials",
6
- // "@storybook/addon-interactions",
7
- ],
8
- framework: "@storybook/react",
9
- };
@@ -1,41 +0,0 @@
1
- const customViewports = {
2
- staking1: {
3
- name: 'Staking 1',
4
- styles: {
5
- width: '1440px',
6
- height: '916px',
7
- },
8
- },
9
- staking2: {
10
- name: 'Staking 2',
11
- styles: {
12
- width: '1280px',
13
- height: '650px',
14
- },
15
- },
16
- staking3: {
17
- name: 'Staking 3',
18
- styles: {
19
- width: '1024px',
20
- height: '1366px',
21
- },
22
- },
23
- staking4: {
24
- name: 'Staking 4',
25
- styles: {
26
- width: '768px',
27
- height: '1024px',
28
- },
29
- },
30
- }
31
-
32
- export const parameters = {
33
- actions: { argTypesRegex: "^on[A-Z].*" },
34
- controls: {
35
- matchers: {
36
- color: /(background|color)$/i,
37
- date: /Date$/,
38
- },
39
- },
40
- viewport: { viewports: customViewports }
41
- }
package/rollup.config.js DELETED
@@ -1,60 +0,0 @@
1
- import babel from "rollup-plugin-babel";
2
- import resolve from "@rollup/plugin-node-resolve";
3
- import external from "rollup-plugin-peer-deps-external";
4
- import { terser } from "rollup-plugin-terser";
5
- import postcss from "rollup-plugin-postcss";
6
- import image from "rollup-plugin-image";
7
- import copy from "rollup-plugin-copy";
8
- import commonjs from "rollup-plugin-commonjs";
9
- import json from "@rollup/plugin-json";
10
- import url from 'rollup-plugin-url';
11
-
12
- export default {
13
- input: "./src/index.js",
14
- output: [
15
- {
16
- file: "dist/index.js",
17
- format: "cjs",
18
- assetFileNames: "assets/[name][extname]",
19
- },
20
- {
21
- file: "dist/index.es.js",
22
- format: "es",
23
- exports: "named",
24
- assetFileNames: "assets/[name][extname]",
25
- },
26
- ],
27
- plugins: [
28
- commonjs(),
29
- json(),
30
- postcss({
31
- plugins: [],
32
- minimize: true,
33
- }),
34
- babel({
35
- exclude: "node_modules/**",
36
- presets: [
37
- ["@babel/preset-react", { runtime: "automatic"}],
38
- ["@babel/preset-env", { modules: false }],
39
- ]
40
- }),
41
- external(),
42
- resolve({ browser: true }),
43
- terser(),
44
- url({
45
- limit: 0, // Set limit to 0 to inline all files
46
- include: ['**/*.png', '**/*.jpg'], // Adjust file extensions as needed
47
- emitFiles: true, // Emit files to the output directory
48
- fileName: '[name][extname]', // Output file name pattern
49
- publicPath: '/assets/img/currency/', // Public path for the assets
50
- sourceDir: './src', // Source directory containing the assets
51
- }),
52
- image(),
53
- copy({
54
- targets: [
55
- { src: "src/assets/**/**/*", dest: "dist/assets", verbose: true },
56
- ],
57
- }),
58
- ],
59
- external: ["react-router-dom"],
60
- };
@@ -1,311 +0,0 @@
1
- /* @font-face {*/
2
- /* font-family: "UberMove-Medium";*/
3
- /* src: url("../fonts/UberMove/UberMove-Medium.eot");*/
4
- /* src: url("../fonts/UberMove/UberMove-Medium.eot?#iefix") format("embedded-opentype"),*/
5
- /* url("../fonts/UberMove/UberMove-Medium.svg#Lack-Regular") format("svg"),*/
6
- /* url("../fonts/UberMove/UberMove-Medium.ttf") format("truetype"),*/
7
- /* url("../fonts/UberMove/UberMove-Medium.woff") format("woff"),*/
8
- /* url("../fonts/UberMove/UberMove-Medium.woff2") format("woff2");*/
9
- /* font-weight: normal;*/
10
- /* font-style: normal;*/
11
- /*}*/
12
- @font-face {
13
- font-family: 'Marcellus';
14
- src: url('../fonts/Marcellus/Marcellus-Regular.eot');
15
- src: url('../fonts/Marcellus/Marcellus-Regular.eot?#iefix') format('embedded-opentype'),
16
- url('../fonts/Marcellus/Marcellus-Regular.woff2') format('woff2'),
17
- url('../fonts/Marcellus/Marcellus-Regular.woff') format('woff'),
18
- url('../fonts/Marcellus/Marcellus-Regular.ttf') format('truetype'),
19
- url('../fonts/Marcellus/Marcellus-Regular.svg#Marcellus-Regular') format('svg');
20
- font-weight: normal;
21
- font-style: normal;
22
- font-display: swap;
23
- }
24
-
25
- @font-face {
26
- font-family: "Poppins";
27
- src: url("../fonts/Poppins/Poppins-Regular.eot");
28
- src: url("../fonts/Poppins/Poppins-Regular.eot?#iefix")
29
- format("embedded-opentype"),
30
- url("../fonts/Poppins/Poppins-Regular.svg#Lack-Regular") format("svg"),
31
- url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype"),
32
- url("../fonts/Poppins/Poppins-Regular.woff") format("woff"),
33
- url("../fonts/Poppins/Poppins-Regular.woff2") format("woff2");
34
- font-weight: normal;
35
- font-style: normal;
36
- }
37
-
38
- * {
39
- font-family: "Poppins";
40
- font-size: 14px;
41
- line-height: 24px;
42
- color: rgba(255, 255, 255, 1);
43
- text-decoration: none;
44
- outline-color: none;
45
- box-sizing: border-box;
46
- padding: 0;
47
- margin: 0;
48
- }
49
- .main_ttl {
50
- font-family: 'Marcellus';
51
- }
52
- html {
53
- overflow-x: hidden;
54
- -webkit-text-size-adjust: none;
55
- text-size-adjust: none;
56
- }
57
- body {
58
- margin: 0;
59
- -webkit-text-size-adjust: 100%;
60
- -moz-text-size-adjust: 100%;
61
- -ms-text-size-adjust: 100%;
62
- text-size-adjust: 100%;
63
- padding: 0 !important;
64
- /*padding-bottom: 200vh;*/
65
- /*dont use overflow hidden to body*/
66
- }
67
-
68
- ul,
69
- li,
70
- p,
71
- img,
72
- h1,
73
- h2,
74
- h3,
75
- h4,
76
- h5,
77
- h6,
78
- input,
79
- button,
80
- nav {
81
- padding: 0;
82
- margin: 0;
83
- list-style: none;
84
- font-weight: normal;
85
- }
86
- input,
87
- textarea {
88
- outline: none;
89
- box-shadow: none;
90
- -webkit-appearance: none;
91
- -moz-appearance: none;
92
- appearance: none;
93
- }
94
- button {
95
- border: none;
96
- background: none;
97
- cursor: pointer;
98
- outline: none;
99
- }
100
- .container {
101
- width: 100%;
102
- max-width: 1920px;
103
- padding: 0px 80px;
104
- margin: 0px auto;
105
- display: flex;
106
- position: relative;
107
- z-index: 5;
108
- }
109
- /* ===== Scrollbar CSS ===== */
110
- /* Firefox */
111
- .scroll {
112
- scrollbar-width: auto;
113
- scrollbar-color: #c38c5c rgba(255,255,255,0);
114
- }
115
-
116
- /* Chrome, Edge, and Safari */
117
- .scroll::-webkit-scrollbar {
118
- width: 4px;
119
- }
120
-
121
- .scroll::-webkit-scrollbar-track {
122
- background: transparent;
123
- }
124
-
125
- .scroll::-webkit-scrollbar-thumb {
126
- background-color: #c38c5c;
127
- border-radius: 10px;
128
- border: 0px solid transparent;
129
- }
130
- .font-10 {
131
- font-size: 10px;
132
- line-height: 150%;
133
- }
134
- .font-12 {
135
- font-size: 12px;
136
- line-height: 150%;
137
- }
138
- .font-14 {
139
- font-size: 14px;
140
- line-height: 150%;
141
- }
142
- .font-16 {
143
- font-size: 16px;
144
- line-height: 150%;
145
- }
146
- .font-20 {
147
- font-size: 20px;
148
- line-height: 130%;
149
- }
150
- .font-60 {
151
- font-size: 60px;
152
- line-height: 130%;
153
- }
154
- .font-regular {
155
- font-family: "UberMove-Regular";
156
- }
157
- .font-medium {
158
- font-family: "UberMove-Medium";
159
- }
160
- .colorGold {
161
- color: #c38c5c;
162
- }
163
- .plus-market {
164
- color: #9ccc65;
165
- }
166
- .plus-market path {
167
- fill: #9ccc65;
168
- }
169
- .minus-market {
170
- color: #ef5350;
171
- }
172
- .minus-market path {
173
- fill: #ef5350;
174
- }
175
- .minus-market svg {
176
- transform: rotate(180deg);
177
- }
178
- .test {
179
- display: flex;
180
- height: 1000px;
181
- width: 100px;
182
- background: red;
183
- }
184
- .main {
185
- display: flex;
186
- width: 100%;
187
- height: 100vh;
188
- overflow-y: auto;
189
- background: #2f3674;
190
- }
191
- .main-sidebar {
192
- width: 365px;
193
- background: #2d3364;
194
- display: flex;
195
- overflow-y: auto;
196
- max-height: 100%;
197
- }
198
- .main-sidebar-content {
199
- position: fixed;
200
- height: 100vh;
201
- left: 0;
202
- top: 0;
203
- background: #2d3364;
204
- overflow-y: auto;
205
- width: 365px;
206
- padding: 70px 20px 0 20px;
207
- }
208
-
209
- .main-content {
210
- width: calc(100% - 365px);
211
- display: flex;
212
- flex-direction: column;
213
- padding: 110px 0 0 0;
214
- height: 100%;
215
- }
216
-
217
- .main-content-wrapper {
218
- padding: 0 20px;
219
- }
220
-
221
- /*Animations Start*/
222
- .animate-scale {
223
- transform: scale(0.9);
224
- opacity: 0;
225
- transition: 0.6s cubic-bezier(0.79, 0.01, 0.15, 0.99);
226
- }
227
- .animate-scale.animate {
228
- transform: scale(1);
229
- opacity: 1;
230
- }
231
- .animate-translateX {
232
- transform: translateY(5px);
233
- opacity: 0;
234
- transition: 0.6s cubic-bezier(0.79, 0.01, 0.15, 0.99);
235
- }
236
- .animate-translateX.animate {
237
- transform: translateY(0px);
238
- opacity: 1;
239
- }
240
- /*Animations End*/
241
-
242
- @media only screen and (max-width: 1025px) {
243
- .main-content {
244
- width: 100%;
245
- padding-top: 90px;
246
- }
247
- }
248
-
249
- .fade-up {
250
- opacity: 0;
251
- transform: translate3d(0, 100px, 0);
252
- transition-property: opacity, transform;
253
- transition-duration: 0.4s;
254
- transition-timing-function: ease;
255
- }
256
-
257
- .fade-right {
258
- opacity: 0;
259
- transform: translate3d(-99%, 0, 0);
260
- transition-property: opacity, transform;
261
- transition-duration: 0.4s;
262
- transition-timing-function: ease;
263
- }
264
-
265
- .fade-left {
266
- opacity: 0;
267
- transform: translate3d(99%, 0, 0);
268
- transition-property: opacity, transform;
269
- transition-duration: 0.4s;
270
- transition-timing-function: ease;
271
- }
272
- .fade-right.is-visible {
273
- opacity: 1;
274
- transform: translateZ(0);
275
- }
276
-
277
- .fade-up.is-visible {
278
- opacity: 1;
279
- transform: translateY(0);
280
- }
281
-
282
- .fade-left.is-visible {
283
- opacity: 1;
284
- transform: translateZ(0);
285
- }
286
-
287
- .delay-20 {
288
- transition-delay: 20ms;
289
- }
290
-
291
- .delay-50 {
292
- transition-delay: 50ms;
293
- }
294
-
295
- .delay-100 {
296
- transition-delay: 100ms;
297
- }
298
-
299
- .delay-200 {
300
- transition-delay: 200ms;
301
- }
302
-
303
- .delay-1200 {
304
- transition-delay: 1200ms;
305
- }
306
-
307
- input[type="number"]::-webkit-inner-spin-button,
308
- input[type="number"]::-webkit-outer-spin-button {
309
- -webkit-appearance: none;
310
- margin: 0;
311
- }