@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/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useState, useEffect, useRef } from 'react';
|
|
2
2
|
import styled, { ThemeContext, keyframes } from 'styled-components';
|
|
3
3
|
import Icon, { Icon as Icon$1 } from '@mdi/react';
|
|
4
|
-
import { mdiChevronUp, mdiChevronDown, mdiLoading, mdiInformationOutline, mdiAlertOctagonOutline, mdiAlertOutline, mdiCheckboxMarkedCircleOutline,
|
|
4
|
+
import { mdiChevronUp, mdiChevronDown, mdiLoading, mdiInformationOutline, mdiAlertOctagonOutline, mdiAlertOutline, mdiCheckboxMarkedCircleOutline, mdiClose, mdiChevronRight, mdiChevronLeft, mdiDotsHorizontal, mdiMinusCircle, mdiFolderPlusOutline, mdiCheck } from '@mdi/js';
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
6
|
import Numeral from 'numeral';
|
|
7
7
|
import Moment from 'moment';
|
|
@@ -308,7 +308,7 @@ const Wrapper$i = styled.div `
|
|
|
308
308
|
justify-content: center;
|
|
309
309
|
box-sizing: border-box;
|
|
310
310
|
`;
|
|
311
|
-
const Container$
|
|
311
|
+
const Container$4 = styled.dialog `
|
|
312
312
|
max-width: 600px;
|
|
313
313
|
width: auto;
|
|
314
314
|
border-radius: 8px;
|
|
@@ -321,7 +321,7 @@ const Container$3 = styled.dialog `
|
|
|
321
321
|
text-align: center;
|
|
322
322
|
box-sizing: border-box;
|
|
323
323
|
`;
|
|
324
|
-
const Buttons = styled.div `
|
|
324
|
+
const Buttons$1 = styled.div `
|
|
325
325
|
display: flex;
|
|
326
326
|
gap: 10px;
|
|
327
327
|
align-items: center;
|
|
@@ -332,10 +332,10 @@ const Buttons = styled.div `
|
|
|
332
332
|
const ActionDialog = (_a) => {
|
|
333
333
|
var { description, title, primaryButton, secondaryButton, tertiaryButton } = _a, accessibleProps = __rest(_a, ["description", "title", "primaryButton", "secondaryButton", "tertiaryButton"]);
|
|
334
334
|
return (React.createElement(Wrapper$i, Object.assign({}, accessibleProps),
|
|
335
|
-
React.createElement(Container$
|
|
335
|
+
React.createElement(Container$4, { open: true },
|
|
336
336
|
title ? (React.createElement(Heading, { margin: '0px 0px 20px 0px', type: 'secondary' }, title)) : null,
|
|
337
337
|
description ? React.createElement(Copy, { align: 'center' }, description) : null,
|
|
338
|
-
primaryButton || secondaryButton || tertiaryButton ? (React.createElement(Buttons, null,
|
|
338
|
+
primaryButton || secondaryButton || tertiaryButton ? (React.createElement(Buttons$1, null,
|
|
339
339
|
tertiaryButton ? React.createElement(Button, Object.assign({}, tertiaryButton, { format: 'secondary' })) : null,
|
|
340
340
|
secondaryButton ? React.createElement(Button, Object.assign({}, secondaryButton, { format: 'secondary' })) : null,
|
|
341
341
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format === 'red' ? 'red' : 'primary' }))) : null)) : null)));
|
|
@@ -393,7 +393,217 @@ const Alert = (_a) => {
|
|
|
393
393
|
action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
+
const colorMapping = {
|
|
397
|
+
black: {
|
|
398
|
+
fill_1: '#000000',
|
|
399
|
+
fill_2: '#000000',
|
|
400
|
+
fill_3: '#000000',
|
|
401
|
+
},
|
|
402
|
+
white: {
|
|
403
|
+
fill_1: '#ffffff',
|
|
404
|
+
fill_2: '#ffffff',
|
|
405
|
+
fill_3: '#ffffff',
|
|
406
|
+
},
|
|
407
|
+
full: {
|
|
408
|
+
fill_1: '#000000',
|
|
409
|
+
fill_2: '#E82425',
|
|
410
|
+
fill_3: '#E82425',
|
|
411
|
+
},
|
|
412
|
+
reversed: {
|
|
413
|
+
fill_1: '#ffffff',
|
|
414
|
+
fill_2: '#E82425',
|
|
415
|
+
fill_3: '#E82425',
|
|
416
|
+
},
|
|
417
|
+
};
|
|
418
|
+
const Logo = (_a) => {
|
|
419
|
+
var { type = 'standard_full', height = '50px' } = _a, accessibleProps = __rest(_a, ["type", "height"]);
|
|
420
|
+
const type_parts = type.split('_');
|
|
421
|
+
switch (type_parts[0]) {
|
|
422
|
+
case 'mark':
|
|
423
|
+
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),
|
|
424
|
+
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] })));
|
|
425
|
+
default:
|
|
426
|
+
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),
|
|
427
|
+
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 }),
|
|
428
|
+
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 }),
|
|
429
|
+
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 }),
|
|
430
|
+
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 }),
|
|
431
|
+
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 }),
|
|
432
|
+
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 }),
|
|
433
|
+
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 }),
|
|
434
|
+
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 })));
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
const Container$3 = styled.header `
|
|
439
|
+
width: 100%;
|
|
440
|
+
display: flex;
|
|
441
|
+
padding: 20px;
|
|
442
|
+
box-sizing: border-box;
|
|
443
|
+
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
444
|
+
background: '#fff';
|
|
445
|
+
justify-content: space-between;
|
|
446
|
+
`;
|
|
447
|
+
const LogoWrapper = styled.div `
|
|
448
|
+
display: flex;
|
|
449
|
+
align-items: center;
|
|
450
|
+
`;
|
|
451
|
+
const Image = styled.img `
|
|
452
|
+
height: 30px !important;
|
|
453
|
+
width: auto !important;
|
|
454
|
+
`;
|
|
455
|
+
const Buttons = styled.div `
|
|
456
|
+
display: flex;
|
|
457
|
+
flex-direction: row;
|
|
458
|
+
column-gap: 10px;
|
|
459
|
+
flex-direction: reverse;
|
|
460
|
+
`;
|
|
461
|
+
const AppHeader = ({ logoUrl, buttons = [] }) => {
|
|
462
|
+
return (React.createElement(Container$3, null,
|
|
463
|
+
React.createElement(LogoWrapper, null, logoUrl ? React.createElement(Image, { src: logoUrl }) : React.createElement(Logo, { height: '30px' })),
|
|
464
|
+
React.createElement(Buttons, null, buttons.map(b => (React.createElement(Button, Object.assign({}, b)))))));
|
|
465
|
+
};
|
|
466
|
+
|
|
396
467
|
const Wrapper$g = styled.div `
|
|
468
|
+
display: inline-block;
|
|
469
|
+
border-radius: 4px;
|
|
470
|
+
padding: 4px 6px;
|
|
471
|
+
background: ${props => Colors[props.$color].Hex};
|
|
472
|
+
color: #ffffff;
|
|
473
|
+
box-sizing: border-box;
|
|
474
|
+
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
475
|
+
`;
|
|
476
|
+
const Content$3 = styled.div `
|
|
477
|
+
display: flex;
|
|
478
|
+
align-items: center;
|
|
479
|
+
`;
|
|
480
|
+
const Label$4 = styled.div `
|
|
481
|
+
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
482
|
+
font-size: ${FontSizes.SMALL};
|
|
483
|
+
font-weight: 500;
|
|
484
|
+
font-family: ${FontStyles.DEFAULT};
|
|
485
|
+
line-height: 1.2em;
|
|
486
|
+
`;
|
|
487
|
+
const Remove$1 = styled.div `
|
|
488
|
+
margin-left: 10px;
|
|
489
|
+
display: flex;
|
|
490
|
+
align-items: center;
|
|
491
|
+
`;
|
|
492
|
+
const Tag = (_a) => {
|
|
493
|
+
var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
|
|
494
|
+
return (React.createElement(Wrapper$g, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
|
|
495
|
+
React.createElement(Content$3, null,
|
|
496
|
+
React.createElement(Label$4, { "$color": color }, children),
|
|
497
|
+
removable ? (React.createElement(Remove$1, null,
|
|
498
|
+
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: mdiClose, size: '15px' }))) : null)));
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
const SidebarContainer = styled.div `
|
|
502
|
+
border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
503
|
+
display: flex;
|
|
504
|
+
flex-direction: column;
|
|
505
|
+
height: 100%;
|
|
506
|
+
padding: 12px 0px;
|
|
507
|
+
width: ${props => (props.$isOpen ? '280px' : '60px')};
|
|
508
|
+
`;
|
|
509
|
+
const MenuWrapper = styled.div `
|
|
510
|
+
display: flex;
|
|
511
|
+
align-items: center;
|
|
512
|
+
border-left-width: 4px;
|
|
513
|
+
border-left-style: solid;
|
|
514
|
+
border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
|
|
515
|
+
cursor: pointer;
|
|
516
|
+
height: 40px;
|
|
517
|
+
|
|
518
|
+
&:hover > div {
|
|
519
|
+
color: ${props => props.$color.Hex};
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
&:hover > svg > path {
|
|
523
|
+
fill: ${Colors.BLACK.Hex} !important;
|
|
524
|
+
}
|
|
525
|
+
`;
|
|
526
|
+
const MenuIcon = styled(Icon) `
|
|
527
|
+
width: 20px;
|
|
528
|
+
height: 20px;
|
|
529
|
+
margin: 0px 16px;
|
|
530
|
+
flex-shrink: 0;
|
|
531
|
+
|
|
532
|
+
> path {
|
|
533
|
+
fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
|
|
534
|
+
}
|
|
535
|
+
`;
|
|
536
|
+
const MenuLabel = styled.div `
|
|
537
|
+
color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
|
|
538
|
+
flex: 1;
|
|
539
|
+
font-size: 12px;
|
|
540
|
+
font-style: normal;
|
|
541
|
+
font-weight: 600;
|
|
542
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
543
|
+
line-height: 16px;
|
|
544
|
+
padding: 12px 0px;
|
|
545
|
+
letter-spacing: 1px;
|
|
546
|
+
`;
|
|
547
|
+
const SubMenu = styled.div `
|
|
548
|
+
overflow-y: auto;
|
|
549
|
+
padding-left: 44px;
|
|
550
|
+
padding-right: 20px;
|
|
551
|
+
padding-bottom: 10px;
|
|
552
|
+
`;
|
|
553
|
+
const SubMenuItem = styled.a `
|
|
554
|
+
display: block;
|
|
555
|
+
padding: 8px 12px;
|
|
556
|
+
border-radius: 8px;
|
|
557
|
+
font-size: 13px;
|
|
558
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
559
|
+
line-height: 20px;
|
|
560
|
+
text-decoration: none;
|
|
561
|
+
font-weight: ${({ $active }) => ($active ? '500' : '400')};
|
|
562
|
+
color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
|
|
563
|
+
background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
|
|
564
|
+
cursor: pointer;
|
|
565
|
+
|
|
566
|
+
&:hover {
|
|
567
|
+
color: ${props => props.$color.Hex};
|
|
568
|
+
font-weight: 500;
|
|
569
|
+
}
|
|
570
|
+
`;
|
|
571
|
+
const Footer = styled.div `
|
|
572
|
+
padding: 20px 14px 0px;
|
|
573
|
+
display: flex;
|
|
574
|
+
align-items: center;
|
|
575
|
+
`;
|
|
576
|
+
const FooterInfo = styled.div `
|
|
577
|
+
display: flex;
|
|
578
|
+
flex-direction: column;
|
|
579
|
+
flex: 1;
|
|
580
|
+
align-items: flex-start;
|
|
581
|
+
`;
|
|
582
|
+
const SidebarMenuContainer = styled.div `
|
|
583
|
+
flex-grow: 1;
|
|
584
|
+
`;
|
|
585
|
+
const AppMenu = ({ menu, isCollapsed, footerTag }) => {
|
|
586
|
+
const theme = useContext(ThemeContext) || EditableTheme;
|
|
587
|
+
const [collapsed, toggleCollapse] = useState(isCollapsed);
|
|
588
|
+
return (React.createElement(SidebarContainer, { "$isOpen": !collapsed },
|
|
589
|
+
React.createElement(SidebarMenuContainer, null, menu.map(nav_item => {
|
|
590
|
+
return (React.createElement(React.Fragment, { key: nav_item.label },
|
|
591
|
+
React.createElement(MenuWrapper, { "$active": !!nav_item.is_active, "$color": theme.PRIMARY_COLOR, onClick: nav_item.onClick },
|
|
592
|
+
React.createElement(MenuIcon, { "$active": !!nav_item.is_active, path: nav_item.icon }),
|
|
593
|
+
collapsed ? null : (React.createElement(MenuLabel, { "$active": nav_item.is_active, "$color": theme.PRIMARY_COLOR }, nav_item.label))),
|
|
594
|
+
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));
|
|
595
|
+
})),
|
|
596
|
+
React.createElement(Footer, null,
|
|
597
|
+
collapsed ? null : (React.createElement(FooterInfo, null,
|
|
598
|
+
footerTag ? React.createElement(Tag, null, footerTag) : null,
|
|
599
|
+
React.createElement(Copy, { margin: '8px 0 0 0', type: 'small' },
|
|
600
|
+
"\u00A9 ",
|
|
601
|
+
new Date().getFullYear(),
|
|
602
|
+
" Hexure"))),
|
|
603
|
+
React.createElement(Button, { icon: collapsed ? mdiChevronRight : mdiChevronLeft, onClick: () => toggleCollapse(!collapsed), small: true }))));
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
const Wrapper$f = styled.div `
|
|
397
607
|
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
398
608
|
border-radius: 8px;
|
|
399
609
|
box-sizing: border-box;
|
|
@@ -402,7 +612,7 @@ const Wrapper$g = styled.div `
|
|
|
402
612
|
justify-content: space-between;
|
|
403
613
|
padding: 16px 20px;
|
|
404
614
|
`;
|
|
405
|
-
Wrapper$
|
|
615
|
+
Wrapper$f.defaultProps = { theme: EditableTheme };
|
|
406
616
|
const Left = styled.div `
|
|
407
617
|
box-sizing: border-box;
|
|
408
618
|
display: flex;
|
|
@@ -463,7 +673,7 @@ const ErrorMsg = styled.span `
|
|
|
463
673
|
`;
|
|
464
674
|
const BulkActionBar = (_a) => {
|
|
465
675
|
var { actions = [], errorMsg, onClear, selectedCount = 0 } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount"]);
|
|
466
|
-
return (React.createElement(Wrapper$
|
|
676
|
+
return (React.createElement(Wrapper$f, Object.assign({}, accessibleProps),
|
|
467
677
|
React.createElement(Left, null,
|
|
468
678
|
React.createElement(Info$1, null,
|
|
469
679
|
React.createElement(Selected, null,
|
|
@@ -476,7 +686,7 @@ const BulkActionBar = (_a) => {
|
|
|
476
686
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
477
687
|
};
|
|
478
688
|
|
|
479
|
-
const Wrapper$
|
|
689
|
+
const Wrapper$e = styled.div `
|
|
480
690
|
background: #fff;
|
|
481
691
|
border-radius: 8px;
|
|
482
692
|
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
@@ -517,14 +727,14 @@ const Title$1 = styled.span `
|
|
|
517
727
|
`;
|
|
518
728
|
const MoreMenu = (_a) => {
|
|
519
729
|
var { maxHeight, menuItems = [] } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
|
|
520
|
-
return (React.createElement(Wrapper$
|
|
730
|
+
return (React.createElement(Wrapper$e, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
|
|
521
731
|
return (React.createElement(MenuItem, { key: i, onClick: item.onClick },
|
|
522
732
|
item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
|
|
523
733
|
React.createElement(Title$1, null, item.label)));
|
|
524
734
|
})));
|
|
525
735
|
};
|
|
526
736
|
|
|
527
|
-
const Wrapper$
|
|
737
|
+
const Wrapper$d = styled.div `
|
|
528
738
|
position: relative;
|
|
529
739
|
display: inline-block;
|
|
530
740
|
`;
|
|
@@ -538,12 +748,12 @@ const StyledMoreMenu = styled(MoreMenu) `
|
|
|
538
748
|
`;
|
|
539
749
|
const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'right', format = 'primary', menuWidth = '200px', }) => {
|
|
540
750
|
const [show_menu, toggleMenu] = useState(false);
|
|
541
|
-
return (React.createElement(Wrapper$
|
|
751
|
+
return (React.createElement(Wrapper$d, { onMouseEnter: disabled ? undefined : toggleMenu.bind(null, true), onMouseLeave: disabled ? undefined : toggleMenu.bind(null, false) },
|
|
542
752
|
React.createElement(Button, { disabled: disabled, format: format, icon: mdiDotsHorizontal, small: small }, label),
|
|
543
753
|
show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
|
|
544
754
|
};
|
|
545
755
|
|
|
546
|
-
const Wrapper$
|
|
756
|
+
const Wrapper$c = styled.label `
|
|
547
757
|
border-radius: 4px;
|
|
548
758
|
padding: 4px 0px 4px 6px;
|
|
549
759
|
margin-left: -6px;
|
|
@@ -558,14 +768,14 @@ const Wrapper$d = styled.label `
|
|
|
558
768
|
background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
|
|
559
769
|
}
|
|
560
770
|
`;
|
|
561
|
-
Wrapper$
|
|
771
|
+
Wrapper$c.defaultProps = { theme: EditableTheme };
|
|
562
772
|
const Input$2 = styled.input `
|
|
563
773
|
font-size: 20px;
|
|
564
774
|
margin: 5px 0px 0px 0px;
|
|
565
775
|
line-height: 1.1em;
|
|
566
776
|
box-sizing: border-box;
|
|
567
777
|
`;
|
|
568
|
-
const Label$
|
|
778
|
+
const Label$3 = styled.span `
|
|
569
779
|
font-family: ${FontStyles.DEFAULT};
|
|
570
780
|
font-size: ${FontSizes.DEFAULT};
|
|
571
781
|
font-weight: 400;
|
|
@@ -576,9 +786,9 @@ const Label$4 = styled.span `
|
|
|
576
786
|
`;
|
|
577
787
|
const Checkbox = (_a) => {
|
|
578
788
|
var { children, disabled, checked, onChange } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange"]);
|
|
579
|
-
return (React.createElement(Wrapper$
|
|
789
|
+
return (React.createElement(Wrapper$c, Object.assign({}, accessibleProps),
|
|
580
790
|
React.createElement(Input$2, { checked: checked, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, type: 'checkbox' }),
|
|
581
|
-
children ? React.createElement(Label$
|
|
791
|
+
children ? React.createElement(Label$3, null, children) : null));
|
|
582
792
|
};
|
|
583
793
|
|
|
584
794
|
const SelectAll = styled.div `
|
|
@@ -627,7 +837,7 @@ const Checklist = (_a) => {
|
|
|
627
837
|
}))));
|
|
628
838
|
};
|
|
629
839
|
|
|
630
|
-
const Wrapper$
|
|
840
|
+
const Wrapper$b = styled.div `
|
|
631
841
|
border-radius: 4px;
|
|
632
842
|
height: 40px;
|
|
633
843
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -648,7 +858,7 @@ const Wrapper$c = styled.div `
|
|
|
648
858
|
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
649
859
|
}
|
|
650
860
|
`;
|
|
651
|
-
Wrapper$
|
|
861
|
+
Wrapper$b.defaultProps = { theme: EditableTheme };
|
|
652
862
|
const Trigger$1 = styled.select `
|
|
653
863
|
appearance: none;
|
|
654
864
|
box-shadow: none;
|
|
@@ -676,7 +886,7 @@ const IconWrapper$2 = styled(Icon) `
|
|
|
676
886
|
`;
|
|
677
887
|
const Select = (_a) => {
|
|
678
888
|
var { options, optionGroups, placeholder, readOnly, invalid, value, onChange, style } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "value", "onChange", "style"]);
|
|
679
|
-
return (React.createElement(Wrapper$
|
|
889
|
+
return (React.createElement(Wrapper$b, { "$invalid": invalid, "$readOnly": readOnly, "$style": style },
|
|
680
890
|
React.createElement(Trigger$1, Object.assign({ disabled: readOnly, onChange: onChange, placeholder: placeholder, value: value }, accessibleProps),
|
|
681
891
|
placeholder ? (React.createElement("option", { disabled: true, value: '' }, placeholder)) : null,
|
|
682
892
|
optionGroups &&
|
|
@@ -849,7 +1059,7 @@ const Drawer = (_a) => {
|
|
|
849
1059
|
scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
|
|
850
1060
|
};
|
|
851
1061
|
|
|
852
|
-
const Wrapper$
|
|
1062
|
+
const Wrapper$a = styled.div `
|
|
853
1063
|
display: inline-block;
|
|
854
1064
|
position: relative;
|
|
855
1065
|
height: 16px;
|
|
@@ -890,16 +1100,16 @@ const positions = {
|
|
|
890
1100
|
transform: 'translateY(-50%)',
|
|
891
1101
|
},
|
|
892
1102
|
};
|
|
893
|
-
const Content$
|
|
894
|
-
Content$
|
|
1103
|
+
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])));
|
|
1104
|
+
Content$2.defaultProps = { theme: EditableTheme };
|
|
895
1105
|
const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
|
|
896
1106
|
const [show_content, toggleContent] = useState(false);
|
|
897
|
-
return (React.createElement(Wrapper$
|
|
1107
|
+
return (React.createElement(Wrapper$a, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
|
|
898
1108
|
trigger || React.createElement(StyledIcon$4, { path: mdiInformationOutline }),
|
|
899
|
-
show_content ? (React.createElement(Content$
|
|
1109
|
+
show_content ? (React.createElement(Content$2, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
|
|
900
1110
|
};
|
|
901
1111
|
|
|
902
|
-
const Wrapper$
|
|
1112
|
+
const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.style)));
|
|
903
1113
|
const LabelRow = styled.div `
|
|
904
1114
|
display: flex;
|
|
905
1115
|
align-items: center;
|
|
@@ -907,7 +1117,7 @@ const LabelRow = styled.div `
|
|
|
907
1117
|
margin: 0 0 4px 0;
|
|
908
1118
|
box-sizing: border-box;
|
|
909
1119
|
`;
|
|
910
|
-
const Label$
|
|
1120
|
+
const Label$2 = styled.label `
|
|
911
1121
|
font-size: ${FontSizes.DEFAULT};
|
|
912
1122
|
font-weight: 500;
|
|
913
1123
|
line-height: 1em;
|
|
@@ -949,9 +1159,9 @@ const Validation = styled.div `
|
|
|
949
1159
|
`;
|
|
950
1160
|
const Field = (_a) => {
|
|
951
1161
|
var { action, children, validationText, label, description, required, htmlFor, style, tooltip } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip"]);
|
|
952
|
-
return (React.createElement(Wrapper$
|
|
1162
|
+
return (React.createElement(Wrapper$9, Object.assign({ style: style }, accessibleProps),
|
|
953
1163
|
React.createElement(LabelRow, null,
|
|
954
|
-
React.createElement(Label$
|
|
1164
|
+
React.createElement(Label$2, { htmlFor: htmlFor },
|
|
955
1165
|
label,
|
|
956
1166
|
required ? React.createElement(Required, null, "*") : null,
|
|
957
1167
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null),
|
|
@@ -961,7 +1171,7 @@ const Field = (_a) => {
|
|
|
961
1171
|
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
962
1172
|
};
|
|
963
1173
|
|
|
964
|
-
const Wrapper$
|
|
1174
|
+
const Wrapper$8 = styled.fieldset `
|
|
965
1175
|
margin-inline-start: 0px;
|
|
966
1176
|
margin-inline-end: 0px;
|
|
967
1177
|
padding-block-start: 0px;
|
|
@@ -974,7 +1184,7 @@ const Wrapper$9 = styled.fieldset `
|
|
|
974
1184
|
border-color: transparent;
|
|
975
1185
|
border-image: none;
|
|
976
1186
|
`;
|
|
977
|
-
const Label$
|
|
1187
|
+
const Label$1 = styled.legend `
|
|
978
1188
|
padding-inline-start: 0px;
|
|
979
1189
|
padding-inline-end: 0px;
|
|
980
1190
|
|
|
@@ -985,15 +1195,15 @@ const Label$2 = styled.legend `
|
|
|
985
1195
|
line-height: 22px;
|
|
986
1196
|
margin-bottom: 6px;
|
|
987
1197
|
`;
|
|
988
|
-
const Content$
|
|
1198
|
+
const Content$1 = styled.div `
|
|
989
1199
|
padding: 20px;
|
|
990
1200
|
border-radius: 8px;
|
|
991
1201
|
background: #fcfcfc;
|
|
992
1202
|
`;
|
|
993
1203
|
const FieldGroup = ({ children, label }) => {
|
|
994
|
-
return (React.createElement(Wrapper$
|
|
995
|
-
React.createElement(Label$
|
|
996
|
-
React.createElement(Content$
|
|
1204
|
+
return (React.createElement(Wrapper$8, null,
|
|
1205
|
+
React.createElement(Label$1, null, label),
|
|
1206
|
+
React.createElement(Content$1, null, children)));
|
|
997
1207
|
};
|
|
998
1208
|
|
|
999
1209
|
const Dropzone = styled.div `
|
|
@@ -1029,7 +1239,7 @@ const ClickZone = styled.div `
|
|
|
1029
1239
|
align-items: center;
|
|
1030
1240
|
gap: 16px;
|
|
1031
1241
|
`;
|
|
1032
|
-
const Content
|
|
1242
|
+
const Content = styled.div `
|
|
1033
1243
|
display: flex;
|
|
1034
1244
|
flex-direction: column;
|
|
1035
1245
|
align-items: center;
|
|
@@ -1052,7 +1262,7 @@ const File = styled.div `
|
|
|
1052
1262
|
border: 1px solid #cccccc;
|
|
1053
1263
|
background: #ffffff;
|
|
1054
1264
|
`;
|
|
1055
|
-
const Remove
|
|
1265
|
+
const Remove = styled(Icon) `
|
|
1056
1266
|
width: 24px;
|
|
1057
1267
|
height: 24px;
|
|
1058
1268
|
cursor: pointer;
|
|
@@ -1162,12 +1372,12 @@ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, mes
|
|
|
1162
1372
|
files.length ? (React.createElement(Files, null, files.map(file => {
|
|
1163
1373
|
return (React.createElement(File, { key: file.name },
|
|
1164
1374
|
React.createElement(Copy, { type: 'bold' }, file.name),
|
|
1165
|
-
React.createElement(Remove
|
|
1375
|
+
React.createElement(Remove, { onClick: handleRemove.bind(null, file), path: mdiMinusCircle })));
|
|
1166
1376
|
}))) : null,
|
|
1167
1377
|
allowMoreFiles ? (React.createElement(ClickZone, { onClick: triggerFileExplorer },
|
|
1168
1378
|
files.length ? null : (React.createElement(IconWrapper$1, { "$dragging": dragging },
|
|
1169
1379
|
React.createElement(StyledIcon$3, { path: mdiFolderPlusOutline }))),
|
|
1170
|
-
React.createElement(Content
|
|
1380
|
+
React.createElement(Content, null,
|
|
1171
1381
|
React.createElement(Copy, { align: 'center', type: 'bold' }, "Drag & drop files here or click to select files"),
|
|
1172
1382
|
message ? (React.createElement(Copy, { align: 'center', color: 'GRAY' }, message)) : null))) : null)));
|
|
1173
1383
|
};
|
|
@@ -1432,7 +1642,7 @@ const Input$1 = (_a) => {
|
|
|
1432
1642
|
}))) : null));
|
|
1433
1643
|
};
|
|
1434
1644
|
|
|
1435
|
-
const Wrapper$
|
|
1645
|
+
const Wrapper$7 = styled.a `
|
|
1436
1646
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1437
1647
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
1438
1648
|
line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
|
|
@@ -1446,10 +1656,10 @@ const Wrapper$8 = styled.a `
|
|
|
1446
1656
|
box-sizing: border-box;
|
|
1447
1657
|
cursor: pointer;
|
|
1448
1658
|
`;
|
|
1449
|
-
Wrapper$
|
|
1659
|
+
Wrapper$7.defaultProps = { theme: EditableTheme };
|
|
1450
1660
|
const Link = (_a) => {
|
|
1451
1661
|
var { children, onClick, small } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small"]);
|
|
1452
|
-
return (React.createElement(Wrapper$
|
|
1662
|
+
return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
|
|
1453
1663
|
};
|
|
1454
1664
|
|
|
1455
1665
|
const dash = keyframes `
|
|
@@ -1486,48 +1696,6 @@ const Loader = () => {
|
|
|
1486
1696
|
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' })));
|
|
1487
1697
|
};
|
|
1488
1698
|
|
|
1489
|
-
const colorMapping = {
|
|
1490
|
-
black: {
|
|
1491
|
-
fill_1: '#000000',
|
|
1492
|
-
fill_2: '#000000',
|
|
1493
|
-
fill_3: '#000000',
|
|
1494
|
-
},
|
|
1495
|
-
white: {
|
|
1496
|
-
fill_1: '#ffffff',
|
|
1497
|
-
fill_2: '#ffffff',
|
|
1498
|
-
fill_3: '#ffffff',
|
|
1499
|
-
},
|
|
1500
|
-
full: {
|
|
1501
|
-
fill_1: '#000000',
|
|
1502
|
-
fill_2: '#E82425',
|
|
1503
|
-
fill_3: '#E82425',
|
|
1504
|
-
},
|
|
1505
|
-
reversed: {
|
|
1506
|
-
fill_1: '#ffffff',
|
|
1507
|
-
fill_2: '#E82425',
|
|
1508
|
-
fill_3: '#E82425',
|
|
1509
|
-
},
|
|
1510
|
-
};
|
|
1511
|
-
const Logo = (_a) => {
|
|
1512
|
-
var { type = 'standard_full', height = '50px' } = _a, accessibleProps = __rest(_a, ["type", "height"]);
|
|
1513
|
-
const type_parts = type.split('_');
|
|
1514
|
-
switch (type_parts[0]) {
|
|
1515
|
-
case 'mark':
|
|
1516
|
-
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),
|
|
1517
|
-
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] })));
|
|
1518
|
-
default:
|
|
1519
|
-
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),
|
|
1520
|
-
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 }),
|
|
1521
|
-
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 }),
|
|
1522
|
-
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 }),
|
|
1523
|
-
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 }),
|
|
1524
|
-
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 }),
|
|
1525
|
-
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 }),
|
|
1526
|
-
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 }),
|
|
1527
|
-
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 })));
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
|
-
|
|
1531
1699
|
const Steps = styled.div `
|
|
1532
1700
|
padding: 20px;
|
|
1533
1701
|
border-bottom: 1px solid #e7e6e6;
|
|
@@ -1578,7 +1746,7 @@ const ProgressBar = ({ steps }) => {
|
|
|
1578
1746
|
})));
|
|
1579
1747
|
};
|
|
1580
1748
|
|
|
1581
|
-
const Wrapper$
|
|
1749
|
+
const Wrapper$6 = styled.div `
|
|
1582
1750
|
position: fixed;
|
|
1583
1751
|
top: 0;
|
|
1584
1752
|
right: 0;
|
|
@@ -1658,7 +1826,7 @@ const Modal = (_a) => {
|
|
|
1658
1826
|
document.onkeydown = null;
|
|
1659
1827
|
};
|
|
1660
1828
|
}, []);
|
|
1661
|
-
return (React.createElement(Wrapper$
|
|
1829
|
+
return (React.createElement(Wrapper$6, null,
|
|
1662
1830
|
React.createElement(Container$1, Object.assign({ "$fullscreen": fullscreen, "$maxWidth": maxWidth, open: true }, accessibleProps),
|
|
1663
1831
|
React.createElement(Header$1, null,
|
|
1664
1832
|
title ? React.createElement(Heading, { type: 'secondary' }, title) : null,
|
|
@@ -1679,7 +1847,7 @@ const Modal = (_a) => {
|
|
|
1679
1847
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
|
|
1680
1848
|
};
|
|
1681
1849
|
|
|
1682
|
-
const Wrapper$
|
|
1850
|
+
const Wrapper$5 = styled.div `
|
|
1683
1851
|
position: relative;
|
|
1684
1852
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1685
1853
|
`;
|
|
@@ -1751,7 +1919,7 @@ const MultiSelect = (_a) => {
|
|
|
1751
1919
|
var { readOnly, displayCount = 3, invalid, onChange, options = [], selected = [], showSelectAll, style } = _a, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll", "style"]);
|
|
1752
1920
|
const [showOptions, setShowOptions] = useState(false);
|
|
1753
1921
|
const selected_options = options.filter(o => selected.includes(o.value));
|
|
1754
|
-
return (React.createElement(Wrapper$
|
|
1922
|
+
return (React.createElement(Wrapper$5, { "$style": style },
|
|
1755
1923
|
React.createElement(Trigger, Object.assign({ "$invalid": invalid, "$readOnly": readOnly, "$showOptions": showOptions, onClick: readOnly ? undefined : setShowOptions.bind(null, !showOptions) }, accessibleProps),
|
|
1756
1924
|
React.createElement(Value, null, selected.length > 0 && selected.length <= displayCount
|
|
1757
1925
|
? selected_options.map(o => o.label || o.value).join(', ')
|
|
@@ -1762,40 +1930,6 @@ const MultiSelect = (_a) => {
|
|
|
1762
1930
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
1763
1931
|
};
|
|
1764
1932
|
|
|
1765
|
-
const Wrapper$5 = styled.div `
|
|
1766
|
-
display: inline-block;
|
|
1767
|
-
border-radius: 4px;
|
|
1768
|
-
padding: 4px 6px;
|
|
1769
|
-
background: ${props => Colors[props.$color].Hex};
|
|
1770
|
-
color: #ffffff;
|
|
1771
|
-
box-sizing: border-box;
|
|
1772
|
-
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
1773
|
-
`;
|
|
1774
|
-
const Content = styled.div `
|
|
1775
|
-
display: flex;
|
|
1776
|
-
align-items: center;
|
|
1777
|
-
`;
|
|
1778
|
-
const Label$1 = styled.div `
|
|
1779
|
-
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
1780
|
-
font-size: ${FontSizes.SMALL};
|
|
1781
|
-
font-weight: 500;
|
|
1782
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1783
|
-
line-height: 1.2em;
|
|
1784
|
-
`;
|
|
1785
|
-
const Remove = styled.div `
|
|
1786
|
-
margin-left: 10px;
|
|
1787
|
-
display: flex;
|
|
1788
|
-
align-items: center;
|
|
1789
|
-
`;
|
|
1790
|
-
const Tag = (_a) => {
|
|
1791
|
-
var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
|
|
1792
|
-
return (React.createElement(Wrapper$5, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
|
|
1793
|
-
React.createElement(Content, null,
|
|
1794
|
-
React.createElement(Label$1, { "$color": color }, children),
|
|
1795
|
-
removable ? (React.createElement(Remove, null,
|
|
1796
|
-
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: mdiClose, size: '15px' }))) : null)));
|
|
1797
|
-
};
|
|
1798
|
-
|
|
1799
1933
|
const Wrapper$4 = styled.div `
|
|
1800
1934
|
display: flex;
|
|
1801
1935
|
padding: 16px 30px;
|
|
@@ -2131,5 +2265,5 @@ const ZeroState = (_a) => {
|
|
|
2131
2265
|
action && (React.createElement(Button, { children: action === null || action === void 0 ? void 0 : action.children, icon: action === null || action === void 0 ? void 0 : action.icon, onClick: action === null || action === void 0 ? void 0 : action.onClick }))));
|
|
2132
2266
|
};
|
|
2133
2267
|
|
|
2134
|
-
export { Accordion, ActionDialog, Alert, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input$1 as Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
|
|
2268
|
+
export { Accordion, ActionDialog, Alert, AppHeader, AppMenu, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input$1 as Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
|
|
2135
2269
|
//# sourceMappingURL=index.js.map
|