@daoyi/nmtl-ui 2.0.1-beta.74 → 2.0.1-beta.75
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-6214ea95.js → Autocomplete-cbaee417.js} +8 -8
- package/lib/components/Autocomplete.js +1 -1
- package/lib/components/Header.js +2 -2
- package/lib/components/{KeywordSearch-ba6f3639.js → KeywordSearch-86ee614f.js} +1 -1
- package/lib/components/KeywordSearch.js +2 -2
- package/package.json +1 -1
|
@@ -155,13 +155,7 @@ var useAutocomplete = (_ref => {
|
|
|
155
155
|
placeholder: placeholder,
|
|
156
156
|
InputProps: {
|
|
157
157
|
...params.InputProps,
|
|
158
|
-
endAdornment: /*#__PURE__*/React__default.createElement(
|
|
159
|
-
style: {
|
|
160
|
-
top: 'calc(50% - 14px)',
|
|
161
|
-
right: '0',
|
|
162
|
-
position: 'absolute'
|
|
163
|
-
}
|
|
164
|
-
}, loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
158
|
+
endAdornment: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
165
159
|
className: "autocomplete__icon",
|
|
166
160
|
color: "inherit",
|
|
167
161
|
size: 20
|
|
@@ -175,7 +169,13 @@ var useAutocomplete = (_ref => {
|
|
|
175
169
|
setCurrentDefaultValue(tmpObj);
|
|
176
170
|
return onEnter(event, tmpObj);
|
|
177
171
|
}
|
|
178
|
-
}), arrowIcon && /*#__PURE__*/React__default.createElement(
|
|
172
|
+
}), !searchIcon && !loading && arrowIcon && /*#__PURE__*/React__default.createElement(Box, {
|
|
173
|
+
style: {
|
|
174
|
+
top: 'calc(50% - 14px)',
|
|
175
|
+
right: '0',
|
|
176
|
+
position: 'absolute'
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/React__default.createElement(default_1, null)), params.InputProps.endAdornment)
|
|
179
179
|
}
|
|
180
180
|
})), [loading, searchIcon, arrowIcon]);
|
|
181
181
|
return {
|
package/lib/components/Header.js
CHANGED
|
@@ -6,14 +6,14 @@ import { d as debounce_1 } from './debounce-127da66c.js';
|
|
|
6
6
|
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
|
-
import { K as KeywordSearch } from './KeywordSearch-
|
|
9
|
+
import { K as KeywordSearch } from './KeywordSearch-86ee614f.js';
|
|
10
10
|
import { S as Select } from './Select-0f131640.js';
|
|
11
11
|
import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-fb5bc1ec.js';
|
|
12
12
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
13
13
|
import './isObjectLike-e111475d.js';
|
|
14
14
|
import './_commonjsHelpers-70de2c37.js';
|
|
15
15
|
import 'axios';
|
|
16
|
-
import './Autocomplete-
|
|
16
|
+
import './Autocomplete-cbaee417.js';
|
|
17
17
|
import '@material-ui/lab';
|
|
18
18
|
import './createSvgIcon-0d38de2e.js';
|
|
19
19
|
import './defaultTheme-ed7746fe.js';
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { c as classNames } from './index-ef96775f.js';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
|
-
import { A as Autocomplete } from './Autocomplete-
|
|
7
|
+
import { A as Autocomplete } from './Autocomplete-cbaee417.js';
|
|
8
8
|
|
|
9
9
|
var css_248z = ".keywordSearch {\n border-radius: 4px;\n width: 100%;\n margin-right: 14px; }\n .keywordSearch--animation .autocomplete {\n transition: max-width 0.3s ease-out;\n max-width: 240px; }\n .keywordSearch--focus {\n flex: 1; }\n .keywordSearch--focus .autocomplete {\n max-width: 100%; }\n .keywordSearch .MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon .MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root'] {\n border-radius: 10px;\n background-color: #ffffff66; }\n";
|
|
10
10
|
styleInject(css_248z);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { K as default } from './KeywordSearch-
|
|
1
|
+
export { K as default } from './KeywordSearch-86ee614f.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import './index-ef96775f.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import './style-inject.es-1f59c1d0.js';
|
|
8
|
-
import './Autocomplete-
|
|
8
|
+
import './Autocomplete-cbaee417.js';
|
|
9
9
|
import './debounce-127da66c.js';
|
|
10
10
|
import './isObjectLike-e111475d.js';
|
|
11
11
|
import './_commonjsHelpers-70de2c37.js';
|
package/package.json
CHANGED