sag_components 1.0.875 → 1.0.877
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile.style.js +40 -6
- package/dist/stories/components/AutocompleteField.style.js +47 -7
- package/dist/stories/components/BannerEventBox.style.js +66 -14
- package/dist/stories/components/BannerEventBoxList.js +2 -1
- package/dist/stories/components/BannerEventBoxList.style.js +171 -14
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
- package/dist/stories/components/BannersDropdown.style.js +91 -10
- package/dist/stories/components/BarChart.js +2 -2
- package/dist/stories/components/BarChart.style.js +52 -10
- package/dist/stories/components/BarChartTwoRows.js +2 -2
- package/dist/stories/components/BarChartTwoRows.style.js +53 -10
- package/dist/stories/components/BarChartsByWeeks.js +7 -3
- package/dist/stories/components/BarChartsByWeeks.style.js +88 -13
- package/dist/stories/components/Benchmark.style.js +53 -7
- package/dist/stories/components/Button.js +4 -4
- package/dist/stories/components/Button.style.js +82 -7
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +40 -7
- package/dist/stories/components/CampaignTool/Card.style.js +58 -10
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +6 -3
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +14 -4
- package/dist/stories/components/CampaignTool/Popup.style.js +114 -16
- package/dist/stories/components/CampaignTool/PopupContent.style.js +64 -11
- package/dist/stories/components/CampaignTool/Table.js +2 -2
- package/dist/stories/components/CampaignTool/Table.style.js +79 -9
- package/dist/stories/components/CheckBox.style.js +28 -6
- package/dist/stories/components/CheckBoxButton.style.js +31 -6
- package/dist/stories/components/CodeEditor.style.js +4 -3
- package/dist/stories/components/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData.style.js +119 -13
- package/dist/stories/components/CollapseHeader.style.js +192 -27
- package/dist/stories/components/CollapseMenuItem.style.js +53 -9
- package/dist/stories/components/Datepicker.style.js +9 -3
- package/dist/stories/components/DownloadProgress.style.js +43 -6
- package/dist/stories/components/Dropdown.style.js +9 -3
- package/dist/stories/components/DropdownMulti.js +1 -1
- package/dist/stories/components/DropdownMulti.style.js +9 -3
- package/dist/stories/components/DropdownMultiNew.js +1 -1
- package/dist/stories/components/DropdownMultiNew.style.js +193 -16
- package/dist/stories/components/DropdownNew.style.js +14 -3
- package/dist/stories/components/DropdownSingleNew.style.js +162 -14
- package/dist/stories/components/EventDetailsCard.style.js +86 -10
- package/dist/stories/components/EventInfo.js +92 -0
- package/dist/stories/components/EventInfo.style.js +20 -0
- package/dist/stories/components/EventList.style.js +30 -6
- package/dist/stories/components/EventListItem.style.js +39 -6
- package/dist/stories/components/FilterButton.js +47 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/FilterContainer.style.js +22 -5
- package/dist/stories/components/FilterPanel.js +17 -17
- package/dist/stories/components/FilterPanel.style.js +81 -13
- package/dist/stories/components/FormattedValue.style.js +83 -10
- package/dist/stories/components/IconButton.style.js +56 -7
- package/dist/stories/components/Input.style.js +123 -9
- package/dist/stories/components/InputOld.style.js +62 -8
- package/dist/stories/components/KpiFilter.style.js +124 -18
- package/dist/stories/components/LinkButton.style.js +45 -6
- package/dist/stories/components/LinnerDataBox.js +1 -1
- package/dist/stories/components/LinnerDataBox.style.js +60 -14
- package/dist/stories/components/ListBox.style.js +40 -6
- package/dist/stories/components/MarketShareDescription.style.js +207 -19
- package/dist/stories/components/Modal.style.js +56 -8
- package/dist/stories/components/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker.style.js +96 -10
- package/dist/stories/components/MonthPopupPicker.js +92 -13
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/NoDataFoundMessage.style.js +31 -5
- package/dist/stories/components/OneColumnContainer.style.js +99 -12
- package/dist/stories/components/PerformanceAnalytics.js +16 -9
- package/dist/stories/components/PerformanceAnalytics.style.js +136 -17
- package/dist/stories/components/PerformanceAnalyticsLegend.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +55 -8
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +12 -5
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +108 -15
- package/dist/stories/components/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +81 -12
- package/dist/stories/components/PopupCharts.style.js +100 -15
- package/dist/stories/components/ProductsVariety.style.js +78 -12
- package/dist/stories/components/ProgressBar.style.js +15 -4
- package/dist/stories/components/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker.style.js +95 -10
- package/dist/stories/components/QuarterPopupPicker.js +86 -12
- package/dist/stories/components/QuickFilter.style.js +13 -3
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +182 -16
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +127 -15
- package/dist/stories/components/RangeDatePicker.js +96 -12
- package/dist/stories/components/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker.style.js +100 -10
- package/dist/stories/components/ReportTable.style.js +123 -14
- package/dist/stories/components/SagButton.style.js +39 -5
- package/dist/stories/components/SagIconButton.style.js +22 -4
- package/dist/stories/components/SagInput.style.js +33 -5
- package/dist/stories/components/SalesAndROI.style.js +103 -11
- package/dist/stories/components/SearchInput.style.js +29 -4
- package/dist/stories/components/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton.style.js +90 -9
- package/dist/stories/components/Select.style.js +93 -9
- package/dist/stories/components/TabMenu.js +19 -7
- package/dist/stories/components/TabMenu.style.js +105 -14
- package/dist/stories/components/TextField.style.js +10 -3
- package/dist/stories/components/TitleDescription.style.js +214 -28
- package/dist/stories/components/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip.style.js +90 -5
- package/dist/stories/components/TopToggleList.style.js +43 -8
- package/dist/stories/components/TotalBenchmark.style.js +71 -11
- package/dist/stories/components/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +163 -22
- package/dist/stories/components/TotalBenchmarkArrows.style.js +100 -16
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +69 -12
- package/dist/stories/components/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart.style.js +170 -22
- package/dist/stories/components/TotalHorizontalCharts.js +2 -2
- package/dist/stories/components/TotalHorizontalCharts.style.js +113 -12
- package/dist/stories/components/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip.style.js +97 -5
- package/dist/stories/components/TwoBarCharts.js +2 -2
- package/dist/stories/components/TwoBarCharts.style.js +52 -10
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/dist/stories/utils/IconsHandler.style.js +8 -3
- package/package.json +1 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.ExamplePopupContent = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _PopupContent = _interopRequireDefault(require("../components/CampaignTool/PopupContent"));
|
|
10
|
+
const FieldsDataRow1 = [{
|
|
11
|
+
name: "FundationSource",
|
|
12
|
+
label: "Fundation Source",
|
|
13
|
+
disabled: false,
|
|
14
|
+
required: false,
|
|
15
|
+
inputType: "dropdown",
|
|
16
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
17
|
+
showInfo: true,
|
|
18
|
+
infoText: "This is one of the Popup content's fields",
|
|
19
|
+
placeHolder: "Select Source",
|
|
20
|
+
dropdownOptions: [{
|
|
21
|
+
value: 1,
|
|
22
|
+
label: "Source 1"
|
|
23
|
+
}, {
|
|
24
|
+
value: 2,
|
|
25
|
+
label: "Source 2"
|
|
26
|
+
}, {
|
|
27
|
+
value: 3,
|
|
28
|
+
label: "Source 3"
|
|
29
|
+
}],
|
|
30
|
+
dropdownDefaultValue: null
|
|
31
|
+
}, {
|
|
32
|
+
name: "Category",
|
|
33
|
+
label: "Category",
|
|
34
|
+
disabled: false,
|
|
35
|
+
required: false,
|
|
36
|
+
inputType: "dropdown",
|
|
37
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
38
|
+
showInfo: true,
|
|
39
|
+
infoText: "This is one of the Popup content's fields",
|
|
40
|
+
placeHolder: "Select Category",
|
|
41
|
+
dropdownOptions: [{
|
|
42
|
+
value: 1,
|
|
43
|
+
label: "Category 1"
|
|
44
|
+
}, {
|
|
45
|
+
value: 2,
|
|
46
|
+
label: "Category 2"
|
|
47
|
+
}, {
|
|
48
|
+
value: 3,
|
|
49
|
+
label: "Category 3"
|
|
50
|
+
}],
|
|
51
|
+
dropdownDefaultValue: null
|
|
52
|
+
}, {
|
|
53
|
+
name: "Supplier",
|
|
54
|
+
label: "Supplier",
|
|
55
|
+
disabled: false,
|
|
56
|
+
required: false,
|
|
57
|
+
inputType: "dropdown",
|
|
58
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
59
|
+
showInfo: true,
|
|
60
|
+
infoText: "This is one of the Popup content's fields",
|
|
61
|
+
placeHolder: "Select Supplier",
|
|
62
|
+
dropdownOptions: [{
|
|
63
|
+
value: 1,
|
|
64
|
+
label: "Supplier 1"
|
|
65
|
+
}, {
|
|
66
|
+
value: 2,
|
|
67
|
+
label: "Supplier 2"
|
|
68
|
+
}, {
|
|
69
|
+
value: 3,
|
|
70
|
+
label: "Supplier 3"
|
|
71
|
+
}],
|
|
72
|
+
dropdownDefaultValue: null
|
|
73
|
+
}, {
|
|
74
|
+
name: "ContactName",
|
|
75
|
+
label: "Contact Name",
|
|
76
|
+
disabled: false,
|
|
77
|
+
required: false,
|
|
78
|
+
inputType: "textbox",
|
|
79
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
80
|
+
showInfo: true,
|
|
81
|
+
infoText: "This is one of the Popup content's fields",
|
|
82
|
+
placeHolder: "Enter Contact Name",
|
|
83
|
+
dropdownOptions: null,
|
|
84
|
+
dropdownDefaultValue: null
|
|
85
|
+
}];
|
|
86
|
+
const FieldsDataRow2 = [{
|
|
87
|
+
name: "BrandName",
|
|
88
|
+
label: "Brand Name",
|
|
89
|
+
disabled: false,
|
|
90
|
+
required: false,
|
|
91
|
+
inputType: "dropdown",
|
|
92
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
93
|
+
showInfo: true,
|
|
94
|
+
infoText: "This is one of the Popup content's fields",
|
|
95
|
+
placeHolder: "Select Brand",
|
|
96
|
+
dropdownOptions: [{
|
|
97
|
+
value: 1,
|
|
98
|
+
label: "Brand 1"
|
|
99
|
+
}, {
|
|
100
|
+
value: 2,
|
|
101
|
+
label: "Brand 2"
|
|
102
|
+
}, {
|
|
103
|
+
value: 3,
|
|
104
|
+
label: "Brand 3"
|
|
105
|
+
}],
|
|
106
|
+
dropdownDefaultValue: null
|
|
107
|
+
}, {
|
|
108
|
+
name: "Budget",
|
|
109
|
+
label: "Budget",
|
|
110
|
+
disabled: false,
|
|
111
|
+
required: false,
|
|
112
|
+
inputType: "dropdown",
|
|
113
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
114
|
+
showInfo: true,
|
|
115
|
+
infoText: "This is one of the Popup content's fields",
|
|
116
|
+
placeHolder: "Select Budget",
|
|
117
|
+
dropdownOptions: [{
|
|
118
|
+
value: 1,
|
|
119
|
+
label: "Budget 1"
|
|
120
|
+
}, {
|
|
121
|
+
value: 2,
|
|
122
|
+
label: "Budget 2"
|
|
123
|
+
}, {
|
|
124
|
+
value: 3,
|
|
125
|
+
label: "Budget 3"
|
|
126
|
+
}],
|
|
127
|
+
dropdownDefaultValue: {
|
|
128
|
+
value: 1,
|
|
129
|
+
label: "Budget 1"
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
name: "CategoryManager",
|
|
133
|
+
label: "Category Manager",
|
|
134
|
+
disabled: false,
|
|
135
|
+
required: false,
|
|
136
|
+
inputType: "dropdown",
|
|
137
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
138
|
+
showInfo: true,
|
|
139
|
+
infoText: "This is one of the Popup content's fields",
|
|
140
|
+
placeHolder: "Select Category Manager",
|
|
141
|
+
dropdownOptions: [{
|
|
142
|
+
value: 1,
|
|
143
|
+
label: "Category Manager 1"
|
|
144
|
+
}, {
|
|
145
|
+
value: 2,
|
|
146
|
+
label: "Category Manager 2"
|
|
147
|
+
}, {
|
|
148
|
+
value: 3,
|
|
149
|
+
label: "Category Manager 3"
|
|
150
|
+
}],
|
|
151
|
+
dropdownDefaultValue: {
|
|
152
|
+
value: 3,
|
|
153
|
+
label: "Category Manager 3"
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
name: "ContactEmail",
|
|
157
|
+
label: "Contact Email",
|
|
158
|
+
disabled: false,
|
|
159
|
+
required: false,
|
|
160
|
+
inputType: "textbox",
|
|
161
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
162
|
+
showInfo: true,
|
|
163
|
+
infoText: "This is one of the Popup content's fields",
|
|
164
|
+
placeHolder: "Enter Contact Email",
|
|
165
|
+
dropdownOptions: null,
|
|
166
|
+
dropdownDefaultValue: null
|
|
167
|
+
}];
|
|
168
|
+
const FieldsDataRow3 = [{
|
|
169
|
+
name: "Broker",
|
|
170
|
+
label: "Broker",
|
|
171
|
+
disabled: false,
|
|
172
|
+
required: false,
|
|
173
|
+
inputType: "dropdown",
|
|
174
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
175
|
+
showInfo: true,
|
|
176
|
+
infoText: "This is one of the Popup content's fields",
|
|
177
|
+
placeHolder: "Select Broker",
|
|
178
|
+
dropdownOptions: [{
|
|
179
|
+
value: 1,
|
|
180
|
+
label: "Broker 1"
|
|
181
|
+
}, {
|
|
182
|
+
value: 2,
|
|
183
|
+
label: "Broker 2"
|
|
184
|
+
}, {
|
|
185
|
+
value: 3,
|
|
186
|
+
label: "Broker 3"
|
|
187
|
+
}],
|
|
188
|
+
dropdownDefaultValue: null
|
|
189
|
+
}, {
|
|
190
|
+
name: "SupplierOfferID",
|
|
191
|
+
label: "Supplier Offer ID",
|
|
192
|
+
disabled: false,
|
|
193
|
+
required: false,
|
|
194
|
+
inputType: "textbox",
|
|
195
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
196
|
+
showInfo: true,
|
|
197
|
+
infoText: "This is one of the Popup content's fields",
|
|
198
|
+
placeHolder: "Enter Supplier Offer ID",
|
|
199
|
+
dropdownOptions: null,
|
|
200
|
+
dropdownDefaultValue: null
|
|
201
|
+
}, {
|
|
202
|
+
name: "VendorID",
|
|
203
|
+
label: "Vendor ID",
|
|
204
|
+
disabled: false,
|
|
205
|
+
required: false,
|
|
206
|
+
inputType: "textbox",
|
|
207
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
208
|
+
showInfo: true,
|
|
209
|
+
infoText: "This is one of the Popup content's fields",
|
|
210
|
+
placeHolder: "Enter Vendor ID",
|
|
211
|
+
dropdownOptions: null,
|
|
212
|
+
dropdownDefaultValue: null
|
|
213
|
+
}, {
|
|
214
|
+
name: "ContactPhone",
|
|
215
|
+
label: "Contact Phone",
|
|
216
|
+
disabled: false,
|
|
217
|
+
required: true,
|
|
218
|
+
inputType: "textbox",
|
|
219
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
220
|
+
showInfo: true,
|
|
221
|
+
infoText: "This is one of the Popup content's fields",
|
|
222
|
+
placeHolder: "Enter Contact Phone",
|
|
223
|
+
dropdownOptions: null,
|
|
224
|
+
dropdownDefaultValue: null
|
|
225
|
+
}];
|
|
226
|
+
const RowsData1 = [{
|
|
227
|
+
fieldsArray: FieldsDataRow1
|
|
228
|
+
}, {
|
|
229
|
+
fieldsArray: FieldsDataRow2
|
|
230
|
+
}, {
|
|
231
|
+
fieldsArray: FieldsDataRow3
|
|
232
|
+
}];
|
|
233
|
+
var _default = exports.default = {
|
|
234
|
+
title: "Campaign Tool/PopupContent",
|
|
235
|
+
component: _PopupContent.default,
|
|
236
|
+
tags: ["autodocs"],
|
|
237
|
+
argTypes: {
|
|
238
|
+
FieldsData: {
|
|
239
|
+
name: "FieldsData",
|
|
240
|
+
control: {
|
|
241
|
+
type: "object"
|
|
242
|
+
},
|
|
243
|
+
description: " object: to fill kpi columns and buttons "
|
|
244
|
+
},
|
|
245
|
+
width: {
|
|
246
|
+
name: "width",
|
|
247
|
+
control: {
|
|
248
|
+
type: "text"
|
|
249
|
+
},
|
|
250
|
+
description: "width of the control (in px / %)"
|
|
251
|
+
},
|
|
252
|
+
height: {
|
|
253
|
+
name: "height",
|
|
254
|
+
control: {
|
|
255
|
+
type: "text"
|
|
256
|
+
},
|
|
257
|
+
description: "height of the control (in px / % )"
|
|
258
|
+
},
|
|
259
|
+
onClick: {
|
|
260
|
+
action: "onClick",
|
|
261
|
+
description: "onClick event - returns an object of check box {true/false} "
|
|
262
|
+
},
|
|
263
|
+
onChange: {
|
|
264
|
+
action: "onChange",
|
|
265
|
+
description: "onChange event "
|
|
266
|
+
},
|
|
267
|
+
borderColor: {
|
|
268
|
+
name: "borderColor",
|
|
269
|
+
description: "Sets the border color",
|
|
270
|
+
control: {
|
|
271
|
+
type: "color",
|
|
272
|
+
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"]
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_PopupContent.default, args);
|
|
278
|
+
const ExamplePopupContent = exports.ExamplePopupContent = Template.bind({});
|
|
279
|
+
ExamplePopupContent.args = {
|
|
280
|
+
rowsData: RowsData1,
|
|
281
|
+
borderColor: "#066768",
|
|
282
|
+
width: "100%",
|
|
283
|
+
height: "100%"
|
|
284
|
+
};
|
|
@@ -32,7 +32,7 @@ const AttachedFile = props => {
|
|
|
32
32
|
onRemoveFile(fileToRemove);
|
|
33
33
|
};
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement(_AttachedFile.AttachedFileContainer, null, selectedFiles.map(file => /*#__PURE__*/_react.default.createElement(_AttachedFile.UploadedFile, {
|
|
35
|
-
key:
|
|
35
|
+
key: `${file.name}_${file.lastModified}`
|
|
36
36
|
}, /*#__PURE__*/_react.default.createElement(_FileIcon.default, null), /*#__PURE__*/_react.default.createElement("span", null, file.name), /*#__PURE__*/_react.default.createElement(_AttachedFile.RemoveButton, {
|
|
37
37
|
onClick: () => handleRemoveFile(file)
|
|
38
38
|
}, /*#__PURE__*/_react.default.createElement(_CloseIcon.default, null)))), /*#__PURE__*/_react.default.createElement(_AttachedFile.InputLabel, {
|
|
@@ -5,10 +5,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.UploadedFile = exports.RemoveButton = exports.InputLabel = exports.AttachedFileContainer = 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 AttachedFileContainer = exports.AttachedFileContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: 'Poppins';
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
`;
|
|
14
|
+
const InputLabel = exports.InputLabel = _styledComponents.default.label`
|
|
15
|
+
display: flex;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
align-items: center;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
> span {
|
|
20
|
+
color: ${props => props.inputColor};
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
const UploadedFile = exports.UploadedFile = _styledComponents.default.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
align-items: center;
|
|
27
|
+
color: #A4A4A4;
|
|
28
|
+
max-width: 220px;
|
|
29
|
+
padding: 2px 8px;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
> span {
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
}
|
|
36
|
+
> svg {
|
|
37
|
+
min-width: 12px;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
const RemoveButton = exports.RemoveButton = _styledComponents.default.button`
|
|
41
|
+
border: none;
|
|
42
|
+
background: none;
|
|
43
|
+
padding: 0;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
margin-left: auto;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
`;
|
|
@@ -5,11 +5,51 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.AutocompleteOptions = exports.AutocompleteOption = exports.AutocompleteLabel = exports.AutocompleteInput = exports.AutocompleteContainer = 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 AutocompleteContainer = exports.AutocompleteContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
position: relative;
|
|
12
|
+
margin: 20px;
|
|
13
|
+
`;
|
|
14
|
+
const AutocompleteInput = exports.AutocompleteInput = _styledComponents.default.input`
|
|
15
|
+
width: 100%;
|
|
16
|
+
padding: 10px;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
border: 1px solid #ccc;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
|
|
21
|
+
&:focus + label {
|
|
22
|
+
top: -10px;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
color: #007bff;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
const AutocompleteLabel = exports.AutocompleteLabel = _styledComponents.default.label`
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 12px;
|
|
30
|
+
left: 10px;
|
|
31
|
+
transition: .2s ease;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
color: #555;
|
|
35
|
+
background-color: white;
|
|
36
|
+
`;
|
|
37
|
+
const AutocompleteOptions = exports.AutocompleteOptions = _styledComponents.default.div`
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 100%;
|
|
40
|
+
max-height: 150px;
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
border: 1px solid #ccc;
|
|
43
|
+
border-top: none;
|
|
44
|
+
border-bottom-left-radius: 4px;
|
|
45
|
+
border-bottom-right-radius: 4px;
|
|
46
|
+
background-color: #fff;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
`;
|
|
49
|
+
const AutocompleteOption = exports.AutocompleteOption = _styledComponents.default.div`
|
|
50
|
+
padding: 10px;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: #f0f0f0;
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
@@ -5,18 +5,70 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TitleWrapper = exports.Text = exports.Seperator = exports.MoreInfo = exports.MainContainer = exports.KeyBlock = exports.Key = exports.Headline = exports.DetailsWrapper = exports.Count = exports.CardTitle = exports.Block = 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
|
-
|
|
9
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
10
|
+
width: ${props => props.width};
|
|
11
|
+
height: ${props => props.height};
|
|
12
|
+
font-family: 'Poppins', sans-serif;
|
|
13
|
+
color: #212121;
|
|
14
|
+
background-color: white;
|
|
15
|
+
padding: 20px;
|
|
16
|
+
border-radius: 12px;
|
|
17
|
+
border: 1px solid #D0D0D0;
|
|
18
|
+
`;
|
|
19
|
+
const TitleWrapper = exports.TitleWrapper = _styledComponents.default.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin-bottom: 20px;
|
|
23
|
+
gap: 6px;
|
|
24
|
+
`;
|
|
25
|
+
const CardTitle = exports.CardTitle = _styledComponents.default.h5`
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
margin: 0;
|
|
29
|
+
`;
|
|
30
|
+
const Headline = exports.Headline = _styledComponents.default.h6`
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
margin: 0;
|
|
34
|
+
`;
|
|
35
|
+
const Block = exports.Block = _styledComponents.default.div`
|
|
36
|
+
margin-bottom: 12px;
|
|
37
|
+
`;
|
|
38
|
+
const Text = exports.Text = _styledComponents.default.p`
|
|
39
|
+
color: #8B8989;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
margin: 0;
|
|
43
|
+
`;
|
|
44
|
+
const MoreInfo = exports.MoreInfo = _styledComponents.default.span`
|
|
45
|
+
color: #229E38;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
text-decoration: underline;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
`;
|
|
51
|
+
const DetailsWrapper = exports.DetailsWrapper = _styledComponents.default.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
gap: 12px;
|
|
54
|
+
align-items: stretch;
|
|
55
|
+
margin-top: 12px;
|
|
56
|
+
`;
|
|
57
|
+
const KeyBlock = exports.KeyBlock = _styledComponents.default.div`
|
|
58
|
+
/* position: relative; */
|
|
59
|
+
`;
|
|
60
|
+
const Key = exports.Key = _styledComponents.default.span`
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 4px;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
`;
|
|
67
|
+
const Count = exports.Count = _styledComponents.default.span`
|
|
68
|
+
color: #8B8989;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
`;
|
|
72
|
+
const Seperator = exports.Seperator = _styledComponents.default.div`
|
|
73
|
+
border-right: 1px solid #F2F2F2;
|
|
74
|
+
`;
|
|
@@ -105,7 +105,8 @@ BannerEventBoxList.defaultProps = {
|
|
|
105
105
|
toggleColor: '#212121',
|
|
106
106
|
data: [{
|
|
107
107
|
banner: 'Stop&Shop',
|
|
108
|
-
description:
|
|
108
|
+
description: `description description description description description description description description description description
|
|
109
|
+
description description description description description description description description description `,
|
|
109
110
|
dates: ['01/01/2024', '14/01/2024'],
|
|
110
111
|
data: [{
|
|
111
112
|
name: 'Product Line',
|