import React from "react"; import HeaderLockup from "../../app/components/type/HeaderLockup"; import InfoMessageBox from "../../app/components/controls/InfoMessageBox"; import { HEADER_LOCKUP_JUSTIFICATION_OPTIONS, HEADER_LOCKUP_SIZE_OPTIONS, } from "../../lib/propNormalization"; /** * Compose pattern used by create-flow “decision approaches” rail: headline lockup * plus bordered checklist — no standalone wrapper component. */ export default { title: "Create Flow/Rail header (lockup + info box)", parameters: { layout: "centered", docs: { description: { component: "`HeaderLockup` stacked with `InfoMessageBox` — same chrome as decision-approaches step sidebars.", }, }, }, argTypes: { size: { control: { type: "select" }, options: [...HEADER_LOCKUP_SIZE_OPTIONS], }, justification: { control: { type: "select" }, options: [...HEADER_LOCKUP_JUSTIFICATION_OPTIONS], }, }, decorators: [ (Story) => (
), ], }; const messageItems = [ { id: "c1", label: "Consensus" }, { id: "c2", label: "Majority vote" }, ]; const compose = (args) => (
); export const Default = { render: compose, args: { title: "How does your group make decisions?", description: "Choose the approaches that best match how your community operates.", messageBoxTitle: "Common approaches", messageBoxItems: messageItems, size: "L", justification: "left", }, }; export const Medium = { render: compose, args: { title: "Decision-making", description: "Short description.", messageBoxTitle: "Pick any", messageBoxItems: [{ id: "x", label: "Single method" }], size: "M", justification: "left", }, };