@secondstaxorg/sscomp 1.9.62 → 1.9.64
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 +619 -361
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3681 -2156
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +626 -368
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/AmountInput/AmountInput.d.ts +8 -0
- package/types/components/AmountInput/countries.d.ts +6 -0
- package/types/components/AmountInput/country-codes.d.ts +5 -0
- package/types/components/AmountInput/style.d.ts +7 -0
- package/types/components/AmountInput/type.d.ts +68 -0
- package/types/components/PhoneInput/type.d.ts +5 -1
- package/types/components/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AmountInputProps } from "./type";
|
|
3
|
+
import "../../styles/typography.css";
|
|
4
|
+
/**
|
|
5
|
+
* Dropdown component for selecting from a list of options
|
|
6
|
+
*/
|
|
7
|
+
declare const AmountInput: (props: AmountInputProps) => JSX.Element;
|
|
8
|
+
export default AmountInput;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const InputLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const FieldContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const DropdownField: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const DisabledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const DropdownIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const OptionsList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const DropdownOption: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface AmountInputProps {
|
|
2
|
+
/**
|
|
3
|
+
* Currency code to be displayed on page load
|
|
4
|
+
*/
|
|
5
|
+
initialCurrencyCode?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Amount to be displayed on page load
|
|
8
|
+
*/
|
|
9
|
+
initialAmount?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Placeholder text to be displayed in the field
|
|
12
|
+
*/
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Function to receive the object of the selected currency
|
|
16
|
+
*/
|
|
17
|
+
selectedCurrency?: (a: currencyCodesType) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Boolean to specify whether the field is active or disabled
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Label of the field
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Specify the width of the component
|
|
28
|
+
*/
|
|
29
|
+
width?: number | "fit-content";
|
|
30
|
+
/**
|
|
31
|
+
* Boolean to specify whether the field is required
|
|
32
|
+
*/
|
|
33
|
+
required?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Input name as is with html input tag
|
|
36
|
+
* */
|
|
37
|
+
inputName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Onchange function when user is making an input
|
|
40
|
+
* */
|
|
41
|
+
onChange: (value: {
|
|
42
|
+
currencyCode: string;
|
|
43
|
+
countryName: string;
|
|
44
|
+
amount: number;
|
|
45
|
+
}) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Specify whether the component is a readonly field
|
|
48
|
+
*/
|
|
49
|
+
readonly?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Specify which currencies to bring to the top of the list
|
|
52
|
+
*/
|
|
53
|
+
priorityCurrencies?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Specify custom label for text displayed throughout component
|
|
56
|
+
*/
|
|
57
|
+
labelOverrides?: {
|
|
58
|
+
selectCountryCodeMsg?: string;
|
|
59
|
+
requiredFieldMsg?: string;
|
|
60
|
+
searchCountryPlaceholder?: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export declare type currencyCodesType = {
|
|
64
|
+
"country": string;
|
|
65
|
+
"currency_name": string;
|
|
66
|
+
"currency": string;
|
|
67
|
+
"flag": string;
|
|
68
|
+
};
|
|
@@ -4,7 +4,7 @@ export interface PhoneInputProps {
|
|
|
4
4
|
*/
|
|
5
5
|
initialCountryCode?: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Phone number to be displayed on page load
|
|
8
8
|
*/
|
|
9
9
|
initialPhoneNumber?: number;
|
|
10
10
|
/**
|
|
@@ -46,6 +46,10 @@ export interface PhoneInputProps {
|
|
|
46
46
|
* Specify whether the component is a readonly field
|
|
47
47
|
*/
|
|
48
48
|
readonly?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Specify which countries to move to the top of the list. Specify the country code (`code`) or dial code (`dial_code`)
|
|
51
|
+
*/
|
|
52
|
+
priorityCountries?: string[];
|
|
49
53
|
/**
|
|
50
54
|
* Specify custom label for text displayed throughout component
|
|
51
55
|
*/
|
|
@@ -82,3 +82,4 @@ export { default as ProgressBar } from './ProgressBar/ProgressBar';
|
|
|
82
82
|
export { default as DoughnutChart } from './DoughnutChart/DoughnutChart';
|
|
83
83
|
export { default as DetailField } from './DetailField/DetailField';
|
|
84
84
|
export { default as MultipleFileUpload } from './MultipleFileUpload/MultipleFileUpload';
|
|
85
|
+
export { default as AmountInput } from './AmountInput/AmountInput';
|