@tap-payments/os-micro-frontend-shared
v0.1.488
Published
Shared components and utilities for Tap Payments micro frontends
Maintainers
Keywords
Readme
os-micro-frontend-shared
Shared React component library for Tap Payments micro frontends
What is this?
A comprehensive React component library providing:
- 100+ UI components (buttons, tables, dialogs, forms, filters)
- 18 custom hooks (toast, window dimensions, theme mode)
- 47 utility modules (date/currency formatting, validation)
- Full TypeScript support with type definitions
- MUI-based theming with dark/light modes and RTL/LTR support
- High-performance virtual tables for large datasets
Quick Start
npm install @tap-payments/os-micro-frontend-shared
# or
yarn add @tap-payments/os-micro-frontend-sharedimport { Button, VirtualTable, useToast } from '@tap-payments/os-micro-frontend-shared'
function MyApp() {
const toast = useToast()
return (
<Button
variant="confirm"
onClick={() => toast.success('Hello!')}
>
Click me
</Button>
)
}Documentation
| Document | Description | Read Time | |----------|-------------|-----------| | Quick Reference | Cheat sheet, snippets, common tasks | 5 min | | Overview | Architecture, patterns, design decisions | 15 min | | Setup & Stack | Installation, development, workflows | 10 min | | Component Guide | All components categorized with examples | Reference |
For AI Agents: Start with quick_reference.md for instant context.
For Developers: Read in order: quick_reference → overview → setup_and_stack.
Key Features
- ✅ ESM-only - Modern module system with tree-shaking
- ✅ Peer dependencies - Avoid version conflicts
- ✅ Full TypeScript - Complete type safety
- ✅ 100+ Components - Comprehensive UI library
- ✅ Virtual tables - High-performance lists
- ✅ React Hook Form - Integrated form components
- ✅ Theming - Dark/light modes, RTL/LTR
- ✅ Memoized - Optimized for performance
Development
# Install dependencies
yarn install
# Start dev server
yarn dev
# Build library
yarn ts:build
# Test locally in another project
yarn push:local # requires yalcSee Setup & Stack Guide for detailed instructions.
Publishing
Automated (Recommended)
Merging a PR to main automatically:
- Bumps patch version
- Commits version change
- Builds library
- Publishes to npm
Manual
# Test version (with -test tag)
yarn push:test
# Production
yarn pushSee Publishing Documentation for details.
Contributing
- Create feature branch
- Make changes in
src/ - Run
yarn lint:fixandyarn prettier:fix - Commit (pre-commit hooks will run)
- Push and create PR to
main
See Development Workflows for detailed guide.
Project Structure
src/
├── components/ # 100+ React components
├── hooks/ # 18 custom React hooks
├── utils/ # 47 utility modules
├── types/ # TypeScript type definitions
├── constants/ # App constants and configs
└── theme/ # MUI theme configurationSee Folder Structure for details.
Tech Stack
- React 18 + TypeScript 5
- MUI (Material-UI) 5 + Emotion
- React Hook Form + Yup
- Vite 6 (build + dev)
- ESLint + Prettier
See Tech Stack Details for complete list.
License
MIT © Tap Payments
Links
Support
For issues, questions, or contributions, please refer to the documentation or create an issue.
