@appquality/unguess-design-system 2.10.60 → 2.10.61

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 CHANGED
@@ -1,3 +1,22 @@
1
+ # v2.10.61 (Fri Jul 22 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Add a new customizable editor component [#77](https://github.com/AppQuality/unguess-design-system/pull/77) ([@cannarocks](https://github.com/cannarocks))
6
+ - feat(editor-ui): Add header and footer [#76](https://github.com/AppQuality/unguess-design-system/pull/76) ([@cannarocks](https://github.com/cannarocks))
7
+ - Cup 1042 setup wygiwys editor [#75](https://github.com/AppQuality/unguess-design-system/pull/75) ([@cannarocks](https://github.com/cannarocks))
8
+
9
+ #### 🔩 Dependency Updates
10
+
11
+ - chore(deps): bump terser from 4.8.0 to 4.8.1 [#74](https://github.com/AppQuality/unguess-design-system/pull/74) ([@dependabot[bot]](https://github.com/dependabot[bot]))
12
+
13
+ #### Authors: 2
14
+
15
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
16
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
17
+
18
+ ---
19
+
1
20
  # v2.10.60 (Tue Jun 21 2022)
2
21
 
3
22
  #### ⚠️ Pushed to `master`
package/build/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export * from "./stories/dropdowns/multiselect";
23
23
  export * from "./stories/dropdowns/select";
24
24
  export * from "./stories/dropdowns/autocomplete";
25
25
  export * from "./stories/dropdowns/menuheader";
26
+ export * from "./stories/editor";
26
27
  export * from "./stories/forms/checkbox";
27
28
  export * from "./stories/forms/checkbox/cards";
28
29
  export * as FormField from "./stories/forms/field";
package/build/index.js CHANGED
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var styled = require('styled-components');
6
6
  require('@zendeskgarden/css-bedrock');
7
7
  var reactTheming = require('@zendeskgarden/react-theming');
8
+ var UAParser = require('ua-parser-js');
8
9
  var jsxRuntime = require('react/jsx-runtime');
9
10
  var reactAccordions = require('@zendeskgarden/react-accordions');
10
11
  var reactNotifications = require('@zendeskgarden/react-notifications');
@@ -17,6 +18,10 @@ var reactLoaders = require('@zendeskgarden/react-loaders');
17
18
  var reactTypography = require('@zendeskgarden/react-typography');
18
19
  var reactModals = require('@zendeskgarden/react-modals');
19
20
  var reactDropdowns = require('@zendeskgarden/react-dropdowns');
21
+ var react = require('@tiptap/react');
22
+ var Typography = require('@tiptap/extension-typography');
23
+ var StarterKit = require('@tiptap/starter-kit');
24
+ var Placeholder = require('@tiptap/extension-placeholder');
20
25
  var reactForms = require('@zendeskgarden/react-forms');
21
26
  var reactGrid = require('@zendeskgarden/react-grid');
22
27
  var reactChrome = require('@zendeskgarden/react-chrome');
@@ -46,7 +51,11 @@ function _interopNamespace(e) {
46
51
  }
47
52
 
48
53
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
54
+ var UAParser__default = /*#__PURE__*/_interopDefaultLegacy(UAParser);
49
55
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
56
+ var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
57
+ var StarterKit__default = /*#__PURE__*/_interopDefaultLegacy(StarterKit);
58
+ var Placeholder__default = /*#__PURE__*/_interopDefaultLegacy(Placeholder);
50
59
 
51
60
  /******************************************************************************
52
61
  Copyright (c) Microsoft Corporation.
@@ -231,6 +240,11 @@ var boxShadow = function (theme) {
231
240
  var blurRadius = "".concat(space.base * 2, "px");
232
241
  var shadowColor = reactTheming.getColor(palette.grey, 800, theme, 0.15);
233
242
  return shadows.lg(offsetY, blurRadius, shadowColor);
243
+ };
244
+ var isMac = function () {
245
+ var parser = new UAParser__default["default"]();
246
+ var os = parser.getOS().name;
247
+ return os && /Mac OS|iOS/.test(os);
234
248
  };
235
249
 
236
250
  var gradients = {
@@ -245,8 +259,8 @@ var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), {
245
259
 
246
260
  var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600], warningHue: palette.yellow[600], successHue: palette.teal["M600"], dangerHue: palette.red[400], accentHue: palette.water[600] }), palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 }), gradients: gradients, borderRadii: __assign(__assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), components: components, shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
247
261
 
248
- var GlobalStyle = styled.createGlobalStyle(templateObject_1$19 || (templateObject_1$19 = __makeTemplateObject(["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n\n html {\n overflow-y: auto;\n }\n\n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"], ["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n\n html {\n overflow-y: auto;\n }\n\n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"])), theme.palette.grey["200"], theme.palette.grey["200"], theme.palette.blue["200"], theme.palette.blue["200"], theme.fonts.system);
249
- var templateObject_1$19;
262
+ var GlobalStyle = styled.createGlobalStyle(templateObject_1$1e || (templateObject_1$1e = __makeTemplateObject(["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n\n html {\n overflow-y: auto;\n }\n\n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"], ["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n\n html {\n overflow-y: auto;\n }\n\n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"])), theme.palette.grey["200"], theme.palette.grey["200"], theme.palette.blue["200"], theme.palette.blue["200"], theme.fonts.system);
263
+ var templateObject_1$1e;
250
264
 
251
265
  /**
252
266
  * Accordions are headers that can be expanded to reveal content or collapsed to hide it.
@@ -261,14 +275,14 @@ Accordion.Header = reactAccordions.Accordion.Header;
261
275
  Accordion.Label = reactAccordions.Accordion.Label;
262
276
  Accordion.Panel = reactAccordions.Accordion.Panel;
263
277
 
264
- var UgAlert = styled__default["default"](reactNotifications.Alert)(templateObject_1$18 || (templateObject_1$18 = __makeTemplateObject(["\n background-color: white;\n color: ", ";\n border-width: 2px;\n font-size: ", ";\n"], ["\n background-color: white;\n color: ", ";\n border-width: 2px;\n font-size: ", ";\n"])), function (_a) {
278
+ var UgAlert = styled__default["default"](reactNotifications.Alert)(templateObject_1$1d || (templateObject_1$1d = __makeTemplateObject(["\n background-color: white;\n color: ", ";\n border-width: 2px;\n font-size: ", ";\n"], ["\n background-color: white;\n color: ", ";\n border-width: 2px;\n font-size: ", ";\n"])), function (_a) {
265
279
  var theme = _a.theme;
266
280
  return theme.palette.grey[700];
267
281
  }, function (_a) {
268
282
  var theme = _a.theme;
269
283
  return theme.fontSizes.sm;
270
284
  });
271
- var UgAlertTitle = styled__default["default"](reactNotifications.Title)(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n font-size: ", ";\n"], ["\n font-size: ", ";\n"])), function (_a) {
285
+ var UgAlertTitle = styled__default["default"](reactNotifications.Title)(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n font-size: ", ";\n"], ["\n font-size: ", ";\n"])), function (_a) {
272
286
  var theme = _a.theme;
273
287
  return theme.fontSizes.md;
274
288
  });
@@ -282,9 +296,9 @@ var UgAlertTitle = styled__default["default"](reactNotifications.Title)(template
282
296
  var Alert = function (props) { return jsxRuntime.jsx(UgAlert, __assign({}, props)); };
283
297
  Alert.Title = UgAlertTitle;
284
298
  Alert.Close = reactNotifications.Close;
285
- var templateObject_1$18, templateObject_2$s;
299
+ var templateObject_1$1d, templateObject_2$u;
286
300
 
287
- var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$17 || (templateObject_1$17 = __makeTemplateObject(["\n text-transform: uppercase;\n\n ", "\n"], ["\n text-transform: uppercase;\n\n ", "\n"])), function (props) {
301
+ var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$1c || (templateObject_1$1c = __makeTemplateObject(["\n text-transform: uppercase;\n\n ", "\n"], ["\n text-transform: uppercase;\n\n ", "\n"])), function (props) {
288
302
  return props.avatarType &&
289
303
  props.avatarType !== "image" &&
290
304
  "background: ".concat(props.backgroundColor || theme.gradients.dark, ";");
@@ -308,7 +322,7 @@ var Avatar = function (props) {
308
322
  return (jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
309
323
  };
310
324
  Avatar.Text = UgAvatar.Text;
311
- var templateObject_1$17;
325
+ var templateObject_1$1c;
312
326
 
313
327
  /**
314
328
  * Breadcrumbs mark and communicate a user’s location in the product.
@@ -339,7 +353,7 @@ var getThemeStyle = function (props) {
339
353
  }
340
354
  return theme;
341
355
  };
342
- var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$16 || (templateObject_1$16 = __makeTemplateObject([""], [""])));
356
+ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$1b || (templateObject_1$1b = __makeTemplateObject([""], [""])));
343
357
  /**
344
358
  * Buttons let users take action quickly.
345
359
  * Use a Button to enable actions or decisions that are important to a user’s workflow.
@@ -357,7 +371,7 @@ var Button = function (props) {
357
371
  };
358
372
  Button.StartIcon = UgButton.StartIcon;
359
373
  Button.EndIcon = UgButton.EndIcon;
360
- var templateObject_1$16;
374
+ var templateObject_1$1b;
361
375
 
362
376
  /**
363
377
  A Button group lets users make a selection from a set of options.
@@ -387,7 +401,7 @@ Used for this:
387
401
  **/
388
402
  var SplitButton = function (props) { return (jsxRuntime.jsx(reactButtons.SplitButton, __assign({}, props))); };
389
403
 
390
- var UgCard = styled__default["default"](reactNotifications.Well)(templateObject_1$15 || (templateObject_1$15 = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n ", "\n"])), function (_a) {
404
+ var UgCard = styled__default["default"](reactNotifications.Well)(templateObject_1$1a || (templateObject_1$1a = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n ", "\n"])), function (_a) {
391
405
  var theme = _a.theme;
392
406
  return theme.borderRadii.lg;
393
407
  }, function (_a) {
@@ -408,7 +422,7 @@ var UgCard = styled__default["default"](reactNotifications.Well)(templateObject_
408
422
  - To group related content
409
423
  */
410
424
  var Card = function (props) { return jsxRuntime.jsx(UgCard, __assign({}, props)); };
411
- var UgContainerCard = styled__default["default"](reactNotifications.Well)(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n\n @media (max-width: ", ") {\n padding: ", ";\n }\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n\n @media (max-width: ", ") {\n padding: ", ";\n }\n"])), function (_a) {
425
+ var UgContainerCard = styled__default["default"](reactNotifications.Well)(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n\n @media (max-width: ", ") {\n padding: ", ";\n }\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n\n @media (max-width: ", ") {\n padding: ", ";\n }\n"])), function (_a) {
412
426
  var theme = _a.theme;
413
427
  return theme.borderRadii.xl;
414
428
  }, function (_a) {
@@ -425,7 +439,7 @@ var UgContainerCard = styled__default["default"](reactNotifications.Well)(templa
425
439
  return "".concat(theme.space.xl, " ").concat(theme.space.md);
426
440
  });
427
441
  var ContainerCard = function (props) { return jsxRuntime.jsx(UgContainerCard, __assign({}, props)); };
428
- var templateObject_1$15, templateObject_2$r;
442
+ var templateObject_1$1a, templateObject_2$t;
429
443
 
430
444
  /**
431
445
  * Tags let users categorize content using a keyword.
@@ -442,12 +456,12 @@ var Tag = function (props) { return jsxRuntime.jsx(reactTags.Tag, __assign({}, p
442
456
  Tag.Avatar = reactTags.Tag.Avatar;
443
457
  Tag.Close = reactTags.Tag.Close;
444
458
 
445
- var _g$2, _path$n;
459
+ var _g$2, _path$t;
446
460
 
447
- function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : 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$p.apply(this, arguments); }
461
+ function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : 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$v.apply(this, arguments); }
448
462
 
449
463
  var SvgCampaignFunctional = function SvgCampaignFunctional(props) {
450
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
464
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
451
465
  width: 24,
452
466
  height: 24,
453
467
  viewBox: "0 0 24 24",
@@ -459,18 +473,18 @@ var SvgCampaignFunctional = function SvgCampaignFunctional(props) {
459
473
  opacity: 0.3,
460
474
  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",
461
475
  fill: "#003A57"
462
- }))), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
476
+ }))), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
463
477
  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",
464
478
  fill: "#003A57"
465
479
  })));
466
480
  };
467
481
 
468
- var _g$1, _path$m, _path2$3, _path3$3, _path4$2, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1, _path11$1;
482
+ var _g$1, _path$s, _path2$4, _path3$3, _path4$2, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1, _path11$1;
469
483
 
470
- function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : 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$o.apply(this, arguments); }
484
+ function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : 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$u.apply(this, arguments); }
471
485
 
472
486
  var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
473
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
487
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
474
488
  width: 25,
475
489
  height: 24,
476
490
  viewBox: "0 0 25 24",
@@ -481,11 +495,11 @@ var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
481
495
  }, /*#__PURE__*/React__namespace.createElement("path", {
482
496
  d: "M12.1641 24C18.7915 24 24.1641 18.6274 24.1641 12C24.1641 5.37258 18.7915 0 12.1641 0C5.53665 0 0.164062 5.37258 0.164062 12C0.164062 18.6274 5.53665 24 12.1641 24Z",
483
497
  fill: "#D3ECDB"
484
- }))), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
498
+ }))), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
485
499
  opacity: 0.8,
486
500
  d: "M12.653 3.1964C8.84605 3.1964 5.76496 6.27748 5.76496 10.0844C5.76496 10.2596 5.76496 10.4347 5.7904 10.5854C5.46458 11.1861 4.98908 12.0129 4.41279 12.5138C3.98719 12.8896 4.08697 13.2907 4.13687 13.4404C4.26211 13.7662 4.61237 14.0411 5.18866 14.2417C5.38924 14.3171 5.61427 14.367 5.81485 14.4169L5.84028 16.8463C5.84028 17.7983 6.6416 18.625 7.61905 18.625L9.09645 18.1495L9.24713 19.0262C9.34693 19.6025 9.84787 20.0281 10.4496 20.0281C10.5249 20.0281 10.6003 20.0281 10.6746 20.0026L15.3084 19.1769C15.9845 19.0516 16.4101 18.4254 16.3103 17.7494L15.9845 16.1213C18.1634 14.9188 19.541 12.5891 19.541 10.0843C19.541 6.30267 16.4356 3.19629 12.6529 3.19629L12.653 3.1964Z",
487
501
  fill: "#70C38A"
488
- })), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
502
+ })), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
489
503
  fillRule: "evenodd",
490
504
  clipRule: "evenodd",
491
505
  d: "M6.55859 10.7679V10.1211H8.23278V10.7679H6.55859Z",
@@ -538,21 +552,21 @@ var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
538
552
  })));
539
553
  };
540
554
 
541
- var _path$l, _path2$2, _path3$2, _path4$1;
555
+ var _path$r, _path2$3, _path3$2, _path4$1;
542
556
 
543
- function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : 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$n.apply(this, arguments); }
557
+ function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : 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$t.apply(this, arguments); }
544
558
 
545
559
  var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
546
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
560
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
547
561
  width: 24,
548
562
  height: 24,
549
563
  viewBox: "0 0 24 24",
550
564
  fill: "none",
551
565
  xmlns: "http://www.w3.org/2000/svg"
552
- }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
566
+ }, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
553
567
  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",
554
568
  fill: "#F8F9F9"
555
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
569
+ })), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
556
570
  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",
557
571
  fill: "#27DD70"
558
572
  })), _path3$2 || (_path3$2 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -564,21 +578,21 @@ var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
564
578
  })));
565
579
  };
566
580
 
567
- var _path$k, _path2$1, _path3$1, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
581
+ var _path$q, _path2$2, _path3$1, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
568
582
 
569
- function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : 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$m.apply(this, arguments); }
583
+ function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : 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$s.apply(this, arguments); }
570
584
 
571
585
  var SvgCampaignProgress = function SvgCampaignProgress(props) {
572
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
586
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
573
587
  width: 24,
574
588
  height: 24,
575
589
  viewBox: "0 0 24 24",
576
590
  fill: "none",
577
591
  xmlns: "http://www.w3.org/2000/svg"
578
- }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
592
+ }, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
579
593
  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",
580
594
  fill: "#F8F9F9"
581
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
595
+ })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
582
596
  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",
583
597
  fill: "#D1820A"
584
598
  })), _path3$1 || (_path3$1 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -611,21 +625,21 @@ var SvgCampaignProgress = function SvgCampaignProgress(props) {
611
625
  })));
612
626
  };
613
627
 
614
- var _path$j, _path2, _path3;
628
+ var _path$p, _path2$1, _path3;
615
629
 
616
- function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : 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$l.apply(this, arguments); }
630
+ function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : 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$r.apply(this, arguments); }
617
631
 
618
632
  var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
619
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
633
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
620
634
  width: 24,
621
635
  height: 24,
622
636
  viewBox: "0 0 24 24",
623
637
  fill: "none",
624
638
  xmlns: "http://www.w3.org/2000/svg"
625
- }, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
639
+ }, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
626
640
  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",
627
641
  fill: "#F8F9F9"
628
- })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
642
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
629
643
  d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
630
644
  stroke: "#1371D6",
631
645
  strokeWidth: 1.5,
@@ -640,7 +654,7 @@ var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
640
654
  })));
641
655
  };
642
656
 
643
- var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$14 || (templateObject_1$14 = __makeTemplateObject(["\n border-radius: ", ";\n ", "\n"], ["\n border-radius: ", ";\n ", "\n"])), function (props) { return props.theme.borderRadii.xxl; }, function (props) {
657
+ var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$19 || (templateObject_1$19 = __makeTemplateObject(["\n border-radius: ", ";\n ", "\n"], ["\n border-radius: ", ";\n ", "\n"])), function (props) { return props.theme.borderRadii.xxl; }, function (props) {
644
658
  return props.isLight ?
645
659
  "\n &:before {\n background-image: linear-gradient(45deg, transparent, ".concat(props.theme.palette.grey[200], ", transparent);\n }\n ") : "\n background-color: ".concat(props.theme.palette.grey[200], ";\n ");
646
660
  });
@@ -658,22 +672,22 @@ var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObjec
658
672
  - To communicate a typing status, use Inline instead
659
673
  */
660
674
  var Skeleton = function (props) { return jsxRuntime.jsx(UgSkeleton, __assign({}, props)); };
661
- var templateObject_1$14;
675
+ var templateObject_1$19;
662
676
 
663
- var CardMeta = styled__default["default"].div(templateObject_1$13 || (templateObject_1$13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
677
+ var CardMeta = styled__default["default"].div(templateObject_1$18 || (templateObject_1$18 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
664
678
  var theme = _a.theme, direction = _a.direction, justifyContent = _a.justifyContent;
665
679
  return "\n display: flex;\n align-items: center;\n flex-direction: ".concat(direction || "row", ";\n justify-content: ").concat(justifyContent || "space-between", ";\n height: ").concat(theme.space.base * 6, "px;\n padding: ").concat(theme.space.xxs, " 0;\n margin-bottom: ").concat(theme.space.xs, ";\n ");
666
680
  });
667
- var templateObject_1$13;
681
+ var templateObject_1$18;
668
682
 
669
- var CardThumbnail = styled__default["default"].div(templateObject_1$12 || (templateObject_1$12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
683
+ var CardThumbnail = styled__default["default"].div(templateObject_1$17 || (templateObject_1$17 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
670
684
  var theme = _a.theme, align = _a.align, isStretched = _a.isStretched;
671
685
  return "\n display: flex;\n\n ".concat(!isStretched ? "max-width: ".concat(theme.space.base * 16, "px") : "", ";\n max-height: ").concat(isStretched ? '150px' : "".concat(theme.space.base * 16, "px"), ";\n ").concat(align === "left" ? "margin-right: auto;" : '', "\n ").concat(align === "right" ? "margin-left: auto;" : '', "\n ").concat(align === "center" || isStretched ? "margin: auto;" : '', "\n\n padding: ").concat(theme.space.xxs, " 0;\n\n svg {\n width: 100%;\n height: auto;\n }\n ");
672
686
  });
673
687
  CardThumbnail.defaultProps = {
674
688
  align: "left"
675
689
  };
676
- var templateObject_1$12;
690
+ var templateObject_1$17;
677
691
 
678
692
  /**
679
693
  * Type components come in small, medium, large, extra-large, extra-extra-large, and extra-extra-extra-large.
@@ -685,11 +699,11 @@ var XL = function (props) { return jsxRuntime.jsx(reactTypography.XL, __assign({
685
699
  var XXL = function (props) { return jsxRuntime.jsx(reactTypography.XXL, __assign({}, props)); };
686
700
  var XXXL = function (props) { return jsxRuntime.jsx(reactTypography.XXXL, __assign({}, props)); };
687
701
 
688
- var Label$1 = styled__default["default"](SM)(templateObject_1$11 || (templateObject_1$11 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
702
+ var Label$1 = styled__default["default"](SM)(templateObject_1$16 || (templateObject_1$16 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
689
703
  var theme = _a.theme;
690
704
  return theme.palette.grey[500];
691
705
  });
692
- var Title$2 = styled__default["default"](LG)(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n color: ", ";\n font-weight: ", ";\n margin-top: ", ";\n"], ["\n color: ", ";\n font-weight: ", ";\n margin-top: ", ";\n"])), function (_a) {
706
+ var Title$3 = styled__default["default"](LG)(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n color: ", ";\n font-weight: ", ";\n margin-top: ", ";\n"], ["\n color: ", ";\n font-weight: ", ";\n margin-top: ", ";\n"])), function (_a) {
693
707
  var theme = _a.theme;
694
708
  return theme.colors.primaryHue;
695
709
  }, function (_a) {
@@ -712,11 +726,11 @@ var Container$1 = styled__default["default"].div(templateObject_4$b || (template
712
726
  });
713
727
  var CardHeader = function (props) { return jsxRuntime.jsx(Container$1, __assign({}, props)); };
714
728
  CardHeader.Label = Label$1;
715
- CardHeader.Title = Title$2;
729
+ CardHeader.Title = Title$3;
716
730
  CardHeader.Text = Description$2;
717
- var templateObject_1$11, templateObject_2$q, templateObject_3$i, templateObject_4$b;
731
+ var templateObject_1$16, templateObject_2$s, templateObject_3$i, templateObject_4$b;
718
732
 
719
- var Divider = styled__default["default"].div(templateObject_1$10 || (templateObject_1$10 = __makeTemplateObject(["\n width: 100%;\n height: 1px;\n margin-top: ", "px;\n margin-bottom: ", ";\n background-color: ", ";\n"], ["\n width: 100%;\n height: 1px;\n margin-top: ", "px;\n margin-bottom: ", ";\n background-color: ", ";\n"])), function (_a) {
733
+ var Divider = styled__default["default"].div(templateObject_1$15 || (templateObject_1$15 = __makeTemplateObject(["\n width: 100%;\n height: 1px;\n margin-top: ", "px;\n margin-bottom: ", ";\n background-color: ", ";\n"], ["\n width: 100%;\n height: 1px;\n margin-top: ", "px;\n margin-bottom: ", ";\n background-color: ", ";\n"])), function (_a) {
720
734
  var theme = _a.theme;
721
735
  return theme.space.base * 3;
722
736
  }, function (_a) {
@@ -726,15 +740,15 @@ var Divider = styled__default["default"].div(templateObject_1$10 || (templateObj
726
740
  var theme = _a.theme;
727
741
  return theme.palette.grey["300"];
728
742
  });
729
- var Footer$1 = styled__default["default"].div(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin-top: auto;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n margin-top: auto;\n width: 100%;\n"])));
743
+ var Footer$2 = styled__default["default"].div(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin-top: auto;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n margin-top: auto;\n width: 100%;\n"])));
730
744
  var Container = styled__default["default"].div(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
731
745
  var theme = _a.theme, direction = _a.direction, justifyContent = _a.justifyContent, wrap = _a.wrap;
732
746
  return "\n display: flex;\n align-items: center;\n flex-direction: ".concat(direction || "row", ";\n justify-content: ").concat(justifyContent || "space-between", ";\n padding: ").concat(theme.space.xxs, " 0;\n margin-top: ").concat(theme.space.xs, ";\n ").concat(wrap ? "flex-wrap: wrap;" : "", "\n ");
733
747
  });
734
- var CardFooter = function (props) { return (jsxRuntime.jsxs(Footer$1, { children: [!props.noDivider && jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(Container, __assign({}, props, { children: props.children }))] })); };
735
- var templateObject_1$10, templateObject_2$p, templateObject_3$h;
748
+ var CardFooter = function (props) { return (jsxRuntime.jsxs(Footer$2, { children: [!props.noDivider && jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(Container, __assign({}, props, { children: props.children }))] })); };
749
+ var templateObject_1$15, templateObject_2$r, templateObject_3$h;
736
750
 
737
- var UgContentCard = styled__default["default"](reactNotifications.Well)(templateObject_1$$ || (templateObject_1$$ = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n ", "\n"])), function (_a) {
751
+ var UgContentCard = styled__default["default"](reactNotifications.Well)(templateObject_1$14 || (templateObject_1$14 = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n ", "\n"])), function (_a) {
738
752
  var theme = _a.theme;
739
753
  return theme.borderRadii.lg;
740
754
  }, function (_a) {
@@ -760,7 +774,7 @@ SpecialCard.Meta = CardMeta;
760
774
  SpecialCard.Thumb = CardThumbnail;
761
775
  SpecialCard.Header = CardHeader;
762
776
  SpecialCard.Footer = CardFooter;
763
- var templateObject_1$$;
777
+ var templateObject_1$14;
764
778
 
765
779
  var CampaignCardSkeleton = function () {
766
780
  return (jsxRuntime.jsxs(SpecialCard, { children: [jsxRuntime.jsx(SpecialCard.Meta, { children: jsxRuntime.jsx(Skeleton, { width: "30%" }) }), jsxRuntime.jsxs(SpecialCard.Header, { children: [jsxRuntime.jsx(Skeleton, { height: "18px", width: "50%" }), jsxRuntime.jsx("br", {}), jsxRuntime.jsx(Skeleton, { height: "26px", style: { backgroundColor: theme.palette.blue[400] } })] }), jsxRuntime.jsxs(SpecialCard.Footer, { children: [jsxRuntime.jsx(Skeleton, { height: "18px", width: "45%" }), jsxRuntime.jsx(Skeleton, { width: "26px", height: "26px", style: { borderRadius: "100%" } })] })] }));
@@ -793,11 +807,11 @@ var getTypeDataIcon = function (type) {
793
807
  return SvgCampaignFunctional;
794
808
  }
795
809
  };
796
- var StyledTag$2 = styled__default["default"](Tag)(templateObject_1$_ || (templateObject_1$_ = __makeTemplateObject(["\n color: ", ";\n cursor: pointer;\n"], ["\n color: ", ";\n cursor: pointer;\n"])), function (_a) {
810
+ var StyledTag$2 = styled__default["default"](Tag)(templateObject_1$13 || (templateObject_1$13 = __makeTemplateObject(["\n color: ", ";\n cursor: pointer;\n"], ["\n color: ", ";\n cursor: pointer;\n"])), function (_a) {
797
811
  var theme = _a.theme;
798
812
  return theme.palette.grey["700"];
799
813
  });
800
- var StyledTagNew$1 = styled__default["default"](Tag)(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n"], ["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n"])), function (_a) {
814
+ var StyledTagNew$1 = styled__default["default"](Tag)(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n"], ["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n"])), function (_a) {
801
815
  var theme = _a.theme;
802
816
  return theme.space.base * 6;
803
817
  }, function (_a) {
@@ -820,9 +834,9 @@ var CampaignCard = function (_a) {
820
834
  var PillIcon = getTypeDataIcon(type);
821
835
  return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(SpecialCard, __assign({ title: campaignTitle }, props, { children: [jsxRuntime.jsxs(SpecialCard.Meta, { children: [jsxRuntime.jsx(StyledLabel$1, { children: date }), isNew && (jsxRuntime.jsx(StyledTagNew$1, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(SpecialCard.Header, { children: [jsxRuntime.jsx(SpecialCard.Header.Label, { children: projectTitle }), jsxRuntime.jsx(SpecialCard.Header.Title, { children: campaignTitle })] }), jsxRuntime.jsxs(SpecialCard.Footer, { children: [props.pillText && (jsxRuntime.jsxs(StyledTag$2, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(Tag.Avatar, { children: jsxRuntime.jsx(PillIcon, {}) }), jsxRuntime.jsx(Ellipsis, __assign({ style: { maxWidth: "180px" } }, { children: props.pillText }))] }))), jsxRuntime.jsx(StatusIcon, {})] })] })));
822
836
  };
823
- var templateObject_1$_, templateObject_2$o, templateObject_3$g;
837
+ var templateObject_1$13, templateObject_2$q, templateObject_3$g;
824
838
 
825
- var StyledTagNew = styled__default["default"](Tag)(templateObject_1$Z || (templateObject_1$Z = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n position: absolute;\n right: 16px;\n top: 16px;\n"], ["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n position: absolute;\n right: 16px;\n top: 16px;\n"])), function (_a) {
839
+ var StyledTagNew = styled__default["default"](Tag)(templateObject_1$12 || (templateObject_1$12 = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n position: absolute;\n right: 16px;\n top: 16px;\n"], ["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n position: absolute;\n right: 16px;\n top: 16px;\n"])), function (_a) {
826
840
  var theme = _a.theme;
827
841
  return theme.space.base * 6;
828
842
  }, function (_a) {
@@ -839,16 +853,16 @@ var ProductCard = function (props) {
839
853
  var isNew = props.isNew, productTitle = props.productTitle, labelNew = props.labelNew;
840
854
  return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(SpecialCard, __assign({ title: productTitle }, props, { children: [jsxRuntime.jsx(SpecialCard.Meta, { children: isNew && (jsxRuntime.jsx(StyledTagNew, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" }))) }), props.icon && jsxRuntime.jsx(SpecialCard.Thumb, __assign({ align: "center" }, { children: props.icon })), jsxRuntime.jsxs(SpecialCard.Header, __assign({ onClick: props.onCtaClick, align: "center" }, { children: [props.preTitle && (jsxRuntime.jsx(SpecialCard.Header.Label, { children: props.preTitle })), jsxRuntime.jsx(SpecialCard.Header.Title, { children: productTitle })] })), jsxRuntime.jsx(SpecialCard.Footer, __assign({ direction: "column", justifyContent: "center" }, { children: jsxRuntime.jsx(Button, __assign({ isPill: true, isPrimary: true, onClick: props.onCtaClick, themeColor: theme.colors.accentHue, size: "small" }, { children: props.ctaLabel })) }))] })));
841
855
  };
842
- var templateObject_1$Z;
856
+ var templateObject_1$12;
843
857
 
844
- var ServiceSubtitle = styled__default["default"](SM)(templateObject_1$Y || (templateObject_1$Y = __makeTemplateObject(["\n color: ", ";\n margin-bottom: ", "px;\n"], ["\n color: ", ";\n margin-bottom: ", "px;\n"])), function (_a) {
858
+ var ServiceSubtitle = styled__default["default"](SM)(templateObject_1$11 || (templateObject_1$11 = __makeTemplateObject(["\n color: ", ";\n margin-bottom: ", "px;\n"], ["\n color: ", ";\n margin-bottom: ", "px;\n"])), function (_a) {
845
859
  var theme = _a.theme;
846
860
  return theme.palette.grey[500];
847
861
  }, function (_a) {
848
862
  var theme = _a.theme;
849
863
  return theme.space.base;
850
864
  });
851
- var ServiceTitle = styled__default["default"](LG)(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n color: ", ";\n margin-bottom: ", "px;\n font-weight: ", ";\n"], ["\n color: ", ";\n margin-bottom: ", "px;\n font-weight: ", ";\n"])), function (_a) {
865
+ var ServiceTitle = styled__default["default"](LG)(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n color: ", ";\n margin-bottom: ", "px;\n font-weight: ", ";\n"], ["\n color: ", ";\n margin-bottom: ", "px;\n font-weight: ", ";\n"])), function (_a) {
852
866
  var theme = _a.theme;
853
867
  return theme.palette.blue[600];
854
868
  }, function (_a) {
@@ -893,15 +907,15 @@ var ServiceCard = function (props) {
893
907
  var serviceIcon = props.serviceIcon, serviceTitle = props.serviceTitle, serviceSubtitle = props.serviceSubtitle;
894
908
  return (jsxRuntime.jsxs(StyledCard$1, __assign({}, props, { children: [props.isHoverable && (jsxRuntime.jsxs(HoverBody, { children: [jsxRuntime.jsxs(HoverMetaContainer, { children: [props.hoverTitle && (jsxRuntime.jsx(ServiceTitle, { children: props.hoverTitle })), props.hoverSubtitle && (jsxRuntime.jsx(ServiceSubtitle, { children: props.hoverSubtitle }))] }), props.hoverButtons && (jsxRuntime.jsx(ButtonsWrap$1, { children: props.hoverButtons.map(function (button) { return button; }) }))] })), jsxRuntime.jsxs(CardContent, { children: [jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [serviceIcon && jsxRuntime.jsx(SpecialCard.Thumb, { children: serviceIcon }), jsxRuntime.jsxs(SpecialCard.Header, { children: [jsxRuntime.jsx(SpecialCard.Header.Label, { children: serviceSubtitle }), jsxRuntime.jsx(SpecialCard.Header.Title, { children: serviceTitle })] })] }), props.tags && (jsxRuntime.jsx(SpecialCard.Footer, __assign({ justifyContent: "start", wrap: true }, { children: props.tags.map(function (tag, index) { return (jsxRuntime.jsxs(StyledTag$1, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(StyledTag$1.Avatar, { children: tag.icon }), tag.label] }), index)); }) })))] })] })));
895
909
  };
896
- var templateObject_1$Y, templateObject_2$n, templateObject_3$f, templateObject_4$a, templateObject_5$5, templateObject_6$2, templateObject_7$1, templateObject_8$1;
910
+ var templateObject_1$11, templateObject_2$p, templateObject_3$f, templateObject_4$a, templateObject_5$5, templateObject_6$2, templateObject_7$1, templateObject_8$1;
897
911
 
898
- var ButtonsWrap = styled__default["default"].div(templateObject_1$X || (templateObject_1$X = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n width: 100%;\n"], ["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n width: 100%;\n"])));
912
+ var ButtonsWrap = styled__default["default"].div(templateObject_1$10 || (templateObject_1$10 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n width: 100%;\n"], ["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n width: 100%;\n"])));
899
913
  var InfoCard = function (props) {
900
914
  return (jsxRuntime.jsxs(SpecialCard, __assign({}, (props.infoTitle && { title: props.infoTitle }), props, { children: [props.infoImg && (jsxRuntime.jsx(SpecialCard.Thumb, __assign({ isStretched: true }, { children: props.infoImg }))), jsxRuntime.jsxs(SpecialCard.Header, { children: [props.infoSubtitle && (jsxRuntime.jsx(SpecialCard.Header.Label, { children: props.infoSubtitle })), props.infoTitle && (jsxRuntime.jsx(SpecialCard.Header.Title, { children: props.infoTitle }))] }), props.infoButtons && (jsxRuntime.jsx(SpecialCard.Footer, __assign({ direction: "column", justifyContent: "center" }, { children: jsxRuntime.jsx(ButtonsWrap, { children: props.infoButtons.map(function (button) { return button; }) }) })))] })));
901
915
  };
902
- var templateObject_1$X;
916
+ var templateObject_1$10;
903
917
 
904
- var UgClose = styled__default["default"](reactNotifications.Close)(templateObject_1$W || (templateObject_1$W = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n"])), function (_a) {
918
+ var UgClose = styled__default["default"](reactNotifications.Close)(templateObject_1$$ || (templateObject_1$$ = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n"])), function (_a) {
905
919
  var theme = _a.theme;
906
920
  return theme.space.xl;
907
921
  }, function (_a) {
@@ -912,7 +926,7 @@ var UgClose = styled__default["default"](reactNotifications.Close)(templateObjec
912
926
  * Title is a basic component used to display a title. Often used in card headers.
913
927
  */
914
928
  var Close = function (props) { return jsxRuntime.jsx(UgClose, __assign({}, props)); };
915
- var templateObject_1$W;
929
+ var templateObject_1$$;
916
930
 
917
931
  /**
918
932
  * Use Span to style and format inline text elements.
@@ -952,8 +966,8 @@ function useWindowSize() {
952
966
  return size;
953
967
  }
954
968
 
955
- var StyledSpan = styled__default["default"](Span)(templateObject_1$V || (templateObject_1$V = __makeTemplateObject([""], [""])));
956
- var StyledTag = styled__default["default"](Tag)(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n background-color: transparent;\n pointer-events: none;\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n ", " {\n margin-left: ", ";\n color: ", ";\n font-weight: ", ";\n }\n"], ["\n background-color: transparent;\n pointer-events: none;\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n ", " {\n margin-left: ", ";\n color: ", ";\n font-weight: ", ";\n }\n"])), function (_a) {
969
+ var StyledSpan = styled__default["default"](Span)(templateObject_1$_ || (templateObject_1$_ = __makeTemplateObject([""], [""])));
970
+ var StyledTag = styled__default["default"](Tag)(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n background-color: transparent;\n pointer-events: none;\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n ", " {\n margin-left: ", ";\n color: ", ";\n font-weight: ", ";\n }\n"], ["\n background-color: transparent;\n pointer-events: none;\n ", "\n svg {\n margin-right: ", " !important;\n }\n\n ", " {\n margin-left: ", ";\n color: ", ";\n font-weight: ", ";\n }\n"])), function (_a) {
957
971
  var status = _a.status, theme = _a.theme;
958
972
  switch (status) {
959
973
  case "completed":
@@ -987,9 +1001,9 @@ var Counter = function (props) {
987
1001
  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, {})] }) }), width > parseInt(theme.breakpoints.sm) && props.children, counter !== undefined && jsxRuntime.jsx(StyledSpan, { children: counter.toString() })] })));
988
1002
  };
989
1003
  Counter.Avatar = StyledTag.Avatar;
990
- var templateObject_1$V, templateObject_2$m;
1004
+ var templateObject_1$_, templateObject_2$o;
991
1005
 
992
- var UgDrawer = styled__default["default"](reactModals.DrawerModal)(templateObject_1$U || (templateObject_1$U = __makeTemplateObject(["\n @media (max-width: ", ") {\n width: 100%;\n }\n"], ["\n @media (max-width: ", ") {\n width: 100%;\n }\n"])), function (_a) {
1006
+ var UgDrawer = styled__default["default"](reactModals.DrawerModal)(templateObject_1$Z || (templateObject_1$Z = __makeTemplateObject(["\n @media (max-width: ", ") {\n width: 100%;\n }\n"], ["\n @media (max-width: ", ") {\n width: 100%;\n }\n"])), function (_a) {
993
1007
  var theme = _a.theme;
994
1008
  return theme.breakpoints.sm;
995
1009
  });
@@ -1006,22 +1020,22 @@ Drawer.Body = reactModals.DrawerModal.Body;
1006
1020
  Drawer.Footer = reactModals.DrawerModal.Footer;
1007
1021
  Drawer.FooterItem = reactModals.DrawerModal.FooterItem;
1008
1022
  Drawer.Close = reactModals.DrawerModal.Close;
1009
- var templateObject_1$U;
1023
+ var templateObject_1$Z;
1010
1024
 
1011
- var Field$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$T || (templateObject_1$T = __makeTemplateObject([""], [""])));
1012
- var templateObject_1$T;
1025
+ var Field$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$Y || (templateObject_1$Y = __makeTemplateObject([""], [""])));
1026
+ var templateObject_1$Y;
1013
1027
 
1014
1028
  var index$1 = /*#__PURE__*/Object.freeze({
1015
1029
  __proto__: null,
1016
1030
  Field: Field$1
1017
1031
  });
1018
1032
 
1019
- var UgItem = styled__default["default"](reactDropdowns.Item)(templateObject_1$S || (templateObject_1$S = __makeTemplateObject(["\n &[disabled] svg {\n opacity: 0.5;\n }\n &:hover {\n background-color: ", ";\n }\n"], ["\n &[disabled] svg {\n opacity: 0.5;\n }\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
1033
+ var UgItem = styled__default["default"](reactDropdowns.Item)(templateObject_1$X || (templateObject_1$X = __makeTemplateObject(["\n &[disabled] svg {\n opacity: 0.5;\n }\n &:hover {\n background-color: ", ";\n }\n"], ["\n &[disabled] svg {\n opacity: 0.5;\n }\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
1020
1034
  var theme = _a.theme;
1021
1035
  return theme.palette.blue[100];
1022
1036
  });
1023
1037
  var Item = function (props) { return jsxRuntime.jsx(UgItem, __assign({}, props)); };
1024
- var templateObject_1$S;
1038
+ var templateObject_1$X;
1025
1039
 
1026
1040
  /**
1027
1041
  * A Menu is a wrapper for items elements
@@ -1045,7 +1059,7 @@ var MediaItem = function (props) { return jsxRuntime.jsx(reactDropdowns.MediaIte
1045
1059
  */
1046
1060
  var Multiselect = function (props) { return (jsxRuntime.jsx(reactDropdowns.Multiselect, __assign({}, props))); };
1047
1061
 
1048
- var UgSelect = styled__default["default"](reactDropdowns.Select)(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
1062
+ var UgSelect = styled__default["default"](reactDropdowns.Select)(templateObject_1$W || (templateObject_1$W = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
1049
1063
  return props.isPrimary &&
1050
1064
  "\n background-color: ".concat(props.theme.palette.blue[600], ";\n color: white;\n & svg[data-garden-id=\"forms.media_figure\"] {\n color: white;\n }\n ");
1051
1065
  });
@@ -1062,7 +1076,7 @@ var UgSelect = styled__default["default"](reactDropdowns.Select)(templateObject_
1062
1076
  var Select = function (props) { return jsxRuntime.jsx(UgSelect, __assign({}, props)); };
1063
1077
  var Dropdown = function (props) { return (jsxRuntime.jsx(reactDropdowns.Dropdown, __assign({}, props))); };
1064
1078
  var Message = function (props) { return jsxRuntime.jsx(reactDropdowns.Message, __assign({}, props)); };
1065
- var templateObject_1$R;
1079
+ var templateObject_1$W;
1066
1080
 
1067
1081
  /**
1068
1082
  * Autocomplete is an input field that filters results as users type. This helps users find something quickly in a large list of options.
@@ -1077,6 +1091,248 @@ var Autocomplete = function (props) { return jsxRuntime.jsx(reactDropdowns.Autoc
1077
1091
 
1078
1092
  var MenuHeaderItem = function (props) { return (jsxRuntime.jsx(reactDropdowns.HeaderItem, __assign({}, props))); };
1079
1093
 
1094
+ var editorStyle = styled.css(templateObject_1$V || (templateObject_1$V = __makeTemplateObject(["\n > * + * {\n margin-top: 0.75em;\n }\n\n *,\n *:before,\n *:after {\n box-sizing: border-box;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n line-height: 1.1;\n font-weight: 500;\n color: ", ";\n }\n\n h1 {\n font-size: 2.617924em;\n }\n\n h2 {\n font-size: 1.618em;\n }\n\n h3 {\n font-size: 1.5rem;\n }\n\n h4 {\n font-size: 1.3rem;\n }\n\n h5 {\n font-size: 1.2rem;\n }\n\n h6 {\n font-size: 1.1rem;\n }\n\n /*=====\n #Lists\n =====*/\n ul,\n ol,\n dl {\n padding: 0.618em 0.618rem;\n margin-left: 1rem;\n }\n\n ul {\n list-style: disc;\n }\n\n ol {\n list-style: decimal;\n }\n\n li {\n padding: 0 0.618rem;\n line-height: 1.618;\n }\n\n dt {\n text-indent: -0.618rem;\n }\n\n dd {\n margin: 0;\n padding: 0 0.618rem 0 0.618rem;\n }\n\n hr {\n border: none;\n border-top: 2px solid rgba(#0d0d0d, 0.1);\n margin: 2rem 0;\n }\n\n p,\n blockquote {\n line-height: 1.618;\n }\n\n p {\n font-size: 1rem;\n margin-bottom: 0.618em;\n }\n\n blockquote {\n border-left: 3px solid;\n border-color: ", ";\n margin: 1.618em 0.618rem;\n padding-left: 0.618em;\n }\n\n em,\n i,\n cite {\n font-style: italic;\n }\n\n strong,\n b {\n font-weight: 500;\n }\n\n cite {\n display: block;\n text-align: right;\n }\n\n u {\n text-decoration: none;\n border-bottom: 1px dotted red;\n }\n\n small,\n sub,\n sup {\n font-size: 0.618rem;\n line-height: 1;\n }\n\n sub {\n vertical-align: sub;\n }\n\n sup {\n vertical-align: super;\n }\n\n s,\n strike,\n del {\n text-decoration: strikethrough;\n }\n\n ins,\n del {\n background-color: rgba(220, 220, 220, 0.25);\n }\n\n ins {\n text-decoration: none;\n }\n\n /*\n mark and selection should be different, so user knows which one they've selected.\n \n mark and selections:\n saturation: 44%\n lightness: 75%\n Hue is different\n */\n mark {\n background-color: rgba(165, 220, 165, 0.9);\n }\n\n ::selection {\n background-color: rgba(165, 220, 220, 0.9);\n }\n\n /* Because mark and selection have same saturation, brightenss, mark won't easily stand out if it's selected */\n mark::selection {\n background-color: rgba(165, 220, 110, 0.9);\n }\n\n /* dfn and dt both do the same thing: denote a term to be defined */\n dfn,\n dt {\n font-style: oblique;\n font-weight: 700;\n text-transform: capitalize;\n }\n\n code {\n background-color: ", ";\n color: ", ";\n padding: 0.2rem 0.3rem;\n border-radius: 4px;\n }\n\n pre {\n background: #0d0d0d;\n color: #fff;\n font-family: \"JetBrainsMono\", monospace;\n padding: 0.75rem 1rem;\n border-radius: 0.5rem;\n\n code {\n color: inherit;\n padding: 0;\n background: none;\n font-size: 0.8rem;\n }\n }\n\n kbd,\n samp,\n data {\n background-color: rgba(165, 165, 165, 0.2);\n }\n\n kbd {\n font-size: 0.75rem;\n padding: 0.25ex 0.5ex;\n border: 1px solid rgb(193, 193, 193);\n border-radius: 3px;\n }\n\n /*Treat samp like a mini blockquote. because basically you're quoting what the computer would do*/\n samp,\n data {\n padding: 0 10px;\n }\n\n var,\n data {\n font-style: italic;\n }\n\n samp {\n border-left: 5px solid rgb(193, 193, 193);\n }\n\n data {\n padding: 0 10px;\n }\n\n /* Placeholder (at the top) */\n /*p.is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n }*/\n\n /* Placeholder (on every new line) */\n .is-empty::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n }\n"], ["\n > * + * {\n margin-top: 0.75em;\n }\n\n *,\n *:before,\n *:after {\n box-sizing: border-box;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n line-height: 1.1;\n font-weight: 500;\n color: ", ";\n }\n\n h1 {\n font-size: 2.617924em;\n }\n\n h2 {\n font-size: 1.618em;\n }\n\n h3 {\n font-size: 1.5rem;\n }\n\n h4 {\n font-size: 1.3rem;\n }\n\n h5 {\n font-size: 1.2rem;\n }\n\n h6 {\n font-size: 1.1rem;\n }\n\n /*=====\n #Lists\n =====*/\n ul,\n ol,\n dl {\n padding: 0.618em 0.618rem;\n margin-left: 1rem;\n }\n\n ul {\n list-style: disc;\n }\n\n ol {\n list-style: decimal;\n }\n\n li {\n padding: 0 0.618rem;\n line-height: 1.618;\n }\n\n dt {\n text-indent: -0.618rem;\n }\n\n dd {\n margin: 0;\n padding: 0 0.618rem 0 0.618rem;\n }\n\n hr {\n border: none;\n border-top: 2px solid rgba(#0d0d0d, 0.1);\n margin: 2rem 0;\n }\n\n p,\n blockquote {\n line-height: 1.618;\n }\n\n p {\n font-size: 1rem;\n margin-bottom: 0.618em;\n }\n\n blockquote {\n border-left: 3px solid;\n border-color: ", ";\n margin: 1.618em 0.618rem;\n padding-left: 0.618em;\n }\n\n em,\n i,\n cite {\n font-style: italic;\n }\n\n strong,\n b {\n font-weight: 500;\n }\n\n cite {\n display: block;\n text-align: right;\n }\n\n u {\n text-decoration: none;\n border-bottom: 1px dotted red;\n }\n\n small,\n sub,\n sup {\n font-size: 0.618rem;\n line-height: 1;\n }\n\n sub {\n vertical-align: sub;\n }\n\n sup {\n vertical-align: super;\n }\n\n s,\n strike,\n del {\n text-decoration: strikethrough;\n }\n\n ins,\n del {\n background-color: rgba(220, 220, 220, 0.25);\n }\n\n ins {\n text-decoration: none;\n }\n\n /*\n mark and selection should be different, so user knows which one they've selected.\n \n mark and selections:\n saturation: 44%\n lightness: 75%\n Hue is different\n */\n mark {\n background-color: rgba(165, 220, 165, 0.9);\n }\n\n ::selection {\n background-color: rgba(165, 220, 220, 0.9);\n }\n\n /* Because mark and selection have same saturation, brightenss, mark won't easily stand out if it's selected */\n mark::selection {\n background-color: rgba(165, 220, 110, 0.9);\n }\n\n /* dfn and dt both do the same thing: denote a term to be defined */\n dfn,\n dt {\n font-style: oblique;\n font-weight: 700;\n text-transform: capitalize;\n }\n\n code {\n background-color: ", ";\n color: ", ";\n padding: 0.2rem 0.3rem;\n border-radius: 4px;\n }\n\n pre {\n background: #0d0d0d;\n color: #fff;\n font-family: \"JetBrainsMono\", monospace;\n padding: 0.75rem 1rem;\n border-radius: 0.5rem;\n\n code {\n color: inherit;\n padding: 0;\n background: none;\n font-size: 0.8rem;\n }\n }\n\n kbd,\n samp,\n data {\n background-color: rgba(165, 165, 165, 0.2);\n }\n\n kbd {\n font-size: 0.75rem;\n padding: 0.25ex 0.5ex;\n border: 1px solid rgb(193, 193, 193);\n border-radius: 3px;\n }\n\n /*Treat samp like a mini blockquote. because basically you're quoting what the computer would do*/\n samp,\n data {\n padding: 0 10px;\n }\n\n var,\n data {\n font-style: italic;\n }\n\n samp {\n border-left: 5px solid rgb(193, 193, 193);\n }\n\n data {\n padding: 0 10px;\n }\n\n /* Placeholder (at the top) */\n /*p.is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n }*/\n\n /* Placeholder (on every new line) */\n .is-empty::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n }\n"])), function (_a) {
1095
+ var theme = _a.theme;
1096
+ return theme.palette.grey["800"];
1097
+ }, function (_a) {
1098
+ var theme = _a.theme;
1099
+ return theme.palette.grey["300"];
1100
+ }, function (_a) {
1101
+ var theme = _a.theme;
1102
+ return theme.palette.grey[200];
1103
+ }, function (_a) {
1104
+ var theme = _a.theme;
1105
+ return theme.palette.red[600];
1106
+ });
1107
+ var templateObject_1$V;
1108
+
1109
+ var _path$o;
1110
+
1111
+ function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : 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$q.apply(this, arguments); }
1112
+
1113
+ var SvgBoldFill = function SvgBoldFill(props) {
1114
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
1115
+ xmlns: "http://www.w3.org/2000/svg",
1116
+ width: 16,
1117
+ height: 16,
1118
+ focusable: "false",
1119
+ viewBox: "0 0 16 16"
1120
+ }, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
1121
+ fill: "currentColor",
1122
+ d: "M7.5 0C9.952 0 12 2.048 12 4.5a4.483 4.483 0 01-1.27 3.108C12.078 8.39 13 9.855 13 11.5c0 2.452-2.048 4.5-4.5 4.5H4a1 1 0 01-1-1V1a1 1 0 011-1h3.5zM5 14h3.5c1.348 0 2.5-1.152 2.5-2.5S9.848 9 8.5 9H5v5zM7.5 2H5v5h2.5C8.848 7 10 5.848 10 4.5S8.848 2 7.5 2z"
1123
+ })));
1124
+ };
1125
+
1126
+ var _path$n;
1127
+
1128
+ function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : 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$p.apply(this, arguments); }
1129
+
1130
+ var SvgBoldStroke = function SvgBoldStroke(props) {
1131
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
1132
+ xmlns: "http://www.w3.org/2000/svg",
1133
+ width: 16,
1134
+ height: 16,
1135
+ focusable: "false",
1136
+ viewBox: "0 0 16 16"
1137
+ }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
1138
+ fill: "currentColor",
1139
+ d: "M7 1c2.176 0 4 1.824 4 4 0 1.315-.666 2.501-1.673 3.234C10.869 8.792 12 10.287 12 12c0 2.176-1.824 4-4 4H3.5a.5.5 0 01-.5-.5v-14a.5.5 0 01.5-.5H7zM4 15h4c1.624 0 3-1.376 3-3S9.624 9 8 9H4v6zM7 2H4v6h3c1.624 0 3-1.376 3-3S8.624 2 7 2z"
1140
+ })));
1141
+ };
1142
+
1143
+ var _path$m;
1144
+
1145
+ function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : 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$o.apply(this, arguments); }
1146
+
1147
+ var SvgItalicFill = function SvgItalicFill(props) {
1148
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
1149
+ xmlns: "http://www.w3.org/2000/svg",
1150
+ width: 16,
1151
+ height: 16,
1152
+ focusable: "false",
1153
+ viewBox: "0 0 16 16"
1154
+ }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
1155
+ fill: "none",
1156
+ stroke: "currentColor",
1157
+ strokeLinecap: "round",
1158
+ strokeWidth: 2,
1159
+ d: "M8 1h3M9.5 1l-3 14M5 15h3"
1160
+ })));
1161
+ };
1162
+
1163
+ var _path$l;
1164
+
1165
+ function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : 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$n.apply(this, arguments); }
1166
+
1167
+ var SvgItalicStroke = function SvgItalicStroke(props) {
1168
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
1169
+ xmlns: "http://www.w3.org/2000/svg",
1170
+ width: 16,
1171
+ height: 16,
1172
+ focusable: "false",
1173
+ viewBox: "0 0 16 16"
1174
+ }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
1175
+ fill: "none",
1176
+ stroke: "currentColor",
1177
+ strokeLinecap: "round",
1178
+ d: "M7.5 1.5h3M9 1.5l-3 14m-1.5 0h3"
1179
+ })));
1180
+ };
1181
+
1182
+ var _path$k, _path2;
1183
+
1184
+ function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : 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$m.apply(this, arguments); }
1185
+
1186
+ var SvgQuoteFill = function SvgQuoteFill(props) {
1187
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
1188
+ xmlns: "http://www.w3.org/2000/svg",
1189
+ width: 16,
1190
+ height: 16,
1191
+ focusable: "false",
1192
+ viewBox: "0 0 16 16"
1193
+ }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
1194
+ fill: "currentColor",
1195
+ d: "M7 8H4c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1zm6 0h-3c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1z"
1196
+ })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
1197
+ fill: "none",
1198
+ stroke: "currentColor",
1199
+ strokeLinecap: "round",
1200
+ strokeWidth: 2,
1201
+ d: "M5.5 12C6.5 11 7 9.5 7 8V6m4.5 6c1-1 1.5-2.5 1.5-4V6"
1202
+ })));
1203
+ };
1204
+
1205
+ var _path$j;
1206
+
1207
+ function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : 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$l.apply(this, arguments); }
1208
+
1209
+ var SvgQuoteStroke = function SvgQuoteStroke(props) {
1210
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
1211
+ xmlns: "http://www.w3.org/2000/svg",
1212
+ width: 16,
1213
+ height: 16,
1214
+ focusable: "false",
1215
+ viewBox: "0 0 16 16"
1216
+ }, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
1217
+ fill: "none",
1218
+ stroke: "currentColor",
1219
+ strokeLinecap: "round",
1220
+ d: "M7 7.5H4c-.3 0-.5-.2-.5-.5V4c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5zm6 0h-3c-.3 0-.5-.2-.5-.5V4c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5zM12 12c1-1 1.5-2.5 1.5-4V6M6 12c1-1 1.5-2.5 1.5-4V6"
1221
+ })));
1222
+ };
1223
+
1224
+ var MenuContainer = styled__default["default"](Card)(templateObject_1$U || (templateObject_1$U = __makeTemplateObject(["\n padding: ", ";\n"], ["\n padding: ", ";\n"])), function (_a) {
1225
+ var theme = _a.theme;
1226
+ return theme.space.xxs;
1227
+ });
1228
+ var FloatingMenu = function (props) {
1229
+ var editor = props.editor;
1230
+ if (!editor) {
1231
+ return null;
1232
+ }
1233
+ return (jsxRuntime.jsx(react.BubbleMenu, __assign({}, props, { editor: editor }, { children: jsxRuntime.jsxs(MenuContainer, __assign({ isFloating: true }, { children: [jsxRuntime.jsx(IconButton, __assign({ size: "small", onClick: function () { return editor.chain().focus().toggleBold().run(); }, isBasic: !editor.isActive("bold"), isPill: false }, { children: editor.isActive("bold") ? jsxRuntime.jsx(SvgBoldFill, {}) : jsxRuntime.jsx(SvgBoldStroke, {}) })), jsxRuntime.jsx(IconButton, __assign({ size: "small", onClick: function () { return editor.chain().focus().toggleItalic().run(); }, isBasic: !editor.isActive("italic"), isPill: false }, { children: editor.isActive("italic") ? jsxRuntime.jsx(SvgItalicFill, {}) : jsxRuntime.jsx(SvgItalicStroke, {}) })), jsxRuntime.jsx(IconButton, __assign({ size: "small", onClick: function () { return editor.chain().focus().toggleBlockquote().run(); }, isBasic: !editor.isActive("blockquote"), isPill: false }, { children: editor.isActive("blockquote") ? jsxRuntime.jsx(SvgQuoteFill, {}) : jsxRuntime.jsx(SvgQuoteStroke, {}) }))] })) })));
1234
+ };
1235
+ var templateObject_1$U;
1236
+
1237
+ var Header$1 = styled__default["default"].div(templateObject_1$T || (templateObject_1$T = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", " ", ";\n border-bottom: 1px solid ", ";\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", " ", ";\n border-bottom: 1px solid ", ";\n"])), function (_a) {
1238
+ var theme = _a.theme;
1239
+ return theme.space.xs;
1240
+ }, function (_a) {
1241
+ var theme = _a.theme;
1242
+ return theme.space.md;
1243
+ }, function (_a) {
1244
+ var theme = _a.theme;
1245
+ return theme.palette.grey[300];
1246
+ });
1247
+ var Title$2 = styled__default["default"](MD)(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
1248
+ var theme = _a.theme;
1249
+ return theme.colors.primaryHue;
1250
+ });
1251
+ var EditorHeader = function (_a) {
1252
+ var title = _a.title;
1253
+ return (jsxRuntime.jsx(Header$1, { children: jsxRuntime.jsx(Title$2, __assign({ isBold: true }, { children: title || "Write" })) }));
1254
+ };
1255
+ var templateObject_1$T, templateObject_2$n;
1256
+
1257
+ var Footer$1 = styled__default["default"].div(templateObject_1$S || (templateObject_1$S = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n padding: ", " 16px;\n background-color: ", ";\n"], ["\n display: flex;\n flex-direction: row;\n padding: ", " 16px;\n background-color: ", ";\n"])), function (_a) {
1258
+ var theme = _a.theme;
1259
+ return theme.space.sm;
1260
+ }, function (_a) {
1261
+ var theme = _a.theme;
1262
+ return theme.palette.grey[100];
1263
+ });
1264
+ var Text = styled__default["default"](SM)(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n line-height: 1.7;\n"], ["\n line-height: 1.7;\n"])));
1265
+ var EditorFooter = function (_a) {
1266
+ var saveText = _a.saveText;
1267
+ return jsxRuntime.jsxs(Footer$1, { children: [jsxRuntime.jsxs(Tag, { children: [isMac() ? "Cmd" : "Ctrl", "+enter"] }), "\u00A0", jsxRuntime.jsx(Text, { children: saveText || "to save" })] });
1268
+ };
1269
+ var templateObject_1$S, templateObject_2$m;
1270
+
1271
+ var EditorContainer = styled__default["default"].div(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n border: 2px solid ", ";\n border-radius: ", ";\n &:focus-within {\n outline: ", ";\n outline-style: solid;\n }\n\n .ProseMirror {\n padding: ", ";\n background-color: #fff;\n min-height: 100px;\n outline: none;\n\n ", "\n }\n"], ["\n border: 2px solid ", ";\n border-radius: ", ";\n &:focus-within {\n outline: ", ";\n outline-style: solid;\n }\n\n .ProseMirror {\n padding: ", ";\n background-color: #fff;\n min-height: 100px;\n outline: none;\n\n ", "\n }\n"])), function (_a) {
1272
+ var theme = _a.theme;
1273
+ return theme.colors.primaryHue;
1274
+ }, function (_a) {
1275
+ var theme = _a.theme;
1276
+ return theme.borderRadii.md;
1277
+ }, function (_a) {
1278
+ var theme = _a.theme;
1279
+ return theme.palette.blue["300"];
1280
+ }, function (_a) {
1281
+ var theme = _a.theme;
1282
+ return theme.space.md;
1283
+ }, editorStyle);
1284
+ /**
1285
+ * Editor is a wrapper around TipTap/ProseMirror
1286
+ * <br>
1287
+ * It's a rich text WYSIWYG editors.
1288
+ * <hr>
1289
+ * Used for this:
1290
+ - To allow text customization with markup supports
1291
+ - To develop collaborative text editing
1292
+
1293
+ Not for this:
1294
+ - Simple text input, use textarea instead.
1295
+ */
1296
+ var Editor = function (_a) {
1297
+ var onSave = _a.onSave, headerTitle = _a.headerTitle, footerSaveText = _a.footerSaveText, props = __rest(_a, ["onSave", "headerTitle", "footerSaveText"]);
1298
+ var children = props.children, placeholderOptions = props.placeholderOptions, hasInlineMenu = props.hasInlineMenu, bubbleOptions = props.bubbleOptions;
1299
+ var _b = React.useState(), activeEditor = _b[0], setActiveEditor = _b[1];
1300
+ var onKeyDown = function (event) {
1301
+ if (event.ctrlKey && event.key === "Enter") {
1302
+ if (onSave && activeEditor)
1303
+ onSave(activeEditor);
1304
+ }
1305
+ };
1306
+ var ed = react.useEditor(__assign({ extensions: [
1307
+ Typography__default["default"],
1308
+ StarterKit__default["default"],
1309
+ Placeholder__default["default"].configure(__assign({ placeholder: function (_a) {
1310
+ var node = _a.node;
1311
+ if (node.type.name === "heading") {
1312
+ return "What’s the title?";
1313
+ }
1314
+ return "Can you add some further context?";
1315
+ } }, placeholderOptions)),
1316
+ ], content: children || "", editorProps: {
1317
+ handleKeyDown: function (view, event) {
1318
+ if (event.ctrlKey && event.key === "Enter") {
1319
+ return true;
1320
+ }
1321
+ return false;
1322
+ },
1323
+ } }, props));
1324
+ if (!ed) {
1325
+ return null;
1326
+ }
1327
+ // Add here because we want to keep also the listener from the props.
1328
+ ed.on("update", function (_a) {
1329
+ var editor = _a.editor;
1330
+ return setActiveEditor(editor);
1331
+ });
1332
+ return (jsxRuntime.jsxs(EditorContainer, { children: [jsxRuntime.jsx(EditorHeader, { title: headerTitle }), hasInlineMenu && (jsxRuntime.jsx(FloatingMenu, { editor: ed, tippyOptions: __assign({}, bubbleOptions) })), jsxRuntime.jsx(react.EditorContent, { editor: ed, onKeyDown: onKeyDown }), jsxRuntime.jsx(EditorFooter, { saveText: footerSaveText })] }));
1333
+ };
1334
+ var templateObject_1$R;
1335
+
1080
1336
  var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject([""], [""])));
1081
1337
  /**
1082
1338
  * A Checkbox lets users select and unselect options from a list.
@@ -1496,7 +1752,7 @@ var LogoIconContainer = styled__default["default"](reactChrome.HeaderItem)(templ
1496
1752
  });
1497
1753
  var BrandName = styled__default["default"](reactChrome.HeaderItem)(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n margin-right: auto;\n margin-left: -8px;\n color: ", ";\n pointer-events: none;\n font-family: ", ";\n @media (max-width: ", ") {\n display: none;\n }\n"], ["\n margin-right: auto;\n margin-left: -8px;\n color: ", ";\n pointer-events: none;\n font-family: ", ";\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (_a) {
1498
1754
  var theme = _a.theme;
1499
- return theme.palette.blue["600"];
1755
+ return theme.colors.primaryHue;
1500
1756
  }, function (_a) {
1501
1757
  var theme = _a.theme;
1502
1758
  return theme.fonts.system;
@@ -1506,7 +1762,7 @@ var BrandName = styled__default["default"](reactChrome.HeaderItem)(templateObjec
1506
1762
  });
1507
1763
  var DropdownItem = styled__default["default"](reactChrome.HeaderItem)(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n margin-right: auto;\n margin-left: -8px;\n color: ", ";\n font-family: ", ";\n z-index: 2;\n @media (max-width: ", ") {\n display: none;\n }\n"], ["\n margin-right: auto;\n margin-left: -8px;\n color: ", ";\n font-family: ", ";\n z-index: 2;\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (_a) {
1508
1764
  var theme = _a.theme;
1509
- return theme.palette.blue["600"];
1765
+ return theme.colors.primaryHue;
1510
1766
  }, function (_a) {
1511
1767
  var theme = _a.theme;
1512
1768
  return theme.fonts.system;
@@ -1516,7 +1772,7 @@ var DropdownItem = styled__default["default"](reactChrome.HeaderItem)(templateOb
1516
1772
  });
1517
1773
  var MenuItem$1 = styled__default["default"](reactChrome.HeaderItem)(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n color: ", ";\n position: absolute;\n left: 0;\n @media (min-width: ", ") {\n display: none;\n }\n"], ["\n color: ", ";\n position: absolute;\n left: 0;\n @media (min-width: ", ") {\n display: none;\n }\n"])), function (_a) {
1518
1774
  var theme = _a.theme;
1519
- return theme.palette.blue["600"];
1775
+ return theme.colors.primaryHue;
1520
1776
  }, function (_a) {
1521
1777
  var theme = _a.theme;
1522
1778
  return theme.breakpoints.md;
@@ -1588,7 +1844,7 @@ var SelectedItemStyle = styled.css(templateObject_1$t || (templateObject_1$t = _
1588
1844
  var UgNavItem$2 = styled__default["default"](reactChrome.NavItem)(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n border-top-left-radius: ", "px;\n border-bottom-left-radius: ", "px;\n font-family: ", ";\n ", "\n ", "\n &:hover, &:focus {\n ", "\n }\n opacity: 1;\n color: ", ";\n font-weight: ", ";\n ", "\n"], ["\n border-top-left-radius: ", "px;\n border-bottom-left-radius: ", "px;\n font-family: ", ";\n ", "\n ", "\n &:hover, &:focus {\n ", "\n }\n opacity: 1;\n color: ", ";\n font-weight: ", ";\n ", "\n"])), function (props) { return props.theme.space.base * 6; }, function (props) { return props.theme.space.base * 6; }, function (_a) {
1589
1845
  var theme = _a.theme;
1590
1846
  return theme.fonts.system;
1591
- }, function (props) { return !props.isExpanded && "display: none;"; }, function (props) { return props.isCurrent && SelectedItemStyle; }, SelectedItemStyle, function (props) { return props.theme.palette.blue["600"]; }, function (props) { return props.theme.fontWeights.medium; }, function (props) {
1847
+ }, function (props) { return !props.isExpanded && "display: none;"; }, function (props) { return props.isCurrent && SelectedItemStyle; }, SelectedItemStyle, function (props) { return props.theme.colors.primaryHue; }, function (props) { return props.theme.fontWeights.medium; }, function (props) {
1592
1848
  return props.isCurrent &&
1593
1849
  "\n color: ".concat(props.theme.palette.blue["700"], ";\n font-weight: ").concat(props.theme.fontWeights.semibold, ";\n ");
1594
1850
  });
@@ -2373,7 +2629,7 @@ var CompanyHolder = styled__default["default"](SM)(templateObject_2$6 || (templa
2373
2629
  return theme.space.base * 4;
2374
2630
  }, function (_a) {
2375
2631
  var theme = _a.theme;
2376
- return theme.palette.blue["600"];
2632
+ return theme.colors.primaryHue;
2377
2633
  });
2378
2634
  var UserDetails = styled__default["default"].div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n text-align: center;\n"], ["\n margin-top: ", "px;\n margin-bottom: ", "px;\n text-align: center;\n"])), function (_a) {
2379
2635
  var theme = _a.theme;
@@ -2654,6 +2910,7 @@ exports.CursorPagination = CursorPagination;
2654
2910
  exports.Drawer = Drawer;
2655
2911
  exports.Dropdown = Dropdown;
2656
2912
  exports.DropdownField = index$1;
2913
+ exports.Editor = Editor;
2657
2914
  exports.Ellipsis = Ellipsis;
2658
2915
  exports.FooterItem = FooterItem;
2659
2916
  exports.FormField = index;
@@ -0,0 +1,12 @@
1
+ import { PlaceholderOptions } from "@tiptap/extension-placeholder";
2
+ import { BubbleMenuProps, Editor, EditorOptions } from "@tiptap/react";
3
+ export interface EditorArgs extends Partial<EditorOptions> {
4
+ placeholderOptions?: Partial<PlaceholderOptions>;
5
+ hasInlineMenu?: boolean;
6
+ bubbleOptions?: any;
7
+ headerTitle?: string;
8
+ footerSaveText?: string;
9
+ onSave?: (editor: Editor) => void;
10
+ }
11
+ export interface FloatingMenuArgs extends Partial<BubbleMenuProps> {
12
+ }
@@ -0,0 +1,3 @@
1
+ export declare const EditorFooter: ({ saveText }: {
2
+ saveText?: string | undefined;
3
+ }) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const EditorHeader: ({ title }: {
2
+ title?: string | undefined;
3
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const editorStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
@@ -0,0 +1,2 @@
1
+ import { FloatingMenuArgs } from "./_types";
2
+ export declare const FloatingMenu: (props: FloatingMenuArgs) => JSX.Element | null;
@@ -0,0 +1,16 @@
1
+ import { EditorArgs } from "./_types";
2
+ import { PropsWithChildren } from "react";
3
+ /**
4
+ * Editor is a wrapper around TipTap/ProseMirror
5
+ * <br>
6
+ * It's a rich text WYSIWYG editors.
7
+ * <hr>
8
+ * Used for this:
9
+ - To allow text customization with markup supports
10
+ - To develop collaborative text editing
11
+
12
+ Not for this:
13
+ - Simple text input, use textarea instead.
14
+ */
15
+ declare const Editor: ({ onSave, headerTitle, footerSaveText, ...props }: PropsWithChildren<EditorArgs>) => JSX.Element | null;
16
+ export { Editor };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { EditorArgs } from "./_types";
4
+ interface EditorStoryArgs extends EditorArgs {
5
+ children?: any;
6
+ }
7
+ export declare const Default: Story<EditorStoryArgs>;
8
+ export declare const Placeholder: Story<EditorStoryArgs>;
9
+ export declare const BubbleMenu: Story<EditorStoryArgs>;
10
+ declare const _default: ComponentMeta<({ onSave, headerTitle, footerSaveText, ...props }: import("react").PropsWithChildren<EditorArgs>) => JSX.Element | null>;
11
+ export default _default;
@@ -1,3 +1,4 @@
1
1
  import { IGardenTheme } from "@zendeskgarden/react-theming";
2
2
  export declare const hex2rgba: (hex: string, alpha?: number) => string;
3
3
  export declare const boxShadow: (theme: IGardenTheme) => string;
4
+ export declare const isMac: () => boolean | "" | undefined;
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.10.60",
3
+ "version": "2.10.61",
4
4
  "dependencies": {
5
+ "@tiptap/extension-bubble-menu": "^2.0.0-beta.61",
6
+ "@tiptap/extension-placeholder": "^2.0.0-beta.53",
7
+ "@tiptap/extension-typography": "^2.0.0-beta.22",
8
+ "@tiptap/react": "^2.0.0-beta.114",
9
+ "@tiptap/starter-kit": "^2.0.0-beta.191",
5
10
  "@zendeskgarden/css-bedrock": "^9.0.0",
6
11
  "@zendeskgarden/react-accordions": "^8.49.0",
7
12
  "@zendeskgarden/react-avatars": "^8.49.0",
@@ -18,7 +23,8 @@
18
23
  "@zendeskgarden/react-tooltips": "^8.49.0",
19
24
  "@zendeskgarden/react-typography": "^8.49.0",
20
25
  "react-spring": "^9.4.4",
21
- "react-window": "^1.8.6"
26
+ "react-window": "^1.8.6",
27
+ "ua-parser-js": "^1.0.2"
22
28
  },
23
29
  "scripts": {
24
30
  "start": "react-scripts start",
@@ -59,9 +65,9 @@
59
65
  ]
60
66
  },
61
67
  "peerDependencies": {
62
- "@zendeskgarden/react-theming": "^8.48.2",
63
68
  "@zendeskgarden/react-dropdowns": "^8.49.0",
64
69
  "@zendeskgarden/react-forms": "^8.49.0",
70
+ "@zendeskgarden/react-theming": "^8.48.2",
65
71
  "formik": "^2.2.9",
66
72
  "react": "^17.0.2",
67
73
  "react-dom": "^17.0.2",
@@ -87,6 +93,9 @@
87
93
  "@types/react-dom": "^17.0.11",
88
94
  "@types/react-window": "^1.8.5",
89
95
  "@types/styled-components": "^5.1.23",
96
+ "@types/ua-parser-js": "^0.7.36",
97
+ "@zendeskgarden/react-dropdowns": "^8.49.0",
98
+ "@zendeskgarden/react-forms": "^8.49.0",
90
99
  "@zendeskgarden/react-theming": "^8.48.2",
91
100
  "@zendeskgarden/svg-icons": "^6.31.1",
92
101
  "auto": "^10.36.5",
@@ -103,9 +112,7 @@
103
112
  "storybook-addon-designs": "^6.2.1",
104
113
  "styled-components": "^5.3.3",
105
114
  "typescript": "^4.5.0",
106
- "web-vitals": "^2.1.4",
107
- "@zendeskgarden/react-dropdowns": "^8.49.0",
108
- "@zendeskgarden/react-forms": "^8.49.0"
115
+ "web-vitals": "^2.1.4"
109
116
  },
110
117
  "description": "Unguess design system",
111
118
  "author": "Luca Cannarozzo (@cannarocks)",