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