indicator-ui 0.0.351 → 0.0.352

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
@@ -55551,7 +55551,7 @@ __webpack_require__.r(__webpack_exports__);
55551
55551
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
55552
55552
  /* harmony export */ });
55553
55553
  // extracted by mini-css-extract-plugin
55554
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"dropdownItem":"DropdownItem-module__dropdownItem___N8ZNV","showIcon":"DropdownItem-module__showIcon___Dg7F4","main":"DropdownItem-module__main___Lhu3D","text":"DropdownItem-module__text___ASNww","supportText":"DropdownItem-module__supportText___UEw04","check":"DropdownItem-module__check___e4EmQ","selected":"DropdownItem-module__selected___gw70Z","userIcon":"DropdownItem-module__userIcon___MATjB","small":"DropdownItem-module__small___IbHXt","medium":"DropdownItem-module__medium___bm3mg","widthFill":"DropdownItem-module__widthFill___m3eb0","widthHug":"DropdownItem-module__widthHug___HJMle"});
55554
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"dropdownItem":"DropdownItem-module__dropdownItem___N8ZNV","showIcon":"DropdownItem-module__showIcon___Dg7F4","main":"DropdownItem-module__main___Lhu3D","text":"DropdownItem-module__text___ASNww","supportText":"DropdownItem-module__supportText___UEw04","check":"DropdownItem-module__check___e4EmQ","selected":"DropdownItem-module__selected___gw70Z","disabled":"DropdownItem-module__disabled___hI0kb","userIcon":"DropdownItem-module__userIcon___MATjB","small":"DropdownItem-module__small___IbHXt","medium":"DropdownItem-module__medium___bm3mg","widthFill":"DropdownItem-module__widthFill___m3eb0","widthHug":"DropdownItem-module__widthHug___HJMle"});
55555
55555
 
55556
55556
  /***/ }),
55557
55557
 
@@ -55647,7 +55647,8 @@ function DropdownItem(_ref) {
55647
55647
  _ref$width = _ref.width,
55648
55648
  width = _ref$width === void 0 ? 'fill' : _ref$width,
55649
55649
  beforeElement = _ref.beforeElement,
55650
- afterElement = _ref.afterElement;
55650
+ afterElement = _ref.afterElement,
55651
+ ownerElement = _ref.ownerElement;
55651
55652
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
55652
55653
  _useState2 = _slicedToArray(_useState, 2),
55653
55654
  isHover = _useState2[0],
@@ -55669,7 +55670,7 @@ function DropdownItem(_ref) {
55669
55670
  children: supportingText
55670
55671
  });
55671
55672
  };
55672
- var cloneElement = function cloneElement(element) {
55673
+ var cloneAdditionElement = function cloneAdditionElement(element) {
55673
55674
  if (! /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(element)) return element;
55674
55675
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(element, {
55675
55676
  isHover: isHover,
@@ -55687,26 +55688,30 @@ function DropdownItem(_ref) {
55687
55688
  children: showIcon
55688
55689
  });
55689
55690
  };
55690
- return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", {
55691
+ var clonedProps = {
55691
55692
  onClick: onClick,
55692
55693
  disabled: disabled,
55693
55694
  onMouseEnter: onMouseEnter,
55694
55695
  onMouseLeave: onMouseLeave,
55695
- className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.dropdownItem, additionStyles, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.selected, selected), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.widthFill, width === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.widthHug, width === 'hug'), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.small, size === 'small'), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.medium, size === 'medium')),
55696
- children: [getShowIcon(), user ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_3__.UserPick, {
55697
- url: user,
55698
- size: '20'
55699
- }) : undefined, cloneElement(beforeElement), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
55700
- className: _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.main,
55701
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
55702
- className: _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.text,
55703
- children: text
55704
- }), getSupportingText()]
55705
- }), cloneElement(afterElement), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
55706
- className: _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.check,
55707
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_4__.CheckSVG, {})
55708
- })]
55709
- });
55696
+ className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.dropdownItem, additionStyles, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.disabled, disabled), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.selected, selected), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.widthFill, width === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.widthHug, width === 'hug'), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.small, size === 'small'), _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.medium, size === 'medium')),
55697
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
55698
+ children: [getShowIcon(), user ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_3__.UserPick, {
55699
+ url: user,
55700
+ size: '20'
55701
+ }) : undefined, cloneAdditionElement(beforeElement), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
55702
+ className: _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.main,
55703
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
55704
+ className: _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.text,
55705
+ children: text
55706
+ }), getSupportingText()]
55707
+ }), cloneAdditionElement(afterElement), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
55708
+ className: _styles__WEBPACK_IMPORTED_MODULE_5__.DropdownItemStyle.check,
55709
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_4__.CheckSVG, {})
55710
+ })]
55711
+ })
55712
+ };
55713
+ var resElement = ownerElement && /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(ownerElement) ? ownerElement : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button", {});
55714
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(resElement, clonedProps);
55710
55715
  }
55711
55716
 
55712
55717
  /***/ }),