{"_id":"@bootcn-vue/core","_rev":"3-77c4779e9c8900b1ad1eab125753e02c","name":"@bootcn-vue/core","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.1":{"name":"@bootcn-vue/core","version":"0.0.1","keywords":["vue","vue3","bootstrap","components","utilities"],"author":{"name":"Shashank Shandilya"},"license":"MIT","_id":"@bootcn-vue/core@0.0.1","maintainers":[{"name":"banavasi","email":"shashank.v.shandilya@gmail.com"}],"homepage":"https://github.com/banavasi/bootcn-vue#readme","bugs":{"url":"https://github.com/banavasi/bootcn-vue/issues"},"dist":{"shasum":"2f35fa77a9a35874746b8ff9e2c9d0ba11296477","tarball":"https://registry.npmjs.org/@bootcn-vue/core/-/core-0.0.1.tgz","fileCount":5,"integrity":"sha512-pG9C0+qwnjcrJQBWpnf0xfNdCcXtigvGv+9aRbqlCajhMfFpBrBr8SXe949Mn9L395WyA9/LJHhU8CnBwg5qVg==","signatures":[{"sig":"MEYCIQDhkxtv4522Fay5fTecvGiOYp7T5LXX31YvjZET0gPffQIhALoPtJ5JhDoTKuqwS++/XzDWerzG3R2h+ZDuhVeW6ODJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2236},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./lib/*":{"types":"./src/lib/*.d.ts","import":"./src/lib/*.ts"}},"gitHead":"1d04d59b922da13f7a0b6df89585235a18dcd8d1","scripts":{"dev":"tsup --watch","lint":"eslint src --fix","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit"},"_npmUser":{"name":"banavasi","email":"shashank.v.shandilya@gmail.com"},"repository":{"url":"git+https://github.com/banavasi/bootcn-vue.git","type":"git","directory":"packages/core"},"_npmVersion":"11.6.2","description":"Core utilities and shared code for bootcn-vue","directories":{},"_nodeVersion":"24.12.0","dependencies":{"clsx":"^2.1.1","tailwind-merge":"^3.2.0","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"~5.8.0"},"peerDependencies":{"vue":"^3.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.1_1768030871172_0.2236428900538463","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@bootcn-vue/core","version":"0.2.2","keywords":["vue","vue3","bootstrap","components","utilities"],"author":{"name":"Shashank Shandilya"},"license":"MIT","_id":"@bootcn-vue/core@0.2.2","maintainers":[{"name":"banavasi","email":"shashank.v.shandilya@gmail.com"}],"homepage":"https://banavasi.github.io/Bootcn-vue/","bugs":{"url":"https://github.com/banavasi/Bootcn-vue/issues"},"dist":{"shasum":"bd49d8e9ddf79b1978baefffc0b219ec7de03e85","tarball":"https://registry.npmjs.org/@bootcn-vue/core/-/core-0.2.2.tgz","fileCount":6,"integrity":"sha512-VEoxjMkyAjTt247U9ZUbEh9f6OslmeEcCuXj4PtYW8ajRA3/G8kmaz/GEmN99J4L9WMlb2HTW2s5N5GpKkAVYg==","signatures":[{"sig":"MEUCIFt9LoRWhEnpJsS88krVqyvch+ugl91PIa3K7tjLs2CdAiEAmDRcnz3zYCuFbhz/leQPmQ5YTgT7MOwAbNNwMNrIuns=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bootcn-vue%2fcore@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5468},"main":"./dist/index.js","type":"module","_from":"file:bootcn-vue-core-0.2.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./lib/*":{"types":"./src/lib/*.d.ts","import":"./src/lib/*.ts"}},"scripts":{"dev":"tsup --watch","lint":"eslint src --fix","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit"},"_npmUser":{"name":"banavasi","email":"shashank.v.shandilya@gmail.com"},"_resolved":"/tmp/e32ee5a4ade82765e9b3970ab28dd7ac/bootcn-vue-core-0.2.2.tgz","_integrity":"sha512-VEoxjMkyAjTt247U9ZUbEh9f6OslmeEcCuXj4PtYW8ajRA3/G8kmaz/GEmN99J4L9WMlb2HTW2s5N5GpKkAVYg==","repository":{"url":"git+https://github.com/banavasi/Bootcn-vue.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.4","description":"Core utilities and shared functions for bootcn-vue component library","directories":{},"_nodeVersion":"22.21.1","dependencies":{"clsx":"^2.1.1","tailwind-merge":"^3.2.0","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","typescript":"~5.8.0"},"peerDependencies":{"vue":"^3.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.2.2_1768070684141_0.6968196358654708","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@bootcn-vue/core","version":"0.4.0","description":"Core utilities and shared functions for bootcn-vue component library","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./lib/*":{"types":"./src/lib/*.d.ts","import":"./src/lib/*.ts"},"./styles/*":"./src/styles/*"},"dependencies":{"class-variance-authority":"^0.7.1","clsx":"^2.1.1","tailwind-merge":"^3.2.0"},"devDependencies":{"tsup":"^8.3.5","typescript":"~5.8.0"},"peerDependencies":{"vue":"^3.5.0"},"publishConfig":{"access":"public","provenance":true},"repository":{"type":"git","url":"git+https://github.com/banavasi/Bootcn-vue.git","directory":"packages/core"},"homepage":"https://banavasi.github.io/Bootcn-vue/","bugs":{"url":"https://github.com/banavasi/Bootcn-vue/issues"},"keywords":["vue","vue3","bootstrap","components","utilities"],"author":{"name":"Shashank Shandilya"},"license":"MIT","scripts":{"build":"tsup","dev":"tsup --watch","clean":"rm -rf dist","type-check":"tsc --noEmit","lint":"eslint src --fix"},"_id":"@bootcn-vue/core@0.4.0","_integrity":"sha512-nM5qNWfyTg/9wTuF4zJAjdDgK6oObDOHfApamkVGDN75ky45Ngce7KSsqWqCKwKBw4IdbxCODgEaIVLNXmimyA==","_resolved":"/tmp/db34e233dbc37cd7ea5a590b865f18bb/bootcn-vue-core-0.4.0.tgz","_from":"file:bootcn-vue-core-0.4.0.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-nM5qNWfyTg/9wTuF4zJAjdDgK6oObDOHfApamkVGDN75ky45Ngce7KSsqWqCKwKBw4IdbxCODgEaIVLNXmimyA==","shasum":"ff1bac6b5b71812b4893903ea1bc5f9907271a64","tarball":"https://registry.npmjs.org/@bootcn-vue/core/-/core-0.4.0.tgz","fileCount":9,"unpackedSize":20269,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bootcn-vue%2fcore@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDlIm9UJxQEiz3CSkl/emfqBvxD3UU+gZ1+oByE3KeiqAiEAoSl/bdc0tAbO1mhxT3pMnwDkmGyZB03hGKO0aGzMUdw="}]},"_npmUser":{"name":"banavasi","email":"shashank.v.shandilya@gmail.com"},"directories":{},"maintainers":[{"name":"banavasi","email":"shashank.v.shandilya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.4.0_1768262284535_0.6212350290394124"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-10T07:41:11.037Z","modified":"2026-01-12T23:58:05.065Z","0.0.1":"2026-01-10T07:41:11.312Z","0.2.2":"2026-01-10T18:44:44.334Z","0.4.0":"2026-01-12T23:58:04.677Z"},"bugs":{"url":"https://github.com/banavasi/Bootcn-vue/issues"},"author":{"name":"Shashank Shandilya"},"license":"MIT","homepage":"https://banavasi.github.io/Bootcn-vue/","keywords":["vue","vue3","bootstrap","components","utilities"],"repository":{"type":"git","url":"git+https://github.com/banavasi/Bootcn-vue.git","directory":"packages/core"},"description":"Core utilities and shared functions for bootcn-vue component library","maintainers":[{"name":"banavasi","email":"shashank.v.shandilya@gmail.com"}],"readme":"# @bootcn-vue/core\n\nCore utilities and shared functions for the bootcn-vue component library.\n\n[![npm version](https://badge.fury.io/js/@bootcn-vue%2Fcore.svg)](https://www.npmjs.com/package/@bootcn-vue/core)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## 📚 Documentation\n\n**[View Components & Examples](https://banavasi.github.io/Bootcn-vue/)** - Interactive Storybook\n\n## Installation\n\n```bash\n# Using npm\nnpm install @bootcn-vue/core\n\n# Using pnpm\npnpm add @bootcn-vue/core\n\n# Using yarn\nyarn add @bootcn-vue/core\n```\n\n## What's Included\n\nThis package provides core utilities used by all bootcn-vue components:\n\n### `cn()` - Class Name Utility\n\nA utility function for merging Tailwind CSS classes with Bootstrap classes. Built on top of `clsx` and `tailwind-merge`.\n\n```typescript\nimport { cn } from \"@bootcn-vue/core\";\n\n// Merge classes\ncn(\"btn\", \"btn-primary\", className);\n\n// Conditional classes\ncn(\"btn\", {\n  \"btn-primary\": isPrimary,\n  \"btn-secondary\": !isPrimary,\n});\n\n// Override with tailwind-merge intelligence\ncn(\"p-4\", \"p-2\"); // → 'p-2' (conflicting classes merged intelligently)\n```\n\n### `cva` - Class Variance Authority\n\nRe-exports `cva` and types from `class-variance-authority` for creating variant-based component styles.\n\n```typescript\nimport { cva, type VariantProps } from \"@bootcn-vue/core\";\n\nconst buttonVariants = cva(\"btn\", {\n  variants: {\n    variant: {\n      primary: \"btn-primary\",\n      secondary: \"btn-secondary\",\n    },\n    size: {\n      sm: \"btn-sm\",\n      lg: \"btn-lg\",\n    },\n  },\n  defaultVariants: {\n    variant: \"primary\",\n    size: \"md\",\n  },\n});\n\ntype ButtonVariants = VariantProps<typeof buttonVariants>;\n```\n\n## Usage with CLI\n\nThis package is automatically installed when you run:\n\n```bash\nnpx @bootcn-vue/cli init\n```\n\nThe CLI will create a local `src/lib/utils.ts` file with the `cn()` function for you to use and customize.\n\n## Direct Usage\n\nYou can also use this package directly in your Vue 3 project:\n\n```vue\n<script setup lang=\"ts\">\nimport { cn } from \"@bootcn-vue/core\";\n\ninterface Props {\n  class?: string;\n}\n\nconst props = defineProps<Props>();\n</script>\n\n<template>\n  <div :class=\"cn('container', 'p-4', props.class)\">\n    <slot />\n  </div>\n</template>\n```\n\n## Dependencies\n\n- `class-variance-authority` - Type-safe variant styling\n- `clsx` - Conditional class names\n- `tailwind-merge` - Intelligent class merging\n\n## Peer Dependencies\n\n- `vue` ^3.5.0\n\n## Links\n\n- **[GitHub Repository](https://github.com/banavasi/Bootcn-vue)**\n- **[Documentation](https://banavasi.github.io/Bootcn-vue/)**\n- **[Report Issues](https://github.com/banavasi/Bootcn-vue/issues)**\n\n## Related Packages\n\n- [@bootcn-vue/cli](https://www.npmjs.com/package/@bootcn-vue/cli) - CLI for adding components\n- [@bootcn-vue/buttons](https://www.npmjs.com/package/@bootcn-vue/buttons) - Button components\n- [@bootcn-vue/forms](https://www.npmjs.com/package/@bootcn-vue/forms) - Form components\n\n## License\n\nMIT © [Shashank Shandilya](https://github.com/banavasi)\n","readmeFilename":"README.md"}