@hub-kit/core 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -0
- package/cli/hub-kit.mjs +112 -0
- package/dist/adapters/bank-reconciliation.d.ts +100 -0
- package/dist/adapters/bank-reconciliation.js +1 -0
- package/dist/adapters/bank-sync-log.d.ts +46 -0
- package/dist/adapters/bank-sync-log.js +1 -0
- package/dist/adapters/category-rules.d.ts +94 -0
- package/dist/adapters/category-rules.js +1 -0
- package/dist/adapters/companies.d.ts +85 -0
- package/dist/adapters/companies.js +3 -0
- package/dist/adapters/customers.d.ts +71 -0
- package/dist/adapters/customers.js +1 -0
- package/dist/adapters/exclusion-rules.d.ts +34 -0
- package/dist/adapters/exclusion-rules.js +15 -0
- package/dist/adapters/file-naming.d.ts +36 -0
- package/dist/adapters/file-naming.js +1 -0
- package/dist/adapters/index.d.ts +24 -0
- package/dist/adapters/index.js +1 -0
- package/dist/adapters/invoice-detail.d.ts +126 -0
- package/dist/adapters/invoice-detail.js +1 -0
- package/dist/adapters/invoice-list.d.ts +63 -0
- package/dist/adapters/invoice-list.js +1 -0
- package/dist/adapters/invoice-upload.d.ts +26 -0
- package/dist/adapters/invoice-upload.js +1 -0
- package/dist/adapters/manual-bookings.d.ts +56 -0
- package/dist/adapters/manual-bookings.js +1 -0
- package/dist/adapters/notifications.d.ts +31 -0
- package/dist/adapters/notifications.js +1 -0
- package/dist/adapters/open-items.d.ts +42 -0
- package/dist/adapters/open-items.js +1 -0
- package/dist/adapters/opos-whitelist.d.ts +38 -0
- package/dist/adapters/opos-whitelist.js +1 -0
- package/dist/adapters/outgoing-invoices.d.ts +32 -0
- package/dist/adapters/outgoing-invoices.js +1 -0
- package/dist/adapters/overview.d.ts +68 -0
- package/dist/adapters/overview.js +1 -0
- package/dist/adapters/processing-log.d.ts +48 -0
- package/dist/adapters/processing-log.js +1 -0
- package/dist/adapters/properties.d.ts +87 -0
- package/dist/adapters/properties.js +1 -0
- package/dist/adapters/supplier-detail.d.ts +64 -0
- package/dist/adapters/supplier-detail.js +1 -0
- package/dist/adapters/supplier-list.d.ts +21 -0
- package/dist/adapters/supplier-list.js +1 -0
- package/dist/adapters/team.d.ts +79 -0
- package/dist/adapters/team.js +1 -0
- package/dist/adapters/trash.d.ts +26 -0
- package/dist/adapters/trash.js +1 -0
- package/dist/adapters/vat-rules.d.ts +83 -0
- package/dist/adapters/vat-rules.js +1 -0
- package/dist/components/access/index.d.ts +3 -0
- package/dist/components/access/index.js +3 -0
- package/dist/components/access/permission-checklist.d.ts +13 -0
- package/dist/components/access/permission-checklist.js +19 -0
- package/dist/components/access/permission-matrix.d.ts +12 -0
- package/dist/components/access/permission-matrix.js +18 -0
- package/dist/components/access/types.d.ts +15 -0
- package/dist/components/access/types.js +1 -0
- package/dist/components/dashboard/date-range-calendar.d.ts +19 -0
- package/dist/components/dashboard/date-range-calendar.js +97 -0
- package/dist/components/dashboard/index.d.ts +23 -0
- package/dist/components/dashboard/index.js +14 -0
- package/dist/components/dashboard/kpi-card.d.ts +13 -0
- package/dist/components/dashboard/kpi-card.js +7 -0
- package/dist/components/dashboard/money-cards-row.d.ts +29 -0
- package/dist/components/dashboard/money-cards-row.js +28 -0
- package/dist/components/dashboard/money-trend-chart.d.ts +13 -0
- package/dist/components/dashboard/money-trend-chart.js +16 -0
- package/dist/components/dashboard/panel.d.ts +9 -0
- package/dist/components/dashboard/panel.js +5 -0
- package/dist/components/dashboard/period-picker.d.ts +25 -0
- package/dist/components/dashboard/period-picker.js +82 -0
- package/dist/components/dashboard/periods.d.ts +13 -0
- package/dist/components/dashboard/periods.js +63 -0
- package/dist/components/dashboard/pipeline-stages-panel.d.ts +14 -0
- package/dist/components/dashboard/pipeline-stages-panel.js +12 -0
- package/dist/components/dashboard/processing-summary-panel.d.ts +34 -0
- package/dist/components/dashboard/processing-summary-panel.js +11 -0
- package/dist/components/dashboard/ranked-bars.d.ts +15 -0
- package/dist/components/dashboard/ranked-bars.js +16 -0
- package/dist/components/dashboard/ranked-list-panel.d.ts +14 -0
- package/dist/components/dashboard/ranked-list-panel.js +9 -0
- package/dist/components/dashboard/stage-tiles.d.ts +15 -0
- package/dist/components/dashboard/stage-tiles.js +6 -0
- package/dist/components/dashboard/stat-rows-panel.d.ts +25 -0
- package/dist/components/dashboard/stat-rows-panel.js +7 -0
- package/dist/components/dashboard/stat-tile.d.ts +20 -0
- package/dist/components/dashboard/stat-tile.js +9 -0
- package/dist/components/feedback/index.d.ts +4 -0
- package/dist/components/feedback/index.js +2 -0
- package/dist/components/feedback/query-states.d.ts +27 -0
- package/dist/components/feedback/query-states.js +38 -0
- package/dist/components/feedback/table-pagination.d.ts +20 -0
- package/dist/components/feedback/table-pagination.js +15 -0
- package/dist/components/invoice-queue/index.d.ts +5 -0
- package/dist/components/invoice-queue/index.js +3 -0
- package/dist/components/invoice-queue/next-action-cell.d.ts +5 -0
- package/dist/components/invoice-queue/next-action-cell.js +9 -0
- package/dist/components/invoice-queue/queue-kpi-card.d.ts +19 -0
- package/dist/components/invoice-queue/queue-kpi-card.js +31 -0
- package/dist/components/invoice-queue/queue-kpi-row.d.ts +22 -0
- package/dist/components/invoice-queue/queue-kpi-row.js +12 -0
- package/dist/components/notifications/alerts.d.ts +25 -0
- package/dist/components/notifications/alerts.js +66 -0
- package/dist/components/notifications/bell.d.ts +14 -0
- package/dist/components/notifications/bell.js +17 -0
- package/dist/components/notifications/highlight.d.ts +4 -0
- package/dist/components/notifications/highlight.js +7 -0
- package/dist/components/notifications/index.d.ts +7 -0
- package/dist/components/notifications/index.js +6 -0
- package/dist/components/notifications/reminder-dialog.d.ts +24 -0
- package/dist/components/notifications/reminder-dialog.js +54 -0
- package/dist/components/notifications/types.d.ts +27 -0
- package/dist/components/notifications/types.js +1 -0
- package/dist/components/notifications/use-notification-acks.d.ts +7 -0
- package/dist/components/notifications/use-notification-acks.js +37 -0
- package/dist/components/shell/breadcrumbs.d.ts +7 -0
- package/dist/components/shell/breadcrumbs.js +38 -0
- package/dist/components/shell/index.d.ts +3 -0
- package/dist/components/shell/index.js +3 -0
- package/dist/components/shell/shell.d.ts +30 -0
- package/dist/components/shell/shell.js +110 -0
- package/dist/components/shell/types.d.ts +23 -0
- package/dist/components/shell/types.js +3 -0
- package/dist/components/tour/find-target.d.ts +1 -0
- package/dist/components/tour/find-target.js +3 -0
- package/dist/components/tour/index.d.ts +14 -0
- package/dist/components/tour/index.js +8 -0
- package/dist/components/tour/labels.d.ts +10 -0
- package/dist/components/tour/labels.js +9 -0
- package/dist/components/tour/seen-store.d.ts +3 -0
- package/dist/components/tour/seen-store.js +34 -0
- package/dist/components/tour/tour-blocks.d.ts +4 -0
- package/dist/components/tour/tour-blocks.js +27 -0
- package/dist/components/tour/tour-button.d.ts +4 -0
- package/dist/components/tour/tour-button.js +12 -0
- package/dist/components/tour/tour-card.d.ts +11 -0
- package/dist/components/tour/tour-card.js +7 -0
- package/dist/components/tour/tour-context.d.ts +16 -0
- package/dist/components/tour/tour-context.js +2 -0
- package/dist/components/tour/tour-overlay.d.ts +1 -0
- package/dist/components/tour/tour-overlay.js +165 -0
- package/dist/components/tour/tour-provider.d.ts +9 -0
- package/dist/components/tour/tour-provider.js +80 -0
- package/dist/components/tour/types.d.ts +44 -0
- package/dist/components/tour/types.js +1 -0
- package/dist/components/tour/use-tour.d.ts +3 -0
- package/dist/components/tour/use-tour.js +9 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/i18n/index.d.ts +15 -0
- package/dist/i18n/index.js +15 -0
- package/dist/lib/bank-import/classify.d.ts +8 -0
- package/dist/lib/bank-import/classify.js +89 -0
- package/dist/lib/bank-import/column-guess.d.ts +2 -0
- package/dist/lib/bank-import/column-guess.js +40 -0
- package/dist/lib/bank-import/csv.d.ts +3 -0
- package/dist/lib/bank-import/csv.js +20 -0
- package/dist/lib/bank-import/duplicates.d.ts +2 -0
- package/dist/lib/bank-import/duplicates.js +21 -0
- package/dist/lib/bank-import/index.d.ts +12 -0
- package/dist/lib/bank-import/index.js +9 -0
- package/dist/lib/bank-import/mapping-storage.d.ts +3 -0
- package/dist/lib/bank-import/mapping-storage.js +29 -0
- package/dist/lib/bank-import/normalize.d.ts +4 -0
- package/dist/lib/bank-import/normalize.js +82 -0
- package/dist/lib/bank-import/parse-file.d.ts +7 -0
- package/dist/lib/bank-import/parse-file.js +23 -0
- package/dist/lib/bank-import/types.d.ts +31 -0
- package/dist/lib/bank-import/types.js +1 -0
- package/dist/lib/bank-import/xlsx.d.ts +2 -0
- package/dist/lib/bank-import/xlsx.js +25 -0
- package/dist/lib/class-names.d.ts +2 -0
- package/dist/lib/class-names.js +5 -0
- package/dist/lib/download.d.ts +2 -0
- package/dist/lib/download.js +14 -0
- package/dist/lib/formatters.d.ts +6 -0
- package/dist/lib/formatters.js +24 -0
- package/dist/lib/index.d.ts +9 -0
- package/dist/lib/index.js +6 -0
- package/dist/lib/opos-whitelist/index.d.ts +2 -0
- package/dist/lib/opos-whitelist/index.js +1 -0
- package/dist/lib/opos-whitelist/opos.d.ts +14 -0
- package/dist/lib/opos-whitelist/opos.js +49 -0
- package/dist/lib/query-result.d.ts +12 -0
- package/dist/lib/query-result.js +1 -0
- package/dist/lib/tour-placeholders/index.d.ts +2 -0
- package/dist/lib/tour-placeholders/index.js +1 -0
- package/dist/lib/tour-placeholders/overview.d.ts +12 -0
- package/dist/lib/tour-placeholders/overview.js +139 -0
- package/dist/pages/bank-accounts/BankAccountsPage.d.ts +7 -0
- package/dist/pages/bank-accounts/BankAccountsPage.js +21 -0
- package/dist/pages/bank-accounts/index.d.ts +4 -0
- package/dist/pages/bank-accounts/index.js +2 -0
- package/dist/pages/bank-accounts/labels.d.ts +15 -0
- package/dist/pages/bank-accounts/labels.js +14 -0
- package/dist/pages/bank-import/BankImportWizard.d.ts +9 -0
- package/dist/pages/bank-import/BankImportWizard.js +158 -0
- package/dist/pages/bank-import/index.d.ts +4 -0
- package/dist/pages/bank-import/index.js +2 -0
- package/dist/pages/bank-import/labels.d.ts +44 -0
- package/dist/pages/bank-import/labels.js +43 -0
- package/dist/pages/bank-sync-log/BankSyncLogPage.d.ts +7 -0
- package/dist/pages/bank-sync-log/BankSyncLogPage.js +77 -0
- package/dist/pages/bank-sync-log/index.d.ts +4 -0
- package/dist/pages/bank-sync-log/index.js +2 -0
- package/dist/pages/bank-sync-log/labels.d.ts +21 -0
- package/dist/pages/bank-sync-log/labels.js +20 -0
- package/dist/pages/bank-transactions/BankMatchPanel.d.ts +8 -0
- package/dist/pages/bank-transactions/BankMatchPanel.js +75 -0
- package/dist/pages/bank-transactions/BankTransactionsPage.d.ts +7 -0
- package/dist/pages/bank-transactions/BankTransactionsPage.js +59 -0
- package/dist/pages/bank-transactions/badges.d.ts +8 -0
- package/dist/pages/bank-transactions/badges.js +24 -0
- package/dist/pages/bank-transactions/index.d.ts +6 -0
- package/dist/pages/bank-transactions/index.js +4 -0
- package/dist/pages/bank-transactions/labels.d.ts +41 -0
- package/dist/pages/bank-transactions/labels.js +40 -0
- package/dist/pages/bank-transactions/sort-control.d.ts +17 -0
- package/dist/pages/bank-transactions/sort-control.js +8 -0
- package/dist/pages/bank-transactions/use-table-view.d.ts +23 -0
- package/dist/pages/bank-transactions/use-table-view.js +54 -0
- package/dist/pages/category-rules/CategoryRulesPage.d.ts +7 -0
- package/dist/pages/category-rules/CategoryRulesPage.js +160 -0
- package/dist/pages/category-rules/index.d.ts +4 -0
- package/dist/pages/category-rules/index.js +2 -0
- package/dist/pages/category-rules/labels.d.ts +66 -0
- package/dist/pages/category-rules/labels.js +72 -0
- package/dist/pages/companies/company-detail-page.d.ts +10 -0
- package/dist/pages/companies/company-detail-page.js +184 -0
- package/dist/pages/companies/company-form.d.ts +20 -0
- package/dist/pages/companies/company-form.js +23 -0
- package/dist/pages/companies/company-list-page.d.ts +9 -0
- package/dist/pages/companies/company-list-page.js +109 -0
- package/dist/pages/companies/known-spellings-card.d.ts +8 -0
- package/dist/pages/companies/known-spellings-card.js +65 -0
- package/dist/pages/companies/labels.d.ts +105 -0
- package/dist/pages/companies/labels.js +104 -0
- package/dist/pages/companies/sort-control.d.ts +17 -0
- package/dist/pages/companies/sort-control.js +8 -0
- package/dist/pages/companies/use-infinite-rows.d.ts +6 -0
- package/dist/pages/companies/use-infinite-rows.js +24 -0
- package/dist/pages/companies/use-table-view.d.ts +23 -0
- package/dist/pages/companies/use-table-view.js +56 -0
- package/dist/pages/customers/company-chip.d.ts +6 -0
- package/dist/pages/customers/company-chip.js +9 -0
- package/dist/pages/customers/copy-button.d.ts +6 -0
- package/dist/pages/customers/copy-button.js +31 -0
- package/dist/pages/customers/customer-detail-page.d.ts +10 -0
- package/dist/pages/customers/customer-detail-page.js +83 -0
- package/dist/pages/customers/customer-list-page.d.ts +9 -0
- package/dist/pages/customers/customer-list-page.js +65 -0
- package/dist/pages/customers/edit-customer-dialog.d.ts +9 -0
- package/dist/pages/customers/edit-customer-dialog.js +72 -0
- package/dist/pages/customers/form-hints.d.ts +6 -0
- package/dist/pages/customers/form-hints.js +9 -0
- package/dist/pages/customers/invoice-status-badge.d.ts +10 -0
- package/dist/pages/customers/invoice-status-badge.js +22 -0
- package/dist/pages/customers/labels.d.ts +116 -0
- package/dist/pages/customers/labels.js +117 -0
- package/dist/pages/customers/new-customer-dialog.d.ts +6 -0
- package/dist/pages/customers/new-customer-dialog.js +93 -0
- package/dist/pages/customers/sort-control.d.ts +14 -0
- package/dist/pages/customers/sort-control.js +9 -0
- package/dist/pages/customers/use-table-view.d.ts +23 -0
- package/dist/pages/customers/use-table-view.js +56 -0
- package/dist/pages/exclusion-rules/exclusion-rules-page.d.ts +7 -0
- package/dist/pages/exclusion-rules/exclusion-rules-page.js +114 -0
- package/dist/pages/exclusion-rules/labels.d.ts +53 -0
- package/dist/pages/exclusion-rules/labels.js +61 -0
- package/dist/pages/file-naming/build-filename.d.ts +3 -0
- package/dist/pages/file-naming/build-filename.js +82 -0
- package/dist/pages/file-naming/file-naming-page.d.ts +10 -0
- package/dist/pages/file-naming/file-naming-page.js +120 -0
- package/dist/pages/file-naming/labels.d.ts +44 -0
- package/dist/pages/file-naming/labels.js +44 -0
- package/dist/pages/index.d.ts +63 -0
- package/dist/pages/index.js +48 -0
- package/dist/pages/invoice-detail/InvoiceDetailPage.d.ts +11 -0
- package/dist/pages/invoice-detail/InvoiceDetailPage.js +292 -0
- package/dist/pages/invoice-detail/OutgoingInvoiceFlag.d.ts +26 -0
- package/dist/pages/invoice-detail/OutgoingInvoiceFlag.js +16 -0
- package/dist/pages/invoice-detail/ReviewBadge.d.ts +15 -0
- package/dist/pages/invoice-detail/ReviewBadge.js +23 -0
- package/dist/pages/invoice-detail/ReviewCard.d.ts +17 -0
- package/dist/pages/invoice-detail/ReviewCard.js +12 -0
- package/dist/pages/invoice-detail/SideBySide.d.ts +5 -0
- package/dist/pages/invoice-detail/SideBySide.js +5 -0
- package/dist/pages/invoice-detail/WorkflowHistoryList.d.ts +23 -0
- package/dist/pages/invoice-detail/WorkflowHistoryList.js +32 -0
- package/dist/pages/invoice-detail/WorkflowLadder.d.ts +20 -0
- package/dist/pages/invoice-detail/WorkflowLadder.js +16 -0
- package/dist/pages/invoice-detail/history.d.ts +23 -0
- package/dist/pages/invoice-detail/history.js +76 -0
- package/dist/pages/invoice-detail/index.d.ts +21 -0
- package/dist/pages/invoice-detail/index.js +11 -0
- package/dist/pages/invoice-detail/labels.d.ts +79 -0
- package/dist/pages/invoice-detail/labels.js +139 -0
- package/dist/pages/invoice-detail/pipeline-types.d.ts +58 -0
- package/dist/pages/invoice-detail/pipeline-types.js +1 -0
- package/dist/pages/invoice-detail/review-recheck.d.ts +8 -0
- package/dist/pages/invoice-detail/review-recheck.js +103 -0
- package/dist/pages/invoice-detail/review.d.ts +91 -0
- package/dist/pages/invoice-detail/review.js +310 -0
- package/dist/pages/invoice-list/badges.d.ts +23 -0
- package/dist/pages/invoice-list/badges.js +26 -0
- package/dist/pages/invoice-list/index.d.ts +5 -0
- package/dist/pages/invoice-list/index.js +3 -0
- package/dist/pages/invoice-list/invoice-list-page.d.ts +13 -0
- package/dist/pages/invoice-list/invoice-list-page.js +114 -0
- package/dist/pages/invoice-list/labels.d.ts +36 -0
- package/dist/pages/invoice-list/labels.js +29 -0
- package/dist/pages/invoice-list/sort-control.d.ts +17 -0
- package/dist/pages/invoice-list/sort-control.js +8 -0
- package/dist/pages/invoice-list/use-table-view.d.ts +23 -0
- package/dist/pages/invoice-list/use-table-view.js +54 -0
- package/dist/pages/invoice-upload/InvoiceUploadPage.d.ts +7 -0
- package/dist/pages/invoice-upload/InvoiceUploadPage.js +115 -0
- package/dist/pages/invoice-upload/index.d.ts +4 -0
- package/dist/pages/invoice-upload/index.js +2 -0
- package/dist/pages/invoice-upload/labels.d.ts +29 -0
- package/dist/pages/invoice-upload/labels.js +28 -0
- package/dist/pages/manual-bookings/ManualBookingsPage.d.ts +7 -0
- package/dist/pages/manual-bookings/ManualBookingsPage.js +161 -0
- package/dist/pages/manual-bookings/index.d.ts +4 -0
- package/dist/pages/manual-bookings/index.js +2 -0
- package/dist/pages/manual-bookings/labels.d.ts +53 -0
- package/dist/pages/manual-bookings/labels.js +52 -0
- package/dist/pages/notifications/labels.d.ts +22 -0
- package/dist/pages/notifications/labels.js +21 -0
- package/dist/pages/notifications/notifications-page.d.ts +14 -0
- package/dist/pages/notifications/notifications-page.js +81 -0
- package/dist/pages/open-items/OpenItemsPage.d.ts +11 -0
- package/dist/pages/open-items/OpenItemsPage.js +110 -0
- package/dist/pages/open-items/index.d.ts +6 -0
- package/dist/pages/open-items/index.js +3 -0
- package/dist/pages/open-items/labels.d.ts +37 -0
- package/dist/pages/open-items/labels.js +36 -0
- package/dist/pages/open-items/urgency.d.ts +8 -0
- package/dist/pages/open-items/urgency.js +27 -0
- package/dist/pages/opos-whitelist/OposWhitelistPage.d.ts +7 -0
- package/dist/pages/opos-whitelist/OposWhitelistPage.js +165 -0
- package/dist/pages/opos-whitelist/index.d.ts +4 -0
- package/dist/pages/opos-whitelist/index.js +2 -0
- package/dist/pages/opos-whitelist/labels.d.ts +56 -0
- package/dist/pages/opos-whitelist/labels.js +70 -0
- package/dist/pages/outgoing-invoices/OutgoingInvoicesPage.d.ts +7 -0
- package/dist/pages/outgoing-invoices/OutgoingInvoicesPage.js +169 -0
- package/dist/pages/outgoing-invoices/index.d.ts +4 -0
- package/dist/pages/outgoing-invoices/index.js +2 -0
- package/dist/pages/outgoing-invoices/labels.d.ts +43 -0
- package/dist/pages/outgoing-invoices/labels.js +42 -0
- package/dist/pages/outgoing-invoices/sort-control.d.ts +17 -0
- package/dist/pages/outgoing-invoices/sort-control.js +8 -0
- package/dist/pages/outgoing-invoices/use-table-view.d.ts +23 -0
- package/dist/pages/outgoing-invoices/use-table-view.js +54 -0
- package/dist/pages/overview/labels.d.ts +35 -0
- package/dist/pages/overview/labels.js +34 -0
- package/dist/pages/overview/overview-page.d.ts +22 -0
- package/dist/pages/overview/overview-page.js +127 -0
- package/dist/pages/processing-log/labels.d.ts +54 -0
- package/dist/pages/processing-log/labels.js +53 -0
- package/dist/pages/processing-log/mail-parsing.d.ts +21 -0
- package/dist/pages/processing-log/mail-parsing.js +52 -0
- package/dist/pages/processing-log/processing-log-page.d.ts +9 -0
- package/dist/pages/processing-log/processing-log-page.js +206 -0
- package/dist/pages/properties/badges.d.ts +20 -0
- package/dist/pages/properties/badges.js +45 -0
- package/dist/pages/properties/company-assignment-field.d.ts +11 -0
- package/dist/pages/properties/company-assignment-field.js +13 -0
- package/dist/pages/properties/form-field.d.ts +6 -0
- package/dist/pages/properties/form-field.js +9 -0
- package/dist/pages/properties/labels.d.ts +124 -0
- package/dist/pages/properties/labels.js +128 -0
- package/dist/pages/properties/name-variants-card.d.ts +7 -0
- package/dist/pages/properties/name-variants-card.js +60 -0
- package/dist/pages/properties/property-detail-page.d.ts +10 -0
- package/dist/pages/properties/property-detail-page.js +150 -0
- package/dist/pages/properties/property-list-page.d.ts +13 -0
- package/dist/pages/properties/property-list-page.js +201 -0
- package/dist/pages/properties/sort-control.d.ts +14 -0
- package/dist/pages/properties/sort-control.js +9 -0
- package/dist/pages/properties/use-infinite-rows.d.ts +6 -0
- package/dist/pages/properties/use-infinite-rows.js +26 -0
- package/dist/pages/properties/use-table-view.d.ts +23 -0
- package/dist/pages/properties/use-table-view.js +56 -0
- package/dist/pages/supplier-detail/SupplierDetailPage.d.ts +10 -0
- package/dist/pages/supplier-detail/SupplierDetailPage.js +157 -0
- package/dist/pages/supplier-detail/index.d.ts +4 -0
- package/dist/pages/supplier-detail/index.js +2 -0
- package/dist/pages/supplier-detail/labels.d.ts +46 -0
- package/dist/pages/supplier-detail/labels.js +45 -0
- package/dist/pages/supplier-list/SupplierListPage.d.ts +9 -0
- package/dist/pages/supplier-list/SupplierListPage.js +102 -0
- package/dist/pages/supplier-list/index.d.ts +4 -0
- package/dist/pages/supplier-list/index.js +2 -0
- package/dist/pages/supplier-list/labels.d.ts +33 -0
- package/dist/pages/supplier-list/labels.js +32 -0
- package/dist/pages/supplier-list/sort-control.d.ts +17 -0
- package/dist/pages/supplier-list/sort-control.js +8 -0
- package/dist/pages/supplier-list/use-table-view.d.ts +23 -0
- package/dist/pages/supplier-list/use-table-view.js +54 -0
- package/dist/pages/team/account-dialogs.d.ts +12 -0
- package/dist/pages/team/account-dialogs.js +49 -0
- package/dist/pages/team/employee-editor.d.ts +19 -0
- package/dist/pages/team/employee-editor.js +124 -0
- package/dist/pages/team/labels.d.ts +99 -0
- package/dist/pages/team/labels.js +98 -0
- package/dist/pages/team/new-employee.d.ts +8 -0
- package/dist/pages/team/new-employee.js +103 -0
- package/dist/pages/team/roles-tab.d.ts +6 -0
- package/dist/pages/team/roles-tab.js +46 -0
- package/dist/pages/team/team-page.d.ts +7 -0
- package/dist/pages/team/team-page.js +81 -0
- package/dist/pages/team/temp-password-dialog.d.ts +11 -0
- package/dist/pages/team/temp-password-dialog.js +23 -0
- package/dist/pages/trash/labels.d.ts +68 -0
- package/dist/pages/trash/labels.js +69 -0
- package/dist/pages/trash/trash-page.d.ts +9 -0
- package/dist/pages/trash/trash-page.js +259 -0
- package/dist/pages/vat-rules/labels.d.ts +110 -0
- package/dist/pages/vat-rules/labels.js +109 -0
- package/dist/pages/vat-rules/new-rule-dialog.d.ts +7 -0
- package/dist/pages/vat-rules/new-rule-dialog.js +134 -0
- package/dist/pages/vat-rules/rule-row.d.ts +20 -0
- package/dist/pages/vat-rules/rule-row.js +120 -0
- package/dist/pages/vat-rules/vat-rules-page.d.ts +9 -0
- package/dist/pages/vat-rules/vat-rules-page.js +61 -0
- package/dist/ui/alert-dialog.d.ts +20 -0
- package/dist/ui/alert-dialog.js +41 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/badge.js +20 -0
- package/dist/ui/breadcrumb.d.ts +19 -0
- package/dist/ui/breadcrumb.js +23 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/button.js +33 -0
- package/dist/ui/calendar.d.ts +8 -0
- package/dist/ui/calendar.js +75 -0
- package/dist/ui/card.d.ts +8 -0
- package/dist/ui/card.js +16 -0
- package/dist/ui/chart.d.ts +62 -0
- package/dist/ui/chart.js +118 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/checkbox.js +11 -0
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.js +5 -0
- package/dist/ui/combobox.d.ts +24 -0
- package/dist/ui/combobox.js +55 -0
- package/dist/ui/command.d.ts +80 -0
- package/dist/ui/command.js +29 -0
- package/dist/ui/dialog.d.ts +19 -0
- package/dist/ui/dialog.js +58 -0
- package/dist/ui/dropdown-menu.d.ts +27 -0
- package/dist/ui/dropdown-menu.js +33 -0
- package/dist/ui/field-context.d.ts +4 -0
- package/dist/ui/field-context.js +6 -0
- package/dist/ui/field.d.ts +3 -0
- package/dist/ui/field.js +8 -0
- package/dist/ui/icon-action.d.ts +3 -0
- package/dist/ui/icon-action.js +8 -0
- package/dist/ui/index.d.ts +32 -0
- package/dist/ui/index.js +32 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +11 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.js +15 -0
- package/dist/ui/multi-combobox.d.ts +18 -0
- package/dist/ui/multi-combobox.js +40 -0
- package/dist/ui/popover.d.ts +9 -0
- package/dist/ui/popover.js +12 -0
- package/dist/ui/scroll-area.d.ts +5 -0
- package/dist/ui/scroll-area.js +9 -0
- package/dist/ui/scroll-shadow.d.ts +8 -0
- package/dist/ui/scroll-shadow.js +57 -0
- package/dist/ui/select.d.ts +13 -0
- package/dist/ui/select.js +31 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/separator.js +7 -0
- package/dist/ui/sheet.d.ts +25 -0
- package/dist/ui/sheet.js +40 -0
- package/dist/ui/sidebar.d.ts +65 -0
- package/dist/ui/sidebar.js +207 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/skeleton.js +6 -0
- package/dist/ui/sonner.d.ts +5 -0
- package/dist/ui/sonner.js +13 -0
- package/dist/ui/switch.d.ts +4 -0
- package/dist/ui/switch.js +7 -0
- package/dist/ui/table.d.ts +12 -0
- package/dist/ui/table.js +24 -0
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/tabs.js +12 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/textarea.js +11 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/tooltip.js +11 -0
- package/package.json +80 -0
- package/themes/TOKENS.md +57 -0
- package/themes/default.css +60 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { VatRule, VatRulesAdapter } from "../../adapters/vat-rules";
|
|
2
|
+
import type { VatRulesLabels } from "./labels";
|
|
3
|
+
export interface ScopeNameMaps {
|
|
4
|
+
supplierNameById: Map<string, string>;
|
|
5
|
+
propertyLabelById: Map<string, string>;
|
|
6
|
+
companyLabelById: Map<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export declare function ruleValueText(rule: VatRule, labels: VatRulesLabels): string;
|
|
9
|
+
export declare function RuleRow({ rule, maps, adapter, labels, }: {
|
|
10
|
+
rule: VatRule;
|
|
11
|
+
maps: ScopeNameMaps;
|
|
12
|
+
adapter: VatRulesAdapter;
|
|
13
|
+
labels: VatRulesLabels;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
export declare function RuleCard({ rule, maps, adapter, labels, }: {
|
|
16
|
+
rule: VatRule;
|
|
17
|
+
maps: ScopeNameMaps;
|
|
18
|
+
adapter: VatRulesAdapter;
|
|
19
|
+
labels: VatRulesLabels;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { Trash2, Wand2 } from "lucide-react";
|
|
4
|
+
import { toast } from "sonner";
|
|
5
|
+
import { Button } from "../../ui/button.js";
|
|
6
|
+
import { Input } from "../../ui/input.js";
|
|
7
|
+
import { Switch } from "../../ui/switch.js";
|
|
8
|
+
import { TableCell, TableRow } from "../../ui/table.js";
|
|
9
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "../../ui/alert-dialog.js";
|
|
10
|
+
import { cn } from "../../lib/class-names.js";
|
|
11
|
+
import { readableErrorMessage } from "../../components/feedback/query-states.js";
|
|
12
|
+
function buildScopeChips(rule, maps, labels) {
|
|
13
|
+
const chips = [];
|
|
14
|
+
if (rule.supplierId) {
|
|
15
|
+
chips.push({
|
|
16
|
+
label: labels.scopeNames.supplier,
|
|
17
|
+
value: maps.supplierNameById.get(rule.supplierId) ?? rule.supplierId,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
if (rule.propertyId) {
|
|
21
|
+
chips.push({
|
|
22
|
+
label: labels.scopeNames.property,
|
|
23
|
+
value: maps.propertyLabelById.get(rule.propertyId) ?? rule.propertyId,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
if (rule.companyId) {
|
|
27
|
+
chips.push({
|
|
28
|
+
label: labels.scopeNames.company,
|
|
29
|
+
value: maps.companyLabelById.get(rule.companyId) ?? rule.companyId,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
if (rule.referencePattern) {
|
|
33
|
+
chips.push({ label: labels.scopeNames.referencePattern, value: rule.referencePattern });
|
|
34
|
+
}
|
|
35
|
+
return chips;
|
|
36
|
+
}
|
|
37
|
+
export function ruleValueText(rule, labels) {
|
|
38
|
+
return rule.vatRate != null ? labels.vatRateValue(rule.vatRate) : "—";
|
|
39
|
+
}
|
|
40
|
+
function RuleValueContent({ rule, labels }) {
|
|
41
|
+
return (_jsxs(_Fragment, { children: [ruleValueText(rule, labels), rule.vatTreatment ? (_jsx("span", { className: "ml-2 text-xs text-muted-foreground", children: labels.vatTreatmentName(rule.vatTreatment) })) : null, rule.vatDeductiblePercent != null ? (_jsx("span", { className: "ml-2 text-xs text-muted-foreground", children: labels.deductibleShare(rule.vatDeductiblePercent) })) : null, rule.vatSpecialCase ? (_jsx("span", { className: "ml-2 text-xs text-muted-foreground", children: labels.vatSpecialCaseName(rule.vatSpecialCase) })) : null, rule.note ? _jsx("p", { className: "mt-0.5 text-xs text-muted-foreground", children: rule.note }) : null] }));
|
|
42
|
+
}
|
|
43
|
+
function ScopeChips({ chips }) {
|
|
44
|
+
return (_jsx("div", { className: "flex flex-wrap gap-1.5", children: chips.map((chip) => (_jsxs("span", { className: "inline-flex items-center gap-1 rounded border border-border bg-muted/50 px-1.5 py-0.5 text-xs", children: [_jsx("span", { className: "text-muted-foreground", children: chip.label }), _jsx("span", { className: "text-foreground", children: chip.value })] }, chip.label))) }));
|
|
45
|
+
}
|
|
46
|
+
function EffectText({ impactQuery, labels, }) {
|
|
47
|
+
if (impactQuery.isLoading)
|
|
48
|
+
return _jsx("span", { className: "text-muted-foreground", children: "\u2026" });
|
|
49
|
+
return (_jsx("span", { title: labels.effectHint, className: cn((impactQuery.data?.wouldChange ?? 0) > 0 && "font-medium text-warning"), children: labels.effect(impactQuery.data?.wouldChange ?? 0, impactQuery.data?.matches ?? 0) }));
|
|
50
|
+
}
|
|
51
|
+
function RuleActions({ rule, valueText, impactQuery, adapter, labels, layout, }) {
|
|
52
|
+
const [isApplying, setIsApplying] = useState(false);
|
|
53
|
+
const [deleteReason, setDeleteReason] = useState("");
|
|
54
|
+
const wouldChange = impactQuery.data?.wouldChange ?? 0;
|
|
55
|
+
const matches = impactQuery.data?.matches ?? 0;
|
|
56
|
+
const buttonClass = layout === "card" ? "flex-1 justify-center gap-1.5" : "gap-1.5";
|
|
57
|
+
async function applyRule() {
|
|
58
|
+
setIsApplying(true);
|
|
59
|
+
try {
|
|
60
|
+
const result = await adapter.applyVatRuleToExisting(rule.id);
|
|
61
|
+
if (result.changed === 0) {
|
|
62
|
+
toast.info(labels.apply.appliedNone);
|
|
63
|
+
}
|
|
64
|
+
else if (result.skipped > 0) {
|
|
65
|
+
toast.success(labels.apply.appliedWithSkipped(result.changed, result.matches, result.skipped));
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
toast.success(labels.apply.applied(result.changed, result.matches));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
toast.error(labels.actionFailed(readableErrorMessage(error, "")));
|
|
73
|
+
}
|
|
74
|
+
finally {
|
|
75
|
+
setIsApplying(false);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
async function deleteRule() {
|
|
79
|
+
try {
|
|
80
|
+
await adapter.deleteVatRule({ id: rule.id, reason: deleteReason.trim() });
|
|
81
|
+
toast.success(labels.deleteRule.deleted);
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
toast.error(labels.actionFailed(readableErrorMessage(error, "")));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return (_jsxs("div", { className: cn(layout === "card" ? "flex gap-2" : "inline-flex items-center gap-1"), children: [_jsxs(AlertDialog, { children: [_jsx(AlertDialogTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "sm", className: buttonClass, disabled: isApplying || wouldChange === 0, children: [_jsx(Wand2, { className: "size-4" }), " ", labels.apply.action] }) }), _jsxs(AlertDialogContent, { children: [_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: labels.apply.title }), _jsx(AlertDialogDescription, { children: wouldChange > 0
|
|
88
|
+
? labels.apply.description(wouldChange, matches)
|
|
89
|
+
: labels.apply.nothingToApply })] }), _jsxs(AlertDialogFooter, { children: [_jsx(AlertDialogCancel, { children: labels.apply.cancel }), _jsx(AlertDialogAction, { disabled: wouldChange === 0, onClick: applyRule, children: labels.apply.confirm(wouldChange) })] })] })] }), _jsxs(AlertDialog, { children: [_jsx(AlertDialogTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "sm", className: cn(buttonClass, "text-destructive hover:bg-destructive/10 hover:text-destructive"), children: [_jsx(Trash2, { className: "size-4" }), " ", labels.deleteRule.action] }) }), _jsxs(AlertDialogContent, { children: [_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: labels.deleteRule.title }), _jsx(AlertDialogDescription, { children: labels.deleteRule.description(valueText) })] }), _jsx(Input, { value: deleteReason, onChange: (event) => setDeleteReason(event.target.value), placeholder: labels.deleteRule.reasonPlaceholder }), _jsxs(AlertDialogFooter, { children: [_jsx(AlertDialogCancel, { children: labels.deleteRule.cancel }), _jsx(AlertDialogAction, { disabled: !deleteReason.trim(), className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", onClick: deleteRule, children: labels.deleteRule.confirm })] })] })] })] }));
|
|
90
|
+
}
|
|
91
|
+
function ActiveSwitch({ rule, adapter, labels, }) {
|
|
92
|
+
const [isSaving, setIsSaving] = useState(false);
|
|
93
|
+
async function toggle(nextActive) {
|
|
94
|
+
setIsSaving(true);
|
|
95
|
+
try {
|
|
96
|
+
await adapter.setVatRuleActive({ id: rule.id, isActive: nextActive });
|
|
97
|
+
toast.success(nextActive ? labels.toggleActivated : labels.toggleDeactivated);
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
toast.error(labels.actionFailed(readableErrorMessage(error, "")));
|
|
101
|
+
}
|
|
102
|
+
finally {
|
|
103
|
+
setIsSaving(false);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return (_jsx(Switch, { checked: rule.isActive, disabled: isSaving, "aria-label": labels.columns.active, onCheckedChange: toggle }));
|
|
107
|
+
}
|
|
108
|
+
export function RuleRow({ rule, maps, adapter, labels, }) {
|
|
109
|
+
const chips = buildScopeChips(rule, maps, labels);
|
|
110
|
+
const impactQuery = adapter.useRuleImpact(rule.id);
|
|
111
|
+
const valueText = ruleValueText(rule, labels);
|
|
112
|
+
return (_jsxs(TableRow, { className: cn(!rule.isActive && "opacity-60"), children: [_jsx(TableCell, { className: "font-medium text-foreground", children: _jsx(RuleValueContent, { rule: rule, labels: labels }) }), _jsx(TableCell, { children: _jsx(ScopeChips, { chips: chips }) }), _jsx(TableCell, { className: "text-right text-sm tabular-nums", children: _jsx(EffectText, { impactQuery: impactQuery, labels: labels }) }), _jsx(TableCell, { children: _jsx(ActiveSwitch, { rule: rule, adapter: adapter, labels: labels }) }), _jsx(TableCell, { className: "text-right", children: _jsx(RuleActions, { rule: rule, valueText: valueText, impactQuery: impactQuery, adapter: adapter, labels: labels, layout: "row" }) })] }));
|
|
113
|
+
}
|
|
114
|
+
// Mobile card equivalent of RuleRow — same fields, stacked instead of columned.
|
|
115
|
+
export function RuleCard({ rule, maps, adapter, labels, }) {
|
|
116
|
+
const chips = buildScopeChips(rule, maps, labels);
|
|
117
|
+
const impactQuery = adapter.useRuleImpact(rule.id);
|
|
118
|
+
const valueText = ruleValueText(rule, labels);
|
|
119
|
+
return (_jsxs("div", { className: cn("rounded-xl border border-border bg-card p-4", !rule.isActive && "opacity-60"), children: [_jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsx("div", { className: "min-w-0 font-medium text-foreground", children: _jsx(RuleValueContent, { rule: rule, labels: labels }) }), _jsx(ActiveSwitch, { rule: rule, adapter: adapter, labels: labels })] }), chips.length > 0 && (_jsx("div", { className: "mt-2", children: _jsx(ScopeChips, { chips: chips }) })), _jsxs("p", { className: "mt-2 text-xs text-muted-foreground", children: [labels.columns.effect, ": ", _jsx(EffectText, { impactQuery: impactQuery, labels: labels })] }), _jsx("div", { className: "mt-3 border-t border-border pt-3", children: _jsx(RuleActions, { rule: rule, valueText: valueText, impactQuery: impactQuery, adapter: adapter, labels: labels, layout: "card" }) })] }));
|
|
120
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Formatters } from "../../lib/formatters";
|
|
2
|
+
import type { VatRulesAdapter } from "../../adapters/vat-rules";
|
|
3
|
+
import { type VatRulesLabels } from "./labels";
|
|
4
|
+
export interface VatRulesPageProps {
|
|
5
|
+
adapter: VatRulesAdapter;
|
|
6
|
+
labels?: VatRulesLabels;
|
|
7
|
+
formatters?: Formatters;
|
|
8
|
+
}
|
|
9
|
+
export declare function VatRulesPage({ adapter, labels, formatters, }: VatRulesPageProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useState } from "react";
|
|
3
|
+
import { Label } from "../../ui/label.js";
|
|
4
|
+
import { Field } from "../../ui/field.js";
|
|
5
|
+
import { Combobox } from "../../ui/combobox.js";
|
|
6
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "../../ui/table.js";
|
|
7
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../ui/tabs.js";
|
|
8
|
+
import { EmptyState, ErrorState, TableSkeleton } from "../../components/feedback/query-states.js";
|
|
9
|
+
import { cn } from "../../lib/class-names.js";
|
|
10
|
+
import { englishFormatters } from "../../lib/formatters.js";
|
|
11
|
+
import { englishVatRulesLabels } from "./labels.js";
|
|
12
|
+
import { NewVatRuleDialog } from "./new-rule-dialog.js";
|
|
13
|
+
import { RuleCard, RuleRow } from "./rule-row.js";
|
|
14
|
+
const NONE = "__none";
|
|
15
|
+
// A negative reserve means deductible input VAT exceeded output VAT: the company is owed money.
|
|
16
|
+
// It gets its own colour and says so in words, so "-829.34" cannot read like an error.
|
|
17
|
+
function ReserveAmount({ value, formatters, labels, className, }) {
|
|
18
|
+
// Not `< 0`: a reserve of exactly 0 is neither owed nor owing, and -0.004 rounds to "0.00".
|
|
19
|
+
const isRefund = Math.round(value * 100) < 0;
|
|
20
|
+
return (_jsxs("span", { className: "block text-right", children: [_jsx("span", { className: cn("font-semibold tabular-nums", isRefund ? "text-success" : "text-foreground", className), children: formatters.formatMoney(value) }), isRefund ? (_jsx("span", { className: "mt-0.5 block text-xs font-normal text-success", children: labels.reserve.refund })) : null] }));
|
|
21
|
+
}
|
|
22
|
+
export function VatRulesPage({ adapter, labels = englishVatRulesLabels, formatters = englishFormatters, }) {
|
|
23
|
+
const companiesQuery = adapter.useCompanies();
|
|
24
|
+
const suppliersQuery = adapter.useSuppliers();
|
|
25
|
+
const propertiesQuery = adapter.useProperties();
|
|
26
|
+
const rulesQuery = adapter.useVatRules();
|
|
27
|
+
const [companyId, setCompanyId] = useState(NONE);
|
|
28
|
+
const companies = companiesQuery.data ?? [];
|
|
29
|
+
// "All companies": each company owes VAT to its own tax office separately, so that view is a
|
|
30
|
+
// per-company breakdown table, not a single combined figure.
|
|
31
|
+
const reserveQuery = adapter.useVatReserve(companyId === NONE ? null : companyId);
|
|
32
|
+
const reserveAllQuery = adapter.useVatReserveForCompanies(companyId === NONE ? companies.map((company) => company.id) : []);
|
|
33
|
+
const companyLabelById = useMemo(() => new Map(companies.map((company) => [company.id, `${company.code} · ${company.name}`])), [companies]);
|
|
34
|
+
const scopeNameMaps = useMemo(() => ({
|
|
35
|
+
supplierNameById: new Map((suppliersQuery.data ?? []).map((supplier) => [supplier.id, supplier.name])),
|
|
36
|
+
propertyLabelById: new Map((propertiesQuery.data ?? []).map((property) => [
|
|
37
|
+
property.id,
|
|
38
|
+
property.name ? `${property.code} · ${property.name}` : property.code,
|
|
39
|
+
])),
|
|
40
|
+
companyLabelById,
|
|
41
|
+
}), [suppliersQuery.data, propertiesQuery.data, companyLabelById]);
|
|
42
|
+
const vatRules = rulesQuery.data ?? [];
|
|
43
|
+
const scopedRules = useMemo(() => vatRules.filter((rule) => companyId === NONE || rule.companyId === companyId || rule.companyId === null), [vatRules, companyId]);
|
|
44
|
+
const scopeCounts = useMemo(() => ({
|
|
45
|
+
supplier: scopedRules.filter((rule) => rule.supplierId).length,
|
|
46
|
+
property: scopedRules.filter((rule) => rule.propertyId).length,
|
|
47
|
+
company: scopedRules.filter((rule) => rule.companyId).length,
|
|
48
|
+
global: scopedRules.filter((rule) => rule.companyId === null).length,
|
|
49
|
+
}), [scopedRules]);
|
|
50
|
+
return (_jsxs("div", { children: [_jsx("h1", { className: "mt-2 text-2xl font-semibold tracking-tight text-foreground", children: labels.title }), _jsx("p", { className: "mt-1 max-w-2xl text-sm text-muted-foreground", children: labels.subtitle }), _jsxs(Field, { className: "mt-6 w-full max-w-xs space-y-1.5", children: [_jsx(Label, { children: labels.companyLabel }), _jsx(Combobox, { value: companyId, onValueChange: setCompanyId, options: [
|
|
51
|
+
{ value: NONE, label: labels.allCompanies },
|
|
52
|
+
...companies.map((company) => ({
|
|
53
|
+
value: company.id,
|
|
54
|
+
label: `${company.code} · ${company.name}`,
|
|
55
|
+
keywords: company.name,
|
|
56
|
+
})),
|
|
57
|
+
] })] }), _jsxs(Tabs, { defaultValue: "rules", className: "mt-6", children: [_jsxs(TabsList, { className: "flex h-auto w-full flex-wrap justify-start gap-1", children: [_jsx(TabsTrigger, { value: "rules", children: labels.rulesTab }), _jsx(TabsTrigger, { value: "reserve", children: labels.reserveTab })] }), _jsxs(TabsContent, { value: "rules", className: "mt-4 space-y-4", children: [_jsxs("div", { className: "flex flex-col items-start gap-4 sm:flex-row sm:justify-between", children: [_jsx("p", { className: "max-w-3xl rounded-lg border border-border bg-muted/40 p-3 text-xs text-muted-foreground", children: labels.rulesHint }), _jsx("div", { className: "w-full sm:w-auto sm:shrink-0", children: _jsx(NewVatRuleDialog, { adapter: adapter, labels: labels, defaultCompanyId: companyId === NONE ? undefined : companyId }) })] }), _jsxs("div", { className: "flex flex-wrap gap-2 text-xs text-muted-foreground", children: [_jsx("span", { className: "rounded border border-border bg-muted/50 px-2 py-1", children: labels.countBySupplier(scopeCounts.supplier) }), _jsx("span", { className: "rounded border border-border bg-muted/50 px-2 py-1", children: labels.countByProperty(scopeCounts.property) }), _jsx("span", { className: "rounded border border-border bg-muted/50 px-2 py-1", children: labels.countByCompany(scopeCounts.company) }), _jsx("span", { className: "rounded border border-border bg-muted/50 px-2 py-1", children: labels.countGlobal(scopeCounts.global) })] }), rulesQuery.isError ? (_jsx(ErrorState, { error: rulesQuery.error, onRetry: rulesQuery.refetch })) : rulesQuery.isLoading ? (_jsx(TableSkeleton, { rows: 6, columns: 6 })) : scopedRules.length === 0 ? (_jsx(EmptyState, { title: labels.empty, hint: labels.emptyHint })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "hidden rounded-xl border border-border sm:block", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: labels.columns.value }), _jsx(TableHead, { children: labels.columns.scope }), _jsx(TableHead, { className: "text-right", children: labels.columns.effect }), _jsx(TableHead, { children: labels.columns.active }), _jsx(TableHead, { className: "text-right", children: labels.columns.actions })] }) }), _jsx(TableBody, { children: scopedRules.map((rule) => (_jsx(RuleRow, { rule: rule, maps: scopeNameMaps, adapter: adapter, labels: labels }, rule.id))) })] }) }), _jsx("div", { className: "space-y-3 sm:hidden", children: scopedRules.map((rule) => (_jsx(RuleCard, { rule: rule, maps: scopeNameMaps, adapter: adapter, labels: labels }, rule.id))) })] }))] }), _jsx(TabsContent, { value: "reserve", className: "mt-4", children: _jsxs("div", { className: "rounded-xl border border-border p-4", children: [_jsx("h2", { className: "text-sm font-semibold tracking-tight text-foreground", children: labels.reserve.title }), _jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: labels.reserve.hint }), companyId !== NONE ? (reserveQuery.isLoading ? (_jsx("p", { className: "mt-3 text-sm text-muted-foreground", children: "\u2026" })) : reserveQuery.isError ? (_jsx(ErrorState, { error: reserveQuery.error, onRetry: reserveQuery.refetch })) : reserveQuery.data ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mt-3 grid gap-3 sm:grid-cols-2 lg:grid-cols-5", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-muted-foreground", children: labels.reserve.totalInputVat }), _jsx("p", { className: "text-lg font-semibold text-foreground tabular-nums", children: formatters.formatMoney(reserveQuery.data.inputVatTotal) })] }), _jsxs("div", { children: [_jsx("p", { className: "text-xs text-muted-foreground", children: labels.reserve.deductible }), _jsx("p", { className: "text-lg font-semibold text-foreground tabular-nums", children: formatters.formatMoney(reserveQuery.data.inputVatDeductible) })] }), _jsxs("div", { children: [_jsx("p", { className: "text-xs text-muted-foreground", children: labels.reserve.nondeductible }), _jsx("p", { className: "text-lg font-semibold text-foreground tabular-nums", children: formatters.formatMoney(reserveQuery.data.inputVatNondeductible) })] }), _jsxs("div", { children: [_jsx("p", { className: "text-xs text-muted-foreground", children: labels.reserve.outputVat }), _jsx("p", { className: "text-lg font-semibold text-foreground tabular-nums", children: formatters.formatMoney(reserveQuery.data.outputVat) })] }), _jsxs("div", { children: [_jsx("p", { className: "text-xs text-muted-foreground", children: labels.reserve.reserveAmount }), _jsx(ReserveAmount, { value: reserveQuery.data.reserve, formatters: formatters, labels: labels, className: "text-lg" })] })] }), reserveQuery.data.unresolvedCount > 0 ? (_jsx("p", { className: "mt-3 text-xs text-warning", children: labels.reserve.unresolved(reserveQuery.data.unresolvedCount, formatters.formatMoney(reserveQuery.data.unresolvedAmount)) })) : null] })) : null) : reserveAllQuery.isLoading ? (_jsx("p", { className: "mt-3 text-sm text-muted-foreground", children: "\u2026" })) : reserveAllQuery.isError ? (_jsx(ErrorState, { error: reserveAllQuery.error, onRetry: reserveAllQuery.refetch })) : (reserveAllQuery.data ?? []).length === 0 ? (_jsx("p", { className: "mt-3 text-sm text-muted-foreground", children: labels.reserve.emptyAllCompanies })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "mt-3 hidden rounded-lg border border-border sm:block", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: labels.companyLabel }), _jsx(TableHead, { className: "text-right", children: labels.reserve.totalInputVat }), _jsx(TableHead, { className: "text-right", children: labels.reserve.deductible }), _jsx(TableHead, { className: "text-right", children: labels.reserve.nondeductible }), _jsx(TableHead, { className: "text-right", children: labels.reserve.outputVat }), _jsx(TableHead, { className: "text-right", children: labels.reserve.reserveAmount })] }) }), _jsx(TableBody, { children: (reserveAllQuery.data ?? []).map((row) => (_jsxs(TableRow, { children: [_jsx(TableCell, { className: "font-medium text-foreground", children: companyLabelById.get(row.companyId) ?? row.companyId }), _jsxs(TableCell, { className: "text-right tabular-nums", children: [formatters.formatMoney(row.inputVatTotal), row.unresolvedCount > 0 ? (_jsx("span", { className: "mt-0.5 block text-xs font-normal text-warning", children: labels.reserve.unresolvedShort(row.unresolvedCount, formatters.formatMoney(row.unresolvedAmount)) })) : null] }), _jsx(TableCell, { className: "text-right tabular-nums", children: formatters.formatMoney(row.inputVatDeductible) }), _jsx(TableCell, { className: "text-right tabular-nums", children: formatters.formatMoney(row.inputVatNondeductible) }), _jsx(TableCell, { className: "text-right tabular-nums", children: formatters.formatMoney(row.outputVat) }), _jsx(TableCell, { className: "text-right font-medium tabular-nums", children: _jsx(ReserveAmount, { value: row.reserve, formatters: formatters, labels: labels, className: "text-sm" }) })] }, row.companyId))) })] }) }), _jsx("div", { className: "mt-3 space-y-3 sm:hidden", children: (reserveAllQuery.data ?? []).map((row) => {
|
|
58
|
+
const companyName = companyLabelById.get(row.companyId) ?? row.companyId;
|
|
59
|
+
return (_jsxs("section", { "aria-label": companyName, className: "rounded-xl border border-border bg-card p-4", children: [_jsxs("div", { className: "flex items-start justify-between gap-2", children: [_jsx("span", { className: "font-medium text-foreground", children: companyName }), _jsx(ReserveAmount, { value: row.reserve, formatters: formatters, labels: labels, className: "text-sm" })] }), _jsx("p", { className: "text-xs text-muted-foreground", children: labels.reserve.reserveAmount }), row.unresolvedCount > 0 ? (_jsx("p", { className: "mt-2 text-xs text-warning", children: labels.reserve.unresolved(row.unresolvedCount, formatters.formatMoney(row.unresolvedAmount)) })) : null, _jsxs("dl", { className: "mt-3 grid grid-cols-3 gap-2 border-t border-border pt-3 text-xs", children: [_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: labels.reserve.totalInputVat }), _jsx("dd", { className: "text-foreground tabular-nums", children: formatters.formatMoney(row.inputVatTotal) })] }), _jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: labels.reserve.deductible }), _jsx("dd", { className: "text-foreground tabular-nums", children: formatters.formatMoney(row.inputVatDeductible) })] }), _jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: labels.reserve.nondeductible }), _jsx("dd", { className: "text-foreground tabular-nums", children: formatters.formatMoney(row.inputVatNondeductible) })] }), _jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: labels.reserve.outputVat }), _jsx("dd", { className: "text-foreground tabular-nums", children: formatters.formatMoney(row.outputVat) })] })] })] }, row.companyId));
|
|
60
|
+
}) })] }))] }) })] })] }));
|
|
61
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const AlertDialogHeader: {
|
|
9
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
declare const AlertDialogFooter: {
|
|
13
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
4
|
+
import { cn } from "../lib/class-names.js";
|
|
5
|
+
import { buttonVariants } from "./button.js";
|
|
6
|
+
const AlertDialog = AlertDialogPrimitive.Root;
|
|
7
|
+
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
8
|
+
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
9
|
+
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/50 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
|
|
10
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
11
|
+
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, { ref: ref, className: cn(
|
|
12
|
+
// See DialogContent's identical fix for why grid-cols-[minmax(0,1fr)] is needed here too:
|
|
13
|
+
// a plain `grid` item's default min-width is its own content's min-content size, not 0,
|
|
14
|
+
// so one long unbreakable text run anywhere in the body silently stretches the whole
|
|
15
|
+
// dialog past the viewport on a phone.
|
|
16
|
+
//
|
|
17
|
+
// w-[calc(100%-2rem)], not w-full: see DialogContent's identical fix — `fixed`'s containing
|
|
18
|
+
// block is the viewport, so w-full put the dialog's own edge flush against the screen edge
|
|
19
|
+
// on every phone width. The calc leaves a fixed 1rem gutter on each side; max-w-lg still
|
|
20
|
+
// wins once the viewport is wide enough for it to be the smaller value.
|
|
21
|
+
// rounded-lg unconditionally, not sm:rounded-lg — see DialogContent's identical fix.
|
|
22
|
+
// max-h-[calc(100dvh-2rem)] + overflow-y-auto gives the same 1rem gutter vertically that
|
|
23
|
+
// w-[calc(100%-2rem)] gives horizontally — see DialogContent's identical fix.
|
|
24
|
+
"fixed left-[50%] top-[50%] z-50 grid max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-lg grid-cols-[minmax(0,1fr)] translate-x-[-50%] translate-y-[-50%] gap-4 overflow-y-auto rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", className), ...props })] })));
|
|
25
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
26
|
+
const AlertDialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
|
|
27
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
28
|
+
const AlertDialogFooter = ({ className, ...props }) => (
|
|
29
|
+
// Row + right-aligned + gap on every width — see DialogFooter's identical fix. The old
|
|
30
|
+
// `flex-col-reverse` mobile default stacked Cancel/Action with no vertical gap between them.
|
|
31
|
+
_jsx("div", { className: cn("flex flex-row flex-wrap justify-end gap-2", className), ...props }));
|
|
32
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
33
|
+
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold", className), ...props })));
|
|
34
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
35
|
+
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
36
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
37
|
+
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Action, { ref: ref, className: cn(buttonVariants(), className), ...props })));
|
|
38
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
39
|
+
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Cancel, { ref: ref, className: cn(buttonVariants({ variant: "outline" }), className), ...props })));
|
|
40
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
41
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
package/dist/ui/badge.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { cn } from "../lib/class-names.js";
|
|
4
|
+
const badgeVariants = cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
|
|
8
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
9
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
10
|
+
outline: "text-foreground",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: "default",
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
function Badge({ className, variant, ...props }) {
|
|
18
|
+
return _jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
19
|
+
}
|
|
20
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
3
|
+
separator?: React.ReactNode;
|
|
4
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
7
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
declare const BreadcrumbSeparator: {
|
|
12
|
+
({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
declare const BreadcrumbEllipsis: {
|
|
16
|
+
({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
5
|
+
import { cn } from "../lib/class-names.js";
|
|
6
|
+
const Breadcrumb = React.forwardRef(({ ...props }, ref) => _jsx("nav", { ref: ref, "aria-label": "breadcrumb", ...props }));
|
|
7
|
+
Breadcrumb.displayName = "Breadcrumb";
|
|
8
|
+
const BreadcrumbList = React.forwardRef(({ className, ...props }, ref) => (_jsx("ol", { ref: ref, className: cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", className), ...props })));
|
|
9
|
+
BreadcrumbList.displayName = "BreadcrumbList";
|
|
10
|
+
const BreadcrumbItem = React.forwardRef(({ className, ...props }, ref) => (_jsx("li", { ref: ref, className: cn("inline-flex items-center gap-1.5", className), ...props })));
|
|
11
|
+
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
12
|
+
const BreadcrumbLink = React.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
13
|
+
const Comp = asChild ? Slot : "a";
|
|
14
|
+
return (_jsx(Comp, { ref: ref, className: cn("transition-colors hover:text-foreground", className), ...props }));
|
|
15
|
+
});
|
|
16
|
+
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
17
|
+
const BreadcrumbPage = React.forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, role: "link", "aria-disabled": "true", "aria-current": "page", className: cn("font-normal text-foreground", className), ...props })));
|
|
18
|
+
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
19
|
+
const BreadcrumbSeparator = ({ children, className, ...props }) => (_jsx("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className), ...props, children: children ?? _jsx(ChevronRight, {}) }));
|
|
20
|
+
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
21
|
+
const BreadcrumbEllipsis = ({ className, ...props }) => (_jsxs("span", { role: "presentation", "aria-hidden": "true", className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [_jsx(MoreHorizontal, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "More" })] }));
|
|
22
|
+
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
23
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { cn } from "../lib/class-names.js";
|
|
6
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
10
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
11
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
12
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
13
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
14
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
default: "h-9 px-4 py-2",
|
|
18
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
19
|
+
lg: "h-10 rounded-md px-8",
|
|
20
|
+
icon: "h-9 w-9",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "default",
|
|
25
|
+
size: "default",
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
29
|
+
const Comp = asChild ? Slot : "button";
|
|
30
|
+
return (_jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), ref: ref, ...props }));
|
|
31
|
+
});
|
|
32
|
+
Button.displayName = "Button";
|
|
33
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayButton, DayPicker } from "react-day-picker";
|
|
3
|
+
import { Button } from "./button";
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, locale, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): React.JSX.Element;
|
|
8
|
+
export { Calendar, CalendarDayButton };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
5
|
+
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
6
|
+
import { cn } from "../lib/class-names.js";
|
|
7
|
+
import { Button, buttonVariants } from "./button.js";
|
|
8
|
+
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, locale, ...props }) {
|
|
9
|
+
const defaultClassNames = getDefaultClassNames();
|
|
10
|
+
const monthDropdownLocale = locale?.code ?? "en-US";
|
|
11
|
+
return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw `rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw `rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className), captionLayout: captionLayout, locale: locale, formatters: {
|
|
12
|
+
formatMonthDropdown: (date) => date.toLocaleString(monthDropdownLocale, { month: "short" }),
|
|
13
|
+
...formatters,
|
|
14
|
+
}, classNames: {
|
|
15
|
+
root: cn("w-fit", defaultClassNames.root),
|
|
16
|
+
months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
|
|
17
|
+
month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
|
|
18
|
+
nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
|
|
19
|
+
button_previous: cn(buttonVariants({ variant: buttonVariant }), "h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50", defaultClassNames.button_previous),
|
|
20
|
+
button_next: cn(buttonVariants({ variant: buttonVariant }), "h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50", defaultClassNames.button_next),
|
|
21
|
+
month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption),
|
|
22
|
+
dropdowns: cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns),
|
|
23
|
+
dropdown_root: cn("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border", defaultClassNames.dropdown_root),
|
|
24
|
+
dropdown: cn("bg-popover absolute inset-0 opacity-0", defaultClassNames.dropdown),
|
|
25
|
+
caption_label: cn("select-none font-medium", captionLayout === "label"
|
|
26
|
+
? "text-sm"
|
|
27
|
+
: "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5", defaultClassNames.caption_label),
|
|
28
|
+
table: "w-full border-collapse",
|
|
29
|
+
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
30
|
+
weekday: cn("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal", defaultClassNames.weekday),
|
|
31
|
+
week: cn("mt-2 flex w-full", defaultClassNames.week),
|
|
32
|
+
week_number_header: cn("w-(--cell-size) select-none", defaultClassNames.week_number_header),
|
|
33
|
+
week_number: cn("text-muted-foreground select-none text-[0.8rem]", defaultClassNames.week_number),
|
|
34
|
+
day: cn("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md", defaultClassNames.day),
|
|
35
|
+
range_start: cn("bg-accent rounded-l-md", defaultClassNames.range_start),
|
|
36
|
+
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
37
|
+
range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),
|
|
38
|
+
today: cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today),
|
|
39
|
+
outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
40
|
+
disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
41
|
+
hidden: cn("invisible", defaultClassNames.hidden),
|
|
42
|
+
...classNames,
|
|
43
|
+
}, components: {
|
|
44
|
+
Root: ({ className, rootRef, ...props }) => {
|
|
45
|
+
return _jsx("div", { "data-slot": "calendar", ref: rootRef, className: cn(className), ...props });
|
|
46
|
+
},
|
|
47
|
+
Chevron: ({ className, orientation, ...props }) => {
|
|
48
|
+
if (orientation === "left") {
|
|
49
|
+
return _jsx(ChevronLeftIcon, { className: cn("size-4", className), ...props });
|
|
50
|
+
}
|
|
51
|
+
if (orientation === "right") {
|
|
52
|
+
return _jsx(ChevronRightIcon, { className: cn("size-4", className), ...props });
|
|
53
|
+
}
|
|
54
|
+
return _jsx(ChevronDownIcon, { className: cn("size-4", className), ...props });
|
|
55
|
+
},
|
|
56
|
+
DayButton: CalendarDayButton,
|
|
57
|
+
WeekNumber: ({ children, ...props }) => {
|
|
58
|
+
return (_jsx("td", { ...props, children: _jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: children }) }));
|
|
59
|
+
},
|
|
60
|
+
...components,
|
|
61
|
+
}, ...props }));
|
|
62
|
+
}
|
|
63
|
+
function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
64
|
+
const defaultClassNames = getDefaultClassNames();
|
|
65
|
+
const ref = React.useRef(null);
|
|
66
|
+
React.useEffect(() => {
|
|
67
|
+
if (modifiers.focused)
|
|
68
|
+
ref.current?.focus();
|
|
69
|
+
}, [modifiers.focused]);
|
|
70
|
+
return (_jsx(Button, { ref: ref, variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(), "data-selected-single": modifiers.selected &&
|
|
71
|
+
!modifiers.range_start &&
|
|
72
|
+
!modifiers.range_end &&
|
|
73
|
+
!modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className), ...props }));
|
|
74
|
+
}
|
|
75
|
+
export { Calendar, CalendarDayButton };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
package/dist/ui/card.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../lib/class-names.js";
|
|
4
|
+
const Card = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("rounded-xl border bg-card text-card-foreground shadow", className), ...props })));
|
|
5
|
+
Card.displayName = "Card";
|
|
6
|
+
const CardHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })));
|
|
7
|
+
CardHeader.displayName = "CardHeader";
|
|
8
|
+
const CardTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("font-semibold leading-none tracking-tight", className), ...props })));
|
|
9
|
+
CardTitle.displayName = "CardTitle";
|
|
10
|
+
const CardDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
11
|
+
CardDescription.displayName = "CardDescription";
|
|
12
|
+
const CardContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("p-6 pt-0", className), ...props })));
|
|
13
|
+
CardContent.displayName = "CardContent";
|
|
14
|
+
const CardFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex items-center p-6 pt-0", className), ...props })));
|
|
15
|
+
CardFooter.displayName = "CardFooter";
|
|
16
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as RechartsPrimitive from "recharts";
|
|
3
|
+
declare const THEMES: {
|
|
4
|
+
readonly light: "";
|
|
5
|
+
readonly dark: ".dark";
|
|
6
|
+
};
|
|
7
|
+
export type ChartConfig = {
|
|
8
|
+
[k in string]: {
|
|
9
|
+
label?: React.ReactNode;
|
|
10
|
+
icon?: React.ComponentType;
|
|
11
|
+
} & ({
|
|
12
|
+
color?: string;
|
|
13
|
+
theme?: never;
|
|
14
|
+
} | {
|
|
15
|
+
color?: never;
|
|
16
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
+
config: ChartConfig;
|
|
21
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
22
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const ChartStyle: ({ id, config }: {
|
|
24
|
+
id: string;
|
|
25
|
+
config: ChartConfig;
|
|
26
|
+
}) => React.JSX.Element | null;
|
|
27
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
28
|
+
declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType> & {
|
|
29
|
+
accessibilityLayer?: boolean;
|
|
30
|
+
active?: boolean | undefined;
|
|
31
|
+
includeHidden?: boolean | undefined;
|
|
32
|
+
allowEscapeViewBox?: import("recharts/types/util/types").AllowInDimension;
|
|
33
|
+
animationDuration?: import("recharts/types/util/types").AnimationDuration;
|
|
34
|
+
animationEasing?: import("recharts/types/util/types").AnimationTiming;
|
|
35
|
+
content?: import("recharts/types/component/Tooltip").ContentType<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType> | undefined;
|
|
36
|
+
coordinate?: Partial<import("recharts/types/util/types").Coordinate>;
|
|
37
|
+
cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
|
|
38
|
+
filterNull?: boolean;
|
|
39
|
+
defaultIndex?: number;
|
|
40
|
+
isAnimationActive?: boolean;
|
|
41
|
+
offset?: number;
|
|
42
|
+
payloadUniqBy?: import("recharts/types/util/payload/getUniqPayload").UniqueOption<import("recharts/types/component/DefaultTooltipContent").Payload<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType>> | undefined;
|
|
43
|
+
position?: Partial<import("recharts/types/util/types").Coordinate>;
|
|
44
|
+
reverseDirection?: import("recharts/types/util/types").AllowInDimension;
|
|
45
|
+
shared?: boolean;
|
|
46
|
+
trigger?: "hover" | "click";
|
|
47
|
+
useTranslate3d?: boolean;
|
|
48
|
+
viewBox?: import("recharts/types/util/types").CartesianViewBox;
|
|
49
|
+
wrapperStyle?: React.CSSProperties;
|
|
50
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
51
|
+
hideLabel?: boolean;
|
|
52
|
+
hideIndicator?: boolean;
|
|
53
|
+
indicator?: "line" | "dot" | "dashed";
|
|
54
|
+
nameKey?: string;
|
|
55
|
+
labelKey?: string;
|
|
56
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
58
|
+
declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
|
59
|
+
hideIcon?: boolean;
|
|
60
|
+
nameKey?: string;
|
|
61
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
62
|
+
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
|