@comet/admin-react-select 8.0.0-canary-20240731111743 → 8.0.0-canary-20240910091753

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +1,19 @@
1
- import * as React from "react";
1
+ import { Component } from "react";
2
2
  import { FieldRenderProps } from "react-final-form";
3
3
  import { OptionTypeBase } from "react-select";
4
4
  import { Props as ReactSelectAsyncProps } from "react-select/async";
5
5
  import { Props as ReactSelectProps } from "react-select/base";
6
6
  import { Props as ReactSelectCreatableProps } from "react-select/creatable";
7
- export declare class FinalFormReactSelect<OptionType extends OptionTypeBase> extends React.Component<FieldRenderProps<OptionType | null, HTMLElement> & ReactSelectProps<OptionType>> {
7
+ export declare class FinalFormReactSelect<OptionType extends OptionTypeBase> extends Component<FieldRenderProps<OptionType | null, HTMLElement> & ReactSelectProps<OptionType>> {
8
8
  render(): JSX.Element;
9
9
  }
10
- export declare class FinalFormReactSelectAsync<OptionType extends OptionTypeBase, IsMulti extends boolean> extends React.Component<FieldRenderProps<OptionType | null, HTMLElement> & ReactSelectAsyncProps<OptionType, IsMulti>> {
10
+ export declare class FinalFormReactSelectAsync<OptionType extends OptionTypeBase, IsMulti extends boolean> extends Component<FieldRenderProps<OptionType | null, HTMLElement> & ReactSelectAsyncProps<OptionType, IsMulti>> {
11
11
  render(): JSX.Element;
12
12
  }
13
- export declare class FinalFormReactSelectCreatable<OptionType extends OptionTypeBase, IsMulti extends boolean> extends React.Component<FieldRenderProps<OptionType | null, HTMLElement> & ReactSelectCreatableProps<OptionType, IsMulti>> {
13
+ export declare class FinalFormReactSelectCreatable<OptionType extends OptionTypeBase, IsMulti extends boolean> extends Component<FieldRenderProps<OptionType | null, HTMLElement> & ReactSelectCreatableProps<OptionType, IsMulti>> {
14
14
  render(): JSX.Element;
15
15
  }
16
- export declare class FinalFormReactSelectAsyncCreatable<OptionType extends OptionTypeBase, IsMulti extends boolean> extends React.Component<FieldRenderProps<OptionType | null, HTMLElement> & ReactSelectCreatableProps<OptionType, false> & ReactSelectAsyncProps<OptionType, IsMulti>> {
16
+ export declare class FinalFormReactSelectAsyncCreatable<OptionType extends OptionTypeBase, IsMulti extends boolean> extends Component<FieldRenderProps<OptionType | null, HTMLElement> & ReactSelectCreatableProps<OptionType, false> & ReactSelectAsyncProps<OptionType, IsMulti>> {
17
17
  render(): JSX.Element;
18
18
  }
19
19
  //# sourceMappingURL=FinalFormReactSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FinalFormReactSelect.d.ts","sourceRoot":"","sources":["../src/FinalFormReactSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,IAAI,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,KAAK,IAAI,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAU5E,qBAAa,oBAAoB,CAAC,UAAU,SAAS,cAAc,CAAE,SAAQ,KAAK,CAAC,SAAS,CACxF,gBAAgB,CAAC,UAAU,GAAG,IAAI,EAAE,WAAW,CAAC,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAClF;IACU,MAAM;CAIhB;AACD,qBAAa,yBAAyB,CAAC,UAAU,SAAS,cAAc,EAAE,OAAO,SAAS,OAAO,CAAE,SAAQ,KAAK,CAAC,SAAS,CACtH,gBAAgB,CAAC,UAAU,GAAG,IAAI,EAAE,WAAW,CAAC,GAAG,qBAAqB,CAAC,UAAU,EAAE,OAAO,CAAC,CAChG;IACU,MAAM;CAKhB;AACD,qBAAa,6BAA6B,CAAC,UAAU,SAAS,cAAc,EAAE,OAAO,SAAS,OAAO,CAAE,SAAQ,KAAK,CAAC,SAAS,CAC1H,gBAAgB,CAAC,UAAU,GAAG,IAAI,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EAAE,OAAO,SAAS,OAAO,CAAE,SAAQ,SAAS,CACpH,gBAAgB,CAAC,UAAU,GAAG,IAAI,EAAE,WAAW,CAAC,GAAG,yBAAyB,CAAC,UAAU,EAAE,OAAO,CAAC,CACpG;IACU,MAAM;CAKhB;AACD,qBAAa,kCAAkC,CAAC,UAAU,SAAS,cAAc,EAAE,OAAO,SAAS,OAAO,CAAE,SAAQ,SAAS,CACzH,gBAAgB,CAAC,UAAU,GAAG,IAAI,EAAE,WAAW,CAAC,GAAG,yBAAyB,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,qBAAqB,CAAC,UAAU,EAAE,OAAO,CAAC,CAC/I;IACU,MAAM;CAIhB"}
@@ -5,15 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.FinalFormReactSelectCreatable = exports.FinalFormReactSelectAsyncCreatable = exports.FinalFormReactSelectAsync = exports.FinalFormReactSelect = void 0;
8
- var React = _interopRequireWildcard(require("react"));
8
+ var _react = require("react");
9
9
  var _ReactSelect = require("./ReactSelect");
10
+ var _jsxRuntime = require("react/jsx-runtime");
10
11
  var _excluded = ["input", "meta"],
11
12
  _excluded2 = ["input", "meta"],
12
13
  _excluded3 = ["input", "meta"],
13
14
  _excluded4 = ["input", "meta"];
14
- 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); }
15
- 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; }
16
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
18
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
18
19
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -29,8 +30,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
29
30
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
30
31
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
31
32
  // tslint:disable:max-classes-per-file
32
- var FinalFormReactSelect = /*#__PURE__*/function (_React$Component) {
33
- _inherits(FinalFormReactSelect, _React$Component);
33
+ var FinalFormReactSelect = /*#__PURE__*/function (_Component) {
34
+ _inherits(FinalFormReactSelect, _Component);
34
35
  var _super = _createSuper(FinalFormReactSelect);
35
36
  function FinalFormReactSelect() {
36
37
  _classCallCheck(this, FinalFormReactSelect);
@@ -43,14 +44,14 @@ var FinalFormReactSelect = /*#__PURE__*/function (_React$Component) {
43
44
  input = _this$props.input,
44
45
  meta = _this$props.meta,
45
46
  rest = _objectWithoutProperties(_this$props, _excluded);
46
- return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelect, _extends({}, input, rest));
47
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactSelect.ReactSelect, _objectSpread(_objectSpread({}, input), rest));
47
48
  }
48
49
  }]);
49
50
  return FinalFormReactSelect;
50
- }(React.Component);
51
+ }(_react.Component);
51
52
  exports.FinalFormReactSelect = FinalFormReactSelect;
52
- var FinalFormReactSelectAsync = /*#__PURE__*/function (_React$Component2) {
53
- _inherits(FinalFormReactSelectAsync, _React$Component2);
53
+ var FinalFormReactSelectAsync = /*#__PURE__*/function (_Component2) {
54
+ _inherits(FinalFormReactSelectAsync, _Component2);
54
55
  var _super2 = _createSuper(FinalFormReactSelectAsync);
55
56
  function FinalFormReactSelectAsync() {
56
57
  _classCallCheck(this, FinalFormReactSelectAsync);
@@ -63,14 +64,14 @@ var FinalFormReactSelectAsync = /*#__PURE__*/function (_React$Component2) {
63
64
  input = _this$props2.input,
64
65
  meta = _this$props2.meta,
65
66
  rest = _objectWithoutProperties(_this$props2, _excluded2);
66
- return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectAsync, _extends({}, input, rest));
67
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactSelect.ReactSelectAsync, _objectSpread(_objectSpread({}, input), rest));
67
68
  }
68
69
  }]);
69
70
  return FinalFormReactSelectAsync;
70
- }(React.Component);
71
+ }(_react.Component);
71
72
  exports.FinalFormReactSelectAsync = FinalFormReactSelectAsync;
72
- var FinalFormReactSelectCreatable = /*#__PURE__*/function (_React$Component3) {
73
- _inherits(FinalFormReactSelectCreatable, _React$Component3);
73
+ var FinalFormReactSelectCreatable = /*#__PURE__*/function (_Component3) {
74
+ _inherits(FinalFormReactSelectCreatable, _Component3);
74
75
  var _super3 = _createSuper(FinalFormReactSelectCreatable);
75
76
  function FinalFormReactSelectCreatable() {
76
77
  _classCallCheck(this, FinalFormReactSelectCreatable);
@@ -83,14 +84,14 @@ var FinalFormReactSelectCreatable = /*#__PURE__*/function (_React$Component3) {
83
84
  input = _this$props3.input,
84
85
  meta = _this$props3.meta,
85
86
  rest = _objectWithoutProperties(_this$props3, _excluded3);
86
- return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectCreatable, _extends({}, input, rest));
87
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactSelect.ReactSelectCreatable, _objectSpread(_objectSpread({}, input), rest));
87
88
  }
88
89
  }]);
89
90
  return FinalFormReactSelectCreatable;
90
- }(React.Component);
91
+ }(_react.Component);
91
92
  exports.FinalFormReactSelectCreatable = FinalFormReactSelectCreatable;
92
- var FinalFormReactSelectAsyncCreatable = /*#__PURE__*/function (_React$Component4) {
93
- _inherits(FinalFormReactSelectAsyncCreatable, _React$Component4);
93
+ var FinalFormReactSelectAsyncCreatable = /*#__PURE__*/function (_Component4) {
94
+ _inherits(FinalFormReactSelectAsyncCreatable, _Component4);
94
95
  var _super4 = _createSuper(FinalFormReactSelectAsyncCreatable);
95
96
  function FinalFormReactSelectAsyncCreatable() {
96
97
  _classCallCheck(this, FinalFormReactSelectAsyncCreatable);
@@ -103,9 +104,9 @@ var FinalFormReactSelectAsyncCreatable = /*#__PURE__*/function (_React$Component
103
104
  input = _this$props4.input,
104
105
  meta = _this$props4.meta,
105
106
  rest = _objectWithoutProperties(_this$props4, _excluded4);
106
- return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectAsyncCreatable, _extends({}, input, rest));
107
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactSelect.ReactSelectAsyncCreatable, _objectSpread(_objectSpread({}, input), rest));
107
108
  }
108
109
  }]);
109
110
  return FinalFormReactSelectAsyncCreatable;
110
- }(React.Component);
111
+ }(_react.Component);
111
112
  exports.FinalFormReactSelectAsyncCreatable = FinalFormReactSelectAsyncCreatable;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { Component } from "react";
2
2
  import { FieldRenderProps } from "react-final-form";
3
3
  import { Props as ReactSelectProps } from "react-select/base";
4
4
  import { OptionsType } from "react-select/src/types";
@@ -9,7 +9,7 @@ interface IOptionType {
9
9
  interface IProps extends FieldRenderProps<string, HTMLElement>, ReactSelectProps<IOptionType> {
10
10
  options: OptionsType<IOptionType>;
11
11
  }
12
- export declare class FinalFormReactSelectStaticOptions extends React.Component<IProps> {
12
+ export declare class FinalFormReactSelectStaticOptions extends Component<IProps> {
13
13
  render(): JSX.Element;
14
14
  private getOptionLabel;
15
15
  private getOptionValue;
@@ -1 +1 @@
1
- {"version":3,"file":"FinalFormReactSelectStaticOptions.d.ts","sourceRoot":"","sources":["../src/FinalFormReactSelectStaticOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAIrD,UAAU,WAAW;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,MAAO,SAAQ,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC;IACzF,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACrC;AACD,qBAAa,iCAAkC,SAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;IACnE,MAAM;IAsBb,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,QAAQ,CAAqE;CACxF"}
1
+ {"version":3,"file":"FinalFormReactSelectStaticOptions.d.ts","sourceRoot":"","sources":["../src/FinalFormReactSelectStaticOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAmB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAIrD,UAAU,WAAW;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,MAAO,SAAQ,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC;IACzF,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACrC;AACD,qBAAa,iCAAkC,SAAQ,SAAS,CAAC,MAAM,CAAC;IAC7D,MAAM;IAsBb,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,QAAQ,CAAqE;CACxF"}
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.FinalFormReactSelectStaticOptions = void 0;
7
- var React = _interopRequireWildcard(require("react"));
7
+ var _react = require("react");
8
8
  var _FinalFormReactSelect = require("./FinalFormReactSelect");
9
+ var _jsxRuntime = require("react/jsx-runtime");
9
10
  var _excluded = ["input", "meta"];
10
- 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); }
11
- 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; }
12
11
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
14
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -28,8 +26,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
28
26
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
27
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
28
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31
- var FinalFormReactSelectStaticOptions = /*#__PURE__*/function (_React$Component) {
32
- _inherits(FinalFormReactSelectStaticOptions, _React$Component);
29
+ var FinalFormReactSelectStaticOptions = /*#__PURE__*/function (_Component) {
30
+ _inherits(FinalFormReactSelectStaticOptions, _Component);
33
31
  var _super = _createSuper(FinalFormReactSelectStaticOptions);
34
32
  function FinalFormReactSelectStaticOptions() {
35
33
  var _this;
@@ -66,7 +64,7 @@ var FinalFormReactSelectStaticOptions = /*#__PURE__*/function (_React$Component)
66
64
  var selectInput = _objectSpread(_objectSpread({}, input), {}, {
67
65
  value: optionValue
68
66
  });
69
- return /*#__PURE__*/React.createElement(_FinalFormReactSelect.FinalFormReactSelect, _extends({}, rest, {
67
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FinalFormReactSelect.FinalFormReactSelect, _objectSpread(_objectSpread({}, rest), {}, {
70
68
  input: selectInput,
71
69
  meta: _objectSpread(_objectSpread({}, meta), {}, {
72
70
  initial: this.props.options.find(function (_ref4) {
@@ -81,5 +79,5 @@ var FinalFormReactSelectStaticOptions = /*#__PURE__*/function (_React$Component)
81
79
  }
82
80
  }]);
83
81
  return FinalFormReactSelectStaticOptions;
84
- }(React.Component);
82
+ }(_react.Component);
85
83
  exports.FinalFormReactSelectStaticOptions = FinalFormReactSelectStaticOptions;
@@ -1,15 +1,15 @@
1
1
  import { ComponentsOverrides, SvgIconProps, Theme } from "@mui/material";
2
- import * as React from "react";
2
+ import { ComponentType } from "react";
3
3
  import { OptionTypeBase } from "react-select";
4
4
  import { Props as ReactSelectAsyncProps } from "react-select/async";
5
5
  import { Props as ReactSelectProps } from "react-select/base";
6
6
  import { Props as ReactSelectCreatableProps } from "react-select/creatable";
7
7
  export type SelectClassKey = "input" | "valueContainer" | "chip" | "chipFocused" | "noOptionsMessage" | "singleValue" | "placeholder" | "paper" | "indicatorsContainer" | "indicatorSeparator" | "clearIndicator" | "indicator" | "dropdownIndicator" | "option" | "optionSelected" | "optionFocused";
8
8
  export interface SelectProps<OptionType extends OptionTypeBase, IsMulti extends boolean = false> {
9
- selectComponent: React.ComponentType<ReactSelectProps<OptionType, IsMulti>>;
10
- clearIcon?: React.ComponentType<SvgIconProps>;
11
- dropdownIcon?: React.ComponentType<SvgIconProps>;
12
- dropdownIconOpen?: React.ComponentType<SvgIconProps>;
9
+ selectComponent: ComponentType<ReactSelectProps<OptionType, IsMulti>>;
10
+ clearIcon?: ComponentType<SvgIconProps>;
11
+ dropdownIcon?: ComponentType<SvgIconProps>;
12
+ dropdownIconOpen?: ComponentType<SvgIconProps>;
13
13
  }
14
14
  export declare function ReactSelect<OptionType extends OptionTypeBase>(props: ReactSelectProps<OptionType>): JSX.Element;
15
15
  export declare function ReactSelectAsync<OptionType extends OptionTypeBase, IsMulti extends boolean = false>(props: ReactSelectAsyncProps<OptionType, IsMulti>): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ReactSelect.d.ts","sourceRoot":"","sources":["../src/ReactSelect.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,mBAAmB,EAAgD,YAAY,EAAE,KAAK,EAAwB,MAAM,eAAe,CAAC;AAEnJ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACtD,OAAoB,EAAE,KAAK,IAAI,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEjF,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAwB,EAAE,KAAK,IAAI,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAU7F,MAAM,MAAM,cAAc,GACpB,OAAO,GACP,gBAAgB,GAChB,MAAM,GACN,aAAa,GACb,kBAAkB,G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C,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CAClD;AAsBD,wBAAgB,WAAW,CAAC,UAAU,SAAS,cAAc,EAAE,KAAK,EAAE,gBAAgB,CAAC,UAAU,CAAC,eAEjG;AAED,wBAAgB,gBAAgB,CAAC,UAAU,SAAS,cAAc,EAAE,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/F,KAAK,EAAE,qBAAqB,CAAC,UAAU,EAAE,OAAO,CAAC,eAGpD;AAED,wBAAgB,oBAAoB,CAAC,UAAU,SAAS,cAAc,EAAE,OAAO,SAAS,OAAO,EAC3F,KAAK,EAAE,yBAAyB,CAAC,UAAU,EAAE,OAAO,CAAC,eAGxD;AAED,wBAAgB,yBAAyB,CAAC,UAAU,SAAS,cAAc,EAAE,OAAO,SAAS,OAAO,EAChG,KAAK,EAAE,yBAAyB,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,qBAAqB,CAAC,UAAU,EAAE,OAAO,CAAC,eAGrG;AAED,OAAO,QAAQ,sBAAsB,CAAC;IAClC,UAAU,uBAAuB;QAC7B,gBAAgB,EAAE,cAAc,CAAC;KACpC;IAED,UAAU,mBAAmB;QACzB,gBAAgB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;KACtC;IAED,UAAU,UAAU;QAChB,gBAAgB,CAAC,EAAE;YACf,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,CAAC;YAChE,cAAc,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,kBAAkB,CAAC,CAAC;SACnE,CAAC;KACL;CACJ"}
@@ -12,25 +12,22 @@ var _admin = require("@comet/admin");
12
12
  var _adminIcons = require("@comet/admin-icons");
13
13
  var _material = require("@mui/material");
14
14
  var _styles = require("@mui/material/styles");
15
- var React = _interopRequireWildcard(require("react"));
16
15
  var _reactSelect = _interopRequireDefault(require("react-select"));
17
16
  var _async = _interopRequireDefault(require("react-select/async"));
18
17
  var _asyncCreatable = _interopRequireDefault(require("react-select/async-creatable"));
19
18
  var _creatable = _interopRequireDefault(require("react-select/creatable"));
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
20
  var _excluded = ["inputRef"],
21
21
  _excluded2 = ["components", "selectComponent"];
22
22
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
23
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
24
- 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); }
25
- 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; }
24
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
26
26
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
27
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28
28
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
29
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
30
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
32
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
33
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
34
31
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
35
32
  var NoOptionsMessageText = (0, _admin.createComponentSlot)(_material.Typography)({
36
33
  componentName: "Select",
@@ -40,12 +37,14 @@ var NoOptionsMessageText = (0, _admin.createComponentSlot)(_material.Typography)
40
37
  return (0, _styles.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", " ", ";\n color: ", ";\n "])), theme.spacing(1), theme.spacing(2), theme.palette.text.secondary);
41
38
  });
42
39
  function NoOptionsMessage(props) {
43
- return /*#__PURE__*/React.createElement(NoOptionsMessageText, props.innerProps, props.children);
40
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(NoOptionsMessageText, _objectSpread(_objectSpread({}, props.innerProps), {}, {
41
+ children: props.children
42
+ }));
44
43
  }
45
44
  function inputComponent(_ref2) {
46
45
  var inputRef = _ref2.inputRef,
47
46
  props = _objectWithoutProperties(_ref2, _excluded);
48
- return /*#__PURE__*/React.createElement("div", _extends({
47
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({
49
48
  ref: inputRef
50
49
  }, props));
51
50
  }
@@ -61,10 +60,10 @@ function Control(props) {
61
60
  children: props.children
62
61
  }, props.innerProps)
63
62
  };
64
- return /*#__PURE__*/React.createElement(ControlInput, _extends({
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ControlInput, _objectSpread(_objectSpread({
65
64
  type: "text",
66
65
  fullWidth: true
67
- }, InputProps, props.selectProps.textFieldProps));
66
+ }, InputProps), props.selectProps.textFieldProps));
68
67
  }
69
68
  var OptionMenuItem = (0, _admin.createComponentSlot)(_material.MenuItem)({
70
69
  componentName: "Select",
@@ -78,7 +77,7 @@ var OptionMenuItem = (0, _admin.createComponentSlot)(_material.MenuItem)({
78
77
  return (0, _styles.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n\n ", "\n "])), ownerState.selected && (0, _styles.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-weight: ", ";\n "])), theme.typography.fontWeightMedium), ownerState.focused && (0, _styles.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), theme.palette.action.selected));
79
78
  });
80
79
  function Option(props) {
81
- return /*#__PURE__*/React.createElement(OptionMenuItem, _extends({
80
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(OptionMenuItem, _objectSpread(_objectSpread({
82
81
  ref: props.innerRef,
83
82
  selected: props.isSelected,
84
83
  ownerState: {
@@ -89,7 +88,9 @@ function Option(props) {
89
88
  // @ts-expect-error The type is not correctly passed through to `MenuItem` when using `styled()`, see: https://mui.com/material-ui/guides/typescript/#complications-with-the-component-prop
90
89
  ,
91
90
  component: "div"
92
- }, props.innerProps), props.children);
91
+ }, props.innerProps), {}, {
92
+ children: props.children
93
+ }));
93
94
  }
94
95
  var PlaceholderSlot = (0, _admin.createComponentSlot)("div")({
95
96
  componentName: "Select",
@@ -99,21 +100,27 @@ var PlaceholderSlot = (0, _admin.createComponentSlot)("div")({
99
100
  return (0, _styles.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: ", ";\n "])), theme.palette.text.disabled);
100
101
  });
101
102
  function Placeholder(props) {
102
- return /*#__PURE__*/React.createElement(PlaceholderSlot, props.innerProps, props.children);
103
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(PlaceholderSlot, _objectSpread(_objectSpread({}, props.innerProps), {}, {
104
+ children: props.children
105
+ }));
103
106
  }
104
107
  var SingleValueSlot = (0, _admin.createComponentSlot)("div")({
105
108
  componentName: "Select",
106
109
  slotName: "singleValue"
107
110
  })((0, _styles.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))));
108
111
  function SingleValue(props) {
109
- return /*#__PURE__*/React.createElement(SingleValueSlot, props.innerProps, props.children);
112
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SingleValueSlot, _objectSpread(_objectSpread({}, props.innerProps), {}, {
113
+ children: props.children
114
+ }));
110
115
  }
111
116
  var ValueContainerSlot = (0, _admin.createComponentSlot)("div")({
112
117
  componentName: "Select",
113
118
  slotName: "valueContainer"
114
119
  })((0, _styles.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex: 1;\n align-items: center;\n overflow: hidden;\n"]))));
115
120
  function ValueContainer(props) {
116
- return /*#__PURE__*/React.createElement(ValueContainerSlot, null, props.children);
121
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ValueContainerSlot, {
122
+ children: props.children
123
+ });
117
124
  }
118
125
  var MultiValueChip = (0, _admin.createComponentSlot)(_material.Chip)({
119
126
  componentName: "Select",
@@ -127,14 +134,14 @@ var MultiValueChip = (0, _admin.createComponentSlot)(_material.Chip)({
127
134
  return (0, _styles.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin: ", " ", ";\n\n ", "\n "])), theme.spacing(0.5), theme.spacing(0.25), ownerState.focused && (0, _styles.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), theme.palette.mode === "light" ? theme.palette.grey[300] : theme.palette.grey[700]));
128
135
  });
129
136
  function MultiValue(props) {
130
- return /*#__PURE__*/React.createElement(MultiValueChip, {
137
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(MultiValueChip, {
131
138
  tabIndex: -1,
132
139
  ownerState: {
133
140
  focused: props.isFocused
134
141
  },
135
142
  label: props.children,
136
143
  onDelete: props.removeProps.onClick,
137
- deleteIcon: /*#__PURE__*/React.createElement(_adminIcons.Clear, props.removeProps)
144
+ deleteIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.Clear, _objectSpread({}, props.removeProps))
138
145
  });
139
146
  }
140
147
  var MenuSlot = (0, _admin.createComponentSlot)(_material.Paper)({
@@ -142,14 +149,18 @@ var MenuSlot = (0, _admin.createComponentSlot)(_material.Paper)({
142
149
  slotName: "paper"
143
150
  })();
144
151
  function Menu(props) {
145
- return /*#__PURE__*/React.createElement(MenuSlot, props.innerProps, props.children);
152
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuSlot, _objectSpread(_objectSpread({}, props.innerProps), {}, {
153
+ children: props.children
154
+ }));
146
155
  }
147
156
  var IndicatorsContainerSlot = (0, _admin.createComponentSlot)("div")({
148
157
  componentName: "Select",
149
158
  slotName: "indicatorsContainer"
150
159
  })((0, _styles.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n"]))));
151
160
  function IndicatorsContainer(props) {
152
- return /*#__PURE__*/React.createElement(IndicatorsContainerSlot, null, props.children);
161
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(IndicatorsContainerSlot, {
162
+ children: props.children
163
+ });
153
164
  }
154
165
  var IndicatorSeparatorSlot = (0, _admin.createComponentSlot)("span")({
155
166
  componentName: "Select",
@@ -159,7 +170,7 @@ var IndicatorSeparatorSlot = (0, _admin.createComponentSlot)("span")({
159
170
  return (0, _styles.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n width: 1px;\n flex-grow: 1;\n background-color: ", ";\n "])), theme.palette.divider);
160
171
  });
161
172
  function IndicatorSeparator(props) {
162
- return /*#__PURE__*/React.createElement(IndicatorSeparatorSlot, null);
173
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(IndicatorSeparatorSlot, {});
163
174
  }
164
175
  var ClearIndicatorSlot = (0, _admin.createComponentSlot)("div")({
165
176
  componentName: "Select",
@@ -175,12 +186,13 @@ function ClearIndicator(_ref8) {
175
186
  var selectProps = _ref8.selectProps,
176
187
  clearValue = _ref8.clearValue;
177
188
  var Icon = selectProps.clearIcon ? selectProps.clearIcon : _adminIcons.Close;
178
- return /*#__PURE__*/React.createElement(ClearIndicatorSlot, {
179
- onClick: clearValue
180
- }, /*#__PURE__*/React.createElement(Icon, {
181
- fontSize: "inherit",
182
- color: "inherit"
183
- }));
189
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ClearIndicatorSlot, {
190
+ onClick: clearValue,
191
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
192
+ fontSize: "inherit",
193
+ color: "inherit"
194
+ })
195
+ });
184
196
  }
185
197
  var DropdownIndicatorSlot = (0, _admin.createComponentSlot)("div")({
186
198
  componentName: "Select",
@@ -197,10 +209,12 @@ function DropdownIndicator(_ref10) {
197
209
  var DefaultIcon = selectProps.dropdownIcon ? selectProps.dropdownIcon : _adminIcons.ChevronDown;
198
210
  var OpenIcon = selectProps.dropdownIconOpen ? selectProps.dropdownIconOpen : _adminIcons.ChevronDown;
199
211
  var Icon = selectProps.menuIsOpen ? OpenIcon : DefaultIcon;
200
- return /*#__PURE__*/React.createElement(DropdownIndicatorSlot, null, /*#__PURE__*/React.createElement(Icon, {
201
- fontSize: "inherit",
202
- color: "inherit"
203
- }));
212
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(DropdownIndicatorSlot, {
213
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
214
+ fontSize: "inherit",
215
+ color: "inherit"
216
+ })
217
+ });
204
218
  }
205
219
  var components = {
206
220
  Control: Control,
@@ -222,7 +236,7 @@ function SelectWrapper(_ref11) {
222
236
  rest = _objectWithoutProperties(_ref11, _excluded2);
223
237
  var _useTheme = (0, _material.useTheme)(),
224
238
  zIndex = _useTheme.zIndex;
225
- return /*#__PURE__*/React.createElement(SelectComponent, _extends({
239
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectComponent, _objectSpread({
226
240
  menuPortalTarget: document.body,
227
241
  components: _objectSpread(_objectSpread({}, components), origComponents),
228
242
  placeholder: "",
@@ -236,22 +250,22 @@ function SelectWrapper(_ref11) {
236
250
  }, rest));
237
251
  }
238
252
  function ReactSelect(props) {
239
- return /*#__PURE__*/React.createElement(SelectWrapper, _extends({
253
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectWrapper, _objectSpread({
240
254
  selectComponent: _reactSelect["default"]
241
255
  }, props));
242
256
  }
243
257
  function ReactSelectAsync(props) {
244
- return /*#__PURE__*/React.createElement(SelectWrapper, _extends({
258
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectWrapper, _objectSpread({
245
259
  selectComponent: _async["default"]
246
260
  }, props));
247
261
  }
248
262
  function ReactSelectCreatable(props) {
249
- return /*#__PURE__*/React.createElement(SelectWrapper, _extends({
263
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectWrapper, _objectSpread({
250
264
  selectComponent: _creatable["default"]
251
265
  }, props));
252
266
  }
253
267
  function ReactSelectAsyncCreatable(props) {
254
- return /*#__PURE__*/React.createElement(SelectWrapper, _extends({
268
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectWrapper, _objectSpread({
255
269
  selectComponent: _asyncCreatable["default"]
256
270
  }, props));
257
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/admin-react-select",
3
- "version": "8.0.0-canary-20240731111743",
3
+ "version": "8.0.0-canary-20240910091753",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/vivid-planet/comet",
@@ -13,15 +13,15 @@
13
13
  "lib"
14
14
  ],
15
15
  "dependencies": {
16
- "@comet/admin": "8.0.0-canary-20240731111743",
17
- "@comet/admin-icons": "8.0.0-canary-20240731111743",
16
+ "@comet/admin": "8.0.0-canary-20240910091753",
17
+ "@comet/admin-icons": "8.0.0-canary-20240910091753",
18
18
  "classnames": "^2.2.6"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@babel/cli": "^7.17.6",
22
22
  "@babel/core": "^7.20.12",
23
- "@comet/admin-babel-preset": "8.0.0-canary-20240731111743",
24
- "@comet/eslint-config": "8.0.0-canary-20240731111743",
23
+ "@comet/admin-babel-preset": "8.0.0-canary-20240910091753",
24
+ "@comet/eslint-config": "8.0.0-canary-20240910091753",
25
25
  "@mui/material": "^5.0.0",
26
26
  "@types/react": "^17.0.0",
27
27
  "@types/react-dom": "^17.0.0",