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/pisellExport/PisellExport.stories.tsx
var PisellExport_stories_exports = {};
__export(PisellExport_stories_exports, {
  Basic: () => Basic,
  ButtonMatrix: () => ButtonMatrix,
  CustomIcon: () => CustomIcon,
  CustomLabel: () => CustomLabel,
  DefaultVsPrimary: () => DefaultVsPrimary,
  Disabled: () => Disabled,
  IconOnly: () => IconOnly,
  SizesButton: () => SizesButton,
  SizesIcon: () => SizesIcon,
  WithCallback: () => WithCallback,
  default: () => PisellExport_stories_default
});
module.exports = __toCommonJS(PisellExport_stories_exports);
var import_PisellExport = require("./PisellExport");
var import_icons = require("@ant-design/icons");
var meta = {
  title: "Data Entry/PisellExport",
  component: import_PisellExport.PisellExport,
  tags: ["autodocs"],
  argTypes: {
    variant: {
      description: "展示形态",
      control: "radio",
      options: ["icon", "button"]
    },
    size: {
      description: "尺寸",
      control: "radio",
      options: ["small", "medium", "large"]
    },
    type: {
      description: "视觉类型",
      control: "radio",
      options: ["default", "primary"]
    },
    disabled: {
      description: "是否禁用",
      control: "boolean"
    },
    label: {
      description: "Button 形态文案",
      control: "text"
    }
  }
};
var PisellExport_stories_default = meta;
var Basic = {
  args: {
    variant: "button",
    size: "medium",
    type: "default",
    onExport: () => console.log("onExport")
  }
};
var IconOnly = {
  args: {
    variant: "icon",
    size: "medium",
    type: "default",
    onExport: () => console.log("onExport")
  }
};
var SizesButton = {
  render: () => /* @__PURE__ */ React.createElement("div", { style: { display: "flex", alignItems: "center", gap: 16, flexWrap: "wrap" } }, /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "small", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "medium", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "large", onExport: () => {
  } }))
};
var SizesIcon = {
  render: () => /* @__PURE__ */ React.createElement("div", { style: { display: "flex", alignItems: "center", gap: 16 } }, /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "icon", size: "small", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "icon", size: "medium", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "icon", size: "large", onExport: () => {
  } }))
};
var DefaultVsPrimary = {
  render: () => /* @__PURE__ */ React.createElement("div", { style: { display: "flex", alignItems: "center", gap: 16 } }, /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", type: "default", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", type: "primary", onExport: () => {
  } }))
};
var Disabled = {
  render: () => /* @__PURE__ */ React.createElement("div", { style: { display: "flex", alignItems: "center", gap: 16 } }, /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", disabled: true, onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", type: "primary", disabled: true, onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "icon", disabled: true, onExport: () => {
  } }))
};
var CustomLabel = {
  args: {
    variant: "button",
    label: "导出 Excel",
    onExport: () => {
    }
  }
};
var CustomIcon = {
  args: {
    variant: "button",
    icon: /* @__PURE__ */ React.createElement(import_icons.DownloadOutlined, { style: { fontSize: 24 } }),
    label: "下载",
    onExport: () => {
    }
  }
};
var WithCallback = {
  args: {
    variant: "button",
    label: "点击导出",
    onExport: (e) => {
      alert("onExport 已触发，由调用方实现导出逻辑");
    }
  }
};
var ButtonMatrix = {
  render: () => /* @__PURE__ */ React.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 24 } }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { style: { marginBottom: 8, fontSize: 12, color: "#666" } }, "Default / Small, Medium, Large"), /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: 16, alignItems: "center" } }, /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "small", type: "default", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "medium", type: "default", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "large", type: "default", onExport: () => {
  } }))), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { style: { marginBottom: 8, fontSize: 12, color: "#666" } }, "Primary / Small, Medium, Large"), /* @__PURE__ */ React.createElement("div", { style: { display: "flex", gap: 16, alignItems: "center" } }, /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "small", type: "primary", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "medium", type: "primary", onExport: () => {
  } }), /* @__PURE__ */ React.createElement(import_PisellExport.PisellExport, { variant: "button", size: "large", type: "primary", onExport: () => {
  } }))))
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  Basic,
  ButtonMatrix,
  CustomIcon,
  CustomLabel,
  DefaultVsPrimary,
  Disabled,
  IconOnly,
  SizesButton,
  SizesIcon,
  WithCallback
});
