@hexure/ui 1.11.0 → 1.11.2

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/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, mdiDotsHorizontal, mdiClose, mdiMinusCircle, mdiFolderPlusOutline, mdiChevronRight, mdiChevronLeft, mdiCheck } from '@mdi/js';
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';
@@ -465,6 +465,145 @@ const AppHeader = ({ logoUrl, buttons = [] }) => {
465
465
  };
466
466
 
467
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 `
468
607
  border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
469
608
  border-radius: 8px;
470
609
  box-sizing: border-box;
@@ -473,7 +612,7 @@ const Wrapper$g = styled.div `
473
612
  justify-content: space-between;
474
613
  padding: 16px 20px;
475
614
  `;
476
- Wrapper$g.defaultProps = { theme: EditableTheme };
615
+ Wrapper$f.defaultProps = { theme: EditableTheme };
477
616
  const Left = styled.div `
478
617
  box-sizing: border-box;
479
618
  display: flex;
@@ -534,7 +673,7 @@ const ErrorMsg = styled.span `
534
673
  `;
535
674
  const BulkActionBar = (_a) => {
536
675
  var { actions = [], errorMsg, onClear, selectedCount = 0 } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount"]);
537
- return (React.createElement(Wrapper$g, Object.assign({}, accessibleProps),
676
+ return (React.createElement(Wrapper$f, Object.assign({}, accessibleProps),
538
677
  React.createElement(Left, null,
539
678
  React.createElement(Info$1, null,
540
679
  React.createElement(Selected, null,
@@ -547,7 +686,7 @@ const BulkActionBar = (_a) => {
547
686
  React.createElement(ErrorMsg, null, errorMsg))) : null));
548
687
  };
549
688
 
550
- const Wrapper$f = styled.div `
689
+ const Wrapper$e = styled.div `
551
690
  background: #fff;
552
691
  border-radius: 8px;
553
692
  box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
@@ -588,14 +727,14 @@ const Title$1 = styled.span `
588
727
  `;
589
728
  const MoreMenu = (_a) => {
590
729
  var { maxHeight, menuItems = [] } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
591
- return (React.createElement(Wrapper$f, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
730
+ return (React.createElement(Wrapper$e, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
592
731
  return (React.createElement(MenuItem, { key: i, onClick: item.onClick },
593
732
  item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
594
733
  React.createElement(Title$1, null, item.label)));
595
734
  })));
596
735
  };
597
736
 
598
- const Wrapper$e = styled.div `
737
+ const Wrapper$d = styled.div `
599
738
  position: relative;
600
739
  display: inline-block;
601
740
  `;
@@ -609,12 +748,12 @@ const StyledMoreMenu = styled(MoreMenu) `
609
748
  `;
610
749
  const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'right', format = 'primary', menuWidth = '200px', }) => {
611
750
  const [show_menu, toggleMenu] = useState(false);
612
- return (React.createElement(Wrapper$e, { onMouseEnter: disabled ? undefined : toggleMenu.bind(null, true), onMouseLeave: disabled ? undefined : toggleMenu.bind(null, false) },
751
+ return (React.createElement(Wrapper$d, { onMouseEnter: disabled ? undefined : toggleMenu.bind(null, true), onMouseLeave: disabled ? undefined : toggleMenu.bind(null, false) },
613
752
  React.createElement(Button, { disabled: disabled, format: format, icon: mdiDotsHorizontal, small: small }, label),
614
753
  show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
615
754
  };
616
755
 
617
- const Wrapper$d = styled.label `
756
+ const Wrapper$c = styled.label `
618
757
  border-radius: 4px;
619
758
  padding: 4px 0px 4px 6px;
620
759
  margin-left: -6px;
@@ -629,14 +768,14 @@ const Wrapper$d = styled.label `
629
768
  background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
630
769
  }
631
770
  `;
632
- Wrapper$d.defaultProps = { theme: EditableTheme };
771
+ Wrapper$c.defaultProps = { theme: EditableTheme };
633
772
  const Input$2 = styled.input `
634
773
  font-size: 20px;
635
774
  margin: 5px 0px 0px 0px;
636
775
  line-height: 1.1em;
637
776
  box-sizing: border-box;
638
777
  `;
639
- const Label$4 = styled.span `
778
+ const Label$3 = styled.span `
640
779
  font-family: ${FontStyles.DEFAULT};
641
780
  font-size: ${FontSizes.DEFAULT};
642
781
  font-weight: 400;
@@ -647,9 +786,9 @@ const Label$4 = styled.span `
647
786
  `;
648
787
  const Checkbox = (_a) => {
649
788
  var { children, disabled, checked, onChange } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange"]);
650
- return (React.createElement(Wrapper$d, Object.assign({}, accessibleProps),
789
+ return (React.createElement(Wrapper$c, Object.assign({}, accessibleProps),
651
790
  React.createElement(Input$2, { checked: checked, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, type: 'checkbox' }),
652
- children ? React.createElement(Label$4, null, children) : null));
791
+ children ? React.createElement(Label$3, null, children) : null));
653
792
  };
654
793
 
655
794
  const SelectAll = styled.div `
@@ -698,7 +837,7 @@ const Checklist = (_a) => {
698
837
  }))));
699
838
  };
700
839
 
701
- const Wrapper$c = styled.div `
840
+ const Wrapper$b = styled.div `
702
841
  border-radius: 4px;
703
842
  height: 40px;
704
843
  background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
@@ -719,7 +858,7 @@ const Wrapper$c = styled.div `
719
858
  border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
720
859
  }
721
860
  `;
722
- Wrapper$c.defaultProps = { theme: EditableTheme };
861
+ Wrapper$b.defaultProps = { theme: EditableTheme };
723
862
  const Trigger$1 = styled.select `
724
863
  appearance: none;
725
864
  box-shadow: none;
@@ -747,7 +886,7 @@ const IconWrapper$2 = styled(Icon) `
747
886
  `;
748
887
  const Select = (_a) => {
749
888
  var { options, optionGroups, placeholder, readOnly, invalid, value, onChange, style } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "value", "onChange", "style"]);
750
- return (React.createElement(Wrapper$c, { "$invalid": invalid, "$readOnly": readOnly, "$style": style },
889
+ return (React.createElement(Wrapper$b, { "$invalid": invalid, "$readOnly": readOnly, "$style": style },
751
890
  React.createElement(Trigger$1, Object.assign({ disabled: readOnly, onChange: onChange, placeholder: placeholder, value: value }, accessibleProps),
752
891
  placeholder ? (React.createElement("option", { disabled: true, value: '' }, placeholder)) : null,
753
892
  optionGroups &&
@@ -920,7 +1059,7 @@ const Drawer = (_a) => {
920
1059
  scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
921
1060
  };
922
1061
 
923
- const Wrapper$b = styled.div `
1062
+ const Wrapper$a = styled.div `
924
1063
  display: inline-block;
925
1064
  position: relative;
926
1065
  height: 16px;
@@ -961,16 +1100,16 @@ const positions = {
961
1100
  transform: 'translateY(-50%)',
962
1101
  },
963
1102
  };
964
- const Content$3 = 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])));
965
- Content$3.defaultProps = { theme: EditableTheme };
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 };
966
1105
  const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
967
1106
  const [show_content, toggleContent] = useState(false);
968
- return (React.createElement(Wrapper$b, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
1107
+ return (React.createElement(Wrapper$a, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
969
1108
  trigger || React.createElement(StyledIcon$4, { path: mdiInformationOutline }),
970
- show_content ? (React.createElement(Content$3, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
1109
+ show_content ? (React.createElement(Content$2, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
971
1110
  };
972
1111
 
973
- const Wrapper$a = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.style)));
1112
+ const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.style)));
974
1113
  const LabelRow = styled.div `
975
1114
  display: flex;
976
1115
  align-items: center;
@@ -978,7 +1117,7 @@ const LabelRow = styled.div `
978
1117
  margin: 0 0 4px 0;
979
1118
  box-sizing: border-box;
980
1119
  `;
981
- const Label$3 = styled.label `
1120
+ const Label$2 = styled.label `
982
1121
  font-size: ${FontSizes.DEFAULT};
983
1122
  font-weight: 500;
984
1123
  line-height: 1em;
@@ -1020,9 +1159,9 @@ const Validation = styled.div `
1020
1159
  `;
1021
1160
  const Field = (_a) => {
1022
1161
  var { action, children, validationText, label, description, required, htmlFor, style, tooltip } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip"]);
1023
- return (React.createElement(Wrapper$a, Object.assign({ style: style }, accessibleProps),
1162
+ return (React.createElement(Wrapper$9, Object.assign({ style: style }, accessibleProps),
1024
1163
  React.createElement(LabelRow, null,
1025
- React.createElement(Label$3, { htmlFor: htmlFor },
1164
+ React.createElement(Label$2, { htmlFor: htmlFor },
1026
1165
  label,
1027
1166
  required ? React.createElement(Required, null, "*") : null,
1028
1167
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null),
@@ -1032,7 +1171,7 @@ const Field = (_a) => {
1032
1171
  validationText ? React.createElement(Validation, null, validationText) : null));
1033
1172
  };
1034
1173
 
1035
- const Wrapper$9 = styled.fieldset `
1174
+ const Wrapper$8 = styled.fieldset `
1036
1175
  margin-inline-start: 0px;
1037
1176
  margin-inline-end: 0px;
1038
1177
  padding-block-start: 0px;
@@ -1045,7 +1184,7 @@ const Wrapper$9 = styled.fieldset `
1045
1184
  border-color: transparent;
1046
1185
  border-image: none;
1047
1186
  `;
1048
- const Label$2 = styled.legend `
1187
+ const Label$1 = styled.legend `
1049
1188
  padding-inline-start: 0px;
1050
1189
  padding-inline-end: 0px;
1051
1190
 
@@ -1056,15 +1195,15 @@ const Label$2 = styled.legend `
1056
1195
  line-height: 22px;
1057
1196
  margin-bottom: 6px;
1058
1197
  `;
1059
- const Content$2 = styled.div `
1198
+ const Content$1 = styled.div `
1060
1199
  padding: 20px;
1061
1200
  border-radius: 8px;
1062
1201
  background: #fcfcfc;
1063
1202
  `;
1064
1203
  const FieldGroup = ({ children, label }) => {
1065
- return (React.createElement(Wrapper$9, null,
1066
- React.createElement(Label$2, null, label),
1067
- React.createElement(Content$2, null, children)));
1204
+ return (React.createElement(Wrapper$8, null,
1205
+ React.createElement(Label$1, null, label),
1206
+ React.createElement(Content$1, null, children)));
1068
1207
  };
1069
1208
 
1070
1209
  const Dropzone = styled.div `
@@ -1100,7 +1239,7 @@ const ClickZone = styled.div `
1100
1239
  align-items: center;
1101
1240
  gap: 16px;
1102
1241
  `;
1103
- const Content$1 = styled.div `
1242
+ const Content = styled.div `
1104
1243
  display: flex;
1105
1244
  flex-direction: column;
1106
1245
  align-items: center;
@@ -1123,7 +1262,7 @@ const File = styled.div `
1123
1262
  border: 1px solid #cccccc;
1124
1263
  background: #ffffff;
1125
1264
  `;
1126
- const Remove$1 = styled(Icon) `
1265
+ const Remove = styled(Icon) `
1127
1266
  width: 24px;
1128
1267
  height: 24px;
1129
1268
  cursor: pointer;
@@ -1233,12 +1372,12 @@ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, mes
1233
1372
  files.length ? (React.createElement(Files, null, files.map(file => {
1234
1373
  return (React.createElement(File, { key: file.name },
1235
1374
  React.createElement(Copy, { type: 'bold' }, file.name),
1236
- React.createElement(Remove$1, { onClick: handleRemove.bind(null, file), path: mdiMinusCircle })));
1375
+ React.createElement(Remove, { onClick: handleRemove.bind(null, file), path: mdiMinusCircle })));
1237
1376
  }))) : null,
1238
1377
  allowMoreFiles ? (React.createElement(ClickZone, { onClick: triggerFileExplorer },
1239
1378
  files.length ? null : (React.createElement(IconWrapper$1, { "$dragging": dragging },
1240
1379
  React.createElement(StyledIcon$3, { path: mdiFolderPlusOutline }))),
1241
- React.createElement(Content$1, null,
1380
+ React.createElement(Content, null,
1242
1381
  React.createElement(Copy, { align: 'center', type: 'bold' }, "Drag & drop files here or click to select files"),
1243
1382
  message ? (React.createElement(Copy, { align: 'center', color: 'GRAY' }, message)) : null))) : null)));
1244
1383
  };
@@ -1503,7 +1642,7 @@ const Input$1 = (_a) => {
1503
1642
  }))) : null));
1504
1643
  };
1505
1644
 
1506
- const Wrapper$8 = styled.a `
1645
+ const Wrapper$7 = styled.a `
1507
1646
  color: ${props => props.theme.PRIMARY_COLOR.Hex};
1508
1647
  font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1509
1648
  line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
@@ -1517,10 +1656,10 @@ const Wrapper$8 = styled.a `
1517
1656
  box-sizing: border-box;
1518
1657
  cursor: pointer;
1519
1658
  `;
1520
- Wrapper$8.defaultProps = { theme: EditableTheme };
1659
+ Wrapper$7.defaultProps = { theme: EditableTheme };
1521
1660
  const Link = (_a) => {
1522
1661
  var { children, onClick, small } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small"]);
1523
- return (React.createElement(Wrapper$8, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
1662
+ return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
1524
1663
  };
1525
1664
 
1526
1665
  const dash = keyframes `
@@ -1607,7 +1746,7 @@ const ProgressBar = ({ steps }) => {
1607
1746
  })));
1608
1747
  };
1609
1748
 
1610
- const Wrapper$7 = styled.div `
1749
+ const Wrapper$6 = styled.div `
1611
1750
  position: fixed;
1612
1751
  top: 0;
1613
1752
  right: 0;
@@ -1687,7 +1826,7 @@ const Modal = (_a) => {
1687
1826
  document.onkeydown = null;
1688
1827
  };
1689
1828
  }, []);
1690
- return (React.createElement(Wrapper$7, null,
1829
+ return (React.createElement(Wrapper$6, null,
1691
1830
  React.createElement(Container$1, Object.assign({ "$fullscreen": fullscreen, "$maxWidth": maxWidth, open: true }, accessibleProps),
1692
1831
  React.createElement(Header$1, null,
1693
1832
  title ? React.createElement(Heading, { type: 'secondary' }, title) : null,
@@ -1708,7 +1847,7 @@ const Modal = (_a) => {
1708
1847
  primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
1709
1848
  };
1710
1849
 
1711
- const Wrapper$6 = styled.div `
1850
+ const Wrapper$5 = styled.div `
1712
1851
  position: relative;
1713
1852
  width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1714
1853
  `;
@@ -1780,7 +1919,7 @@ const MultiSelect = (_a) => {
1780
1919
  var { readOnly, displayCount = 3, invalid, onChange, options = [], selected = [], showSelectAll, style } = _a, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll", "style"]);
1781
1920
  const [showOptions, setShowOptions] = useState(false);
1782
1921
  const selected_options = options.filter(o => selected.includes(o.value));
1783
- return (React.createElement(Wrapper$6, { "$style": style },
1922
+ return (React.createElement(Wrapper$5, { "$style": style },
1784
1923
  React.createElement(Trigger, Object.assign({ "$invalid": invalid, "$readOnly": readOnly, "$showOptions": showOptions, onClick: readOnly ? undefined : setShowOptions.bind(null, !showOptions) }, accessibleProps),
1785
1924
  React.createElement(Value, null, selected.length > 0 && selected.length <= displayCount
1786
1925
  ? selected_options.map(o => o.label || o.value).join(', ')
@@ -1791,40 +1930,6 @@ const MultiSelect = (_a) => {
1791
1930
  showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
1792
1931
  };
1793
1932
 
1794
- const Wrapper$5 = styled.div `
1795
- display: inline-block;
1796
- border-radius: 4px;
1797
- padding: 4px 6px;
1798
- background: ${props => Colors[props.$color].Hex};
1799
- color: #ffffff;
1800
- box-sizing: border-box;
1801
- cursor: ${props => (props.$removable ? 'pointer' : 'default')};
1802
- `;
1803
- const Content = styled.div `
1804
- display: flex;
1805
- align-items: center;
1806
- `;
1807
- const Label$1 = styled.div `
1808
- color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
1809
- font-size: ${FontSizes.SMALL};
1810
- font-weight: 500;
1811
- font-family: ${FontStyles.DEFAULT};
1812
- line-height: 1.2em;
1813
- `;
1814
- const Remove = styled.div `
1815
- margin-left: 10px;
1816
- display: flex;
1817
- align-items: center;
1818
- `;
1819
- const Tag = (_a) => {
1820
- var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
1821
- return (React.createElement(Wrapper$5, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
1822
- React.createElement(Content, null,
1823
- React.createElement(Label$1, { "$color": color }, children),
1824
- removable ? (React.createElement(Remove, null,
1825
- React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: mdiClose, size: '15px' }))) : null)));
1826
- };
1827
-
1828
1933
  const Wrapper$4 = styled.div `
1829
1934
  display: flex;
1830
1935
  padding: 16px 30px;
@@ -2160,5 +2265,5 @@ const ZeroState = (_a) => {
2160
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 }))));
2161
2266
  };
2162
2267
 
2163
- export { Accordion, ActionDialog, Alert, AppHeader, 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 };
2164
2269
  //# sourceMappingURL=index.js.map