{"_id":"@carefully-built/legal-ui","_rev":"2-c7f72d080134824c40c1164c8dc50d46","name":"@carefully-built/legal-ui","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.1":{"name":"@carefully-built/legal-ui","version":"0.1.1","keywords":["react","legal","terms","privacy","saas"],"author":{"name":"Alessandro Dodi"},"license":"MIT","_id":"@carefully-built/legal-ui@0.1.1","maintainers":[{"name":"alledodi","email":"dodialessandro3@gmail.com"}],"homepage":"https://github.com/AlessandroDodi/carefully-built-saas-kit#readme","bugs":{"url":"https://github.com/AlessandroDodi/carefully-built-saas-kit/issues"},"dist":{"shasum":"41cce560df11a4f8ae59450030007a9241b0595e","tarball":"https://registry.npmjs.org/@carefully-built/legal-ui/-/legal-ui-0.1.1.tgz","fileCount":6,"integrity":"sha512-tIglx88g0IisYbIzNAs/2GCbVbleD8mU8dpwMY56rQ/LI1V1HocYDHrkTRVqYN3WhPwHGtuh6036i8TrMbt/4w==","signatures":[{"sig":"MEUCIQDKS4JLrM/tYX0yP+a3OlNjJXziqQRM/RxekVdGK/gxdQIgRxWKsnanDgKsM3krdwLZs6NGeSePrr72Py+oUTrrQXg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35831},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"gitHead":"b84d3f58858fed9a9e06a291cd33ea8b6f1ff157","scripts":{"build":"tsdown src/index.tsx --format esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"bun run typecheck && bun run build"},"_npmUser":{"name":"alledodi","email":"dodialessandro3@gmail.com"},"repository":{"url":"git+https://github.com/AlessandroDodi/carefully-built-saas-kit.git","type":"git","directory":"packages/legal-ui"},"_npmVersion":"11.9.0","description":"Reusable legal document renderer for Carefully Built SaaS apps.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.2.3","lucide-react":"^1.8.0","@carefully-built/ui":"workspace:*"},"peerDependencies":{"react":">=18.2.0 || >=19.0.0","react-dom":">=18.2.0 || >=19.0.0","lucide-react":">=0.400.0 || >=1.0.0","@carefully-built/ui":">=0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/legal-ui_0.1.1_1782064425286_0.4304607470417847","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@carefully-built/legal-ui","version":"0.1.2","description":"Reusable legal document renderer for Carefully Built SaaS apps.","type":"module","license":"MIT","author":{"name":"Alessandro Dodi"},"homepage":"https://github.com/AlessandroDodi/carefully-built-saas-kit#readme","repository":{"type":"git","url":"git+https://github.com/AlessandroDodi/carefully-built-saas-kit.git","directory":"packages/legal-ui"},"bugs":{"url":"https://github.com/AlessandroDodi/carefully-built-saas-kit/issues"},"keywords":["react","legal","terms","privacy","saas"],"sideEffects":false,"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"build":"tsdown src/index.tsx --format esm --dts","prepublishOnly":"bun run typecheck && bun run build","typecheck":"tsc --noEmit"},"publishConfig":{"access":"public"},"peerDependencies":{"@carefully-built/ui":">=0.1.4","lucide-react":">=0.400.0 || >=1.0.0","react":">=18.2.0 || >=19.0.0","react-dom":">=18.2.0 || >=19.0.0"},"devDependencies":{"@carefully-built/ui":"workspace:*","lucide-react":"^1.8.0","react":"^19.2.3"},"gitHead":"c93ed6a7671fc5f8e463cba62d51fdc2226be516","_id":"@carefully-built/legal-ui@0.1.2","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-THofVHgAmWqTtZyxC2oZtriUcd+DPziEM7/3Ekn9VzfcCNJf13uzl1VTUzLihpvNRTYrcGsA/cpZ6KtQLqcrjA==","shasum":"e5d835f1ed479ae6cf052ddbc2e81bd20fffed67","tarball":"https://registry.npmjs.org/@carefully-built/legal-ui/-/legal-ui-0.1.2.tgz","fileCount":6,"unpackedSize":35831,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAQwR3TjcsJylJfHYfHHaTVLwVwT3efscSIrueHKGfgWAiEA2swX0jheQSHeAxJzSxuNCV9uqTiHIGaIcgB42qV2ebw="}]},"_npmUser":{"name":"alledodi","email":"dodialessandro3@gmail.com"},"directories":{},"maintainers":[{"name":"alledodi","email":"dodialessandro3@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/legal-ui_0.1.2_1782245581089_0.63231062761147"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-21T17:53:45.064Z","modified":"2026-06-23T20:13:01.391Z","0.1.1":"2026-06-21T17:53:45.420Z","0.1.2":"2026-06-23T20:13:01.235Z"},"bugs":{"url":"https://github.com/AlessandroDodi/carefully-built-saas-kit/issues"},"author":{"name":"Alessandro Dodi"},"license":"MIT","homepage":"https://github.com/AlessandroDodi/carefully-built-saas-kit#readme","keywords":["react","legal","terms","privacy","saas"],"repository":{"type":"git","url":"git+https://github.com/AlessandroDodi/carefully-built-saas-kit.git","directory":"packages/legal-ui"},"description":"Reusable legal document renderer for Carefully Built SaaS apps.","maintainers":[{"name":"alledodi","email":"dodialessandro3@gmail.com"}],"readme":"# Carefully Built Legal UI\n\nReusable legal document renderer for SaaS terms, privacy, and cookie-policy pages.\n\n## Install\n\n```bash\nbun add @carefully-built/legal-ui\n```\n\n## Basic Usage\n\n```tsx\nimport { LegalDocument } from '@carefully-built/legal-ui';\n\n<LegalDocument\n  title=\"Privacy Policy\"\n  content={privacyPolicyText}\n  logo={<Logo className=\"h-9\" />}\n  backHref=\"/login\"\n/>;\n```\n\nThe consuming app owns the actual legal text. This package owns the readable document layout, heading detection, URL rendering, and standard back/logo frame.\n\n## Styling And Theming\n\nUse optional `className` and `classes` props for product-specific presentation. Defaults stay unchanged when omitted.\n\n```tsx\n<LegalDocument\n  title=\"Terms of Service\"\n  content={termsText}\n  logo={<Logo />}\n  backHref=\"/login\"\n  classes={{\n    container: 'max-w-3xl',\n    content: 'text-sm leading-7',\n    heading: 'text-lg',\n    link: 'underline-offset-4',\n  }}\n/>;\n```\n\nKeep the legal text and route ownership in the app. Do not copy this renderer into an app just to change spacing, typography, or link styling.\n","readmeFilename":"README.md"}