@bluemarble/bm-components 0.0.5 → 0.0.6
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/dist/esm/index.js +5121 -165
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Grid/Td.d.ts +4 -1
- package/dist/index.d.ts +4 -1
- package/package.json +4 -2
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React, { FocusEvent } from "react";
|
|
2
2
|
import { TableCellProps, TextFieldProps } from "@mui/material";
|
|
3
|
+
import IMask from "imask";
|
|
3
4
|
interface EditableTableCellProps extends TableCellProps {
|
|
4
5
|
name: string;
|
|
5
6
|
TextFieldProps?: TextFieldProps;
|
|
7
|
+
type?: TextFieldProps["type"];
|
|
6
8
|
fullWidth?: boolean;
|
|
7
9
|
data?: Record<string, any>;
|
|
10
|
+
mask?: IMask.AnyMaskedOptions;
|
|
8
11
|
onSave: (props: OnSaveProps) => void;
|
|
9
12
|
}
|
|
10
13
|
interface OnSaveProps {
|
|
@@ -13,6 +16,6 @@ interface OnSaveProps {
|
|
|
13
16
|
value: string;
|
|
14
17
|
data: Record<string, any>;
|
|
15
18
|
}
|
|
16
|
-
export declare const EditableTableCell: (
|
|
19
|
+
export declare const EditableTableCell: (allProps: EditableTableCellProps) => JSX.Element;
|
|
17
20
|
export declare const Td: React.MemoExoticComponent<({ children, ...props }: TableCellProps) => JSX.Element>;
|
|
18
21
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, FocusEvent } from 'react';
|
|
2
2
|
import { TableCellProps, TableRowProps, TextFieldProps } from '@mui/material';
|
|
3
|
+
import IMask from 'imask';
|
|
3
4
|
|
|
4
5
|
interface ColumnTitleProps {
|
|
5
6
|
name: string;
|
|
@@ -43,8 +44,10 @@ declare const Tr: React.MemoExoticComponent<(props: CustomTableRowProps) => JSX.
|
|
|
43
44
|
interface EditableTableCellProps extends TableCellProps {
|
|
44
45
|
name: string;
|
|
45
46
|
TextFieldProps?: TextFieldProps;
|
|
47
|
+
type?: TextFieldProps["type"];
|
|
46
48
|
fullWidth?: boolean;
|
|
47
49
|
data?: Record<string, any>;
|
|
50
|
+
mask?: IMask.AnyMaskedOptions;
|
|
48
51
|
onSave: (props: OnSaveProps) => void;
|
|
49
52
|
}
|
|
50
53
|
interface OnSaveProps {
|
|
@@ -53,7 +56,7 @@ interface OnSaveProps {
|
|
|
53
56
|
value: string;
|
|
54
57
|
data: Record<string, any>;
|
|
55
58
|
}
|
|
56
|
-
declare const EditableTableCell: (
|
|
59
|
+
declare const EditableTableCell: (allProps: EditableTableCellProps) => JSX.Element;
|
|
57
60
|
declare const Td: React.MemoExoticComponent<({ children, ...props }: TableCellProps) => JSX.Element>;
|
|
58
61
|
|
|
59
62
|
export { ColumnTitleProps, EditableTableCell, FilterProps, Grid, IFilter, Td, Tr, filterData };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluemarble/bm-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "BM components",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"@emotion/styled": "^11.6.0",
|
|
21
21
|
"@mui/material": "^5.4.0",
|
|
22
22
|
"react": "^17.0.2",
|
|
23
|
-
"react-icons": "^4.3.1"
|
|
23
|
+
"react-icons": "^4.3.1",
|
|
24
|
+
"imask": "^6.4.2",
|
|
25
|
+
"react-imask": "^6.4.2"
|
|
24
26
|
},
|
|
25
27
|
"devDependencies": {
|
|
26
28
|
"@rollup/plugin-commonjs": "^21.0.3",
|