@mezzanine-ui/react 0.6.4 → 0.7.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/Accordion/Accordion.js +3 -2
- package/Accordion/AccordionDetails.js +3 -2
- package/Accordion/AccordionSummary.js +3 -2
- package/Alert/Alert.js +3 -2
- package/AppBar/AppBar.js +3 -2
- package/AppBar/AppBarBrand.js +3 -2
- package/AppBar/AppBarMain.js +3 -2
- package/AppBar/AppBarSupport.js +3 -2
- package/Badge/Badge.js +3 -2
- package/Badge/BadgeContainer.js +3 -2
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js +3 -2
- package/Button/ButtonGroup.js +3 -2
- package/Button/IconButton.js +3 -2
- package/Button/index.js +2 -2
- package/Calendar/Calendar.js +3 -2
- package/Calendar/CalendarCell.js +1 -1
- package/Calendar/CalendarContext.js +1 -2
- package/Calendar/CalendarControls.js +1 -1
- package/Calendar/CalendarDayOfWeek.js +1 -1
- package/Calendar/CalendarDays.js +1 -1
- package/Calendar/CalendarMonths.js +1 -1
- package/Calendar/CalendarWeeks.js +1 -1
- package/Calendar/CalendarYears.js +1 -1
- package/Card/Card.js +3 -2
- package/Card/CardActions.js +3 -2
- package/Checkbox/CheckAll.js +3 -2
- package/Checkbox/Checkbox.js +3 -2
- package/Checkbox/CheckboxGroup.js +3 -2
- package/ConfirmActions/ConfirmActions.js +3 -2
- package/DatePicker/DatePicker.js +4 -3
- package/DatePicker/DatePickerCalendar.js +3 -2
- package/DateRangePicker/DateRangePicker.js +4 -3
- package/DateRangePicker/DateRangePickerCalendar.js +3 -2
- package/DateRangePicker/useDateRangePickerValue.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.js +4 -3
- package/DateTimePicker/DateTimePickerPanel.js +3 -2
- package/Drawer/Drawer.d.ts +2 -7
- package/Drawer/Drawer.js +8 -23
- package/Dropdown/Dropdown.js +3 -2
- package/Empty/Empty.js +3 -2
- package/Form/FormField.js +3 -2
- package/Form/FormLabel.js +3 -2
- package/Form/FormMessage.js +3 -2
- package/Icon/Icon.d.ts +4 -0
- package/Icon/Icon.js +6 -4
- package/Input/Input.js +4 -3
- package/Loading/Loading.js +3 -2
- package/Menu/Menu.js +3 -2
- package/Menu/MenuDivider.js +3 -2
- package/Menu/MenuItem.js +3 -2
- package/Menu/MenuItemGroup.js +3 -2
- package/Message/Message.d.ts +8 -5
- package/Message/Message.js +29 -13
- package/Message/index.d.ts +1 -1
- package/Modal/Modal.d.ts +2 -7
- package/Modal/Modal.js +11 -59
- package/Modal/ModalActions.js +3 -2
- package/Modal/ModalBody.js +3 -2
- package/Modal/ModalFooter.js +3 -2
- package/Modal/ModalHeader.js +3 -2
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +1 -0
- package/Modal/useModalContainer.d.ts +6 -0
- package/Modal/useModalContainer.js +27 -0
- package/Navigation/Navigation.js +3 -2
- package/Navigation/NavigationItem.js +3 -2
- package/Navigation/NavigationSubMenu.js +3 -2
- package/Notification/Notification.js +4 -3
- package/Notifier/NotifierManager.js +1 -1
- package/Overlay/Overlay.js +3 -2
- package/PageFooter/PageFooter.js +3 -2
- package/Pagination/Pagination.js +3 -2
- package/Pagination/PaginationItem.js +3 -2
- package/Pagination/PaginationJumper.js +3 -2
- package/Picker/PickerTrigger.js +3 -2
- package/Picker/RangePickerTrigger.js +3 -2
- package/Picker/usePickerInputValue.js +1 -2
- package/Picker/usePickerValue.d.ts +1 -1
- package/Picker/useRangePickerValue.d.ts +2 -2
- package/Popconfirm/Popconfirm.js +3 -2
- package/Popover/Popover.js +3 -2
- package/Popper/Popper.js +3 -2
- package/Portal/Portal.js +3 -2
- package/Progress/Progress.js +3 -2
- package/Radio/Radio.js +4 -3
- package/Radio/RadioGroup.js +3 -2
- package/Select/AutoComplete.d.ts +1 -1
- package/Select/AutoComplete.js +4 -3
- package/Select/Option.js +3 -2
- package/Select/Select.d.ts +1 -1
- package/Select/Select.js +4 -3
- package/Select/SelectTrigger.js +3 -2
- package/Select/TreeSelect.d.ts +1 -1
- package/Select/TreeSelect.js +4 -3
- package/Skeleton/Skeleton.js +3 -2
- package/Slider/Slider.js +20 -3
- package/Slider/useSlider.js +8 -6
- package/Stepper/Step.js +3 -2
- package/Stepper/Stepper.js +3 -2
- package/Switch/Switch.js +4 -3
- package/Table/Table.d.ts +51 -44
- package/Table/Table.js +42 -23
- package/Table/TableBody.js +10 -4
- package/Table/TableBodyRow.js +3 -2
- package/Table/TableCell.js +3 -2
- package/Table/TableHeader.js +3 -2
- package/Table/editable/TableEditRenderWrapper.js +1 -1
- package/Table/expandable/TableExpandable.js +3 -2
- package/Table/pagination/TablePagination.js +13 -14
- package/Table/pagination/useTablePagination.d.ts +5 -13
- package/Table/pagination/useTablePagination.js +3 -23
- package/Table/refresh/TableRefresh.js +3 -2
- package/Table/rowSelection/TableRowSelection.js +3 -2
- package/Table/sorting/TableSortingIcon.js +3 -2
- package/Table/useTableScroll.d.ts +9 -9
- package/Table/useTableScroll.js +1 -1
- package/Tabs/Tab.js +3 -2
- package/Tabs/TabPane.js +3 -2
- package/Tabs/Tabs.js +3 -2
- package/Tabs/useTabsOverflow.js +1 -1
- package/Tag/Tag.js +3 -2
- package/TextField/TextField.js +3 -2
- package/Textarea/Textarea.js +4 -3
- package/TimePanel/TimePanel.js +3 -2
- package/TimePanel/TimePanelAction.js +3 -2
- package/TimePanel/TimePanelColumn.js +3 -2
- package/TimePicker/TimePicker.js +4 -3
- package/TimePicker/TimePickerPanel.js +3 -2
- package/Tooltip/Tooltip.js +3 -2
- package/Transition/Collapse.js +3 -2
- package/Transition/Fade.js +3 -2
- package/Transition/Grow.js +3 -2
- package/Transition/SlideFade.js +3 -2
- package/Transition/Transition.d.ts +1 -1
- package/Transition/Transition.js +1 -1
- package/Transition/Zoom.js +3 -2
- package/Tree/Tree.js +3 -2
- package/Tree/TreeNode.js +3 -2
- package/Tree/TreeNodeList.js +3 -2
- package/Typography/Typography.d.ts +1 -1
- package/Typography/Typography.js +3 -2
- package/Upload/UploadButton.js +3 -2
- package/Upload/UploadInput.js +5 -2
- package/Upload/UploadPicture.d.ts +48 -0
- package/Upload/UploadPicture.js +52 -0
- package/Upload/UploadPictureBlock.d.ts +13 -0
- package/Upload/UploadPictureBlock.js +86 -0
- package/Upload/UploadPictureWall.d.ts +71 -0
- package/Upload/UploadPictureWall.js +156 -0
- package/Upload/UploadPictureWallItem.d.ts +13 -0
- package/Upload/UploadPictureWallItem.js +19 -0
- package/Upload/UploadResult.js +3 -2
- package/Upload/index.d.ts +3 -0
- package/Upload/index.js +3 -0
- package/_internal/InputCheck/InputCheck.js +3 -2
- package/_internal/InputCheck/InputCheckGroup.js +3 -2
- package/_internal/InputTriggerPopper/InputTriggerPopper.js +3 -2
- package/_internal/SlideFadeOverlay/SlideFadeOverlay.d.ts +21 -0
- package/_internal/SlideFadeOverlay/SlideFadeOverlay.js +66 -0
- package/_internal/SlideFadeOverlay/index.d.ts +1 -0
- package/_internal/SlideFadeOverlay/index.js +1 -0
- package/_internal/SlideFadeOverlay/useTopStack.d.ts +1 -0
- package/{Modal/useIsTopModal.js → _internal/SlideFadeOverlay/useTopStack.js} +3 -3
- package/index.d.ts +4 -4
- package/index.js +52 -49
- package/package.json +6 -6
- package/utils/{rename-types.d.ts → general.d.ts} +3 -0
- package/Modal/useIsTopModal.d.ts +0 -1
package/Table/Table.js
CHANGED
|
@@ -61,26 +61,44 @@ const Table = forwardRef(function Table(props, ref) {
|
|
|
61
61
|
refreshProp.show) !== null && _a !== void 0 ? _a : false);
|
|
62
62
|
}, [refreshProp === null || refreshProp === void 0 ? void 0 : refreshProp.show]);
|
|
63
63
|
/** context */
|
|
64
|
-
const tableContextValue = useMemo(() =>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
64
|
+
const tableContextValue = useMemo(() => {
|
|
65
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
66
|
+
return ({
|
|
67
|
+
scrollBarSize: 4,
|
|
68
|
+
emptyProps,
|
|
69
|
+
rowSelection,
|
|
70
|
+
sorting: {
|
|
71
|
+
onSort,
|
|
72
|
+
onResetAll,
|
|
73
|
+
sortedOn,
|
|
74
|
+
sortedType,
|
|
75
|
+
},
|
|
76
|
+
loading,
|
|
77
|
+
setLoading,
|
|
78
|
+
expanding: expandableProp,
|
|
79
|
+
fetchMore: onFetchMore ? {
|
|
80
|
+
onFetchMore,
|
|
81
|
+
isFetching,
|
|
82
|
+
isReachEnd,
|
|
83
|
+
} : undefined,
|
|
84
|
+
pagination: paginationProp ? {
|
|
85
|
+
current: paginationProp.current,
|
|
86
|
+
disableAutoSlicing: (_a = paginationProp.disableAutoSlicing) !== null && _a !== void 0 ? _a : false,
|
|
87
|
+
onChange: paginationProp.onChange,
|
|
88
|
+
total: (_b = paginationProp.total) !== null && _b !== void 0 ? _b : dataSource.length,
|
|
89
|
+
options: {
|
|
90
|
+
boundaryCount: (_d = (_c = paginationProp.options) === null || _c === void 0 ? void 0 : _c.boundaryCount) !== null && _d !== void 0 ? _d : 1,
|
|
91
|
+
className: (_e = paginationProp.options) === null || _e === void 0 ? void 0 : _e.className,
|
|
92
|
+
disabled: (_g = (_f = paginationProp.options) === null || _f === void 0 ? void 0 : _f.disabled) !== null && _g !== void 0 ? _g : false,
|
|
93
|
+
hideNextButton: (_j = (_h = paginationProp.options) === null || _h === void 0 ? void 0 : _h.hideNextButton) !== null && _j !== void 0 ? _j : false,
|
|
94
|
+
hidePreviousButton: (_l = (_k = paginationProp.options) === null || _k === void 0 ? void 0 : _k.hidePreviousButton) !== null && _l !== void 0 ? _l : false,
|
|
95
|
+
pageSize: (_o = (_m = paginationProp.options) === null || _m === void 0 ? void 0 : _m.pageSize) !== null && _o !== void 0 ? _o : 10,
|
|
96
|
+
siblingCount: (_q = (_p = paginationProp.options) === null || _p === void 0 ? void 0 : _p.siblingCount) !== null && _q !== void 0 ? _q : 1,
|
|
97
|
+
},
|
|
98
|
+
} : undefined,
|
|
99
|
+
});
|
|
100
|
+
}, [
|
|
101
|
+
dataSource,
|
|
84
102
|
emptyProps,
|
|
85
103
|
expandableProp,
|
|
86
104
|
rowSelection,
|
|
@@ -105,7 +123,8 @@ const Table = forwardRef(function Table(props, ref) {
|
|
|
105
123
|
return (jsx(Loading, Object.assign({ loading: loading, stretch: true, tip: "\u8CC7\u6599\u8F09\u5165\u4E2D..." }, { children: jsx("div", Object.assign({ ref: ref }, rest, { className: cx(tableClasses.host, className), role: "grid" }, { children: jsx(TableContext.Provider, Object.assign({ value: tableContextValue }, { children: jsx(TableDataContext.Provider, Object.assign({ value: tableDataContextValue }, { children: jsxs(TableComponentContext.Provider, Object.assign({ value: tableComponentContextValue }, { children: [isRefreshShow ? (jsx(TableRefresh, { onClick: refreshProp.onClick }, void 0)) : null,
|
|
106
124
|
jsx(TableHeader, { className: headerClassName }, void 0),
|
|
107
125
|
jsx(TableBody, { ref: bodyRef, className: bodyClassName, rowClassName: bodyRowClassName }, void 0),
|
|
108
|
-
|
|
109
|
-
});
|
|
126
|
+
paginationProp ? (jsx(TablePagination, { bodyRef: bodyRef }, void 0)) : null] }), void 0) }), void 0) }), void 0) }), void 0) }), void 0));
|
|
127
|
+
});
|
|
128
|
+
var Table$1 = Table;
|
|
110
129
|
|
|
111
|
-
export default
|
|
130
|
+
export { Table$1 as default };
|
package/Table/TableBody.js
CHANGED
|
@@ -12,12 +12,17 @@ import cx from 'clsx';
|
|
|
12
12
|
const TableBody = forwardRef(function TableBody(props, ref) {
|
|
13
13
|
const { className, rowClassName, ...rest } = props;
|
|
14
14
|
const { dataSource = [], } = useContext(TableDataContext) || {};
|
|
15
|
-
const { emptyProps, scrollBarSize,
|
|
15
|
+
const { emptyProps, fetchMore, scrollBarSize, pagination, } = useContext(TableContext) || {};
|
|
16
16
|
const [tableBody, scrollElement] = useTableScroll();
|
|
17
17
|
const composedRefs = useComposeRefs([ref, tableBody.ref]);
|
|
18
18
|
/** customizing empty */
|
|
19
19
|
const { className: emptyComponentClassName = '', children: emptyComponentChildren = '查無資料', fullHeight: emptyComponentFullHeight = true, ...restEmptyProps } = emptyProps || {};
|
|
20
|
-
|
|
20
|
+
/** pagination feature */
|
|
21
|
+
const { current: currentPage, disableAutoSlicing, total, options: paginationOptions, } = pagination || {};
|
|
22
|
+
const currentStartCount = (paginationOptions === null || paginationOptions === void 0 ? void 0 : paginationOptions.pageSize) && currentPage ? ((paginationOptions.pageSize) * (currentPage - 1)) : 0;
|
|
23
|
+
const currentEndCount = (paginationOptions === null || paginationOptions === void 0 ? void 0 : paginationOptions.pageSize) && currentPage && total ? (Math.min(((paginationOptions.pageSize) * currentPage), total)) : 0;
|
|
24
|
+
const currentDataSource = pagination && !disableAutoSlicing ? (dataSource.slice(currentStartCount, currentEndCount)) : dataSource;
|
|
25
|
+
return (jsxs("div", Object.assign({}, rest, { ref: composedRefs, className: cx(tableClasses.body, className), onScroll: tableBody.onScroll, role: "rowgroup" }, { children: [currentDataSource.length ? currentDataSource.map((rowData) => (jsx(TableBodyRow, { className: rowClassName, rowData: rowData }, (rowData.key || rowData.id)))) : (jsx(Empty, Object.assign({}, restEmptyProps, { className: cx(tableClasses.bodyEmpty, emptyComponentClassName), fullHeight: emptyComponentFullHeight }, { children: emptyComponentChildren }), void 0)),
|
|
21
26
|
(fetchMore === null || fetchMore === void 0 ? void 0 : fetchMore.isFetching) ? (jsx("div", Object.assign({ className: tableClasses.bodyFetchMore }, { children: jsx(Loading, { loading: true }, void 0) }), void 0)) : null,
|
|
22
27
|
jsx("div", Object.assign({ ref: scrollElement.ref, onMouseDown: scrollElement.onMouseDown, onMouseUp: scrollElement.onMouseUp, onMouseEnter: scrollElement.onMouseEnter, onMouseLeave: scrollElement.onMouseLeave, role: "button", style: scrollElement.style, tabIndex: -1 }, { children: jsx("div", { style: {
|
|
23
28
|
width: `${scrollBarSize}px`,
|
|
@@ -26,6 +31,7 @@ const TableBody = forwardRef(function TableBody(props, ref) {
|
|
|
26
31
|
backgroundColor: '#7d7d7d',
|
|
27
32
|
transition: '0.1s',
|
|
28
33
|
} }, void 0) }), void 0)] }), void 0));
|
|
29
|
-
});
|
|
34
|
+
});
|
|
35
|
+
var TableBody$1 = TableBody;
|
|
30
36
|
|
|
31
|
-
export default
|
|
37
|
+
export { TableBody$1 as default };
|
package/Table/TableBodyRow.js
CHANGED
|
@@ -58,6 +58,7 @@ const TableBodyRow = forwardRef(function TableBodyRow(props, ref) {
|
|
|
58
58
|
return (jsx("div", Object.assign({ className: cx(tableClasses.bodyRowCellWrapper, column.bodyClassName), style: getColumnStyle(column) }, { children: jsx(TableEditRenderWrapper, Object.assign({}, column, { rowData: rowData }, { children: jsx(TableCell, Object.assign({ ellipsis: ellipsis, forceShownTooltipWhenHovered: column.forceShownTooltipWhenHovered, style: getCellStyle(column), tooltipTitle: tooltipTitle }, { children: ((_d = column.render) === null || _d === void 0 ? void 0 : _d.call(column, column, rowData, index)) || rowData[column.dataIndex] }), void 0) }), void 0) }), `${column.dataIndex}-${column.title}`));
|
|
59
59
|
})] }), void 0),
|
|
60
60
|
renderedExpandedContent ? (jsx(AccordionDetails, Object.assign({ className: expanding.className, expanded: expanded }, { children: renderedExpandedContent }), void 0)) : null] }, void 0));
|
|
61
|
-
});
|
|
61
|
+
});
|
|
62
|
+
var TableBodyRow$1 = TableBodyRow;
|
|
62
63
|
|
|
63
|
-
export default
|
|
64
|
+
export { TableBodyRow$1 as default };
|
package/Table/TableCell.js
CHANGED
|
@@ -18,6 +18,7 @@ const TableCell = forwardRef(function TableCell(props, ref) {
|
|
|
18
18
|
onMouseEnter(e);
|
|
19
19
|
}
|
|
20
20
|
}, onMouseLeave: onMouseLeave }, { children: children }), void 0)) }), void 0)) : children }), void 0));
|
|
21
|
-
});
|
|
21
|
+
});
|
|
22
|
+
var TableCell$1 = TableCell;
|
|
22
23
|
|
|
23
|
-
export default
|
|
24
|
+
export { TableCell$1 as default };
|
package/Table/TableHeader.js
CHANGED
|
@@ -42,6 +42,7 @@ const TableHeader = forwardRef(function TableHeader(props, ref) {
|
|
|
42
42
|
return (jsx("div", Object.assign({ className: cx(tableClasses.headerCellWrapper, column.headerClassName), style: getColumnStyle(column) }, { children: jsxs(TableCell, Object.assign({ ellipsis: false, role: "columnheader", style: getCellStyle(column) }, { children: [((_a = column.renderTitle) === null || _a === void 0 ? void 0 : _a.call(column, tableClasses)) || column.title,
|
|
43
43
|
typeof column.sorter === 'function' ? (jsx(TableSortingIcon, { column: column }, void 0)) : null] }), void 0) }), `${column.dataIndex}-${column.title}`));
|
|
44
44
|
})] }), void 0));
|
|
45
|
-
});
|
|
45
|
+
});
|
|
46
|
+
var TableHeader$1 = TableHeader;
|
|
46
47
|
|
|
47
|
-
export default
|
|
48
|
+
export { TableHeader$1 as default };
|
|
@@ -10,6 +10,7 @@ const TableExpandable = forwardRef(function TableExpandable(props, ref) {
|
|
|
10
10
|
return (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(tableClasses.collapseAction, className) }, { children: jsx("div", Object.assign({ className: tableClasses.icon }, { children: showIcon ? (jsx(Icon, { className: cx(tableClasses.icon, {
|
|
11
11
|
[tableClasses.iconClickable]: expandable,
|
|
12
12
|
}), color: expandable ? 'primary' : 'disabled', icon: ChevronDownIcon, onClick: () => expandable && (setExpanded === null || setExpanded === void 0 ? void 0 : setExpanded(!expanded)), style: { transform: `rotate(${expanded ? '180deg' : '0'})` } }, void 0)) : null }), void 0) }), void 0));
|
|
13
|
-
});
|
|
13
|
+
});
|
|
14
|
+
var TableExpandable$1 = TableExpandable;
|
|
14
15
|
|
|
15
|
-
export default
|
|
16
|
+
export { TableExpandable$1 as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useContext } from 'react';
|
|
3
3
|
import { tableClasses } from '@mezzanine-ui/core/table';
|
|
4
|
-
import { TableContext
|
|
4
|
+
import { TableContext } from '../TableContext.js';
|
|
5
5
|
import { useTablePagination } from './useTablePagination.js';
|
|
6
6
|
import Pagination from '../../Pagination/Pagination.js';
|
|
7
7
|
import cx from 'clsx';
|
|
@@ -9,19 +9,18 @@ import cx from 'clsx';
|
|
|
9
9
|
const TablePagination = forwardRef(function TablePagination(props, ref) {
|
|
10
10
|
const { className, bodyRef, ...rest } = props;
|
|
11
11
|
const { pagination, } = useContext(TableContext) || {};
|
|
12
|
-
const {
|
|
13
|
-
const [currentPage, setCurrentPage
|
|
12
|
+
const { current: currentPageProp, onChange: onChangePageProp, total, options: paginationOptions = {}, } = pagination || {};
|
|
13
|
+
const [currentPage, setCurrentPage] = useTablePagination({
|
|
14
14
|
bodyRef,
|
|
15
|
-
current:
|
|
16
|
-
|
|
17
|
-
onChange: pagination === null || pagination === void 0 ? void 0 : pagination.onChange,
|
|
18
|
-
options: pagination === null || pagination === void 0 ? void 0 : pagination.options,
|
|
19
|
-
total: pagination === null || pagination === void 0 ? void 0 : pagination.total,
|
|
15
|
+
current: currentPageProp,
|
|
16
|
+
onChange: onChangePageProp,
|
|
20
17
|
});
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
});
|
|
18
|
+
const { boundaryCount, className: paginationClassName, disabled, hideNextButton, hidePreviousButton, pageSize: pageSizeProp, siblingCount, } = paginationOptions;
|
|
19
|
+
const currentStartCount = (pageSizeProp * (currentPage - 1)) + 1;
|
|
20
|
+
const currentEndCount = Math.min(pageSizeProp * currentPage, total);
|
|
21
|
+
return (jsxs("div", Object.assign({}, rest, { ref: ref, className: cx(tableClasses.pagination, className) }, { children: [jsx("span", Object.assign({ className: tableClasses.paginationIndicator }, { children: `目前顯示 ${currentStartCount} - ${currentEndCount} 筆,共 ${total} 筆資料` }), void 0),
|
|
22
|
+
jsx("div", Object.assign({ className: tableClasses.paginationActions }, { children: jsx(Pagination, { boundaryCount: boundaryCount, className: paginationClassName, current: currentPage, disabled: disabled, hideNextButton: hideNextButton, hidePreviousButton: hidePreviousButton, onChange: setCurrentPage, pageSize: pageSizeProp, siblingCount: siblingCount, total: total }, void 0) }), void 0)] }), void 0));
|
|
23
|
+
});
|
|
24
|
+
var TablePagination$1 = TablePagination;
|
|
26
25
|
|
|
27
|
-
export default
|
|
26
|
+
export { TablePagination$1 as default };
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { TablePagination
|
|
3
|
-
export interface UseTablePagination
|
|
2
|
+
import { TablePagination } from '@mezzanine-ui/core/table';
|
|
3
|
+
export interface UseTablePagination {
|
|
4
4
|
bodyRef: RefObject<HTMLDivElement>;
|
|
5
|
-
|
|
5
|
+
current?: TablePagination['current'];
|
|
6
|
+
onChange?: TablePagination['onChange'];
|
|
6
7
|
}
|
|
7
|
-
export declare function useTablePagination(props: UseTablePagination): readonly [number, (c: number) => void
|
|
8
|
-
boundaryCount: number;
|
|
9
|
-
className: string | undefined;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
hideNextButton: boolean;
|
|
12
|
-
hidePreviousButton: boolean;
|
|
13
|
-
pageSize: number;
|
|
14
|
-
siblingCount: number;
|
|
15
|
-
total: number;
|
|
16
|
-
}];
|
|
8
|
+
export declare function useTablePagination(props: UseTablePagination): readonly [number, (c: number) => void];
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { useContext
|
|
1
|
+
import { useContext } from 'react';
|
|
2
2
|
import { useControlValueState } from '../../Form/useControlValueState.js';
|
|
3
3
|
import { useLastCallback } from '../../hooks/useLastCallback.js';
|
|
4
4
|
import { TableContext } from '../TableContext.js';
|
|
5
5
|
|
|
6
6
|
const equalityFn = (a, b) => a === b;
|
|
7
7
|
function useTablePagination(props) {
|
|
8
|
-
const { bodyRef, current: currentProp,
|
|
9
|
-
const { boundaryCount = 1, className, disabled = false, hideNextButton = false, hidePreviousButton = false, pageSize: pageSizeProp, siblingCount = 1, } = optionsProp || {};
|
|
8
|
+
const { bodyRef, current: currentProp, onChange: onChangeProp, } = props;
|
|
10
9
|
const { sorting, } = useContext(TableContext) || {};
|
|
11
10
|
const [current, setCurrent] = useControlValueState({
|
|
12
11
|
defaultValue: 1,
|
|
@@ -24,26 +23,7 @@ function useTablePagination(props) {
|
|
|
24
23
|
}
|
|
25
24
|
onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(newCurrent);
|
|
26
25
|
});
|
|
27
|
-
|
|
28
|
-
const total = useMemo(() => (totalProp !== null && totalProp !== void 0 ? totalProp : (dataSource.length / pageSize)), [totalProp, dataSource.length, pageSize]);
|
|
29
|
-
const defaultOptions = useMemo(() => ({
|
|
30
|
-
boundaryCount,
|
|
31
|
-
className,
|
|
32
|
-
disabled,
|
|
33
|
-
hideNextButton,
|
|
34
|
-
hidePreviousButton,
|
|
35
|
-
pageSize,
|
|
36
|
-
siblingCount,
|
|
37
|
-
total,
|
|
38
|
-
}), [
|
|
39
|
-
boundaryCount,
|
|
40
|
-
className,
|
|
41
|
-
disabled,
|
|
42
|
-
hideNextButton,
|
|
43
|
-
hidePreviousButton,
|
|
44
|
-
siblingCount,
|
|
45
|
-
]);
|
|
46
|
-
return [current, onChange, defaultOptions];
|
|
26
|
+
return [current, onChange];
|
|
47
27
|
}
|
|
48
28
|
|
|
49
29
|
export { useTablePagination };
|
|
@@ -18,6 +18,7 @@ const TableRefresh = forwardRef(function TableRefresh(props, ref) {
|
|
|
18
18
|
setLoading,
|
|
19
19
|
]);
|
|
20
20
|
return (jsx("div", Object.assign({ ref: ref, className: tableClasses.refresh }, rest, { children: jsx(Button, Object.assign({ onClick: onRefreshClicked, prefix: jsx(Icon, { icon: ResetIcon }, void 0) }, { children: children || '重新整理' }), void 0) }), void 0));
|
|
21
|
-
});
|
|
21
|
+
});
|
|
22
|
+
var TableRefresh$1 = TableRefresh;
|
|
22
23
|
|
|
23
|
-
export default
|
|
24
|
+
export { TableRefresh$1 as default };
|
|
@@ -81,6 +81,7 @@ const TableRowSelection = forwardRef(function TableRowSelection(props, ref) {
|
|
|
81
81
|
} }, { children: (dropdownRef) => (jsx(Icon, { ref: dropdownRef, className: cx(tableClasses.icon, {
|
|
82
82
|
[tableClasses.iconClickable]: isMenuAllowOpen,
|
|
83
83
|
}), color: isMenuAllowOpen ? 'primary' : 'disabled', icon: MoreVerticalIcon, onClick: onIconClicked }, void 0)) }), void 0)) : null }), void 0)] }), void 0));
|
|
84
|
-
});
|
|
84
|
+
});
|
|
85
|
+
var TableRowSelection$1 = TableRowSelection;
|
|
85
86
|
|
|
86
|
-
export default
|
|
87
|
+
export { TableRowSelection$1 as default };
|
|
@@ -23,6 +23,7 @@ const TableSortingIcon = forwardRef(function TableSortingIcon(props, ref) {
|
|
|
23
23
|
evt.stopPropagation();
|
|
24
24
|
(_a = sorting === null || sorting === void 0 ? void 0 : sorting.onSort) === null || _a === void 0 ? void 0 : _a.call(sorting, column);
|
|
25
25
|
}, style: currentIconStyle.style }), void 0));
|
|
26
|
-
});
|
|
26
|
+
});
|
|
27
|
+
var TableSortingIcon$1 = TableSortingIcon;
|
|
27
28
|
|
|
28
|
-
export default
|
|
29
|
+
export { TableSortingIcon$1 as default };
|
|
@@ -33,7 +33,7 @@ export default function useTableScroll(): readonly [{
|
|
|
33
33
|
title?: string | undefined;
|
|
34
34
|
translate?: "yes" | "no" | undefined;
|
|
35
35
|
radioGroup?: string | undefined;
|
|
36
|
-
role?: string | undefined;
|
|
36
|
+
role?: "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "gridcell" | "group" | "heading" | "img" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | (string & {}) | undefined;
|
|
37
37
|
about?: string | undefined;
|
|
38
38
|
datatype?: string | undefined;
|
|
39
39
|
inlist?: any;
|
|
@@ -54,11 +54,11 @@ export default function useTableScroll(): readonly [{
|
|
|
54
54
|
results?: number | undefined;
|
|
55
55
|
security?: string | undefined;
|
|
56
56
|
unselectable?: "on" | "off" | undefined;
|
|
57
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" |
|
|
57
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
58
58
|
is?: string | undefined;
|
|
59
59
|
'aria-activedescendant'?: string | undefined;
|
|
60
60
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
61
|
-
'aria-autocomplete'?: "none" | "
|
|
61
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
62
62
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
63
63
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
64
64
|
'aria-colcount'?: number | undefined;
|
|
@@ -69,12 +69,12 @@ export default function useTableScroll(): readonly [{
|
|
|
69
69
|
'aria-describedby'?: string | undefined;
|
|
70
70
|
'aria-details'?: string | undefined;
|
|
71
71
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
72
|
-
'aria-dropeffect'?: "none" | "
|
|
72
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
73
73
|
'aria-errormessage'?: string | undefined;
|
|
74
74
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
75
75
|
'aria-flowto'?: string | undefined;
|
|
76
76
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
77
|
-
'aria-haspopup'?: boolean | "true" | "false" | "
|
|
77
|
+
'aria-haspopup'?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
78
78
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
79
79
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
80
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -120,10 +120,10 @@ export default function useTableScroll(): readonly [{
|
|
|
120
120
|
onCompositionStartCapture?: ((event: import("react").CompositionEvent<HTMLDivElement>) => void) | undefined;
|
|
121
121
|
onCompositionUpdate?: ((event: import("react").CompositionEvent<HTMLDivElement>) => void) | undefined;
|
|
122
122
|
onCompositionUpdateCapture?: ((event: import("react").CompositionEvent<HTMLDivElement>) => void) | undefined;
|
|
123
|
-
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement>) => void) | undefined;
|
|
124
|
-
onFocusCapture?: ((event: import("react").FocusEvent<HTMLDivElement>) => void) | undefined;
|
|
125
|
-
onBlur?: ((event: import("react").FocusEvent<HTMLDivElement>) => void) | undefined;
|
|
126
|
-
onBlurCapture?: ((event: import("react").FocusEvent<HTMLDivElement>) => void) | undefined;
|
|
123
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
124
|
+
onFocusCapture?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
125
|
+
onBlur?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
126
|
+
onBlurCapture?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
127
127
|
onChange?: ((event: import("react").FormEvent<HTMLDivElement>) => void) | undefined;
|
|
128
128
|
onChangeCapture?: ((event: import("react").FormEvent<HTMLDivElement>) => void) | undefined;
|
|
129
129
|
onBeforeInput?: ((event: import("react").FormEvent<HTMLDivElement>) => void) | undefined;
|
package/Table/useTableScroll.js
CHANGED
package/Tabs/Tab.js
CHANGED
|
@@ -11,6 +11,7 @@ const Tab = forwardRef(function Tab(props, ref) {
|
|
|
11
11
|
return (jsx("button", Object.assign({}, rest, { ref: ref, type: "button", "aria-disabled": disabled, className: cx(tabsClasses.tab, {
|
|
12
12
|
[tabsClasses.tabActive]: active,
|
|
13
13
|
}, className), disabled: disabled }, { children: children }), void 0));
|
|
14
|
-
});
|
|
14
|
+
});
|
|
15
|
+
var Tab$1 = Tab;
|
|
15
16
|
|
|
16
|
-
export default
|
|
17
|
+
export { Tab$1 as default };
|
package/Tabs/TabPane.js
CHANGED
|
@@ -13,6 +13,7 @@ const TabPane = forwardRef(function TabPane(props, ref) {
|
|
|
13
13
|
*/
|
|
14
14
|
tab, ...rest } = props;
|
|
15
15
|
return (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(tabsClasses.pane, className) }, { children: children }), void 0));
|
|
16
|
-
});
|
|
16
|
+
});
|
|
17
|
+
var TabPane$1 = TabPane;
|
|
17
18
|
|
|
18
|
-
export default
|
|
19
|
+
export { TabPane$1 as default };
|
package/Tabs/Tabs.js
CHANGED
|
@@ -44,6 +44,7 @@ const Tabs = forwardRef(function Tabs(props, ref) {
|
|
|
44
44
|
return (jsxs("div", Object.assign({}, rest, { ref: ref, className: cx(tabsClasses.host, className) }, { children: [jsxs("div", Object.assign({ className: cx(tabsClasses.tabBar, tabBarClassName) }, { children: [jsxs("div", Object.assign({ className: tabsClasses.overflow }, { children: [isOverflowing && !isScrollToBegin && (jsx("button", Object.assign({ "aria-label": "scrollToLeft", className: tabsClasses.scrollBtn, onClick: () => scrollToLeft(), type: "button" }, { children: jsx(Icon, { icon: ChevronLeftIcon }, void 0) }), void 0)),
|
|
45
45
|
jsx("div", Object.assign({ ref: tabsRef, className: tabsClasses.tabs }, { children: tabs }), void 0),
|
|
46
46
|
isOverflowing && !isScrollToEnd && (jsx("button", Object.assign({ "aria-label": "scrollToRight", className: tabsClasses.scrollBtn, onClick: () => scrollToRight(), type: "button" }, { children: jsx(Icon, { icon: ChevronRightIcon }, void 0) }), void 0))] }), void 0), actions] }), void 0), pane] }), void 0));
|
|
47
|
-
});
|
|
47
|
+
});
|
|
48
|
+
var Tabs$1 = Tabs;
|
|
48
49
|
|
|
49
|
-
export default
|
|
50
|
+
export { Tabs$1 as default };
|
package/Tabs/useTabsOverflow.js
CHANGED
package/Tag/Tag.js
CHANGED
package/TextField/TextField.js
CHANGED
|
@@ -34,6 +34,7 @@ const TextField = forwardRef(function TextField(props, ref) {
|
|
|
34
34
|
onClear(event);
|
|
35
35
|
}
|
|
36
36
|
}, onMouseDown: (event) => event.preventDefault(), role: "button", tabIndex: -1 }, void 0))] }), void 0));
|
|
37
|
-
});
|
|
37
|
+
});
|
|
38
|
+
var TextField$1 = TextField;
|
|
38
39
|
|
|
39
|
-
export default
|
|
40
|
+
export { TextField$1 as default };
|
package/Textarea/Textarea.js
CHANGED
|
@@ -3,8 +3,8 @@ import { forwardRef, useContext, useRef } from 'react';
|
|
|
3
3
|
import { textareaClasses } from '@mezzanine-ui/core/textarea';
|
|
4
4
|
import { useComposeRefs } from '../hooks/useComposeRefs.js';
|
|
5
5
|
import { useInputWithClearControlValue } from '../Form/useInputWithClearControlValue.js';
|
|
6
|
-
import { FormControlContext } from '../Form/FormControlContext.js';
|
|
7
6
|
import TextField from '../TextField/TextField.js';
|
|
7
|
+
import { FormControlContext } from '../Form/FormControlContext.js';
|
|
8
8
|
import cx from 'clsx';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -28,6 +28,7 @@ const Textarea = forwardRef(function Textarea(props, ref) {
|
|
|
28
28
|
[textareaClasses.upperLimit]: upperLimit,
|
|
29
29
|
}, className), clearable: clearable, disabled: disabled, error: error, fullWidth: fullWidth, onClear: onClear, size: size }, { children: [jsx("textarea", Object.assign({}, textareaProps, { ref: composedTextareaRef, "aria-disabled": disabled, "aria-multiline": true, "aria-readonly": readOnly, "aria-required": required, disabled: disabled, maxLength: maxLength, onChange: onChange, placeholder: placeholder, readOnly: readOnly, required: required, rows: rows, value: value }), void 0),
|
|
30
30
|
typeof maxLength === 'number' && (jsxs("span", Object.assign({ className: textareaClasses.count }, { children: [value.length, "/", maxLength] }), void 0))] }), void 0));
|
|
31
|
-
});
|
|
31
|
+
});
|
|
32
|
+
var Textarea$1 = Textarea;
|
|
32
33
|
|
|
33
|
-
export default
|
|
34
|
+
export { Textarea$1 as default };
|
package/TimePanel/TimePanel.js
CHANGED
|
@@ -62,6 +62,7 @@ const TimePanel = forwardRef(function TimePanel(props, ref) {
|
|
|
62
62
|
!hideMinute && minuteUnits && (jsx(TimePanelColumn, { prefix: minutePrefix, units: minuteUnits, activeUnit: activeMinute, onChange: getChangeHandle('minute'), onNext: getControlHandle('minute', minuteUnits, minuteStep), onPrev: getControlHandle('minute', minuteUnits, -minuteStep) }, void 0)),
|
|
63
63
|
!hideSecond && secondUnits && (jsx(TimePanelColumn, { prefix: secondPrefix, units: secondUnits, activeUnit: activeSecond, onChange: getChangeHandle('second'), onNext: getControlHandle('second', secondUnits, secondStep), onPrev: getControlHandle('second', secondUnits, -secondStep) }, void 0))] }), void 0),
|
|
64
64
|
!withoutAction && (jsx(TimePanelAction, { onConfirm: onConfirm, confirmText: confirmText }, void 0))] }), void 0));
|
|
65
|
-
});
|
|
65
|
+
});
|
|
66
|
+
var TimePanel$1 = TimePanel;
|
|
66
67
|
|
|
67
|
-
export default
|
|
68
|
+
export { TimePanel$1 as default };
|
|
@@ -10,6 +10,7 @@ import cx from 'clsx';
|
|
|
10
10
|
const TimePanelAction = forwardRef(function TimePanelAction(props, ref) {
|
|
11
11
|
const { className, confirmText = 'OK', onConfirm, ...rest } = props;
|
|
12
12
|
return (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(timePanelClasses.action, className) }, { children: jsx(Button, Object.assign({ variant: "contained", size: "small", onClick: onConfirm }, { children: confirmText }), void 0) }), void 0));
|
|
13
|
-
});
|
|
13
|
+
});
|
|
14
|
+
var TimePanelAction$1 = TimePanelAction;
|
|
14
15
|
|
|
15
|
-
export default
|
|
16
|
+
export { TimePanelAction$1 as default };
|
|
@@ -34,6 +34,7 @@ const TimePanelColumn = forwardRef(function TimePanelColumn(props, ref) {
|
|
|
34
34
|
[timePanelClasses.buttonActive]: unit.value === activeUnit,
|
|
35
35
|
}), onClick: getChangeHandler(unit) }, { children: unit.label }), unit.value))) }), void 0),
|
|
36
36
|
jsx("button", Object.assign({ type: "button", className: cx(timePanelClasses.button, timePanelClasses.columnControlButton), onClick: onNext }, { children: jsx(Icon, { icon: ChevronDownIcon }, void 0) }), void 0)] }), void 0));
|
|
37
|
-
});
|
|
37
|
+
});
|
|
38
|
+
var TimePanelColumn$1 = TimePanelColumn;
|
|
38
39
|
|
|
39
|
-
export default
|
|
40
|
+
export { TimePanelColumn$1 as default };
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -3,12 +3,12 @@ import { ClockIcon } from '@mezzanine-ui/icons';
|
|
|
3
3
|
import { forwardRef, useContext, useMemo, useState, useCallback, useRef } from 'react';
|
|
4
4
|
import { useComposeRefs } from '../hooks/useComposeRefs.js';
|
|
5
5
|
import TimePickerPanel from './TimePickerPanel.js';
|
|
6
|
-
import { FormControlContext } from '../Form/FormControlContext.js';
|
|
7
6
|
import { useCalendarContext } from '../Calendar/CalendarContext.js';
|
|
8
7
|
import { usePickerValue } from '../Picker/usePickerValue.js';
|
|
9
8
|
import { usePickerDocumentEventClose } from '../Picker/usePickerDocumentEventClose.js';
|
|
10
9
|
import Icon from '../Icon/Icon.js';
|
|
11
10
|
import PickerTrigger from '../Picker/PickerTrigger.js';
|
|
11
|
+
import { FormControlContext } from '../Form/FormControlContext.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The react component for `mezzanine` time picker.
|
|
@@ -109,6 +109,7 @@ const TimePicker = forwardRef(function TimePicker(props, ref) {
|
|
|
109
109
|
const suffixActionIcon = (jsx(Icon, { icon: ClockIcon, onClick: onIconClick }, void 0));
|
|
110
110
|
return (jsxs(Fragment, { children: [jsx(PickerTrigger, { ref: triggerComposedRef, className: className, clearable: clearable, disabled: disabled, error: error, fullWidth: fullWidth, inputProps: resolvedInputProps, inputRef: inputRef, onChange: onInputChange, onClear: onClear, placeholder: placeholder, prefix: prefix, readOnly: readOnly, required: required, size: sizeProp, suffixActionIcon: suffixActionIcon, value: inputValue }, void 0),
|
|
111
111
|
jsx(TimePickerPanel, { ref: panelRef, anchor: anchorRef, confirmText: confirmText, hideHour: hideHour, hideMinute: hideMinute, hideSecond: hideSecond, hourPrefix: hourPrefix, hourStep: hourStep, minutePrefix: minutePrefix, minuteStep: minuteStep, onChange: onChange, onConfirm: onConfirm, open: open, popperProps: popperProps, secondPrefix: secondPrefix, secondStep: secondStep, value: internalValue }, void 0)] }, void 0));
|
|
112
|
-
});
|
|
112
|
+
});
|
|
113
|
+
var TimePicker$1 = TimePicker;
|
|
113
114
|
|
|
114
|
-
export default
|
|
115
|
+
export { TimePicker$1 as default };
|
|
@@ -9,6 +9,7 @@ import TimePanel from '../TimePanel/TimePanel.js';
|
|
|
9
9
|
const TimePickerPanel = forwardRef(function TimePickerPanel(props, ref) {
|
|
10
10
|
const { anchor, confirmText, fadeProps, hideHour, hideMinute, hideSecond, hourPrefix, hourStep, minutePrefix, minuteStep, onChange, onConfirm, open, popperProps, secondPrefix, secondStep, value, ...restHostProps } = props;
|
|
11
11
|
return (jsx(InputTriggerPopper, Object.assign({}, popperProps, { ref: ref, anchor: anchor, open: open, fadeProps: fadeProps }, { children: jsx(TimePanel, Object.assign({}, restHostProps, { hideHour: hideHour, hourStep: hourStep, hideMinute: hideMinute, minuteStep: minuteStep, hideSecond: hideSecond, secondStep: secondStep, hourPrefix: hourPrefix, minutePrefix: minutePrefix, secondPrefix: secondPrefix, onChange: onChange, value: value, onConfirm: onConfirm, confirmText: confirmText }), void 0) }), void 0));
|
|
12
|
-
});
|
|
12
|
+
});
|
|
13
|
+
var TimePickerPanel$1 = TimePickerPanel;
|
|
13
14
|
|
|
14
|
-
export default
|
|
15
|
+
export { TimePickerPanel$1 as default };
|
package/Tooltip/Tooltip.js
CHANGED
package/Transition/Collapse.js
CHANGED
|
@@ -102,6 +102,7 @@ const Collapse = forwardRef(function Collapse(props, ref) {
|
|
|
102
102
|
...getStyle(state, inProp, collapsedHeight),
|
|
103
103
|
...style,
|
|
104
104
|
} }, { children: jsx("div", Object.assign({ ref: wrapperRef, style: { display: 'flex', width: '100%' } }, { children: jsx("div", Object.assign({ style: { width: '100%' } }, { children: children }), void 0) }), void 0) }), void 0)) }), void 0));
|
|
105
|
-
});
|
|
105
|
+
});
|
|
106
|
+
var Collapse$1 = Collapse;
|
|
106
107
|
|
|
107
|
-
export default
|
|
108
|
+
export { Collapse$1 as default };
|
package/Transition/Fade.js
CHANGED
package/Transition/Grow.js
CHANGED
package/Transition/SlideFade.js
CHANGED
|
@@ -19,7 +19,7 @@ export interface TransitionImplementationChildProps {
|
|
|
19
19
|
style?: CSSProperties;
|
|
20
20
|
}
|
|
21
21
|
export interface TransitionImplementationProps extends Omit<TransitionProps, 'addEndListener' | 'children' | 'nodeRef'> {
|
|
22
|
-
children
|
|
22
|
+
children: ReactElement<TransitionImplementationChildProps, NativeElementTag | JSXElementConstructor<TransitionImplementationChildProps>>;
|
|
23
23
|
/**
|
|
24
24
|
* The delay of the transition, in milliseconds
|
|
25
25
|
*/
|
package/Transition/Transition.js
CHANGED
|
@@ -24,4 +24,4 @@ function Transition(props) {
|
|
|
24
24
|
addEndListener: addNodeToCallback(addEndListener), appear: appear, in: inProp, mountOnEnter: lazyMount, nodeRef: nodeRef, onEnter: addNodeToCallback(onEnter), onEntering: addNodeToCallback(onEntering), onEntered: addNodeToCallback(onEntered), onExit: addNodeToCallback(onExit), onExiting: addNodeToCallback(onExiting), onExited: addNodeToCallback(onExited), timeout: duration === 'auto' ? undefined : duration, unmountOnExit: !keepMount }, { children: children }), void 0));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export default
|
|
27
|
+
export { Transition as default };
|