{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-2",
  "dependencies": [
    "lucide-react",
    "react-icons"
  ],
  "registryDependencies": [
    "button",
    "switch",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/pricing-2.tsx",
      "content": "import { useState } from \"react\";\nimport { Switch } from \"@/components/ui/switch\";\nimport { Button } from \"@/components/ui/button\";\nimport { FaCheckCircle } from \"react-icons/fa\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface PricingFeature {\n  name: string;\n}\n\nexport interface PricingTier {\n  id: string;\n  name: string;\n  monthlyPrice: string;\n  yearlyPrice: string;\n  priceUnit: string;\n  buttonText: string;\n  isHighlighted?: boolean;\n  features: PricingFeature[];\n}\n\nexport interface Pricing2Props {\n  title?: string;\n  subtitle?: string;\n  yearlyLabel?: string;\n  monthlyLabel?: string;\n  discountText?: string;\n  tiers?: PricingTier[];\n}\n\nconst defaultTiers: PricingTier[] = [\n  {\n    id: \"tier-essential\",\n    name: \"Essential\",\n    monthlyPrice: \"$0\",\n    yearlyPrice: \"$0\",\n    priceUnit: \"Month\",\n    buttonText: \"Get Started Now\",\n    features: [\n      { name: \"Up to 5 team members\" },\n      { name: \"Basic workspace analytics\" },\n      { name: \"Community forum access\" },\n      { name: \"Standard integrations\" },\n    ],\n  },\n  {\n    id: \"tier-professional\",\n    name: \"Professional\",\n    monthlyPrice: \"$39\",\n    yearlyPrice: \"$29\",\n    priceUnit: \"Month\",\n    buttonText: \"Start 14-Day Free Trial\",\n    features: [\n      { name: \"Unlimited team members\" },\n      { name: \"Advanced performance metrics\" },\n      { name: \"Priority email & chat support\" },\n      { name: \"Custom workflow automation\" },\n    ],\n  },\n  {\n    id: \"tier-business\",\n    name: \"Business\",\n    monthlyPrice: \"$149\",\n    yearlyPrice: \"$119\",\n    priceUnit: \"Month\",\n    buttonText: \"Start 14-Day Free Trial\",\n    isHighlighted: true,\n    features: [\n      { name: \"Everything in Professional\" },\n      { name: \"Dedicated success manager\" },\n      { name: \"SAML Single Sign-On (SSO)\" },\n      { name: \"Role-based access control\" },\n      { name: \"Data export & compliance\" },\n    ],\n  },\n  {\n    id: \"tier-enterprise\",\n    name: \"Enterprise\",\n    monthlyPrice: \"Custom\",\n    yearlyPrice: \"Custom\",\n    priceUnit: \"\",\n    buttonText: \"Contact Sales Team\",\n    features: [\n      { name: \"Custom deployment options\" },\n      { name: \"White-label branding\" },\n      { name: \"24/7 dedicated phone support\" },\n      { name: \"Customized SLA agreements\" },\n    ],\n  },\n];\n\nexport default function Pricing2({\n  title = \"Simple, transparent pricing for teams of all sizes\",\n  subtitle = \"Choose the plan that fits your needs. No hidden fees, ever.\",\n  yearlyLabel = \"Pay Yearly\",\n  monthlyLabel = \"Pay Monthly\",\n  discountText = \"Save 20%\",\n  tiers = defaultTiers,\n}: Pricing2Props) {\n  const [isMonthly, setIsMonthly] = useState(true);\n\n  return (\n    <section className=\"bg-background w-full py-8 md:py-16\">\n      <div className=\"container mx-auto max-w-7xl px-4 md:px-6\">\n        <div className=\"mb-16 flex flex-col items-center justify-center space-y-4 text-center\">\n          {title && (\n            <h2 className=\"text-foreground max-w-3xl text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl\">\n              {title}\n            </h2>\n          )}\n          {subtitle && (\n            <p className=\"text-muted-foreground mt-4 max-w-2xl text-lg md:text-xl\">\n              {subtitle}\n            </p>\n          )}\n\n          <div className=\"bg-muted border-border mt-8 flex items-center justify-center space-x-4 rounded-none border p-2\">\n            <div className=\"flex items-center\">\n              {discountText && (\n                <span className=\"text-primary bg-primary/10 mr-3 rounded-none px-2.5 py-1 text-xs font-semibold md:text-sm\">\n                  {discountText}\n                </span>\n              )}\n              <span\n                className={cn(\n                  \"cursor-pointer text-sm font-medium transition-colors md:text-base\",\n                  !isMonthly ? \"text-foreground\" : \"text-muted-foreground\",\n                )}\n                onClick={() => setIsMonthly(false)}\n              >\n                {yearlyLabel}\n              </span>\n            </div>\n\n            <Switch\n              checked={isMonthly}\n              onCheckedChange={setIsMonthly}\n              className=\"data-[state=checked]:bg-primary data-[state=unchecked]:bg-muted rounded-none shadow-[inset_0_0px_4px_1px_rgba(0,0,0,0.15)] [&_span]:rounded-none\"\n              aria-label=\"Toggle pricing period\"\n            />\n\n            <span\n              className={cn(\n                \"cursor-pointer text-sm font-medium transition-colors md:text-base\",\n                isMonthly ? \"text-foreground\" : \"text-muted-foreground\",\n              )}\n              onClick={() => setIsMonthly(true)}\n            >\n              {monthlyLabel}\n            </span>\n          </div>\n        </div>\n\n        <div className=\"grid grid-cols-1 items-stretch gap-6 pt-4 md:grid-cols-2 lg:grid-cols-4 lg:gap-8\">\n          {tiers.map((tier) => {\n            const priceToDisplay = isMonthly\n              ? tier.monthlyPrice\n              : tier.yearlyPrice;\n            const isHighlighted = tier.isHighlighted;\n\n            return (\n              <div\n                key={tier.id}\n                className={cn(\n                  \"relative flex flex-col rounded-none border p-4 transition-all duration-300\",\n                  isHighlighted\n                    ? \"bg-primary text-primary-foreground border-primary z-10 shadow-xl lg:-translate-y-4 lg:scale-105\"\n                    : \"bg-muted text-card-foreground border-border shadow-sm hover:shadow-md\",\n                )}\n              >\n                {isHighlighted && (\n                  <div className=\"bg-muted border-border text-foreground absolute top-0 left-1/2 shrink-0 -translate-x-1/2 -translate-y-1/2 rounded-none border px-3 py-1 text-xs font-bold tracking-wider uppercase\">\n                    Popular\n                  </div>\n                )}\n\n                <div className=\"mb-8\">\n                  <h3\n                    className={cn(\n                      \"mb-4 text-xl font-semibold\",\n                      isHighlighted\n                        ? \"text-primary-foreground\"\n                        : \"text-foreground\",\n                    )}\n                  >\n                    {tier.name}\n                  </h3>\n                  <div className=\"flex items-baseline gap-2\">\n                    <span className=\"text-4xl font-bold tracking-tight md:text-5xl\">\n                      {priceToDisplay}\n                    </span>\n                    {tier.priceUnit && priceToDisplay !== \"Custom\" && (\n                      <span\n                        className={cn(\n                          \"text-base font-medium\",\n                          isHighlighted\n                            ? \"text-primary-foreground/80\"\n                            : \"text-muted-foreground\",\n                        )}\n                      >\n                        / {tier.priceUnit}\n                      </span>\n                    )}\n                  </div>\n                </div>\n\n                <Button\n                  className={cn(\n                    \"mb-8 w-full rounded-none py-6 font-semibold transition-all duration-200\",\n                    isHighlighted\n                      ? \"bg-muted text-foreground hover:bg-muted/90\"\n                      : \"bg-primary text-primary-foreground hover:bg-primary/90\",\n                  )}\n                  variant={isHighlighted ? \"secondary\" : \"default\"}\n                  size=\"lg\"\n                >\n                  {tier.buttonText}\n                </Button>\n\n                <div className=\"flex flex-1 flex-col gap-4\">\n                  {tier.features.map((feature, index) => (\n                    <div key={index} className=\"flex items-start gap-3\">\n                      <FaCheckCircle\n                        className={cn(\n                          \"mt-0.5 h-5 w-5 shrink-0\",\n                          isHighlighted\n                            ? \"text-primary-foreground\"\n                            : \"text-primary/80\",\n                        )}\n                      />\n                      <span\n                        className={cn(\n                          \"text-sm leading-relaxed\",\n                          isHighlighted\n                            ? \"text-primary-foreground/90\"\n                            : \"text-muted-foreground\",\n                        )}\n                      >\n                        {feature.name}\n                      </span>\n                    </div>\n                  ))}\n                </div>\n              </div>\n            );\n          })}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/pricing-2.tsx"
    }
  ],
  "type": "registry:ui"
}
