@arcblock/ux 2.12.49 → 2.12.51

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.
@@ -28,6 +28,7 @@ export declare const LOGIN_PROVIDER_NAME: {
28
28
  [x: string]: string;
29
29
  };
30
30
  export declare const OAUTH_PROVIDER: {
31
+ email: string;
31
32
  auth0: string;
32
33
  apple: string;
33
34
  github: string;
@@ -37,7 +37,8 @@ export const LOGIN_PROVIDER_NAME = {
37
37
 
38
38
  // HACK: 目前这里的键值不能使用 [LOGIN_PROVIDER.AUTH0] 形式,否则会影响 ts 的 keyof typeof OAUTH_PROVIDER 来获取键值作为类型的判断
39
39
  export const OAUTH_PROVIDER = {
40
- auth0: 'Email',
40
+ email: 'Email',
41
+ auth0: 'Auth0',
41
42
  apple: 'Apple',
42
43
  github: 'Github',
43
44
  google: 'Google'
@@ -6,7 +6,7 @@ import LanguageIcon from '@iconify-icons/material-symbols/language';
6
6
  import AndroidIcon from '@iconify-icons/material-symbols/android';
7
7
  import QuestionMarkRoundedIcon from '@iconify-icons/material-symbols/question-mark-rounded';
8
8
  // import Auth0Icon from '@iconify-icons/logos/auth0-icon';
9
- import MailOutlineRoundedIcon from '@iconify-icons/material-symbols/mail-outline-rounded';
9
+ import mailOutlineRoundedIcon from '@iconify-icons/material-symbols/mail-outline-rounded';
10
10
  import { LOGIN_PROVIDER } from '../Util/constant';
11
11
  export default function WalletOSIcon({
12
12
  loading = false,
@@ -22,9 +22,13 @@ export default function WalletOSIcon({
22
22
  }
23
23
  });
24
24
  }
25
+
26
+ // if (provider === LOGIN_PROVIDER.EMAIL) {
27
+ // return <Icon icon={mailOutlineRoundedIcon} style={{ color, transform: 'scale(0.85)' }} />;
28
+ // }
25
29
  if (provider === LOGIN_PROVIDER.AUTH0) {
26
30
  return /*#__PURE__*/_jsx(Icon, {
27
- icon: MailOutlineRoundedIcon,
31
+ icon: mailOutlineRoundedIcon,
28
32
  style: {
29
33
  color,
30
34
  transform: 'scale(0.85)'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.12.49",
3
+ "version": "2.12.51",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -69,12 +69,12 @@
69
69
  "react": ">=18.2.0",
70
70
  "react-router-dom": ">=6.22.3"
71
71
  },
72
- "gitHead": "ffebc9c5df6d576f08c3538b4db75d7ec8cf00be",
72
+ "gitHead": "b122909f88066cb3d5b1cd96f6658d6870ed85e1",
73
73
  "dependencies": {
74
74
  "@arcblock/did-motif": "^1.1.13",
75
- "@arcblock/icons": "^2.12.49",
76
- "@arcblock/nft-display": "^2.12.49",
77
- "@arcblock/react-hooks": "^2.12.49",
75
+ "@arcblock/icons": "^2.12.51",
76
+ "@arcblock/nft-display": "^2.12.51",
77
+ "@arcblock/react-hooks": "^2.12.51",
78
78
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
79
79
  "@fontsource/inter": "^5.0.16",
80
80
  "@fontsource/ubuntu-mono": "^5.0.18",
@@ -43,7 +43,8 @@ export const LOGIN_PROVIDER_NAME = {
43
43
 
44
44
  // HACK: 目前这里的键值不能使用 [LOGIN_PROVIDER.AUTH0] 形式,否则会影响 ts 的 keyof typeof OAUTH_PROVIDER 来获取键值作为类型的判断
45
45
  export const OAUTH_PROVIDER = {
46
- auth0: 'Email',
46
+ email: 'Email',
47
+ auth0: 'Auth0',
47
48
  apple: 'Apple',
48
49
  github: 'Github',
49
50
  google: 'Google',
@@ -5,7 +5,7 @@ import LanguageIcon from '@iconify-icons/material-symbols/language';
5
5
  import AndroidIcon from '@iconify-icons/material-symbols/android';
6
6
  import QuestionMarkRoundedIcon from '@iconify-icons/material-symbols/question-mark-rounded';
7
7
  // import Auth0Icon from '@iconify-icons/logos/auth0-icon';
8
- import MailOutlineRoundedIcon from '@iconify-icons/material-symbols/mail-outline-rounded';
8
+ import mailOutlineRoundedIcon from '@iconify-icons/material-symbols/mail-outline-rounded';
9
9
  import { LOGIN_PROVIDER } from '../Util/constant';
10
10
 
11
11
  export interface WalletOSIconProps {
@@ -20,8 +20,11 @@ export default function WalletOSIcon({ loading = false, walletOS, provider, colo
20
20
  return <Icon icon={QuestionMarkRoundedIcon} style={{ color: 'transparent' }} />;
21
21
  }
22
22
 
23
+ // if (provider === LOGIN_PROVIDER.EMAIL) {
24
+ // return <Icon icon={mailOutlineRoundedIcon} style={{ color, transform: 'scale(0.85)' }} />;
25
+ // }
23
26
  if (provider === LOGIN_PROVIDER.AUTH0) {
24
- return <Icon icon={MailOutlineRoundedIcon} style={{ color, transform: 'scale(0.85)' }} />;
27
+ return <Icon icon={mailOutlineRoundedIcon} style={{ color, transform: 'scale(0.85)' }} />;
25
28
  }
26
29
  if (walletOS === 'ios') {
27
30
  return <Icon icon={IOSRoundedIcon} style={{ color, transform: 'scale(1.1)' }} />;