@accounter/client 0.0.8-alpha-20251022162652-6facbcde08fdda0fb354ba7105432df320367509 → 0.0.8-alpha-20251023070808-bdd9d09db3d693f2c0061a2bbd66a4bfe5224012
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/CHANGELOG.md +26 -2
- package/dist/assets/Checkbox-Bm30-WRa.js +6 -0
- package/dist/assets/Progress-DxcT-wYo.js +1 -0
- package/dist/assets/Typography-CZLHs9y2.js +1 -0
- package/dist/assets/accordion-_VaDHoQb.js +1 -0
- package/dist/assets/accountant-approvals-C7GnMLyl.js +1 -0
- package/dist/assets/all-charges-DS-mdep6.js +1 -0
- package/dist/assets/arrow-up-down-Bt3_puEZ.js +6 -0
- package/dist/assets/business-Db4PzgLz.js +42 -0
- package/dist/assets/business-transactions-single-Canul8rR.js +1 -0
- package/dist/assets/business-trip-x8lljSMP.js +1 -0
- package/dist/assets/charges-filters-DkO9FBdC.js +1 -0
- package/dist/assets/charges-ledger-validation-wla_aWIc.js +1 -0
- package/dist/assets/chart-2uS7cQLX.js +74 -0
- package/dist/assets/data-table-pagination-CQQBbtVE.js +11 -0
- package/dist/assets/editable-business-trip-D50scoPo.js +16 -0
- package/dist/assets/graphql-document-dedupe-fragments-ByT8-wlV.js +1 -0
- package/dist/assets/index-B20Tn_iF.js +6 -0
- package/dist/assets/index-BJ63UrPP.js +24 -0
- package/dist/assets/index-BNPAKzBY.js +137 -0
- package/dist/assets/index-BP2Hv2J-.js +1 -0
- package/dist/assets/index-BTiGhl3N.js +11 -0
- package/dist/assets/index-BaDl3RPI.js +1 -0
- package/dist/assets/index-BmSAw35b.js +1 -0
- package/dist/assets/index-BsGG-RLV.js +876 -0
- package/dist/assets/index-Bskia9ol.js +1 -0
- package/dist/assets/index-C4JVZBO-.js +1 -0
- package/dist/assets/index-CDHKPA0l.js +1 -0
- package/dist/assets/index-CqZy7PVr.js +17 -0
- package/dist/assets/index-CzzfC-dD.css +1 -0
- package/dist/assets/index-D2w9iaKk.js +1 -0
- package/dist/assets/index-D5CFY1GF.js +1 -0
- package/dist/assets/index-DBjj2AmF.js +1 -0
- package/dist/assets/index-DJ33tRZ1.js +1 -0
- package/dist/assets/index-DKS2QKOQ.js +1 -0
- package/dist/assets/index-DOKYSdGb.js +1 -0
- package/dist/assets/index-D_PykgGt.js +2 -0
- package/dist/assets/index-Dk4NeG4m.js +1 -0
- package/dist/assets/index-Dkqd5T8J.js +2 -0
- package/dist/assets/index-IN8Kpfsx.js +6 -0
- package/dist/assets/index-OqG78rNq.js +9 -0
- package/dist/assets/{index.es-Bh5tff8R.js → index.es-DKjfxgqg.js} +5 -5
- package/dist/assets/issue-document-BFOjGS-U.js +1 -0
- package/dist/assets/login-page-CpRailN7.js +1 -0
- package/dist/assets/missing-info-charges-BnYMeatL.js +1 -0
- package/dist/assets/page-not-found-BLrYvmf4.js +1 -0
- package/dist/assets/pencil-DC6M9VTY.js +6 -0
- package/dist/assets/report-commentary-row-DJPRyQur.js +1 -0
- package/dist/assets/save-Dr3CNkcl.js +11 -0
- package/dist/assets/sequential-CAnleQny.js +1 -0
- package/dist/assets/similar-charges-by-business-modal-CCw5opHn.js +1 -0
- package/dist/assets/sub-DKnwnbwx.js +1 -0
- package/dist/assets/subMonths-B44KizJf.js +1 -0
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/src/components/business-transactions/business-extended-info.tsx +13 -15
- package/src/components/business-transactions/business-transactions-single.tsx +3 -3
- package/src/components/business-transactions/index.tsx +12 -1
- package/src/components/business-trips/business-trip.tsx +3 -3
- package/src/components/charges/cells/business-trip.tsx +6 -8
- package/src/components/charges/cells/counterparty.tsx +7 -5
- package/src/components/common/accounter-table.tsx +6 -5
- package/src/components/common/business-trip-report/parts/core-expense-row.tsx +11 -9
- package/src/components/common/business-trip-report/parts/uncategorized-transactions.tsx +11 -13
- package/src/components/common/buttons/index.ts +0 -2
- package/src/components/common/buttons/logout-button.tsx +7 -6
- package/src/components/common/documents-to-charge-matcher/selection-handler/index.tsx +4 -2
- package/src/components/common/documents-to-charge-matcher/selection-handler/wide-filtered-selection.tsx +5 -7
- package/src/components/common/forms/edit-document.tsx +21 -10
- package/src/components/common/new-documents-list.tsx +10 -8
- package/src/components/documents-table/cells/creditor.tsx +11 -4
- package/src/components/documents-table/cells/debtor.tsx +11 -4
- package/src/components/error-boundary.tsx +189 -0
- package/src/components/layout/breadcrumbs.tsx +72 -0
- package/src/components/layout/dashboard-layout.tsx +4 -0
- package/src/components/layout/document-title.tsx +26 -0
- package/src/components/layout/navigation-progress.tsx +52 -0
- package/src/components/layout/page-skeleton.tsx +49 -0
- package/src/components/layout/sidelinks.tsx +28 -27
- package/src/components/ledger-table/counterparty-cell.tsx +19 -13
- package/src/components/login-page.tsx +2 -1
- package/src/components/reports/corporate-tax-ruling-compliance-report/index.tsx +3 -3
- package/src/components/reports/profit-and-loss-report/index.tsx +3 -3
- package/src/components/reports/tax-report/index.tsx +3 -3
- package/src/components/screens/businesses/business.tsx +21 -9
- package/src/components/screens/charges/charge.tsx +22 -9
- package/src/components/transactions-table/cells/counterparty.tsx +9 -2
- package/src/components/transactions-table/cells-legacy/counterparty.tsx +9 -2
- package/src/index.tsx +4 -22
- package/src/providers/auth-guard.tsx +14 -23
- package/src/providers/index.tsx +7 -2
- package/src/providers/urql-client.ts +86 -0
- package/src/providers/urql.tsx +7 -12
- package/src/providers/user-provider.tsx +3 -2
- package/src/router/config.tsx +534 -0
- package/src/router/layouts/dashboard-layout.tsx +20 -0
- package/src/router/layouts/root-layout.tsx +69 -0
- package/src/router/loaders/auth-loader.ts +32 -0
- package/src/router/loaders/business-loader.ts +25 -0
- package/src/router/loaders/charge-loader.ts +25 -0
- package/src/router/loaders/index.ts +17 -0
- package/src/router/routes.ts +88 -0
- package/src/router/types.ts +68 -0
- package/dist/assets/index-B2UYAO1O.css +0 -1
- package/dist/assets/index-D312yRtG.js +0 -1229
- package/src/components/common/buttons/button-with-label.tsx +0 -41
- package/src/components/common/buttons/button.tsx +0 -44
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, MouseEventHandler, ReactElement } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface ButtonWithLabelProps {
|
|
4
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
5
|
-
type?: 'submit' | 'button';
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
target?: string;
|
|
8
|
-
rel?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
url?: string;
|
|
11
|
-
textLabel?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const ButtonWithLabel = ({
|
|
15
|
-
title,
|
|
16
|
-
url,
|
|
17
|
-
style,
|
|
18
|
-
target,
|
|
19
|
-
textLabel,
|
|
20
|
-
rel,
|
|
21
|
-
type = 'button',
|
|
22
|
-
onClick,
|
|
23
|
-
}: ButtonWithLabelProps): ReactElement => {
|
|
24
|
-
return (
|
|
25
|
-
<div>
|
|
26
|
-
<label className="text-sm font-medium text-gray-700">{textLabel}</label>
|
|
27
|
-
<div>
|
|
28
|
-
<button
|
|
29
|
-
style={style}
|
|
30
|
-
type={type}
|
|
31
|
-
onClick={onClick}
|
|
32
|
-
className="bg-gray-100 border focus:ring-2 focus:ring-indigo-200 focus:bg-transparent hover:bg-indigo-500 hover:text-white text-base outline-hidden text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out sm:text-sm rounded-md"
|
|
33
|
-
>
|
|
34
|
-
<a rel={rel} target={target} href={url} type={type}>
|
|
35
|
-
{title}
|
|
36
|
-
</a>
|
|
37
|
-
</button>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ButtonHTMLAttributes,
|
|
3
|
-
CSSProperties,
|
|
4
|
-
DetailedHTMLProps,
|
|
5
|
-
MouseEventHandler,
|
|
6
|
-
ReactElement,
|
|
7
|
-
} from 'react';
|
|
8
|
-
|
|
9
|
-
export interface Props
|
|
10
|
-
extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
11
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
12
|
-
herf?: string;
|
|
13
|
-
type?: 'submit' | 'button';
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
target?: string;
|
|
16
|
-
rel?: string;
|
|
17
|
-
title?: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const Button = ({
|
|
22
|
-
title,
|
|
23
|
-
herf,
|
|
24
|
-
style,
|
|
25
|
-
target,
|
|
26
|
-
rel,
|
|
27
|
-
type = 'button',
|
|
28
|
-
onClick,
|
|
29
|
-
...props
|
|
30
|
-
}: Props): ReactElement => {
|
|
31
|
-
return (
|
|
32
|
-
<button
|
|
33
|
-
style={style}
|
|
34
|
-
type={type}
|
|
35
|
-
onClick={onClick}
|
|
36
|
-
className="cursor: pointer text-align: center flex ml-auto text-white bg-indigo-500 border-0 py-1.5 px-3 focus:outline-hidden hover:bg-indigo-600 rounded-sm;"
|
|
37
|
-
{...props}
|
|
38
|
-
>
|
|
39
|
-
<a rel={rel} target={target} href={herf} type={type}>
|
|
40
|
-
{title}
|
|
41
|
-
</a>
|
|
42
|
-
</button>
|
|
43
|
-
);
|
|
44
|
-
};
|