@mercoa/react 0.0.1
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/LICENSE +201 -0
- package/README.md +36 -0
- package/dist/components/BankAccounts.d.ts +45 -0
- package/dist/components/Checks.d.ts +19 -0
- package/dist/components/CounterpartySearch.d.ts +6 -0
- package/dist/components/CreditCard.d.ts +20 -0
- package/dist/components/CustomPaymentMethod.d.ts +33 -0
- package/dist/components/EntityDetails.d.ts +7 -0
- package/dist/components/EntityOnboarding.d.ts +221 -0
- package/dist/components/EntityPortal.d.ts +3 -0
- package/dist/components/EntityUser.d.ts +10 -0
- package/dist/components/Inbox.d.ts +10 -0
- package/dist/components/InvoiceDetails.d.ts +21 -0
- package/dist/components/Mercoa.d.ts +34 -0
- package/dist/components/Receivables.d.ts +4 -0
- package/dist/components/generics.d.ts +74 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +75949 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +260 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/lib/currency.d.ts +8 -0
- package/dist/lib/lib.d.ts +24 -0
- package/dist/lib/locations.d.ts +5 -0
- package/dist/lib/scheduling.d.ts +3 -0
- package/package.json +100 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Mercoa } from '@mercoa/javascript';
|
|
2
|
+
export declare function currencySymbolToCode(symbol?: string): Mercoa.CurrencyCode;
|
|
3
|
+
export declare function currencyCodeToSymbol(code?: string | Mercoa.CurrencyCode): string;
|
|
4
|
+
export declare const zeroDecimalCurrencies: Mercoa.CurrencyCode[];
|
|
5
|
+
export declare const threeDecimalCurrencies: Mercoa.CurrencyCode[];
|
|
6
|
+
export declare function majorCurrencyToMinor(amount: number | null, currency?: Mercoa.CurrencyCode): string;
|
|
7
|
+
export declare function minorCurrencyToMajor(amount: bigint | null, currency?: Mercoa.CurrencyCode): string;
|
|
8
|
+
export declare function move_decimal(num: number | bigint, n: number): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare function capitalize(str: string | undefined): string;
|
|
2
|
+
export declare function invertColor(hex: string, bw?: boolean): string;
|
|
3
|
+
export declare function classNames(...classes: any[]): string;
|
|
4
|
+
export declare function constructFullName(firstName: string, lastName: string, middleName?: string | null, suffix?: string | null): string;
|
|
5
|
+
export declare const prettyPaymentMethodTypes: {
|
|
6
|
+
custom: string;
|
|
7
|
+
check: string;
|
|
8
|
+
bankAccount: string;
|
|
9
|
+
na: string;
|
|
10
|
+
card: string;
|
|
11
|
+
bnpl: string;
|
|
12
|
+
virtualCard: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const prettyBusinessTypes: {
|
|
15
|
+
SoleProprietorship: string;
|
|
16
|
+
UnincorporatedAssociation: string;
|
|
17
|
+
Trust: string;
|
|
18
|
+
PublicCorporation: string;
|
|
19
|
+
PrivateCorporation: string;
|
|
20
|
+
Llc: string;
|
|
21
|
+
Partnership: string;
|
|
22
|
+
UnincorporatedNonProfit: string;
|
|
23
|
+
IncorporatedNonProfit: string;
|
|
24
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mercoa/react",
|
|
3
|
+
"description": "Mercoa React Component Library",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"author": "Sandeep Dinesh <sandeep@mercoa.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/mercoa-finance/react.git"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.es.js",
|
|
15
|
+
"require": "./dist/index.umd.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"main": "./dist/index.umd.js",
|
|
19
|
+
"module": "./dist/index.es.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc && vite build",
|
|
23
|
+
"dev": "npm start",
|
|
24
|
+
"start": "storybook dev -p 6006",
|
|
25
|
+
"storybook": "npm start",
|
|
26
|
+
"build-docs": "storybook build -o docs && touch ./docs/.nojekyll",
|
|
27
|
+
"lint": "eslint . --ext .ts,.tsx"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^18.2.0",
|
|
31
|
+
"react-dom": "^18.2.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
35
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
36
|
+
"@storybook/addon-essentials": "^7.0.20",
|
|
37
|
+
"@storybook/addon-interactions": "^7.0.20",
|
|
38
|
+
"@storybook/addon-links": "^7.0.20",
|
|
39
|
+
"@storybook/blocks": "^7.0.20",
|
|
40
|
+
"@storybook/react": "^7.0.20",
|
|
41
|
+
"@storybook/react-vite": "^7.0.20",
|
|
42
|
+
"@storybook/testing-library": "^0.0.14-next.2",
|
|
43
|
+
"@tailwindcss/forms": "^0.5.7",
|
|
44
|
+
"@tailwindcss/typography": "^0.5.10",
|
|
45
|
+
"@types/accounting": "^0.4.5",
|
|
46
|
+
"@types/node": "^20.3.0",
|
|
47
|
+
"@types/react": "^18.0.27",
|
|
48
|
+
"@types/react-datepicker": "^4.19.4",
|
|
49
|
+
"@types/react-dom": "^18.0.10",
|
|
50
|
+
"@types/react-input-mask": "^3.0.5",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^5.60.1",
|
|
52
|
+
"@typescript-eslint/parser": "^5.60.1",
|
|
53
|
+
"@vitejs/plugin-react": "^3.1.0",
|
|
54
|
+
"autoprefixer": "^10.4.16",
|
|
55
|
+
"eslint": "^8.43.0",
|
|
56
|
+
"eslint-config-prettier": "^8.8.0",
|
|
57
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
58
|
+
"eslint-plugin-react": "^7.32.2",
|
|
59
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
60
|
+
"postcss": "^8.4.32",
|
|
61
|
+
"storybook": "^7.0.20",
|
|
62
|
+
"tailwindcss": "^3.4.0",
|
|
63
|
+
"typescript": "^4.9.3",
|
|
64
|
+
"vite": "^4.1.0",
|
|
65
|
+
"vite-plugin-dts": "^2.3.0",
|
|
66
|
+
"vite-plugin-node-polyfills": "^0.17.0"
|
|
67
|
+
},
|
|
68
|
+
"files": [
|
|
69
|
+
"dist"
|
|
70
|
+
],
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@18f/us-federal-holidays": "^4.0.0",
|
|
73
|
+
"@column-resizer/react": "^1.3.0",
|
|
74
|
+
"@headlessui/react": "^1.7.17",
|
|
75
|
+
"@heroicons/react": "^2.1.1",
|
|
76
|
+
"@hookform/resolvers": "^3.3.2",
|
|
77
|
+
"@mercoa/javascript": "^0.3.7",
|
|
78
|
+
"@moovio/moov-js": "^0.0.14",
|
|
79
|
+
"@react-hook/resize-observer": "^1.2.6",
|
|
80
|
+
"accounting": "^0.4.1",
|
|
81
|
+
"dayjs": "^1.11.10",
|
|
82
|
+
"dirty-json": "^0.9.2",
|
|
83
|
+
"humanparser": "^2.7.0",
|
|
84
|
+
"jwt-decode": "^4.0.0",
|
|
85
|
+
"react-datepicker": "^4.24.0",
|
|
86
|
+
"react-draggable": "^4.4.6",
|
|
87
|
+
"react-dropzone": "^14.2.3",
|
|
88
|
+
"react-google-autocomplete": "^2.7.3",
|
|
89
|
+
"react-hook-form": "^7.49.2",
|
|
90
|
+
"react-input-mask": "^2.0.4",
|
|
91
|
+
"react-pdf": "^7.6.0",
|
|
92
|
+
"react-plaid-link": "^3.5.1",
|
|
93
|
+
"react-toastify": "^9.1.3",
|
|
94
|
+
"us-bank-account-validator": "^1.0.0",
|
|
95
|
+
"yup": "^1.3.3"
|
|
96
|
+
},
|
|
97
|
+
"publishConfig": {
|
|
98
|
+
"access": "public"
|
|
99
|
+
}
|
|
100
|
+
}
|