@arcblock/ux 2.12.17 → 2.12.18

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.
@@ -40,6 +40,7 @@ export default function PhoneInput({
40
40
  const {
41
41
  phone,
42
42
  handlePhoneValueChange,
43
+ inputRef,
43
44
  country,
44
45
  setCountry
45
46
  } = usePhoneInput({
@@ -68,6 +69,12 @@ export default function PhoneInput({
68
69
  alignItems: "center",
69
70
  component: canDial ? 'a' : 'div',
70
71
  href: canDial ? `tel:${phone}` : undefined,
72
+ ...(canDial ? {
73
+ 'aria-label': `Call ${phone}`,
74
+ title: `Call ${phone}`,
75
+ rel: 'nofollow',
76
+ itemProp: 'telephone'
77
+ } : {}),
71
78
  sx: {
72
79
  textDecoration: 'none',
73
80
  color: 'inherit',
@@ -93,6 +100,7 @@ export default function PhoneInput({
93
100
  onChange: preview ? undefined : handlePhoneValueChange,
94
101
  placeholder: placeholder,
95
102
  className: "phone-input",
103
+ inputRef: inputRef,
96
104
  disabled: preview,
97
105
  sx: {
98
106
  '&>.MuiInputBase-root': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.12.17",
3
+ "version": "2.12.18",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -68,12 +68,12 @@
68
68
  "react": ">=18.2.0",
69
69
  "react-router-dom": ">=6.22.3"
70
70
  },
71
- "gitHead": "de1814f4c2eca44000845ce0db42e9d30d487e80",
71
+ "gitHead": "e5629cf0ff51b952d35fe85d05065740f740048b",
72
72
  "dependencies": {
73
73
  "@arcblock/did-motif": "^1.1.13",
74
- "@arcblock/icons": "^2.12.17",
75
- "@arcblock/nft-display": "^2.12.17",
76
- "@arcblock/react-hooks": "^2.12.17",
74
+ "@arcblock/icons": "^2.12.18",
75
+ "@arcblock/nft-display": "^2.12.18",
76
+ "@arcblock/react-hooks": "^2.12.18",
77
77
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
78
78
  "@fontsource/inter": "^5.0.16",
79
79
  "@fontsource/ubuntu-mono": "^5.0.18",
@@ -48,7 +48,7 @@ export default function PhoneInput({
48
48
  return `+${countryCode}${value.phone}`;
49
49
  }, [value.phone, value.country]);
50
50
 
51
- const { phone, handlePhoneValueChange, country, setCountry } = usePhoneInput({
51
+ const { phone, handlePhoneValueChange, inputRef, country, setCountry } = usePhoneInput({
52
52
  defaultCountry: value.country,
53
53
  value: phoneWithPrefix,
54
54
  countries: defaultCountries,
@@ -78,6 +78,14 @@ export default function PhoneInput({
78
78
  alignItems="center"
79
79
  component={canDial ? 'a' : 'div'}
80
80
  href={canDial ? `tel:${phone}` : undefined}
81
+ {...(canDial
82
+ ? {
83
+ 'aria-label': `Call ${phone}`,
84
+ title: `Call ${phone}`,
85
+ rel: 'nofollow',
86
+ itemProp: 'telephone',
87
+ }
88
+ : {})}
81
89
  sx={{
82
90
  textDecoration: 'none',
83
91
  color: 'inherit',
@@ -98,6 +106,7 @@ export default function PhoneInput({
98
106
  onChange={preview ? undefined : handlePhoneValueChange}
99
107
  placeholder={placeholder}
100
108
  className="phone-input"
109
+ inputRef={inputRef}
101
110
  disabled={preview}
102
111
  sx={{
103
112
  '&>.MuiInputBase-root': {