@secondstaxorg/sscomp 1.7.53 → 1.7.55

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.53",
3
+ "version": "1.7.55",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -12,9 +12,9 @@ export interface AccordionProps {
12
12
  label: string;
13
13
  }) => void;
14
14
  /**
15
- * Optional, specify the array index (counting from 0) for which accordion to have expanded on page load
15
+ * Optional, specify the array index (counting from 0) in an array or as a single number for which accordions to have expanded on page load
16
16
  * */
17
- defaultExpanded?: number;
17
+ defaultExpanded?: number[] | number;
18
18
  onDelete?: ({}: {}) => void;
19
19
  }
20
20
  export declare type AccordionsType = {
@@ -31,7 +31,12 @@ export interface DatePickerProps {
31
31
  * Specify whether the field is a required field
32
32
  */
33
33
  required?: boolean;
34
- minYear?: any;
35
- value?: any;
36
- clearance?: boolean;
34
+ /**
35
+ * Number of years back to exclude from valid years.
36
+ */
37
+ minYear?: number;
38
+ /**
39
+ * Initial value to be displayed when the component is rendered.
40
+ */
41
+ value?: Date;
37
42
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { EmailFieldProps } from "./type";
3
3
  /**
4
- * Component to display an input field component in a form. This mimics the behavior of a regular HTML <code>&lt;input&gt;</code> element and accepts the same props as it along with the custom ones defined.
4
+ * This component is used to render an email field. The email field validates the value of the input against a valid email address.
5
5
  */
6
6
  declare const EmailField: (props: EmailFieldProps) => JSX.Element;
7
7
  export default EmailField;
@@ -11,6 +11,6 @@ export interface EmailFieldProps extends React.InputHTMLAttributes<HTMLInputElem
11
11
  /**
12
12
  * The initial value of the field to be displayed in the component
13
13
  */
14
- initialVal?: string | number;
14
+ initialVal?: string;
15
15
  width?: number | 'fit-content' | '100%';
16
16
  }
@@ -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,42 @@
1
+ export interface AmountFieldProps {
2
+ /**
3
+ * Label of the input field
4
+ */
5
+ label?: string;
6
+ /**
7
+ * Subtext of the label
8
+ */
9
+ subtext?: string;
10
+ /**
11
+ * Custom error message to be displayed in the case of an error
12
+ */
13
+ errMsg?: string;
14
+ /**
15
+ * Width of the component when rendered
16
+ */
17
+ width?: number | 'fit-content' | '100%';
18
+ /**
19
+ * When supplied the component can be rendered as an amount field
20
+ */
21
+ currencyFlagPath?: string;
22
+ /**
23
+ * Default value to be passed to the component to be displayed when rendered
24
+ */
25
+ value?: number | string;
26
+ /**
27
+ * Value that gets output when the component is typed in
28
+ */
29
+ onChange: (a: string) => void;
30
+ /**
31
+ * Specify whether the component should be disabled
32
+ */
33
+ disabled?: boolean;
34
+ /**
35
+ * Specify whether this is a required field
36
+ */
37
+ required?: boolean;
38
+ /**
39
+ * Specify a placeholder text for the input
40
+ */
41
+ placeholder?: string;
42
+ }