@secondstaxorg/sscomp 1.7.59 → 1.7.61

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.7.59",
3
+ "version": "1.7.61",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { SelectorProps } from "./type";
3
3
  /**
4
- * Dropdown selector for selecting countries and currencies
4
+ * Dropdown selector for selecting <b>countries</b> or <b>currencies</b>
5
5
  */
6
6
  declare const CountrySelector: (props: SelectorProps) => JSX.Element;
7
7
  export default CountrySelector;
@@ -13,13 +13,9 @@ export interface SelectorProps {
13
13
  */
14
14
  selectedOption: (a: any) => void;
15
15
  /**
16
- * Initial text to be displayed in the field. Suitable to for when there is the need to display the current value of when updating a form
16
+ * Country to be prepopulated when component is rendered
17
17
  */
18
- initialText?: string;
19
- /**
20
- * Initial flag to be displayed in the field along with the initial text. Suitable to for when there is the need to display the current value of when updating a form
21
- */
22
- initialFlag?: string;
18
+ initialCountry?: string;
23
19
  /**
24
20
  * Label for the field
25
21
  */
@@ -40,5 +36,5 @@ export interface SelectorProps {
40
36
  /**
41
37
  * Input name as is with html input tag
42
38
  * */
43
- inputName: string;
39
+ inputName?: string;
44
40
  }
@@ -0,0 +1,6 @@
1
+ export declare const countries: {
2
+ code: string;
3
+ country: string;
4
+ flag: string;
5
+ dial_code: string;
6
+ }[];
@@ -44,4 +44,5 @@ export declare type countryCodesType = {
44
44
  "country": string;
45
45
  "dial_code": string;
46
46
  "code": string;
47
+ "flag": string;
47
48
  };