@plasmicpkgs/antd5 0.0.64 → 0.0.65

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/antd.esm.js CHANGED
@@ -916,24 +916,24 @@ const MENU_ITEM_TYPE = {
916
916
  type: "string",
917
917
  displayName: "Menu item key",
918
918
  description: "Key of the menu item; the onClick will receive this as the value to indicate which item was clicked.",
919
- hidden: (ps) => ps.type !== "item"
919
+ hidden: (ps, ctx, { item }) => item.type !== "item"
920
920
  },
921
921
  label: {
922
922
  type: "string",
923
923
  description: "Label of the menu item; will use the key if not specified.",
924
- hidden: (ps) => ps.type === "divider"
924
+ hidden: (ps, ctx, { item }) => item.type === "divider"
925
925
  },
926
926
  children: {
927
927
  type: "array",
928
928
  displayName: "Menu items",
929
- hidden: (ps) => ps.type !== "submenu" && ps.type !== "group"
929
+ hidden: (ps, ctx, { item }) => item.type !== "submenu" && item.type !== "group"
930
930
  },
931
931
  onClick: {
932
932
  type: "eventHandler",
933
933
  displayName: "Action",
934
934
  description: "Action to perform when this item is selected",
935
935
  argTypes: [{ name: "info", type: "object" }],
936
- hidden: (ps) => ps.type !== "item"
936
+ hidden: (ps, ctx, { item }) => item.type !== "item"
937
937
  }
938
938
  }
939
939
  };
@@ -1228,7 +1228,7 @@ function registerDropdown(loader) {
1228
1228
  menuItemsJson: {
1229
1229
  type: "array",
1230
1230
  displayName: "Menu Items",
1231
- hidden: (ps) => ps.useMenuItemsSlot,
1231
+ hidden: (ps) => !!ps.useMenuItemsSlot,
1232
1232
  itemType: UNKEYED_MENU_ITEM_TYPE,
1233
1233
  defaultValue: [
1234
1234
  {
@@ -3636,10 +3636,7 @@ const AntdTable = React.forwardRef(function AntdTable2(props, ref) {
3636
3636
  ]);
3637
3637
  setControlContextData == null ? void 0 : setControlContextData(data);
3638
3638
  const isControlled = !!selectedRowKeys;
3639
- const [
3640
- uncontrolledSelectedRowKeys,
3641
- setUncontrolledSelectedRowKeys
3642
- ] = React.useState(defaultSelectedRowKeys != null ? defaultSelectedRowKeys : []);
3639
+ const [uncontrolledSelectedRowKeys, setUncontrolledSelectedRowKeys] = React.useState(defaultSelectedRowKeys != null ? defaultSelectedRowKeys : []);
3643
3640
  const selection = isSelectable && rowKey ? {
3644
3641
  onChange: (rowKeys, rows) => {
3645
3642
  onSelectedRowsChange == null ? void 0 : onSelectedRowsChange(rows);