impact-ui 0.1.41 → 0.1.45

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.
Files changed (2) hide show
  1. package/dist/index.js +1941 -955
  2. package/package.json +7 -6
package/dist/index.js CHANGED
@@ -128,6 +128,8 @@
128
128
 
129
129
  var ChevronImage = "data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201.5L5%205.5L9%201.5%22%20stroke%3D%22%23394960%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E";
130
130
 
131
+ var RightChevronImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAALCAYAAACzkJeoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADFSURBVHgBbY89DoJAEIXfItHWAxiD0RgTm7Xzp8EOrbyBS2frDfAG3EBaSxu1QzsTCug1sdAD0GIkOGsgQXGKfZv5Znfegz4T1b4hNPwpJYpgMwZ/OBW8AJMEFmlI6o8Mc56Hpcc1CGstvlUU6AmwqLc57pfg9IHykAPNLt/EMTrIDbDfPYOJuJFotGasZk3pmsytU7A6H5yjmoFnBJeu0vGSgC37TGakKG76wiTgZL+pBCwwVF9Az9s7QSFnpYyGt/sGst55EkiF00BPfQAAAABJRU5ErkJggg==";
132
+
131
133
  var DisabledChevron = "data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201.5L5%205.5L9%201.5%22%20stroke%3D%22%23C7C7C7%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E";
132
134
 
133
135
  var SearchIcon = "data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.6875%207.75H8.19375L8.01875%207.58125C8.63125%206.86875%209%205.94375%209%204.9375C9%202.69375%207.18125%200.875%204.9375%200.875C2.69375%200.875%200.875%202.69375%200.875%204.9375C0.875%207.18125%202.69375%209%204.9375%209C5.94375%209%206.86875%208.63125%207.58125%208.01875L7.75%208.19375V8.6875L10.875%2011.8062L11.8062%2010.875L8.6875%207.75ZM4.9375%207.75C3.38125%207.75%202.125%206.49375%202.125%204.9375C2.125%203.38125%203.38125%202.125%204.9375%202.125C6.49375%202.125%207.75%203.38125%207.75%204.9375C7.75%206.49375%206.49375%207.75%204.9375%207.75Z%22%20fill%3D%22%23AFAFAF%22%2F%3E%3C%2Fsvg%3E";
@@ -191,6 +193,8 @@
191
193
  var FocusBackgroundColor = "#E5EDF7";
192
194
  var PanelFooterBg = "#EEF0F7";
193
195
  var AGInputColor = "#c4c4c4";
196
+ var AgCellRendererBackground = "#F3F9FF";
197
+ var SelectOptionFocusBackground = "#eef5fd";
194
198
 
195
199
  var NORMAL_BUTTON_HEIGHT = "37px";
196
200
  var SMALL_BUTTON_HEIGHT = "26px";
@@ -1273,7 +1277,7 @@
1273
1277
 
1274
1278
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1275
1279
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1276
- var Button = function Button(_ref) {
1280
+ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1277
1281
  var children = _ref.children,
1278
1282
  variant = _ref.variant,
1279
1283
  Icon = _ref.icon,
@@ -1284,16 +1288,21 @@
1284
1288
  variant: variant,
1285
1289
  size: size,
1286
1290
  icon: Icon,
1287
- isChildren: children
1291
+ isChildren: children,
1292
+ ref: ref
1288
1293
  }, props), {}, {
1289
1294
  children: [Icon && /*#__PURE__*/jsxRuntime.jsx(StyledIconContainer, {
1290
1295
  size: size,
1291
- children: /*#__PURE__*/jsxRuntime.jsx(Icon, {})
1296
+ className: "button-icon-container",
1297
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
1298
+ className: "button-icon"
1299
+ })
1292
1300
  }), children && /*#__PURE__*/jsxRuntime.jsx(StyledIconTextContainer, {
1301
+ className: "button-children-container",
1293
1302
  children: children
1294
1303
  })]
1295
1304
  }));
1296
- };
1305
+ });
1297
1306
 
1298
1307
  function _templateObject22() {
1299
1308
  var data = _taggedTemplateLiteral([""]);
@@ -1490,7 +1499,7 @@
1490
1499
 
1491
1500
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1492
1501
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1493
- var Alerts = function Alerts(_ref) {
1502
+ var Alerts = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1494
1503
  var variant = _ref.variant,
1495
1504
  message = _ref.message,
1496
1505
  description = _ref.description,
@@ -1498,34 +1507,46 @@
1498
1507
  onClose = _ref.onClose,
1499
1508
  onAction = _ref.onAction,
1500
1509
  actionName = _ref.actionName,
1501
- props = _objectWithoutProperties(_ref, ["variant", "message", "description", "url", "onClose", "onAction", "actionName"]);
1502
- return /*#__PURE__*/jsxRuntime.jsx(StyledAlertContainer, {
1503
- children: /*#__PURE__*/jsxRuntime.jsx(StyledNotificationContainer, {
1504
- children: /*#__PURE__*/jsxRuntime.jsxs(StyledNotification, _objectSpread$1(_objectSpread$1({
1505
- variant: variant
1506
- }, props), {}, {
1507
- children: [/*#__PURE__*/jsxRuntime.jsxs(StyledIconMessageContainer, {
1508
- children: [/*#__PURE__*/jsxRuntime.jsxs(StyledIconMessageTopContainer, {
1509
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledAlertIcon, {}), /*#__PURE__*/jsxRuntime.jsx(StyledAlertMessage, {
1510
- children: message
1511
- })]
1512
- }), /*#__PURE__*/jsxRuntime.jsx(StyledDescriptionMainContainer, {
1513
- children: /*#__PURE__*/jsxRuntime.jsx(StyledAlertDescription, {
1514
- children: description
1515
- })
1516
- })]
1517
- }), /*#__PURE__*/jsxRuntime.jsxs(StyledActionMainContainer, {
1518
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledActionUrl, {
1519
- onClick: onAction,
1520
- children: actionName
1521
- }), /*#__PURE__*/jsxRuntime.jsx(StyledInfoCloseIcon, {
1522
- onClick: onClose
1510
+ className = _ref.className,
1511
+ props = _objectWithoutProperties(_ref, ["variant", "message", "description", "url", "onClose", "onAction", "actionName", "className"]);
1512
+ return /*#__PURE__*/jsxRuntime.jsx(StyledNotificationContainer, _objectSpread$1(_objectSpread$1({
1513
+ ref: ref,
1514
+ className: "".concat(className ? className : "", " alert-container")
1515
+ }, props), {}, {
1516
+ children: /*#__PURE__*/jsxRuntime.jsxs(StyledNotification, {
1517
+ variant: variant,
1518
+ className: "alert",
1519
+ children: [/*#__PURE__*/jsxRuntime.jsxs(StyledIconMessageContainer, {
1520
+ className: "alert-icon-container",
1521
+ children: [/*#__PURE__*/jsxRuntime.jsxs(StyledIconMessageTopContainer, {
1522
+ className: "alert-message-container",
1523
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledAlertIcon, {
1524
+ className: "alert-icon"
1525
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledAlertMessage, {
1526
+ className: "alert-message",
1527
+ children: message
1523
1528
  })]
1529
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledDescriptionMainContainer, {
1530
+ className: "alert-description-container",
1531
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledAlertDescription, {
1532
+ className: "alert-description-container",
1533
+ children: description
1534
+ })
1524
1535
  })]
1525
- }))
1536
+ }), /*#__PURE__*/jsxRuntime.jsxs(StyledActionMainContainer, {
1537
+ className: "alert-action-container",
1538
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledActionUrl, {
1539
+ onClick: onAction,
1540
+ className: "alert-action-button",
1541
+ children: actionName
1542
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledInfoCloseIcon, {
1543
+ onClick: onClose,
1544
+ className: "alert-close-icon"
1545
+ })]
1546
+ })]
1526
1547
  })
1527
- });
1528
- };
1548
+ }));
1549
+ });
1529
1550
 
1530
1551
  function _templateObject11$2() {
1531
1552
  var data = _taggedTemplateLiteral(["\n width: 24px;\n height: 24px;\n "]);
@@ -1633,7 +1654,7 @@
1633
1654
 
1634
1655
  function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1635
1656
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1636
- var Avatar = function Avatar(_ref) {
1657
+ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1637
1658
  var image = _ref.image,
1638
1659
  _ref$size = _ref.size,
1639
1660
  size = _ref$size === void 0 ? "big" : _ref$size,
@@ -1641,19 +1662,22 @@
1641
1662
  props = _objectWithoutProperties(_ref, ["image", "size", "initials"]);
1642
1663
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1643
1664
  children: image ? /*#__PURE__*/jsxRuntime.jsx(StyledAvatar, _objectSpread$2(_objectSpread$2({
1644
- size: size
1665
+ size: size,
1666
+ ref: ref,
1667
+ className: ""
1645
1668
  }, props), {}, {
1646
1669
  children: /*#__PURE__*/jsxRuntime.jsx(StyledAvatarImage, {
1647
1670
  src: image,
1648
1671
  size: size
1649
1672
  })
1650
1673
  })) : /*#__PURE__*/jsxRuntime.jsx(StyledAvatar, _objectSpread$2(_objectSpread$2({
1651
- size: size
1674
+ size: size,
1675
+ ref: ref
1652
1676
  }, props), {}, {
1653
1677
  children: initials
1654
1678
  }))
1655
1679
  });
1656
- };
1680
+ });
1657
1681
 
1658
1682
  function _templateObject3$3() {
1659
1683
  var data = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: 400;\n cursor: default;\n "]);
@@ -1681,9 +1705,12 @@
1681
1705
  return props.active && styled.css(_templateObject3$3(), CheckBoxBorder);
1682
1706
  });
1683
1707
 
1684
- var Breadcrumbs = function Breadcrumbs(_ref) {
1685
- var paths = _ref.paths;
1708
+ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1709
+ var paths = _ref.paths,
1710
+ className = _ref.className;
1686
1711
  return /*#__PURE__*/jsxRuntime.jsx(StyledBreadcrumbsContainer, {
1712
+ className: "".concat(className ? className : "", " breadcrumbs-container"),
1713
+ ref: ref,
1687
1714
  children: paths.map(function (_ref2, index) {
1688
1715
  var to = _ref2.to,
1689
1716
  label = _ref2.label,
@@ -1692,11 +1719,12 @@
1692
1719
  to: to,
1693
1720
  active: index === paths.length - 1 ? 1 : undefined,
1694
1721
  onClick: onClick ? onClick : undefined,
1722
+ className: "breadcrumb-link breadcrumb-link-".concat(index),
1695
1723
  children: label
1696
1724
  }, index);
1697
1725
  })
1698
1726
  });
1699
- };
1727
+ });
1700
1728
 
1701
1729
  function _templateObject5$3() {
1702
1730
  var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n position: relative;\n\n &:hover ", " {\n display: block;\n }\n"]);
@@ -1743,16 +1771,22 @@
1743
1771
 
1744
1772
  function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1745
1773
  function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1746
- var Checkbox = function Checkbox(_ref) {
1774
+ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1747
1775
  var label = _ref.label,
1748
1776
  props = _objectWithoutProperties(_ref, ["label"]);
1777
+ console.log(ref);
1749
1778
  return /*#__PURE__*/jsxRuntime.jsxs(StyledCheckBoxContainer, {
1750
- children: [!props.disabled && /*#__PURE__*/jsxRuntime.jsx(StyledHoverBg, {}), /*#__PURE__*/jsxRuntime.jsx(StyledCheckbox, _objectSpread$3({}, props)), /*#__PURE__*/jsxRuntime.jsx(StyledCheckboxLabel, {
1779
+ className: "checkbox-container",
1780
+ ref: ref === null || ref === void 0 ? void 0 : ref.containerRef,
1781
+ children: [!props.disabled && /*#__PURE__*/jsxRuntime.jsx(StyledHoverBg, {}), /*#__PURE__*/jsxRuntime.jsx(StyledCheckbox, _objectSpread$3({
1782
+ ref: ref === null || ref === void 0 ? void 0 : ref.checkboxRef
1783
+ }, props)), /*#__PURE__*/jsxRuntime.jsx(StyledCheckboxLabel, {
1751
1784
  htmlFor: props.id,
1785
+ className: "checkbox-label",
1752
1786
  children: label
1753
1787
  })]
1754
1788
  });
1755
- };
1789
+ });
1756
1790
 
1757
1791
  function _templateObject10$3() {
1758
1792
  var data = _taggedTemplateLiteral([""]);
@@ -1783,7 +1817,7 @@
1783
1817
  return data;
1784
1818
  }
1785
1819
  function _templateObject6$3() {
1786
- var data = _taggedTemplateLiteral(["\n &:focus {\n border: 1px solid ", ";\n }\n "]);
1820
+ var data = _taggedTemplateLiteral(["\n &:focus {\n border: 1px solid\n ", ";\n }\n "]);
1787
1821
  _templateObject6$3 = function _templateObject6() {
1788
1822
  return data;
1789
1823
  };
@@ -1804,7 +1838,7 @@
1804
1838
  return data;
1805
1839
  }
1806
1840
  function _templateObject3$5() {
1807
- var data = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: 4px;\n padding: 0px 16px;\n box-sizing: border-box;\n height: 37px;\n font-size: 14px;\n color: ", ";\n\n //Low Resolution CSS starts\n\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: 28px;\n font-size: 12px;\n }\n\n &:focus {\n border: 1px solid ", ";\n box-shadow: 0 0 0 3px ", ";\n }\n &:hover {\n border: 1px solid ", ";\n }\n &:disabled {\n background: ", ";\n border: none;\n cursor: no-drop;\n pointer-events: none;\n }\n\n ", "\n"]);
1841
+ var data = _taggedTemplateLiteral(["\n border: 1px solid\n ", ";\n border-radius: 4px;\n padding: 0px 16px;\n box-sizing: border-box;\n height: 37px;\n font-size: 14px;\n color: ", ";\n background-color: ", ";\n\n //Low Resolution CSS starts\n\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: 28px;\n font-size: 12px;\n }\n\n &:focus {\n border: 1px solid\n ", ";\n box-shadow: ", ";\n background-color: ", ";\n }\n &:hover {\n border: 1px solid\n ", ";\n }\n &:disabled {\n background: ", ";\n border: none;\n cursor: no-drop;\n pointer-events: none;\n }\n\n ", "\n"]);
1808
1842
  _templateObject3$5 = function _templateObject3() {
1809
1843
  return data;
1810
1844
  };
@@ -1826,14 +1860,26 @@
1826
1860
  }
1827
1861
  var StyledInputBoxContainer = styled__default.div(_templateObject$5());
1828
1862
  var StyledInputLabelContainer = styled__default.label(_templateObject2$5(), LabelColor);
1829
- var StyledInputBox = styled__default.input(_templateObject3$5(), DefaultColorButton, BodyFontColor, PrimaryBlueColor, FocusBackgroundColor, PrimaryBlueColor, DisabledTextareaBg, function (props) {
1863
+ var StyledInputBox = styled__default.input(_templateObject3$5(), function (props) {
1864
+ return props.isAgGridCellRenderer ? "transparent" : DefaultColorButton;
1865
+ }, BodyFontColor, function (props) {
1866
+ return props.isAgGridCellRenderer ? AgCellRendererBackground : WhiteColor;
1867
+ }, function (props) {
1868
+ return props.isAgGridCellRenderer ? "transparent" : PrimaryBlueColor;
1869
+ }, function (props) {
1870
+ return props.isAgGridCellRenderer ? "unset" : "0 0 0 3px FocusBackgroundColor";
1871
+ }, WhiteColor, function (props) {
1872
+ return props.isAgGridCellRenderer ? "transparent" : PrimaryBlueColor;
1873
+ }, DisabledTextareaBg, function (props) {
1830
1874
  switch (props.status) {
1831
1875
  case "success":
1832
1876
  return styled.css(_templateObject4$4(), AlertGreenSuccessStroke, AlertGreenSuccessStroke);
1833
1877
  case "error":
1834
1878
  return styled.css(_templateObject5$4(), AlertRedErrorStroke, AlertRedErrorStroke, AlertRedErrorStroke);
1835
1879
  default:
1836
- return styled.css(_templateObject6$3(), AlertBlueInfoStroke);
1880
+ return styled.css(_templateObject6$3(), function (props) {
1881
+ return props.isAgGridCellRenderer ? "transparent" : AlertBlueInfoStroke;
1882
+ });
1837
1883
  }
1838
1884
  });
1839
1885
  var StyledHelperText = styled__default.span(_templateObject7$3(), LabelColor, function (props) {
@@ -1853,16 +1899,22 @@
1853
1899
  var label = _ref.label,
1854
1900
  status = _ref.status,
1855
1901
  helperText = _ref.helperText,
1856
- props = _objectWithoutProperties(_ref, ["label", "status", "helperText"]);
1902
+ isAgGridCellRenderer = _ref.isAgGridCellRenderer,
1903
+ props = _objectWithoutProperties(_ref, ["label", "status", "helperText", "isAgGridCellRenderer"]);
1857
1904
  return /*#__PURE__*/jsxRuntime.jsxs(StyledInputBoxContainer, {
1905
+ className: "input-container",
1906
+ ref: ref === null || ref === void 0 ? void 0 : ref.containerRef,
1858
1907
  children: [label && /*#__PURE__*/jsxRuntime.jsx(StyledInputLabelContainer, {
1908
+ className: "input-label",
1859
1909
  children: label
1860
1910
  }), /*#__PURE__*/jsxRuntime.jsx(StyledInputBox, _objectSpread$4({
1861
- ref: ref ? ref : null,
1862
- status: status
1863
- }, props)), helperText && /*#__PURE__*/jsxRuntime.jsxs(StyledHelperText, {
1911
+ ref: ref === null || ref === void 0 ? void 0 : ref.inputRef,
1912
+ status: status,
1913
+ isAgGridCellRenderer: isAgGridCellRenderer
1914
+ }, props)), helperText && /*#__PURE__*/jsxRuntime.jsx(StyledHelperText, {
1864
1915
  status: status,
1865
- children: [" ", helperText]
1916
+ className: "input-helper-text",
1917
+ children: helperText
1866
1918
  })]
1867
1919
  });
1868
1920
  });
@@ -1910,18 +1962,23 @@
1910
1962
 
1911
1963
  function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1912
1964
  function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1913
- var Radio = function Radio(_ref) {
1965
+ var Radio = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1914
1966
  var label = _ref.label,
1915
1967
  props = _objectWithoutProperties(_ref, ["label"]);
1916
1968
  return /*#__PURE__*/jsxRuntime.jsxs(StyledRadioButtonContainer, {
1969
+ className: "radio-container",
1970
+ ref: ref === null || ref === void 0 ? void 0 : ref.containerRef,
1917
1971
  children: [!props.disabled && /*#__PURE__*/jsxRuntime.jsx(StyledHoverBg$1, {}), /*#__PURE__*/jsxRuntime.jsx(StyledRadioButton, _objectSpread$5({
1918
- type: "radio"
1972
+ type: "radio",
1973
+ className: "radio",
1974
+ ref: ref === null || ref === void 0 ? void 0 : ref.radioRef
1919
1975
  }, props)), /*#__PURE__*/jsxRuntime.jsx(StyledRadioButtonLabel, {
1976
+ className: "radio-label",
1920
1977
  htmlFor: props.id,
1921
1978
  children: label
1922
1979
  })]
1923
1980
  });
1924
- };
1981
+ });
1925
1982
 
1926
1983
  var arrayWithHoles = createCommonjsModule(function (module) {
1927
1984
  function _arrayWithHoles(arr) {
@@ -2129,10 +2186,13 @@
2129
2186
  value = _ref.value,
2130
2187
  onChange = _ref.onChange,
2131
2188
  vertical = _ref.vertical,
2132
- children = _ref.children;
2189
+ children = _ref.children,
2190
+ className = _ref.className;
2133
2191
  return /*#__PURE__*/jsxRuntime.jsxs(StyledTabMainContainer, {
2134
2192
  vertical: vertical,
2193
+ className: "".concat(className, " tab-main-container"),
2135
2194
  children: [/*#__PURE__*/jsxRuntime.jsxs(StyledTabContainer, {
2195
+ className: "tab-container",
2136
2196
  children: [tabs.map(function (tab, index) {
2137
2197
  return /*#__PURE__*/jsxRuntime.jsx(StyledTabList, {
2138
2198
  active: value === tab.value,
@@ -2141,12 +2201,15 @@
2141
2201
  },
2142
2202
  vertical: vertical,
2143
2203
  disabled: tab.disabled,
2204
+ className: "tab-item",
2144
2205
  children: tab.label
2145
2206
  }, index);
2146
2207
  }), children]
2147
2208
  }), /*#__PURE__*/jsxRuntime.jsx(StyledTabContentContainer, {
2209
+ className: "tab-content-container",
2148
2210
  children: tabs.map(function (tab) {
2149
2211
  return /*#__PURE__*/jsxRuntime.jsx(StyledTabPanelContainer, {
2212
+ className: "tab-panel-container",
2150
2213
  active: tab.value === value,
2151
2214
  children: tab.element
2152
2215
  });
@@ -2203,14 +2266,14 @@
2203
2266
  return data;
2204
2267
  }
2205
2268
  function _templateObject3$8() {
2206
- var data = _taggedTemplateLiteral(["\n width: max-content;\n"]);
2269
+ var data = _taggedTemplateLiteral([""]);
2207
2270
  _templateObject3$8 = function _templateObject3() {
2208
2271
  return data;
2209
2272
  };
2210
2273
  return data;
2211
2274
  }
2212
2275
  function _templateObject2$8() {
2213
- var data = _taggedTemplateLiteral(["\n min-height: 70px;\n padding: 12px 16px;\n margin-top: 4px;\n resize: none;\n min-width: 800px;\n box-sizing: border-box;\n font-size: 14px;\n line-height: 21px;\n border: 1px solid ", ";\n border-radius: 4px;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n padding: 10px 12px;\n font-size: 12px;\n }\n &:hover {\n border: 1px solid ", ";\n }\n &:focus {\n box-shadow: 0 0 0 3px ", ";\n border: 1px solid ", ";\n }\n &:disabled {\n background: ", ";\n border: 1px solid ", ";\n }\n"]);
2276
+ var data = _taggedTemplateLiteral(["\n min-height: 70px;\n padding: 12px 16px;\n margin-top: 4px;\n resize: none;\n width: 100%;\n box-sizing: border-box;\n font-size: 14px;\n line-height: 21px;\n border: 1px solid ", ";\n border-radius: 4px;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n padding: 10px 12px;\n font-size: 12px;\n }\n &:hover {\n border: 1px solid ", ";\n }\n &:focus {\n box-shadow: 0 0 0 3px ", ";\n border: 1px solid ", ";\n }\n &:disabled {\n background: ", ";\n border: 1px solid ", ";\n }\n"]);
2214
2277
  _templateObject2$8 = function _templateObject2() {
2215
2278
  return data;
2216
2279
  };
@@ -2230,25 +2293,30 @@
2230
2293
 
2231
2294
  function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2232
2295
  function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2233
- var Textarea = function Textarea(_ref) {
2296
+ var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2234
2297
  var label = _ref.label,
2235
2298
  maxLength = _ref.maxLength,
2236
2299
  value = _ref.value,
2237
2300
  disabled = _ref.disabled,
2238
2301
  props = _objectWithoutProperties(_ref, ["label", "maxLength", "value", "disabled"]);
2239
2302
  return /*#__PURE__*/jsxRuntime.jsxs(StyledTextAreaContainer, {
2303
+ ref: ref === null || ref === void 0 ? void 0 : ref.containerRef,
2304
+ className: "textarea-container",
2240
2305
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledLabelText, {
2306
+ className: "textarea-label",
2241
2307
  children: label
2242
2308
  }), /*#__PURE__*/jsxRuntime.jsx(StyledTextArea, _objectSpread$7(_objectSpread$7({
2243
2309
  value: value
2244
2310
  }, props), {}, {
2245
- maxLength: maxLength,
2246
- disabled: disabled
2247
- })), !disabled && /*#__PURE__*/jsxRuntime.jsxs(StyledRemainingText, {
2311
+ maxLength: maxLength ? maxLength : undefined,
2312
+ disabled: disabled,
2313
+ ref: ref === null || ref === void 0 ? void 0 : ref.textareaRef
2314
+ })), !disabled && maxLength && /*#__PURE__*/jsxRuntime.jsxs(StyledRemainingText, {
2315
+ className: "textarea-remaining-characters-text",
2248
2316
  children: [maxLength - value.length, " characters left"]
2249
2317
  })]
2250
2318
  });
2251
- };
2319
+ });
2252
2320
 
2253
2321
  var arrayWithoutHoles = createCommonjsModule(function (module) {
2254
2322
  function _arrayWithoutHoles(arr) {
@@ -2290,43 +2358,122 @@
2290
2358
 
2291
2359
  var _toConsumableArray = unwrapExports(toConsumableArray);
2292
2360
 
2293
- function _templateObject18$1() {
2361
+ function _templateObject8$5() {
2362
+ var data = _taggedTemplateLiteral(["\n display: flex;\n gap: 12px;\n"]);
2363
+ _templateObject8$5 = function _templateObject8() {
2364
+ return data;
2365
+ };
2366
+ return data;
2367
+ }
2368
+ function _templateObject7$5() {
2369
+ var data = _taggedTemplateLiteral(["\n background: url(", ") no-repeat;\n pointer-events: none;\n "]);
2370
+ _templateObject7$5 = function _templateObject7() {
2371
+ return data;
2372
+ };
2373
+ return data;
2374
+ }
2375
+ function _templateObject6$5() {
2376
+ var data = _taggedTemplateLiteral(["\n background: url(", ") no-repeat;\n width: 10px;\n height: 10px;\n background-size: 10px;\n display: inline-block;\n margin-left: 8px;\n\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n background-size: 8px;\n }\n ", "\n"]);
2377
+ _templateObject6$5 = function _templateObject6() {
2378
+ return data;
2379
+ };
2380
+ return data;
2381
+ }
2382
+ function _templateObject5$7() {
2383
+ var data = _taggedTemplateLiteral(["\n font-size: 12px;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n font-size: 10px;\n }\n"]);
2384
+ _templateObject5$7 = function _templateObject5() {
2385
+ return data;
2386
+ };
2387
+ return data;
2388
+ }
2389
+ function _templateObject4$8() {
2390
+ var data = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", " !important;\n cursor: default !important;\n }\n "]);
2391
+ _templateObject4$8 = function _templateObject4() {
2392
+ return data;
2393
+ };
2394
+ return data;
2395
+ }
2396
+ function _templateObject3$9() {
2397
+ var data = _taggedTemplateLiteral(["\n height: 26px;\n padding: 0px 8px;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: 22px;\n }\n "]);
2398
+ _templateObject3$9 = function _templateObject3() {
2399
+ return data;
2400
+ };
2401
+ return data;
2402
+ }
2403
+ function _templateObject2$9() {
2404
+ var data = _taggedTemplateLiteral(["\n height: 22px;\n padding: 0px 4px;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: 18px;\n }\n "]);
2405
+ _templateObject2$9 = function _templateObject2() {
2406
+ return data;
2407
+ };
2408
+ return data;
2409
+ }
2410
+ function _templateObject$9() {
2411
+ var data = _taggedTemplateLiteral(["\n display: flex;\n background: ", ";\n border-radius: 4px;\n cursor: pointer;\n align-items: center;\n color: ", ";\n ", "\n\n ", "\n\n &:hover {\n background: ", ";\n }\n &:focus {\n background: ", ";\n }\n"]);
2412
+ _templateObject$9 = function _templateObject() {
2413
+ return data;
2414
+ };
2415
+ return data;
2416
+ }
2417
+ var StyledTagGroupMainContainer = styled__default.div(_templateObject$9(), AvatarBgColor, LabelColor, function (props) {
2418
+ switch (props.size) {
2419
+ case "small":
2420
+ return styled.css(_templateObject2$9());
2421
+ case "default":
2422
+ return styled.css(_templateObject3$9());
2423
+ }
2424
+ }, function (props) {
2425
+ return props.disabled && styled.css(_templateObject4$8(), DisabledTextareaBg, DisabledButtonFontColor, DisabledTextareaBg);
2426
+ }, TabHoverBackgroundColor, DisabledButtonFontColor);
2427
+ var StyledTagTextContainer = styled__default.span(_templateObject5$7());
2428
+ var StyledCloseIcon = styled__default.i(_templateObject6$5(), NotificationClose, function (props) {
2429
+ return props.disabled && styled.css(_templateObject7$5(), DisabledClose);
2430
+ });
2431
+ var StyledTagGroupOuterContainer = styled__default.div(_templateObject8$5());
2432
+
2433
+ function _templateObject19$1() {
2294
2434
  var data = _taggedTemplateLiteral(["\n height: 37px;\n padding: 8px 16px;\n box-sizing: border-box;\n\n &:hover {\n background: ", ";\n }\n"]);
2435
+ _templateObject19$1 = function _templateObject19() {
2436
+ return data;
2437
+ };
2438
+ return data;
2439
+ }
2440
+ function _templateObject18$1() {
2441
+ var data = _taggedTemplateLiteral(["\n background-color: transparent;\n border: none;\n padding: 4px 0;\n height: 26px;\n box-sizing: border-box;\n padding-left: 34px;\n color: ", ";\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n background-image: url(", ");\n background-repeat: no-repeat;\n background-size: 10px;\n background-position: 18px center;\n"]);
2295
2442
  _templateObject18$1 = function _templateObject18() {
2296
2443
  return data;
2297
2444
  };
2298
2445
  return data;
2299
2446
  }
2300
2447
  function _templateObject17$1() {
2301
- var data = _taggedTemplateLiteral(["\n background-color: transparent;\n border: none;\n padding: 4px 0;\n height: 26px;\n box-sizing: border-box;\n padding-left: 34px;\n color: ", ";\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n background-image: url(", ");\n background-repeat: no-repeat;\n background-size: 10px;\n background-position: 18px center;\n"]);
2448
+ var data = _taggedTemplateLiteral(["\n border: none;\n height: 37px;\n width: 100%;\n box-sizing: border-box;\n padding: 0px 16px;\n font-size: 14px;\n border-bottom: 1px solid ", ";\n font-family: \"Poppins\", sans-serif;\n background: url(", ") no-repeat;\n background-size: 12px;\n background-position: 16px center;\n padding-left: 34px;\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: 28px;\n }\n"]);
2302
2449
  _templateObject17$1 = function _templateObject17() {
2303
2450
  return data;
2304
2451
  };
2305
2452
  return data;
2306
2453
  }
2307
2454
  function _templateObject16$1() {
2308
- var data = _taggedTemplateLiteral(["\n border: none;\n height: 37px;\n width: 100%;\n box-sizing: border-box;\n padding: 0px 16px;\n font-size: 14px;\n border-bottom: 1px solid ", ";\n font-family: \"Poppins\", sans-serif;\n background: url(", ") no-repeat;\n background-size: 12px;\n background-position: 16px center;\n padding-left: 34px;\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: 28px;\n }\n"]);
2455
+ var data = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 12px;\n line-height: 18px;\n"]);
2309
2456
  _templateObject16$1 = function _templateObject16() {
2310
2457
  return data;
2311
2458
  };
2312
2459
  return data;
2313
2460
  }
2314
2461
  function _templateObject15$1() {
2315
- var data = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 12px;\n line-height: 18px;\n"]);
2462
+ var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 5px;\n "]);
2316
2463
  _templateObject15$1 = function _templateObject15() {
2317
2464
  return data;
2318
2465
  };
2319
2466
  return data;
2320
2467
  }
2321
2468
  function _templateObject14$2() {
2322
- var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 5px;\n "]);
2469
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
2323
2470
  _templateObject14$2 = function _templateObject14() {
2324
2471
  return data;
2325
2472
  };
2326
2473
  return data;
2327
2474
  }
2328
2475
  function _templateObject13$2() {
2329
- var data = _taggedTemplateLiteral(["\n ", "\n"]);
2476
+ var data = _taggedTemplateLiteral(["\n background-color: ", ";\n "]);
2330
2477
  _templateObject13$2 = function _templateObject13() {
2331
2478
  return data;
2332
2479
  };
@@ -2340,7 +2487,7 @@
2340
2487
  return data;
2341
2488
  }
2342
2489
  function _templateObject11$4() {
2343
- var data = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px solid ", ";\n font-size: 14px;\n box-sizing: border-box;\n padding: 8px 16px;\n height: 37px;\n border-radius: 4px;\n color: ", ";\n text-align: left;\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n min-width: 232px;\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n font-size: 12px;\n height: 28px;\n }\n ", "\n &:hover {\n border: 1px solid ", ";\n }\n &:focus {\n box-shadow: 0 0 0 3px ", ";\n border: 1px solid ", ";\n }\n\n &:disabled {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n cursor: default;\n ", " {\n background: url(", ") no-repeat;\n background-position: center;\n background-size: 10px;\n }\n }\n"]);
2490
+ var data = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px solid\n ", ";\n font-size: 14px;\n box-sizing: border-box;\n padding: 8px 16px;\n height: 37px;\n border-radius: 4px;\n color: ", ";\n text-align: left;\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n min-width: 232px;\n width: 100%;\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n font-size: 12px;\n height: 28px;\n }\n ", "\n ", "\n &:hover {\n border: 1px solid\n ", ";\n }\n &:focus {\n box-shadow: ", ";\n border: 1px solid\n ", ";\n }\n\n &:disabled {\n background: ", ";\n border: 1px solid\n ", ";\n color: ", ";\n cursor: default;\n ", " {\n background: url(", ") no-repeat;\n background-position: center;\n background-size: 10px;\n }\n }\n"]);
2344
2491
  _templateObject11$4 = function _templateObject11() {
2345
2492
  return data;
2346
2493
  };
@@ -2360,84 +2507,100 @@
2360
2507
  };
2361
2508
  return data;
2362
2509
  }
2363
- function _templateObject8$5() {
2510
+ function _templateObject8$6() {
2364
2511
  var data = _taggedTemplateLiteral([""]);
2365
- _templateObject8$5 = function _templateObject8() {
2512
+ _templateObject8$6 = function _templateObject8() {
2366
2513
  return data;
2367
2514
  };
2368
2515
  return data;
2369
2516
  }
2370
- function _templateObject7$5() {
2517
+ function _templateObject7$6() {
2371
2518
  var data = _taggedTemplateLiteral(["\n top: ", "px;\n left: ", "px;\n "]);
2372
- _templateObject7$5 = function _templateObject7() {
2519
+ _templateObject7$6 = function _templateObject7() {
2373
2520
  return data;
2374
2521
  };
2375
2522
  return data;
2376
2523
  }
2377
- function _templateObject6$5() {
2378
- var data = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 4px;\n margin-top: 4px;\n position: absolute;\n z-index: ", ";\n min-width: 232px;\n box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25);\n padding: 8px 0px;\n\n ", "\n"]);
2379
- _templateObject6$5 = function _templateObject6() {
2524
+ function _templateObject6$6() {
2525
+ var data = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 4px;\n margin-top: 4px;\n position: absolute;\n z-index: ", ";\n min-width: 232px;\n box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25);\n padding: 8px 0px;\n width: ", ";\n ", "\n"]);
2526
+ _templateObject6$6 = function _templateObject6() {
2380
2527
  return data;
2381
2528
  };
2382
2529
  return data;
2383
2530
  }
2384
- function _templateObject5$7() {
2531
+ function _templateObject5$8() {
2385
2532
  var data = _taggedTemplateLiteral(["\n bottom: 0;\n left: 0;\n top: 0;\n right: 0;\n position: fixed;\n z-index: ", ";\n"]);
2386
- _templateObject5$7 = function _templateObject5() {
2533
+ _templateObject5$8 = function _templateObject5() {
2387
2534
  return data;
2388
2535
  };
2389
2536
  return data;
2390
2537
  }
2391
- function _templateObject4$8() {
2392
- var data = _taggedTemplateLiteral(["\n position: relative;\n width: max-content;\n"]);
2393
- _templateObject4$8 = function _templateObject4() {
2538
+ function _templateObject4$9() {
2539
+ var data = _taggedTemplateLiteral(["\n position: relative;\n"]);
2540
+ _templateObject4$9 = function _templateObject4() {
2394
2541
  return data;
2395
2542
  };
2396
2543
  return data;
2397
2544
  }
2398
- function _templateObject3$9() {
2399
- var data = _taggedTemplateLiteral(["\n .multi-select__control {\n display: none;\n }\n .multi-select__option {\n font-size: 14px;\n padding: 8px 16px;\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n padding: 5px 16px;\n font-size: 12px;\n }\n }\n .multi-select__option--is-focused {\n background-color: ", ";\n }\n .multi-select__option--is-selected {\n background-color: ", ";\n color: #1d1d1d;\n }\n .multi-select__option--is-selected:active {\n background-color: ", ";\n }\n\n .loading-option {\n color: ", ";\n pointer-events: none;\n }\n .loading-option-multi label {\n color: ", ";\n pointer-events: none;\n }\n"]);
2400
- _templateObject3$9 = function _templateObject3() {
2545
+ function _templateObject3$a() {
2546
+ var data = _taggedTemplateLiteral(["\n .multi-select__control {\n display: none;\n }\n .multi-select__option {\n font-size: 14px;\n padding: 8px 16px;\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n padding: 5px 16px;\n font-size: 12px;\n }\n }\n .multi-select__option--is-selected {\n background-color: ", ";\n color: #1d1d1d;\n }\n .multi-select__option--is-selected:active {\n background-color: ", ";\n }\n .multi-select__option--is-focused {\n background-color: ", ";\n }\n\n .loading-option {\n color: ", ";\n pointer-events: none;\n }\n .loading-option-multi label {\n color: ", ";\n pointer-events: none;\n }\n"]);
2547
+ _templateObject3$a = function _templateObject3() {
2401
2548
  return data;
2402
2549
  };
2403
2550
  return data;
2404
2551
  }
2405
- function _templateObject2$9() {
2406
- var data = _taggedTemplateLiteral(["\n width: 91px;\n position: absolute;\n"]);
2407
- _templateObject2$9 = function _templateObject2() {
2552
+ function _templateObject2$a() {
2553
+ var data = _taggedTemplateLiteral(["\n width: 91px;\n position: absolute;\n padding: 4px 8px;\n background: ", ";\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.12);\n border-radius: 4px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n ", " {\n width: 60px;\n }\n"]);
2554
+ _templateObject2$a = function _templateObject2() {
2408
2555
  return data;
2409
2556
  };
2410
2557
  return data;
2411
2558
  }
2412
- function _templateObject$9() {
2413
- var data = _taggedTemplateLiteral(["\n display: flex;\n gap: 4px;\n margin-top: 4px;\n position: absolute;\n"]);
2414
- _templateObject$9 = function _templateObject() {
2559
+ function _templateObject$a() {
2560
+ var data = _taggedTemplateLiteral(["\n display: flex;\n gap: 4px;\n margin-top: 4px;\n position: absolute;\n\n ", " {\n display: block;\n font-size: 12px;\n width: 40px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n &:last-child {\n width: 14px;\n height: 20px;\n background: url(", ") no-repeat;\n transform: rotate(90deg);\n background-position: center;\n }\n }\n"]);
2561
+ _templateObject$a = function _templateObject() {
2415
2562
  return data;
2416
2563
  };
2417
2564
  return data;
2418
2565
  }
2419
- var SelectedOptionsTagGroup = styled__default.div(_templateObject$9());
2420
- var SelectedOptionsTagListContainer = styled__default.div(_templateObject2$9());
2421
- var StyledSelect = styled__default(Select$1__default)(_templateObject3$9(), FocusBackgroundColor, FocusBackgroundColor, FocusBackgroundColor, DisabledButtonFontColor, PrimaryBlueColor);
2422
- var StyledDropdown = styled__default.div(_templateObject4$8());
2423
- var Blanket = styled__default.div(_templateObject5$7(), LOW_1);
2424
- var StyledMenu = styled__default.div(_templateObject6$5(), WhiteColor, LOW_2, function (props) {
2425
- return props.position && styled.css(_templateObject7$5(), props.position.top, props.position.left);
2566
+ var SelectedOptionsTagGroup = styled__default.div(_templateObject$a(), StyledTagTextContainer, menuExtended);
2567
+ var SelectedOptionsTagListContainer = styled__default.div(_templateObject2$a(), WhiteColor, StyledTagTextContainer);
2568
+ var StyledSelect = styled__default(Select$1__default)(_templateObject3$a(), FocusBackgroundColor, FocusBackgroundColor, SelectOptionFocusBackground, DisabledButtonFontColor, PrimaryBlueColor);
2569
+ var StyledDropdown = styled__default.div(_templateObject4$9());
2570
+ var Blanket = styled__default.div(_templateObject5$8(), LOW_1);
2571
+ var StyledMenu = styled__default.div(_templateObject6$6(), WhiteColor, LOW_2, function (props) {
2572
+ return props.width && props.width + "px";
2573
+ }, function (props) {
2574
+ return props.position && styled.css(_templateObject7$6(), props.position.top, props.position.left);
2426
2575
  });
2427
- var SearchContainer = styled__default.div(_templateObject8$5());
2576
+ var SearchContainer = styled__default.div(_templateObject8$6());
2428
2577
  var StyledChevronIcon = styled__default.i(_templateObject9$5(), ChevronImage, function (props) {
2429
2578
  return props.isOpen && styled.css(_templateObject10$5());
2430
2579
  });
2431
- var StyledDropdownMainButton = styled__default.button(_templateObject11$4(), WhiteColor, DefaultColorButton, DefaultButtonText, function (props) {
2580
+ var StyledDropdownMainButton = styled__default.button(_templateObject11$4(), function (props) {
2581
+ return props.isAgGridCellRenderer ? AgCellRendererBackground : WhiteColor;
2582
+ }, function (props) {
2583
+ return props.isAgGridCellRenderer ? "transparent" : DefaultColorButton;
2584
+ }, DefaultButtonText, function (props) {
2432
2585
  return props.isSelected && styled.css(_templateObject12$3());
2433
- }, PrimaryBlueColor, FocusBackgroundColor, PrimaryBlueColor, DisabledTextareaBg, FocusDisableBorderColor, DisabledButtonFontColor, StyledChevronIcon, DisabledChevron);
2434
- var StyledDDMainContainer = styled__default.div(_templateObject13$2(), function (props) {
2435
- return props.labelOrientation === "left" && styled.css(_templateObject14$2());
2586
+ }, function (props) {
2587
+ return props.isOpen && props.isAgGridCellRenderer && styled.css(_templateObject13$2(), WhiteColor);
2588
+ }, function (props) {
2589
+ return props.isAgGridCellRenderer ? "transparent" : PrimaryBlueColor;
2590
+ }, function (props) {
2591
+ return props.isAgGridCellRenderer ? "unset" : "0 0 0 3px FocusBackgroundColor";
2592
+ }, function (props) {
2593
+ return props.isAgGridCellRenderer ? "transparent" : PrimaryBlueColor;
2594
+ }, DisabledTextareaBg, function (props) {
2595
+ return props.isAgGridCellRenderer ? "transparent" : FocusDisableBorderColor;
2596
+ }, DisabledButtonFontColor, StyledChevronIcon, DisabledChevron);
2597
+ var StyledDDMainContainer = styled__default.div(_templateObject14$2(), function (props) {
2598
+ return props.labelOrientation === "left" && styled.css(_templateObject15$1());
2436
2599
  });
2437
- var StyledDDLabelContainer = styled__default.label(_templateObject15$1(), LabelColor);
2438
- var StyledDDSearchBox = styled__default.input(_templateObject16$1(), AvatarBgColor, SearchIcon);
2439
- var StyledButtonURLClear = styled__default.button(_templateObject17$1(), LabelColor, NotificationClose);
2440
- var StyledSelectAllContainer = styled__default.div(_templateObject18$1(), FocusBackgroundColor);
2600
+ var StyledDDLabelContainer = styled__default.label(_templateObject16$1(), LabelColor);
2601
+ var StyledDDSearchBox = styled__default.input(_templateObject17$1(), AvatarBgColor, SearchIcon);
2602
+ var StyledButtonURLClear = styled__default.button(_templateObject18$1(), LabelColor, NotificationClose);
2603
+ var StyledSelectAllContainer = styled__default.div(_templateObject19$1(), FocusBackgroundColor);
2441
2604
 
2442
2605
  var Portal = function Portal(props) {
2443
2606
  return /*#__PURE__*/ReactDOM.createPortal(props.children, props.container);
@@ -2452,36 +2615,29 @@
2452
2615
  containerRef = _ref.containerRef,
2453
2616
  withPortal = _ref.withPortal,
2454
2617
  portalContainer = _ref.portalContainer,
2455
- onMenuScrollToBottom = _ref.onMenuScrollToBottom;
2618
+ dropdownButtonRef = _ref.dropdownButtonRef;
2456
2619
  var x = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect().x;
2457
2620
  var y = (_containerRef$current2 = containerRef.current) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.getBoundingClientRect().y;
2458
2621
  var offsetHeight = (_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.offsetHeight;
2459
- var onMenuScroll = function onMenuScroll(e) {
2460
- var _e$target = e.target,
2461
- scrollHeight = _e$target.scrollHeight,
2462
- scrollTop = _e$target.scrollTop,
2463
- clientHeight = _e$target.clientHeight;
2464
- if (scrollHeight - scrollTop === clientHeight && onMenuScrollToBottom) {
2465
- onMenuScrollToBottom();
2466
- }
2467
- };
2468
2622
  return /*#__PURE__*/jsxRuntime.jsxs(StyledDropdown, {
2623
+ className: "select-container",
2469
2624
  children: [target, !disabled && isOpen ? /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
2470
2625
  children: withPortal ? /*#__PURE__*/jsxRuntime.jsxs(Portal, {
2471
2626
  container: portalContainer,
2472
2627
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledMenu, {
2628
+ className: "select-dropdown-container",
2473
2629
  position: {
2474
2630
  top: y + offsetHeight + 4,
2475
2631
  left: x
2476
2632
  },
2477
- onScroll: onMenuScroll,
2633
+ width: dropdownButtonRef.current.offsetWidth,
2478
2634
  children: children
2479
2635
  }), /*#__PURE__*/jsxRuntime.jsx(Blanket, {
2480
2636
  onClick: onClose
2481
2637
  })]
2482
2638
  }) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2483
2639
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledMenu, {
2484
- onScroll: onMenuScroll,
2640
+ className: "select-dropdown-container",
2485
2641
  children: children
2486
2642
  }), /*#__PURE__*/jsxRuntime.jsx(Blanket, {
2487
2643
  onClick: onClose
@@ -2499,105 +2655,39 @@
2499
2655
  isSelectAll = _ref.isSelectAll,
2500
2656
  selectedOptions = _ref.selectedOptions,
2501
2657
  isWithSelectAll = _ref.isWithSelectAll,
2502
- isWithSearch = _ref.isWithSearch;
2658
+ isWithSearch = _ref.isWithSearch,
2659
+ onKeyDown = _ref.onKeyDown;
2503
2660
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2504
2661
  children: [isWithSearch && /*#__PURE__*/jsxRuntime.jsx(StyledDDSearchBox, {
2505
2662
  placeholder: "Search",
2506
2663
  ref: ref,
2507
- onChange: onSearch
2664
+ onChange: onSearch,
2665
+ onKeyDown: onKeyDown,
2666
+ className: "select-search-input"
2508
2667
  }), isMulti && isWithSelectAll && /*#__PURE__*/jsxRuntime.jsxs(SearchContainer, {
2509
2668
  children: [!isSelectAll && selectedOptions.length > 0 ? /*#__PURE__*/jsxRuntime.jsx(StyledButtonURLClear, {
2510
2669
  variant: "url",
2511
2670
  onClick: onClearAll,
2671
+ className: "select-clear-all-button",
2512
2672
  children: "Clear Selection"
2513
2673
  }) : null, /*#__PURE__*/jsxRuntime.jsx(StyledSelectAllContainer, {
2674
+ className: "select-selectAll-container",
2514
2675
  children: /*#__PURE__*/jsxRuntime.jsx(Checkbox, {
2515
2676
  name: "select-all",
2516
2677
  id: "select-all",
2517
2678
  label: isSelectAll ? "Deselect All" : "Select All",
2518
2679
  onChange: onSelectAll,
2519
- checked: isSelectAll
2680
+ checked: isSelectAll,
2681
+ className: "select-selectAll-checkbox"
2520
2682
  })
2521
2683
  })]
2522
2684
  })]
2523
2685
  });
2524
2686
  });
2525
2687
 
2526
- function _templateObject8$6() {
2527
- var data = _taggedTemplateLiteral(["\n display: flex;\n gap: 12px;\n"]);
2528
- _templateObject8$6 = function _templateObject8() {
2529
- return data;
2530
- };
2531
- return data;
2532
- }
2533
- function _templateObject7$6() {
2534
- var data = _taggedTemplateLiteral(["\n background: url(", ") no-repeat;\n pointer-events: none;\n "]);
2535
- _templateObject7$6 = function _templateObject7() {
2536
- return data;
2537
- };
2538
- return data;
2539
- }
2540
- function _templateObject6$6() {
2541
- var data = _taggedTemplateLiteral(["\n background: url(", ") no-repeat;\n width: 10px;\n height: 10px;\n background-size: 10px;\n display: inline-block;\n margin-left: 8px;\n\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n background-size: 8px;\n }\n ", "\n"]);
2542
- _templateObject6$6 = function _templateObject6() {
2543
- return data;
2544
- };
2545
- return data;
2546
- }
2547
- function _templateObject5$8() {
2548
- var data = _taggedTemplateLiteral(["\n font-size: 12px;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n font-size: 10px;\n }\n"]);
2549
- _templateObject5$8 = function _templateObject5() {
2550
- return data;
2551
- };
2552
- return data;
2553
- }
2554
- function _templateObject4$9() {
2555
- var data = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", " !important;\n cursor: default !important;\n }\n "]);
2556
- _templateObject4$9 = function _templateObject4() {
2557
- return data;
2558
- };
2559
- return data;
2560
- }
2561
- function _templateObject3$a() {
2562
- var data = _taggedTemplateLiteral(["\n height: 26px;\n padding: 0px 8px;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: 22px;\n }\n "]);
2563
- _templateObject3$a = function _templateObject3() {
2564
- return data;
2565
- };
2566
- return data;
2567
- }
2568
- function _templateObject2$a() {
2569
- var data = _taggedTemplateLiteral(["\n height: 22px;\n padding: 0px 4px;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: 18px;\n }\n "]);
2570
- _templateObject2$a = function _templateObject2() {
2571
- return data;
2572
- };
2573
- return data;
2574
- }
2575
- function _templateObject$a() {
2576
- var data = _taggedTemplateLiteral(["\n display: flex;\n background: ", ";\n border-radius: 4px;\n cursor: pointer;\n align-items: center;\n color: ", ";\n ", "\n\n ", "\n\n &:hover {\n background: ", ";\n }\n &:focus {\n background: ", ";\n }\n"]);
2577
- _templateObject$a = function _templateObject() {
2578
- return data;
2579
- };
2580
- return data;
2581
- }
2582
- var StyledTagGroupMainContainer = styled__default.div(_templateObject$a(), AvatarBgColor, LabelColor, function (props) {
2583
- switch (props.size) {
2584
- case "small":
2585
- return styled.css(_templateObject2$a());
2586
- case "default":
2587
- return styled.css(_templateObject3$a());
2588
- }
2589
- }, function (props) {
2590
- return props.disabled && styled.css(_templateObject4$9(), DisabledTextareaBg, DisabledButtonFontColor, DisabledTextareaBg);
2591
- }, TabHoverBackgroundColor, DisabledButtonFontColor);
2592
- var StyledTagTextContainer = styled__default.span(_templateObject5$8());
2593
- var StyledCloseIcon = styled__default.i(_templateObject6$6(), NotificationClose, function (props) {
2594
- return props.disabled && styled.css(_templateObject7$6(), DisabledClose);
2595
- });
2596
- var StyledTagGroupOuterContainer = styled__default.div(_templateObject8$6());
2597
-
2598
2688
  function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2599
2689
  function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2600
- var Tag = function Tag(_ref) {
2690
+ var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2601
2691
  var children = _ref.children,
2602
2692
  _ref$size = _ref.size,
2603
2693
  size = _ref$size === void 0 ? "default" : _ref$size,
@@ -2607,16 +2697,20 @@
2607
2697
  props = _objectWithoutProperties(_ref, ["children", "size", "isRemovable", "onClose", "disabled"]);
2608
2698
  return /*#__PURE__*/jsxRuntime.jsxs(StyledTagGroupMainContainer, _objectSpread$8(_objectSpread$8({
2609
2699
  size: size,
2610
- disabled: disabled
2700
+ disabled: disabled,
2701
+ className: "".concat(props.className, " tag-container"),
2702
+ ref: ref
2611
2703
  }, props), {}, {
2612
2704
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledTagTextContainer, {
2705
+ className: "tag-text",
2613
2706
  children: children
2614
2707
  }), isRemovable && /*#__PURE__*/jsxRuntime.jsx(StyledCloseIcon, {
2615
2708
  disabled: disabled,
2616
- onClick: onClose
2709
+ onClick: onClose,
2710
+ className: "tag-remove-icon"
2617
2711
  })]
2618
2712
  }));
2619
- };
2713
+ });
2620
2714
 
2621
2715
  var eventTypeMapping = {
2622
2716
  click: "onClick",
@@ -2687,29 +2781,395 @@
2687
2781
  return React__default.Children.only( /*#__PURE__*/React.cloneElement(children, (_cloneElement = {}, _defineProperty(_cloneElement, mappedFocusEvent, handleBubbledEvents(mappedFocusEvent)), _defineProperty(_cloneElement, mappedMouseEvent, handleBubbledEvents(mappedMouseEvent)), _defineProperty(_cloneElement, mappedTouchEvent, handleBubbledEvents(mappedTouchEvent)), _cloneElement)));
2688
2782
  };
2689
2783
 
2690
- var SelectedOptionTag = function SelectedOptionTag(_ref) {
2691
- var onClose = _ref.onClose,
2692
- label = _ref.label;
2693
- return /*#__PURE__*/jsxRuntime.jsx(Tag, {
2694
- size: "small",
2695
- isRemovable: true,
2696
- onClose: onClose,
2697
- children: label
2698
- });
2699
- };
2700
- var SelectedOptionsTagList = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
2701
- var _ref$current, _ref$current2;
2702
- var selectedOptions = _ref2.selectedOptions,
2703
- handleOptionTagRemove = _ref2.handleOptionTagRemove;
2704
- return /*#__PURE__*/jsxRuntime.jsx(SelectedOptionsTagListContainer, {
2705
- style: {
2706
- top: ((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.offsetTop) + 25,
2707
- left: (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.offsetLeft
2708
- },
2709
- children: selectedOptions.slice(3, selectedOptions.length).map(function (option) {
2710
- return /*#__PURE__*/jsxRuntime.jsx(SelectedOptionTag, {
2711
- label: option.label,
2712
- onClose: function onClose() {
2784
+ function _templateObject17$2() {
2785
+ var data = _taggedTemplateLiteral([""]);
2786
+ _templateObject17$2 = function _templateObject17() {
2787
+ return data;
2788
+ };
2789
+ return data;
2790
+ }
2791
+ function _templateObject16$2() {
2792
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: 10px;\n top: auto;\n bottom: -6px;\n transform: rotate(-180deg);\n }\n "]);
2793
+ _templateObject16$2 = function _templateObject16() {
2794
+ return data;
2795
+ };
2796
+ return data;
2797
+ }
2798
+ function _templateObject15$2() {
2799
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: 10px;\n top: auto;\n bottom: -6px;\n transform: rotate(-180deg);\n }\n "]);
2800
+ _templateObject15$2 = function _templateObject15() {
2801
+ return data;
2802
+ };
2803
+ return data;
2804
+ }
2805
+ function _templateObject14$3() {
2806
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: 0px;\n right: 0px;\n }\n "]);
2807
+ _templateObject14$3 = function _templateObject14() {
2808
+ return data;
2809
+ };
2810
+ return data;
2811
+ }
2812
+ function _templateObject13$3() {
2813
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: 10px;\n right: auto;\n top: auto;\n bottom: -6px;\n transform: rotate(-180deg);\n }\n "]);
2814
+ _templateObject13$3 = function _templateObject13() {
2815
+ return data;
2816
+ };
2817
+ return data;
2818
+ }
2819
+ function _templateObject12$4() {
2820
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: -9px;\n top: auto;\n bottom: 10px;\n transform: rotate(90deg);\n }\n "]);
2821
+ _templateObject12$4 = function _templateObject12() {
2822
+ return data;
2823
+ };
2824
+ return data;
2825
+ }
2826
+ function _templateObject11$5() {
2827
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: -9px;\n right: auto;\n top: 0px;\n bottom: 0;\n transform: rotate(-90deg);\n }\n "]);
2828
+ _templateObject11$5 = function _templateObject11() {
2829
+ return data;
2830
+ };
2831
+ return data;
2832
+ }
2833
+ function _templateObject10$6() {
2834
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: -9px;\n top: 10px;\n bottom: auto;\n transform: rotate(90deg);\n }\n "]);
2835
+ _templateObject10$6 = function _templateObject10() {
2836
+ return data;
2837
+ };
2838
+ return data;
2839
+ }
2840
+ function _templateObject9$6() {
2841
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: -9px;\n right: auto;\n top: auto;\n bottom: 10px;\n transform: rotate(-90deg);\n }\n "]);
2842
+ _templateObject9$6 = function _templateObject9() {
2843
+ return data;
2844
+ };
2845
+ return data;
2846
+ }
2847
+ function _templateObject8$7() {
2848
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: -9px;\n top: 0px;\n bottom: 0px;\n transform: rotate(90deg);\n }\n "]);
2849
+ _templateObject8$7 = function _templateObject8() {
2850
+ return data;
2851
+ };
2852
+ return data;
2853
+ }
2854
+ function _templateObject7$7() {
2855
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: -9px;\n right: auto;\n top: 10px;\n transform: rotate(-90deg);\n }\n "]);
2856
+ _templateObject7$7 = function _templateObject7() {
2857
+ return data;
2858
+ };
2859
+ return data;
2860
+ }
2861
+ function _templateObject6$7() {
2862
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: 10px;\n }\n "]);
2863
+ _templateObject6$7 = function _templateObject6() {
2864
+ return data;
2865
+ };
2866
+ return data;
2867
+ }
2868
+ function _templateObject5$9() {
2869
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: 0px;\n right: 0px;\n top: auto;\n bottom: -6px;\n transform: rotate(-180deg);\n }\n "]);
2870
+ _templateObject5$9 = function _templateObject5() {
2871
+ return data;
2872
+ };
2873
+ return data;
2874
+ }
2875
+ function _templateObject4$a() {
2876
+ var data = _taggedTemplateLiteral(["\n &::after {\n left: 10px;\n right: auto;\n }\n "]);
2877
+ _templateObject4$a = function _templateObject4() {
2878
+ return data;
2879
+ };
2880
+ return data;
2881
+ }
2882
+ function _templateObject3$b() {
2883
+ var data = _taggedTemplateLiteral([""]);
2884
+ _templateObject3$b = function _templateObject3() {
2885
+ return data;
2886
+ };
2887
+ return data;
2888
+ }
2889
+ function _templateObject2$b() {
2890
+ var data = _taggedTemplateLiteral(["\n background: ", ";\n padding: 8px 16px;\n border-radius: 4px;\n max-width: 300px;\n width: max-content;\n position: ", ";\n color: ", ";\n z-index: ", ";\n font-size: 14px;\n line-height: 21px;\n visibility: ", ";\n top: ", "px;\n left: ", "px;\n &::after {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid ", ";\n content: \" \";\n position: absolute;\n left: 0;\n right: 0;\n margin: auto;\n top: -6px;\n }\n ", "\n"]);
2891
+ _templateObject2$b = function _templateObject2() {
2892
+ return data;
2893
+ };
2894
+ return data;
2895
+ }
2896
+ function _templateObject$b() {
2897
+ var data = _taggedTemplateLiteral(["\n position: relative;\n"]);
2898
+ _templateObject$b = function _templateObject() {
2899
+ return data;
2900
+ };
2901
+ return data;
2902
+ }
2903
+ var StyledTooltipContainer = styled__default.div(_templateObject$b());
2904
+ var StyledTooltip = styled__default.div(_templateObject2$b(), TooltipBackgroundColor, function (props) {
2905
+ return props.isPortal ? "fixed" : "absolute";
2906
+ }, WhiteColor, function (props) {
2907
+ return props.zIndex;
2908
+ }, function (props) {
2909
+ return props.displayTooltip ? "visible" : "hidden";
2910
+ }, function (props) {
2911
+ return props.positionRef.current.y;
2912
+ }, function (props) {
2913
+ return props.positionRef.current.x;
2914
+ }, TooltipBackgroundColor, function (props) {
2915
+ switch (props.placement) {
2916
+ case "default":
2917
+ return styled.css(_templateObject3$b());
2918
+ case "bottom-start":
2919
+ return styled.css(_templateObject4$a());
2920
+ case "top":
2921
+ return styled.css(_templateObject5$9());
2922
+ case "bottom-end":
2923
+ return styled.css(_templateObject6$7());
2924
+ case "right-start":
2925
+ return styled.css(_templateObject7$7());
2926
+ case "left":
2927
+ return styled.css(_templateObject8$7());
2928
+ case "right-end":
2929
+ return styled.css(_templateObject9$6());
2930
+ case "left-start":
2931
+ return styled.css(_templateObject10$6());
2932
+ case "right":
2933
+ return styled.css(_templateObject11$5());
2934
+ case "left-end":
2935
+ return styled.css(_templateObject12$4());
2936
+ case "top-start":
2937
+ return styled.css(_templateObject13$3());
2938
+ case "bottom":
2939
+ return styled.css(_templateObject14$3());
2940
+ case "bottom-end":
2941
+ return styled.css(_templateObject15$2());
2942
+ case "top-end":
2943
+ return styled.css(_templateObject16$2());
2944
+ default:
2945
+ return styled.css(_templateObject17$2());
2946
+ }
2947
+ });
2948
+
2949
+ function Portal$1(props) {
2950
+ return /*#__PURE__*/ReactDOM.createPortal(props.children, props.container);
2951
+ }
2952
+ var point = function point() {
2953
+ return {
2954
+ x: null,
2955
+ y: null
2956
+ };
2957
+ };
2958
+ var getTooltipCoordinates = function getTooltipCoordinates(tooltipElement,
2959
+ //element on which tooltip is renderTooltip
2960
+ tooltipRef, placement, space, isPortal) {
2961
+ var tooltipPosition = point();
2962
+ var tooltipArrowHeight = 14;
2963
+ var tooltipElementRect = tooltipElement.getBoundingClientRect();
2964
+ switch (placement) {
2965
+ case "left":
2966
+ if (isPortal) {
2967
+ tooltipPosition.x = tooltipElementRect.left - (tooltipRef.offsetWidth + space);
2968
+ tooltipPosition.y = tooltipElementRect.top + (tooltipElement.offsetHeight - tooltipRef.offsetHeight) / 2;
2969
+ } else {
2970
+ tooltipPosition.x = -tooltipRef.offsetWidth - tooltipArrowHeight;
2971
+ tooltipPosition.y = 0;
2972
+ }
2973
+ break;
2974
+ case "left-start":
2975
+ if (isPortal) {
2976
+ tooltipPosition.x = tooltipElementRect.left - (tooltipRef.offsetWidth + space);
2977
+ tooltipPosition.y = tooltipElementRect.top;
2978
+ } else {
2979
+ tooltipPosition.x = -tooltipRef.offsetWidth - tooltipArrowHeight;
2980
+ tooltipPosition.y = 0;
2981
+ }
2982
+ break;
2983
+ case "left-end":
2984
+ if (isPortal) {
2985
+ tooltipPosition.x = tooltipElementRect.left - (tooltipRef.offsetWidth + space);
2986
+ tooltipPosition.y = tooltipElementRect.bottom - tooltipRef.offsetHeight;
2987
+ } else {
2988
+ tooltipPosition.x = -tooltipRef.offsetWidth - tooltipArrowHeight;
2989
+ tooltipPosition.y = 0;
2990
+ }
2991
+ break;
2992
+ case "right":
2993
+ if (isPortal) {
2994
+ tooltipPosition.x = tooltipElementRect.right + space;
2995
+ tooltipPosition.y = tooltipElementRect.top + (tooltipElement.offsetHeight - tooltipRef.offsetHeight) / 2;
2996
+ } else {
2997
+ tooltipPosition.x = tooltipElement.offsetWidth + tooltipArrowHeight;
2998
+ tooltipPosition.y = 0;
2999
+ }
3000
+ break;
3001
+ case "right-start":
3002
+ if (isPortal) {
3003
+ tooltipPosition.x = tooltipElementRect.right + space;
3004
+ tooltipPosition.y = tooltipElementRect.top;
3005
+ } else {
3006
+ tooltipPosition.x = tooltipElement.offsetWidth + tooltipArrowHeight;
3007
+ tooltipPosition.y = 0;
3008
+ }
3009
+ break;
3010
+ case "right-end":
3011
+ if (isPortal) {
3012
+ tooltipPosition.x = tooltipElementRect.right + space;
3013
+ tooltipPosition.y = tooltipElementRect.bottom - tooltipRef.offsetHeight;
3014
+ } else {
3015
+ tooltipPosition.x = tooltipElement.offsetWidth + tooltipArrowHeight;
3016
+ tooltipPosition.y = 0;
3017
+ }
3018
+ break;
3019
+ case "top":
3020
+ if (isPortal) {
3021
+ tooltipPosition.x = tooltipElementRect.left + (tooltipElement.offsetWidth - tooltipRef.offsetWidth) / 2;
3022
+ tooltipPosition.y = tooltipElementRect.top - (tooltipRef.offsetHeight + space);
3023
+ } else {
3024
+ tooltipPosition.x = (tooltipElement.offsetWidth - tooltipRef.offsetWidth) / 2;
3025
+ tooltipPosition.y = -tooltipRef.offsetHeight - tooltipArrowHeight;
3026
+ }
3027
+ break;
3028
+ case "top-start":
3029
+ if (isPortal) {
3030
+ tooltipPosition.x = tooltipElementRect.left;
3031
+ tooltipPosition.y = tooltipElementRect.top - (tooltipRef.offsetHeight + space);
3032
+ } else {
3033
+ tooltipPosition.x = 0;
3034
+ tooltipPosition.y = -tooltipRef.offsetHeight - tooltipArrowHeight;
3035
+ }
3036
+ break;
3037
+ case "top-end":
3038
+ if (isPortal) {
3039
+ tooltipPosition.x = tooltipElementRect.right - tooltipRef.offsetWidth;
3040
+ tooltipPosition.y = tooltipElementRect.top - (tooltipRef.offsetHeight + space);
3041
+ } else {
3042
+ tooltipPosition.x = tooltipElement.offsetWidth - tooltipRef.offsetWidth;
3043
+ tooltipPosition.y = -tooltipRef.offsetHeight - tooltipArrowHeight;
3044
+ }
3045
+ break;
3046
+ case "bottom":
3047
+ if (isPortal) {
3048
+ tooltipPosition.x = tooltipElementRect.left + (tooltipElement.offsetWidth - tooltipRef.offsetWidth) / 2;
3049
+ tooltipPosition.y = tooltipElementRect.bottom + space;
3050
+ } else {
3051
+ tooltipPosition.x = (tooltipElement.offsetWidth - tooltipRef.offsetWidth) / 2;
3052
+ tooltipPosition.y = tooltipRef.offsetHeight + tooltipArrowHeight;
3053
+ }
3054
+ break;
3055
+ case "bottom-start":
3056
+ if (isPortal) {
3057
+ tooltipPosition.x = tooltipElementRect.left;
3058
+ tooltipPosition.y = tooltipElementRect.bottom + space;
3059
+ } else {
3060
+ tooltipPosition.x = 0;
3061
+ tooltipPosition.y = tooltipRef.offsetHeight + tooltipArrowHeight;
3062
+ }
3063
+ break;
3064
+ case "bottom-end":
3065
+ if (isPortal) {
3066
+ tooltipPosition.x = tooltipElementRect.right - tooltipRef.offsetWidth;
3067
+ tooltipPosition.y = tooltipElementRect.bottom + space;
3068
+ } else {
3069
+ tooltipPosition.x = tooltipElement.offsetWidth - tooltipRef.offsetWidth;
3070
+ tooltipPosition.y = tooltipRef.offsetHeight + tooltipArrowHeight;
3071
+ }
3072
+ break;
3073
+ }
3074
+ return tooltipPosition;
3075
+ };
3076
+ var Tooltip = function Tooltip(_ref) {
3077
+ var text = _ref.text,
3078
+ _ref$placement = _ref.placement,
3079
+ placement = _ref$placement === void 0 ? "bottom" : _ref$placement,
3080
+ _ref$space = _ref.space,
3081
+ space = _ref$space === void 0 ? 15 : _ref$space,
3082
+ children = _ref.children,
3083
+ _ref$disabled = _ref.disabled,
3084
+ disabled = _ref$disabled === void 0 ? 0 : _ref$disabled,
3085
+ _ref$container = _ref.container,
3086
+ container = _ref$container === void 0 ? document.body : _ref$container,
3087
+ _ref$zIndex = _ref.zIndex,
3088
+ zIndex = _ref$zIndex === void 0 ? VERY_HIGH : _ref$zIndex,
3089
+ isPortal = _ref.isPortal,
3090
+ className = _ref.className;
3091
+ var _useState = React.useState(false),
3092
+ _useState2 = _slicedToArray(_useState, 2),
3093
+ renderTooltip = _useState2[0],
3094
+ setRenderTooltip = _useState2[1]; // render the tooltip so that its coords can be set
3095
+ var _useState3 = React.useState(false),
3096
+ _useState4 = _slicedToArray(_useState3, 2),
3097
+ displayTooltip = _useState4[0],
3098
+ setDisplayTooltip = _useState4[1]; // display tooltip only after the coords are set to avoid display at x=0, y=0 (default tooltipRef value)
3099
+ var positionRef = React.useRef({
3100
+ x: null,
3101
+ y: null
3102
+ });
3103
+ var tooltipRef = React.useRef();
3104
+ var containerRef = React.useRef(null);
3105
+ React.useEffect(function () {
3106
+ if (renderTooltip && tooltipRef.current) {
3107
+ positionRef.current = getTooltipCoordinates(containerRef.current, tooltipRef.current, placement, space, isPortal);
3108
+ setDisplayTooltip(true);
3109
+ }
3110
+ }, [renderTooltip]);
3111
+ var handleMouseOver = function handleMouseOver(e) {
3112
+ if (disabled) return;
3113
+ setRenderTooltip(true);
3114
+ };
3115
+ var handleMouseLeave = function handleMouseLeave() {
3116
+ if (disabled) return;
3117
+ setRenderTooltip(false);
3118
+ setDisplayTooltip(false);
3119
+ };
3120
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledTooltipContainer, {
3121
+ onMouseOver: handleMouseOver,
3122
+ onMouseLeave: handleMouseLeave,
3123
+ ref: containerRef,
3124
+ className: "tooltip-container",
3125
+ children: [children, renderTooltip && !disabled && (isPortal ? /*#__PURE__*/jsxRuntime.jsx(Portal$1, {
3126
+ container: container,
3127
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledTooltip, {
3128
+ ref: tooltipRef,
3129
+ positionRef: positionRef,
3130
+ displayTooltip: displayTooltip,
3131
+ placement: placement,
3132
+ zIndex: zIndex,
3133
+ isPortal: isPortal,
3134
+ className: "".concat(className, " tooltip"),
3135
+ children: text
3136
+ })
3137
+ }) : /*#__PURE__*/jsxRuntime.jsx(StyledTooltip, {
3138
+ ref: tooltipRef,
3139
+ positionRef: positionRef,
3140
+ displayTooltip: displayTooltip,
3141
+ placement: placement,
3142
+ zIndex: zIndex,
3143
+ isPortal: isPortal,
3144
+ className: "".concat(className, " tooltip"),
3145
+ children: text
3146
+ }))]
3147
+ });
3148
+ };
3149
+
3150
+ var SelectedOptionTag = function SelectedOptionTag(_ref) {
3151
+ var onClose = _ref.onClose,
3152
+ label = _ref.label;
3153
+ return /*#__PURE__*/jsxRuntime.jsx(Tag, {
3154
+ size: "small",
3155
+ isRemovable: true,
3156
+ onClose: onClose,
3157
+ children: label
3158
+ });
3159
+ };
3160
+ var SelectedOptionsTagList = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
3161
+ var _ref$current, _ref$current2;
3162
+ var selectedOptions = _ref2.selectedOptions,
3163
+ handleOptionTagRemove = _ref2.handleOptionTagRemove;
3164
+ return /*#__PURE__*/jsxRuntime.jsx(SelectedOptionsTagListContainer, {
3165
+ style: {
3166
+ top: ((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.offsetTop) + 25,
3167
+ left: (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.offsetLeft
3168
+ },
3169
+ children: selectedOptions.slice(3, selectedOptions.length).map(function (option) {
3170
+ return /*#__PURE__*/jsxRuntime.jsx(SelectedOptionTag, {
3171
+ label: option.label,
3172
+ onClose: function onClose() {
2713
3173
  return handleOptionTagRemove(option);
2714
3174
  }
2715
3175
  });
@@ -2731,14 +3191,19 @@
2731
3191
  onChange(updatedOptions);
2732
3192
  };
2733
3193
  return /*#__PURE__*/jsxRuntime.jsx(SelectedOptionsTagGroup, {
3194
+ className: "select-options-tag-group",
2734
3195
  children: selectedOptions.length > 0 ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2735
3196
  children: [selectedOptions.slice(0, 3).map(function (option, index) {
2736
- return /*#__PURE__*/jsxRuntime.jsx(SelectedOptionTag, {
2737
- label: option.label,
2738
- onClose: function onClose() {
2739
- return handleOptionTagRemove(option);
2740
- }
2741
- }, index);
3197
+ return /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
3198
+ text: option.label,
3199
+ children: /*#__PURE__*/jsxRuntime.jsx(SelectedOptionTag, {
3200
+ label: option.label,
3201
+ onClose: function onClose() {
3202
+ return handleOptionTagRemove(option);
3203
+ },
3204
+ className: "selected-option-tag"
3205
+ }, index)
3206
+ });
2742
3207
  }), selectedOptions.length > 3 && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2743
3208
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
2744
3209
  ref: optionListTagRef,
@@ -2748,8 +3213,7 @@
2748
3213
  setSelectedOptionsTagListOpen(function (prevState) {
2749
3214
  return !prevState;
2750
3215
  });
2751
- },
2752
- children: "...."
3216
+ }
2753
3217
  })
2754
3218
  }), isSelectedOptionsTagListOpen && /*#__PURE__*/jsxRuntime.jsx(ClickAwayListener, {
2755
3219
  onClickAway: function onClickAway() {
@@ -2758,7 +3222,8 @@
2758
3222
  children: /*#__PURE__*/jsxRuntime.jsx(SelectedOptionsTagList, {
2759
3223
  selectedOptions: selectedOptions,
2760
3224
  ref: optionListTagRef,
2761
- handleOptionTagRemove: handleOptionTagRemove
3225
+ handleOptionTagRemove: handleOptionTagRemove,
3226
+ className: "selected-option-tag"
2762
3227
  })
2763
3228
  })]
2764
3229
  })]
@@ -2808,12 +3273,17 @@
2808
3273
  onMenuScrollToBottom = _ref.onMenuScrollToBottom,
2809
3274
  _ref$portalContainer = _ref.portalContainer,
2810
3275
  portalContainer = _ref$portalContainer === void 0 ? document.body : _ref$portalContainer,
2811
- props = _objectWithoutProperties(_ref, ["label", "placeholder", "initialOptions", "isMulti", "isOpen", "setIsOpen", "currentOptions", "setCurrentOptions", "selectedOptions", "setSelectedOptions", "isSelectAll", "setIsSelectAll", "isWithSelectAll", "isWithSearch", "isWithSelectedOptionTags", "labelOrientation", "withPortal", "onMenuScrollToBottom", "portalContainer"]);
3276
+ isAgGridCellRenderer = _ref.isAgGridCellRenderer,
3277
+ props = _objectWithoutProperties(_ref, ["label", "placeholder", "initialOptions", "isMulti", "isOpen", "setIsOpen", "currentOptions", "setCurrentOptions", "selectedOptions", "setSelectedOptions", "isSelectAll", "setIsSelectAll", "isWithSelectAll", "isWithSearch", "isWithSelectedOptionTags", "labelOrientation", "withPortal", "onMenuScrollToBottom", "portalContainer", "isAgGridCellRenderer"]);
2812
3278
  var searchBarRef = React.useRef(null);
2813
3279
  var containerRef = React.useRef(null);
3280
+ var focusedIndex = React.useRef(0);
3281
+ var dropdownButtonRef = React.useRef(null);
2814
3282
  React.useEffect(function () {
2815
3283
  if (isOpen) {
2816
3284
  isWithSearch && searchBarRef.current.focus();
3285
+ var optionElements = Array.from(document.getElementsByClassName("multi-select__option"));
3286
+ if (optionElements.length > 0) optionElements[0].classList.add("multi-select__option--is-focused");
2817
3287
  }
2818
3288
  }, [isOpen]);
2819
3289
  var onChange = function onChange(selectedOptions) {
@@ -2886,578 +3356,339 @@
2886
3356
  };
2887
3357
  var onDropdownOpen = function onDropdownOpen() {
2888
3358
  if (props.onDropdownOpen) {
2889
- props.onDropdownOpen();
2890
- } else {
2891
- setIsOpen(function (prev) {
2892
- return !prev;
2893
- });
2894
- }
2895
- };
2896
- return /*#__PURE__*/jsxRuntime.jsxs(StyledDDMainContainer, {
2897
- labelOrientation: labelOrientation,
2898
- ref: containerRef,
2899
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledDDLabelContainer, {
2900
- children: label
2901
- }), /*#__PURE__*/jsxRuntime.jsxs(Dropdown, {
2902
- isOpen: isOpen,
2903
- onClose: onDropdownClose,
2904
- disabled: props.disabled,
2905
- containerRef: containerRef,
2906
- withPortal: withPortal,
2907
- portalContainer: portalContainer,
2908
- onMenuScrollToBottom: onMenuScrollToBottom,
2909
- target: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2910
- children: [/*#__PURE__*/jsxRuntime.jsxs(StyledDropdownMainButton, {
2911
- variant: "primary",
2912
- disabled: props.disabled,
2913
- onClick: isOpen ? onDropdownClose : onDropdownOpen,
2914
- isSelected: Object.entries(selectedOptions).length > 0,
2915
- children: [getPlaceholder(), /*#__PURE__*/jsxRuntime.jsx(StyledChevronIcon, {
2916
- isOpen: isOpen
2917
- })]
2918
- }), isMulti && isWithSelectedOptionTags && /*#__PURE__*/jsxRuntime.jsx(SelectedOptionsTags, {
2919
- selectedOptions: selectedOptions,
2920
- onChange: onChange
2921
- })]
2922
- }),
2923
- children: [/*#__PURE__*/jsxRuntime.jsx(Filters, {
2924
- ref: searchBarRef,
2925
- onSearch: onSearch,
2926
- isMulti: isMulti,
2927
- onSelectAll: onSelectAll,
2928
- onClearAll: onClearAll,
2929
- isSelectAll: isSelectAll,
2930
- selectedOptions: selectedOptions,
2931
- isWithSelectAll: isWithSelectAll,
2932
- isWithSearch: isWithSearch
2933
- }), /*#__PURE__*/jsxRuntime.jsx(StyledSelect, _objectSpread$9({
2934
- isMulti: isMulti,
2935
- classNamePrefix: "multi-select",
2936
- autoFocus: true,
2937
- backspaceRemovesValue: false,
2938
- components: {
2939
- IndicatorSeparator: null,
2940
- Option: Option,
2941
- MenuList: MenuList
2942
- },
2943
- controlShouldRenderValue: true,
2944
- hideSelectedOptions: false,
2945
- isClearable: false,
2946
- menuIsOpen: true,
2947
- tabSelectsValue: false,
2948
- onChange: onChange,
2949
- options: currentOptions,
2950
- placeholder: "Search...",
2951
- value: selectedOptions,
2952
- styles: selectStyles
2953
- }, props))]
2954
- })]
2955
- });
2956
- };
2957
- var Option = function Option(_ref2) {
2958
- var isLoadingOption = _ref2.isLoadingOption,
2959
- props = _objectWithoutProperties(_ref2, ["isLoadingOption"]);
2960
- return /*#__PURE__*/jsxRuntime.jsx(Select$1.components.Option, _objectSpread$9(_objectSpread$9({}, props), {}, {
2961
- children: props.selectProps.isMulti ? /*#__PURE__*/jsxRuntime.jsx(Checkbox, {
2962
- label: props.label,
2963
- checked: props.isSelected,
2964
- onChange: function onChange() {
2965
- return null;
2966
- },
2967
- disabled: isLoadingOption
2968
- }) : props.label
2969
- }));
2970
- };
2971
-
2972
- function _templateObject12$4() {
2973
- var data = _taggedTemplateLiteral(["\n display: none;\n "]);
2974
- _templateObject12$4 = function _templateObject12() {
2975
- return data;
2976
- };
2977
- return data;
2978
- }
2979
- function _templateObject11$5() {
2980
- var data = _taggedTemplateLiteral(["\n padding-top: 8px;\n ", "\n"]);
2981
- _templateObject11$5 = function _templateObject11() {
2982
- return data;
2983
- };
2984
- return data;
2985
- }
2986
- function _templateObject10$6() {
2987
- var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"]);
2988
- _templateObject10$6 = function _templateObject10() {
2989
- return data;
2990
- };
2991
- return data;
2992
- }
2993
- function _templateObject9$6() {
2994
- var data = _taggedTemplateLiteral(["\n transform: rotate(0deg);\n "]);
2995
- _templateObject9$6 = function _templateObject9() {
2996
- return data;
2997
- };
2998
- return data;
2999
- }
3000
- function _templateObject8$7() {
3001
- var data = _taggedTemplateLiteral(["\n background: url(", ") no-repeat;\n width: 10px;\n background-size: 10px;\n height: 10px;\n display: inline-block;\n transform: rotate(180deg);\n background-position: center;\n margin-left: 10px;\n ", "\n"]);
3002
- _templateObject8$7 = function _templateObject8() {
3003
- return data;
3004
- };
3005
- return data;
3006
- }
3007
- function _templateObject7$7() {
3008
- var data = _taggedTemplateLiteral(["\n font-weight: 400;\n "]);
3009
- _templateObject7$7 = function _templateObject7() {
3010
- return data;
3011
- };
3012
- return data;
3013
- }
3014
- function _templateObject6$7() {
3015
- var data = _taggedTemplateLiteral(["\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n font-size: 14px;\n }\n ", "\n"]);
3016
- _templateObject6$7 = function _templateObject6() {
3017
- return data;
3018
- };
3019
- return data;
3020
- }
3021
- function _templateObject5$9() {
3022
- var data = _taggedTemplateLiteral(["\n border-top: 1px solid ", ";\n padding-top: 8px;\n"]);
3023
- _templateObject5$9 = function _templateObject5() {
3024
- return data;
3025
- };
3026
- return data;
3027
- }
3028
- function _templateObject4$a() {
3029
- var data = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "]);
3030
- _templateObject4$a = function _templateObject4() {
3031
- return data;
3032
- };
3033
- return data;
3034
- }
3035
- function _templateObject3$b() {
3036
- var data = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px solid ", " !important;\n cursor: default !important;\n pointer-events: none;\n &:hover {\n border: 1px solid ", ";\n }\n "]);
3037
- _templateObject3$b = function _templateObject3() {
3038
- return data;
3039
- };
3040
- return data;
3041
- }
3042
- function _templateObject2$b() {
3043
- var data = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px solid ", " !important;\n cursor: default !important;\n pointer-events: none;\n &:hover {\n border: 1px solid ", ";\n }\n "]);
3044
- _templateObject2$b = function _templateObject2() {
3045
- return data;
3046
- };
3047
- return data;
3048
- }
3049
- function _templateObject$b() {
3050
- var data = _taggedTemplateLiteral(["\n padding: 12px 24px;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n width: 100%;\n &:hover {\n border: 1px solid ", ";\n }\n &:focus {\n box-shadow: 0 0 0 3px ", ";\n }\n\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n padding: 8px 14px;\n font-size: 12px;\n }\n\n ", "\n\n ", "\n ", "\n"]);
3051
- _templateObject$b = function _templateObject() {
3052
- return data;
3053
- };
3054
- return data;
3055
- }
3056
- var StyledAccordionMainContainer = styled__default.div(_templateObject$b(), PrimaryBlueColor, PrimaryBlueColor, FocusBackgroundColor, function (props) {
3057
- switch (props.variant) {
3058
- case "disabled":
3059
- return styled.css(_templateObject2$b(), DisabledTextareaBg, FocusDisableBorderColor, FocusDisableBorderColor);
3060
- }
3061
- }, function (props) {
3062
- return props.disabled && styled.css(_templateObject3$b(), DisabledTextareaBg, FocusDisableBorderColor, FocusDisableBorderColor);
3063
- }, function (props) {
3064
- return !props.isOpen && styled.css(_templateObject4$a(), DefaultColorButton);
3065
- });
3066
- var StyledAccordionContainerText = styled__default.div(_templateObject5$9(), DefaultColorButton);
3067
- var StyledAccordionLabel = styled__default.span(_templateObject6$7(), function (props) {
3068
- return !props.isOpen && styled.css(_templateObject7$7());
3069
- });
3070
- var StyledAccordionChevron = styled__default.i(_templateObject8$7(), ChevronImage, function (props) {
3071
- return !props.isOpen && styled.css(_templateObject9$6());
3072
- });
3073
- var StyledAccordionHeading = styled__default.div(_templateObject10$6());
3074
- var StyledAccordionBodyContainer = styled__default.div(_templateObject11$5(), function (props) {
3075
- return !props.isOpen && styled.css(_templateObject12$4());
3076
- });
3077
-
3078
- function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3079
- function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3080
- var AccordionComponent = function AccordionComponent(_ref) {
3081
- var isOpen = _ref.isOpen,
3082
- label = _ref.label,
3083
- onChange = _ref.onChange,
3084
- disabled = _ref.disabled,
3085
- children = _ref.children;
3086
- return /*#__PURE__*/jsxRuntime.jsxs(StyledAccordionMainContainer, {
3087
- isOpen: isOpen,
3088
- disabled: disabled,
3089
- children: [/*#__PURE__*/jsxRuntime.jsxs(StyledAccordionHeading, {
3090
- onClick: function onClick() {
3091
- return onChange();
3092
- },
3093
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledAccordionLabel, {
3094
- isOpen: isOpen,
3095
- children: label
3096
- }), /*#__PURE__*/jsxRuntime.jsx(StyledAccordionChevron, {
3097
- isOpen: isOpen
3098
- })]
3099
- }), /*#__PURE__*/jsxRuntime.jsx(StyledAccordionBodyContainer, {
3100
- isOpen: isOpen,
3101
- children: /*#__PURE__*/jsxRuntime.jsx(StyledAccordionContainerText, {
3102
- children: children
3103
- })
3104
- })]
3105
- });
3106
- };
3107
- var Accordion = function Accordion(_ref2) {
3108
- var isExpanded = _ref2.isExpanded,
3109
- defaultExpanded = _ref2.defaultExpanded,
3110
- onChange = _ref2.onChange,
3111
- props = _objectWithoutProperties(_ref2, ["isExpanded", "defaultExpanded", "onChange"]);
3112
- var _useState = React.useState(defaultExpanded),
3113
- _useState2 = _slicedToArray(_useState, 2),
3114
- isOpen = _useState2[0],
3115
- setIsOpen = _useState2[1];
3116
- var initialRender = React.useRef(true);
3117
- React.useEffect(function () {
3118
- if (initialRender.current) {
3119
- initialRender.current = false;
3359
+ props.onDropdownOpen();
3120
3360
  } else {
3121
- if (onChange) {
3122
- onChange(isOpen);
3123
- }
3361
+ setIsOpen(function (prev) {
3362
+ return !prev;
3363
+ });
3124
3364
  }
3125
- }, [isOpen]);
3126
- var handleAccordionAction = function handleAccordionAction() {
3127
- setIsOpen(function (prevState) {
3128
- return !prevState;
3365
+ };
3366
+ var onKeyDown = function onKeyDown(e) {
3367
+ var searchResults = Array.from(document.getElementsByClassName("multi-select__option"));
3368
+ if (e.keyCode === 40 && focusedIndex.current + 1 < currentOptions.length) {
3369
+ focusedIndex.current = focusedIndex.current + 1;
3370
+ }
3371
+ if (e.keyCode === 38 && focusedIndex.current - 1 >= 0) {
3372
+ focusedIndex.current = focusedIndex.current - 1;
3373
+ }
3374
+ searchResults.forEach(function (element, index) {
3375
+ var classList = element.classList.value;
3376
+ if (index === focusedIndex.current) {
3377
+ element.className = "multi-select__option--is-focused " + classList;
3378
+ } else {
3379
+ element.classList.remove("multi-select__option--is-focused");
3380
+ }
3129
3381
  });
3382
+ if (e.keyCode === 13) {
3383
+ //When a enter key is pressed, currently focused element would be selected
3384
+ if (focusedIndex.current > 0) {
3385
+ searchResults[focusedIndex.current].click();
3386
+ } else if (focusedIndex.current === 0) {
3387
+ searchResults[0].click();
3388
+ }
3389
+ }
3130
3390
  };
3131
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
3132
- children: isExpanded !== undefined ?
3133
- /*#__PURE__*/
3134
- // controlled
3135
- jsxRuntime.jsx(AccordionComponent, _objectSpread$a({
3136
- isOpen: isExpanded,
3137
- onChange: onChange
3138
- }, props)) :
3139
- /*#__PURE__*/
3140
- // uncontrolled
3141
- jsxRuntime.jsx(AccordionComponent, _objectSpread$a({
3391
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledDDMainContainer, {
3392
+ className: "select-main-container",
3393
+ labelOrientation: labelOrientation,
3394
+ ref: containerRef,
3395
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledDDLabelContainer, {
3396
+ className: "select-label",
3397
+ children: label
3398
+ }), /*#__PURE__*/jsxRuntime.jsxs(Dropdown, {
3142
3399
  isOpen: isOpen,
3143
- onChange: handleAccordionAction
3144
- }, props))
3400
+ onClose: onDropdownClose,
3401
+ disabled: props.disabled,
3402
+ containerRef: containerRef,
3403
+ withPortal: withPortal,
3404
+ portalContainer: portalContainer,
3405
+ dropdownButtonRef: dropdownButtonRef,
3406
+ target: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
3407
+ children: [/*#__PURE__*/jsxRuntime.jsxs(StyledDropdownMainButton, {
3408
+ variant: "primary",
3409
+ disabled: props.disabled,
3410
+ onClick: isOpen ? onDropdownClose : onDropdownOpen,
3411
+ isSelected: Object.entries(selectedOptions).length > 0,
3412
+ isAgGridCellRenderer: isAgGridCellRenderer,
3413
+ isOpen: isOpen,
3414
+ onKeyDown: !isWithSearch ? onKeyDown : undefined,
3415
+ className: "select-button",
3416
+ ref: dropdownButtonRef,
3417
+ children: [getPlaceholder(), /*#__PURE__*/jsxRuntime.jsx(StyledChevronIcon, {
3418
+ isOpen: isOpen
3419
+ })]
3420
+ }), isMulti && isWithSelectedOptionTags && /*#__PURE__*/jsxRuntime.jsx(SelectedOptionsTags, {
3421
+ selectedOptions: selectedOptions,
3422
+ onChange: onChange
3423
+ })]
3424
+ }),
3425
+ children: [/*#__PURE__*/jsxRuntime.jsx(Filters, {
3426
+ ref: searchBarRef,
3427
+ onSearch: onSearch,
3428
+ isMulti: isMulti,
3429
+ onSelectAll: onSelectAll,
3430
+ onClearAll: onClearAll,
3431
+ isSelectAll: isSelectAll,
3432
+ selectedOptions: selectedOptions,
3433
+ isWithSelectAll: isWithSelectAll,
3434
+ isWithSearch: isWithSearch,
3435
+ onKeyDown: onKeyDown
3436
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledSelect, _objectSpread$9({
3437
+ isMulti: isMulti,
3438
+ classNamePrefix: "multi-select",
3439
+ autoFocus: true,
3440
+ backspaceRemovesValue: false,
3441
+ components: {
3442
+ IndicatorSeparator: null,
3443
+ Option: Option,
3444
+ MenuList: MenuList
3445
+ },
3446
+ controlShouldRenderValue: true,
3447
+ hideSelectedOptions: false,
3448
+ isClearable: false,
3449
+ menuIsOpen: true,
3450
+ tabSelectsValue: false,
3451
+ onChange: onChange,
3452
+ options: currentOptions,
3453
+ placeholder: "Search...",
3454
+ value: selectedOptions,
3455
+ styles: selectStyles,
3456
+ onMenuScrollToBottom: onMenuScrollToBottom
3457
+ }, props))]
3458
+ })]
3145
3459
  });
3146
3460
  };
3147
-
3148
- function _templateObject$c() {
3149
- var data = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: 4px;\n height: 37px;\n display: flex;\n width: max-content;\n\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: ", ";\n }\n\n ", " {\n /* color: ", "; */\n border-radius: 0px;\n /* background: ", "; */\n border: none;\n border-right: 1px solid ", ";\n &:focus {\n box-shadow: none;\n }\n /* &:hover {\n background: ", ";\n } */\n &:first-child {\n border-radius: 3px 0 0 3px;\n }\n &:last-child {\n border-right: none;\n border-radius: 0px 3px 3px 0px;\n }\n }\n"]);
3150
- _templateObject$c = function _templateObject() {
3151
- return data;
3152
- };
3153
- return data;
3154
- }
3155
- var StyledButtonGroup = styled__default.div(_templateObject$c(), DefaultColorButton, LOW_RES_NORMAL_BUTTON_HEIGHT, StyledButton, CheckBoxBorder, WhiteColor, DefaultColorButton, FocusBackgroundColor);
3156
-
3157
- var ButtonGroup = function ButtonGroup(_ref) {
3158
- var children = _ref.children,
3159
- activeIndex = _ref.activeIndex;
3160
- return /*#__PURE__*/jsxRuntime.jsx(StyledButtonGroup, {
3161
- children: children.map(function (child, index) {
3162
- return /*#__PURE__*/React__default.isValidElement(child) && /*#__PURE__*/React__default.cloneElement(child, {
3163
- variant: "secondary",
3164
- key: index
3165
- });
3166
- })
3167
- });
3461
+ var Option = function Option(_ref2) {
3462
+ var isLoadingOption = _ref2.isLoadingOption,
3463
+ props = _objectWithoutProperties(_ref2, ["isLoadingOption"]);
3464
+ return /*#__PURE__*/jsxRuntime.jsx(Select$1.components.Option, _objectSpread$9(_objectSpread$9({}, props), {}, {
3465
+ children: props.selectProps.isMulti ? /*#__PURE__*/jsxRuntime.jsx(Checkbox, {
3466
+ label: props.label,
3467
+ checked: props.isSelected,
3468
+ onChange: function onChange() {
3469
+ return null;
3470
+ },
3471
+ disabled: isLoadingOption
3472
+ }) : props.label
3473
+ }));
3168
3474
  };
3169
3475
 
3170
- function _templateObject17$2() {
3171
- var data = _taggedTemplateLiteral([""]);
3172
- _templateObject17$2 = function _templateObject17() {
3173
- return data;
3174
- };
3175
- return data;
3176
- }
3177
- function _templateObject16$2() {
3178
- var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: 10px;\n top: auto;\n bottom: -6px;\n transform: rotate(-180deg);\n }\n "]);
3179
- _templateObject16$2 = function _templateObject16() {
3180
- return data;
3181
- };
3182
- return data;
3183
- }
3184
- function _templateObject15$2() {
3185
- var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: 10px;\n top: auto;\n bottom: -6px;\n transform: rotate(-180deg);\n }\n "]);
3186
- _templateObject15$2 = function _templateObject15() {
3187
- return data;
3188
- };
3189
- return data;
3190
- }
3191
- function _templateObject14$3() {
3192
- var data = _taggedTemplateLiteral(["\n &::after {\n left: 0px;\n right: 0px;\n }\n "]);
3193
- _templateObject14$3 = function _templateObject14() {
3194
- return data;
3195
- };
3196
- return data;
3197
- }
3198
- function _templateObject13$3() {
3199
- var data = _taggedTemplateLiteral(["\n &::after {\n left: 10px;\n right: auto;\n top: auto;\n bottom: -6px;\n transform: rotate(-180deg);\n }\n "]);
3200
- _templateObject13$3 = function _templateObject13() {
3201
- return data;
3202
- };
3203
- return data;
3204
- }
3205
3476
  function _templateObject12$5() {
3206
- var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: -9px;\n top: auto;\n bottom: 10px;\n transform: rotate(90deg);\n }\n "]);
3477
+ var data = _taggedTemplateLiteral(["\n display: none;\n "]);
3207
3478
  _templateObject12$5 = function _templateObject12() {
3208
3479
  return data;
3209
3480
  };
3210
3481
  return data;
3211
3482
  }
3212
3483
  function _templateObject11$6() {
3213
- var data = _taggedTemplateLiteral(["\n &::after {\n left: -9px;\n right: auto;\n top: 0px;\n bottom: 0;\n transform: rotate(-90deg);\n }\n "]);
3484
+ var data = _taggedTemplateLiteral(["\n padding: 0 24px 12px;\n padding-top: 8px;\n ", "\n"]);
3214
3485
  _templateObject11$6 = function _templateObject11() {
3215
3486
  return data;
3216
3487
  };
3217
3488
  return data;
3218
3489
  }
3219
3490
  function _templateObject10$7() {
3220
- var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: -9px;\n top: 10px;\n bottom: auto;\n transform: rotate(90deg);\n }\n "]);
3491
+ var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n padding: 12px 24px 0px 24px;\n padding-bottom: ", ";\n z-index: 1;\n position: relative;\n cursor: pointer;\n"]);
3221
3492
  _templateObject10$7 = function _templateObject10() {
3222
3493
  return data;
3223
3494
  };
3224
3495
  return data;
3225
3496
  }
3226
3497
  function _templateObject9$7() {
3227
- var data = _taggedTemplateLiteral(["\n &::after {\n left: -9px;\n right: auto;\n top: auto;\n bottom: 10px;\n transform: rotate(-90deg);\n }\n "]);
3498
+ var data = _taggedTemplateLiteral(["\n transform: rotate(0deg);\n "]);
3228
3499
  _templateObject9$7 = function _templateObject9() {
3229
3500
  return data;
3230
3501
  };
3231
3502
  return data;
3232
3503
  }
3233
3504
  function _templateObject8$8() {
3234
- var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: -9px;\n top: 0px;\n bottom: 0px;\n transform: rotate(90deg);\n }\n "]);
3505
+ var data = _taggedTemplateLiteral(["\n background: url(", ") no-repeat;\n width: 10px;\n background-size: 10px;\n height: 10px;\n display: inline-block;\n transform: rotate(180deg);\n background-position: center;\n margin-left: 10px;\n ", "\n"]);
3235
3506
  _templateObject8$8 = function _templateObject8() {
3236
3507
  return data;
3237
3508
  };
3238
3509
  return data;
3239
3510
  }
3240
3511
  function _templateObject7$8() {
3241
- var data = _taggedTemplateLiteral(["\n &::after {\n left: -9px;\n right: auto;\n top: 10px;\n transform: rotate(-90deg);\n }\n "]);
3512
+ var data = _taggedTemplateLiteral(["\n font-weight: 400;\n "]);
3242
3513
  _templateObject7$8 = function _templateObject7() {
3243
3514
  return data;
3244
3515
  };
3245
3516
  return data;
3246
3517
  }
3247
3518
  function _templateObject6$8() {
3248
- var data = _taggedTemplateLiteral(["\n &::after {\n left: auto;\n right: 10px;\n }\n "]);
3519
+ var data = _taggedTemplateLiteral(["\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n font-size: 14px;\n }\n ", "\n"]);
3249
3520
  _templateObject6$8 = function _templateObject6() {
3250
3521
  return data;
3251
3522
  };
3252
3523
  return data;
3253
3524
  }
3254
3525
  function _templateObject5$a() {
3255
- var data = _taggedTemplateLiteral(["\n &::after {\n left: 0px;\n right: 0px;\n top: auto;\n bottom: -6px;\n transform: rotate(-180deg);\n }\n "]);
3526
+ var data = _taggedTemplateLiteral(["\n border-top: 1px solid ", ";\n padding-top: 8px;\n"]);
3256
3527
  _templateObject5$a = function _templateObject5() {
3257
3528
  return data;
3258
3529
  };
3259
3530
  return data;
3260
3531
  }
3261
3532
  function _templateObject4$b() {
3262
- var data = _taggedTemplateLiteral(["\n &::after {\n left: 10px;\n right: auto;\n }\n "]);
3533
+ var data = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "]);
3263
3534
  _templateObject4$b = function _templateObject4() {
3264
3535
  return data;
3265
3536
  };
3266
3537
  return data;
3267
3538
  }
3268
3539
  function _templateObject3$c() {
3269
- var data = _taggedTemplateLiteral([""]);
3540
+ var data = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px solid ", " !important;\n cursor: default !important;\n pointer-events: none;\n &:hover {\n border: 1px solid ", ";\n }\n "]);
3270
3541
  _templateObject3$c = function _templateObject3() {
3271
3542
  return data;
3272
3543
  };
3273
3544
  return data;
3274
3545
  }
3275
3546
  function _templateObject2$c() {
3276
- var data = _taggedTemplateLiteral(["\n background: ", ";\n padding: 8px 16px;\n border-radius: 4px;\n max-width: 300px;\n position: fixed;\n color: ", ";\n z-index: ", ";\n font-size: 14px;\n line-height: 21px;\n visibility: ", ";\n top: ", "px;\n left: ", "px;\n &::after {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid ", ";\n content: \" \";\n position: absolute;\n left: 0;\n right: 0;\n margin: auto;\n top: -6px;\n }\n ", "\n"]);
3547
+ var data = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px solid ", " !important;\n cursor: default !important;\n pointer-events: none;\n &:hover {\n border: 1px solid ", ";\n }\n "]);
3277
3548
  _templateObject2$c = function _templateObject2() {
3278
3549
  return data;
3279
3550
  };
3280
3551
  return data;
3281
3552
  }
3282
- function _templateObject$d() {
3283
- var data = _taggedTemplateLiteral([""]);
3284
- _templateObject$d = function _templateObject() {
3553
+ function _templateObject$c() {
3554
+ var data = _taggedTemplateLiteral(["\n border-radius: 4px;\n border: 1px solid ", ";\n width: 100%;\n &:hover {\n border: 1px solid ", ";\n }\n &:focus {\n box-shadow: 0 0 0 3px ", ";\n }\n\n //Low Resolution CSS starts\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n padding: 8px 14px;\n font-size: 12px;\n }\n\n ", "\n\n ", "\n ", "\n"]);
3555
+ _templateObject$c = function _templateObject() {
3285
3556
  return data;
3286
3557
  };
3287
3558
  return data;
3288
3559
  }
3289
- var StyledTooltipContainer = styled__default.div(_templateObject$d());
3290
- var StyledTooltip = styled__default.div(_templateObject2$c(), TooltipBackgroundColor, WhiteColor, function (props) {
3291
- return props.zIndex;
3292
- }, function (props) {
3293
- return props.displayTooltip ? "visible" : "hidden";
3560
+ var StyledAccordionMainContainer = styled__default.div(_templateObject$c(), PrimaryBlueColor, PrimaryBlueColor, FocusBackgroundColor, function (props) {
3561
+ switch (props.variant) {
3562
+ case "disabled":
3563
+ return styled.css(_templateObject2$c(), DisabledTextareaBg, FocusDisableBorderColor, FocusDisableBorderColor);
3564
+ }
3294
3565
  }, function (props) {
3295
- return props.positionRef.current.y;
3566
+ return props.disabled && styled.css(_templateObject3$c(), DisabledTextareaBg, FocusDisableBorderColor, FocusDisableBorderColor);
3296
3567
  }, function (props) {
3297
- return props.positionRef.current.x;
3298
- }, TooltipBackgroundColor, function (props) {
3299
- switch (props.placement) {
3300
- case "default":
3301
- return styled.css(_templateObject3$c());
3302
- case "bottom-start":
3303
- return styled.css(_templateObject4$b());
3304
- case "top":
3305
- return styled.css(_templateObject5$a());
3306
- case "bottom-end":
3307
- return styled.css(_templateObject6$8());
3308
- case "right-start":
3309
- return styled.css(_templateObject7$8());
3310
- case "left":
3311
- return styled.css(_templateObject8$8());
3312
- case "right-end":
3313
- //changed
3314
- return styled.css(_templateObject9$7());
3315
- case "left-start":
3316
- return styled.css(_templateObject10$7());
3317
- case "right":
3318
- return styled.css(_templateObject11$6());
3319
- case "left-end":
3320
- //changed
3321
- return styled.css(_templateObject12$5());
3322
- case "top-start":
3323
- //changed
3324
- return styled.css(_templateObject13$3());
3325
- case "bottom":
3326
- return styled.css(_templateObject14$3());
3327
- case "bottom-end":
3328
- return styled.css(_templateObject15$2());
3329
- case "top-end":
3330
- return styled.css(_templateObject16$2());
3331
- default:
3332
- return styled.css(_templateObject17$2());
3333
- }
3568
+ return !props.isOpen && styled.css(_templateObject4$b(), DefaultColorButton);
3334
3569
  });
3335
-
3336
- function Portal$1(props) {
3337
- return /*#__PURE__*/ReactDOM.createPortal(props.children, props.container);
3338
- }
3339
- var point = function point() {
3340
- return {
3341
- x: null,
3342
- y: null
3343
- };
3344
- };
3345
- var getTooltipCoordinates = function getTooltipCoordinates(tooltipElement,
3346
- //element on which tooltip is renderTooltip
3347
- tooltipRef, placement, space) {
3348
- var tooltipPosition = point();
3349
- var tooltipElementRect = tooltipElement.getBoundingClientRect();
3350
- switch (placement) {
3351
- case "left":
3352
- tooltipPosition.x = tooltipElementRect.left - (tooltipRef.offsetWidth + space);
3353
- tooltipPosition.y = tooltipElementRect.top + (tooltipElement.offsetHeight - tooltipRef.offsetHeight) / 2;
3354
- break;
3355
- case "left-start":
3356
- tooltipPosition.x = tooltipElementRect.left - (tooltipRef.offsetWidth + space);
3357
- tooltipPosition.y = tooltipElementRect.top;
3358
- break;
3359
- case "left-end":
3360
- tooltipPosition.x = tooltipElementRect.left - (tooltipRef.offsetWidth + space);
3361
- tooltipPosition.y = tooltipElementRect.bottom - tooltipRef.offsetHeight;
3362
- break;
3363
- case "right":
3364
- tooltipPosition.x = tooltipElementRect.right + space;
3365
- tooltipPosition.y = tooltipElementRect.top + (tooltipElement.offsetHeight - tooltipRef.offsetHeight) / 2;
3366
- break;
3367
- case "right-start":
3368
- tooltipPosition.x = tooltipElementRect.right + space;
3369
- tooltipPosition.y = tooltipElementRect.top;
3370
- break;
3371
- case "right-end":
3372
- tooltipPosition.x = tooltipElementRect.right + space;
3373
- tooltipPosition.y = tooltipElementRect.bottom - tooltipRef.offsetHeight;
3374
- break;
3375
- case "top":
3376
- tooltipPosition.x = tooltipElementRect.left + (tooltipElement.offsetWidth - tooltipRef.offsetWidth) / 2;
3377
- tooltipPosition.y = tooltipElementRect.top - (tooltipRef.offsetHeight + space);
3378
- break;
3379
- case "top-start":
3380
- tooltipPosition.x = tooltipElementRect.left;
3381
- tooltipPosition.y = tooltipElementRect.top - (tooltipRef.offsetHeight + space);
3382
- break;
3383
- case "top-end":
3384
- tooltipPosition.x = tooltipElementRect.right - tooltipRef.offsetWidth;
3385
- tooltipPosition.y = tooltipElementRect.top - (tooltipRef.offsetHeight + space);
3386
- break;
3387
- case "bottom":
3388
- tooltipPosition.x = tooltipElementRect.left + (tooltipElement.offsetWidth - tooltipRef.offsetWidth) / 2;
3389
- tooltipPosition.y = tooltipElementRect.bottom + space;
3390
- break;
3391
- case "bottom-start":
3392
- tooltipPosition.x = tooltipElementRect.left;
3393
- tooltipPosition.y = tooltipElementRect.bottom + space;
3394
- break;
3395
- case "bottom-end":
3396
- tooltipPosition.x = tooltipElementRect.right - tooltipRef.offsetWidth;
3397
- tooltipPosition.y = tooltipElementRect.bottom + space;
3398
- break;
3399
- }
3400
- return tooltipPosition;
3401
- };
3402
- var Tooltip = function Tooltip(_ref) {
3403
- var text = _ref.text,
3404
- _ref$placement = _ref.placement,
3405
- placement = _ref$placement === void 0 ? "bottom" : _ref$placement,
3406
- _ref$space = _ref.space,
3407
- space = _ref$space === void 0 ? 15 : _ref$space,
3570
+ var StyledAccordionContainerText = styled__default.div(_templateObject5$a(), DefaultColorButton);
3571
+ var StyledAccordionLabel = styled__default.span(_templateObject6$8(), function (props) {
3572
+ return !props.isOpen && styled.css(_templateObject7$8());
3573
+ });
3574
+ var StyledAccordionChevron = styled__default.i(_templateObject8$8(), ChevronImage, function (props) {
3575
+ return !props.isOpen && styled.css(_templateObject9$7());
3576
+ });
3577
+ var StyledAccordionHeading = styled__default.div(_templateObject10$7(), function (props) {
3578
+ return !props.isOpen ? "12px" : "0px";
3579
+ });
3580
+ var StyledAccordionBodyContainer = styled__default.div(_templateObject11$6(), function (props) {
3581
+ return !props.isOpen && styled.css(_templateObject12$5());
3582
+ });
3583
+
3584
+ function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3585
+ function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3586
+ var AccordionComponent = function AccordionComponent(_ref) {
3587
+ var isOpen = _ref.isOpen,
3588
+ label = _ref.label,
3589
+ onChange = _ref.onChange,
3590
+ disabled = _ref.disabled,
3408
3591
  children = _ref.children,
3409
- _ref$disabled = _ref.disabled,
3410
- disabled = _ref$disabled === void 0 ? 0 : _ref$disabled,
3411
- _ref$container = _ref.container,
3412
- container = _ref$container === void 0 ? document.body : _ref$container,
3413
- _ref$zIndex = _ref.zIndex,
3414
- zIndex = _ref$zIndex === void 0 ? VERY_HIGH : _ref$zIndex;
3415
- var _useState = React.useState(false),
3592
+ accRef = _ref.accRef,
3593
+ className = _ref.className,
3594
+ props = _objectWithoutProperties(_ref, ["isOpen", "label", "onChange", "disabled", "children", "accRef", "className"]);
3595
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledAccordionMainContainer, _objectSpread$a(_objectSpread$a({
3596
+ isOpen: isOpen,
3597
+ disabled: disabled,
3598
+ ref: accRef,
3599
+ className: "".concat(className ? className : "", " accordion-container")
3600
+ }, props), {}, {
3601
+ children: [/*#__PURE__*/jsxRuntime.jsxs(StyledAccordionHeading, {
3602
+ onClick: function onClick() {
3603
+ return onChange();
3604
+ },
3605
+ isOpen: isOpen,
3606
+ className: "accordion-heading",
3607
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledAccordionLabel, {
3608
+ isOpen: isOpen,
3609
+ className: "accordion-label",
3610
+ children: label
3611
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledAccordionChevron, {
3612
+ isOpen: isOpen
3613
+ })]
3614
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledAccordionBodyContainer, {
3615
+ isOpen: isOpen,
3616
+ className: "accordion-body-container",
3617
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledAccordionContainerText, {
3618
+ className: "accordion-body",
3619
+ children: children
3620
+ })
3621
+ })]
3622
+ }));
3623
+ };
3624
+ var Accordion = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
3625
+ var isExpanded = _ref2.isExpanded,
3626
+ defaultExpanded = _ref2.defaultExpanded,
3627
+ onChange = _ref2.onChange,
3628
+ props = _objectWithoutProperties(_ref2, ["isExpanded", "defaultExpanded", "onChange"]);
3629
+ var _useState = React.useState(defaultExpanded),
3416
3630
  _useState2 = _slicedToArray(_useState, 2),
3417
- renderTooltip = _useState2[0],
3418
- setRenderTooltip = _useState2[1]; // render the tooltip so that its coords can be set
3419
- var _useState3 = React.useState(false),
3420
- _useState4 = _slicedToArray(_useState3, 2),
3421
- displayTooltip = _useState4[0],
3422
- setDisplayTooltip = _useState4[1]; // display tooltip only after the coords are set to avoid display at x=0, y=0 (default tooltipRef value)
3423
- var positionRef = React.useRef({
3424
- x: null,
3425
- y: null
3426
- });
3427
- var tooltipRef = React.useRef();
3428
- var containerRef = React.useRef(null);
3631
+ isOpen = _useState2[0],
3632
+ setIsOpen = _useState2[1];
3633
+ var initialRender = React.useRef(true);
3429
3634
  React.useEffect(function () {
3430
- if (renderTooltip) {
3431
- positionRef.current = getTooltipCoordinates(containerRef.current, tooltipRef.current, placement, space);
3432
- setDisplayTooltip(true);
3635
+ if (initialRender.current) {
3636
+ initialRender.current = false;
3637
+ } else {
3638
+ if (onChange) {
3639
+ onChange(isOpen);
3640
+ }
3433
3641
  }
3434
- }, [renderTooltip]);
3435
- var handleMouseOver = function handleMouseOver(e) {
3436
- if (disabled) return;
3437
- setRenderTooltip(true);
3438
- };
3439
- var handleMouseLeave = function handleMouseLeave() {
3440
- if (disabled) return;
3441
- setRenderTooltip(false);
3442
- setDisplayTooltip(false);
3642
+ }, [isOpen]);
3643
+ var handleAccordionAction = function handleAccordionAction() {
3644
+ setIsOpen(function (prevState) {
3645
+ return !prevState;
3646
+ });
3443
3647
  };
3444
- return /*#__PURE__*/jsxRuntime.jsxs(StyledTooltipContainer, {
3445
- onMouseOver: handleMouseOver,
3446
- onMouseLeave: handleMouseLeave,
3447
- ref: containerRef,
3448
- children: [children, renderTooltip && !disabled && /*#__PURE__*/jsxRuntime.jsx(Portal$1, {
3449
- container: container,
3450
- children: /*#__PURE__*/jsxRuntime.jsx(StyledTooltip, {
3451
- ref: tooltipRef,
3452
- positionRef: positionRef,
3453
- displayTooltip: displayTooltip,
3454
- placement: placement,
3455
- zIndex: zIndex,
3456
- children: text
3457
- })
3458
- })]
3648
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
3649
+ children: isExpanded !== undefined ?
3650
+ /*#__PURE__*/
3651
+ // controlled
3652
+ jsxRuntime.jsx(AccordionComponent, _objectSpread$a({
3653
+ isOpen: isExpanded,
3654
+ onChange: onChange,
3655
+ accRef: ref
3656
+ }, props)) :
3657
+ /*#__PURE__*/
3658
+ // uncontrolled
3659
+ jsxRuntime.jsx(AccordionComponent, _objectSpread$a({
3660
+ isOpen: isOpen,
3661
+ onChange: handleAccordionAction,
3662
+ accRef: ref
3663
+ }, props))
3459
3664
  });
3460
- };
3665
+ });
3666
+
3667
+ function _templateObject$d() {
3668
+ var data = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: 4px;\n height: 37px;\n display: flex;\n width: max-content;\n\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n height: ", ";\n }\n\n ", " {\n /* color: ", "; */\n border-radius: 0px;\n /* background: ", "; */\n border: none;\n border-right: 1px solid ", ";\n &:focus {\n box-shadow: none;\n }\n /* &:hover {\n background: ", ";\n } */\n &:first-child {\n border-radius: 3px 0 0 3px;\n }\n &:last-child {\n border-right: none;\n border-radius: 0px 3px 3px 0px;\n }\n }\n"]);
3669
+ _templateObject$d = function _templateObject() {
3670
+ return data;
3671
+ };
3672
+ return data;
3673
+ }
3674
+ var StyledButtonGroup = styled__default.div(_templateObject$d(), DefaultColorButton, LOW_RES_NORMAL_BUTTON_HEIGHT, StyledButton, CheckBoxBorder, WhiteColor, DefaultColorButton, FocusBackgroundColor);
3675
+
3676
+ function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3677
+ function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3678
+ var ButtonGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3679
+ var children = _ref.children,
3680
+ props = _objectWithoutProperties(_ref, ["children"]);
3681
+ return /*#__PURE__*/jsxRuntime.jsx(StyledButtonGroup, _objectSpread$b(_objectSpread$b({
3682
+ ref: ref
3683
+ }, props), {}, {
3684
+ children: children.map(function (child, index) {
3685
+ return /*#__PURE__*/React__default.isValidElement(child) && /*#__PURE__*/React__default.cloneElement(child, {
3686
+ variant: "secondary",
3687
+ key: index
3688
+ });
3689
+ })
3690
+ }));
3691
+ });
3461
3692
 
3462
3693
  function _templateObject9$8() {
3463
3694
  var data = _taggedTemplateLiteral(["\n ", " {\n background: ", ";\n }\n ", " {\n color: ", ";\n }\n "]);
@@ -3544,7 +3775,7 @@
3544
3775
  }
3545
3776
  });
3546
3777
 
3547
- var ProgressBar = function ProgressBar(_ref) {
3778
+ var ProgressBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3548
3779
  var label = _ref.label,
3549
3780
  progress = _ref.progress,
3550
3781
  _ref$variant = _ref.variant,
@@ -3555,17 +3786,23 @@
3555
3786
  return /*#__PURE__*/jsxRuntime.jsxs(StyledProgressBarMainContainer, {
3556
3787
  variant: variant,
3557
3788
  status: status,
3789
+ className: "progressBar-main-container",
3790
+ ref: ref,
3558
3791
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledProgressBarLabel, {
3792
+ className: "progressBar-label",
3559
3793
  children: label
3560
3794
  }), /*#__PURE__*/jsxRuntime.jsx(StyledProgressBarContainer, {
3795
+ className: "progressBar-container",
3561
3796
  children: /*#__PURE__*/jsxRuntime.jsx(StyledProgressStatusBar, {
3562
- progress: progress
3797
+ progress: progress,
3798
+ className: "progressBar-status"
3563
3799
  })
3564
3800
  }), /*#__PURE__*/jsxRuntime.jsx(StyledCompletedProgressText, {
3801
+ className: "progressBar-progress-test",
3565
3802
  children: status === "error" ? errorMessage : "".concat(progress, " % Completed")
3566
3803
  })]
3567
3804
  });
3568
- };
3805
+ });
3569
3806
 
3570
3807
  function _templateObject$f() {
3571
3808
  var data = _taggedTemplateLiteral(["\n display: flex;\n gap: 12px;\n"]);
@@ -3576,14 +3813,19 @@
3576
3813
  }
3577
3814
  var StyledTagGroupOuterContainer$1 = styled__default.div(_templateObject$f());
3578
3815
 
3579
- var TagGroup = function TagGroup(_ref) {
3580
- var children = _ref.children;
3581
- return /*#__PURE__*/jsxRuntime.jsx("div", {
3582
- children: /*#__PURE__*/jsxRuntime.jsx(StyledTagGroupOuterContainer$1, {
3816
+ function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3817
+ function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3818
+ var TagGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3819
+ var children = _ref.children,
3820
+ props = _objectWithoutProperties(_ref, ["children"]);
3821
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
3822
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledTagGroupOuterContainer$1, _objectSpread$c(_objectSpread$c({
3823
+ ref: ref
3824
+ }, props), {}, {
3583
3825
  children: children
3584
- })
3826
+ }))
3585
3827
  });
3586
- };
3828
+ });
3587
3829
 
3588
3830
  var moment = createCommonjsModule(function (module, exports) {
3589
3831
  (function (global, factory) {
@@ -9271,9 +9513,9 @@
9271
9513
  };
9272
9514
  return data;
9273
9515
  }
9274
- function _templateObject19$1() {
9516
+ function _templateObject19$2() {
9275
9517
  var data = _taggedTemplateLiteral(["\n display: flex;\n background: ", ";\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.12);\n border-radius: 4px;\n padding-top: 10px;\n padding-bottom: 20px;\n height: 282px;\n top: 41px;\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n top: 33px;\n }\n ", "\n\n .PresetDateRangePicker_panel {\n padding: 0 22px 11px;\n }\n .PresetDateRangePicker_button {\n position: relative;\n height: 100%;\n text-align: center;\n background: 0 0;\n border: 2px solid #00a699;\n color: #00a699;\n padding: 4px 12px;\n margin-right: 8px;\n font: inherit;\n font-weight: 700;\n line-height: normal;\n overflow: visible;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n }\n .PresetDateRangePicker_button:active {\n outline: 0;\n }\n .PresetDateRangePicker_button__selected {\n color: #fff;\n background: #00a699;\n }\n .SingleDatePickerInput {\n display: inline-block;\n background-color: #fff;\n }\n .SingleDatePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb;\n }\n .SingleDatePickerInput__rtl {\n direction: rtl;\n }\n .SingleDatePickerInput__disabled {\n background-color: #f2f2f2;\n }\n .SingleDatePickerInput__block {\n display: block;\n }\n .SingleDatePickerInput__showClearDate {\n padding-right: 30px;\n }\n .SingleDatePickerInput_clearDate {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n }\n .SingleDatePickerInput_clearDate__default:focus,\n .SingleDatePickerInput_clearDate__default:hover {\n background: #dbdbdb;\n border-radius: 50%;\n }\n .SingleDatePickerInput_clearDate__small {\n padding: 6px;\n }\n .SingleDatePickerInput_clearDate__hide {\n visibility: hidden;\n }\n .SingleDatePickerInput_clearDate_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle;\n }\n .SingleDatePickerInput_clearDate_svg__small {\n height: 9px;\n }\n .SingleDatePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px;\n }\n .SingleDatePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle;\n }\n .SingleDatePicker {\n position: relative;\n display: inline-block;\n }\n .SingleDatePicker__block {\n display: block;\n }\n .SingleDatePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute;\n }\n .SingleDatePicker_picker__rtl {\n direction: rtl;\n }\n .SingleDatePicker_picker__directionLeft {\n left: 0;\n }\n .SingleDatePicker_picker__directionRight {\n right: 0;\n }\n .SingleDatePicker_picker__portal {\n background-color: rgba(0, 0, 0, 0.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n .SingleDatePicker_picker__fullScreenPortal {\n background-color: #fff;\n }\n .SingleDatePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2;\n }\n .SingleDatePicker_closeButton:focus,\n .SingleDatePicker_closeButton:hover {\n color: darken(#cacccd, 10%);\n text-decoration: none;\n }\n .SingleDatePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n .DayPickerKeyboardShortcuts_buttonReset {\n background: 0 0;\n border: 0;\n border-radius: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n padding: 0;\n cursor: pointer;\n font-size: 14px;\n }\n .DayPickerKeyboardShortcuts_buttonReset:active {\n outline: 0;\n }\n .DayPickerKeyboardShortcuts_show {\n width: 33px;\n height: 26px;\n position: absolute;\n z-index: 2;\n }\n .DayPickerKeyboardShortcuts_show::before {\n content: \"\";\n display: block;\n position: absolute;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight {\n bottom: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\n border-top: 26px solid transparent;\n border-right: 33px solid #00a699;\n bottom: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\n border-right: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_show__topRight {\n top: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__topRight::before {\n border-bottom: 26px solid transparent;\n border-right: 33px solid #00a699;\n top: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__topRight:hover::before {\n border-right: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_show__topLeft {\n top: 0;\n left: 0;\n }\n .DayPickerKeyboardShortcuts_show__topLeft::before {\n border-bottom: 26px solid transparent;\n border-left: 33px solid #00a699;\n top: 0;\n left: 0;\n }\n .DayPickerKeyboardShortcuts_show__topLeft:hover::before {\n border-left: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_showSpan {\n color: #fff;\n position: absolute;\n }\n .DayPickerKeyboardShortcuts_showSpan__bottomRight {\n bottom: 0;\n right: 5px;\n }\n .DayPickerKeyboardShortcuts_showSpan__topRight {\n top: 1px;\n right: 5px;\n }\n .DayPickerKeyboardShortcuts_showSpan__topLeft {\n top: 1px;\n left: 5px;\n }\n .DayPickerKeyboardShortcuts_panel {\n overflow: auto;\n background: #fff;\n border: 1px solid #dbdbdb;\n border-radius: 2px;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 2;\n padding: 22px;\n margin: 33px;\n text-align: left;\n }\n .DayPickerKeyboardShortcuts_title {\n font-size: 16px;\n font-weight: 700;\n margin: 0;\n }\n .DayPickerKeyboardShortcuts_list {\n list-style: none;\n padding: 0;\n font-size: 14px;\n }\n .DayPickerKeyboardShortcuts_close {\n position: absolute;\n right: 22px;\n top: 22px;\n z-index: 2;\n }\n .DayPickerKeyboardShortcuts_close:active {\n outline: 0;\n }\n .DayPickerKeyboardShortcuts_closeSvg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n .DayPickerKeyboardShortcuts_closeSvg:focus,\n .DayPickerKeyboardShortcuts_closeSvg:hover {\n fill: #82888a;\n }\n .CalendarDay {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 14px;\n text-align: center;\n position: relative;\n }\n\n .CalendarDay .CalendarDayWeekNumber {\n position: absolute;\n left: -20px;\n top: 5px;\n display: none;\n color: #1d1d1d;\n display: block;\n border-right: 0.5px solid #1d1d1d;\n width: 18px;\n }\n\n .CalendarDay:active {\n outline: 0;\n }\n .CalendarDay__defaultCursor {\n cursor: default;\n }\n .CalendarDay__default {\n color: #1d1d1d;\n font-size: 12px;\n background: #fff;\n }\n .CalendarDay__default:hover {\n background: #0055af;\n color: #fff;\n border-radius: 50%;\n }\n .CalendarDay__hovered_offset {\n /* background: #f4f5f5; */\n }\n .CalendarDay__outside {\n border: 0;\n background: #fff;\n color: #484848;\n }\n .CalendarDay__outside:hover {\n border: 0;\n }\n .CalendarDay__blocked_minimum_nights {\n }\n .CalendarDay__blocked_minimum_nights:active,\n .CalendarDay__blocked_minimum_nights:hover {\n background: #fff;\n color: #cacccd;\n }\n .CalendarDay__highlighted_calendar {\n background: #ffe8bc;\n color: #484848;\n }\n .CalendarDay__highlighted_calendar:active,\n .CalendarDay__highlighted_calendar:hover {\n background: #ffce71;\n color: #484848;\n }\n .CalendarDay__selected_span {\n background: #e5edf7;\n }\n .CalendarDay__selected_span:active,\n .CalendarDay__selected_span:hover {\n background: #0055af;\n color: #fff;\n }\n .CalendarDay__selected,\n .CalendarDay__selected:active,\n .CalendarDay__selected:hover {\n background: #0055af;\n color: #fff;\n border-radius: 50%;\n }\n\n .CalendarDay__hovered_span,\n .CalendarDay__hovered_span:hover {\n background: #e5edf7;\n color: #1d1d1d;\n }\n .CalendarDay__hovered_span:active {\n /* background: #80e8e0 green color;\n border: 1px double #80e8e0;\n color: #007a87; */\n }\n .CalendarDay__blocked_calendar,\n .CalendarDay__blocked_calendar:active,\n .CalendarDay__blocked_calendar:hover {\n background: #cacccd;\n border: 1px solid #cacccd;\n color: #82888a;\n }\n .CalendarDay__blocked_out_of_range,\n .CalendarDay__blocked_out_of_range:active,\n .CalendarDay__blocked_out_of_range:hover {\n background: #fff;\n border: 1px solid #e4e7e7;\n color: #cacccd;\n }\n .CalendarDay__hovered_start_first_possible_end {\n background: #eceeee;\n border: 1px double #eceeee;\n }\n .CalendarDay__hovered_start_blocked_min_nights {\n background: #eceeee;\n border: 1px double #e4e7e7;\n }\n .CalendarMonth {\n background: #fff;\n text-align: center;\n vertical-align: top;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .CalendarMonth_table {\n border-collapse: collapse;\n border-spacing: 0;\n margin-top: 12px;\n }\n .CalendarMonth_verticalSpacing {\n border-collapse: separate;\n }\n .CalendarMonth_caption {\n color: #1d1d1d;\n font-size: 12px;\n text-align: center;\n padding-top: 22px;\n padding-bottom: 37px;\n caption-side: initial;\n font-weight: 500;\n }\n .CalendarMonth_caption__verticalScrollable {\n padding-bottom: 7px;\n }\n .CalendarMonthGrid {\n background: #fff;\n text-align: left;\n z-index: 0;\n }\n .CalendarMonthGrid__animating {\n z-index: 1;\n }\n .CalendarMonthGrid__horizontal {\n position: absolute;\n left: 9px;\n }\n .CalendarMonthGrid__vertical,\n .CalendarMonthGrid__vertical_scrollable {\n margin: 0 auto;\n }\n .CalendarMonthGrid_month__horizontal {\n display: inline-block;\n vertical-align: top;\n min-height: 100%;\n }\n .CalendarMonthGrid_month__hideForAnimation {\n position: absolute;\n z-index: -1;\n opacity: 0;\n pointer-events: none;\n }\n .CalendarMonthGrid_month__hidden {\n visibility: hidden;\n }\n .DayPickerNavigation {\n position: relative;\n z-index: 2;\n }\n .DayPickerNavigation__horizontal {\n height: 0;\n }\n .DayPickerNavigation__verticalScrollable_prevNav {\n z-index: 1;\n }\n .DayPickerNavigation__verticalDefault {\n position: absolute;\n width: 100%;\n height: 52px;\n bottom: 0;\n left: 0;\n }\n .DayPickerNavigation__verticalScrollableDefault {\n position: relative;\n }\n .DayPickerNavigation__bottom {\n height: auto;\n }\n .DayPickerNavigation__bottomDefault {\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n display: -webkit-box;\n display: -moz-box;\n display: -ms-flexbox;\n display: -webkit-flex;\n display: flex;\n -webkit-justify-content: space-between;\n justify-content: space-between;\n }\n .DayPickerNavigation_button {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border: 0;\n padding: 0;\n margin: 0;\n }\n .DayPickerNavigation_button__default {\n background: url(", ") no-repeat;\n /* width: 16px;\n height: 16px; */\n background-size: 12px;\n transform: rotate(90deg);\n }\n .DayPickerNavigation_button__default svg {\n display: none;\n }\n .DayPickerNavigation_button__default:focus,\n .DayPickerNavigation_button__default:hover {\n /* border: 1px solid #c4c4c4 */\n }\n .DayPickerNavigation_button__default:active {\n /* background: #f2f2f2 */\n }\n .DayPickerNavigation_button__disabled {\n /* cursor: default;\n border: 1px solid #f2f2f2 */\n opacity: 0.8;\n }\n .DayPickerNavigation_button__disabled:focus,\n .DayPickerNavigation_button__disabled:hover {\n /* border: 1px solid #f2f2f2 */\n }\n .DayPickerNavigation_button__disabled:active {\n /* background: 0 0 */\n }\n .DayPickerNavigation_button__horizontalDefault {\n position: absolute;\n top: 25px;\n line-height: 0.78;\n border-radius: 3px;\n padding: 6px 6px;\n }\n .DayPickerNavigation_bottomButton__horizontalDefault {\n position: static;\n margin: -10px 22px 30px;\n }\n .DayPickerNavigation_leftButton__horizontalDefault {\n left: 22px;\n }\n .DayPickerNavigation_rightButton__horizontalDefault {\n transform: rotate(-90deg);\n right: 22px;\n }\n .DayPickerNavigation_button__verticalDefault {\n padding: 5px;\n background: #fff;\n box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.1);\n position: relative;\n display: inline-block;\n text-align: center;\n height: 100%;\n width: 50%;\n }\n .DayPickerNavigation_nextButton__verticalDefault {\n border-left: 0;\n }\n .DayPickerNavigation_nextButton__verticalScrollableDefault,\n .DayPickerNavigation_prevButton__verticalScrollableDefault {\n width: 100%;\n }\n .DayPickerNavigation_svg__horizontal {\n }\n .DayPickerNavigation_svg__vertical {\n height: 42px;\n width: 42px;\n fill: #484848;\n }\n .DayPickerNavigation_svg__disabled {\n fill: #f2f2f2;\n }\n .DayPicker {\n background: #fff;\n position: relative;\n text-align: left;\n }\n .DayPicker__horizontal {\n background: #fff;\n }\n .DayPicker__verticalScrollable {\n height: 100%;\n }\n .DayPicker__hidden {\n visibility: hidden;\n }\n .DayPicker__withBorder {\n /* box-shadow: 0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);\n border-radius: 3px */\n }\n .DayPicker_portal__horizontal {\n box-shadow: none;\n position: absolute;\n left: 50%;\n top: 50%;\n }\n .DayPicker_portal__vertical {\n position: initial;\n }\n .DayPicker_focusRegion {\n outline: 0;\n }\n .DayPicker_calendarInfo__horizontal,\n .DayPicker_wrapper__horizontal {\n display: inline-block;\n vertical-align: top;\n }\n .DayPicker_weekHeaders {\n position: relative;\n }\n .DayPicker_weekHeaders__horizontal {\n margin-left: 9px;\n }\n .DayPicker_weekHeader {\n color: #757575;\n position: absolute;\n top: 62px;\n z-index: 2;\n text-align: left;\n }\n .DayPicker_weekHeader__vertical {\n left: 50%;\n }\n .DayPicker_weekHeader__verticalScrollable {\n top: 0;\n display: table-row;\n border-bottom: 1px solid #dbdbdb;\n background: #fff;\n margin-left: 0;\n left: 0;\n width: 100%;\n text-align: center;\n }\n .DayPicker_weekHeader_ul {\n list-style: none;\n margin: 1px 0;\n padding-left: 0;\n padding-right: 0;\n font-size: 14px;\n }\n .DayPicker_weekHeader_li {\n display: inline-block;\n text-align: center;\n }\n .DayPicker_weekHeader_li small {\n font-size: 12px;\n color: #758490;\n line-height: 18px;\n }\n .DayPicker_transitionContainer {\n position: relative;\n overflow: hidden;\n border-radius: 3px;\n }\n .DayPicker_transitionContainer__horizontal {\n -webkit-transition: height 0.2s ease-in-out;\n -moz-transition: height 0.2s ease-in-out;\n transition: height 0.2s ease-in-out;\n }\n .DayPicker_transitionContainer__vertical {\n width: 100%;\n }\n .DayPicker_transitionContainer__verticalScrollable {\n padding-top: 20px;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n overflow-y: scroll;\n }\n .DateInput {\n margin: 0;\n padding: 0;\n background: #fff;\n position: relative;\n display: inline-block;\n width: 130px;\n vertical-align: middle;\n }\n .DateInput__small {\n width: 97px;\n }\n .DateInput__block {\n width: 100%;\n }\n .DateInput__disabled {\n background: #f2f2f2;\n color: #dbdbdb;\n }\n .DateInput_input {\n font-weight: 200;\n font-size: 19px;\n line-height: 24px;\n color: #484848;\n background-color: #fff;\n width: 100%;\n padding: 11px 11px 9px;\n border: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 2px solid transparent;\n border-left: 0;\n border-radius: 0;\n }\n .DateInput_input__small {\n font-size: 15px;\n line-height: 18px;\n letter-spacing: 0.2px;\n padding: 7px 7px 5px;\n }\n .DateInput_input__regular {\n font-weight: auto;\n }\n .DateInput_input__readOnly {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .DateInput_input__focused {\n outline: 0;\n background: #fff;\n border: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 2px solid #008489;\n border-left: 0;\n }\n .DateInput_input__disabled {\n background: #f2f2f2;\n font-style: italic;\n }\n .DateInput_screenReaderMessage {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n .DateInput_fang {\n position: absolute;\n width: 20px;\n height: 10px;\n left: 22px;\n z-index: 2;\n }\n .DateInput_fangShape {\n fill: #fff;\n }\n .DateInput_fangStroke {\n stroke: #dbdbdb;\n fill: transparent;\n }\n .DateRangePickerInput {\n background-color: #fff;\n display: inline-block;\n }\n .DateRangePickerInput__disabled {\n background: #f2f2f2;\n }\n .DateRangePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb;\n }\n .DateRangePickerInput__rtl {\n direction: rtl;\n }\n .DateRangePickerInput__block {\n display: block;\n }\n .DateRangePickerInput__showClearDates {\n padding-right: 30px;\n }\n .DateRangePickerInput_arrow {\n display: inline-block;\n vertical-align: middle;\n color: #484848;\n }\n .DateRangePickerInput_arrow_svg {\n vertical-align: middle;\n fill: #484848;\n height: 24px;\n width: 24px;\n }\n .DateRangePickerInput_clearDates {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n }\n .DateRangePickerInput_clearDates__small {\n padding: 6px;\n }\n .DateRangePickerInput_clearDates_default:focus,\n .DateRangePickerInput_clearDates_default:hover {\n background: #dbdbdb;\n border-radius: 50%;\n }\n .DateRangePickerInput_clearDates__hide {\n visibility: hidden;\n }\n .DateRangePickerInput_clearDates_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle;\n }\n .DateRangePickerInput_clearDates_svg__small {\n height: 9px;\n }\n .DateRangePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px;\n }\n .DateRangePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle;\n }\n .DateRangePicker {\n position: relative;\n display: inline-block;\n }\n .DateRangePicker__block {\n display: block;\n }\n .DateRangePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute;\n }\n .DateRangePicker_picker__rtl {\n direction: rtl;\n }\n .DateRangePicker_picker__directionLeft {\n left: 0;\n }\n .DateRangePicker_picker__directionRight {\n right: 0;\n }\n .DateRangePicker_picker__portal {\n background-color: rgba(0, 0, 0, 0.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n .DateRangePicker_picker__fullScreenPortal {\n background-color: #fff;\n }\n .DateRangePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2;\n }\n .DateRangePicker_closeButton:focus,\n .DateRangePicker_closeButton:hover {\n color: darken(#cacccd, 10%);\n text-decoration: none;\n }\n .DateRangePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n"]);
9276
- _templateObject19$1 = function _templateObject19() {
9518
+ _templateObject19$2 = function _templateObject19() {
9277
9519
  return data;
9278
9520
  };
9279
9521
  return data;
@@ -9423,15 +9665,15 @@
9423
9665
  return props.isDatesSelected && styled.css(_templateObject17$3(), StyledInputEndDate, PrimaryBlueColor, StyledInputStartDate, PrimaryBlueColor);
9424
9666
  }, StyledInputEndDate, PrimaryBlueColor, StyledInputStartDate, PrimaryBlueColor);
9425
9667
  var StyledInputStartDateSingle = styled__default.input(_templateObject18$2(), calendarIcon, DefaultColorButton, PrimaryBlueColor, PrimaryBlueColor, FocusBackgroundColor);
9426
- var StyledDatepickerMainContainer = styled__default.div(_templateObject19$1(), WhiteColor, function (props) {
9668
+ var StyledDatepickerMainContainer = styled__default.div(_templateObject19$2(), WhiteColor, function (props) {
9427
9669
  if (!props.showOnlyCalender) {
9428
9670
  return styled.css(_templateObject20$1(), LOW_4);
9429
9671
  }
9430
9672
  }, ChevronImage);
9431
9673
 
9432
- function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9433
- function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9434
- var DateRangePicker = function DateRangePicker(_ref) {
9674
+ function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9675
+ function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9676
+ var DateRangePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
9435
9677
  var label = _ref.label,
9436
9678
  showRangeSelector = _ref.showRangeSelector,
9437
9679
  showInputs = _ref.showInputs,
@@ -9446,7 +9688,9 @@
9446
9688
  setEndDate = _ref.setEndDate,
9447
9689
  showOnlyCalender = _ref.showOnlyCalender,
9448
9690
  showWeekNumbers = _ref.showWeekNumbers,
9449
- props = _objectWithoutProperties(_ref, ["label", "showRangeSelector", "showInputs", "initialStartDate", "initialEndDate", "disabled", "startDateInputProps", "endDateInputProps", "startDate", "setStartDate", "endDate", "setEndDate", "showOnlyCalender", "showWeekNumbers"]);
9691
+ primaryButtonProps = _ref.primaryButtonProps,
9692
+ tertiaryButtonProps = _ref.tertiaryButtonProps,
9693
+ props = _objectWithoutProperties(_ref, ["label", "showRangeSelector", "showInputs", "initialStartDate", "initialEndDate", "disabled", "startDateInputProps", "endDateInputProps", "startDate", "setStartDate", "endDate", "setEndDate", "showOnlyCalender", "showWeekNumbers", "primaryButtonProps", "tertiaryButtonProps"]);
9450
9694
  var _useState = React.useState(showOnlyCalender),
9451
9695
  _useState2 = _slicedToArray(_useState, 2),
9452
9696
  isOpen = _useState2[0],
@@ -9569,36 +9813,45 @@
9569
9813
  })]
9570
9814
  });
9571
9815
  }, []);
9572
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
9816
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
9817
+ ref: ref === null || ref === void 0 ? void 0 : ref.containerRef,
9573
9818
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledLabelContainer, {
9819
+ className: "dateRangePicker-label",
9574
9820
  children: label
9575
9821
  }), /*#__PURE__*/jsxRuntime.jsx(ClickAwayListener, {
9576
9822
  onClickAway: handleClickAway,
9577
9823
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledContainer, {
9824
+ className: "dateRangePicker-input-main-container",
9578
9825
  children: [!showOnlyCalender && /*#__PURE__*/jsxRuntime.jsxs(StyledInputDateRangPickerContainer, {
9579
9826
  isDatesSelected: startDate !== null && endDate !== null,
9580
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledInputStartDate, _objectSpread$b(_objectSpread$b({
9827
+ className: "dateRangePicker-input-container",
9828
+ ref: ref === null || ref === void 0 ? void 0 : ref.inputContainerRef,
9829
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledInputStartDate, _objectSpread$d(_objectSpread$d({
9581
9830
  type: "text",
9582
9831
  placeholder: "Start Date",
9583
9832
  value: startDateString || "",
9584
9833
  onFocus: handleStartDateFocus,
9585
9834
  ref: starDateInputRef
9586
9835
  }, startDateInputProps), {}, {
9587
- readOnly: true
9588
- })), /*#__PURE__*/jsxRuntime.jsx(StyledInputEndDate, _objectSpread$b(_objectSpread$b({
9836
+ readOnly: true,
9837
+ className: "dateRangePicker-input-start-date"
9838
+ })), /*#__PURE__*/jsxRuntime.jsx(StyledInputEndDate, _objectSpread$d(_objectSpread$d({
9589
9839
  type: "text",
9590
9840
  placeholder: "End Date",
9591
9841
  value: endDateString || "",
9592
9842
  onFocus: handleEndDateFocus,
9593
9843
  ref: endDateInputRef
9594
9844
  }, endDateInputProps), {}, {
9595
- readOnly: true
9845
+ readOnly: true,
9846
+ className: "dateRangePicker-input-end-date"
9596
9847
  }))]
9597
9848
  }), isOpen && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
9598
9849
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledDatepickerMainContainer, {
9599
9850
  showOnlyCalender: showOnlyCalender,
9851
+ className: "dateRangePicker-main-container",
9600
9852
  children: [/*#__PURE__*/jsxRuntime.jsxs(StyledDatePickerLeftContainer, {
9601
- children: [/*#__PURE__*/jsxRuntime.jsx(reactDates.DayPickerRangeController, _objectSpread$b({
9853
+ className: "dateRangePicker-left-container",
9854
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactDates.DayPickerRangeController, _objectSpread$d({
9602
9855
  onDatesChange: onDatesChange,
9603
9856
  onFocusChange: onFocusChange,
9604
9857
  focusedInput: focusedInput,
@@ -9611,7 +9864,9 @@
9611
9864
  endDateOffset: selectedRange === "custom" ? undefined : setEndDateOffset,
9612
9865
  renderDayContents: renderDayContents
9613
9866
  }, props)), /*#__PURE__*/jsxRuntime.jsxs(StyledBottomCTAContainer, {
9867
+ className: "dateRangePicker-buttons-container",
9614
9868
  children: [props.numberOfMonths > 1 ? /*#__PURE__*/jsxRuntime.jsxs(StyledLeftCTAContainer, {
9869
+ className: "dateRangePicker-buttons-left-container",
9615
9870
  children: [/*#__PURE__*/jsxRuntime.jsxs(StyledLabelContainer, {
9616
9871
  children: [selectedDaysNumber, " Days Selected"]
9617
9872
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
@@ -9621,30 +9876,38 @@
9621
9876
  children: "Reset"
9622
9877
  })]
9623
9878
  }) : null, /*#__PURE__*/jsxRuntime.jsxs(StyledRightCTAContainer, {
9624
- children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
9879
+ className: "dateRangePicker-buttons-right-container",
9880
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$d(_objectSpread$d({
9625
9881
  variant: "url",
9626
- size: "small",
9882
+ size: "small"
9883
+ }, tertiaryButtonProps), {}, {
9627
9884
  children: "Cancel"
9628
- }), /*#__PURE__*/jsxRuntime.jsx(Button, {
9885
+ })), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$d(_objectSpread$d({
9629
9886
  variant: "primary",
9630
- size: "small",
9887
+ size: "small"
9888
+ }, primaryButtonProps), {}, {
9631
9889
  children: "Apply"
9632
- })]
9890
+ }))]
9633
9891
  })]
9634
9892
  })]
9635
9893
  }), showRangeSelector && /*#__PURE__*/jsxRuntime.jsxs(StyledShortcutMainContainer, {
9894
+ className: "dateRangePicker-shortcut-main-container",
9636
9895
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledShortcutHeading, {
9896
+ className: "dateRangePicker-shortcut-heading",
9637
9897
  children: "Date Range"
9638
9898
  }), /*#__PURE__*/jsxRuntime.jsx(StyledRadioListUl, {
9899
+ className: "dateRangePicker-shortcut-list",
9639
9900
  children: rangeSelectorTypes.map(function (range, i) {
9640
9901
  return /*#__PURE__*/jsxRuntime.jsx(StyledRadioListLi, {
9902
+ className: "dateRangePicker-shortcut-list-item",
9641
9903
  children: /*#__PURE__*/jsxRuntime.jsx(Radio, {
9642
9904
  id: range.id,
9643
9905
  value: range.id,
9644
9906
  name: "range",
9645
9907
  label: range.label,
9646
9908
  checked: selectedRange === range.id,
9647
- onChange: handleRangeSelectorChange
9909
+ onChange: handleRangeSelectorChange,
9910
+ className: "dateRangePicker-shortcut-radio"
9648
9911
  })
9649
9912
  }, i);
9650
9913
  })
@@ -9655,11 +9918,11 @@
9655
9918
  })
9656
9919
  })]
9657
9920
  });
9658
- };
9921
+ });
9659
9922
 
9660
- function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9661
- function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9662
- var DatePicker = function DatePicker(_ref) {
9923
+ function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9924
+ function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9925
+ var DatePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
9663
9926
  var label = _ref.label,
9664
9927
  showRangeSelector = _ref.showRangeSelector,
9665
9928
  showInputs = _ref.showInputs,
@@ -9671,7 +9934,9 @@
9671
9934
  setSelectedDate = _ref.setSelectedDate,
9672
9935
  showOnlyCalender = _ref.showOnlyCalender,
9673
9936
  showWeekNumbers = _ref.showWeekNumbers,
9674
- props = _objectWithoutProperties(_ref, ["label", "showRangeSelector", "showInputs", "closeOnDateSelect", "placeholder", "initialDate", "inputProps", "selectedDate", "setSelectedDate", "showOnlyCalender", "showWeekNumbers"]);
9937
+ primaryButtonProps = _ref.primaryButtonProps,
9938
+ tertiaryButtonProps = _ref.tertiaryButtonProps,
9939
+ props = _objectWithoutProperties(_ref, ["label", "showRangeSelector", "showInputs", "closeOnDateSelect", "placeholder", "initialDate", "inputProps", "selectedDate", "setSelectedDate", "showOnlyCalender", "showWeekNumbers", "primaryButtonProps", "tertiaryButtonProps"]);
9675
9940
  var _useState = React.useState(showOnlyCalender),
9676
9941
  _useState2 = _slicedToArray(_useState, 2),
9677
9942
  isOpen = _useState2[0],
@@ -9680,7 +9945,6 @@
9680
9945
  _useState4 = _slicedToArray(_useState3, 2),
9681
9946
  focused = _useState4[0],
9682
9947
  setFocused = _useState4[1];
9683
- var dateInputRef = React.useRef();
9684
9948
  var onDatesChange = function onDatesChange(date) {
9685
9949
  setSelectedDate(date);
9686
9950
  closeOnDateSelect && setIsOpen(false);
@@ -9707,30 +9971,38 @@
9707
9971
  })]
9708
9972
  });
9709
9973
  }, []);
9710
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
9974
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
9975
+ ref: ref === null || ref === void 0 ? void 0 : ref.containerRef,
9711
9976
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledLabelContainer, {
9977
+ className: "datePicker-label",
9712
9978
  children: label
9713
9979
  }), /*#__PURE__*/jsxRuntime.jsx(ClickAwayListener, {
9714
9980
  onClickAway: handleClickAway,
9715
9981
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledContainer, {
9982
+ className: "datePicker-container",
9716
9983
  children: [!showOnlyCalender && /*#__PURE__*/jsxRuntime.jsx(StyledInputContainer, {
9984
+ className: "datePicker-input-container",
9985
+ ref: ref === null || ref === void 0 ? void 0 : ref.inputContainerRef,
9717
9986
  children: /*#__PURE__*/jsxRuntime.jsx(StyledInputDateRangPickerContainer, {
9718
9987
  isDatesSelected: selectedDate !== null,
9719
- children: /*#__PURE__*/jsxRuntime.jsx(StyledInputStartDateSingle, _objectSpread$c(_objectSpread$c({
9988
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledInputStartDateSingle, _objectSpread$e(_objectSpread$e({
9720
9989
  type: "text",
9721
9990
  placeholder: "Select Dates",
9722
9991
  value: (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.format("YYYY-MM-DD")) || "",
9723
9992
  onFocus: handleDateInputFocus,
9724
- ref: dateInputRef
9993
+ ref: ref === null || ref === void 0 ? void 0 : ref.inputRef
9725
9994
  }, inputProps), {}, {
9726
- readOnly: true
9995
+ readOnly: true,
9996
+ className: "datePicker-date-input"
9727
9997
  }))
9728
9998
  })
9729
9999
  }), isOpen && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
9730
10000
  children: /*#__PURE__*/jsxRuntime.jsx(StyledDatepickerMainContainer, {
9731
10001
  showOnlyCalender: showOnlyCalender,
10002
+ className: "datePicker-main-container",
9732
10003
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledDatePickerLeftContainer, {
9733
- children: [/*#__PURE__*/jsxRuntime.jsx(reactDates.DayPickerSingleDateController, _objectSpread$c({
10004
+ className: "datePicker-left-container",
10005
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactDates.DayPickerSingleDateController, _objectSpread$e({
9734
10006
  onDateChange: onDatesChange,
9735
10007
  onFocusChange: handleOnFocusChange,
9736
10008
  focused: focused,
@@ -9740,16 +10012,20 @@
9740
10012
  horizontalMonthPadding: showWeekNumbers ? 24 : 12,
9741
10013
  renderDayContents: renderDayContents
9742
10014
  }, props)), /*#__PURE__*/jsxRuntime.jsx(StyledBottomCTAContainer, {
10015
+ className: "datePicker-buttons-container",
9743
10016
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledRightCTAContainer, {
9744
- children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
10017
+ className: "datePicker-buttons-right-container",
10018
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$e(_objectSpread$e({
9745
10019
  variant: "url",
9746
- size: "small",
10020
+ size: "small"
10021
+ }, tertiaryButtonProps), {}, {
9747
10022
  children: "Cancel"
9748
- }), /*#__PURE__*/jsxRuntime.jsx(Button, {
10023
+ })), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$e(_objectSpread$e({
9749
10024
  variant: "primary",
9750
- size: "small",
10025
+ size: "small"
10026
+ }, primaryButtonProps), {}, {
9751
10027
  children: "Apply"
9752
- })]
10028
+ }))]
9753
10029
  })
9754
10030
  })]
9755
10031
  })
@@ -9758,7 +10034,7 @@
9758
10034
  })
9759
10035
  })]
9760
10036
  });
9761
- };
10037
+ });
9762
10038
 
9763
10039
  function _templateObject11$8() {
9764
10040
  var data = _taggedTemplateLiteral(["\n flex-direction: column;\n ", " {\n margin-bottom: 60px;\n &:last-child {\n margin-bottom: 0px;\n }\n &::after {\n content: \" \";\n height: 40px;\n width: 1px;\n position: absolute;\n right: auto;\n top: 48px;\n bottom: auto;\n margin: auto;\n left: 18px;\n }\n }\n "]);
@@ -9875,6 +10151,7 @@
9875
10151
  };
9876
10152
  return /*#__PURE__*/jsxRuntime.jsx(StyledStepper, {
9877
10153
  vertical: vertical,
10154
+ className: "".concat(props.className, " stepper"),
9878
10155
  children: steps.map(function (_ref2, index) {
9879
10156
  var _steps2;
9880
10157
  var label = _ref2.label,
@@ -9882,6 +10159,7 @@
9882
10159
  isEditable = _ref2.isEditable,
9883
10160
  isCompleted = _ref2.isCompleted;
9884
10161
  return /*#__PURE__*/jsxRuntime.jsxs(StyledStepperChildrenContainer, {
10162
+ className: "stepper-step-container",
9885
10163
  isEditable: isEditable,
9886
10164
  isCompleted: isCompleted,
9887
10165
  isActive: activeIndex === index,
@@ -9890,11 +10168,15 @@
9890
10168
  },
9891
10169
  disabled: !(isEditable && isCompleted || index > 0 && ((_steps2 = steps[index - 1]) === null || _steps2 === void 0 ? void 0 : _steps2.isCompleted)),
9892
10170
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledCircleContainer, {
10171
+ className: "stepper-step-icon",
9893
10172
  children: !isCompleted && index + 1
9894
10173
  }), /*#__PURE__*/jsxRuntime.jsxs(StyledLabelMainContainer, {
10174
+ className: "stepper-step-container",
9895
10175
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledLabel, {
10176
+ className: "stepper-step-label",
9896
10177
  children: label
9897
10178
  }), /*#__PURE__*/jsxRuntime.jsx(StyledDescription, {
10179
+ className: "stepper-step-description",
9898
10180
  children: description
9899
10181
  })]
9900
10182
  })]
@@ -9953,9 +10235,9 @@
9953
10235
  return props.disabled && styled.css(_templateObject6$c(), CheckBoxLabel, DisabledButtonFontColor, DefaultColorButton, StyledLabelText$1, DisabledButtonFontColor);
9954
10236
  });
9955
10237
 
9956
- function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9957
- function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9958
- var Switch = function Switch(_ref) {
10238
+ function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10239
+ function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10240
+ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
9959
10241
  var leftLabel = _ref.leftLabel,
9960
10242
  rightLabel = _ref.rightLabel,
9961
10243
  disabled = _ref.disabled,
@@ -9964,25 +10246,33 @@
9964
10246
  name = _ref.name,
9965
10247
  props = _objectWithoutProperties(_ref, ["leftLabel", "rightLabel", "disabled", "label", "id", "name"]);
9966
10248
  return /*#__PURE__*/jsxRuntime.jsx("div", {
10249
+ ref: ref === null || ref === void 0 ? void 0 : ref.containerRef,
9967
10250
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledSwitch, {
9968
10251
  disabled: disabled,
10252
+ className: "".concat(props.className, " switch-container"),
9969
10253
  children: [leftLabel ? /*#__PURE__*/jsxRuntime.jsx(StyledLabelText$1, {
10254
+ className: "switch-left-label",
9970
10255
  children: leftLabel
9971
10256
  }) : null, /*#__PURE__*/jsxRuntime.jsxs(CheckBoxWrapper, {
9972
- children: [/*#__PURE__*/jsxRuntime.jsx(CheckBox, _objectSpread$d({
10257
+ className: "switch-checkbox-container",
10258
+ children: [/*#__PURE__*/jsxRuntime.jsx(CheckBox, _objectSpread$f({
9973
10259
  id: id,
9974
10260
  name: name,
9975
10261
  type: "checkbox",
9976
- disabled: disabled
10262
+ disabled: disabled,
10263
+ className: "".concat(props.className, " switch-checkbox"),
10264
+ ref: ref === null || ref === void 0 ? void 0 : ref.checkboxRef
9977
10265
  }, props)), /*#__PURE__*/jsxRuntime.jsx(CheckBoxLabel, {
10266
+ className: "switch-label",
9978
10267
  htmlFor: id
9979
10268
  })]
9980
10269
  }), rightLabel ? /*#__PURE__*/jsxRuntime.jsx(StyledLabelText$1, {
10270
+ className: "switch-right-label",
9981
10271
  children: rightLabel
9982
10272
  }) : null]
9983
10273
  })
9984
10274
  });
9985
- };
10275
+ });
9986
10276
 
9987
10277
  function _templateObject11$9() {
9988
10278
  var data = _taggedTemplateLiteral(["\n background: url(", ") no-repeat;\n background-size: 16px;\n display: inline-block;\n width: 16px;\n height: 16px;\n cursor: pointer;\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n background-size: 13px;\n }\n"]);
@@ -10079,11 +10369,13 @@
10079
10369
  });
10080
10370
  var StyledCloseIcon$1 = styled__default.i(_templateObject11$9(), CloseIconWhite);
10081
10371
 
10082
- function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10083
- function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10084
- var Modal = function Modal(_ref) {
10085
- var isOpen = _ref.isOpen,
10086
- _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
10372
+ function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10373
+ function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10374
+ function Portal$2(props) {
10375
+ return /*#__PURE__*/ReactDOM.createPortal(props.children, props.container);
10376
+ }
10377
+ var InternalModal = function InternalModal(_ref) {
10378
+ var _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
10087
10379
  closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
10088
10380
  onClose = _ref.onClose,
10089
10381
  children = _ref.children,
@@ -10091,33 +10383,56 @@
10091
10383
  size = _ref.size,
10092
10384
  primaryButtonProps = _ref.primaryButtonProps,
10093
10385
  tertiaryButtonProps = _ref.tertiaryButtonProps,
10094
- props = _objectWithoutProperties(_ref, ["isOpen", "closeOnOverlayClick", "onClose", "children", "heading", "size", "primaryButtonProps", "tertiaryButtonProps"]);
10095
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
10096
- children: isOpen ? /*#__PURE__*/jsxRuntime.jsx(StyledModalContainer, {
10097
- onClick: closeOnOverlayClick ? onClose : nul,
10098
- children: /*#__PURE__*/jsxRuntime.jsxs(StyledModalBodyContainer, _objectSpread$e(_objectSpread$e({
10099
- size: size
10100
- }, props), {}, {
10101
- onClick: function onClick(e) {
10102
- return e.stopPropagation();
10103
- },
10104
- children: [/*#__PURE__*/jsxRuntime.jsxs(StyledModalHeader, {
10105
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledModalHeadingText, {
10106
- children: heading
10107
- }), /*#__PURE__*/jsxRuntime.jsx(StyledCloseIcon$1, {
10108
- onClick: onClose
10109
- })]
10110
- }), /*#__PURE__*/jsxRuntime.jsx(StyledModalContentContainer, {
10111
- children: children
10112
- }), /*#__PURE__*/jsxRuntime.jsxs(StyledBottomButtonContainer, {
10113
- children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$e(_objectSpread$e({}, tertiaryButtonProps), {}, {
10114
- variant: "url"
10115
- })), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$e(_objectSpread$e({}, primaryButtonProps), {}, {
10116
- variant: "primary"
10117
- }))]
10386
+ props = _objectWithoutProperties(_ref, ["closeOnOverlayClick", "onClose", "children", "heading", "size", "primaryButtonProps", "tertiaryButtonProps"]);
10387
+ return /*#__PURE__*/jsxRuntime.jsx(StyledModalContainer, {
10388
+ onClick: closeOnOverlayClick ? onClose : nul,
10389
+ className: "modal-container",
10390
+ children: /*#__PURE__*/jsxRuntime.jsxs(StyledModalBodyContainer, _objectSpread$g(_objectSpread$g({
10391
+ size: size
10392
+ }, props), {}, {
10393
+ onClick: function onClick(e) {
10394
+ return e.stopPropagation();
10395
+ },
10396
+ className: "modal-body-container",
10397
+ children: [/*#__PURE__*/jsxRuntime.jsxs(StyledModalHeader, {
10398
+ className: "modal-header-container",
10399
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledModalHeadingText, {
10400
+ className: "modal-header-text",
10401
+ children: heading
10402
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledCloseIcon$1, {
10403
+ onClick: onClose,
10404
+ className: "modal-close-button"
10118
10405
  })]
10406
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledModalContentContainer, {
10407
+ className: "modal-content-container",
10408
+ children: children
10409
+ }), /*#__PURE__*/jsxRuntime.jsxs(StyledBottomButtonContainer, {
10410
+ className: "modal-buttons-container",
10411
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$g({
10412
+ variant: "url"
10413
+ }, tertiaryButtonProps)), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$g({
10414
+ variant: "primary"
10415
+ }, primaryButtonProps))]
10416
+ })]
10417
+ }))
10418
+ });
10419
+ };
10420
+ var Modal = function Modal(_ref2) {
10421
+ var isOpen = _ref2.isOpen,
10422
+ _ref2$container = _ref2.container,
10423
+ container = _ref2$container === void 0 ? document.body : _ref2$container,
10424
+ children = _ref2.children,
10425
+ isPortal = _ref2.isPortal,
10426
+ props = _objectWithoutProperties(_ref2, ["isOpen", "container", "children", "isPortal"]);
10427
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
10428
+ children: isOpen ? isPortal ? /*#__PURE__*/jsxRuntime.jsx(Portal$2, {
10429
+ container: container,
10430
+ children: /*#__PURE__*/jsxRuntime.jsx(InternalModal, _objectSpread$g(_objectSpread$g({}, props), {}, {
10431
+ children: children
10119
10432
  }))
10120
- }) : null
10433
+ }) : /*#__PURE__*/jsxRuntime.jsx(InternalModal, _objectSpread$g(_objectSpread$g({}, props), {}, {
10434
+ children: children
10435
+ })) : null
10121
10436
  });
10122
10437
  };
10123
10438
 
@@ -10217,41 +10532,60 @@
10217
10532
  var StyledLiListContent = styled__default.li(_templateObject10$b(), CheckBoxBorder);
10218
10533
  var StyledBottomCTAContainer$1 = styled__default.div(_templateObject11$a());
10219
10534
 
10220
- function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10221
- function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10222
- var Prompt = function Prompt(_ref) {
10223
- var isOpen = _ref.isOpen,
10224
- _ref$variant = _ref.variant,
10535
+ function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10536
+ function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10537
+ function Portal$3(props) {
10538
+ return /*#__PURE__*/ReactDOM.createPortal(props.children, props.container);
10539
+ }
10540
+ var InternalPrompt = function InternalPrompt(_ref) {
10541
+ var _ref$variant = _ref.variant,
10225
10542
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
10226
10543
  title = _ref.title,
10227
10544
  subHeading = _ref.subHeading,
10228
10545
  infoList = _ref.infoList,
10229
10546
  primaryButtonProps = _ref.primaryButtonProps,
10230
- tertiaryButtonProps = _ref.tertiaryButtonProps,
10231
- props = _objectWithoutProperties(_ref, ["isOpen", "variant", "title", "subHeading", "infoList", "primaryButtonProps", "tertiaryButtonProps"]);
10547
+ tertiaryButtonProps = _ref.tertiaryButtonProps;
10548
+ return /*#__PURE__*/jsxRuntime.jsx(StyledPromptOverlay, {
10549
+ className: "prompt-overlay",
10550
+ children: /*#__PURE__*/jsxRuntime.jsxs(StyledPrompt, {
10551
+ variant: variant,
10552
+ className: "prompt",
10553
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledPromptHeading, {
10554
+ className: "prompt-heading",
10555
+ children: title
10556
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledPromptSubheading, {
10557
+ className: "prompt-sub-heading",
10558
+ children: subHeading
10559
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledUlListContent, {
10560
+ className: "prompt-content-list",
10561
+ children: infoList && infoList.map(function (info, i) {
10562
+ return /*#__PURE__*/jsxRuntime.jsx(StyledLiListContent, {
10563
+ className: "prompt-content-item",
10564
+ children: info
10565
+ }, i);
10566
+ })
10567
+ }), /*#__PURE__*/jsxRuntime.jsxs(StyledBottomCTAContainer$1, {
10568
+ className: "prompt-button-container",
10569
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$h(_objectSpread$h({}, tertiaryButtonProps), {}, {
10570
+ variant: "url"
10571
+ })), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$h(_objectSpread$h({}, primaryButtonProps), {}, {
10572
+ variant: "primary"
10573
+ }))]
10574
+ })]
10575
+ })
10576
+ });
10577
+ };
10578
+ var Prompt = function Prompt(_ref2) {
10579
+ var isOpen = _ref2.isOpen,
10580
+ isPortal = _ref2.isPortal,
10581
+ _ref2$container = _ref2.container,
10582
+ container = _ref2$container === void 0 ? document.body : _ref2$container,
10583
+ props = _objectWithoutProperties(_ref2, ["isOpen", "isPortal", "container"]);
10232
10584
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
10233
- children: isOpen ? /*#__PURE__*/jsxRuntime.jsx(StyledPromptOverlay, {
10234
- children: /*#__PURE__*/jsxRuntime.jsxs(StyledPrompt, {
10235
- variant: variant,
10236
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledPromptHeading, {
10237
- children: title
10238
- }), /*#__PURE__*/jsxRuntime.jsx(StyledPromptSubheading, {
10239
- children: subHeading
10240
- }), /*#__PURE__*/jsxRuntime.jsx(StyledUlListContent, {
10241
- children: infoList && infoList.map(function (info, i) {
10242
- return /*#__PURE__*/jsxRuntime.jsx(StyledLiListContent, {
10243
- children: info
10244
- }, i);
10245
- })
10246
- }), /*#__PURE__*/jsxRuntime.jsxs(StyledBottomCTAContainer$1, {
10247
- children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$f(_objectSpread$f({}, tertiaryButtonProps), {}, {
10248
- variant: "url"
10249
- })), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$f(_objectSpread$f({}, primaryButtonProps), {}, {
10250
- variant: "primary"
10251
- }))]
10252
- })]
10253
- })
10254
- }) : null
10585
+ children: isOpen ? isPortal ? /*#__PURE__*/jsxRuntime.jsx(Portal$3, {
10586
+ container: container,
10587
+ children: /*#__PURE__*/jsxRuntime.jsx(InternalPrompt, _objectSpread$h({}, props))
10588
+ }) : /*#__PURE__*/jsxRuntime.jsx(InternalPrompt, _objectSpread$h({}, props)) : null
10255
10589
  });
10256
10590
  };
10257
10591
 
@@ -10696,8 +11030,8 @@
10696
11030
 
10697
11031
  var uniqueId_1 = uniqueId;
10698
11032
 
10699
- function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10700
- function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11033
+ function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11034
+ function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10701
11035
  var Dropzone = function Dropzone(_ref) {
10702
11036
  var setFiles = _ref.setFiles,
10703
11037
  _ref$accept = _ref.accept,
@@ -10718,10 +11052,10 @@
10718
11052
  errorMessage: ""
10719
11053
  };
10720
11054
  }).reduce(function (a, v) {
10721
- return _objectSpread$g(_objectSpread$g({}, a), {}, _defineProperty({}, uniqueId_1(), v));
11055
+ return _objectSpread$i(_objectSpread$i({}, a), {}, _defineProperty({}, uniqueId_1(), v));
10722
11056
  }, {});
10723
11057
  setFiles(function (files) {
10724
- return _objectSpread$g(_objectSpread$g({}, files), filesArray);
11058
+ return _objectSpread$i(_objectSpread$i({}, files), filesArray);
10725
11059
  });
10726
11060
  };
10727
11061
  var handleDrop = function handleDrop(event) {
@@ -10737,17 +11071,25 @@
10737
11071
  return /*#__PURE__*/jsxRuntime.jsx(StyledDropZone, {
10738
11072
  onDragOver: handleDragOver,
10739
11073
  onDrop: handleDrop,
11074
+ className: "fileSelector-dropzone",
10740
11075
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledCenterAlignedZone, {
10741
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledUploadImage, {}), /*#__PURE__*/jsxRuntime.jsx(StyledDropZoneLabel, {
11076
+ className: "fileSelector-dropzone-container",
11077
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledUploadImage, {
11078
+ className: "fileSelector-dropzone-upload-image"
11079
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledDropZoneLabel, {
11080
+ className: "fileSelector-dropzone-label",
10742
11081
  children: "Drag and drop file here"
10743
11082
  }), /*#__PURE__*/jsxRuntime.jsx(StyledCenterDividerContainer, {
11083
+ className: "fileSelector-dropzone-divider",
10744
11084
  children: "OR"
10745
11085
  }), /*#__PURE__*/jsxRuntime.jsx(StyledFileUploadButton, {
11086
+ className: "fileSelector-dropzone-upload-button",
10746
11087
  children: /*#__PURE__*/jsxRuntime.jsx(StyledBrowseFIleURL, {
10747
11088
  type: "file",
10748
11089
  multiple: "multiple",
10749
11090
  onChange: handleChange,
10750
- accept: accept.join(",")
11091
+ accept: accept.join(","),
11092
+ className: "fileSelector-dropzone-browse-file-url"
10751
11093
  })
10752
11094
  })]
10753
11095
  })
@@ -10761,20 +11103,26 @@
10761
11103
  return !file.isCompleted;
10762
11104
  }).length;
10763
11105
  return /*#__PURE__*/jsxRuntime.jsxs(StyledUploadingZoneContainer, {
11106
+ className: "fileSelector-uploading-zone-container",
10764
11107
  children: [pendingUploads > 0 ? /*#__PURE__*/jsxRuntime.jsxs(StyledSubHeadingContainer, {
11108
+ className: "fileSelector-subHeading-container",
10765
11109
  children: ["Uploading ", pendingUploads, "/", Object.values(files).length]
10766
11110
  }) : null, Object.keys(files).map(function (key, index) {
10767
11111
  return !files[key].isCompleted ? /*#__PURE__*/jsxRuntime.jsx(StyledFileUploadContainer, {
11112
+ className: "fileSelector-file-container",
10768
11113
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledProgressMainContainer, {
11114
+ className: "fileSelector-progressBar-container",
10769
11115
  children: [/*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
10770
11116
  progress: files[key].progress,
10771
11117
  label: files[key].file.name,
10772
11118
  status: files[key].isError && "error",
10773
- errorMessage: files[key].isError ? files[key].errorMessage : ""
11119
+ errorMessage: files[key].isError ? files[key].errorMessage : "",
11120
+ className: "fileSelector-progressBar"
10774
11121
  }), /*#__PURE__*/jsxRuntime.jsx(StyledClearIcon, {
10775
11122
  onClick: function onClick() {
10776
11123
  return onUploadCancel(key);
10777
- }
11124
+ },
11125
+ className: "fileSelector-clear-button"
10778
11126
  })]
10779
11127
  })
10780
11128
  }, files[key].file.name) : null;
@@ -10782,17 +11130,23 @@
10782
11130
  return file.isCompleted;
10783
11131
  }) ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
10784
11132
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledSubHeadingContainer, {
11133
+ className: "fileSelector-uploaded-heading",
10785
11134
  children: "Uploaded"
10786
11135
  }), /*#__PURE__*/jsxRuntime.jsx(StyledFileUploadContainer, {
11136
+ className: "fileSelector-file-uploaded-container",
10787
11137
  children: Object.values(files).filter(function (file) {
10788
11138
  return file.isCompleted;
10789
11139
  }).map(function (file, index) {
10790
11140
  return /*#__PURE__*/jsxRuntime.jsxs(StyledProgressMainContainer, {
11141
+ className: "fileSelector-uploaded-progressBar-container",
10791
11142
  children: [/*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
10792
11143
  progress: 100,
10793
11144
  label: file.file.name,
10794
- status: "success"
10795
- }), /*#__PURE__*/jsxRuntime.jsx(StyledDeleteIcon, {})]
11145
+ status: "success",
11146
+ className: "fileSelector-uploaded-progressBar"
11147
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledDeleteIcon, {
11148
+ className: "fileSelector-delete-icon"
11149
+ })]
10796
11150
  }, file.file.name);
10797
11151
  })
10798
11152
  })]
@@ -10800,15 +11154,18 @@
10800
11154
  });
10801
11155
  };
10802
11156
 
10803
- var FileSelector = function FileSelector(_ref) {
11157
+ var FileSelector = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
10804
11158
  var files = _ref.files,
10805
11159
  setFiles = _ref.setFiles,
10806
11160
  onFileUpload = _ref.onFileUpload,
10807
11161
  onUploadCancel = _ref.onUploadCancel,
10808
11162
  onCancelAllUploads = _ref.onCancelAllUploads;
10809
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
11163
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
11164
+ ref: ref,
10810
11165
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledFileSelector, {
11166
+ className: "fileSelector",
10811
11167
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledFileHeading, {
11168
+ className: "fileSelector-file-heading",
10812
11169
  children: "Upload Files"
10813
11170
  }), /*#__PURE__*/jsxRuntime.jsx(Dropzone, {
10814
11171
  setFiles: setFiles
@@ -10817,20 +11174,120 @@
10817
11174
  setFiles: setFiles,
10818
11175
  onUploadCancel: onUploadCancel
10819
11176
  }), /*#__PURE__*/jsxRuntime.jsxs(StyledButtonContainer, {
11177
+ className: "fileSelector-button-container",
10820
11178
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
10821
11179
  variant: "primary",
11180
+ className: "fileSelector-upload-button",
10822
11181
  onClick: onFileUpload,
10823
11182
  children: "Upload"
10824
11183
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
10825
11184
  variant: "url",
11185
+ className: "fileSelector-cancel-button",
10826
11186
  onClick: onCancelAllUploads,
10827
11187
  children: "Cancel"
10828
11188
  })]
10829
11189
  })]
10830
11190
  })
10831
11191
  });
10832
- };
11192
+ });
11193
+
11194
+ var _path;
11195
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11196
+ const SvgCollapseFirst = props => /*#__PURE__*/React.createElement("svg", _extends({
11197
+ width: 12,
11198
+ height: 20,
11199
+ fill: "none",
11200
+ xmlns: "http://www.w3.org/2000/svg"
11201
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
11202
+ d: "M1.65 19.729 0 18.079l5.646-5.646 5.645 5.646-1.65 1.65-3.995-3.996L1.65 19.73ZM5.646 7.567 0 1.92 1.65.27l3.996 3.996L9.642.27l1.65 1.65-5.646 5.646Z",
11203
+ fill: "#0055AF"
11204
+ })));
11205
+
11206
+ var _path$1;
11207
+ function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
11208
+ const SvgCollapseAll = props => /*#__PURE__*/React.createElement("svg", _extends$1({
11209
+ width: 9,
11210
+ height: 23,
11211
+ fill: "none",
11212
+ xmlns: "http://www.w3.org/2000/svg"
11213
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
11214
+ d: "M1.481 22.99.34 21.82l4.16-4.184 4.222 4.222-1.155 1.155-3.043-3.042L1.48 22.99Zm0-4.792L.34 17.043l4.16-4.185 4.222 4.222-1.155 1.142-3.043-3.043-3.043 3.019Zm3.03-8.07L.315 5.933 1.48 4.778 4.5 7.783l3.043-3.005 1.179 1.166-4.212 4.184Zm0-4.765L.315 1.155 1.48.013 4.5 3.02 7.543.013l1.179 1.153L4.51 5.363Z",
11215
+ fill: "#0055AF"
11216
+ })));
11217
+
11218
+ var _g, _defs;
11219
+ function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
11220
+ const SvgExpandAll = props => /*#__PURE__*/React.createElement("svg", _extends$2({
11221
+ width: 23,
11222
+ height: 23,
11223
+ fill: "none",
11224
+ xmlns: "http://www.w3.org/2000/svg"
11225
+ }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
11226
+ clipPath: "url(#expand-all_svg__a)"
11227
+ }, /*#__PURE__*/React.createElement("path", {
11228
+ d: "m11.5 23.014-4.16-4.198L8.48 17.66l3.043 3.019 3.043-3.043 1.155 1.142-4.222 4.236Zm0-4.792-4.16-4.185 1.141-1.155 3.043 3.019 3.043-3.043L15.722 14 11.5 18.222Zm-3.019-8.094L7.316 8.986l4.194-4.208 4.212 4.198-1.18 1.152L11.5 7.123l-3.019 3.005Zm0-4.765L7.316 4.208 11.51.013l4.212 4.185-1.18 1.165L11.5 2.358 8.481 5.363Z",
11229
+ fill: "#0055AF"
11230
+ }))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
11231
+ id: "expand-all_svg__a"
11232
+ }, /*#__PURE__*/React.createElement("path", {
11233
+ fill: "#fff",
11234
+ d: "M0 0h23v23H0z"
11235
+ })))));
11236
+
11237
+ var _path$2;
11238
+ function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
11239
+ const SvgExpandFirst = props => /*#__PURE__*/React.createElement("svg", _extends$3({
11240
+ width: 10,
11241
+ height: 20,
11242
+ fill: "none",
11243
+ xmlns: "http://www.w3.org/2000/svg"
11244
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
11245
+ d: "m5 20-5-5.232 1.478-1.547L5 16.921l3.522-3.7L10 14.768 5 20ZM1.478 6.764 0 5.232 5 0l5 5.232-1.478 1.532L5 3.079 1.478 6.764Z",
11246
+ fill: "#0055AF"
11247
+ })));
10833
11248
 
11249
+ function _templateObject20$2() {
11250
+ var data = _taggedTemplateLiteral([""]);
11251
+ _templateObject20$2 = function _templateObject20() {
11252
+ return data;
11253
+ };
11254
+ return data;
11255
+ }
11256
+ function _templateObject19$3() {
11257
+ var data = _taggedTemplateLiteral(["\n margin: 10px 0;\n border-top: 1px solid #d4d4d4;\n"]);
11258
+ _templateObject19$3 = function _templateObject19() {
11259
+ return data;
11260
+ };
11261
+ return data;
11262
+ }
11263
+ function _templateObject18$3() {
11264
+ var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding-left: 10px;\n margin-top: 10px;\n"]);
11265
+ _templateObject18$3 = function _templateObject18() {
11266
+ return data;
11267
+ };
11268
+ return data;
11269
+ }
11270
+ function _templateObject17$5() {
11271
+ var data = _taggedTemplateLiteral(["\n font-size: 12px;\n font-weight: 500;\n"]);
11272
+ _templateObject17$5 = function _templateObject17() {
11273
+ return data;
11274
+ };
11275
+ return data;
11276
+ }
11277
+ function _templateObject16$5() {
11278
+ var data = _taggedTemplateLiteral(["\n font-family: \"Poppins\", sans-serif !important;\n\n .font-size {\n padding-left: 10px;\n margin-top: 10px;\n }\n"]);
11279
+ _templateObject16$5 = function _templateObject16() {
11280
+ return data;
11281
+ };
11282
+ return data;
11283
+ }
11284
+ function _templateObject15$5() {
11285
+ var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: row-reverse;\n padding: 16px 0px;\n gap: 16px;\n"]);
11286
+ _templateObject15$5 = function _templateObject15() {
11287
+ return data;
11288
+ };
11289
+ return data;
11290
+ }
10834
11291
  function _templateObject14$6() {
10835
11292
  var data = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 4px;\n cursor: default;\n color: ", ";\n "]);
10836
11293
  _templateObject14$6 = function _templateObject14() {
@@ -10916,7 +11373,7 @@
10916
11373
  return data;
10917
11374
  }
10918
11375
  function _templateObject2$k() {
10919
- var data = _taggedTemplateLiteral(["\n height: 100%;\n width: 100%;\n\n /* &.ag-theme-alpine .ag-cell {\n font-size: ", ";\n } */\n\n .common_table > div {\n font-family: \"Poppins\", sans-serif !important;\n }\n\n .ag-header-cell,\n .ag-header-viewport {\n background: ", ";\n }\n\n .ag-theme-alpine,\n .ag-theme-alpine-dark {\n --ag-border-color: ", ";\n }\n .ag-header-cell-resize::after {\n --ag-border-color: ", ";\n bottom: 0;\n height: auto;\n width: 1px;\n top: 0;\n display: none;\n }\n\n .ag-header {\n height: 40px !important;\n /* min-height: auto !important; */\n }\n .ag-cell-label-container {\n padding: 0px;\n }\n\n .ag-header-row {\n height: 40px !important;\n }\n .ag-header-cell,\n .ag-header-group-cell {\n padding: 0px 12px !important;\n border-right: 1px solid ", ";\n }\n .ag-header-cell:last-child,\n .ag-header-group-cell:last-child {\n border-right: none;\n }\n\n .ag-ltr .ag-cell {\n border-right: 1px solid ", ";\n }\n\n .ag-ltr .ag-cell:last-child {\n border-right: none;\n }\n\n .ag-row {\n border-bottom: 1px solid ", ";\n }\n\n .ag-ltr .ag-header-cell-resize {\n right: -5px;\n }\n .ag-header-cell-text {\n font-size: 14px;\n font-weight: 600;\n color: ", ";\n }\n\n .ag-ltr .ag-cell {\n height: 44px;\n font-size: 14px;\n color: ", ";\n padding-left: 12px;\n }\n .ag-row-hover {\n --ag-row-hover-color: ", ";\n }\n\n .ag-checkbox-input-wrapper.ag-checked::after {\n content: var(--ag-icon-font-code-checkbox-checked, \"\f106\");\n color: ", ";\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n }\n .ag-checkbox-input-wrapper::after {\n color: ", ";\n }\n\n .ag-theme-alpine,\n .ag-theme-alpine-dark {\n --ag-selected-row-background-color: ", ";\n }\n .ag-icon.ag-icon-menu::before {\n content: \"\";\n background: url(", ") no-repeat;\n width: 5px;\n height: 15px;\n background-size: 5px;\n display: block;\n cursor: pointer;\n }\n\n .ag-pinned-left-cols-container,\n .ag-pinned-right-cols-container {\n z-index: 9999;\n box-shadow: 0px 3px 4px #00000029;\n }\n\n .ag-header-active {\n --ag-selected-row-background-color: ", " !important;\n }\n\n .ag-menu-option-active {\n background: ", " !important;\n }\n\n .ag-text-field-input {\n border: 1px solid ", " !important;\n border-radius: 4px !important;\n padding: 4px 12px;\n padding-right: 31px;\n height: 29px;\n box-sizing: border-box;\n background: url(", ") no-repeat;\n background-size: 16px;\n font-size: 14px !important;\n background-position: center right 11px;\n }\n .ag-icon-tree-closed {\n transform: rotate(90deg);\n }\n .ag-details-row {\n padding: 15px;\n }\n .ag-row.ag-row-footer {\n background: ", " !important;\n }\n\n .ag-tabs-header {\n display: none;\n }\n .ag-menu-option-icon,\n .ag-menu-option-shortcut {\n display: none;\n }\n .settings_main_container .ag-menu-option-text {\n background: url(", ") no-repeat;\n width: 14px;\n height: 14px;\n background-size: 14px;\n background-position: 0 center;\n padding-left: 20px;\n color: ", ";\n font-weight: 600;\n }\n .format_main_container .ag-menu-option-text {\n background: url(", ") no-repeat;\n width: 14px;\n height: 14px;\n background-size: 14px;\n background-position: 0 center;\n padding-left: 20px;\n color: ", ";\n font-weight: 600;\n }\n .ag-menu-option-active {\n background: ", " !important;\n }\n .ag-theme-alpine .ag-menu {\n background-color: ", ";\n }\n .ag-menu-option-text {\n padding-left: 0px;\n }\n\n .ag-menu-body {\n padding: 0 12px;\n }\n .ag-menu-option-popup-pointer {\n display: flex;\n justify-content: flex-end;\n padding-right: 0;\n }\n .ag-popup-child {\n padding-left: 12px;\n }\n .ag-theme-alpine .ag-side-buttons {\n width: 24px;\n }\n .ag-theme-alpine .ag-side-buttons {\n width: 24px;\n padding-top: 0px;\n }\n .ag-side-button-button {\n justify-content: flex-start;\n }\n .ag-theme-alpine .ag-side-button-button {\n color: ", ";\n }\n .ag-theme-alpine .ag-side-button-button:hover {\n color: ", ";\n }\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n .ag-header-row {\n height: 30px !important;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n\n .ag-header-container,\n element.style {\n width: 200px;\n left: 0px;\n }\n .ag-header-cell,\n .ag-header-group-cell {\n height: 30px !important;\n }\n .ag-header {\n min-height: 30px !important;\n height: 30px !important;\n }\n .ag-ltr .ag-cell,\n .ag-row {\n height: 30px !important;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n .ag-header-cell-text {\n font-size: 12px;\n }\n .ag-icon.ag-icon-menu::before {\n content: \"\";\n width: 4px;\n height: 12px;\n background-size: 4px;\n display: block;\n cursor: pointer;\n }\n }\n"], ["\n height: 100%;\n width: 100%;\n\n /* &.ag-theme-alpine .ag-cell {\n font-size: ", ";\n } */\n\n .common_table > div {\n font-family: \"Poppins\", sans-serif !important;\n }\n\n .ag-header-cell,\n .ag-header-viewport {\n background: ", ";\n }\n\n .ag-theme-alpine,\n .ag-theme-alpine-dark {\n --ag-border-color: ", ";\n }\n .ag-header-cell-resize::after {\n --ag-border-color: ", ";\n bottom: 0;\n height: auto;\n width: 1px;\n top: 0;\n display: none;\n }\n\n .ag-header {\n height: 40px !important;\n /* min-height: auto !important; */\n }\n .ag-cell-label-container {\n padding: 0px;\n }\n\n .ag-header-row {\n height: 40px !important;\n }\n .ag-header-cell,\n .ag-header-group-cell {\n padding: 0px 12px !important;\n border-right: 1px solid ", ";\n }\n .ag-header-cell:last-child,\n .ag-header-group-cell:last-child {\n border-right: none;\n }\n\n .ag-ltr .ag-cell {\n border-right: 1px solid ", ";\n }\n\n .ag-ltr .ag-cell:last-child {\n border-right: none;\n }\n\n .ag-row {\n border-bottom: 1px solid ", ";\n }\n\n .ag-ltr .ag-header-cell-resize {\n right: -5px;\n }\n .ag-header-cell-text {\n font-size: 14px;\n font-weight: 600;\n color: ", ";\n }\n\n .ag-ltr .ag-cell {\n height: 44px;\n font-size: 14px;\n color: ", ";\n padding-left: 12px;\n }\n .ag-row-hover {\n --ag-row-hover-color: ", ";\n }\n\n .ag-checkbox-input-wrapper.ag-checked::after {\n content: var(--ag-icon-font-code-checkbox-checked, \"\\f106\");\n color: ", ";\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n }\n .ag-checkbox-input-wrapper::after {\n color: ", ";\n }\n\n .ag-theme-alpine,\n .ag-theme-alpine-dark {\n --ag-selected-row-background-color: ", ";\n }\n .ag-icon.ag-icon-menu::before {\n content: \"\";\n background: url(", ") no-repeat;\n width: 5px;\n height: 15px;\n background-size: 5px;\n display: block;\n cursor: pointer;\n }\n\n .ag-pinned-left-cols-container,\n .ag-pinned-right-cols-container {\n z-index: 9999;\n box-shadow: 0px 3px 4px #00000029;\n }\n\n .ag-header-active {\n --ag-selected-row-background-color: ", " !important;\n }\n\n .ag-menu-option-active {\n background: ", " !important;\n }\n\n .ag-text-field-input {\n border: 1px solid ", " !important;\n border-radius: 4px !important;\n padding: 4px 12px;\n padding-right: 31px;\n height: 29px;\n box-sizing: border-box;\n background: url(", ") no-repeat;\n background-size: 16px;\n font-size: 14px !important;\n background-position: center right 11px;\n }\n .ag-icon-tree-closed {\n transform: rotate(90deg);\n }\n .ag-details-row {\n padding: 15px;\n }\n .ag-row.ag-row-footer {\n background: ", " !important;\n }\n\n .ag-tabs-header {\n display: none;\n }\n .ag-menu-option-icon,\n .ag-menu-option-shortcut {\n display: none;\n }\n .settings_main_container .ag-menu-option-text {\n background: url(", ") no-repeat;\n width: 14px;\n height: 14px;\n background-size: 14px;\n background-position: 0 center;\n padding-left: 20px;\n color: ", ";\n font-weight: 600;\n }\n .format_main_container .ag-menu-option-text {\n background: url(", ") no-repeat;\n width: 14px;\n height: 14px;\n background-size: 14px;\n background-position: 0 center;\n padding-left: 20px;\n color: ", ";\n font-weight: 600;\n }\n .ag-menu-option-active {\n background: ", " !important;\n }\n .ag-theme-alpine .ag-menu {\n background-color: ", ";\n }\n .ag-menu-option-text {\n padding-left: 0px;\n }\n\n .ag-menu-body {\n padding: 0 12px;\n }\n .ag-menu-option-popup-pointer {\n display: flex;\n justify-content: flex-end;\n padding-right: 0;\n }\n .ag-popup-child {\n padding-left: 12px;\n }\n .ag-theme-alpine .ag-side-buttons {\n width: 24px;\n }\n .ag-theme-alpine .ag-side-buttons {\n width: 24px;\n padding-top: 0px;\n }\n .ag-side-button-button {\n justify-content: flex-start;\n }\n .ag-theme-alpine .ag-side-button-button {\n color: ", ";\n }\n .ag-theme-alpine .ag-side-button-button:hover {\n color: ", ";\n }\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n .ag-header-row {\n height: 30px !important;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n\n .ag-header-container,\n element.style {\n width: 200px;\n left: 0px;\n }\n .ag-header-cell,\n .ag-header-group-cell {\n height: 30px !important;\n }\n .ag-header {\n min-height: 30px !important;\n height: 30px !important;\n }\n .ag-ltr .ag-cell,\n .ag-row {\n height: 30px !important;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n .ag-header-cell-text {\n font-size: 12px;\n }\n .ag-icon.ag-icon-menu::before {\n content: \"\";\n width: 4px;\n height: 12px;\n background-size: 4px;\n display: block;\n cursor: pointer;\n }\n }\n"]);
11376
+ var data = _taggedTemplateLiteral(["\n height: 100%;\n width: 100%;\n\n /* &.ag-theme-alpine .ag-cell {\n font-size: ", ";\n } */\n\n .common_table > div {\n font-family: \"Poppins\", sans-serif !important;\n --ag-font-family: \"Poppins\", sans-serif !important;\n }\n\n .ag-header-cell,\n .ag-header-viewport {\n background: ", ";\n }\n\n .ag-theme-alpine,\n .ag-theme-alpine-dark {\n --ag-border-color: ", ";\n }\n .ag-header-cell-resize::after {\n --ag-border-color: ", ";\n bottom: 0;\n height: auto;\n width: 1px;\n top: 0;\n display: none;\n }\n\n .ag-cell-label-container {\n padding: 0px;\n }\n\n .ag-header-row {\n height: 40px !important;\n }\n .ag-header-cell,\n .ag-header-group-cell {\n padding: 0px 12px !important;\n border-right: 1px solid ", ";\n }\n .ag-header-cell:last-child,\n .ag-header-group-cell:last-child {\n border-right: none;\n }\n\n .ag-ltr .ag-cell {\n border-right: 1px solid ", ";\n }\n\n .ag-ltr .ag-cell:last-child {\n border-right: none;\n }\n\n .ag-row {\n border-bottom: 1px solid ", ";\n }\n\n .ag-ltr .ag-header-cell-resize {\n right: -5px;\n }\n .ag-header-cell-text {\n font-size: 14px;\n font-weight: 600;\n color: ", ";\n }\n\n .ag-ltr .ag-cell {\n font-size: 14px;\n color: ", ";\n padding-left: 12px;\n }\n .ag-row-hover {\n --ag-row-hover-color: ", ";\n }\n\n .ag-checkbox-input-wrapper.ag-checked::after {\n content: var(--ag-icon-font-code-checkbox-checked, \"\f106\");\n color: ", ";\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n }\n .ag-checkbox-input-wrapper::after {\n color: ", ";\n }\n\n .ag-theme-alpine,\n .ag-theme-alpine-dark {\n --ag-selected-row-background-color: ", ";\n }\n .ag-icon.ag-icon-menu::before {\n content: \"\";\n background: url(", ") no-repeat;\n width: 5px;\n height: 15px;\n background-size: 5px;\n display: block;\n cursor: pointer;\n }\n\n .ag-pinned-left-cols-container,\n .ag-pinned-right-cols-container {\n z-index: 9999;\n box-shadow: 0px 3px 4px #00000029;\n }\n\n .ag-header-active {\n --ag-selected-row-background-color: ", " !important;\n }\n\n .ag-menu-option-active:not(.format_main_container, .settings_main_container) {\n background: ", " !important;\n cursor: pointer;\n }\n .ag-menu-option-active {\n background: none;\n }\n\n .ag-row-selected {\n --ag-selected-row-background-color: ", " !important;\n }\n .ag-text-field-input {\n border: 1px solid ", " !important;\n border-radius: 4px !important;\n padding: 4px 12px;\n padding-right: 31px;\n height: 29px;\n box-sizing: border-box;\n background: url(", ") no-repeat;\n background-size: 16px;\n font-size: 14px !important;\n background-position: center right 11px;\n }\n .ag-icon-tree-closed {\n transform: rotate(0deg);\n }\n .ag-icon:hover {\n color: ", " !important;\n }\n .ag-details-row {\n padding: 16px;\n }\n .ag-row.ag-row-footer {\n background: ", " !important;\n }\n\n .ag-tabs-header {\n display: none;\n }\n .ag-menu-option-icon {\n padding-left: 10px;\n width: 10px;\n }\n .ag-menu-option-shortcut {\n padding: 0;\n width: 0;\n }\n .ag-icon-tick::before {\n padding-right: 4px;\n width: 4px;\n }\n .settings_main_container .ag-menu-option-text {\n background: url(", ") no-repeat;\n width: 14px;\n height: 14px;\n background-size: 14px;\n background-position: 0 center;\n padding-left: 20px;\n color: ", ";\n font-weight: 600;\n }\n .format_main_container .ag-menu-option-text {\n background: url(", ") no-repeat;\n width: 14px;\n height: 14px;\n background-size: 14px;\n background-position: 0 center;\n padding-left: 20px;\n color: ", ";\n font-weight: 600;\n }\n .ag-theme-alpine .ag-menu {\n background-color: ", ";\n }\n\n .ag-menu-option-popup-pointer {\n display: flex;\n justify-content: flex-end;\n }\n\n .ag-theme-alpine .ag-side-buttons {\n width: 24px;\n }\n .ag-virtual-list-item {\n height: 26px !important;\n }\n .ag-theme-alpine .ag-side-buttons {\n width: 24px;\n padding-top: 0px;\n }\n .ag-side-button-button {\n justify-content: flex-start;\n }\n .ag-theme-alpine .ag-side-button-button {\n color: ", ";\n }\n .ag-theme-alpine .ag-side-button-button:hover {\n color: ", ";\n }\n .ag-pinned-left-cols-container,\n .ag-pinned-right-cols-container {\n box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.12) !important;\n z-index: 1 !important;\n }\n\n .ag-pinned-left-cols-container {\n border-right: 1px solid #d4d4d4;\n }\n .ag-pinned-right-cols-container {\n border-left: 1px solid #d4d4d4;\n }\n .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(\n .ag-cell-range-single-cell\n ) {\n border-left: none;\n }\n .ag-theme-alpine .ag-side-buttons,\n .ag-theme-alpine-dark .ag-side-buttons,\n .ag-side-buttons {\n }\n .ag-side-buttons {\n width: 24px !important;\n padding: 0px;\n }\n .ag-side-button {\n }\n button.ag-side-button-button {\n padding: 0px;\n min-height: auto;\n padding: 8px 0;\n }\n .ag-side-button-icon-wrapper {\n margin-bottom: 0px;\n }\n\n .ag-side-button-button:hover,\n .ag-selected .ag-side-button-button {\n color: ", " !important;\n }\n\n .ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\n border-left-color: #fff;\n }\n\n .ag-tool-panel-wrapper {\n position: absolute;\n width: 241px;\n right: 24px;\n top: 0;\n bottom: 0;\n background: #fff;\n border-left: 1px solid #d4d4d4;\n box-shadow: -4px 0px 4px 0px rgba(0, 0, 0, 0.08);\n overflow: auto;\n padding: 8px 12px;\n box-sizing: border-box;\n }\n\n .ag-header-expand-icon:hover {\n color: ", ";\n }\n\n .ag-menu-list {\n }\n .ag-menu-option {\n /* padding: 0 10px; */\n }\n .ag-menu-body {\n /* padding: 0 12px; */\n }\n\n .ag-set-filter-item {\n margin: 0px;\n }\n .ag-mini-filter {\n margin: 16px 0 10px 0;\n }\n\n .ag-row-odd {\n background: ", " !important;\n }\n\n .number-header * .ag-cell-label-container {\n display: flex;\n flex-direction: row;\n\n .ag-header-cell-label {\n flex-direction: row-reverse;\n }\n }\n\n .number-cell {\n text-align: right;\n }\n\n .cell-renderer {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n }\n\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n .ag-header-row {\n height: 30px !important;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n\n .ag-header-container,\n element.style {\n width: 200px;\n left: 0px;\n }\n .ag-header-cell,\n .ag-header-group-cell {\n height: 30px !important;\n }\n .ag-header {\n min-height: 30px !important;\n height: 30px !important;\n }\n .ag-ltr .ag-cell,\n .ag-row {\n height: 30px !important;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n .ag-header-cell-text {\n font-size: 12px;\n }\n .ag-icon.ag-icon-menu::before {\n content: \"\";\n width: 4px;\n height: 12px;\n background-size: 4px;\n display: block;\n cursor: pointer;\n }\n }\n"], ["\n height: 100%;\n width: 100%;\n\n /* &.ag-theme-alpine .ag-cell {\n font-size: ", ";\n } */\n\n .common_table > div {\n font-family: \"Poppins\", sans-serif !important;\n --ag-font-family: \"Poppins\", sans-serif !important;\n }\n\n .ag-header-cell,\n .ag-header-viewport {\n background: ", ";\n }\n\n .ag-theme-alpine,\n .ag-theme-alpine-dark {\n --ag-border-color: ", ";\n }\n .ag-header-cell-resize::after {\n --ag-border-color: ", ";\n bottom: 0;\n height: auto;\n width: 1px;\n top: 0;\n display: none;\n }\n\n .ag-cell-label-container {\n padding: 0px;\n }\n\n .ag-header-row {\n height: 40px !important;\n }\n .ag-header-cell,\n .ag-header-group-cell {\n padding: 0px 12px !important;\n border-right: 1px solid ", ";\n }\n .ag-header-cell:last-child,\n .ag-header-group-cell:last-child {\n border-right: none;\n }\n\n .ag-ltr .ag-cell {\n border-right: 1px solid ", ";\n }\n\n .ag-ltr .ag-cell:last-child {\n border-right: none;\n }\n\n .ag-row {\n border-bottom: 1px solid ", ";\n }\n\n .ag-ltr .ag-header-cell-resize {\n right: -5px;\n }\n .ag-header-cell-text {\n font-size: 14px;\n font-weight: 600;\n color: ", ";\n }\n\n .ag-ltr .ag-cell {\n font-size: 14px;\n color: ", ";\n padding-left: 12px;\n }\n .ag-row-hover {\n --ag-row-hover-color: ", ";\n }\n\n .ag-checkbox-input-wrapper.ag-checked::after {\n content: var(--ag-icon-font-code-checkbox-checked, \"\\f106\");\n color: ", ";\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n }\n .ag-checkbox-input-wrapper::after {\n color: ", ";\n }\n\n .ag-theme-alpine,\n .ag-theme-alpine-dark {\n --ag-selected-row-background-color: ", ";\n }\n .ag-icon.ag-icon-menu::before {\n content: \"\";\n background: url(", ") no-repeat;\n width: 5px;\n height: 15px;\n background-size: 5px;\n display: block;\n cursor: pointer;\n }\n\n .ag-pinned-left-cols-container,\n .ag-pinned-right-cols-container {\n z-index: 9999;\n box-shadow: 0px 3px 4px #00000029;\n }\n\n .ag-header-active {\n --ag-selected-row-background-color: ", " !important;\n }\n\n .ag-menu-option-active:not(.format_main_container, .settings_main_container) {\n background: ", " !important;\n cursor: pointer;\n }\n .ag-menu-option-active {\n background: none;\n }\n\n .ag-row-selected {\n --ag-selected-row-background-color: ", " !important;\n }\n .ag-text-field-input {\n border: 1px solid ", " !important;\n border-radius: 4px !important;\n padding: 4px 12px;\n padding-right: 31px;\n height: 29px;\n box-sizing: border-box;\n background: url(", ") no-repeat;\n background-size: 16px;\n font-size: 14px !important;\n background-position: center right 11px;\n }\n .ag-icon-tree-closed {\n transform: rotate(0deg);\n }\n .ag-icon:hover {\n color: ", " !important;\n }\n .ag-details-row {\n padding: 16px;\n }\n .ag-row.ag-row-footer {\n background: ", " !important;\n }\n\n .ag-tabs-header {\n display: none;\n }\n .ag-menu-option-icon {\n padding-left: 10px;\n width: 10px;\n }\n .ag-menu-option-shortcut {\n padding: 0;\n width: 0;\n }\n .ag-icon-tick::before {\n padding-right: 4px;\n width: 4px;\n }\n .settings_main_container .ag-menu-option-text {\n background: url(", ") no-repeat;\n width: 14px;\n height: 14px;\n background-size: 14px;\n background-position: 0 center;\n padding-left: 20px;\n color: ", ";\n font-weight: 600;\n }\n .format_main_container .ag-menu-option-text {\n background: url(", ") no-repeat;\n width: 14px;\n height: 14px;\n background-size: 14px;\n background-position: 0 center;\n padding-left: 20px;\n color: ", ";\n font-weight: 600;\n }\n .ag-theme-alpine .ag-menu {\n background-color: ", ";\n }\n\n .ag-menu-option-popup-pointer {\n display: flex;\n justify-content: flex-end;\n }\n\n .ag-theme-alpine .ag-side-buttons {\n width: 24px;\n }\n .ag-virtual-list-item {\n height: 26px !important;\n }\n .ag-theme-alpine .ag-side-buttons {\n width: 24px;\n padding-top: 0px;\n }\n .ag-side-button-button {\n justify-content: flex-start;\n }\n .ag-theme-alpine .ag-side-button-button {\n color: ", ";\n }\n .ag-theme-alpine .ag-side-button-button:hover {\n color: ", ";\n }\n .ag-pinned-left-cols-container,\n .ag-pinned-right-cols-container {\n box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.12) !important;\n z-index: 1 !important;\n }\n\n .ag-pinned-left-cols-container {\n border-right: 1px solid #d4d4d4;\n }\n .ag-pinned-right-cols-container {\n border-left: 1px solid #d4d4d4;\n }\n .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(\n .ag-cell-range-single-cell\n ) {\n border-left: none;\n }\n .ag-theme-alpine .ag-side-buttons,\n .ag-theme-alpine-dark .ag-side-buttons,\n .ag-side-buttons {\n }\n .ag-side-buttons {\n width: 24px !important;\n padding: 0px;\n }\n .ag-side-button {\n }\n button.ag-side-button-button {\n padding: 0px;\n min-height: auto;\n padding: 8px 0;\n }\n .ag-side-button-icon-wrapper {\n margin-bottom: 0px;\n }\n\n .ag-side-button-button:hover,\n .ag-selected .ag-side-button-button {\n color: ", " !important;\n }\n\n .ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\n border-left-color: #fff;\n }\n\n .ag-tool-panel-wrapper {\n position: absolute;\n width: 241px;\n right: 24px;\n top: 0;\n bottom: 0;\n background: #fff;\n border-left: 1px solid #d4d4d4;\n box-shadow: -4px 0px 4px 0px rgba(0, 0, 0, 0.08);\n overflow: auto;\n padding: 8px 12px;\n box-sizing: border-box;\n }\n\n .ag-header-expand-icon:hover {\n color: ", ";\n }\n\n .ag-menu-list {\n }\n .ag-menu-option {\n /* padding: 0 10px; */\n }\n .ag-menu-body {\n /* padding: 0 12px; */\n }\n\n .ag-set-filter-item {\n margin: 0px;\n }\n .ag-mini-filter {\n margin: 16px 0 10px 0;\n }\n\n .ag-row-odd {\n background: ", " !important;\n }\n\n .number-header * .ag-cell-label-container {\n display: flex;\n flex-direction: row;\n\n .ag-header-cell-label {\n flex-direction: row-reverse;\n }\n }\n\n .number-cell {\n text-align: right;\n }\n\n .cell-renderer {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n }\n\n @media screen and (max-width: 1399px) and (min-width: 1200px) {\n .ag-header-row {\n height: 30px !important;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n\n .ag-header-container,\n element.style {\n width: 200px;\n left: 0px;\n }\n .ag-header-cell,\n .ag-header-group-cell {\n height: 30px !important;\n }\n .ag-header {\n min-height: 30px !important;\n height: 30px !important;\n }\n .ag-ltr .ag-cell,\n .ag-row {\n height: 30px !important;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n .ag-header-cell-text {\n font-size: 12px;\n }\n .ag-icon.ag-icon-menu::before {\n content: \"\";\n width: 4px;\n height: 12px;\n background-size: 4px;\n display: block;\n cursor: pointer;\n }\n }\n"]);
10920
11377
  _templateObject2$k = function _templateObject2() {
10921
11378
  return data;
10922
11379
  };
@@ -10932,7 +11389,7 @@
10932
11389
  var StyledTable = styled__default.div(_templateObject$m());
10933
11390
  var StyledTableContainer = styled__default.div(_templateObject2$k(), function (props) {
10934
11391
  return props.isCompact ? COMPACT_TABLE_FONT_SIZE : DEFAULT_TABLE_FONT_SIZE;
10935
- }, DisabledTextareaBg, FocusDisableBorderColor, FocusDisableBorderColor, FocusDisableBorderColor, FocusDisableBorderColor, FocusDisableBorderColor, BodyFontColor, BodyFontColor, LightBgColorButton, PrimaryBlueColor, DefaultColorButton, LightBgColorButton, menuExtended, LightBgColorButton, LightBgColorButton, AGInputColor, agGridSearch, PanelFooterBg, agGridSetting, CheckBoxBorder, agGridFormatIcon, CheckBoxBorder, WhiteColor, WhiteColor, LabelColor, PrimaryBlueColor);
11392
+ }, DisabledTextareaBg, FocusDisableBorderColor, FocusDisableBorderColor, FocusDisableBorderColor, FocusDisableBorderColor, FocusDisableBorderColor, BodyFontColor, BodyFontColor, LightBgColorButton, PrimaryBlueColor, DefaultColorButton, LightBgColorButton, menuExtended, LightBgColorButton, LightBgColorButton, LightBgColorButton, AGInputColor, agGridSearch, PrimaryBlueColor, PanelFooterBg, agGridSetting, CheckBoxBorder, agGridFormatIcon, CheckBoxBorder, WhiteColor, LabelColor, PrimaryBlueColor, PrimaryBlueColor, PrimaryBlueColor, WhiteColor, AgCellRendererBackground);
10936
11393
  var PaginationContainer = styled__default.div(_templateObject3$k());
10937
11394
  var StyledLeftPaginationContainer = styled__default.div(_templateObject4$j(), StyledMenu, StyledDropdownMainButton);
10938
11395
  var StyledShowRecLabel = styled__default.label(_templateObject5$i(), LabelColor);
@@ -10949,6 +11406,12 @@
10949
11406
  }, function (props) {
10950
11407
  return props.active && styled.css(_templateObject14$6(), PrimaryBlueColor, WhiteColor);
10951
11408
  });
11409
+ var ExpandCollapseButtonContainer = styled__default.div(_templateObject15$5());
11410
+ var StyledTableSideNavContainer = styled__default.div(_templateObject16$5());
11411
+ var StyledTabHeading = styled__default.h2(_templateObject17$5());
11412
+ var StyledTableOptionsList = styled__default.ul(_templateObject18$3());
11413
+ var StyledHRLine = styled__default.hr(_templateObject19$3());
11414
+ var StyledTableOption = styled__default.li(_templateObject20$2());
10952
11415
 
10953
11416
  var Pagination = function Pagination(_ref) {
10954
11417
  var gridApi = _ref.gridApi,
@@ -11069,6 +11532,190 @@
11069
11532
  });
11070
11533
  };
11071
11534
 
11535
+ function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11536
+ function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11537
+ /**
11538
+ *
11539
+ * @param {object} params // table instance
11540
+ * Ability to pin/unpin columns based on current state
11541
+ */
11542
+ var onColMenuFreezeClick = function onColMenuFreezeClick(params) {
11543
+ var pinned = params.column.pinned; // if column is pinned then unpin, vice-versa
11544
+ if (pinned) {
11545
+ freezeColumn(params, false);
11546
+ } else {
11547
+ freezeColumn(params, true);
11548
+ }
11549
+ };
11550
+
11551
+ /**
11552
+ *
11553
+ * @param {object} params // table instance
11554
+ * @param {boolean} isPinned // is column pinned or not
11555
+ * By default column is pinned to left
11556
+ */
11557
+ var freezeColumn = function freezeColumn(params, isPinned) {
11558
+ var colId = params.column.colId;
11559
+ params.columnApi.applyColumnState({
11560
+ state: [{
11561
+ colId: colId,
11562
+ pinned: isPinned ? "left" : null
11563
+ }]
11564
+ });
11565
+ };
11566
+
11567
+ /**
11568
+ *
11569
+ * @param {object} params // table instance
11570
+ * Remove the extra.width property to make column as auto adjust
11571
+ */
11572
+ var onColMenuAutoAdjustClick = function onColMenuAutoAdjustClick(params) {
11573
+ var colDefExtra = _objectSpread$j({}, params.column.colDef.extra);
11574
+ // delete colDefExtra.width;
11575
+ params.column.colDef.extra = colDefExtra;
11576
+ params.columnApi.autoSizeColumn(params.column);
11577
+ };
11578
+ var sortFunc = function sortFunc(columnData, sortBy, api) {
11579
+ // applyColumnState - to manually set the sort order for a particular column
11580
+ api.columnApi.applyColumnState({
11581
+ state: [{
11582
+ colId: columnData.colId,
11583
+ sort: sortBy
11584
+ }],
11585
+ defaultState: {
11586
+ sort: null
11587
+ }
11588
+ });
11589
+ };
11590
+ var getMainMenuItems = function getMainMenuItems(params) {
11591
+ var _colDef$extra, _colDef$extra3, _colDef$extra4;
11592
+ var onFontSizeChange = params.onFontSizeChange,
11593
+ onNumberFormatChange = params.onNumberFormatChange;
11594
+ var _params$column = params.column,
11595
+ colDef = _params$column.colDef,
11596
+ pinned = _params$column.pinned,
11597
+ sort = _params$column.sort,
11598
+ actualWidth = _params$column.actualWidth;
11599
+ var columnMenuItems = [];
11600
+
11601
+ // grid column menu title
11602
+ columnMenuItems.push({
11603
+ name: "Column Settings",
11604
+ cssClasses: ["settings_main_container"]
11605
+ }, "separator");
11606
+
11607
+ // ability to sort column
11608
+ columnMenuItems.push({
11609
+ name: "Sort",
11610
+ subMenu: [{
11611
+ name: "Sort A to Z",
11612
+ action: function action() {
11613
+ return sortFunc(params.column, "asc", params);
11614
+ },
11615
+ checked: sort === "asc"
11616
+ }, {
11617
+ name: "Sort Z to A",
11618
+ checked: sort === "desc",
11619
+ action: function action() {
11620
+ return sortFunc(params.column, "desc", params);
11621
+ }
11622
+ }, {
11623
+ name: "Reset",
11624
+ action: function action() {
11625
+ return sortFunc(params.column, null, params);
11626
+ }
11627
+ }],
11628
+ disabled: false
11629
+ });
11630
+
11631
+ // ability to pin/unpin columns based on current state
11632
+ columnMenuItems.push({
11633
+ name: pinned ? "Unfreeze Column" : "Freeze Column",
11634
+ action: function action() {
11635
+ onColMenuFreezeClick(params);
11636
+ }
11637
+ });
11638
+
11639
+ // ability to adjust column width to custom or auto
11640
+ columnMenuItems.push({
11641
+ name: "Column width",
11642
+ subMenu: [{
11643
+ name: "Auto Adjust",
11644
+ action: function action() {
11645
+ onColMenuAutoAdjustClick(params);
11646
+ },
11647
+ // if extra.width property is not present- column is auto adjusted
11648
+ checked: actualWidth !== (colDef === null || colDef === void 0 ? void 0 : (_colDef$extra = colDef.extra) === null || _colDef$extra === void 0 ? void 0 : _colDef$extra.width)
11649
+ }, {
11650
+ name: "Custom width",
11651
+ action: function action() {
11652
+ var _colDef$extra2;
11653
+ // add extra.width property for custom width
11654
+ params.columnApi.setColumnWidth(params.column.colDef, colDef === null || colDef === void 0 ? void 0 : (_colDef$extra2 = colDef.extra) === null || _colDef$extra2 === void 0 ? void 0 : _colDef$extra2.width);
11655
+ },
11656
+ // if extra.width property is present- column has custom width
11657
+ checked: (colDef === null || colDef === void 0 ? void 0 : (_colDef$extra3 = colDef.extra) === null || _colDef$extra3 === void 0 ? void 0 : _colDef$extra3.width) === actualWidth,
11658
+ disabled: !(colDef === null || colDef === void 0 ? void 0 : (_colDef$extra4 = colDef.extra) === null || _colDef$extra4 === void 0 ? void 0 : _colDef$extra4.width)
11659
+ }]
11660
+ });
11661
+
11662
+ // text wrap action
11663
+ columnMenuItems.push({
11664
+ name: "Wrap Text",
11665
+ disabled: true
11666
+ });
11667
+ columnMenuItems.push({
11668
+ name: "Format",
11669
+ cssClasses: ["format_main_container"]
11670
+ }, "separator");
11671
+ columnMenuItems.push({
11672
+ name: "Numeric Values",
11673
+ subMenu: [{
11674
+ name: "Full Number",
11675
+ action: function action() {
11676
+ return onFontSizeChange("full");
11677
+ }
11678
+ }, {
11679
+ name: "In K",
11680
+ action: function action() {
11681
+ return onFontSizeChange("thousand");
11682
+ }
11683
+ }, {
11684
+ name: "In Mn",
11685
+ action: function action() {
11686
+ return onFontSizeChange("million");
11687
+ }
11688
+ }, {
11689
+ name: "In Bn",
11690
+ action: function action() {
11691
+ return onFontSizeChange("billion");
11692
+ }
11693
+ }],
11694
+ disabled: !onFontSizeChange
11695
+ });
11696
+ columnMenuItems.push({
11697
+ name: "Font Size",
11698
+ subMenu: [{
11699
+ name: "Small Font",
11700
+ action: function action() {
11701
+ return onNumberFormatChange("small");
11702
+ }
11703
+ }, {
11704
+ name: "Medium Font",
11705
+ action: function action() {
11706
+ return onNumberFormatChange("medium");
11707
+ }
11708
+ }, {
11709
+ name: "Large Font",
11710
+ action: function action() {
11711
+ return onNumberFormatChange("large");
11712
+ }
11713
+ }],
11714
+ disabled: !onNumberFormatChange
11715
+ });
11716
+ return columnMenuItems;
11717
+ };
11718
+
11072
11719
  function styleInject(css, ref) {
11073
11720
  if ( ref === void 0 ) ref = {};
11074
11721
  var insertAt = ref.insertAt;
@@ -11096,20 +11743,32 @@
11096
11743
  }
11097
11744
  }
11098
11745
 
11099
- var css_248z = "@import \"ag-grid-community/styles/ag-grid.css\";\n@import \"ag-grid-community/styles/ag-theme-alpine.css\";\n";
11746
+ var css_248z = "@import \"ag-grid-community/dist/styles/ag-grid.css\";\n@import \"ag-grid-community/dist/styles/ag-theme-alpine.css\";\n";
11100
11747
  styleInject(css_248z);
11101
11748
 
11102
- function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11103
- function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11104
- var Table = /*#__PURE__*/React.forwardRef(function (_ref, refs) {
11105
- var rowData = _ref.rowData,
11106
- columnDefs = _ref.columnDefs,
11107
- isCompact = _ref.isCompact,
11749
+ function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11750
+ function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11751
+ var Table = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11752
+ var isCompact = _ref.isCompact,
11108
11753
  pagination = _ref.pagination,
11109
11754
  pageSizeList = _ref.pageSizeList,
11110
- props = _objectWithoutProperties(_ref, ["rowData", "columnDefs", "isCompact", "pagination", "pageSizeList"]);
11755
+ isExpandCollapseAll = _ref.isExpandCollapseAll,
11756
+ _ref$customSideBar = _ref.customSideBar,
11757
+ customSideBar = _ref$customSideBar === void 0 ? [] : _ref$customSideBar,
11758
+ onFontSizeChange = _ref.onFontSizeChange,
11759
+ onNumberFormatChange = _ref.onNumberFormatChange,
11760
+ props = _objectWithoutProperties(_ref, ["isCompact", "pagination", "pageSizeList", "isExpandCollapseAll", "customSideBar", "onFontSizeChange", "onNumberFormatChange"]);
11761
+ var _useState = React.useState(false),
11762
+ _useState2 = _slicedToArray(_useState, 2),
11763
+ isAllExpanded = _useState2[0],
11764
+ setIsAllExpanded = _useState2[1];
11765
+ var _useState3 = React.useState(false),
11766
+ _useState4 = _slicedToArray(_useState3, 2),
11767
+ isFirstGroupExpanded = _useState4[0],
11768
+ setIsFirstGroupExpanded = _useState4[1];
11111
11769
  agGridEnterprise.LicenseManager.setLicenseKey("CompanyName=Impact Analytics,LicensedGroup=31Jan22 Purchase,LicenseType=MultipleApplications,LicensedConcurrentDeveloperCount=1,LicensedProductionInstancesCount=0,AssetReference=AG-025014,ExpiryDate=31_January_2023_[v2]_MTY3NTEyMzIwMDAwMA==e4f58ef1fe10261cf66aa1e5a5cb2da6");
11112
- var gridRef = React.useRef();
11770
+ var gridRef = React.useRef(null);
11771
+ var fontSize = React.useRef("small");
11113
11772
  var getRowHeight = function getRowHeight() {
11114
11773
  var defaultHeight = 45;
11115
11774
  var compactHeight = 25;
@@ -11117,32 +11776,88 @@
11117
11776
  };
11118
11777
  var columnTypes = {
11119
11778
  number: {
11120
- width: 100,
11121
- cellStyle: {
11122
- textAlign: "right"
11123
- }
11779
+ cellClass: ["number-cell"],
11780
+ headerClass: ["number-header"]
11124
11781
  },
11125
11782
  cellRenderer: {
11126
- cellStyle: {
11127
- display: "flex",
11128
- alignItems: "center",
11129
- justifyContent: "center"
11783
+ cellClass: ["cell-renderer"]
11784
+ }
11785
+ };
11786
+ var expandCollapseAll = function expandCollapseAll() {
11787
+ if (props.masterDetail) {
11788
+ gridRef.current.api.forEachNode(function (node) {
11789
+ gridRef.current.api.setRowNodeExpanded(node, !isAllExpanded);
11790
+ });
11791
+ } else {
11792
+ if (!isAllExpanded) {
11793
+ gridRef.current.api.expandAll();
11794
+ } else {
11795
+ gridRef.current.api.collapseAll();
11130
11796
  }
11131
11797
  }
11798
+ setIsAllExpanded(function (prev) {
11799
+ return !prev;
11800
+ });
11801
+ };
11802
+ var expandFirstGroup = function expandFirstGroup() {
11803
+ gridRef.current.api.forEachNode(function (node) {
11804
+ if (node.level === 0) {
11805
+ gridRef.current.api.setRowNodeExpanded(node, !isFirstGroupExpanded);
11806
+ }
11807
+ });
11808
+ setIsFirstGroupExpanded(function (prev) {
11809
+ return !prev;
11810
+ });
11811
+ };
11812
+ var sideBar = {
11813
+ toolPanels: [
11814
+ // {
11815
+ // id: "format-columns",
11816
+ // labelDefault: "",
11817
+ // iconKey: "columns",
11818
+ // labelKey: "formatColumns",
11819
+ // toolPanel: FormatColumns,
11820
+ // minWidth: 225,
11821
+ // maxWidth: 225,
11822
+ // width: 225,
11823
+ // toolPanelParams: {
11824
+ // fontSize: fontSize,
11825
+ // },
11826
+ // },
11827
+ ].concat(customSideBar),
11828
+ defaultToolPanel: ""
11132
11829
  };
11133
11830
  return /*#__PURE__*/jsxRuntime.jsxs(StyledTableContainer, {
11134
11831
  className: "ag-theme-alpine",
11135
11832
  isCompact: isCompact,
11136
- children: [/*#__PURE__*/jsxRuntime.jsx(agGridReact.AgGridReact, _objectSpread$h({
11137
- ref: refs ? refs : gridRef,
11138
- rowData: rowData,
11139
- columnDefs: columnDefs,
11833
+ children: [isExpandCollapseAll && /*#__PURE__*/jsxRuntime.jsxs(ExpandCollapseButtonContainer, {
11834
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
11835
+ onClick: expandCollapseAll,
11836
+ icon: isAllExpanded ? SvgCollapseAll : SvgExpandAll,
11837
+ variant: "secondary",
11838
+ disabled: isFirstGroupExpanded
11839
+ }), /*#__PURE__*/jsxRuntime.jsx(Button, {
11840
+ onClick: expandFirstGroup,
11841
+ icon: isFirstGroupExpanded ? SvgCollapseFirst : SvgExpandFirst,
11842
+ variant: "secondary",
11843
+ disabled: isAllExpanded
11844
+ })]
11845
+ }), /*#__PURE__*/jsxRuntime.jsx(agGridReact.AgGridReact, _objectSpread$k({
11846
+ ref: ref ? ref : gridRef,
11140
11847
  columnTypes: columnTypes,
11141
11848
  getRowHeight: getRowHeight,
11849
+ suppressMenuHide: true,
11142
11850
  pagination: pagination,
11143
- suppressPaginationPanel: true
11144
- }, props)), pagination && (refs.current || gridRef.current) && /*#__PURE__*/jsxRuntime.jsx(Pagination, {
11145
- gridApi: refs ? refs.current.api : gridRef.current.api,
11851
+ suppressPaginationPanel: true,
11852
+ getMainMenuItems: function getMainMenuItems$1(params) {
11853
+ return getMainMenuItems(_objectSpread$k(_objectSpread$k({}, params), {}, {
11854
+ onFontSizeChange: onFontSizeChange,
11855
+ onNumberFormatChange: onNumberFormatChange
11856
+ }));
11857
+ },
11858
+ sideBar: sideBar
11859
+ }, props)), pagination && gridRef.current && /*#__PURE__*/jsxRuntime.jsx(Pagination, {
11860
+ gridApi: gridRef.current.api,
11146
11861
  pageSizeList: pageSizeList
11147
11862
  })]
11148
11863
  });
@@ -11243,8 +11958,8 @@
11243
11958
  var StyledPanelFooter = styled__default.div(_templateObject10$e(), PanelFooterBg);
11244
11959
  var StyledPanelCTAContainer = styled__default.div(_templateObject11$d());
11245
11960
 
11246
- function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11247
- function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11961
+ function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11962
+ function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11248
11963
  var Panel = function Panel(_ref) {
11249
11964
  var isOpen = _ref.isOpen,
11250
11965
  size = _ref.size,
@@ -11258,21 +11973,29 @@
11258
11973
  children: isOpen && /*#__PURE__*/jsxRuntime.jsx(ClickAwayListener, {
11259
11974
  onClickAway: onClose,
11260
11975
  children: /*#__PURE__*/jsxRuntime.jsx(StyledPanel, {
11976
+ className: "panel",
11261
11977
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledPanelContentContainer, {
11262
11978
  size: size,
11979
+ className: "panel-container",
11263
11980
  children: [/*#__PURE__*/jsxRuntime.jsxs(StyledPanelHeader, {
11981
+ className: "panel-header",
11264
11982
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledPanelHeading, {
11983
+ className: "panel-heading",
11265
11984
  children: title
11266
11985
  }), /*#__PURE__*/jsxRuntime.jsx(StyledPanelCloseIcon, {
11267
- onClick: onClose
11986
+ onClick: onClose,
11987
+ className: "panel-close-button"
11268
11988
  })]
11269
11989
  }), /*#__PURE__*/jsxRuntime.jsx(StyledPanelBodyContainer, {
11990
+ className: "panel-body-container",
11270
11991
  children: children
11271
11992
  }), /*#__PURE__*/jsxRuntime.jsx(StyledPanelFooter, {
11993
+ className: "panel-footer",
11272
11994
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledPanelCTAContainer, {
11273
- children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$i(_objectSpread$i({}, tertiaryButtonProps), {}, {
11995
+ className: "panel-buttons-container",
11996
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$l(_objectSpread$l({}, tertiaryButtonProps), {}, {
11274
11997
  variant: "url"
11275
- })), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$i(_objectSpread$i({}, primaryButtonProps), {}, {
11998
+ })), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$l(_objectSpread$l({}, primaryButtonProps), {}, {
11276
11999
  variant: "primary"
11277
12000
  }))]
11278
12001
  })
@@ -11298,7 +12021,7 @@
11298
12021
  return data;
11299
12022
  }
11300
12023
  function _templateObject4$l() {
11301
- var data = _taggedTemplateLiteral(["\n position: relative;\n width: max-content;\n ", " {\n width: 140px;\n box-sizing: border-box;\n padding-right: 35px;\n }\n ", "\n\n ", "\n"]);
12024
+ var data = _taggedTemplateLiteral(["\n position: relative;\n /* width: max-content; */\n ", " {\n width: 140px;\n box-sizing: border-box;\n padding-right: 35px;\n }\n ", "\n\n ", "\n"]);
11302
12025
  _templateObject4$l = function _templateObject4() {
11303
12026
  return data;
11304
12027
  };
@@ -11334,7 +12057,7 @@
11334
12057
  return props.stepper && styled.css(_templateObject6$i(), StyledInputBox, StyledArrowContainer, StyledUpBottomContainer, DisabledTextareaBg, minusIcon, FocusBackgroundColor, minusIcon, StyledUpArrowContainer, DisabledTextareaBg, plusIcon, FocusBackgroundColor, plusIcon);
11335
12058
  });
11336
12059
 
11337
- var Counter = function Counter(_ref) {
12060
+ var Counter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11338
12061
  var label = _ref.label,
11339
12062
  placeholder = _ref.placeholder,
11340
12063
  value = _ref.value,
@@ -11346,7 +12069,8 @@
11346
12069
  _ref$min = _ref.min,
11347
12070
  min = _ref$min === void 0 ? 0 : _ref$min,
11348
12071
  _ref$max = _ref.max,
11349
- max = _ref$max === void 0 ? 100 : _ref$max;
12072
+ max = _ref$max === void 0 ? 100 : _ref$max,
12073
+ className = _ref.className;
11350
12074
  var handleIncrement = function handleIncrement() {
11351
12075
  setValue(function (prevValue) {
11352
12076
  var prevValueNum = Number(prevValue);
@@ -11369,6 +12093,8 @@
11369
12093
  return /*#__PURE__*/jsxRuntime.jsxs(StyledCounter, {
11370
12094
  disabled: disabled,
11371
12095
  stepper: stepper,
12096
+ className: "".concat(className, " counter-container"),
12097
+ ref: ref === null || ref === void 0 ? void 0 : ref.containerRef,
11372
12098
  children: [/*#__PURE__*/jsxRuntime.jsx(Input, {
11373
12099
  type: "number",
11374
12100
  label: label,
@@ -11377,16 +12103,20 @@
11377
12103
  helperText: label,
11378
12104
  min: min,
11379
12105
  max: max,
11380
- onChange: handleInputChange
12106
+ onChange: handleInputChange,
12107
+ className: "counter-input",
12108
+ ref: ref === null || ref === void 0 ? void 0 : ref.inputRef
11381
12109
  }), /*#__PURE__*/jsxRuntime.jsxs(StyledArrowContainer, {
11382
12110
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledUpArrowContainer, {
11383
- onClick: handleIncrement
12111
+ onClick: handleIncrement,
12112
+ className: "counter-increment-button"
11384
12113
  }), /*#__PURE__*/jsxRuntime.jsx(StyledUpBottomContainer, {
11385
- onClick: handleDecrement
12114
+ onClick: handleDecrement,
12115
+ className: "counter-decrement-button"
11386
12116
  })]
11387
12117
  })]
11388
12118
  });
11389
- };
12119
+ });
11390
12120
 
11391
12121
  function _templateObject7$h() {
11392
12122
  var data = _taggedTemplateLiteral(["\n height: 50px;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: flex-end;\n gap: 16px;\n"]);
@@ -11445,14 +12175,15 @@
11445
12175
  var StyledBodyContainer = styled__default.p(_templateObject6$j());
11446
12176
  var StyledBottomCTAContainer$2 = styled__default.div(_templateObject7$h());
11447
12177
 
11448
- var Card = function Card(_ref) {
12178
+ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11449
12179
  var children = _ref.children;
11450
12180
  return /*#__PURE__*/jsxRuntime.jsx(StyledCardContainer, {
12181
+ ref: ref,
11451
12182
  children: /*#__PURE__*/jsxRuntime.jsx(StyledCard, {
11452
12183
  children: children
11453
12184
  })
11454
12185
  });
11455
- };
12186
+ });
11456
12187
 
11457
12188
  function _templateObject13$7() {
11458
12189
  var data = _taggedTemplateLiteral(["\n background: ", ";\n position: absolute;\n width: 30%;\n left: 0%;\n height: 6px;\n border-radius: 4px;\n"]);
@@ -11561,7 +12292,7 @@
11561
12292
  var StyledSliderRange = styled__default.div(_templateObject12$9(), PrimaryBlueColor);
11562
12293
  var StyledSliderActive = styled__default.div(_templateObject13$7(), PrimaryBlueColor);
11563
12294
 
11564
- var Slider = function Slider(_ref) {
12295
+ var Slider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11565
12296
  var min = _ref.min,
11566
12297
  max = _ref.max,
11567
12298
  onChange = _ref.onChange,
@@ -11569,7 +12300,8 @@
11569
12300
  minDiff = _ref$minDiff === void 0 ? 1 : _ref$minDiff,
11570
12301
  disabled = _ref.disabled,
11571
12302
  label = _ref.label,
11572
- isRangeSelector = _ref.isRangeSelector;
12303
+ isRangeSelector = _ref.isRangeSelector,
12304
+ className = _ref.className;
11573
12305
  var _useState = React.useState(min),
11574
12306
  _useState2 = _slicedToArray(_useState, 2),
11575
12307
  currentMinValue = _useState2[0],
@@ -11650,11 +12382,15 @@
11650
12382
  };
11651
12383
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
11652
12384
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledSliderLabel, {
12385
+ className: "slider-label",
11653
12386
  children: label
11654
12387
  }), /*#__PURE__*/jsxRuntime.jsxs(StyledMainContainer, {
11655
12388
  disabled: disabled,
11656
12389
  isRangeSelector: isRangeSelector,
12390
+ className: "".concat(className, " slider-main-container"),
11657
12391
  children: [/*#__PURE__*/jsxRuntime.jsxs(StyledSliderContainer, {
12392
+ className: "slider-container",
12393
+ ref: ref,
11658
12394
  children: [isRangeSelector && /*#__PURE__*/jsxRuntime.jsx(StyledSliderLeft, {
11659
12395
  type: "range",
11660
12396
  min: min,
@@ -11666,39 +12402,48 @@
11666
12402
  zIndex: currentMinValue > max - max * 0.1 && "5"
11667
12403
  } // increase z-index of left thumb if it is closer than 10% of max value to avoid left thumb going below right thumb
11668
12404
  ,
11669
- disabled: disabled
12405
+ disabled: disabled,
12406
+ className: "slider-left-thumb"
11670
12407
  }), /*#__PURE__*/jsxRuntime.jsx(StyledSliderRight, {
11671
12408
  type: "range",
11672
12409
  min: min,
11673
12410
  max: max,
11674
12411
  value: currentMaxValue,
11675
12412
  onChange: handleRightSliderChange,
11676
- disabled: disabled
12413
+ disabled: disabled,
12414
+ className: "slider-right-thumb"
11677
12415
  }), /*#__PURE__*/jsxRuntime.jsxs(StyledSlider, {
11678
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledSliderTrack, {}), /*#__PURE__*/jsxRuntime.jsx(StyledSliderRange, {
11679
- ref: range
12416
+ className: "slider",
12417
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledSliderTrack, {
12418
+ className: "slider-track"
12419
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledSliderRange, {
12420
+ ref: range,
12421
+ className: "slider-range"
11680
12422
  })]
11681
12423
  })]
11682
12424
  }), /*#__PURE__*/jsxRuntime.jsxs(StyledInputContainer$1, {
12425
+ className: "slider-input-container",
11683
12426
  children: [isRangeSelector && /*#__PURE__*/jsxRuntime.jsx(Input, {
11684
12427
  type: "number",
11685
12428
  ref: minInputRef,
11686
12429
  placeholder: 0,
11687
12430
  disabled: disabled,
11688
12431
  onBlur: handleMinInputBlur,
11689
- defaultValue: min
12432
+ defaultValue: min,
12433
+ className: "slider-min-input"
11690
12434
  }), /*#__PURE__*/jsxRuntime.jsx(Input, {
11691
12435
  type: "number",
11692
12436
  ref: maxInputRef,
11693
12437
  placeholder: 0,
11694
12438
  disabled: disabled,
11695
12439
  onBlur: handleMaxInputBlur,
11696
- defaultValue: max
12440
+ defaultValue: max,
12441
+ className: "slider-max-input"
11697
12442
  })]
11698
12443
  })]
11699
12444
  })]
11700
12445
  });
11701
- };
12446
+ });
11702
12447
 
11703
12448
  function _templateObject12$a() {
11704
12449
  var data = _taggedTemplateLiteral(["\n display: none;\n "]);
@@ -11811,19 +12556,24 @@
11811
12556
  }
11812
12557
  });
11813
12558
 
11814
- function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11815
- function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12559
+ function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12560
+ function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11816
12561
  var Spinner = function Spinner(_ref) {
11817
12562
  var size = _ref.size,
11818
12563
  progress = _ref.progress,
11819
12564
  showLoadingText = _ref.showLoadingText,
11820
12565
  props = _objectWithoutProperties(_ref, ["size", "progress", "showLoadingText"]);
11821
- return /*#__PURE__*/jsxRuntime.jsxs(StyledSpinnerMainContainer, _objectSpread$j(_objectSpread$j({
11822
- size: size
12566
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledSpinnerMainContainer, _objectSpread$m(_objectSpread$m({
12567
+ size: size,
12568
+ className: "".concat(props.className, " spinner-container")
11823
12569
  }, props), {}, {
11824
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledSpinner, {}), progress && /*#__PURE__*/jsxRuntime.jsxs(SpinnerPercentage, {
12570
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledSpinner, {
12571
+ className: "spinner"
12572
+ }), progress && /*#__PURE__*/jsxRuntime.jsxs(SpinnerPercentage, {
12573
+ className: "spinner-container",
11825
12574
  children: [progress, "%"]
11826
12575
  }), showLoadingText && /*#__PURE__*/jsxRuntime.jsx(StyledSpinnerText, {
12576
+ className: "spinner-loading-text",
11827
12577
  children: "Loading..."
11828
12578
  })]
11829
12579
  }));
@@ -11928,9 +12678,9 @@
11928
12678
  return props.hideImage && styled.css(_templateObject11$g(), StyledImageContainer, StyledContentContainer);
11929
12679
  });
11930
12680
 
11931
- function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11932
- function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11933
- var EmptyState = function EmptyState(_ref) {
12681
+ function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12682
+ function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12683
+ var EmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11934
12684
  var heading = _ref.heading,
11935
12685
  info = _ref.info,
11936
12686
  variant = _ref.variant,
@@ -11940,28 +12690,37 @@
11940
12690
  primaryButtonProps = _ref.primaryButtonProps,
11941
12691
  secondaryButtonProps = _ref.secondaryButtonProps,
11942
12692
  props = _objectWithoutProperties(_ref, ["heading", "info", "variant", "layout", "hideImage", "hideButtons", "primaryButtonProps", "secondaryButtonProps"]);
11943
- return /*#__PURE__*/jsxRuntime.jsx(StyledEmptyState, _objectSpread$k(_objectSpread$k({
12693
+ return /*#__PURE__*/jsxRuntime.jsx(StyledEmptyState, _objectSpread$n(_objectSpread$n({
11944
12694
  variant: variant,
11945
12695
  layout: layout,
11946
- hideImage: hideImage
12696
+ hideImage: hideImage,
12697
+ className: "emptyState-container",
12698
+ ref: ref
11947
12699
  }, props), {}, {
11948
12700
  children: /*#__PURE__*/jsxRuntime.jsxs(StyledImageContentContainer, {
11949
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledImageContainer, {}), /*#__PURE__*/jsxRuntime.jsxs(StyledContentContainer, {
12701
+ className: "emptyState-main-container",
12702
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledImageContainer, {
12703
+ className: "emptyState-image-container"
12704
+ }), /*#__PURE__*/jsxRuntime.jsxs(StyledContentContainer, {
12705
+ className: "emptyState-content-container",
11950
12706
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledStateHeading, {
12707
+ className: "emptyState-heading",
11951
12708
  children: heading
11952
12709
  }), /*#__PURE__*/jsxRuntime.jsx(StyledInfoText, {
12710
+ className: "emptyState-info-text",
11953
12711
  children: info
11954
12712
  }), !hideButtons && /*#__PURE__*/jsxRuntime.jsxs(StyledCTAContainer, {
11955
- children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$k({
12713
+ className: "emptyState-button-container",
12714
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$n({
11956
12715
  variant: "primary"
11957
- }, primaryButtonProps)), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$k({
12716
+ }, primaryButtonProps)), /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$n({
11958
12717
  variant: "secondary"
11959
12718
  }, secondaryButtonProps))]
11960
12719
  })]
11961
12720
  })]
11962
12721
  })
11963
12722
  }));
11964
- };
12723
+ });
11965
12724
 
11966
12725
  function _templateObject27() {
11967
12726
  var data = _taggedTemplateLiteral(["\n border-radius: 17px;\n padding: 2px 12px;\n height: 22px;\n "]);
@@ -12012,44 +12771,44 @@
12012
12771
  };
12013
12772
  return data;
12014
12773
  }
12015
- function _templateObject20$2() {
12774
+ function _templateObject20$3() {
12016
12775
  var data = _taggedTemplateLiteral(["\n padding-left: 24px;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n &::before {\n content: \" \";\n width: 8px;\n height: 8px;\n background: ", ";\n position: absolute;\n left: 8px;\n top: 0;\n bottom: 0%;\n margin: auto;\n border-radius: 50%;\n }\n "]);
12017
- _templateObject20$2 = function _templateObject20() {
12776
+ _templateObject20$3 = function _templateObject20() {
12018
12777
  return data;
12019
12778
  };
12020
12779
  return data;
12021
12780
  }
12022
- function _templateObject19$2() {
12781
+ function _templateObject19$4() {
12023
12782
  var data = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n "]);
12024
- _templateObject19$2 = function _templateObject19() {
12783
+ _templateObject19$4 = function _templateObject19() {
12025
12784
  return data;
12026
12785
  };
12027
12786
  return data;
12028
12787
  }
12029
- function _templateObject18$3() {
12788
+ function _templateObject18$4() {
12030
12789
  var data = _taggedTemplateLiteral(["\n background: ", ";\n ", "\n\n ", "\n ", "\n ", "\n "]);
12031
- _templateObject18$3 = function _templateObject18() {
12790
+ _templateObject18$4 = function _templateObject18() {
12032
12791
  return data;
12033
12792
  };
12034
12793
  return data;
12035
12794
  }
12036
- function _templateObject17$5() {
12795
+ function _templateObject17$6() {
12037
12796
  var data = _taggedTemplateLiteral(["\n border-radius: 17px;\n padding: 2px 12px;\n height: 22px;\n "]);
12038
- _templateObject17$5 = function _templateObject17() {
12797
+ _templateObject17$6 = function _templateObject17() {
12039
12798
  return data;
12040
12799
  };
12041
12800
  return data;
12042
12801
  }
12043
- function _templateObject16$5() {
12802
+ function _templateObject16$6() {
12044
12803
  var data = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n "]);
12045
- _templateObject16$5 = function _templateObject16() {
12804
+ _templateObject16$6 = function _templateObject16() {
12046
12805
  return data;
12047
12806
  };
12048
12807
  return data;
12049
12808
  }
12050
- function _templateObject15$5() {
12809
+ function _templateObject15$6() {
12051
12810
  var data = _taggedTemplateLiteral(["\n padding-left: 24px;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n &::before {\n content: \" \";\n width: 8px;\n height: 8px;\n background: ", ";\n position: absolute;\n left: 8px;\n top: 0;\n bottom: 0%;\n margin: auto;\n border-radius: 50%;\n }\n "]);
12052
- _templateObject15$5 = function _templateObject15() {
12811
+ _templateObject15$6 = function _templateObject15() {
12053
12812
  return data;
12054
12813
  };
12055
12814
  return data;
@@ -12179,17 +12938,17 @@
12179
12938
  return styled.css(_templateObject13$8(), AlertRedErrorStroke, function (props) {
12180
12939
  return props.outline && styled.css(_templateObject14$7(), WhiteColor, AlertRedErrorStroke, AlertRedErrorStroke);
12181
12940
  }, function (props) {
12182
- return props.outlineDot && styled.css(_templateObject15$5(), WhiteColor, AlertRedErrorStroke, AlertRedErrorStroke, AlertRedErrorStroke);
12941
+ return props.outlineDot && styled.css(_templateObject15$6(), WhiteColor, AlertRedErrorStroke, AlertRedErrorStroke, AlertRedErrorStroke);
12183
12942
  }, function (props) {
12184
- return props.secondary && styled.css(_templateObject16$5(), AlertRedErrorBackground, AlertRedErrorStroke, AlertRedErrorStroke);
12943
+ return props.secondary && styled.css(_templateObject16$6(), AlertRedErrorBackground, AlertRedErrorStroke, AlertRedErrorStroke);
12185
12944
  }, function (props) {
12186
- return props.rounded && styled.css(_templateObject17$5());
12945
+ return props.rounded && styled.css(_templateObject17$6());
12187
12946
  });
12188
12947
  case "warning":
12189
- return styled.css(_templateObject18$3(), AlertOrangeWarningStroke, function (props) {
12190
- return props.outline && styled.css(_templateObject19$2(), WhiteColor, AlertOrangeWarningStroke, AlertOrangeWarningStroke);
12948
+ return styled.css(_templateObject18$4(), AlertOrangeWarningStroke, function (props) {
12949
+ return props.outline && styled.css(_templateObject19$4(), WhiteColor, AlertOrangeWarningStroke, AlertOrangeWarningStroke);
12191
12950
  }, function (props) {
12192
- return props.outlineDot && styled.css(_templateObject20$2(), WhiteColor, AlertOrangeWarningStroke, AlertOrangeWarningStroke, AlertOrangeWarningStroke);
12951
+ return props.outlineDot && styled.css(_templateObject20$3(), WhiteColor, AlertOrangeWarningStroke, AlertOrangeWarningStroke, AlertOrangeWarningStroke);
12193
12952
  }, function (props) {
12194
12953
  return props.secondary && styled.css(_templateObject21$1(), AlertOrangeWarningBackground, AlertOrangeWarningStroke, AlertOrangeWarningStroke);
12195
12954
  }, function (props) {
@@ -12208,7 +12967,9 @@
12208
12967
  }
12209
12968
  });
12210
12969
 
12211
- var Badge = function Badge(_ref) {
12970
+ function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12971
+ function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12972
+ var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12212
12973
  var label = _ref.label,
12213
12974
  _ref$variant = _ref.variant,
12214
12975
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
@@ -12216,65 +12977,288 @@
12216
12977
  outlineDot = _ref.outlineDot,
12217
12978
  secondary = _ref.secondary,
12218
12979
  rounded = _ref.rounded,
12219
- onClick = _ref.onClick;
12220
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
12221
- children: /*#__PURE__*/jsxRuntime.jsx(StyledBadgeContainer, {
12222
- onClick: onClick,
12223
- children: /*#__PURE__*/jsxRuntime.jsx(StyledBadge, {
12224
- variant: variant,
12225
- outline: outline,
12226
- outlineDot: outlineDot,
12227
- secondary: secondary,
12228
- rounded: rounded,
12229
- active: true,
12230
- children: label
12231
- })
12232
- })
12233
- });
12234
- };
12980
+ onClick = _ref.onClick,
12981
+ props = _objectWithoutProperties(_ref, ["label", "variant", "outline", "outlineDot", "secondary", "rounded", "onClick"]);
12982
+ return /*#__PURE__*/jsxRuntime.jsx(StyledBadge, _objectSpread$o(_objectSpread$o({
12983
+ variant: variant,
12984
+ outline: outline,
12985
+ outlineDot: outlineDot,
12986
+ secondary: secondary,
12987
+ rounded: rounded,
12988
+ onClick: onClick,
12989
+ ref: ref
12990
+ }, props), {}, {
12991
+ children: label
12992
+ }));
12993
+ });
12235
12994
 
12995
+ function _templateObject10$j() {
12996
+ var data = _taggedTemplateLiteral(["\n background: url(", ") no-repeat;\n background-position: center right 12px;\n &:hover {\n background: ", " url(", ") no-repeat;\n background-position: center right 12px;\n ", " {\n display: block;\n }\n }\n "]);
12997
+ _templateObject10$j = function _templateObject10() {
12998
+ return data;
12999
+ };
13000
+ return data;
13001
+ }
13002
+ function _templateObject9$k() {
13003
+ var data = _taggedTemplateLiteral(["\n pointer-events: none;\n color: ", ";\n font-size: 12px;\n line-height: 18px;\n "]);
13004
+ _templateObject9$k = function _templateObject9() {
13005
+ return data;
13006
+ };
13007
+ return data;
13008
+ }
13009
+ function _templateObject8$l() {
13010
+ var data = _taggedTemplateLiteral(["\n pointer-events: none;\n color: ", ";\n "]);
13011
+ _templateObject8$l = function _templateObject8() {
13012
+ return data;
13013
+ };
13014
+ return data;
13015
+ }
13016
+ function _templateObject7$m() {
13017
+ var data = _taggedTemplateLiteral(["\n padding: 8px 12px;\n font-size: 14px;\n line-height: 21px;\n cursor: pointer;\n max-width: 160px;\n align-items: center;\n min-width: 120px;\n box-sizing: border-box;\n gap: 8px;\n position: relative;\n display: flex;\n ", "\n ", "\n &:hover {\n background: ", ";\n }\n ", "\n"]);
13018
+ _templateObject7$m = function _templateObject7() {
13019
+ return data;
13020
+ };
13021
+ return data;
13022
+ }
13023
+ function _templateObject6$o() {
13024
+ var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n position: absolute;\n background: ", ";\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n border-radius: 4px;\n padding: 12px 0;\n min-width: 120px;\n max-width: 180px;\n top: 0;\n left: calc(100% + 10px);\n\n ", ":before {\n width: 0;\n content: \" \";\n height: 0;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid ", ";\n left: -10px;\n top: 2px;\n position: absolute;\n transform: rotate(270deg);\n }\n"]);
13025
+ _templateObject6$o = function _templateObject6() {
13026
+ return data;
13027
+ };
13028
+ return data;
13029
+ }
13030
+ function _templateObject5$q() {
13031
+ var data = _taggedTemplateLiteral(["\n width: 16px;\n height: 16px;\n\n svg {\n width: 16px;\n height: 16px;\n }\n"]);
13032
+ _templateObject5$q = function _templateObject5() {
13033
+ return data;
13034
+ };
13035
+ return data;
13036
+ }
13037
+ function _templateObject4$r() {
13038
+ var data = _taggedTemplateLiteral(["\n text-overflow: ellipsis;\n white-space: nowrap;\n display: flex;\n display: block;\n overflow: hidden;\n"]);
13039
+ _templateObject4$r = function _templateObject4() {
13040
+ return data;
13041
+ };
13042
+ return data;
13043
+ }
13044
+ function _templateObject3$s() {
13045
+ var data = _taggedTemplateLiteral(["\n background: ", ";\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n border-radius: 4px;\n padding: 12px 0;\n max-width: 180px;\n position: absolute;\n\n &:before {\n width: 0;\n content: \" \";\n height: 0;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid ", ";\n left: 10px;\n top: -7px;\n position: absolute;\n }\n\n ", ":not(:first-child) {\n border-top: 1px solid ", ";\n }\n"]);
13046
+ _templateObject3$s = function _templateObject3() {
13047
+ return data;
13048
+ };
13049
+ return data;
13050
+ }
13051
+ function _templateObject2$s() {
13052
+ var data = _taggedTemplateLiteral(["\n position: relative;\n"]);
13053
+ _templateObject2$s = function _templateObject2() {
13054
+ return data;
13055
+ };
13056
+ return data;
13057
+ }
12236
13058
  function _templateObject$u() {
12237
- var data = _taggedTemplateLiteral([""]);
13059
+ var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n"]);
12238
13060
  _templateObject$u = function _templateObject() {
12239
13061
  return data;
12240
13062
  };
12241
13063
  return data;
12242
13064
  }
12243
- var StyledMenu$1 = styled__default.div(_templateObject$u());
13065
+ var StyledListUL = styled__default.ul(_templateObject$u());
13066
+ var StyledContainer$1 = styled__default.div(_templateObject2$s());
13067
+ var StyledMenuContainer = styled__default.div(_templateObject3$s(), WhiteColor, WhiteColor, StyledListUL, AvatarBgColor);
13068
+ var StyledOptionText = styled__default.span(_templateObject4$r());
13069
+ var StyledListIcon = styled__default.span(_templateObject5$q());
13070
+ var StyledSubListContainer = styled__default.div(_templateObject6$o(), WhiteColor, StyledListUL, WhiteColor);
13071
+ var StyledListLi = styled__default.li(_templateObject7$m(), function (props) {
13072
+ return props.disabled && styled.css(_templateObject8$l(), DisabledButtonFontColor);
13073
+ }, function (props) {
13074
+ return props.listHeading && styled.css(_templateObject9$k(), LabelColor);
13075
+ }, FocusBackgroundColor, function (props) {
13076
+ return props.newList && styled.css(_templateObject10$j(), RightChevronImage, FocusBackgroundColor, RightChevronImage, StyledSubListContainer);
13077
+ });
12244
13078
 
12245
- var Menu = function Menu() {
12246
- return /*#__PURE__*/jsxRuntime.jsx("div", {
12247
- children: /*#__PURE__*/jsxRuntime.jsx(StyledMenu$1, {})
13079
+ var MenuItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
13080
+ var label = _ref.label,
13081
+ onClick = _ref.onClick,
13082
+ disabled = _ref.disabled,
13083
+ icon = _ref.icon,
13084
+ children = _ref.children;
13085
+ var _useState = React.useState(false),
13086
+ _useState2 = _slicedToArray(_useState, 2),
13087
+ isSubMenuOpen = _useState2[0],
13088
+ setIsSubMenuOpen = _useState2[1];
13089
+ var timeoutRef = React.useRef(null);
13090
+ var handleMouseEnter = function handleMouseEnter() {
13091
+ clearTimeout(timeoutRef.current);
13092
+ setIsSubMenuOpen(true);
13093
+ };
13094
+ var handleMouseLeave = function handleMouseLeave() {
13095
+ clearTimeout(timeoutRef.current);
13096
+ timeoutRef.current = setTimeout(function () {
13097
+ setIsSubMenuOpen(false);
13098
+ }, 200); // Delay in milliseconds before closing the submenu
13099
+ };
13100
+
13101
+ var handleSubMenuMouseEnter = function handleSubMenuMouseEnter() {
13102
+ clearTimeout(timeoutRef.current);
13103
+ setIsSubMenuOpen(true);
13104
+ };
13105
+ var handleSubMenuMouseLeave = function handleSubMenuMouseLeave() {
13106
+ clearTimeout(timeoutRef.current);
13107
+ timeoutRef.current = setTimeout(function () {
13108
+ setIsSubMenuOpen(false);
13109
+ }, 200); // Delay in milliseconds before closing the submenu
13110
+ };
13111
+
13112
+ React.useEffect(function () {
13113
+ return function () {
13114
+ clearTimeout(timeoutRef.current);
13115
+ };
13116
+ }, []);
13117
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
13118
+ children: [!children && /*#__PURE__*/jsxRuntime.jsxs(StyledListLi, {
13119
+ onClick: onClick,
13120
+ disabled: disabled,
13121
+ className: "menu-item",
13122
+ ref: ref,
13123
+ children: [icon && /*#__PURE__*/jsxRuntime.jsx(StyledListIcon, {
13124
+ className: "menu-item-icon",
13125
+ children: icon
13126
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledOptionText, {
13127
+ className: "menu-item-text",
13128
+ children: label
13129
+ })]
13130
+ }), children && /*#__PURE__*/jsxRuntime.jsxs(StyledListLi, {
13131
+ newList: true,
13132
+ onMouseEnter: handleMouseEnter,
13133
+ onMouseLeave: handleMouseLeave,
13134
+ className: "menu-item",
13135
+ ref: ref,
13136
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledOptionText, {
13137
+ className: "menu-item-text",
13138
+ children: label
13139
+ }), isSubMenuOpen && /*#__PURE__*/jsxRuntime.jsx(StyledSubListContainer, {
13140
+ onClick: function onClick(e) {
13141
+ return e.stopPropagation();
13142
+ },
13143
+ onMouseEnter: handleSubMenuMouseEnter,
13144
+ onMouseLeave: handleSubMenuMouseLeave,
13145
+ className: "menu-subMenu",
13146
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledListUL, {
13147
+ className: "menu-subMenu-list",
13148
+ children: children
13149
+ })
13150
+ })]
13151
+ })]
12248
13152
  });
12249
- };
13153
+ });
13154
+
13155
+ var MenuSection = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
13156
+ var label = _ref.label,
13157
+ children = _ref.children;
13158
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledListUL, {
13159
+ newSection: true,
13160
+ className: "menu-list",
13161
+ ref: ref,
13162
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledListLi, {
13163
+ listHeading: true,
13164
+ className: "menu-list-heading",
13165
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledOptionText, {
13166
+ className: "menu-heading-text",
13167
+ children: label
13168
+ })
13169
+ }), children]
13170
+ });
13171
+ });
13172
+
13173
+ var Menu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
13174
+ var _anchorRef$current;
13175
+ var disabled = _ref.disabled,
13176
+ children = _ref.children,
13177
+ anchorElement = _ref.anchorElement,
13178
+ anchorRef = _ref.anchorRef,
13179
+ props = _objectWithoutProperties(_ref, ["disabled", "children", "anchorElement", "anchorRef"]);
13180
+ var _useState = React.useState(false),
13181
+ _useState2 = _slicedToArray(_useState, 2),
13182
+ isMenuOpen = _useState2[0],
13183
+ setIsMenuOpen = _useState2[1];
13184
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledContainer$1, {
13185
+ className: "menu-container",
13186
+ children: [/*#__PURE__*/React__default.cloneElement(anchorElement, {
13187
+ onClick: function onClick() {
13188
+ return setIsMenuOpen(true);
13189
+ },
13190
+ ref: anchorRef,
13191
+ className: "menu-anchor-element"
13192
+ }), isMenuOpen && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
13193
+ children: /*#__PURE__*/jsxRuntime.jsx(ClickAwayListener, {
13194
+ onClickAway: function onClickAway() {
13195
+ return setIsMenuOpen(false);
13196
+ },
13197
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledMenuContainer, {
13198
+ onClick: function onClick(e) {
13199
+ e.stopPropagation();
13200
+ },
13201
+ style: {
13202
+ top: ((_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.offsetHeight) + 12,
13203
+ left: 0
13204
+ },
13205
+ className: "menu-popup-container",
13206
+ children: children
13207
+ })
13208
+ })
13209
+ })]
13210
+ });
13211
+ });
12250
13212
 
13213
+ function _templateObject2$t() {
13214
+ var data = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 12px;\n line-height: 18px;\n"]);
13215
+ _templateObject2$t = function _templateObject2() {
13216
+ return data;
13217
+ };
13218
+ return data;
13219
+ }
12251
13220
  function _templateObject$v() {
12252
- var data = _taggedTemplateLiteral(["\n display: flex;\n gap: 5px;\n\n flex-direction: column;\n"]);
13221
+ var data = _taggedTemplateLiteral(["\n display: flex;\n gap: 10px;\n\n flex-direction: ", ";\n"]);
12253
13222
  _templateObject$v = function _templateObject() {
12254
13223
  return data;
12255
13224
  };
12256
13225
  return data;
12257
13226
  }
12258
- var StyledRadioGroup = styled__default.div(_templateObject$v());
13227
+ var StyledRadioGroup = styled__default.div(_templateObject$v(), function (props) {
13228
+ return props.layout === "vertical" ? "column" : "row";
13229
+ });
13230
+ var StyledRadioGroupLabel = styled__default.label(_templateObject2$t(), LabelColor);
12259
13231
 
12260
- var RadioGroup = function RadioGroup(_ref) {
13232
+ var RadioGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12261
13233
  var children = _ref.children,
12262
13234
  value = _ref.value,
12263
13235
  name = _ref.name,
12264
- _onChange = _ref.onChange;
12265
- return /*#__PURE__*/jsxRuntime.jsx(StyledRadioGroup, {
12266
- children: children.map(function (child) {
12267
- var radioValue = child.props.value;
12268
- return /*#__PURE__*/React__default.cloneElement(child, {
12269
- onChange: function onChange(event) {
12270
- return _onChange(event.target.value);
12271
- },
12272
- checked: radioValue === value,
12273
- name: name
12274
- });
12275
- })
13236
+ _onChange = _ref.onChange,
13237
+ _ref$layout = _ref.layout,
13238
+ layout = _ref$layout === void 0 ? "vertical" : _ref$layout,
13239
+ className = _ref.className,
13240
+ label = _ref.label;
13241
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
13242
+ ref: ref,
13243
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledRadioGroupLabel, {
13244
+ className: "radioGroup-label",
13245
+ children: label
13246
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledRadioGroup, {
13247
+ layout: layout,
13248
+ className: "".concat(className, " radioGroup"),
13249
+ children: children.map(function (child) {
13250
+ var radioValue = child.props.value;
13251
+ return /*#__PURE__*/React__default.cloneElement(child, {
13252
+ onChange: function onChange(event) {
13253
+ return _onChange(event.target.value);
13254
+ },
13255
+ checked: radioValue === value,
13256
+ name: name
13257
+ });
13258
+ })
13259
+ })]
12276
13260
  });
12277
- };
13261
+ });
12278
13262
 
12279
13263
  exports.Accordion = Accordion;
12280
13264
  exports.Alerts = Alerts;
@@ -12292,6 +13276,8 @@
12292
13276
  exports.FileSelector = FileSelector;
12293
13277
  exports.Input = Input;
12294
13278
  exports.Menu = Menu;
13279
+ exports.MenuItem = MenuItem;
13280
+ exports.MenuSection = MenuSection;
12295
13281
  exports.Modal = Modal;
12296
13282
  exports.Panel = Panel;
12297
13283
  exports.ProgressBar = ProgressBar;