@secondstaxorg/sscomp 1.3.9 → 1.4.2
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/dist/index.es.js +766 -702
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1345 -4008
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +766 -702
- package/dist/index.min.js.map +1 -1
- package/package.json +4 -4
- package/types/components/ActionFailed/ActionFailed.d.ts +0 -3
- package/types/components/ActionSuccess/ActionSuccess.d.ts +3 -0
- package/types/components/ActionSuccess/type.d.ts +6 -0
- package/types/components/AppActionsTable/AppActionsTable.d.ts +3 -0
- package/types/components/AppActionsTable/type.d.ts +6 -0
- package/types/components/AppFormsTable/AppFormsTable.d.ts +3 -0
- package/types/components/AppFormsTable/type.d.ts +6 -0
- package/types/components/AppModulesTable/AppModulesTable.d.ts +3 -0
- package/types/components/AppModulesTable/type.d.ts +6 -0
- package/types/components/AuditLog/AuditLog.d.ts +3 -0
- package/types/components/AuditLog/type.d.ts +3 -0
- package/types/components/BankAccounts/BankAccounts.d.ts +3 -0
- package/types/components/BankAccounts/type.d.ts +7 -0
- package/types/components/BankSelector/BankSelector.d.ts +4 -0
- package/types/components/BankSelector/type.d.ts +6 -0
- package/types/components/BreadcrumbBar/BreadcrumbBar.d.ts +3 -0
- package/types/components/BreadcrumbBar/type.d.ts +3 -0
- package/types/components/BrokersTable/BrokersTable.d.ts +3 -0
- package/types/components/BrokersTable/type.d.ts +6 -0
- package/types/components/Button/Button.d.ts +2 -19
- package/types/components/Chart/Chart.d.ts +3 -0
- package/types/components/Chart/type.d.ts +15 -0
- package/types/components/Selector/styles.d.ts +1 -0
- package/types/components/Selector/types.d.ts +10 -0
- package/types/components/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondstaxorg/sscomp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -51,8 +51,6 @@
|
|
|
51
51
|
"@types/styled-components": "^5.1.26",
|
|
52
52
|
"babel-loader": "^8.2.5",
|
|
53
53
|
"chromatic": "^6.19.8",
|
|
54
|
-
"react": "^18.2.0",
|
|
55
|
-
"react-dom": "^18.2.0",
|
|
56
54
|
"rollup": "^3.2.3",
|
|
57
55
|
"rollup-plugin-css-only": "^4.3.0",
|
|
58
56
|
"rollup-plugin-dts": "^5.1.1",
|
|
@@ -87,7 +85,9 @@
|
|
|
87
85
|
"rollup-plugin-typescript2": "^0.34.1"
|
|
88
86
|
},
|
|
89
87
|
"peerDependencies": {
|
|
90
|
-
"styled-components": "^5.3.6"
|
|
88
|
+
"styled-components": "^5.3.6",
|
|
89
|
+
"react": "^18.2.0",
|
|
90
|
+
"react-dom": "^18.2.0"
|
|
91
91
|
},
|
|
92
92
|
"bugs": {
|
|
93
93
|
"url": "https://github.com/Secondstax/sscomp/issues"
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export interface AppActionsProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array with objects containing the title of the app action, the description, clearance level and action code to be passed to the component
|
|
4
|
+
*/
|
|
2
5
|
actions: {
|
|
3
6
|
title: string;
|
|
4
7
|
description: string;
|
|
5
8
|
clearanceLevel: number;
|
|
6
9
|
actionCode: string;
|
|
7
10
|
}[];
|
|
11
|
+
/**
|
|
12
|
+
* Callback function that is passed to the component to receive the selected row of app actions from the table when clicked.
|
|
13
|
+
*/
|
|
8
14
|
callback: (a: {
|
|
9
15
|
title: string;
|
|
10
16
|
description: string;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export interface AppFormsProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array with objects containing the title of the form name, form code and user type to be passed to the component
|
|
4
|
+
*/
|
|
2
5
|
forms: {
|
|
3
6
|
formName: string;
|
|
4
7
|
formCode: string;
|
|
5
8
|
userType: string;
|
|
6
9
|
}[];
|
|
10
|
+
/**
|
|
11
|
+
* Callback function that is passed to the component to receive the selected row of app forms from the table when clicked.
|
|
12
|
+
*/
|
|
7
13
|
callback: (a: {
|
|
8
14
|
formName: string;
|
|
9
15
|
formCode: string;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export interface AppModulesProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array with objects containing the title of the module name, module code and remarks to be passed to the component
|
|
4
|
+
*/
|
|
2
5
|
modules: {
|
|
3
6
|
moduleName: string;
|
|
4
7
|
moduleCode: string;
|
|
5
8
|
remarks: string;
|
|
6
9
|
}[];
|
|
10
|
+
/**
|
|
11
|
+
* Callback function that is passed to the component to receive the selected row of app module from the table when clicked.
|
|
12
|
+
*/
|
|
7
13
|
callback: (a: {
|
|
8
14
|
moduleName: string;
|
|
9
15
|
moduleCode: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AuditProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* This component lists out activities that has been performed on a certain module in Code Maintenance on the LP application.
|
|
5
|
+
*/
|
|
3
6
|
declare const AuditLog: (props: AuditProps) => JSX.Element;
|
|
4
7
|
export default AuditLog;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BankAcctsProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* This component displays a list of bank accounts associated with a provider or broker.
|
|
5
|
+
*/
|
|
3
6
|
declare const BankAccounts: (props: BankAcctsProps) => JSX.Element;
|
|
4
7
|
export default BankAccounts;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface BankAcctsProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array to be passed to the component containing objects with account number, bank name, account name, currency, swift code, a boolean to tell if the account is active, if it's the main account
|
|
4
|
+
* the logo for the bank, callback function for editing the bank account, callback function for deactivating the account and a call bak function to reactivate the account.
|
|
5
|
+
*/
|
|
2
6
|
acctDets: {
|
|
3
7
|
acctNumber: number;
|
|
4
8
|
bankName: string;
|
|
@@ -12,5 +16,8 @@ export interface BankAcctsProps {
|
|
|
12
16
|
deactivateFxn: (a?: any) => void;
|
|
13
17
|
reactivateFxn: (a?: any) => void;
|
|
14
18
|
}[];
|
|
19
|
+
/**
|
|
20
|
+
* A boolean to disable the action buttons for each bank account when an action such as getting the details of one of them is still in progress.
|
|
21
|
+
*/
|
|
15
22
|
loading: boolean;
|
|
16
23
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BankSelectorProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* In the LP application, when making an LP request, there is a stage in the process where the broker will need to select the bank account into which to receive the exchanged funds.
|
|
5
|
+
* This is the component that handles the selection of the bank account.
|
|
6
|
+
*/
|
|
3
7
|
declare const BankSelector: (props: BankSelectorProps) => JSX.Element;
|
|
4
8
|
export default BankSelector;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface BankSelectorProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array with objects containing the optional bank logo, account number, name of the bank, name on the account and the account currency that is passed to the component.
|
|
4
|
+
*/
|
|
2
5
|
bankAcct: {
|
|
3
6
|
bankLogo?: string;
|
|
4
7
|
acctNo: number;
|
|
@@ -6,6 +9,9 @@ export interface BankSelectorProps {
|
|
|
6
9
|
acctName: string;
|
|
7
10
|
currency: string;
|
|
8
11
|
}[];
|
|
12
|
+
/**
|
|
13
|
+
* Callback function that is passed to the component to receive the object of selected bank account with the account number, bank name, account name and account currency passed out as the information.
|
|
14
|
+
*/
|
|
9
15
|
selectedBank: (a: {
|
|
10
16
|
bankLogo?: string;
|
|
11
17
|
acctNo: number;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BreadcrumbType } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* The breadcrumb component lists out the path (with page names) to the page you're on
|
|
5
|
+
*/
|
|
3
6
|
declare const BreadcrumbBar: (props: BreadcrumbType) => JSX.Element;
|
|
4
7
|
export default BreadcrumbBar;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface BreadcrumbType extends React.HTMLAttributes<any> {
|
|
3
|
+
/**
|
|
4
|
+
* Array of object containing the label and url of all the individual pages that should be listed in the breadcrumb.
|
|
5
|
+
*/
|
|
3
6
|
pages: {
|
|
4
7
|
label: string;
|
|
5
8
|
url?: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface BrokersProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array containing objects with each broker by the broker ID, the broker name, email, phone, country and optional country flag
|
|
4
|
+
*/
|
|
2
5
|
brokers: {
|
|
3
6
|
brokerId: string;
|
|
4
7
|
name: string;
|
|
@@ -7,6 +10,9 @@ export interface BrokersProps {
|
|
|
7
10
|
country: string;
|
|
8
11
|
countryFlag?: string;
|
|
9
12
|
}[];
|
|
13
|
+
/**
|
|
14
|
+
* Callback function that returns the selected broker from the table with their associated information
|
|
15
|
+
*/
|
|
10
16
|
callback: (a: {
|
|
11
17
|
brokerId: string;
|
|
12
18
|
name: string;
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Colour variant of the button
|
|
5
|
-
*/
|
|
6
|
-
variant?: 'primary' | 'error' | 'warning' | 'success';
|
|
7
|
-
/**
|
|
8
|
-
* Size of the button. Whether large, medium or small
|
|
9
|
-
*/
|
|
10
|
-
size: 'lg' | 'md' | 'sm';
|
|
11
|
-
/**
|
|
12
|
-
* State of the button. Whether disabled or not.
|
|
13
|
-
*/
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* HTML or text content of the button. Essentially the label.
|
|
17
|
-
*/
|
|
18
|
-
children: any;
|
|
19
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from "./type";
|
|
20
3
|
/**
|
|
21
4
|
* Solid and Outline buttons
|
|
22
5
|
*/
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface ChartProps {
|
|
2
|
+
/**
|
|
3
|
+
* Array containing objects of the rate data, which contain the base and exchange currency, rate, the date of the rate and the percentage change in the rate.
|
|
4
|
+
*/
|
|
2
5
|
ratesData: {
|
|
3
6
|
baseCurrency: string;
|
|
4
7
|
exchCurrency: string;
|
|
@@ -6,8 +9,20 @@ export interface ChartProps {
|
|
|
6
9
|
currDate: string;
|
|
7
10
|
rateChange: number;
|
|
8
11
|
}[];
|
|
12
|
+
/**
|
|
13
|
+
* URL to the flag of the exchange currency
|
|
14
|
+
*/
|
|
9
15
|
exchCurrFlag: string;
|
|
16
|
+
/**
|
|
17
|
+
* Name of exchange currency
|
|
18
|
+
*/
|
|
10
19
|
exchCurrName: string;
|
|
20
|
+
/**
|
|
21
|
+
* Currency code of exchange currency
|
|
22
|
+
*/
|
|
11
23
|
exchCurrCode: string;
|
|
24
|
+
/**
|
|
25
|
+
* Currency code of base currency
|
|
26
|
+
*/
|
|
12
27
|
baseCurrCode: string;
|
|
13
28
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SelectorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -37,6 +37,7 @@ export { default as NewsSourceTag } from './NewsSourceTag/NewsSourceTag';
|
|
|
37
37
|
export { default as NewsTitleBar } from './NewsTitleBar/NewsTitleBar';
|
|
38
38
|
export { default as PasswordField } from './PasswordField/PasswordField';
|
|
39
39
|
export { default as PaymentMethodsTable } from './PaymentMethodsTable/PaymentMethods';
|
|
40
|
+
export { default as PopupModal } from './PopupModal/PopupModal';
|
|
40
41
|
export { default as ProvidersTable } from './ProvidersTable/ProvidersTable';
|
|
41
42
|
export { default as RateHistory } from './RateHistory/RateHistory';
|
|
42
43
|
export { default as RequestForm } from './RequestForm/RequestForm';
|