@daoyi/nmtl-ui 2.0.1-beta.14 → 2.0.1-beta.140

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 (112) hide show
  1. package/README.md +45 -45
  2. package/lib/components/Autocomplete-e40d7145.js +494 -0
  3. package/lib/components/Autocomplete.js +20 -1
  4. package/lib/components/Avatar.js +59 -1
  5. package/lib/components/BackTop.js +124 -1
  6. package/lib/components/BarChart.js +764 -1
  7. package/lib/components/Breadcrumbs.js +146 -1
  8. package/lib/components/Button-8cf35bc0.js +114 -0
  9. package/lib/components/Button.js +7 -1
  10. package/lib/components/Carousel.js +4654 -1
  11. package/lib/components/Checkbox.js +37 -1
  12. package/lib/components/CollapseContent.js +235 -1
  13. package/lib/components/ContactModal-af7fa280.js +12295 -0
  14. package/lib/components/ContactModal.js +24 -3
  15. package/lib/components/Drawer-b770014f.js +247 -0
  16. package/lib/components/Drawer.js +18 -1
  17. package/lib/components/Dropdown.js +134 -1
  18. package/lib/components/Empty-48685dd0.js +46 -0
  19. package/lib/components/Empty.js +5 -1
  20. package/lib/components/ExportButton.js +128 -1
  21. package/lib/components/ExtraTools-c46c1965.js +3676 -0
  22. package/lib/components/ExtraTools.js +11 -22
  23. package/lib/components/Filter.js +821 -12
  24. package/lib/components/Footer.js +317 -1
  25. package/lib/components/ForwardLink-2905563c.js +184 -0
  26. package/lib/components/ForwardLink.js +10 -0
  27. package/lib/components/Header.js +267 -1
  28. package/lib/components/Image.js +61 -1
  29. package/lib/components/Input.js +89 -1
  30. package/lib/components/InputMethod.js +33937 -10
  31. package/lib/components/KeywordSearch-4e621ded.js +156 -0
  32. package/lib/components/KeywordSearch.js +22 -1
  33. package/lib/components/KeywordTicker.js +224 -1
  34. package/lib/components/Keywords.js +383 -1
  35. package/lib/components/Loading.js +32 -1
  36. package/lib/components/MUITheme.js +2657 -1
  37. package/lib/components/Modal-aa77d4d8.js +171 -0
  38. package/lib/components/Modal.js +11 -1
  39. package/lib/components/MoreButton-0b5aaef3.js +148 -0
  40. package/lib/components/MoreButton.js +8 -1
  41. package/lib/components/Pagination.js +3702 -0
  42. package/lib/components/Radio.js +83 -1
  43. package/lib/components/SNA.js +1755 -22
  44. package/lib/components/SegmentedControl-804da0a6.js +113 -0
  45. package/lib/components/SegmentedControl.js +11 -0
  46. package/lib/components/Select-979f7e73.js +189 -0
  47. package/lib/components/Select.js +14 -1
  48. package/lib/components/Spin-07679812.js +79 -0
  49. package/lib/components/Spin.js +7 -1
  50. package/lib/components/Table.js +51 -1
  51. package/lib/components/Tooltip-bbbaa9c7.js +70 -0
  52. package/lib/components/Tooltip.js +7 -1
  53. package/lib/components/_commonjsHelpers-70de2c37.js +28 -0
  54. package/lib/components/_rollupPluginBabelHelpers-a52356f6.js +142 -0
  55. package/lib/components/createSvgIcon-370e163a.js +576 -0
  56. package/lib/components/dataExport-a9e3fae1.js +91 -0
  57. package/lib/components/debounce-127da66c.js +355 -0
  58. package/lib/components/defaultTheme-c5dd0f64.js +1661 -0
  59. package/lib/components/globalConfig.js +471 -0
  60. package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
  61. package/lib/components/index-c33afcb5.js +61 -0
  62. package/lib/components/index-ff95f719.js +481 -0
  63. package/lib/components/isObjectLike-e111475d.js +190 -0
  64. package/lib/components/style-inject.es-1f59c1d0.js +28 -1
  65. package/lib/components/toConsumableArray-c268c112.js +19 -0
  66. package/lib/components/transform-849a452c.js +5475 -0
  67. package/lib/components/useTheme-98b6cf17.js +11 -0
  68. package/lib/components/withTheme-3486f38b.js +6 -0
  69. package/lib/configs/config.selector.js +151 -0
  70. package/lib/configs/index.d.ts +1 -0
  71. package/lib/configs/index.js +1 -0
  72. package/lib/index.d.ts +6 -1
  73. package/lib/index.js +6 -1
  74. package/lib/utils/_rollupPluginBabelHelpers-9802e640.js +121 -0
  75. package/lib/utils/arrayMerge.js +4953 -1
  76. package/lib/utils/chunkArray.js +15 -1
  77. package/lib/utils/convert2HtmlEntities.js +57 -1
  78. package/lib/utils/domToImage.js +802 -1
  79. package/lib/utils/downloadGephi.js +106 -1
  80. package/lib/utils/exportXlsx.js +221 -1
  81. package/lib/utils/historyAppendSearch.js +502 -1
  82. package/lib/utils/index.d.ts +2 -0
  83. package/lib/utils/index.js +2 -0
  84. package/lib/utils/isDevelopMode.js +5 -1
  85. package/lib/utils/newWindowHint-72ebfe3b.js +53 -0
  86. package/lib/utils/parseYMD.js +36 -1
  87. package/lib/utils/prepareTimelineData.js +70 -0
  88. package/lib/utils/removeDuplicateItem.js +11 -1
  89. package/lib/utils/sendEmail.js +39 -1
  90. package/lib/utils/snaDefine-6a2bcd94.js +5 -0
  91. package/lib/utils/snaDefine.js +1 -1
  92. package/lib/utils/snaPreProcess.js +84 -1
  93. package/lib/utils/syncTimelineA11y.js +293 -0
  94. package/package.json +141 -128
  95. package/lib/components/Empty-54b79907.js +0 -1
  96. package/lib/components/KeywordSearch-5a393f12.js +0 -1
  97. package/lib/components/Select-f2441b83.js +0 -1
  98. package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
  99. package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
  100. package/lib/components/createSvgIcon-62b64929.js +0 -1
  101. package/lib/components/createSvgIcon-e24792d4.js +0 -1
  102. package/lib/components/createTheme-7fffa109.js +0 -1
  103. package/lib/components/dataExport-9fccd4f0.js +0 -1
  104. package/lib/components/debounce-c993109b.js +0 -1
  105. package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +0 -1
  106. package/lib/components/index-11391ca3.js +0 -7
  107. package/lib/components/index-b2745105.js +0 -7
  108. package/lib/components/isObjectLike-2f1983fe.js +0 -1
  109. package/lib/components/style-inject.es-c875d022.js +0 -1
  110. package/lib/components/transform-95ae0119.js +0 -1
  111. package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
  112. package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
@@ -1 +1,37 @@
1
- import{c as e,_ as o}from"./_rollupPluginBabelHelpers-ec4e2a53.js";import r from"react";import a from"prop-types";import{FormControlLabel as t,Checkbox as n}from"@material-ui/core";var l=["onCheck","disabled","children"],c=function(a){var c=a.onCheck,i=a.disabled,d=a.children,p=e(a,l);return r.createElement(t,{control:r.createElement(n,o({},p,{disabled:i,onChange:function(e){c(e&&e.target&&e.target.checked),e.stopPropagation()}})),label:d})};c.defaultProps={disabled:void 0,children:void 0,onCheck:function(){}},c.propTypes={disabled:a.bool,children:a.node,onCheck:a.func};export{c as default};
1
+ import { c as _objectWithoutProperties, _ as _extends } from './_rollupPluginBabelHelpers-a52356f6.js';
2
+ import React__default from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { FormControlLabel, Checkbox as Checkbox$1 } from '@material-ui/core';
5
+
6
+ var _excluded = ["onCheck", "disabled", "children"];
7
+ var Checkbox = function Checkbox(_ref) {
8
+ var onCheck = _ref.onCheck,
9
+ disabled = _ref.disabled,
10
+ children = _ref.children,
11
+ prop = _objectWithoutProperties(_ref, _excluded);
12
+ return /*#__PURE__*/React__default.createElement(FormControlLabel, {
13
+ control: /*#__PURE__*/React__default.createElement(Checkbox$1, _extends({}, prop, {
14
+ disabled: disabled,
15
+ onChange: function onChange(event) {
16
+ onCheck(event && event.target && event.target.checked);
17
+ event.stopPropagation();
18
+ }
19
+ })),
20
+ label: children
21
+ });
22
+ };
23
+ Checkbox.defaultProps = {
24
+ disabled: undefined,
25
+ children: undefined,
26
+ onCheck: function onCheck() {}
27
+ };
28
+ Checkbox.propTypes = {
29
+ /** 是否禁止使用 */
30
+ disabled: PropTypes.bool,
31
+ /** 顯示的內容值 */
32
+ children: PropTypes.node,
33
+ /** 勾選時的callback */
34
+ onCheck: PropTypes.func
35
+ };
36
+
37
+ export { Checkbox as default };
@@ -1 +1,235 @@
1
- import e,{useState as n,useRef as t,useEffect as o}from"react";import{c as l}from"./index-11391ca3.js";import a from"prop-types";import{Typography as r}from"@material-ui/core";import s from"./MoreButton.js";import{s as i}from"./style-inject.es-c875d022.js";import"@material-ui/icons";i(".collapseContent__desc {\n font-size: 1.5rem !important;\n text-indent: 3rem;\n font-family: 'Noto Sans TC', 'Arial', sans-serif !important;\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-break: break-all; }\n .collapseContent__desc p,\n .collapseContent__desc pre {\n margin: 0; }\n .collapseContent__desc--1 {\n -webkit-line-clamp: 1; }\n .collapseContent__desc--2 {\n -webkit-line-clamp: 2; }\n .collapseContent__desc--3 {\n -webkit-line-clamp: 3; }\n .collapseContent__desc--4 {\n -webkit-line-clamp: 4; }\n .collapseContent__desc--5 {\n -webkit-line-clamp: 5; }\n .collapseContent__desc--10 {\n -webkit-line-clamp: 10; }\n .collapseContent__desc--lightHeight {\n line-height: 2.25; }\n .collapseContent__desc--expand {\n -webkit-line-clamp: initial; }\n .collapseContent__desc--indent {\n text-indent: 3rem; }\n");const c=a=>{const{className:i,content:c,textColor:p,lineClamp:d,useLightHeight:m,useTextIndent:C}=a,{formatMessage:_,primaryColor:g,secondaryColor:h,shadowColor:f}=a;if(!c)return e.createElement(e.Fragment,null);const[u,b]=n(),[w,x]=n(),v=t();return o((()=>{if(c&&v&&v.current){const e=v.current,{clientHeight:n,scrollHeight:t}=e||{};x(t>n)}}),[v,c]),e.createElement("div",{className:l("collapseContent",i)},e.createElement(r,{ref:v,variant:"inherit",className:l("collapseContent__desc",`collapseContent__desc--${d<=5?d:10}`,{"collapseContent__desc--indent":C},{"collapseContent__desc--expand":u},{"collapseContent__desc--lightHeight":m}),color:"textSecondary",style:{color:p}},(y=c)&&0!==y.length?e.createElement("div",{dangerouslySetInnerHTML:{__html:`<div>${y.replaceAll("\n\n","\n").split("\n").join("<div/><br/><div>")}</div>`}}):y),w&&e.createElement(s,{small:!0,primaryColor:g,secondaryColor:h,shadowColor:f,formatMessage:_,expand:u,setExpand:b}));var y};c.defaultProps={className:void 0,content:void 0,textColor:void 0,lineClamp:2,useLightHeight:void 0,useTextIndent:!0,formatMessage:void 0,primaryColor:"#271702",secondaryColor:"#aa8859",shadowColor:void 0},c.propTypes={className:a.string,content:a.string,textColor:a.string,lineClamp:a.number,useLightHeight:a.bool,useTextIndent:a.bool,formatMessage:a.func,primaryColor:a.string,secondaryColor:a.string,shadowColor:a.string};export{c as default};
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
2
+ import React__default, { useState, useRef, useEffect } from 'react';
3
+ import { c as classNames } from './index-c33afcb5.js';
4
+ import PropTypes from 'prop-types';
5
+ import { Typography } from '@material-ui/core';
6
+ import { M as MoreButton } from './MoreButton-0b5aaef3.js';
7
+ import { getIntl } from './globalConfig';
8
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
9
+ import '@material-ui/icons';
10
+
11
+ /*
12
+ * 在 HTML 字串裡另開新視窗的連結文字後面補「(另開新視窗)」
13
+ * (數位部人工檢測 HM1240404E,2026-10-07:要直接寫在連結文字上,不能只放 title)。
14
+ * convert2HtmlEntities 與時間軸資料處理共用;不對外匯出。
15
+ */
16
+ const HINT_CLASS = 'newwindow-hint';
17
+ const hasHint = text => /另開新視窗|另开新窗口|new window/i.test(text);
18
+ const newWindowHintText = () => getIntl().formatMessage({
19
+ id: 'aria.newWindow'
20
+ });
21
+
22
+ /**
23
+ * @param {string} html
24
+ * @param {object} [options]
25
+ * @param {boolean} [options.treatMissingTargetAsBlank] 沒寫 target 的連結也當成另開新視窗
26
+ * (@daoyi/timeline 的 DOMPurify 會把它們強制改成 _blank)
27
+ * @param {string} [options.className] 提示 span 的 class
28
+ */
29
+ const addNewWindowHint = function (html) {
30
+ let {
31
+ treatMissingTargetAsBlank = false,
32
+ className = HINT_CLASS
33
+ } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
34
+ const hasLinks = typeof html === 'string' && (html.indexOf('<a') !== -1 || html.indexOf('data-goto') !== -1);
35
+ if (!hasLinks || typeof DOMParser === 'undefined') return html;
36
+ const doc = new DOMParser().parseFromString(`<body>${html}</body>`, 'text/html');
37
+ const hint = newWindowHintText();
38
+ let changed = false;
39
+ /* 時間軸的站內明細連結是不輸出 href 的 span role="link" data-goto(各站 Chronology 以 window.open 另開分頁),
40
+ 同樣要提示(2026-10-08 人工測試回饋) */
41
+ const selector = treatMissingTargetAsBlank ? 'a[href], [data-goto]' : 'a[href]';
42
+ doc.body.querySelectorAll(selector).forEach(a => {
43
+ const target = a.hasAttribute('data-goto') ? '_blank' : (a.getAttribute('target') || (treatMissingTargetAsBlank ? '_blank' : '')).toLowerCase();
44
+ if (target !== '_blank') return;
45
+ if (a.tagName === 'A' && !a.getAttribute('rel')) a.setAttribute('rel', 'noopener noreferrer');
46
+ if (hasHint(a.textContent)) return;
47
+ const span = doc.createElement('span');
48
+ span.className = className;
49
+ span.textContent = hint;
50
+ a.appendChild(span);
51
+ changed = true;
52
+ });
53
+ return changed ? doc.body.innerHTML : html;
54
+ };
55
+
56
+ const HtmlToReactParser = require('html-to-react').Parser;
57
+ const DOMPurify = require('dompurify');
58
+ const htmlToReactParser = new HtmlToReactParser();
59
+
60
+ /* 後台文稿以 markdown-it(html: true)轉換,原始 HTML 會直接放行;轉成 React 之前必須先消毒,
61
+ 擋掉 <script>、onerror、javascript: 等 XSS 向量(內容雖來自後台,仍做縱深防禦;比照主站 nmtl-web htmlEntities.js)。
62
+ 用獨立實例:@daoyi/timeline 在全域 DOMPurify 掛了 hook,會把所有沒寫 target 的連結強制改成另開新視窗 */
63
+ const purify = DOMPurify(typeof window !== 'undefined' ? window : undefined);
64
+ const sanitize = html => purify.isSupported ? purify.sanitize(html, {
65
+ ADD_ATTR: ['target']
66
+ }) : html;
67
+
68
+ // full options list (defaults)
69
+ const md = require('markdown-it')({
70
+ html: true,
71
+ // Enable HTML tags in source
72
+ xhtmlOut: true,
73
+ // Use '/' to close single tags (<br />).
74
+ // This is only for full CommonMark compatibility.
75
+ breaks: true,
76
+ // Convert '\n' in paragraphs into <br>
77
+ langPrefix: 'language-',
78
+ // CSS language prefix for fenced blocks. Can be
79
+ // useful for external highlighters.
80
+ linkify: false,
81
+ // Autoconvert URL-like text to links
82
+
83
+ // Enable some language-neutral replacement + quotes beautification
84
+ // For the full list of replacements, see https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.js
85
+ typographer: false,
86
+ // Double + single quotes replacement pairs, when typographer enabled,
87
+ // and smartquotes on. Could be either a String or an Array.
88
+ //
89
+ // For example, you can use '«»„“' for Russian, '„“‚‘' for German,
90
+ // and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
91
+ quotes: '“”‘’',
92
+ // Highlighter function. Should return escaped HTML,
93
+ // or '' if the source string is not changed and should be escaped externally.
94
+ // If result starts with <pre... internal wrapper is skipped.
95
+ highlight( /* str, lang */
96
+ ) {
97
+ return '';
98
+ }
99
+ });
100
+
101
+ // eslint-disable-next-line import/prefer-default-export
102
+ const convert2HtmlEntities = text => {
103
+ if (text === undefined) return '';
104
+ /* 先消毒,再替 target="_blank" 的連結文字補「(另開新視窗)」(HM1240404E,2026-10-07) */
105
+ return htmlToReactParser.parse(addNewWindowHint(sanitize(md.render(text))));
106
+ };
107
+
108
+ /* eslint-disable react/no-danger */
109
+ var textDivider = (text => {
110
+ if (!text || text.length === 0) return text;
111
+ return (
112
+ /*#__PURE__*/
113
+ // <div
114
+ // dangerouslySetInnerHTML={{
115
+ // __html: `<div>${convert2HtmlEntities(text.replaceAll('\n\n', '\n').split('\n').join('<div/><br/><div>'))}</div>`,
116
+ // }}
117
+ // />
118
+ React__default.createElement("div", null, convert2HtmlEntities(text.replaceAll('\n\n', '\n').split('\n').join('<div/><br/><div>')))
119
+ );
120
+ });
121
+
122
+ var css_248z = ".collapseContent__desc {\n font-size: 1.5rem !important;\n text-indent: 3rem;\n font-family: \"Noto Sans TC\", \"Arial\", sans-serif !important;\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-break: break-all;\n}\n.collapseContent__desc p,\n.collapseContent__desc pre {\n margin: 0;\n}\n.collapseContent__desc--1 {\n -webkit-line-clamp: 1;\n}\n.collapseContent__desc--2 {\n -webkit-line-clamp: 2;\n}\n.collapseContent__desc--3 {\n -webkit-line-clamp: 3;\n}\n.collapseContent__desc--4 {\n -webkit-line-clamp: 4;\n}\n.collapseContent__desc--5 {\n -webkit-line-clamp: 5;\n}\n.collapseContent__desc--10 {\n -webkit-line-clamp: 10;\n}\n.collapseContent__desc--lightHeight {\n line-height: 2.25;\n}\n.collapseContent__desc--expand {\n -webkit-line-clamp: initial;\n}\n.collapseContent__desc--indent {\n text-indent: 3rem;\n}";
123
+ styleInject(css_248z);
124
+
125
+ // const remUnit = 16;
126
+
127
+ var CollapseContent = function CollapseContent(props) {
128
+ var className = props.className,
129
+ content = props.content,
130
+ textColor = props.textColor,
131
+ lineClamp = props.lineClamp,
132
+ useLightHeight = props.useLightHeight,
133
+ useTextIndent = props.useTextIndent;
134
+ var formatMessage = props.formatMessage,
135
+ primaryColor = props.primaryColor,
136
+ secondaryColor = props.secondaryColor,
137
+ shadowColor = props.shadowColor;
138
+ if (!content) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null); // 元件不可以回傳undefined storybook會該該叫
139
+
140
+ var _useState = useState(),
141
+ _useState2 = _slicedToArray(_useState, 2),
142
+ expand = _useState2[0],
143
+ setExpand = _useState2[1];
144
+ var _useState3 = useState(),
145
+ _useState4 = _slicedToArray(_useState3, 2),
146
+ overflow = _useState4[0],
147
+ setOverflow = _useState4[1];
148
+ var contentRef = useRef();
149
+ useEffect(function () {
150
+ if (!content) return;
151
+ if (contentRef && contentRef.current) {
152
+ // const childrenDOM = contentRef.current.children || [];
153
+ // const dom = childrenDOM.length === 1 ? contentRef.current.children[0] : contentRef.current;
154
+ var dom = contentRef.current;
155
+ var _ref = dom || {},
156
+ clientHeight = _ref.clientHeight,
157
+ scrollHeight = _ref.scrollHeight;
158
+ setOverflow(scrollHeight > clientHeight);
159
+ }
160
+ }, [contentRef, content]);
161
+
162
+ // const { fontSizeRem, textIndent } = useMemo(
163
+ // () => ({ fontSizeRem: `${fontSize / remUnit}rem`, textIndent: `${(fontSize / remUnit) * 2}rem` }),
164
+ // [fontSize]
165
+ // );
166
+
167
+ return /*#__PURE__*/React__default.createElement("div", {
168
+ className: classNames('collapseContent', className)
169
+ }, /*#__PURE__*/React__default.createElement(Typography, {
170
+ ref: contentRef,
171
+ variant: "inherit",
172
+ className: classNames('collapseContent__desc', "collapseContent__desc--".concat(lineClamp <= 5 ? lineClamp : 10), {
173
+ 'collapseContent__desc--indent': useTextIndent
174
+ }, {
175
+ 'collapseContent__desc--expand': expand
176
+ }, {
177
+ 'collapseContent__desc--lightHeight': useLightHeight
178
+ }),
179
+ color: "textSecondary",
180
+ style: {
181
+ color: textColor
182
+ }
183
+ }, textDivider(content)), overflow && /*#__PURE__*/React__default.createElement(MoreButton, {
184
+ small: true,
185
+ primaryColor: primaryColor,
186
+ secondaryColor: secondaryColor,
187
+ shadowColor: shadowColor,
188
+ formatMessage: formatMessage,
189
+ expand: expand,
190
+ setExpand: setExpand
191
+ }));
192
+ };
193
+ CollapseContent.defaultProps = {
194
+ className: undefined,
195
+ content: undefined,
196
+ textColor: undefined,
197
+ // fontSize: 24,
198
+ lineClamp: 2,
199
+ useLightHeight: undefined,
200
+ useTextIndent: true,
201
+ formatMessage: undefined,
202
+ primaryColor: '#271702',
203
+ // default為文學網站的主色系
204
+ secondaryColor: '#aa8859',
205
+ // default為文學網站的次色系
206
+ shadowColor: undefined
207
+ };
208
+
209
+ /* Write props detail information and 'npm run updateStory' will help you generate stories's argTypes */
210
+ CollapseContent.propTypes = {
211
+ /** Css Name */
212
+ className: PropTypes.string,
213
+ /** 內文 */
214
+ content: PropTypes.string,
215
+ /** 內文字體顏色 */
216
+ textColor: PropTypes.string,
217
+ /** 內文字大小 */
218
+ // fontSize: PropTypes.number,
219
+ /** 多行文字縮減 */
220
+ lineClamp: PropTypes.number,
221
+ /** 是否增加lightHeight(2.25) */
222
+ useLightHeight: PropTypes.bool,
223
+ /** 文字前面是否空格 */
224
+ useTextIndent: PropTypes.bool,
225
+ /** 語系翻譯的formateMessag(useIntl) */
226
+ formatMessage: PropTypes.func,
227
+ /** 顯示更多按鈕主色系顏色 */
228
+ primaryColor: PropTypes.string,
229
+ /** 顯示更多按鈕次色系顏色 */
230
+ secondaryColor: PropTypes.string,
231
+ /** 顯示更多按鈕影子顏色 */
232
+ shadowColor: PropTypes.string
233
+ };
234
+
235
+ export { CollapseContent as default };