@secondstaxorg/sscomp 1.9.56 → 1.9.57

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.56",
3
+ "version": "1.9.57",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -16,7 +16,14 @@ 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 textfield
21
+ */
19
22
  width?: number | 'fit-content' | '100%';
23
+ /**
24
+ * Fix issue with cursor when making change in textfield that already has a value
25
+ */
26
+ fixCursorMovement?: boolean;
20
27
  /**
21
28
  * Specify custom label for text displayed throughout component
22
29
  */
@@ -0,0 +1,5 @@
1
+ export declare const InputLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const MainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const InputField: import("styled-components").StyledComponent<"input", any, {}, never>;
4
+ export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const ErrorMessage: import("styled-components").StyledComponent<"p", any, {}, never>;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ export interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ /**
4
+ * Label of the input field
5
+ */
6
+ label?: string;
7
+ /**
8
+ * Subtext of the label
9
+ */
10
+ subtext?: string;
11
+ /**
12
+ * Error message to be displayed in the case of an error
13
+ */
14
+ errMsg?: string;
15
+ /**
16
+ * The initial value of the field to be displayed in the component
17
+ */
18
+ initialVal?: string | number;
19
+ width?: number | 'fit-content' | '100%';
20
+ /**
21
+ * Specify custom label for text displayed throughout component
22
+ */
23
+ labelOverrides?: {
24
+ errMsg?: string;
25
+ };
26
+ }