@hexure/ui 1.10.1 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +256 -120
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/AppHeader/AppHeader.d.ts +8 -0
- package/dist/cjs/types/components/AppHeader/index.d.ts +1 -0
- package/dist/cjs/types/components/AppMenu/AppMenu.d.ts +20 -0
- package/dist/cjs/types/components/AppMenu/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/esm/index.js +256 -122
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/AppHeader/AppHeader.d.ts +8 -0
- package/dist/esm/types/components/AppHeader/index.d.ts +1 -0
- package/dist/esm/types/components/AppMenu/AppMenu.d.ts +20 -0
- package/dist/esm/types/components/AppMenu/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/index.d.ts +41 -17
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -310,7 +310,7 @@ const Wrapper$i = styled.div `
|
|
|
310
310
|
justify-content: center;
|
|
311
311
|
box-sizing: border-box;
|
|
312
312
|
`;
|
|
313
|
-
const Container$
|
|
313
|
+
const Container$4 = styled.dialog `
|
|
314
314
|
max-width: 600px;
|
|
315
315
|
width: auto;
|
|
316
316
|
border-radius: 8px;
|
|
@@ -323,7 +323,7 @@ const Container$3 = styled.dialog `
|
|
|
323
323
|
text-align: center;
|
|
324
324
|
box-sizing: border-box;
|
|
325
325
|
`;
|
|
326
|
-
const Buttons = styled.div `
|
|
326
|
+
const Buttons$1 = styled.div `
|
|
327
327
|
display: flex;
|
|
328
328
|
gap: 10px;
|
|
329
329
|
align-items: center;
|
|
@@ -334,10 +334,10 @@ const Buttons = styled.div `
|
|
|
334
334
|
const ActionDialog = (_a) => {
|
|
335
335
|
var { description, title, primaryButton, secondaryButton, tertiaryButton } = _a, accessibleProps = __rest(_a, ["description", "title", "primaryButton", "secondaryButton", "tertiaryButton"]);
|
|
336
336
|
return (React.createElement(Wrapper$i, Object.assign({}, accessibleProps),
|
|
337
|
-
React.createElement(Container$
|
|
337
|
+
React.createElement(Container$4, { open: true },
|
|
338
338
|
title ? (React.createElement(Heading, { margin: '0px 0px 20px 0px', type: 'secondary' }, title)) : null,
|
|
339
339
|
description ? React.createElement(Copy, { align: 'center' }, description) : null,
|
|
340
|
-
primaryButton || secondaryButton || tertiaryButton ? (React.createElement(Buttons, null,
|
|
340
|
+
primaryButton || secondaryButton || tertiaryButton ? (React.createElement(Buttons$1, null,
|
|
341
341
|
tertiaryButton ? React.createElement(Button, Object.assign({}, tertiaryButton, { format: 'secondary' })) : null,
|
|
342
342
|
secondaryButton ? React.createElement(Button, Object.assign({}, secondaryButton, { format: 'secondary' })) : null,
|
|
343
343
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format === 'red' ? 'red' : 'primary' }))) : null)) : null)));
|
|
@@ -395,7 +395,217 @@ const Alert = (_a) => {
|
|
|
395
395
|
action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
+
const colorMapping = {
|
|
399
|
+
black: {
|
|
400
|
+
fill_1: '#000000',
|
|
401
|
+
fill_2: '#000000',
|
|
402
|
+
fill_3: '#000000',
|
|
403
|
+
},
|
|
404
|
+
white: {
|
|
405
|
+
fill_1: '#ffffff',
|
|
406
|
+
fill_2: '#ffffff',
|
|
407
|
+
fill_3: '#ffffff',
|
|
408
|
+
},
|
|
409
|
+
full: {
|
|
410
|
+
fill_1: '#000000',
|
|
411
|
+
fill_2: '#E82425',
|
|
412
|
+
fill_3: '#E82425',
|
|
413
|
+
},
|
|
414
|
+
reversed: {
|
|
415
|
+
fill_1: '#ffffff',
|
|
416
|
+
fill_2: '#E82425',
|
|
417
|
+
fill_3: '#E82425',
|
|
418
|
+
},
|
|
419
|
+
};
|
|
420
|
+
const Logo = (_a) => {
|
|
421
|
+
var { type = 'standard_full', height = '50px' } = _a, accessibleProps = __rest(_a, ["type", "height"]);
|
|
422
|
+
const type_parts = type.split('_');
|
|
423
|
+
switch (type_parts[0]) {
|
|
424
|
+
case 'mark':
|
|
425
|
+
return (React.createElement("svg", Object.assign({ fill: 'none', height: height, viewBox: '0 0 58 51', width: '100%', xmlns: 'http://www.w3.org/2000/svg' }, accessibleProps),
|
|
426
|
+
React.createElement("path", { d: 'M43.9348 -1.14441e-05H13.3724L0 25.2376L7.27148 38.0136L14.1215 50.0487H43.1856L57.3077 25.2376L43.9348 -1.14441e-05ZM38.206 9.49903L46.459 25.0743L37.6507 40.5497H19.6567L15.5417 33.3199L10.8487 25.0743L19.1013 9.49903H38.206Z', fill: type_parts[1] })));
|
|
427
|
+
default:
|
|
428
|
+
return (React.createElement("svg", Object.assign({ fill: 'none', height: height, preserveAspectRatio: 'xMidYMid meet', viewBox: '0 0 236 50', width: '100%', xmlns: 'http://www.w3.org/2000/svg' }, accessibleProps),
|
|
429
|
+
React.createElement("path", { d: 'M230.794 29.59H219.306L214.279 39.0907L217.012 43.9001L219.587 48.4308H230.512L235.821 39.0907L230.794 29.59V29.59ZM228.641 33.1659L231.743 39.0292L228.432 44.8549H221.668L220.121 42.1332L218.356 39.0292L221.459 33.1659H228.641Z', fill: colorMapping[type_parts[1]].fill_3 }),
|
|
430
|
+
React.createElement("path", { d: 'M211.662 42.6033L199.206 42.6319C196.339 42.6319 193.862 41.6095 191.846 39.5923C189.828 37.5755 188.805 35.0985 188.805 32.2321C188.805 29.3656 189.828 26.8886 191.846 24.8718C193.848 22.8332 196.325 21.7975 199.206 21.7975C202.072 21.7975 204.549 22.8199 206.566 24.8374C207.613 25.8847 208.391 27.093 208.944 28.5312L209.253 29.3327H197.87L196.325 32.2579L197.921 35.0969H211.458L215.015 28.6192C214.296 25.5702 212.835 22.9293 210.672 20.7657C207.531 17.6257 203.674 16.0333 199.206 16.0333C194.737 16.0333 190.88 17.6257 187.739 20.7657C184.555 23.9501 183.007 27.7011 183.007 32.2321C183.007 36.7001 184.599 40.5577 187.739 43.6981C190.88 46.8384 194.737 48.4308 199.206 48.4308H210.095L214.745 48.3297L211.662 42.6033', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
431
|
+
React.createElement("path", { d: 'M160.945 19.133L158.826 20.8384C155.734 23.9359 154.141 27.8058 154.141 32.2967L154.141 47.7903L156.985 49.407L159.939 47.8778L159.94 32.2967C159.94 29.6632 160.778 27.3706 162.432 25.4846C162.615 25.2739 162.811 25.0666 163.018 24.8639C163.074 24.8155 164.138 24.0061 164.811 23.5592C166.321 22.5576 168.076 21.9876 170.024 21.8632L170.166 21.8621C172.923 21.8621 175.32 22.7325 177.301 24.4494L180.146 23.0088L180.246 19.3426C177.44 17.1664 174.132 16.0633 170.408 16.0633C166.909 16.0633 163.725 17.0962 160.945 19.133', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
432
|
+
React.createElement("path", { d: 'M131.392 50C135.884 50 139.753 48.4076 142.893 45.2676C146.033 42.1269 147.626 38.2581 147.626 33.7668V18.1124L144.782 16.4964L141.827 18.0251V33.7668C141.827 36.6932 140.792 39.1936 138.745 41.2034C136.684 43.1927 134.128 44.2013 131.151 44.2013L131.01 44.2002H131.81L131.669 44.2013C128.692 44.2013 126.136 43.1927 124.074 41.2034C122.028 39.1936 120.993 36.6932 120.993 33.7668V18.0251L118.038 16.4964L115.194 18.1124V33.7668C115.194 38.2581 116.786 42.1269 119.926 45.2676C123.067 48.4076 126.936 50 131.427 50H131.392Z', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
433
|
+
React.createElement("path", { d: 'M93.8353 26.9933L97.8468 31.2421L100.788 28.1521L107.791 20.4534L106.753 17.3567L103.584 16.5678', fill: colorMapping[type_parts[1]].fill_2 }),
|
|
434
|
+
React.createElement("path", { d: 'M80.7509 16.5677L77.5821 17.3564L76.5441 20.4534L83.5514 28.1568L88.1484 32.9862L76.5412 45.2133L77.5187 48.3175C79.525 48.9571 80.359 49.1805 80.6985 49.2584L92.195 37.238L103.636 49.2584C103.976 49.1805 104.81 48.9571 106.817 48.3175L107.794 45.2133L80.7509 16.5677', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
435
|
+
React.createElement("path", { d: 'M67.8498 45.479C67.5109 44.893 66.7322 43.5486 66.2043 42.6319H55.1965C52.3299 42.6319 49.8532 41.6095 47.8364 39.5923C45.819 37.5755 44.7966 35.0985 44.7966 32.2321C44.7966 29.3656 45.819 26.8886 47.8364 24.8718C49.8388 22.8332 52.316 21.7975 55.1965 21.7975C58.0632 21.7975 60.5398 22.8199 62.5565 24.8374C63.6038 25.8847 64.3824 27.093 64.9357 28.5312L65.2435 29.3327H53.8141C53.231 30.2171 52.5673 31.6476 52.303 32.2354L53.912 35.0969H67.474L71.0059 28.6192C70.2872 25.5702 68.8261 22.9293 66.6625 20.7657C63.5219 17.6257 59.6649 16.0333 55.1965 16.0333C50.7283 16.0333 46.8708 17.6257 43.7303 20.7657C40.546 23.9501 38.9979 27.7011 38.9979 32.2321C38.9979 36.7001 40.5903 40.5577 43.7303 43.6981C46.8708 46.8384 50.7283 48.4308 55.1965 48.4308H66.0873C66.9322 47.0737 67.5668 45.977 67.8498 45.479', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
436
|
+
React.createElement("path", { d: 'M27.6655 20.7443C26.9235 20.002 26.2307 19.4097 25.608 18.9831C22.7338 17.0113 19.5684 16.0117 16.1992 16.0117C13.6229 16.0117 11.1676 16.5943 8.9002 17.7442C8.1016 18.1264 7.38657 18.6118 6.73074 19.0799L5.88805 19.6819C5.85364 19.711 5.81716 19.7449 5.78223 19.7749L5.77618 17.9067C5.78246 17.9022 5.7892 17.8965 5.79554 17.8921L5.72168 1.52402L2.84058 1.54784e-05L0 1.6145V24.9966V30.8918C0.0184614 30.8508 0.0393993 30.8108 0.0580857 30.7698C0.0216133 31.2417 0 31.7206 0 32.2105V47.6757L2.84688 49.2499C4.7412 48.3293 5.4988 47.9164 5.79866 47.7385V32.2105C5.79866 29.3439 6.82128 26.8672 8.83853 24.8504C10.8415 22.8118 13.319 21.7759 16.1992 21.7759C19.0796 21.7759 21.557 22.8118 23.5635 24.8538C25.3441 26.6351 26.3374 28.7976 26.5963 31.4625C26.6263 31.6669 26.6339 40.3058 26.6339 47.6694C27.2825 48.0147 28.6127 48.8167 29.5141 49.3059C29.9448 49.0814 32.0589 47.8425 32.3979 47.6669V32.2105C32.3979 27.6795 30.8499 23.9285 27.6655 20.7443Z', fill: colorMapping[type_parts[1]].fill_1 })));
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
const Container$3 = styled.header `
|
|
441
|
+
width: 100%;
|
|
442
|
+
display: flex;
|
|
443
|
+
padding: 20px;
|
|
444
|
+
box-sizing: border-box;
|
|
445
|
+
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
446
|
+
background: '#fff';
|
|
447
|
+
justify-content: space-between;
|
|
448
|
+
`;
|
|
449
|
+
const LogoWrapper = styled.div `
|
|
450
|
+
display: flex;
|
|
451
|
+
align-items: center;
|
|
452
|
+
`;
|
|
453
|
+
const Image = styled.img `
|
|
454
|
+
height: 30px !important;
|
|
455
|
+
width: auto !important;
|
|
456
|
+
`;
|
|
457
|
+
const Buttons = styled.div `
|
|
458
|
+
display: flex;
|
|
459
|
+
flex-direction: row;
|
|
460
|
+
column-gap: 10px;
|
|
461
|
+
flex-direction: reverse;
|
|
462
|
+
`;
|
|
463
|
+
const AppHeader = ({ logoUrl, buttons = [] }) => {
|
|
464
|
+
return (React.createElement(Container$3, null,
|
|
465
|
+
React.createElement(LogoWrapper, null, logoUrl ? React.createElement(Image, { src: logoUrl }) : React.createElement(Logo, { height: '30px' })),
|
|
466
|
+
React.createElement(Buttons, null, buttons.map(b => (React.createElement(Button, Object.assign({}, b)))))));
|
|
467
|
+
};
|
|
468
|
+
|
|
398
469
|
const Wrapper$g = styled.div `
|
|
470
|
+
display: inline-block;
|
|
471
|
+
border-radius: 4px;
|
|
472
|
+
padding: 4px 6px;
|
|
473
|
+
background: ${props => Colors[props.$color].Hex};
|
|
474
|
+
color: #ffffff;
|
|
475
|
+
box-sizing: border-box;
|
|
476
|
+
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
477
|
+
`;
|
|
478
|
+
const Content$3 = styled.div `
|
|
479
|
+
display: flex;
|
|
480
|
+
align-items: center;
|
|
481
|
+
`;
|
|
482
|
+
const Label$4 = styled.div `
|
|
483
|
+
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
484
|
+
font-size: ${FontSizes.SMALL};
|
|
485
|
+
font-weight: 500;
|
|
486
|
+
font-family: ${FontStyles.DEFAULT};
|
|
487
|
+
line-height: 1.2em;
|
|
488
|
+
`;
|
|
489
|
+
const Remove$1 = styled.div `
|
|
490
|
+
margin-left: 10px;
|
|
491
|
+
display: flex;
|
|
492
|
+
align-items: center;
|
|
493
|
+
`;
|
|
494
|
+
const Tag = (_a) => {
|
|
495
|
+
var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
|
|
496
|
+
return (React.createElement(Wrapper$g, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
|
|
497
|
+
React.createElement(Content$3, null,
|
|
498
|
+
React.createElement(Label$4, { "$color": color }, children),
|
|
499
|
+
removable ? (React.createElement(Remove$1, null,
|
|
500
|
+
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
const SidebarContainer = styled.div `
|
|
504
|
+
border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
505
|
+
display: flex;
|
|
506
|
+
flex-direction: column;
|
|
507
|
+
height: 100%;
|
|
508
|
+
padding: 12px 0px;
|
|
509
|
+
width: ${props => (props.$isOpen ? '280px' : '60px')};
|
|
510
|
+
`;
|
|
511
|
+
const MenuWrapper = styled.div `
|
|
512
|
+
display: flex;
|
|
513
|
+
align-items: center;
|
|
514
|
+
border-left-width: 4px;
|
|
515
|
+
border-left-style: solid;
|
|
516
|
+
border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
|
|
517
|
+
cursor: pointer;
|
|
518
|
+
height: 40px;
|
|
519
|
+
|
|
520
|
+
&:hover > div {
|
|
521
|
+
color: ${props => props.$color.Hex};
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
&:hover > svg > path {
|
|
525
|
+
fill: ${Colors.BLACK.Hex} !important;
|
|
526
|
+
}
|
|
527
|
+
`;
|
|
528
|
+
const MenuIcon = styled(Icon) `
|
|
529
|
+
width: 20px;
|
|
530
|
+
height: 20px;
|
|
531
|
+
margin: 0px 16px;
|
|
532
|
+
flex-shrink: 0;
|
|
533
|
+
|
|
534
|
+
> path {
|
|
535
|
+
fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
|
|
536
|
+
}
|
|
537
|
+
`;
|
|
538
|
+
const MenuLabel = styled.div `
|
|
539
|
+
color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
|
|
540
|
+
flex: 1;
|
|
541
|
+
font-size: 12px;
|
|
542
|
+
font-style: normal;
|
|
543
|
+
font-weight: 600;
|
|
544
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
545
|
+
line-height: 16px;
|
|
546
|
+
padding: 12px 0px;
|
|
547
|
+
letter-spacing: 1px;
|
|
548
|
+
`;
|
|
549
|
+
const SubMenu = styled.div `
|
|
550
|
+
overflow-y: auto;
|
|
551
|
+
padding-left: 44px;
|
|
552
|
+
padding-right: 20px;
|
|
553
|
+
padding-bottom: 10px;
|
|
554
|
+
`;
|
|
555
|
+
const SubMenuItem = styled.a `
|
|
556
|
+
display: block;
|
|
557
|
+
padding: 8px 12px;
|
|
558
|
+
border-radius: 8px;
|
|
559
|
+
font-size: 13px;
|
|
560
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
561
|
+
line-height: 20px;
|
|
562
|
+
text-decoration: none;
|
|
563
|
+
font-weight: ${({ $active }) => ($active ? '500' : '400')};
|
|
564
|
+
color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
|
|
565
|
+
background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
|
|
566
|
+
cursor: pointer;
|
|
567
|
+
|
|
568
|
+
&:hover {
|
|
569
|
+
color: ${props => props.$color.Hex};
|
|
570
|
+
font-weight: 500;
|
|
571
|
+
}
|
|
572
|
+
`;
|
|
573
|
+
const Footer = styled.div `
|
|
574
|
+
padding: 20px 14px 0px;
|
|
575
|
+
display: flex;
|
|
576
|
+
align-items: center;
|
|
577
|
+
`;
|
|
578
|
+
const FooterInfo = styled.div `
|
|
579
|
+
display: flex;
|
|
580
|
+
flex-direction: column;
|
|
581
|
+
flex: 1;
|
|
582
|
+
align-items: flex-start;
|
|
583
|
+
`;
|
|
584
|
+
const SidebarMenuContainer = styled.div `
|
|
585
|
+
flex-grow: 1;
|
|
586
|
+
`;
|
|
587
|
+
const AppMenu = ({ menu, isCollapsed, footerTag }) => {
|
|
588
|
+
const theme = React.useContext(styled.ThemeContext) || EditableTheme;
|
|
589
|
+
const [collapsed, toggleCollapse] = React.useState(isCollapsed);
|
|
590
|
+
return (React.createElement(SidebarContainer, { "$isOpen": !collapsed },
|
|
591
|
+
React.createElement(SidebarMenuContainer, null, menu.map(nav_item => {
|
|
592
|
+
return (React.createElement(React.Fragment, { key: nav_item.label },
|
|
593
|
+
React.createElement(MenuWrapper, { "$active": !!nav_item.is_active, "$color": theme.PRIMARY_COLOR, onClick: nav_item.onClick },
|
|
594
|
+
React.createElement(MenuIcon, { "$active": !!nav_item.is_active, path: nav_item.icon }),
|
|
595
|
+
collapsed ? null : (React.createElement(MenuLabel, { "$active": nav_item.is_active, "$color": theme.PRIMARY_COLOR }, nav_item.label))),
|
|
596
|
+
nav_item.is_active && nav_item.menu && !collapsed ? (React.createElement(SubMenu, null, nav_item.menu.map(menu_item => (React.createElement(SubMenuItem, { "$active": menu_item.is_active, "$color": theme.PRIMARY_COLOR, key: menu_item.label, onClick: menu_item.onClick }, menu_item.label))))) : null));
|
|
597
|
+
})),
|
|
598
|
+
React.createElement(Footer, null,
|
|
599
|
+
collapsed ? null : (React.createElement(FooterInfo, null,
|
|
600
|
+
footerTag ? React.createElement(Tag, null, footerTag) : null,
|
|
601
|
+
React.createElement(Copy, { margin: '8px 0 0 0', type: 'small' },
|
|
602
|
+
"\u00A9 ",
|
|
603
|
+
new Date().getFullYear(),
|
|
604
|
+
" Hexure"))),
|
|
605
|
+
React.createElement(Button, { icon: collapsed ? js.mdiChevronRight : js.mdiChevronLeft, onClick: () => toggleCollapse(!collapsed), small: true }))));
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
const Wrapper$f = styled.div `
|
|
399
609
|
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
400
610
|
border-radius: 8px;
|
|
401
611
|
box-sizing: border-box;
|
|
@@ -404,7 +614,7 @@ const Wrapper$g = styled.div `
|
|
|
404
614
|
justify-content: space-between;
|
|
405
615
|
padding: 16px 20px;
|
|
406
616
|
`;
|
|
407
|
-
Wrapper$
|
|
617
|
+
Wrapper$f.defaultProps = { theme: EditableTheme };
|
|
408
618
|
const Left = styled.div `
|
|
409
619
|
box-sizing: border-box;
|
|
410
620
|
display: flex;
|
|
@@ -465,7 +675,7 @@ const ErrorMsg = styled.span `
|
|
|
465
675
|
`;
|
|
466
676
|
const BulkActionBar = (_a) => {
|
|
467
677
|
var { actions = [], errorMsg, onClear, selectedCount = 0 } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount"]);
|
|
468
|
-
return (React.createElement(Wrapper$
|
|
678
|
+
return (React.createElement(Wrapper$f, Object.assign({}, accessibleProps),
|
|
469
679
|
React.createElement(Left, null,
|
|
470
680
|
React.createElement(Info$1, null,
|
|
471
681
|
React.createElement(Selected, null,
|
|
@@ -478,7 +688,7 @@ const BulkActionBar = (_a) => {
|
|
|
478
688
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
479
689
|
};
|
|
480
690
|
|
|
481
|
-
const Wrapper$
|
|
691
|
+
const Wrapper$e = styled.div `
|
|
482
692
|
background: #fff;
|
|
483
693
|
border-radius: 8px;
|
|
484
694
|
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
@@ -519,14 +729,14 @@ const Title$1 = styled.span `
|
|
|
519
729
|
`;
|
|
520
730
|
const MoreMenu = (_a) => {
|
|
521
731
|
var { maxHeight, menuItems = [] } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
|
|
522
|
-
return (React.createElement(Wrapper$
|
|
732
|
+
return (React.createElement(Wrapper$e, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
|
|
523
733
|
return (React.createElement(MenuItem, { key: i, onClick: item.onClick },
|
|
524
734
|
item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
|
|
525
735
|
React.createElement(Title$1, null, item.label)));
|
|
526
736
|
})));
|
|
527
737
|
};
|
|
528
738
|
|
|
529
|
-
const Wrapper$
|
|
739
|
+
const Wrapper$d = styled.div `
|
|
530
740
|
position: relative;
|
|
531
741
|
display: inline-block;
|
|
532
742
|
`;
|
|
@@ -540,12 +750,12 @@ const StyledMoreMenu = styled(MoreMenu) `
|
|
|
540
750
|
`;
|
|
541
751
|
const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'right', format = 'primary', menuWidth = '200px', }) => {
|
|
542
752
|
const [show_menu, toggleMenu] = React.useState(false);
|
|
543
|
-
return (React.createElement(Wrapper$
|
|
753
|
+
return (React.createElement(Wrapper$d, { onMouseEnter: disabled ? undefined : toggleMenu.bind(null, true), onMouseLeave: disabled ? undefined : toggleMenu.bind(null, false) },
|
|
544
754
|
React.createElement(Button, { disabled: disabled, format: format, icon: js.mdiDotsHorizontal, small: small }, label),
|
|
545
755
|
show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
|
|
546
756
|
};
|
|
547
757
|
|
|
548
|
-
const Wrapper$
|
|
758
|
+
const Wrapper$c = styled.label `
|
|
549
759
|
border-radius: 4px;
|
|
550
760
|
padding: 4px 0px 4px 6px;
|
|
551
761
|
margin-left: -6px;
|
|
@@ -560,14 +770,14 @@ const Wrapper$d = styled.label `
|
|
|
560
770
|
background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
|
|
561
771
|
}
|
|
562
772
|
`;
|
|
563
|
-
Wrapper$
|
|
773
|
+
Wrapper$c.defaultProps = { theme: EditableTheme };
|
|
564
774
|
const Input$2 = styled.input `
|
|
565
775
|
font-size: 20px;
|
|
566
776
|
margin: 5px 0px 0px 0px;
|
|
567
777
|
line-height: 1.1em;
|
|
568
778
|
box-sizing: border-box;
|
|
569
779
|
`;
|
|
570
|
-
const Label$
|
|
780
|
+
const Label$3 = styled.span `
|
|
571
781
|
font-family: ${FontStyles.DEFAULT};
|
|
572
782
|
font-size: ${FontSizes.DEFAULT};
|
|
573
783
|
font-weight: 400;
|
|
@@ -578,9 +788,9 @@ const Label$4 = styled.span `
|
|
|
578
788
|
`;
|
|
579
789
|
const Checkbox = (_a) => {
|
|
580
790
|
var { children, disabled, checked, onChange } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange"]);
|
|
581
|
-
return (React.createElement(Wrapper$
|
|
791
|
+
return (React.createElement(Wrapper$c, Object.assign({}, accessibleProps),
|
|
582
792
|
React.createElement(Input$2, { checked: checked, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, type: 'checkbox' }),
|
|
583
|
-
children ? React.createElement(Label$
|
|
793
|
+
children ? React.createElement(Label$3, null, children) : null));
|
|
584
794
|
};
|
|
585
795
|
|
|
586
796
|
const SelectAll = styled.div `
|
|
@@ -629,7 +839,7 @@ const Checklist = (_a) => {
|
|
|
629
839
|
}))));
|
|
630
840
|
};
|
|
631
841
|
|
|
632
|
-
const Wrapper$
|
|
842
|
+
const Wrapper$b = styled.div `
|
|
633
843
|
border-radius: 4px;
|
|
634
844
|
height: 40px;
|
|
635
845
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -650,7 +860,7 @@ const Wrapper$c = styled.div `
|
|
|
650
860
|
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
651
861
|
}
|
|
652
862
|
`;
|
|
653
|
-
Wrapper$
|
|
863
|
+
Wrapper$b.defaultProps = { theme: EditableTheme };
|
|
654
864
|
const Trigger$1 = styled.select `
|
|
655
865
|
appearance: none;
|
|
656
866
|
box-shadow: none;
|
|
@@ -678,7 +888,7 @@ const IconWrapper$2 = styled(Icon) `
|
|
|
678
888
|
`;
|
|
679
889
|
const Select = (_a) => {
|
|
680
890
|
var { options, optionGroups, placeholder, readOnly, invalid, value, onChange, style } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "value", "onChange", "style"]);
|
|
681
|
-
return (React.createElement(Wrapper$
|
|
891
|
+
return (React.createElement(Wrapper$b, { "$invalid": invalid, "$readOnly": readOnly, "$style": style },
|
|
682
892
|
React.createElement(Trigger$1, Object.assign({ disabled: readOnly, onChange: onChange, placeholder: placeholder, value: value }, accessibleProps),
|
|
683
893
|
placeholder ? (React.createElement("option", { disabled: true, value: '' }, placeholder)) : null,
|
|
684
894
|
optionGroups &&
|
|
@@ -851,7 +1061,7 @@ const Drawer = (_a) => {
|
|
|
851
1061
|
scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
|
|
852
1062
|
};
|
|
853
1063
|
|
|
854
|
-
const Wrapper$
|
|
1064
|
+
const Wrapper$a = styled.div `
|
|
855
1065
|
display: inline-block;
|
|
856
1066
|
position: relative;
|
|
857
1067
|
height: 16px;
|
|
@@ -892,16 +1102,16 @@ const positions = {
|
|
|
892
1102
|
transform: 'translateY(-50%)',
|
|
893
1103
|
},
|
|
894
1104
|
};
|
|
895
|
-
const Content$
|
|
896
|
-
Content$
|
|
1105
|
+
const Content$2 = styled.div(props => (Object.assign({ position: 'absolute', borderRadius: '4px', borderWidth: '1px', borderStyle: 'solid', borderColor: props.theme.PRIMARY_COLOR.Hex, background: '#ffffff', boxShadow: '0px 5px 30px -10px rgba(0, 0, 0, 0.5)', width: props.$width || '240px', padding: '10px 12px', zIndex: 10 }, positions[props.$position])));
|
|
1106
|
+
Content$2.defaultProps = { theme: EditableTheme };
|
|
897
1107
|
const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
|
|
898
1108
|
const [show_content, toggleContent] = React.useState(false);
|
|
899
|
-
return (React.createElement(Wrapper$
|
|
1109
|
+
return (React.createElement(Wrapper$a, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
|
|
900
1110
|
trigger || React.createElement(StyledIcon$4, { path: js.mdiInformationOutline }),
|
|
901
|
-
show_content ? (React.createElement(Content$
|
|
1111
|
+
show_content ? (React.createElement(Content$2, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
|
|
902
1112
|
};
|
|
903
1113
|
|
|
904
|
-
const Wrapper$
|
|
1114
|
+
const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.style)));
|
|
905
1115
|
const LabelRow = styled.div `
|
|
906
1116
|
display: flex;
|
|
907
1117
|
align-items: center;
|
|
@@ -909,7 +1119,7 @@ const LabelRow = styled.div `
|
|
|
909
1119
|
margin: 0 0 4px 0;
|
|
910
1120
|
box-sizing: border-box;
|
|
911
1121
|
`;
|
|
912
|
-
const Label$
|
|
1122
|
+
const Label$2 = styled.label `
|
|
913
1123
|
font-size: ${FontSizes.DEFAULT};
|
|
914
1124
|
font-weight: 500;
|
|
915
1125
|
line-height: 1em;
|
|
@@ -951,9 +1161,9 @@ const Validation = styled.div `
|
|
|
951
1161
|
`;
|
|
952
1162
|
const Field = (_a) => {
|
|
953
1163
|
var { action, children, validationText, label, description, required, htmlFor, style, tooltip } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip"]);
|
|
954
|
-
return (React.createElement(Wrapper$
|
|
1164
|
+
return (React.createElement(Wrapper$9, Object.assign({ style: style }, accessibleProps),
|
|
955
1165
|
React.createElement(LabelRow, null,
|
|
956
|
-
React.createElement(Label$
|
|
1166
|
+
React.createElement(Label$2, { htmlFor: htmlFor },
|
|
957
1167
|
label,
|
|
958
1168
|
required ? React.createElement(Required, null, "*") : null,
|
|
959
1169
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null),
|
|
@@ -963,7 +1173,7 @@ const Field = (_a) => {
|
|
|
963
1173
|
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
964
1174
|
};
|
|
965
1175
|
|
|
966
|
-
const Wrapper$
|
|
1176
|
+
const Wrapper$8 = styled.fieldset `
|
|
967
1177
|
margin-inline-start: 0px;
|
|
968
1178
|
margin-inline-end: 0px;
|
|
969
1179
|
padding-block-start: 0px;
|
|
@@ -976,7 +1186,7 @@ const Wrapper$9 = styled.fieldset `
|
|
|
976
1186
|
border-color: transparent;
|
|
977
1187
|
border-image: none;
|
|
978
1188
|
`;
|
|
979
|
-
const Label$
|
|
1189
|
+
const Label$1 = styled.legend `
|
|
980
1190
|
padding-inline-start: 0px;
|
|
981
1191
|
padding-inline-end: 0px;
|
|
982
1192
|
|
|
@@ -987,15 +1197,15 @@ const Label$2 = styled.legend `
|
|
|
987
1197
|
line-height: 22px;
|
|
988
1198
|
margin-bottom: 6px;
|
|
989
1199
|
`;
|
|
990
|
-
const Content$
|
|
1200
|
+
const Content$1 = styled.div `
|
|
991
1201
|
padding: 20px;
|
|
992
1202
|
border-radius: 8px;
|
|
993
1203
|
background: #fcfcfc;
|
|
994
1204
|
`;
|
|
995
1205
|
const FieldGroup = ({ children, label }) => {
|
|
996
|
-
return (React.createElement(Wrapper$
|
|
997
|
-
React.createElement(Label$
|
|
998
|
-
React.createElement(Content$
|
|
1206
|
+
return (React.createElement(Wrapper$8, null,
|
|
1207
|
+
React.createElement(Label$1, null, label),
|
|
1208
|
+
React.createElement(Content$1, null, children)));
|
|
999
1209
|
};
|
|
1000
1210
|
|
|
1001
1211
|
const Dropzone = styled.div `
|
|
@@ -1031,7 +1241,7 @@ const ClickZone = styled.div `
|
|
|
1031
1241
|
align-items: center;
|
|
1032
1242
|
gap: 16px;
|
|
1033
1243
|
`;
|
|
1034
|
-
const Content
|
|
1244
|
+
const Content = styled.div `
|
|
1035
1245
|
display: flex;
|
|
1036
1246
|
flex-direction: column;
|
|
1037
1247
|
align-items: center;
|
|
@@ -1054,7 +1264,7 @@ const File = styled.div `
|
|
|
1054
1264
|
border: 1px solid #cccccc;
|
|
1055
1265
|
background: #ffffff;
|
|
1056
1266
|
`;
|
|
1057
|
-
const Remove
|
|
1267
|
+
const Remove = styled(Icon) `
|
|
1058
1268
|
width: 24px;
|
|
1059
1269
|
height: 24px;
|
|
1060
1270
|
cursor: pointer;
|
|
@@ -1164,12 +1374,12 @@ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, mes
|
|
|
1164
1374
|
files.length ? (React.createElement(Files, null, files.map(file => {
|
|
1165
1375
|
return (React.createElement(File, { key: file.name },
|
|
1166
1376
|
React.createElement(Copy, { type: 'bold' }, file.name),
|
|
1167
|
-
React.createElement(Remove
|
|
1377
|
+
React.createElement(Remove, { onClick: handleRemove.bind(null, file), path: js.mdiMinusCircle })));
|
|
1168
1378
|
}))) : null,
|
|
1169
1379
|
allowMoreFiles ? (React.createElement(ClickZone, { onClick: triggerFileExplorer },
|
|
1170
1380
|
files.length ? null : (React.createElement(IconWrapper$1, { "$dragging": dragging },
|
|
1171
1381
|
React.createElement(StyledIcon$3, { path: js.mdiFolderPlusOutline }))),
|
|
1172
|
-
React.createElement(Content
|
|
1382
|
+
React.createElement(Content, null,
|
|
1173
1383
|
React.createElement(Copy, { align: 'center', type: 'bold' }, "Drag & drop files here or click to select files"),
|
|
1174
1384
|
message ? (React.createElement(Copy, { align: 'center', color: 'GRAY' }, message)) : null))) : null)));
|
|
1175
1385
|
};
|
|
@@ -1434,7 +1644,7 @@ const Input$1 = (_a) => {
|
|
|
1434
1644
|
}))) : null));
|
|
1435
1645
|
};
|
|
1436
1646
|
|
|
1437
|
-
const Wrapper$
|
|
1647
|
+
const Wrapper$7 = styled.a `
|
|
1438
1648
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1439
1649
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
1440
1650
|
line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
|
|
@@ -1448,10 +1658,10 @@ const Wrapper$8 = styled.a `
|
|
|
1448
1658
|
box-sizing: border-box;
|
|
1449
1659
|
cursor: pointer;
|
|
1450
1660
|
`;
|
|
1451
|
-
Wrapper$
|
|
1661
|
+
Wrapper$7.defaultProps = { theme: EditableTheme };
|
|
1452
1662
|
const Link = (_a) => {
|
|
1453
1663
|
var { children, onClick, small } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small"]);
|
|
1454
|
-
return (React.createElement(Wrapper$
|
|
1664
|
+
return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
|
|
1455
1665
|
};
|
|
1456
1666
|
|
|
1457
1667
|
const dash = styled.keyframes `
|
|
@@ -1488,48 +1698,6 @@ const Loader = () => {
|
|
|
1488
1698
|
React.createElement(Path, { d: 'M7.21487 1.2868C7.88431 0.9044 8.73031 0.9044 9.39974 1.2868L9.40283 1.28856L14.4613 4.20761C15.1684 4.598 15.5746 5.33558 15.5746 6.11465V8.99996V11.8853C15.5746 12.6507 15.1632 13.3848 14.4617 13.7721L9.37973 16.7132C8.71029 17.0956 7.86428 17.0956 7.19485 16.7132L7.19088 16.7109L2.11279 13.772C1.40602 13.3816 1 12.6441 1 11.8653V8.98995V6.11465C1 5.31458 1.44381 4.59039 2.10827 4.21051L7.21487 1.2868Z', fill: 'none', strokeWidth: '2' })));
|
|
1489
1699
|
};
|
|
1490
1700
|
|
|
1491
|
-
const colorMapping = {
|
|
1492
|
-
black: {
|
|
1493
|
-
fill_1: '#000000',
|
|
1494
|
-
fill_2: '#000000',
|
|
1495
|
-
fill_3: '#000000',
|
|
1496
|
-
},
|
|
1497
|
-
white: {
|
|
1498
|
-
fill_1: '#ffffff',
|
|
1499
|
-
fill_2: '#ffffff',
|
|
1500
|
-
fill_3: '#ffffff',
|
|
1501
|
-
},
|
|
1502
|
-
full: {
|
|
1503
|
-
fill_1: '#000000',
|
|
1504
|
-
fill_2: '#E82425',
|
|
1505
|
-
fill_3: '#E82425',
|
|
1506
|
-
},
|
|
1507
|
-
reversed: {
|
|
1508
|
-
fill_1: '#ffffff',
|
|
1509
|
-
fill_2: '#E82425',
|
|
1510
|
-
fill_3: '#E82425',
|
|
1511
|
-
},
|
|
1512
|
-
};
|
|
1513
|
-
const Logo = (_a) => {
|
|
1514
|
-
var { type = 'standard_full', height = '50px' } = _a, accessibleProps = __rest(_a, ["type", "height"]);
|
|
1515
|
-
const type_parts = type.split('_');
|
|
1516
|
-
switch (type_parts[0]) {
|
|
1517
|
-
case 'mark':
|
|
1518
|
-
return (React.createElement("svg", Object.assign({ fill: 'none', height: height, viewBox: '0 0 58 51', width: '100%', xmlns: 'http://www.w3.org/2000/svg' }, accessibleProps),
|
|
1519
|
-
React.createElement("path", { d: 'M43.9348 -1.14441e-05H13.3724L0 25.2376L7.27148 38.0136L14.1215 50.0487H43.1856L57.3077 25.2376L43.9348 -1.14441e-05ZM38.206 9.49903L46.459 25.0743L37.6507 40.5497H19.6567L15.5417 33.3199L10.8487 25.0743L19.1013 9.49903H38.206Z', fill: type_parts[1] })));
|
|
1520
|
-
default:
|
|
1521
|
-
return (React.createElement("svg", Object.assign({ fill: 'none', height: height, preserveAspectRatio: 'xMidYMid meet', viewBox: '0 0 236 50', width: '100%', xmlns: 'http://www.w3.org/2000/svg' }, accessibleProps),
|
|
1522
|
-
React.createElement("path", { d: 'M230.794 29.59H219.306L214.279 39.0907L217.012 43.9001L219.587 48.4308H230.512L235.821 39.0907L230.794 29.59V29.59ZM228.641 33.1659L231.743 39.0292L228.432 44.8549H221.668L220.121 42.1332L218.356 39.0292L221.459 33.1659H228.641Z', fill: colorMapping[type_parts[1]].fill_3 }),
|
|
1523
|
-
React.createElement("path", { d: 'M211.662 42.6033L199.206 42.6319C196.339 42.6319 193.862 41.6095 191.846 39.5923C189.828 37.5755 188.805 35.0985 188.805 32.2321C188.805 29.3656 189.828 26.8886 191.846 24.8718C193.848 22.8332 196.325 21.7975 199.206 21.7975C202.072 21.7975 204.549 22.8199 206.566 24.8374C207.613 25.8847 208.391 27.093 208.944 28.5312L209.253 29.3327H197.87L196.325 32.2579L197.921 35.0969H211.458L215.015 28.6192C214.296 25.5702 212.835 22.9293 210.672 20.7657C207.531 17.6257 203.674 16.0333 199.206 16.0333C194.737 16.0333 190.88 17.6257 187.739 20.7657C184.555 23.9501 183.007 27.7011 183.007 32.2321C183.007 36.7001 184.599 40.5577 187.739 43.6981C190.88 46.8384 194.737 48.4308 199.206 48.4308H210.095L214.745 48.3297L211.662 42.6033', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
1524
|
-
React.createElement("path", { d: 'M160.945 19.133L158.826 20.8384C155.734 23.9359 154.141 27.8058 154.141 32.2967L154.141 47.7903L156.985 49.407L159.939 47.8778L159.94 32.2967C159.94 29.6632 160.778 27.3706 162.432 25.4846C162.615 25.2739 162.811 25.0666 163.018 24.8639C163.074 24.8155 164.138 24.0061 164.811 23.5592C166.321 22.5576 168.076 21.9876 170.024 21.8632L170.166 21.8621C172.923 21.8621 175.32 22.7325 177.301 24.4494L180.146 23.0088L180.246 19.3426C177.44 17.1664 174.132 16.0633 170.408 16.0633C166.909 16.0633 163.725 17.0962 160.945 19.133', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
1525
|
-
React.createElement("path", { d: 'M131.392 50C135.884 50 139.753 48.4076 142.893 45.2676C146.033 42.1269 147.626 38.2581 147.626 33.7668V18.1124L144.782 16.4964L141.827 18.0251V33.7668C141.827 36.6932 140.792 39.1936 138.745 41.2034C136.684 43.1927 134.128 44.2013 131.151 44.2013L131.01 44.2002H131.81L131.669 44.2013C128.692 44.2013 126.136 43.1927 124.074 41.2034C122.028 39.1936 120.993 36.6932 120.993 33.7668V18.0251L118.038 16.4964L115.194 18.1124V33.7668C115.194 38.2581 116.786 42.1269 119.926 45.2676C123.067 48.4076 126.936 50 131.427 50H131.392Z', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
1526
|
-
React.createElement("path", { d: 'M93.8353 26.9933L97.8468 31.2421L100.788 28.1521L107.791 20.4534L106.753 17.3567L103.584 16.5678', fill: colorMapping[type_parts[1]].fill_2 }),
|
|
1527
|
-
React.createElement("path", { d: 'M80.7509 16.5677L77.5821 17.3564L76.5441 20.4534L83.5514 28.1568L88.1484 32.9862L76.5412 45.2133L77.5187 48.3175C79.525 48.9571 80.359 49.1805 80.6985 49.2584L92.195 37.238L103.636 49.2584C103.976 49.1805 104.81 48.9571 106.817 48.3175L107.794 45.2133L80.7509 16.5677', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
1528
|
-
React.createElement("path", { d: 'M67.8498 45.479C67.5109 44.893 66.7322 43.5486 66.2043 42.6319H55.1965C52.3299 42.6319 49.8532 41.6095 47.8364 39.5923C45.819 37.5755 44.7966 35.0985 44.7966 32.2321C44.7966 29.3656 45.819 26.8886 47.8364 24.8718C49.8388 22.8332 52.316 21.7975 55.1965 21.7975C58.0632 21.7975 60.5398 22.8199 62.5565 24.8374C63.6038 25.8847 64.3824 27.093 64.9357 28.5312L65.2435 29.3327H53.8141C53.231 30.2171 52.5673 31.6476 52.303 32.2354L53.912 35.0969H67.474L71.0059 28.6192C70.2872 25.5702 68.8261 22.9293 66.6625 20.7657C63.5219 17.6257 59.6649 16.0333 55.1965 16.0333C50.7283 16.0333 46.8708 17.6257 43.7303 20.7657C40.546 23.9501 38.9979 27.7011 38.9979 32.2321C38.9979 36.7001 40.5903 40.5577 43.7303 43.6981C46.8708 46.8384 50.7283 48.4308 55.1965 48.4308H66.0873C66.9322 47.0737 67.5668 45.977 67.8498 45.479', fill: colorMapping[type_parts[1]].fill_1 }),
|
|
1529
|
-
React.createElement("path", { d: 'M27.6655 20.7443C26.9235 20.002 26.2307 19.4097 25.608 18.9831C22.7338 17.0113 19.5684 16.0117 16.1992 16.0117C13.6229 16.0117 11.1676 16.5943 8.9002 17.7442C8.1016 18.1264 7.38657 18.6118 6.73074 19.0799L5.88805 19.6819C5.85364 19.711 5.81716 19.7449 5.78223 19.7749L5.77618 17.9067C5.78246 17.9022 5.7892 17.8965 5.79554 17.8921L5.72168 1.52402L2.84058 1.54784e-05L0 1.6145V24.9966V30.8918C0.0184614 30.8508 0.0393993 30.8108 0.0580857 30.7698C0.0216133 31.2417 0 31.7206 0 32.2105V47.6757L2.84688 49.2499C4.7412 48.3293 5.4988 47.9164 5.79866 47.7385V32.2105C5.79866 29.3439 6.82128 26.8672 8.83853 24.8504C10.8415 22.8118 13.319 21.7759 16.1992 21.7759C19.0796 21.7759 21.557 22.8118 23.5635 24.8538C25.3441 26.6351 26.3374 28.7976 26.5963 31.4625C26.6263 31.6669 26.6339 40.3058 26.6339 47.6694C27.2825 48.0147 28.6127 48.8167 29.5141 49.3059C29.9448 49.0814 32.0589 47.8425 32.3979 47.6669V32.2105C32.3979 27.6795 30.8499 23.9285 27.6655 20.7443Z', fill: colorMapping[type_parts[1]].fill_1 })));
|
|
1530
|
-
}
|
|
1531
|
-
};
|
|
1532
|
-
|
|
1533
1701
|
const Steps = styled.div `
|
|
1534
1702
|
padding: 20px;
|
|
1535
1703
|
border-bottom: 1px solid #e7e6e6;
|
|
@@ -1580,7 +1748,7 @@ const ProgressBar = ({ steps }) => {
|
|
|
1580
1748
|
})));
|
|
1581
1749
|
};
|
|
1582
1750
|
|
|
1583
|
-
const Wrapper$
|
|
1751
|
+
const Wrapper$6 = styled.div `
|
|
1584
1752
|
position: fixed;
|
|
1585
1753
|
top: 0;
|
|
1586
1754
|
right: 0;
|
|
@@ -1660,7 +1828,7 @@ const Modal = (_a) => {
|
|
|
1660
1828
|
document.onkeydown = null;
|
|
1661
1829
|
};
|
|
1662
1830
|
}, []);
|
|
1663
|
-
return (React.createElement(Wrapper$
|
|
1831
|
+
return (React.createElement(Wrapper$6, null,
|
|
1664
1832
|
React.createElement(Container$1, Object.assign({ "$fullscreen": fullscreen, "$maxWidth": maxWidth, open: true }, accessibleProps),
|
|
1665
1833
|
React.createElement(Header$1, null,
|
|
1666
1834
|
title ? React.createElement(Heading, { type: 'secondary' }, title) : null,
|
|
@@ -1681,7 +1849,7 @@ const Modal = (_a) => {
|
|
|
1681
1849
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
|
|
1682
1850
|
};
|
|
1683
1851
|
|
|
1684
|
-
const Wrapper$
|
|
1852
|
+
const Wrapper$5 = styled.div `
|
|
1685
1853
|
position: relative;
|
|
1686
1854
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1687
1855
|
`;
|
|
@@ -1753,7 +1921,7 @@ const MultiSelect = (_a) => {
|
|
|
1753
1921
|
var { readOnly, displayCount = 3, invalid, onChange, options = [], selected = [], showSelectAll, style } = _a, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll", "style"]);
|
|
1754
1922
|
const [showOptions, setShowOptions] = React.useState(false);
|
|
1755
1923
|
const selected_options = options.filter(o => selected.includes(o.value));
|
|
1756
|
-
return (React.createElement(Wrapper$
|
|
1924
|
+
return (React.createElement(Wrapper$5, { "$style": style },
|
|
1757
1925
|
React.createElement(Trigger, Object.assign({ "$invalid": invalid, "$readOnly": readOnly, "$showOptions": showOptions, onClick: readOnly ? undefined : setShowOptions.bind(null, !showOptions) }, accessibleProps),
|
|
1758
1926
|
React.createElement(Value, null, selected.length > 0 && selected.length <= displayCount
|
|
1759
1927
|
? selected_options.map(o => o.label || o.value).join(', ')
|
|
@@ -1764,40 +1932,6 @@ const MultiSelect = (_a) => {
|
|
|
1764
1932
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
1765
1933
|
};
|
|
1766
1934
|
|
|
1767
|
-
const Wrapper$5 = styled.div `
|
|
1768
|
-
display: inline-block;
|
|
1769
|
-
border-radius: 4px;
|
|
1770
|
-
padding: 4px 6px;
|
|
1771
|
-
background: ${props => Colors[props.$color].Hex};
|
|
1772
|
-
color: #ffffff;
|
|
1773
|
-
box-sizing: border-box;
|
|
1774
|
-
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
1775
|
-
`;
|
|
1776
|
-
const Content = styled.div `
|
|
1777
|
-
display: flex;
|
|
1778
|
-
align-items: center;
|
|
1779
|
-
`;
|
|
1780
|
-
const Label$1 = styled.div `
|
|
1781
|
-
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
1782
|
-
font-size: ${FontSizes.SMALL};
|
|
1783
|
-
font-weight: 500;
|
|
1784
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1785
|
-
line-height: 1.2em;
|
|
1786
|
-
`;
|
|
1787
|
-
const Remove = styled.div `
|
|
1788
|
-
margin-left: 10px;
|
|
1789
|
-
display: flex;
|
|
1790
|
-
align-items: center;
|
|
1791
|
-
`;
|
|
1792
|
-
const Tag = (_a) => {
|
|
1793
|
-
var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
|
|
1794
|
-
return (React.createElement(Wrapper$5, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
|
|
1795
|
-
React.createElement(Content, null,
|
|
1796
|
-
React.createElement(Label$1, { "$color": color }, children),
|
|
1797
|
-
removable ? (React.createElement(Remove, null,
|
|
1798
|
-
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
|
|
1799
|
-
};
|
|
1800
|
-
|
|
1801
1935
|
const Wrapper$4 = styled.div `
|
|
1802
1936
|
display: flex;
|
|
1803
1937
|
padding: 16px 30px;
|
|
@@ -2136,6 +2270,8 @@ const ZeroState = (_a) => {
|
|
|
2136
2270
|
exports.Accordion = Accordion;
|
|
2137
2271
|
exports.ActionDialog = ActionDialog;
|
|
2138
2272
|
exports.Alert = Alert;
|
|
2273
|
+
exports.AppHeader = AppHeader;
|
|
2274
|
+
exports.AppMenu = AppMenu;
|
|
2139
2275
|
exports.BulkActionBar = BulkActionBar;
|
|
2140
2276
|
exports.Button = Button;
|
|
2141
2277
|
exports.ButtonMenu = ButtonMenu;
|