@daoyi/nmtl-ui 2.0.1-beta.93 → 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.
@@ -84,10 +84,12 @@ var BackTop = function BackTop(props) {
84
84
  }
85
85
  }, children ? /*#__PURE__*/React__default.createElement("div", null, children) : /*#__PURE__*/React__default.createElement(NoSsr, null, /*#__PURE__*/React__default.createElement(Box, {
86
86
  className: "backTop__default",
87
- color: "text.primary",
87
+ color: "primary.contrastText",
88
88
  bgcolor: "primary.main",
89
89
  borderColor: "text.secondary"
90
- }, /*#__PURE__*/React__default.createElement(default_1, null), "Top"))));
90
+ }, /*#__PURE__*/React__default.createElement(default_1, {
91
+ "aria-hidden": "true"
92
+ }), "Top"))));
91
93
  };
92
94
  BackTop.defaultProps = {
93
95
  className: undefined,
@@ -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-e550d0a5.js';
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-1997d146.js';
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-e550d0a5.js';
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-e550d0a5.js';
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';
@@ -1,10 +1,10 @@
1
- export { D as default } from './Drawer-b9855a54.js';
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-e550d0a5.js';
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';
@@ -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-1997d146.js';
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-e550d0a5.js';
17
+ import './Select-ac580a1f.js';
18
18
  import './Empty-bf77164f.js';
19
19
  import './createSvgIcon-e3803ee1.js';
20
20
  import './defaultTheme-ed7746fe.js';
@@ -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-e550d0a5.js';
11
- import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-b9855a54.js';
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: #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}";
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 下拉選單需有可及名稱(含 MUI 隱藏 input),未提供時以 placeholder 代替
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 || placeholder
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);
@@ -1,4 +1,4 @@
1
- export { S as default } from './Select-e550d0a5.js';
1
+ export { S as default } from './Select-ac580a1f.js';
2
2
  import './_rollupPluginBabelHelpers-a52356f6.js';
3
3
  import 'react';
4
4
  import 'prop-types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daoyi/nmtl-ui",
3
- "version": "2.0.1-beta.93",
3
+ "version": "2.0.1-beta.95",
4
4
  "description": "This project is to be used as a starter kit for building React component using Storybook and Rollup",
5
5
  "author": "daoyi",
6
6
  "main": "lib/index.js",