@prosopo/procaptcha-react 0.2.17 → 0.2.19

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 (51) hide show
  1. package/README.md +4 -9
  2. package/dist/cjs/components/Button.cjs +68 -0
  3. package/dist/cjs/components/CaptchaComponent.cjs +64 -41
  4. package/dist/cjs/components/CaptchaWidget.cjs +41 -36
  5. package/dist/cjs/components/Checkbox.cjs +56 -0
  6. package/dist/cjs/components/ExtensionAccountSelect.cjs +26 -26
  7. package/dist/cjs/components/LoadingSpinner.cjs +30 -0
  8. package/dist/cjs/components/Modal.cjs +35 -0
  9. package/dist/cjs/components/Procaptcha.cjs +140 -134
  10. package/dist/cjs/components/collector.cjs +25 -0
  11. package/dist/cjs/components/theme.cjs +27 -12
  12. package/dist/components/Button.d.ts +10 -0
  13. package/dist/components/Button.d.ts.map +1 -0
  14. package/dist/components/Button.js +59 -0
  15. package/dist/components/Button.js.map +1 -0
  16. package/dist/components/CaptchaComponent.d.ts +1 -1
  17. package/dist/components/CaptchaComponent.d.ts.map +1 -1
  18. package/dist/components/CaptchaComponent.js +23 -11
  19. package/dist/components/CaptchaComponent.js.map +1 -1
  20. package/dist/components/CaptchaWidget.d.ts +2 -1
  21. package/dist/components/CaptchaWidget.d.ts.map +1 -1
  22. package/dist/components/CaptchaWidget.js +40 -35
  23. package/dist/components/CaptchaWidget.js.map +1 -1
  24. package/dist/components/Checkbox.d.ts +9 -0
  25. package/dist/components/Checkbox.d.ts.map +1 -0
  26. package/dist/components/Checkbox.js +43 -0
  27. package/dist/components/Checkbox.js.map +1 -0
  28. package/dist/components/ExtensionAccountSelect.d.ts +1 -1
  29. package/dist/components/ExtensionAccountSelect.d.ts.map +1 -1
  30. package/dist/components/ExtensionAccountSelect.js +7 -6
  31. package/dist/components/ExtensionAccountSelect.js.map +1 -1
  32. package/dist/components/LoadingSpinner.d.ts +6 -0
  33. package/dist/components/LoadingSpinner.d.ts.map +1 -0
  34. package/dist/components/LoadingSpinner.js +28 -0
  35. package/dist/components/LoadingSpinner.js.map +1 -0
  36. package/dist/components/Modal.d.ts +8 -0
  37. package/dist/components/Modal.d.ts.map +1 -0
  38. package/dist/components/Modal.js +35 -0
  39. package/dist/components/Modal.js.map +1 -0
  40. package/dist/components/Procaptcha.d.ts.map +1 -1
  41. package/dist/components/Procaptcha.js +48 -47
  42. package/dist/components/Procaptcha.js.map +1 -1
  43. package/dist/components/collector.d.ts +8 -0
  44. package/dist/components/collector.d.ts.map +1 -0
  45. package/dist/components/collector.js +25 -0
  46. package/dist/components/collector.js.map +1 -0
  47. package/dist/components/theme.d.ts +50 -2
  48. package/dist/components/theme.d.ts.map +1 -1
  49. package/dist/components/theme.js +23 -8
  50. package/dist/components/theme.js.map +1 -1
  51. package/package.json +9 -5
@@ -1,3 +1,51 @@
1
- export declare const lightTheme: import("@mui/material").Theme;
2
- export declare const darkTheme: import("@mui/material").Theme;
1
+ export declare const lightTheme: {
2
+ palette: {
3
+ mode: string;
4
+ primary: {
5
+ main: string;
6
+ contrastText: string;
7
+ };
8
+ background: {
9
+ default: string;
10
+ contrastText: string;
11
+ };
12
+ grey: {
13
+ 0: string;
14
+ 100: string;
15
+ 200: string;
16
+ 300: string;
17
+ 400: string;
18
+ 500: string;
19
+ 600: string;
20
+ 700: string;
21
+ 800: string;
22
+ 900: string;
23
+ };
24
+ };
25
+ };
26
+ export declare const darkTheme: {
27
+ palette: {
28
+ mode: string;
29
+ primary: {
30
+ main: string;
31
+ contrastText: string;
32
+ };
33
+ background: {
34
+ default: string;
35
+ contrastText: string;
36
+ };
37
+ grey: {
38
+ 0: string;
39
+ 100: string;
40
+ 200: string;
41
+ 300: string;
42
+ 400: string;
43
+ 500: string;
44
+ 600: string;
45
+ 700: string;
46
+ 800: string;
47
+ 900: string;
48
+ };
49
+ };
50
+ };
3
51
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/components/theme.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,+BAWrB,CAAA;AAEF,eAAO,MAAM,SAAS,+BAWpB,CAAA"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/components/theme.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;CAatB,CAAA;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;CAarB,CAAA"}
@@ -1,26 +1,41 @@
1
- import { createTheme } from '@mui/material';
2
- export const lightTheme = createTheme({
1
+ const grey = {
2
+ 0: '#fff',
3
+ 100: '#f5f5f5',
4
+ 200: '#eeeeee',
5
+ 300: '#e0e0e0',
6
+ 400: '#bdbdbd',
7
+ 500: '#9e9e9e',
8
+ 600: '#757575',
9
+ 700: '#616161',
10
+ 800: '#424242',
11
+ 900: '#212121',
12
+ };
13
+ export const lightTheme = {
3
14
  palette: {
4
15
  mode: 'light',
5
16
  primary: {
6
- main: '#1976d2',
7
- contrastText: '#000',
17
+ main: '#487DFA',
18
+ contrastText: '#fff',
8
19
  },
9
20
  background: {
10
21
  default: '#fff',
22
+ contrastText: '#000',
11
23
  },
24
+ grey,
12
25
  },
13
- });
14
- export const darkTheme = createTheme({
26
+ };
27
+ export const darkTheme = {
15
28
  palette: {
16
29
  mode: 'dark',
17
30
  primary: {
18
- main: '#1976d2',
31
+ main: '#487DFA',
19
32
  contrastText: '#fff',
20
33
  },
21
34
  background: {
22
35
  default: '#303030',
36
+ contrastText: '#fff',
23
37
  },
38
+ grey,
24
39
  },
25
- });
40
+ };
26
41
  //# sourceMappingURL=theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/components/theme.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC;IAClC,OAAO,EAAE;QACL,IAAI,EAAE,OAAO;QACb,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,MAAM;SACvB;QACD,UAAU,EAAE;YACR,OAAO,EAAE,MAAM;SAClB;KACJ;CACJ,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;IACjC,OAAO,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,MAAM;SACvB;QACD,UAAU,EAAE;YACR,OAAO,EAAE,SAAS;SACrB;KACJ;CACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/components/theme.ts"],"names":[],"mappings":"AAcA,MAAM,IAAI,GAAG;IACT,CAAC,EAAE,MAAM;IACT,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACjB,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,OAAO,EAAE;QACL,IAAI,EAAE,OAAO;QACb,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,MAAM;SACvB;QACD,UAAU,EAAE;YACR,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,MAAM;SACvB;QACD,IAAI;KACP;CACJ,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,OAAO,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,MAAM;SACvB;QACD,UAAU,EAAE;YACR,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,MAAM;SACvB;QACD,IAAI;KACP;CACJ,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-react",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -22,8 +22,12 @@
22
22
  "clean": "tsc --build --clean",
23
23
  "build": "tsc --build --verbose tsconfig.json",
24
24
  "build:cjs": "npx vite --config vite.cjs.config.ts build",
25
- "lint": "npx eslint .",
26
- "lint:fix": "npx eslint . --fix --config ../../.eslintrc.js"
25
+ "eslint": "npx eslint . --no-error-on-unmatched-pattern --ignore-path ../../.eslintignore",
26
+ "eslint:fix": "npm run eslint -- --fix",
27
+ "prettier": "npx prettier . --check --no-error-on-unmatched-pattern --ignore-path ../../.eslintignore",
28
+ "prettier:fix": "npm run prettier -- --write",
29
+ "lint": "npm run eslint && npm run prettier",
30
+ "lint:fix": "npm run eslint:fix && npm run prettier:fix"
27
31
  },
28
32
  "browserslist": [
29
33
  "> 0.5%, last 2 versions, not dead"
@@ -36,8 +40,8 @@
36
40
  "@polkadot/extension-dapp": "0.46.6",
37
41
  "@polkadot/extension-inject": "0.46.6",
38
42
  "@polkadot/types": "10.11.1",
39
- "@prosopo/common": "0.2.17",
40
- "@prosopo/procaptcha": "0.2.17",
43
+ "@prosopo/common": "0.2.19",
44
+ "@prosopo/procaptcha": "0.2.19",
41
45
  "i18next": "^21.9.2",
42
46
  "react": "^18.2.0",
43
47
  "react-dom": "^18.2.0",