sag_components 1.0.975 → 1.0.976
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/Button.test.js +10 -10
- package/dist/LinkButton.test.js +10 -10
- package/dist/SingleBar.test.js +2 -2
- package/dist/index.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +40 -6
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +33 -23
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +71 -15
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +10 -5
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +182 -16
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +91 -10
- package/dist/stories/components/BarChart/BarChart.js +5 -3
- package/dist/stories/components/BarChart/BarChart.stories.js +29 -20
- package/dist/stories/components/BarChart/BarChart.style.js +52 -10
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +53 -44
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +166 -40
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +72 -11
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +7 -3
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +88 -13
- package/dist/stories/components/Benchmark/Benchmark.style.js +53 -7
- package/dist/stories/components/Button/Button.js +1 -1
- package/dist/stories/components/Button/Button.style.js +82 -7
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +40 -7
- package/dist/stories/components/Card/Card.style.js +57 -10
- package/dist/stories/components/CheckBox/CheckBox.style.js +28 -6
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +31 -6
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +4 -3
- package/dist/stories/components/CollapseData/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData/CollapseData.style.js +119 -13
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +2 -1
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +192 -27
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +53 -9
- package/dist/stories/components/Datepicker/Datepicker.style.js +9 -3
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +43 -6
- package/dist/stories/components/Dropdown/Dropdown.style.js +9 -3
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +220 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +11 -0
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +49 -36
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +204 -16
- package/dist/stories/components/DropdownNew/DropdownNew.js +21 -11
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +18 -9
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +13 -3
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +30 -10
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +175 -14
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +86 -10
- package/dist/stories/components/EventList/EventList.style.js +30 -6
- package/dist/stories/components/EventListItem/EventListItem.style.js +39 -6
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +22 -5
- package/dist/stories/components/FilterPanel/FilterPanel.js +22 -17
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +81 -13
- package/dist/stories/components/FilterPanel.js +4 -0
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +83 -10
- package/dist/stories/components/IconButton/IconButton.style.js +56 -7
- package/dist/stories/components/Input/Input.style.js +122 -9
- package/dist/stories/components/InputOld/InputOld.style.js +61 -8
- package/dist/stories/components/KpiFilter/KpiFilter.js +18 -1
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +124 -18
- package/dist/stories/components/LinkButton/LinkButton.style.js +45 -6
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +4 -2
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +32 -10
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +60 -14
- package/dist/stories/components/ListBox/ListBox.style.js +40 -6
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +17 -3
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +207 -19
- package/dist/stories/components/Modal/Modal.style.js +56 -8
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +95 -10
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +91 -13
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +5 -3
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +31 -5
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +99 -12
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +14 -4
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +16 -9
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +136 -17
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +14 -13
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +55 -8
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +12 -5
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +108 -15
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +81 -12
- package/dist/stories/components/Popup/Popup.style.js +114 -16
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +100 -15
- package/dist/stories/components/PopupContent/PopupContent.style.js +64 -11
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +78 -12
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +15 -4
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +94 -10
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +85 -12
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +13 -3
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +2 -2
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +182 -16
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +127 -15
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/RangePicker/RangeDatePicker.js +95 -12
- package/dist/stories/components/RangePicker/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker/RangePicker.style.js +99 -10
- package/dist/stories/components/ReportTable/ReportTable.style.js +123 -14
- package/dist/stories/components/SagButton/SagButton.style.js +39 -5
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +22 -4
- package/dist/stories/components/SagInput/SagInput.style.js +33 -5
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +103 -11
- package/dist/stories/components/SearchInput/SearchInput.style.js +29 -4
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +90 -9
- package/dist/stories/components/Select/Select.style.js +92 -9
- package/dist/stories/components/TabMenu/TabMenu.js +19 -7
- package/dist/stories/components/TabMenu/TabMenu.style.js +105 -14
- package/dist/stories/components/Table/Table.js +2 -2
- package/dist/stories/components/Table/Table.style.js +78 -9
- package/dist/stories/components/TextField/TextField.style.js +10 -3
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +214 -28
- package/dist/stories/components/Tooltip/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip/Tooltip.style.js +90 -5
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +43 -8
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +71 -11
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +163 -22
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +100 -16
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +69 -12
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +170 -22
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +47 -32
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +52 -14
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +51 -13
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +97 -5
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +6 -4
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +88 -23
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +52 -10
- package/dist/stories/utils/CommonFunctions.js +13 -8
- package/package.json +1 -1
- package/dist/stories/components/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- package/dist/stories/components/Rbackup.js +0 -453
- package/dist/stories/components/TableTooltip.js +0 -71
- package/dist/stories/components/TableTooltip.style.js +0 -12
|
@@ -5,17 +5,92 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.LegendWrapper = exports.EventWeeksLegendMainContainer = exports.EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElement = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
font-family: "Poppins", sans-serif;
|
|
12
|
+
color: #212121;
|
|
13
|
+
width: ${props => props.width};
|
|
14
|
+
height: ${props => props.height};
|
|
15
|
+
min-width: 250px;
|
|
16
|
+
`;
|
|
17
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
background: white;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
`;
|
|
24
|
+
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
|
|
25
|
+
border-radius: 5px;
|
|
26
|
+
padding: 8px 12px;
|
|
27
|
+
background: white;
|
|
28
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
29
|
+
margin: 0;
|
|
30
|
+
`;
|
|
31
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div`
|
|
32
|
+
color: #212121;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
width: fit-content;
|
|
36
|
+
`;
|
|
37
|
+
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div`
|
|
38
|
+
color: #212121;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
`;
|
|
42
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
43
|
+
padding: 0 1rem;
|
|
44
|
+
`;
|
|
45
|
+
const Title = exports.Title = _styledComponents.default.h5`
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
font-size: 18px;
|
|
48
|
+
line-height: 20px;
|
|
49
|
+
margin: 0;
|
|
50
|
+
@media (max-width: 1536px) {
|
|
51
|
+
font-size: 16px;
|
|
52
|
+
}
|
|
53
|
+
@media (max-width: 1366px) {
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
const EventWeeksLegendMainContainer = exports.EventWeeksLegendMainContainer = _styledComponents.default.div`
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
margin: 2px 0 0 0;
|
|
62
|
+
padding-left: 55px;
|
|
63
|
+
align-items: center;
|
|
64
|
+
`;
|
|
65
|
+
const EventWeeksLegendDataElementsContainer = exports.EventWeeksLegendDataElementsContainer = _styledComponents.default.div`
|
|
66
|
+
display: flex;
|
|
67
|
+
margin: 0px;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: space-around;
|
|
70
|
+
width: 100%;
|
|
71
|
+
`;
|
|
72
|
+
const EventWeeksLegendDataElement = exports.EventWeeksLegendDataElement = _styledComponents.default.h4`
|
|
73
|
+
display: flex;
|
|
74
|
+
font-weight: ${props => props.fontWeight};
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
line-height: 15px;
|
|
77
|
+
margin: 0;
|
|
78
|
+
width: 100%;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-content: center;
|
|
81
|
+
color: ${props => props.textColor};
|
|
82
|
+
border-top-left-radius: ${props => props.borderLeftRadius};
|
|
83
|
+
border-bottom-left-radius: ${props => props.borderLeftRadius};
|
|
84
|
+
border-top-right-radius: ${props => props.borderRightRadius};
|
|
85
|
+
border-bottom-right-radius: ${props => props.borderRightRadius};
|
|
86
|
+
background: ${props => props.color};
|
|
87
|
+
@media (max-width: 1536px) {
|
|
88
|
+
font-size: 11px;
|
|
89
|
+
}
|
|
90
|
+
@media (max-width: 1366px) {
|
|
91
|
+
font-size: 10px;
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
const LegendWrapper = exports.LegendWrapper = _styledComponents.default.div`
|
|
95
|
+
padding-top: 15px;
|
|
96
|
+
`;
|
|
@@ -5,11 +5,57 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.CurrentValueRectangle = exports.ControlsContainer = exports.Controls = exports.BackgroundValueRectangle = exports.AvarageDelimiter = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
margin: 0px 0 0px;
|
|
13
|
+
font-family: "Poppins", sans-serif;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
width: ${props => props.width.toString().concat('', 'px')};
|
|
16
|
+
height: ${props => props.height.toString().concat('', 'px')};
|
|
17
|
+
//box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
|
|
18
|
+
border-radius: 100px;
|
|
19
|
+
//border: 1px solid red;
|
|
20
|
+
align-items: center;
|
|
21
|
+
`;
|
|
22
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
23
|
+
position: relative;
|
|
24
|
+
border-radius: 100px;
|
|
25
|
+
width: ${props => props.width.toString().concat('', 'px')};
|
|
26
|
+
height: ${props => props.height.toString().concat('', 'px')};
|
|
27
|
+
//background: #ffffff;
|
|
28
|
+
//border: 1px solid blue;
|
|
29
|
+
`;
|
|
30
|
+
const BackgroundValueRectangle = exports.BackgroundValueRectangle = _styledComponents.default.div`
|
|
31
|
+
position: absolute;
|
|
32
|
+
width: ${props => props.width.toString().concat('', 'px')};
|
|
33
|
+
height: ${props => props.height.toString().concat('', 'px')};
|
|
34
|
+
top: 0px;
|
|
35
|
+
left: 0px;
|
|
36
|
+
border-radius: 100px;
|
|
37
|
+
background: ${props => props.color};
|
|
38
|
+
//border: 1px solid orange;
|
|
39
|
+
`;
|
|
40
|
+
const CurrentValueRectangle = exports.CurrentValueRectangle = _styledComponents.default.div`
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: ${props => props.width.toString().concat('', 'px')};
|
|
43
|
+
height: ${props => props.height.toString().concat('', 'px')};
|
|
44
|
+
top: 0px;
|
|
45
|
+
left: 0px;
|
|
46
|
+
border-radius: 100px;
|
|
47
|
+
background: linear-gradient(
|
|
48
|
+
90deg,
|
|
49
|
+
${props => props.lineargradientcolor} 0%,
|
|
50
|
+
${props => props.color} 100%
|
|
51
|
+
);
|
|
52
|
+
//border: 1px solid green;
|
|
53
|
+
`;
|
|
54
|
+
const AvarageDelimiter = exports.AvarageDelimiter = _styledComponents.default.div`
|
|
55
|
+
position: absolute;
|
|
56
|
+
height: ${props => props.height.toString().concat('', 'px')};
|
|
57
|
+
width: ${props => props.width.toString().concat('', 'px')};
|
|
58
|
+
top: ${props => props.top.toString().concat('', 'px')};
|
|
59
|
+
left: ${props => props.left.toString().concat('', 'px')};
|
|
60
|
+
border: 1px solid #212121;
|
|
61
|
+
`;
|
|
@@ -42,7 +42,7 @@ const Button = props => {
|
|
|
42
42
|
const [hover, setHover] = (0, _react.useState)(false);
|
|
43
43
|
const handleSubmitButtonOnClick = () => {
|
|
44
44
|
setClicked(true);
|
|
45
|
-
onClick(
|
|
45
|
+
onClick(`SubmitButtonOnClick: ${text}`);
|
|
46
46
|
setTimeout(() => {
|
|
47
47
|
setClicked(false);
|
|
48
48
|
}, 300);
|
|
@@ -5,11 +5,86 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Label = exports.InputCommit = exports.IconWrapper = exports.ButtonItem = exports.ButtonContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const ButtonContainer = exports.ButtonContainer = _styledComponents.default.div`
|
|
10
|
+
//position: relative;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-content: center;
|
|
15
|
+
width: ${props => props.width};
|
|
16
|
+
height: ${props => props.height};
|
|
17
|
+
`;
|
|
18
|
+
const ButtonItem = exports.ButtonItem = _styledComponents.default.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-content: center;
|
|
23
|
+
flex-wrap: nowrap;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
width: ${props => props.width};
|
|
26
|
+
height: ${props => props.height};
|
|
27
|
+
color: ${props => props.disabled ? props.disabled_text_color : props.text_color};
|
|
28
|
+
border: ${props => `1px solid ${props.disabled ? props.disabled_border_color : props.border_color}`};
|
|
29
|
+
border-radius: 12px;
|
|
30
|
+
background-color: ${props => props.disabled ? props.disabled_background_color : props.background_color};
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
gap: 8px;
|
|
33
|
+
padding: ${props => props.padding};
|
|
34
|
+
&:hover {
|
|
35
|
+
background-color: ${props => props.disabled ? props.disabled_backgroundColor : props.hover_background_color};
|
|
36
|
+
border-color: ${props => props.disabled ? props.disabled_border_color : props.hover_border_color};
|
|
37
|
+
color: ${props => props.disabled ? props.disabled_text_color : props.hover_text_color};
|
|
38
|
+
box-shadow: ${props => props.disabled ? '' : '5px 5px 10px 0px rgba(0, 0, 0, 0.2)'};
|
|
39
|
+
cursor: ${props => !props.disabled ? 'pointer' : 'default'};
|
|
40
|
+
}
|
|
41
|
+
&.ButtonItem-clicked {
|
|
42
|
+
background-color: ${props => props.background_color};
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
|
|
45
|
+
transition: background-color 0.3s, color 0.3s;
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
const Label = exports.Label = _styledComponents.default.label`
|
|
49
|
+
font-family: "Poppins";
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
user-select: none;
|
|
55
|
+
`;
|
|
56
|
+
const IconWrapper = exports.IconWrapper = _styledComponents.default.div`
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-content: center;
|
|
61
|
+
`;
|
|
62
|
+
const InputCommit = exports.InputCommit = _styledComponents.default.input`
|
|
63
|
+
font-family: "Poppins", sans-serif;
|
|
64
|
+
border: ${props => `0px solid ${props.disabled ? props.disabled_border_color : props.hover_border_color}`};
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
width: ${props => props.width};
|
|
69
|
+
height: ${props => props.height};
|
|
70
|
+
color: ${props => props.disabled ? props.disabled_text_color : props.text_color};
|
|
71
|
+
border: ${props => `1px solid ${props.disabled ? props.disabled_border_color : props.border_color}`};
|
|
72
|
+
border-radius: 12px;
|
|
73
|
+
background-color: ${props => props.disabled ? props.disabled_background_color : props.background_color};
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
padding: ${props => props.padding};
|
|
76
|
+
|
|
77
|
+
&:hover {
|
|
78
|
+
background-color: ${props => props.disabled ? props.disabled_backgroundColor : props.hover_background_color};
|
|
79
|
+
border-color: ${props => props.disabled ? props.disabled_border_color : props.hover_border_color};
|
|
80
|
+
color: ${props => props.disabled ? props.disabled_text_color : props.hover_text_color};
|
|
81
|
+
box-shadow: ${props => props.disabled ? '' : '5px 5px 10px 0px rgba(0, 0, 0, 0.2)'};
|
|
82
|
+
cursor: ${props => !props.disabled ? 'pointer' : 'default'};
|
|
83
|
+
}
|
|
84
|
+
&.InputCommit-clicked {
|
|
85
|
+
background-color: ${props => props.background_color};
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
|
|
88
|
+
transition: background-color 0.3s, color 0.3s;
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
@@ -5,11 +5,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Line = exports.LabelsContainer = exports.Label = exports.Headline = exports.ComponentContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
9
|
+
const ComponentContainer = exports.ComponentContainer = _styledComponents.default.div`
|
|
10
|
+
padding: 20px;
|
|
11
|
+
font-family: "Poppins", sans-serif;
|
|
12
|
+
background-color: white;
|
|
13
|
+
`;
|
|
14
|
+
const Headline = exports.Headline = _styledComponents.default.h3`
|
|
15
|
+
color: #212121;
|
|
16
|
+
font-size: 20px;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
margin: 0 0 16px;
|
|
19
|
+
`;
|
|
20
|
+
const LabelsContainer = exports.LabelsContainer = _styledComponents.default.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: 16px;
|
|
23
|
+
`;
|
|
24
|
+
const Label = exports.Label = _styledComponents.default.div`
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
padding: 8px;
|
|
27
|
+
color: #212121;
|
|
28
|
+
background-color: #F2F2F2;
|
|
29
|
+
> span {
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.icon-label {
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
color: #1B30AA;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
background-color: #F0F5FF;
|
|
39
|
+
> span {
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
const Line = exports.Line = _styledComponents.default.hr`
|
|
45
|
+
background-color: #D0D0D0;
|
|
46
|
+
width: 100%;
|
|
47
|
+
margin: 28px 0;
|
|
48
|
+
`;
|
|
@@ -5,14 +5,61 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.SegmentsContainer = exports.Segment = exports.CardTitle = exports.CardFrame = exports.CardDetails = exports.CardDetailText = exports.ButtonWrap = exports.Button = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
const CardFrame = exports.CardFrame = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
background-color: white;
|
|
12
|
+
border: 1px solid gray;
|
|
13
|
+
border-left: 5px solid #6e9eed;
|
|
14
|
+
margin-bottom: 10px;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
width: ${props => props.width};
|
|
19
|
+
height: ${props => props.height};
|
|
20
|
+
`;
|
|
21
|
+
const CardDetails = exports.CardDetails = _styledComponents.default.div`
|
|
22
|
+
padding: 16px 20px;
|
|
23
|
+
`;
|
|
24
|
+
const CardTitle = exports.CardTitle = _styledComponents.default.h3`
|
|
25
|
+
font-size: 22px;
|
|
26
|
+
margin: 0;
|
|
27
|
+
`;
|
|
28
|
+
const CardDetailText = exports.CardDetailText = _styledComponents.default.span`
|
|
29
|
+
display: block;
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
`;
|
|
32
|
+
const SegmentsContainer = exports.SegmentsContainer = _styledComponents.default.div`
|
|
33
|
+
display: grid;
|
|
34
|
+
flex-grow: 1;
|
|
35
|
+
gap: 20px;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
padding: 16px;
|
|
38
|
+
grid-template-rows: repeat(2, 1fr);
|
|
39
|
+
grid-template-columns: repeat(3, 1fr);
|
|
40
|
+
`;
|
|
41
|
+
const Segment = exports.Segment = _styledComponents.default.div`
|
|
42
|
+
flex: 1 1 0px;
|
|
43
|
+
display: flex;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
border: 1px solid gray;
|
|
47
|
+
padding: 8px;
|
|
48
|
+
`;
|
|
49
|
+
const ButtonWrap = exports.ButtonWrap = _styledComponents.default.div`
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
padding: 30px;
|
|
53
|
+
background-color: bisque;
|
|
54
|
+
`;
|
|
55
|
+
const Button = exports.Button = _styledComponents.default.button`
|
|
56
|
+
font-size: 20px;
|
|
57
|
+
color: white;
|
|
58
|
+
background-color: gray;
|
|
59
|
+
border: none;
|
|
60
|
+
padding: 8px 16px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
&:hover, &:focus {
|
|
63
|
+
background-color: rebeccapurple;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
@@ -5,10 +5,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Label = exports.ControlsContainer = exports.Controls = exports.CheckBoxIconContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
height: ${props => props.height};
|
|
12
|
+
width: ${props => props.width};
|
|
13
|
+
font-size: ${props => props.fontSize};
|
|
14
|
+
font-family: Poppins;
|
|
15
|
+
margin: 0;
|
|
16
|
+
`;
|
|
17
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
`;
|
|
21
|
+
const Label = exports.Label = _styledComponents.default.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
padding: 0 10px 0 10px;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
@media (max-width: 1536px) {
|
|
26
|
+
font-size: 11px;
|
|
27
|
+
}
|
|
28
|
+
@media (max-width: 1366px) {
|
|
29
|
+
font-size: 10px;
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
const CheckBoxIconContainer = exports.CheckBoxIconContainer = _styledComponents.default.div`
|
|
33
|
+
display: flex;
|
|
34
|
+
margin: 0;
|
|
35
|
+
cursor: ${props => props.disabled ? 'default' : 'pointer'};
|
|
36
|
+
`;
|
|
@@ -5,10 +5,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Label = exports.ControlsContainer = exports.Controls = exports.CheckBoxButtonIconContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
height: ${props => props.height};
|
|
12
|
+
width: ${props => props.width};
|
|
13
|
+
font-size: ${props => props.fontSize};
|
|
14
|
+
font-family: Poppins;
|
|
15
|
+
margin: 0;
|
|
16
|
+
`;
|
|
17
|
+
const Controls = exports.Controls = _styledComponents.default.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
border-radius: ${props => props.borderRadius};
|
|
21
|
+
background: ${props => props.backgroundColor};
|
|
22
|
+
border: 1px solid ${props => props.borderColor};
|
|
23
|
+
cursor: ${props => props.disabled ? 'default' : 'pointer'};
|
|
24
|
+
`;
|
|
25
|
+
const Label = exports.Label = _styledComponents.default.div`
|
|
26
|
+
display: flex;
|
|
27
|
+
padding: 0 10px 0 10px;
|
|
28
|
+
color: ${props => props.textColor};
|
|
29
|
+
@media (max-width: 1536px) {
|
|
30
|
+
font-size: 11px;
|
|
31
|
+
}
|
|
32
|
+
@media (max-width: 1366px) {
|
|
33
|
+
font-size: 10px;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
const CheckBoxButtonIconContainer = exports.CheckBoxButtonIconContainer = _styledComponents.default.div`
|
|
37
|
+
display: flex;
|
|
38
|
+
margin: 0 0 0 10px;
|
|
39
|
+
`;
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.AceEditorContent = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
9
|
var _reactAce = _interopRequireDefault(require("react-ace"));
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const AceEditorContent = exports.AceEditorContent = (0, _styledComponents.default)(_reactAce.default)`
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 400px;
|
|
13
|
+
`;
|
|
@@ -42,16 +42,16 @@ const CollapseData = props => {
|
|
|
42
42
|
}) : /*#__PURE__*/_react.default.createElement(_ArrowDownIcon.ArrowDownIcon, {
|
|
43
43
|
width: "11px",
|
|
44
44
|
height: "12px"
|
|
45
|
-
})), /*#__PURE__*/_react.default.createElement(_CollapseData.TitleDiv, null,
|
|
46
|
-
key:
|
|
45
|
+
})), /*#__PURE__*/_react.default.createElement(_CollapseData.TitleDiv, null, `${parseFloat(section.value.toFixed(1))}${section.valueType}`))), activeIndex === section.key && /*#__PURE__*/_react.default.createElement(_CollapseData.TableWrapper, null, /*#__PURE__*/_react.default.createElement(_CollapseData.Table, null, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, section.table.map((headline, i) => /*#__PURE__*/_react.default.createElement(_CollapseData.Th, {
|
|
46
|
+
key: `${i + headline}`
|
|
47
47
|
}, headline.title)))), /*#__PURE__*/_react.default.createElement("tbody", null, /*#__PURE__*/_react.default.createElement("tr", null, section.table.map((data, i) => {
|
|
48
48
|
if (data.value !== null) {
|
|
49
49
|
return /*#__PURE__*/_react.default.createElement(_CollapseData.Td, {
|
|
50
|
-
key:
|
|
51
|
-
},
|
|
50
|
+
key: `${i + data}`
|
|
51
|
+
}, `${data.value >= 0 ? '+' : ''}${data.value.toFixed(1)}${section.valueType}`);
|
|
52
52
|
}
|
|
53
53
|
return /*#__PURE__*/_react.default.createElement(_CollapseData.Td, {
|
|
54
|
-
key:
|
|
54
|
+
key: `${i + data}`
|
|
55
55
|
}, "No Data");
|
|
56
56
|
})))))))));
|
|
57
57
|
};
|