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/PisellContactBrief/PisellContactBrief.stories.tsx
var PisellContactBrief_stories_exports = {};
__export(PisellContactBrief_stories_exports, {
  CreateButtonOnly: () => CreateButtonOnly,
  Default: () => Default,
  Disabled: () => Disabled,
  ListWithCreateButton: () => ListWithCreateButton,
  NoAvatar: () => NoAvatar,
  NoEmail: () => NoEmail,
  NoPhone: () => NoPhone,
  PrimaryLineClamp: () => PrimaryLineClamp,
  SwipeToDelete: () => SwipeToDelete,
  Vertical: () => Vertical,
  WithAvatar: () => WithAvatar,
  WithEditSubmit: () => WithEditSubmit,
  WithExtraFields: () => WithExtraFields,
  default: () => PisellContactBrief_stories_default
});
module.exports = __toCommonJS(PisellContactBrief_stories_exports);
var import_PisellContactBrief = require("./PisellContactBrief");
var meta = {
  title: "Data Display/PisellContactBrief",
  component: import_PisellContactBrief.PisellContactBrief,
  tags: ["autodocs"],
  decorators: [
    (Story) => /* @__PURE__ */ React.createElement("div", { style: { width: 340 } }, /* @__PURE__ */ React.createElement(Story, null))
  ],
  argTypes: {
    layout: {
      description: "布局方向",
      control: "radio",
      options: ["horizontal", "vertical"]
    },
    showAvatar: { description: "显示头像", control: "boolean" },
    showPhone: { description: "显示电话", control: "boolean" },
    showEmail: { description: "显示邮箱", control: "boolean" },
    swipeToDelete: { description: "开启左滑删除", control: "boolean" }
  }
};
var PisellContactBrief_stories_default = meta;
var Default = {
  args: {
    name: "Allen King",
    phone: "+61 412 345 1656",
    email: "Allenking@pisell.com",
    layout: "horizontal"
  }
};
var NoAvatar = {
  args: {
    name: "Bill Camp",
    phone: "+86 151 0548 2457",
    email: "Billcamp@pisell.com",
    showAvatar: true,
    avatar: void 0
  }
};
var WithAvatar = {
  args: {
    name: "张三",
    phone: "+86 138 0000 0000",
    email: "zhangsan@example.com",
    avatar: "https://ui-avatars.com/api/?name=Zhang+San&background=4a90d9&color=fff&size=32"
  }
};
var Vertical = {
  args: {
    name: "Allen King",
    phone: "+61 412 345 1656",
    email: "Allenking@pisell.com",
    layout: "vertical"
  }
};
var NoEmail = {
  args: {
    name: "Bill Camp",
    phone: "(+86 151 0548 2457)",
    showEmail: false
  }
};
var NoPhone = {
  args: {
    name: "Bill Camp",
    email: "Billcamp@pisell.com",
    showPhone: false
  }
};
var WithExtraFields = {
  args: {
    name: "Bill Camp",
    phone: "+86 151 0548 2457",
    email: "Billcamp@pisell.com",
    extraFields: [
      { key: "birthday", label: "生日" },
      { key: "address", label: "地址" }
    ],
    extraData: {
      birthday: "30 July 1990",
      address: "30 Jersey Parade, suburban, VIC, 3000"
    }
  }
};
var SwipeToDelete = {
  args: {
    name: "Bill Camp",
    phone: "+86 151 0548 2457",
    email: "Billcamp@pisell.com",
    swipeToDelete: true,
    onDelete: () => console.log("onDelete")
  }
};
var WithEditSubmit = {
  args: {
    name: "张三",
    phone: "138 0000 0000",
    email: "zhangsan@example.com",
    onSubmit: (values) => console.log("onSubmit", values)
  }
};
var Disabled = {
  args: {
    name: "张三",
    phone: "138 0000 0000",
    email: "a@b.com",
    disabled: true
  }
};
var PrimaryLineClamp = {
  args: {
    name: "非常长的联系人姓名用于测试单行省略效果",
    phone: "138 0000 0000",
    email: "a@b.com",
    primaryLineClamp: 1
  }
};
var CreateButtonOnly = {
  render: () => /* @__PURE__ */ React.createElement(
    import_PisellContactBrief.PisellContactBrief.CreateButton,
    {
      onCreate: (values) => console.log("onCreate", values)
    }
  )
};
var ListWithCreateButton = {
  render: () => /* @__PURE__ */ React.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 8, width: 340 } }, /* @__PURE__ */ React.createElement(
    import_PisellContactBrief.PisellContactBrief,
    {
      name: "Allen King",
      phone: "+61 412 345 1656",
      email: "Allenking@pisell.com",
      onSubmit: (v) => console.log("onSubmit", v)
    }
  ), /* @__PURE__ */ React.createElement(import_PisellContactBrief.PisellContactBrief.CreateButton, { onCreate: (v) => console.log("onCreate", v) }))
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  CreateButtonOnly,
  Default,
  Disabled,
  ListWithCreateButton,
  NoAvatar,
  NoEmail,
  NoPhone,
  PrimaryLineClamp,
  SwipeToDelete,
  Vertical,
  WithAvatar,
  WithEditSubmit,
  WithExtraFields
});
