@secondstaxorg/sscomp 1.7.53 → 1.7.55
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 +229 -218
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +489 -311
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +223 -212
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/Accordion/type.d.ts +2 -2
- package/types/components/DatePicker/type.d.ts +8 -3
- package/types/components/EmailField/EmailField.d.ts +1 -1
- package/types/components/EmailField/type.d.ts +1 -1
- package/types/components/NumberField/style.d.ts +5 -0
- package/types/components/NumberField/type.d.ts +42 -0
package/package.json
CHANGED
|
@@ -12,9 +12,9 @@ export interface AccordionProps {
|
|
|
12
12
|
label: string;
|
|
13
13
|
}) => void;
|
|
14
14
|
/**
|
|
15
|
-
* Optional, specify the array index (counting from 0) for which
|
|
15
|
+
* Optional, specify the array index (counting from 0) in an array or as a single number for which accordions to have expanded on page load
|
|
16
16
|
* */
|
|
17
|
-
defaultExpanded?: number;
|
|
17
|
+
defaultExpanded?: number[] | number;
|
|
18
18
|
onDelete?: ({}: {}) => void;
|
|
19
19
|
}
|
|
20
20
|
export declare type AccordionsType = {
|
|
@@ -31,7 +31,12 @@ export interface DatePickerProps {
|
|
|
31
31
|
* Specify whether the field is a required field
|
|
32
32
|
*/
|
|
33
33
|
required?: boolean;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Number of years back to exclude from valid years.
|
|
36
|
+
*/
|
|
37
|
+
minYear?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Initial value to be displayed when the component is rendered.
|
|
40
|
+
*/
|
|
41
|
+
value?: Date;
|
|
37
42
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { EmailFieldProps } from "./type";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* This component is used to render an email field. The email field validates the value of the input against a valid email address.
|
|
5
5
|
*/
|
|
6
6
|
declare const EmailField: (props: EmailFieldProps) => JSX.Element;
|
|
7
7
|
export default EmailField;
|
|
@@ -11,6 +11,6 @@ export interface EmailFieldProps extends React.InputHTMLAttributes<HTMLInputElem
|
|
|
11
11
|
/**
|
|
12
12
|
* The initial value of the field to be displayed in the component
|
|
13
13
|
*/
|
|
14
|
-
initialVal?: string
|
|
14
|
+
initialVal?: string;
|
|
15
15
|
width?: number | 'fit-content' | '100%';
|
|
16
16
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const InputLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const MainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const InputField: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
4
|
+
export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const ErrorMessage: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface AmountFieldProps {
|
|
2
|
+
/**
|
|
3
|
+
* Label of the input field
|
|
4
|
+
*/
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Subtext of the label
|
|
8
|
+
*/
|
|
9
|
+
subtext?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Custom error message to be displayed in the case of an error
|
|
12
|
+
*/
|
|
13
|
+
errMsg?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Width of the component when rendered
|
|
16
|
+
*/
|
|
17
|
+
width?: number | 'fit-content' | '100%';
|
|
18
|
+
/**
|
|
19
|
+
* When supplied the component can be rendered as an amount field
|
|
20
|
+
*/
|
|
21
|
+
currencyFlagPath?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Default value to be passed to the component to be displayed when rendered
|
|
24
|
+
*/
|
|
25
|
+
value?: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* Value that gets output when the component is typed in
|
|
28
|
+
*/
|
|
29
|
+
onChange: (a: string) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Specify whether the component should be disabled
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Specify whether this is a required field
|
|
36
|
+
*/
|
|
37
|
+
required?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Specify a placeholder text for the input
|
|
40
|
+
*/
|
|
41
|
+
placeholder?: string;
|
|
42
|
+
}
|