"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../index-DEZRGktf.js"),a=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const d=()=>{const o=`interface StandaloneAppRoutesMenuItem extends Omit<IMenuItem, 'dropdownItems'> {
  component: React.JSX.Element;    // Component to render
  isPublic?: boolean;              // If true, accessible without authentication
  enableNestedRoutes?: boolean;    // Adds /* to path for nested routing
  dropdownItems?: StandaloneAppRoutesMenuItem[]; // Nested sub-routes
}`,n=`import { ThemeProvider, StandaloneAppRoutesMenuItem } from '@e-burgos/tucu-ui';
import '@e-burgos/tucu-ui/styles';

const menuItems: StandaloneAppRoutesMenuItem[] = [
  {
    name: 'Home',
    path: '/',
    icon: <LucideIcons.Home />,
    component: <HomePage />,
    isPublic: true,
  },
  {
    name: 'Dashboard',
    path: '/dashboard',
    icon: <LucideIcons.LayoutDashboard />,
    component: <DashboardPage />,
  },
  {
    name: 'Settings',
    path: '/settings',
    icon: <LucideIcons.Settings />,
    component: <SettingsPage />,
    enableNestedRoutes: true,
    dropdownItems: [
      {
        name: 'Profile',
        path: '/settings/profile',
        component: <ProfilePage />,
      },
      {
        name: 'Preferences',
        path: '/settings/preferences',
        component: <PreferencesPage />,
      },
    ],
  },
];

function StandaloneApp() {
  return (
    <ThemeProvider
      // architecturalPatterns="standalone" is the default (optional)
      menuItems={menuItems}
      logo={{ name: 'My', secondName: 'App' }}
      showSettings
    />
  );
}`,r=`import { ThemeProvider } from '@e-burgos/tucu-ui';
import { ReactRouter } from '@e-burgos/tucu-ui';

const { Routes, Route } = ReactRouter;

function StandaloneApp() {
  return (
    <ThemeProvider
      menuItems={menuItems}
      customRoutes={
        <Routes>
          <Route path="/" element={<HomePage />} />
          <Route path="/custom" element={<CustomPage />} />
          <Route path="*" element={<NotFoundPage />} />
        </Routes>
      }
    />
  );
}`,i=[{icon:e.jsx(a.Wand2,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"Auto Route Generation",description:"Routes created automatically from menuItems. No manual setup required.",iconBgClassName:"from-blue-500 to-cyan-500"},{icon:e.jsx(a.Layers3,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"Nested Routes",description:"Unlimited nesting with dropdownItems converted to dropdown menus.",iconBgClassName:"from-purple-500 to-indigo-500"},{icon:e.jsx(a.Minimize2,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"Simple Configuration",description:"Minimal setup — define menu items and the system handles the rest.",iconBgClassName:"from-green-500 to-emerald-500"},{icon:e.jsx(a.AppWindow,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"Perfect for SPAs",description:"Ideal for traditional single-page applications without MFE complexity.",iconBgClassName:"from-orange-500 to-amber-500"}];return e.jsxs(e.Fragment,{children:[e.jsx(t.HeroCard,{title:"Standalone App",description:"The default architectural pattern for traditional SPAs. Routes are automatically generated from menuItems configuration with sidebar navigation.",icon:e.jsx("div",{className:"w-20 h-20 sm:w-24 sm:h-24 md:w-32 md:h-32 bg-linear-to-br from-blue-500 via-cyan-500 to-teal-500 rounded-full flex items-center justify-center shadow-lg",children:e.jsx(a.Package,{className:"w-10 h-10 sm:w-12 sm:h-12 md:w-16 md:h-16 text-white filter drop-shadow-lg"})})}),e.jsxs("section",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(t.Typography,{tag:"h2",className:"mb-2",children:"StandaloneAppRoutesMenuItem"}),e.jsx(t.Typography,{tag:"p",className:"text-gray-500 dark:text-gray-400 max-w-2xl mx-auto",children:"Type-safe interface for defining standalone routes"})]}),e.jsx(t.CardContainer,{children:e.jsx(t.CardTitle,{title:"Interface Definition",children:e.jsx(t.CodeBlock,{language:"TS",code:o})})}),e.jsx(t.Alert,{variant:"info",dismissible:!1,children:e.jsxs(t.Typography,{tag:"p",className:"text-sm",children:[e.jsx(a.Info,{className:"w-4 h-4 inline mr-2"}),"The Standalone pattern is the default. You don't need to specify"," ",e.jsx("code",{className:"px-1 py-0.5 border border-border rounded text-xs",children:"architecturalPatterns"}),". Simply provide"," ",e.jsx("code",{className:"px-1 py-0.5 border border-border rounded text-xs",children:"menuItems"})," ","and routes will be generated."]})})]}),e.jsxs("section",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(t.Typography,{tag:"h2",className:"mb-2",children:"Basic Usage"}),e.jsx(t.Typography,{tag:"p",className:"text-gray-500 dark:text-gray-400 max-w-2xl mx-auto",children:"Simple standalone app with nested routes"})]}),e.jsx(t.CardContainer,{children:e.jsx(t.CardTitle,{title:"ThemeProvider with menuItems",children:e.jsx(t.CodeBlock,{language:"tsx",code:n})})})]}),e.jsxs("section",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(t.Typography,{tag:"h2",className:"mb-2",children:"Custom Routes Override"}),e.jsx(t.Typography,{tag:"p",className:"text-gray-500 dark:text-gray-400 max-w-2xl mx-auto",children:"Override default routing with customRoutes prop"})]}),e.jsx(t.CardContainer,{children:e.jsx(t.CardTitle,{title:"Custom Routing",children:e.jsx(t.CodeBlock,{language:"tsx",code:r})})})]}),e.jsxs("section",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(t.Typography,{tag:"h2",className:"mb-2",children:"Key Features"}),e.jsx(t.Typography,{tag:"p",className:"text-gray-500 dark:text-gray-400 max-w-2xl mx-auto",children:"Benefits of the Standalone pattern"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6",children:i.map(s=>e.jsx(t.FeatureCard,{layout:"vertical",...s},s.title))})]})]})};exports.default=d;
