intelicoreact 0.2.95 → 0.2.96
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.
|
@@ -80,29 +80,31 @@ var AccordionTable = function AccordionTable(_ref) {
|
|
|
80
80
|
style: {
|
|
81
81
|
flexBasis: "".concat((_getHeaderItem = getHeaderItem(key)) === null || _getHeaderItem === void 0 ? void 0 : _getHeaderItem.width, "%")
|
|
82
82
|
},
|
|
83
|
-
className: (0, _classnames.default)('accordion-table__td', (_getHeaderItem2 = getHeaderItem(key)) === null || _getHeaderItem2 === void 0 ? void 0 : _getHeaderItem2.className)
|
|
83
|
+
className: (0, _classnames.default)('accordion-table__td', "accordion-table__td--".concat(key), (_getHeaderItem2 = getHeaderItem(key)) === null || _getHeaderItem2 === void 0 ? void 0 : _getHeaderItem2.className)
|
|
84
84
|
}, (0, _typeof2.default)(value) !== 'object' ? value : value.value);
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
var renderTr = function renderTr(rows) {
|
|
89
89
|
return rows === null || rows === void 0 ? void 0 : rows.map(function (row, index) {
|
|
90
|
+
var _row$cols, _row$cols2, _row$cols3;
|
|
91
|
+
|
|
90
92
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
91
93
|
key: index,
|
|
92
94
|
className: (0, _classnames.default)('accordion-table__tr', {
|
|
93
|
-
'accordion-table__tr-with-promo': row.promoDetails
|
|
95
|
+
'accordion-table__tr-with-promo': row.promoDetails || ((_row$cols = row.cols) === null || _row$cols === void 0 ? void 0 : _row$cols.promoDetails)
|
|
94
96
|
}, row.className)
|
|
95
97
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
96
98
|
className: "df w100"
|
|
97
|
-
}, renderTd(row.cols || row)), row.promoDetails && /*#__PURE__*/_react.default.createElement("div", {
|
|
99
|
+
}, renderTd(row.cols || row)), row.promoDetails || ((_row$cols2 = row.cols) === null || _row$cols2 === void 0 ? void 0 : _row$cols2.promoDetails) && /*#__PURE__*/_react.default.createElement("div", {
|
|
98
100
|
className: "accordion-table__tr-promo-wrapper"
|
|
99
101
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
100
102
|
className: "accordion-table__tr-promo"
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement(Tag, {
|
|
103
|
+
}, /*#__PURE__*/_react.default.createElement(_reactFeather.Tag, {
|
|
102
104
|
className: "tr-promo-icon"
|
|
103
105
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
104
106
|
className: "tr-promo-label"
|
|
105
|
-
}, "PROMOTION"), row.promoDetails)));
|
|
107
|
+
}, "PROMOTION"), row.promoDetails || ((_row$cols3 = row.cols) === null || _row$cols3 === void 0 ? void 0 : _row$cols3.promoDetails))));
|
|
106
108
|
});
|
|
107
109
|
};
|
|
108
110
|
|
|
@@ -115,6 +117,8 @@ var AccordionTable = function AccordionTable(_ref) {
|
|
|
115
117
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
116
118
|
className: "accordion-table__accordion-label-wrapper j4"
|
|
117
119
|
}, /*#__PURE__*/_react.default.createElement(_reactFeather.ChevronDown, {
|
|
120
|
+
width: 8,
|
|
121
|
+
height: 4,
|
|
118
122
|
className: (0, _classnames.default)('accordion-label-box__icon', {
|
|
119
123
|
'accordion-label-box__icon--open': row.isOpen
|
|
120
124
|
})
|
|
@@ -102,6 +102,12 @@
|
|
|
102
102
|
&:not(:first-child, :last-child) {
|
|
103
103
|
padding-right: 20px;
|
|
104
104
|
}
|
|
105
|
+
|
|
106
|
+
&--name {
|
|
107
|
+
text-overflow: ellipsis;
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
}
|
|
105
111
|
}
|
|
106
112
|
|
|
107
113
|
&__accordion-label-box {
|
|
@@ -134,12 +140,10 @@
|
|
|
134
140
|
font-size: 14px;
|
|
135
141
|
font-weight: 400;
|
|
136
142
|
|
|
137
|
-
&:first-child {
|
|
138
|
-
padding-left: 20px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
143
|
&:not(:last-child) {
|
|
142
|
-
padding-right:
|
|
144
|
+
padding-right: 53px;
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
143
147
|
}
|
|
144
148
|
}
|
|
145
149
|
|
|
@@ -175,6 +179,12 @@
|
|
|
175
179
|
width: 40%;
|
|
176
180
|
}
|
|
177
181
|
|
|
182
|
+
&__status-icon {
|
|
183
|
+
color: #fa564c;
|
|
184
|
+
margin-right: 5px;
|
|
185
|
+
margin-top: 2px;
|
|
186
|
+
}
|
|
187
|
+
|
|
178
188
|
.tr-promo-icon {
|
|
179
189
|
color: #ff7d00;
|
|
180
190
|
}
|
|
@@ -189,14 +199,14 @@
|
|
|
189
199
|
&__label {
|
|
190
200
|
user-select: none;
|
|
191
201
|
white-space: nowrap;
|
|
202
|
+
margin-left: 15px;
|
|
192
203
|
}
|
|
193
204
|
|
|
194
205
|
&__icon {
|
|
195
|
-
min-width:
|
|
196
|
-
max-width:
|
|
206
|
+
min-width: 15px;
|
|
207
|
+
max-width: 15px;
|
|
197
208
|
min-height: 16px;
|
|
198
209
|
max-height: 16px;
|
|
199
|
-
margin-right: 5px;
|
|
200
210
|
transition: all 0.2s ease-out;
|
|
201
211
|
color: #757f8c;
|
|
202
212
|
|
|
@@ -216,7 +226,7 @@
|
|
|
216
226
|
&__head {
|
|
217
227
|
position: relative;
|
|
218
228
|
z-index: 2;
|
|
219
|
-
padding: 14.5px;
|
|
229
|
+
padding: 14.5px 15px 14.5px 20px;
|
|
220
230
|
background-color: #ffff;
|
|
221
231
|
box-shadow: 0 5px 8px rgb(39 73 113 / 12%);
|
|
222
232
|
}
|
|
@@ -14,7 +14,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
14
14
|
require("./Status.scss");
|
|
15
15
|
|
|
16
16
|
var Status = function Status(_ref) {
|
|
17
|
-
var
|
|
17
|
+
var icon = _ref.icon,
|
|
18
|
+
value = _ref.value,
|
|
18
19
|
label = _ref.label,
|
|
19
20
|
status = _ref.status,
|
|
20
21
|
disabled = _ref.disabled,
|
|
@@ -30,7 +31,7 @@ var Status = function Status(_ref) {
|
|
|
30
31
|
var text = children && typeof children === 'string' ? children : value || label || status;
|
|
31
32
|
var formatedLabel = (text === null || text === void 0 ? void 0 : text[0].toUpperCase()) + (text === null || text === void 0 ? void 0 : text.slice(1));
|
|
32
33
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
|
-
"data-testid":
|
|
34
|
+
"data-testid": "test-status",
|
|
34
35
|
className: (0, _classnames.default)({
|
|
35
36
|
disabled: disabled
|
|
36
37
|
}, className)
|
|
@@ -49,8 +50,10 @@ var Status = function Status(_ref) {
|
|
|
49
50
|
'status--no-bg': noBackground
|
|
50
51
|
}, {
|
|
51
52
|
'color--gray-gull': noBackground && status === 'pause' && !className
|
|
53
|
+
}, {
|
|
54
|
+
j4: icon
|
|
52
55
|
})
|
|
53
|
-
}, formatedLabel));
|
|
56
|
+
}, icon, formatedLabel));
|
|
54
57
|
};
|
|
55
58
|
|
|
56
59
|
var _default = Status;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
border-radius: 15px;
|
|
19
19
|
height: 20px;
|
|
20
20
|
}
|
|
21
|
+
|
|
21
22
|
&--active,
|
|
22
23
|
&--approved {
|
|
23
24
|
color: $color--green-haze;
|
|
@@ -76,4 +77,9 @@
|
|
|
76
77
|
background-color: $color--border;
|
|
77
78
|
color: #777;
|
|
78
79
|
}
|
|
80
|
+
|
|
81
|
+
&--outline {
|
|
82
|
+
border: 1px solid #D6D9E4;
|
|
83
|
+
color: #1F7499;
|
|
84
|
+
}
|
|
79
85
|
}
|