ennabl-ui-kit-beta
v0.3.1
Published
A React component library with reusable UI components for document management and insurance applications
Maintainers
Readme
Ennabl UI Kit Beta
🚨 MANDATORY: Please read our UI Kit Best Practices & Rules before using or contributing! 🚨
All UI must use the
ennabl-ui-kit-betapackage for components, tokens, colors, fonts, and spacing.
No custom styles or unrelated UI libraries allowed.
See full guidelines in the link above.
📖 Documentation: When installed via npm, see the documentation files in your node_modules/ennabl-ui-kit-beta/ directory:
BEST_PRACTICES.md- Comprehensive guidelinesQUICK_REFERENCE.md- Developer quick referenceRELEASE_WORKFLOW.md- Release process documentation
A React component library with reusable UI components for document management and insurance applications.
🚀 Quick Start
npm install ennabl-ui-kit-betaimport { Header, Footer, Section, AnchorNavBar } from 'ennabl-ui-kit-beta';
function App() {
return (
<div>
<Header title="My Application" />
<Section title="Main Content">
<p>Your content here</p>
</Section>
<Footer />
</div>
);
}📦 Available Components
Core Components
Header- Main application header with navigationFooter- Application footerSection- Content sections with titles and badgesAnchorNavBar- Navigation bar with anchor links
Toolbars
SelectionToolbar- Generic selection toolbarPackageSelectionToolbar- Package-specific toolbarDocumentSelectionToolbar- Document-specific toolbar
Data Display
MetricItem- Metric display componentProductsTable- Products data tableClientsTable- Clients data table
Header Components
Breadcrumb- Navigation breadcrumbsPageTitle- Page title componentTopSearch- Search functionalityTopAI- AI assistant integrationDropdown- Dropdown menusOverviewSection- Overview metrics section
Layout Headers
DashboardHeader- Dashboard layout headerDetailHeader- Detail page headerRootHeader- Root application header
🛠️ Development
Prerequisites
- Node.js 18+
- npm or yarn
Setup
cd lib
npm installDevelopment Commands
# Start development build with watch mode
npm run dev
# Build for production
npm run build
# Type checking
npm run type-check
# Lint code
npm run lint
# Track component changes
npm run track-components
# Check component status
npm run check-status🚀 Release Process
Automated Release (Recommended)
Run release checklist:
npm run release-checklistBump version:
npm version patch # or minor/majorPush to GitHub:
git push origin main --tagsGitHub Actions will automatically:
- Run all checks
- Build the package
- Publish to npm
- Create a GitHub release
Manual Release
Pre-release checks:
npm run pre-release npm run verify-exportsBuild and test:
npm run build npm run dry-runPublish:
npm publish --access publicPush changes:
git push origin main --tags
📋 Release Checklist
The automated release process includes:
- ✅ Git status check
- ✅ Pull latest changes
- ✅ Component tracking
- ✅ TypeScript type checking
- ✅ Build verification
- ✅ Export verification
- ✅ Package testing
- ✅ npm publishing
- ✅ GitHub release creation
🔧 Configuration
NPM Token Setup
For automated releases, add your npm token to GitHub Secrets:
- Go to your GitHub repository settings
- Navigate to Secrets and variables → Actions
- Add
NPM_TOKENwith your npm access token
Package Configuration
The package is configured with:
- Main entry:
dist/index.js(CommonJS) - Module entry:
dist/index.esm.js(ESM) - Types:
dist/index.d.ts(TypeScript definitions) - Files:
dist/andREADME.md
📊 Component Tracking
The library includes automated component tracking:
# Track all components
npm run track-components
# Check component status
npm run check-status
# View recent activity
npm run check-recent
# View new components
npm run check-new🎨 Styling
Components use Tailwind CSS with custom design tokens. Styles are automatically included in the build.
📝 TypeScript
Full TypeScript support with generated .d.ts files for all components.
🤝 Contributing
- Create a feature branch
- Add your components to the
components/directory - Update exports in
components/index.ts - Run
npm run track-componentsto update metadata - Test with
npm run verify-exports - Submit a pull request
Remember: All contributions must follow the Best Practices!
📄 License
MIT License - see LICENSE file for details.
