@secondstaxorg/sscomp 1.6.73 → 1.6.75

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,12 +1,12 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.6.73",
3
+ "version": "1.6.75",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/Secondstax/sscomp.git"
9
+ "url": "https://github.com/Secondstax/sscomp.git"
10
10
  },
11
11
  "description": "A react component library for secondstax",
12
12
  "main": "dist/index.min.js",
@@ -33,5 +33,12 @@ export interface DropdownProps {
33
33
  * Boolean to specify whether the list is searchable
34
34
  */
35
35
  searchable?: boolean;
36
+ /**
37
+ * Specify the width of the component
38
+ */
36
39
  width?: number | "fit-content";
40
+ /**
41
+ * Boolean to specify whether the field is required
42
+ */
43
+ required?: boolean;
37
44
  }
@@ -1,2 +1,3 @@
1
+ export declare const RibbonGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
1
2
  export declare const RibbonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
3
  export declare const RibbonItem: import("styled-components").StyledComponent<"a", any, {}, never>;
@@ -1 +1,5 @@
1
+ export declare const MainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const FieldContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const InputLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const SrInput: import("styled-components").StyledComponent<"input", any, {}, never>;
1
5
  export declare const SelectorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -12,6 +12,32 @@ export interface SelectorProps {
12
12
  selectedItem: (a: {
13
13
  label: string;
14
14
  value?: string;
15
- } | null) => void;
16
- width?: number;
15
+ } | {
16
+ label: string;
17
+ value?: string;
18
+ }[] | null) => void;
19
+ /**
20
+ * Specify the CSS width of the component
21
+ */
22
+ width?: number | string;
23
+ /**
24
+ * Specify whether multiple options can be selected
25
+ */
26
+ multiSelect?: boolean;
27
+ /**
28
+ * Specify whether the field is required
29
+ */
30
+ required?: boolean;
31
+ /**
32
+ * Label for the field
33
+ */
34
+ label?: string;
35
+ /**
36
+ * Accompanying subtext for the label
37
+ */
38
+ subText?: string;
39
+ /**
40
+ * Custom error message to be displayed when validation fails
41
+ */
42
+ errMsg?: string;
17
43
  }
@@ -1,4 +1,5 @@
1
1
  export declare const InputLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const MainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
3
  export declare const InputField: import("styled-components").StyledComponent<"input", any, {}, never>;
3
4
  export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
5
  export declare const ErrorMessage: import("styled-components").StyledComponent<"p", any, {}, never>;