@ringcentral/juno 2.20.0 → 2.20.3

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.
@@ -3,9 +3,9 @@ import MuiBadge from '@material-ui/core/Badge';
3
3
  import { RcBaseProps, RcPaletteKeys, UnionPick } from '../../foundation';
4
4
  import { RcPresenceProps } from '../Presence';
5
5
  declare type RcBadgeProps = {
6
- /** tag color, default is `highlight.b03` */
6
+ /** tag color, default is `umi.mentioned` */
7
7
  color?: RcPaletteKeys;
8
- /** text color, default is `neutral.f01` */
8
+ /** text color, default is `umi.text` */
9
9
  textColor?: RcPaletteKeys;
10
10
  /** tag border color */
11
11
  borderColor?: RcPaletteKeys;
@@ -59,8 +59,8 @@ var _RcBadge = react_1.forwardRef(function (inProps, ref) {
59
59
  var RcBadge = foundation_1.styled(_RcBadge)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.BadgeStyle);
60
60
  exports.RcBadge = RcBadge;
61
61
  RcBadge.defaultProps = {
62
- color: 'highlight.b03',
63
- textColor: 'neutral.f01',
62
+ color: 'umi.mentioned',
63
+ textColor: 'umi.text',
64
64
  overlap: 'rectangular',
65
65
  anchorOrigin: {
66
66
  horizontal: 'right',
@@ -39,6 +39,7 @@ var _MoreMenuTabs = react_1.forwardRef(function (props, ref) {
39
39
  var hasResizeRef = react_1.useRef(true);
40
40
  var forceUpdate = foundation_1.useForceUpdate();
41
41
  var sizeChange = function (size) {
42
+ hasResizeRef.current = true;
42
43
  if (tabsSizeRef.current.height !== size.height ||
43
44
  tabsSizeRef.current.width !== size.width) {
44
45
  tabsSizeRef.current = size;
@@ -50,7 +51,6 @@ var _MoreMenuTabs = react_1.forwardRef(function (props, ref) {
50
51
  var _b = tslib_1.__read(_a, 1), entry = _b[0];
51
52
  var _c = entry.contentRect, width = _c.width, height = _c.height;
52
53
  var obj = { width: width, height: height };
53
- hasResizeRef.current = true;
54
54
  throttleTabsSizeChange(obj);
55
55
  }, { mode: 'none' });
56
56
  var tabsSize = tabsSizeRef.current;
@@ -56,8 +56,8 @@ var _RcBadge = forwardRef(function (inProps, ref) {
56
56
  });
57
57
  var RcBadge = styled(_RcBadge)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), BadgeStyle);
58
58
  RcBadge.defaultProps = {
59
- color: 'highlight.b03',
60
- textColor: 'neutral.f01',
59
+ color: 'umi.mentioned',
60
+ textColor: 'umi.text',
61
61
  overlap: 'rectangular',
62
62
  anchorOrigin: {
63
63
  horizontal: 'right',
@@ -37,6 +37,7 @@ var _MoreMenuTabs = forwardRef(function (props, ref) {
37
37
  var hasResizeRef = useRef(true);
38
38
  var forceUpdate = useForceUpdate();
39
39
  var sizeChange = function (size) {
40
+ hasResizeRef.current = true;
40
41
  if (tabsSizeRef.current.height !== size.height ||
41
42
  tabsSizeRef.current.width !== size.width) {
42
43
  tabsSizeRef.current = size;
@@ -48,7 +49,6 @@ var _MoreMenuTabs = forwardRef(function (props, ref) {
48
49
  var _b = __read(_a, 1), entry = _b[0];
49
50
  var _c = entry.contentRect, width = _c.width, height = _c.height;
50
51
  var obj = { width: width, height: height };
51
- hasResizeRef.current = true;
52
52
  throttleTabsSizeChange(obj);
53
53
  }, { mode: 'none' });
54
54
  var tabsSize = tabsSizeRef.current;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringcentral/juno",
3
- "version": "2.20.0",
3
+ "version": "2.20.3",
4
4
  "author": "RingCentral",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",