@arcblock/ux 2.12.56 → 2.12.58

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.
@@ -1,5 +1,6 @@
1
- import { type TypographyProps, type LinkProps } from '@mui/material';
1
+ import type { LinkProps, TypographyProps } from '@mui/material';
2
2
  export interface PoweredByArcBlockProps extends TypographyProps {
3
3
  linkProps?: LinkProps;
4
+ showExtra?: boolean;
4
5
  }
5
- export default function PoweredByArcBlock({ linkProps, ...props }: PoweredByArcBlockProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function PoweredByArcBlock({ linkProps, showExtra, ...props }: PoweredByArcBlockProps): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Link, Typography } from '@mui/material';
3
3
  export default function PoweredByArcBlock({
4
4
  linkProps,
5
+ showExtra,
5
6
  ...props
6
7
  }) {
7
8
  return /*#__PURE__*/_jsxs(Typography, {
@@ -9,15 +10,13 @@ export default function PoweredByArcBlock({
9
10
  children: ["Powered by", ' ', /*#__PURE__*/_jsx(Link, {
10
11
  href: "https://www.arcblock.io",
11
12
  target: "_blank",
12
- underline: "hover",
13
13
  ...linkProps,
14
14
  children: "ArcBlock"
15
15
  }), "'s", ' ', /*#__PURE__*/_jsx(Link, {
16
16
  href: "https://www.blocklet.io",
17
17
  target: "_blank",
18
- underline: "hover",
19
18
  ...linkProps,
20
19
  children: "Blocklet Technology"
21
- }), ", the decentralized web engine."]
20
+ }), showExtra ? ', the decentralized web engine.' : null]
22
21
  });
23
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.12.56",
3
+ "version": "2.12.58",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -70,12 +70,12 @@
70
70
  "react": ">=18.2.0",
71
71
  "react-router-dom": ">=6.22.3"
72
72
  },
73
- "gitHead": "dad60e296d45cc578ede5c25e2c051da0d5e3c5a",
73
+ "gitHead": "6ef2b4adde037be07264380b57b43105f6fbb903",
74
74
  "dependencies": {
75
75
  "@arcblock/did-motif": "^1.1.13",
76
- "@arcblock/icons": "^2.12.56",
77
- "@arcblock/nft-display": "^2.12.56",
78
- "@arcblock/react-hooks": "^2.12.56",
76
+ "@arcblock/icons": "^2.12.58",
77
+ "@arcblock/nft-display": "^2.12.58",
78
+ "@arcblock/react-hooks": "^2.12.58",
79
79
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
80
80
  "@fontsource/roboto": "^5.2.5",
81
81
  "@fontsource/ubuntu-mono": "^5.0.18",
@@ -1,21 +1,23 @@
1
- import { Link, Typography, type TypographyProps, type LinkProps } from '@mui/material';
1
+ import type { LinkProps, TypographyProps } from '@mui/material';
2
+ import { Link, Typography } from '@mui/material';
2
3
 
3
4
  export interface PoweredByArcBlockProps extends TypographyProps {
4
5
  linkProps?: LinkProps;
6
+ showExtra?: boolean;
5
7
  }
6
8
 
7
- export default function PoweredByArcBlock({ linkProps, ...props }: PoweredByArcBlockProps) {
9
+ export default function PoweredByArcBlock({ linkProps, showExtra, ...props }: PoweredByArcBlockProps) {
8
10
  return (
9
11
  <Typography {...props}>
10
12
  Powered by{' '}
11
- <Link href="https://www.arcblock.io" target="_blank" underline="hover" {...linkProps}>
13
+ <Link href="https://www.arcblock.io" target="_blank" {...linkProps}>
12
14
  ArcBlock
13
15
  </Link>
14
16
  's{' '}
15
- <Link href="https://www.blocklet.io" target="_blank" underline="hover" {...linkProps}>
17
+ <Link href="https://www.blocklet.io" target="_blank" {...linkProps}>
16
18
  Blocklet Technology
17
19
  </Link>
18
- , the decentralized web engine.
20
+ {showExtra ? ', the decentralized web engine.' : null}
19
21
  </Typography>
20
22
  );
21
23
  }