var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/plus/pisellFinancialSummary/components/Collapse/Collapse.stories.tsx
var Collapse_stories_exports = {};
__export(Collapse_stories_exports, {
  Default: () => Default,
  FigmaDesign: () => FigmaDesign,
  default: () => Collapse_stories_default
});
module.exports = __toCommonJS(Collapse_stories_exports);
var import_react = __toESM(require("react"));
var import_Collapse = require("./Collapse");
var meta = {
  title: "Plus Components/PisellFinancialSummary/Collapse",
  component: import_Collapse.Collapse,
  tags: ["autodocs"],
  parameters: {
    layout: "padded",
    docs: {
      description: {
        component: "PisellFinancialSummary 子组件：可折叠项，与 [Figma 14256:5103](https://www.figma.com/design/pM8Ho6d7kCMv9vIBvFHUlj/Pisell-2.0-Component-Library?node-id=14256-5103) Collapse 设计 1:1 一致。用于付款历史/退款展开后的每条记录。"
      }
    }
  }
};
var Collapse_stories_default = meta;
var FigmaDesign = {
  name: "Figma 14256-5103（设计稿 1:1）",
  parameters: {
    docs: {
      description: {
        story: "与 [Figma node 14256:5103](https://www.figma.com/design/pM8Ho6d7kCMv9vIBvFHUlj/Pisell-2.0-Component-Library?node-id=14256-5103&m=dev) 完全一致：Collapse Head + Collapse Body。"
      }
    },
    backgrounds: {
      default: "white",
      values: [{ name: "white", value: "#ffffff" }]
    }
  },
  decorators: [
    (Story) => /* @__PURE__ */ import_react.default.createElement("div", { style: { maxWidth: 400, margin: "0 auto", padding: 24 } }, /* @__PURE__ */ import_react.default.createElement(Story, null))
  ],
  args: {
    headMeta: {
      time: "20:00",
      date: "30/08/2025",
      customer: "Customer",
      channel: "Online Store"
    },
    headAmount: "-$30",
    defaultExpanded: true,
    bodyRows: [
      {
        label: "Visa (12****1234)",
        amount: "-$30",
        action: { label: "Void", onClick: () => console.log("Void clicked") }
      }
    ]
  }
};
var Default = {
  args: {
    headMeta: {
      time: "14:00",
      date: "12/03/2025",
      customer: "John Doe",
      channel: "In Store"
    },
    headAmount: "$54.00",
    defaultExpanded: false,
    bodyRows: [
      {
        label: "Card (****4242)",
        amount: "$54.00",
        action: { label: "Void", onClick: () => {
        } }
      }
    ]
  }
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  Default,
  FigmaDesign
});
