sag_components 1.0.866 → 1.0.868
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stories/components/BannerEventBoxList.style.js +1 -1
- package/dist/stories/components/QuickFilter.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +1 -1
- package/dist/stories/components/TotalHorizontalCharts.style.js +1 -1
- package/package.json +1 -1
- package/dist/stories/CampaignTool/PopupContent.stories.js +0 -284
- package/dist/stories/components/BannerEventBoxTest.js +0 -42
- package/dist/stories/components/BannerEventBoxTest.style.js +0 -11
- package/dist/stories/components/FilterButton.js +0 -53
- package/dist/stories/components/FilterButton.style.js +0 -12
- package/dist/stories/components/NewInput.js +0 -33
- package/dist/stories/components/NewInput.style.js +0 -13
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +0 -1831
|
@@ -12,7 +12,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
12
12
|
const CollapseMenuItemMainContainer = exports.CollapseMenuItemMainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: \"Poppins\", sans-serif;\n background: white;\n padding: 20px 24px;\n box-shadow: 0px 8px 20px -10px rgba(0, 0, 0, 0.2);\n"])));
|
|
13
13
|
const CollapseMenuItemContainer = exports.CollapseMenuItemContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
14
14
|
const rotation = (0, _styledComponents.keyframes)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n 0%, 100% {\n box-shadow: \n 0px -8.32px 0px 0px #ffffff, \n 5.76px -5.76px 0 0px rgba(0,0,0, 0.2), \n 8px 0px 0 0px rgba(0,0,0, 0.2), \n 5.6px 5.6px 0 0px rgba(0,0,0, 0.2), \n 0px 8px 0 0px rgba(0,0,0, 0.2), \n -5.76px 5.76px 0 0px rgba(0,0,0, 0.2), \n -8.32px 0px 0 0px rgba(0,0,0, 0.5), \n -5.76px -5.76px 0 0px rgba(0,0,0, 0.7);\n }\n\n 12.5% {\n box-shadow: \n 0px -8.32px 0px 0px rgba(0,0,0, 0.7), \n 5.76px -5.76px 0 0px #ffffff, \n 8px 0px 0 0px rgba(0,0,0, 0.2), \n 5.6px 5.6px 0 0px rgba(0,0,0, 0.2), \n 0px 8px 0 0px rgba(0,0,0, 0.2), \n -5.76px 5.76px 0 0px rgba(0,0,0, 0.2), \n -8.32px 0px 0 0px rgba(0,0,0, 0.2), \n -5.76px -5.76px 0 0px rgba(0,0,0, 0.5);\n }\n\n 25% {\n box-shadow: \n 0px -8.32px 0px 0px rgba(0,0,0, 0.5), \n 5.76px -5.76px 0 0px rgba(0,0,0, 0.7), \n 8px 0px 0 0px #ffffff, \n 5.6px 5.6px 0 0px rgba(0,0,0, 0.2), \n 0px 8px 0 0px rgba(0,0,0, 0.2), \n -5.76px 5.76px 0 0px rgba(0,0,0, 0.2), \n -8.32px 0px 0 0px rgba(0,0,0, 0.2), \n -5.76px -5.76px 0 0px rgba(0,0,0, 0.2);\n }\n\n 37.5% {\n box-shadow: \n 0px -8.32px 0px 0px rgba(0,0,0, 0.2), \n 5.76px -5.76px 0 0px rgba(0,0,0, 0.5), \n 8px 0px 0 0px rgba(0,0,0, 0.7), \n 5.6px 5.6px 0 0px #ffffff, \n 0px 8px 0 0px rgba(0,0,0, 0.2), \n -5.76px 5.76px 0 0px rgba(0,0,0, 0.2), \n -8.32px 0px 0 0px rgba(0,0,0, 0.2), \n -5.76px -5.76px 0 0px rgba(0,0,0, 0.2);\n }\n\n 50% {\n box-shadow: \n 0px -8.32px 0px 0px rgba(0,0,0, 0.2), \n 5.76px -5.76px 0 0px rgba(0,0,0, 0.2), \n 8px 0px 0 0px rgba(0,0,0, 0.5), \n 5.6px 5.6px 0 0px rgba(0,0,0, 0.7), \n 0px 8px 0 0px #ffffff, \n -5.76px 5.76px 0 0px rgba(0,0,0, 0.2), \n -8.32px 0px 0 0px rgba(0,0,0, 0.2), \n -5.76px -5.76px 0 0px rgba(0,0,0, 0.2);\n }\n\n 62.5% {\n box-shadow: \n 0px -8.32px 0px 0px rgba(0,0,0, 0.2), \n 5.76px -5.76px 0 0px rgba(0,0,0, 0.2), \n 8px 0px 0 0px rgba(0,0,0, 0.2), \n 5.6px 5.6px 0 0px rgba(0,0,0, 0.5), \n 0px 8px 0 0px rgba(0,0,0, 0.7), \n -5.76px 5.76px 0 0px #ffffff, \n -8.32px 0px 0 0px rgba(0,0,0, 0.2), \n -5.76px -5.76px 0 0px rgba(0,0,0, 0.2);\n }\n\n 75% {\n box-shadow: \n 0px -8.32px 0px 0px rgba(0,0,0, 0.2), \n 5.76px -5.76px 0 0px rgba(0,0,0, 0.2), \n 8px 0px 0 0px rgba(0,0,0, 0.2), \n 5.6px 5.6px 0 0px rgba(0,0,0, 0.2), \n 0px 8px 0 0px rgba(0,0,0, 0.5), \n -5.76px 5.76px 0 0px rgba(0,0,0, 0.7), \n -8.32px 0px 0 0px #ffffff, \n -5.76px -5.76px 0 0px rgba(0,0,0, 0.2);\n }\n\n 87.5% {\n box-shadow: \n 0px -8.32px 0px 0px rgba(0,0,0, 0.2), \n 5.76px -5.76px 0 0px rgba(0,0,0, 0.2), \n 8px 0px 0 0px rgba(0,0,0, 0.2), \n 5.6px 5.6px 0 0px rgba(0,0,0, 0.2), \n 0px 8px 0 0px rgba(0,0,0, 0.2), \n -5.76px 5.76px 0 0px rgba(0,0,0, 0.5), \n -8.32px 0px 0 0px rgba(0,0,0, 0.7), \n -5.76px -5.76px 0 0px #ffffff;\n }\n"])));
|
|
15
|
-
const LoaderWrapper = exports.LoaderWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n display: flex;\n gap: 20px;\n align-items: center;\n color: #212121;\n"])));
|
|
15
|
+
const LoaderWrapper = exports.LoaderWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n display: flex;\n gap: 20px;\n align-items: center;\n color: #212121;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
16
16
|
const Loader = exports.Loader = _styledComponents.default.span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 10px;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n position: relative;\n text-indent: -9999em;\n animation: ", " 1.1s infinite ease;\n transform: translateZ(0);\n"])), rotation);
|
|
17
17
|
const MainDetails = exports.MainDetails = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 16px;\n padding-left: 20px;\n"])));
|
|
18
18
|
const SubDetails = exports.SubDetails = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n font-weight: 400;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
@@ -9,7 +9,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
11
11
|
const DropdownWrapper = exports.DropdownWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-content: center;\n justify-content: center;\n align-items: flex-start;\n width: ", ";\n font-family: \"Poppins\", sans-serif;\n font-weight: 400;\n font-size: 14px;\n border-radius: 8px;\n"])), props => props.width || "300px");
|
|
12
|
-
const Label = exports.Label = _styledComponents.default.label(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 14px;\n font-weight: 500;\n color: #212121;\n font-family: \"Poppins\";\n"])));
|
|
12
|
+
const Label = exports.Label = _styledComponents.default.label(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 14px;\n font-weight: 500;\n color: #212121;\n font-family: \"Poppins\";\n white-space: nowrap;\n"])));
|
|
13
13
|
const InputContainer = exports.InputContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n align-content: center;\n white-space: pre-wrap;\n align-items: center;\n overflow: hidden;\n padding: 6px 16px;\n margin-bottom: 8px;\n width: 276px;\n height: 36px;\n border: 1px solid\n ", ";\n font-family: \"Poppins\", sans-serif;\n font-weight: 400;\n font-size: 14px;\n border-radius: 12px;\n outline: none;\n color: ", ";\n\n &:hover {\n border: 1px solid\n ", ";\n cursor: ", ";\n }\n\n &:focus {\n border: 1px solid\n ", ";\n }\n"])), props => props.disabled ? "#bdbdbd" : props.error ? "red" : "#B1B1B1", props => props.disabled ? "#888" : "#212121", props => props.disabled ? "#bdbdbd" : props.error ? "red" : props.hoverColor || "#212121", props => props.disabled ? "not-allowed" : "pointer", props => props.disabled ? "#bdbdbd" : props.error ? "red" : props.labelColor || "#212121");
|
|
14
14
|
const InputSubContainer = exports.InputSubContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n color: ", ";\n gap: 8px;\n"])), props => props.disabled ? "#888" : "#212121");
|
|
15
15
|
const StyledInput = exports.StyledInput = _styledComponents.default.input(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n width: 130px;\n height: 20px;\n font-family: \"Poppins\";\n font-weight: 400;\n font-size: 14px;\n outline: none;\n color: ", ";\n border: none;\n &::placeholder {\n color: #b1b1b1;\n }\n"])), props => props.disabled ? "#888" : "#212121");
|
|
@@ -9,7 +9,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
11
11
|
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif
|
|
12
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n color: ", ";\n width: ", ";\n height: ", ";\n background-color: white;\n display: flex;\n flex-direction: column;\n // justify-content: center;\n .top {\n text-align: center;\n white-space: normal;\n &:before {\n display: none;\n }\n }\n"])), props => props.textColor, props => props.width, props => props.height);
|
|
13
13
|
const ChartWrapper = exports.ChartWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n width: 100%;\n ", "\n"])), scrollableStyles);
|
|
14
14
|
const ChartInner = exports.ChartInner = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n min-height: 120%;\n width: 100%;\n"])));
|
|
15
15
|
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n padding: 16px;\n"])));
|
package/package.json
CHANGED
|
@@ -1,284 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _BannerEventBoxTest = require("./BannerEventBoxTest.style");
|
|
11
|
-
var _BannerEventBox = _interopRequireDefault(require("./BannerEventBox"));
|
|
12
|
-
const BannerEventBoxTest = props => {
|
|
13
|
-
const {
|
|
14
|
-
width,
|
|
15
|
-
height
|
|
16
|
-
} = props;
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(_BannerEventBoxTest.MainContainer, {
|
|
18
|
-
width: width,
|
|
19
|
-
height: height
|
|
20
|
-
}, /*#__PURE__*/_react.default.createElement(_BannerEventBox.default, {
|
|
21
|
-
banner: "Stop&Shop"
|
|
22
|
-
}), /*#__PURE__*/_react.default.createElement(_BannerEventBox.default, {
|
|
23
|
-
banner: "Hannaford",
|
|
24
|
-
data: [{
|
|
25
|
-
name: 'asdf',
|
|
26
|
-
items: ['coca', 'haim']
|
|
27
|
-
}, {
|
|
28
|
-
name: 'Brazxcvnds',
|
|
29
|
-
items: ['coca', 'bola', 'spring', 'cola']
|
|
30
|
-
}, {
|
|
31
|
-
name: 'xcvb Lines',
|
|
32
|
-
items: ['spring']
|
|
33
|
-
}]
|
|
34
|
-
}), /*#__PURE__*/_react.default.createElement(_BannerEventBox.default, {
|
|
35
|
-
banner: "Giant Food"
|
|
36
|
-
}));
|
|
37
|
-
};
|
|
38
|
-
BannerEventBoxTest.defaultProps = {
|
|
39
|
-
width: 'auto',
|
|
40
|
-
height: 'auto'
|
|
41
|
-
};
|
|
42
|
-
var _default = exports.default = BannerEventBoxTest;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.MainContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject;
|
|
11
|
-
const MainContainer = exports.MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", ";\n height: ", ";\n display: flex;\n gap: 20px;\n"])), props => props.width, props => props.height);
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.FilterButton = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _FilterButton = require("./FilterButton.style");
|
|
10
|
-
var _FilterIcon = require("./icons/FilterIcon");
|
|
11
|
-
const FilterButton = props => {
|
|
12
|
-
const {
|
|
13
|
-
color,
|
|
14
|
-
activeColor,
|
|
15
|
-
height,
|
|
16
|
-
buttonText,
|
|
17
|
-
iconWidth,
|
|
18
|
-
iconHeight,
|
|
19
|
-
disabled,
|
|
20
|
-
openState,
|
|
21
|
-
onButtonClick
|
|
22
|
-
} = props;
|
|
23
|
-
const [activeState, setActiveState] = (0, _react.useState)(openState);
|
|
24
|
-
const onClickHandler = event => {
|
|
25
|
-
onButtonClick(event);
|
|
26
|
-
setActiveState(!activeState);
|
|
27
|
-
};
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(_FilterButton.FilterButtonWrapper, {
|
|
29
|
-
height: height,
|
|
30
|
-
color: activeState ? activeColor : color,
|
|
31
|
-
disabled: disabled,
|
|
32
|
-
onClick: event => {
|
|
33
|
-
onClickHandler(event);
|
|
34
|
-
}
|
|
35
|
-
}, /*#__PURE__*/_react.default.createElement(_FilterIcon.FilterIcon, {
|
|
36
|
-
width: iconWidth,
|
|
37
|
-
height: iconHeight,
|
|
38
|
-
color: activeState ? activeColor : color
|
|
39
|
-
}), /*#__PURE__*/_react.default.createElement(_FilterButton.SpanText, null, buttonText));
|
|
40
|
-
};
|
|
41
|
-
exports.FilterButton = FilterButton;
|
|
42
|
-
var _default = exports.default = FilterButton;
|
|
43
|
-
FilterButton.defaultProps = {
|
|
44
|
-
buttonText: 'Filter',
|
|
45
|
-
height: '40px',
|
|
46
|
-
color: '#212121',
|
|
47
|
-
activeColor: '#229E38',
|
|
48
|
-
iconHeight: 12,
|
|
49
|
-
iconWidth: 12,
|
|
50
|
-
openState: false,
|
|
51
|
-
disabled: false,
|
|
52
|
-
onButtonClick: () => {}
|
|
53
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.SpanText = exports.FilterButtonWrapper = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
|
-
const FilterButtonWrapper = exports.FilterButtonWrapper = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n font-size: 14px;\n font-weight: 400;\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: center;\n padding: 8px 18px;\n color: ", ";\n border-radius: 8px;\n border: 1px solid ", ";\n background: transparent;\n transition: box-shadow 0.3s ease;\n &:hover, &:focus {\n cursor: pointer;\n box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);\n }\n"])), props => props.height, props => props.color, props => props.color);
|
|
12
|
-
const SpanText = exports.SpanText = _styledComponents.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _NewInput = require("./NewInput.style");
|
|
10
|
-
const NewInput = props => {
|
|
11
|
-
const {
|
|
12
|
-
labelText,
|
|
13
|
-
inputType,
|
|
14
|
-
onTyping
|
|
15
|
-
} = props;
|
|
16
|
-
const [inputValue, setInputValue] = (0, _react.useState)('');
|
|
17
|
-
const handleInputChange = e => {
|
|
18
|
-
setInputValue(e.target.value);
|
|
19
|
-
onTyping(e);
|
|
20
|
-
};
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_NewInput.TextFieldContainer, null, /*#__PURE__*/_react.default.createElement(_NewInput.TextFieldInput, {
|
|
22
|
-
type: inputType,
|
|
23
|
-
value: inputValue,
|
|
24
|
-
onChange: handleInputChange
|
|
25
|
-
// placeholder={labelText}
|
|
26
|
-
}), /*#__PURE__*/_react.default.createElement(_NewInput.Label, null, labelText));
|
|
27
|
-
};
|
|
28
|
-
var _default = exports.default = NewInput;
|
|
29
|
-
NewInput.defaultProps = {
|
|
30
|
-
labelText: '',
|
|
31
|
-
inputType: 'text',
|
|
32
|
-
onTyping: () => {}
|
|
33
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.TextFieldInput = exports.TextFieldContainer = exports.Label = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
11
|
-
const TextFieldContainer = exports.TextFieldContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n"])));
|
|
12
|
-
const TextFieldInput = exports.TextFieldInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: 10px;\n font-size: 16px;\n border: 1px solid #ccc;\n border-radius: 4px;\n\n &:focus + label,\n &:not(:placeholder-shown) + label {\n top: -8px;\n font-size: 12px;\n color: #007bff;\n background-color: white;\n }\n"])));
|
|
13
|
-
const Label = exports.Label = _styledComponents.default.label(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: 12px;\n left: 10px;\n transition: all 0.3s ease;\n pointer-events: none;\n font-size: 16px;\n color: #555;\n"])));
|