glints-aries 4.0.264 → 4.0.266
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/es/@next/Carousel/Carousel.d.ts +3 -1
- package/es/@next/Carousel/Carousel.js +4 -2
- package/es/@next/Select/Select.stories.d.ts +1 -0
- package/es/@next/Select/components/SearchableSelectInput/ClearSelected.js +2 -1
- package/es/@next/Select/components/SearchableSelectInput/SearchableSelectInput.js +12 -1
- package/es/@next/Select/selectStoryHelper/SearchableSingleSelect.d.ts +1 -0
- package/es/@next/Select/selectStoryHelper/SearchableSingleSelect.js +41 -21
- package/lib/@next/Carousel/Carousel.d.ts +3 -1
- package/lib/@next/Carousel/Carousel.js +4 -2
- package/lib/@next/Select/Select.stories.d.ts +1 -0
- package/lib/@next/Select/components/SearchableSelectInput/ClearSelected.js +2 -1
- package/lib/@next/Select/components/SearchableSelectInput/SearchableSelectInput.js +12 -1
- package/lib/@next/Select/selectStoryHelper/SearchableSingleSelect.d.ts +1 -0
- package/lib/@next/Select/selectStoryHelper/SearchableSingleSelect.js +43 -22
- package/package.json +1 -1
|
@@ -18,5 +18,7 @@ export interface CarouselProps {
|
|
|
18
18
|
indicatorType?: 'dot' | 'line' | 'slider';
|
|
19
19
|
/** When to show arrows*/
|
|
20
20
|
showArrow?: 'always' | 'hover' | 'never';
|
|
21
|
+
/** When `autoRotate` is `true`, specify milliseconds until next slide shows */
|
|
22
|
+
duration?: number;
|
|
21
23
|
}
|
|
22
|
-
export declare const Carousel: ({ autoRotate, children, aspectRatio, height, width, indicatorPosition, indicatorType, }: CarouselProps) => JSX.Element;
|
|
24
|
+
export declare const Carousel: ({ autoRotate, children, aspectRatio, height, width, indicatorPosition, indicatorType, duration, }: CarouselProps) => JSX.Element;
|
|
@@ -12,7 +12,9 @@ export var Carousel = function Carousel(_ref) {
|
|
|
12
12
|
_ref$indicatorPositio = _ref.indicatorPosition,
|
|
13
13
|
indicatorPosition = _ref$indicatorPositio === void 0 ? 'outer' : _ref$indicatorPositio,
|
|
14
14
|
_ref$indicatorType = _ref.indicatorType,
|
|
15
|
-
indicatorType = _ref$indicatorType === void 0 ? 'line' : _ref$indicatorType
|
|
15
|
+
indicatorType = _ref$indicatorType === void 0 ? 'line' : _ref$indicatorType,
|
|
16
|
+
_ref$duration = _ref.duration,
|
|
17
|
+
duration = _ref$duration === void 0 ? 3000 : _ref$duration;
|
|
16
18
|
var slideRef = useRef(null);
|
|
17
19
|
var _useState = useState(0),
|
|
18
20
|
activeIndex = _useState[0],
|
|
@@ -57,7 +59,7 @@ export var Carousel = function Carousel(_ref) {
|
|
|
57
59
|
if (autoRotate) {
|
|
58
60
|
setTimeout(function () {
|
|
59
61
|
updateActiveIndex(activeIndex + 1);
|
|
60
|
-
},
|
|
62
|
+
}, duration);
|
|
61
63
|
}
|
|
62
64
|
}, [activeIndex, autoRotate, updateActiveIndex]);
|
|
63
65
|
return /*#__PURE__*/React.createElement(CarouselContainer, {
|
|
@@ -8,6 +8,7 @@ export declare const NonSearchableDisabled: any;
|
|
|
8
8
|
export declare const SearchableMultiSelect: any;
|
|
9
9
|
export declare const SearchableSingleSelect: any;
|
|
10
10
|
export declare const SearchableSingleSelectWithOverflowingInputState: any;
|
|
11
|
+
export declare const SearchableSingleSelectWithInitialValue: any;
|
|
11
12
|
export declare const SearchableSingleWithInputState: any;
|
|
12
13
|
export declare const AsyncSearchableSingleWithInputState: any;
|
|
13
14
|
export declare const MultiSelectScrollable: any;
|
|
@@ -93,13 +93,24 @@ export var SearchableSelectInput = /*#__PURE__*/forwardRef(function SearchableSe
|
|
|
93
93
|
}
|
|
94
94
|
return;
|
|
95
95
|
}, [isSelectedClicked, showInput]);
|
|
96
|
+
var handleUpdateSearchableSelectState = React.useRef(updateSearchableSelectState);
|
|
96
97
|
useEffect(function () {
|
|
97
98
|
if (selectedValue) {
|
|
98
99
|
setShowClear(true);
|
|
100
|
+
handleUpdateSearchableSelectState.current({
|
|
101
|
+
showSelected: true,
|
|
102
|
+
showInput: false,
|
|
103
|
+
showPlaceholder: false
|
|
104
|
+
});
|
|
99
105
|
return;
|
|
100
106
|
}
|
|
101
107
|
setShowClear(false);
|
|
102
|
-
|
|
108
|
+
handleUpdateSearchableSelectState.current({
|
|
109
|
+
showSelected: false,
|
|
110
|
+
showInput: true,
|
|
111
|
+
showPlaceholder: true
|
|
112
|
+
});
|
|
113
|
+
}, [selectedValue, handleUpdateSearchableSelectState]);
|
|
103
114
|
return /*#__PURE__*/React.createElement(StyledContainer, {
|
|
104
115
|
className: "select-input-container",
|
|
105
116
|
ref: ref,
|
|
@@ -5,5 +5,6 @@ interface SearchableSingleSelectProps {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const SearchableSingle: ({ data, ...args }: SearchableSingleSelectProps) => JSX.Element;
|
|
7
7
|
export declare const SearchableSingleWithInputState: ({ data, ...args }: SearchableSingleSelectProps) => JSX.Element;
|
|
8
|
+
export declare const SearchableSingleWithInitialValue: ({ data, ...args }: SearchableSingleSelectProps) => JSX.Element;
|
|
8
9
|
export declare const AsyncSearchableSingleWithInputState: ({ data, ...args }: SearchableSingleSelectProps) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -3,7 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
4
|
var _excluded = ["data"],
|
|
5
5
|
_excluded2 = ["data"],
|
|
6
|
-
_excluded3 = ["data"]
|
|
6
|
+
_excluded3 = ["data"],
|
|
7
|
+
_excluded4 = ["data"];
|
|
7
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
9
|
import React, { useEffect, useState } from 'react';
|
|
9
10
|
import { debounce } from '../../../helpers/debounce';
|
|
@@ -57,6 +58,25 @@ export var SearchableSingleWithInputState = function SearchableSingleWithInputSt
|
|
|
57
58
|
label: "Label"
|
|
58
59
|
}));
|
|
59
60
|
};
|
|
61
|
+
export var SearchableSingleWithInitialValue = function SearchableSingleWithInitialValue(_ref5) {
|
|
62
|
+
var data = _ref5.data,
|
|
63
|
+
args = _objectWithoutPropertiesLoose(_ref5, _excluded3);
|
|
64
|
+
var _useState4 = useState('Singapore'),
|
|
65
|
+
selected = _useState4[0],
|
|
66
|
+
setSelected = _useState4[1];
|
|
67
|
+
var handleSelect = function handleSelect(_ref6) {
|
|
68
|
+
var value = _ref6.value;
|
|
69
|
+
setSelected(value);
|
|
70
|
+
};
|
|
71
|
+
return /*#__PURE__*/React.createElement(Select, _extends({}, args, {
|
|
72
|
+
onSelect: handleSelect,
|
|
73
|
+
options: data,
|
|
74
|
+
selectedValues: [selected],
|
|
75
|
+
width: "600px",
|
|
76
|
+
searchable: true,
|
|
77
|
+
label: "Label"
|
|
78
|
+
}));
|
|
79
|
+
};
|
|
60
80
|
var filterOptions = function filterOptions(str, data) {
|
|
61
81
|
if (str === '') {
|
|
62
82
|
return data;
|
|
@@ -75,23 +95,23 @@ var mockAsyncOptions = function mockAsyncOptions(str, data) {
|
|
|
75
95
|
}, 1000);
|
|
76
96
|
});
|
|
77
97
|
};
|
|
78
|
-
export var AsyncSearchableSingleWithInputState = function AsyncSearchableSingleWithInputState(
|
|
79
|
-
var data =
|
|
80
|
-
args = _objectWithoutPropertiesLoose(
|
|
81
|
-
var
|
|
82
|
-
loading =
|
|
83
|
-
setLoading =
|
|
84
|
-
var
|
|
85
|
-
mockData =
|
|
86
|
-
setMockData =
|
|
87
|
-
var _useState6 = useState(''),
|
|
88
|
-
inputValue = _useState6[0],
|
|
89
|
-
setInputValue = _useState6[1];
|
|
98
|
+
export var AsyncSearchableSingleWithInputState = function AsyncSearchableSingleWithInputState(_ref7) {
|
|
99
|
+
var data = _ref7.data,
|
|
100
|
+
args = _objectWithoutPropertiesLoose(_ref7, _excluded4);
|
|
101
|
+
var _useState5 = useState(false),
|
|
102
|
+
loading = _useState5[0],
|
|
103
|
+
setLoading = _useState5[1];
|
|
104
|
+
var _useState6 = useState([]),
|
|
105
|
+
mockData = _useState6[0],
|
|
106
|
+
setMockData = _useState6[1];
|
|
90
107
|
var _useState7 = useState(''),
|
|
91
|
-
|
|
92
|
-
|
|
108
|
+
inputValue = _useState7[0],
|
|
109
|
+
setInputValue = _useState7[1];
|
|
110
|
+
var _useState8 = useState(''),
|
|
111
|
+
selected = _useState8[0],
|
|
112
|
+
setSelected = _useState8[1];
|
|
93
113
|
var handleInputChange = /*#__PURE__*/function () {
|
|
94
|
-
var
|
|
114
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(value) {
|
|
95
115
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
96
116
|
while (1) switch (_context.prev = _context.next) {
|
|
97
117
|
case 0:
|
|
@@ -103,17 +123,17 @@ export var AsyncSearchableSingleWithInputState = function AsyncSearchableSingleW
|
|
|
103
123
|
}, _callee);
|
|
104
124
|
}));
|
|
105
125
|
return function handleInputChange(_x) {
|
|
106
|
-
return
|
|
126
|
+
return _ref8.apply(this, arguments);
|
|
107
127
|
};
|
|
108
128
|
}();
|
|
109
129
|
var debounceHandleInputChange = debounce(handleInputChange);
|
|
110
|
-
var handleSelect = function handleSelect(
|
|
111
|
-
var value =
|
|
130
|
+
var handleSelect = function handleSelect(_ref9) {
|
|
131
|
+
var value = _ref9.value;
|
|
112
132
|
setSelected(value);
|
|
113
133
|
};
|
|
114
134
|
useEffect(function () {
|
|
115
135
|
var fetchMockData = /*#__PURE__*/function () {
|
|
116
|
-
var
|
|
136
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
117
137
|
var response;
|
|
118
138
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
119
139
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -139,7 +159,7 @@ export var AsyncSearchableSingleWithInputState = function AsyncSearchableSingleW
|
|
|
139
159
|
}, _callee2, null, [[0, 9]]);
|
|
140
160
|
}));
|
|
141
161
|
return function fetchMockData() {
|
|
142
|
-
return
|
|
162
|
+
return _ref10.apply(this, arguments);
|
|
143
163
|
};
|
|
144
164
|
}();
|
|
145
165
|
if (inputValue === '') {
|
|
@@ -18,5 +18,7 @@ export interface CarouselProps {
|
|
|
18
18
|
indicatorType?: 'dot' | 'line' | 'slider';
|
|
19
19
|
/** When to show arrows*/
|
|
20
20
|
showArrow?: 'always' | 'hover' | 'never';
|
|
21
|
+
/** When `autoRotate` is `true`, specify milliseconds until next slide shows */
|
|
22
|
+
duration?: number;
|
|
21
23
|
}
|
|
22
|
-
export declare const Carousel: ({ autoRotate, children, aspectRatio, height, width, indicatorPosition, indicatorType, }: CarouselProps) => JSX.Element;
|
|
24
|
+
export declare const Carousel: ({ autoRotate, children, aspectRatio, height, width, indicatorPosition, indicatorType, duration, }: CarouselProps) => JSX.Element;
|
|
@@ -18,7 +18,9 @@ var Carousel = function Carousel(_ref) {
|
|
|
18
18
|
_ref$indicatorPositio = _ref.indicatorPosition,
|
|
19
19
|
indicatorPosition = _ref$indicatorPositio === void 0 ? 'outer' : _ref$indicatorPositio,
|
|
20
20
|
_ref$indicatorType = _ref.indicatorType,
|
|
21
|
-
indicatorType = _ref$indicatorType === void 0 ? 'line' : _ref$indicatorType
|
|
21
|
+
indicatorType = _ref$indicatorType === void 0 ? 'line' : _ref$indicatorType,
|
|
22
|
+
_ref$duration = _ref.duration,
|
|
23
|
+
duration = _ref$duration === void 0 ? 3000 : _ref$duration;
|
|
22
24
|
var slideRef = (0, _react.useRef)(null);
|
|
23
25
|
var _useState = (0, _react.useState)(0),
|
|
24
26
|
activeIndex = _useState[0],
|
|
@@ -63,7 +65,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
63
65
|
if (autoRotate) {
|
|
64
66
|
setTimeout(function () {
|
|
65
67
|
updateActiveIndex(activeIndex + 1);
|
|
66
|
-
},
|
|
68
|
+
}, duration);
|
|
67
69
|
}
|
|
68
70
|
}, [activeIndex, autoRotate, updateActiveIndex]);
|
|
69
71
|
return /*#__PURE__*/_react["default"].createElement(_CarouselStyle.CarouselContainer, {
|
|
@@ -8,6 +8,7 @@ export declare const NonSearchableDisabled: any;
|
|
|
8
8
|
export declare const SearchableMultiSelect: any;
|
|
9
9
|
export declare const SearchableSingleSelect: any;
|
|
10
10
|
export declare const SearchableSingleSelectWithOverflowingInputState: any;
|
|
11
|
+
export declare const SearchableSingleSelectWithInitialValue: any;
|
|
11
12
|
export declare const SearchableSingleWithInputState: any;
|
|
12
13
|
export declare const AsyncSearchableSingleWithInputState: any;
|
|
13
14
|
export declare const MultiSelectScrollable: any;
|
|
@@ -100,13 +100,24 @@ var SearchableSelectInput = /*#__PURE__*/(0, _react.forwardRef)(function Searcha
|
|
|
100
100
|
}
|
|
101
101
|
return;
|
|
102
102
|
}, [isSelectedClicked, showInput]);
|
|
103
|
+
var handleUpdateSearchableSelectState = _react["default"].useRef(updateSearchableSelectState);
|
|
103
104
|
(0, _react.useEffect)(function () {
|
|
104
105
|
if (selectedValue) {
|
|
105
106
|
setShowClear(true);
|
|
107
|
+
handleUpdateSearchableSelectState.current({
|
|
108
|
+
showSelected: true,
|
|
109
|
+
showInput: false,
|
|
110
|
+
showPlaceholder: false
|
|
111
|
+
});
|
|
106
112
|
return;
|
|
107
113
|
}
|
|
108
114
|
setShowClear(false);
|
|
109
|
-
|
|
115
|
+
handleUpdateSearchableSelectState.current({
|
|
116
|
+
showSelected: false,
|
|
117
|
+
showInput: true,
|
|
118
|
+
showPlaceholder: true
|
|
119
|
+
});
|
|
120
|
+
}, [selectedValue, handleUpdateSearchableSelectState]);
|
|
110
121
|
return /*#__PURE__*/_react["default"].createElement(_SearchableSelectInputStyle.StyledContainer, {
|
|
111
122
|
className: "select-input-container",
|
|
112
123
|
ref: ref,
|
|
@@ -5,5 +5,6 @@ interface SearchableSingleSelectProps {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const SearchableSingle: ({ data, ...args }: SearchableSingleSelectProps) => JSX.Element;
|
|
7
7
|
export declare const SearchableSingleWithInputState: ({ data, ...args }: SearchableSingleSelectProps) => JSX.Element;
|
|
8
|
+
export declare const SearchableSingleWithInitialValue: ({ data, ...args }: SearchableSingleSelectProps) => JSX.Element;
|
|
8
9
|
export declare const AsyncSearchableSingleWithInputState: ({ data, ...args }: SearchableSingleSelectProps) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.SearchableSingleWithInputState = exports.SearchableSingle = exports.AsyncSearchableSingleWithInputState = void 0;
|
|
5
|
+
exports.SearchableSingleWithInputState = exports.SearchableSingleWithInitialValue = exports.SearchableSingle = exports.AsyncSearchableSingleWithInputState = void 0;
|
|
6
6
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
7
7
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
@@ -12,7 +12,8 @@ var _debounce = require("../../../helpers/debounce");
|
|
|
12
12
|
var _Select = require("../Select");
|
|
13
13
|
var _excluded = ["data"],
|
|
14
14
|
_excluded2 = ["data"],
|
|
15
|
-
_excluded3 = ["data"]
|
|
15
|
+
_excluded3 = ["data"],
|
|
16
|
+
_excluded4 = ["data"];
|
|
16
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
19
|
var SearchableSingle = function SearchableSingle(_ref) {
|
|
@@ -66,6 +67,26 @@ var SearchableSingleWithInputState = function SearchableSingleWithInputState(_re
|
|
|
66
67
|
}));
|
|
67
68
|
};
|
|
68
69
|
exports.SearchableSingleWithInputState = SearchableSingleWithInputState;
|
|
70
|
+
var SearchableSingleWithInitialValue = function SearchableSingleWithInitialValue(_ref5) {
|
|
71
|
+
var data = _ref5.data,
|
|
72
|
+
args = (0, _objectWithoutPropertiesLoose2["default"])(_ref5, _excluded3);
|
|
73
|
+
var _useState4 = (0, _react.useState)('Singapore'),
|
|
74
|
+
selected = _useState4[0],
|
|
75
|
+
setSelected = _useState4[1];
|
|
76
|
+
var handleSelect = function handleSelect(_ref6) {
|
|
77
|
+
var value = _ref6.value;
|
|
78
|
+
setSelected(value);
|
|
79
|
+
};
|
|
80
|
+
return /*#__PURE__*/_react["default"].createElement(_Select.Select, (0, _extends2["default"])({}, args, {
|
|
81
|
+
onSelect: handleSelect,
|
|
82
|
+
options: data,
|
|
83
|
+
selectedValues: [selected],
|
|
84
|
+
width: "600px",
|
|
85
|
+
searchable: true,
|
|
86
|
+
label: "Label"
|
|
87
|
+
}));
|
|
88
|
+
};
|
|
89
|
+
exports.SearchableSingleWithInitialValue = SearchableSingleWithInitialValue;
|
|
69
90
|
var filterOptions = function filterOptions(str, data) {
|
|
70
91
|
if (str === '') {
|
|
71
92
|
return data;
|
|
@@ -84,23 +105,23 @@ var mockAsyncOptions = function mockAsyncOptions(str, data) {
|
|
|
84
105
|
}, 1000);
|
|
85
106
|
});
|
|
86
107
|
};
|
|
87
|
-
var AsyncSearchableSingleWithInputState = function AsyncSearchableSingleWithInputState(
|
|
88
|
-
var data =
|
|
89
|
-
args = (0, _objectWithoutPropertiesLoose2["default"])(
|
|
90
|
-
var
|
|
91
|
-
loading =
|
|
92
|
-
setLoading =
|
|
93
|
-
var
|
|
94
|
-
mockData =
|
|
95
|
-
setMockData =
|
|
96
|
-
var _useState6 = (0, _react.useState)(''),
|
|
97
|
-
inputValue = _useState6[0],
|
|
98
|
-
setInputValue = _useState6[1];
|
|
108
|
+
var AsyncSearchableSingleWithInputState = function AsyncSearchableSingleWithInputState(_ref7) {
|
|
109
|
+
var data = _ref7.data,
|
|
110
|
+
args = (0, _objectWithoutPropertiesLoose2["default"])(_ref7, _excluded4);
|
|
111
|
+
var _useState5 = (0, _react.useState)(false),
|
|
112
|
+
loading = _useState5[0],
|
|
113
|
+
setLoading = _useState5[1];
|
|
114
|
+
var _useState6 = (0, _react.useState)([]),
|
|
115
|
+
mockData = _useState6[0],
|
|
116
|
+
setMockData = _useState6[1];
|
|
99
117
|
var _useState7 = (0, _react.useState)(''),
|
|
100
|
-
|
|
101
|
-
|
|
118
|
+
inputValue = _useState7[0],
|
|
119
|
+
setInputValue = _useState7[1];
|
|
120
|
+
var _useState8 = (0, _react.useState)(''),
|
|
121
|
+
selected = _useState8[0],
|
|
122
|
+
setSelected = _useState8[1];
|
|
102
123
|
var handleInputChange = /*#__PURE__*/function () {
|
|
103
|
-
var
|
|
124
|
+
var _ref8 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(value) {
|
|
104
125
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
105
126
|
while (1) switch (_context.prev = _context.next) {
|
|
106
127
|
case 0:
|
|
@@ -112,17 +133,17 @@ var AsyncSearchableSingleWithInputState = function AsyncSearchableSingleWithInpu
|
|
|
112
133
|
}, _callee);
|
|
113
134
|
}));
|
|
114
135
|
return function handleInputChange(_x) {
|
|
115
|
-
return
|
|
136
|
+
return _ref8.apply(this, arguments);
|
|
116
137
|
};
|
|
117
138
|
}();
|
|
118
139
|
var debounceHandleInputChange = (0, _debounce.debounce)(handleInputChange);
|
|
119
|
-
var handleSelect = function handleSelect(
|
|
120
|
-
var value =
|
|
140
|
+
var handleSelect = function handleSelect(_ref9) {
|
|
141
|
+
var value = _ref9.value;
|
|
121
142
|
setSelected(value);
|
|
122
143
|
};
|
|
123
144
|
(0, _react.useEffect)(function () {
|
|
124
145
|
var fetchMockData = /*#__PURE__*/function () {
|
|
125
|
-
var
|
|
146
|
+
var _ref10 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
126
147
|
var response;
|
|
127
148
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
128
149
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -148,7 +169,7 @@ var AsyncSearchableSingleWithInputState = function AsyncSearchableSingleWithInpu
|
|
|
148
169
|
}, _callee2, null, [[0, 9]]);
|
|
149
170
|
}));
|
|
150
171
|
return function fetchMockData() {
|
|
151
|
-
return
|
|
172
|
+
return _ref10.apply(this, arguments);
|
|
152
173
|
};
|
|
153
174
|
}();
|
|
154
175
|
if (inputValue === '') {
|