indicator-ui 0.0.378 → 0.0.380

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
@@ -55932,13 +55932,14 @@ __webpack_require__.r(__webpack_exports__);
55932
55932
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
55933
55933
  /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/ui */ "./src/ui/index.ts");
55934
55934
  /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../styles */ "./src/ui/Dropdown/styles/index.ts");
55935
- var _excluded = ["items", "title", "size", "onClick", "width", "isActive"];
55935
+ /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.mjs");
55936
+ var _excluded = ["items", "title", "size", "onClick", "width", "isActive", "className", "styles"];
55937
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
55936
55938
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
55937
55939
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
55938
55940
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
55939
55941
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
55940
55942
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
55941
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
55942
55943
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
55943
55944
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
55944
55945
 
@@ -55946,6 +55947,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
55946
55947
 
55947
55948
 
55948
55949
 
55950
+
55949
55951
  var _Dropdown = function _Dropdown(props, ref) {
55950
55952
  var items = props.items,
55951
55953
  title = props.title,
@@ -55955,6 +55957,9 @@ var _Dropdown = function _Dropdown(props, ref) {
55955
55957
  _props$width = props.width,
55956
55958
  width = _props$width === void 0 ? 'fill' : _props$width,
55957
55959
  isActive = props.isActive,
55960
+ className = props.className,
55961
+ _props$styles = props.styles,
55962
+ styles = _props$styles === void 0 ? {} : _props$styles,
55958
55963
  anotherProps = _objectWithoutProperties(props, _excluded);
55959
55964
  var getStyle = function getStyle() {
55960
55965
  var resWidth;
@@ -55965,9 +55970,9 @@ var _Dropdown = function _Dropdown(props, ref) {
55965
55970
  } else {
55966
55971
  resWidth = 'fit-content';
55967
55972
  }
55968
- return {
55973
+ return _objectSpread({
55969
55974
  width: resWidth
55970
- };
55975
+ }, styles);
55971
55976
  };
55972
55977
  var getValue = function getValue(curItem) {
55973
55978
  if (_typeof(curItem) === 'object' && 'value' in curItem) {
@@ -56004,7 +56009,7 @@ var _Dropdown = function _Dropdown(props, ref) {
56004
56009
  }));
56005
56010
  };
56006
56011
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_ui__WEBPACK_IMPORTED_MODULE_2__.ScrollProvider, _objectSpread(_objectSpread({
56007
- className: _styles__WEBPACK_IMPORTED_MODULE_3__.DropdownStyle.Dropdown,
56012
+ className: (0,clsx__WEBPACK_IMPORTED_MODULE_4__["default"])(_styles__WEBPACK_IMPORTED_MODULE_3__.DropdownStyle.Dropdown, className),
56008
56013
  style: getStyle()
56009
56014
  }, anotherProps), {}, {
56010
56015
  ref: ref,