@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.
Files changed (169) hide show
  1. package/Accordion/Accordion.js +3 -2
  2. package/Accordion/AccordionDetails.js +3 -2
  3. package/Accordion/AccordionSummary.js +3 -2
  4. package/Alert/Alert.js +3 -2
  5. package/AppBar/AppBar.js +3 -2
  6. package/AppBar/AppBarBrand.js +3 -2
  7. package/AppBar/AppBarMain.js +3 -2
  8. package/AppBar/AppBarSupport.js +3 -2
  9. package/Badge/Badge.js +3 -2
  10. package/Badge/BadgeContainer.js +3 -2
  11. package/Button/Button.d.ts +1 -1
  12. package/Button/Button.js +3 -2
  13. package/Button/ButtonGroup.js +3 -2
  14. package/Button/IconButton.js +3 -2
  15. package/Button/index.js +2 -2
  16. package/Calendar/Calendar.js +3 -2
  17. package/Calendar/CalendarCell.js +1 -1
  18. package/Calendar/CalendarContext.js +1 -2
  19. package/Calendar/CalendarControls.js +1 -1
  20. package/Calendar/CalendarDayOfWeek.js +1 -1
  21. package/Calendar/CalendarDays.js +1 -1
  22. package/Calendar/CalendarMonths.js +1 -1
  23. package/Calendar/CalendarWeeks.js +1 -1
  24. package/Calendar/CalendarYears.js +1 -1
  25. package/Card/Card.js +3 -2
  26. package/Card/CardActions.js +3 -2
  27. package/Checkbox/CheckAll.js +3 -2
  28. package/Checkbox/Checkbox.js +3 -2
  29. package/Checkbox/CheckboxGroup.js +3 -2
  30. package/ConfirmActions/ConfirmActions.js +3 -2
  31. package/DatePicker/DatePicker.js +4 -3
  32. package/DatePicker/DatePickerCalendar.js +3 -2
  33. package/DateRangePicker/DateRangePicker.js +4 -3
  34. package/DateRangePicker/DateRangePickerCalendar.js +3 -2
  35. package/DateRangePicker/useDateRangePickerValue.d.ts +2 -2
  36. package/DateTimePicker/DateTimePicker.js +4 -3
  37. package/DateTimePicker/DateTimePickerPanel.js +3 -2
  38. package/Drawer/Drawer.d.ts +2 -7
  39. package/Drawer/Drawer.js +8 -23
  40. package/Dropdown/Dropdown.js +3 -2
  41. package/Empty/Empty.js +3 -2
  42. package/Form/FormField.js +3 -2
  43. package/Form/FormLabel.js +3 -2
  44. package/Form/FormMessage.js +3 -2
  45. package/Icon/Icon.d.ts +4 -0
  46. package/Icon/Icon.js +6 -4
  47. package/Input/Input.js +4 -3
  48. package/Loading/Loading.js +3 -2
  49. package/Menu/Menu.js +3 -2
  50. package/Menu/MenuDivider.js +3 -2
  51. package/Menu/MenuItem.js +3 -2
  52. package/Menu/MenuItemGroup.js +3 -2
  53. package/Message/Message.d.ts +8 -5
  54. package/Message/Message.js +29 -13
  55. package/Message/index.d.ts +1 -1
  56. package/Modal/Modal.d.ts +2 -7
  57. package/Modal/Modal.js +11 -59
  58. package/Modal/ModalActions.js +3 -2
  59. package/Modal/ModalBody.js +3 -2
  60. package/Modal/ModalFooter.js +3 -2
  61. package/Modal/ModalHeader.js +3 -2
  62. package/Modal/index.d.ts +1 -0
  63. package/Modal/index.js +1 -0
  64. package/Modal/useModalContainer.d.ts +6 -0
  65. package/Modal/useModalContainer.js +27 -0
  66. package/Navigation/Navigation.js +3 -2
  67. package/Navigation/NavigationItem.js +3 -2
  68. package/Navigation/NavigationSubMenu.js +3 -2
  69. package/Notification/Notification.js +4 -3
  70. package/Notifier/NotifierManager.js +1 -1
  71. package/Overlay/Overlay.js +3 -2
  72. package/PageFooter/PageFooter.js +3 -2
  73. package/Pagination/Pagination.js +3 -2
  74. package/Pagination/PaginationItem.js +3 -2
  75. package/Pagination/PaginationJumper.js +3 -2
  76. package/Picker/PickerTrigger.js +3 -2
  77. package/Picker/RangePickerTrigger.js +3 -2
  78. package/Picker/usePickerInputValue.js +1 -2
  79. package/Picker/usePickerValue.d.ts +1 -1
  80. package/Picker/useRangePickerValue.d.ts +2 -2
  81. package/Popconfirm/Popconfirm.js +3 -2
  82. package/Popover/Popover.js +3 -2
  83. package/Popper/Popper.js +3 -2
  84. package/Portal/Portal.js +3 -2
  85. package/Progress/Progress.js +3 -2
  86. package/Radio/Radio.js +4 -3
  87. package/Radio/RadioGroup.js +3 -2
  88. package/Select/AutoComplete.d.ts +1 -1
  89. package/Select/AutoComplete.js +4 -3
  90. package/Select/Option.js +3 -2
  91. package/Select/Select.d.ts +1 -1
  92. package/Select/Select.js +4 -3
  93. package/Select/SelectTrigger.js +3 -2
  94. package/Select/TreeSelect.d.ts +1 -1
  95. package/Select/TreeSelect.js +4 -3
  96. package/Skeleton/Skeleton.js +3 -2
  97. package/Slider/Slider.js +20 -3
  98. package/Slider/useSlider.js +8 -6
  99. package/Stepper/Step.js +3 -2
  100. package/Stepper/Stepper.js +3 -2
  101. package/Switch/Switch.js +4 -3
  102. package/Table/Table.d.ts +51 -44
  103. package/Table/Table.js +42 -23
  104. package/Table/TableBody.js +10 -4
  105. package/Table/TableBodyRow.js +3 -2
  106. package/Table/TableCell.js +3 -2
  107. package/Table/TableHeader.js +3 -2
  108. package/Table/editable/TableEditRenderWrapper.js +1 -1
  109. package/Table/expandable/TableExpandable.js +3 -2
  110. package/Table/pagination/TablePagination.js +13 -14
  111. package/Table/pagination/useTablePagination.d.ts +5 -13
  112. package/Table/pagination/useTablePagination.js +3 -23
  113. package/Table/refresh/TableRefresh.js +3 -2
  114. package/Table/rowSelection/TableRowSelection.js +3 -2
  115. package/Table/sorting/TableSortingIcon.js +3 -2
  116. package/Table/useTableScroll.d.ts +9 -9
  117. package/Table/useTableScroll.js +1 -1
  118. package/Tabs/Tab.js +3 -2
  119. package/Tabs/TabPane.js +3 -2
  120. package/Tabs/Tabs.js +3 -2
  121. package/Tabs/useTabsOverflow.js +1 -1
  122. package/Tag/Tag.js +3 -2
  123. package/TextField/TextField.js +3 -2
  124. package/Textarea/Textarea.js +4 -3
  125. package/TimePanel/TimePanel.js +3 -2
  126. package/TimePanel/TimePanelAction.js +3 -2
  127. package/TimePanel/TimePanelColumn.js +3 -2
  128. package/TimePicker/TimePicker.js +4 -3
  129. package/TimePicker/TimePickerPanel.js +3 -2
  130. package/Tooltip/Tooltip.js +3 -2
  131. package/Transition/Collapse.js +3 -2
  132. package/Transition/Fade.js +3 -2
  133. package/Transition/Grow.js +3 -2
  134. package/Transition/SlideFade.js +3 -2
  135. package/Transition/Transition.d.ts +1 -1
  136. package/Transition/Transition.js +1 -1
  137. package/Transition/Zoom.js +3 -2
  138. package/Tree/Tree.js +3 -2
  139. package/Tree/TreeNode.js +3 -2
  140. package/Tree/TreeNodeList.js +3 -2
  141. package/Typography/Typography.d.ts +1 -1
  142. package/Typography/Typography.js +3 -2
  143. package/Upload/UploadButton.js +3 -2
  144. package/Upload/UploadInput.js +5 -2
  145. package/Upload/UploadPicture.d.ts +48 -0
  146. package/Upload/UploadPicture.js +52 -0
  147. package/Upload/UploadPictureBlock.d.ts +13 -0
  148. package/Upload/UploadPictureBlock.js +86 -0
  149. package/Upload/UploadPictureWall.d.ts +71 -0
  150. package/Upload/UploadPictureWall.js +156 -0
  151. package/Upload/UploadPictureWallItem.d.ts +13 -0
  152. package/Upload/UploadPictureWallItem.js +19 -0
  153. package/Upload/UploadResult.js +3 -2
  154. package/Upload/index.d.ts +3 -0
  155. package/Upload/index.js +3 -0
  156. package/_internal/InputCheck/InputCheck.js +3 -2
  157. package/_internal/InputCheck/InputCheckGroup.js +3 -2
  158. package/_internal/InputTriggerPopper/InputTriggerPopper.js +3 -2
  159. package/_internal/SlideFadeOverlay/SlideFadeOverlay.d.ts +21 -0
  160. package/_internal/SlideFadeOverlay/SlideFadeOverlay.js +66 -0
  161. package/_internal/SlideFadeOverlay/index.d.ts +1 -0
  162. package/_internal/SlideFadeOverlay/index.js +1 -0
  163. package/_internal/SlideFadeOverlay/useTopStack.d.ts +1 -0
  164. package/{Modal/useIsTopModal.js → _internal/SlideFadeOverlay/useTopStack.js} +3 -3
  165. package/index.d.ts +4 -4
  166. package/index.js +52 -49
  167. package/package.json +6 -6
  168. package/utils/{rename-types.d.ts → general.d.ts} +3 -0
  169. 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
- scrollBarSize: 4,
66
- emptyProps,
67
- rowSelection,
68
- sorting: {
69
- onSort,
70
- onResetAll,
71
- sortedOn,
72
- sortedType,
73
- },
74
- loading,
75
- setLoading,
76
- expanding: expandableProp,
77
- fetchMore: onFetchMore ? {
78
- onFetchMore,
79
- isFetching,
80
- isReachEnd,
81
- } : undefined,
82
- pagination: paginationProp,
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
- (paginationProp === null || paginationProp === void 0 ? void 0 : paginationProp.show) ? (jsx(TablePagination, { bodyRef: bodyRef }, void 0)) : null] }), void 0) }), void 0) }), void 0) }), void 0) }), void 0));
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 Table;
130
+ export { Table$1 as default };
@@ -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, fetchMore, } = useContext(TableContext) || {};
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
- return (jsxs("div", Object.assign({}, rest, { ref: composedRefs, className: cx(tableClasses.body, className), onScroll: tableBody.onScroll, role: "rowgroup" }, { children: [dataSource.length ? dataSource.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)),
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 TableBody;
37
+ export { TableBody$1 as default };
@@ -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 TableBodyRow;
64
+ export { TableBodyRow$1 as default };
@@ -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 TableCell;
24
+ export { TableCell$1 as default };
@@ -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 TableHeader;
48
+ export { TableHeader$1 as default };
@@ -12,4 +12,4 @@ function TableEditRenderWrapper({ children, dataIndex, editable, rowData, setCel
12
12
  return (jsx(Fragment, { children: children }, void 0));
13
13
  }
14
14
 
15
- export default TableEditRenderWrapper;
15
+ export { TableEditRenderWrapper 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 TableExpandable;
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, TableDataContext } from '../TableContext.js';
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 { dataSource = [], } = useContext(TableDataContext) || {};
13
- const [currentPage, setCurrentPage, options] = useTablePagination({
12
+ const { current: currentPageProp, onChange: onChangePageProp, total, options: paginationOptions = {}, } = pagination || {};
13
+ const [currentPage, setCurrentPage] = useTablePagination({
14
14
  bodyRef,
15
- current: pagination === null || pagination === void 0 ? void 0 : pagination.current,
16
- dataSource,
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 currentStartCount = (options.pageSize * (currentPage - 1)) + 1;
22
- const currentEndCount = Math.min(options.pageSize * currentPage, options.total);
23
- return (jsxs("div", Object.assign({}, rest, { ref: ref, className: cx(tableClasses.pagination, className) }, { children: [jsx("span", Object.assign({ className: tableClasses.paginationIndicator }, { children: `目前顯示 ${currentStartCount} - ${currentEndCount} 筆,共 ${options.total} 筆資料` }), void 0),
24
- jsx("div", Object.assign({ className: tableClasses.paginationActions }, { children: jsx(Pagination, { boundaryCount: options.boundaryCount, className: options.className, current: currentPage, disabled: options.disabled, hideNextButton: options.hideNextButton, hidePreviousButton: options.hidePreviousButton, onChange: setCurrentPage, pageSize: options.pageSize, siblingCount: options.siblingCount, total: options.total }, void 0) }), void 0)] }), void 0));
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 TablePagination;
26
+ export { TablePagination$1 as default };
@@ -1,16 +1,8 @@
1
1
  import { RefObject } from 'react';
2
- import { TablePagination, TableDataSource } from '@mezzanine-ui/core/table';
3
- export interface UseTablePagination extends Omit<TablePagination, 'show'> {
2
+ import { TablePagination } from '@mezzanine-ui/core/table';
3
+ export interface UseTablePagination {
4
4
  bodyRef: RefObject<HTMLDivElement>;
5
- dataSource: TableDataSource[];
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, useMemo } from 'react';
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, dataSource, onChange: onChangeProp, options: optionsProp, total: totalProp, } = props;
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
- const pageSize = useMemo(() => (pageSizeProp !== null && pageSizeProp !== void 0 ? pageSizeProp : dataSource.length), [pageSizeProp, dataSource.length]);
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 TableRefresh;
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 TableRowSelection;
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 TableSortingIcon;
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" | "search" | undefined;
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" | "inline" | "list" | "both" | undefined;
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" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
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" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
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;
@@ -167,4 +167,4 @@ function useTableScroll() {
167
167
  return [tableBody, scrollElement];
168
168
  }
169
169
 
170
- export default useTableScroll;
170
+ export { useTableScroll as default };
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 Tab;
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 TabPane;
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 Tabs;
50
+ export { Tabs$1 as default };
@@ -55,4 +55,4 @@ function useTabsOverflow(tabsRef) {
55
55
  };
56
56
  }
57
57
 
58
- export default useTabsOverflow;
58
+ export { useTabsOverflow as default };
package/Tag/Tag.js CHANGED
@@ -18,6 +18,7 @@ const Tag = forwardRef(function Tag(props, ref) {
18
18
  onClose(event);
19
19
  }
20
20
  }, tabIndex: -1 }, void 0))] }), void 0));
21
- });
21
+ });
22
+ var Tag$1 = Tag;
22
23
 
23
- export default Tag;
24
+ export { Tag$1 as default };
@@ -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 TextField;
40
+ export { TextField$1 as default };
@@ -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 Textarea;
34
+ export { Textarea$1 as default };
@@ -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 TimePanel;
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 TimePanelAction;
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 TimePanelColumn;
40
+ export { TimePanelColumn$1 as default };
@@ -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 TimePicker;
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 TimePickerPanel;
15
+ export { TimePickerPanel$1 as default };
@@ -32,6 +32,7 @@ const Tooltip = forwardRef(function Tooltip(props, ref) {
32
32
  onMouseEnter: onTargetEnter,
33
33
  onMouseLeave: onLeave,
34
34
  })] }, void 0));
35
- });
35
+ });
36
+ var Tooltip$1 = Tooltip;
36
37
 
37
- export default Tooltip;
38
+ export { Tooltip$1 as default };
@@ -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 Collapse;
108
+ export { Collapse$1 as default };
@@ -79,6 +79,7 @@ const Fade = forwardRef(function Fade(props, ref) {
79
79
  ...children.props.style,
80
80
  },
81
81
  })) }), void 0));
82
- });
82
+ });
83
+ var Fade$1 = Fade;
83
84
 
84
- export default Fade;
85
+ export { Fade$1 as default };
@@ -107,6 +107,7 @@ const Grow = forwardRef(function Grow(props, ref) {
107
107
  ...children.props.style,
108
108
  },
109
109
  })) }), void 0));
110
- });
110
+ });
111
+ var Grow$1 = Grow;
111
112
 
112
- export default Grow;
113
+ export { Grow$1 as default };
@@ -88,6 +88,7 @@ const SlideFade = forwardRef(function SlideFade(props, ref) {
88
88
  ...children.props.style,
89
89
  },
90
90
  })) }), void 0));
91
- });
91
+ });
92
+ var SlideFade$1 = SlideFade;
92
93
 
93
- export default SlideFade;
94
+ export { SlideFade$1 as default };
@@ -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?: ReactElement<TransitionImplementationChildProps, NativeElementTag | JSXElementConstructor<TransitionImplementationChildProps>>;
22
+ children: ReactElement<TransitionImplementationChildProps, NativeElementTag | JSXElementConstructor<TransitionImplementationChildProps>>;
23
23
  /**
24
24
  * The delay of the transition, in milliseconds
25
25
  */
@@ -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 Transition;
27
+ export { Transition as default };
@@ -79,6 +79,7 @@ const Zoom = forwardRef(function Zoom(props, ref) {
79
79
  ...children.props.style,
80
80
  },
81
81
  })) }), void 0));
82
- });
82
+ });
83
+ var Zoom$1 = Zoom;
83
84
 
84
- export default Zoom;
85
+ export { Zoom$1 as default };