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,23 +5,211 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TextBeforeAndAfterValue = exports.RowTitle = exports.OutBanner = exports.OneRowContainer = exports.OneFieldsContainer = exports.MainContainer = exports.InfoTextLabel = exports.InfoTextContainer = exports.IconContainer = exports.FormattedValue = exports.FieldsContainer = exports.FieldTitleAndValueSubContainer = exports.FieldTitle = exports.ColumnLineSeporatorContainer = exports.ColumnLineSeporator = exports.AllRowsContainer = 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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const
|
|
9
|
+
const scrollableStyles = `
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar {
|
|
13
|
+
width: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&::-webkit-scrollbar-track {
|
|
17
|
+
background: #E8E8E8;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::-webkit-scrollbar-thumb {
|
|
22
|
+
background: #D0D0D0;
|
|
23
|
+
border-radius: 5px;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
position: relative;
|
|
30
|
+
font-family: "Poppins", sans-serif;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
border-radius: 12px;
|
|
34
|
+
padding: 10px;
|
|
35
|
+
width: ${props => props.width};
|
|
36
|
+
height: ${props => props.height};
|
|
37
|
+
overflow: auto;
|
|
38
|
+
${scrollableStyles}
|
|
39
|
+
`;
|
|
40
|
+
const RowTitle = exports.RowTitle = _styledComponents.default.h4`
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
font-size: 18px;
|
|
45
|
+
margin: 5px 5px 5px 0;
|
|
46
|
+
@media (max-width: 1536px) {
|
|
47
|
+
font-size: 15px;
|
|
48
|
+
}
|
|
49
|
+
@media (max-width: 1366px) {
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
const AllRowsContainer = exports.AllRowsContainer = _styledComponents.default.div`
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
align-items: flex-start;
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
`;
|
|
61
|
+
const OneRowContainer = exports.OneRowContainer = _styledComponents.default.div`
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
`;
|
|
67
|
+
const ColumnLineSeporatorContainer = exports.ColumnLineSeporatorContainer = _styledComponents.default.div`
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
background-color: #b1b1b1;
|
|
71
|
+
align-items: center;
|
|
72
|
+
height: 1px;
|
|
73
|
+
width: 100%;
|
|
74
|
+
&.ColumnLineSeporatorContainer_vertical {
|
|
75
|
+
margin: 0 30px;
|
|
76
|
+
height: 100%;
|
|
77
|
+
width: 1px;
|
|
78
|
+
}
|
|
79
|
+
&.ColumnLineSeporatorContainer_horizontal {
|
|
80
|
+
margin: 30px 0;
|
|
81
|
+
min-height: 1px;
|
|
82
|
+
height: 1px;
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
const ColumnLineSeporator = exports.ColumnLineSeporator = _styledComponents.default.div`
|
|
87
|
+
min-width: 0.5px;
|
|
88
|
+
width: 0.5px;
|
|
89
|
+
`;
|
|
90
|
+
const FieldsContainer = exports.FieldsContainer = _styledComponents.default.div`
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: row;
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
height: 100%;
|
|
96
|
+
padding: 30px 0px;
|
|
97
|
+
`;
|
|
98
|
+
const OneFieldsContainer = exports.OneFieldsContainer = _styledComponents.default.div`
|
|
99
|
+
display: flex;
|
|
100
|
+
padding: 4px;
|
|
101
|
+
gap: 10px;
|
|
102
|
+
width: 100%;
|
|
103
|
+
justify-content: flex-start;
|
|
104
|
+
// padding: ${props => props.padding}; //0 0 0 40px;
|
|
105
|
+
`;
|
|
106
|
+
const FieldTitle = exports.FieldTitle = _styledComponents.default.h4`
|
|
107
|
+
font-size: 18px;
|
|
108
|
+
font-weight: 400;
|
|
109
|
+
margin: 0;
|
|
110
|
+
@media (max-width: 1536px) {
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
}
|
|
113
|
+
@media (max-width: 1366px) {
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
118
|
+
font-weight: 400;
|
|
119
|
+
font-size: 40px;
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: baseline;
|
|
122
|
+
min-height: 40px;
|
|
123
|
+
gap: 2px;
|
|
124
|
+
@media (max-width: 1536px) {
|
|
125
|
+
font-size: 24px;
|
|
126
|
+
}
|
|
127
|
+
@media (max-width: 1366px) {
|
|
128
|
+
font-size: 20px;
|
|
129
|
+
}
|
|
130
|
+
`;
|
|
131
|
+
const TextBeforeAndAfterValue = exports.TextBeforeAndAfterValue = _styledComponents.default.span`
|
|
132
|
+
font-weight: 400;
|
|
133
|
+
font-size: 16px;
|
|
134
|
+
@media (max-width: 1536px) {
|
|
135
|
+
font-size: 14px;
|
|
136
|
+
}
|
|
137
|
+
@media (max-width: 1366px) {
|
|
138
|
+
font-size: 11px;
|
|
139
|
+
}
|
|
140
|
+
`;
|
|
141
|
+
const FieldTitleAndValueSubContainer = exports.FieldTitleAndValueSubContainer = _styledComponents.default.div`
|
|
142
|
+
display: flex;
|
|
143
|
+
justify-content: space-around;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
flex-wrap: wrap;
|
|
146
|
+
width: 100%;
|
|
147
|
+
`;
|
|
148
|
+
const InfoTextContainer = exports.InfoTextContainer = _styledComponents.default.div`
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: row;
|
|
151
|
+
width: 100%;
|
|
152
|
+
height: 100%;
|
|
153
|
+
overflow:auto;
|
|
154
|
+
`;
|
|
155
|
+
const IconContainer = exports.IconContainer = _styledComponents.default.div`
|
|
156
|
+
display: flex;
|
|
157
|
+
padding: 5px 10px 0 0;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
`;
|
|
160
|
+
const InfoTextLabel = exports.InfoTextLabel = _styledComponents.default.div`
|
|
161
|
+
color: black;
|
|
162
|
+
font-size: 18px;
|
|
163
|
+
line-height: 24px;
|
|
164
|
+
font-weight: 400;
|
|
165
|
+
width: 100%;
|
|
166
|
+
overflow: auto;
|
|
167
|
+
${scrollableStyles}
|
|
168
|
+
strong {
|
|
169
|
+
font-weight: 500;
|
|
170
|
+
color: #212121;
|
|
171
|
+
@media (max-width: 1536px) {
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
}
|
|
174
|
+
@media (max-width: 1366px) {
|
|
175
|
+
font-size: 12px;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
p1 {
|
|
179
|
+
font-weight: 400;
|
|
180
|
+
color: #726F6F;
|
|
181
|
+
@media (max-width: 1536px) {
|
|
182
|
+
font-size: 14px;
|
|
183
|
+
}
|
|
184
|
+
@media (max-width: 1366px) {
|
|
185
|
+
font-size: 12px;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
`;
|
|
189
|
+
const OutBanner = exports.OutBanner = _styledComponents.default.div`
|
|
190
|
+
display: flex;
|
|
191
|
+
gap: 8px;
|
|
192
|
+
align-items: center;
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
font-weight: 400;
|
|
195
|
+
color: ${props => props.textColor};
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
@media (max-width: 1536px) {
|
|
198
|
+
font-size: 13px;
|
|
199
|
+
}
|
|
200
|
+
@media (max-width: 1366px) {
|
|
201
|
+
font-size: 12px;
|
|
202
|
+
}
|
|
203
|
+
> svg {
|
|
204
|
+
width: 14px;
|
|
205
|
+
height: 14px;
|
|
206
|
+
@media (max-width: 1536px) {
|
|
207
|
+
width: 13px;
|
|
208
|
+
height: 13px;
|
|
209
|
+
}
|
|
210
|
+
@media (max-width: 1366px) {
|
|
211
|
+
width: 12px;
|
|
212
|
+
height: 12px;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
`;
|
|
@@ -1,17 +1,65 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.SubmitButton = exports.ModalOverlay = exports.ModalContent = exports.CloseButton = void 0;
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
const fadeIn = (0, _styledComponents.keyframes)`
|
|
12
|
+
from {
|
|
13
|
+
opacity: 0;
|
|
14
|
+
}
|
|
15
|
+
to {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
const ModalOverlay = exports.ModalOverlay = _styledComponents.default.div`
|
|
20
|
+
position: fixed;
|
|
21
|
+
top: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
z-index:999999;
|
|
26
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
animation: ${fadeIn} 0.3s ease-in-out;
|
|
31
|
+
`;
|
|
32
|
+
const ModalContent = exports.ModalContent = _styledComponents.default.div`
|
|
33
|
+
background-color: #fff;
|
|
34
|
+
overflow: scroll;
|
|
35
|
+
padding: 20px;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
width: 80%;
|
|
38
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
39
|
+
animation: ${fadeIn} 0.5s ease-in-out;
|
|
40
|
+
`;
|
|
41
|
+
const CloseButton = exports.CloseButton = _styledComponents.default.button`
|
|
42
|
+
margin-top: 10px;
|
|
43
|
+
padding: 5px 15px;
|
|
44
|
+
border: none;
|
|
45
|
+
background-color: #333;
|
|
46
|
+
color: #fff;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: #555;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
const SubmitButton = exports.SubmitButton = _styledComponents.default.input`
|
|
54
|
+
margin-top: 10px;
|
|
55
|
+
margin-right: 10px;
|
|
56
|
+
padding: 5px 15px;
|
|
57
|
+
border: none;
|
|
58
|
+
background-color: #333;
|
|
59
|
+
color: #fff;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
border-radius: 4px;
|
|
62
|
+
&:hover {
|
|
63
|
+
background-color: #555;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
@@ -151,14 +151,14 @@ const ModalTotalBenchmark = _ref => {
|
|
|
151
151
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
152
152
|
key: item.id,
|
|
153
153
|
control: control,
|
|
154
|
-
name:
|
|
154
|
+
name: `${item.id}Key`,
|
|
155
155
|
render: _ref4 => {
|
|
156
156
|
let {
|
|
157
157
|
field
|
|
158
158
|
} = _ref4;
|
|
159
159
|
return /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, field, {
|
|
160
|
-
label:
|
|
161
|
-
text:
|
|
160
|
+
label: `${item.label}Key`,
|
|
161
|
+
text: `${item.label}Key`,
|
|
162
162
|
allowedInput: "all",
|
|
163
163
|
labelColor: "#1B30AA",
|
|
164
164
|
width: "300px",
|
|
@@ -172,14 +172,14 @@ const ModalTotalBenchmark = _ref => {
|
|
|
172
172
|
}), /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
173
173
|
key: item.id,
|
|
174
174
|
control: control,
|
|
175
|
-
name:
|
|
175
|
+
name: `${item.id}Args`,
|
|
176
176
|
render: _ref5 => {
|
|
177
177
|
let {
|
|
178
178
|
field
|
|
179
179
|
} = _ref5;
|
|
180
180
|
return /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, field, {
|
|
181
|
-
label:
|
|
182
|
-
text:
|
|
181
|
+
label: `${item.label}Args`,
|
|
182
|
+
text: `${item.label}Args`,
|
|
183
183
|
allowedInput: "all",
|
|
184
184
|
labelColor: "#1B30AA",
|
|
185
185
|
width: "300px",
|
|
@@ -70,8 +70,8 @@ const MonthPicker = _ref => {
|
|
|
70
70
|
setIsOpen(!isOpen);
|
|
71
71
|
setIsFocused(false);
|
|
72
72
|
setStartDateValue(startDate);
|
|
73
|
-
onChange(
|
|
74
|
-
setValue(
|
|
73
|
+
onChange(`${(0, _moment.default)(startDate).format('MMMM | YYYY')}`);
|
|
74
|
+
setValue(`${(0, _moment.default)(startDate).format('MMMM | YYYY')}`);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
const onChangeEvent = e => {
|
|
@@ -5,14 +5,99 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.StyledLabel = exports.StyledInput = exports.RequiredIndicator = exports.OptionsContainer = exports.MonthPickerContainer = exports.InputContainer = exports.ErrorLabel = exports.CalendarDiv = 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
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
const MonthPickerContainer = exports.MonthPickerContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
margin-bottom: 10px;
|
|
12
|
+
width: ${props => props.width || '100%'};
|
|
13
|
+
height: ${props => props.height || '60px'};
|
|
14
|
+
`;
|
|
15
|
+
const CalendarDiv = exports.CalendarDiv = _styledComponents.default.div`
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: 11px;
|
|
18
|
+
height: 11px;
|
|
19
|
+
top: ${props => parseInt(props.height, 10) / 2 || '20px'};
|
|
20
|
+
right: 25px;
|
|
21
|
+
`;
|
|
22
|
+
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
flex-wrap: nowrap;
|
|
26
|
+
justify-content: flex-start;
|
|
27
|
+
align-content: center;
|
|
28
|
+
white-space: pre-wrap;
|
|
29
|
+
align-items: center;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
36
|
+
font-family: "Poppins", sans-serif;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
border-radius: 12px;
|
|
40
|
+
outline: none;
|
|
41
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
|
|
45
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:focus {
|
|
49
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
53
|
+
padding: 20px;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
border-radius: ${props => props.borderRadius || '4px'};
|
|
56
|
+
border: none;
|
|
57
|
+
outline: none;
|
|
58
|
+
width: ${props => props.width || '90%'};
|
|
59
|
+
height: ${props => props.height || '60px'};
|
|
60
|
+
transition: border-color 0.3s ease;
|
|
61
|
+
color: var(--General-Grey, #B1B1B1);
|
|
62
|
+
font-family: Poppins;
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
font-style: normal;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
color: ${props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
|
|
68
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
69
|
+
`;
|
|
70
|
+
const StyledLabel = exports.StyledLabel = _styledComponents.default.label`
|
|
71
|
+
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
72
|
+
padding-inline-end: 5px;
|
|
73
|
+
padding-inline-start: 5px;
|
|
74
|
+
margin-right: 20px;
|
|
75
|
+
width: ${props => props.isFocused || props.hasValue ? 'auto' : '150px'};
|
|
76
|
+
color: ${props => props.disabled ? '#888' : (props.isFocused || props.hasValue ? props.borderColorFocus : '#757575') || '#333'};
|
|
77
|
+
background-color: white;
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: ${props => props.isFocused || props.hasValue ? '0px' : '50%'};
|
|
80
|
+
left: 15px;
|
|
81
|
+
transform: translateY(-50%);
|
|
82
|
+
transition: top 0.3s ease, font-size 0.3s ease;
|
|
83
|
+
display: flex;
|
|
84
|
+
font-family: Poppins;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
align-items: center;
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
`;
|
|
90
|
+
const RequiredIndicator = exports.RequiredIndicator = _styledComponents.default.span`
|
|
91
|
+
color: red;
|
|
92
|
+
margin-left: 5px;
|
|
93
|
+
`;
|
|
94
|
+
const ErrorLabel = exports.ErrorLabel = _styledComponents.default.div`
|
|
95
|
+
font-size: 12px;
|
|
96
|
+
color: red;
|
|
97
|
+
margin-top: 5px;
|
|
98
|
+
`;
|
|
99
|
+
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
100
|
+
display: block;
|
|
101
|
+
margin: 0;
|
|
102
|
+
padding-top: 8px;
|
|
103
|
+
`;
|
|
@@ -6,18 +6,96 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
13
11
|
// Styled components for the date picker
|
|
14
|
-
const DatePickerContainer = _styledComponents.default.div
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
const DatePickerContainer = _styledComponents.default.div`
|
|
13
|
+
position: relative;
|
|
14
|
+
`;
|
|
15
|
+
const DatePickerPopup = _styledComponents.default.div`
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: auto;
|
|
18
|
+
// margin: 5px;
|
|
19
|
+
height: 250px;
|
|
20
|
+
top: 100%;
|
|
21
|
+
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
|
|
22
|
+
left: 0;
|
|
23
|
+
background-color: #fff;
|
|
24
|
+
border: 1px solid #ccc;
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
padding: 10px;
|
|
27
|
+
z-index: 1000;
|
|
28
|
+
`;
|
|
29
|
+
const DatePickerHeader = _styledComponents.default.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
margin-bottom: 10px;
|
|
33
|
+
`;
|
|
34
|
+
const NavDiv = _styledComponents.default.div`
|
|
35
|
+
width: 80px;
|
|
36
|
+
height: 30px;
|
|
37
|
+
display: flex;
|
|
38
|
+
padding: 5px;
|
|
39
|
+
justify-content: space-around;
|
|
40
|
+
`;
|
|
41
|
+
const DatePickerSelect = _styledComponents.default.select`
|
|
42
|
+
padding: 4px;
|
|
43
|
+
border: none;
|
|
44
|
+
font-family: Poppins;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
|
|
50
|
+
&:focus {
|
|
51
|
+
border: none;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
const DatePickerCalendar = _styledComponents.default.div`
|
|
55
|
+
display: grid;
|
|
56
|
+
width: 220px;
|
|
57
|
+
height: 150px;
|
|
58
|
+
row-gap: 30px;
|
|
59
|
+
margin: 20px;
|
|
60
|
+
column-gap: 30px;
|
|
61
|
+
grid-template-columns: repeat(4, 1fr);
|
|
62
|
+
grid-template-rows: repeat(4, 1fr);
|
|
63
|
+
`;
|
|
64
|
+
const DateCell = _styledComponents.default.div`
|
|
65
|
+
width: 100%;
|
|
66
|
+
aspect-ratio: 1 / 1;
|
|
67
|
+
/* height: 32px; */
|
|
68
|
+
font-family: Poppins;
|
|
69
|
+
border-radius: 4px;
|
|
70
|
+
font-size: 12px;
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
transition: background-color 0.3s ease;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
background: #f4faf5;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.selected {
|
|
84
|
+
background-color: #229e38;
|
|
85
|
+
color: #fff;
|
|
86
|
+
}
|
|
87
|
+
&.startselected {
|
|
88
|
+
border: 1px solid #229e38;
|
|
89
|
+
}
|
|
90
|
+
&.inrange {
|
|
91
|
+
border-radius: 0px;
|
|
92
|
+
background-color: #effef2;
|
|
93
|
+
}
|
|
94
|
+
&.disable {
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
color: #ccc;
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
21
99
|
const years = [2022, 2023, 2024];
|
|
22
100
|
const MonthPopupPicker = _ref => {
|
|
23
101
|
let {
|
|
@@ -65,12 +143,12 @@ const MonthPopupPicker = _ref => {
|
|
|
65
143
|
setValue('');
|
|
66
144
|
}
|
|
67
145
|
}, years.map(year => /*#__PURE__*/_react.default.createElement("option", {
|
|
68
|
-
key:
|
|
69
|
-
value:
|
|
146
|
+
key: `${year}`,
|
|
147
|
+
value: `${year}`
|
|
70
148
|
}, year))))), /*#__PURE__*/_react.default.createElement(DatePickerCalendar, null, dates.map(date => {
|
|
71
|
-
const monthYear =
|
|
149
|
+
const monthYear = `${date.toLocaleString('default', {
|
|
72
150
|
month: 'short'
|
|
73
|
-
})
|
|
151
|
+
})} ${date.getFullYear()}`;
|
|
74
152
|
const isAvailableMonth = availableMonths.includes(monthYear);
|
|
75
153
|
const isDisabled = !isAvailableMonth || date.getMonth() === 0 && date.getFullYear() === 2022;
|
|
76
154
|
return /*#__PURE__*/_react.default.createElement(DateCell, {
|
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.CardsWrapper = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const CardsWrapper = exports.CardsWrapper = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
width: ${props => props.width};
|
|
12
|
+
height: ${props => props.height};
|
|
13
|
+
`;
|
|
@@ -5,9 +5,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.NoDataFoundTitle = exports.NoDataFoundText = exports.NoDataFoundContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const NoDataFoundContainer = exports.NoDataFoundContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
align-items: center;
|
|
16
|
+
`;
|
|
17
|
+
const NoDataFoundTitle = exports.NoDataFoundTitle = _styledComponents.default.h4`
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
font-size: 18px;
|
|
20
|
+
margin: 0;
|
|
21
|
+
margin-top: 20px;
|
|
22
|
+
padding-right: 14px;
|
|
23
|
+
@media (max-width: 1366px) {
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
const NoDataFoundText = exports.NoDataFoundText = _styledComponents.default.p`
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
margin: 0;
|
|
31
|
+
margin-top: 0.4rem;
|
|
32
|
+
text-align: center;
|
|
33
|
+
@media (max-width: 1536px) {
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
}
|
|
36
|
+
@media (max-width: 1366px) {
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
}
|
|
39
|
+
`;
|