@ringcentral/juno 2.35.4 → 2.35.5
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/components/Presence/assets/Check.js +3 -1
- package/components/Presence/assets/Dnd.js +2 -1
- package/components/Presence/assets/Unattended.js +2 -1
- package/components/Presence/styles/StyledPresence.js +2 -3
- package/components/Presence/utils/RcPresenceUtils.d.ts +0 -1
- package/components/Presence/utils/RcPresenceUtils.js +0 -14
- package/es6/components/Presence/assets/Check.js +3 -1
- package/es6/components/Presence/assets/Dnd.js +2 -1
- package/es6/components/Presence/assets/Unattended.js +2 -1
- package/es6/components/Presence/styles/StyledPresence.js +2 -3
- package/es6/components/Presence/utils/RcPresenceUtils.js +0 -14
- package/package.json +1 -1
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
var Check = 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("
|
|
6
|
+
react_1.default.createElement("g", { id: "Available" },
|
|
7
|
+
react_1.default.createElement("path", { id: "Shape", fill: "#3c9949", d: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Z" })),
|
|
8
|
+
react_1.default.createElement("path", { fill: "#fff", d: "M24.62,10.38,17.51,23.72A2.19,2.19,0,0,1,16,24.89h-.41a2.17,2.17,0,0,1-1.37-.53L8,19a2.22,2.22,0,0,1,2.38-3.7,2,2,0,0,1,.39.32L14.9,19.2,20.71,8.3a2.22,2.22,0,0,1,2.94-1.07h0a2.15,2.15,0,0,1,1.15,1.25,2.23,2.23,0,0,1-.08,1.7l-.11.21Z" }))); }));
|
|
7
9
|
Check.displayName = 'Check';
|
|
8
10
|
Check['iconName'] = 'check';
|
|
9
11
|
exports.default = Check;
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
var Dnd = 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: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,
|
|
6
|
+
react_1.default.createElement("path", { fill: '#dd6057', d: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Z" }),
|
|
7
|
+
react_1.default.createElement("path", { fill: "#fff", d: "M24.44,18.22H7.56a2.22,2.22,0,1,1,0-4.44H24.44a2.22,2.22,0,0,1,0,4.44Z" }))); }));
|
|
7
8
|
Dnd.displayName = 'Dnd';
|
|
8
9
|
Dnd['iconName'] = 'dnd';
|
|
9
10
|
exports.default = Dnd;
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
var Unattended = 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: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,
|
|
6
|
+
react_1.default.createElement("path", { fill: "#dd6057", d: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Z" }),
|
|
7
|
+
react_1.default.createElement("path", { fill: "#fff", d: "M23.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" }))); }));
|
|
7
8
|
Unattended.displayName = 'Unattended';
|
|
8
9
|
Unattended['iconName'] = 'unattended';
|
|
9
10
|
exports.default = Unattended;
|
|
@@ -4,19 +4,18 @@ var tslib_1 = require("tslib");
|
|
|
4
4
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
var foundation_1 = require("../../../foundation");
|
|
6
6
|
var Icon_1 = require("../../Icon");
|
|
7
|
-
var utils_1 = require("../utils");
|
|
8
7
|
exports._StyledPresence = react_1.forwardRef(function (_a, ref) {
|
|
9
8
|
var color = _a.color, type = _a.type, iconSizeValue = _a.iconSizeValue, borderSizeValue = _a.borderSizeValue, rest = tslib_1.__rest(_a, ["color", "type", "iconSizeValue", "borderSizeValue"]);
|
|
10
9
|
return (react_1.default.createElement("div", tslib_1.__assign({ ref: ref }, rest)));
|
|
11
10
|
});
|
|
12
11
|
exports.StyledPresence = foundation_1.styled(exports._StyledPresence)(templateObject_2 || (templateObject_2 = tslib_1.__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 ",
|
|
13
12
|
";\n"])), function (_a) {
|
|
14
|
-
var
|
|
13
|
+
var iconSizeValue = _a.iconSizeValue, borderSizeValue = _a.borderSizeValue, color = _a.color;
|
|
15
14
|
return foundation_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n background: ", ";\n ", ";\n ", " {\n svg {\n width: ", "px;\n height: ", "px;\n }\n }\n "], ["\n width: ", "px;\n height: ", "px;\n background: ",
|
|
16
15
|
";\n ",
|
|
17
16
|
";\n ", " {\n svg {\n width: ", "px;\n height: ", "px;\n }\n }\n "])), iconSizeValue, iconSizeValue, color
|
|
18
17
|
? foundation_1.getParsePaletteColor(color)
|
|
19
|
-
:
|
|
18
|
+
: foundation_1.palette2('neutral', 'l01'), foundation_1.fakeBorder({
|
|
20
19
|
inset: false,
|
|
21
20
|
color: foundation_1.palette2('neutral', 'l01'),
|
|
22
21
|
size: borderSizeValue,
|
|
@@ -2,4 +2,3 @@ import { UnitMap } from '../../../foundation';
|
|
|
2
2
|
import { RcPresenceSize, RcPresenceType } from '../Presence';
|
|
3
3
|
export declare const RcPresenceSizes: UnitMap<RcPresenceSize, [number, number]>;
|
|
4
4
|
export declare const RcPresenceColors: UnitMap<RcPresenceType>;
|
|
5
|
-
export declare const RcPresenceBackgroundColors: UnitMap<RcPresenceType>;
|
|
@@ -28,17 +28,3 @@ exports.RcPresenceColors = {
|
|
|
28
28
|
notReady: presenceOff,
|
|
29
29
|
offline: presenceOff,
|
|
30
30
|
};
|
|
31
|
-
exports.RcPresenceBackgroundColors = {
|
|
32
|
-
// positive
|
|
33
|
-
available: '#FFFFFF',
|
|
34
|
-
attended: '#FFFFFF',
|
|
35
|
-
// negative
|
|
36
|
-
unAttended: '#FFFFFF',
|
|
37
|
-
onCall: '#FFFFFF',
|
|
38
|
-
inMeeting: '#FFFFFF',
|
|
39
|
-
DND: '#FFFFFF',
|
|
40
|
-
busy: '#FFFFFF',
|
|
41
|
-
unavailable: foundation_1.palette2('neutral', 'l01'),
|
|
42
|
-
notReady: foundation_1.palette2('neutral', 'l01'),
|
|
43
|
-
offline: foundation_1.palette2('neutral', 'l01'),
|
|
44
|
-
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import React, { forwardRef, memo } from 'react';
|
|
3
3
|
var Check = 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("
|
|
4
|
+
React.createElement("g", { id: "Available" },
|
|
5
|
+
React.createElement("path", { id: "Shape", fill: "#3c9949", d: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Z" })),
|
|
6
|
+
React.createElement("path", { fill: "#fff", d: "M24.62,10.38,17.51,23.72A2.19,2.19,0,0,1,16,24.89h-.41a2.17,2.17,0,0,1-1.37-.53L8,19a2.22,2.22,0,0,1,2.38-3.7,2,2,0,0,1,.39.32L14.9,19.2,20.71,8.3a2.22,2.22,0,0,1,2.94-1.07h0a2.15,2.15,0,0,1,1.15,1.25,2.23,2.23,0,0,1-.08,1.7l-.11.21Z" }))); }));
|
|
5
7
|
Check.displayName = 'Check';
|
|
6
8
|
Check['iconName'] = 'check';
|
|
7
9
|
export default Check;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import React, { forwardRef, memo } from 'react';
|
|
3
3
|
var Dnd = 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: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,
|
|
4
|
+
React.createElement("path", { fill: '#dd6057', d: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Z" }),
|
|
5
|
+
React.createElement("path", { fill: "#fff", d: "M24.44,18.22H7.56a2.22,2.22,0,1,1,0-4.44H24.44a2.22,2.22,0,0,1,0,4.44Z" }))); }));
|
|
5
6
|
Dnd.displayName = 'Dnd';
|
|
6
7
|
Dnd['iconName'] = 'dnd';
|
|
7
8
|
export default Dnd;
|
|
@@ -1,7 +1,8 @@
|
|
|
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: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,
|
|
4
|
+
React.createElement("path", { fill: "#dd6057", d: "M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Z" }),
|
|
5
|
+
React.createElement("path", { fill: "#fff", d: "M23.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
6
|
Unattended.displayName = 'Unattended';
|
|
6
7
|
Unattended['iconName'] = 'unattended';
|
|
7
8
|
export default Unattended;
|
|
@@ -2,19 +2,18 @@ import { __assign, __makeTemplateObject, __rest } from "tslib";
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { css, getParsePaletteColor, palette2, styled, fakeBorder, } from '../../../foundation';
|
|
4
4
|
import { RcIcon } from '../../Icon';
|
|
5
|
-
import { RcPresenceBackgroundColors } from '../utils';
|
|
6
5
|
export var _StyledPresence = forwardRef(function (_a, ref) {
|
|
7
6
|
var color = _a.color, type = _a.type, iconSizeValue = _a.iconSizeValue, borderSizeValue = _a.borderSizeValue, rest = __rest(_a, ["color", "type", "iconSizeValue", "borderSizeValue"]);
|
|
8
7
|
return (React.createElement("div", __assign({ ref: ref }, rest)));
|
|
9
8
|
});
|
|
10
9
|
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 ",
|
|
11
10
|
";\n"])), function (_a) {
|
|
12
|
-
var
|
|
11
|
+
var iconSizeValue = _a.iconSizeValue, borderSizeValue = _a.borderSizeValue, color = _a.color;
|
|
13
12
|
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n background: ", ";\n ", ";\n ", " {\n svg {\n width: ", "px;\n height: ", "px;\n }\n }\n "], ["\n width: ", "px;\n height: ", "px;\n background: ",
|
|
14
13
|
";\n ",
|
|
15
14
|
";\n ", " {\n svg {\n width: ", "px;\n height: ", "px;\n }\n }\n "])), iconSizeValue, iconSizeValue, color
|
|
16
15
|
? getParsePaletteColor(color)
|
|
17
|
-
:
|
|
16
|
+
: palette2('neutral', 'l01'), fakeBorder({
|
|
18
17
|
inset: false,
|
|
19
18
|
color: palette2('neutral', 'l01'),
|
|
20
19
|
size: borderSizeValue,
|
|
@@ -26,17 +26,3 @@ export var RcPresenceColors = {
|
|
|
26
26
|
notReady: presenceOff,
|
|
27
27
|
offline: presenceOff,
|
|
28
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
|
-
};
|