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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [5.28.3](https://github.com/rsuite/rsuite/compare/v5.28.2...v5.28.3) (2023-03-17)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **AutoComplete:** add missing autoComplete prop ([#3108](https://github.com/rsuite/rsuite/issues/3108)) ([c855fab](https://github.com/rsuite/rsuite/commit/c855fab4488c6545ad567166007a6f6650db2849))
|
|
6
|
+
- **Form.Control:** fix not able to override checked prop ([#3120](https://github.com/rsuite/rsuite/issues/3120)) ([aac965e](https://github.com/rsuite/rsuite/commit/aac965e1fdc80bf67885c609021fa8e01b2f3576))
|
|
7
|
+
|
|
1
8
|
## [5.28.2](https://github.com/rsuite/rsuite/compare/v5.28.1...v5.28.2) (2023-03-10)
|
|
2
9
|
|
|
3
10
|
### Bug Fixes
|
|
@@ -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 */
|
|
@@ -179,7 +179,7 @@ var FormControl = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
179
179
|
"aria-describedby": ariaDescribedby,
|
|
180
180
|
"aria-invalid": fieldHasError || undefined,
|
|
181
181
|
"aria-errormessage": ariaErrormessage
|
|
182
|
-
},
|
|
182
|
+
}, accepterProps, rest, {
|
|
183
183
|
readOnly: readOnly,
|
|
184
184
|
plaintext: plaintext,
|
|
185
185
|
disabled: disabled,
|
package/cjs/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/cjs/Table/Table.js
CHANGED
|
@@ -15,7 +15,7 @@ var _rsuiteTable = require("rsuite-table");
|
|
|
15
15
|
|
|
16
16
|
var _utils = require("../utils");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var CustomTable = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
19
19
|
var localeProp = props.locale,
|
|
20
20
|
_props$loadAnimation = props.loadAnimation,
|
|
21
21
|
loadAnimation = _props$loadAnimation === void 0 ? true : _props$loadAnimation,
|
|
@@ -33,10 +33,11 @@ var Table = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
33
33
|
}));
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
var _default = Object.assign(CustomTable, {
|
|
37
|
+
Cell: _rsuiteTable.Cell,
|
|
38
|
+
Column: _rsuiteTable.Column,
|
|
39
|
+
HeaderCell: _rsuiteTable.HeaderCell,
|
|
40
|
+
ColumnGroup: _rsuiteTable.ColumnGroup
|
|
41
|
+
});
|
|
42
|
+
|
|
42
43
|
exports.default = _default;
|
package/cjs/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;
|