indicator-ui 0.0.345 → 0.0.347

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/dist/index.js CHANGED
@@ -48086,16 +48086,16 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
48086
48086
 
48087
48087
 
48088
48088
 
48089
- function Dropdown(_ref) {
48090
- var items = _ref.items,
48091
- title = _ref.title,
48092
- _ref$size = _ref.size,
48093
- size = _ref$size === void 0 ? 'small' : _ref$size,
48094
- onClick = _ref.onClick,
48095
- _ref$width = _ref.width,
48096
- width = _ref$width === void 0 ? 'fill' : _ref$width,
48097
- isActive = _ref.isActive,
48098
- props = _objectWithoutProperties(_ref, _excluded);
48089
+ var _Dropdown = function _Dropdown(props, ref) {
48090
+ var items = props.items,
48091
+ title = props.title,
48092
+ _props$size = props.size,
48093
+ size = _props$size === void 0 ? 'small' : _props$size,
48094
+ onClick = props.onClick,
48095
+ _props$width = props.width,
48096
+ width = _props$width === void 0 ? 'fill' : _props$width,
48097
+ isActive = props.isActive,
48098
+ anotherProps = _objectWithoutProperties(props, _excluded);
48099
48099
  var getStyle = function getStyle() {
48100
48100
  var resWidth;
48101
48101
  if (typeof width === "number") {
@@ -48146,13 +48146,15 @@ function Dropdown(_ref) {
48146
48146
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_ui__WEBPACK_IMPORTED_MODULE_2__.ScrollProvider, _objectSpread(_objectSpread({
48147
48147
  className: _styles__WEBPACK_IMPORTED_MODULE_3__.DropdownStyle.Dropdown,
48148
48148
  style: getStyle()
48149
- }, props), {}, {
48149
+ }, anotherProps), {}, {
48150
+ ref: ref,
48150
48151
  children: [title !== undefined && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h6", {
48151
48152
  className: _styles__WEBPACK_IMPORTED_MODULE_3__.DropdownStyle.header,
48152
48153
  children: title
48153
48154
  }), items.map(getItem)]
48154
48155
  }));
48155
- }
48156
+ };
48157
+ var Dropdown = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(_Dropdown);
48156
48158
 
48157
48159
  /***/ }),
48158
48160