@secondstaxorg/sscomp 1.4.1 → 1.4.3

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.
Files changed (29) hide show
  1. package/dist/index.es.js +30 -13
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +295 -267
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +20 -3
  6. package/dist/index.min.js.map +1 -1
  7. package/package.json +1 -1
  8. package/types/components/ActionFailed/ActionFailed.d.ts +0 -3
  9. package/types/components/ActionSuccess/ActionSuccess.d.ts +3 -0
  10. package/types/components/ActionSuccess/type.d.ts +6 -0
  11. package/types/components/AppActionsTable/AppActionsTable.d.ts +3 -0
  12. package/types/components/AppActionsTable/type.d.ts +6 -0
  13. package/types/components/AppFormsTable/AppFormsTable.d.ts +3 -0
  14. package/types/components/AppFormsTable/type.d.ts +6 -0
  15. package/types/components/AppModulesTable/AppModulesTable.d.ts +3 -0
  16. package/types/components/AppModulesTable/type.d.ts +6 -0
  17. package/types/components/AuditLog/AuditLog.d.ts +3 -0
  18. package/types/components/AuditLog/type.d.ts +3 -0
  19. package/types/components/BankAccounts/BankAccounts.d.ts +3 -0
  20. package/types/components/BankAccounts/type.d.ts +7 -0
  21. package/types/components/BankSelector/BankSelector.d.ts +4 -0
  22. package/types/components/BankSelector/type.d.ts +6 -0
  23. package/types/components/BreadcrumbBar/BreadcrumbBar.d.ts +3 -0
  24. package/types/components/BreadcrumbBar/type.d.ts +3 -0
  25. package/types/components/BrokersTable/BrokersTable.d.ts +3 -0
  26. package/types/components/BrokersTable/type.d.ts +6 -0
  27. package/types/components/Button/Button.d.ts +2 -19
  28. package/types/components/Chart/Chart.d.ts +3 -0
  29. package/types/components/Chart/type.d.ts +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.4.01",
3
+ "version": "1.4.3",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -1,7 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ActionFailedProps } from "./type";
3
- /**
4
- * Solid button
5
- */
6
3
  export declare const ActionFailed: (props: ActionFailedProps) => JSX.Element;
7
4
  export default ActionFailed;
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ActionSuccessProps } from "./type";
3
+ /**
4
+ * Message status of an action whether it succeeded or failed.
5
+ */
3
6
  declare const ActionSuccess: (props: ActionSuccessProps) => JSX.Element;
4
7
  export default ActionSuccess;
@@ -1,4 +1,10 @@
1
1
  export interface ActionSuccessProps {
2
+ /**
3
+ * Main optional text as the title of the status
4
+ */
2
5
  headingText?: string;
6
+ /**
7
+ * Optional sub text as the actual message of the status
8
+ */
3
9
  subText?: string;
4
10
  }
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { AppActionsProps } from "./type";
3
+ /**
4
+ * Table view of App Actions on Code Maintenance in LP Application
5
+ */
3
6
  declare const AppActionsTable: (props: AppActionsProps) => JSX.Element;
4
7
  export default AppActionsTable;
@@ -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,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { AppFormsProps } from "./type";
3
+ /**
4
+ * Table view of App Actions on Code Maintenance in LP Application
5
+ */
3
6
  declare const AppFormsTable: (props: AppFormsProps) => JSX.Element;
4
7
  export default AppFormsTable;
@@ -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,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { AppModulesProps } from "./type";
3
+ /**
4
+ * Table view of App Modules in Code Maintenance in LP Application
5
+ */
3
6
  declare const AppModulesTable: (props: AppModulesProps) => JSX.Element;
4
7
  export default AppModulesTable;
@@ -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
  export interface AuditProps {
2
+ /**
3
+ * An array containing objects detailing the timestamp, the user, the description of the action and an optional reference ID for the action.
4
+ */
2
5
  logDetails: {
3
6
  timestamp: string;
4
7
  user: string;
@@ -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
  /// <reference types="react" />
2
2
  import { BrokersProps } from "./type";
3
+ /**
4
+ * A list of all brokers that have been registered on to the LP platform
5
+ */
3
6
  declare const BrokersTable: (props: BrokersProps) => JSX.Element;
4
7
  export default BrokersTable;
@@ -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
- import React from "react";
2
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
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
  /// <reference types="react" />
2
2
  import { ChartProps } from "./type";
3
+ /**
4
+ * This component displays a historical chart of currency performance between selected currencies.
5
+ */
3
6
  declare const Chart: (props: ChartProps) => JSX.Element;
4
7
  export default Chart;
@@ -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
  }