@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.esm.js
CHANGED
|
@@ -11766,7 +11766,7 @@ var useStyles$f = makeStyles$1(function (theme) { return ({
|
|
|
11766
11766
|
var AutoComplete = function (props) {
|
|
11767
11767
|
var _a = useState([]), noOptionValue = _a[0], setNoOptionValue = _a[1];
|
|
11768
11768
|
var _b = useState(false), typeNoOptionValue = _b[0], setTypeNoOptionValue = _b[1];
|
|
11769
|
-
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"]);
|
|
11769
|
+
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"]);
|
|
11770
11770
|
var styleProps = {
|
|
11771
11771
|
width: width,
|
|
11772
11772
|
optionsMaxHeight: optionsMaxHeight,
|
|
@@ -11784,12 +11784,13 @@ var AutoComplete = function (props) {
|
|
|
11784
11784
|
option: classes.option,
|
|
11785
11785
|
popperDisablePortal: classes.popperDisablePortal,
|
|
11786
11786
|
listbox: classes.listbox,
|
|
11787
|
-
}, open: true, options: options, renderOption: renderOption, getOptionLabel: getOptionLabel, noOptionsText: disableFreeInput ? ("無此選項") :
|
|
11788
|
-
"
|
|
11787
|
+
}, open: true, options: options, renderOption: renderOption, getOptionLabel: getOptionLabel, noOptionsText: disableFreeInput ? ("無此選項") : (React__default.createElement("div", { className: classes.noOptionValue },
|
|
11788
|
+
noOptionsText ? noOptionsText : "無此選項",
|
|
11789
11789
|
React__default.createElement("div", { className: classes.linkText, onMouseDown: function () {
|
|
11790
11790
|
handleNoOptionsValueChange(noOptionValue.value);
|
|
11791
11791
|
} },
|
|
11792
|
-
|
|
11792
|
+
addNewOptionsText ? addNewOptionsText : "使用",
|
|
11793
|
+
" \u300C",
|
|
11793
11794
|
noOptionValue.value,
|
|
11794
11795
|
"\u300D"))), renderInput: renderInput
|
|
11795
11796
|
? renderInput
|