@ringcentral/juno 2.42.2 → 2.42.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.
@@ -10,16 +10,21 @@ exports.sharedListItemStyle = function (_a) {
10
10
  var highlighted = _a.highlighted, color = _a.color, canHover = _a.canHover, _b = _a.baseColor, baseColorProp = _b === void 0 ? 'black' : _b, mainClasses = _a.mainClasses, rippleClasses = _a.rippleClasses, focusVariant = _a.focusVariant;
11
11
  var baseColor = foundation_1.getParsePaletteColor(color !== null && color !== void 0 ? color : utils_1.colorMap[baseColorProp]);
12
12
  var useFocusRing = focusVariant === 'focusRing';
13
- return foundation_1.css(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n ", ";\n color: ", ";\n\n ", ";\n\n ", ",\n &.", " {\n background-color: ", ";\n ", "\n }\n\n ", " {\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &,\n &:hover {\n background-color: ", ";\n }\n }\n\n .", " {\n color: ", ";\n }\n\n ", ";\n "], ["\n ", ";\n color: ", ";\n\n ",
13
+ return foundation_1.css(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n ", ";\n color: ", ";\n\n ", ";\n\n ", "\n &.Mui-focusVisible {\n background-color: unset;\n }\n\n ", " {\n background-color: ", ";\n ", "\n }\n\n ", " {\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &,\n &:hover {\n background-color: ", ";\n }\n }\n\n .", " {\n color: ", ";\n }\n\n ", ";\n "], ["\n ", ";\n color: ", ";\n\n ",
14
14
  ";\n\n "
15
+ // mui focus visible have issue in old version, we use the focus-visible polyfill class to do that
16
+ ,
17
+ "\n &.Mui-focusVisible {\n background-color: unset;\n }\n\n "
15
18
  // that for menuItem, because in current version of menuItem that not support focused classes
16
19
  // TODO: that can be remove after upgrade to V5
17
20
  ,
18
- ",\n &.", " {\n background-color: ",
21
+ " {\n background-color: ",
19
22
  ";\n ", "\n }\n\n ", " {\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &,\n &:hover {\n background-color: ", ";\n }\n }\n\n .", " {\n color: ", ";\n }\n\n ", ";\n "])), foundation_1.typography('body1'), foundation_1.palette2('neutral', 'f06'), highlighted && foundation_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), foundation_1.setAlpha(baseColor, 0.05)),
23
+ // mui focus visible have issue in old version, we use the focus-visible polyfill class to do that
24
+ '',
20
25
  // that for menuItem, because in current version of menuItem that not support focused classes
21
26
  // TODO: that can be remove after upgrade to V5
22
- foundation_1.focusVisible, mainClasses.focusVisible, function () {
27
+ foundation_1.focusVisible, function () {
23
28
  // to override mui focus visible style when item is highlighted
24
29
  if (useFocusRing && highlighted) {
25
30
  return foundation_1.setAlpha(baseColor, 0.05);
@@ -8,16 +8,21 @@ export var sharedListItemStyle = function (_a) {
8
8
  var highlighted = _a.highlighted, color = _a.color, canHover = _a.canHover, _b = _a.baseColor, baseColorProp = _b === void 0 ? 'black' : _b, mainClasses = _a.mainClasses, rippleClasses = _a.rippleClasses, focusVariant = _a.focusVariant;
9
9
  var baseColor = getParsePaletteColor(color !== null && color !== void 0 ? color : colorMap[baseColorProp]);
10
10
  var useFocusRing = focusVariant === 'focusRing';
11
- return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n color: ", ";\n\n ", ";\n\n ", ",\n &.", " {\n background-color: ", ";\n ", "\n }\n\n ", " {\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &,\n &:hover {\n background-color: ", ";\n }\n }\n\n .", " {\n color: ", ";\n }\n\n ", ";\n "], ["\n ", ";\n color: ", ";\n\n ",
11
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n color: ", ";\n\n ", ";\n\n ", "\n &.Mui-focusVisible {\n background-color: unset;\n }\n\n ", " {\n background-color: ", ";\n ", "\n }\n\n ", " {\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &,\n &:hover {\n background-color: ", ";\n }\n }\n\n .", " {\n color: ", ";\n }\n\n ", ";\n "], ["\n ", ";\n color: ", ";\n\n ",
12
12
  ";\n\n "
13
+ // mui focus visible have issue in old version, we use the focus-visible polyfill class to do that
14
+ ,
15
+ "\n &.Mui-focusVisible {\n background-color: unset;\n }\n\n "
13
16
  // that for menuItem, because in current version of menuItem that not support focused classes
14
17
  // TODO: that can be remove after upgrade to V5
15
18
  ,
16
- ",\n &.", " {\n background-color: ",
19
+ " {\n background-color: ",
17
20
  ";\n ", "\n }\n\n ", " {\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &,\n &:hover {\n background-color: ", ";\n }\n }\n\n .", " {\n color: ", ";\n }\n\n ", ";\n "])), typography('body1'), palette2('neutral', 'f06'), highlighted && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), setAlpha(baseColor, 0.05)),
21
+ // mui focus visible have issue in old version, we use the focus-visible polyfill class to do that
22
+ '',
18
23
  // that for menuItem, because in current version of menuItem that not support focused classes
19
24
  // TODO: that can be remove after upgrade to V5
20
- focusVisible, mainClasses.focusVisible, function () {
25
+ focusVisible, function () {
21
26
  // to override mui focus visible style when item is highlighted
22
27
  if (useFocusRing && highlighted) {
23
28
  return setAlpha(baseColor, 0.05);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringcentral/juno",
3
- "version": "2.42.2",
3
+ "version": "2.42.3",
4
4
  "author": "RingCentral",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",