@activecollab/components 1.0.166 → 1.0.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
- package/dist/cjs/components/Entity/EntityCard.js +15 -28
- package/dist/cjs/components/Entity/EntityCard.js.map +1 -1
- package/dist/cjs/components/Entity/EntityGroup.js +13 -13
- package/dist/cjs/components/Entity/EntityGroup.js.map +1 -1
- package/dist/cjs/components/Entity/EntityProperty.js +14 -2
- package/dist/cjs/components/Entity/EntityProperty.js.map +1 -1
- package/dist/cjs/components/Entity/Styles.js +2 -6
- package/dist/cjs/components/Entity/Styles.js.map +1 -1
- package/dist/cjs/components/Entity/index.js.map +1 -1
- package/dist/cjs/components/Menu/Menu.js +5 -12
- package/dist/cjs/components/Menu/Menu.js.map +1 -1
- package/dist/cjs/components/Modal/Modal.js +2 -5
- package/dist/cjs/components/Modal/Modal.js.map +1 -1
- package/dist/cjs/components/Sheet/Sheet.js +2 -5
- package/dist/cjs/components/Sheet/Sheet.js.map +1 -1
- package/dist/cjs/components/Tables/DataTable.js +28 -3
- package/dist/cjs/components/Tables/DataTable.js.map +1 -1
- package/dist/cjs/components/Tables/Table.js.map +1 -1
- package/dist/cjs/components/Window/Window.js +3 -8
- package/dist/cjs/components/Window/Window.js.map +1 -1
- package/dist/esm/components/Dialog/Dialog.d.ts +1 -2
- package/dist/esm/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/esm/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/components/Entity/EntityCard.d.ts +8 -9
- package/dist/esm/components/Entity/EntityCard.d.ts.map +1 -1
- package/dist/esm/components/Entity/EntityCard.js +17 -29
- package/dist/esm/components/Entity/EntityCard.js.map +1 -1
- package/dist/esm/components/Entity/EntityGroup.d.ts +5 -0
- package/dist/esm/components/Entity/EntityGroup.d.ts.map +1 -1
- package/dist/esm/components/Entity/EntityGroup.js +9 -11
- package/dist/esm/components/Entity/EntityGroup.js.map +1 -1
- package/dist/esm/components/Entity/EntityProperty.d.ts +0 -1
- package/dist/esm/components/Entity/EntityProperty.d.ts.map +1 -1
- package/dist/esm/components/Entity/EntityProperty.js +7 -2
- package/dist/esm/components/Entity/EntityProperty.js.map +1 -1
- package/dist/esm/components/Entity/Styles.d.ts.map +1 -1
- package/dist/esm/components/Entity/Styles.js +2 -6
- package/dist/esm/components/Entity/Styles.js.map +1 -1
- package/dist/esm/components/Entity/index.d.ts +6 -7
- package/dist/esm/components/Entity/index.d.ts.map +1 -1
- package/dist/esm/components/Entity/index.js.map +1 -1
- package/dist/esm/components/Menu/Menu.d.ts +0 -1
- package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
- package/dist/esm/components/Menu/Menu.js +5 -12
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/Modal/Modal.d.ts +1 -3
- package/dist/esm/components/Modal/Modal.d.ts.map +1 -1
- package/dist/esm/components/Modal/Modal.js +2 -5
- package/dist/esm/components/Modal/Modal.js.map +1 -1
- package/dist/esm/components/Sheet/Sheet.d.ts +0 -1
- package/dist/esm/components/Sheet/Sheet.d.ts.map +1 -1
- package/dist/esm/components/Sheet/Sheet.js +2 -5
- package/dist/esm/components/Sheet/Sheet.js.map +1 -1
- package/dist/esm/components/Tables/DataTable.d.ts +4 -2
- package/dist/esm/components/Tables/DataTable.d.ts.map +1 -1
- package/dist/esm/components/Tables/DataTable.js +27 -3
- package/dist/esm/components/Tables/DataTable.js.map +1 -1
- package/dist/esm/components/Tables/Table.d.ts +1 -2
- package/dist/esm/components/Tables/Table.d.ts.map +1 -1
- package/dist/esm/components/Tables/Table.js.map +1 -1
- package/dist/esm/components/Window/Window.d.ts +0 -1
- package/dist/esm/components/Window/Window.d.ts.map +1 -1
- package/dist/esm/components/Window/Window.js +3 -8
- package/dist/esm/components/Window/Window.js.map +1 -1
- package/dist/index.js +195 -210
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
})(["", " ", " position:fixed;top:0;right:0;bottom:0;left:0;"], FontStyle, BoxSizingStyle);
|
|
657
657
|
StyledWindow.displayName = "StyledWindow";
|
|
658
658
|
|
|
659
|
-
var _excluded$12 = ["children", "onClose", "className", "style", "onKeyDown", "disableFocusLock", "disableScrollLock", "
|
|
659
|
+
var _excluded$12 = ["children", "onClose", "className", "style", "onKeyDown", "disableFocusLock", "disableScrollLock", "onClick"];
|
|
660
660
|
var returnFocus = {
|
|
661
661
|
preventScroll: true
|
|
662
662
|
};
|
|
@@ -670,8 +670,6 @@
|
|
|
670
670
|
disableFocusLock = _ref$disableFocusLock === void 0 ? false : _ref$disableFocusLock,
|
|
671
671
|
_ref$disableScrollLoc = _ref.disableScrollLock,
|
|
672
672
|
disableScrollLock = _ref$disableScrollLoc === void 0 ? false : _ref$disableScrollLoc,
|
|
673
|
-
_ref$preventClickEven = _ref.preventClickEventBubbling,
|
|
674
|
-
preventClickEventBubbling = _ref$preventClickEven === void 0 ? false : _ref$preventClickEven,
|
|
675
673
|
onClick = _ref.onClick,
|
|
676
674
|
rest = _objectWithoutProperties(_ref, _excluded$12);
|
|
677
675
|
|
|
@@ -702,12 +700,9 @@
|
|
|
702
700
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
703
701
|
}, []);
|
|
704
702
|
var handleClick = React.useCallback(function (event) {
|
|
705
|
-
|
|
706
|
-
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
707
|
-
}
|
|
708
|
-
|
|
703
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
709
704
|
typeof onClick === "function" && onClick(event);
|
|
710
|
-
}, [onClick
|
|
705
|
+
}, [onClick]);
|
|
711
706
|
return /*#__PURE__*/React__default["default"].createElement(Portal, null, /*#__PURE__*/React__default["default"].createElement(FocusLock__default["default"], {
|
|
712
707
|
returnFocus: returnFocus,
|
|
713
708
|
disabled: disableFocusLock
|
|
@@ -829,9 +824,7 @@
|
|
|
829
824
|
popperClassName = _ref.popperClassName,
|
|
830
825
|
backgroundElementClass = _ref.backgroundElementClass,
|
|
831
826
|
_ref$windowAbsolutely = _ref.windowAbsolutelyPositioned,
|
|
832
|
-
windowAbsolutelyPositioned = _ref$windowAbsolutely === void 0 ? false : _ref$windowAbsolutely
|
|
833
|
-
_ref$preventClickEven = _ref.preventClickEventBubbling,
|
|
834
|
-
preventClickEventBubbling = _ref$preventClickEven === void 0 ? false : _ref$preventClickEven;
|
|
827
|
+
windowAbsolutelyPositioned = _ref$windowAbsolutely === void 0 ? false : _ref$windowAbsolutely;
|
|
835
828
|
|
|
836
829
|
var _useState = React.useState(defaultOpen),
|
|
837
830
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -852,16 +845,12 @@
|
|
|
852
845
|
var handleOpen = React.useCallback(function (event) {
|
|
853
846
|
var _target$props;
|
|
854
847
|
|
|
855
|
-
event
|
|
856
|
-
|
|
857
|
-
if (preventClickEventBubbling) {
|
|
858
|
-
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
859
|
-
}
|
|
860
|
-
|
|
848
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
849
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
861
850
|
setOpen(true);
|
|
862
851
|
typeof onOpen === "function" && onOpen();
|
|
863
852
|
typeof (target === null || target === void 0 ? void 0 : (_target$props = target.props) === null || _target$props === void 0 ? void 0 : _target$props.onClick) === "function" && target.props.onClick(event);
|
|
864
|
-
}, [onOpen,
|
|
853
|
+
}, [onOpen, target === null || target === void 0 ? void 0 : target.props]);
|
|
865
854
|
var handleClose = React.useCallback(function () {
|
|
866
855
|
if (typeof onBeforeClose === "function" && !onBeforeClose()) {
|
|
867
856
|
return;
|
|
@@ -884,8 +873,7 @@
|
|
|
884
873
|
disableFocusLock: disableFocusLock,
|
|
885
874
|
style: {
|
|
886
875
|
position: windowAbsolutelyPositioned ? "absolute" : "fixed"
|
|
887
|
-
}
|
|
888
|
-
preventClickEventBubbling: preventClickEventBubbling
|
|
876
|
+
}
|
|
889
877
|
}, /*#__PURE__*/React__default["default"].createElement(Overlay, {
|
|
890
878
|
className: backgroundElementClass,
|
|
891
879
|
onClick: handleClose,
|
|
@@ -5514,7 +5502,87 @@
|
|
|
5514
5502
|
};
|
|
5515
5503
|
Tbody.displayName = "Tbody";
|
|
5516
5504
|
|
|
5517
|
-
var
|
|
5505
|
+
var linearAnimation = styled.keyframes(["0%{background-position:left;}100%{background-position:right;}"]);
|
|
5506
|
+
var StyledLinearLoader = styled__default["default"].div.withConfig({
|
|
5507
|
+
displayName: "Styles__StyledLinearLoader",
|
|
5508
|
+
componentId: "sc-x4ge7a-0"
|
|
5509
|
+
})(["width:70%;background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.05) 50%,rgba(255,255,255,0) 60% );background-size:400%;height:16px;border-radius:8px;.neon &{background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.2) 50%,rgba(255,255,255,0) 60% );background-size:500%;}animation-duration:1s;animation-iteration-count:infinite;animation-name:", ";animation-timing-function:linear;animation-direction:reverse;"], linearAnimation);
|
|
5510
|
+
|
|
5511
|
+
var _excluded$S = ["className"];
|
|
5512
|
+
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5513
|
+
var className = _ref.className,
|
|
5514
|
+
rest = _objectWithoutProperties(_ref, _excluded$S);
|
|
5515
|
+
|
|
5516
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
5517
|
+
ref: ref,
|
|
5518
|
+
className: classnames__default["default"]("c-loader c-loader--linear", className)
|
|
5519
|
+
}, rest));
|
|
5520
|
+
});
|
|
5521
|
+
LinearLoader.displayName = "LinearLoader";
|
|
5522
|
+
|
|
5523
|
+
var dotAnimation = styled.keyframes(["0%,80%,100%{transform:scale(0);}40%{transform:scale(1);}"]);
|
|
5524
|
+
var StyledDotsLoader = styled__default["default"].span.withConfig({
|
|
5525
|
+
displayName: "Styles__StyledDotsLoader",
|
|
5526
|
+
componentId: "sc-1f35d5h-0"
|
|
5527
|
+
})(["display:inline-block;text-align:center;& > span{display:inline-block;width:18px;height:18px;background-color:#777;border-radius:100%;animation:", " 1.4s infinite ease-in-out both;}span:nth-child(1){animation-delay:-0.32s;}span:nth-child(2){animation-delay:-0.16s;}"], dotAnimation);
|
|
5528
|
+
|
|
5529
|
+
var _excluded$R = ["className"];
|
|
5530
|
+
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5531
|
+
var className = _ref.className,
|
|
5532
|
+
rest = _objectWithoutProperties(_ref, _excluded$R);
|
|
5533
|
+
|
|
5534
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
5535
|
+
ref: ref,
|
|
5536
|
+
className: classnames__default["default"]("c-loader c-loader--dots", className)
|
|
5537
|
+
}, rest), /*#__PURE__*/React__default["default"].createElement("span", null), /*#__PURE__*/React__default["default"].createElement("span", null), /*#__PURE__*/React__default["default"].createElement("span", null));
|
|
5538
|
+
});
|
|
5539
|
+
DotsLoader.displayName = "DotsLoader";
|
|
5540
|
+
|
|
5541
|
+
var rotateAnimation = styled.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
|
|
5542
|
+
var StyledSpinnerLoader = styled__default["default"].div.withConfig({
|
|
5543
|
+
displayName: "Styles__StyledSpinnerLoader",
|
|
5544
|
+
componentId: "sc-1ht53g9-0"
|
|
5545
|
+
})(["", " border-radius:100%;flex-shrink:0;", " ", " ", " ", ""], BoxSizingStyle, function (props) {
|
|
5546
|
+
return styled.css(["width:", "px;height:", "px;animation:", " ", "s infinite linear;"], props.$diameter, props.$diameter, rotateAnimation, props.$rotateDurationInSeconds);
|
|
5547
|
+
}, function (props) {
|
|
5548
|
+
return props.$activeColorPercentage === "25%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
|
|
5549
|
+
}, function (props) {
|
|
5550
|
+
return props.$activeColorPercentage === "50%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
|
|
5551
|
+
}, function (props) {
|
|
5552
|
+
return props.$activeColorPercentage === "75%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
|
|
5553
|
+
});
|
|
5554
|
+
|
|
5555
|
+
var _excluded$Q = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
5556
|
+
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5557
|
+
var _ref$radius = _ref.radius,
|
|
5558
|
+
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
5559
|
+
_ref$stroke = _ref.stroke,
|
|
5560
|
+
stroke = _ref$stroke === void 0 ? 2 : _ref$stroke,
|
|
5561
|
+
_ref$activeStrokeColo = _ref.activeStrokeColor,
|
|
5562
|
+
activeStrokeColor = _ref$activeStrokeColo === void 0 ? "var(--color-secondary)" : _ref$activeStrokeColo,
|
|
5563
|
+
_ref$inactiveStrokeCo = _ref.inactiveStrokeColor,
|
|
5564
|
+
inactiveStrokeColor = _ref$inactiveStrokeCo === void 0 ? "var(--color-theme-transparent-300)" : _ref$inactiveStrokeCo,
|
|
5565
|
+
_ref$activeColorPerce = _ref.activeColorPercentage,
|
|
5566
|
+
activeColorPercentage = _ref$activeColorPerce === void 0 ? "25%" : _ref$activeColorPerce,
|
|
5567
|
+
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
5568
|
+
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
5569
|
+
className = _ref.className,
|
|
5570
|
+
rest = _objectWithoutProperties(_ref, _excluded$Q);
|
|
5571
|
+
|
|
5572
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader, _extends({
|
|
5573
|
+
ref: ref,
|
|
5574
|
+
className: className,
|
|
5575
|
+
$diameter: radius * 2,
|
|
5576
|
+
$stroke: stroke,
|
|
5577
|
+
$activeStrokeColor: activeStrokeColor,
|
|
5578
|
+
$inactiveStrokeColor: inactiveStrokeColor,
|
|
5579
|
+
$activeColorPercentage: activeColorPercentage,
|
|
5580
|
+
$rotateDurationInSeconds: rotateDurationInSeconds
|
|
5581
|
+
}, rest));
|
|
5582
|
+
});
|
|
5583
|
+
SpinnerLoader.displayName = "SpinnerLoader";
|
|
5584
|
+
|
|
5585
|
+
var _excluded$P = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
|
|
5518
5586
|
exports.SortDirection = void 0;
|
|
5519
5587
|
|
|
5520
5588
|
(function (SortDirection) {
|
|
@@ -5549,7 +5617,8 @@
|
|
|
5549
5617
|
|
|
5550
5618
|
var DataTable = function DataTable(_ref) {
|
|
5551
5619
|
var header = _ref.header,
|
|
5552
|
-
rows = _ref.rows,
|
|
5620
|
+
_ref$rows = _ref.rows,
|
|
5621
|
+
rows = _ref$rows === void 0 ? [] : _ref$rows,
|
|
5553
5622
|
className = _ref.className,
|
|
5554
5623
|
sortBy = _ref.sortBy,
|
|
5555
5624
|
_ref$sortDirection = _ref.sortDirection,
|
|
@@ -5564,7 +5633,10 @@
|
|
|
5564
5633
|
} : _ref$groupHead,
|
|
5565
5634
|
isCollapsible = _ref.isCollapsible,
|
|
5566
5635
|
emptyValue = _ref.emptyValue,
|
|
5567
|
-
|
|
5636
|
+
loading = _ref.loading,
|
|
5637
|
+
_ref$loadingRows = _ref.loadingRows,
|
|
5638
|
+
loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
|
|
5639
|
+
args = _objectWithoutProperties(_ref, _excluded$P);
|
|
5568
5640
|
|
|
5569
5641
|
var _useState = React.useState(sortDirection),
|
|
5570
5642
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -5771,6 +5843,25 @@
|
|
|
5771
5843
|
return newState;
|
|
5772
5844
|
});
|
|
5773
5845
|
}, []);
|
|
5846
|
+
var renderPlaceholders = React.useMemo(function () {
|
|
5847
|
+
var placeholders = Array(loadingRows).fill({}).map(function (_, index) {
|
|
5848
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
5849
|
+
key: index,
|
|
5850
|
+
className: "c-table__row",
|
|
5851
|
+
onMouseOver: cellMouseOver,
|
|
5852
|
+
onMouseLeave: cellMouseOut
|
|
5853
|
+
}, header.map(function (col, colIndex) {
|
|
5854
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
|
5855
|
+
key: colIndex,
|
|
5856
|
+
className: classnames__default["default"]("c-table__cell c-data-table__item", {
|
|
5857
|
+
hovered: hovered === col.key
|
|
5858
|
+
}),
|
|
5859
|
+
"data-key": col.key
|
|
5860
|
+
}, /*#__PURE__*/React__default["default"].createElement(LinearLoader, null));
|
|
5861
|
+
}));
|
|
5862
|
+
});
|
|
5863
|
+
return /*#__PURE__*/React__default["default"].createElement(Tbody, null, placeholders);
|
|
5864
|
+
}, [cellMouseOut, cellMouseOver, header, hovered, loadingRows]);
|
|
5774
5865
|
var renderRows = React.useMemo(function () {
|
|
5775
5866
|
if (data && data instanceof Array && data.length > 0 || _typeof(data) === "object" && Object.keys(data).length > 0) {
|
|
5776
5867
|
if (groupBy) {
|
|
@@ -5898,7 +5989,7 @@
|
|
|
5898
5989
|
"c-table__icon--desc": columnDirection === exports.SortDirection.Desc && h.key === active
|
|
5899
5990
|
})
|
|
5900
5991
|
})));
|
|
5901
|
-
}))), renderRows);
|
|
5992
|
+
}))), loading ? renderPlaceholders : renderRows);
|
|
5902
5993
|
};
|
|
5903
5994
|
DataTable.displayName = "DataTable";
|
|
5904
5995
|
|
|
@@ -5985,7 +6076,7 @@
|
|
|
5985
6076
|
});
|
|
5986
6077
|
StyledPaper.displayName = "StyledPaper";
|
|
5987
6078
|
|
|
5988
|
-
var _excluded$
|
|
6079
|
+
var _excluded$O = ["children", "className", "type", "hover", "useOptimizedShadow"];
|
|
5989
6080
|
|
|
5990
6081
|
/**
|
|
5991
6082
|
* This is a component description and should sit directly above your component
|
|
@@ -5999,7 +6090,7 @@
|
|
|
5999
6090
|
hover = _ref$hover === void 0 ? false : _ref$hover,
|
|
6000
6091
|
_ref$useOptimizedShad = _ref.useOptimizedShadow,
|
|
6001
6092
|
useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
|
|
6002
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6093
|
+
rest = _objectWithoutProperties(_ref, _excluded$O);
|
|
6003
6094
|
|
|
6004
6095
|
return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
|
|
6005
6096
|
className: classnames__default["default"](className, {
|
|
@@ -6053,7 +6144,7 @@
|
|
|
6053
6144
|
});
|
|
6054
6145
|
StyledCard.displayName = "StyledCard";
|
|
6055
6146
|
|
|
6056
|
-
var _excluded$
|
|
6147
|
+
var _excluded$N = ["children", "className", "hoverable", "paperType"];
|
|
6057
6148
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6058
6149
|
var children = _ref.children,
|
|
6059
6150
|
className = _ref.className,
|
|
@@ -6061,7 +6152,7 @@
|
|
|
6061
6152
|
hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
|
|
6062
6153
|
_ref$paperType = _ref.paperType,
|
|
6063
6154
|
paperType = _ref$paperType === void 0 ? "paper-2" : _ref$paperType,
|
|
6064
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6155
|
+
rest = _objectWithoutProperties(_ref, _excluded$N);
|
|
6065
6156
|
|
|
6066
6157
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
|
|
6067
6158
|
type: paperType,
|
|
@@ -6143,12 +6234,12 @@
|
|
|
6143
6234
|
});
|
|
6144
6235
|
EntityCard$1.displayName = "EntityCard";
|
|
6145
6236
|
|
|
6146
|
-
var _excluded$
|
|
6237
|
+
var _excluded$M = ["weight", "children"];
|
|
6147
6238
|
var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6148
6239
|
var _ref$weight = _ref.weight,
|
|
6149
6240
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
6150
6241
|
children = _ref.children,
|
|
6151
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6242
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
6152
6243
|
|
|
6153
6244
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
6154
6245
|
weight: weight,
|
|
@@ -6158,12 +6249,12 @@
|
|
|
6158
6249
|
});
|
|
6159
6250
|
Title1.displayName = "Title1";
|
|
6160
6251
|
|
|
6161
|
-
var _excluded$
|
|
6252
|
+
var _excluded$L = ["weight", "children"];
|
|
6162
6253
|
var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6163
6254
|
var _ref$weight = _ref.weight,
|
|
6164
6255
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
6165
6256
|
children = _ref.children,
|
|
6166
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6257
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
6167
6258
|
|
|
6168
6259
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
6169
6260
|
weight: weight,
|
|
@@ -6173,10 +6264,10 @@
|
|
|
6173
6264
|
});
|
|
6174
6265
|
Title2.displayName = "Title2";
|
|
6175
6266
|
|
|
6176
|
-
var _excluded$
|
|
6267
|
+
var _excluded$K = ["children"];
|
|
6177
6268
|
var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6178
6269
|
var children = _ref.children,
|
|
6179
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6270
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
6180
6271
|
|
|
6181
6272
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
6182
6273
|
weight: "bold",
|
|
@@ -6186,10 +6277,10 @@
|
|
|
6186
6277
|
});
|
|
6187
6278
|
Header2.displayName = "Header2";
|
|
6188
6279
|
|
|
6189
|
-
var _excluded$
|
|
6280
|
+
var _excluded$J = ["children"];
|
|
6190
6281
|
var Header3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6191
6282
|
var children = _ref.children,
|
|
6192
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6283
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
6193
6284
|
|
|
6194
6285
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
6195
6286
|
weight: "bold",
|
|
@@ -6199,12 +6290,12 @@
|
|
|
6199
6290
|
});
|
|
6200
6291
|
Header3.displayName = "Header3";
|
|
6201
6292
|
|
|
6202
|
-
var _excluded$
|
|
6293
|
+
var _excluded$I = ["weight", "children"];
|
|
6203
6294
|
var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6204
6295
|
var _ref$weight = _ref.weight,
|
|
6205
6296
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
6206
6297
|
children = _ref.children,
|
|
6207
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6298
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
6208
6299
|
|
|
6209
6300
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
6210
6301
|
variant: "Body 1",
|
|
@@ -6214,12 +6305,12 @@
|
|
|
6214
6305
|
});
|
|
6215
6306
|
Body1.displayName = "Body1";
|
|
6216
6307
|
|
|
6217
|
-
var _excluded$
|
|
6308
|
+
var _excluded$H = ["weight", "children"];
|
|
6218
6309
|
var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6219
6310
|
var _ref$weight = _ref.weight,
|
|
6220
6311
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
6221
6312
|
children = _ref.children,
|
|
6222
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6313
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
6223
6314
|
|
|
6224
6315
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
6225
6316
|
variant: "Caption 1",
|
|
@@ -6229,12 +6320,12 @@
|
|
|
6229
6320
|
});
|
|
6230
6321
|
Caption1.displayName = "Caption1";
|
|
6231
6322
|
|
|
6232
|
-
var _excluded$
|
|
6323
|
+
var _excluded$G = ["weight", "children"];
|
|
6233
6324
|
var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6234
6325
|
var _ref$weight = _ref.weight,
|
|
6235
6326
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
6236
6327
|
children = _ref.children,
|
|
6237
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6328
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
6238
6329
|
|
|
6239
6330
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
6240
6331
|
variant: "Caption 2",
|
|
@@ -6353,7 +6444,7 @@
|
|
|
6353
6444
|
"borderRadius": "9999px"
|
|
6354
6445
|
});
|
|
6355
6446
|
|
|
6356
|
-
var _excluded$
|
|
6447
|
+
var _excluded$F = ["url", "alt", "size", "className"];
|
|
6357
6448
|
var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6358
6449
|
var url = _ref.url,
|
|
6359
6450
|
_ref$alt = _ref.alt,
|
|
@@ -6361,7 +6452,7 @@
|
|
|
6361
6452
|
_ref$size = _ref.size,
|
|
6362
6453
|
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
6363
6454
|
className = _ref.className,
|
|
6364
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6455
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
6365
6456
|
|
|
6366
6457
|
return /*#__PURE__*/React__default["default"].createElement(StyledAvatar, _extends({}, rest, {
|
|
6367
6458
|
ref: ref,
|
|
@@ -6383,13 +6474,13 @@
|
|
|
6383
6474
|
return props.$color && styled.css(["background-color:", ";"], props.$color);
|
|
6384
6475
|
});
|
|
6385
6476
|
|
|
6386
|
-
var _excluded$
|
|
6477
|
+
var _excluded$E = ["color", "size", "className"];
|
|
6387
6478
|
var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6388
6479
|
var color = _ref.color,
|
|
6389
6480
|
_ref$size = _ref.size,
|
|
6390
6481
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
6391
6482
|
className = _ref.className,
|
|
6392
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6483
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
6393
6484
|
|
|
6394
6485
|
return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
|
|
6395
6486
|
className: classnames__default["default"]("c-dot", className),
|
|
@@ -6427,7 +6518,7 @@
|
|
|
6427
6518
|
});
|
|
6428
6519
|
StyledTagText.displayName = "StyledTagText";
|
|
6429
6520
|
|
|
6430
|
-
var _excluded$
|
|
6521
|
+
var _excluded$D = ["name", "color", "showText", "showDot", "className"];
|
|
6431
6522
|
var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6432
6523
|
var name = _ref.name,
|
|
6433
6524
|
color = _ref.color,
|
|
@@ -6436,7 +6527,7 @@
|
|
|
6436
6527
|
_ref$showDot = _ref.showDot,
|
|
6437
6528
|
showDot = _ref$showDot === void 0 ? true : _ref$showDot,
|
|
6438
6529
|
className = _ref.className,
|
|
6439
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6530
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
6440
6531
|
|
|
6441
6532
|
return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
|
|
6442
6533
|
className: classnames__default["default"]("c-tag", className),
|
|
@@ -6450,86 +6541,6 @@
|
|
|
6450
6541
|
});
|
|
6451
6542
|
Tag.displayName = "Tag";
|
|
6452
6543
|
|
|
6453
|
-
var linearAnimation = styled.keyframes(["0%{background-position:left;}100%{background-position:right;}"]);
|
|
6454
|
-
var StyledLinearLoader = styled__default["default"].div.withConfig({
|
|
6455
|
-
displayName: "Styles__StyledLinearLoader",
|
|
6456
|
-
componentId: "sc-x4ge7a-0"
|
|
6457
|
-
})(["width:70%;background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.05) 50%,rgba(255,255,255,0) 60% );background-size:400%;height:16px;border-radius:8px;.neon &{background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.2) 50%,rgba(255,255,255,0) 60% );background-size:500%;}animation-duration:1s;animation-iteration-count:infinite;animation-name:", ";animation-timing-function:linear;animation-direction:reverse;"], linearAnimation);
|
|
6458
|
-
|
|
6459
|
-
var _excluded$F = ["className"];
|
|
6460
|
-
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6461
|
-
var className = _ref.className,
|
|
6462
|
-
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
6463
|
-
|
|
6464
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
6465
|
-
ref: ref,
|
|
6466
|
-
className: classnames__default["default"]("c-loader c-loader--linear", className)
|
|
6467
|
-
}, rest));
|
|
6468
|
-
});
|
|
6469
|
-
LinearLoader.displayName = "LinearLoader";
|
|
6470
|
-
|
|
6471
|
-
var dotAnimation = styled.keyframes(["0%,80%,100%{transform:scale(0);}40%{transform:scale(1);}"]);
|
|
6472
|
-
var StyledDotsLoader = styled__default["default"].span.withConfig({
|
|
6473
|
-
displayName: "Styles__StyledDotsLoader",
|
|
6474
|
-
componentId: "sc-1f35d5h-0"
|
|
6475
|
-
})(["display:inline-block;text-align:center;& > span{display:inline-block;width:18px;height:18px;background-color:#777;border-radius:100%;animation:", " 1.4s infinite ease-in-out both;}span:nth-child(1){animation-delay:-0.32s;}span:nth-child(2){animation-delay:-0.16s;}"], dotAnimation);
|
|
6476
|
-
|
|
6477
|
-
var _excluded$E = ["className"];
|
|
6478
|
-
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6479
|
-
var className = _ref.className,
|
|
6480
|
-
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
6481
|
-
|
|
6482
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
6483
|
-
ref: ref,
|
|
6484
|
-
className: classnames__default["default"]("c-loader c-loader--dots", className)
|
|
6485
|
-
}, rest), /*#__PURE__*/React__default["default"].createElement("span", null), /*#__PURE__*/React__default["default"].createElement("span", null), /*#__PURE__*/React__default["default"].createElement("span", null));
|
|
6486
|
-
});
|
|
6487
|
-
DotsLoader.displayName = "DotsLoader";
|
|
6488
|
-
|
|
6489
|
-
var rotateAnimation = styled.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
|
|
6490
|
-
var StyledSpinnerLoader = styled__default["default"].div.withConfig({
|
|
6491
|
-
displayName: "Styles__StyledSpinnerLoader",
|
|
6492
|
-
componentId: "sc-1ht53g9-0"
|
|
6493
|
-
})(["", " border-radius:100%;flex-shrink:0;", " ", " ", " ", ""], BoxSizingStyle, function (props) {
|
|
6494
|
-
return styled.css(["width:", "px;height:", "px;animation:", " ", "s infinite linear;"], props.$diameter, props.$diameter, rotateAnimation, props.$rotateDurationInSeconds);
|
|
6495
|
-
}, function (props) {
|
|
6496
|
-
return props.$activeColorPercentage === "25%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
|
|
6497
|
-
}, function (props) {
|
|
6498
|
-
return props.$activeColorPercentage === "50%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
|
|
6499
|
-
}, function (props) {
|
|
6500
|
-
return props.$activeColorPercentage === "75%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
|
|
6501
|
-
});
|
|
6502
|
-
|
|
6503
|
-
var _excluded$D = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
6504
|
-
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6505
|
-
var _ref$radius = _ref.radius,
|
|
6506
|
-
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
6507
|
-
_ref$stroke = _ref.stroke,
|
|
6508
|
-
stroke = _ref$stroke === void 0 ? 2 : _ref$stroke,
|
|
6509
|
-
_ref$activeStrokeColo = _ref.activeStrokeColor,
|
|
6510
|
-
activeStrokeColor = _ref$activeStrokeColo === void 0 ? "var(--color-secondary)" : _ref$activeStrokeColo,
|
|
6511
|
-
_ref$inactiveStrokeCo = _ref.inactiveStrokeColor,
|
|
6512
|
-
inactiveStrokeColor = _ref$inactiveStrokeCo === void 0 ? "var(--color-theme-transparent-300)" : _ref$inactiveStrokeCo,
|
|
6513
|
-
_ref$activeColorPerce = _ref.activeColorPercentage,
|
|
6514
|
-
activeColorPercentage = _ref$activeColorPerce === void 0 ? "25%" : _ref$activeColorPerce,
|
|
6515
|
-
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
6516
|
-
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
6517
|
-
className = _ref.className,
|
|
6518
|
-
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
6519
|
-
|
|
6520
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader, _extends({
|
|
6521
|
-
ref: ref,
|
|
6522
|
-
className: className,
|
|
6523
|
-
$diameter: radius * 2,
|
|
6524
|
-
$stroke: stroke,
|
|
6525
|
-
$activeStrokeColor: activeStrokeColor,
|
|
6526
|
-
$inactiveStrokeColor: inactiveStrokeColor,
|
|
6527
|
-
$activeColorPercentage: activeColorPercentage,
|
|
6528
|
-
$rotateDurationInSeconds: rotateDurationInSeconds
|
|
6529
|
-
}, rest));
|
|
6530
|
-
});
|
|
6531
|
-
SpinnerLoader.displayName = "SpinnerLoader";
|
|
6532
|
-
|
|
6533
6544
|
var StyledHiglightedText = styled__default["default"].span.withConfig({
|
|
6534
6545
|
displayName: "useHighlightText__StyledHiglightedText",
|
|
6535
6546
|
componentId: "sc-13agf6o-0"
|
|
@@ -8615,7 +8626,7 @@
|
|
|
8615
8626
|
function () {});
|
|
8616
8627
|
}
|
|
8617
8628
|
|
|
8618
|
-
var _excluded$r = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "
|
|
8629
|
+
var _excluded$r = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "open", "onClose"];
|
|
8619
8630
|
|
|
8620
8631
|
var getHasTransition = function getHasTransition(children) {
|
|
8621
8632
|
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
@@ -8631,8 +8642,6 @@
|
|
|
8631
8642
|
disableBackgroundClick = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
8632
8643
|
_ref$disableBackgroun2 = _ref.disableBackgroundColor,
|
|
8633
8644
|
disableBackgroundColor = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
8634
|
-
_ref$preventClickEven = _ref.preventClickEventBubbling,
|
|
8635
|
-
preventClickEventBubbling = _ref$preventClickEven === void 0 ? false : _ref$preventClickEven,
|
|
8636
8645
|
_ref$open = _ref.open,
|
|
8637
8646
|
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
8638
8647
|
onClose = _ref.onClose,
|
|
@@ -8698,8 +8707,7 @@
|
|
|
8698
8707
|
ref: handleRef,
|
|
8699
8708
|
onClose: handleClose,
|
|
8700
8709
|
disableFocusLock: disableFocusLock,
|
|
8701
|
-
disableScrollLock: disableScrollLock
|
|
8702
|
-
preventClickEventBubbling: preventClickEventBubbling
|
|
8710
|
+
disableScrollLock: disableScrollLock
|
|
8703
8711
|
}), open ? /*#__PURE__*/React__default["default"].createElement(Overlay, {
|
|
8704
8712
|
onClick: handleBackgroundClick,
|
|
8705
8713
|
disableBackgroundColor: disableBackgroundColor
|
|
@@ -8776,7 +8784,7 @@
|
|
|
8776
8784
|
});
|
|
8777
8785
|
StyledCssTransition.displayName = "StyledCssTransition";
|
|
8778
8786
|
|
|
8779
|
-
var _excluded$q = ["children", "onClose", "controls", "open", "animation", "position", "mode", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "disableBackgroundClick"
|
|
8787
|
+
var _excluded$q = ["children", "onClose", "controls", "open", "animation", "position", "mode", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "disableBackgroundClick"];
|
|
8780
8788
|
var Sheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8781
8789
|
var children = _ref.children,
|
|
8782
8790
|
onClose = _ref.onClose,
|
|
@@ -8800,8 +8808,6 @@
|
|
|
8800
8808
|
bodyClassName = _ref.bodyClassName,
|
|
8801
8809
|
_ref$disableBackgroun2 = _ref.disableBackgroundClick,
|
|
8802
8810
|
disableBackgroundClick = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
8803
|
-
_ref$preventClickEven = _ref.preventClickEventBubbling,
|
|
8804
|
-
preventClickEventBubbling = _ref$preventClickEven === void 0 ? false : _ref$preventClickEven,
|
|
8805
8811
|
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
8806
8812
|
|
|
8807
8813
|
var _useState = React.useState(defaultOpen),
|
|
@@ -8844,8 +8850,7 @@
|
|
|
8844
8850
|
ref: handleRef,
|
|
8845
8851
|
onClose: handleClose,
|
|
8846
8852
|
disableFocusLock: disableFocusLock,
|
|
8847
|
-
disableScrollLock: disableScrollLock
|
|
8848
|
-
preventClickEventBubbling: preventClickEventBubbling
|
|
8853
|
+
disableScrollLock: disableScrollLock
|
|
8849
8854
|
}), open ? /*#__PURE__*/React__default["default"].createElement(Overlay, {
|
|
8850
8855
|
onClick: handleBackgroundClick,
|
|
8851
8856
|
disableBackgroundColor: disableBackgroundColor
|
|
@@ -11902,14 +11907,12 @@
|
|
|
11902
11907
|
var StyledEntityCard = styled__default["default"](Card).withConfig({
|
|
11903
11908
|
displayName: "Styles__StyledEntityCard",
|
|
11904
11909
|
componentId: "sc-bjeea8-0"
|
|
11905
|
-
})(["line-height:1.375;", " ", " ", " ", "
|
|
11910
|
+
})(["line-height:1.375;", " ", " ", " ", ""], function (_ref) {
|
|
11906
11911
|
var $renderAs = _ref.$renderAs;
|
|
11907
11912
|
return $renderAs === "list" && styled.css(["display:flex;flex-direction:row;align-items:center;min-height:48px;margin-bottom:4px;justify-content:space-between;padding:0 16px 0 16px;"]);
|
|
11908
11913
|
}, function (_ref2) {
|
|
11909
11914
|
var $renderAs = _ref2.$renderAs;
|
|
11910
11915
|
return $renderAs === "grid" && styled.css(["display:flex;flex-direction:column;position:relative;padding:20px 24px;height:280px;"]);
|
|
11911
|
-
}, function (props) {
|
|
11912
|
-
return props.$gap && styled.css(["gap:", "px;"], props.$gap);
|
|
11913
11916
|
}, function (props) {
|
|
11914
11917
|
return props.$background && styled.css(["background-color:", ";"], props.$background);
|
|
11915
11918
|
}, function (_ref3) {
|
|
@@ -11974,17 +11977,15 @@
|
|
|
11974
11977
|
var StyledEntityGroup = styled__default["default"]("div").withConfig({
|
|
11975
11978
|
displayName: "Styles__StyledEntityGroup",
|
|
11976
11979
|
componentId: "sc-bjeea8-2"
|
|
11977
|
-
})(["", " ", "
|
|
11980
|
+
})(["", " ", ""], function (_ref11) {
|
|
11978
11981
|
var $renderAs = _ref11.$renderAs,
|
|
11979
11982
|
$gap = _ref11.$gap;
|
|
11980
11983
|
return $renderAs === "grid" && styled.css(["display:grid;grid-gap:", ";grid-template-columns:repeat(auto-fill,minmax(260px,1fr));"], $gap ? "".concat($gap, "px") : "initial");
|
|
11981
11984
|
}, function (props) {
|
|
11982
11985
|
return props.$renderAs === "list" && styled.css(["display:flex;flex-direction:column;"]);
|
|
11983
|
-
}, function (props) {
|
|
11984
|
-
return props.$gap && props.$renderAs === "list" && styled.css(["", "{gap:", "px;}"], StyledEntityCard, props.$gap);
|
|
11985
11986
|
});
|
|
11986
11987
|
StyledEntityGroup.displayName = "StyledEntityGroup";
|
|
11987
|
-
|
|
11988
|
+
styled__default["default"]("div").withConfig({
|
|
11988
11989
|
displayName: "Styles__StyledEntityActions",
|
|
11989
11990
|
componentId: "sc-bjeea8-3"
|
|
11990
11991
|
})(["display:flex;flex-direction:column;align-items:center;", " ", ""], function (_ref12) {
|
|
@@ -11995,92 +11996,76 @@
|
|
|
11995
11996
|
return $renderAs === "list" && styled.css(["justify-self:flex-end;"]);
|
|
11996
11997
|
});
|
|
11997
11998
|
|
|
11998
|
-
var _excluded$2 = ["
|
|
11999
|
-
var
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
}, props, {
|
|
12009
|
-
$order: listOrder,
|
|
12010
|
-
$width: listWidth,
|
|
12011
|
-
$visibleFromBreakpoint: visibleFromBreakpoint
|
|
12012
|
-
}));
|
|
12013
|
-
};
|
|
12014
|
-
EntityProperty.displayName = "EntityProperty";
|
|
11999
|
+
var _excluded$2 = ["children", "gap", "renderAs"];
|
|
12000
|
+
var EntityGroupContext = /*#__PURE__*/React__default["default"].createContext({
|
|
12001
|
+
renderAs: "grid"
|
|
12002
|
+
});
|
|
12003
|
+
var EntityGroup = function EntityGroup(_ref) {
|
|
12004
|
+
var children = _ref.children,
|
|
12005
|
+
gap = _ref.gap,
|
|
12006
|
+
_ref$renderAs = _ref.renderAs,
|
|
12007
|
+
renderAs = _ref$renderAs === void 0 ? "grid" : _ref$renderAs,
|
|
12008
|
+
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
12015
12009
|
|
|
12016
|
-
|
|
12017
|
-
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
|
|
12010
|
+
return /*#__PURE__*/React__default["default"].createElement(EntityGroupContext.Provider, {
|
|
12011
|
+
value: {
|
|
12012
|
+
renderAs: renderAs
|
|
12013
|
+
}
|
|
12014
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledEntityGroup, _extends({
|
|
12015
|
+
$renderAs: renderAs,
|
|
12016
|
+
$gap: gap
|
|
12017
|
+
}, rest), children));
|
|
12021
12018
|
};
|
|
12019
|
+
EntityGroup.displayName = "EntityGroup";
|
|
12022
12020
|
|
|
12023
|
-
var _excluded$1 = ["children", "
|
|
12024
|
-
var EntityCard = function
|
|
12021
|
+
var _excluded$1 = ["children", "isCollection", "background", "className", "as"];
|
|
12022
|
+
var EntityCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12025
12023
|
var children = _ref.children,
|
|
12026
|
-
actions = _ref.actions,
|
|
12027
|
-
_ref$renderAs = _ref.renderAs,
|
|
12028
|
-
renderAs = _ref$renderAs === void 0 ? "grid" : _ref$renderAs,
|
|
12029
12024
|
isCollection = _ref.isCollection,
|
|
12030
12025
|
background = _ref.background,
|
|
12031
12026
|
className = _ref.className,
|
|
12032
|
-
|
|
12027
|
+
as = _ref.as,
|
|
12033
12028
|
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
12034
12029
|
|
|
12030
|
+
var _useContext = React.useContext(EntityGroupContext),
|
|
12031
|
+
renderAs = _useContext.renderAs;
|
|
12032
|
+
|
|
12035
12033
|
var paperType = renderAs === "grid" ? "paper-1" : "paper-2";
|
|
12036
|
-
var
|
|
12037
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12038
|
-
|
|
12039
|
-
wrap: function wrap(children) {
|
|
12040
|
-
return /*#__PURE__*/React__default["default"].createElement(WrapperElement, rest, children);
|
|
12041
|
-
}
|
|
12042
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledEntityCard, _extends({
|
|
12034
|
+
var Component = as || Card;
|
|
12035
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledEntityCard, _extends({
|
|
12036
|
+
as: Component,
|
|
12043
12037
|
$renderAs: renderAs,
|
|
12044
12038
|
$background: background,
|
|
12045
12039
|
paperType: paperType,
|
|
12046
12040
|
className: className,
|
|
12047
12041
|
$isCollection: isCollection
|
|
12048
|
-
}, rest
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
});
|
|
12053
|
-
}
|
|
12054
|
-
|
|
12055
|
-
return null;
|
|
12056
|
-
}), actions && /*#__PURE__*/React__default["default"].createElement(StyledEntityActions, {
|
|
12057
|
-
$renderAs: renderAs
|
|
12058
|
-
}, actions)));
|
|
12059
|
-
};
|
|
12042
|
+
}, rest, {
|
|
12043
|
+
ref: ref
|
|
12044
|
+
}), children);
|
|
12045
|
+
});
|
|
12060
12046
|
EntityCard.displayName = "EntityCard";
|
|
12061
12047
|
|
|
12062
|
-
var _excluded = ["
|
|
12063
|
-
var
|
|
12064
|
-
var
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12048
|
+
var _excluded = ["listOrder", "listWidth", "visibleFromBreakpoint", "className"];
|
|
12049
|
+
var EntityProperty = function EntityProperty(_ref) {
|
|
12050
|
+
var listOrder = _ref.listOrder,
|
|
12051
|
+
listWidth = _ref.listWidth,
|
|
12052
|
+
visibleFromBreakpoint = _ref.visibleFromBreakpoint,
|
|
12053
|
+
className = _ref.className,
|
|
12054
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
12069
12055
|
|
|
12070
|
-
|
|
12071
|
-
|
|
12072
|
-
$gap: gap
|
|
12073
|
-
}, rest), React__default["default"].Children.map(children, function (child) {
|
|
12074
|
-
if ( /*#__PURE__*/React__default["default"].isValidElement(child) && child.type === EntityCard) {
|
|
12075
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, {
|
|
12076
|
-
renderAs: renderAs
|
|
12077
|
-
});
|
|
12078
|
-
}
|
|
12056
|
+
var _useContext = React.useContext(EntityGroupContext),
|
|
12057
|
+
renderAs = _useContext.renderAs;
|
|
12079
12058
|
|
|
12080
|
-
|
|
12059
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledEntityProperty, _extends({
|
|
12060
|
+
className: classnames__default["default"]("c-entity-property", className)
|
|
12061
|
+
}, props, {
|
|
12062
|
+
$order: listOrder,
|
|
12063
|
+
$width: listWidth,
|
|
12064
|
+
$visibleFromBreakpoint: visibleFromBreakpoint,
|
|
12065
|
+
$renderAs: renderAs
|
|
12081
12066
|
}));
|
|
12082
12067
|
};
|
|
12083
|
-
|
|
12068
|
+
EntityProperty.displayName = "EntityProperty";
|
|
12084
12069
|
|
|
12085
12070
|
var Entity = {
|
|
12086
12071
|
Group: EntityGroup,
|