@appquality/unguess-design-system 2.5.5 → 2.6.0
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/CHANGELOG.md +42 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +559 -44
- package/build/stories/campaignCards/_types.d.ts +39 -0
- package/build/stories/campaignCards/index.d.ts +4 -0
- package/build/stories/campaignCards/index.stories.d.ts +7 -0
- package/build/stories/theme/index.d.ts +11 -9
- package/build/stories/theme/utils.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
# v2.6.0 (Tue Mar 29 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Feature/cup 500 campaign card [#27](https://github.com/AppQuality/unguess-design-system/pull/27) ([@cicababba](https://github.com/cicababba) [@marcbon](https://github.com/marcbon))
|
|
6
|
+
|
|
7
|
+
#### 🐛 Bug Fix
|
|
8
|
+
|
|
9
|
+
- Fix/campaign cards [#28](https://github.com/AppQuality/unguess-design-system/pull/28) ([@marcbon](https://github.com/marcbon))
|
|
10
|
+
|
|
11
|
+
#### ⚠️ Pushed to `master`
|
|
12
|
+
|
|
13
|
+
- fix(campaigncard): add html props to campaign card ([@cannarocks](https://github.com/cannarocks))
|
|
14
|
+
- fix(scroll): hide <Main /> scroll ([@cannarocks](https://github.com/cannarocks))
|
|
15
|
+
- fix(counter): fix error on zero counter values ([@cannarocks](https://github.com/cannarocks))
|
|
16
|
+
|
|
17
|
+
#### Authors: 3
|
|
18
|
+
|
|
19
|
+
- cicababba ([@cicababba](https://github.com/cicababba))
|
|
20
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
21
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v2.5.7 (Mon Mar 28 2022)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# v2.5.6 (Mon Mar 28 2022)
|
|
32
|
+
|
|
33
|
+
#### ⚠️ Pushed to `master`
|
|
34
|
+
|
|
35
|
+
- fix(spaces): fix spaces between main, body and page title ([@cannarocks](https://github.com/cannarocks))
|
|
36
|
+
|
|
37
|
+
#### Authors: 1
|
|
38
|
+
|
|
39
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
1
43
|
# v2.5.5 (Mon Mar 28 2022)
|
|
2
44
|
|
|
3
45
|
#### ⚠️ Pushed to `master`
|
package/build/index.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ export * from './stories/buttons/button-group';
|
|
|
8
8
|
export * from './stories/buttons/icon-button';
|
|
9
9
|
export * from './stories/buttons/split-button';
|
|
10
10
|
export * from './stories/cards';
|
|
11
|
+
export * from './stories/campaignCards';
|
|
11
12
|
export * from './stories/close';
|
|
13
|
+
export * from './stories/counter';
|
|
12
14
|
export * as DropdownField from './stories/dropdowns/field';
|
|
13
15
|
export * from './stories/dropdowns/item';
|
|
14
16
|
export * from './stories/dropdowns/menu';
|
package/build/index.js
CHANGED
|
@@ -10,10 +10,11 @@ var reactAvatars = require('@zendeskgarden/react-avatars');
|
|
|
10
10
|
var reactBreadcrumbs = require('@zendeskgarden/react-breadcrumbs');
|
|
11
11
|
var reactButtons = require('@zendeskgarden/react-buttons');
|
|
12
12
|
var reactNotifications = require('@zendeskgarden/react-notifications');
|
|
13
|
-
var
|
|
13
|
+
var reactTags = require('@zendeskgarden/react-tags');
|
|
14
14
|
var reactForms = require('@zendeskgarden/react-forms');
|
|
15
|
-
var reactGrid = require('@zendeskgarden/react-grid');
|
|
16
15
|
var React = require('react');
|
|
16
|
+
var reactDropdowns = require('@zendeskgarden/react-dropdowns');
|
|
17
|
+
var reactGrid = require('@zendeskgarden/react-grid');
|
|
17
18
|
var reactLoaders = require('@zendeskgarden/react-loaders');
|
|
18
19
|
var formik = require('formik');
|
|
19
20
|
var reactModals = require('@zendeskgarden/react-modals');
|
|
@@ -21,7 +22,6 @@ var reactChrome = require('@zendeskgarden/react-chrome');
|
|
|
21
22
|
var reactTypography = require('@zendeskgarden/react-typography');
|
|
22
23
|
var reactPagination = require('@zendeskgarden/react-pagination');
|
|
23
24
|
var reactTables = require('@zendeskgarden/react-tables');
|
|
24
|
-
var reactTags = require('@zendeskgarden/react-tags');
|
|
25
25
|
|
|
26
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
27
27
|
|
|
@@ -215,6 +215,13 @@ var hex2rgba = function (hex, alpha) {
|
|
|
215
215
|
var rgb = hex.match(/\w\w/g);
|
|
216
216
|
var _a = rgb ? rgb.map(function (x) { return parseInt(x, 16); }) : [0, 0, 0], r = _a[0], g = _a[1], b = _a[2];
|
|
217
217
|
return "rgba(".concat(r, ",").concat(g, ",").concat(b, ",").concat(alpha, ")");
|
|
218
|
+
};
|
|
219
|
+
var boxShadow = function (theme) {
|
|
220
|
+
var space = theme.space, shadows = theme.shadows, palette = theme.palette;
|
|
221
|
+
var offsetY = "".concat(space.base, "px");
|
|
222
|
+
var blurRadius = "".concat(space.base * 2, "px");
|
|
223
|
+
var shadowColor = reactTheming.getColor(palette.grey, 800, theme, 0.15);
|
|
224
|
+
return shadows.lg(offsetY, blurRadius, shadowColor);
|
|
218
225
|
};
|
|
219
226
|
|
|
220
227
|
var gradients = {
|
|
@@ -222,10 +229,10 @@ var gradients = {
|
|
|
222
229
|
dark: "linear-gradient(90.81deg, ".concat(hex2rgba(palette.blue[800]), " 0%, ").concat(hex2rgba(palette.blue[600]), " 100%);"),
|
|
223
230
|
};
|
|
224
231
|
|
|
225
|
-
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), gradients: gradients, components: __assign(__assign({}, reactTheming.DEFAULT_THEME.components), { Headers: __assign(__assign({}, reactTheming.DEFAULT_THEME.components.Headers), { height: "64px" }) }) });
|
|
232
|
+
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), gradients: gradients, borderRadii: __assign(__assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px" }), components: __assign(__assign({}, reactTheming.DEFAULT_THEME.components), { Headers: __assign(__assign({}, reactTheming.DEFAULT_THEME.components.Headers), { height: "64px" }) }), shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
|
|
226
233
|
|
|
227
|
-
var GlobalStyle = styled.createGlobalStyle(templateObject_1$
|
|
228
|
-
var templateObject_1$
|
|
234
|
+
var GlobalStyle = styled.createGlobalStyle(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n body {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n \n "], ["\n body {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n \n "])), theme.fonts.system);
|
|
235
|
+
var templateObject_1$B;
|
|
229
236
|
|
|
230
237
|
/**
|
|
231
238
|
* Accordions are headers that can be expanded to reveal content or collapsed to hide it.
|
|
@@ -241,7 +248,7 @@ Accordion.Label = reactAccordions.Accordion.Label;
|
|
|
241
248
|
Accordion.Panel = reactAccordions.Accordion.Panel;
|
|
242
249
|
|
|
243
250
|
// import useWindowSize from "../../hooks/useWindowSize";
|
|
244
|
-
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$
|
|
251
|
+
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
245
252
|
return "\n background: ".concat(props.backgroundColor || theme.gradients.dark, ";\n ");
|
|
246
253
|
});
|
|
247
254
|
/**
|
|
@@ -264,7 +271,7 @@ var Avatar = function (props) {
|
|
|
264
271
|
return (jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
|
|
265
272
|
};
|
|
266
273
|
Avatar.Text = UgAvatar.Text;
|
|
267
|
-
var templateObject_1$
|
|
274
|
+
var templateObject_1$A;
|
|
268
275
|
|
|
269
276
|
/**
|
|
270
277
|
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
@@ -285,7 +292,7 @@ var Breadcrumb = function (props) { return jsxRuntime.jsx(reactBreadcrumbs.Bread
|
|
|
285
292
|
*/
|
|
286
293
|
var Anchor = function (props) { return jsxRuntime.jsx(reactButtons.Anchor, __assign({}, props)); };
|
|
287
294
|
|
|
288
|
-
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
295
|
+
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$z || (templateObject_1$z = __makeTemplateObject([""], [""])));
|
|
289
296
|
/**
|
|
290
297
|
* Buttons let users take action quickly.
|
|
291
298
|
* Use a Button to enable actions or decisions that are important to a user’s workflow.
|
|
@@ -297,7 +304,7 @@ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
|
297
304
|
var Button = function (props) { return jsxRuntime.jsx(UgButton, __assign({}, props)); };
|
|
298
305
|
Button.StartIcon = UgButton.StartIcon;
|
|
299
306
|
Button.EndIcon = UgButton.EndIcon;
|
|
300
|
-
var templateObject_1$
|
|
307
|
+
var templateObject_1$z;
|
|
301
308
|
|
|
302
309
|
/**
|
|
303
310
|
A Button group lets users make a selection from a set of options.
|
|
@@ -335,11 +342,535 @@ var SplitButton = function (props) { return (jsxRuntime.jsx(reactButtons.SplitBu
|
|
|
335
342
|
*/
|
|
336
343
|
var Card = function (props) { return jsxRuntime.jsx(reactNotifications.Well, __assign({}, props)); };
|
|
337
344
|
|
|
345
|
+
/**
|
|
346
|
+
* Tags let users categorize content using a keyword.
|
|
347
|
+
|
|
348
|
+
* Used for this:
|
|
349
|
+
- To add metadata to an element such as category, attribute, or property
|
|
350
|
+
- To communicate status
|
|
351
|
+
- To represent parameters of a filter
|
|
352
|
+
|
|
353
|
+
* Not for this:
|
|
354
|
+
- To prompt an action by the user, use a Button instead
|
|
355
|
+
*/
|
|
356
|
+
var Tag = function (props) { return jsxRuntime.jsx(reactTags.Tag, __assign({}, props)); };
|
|
357
|
+
Tag.Avatar = reactTags.Tag.Avatar;
|
|
358
|
+
Tag.Close = reactTags.Tag.Close;
|
|
359
|
+
|
|
360
|
+
var UgLabel = styled__default["default"](reactForms.Label)(templateObject_1$y || (templateObject_1$y = __makeTemplateObject([""], [""])));
|
|
361
|
+
/**
|
|
362
|
+
* A Label is used to specify a title for an input.
|
|
363
|
+
* <hr>
|
|
364
|
+
**/
|
|
365
|
+
var Label = function (props) { return jsxRuntime.jsx(UgLabel, __assign({}, props)); };
|
|
366
|
+
var templateObject_1$y;
|
|
367
|
+
|
|
368
|
+
var _g$4, _path$j, _path2$8, _path3$6, _path4$4, _path5$3, _path6$3, _path7$3, _path8$3, _path9$3, _path10$3, _path11$2;
|
|
369
|
+
|
|
370
|
+
function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
371
|
+
|
|
372
|
+
var SvgFunctionalTestRoundIcon = function SvgFunctionalTestRoundIcon(props) {
|
|
373
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
374
|
+
width: 24,
|
|
375
|
+
height: 24,
|
|
376
|
+
viewBox: "0 0 24 24",
|
|
377
|
+
fill: "none",
|
|
378
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
379
|
+
}, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
380
|
+
opacity: 0.3
|
|
381
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
382
|
+
opacity: 0.3,
|
|
383
|
+
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
384
|
+
fill: "#003A57"
|
|
385
|
+
}))), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
386
|
+
d: "M12.4871 3.1964C8.68009 3.1964 5.59901 6.27748 5.59901 10.0844C5.59901 10.2596 5.59901 10.4347 5.62445 10.5854C5.29863 11.1861 4.82313 12.0129 4.24684 12.5138C3.82123 12.8896 3.92102 13.2907 3.97091 13.4404C4.09615 13.7662 4.44641 14.0411 5.02271 14.2417C5.22328 14.3171 5.44831 14.367 5.64889 14.4169L5.67433 16.8463C5.67433 17.7983 6.47565 18.625 7.4531 18.625L8.9305 18.1495L9.08117 19.0262C9.18097 19.6025 9.68191 20.0281 10.2837 20.0281C10.359 20.0281 10.4343 20.0281 10.5087 20.0026L15.1425 19.1769C15.8185 19.0516 16.2441 18.4254 16.1444 17.7494L15.8185 16.1213C17.9975 14.9188 19.375 12.5891 19.375 10.0843C19.375 6.30267 16.2696 3.19629 12.487 3.19629L12.4871 3.1964Z",
|
|
387
|
+
fill: "#003A57",
|
|
388
|
+
stroke: "#003A57"
|
|
389
|
+
})), _path2$8 || (_path2$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
390
|
+
fillRule: "evenodd",
|
|
391
|
+
clipRule: "evenodd",
|
|
392
|
+
d: "M6.39337 10.7688V10.1221H8.06755V10.7688H6.39337Z",
|
|
393
|
+
fill: "#E6EBEE"
|
|
394
|
+
})), _path3$6 || (_path3$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
395
|
+
fillRule: "evenodd",
|
|
396
|
+
clipRule: "evenodd",
|
|
397
|
+
d: "M7.29937 13.6066L6.98608 13.0474L8.43487 12.1846L8.74815 12.7437L7.29937 13.6066Z",
|
|
398
|
+
fill: "#E6EBEE"
|
|
399
|
+
})), _path4$4 || (_path4$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
400
|
+
fillRule: "evenodd",
|
|
401
|
+
clipRule: "evenodd",
|
|
402
|
+
d: "M8.43603 8.70472L6.98724 7.84334L7.30053 7.28418L8.74931 8.14556L8.43603 8.70472Z",
|
|
403
|
+
fill: "#E6EBEE"
|
|
404
|
+
})), _path5$3 || (_path5$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
405
|
+
fillRule: "evenodd",
|
|
406
|
+
clipRule: "evenodd",
|
|
407
|
+
d: "M16.6807 7.28418L16.994 7.84334L15.5452 8.70472L15.2319 8.14556L16.6807 7.28418Z",
|
|
408
|
+
fill: "#E6EBEE"
|
|
409
|
+
})), _path6$3 || (_path6$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
410
|
+
fillRule: "evenodd",
|
|
411
|
+
clipRule: "evenodd",
|
|
412
|
+
d: "M11.677 4.68066H12.305V6.40488H11.677V4.68066Z",
|
|
413
|
+
fill: "#E6EBEE"
|
|
414
|
+
})), _path7$3 || (_path7$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
415
|
+
fillRule: "evenodd",
|
|
416
|
+
clipRule: "evenodd",
|
|
417
|
+
d: "M9.46389 5.29102L10.3017 6.78309L9.75875 7.10574L8.92236 5.61367L9.46389 5.29102Z",
|
|
418
|
+
fill: "#E6EBEE"
|
|
419
|
+
})), _path8$3 || (_path8$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
420
|
+
fillRule: "evenodd",
|
|
421
|
+
clipRule: "evenodd",
|
|
422
|
+
d: "M13.3026 12.9984V14.6233H12.7313L12.7327 15.2511H11.2485L11.2471 14.6233H10.6786V12.9984C9.80541 12.5064 9.24969 11.553 9.24969 10.5252C9.24969 8.97036 10.4802 7.70312 11.9899 7.70312C13.5025 7.70312 14.7329 8.97036 14.7329 10.5252C14.7315 11.5516 14.1744 12.5049 13.3026 12.9984H13.3026Z",
|
|
423
|
+
fill: "#E6EBEE"
|
|
424
|
+
})), _path9$3 || (_path9$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
425
|
+
fillRule: "evenodd",
|
|
426
|
+
clipRule: "evenodd",
|
|
427
|
+
d: "M14.2242 7.10672L13.6813 6.78407L14.5177 5.29199L15.0606 5.61464L14.2242 7.10672Z",
|
|
428
|
+
fill: "#E6EBEE"
|
|
429
|
+
})), _path10$3 || (_path10$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
430
|
+
fillRule: "evenodd",
|
|
431
|
+
clipRule: "evenodd",
|
|
432
|
+
d: "M16.6807 13.6066L15.2319 12.7437L15.5452 12.1846L16.994 13.0474L16.6807 13.6066Z",
|
|
433
|
+
fill: "#E6EBEE"
|
|
434
|
+
})), _path11$2 || (_path11$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
435
|
+
fillRule: "evenodd",
|
|
436
|
+
clipRule: "evenodd",
|
|
437
|
+
d: "M17.5866 10.7688H15.9124V10.1221H17.5866V10.7688Z",
|
|
438
|
+
fill: "#E6EBEE"
|
|
439
|
+
})));
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
var _g$3, _path$i;
|
|
443
|
+
|
|
444
|
+
function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
445
|
+
|
|
446
|
+
var SvgRegressionTestRoundIcon = function SvgRegressionTestRoundIcon(props) {
|
|
447
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
448
|
+
width: 24,
|
|
449
|
+
height: 24,
|
|
450
|
+
viewBox: "0 0 24 24",
|
|
451
|
+
fill: "none",
|
|
452
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
453
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
454
|
+
opacity: 0.3
|
|
455
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
456
|
+
opacity: 0.3,
|
|
457
|
+
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
458
|
+
fill: "#003A57"
|
|
459
|
+
}))), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
460
|
+
d: "M17.9983 7.16705C17.5188 6.58566 17.1422 6.73039 17.1422 6.73039C17.1422 6.73039 16.406 7.02453 16.0401 7.16303C15.6742 7.30153 15.2408 7.17357 15.2408 7.17357L14.7579 6.8851C14.7579 6.8851 14.4296 6.56554 14.3656 6.18067C14.3123 5.78958 14.1888 5.00269 14.1888 5.00269C14.1888 5.00269 14.1356 4.61159 13.3938 4.47257C12.652 4.33356 12.4678 4.68715 12.4678 4.68715C12.4678 4.68715 12.0932 5.38344 11.9091 5.73703C11.7249 6.09062 11.3114 6.27118 11.3114 6.27118L10.7639 6.36908C10.7639 6.36908 10.3144 6.33771 10.0176 6.07271L9.12712 5.27769C9.12712 5.27769 8.8303 5.01268 8.18313 5.38632C7.53595 5.75997 7.61705 6.14953 7.61705 6.14953L7.86033 7.3182C7.94143 7.70776 7.74381 8.11275 7.74381 8.11275L7.38528 8.53794C7.38528 8.53794 7.02217 8.80577 6.62387 8.78845C6.22557 8.77114 5.43527 8.7474 5.43527 8.7474C5.43527 8.7474 5.03697 8.73009 4.78646 9.44201C4.53595 10.1539 4.84804 10.3956 4.84804 10.3956C4.84804 10.3956 5.46774 10.896 5.77983 11.1376C6.09192 11.3793 6.19373 11.8296 6.19373 11.8296L6.20207 12.3921C6.20207 12.3921 6.09618 12.8314 5.79331 13.079C5.49043 13.3266 4.86759 13.8171 4.86759 13.8171C4.86759 13.8171 4.56471 14.0647 4.81769 14.7769C5.08144 15.4828 5.46713 15.4783 5.46713 15.4783C5.46713 15.4783 6.26012 15.4569 6.64582 15.4524C7.03152 15.4479 7.40116 15.7145 7.40116 15.7145L7.76458 16.1447C7.76458 16.1447 7.96976 16.5499 7.89441 16.9425C7.81907 17.3351 7.66208 18.1094 7.66208 18.1094C7.66208 18.1094 7.58674 18.502 8.23785 18.8824C8.88895 19.2629 9.18553 19.0044 9.18553 19.0044C9.18553 19.0044 9.7724 18.4765 10.069 18.218C10.3655 17.9595 10.8115 17.9347 10.8115 17.9347L11.3609 18.0394C11.3609 18.0394 11.77 18.225 11.9608 18.5803C12.1516 18.9356 12.5268 19.6354 12.5268 19.6354C12.5268 19.6354 12.7176 19.9907 13.4583 19.8539C14.1946 19.7343 14.2529 19.337 14.2529 19.337C14.2529 19.337 14.3586 18.5487 14.4232 18.1623C14.4814 17.765 14.8086 17.4598 14.8086 17.4598L15.2939 17.1796C15.2939 17.1796 15.7281 17.0598 16.095 17.1971C16.4682 17.3453 17.1975 17.637 17.1975 17.637C17.1975 17.637 17.5707 17.7851 18.0424 17.2073C18.5142 16.6295 18.3189 16.2913 18.3189 16.2913C18.3189 16.2913 17.9006 15.6164 17.6882 15.2736C17.4759 14.9307 17.5197 14.4836 17.5197 14.4836L17.7038 13.9555C17.7038 13.9555 17.9482 13.5816 18.3203 13.454C18.6925 13.3264 19.4431 13.0822 19.4431 13.0822C19.4431 13.0822 19.8153 12.9546 19.8113 12.2005C19.8074 11.4464 19.4297 11.3153 19.4297 11.3153C19.4297 11.3153 18.6807 11.0641 18.303 10.9331C17.9253 10.802 17.677 10.4217 17.677 10.4217L17.4861 9.8919C17.4861 9.8919 17.4293 9.4447 17.6368 9.1067C17.8443 8.7687 18.2486 8.09891 18.2486 8.09891C18.2486 8.09891 18.4778 7.74844 17.9983 7.16707L17.9983 7.16705ZM9.33902 8.38466L10.6176 10.5992C10.0433 11.149 9.82793 11.9715 10.0567 12.7413L7.86713 14.0054C6.98868 12.0106 7.60355 9.66286 9.33905 8.38457L9.33902 8.38466ZM13.9748 16.414C11.9998 17.2778 9.65918 16.6363 8.37099 14.8783L10.5605 13.6141C11.1128 14.1971 11.9329 14.4219 12.6961 14.1994L13.9748 16.414ZM12.6552 13.132C12.1159 13.4434 11.4325 13.2561 11.1176 12.7107C10.8027 12.1652 10.9822 11.4797 11.5215 11.1684C12.0608 10.857 12.7441 11.0443 13.0591 11.5897C13.374 12.1352 13.1945 12.8207 12.6552 13.132ZM14.8376 15.9158L13.5591 13.7012C14.1333 13.1515 14.3487 12.3289 14.12 11.5591L16.3095 10.295C17.188 12.2898 16.5731 14.6376 14.8376 15.9159L14.8376 15.9158ZM13.6161 10.6863C13.0638 10.1034 12.2437 9.87862 11.4805 10.1011L10.2019 7.88652C12.1769 7.02266 14.5112 7.65314 15.8057 9.42223L13.6161 10.6863Z",
|
|
461
|
+
fill: "#003A57"
|
|
462
|
+
})));
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
var _circle$2, _path$h, _path2$7, _path3$5;
|
|
466
|
+
|
|
467
|
+
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
468
|
+
|
|
469
|
+
var SvgCompletedStatusRoundIcon = function SvgCompletedStatusRoundIcon(props) {
|
|
470
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
471
|
+
width: 32,
|
|
472
|
+
height: 32,
|
|
473
|
+
viewBox: "0 0 32 32",
|
|
474
|
+
fill: "none",
|
|
475
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
476
|
+
}, props), _circle$2 || (_circle$2 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
477
|
+
cx: 16,
|
|
478
|
+
cy: 16,
|
|
479
|
+
r: 16,
|
|
480
|
+
fill: "#F8F9F9"
|
|
481
|
+
})), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
482
|
+
d: "M24.6953 9.73905C25.0148 9.41953 25.0148 8.90149 24.6953 8.58197C24.3758 8.26245 23.8577 8.26245 23.5382 8.58197L15.88 16.2402L14.0849 13.9598C13.8054 13.6048 13.291 13.5435 12.9359 13.823C12.5809 14.1025 12.5196 14.6169 12.7991 14.972L15.1642 17.9763C15.3089 18.16 15.5252 18.2731 15.7586 18.2869C15.9921 18.3008 16.2203 18.2141 16.3856 18.0487L24.6953 9.73905Z",
|
|
483
|
+
fill: "#27DD70"
|
|
484
|
+
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
485
|
+
d: "M7 16C7 11.0294 11.0294 7 16 7C17.3602 7 18.6521 7.3023 19.8102 7.84415C20.2195 8.03565 20.396 8.52268 20.2045 8.93196C20.013 9.34125 19.526 9.5178 19.1167 9.3263C18.1712 8.88391 17.1156 8.63636 16 8.63636C11.9332 8.63636 8.63636 11.9332 8.63636 16C8.63636 20.0668 11.9332 23.3636 16 23.3636C20.0668 23.3636 23.3636 20.0668 23.3636 16C23.3636 15.3631 23.283 14.7462 23.1317 14.1585C23.0191 13.7208 23.2826 13.2748 23.7202 13.1622C24.1578 13.0496 24.6038 13.313 24.7165 13.7506C24.9017 14.4705 25 15.2243 25 16C25 20.9705 20.9705 25 16 25C11.0294 25 7 20.9705 7 16Z",
|
|
486
|
+
fill: "#27DD70"
|
|
487
|
+
})), _path3$5 || (_path3$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
488
|
+
d: "M24.6953 9.73905C25.0148 9.41953 25.0148 8.90149 24.6953 8.58197C24.3758 8.26245 23.8577 8.26245 23.5382 8.58197L15.88 16.2402L14.0849 13.9598C13.8054 13.6048 13.291 13.5435 12.9359 13.823C12.5809 14.1025 12.5196 14.6169 12.7991 14.972L15.1642 17.9763C15.3089 18.16 15.5252 18.2731 15.7586 18.2869C15.9921 18.3008 16.2203 18.2141 16.3856 18.0487L24.6953 9.73905Z",
|
|
489
|
+
fill: "#158944"
|
|
490
|
+
})));
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
var _circle$1, _path$g, _path2$6, _path3$4, _path4$3, _path5$2, _path6$2, _path7$2, _path8$2, _path9$2, _path10$2;
|
|
494
|
+
|
|
495
|
+
function _extends$h() { _extends$h = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
496
|
+
|
|
497
|
+
var SvgOnGoingStatusRoundIcon = function SvgOnGoingStatusRoundIcon(props) {
|
|
498
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
499
|
+
width: 32,
|
|
500
|
+
height: 32,
|
|
501
|
+
viewBox: "0 0 32 32",
|
|
502
|
+
fill: "none",
|
|
503
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
504
|
+
}, props), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
505
|
+
cx: 16,
|
|
506
|
+
cy: 16,
|
|
507
|
+
r: 16,
|
|
508
|
+
fill: "#F8F9F9"
|
|
509
|
+
})), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
510
|
+
d: "M17.059 20.7647C17.059 20.1799 16.585 19.7059 16.0002 19.7059C15.4154 19.7059 14.9414 20.1799 14.9414 20.7647V23.9412C14.9414 24.5259 15.4154 25 16.0002 25C16.585 25 17.059 24.5259 17.059 23.9412V20.7647Z",
|
|
511
|
+
fill: "#D1820A"
|
|
512
|
+
})), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
513
|
+
d: "M20.1149 18.6183C19.7014 18.2048 19.031 18.2048 18.6175 18.6183C18.204 19.0318 18.204 19.7022 18.6175 20.1157L20.8649 22.3631C21.2783 22.7766 21.9488 22.7766 22.3623 22.3631C22.7757 21.9496 22.7757 21.2792 22.3623 20.8657L20.1149 18.6183Z",
|
|
514
|
+
fill: "#D1820A"
|
|
515
|
+
})), _path3$4 || (_path3$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
516
|
+
d: "M20.7649 14.9412C20.1802 14.9412 19.7061 15.4152 19.7061 16C19.7061 16.5848 20.1802 17.0588 20.7649 17.0588H23.9414C24.5262 17.0588 25.0002 16.5848 25.0002 16C25.0002 15.4152 24.5262 14.9412 23.9414 14.9412H20.7649Z",
|
|
517
|
+
fill: "#D1820A"
|
|
518
|
+
})), _path4$3 || (_path4$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
519
|
+
d: "M13.3811 18.6183C13.7945 19.0318 13.7945 19.7022 13.3811 20.1157L11.1337 22.3631C10.7202 22.7766 10.0498 22.7766 9.63629 22.3631C9.2228 21.9496 9.2228 21.2792 9.63629 20.8657L11.8836 18.6183C12.2971 18.2048 12.9676 18.2048 13.3811 18.6183Z",
|
|
520
|
+
fill: "#D1820A"
|
|
521
|
+
})), _path5$2 || (_path5$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
522
|
+
d: "M20.1149 18.6183C19.7014 18.2048 19.031 18.2048 18.6175 18.6183C18.204 19.0318 18.204 19.7022 18.6175 20.1157L20.8649 22.3631C21.2783 22.7766 21.9488 22.7766 22.3623 22.3631C22.7757 21.9496 22.7757 21.2792 22.3623 20.8657L20.1149 18.6183Z",
|
|
523
|
+
fill: "#FBE1AC"
|
|
524
|
+
})), _path6$2 || (_path6$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
525
|
+
d: "M20.7649 14.9412C20.1802 14.9412 19.7061 15.4152 19.7061 16C19.7061 16.5848 20.1802 17.0588 20.7649 17.0588H23.9414C24.5262 17.0588 25.0002 16.5848 25.0002 16C25.0002 15.4152 24.5262 14.9412 23.9414 14.9412H20.7649Z",
|
|
526
|
+
fill: "#FBE1AC"
|
|
527
|
+
})), _path7$2 || (_path7$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
528
|
+
d: "M16 7C16.5848 7 17.0588 7.47405 17.0588 8.05882V11.2353C17.0588 11.8201 16.5848 12.2941 16 12.2941C15.4152 12.2941 14.9412 11.8201 14.9412 11.2353V8.05882C14.9412 7.47405 15.4152 7 16 7Z",
|
|
529
|
+
fill: "#F7BF50"
|
|
530
|
+
})), _path8$2 || (_path8$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
531
|
+
d: "M9.63607 9.63685C10.0496 9.22335 10.72 9.22335 11.1335 9.63685L13.3808 11.8842C13.7943 12.2977 13.7943 12.9681 13.3808 13.3816C12.9673 13.7951 12.2969 13.7951 11.8834 13.3816L9.63608 11.1343C9.22258 10.7208 9.22258 10.0503 9.63607 9.63685Z",
|
|
532
|
+
fill: "#F7BF50"
|
|
533
|
+
})), _path9$2 || (_path9$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
534
|
+
d: "M7 16C7 15.4152 7.47405 14.9412 8.05882 14.9412H11.2353C11.8201 14.9412 12.2941 15.4152 12.2941 16C12.2941 16.5848 11.8201 17.0588 11.2353 17.0588H8.05882C7.47405 17.0588 7 16.5848 7 16Z",
|
|
535
|
+
fill: "#F7BF50"
|
|
536
|
+
})), _path10$2 || (_path10$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
537
|
+
d: "M22.362 11.1343C22.7755 10.7208 22.7755 10.0503 22.362 9.63685C21.9485 9.22335 21.2781 9.22335 20.8646 9.63685L18.6173 11.8842C18.2038 12.2977 18.2038 12.9681 18.6173 13.3816C19.0308 13.7951 19.7012 13.7951 20.1147 13.3816L22.362 11.1343Z",
|
|
538
|
+
fill: "#F7BF50"
|
|
539
|
+
})));
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
var _circle, _path$f, _path2$5;
|
|
543
|
+
|
|
544
|
+
function _extends$g() { _extends$g = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
545
|
+
|
|
546
|
+
var SvgArrivalStatusRoundIcon = function SvgArrivalStatusRoundIcon(props) {
|
|
547
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
548
|
+
width: 32,
|
|
549
|
+
height: 32,
|
|
550
|
+
viewBox: "0 0 32 32",
|
|
551
|
+
fill: "none",
|
|
552
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
553
|
+
}, props), _circle || (_circle = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
554
|
+
cx: 16,
|
|
555
|
+
cy: 16,
|
|
556
|
+
r: 16,
|
|
557
|
+
fill: "#F8F9F9"
|
|
558
|
+
})), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
559
|
+
d: "M15.2266 17.0313H18.997M15.2266 13.2607V17.0313V13.2607ZM15.2266 17.0313L24.121 9.03906L15.2266 17.0313Z",
|
|
560
|
+
stroke: "#1371D6",
|
|
561
|
+
strokeWidth: 1.5,
|
|
562
|
+
strokeLinecap: "round",
|
|
563
|
+
strokeLinejoin: "round"
|
|
564
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
565
|
+
d: "M19.4918 8.52344C18.4312 8.02722 17.2477 7.75 15.9995 7.75C11.4431 7.75 7.74945 11.4437 7.74945 16C7.74945 20.5563 11.4431 24.25 15.9995 24.25C20.5558 24.25 24.2495 20.5563 24.2495 16C24.2495 15.2878 24.1592 14.5968 23.9896 13.9375",
|
|
566
|
+
stroke: "#3091EC",
|
|
567
|
+
strokeWidth: 1.5,
|
|
568
|
+
strokeLinecap: "round",
|
|
569
|
+
strokeLinejoin: "round"
|
|
570
|
+
})));
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
var getStatusIcon = function (status) {
|
|
574
|
+
switch (status) {
|
|
575
|
+
case "COMPLETED":
|
|
576
|
+
return SvgCompletedStatusRoundIcon;
|
|
577
|
+
case "PROGRESS":
|
|
578
|
+
return SvgOnGoingStatusRoundIcon;
|
|
579
|
+
case "INCOMING":
|
|
580
|
+
return SvgArrivalStatusRoundIcon;
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
var getTypeData = function (type) {
|
|
584
|
+
switch (type) {
|
|
585
|
+
case "EXPERIENTIAL":
|
|
586
|
+
return {
|
|
587
|
+
pillIcon: SvgRegressionTestRoundIcon,
|
|
588
|
+
};
|
|
589
|
+
case "FUNCTIONAL":
|
|
590
|
+
return {
|
|
591
|
+
pillIcon: SvgFunctionalTestRoundIcon,
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
var Wrapper = styled__default["default"](Card)(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n border-radius: ", ";\n padding: 1rem;\n border: 1px solid ", ";\n\n &:hover {\n box-shadow: ", ";\n }\n"], ["\n border-radius: ", ";\n padding: 1rem;\n border: 1px solid ", ";\n\n &:hover {\n box-shadow: ", ";\n }\n"])), theme.borderRadii.lg, theme.palette.grey["200"], theme.shadows.boxShadow(theme));
|
|
596
|
+
var StyledTag$1 = styled__default["default"](Tag)(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), theme.palette.grey["700"]);
|
|
597
|
+
var StyledTagNew = styled__default["default"](Tag)(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px ", "px;\n color: ", ";\n"], ["\n height: ", "px;\n padding: ", "px ", "px;\n color: ", ";\n"])), function (_a) {
|
|
598
|
+
var theme = _a.theme;
|
|
599
|
+
return theme.space.base * 6;
|
|
600
|
+
}, theme.space.base, function (_a) {
|
|
601
|
+
var theme = _a.theme;
|
|
602
|
+
return theme.space.base * 2;
|
|
603
|
+
}, theme.palette.white);
|
|
604
|
+
var StyledLabel = styled__default["default"](Label)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: ", ";\n color: ", "\n"], ["\n font-size: ", ";\n color: ", "\n"])), theme.fontSizes.sm, theme.palette.grey["500"]);
|
|
605
|
+
var StyledTitleLabel = styled__default["default"](Label)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n word-wrap: break-word;\n"], ["\n color: ", ";\n font-size: ", ";\n word-wrap: break-word;\n"])), theme.palette.blue["600"], theme.fontSizes.lg);
|
|
606
|
+
var Divider = styled__default["default"].div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 100%;\n height: 1px;\n margin: ", " 0;\n background-color: ", ";\n"], ["\n width: 100%;\n height: 1px;\n margin: ", " 0;\n background-color: ", ";\n"])), theme.space.lg, theme.palette.grey["300"]);
|
|
607
|
+
var CardHeader = styled__default["default"].div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n"])));
|
|
608
|
+
var CardBody = styled__default["default"].div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: ", ";\n"], ["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: ", ";\n"])), theme.space.xxl);
|
|
609
|
+
var CardFooter = styled__default["default"].div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n"])));
|
|
610
|
+
var getFormattedLocaleDate = function () {
|
|
611
|
+
return new Date().toLocaleString().substring(0, 10);
|
|
612
|
+
};
|
|
613
|
+
var CampaignCard = function (props) {
|
|
614
|
+
var isNew = props.isNew, date = props.date, title = props.title, subTitle = props.subTitle, status = props.status, type = props.type;
|
|
615
|
+
var shownDate = date === getFormattedLocaleDate() ? "Today" : date;
|
|
616
|
+
var StatusIcon = getStatusIcon(status !== null && status !== void 0 ? status : "PROGRESS");
|
|
617
|
+
var typeData = getTypeData(type);
|
|
618
|
+
var PillIcon = typeData === null || typeData === void 0 ? void 0 : typeData.pillIcon;
|
|
619
|
+
var titleCut = title;
|
|
620
|
+
if (title.length > 42) {
|
|
621
|
+
titleCut = "".concat(title.substring(0, 39), "...");
|
|
622
|
+
}
|
|
623
|
+
var subTitleCut = subTitle;
|
|
624
|
+
if (subTitle.length > 29) {
|
|
625
|
+
subTitleCut = "".concat(subTitle.substring(0, 26), "...");
|
|
626
|
+
}
|
|
627
|
+
return jsxRuntime.jsxs(Wrapper, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel, __assign({ isRegular: true }, { children: shownDate })), isNew && (jsxRuntime.jsx(StyledTagNew, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: "New!" }, { children: "New!" })))] }), jsxRuntime.jsxs(CardBody, { children: [jsxRuntime.jsx(StyledLabel, __assign({ isRegular: true }, { children: titleCut })), jsxRuntime.jsx(StyledTitleLabel, __assign({ isRegular: true }, { children: subTitleCut }))] }), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsxs(CardFooter, { children: [typeData &&
|
|
628
|
+
jsxRuntime.jsxs(StyledTag$1, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(Tag.Avatar, { children: jsxRuntime.jsx(PillIcon, {}) }), props.pillText] })), jsxRuntime.jsx(StatusIcon, {})] })] }));
|
|
629
|
+
};
|
|
630
|
+
var templateObject_1$x, templateObject_2$4, templateObject_3$1, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
631
|
+
|
|
338
632
|
/**
|
|
339
633
|
* Title is a basic component used to display a title. Often used in card headers.
|
|
340
634
|
*/
|
|
341
635
|
var Close = function (props) { return jsxRuntime.jsx(reactNotifications.Close, __assign({}, props)); };
|
|
342
636
|
|
|
637
|
+
var _path$e, _path2$4, _path3$3, _path4$2;
|
|
638
|
+
|
|
639
|
+
function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
640
|
+
|
|
641
|
+
var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
642
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
643
|
+
width: 24,
|
|
644
|
+
height: 24,
|
|
645
|
+
viewBox: "0 0 24 24",
|
|
646
|
+
fill: "none",
|
|
647
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
648
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
649
|
+
d: "M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",
|
|
650
|
+
fill: "#F8F9F9"
|
|
651
|
+
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
652
|
+
d: "M20.6953 5.73905C21.0148 5.41953 21.0148 4.90149 20.6953 4.58197C20.3758 4.26245 19.8577 4.26245 19.5382 4.58197L11.88 12.2402L10.0849 9.95981C9.80539 9.60476 9.29098 9.54352 8.93593 9.82303C8.58088 10.1025 8.51963 10.6169 8.79914 10.972L11.1642 13.9763C11.3089 14.16 11.5252 14.2731 11.7586 14.2869C11.9921 14.3008 12.2203 14.2141 12.3856 14.0487L20.6953 5.73905Z",
|
|
653
|
+
fill: "#27DD70"
|
|
654
|
+
})), _path3$3 || (_path3$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
655
|
+
d: "M3 12C3 7.02944 7.02944 3 12 3C13.3602 3 14.6521 3.3023 15.8102 3.84415C16.2195 4.03565 16.396 4.52268 16.2045 4.93196C16.013 5.34125 15.526 5.5178 15.1167 5.3263C14.1712 4.88391 13.1156 4.63636 12 4.63636C7.93318 4.63636 4.63636 7.93318 4.63636 12C4.63636 16.0668 7.93318 19.3636 12 19.3636C16.0668 19.3636 19.3636 16.0668 19.3636 12C19.3636 11.3631 19.283 10.7462 19.1317 10.1585C19.0191 9.72084 19.2826 9.27479 19.7202 9.16218C20.1578 9.04957 20.6038 9.31303 20.7165 9.75064C20.9017 10.4705 21 11.2243 21 12C21 16.9705 16.9705 21 12 21C7.02944 21 3 16.9705 3 12Z",
|
|
656
|
+
fill: "#27DD70"
|
|
657
|
+
})), _path4$2 || (_path4$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
658
|
+
d: "M20.6953 5.73905C21.0148 5.41953 21.0148 4.90149 20.6953 4.58197C20.3758 4.26245 19.8577 4.26245 19.5382 4.58197L11.88 12.2402L10.0849 9.95981C9.80539 9.60476 9.29098 9.54352 8.93593 9.82303C8.58088 10.1025 8.51963 10.6169 8.79914 10.972L11.1642 13.9763C11.3089 14.16 11.5252 14.2731 11.7586 14.2869C11.9921 14.3008 12.2203 14.2141 12.3856 14.0487L20.6953 5.73905Z",
|
|
659
|
+
fill: "#158944"
|
|
660
|
+
})));
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
var _path$d, _path2$3, _path3$2, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1, _path11$1;
|
|
664
|
+
|
|
665
|
+
function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
666
|
+
|
|
667
|
+
var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
668
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
669
|
+
width: 24,
|
|
670
|
+
height: 24,
|
|
671
|
+
viewBox: "0 0 24 24",
|
|
672
|
+
fill: "none",
|
|
673
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
674
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
675
|
+
d: "M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",
|
|
676
|
+
fill: "#F8F9F9"
|
|
677
|
+
})), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
678
|
+
d: "M13.059 16.7647C13.059 16.1799 12.585 15.7059 12.0002 15.7059C11.4154 15.7059 10.9414 16.1799 10.9414 16.7647V19.9412C10.9414 20.5259 11.4154 21 12.0002 21C12.585 21 13.059 20.5259 13.059 19.9412V16.7647Z",
|
|
679
|
+
fill: "#D1820A"
|
|
680
|
+
})), _path3$2 || (_path3$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
681
|
+
d: "M16.1149 14.6183C15.7014 14.2048 15.031 14.2048 14.6175 14.6183C14.204 15.0318 14.204 15.7022 14.6175 16.1157L16.8649 18.3631C17.2783 18.7766 17.9488 18.7766 18.3623 18.3631C18.7757 17.9496 18.7757 17.2792 18.3623 16.8657L16.1149 14.6183Z",
|
|
682
|
+
fill: "#D1820A"
|
|
683
|
+
})), _path4$1 || (_path4$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
684
|
+
d: "M16.7649 10.9412C16.1802 10.9412 15.7061 11.4152 15.7061 12C15.7061 12.5848 16.1802 13.0588 16.7649 13.0588H19.9414C20.5262 13.0588 21.0002 12.5848 21.0002 12C21.0002 11.4152 20.5262 10.9412 19.9414 10.9412H16.7649Z",
|
|
685
|
+
fill: "#D1820A"
|
|
686
|
+
})), _path5$1 || (_path5$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
687
|
+
d: "M9.38105 14.6183C9.79455 15.0318 9.79455 15.7022 9.38105 16.1157L7.1337 18.3631C6.7202 18.7766 6.04979 18.7766 5.63629 18.3631C5.2228 17.9496 5.2228 17.2792 5.63629 16.8657L7.88365 14.6183C8.29714 14.2048 8.96756 14.2048 9.38105 14.6183Z",
|
|
688
|
+
fill: "#D1820A"
|
|
689
|
+
})), _path6$1 || (_path6$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
690
|
+
d: "M16.1149 14.6183C15.7014 14.2048 15.031 14.2048 14.6175 14.6183C14.204 15.0318 14.204 15.7022 14.6175 16.1157L16.8649 18.3631C17.2783 18.7766 17.9488 18.7766 18.3623 18.3631C18.7757 17.9496 18.7757 17.2792 18.3623 16.8657L16.1149 14.6183Z",
|
|
691
|
+
fill: "#FBE1AC"
|
|
692
|
+
})), _path7$1 || (_path7$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
693
|
+
d: "M16.7649 10.9412C16.1802 10.9412 15.7061 11.4152 15.7061 12C15.7061 12.5848 16.1802 13.0588 16.7649 13.0588H19.9414C20.5262 13.0588 21.0002 12.5848 21.0002 12C21.0002 11.4152 20.5262 10.9412 19.9414 10.9412H16.7649Z",
|
|
694
|
+
fill: "#FBE1AC"
|
|
695
|
+
})), _path8$1 || (_path8$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
696
|
+
d: "M12 3C12.5848 3 13.0588 3.47405 13.0588 4.05882V7.23529C13.0588 7.82007 12.5848 8.29412 12 8.29412C11.4152 8.29412 10.9412 7.82007 10.9412 7.23529V4.05882C10.9412 3.47405 11.4152 3 12 3Z",
|
|
697
|
+
fill: "#F7BF50"
|
|
698
|
+
})), _path9$1 || (_path9$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
699
|
+
d: "M5.63607 5.63685C6.04957 5.22335 6.71998 5.22335 7.13348 5.63685L9.38083 7.8842C9.79433 8.2977 9.79433 8.96811 9.38083 9.3816C8.96734 9.7951 8.29693 9.7951 7.88343 9.38161L5.63608 7.13425C5.22258 6.72076 5.22258 6.05035 5.63607 5.63685Z",
|
|
700
|
+
fill: "#F7BF50"
|
|
701
|
+
})), _path10$1 || (_path10$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
702
|
+
d: "M3 12C3 11.4152 3.47405 10.9412 4.05882 10.9412H7.23529C7.82007 10.9412 8.29412 11.4152 8.29412 12C8.29412 12.5848 7.82007 13.0588 7.23529 13.0588H4.05882C3.47405 13.0588 3 12.5848 3 12Z",
|
|
703
|
+
fill: "#F7BF50"
|
|
704
|
+
})), _path11$1 || (_path11$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
705
|
+
d: "M18.362 7.13425C18.7755 6.72076 18.7755 6.05035 18.362 5.63685C17.9485 5.22335 17.2781 5.22335 16.8646 5.63685L14.6173 7.8842C14.2038 8.2977 14.2038 8.96811 14.6173 9.3816C15.0308 9.7951 15.7012 9.7951 16.1147 9.38161L18.362 7.13425Z",
|
|
706
|
+
fill: "#F7BF50"
|
|
707
|
+
})));
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
var _path$c, _path2$2, _path3$1;
|
|
711
|
+
|
|
712
|
+
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
713
|
+
|
|
714
|
+
var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
|
|
715
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
716
|
+
width: 24,
|
|
717
|
+
height: 24,
|
|
718
|
+
viewBox: "0 0 24 24",
|
|
719
|
+
fill: "none",
|
|
720
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
721
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
722
|
+
d: "M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",
|
|
723
|
+
fill: "#F8F9F9"
|
|
724
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
725
|
+
d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
|
|
726
|
+
stroke: "#1371D6",
|
|
727
|
+
strokeWidth: 1.5,
|
|
728
|
+
strokeLinecap: "round",
|
|
729
|
+
strokeLinejoin: "round"
|
|
730
|
+
})), _path3$1 || (_path3$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
731
|
+
d: "M15.4918 4.52344C14.4312 4.02722 13.2477 3.75 11.9995 3.75C7.4431 3.75 3.74945 7.44365 3.74945 12C3.74945 16.5563 7.4431 20.25 11.9995 20.25C16.5558 20.25 20.2495 16.5563 20.2495 12C20.2495 11.2878 20.1592 10.5968 19.9896 9.9375",
|
|
732
|
+
stroke: "#3091EC",
|
|
733
|
+
strokeWidth: 1.5,
|
|
734
|
+
strokeLinecap: "round",
|
|
735
|
+
strokeLinejoin: "round"
|
|
736
|
+
})));
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
var _g$2, _path$b;
|
|
740
|
+
|
|
741
|
+
function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
742
|
+
|
|
743
|
+
var SvgCampaignFunctional = function SvgCampaignFunctional(props) {
|
|
744
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
745
|
+
width: 24,
|
|
746
|
+
height: 24,
|
|
747
|
+
viewBox: "0 0 24 24",
|
|
748
|
+
fill: "none",
|
|
749
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
750
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
751
|
+
opacity: 0.3
|
|
752
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
753
|
+
opacity: 0.3,
|
|
754
|
+
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
755
|
+
fill: "#003A57"
|
|
756
|
+
}))), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
757
|
+
d: "M17.9983 7.16705C17.5188 6.58566 17.1422 6.73039 17.1422 6.73039C17.1422 6.73039 16.406 7.02453 16.0401 7.16303C15.6742 7.30153 15.2408 7.17357 15.2408 7.17357L14.7579 6.8851C14.7579 6.8851 14.4296 6.56554 14.3656 6.18067C14.3123 5.78958 14.1888 5.00269 14.1888 5.00269C14.1888 5.00269 14.1356 4.61159 13.3938 4.47257C12.652 4.33356 12.4678 4.68715 12.4678 4.68715C12.4678 4.68715 12.0932 5.38344 11.9091 5.73703C11.7249 6.09062 11.3114 6.27118 11.3114 6.27118L10.7639 6.36908C10.7639 6.36908 10.3144 6.33771 10.0176 6.07271L9.12712 5.27769C9.12712 5.27769 8.8303 5.01268 8.18313 5.38632C7.53595 5.75997 7.61705 6.14953 7.61705 6.14953L7.86033 7.3182C7.94143 7.70776 7.74381 8.11275 7.74381 8.11275L7.38528 8.53794C7.38528 8.53794 7.02217 8.80577 6.62387 8.78845C6.22557 8.77114 5.43527 8.7474 5.43527 8.7474C5.43527 8.7474 5.03697 8.73009 4.78646 9.44201C4.53595 10.1539 4.84804 10.3956 4.84804 10.3956C4.84804 10.3956 5.46774 10.896 5.77983 11.1376C6.09192 11.3793 6.19373 11.8296 6.19373 11.8296L6.20207 12.3921C6.20207 12.3921 6.09618 12.8314 5.79331 13.079C5.49043 13.3266 4.86759 13.8171 4.86759 13.8171C4.86759 13.8171 4.56471 14.0647 4.81769 14.7769C5.08144 15.4828 5.46713 15.4783 5.46713 15.4783C5.46713 15.4783 6.26012 15.4569 6.64582 15.4524C7.03152 15.4479 7.40116 15.7145 7.40116 15.7145L7.76458 16.1447C7.76458 16.1447 7.96976 16.5499 7.89441 16.9425C7.81907 17.3351 7.66208 18.1094 7.66208 18.1094C7.66208 18.1094 7.58674 18.502 8.23785 18.8824C8.88895 19.2629 9.18553 19.0044 9.18553 19.0044C9.18553 19.0044 9.7724 18.4765 10.069 18.218C10.3655 17.9595 10.8115 17.9347 10.8115 17.9347L11.3609 18.0394C11.3609 18.0394 11.77 18.225 11.9608 18.5803C12.1516 18.9356 12.5268 19.6354 12.5268 19.6354C12.5268 19.6354 12.7176 19.9907 13.4583 19.8539C14.1946 19.7343 14.2529 19.337 14.2529 19.337C14.2529 19.337 14.3586 18.5487 14.4232 18.1623C14.4814 17.765 14.8086 17.4598 14.8086 17.4598L15.2939 17.1796C15.2939 17.1796 15.7281 17.0598 16.095 17.1971C16.4682 17.3453 17.1975 17.637 17.1975 17.637C17.1975 17.637 17.5707 17.7851 18.0424 17.2073C18.5142 16.6295 18.3189 16.2913 18.3189 16.2913C18.3189 16.2913 17.9006 15.6164 17.6882 15.2736C17.4759 14.9307 17.5197 14.4836 17.5197 14.4836L17.7038 13.9555C17.7038 13.9555 17.9482 13.5816 18.3203 13.454C18.6925 13.3264 19.4431 13.0822 19.4431 13.0822C19.4431 13.0822 19.8153 12.9546 19.8113 12.2005C19.8074 11.4464 19.4297 11.3153 19.4297 11.3153C19.4297 11.3153 18.6807 11.0641 18.303 10.9331C17.9253 10.802 17.677 10.4217 17.677 10.4217L17.4861 9.8919C17.4861 9.8919 17.4293 9.4447 17.6368 9.1067C17.8443 8.7687 18.2486 8.09891 18.2486 8.09891C18.2486 8.09891 18.4778 7.74844 17.9983 7.16707L17.9983 7.16705ZM9.33902 8.38466L10.6176 10.5992C10.0433 11.149 9.82793 11.9715 10.0567 12.7413L7.86713 14.0054C6.98868 12.0106 7.60355 9.66286 9.33905 8.38457L9.33902 8.38466ZM13.9748 16.414C11.9998 17.2778 9.65918 16.6363 8.37099 14.8783L10.5605 13.6141C11.1128 14.1971 11.9329 14.4219 12.6961 14.1994L13.9748 16.414ZM12.6552 13.132C12.1159 13.4434 11.4325 13.2561 11.1176 12.7107C10.8027 12.1652 10.9822 11.4797 11.5215 11.1684C12.0608 10.857 12.7441 11.0443 13.0591 11.5897C13.374 12.1352 13.1945 12.8207 12.6552 13.132ZM14.8376 15.9158L13.5591 13.7012C14.1333 13.1515 14.3487 12.3289 14.12 11.5591L16.3095 10.295C17.188 12.2898 16.5731 14.6376 14.8376 15.9159L14.8376 15.9158ZM13.6161 10.6863C13.0638 10.1034 12.2437 9.87862 11.4805 10.1011L10.2019 7.88652C12.1769 7.02266 14.5112 7.65314 15.8057 9.42223L13.6161 10.6863Z",
|
|
758
|
+
fill: "#003A57"
|
|
759
|
+
})));
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
var _g$1, _path$a, _path2$1, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
763
|
+
|
|
764
|
+
function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
765
|
+
|
|
766
|
+
var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
767
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
768
|
+
width: 24,
|
|
769
|
+
height: 24,
|
|
770
|
+
viewBox: "0 0 24 24",
|
|
771
|
+
fill: "none",
|
|
772
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
773
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
774
|
+
opacity: 0.3
|
|
775
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
776
|
+
opacity: 0.3,
|
|
777
|
+
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
778
|
+
fill: "#003A57"
|
|
779
|
+
}))), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
780
|
+
d: "M12.4871 3.1964C8.68009 3.1964 5.59901 6.27748 5.59901 10.0844C5.59901 10.2596 5.59901 10.4347 5.62445 10.5854C5.29863 11.1861 4.82313 12.0129 4.24684 12.5138C3.82123 12.8896 3.92102 13.2907 3.97091 13.4404C4.09615 13.7662 4.44641 14.0411 5.02271 14.2417C5.22328 14.3171 5.44831 14.367 5.64889 14.4169L5.67433 16.8463C5.67433 17.7983 6.47565 18.625 7.4531 18.625L8.9305 18.1495L9.08117 19.0262C9.18097 19.6025 9.68191 20.0281 10.2837 20.0281C10.359 20.0281 10.4343 20.0281 10.5087 20.0026L15.1425 19.1769C15.8185 19.0516 16.2441 18.4254 16.1444 17.7494L15.8185 16.1213C17.9975 14.9188 19.375 12.5891 19.375 10.0843C19.375 6.30267 16.2696 3.19629 12.487 3.19629L12.4871 3.1964Z",
|
|
781
|
+
fill: "#003A57",
|
|
782
|
+
stroke: "#003A57"
|
|
783
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
784
|
+
fillRule: "evenodd",
|
|
785
|
+
clipRule: "evenodd",
|
|
786
|
+
d: "M6.39337 10.7688V10.1221H8.06755V10.7688H6.39337Z",
|
|
787
|
+
fill: "#E6EBEE"
|
|
788
|
+
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
789
|
+
fillRule: "evenodd",
|
|
790
|
+
clipRule: "evenodd",
|
|
791
|
+
d: "M7.2994 13.6066L6.98611 13.0474L8.4349 12.1846L8.74818 12.7437L7.2994 13.6066Z",
|
|
792
|
+
fill: "#E6EBEE"
|
|
793
|
+
})), _path4 || (_path4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
794
|
+
fillRule: "evenodd",
|
|
795
|
+
clipRule: "evenodd",
|
|
796
|
+
d: "M8.43603 8.70472L6.98724 7.84335L7.30053 7.28418L8.74931 8.14556L8.43603 8.70472Z",
|
|
797
|
+
fill: "#E6EBEE"
|
|
798
|
+
})), _path5 || (_path5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
799
|
+
fillRule: "evenodd",
|
|
800
|
+
clipRule: "evenodd",
|
|
801
|
+
d: "M16.6807 7.28418L16.994 7.84335L15.5453 8.70472L15.232 8.14556L16.6807 7.28418Z",
|
|
802
|
+
fill: "#E6EBEE"
|
|
803
|
+
})), _path6 || (_path6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
804
|
+
fillRule: "evenodd",
|
|
805
|
+
clipRule: "evenodd",
|
|
806
|
+
d: "M11.677 4.68066H12.305V6.40488H11.677V4.68066Z",
|
|
807
|
+
fill: "#E6EBEE"
|
|
808
|
+
})), _path7 || (_path7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
809
|
+
fillRule: "evenodd",
|
|
810
|
+
clipRule: "evenodd",
|
|
811
|
+
d: "M9.46389 5.29102L10.3017 6.78309L9.75875 7.10574L8.92236 5.61367L9.46389 5.29102Z",
|
|
812
|
+
fill: "#E6EBEE"
|
|
813
|
+
})), _path8 || (_path8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
814
|
+
fillRule: "evenodd",
|
|
815
|
+
clipRule: "evenodd",
|
|
816
|
+
d: "M13.3026 12.9984V14.6233H12.7313L12.7327 15.2511H11.2485L11.2471 14.6233H10.6787V12.9984C9.80544 12.5064 9.24973 11.553 9.24973 10.5252C9.24973 8.97036 10.4802 7.70312 11.9899 7.70312C13.5025 7.70312 14.733 8.97036 14.733 10.5252C14.7316 11.5516 14.1744 12.5049 13.3026 12.9984H13.3026Z",
|
|
817
|
+
fill: "#E6EBEE"
|
|
818
|
+
})), _path9 || (_path9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
819
|
+
fillRule: "evenodd",
|
|
820
|
+
clipRule: "evenodd",
|
|
821
|
+
d: "M14.2242 7.10672L13.6813 6.78407L14.5177 5.29199L15.0606 5.61464L14.2242 7.10672Z",
|
|
822
|
+
fill: "#E6EBEE"
|
|
823
|
+
})), _path10 || (_path10 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
824
|
+
fillRule: "evenodd",
|
|
825
|
+
clipRule: "evenodd",
|
|
826
|
+
d: "M16.6807 13.6066L15.232 12.7437L15.5453 12.1846L16.994 13.0474L16.6807 13.6066Z",
|
|
827
|
+
fill: "#E6EBEE"
|
|
828
|
+
})), _path11 || (_path11 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
829
|
+
fillRule: "evenodd",
|
|
830
|
+
clipRule: "evenodd",
|
|
831
|
+
d: "M17.5866 10.7688H15.9124V10.1221H17.5866V10.7688Z",
|
|
832
|
+
fill: "#E6EBEE"
|
|
833
|
+
})));
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
var StyledTag = styled__default["default"](Tag)(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n background-color: transparent;\n pointer-events: none;\n font-weight: ", ";\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n span {\n font-weight: ", ";\n margin-left: ", ";\n color: ", ";\n }\n"], ["\n background-color: transparent;\n pointer-events: none;\n font-weight: ", ";\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n span {\n font-weight: ", ";\n margin-left: ", ";\n color: ", ";\n }\n"])), function (_a) {
|
|
837
|
+
var theme = _a.theme;
|
|
838
|
+
return theme.fontWeights.regular;
|
|
839
|
+
}, function (_a) {
|
|
840
|
+
var status = _a.status, theme = _a.theme;
|
|
841
|
+
switch (status) {
|
|
842
|
+
case "completed":
|
|
843
|
+
return "color: ".concat(theme.palette.green[800], ";");
|
|
844
|
+
case "progress":
|
|
845
|
+
return "color: ".concat(theme.palette.yellow[700], ";");
|
|
846
|
+
case "incoming":
|
|
847
|
+
return "color: ".concat(theme.palette.azure[600], ";");
|
|
848
|
+
default:
|
|
849
|
+
return "color: ".concat(theme.palette.grey[800], ";");
|
|
850
|
+
}
|
|
851
|
+
}, function (_a) {
|
|
852
|
+
var theme = _a.theme;
|
|
853
|
+
return theme.space.xxs;
|
|
854
|
+
}, function (_a) {
|
|
855
|
+
var theme = _a.theme;
|
|
856
|
+
return theme.fontWeights.bold;
|
|
857
|
+
}, function (_a) {
|
|
858
|
+
var theme = _a.theme;
|
|
859
|
+
return theme.space.xxs;
|
|
860
|
+
}, function (_a) {
|
|
861
|
+
var theme = _a.theme;
|
|
862
|
+
return theme.palette.grey[700];
|
|
863
|
+
});
|
|
864
|
+
/**
|
|
865
|
+
* Counter let users categorize content using a keyword.
|
|
866
|
+
*/
|
|
867
|
+
var Counter = function (props) {
|
|
868
|
+
var status = props.status;
|
|
869
|
+
return (jsxRuntime.jsxs(StyledTag, __assign({}, props, { size: props.size || "large" }, { children: [jsxRuntime.jsx(StyledTag.Avatar, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [status === "completed" && jsxRuntime.jsx(SvgCampaignCompleted, {}), status === "progress" && jsxRuntime.jsx(SvgCampaignProgress, {}), status === "incoming" && jsxRuntime.jsx(SvgCampaignIncoming, {}), status === "functional" && jsxRuntime.jsx(SvgCampaignFunctional, {}), status === "experiential" && jsxRuntime.jsx(SvgCampaignExperiential, {})] }) }), props.children, props.counter !== undefined && jsxRuntime.jsx("span", { children: props.counter })] })));
|
|
870
|
+
};
|
|
871
|
+
Counter.Avatar = StyledTag.Avatar;
|
|
872
|
+
var templateObject_1$w;
|
|
873
|
+
|
|
343
874
|
var UgField$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$v || (templateObject_1$v = __makeTemplateObject([""], [""])));
|
|
344
875
|
var Field$1 = function (props) { return jsxRuntime.jsx(UgField$1, __assign({}, props)); };
|
|
345
876
|
var templateObject_1$v;
|
|
@@ -535,15 +1066,7 @@ var Icon = function (props) {
|
|
|
535
1066
|
};
|
|
536
1067
|
var templateObject_1$m;
|
|
537
1068
|
|
|
538
|
-
var
|
|
539
|
-
/**
|
|
540
|
-
* A Label is used to specify a title for an input.
|
|
541
|
-
* <hr>
|
|
542
|
-
**/
|
|
543
|
-
var Label = function (props) { return jsxRuntime.jsx(UgLabel, __assign({}, props)); };
|
|
544
|
-
var templateObject_1$l;
|
|
545
|
-
|
|
546
|
-
var UgProgress = styled__default["default"](reactLoaders.Progress)(templateObject_1$k || (templateObject_1$k = __makeTemplateObject([""], [""])));
|
|
1069
|
+
var UgProgress = styled__default["default"](reactLoaders.Progress)(templateObject_1$l || (templateObject_1$l = __makeTemplateObject([""], [""])));
|
|
547
1070
|
/**
|
|
548
1071
|
* A Progress loader communicates progress when downloading or uploading content.
|
|
549
1072
|
* <hr>
|
|
@@ -555,9 +1078,9 @@ var UgProgress = styled__default["default"](reactLoaders.Progress)(templateObjec
|
|
|
555
1078
|
- When loading page content, use a Skeleton loader instead
|
|
556
1079
|
*/
|
|
557
1080
|
var Progress = function (props) { return jsxRuntime.jsx(UgProgress, __assign({}, props)); };
|
|
558
|
-
var templateObject_1$
|
|
1081
|
+
var templateObject_1$l;
|
|
559
1082
|
|
|
560
|
-
var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$
|
|
1083
|
+
var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$k || (templateObject_1$k = __makeTemplateObject([""], [""])));
|
|
561
1084
|
/**
|
|
562
1085
|
* A Skeleton loader shows users a blank version of a page or section of a page into which content is gradually loaded. It provides a visual estimate of the space needed.
|
|
563
1086
|
* <hr>
|
|
@@ -572,9 +1095,9 @@ var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObjec
|
|
|
572
1095
|
- To communicate a typing status, use Inline instead
|
|
573
1096
|
*/
|
|
574
1097
|
var Skeleton = function (props) { return jsxRuntime.jsx(UgSkeleton, __assign({}, props)); };
|
|
575
|
-
var templateObject_1$
|
|
1098
|
+
var templateObject_1$k;
|
|
576
1099
|
|
|
577
|
-
var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_1$
|
|
1100
|
+
var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([""], [""])));
|
|
578
1101
|
/**
|
|
579
1102
|
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
580
1103
|
* <hr>
|
|
@@ -583,7 +1106,7 @@ var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_
|
|
|
583
1106
|
- To provide a quick way to navigate to ancestor pages
|
|
584
1107
|
*/
|
|
585
1108
|
var Spinner = function (props) { return jsxRuntime.jsx(UgSpinner, __assign({}, props)); };
|
|
586
|
-
var templateObject_1$
|
|
1109
|
+
var templateObject_1$j;
|
|
587
1110
|
|
|
588
1111
|
/**
|
|
589
1112
|
* Title is a basic component used to display a title. Often used in card headers.
|
|
@@ -637,7 +1160,7 @@ var Logo = function (props) {
|
|
|
637
1160
|
}[props.type] })));
|
|
638
1161
|
};
|
|
639
1162
|
|
|
640
|
-
var ugModalBody = styled__default["default"](reactModals.Body)(templateObject_1$
|
|
1163
|
+
var ugModalBody = styled__default["default"](reactModals.Body)(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
641
1164
|
var theme = _a.theme;
|
|
642
1165
|
return theme.palette.grey["800"];
|
|
643
1166
|
});
|
|
@@ -646,12 +1169,17 @@ var FooterItem = reactModals.FooterItem;
|
|
|
646
1169
|
Modal.Header = reactModals.Header;
|
|
647
1170
|
Modal.Body = ugModalBody;
|
|
648
1171
|
Modal.Footer = reactModals.Footer;
|
|
649
|
-
var templateObject_1$
|
|
1172
|
+
var templateObject_1$i;
|
|
650
1173
|
|
|
1174
|
+
var UgBody = styled__default["default"](reactChrome.Body)(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
1175
|
+
var theme = _a.theme;
|
|
1176
|
+
return theme.palette.white;
|
|
1177
|
+
});
|
|
651
1178
|
/**
|
|
652
1179
|
* A Body defines the main content of an HTML document which displays on the browser
|
|
653
1180
|
*/
|
|
654
|
-
var Body$1 = function (props) { return jsxRuntime.jsx(
|
|
1181
|
+
var Body$1 = function (props) { return jsxRuntime.jsx(UgBody, __assign({}, props)); };
|
|
1182
|
+
var templateObject_1$h;
|
|
655
1183
|
|
|
656
1184
|
/**
|
|
657
1185
|
* A Content defines the main content of an HTML document which displays on the browser
|
|
@@ -771,7 +1299,7 @@ var AppHeader = function (_a) {
|
|
|
771
1299
|
};
|
|
772
1300
|
var templateObject_1$d;
|
|
773
1301
|
|
|
774
|
-
var UgMain = styled__default["default"](reactChrome.Main)(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n @media (
|
|
1302
|
+
var UgMain = styled__default["default"](reactChrome.Main)(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n @media (min-width: ", ") {\n margin: ", "\n }\n \n /* hide scrollbar for IE, Edge and Firefox */\n -ms-overflow-style: none;\n scrollbar-width: none;\n\n ::-webkit-scrollbar {\n display: none;\n }\n \n"], ["\n @media (min-width: ", ") {\n margin: ", "\n }\n \n /* hide scrollbar for IE, Edge and Firefox */\n -ms-overflow-style: none;\n scrollbar-width: none;\n\n ::-webkit-scrollbar {\n display: none;\n }\n \n"])), function (_a) {
|
|
775
1303
|
var theme = _a.theme;
|
|
776
1304
|
return theme.breakpoints.sm;
|
|
777
1305
|
}, function (_a) {
|
|
@@ -1011,7 +1539,7 @@ var Sidebar = function (props) {
|
|
|
1011
1539
|
props.onToggleMenu && props.onToggleMenu();
|
|
1012
1540
|
};
|
|
1013
1541
|
return (jsxRuntime.jsxs(Nav, __assign({}, props, { children: [jsxRuntime.jsx(NavToggle, { onClick: toggleNav, isExpanded: props.isExpanded }), props.tokens && (jsxRuntime.jsx(NavItem, __assign({ hasLogo: true, isExpanded: props.isExpanded, style: { pointerEvents: "none", paddingTop: 0 } }, { children: jsxRuntime.jsx(Card, __assign({ style: { padding: theme.space.sm, width: "70%" } }, { children: jsxRuntime.jsxs(TokenContainer, { children: [jsxRuntime.jsx(SvgToken, { width: 32 }), jsxRuntime.jsx(Span, __assign({ isBold: true, style: { marginLeft: theme.space.xs } }, { children: "12 Tokens" }))] }) })) }))), jsxRuntime.jsxs(NavItem, __assign({ isExpanded: props.isExpanded, isCurrent: nav === "home", onClick: function () { return setNav("home"); } }, { children: [jsxRuntime.jsx(NavItemIcon, __assign({ isStyled: true }, { children: nav === "home" ? jsxRuntime.jsx(SvgHomeFillStyled, {}) : jsxRuntime.jsx(SvgHomeFill, {}) })), jsxRuntime.jsx(NavItemText, { children: props.homeItemLabel || "My Campaigns" })] })), jsxRuntime.jsx(NavDivider, __assign({ isExpanded: props.isExpanded }, { children: props.dividerLabel || "" })), props.projects &&
|
|
1014
|
-
props.projects.map(function (project) { return (jsxRuntime.jsxs(NavItemProject, __assign({ isExpanded: props.isExpanded, isCurrent: nav === project.id, onClick: function () { return setNav(project.id); } }, { children: [jsxRuntime.jsx(NavItemProject.Title, { title: project.title, children: project.title }), jsxRuntime.jsx(NavItemProject.SubTitle, { children: project.campaigns })] }))); }), jsxRuntime.jsxs(NavItem, __assign({ isExpanded: props.isExpanded, hasBrandmark: true, title: "Be smart from the start", style: { pointerEvents: "none" } }, { children: [jsxRuntime.jsx(NavItemIcon, { children: jsxRuntime.jsx(Logo, { type: "icon", size: 150 }) }), jsxRuntime.jsx(NavItemText, { children: "UNGUESS" })] }))] })));
|
|
1542
|
+
props.projects.map(function (project) { return (jsxRuntime.jsxs(NavItemProject, __assign({ isExpanded: props.isExpanded, isCurrent: nav === project.id, onClick: function () { return setNav(project.id); } }, { children: [jsxRuntime.jsx(NavItemProject.Title, { title: project.title, children: project.title }), jsxRuntime.jsx(NavItemProject.SubTitle, { children: project.campaigns })] }), project.id)); }), jsxRuntime.jsxs(NavItem, __assign({ isExpanded: props.isExpanded, hasBrandmark: true, title: "Be smart from the start", style: { pointerEvents: "none" } }, { children: [jsxRuntime.jsx(NavItemIcon, { children: jsxRuntime.jsx(Logo, { type: "icon", size: 150 }) }), jsxRuntime.jsx(NavItemText, { children: "UNGUESS" })] }))] })));
|
|
1015
1543
|
};
|
|
1016
1544
|
var templateObject_1$5;
|
|
1017
1545
|
|
|
@@ -1067,21 +1595,6 @@ var GroupRow = function (props) { return jsxRuntime.jsx(reactTables.GroupRow, __
|
|
|
1067
1595
|
var Caption = function (props) { return jsxRuntime.jsx(reactTables.Caption, __assign({}, props)); };
|
|
1068
1596
|
var templateObject_1$3;
|
|
1069
1597
|
|
|
1070
|
-
/**
|
|
1071
|
-
* Tags let users categorize content using a keyword.
|
|
1072
|
-
|
|
1073
|
-
* Used for this:
|
|
1074
|
-
- To add metadata to an element such as category, attribute, or property
|
|
1075
|
-
- To communicate status
|
|
1076
|
-
- To represent parameters of a filter
|
|
1077
|
-
|
|
1078
|
-
* Not for this:
|
|
1079
|
-
- To prompt an action by the user, use a Button instead
|
|
1080
|
-
*/
|
|
1081
|
-
var Tag = function (props) { return jsxRuntime.jsx(reactTags.Tag, __assign({}, props)); };
|
|
1082
|
-
Tag.Avatar = reactTags.Tag.Avatar;
|
|
1083
|
-
Tag.Close = reactTags.Tag.Close;
|
|
1084
|
-
|
|
1085
1598
|
/**
|
|
1086
1599
|
* Tiles are Radio buttons styled with icons or images.
|
|
1087
1600
|
|
|
@@ -1161,6 +1674,7 @@ exports.BrandItem = BrandItem;
|
|
|
1161
1674
|
exports.Breadcrumb = Breadcrumb;
|
|
1162
1675
|
exports.Button = Button;
|
|
1163
1676
|
exports.ButtonGroup = ButtonGroup;
|
|
1677
|
+
exports.CampaignCard = CampaignCard;
|
|
1164
1678
|
exports.Caption = Caption;
|
|
1165
1679
|
exports.Card = Card;
|
|
1166
1680
|
exports.Checkbox = Checkbox;
|
|
@@ -1169,6 +1683,7 @@ exports.Close = Close;
|
|
|
1169
1683
|
exports.Code = Code;
|
|
1170
1684
|
exports.Col = Col;
|
|
1171
1685
|
exports.Content = Content;
|
|
1686
|
+
exports.Counter = Counter;
|
|
1172
1687
|
exports.CursorPagination = CursorPagination;
|
|
1173
1688
|
exports.Dropdown = Dropdown;
|
|
1174
1689
|
exports.DropdownField = index$1;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CardProps } from "../cards/_types";
|
|
2
|
+
export interface CampaignCardsProps extends CardProps {
|
|
3
|
+
/**
|
|
4
|
+
* displays a new tag in the top right
|
|
5
|
+
*/
|
|
6
|
+
isNew?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* displays the date, if is the current day, the word "Today" will be shown instead
|
|
9
|
+
* use this format DD/MM/YYYY
|
|
10
|
+
*/
|
|
11
|
+
date: string;
|
|
12
|
+
/**
|
|
13
|
+
* the main topic of the card
|
|
14
|
+
*/
|
|
15
|
+
title: string;
|
|
16
|
+
/**
|
|
17
|
+
* a specification to the topic of the card
|
|
18
|
+
*/
|
|
19
|
+
subTitle: string;
|
|
20
|
+
/**
|
|
21
|
+
* the status of the card,
|
|
22
|
+
* can be only
|
|
23
|
+
* "COMPLETED" or "PROGRESS" or "INCOMING"
|
|
24
|
+
* default is "INCOMING"
|
|
25
|
+
*/
|
|
26
|
+
status?: 'COMPLETED' | 'PROGRESS' | 'INCOMING';
|
|
27
|
+
/**
|
|
28
|
+
* this renders the pill of the card,
|
|
29
|
+
* can be only
|
|
30
|
+
* "FUNCTIONAL" or "EXPERIENTIAL"
|
|
31
|
+
* if nothing of that is chosen the pill will not be shown
|
|
32
|
+
*/
|
|
33
|
+
type?: 'FUNCTIONAL' | 'EXPERIENTIAL';
|
|
34
|
+
/**
|
|
35
|
+
* this renders the pill text
|
|
36
|
+
* if the value is not defined the pill text will not be shown
|
|
37
|
+
*/
|
|
38
|
+
pillText?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CampaignCardsProps } from "./_types";
|
|
3
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
4
|
+
export declare const SingleCard: Story<CampaignCardsProps>;
|
|
5
|
+
export declare const Grid: Story<CampaignCardsProps>;
|
|
6
|
+
declare const _default: ComponentMeta<(props: CampaignCardsProps) => JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -148,19 +148,26 @@ declare const theme: {
|
|
|
148
148
|
horizontal: string;
|
|
149
149
|
dark: string;
|
|
150
150
|
};
|
|
151
|
+
borderRadii: {
|
|
152
|
+
lg: string;
|
|
153
|
+
sm: string;
|
|
154
|
+
md: string;
|
|
155
|
+
};
|
|
151
156
|
components: {
|
|
152
157
|
Headers: any;
|
|
153
158
|
};
|
|
159
|
+
shadows: {
|
|
160
|
+
boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
|
|
161
|
+
sm: (color: string) => string;
|
|
162
|
+
md: (color: string) => string;
|
|
163
|
+
lg: (offsetY: string, blurRadius: string, color: string) => string;
|
|
164
|
+
};
|
|
154
165
|
rtl: boolean;
|
|
155
166
|
document?: any;
|
|
156
167
|
borders: {
|
|
157
168
|
sm: string;
|
|
158
169
|
md: string;
|
|
159
170
|
};
|
|
160
|
-
borderRadii: {
|
|
161
|
-
sm: string;
|
|
162
|
-
md: string;
|
|
163
|
-
};
|
|
164
171
|
borderStyles: {
|
|
165
172
|
solid: string;
|
|
166
173
|
};
|
|
@@ -223,11 +230,6 @@ declare const theme: {
|
|
|
223
230
|
sm: string;
|
|
224
231
|
md: string;
|
|
225
232
|
};
|
|
226
|
-
shadows: {
|
|
227
|
-
sm: (color: string) => string;
|
|
228
|
-
md: (color: string) => string;
|
|
229
|
-
lg: (offsetY: string, blurRadius: string, color: string) => string;
|
|
230
|
-
};
|
|
231
233
|
space: {
|
|
232
234
|
base: number;
|
|
233
235
|
xxs: string;
|