sag_components 1.0.192 → 1.0.194
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/dist/stories/components/Dropdown.js +5 -1
- package/dist/stories/components/InfoIcon.js +38 -0
- package/dist/stories/components/TitleDescription.style.js +1 -1
- package/dist/stories/components/TotalBenchmark.style.js +1 -1
- package/dist/stories/components/TotalBenchmarkArrows.style.js +1 -1
- package/dist/stories/components/TotalDoughnutChart.js +2 -2
- package/dist/stories/components/TotalDoughnutChart.style.js +2 -2
- package/package.json +1 -1
|
@@ -61,7 +61,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
61
61
|
_ref$reset = _ref.reset,
|
|
62
62
|
reset = _ref$reset === void 0 ? false : _ref$reset,
|
|
63
63
|
_ref$disableClearable = _ref.disableClearable,
|
|
64
|
-
disableClearable = _ref$disableClearable === void 0 ? false : _ref$disableClearable
|
|
64
|
+
disableClearable = _ref$disableClearable === void 0 ? false : _ref$disableClearable,
|
|
65
|
+
_ref$disabled = _ref.disabled,
|
|
66
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
65
67
|
/**
|
|
66
68
|
* SAG Dropdown
|
|
67
69
|
*/
|
|
@@ -185,6 +187,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
185
187
|
onInputChange: function onInputChange(event, newInputValue) {
|
|
186
188
|
onInputChangeHandler(event, newInputValue);
|
|
187
189
|
},
|
|
190
|
+
disabled: disabled,
|
|
188
191
|
disablePortal: true,
|
|
189
192
|
disableClearable: disableClearable
|
|
190
193
|
// value={defaultValue && !currentOption?.newValue ? defaultValue : currentOption?.newValue}
|
|
@@ -265,6 +268,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
265
268
|
limitTags: limitTagsOnMultiSelect,
|
|
266
269
|
id: "checkboxes-tags",
|
|
267
270
|
options: options,
|
|
271
|
+
disabled: disabled,
|
|
268
272
|
disableCloseOnSelect: true,
|
|
269
273
|
disableClearable: disableClearable,
|
|
270
274
|
getOptionLabel: function getOptionLabel(option) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.InfoIcon = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var InfoIcon = function InfoIcon(_ref) {
|
|
10
|
+
var clicked = _ref.clicked;
|
|
11
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
fill: "none",
|
|
15
|
+
stroke: clicked ? "white" : "black",
|
|
16
|
+
strokeWidth: "2",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round",
|
|
19
|
+
className: "feather feather-info"
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement("circle", {
|
|
21
|
+
cx: "12",
|
|
22
|
+
cy: "12",
|
|
23
|
+
r: "10"
|
|
24
|
+
}), /*#__PURE__*/_react.default.createElement("line", {
|
|
25
|
+
x1: "12",
|
|
26
|
+
y1: "16",
|
|
27
|
+
x2: "12",
|
|
28
|
+
y2: "12"
|
|
29
|
+
}), /*#__PURE__*/_react.default.createElement("line", {
|
|
30
|
+
x1: "12",
|
|
31
|
+
y1: "8",
|
|
32
|
+
x2: "12",
|
|
33
|
+
y2: "8"
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
exports.InfoIcon = InfoIcon;
|
|
37
|
+
var _default = InfoIcon;
|
|
38
|
+
exports.default = _default;
|
|
@@ -16,7 +16,7 @@ var MainContainer = _styledComponents.default.div(_templateObject || (_templateO
|
|
|
16
16
|
return props.height;
|
|
17
17
|
});
|
|
18
18
|
exports.MainContainer = MainContainer;
|
|
19
|
-
var PanelContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n border-radius: 12px;\n background: #ffffff;\n padding: 1rem;\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 1.4;\n white-space: pre-wrap;\n overflow: hidden;\n width: 100%;\n"])));
|
|
19
|
+
var PanelContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n border-radius: 12px;\n background: #ffffff;\n padding: 1rem 1rem 1rem 3rem;\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 1.4;\n white-space: pre-wrap;\n overflow: hidden;\n width: 100%;\n"])));
|
|
20
20
|
exports.PanelContainer = PanelContainer;
|
|
21
21
|
var EventNameAndViewCreativeContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
22
22
|
exports.EventNameAndViewCreativeContainer = EventNameAndViewCreativeContainer;
|
|
@@ -20,7 +20,7 @@ var ControlsContainer = _styledComponents.default.div(_templateObject || (_templ
|
|
|
20
20
|
return props.height;
|
|
21
21
|
});
|
|
22
22
|
exports.ControlsContainer = ControlsContainer;
|
|
23
|
-
var Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n //display: flex;\n border-radius: 12px;\n /* width: 90%;\n height: 40%; */\n //justify-content: center; \n //align-items: flex-start;\n background: #ffffff;\n margin-bottom:
|
|
23
|
+
var Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n //display: flex;\n border-radius: 12px;\n /* width: 90%;\n height: 40%; */\n //justify-content: center; \n //align-items: flex-start;\n background: #ffffff;\n margin-bottom: 2rem;\n padding: 0px 0.8rem;\n"])));
|
|
24
24
|
exports.Controls = Controls;
|
|
25
25
|
var TitleAndValueContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n //display: flex;\n //flex-direction: column;\n width: 100%;\n"])));
|
|
26
26
|
exports.TitleAndValueContainer = TitleAndValueContainer;
|
|
@@ -22,7 +22,7 @@ var Controls = _styledComponents.default.div(_templateObject2 || (_templateObjec
|
|
|
22
22
|
exports.Controls = Controls;
|
|
23
23
|
var Title = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n /* width: 14rem; */\n font-weight: 600;\n font-size: 1rem;\n margin-bottom: 1rem;\n"])));
|
|
24
24
|
exports.Title = Title;
|
|
25
|
-
var ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: baseline;\n /* width: 14rem; */\n height:
|
|
25
|
+
var ValueAndBenchmarkContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: baseline;\n /* width: 14rem; */\n height: 45%;\n"])));
|
|
26
26
|
exports.ValueAndBenchmarkContainer = ValueAndBenchmarkContainer;
|
|
27
27
|
var FormattedValue = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.1rem;\n font-weight: 500;\n font-size: 2.2rem;\n"])));
|
|
28
28
|
exports.FormattedValue = FormattedValue;
|
|
@@ -97,8 +97,8 @@ var TotalDoughnutChart = function TotalDoughnutChart(_ref) {
|
|
|
97
97
|
onMouseEnter: onPieEnterHandler
|
|
98
98
|
}, /*#__PURE__*/_react.default.createElement(_recharts.Pie, {
|
|
99
99
|
data: legendData,
|
|
100
|
-
outerRadius:
|
|
101
|
-
innerRadius:
|
|
100
|
+
outerRadius: 45 * (rootFont.toString().replace("px", "") / DEFAULT_ROOT_FONT),
|
|
101
|
+
innerRadius: 31 * (rootFont.toString().replace("px", "") / DEFAULT_ROOT_FONT),
|
|
102
102
|
fill: "#8884d8",
|
|
103
103
|
dataKey: "value"
|
|
104
104
|
}, legendData.map(function (row, index) {
|
|
@@ -34,9 +34,9 @@ var CurrencySign = _styledComponents.default.div(_templateObject8 || (_templateO
|
|
|
34
34
|
exports.CurrencySign = CurrencySign;
|
|
35
35
|
var FormattedValue = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 2.22rem;\n"])));
|
|
36
36
|
exports.FormattedValue = FormattedValue;
|
|
37
|
-
var DoughnutChartAndLegendContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n width:
|
|
37
|
+
var DoughnutChartAndLegendContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n width: 95%;\n height: 37%;\n margin-top: 1em; // 35px;\n margin-bottom: 1em; // 35px;\n"])));
|
|
38
38
|
exports.DoughnutChartAndLegendContainer = DoughnutChartAndLegendContainer;
|
|
39
|
-
var DoughnutChart = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n width: 34%;\n height: 100%;\n min-width:
|
|
39
|
+
var DoughnutChart = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n width: 34%;\n height: 100%;\n min-width: 105px;\n min-height: 105px;\n"])));
|
|
40
40
|
exports.DoughnutChart = DoughnutChart;
|
|
41
41
|
var LegendContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 66%;\n padding-left: 10px;\n flex-direction: column;\n align-items: left;\n justify-content: space-between;\n"])));
|
|
42
42
|
exports.LegendContainer = LegendContainer;
|