@stokr/components-library 2.3.37 → 2.3.38

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 (72) hide show
  1. package/README.md +1 -1
  2. package/dist/components/AdminDashboard/Table/ReactTable.js +3 -55
  3. package/dist/components/AdminDashboard/Table/ReactTable.stories.js +159 -22
  4. package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +40 -14
  5. package/dist/components/BarChart/BarChart.js +2 -2
  6. package/dist/components/Button/Button.stories.js +113 -30
  7. package/dist/components/Button/Button.styles.js +12 -6
  8. package/dist/components/Button/GlareButton.js +296 -0
  9. package/dist/components/Button/GlareButton.stories.js +137 -0
  10. package/dist/components/Footer/FooterMenu.stories.js +3 -3
  11. package/dist/components/Footer/mangopay.svg +20 -20
  12. package/dist/components/Form/Form.js +7 -7
  13. package/dist/components/Header/Header.js +1 -8
  14. package/dist/components/Header/Header.styles.js +1 -1
  15. package/dist/components/MatomoConnect/Matomo.js +24 -24
  16. package/dist/components/MatomoConnect/Matomo_fuckup.js +24 -24
  17. package/dist/components/Pagination/usePagination.js +17 -17
  18. package/dist/components/RegisterAlgorand/AlgoAddressName.js +138 -0
  19. package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +443 -0
  20. package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +47 -0
  21. package/dist/components/RegisterAlgorand/AlgoSuccess.js +38 -0
  22. package/dist/components/RegisterAlgorand/Algorand.stories.js +80 -0
  23. package/dist/components/RegisterAlgorand/ChooseWallet.js +97 -0
  24. package/dist/components/RegisterAlgorand/SelectProject.js +89 -0
  25. package/dist/components/RegisterAlgorand/_styles.js +28 -0
  26. package/dist/components/RegisterAlgorand/flow.js +409 -0
  27. package/dist/components/RegisterAlgorand/flowWithMemo.js +410 -0
  28. package/dist/components/RegisterAlgorand/index.js +48 -0
  29. package/dist/components/RegisterEthereum/EthAddressLedger.js +226 -0
  30. package/dist/components/RegisterEthereum/EthAddressMetamask.js +204 -0
  31. package/dist/components/RegisterEthereum/EthAddressName.js +135 -0
  32. package/dist/components/RegisterEthereum/EthConnectLedger.js +194 -0
  33. package/dist/components/RegisterEthereum/EthConnectMetamask.js +35 -0
  34. package/dist/components/RegisterEthereum/EthFinish.js +41 -0
  35. package/dist/components/RegisterEthereum/EthIntro.js +95 -0
  36. package/dist/components/RegisterEthereum/_styles.js +28 -0
  37. package/dist/components/RegisterEthereum/index.js +68 -0
  38. package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +185 -0
  39. package/dist/components/RiskQuestionnaire/_styles.js +15 -0
  40. package/dist/components/SigningSubflow/SignSubAddressMetamask.js +137 -0
  41. package/dist/components/SigningSubflow/SignSubConnectLedger.js +150 -0
  42. package/dist/components/SigningSubflow/SignSubConnectMetamask.js +137 -0
  43. package/dist/components/SigningSubflow/SignSubSendLedger.js +150 -0
  44. package/dist/components/SigningSubflow/SignSubSendMetamask.js +62 -0
  45. package/dist/components/SigningSubflow/SignSubTransactionLedger.js +161 -0
  46. package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +166 -0
  47. package/dist/components/icons/LinkIcon.js +2 -2
  48. package/dist/context/Auth.js +6 -6
  49. package/dist/static/country-list.json +251 -251
  50. package/dist/static/fonts/Ionicons/ionicons.min.css +12 -12
  51. package/dist/static/fonts/icomoon/icomoon.eot +0 -0
  52. package/dist/static/fonts/icomoon/icomoon.svg +52 -52
  53. package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
  54. package/dist/static/fonts/icomoon/icomoon.woff +0 -0
  55. package/dist/static/fonts/icomoon/selection.json +0 -0
  56. package/dist/static/fonts/icomoon/style.css +137 -137
  57. package/dist/static/images/Glassess.svg +5 -5
  58. package/dist/static/images/arrow-down-black.svg +21 -21
  59. package/dist/static/images/favicon.svg +57 -57
  60. package/dist/static/images/mangopay.svg +20 -20
  61. package/dist/static/images/nav_green.svg +30 -30
  62. package/dist/static/images/prof-inv.svg +3 -3
  63. package/dist/static/images/two-sided-document.svg +26 -26
  64. package/dist/styles/colors.js +1 -0
  65. package/dist/utils/allowed-countries-list.js +448 -448
  66. package/dist/utils/km_ify.js +8 -0
  67. package/package.json +142 -141
  68. package/dist/components/RegisterLiquidSteps/assets/nav_green.svg +0 -31
  69. package/dist/components/RegisterLiquidSteps/assets/videothumbnail.jpg +0 -0
  70. package/dist/components/StokrLoader/stokr_loader_white_400x400.gif +0 -0
  71. package/dist/components/SvgIcons/Icons_Badge.png +0 -0
  72. package/dist/components/video/img/play-btn.svg +0 -1
@@ -5,6 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.km_ify = void 0;
7
7
  var km_ify = function km_ify(input, decimals) {
8
+ var convertBillion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
9
+ if (input >= 1000000000 && convertBillion) {
10
+ input /= 1000000000;
11
+ if (input % 10 !== 0) {
12
+ input = truncateDecimals(input, 1);
13
+ }
14
+ return input += 'B';
15
+ }
8
16
  if (input >= 1000000) {
9
17
  input /= 1000000;
10
18
  if (input % 10 !== 0) {
package/package.json CHANGED
@@ -1,141 +1,142 @@
1
- {
2
- "name": "@stokr/components-library",
3
- "version": "2.3.37",
4
- "description": "STOKR - Components Library",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "files": [
8
- "dist",
9
- "README.md"
10
- ],
11
- "repository": {
12
- "type": "git",
13
- "url": "http://46.101.229.186:3000/stokr/components-library"
14
- },
15
- "author": "Bilal Hodzic <bilal@stokr.io>",
16
- "license": "MIT",
17
- "scripts": {
18
- "build": "react-app-rewired build",
19
- "build-storybook": "storybook build",
20
- "build-storybook-docs": "storybook build -s public --docs",
21
- "build:dist": "cross-env BABEL_ENV=production babel src -d dist",
22
- "test": "react-app-rewired test",
23
- "prepare": "npm run build",
24
- "storybook": "storybook dev -p 6006",
25
- "start": "npm run storybook",
26
- "chromatic": "CHROMATIC_APP_CODE=7kzdke5umep chromatic",
27
- "release": "auto shipit",
28
- "pub": "rm -rf ./dist && npm publish --access public",
29
- "start:script": "react-scripts start",
30
- "serve": "npx http-server ./storybook-static -p 9009"
31
- },
32
- "dependencies": {
33
- "@fortawesome/fontawesome-svg-core": "^6.3.0",
34
- "@fortawesome/free-solid-svg-icons": "^6.3.0",
35
- "@fortawesome/react-fontawesome": "^0.2.0",
36
- "axios": "^0.27.2",
37
- "bignumber.js": "^9.1.1",
38
- "cross-env": "^7.0.3",
39
- "d3": "^7.8.3",
40
- "date-fns": "^2.29.3",
41
- "firebase": "^10.5.0",
42
- "formik": "^2.2.9",
43
- "formik-persist": "^1.1.0",
44
- "html-react-parser": "^5.0.6",
45
- "http-server": "^14.1.1",
46
- "js-cookie": "^3.0.5",
47
- "mobile-detect": "^1.4.5",
48
- "moment": "^2.30.1",
49
- "moment-timezone": "^0.5.45",
50
- "prop-types": "^15.8.1",
51
- "qrcode.react": "^3.1.0",
52
- "react": "^18.2.0",
53
- "react-app-rewired": "^2.2.1",
54
- "react-collapse": "^5.1.1",
55
- "react-copy-to-clipboard": "^5.1.0",
56
- "react-countup": "^6.4.1",
57
- "react-custom-scrollbars-2": "^4.5.0",
58
- "react-day-picker": "^8.5.1",
59
- "react-device-detect": "^2.2.3",
60
- "react-dom": "^18.2.0",
61
- "react-ga4": "^2.1.0",
62
- "react-helmet": "^6.1.0",
63
- "react-otp-input": "^3.1.0",
64
- "react-portal": "^4.2.2",
65
- "react-qr-code": "^2.0.12",
66
- "react-range": "^1.8.14",
67
- "react-router-dom": "^6.8.1",
68
- "react-scripts": "5.0.1",
69
- "react-select": "^5.7.0",
70
- "react-slick": "^0.29.0",
71
- "react-table": "^7.8.0",
72
- "react-tippy": "^1.4.0",
73
- "react-transition-group": "^4.4.5",
74
- "scroll-to-element": "^2.0.3",
75
- "semantic-ui-react": "^2.1.4",
76
- "slick-carousel": "^1.8.1",
77
- "styled-components": "^6.0.7",
78
- "yup": "^1.0.0"
79
- },
80
- "devDependencies": {
81
- "@babel/cli": "^7.20.7",
82
- "@babel/core": "^7.20.12",
83
- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
84
- "@babel/preset-env": "^7.20.2",
85
- "@babel/preset-react": "^7.18.6",
86
- "@chromatic-com/storybook": "^3.2.6",
87
- "@storybook/addon-actions": "^8.6.7",
88
- "@storybook/addon-essentials": "^8.6.7",
89
- "@storybook/addon-interactions": "^8.6.7",
90
- "@storybook/addon-links": "^8.6.7",
91
- "@storybook/addon-viewport": "^8.6.7",
92
- "@storybook/preset-create-react-app": "^8.6.7",
93
- "@storybook/react": "^8.6.7",
94
- "@storybook/react-webpack5": "^8.6.7",
95
- "@storybook/test": "^8.6.7",
96
- "babel-plugin-styled-components": "^2.1.4",
97
- "prettier": "^3.0.3",
98
- "storybook": "^8.6.7",
99
- "styled-components.macro": "^1.0.0"
100
- },
101
- "eslintConfig": {
102
- "extends": [
103
- "react-app",
104
- "react-app/jest"
105
- ],
106
- "overrides": [
107
- {
108
- "files": [
109
- "**/*.stories.*"
110
- ],
111
- "rules": {
112
- "import/no-anonymous-default-export": "off"
113
- }
114
- }
115
- ]
116
- },
117
- "browserslist": {
118
- "production": [
119
- ">0.2%",
120
- "not dead",
121
- "not op_mini all"
122
- ],
123
- "development": [
124
- "last 1 chrome version",
125
- "last 1 firefox version",
126
- "last 1 safari version"
127
- ]
128
- },
129
- "browser": {
130
- "[module-name]": false
131
- },
132
- "bugs": {
133
- "url": "https://github.com/stokr-io/components-library/issues"
134
- },
135
- "homepage": "https://github.com/stokr-io/components-library#readme",
136
- "keywords": [
137
- "stokr",
138
- "components-library",
139
- "story-book"
140
- ]
141
- }
1
+ {
2
+ "name": "@stokr/components-library",
3
+ "version": "2.3.38",
4
+ "description": "STOKR - Components Library",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "http://46.101.229.186:3000/stokr/components-library"
14
+ },
15
+ "author": "Bilal Hodzic <bilal@stokr.io>",
16
+ "license": "MIT",
17
+ "scripts": {
18
+ "build": "react-app-rewired build",
19
+ "build-storybook": "storybook build",
20
+ "build-storybook-docs": "storybook build -s public --docs",
21
+ "build:dist": "cross-env BABEL_ENV=production babel src -d dist",
22
+ "test": "react-app-rewired test",
23
+ "prepare": "npm run build",
24
+ "storybook": "storybook dev -p 6006",
25
+ "start": "npm run storybook",
26
+ "chromatic": "CHROMATIC_APP_CODE=7kzdke5umep chromatic",
27
+ "release": "auto shipit",
28
+ "pub": "rm -rf ./dist && npm publish --access public",
29
+ "start:script": "react-scripts start",
30
+ "serve": "npx http-server ./storybook-static -p 9009"
31
+ },
32
+ "dependencies": {
33
+ "@fortawesome/fontawesome-svg-core": "^6.3.0",
34
+ "@fortawesome/free-solid-svg-icons": "^6.3.0",
35
+ "@fortawesome/react-fontawesome": "^0.2.0",
36
+ "axios": "^0.27.2",
37
+ "bignumber.js": "^9.1.1",
38
+ "cross-env": "^7.0.3",
39
+ "d3": "^7.8.3",
40
+ "date-fns": "^2.29.3",
41
+ "firebase": "^10.5.0",
42
+ "formik": "^2.2.9",
43
+ "formik-persist": "^1.1.0",
44
+ "html-react-parser": "^5.0.6",
45
+ "http-server": "^14.1.1",
46
+ "js-cookie": "^3.0.5",
47
+ "mobile-detect": "^1.4.5",
48
+ "moment": "^2.30.1",
49
+ "moment-timezone": "^0.5.45",
50
+ "prop-types": "^15.8.1",
51
+ "qrcode.react": "^3.1.0",
52
+ "react": "^18.2.0",
53
+ "react-app-rewired": "^2.2.1",
54
+ "react-collapse": "^5.1.1",
55
+ "react-copy-to-clipboard": "^5.1.0",
56
+ "react-countup": "^6.4.1",
57
+ "react-custom-scrollbars-2": "^4.5.0",
58
+ "react-day-picker": "^8.5.1",
59
+ "react-device-detect": "^2.2.3",
60
+ "react-dom": "^18.2.0",
61
+ "react-ga4": "^2.1.0",
62
+ "react-helmet": "^6.1.0",
63
+ "react-otp-input": "^3.1.0",
64
+ "react-portal": "^4.2.2",
65
+ "react-qr-code": "^2.0.12",
66
+ "react-range": "^1.8.14",
67
+ "react-router-dom": "^6.8.1",
68
+ "react-scripts": "5.0.1",
69
+ "react-select": "^5.7.0",
70
+ "react-slick": "^0.29.0",
71
+ "react-table": "^7.8.0",
72
+ "react-tippy": "^1.4.0",
73
+ "react-transition-group": "^4.4.5",
74
+ "react-visibility-sensor": "^5.1.1",
75
+ "scroll-to-element": "^2.0.3",
76
+ "semantic-ui-react": "^2.1.4",
77
+ "slick-carousel": "^1.8.1",
78
+ "styled-components": "^6.0.7",
79
+ "yup": "^1.0.0"
80
+ },
81
+ "devDependencies": {
82
+ "@babel/cli": "^7.20.7",
83
+ "@babel/core": "^7.20.12",
84
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
85
+ "@babel/preset-env": "^7.20.2",
86
+ "@babel/preset-react": "^7.18.6",
87
+ "@chromatic-com/storybook": "^3.2.6",
88
+ "@storybook/addon-actions": "^8.6.7",
89
+ "@storybook/addon-essentials": "^8.6.7",
90
+ "@storybook/addon-interactions": "^8.6.7",
91
+ "@storybook/addon-links": "^8.6.7",
92
+ "@storybook/addon-viewport": "^8.6.7",
93
+ "@storybook/preset-create-react-app": "^8.6.7",
94
+ "@storybook/react": "^8.6.7",
95
+ "@storybook/react-webpack5": "^8.6.7",
96
+ "@storybook/test": "^8.6.7",
97
+ "babel-plugin-styled-components": "^2.1.4",
98
+ "prettier": "^3.0.3",
99
+ "storybook": "^8.6.7",
100
+ "styled-components.macro": "^1.0.0"
101
+ },
102
+ "eslintConfig": {
103
+ "extends": [
104
+ "react-app",
105
+ "react-app/jest"
106
+ ],
107
+ "overrides": [
108
+ {
109
+ "files": [
110
+ "**/*.stories.*"
111
+ ],
112
+ "rules": {
113
+ "import/no-anonymous-default-export": "off"
114
+ }
115
+ }
116
+ ]
117
+ },
118
+ "browserslist": {
119
+ "production": [
120
+ ">0.2%",
121
+ "not dead",
122
+ "not op_mini all"
123
+ ],
124
+ "development": [
125
+ "last 1 chrome version",
126
+ "last 1 firefox version",
127
+ "last 1 safari version"
128
+ ]
129
+ },
130
+ "browser": {
131
+ "[module-name]": false
132
+ },
133
+ "bugs": {
134
+ "url": "https://github.com/stokr-io/components-library/issues"
135
+ },
136
+ "homepage": "https://github.com/stokr-io/components-library#readme",
137
+ "keywords": [
138
+ "stokr",
139
+ "components-library",
140
+ "story-book"
141
+ ]
142
+ }
@@ -1,31 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="46px" height="46px" viewBox="0 0 46 46" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch -->
4
- <title>nav_green</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs>
7
- <polygon id="path-1" points="0 0.29172973 16.8441568 0.29172973 16.8441568 18.9774541 0 18.9774541"></polygon>
8
- <polygon id="path-3" points="0.134854054 0.0508918919 16.978973 0.0508918919 16.978973 21.9459459 0.134854054 21.9459459"></polygon>
9
- </defs>
10
- <g id="nav_green" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
- <g id="Group-10">
12
- <circle id="Oval" fill="#0B7B47" fill-rule="nonzero" cx="23" cy="23" r="23"></circle>
13
- <g id="Green" transform="translate(12.000000, 11.000000)">
14
- <g id="Group-3" transform="translate(0.000000, 0.086724)">
15
- <mask id="mask-2" fill="white">
16
- <use xlink:href="#path-1"></use>
17
- </mask>
18
- <g id="Clip-2"></g>
19
- <path d="M2.5581027,15.1705892 L2.5581027,2.85361622 L16.8441568,2.85361622 L16.8441568,0.291616216 L-0.000113513514,0.291616216 L-0.000113513514,12.6407514 C-0.000113513514,15.1202649 1.74799459,17.1317243 4.02091351,18.9774541 C3.12112973,17.8268054 2.5581027,16.5766432 2.5581027,15.1705892" id="Fill-1" fill="#FFFFFF" mask="url(#mask-2)"></path>
20
- </g>
21
- <g id="Group-6" transform="translate(4.918919, 5.384022)">
22
- <mask id="mask-4" fill="white">
23
- <use xlink:href="#path-3"></use>
24
- </mask>
25
- <g id="Clip-5"></g>
26
- <path d="M14.4587459,12.4004054 C14.4587459,14.6082432 11.5331243,16.7646216 8.56361081,18.8547838 C5.59447568,16.7646216 2.66847568,14.6082432 2.66847568,12.4004054 L2.66847568,2.5777027 L14.4587459,2.5777027 L14.4587459,12.4004054 Z M8.62339459,0.0508918919 L0.134854054,0.0508918919 L0.134854054,12.4004054 C0.134854054,16.3680811 4.61296216,19.1381892 8.5568,21.9461351 C12.5044216,19.1381892 16.9791243,16.3680811 16.9791243,12.4004054 L16.9791243,0.0508918919 L8.62339459,0.0508918919 Z" id="Fill-4" fill="#FFFFFF" mask="url(#mask-4)"></path>
27
- </g>
28
- </g>
29
- </g>
30
- </g>
31
- </svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="60" height="60" viewBox="0 0 60 60"><defs><path id="ftiva" d="M392 327c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24z"/><path id="ftivd" d="M417.5 323l6.5 8h-13z"/><mask id="ftivc" width="2" height="2" x="-1" y="-1"><path fill="#fff" d="M392 303h48v48h-48z"/><use xlink:href="#ftiva"/></mask><filter id="ftivb" width="82" height="84" x="375" y="286" filterUnits="userSpaceOnUse"><feOffset dy="2" in="SourceGraphic" result="FeOffset1029Out"/><feGaussianBlur in="FeOffset1029Out" result="FeGaussianBlur1030Out" stdDeviation="2.8 2.8"/></filter></defs><g><g transform="translate(-386 -299)"><g><g><g><g filter="url(#ftivb)"><use fill="none" stroke-opacity=".16" stroke-width="0" mask="url(&quot;#ftivc&quot;)" xlink:href="#ftiva"/><use fill-opacity=".16" xlink:href="#ftiva"/></g><use fill="#ee220d" xlink:href="#ftiva"/></g><g transform="rotate(90 417.5 327)"><use fill="#fff" xlink:href="#ftivd"/></g></g></g></g></g></svg>