@daoyi/nmtl-ui 2.0.1-beta.11 → 2.0.1-beta.110
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-8aa5b893.js +470 -0
- package/lib/components/Autocomplete.js +20 -1
- package/lib/components/Avatar.js +53 -1
- package/lib/components/BackTop.js +124 -1
- package/lib/components/BarChart.js +762 -1
- package/lib/components/Breadcrumbs.js +122 -1
- package/lib/components/Button-305b69a0.js +92 -0
- package/lib/components/Button.js +6 -1
- package/lib/components/Carousel.js +4654 -1
- package/lib/components/Checkbox.js +37 -1
- package/lib/components/CollapseContent.js +180 -1
- package/lib/components/ContactModal-b3761fb6.js +12188 -0
- package/lib/components/ContactModal.js +24 -3
- package/lib/components/Drawer-b2edc79b.js +163 -0
- package/lib/components/Drawer.js +17 -1
- package/lib/components/Dropdown.js +134 -1
- package/lib/components/Empty-c6a44967.js +46 -0
- package/lib/components/Empty.js +5 -1
- package/lib/components/ExportButton.js +128 -1
- package/lib/components/ExtraTools-55f66039.js +3619 -0
- package/lib/components/ExtraTools.js +10 -22
- package/lib/components/Filter.js +821 -12
- package/lib/components/Footer.js +317 -1
- package/lib/components/ForwardLink-e86c1080.js +128 -0
- package/lib/components/ForwardLink.js +10 -0
- package/lib/components/Header.js +220 -1
- package/lib/components/Image.js +61 -1
- package/lib/components/Input.js +82 -1
- package/lib/components/InputMethod.js +33949 -12
- package/lib/components/KeywordSearch-0640ae9a.js +156 -0
- package/lib/components/KeywordSearch.js +22 -1
- package/lib/components/KeywordTicker.js +224 -1
- package/lib/components/Keywords.js +383 -1
- package/lib/components/Loading.js +28 -1
- package/lib/components/MUITheme.js +2639 -1
- package/lib/components/Modal-777fe87d.js +116 -0
- package/lib/components/Modal.js +10 -1
- package/lib/components/MoreButton-19055e07.js +148 -0
- package/lib/components/MoreButton.js +8 -1
- package/lib/components/Pagination.js +3702 -0
- package/lib/components/Radio.js +78 -1
- package/lib/components/SNA.js +1713 -22
- package/lib/components/Select-52ab5299.js +145 -0
- package/lib/components/Select.js +13 -1
- package/lib/components/Spin-8dc60bfe.js +75 -0
- package/lib/components/Spin.js +6 -1
- package/lib/components/Table.js +51 -1
- package/lib/components/Tooltip-6ebfa9c1.js +70 -0
- package/lib/components/Tooltip.js +7 -1
- package/lib/components/_commonjsHelpers-70de2c37.js +28 -0
- package/lib/components/_rollupPluginBabelHelpers-a52356f6.js +142 -0
- package/lib/components/createSvgIcon-e3803ee1.js +576 -0
- package/lib/components/dataExport-d55d6fa3.js +92 -0
- package/lib/components/debounce-127da66c.js +355 -0
- package/lib/components/defaultTheme-ed7746fe.js +1661 -0
- package/lib/components/globalConfig.js +287 -0
- package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
- package/lib/components/index-b47819f3.js +481 -0
- package/lib/components/index-b76a85f4.js +61 -0
- package/lib/components/isObjectLike-e111475d.js +190 -0
- package/lib/components/style-inject.es-1f59c1d0.js +28 -1
- package/lib/components/toConsumableArray-dbe8af76.js +19 -0
- package/lib/components/transform-3a04288b.js +5475 -0
- package/lib/components/useTheme-d16d02d9.js +11 -0
- package/lib/components/withTheme-2d778133.js +6 -0
- package/lib/configs/config.selector.js +151 -0
- package/lib/configs/index.d.ts +1 -0
- package/lib/configs/index.js +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/utils/_rollupPluginBabelHelpers-8dd26e1a.js +121 -0
- package/lib/utils/arrayMerge.js +4953 -1
- package/lib/utils/chunkArray.js +15 -1
- package/lib/utils/convert2HtmlEntities.js +42 -1
- package/lib/utils/domToImage.js +802 -1
- package/lib/utils/downloadGephi.js +106 -1
- package/lib/utils/exportXlsx.js +219 -1
- package/lib/utils/historyAppendSearch.js +502 -1
- package/lib/utils/isDevelopMode.js +5 -1
- package/lib/utils/parseYMD.js +36 -1
- package/lib/utils/removeDuplicateItem.js +11 -1
- package/lib/utils/sendEmail.js +39 -1
- package/lib/utils/snaDefine-6a2bcd94.js +5 -0
- package/lib/utils/snaDefine.js +1 -1
- package/lib/utils/snaPreProcess.js +84 -1
- package/package.json +125 -127
- package/lib/components/Empty-54b79907.js +0 -1
- package/lib/components/KeywordSearch-5a393f12.js +0 -1
- package/lib/components/Select-f2441b83.js +0 -1
- package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
- package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
- package/lib/components/createSvgIcon-62b64929.js +0 -1
- package/lib/components/createSvgIcon-e24792d4.js +0 -1
- package/lib/components/createTheme-7fffa109.js +0 -1
- package/lib/components/dataExport-9fccd4f0.js +0 -1
- package/lib/components/debounce-c993109b.js +0 -1
- package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +0 -1
- package/lib/components/index-11391ca3.js +0 -7
- package/lib/components/index-b2745105.js +0 -7
- package/lib/components/isObjectLike-2f1983fe.js +0 -1
- package/lib/components/style-inject.es-c875d022.js +0 -1
- package/lib/components/transform-95ae0119.js +0 -1
- package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
- package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
package/lib/components/Input.js
CHANGED
|
@@ -1 +1,82 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { c as classNames } from './index-b76a85f4.js';
|
|
4
|
+
import { OutlinedInput } from '@material-ui/core';
|
|
5
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
|
+
|
|
7
|
+
var css_248z = ".input {\n padding: 12px;\n}";
|
|
8
|
+
styleInject(css_248z);
|
|
9
|
+
|
|
10
|
+
var Input = function Input(props) {
|
|
11
|
+
var className = props.className,
|
|
12
|
+
placeholder = props.placeholder,
|
|
13
|
+
defaultValue = props.defaultValue,
|
|
14
|
+
value = props.value,
|
|
15
|
+
type = props.type,
|
|
16
|
+
error = props.error; // Attributes
|
|
17
|
+
|
|
18
|
+
var _onChange = props.onChange,
|
|
19
|
+
_onKeyPress = props.onKeyPress,
|
|
20
|
+
onPressEnter = props.onPressEnter; // Call Back Functions
|
|
21
|
+
|
|
22
|
+
var suffix = props.suffix; // Dom Status
|
|
23
|
+
|
|
24
|
+
var OutlinedInputProps = {
|
|
25
|
+
inputProps: {
|
|
26
|
+
className: classNames('input', className)
|
|
27
|
+
},
|
|
28
|
+
placeholder: placeholder,
|
|
29
|
+
defaultValue: defaultValue,
|
|
30
|
+
onChange: function onChange(_ref) {
|
|
31
|
+
var target = _ref.target;
|
|
32
|
+
if (_onChange) _onChange(target.value);
|
|
33
|
+
},
|
|
34
|
+
onKeyPress: function onKeyPress(e) {
|
|
35
|
+
if (e.key === 'Enter' && onPressEnter) onPressEnter(e.key, e.target.value);
|
|
36
|
+
if (_onKeyPress) _onKeyPress(e);
|
|
37
|
+
},
|
|
38
|
+
value: value,
|
|
39
|
+
endAdornment: suffix && /*#__PURE__*/React__default.isValidElement(suffix) ? suffix : null,
|
|
40
|
+
type: type,
|
|
41
|
+
error: error
|
|
42
|
+
};
|
|
43
|
+
return /*#__PURE__*/React__default.createElement(OutlinedInput, OutlinedInputProps);
|
|
44
|
+
};
|
|
45
|
+
Input.defaultProps = {
|
|
46
|
+
className: undefined,
|
|
47
|
+
placeholder: 'Please enter text',
|
|
48
|
+
defaultValue: undefined,
|
|
49
|
+
value: undefined,
|
|
50
|
+
onChange: undefined,
|
|
51
|
+
onKeyPress: undefined,
|
|
52
|
+
onPressEnter: undefined,
|
|
53
|
+
suffix: null,
|
|
54
|
+
type: 'text',
|
|
55
|
+
error: false
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/* Write props detail information and 'npm run updateStory' will help you generate stories's argTypes */
|
|
59
|
+
Input.propTypes = {
|
|
60
|
+
/** Css Name */
|
|
61
|
+
className: PropTypes.string,
|
|
62
|
+
/** Placeholder */
|
|
63
|
+
placeholder: PropTypes.string,
|
|
64
|
+
/** Default Value */
|
|
65
|
+
defaultValue: PropTypes.string,
|
|
66
|
+
/** Value */
|
|
67
|
+
value: PropTypes.string,
|
|
68
|
+
/** onChange Call Back */
|
|
69
|
+
onChange: PropTypes.func,
|
|
70
|
+
/** onKeyPress Call Back */
|
|
71
|
+
onKeyPress: PropTypes.func,
|
|
72
|
+
/** onPressEnter Call Back */
|
|
73
|
+
onPressEnter: PropTypes.func,
|
|
74
|
+
/** Custom Icon Area */
|
|
75
|
+
suffix: PropTypes.node,
|
|
76
|
+
/** HTML5 Input type */
|
|
77
|
+
type: PropTypes.string,
|
|
78
|
+
/** Input error */
|
|
79
|
+
error: PropTypes.bool
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export { Input as default };
|