@comet/admin-react-select 7.3.0-canary-20240827080113 → 7.3.0-canary-20240827121813

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,11 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.FinalFormReactSelectCreatable = exports.FinalFormReactSelectAsyncCreatable = exports.FinalFormReactSelectAsync = exports.FinalFormReactSelect = void 0;
8
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 _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; }
15
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; }
16
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; }
17
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -41,7 +44,7 @@ var FinalFormReactSelect = /*#__PURE__*/function (_Component) {
41
44
  input = _this$props.input,
42
45
  meta = _this$props.meta,
43
46
  rest = _objectWithoutProperties(_this$props, _excluded);
44
- return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelect, _extends({}, input, rest));
47
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactSelect.ReactSelect, _objectSpread(_objectSpread({}, input), rest));
45
48
  }
46
49
  }]);
47
50
  return FinalFormReactSelect;
@@ -61,7 +64,7 @@ var FinalFormReactSelectAsync = /*#__PURE__*/function (_Component2) {
61
64
  input = _this$props2.input,
62
65
  meta = _this$props2.meta,
63
66
  rest = _objectWithoutProperties(_this$props2, _excluded2);
64
- return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectAsync, _extends({}, input, rest));
67
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactSelect.ReactSelectAsync, _objectSpread(_objectSpread({}, input), rest));
65
68
  }
66
69
  }]);
67
70
  return FinalFormReactSelectAsync;
@@ -81,7 +84,7 @@ var FinalFormReactSelectCreatable = /*#__PURE__*/function (_Component3) {
81
84
  input = _this$props3.input,
82
85
  meta = _this$props3.meta,
83
86
  rest = _objectWithoutProperties(_this$props3, _excluded3);
84
- return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectCreatable, _extends({}, input, rest));
87
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactSelect.ReactSelectCreatable, _objectSpread(_objectSpread({}, input), rest));
85
88
  }
86
89
  }]);
87
90
  return FinalFormReactSelectCreatable;
@@ -101,7 +104,7 @@ var FinalFormReactSelectAsyncCreatable = /*#__PURE__*/function (_Component4) {
101
104
  input = _this$props4.input,
102
105
  meta = _this$props4.meta,
103
106
  rest = _objectWithoutProperties(_this$props4, _excluded4);
104
- return /*#__PURE__*/React.createElement(_ReactSelect.ReactSelectAsyncCreatable, _extends({}, input, rest));
107
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactSelect.ReactSelectAsyncCreatable, _objectSpread(_objectSpread({}, input), rest));
105
108
  }
106
109
  }]);
107
110
  return FinalFormReactSelectAsyncCreatable;
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.FinalFormReactSelectStaticOptions = void 0;
7
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
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); }
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); }
12
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; }
13
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; }
14
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; }
@@ -64,7 +64,7 @@ var FinalFormReactSelectStaticOptions = /*#__PURE__*/function (_Component) {
64
64
  var selectInput = _objectSpread(_objectSpread({}, input), {}, {
65
65
  value: optionValue
66
66
  });
67
- return /*#__PURE__*/React.createElement(_FinalFormReactSelect.FinalFormReactSelect, _extends({}, rest, {
67
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FinalFormReactSelect.FinalFormReactSelect, _objectSpread(_objectSpread({}, rest), {}, {
68
68
  input: selectInput,
69
69
  meta: _objectSpread(_objectSpread({}, meta), {}, {
70
70
  initial: this.props.options.find(function (_ref4) {
@@ -16,18 +16,18 @@ var _reactSelect = _interopRequireDefault(require("react-select"));
16
16
  var _async = _interopRequireDefault(require("react-select/async"));
17
17
  var _asyncCreatable = _interopRequireDefault(require("react-select/async-creatable"));
18
18
  var _creatable = _interopRequireDefault(require("react-select/creatable"));
19
+ var _jsxRuntime = require("react/jsx-runtime");
19
20
  var _excluded = ["inputRef"],
20
21
  _excluded2 = ["components", "selectComponent"];
21
22
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
22
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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; }
23
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; }
24
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; }
25
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; }
26
29
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
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); }
28
- 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); }
29
- 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; }
30
- 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; }
31
31
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
32
32
  var NoOptionsMessageText = (0, _admin.createComponentSlot)(_material.Typography)({
33
33
  componentName: "Select",
@@ -37,12 +37,14 @@ var NoOptionsMessageText = (0, _admin.createComponentSlot)(_material.Typography)
37
37
  return (0, _styles.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", " ", ";\n color: ", ";\n "])), theme.spacing(1), theme.spacing(2), theme.palette.text.secondary);
38
38
  });
39
39
  function NoOptionsMessage(props) {
40
- 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
+ }));
41
43
  }
42
44
  function inputComponent(_ref2) {
43
45
  var inputRef = _ref2.inputRef,
44
46
  props = _objectWithoutProperties(_ref2, _excluded);
45
- return /*#__PURE__*/React.createElement("div", _extends({
47
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({
46
48
  ref: inputRef
47
49
  }, props));
48
50
  }
@@ -58,10 +60,10 @@ function Control(props) {
58
60
  children: props.children
59
61
  }, props.innerProps)
60
62
  };
61
- return /*#__PURE__*/React.createElement(ControlInput, _extends({
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ControlInput, _objectSpread(_objectSpread({
62
64
  type: "text",
63
65
  fullWidth: true
64
- }, InputProps, props.selectProps.textFieldProps));
66
+ }, InputProps), props.selectProps.textFieldProps));
65
67
  }
66
68
  var OptionMenuItem = (0, _admin.createComponentSlot)(_material.MenuItem)({
67
69
  componentName: "Select",
@@ -75,7 +77,7 @@ var OptionMenuItem = (0, _admin.createComponentSlot)(_material.MenuItem)({
75
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));
76
78
  });
77
79
  function Option(props) {
78
- return /*#__PURE__*/React.createElement(OptionMenuItem, _extends({
80
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(OptionMenuItem, _objectSpread(_objectSpread({
79
81
  ref: props.innerRef,
80
82
  selected: props.isSelected,
81
83
  ownerState: {
@@ -86,7 +88,9 @@ function Option(props) {
86
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
87
89
  ,
88
90
  component: "div"
89
- }, props.innerProps), props.children);
91
+ }, props.innerProps), {}, {
92
+ children: props.children
93
+ }));
90
94
  }
91
95
  var PlaceholderSlot = (0, _admin.createComponentSlot)("div")({
92
96
  componentName: "Select",
@@ -96,21 +100,27 @@ var PlaceholderSlot = (0, _admin.createComponentSlot)("div")({
96
100
  return (0, _styles.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: ", ";\n "])), theme.palette.text.disabled);
97
101
  });
98
102
  function Placeholder(props) {
99
- 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
+ }));
100
106
  }
101
107
  var SingleValueSlot = (0, _admin.createComponentSlot)("div")({
102
108
  componentName: "Select",
103
109
  slotName: "singleValue"
104
110
  })((0, _styles.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))));
105
111
  function SingleValue(props) {
106
- 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
+ }));
107
115
  }
108
116
  var ValueContainerSlot = (0, _admin.createComponentSlot)("div")({
109
117
  componentName: "Select",
110
118
  slotName: "valueContainer"
111
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"]))));
112
120
  function ValueContainer(props) {
113
- return /*#__PURE__*/React.createElement(ValueContainerSlot, null, props.children);
121
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ValueContainerSlot, {
122
+ children: props.children
123
+ });
114
124
  }
115
125
  var MultiValueChip = (0, _admin.createComponentSlot)(_material.Chip)({
116
126
  componentName: "Select",
@@ -124,14 +134,14 @@ var MultiValueChip = (0, _admin.createComponentSlot)(_material.Chip)({
124
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]));
125
135
  });
126
136
  function MultiValue(props) {
127
- return /*#__PURE__*/React.createElement(MultiValueChip, {
137
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(MultiValueChip, {
128
138
  tabIndex: -1,
129
139
  ownerState: {
130
140
  focused: props.isFocused
131
141
  },
132
142
  label: props.children,
133
143
  onDelete: props.removeProps.onClick,
134
- deleteIcon: /*#__PURE__*/React.createElement(_adminIcons.Clear, props.removeProps)
144
+ deleteIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.Clear, _objectSpread({}, props.removeProps))
135
145
  });
136
146
  }
137
147
  var MenuSlot = (0, _admin.createComponentSlot)(_material.Paper)({
@@ -139,14 +149,18 @@ var MenuSlot = (0, _admin.createComponentSlot)(_material.Paper)({
139
149
  slotName: "paper"
140
150
  })();
141
151
  function Menu(props) {
142
- 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
+ }));
143
155
  }
144
156
  var IndicatorsContainerSlot = (0, _admin.createComponentSlot)("div")({
145
157
  componentName: "Select",
146
158
  slotName: "indicatorsContainer"
147
159
  })((0, _styles.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n"]))));
148
160
  function IndicatorsContainer(props) {
149
- return /*#__PURE__*/React.createElement(IndicatorsContainerSlot, null, props.children);
161
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(IndicatorsContainerSlot, {
162
+ children: props.children
163
+ });
150
164
  }
151
165
  var IndicatorSeparatorSlot = (0, _admin.createComponentSlot)("span")({
152
166
  componentName: "Select",
@@ -156,7 +170,7 @@ var IndicatorSeparatorSlot = (0, _admin.createComponentSlot)("span")({
156
170
  return (0, _styles.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n width: 1px;\n flex-grow: 1;\n background-color: ", ";\n "])), theme.palette.divider);
157
171
  });
158
172
  function IndicatorSeparator(props) {
159
- return /*#__PURE__*/React.createElement(IndicatorSeparatorSlot, null);
173
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(IndicatorSeparatorSlot, {});
160
174
  }
161
175
  var ClearIndicatorSlot = (0, _admin.createComponentSlot)("div")({
162
176
  componentName: "Select",
@@ -172,12 +186,13 @@ function ClearIndicator(_ref8) {
172
186
  var selectProps = _ref8.selectProps,
173
187
  clearValue = _ref8.clearValue;
174
188
  var Icon = selectProps.clearIcon ? selectProps.clearIcon : _adminIcons.Close;
175
- return /*#__PURE__*/React.createElement(ClearIndicatorSlot, {
176
- onClick: clearValue
177
- }, /*#__PURE__*/React.createElement(Icon, {
178
- fontSize: "inherit",
179
- color: "inherit"
180
- }));
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
+ });
181
196
  }
182
197
  var DropdownIndicatorSlot = (0, _admin.createComponentSlot)("div")({
183
198
  componentName: "Select",
@@ -194,10 +209,12 @@ function DropdownIndicator(_ref10) {
194
209
  var DefaultIcon = selectProps.dropdownIcon ? selectProps.dropdownIcon : _adminIcons.ChevronDown;
195
210
  var OpenIcon = selectProps.dropdownIconOpen ? selectProps.dropdownIconOpen : _adminIcons.ChevronDown;
196
211
  var Icon = selectProps.menuIsOpen ? OpenIcon : DefaultIcon;
197
- return /*#__PURE__*/React.createElement(DropdownIndicatorSlot, null, /*#__PURE__*/React.createElement(Icon, {
198
- fontSize: "inherit",
199
- color: "inherit"
200
- }));
212
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(DropdownIndicatorSlot, {
213
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
214
+ fontSize: "inherit",
215
+ color: "inherit"
216
+ })
217
+ });
201
218
  }
202
219
  var components = {
203
220
  Control: Control,
@@ -219,7 +236,7 @@ function SelectWrapper(_ref11) {
219
236
  rest = _objectWithoutProperties(_ref11, _excluded2);
220
237
  var _useTheme = (0, _material.useTheme)(),
221
238
  zIndex = _useTheme.zIndex;
222
- return /*#__PURE__*/React.createElement(SelectComponent, _extends({
239
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectComponent, _objectSpread({
223
240
  menuPortalTarget: document.body,
224
241
  components: _objectSpread(_objectSpread({}, components), origComponents),
225
242
  placeholder: "",
@@ -233,22 +250,22 @@ function SelectWrapper(_ref11) {
233
250
  }, rest));
234
251
  }
235
252
  function ReactSelect(props) {
236
- return /*#__PURE__*/React.createElement(SelectWrapper, _extends({
253
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectWrapper, _objectSpread({
237
254
  selectComponent: _reactSelect["default"]
238
255
  }, props));
239
256
  }
240
257
  function ReactSelectAsync(props) {
241
- return /*#__PURE__*/React.createElement(SelectWrapper, _extends({
258
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectWrapper, _objectSpread({
242
259
  selectComponent: _async["default"]
243
260
  }, props));
244
261
  }
245
262
  function ReactSelectCreatable(props) {
246
- return /*#__PURE__*/React.createElement(SelectWrapper, _extends({
263
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectWrapper, _objectSpread({
247
264
  selectComponent: _creatable["default"]
248
265
  }, props));
249
266
  }
250
267
  function ReactSelectAsyncCreatable(props) {
251
- return /*#__PURE__*/React.createElement(SelectWrapper, _extends({
268
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectWrapper, _objectSpread({
252
269
  selectComponent: _asyncCreatable["default"]
253
270
  }, props));
254
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/admin-react-select",
3
- "version": "7.3.0-canary-20240827080113",
3
+ "version": "7.3.0-canary-20240827121813",
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-20240827080113",
17
- "@comet/admin-icons": "7.3.0-canary-20240827080113",
16
+ "@comet/admin": "7.3.0-canary-20240827121813",
17
+ "@comet/admin-icons": "7.3.0-canary-20240827121813",
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-20240827080113",
24
- "@comet/eslint-config": "7.3.0-canary-20240827080113",
23
+ "@comet/admin-babel-preset": "7.3.0-canary-20240827121813",
24
+ "@comet/eslint-config": "7.3.0-canary-20240827121813",
25
25
  "@mui/material": "^5.0.0",
26
26
  "@types/react": "^17.0.0",
27
27
  "@types/react-dom": "^17.0.0",