@indico-data/design-system 3.10.0 → 3.11.0

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.
package/lib/index.js CHANGED
@@ -5841,14 +5841,14 @@ const OptionComponent = (_a) => {
5841
5841
  var props = __rest(_a, []);
5842
5842
  return (jsxRuntime.jsx(ReactSelect.components.Option, Object.assign({}, props, { children: jsxRuntime.jsxs("div", { className: "select__items", children: [jsxRuntime.jsx("div", { className: "select__item-value", children: (_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.label }), ((_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c.detail) && jsxRuntime.jsx("div", { className: "select__item-detail", children: (_d = props === null || props === void 0 ? void 0 : props.data) === null || _d === void 0 ? void 0 : _d.detail })] }) })));
5843
5843
  };
5844
- const Select$1 = (_a) => {
5844
+ const Select$1 = React__namespace.default.forwardRef((_a, ref) => {
5845
5845
  var { classNamePrefix = 'select', className, components: customComponents, label, hasHiddenLabel, name } = _a, props = __rest(_a, ["classNamePrefix", "className", "components", "label", "hasHiddenLabel", "name"]);
5846
5846
  const defaultComponents = {
5847
5847
  Option: OptionComponent,
5848
5848
  };
5849
5849
  const mergedComponents = Object.assign(Object.assign({}, defaultComponents), customComponents);
5850
- return (jsxRuntime.jsx(ReactSelect__default.default, Object.assign({ classNamePrefix: classNamePrefix, className: classNames('select-wrapper', className), components: mergedComponents }, props)));
5851
- };
5850
+ return (jsxRuntime.jsx(ReactSelect__default.default, Object.assign({ ref: ref, classNamePrefix: classNamePrefix, className: classNames('select-wrapper', className), components: mergedComponents }, props)));
5851
+ });
5852
5852
  const LabeledSelect = withLabel(Select$1);
5853
5853
 
5854
5854
  /**