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,20 +5,111 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TopRow = exports.Tabs = exports.TabMenuContainer = exports.Tab = exports.SearchInputWrap = exports.SagIconButtonWrap = exports.PresentationSlider = exports.Nav = exports.Label = exports.Body = exports.ActionsWrapper = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
9
|
var _SagIconButton = _interopRequireDefault(require("../SagIconButton/SagIconButton"));
|
|
11
10
|
var _SearchInput = _interopRequireDefault(require("../SearchInput/SearchInput"));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
const scrollableStyles = `
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
|
|
14
|
+
&::-webkit-scrollbar {
|
|
15
|
+
width: 4px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::-webkit-scrollbar-track {
|
|
19
|
+
background: #E8E8E8;
|
|
20
|
+
border-radius: 5px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&::-webkit-scrollbar-thumb {
|
|
24
|
+
background: #D0D0D0;
|
|
25
|
+
border-radius: 5px;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
const TabMenuContainer = exports.TabMenuContainer = _styledComponents.default.div`
|
|
29
|
+
font-family: 'Poppins', sans-serif;
|
|
30
|
+
display: grid;
|
|
31
|
+
gap: 20px;
|
|
32
|
+
grid-template-rows: repeat(3, auto);
|
|
33
|
+
`;
|
|
34
|
+
const TopRow = exports.TopRow = _styledComponents.default.div`
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: 20px;
|
|
37
|
+
`;
|
|
38
|
+
const Nav = exports.Nav = _styledComponents.default.nav`
|
|
39
|
+
`;
|
|
40
|
+
const Tabs = exports.Tabs = _styledComponents.default.div`
|
|
41
|
+
position: relative;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
width: 100%;
|
|
45
|
+
`;
|
|
46
|
+
const Tab = exports.Tab = _styledComponents.default.div`
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
position: relative;
|
|
49
|
+
text-align: center;
|
|
50
|
+
padding: 8px 12px;
|
|
51
|
+
font-size: 16px;
|
|
52
|
+
color: #000000;
|
|
53
|
+
&.active {
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
color: ${props => props.color};
|
|
56
|
+
border-bottom: 1mm solid #229E38;
|
|
57
|
+
//2px solid ${props => props.color};
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
const PresentationSlider = exports.PresentationSlider = _styledComponents.default.div`
|
|
61
|
+
position: absolute;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 2px;
|
|
66
|
+
background-color: #EAEAEA;
|
|
67
|
+
&::before {
|
|
68
|
+
content: '';
|
|
69
|
+
position: absolute;
|
|
70
|
+
left: 0;
|
|
71
|
+
z-index: 1;
|
|
72
|
+
width: ${props => props.width};
|
|
73
|
+
height: 2px;
|
|
74
|
+
/* background-color: ${props => props.color}; */
|
|
75
|
+
transform: translateX(calc(100% * ${props => props.activeTab}));
|
|
76
|
+
transition: transform .35s ease;
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
const Body = exports.Body = _styledComponents.default.div`
|
|
80
|
+
width: 100%;
|
|
81
|
+
${scrollableStyles}
|
|
82
|
+
position: relative;
|
|
83
|
+
overflow-x: hidden;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
padding: ${props => props.setBackground ? '20px' : '5px'};
|
|
86
|
+
background-color: ${props => props.setBackground ? 'white' : 'unset'};
|
|
87
|
+
border-radius: ${props => props.setBackground ? '12px' : '0'};
|
|
88
|
+
box-shadow: ${props => props.setBackground ? '0px 0px 20px 0px rgba(0, 0, 0, 0.10)' : 'unset'};
|
|
89
|
+
`;
|
|
90
|
+
const Label = exports.Label = _styledComponents.default.div`
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
padding: 8px;
|
|
94
|
+
color: #5a5a5a;
|
|
95
|
+
background-color: #E7E7E7;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
> span {
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
}
|
|
100
|
+
~ span {
|
|
101
|
+
margin: 0 24px;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
105
|
+
const ActionsWrapper = exports.ActionsWrapper = _styledComponents.default.div`
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
gap: 10px;
|
|
109
|
+
width: 100%;
|
|
110
|
+
`;
|
|
111
|
+
const SagIconButtonWrap = exports.SagIconButtonWrap = (0, _styledComponents.default)(_SagIconButton.default)`
|
|
112
|
+
`;
|
|
113
|
+
const SearchInputWrap = exports.SearchInputWrap = (0, _styledComponents.default)(_SearchInput.default)`
|
|
114
|
+
margin-left: auto;
|
|
115
|
+
`;
|
|
@@ -73,10 +73,10 @@ const Table = props => {
|
|
|
73
73
|
};
|
|
74
74
|
const handleMouseMove = e => {
|
|
75
75
|
if (resizing) {
|
|
76
|
-
const th = document.querySelector(
|
|
76
|
+
const th = document.querySelector(`th[data-column="${resizeColumn}"]`);
|
|
77
77
|
const dx = e.clientX - m_pos.current;
|
|
78
78
|
m_pos.current = e.clientX;
|
|
79
|
-
th.style.width =
|
|
79
|
+
th.style.width = `${parseInt(getComputedStyle(th, '').width) + dx}px`;
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
const handleMouseUp = () => {
|
|
@@ -5,13 +5,82 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Thead = exports.Tbody = exports.TableWrapper = exports.TableTag = exports.PaginationButton = exports.Pagination = exports.Dragger = 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
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
const TableWrapper = exports.TableWrapper = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
background-color: white;
|
|
12
|
+
`;
|
|
13
|
+
const TableTag = exports.TableTag = _styledComponents.default.table`
|
|
14
|
+
border-collapse: collapse;
|
|
15
|
+
table-layout: fixed;
|
|
16
|
+
width: ${props => props.width};
|
|
17
|
+
height: ${props => props.height};
|
|
18
|
+
margin-bottom: 15px;
|
|
19
|
+
th,
|
|
20
|
+
td {
|
|
21
|
+
position: relative;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
border: 1px solid #ddd;
|
|
24
|
+
padding: 8px;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
const Thead = exports.Thead = _styledComponents.default.thead`
|
|
28
|
+
color: white;
|
|
29
|
+
background-color: #000000;
|
|
30
|
+
tr {
|
|
31
|
+
> th {
|
|
32
|
+
position: relative;
|
|
33
|
+
&.actions-th,
|
|
34
|
+
&:last-of-type {
|
|
35
|
+
> div {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.actions-th {
|
|
41
|
+
width: 22px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
const Tbody = exports.Tbody = _styledComponents.default.tbody`
|
|
47
|
+
tr {
|
|
48
|
+
&:nth-child(even) {
|
|
49
|
+
background-color: #f2f2f2;
|
|
50
|
+
}
|
|
51
|
+
&:hover {
|
|
52
|
+
background-color: #ddd;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
const Dragger = exports.Dragger = _styledComponents.default.div`
|
|
57
|
+
width: 5px;
|
|
58
|
+
height: 100%;
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 0;
|
|
61
|
+
right: 0;
|
|
62
|
+
cursor: col-resize;
|
|
63
|
+
`;
|
|
64
|
+
const Pagination = exports.Pagination = _styledComponents.default.ul`
|
|
65
|
+
display: flex;
|
|
66
|
+
list-style: none;
|
|
67
|
+
padding: 0;
|
|
68
|
+
margin: 0;
|
|
69
|
+
gap: 5px;
|
|
70
|
+
`;
|
|
71
|
+
const PaginationButton = exports.PaginationButton = _styledComponents.default.button`
|
|
72
|
+
display: inline-block;
|
|
73
|
+
padding: 8px 12px;
|
|
74
|
+
background-color: #ffffff;
|
|
75
|
+
border: 1px solid #ccc;
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
color: #333;
|
|
78
|
+
border-radius: 4px;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
&:hover, &:focus {
|
|
81
|
+
background-color: #e0e0e0;
|
|
82
|
+
}
|
|
83
|
+
&.active {
|
|
84
|
+
background-color: #aaa;
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
@@ -5,7 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TextFieldContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const TextFieldContainer = exports.TextFieldContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins";
|
|
11
|
+
display: flex;
|
|
12
|
+
width: ${props => props.width};
|
|
13
|
+
text-align: left;
|
|
14
|
+
position: relative;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
justify-content: flex-start;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
`;
|
|
@@ -5,32 +5,218 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ViewCreativeTextField = exports.ViewCreativeListBoxContainer = exports.ViewCreativeContainer = exports.ViewCreativeButtonAndListBoxContainer = exports.SubLineContainer = exports.RetailerIconContainer = exports.Retailer = exports.PeriodsContainer = exports.PeriodValue = exports.PeriodLabel = exports.PanelContainer = exports.ObjectivesTitle = exports.ObjectivesShowMore = exports.ObjectivesDescription = exports.ObjectiesContainer = exports.ObjectiesAndPeriodsContainer = exports.MainContainer = exports.FilterValuesContainer = exports.FilterValue = exports.FieldsDelimiter = exports.EventNameViewCreativeSubContainer = exports.EventNameAndViewCreativeContainer = exports.EventName = exports.DraftTag = exports.DownloadButtonContainer = exports.BottonsContainer = 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
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
font-family: "Poppins", sans-serif;
|
|
13
|
+
font-size: 1rem;
|
|
14
|
+
color: ${props => props.textcolor ? props.textcolor : '#000'};
|
|
15
|
+
width: ${props => props.width};
|
|
16
|
+
height: ${props => props.height};
|
|
17
|
+
border-radius: 12px;
|
|
18
|
+
`;
|
|
19
|
+
const PanelContainer = exports.PanelContainer = _styledComponents.default.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
align-content: center;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-around;
|
|
25
|
+
border-radius: 12px;
|
|
26
|
+
background: white;
|
|
27
|
+
padding: 20px;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
white-space: pre-wrap;
|
|
30
|
+
width: 100%;
|
|
31
|
+
@media (max-width: 1536px) {
|
|
32
|
+
padding: 13px 16px;
|
|
33
|
+
}
|
|
34
|
+
@media (max-width: 1366px) {
|
|
35
|
+
padding: 12px 16px;
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
const EventNameAndViewCreativeContainer = exports.EventNameAndViewCreativeContainer = _styledComponents.default.div`
|
|
39
|
+
display: flex;
|
|
40
|
+
align-content: center;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
width: 100%;
|
|
44
|
+
`;
|
|
45
|
+
const EventNameViewCreativeSubContainer = exports.EventNameViewCreativeSubContainer = _styledComponents.default.div`
|
|
46
|
+
display: flex;
|
|
47
|
+
position: relative;
|
|
48
|
+
align-content: center;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 20px;
|
|
51
|
+
`;
|
|
52
|
+
const DraftTag = exports.DraftTag = _styledComponents.default.div`
|
|
53
|
+
color: #E41111;
|
|
54
|
+
border: 2px solid #E41111;
|
|
55
|
+
font-size: 20px;
|
|
56
|
+
padding: 6px 18px;
|
|
57
|
+
`;
|
|
58
|
+
const EventName = exports.EventName = _styledComponents.default.h4`
|
|
59
|
+
line-height: 19px;
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
margin: 0;
|
|
63
|
+
@media (max-width: 1536px) {
|
|
64
|
+
font-size: 16px;
|
|
65
|
+
}
|
|
66
|
+
@media (max-width: 1366px) {
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
70
|
+
const ViewCreativeContainer = exports.ViewCreativeContainer = _styledComponents.default.div`
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
border-radius: 12px;
|
|
75
|
+
border: 1px solid #ccc;
|
|
76
|
+
margin-left: 10px;
|
|
77
|
+
padding: 2px 10px;
|
|
78
|
+
color: ${props => props.disabled ? '#B1B1B1' : '#212121'};
|
|
79
|
+
&:hover {
|
|
80
|
+
cursor: ${props => !props.disabled ? 'pointer' : 'default'};
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
const ViewCreativeTextField = exports.ViewCreativeTextField = _styledComponents.default.h4`
|
|
84
|
+
display: flex;
|
|
85
|
+
line-height: 19px;
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
margin: 3px 10px;
|
|
89
|
+
@media (max-width: 1536px) {
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
}
|
|
92
|
+
@media (max-width: 1366px) {
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
const ViewCreativeButtonAndListBoxContainer = exports.ViewCreativeButtonAndListBoxContainer = _styledComponents.default.div`
|
|
97
|
+
position: relative;
|
|
98
|
+
overflow: visible;
|
|
99
|
+
font-size: 18px;
|
|
100
|
+
@media (max-width: 1536px) {
|
|
101
|
+
font-size: 14px;
|
|
102
|
+
}
|
|
103
|
+
@media (max-width: 1366px) {
|
|
104
|
+
font-size: 12px;
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
const ViewCreativeListBoxContainer = exports.ViewCreativeListBoxContainer = _styledComponents.default.div`
|
|
108
|
+
display: flex;
|
|
109
|
+
position: absolute;
|
|
110
|
+
left: ${props => props.left};
|
|
111
|
+
top: ${props => props.top};
|
|
112
|
+
z-index:1000;
|
|
113
|
+
`;
|
|
114
|
+
const FilterValuesContainer = exports.FilterValuesContainer = _styledComponents.default.div`
|
|
115
|
+
display: flex;
|
|
116
|
+
align-content: center;
|
|
117
|
+
align-items: center;
|
|
118
|
+
width: 100%;
|
|
119
|
+
margin: 0.5rem 0 0 0;
|
|
120
|
+
`;
|
|
121
|
+
const FilterValue = exports.FilterValue = _styledComponents.default.p`
|
|
122
|
+
color: #212121;
|
|
123
|
+
margin: 0;
|
|
124
|
+
font-size: 14px;
|
|
125
|
+
font-weight: 400;
|
|
126
|
+
@media (max-width: 1536px) {
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
}
|
|
129
|
+
@media (max-width: 1366px) {
|
|
130
|
+
font-size: 12px;
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
const FieldsDelimiter = exports.FieldsDelimiter = _styledComponents.default.p`
|
|
134
|
+
color: #ccc;
|
|
135
|
+
margin: 0;
|
|
136
|
+
`;
|
|
137
|
+
const Retailer = exports.Retailer = _styledComponents.default.div`
|
|
138
|
+
color: #1b30aa;
|
|
139
|
+
margin: 0;
|
|
140
|
+
margin-inline-end: 5px;
|
|
141
|
+
`;
|
|
142
|
+
const RetailerIconContainer = exports.RetailerIconContainer = _styledComponents.default.div`
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
`;
|
|
146
|
+
const ObjectiesContainer = exports.ObjectiesContainer = _styledComponents.default.div`
|
|
147
|
+
display: flex;
|
|
148
|
+
align-content: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: space-between;
|
|
151
|
+
width: ${props => !props.showPeriodIcon ? '100%' : '70%'};
|
|
152
|
+
`;
|
|
153
|
+
const ObjectiesAndPeriodsContainer = exports.ObjectiesAndPeriodsContainer = _styledComponents.default.div`
|
|
154
|
+
display: flex;
|
|
155
|
+
width: 100%;
|
|
156
|
+
margin: 0.5rem 0 0 0;
|
|
157
|
+
`;
|
|
158
|
+
const ObjectivesTitle = exports.ObjectivesTitle = _styledComponents.default.strong`
|
|
159
|
+
font-weight: 500;
|
|
160
|
+
`;
|
|
161
|
+
const ObjectivesDescription = exports.ObjectivesDescription = _styledComponents.default.p`
|
|
162
|
+
line-height: 19px;
|
|
163
|
+
font-size: 14px;
|
|
164
|
+
font-weight: 400;
|
|
165
|
+
@media (max-width: 1536px) {
|
|
166
|
+
font-size: 14px;
|
|
167
|
+
}
|
|
168
|
+
@media (max-width: 1366px) {
|
|
169
|
+
font-size: 12px;
|
|
170
|
+
}
|
|
171
|
+
margin: 0;
|
|
172
|
+
`;
|
|
173
|
+
const ObjectivesShowMore = exports.ObjectivesShowMore = _styledComponents.default.a`
|
|
174
|
+
color: ${props => props.disabled ? '#B1B1B1' : '#1b30aa'};
|
|
175
|
+
&:hover {
|
|
176
|
+
cursor: ${props => !props.disabled ? 'pointer' : 'default'};
|
|
177
|
+
}
|
|
178
|
+
`;
|
|
179
|
+
const BottonsContainer = exports.BottonsContainer = _styledComponents.default.div`
|
|
180
|
+
align-items: center;
|
|
181
|
+
justify-content: flex-end;
|
|
182
|
+
min-height: 1.5rem;
|
|
183
|
+
`;
|
|
184
|
+
const DownloadButtonContainer = exports.DownloadButtonContainer = _styledComponents.default.div``;
|
|
185
|
+
const PeriodsContainer = exports.PeriodsContainer = _styledComponents.default.div`
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-wrap: wrap;
|
|
188
|
+
align-content: flex-start;
|
|
189
|
+
justify-content: flex-start;
|
|
190
|
+
white-space: pre-wrap;
|
|
191
|
+
margin-left: auto;
|
|
192
|
+
font-size: 14px;
|
|
193
|
+
@media (max-width: 1536px) {
|
|
194
|
+
font-size: 12px;
|
|
195
|
+
}
|
|
196
|
+
`;
|
|
197
|
+
const SubLineContainer = exports.SubLineContainer = _styledComponents.default.div`
|
|
198
|
+
display: flex;
|
|
199
|
+
width: 100%;
|
|
200
|
+
`;
|
|
201
|
+
const PeriodLabel = exports.PeriodLabel = _styledComponents.default.strong`
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
font-weight: 500;
|
|
204
|
+
@media (max-width: 1536px) {
|
|
205
|
+
font-size: 14px;
|
|
206
|
+
}
|
|
207
|
+
@media (max-width: 1366px) {
|
|
208
|
+
font-size: 12px;
|
|
209
|
+
}
|
|
210
|
+
`;
|
|
211
|
+
const PeriodValue = exports.PeriodValue = _styledComponents.default.p`
|
|
212
|
+
line-height: 19px;
|
|
213
|
+
font-size: 14px;
|
|
214
|
+
font-weight: 400;
|
|
215
|
+
margin: 0 0 0 10px;
|
|
216
|
+
@media (max-width: 1536px) {
|
|
217
|
+
font-size: 14px;
|
|
218
|
+
}
|
|
219
|
+
@media (max-width: 1366px) {
|
|
220
|
+
font-size: 12px;
|
|
221
|
+
}
|
|
222
|
+
`;
|
|
@@ -25,7 +25,7 @@ const Tooltip = props => {
|
|
|
25
25
|
onMouseEnter: showTip,
|
|
26
26
|
onMouseLeave: hideTip
|
|
27
27
|
}, props.children, active && /*#__PURE__*/_react.default.createElement(_Tooltip.TooltipTip, {
|
|
28
|
-
className:
|
|
28
|
+
className: `controls ${props.direction || 'top'}`
|
|
29
29
|
}, props.content)));
|
|
30
30
|
};
|
|
31
31
|
var _default = exports.default = Tooltip;
|
|
@@ -5,14 +5,99 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TooltipWrapper = exports.TooltipTip = exports.TooltipContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
11
9
|
/* Custom properties */
|
|
12
|
-
const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div
|
|
10
|
+
const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div`
|
|
11
|
+
--tooltip-text-color: black;
|
|
12
|
+
--tooltip-background-color: white;
|
|
13
|
+
--tooltip-margin: 40px;
|
|
14
|
+
--tooltip-arrow-size: 10px;
|
|
15
|
+
`;
|
|
13
16
|
|
|
14
17
|
/* Wrapping */
|
|
15
|
-
const TooltipWrapper = exports.TooltipWrapper = _styledComponents.default.div
|
|
18
|
+
const TooltipWrapper = exports.TooltipWrapper = _styledComponents.default.div`
|
|
19
|
+
display: inline-block;
|
|
20
|
+
position: relative;
|
|
21
|
+
`;
|
|
16
22
|
|
|
17
23
|
/* Absolute positioning */
|
|
18
|
-
const TooltipTip = exports.TooltipTip = _styledComponents.default.div
|
|
24
|
+
const TooltipTip = exports.TooltipTip = _styledComponents.default.div`
|
|
25
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
26
|
+
position: absolute;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
left: 50%;
|
|
29
|
+
transform: translateX(-50%);
|
|
30
|
+
padding: 4px 6px;
|
|
31
|
+
color: var(--tooltip-text-color);
|
|
32
|
+
background: var(--tooltip-background-color);
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
font-family: sans-serif;
|
|
35
|
+
line-height: 1;
|
|
36
|
+
z-index: 100;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
|
|
39
|
+
/* CSS border triangles */
|
|
40
|
+
&.controls::before {
|
|
41
|
+
content: " ";
|
|
42
|
+
left: 50%;
|
|
43
|
+
border: solid transparent;
|
|
44
|
+
height: 0;
|
|
45
|
+
width: 0;
|
|
46
|
+
position: absolute;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
border-width: var(--tooltip-arrow-size);
|
|
49
|
+
margin-left: calc(var(--tooltip-arrow-size) * -1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Absolute positioning */
|
|
53
|
+
&.controls.top {
|
|
54
|
+
top: calc(var(--tooltip-margin) * -1.8 );
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* CSS border triangles */
|
|
58
|
+
&.controls.top::before {
|
|
59
|
+
top: 100%;
|
|
60
|
+
border-top-color: var(--tooltip-background-color);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Absolute positioning */
|
|
64
|
+
&.controls.right {
|
|
65
|
+
left: calc(70% + var(--tooltip-margin));
|
|
66
|
+
top: 50%;
|
|
67
|
+
transform: translateX(0) translateY(-50%);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* CSS border triangles */
|
|
71
|
+
&.controls.right::before {
|
|
72
|
+
left: calc(var(--tooltip-arrow-size) * -1);
|
|
73
|
+
top: 50%;
|
|
74
|
+
transform: translateX(0) translateY(-50%);
|
|
75
|
+
border-right-color: var(--tooltip-background-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Absolute positioning */
|
|
79
|
+
&.controls.bottom {
|
|
80
|
+
bottom: calc(var(--tooltip-margin) * -1);
|
|
81
|
+
}
|
|
82
|
+
/* CSS border triangles */
|
|
83
|
+
&.controls.bottom::before {
|
|
84
|
+
bottom: 100%;
|
|
85
|
+
border-bottom-color: var(--tooltip-background-color);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Absolute positioning */
|
|
89
|
+
&.controls.left {
|
|
90
|
+
left: auto;
|
|
91
|
+
right: calc(70% + var(--tooltip-margin));
|
|
92
|
+
top: 50%;
|
|
93
|
+
transform: translateX(0) translateY(-50%);
|
|
94
|
+
}
|
|
95
|
+
/* CSS border triangles */
|
|
96
|
+
&.controls.left::before {
|
|
97
|
+
left: auto;
|
|
98
|
+
right: calc(var(--tooltip-arrow-size) * -2);
|
|
99
|
+
top: 50%;
|
|
100
|
+
transform: translateX(0) translateY(-50%);
|
|
101
|
+
border-left-color: var(--tooltip-background-color);
|
|
102
|
+
}
|
|
103
|
+
`;
|