@plasmicpkgs/plasmic-rich-components 1.0.82 → 1.0.84

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/index.js CHANGED
@@ -965,6 +965,7 @@ function omitUndefined(x) {
965
965
  return v !== undefined;
966
966
  }));
967
967
  }
968
+ var baseStyles = "\n.ant-pro-layout-bg-list {\n display: none;\n}\n.ant-pro-layout {\n display: flex;\n}\n";
968
969
  function RichLayout(_a) {
969
970
  var _b, _c, _d;
970
971
  var children = _a.children, navMenuItems = _a.navMenuItems, _e = _a.rootUrl, rootUrl = _e === void 0 ? "/" : _e, actionsChildren = _a.actionsChildren, footerChildren = _a.footerChildren, avatarLabel = _a.avatarLabel, avatarImage = _a.avatarImage, showAvatarMenu = _a.showAvatarMenu, className = _a.className, simpleNavTheme = _a.simpleNavTheme, layoutProps = __rest(_a, ["children", "navMenuItems", "rootUrl", "actionsChildren", "footerChildren", "avatarLabel", "avatarImage", "showAvatarMenu", "className", "simpleNavTheme"]);
@@ -1007,8 +1008,8 @@ function RichLayout(_a) {
1007
1008
  if (!isClient) {
1008
1009
  return null;
1009
1010
  }
1010
- return (React__default.default.createElement("div", { className: className },
1011
- React__default.default.createElement("style", null, ".ant-pro-layout-bg-list {\n display: none;\n }"),
1011
+ return (React__default.default.createElement("div", { className: className, style: { display: "flex" } },
1012
+ React__default.default.createElement("style", null, baseStyles),
1012
1013
  React__default.default.createElement(proComponents.ProLayout, __assign({}, layoutProps, {
1013
1014
  // Theme just the header. If you simply pass in navTheme=realDark, it affects all main content as well.
1014
1015
  //
@@ -1527,7 +1528,7 @@ function useRowSelectionProps(data, props) {
1527
1528
  onRow: function (row) { return ({
1528
1529
  onClick: function (event) {
1529
1530
  var key = deriveKeyOfRow(row, deriveRowKey(data, rowKey));
1530
- if (key) {
1531
+ if (key != null) {
1531
1532
  if (canSelectRows === "click") {
1532
1533
  // Some heuristics to avoid selecting a row when
1533
1534
  // the object clicked is interactable -- like button, anchor,