glints-aries 4.0.265 → 4.0.267

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.
@@ -15,10 +15,11 @@ export interface CarouselProps {
15
15
  /** sets width of Carousel */
16
16
  width?: string;
17
17
  indicatorPosition?: 'top' | 'bottom' | 'left' | 'right' | 'outer';
18
- indicatorType?: 'dot' | 'line' | 'slider';
19
- /** When to show arrows*/
20
- showArrow?: 'always' | 'hover' | 'never';
18
+ /** Sets indicator type. Default is line and can be `null` to remove the component */
19
+ indicatorType?: 'dot' | 'line' | 'slider' | null;
20
+ /** Sets whether to show arrows */
21
+ showArrows?: boolean;
21
22
  /** When `autoRotate` is `true`, specify milliseconds until next slide shows */
22
23
  duration?: number;
23
24
  }
24
- export declare const Carousel: ({ autoRotate, children, aspectRatio, height, width, indicatorPosition, indicatorType, duration, }: CarouselProps) => JSX.Element;
25
+ export declare const Carousel: ({ autoRotate, children, aspectRatio, height, width, indicatorPosition, indicatorType, duration, showArrows, }: CarouselProps) => JSX.Element;
@@ -14,7 +14,9 @@ export var Carousel = function Carousel(_ref) {
14
14
  _ref$indicatorType = _ref.indicatorType,
15
15
  indicatorType = _ref$indicatorType === void 0 ? 'line' : _ref$indicatorType,
16
16
  _ref$duration = _ref.duration,
17
- duration = _ref$duration === void 0 ? 3000 : _ref$duration;
17
+ duration = _ref$duration === void 0 ? 3000 : _ref$duration,
18
+ _ref$showArrows = _ref.showArrows,
19
+ showArrows = _ref$showArrows === void 0 ? true : _ref$showArrows;
18
20
  var slideRef = useRef(null);
19
21
  var _useState = useState(0),
20
22
  activeIndex = _useState[0],
@@ -61,7 +63,7 @@ export var Carousel = function Carousel(_ref) {
61
63
  updateActiveIndex(activeIndex + 1);
62
64
  }, duration);
63
65
  }
64
- }, [activeIndex, autoRotate, updateActiveIndex]);
66
+ }, [activeIndex, autoRotate, duration, updateActiveIndex]);
65
67
  return /*#__PURE__*/React.createElement(CarouselContainer, {
66
68
  aspectRatio: aspectRatio ? (aspectRatio == null ? void 0 : aspectRatio.width) + "/" + (aspectRatio == null ? void 0 : aspectRatio.height) : null,
67
69
  height: height,
@@ -75,7 +77,7 @@ export var Carousel = function Carousel(_ref) {
75
77
  width: width
76
78
  }, /*#__PURE__*/React.createElement(ItemsContainer, {
77
79
  activeIndex: activeIndex
78
- }, childrenList)), /*#__PURE__*/React.createElement(ArrowsContainer, {
80
+ }, childrenList)), showArrows && /*#__PURE__*/React.createElement(ArrowsContainer, {
79
81
  "data-hidden": hideArrows
80
82
  }, /*#__PURE__*/React.createElement(PreviousArrow, {
81
83
  onClick: handlePreviousClick
@@ -87,7 +89,7 @@ export var Carousel = function Carousel(_ref) {
87
89
  }, /*#__PURE__*/React.createElement(Icon, {
88
90
  name: "ri-arrow-m-right-line",
89
91
  fill: Neutral.B40
90
- }))), /*#__PURE__*/React.createElement(IndicatorsContainer, {
92
+ }))), !!indicatorType && /*#__PURE__*/React.createElement(IndicatorsContainer, {
91
93
  indicatorType: indicatorType,
92
94
  indicatorPosition: indicatorPosition
93
95
  }, /*#__PURE__*/React.createElement("div", null, Array.from(Array(childrenLength).keys()).map(function (n) {
@@ -2,3 +2,4 @@ import { Meta } from '@storybook/react';
2
2
  declare const _default: Meta<import("@storybook/react").Args>;
3
3
  export default _default;
4
4
  export declare const Interactive: any;
5
+ export declare const HideIndicator: any;
@@ -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;
@@ -17,6 +17,7 @@ export var ClearSelected = function ClearSelected(_ref) {
17
17
  style: {
18
18
  cursor: 'pointer'
19
19
  },
20
- onClick: onClearIconClick
20
+ onClick: onClearIconClick,
21
+ className: "clear-icon"
21
22
  }));
22
23
  };
@@ -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
- }, [selectedValue]);
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(_ref5) {
79
- var data = _ref5.data,
80
- args = _objectWithoutPropertiesLoose(_ref5, _excluded3);
81
- var _useState4 = useState(false),
82
- loading = _useState4[0],
83
- setLoading = _useState4[1];
84
- var _useState5 = useState([]),
85
- mockData = _useState5[0],
86
- setMockData = _useState5[1];
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
- selected = _useState7[0],
92
- setSelected = _useState7[1];
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 _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(value) {
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 _ref6.apply(this, arguments);
126
+ return _ref8.apply(this, arguments);
107
127
  };
108
128
  }();
109
129
  var debounceHandleInputChange = debounce(handleInputChange);
110
- var handleSelect = function handleSelect(_ref7) {
111
- var value = _ref7.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 _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
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 _ref8.apply(this, arguments);
162
+ return _ref10.apply(this, arguments);
143
163
  };
144
164
  }();
145
165
  if (inputValue === '') {
@@ -15,10 +15,11 @@ export interface CarouselProps {
15
15
  /** sets width of Carousel */
16
16
  width?: string;
17
17
  indicatorPosition?: 'top' | 'bottom' | 'left' | 'right' | 'outer';
18
- indicatorType?: 'dot' | 'line' | 'slider';
19
- /** When to show arrows*/
20
- showArrow?: 'always' | 'hover' | 'never';
18
+ /** Sets indicator type. Default is line and can be `null` to remove the component */
19
+ indicatorType?: 'dot' | 'line' | 'slider' | null;
20
+ /** Sets whether to show arrows */
21
+ showArrows?: boolean;
21
22
  /** When `autoRotate` is `true`, specify milliseconds until next slide shows */
22
23
  duration?: number;
23
24
  }
24
- export declare const Carousel: ({ autoRotate, children, aspectRatio, height, width, indicatorPosition, indicatorType, duration, }: CarouselProps) => JSX.Element;
25
+ export declare const Carousel: ({ autoRotate, children, aspectRatio, height, width, indicatorPosition, indicatorType, duration, showArrows, }: CarouselProps) => JSX.Element;
@@ -20,7 +20,9 @@ var Carousel = function Carousel(_ref) {
20
20
  _ref$indicatorType = _ref.indicatorType,
21
21
  indicatorType = _ref$indicatorType === void 0 ? 'line' : _ref$indicatorType,
22
22
  _ref$duration = _ref.duration,
23
- duration = _ref$duration === void 0 ? 3000 : _ref$duration;
23
+ duration = _ref$duration === void 0 ? 3000 : _ref$duration,
24
+ _ref$showArrows = _ref.showArrows,
25
+ showArrows = _ref$showArrows === void 0 ? true : _ref$showArrows;
24
26
  var slideRef = (0, _react.useRef)(null);
25
27
  var _useState = (0, _react.useState)(0),
26
28
  activeIndex = _useState[0],
@@ -67,7 +69,7 @@ var Carousel = function Carousel(_ref) {
67
69
  updateActiveIndex(activeIndex + 1);
68
70
  }, duration);
69
71
  }
70
- }, [activeIndex, autoRotate, updateActiveIndex]);
72
+ }, [activeIndex, autoRotate, duration, updateActiveIndex]);
71
73
  return /*#__PURE__*/_react["default"].createElement(_CarouselStyle.CarouselContainer, {
72
74
  aspectRatio: aspectRatio ? (aspectRatio == null ? void 0 : aspectRatio.width) + "/" + (aspectRatio == null ? void 0 : aspectRatio.height) : null,
73
75
  height: height,
@@ -81,7 +83,7 @@ var Carousel = function Carousel(_ref) {
81
83
  width: width
82
84
  }, /*#__PURE__*/_react["default"].createElement(_CarouselStyle.ItemsContainer, {
83
85
  activeIndex: activeIndex
84
- }, childrenList)), /*#__PURE__*/_react["default"].createElement(_CarouselStyle.ArrowsContainer, {
86
+ }, childrenList)), showArrows && /*#__PURE__*/_react["default"].createElement(_CarouselStyle.ArrowsContainer, {
85
87
  "data-hidden": hideArrows
86
88
  }, /*#__PURE__*/_react["default"].createElement(_CarouselStyle.PreviousArrow, {
87
89
  onClick: handlePreviousClick
@@ -93,7 +95,7 @@ var Carousel = function Carousel(_ref) {
93
95
  }, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
94
96
  name: "ri-arrow-m-right-line",
95
97
  fill: _colors.Neutral.B40
96
- }))), /*#__PURE__*/_react["default"].createElement(_CarouselStyle.IndicatorsContainer, {
98
+ }))), !!indicatorType && /*#__PURE__*/_react["default"].createElement(_CarouselStyle.IndicatorsContainer, {
97
99
  indicatorType: indicatorType,
98
100
  indicatorPosition: indicatorPosition
99
101
  }, /*#__PURE__*/_react["default"].createElement("div", null, Array.from(Array(childrenLength).keys()).map(function (n) {
@@ -2,3 +2,4 @@ import { Meta } from '@storybook/react';
2
2
  declare const _default: Meta<import("@storybook/react").Args>;
3
3
  export default _default;
4
4
  export declare const Interactive: any;
5
+ export declare const HideIndicator: any;
@@ -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;
@@ -22,7 +22,8 @@ var ClearSelected = function ClearSelected(_ref) {
22
22
  style: {
23
23
  cursor: 'pointer'
24
24
  },
25
- onClick: onClearIconClick
25
+ onClick: onClearIconClick,
26
+ className: "clear-icon"
26
27
  }));
27
28
  };
28
29
  exports.ClearSelected = ClearSelected;
@@ -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
- }, [selectedValue]);
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(_ref5) {
88
- var data = _ref5.data,
89
- args = (0, _objectWithoutPropertiesLoose2["default"])(_ref5, _excluded3);
90
- var _useState4 = (0, _react.useState)(false),
91
- loading = _useState4[0],
92
- setLoading = _useState4[1];
93
- var _useState5 = (0, _react.useState)([]),
94
- mockData = _useState5[0],
95
- setMockData = _useState5[1];
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
- selected = _useState7[0],
101
- setSelected = _useState7[1];
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 _ref6 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(value) {
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 _ref6.apply(this, arguments);
136
+ return _ref8.apply(this, arguments);
116
137
  };
117
138
  }();
118
139
  var debounceHandleInputChange = (0, _debounce.debounce)(handleInputChange);
119
- var handleSelect = function handleSelect(_ref7) {
120
- var value = _ref7.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 _ref8 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
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 _ref8.apply(this, arguments);
172
+ return _ref10.apply(this, arguments);
152
173
  };
153
174
  }();
154
175
  if (inputValue === '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.265",
3
+ "version": "4.0.267",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",