@yosgo/swap-ui 1.0.127 → 1.0.128
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/build/index.js
CHANGED
|
@@ -11771,7 +11771,7 @@ var useStyles$f = core.makeStyles(function (theme) { return ({
|
|
|
11771
11771
|
var AutoComplete = function (props) {
|
|
11772
11772
|
var _a = React.useState([]), noOptionValue = _a[0], setNoOptionValue = _a[1];
|
|
11773
11773
|
var _b = React.useState(false), typeNoOptionValue = _b[0], setTypeNoOptionValue = _b[1];
|
|
11774
|
-
var open = props.open, helperText = props.helperText, value = props.value, handleNoOptionsValueChange = props.handleNoOptionsValueChange, options = props.options, placeholder = props.placeholder, placement = props.placement, title = props.title, width = props.width, anchorEl = props.anchorEl, disableFreeInput = props.disableFreeInput, renderOption = props.renderOption, getOptionLabel = props.getOptionLabel, noOptionsText = props.noOptionsText, renderInput = props.renderInput, optionsMaxHeight = props.optionsMaxHeight, anchorOrigin = props.anchorOrigin, other = __rest(props, ["open", "helperText", "value", "handleNoOptionsValueChange", "options", "placeholder", "placement", "title", "width", "anchorEl", "disableFreeInput", "renderOption", "getOptionLabel", "noOptionsText", "renderInput", "optionsMaxHeight", "anchorOrigin"]);
|
|
11774
|
+
var open = props.open, helperText = props.helperText, value = props.value, handleNoOptionsValueChange = props.handleNoOptionsValueChange, options = props.options, placeholder = props.placeholder, placement = props.placement, title = props.title, width = props.width, anchorEl = props.anchorEl, disableFreeInput = props.disableFreeInput, renderOption = props.renderOption, getOptionLabel = props.getOptionLabel, noOptionsText = props.noOptionsText, renderInput = props.renderInput, optionsMaxHeight = props.optionsMaxHeight, anchorOrigin = props.anchorOrigin, addNewOptionsText = props.addNewOptionsText, other = __rest(props, ["open", "helperText", "value", "handleNoOptionsValueChange", "options", "placeholder", "placement", "title", "width", "anchorEl", "disableFreeInput", "renderOption", "getOptionLabel", "noOptionsText", "renderInput", "optionsMaxHeight", "anchorOrigin", "addNewOptionsText"]);
|
|
11775
11775
|
var styleProps = {
|
|
11776
11776
|
width: width,
|
|
11777
11777
|
optionsMaxHeight: optionsMaxHeight,
|
|
@@ -11789,12 +11789,13 @@ var AutoComplete = function (props) {
|
|
|
11789
11789
|
option: classes.option,
|
|
11790
11790
|
popperDisablePortal: classes.popperDisablePortal,
|
|
11791
11791
|
listbox: classes.listbox,
|
|
11792
|
-
}, open: true, options: options, renderOption: renderOption, getOptionLabel: getOptionLabel, noOptionsText: disableFreeInput ? ("無此選項") :
|
|
11793
|
-
"
|
|
11792
|
+
}, open: true, options: options, renderOption: renderOption, getOptionLabel: getOptionLabel, noOptionsText: disableFreeInput ? ("無此選項") : (React__default.createElement("div", { className: classes.noOptionValue },
|
|
11793
|
+
noOptionsText ? noOptionsText : "無此選項",
|
|
11794
11794
|
React__default.createElement("div", { className: classes.linkText, onMouseDown: function () {
|
|
11795
11795
|
handleNoOptionsValueChange(noOptionValue.value);
|
|
11796
11796
|
} },
|
|
11797
|
-
|
|
11797
|
+
addNewOptionsText ? addNewOptionsText : "使用",
|
|
11798
|
+
" \u300C",
|
|
11798
11799
|
noOptionValue.value,
|
|
11799
11800
|
"\u300D"))), renderInput: renderInput
|
|
11800
11801
|
? renderInput
|