@secondstaxorg/sscomp 1.8.72 → 1.8.73

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.8.72",
3
+ "version": "1.8.73",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { TextFieldProps } from "./type";
3
- import '../../styles/typography.css';
4
3
  /**
5
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.
6
5
  */
@@ -16,12 +16,5 @@ 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
- */
22
19
  width?: number | 'fit-content' | '100%';
23
- /**
24
- * Specify whether the component is a readonly field
25
- */
26
- readonly?: boolean;
27
20
  }
@@ -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,27 @@
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
+ /**
20
+ * Specify the width of the component
21
+ */
22
+ width?: number | 'fit-content' | '100%';
23
+ /**
24
+ * Specify whether the component is a readonly field
25
+ */
26
+ readonly?: boolean;
27
+ }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Footer: () => JSX.Element;
3
- export default Footer;
@@ -1 +0,0 @@
1
- export declare const FooterContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const FooterOld: () => JSX.Element;
3
- export default FooterOld;
@@ -1,6 +0,0 @@
1
- import { TableRow } from './type';
2
- export declare function setHeader(arr: string): string;
3
- export declare function getData(data: any, config: {
4
- [key: string]: any;
5
- }): Promise<any>;
6
- export declare function sortData(data: TableRow[], sort: string, order: string): TableRow[];
@@ -1 +0,0 @@
1
- export { default as SDatatable } from './table';
@@ -1 +0,0 @@
1
- export declare const TableStyled: import("styled-components").StyledComponent<"table", any, {}, never>;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { TableProps } from "./type";
3
- declare const Table: (props: TableProps) => JSX.Element;
4
- export default Table;
@@ -1,71 +0,0 @@
1
- /// <reference types="react" />
2
- export interface TableProps {
3
- title?: string;
4
- data: TableRow[] | string;
5
- columns?: TableColumn[];
6
- loading?: boolean;
7
- onRowClick?: (row: TableRow) => void;
8
- onRowDoubleClick?: (row: TableRow) => void;
9
- onRowContextMenu?: (row: TableRow) => void;
10
- onRowMouseEnter?: (row: TableRow) => void;
11
- onRowMouseLeave?: (row: TableRow) => void;
12
- onRowMouseOver?: (row: TableRow) => void;
13
- onRowMouseOut?: (row: TableRow) => void;
14
- onRowMouseMove?: (row: TableRow) => void;
15
- onRowExpand?: (row: TableRow) => void;
16
- onRowCollapse?: (row: TableRow) => void;
17
- /**
18
- *
19
- */
20
- onColumnClick?: (column: TableColumn) => void;
21
- onColumnDoubleClick?: (column: TableColumn) => void;
22
- /**
23
- *
24
- */
25
- onActionClick?: (action: TableAction) => void;
26
- /**
27
- * This is the component that you want to show to the user when the row is expanded
28
- * @param TableRow the row that is being expanded
29
- */
30
- onRowExpandComponent?: (row: TableRow) => React.ReactElement<TableRow>;
31
- actionOptions?: ActionOptions;
32
- actionColumn?: boolean;
33
- columnSort?: boolean;
34
- config: {
35
- [key: string]: any;
36
- };
37
- rowExpand?: boolean;
38
- itemsPerPage?: number;
39
- hasSearch?: boolean;
40
- formatData?: (data: any) => any;
41
- }
42
- export interface ActionOptions {
43
- edit: boolean;
44
- delete: boolean;
45
- add: boolean;
46
- view: boolean;
47
- custom: (row: TableRow) => void;
48
- export: boolean;
49
- }
50
- export interface TableColumn {
51
- title: string;
52
- field: string;
53
- type?: "text" | "number" | "date" | "datetime" | "time" | "checkbox" | "select" | "action";
54
- format?: string;
55
- width?: string;
56
- align?: "left" | "center" | "right";
57
- sortable?: boolean | Array<string>;
58
- editable?: boolean;
59
- options?: any[];
60
- custom?: (row: any) => any;
61
- render?: (row: any) => any;
62
- }
63
- export interface TableRow {
64
- id: string | number;
65
- [key: string]: any;
66
- }
67
- export interface TableAction {
68
- title: string;
69
- icon: string;
70
- onClick: (row: TableRow) => void;
71
- }
@@ -1 +0,0 @@
1
- export declare function moneyfy(number: number | bigint, currency: string): string;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- ssxTypography: any;
3
- };
4
- export default _default;