@majoo-ui/react 1.57.9-rc.1 → 1.57.9-rc.3

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.
@@ -587,7 +587,7 @@ export declare const SelectItem: import("@stitches/react/types/styled-component"
587
587
  backgroundColor: string;
588
588
  };
589
589
  }>>;
590
- export declare const SelectInputSearch: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement | HTMLButtonElement>>;
590
+ export declare const SelectInputSearch: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
591
591
  export declare type Option = {
592
592
  value: string;
593
593
  name: string;
@@ -713,5 +713,5 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
713
713
  */
714
714
  renderFooter?: () => React.ReactNode;
715
715
  }
716
- declare const InputSelect: React.ForwardRefExoticComponent<InputSelectProps & React.RefAttributes<HTMLInputElement | HTMLButtonElement>>;
716
+ export declare function InputSelect({ option, onChange, value, placeholder, searchPlaceholder, embedSearch, size, disabled, search, iconColor, hideArrowicon, showLeadingIcon, placement, disabledOptions, textSelector, valueSelector, readOnly, isInvalid, noOptionIcon, fetchData, onSearch, isLoading, showTooltip, css, renderFooter, optionCss, ...props }: InputSelectProps): JSX.Element;
717
717
  export default InputSelect;
package/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { useState, useEffect, createContext, useContext, useRef, useCallback, cloneElement, forwardRef, createElement as createElement$2, useLayoutEffect, useReducer, useMemo, memo } from 'react';
2
+ import React__default, { useState, useEffect, createContext, useContext, useRef, useCallback, cloneElement, createElement as createElement$2, forwardRef, useLayoutEffect, useReducer, useMemo, memo } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { createStitches, styled as styled$1 } from '@stitches/react';
5
5
  import { foundations } from '@majoo-ui/core';
@@ -7184,7 +7184,6 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
7184
7184
  props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
7185
7185
  return /*#__PURE__*/React__default.createElement(StyledInput, _extends({
7186
7186
  ref: ref,
7187
- getInputRef: ref,
7188
7187
  placeholder: placeholder,
7189
7188
  value: value,
7190
7189
  size: size,
@@ -9098,7 +9097,7 @@ const SelectInputSearch = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
9098
9097
  }, void 0)]
9099
9098
  }), void 0);
9100
9099
  });
9101
- const InputSelect = /*#__PURE__*/forwardRef((_a, ref) => {
9100
+ function InputSelect(_a) {
9102
9101
  var {
9103
9102
  option,
9104
9103
  onChange,
@@ -9180,7 +9179,7 @@ const InputSelect = /*#__PURE__*/forwardRef((_a, ref) => {
9180
9179
  setItem(generatedOption);
9181
9180
  setOptions(generatedOption);
9182
9181
  }, [option, disabledOptions, valueSelector, textSelector]);
9183
- const debouncedSearch = React.useRef(debounce(query => __awaiter(void 0, void 0, void 0, function* () {
9182
+ const debouncedSearch = React.useRef(debounce(query => __awaiter(this, void 0, void 0, function* () {
9184
9183
  setQuery(query);
9185
9184
  if (onSearch) onSearch(query);
9186
9185
  }), 1000)).current;
@@ -9266,7 +9265,6 @@ const InputSelect = /*#__PURE__*/forwardRef((_a, ref) => {
9266
9265
  }
9267
9266
  }, {
9268
9267
  children: jsx(SelectInputSearch, {
9269
- ref: ref,
9270
9268
  showLeadingIcon: showLeadingIcon,
9271
9269
  showClearIcon: hideArrowicon,
9272
9270
  disabled: disabled,
@@ -9291,7 +9289,6 @@ const InputSelect = /*#__PURE__*/forwardRef((_a, ref) => {
9291
9289
  }), void 0) : jsx(Button$3, Object.assign({}, getToggleButtonProps({
9292
9290
  disabled: disabled || readOnly
9293
9291
  }), {
9294
- ref: ref,
9295
9292
  disabled: disabled,
9296
9293
  size: size,
9297
9294
  readOnly: readOnly,
@@ -9450,7 +9447,7 @@ const InputSelect = /*#__PURE__*/forwardRef((_a, ref) => {
9450
9447
  }), void 0);
9451
9448
  }
9452
9449
  }), void 0);
9453
- });
9450
+ }
9454
9451
 
9455
9452
  var tryToString$3 = tryToString$5;
9456
9453
 
package/index.umd.js CHANGED
@@ -7268,7 +7268,6 @@
7268
7268
  props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
7269
7269
  return /*#__PURE__*/React__default["default"].createElement(StyledInput, _extends({
7270
7270
  ref: ref,
7271
- getInputRef: ref,
7272
7271
  placeholder: placeholder,
7273
7272
  value: value,
7274
7273
  size: size,
@@ -9180,7 +9179,8 @@
9180
9179
  }, void 0)]
9181
9180
  }), void 0);
9182
9181
  });
9183
- var InputSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
9182
+ function InputSelect(_a) {
9183
+ var _this = this;
9184
9184
  var option = _a.option,
9185
9185
  onChange = _a.onChange,
9186
9186
  value = _a.value,
@@ -9294,7 +9294,7 @@
9294
9294
  setOptions(generatedOption);
9295
9295
  }, [option, disabledOptions, valueSelector, textSelector]);
9296
9296
  var debouncedSearch = React__namespace.useRef(debounce__default["default"](function (query) {
9297
- return __awaiter(void 0, void 0, void 0, function () {
9297
+ return __awaiter(_this, void 0, void 0, function () {
9298
9298
  return __generator(this, function (_a) {
9299
9299
  setQuery(query);
9300
9300
  if (onSearch) onSearch(query);
@@ -9389,7 +9389,6 @@
9389
9389
  }
9390
9390
  }, {
9391
9391
  children: jsxRuntime.jsx(SelectInputSearch, {
9392
- ref: ref,
9393
9392
  showLeadingIcon: showLeadingIcon,
9394
9393
  showClearIcon: hideArrowicon,
9395
9394
  disabled: disabled,
@@ -9414,7 +9413,6 @@
9414
9413
  }), void 0) : jsxRuntime.jsx(Button$3, __assign({}, getToggleButtonProps({
9415
9414
  disabled: disabled || readOnly
9416
9415
  }), {
9417
- ref: ref,
9418
9416
  disabled: disabled,
9419
9417
  size: size,
9420
9418
  readOnly: readOnly,
@@ -9577,7 +9575,7 @@
9577
9575
  }), void 0);
9578
9576
  }
9579
9577
  }), void 0);
9580
- });
9578
+ }
9581
9579
 
9582
9580
  var tryToString$3 = tryToString$5;
9583
9581
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.57.9-rc.1",
3
+ "version": "1.57.9-rc.3",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",