@daoyi/nmtl-ui 2.0.1-beta.7 → 2.0.1-beta.71
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-e62927dc.js +334 -0
- package/lib/components/Autocomplete.js +13 -1
- package/lib/components/Avatar.js +53 -1
- package/lib/components/BackTop.js +109 -1
- package/lib/components/BarChart.js +762 -1
- package/lib/components/Breadcrumbs.js +122 -1
- package/lib/components/Button-4fddcd2f.js +92 -0
- package/lib/components/Button.js +6 -1
- package/lib/components/Carousel.js +4654 -1
- package/lib/components/Checkbox.js +37 -1
- package/lib/components/CollapseContent.js +179 -1
- package/lib/components/ContactModal-33f4e605.js +12020 -0
- package/lib/components/ContactModal.js +22 -3
- package/lib/components/Drawer-fb5bc1ec.js +157 -0
- package/lib/components/Drawer.js +11 -1
- package/lib/components/Dropdown.js +134 -1
- package/lib/components/Empty-e50b760e.js +45 -0
- package/lib/components/Empty.js +5 -1
- package/lib/components/ExportButton.js +112 -1
- package/lib/components/ExtraTools-a49a1d2f.js +3537 -0
- package/lib/components/ExtraTools.js +10 -22
- package/lib/components/Filter.js +782 -12
- package/lib/components/Footer.js +271 -1
- package/lib/components/ForwardLink-6a82c19d.js +106 -0
- package/lib/components/ForwardLink.js +8 -0
- package/lib/components/Header.js +187 -1
- package/lib/components/Image.js +61 -1
- package/lib/components/Input.js +82 -1
- package/lib/components/InputMethod.js +33949 -12
- package/lib/components/KeywordSearch-3af0c402.js +140 -0
- package/lib/components/KeywordSearch.js +15 -1
- package/lib/components/KeywordTicker.js +190 -1
- package/lib/components/Keywords.js +317 -1
- package/lib/components/Loading.js +28 -1
- package/lib/components/MUITheme.js +2624 -1
- package/lib/components/Modal-2c39d5b8.js +108 -0
- package/lib/components/Modal.js +9 -1
- package/lib/components/MoreButton-6b323fe4.js +110 -0
- package/lib/components/MoreButton.js +6 -1
- package/lib/components/Pagination.js +3706 -0
- package/lib/components/Radio.js +78 -1
- package/lib/components/SNA.js +1691 -22
- package/lib/components/Select-0f131640.js +115 -0
- package/lib/components/Select.js +8 -1
- package/lib/components/Spin-1741f625.js +75 -0
- package/lib/components/Spin.js +6 -1
- package/lib/components/Table.js +51 -1
- package/lib/components/Tooltip-65a21a86.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-d9801fb7.js +576 -0
- package/lib/components/dataExport-d55d6fa3.js +92 -0
- package/lib/components/debounce-127da66c.js +355 -0
- package/lib/components/defaultTheme-5839b9b3.js +1505 -0
- package/lib/components/globalConfig.js +175 -0
- package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
- package/lib/components/index-0be0afec.js +481 -0
- package/lib/components/index-ef96775f.js +61 -0
- package/lib/components/isObjectLike-e111475d.js +190 -0
- package/lib/components/style-inject.es-1f59c1d0.js +28 -1
- package/lib/components/transform-3a04288b.js +5475 -0
- package/lib/components/withTheme-4417822c.js +6 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/utils/_rollupPluginBabelHelpers-8dd26e1a.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 +219 -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 +17 -21
- 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-0eb2d36e.js +0 -1
- package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
- package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
|
@@ -1 +1,317 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
|
+
import React__default, { useState, useEffect } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { c as classNames } from './index-ef96775f.js';
|
|
5
|
+
import { M as Modal } from './Modal-2c39d5b8.js';
|
|
6
|
+
import { Typography } from '@material-ui/core';
|
|
7
|
+
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-d9801fb7.js';
|
|
8
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
9
|
+
import '@material-ui/icons';
|
|
10
|
+
import './Button-4fddcd2f.js';
|
|
11
|
+
import './Spin-1741f625.js';
|
|
12
|
+
import './_commonjsHelpers-70de2c37.js';
|
|
13
|
+
import './defaultTheme-5839b9b3.js';
|
|
14
|
+
import 'react-is';
|
|
15
|
+
import '@material-ui/styles';
|
|
16
|
+
import 'react-dom';
|
|
17
|
+
|
|
18
|
+
const useRWD = () => {
|
|
19
|
+
const [device, setDevice] = useState('PC');
|
|
20
|
+
const handleRWD = () => {
|
|
21
|
+
if (window.innerWidth > 768) setDevice('PC');else if (window.innerWidth > 576) setDevice('tablet');else setDevice('mobile');
|
|
22
|
+
};
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
handleRWD();
|
|
25
|
+
window.addEventListener('resize', handleRWD);
|
|
26
|
+
return () => {
|
|
27
|
+
window.removeEventListener('resize', handleRWD);
|
|
28
|
+
};
|
|
29
|
+
}, []);
|
|
30
|
+
return device;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var MoreHoriz = {};
|
|
34
|
+
|
|
35
|
+
var _interopRequireDefault = interopRequireDefault.exports;
|
|
36
|
+
|
|
37
|
+
var _interopRequireWildcard = interopRequireWildcard.exports;
|
|
38
|
+
|
|
39
|
+
Object.defineProperty(MoreHoriz, "__esModule", {
|
|
40
|
+
value: true
|
|
41
|
+
});
|
|
42
|
+
var default_1 = MoreHoriz.default = void 0;
|
|
43
|
+
|
|
44
|
+
var React = _interopRequireWildcard(React__default);
|
|
45
|
+
|
|
46
|
+
var _createSvgIcon = _interopRequireDefault(requireCreateSvgIcon());
|
|
47
|
+
|
|
48
|
+
var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
|
|
49
|
+
d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
|
|
50
|
+
}), 'MoreHoriz');
|
|
51
|
+
|
|
52
|
+
default_1 = MoreHoriz.default = _default;
|
|
53
|
+
|
|
54
|
+
var css_248z$2 = ".keywordList {\n display: flex;\n flex-wrap: wrap;\n margin-top: 0.8rem; }\n .keywordList__item {\n font-size: 1.125rem !important;\n border-radius: 5px;\n margin-right: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n cursor: pointer; }\n .keywordList__item__hover {\n border-radius: 5px;\n line-height: normal;\n padding: 0.125rem 0.625rem;\n background: transparent;\n transition: 0.3s background ease-in-out; }\n .keywordList__item__hover:hover {\n background: rgba(0, 0, 0, 0.1); }\n .keywordList__icon svg {\n font-size: 1rem;\n line-height: 1rem; }\n .keywordList__icon .keywordList__item__hover {\n display: flex;\n align-items: center;\n height: 100%;\n padding: 0.125rem 0.875rem; }\n\n@media screen and (max-width: 484px) {\n .keywordList__item {\n font-size: 0.75rem !important; } }\n";
|
|
55
|
+
styleInject(css_248z$2);
|
|
56
|
+
|
|
57
|
+
const KeywordList = _ref => {
|
|
58
|
+
let {
|
|
59
|
+
className,
|
|
60
|
+
keywords,
|
|
61
|
+
backgroundColor,
|
|
62
|
+
textColor,
|
|
63
|
+
limit,
|
|
64
|
+
onMoreClick,
|
|
65
|
+
onKeywordClick
|
|
66
|
+
} = _ref;
|
|
67
|
+
return Array.isArray(keywords) && /*#__PURE__*/React__default.createElement("div", {
|
|
68
|
+
className: classNames('keywordList', className)
|
|
69
|
+
}, (limit ? keywords.slice(0, limit) : keywords).map((keyword, i) => /*#__PURE__*/React__default.createElement(Typography, {
|
|
70
|
+
color: "textSecondary",
|
|
71
|
+
className: "keywordList__item",
|
|
72
|
+
key: i.toString(),
|
|
73
|
+
onClick: () => onKeywordClick(keyword)
|
|
74
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
75
|
+
style: {
|
|
76
|
+
color: textColor,
|
|
77
|
+
backgroundColor
|
|
78
|
+
},
|
|
79
|
+
className: "keywordList__item__hover"
|
|
80
|
+
}, keyword))), limit && keywords.length > limit && /*#__PURE__*/React__default.createElement("div", {
|
|
81
|
+
className: classNames('keywordList__item', 'keywordList__icon'),
|
|
82
|
+
style: {
|
|
83
|
+
backgroundColor
|
|
84
|
+
},
|
|
85
|
+
onClick: onMoreClick
|
|
86
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
87
|
+
className: "keywordList__item__hover",
|
|
88
|
+
style: {
|
|
89
|
+
color: textColor
|
|
90
|
+
}
|
|
91
|
+
}, /*#__PURE__*/React__default.createElement(default_1, null))));
|
|
92
|
+
};
|
|
93
|
+
KeywordList.defaultProps = {
|
|
94
|
+
className: undefined,
|
|
95
|
+
keywords: undefined,
|
|
96
|
+
backgroundColor: undefined,
|
|
97
|
+
textColor: undefined,
|
|
98
|
+
limit: undefined,
|
|
99
|
+
onMoreClick: () => {},
|
|
100
|
+
onKeywordClick: () => {}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/* Write props detail information and 'npm run updateStory' will help you generate stories's argTypes */
|
|
104
|
+
KeywordList.propTypes = {
|
|
105
|
+
/** Css Name */
|
|
106
|
+
className: PropTypes.string,
|
|
107
|
+
/** 背景顏色 */
|
|
108
|
+
backgroundColor: PropTypes.string,
|
|
109
|
+
/** 文字顏色 */
|
|
110
|
+
textColor: PropTypes.string,
|
|
111
|
+
/** 關鍵字 */
|
|
112
|
+
keywords: PropTypes.arrayOf(PropTypes.any),
|
|
113
|
+
/** 關鍵字限制(用來評估是否要啟用顯示更多) */
|
|
114
|
+
limit: PropTypes.number,
|
|
115
|
+
/** 顯示更多被按時 */
|
|
116
|
+
onMoreClick: PropTypes.func,
|
|
117
|
+
/** 關鍵字被按時 */
|
|
118
|
+
onKeywordClick: PropTypes.func
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
var css_248z$1 = ".keywordModal__content {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n border-radius: 5px; }\n .keywordModal__content__image {\n display: flex;\n justify-content: center;\n width: 100%; }\n .keywordModal__content__image__img {\n height: 7.75rem;\n object-fit: scale-down; }\n .keywordModal__content__detail {\n width: 100%;\n padding: 1rem 1.25rem;\n border-radius: 5px; }\n .keywordModal__content__detail__title {\n font-weight: bold;\n font-size: 1.5rem;\n text-decoration: underline;\n cursor: pointer; }\n .keywordModal__content__detail__desc {\n margin-top: 0.8rem;\n font-size: 1rem;\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical; }\n .keywordModal__content__detail__author {\n margin-top: 0.8rem;\n font-size: 1.25rem;\n cursor: pointer; }\n .keywordModal__content__detail__author:hover {\n text-decoration: underline; }\n\n.keywordModal p {\n font-family: 'Noto Sans TC', 'Arial', sans-serif !important; }\n\n.keywordModal .MuiPaper-root {\n min-width: initial !important; }\n";
|
|
122
|
+
styleInject(css_248z$1);
|
|
123
|
+
|
|
124
|
+
const KeywordModal = props => {
|
|
125
|
+
const {
|
|
126
|
+
visible,
|
|
127
|
+
setVisible,
|
|
128
|
+
cardData
|
|
129
|
+
} = props;
|
|
130
|
+
const {
|
|
131
|
+
modalTextColor,
|
|
132
|
+
modalImageColor,
|
|
133
|
+
backgroundColor,
|
|
134
|
+
modalBackgroundColor,
|
|
135
|
+
textColor
|
|
136
|
+
} = props;
|
|
137
|
+
const {
|
|
138
|
+
onKeywordClick,
|
|
139
|
+
onTitleClick,
|
|
140
|
+
onAuthorClick
|
|
141
|
+
} = props;
|
|
142
|
+
const {
|
|
143
|
+
author,
|
|
144
|
+
imgUrl,
|
|
145
|
+
title
|
|
146
|
+
} = cardData || {};
|
|
147
|
+
const keywords = cardData && cardData.keywords && cardData.keywords.split('\n') || [];
|
|
148
|
+
const contentColor = modalTextColor || textColor;
|
|
149
|
+
// const desc = introduction || description;
|
|
150
|
+
|
|
151
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
152
|
+
transparent: true,
|
|
153
|
+
size: "small",
|
|
154
|
+
className: "keywordModal",
|
|
155
|
+
visible: visible,
|
|
156
|
+
footer: null,
|
|
157
|
+
onCancel: () => setVisible(false)
|
|
158
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
159
|
+
className: "keywordModal__content",
|
|
160
|
+
style: {
|
|
161
|
+
backgroundColor: modalBackgroundColor
|
|
162
|
+
}
|
|
163
|
+
}, imgUrl && /*#__PURE__*/React__default.createElement("div", {
|
|
164
|
+
className: "keywordModal__content__image",
|
|
165
|
+
style: {
|
|
166
|
+
backgroundColor: modalImageColor
|
|
167
|
+
}
|
|
168
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
169
|
+
className: "keywordModal__content__image__img",
|
|
170
|
+
src: imgUrl,
|
|
171
|
+
alt: ""
|
|
172
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
173
|
+
className: "keywordModal__content__detail"
|
|
174
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
175
|
+
title: title,
|
|
176
|
+
className: "keywordModal__content__detail__title",
|
|
177
|
+
style: {
|
|
178
|
+
color: contentColor
|
|
179
|
+
},
|
|
180
|
+
onClick: onTitleClick
|
|
181
|
+
}, title), author && /*#__PURE__*/React__default.createElement("div", {
|
|
182
|
+
className: "keywordModal__content__detail__author",
|
|
183
|
+
title: author,
|
|
184
|
+
onClick: onAuthorClick,
|
|
185
|
+
style: {
|
|
186
|
+
color: contentColor
|
|
187
|
+
}
|
|
188
|
+
}, author), /*#__PURE__*/React__default.createElement(KeywordList, {
|
|
189
|
+
keywords,
|
|
190
|
+
textColor,
|
|
191
|
+
backgroundColor,
|
|
192
|
+
onKeywordClick
|
|
193
|
+
}))));
|
|
194
|
+
};
|
|
195
|
+
KeywordModal.defaultProps = {
|
|
196
|
+
visible: undefined,
|
|
197
|
+
setVisible: () => {},
|
|
198
|
+
modalTextColor: undefined,
|
|
199
|
+
modalImageColor: undefined,
|
|
200
|
+
modalBackgroundColor: undefined,
|
|
201
|
+
backgroundColor: undefined,
|
|
202
|
+
textColor: undefined,
|
|
203
|
+
cardData: undefined,
|
|
204
|
+
onKeywordClick: () => {},
|
|
205
|
+
onTitleClick: () => {},
|
|
206
|
+
onAuthorClick: () => {}
|
|
207
|
+
};
|
|
208
|
+
KeywordModal.propTypes = {
|
|
209
|
+
visible: PropTypes.bool,
|
|
210
|
+
setVisible: PropTypes.func,
|
|
211
|
+
cardData: PropTypes.objectOf(PropTypes.any),
|
|
212
|
+
modalTextColor: PropTypes.string,
|
|
213
|
+
modalImageColor: PropTypes.string,
|
|
214
|
+
modalBackgroundColor: PropTypes.string,
|
|
215
|
+
backgroundColor: PropTypes.string,
|
|
216
|
+
textColor: PropTypes.string,
|
|
217
|
+
onKeywordClick: PropTypes.func,
|
|
218
|
+
onTitleClick: PropTypes.func,
|
|
219
|
+
onAuthorClick: PropTypes.func
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
var css_248z = ".keywords p {\n font-family: 'Noto Sans TC', 'Arial', sans-serif !important; }\n";
|
|
223
|
+
styleInject(css_248z);
|
|
224
|
+
|
|
225
|
+
var Keywords = function Keywords(props) {
|
|
226
|
+
var className = props.className,
|
|
227
|
+
keywords = props.keywords,
|
|
228
|
+
cardData = props.cardData,
|
|
229
|
+
limit = props.limit,
|
|
230
|
+
theme = props.theme;
|
|
231
|
+
var _ref = theme || {},
|
|
232
|
+
backgroundColor = _ref.backgroundColor,
|
|
233
|
+
textColor = _ref.textColor,
|
|
234
|
+
modalTextColor = _ref.modalTextColor,
|
|
235
|
+
modalImageColor = _ref.modalImageColor,
|
|
236
|
+
modalBackgroundColor = _ref.modalBackgroundColor;
|
|
237
|
+
var onKeywordClick = props.onKeywordClick,
|
|
238
|
+
_onMoreClick = props.onMoreClick,
|
|
239
|
+
onTitleClick = props.onTitleClick,
|
|
240
|
+
onAuthorClick = props.onAuthorClick;
|
|
241
|
+
var currentKeywords = cardData && cardData.keywords && cardData.keywords.split('\n') || keywords || [];
|
|
242
|
+
if (currentKeywords.filter(function (keyword) {
|
|
243
|
+
return keyword && keyword.length > 0;
|
|
244
|
+
}).length === 0) return null;
|
|
245
|
+
var _useState = useState(),
|
|
246
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
247
|
+
modalVisible = _useState2[0],
|
|
248
|
+
setModalVisible = _useState2[1];
|
|
249
|
+
var device = useRWD();
|
|
250
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
251
|
+
className: classNames('keywords', className)
|
|
252
|
+
}, /*#__PURE__*/React__default.createElement(KeywordList, {
|
|
253
|
+
limit: limit || (device === 'mobile' ? 1 : undefined),
|
|
254
|
+
keywords: currentKeywords,
|
|
255
|
+
backgroundColor: backgroundColor,
|
|
256
|
+
textColor: textColor,
|
|
257
|
+
onMoreClick: function onMoreClick() {
|
|
258
|
+
return cardData ? setModalVisible(true) : _onMoreClick();
|
|
259
|
+
},
|
|
260
|
+
onKeywordClick: onKeywordClick
|
|
261
|
+
}), /*#__PURE__*/React__default.createElement(KeywordModal, {
|
|
262
|
+
visible: modalVisible,
|
|
263
|
+
setVisible: setModalVisible,
|
|
264
|
+
modalTextColor: modalTextColor,
|
|
265
|
+
modalImageColor: modalImageColor,
|
|
266
|
+
modalBackgroundColor: modalBackgroundColor,
|
|
267
|
+
cardData: cardData,
|
|
268
|
+
backgroundColor: backgroundColor,
|
|
269
|
+
textColor: textColor,
|
|
270
|
+
onKeywordClick: onKeywordClick,
|
|
271
|
+
onTitleClick: onTitleClick,
|
|
272
|
+
onAuthorClick: onAuthorClick
|
|
273
|
+
}));
|
|
274
|
+
};
|
|
275
|
+
Keywords.defaultProps = {
|
|
276
|
+
className: undefined,
|
|
277
|
+
keywords: undefined,
|
|
278
|
+
cardData: undefined,
|
|
279
|
+
limit: undefined,
|
|
280
|
+
theme: undefined,
|
|
281
|
+
onKeywordClick: function onKeywordClick() {},
|
|
282
|
+
onMoreClick: function onMoreClick() {},
|
|
283
|
+
onTitleClick: function onTitleClick() {},
|
|
284
|
+
onAuthorClick: function onAuthorClick() {}
|
|
285
|
+
};
|
|
286
|
+
Keywords.propTypes = {
|
|
287
|
+
/** Css Name */
|
|
288
|
+
className: PropTypes.string,
|
|
289
|
+
/** 關鍵字 */
|
|
290
|
+
keywords: PropTypes.arrayOf(PropTypes.any),
|
|
291
|
+
/** 卡片資訊 */
|
|
292
|
+
cardData: PropTypes.objectOf(PropTypes.any),
|
|
293
|
+
/** 關鍵字限制(用來評估是否要啟用顯示更多) */
|
|
294
|
+
limit: PropTypes.number,
|
|
295
|
+
theme: PropTypes.shape({
|
|
296
|
+
/** 背景顏色 */
|
|
297
|
+
backgroundColor: PropTypes.string,
|
|
298
|
+
/** 文字顏色 */
|
|
299
|
+
textColor: PropTypes.string,
|
|
300
|
+
/** Modal標題顏色 */
|
|
301
|
+
modalTextColor: PropTypes.string,
|
|
302
|
+
/** Modal圖片背景顏色 */
|
|
303
|
+
modalImageColor: PropTypes.string,
|
|
304
|
+
/** Modal背景顏色 */
|
|
305
|
+
modalBackgroundColor: PropTypes.string
|
|
306
|
+
}),
|
|
307
|
+
/** 當關鍵字被點擊時 */
|
|
308
|
+
onKeywordClick: PropTypes.func,
|
|
309
|
+
/** 顯示更多被按時 */
|
|
310
|
+
onMoreClick: PropTypes.func,
|
|
311
|
+
/** 標題被按時 */
|
|
312
|
+
onTitleClick: PropTypes.func,
|
|
313
|
+
/** 作者被按時 */
|
|
314
|
+
onAuthorClick: PropTypes.func
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
export { Keywords as default };
|
|
@@ -1 +1,28 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { c as classNames } from './index-ef96775f.js';
|
|
3
|
+
import { CircularProgress } from '@material-ui/core';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
|
+
|
|
7
|
+
var css_248z = ".loadingPage {\n padding: 4rem 0;\n color: #0087dc;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center; }\n";
|
|
8
|
+
styleInject(css_248z);
|
|
9
|
+
|
|
10
|
+
var Loading = function Loading(_ref) {
|
|
11
|
+
var className = _ref.className;
|
|
12
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13
|
+
className: classNames('loadingPage', className)
|
|
14
|
+
}, /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
15
|
+
size: 80
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
Loading.defaultProps = {
|
|
19
|
+
className: undefined
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/* Write props detail information and 'npm run updateStory' will help you generate stories's argTypes */
|
|
23
|
+
Loading.propTypes = {
|
|
24
|
+
/** Css Name */
|
|
25
|
+
className: PropTypes.string
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { Loading as default };
|