@onesy/ui-react 1.0.15 → 1.0.17
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/Avatar/Avatar.js
CHANGED
@@ -40,7 +40,9 @@ const useStyle = (0, style_react_1.style)(theme => ({
|
|
40
40
|
justifyContent: 'center'
|
41
41
|
},
|
42
42
|
image: {
|
43
|
-
objectFit: 'cover'
|
43
|
+
objectFit: 'cover',
|
44
|
+
width: '100%',
|
45
|
+
height: '100%'
|
44
46
|
}
|
45
47
|
}), { name: 'onesy-Avatar' });
|
46
48
|
const Avatar = react_1.default.forwardRef((props_, ref) => {
|
package/CardImage/CardImage.js
CHANGED
@@ -25,7 +25,8 @@ const useStyle = (0, style_react_1.style)(theme => ({
|
|
25
25
|
backgroundRepeat: 'no-repeat',
|
26
26
|
backgroundPosition: 'center',
|
27
27
|
objectFit: 'cover',
|
28
|
-
width: '100%'
|
28
|
+
width: '100%',
|
29
|
+
height: '100%'
|
29
30
|
},
|
30
31
|
shape_top: {
|
31
32
|
borderRadius: `${theme.shape.radius.unit * 3}px ${theme.shape.radius.unit * 3}px 0 0`
|
@@ -471,7 +471,7 @@ const SmartTextField = react_1.default.forwardRef((props_, ref) => {
|
|
471
471
|
if (mention) {
|
472
472
|
if (refs.openMenu.current && !optionsMention.length)
|
473
473
|
onCloseSearch();
|
474
|
-
else if (!refs.openMenu.current && !!optionsMention.length)
|
474
|
+
else if (!refs.openMenu.current && refs.search.current && !!optionsMention.length)
|
475
475
|
onOpenSearch();
|
476
476
|
}
|
477
477
|
}, [mention, optionsMention]);
|
package/esm/Avatar/Avatar.js
CHANGED
@@ -14,7 +14,8 @@ const useStyle = styleMethod(theme => ({
|
|
14
14
|
backgroundRepeat: 'no-repeat',
|
15
15
|
backgroundPosition: 'center',
|
16
16
|
objectFit: 'cover',
|
17
|
-
width: '100%'
|
17
|
+
width: '100%',
|
18
|
+
height: '100%'
|
18
19
|
},
|
19
20
|
shape_top: {
|
20
21
|
borderRadius: `${theme.shape.radius.unit * 3}px ${theme.shape.radius.unit * 3}px 0 0`
|
@@ -491,7 +491,7 @@ const SmartTextField = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
491
491
|
// else if no users response & opened, close the search
|
492
492
|
React.useEffect(() => {
|
493
493
|
if (mention) {
|
494
|
-
if (refs.openMenu.current && !optionsMention.length) onCloseSearch();else if (!refs.openMenu.current && !!optionsMention.length) onOpenSearch();
|
494
|
+
if (refs.openMenu.current && !optionsMention.length) onCloseSearch();else if (!refs.openMenu.current && refs.search.current && !!optionsMention.length) onOpenSearch();
|
495
495
|
}
|
496
496
|
}, [mention, optionsMention]);
|
497
497
|
React.useEffect(() => {
|
package/esm/index.js
CHANGED