@accounter/client 0.0.8-alpha-20251022130946-0923a77d2ee3f22a60a7f5b1e0623bd3bee88868 → 0.0.8-alpha-20251022132023-9f41aae2ce16f8761101edc548f486cc6ce80333
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 +25 -1
- package/dist/assets/Checkbox-DBF5r7jA.js +6 -0
- package/dist/assets/Progress-Cjv9yrat.js +1 -0
- package/dist/assets/Typography-DdVppmQe.js +1 -0
- package/dist/assets/accordion-DcMd-Til.js +1 -0
- package/dist/assets/accountant-approvals-CU_EA64d.js +1 -0
- package/dist/assets/all-charges-DKGmrDeD.js +1 -0
- package/dist/assets/arrow-up-down-BeIaAKWn.js +6 -0
- package/dist/assets/business-EtSaFzKh.js +37 -0
- package/dist/assets/business-transactions-single-B0Up2Bs4.js +1 -0
- package/dist/assets/business-trip-CmMmdjCh.js +1 -0
- package/dist/assets/charges-filters-CqWjSIKI.js +1 -0
- package/dist/assets/charges-ledger-validation-DHfLjNlq.js +1 -0
- package/dist/assets/chart-D1Y6fN3z.js +74 -0
- package/dist/assets/data-table-pagination-BCciANKD.js +11 -0
- package/dist/assets/editable-business-trip-VNJjiYOp.js +16 -0
- package/dist/assets/graphql-document-dedupe-fragments-ByT8-wlV.js +1 -0
- package/dist/assets/index-1L3dEkVN.js +1 -0
- package/dist/assets/index-4ZIYAzBJ.js +1 -0
- package/dist/assets/index-4r9JDo8p.js +1 -0
- package/dist/assets/index-BFHiMLVc.js +1 -0
- package/dist/assets/index-BGmhxff9.js +1 -0
- package/dist/assets/index-BMcyYDGt.js +11 -0
- package/dist/assets/index-BVQkLk5i.js +1 -0
- package/dist/assets/index-Bj3HckU6.js +876 -0
- package/dist/assets/index-BnQW4CTb.js +1 -0
- package/dist/assets/index-C0FVazZA.js +24 -0
- package/dist/assets/index-CUDeasQ_.js +1 -0
- package/dist/assets/index-Cfm6e2hX.js +1 -0
- package/dist/assets/index-Cqz-mRoO.js +17 -0
- package/dist/assets/index-Cs7MeC4J.js +137 -0
- package/dist/assets/index-CzzfC-dD.css +1 -0
- package/dist/assets/index-DABsOOfA.js +1 -0
- package/dist/assets/index-DB4BgQdp.js +2 -0
- package/dist/assets/index-DV-Q6DUw.js +1 -0
- package/dist/assets/index-Dd5ylSyH.js +9 -0
- package/dist/assets/index-Dn7p3J8Q.js +1 -0
- package/dist/assets/index-Dpk6i3ex.js +6 -0
- package/dist/assets/index-EiT4SOpW.js +2 -0
- package/dist/assets/index-rcKvu7eR.js +6 -0
- package/dist/assets/index-sDbz8nnb.js +1 -0
- package/dist/assets/{index.es-CWwhWGxX.js → index.es-CL8po8bM.js} +5 -5
- package/dist/assets/issue-document-CYdlZijI.js +1 -0
- package/dist/assets/login-page-CnMdssTN.js +1 -0
- package/dist/assets/missing-info-charges-CzeKbCyG.js +1 -0
- package/dist/assets/page-not-found-Bsa0DCM4.js +1 -0
- package/dist/assets/pencil-BMWYIsZB.js +6 -0
- package/dist/assets/report-commentary-row-D9AtKtZx.js +1 -0
- package/dist/assets/save-DC_eQcBj.js +11 -0
- package/dist/assets/sequential-CAnleQny.js +1 -0
- package/dist/assets/similar-charges-by-business-modal-Dmb2ZymF.js +1 -0
- package/dist/assets/sub-BIMwxqar.js +1 -0
- package/dist/assets/subMonths-B7SR4Lli.js +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- 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/gql/graphql.ts +1554 -4842
- 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-BexxGuN6.js +0 -1224
- 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
|
-
};
|