{"_id":"@botfather/units-uikit-shadcn","_rev":"3-711fa086f446c33b1e1e9ebe71c7db70","name":"@botfather/units-uikit-shadcn","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@botfather/units-uikit-shadcn","version":"1.0.0","license":"MIT","_id":"@botfather/units-uikit-shadcn@1.0.0","maintainers":[{"name":"botfather","email":"mohan.tushar.11@gmail.com"}],"homepage":"https://github.com/Botfather/units/tree/main/packages/units-uikit-shadcn","bugs":{"url":"https://github.com/Botfather/units/issues"},"dist":{"shasum":"20a60bbd357794da8da007676bffc9ee1b0c9168","tarball":"https://registry.npmjs.org/@botfather/units-uikit-shadcn/-/units-uikit-shadcn-1.0.0.tgz","fileCount":267,"integrity":"sha512-Sk4h7wTSKvVtpjzRbouM3HfE5UbkWbyeGRoRzf7Voq4EzMzHao4tvgrY4GekAwMZXbnUSZUPZKzw2O4Sxhd5OA==","signatures":[{"sig":"MEUCIC0uMKGM9NPO+bCoxFpqsCr7cdEHEGnTMvB0LRVGVp7jAiEAojmA+0aCH9QDIZII5iDW1YSR8iO+RCNgZcZ20vdt+lk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@botfather%2funits-uikit-shadcn@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":90708},"main":"./index.js","type":"module","_from":"file:botfather-units-uikit-shadcn-1.0.0.tgz","exports":{".":"./index.js","./shadcn/*":"./shadcn/*","./shadcn.css":"./shadcn.css","./shadcn-manifest.js":"./shadcn-manifest.js"},"_npmUser":{"name":"botfather","email":"mohan.tushar.11@gmail.com"},"_resolved":"/tmp/2cfcf8cd094daf6b0f2b3521f8d4c71b/botfather-units-uikit-shadcn-1.0.0.tgz","_integrity":"sha512-Sk4h7wTSKvVtpjzRbouM3HfE5UbkWbyeGRoRzf7Voq4EzMzHao4tvgrY4GekAwMZXbnUSZUPZKzw2O4Sxhd5OA==","repository":{"url":"git+https://github.com/Botfather/units.git","type":"git","directory":"packages/units-uikit-shadcn"},"_npmVersion":"10.8.2","description":"ShadCN-style component library authored in Units DSL.","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@botfather/units":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/units-uikit-shadcn_1.0.0_1772457775064_0.6160348311935306","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@botfather/units-uikit-shadcn","version":"2.0.0","license":"MIT","_id":"@botfather/units-uikit-shadcn@2.0.0","maintainers":[{"name":"botfather","email":"mohan.tushar.11@gmail.com"}],"homepage":"https://github.com/Botfather/units/tree/main/packages/units-uikit-shadcn","bugs":{"url":"https://github.com/Botfather/units/issues"},"dist":{"shasum":"5b406191bff11cb469e838f6e55407935f0d3617","tarball":"https://registry.npmjs.org/@botfather/units-uikit-shadcn/-/units-uikit-shadcn-2.0.0.tgz","fileCount":267,"integrity":"sha512-9gLorrv0HafjUK9/kVGxPF3ew3vZJbji74os1tCvullfJ6Nt70eGYpHHuxDExhG7e7kej7dZEfoh1N4q1qrpbA==","signatures":[{"sig":"MEUCICVIEt64R2dR0+Mh4Nopgl5AnE14mOiGiLOY2C1A0IJaAiEAjPgGQZ021qaUU84wLI+ZqgEwjgr8dd677uEYi5ib1Pc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@botfather%2funits-uikit-shadcn@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":90708},"main":"./index.js","type":"module","_from":"file:botfather-units-uikit-shadcn-2.0.0.tgz","exports":{".":"./index.js","./shadcn/*":"./shadcn/*","./shadcn.css":"./shadcn.css","./shadcn-manifest.js":"./shadcn-manifest.js"},"_npmUser":{"name":"botfather","email":"mohan.tushar.11@gmail.com"},"_resolved":"/tmp/5694d314b1e169e45ca6d7d2f3ff890b/botfather-units-uikit-shadcn-2.0.0.tgz","_integrity":"sha512-9gLorrv0HafjUK9/kVGxPF3ew3vZJbji74os1tCvullfJ6Nt70eGYpHHuxDExhG7e7kej7dZEfoh1N4q1qrpbA==","repository":{"url":"git+https://github.com/Botfather/units.git","type":"git","directory":"packages/units-uikit-shadcn"},"_npmVersion":"10.8.2","description":"ShadCN-style component library authored in Units DSL.","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@botfather/units":"2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/units-uikit-shadcn_2.0.0_1772462415098_0.8062086485924349","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@botfather/units-uikit-shadcn","version":"2.0.1","description":"ShadCN-style component library authored in Units DSL.","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/Botfather/units.git","directory":"packages/units-uikit-shadcn"},"homepage":"https://github.com/Botfather/units/tree/main/packages/units-uikit-shadcn","bugs":{"url":"https://github.com/Botfather/units/issues"},"main":"./index.js","exports":{".":"./index.js","./shadcn.css":"./shadcn.css","./shadcn-manifest.js":"./shadcn-manifest.js","./shadcn/*":"./shadcn/*"},"dependencies":{"@botfather/units":"2.0.1"},"publishConfig":{"access":"public"},"_id":"@botfather/units-uikit-shadcn@2.0.1","_integrity":"sha512-/5Adf9TwJQhEzinsbzgCRahKSZNiZsZQQdP0/IBYXaVQ5qiFG+IRFbtQyNMG0W96FPm9+4pNcFJ4Y/U3kCTljQ==","_resolved":"/tmp/aa29c4af17cd1a167d6832918b37facc/botfather-units-uikit-shadcn-2.0.1.tgz","_from":"file:botfather-units-uikit-shadcn-2.0.1.tgz","_nodeVersion":"24.16.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-/5Adf9TwJQhEzinsbzgCRahKSZNiZsZQQdP0/IBYXaVQ5qiFG+IRFbtQyNMG0W96FPm9+4pNcFJ4Y/U3kCTljQ==","shasum":"9d1369b7a5ecf486185775c095820422e6c9834a","tarball":"https://registry.npmjs.org/@botfather/units-uikit-shadcn/-/units-uikit-shadcn-2.0.1.tgz","fileCount":267,"unpackedSize":93110,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@botfather%2funits-uikit-shadcn@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCkKqPXjW/CAdcDdzUCxMvsBSf1vHwOwlKJtqzfqwZ+tgIgcjOMPiFn2tLvWjq6Cj1HnOun0uUXPtWVzOzRqkGwojs="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:de24f375-5783-4199-ad9f-0261086b750f"}},"directories":{},"maintainers":[{"name":"botfather","email":"mohan.tushar.11@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/units-uikit-shadcn_2.0.1_1782219357264_0.2075416801663641"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-02T13:22:54.947Z","modified":"2026-06-23T12:55:57.715Z","1.0.0":"2026-03-02T13:22:55.210Z","2.0.0":"2026-03-02T14:40:15.225Z","2.0.1":"2026-06-23T12:55:57.430Z"},"bugs":{"url":"https://github.com/Botfather/units/issues"},"license":"MIT","homepage":"https://github.com/Botfather/units/tree/main/packages/units-uikit-shadcn","repository":{"type":"git","url":"git+https://github.com/Botfather/units.git","directory":"packages/units-uikit-shadcn"},"description":"ShadCN-style component library authored in Units DSL.","maintainers":[{"name":"botfather","email":"mohan.tushar.11@gmail.com"}],"readme":"# @botfather/units-uikit-shadcn\n\nA complete UI component kit modeled after [shadcn/ui](https://ui.shadcn.com/), with every component authored as a Units `.ui` template. Drop-in shadcn-style components for any Units-based rendering pipeline — no JSX required.\n\n## What is it?\n\nThis package ships ~260 pre-built components covering the full shadcn/ui component set: buttons, cards, dialogs, tables, forms, navigation, data display, and more. Each component is a Units `.ui` template that produces Tailwind-class-based markup. Behavioral concerns (Radix primitives, state, portals) are wired in the host application's renderer layer, keeping the templates pure and portable.\n\n## Installation\n\n```sh\nnpm install @botfather/units-uikit-shadcn @botfather/units react\n```\n\nImport the stylesheet once at your app entry point:\n\n```js\nimport \"@botfather/units-uikit-shadcn/shadcn.css\";\n```\n\n## Usage\n\n### Quick start with the React renderer\n\n```js\nimport { renderUnits } from \"@botfather/units/runtime\";\nimport uiAst from \"./app.ui\"; // via vite-plugin-units\nimport { withShadcnComponents } from \"@botfather/units-uikit-shadcn\";\nimport \"@botfather/units-uikit-shadcn/shadcn.css\";\n\n// withShadcnComponents() merges all ~260 components into renderUnits options\nconst element = renderUnits(uiAst, scope, withShadcnComponents());\n```\n\n### Selective import\n\n```js\nimport { shadcnComponents } from \"@botfather/units-uikit-shadcn\";\n\nrenderUnits(ast, scope, {\n  components: {\n    Button: shadcnComponents.Button,\n    Card: shadcnComponents.Card,\n  },\n});\n```\n\n### Wrapping a single component\n\n```js\nimport { createUnitsComponent } from \"@botfather/units-uikit-shadcn\";\nimport { uiManifest } from \"@botfather/units-uikit-shadcn/shadcn-manifest.js\";\n\nconst Button = createUnitsComponent(uiManifest.Button);\n// <Button variant=\"primary\" className=\"...\">Click me</Button>\n```\n\n## Component contract\n\n- All components receive a `props` object in scope (e.g. `{ className, variant, size, ... }`).\n- Children are passed as the `default` slot via `#slot (default)` in the template.\n- Tailwind class composition is handled inside `@(...)` expressions within the templates.\n- Behavioral wiring (Radix, state, portals) belongs in the host renderer or wrapper components.\n\n## Available components\n\n- Accordion\n- Alert\n- AlertDialog\n- AspectRatio\n- Avatar\n- Badge\n- Breadcrumb\n- Button\n- ButtonGroup\n- Calendar\n- Card\n- Carousel\n- Chart\n- Checkbox\n- Collapsible\n- Combobox\n- Command\n- ContextMenu\n- DataTable\n- DatePicker\n- Dialog\n- Direction\n- Drawer\n- DropdownMenu\n- Empty\n- Field\n- HoverCard\n- Input\n- InputGroup\n- InputOTP\n- Item\n- Kbd\n- Label\n- Menubar\n- NativeSelect\n- NavigationMenu\n- Pagination\n- Popover\n- Progress\n- RadioGroup\n- ResizablePanel\n- ScrollArea\n- Select\n- Separator\n- Sheet\n- Sidebar\n- Skeleton\n- Slider\n- Sonner\n- Spinner\n- Switch\n- Table\n- Tabs\n- Textarea\n- Toggle\n- Tooltip\n- Typography — H1, H2, H3, H4, P, Blockquote, List, Muted, Small, Large, Lead, InlineCode\n\n## Package exports\n\n| Export path | Description |\n|---|---|\n| `@botfather/units-uikit-shadcn` | `createUnitsComponent`, `shadcnComponents`, `withShadcnComponents` |\n| `@botfather/units-uikit-shadcn/shadcn.css` | CSS custom properties and Tailwind base stylesheet |\n| `@botfather/units-uikit-shadcn/shadcn-manifest.js` | Raw `uiManifest` — `Record<string, AST>` |\n| `@botfather/units-uikit-shadcn/shadcn/*` | Individual `.ui` template files |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}