@daoyi/nmtl-ui 2.0.1-beta.91 → 2.0.1-beta.92
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-887cda6a.js → Autocomplete-5d6f1df8.js} +44 -11
- package/lib/components/Autocomplete.js +5 -4
- package/lib/components/Avatar.js +1 -1
- package/lib/components/BackTop.js +2 -2
- package/lib/components/BarChart.js +1 -1
- package/lib/components/Breadcrumbs.js +1 -1
- package/lib/components/{Button-8742afeb.js → Button-305b69a0.js} +1 -1
- package/lib/components/Button.js +2 -2
- package/lib/components/Carousel.js +1 -1
- package/lib/components/CollapseContent.js +2 -2
- package/lib/components/{ContactModal-530d4d80.js → ContactModal-1997d146.js} +92 -20
- package/lib/components/ContactModal.js +9 -9
- package/lib/components/{Drawer-96442344.js → Drawer-b9855a54.js} +9 -2
- package/lib/components/Drawer.js +5 -4
- package/lib/components/Dropdown.js +1 -1
- package/lib/components/{Empty-94a8d8ff.js → Empty-bf77164f.js} +1 -1
- package/lib/components/Empty.js +2 -2
- package/lib/components/ExportButton.js +1 -1
- package/lib/components/{ExtraTools-bfb076ca.js → ExtraTools-5954ee3a.js} +72 -14
- package/lib/components/ExtraTools.js +3 -3
- package/lib/components/Filter.js +2 -2
- package/lib/components/Footer.js +9 -9
- package/lib/components/{ForwardLink-059be72d.js → ForwardLink-aa950a50.js} +12 -3
- package/lib/components/ForwardLink.js +3 -2
- package/lib/components/Header.js +24 -8
- package/lib/components/Image.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputMethod.js +1 -1
- package/lib/components/{KeywordSearch-c3acab41.js → KeywordSearch-33341dd3.js} +2 -2
- package/lib/components/KeywordSearch.js +6 -5
- package/lib/components/KeywordTicker.js +4 -3
- package/lib/components/Keywords.js +6 -5
- package/lib/components/Loading.js +1 -1
- package/lib/components/{Modal-fc4320d3.js → Modal-5a27951f.js} +12 -4
- package/lib/components/Modal.js +5 -4
- package/lib/components/{MoreButton-d7c9f3b8.js → MoreButton-44d3b4fe.js} +1 -1
- package/lib/components/MoreButton.js +2 -2
- package/lib/components/Pagination.js +2 -2
- package/lib/components/SNA.js +3 -3
- package/lib/components/{Select-fdb4d9b8.js → Select-e550d0a5.js} +23 -6
- package/lib/components/Select.js +3 -3
- package/lib/components/{Spin-fafe3787.js → Spin-8dc60bfe.js} +1 -1
- package/lib/components/Spin.js +2 -2
- package/lib/components/{Tooltip-e67a18bc.js → Tooltip-6ebfa9c1.js} +1 -1
- package/lib/components/Tooltip.js +2 -2
- package/lib/components/globalConfig.js +27 -3
- package/package.json +1 -1
- /package/lib/components/{createSvgIcon-0d38de2e.js → createSvgIcon-e3803ee1.js} +0 -0
- /package/lib/components/{index-0be0afec.js → index-b47819f3.js} +0 -0
- /package/lib/components/{index-ef96775f.js → index-b76a85f4.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as _objectSpread2, d as _typeof } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
5
5
|
import { FormControl, Select as Select$1, CircularProgress, MenuItem } from '@material-ui/core';
|
|
6
|
-
import { E as Empty } from './Empty-
|
|
6
|
+
import { E as Empty } from './Empty-bf77164f.js';
|
|
7
7
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
8
8
|
|
|
9
9
|
var css_248z = ".select__placeholder {\n color: #999;\n}\n.select--small {\n width: 100%;\n}\n.select--small .MuiSelect-root {\n padding: 0.5rem 1.5rem 0.25rem;\n color: white;\n}\n.select--small .MuiSelect-root .select__placeholder {\n color: white;\n}\n.select--small .MuiSelect-root:hover, .select--small .MuiSelect-root:focus {\n background: transparent;\n}\n.select--small .MuiSvgIcon-root {\n color: white;\n}\n.select--small .MuiOutlinedInput-root {\n border-radius: 45px;\n}";
|
|
@@ -22,7 +22,9 @@ var Select = function Select(props) {
|
|
|
22
22
|
var options = props.options,
|
|
23
23
|
value = props.value,
|
|
24
24
|
defaultValue = props.defaultValue,
|
|
25
|
-
_onChange = props.onChange
|
|
25
|
+
_onChange = props.onChange,
|
|
26
|
+
ariaLabel = props.ariaLabel,
|
|
27
|
+
ariaLabelledby = props.ariaLabelledby;
|
|
26
28
|
var itemFind = function itemFind(key) {
|
|
27
29
|
return (options || []).find(function (option) {
|
|
28
30
|
return _typeof(option) === 'object' ? key === option.value : key === option;
|
|
@@ -38,7 +40,16 @@ var Select = function Select(props) {
|
|
|
38
40
|
background: background
|
|
39
41
|
}),
|
|
40
42
|
displayEmpty: true,
|
|
41
|
-
disabled: disabled || loading
|
|
43
|
+
disabled: disabled || loading
|
|
44
|
+
// WCAG 3.3.2 下拉選單需有可及名稱(含 MUI 隱藏 input),未提供時以 placeholder 代替
|
|
45
|
+
,
|
|
46
|
+
inputProps: {
|
|
47
|
+
'aria-label': ariaLabelledby ? undefined : ariaLabel || placeholder
|
|
48
|
+
},
|
|
49
|
+
SelectDisplayProps: {
|
|
50
|
+
'aria-labelledby': ariaLabelledby,
|
|
51
|
+
'aria-label': ariaLabelledby ? undefined : ariaLabel || placeholder
|
|
52
|
+
},
|
|
42
53
|
renderValue: function renderValue(id) {
|
|
43
54
|
var finder = itemFind(id);
|
|
44
55
|
var content = _typeof(finder) === 'object' ? finder.label : finder;
|
|
@@ -81,7 +92,9 @@ Select.defaultProps = {
|
|
|
81
92
|
variantSmall: undefined,
|
|
82
93
|
background: undefined,
|
|
83
94
|
menuItemClass: undefined,
|
|
84
|
-
onChange: function onChange() {}
|
|
95
|
+
onChange: function onChange() {},
|
|
96
|
+
ariaLabel: undefined,
|
|
97
|
+
ariaLabelledby: undefined
|
|
85
98
|
};
|
|
86
99
|
Select.propTypes = {
|
|
87
100
|
/** 樣式 */
|
|
@@ -109,7 +122,11 @@ Select.propTypes = {
|
|
|
109
122
|
/** override menuItem class */
|
|
110
123
|
menuItemClass: PropTypes.objectOf(PropTypes.any),
|
|
111
124
|
/** 點選後的返回 */
|
|
112
|
-
onChange: PropTypes.func
|
|
125
|
+
onChange: PropTypes.func,
|
|
126
|
+
/** 無障礙名稱(WCAG 3.3.2),未提供時以placeholder代替 */
|
|
127
|
+
ariaLabel: PropTypes.string,
|
|
128
|
+
/** 以外部元素id作為無障礙名稱 */
|
|
129
|
+
ariaLabelledby: PropTypes.string
|
|
113
130
|
};
|
|
114
131
|
|
|
115
132
|
export { Select as S };
|
package/lib/components/Select.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { S as default } from './Select-
|
|
1
|
+
export { S as default } from './Select-e550d0a5.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-b76a85f4.js';
|
|
6
6
|
import '@material-ui/core';
|
|
7
|
-
import './Empty-
|
|
7
|
+
import './Empty-bf77164f.js';
|
|
8
8
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
4
4
|
import { Fade, CircularProgress } from '@material-ui/core';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
package/lib/components/Spin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { S as default } from './Spin-
|
|
1
|
+
export { S as default } from './Spin-8dc60bfe.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-b76a85f4.js';
|
|
5
5
|
import '@material-ui/core';
|
|
6
6
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Tooltip as Tooltip$1 } from '@material-ui/core';
|
|
4
4
|
import { _ as _extends } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
5
|
-
import { c as classNames } from './index-
|
|
5
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
|
|
8
8
|
const TooltipContent = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { T as default, p as placements } from './Tooltip-
|
|
1
|
+
export { T as default, p as placements } from './Tooltip-6ebfa9c1.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import '@material-ui/core';
|
|
5
5
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-b76a85f4.js';
|
|
7
7
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -55,7 +55,15 @@ var zhtw = {
|
|
|
55
55
|
"common.form.attachment.hint2": "2.若有多個檔案請先集中至同一資料夾並以壓縮檔上傳",
|
|
56
56
|
"common.form.contactUs": "聯繫我們",
|
|
57
57
|
"common.form.error": "表單尚未完成 請檢察必填項目",
|
|
58
|
-
"common.sna.reset": "回到原來位置與大小"
|
|
58
|
+
"common.sna.reset": "回到原來位置與大小",
|
|
59
|
+
"aria.header.searchOpen": "開啟搜尋",
|
|
60
|
+
"aria.header.menuOpen": "開啟主選單",
|
|
61
|
+
"aria.header.logoHome": "回首頁",
|
|
62
|
+
"aria.autocomplete.search": "執行搜尋",
|
|
63
|
+
"aria.modal.close": "關閉視窗",
|
|
64
|
+
"aria.newWindow": "(另開新視窗)",
|
|
65
|
+
"aria.vcode.image": "驗證碼圖片,如無法辨識可刷新驗證碼",
|
|
66
|
+
"aria.vcode.refresh": "刷新驗證碼"
|
|
59
67
|
};
|
|
60
68
|
|
|
61
69
|
var zhcn = {
|
|
@@ -99,7 +107,15 @@ var zhcn = {
|
|
|
99
107
|
"common.form.attachment.hint": "1.上传附件大小限制:总共10MB",
|
|
100
108
|
"common.form.attachment.hint2": "2.若有多个档案请先集中至同一资料夹并以压缩档上传",
|
|
101
109
|
"common.form.contactUs": "联系我们",
|
|
102
|
-
"common.form.error": "表单尚未完成 请检察必填项目"
|
|
110
|
+
"common.form.error": "表单尚未完成 请检察必填项目",
|
|
111
|
+
"aria.header.searchOpen": "开启搜寻",
|
|
112
|
+
"aria.header.menuOpen": "开启主选单",
|
|
113
|
+
"aria.header.logoHome": "回首页",
|
|
114
|
+
"aria.autocomplete.search": "执行搜寻",
|
|
115
|
+
"aria.modal.close": "关闭视窗",
|
|
116
|
+
"aria.newWindow": "(另开新视窗)",
|
|
117
|
+
"aria.vcode.image": "验证码图片,如无法辨识可刷新验证码",
|
|
118
|
+
"aria.vcode.refresh": "刷新验证码"
|
|
103
119
|
};
|
|
104
120
|
|
|
105
121
|
var enus = {
|
|
@@ -143,7 +159,15 @@ var enus = {
|
|
|
143
159
|
"common.form.attachment.hint": "1. Upload attachment size limit: 10MB in total. ",
|
|
144
160
|
"common.form.attachment.hint2": "2. If there are multiple files, please gather them in the same folder and upload them as compressed files",
|
|
145
161
|
"common.form.contactUs": "Contact Us",
|
|
146
|
-
"common.form.error": "The form has not been completed, please check the required items"
|
|
162
|
+
"common.form.error": "The form has not been completed, please check the required items",
|
|
163
|
+
"aria.header.searchOpen": "Open search",
|
|
164
|
+
"aria.header.menuOpen": "Open main menu",
|
|
165
|
+
"aria.header.logoHome": "Back to home",
|
|
166
|
+
"aria.autocomplete.search": "Search",
|
|
167
|
+
"aria.modal.close": "Close dialog",
|
|
168
|
+
"aria.newWindow": " (opens in new window)",
|
|
169
|
+
"aria.vcode.image": "CAPTCHA image, refresh if unreadable",
|
|
170
|
+
"aria.vcode.refresh": "Refresh CAPTCHA"
|
|
147
171
|
};
|
|
148
172
|
|
|
149
173
|
var _languages;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|