@ringcentral/juno 2.31.0 → 2.33.0

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.
Files changed (65) hide show
  1. package/components/Badge/Badge.js +1 -2
  2. package/components/Badge/styles/BadgeStyle.d.ts +3 -0
  3. package/components/Badge/styles/BadgeStyle.js +2 -1
  4. package/components/Forms/Picker/TimePicker/TimePicker.d.ts +4 -1
  5. package/components/Forms/Picker/TimePicker/TimePicker.js +12 -5
  6. package/components/Forms/Picker/TimePicker/ToggleText.d.ts +16 -1
  7. package/components/Forms/Picker/TimePicker/ToggleText.js +2 -2
  8. package/components/Forms/Picker/TimePicker/types.d.ts +4 -0
  9. package/components/Forms/Picker/TimePicker/types.js +2 -0
  10. package/components/Forms/Picker/TimePicker/utils/TimePickerHelper.d.ts +5 -1
  11. package/components/Forms/Picker/TimePicker/utils/TimePickerHelper.js +2 -2
  12. package/components/Presence/Presence.d.ts +11 -1
  13. package/components/Presence/Presence.js +22 -8
  14. package/components/Presence/assets/Check.d.ts +3 -0
  15. package/components/Presence/assets/Check.js +9 -0
  16. package/components/Presence/assets/Default.d.ts +3 -0
  17. package/components/Presence/assets/Default.js +9 -0
  18. package/components/Presence/assets/Dnd.d.ts +3 -0
  19. package/components/Presence/assets/Dnd.js +9 -0
  20. package/components/Presence/assets/Offline.d.ts +3 -0
  21. package/components/Presence/assets/Offline.js +9 -0
  22. package/components/Presence/assets/Unattended.js +1 -1
  23. package/components/Presence/assets/index.d.ts +4 -1
  24. package/components/Presence/assets/index.js +8 -2
  25. package/components/Presence/styles/StyledPresence.d.ts +5 -18
  26. package/components/Presence/styles/StyledPresence.js +18 -12
  27. package/components/Presence/styles/index.d.ts +0 -1
  28. package/components/Presence/styles/index.js +0 -1
  29. package/components/Presence/utils/RcPresenceUtils.d.ts +1 -2
  30. package/components/Presence/utils/RcPresenceUtils.js +17 -22
  31. package/components/Tabs/TabList/TabList.js +8 -6
  32. package/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.d.ts +1 -1
  33. package/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.js +14 -4
  34. package/components/VirtualizedMenu/VirtualizedMenu.js +14 -3
  35. package/components/VirtualizedMenu/useNextFrame.d.ts +1 -0
  36. package/components/VirtualizedMenu/useNextFrame.js +22 -0
  37. package/es6/components/Badge/Badge.js +2 -3
  38. package/es6/components/Badge/styles/BadgeStyle.js +3 -2
  39. package/es6/components/Forms/Picker/TimePicker/TimePicker.js +12 -5
  40. package/es6/components/Forms/Picker/TimePicker/ToggleText.js +2 -2
  41. package/es6/components/Forms/Picker/TimePicker/types.js +0 -0
  42. package/es6/components/Forms/Picker/TimePicker/utils/TimePickerHelper.js +2 -2
  43. package/es6/components/Presence/Presence.js +26 -12
  44. package/es6/components/Presence/assets/Check.js +7 -0
  45. package/es6/components/Presence/assets/Default.js +7 -0
  46. package/es6/components/Presence/assets/Dnd.js +7 -0
  47. package/es6/components/Presence/assets/Offline.js +7 -0
  48. package/es6/components/Presence/assets/Unattended.js +1 -1
  49. package/es6/components/Presence/assets/index.js +4 -1
  50. package/es6/components/Presence/styles/StyledPresence.js +20 -14
  51. package/es6/components/Presence/styles/index.js +0 -1
  52. package/es6/components/Presence/utils/RcPresenceUtils.js +17 -22
  53. package/es6/components/Tabs/TabList/TabList.js +8 -6
  54. package/es6/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.js +14 -4
  55. package/es6/components/VirtualizedMenu/VirtualizedMenu.js +14 -3
  56. package/es6/components/VirtualizedMenu/useNextFrame.js +20 -0
  57. package/es6/foundation/styles/focusRing.js +2 -2
  58. package/foundation/styles/focusRing.js +2 -2
  59. package/package.json +1 -1
  60. package/components/Presence/assets/Attended.d.ts +0 -3
  61. package/components/Presence/assets/Attended.js +0 -9
  62. package/components/Presence/styles/StyledDND.d.ts +0 -13
  63. package/components/Presence/styles/StyledDND.js +0 -12
  64. package/es6/components/Presence/assets/Attended.js +0 -7
  65. package/es6/components/Presence/styles/StyledDND.js +0 -10
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import React, { forwardRef, memo } from 'react';
3
3
  var Unattended = memo(forwardRef(function (props, svgRef) { return (React.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", ref: svgRef }, props),
4
- React.createElement("path", { d: "M24.27 2L16 10.271 7.73 2 2 7.73 10.271 16 2 24.27 7.73 30 16 21.729 24.27 30 30 24.27 21.729 16 30 7.73z" }))); }));
4
+ React.createElement("path", { d: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Zm7.54,20.39a2.23,2.23,0,0,1-3.15,3.15h0L16,19.15l-4.39,4.39a2.23,2.23,0,0,1-3.15-3.15h0L12.85,16,8.46,11.61a2.23,2.23,0,0,1,3.15-3.15L16,12.85l4.39-4.39a2.23,2.23,0,0,1,3.15,3.15h0L19.15,16Z" }))); }));
5
5
  Unattended.displayName = 'Unattended';
6
6
  Unattended['iconName'] = 'unattended';
7
7
  export default Unattended;
@@ -1,2 +1,5 @@
1
- export { default as Attended } from './Attended';
2
1
  export { default as Unattended } from './Unattended';
2
+ export { default as Check } from './Check';
3
+ export { default as Default } from './Default';
4
+ export { default as Offline } from './Offline';
5
+ export { default as Dnd } from './Dnd';
@@ -1,22 +1,28 @@
1
1
  import { __assign, __makeTemplateObject, __rest } from "tslib";
2
2
  import React, { forwardRef } from 'react';
3
- import { css, getParsePaletteColor, palette2, px, styled, } from '../../../foundation';
3
+ import { css, getParsePaletteColor, palette2, styled, fakeBorder, } from '../../../foundation';
4
4
  import { RcIcon } from '../../Icon';
5
- import { RcPresenceAvailableIconSizes, RcPresenceColors, RcPresenceSizes, } from '../utils';
5
+ import { RcPresenceBackgroundColors } from '../utils';
6
+ export var PresenceContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ",
7
+ "\n"])), function (_a) {
8
+ var iconSizeValue = _a.iconSizeValue, borderSizeValue = _a.borderSizeValue;
9
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n width: ", "px;\n height: ", "px;\n padding: ", "px;\n "], ["\n display: flex;\n justify-content: center;\n width: ", "px;\n height: ", "px;\n padding: ", "px;\n "])), iconSizeValue, iconSizeValue, borderSizeValue);
10
+ });
6
11
  export var _StyledPresence = forwardRef(function (_a, ref) {
7
- var color = _a.color, borderSize = _a.borderSize, type = _a.type, size = _a.size, rest = __rest(_a, ["color", "borderSize", "type", "size"]);
8
- return (React.createElement("div", __assign({ ref: ref }, rest)));
12
+ var color = _a.color, type = _a.type, rest = __rest(_a, ["color", "type"]);
13
+ return React.createElement("div", __assign({ ref: ref }, rest));
9
14
  });
10
- export var StyledPresence = styled(_StyledPresence)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n box-sizing: content-box;\n\n ", ";\n"], ["\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n box-sizing: content-box;\n\n ",
15
+ export var StyledPresence = styled(_StyledPresence)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n box-sizing: content-box;\n\n ", ";\n"], ["\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n box-sizing: content-box;\n\n ",
11
16
  ";\n"])), function (_a) {
12
- var size = _a.size, borderSize = _a.borderSize, type = _a.type, color = _a.color;
13
- var sizeValue = px(RcPresenceSizes[size][0]);
14
- var availableSize = RcPresenceAvailableIconSizes[size];
15
- var iconSizeValue = px(availableSize[0]);
16
- var scaleRate = availableSize[1];
17
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n border: ", "px solid\n ", ";\n background: ", ";\n\n ", " {\n transform: ", ";\n\n svg {\n width: ", ";\n height: ", ";\n }\n }\n "], ["\n width: ", ";\n height: ", ";\n border: ", "px solid\n ", ";\n background: ",
18
- ";\n\n ", " {\n transform: ", ";\n\n svg {\n width: ", ";\n height: ", ";\n }\n }\n "])), sizeValue, sizeValue, RcPresenceSizes[borderSize || size][1], palette2('neutral', 'l01'), color
17
+ var type = _a.type, iconSizeValue = _a.iconSizeValue, borderSizeValue = _a.borderSizeValue, color = _a.color;
18
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n background: ", ";\n margin: ", "px;\n ", ";\n ", " {\n svg {\n width: ", "px;\n height: ", "px;\n }\n }\n "], ["\n width: ", "px;\n height: ", "px;\n background: ",
19
+ ";\n margin: ", "px;\n ",
20
+ ";\n ", " {\n svg {\n width: ", "px;\n height: ", "px;\n }\n }\n "])), iconSizeValue, iconSizeValue, color
19
21
  ? getParsePaletteColor(color)
20
- : RcPresenceColors[type], RcIcon, scaleRate && "scale(" + scaleRate + ")", iconSizeValue, iconSizeValue);
22
+ : RcPresenceBackgroundColors[type] || palette2('neutral', 'l01'), borderSizeValue, fakeBorder({
23
+ inset: false,
24
+ color: palette2('neutral', 'l01'),
25
+ size: borderSizeValue,
26
+ }), RcIcon, iconSizeValue, iconSizeValue);
21
27
  });
22
- var templateObject_1, templateObject_2;
28
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -1,2 +1 @@
1
- export * from './StyledDND';
2
1
  export * from './StyledPresence';
@@ -4,28 +4,9 @@ export var RcPresenceSizes = {
4
4
  xxsmall: [8, 1],
5
5
  xsmall: [8, 2],
6
6
  small: [10, 2],
7
- medium: [10, 3],
8
- large: [14, 3],
9
- xlarge: [18, 3],
10
- };
11
- // width, height
12
- export var RcPresenceInnerIconSizes = {
13
- xxsmall: [4, 2],
14
- xsmall: [6, 2],
15
- small: [6, 2],
16
- medium: [6, 2],
17
- large: [10, 4],
18
- xlarge: [14, 4],
19
- };
20
- // use scale rate to make that be odd value
21
- // width, scaleRate
22
- export var RcPresenceAvailableIconSizes = {
23
- xxsmall: [10, 0.5],
24
- xsmall: [10, 0.5],
25
- small: [6, undefined],
26
- medium: [6, undefined],
27
- large: [10, undefined],
28
- xlarge: [12, undefined],
7
+ medium: [12, 2],
8
+ large: [16, 2],
9
+ xlarge: [20, 2],
29
10
  };
30
11
  var presenceOn = palette2('presence', 'available');
31
12
  var presenceBusy = palette2('presence', 'busy');
@@ -45,3 +26,17 @@ export var RcPresenceColors = {
45
26
  notReady: presenceOff,
46
27
  offline: presenceOff,
47
28
  };
29
+ export var RcPresenceBackgroundColors = {
30
+ // positive
31
+ available: '#FFFFFF',
32
+ attended: '#FFFFFF',
33
+ // negative
34
+ unAttended: '#FFFFFF',
35
+ onCall: '#FFFFFF',
36
+ inMeeting: '#FFFFFF',
37
+ DND: '#FFFFFF',
38
+ busy: '#FFFFFF',
39
+ unavailable: palette2('neutral', 'l01'),
40
+ notReady: palette2('neutral', 'l01'),
41
+ offline: palette2('neutral', 'l01'),
42
+ };
@@ -18,13 +18,15 @@ var _RcTabList = forwardRef(function (inProps, ref) {
18
18
  if (context === null) {
19
19
  throw new TypeError('[RcTabList] No TabContext provided');
20
20
  }
21
- var children = React.Children.map(childrenProp, function (child) {
22
- var value = child.props.value;
23
- return React.cloneElement(child, {
24
- 'aria-controls': getPanelId(context, value),
25
- id: getTabId(context, value),
21
+ var children = useMemo(function () {
22
+ return React.Children.map(childrenProp, function (child) {
23
+ var value = child.props.value;
24
+ return React.cloneElement(child, {
25
+ 'aria-controls': getPanelId(context, value),
26
+ id: getTabId(context, value),
27
+ });
26
28
  });
27
- });
29
+ }, [childrenProp, context]);
28
30
  return (React.createElement(RcTabs, __assign({}, rest, { ref: ref, classes: classes, value: context.value }), children));
29
31
  });
30
32
  var RcTabList = styled(_RcTabList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), TabListStyle);
@@ -15,13 +15,23 @@ var _MoreMenuTab = forwardRef(function (props, ref) {
15
15
  var menuIdProp = MenuProps.id, onMenuCloseProp = MenuProps.onClose, MenuPropsRest = __rest(MenuProps, ["id", "onClose"]);
16
16
  var menuId = useId(menuIdProp);
17
17
  var _c = __read(useState(null), 2), anchorEl = _c[0], setAnchorEl = _c[1];
18
- var MoreIcon = useMemo(function () {
19
- var Icon = MoreIconProp || (React.createElement(RcIcon, { size: "medium", color: "neutral.f04", symbol: MoreHorizIcon }));
18
+ var open = Boolean(anchorEl);
19
+ var MoreIcon = (function () {
20
+ var Icon;
21
+ if (!MoreIconProp) {
22
+ Icon = (React.createElement(RcIcon, { size: "medium", color: "neutral.f04", symbol: MoreHorizIcon }));
23
+ }
24
+ else if (typeof MoreIconProp === 'function') {
25
+ Icon = MoreIconProp(open);
26
+ }
27
+ else {
28
+ Icon = MoreIconProp;
29
+ }
20
30
  if (TooltipProps === null || TooltipProps === void 0 ? void 0 : TooltipProps.title) {
21
31
  return React.createElement(RcTooltip, __assign({}, TooltipProps), Icon);
22
32
  }
23
33
  return Icon;
24
- }, [MoreIconProp, TooltipProps]);
34
+ })();
25
35
  var handleTabClick = useEventCallback(function (event) {
26
36
  setAnchorEl(event.currentTarget);
27
37
  });
@@ -46,7 +56,7 @@ var _MoreMenuTab = forwardRef(function (props, ref) {
46
56
  }, [MenuItemComponent, menuItems, onChange]);
47
57
  return (React.createElement(React.Fragment, null,
48
58
  React.createElement(RcTab, __assign({}, rest, { ref: ref, onClick: handleTabClick, label: MoreIcon, value: DEFAULT_MORE_MENU_TAB_LABEL, "aria-haspopup": "true", "aria-controls": menuId })),
49
- React.createElement(RcMenu, __assign({ autoClose: true }, MenuPropsRest, { id: menuId, anchorEl: anchorEl, open: Boolean(anchorEl), variant: "menu", onClose: handleMenuClose }), MenuList)));
59
+ React.createElement(RcMenu, __assign({ autoClose: true }, MenuPropsRest, { id: menuId, anchorEl: anchorEl, open: open, variant: "menu", onClose: handleMenuClose }), MenuList)));
50
60
  });
51
61
  /** inner component */
52
62
  var MoreMenuTab = styled(_MoreMenuTab)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), MoreMenuTabStyle);
@@ -7,12 +7,15 @@ import { RcFade } from '../Transitions';
7
7
  import { VirtualizedMenuStyle } from './styles';
8
8
  import { RcVirtualizedMenuClasses } from './utils';
9
9
  import { RcVirtualizedMenuList, } from './VirtualizedMenuList';
10
+ import { useNextFrame } from './useNextFrame';
10
11
  var _RcVirtualizedMenu = forwardRef(function (inProps, ref) {
11
12
  var props = useThemeProps({ props: inProps, name: 'RcVirtualizedMenu' });
12
- var _a = props.autoFocus, autoFocus = _a === void 0 ? true : _a, children = props.children, classesProp = props.classes, _b = props.disableAutoFocusItem, disableAutoFocusItem = _b === void 0 ? false : _b, _c = props.MenuListProps, _d = _c === void 0 ? {} : _c, _e = _d.maxHeight, maxHeight = _e === void 0 ? 416 : _e, onKeyDown = _d.onKeyDown, MenuListProps = __rest(_d, ["maxHeight", "onKeyDown"]), onClose = props.onClose, open = props.open, TransitionPropsProp = props.TransitionProps, _f = props.PaperProps, PaperPropsProp = _f === void 0 ? {} : _f, PopoverClasses = props.PopoverClasses, _g = props.transitionDuration, transitionDuration = _g === void 0 ? 'auto' : _g, _h = props.variant, variant = _h === void 0 ? 'selectedMenu' : _h, rest = __rest(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "TransitionProps", "PaperProps", "PopoverClasses", "transitionDuration", "variant"]);
13
+ var _a = props.autoFocus, autoFocus = _a === void 0 ? true : _a, children = props.children, classesProp = props.classes, _b = props.disableAutoFocusItem, disableAutoFocusItem = _b === void 0 ? false : _b, _c = props.MenuListProps, _d = _c === void 0 ? {} : _c, _e = _d.maxHeight, maxHeight = _e === void 0 ? 416 : _e, onKeyDown = _d.onKeyDown, VirtuosoProps = _d.VirtuosoProps, MenuListProps = __rest(_d, ["maxHeight", "onKeyDown", "VirtuosoProps"]), onClose = props.onClose, open = props.open, TransitionPropsProp = props.TransitionProps, _f = props.PaperProps, PaperPropsProp = _f === void 0 ? {} : _f, PopoverClasses = props.PopoverClasses, _g = props.transitionDuration, transitionDuration = _g === void 0 ? 'auto' : _g, _h = props.variant, variant = _h === void 0 ? 'selectedMenu' : _h, _j = props.action, popoverActionProp = _j === void 0 ? null : _j, rest = __rest(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "TransitionProps", "PaperProps", "PopoverClasses", "transitionDuration", "variant", "action"]);
13
14
  var document = useRcPortalWindowContext().document;
14
15
  var popoverRef = useRef(null);
15
16
  var handleRef = useForkRef(ref, popoverRef);
17
+ var popoverAction = useRef(null);
18
+ var handlePopoverAction = useForkRef(popoverAction, popoverActionProp);
16
19
  var menuListActionRef = useRef(null);
17
20
  var classes = useMemo(function () { return combineClasses(RcVirtualizedMenuClasses, classesProp); }, [classesProp]);
18
21
  var autoFocusItem = autoFocus && !disableAutoFocusItem && open;
@@ -49,10 +52,18 @@ var _RcVirtualizedMenu = forwardRef(function (inProps, ref) {
49
52
  }
50
53
  }
51
54
  });
52
- return (React.createElement(RcPopover, __assign({ ref: handleRef, container: document.body, classes: PopoverClasses, onClose: onClose, open: open,
55
+ var runInNextFrame = useNextFrame();
56
+ return (React.createElement(RcPopover, __assign({ ref: handleRef, action: handlePopoverAction, container: document.body, classes: PopoverClasses, onClose: onClose, open: open,
53
57
  // FIXME: workaround for virtualized menu height incorrect issue
54
58
  TransitionComponent: RcFade, transitionDuration: transitionDuration, PaperProps: PaperProps, TransitionProps: TransitionProps }, rest),
55
- React.createElement(RcVirtualizedMenuList, __assign({ position: "unset", action: menuListActionRef, autoFocus: autoFocus, autoFocusItem: autoFocusItem, maxHeight: maxHeight, variant: variant, onKeyDown: handleListKeyDown }, MenuListProps, { className: clsx(classes.list, MenuListProps.className) }), children)));
59
+ React.createElement(RcVirtualizedMenuList, __assign({ position: "unset", action: menuListActionRef, autoFocus: autoFocus, autoFocusItem: autoFocusItem, maxHeight: maxHeight, variant: variant, onKeyDown: handleListKeyDown, VirtuosoProps: __assign(__assign({}, VirtuosoProps), { totalListHeightChanged: function (height) {
60
+ var _a;
61
+ (_a = VirtuosoProps === null || VirtuosoProps === void 0 ? void 0 : VirtuosoProps.totalListHeightChanged) === null || _a === void 0 ? void 0 : _a.call(VirtuosoProps, height);
62
+ runInNextFrame(function () {
63
+ var _a;
64
+ (_a = popoverAction.current) === null || _a === void 0 ? void 0 : _a.updatePosition();
65
+ });
66
+ } }) }, MenuListProps, { className: clsx(classes.list, MenuListProps.className) }), children)));
56
67
  });
57
68
  var RcVirtualizedMenu = styled(_RcVirtualizedMenu)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), VirtualizedMenuStyle);
58
69
  RcVirtualizedMenu.defaultProps = {
@@ -0,0 +1,20 @@
1
+ import { useRef, useLayoutEffect } from 'react';
2
+ export var useNextFrame = function () {
3
+ var rafIdRef = useRef(null);
4
+ useLayoutEffect(function () {
5
+ if (rafIdRef.current !== null) {
6
+ cancelAnimationFrame(rafIdRef.current);
7
+ }
8
+ }, []);
9
+ return function (task) {
10
+ if (rafIdRef.current !== null) {
11
+ cancelAnimationFrame(rafIdRef.current);
12
+ }
13
+ rafIdRef.current = requestAnimationFrame(function () {
14
+ rafIdRef.current = requestAnimationFrame(function () {
15
+ rafIdRef.current = null;
16
+ task();
17
+ });
18
+ });
19
+ };
20
+ };
@@ -13,9 +13,9 @@ export var focusRing = function (variant, options) {
13
13
  var _b = options.borderRadius, borderRadius = _b === void 0 ? 'zero' : _b, _c = options.borderWidth, borderWidth = _c === void 0 ? '0px' : _c;
14
14
  var isInset = variant === 'inset';
15
15
  var offset = focusRingOffsetMap[variant];
16
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:after {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n\n margin: calc(-", " - ", ");\n border-radius: calc(", " + ", ");\n box-shadow: ", " 0 0 0 2px\n ", ";\n }\n "], ["\n &:after {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n\n margin: calc(-", " - ", ");\n border-radius: calc(", " + ", ");\n box-shadow: ", " 0 0 0 2px\n ", ";\n }\n "])), offset, borderWidth, offset, radius(borderRadius), isInset ? 'inset' : '', palette2('interactive', 'b02'));
16
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:after {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n\n margin: calc(-", " - ", ");\n border-radius: calc(", " + ", ");\n box-shadow: ", " 0 0 0 2px\n ", ";\n }\n "], ["\n &:after {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n\n margin: calc(-", " - ", ");\n border-radius: calc(", " + ", ");\n box-shadow: ", " 0 0 0 2px\n ", ";\n }\n "])), offset, borderWidth, offset, radius(borderRadius), isInset ? 'inset' : '', palette2('interactive', 'f01'));
17
17
  }
18
18
  var _d = options.gapColor, gapColor = _d === void 0 ? 'neutral.b01' : _d;
19
- return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-shadow: 0 0 0 2px ", ",\n 0 0 0 4px ", ";\n "], ["\n box-shadow: 0 0 0 2px ", ",\n 0 0 0 4px ", ";\n "])), getParsePaletteColor(gapColor), palette2('interactive', 'b02'));
19
+ return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-shadow: 0 0 0 2px ", ",\n 0 0 0 4px ", ";\n "], ["\n box-shadow: 0 0 0 2px ", ",\n 0 0 0 4px ", ";\n "])), getParsePaletteColor(gapColor), palette2('interactive', 'f01'));
20
20
  };
21
21
  var templateObject_1, templateObject_2;
@@ -15,9 +15,9 @@ exports.focusRing = function (variant, options) {
15
15
  var _b = options.borderRadius, borderRadius = _b === void 0 ? 'zero' : _b, _c = options.borderWidth, borderWidth = _c === void 0 ? '0px' : _c;
16
16
  var isInset = variant === 'inset';
17
17
  var offset = focusRingOffsetMap[variant];
18
- return styled_components_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n &:after {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n\n margin: calc(-", " - ", ");\n border-radius: calc(", " + ", ");\n box-shadow: ", " 0 0 0 2px\n ", ";\n }\n "], ["\n &:after {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n\n margin: calc(-", " - ", ");\n border-radius: calc(", " + ", ");\n box-shadow: ", " 0 0 0 2px\n ", ";\n }\n "])), offset, borderWidth, offset, radius_1.radius(borderRadius), isInset ? 'inset' : '', newPalette_1.palette2('interactive', 'b02'));
18
+ return styled_components_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n &:after {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n\n margin: calc(-", " - ", ");\n border-radius: calc(", " + ", ");\n box-shadow: ", " 0 0 0 2px\n ", ";\n }\n "], ["\n &:after {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n\n margin: calc(-", " - ", ");\n border-radius: calc(", " + ", ");\n box-shadow: ", " 0 0 0 2px\n ", ";\n }\n "])), offset, borderWidth, offset, radius_1.radius(borderRadius), isInset ? 'inset' : '', newPalette_1.palette2('interactive', 'f01'));
19
19
  }
20
20
  var _d = options.gapColor, gapColor = _d === void 0 ? 'neutral.b01' : _d;
21
- return styled_components_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n box-shadow: 0 0 0 2px ", ",\n 0 0 0 4px ", ";\n "], ["\n box-shadow: 0 0 0 2px ", ",\n 0 0 0 4px ", ";\n "])), newPalette_1.getParsePaletteColor(gapColor), newPalette_1.palette2('interactive', 'b02'));
21
+ return styled_components_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n box-shadow: 0 0 0 2px ", ",\n 0 0 0 4px ", ";\n "], ["\n box-shadow: 0 0 0 2px ", ",\n 0 0 0 4px ", ";\n "])), newPalette_1.getParsePaletteColor(gapColor), newPalette_1.palette2('interactive', 'f01'));
22
22
  };
23
23
  var templateObject_1, templateObject_2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringcentral/juno",
3
- "version": "2.31.0",
3
+ "version": "2.33.0",
4
4
  "author": "RingCentral",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Attended: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement>, "string" | "key" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "style" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPath" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filter" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "mask" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "path" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<SVGSVGElement>>>;
3
- export default Attended;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var react_1 = tslib_1.__importStar(require("react"));
5
- var Attended = react_1.memo(react_1.forwardRef(function (props, svgRef) { return (react_1.default.createElement("svg", tslib_1.__assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", ref: svgRef }, props),
6
- react_1.default.createElement("path", { d: "M30 10.393L24.509 5 12.96 16.253l-5.459-5.301L2 16.314 12.963 27z" }))); }));
7
- Attended.displayName = 'Attended';
8
- Attended['iconName'] = 'attended';
9
- exports.default = Attended;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- /// <reference types="styled-jsx" />
3
- export declare const StyledDND: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
4
- type?: "notReady" | "unavailable" | "available" | "onCall" | "DND" | "inMeeting" | "busy" | "offline" | "attended" | "unAttended" | undefined;
5
- size?: "small" | "xxsmall" | "xsmall" | "medium" | "large" | "xlarge" | undefined;
6
- borderSize?: "small" | "xxsmall" | "xsmall" | "medium" | "large" | "xlarge" | undefined;
7
- color?: (string & Record<never, never>) | "action.grayDark" | "action.grayLight" | "action.primary" | "avatar.ash" | "avatar.blueberry" | "avatar.brass" | "avatar.global" | "avatar.gold" | "avatar.lake" | "avatar.oasis" | "avatar.pear" | "avatar.persimmon" | "avatar.sage" | "avatar.tomato" | "content.brand" | "danger.b01" | "danger.b02" | "danger.b03" | "danger.b04" | "danger.f01" | "danger.f02" | "danger.f11" | "dialHeader.avatarBg" | "dialHeader.avatarIcon" | "dialHeader.bg" | "dialHeader.focusBorder" | "dialHeader.icon" | "dialHeader.text" | "dialHeader.textHint" | "disabled.b01" | "disabled.f01" | "disabled.f02" | "header.bgLeft" | "header.bgOverlay" | "header.bgOverlayDisabled" | "header.bgRight" | "header.border" | "header.divider" | "header.fabBg" | "header.fabIcon" | "header.focusBorder" | "header.icon" | "header.iconDisabled" | "header.text" | "header.textHint" | "highContrast" | "highlight.b01" | "highlight.b02" | "highlight.b03" | "highlight.f01" | "highlight.f02" | "informative.b01" | "informative.f01" | "informative.f02" | "interactive.b01" | "interactive.b02" | "interactive.f01" | "label.black02" | "label.blue01" | "label.blue02" | "label.green01" | "label.green02" | "label.orange01" | "label.orange02" | "label.purple01" | "label.purple02" | "label.red01" | "label.red02" | "label.teal01" | "label.teal02" | "label.yellow01" | "label.yellow02" | "nav.b01" | "nav.b02" | "nav.bookmark" | "nav.ctlDefault" | "nav.ctlSelected" | "nav.f01" | "nav.f02" | "nav.f03" | "nav.f04" | "nav.iconDefault" | "nav.iconSelected" | "nav.line" | "nav.mention" | "nav.menuBg" | "nav.menuText" | "neutral.b01" | "neutral.b02" | "neutral.b03" | "neutral.b04" | "neutral.b05" | "neutral.b06" | "neutral.elevation" | "neutral.f01" | "neutral.f02" | "neutral.f03" | "neutral.f04" | "neutral.f05" | "neutral.f06" | "neutral.f07" | "neutral.f11" | "neutral.l01" | "neutral.l02" | "neutral.l03" | "neutral.l04" | "neutral.transparent" | "presence.available" | "presence.busy" | "presence.invisible" | "subAction" | "success.b01" | "success.b02" | "success.b03" | "success.b04" | "success.b05" | "success.f01" | "success.f02" | "success.f11" | "tab.default" | "tab.selected" | "umi.bg" | "umi.mentioned" | "umi.text" | "warning.b01" | "warning.b02" | "warning.b03" | "warning.f01" | "warning.f02" | "warning.f11" | string[] | import("../../../foundation/styles/newPalette").PaletteReturnType | undefined;
8
- } & Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">, import("../../../foundation").RcTheme, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
9
- type?: "notReady" | "unavailable" | "available" | "onCall" | "DND" | "inMeeting" | "busy" | "offline" | "attended" | "unAttended" | undefined;
10
- size?: "small" | "xxsmall" | "xsmall" | "medium" | "large" | "xlarge" | undefined;
11
- borderSize?: "small" | "xxsmall" | "xsmall" | "medium" | "large" | "xlarge" | undefined;
12
- color?: (string & Record<never, never>) | "action.grayDark" | "action.grayLight" | "action.primary" | "avatar.ash" | "avatar.blueberry" | "avatar.brass" | "avatar.global" | "avatar.gold" | "avatar.lake" | "avatar.oasis" | "avatar.pear" | "avatar.persimmon" | "avatar.sage" | "avatar.tomato" | "content.brand" | "danger.b01" | "danger.b02" | "danger.b03" | "danger.b04" | "danger.f01" | "danger.f02" | "danger.f11" | "dialHeader.avatarBg" | "dialHeader.avatarIcon" | "dialHeader.bg" | "dialHeader.focusBorder" | "dialHeader.icon" | "dialHeader.text" | "dialHeader.textHint" | "disabled.b01" | "disabled.f01" | "disabled.f02" | "header.bgLeft" | "header.bgOverlay" | "header.bgOverlayDisabled" | "header.bgRight" | "header.border" | "header.divider" | "header.fabBg" | "header.fabIcon" | "header.focusBorder" | "header.icon" | "header.iconDisabled" | "header.text" | "header.textHint" | "highContrast" | "highlight.b01" | "highlight.b02" | "highlight.b03" | "highlight.f01" | "highlight.f02" | "informative.b01" | "informative.f01" | "informative.f02" | "interactive.b01" | "interactive.b02" | "interactive.f01" | "label.black02" | "label.blue01" | "label.blue02" | "label.green01" | "label.green02" | "label.orange01" | "label.orange02" | "label.purple01" | "label.purple02" | "label.red01" | "label.red02" | "label.teal01" | "label.teal02" | "label.yellow01" | "label.yellow02" | "nav.b01" | "nav.b02" | "nav.bookmark" | "nav.ctlDefault" | "nav.ctlSelected" | "nav.f01" | "nav.f02" | "nav.f03" | "nav.f04" | "nav.iconDefault" | "nav.iconSelected" | "nav.line" | "nav.mention" | "nav.menuBg" | "nav.menuText" | "neutral.b01" | "neutral.b02" | "neutral.b03" | "neutral.b04" | "neutral.b05" | "neutral.b06" | "neutral.elevation" | "neutral.f01" | "neutral.f02" | "neutral.f03" | "neutral.f04" | "neutral.f05" | "neutral.f06" | "neutral.f07" | "neutral.f11" | "neutral.l01" | "neutral.l02" | "neutral.l03" | "neutral.l04" | "neutral.transparent" | "presence.available" | "presence.busy" | "presence.invisible" | "subAction" | "success.b01" | "success.b02" | "success.b03" | "success.b04" | "success.b05" | "success.f01" | "success.f02" | "success.f11" | "tab.default" | "tab.selected" | "umi.bg" | "umi.mentioned" | "umi.text" | "warning.b01" | "warning.b02" | "warning.b03" | "warning.f01" | "warning.f02" | "warning.f11" | string[] | import("../../../foundation/styles/newPalette").PaletteReturnType | undefined;
13
- } & Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">>;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var foundation_1 = require("../../../foundation");
5
- var utils_1 = require("../utils");
6
- exports.StyledDND = foundation_1.styled.div(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n ", ";\n background: ", ";\n"], ["\n ",
7
- ";\n background: ", ";\n"])), function (_a) {
8
- var size = _a.size;
9
- var value = utils_1.RcPresenceInnerIconSizes[size];
10
- return foundation_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n "], ["\n width: ", "px;\n height: ", "px;\n "])), value[0], value[1]);
11
- }, foundation_1.palette2('neutral', 'f01'));
12
- var templateObject_1, templateObject_2;
@@ -1,7 +0,0 @@
1
- import { __assign } from "tslib";
2
- import React, { forwardRef, memo } from 'react';
3
- var Attended = memo(forwardRef(function (props, svgRef) { return (React.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", ref: svgRef }, props),
4
- React.createElement("path", { d: "M30 10.393L24.509 5 12.96 16.253l-5.459-5.301L2 16.314 12.963 27z" }))); }));
5
- Attended.displayName = 'Attended';
6
- Attended['iconName'] = 'attended';
7
- export default Attended;
@@ -1,10 +0,0 @@
1
- import { __makeTemplateObject } from "tslib";
2
- import { css, palette2, styled } from '../../../foundation';
3
- import { RcPresenceInnerIconSizes } from '../utils';
4
- export var StyledDND = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n background: ", ";\n"], ["\n ",
5
- ";\n background: ", ";\n"])), function (_a) {
6
- var size = _a.size;
7
- var value = RcPresenceInnerIconSizes[size];
8
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n "], ["\n width: ", "px;\n height: ", "px;\n "])), value[0], value[1]);
9
- }, palette2('neutral', 'f01'));
10
- var templateObject_1, templateObject_2;