var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/pisellActionPanel/PisellActionPanel.stories.tsx
var PisellActionPanel_stories_exports = {};
__export(PisellActionPanel_stories_exports, {
  AlignCenter: () => AlignCenter,
  AlignRight: () => AlignRight,
  ConditionalVisible: () => ConditionalVisible,
  Default: () => Default,
  MultipleGroups: () => MultipleGroups,
  SpaceBetween: () => SpaceBetween,
  VerticalLayout: () => VerticalLayout,
  default: () => PisellActionPanel_stories_default
});
module.exports = __toCommonJS(PisellActionPanel_stories_exports);
var import_icons = require("@ant-design/icons");
var import_PisellActionPanel = require("./PisellActionPanel");
var meta = {
  title: "General/PisellActionPanel",
  component: import_PisellActionPanel.PisellActionPanel,
  tags: ["autodocs"],
  argTypes: {
    layout: {
      description: "布局方式",
      control: "select",
      options: ["horizontal", "vertical", "grid"]
    },
    align: {
      description: "对齐方式",
      control: "select",
      options: ["left", "center", "right", "space-between"]
    },
    overflowStrategy: {
      description: "溢出策略",
      control: "select",
      options: ["wrap", "scroll", "moreMenu"]
    }
  },
  args: {
    groups: [
      {
        items: [
          { label: "取消", onClick: () => console.log("取消") },
          { label: "确定", priority: "primary", onClick: () => console.log("确定") }
        ]
      }
    ]
  }
};
var PisellActionPanel_stories_default = meta;
var Default = {
  args: {
    groups: [
      {
        items: [
          { label: "取消", onClick: () => console.log("取消") },
          { label: "确定", priority: "primary", onClick: () => console.log("确定") }
        ]
      }
    ]
  }
};
var AlignRight = {
  args: {
    groups: [
      {
        items: [
          { label: "取消", onClick: () => console.log("取消") },
          { label: "提交", priority: "primary", onClick: () => console.log("提交") }
        ]
      }
    ],
    align: "right",
    groupGap: 16,
    itemGap: 8
  }
};
var MultipleGroups = {
  args: {
    groups: [
      {
        items: [
          { label: "编辑", icon: /* @__PURE__ */ React.createElement(import_icons.EditOutlined, null), onClick: () => console.log("编辑") },
          { label: "删除", icon: /* @__PURE__ */ React.createElement(import_icons.DeleteOutlined, null), priority: "danger", onClick: () => console.log("删除") }
        ]
      },
      {
        items: [
          { label: "取消", onClick: () => console.log("取消") },
          { label: "保存", icon: /* @__PURE__ */ React.createElement(import_icons.SaveOutlined, null), priority: "primary", onClick: () => console.log("保存") }
        ]
      }
    ],
    align: "right",
    groupGap: 24,
    itemGap: 8
  }
};
var VerticalLayout = {
  args: {
    layout: "vertical",
    groups: [
      {
        items: [
          { label: "主操作", priority: "primary", onClick: () => console.log("主操作") },
          { label: "次操作", onClick: () => console.log("次操作") }
        ]
      }
    ]
  }
};
var ConditionalVisible = {
  args: {
    groups: [
      {
        items: [
          { label: "始终显示", onClick: () => {
          } },
          { label: "隐藏项", visible: false, onClick: () => {
          } },
          { label: "确定", priority: "primary", onClick: () => {
          } }
        ]
      }
    ]
  }
};
var AlignCenter = {
  args: {
    align: "center",
    groups: [
      {
        items: [
          { label: "取消", onClick: () => {
          } },
          { label: "确定", priority: "primary", onClick: () => {
          } }
        ]
      }
    ]
  }
};
var SpaceBetween = {
  args: {
    align: "space-between",
    groups: [
      {
        items: [
          { label: "返回", onClick: () => console.log("返回") }
        ]
      },
      {
        items: [
          { label: "保存草稿", onClick: () => console.log("草稿") },
          { label: "发布", priority: "primary", onClick: () => console.log("发布") }
        ]
      }
    ]
  }
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  AlignCenter,
  AlignRight,
  ConditionalVisible,
  Default,
  MultipleGroups,
  SpaceBetween,
  VerticalLayout
});
