@appquality/unguess-design-system 3.1.2-nav-beta → 3.1.2-sentiment-beta
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/.github/dependabot.yml +11 -11
- package/CHANGELOG.md +32 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +461 -118
- package/build/stories/charts/_types.d.ts +3 -3
- package/build/stories/charts/sentiment/_data.d.ts +9 -0
- package/build/stories/charts/sentiment/_types.d.ts +31 -0
- package/build/stories/charts/sentiment/index.d.ts +2 -0
- package/build/stories/charts/sentiment/index.stories.d.ts +5 -0
- package/build/stories/navigation/sidebar/index.stories.d.ts +0 -4
- package/build/stories/theme/components.d.ts +4 -9
- package/build/stories/theme/index.d.ts +4 -9
- package/package.json +1 -1
- package/yarn-error.log +0 -13958
package/build/index.js
CHANGED
|
@@ -23,6 +23,7 @@ var tooltip = require('@nivo/tooltip');
|
|
|
23
23
|
var pie = require('@nivo/pie');
|
|
24
24
|
var sunburst = require('@nivo/sunburst');
|
|
25
25
|
var waffle = require('@nivo/waffle');
|
|
26
|
+
var line = require('@nivo/line');
|
|
26
27
|
var reactModals = require('@zendeskgarden/react-modals');
|
|
27
28
|
var reactDropdowns = require('@zendeskgarden/react-dropdowns');
|
|
28
29
|
var reactForms = require('@zendeskgarden/react-forms');
|
|
@@ -317,8 +318,8 @@ const UgContainerCard = styled__default["default"](reactNotifications.Well) `
|
|
|
317
318
|
`;
|
|
318
319
|
const ContainerCard = (props) => jsxRuntime.jsx(UgContainerCard, Object.assign({}, props));
|
|
319
320
|
|
|
320
|
-
var _a, _b, _c, _d, _e, _f, _g$
|
|
321
|
-
const components = Object.assign(Object.assign(Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.components), { chrome: Object.assign(Object.assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: Object.assign(Object.assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }), nav: Object.assign(Object.assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: Object.assign(Object.assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: Object.assign(Object.assign({}, (_h = (_g$
|
|
321
|
+
var _a, _b, _c, _d, _e, _f, _g$d, _h;
|
|
322
|
+
const components = Object.assign(Object.assign(Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.components), { chrome: Object.assign(Object.assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: Object.assign(Object.assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }), nav: Object.assign(Object.assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: Object.assign(Object.assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: Object.assign(Object.assign({}, (_h = (_g$d = reactTheming.DEFAULT_THEME.components) === null || _g$d === void 0 ? void 0 : _g$d.notification) === null || _h === void 0 ? void 0 : _h.well), { padding: "16px" }) }) }), cardCmponentStyle), { "text.primary": () => ({
|
|
322
323
|
color: getColor(colors.primaryHue, 600),
|
|
323
324
|
}), "text.success": () => ({
|
|
324
325
|
color: getColor(colors.successHue, 700),
|
|
@@ -438,7 +439,7 @@ const components = Object.assign(Object.assign(Object.assign(Object.assign({}, r
|
|
|
438
439
|
"&:hover": {
|
|
439
440
|
borderColor: getColor(colors.accentHue, 800),
|
|
440
441
|
color: getColor(colors.accentHue, 800),
|
|
441
|
-
backgroundColor:
|
|
442
|
+
backgroundColor: getColor(colors.primaryHue, 600, undefined, 0.08),
|
|
442
443
|
},
|
|
443
444
|
"&:active": {
|
|
444
445
|
borderColor: getColor(colors.accentHue, 800),
|
|
@@ -448,7 +449,7 @@ const components = Object.assign(Object.assign(Object.assign(Object.assign({}, r
|
|
|
448
449
|
})), (isAccent && isBasic && {
|
|
449
450
|
color: getColor(colors.accentHue, 700),
|
|
450
451
|
"&:hover": {
|
|
451
|
-
backgroundColor:
|
|
452
|
+
backgroundColor: getColor(colors.primaryHue, 600, undefined, 0.08),
|
|
452
453
|
color: getColor(colors.accentHue, 800),
|
|
453
454
|
},
|
|
454
455
|
"&:active": {
|
|
@@ -492,7 +493,7 @@ const components = Object.assign(Object.assign(Object.assign(Object.assign({}, r
|
|
|
492
493
|
"&:hover": {
|
|
493
494
|
borderColor: getColor(colors.accentHue, 800),
|
|
494
495
|
color: getColor(colors.accentHue, 800),
|
|
495
|
-
backgroundColor:
|
|
496
|
+
backgroundColor: getColor(colors.primaryHue, 600, undefined, 0.08),
|
|
496
497
|
},
|
|
497
498
|
"&:active": {
|
|
498
499
|
borderColor: getColor(colors.accentHue, 800),
|
|
@@ -510,7 +511,7 @@ const components = Object.assign(Object.assign(Object.assign(Object.assign({}, r
|
|
|
510
511
|
})), (isAccent && isBasic && {
|
|
511
512
|
color: getColor(colors.accentHue, 700),
|
|
512
513
|
"&:hover": {
|
|
513
|
-
backgroundColor:
|
|
514
|
+
backgroundColor: getColor(colors.primaryHue, 600, undefined, 0.08),
|
|
514
515
|
color: getColor(colors.accentHue, 800),
|
|
515
516
|
},
|
|
516
517
|
"&:active": {
|
|
@@ -553,6 +554,7 @@ const GlobalStyle = styled.createGlobalStyle `
|
|
|
553
554
|
|
|
554
555
|
::-webkit-scrollbar {
|
|
555
556
|
width: 10px;
|
|
557
|
+
height: 10px;
|
|
556
558
|
}
|
|
557
559
|
|
|
558
560
|
::-webkit-scrollbar-track {
|
|
@@ -813,9 +815,9 @@ Tag.Close = StyledClose;
|
|
|
813
815
|
Tag.SecondaryText = StyledSpan;
|
|
814
816
|
|
|
815
817
|
var _path$A;
|
|
816
|
-
function _extends$
|
|
818
|
+
function _extends$M() { _extends$M = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$M.apply(this, arguments); }
|
|
817
819
|
var SvgUgSquare = function SvgUgSquare(props) {
|
|
818
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
820
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
819
821
|
width: 24,
|
|
820
822
|
height: 24,
|
|
821
823
|
viewBox: "0 0 24 24",
|
|
@@ -828,9 +830,9 @@ var SvgUgSquare = function SvgUgSquare(props) {
|
|
|
828
830
|
};
|
|
829
831
|
|
|
830
832
|
var _path$z;
|
|
831
|
-
function _extends$
|
|
833
|
+
function _extends$L() { _extends$L = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$L.apply(this, arguments); }
|
|
832
834
|
var SvgUgCircle = function SvgUgCircle(props) {
|
|
833
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
835
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
834
836
|
width: 24,
|
|
835
837
|
height: 24,
|
|
836
838
|
viewBox: "0 0 24 24",
|
|
@@ -843,9 +845,9 @@ var SvgUgCircle = function SvgUgCircle(props) {
|
|
|
843
845
|
};
|
|
844
846
|
|
|
845
847
|
var _path$y;
|
|
846
|
-
function _extends$
|
|
848
|
+
function _extends$K() { _extends$K = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$K.apply(this, arguments); }
|
|
847
849
|
var SvgUgTriangle = function SvgUgTriangle(props) {
|
|
848
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
850
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
849
851
|
width: 24,
|
|
850
852
|
height: 24,
|
|
851
853
|
viewBox: "0 0 24 24",
|
|
@@ -858,9 +860,9 @@ var SvgUgTriangle = function SvgUgTriangle(props) {
|
|
|
858
860
|
};
|
|
859
861
|
|
|
860
862
|
var _rect$4, _path$x, _path2$b, _path3$4;
|
|
861
|
-
function _extends$
|
|
863
|
+
function _extends$J() { _extends$J = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$J.apply(this, arguments); }
|
|
862
864
|
var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
863
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
865
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
864
866
|
width: 24,
|
|
865
867
|
height: 24,
|
|
866
868
|
viewBox: "0 0 24 24",
|
|
@@ -884,9 +886,9 @@ var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
|
884
886
|
};
|
|
885
887
|
|
|
886
888
|
var _rect$3, _path$w, _path2$a;
|
|
887
|
-
function _extends$
|
|
889
|
+
function _extends$I() { _extends$I = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$I.apply(this, arguments); }
|
|
888
890
|
var SvgCampaignLocked = function SvgCampaignLocked(props) {
|
|
889
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
891
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
890
892
|
width: 24,
|
|
891
893
|
height: 24,
|
|
892
894
|
viewBox: "0 0 24 24",
|
|
@@ -911,9 +913,9 @@ var SvgCampaignLocked = function SvgCampaignLocked(props) {
|
|
|
911
913
|
};
|
|
912
914
|
|
|
913
915
|
var _rect$2, _path$v, _path2$9;
|
|
914
|
-
function _extends$
|
|
916
|
+
function _extends$H() { _extends$H = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$H.apply(this, arguments); }
|
|
915
917
|
var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
|
|
916
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
918
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
917
919
|
width: 24,
|
|
918
920
|
height: 24,
|
|
919
921
|
viewBox: "0 0 24 24",
|
|
@@ -940,9 +942,9 @@ var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
|
|
|
940
942
|
};
|
|
941
943
|
|
|
942
944
|
var _rect$1, _path$u, _path2$8, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
|
|
943
|
-
function _extends$
|
|
945
|
+
function _extends$G() { _extends$G = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
|
|
944
946
|
var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
945
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
947
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
946
948
|
width: 24,
|
|
947
949
|
height: 24,
|
|
948
950
|
viewBox: "0 0 24 24",
|
|
@@ -986,16 +988,16 @@ var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
|
986
988
|
})));
|
|
987
989
|
};
|
|
988
990
|
|
|
989
|
-
var _g$
|
|
990
|
-
function _extends$
|
|
991
|
+
var _g$c, _path$t, _path2$7, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
992
|
+
function _extends$F() { _extends$F = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$F.apply(this, arguments); }
|
|
991
993
|
var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
992
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
994
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
993
995
|
width: 24,
|
|
994
996
|
height: 24,
|
|
995
997
|
viewBox: "0 0 24 24",
|
|
996
998
|
fill: "none",
|
|
997
999
|
xmlns: "http://www.w3.org/2000/svg"
|
|
998
|
-
}, props), _g$
|
|
1000
|
+
}, props), _g$c || (_g$c = /*#__PURE__*/React__namespace.createElement("g", {
|
|
999
1001
|
opacity: 0.3
|
|
1000
1002
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1001
1003
|
opacity: 0.3,
|
|
@@ -1058,16 +1060,16 @@ var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
|
1058
1060
|
})));
|
|
1059
1061
|
};
|
|
1060
1062
|
|
|
1061
|
-
var _g$
|
|
1062
|
-
function _extends$
|
|
1063
|
+
var _g$b, _path$s;
|
|
1064
|
+
function _extends$E() { _extends$E = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$E.apply(this, arguments); }
|
|
1063
1065
|
var SvgCampaignFunctional = function SvgCampaignFunctional(props) {
|
|
1064
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1066
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
1065
1067
|
width: 24,
|
|
1066
1068
|
height: 24,
|
|
1067
1069
|
viewBox: "0 0 24 24",
|
|
1068
1070
|
fill: "none",
|
|
1069
1071
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1070
|
-
}, props), _g$
|
|
1072
|
+
}, props), _g$b || (_g$b = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1071
1073
|
opacity: 0.3
|
|
1072
1074
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1073
1075
|
opacity: 0.3,
|
|
@@ -1628,7 +1630,7 @@ const Tooltip$1 = styled__default["default"].div `
|
|
|
1628
1630
|
box-shadow: ${({ theme }) => theme.shadows.boxShadow(theme)};
|
|
1629
1631
|
max-width: 216px;
|
|
1630
1632
|
`;
|
|
1631
|
-
const DEFAULT_CHART_MARGINS = { top: 0, right: 0, bottom: 30, left: 30 };
|
|
1633
|
+
const DEFAULT_CHART_MARGINS$1 = { top: 0, right: 0, bottom: 30, left: 30 };
|
|
1632
1634
|
const BarChart = ({ data, width, height, padding, margin, axisLeftLabel, axisBottomLabel, colors, tooltip, legend, }) => {
|
|
1633
1635
|
const theme = React.useContext(styled.ThemeContext);
|
|
1634
1636
|
const keys = [...new Set(data.map(({ keys }) => Object.keys(keys)).flat())];
|
|
@@ -1664,7 +1666,7 @@ const BarChart = ({ data, width, height, padding, margin, axisLeftLabel, axisBot
|
|
|
1664
1666
|
},
|
|
1665
1667
|
} }), colors: actualColors, layout: "horizontal", tooltip: tooltip
|
|
1666
1668
|
? (node) => jsxRuntime.jsx(jsxRuntime.Fragment, { children: tooltip(node) })
|
|
1667
|
-
: ({ id, value, indexValue }) => (jsxRuntime.jsx(Tooltip$1, { children: jsxRuntime.jsxs(MD, { children: [indexValue, " - ", id, ":", " ", jsxRuntime.jsx(MD, Object.assign({ tag: "span", isBold: true }, { children: value }))] }) })), padding: padding || 0.3, margin: Object.assign(Object.assign({}, DEFAULT_CHART_MARGINS), margin), enableGridY: false, enableLabel: false, enableGridX: true, gridXValues: 3, valueScale: {
|
|
1669
|
+
: ({ id, value, indexValue }) => (jsxRuntime.jsx(Tooltip$1, { children: jsxRuntime.jsxs(MD, { children: [indexValue, " - ", id, ":", " ", jsxRuntime.jsx(MD, Object.assign({ tag: "span", isBold: true }, { children: value }))] }) })), padding: padding || 0.3, margin: Object.assign(Object.assign({}, DEFAULT_CHART_MARGINS$1), margin), enableGridY: false, enableLabel: false, enableGridX: true, gridXValues: 3, valueScale: {
|
|
1668
1670
|
type: "linear",
|
|
1669
1671
|
nice: true,
|
|
1670
1672
|
} }, (axisBottomLabel && {
|
|
@@ -1673,7 +1675,7 @@ const BarChart = ({ data, width, height, padding, margin, axisLeftLabel, axisBot
|
|
|
1673
1675
|
tickPadding: 10,
|
|
1674
1676
|
tickValues: 3,
|
|
1675
1677
|
legend: axisBottomLabel,
|
|
1676
|
-
legendOffset: ((margin === null || margin === void 0 ? void 0 : margin.bottom) || DEFAULT_CHART_MARGINS.bottom) - 10,
|
|
1678
|
+
legendOffset: ((margin === null || margin === void 0 ? void 0 : margin.bottom) || DEFAULT_CHART_MARGINS$1.bottom) - 10,
|
|
1677
1679
|
legendPosition: "middle",
|
|
1678
1680
|
},
|
|
1679
1681
|
}), (axisLeftLabel && {
|
|
@@ -1681,7 +1683,7 @@ const BarChart = ({ data, width, height, padding, margin, axisLeftLabel, axisBot
|
|
|
1681
1683
|
tickSize: 0,
|
|
1682
1684
|
tickPadding: 20,
|
|
1683
1685
|
legend: axisLeftLabel,
|
|
1684
|
-
legendOffset: (((margin === null || margin === void 0 ? void 0 : margin.left) || DEFAULT_CHART_MARGINS.left) - 10) * -1,
|
|
1686
|
+
legendOffset: (((margin === null || margin === void 0 ? void 0 : margin.left) || DEFAULT_CHART_MARGINS$1.left) - 10) * -1,
|
|
1685
1687
|
legendPosition: "middle",
|
|
1686
1688
|
},
|
|
1687
1689
|
}), { layers: ["bars", "grid", "axes"] })) })), jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: "auto" }, { children: legend ? (jsxRuntime.jsx(Legend, Object.assign({ colors: actualColors, data: keys }, (typeof legend === "object" && legend)))) : undefined }))] }));
|
|
@@ -1935,6 +1937,353 @@ const WaffleChart = ({ height, width, data, total, tooltip, }) => {
|
|
|
1935
1937
|
} }) })));
|
|
1936
1938
|
};
|
|
1937
1939
|
|
|
1940
|
+
var _g$a, _defs$7;
|
|
1941
|
+
function _extends$D() { _extends$D = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$D.apply(this, arguments); }
|
|
1942
|
+
var SvgSentiment1 = function SvgSentiment1(props) {
|
|
1943
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
1944
|
+
width: 27,
|
|
1945
|
+
height: 26,
|
|
1946
|
+
viewBox: "0 0 27 26",
|
|
1947
|
+
fill: "none",
|
|
1948
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1949
|
+
}, props), _g$a || (_g$a = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1950
|
+
clipPath: "url(#clip0_21_19131)"
|
|
1951
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1952
|
+
d: "M26.5525 13C26.5525 20.1796 20.6084 26 13.2762 26C5.94481 26 0 20.1796 0 13C0 5.82111 5.94481 0 13.2762 0C20.6084 0 26.5525 5.82111 26.5525 13Z",
|
|
1953
|
+
fill: "#E9979B"
|
|
1954
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1955
|
+
d: "M18.7975 21.5782C18.7643 21.4489 17.9361 18.4155 13.2768 18.4155C8.61687 18.4155 7.78931 21.4489 7.75612 21.5782C7.73674 21.6544 7.74333 21.7347 7.77489 21.807C7.80644 21.8792 7.86124 21.9393 7.93093 21.9783C8.001 22.0168 8.08189 22.0322 8.1616 22.0222C8.24131 22.0121 8.3156 21.9773 8.37347 21.9227C8.38748 21.9089 9.81468 20.5822 13.2768 20.5822C16.739 20.5822 18.1669 21.9089 18.1802 21.9219C18.2373 21.9772 18.3112 22.0128 18.3907 22.0233C18.4703 22.0339 18.5512 22.0188 18.6213 21.9804C18.6916 21.9415 18.7469 21.8811 18.7787 21.8084C18.8106 21.7358 18.8172 21.6549 18.7975 21.5782ZM11.5856 12.4883C9.18479 10.1374 5.32657 10.11 5.16357 10.11C4.97366 10.1182 4.7943 10.1978 4.66285 10.3323C4.5314 10.4668 4.45798 10.6457 4.45789 10.8319C4.45779 11.018 4.53102 11.197 4.66234 11.3316C4.79365 11.4662 4.97293 11.546 5.16283 11.5544C5.18422 11.5544 6.58265 11.5703 8.10057 12.0867C7.66319 12.5489 7.37628 13.2668 7.37628 14.0822C7.37628 15.479 8.20162 16.61 9.2202 16.61C10.2388 16.61 11.0641 15.479 11.0641 14.0822C11.0641 13.9565 11.0501 13.8367 11.0368 13.716C11.0464 13.716 11.0553 13.7211 11.0641 13.7211C11.2101 13.7214 11.3529 13.6792 11.4744 13.5999C11.5959 13.5206 11.6906 13.4078 11.7465 13.2757C11.8024 13.1436 11.8169 12.9982 11.7883 12.858C11.7596 12.7178 11.6891 12.5891 11.5856 12.4883ZM21.3901 10.11C21.2271 10.11 17.3696 10.1374 14.9681 12.4883C14.8646 12.5891 14.794 12.7178 14.7654 12.858C14.7367 12.9982 14.7513 13.1436 14.8072 13.2757C14.863 13.4078 14.9577 13.5206 15.0792 13.5999C15.2007 13.6792 15.3435 13.7214 15.4895 13.7211C15.4991 13.7211 15.5072 13.716 15.5161 13.716C15.5043 13.8367 15.4895 13.9565 15.4895 14.0822C15.4895 15.479 16.3149 16.61 17.3335 16.61C18.352 16.61 19.1774 15.479 19.1774 14.0822C19.1774 13.2668 18.8905 12.5489 18.4531 12.0867C19.4008 11.77 20.3908 11.5907 21.3916 11.5544C21.4884 11.5543 21.5843 11.5356 21.6738 11.4992C21.7632 11.4628 21.8445 11.4095 21.9129 11.3424C21.9813 11.2753 22.0356 11.1956 22.0725 11.1079C22.1095 11.0203 22.1285 10.9263 22.1284 10.8315C22.1283 10.7366 22.1091 10.6427 22.072 10.5552C22.0348 10.4676 21.9804 10.388 21.9118 10.321C21.8433 10.254 21.7619 10.2009 21.6724 10.1647C21.5829 10.1285 21.4869 10.1099 21.3901 10.11Z",
|
|
1956
|
+
fill: "#2F3941"
|
|
1957
|
+
}))), _defs$7 || (_defs$7 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1958
|
+
id: "clip0_21_19131"
|
|
1959
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
1960
|
+
width: 26.5525,
|
|
1961
|
+
height: 26,
|
|
1962
|
+
fill: "white"
|
|
1963
|
+
})))));
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
var _g$9, _defs$6;
|
|
1967
|
+
function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
1968
|
+
var SvgSentiment2 = function SvgSentiment2(props) {
|
|
1969
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
1970
|
+
width: 27,
|
|
1971
|
+
height: 26,
|
|
1972
|
+
viewBox: "0 0 27 26",
|
|
1973
|
+
fill: "none",
|
|
1974
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1975
|
+
}, props), _g$9 || (_g$9 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1976
|
+
clipPath: "url(#clip0_21_19130)"
|
|
1977
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1978
|
+
d: "M26.5525 13C26.5525 20.1796 20.6084 26 13.2762 26C5.94481 26 0 20.1796 0 13C0 5.82111 5.94481 0 13.2762 0C20.6084 0 26.5525 5.82111 26.5525 13Z",
|
|
1979
|
+
fill: "#F2C1C3"
|
|
1980
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1981
|
+
d: "M18.7975 21.5782C18.7643 21.4489 17.9361 18.4155 13.2768 18.4155C8.61687 18.4155 7.78932 21.4489 7.75612 21.5782C7.73674 21.6544 7.74333 21.7347 7.77489 21.807C7.80644 21.8792 7.86124 21.9393 7.93093 21.9783C8.001 22.0168 8.08189 22.0322 8.1616 22.0222C8.24131 22.0121 8.3156 21.9773 8.37347 21.9227C8.38748 21.9089 9.81468 20.5822 13.2768 20.5822C16.739 20.5822 18.1669 21.9089 18.1802 21.9219C18.2373 21.9772 18.3112 22.0128 18.3907 22.0233C18.4703 22.0339 18.5512 22.0188 18.6213 21.9804C18.6916 21.9415 18.7469 21.8811 18.7787 21.8084C18.8106 21.7358 18.8172 21.6549 18.7975 21.5782V21.5782ZM11.5856 12.4883C9.18479 10.1374 5.32657 10.11 5.16357 10.11C4.97366 10.1182 4.7943 10.1978 4.66285 10.3323C4.5314 10.4668 4.45798 10.6457 4.45789 10.8319C4.45779 11.018 4.53102 11.197 4.66234 11.3316C4.79365 11.4662 4.97293 11.546 5.16283 11.5544C5.18422 11.5544 6.58265 11.5703 8.10057 12.0867C7.66319 12.5489 7.37628 13.2668 7.37628 14.0822C7.37628 15.479 8.20162 16.61 9.2202 16.61C10.2388 16.61 11.0641 15.479 11.0641 14.0822C11.0641 13.9565 11.0501 13.8367 11.0368 13.716C11.0464 13.716 11.0553 13.7211 11.0641 13.7211C11.2101 13.7214 11.3529 13.6792 11.4744 13.5999C11.5959 13.5206 11.6906 13.4078 11.7465 13.2757C11.8024 13.1436 11.8169 12.9982 11.7883 12.858C11.7596 12.7178 11.6891 12.5891 11.5856 12.4883V12.4883ZM21.3901 10.11C21.2271 10.11 17.3696 10.1374 14.9681 12.4883C14.8646 12.5891 14.794 12.7178 14.7654 12.858C14.7367 12.9982 14.7513 13.1436 14.8072 13.2757C14.863 13.4078 14.9577 13.5206 15.0792 13.5999C15.2007 13.6792 15.3435 13.7214 15.4895 13.7211C15.4991 13.7211 15.5072 13.716 15.5161 13.716C15.5043 13.8367 15.4895 13.9565 15.4895 14.0822C15.4895 15.479 16.3149 16.61 17.3335 16.61C18.352 16.61 19.1774 15.479 19.1774 14.0822C19.1774 13.2668 18.8905 12.5489 18.4531 12.0867C19.4008 11.77 20.3908 11.5907 21.3916 11.5544C21.4884 11.5543 21.5843 11.5356 21.6738 11.4992C21.7632 11.4628 21.8445 11.4095 21.9129 11.3424C21.9813 11.2753 22.0356 11.1956 22.0725 11.1079C22.1095 11.0203 22.1285 10.9263 22.1284 10.8315C22.1283 10.7366 22.1091 10.6427 22.072 10.5552C22.0348 10.4676 21.9804 10.388 21.9118 10.321C21.8433 10.254 21.7619 10.2009 21.6724 10.1647C21.5829 10.1285 21.4869 10.1099 21.3901 10.11V10.11Z",
|
|
1982
|
+
fill: "#2F3941"
|
|
1983
|
+
}))), _defs$6 || (_defs$6 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1984
|
+
id: "clip0_21_19130"
|
|
1985
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
1986
|
+
width: 26.5525,
|
|
1987
|
+
height: 26,
|
|
1988
|
+
fill: "white"
|
|
1989
|
+
})))));
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
var _g$8, _defs$5;
|
|
1993
|
+
function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
|
|
1994
|
+
var SvgSentiment3 = function SvgSentiment3(props) {
|
|
1995
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1996
|
+
width: 27,
|
|
1997
|
+
height: 26,
|
|
1998
|
+
viewBox: "0 0 27 26",
|
|
1999
|
+
fill: "none",
|
|
2000
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2001
|
+
}, props), _g$8 || (_g$8 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2002
|
+
clipPath: "url(#clip0_21_19129)"
|
|
2003
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2004
|
+
d: "M26.5525 13C26.5525 20.1796 20.6084 26 13.2762 26C5.94481 26 0 20.1796 0 13C0 5.82111 5.94481 0 13.2762 0C20.6084 0 26.5525 5.82111 26.5525 13Z",
|
|
2005
|
+
fill: "#FFD7A4"
|
|
2006
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2007
|
+
d: "M8.16472 13.7641C9.18309 13.7641 10.0086 12.6323 10.0086 11.2363C10.0086 9.84022 9.18309 8.7085 8.16472 8.7085C7.14635 8.7085 6.3208 9.84022 6.3208 11.2363C6.3208 12.6323 7.14635 13.7641 8.16472 13.7641Z",
|
|
2008
|
+
fill: "#2F3941"
|
|
2009
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2010
|
+
d: "M17.7531 13.7641C18.7715 13.7641 19.597 12.6323 19.597 11.2363C19.597 9.84022 18.7715 8.7085 17.7531 8.7085C16.7347 8.7085 15.9092 9.84022 15.9092 11.2363C15.9092 12.6323 16.7347 13.7641 17.7531 13.7641Z",
|
|
2011
|
+
fill: "#2F3941"
|
|
2012
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2013
|
+
d: "M18.122 18.0978H7.79604C7.60043 18.0978 7.41282 18.0217 7.2745 17.8862C7.13618 17.7508 7.05847 17.5671 7.05847 17.3755C7.05847 17.184 7.13618 17.0003 7.2745 16.8649C7.41282 16.7294 7.60043 16.6533 7.79604 16.6533H18.122C18.3176 16.6533 18.5052 16.7294 18.6435 16.8649C18.7819 17.0003 18.8596 17.184 18.8596 17.3755C18.8596 17.5671 18.7819 17.7508 18.6435 17.8862C18.5052 18.0217 18.3176 18.0978 18.122 18.0978Z",
|
|
2014
|
+
fill: "#2F3941"
|
|
2015
|
+
}))), _defs$5 || (_defs$5 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
2016
|
+
id: "clip0_21_19129"
|
|
2017
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2018
|
+
width: 26.5525,
|
|
2019
|
+
height: 26,
|
|
2020
|
+
fill: "white"
|
|
2021
|
+
})))));
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
var _g$7, _defs$4;
|
|
2025
|
+
function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
|
|
2026
|
+
var SvgSentiment4 = function SvgSentiment4(props) {
|
|
2027
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2028
|
+
width: 27,
|
|
2029
|
+
height: 26,
|
|
2030
|
+
viewBox: "0 0 27 26",
|
|
2031
|
+
fill: "none",
|
|
2032
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2033
|
+
}, props), _g$7 || (_g$7 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2034
|
+
clipPath: "url(#clip0_21_19127)"
|
|
2035
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2036
|
+
d: "M26.5525 13C26.5525 20.1796 20.6084 26 13.2762 26C5.94481 26 0 20.1796 0 13C0 5.82111 5.94481 0 13.2762 0C20.6084 0 26.5525 5.82111 26.5525 13Z",
|
|
2037
|
+
fill: "#B3E8D9"
|
|
2038
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2039
|
+
d: "M7.75559 16.8093C7.78879 16.9386 8.61708 19.9719 13.2763 19.9719C17.9363 19.9719 18.7638 16.9386 18.797 16.8093C18.8164 16.7331 18.8098 16.6527 18.7782 16.5805C18.7467 16.5083 18.6919 16.4481 18.6222 16.4092C18.5522 16.3704 18.4713 16.3549 18.3915 16.3649C18.3117 16.3749 18.2374 16.41 18.1797 16.4648C18.1656 16.4785 16.7384 17.8052 13.2763 17.8052C9.81415 17.8052 8.38622 16.4785 8.37294 16.4655C8.31584 16.4103 8.24194 16.3747 8.16239 16.3641C8.08283 16.3536 8.00193 16.3686 7.93187 16.407C7.86156 16.4459 7.80623 16.5063 7.77439 16.579C7.74254 16.6517 7.73594 16.7326 7.75559 16.8093Z",
|
|
2040
|
+
fill: "#2F3941"
|
|
2041
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2042
|
+
d: "M8.85076 12.0267C9.86913 12.0267 10.6947 10.895 10.6947 9.49897C10.6947 8.10292 9.86913 6.97119 8.85076 6.97119C7.83239 6.97119 7.00684 8.10292 7.00684 9.49897C7.00684 10.895 7.83239 12.0267 8.85076 12.0267Z",
|
|
2043
|
+
fill: "#2F3941"
|
|
2044
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2045
|
+
d: "M17.7015 12.0267C18.7198 12.0267 19.5454 10.895 19.5454 9.49897C19.5454 8.10292 18.7198 6.97119 17.7015 6.97119C16.6831 6.97119 15.8575 8.10292 15.8575 9.49897C15.8575 10.895 16.6831 12.0267 17.7015 12.0267Z",
|
|
2046
|
+
fill: "#2F3941"
|
|
2047
|
+
}))), _defs$4 || (_defs$4 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
2048
|
+
id: "clip0_21_19127"
|
|
2049
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2050
|
+
width: 26.5525,
|
|
2051
|
+
height: 26,
|
|
2052
|
+
fill: "white"
|
|
2053
|
+
})))));
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
var _g$6, _defs$3;
|
|
2057
|
+
function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
|
|
2058
|
+
var SvgSentiment5 = function SvgSentiment5(props) {
|
|
2059
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2060
|
+
width: 26,
|
|
2061
|
+
height: 26,
|
|
2062
|
+
viewBox: "0 0 26 26",
|
|
2063
|
+
fill: "none",
|
|
2064
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2065
|
+
}, props), _g$6 || (_g$6 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2066
|
+
clipPath: "url(#clip0_21_19125)"
|
|
2067
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2068
|
+
d: "M25.2051 13C25.2051 20.1796 19.5626 26 12.6025 26C5.64314 26 0 20.1796 0 13C0 5.82111 5.64314 0 12.6025 0C19.5626 0 25.2051 5.82111 25.2051 13Z",
|
|
2069
|
+
fill: "#66D1B3"
|
|
2070
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2071
|
+
d: "M7.36209 16.8093C7.39359 16.9386 8.17985 19.9719 12.6026 19.9719C17.0261 19.9719 17.8117 16.9386 17.8432 16.8093C17.8616 16.7331 17.8553 16.6527 17.8254 16.5805C17.7954 16.5083 17.7434 16.4481 17.6773 16.4092C17.6108 16.3704 17.534 16.3549 17.4583 16.3649C17.3825 16.3749 17.312 16.41 17.2572 16.4648C17.2439 16.4785 15.8891 17.8052 12.6026 17.8052C9.31618 17.8052 7.96071 16.4785 7.94811 16.4655C7.8939 16.4103 7.82375 16.3747 7.74824 16.3641C7.67272 16.3536 7.59592 16.3686 7.52942 16.407C7.46268 16.4459 7.41016 16.5063 7.37993 16.579C7.3497 16.6517 7.34343 16.7326 7.36209 16.8093Z",
|
|
2072
|
+
fill: "#2F3941"
|
|
2073
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2074
|
+
d: "M8.4016 12.0267C9.36829 12.0267 10.152 10.895 10.152 9.49897C10.152 8.10292 9.36829 6.97119 8.4016 6.97119C7.4349 6.97119 6.65125 8.10292 6.65125 9.49897C6.65125 10.895 7.4349 12.0267 8.4016 12.0267Z",
|
|
2075
|
+
fill: "#2F3941"
|
|
2076
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2077
|
+
d: "M16.8032 12.0267C17.7699 12.0267 18.5536 10.895 18.5536 9.49897C18.5536 8.10292 17.7699 6.97119 16.8032 6.97119C15.8365 6.97119 15.0529 8.10292 15.0529 9.49897C15.0529 10.895 15.8365 12.0267 16.8032 12.0267Z",
|
|
2078
|
+
fill: "#2F3941"
|
|
2079
|
+
}))), _defs$3 || (_defs$3 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
2080
|
+
id: "clip0_21_19125"
|
|
2081
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2082
|
+
width: 25.2051,
|
|
2083
|
+
height: 26,
|
|
2084
|
+
fill: "white"
|
|
2085
|
+
})))));
|
|
2086
|
+
};
|
|
2087
|
+
|
|
2088
|
+
const Point = styled__default["default"].g `
|
|
2089
|
+
transform: translate(-13px, -13px);
|
|
2090
|
+
`;
|
|
2091
|
+
const ScrollingContainer$1 = styled__default["default"].div `
|
|
2092
|
+
width: 100%;
|
|
2093
|
+
overflow-x: scroll;
|
|
2094
|
+
`;
|
|
2095
|
+
const SentimentContainer = styled__default["default"](ChartContainer) `
|
|
2096
|
+
/* Show dotted lines */
|
|
2097
|
+
svg > g > g:nth-child(2) > line {
|
|
2098
|
+
stroke-dasharray: 2;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
/* Show first and last vertical lines */
|
|
2102
|
+
svg > g > g:first-child > line:first-child {
|
|
2103
|
+
transform: translate(2px, 0);
|
|
2104
|
+
stroke-dasharray: 2;
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
svg > g > g:first-child > line:last-child {
|
|
2108
|
+
transform: translate(-2px, 0);
|
|
2109
|
+
stroke-dasharray: 2;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
/* Show first and last horizontal lines */
|
|
2113
|
+
svg > g > g:nth-child(2) > line:first-child {
|
|
2114
|
+
transform: translate(0, -6px);
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
svg > g > g:nth-child(2) > line:last-child {
|
|
2118
|
+
transform: translate(0, 2px);
|
|
2119
|
+
}
|
|
2120
|
+
`;
|
|
2121
|
+
const DEFAULT_CHART_MARGINS = { top: 0, right: 0, bottom: 30, left: 30 };
|
|
2122
|
+
const formatSentiment = (value, i18n) => {
|
|
2123
|
+
var _a, _b, _c, _d, _e;
|
|
2124
|
+
switch (value) {
|
|
2125
|
+
case 1:
|
|
2126
|
+
return (_a = i18n === null || i18n === void 0 ? void 0 : i18n.sentimentsValues.veryNegative) !== null && _a !== void 0 ? _a : "Very Negative";
|
|
2127
|
+
case 2:
|
|
2128
|
+
return (_b = i18n === null || i18n === void 0 ? void 0 : i18n.sentimentsValues.negative) !== null && _b !== void 0 ? _b : "Negative";
|
|
2129
|
+
case 3:
|
|
2130
|
+
return (_c = i18n === null || i18n === void 0 ? void 0 : i18n.sentimentsValues.neutral) !== null && _c !== void 0 ? _c : "Neutral";
|
|
2131
|
+
case 4:
|
|
2132
|
+
return (_d = i18n === null || i18n === void 0 ? void 0 : i18n.sentimentsValues.positive) !== null && _d !== void 0 ? _d : "Positive";
|
|
2133
|
+
case 5:
|
|
2134
|
+
return (_e = i18n === null || i18n === void 0 ? void 0 : i18n.sentimentsValues.veryPositive) !== null && _e !== void 0 ? _e : "Very Positive";
|
|
2135
|
+
default:
|
|
2136
|
+
return "";
|
|
2137
|
+
}
|
|
2138
|
+
};
|
|
2139
|
+
const formatPoint = (value) => {
|
|
2140
|
+
switch (value) {
|
|
2141
|
+
case 1:
|
|
2142
|
+
return jsxRuntime.jsx(SvgSentiment1, { style: { width: "16px" } });
|
|
2143
|
+
case 2:
|
|
2144
|
+
return jsxRuntime.jsx(SvgSentiment2, { style: { width: "16px" } });
|
|
2145
|
+
case 3:
|
|
2146
|
+
return jsxRuntime.jsx(SvgSentiment3, { style: { width: "16px" } });
|
|
2147
|
+
case 4:
|
|
2148
|
+
return jsxRuntime.jsx(SvgSentiment4, { style: { width: "16px" } });
|
|
2149
|
+
case 5:
|
|
2150
|
+
return jsxRuntime.jsx(SvgSentiment5, { style: { width: "16px" } });
|
|
2151
|
+
default:
|
|
2152
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
2153
|
+
}
|
|
2154
|
+
};
|
|
2155
|
+
const formatAxisX = (value) => {
|
|
2156
|
+
// This is to avoid printing the first and last value of the axis to make room for the chart (2 empty columns)
|
|
2157
|
+
if (!value || value === "start" || value === "end")
|
|
2158
|
+
return "";
|
|
2159
|
+
//Print only the first 10 characters
|
|
2160
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [value.toString().length > 15 ? value.toString().substring(0, 15) + "..." : value.toString(), jsxRuntime.jsx("title", { children: value })] }));
|
|
2161
|
+
};
|
|
2162
|
+
const SentimentChart = ({ data, width, height, margin, tooltip, i18n, }) => {
|
|
2163
|
+
var _a;
|
|
2164
|
+
const theme = React.useContext(styled.ThemeContext);
|
|
2165
|
+
return (jsxRuntime.jsx(ScrollingContainer$1, { children: jsxRuntime.jsx(SentimentContainer, Object.assign({ width: width, height: height, id: "chart-container", style: { overflow: "hidden" } }, { children: jsxRuntime.jsx(line.ResponsiveLine, { theme: Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), { fontSize: theme.fontSizes.sm, axis: {
|
|
2166
|
+
legend: {
|
|
2167
|
+
text: {
|
|
2168
|
+
fill: getColor(theme.colors.primaryHue, 600),
|
|
2169
|
+
fontSize: theme.fontSizes.md,
|
|
2170
|
+
},
|
|
2171
|
+
},
|
|
2172
|
+
}, grid: {
|
|
2173
|
+
line: {
|
|
2174
|
+
stroke: theme.palette.grey[400],
|
|
2175
|
+
strokeWidth: 1,
|
|
2176
|
+
},
|
|
2177
|
+
} }), curve: "monotoneX", colors: theme.palette.grey[600], data: [{
|
|
2178
|
+
id: data.id,
|
|
2179
|
+
data: [
|
|
2180
|
+
{
|
|
2181
|
+
x: "start",
|
|
2182
|
+
},
|
|
2183
|
+
...data.data,
|
|
2184
|
+
{
|
|
2185
|
+
x: "end",
|
|
2186
|
+
}
|
|
2187
|
+
]
|
|
2188
|
+
}
|
|
2189
|
+
], margin: Object.assign(Object.assign({}, DEFAULT_CHART_MARGINS), margin), gridXValues: 1, gridYValues: 5, yScale: {
|
|
2190
|
+
type: "linear",
|
|
2191
|
+
min: 0,
|
|
2192
|
+
max: 6,
|
|
2193
|
+
}, axisBottom: {
|
|
2194
|
+
tickSize: 0,
|
|
2195
|
+
tickPadding: 10,
|
|
2196
|
+
format: (value) => formatAxisX(value),
|
|
2197
|
+
}, axisLeft: {
|
|
2198
|
+
tickSize: 0,
|
|
2199
|
+
tickPadding: 10,
|
|
2200
|
+
format: () => "",
|
|
2201
|
+
}, pointSymbol: ({ datum }) => {
|
|
2202
|
+
var _a;
|
|
2203
|
+
return jsxRuntime.jsx(Point, { children: formatPoint((_a = datum.y) !== null && _a !== void 0 ? _a : "") });
|
|
2204
|
+
},
|
|
2205
|
+
// To use the tooltip, we need to set "useMesh" to true and "enableSlices" to "false"
|
|
2206
|
+
tooltip: tooltip ? (node) => {
|
|
2207
|
+
var _a, _b;
|
|
2208
|
+
const point = node.point.data;
|
|
2209
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: tooltip({
|
|
2210
|
+
value: formatSentiment(point.y, i18n),
|
|
2211
|
+
label: point.x.toString(),
|
|
2212
|
+
data: {
|
|
2213
|
+
customData: (_a = data.data[node.point.index].custom_data) !== null && _a !== void 0 ? _a : undefined,
|
|
2214
|
+
yValue: (_b = point.y.toString()) !== null && _b !== void 0 ? _b : "",
|
|
2215
|
+
icon: formatPoint(point.y),
|
|
2216
|
+
sentimentText: formatSentiment(point.y, i18n),
|
|
2217
|
+
}
|
|
2218
|
+
}) }));
|
|
2219
|
+
} : undefined, sliceTooltip: tooltip ? (e) => {
|
|
2220
|
+
var _a;
|
|
2221
|
+
const point = e.slice.points[0].data;
|
|
2222
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: tooltip({
|
|
2223
|
+
value: formatSentiment(point.y, i18n),
|
|
2224
|
+
label: point.xFormatted,
|
|
2225
|
+
data: {
|
|
2226
|
+
customData: (_a = point.custom_data) !== null && _a !== void 0 ? _a : undefined,
|
|
2227
|
+
yValue: point.yFormatted,
|
|
2228
|
+
icon: formatPoint(point.y),
|
|
2229
|
+
sentimentText: formatSentiment(point.y, i18n),
|
|
2230
|
+
}
|
|
2231
|
+
}) }));
|
|
2232
|
+
} : undefined, markers: [
|
|
2233
|
+
{
|
|
2234
|
+
axis: 'y',
|
|
2235
|
+
legend: (_a = i18n === null || i18n === void 0 ? void 0 : i18n.sentimentsValues.neutral) !== null && _a !== void 0 ? _a : "Neutral",
|
|
2236
|
+
legendPosition: 'bottom-left',
|
|
2237
|
+
lineStyle: {
|
|
2238
|
+
stroke: theme.palette.blue[600],
|
|
2239
|
+
strokeWidth: 1,
|
|
2240
|
+
strokeDasharray: 2,
|
|
2241
|
+
},
|
|
2242
|
+
textStyle: {
|
|
2243
|
+
fill: theme.palette.blue[600],
|
|
2244
|
+
fontSize: theme.fontSizes.sm,
|
|
2245
|
+
},
|
|
2246
|
+
value: 3
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
axis: 'y',
|
|
2250
|
+
legendPosition: 'bottom-left',
|
|
2251
|
+
lineStyle: {
|
|
2252
|
+
stroke: "white",
|
|
2253
|
+
strokeWidth: 2,
|
|
2254
|
+
},
|
|
2255
|
+
value: 0
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
axis: 'y',
|
|
2259
|
+
legendPosition: 'bottom-left',
|
|
2260
|
+
lineStyle: {
|
|
2261
|
+
stroke: "white",
|
|
2262
|
+
strokeWidth: 2,
|
|
2263
|
+
},
|
|
2264
|
+
value: 6
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
axis: 'x',
|
|
2268
|
+
legendPosition: 'bottom-left',
|
|
2269
|
+
lineStyle: {
|
|
2270
|
+
stroke: "white",
|
|
2271
|
+
strokeWidth: 2,
|
|
2272
|
+
},
|
|
2273
|
+
value: "start"
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
axis: 'x',
|
|
2277
|
+
legendPosition: 'bottom-left',
|
|
2278
|
+
lineStyle: {
|
|
2279
|
+
stroke: "white",
|
|
2280
|
+
strokeWidth: 2,
|
|
2281
|
+
},
|
|
2282
|
+
value: "end"
|
|
2283
|
+
}
|
|
2284
|
+
], enableCrosshair: false, isInteractive: true, enableSlices: "x" }) })) }));
|
|
2285
|
+
};
|
|
2286
|
+
|
|
1938
2287
|
const UgClose$1 = styled__default["default"](reactNotifications.Close) `
|
|
1939
2288
|
display: flex;
|
|
1940
2289
|
align-items: center;
|
|
@@ -2930,12 +3279,12 @@ const UgToggle = styled__default["default"](reactForms.Toggle) ``;
|
|
|
2930
3279
|
**/
|
|
2931
3280
|
const Toggle = (props) => jsxRuntime.jsx(UgToggle, Object.assign({}, props));
|
|
2932
3281
|
|
|
2933
|
-
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
2934
|
-
margin-bottom: ${theme.space.lg};
|
|
2935
|
-
|
|
2936
|
-
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
2937
|
-
margin-bottom: ${theme.space.md};
|
|
2938
|
-
}
|
|
3282
|
+
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
3283
|
+
margin-bottom: ${theme.space.lg};
|
|
3284
|
+
|
|
3285
|
+
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
3286
|
+
margin-bottom: ${theme.space.md};
|
|
3287
|
+
}
|
|
2939
3288
|
`;
|
|
2940
3289
|
const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
|
|
2941
3290
|
|
|
@@ -3348,11 +3697,12 @@ const UgProjectSubtitle = styled__default["default"](NavItemText) `
|
|
|
3348
3697
|
font-size: ${(props) => props.theme.fontSizes.sm};
|
|
3349
3698
|
`;
|
|
3350
3699
|
const UgNavItem = styled__default["default"](NavItem) `
|
|
3700
|
+
display: flex;
|
|
3351
3701
|
flex-flow: column;
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
padding-left: ${({ theme }) => theme.space.xxl};
|
|
3702
|
+
width: 100%;
|
|
3703
|
+
overflow: hidden;
|
|
3704
|
+
padding: ${({ theme }) => theme.space.sm} ${({ theme }) => theme.space.xs};
|
|
3705
|
+
padding-left: ${({ theme }) => theme.space.xxl};
|
|
3356
3706
|
`;
|
|
3357
3707
|
const NavItemComponent = React.forwardRef((props, ref) => jsxRuntime.jsx(UgNavItem, Object.assign({ ref: ref }, props)));
|
|
3358
3708
|
const NavItemProject = NavItemComponent;
|
|
@@ -3360,42 +3710,30 @@ NavItemProject.Title = NavItemText;
|
|
|
3360
3710
|
NavItemProject.SubTitle = UgProjectSubtitle;
|
|
3361
3711
|
|
|
3362
3712
|
const NavAccordionItem = styled__default["default"](Accordion) `
|
|
3363
|
-
opacity: 1;
|
|
3364
3713
|
${sidebarNavItemExpanded}
|
|
3365
|
-
${
|
|
3714
|
+
${props => !props.isExpanded && sidebarNavItemHidden}
|
|
3366
3715
|
order: 1;
|
|
3367
|
-
margin
|
|
3716
|
+
margin: ${({ theme }) => theme.space.xs} 0;
|
|
3717
|
+
padding-left: 8.5px;
|
|
3368
3718
|
`;
|
|
3369
3719
|
const AccordionItemHeader = styled__default["default"](Accordion.Header) `
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
}
|
|
3377
|
-
|
|
3378
|
-
svg {
|
|
3379
|
-
width: 26px;
|
|
3720
|
+
> svg {
|
|
3721
|
+
flex-shrink: 0;
|
|
3722
|
+
|
|
3723
|
+
&:first-of-type {
|
|
3724
|
+
margin: 0 8.5px;
|
|
3725
|
+
}
|
|
3380
3726
|
}
|
|
3381
3727
|
`;
|
|
3382
3728
|
const AccordionItemPanel = styled__default["default"](Accordion.Panel) `
|
|
3383
3729
|
max-height: 180px;
|
|
3384
|
-
|
|
3385
|
-
padding-left: 5px;
|
|
3386
|
-
overflow-y: hidden;
|
|
3387
|
-
opacity: 1;
|
|
3388
|
-
&:hover {
|
|
3389
|
-
overflow-y: auto;
|
|
3390
|
-
}
|
|
3730
|
+
overflow-y: auto;
|
|
3391
3731
|
`;
|
|
3392
3732
|
const AccordionItemLabel = styled__default["default"](Accordion.Label) `
|
|
3393
|
-
padding: 12px 9px;
|
|
3394
|
-
${({ theme }) => `
|
|
3395
|
-
fill: ${getColor(theme.colors.primaryHue, 600)};
|
|
3396
|
-
font-weight: ${theme.fontWeights.medium};
|
|
3397
|
-
`}
|
|
3398
3733
|
${props => reactTheming.retrieveComponentStyles("text.primary", props)}
|
|
3734
|
+
font-weight: ${({ theme }) => theme.fontWeights.regular};
|
|
3735
|
+
padding: 0;
|
|
3736
|
+
margin: 0 8.5px;
|
|
3399
3737
|
`;
|
|
3400
3738
|
NavAccordionItem.Panel = AccordionItemPanel;
|
|
3401
3739
|
NavAccordionItem.Header = AccordionItemHeader;
|
|
@@ -3405,14 +3743,16 @@ var _path$j;
|
|
|
3405
3743
|
function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
|
|
3406
3744
|
var SvgHomeFill = function SvgHomeFill(props) {
|
|
3407
3745
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
3408
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3409
3746
|
width: 26,
|
|
3410
3747
|
height: 26,
|
|
3411
|
-
|
|
3412
|
-
|
|
3748
|
+
viewBox: "0 0 26 26",
|
|
3749
|
+
fill: "none",
|
|
3750
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3413
3751
|
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3414
|
-
|
|
3415
|
-
|
|
3752
|
+
fillRule: "evenodd",
|
|
3753
|
+
clipRule: "evenodd",
|
|
3754
|
+
d: "M11.027 21H5.973C5.436 21 5 20.523 5 19.935V17.065C5 16.475 5.436 16 5.973 16H11.027C11.564 16 12 16.476 12 17.065V19.935C12 20.523 11.564 21 11.027 21ZM11.024 14H5.977C5.437 14 5 13.577 5 13.055V5.945C5 5.425 5.438 5 5.977 5H11.024C11.564 5 12 5.424 12 5.946V13.056C12 13.577 11.563 14 11.024 14ZM14.979 5H20.021C20.561 5 21 5.478 21 6.069V8.932C21 9.522 20.561 10 20.021 10H14.979C14.439 10 14 9.522 14 8.932V6.07C14 5.48 14.439 5.001 14.979 5.001M14.972 12H20.028C20.565 12 21 12.42 21 12.94V20.06C21 20.579 20.565 21 20.028 21H14.972C14.435 21 14 20.579 14 20.06V12.94C14 12.42 14.435 12 14.972 12Z",
|
|
3755
|
+
fill: "#336179"
|
|
3416
3756
|
})));
|
|
3417
3757
|
};
|
|
3418
3758
|
|
|
@@ -3420,11 +3760,11 @@ var _linearGradient, _path$i;
|
|
|
3420
3760
|
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
|
|
3421
3761
|
var SvgHomeFillStyled = function SvgHomeFillStyled(props) {
|
|
3422
3762
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
3423
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3424
3763
|
width: 26,
|
|
3425
3764
|
height: 26,
|
|
3426
|
-
|
|
3427
|
-
|
|
3765
|
+
viewBox: "0 0 26 26",
|
|
3766
|
+
fill: "none",
|
|
3767
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3428
3768
|
}, props), _linearGradient || (_linearGradient = /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
3429
3769
|
id: "unguessIconGradient"
|
|
3430
3770
|
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
@@ -3437,7 +3777,9 @@ var SvgHomeFillStyled = function SvgHomeFillStyled(props) {
|
|
|
3437
3777
|
stopColor: "#001825"
|
|
3438
3778
|
}))), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3439
3779
|
fill: "url(#unguessIconGradient)",
|
|
3440
|
-
|
|
3780
|
+
fillRule: "evenodd",
|
|
3781
|
+
clipRule: "evenodd",
|
|
3782
|
+
d: "M11.027 21H5.973C5.436 21 5 20.523 5 19.935V17.065C5 16.475 5.436 16 5.973 16H11.027C11.564 16 12 16.476 12 17.065V19.935C12 20.523 11.564 21 11.027 21ZM11.024 14H5.977C5.437 14 5 13.577 5 13.055V5.945C5 5.425 5.438 5 5.977 5H11.024C11.564 5 12 5.424 12 5.946V13.056C12 13.577 11.563 14 11.024 14ZM14.979 5H20.021C20.561 5 21 5.478 21 6.069V8.932C21 9.522 20.561 10 20.021 10H14.979C14.439 10 14 9.522 14 8.932V6.07C14 5.48 14.439 5.001 14.979 5.001M14.972 12H20.028C20.565 12 21 12.42 21 12.94V20.06C21 20.579 20.565 21 20.028 21H14.972C14.435 21 14 20.579 14 20.06V12.94C14 12.42 14.435 12 14.972 12Z"
|
|
3441
3783
|
})));
|
|
3442
3784
|
};
|
|
3443
3785
|
|
|
@@ -3484,15 +3826,15 @@ var _path$h;
|
|
|
3484
3826
|
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
3485
3827
|
var SvgProjectsIcon = function SvgProjectsIcon(props) {
|
|
3486
3828
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
3487
|
-
width:
|
|
3488
|
-
height:
|
|
3489
|
-
viewBox: "0 0
|
|
3829
|
+
width: 26,
|
|
3830
|
+
height: 26,
|
|
3831
|
+
viewBox: "0 0 26 26",
|
|
3490
3832
|
fill: "none",
|
|
3491
3833
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3492
3834
|
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3493
3835
|
fillRule: "evenodd",
|
|
3494
3836
|
clipRule: "evenodd",
|
|
3495
|
-
d: "
|
|
3837
|
+
d: "M20.5 8H14.25V7.375C14.25 6.34232 13.4077 5.5 12.375 5.5H6.125C5.09232 5.5 4.25 6.34232 4.25 7.375V13.005C3.53426 13.0685 3.01354 13.7329 3.1335 14.4527L4.171 20.7027C4.27098 21.3026 4.79293 21.75 5.4 21.75H20.6C21.2071 21.75 21.729 21.3026 21.829 20.7027L22.8666 14.4523C22.9865 13.7329 22.4657 13.0685 21.75 13.005V9.25C21.75 8.55482 21.1952 8 20.5 8ZM21.633 14.25H4.36695L5.404 20.4973C5.40404 20.4974 20.6 20.5 20.6 20.5C20.5929 20.5 21.633 14.25 21.633 14.25ZM5.5 13H20.5V9.25H13V7.375C13 7.03268 12.7173 6.75 12.375 6.75H6.125C5.78268 6.75 5.5 7.03268 5.5 7.375V13Z",
|
|
3496
3838
|
fill: "#336179",
|
|
3497
3839
|
stroke: "#336179"
|
|
3498
3840
|
})));
|
|
@@ -3633,7 +3975,7 @@ const Sidebar = (_a) => {
|
|
|
3633
3975
|
}, [props.isExpanded]);
|
|
3634
3976
|
return props.isLoading ? (jsxRuntime.jsx(LoadingSidebar, Object.assign({}, props))) : (jsxRuntime.jsxs(Nav, Object.assign({}, props, { children: [jsxRuntime.jsxs(ScrollingContainer, { children: [jsxRuntime.jsx(NavToggle, { onClick: toggleNav, isExpanded: props.isExpanded }), showWorkspacesDropdown &&
|
|
3635
3977
|
props.workspaces &&
|
|
3636
|
-
props.workspaces.length > 1 && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(StyledNavItem, Object.assign({ title: "Workspaces", hasLogo: true, isExpanded: props.isExpanded, style: padding }, { children: jsxRuntime.jsx(WorkspacesDropdown, { workspaces: props.workspaces, workspacesLabel: props.workspacesLabel, activeWorkspace: props.activeWorkspace, onWorkspaceChange: props.onWorkspaceChange, isCompact: true }) })) })), props.tokens && (jsxRuntime.jsx(SidebarLabel, Object.assign({ isExpanded: props.isExpanded }, { children: props.activityLabel || "My activity" }))), jsxRuntime.jsxs(NavItem, Object.assign({ className: "sidebar-first-level-item", title: "Home", isExpanded: props.isExpanded, isCurrent: nav === "home", onClick: () => navigate("home") }, { children: [jsxRuntime.jsx(NavItemIcon, Object.assign({ isStyled: true }, { children: nav === "home" ? jsxRuntime.jsx(SvgHomeFillStyled, {}) : jsxRuntime.jsx(SvgHomeFill, {}) })), jsxRuntime.jsx(NavItemText, { children: props.homeItemLabel || "My Campaigns" })] })), projects && projects.length ? (jsxRuntime.jsx(NavAccordionItem, Object.assign({ className: "sidebar-project-accordion-first-item", level: 4, defaultExpandedSections: defaultAccordionPanels, isExpanded: props.isExpanded, isAnimated: false }, { children: jsxRuntime.jsxs(NavAccordionItem.Section, { children: [jsxRuntime.jsxs(NavAccordionItem.Header, { children: [jsxRuntime.jsx(SvgProjectsIcon, {
|
|
3978
|
+
props.workspaces.length > 1 && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(StyledNavItem, Object.assign({ title: "Workspaces", hasLogo: true, isExpanded: props.isExpanded, style: padding }, { children: jsxRuntime.jsx(WorkspacesDropdown, { workspaces: props.workspaces, workspacesLabel: props.workspacesLabel, activeWorkspace: props.activeWorkspace, onWorkspaceChange: props.onWorkspaceChange, isCompact: true }) })) })), props.tokens && (jsxRuntime.jsx(SidebarLabel, Object.assign({ isExpanded: props.isExpanded }, { children: props.activityLabel || "My activity" }))), jsxRuntime.jsxs(NavItem, Object.assign({ className: "sidebar-first-level-item", title: "Home", isExpanded: props.isExpanded, isCurrent: nav === "home", onClick: () => navigate("home") }, { children: [jsxRuntime.jsx(NavItemIcon, Object.assign({ isStyled: true }, { children: nav === "home" ? jsxRuntime.jsx(SvgHomeFillStyled, {}) : jsxRuntime.jsx(SvgHomeFill, {}) })), jsxRuntime.jsx(NavItemText, { children: props.homeItemLabel || "My Campaigns" })] })), projects && projects.length ? (jsxRuntime.jsx(NavAccordionItem, Object.assign({ className: "sidebar-project-accordion-first-item", level: 4, defaultExpandedSections: defaultAccordionPanels, isExpanded: props.isExpanded, isAnimated: false }, { children: jsxRuntime.jsxs(NavAccordionItem.Section, { children: [jsxRuntime.jsxs(NavAccordionItem.Header, { children: [jsxRuntime.jsx(SvgProjectsIcon, {}), jsxRuntime.jsxs(NavAccordionItem.Label, { children: [props.dividerLabel || "", " "] })] }), jsxRuntime.jsx(NavAccordionItem.Panel, Object.assign({ style: { padding: 0 } }, { children: projects.map((project) => (jsxRuntime.jsxs(NavItemProject, Object.assign({ className: "sidebar-project-item", isExpanded: props.isExpanded, isCurrent: nav === `projects/${project.id}` }, (nav === `projects/${project.id}` && { ref: prjRef }), { onClick: () => navigate("projects", project.id) }, { children: [jsxRuntime.jsx(NavItemProject.Title, { title: project.title, children: project.title }), jsxRuntime.jsx(NavItemProject.SubTitle, { children: project.campaigns })] }), project.id))) }))] }) }))) : null, jsxRuntime.jsx(NavDivider, { isExpanded: props.isExpanded }), jsxRuntime.jsxs(NavItem, Object.assign({ className: "sidebar-first-level-item", title: "Services", isExpanded: props.isExpanded, isCurrent: nav === "services", onClick: () => navigate("services"), style: { marginBottom: "16px" } }, { children: [jsxRuntime.jsx(NavItemIcon, Object.assign({ isStyled: true }, { children: nav === "services" ? jsxRuntime.jsx(SvgTemplatesActive, {}) : jsxRuntime.jsx(SvgTemplates, {}) })), jsxRuntime.jsx(NavItemText, { children: props.servicesItemLabel || "Services" })] })), props.tokens && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SidebarLabel, Object.assign({ isExpanded: props.isExpanded }, { children: props.walletLabel || "Wallet" })), jsxRuntime.jsx(StyledNavItem, Object.assign({ title: "Tokens", isExpanded: props.isExpanded, style: { pointerEvents: "none", paddingTop: 0 } }, { children: jsxRuntime.jsx(Card, Object.assign({ style: { padding: theme.space.sm } }, { children: jsxRuntime.jsxs(TokenContainer, { children: [jsxRuntime.jsx(SvgToken, { width: 32 }), jsxRuntime.jsx(Span, Object.assign({ isBold: true, style: {
|
|
3637
3979
|
marginLeft: theme.space.xs,
|
|
3638
3980
|
color: theme.palette.grey[800],
|
|
3639
3981
|
} }, { children: props.tokens + " " + (props.tokensLabel || "tokens") }))] }) })) }))] }))] }), jsxRuntime.jsxs(NavItem, Object.assign({ isExpanded: props.isExpanded, hasBrandmark: true, title: "Be smart from the start", style: { pointerEvents: "none", paddingBottom: theme.space.md } }, { children: [jsxRuntime.jsx(NavItemIcon, { children: jsxRuntime.jsx(Logo, { type: "icon", size: 150 }) }), jsxRuntime.jsx(NavItemText, { children: "UNGUESS" })] }))] })));
|
|
@@ -5221,47 +5563,47 @@ Slider.Slide = Slide;
|
|
|
5221
5563
|
Slider.PrevButton = PrevButton;
|
|
5222
5564
|
Slider.NextButton = NextButton;
|
|
5223
5565
|
|
|
5224
|
-
const UgStep = styled__default["default"](reactAccordions.Stepper.Step) `
|
|
5225
|
-
svg {
|
|
5226
|
-
color: ${({ theme }) => theme.palette.green[700]};
|
|
5227
|
-
}
|
|
5566
|
+
const UgStep = styled__default["default"](reactAccordions.Stepper.Step) `
|
|
5567
|
+
svg {
|
|
5568
|
+
color: ${({ theme }) => theme.palette.green[700]};
|
|
5569
|
+
}
|
|
5228
5570
|
`;
|
|
5229
5571
|
const UgLabel = styled__default["default"](reactAccordions.Stepper.Label) ``;
|
|
5230
|
-
const UgStepper = styled__default["default"](reactAccordions.Stepper) `
|
|
5231
|
-
div[data-garden-id="accordions.step_icon"] {
|
|
5232
|
-
background-color: ${({ theme }) => theme.palette.grey[200]};
|
|
5233
|
-
color: ${({ theme }) => theme.palette.grey[800]};
|
|
5234
|
-
font-weight: bold;
|
|
5235
|
-
}
|
|
5236
|
-
|
|
5572
|
+
const UgStepper = styled__default["default"](reactAccordions.Stepper) `
|
|
5573
|
+
div[data-garden-id="accordions.step_icon"] {
|
|
5574
|
+
background-color: ${({ theme }) => theme.palette.grey[200]};
|
|
5575
|
+
color: ${({ theme }) => theme.palette.grey[800]};
|
|
5576
|
+
font-weight: bold;
|
|
5577
|
+
}
|
|
5578
|
+
|
|
5237
5579
|
${(props) => props.activeIndex !== undefined &&
|
|
5238
|
-
`
|
|
5239
|
-
${UgStep}:nth-child(${props.activeIndex + 1}) {
|
|
5240
|
-
|
|
5241
|
-
div[data-garden-id="accordions.step_icon"] {
|
|
5242
|
-
background-color: ${props.theme.palette.blue[600]};
|
|
5243
|
-
color: white;
|
|
5244
|
-
}
|
|
5245
|
-
|
|
5246
|
-
${UgLabel} {
|
|
5247
|
-
font-weight: 500;
|
|
5248
|
-
color: ${props.theme.palette.blue[600]};
|
|
5249
|
-
}
|
|
5250
|
-
}
|
|
5251
|
-
`}
|
|
5252
|
-
`;
|
|
5253
|
-
const UgContent = styled__default["default"](reactAccordions.Stepper.Content) `
|
|
5254
|
-
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.sm} ${theme.space.sm} 24px`};
|
|
5255
|
-
margin-top: 0;
|
|
5256
|
-
margin-bottom: 0;
|
|
5257
|
-
> div {
|
|
5258
|
-
color: ${({ theme }) => theme.palette.grey[600]};
|
|
5259
|
-
}
|
|
5580
|
+
`
|
|
5581
|
+
${UgStep}:nth-child(${props.activeIndex + 1}) {
|
|
5582
|
+
|
|
5583
|
+
div[data-garden-id="accordions.step_icon"] {
|
|
5584
|
+
background-color: ${props.theme.palette.blue[600]};
|
|
5585
|
+
color: white;
|
|
5586
|
+
}
|
|
5587
|
+
|
|
5588
|
+
${UgLabel} {
|
|
5589
|
+
font-weight: 500;
|
|
5590
|
+
color: ${props.theme.palette.blue[600]};
|
|
5591
|
+
}
|
|
5592
|
+
}
|
|
5593
|
+
`}
|
|
5594
|
+
`;
|
|
5595
|
+
const UgContent = styled__default["default"](reactAccordions.Stepper.Content) `
|
|
5596
|
+
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.sm} ${theme.space.sm} 24px`};
|
|
5597
|
+
margin-top: 0;
|
|
5598
|
+
margin-bottom: 0;
|
|
5599
|
+
> div {
|
|
5600
|
+
color: ${({ theme }) => theme.palette.grey[600]};
|
|
5601
|
+
}
|
|
5260
5602
|
`;
|
|
5261
|
-
const StyledAccordionHeader = styled__default["default"](Accordion.Header) `
|
|
5262
|
-
button, svg {
|
|
5263
|
-
padding: ${({ theme }) => `${theme.space.xs} ${theme.space.md}`};
|
|
5264
|
-
}
|
|
5603
|
+
const StyledAccordionHeader = styled__default["default"](Accordion.Header) `
|
|
5604
|
+
button, svg {
|
|
5605
|
+
padding: ${({ theme }) => `${theme.space.xs} ${theme.space.md}`};
|
|
5606
|
+
}
|
|
5265
5607
|
`;
|
|
5266
5608
|
/**
|
|
5267
5609
|
* A Stepper guides users through steps of a task in sequential order.
|
|
@@ -5688,6 +6030,7 @@ exports.RadioCard = RadioCard;
|
|
|
5688
6030
|
exports.Row = Row$1;
|
|
5689
6031
|
exports.SM = SM;
|
|
5690
6032
|
exports.Select = Select;
|
|
6033
|
+
exports.SentimentChart = SentimentChart;
|
|
5691
6034
|
exports.Separator = Separator;
|
|
5692
6035
|
exports.ServiceCard = ServiceCard;
|
|
5693
6036
|
exports.Sidebar = Sidebar;
|