@blocklet/ui-react 2.1.13 → 2.1.14

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.
@@ -64,4 +64,4 @@ Brand.defaultProps = {
64
64
  const Root = _styledComponents.default.div.withConfig({
65
65
  displayName: "brand__Root",
66
66
  componentId: "sc-6z2c3k-0"
67
- })(["display:flex;flex-direction:column;width:240px;font-size:14px;a{text-decoration:none;color:inherit;}> div:first-child{display:flex;align-items:center;}.footer-brand-logo{height:32px;margin-right:8px;img,svg{max-width:100%;max-height:100%;}}.footer-brand-name{font-size:16px;font-weight:bold;}.footer-brand-desc{margin-top:16px;}", "{width:auto;}"], props => props.$theme.breakpoints.down('sm'));
67
+ })(["display:flex;flex-direction:column;width:240px;font-size:14px;a{text-decoration:none;color:inherit;}> div:first-child{display:flex;align-items:center;}.footer-brand-logo{display:flex;align-items:center;margin-right:16px;line-height:1;img,svg{max-height:44px;min-height:32px;}}.footer-brand-name{font-size:16px;font-weight:bold;}.footer-brand-desc{margin-top:16px;}", "{width:auto;}"], props => props.$theme.breakpoints.down('sm'));
@@ -66,6 +66,8 @@ function Footer(_ref) {
66
66
  const {
67
67
  appLogo,
68
68
  appName,
69
+ appDescription,
70
+ description,
69
71
  theme: blockletTheme,
70
72
  navigation = [],
71
73
  copyrightOwner,
@@ -84,7 +86,7 @@ function Footer(_ref) {
84
86
  }), /*#__PURE__*/_react.default.createElement(_Container.default, null, /*#__PURE__*/_react.default.createElement(_row.default, null, /*#__PURE__*/_react.default.createElement(_Box.default, null, /*#__PURE__*/_react.default.createElement(_brand.default, {
85
87
  name: appName,
86
88
  logo: appLogo,
87
- description: "Official DID Wallet webapp implementation that makes it possible to manage your digital identities and assets from the browser."
89
+ description: appDescription || description
88
90
  }), /*#__PURE__*/_react.default.createElement(_socialMedia.default, {
89
91
  items: socialMedia,
90
92
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.1.13",
3
+ "version": "2.1.14",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -34,8 +34,8 @@
34
34
  "url": "https://github.com/ArcBlock/ux/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@arcblock/did-connect": "^2.1.13",
38
- "@arcblock/ux": "^2.1.13",
37
+ "@arcblock/did-connect": "^2.1.14",
38
+ "@arcblock/ux": "^2.1.14",
39
39
  "@iconify/iconify": "^2.2.1",
40
40
  "@mui/material": "^5.6.4",
41
41
  "core-js": "^3.6.4",
@@ -57,5 +57,5 @@
57
57
  "eslint-plugin-react-hooks": "^4.2.0",
58
58
  "jest": "^24.1.0"
59
59
  },
60
- "gitHead": "ab9ffbc57b99ede75ed0ddd8f090e3d8e8fb97d1"
60
+ "gitHead": "f99cb6ddd9da25be9e56aca6fd6a0c8e5321acaf"
61
61
  }
@@ -48,12 +48,14 @@ const Root = styled.div`
48
48
  align-items: center;
49
49
  }
50
50
  .footer-brand-logo {
51
- height: 32px;
52
- margin-right: 8px;
51
+ display: flex;
52
+ align-items: center;
53
+ margin-right: 16px;
54
+ line-height: 1;
53
55
  img,
54
56
  svg {
55
- max-width: 100%;
56
- max-height: 100%;
57
+ max-height: 44px;
58
+ min-height: 32px;
57
59
  }
58
60
  }
59
61
  .footer-brand-name {
@@ -27,6 +27,8 @@ function Footer({ meta, ...rest }) {
27
27
  const {
28
28
  appLogo,
29
29
  appName,
30
+ appDescription,
31
+ description,
30
32
  theme: blockletTheme,
31
33
  navigation = [],
32
34
  copyrightOwner,
@@ -50,11 +52,7 @@ function Footer({ meta, ...rest }) {
50
52
  <Container>
51
53
  <Row>
52
54
  <Box>
53
- <Brand
54
- name={appName}
55
- logo={appLogo}
56
- description="Official DID Wallet webapp implementation that makes it possible to manage your digital identities and assets from the browser."
57
- />
55
+ <Brand name={appName} logo={appLogo} description={appDescription || description} />
58
56
  <SocialMedia items={socialMedia} style={{ marginTop: 24 }} />
59
57
  </Box>
60
58
  <Links links={navMenuItems} />