@comet/admin-react-select 7.3.0-canary-20240827072630 → 7.3.0-canary-20240827074534

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,14 +5,12 @@ 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
10
  var _excluded = ["input", "meta"],
11
11
  _excluded2 = ["input", "meta"],
12
12
  _excluded3 = ["input", "meta"],
13
13
  _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
14
  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); }
17
15
  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
16
  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; }
@@ -29,8 +27,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
29
27
  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
28
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
31
29
  // tslint:disable:max-classes-per-file
32
- var FinalFormReactSelect = /*#__PURE__*/function (_React$Component) {
33
- _inherits(FinalFormReactSelect, _React$Component);
30
+ var FinalFormReactSelect = /*#__PURE__*/function (_Component) {
31
+ _inherits(FinalFormReactSelect, _Component);
34
32
  var _super = _createSuper(FinalFormReactSelect);
35
33
  function FinalFormReactSelect() {
36
34
  _classCallCheck(this, FinalFormReactSelect);
@@ -47,10 +45,10 @@ var FinalFormReactSelect = /*#__PURE__*/function (_React$Component) {
47
45
  }
48
46
  }]);
49
47
  return FinalFormReactSelect;
50
- }(React.Component);
48
+ }(_react.Component);
51
49
  exports.FinalFormReactSelect = FinalFormReactSelect;
52
- var FinalFormReactSelectAsync = /*#__PURE__*/function (_React$Component2) {
53
- _inherits(FinalFormReactSelectAsync, _React$Component2);
50
+ var FinalFormReactSelectAsync = /*#__PURE__*/function (_Component2) {
51
+ _inherits(FinalFormReactSelectAsync, _Component2);
54
52
  var _super2 = _createSuper(FinalFormReactSelectAsync);
55
53
  function FinalFormReactSelectAsync() {
56
54
  _classCallCheck(this, FinalFormReactSelectAsync);
@@ -67,10 +65,10 @@ var FinalFormReactSelectAsync = /*#__PURE__*/function (_React$Component2) {
67
65
  }
68
66
  }]);
69
67
  return FinalFormReactSelectAsync;
70
- }(React.Component);
68
+ }(_react.Component);
71
69
  exports.FinalFormReactSelectAsync = FinalFormReactSelectAsync;
72
- var FinalFormReactSelectCreatable = /*#__PURE__*/function (_React$Component3) {
73
- _inherits(FinalFormReactSelectCreatable, _React$Component3);
70
+ var FinalFormReactSelectCreatable = /*#__PURE__*/function (_Component3) {
71
+ _inherits(FinalFormReactSelectCreatable, _Component3);
74
72
  var _super3 = _createSuper(FinalFormReactSelectCreatable);
75
73
  function FinalFormReactSelectCreatable() {
76
74
  _classCallCheck(this, FinalFormReactSelectCreatable);
@@ -87,10 +85,10 @@ var FinalFormReactSelectCreatable = /*#__PURE__*/function (_React$Component3) {
87
85
  }
88
86
  }]);
89
87
  return FinalFormReactSelectCreatable;
90
- }(React.Component);
88
+ }(_react.Component);
91
89
  exports.FinalFormReactSelectCreatable = FinalFormReactSelectCreatable;
92
- var FinalFormReactSelectAsyncCreatable = /*#__PURE__*/function (_React$Component4) {
93
- _inherits(FinalFormReactSelectAsyncCreatable, _React$Component4);
90
+ var FinalFormReactSelectAsyncCreatable = /*#__PURE__*/function (_Component4) {
91
+ _inherits(FinalFormReactSelectAsyncCreatable, _Component4);
94
92
  var _super4 = _createSuper(FinalFormReactSelectAsyncCreatable);
95
93
  function FinalFormReactSelectAsyncCreatable() {
96
94
  _classCallCheck(this, FinalFormReactSelectAsyncCreatable);
@@ -107,5 +105,5 @@ var FinalFormReactSelectAsyncCreatable = /*#__PURE__*/function (_React$Component
107
105
  }
108
106
  }]);
109
107
  return FinalFormReactSelectAsyncCreatable;
110
- }(React.Component);
108
+ }(_react.Component);
111
109
  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,11 +4,9 @@ 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
9
  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
10
  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
11
  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; }
@@ -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;
@@ -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,GAClB,aAAa,GACb,aAAa,GACb,OAAO,GACP,qBAAqB,GACrB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,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,7 +12,6 @@ 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"));
@@ -21,8 +20,6 @@ var _excluded = ["inputRef"],
21
20
  _excluded2 = ["components", "selectComponent"];
22
21
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
23
22
  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; }
26
23
  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
24
  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
25
  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; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/admin-react-select",
3
- "version": "7.3.0-canary-20240827072630",
3
+ "version": "7.3.0-canary-20240827074534",
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": "7.3.0-canary-20240827072630",
17
- "@comet/admin-icons": "7.3.0-canary-20240827072630",
16
+ "@comet/admin": "7.3.0-canary-20240827074534",
17
+ "@comet/admin-icons": "7.3.0-canary-20240827074534",
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": "7.3.0-canary-20240827072630",
24
- "@comet/eslint-config": "7.3.0-canary-20240827072630",
23
+ "@comet/admin-babel-preset": "7.3.0-canary-20240827074534",
24
+ "@comet/eslint-config": "7.3.0-canary-20240827074534",
25
25
  "@mui/material": "^5.0.0",
26
26
  "@types/react": "^17.0.0",
27
27
  "@types/react-dom": "^17.0.0",