rsuite 5.28.2 → 5.28.3
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/CHANGELOG.md +7 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +2 -0
- package/cjs/FormControl/FormControl.js +1 -1
- package/cjs/Table/Table.d.ts +8 -18
- package/cjs/Table/Table.js +8 -7
- package/cjs/Table/index.d.ts +2 -2
- package/dist/rsuite.js +764 -733
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/AutoComplete/AutoComplete.d.ts +2 -0
- package/esm/FormControl/FormControl.js +1 -1
- package/esm/Table/Table.d.ts +8 -18
- package/esm/Table/Table.js +9 -9
- package/esm/Table/index.d.ts +2 -2
- package/package.json +3 -3
|
@@ -17,6 +17,8 @@ export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormContr
|
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
/** The width of the menu will automatically follow the width of the input box */
|
|
19
19
|
menuAutoWidth?: boolean;
|
|
20
|
+
/** AutoComplete Content */
|
|
21
|
+
autoComplete?: string;
|
|
20
22
|
/** Custom filter function to determine whether the item will be displayed */
|
|
21
23
|
filterBy?: (value: string, item: ItemDataType) => boolean;
|
|
22
24
|
/** Called when a option is selected */
|
|
@@ -164,7 +164,7 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
164
164
|
"aria-describedby": ariaDescribedby,
|
|
165
165
|
"aria-invalid": fieldHasError || undefined,
|
|
166
166
|
"aria-errormessage": ariaErrormessage
|
|
167
|
-
},
|
|
167
|
+
}, accepterProps, rest, {
|
|
168
168
|
readOnly: readOnly,
|
|
169
169
|
plaintext: plaintext,
|
|
170
170
|
disabled: disabled,
|
package/esm/Table/Table.d.ts
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Column,
|
|
3
|
-
|
|
4
|
-
export interface TableInstance extends React.Component<TableProps> {
|
|
5
|
-
scrollTop: (top: number) => void;
|
|
6
|
-
scrollLeft: (left: number) => void;
|
|
7
|
-
}
|
|
8
|
-
export interface CellProps<T = any> extends StandardProps {
|
|
2
|
+
import { Column, TableProps, RowDataType, TableInstance, CellProps as TableCellProps } from 'rsuite-table';
|
|
3
|
+
export interface CellProps<T = any> extends Omit<TableCellProps, 'rowData' | 'dataKey'> {
|
|
9
4
|
/** Data binding key, but also a sort of key */
|
|
10
5
|
dataKey?: string | keyof T;
|
|
11
|
-
/** Row Number */
|
|
12
|
-
rowIndex?: number;
|
|
13
6
|
/** Row Data */
|
|
14
7
|
rowData?: T;
|
|
15
8
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}> {
|
|
9
|
+
declare const _default: (<Row extends RowDataType, Key>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
+
Cell: React.ForwardRefExoticComponent<import("rsuite-table/lib/Cell").InnerCellProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
11
|
Column: typeof Column;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
declare const Table: TableComponent;
|
|
25
|
-
export default Table;
|
|
12
|
+
HeaderCell: React.ForwardRefExoticComponent<import("rsuite-table").HeaderCellProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
ColumnGroup: React.ForwardRefExoticComponent<import("rsuite-table").ColumnGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
package/esm/Table/Table.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { Table
|
|
4
|
+
import { Table, Column, Cell, HeaderCell, ColumnGroup } from 'rsuite-table';
|
|
5
5
|
import { useCustom } from '../utils';
|
|
6
|
-
var
|
|
6
|
+
var CustomTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7
7
|
var localeProp = props.locale,
|
|
8
8
|
_props$loadAnimation = props.loadAnimation,
|
|
9
9
|
loadAnimation = _props$loadAnimation === void 0 ? true : _props$loadAnimation,
|
|
@@ -13,16 +13,16 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
13
13
|
locale = _useCustom.locale,
|
|
14
14
|
rtl = _useCustom.rtl;
|
|
15
15
|
|
|
16
|
-
return /*#__PURE__*/React.createElement(
|
|
16
|
+
return /*#__PURE__*/React.createElement(Table, _extends({}, rest, {
|
|
17
17
|
rtl: rtl,
|
|
18
18
|
ref: ref,
|
|
19
19
|
locale: locale,
|
|
20
20
|
loadAnimation: loadAnimation
|
|
21
21
|
}));
|
|
22
22
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
export default Object.assign(CustomTable, {
|
|
24
|
+
Cell: Cell,
|
|
25
|
+
Column: Column,
|
|
26
|
+
HeaderCell: HeaderCell,
|
|
27
|
+
ColumnGroup: ColumnGroup
|
|
28
|
+
});
|
package/esm/Table/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Table from './Table';
|
|
2
|
-
export type { TableProps, ColumnProps, ColumnGroupProps, TableLocaleType } from 'rsuite-table';
|
|
3
|
-
export type {
|
|
2
|
+
export type { TableProps, ColumnProps, ColumnGroupProps, HeaderCellProps, SortType, RowDataType, RowKeyType, TableLocaleType, TableSizeChangeEventName, TableInstance } from 'rsuite-table';
|
|
3
|
+
export type { CellProps } from './Table';
|
|
4
4
|
export default Table;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsuite",
|
|
3
|
-
"version": "5.28.
|
|
3
|
+
"version": "5.28.3",
|
|
4
4
|
"description": "A suite of react components",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"lodash": "^4.17.11",
|
|
38
38
|
"prop-types": "^15.8.1",
|
|
39
39
|
"react-window": "^1.8.8",
|
|
40
|
-
"rsuite-table": "^5.
|
|
41
|
-
"schema-typed": "^2.1.
|
|
40
|
+
"rsuite-table": "^5.10.1",
|
|
41
|
+
"schema-typed": "^2.1.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.8.0",
|