@secondstaxorg/sscomp 1.8.97 → 1.8.99

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 (51) hide show
  1. package/dist/index.es.js +297 -300
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +351 -367
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +294 -296
  6. package/dist/index.min.js.map +1 -1
  7. package/package.json +1 -1
  8. package/types/components/AppActionsTable/type.d.ts +6 -0
  9. package/types/components/AppFormsTable/type.d.ts +6 -0
  10. package/types/components/AppModulesTable/type.d.ts +5 -0
  11. package/types/components/BankAccounts/type.d.ts +8 -0
  12. package/types/components/BidsCards/type.d.ts +3 -0
  13. package/types/components/BrokersTable/type.d.ts +7 -0
  14. package/types/components/CookieConsent/type.d.ts +6 -0
  15. package/types/components/CountrySelector/type.d.ts +3 -0
  16. package/types/components/CurrencyPairs/type.d.ts +7 -0
  17. package/types/components/DatePicker/type.d.ts +6 -0
  18. package/types/components/DateRangePicker/type.d.ts +8 -0
  19. package/types/components/DocumentViewer/type.d.ts +5 -0
  20. package/types/components/DropdownList/type.d.ts +4 -0
  21. package/types/components/ExchangeRates/type.d.ts +4 -0
  22. package/types/components/FileUpload/type.d.ts +7 -0
  23. package/types/components/Indices/type.d.ts +4 -0
  24. package/types/components/LPRequestTable/type.d.ts +18 -0
  25. package/types/components/MarketData/type.d.ts +3 -0
  26. package/types/components/MarketMovers/type.d.ts +5 -0
  27. package/types/components/NewsFilterBar/type.d.ts +6 -0
  28. package/types/components/NumberField/type.d.ts +4 -0
  29. package/types/components/OffersCard/style.d.ts +1 -0
  30. package/types/components/OffersCard/type.d.ts +10 -0
  31. package/types/components/Pagination/type.d.ts +4 -0
  32. package/types/components/PasswordField/type.d.ts +3 -0
  33. package/types/components/PaymentMethodsTable/type.d.ts +7 -0
  34. package/types/components/PhoneInput/type.d.ts +5 -0
  35. package/types/components/ProvidersTable/type.d.ts +7 -0
  36. package/types/components/RateHistory/type.d.ts +4 -0
  37. package/types/components/ReportsTable/type.d.ts +10 -0
  38. package/types/components/RequestForm/type.d.ts +9 -0
  39. package/types/components/SearchResultsBar/type.d.ts +4 -0
  40. package/types/components/Selector/types.d.ts +4 -0
  41. package/types/components/SideModal/type.d.ts +3 -0
  42. package/types/components/SignatureField/type.d.ts +10 -0
  43. package/types/components/SystemConfigTable/type.d.ts +7 -0
  44. package/types/components/TextArea/type.d.ts +3 -0
  45. package/types/components/TextField/type.d.ts +3 -0
  46. package/types/components/TransactionDetails/type.d.ts +8 -0
  47. package/types/components/TransactionDetailsWithPayment/type.d.ts +11 -0
  48. package/types/components/UpdateUserActions/type.d.ts +4 -0
  49. package/types/components/UserActions/type.d.ts +4 -0
  50. package/types/components/UserRolesTable/type.d.ts +6 -0
  51. package/types/components/UsersTable/type.d.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.8.97",
3
+ "version": "1.8.99",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -17,4 +17,10 @@ export interface AppActionsProps {
17
17
  clearanceLevel: number;
18
18
  actionCode: string;
19
19
  }) => void;
20
+ labelOverrides?: {
21
+ title?: string;
22
+ description?: string;
23
+ clearanceLevel?: string;
24
+ emptyMsg?: string;
25
+ };
20
26
  }
@@ -15,4 +15,10 @@ export interface AppFormsProps {
15
15
  formCode: string;
16
16
  userType: string;
17
17
  }) => void;
18
+ labelOverrides?: {
19
+ formName?: string;
20
+ formCode?: string;
21
+ authUserType?: string;
22
+ emptyMsg?: string;
23
+ };
18
24
  }
@@ -15,4 +15,9 @@ export interface AppModulesProps {
15
15
  moduleCode: string;
16
16
  remarks: string;
17
17
  }) => void;
18
+ labelOverrides?: {
19
+ moduleName?: string;
20
+ moduleCode?: string;
21
+ remarks?: string;
22
+ };
18
23
  }
@@ -20,4 +20,12 @@ export interface BankAcctsProps {
20
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
21
  */
22
22
  loading: boolean;
23
+ labelOverrides?: {
24
+ acctName?: string;
25
+ currency?: string;
26
+ swiftCode?: string;
27
+ edit?: string;
28
+ deactivate?: string;
29
+ reactivate?: string;
30
+ };
23
31
  }
@@ -12,4 +12,7 @@ export interface BidsProps {
12
12
  providerId: string;
13
13
  rate: number;
14
14
  }[];
15
+ labelOverrides?: {
16
+ selected?: string;
17
+ };
15
18
  }
@@ -21,4 +21,11 @@ export interface BrokersProps {
21
21
  country: string;
22
22
  countryFlag?: string;
23
23
  }) => void;
24
+ labelOverrides?: {
25
+ name?: string;
26
+ email?: string;
27
+ phone?: string;
28
+ country?: string;
29
+ emptyMsg?: string;
30
+ };
24
31
  }
@@ -11,4 +11,10 @@ export interface CookieConsentProps {
11
11
  * Function that should be run to close the dialogue
12
12
  */
13
13
  closeFxn?: () => void;
14
+ labelOverrides?: {
15
+ title?: string;
16
+ message?: string;
17
+ accept?: string;
18
+ decline?: string;
19
+ };
14
20
  }
@@ -43,6 +43,9 @@ export interface SelectorProps {
43
43
  * Array containing list of items to be bubbled up to the top above all others
44
44
  */
45
45
  priorityOptions?: string[];
46
+ labelOverrides?: {
47
+ search?: string;
48
+ };
46
49
  }
47
50
  export declare type optionType = {
48
51
  optionName: string;
@@ -21,4 +21,11 @@ export interface CurrencyPairsProps {
21
21
  exchangeFlag: string;
22
22
  pairName: string;
23
23
  }) => void;
24
+ labelOverrides?: {
25
+ pairCode?: string;
26
+ baseCurrency?: string;
27
+ exchangeCurrency?: string;
28
+ pairName?: string;
29
+ emptyMsg?: string;
30
+ };
24
31
  }
@@ -47,4 +47,10 @@ export interface DatePickerProps {
47
47
  * Specify whether the component is a readonly field
48
48
  */
49
49
  readonly?: boolean;
50
+ labelOverrides?: {
51
+ errMsg?: string;
52
+ daysOfWeek?: string[];
53
+ monthsOfYear?: string[];
54
+ placeholder?: string;
55
+ };
50
56
  }
@@ -35,4 +35,12 @@ export interface DateRangePickerProps {
35
35
  * Specify to disable past dates
36
36
  */
37
37
  disablePastDays?: boolean;
38
+ labelOverrides?: {
39
+ reset?: string;
40
+ apply?: string;
41
+ cancel?: string;
42
+ daysOfWeek?: string[];
43
+ monthsOfYear?: string[];
44
+ placeholder?: string;
45
+ };
38
46
  }
@@ -12,6 +12,11 @@ export interface PDFViewerProps {
12
12
  * Callback function to close the viewer
13
13
  */
14
14
  closeBtnFn?: (a: boolean) => void;
15
+ labelOverrides?: {
16
+ nextFile?: string;
17
+ prevFile?: string;
18
+ of?: string;
19
+ };
15
20
  }
16
21
  export declare type filesType = {
17
22
  fileUrl: string;
@@ -49,4 +49,8 @@ export interface DropdownProps {
49
49
  * Specify whether the component is a readonly field
50
50
  */
51
51
  readonly?: boolean;
52
+ labelOverrides?: {
53
+ search?: string;
54
+ requiredField?: string;
55
+ };
52
56
  }
@@ -23,4 +23,8 @@ export interface ExchangeRatesProps {
23
23
  rate: number;
24
24
  currFlag: string;
25
25
  }[];
26
+ labelOverrides?: {
27
+ lastUpdated?: string;
28
+ source?: string;
29
+ };
26
30
  }
@@ -23,4 +23,11 @@ export interface FileUploadProps {
23
23
  * Maximum file size acceptable in Kilobytes
24
24
  **/
25
25
  maxFileSize?: number;
26
+ labelOverrides?: {
27
+ requiredField?: string;
28
+ acceptedFiles?: string;
29
+ maxSize?: string;
30
+ selectFile?: string;
31
+ noFileSelected?: string;
32
+ };
26
33
  }
@@ -15,4 +15,8 @@ export interface IndicesType {
15
15
  * Date when the data was last updated
16
16
  */
17
17
  lastUpdated: string;
18
+ labelOverrides?: {
19
+ lastUpdated?: string;
20
+ source?: string;
21
+ };
18
22
  }
@@ -47,4 +47,22 @@ export interface RequestsProps {
47
47
  * Boolean to display a column in the table for the broker
48
48
  */
49
49
  showBroker?: boolean;
50
+ labelOverrides?: {
51
+ provider?: string;
52
+ broker?: string;
53
+ clientId?: string;
54
+ trxId?: string;
55
+ trxAmt?: string;
56
+ status?: string;
57
+ date?: string;
58
+ emptyMsg?: string;
59
+ beginTrx?: string;
60
+ new?: string;
61
+ pendingPayment?: string;
62
+ sentToLp?: string;
63
+ confirmedWithLp?: string;
64
+ processingAtLp?: string;
65
+ complete?: string;
66
+ cancelled?: string;
67
+ };
50
68
  }
@@ -3,6 +3,9 @@ export interface MarketDataProps {
3
3
  * Array of data to be displayed in the cards
4
4
  */
5
5
  marketData: MarketDataItem[];
6
+ labelOverrides?: {
7
+ lastUpdated?: string;
8
+ };
6
9
  }
7
10
  export declare type MarketDataItem = {
8
11
  market: string;
@@ -15,4 +15,9 @@ export interface MarketMoversProps {
15
15
  * Date when the data was last updated
16
16
  */
17
17
  lastUpdated: string;
18
+ labelOverrides?: {
19
+ gainers?: string;
20
+ losers?: string;
21
+ lastUpdated?: string;
22
+ };
18
23
  }
@@ -26,4 +26,10 @@ export interface NewsFilterProps extends React.HTMLAttributes<any> {
26
26
  * Theme of the component whether to be in light mode or dark
27
27
  */
28
28
  theme: 'light' | 'dark';
29
+ labelOverrides?: {
30
+ title?: string;
31
+ selectCountryPlaceholder?: string;
32
+ selectOutletPlaceholder?: string;
33
+ allOption?: string;
34
+ };
29
35
  }
@@ -56,4 +56,8 @@ export interface NumberFieldProps extends Omit<React.ComponentPropsWithoutRef<'i
56
56
  * Specify the acceptable range of value
57
57
  */
58
58
  valueRange?: [number, number];
59
+ labelOverrides?: {
60
+ rangeErrMsg?: string;
61
+ requiredFieldMsg?: string;
62
+ };
59
63
  }
@@ -8,6 +8,7 @@ export declare const LoadingContent: import("styled-components").StyledComponent
8
8
  export declare const Offers: import("styled-components").StyledComponent<"div", any, {}, never>;
9
9
  export declare const OfferItem: import("styled-components").StyledComponent<"div", any, {}, never>;
10
10
  export declare const OfferInfo: import("styled-components").StyledComponent<"div", any, {}, never>;
11
+ export declare const OfferButton: import("styled-components").StyledComponent<"div", any, {}, never>;
11
12
  export declare const ProviderInfo: import("styled-components").StyledComponent<"div", any, {}, never>;
12
13
  export declare const ProviderNameDelivery: import("styled-components").StyledComponent<"div", any, {}, never>;
13
14
  export declare const RateInfo: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -37,4 +37,14 @@ export interface OffersProps {
37
37
  * Boolean to specify whether there's data available
38
38
  */
39
39
  dataAvailable: boolean;
40
+ labelOverrides?: {
41
+ bestRates?: string;
42
+ recommended?: string;
43
+ availableOffers?: string;
44
+ allOffersFound?: string;
45
+ sortBy?: string;
46
+ emptyAvailableOffers?: string;
47
+ deliveryTime?: string;
48
+ noProvidersFound?: string;
49
+ };
40
50
  }
@@ -15,4 +15,8 @@ export interface PaginationProps {
15
15
  * Callback function that returns the set of items that have been paginated based on the number of items per page
16
16
  */
17
17
  paginatedItems: (arr: []) => void;
18
+ labelOverrides?: {
19
+ of?: string;
20
+ goTo?: string;
21
+ };
18
22
  }
@@ -21,4 +21,7 @@ export interface PasswordFieldProps extends React.InputHTMLAttributes<HTMLInputE
21
21
  */
22
22
  placeholder?: string;
23
23
  width?: number;
24
+ labelOverrides?: {
25
+ requiredFieldMsg?: string;
26
+ };
24
27
  }
@@ -17,4 +17,11 @@ export interface PaymentMethodsProps {
17
17
  pymtModeShortName: string;
18
18
  remarks: string;
19
19
  }) => void;
20
+ labelOverrides?: {
21
+ code?: string;
22
+ name?: string;
23
+ shortName?: string;
24
+ remarks?: string;
25
+ emptyMsg?: string;
26
+ };
20
27
  }
@@ -46,6 +46,11 @@ export interface PhoneInputProps {
46
46
  * Specify whether the component is a readonly field
47
47
  */
48
48
  readonly?: boolean;
49
+ labelOverrides?: {
50
+ selectCountryCodeMsg?: string;
51
+ requiredFieldMsg?: string;
52
+ searchCountryPlaceholder?: string;
53
+ };
49
54
  }
50
55
  export declare type countryCodesType = {
51
56
  "country": string;
@@ -7,6 +7,13 @@ export interface ProvidersProps {
7
7
  * Callback function to receive the selected provider when clicked
8
8
  */
9
9
  callback: (a: providersType) => void;
10
+ labelOverrides?: {
11
+ name?: string;
12
+ email?: string;
13
+ phone?: string;
14
+ status?: string;
15
+ emptyMsg?: string;
16
+ };
10
17
  }
11
18
  export declare type Status = "active" | "inactive";
12
19
  export declare type providersType = {
@@ -12,4 +12,8 @@ export interface RateHistoryProps {
12
12
  startDate: string;
13
13
  endDate: string;
14
14
  }[];
15
+ labelOverrides?: {
16
+ to?: string;
17
+ emptyMsg?: string;
18
+ };
15
19
  }
@@ -27,4 +27,14 @@ export interface ReportsProps {
27
27
  currencyFlag: string;
28
28
  dateAdded: string;
29
29
  }) => void;
30
+ labelOverrides?: {
31
+ clientId?: string;
32
+ symbol?: string;
33
+ ticker?: string;
34
+ price?: string;
35
+ quantity?: string;
36
+ amount?: string;
37
+ dateAdded?: string;
38
+ emptyMsg?: string;
39
+ };
30
40
  }
@@ -24,4 +24,13 @@ export interface RequestFormProps {
24
24
  quantity: number;
25
25
  baseCurrency: string;
26
26
  }) => void;
27
+ labelOverrides?: {
28
+ symbol?: string;
29
+ price?: string;
30
+ quantity?: string;
31
+ currencyIHave?: string;
32
+ viewOffers?: string;
33
+ selectCountry?: string;
34
+ selectSymbol?: string;
35
+ };
27
36
  }
@@ -11,4 +11,8 @@ export interface NewsBarProps {
11
11
  * Number of items from the total that are being displayed
12
12
  */
13
13
  resultsDisplayed?: number;
14
+ labelOverrides?: {
15
+ searchTerm?: string;
16
+ showingResMsg?: string;
17
+ };
14
18
  }
@@ -62,6 +62,10 @@ export interface SelectorProps {
62
62
  * Specify whether the component is a readonly field
63
63
  */
64
64
  readonly?: boolean;
65
+ labelOverrides?: {
66
+ otherSpecify?: string;
67
+ selectOptionMsg?: string;
68
+ };
65
69
  }
66
70
  export declare type itemType = {
67
71
  label: string;
@@ -8,4 +8,7 @@ export interface SideModalProps {
8
8
  children: JSX.Element;
9
9
  navAreaText?: string;
10
10
  navButtonAction?: () => void;
11
+ labelOverrides?: {
12
+ goBack?: string;
13
+ };
11
14
  }
@@ -6,4 +6,14 @@ export interface SignatureProps {
6
6
  previewUrl?: string;
7
7
  disableTypeField?: boolean;
8
8
  disableUploadField?: boolean;
9
+ labelOverrides?: {
10
+ uploadSignature?: string;
11
+ nothingSelected?: string;
12
+ chooseFile?: string;
13
+ allowedFiles?: string;
14
+ maxFile?: string;
15
+ typeSignatureLabel?: string;
16
+ typeSignaturePlaceholder?: string;
17
+ removeFile?: string;
18
+ };
9
19
  }
@@ -17,4 +17,11 @@ export interface SystemConfigProps {
17
17
  configValue: string;
18
18
  remarks: string;
19
19
  }) => void;
20
+ labelOverrides?: {
21
+ code?: string;
22
+ name?: string;
23
+ value?: string;
24
+ remarks?: string;
25
+ emptyMsg?: string;
26
+ };
20
27
  }
@@ -24,4 +24,7 @@ export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextArea
24
24
  * Specify whether the component is a readonly field
25
25
  */
26
26
  readonly?: boolean;
27
+ labelOverrides?: {
28
+ errMsg?: string;
29
+ };
27
30
  }
@@ -17,4 +17,7 @@ export interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputEleme
17
17
  */
18
18
  initialVal?: string | number;
19
19
  width?: number | 'fit-content' | '100%';
20
+ labelOverrides?: {
21
+ errMsg?: string;
22
+ };
20
23
  }
@@ -40,4 +40,12 @@ export interface TxnDetsProps {
40
40
  acctName: string;
41
41
  acctCurr: string;
42
42
  };
43
+ labelOverrides?: {
44
+ clientId?: string;
45
+ requestedBy?: string;
46
+ requestDate?: string;
47
+ amount?: string;
48
+ provider?: string;
49
+ destinationAcct?: string;
50
+ };
43
51
  }
@@ -36,4 +36,15 @@ export interface TxnDetsWPymntProps {
36
36
  bankName: string;
37
37
  paymentRemarks: string;
38
38
  };
39
+ labelOverrides?: {
40
+ amount?: string;
41
+ provider?: string;
42
+ requestedBy?: string;
43
+ requestDate?: string;
44
+ paymentMethod?: string;
45
+ payeeName?: string;
46
+ bankName?: string;
47
+ bankCountry?: string;
48
+ remarks?: string;
49
+ };
39
50
  }
@@ -28,4 +28,8 @@ export interface UpdateUserActionsProps {
28
28
  added: [];
29
29
  removed: [];
30
30
  }) => void;
31
+ labelOverrides?: {
32
+ noActionsAvailable?: string;
33
+ noActionsAdded?: string;
34
+ };
31
35
  }
@@ -35,4 +35,8 @@ export interface UserActionsProps {
35
35
  added: [];
36
36
  removed: [];
37
37
  }) => void;
38
+ labelOverrides?: {
39
+ noActionsAvailable?: string;
40
+ noActionsAdded?: string;
41
+ };
38
42
  }
@@ -15,4 +15,10 @@ export interface UserRolesProps {
15
15
  roleCode: string;
16
16
  clearanceLevel: number;
17
17
  }) => void;
18
+ labelOverrides?: {
19
+ name?: string;
20
+ code?: string;
21
+ clearanceLevel?: string;
22
+ emptyMsg?: string;
23
+ };
18
24
  }
@@ -20,4 +20,12 @@ export interface UserTableType {
20
20
  role: string;
21
21
  status: string;
22
22
  }) => void;
23
+ labelOverrides?: {
24
+ name?: string;
25
+ organisation?: string;
26
+ email?: string;
27
+ role?: string;
28
+ status?: string;
29
+ emptyMsg?: string;
30
+ };
23
31
  }