@secondstaxorg/sscomp 1.7.68 → 1.7.71

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.68",
3
+ "version": "1.7.71",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -32,9 +32,16 @@ export interface SelectorProps {
32
32
  * Division in the list to segment different groups of options
33
33
  */
34
34
  sectionTitle?: string;
35
+ /**
36
+ * Specify that the component is a required field
37
+ * */
35
38
  required?: boolean;
36
39
  /**
37
40
  * Input name as is with html input tag
38
41
  * */
39
42
  inputName?: string;
43
+ /**
44
+ * Specify whether the component is a readonly field
45
+ */
46
+ readonly?: boolean;
40
47
  }
@@ -39,4 +39,8 @@ export interface DatePickerProps {
39
39
  * Initial value to be displayed when the component is rendered.
40
40
  */
41
41
  value?: Date;
42
+ /**
43
+ * Specify whether the component is a readonly field
44
+ */
45
+ readonly?: boolean;
42
46
  }
@@ -23,4 +23,8 @@ export interface DateRangePickerProps {
23
23
  */
24
24
  showActionButtons?: boolean;
25
25
  width?: number;
26
+ /**
27
+ * Specify whether the component is a readonly field
28
+ */
29
+ readonly?: boolean;
26
30
  }
@@ -45,4 +45,8 @@ export interface DropdownProps {
45
45
  * Input name as is with html input tag
46
46
  * */
47
47
  inputName: string;
48
+ /**
49
+ * Specify whether the component is a readonly field
50
+ */
51
+ readonly?: boolean;
48
52
  }
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { AmountFieldProps } from "./type";
2
+ import { NumberFieldProps } from "./type";
3
+ import '../../styles/typography.css';
3
4
  /**
4
5
  * This component is used to render a number or amount field. The latter is rendered when `currencyFlagPath` prop is supplied.
5
6
  */
6
- declare const NumberField: (props: AmountFieldProps) => JSX.Element;
7
+ declare const NumberField: (props: NumberFieldProps) => JSX.Element;
7
8
  export default NumberField;
@@ -1,4 +1,4 @@
1
- export interface AmountFieldProps {
1
+ export interface NumberFieldProps {
2
2
  /**
3
3
  * Label of the input field
4
4
  */
@@ -39,4 +39,8 @@ export interface AmountFieldProps {
39
39
  * Specify a placeholder text for the input
40
40
  */
41
41
  placeholder?: string;
42
+ /**
43
+ * Specify whether the component is a readonly field
44
+ */
45
+ readonly?: boolean;
42
46
  }
@@ -35,10 +35,17 @@ export interface PhoneInputProps {
35
35
  * Input name as is with html input tag
36
36
  * */
37
37
  inputName: string;
38
+ /**
39
+ * Onchange function when user is making an input
40
+ * */
38
41
  onChange: (value: {
39
42
  countryCode: string;
40
43
  phoneNumber: number;
41
44
  }) => void;
45
+ /**
46
+ * Specify whether the component is a readonly field
47
+ */
48
+ readonly?: boolean;
42
49
  }
43
50
  export declare type countryCodesType = {
44
51
  "country": string;
@@ -58,6 +58,10 @@ export interface SelectorProps {
58
58
  * */
59
59
  numCols?: number;
60
60
  value?: itemType | itemType[];
61
+ /**
62
+ * Specify whether the component is a readonly field
63
+ */
64
+ readonly?: boolean;
61
65
  }
62
66
  export declare type itemType = {
63
67
  label: string;
@@ -16,5 +16,12 @@ export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextArea
16
16
  * Initial value to be displayed
17
17
  */
18
18
  initialVal?: string | number;
19
+ /**
20
+ * Specify the width of the component
21
+ */
19
22
  width?: number;
23
+ /**
24
+ * Specify whether the component is a readonly field
25
+ */
26
+ readonly?: boolean;
20
27
  }
@@ -16,5 +16,12 @@ 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 component
21
+ */
19
22
  width?: number | 'fit-content' | '100%';
23
+ /**
24
+ * Specify whether the component is a readonly field
25
+ */
26
+ readonly?: boolean;
20
27
  }