@daoyi/nmtl-ui 2.0.1-beta.13 → 2.0.1-beta.131
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/lib/components/Autocomplete-3b418e5f.js +494 -0
- package/lib/components/Autocomplete.js +20 -1
- package/lib/components/Avatar.js +59 -1
- package/lib/components/BackTop.js +124 -1
- package/lib/components/BarChart.js +764 -1
- package/lib/components/Breadcrumbs.js +122 -1
- package/lib/components/Button-7bd5aa09.js +114 -0
- package/lib/components/Button.js +7 -1
- package/lib/components/Carousel.js +4654 -1
- package/lib/components/Checkbox.js +37 -1
- package/lib/components/CollapseContent.js +180 -1
- package/lib/components/ContactModal-eaed02b8.js +12282 -0
- package/lib/components/ContactModal.js +24 -3
- package/lib/components/Drawer-629e59c7.js +176 -0
- package/lib/components/Drawer.js +17 -1
- package/lib/components/Dropdown.js +134 -1
- package/lib/components/Empty-c6a44967.js +46 -0
- package/lib/components/Empty.js +5 -1
- package/lib/components/ExportButton.js +128 -1
- package/lib/components/ExtraTools-2691c13e.js +3676 -0
- package/lib/components/ExtraTools.js +11 -22
- package/lib/components/Filter.js +821 -12
- package/lib/components/Footer.js +317 -1
- package/lib/components/ForwardLink-5fbd2705.js +184 -0
- package/lib/components/ForwardLink.js +10 -0
- package/lib/components/Header.js +233 -1
- package/lib/components/Image.js +61 -1
- package/lib/components/Input.js +89 -1
- package/lib/components/InputMethod.js +33949 -12
- package/lib/components/KeywordSearch-fec33a2c.js +156 -0
- package/lib/components/KeywordSearch.js +22 -1
- package/lib/components/KeywordTicker.js +224 -1
- package/lib/components/Keywords.js +383 -1
- package/lib/components/Loading.js +32 -1
- package/lib/components/MUITheme.js +2657 -1
- package/lib/components/Modal-e04532fa.js +127 -0
- package/lib/components/Modal.js +11 -1
- package/lib/components/MoreButton-19055e07.js +148 -0
- package/lib/components/MoreButton.js +8 -1
- package/lib/components/Pagination.js +3702 -0
- package/lib/components/Radio.js +83 -1
- package/lib/components/SNA.js +1755 -22
- package/lib/components/Select-cb3e1ba1.js +189 -0
- package/lib/components/Select.js +14 -1
- package/lib/components/Spin-8f87eadc.js +79 -0
- package/lib/components/Spin.js +7 -1
- package/lib/components/Table.js +51 -1
- package/lib/components/Tooltip-6ebfa9c1.js +70 -0
- package/lib/components/Tooltip.js +7 -1
- package/lib/components/_commonjsHelpers-70de2c37.js +28 -0
- package/lib/components/_rollupPluginBabelHelpers-a52356f6.js +142 -0
- package/lib/components/createSvgIcon-e3803ee1.js +576 -0
- package/lib/components/dataExport-a9e3fae1.js +91 -0
- package/lib/components/debounce-127da66c.js +355 -0
- package/lib/components/defaultTheme-ed7746fe.js +1661 -0
- package/lib/components/globalConfig.js +429 -0
- package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
- package/lib/components/index-b47819f3.js +481 -0
- package/lib/components/index-b76a85f4.js +61 -0
- package/lib/components/isObjectLike-e111475d.js +190 -0
- package/lib/components/style-inject.es-1f59c1d0.js +28 -1
- package/lib/components/toConsumableArray-dbe8af76.js +19 -0
- package/lib/components/transform-849a452c.js +5475 -0
- package/lib/components/useTheme-d16d02d9.js +11 -0
- package/lib/components/withTheme-2d778133.js +6 -0
- package/lib/configs/config.selector.js +151 -0
- package/lib/configs/index.d.ts +1 -0
- package/lib/configs/index.js +1 -0
- package/lib/index.d.ts +5 -1
- package/lib/index.js +5 -1
- package/lib/utils/_rollupPluginBabelHelpers-9802e640.js +121 -0
- package/lib/utils/arrayMerge.js +4953 -1
- package/lib/utils/chunkArray.js +15 -1
- package/lib/utils/convert2HtmlEntities.js +42 -1
- package/lib/utils/domToImage.js +802 -1
- package/lib/utils/downloadGephi.js +106 -1
- package/lib/utils/exportXlsx.js +221 -1
- package/lib/utils/historyAppendSearch.js +502 -1
- package/lib/utils/isDevelopMode.js +5 -1
- package/lib/utils/parseYMD.js +36 -1
- package/lib/utils/removeDuplicateItem.js +11 -1
- package/lib/utils/sendEmail.js +39 -1
- package/lib/utils/snaDefine-6a2bcd94.js +5 -0
- package/lib/utils/snaDefine.js +1 -1
- package/lib/utils/snaPreProcess.js +84 -1
- package/package.json +134 -128
- package/lib/components/Empty-54b79907.js +0 -1
- package/lib/components/KeywordSearch-5a393f12.js +0 -1
- package/lib/components/Select-f2441b83.js +0 -1
- package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
- package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
- package/lib/components/createSvgIcon-62b64929.js +0 -1
- package/lib/components/createSvgIcon-e24792d4.js +0 -1
- package/lib/components/createTheme-7fffa109.js +0 -1
- package/lib/components/dataExport-9fccd4f0.js +0 -1
- package/lib/components/debounce-c993109b.js +0 -1
- package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +0 -1
- package/lib/components/index-11391ca3.js +0 -7
- package/lib/components/index-b2745105.js +0 -7
- package/lib/components/isObjectLike-2f1983fe.js +0 -1
- package/lib/components/style-inject.es-c875d022.js +0 -1
- package/lib/components/transform-95ae0119.js +0 -1
- package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
- package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React__default, { useRef } from 'react';
|
|
2
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { Dialog, DialogTitle, IconButton, DialogContent, DialogActions, CircularProgress } from '@material-ui/core';
|
|
5
|
+
import { CloseSharp } from '@material-ui/icons';
|
|
6
|
+
import { B as Button } from './Button-7bd5aa09.js';
|
|
7
|
+
import { S as Spin } from './Spin-8f87eadc.js';
|
|
8
|
+
import { getIntl } from './globalConfig';
|
|
9
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
10
|
+
|
|
11
|
+
var css_248z = ".modal__title h2 {\n display: flex;\n align-items: center;\n}\n.modal__title__text {\n flex: 1;\n font-size: 1rem;\n padding: 8px 0;\n color: inherit;\n}\n.modal__title__close {\n cursor: pointer;\n color: inherit;\n}\n.modal--transparent .MuiPaper-root {\n background: transparent !important;\n box-shadow: none;\n}\n.modal--transparent .modal__title {\n background: transparent !important;\n}";
|
|
12
|
+
styleInject(css_248z);
|
|
13
|
+
|
|
14
|
+
/* 每個 Modal 實例需要唯一 id,才能把標題和 role="dialog" 綁起來 */
|
|
15
|
+
var modalSeq = 0;
|
|
16
|
+
var Modal = function Modal(props) {
|
|
17
|
+
var className = props.className,
|
|
18
|
+
title = props.title,
|
|
19
|
+
children = props.children,
|
|
20
|
+
footer = props.footer,
|
|
21
|
+
cancelText = props.cancelText,
|
|
22
|
+
okText = props.okText,
|
|
23
|
+
visible = props.visible,
|
|
24
|
+
onOk = props.onOk,
|
|
25
|
+
onCancel = props.onCancel;
|
|
26
|
+
var closable = props.closable,
|
|
27
|
+
loading = props.loading,
|
|
28
|
+
fullWidth = props.fullWidth,
|
|
29
|
+
transparent = props.transparent;
|
|
30
|
+
var endIcon = loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
31
|
+
size: 14
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/* WCAG 4.1.2 對話框需有可及名稱。MUI Dialog 只把 aria-labelledby 轉給
|
|
35
|
+
role="dialog" 的那層 Paper;aria-label 會被歸進 ...other 掛到外層 Modal
|
|
36
|
+
容器上,讀屏開啟時等於沒名字,故改用 aria-labelledby 指向標題文字。 */
|
|
37
|
+
var titleIdRef = useRef(null);
|
|
38
|
+
if (!titleIdRef.current) {
|
|
39
|
+
modalSeq += 1;
|
|
40
|
+
titleIdRef.current = "nmtl-modal-".concat(modalSeq, "-title");
|
|
41
|
+
}
|
|
42
|
+
var titleId = titleIdRef.current;
|
|
43
|
+
return /*#__PURE__*/React__default.createElement(Dialog, {
|
|
44
|
+
className: classNames('modal', {
|
|
45
|
+
'modal--transparent': transparent
|
|
46
|
+
}, className),
|
|
47
|
+
fullWidth: fullWidth,
|
|
48
|
+
open: visible || false,
|
|
49
|
+
onClose: function onClose() {
|
|
50
|
+
return closable && onCancel();
|
|
51
|
+
},
|
|
52
|
+
"aria-labelledby": title ? titleId : undefined
|
|
53
|
+
}, /*#__PURE__*/React__default.createElement(DialogTitle, {
|
|
54
|
+
className: "modal__title"
|
|
55
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
56
|
+
id: titleId,
|
|
57
|
+
className: "modal__title__text"
|
|
58
|
+
}, title), closable && /*#__PURE__*/React__default.createElement(IconButton, {
|
|
59
|
+
autoFocus: true,
|
|
60
|
+
"aria-label": getIntl().formatMessage({
|
|
61
|
+
id: 'aria.modal.close'
|
|
62
|
+
}),
|
|
63
|
+
onClick: onCancel
|
|
64
|
+
}, /*#__PURE__*/React__default.createElement(CloseSharp, {
|
|
65
|
+
className: "modal__title__close",
|
|
66
|
+
"aria-hidden": "true"
|
|
67
|
+
}))), /*#__PURE__*/React__default.createElement(DialogContent, null, /*#__PURE__*/React__default.createElement(Spin, {
|
|
68
|
+
spinning: loading
|
|
69
|
+
}, children)), footer !== null && /*#__PURE__*/React__default.createElement(DialogActions, null, footer === undefined && (cancelText || okText) ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, cancelText && /*#__PURE__*/React__default.createElement(Button, {
|
|
70
|
+
onClick: onCancel,
|
|
71
|
+
color: "default",
|
|
72
|
+
endIcon: endIcon,
|
|
73
|
+
disabled: loading
|
|
74
|
+
}, cancelText), okText && /*#__PURE__*/React__default.createElement(Button, {
|
|
75
|
+
onClick: onOk,
|
|
76
|
+
color: "primary",
|
|
77
|
+
endIcon: endIcon,
|
|
78
|
+
disabled: loading
|
|
79
|
+
}, okText)) : footer));
|
|
80
|
+
};
|
|
81
|
+
Modal.defaultProps = {
|
|
82
|
+
className: undefined,
|
|
83
|
+
loading: undefined,
|
|
84
|
+
transparent: undefined,
|
|
85
|
+
closable: true,
|
|
86
|
+
title: undefined,
|
|
87
|
+
children: undefined,
|
|
88
|
+
fullWidth: undefined,
|
|
89
|
+
footer: undefined,
|
|
90
|
+
cancelText: 'Cancel',
|
|
91
|
+
okText: 'Ok',
|
|
92
|
+
visible: undefined,
|
|
93
|
+
onOk: function onOk() {},
|
|
94
|
+
onCancel: function onCancel() {}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/* Write props detail information and 'npm run updateStory' will help you generate stories's argTypes */
|
|
98
|
+
Modal.propTypes = {
|
|
99
|
+
/** Css Name */
|
|
100
|
+
className: PropTypes.string,
|
|
101
|
+
/** 是否正在載入中 */
|
|
102
|
+
loading: PropTypes.bool,
|
|
103
|
+
/** 是否正透明模式 */
|
|
104
|
+
transparent: PropTypes.bool,
|
|
105
|
+
/** 是否可以取消關閉(含close icon) */
|
|
106
|
+
closable: PropTypes.bool,
|
|
107
|
+
/** Modal Title */
|
|
108
|
+
title: PropTypes.node,
|
|
109
|
+
/** Modal 內容 */
|
|
110
|
+
children: PropTypes.node,
|
|
111
|
+
/** 版面是否滿版 */
|
|
112
|
+
fullWidth: PropTypes.bool,
|
|
113
|
+
/** Footer */
|
|
114
|
+
footer: PropTypes.node,
|
|
115
|
+
/** 取消文字 */
|
|
116
|
+
cancelText: PropTypes.string,
|
|
117
|
+
/** 確認文字 */
|
|
118
|
+
okText: PropTypes.string,
|
|
119
|
+
/** 是否出現 */
|
|
120
|
+
visible: PropTypes.bool,
|
|
121
|
+
/** 完成的callback */
|
|
122
|
+
onOk: PropTypes.func,
|
|
123
|
+
/** 關閉Modal */
|
|
124
|
+
onCancel: PropTypes.func
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export { Modal as M };
|
package/lib/components/Modal.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
export { M as default } from './Modal-e04532fa.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import './index-b76a85f4.js';
|
|
4
|
+
import 'prop-types';
|
|
5
|
+
import '@material-ui/core';
|
|
6
|
+
import '@material-ui/icons';
|
|
7
|
+
import './Button-7bd5aa09.js';
|
|
8
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
9
|
+
import './style-inject.es-1f59c1d0.js';
|
|
10
|
+
import './Spin-8f87eadc.js';
|
|
11
|
+
import './globalConfig';
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
|
+
import React__default, { useState } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
5
|
+
import { ExpandLess, ExpandMore } from '@material-ui/icons';
|
|
6
|
+
import { getIntl } from './globalConfig';
|
|
7
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
8
|
+
|
|
9
|
+
var css_248z = ".moreButton {\n width: -moz-fit-content;\n width: fit-content;\n display: flex;\n align-items: center;\n position: relative;\n margin: 1rem 0rem;\n border-radius: 8px;\n padding: 1rem 2.5rem;\n -webkit-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n.moreButton__mask {\n transition: all 0.3s ease-in-out;\n position: absolute;\n left: 0;\n top: 0;\n border-radius: 8px;\n width: 100%;\n height: 100%;\n opacity: 0;\n}\n.moreButton:hover .moreButton__mask {\n opacity: 1;\n}\n.moreButton--shadow {\n transition: all 0.3s ease-in-out;\n border: 3px solid #ffffff;\n position: relative;\n left: 0px;\n top: 0px;\n}\n.moreButton--shadow:hover {\n box-shadow: initial !important;\n left: 3px;\n top: 3px;\n}\n.moreButton--small {\n border: 0;\n padding: 0;\n left: 0px !important;\n top: 0px !important;\n background: transparent !important;\n box-shadow: initial !important;\n}\n.moreButton--small .moreButton__mask {\n opacity: 0 !important;\n}\n.moreButton__icon {\n display: flex;\n z-index: 1;\n}\n.moreButton__icon--small {\n font-size: 1.5rem;\n border-radius: 45px;\n color: white !important;\n}\n.moreButton__text {\n z-index: 1;\n font-size: 1.5rem;\n line-height: 1.5rem;\n transition: color 0.3s ease-in-out;\n}\n.moreButton__text--small {\n margin-left: 0.75rem;\n font-size: 1.5rem;\n color: #0c2a4d;\n}\n.moreButton__text--small:hover {\n text-decoration: underline;\n}";
|
|
10
|
+
styleInject(css_248z);
|
|
11
|
+
|
|
12
|
+
var MoreButton = function MoreButton(props) {
|
|
13
|
+
var primaryColor = props.primaryColor,
|
|
14
|
+
secondaryColor = props.secondaryColor,
|
|
15
|
+
shadowColor = props.shadowColor;
|
|
16
|
+
var small = props.small,
|
|
17
|
+
enableShadow = props.enableShadow,
|
|
18
|
+
customExpandIcon = props.customExpandIcon;
|
|
19
|
+
var expand = props.expand,
|
|
20
|
+
setExpand = props.setExpand,
|
|
21
|
+
onClick = props.onClick,
|
|
22
|
+
formatMessage = props.formatMessage;
|
|
23
|
+
/* WCAG 4.1.3 點選後結果在原頁面更新,需播報(實測回饋 R9) */
|
|
24
|
+
var _useState = useState(''),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
liveMessage = _useState2[0],
|
|
27
|
+
setLiveMessage = _useState2[1];
|
|
28
|
+
var smallIcon = expand ? /*#__PURE__*/React__default.createElement(ExpandLess, {
|
|
29
|
+
className: "moreButton__icon--small",
|
|
30
|
+
style: {
|
|
31
|
+
background: shadowColor || primaryColor
|
|
32
|
+
}
|
|
33
|
+
}) : /*#__PURE__*/React__default.createElement(ExpandMore, {
|
|
34
|
+
className: "moreButton__icon--small",
|
|
35
|
+
style: {
|
|
36
|
+
background: shadowColor || primaryColor
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var smallMessage = expand ? 'common.show.less' : 'common.show.more';
|
|
40
|
+
var message = small ? smallMessage : 'common.watch.more';
|
|
41
|
+
var largeIcon = customExpandIcon && /*#__PURE__*/React__default.createElement("img", {
|
|
42
|
+
src: customExpandIcon,
|
|
43
|
+
alt: "",
|
|
44
|
+
"aria-hidden": "true"
|
|
45
|
+
});
|
|
46
|
+
var icon = small ? smallIcon : largeIcon;
|
|
47
|
+
var handleAction = function handleAction() {
|
|
48
|
+
setExpand(!expand);
|
|
49
|
+
onClick();
|
|
50
|
+
setLiveMessage(getIntl().formatMessage({
|
|
51
|
+
id: expand ? 'aria.moreButton.collapsed' : 'aria.moreButton.loaded'
|
|
52
|
+
}));
|
|
53
|
+
setTimeout(function () {
|
|
54
|
+
return setLiveMessage('');
|
|
55
|
+
}, 3000);
|
|
56
|
+
};
|
|
57
|
+
var messageText = formatMessage ? formatMessage({
|
|
58
|
+
id: message
|
|
59
|
+
}) : message;
|
|
60
|
+
return (
|
|
61
|
+
/*#__PURE__*/
|
|
62
|
+
/* WCAG 2.1.1/4.1.2 看更多為互動元件:role="button" + tabIndex + 鍵盤操作,
|
|
63
|
+
報讀補「點選後載入更多結果」預先提示、aria-expanded 表達展開狀態 */
|
|
64
|
+
React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
65
|
+
"aria-live": "polite",
|
|
66
|
+
"aria-atomic": "true",
|
|
67
|
+
role: "status",
|
|
68
|
+
className: "visually-hidden"
|
|
69
|
+
}, liveMessage), /*#__PURE__*/React__default.createElement("div", {
|
|
70
|
+
className: classNames('moreButton', {
|
|
71
|
+
'moreButton--shadow': enableShadow
|
|
72
|
+
}, {
|
|
73
|
+
'moreButton--small': small
|
|
74
|
+
}),
|
|
75
|
+
role: "button",
|
|
76
|
+
tabIndex: 0,
|
|
77
|
+
"aria-expanded": expand,
|
|
78
|
+
"aria-label": "".concat(messageText).concat(getIntl().formatMessage({
|
|
79
|
+
id: expand ? 'aria.moreButton.hintCollapse' : 'aria.moreButton.hint'
|
|
80
|
+
})),
|
|
81
|
+
style: {
|
|
82
|
+
color: shadowColor || 'white',
|
|
83
|
+
background: primaryColor,
|
|
84
|
+
boxShadow: enableShadow ? "3px 3px 0 0 ".concat(shadowColor) : undefined
|
|
85
|
+
},
|
|
86
|
+
onClick: handleAction,
|
|
87
|
+
onKeyDown: function onKeyDown(event) {
|
|
88
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
89
|
+
event.preventDefault();
|
|
90
|
+
handleAction();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}, !enableShadow && /*#__PURE__*/React__default.createElement("div", {
|
|
94
|
+
className: "moreButton__mask",
|
|
95
|
+
style: {
|
|
96
|
+
background: secondaryColor
|
|
97
|
+
}
|
|
98
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
99
|
+
className: "moreButton__icon"
|
|
100
|
+
}, icon), /*#__PURE__*/React__default.createElement("div", {
|
|
101
|
+
className: classNames('moreButton__text', {
|
|
102
|
+
'moreButton__text--small': small
|
|
103
|
+
}),
|
|
104
|
+
style: {
|
|
105
|
+
color: small ? shadowColor || primaryColor : undefined,
|
|
106
|
+
marginLeft: icon ? '0.5rem' : undefined
|
|
107
|
+
}
|
|
108
|
+
}, messageText)))
|
|
109
|
+
);
|
|
110
|
+
};
|
|
111
|
+
MoreButton.defaultProps = {
|
|
112
|
+
primaryColor: '#271702',
|
|
113
|
+
// default為文學網站的主色系
|
|
114
|
+
secondaryColor: '#aa8859',
|
|
115
|
+
// default為文學網站的次色系
|
|
116
|
+
shadowColor: undefined,
|
|
117
|
+
small: false,
|
|
118
|
+
enableShadow: false,
|
|
119
|
+
expand: false,
|
|
120
|
+
customExpandIcon: undefined,
|
|
121
|
+
formatMessage: undefined,
|
|
122
|
+
setExpand: function setExpand() {},
|
|
123
|
+
onClick: function onClick() {}
|
|
124
|
+
};
|
|
125
|
+
MoreButton.propTypes = {
|
|
126
|
+
/** 按鈕主色系顏色 */
|
|
127
|
+
primaryColor: PropTypes.string,
|
|
128
|
+
/** 按鈕次色系顏色 */
|
|
129
|
+
secondaryColor: PropTypes.string,
|
|
130
|
+
/** 按鈕影子顏色 */
|
|
131
|
+
shadowColor: PropTypes.string,
|
|
132
|
+
/** 展開是否為小圖示 */
|
|
133
|
+
small: PropTypes.bool,
|
|
134
|
+
/** 是否啟動陰影模式 */
|
|
135
|
+
enableShadow: PropTypes.bool,
|
|
136
|
+
/** 客製化自己的大圖標 */
|
|
137
|
+
customExpandIcon: PropTypes.node,
|
|
138
|
+
/** 是否展開(僅有在small=true作動) */
|
|
139
|
+
expand: PropTypes.bool,
|
|
140
|
+
/** 語系翻譯的formateMessag(useIntl) */
|
|
141
|
+
formatMessage: PropTypes.func,
|
|
142
|
+
/** 設定是否展開 */
|
|
143
|
+
setExpand: PropTypes.func,
|
|
144
|
+
/** 點擊的callback */
|
|
145
|
+
onClick: PropTypes.func
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export { MoreButton as M };
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export { M as default } from './MoreButton-19055e07.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'prop-types';
|
|
5
|
+
import './index-b76a85f4.js';
|
|
6
|
+
import '@material-ui/icons';
|
|
7
|
+
import './globalConfig';
|
|
8
|
+
import './style-inject.es-1f59c1d0.js';
|