'use client' // Re-export all shadcn/ui components. // // This barrel carries a `'use client'` boundary because it aggregates client // components (query-provider wraps @tanstack/react-query; the radix-backed // primitives call React.createContext at module load). Without the boundary, a // Server Component importing anything from the `@startsimpli/ui` root barrel // (e.g. `import { QueryProvider, Toaster } from '@startsimpli/ui'`) drags this // whole barrel into the server graph. When the package is consumed as a real // node_module (no barrel tree-shaking), the client modules land in the SSR // chunk where `react` resolves to the react-server build that has no // `createContext` — crashing `next build` at "Collecting page data" with // "TypeError: createContext is not a function" (startsim-milj). Marking the // barrel a client boundary keeps these client components out of the RSC/server // graph. Modules inside `@startsimpli/ui` still import the leaf primitives via // their relative paths (e.g. `../ui/card`), so internal server rendering is // unaffected. export * from './accordion' export * from './alert' export * from './badge' export * from './button' export * from './calendar' export * from './card' export * from './checkbox' export * from './collapsible' export * from './dialog' export * from './dropdown-menu' export * from './input' export * from './label' // nav.tsx is excluded - it's application-specific export * from './popover' export * from './progress' export * from './scroll-area' export * from './select' export * from './separator' export * from './skeleton' export * from './table' export * from './tabs' export * from './textarea' export * from './tooltip' export * from './feature-gate' export * from './api-error-boundary' export * from './page-loader' export * from './query-provider'