easy-invoice-pdf/package.json
Vlad Sazonau 60cdb7d344
feat: Show/hide columns on pdf, add og image, tooltips + other improvements (#36)
* feat: enhance invoice form with new UI components and visibility controls

- Added Radix UI Switch and Tooltip components for improved interactivity
- Introduced field visibility toggles for invoice items
- Added input helper messages for better user guidance
- Updated schema to support new field visibility options
- Refined styling and responsiveness of form elements
- Improved tooltips and helper text across the invoice form

* feat: add comprehensive invoice field visibility controls and date formatting options

- Introduced granular field visibility switches for invoice items and sections
- Added support for multiple date format options
- Enhanced invoice form with dynamic field visibility toggles
- Updated PDF template to conditionally render fields based on visibility settings
- Improved date handling and formatting across invoice generation
- Added validation and helper messages for date-related fields
- Expanded schema to support more flexible invoice configuration

* refactor: update invoice PDF template column styles

- Replaced commented-out column width styles with flex-based layout
- Adjusted column width proportions for better table readability
- Simplified column width definition using flex properties

* chore: upd deps + minor fixes

* fix: improve net price validation error message

* refactor: improve invoice form field rendering and localization

- Reordered error and helper message rendering for better UX
- Added currency context to labels for clarity
- Updated input step and type attributes for improved validation
- Localized numeric inputs with toLocaleString for consistent formatting
- Made unit field optional in invoice item schema

* refactor: improve invoice PDF download and regeneration UX

- Replaced PDFDownloadLink with usePDF hook for better loading state management
- Added loading states and animations for PDF download and regeneration buttons
- Created a new RegenerateInvoiceButton component with improved error handling
- Simplified dynamic imports and component structure
- Enhanced user feedback during PDF generation process

* refactor: optimize imports and remove unused components in invoice page

* refactor: extract loading timeout constant for consistent UX
2025-02-10 22:25:47 +01:00

53 lines
1.4 KiB
JSON

{
"name": "pdf-invoice-generator",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"type-check": "tsc --noEmit",
"prettify": "prettier --write --cache '**/*.{ts?(x),json,js,mjs,yml,yaml,md}'",
"update-deps": "pnpm upgrade --interactive --latest",
"dedupe": "pnpm dedupe"
},
"dependencies": {
"@hookform/resolvers": "3.9.0",
"@loglib/tracker": "0.8.0",
"@radix-ui/react-label": "2.1.2",
"@radix-ui/react-slot": "1.1.2",
"@radix-ui/react-switch": "1.1.3",
"@radix-ui/react-tooltip": "1.1.8",
"@react-pdf/layout": "4.2.2",
"@react-pdf/renderer": "4.2.1",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"dayjs": "1.11.13",
"lucide-react": "0.475.0",
"lz-string": "1.5.0",
"n2words": "1.21.0",
"next": "14.2.15",
"nuqs": "2.1.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "7.53.1",
"sonner": "1.7.4",
"tailwind-merge": "2.6.0",
"tailwindcss-animate": "1.0.7",
"use-debounce": "10.0.4",
"zod": "3.24.1"
},
"devDependencies": {
"@types/node": "22.8.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"eslint": "^8",
"eslint-config-next": "14.2.15",
"postcss": "^8",
"prettier": "3.4.2",
"prettier-plugin-tailwindcss": "0.6.9",
"tailwindcss": "3.4.14",
"typescript": "5.7.3"
}
}