@secondstaxorg/sscomp 1.7.68 → 1.7.71
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 +14 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +338 -304
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +8 -6
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/CountrySelector/type.d.ts +7 -0
- package/types/components/DatePicker/type.d.ts +4 -0
- package/types/components/DateRangePicker/type.d.ts +4 -0
- package/types/components/DropdownList/type.d.ts +4 -0
- package/types/components/NumberField/NumberField.d.ts +3 -2
- package/types/components/NumberField/type.d.ts +5 -1
- package/types/components/PhoneInput/type.d.ts +7 -0
- package/types/components/Selector/types.d.ts +4 -0
- package/types/components/TextArea/type.d.ts +7 -0
- package/types/components/TextField/type.d.ts +7 -0
package/package.json
CHANGED
|
@@ -32,9 +32,16 @@ export interface SelectorProps {
|
|
|
32
32
|
* Division in the list to segment different groups of options
|
|
33
33
|
*/
|
|
34
34
|
sectionTitle?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specify that the component is a required field
|
|
37
|
+
* */
|
|
35
38
|
required?: boolean;
|
|
36
39
|
/**
|
|
37
40
|
* Input name as is with html input tag
|
|
38
41
|
* */
|
|
39
42
|
inputName?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Specify whether the component is a readonly field
|
|
45
|
+
*/
|
|
46
|
+
readonly?: boolean;
|
|
40
47
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { NumberFieldProps } from "./type";
|
|
3
|
+
import '../../styles/typography.css';
|
|
3
4
|
/**
|
|
4
5
|
* This component is used to render a number or amount field. The latter is rendered when `currencyFlagPath` prop is supplied.
|
|
5
6
|
*/
|
|
6
|
-
declare const NumberField: (props:
|
|
7
|
+
declare const NumberField: (props: NumberFieldProps) => JSX.Element;
|
|
7
8
|
export default NumberField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface NumberFieldProps {
|
|
2
2
|
/**
|
|
3
3
|
* Label of the input field
|
|
4
4
|
*/
|
|
@@ -39,4 +39,8 @@ export interface AmountFieldProps {
|
|
|
39
39
|
* Specify a placeholder text for the input
|
|
40
40
|
*/
|
|
41
41
|
placeholder?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Specify whether the component is a readonly field
|
|
44
|
+
*/
|
|
45
|
+
readonly?: boolean;
|
|
42
46
|
}
|
|
@@ -35,10 +35,17 @@ export interface PhoneInputProps {
|
|
|
35
35
|
* Input name as is with html input tag
|
|
36
36
|
* */
|
|
37
37
|
inputName: string;
|
|
38
|
+
/**
|
|
39
|
+
* Onchange function when user is making an input
|
|
40
|
+
* */
|
|
38
41
|
onChange: (value: {
|
|
39
42
|
countryCode: string;
|
|
40
43
|
phoneNumber: number;
|
|
41
44
|
}) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Specify whether the component is a readonly field
|
|
47
|
+
*/
|
|
48
|
+
readonly?: boolean;
|
|
42
49
|
}
|
|
43
50
|
export declare type countryCodesType = {
|
|
44
51
|
"country": string;
|
|
@@ -16,5 +16,12 @@ export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextArea
|
|
|
16
16
|
* Initial value to be displayed
|
|
17
17
|
*/
|
|
18
18
|
initialVal?: string | number;
|
|
19
|
+
/**
|
|
20
|
+
* Specify the width of the component
|
|
21
|
+
*/
|
|
19
22
|
width?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Specify whether the component is a readonly field
|
|
25
|
+
*/
|
|
26
|
+
readonly?: boolean;
|
|
20
27
|
}
|
|
@@ -16,5 +16,12 @@ export interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
16
16
|
* The initial value of the field to be displayed in the component
|
|
17
17
|
*/
|
|
18
18
|
initialVal?: string | number;
|
|
19
|
+
/**
|
|
20
|
+
* Specify the width of the component
|
|
21
|
+
*/
|
|
19
22
|
width?: number | 'fit-content' | '100%';
|
|
23
|
+
/**
|
|
24
|
+
* Specify whether the component is a readonly field
|
|
25
|
+
*/
|
|
26
|
+
readonly?: boolean;
|
|
20
27
|
}
|