@appquality/unguess-design-system 2.3.1 → 2.5.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 +49 -0
- package/build/hooks/useWindowSize.d.ts +4 -0
- package/build/index.d.ts +17 -0
- package/build/index.js +621 -160
- package/build/stories/avatar/_types.d.ts +2 -0
- package/build/stories/avatar/index.stories.d.ts +2 -5
- package/build/stories/dropdowns/multiselect/index.stories.d.ts +1 -1
- package/build/stories/dropdowns/select/index.d.ts +2 -2
- package/build/stories/dropdowns/select/index.stories.d.ts +2 -2
- package/build/stories/icons/_types.d.ts +7 -0
- package/build/stories/icons/index.d.ts +4 -0
- package/build/stories/icons/index.stories.d.ts +6 -0
- package/build/stories/login-form/_types.d.ts +4 -0
- package/build/stories/logo/_types.d.ts +9 -0
- package/build/stories/logo/index.d.ts +13 -0
- package/build/stories/logo/index.stories.d.ts +6 -0
- package/build/stories/modals/_types.d.ts +34 -0
- package/build/stories/modals/index.d.ts +10 -0
- package/build/stories/modals/index.stories.d.ts +19 -0
- package/build/stories/navigation/app-header/_types.d.ts +17 -0
- package/build/stories/navigation/app-header/index.d.ts +8 -0
- package/build/stories/navigation/app-header/index.stories.d.ts +6 -0
- package/build/stories/navigation/body/_types.d.ts +5 -0
- package/build/stories/navigation/body/index.d.ts +7 -0
- package/build/stories/navigation/chrome/_types.d.ts +7 -0
- package/build/stories/navigation/chrome/index.d.ts +10 -0
- package/build/stories/navigation/content/_types.d.ts +2 -0
- package/build/stories/navigation/content/index.d.ts +7 -0
- package/build/stories/navigation/header/_types.d.ts +5 -0
- package/build/stories/navigation/header/header-item/_types.d.ts +32 -0
- package/build/stories/navigation/header/header-item/brandItem.d.ts +4 -0
- package/build/stories/navigation/header/header-item/headerItem.d.ts +4 -0
- package/build/stories/navigation/header/header-item/headerItemIcon.d.ts +4 -0
- package/build/stories/navigation/header/header-item/headerItemText.d.ts +4 -0
- package/build/stories/navigation/header/header-item/index.d.ts +5 -0
- package/build/stories/navigation/header/header-item/utils.d.ts +13 -0
- package/build/stories/navigation/header/index.d.ts +13 -0
- package/build/stories/navigation/main/_types.d.ts +2 -0
- package/build/stories/navigation/main/index.d.ts +7 -0
- package/build/stories/navigation/nav/_types.d.ts +5 -0
- package/build/stories/navigation/nav/index.d.ts +10 -0
- package/build/stories/navigation/nav/nav-item/_types.d.ts +29 -0
- package/build/stories/navigation/nav/nav-item/index.d.ts +7 -0
- package/build/stories/navigation/nav/nav-item/navDivider.d.ts +4 -0
- package/build/stories/navigation/nav/nav-item/navItem.d.ts +4 -0
- package/build/stories/navigation/nav/nav-item/navItemIcon.d.ts +4 -0
- package/build/stories/navigation/nav/nav-item/navItemProject.d.ts +8 -0
- package/build/stories/navigation/nav/nav-item/navItemText.d.ts +4 -0
- package/build/stories/navigation/nav/nav-item/navToggle.d.ts +4 -0
- package/build/stories/navigation/sidebar/_types.d.ts +15 -0
- package/build/stories/navigation/sidebar/index.d.ts +10 -0
- package/build/stories/navigation/sidebar/index.stories.d.ts +9 -0
- package/build/stories/page/index.d.ts +8 -0
- package/build/stories/page/index.stories.d.ts +6 -0
- package/build/stories/table/_types.d.ts +10 -2
- package/build/stories/table/index.d.ts +3 -2
- package/build/stories/table/index.stories.d.ts +8 -0
- package/package.json +5 -3
package/build/index.js
CHANGED
|
@@ -13,11 +13,15 @@ var reactNotifications = require('@zendeskgarden/react-notifications');
|
|
|
13
13
|
var reactDropdowns = require('@zendeskgarden/react-dropdowns');
|
|
14
14
|
var reactForms = require('@zendeskgarden/react-forms');
|
|
15
15
|
var reactGrid = require('@zendeskgarden/react-grid');
|
|
16
|
+
var React = require('react');
|
|
16
17
|
var reactLoaders = require('@zendeskgarden/react-loaders');
|
|
17
18
|
var formik = require('formik');
|
|
18
|
-
var
|
|
19
|
-
var
|
|
19
|
+
var reactModals = require('@zendeskgarden/react-modals');
|
|
20
|
+
var reactChrome = require('@zendeskgarden/react-chrome');
|
|
20
21
|
var reactTypography = require('@zendeskgarden/react-typography');
|
|
22
|
+
var reactPagination = require('@zendeskgarden/react-pagination');
|
|
23
|
+
var reactTables = require('@zendeskgarden/react-tables');
|
|
24
|
+
var reactTags = require('@zendeskgarden/react-tags');
|
|
21
25
|
|
|
22
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
27
|
|
|
@@ -68,6 +72,18 @@ var __assign = function() {
|
|
|
68
72
|
return __assign.apply(this, arguments);
|
|
69
73
|
};
|
|
70
74
|
|
|
75
|
+
function __rest(s, e) {
|
|
76
|
+
var t = {};
|
|
77
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
78
|
+
t[p] = s[p];
|
|
79
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
80
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
81
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
82
|
+
t[p[i]] = s[p[i]];
|
|
83
|
+
}
|
|
84
|
+
return t;
|
|
85
|
+
}
|
|
86
|
+
|
|
71
87
|
function __makeTemplateObject(cooked, raw) {
|
|
72
88
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
73
89
|
return cooked;
|
|
@@ -208,8 +224,8 @@ var gradients = {
|
|
|
208
224
|
|
|
209
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 });
|
|
210
226
|
|
|
211
|
-
var GlobalStyle = styled.createGlobalStyle(templateObject_1$
|
|
212
|
-
var templateObject_1$
|
|
227
|
+
var GlobalStyle = styled.createGlobalStyle(templateObject_1$w || (templateObject_1$w = __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);
|
|
228
|
+
var templateObject_1$w;
|
|
213
229
|
|
|
214
230
|
/**
|
|
215
231
|
* Accordions are headers that can be expanded to reveal content or collapsed to hide it.
|
|
@@ -224,7 +240,8 @@ Accordion.Header = reactAccordions.Accordion.Header;
|
|
|
224
240
|
Accordion.Label = reactAccordions.Accordion.Label;
|
|
225
241
|
Accordion.Panel = reactAccordions.Accordion.Panel;
|
|
226
242
|
|
|
227
|
-
|
|
243
|
+
// import useWindowSize from "../../hooks/useWindowSize";
|
|
244
|
+
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
228
245
|
return "\n background: ".concat(props.backgroundColor || theme.gradients.dark, ";\n ");
|
|
229
246
|
});
|
|
230
247
|
/**
|
|
@@ -235,10 +252,19 @@ var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$
|
|
|
235
252
|
*/
|
|
236
253
|
var Avatar = function (props) {
|
|
237
254
|
var fixedBadge = props.badge && props.badge > 9 ? "9+" : props.badge;
|
|
238
|
-
|
|
255
|
+
var wrapChildren = function (type) {
|
|
256
|
+
if (type === "icon")
|
|
257
|
+
return props.children;
|
|
258
|
+
if (type === "image")
|
|
259
|
+
return jsxRuntime.jsx("img", { alt: "avatar", src: props.children });
|
|
260
|
+
if (type === "text")
|
|
261
|
+
return jsxRuntime.jsx(Avatar.Text, { children: props.children });
|
|
262
|
+
};
|
|
263
|
+
// const { width } = useWindowSize();
|
|
264
|
+
return (jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
|
|
239
265
|
};
|
|
240
266
|
Avatar.Text = UgAvatar.Text;
|
|
241
|
-
var templateObject_1$
|
|
267
|
+
var templateObject_1$v;
|
|
242
268
|
|
|
243
269
|
/**
|
|
244
270
|
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
@@ -259,7 +285,7 @@ var Breadcrumb = function (props) { return jsxRuntime.jsx(reactBreadcrumbs.Bread
|
|
|
259
285
|
*/
|
|
260
286
|
var Anchor = function (props) { return jsxRuntime.jsx(reactButtons.Anchor, __assign({}, props)); };
|
|
261
287
|
|
|
262
|
-
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
288
|
+
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$u || (templateObject_1$u = __makeTemplateObject([""], [""])));
|
|
263
289
|
/**
|
|
264
290
|
* Buttons let users take action quickly.
|
|
265
291
|
* Use a Button to enable actions or decisions that are important to a user’s workflow.
|
|
@@ -271,7 +297,7 @@ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
|
271
297
|
var Button = function (props) { return jsxRuntime.jsx(UgButton, __assign({}, props)); };
|
|
272
298
|
Button.StartIcon = UgButton.StartIcon;
|
|
273
299
|
Button.EndIcon = UgButton.EndIcon;
|
|
274
|
-
var templateObject_1$
|
|
300
|
+
var templateObject_1$u;
|
|
275
301
|
|
|
276
302
|
/**
|
|
277
303
|
A Button group lets users make a selection from a set of options.
|
|
@@ -314,25 +340,25 @@ var Card = function (props) { return jsxRuntime.jsx(reactNotifications.Well, __a
|
|
|
314
340
|
*/
|
|
315
341
|
var Close = function (props) { return jsxRuntime.jsx(reactNotifications.Close, __assign({}, props)); };
|
|
316
342
|
|
|
317
|
-
var UgField$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$
|
|
343
|
+
var UgField$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$t || (templateObject_1$t = __makeTemplateObject([""], [""])));
|
|
318
344
|
var Field$1 = function (props) { return jsxRuntime.jsx(UgField$1, __assign({}, props)); };
|
|
319
|
-
var templateObject_1$
|
|
345
|
+
var templateObject_1$t;
|
|
320
346
|
|
|
321
347
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
322
348
|
__proto__: null,
|
|
323
349
|
Field: Field$1
|
|
324
350
|
});
|
|
325
351
|
|
|
326
|
-
var UgItem = styled__default["default"](reactDropdowns.Item)(templateObject_1$
|
|
352
|
+
var UgItem = styled__default["default"](reactDropdowns.Item)(templateObject_1$s || (templateObject_1$s = __makeTemplateObject([""], [""])));
|
|
327
353
|
var Item = function (props) { return jsxRuntime.jsx(UgItem, __assign({}, props)); };
|
|
328
|
-
var templateObject_1$
|
|
354
|
+
var templateObject_1$s;
|
|
329
355
|
|
|
330
|
-
var UgMenu = styled__default["default"](reactDropdowns.Menu)(templateObject_1$
|
|
356
|
+
var UgMenu = styled__default["default"](reactDropdowns.Menu)(templateObject_1$r || (templateObject_1$r = __makeTemplateObject([""], [""])));
|
|
331
357
|
/**
|
|
332
358
|
* A Menu is a wrapper for items elements
|
|
333
359
|
**/
|
|
334
360
|
var Menu = function (props) { return jsxRuntime.jsx(UgMenu, __assign({}, props)); };
|
|
335
|
-
var templateObject_1$
|
|
361
|
+
var templateObject_1$r;
|
|
336
362
|
|
|
337
363
|
/**
|
|
338
364
|
* Multiselect lets users select multiple items from a list. Options are dynamically filtered as a user types in the input field and their selections appear as tags in the input field.
|
|
@@ -357,7 +383,7 @@ var Select = function (props) { return jsxRuntime.jsx(reactDropdowns.Select, __a
|
|
|
357
383
|
var Dropdown = function (props) { return jsxRuntime.jsx(reactDropdowns.Dropdown, __assign({}, props)); };
|
|
358
384
|
var Message = function (props) { return jsxRuntime.jsx(reactDropdowns.Message, __assign({}, props)); };
|
|
359
385
|
|
|
360
|
-
var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_1$
|
|
386
|
+
var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_1$q || (templateObject_1$q = __makeTemplateObject([""], [""])));
|
|
361
387
|
/**
|
|
362
388
|
* A Checkbox lets users select and unselect options from a list.
|
|
363
389
|
* <hr>
|
|
@@ -369,21 +395,21 @@ var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_
|
|
|
369
395
|
* - To let users activate an option that takes effect immediately, use a Toggle instead
|
|
370
396
|
**/
|
|
371
397
|
var Checkbox = function (props) { return jsxRuntime.jsx(UgCheckbox, __assign({}, props)); };
|
|
372
|
-
var templateObject_1$
|
|
398
|
+
var templateObject_1$q;
|
|
373
399
|
|
|
374
|
-
var UgField = styled__default["default"](reactForms.Field)(templateObject_1$
|
|
400
|
+
var UgField = styled__default["default"](reactForms.Field)(templateObject_1$p || (templateObject_1$p = __makeTemplateObject([""], [""])));
|
|
375
401
|
/**
|
|
376
402
|
* A Field is a wrapper for input elements
|
|
377
403
|
**/
|
|
378
404
|
var Field = function (props) { return jsxRuntime.jsx(UgField, __assign({}, props)); };
|
|
379
|
-
var templateObject_1$
|
|
405
|
+
var templateObject_1$p;
|
|
380
406
|
|
|
381
407
|
var index = /*#__PURE__*/Object.freeze({
|
|
382
408
|
__proto__: null,
|
|
383
409
|
Field: Field
|
|
384
410
|
});
|
|
385
411
|
|
|
386
|
-
var UgInput = styled__default["default"](reactForms.Input)(templateObject_1$
|
|
412
|
+
var UgInput = styled__default["default"](reactForms.Input)(templateObject_1$o || (templateObject_1$o = __makeTemplateObject([""], [""])));
|
|
387
413
|
/**
|
|
388
414
|
* An Input lets users enter text into a field.
|
|
389
415
|
* <hr>
|
|
@@ -392,9 +418,9 @@ var UgInput = styled__default["default"](reactForms.Input)(templateObject_1$9 ||
|
|
|
392
418
|
* - To enter multiline text, use a Textarea
|
|
393
419
|
**/
|
|
394
420
|
var Input = function (props) { return jsxRuntime.jsx(UgInput, __assign({}, props)); };
|
|
395
|
-
var templateObject_1$
|
|
421
|
+
var templateObject_1$o;
|
|
396
422
|
|
|
397
|
-
var UgRadio = styled__default["default"](reactForms.Radio)(templateObject_1$
|
|
423
|
+
var UgRadio = styled__default["default"](reactForms.Radio)(templateObject_1$n || (templateObject_1$n = __makeTemplateObject([""], [""])));
|
|
398
424
|
/**
|
|
399
425
|
* Radio buttons let users choose a single option among two or more mutually exclusive options.
|
|
400
426
|
* <hr>
|
|
@@ -406,9 +432,9 @@ var UgRadio = styled__default["default"](reactForms.Radio)(templateObject_1$8 ||
|
|
|
406
432
|
* - To select from a long list of options, use Select instead
|
|
407
433
|
**/
|
|
408
434
|
var Radio = function (props) { return jsxRuntime.jsx(UgRadio, __assign({}, props)); };
|
|
409
|
-
var templateObject_1$
|
|
435
|
+
var templateObject_1$n;
|
|
410
436
|
|
|
411
|
-
var UgTextarea = styled__default["default"](reactForms.Textarea)(templateObject_1$
|
|
437
|
+
var UgTextarea = styled__default["default"](reactForms.Textarea)(templateObject_1$m || (templateObject_1$m = __makeTemplateObject([""], [""])));
|
|
412
438
|
/**
|
|
413
439
|
* A Textarea is a form control for multi-line text.
|
|
414
440
|
* <hr>
|
|
@@ -416,9 +442,9 @@ var UgTextarea = styled__default["default"](reactForms.Textarea)(templateObject_
|
|
|
416
442
|
* - To enter multi-line text
|
|
417
443
|
**/
|
|
418
444
|
var Textarea = function (props) { return jsxRuntime.jsx(UgTextarea, __assign({}, props)); };
|
|
419
|
-
var templateObject_1$
|
|
445
|
+
var templateObject_1$m;
|
|
420
446
|
|
|
421
|
-
var UgToggle = styled__default["default"](reactForms.Toggle)(templateObject_1$
|
|
447
|
+
var UgToggle = styled__default["default"](reactForms.Toggle)(templateObject_1$l || (templateObject_1$l = __makeTemplateObject([""], [""])));
|
|
422
448
|
/**
|
|
423
449
|
* A Toggle lets users turn something on and off like a light switch. Unlike a Checkbox, which is used for selection, a Toggle is used for activation.
|
|
424
450
|
* <hr>
|
|
@@ -429,7 +455,7 @@ var UgToggle = styled__default["default"](reactForms.Toggle)(templateObject_1$6
|
|
|
429
455
|
* - To let users select from a list of settings, use Checkboxes instead
|
|
430
456
|
**/
|
|
431
457
|
var Toggle = function (props) { return jsxRuntime.jsx(UgToggle, __assign({}, props)); };
|
|
432
|
-
var templateObject_1$
|
|
458
|
+
var templateObject_1$l;
|
|
433
459
|
|
|
434
460
|
var Col = function (props) { return jsxRuntime.jsx(reactGrid.Col, __assign({}, props)); };
|
|
435
461
|
|
|
@@ -443,15 +469,112 @@ var Row = function (props) { return jsxRuntime.jsx(reactGrid.Row, __assign({}, p
|
|
|
443
469
|
*/
|
|
444
470
|
var Grid = function (props) { return jsxRuntime.jsx(reactGrid.Grid, __assign({}, props)); };
|
|
445
471
|
|
|
446
|
-
var
|
|
472
|
+
var _path$9;
|
|
473
|
+
|
|
474
|
+
function _extends$a() { _extends$a = 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$a.apply(this, arguments); }
|
|
475
|
+
|
|
476
|
+
var SvgUgSquare = function SvgUgSquare(props) {
|
|
477
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
478
|
+
width: 24,
|
|
479
|
+
height: 24,
|
|
480
|
+
viewBox: "0 0 24 24",
|
|
481
|
+
fill: "none",
|
|
482
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
483
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
484
|
+
d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19Z",
|
|
485
|
+
fill: "#E80C7A"
|
|
486
|
+
})));
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
var _path$8;
|
|
490
|
+
|
|
491
|
+
function _extends$9() { _extends$9 = 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$9.apply(this, arguments); }
|
|
492
|
+
|
|
493
|
+
var SvgUgCircle = function SvgUgCircle(props) {
|
|
494
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
495
|
+
width: 24,
|
|
496
|
+
height: 24,
|
|
497
|
+
viewBox: "0 0 24 24",
|
|
498
|
+
fill: "none",
|
|
499
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
500
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
501
|
+
d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
|
|
502
|
+
fill: "#FFCD1A"
|
|
503
|
+
})));
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
var _path$7;
|
|
507
|
+
|
|
508
|
+
function _extends$8() { _extends$8 = 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$8.apply(this, arguments); }
|
|
509
|
+
|
|
510
|
+
var SvgUgTriangle = function SvgUgTriangle(props) {
|
|
511
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
512
|
+
width: 24,
|
|
513
|
+
height: 24,
|
|
514
|
+
viewBox: "0 0 24 24",
|
|
515
|
+
fill: "none",
|
|
516
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
517
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
518
|
+
d: "M11.9993 7.32625L18.3893 17.5563H5.60929L11.9993 7.32625ZM11.1493 4.91625L2.94929 18.0262C2.53929 18.6962 3.01929 19.5563 3.79929 19.5563H20.1993C20.9893 19.5563 21.4593 18.6962 21.0493 18.0262L12.8493 4.91625C12.4593 4.28625 11.5393 4.28625 11.1493 4.91625Z",
|
|
519
|
+
fill: "#7B0DFF"
|
|
520
|
+
})));
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
var StyledUgIcon = styled__default["default"].span(templateObject_1$k || (templateObject_1$k = __makeTemplateObject([""], [""])));
|
|
524
|
+
var Icon = function (props) {
|
|
525
|
+
var children = function (type, size) {
|
|
526
|
+
if (size === void 0) { size = 24; }
|
|
527
|
+
if (type === "square")
|
|
528
|
+
return jsxRuntime.jsx(SvgUgSquare, __assign({}, props && !props.size, props && { width: size, height: size }));
|
|
529
|
+
if (type === "triangle")
|
|
530
|
+
return jsxRuntime.jsx(SvgUgTriangle, __assign({}, props && !props.size, props && { width: size, height: size }));
|
|
531
|
+
if (type === "circle")
|
|
532
|
+
return jsxRuntime.jsx(SvgUgCircle, __assign({}, props && !props.size, props && { width: size, height: size }));
|
|
533
|
+
};
|
|
534
|
+
return (jsxRuntime.jsx(StyledUgIcon, { children: children(props.type, props.size) }));
|
|
535
|
+
};
|
|
536
|
+
var templateObject_1$k;
|
|
537
|
+
|
|
538
|
+
var UgLabel = styled__default["default"](reactForms.Label)(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([""], [""])));
|
|
447
539
|
/**
|
|
448
540
|
* A Label is used to specify a title for an input.
|
|
449
541
|
* <hr>
|
|
450
542
|
**/
|
|
451
543
|
var Label = function (props) { return jsxRuntime.jsx(UgLabel, __assign({}, props)); };
|
|
452
|
-
var templateObject_1$
|
|
544
|
+
var templateObject_1$j;
|
|
545
|
+
|
|
546
|
+
var UgProgress = styled__default["default"](reactLoaders.Progress)(templateObject_1$i || (templateObject_1$i = __makeTemplateObject([""], [""])));
|
|
547
|
+
/**
|
|
548
|
+
* A Progress loader communicates progress when downloading or uploading content.
|
|
549
|
+
* <hr>
|
|
550
|
+
* Used for this:
|
|
551
|
+
* - To communicate the amount of time left when downloading or uploading content
|
|
552
|
+
*
|
|
553
|
+
Not for this:
|
|
554
|
+
- When the loading time is unknown, use a Spinner instead
|
|
555
|
+
- When loading page content, use a Skeleton loader instead
|
|
556
|
+
*/
|
|
557
|
+
var Progress = function (props) { return jsxRuntime.jsx(UgProgress, __assign({}, props)); };
|
|
558
|
+
var templateObject_1$i;
|
|
453
559
|
|
|
454
|
-
var
|
|
560
|
+
var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$h || (templateObject_1$h = __makeTemplateObject([""], [""])));
|
|
561
|
+
/**
|
|
562
|
+
* 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
|
+
* <hr>
|
|
564
|
+
* Used for this:
|
|
565
|
+
- Skeleton is the default loader, used whenever the system can predict the format of the loading content
|
|
566
|
+
- To progressively load different parts of a page
|
|
567
|
+
- To avoid large layout shifts
|
|
568
|
+
|
|
569
|
+
* Not for this:
|
|
570
|
+
- When the system doesn’t have control over the content that is loading, use a Spinner instead
|
|
571
|
+
- To indicate that a component (like a button or search input) is busy, use Dots instead
|
|
572
|
+
- To communicate a typing status, use Inline instead
|
|
573
|
+
*/
|
|
574
|
+
var Skeleton = function (props) { return jsxRuntime.jsx(UgSkeleton, __assign({}, props)); };
|
|
575
|
+
var templateObject_1$h;
|
|
576
|
+
|
|
577
|
+
var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_1$g || (templateObject_1$g = __makeTemplateObject([""], [""])));
|
|
455
578
|
/**
|
|
456
579
|
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
457
580
|
* <hr>
|
|
@@ -460,142 +583,424 @@ var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_
|
|
|
460
583
|
- To provide a quick way to navigate to ancestor pages
|
|
461
584
|
*/
|
|
462
585
|
var Spinner = function (props) { return jsxRuntime.jsx(UgSpinner, __assign({}, props)); };
|
|
463
|
-
var templateObject_1$
|
|
586
|
+
var templateObject_1$g;
|
|
464
587
|
|
|
465
588
|
/**
|
|
466
589
|
* Title is a basic component used to display a title. Often used in card headers.
|
|
467
590
|
*/
|
|
468
591
|
var Title = function (props) { return jsxRuntime.jsx(reactNotifications.Title, __assign({}, props)); };
|
|
469
592
|
|
|
470
|
-
|
|
593
|
+
/**
|
|
594
|
+
* Login Form
|
|
595
|
+
* <hr>
|
|
596
|
+
* Used for this:
|
|
597
|
+
- Login user to the application
|
|
598
|
+
*/
|
|
599
|
+
var LoginForm = function (props) { return (jsxRuntime.jsxs(Card, __assign({ isFloating: true }, { children: [jsxRuntime.jsx(Title, __assign({ style: { textAlign: "center", margin: theme.space.md } }, { children: props.title })), jsxRuntime.jsx(formik.Formik, __assign({}, props, { initialValues: props.initialValues, onSubmit: props.onSubmit, validate: props.validate }, { children: function (_a) {
|
|
600
|
+
var values = _a.values, errors = _a.errors, touched = _a.touched, handleChange = _a.handleChange, handleSubmit = _a.handleSubmit, isSubmitting = _a.isSubmitting;
|
|
601
|
+
return (jsxRuntime.jsxs(formik.Form, __assign({ onSubmit: handleSubmit }, { children: [jsxRuntime.jsxs(Field, { children: [jsxRuntime.jsx(Input, __assign({ type: "email", name: "email", placeholder: props.placeholderEmail, onChange: handleChange, value: values.email }, (touched && values.email
|
|
602
|
+
? (touched.email = true)
|
|
603
|
+
: (touched.email = false)), (errors && errors.email
|
|
604
|
+
? { validation: "error" }
|
|
605
|
+
: touched.email
|
|
606
|
+
? { validation: "success" }
|
|
607
|
+
: ""))), errors.email ? (jsxRuntime.jsx(Message, __assign({ validation: "error" }, { children: errors.email }))) : ("")] }), jsxRuntime.jsxs(Field, __assign({ style: { marginTop: theme.space.md } }, { children: [jsxRuntime.jsx(Input, __assign({ type: "password", name: "password", placeholder: props.placeholderPassword, onChange: handleChange, value: values.password }, (touched && values.password
|
|
608
|
+
? (touched.password = true)
|
|
609
|
+
: (touched.password = false)), (errors && errors.password
|
|
610
|
+
? { validation: "error" }
|
|
611
|
+
: touched.password
|
|
612
|
+
? { validation: "success" }
|
|
613
|
+
: ""))), errors.password ? (jsxRuntime.jsx(Message, __assign({ validation: "error" }, { children: errors.password }))) : ("")] })), jsxRuntime.jsx("br", {}), jsxRuntime.jsx(Button, __assign({ type: "submit", isStretched: true, disabled: Object.keys(errors).length ? true : isSubmitting ? true : false, isPrimary: true }, { children: props.buttonText }))] })));
|
|
614
|
+
} }))] }))); };
|
|
615
|
+
|
|
616
|
+
var img$2 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' %5b %3c!ENTITY ns_extend 'http://ns.adobe.com/Extensibility/1.0/'%3e %3c!ENTITY ns_ai 'http://ns.adobe.com/AdobeIllustrator/10.0/'%3e %3c!ENTITY ns_graphs 'http://ns.adobe.com/Graphs/1.0/'%3e %3c!ENTITY ns_vars 'http://ns.adobe.com/Variables/1.0/'%3e %3c!ENTITY ns_imrep 'http://ns.adobe.com/ImageReplacement/1.0/'%3e %3c!ENTITY ns_sfw 'http://ns.adobe.com/SaveForWeb/1.0/'%3e %3c!ENTITY ns_custom 'http://ns.adobe.com/GenericCustomNamespace/1.0/'%3e %3c!ENTITY ns_adobe_xpath 'http://ns.adobe.com/XPath/1.0/'%3e%5d%3e%3csvg enable-background='new 0 0 479.42 154.1' version='1.1' viewBox='0 0 479.42 154.1' xml:space='preserve' xmlns='http://www.w3.org/2000/svg'%3e%3cstyle type='text/css'%3e .st0%7bfill:%23003A57%3b%7d .st1%7bfill:%2354C38A%3b%7d .st2%7bfill:%23B2C4CD%3b%7d .st3%7bfill:%23809CAB%3b%7d .st4%7bfill:%23CCEDDC%3b%7d .st5%7bfill:%23CCD8DD%3b%7d .st6%7bfill:%23E5EBEE%3b%7d .st7%7bfill:%23A9E1C5%3b%7d%3c/style%3e%3cswitch%3e %3cforeignObject width='1' height='1' requiredExtensions='http://ns.adobe.com/AdobeIllustrator/10.0/'%3e %3c/foreignObject%3e %3cg%3e %3cpath class='st0' d='m203.46 43.96c1.66 0 3.06 0.82 3.06 2.56 0 0.83-0.48 1.54-1.36 1.88 1.11 0.31 1.64 1.33 1.64 2.18 0 1.94-1.63 2.52-3.35 2.52h-3.99v-9.13h4zm-2.85 3.93h2.91c1.1 0 1.89-0.4 1.89-1.36 0-1.02-0.82-1.54-1.94-1.54h-2.86v2.9zm0 4.13h2.86c0.95 0 2.22-0.25 2.22-1.49-0.01-1.15-1.17-1.62-2.16-1.62h-2.91v3.11z'/%3e %3cpath class='st0' d='M212.75%2c43.96h6.41V45h-5.29v2.86h5.07v1.06h-5.07v3.09h5.5v1.08h-6.62V43.96z'/%3e %3cpath class='st0' d='m235.85 44.78c-1.16 0-2.4 0.46-2.4 1.56 0 0.99 1.13 1.28 2.48 1.5 1.83 0.29 3.62 0.65 3.62 2.71-0.01 2.05-1.97 2.71-3.72 2.71-1.62 0-3.16-0.59-3.86-2.11l0.94-0.55c0.59 1.08 1.81 1.6 2.93 1.6 1.11 0 2.58-0.35 2.58-1.69 0.01-1.13-1.26-1.46-2.63-1.67-1.76-0.27-3.47-0.68-3.47-2.53-0.03-1.9 1.92-2.55 3.49-2.55 1.36 0 2.65 0.27 3.45 1.66l-0.86 0.53c-0.48-0.79-1.54-1.15-2.55-1.17z'/%3e %3cpath class='st0' d='m250.07 50.22h-0.23l-3.31-4.64v7.51h-1.12v-9.13h1.36l3.21 4.69 3.18-4.69h1.36v9.13h-1.12v-7.49l-3.33 4.62z'/%3e %3cpath class='st0' d='m265.37 43.96 4.09 9.13h-1.23l-0.9-2.01h-5.22l-0.89 2.01h-1.22l4.09-9.13h1.28zm-0.64 1.15-2.16 4.93h4.33l-2.17-4.93z'/%3e %3cpath class='st0' d='m278.31 49.8h-2.22v3.29h-1.13v-9.13h4.15c2.06 0 3.09 1.43 3.09 2.92 0.01 1.38-0.74 2.67-2.62 2.83l3.01 3.38h-1.43l-2.85-3.29zm2.75-2.89c0.01-0.91-0.64-1.93-1.96-1.93h-3.01v3.81h2.96c1.37 0 2.01-0.85 2.01-1.88z'/%3e %3cpath class='st0' d='m287.15 44.98v-1.02h7.35v1.02h-3.12v8.11h-1.12v-8.11h-3.11z'/%3e %3cpath class='st0' d='m313.34 43.96v1.08h-5.2v3.18h4.98v1.06h-4.98v3.82h-1.14v-9.14h6.34z'/%3e %3cpath class='st0' d='m322.57 49.8h-2.22v3.29h-1.13v-9.13h4.15c2.06 0 3.09 1.43 3.09 2.92 0.01 1.38-0.74 2.67-2.62 2.83l3.01 3.38h-1.43l-2.85-3.29zm2.76-2.89c0.01-0.91-0.64-1.93-1.96-1.93h-3.01v3.81h2.96c1.37 0 2.01-0.85 2.01-1.88z'/%3e %3cpath class='st0' d='m341.26 48.55c-0.01 2.39-1.5 4.72-4.63 4.72s-4.64-2.32-4.64-4.72c0-2.65 1.77-4.75 4.65-4.75 3.1 0.02 4.64 2.34 4.62 4.75zm-4.61-3.7c-2.32 0-3.52 1.71-3.52 3.7 0 1.85 1.12 3.65 3.52 3.65s3.48-1.85 3.48-3.65c0.01-1.85-1.1-3.68-3.48-3.7z'/%3e %3cpath class='st0' d='m351.84 50.22h-0.23l-3.31-4.64v7.51h-1.12v-9.13h1.36l3.21 4.69 3.18-4.69h1.36v9.13h-1.12v-7.49l-3.33 4.62z'/%3e %3cpath class='st0' d='m368.77 44.98v-1.02h7.35v1.02h-3.12v8.11h-1.12v-8.11h-3.11z'/%3e %3cpath class='st0' d='m387.97 48.97h-5.22v4.12h-1.13v-9.13h1.13v3.95h5.22v-3.95h1.13v9.13h-1.13v-4.12z'/%3e %3cpath class='st0' d='M395.58%2c43.96H402V45h-5.29v2.86h5.07v1.06h-5.07v3.09h5.5v1.08h-6.62V43.96z'/%3e %3cpath class='st0' d='m418.68 44.78c-1.16 0-2.4 0.46-2.4 1.56 0 0.99 1.13 1.28 2.48 1.5 1.83 0.29 3.62 0.65 3.62 2.71-0.01 2.05-1.97 2.71-3.72 2.71-1.62 0-3.15-0.59-3.86-2.11l0.94-0.55c0.59 1.08 1.81 1.6 2.93 1.6 1.11 0 2.58-0.35 2.58-1.69 0.01-1.13-1.26-1.46-2.63-1.67-1.76-0.27-3.47-0.68-3.47-2.53-0.03-1.9 1.92-2.55 3.49-2.55 1.36 0 2.65 0.27 3.46 1.66l-0.86 0.53c-0.49-0.79-1.54-1.15-2.56-1.17z'/%3e %3cpath class='st0' d='m427.25 44.98v-1.02h7.35v1.02h-3.12v8.11h-1.12v-8.11h-3.11z'/%3e %3cpath class='st0' d='m443.63 43.96 4.09 9.13h-1.23l-0.9-2.01h-5.22l-0.89 2.01h-1.24l4.09-9.13h1.3zm-0.64 1.15-2.16 4.93h4.33l-2.17-4.93z'/%3e %3cpath class='st0' d='m456.57 49.8h-2.22v3.29h-1.13v-9.13h4.15c2.06 0 3.09 1.43 3.09 2.92 0.01 1.38-0.74 2.67-2.62 2.83l3.01 3.38h-1.43l-2.85-3.29zm2.75-2.89c0.01-0.91-0.64-1.93-1.96-1.93h-3.01v3.81h2.96c1.37 0 2.01-0.85 2.01-1.88z'/%3e %3cpath class='st0' d='m465.41 44.98v-1.02h7.35v1.02h-3.12v8.11h-1.12v-8.11h-3.11z'/%3e %3cpath class='st0' d='m157.64 115.24v-24.59c0-6.81-3.65-10.72-10.03-10.72-6 0-9.44 3.91-9.44 10.72v24.59h-8.58v-24.59c0-11.51 6.93-18.66 18.08-18.66 11.26 0 18.54 7.32 18.54 18.66v24.59h-8.57z'/%3e %3cpath class='st0' d='m214.63 116.35c-16.55 0-22.44-11.2-22.44-21.67 0-15.87 11.27-22.98 22.44-22.98 5.93 0 11.53 2.3 15.77 6.49l0.34 0.34-5.54 5.67-0.35-0.33c-2.55-2.44-6.57-4.02-10.23-4.02-8.14 0-13.82 6.1-13.82 14.83 0 6.48 3.63 13.4 13.82 13.4 3.51 0 6.11-0.89 8.89-3.07v-6.64h-10.61v-7.97h19.29v17.55l-0.63 0.76c-4.49 5.14-10.03 7.64-16.93 7.64z'/%3e %3cpath class='st0' d='m277.01 115.24c-11.26 0-18.54-7.32-18.54-18.66v-24.59h8.58v24.59c0 6.81 3.65 10.72 10.02 10.72 6 0 9.44-3.91 9.44-10.72v-24.59h8.58v24.59c0 11.51-6.92 18.66-18.08 18.66z'/%3e %3cpolygon class='st0' points='321.07 115.24 321.07 72.25 354.94 72.25 354.94 80.65 329.64 80.65 329.64 90.13 350.81 90.13 350.81 98.24 329.64 98.24 329.64 106.72 354.94 106.72 354.94 115.24'/%3e %3cpath class='st0' d='m397.19 116.06c-9.41 0-15.35-3.37-18.16-10.29l-0.17-0.41 7.25-3.76 0.2 0.5c1.55 3.85 5.66 6.14 10.99 6.14 2.08 0 8.86-0.4 8.86-5.61 0-3.05-2.94-4.85-8.97-5.5-14.45-1.72-16.4-7.43-16.4-12.79 0-8.43 8.14-12.27 16.22-12.33 8.06 0 13.73 2.88 16.41 8.34l0.21 0.43-6.92 3.56-0.23-0.39c-1.25-2.08-4.91-4.29-9.22-4.29-4.89 0-7.93 1.88-7.93 4.92 0 2.99 3.45 4.01 8.63 4.63 8.73 1.08 16.8 3.45 16.8 13.43-0.02 9.89-9.09 13.42-17.57 13.42z'/%3e %3cpath class='st0' d='m457.03 116.25c-9.4 0-15.33-3.36-18.14-10.28l-0.17-0.41 7.25-3.75 0.2 0.5c1.55 3.84 5.65 6.13 10.98 6.13 2.08 0 8.85-0.4 8.85-5.61 0-3.05-2.93-4.85-8.96-5.49-14.44-1.72-16.38-7.42-16.38-12.78 0-8.42 8.14-12.25 16.2-12.32 8.05 0 13.71 2.88 16.39 8.33l0.21 0.43-6.92 3.56-0.23-0.39c-1.25-2.08-4.9-4.29-9.21-4.29-4.89 0-7.93 1.88-7.93 4.91 0 2.99 3.45 4.01 8.62 4.62 8.72 1.07 16.79 3.44 16.79 13.42-0.01 9.9-9.07 13.42-17.55 13.42z'/%3e %3cpath class='st0' d='m94.63 93.63v4.23h-0.03c-0.36 6.13-3.75 9.62-9.43 9.62-6.03 0-9.62-3.49-10.01-9.62h-0.03v-4.23h-8.58v4.23 0.01 0.05c0.49 10.69 7.66 17.52 18.55 17.52 10.79 0 17.63-6.68 18.09-17.52v-4.29h-8.56z'/%3e %3crect class='st1' x='66.55' y='72.02' width='8.6' height='8.6'/%3e %3crect class='st0' x='94.41' y='72.02' width='8.72' height='8.72'/%3e %3crect class='st2' transform='matrix(-1.837e-16 1 -1 -1.837e-16 103.01 7.8599)' x='43.27' y='51.13' width='8.6' height='8.6'/%3e %3crect class='st3' transform='matrix(-1.837e-16 1 -1 -1.837e-16 126.9 6.4839)' x='55.9' y='62.39' width='8.6' height='8.6'/%3e %3crect class='st4' transform='matrix(-1.837e-16 1 -1 -1.837e-16 94.995 31.397)' x='27.5' y='58.89' width='8.6' height='8.6'/%3e %3crect class='st5' transform='matrix(-1.837e-16 1 -1 -1.837e-16 64.365 27.091)' x='14.34' y='41.43' width='8.6' height='8.6'/%3e %3crect class='st6' transform='matrix(-1.837e-16 1 -1 -1.837e-16 138.08 66.268)' x='31.6' y='97.87' width='8.6' height='8.6'/%3e %3crect class='st7' transform='matrix(-1.837e-16 1 -1 -1.837e-16 137.84 35.856)' x='46.69' y='82.55' width='8.6' height='8.6'/%3e %3c/g%3e%3c/switch%3e%3c/svg%3e";
|
|
617
|
+
|
|
618
|
+
var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 26.0.1%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 532 311.3' style='enable-background:new 0 0 532 311.3%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:%23003A57%3b%7d .st1%7bfill:%2354C38A%3b%7d .st2%7bfill:%23B2C4CD%3b%7d .st3%7bfill:%23809CAB%3b%7d .st4%7bfill:%23CCEDDC%3b%7d .st5%7bfill:%23CCD8DD%3b%7d .st6%7bfill:%23E5EBEE%3b%7d .st7%7bfill:%23A9E1C5%3b%7d%3c/style%3e%3cg%3e %3cg%3e %3cpath class='st0' d='M89.4%2c278.2c2.4%2c0%2c4.4%2c1.2%2c4.4%2c3.7c0%2c1.2-0.7%2c2.2-1.9%2c2.7c1.6%2c0.4%2c2.4%2c1.9%2c2.4%2c3.1c0%2c2.8-2.3%2c3.6-4.8%2c3.6 h-5.7v-13.1H89.4z M85.3%2c283.8h4.2c1.6%2c0%2c2.7-0.6%2c2.7-1.9c0-1.5-1.2-2.2-2.8-2.2h-4.1V283.8z M85.3%2c289.8h4.1 c1.4%2c0%2c3.2-0.4%2c3.2-2.1c0-1.6-1.7-2.3-3.1-2.3h-4.2V289.8z'/%3e %3cpath class='st0' d='M101.9%2c278.2h9.2v1.5h-7.6v4.1h7.3v1.5h-7.3v4.4h7.9v1.6h-9.5V278.2z'/%3e %3cpath class='st0' d='M133.5%2c279.4c-1.7%2c0-3.4%2c0.7-3.4%2c2.2c0%2c1.4%2c1.6%2c1.8%2c3.6%2c2.2c2.6%2c0.4%2c5.2%2c0.9%2c5.2%2c3.9c0%2c2.9-2.8%2c3.9-5.3%2c3.9 c-2.3%2c0-4.5-0.8-5.5-3l1.3-0.8c0.8%2c1.6%2c2.6%2c2.3%2c4.2%2c2.3c1.6%2c0%2c3.7-0.5%2c3.7-2.4c0-1.6-1.8-2.1-3.8-2.4c-2.5-0.4-5-1-5-3.6 c0-2.7%2c2.8-3.7%2c5-3.7c1.9%2c0%2c3.8%2c0.4%2c5%2c2.4l-1.2%2c0.8C136.5%2c279.9%2c135%2c279.4%2c133.5%2c279.4z'/%3e %3cpath class='st0' d='M153.1%2c287.2h-0.3l-4.8-6.7v10.8h-1.6v-13.1h1.9l4.6%2c6.7l4.6-6.7h1.9v13.1h-1.6v-10.7L153.1%2c287.2z'/%3e %3cpath class='st0' d='M174.3%2c278.2l5.9%2c13.1h-1.8l-1.3-2.9h-7.5l-1.3%2c2.9h-1.8l5.9-13.1H174.3z M173.4%2c279.8l-3.1%2c7.1h6.2 L173.4%2c279.8z'/%3e %3cpath class='st0' d='M192.1%2c286.6h-3.2v4.7h-1.6v-13.1h5.9c3%2c0%2c4.4%2c2.1%2c4.4%2c4.2c0%2c2-1.1%2c3.8-3.8%2c4.1l4.3%2c4.8h-2.1L192.1%2c286.6z M196%2c282.4c0-1.3-0.9-2.8-2.8-2.8h-4.3v5.5h4.2C195.1%2c285.1%2c196%2c283.9%2c196%2c282.4z'/%3e %3cpath class='st0' d='M204%2c279.7v-1.5h10.6v1.5h-4.5v11.6h-1.6v-11.6H204z'/%3e %3cpath class='st0' d='M240%2c278.2v1.6h-7.5v4.6h7.1v1.5h-7.1v5.5h-1.6v-13.1H240z'/%3e %3cpath class='st0' d='M252.5%2c286.6h-3.2v4.7h-1.6v-13.1h5.9c3%2c0%2c4.4%2c2.1%2c4.4%2c4.2c0%2c2-1.1%2c3.8-3.8%2c4.1l4.3%2c4.8h-2.1L252.5%2c286.6z M256.4%2c282.4c0-1.3-0.9-2.8-2.8-2.8h-4.3v5.5h4.2C255.5%2c285.1%2c256.4%2c283.9%2c256.4%2c282.4z'/%3e %3cpath class='st0' d='M278.5%2c284.8c0%2c3.4-2.2%2c6.8-6.6%2c6.8c-4.5%2c0-6.7-3.3-6.7-6.8c0-3.8%2c2.5-6.8%2c6.7-6.8 C276.3%2c278%2c278.5%2c281.3%2c278.5%2c284.8z M271.9%2c279.5c-3.3%2c0-5.1%2c2.5-5.1%2c5.3c0%2c2.7%2c1.6%2c5.2%2c5.1%2c5.2c3.4%2c0%2c5-2.7%2c5-5.2 C276.9%2c282.1%2c275.3%2c279.5%2c271.9%2c279.5z'/%3e %3cpath class='st0' d='M292.9%2c287.2h-0.3l-4.8-6.7v10.8h-1.6v-13.1h1.9l4.6%2c6.7l4.6-6.7h1.9v13.1h-1.6v-10.7L292.9%2c287.2z'/%3e %3cpath class='st0' d='M315.6%2c279.7v-1.5h10.6v1.5h-4.5v11.6h-1.6v-11.6H315.6z'/%3e %3cpath class='st0' d='M342.4%2c285.4h-7.5v5.9h-1.6v-13.1h1.6v5.7h7.5v-5.7h1.6v13.1h-1.6V285.4z'/%3e %3cpath class='st0' d='M352.6%2c278.2h9.2v1.5h-7.6v4.1h7.3v1.5h-7.3v4.4h7.9v1.6h-9.5V278.2z'/%3e %3cpath class='st0' d='M384.1%2c279.4c-1.7%2c0-3.4%2c0.7-3.4%2c2.2c0%2c1.4%2c1.6%2c1.8%2c3.6%2c2.2c2.6%2c0.4%2c5.2%2c0.9%2c5.2%2c3.9c0%2c2.9-2.8%2c3.9-5.3%2c3.9 c-2.3%2c0-4.5-0.8-5.5-3l1.3-0.8c0.8%2c1.6%2c2.6%2c2.3%2c4.2%2c2.3c1.6%2c0%2c3.7-0.5%2c3.7-2.4c0-1.6-1.8-2.1-3.8-2.4c-2.5-0.4-5-1-5-3.6 c0-2.7%2c2.8-3.7%2c5-3.7c1.9%2c0%2c3.8%2c0.4%2c5%2c2.4l-1.2%2c0.8C387.1%2c279.9%2c385.6%2c279.4%2c384.1%2c279.4z'/%3e %3cpath class='st0' d='M395.7%2c279.7v-1.5h10.6v1.5h-4.5v11.6h-1.6v-11.6H395.7z'/%3e %3cpath class='st0' d='M418.4%2c278.2l5.9%2c13.1h-1.8l-1.3-2.9h-7.5l-1.3%2c2.9h-1.8l5.9-13.1H418.4z M417.5%2c279.8l-3.1%2c7.1h6.2 L417.5%2c279.8z'/%3e %3cpath class='st0' d='M436.2%2c286.6H433v4.7h-1.6v-13.1h5.9c3%2c0%2c4.4%2c2.1%2c4.4%2c4.2c0%2c2-1.1%2c3.8-3.8%2c4.1l4.3%2c4.8h-2.1L436.2%2c286.6z M440.1%2c282.4c0-1.3-0.9-2.8-2.8-2.8H433v5.5h4.2C439.2%2c285.1%2c440.1%2c283.9%2c440.1%2c282.4z'/%3e %3cpath class='st0' d='M448.1%2c279.7v-1.5h10.6v1.5h-4.5v11.6h-1.6v-11.6H448.1z'/%3e %3c/g%3e%3c/g%3e%3cpath class='st0' d='M144.4%2c246.7v-27.4c0-7.6-4.1-11.9-11.2-11.9c-6.7%2c0-10.5%2c4.4-10.5%2c11.9v27.4h-9.6v-27.4 c0-12.8%2c7.7-20.8%2c20.1-20.8c12.5%2c0%2c20.7%2c8.2%2c20.7%2c20.8v27.4H144.4z'/%3e%3cpath class='st0' d='M207.9%2c248c-18.4%2c0-25-12.5-25-24.1c0-17.7%2c12.6-25.6%2c25-25.6c6.6%2c0%2c12.8%2c2.6%2c17.6%2c7.2l0.4%2c0.4l-6.2%2c6.3 l-0.4-0.4c-2.8-2.7-7.3-4.5-11.4-4.5c-9.1%2c0-15.4%2c6.8-15.4%2c16.5c0%2c7.2%2c4%2c14.9%2c15.4%2c14.9c3.9%2c0%2c6.8-1%2c9.9-3.4v-7.4H206v-8.9h21.5 v19.5l-0.7%2c0.9C221.8%2c245.2%2c215.6%2c248%2c207.9%2c248z'/%3e%3cpath class='st0' d='M277.4%2c246.7c-12.5%2c0-20.7-8.2-20.7-20.8v-27.4h9.6V226c0%2c7.6%2c4.1%2c11.9%2c11.2%2c11.9c6.7%2c0%2c10.5-4.4%2c10.5-11.9 v-27.4h9.6V226C297.5%2c238.8%2c289.8%2c246.7%2c277.4%2c246.7z'/%3e%3cpath class='st0' d='M63.4%2c246.7c-12.5%2c0-20.7-8.2-20.7-20.8v-27.4h9.6V226c0%2c7.6%2c4.1%2c11.9%2c11.2%2c11.9c6.7%2c0%2c10.5-4.4%2c10.5-11.9 v-27.4h9.6V226C83.6%2c238.8%2c75.8%2c246.7%2c63.4%2c246.7z'/%3e%3cpolygon class='st0' points='326.4%2c246.7 326.4%2c198.9 364.2%2c198.9 364.2%2c208.2 336%2c208.2 336%2c218.8 359.6%2c218.8 359.6%2c227.8 336%2c227.8 336%2c237.3 364.2%2c237.3 364.2%2c246.7 '/%3e%3cpath class='st0' d='M411.2%2c247.6c-10.5%2c0-17.1-3.7-20.2-11.5l-0.2-0.5l8.1-4.2l0.2%2c0.6c1.7%2c4.3%2c6.3%2c6.8%2c12.2%2c6.8 c2.3%2c0%2c9.9-0.5%2c9.9-6.2c0-3.4-3.3-5.4-10-6.1c-16.1-1.9-18.3-8.3-18.3-14.2c0-9.4%2c9.1-13.7%2c18.1-13.7c9%2c0%2c15.3%2c3.2%2c18.3%2c9.3l0.2%2c0.5 l-7.7%2c4l-0.3-0.4c-1.4-2.3-5.5-4.8-10.3-4.8c-5.4%2c0-8.8%2c2.1-8.8%2c5.5c0%2c3.3%2c3.8%2c4.5%2c9.6%2c5.2c9.7%2c1.2%2c18.7%2c3.8%2c18.7%2c15 C430.7%2c243.7%2c420.7%2c247.6%2c411.2%2c247.6z'/%3e%3cpath class='st0' d='M477.9%2c247.6c-10.5%2c0-17.1-3.7-20.2-11.5l-0.2-0.5l8.1-4.2l0.2%2c0.6c1.7%2c4.3%2c6.3%2c6.8%2c12.2%2c6.8 c2.3%2c0%2c9.9-0.5%2c9.9-6.2c0-3.4-3.3-5.4-10-6.1c-16.1-1.9-18.3-8.3-18.3-14.2c0-9.4%2c9.1-13.7%2c18.1-13.7c9%2c0%2c15.3%2c3.2%2c18.3%2c9.3l0.2%2c0.5 l-7.7%2c4l-0.3-0.4c-1.4-2.3-5.5-4.8-10.3-4.8c-5.4%2c0-8.8%2c2.1-8.8%2c5.5c0%2c3.3%2c3.8%2c4.5%2c9.6%2c5.2c9.7%2c1.2%2c18.7%2c3.8%2c18.7%2c15 C497.4%2c243.7%2c487.3%2c247.6%2c477.9%2c247.6z'/%3e%3cg%3e %3cpath class='st0' d='M296.2%2c105.8v8h-0.1c-0.7%2c11.6-7.1%2c18.2-17.8%2c18.2c-11.4%2c0-18.2-6.6-18.9-18.2h-0.1v-8h-16.2v8h0c0%2c0%2c0%2c0%2c0%2c0 v0.1h0c0.9%2c20.2%2c14.5%2c33.1%2c35.1%2c33.1c20.4%2c0%2c33.3-12.6%2c34.2-33.1h0v-8.1H296.2z'/%3e %3crect x='243.2' y='65' class='st1' width='16.3' height='16.3'/%3e %3crect x='295.8' y='65' class='st0' width='16.5' height='16.5'/%3e %3crect x='199.1' y='25.5' transform='matrix(-1.836970e-16 1 -1 -1.836970e-16 240.8896 -173.6676)' class='st2' width='16.3' height='16.3'/%3e %3crect x='223' y='46.8' transform='matrix(-1.836970e-16 1 -1 -1.836970e-16 286.0495 -176.2692)' class='st3' width='16.3' height='16.3'/%3e %3crect x='169.3' y='40.2' transform='matrix(-1.836970e-16 1 -1 -1.836970e-16 225.7338 -129.1657)' class='st4' width='16.3' height='16.3'/%3e %3crect x='144.4' y='7.1' transform='matrix(-1.836970e-16 1 -1 -1.836970e-16 167.8209 -137.3073)' class='st5' width='16.3' height='16.3'/%3e %3crect x='177.1' y='113.8' transform='matrix(-1.836970e-16 1 -1 -1.836970e-16 307.1887 -63.2329)' class='st6' width='16.3' height='16.3'/%3e %3crect x='205.6' y='84.9' transform='matrix(-1.836970e-16 1 -1 -1.836970e-16 306.7381 -120.7343)' class='st7' width='16.3' height='16.3'/%3e%3c/g%3e%3c/svg%3e";
|
|
619
|
+
|
|
620
|
+
var img = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.2597 12.9199V14.767H17.2367C17.075 17.4452 15.5974 18.969 13.127 18.969C10.4949 18.969 8.92496 17.4452 8.76335 14.767H8.74026V12.9199H5V14.767V14.7901C5.20779 19.4538 8.34777 22.4322 13.1039 22.4322C17.8139 22.4322 20.7922 19.5231 21 14.7901V12.9199H17.2597Z' fill='%23003A57'/%3e%3cpath d='M8.78629 3.5H5.02295V7.26335H8.78629V3.5Z' fill='%2370C38A'/%3e%3cpath d='M20.9768 3.5H17.1672V7.30952H20.9768V3.5Z' fill='%23003A57'/%3e%3c/svg%3e";
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* A Logo is a visual way to represent a brand logo.
|
|
624
|
+
* <hr>
|
|
625
|
+
* Used for this:
|
|
626
|
+
* - To visually represent a brand or product
|
|
627
|
+
*
|
|
628
|
+
* Not for this:
|
|
629
|
+
* - To visually represent a common image
|
|
630
|
+
*/
|
|
631
|
+
var Logo = function (props) {
|
|
632
|
+
var _a;
|
|
633
|
+
return (jsxRuntime.jsx("img", __assign({}, props && !props.type, props && props.type === "horizontal" && { width: "".concat(props.size) }, props && props.type === "vertical" && { height: "".concat(props.size) }, props && props.type === "icon" && { width: "".concat(props.size) } && { height: "".concat(props.size) }, { className: props.className, alt: (_a = props.alt) !== null && _a !== void 0 ? _a : "Unguess Logo", src: {
|
|
634
|
+
'horizontal': img$2,
|
|
635
|
+
'vertical': img$1,
|
|
636
|
+
'icon': img,
|
|
637
|
+
}[props.type] })));
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
var ugModalBody = styled__default["default"](reactModals.Body)(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
641
|
+
var theme = _a.theme;
|
|
642
|
+
return theme.palette.grey["800"];
|
|
643
|
+
});
|
|
644
|
+
var Modal = function (props) { return jsxRuntime.jsx(reactModals.Modal, __assign({}, props)); };
|
|
645
|
+
var FooterItem = reactModals.FooterItem;
|
|
646
|
+
Modal.Header = reactModals.Header;
|
|
647
|
+
Modal.Body = ugModalBody;
|
|
648
|
+
Modal.Footer = reactModals.Footer;
|
|
649
|
+
var templateObject_1$f;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* A Body defines the main content of an HTML document which displays on the browser
|
|
653
|
+
*/
|
|
654
|
+
var Body$1 = function (props) { return jsxRuntime.jsx(reactChrome.Body, __assign({}, props)); };
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* A Content defines the main content of an HTML document which displays on the browser
|
|
658
|
+
*/
|
|
659
|
+
var Content = function (props) { return jsxRuntime.jsx(reactChrome.Content, __assign({}, props)); };
|
|
660
|
+
|
|
661
|
+
var UgHeaderItem = styled__default["default"](reactChrome.HeaderItem)(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (props) { return props.hasLogo && "border-right: none"; });
|
|
662
|
+
var HeaderItem = function (props) { return jsxRuntime.jsx(UgHeaderItem, __assign({}, props)); };
|
|
663
|
+
var templateObject_1$e;
|
|
664
|
+
|
|
665
|
+
var HeaderItemText = function (props) { return jsxRuntime.jsx(reactChrome.HeaderItemText, __assign({}, props)); };
|
|
666
|
+
|
|
667
|
+
var HeaderItemIcon = function (props) { return (jsxRuntime.jsx(reactChrome.HeaderItemIcon, __assign({}, props))); };
|
|
668
|
+
|
|
669
|
+
var _path$6;
|
|
670
|
+
|
|
671
|
+
function _extends$7() { _extends$7 = 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$7.apply(this, arguments); }
|
|
672
|
+
|
|
673
|
+
var SvgMenuStroke = function SvgMenuStroke(props) {
|
|
674
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
675
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
676
|
+
width: 16,
|
|
677
|
+
height: 16,
|
|
678
|
+
focusable: "false",
|
|
679
|
+
viewBox: "0 0 16 16"
|
|
680
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
681
|
+
fill: "none",
|
|
682
|
+
stroke: "currentColor",
|
|
683
|
+
strokeLinecap: "round",
|
|
684
|
+
d: "M1.5 3.5h13m-13 4h13m-13 4h13"
|
|
685
|
+
})));
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
var LogoIconContainer = styled__default["default"](reactChrome.HeaderItem)(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n margin-right: 2px;\n border-right: none;\n @media (max-width: ", ") {\n right: 0;\n left: 0;\n margin-right: auto;\n margin-left: auto;\n position: absolute;\n }\n"], ["\n margin-right: 2px;\n border-right: none;\n @media (max-width: ", ") {\n right: 0;\n left: 0;\n margin-right: auto;\n margin-left: auto;\n position: absolute;\n }\n"])), function (_a) {
|
|
689
|
+
var theme = _a.theme;
|
|
690
|
+
return theme.breakpoints.sm;
|
|
691
|
+
});
|
|
692
|
+
var BrandName = styled__default["default"](reactChrome.HeaderItem)(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n margin-right: auto;\n margin-left: -8px;\n color: ", ";\n pointer-events: none;\n @media (max-width: ", ") {\n display: none;\n }\n"], ["\n margin-right: auto;\n margin-left: -8px;\n color: ", ";\n pointer-events: none;\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (_a) {
|
|
693
|
+
var theme = _a.theme;
|
|
694
|
+
return theme.palette.blue["600"];
|
|
695
|
+
}, function (_a) {
|
|
696
|
+
var theme = _a.theme;
|
|
697
|
+
return theme.breakpoints.sm;
|
|
698
|
+
});
|
|
699
|
+
var MenuItem = styled__default["default"](reactChrome.HeaderItem)(templateObject_3 || (templateObject_3 = __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) {
|
|
700
|
+
var theme = _a.theme;
|
|
701
|
+
return theme.palette.blue["600"];
|
|
702
|
+
}, function (_a) {
|
|
703
|
+
var theme = _a.theme;
|
|
704
|
+
return theme.breakpoints.sm;
|
|
705
|
+
});
|
|
706
|
+
var BrandItem = function (props) {
|
|
707
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(MenuItem, __assign({}, props, { onClick: props.toggleMenu }, { children: [jsxRuntime.jsx(HeaderItemIcon, { children: jsxRuntime.jsx(SvgMenuStroke, {}) }), props.menuLabel && jsxRuntime.jsx(HeaderItemText, { children: props.menuLabel })] })), jsxRuntime.jsx(LogoIconContainer, __assign({}, props, { hasLogo: true }, { children: jsxRuntime.jsx(HeaderItemIcon, { children: jsxRuntime.jsx(Logo, { type: "icon", size: 150 }) }) })), props.brandName && (jsxRuntime.jsx(BrandName, __assign({}, props, { children: jsxRuntime.jsx(HeaderItemText, { children: props.brandName }) })))] }));
|
|
708
|
+
};
|
|
709
|
+
var templateObject_1$d, templateObject_2$3, templateObject_3;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* An Header is a visual way to display general information.
|
|
713
|
+
* This can include navList Items, modal, profile settings.
|
|
714
|
+
*/
|
|
715
|
+
var Header = function (props) { return jsxRuntime.jsx(reactChrome.Header, __assign({}, props)); };
|
|
716
|
+
Header.HeaderItem = HeaderItem;
|
|
717
|
+
Header.HeaderItemText = HeaderItemText;
|
|
718
|
+
Header.HeaderItemIcon = HeaderItemIcon;
|
|
719
|
+
|
|
720
|
+
var _path$5, _path2;
|
|
721
|
+
|
|
722
|
+
function _extends$6() { _extends$6 = 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$6.apply(this, arguments); }
|
|
723
|
+
|
|
724
|
+
var SvgMegaphoneStroke = function SvgMegaphoneStroke(props) {
|
|
725
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
726
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
727
|
+
width: 16,
|
|
728
|
+
height: 16,
|
|
729
|
+
focusable: "false",
|
|
730
|
+
viewBox: "0 0 16 16"
|
|
731
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
732
|
+
fill: "none",
|
|
733
|
+
stroke: "currentColor",
|
|
734
|
+
d: "M4.5 4.5v7H4a3.5 3.5 0 010-7h.5zm0 7h3V14a1.5 1.5 0 01-3 0v-2.5z"
|
|
735
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
736
|
+
fill: "currentColor",
|
|
737
|
+
d: "M5 5v6h6l4 4V1l-4 4H5zM14.293.293C14.923-.337 16 .109 16 1v14c0 .89-1.077 1.337-1.707.707L10.586 12H5a1 1 0 01-1-1V5a1 1 0 011-1h5.586L14.293.293z"
|
|
738
|
+
})));
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
var _path$4;
|
|
742
|
+
|
|
743
|
+
function _extends$5() { _extends$5 = 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$5.apply(this, arguments); }
|
|
744
|
+
|
|
745
|
+
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
746
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
747
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
748
|
+
width: 16,
|
|
749
|
+
height: 16,
|
|
750
|
+
focusable: "false",
|
|
751
|
+
viewBox: "0 0 16 16"
|
|
752
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
753
|
+
fill: "currentColor",
|
|
754
|
+
d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
|
|
755
|
+
})));
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
var ChevronButton = styled__default["default"](IconButton)(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n @media (max-width: ", ") {\n display: none;\n }\n"], ["\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (_a) {
|
|
759
|
+
var theme = _a.theme;
|
|
760
|
+
return theme.breakpoints.sm;
|
|
761
|
+
});
|
|
762
|
+
/**
|
|
763
|
+
* An Header is a visual way to display general information.
|
|
764
|
+
* This can include navList Items, modal, profile settings.
|
|
765
|
+
*/
|
|
766
|
+
var AppHeader = function (_a) {
|
|
767
|
+
var brand = _a.brand, avatar = _a.avatar, args = __rest(_a, ["brand", "avatar"]);
|
|
768
|
+
return (jsxRuntime.jsxs(Header, __assign({}, args, { children: [jsxRuntime.jsx(BrandItem, __assign({}, brand, { toggleMenu: args.onSidebarMenuToggle })), args.hasChangelog && (jsxRuntime.jsx(HeaderItem, __assign({ onClick: args.onChangelogClick, style: { marginRight: "-" + theme.space.sm } }, { children: jsxRuntime.jsx(HeaderItemIcon, { children: jsxRuntime.jsx(SvgMegaphoneStroke, {}) }) }))), jsxRuntime.jsx(HeaderItem, __assign({ isRound: true, onClick: avatar === null || avatar === void 0 ? void 0 : avatar.onProfileModalToggle }, { children: jsxRuntime.jsx(HeaderItemIcon, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Avatar, __assign({}, avatar)), jsxRuntime.jsx(ChevronButton, __assign({ size: "small" }, { children: jsxRuntime.jsx(SvgChevronDownStroke, {}) }))] }) }) }))] })));
|
|
769
|
+
};
|
|
770
|
+
var templateObject_1$c;
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* A Main defines the main content of an HTML document which displays on the browser
|
|
774
|
+
*/
|
|
775
|
+
var Main = function (props) { return jsxRuntime.jsx(reactChrome.Main, __assign({}, props)); };
|
|
776
|
+
|
|
777
|
+
var UgNav = styled__default["default"](reactChrome.Nav)(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n border-right: ", ";\n border-color: ", ";\n ", "\n ", "\n transition: width 0.25s ease-in-out;\n padding-top: ", ";\n"], ["\n border-right: ", ";\n border-color: ", ";\n ", "\n ", "\n transition: width 0.25s ease-in-out;\n padding-top: ", ";\n"])), function (_a) {
|
|
778
|
+
var theme = _a.theme;
|
|
779
|
+
return theme.borders.sm;
|
|
780
|
+
}, function (_a) {
|
|
781
|
+
var theme = _a.theme;
|
|
782
|
+
return reactTheming.getColor(theme.colors.neutralHue, 300);
|
|
783
|
+
}, function (props) { return !props.isExpanded && "width: ".concat(props.theme.space.base * 9, "px;"); }, function (props) {
|
|
784
|
+
return "\n @media (max-width: ".concat(props.theme.breakpoints.sm, ") {\n width: ").concat(props.isExpanded ? "100%" : "0", ";\n border-right: none;\n }\n ");
|
|
785
|
+
}, function (_a) {
|
|
786
|
+
var theme = _a.theme;
|
|
787
|
+
return theme.space.sm;
|
|
788
|
+
});
|
|
789
|
+
/**
|
|
790
|
+
* The Nav component provides a high-level layout structure and sets a framework for navigating around dashboards.
|
|
791
|
+
* <br>
|
|
792
|
+
* Used for this:
|
|
793
|
+
- To give a consistent dashboard and navigation experience
|
|
794
|
+
*/
|
|
795
|
+
var Nav = function (props) { return jsxRuntime.jsx(UgNav, __assign({}, props)); };
|
|
796
|
+
var templateObject_1$b;
|
|
797
|
+
|
|
798
|
+
var SelectedItemStyle = styled.css(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (props) { return props.theme.palette.kale["100"]; });
|
|
799
|
+
var UgNavItem$2 = styled__default["default"](reactChrome.NavItem)(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n border-top-left-radius: ", "px;\n border-bottom-left-radius: ", "px;\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 ", "\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 (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) {
|
|
800
|
+
return props.isCurrent &&
|
|
801
|
+
"\n color: ".concat(props.theme.palette.blue["700"], ";\n font-weight: ").concat(props.theme.fontWeights.semibold, ";\n ");
|
|
802
|
+
});
|
|
803
|
+
var NavItem = function (props) {
|
|
804
|
+
// const { isExpanded } = props;
|
|
805
|
+
return jsxRuntime.jsx(UgNavItem$2, __assign({}, props));
|
|
806
|
+
};
|
|
807
|
+
var templateObject_1$a, templateObject_2$2;
|
|
808
|
+
|
|
809
|
+
var UgNavIcon = styled__default["default"](reactChrome.NavItemIcon)(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject([""], [""])));
|
|
810
|
+
var NavItemIcon = function (props) { return jsxRuntime.jsx(UgNavIcon, __assign({}, props)); };
|
|
811
|
+
var templateObject_1$9;
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Use Ellipsis to automatically provide text content with a native title attribute and text-overflow styling.
|
|
815
|
+
*/
|
|
816
|
+
var Ellipsis = function (props) { return jsxRuntime.jsx(reactTypography.Ellipsis, __assign({}, props)); };
|
|
817
|
+
|
|
818
|
+
var NavItemText = function (props) { return (jsxRuntime.jsx(reactChrome.NavItemText, __assign({}, props, { children: jsxRuntime.jsx(Ellipsis, __assign({ style: { width: "180px" } }, { children: props.children })) }))); };
|
|
819
|
+
|
|
820
|
+
var _path$3;
|
|
821
|
+
|
|
822
|
+
function _extends$4() { _extends$4 = 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$4.apply(this, arguments); }
|
|
823
|
+
|
|
824
|
+
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
825
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
826
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
827
|
+
width: 16,
|
|
828
|
+
height: 16,
|
|
829
|
+
focusable: "false",
|
|
830
|
+
viewBox: "0 0 16 16"
|
|
831
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
832
|
+
fill: "currentColor",
|
|
833
|
+
d: "M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z"
|
|
834
|
+
})));
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
var _path$2;
|
|
838
|
+
|
|
839
|
+
function _extends$3() { _extends$3 = 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$3.apply(this, arguments); }
|
|
840
|
+
|
|
841
|
+
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
842
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
843
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
844
|
+
width: 16,
|
|
845
|
+
height: 16,
|
|
846
|
+
focusable: "false",
|
|
847
|
+
viewBox: "0 0 16 16"
|
|
848
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
849
|
+
fill: "currentColor",
|
|
850
|
+
d: "M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z"
|
|
851
|
+
})));
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
var StyledToggle = styled__default["default"](IconButton)(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n min-width: ", ";\n position: absolute;\n top: ", "px;\n right: -", "px;\n background: ", "};\n z-index: 1;\n @media (max-width: ", ") {\n display: none;\n }\n"], ["\n width: ", "px;\n height: ", "px;\n min-width: ", ";\n position: absolute;\n top: ", "px;\n right: -", "px;\n background: ", "};\n z-index: 1;\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (_a) {
|
|
855
|
+
var theme = _a.theme;
|
|
856
|
+
return theme.space.base * 6;
|
|
857
|
+
}, function (_a) {
|
|
858
|
+
var theme = _a.theme;
|
|
859
|
+
return theme.space.base * 6;
|
|
860
|
+
}, function (_a) {
|
|
861
|
+
var theme = _a.theme;
|
|
862
|
+
return theme.space.md;
|
|
863
|
+
}, function (_a) {
|
|
864
|
+
var theme = _a.theme;
|
|
865
|
+
return theme.space.base * 3;
|
|
866
|
+
}, function (_a) {
|
|
867
|
+
var theme = _a.theme;
|
|
868
|
+
return theme.space.base * 3;
|
|
869
|
+
}, function (_a) {
|
|
870
|
+
var theme = _a.theme;
|
|
871
|
+
return theme.gradients.dark;
|
|
872
|
+
}, function (_a) {
|
|
873
|
+
var theme = _a.theme;
|
|
874
|
+
return theme.breakpoints.sm;
|
|
875
|
+
});
|
|
876
|
+
var NavToggle = function (props) {
|
|
877
|
+
return (jsxRuntime.jsx(StyledToggle, __assign({}, props, { isPrimary: true, size: "small" }, { children: props.isExpanded ? (jsxRuntime.jsx(SvgChevronLeftStroke, { style: { width: "100%" } })) : (jsxRuntime.jsx(SvgChevronRightStroke, { style: { width: "100%" } })) })));
|
|
878
|
+
};
|
|
879
|
+
var templateObject_1$8;
|
|
880
|
+
|
|
881
|
+
var UgNavItem$1 = styled__default["default"](reactChrome.NavItem)(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n width: 100%;\n min-height: ", ";\n opacity: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n padding-right: ", ";\n pointer-events: none;\n\n &:after {\n background: ", ";\n height: 1px;\n flex: 1;\n content: \"\";\n }\n\n span {\n background: #fff;\n margin: 0;\n margin-right: ", ";\n color: ", ";\n font-size: ", ";\n }\n ", "\n"], ["\n width: 100%;\n min-height: ", ";\n opacity: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n padding-right: ", ";\n pointer-events: none;\n\n &:after {\n background: ", ";\n height: 1px;\n flex: 1;\n content: \"\";\n }\n\n span {\n background: #fff;\n margin: 0;\n margin-right: ", ";\n color: ", ";\n font-size: ", ";\n }\n ", "\n"])), function (props) { return props.theme.space.lg; }, function (props) { return props.theme.space.sm; }, function (props) { return props.theme.palette.grey["200"]; }, function (props) { return props.theme.space.sm; }, function (props) { return props.theme.palette.grey["500"]; }, function (props) { return props.theme.fontSizes.sm; }, function (props) { return !props.isExpanded && "display: none;"; });
|
|
882
|
+
var NavDivider = function (props) { return (jsxRuntime.jsx(UgNavItem$1, __assign({}, props, { id: "ciolla" }, { children: jsxRuntime.jsx("span", { children: props.children }) }))); };
|
|
883
|
+
var templateObject_1$7;
|
|
884
|
+
|
|
885
|
+
var UgProjectSubtitle = styled__default["default"](NavItemText)(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n"], ["\n color: ", ";\n font-size: ", ";\n"])), function (props) { return props.theme.palette.grey["500"]; }, function (props) { return props.theme.fontSizes.sm; });
|
|
886
|
+
var UgNavItem = styled__default["default"](NavItem)(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n flex-flow: column;\n align-items: flex-start;\n"], ["\n flex-flow: column;\n align-items: flex-start;\n"])));
|
|
887
|
+
var NavItemProject = function (props) { return jsxRuntime.jsx(UgNavItem, __assign({}, props)); };
|
|
888
|
+
NavItemProject.Title = NavItemText;
|
|
889
|
+
NavItemProject.SubTitle = UgProjectSubtitle;
|
|
890
|
+
var templateObject_1$6, templateObject_2$1;
|
|
891
|
+
|
|
892
|
+
var _path$1;
|
|
893
|
+
|
|
894
|
+
function _extends$2() { _extends$2 = 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$2.apply(this, arguments); }
|
|
895
|
+
|
|
896
|
+
var SvgHomeFill = function SvgHomeFill(props) {
|
|
897
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
898
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
899
|
+
width: 26,
|
|
900
|
+
height: 26,
|
|
901
|
+
focusable: "false",
|
|
902
|
+
viewBox: "0 0 26 26"
|
|
903
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
904
|
+
fill: "currentColor",
|
|
905
|
+
d: "M23.885 13.2l-1.328 1.639a.522.522 0 01-.737.084l-1.444-1.155v7.182c0 .577-.474 1.05-1.054 1.05H16.51c-.58 0-1.054-.473-1.054-1.05v-3.182a2.43 2.43 0 00-.716-1.732 2.448 2.448 0 00-1.74-.714 2.45 2.45 0 00-1.739.714 2.43 2.43 0 00-.716 1.732v3.182c0 .577-.474 1.05-1.054 1.05H6.678c-.582 0-1.054-.47-1.054-1.05v-7.182L4.18 14.923a.522.522 0 01-.737-.084L2.115 13.2a.52.52 0 01.084-.735l10.474-8.348a.51.51 0 01.654 0L23.8 12.466a.52.52 0 01.084.735"
|
|
906
|
+
})));
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
var _linearGradient, _path;
|
|
910
|
+
|
|
911
|
+
function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
|
|
912
|
+
|
|
913
|
+
var SvgHomeFillStyled = function SvgHomeFillStyled(props) {
|
|
914
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
915
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
916
|
+
width: 26,
|
|
917
|
+
height: 26,
|
|
918
|
+
focusable: "false",
|
|
919
|
+
viewBox: "0 0 26 26"
|
|
920
|
+
}, props), _linearGradient || (_linearGradient = /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
921
|
+
id: "unguessIconGradient"
|
|
922
|
+
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
923
|
+
className: "stop1",
|
|
924
|
+
offset: "11.98%",
|
|
925
|
+
stopColor: "#70c38a"
|
|
926
|
+
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
927
|
+
className: "stop3",
|
|
928
|
+
offset: "100%",
|
|
929
|
+
stopColor: "#001825"
|
|
930
|
+
}))), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
931
|
+
fill: "url(#unguessIconGradient)",
|
|
932
|
+
d: "M23.885 13.2l-1.328 1.639a.522.522 0 01-.737.084l-1.444-1.155v7.182c0 .577-.474 1.05-1.054 1.05H16.51c-.58 0-1.054-.473-1.054-1.05v-3.182a2.43 2.43 0 00-.716-1.732 2.448 2.448 0 00-1.74-.714 2.45 2.45 0 00-1.739.714 2.43 2.43 0 00-.716 1.732v3.182c0 .577-.474 1.05-1.054 1.05H6.678c-.582 0-1.054-.47-1.054-1.05v-7.182L4.18 14.923a.522.522 0 01-.737-.084L2.115 13.2a.52.52 0 01.084-.735l10.474-8.348a.51.51 0 01.654 0L23.8 12.466a.52.52 0 01.084.735"
|
|
933
|
+
})));
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
var _g, _defs;
|
|
471
937
|
|
|
472
938
|
function _extends() { _extends = 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.apply(this, arguments); }
|
|
473
939
|
|
|
474
|
-
var
|
|
940
|
+
var SvgToken = function SvgToken(props) {
|
|
475
941
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
viewBox: "0 0 189.135 30.792"
|
|
942
|
+
fill: "none",
|
|
943
|
+
viewBox: "0 0 32 32",
|
|
944
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
480
945
|
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
481
|
-
|
|
482
|
-
"data-name": "Group 2",
|
|
483
|
-
transform: "translate(-356.09 231.603)"
|
|
946
|
+
clipPath: "url(#a)"
|
|
484
947
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
fill: "#
|
|
496
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
497
|
-
id: "Path_12",
|
|
498
|
-
"data-name": "Path 12",
|
|
499
|
-
d: "M710.01-170.478c-4.629,0-7.621-3.01-7.621-7.669v-10.107h3.525v10.107c0,2.8,1.5,4.407,4.119,4.407,2.467,0,3.881-1.606,3.881-4.407v-10.107h3.525v10.107C717.44-173.416,714.592-170.478,710.01-170.478Z",
|
|
500
|
-
transform: "translate(-245.97 -30.79)",
|
|
501
|
-
fill: "#003a57"
|
|
948
|
+
d: "m32 16c0 8.8363-7.1635 16-16 16-8.8369 0-16-7.1635-16-16 0-8.8367 7.1632-16 16-16 8.8364 0 16 7.1632 16 16z",
|
|
949
|
+
clipRule: "evenodd",
|
|
950
|
+
fill: "#9FD7B1",
|
|
951
|
+
fillRule: "evenodd"
|
|
952
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
953
|
+
x: 4.129,
|
|
954
|
+
y: 4.129,
|
|
955
|
+
width: 23.742,
|
|
956
|
+
height: 23.742,
|
|
957
|
+
rx: 11.871,
|
|
958
|
+
fill: "#003A57"
|
|
502
959
|
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
d: "M791.18-170.215v-17.669H805.1v3.453h-10.4v3.9h8.7v3.334h-8.7v3.484h10.4v3.5Z",
|
|
506
|
-
transform: "translate(-309.038 -31.053)",
|
|
507
|
-
fill: "#003a57"
|
|
960
|
+
d: "m18.662 16.433v1.1544h-0.0144c-0.1011 1.6739-1.0246 2.6263-2.5686 2.6263-1.645 0-2.6263-0.9524-2.7273-2.6263h-0.0144v-1.1544h-2.3377v1.1688c0.1299 2.9149 2.0924 4.7764 5.065 4.7764 2.9437 0 4.8052-1.8182 4.9351-4.7764v-1.1688h-2.3377z",
|
|
961
|
+
fill: "#fff"
|
|
508
962
|
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
d: "M880.688-170.132c-3.866,0-6.307-1.383-7.463-4.229l-.069-.169,2.981-1.545.082.2c.636,1.58,2.324,2.524,4.516,2.524.854,0,3.642-.166,3.642-2.306,0-1.254-1.206-1.993-3.687-2.26-5.94-.706-6.741-3.054-6.741-5.258,0-3.465,3.347-5.042,6.665-5.067,3.311,0,5.642,1.186,6.743,3.429l.086.176-2.846,1.463-.1-.16a4.623,4.623,0,0,0-3.79-1.764c-2.011,0-3.26.774-3.26,2.02,0,1.228,1.417,1.648,3.546,1.9,3.587.442,6.905,1.417,6.905,5.52C887.9-171.582,884.176-170.132,880.688-170.132Z",
|
|
512
|
-
transform: "translate(-367.264 -30.802)",
|
|
513
|
-
fill: "#003a57"
|
|
963
|
+
d: "m13.367 10.545h-2.3522v2.3521h2.3522v-2.3521z",
|
|
964
|
+
fill: "#54C38A"
|
|
514
965
|
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
transform: "translate(356.09 -231.603)"
|
|
524
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
525
|
-
id: "Path_16",
|
|
526
|
-
"data-name": "Path 16",
|
|
527
|
-
d: "M441.7-157.552v1.74h-.013c-.149,2.52-1.542,3.954-3.874,3.954a3.812,3.812,0,0,1-4.112-3.954h-.012v-1.74h-3.525v1.74h0v.023h0c.2,4.391,3.148,7.2,7.624,7.2,4.434,0,7.245-2.745,7.434-7.2h0v-1.762Z",
|
|
528
|
-
transform: "translate(-408.704 179.006)",
|
|
529
|
-
fill: "#003a57"
|
|
530
|
-
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
531
|
-
id: "Rectangle_55",
|
|
532
|
-
"data-name": "Rectangle 55",
|
|
533
|
-
width: 3.535,
|
|
534
|
-
height: 3.535,
|
|
535
|
-
transform: "translate(21.459 12.573)",
|
|
536
|
-
fill: "#54c38a"
|
|
537
|
-
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
538
|
-
id: "Rectangle_56",
|
|
539
|
-
"data-name": "Rectangle 56",
|
|
540
|
-
width: 3.585,
|
|
541
|
-
height: 3.585,
|
|
542
|
-
transform: "translate(32.908 12.573)",
|
|
543
|
-
fill: "#003a57"
|
|
544
|
-
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
545
|
-
id: "Rectangle_57",
|
|
546
|
-
"data-name": "Rectangle 57",
|
|
547
|
-
width: 3.535,
|
|
548
|
-
height: 3.535,
|
|
549
|
-
transform: "translate(15.427 3.989) rotate(90)",
|
|
550
|
-
fill: "#b2c4cd"
|
|
551
|
-
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
552
|
-
id: "Rectangle_58",
|
|
553
|
-
"data-name": "Rectangle 58",
|
|
554
|
-
width: 3.535,
|
|
555
|
-
height: 3.535,
|
|
556
|
-
transform: "translate(20.618 8.614) rotate(90)",
|
|
557
|
-
fill: "#809cab"
|
|
558
|
-
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
559
|
-
id: "Rectangle_59",
|
|
560
|
-
"data-name": "Rectangle 59",
|
|
561
|
-
width: 3.535,
|
|
562
|
-
height: 3.535,
|
|
563
|
-
transform: "translate(8.944 7.179) rotate(90)",
|
|
564
|
-
fill: "#cceddc"
|
|
565
|
-
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
566
|
-
id: "Rectangle_60",
|
|
567
|
-
"data-name": "Rectangle 60",
|
|
568
|
-
width: 3.535,
|
|
569
|
-
height: 3.535,
|
|
570
|
-
transform: "translate(3.535 0) rotate(90)",
|
|
571
|
-
fill: "#ccd8dd"
|
|
572
|
-
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
573
|
-
id: "Rectangle_61",
|
|
574
|
-
"data-name": "Rectangle 61",
|
|
575
|
-
width: 3.535,
|
|
576
|
-
height: 3.535,
|
|
577
|
-
transform: "translate(10.631 23.196) rotate(90)",
|
|
578
|
-
fill: "#e5ebee"
|
|
579
|
-
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
580
|
-
id: "Rectangle_62",
|
|
581
|
-
"data-name": "Rectangle 62",
|
|
582
|
-
width: 3.535,
|
|
583
|
-
height: 3.535,
|
|
584
|
-
transform: "translate(16.831 16.898) rotate(90)",
|
|
585
|
-
fill: "#a9e1c5"
|
|
966
|
+
d: "m20.986 10.545h-2.381v2.381h2.381v-2.381z",
|
|
967
|
+
fill: "#fff"
|
|
968
|
+
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
969
|
+
id: "a"
|
|
970
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
971
|
+
width: 32,
|
|
972
|
+
height: 32,
|
|
973
|
+
fill: "#fff"
|
|
586
974
|
})))));
|
|
587
975
|
};
|
|
588
976
|
|
|
589
977
|
/**
|
|
590
|
-
*
|
|
978
|
+
* Use Span to style and format inline text elements.
|
|
591
979
|
* <hr>
|
|
592
980
|
* Used for this:
|
|
593
|
-
-
|
|
981
|
+
- To apply styles to short strings of text
|
|
982
|
+
- To include icons inline with text
|
|
983
|
+
* Not for this:
|
|
984
|
+
- To style an entire block of text, use Paragraph instead
|
|
594
985
|
*/
|
|
595
|
-
var
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
986
|
+
var Span = function (props) { return jsxRuntime.jsx(reactTypography.Span, __assign({}, props)); };
|
|
987
|
+
|
|
988
|
+
var TokenContainer = styled__default["default"].div(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
989
|
+
/**
|
|
990
|
+
* The UNGUESS Sidebar component provides a high-level layout structure and sets a framework for navigating around projects.
|
|
991
|
+
* <br>
|
|
992
|
+
* Used for this:
|
|
993
|
+
- To give a consistent dashboard and navigation experience
|
|
994
|
+
*/
|
|
995
|
+
var Sidebar = function (props) {
|
|
996
|
+
var _a = React.useState(props.currentRoute || "home"), nav = _a[0], setNav = _a[1];
|
|
997
|
+
var toggleNav = function () {
|
|
998
|
+
props.onToggleMenu && props.onToggleMenu();
|
|
999
|
+
};
|
|
1000
|
+
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 &&
|
|
1001
|
+
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" })] }))] })));
|
|
1002
|
+
};
|
|
1003
|
+
var templateObject_1$5;
|
|
599
1004
|
|
|
600
1005
|
/**
|
|
601
1006
|
* A Notification is a passive status update that keeps users informed of system progress.
|
|
@@ -608,6 +1013,18 @@ var Notification = function (props) { return (jsxRuntime.jsx(reactNotifications.
|
|
|
608
1013
|
var ToastProvider = function (props) { return jsxRuntime.jsx(reactNotifications.ToastProvider, __assign({}, props)); };
|
|
609
1014
|
var useToast = reactNotifications.useToast;
|
|
610
1015
|
|
|
1016
|
+
var UgPagination = styled__default["default"](reactPagination.Pagination)(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject([""], [""])));
|
|
1017
|
+
/**
|
|
1018
|
+
* Pagination separates content into pages and allows users to navigate between those pages.
|
|
1019
|
+
|
|
1020
|
+
* Used for this:
|
|
1021
|
+
- To divide large amounts of data into manageable chunks
|
|
1022
|
+
|
|
1023
|
+
*/
|
|
1024
|
+
var Pagination = function (props) { return jsxRuntime.jsx(UgPagination, __assign({}, props)); };
|
|
1025
|
+
var CursorPagination = reactPagination.CursorPagination;
|
|
1026
|
+
var templateObject_1$4;
|
|
1027
|
+
|
|
611
1028
|
var UgTable = styled__default["default"](reactTables.Table)(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
|
|
612
1029
|
/**
|
|
613
1030
|
* A Table organizes data into columns and rows. Tables make it easier for users to compare and analyze information.
|
|
@@ -629,6 +1046,39 @@ var GroupRow = function (props) { return jsxRuntime.jsx(reactTables.GroupRow, __
|
|
|
629
1046
|
var Caption = function (props) { return jsxRuntime.jsx(reactTables.Caption, __assign({}, props)); };
|
|
630
1047
|
var templateObject_1$3;
|
|
631
1048
|
|
|
1049
|
+
/**
|
|
1050
|
+
* Tags let users categorize content using a keyword.
|
|
1051
|
+
|
|
1052
|
+
* Used for this:
|
|
1053
|
+
- To add metadata to an element such as category, attribute, or property
|
|
1054
|
+
- To communicate status
|
|
1055
|
+
- To represent parameters of a filter
|
|
1056
|
+
|
|
1057
|
+
* Not for this:
|
|
1058
|
+
- To prompt an action by the user, use a Button instead
|
|
1059
|
+
*/
|
|
1060
|
+
var Tag = function (props) { return jsxRuntime.jsx(reactTags.Tag, __assign({}, props)); };
|
|
1061
|
+
Tag.Avatar = reactTags.Tag.Avatar;
|
|
1062
|
+
Tag.Close = reactTags.Tag.Close;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Tiles are Radio buttons styled with icons or images.
|
|
1066
|
+
|
|
1067
|
+
* Used for this:
|
|
1068
|
+
- Like Radios, Tiles are for choices that can't occur at the same time
|
|
1069
|
+
|
|
1070
|
+
* Not for this:
|
|
1071
|
+
- To choose more than one option at once, use a Checkbox instead
|
|
1072
|
+
- To select from a long list of options, use a Select
|
|
1073
|
+
- To define an action, use a Button instead
|
|
1074
|
+
- For navigation, use an Anchor instead
|
|
1075
|
+
*/
|
|
1076
|
+
var Tiles = function (props) { return jsxRuntime.jsx(reactForms.Tiles, __assign({}, props)); };
|
|
1077
|
+
Tiles.Description = reactForms.Tiles.Description;
|
|
1078
|
+
Tiles.Icon = reactForms.Tiles.Icon;
|
|
1079
|
+
Tiles.Label = reactForms.Tiles.Label;
|
|
1080
|
+
Tiles.Tile = reactForms.Tiles.Tile;
|
|
1081
|
+
|
|
632
1082
|
/**
|
|
633
1083
|
* A Trigger is a wrapper for input elements
|
|
634
1084
|
**/
|
|
@@ -646,11 +1096,6 @@ var UgCode = styled__default["default"](reactTypography.Code)(templateObject_1$2
|
|
|
646
1096
|
var Code = function (props) { return jsxRuntime.jsx(UgCode, __assign({}, props)); };
|
|
647
1097
|
var templateObject_1$2;
|
|
648
1098
|
|
|
649
|
-
/**
|
|
650
|
-
* Use Ellipsis to automatically provide text content with a native title attribute and text-overflow styling.
|
|
651
|
-
*/
|
|
652
|
-
var Ellipsis = function (props) { return jsxRuntime.jsx(reactTypography.Ellipsis, __assign({}, props)); };
|
|
653
|
-
|
|
654
1099
|
var UgOrderedList = styled__default["default"](reactTypography.OrderedList)(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject([""], [""])));
|
|
655
1100
|
var UgUnorderedList = styled__default["default"](reactTypography.UnorderedList)(templateObject_2 || (templateObject_2 = __makeTemplateObject([""], [""])));
|
|
656
1101
|
/**
|
|
@@ -671,17 +1116,6 @@ var UgParagraph = styled__default["default"](reactTypography.Paragraph)(template
|
|
|
671
1116
|
var Paragraph = function (props) { return jsxRuntime.jsx(UgParagraph, __assign({}, props)); };
|
|
672
1117
|
var templateObject_1;
|
|
673
1118
|
|
|
674
|
-
/**
|
|
675
|
-
* Use Span to style and format inline text elements.
|
|
676
|
-
* <hr>
|
|
677
|
-
* Used for this:
|
|
678
|
-
- To apply styles to short strings of text
|
|
679
|
-
- To include icons inline with text
|
|
680
|
-
* Not for this:
|
|
681
|
-
- To style an entire block of text, use Paragraph instead
|
|
682
|
-
*/
|
|
683
|
-
var Span = function (props) { return jsxRuntime.jsx(reactTypography.Span, __assign({}, props)); };
|
|
684
|
-
|
|
685
1119
|
/**
|
|
686
1120
|
* Type components come in small, medium, large, extra-large, extra-extra-large, and extra-extra-extra-large.
|
|
687
1121
|
*/
|
|
@@ -694,8 +1128,11 @@ var XXXL = function (props) { return jsxRuntime.jsx(reactTypography.XXXL, __assi
|
|
|
694
1128
|
|
|
695
1129
|
exports.Accordion = Accordion;
|
|
696
1130
|
exports.Anchor = Anchor;
|
|
1131
|
+
exports.AppHeader = AppHeader;
|
|
697
1132
|
exports.Avatar = Avatar;
|
|
698
1133
|
exports.Blockquote = Blockquote;
|
|
1134
|
+
exports.Body = Body$1;
|
|
1135
|
+
exports.BrandItem = BrandItem;
|
|
699
1136
|
exports.Breadcrumb = Breadcrumb;
|
|
700
1137
|
exports.Button = Button;
|
|
701
1138
|
exports.ButtonGroup = ButtonGroup;
|
|
@@ -705,32 +1142,54 @@ exports.Checkbox = Checkbox;
|
|
|
705
1142
|
exports.Close = Close;
|
|
706
1143
|
exports.Code = Code;
|
|
707
1144
|
exports.Col = Col;
|
|
1145
|
+
exports.Content = Content;
|
|
1146
|
+
exports.CursorPagination = CursorPagination;
|
|
708
1147
|
exports.Dropdown = Dropdown;
|
|
709
1148
|
exports.DropdownField = index$1;
|
|
710
1149
|
exports.Ellipsis = Ellipsis;
|
|
1150
|
+
exports.FooterItem = FooterItem;
|
|
711
1151
|
exports.FormField = index;
|
|
712
1152
|
exports.GlobalStyle = GlobalStyle;
|
|
713
1153
|
exports.Grid = Grid;
|
|
714
1154
|
exports.GroupRow = GroupRow;
|
|
1155
|
+
exports.Header = Header;
|
|
715
1156
|
exports.HeaderCell = HeaderCell;
|
|
1157
|
+
exports.HeaderItem = HeaderItem;
|
|
1158
|
+
exports.HeaderItemIcon = HeaderItemIcon;
|
|
1159
|
+
exports.HeaderItemText = HeaderItemText;
|
|
716
1160
|
exports.HeaderRow = HeaderRow;
|
|
1161
|
+
exports.Icon = Icon;
|
|
717
1162
|
exports.IconButton = IconButton;
|
|
718
1163
|
exports.Input = Input;
|
|
719
1164
|
exports.Item = Item;
|
|
720
1165
|
exports.LG = LG;
|
|
721
1166
|
exports.Label = Label;
|
|
722
1167
|
exports.LoginForm = LoginForm;
|
|
1168
|
+
exports.Logo = Logo;
|
|
723
1169
|
exports.MD = MD;
|
|
1170
|
+
exports.Main = Main;
|
|
724
1171
|
exports.Menu = Menu;
|
|
725
1172
|
exports.Message = Message;
|
|
1173
|
+
exports.Modal = Modal;
|
|
726
1174
|
exports.Multiselect = Multiselect;
|
|
1175
|
+
exports.Nav = Nav;
|
|
1176
|
+
exports.NavDivider = NavDivider;
|
|
1177
|
+
exports.NavItem = NavItem;
|
|
1178
|
+
exports.NavItemIcon = NavItemIcon;
|
|
1179
|
+
exports.NavItemProject = NavItemProject;
|
|
1180
|
+
exports.NavItemText = NavItemText;
|
|
1181
|
+
exports.NavToggle = NavToggle;
|
|
727
1182
|
exports.Notification = Notification;
|
|
728
1183
|
exports.OrderedList = OrderedList;
|
|
1184
|
+
exports.Pagination = Pagination;
|
|
729
1185
|
exports.Paragraph = Paragraph;
|
|
1186
|
+
exports.Progress = Progress;
|
|
730
1187
|
exports.Radio = Radio;
|
|
731
1188
|
exports.Row = Row;
|
|
732
1189
|
exports.SM = SM;
|
|
733
1190
|
exports.Select = Select;
|
|
1191
|
+
exports.Sidebar = Sidebar;
|
|
1192
|
+
exports.Skeleton = Skeleton;
|
|
734
1193
|
exports.Span = Span;
|
|
735
1194
|
exports.Spinner = Spinner;
|
|
736
1195
|
exports.SplitButton = SplitButton;
|
|
@@ -738,7 +1197,9 @@ exports.Table = Table;
|
|
|
738
1197
|
exports.TableCell = Cell;
|
|
739
1198
|
exports.TableHead = Head;
|
|
740
1199
|
exports.TableRow = Body;
|
|
1200
|
+
exports.Tag = Tag;
|
|
741
1201
|
exports.Textarea = Textarea;
|
|
1202
|
+
exports.Tiles = Tiles;
|
|
742
1203
|
exports.Title = Title;
|
|
743
1204
|
exports.ToastProvider = ToastProvider;
|
|
744
1205
|
exports.Toggle = Toggle;
|