@blocklet/ui-react 2.4.9 → 2.4.10
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.
- package/lib/Footer/links.js +2 -2
- package/package.json +4 -4
- package/src/Footer/links.js +8 -4
package/lib/Footer/links.js
CHANGED
|
@@ -87,7 +87,7 @@ function Links(_ref) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
90
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
90
|
+
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
91
91
|
icon: icon,
|
|
92
92
|
size: 20,
|
|
93
93
|
sx: {
|
|
@@ -155,4 +155,4 @@ Links.defaultProps = {
|
|
|
155
155
|
links: [],
|
|
156
156
|
flowLayout: false
|
|
157
157
|
};
|
|
158
|
-
const Root = (0, _Theme.styled)('div')(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n color: ", ";\n .footer-links-inner {\n display: flex;\n justify-content: space-between;\n margin: 0 -8px;\n }\n .footer-links-group,\n .footer-links-sub {\n display: flex;\n flex-direction: column;\n }\n .footer-links-group-expand-icon {\n display: none;\n position: absolute;\n right: 16px;\n top: 50%;\n transform: translate(0, -50%);\n svg {\n width: auto;\n height: 0.75em;\n }\n }\n .footer-links-item {\n display: inline-flex;\n align-items: center;\n position: relative;\n padding:
|
|
158
|
+
const Root = (0, _Theme.styled)('div')(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n color: ", ";\n .footer-links-inner {\n display: flex;\n justify-content: space-between;\n margin: 0 -8px;\n }\n .footer-links-group,\n .footer-links-sub {\n display: flex;\n flex-direction: column;\n }\n .footer-links-sub .footer-links-item {\n color: ", ";\n }\n .footer-links-group-expand-icon {\n display: none;\n position: absolute;\n right: 16px;\n top: 50%;\n transform: translate(0, -50%);\n line-height: 1;\n svg {\n width: auto;\n height: 0.75em;\n }\n }\n .footer-links-item {\n display: inline-flex;\n align-items: center;\n position: relative;\n padding: 4px 8px;\n font-size: 14px;\n }\n &.footer-links--grouped {\n .footer-links-group {\n > .footer-links-item {\n font-weight: bold;\n }\n .footer-links-sub {\n margin-top: 8px;\n }\n }\n }\n a {\n display: inline-block;\n max-width: 150px;\n color: inherit;\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n }\n\n &.footer-links--flow {\n display: inline-flex;\n .footer-links-inner {\n justify-content: center;\n flex-wrap: wrap;\n margin: 0 -8px;\n .footer-links-item {\n padding: 0 8px;\n }\n .footer-links-item + .footer-links-item::before {\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n transform: translate(0, -50%);\n height: 1em;\n border-left: 1px solid ", ";\n }\n }\n }\n\n ", " {\n .footer-links-inner {\n flex-direction: column;\n margin: 0;\n }\n .footer-links-sub {\n display: none;\n }\n .footer-links-group {\n position: relative;\n padding: 12px 0;\n .footer-links-item .footer-links-group-expand-icon {\n display: inline-block;\n }\n }\n .footer-links-group + .footer-links-group {\n border-top: 1px solid ", ";\n }\n .footer-links-group--active {\n .footer-links-sub {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n .footer-links-item {\n flex: 0 0 50%;\n }\n }\n }\n .footer-links-item {\n padding-left: 0;\n padding-right: 0;\n font-size: 13px;\n }\n &.footer-links--grouped {\n .footer-links-group {\n > .footer-links-item {\n font-size: 14px;\n }\n }\n }\n\n &.footer-links--flow {\n .footer-links-inner {\n flex-direction: row;\n }\n }\n }\n"])), props => props.$theme.palette.grey[600], props => props.$theme.palette.grey[900], props => props.theme.palette.grey[400], props => props.$theme.breakpoints.down('md'), props => props.$theme.palette.grey[200]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.10",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"url": "https://github.com/ArcBlock/ux/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@arcblock/did-connect": "^2.4.
|
|
34
|
-
"@arcblock/ux": "^2.4.
|
|
33
|
+
"@arcblock/did-connect": "^2.4.10",
|
|
34
|
+
"@arcblock/ux": "^2.4.10",
|
|
35
35
|
"@emotion/react": "^11.10.0",
|
|
36
36
|
"@emotion/styled": "^11.10.0",
|
|
37
37
|
"@iconify/iconify": "^2.2.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
54
54
|
"jest": "^24.9.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "9780479afff4ed710a926cb930fb36bac5e46f8c"
|
|
57
57
|
}
|
package/src/Footer/links.js
CHANGED
|
@@ -31,7 +31,7 @@ export default function Links({ links, flowLayout, ...rest }) {
|
|
|
31
31
|
}
|
|
32
32
|
return (
|
|
33
33
|
<>
|
|
34
|
-
<Icon icon={icon} size={20} sx={{ mr: 0.5 }} />
|
|
34
|
+
{icon && <Icon icon={icon} size={20} sx={{ mr: 0.5 }} />}
|
|
35
35
|
{result}
|
|
36
36
|
</>
|
|
37
37
|
);
|
|
@@ -122,12 +122,16 @@ const Root = styled('div')`
|
|
|
122
122
|
display: flex;
|
|
123
123
|
flex-direction: column;
|
|
124
124
|
}
|
|
125
|
+
.footer-links-sub .footer-links-item {
|
|
126
|
+
color: ${(props) => props.$theme.palette.grey[900]};
|
|
127
|
+
}
|
|
125
128
|
.footer-links-group-expand-icon {
|
|
126
129
|
display: none;
|
|
127
130
|
position: absolute;
|
|
128
131
|
right: 16px;
|
|
129
132
|
top: 50%;
|
|
130
133
|
transform: translate(0, -50%);
|
|
134
|
+
line-height: 1;
|
|
131
135
|
svg {
|
|
132
136
|
width: auto;
|
|
133
137
|
height: 0.75em;
|
|
@@ -137,9 +141,8 @@ const Root = styled('div')`
|
|
|
137
141
|
display: inline-flex;
|
|
138
142
|
align-items: center;
|
|
139
143
|
position: relative;
|
|
140
|
-
padding:
|
|
144
|
+
padding: 4px 8px;
|
|
141
145
|
font-size: 14px;
|
|
142
|
-
line-height: 1.6;
|
|
143
146
|
}
|
|
144
147
|
&.footer-links--grouped {
|
|
145
148
|
.footer-links-group {
|
|
@@ -211,7 +214,8 @@ const Root = styled('div')`
|
|
|
211
214
|
}
|
|
212
215
|
}
|
|
213
216
|
.footer-links-item {
|
|
214
|
-
padding: 0;
|
|
217
|
+
padding-left: 0;
|
|
218
|
+
padding-right: 0;
|
|
215
219
|
font-size: 13px;
|
|
216
220
|
}
|
|
217
221
|
&.footer-links--grouped {
|