@daoyi/nmtl-ui 2.0.1-beta.94 → 2.0.1-beta.95
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/{ContactModal-1997d146.js → ContactModal-560b9bdd.js} +1 -1
- package/lib/components/ContactModal.js +2 -2
- package/lib/components/{Drawer-b9855a54.js → Drawer-41d3a91f.js} +1 -1
- package/lib/components/Drawer.js +2 -2
- package/lib/components/Footer.js +2 -2
- package/lib/components/Header.js +2 -2
- package/lib/components/{Select-e550d0a5.js → Select-ac580a1f.js} +6 -7
- package/lib/components/Select.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { M as Modal } from './Modal-5a27951f.js';
|
|
|
7
7
|
import { c as commonjsGlobal, a as getDefaultExportFromCjs } from './_commonjsHelpers-70de2c37.js';
|
|
8
8
|
import { c as classNames } from './index-b76a85f4.js';
|
|
9
9
|
import { Input, Button, Box, Typography, FormControl, RadioGroup, FormControlLabel, Radio, TextField, TextareaAutosize } from '@material-ui/core';
|
|
10
|
-
import { S as Select } from './Select-
|
|
10
|
+
import { S as Select } from './Select-ac580a1f.js';
|
|
11
11
|
import { getIntl } from './globalConfig';
|
|
12
12
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
13
13
|
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-e3803ee1.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as default } from './ContactModal-
|
|
1
|
+
export { C as default } from './ContactModal-560b9bdd.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
@@ -14,7 +14,7 @@ import './style-inject.es-1f59c1d0.js';
|
|
|
14
14
|
import './Spin-8dc60bfe.js';
|
|
15
15
|
import './globalConfig';
|
|
16
16
|
import './_commonjsHelpers-70de2c37.js';
|
|
17
|
-
import './Select-
|
|
17
|
+
import './Select-ac580a1f.js';
|
|
18
18
|
import './Empty-bf77164f.js';
|
|
19
19
|
import './createSvgIcon-e3803ee1.js';
|
|
20
20
|
import './defaultTheme-ed7746fe.js';
|
|
@@ -3,7 +3,7 @@ import React__default, { useState } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { List, ListItem, ListItemIcon, ListItemText, IconButton, Drawer as Drawer$1, Divider } from '@material-ui/core';
|
|
5
5
|
import { DehazeRounded } from '@material-ui/icons';
|
|
6
|
-
import { S as Select } from './Select-
|
|
6
|
+
import { S as Select } from './Select-ac580a1f.js';
|
|
7
7
|
import { useHistory, useRouteMatch } from 'react-router-dom';
|
|
8
8
|
import { getIntl } from './globalConfig';
|
|
9
9
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
package/lib/components/Drawer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as default } from './Drawer-
|
|
1
|
+
export { D as default } from './Drawer-41d3a91f.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import '@material-ui/core';
|
|
6
6
|
import '@material-ui/icons';
|
|
7
|
-
import './Select-
|
|
7
|
+
import './Select-ac580a1f.js';
|
|
8
8
|
import './index-b76a85f4.js';
|
|
9
9
|
import './Empty-bf77164f.js';
|
|
10
10
|
import './style-inject.es-1f59c1d0.js';
|
package/lib/components/Footer.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
3
3
|
import { c as classNames } from './index-b76a85f4.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { C as ContactModal } from './ContactModal-
|
|
6
|
+
import { C as ContactModal } from './ContactModal-560b9bdd.js';
|
|
7
7
|
import { S as Spin } from './Spin-8dc60bfe.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
9
9
|
import './hoist-non-react-statics.cjs-3f408ad2.js';
|
|
@@ -14,7 +14,7 @@ import '@material-ui/icons';
|
|
|
14
14
|
import './Button-305b69a0.js';
|
|
15
15
|
import './globalConfig';
|
|
16
16
|
import './_commonjsHelpers-70de2c37.js';
|
|
17
|
-
import './Select-
|
|
17
|
+
import './Select-ac580a1f.js';
|
|
18
18
|
import './Empty-bf77164f.js';
|
|
19
19
|
import './createSvgIcon-e3803ee1.js';
|
|
20
20
|
import './defaultTheme-ed7746fe.js';
|
package/lib/components/Header.js
CHANGED
|
@@ -7,8 +7,8 @@ import { useHistory, useRouteMatch, NavLink } from 'react-router-dom';
|
|
|
7
7
|
import { Typography, IconButton } from '@material-ui/core';
|
|
8
8
|
import { SearchOutlined } from '@material-ui/icons';
|
|
9
9
|
import { K as KeywordSearch } from './KeywordSearch-33341dd3.js';
|
|
10
|
-
import { S as Select } from './Select-
|
|
11
|
-
import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-
|
|
10
|
+
import { S as Select } from './Select-ac580a1f.js';
|
|
11
|
+
import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-41d3a91f.js';
|
|
12
12
|
import { getIntl } from './globalConfig';
|
|
13
13
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
14
14
|
import './isObjectLike-e111475d.js';
|
|
@@ -6,7 +6,7 @@ import { FormControl, Select as Select$1, CircularProgress, MenuItem } from '@ma
|
|
|
6
6
|
import { E as Empty } from './Empty-bf77164f.js';
|
|
7
7
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
8
8
|
|
|
9
|
-
var css_248z = ".select__placeholder {\n color: #
|
|
9
|
+
var css_248z = ".select .MuiSelect-nativeInput {\n visibility: hidden;\n}\n.select__placeholder {\n color: #6b6130;\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}";
|
|
10
10
|
styleInject(css_248z);
|
|
11
11
|
|
|
12
12
|
var Select = function Select(props) {
|
|
@@ -41,14 +41,13 @@ var Select = function Select(props) {
|
|
|
41
41
|
}),
|
|
42
42
|
displayEmpty: true,
|
|
43
43
|
disabled: disabled || loading
|
|
44
|
-
// WCAG 3.3.2
|
|
44
|
+
// WCAG 3.3.2 可及名稱:顯示層(role=button)預設以其文字內容(選中值/placeholder)為名稱;
|
|
45
|
+
// 僅在明確提供 ariaLabel/ariaLabelledby 時才覆蓋(避免蓋掉有意義的選中值文字)。
|
|
46
|
+
// 隱藏原生 input 由 select.scss 的 visibility:hidden 讓檢測工具略過,無需再標 label。
|
|
45
47
|
,
|
|
46
|
-
inputProps: {
|
|
47
|
-
'aria-label': ariaLabelledby ? undefined : ariaLabel || placeholder
|
|
48
|
-
},
|
|
49
48
|
SelectDisplayProps: {
|
|
50
|
-
'aria-labelledby': ariaLabelledby,
|
|
51
|
-
'aria-label': ariaLabelledby ? undefined : ariaLabel
|
|
49
|
+
'aria-labelledby': ariaLabelledby || undefined,
|
|
50
|
+
'aria-label': ariaLabelledby ? undefined : ariaLabel
|
|
52
51
|
},
|
|
53
52
|
renderValue: function renderValue(id) {
|
|
54
53
|
var finder = itemFind(id);
|
package/lib/components/Select.js
CHANGED
package/package.json
CHANGED