@secondstaxorg/sscomp 1.9.53 → 1.9.56

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.53",
3
+ "version": "1.9.56",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { SelectorProps } from "./type";
3
- import '../../styles/typography.css';
4
3
  /**
5
4
  * Dropdown selector for selecting <b>countries</b> or <b>currencies</b>
6
5
  */
@@ -48,6 +48,7 @@ export interface SelectorProps {
48
48
  */
49
49
  labelOverrides?: {
50
50
  search?: string;
51
+ requiredField?: string;
51
52
  };
52
53
  }
53
54
  export declare type optionType = {
@@ -0,0 +1,7 @@
1
+ export declare const DropdownContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const LabelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const DropdownField: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const DropdownIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const OptionsList: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const DropdownOption: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const DropdownOptionAlt: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,58 @@
1
+ export interface SelectorProps {
2
+ /**
3
+ * Array of countries containing objects of country name country short name country flag and subname to be used in the case of selecting currencies
4
+ */
5
+ options: optionType[];
6
+ /**
7
+ * Function to receive the object of the selected item from the dropdown
8
+ */
9
+ selectedOption: (a: any) => void;
10
+ /**
11
+ * Country to be prepopulated when component is rendered
12
+ */
13
+ initialCountry?: string;
14
+ /**
15
+ * Label for the field
16
+ */
17
+ label?: string;
18
+ /**
19
+ * Placeholder text for the field
20
+ */
21
+ placeholder?: string;
22
+ /**
23
+ * Boolean to specify whether the dropdown is searchable
24
+ */
25
+ searchable?: boolean;
26
+ /**
27
+ * Division in the list to segment different groups of options
28
+ */
29
+ sectionTitle?: string;
30
+ /**
31
+ * Specify that the component is a required field
32
+ * */
33
+ required?: boolean;
34
+ /**
35
+ * Input name as is with html input tag
36
+ * */
37
+ inputName?: string;
38
+ /**
39
+ * Specify whether the component is a readonly field
40
+ */
41
+ readonly?: boolean;
42
+ /**
43
+ * Array containing list of items to be bubbled up to the top above all others
44
+ */
45
+ priorityOptions?: string[];
46
+ /**
47
+ * Specify custom label for text displayed throughout component
48
+ */
49
+ labelOverrides?: {
50
+ search?: string;
51
+ };
52
+ }
53
+ export declare type optionType = {
54
+ optionName: string;
55
+ optionShortName: string;
56
+ optionFlag?: string;
57
+ subName?: string;
58
+ };