@secondstaxorg/sscomp 1.9.92 → 1.9.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.9.92",
3
+ "version": "1.9.94",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -39,6 +39,10 @@ export interface SelectorProps {
39
39
  * Specify whether the component is a readonly field
40
40
  */
41
41
  readonly?: boolean;
42
+ /**
43
+ * specify whether the component should fallback to internal countries list
44
+ */
45
+ countryListFallback?: boolean;
42
46
  /**
43
47
  * Array containing list of items to be bubbled up to the top above all others
44
48
  */
@@ -7,5 +7,5 @@ export interface DoughnutChartType {
7
7
  backgroundColor?: string[];
8
8
  }[];
9
9
  showLabels?: boolean;
10
- labelArrangement: 'vertical' | 'horizontal';
10
+ labelArrangement: 'vertical' | 'horizontal' | 'side';
11
11
  }
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import './style.css';
3
2
  import { LoaderProps } from "./type";
4
3
  /**
5
4
  * Component for displaying a loading spinner for when data is being loaded
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PasswordMeterProps } from "./type";
3
+ declare const PasswordMeter: (props: PasswordMeterProps) => JSX.Element;
4
+ export default PasswordMeter;
@@ -0,0 +1,3 @@
1
+ export declare const PasswordStrength: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const PasswordRequirements: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const PwReqContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,13 @@
1
+ export interface PasswordMeterProps {
2
+ password: string;
3
+ labelOverrides?: pwMeterLabelOverrides;
4
+ requirementsMet: (status: boolean) => void;
5
+ }
6
+ export declare type pwMeterLabelOverrides = {
7
+ pwRequirements?: string;
8
+ minChars?: string;
9
+ oneLowercase?: string;
10
+ oneUppercase?: string;
11
+ oneNumber?: string;
12
+ oneSpecialChar?: string;
13
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SetPasswordProps } from "./type";
3
+ import '../../styles/typography.css';
4
+ declare const SetPassword: (props: SetPasswordProps) => JSX.Element;
5
+ export default SetPassword;
@@ -0,0 +1,2 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const Title: import("styled-components").StyledComponent<"h4", any, {}, never>;
@@ -0,0 +1,54 @@
1
+ import { pwMeterLabelOverrides } from "../PasswordMeter/type";
2
+ export interface SetPasswordProps {
3
+ /**
4
+ * Show or hide password meter
5
+ */
6
+ hidePasswordMeter?: boolean;
7
+ /**
8
+ * Callback function for when the status of the form whether it's been completed
9
+ */
10
+ formComplete: (status: boolean) => void;
11
+ /**
12
+ * If available, the email address to be displayed if not to be entered by the user
13
+ */
14
+ userEmail?: string;
15
+ /**
16
+ * Display all text in the UI in alternative text or translation
17
+ */
18
+ labelOverrides?: {
19
+ emailAddress?: string;
20
+ verificationCode?: string;
21
+ password?: string;
22
+ title?: string;
23
+ emailPlaceholder?: string;
24
+ verificationCodePlaceholder?: string;
25
+ setPassword?: string;
26
+ responseSuccessHeadingText?: string;
27
+ responseSuccessSubText?: string;
28
+ responseFailHeadingText?: string;
29
+ responseFailSubText?: string;
30
+ soundsGood?: string;
31
+ tryAgain?: string;
32
+ pwMeterLO?: pwMeterLabelOverrides;
33
+ };
34
+ /**
35
+ * When form is completed, this is a callback for when the fields in the form have been filled
36
+ */
37
+ values: (val: {
38
+ verificationCode: string;
39
+ password: string;
40
+ email?: string;
41
+ }) => void;
42
+ /**
43
+ * URL of endpoint to which new password shall be sent
44
+ */
45
+ pwResetUrl: string;
46
+ /**
47
+ * Function to call after the password has been set
48
+ */
49
+ redirectFn: () => void;
50
+ /**
51
+ * Function to get the response when the request is successful
52
+ */
53
+ pwResetResponse?: (resp: any) => void;
54
+ }
@@ -85,3 +85,4 @@ export { default as DetailField } from './DetailField/DetailField';
85
85
  export { default as MultipleFileUpload } from './MultipleFileUpload/MultipleFileUpload';
86
86
  export { default as AmountInput } from './AmountInput/AmountInput';
87
87
  export { default as ForgotPasswordForm } from './ForgotPasswordForm/ForgotPasswordForm';
88
+ export { default as SetPassword } from './SetPassword/SetPassword';
@@ -1,10 +0,0 @@
1
- declare type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2
- interface iApiRequest {
3
- url: string;
4
- method: Method;
5
- data?: any;
6
- headers?: any;
7
- }
8
- declare function createRequest(params: iApiRequest): Promise<any>;
9
- export declare const axiosSend: typeof createRequest;
10
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { PDFViewerProps } from "./type";
3
- import '../../styles/typography.css';
4
- /**
5
- * For viewing PDF documents
6
- */
7
- declare const PDFViewer: (props: PDFViewerProps) => JSX.Element;
8
- export default PDFViewer;
@@ -1,4 +0,0 @@
1
- export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const ViewerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const DocumentNavigation: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const PageNavigation: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- export interface PDFViewerProps {
3
- files: filesType[];
4
- actionArea?: React.ReactNode;
5
- closeBtnFn?: (a: boolean) => void;
6
- }
7
- declare type filesType = {
8
- fileUrl: string;
9
- fileName?: string;
10
- };
11
- export {};
@@ -1,6 +0,0 @@
1
- export declare const countries: {
2
- code: string;
3
- country: string;
4
- flag: string;
5
- dial_code: string;
6
- }[];