@capillarytech/blaze-ui 5.23.0 → 5.23.2

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.
@@ -10143,7 +10143,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
10143
10143
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
10144
10144
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
10145
10145
  // Module
10146
- ___CSS_LOADER_EXPORT___.push([module.id, `.cap-select-filter-v2{display:inline-block}.styled-div{position:relative;display:flex;align-items:center;padding:.571rem .571rem .571rem 1.142rem;border:.071rem solid #9e9d87;border-radius:1.142rem;height:2.285rem;background-color:rgba(0,0,0,0);cursor:pointer;transition:all .3s ease}.styled-div:hover{border-color:#091e42}.styled-div.styled-div-selected{border:none;background-color:#ecece7}.styled-div.ant-dropdown-open{border-color:#091e42}.menu-wrapper{border:.071rem solid #e8e8e8}.menu-wrapper .ant-dropdown-menu{border:none;box-shadow:none}.menu-item{background-color:rgba(0,0,0,0);border-left:.214rem solid rgba(0,0,0,0)}.menu-item.menu-item-selected{background-color:#e9f0fe;border-left-color:#2466ea}.badge{display:flex;align-items:center;justify-content:center;background-color:#ea213a;color:#fff;height:1.143rem;width:1.143rem;border-radius:50%;margin:0 .285rem;font-size:.857rem;font-weight:500;line-height:normal}.dropdown-icon{position:absolute;right:.571rem}`, ""]);
10146
+ ___CSS_LOADER_EXPORT___.push([module.id, `.cap-select-filter-v2{display:inline-block}.styled-div{position:relative;display:flex;align-items:center;padding:.571rem .571rem .571rem 1.142rem;border:.071rem solid #9e9d87;border-radius:1.142rem;height:2.285rem;background-color:rgba(0,0,0,0);cursor:pointer;transition:all .3s ease}.styled-div:hover{border-color:#091e42}.styled-div.styled-div-selected{border:none;background-color:#ecece7}.styled-div.ant-dropdown-open{border-color:#091e42}.menu-wrapper{border:.071rem solid #e8e8e8}.menu-wrapper .ant-dropdown-menu{border:none;box-shadow:none}.menu-item{background-color:rgba(0,0,0,0);border-left:.214rem solid rgba(0,0,0,0)}.menu-item.menu-item-selected{background-color:#e9f0fe;border-left-color:#2466ea}.badge{display:flex;align-items:center;justify-content:center;background-color:#ea213a;color:#fff;height:1.143rem;width:1.143rem;border-radius:50%;margin:0 .285rem;font-size:.857rem;font-weight:500;line-height:normal}.dropdown-icon{position:relative;width:25px;min-width:25px;margin-left:5px}`, ""]);
10147
10147
  // Exports
10148
10148
  ___CSS_LOADER_EXPORT___.locals = {
10149
10149
  "cap-select-filter-v2": `cap-select-filter-v2`,
@@ -16246,7 +16246,7 @@ const CapSelectFilter = _ref => {
16246
16246
  selectedValue,
16247
16247
  placeholder,
16248
16248
  placement = 'bottomLeft',
16249
- width = '80px',
16249
+ width = 'fit-content',
16250
16250
  dropdownMaxHeight = '320px',
16251
16251
  dropdownWidth = '228px',
16252
16252
  data = [],
@@ -16274,18 +16274,18 @@ const CapSelectFilter = _ref => {
16274
16274
  items: renderMenuItem(data, selectedValue),
16275
16275
  onClick: handleMenuClick
16276
16276
  },
16277
- className: (0, _classnames.default)(_styles.default[clsPrefix], className),
16277
+ className: (0, _classnames.default)(_styles.default[clsPrefix]),
16278
16278
  overlayClassName: (0, _classnames.default)(clsPrefix + "-overlay", overlayClassName),
16279
16279
  dropdownRender: menu => renderDropdownMenu(menu, dropdownMaxHeight, dropdownWidth),
16280
16280
  getPopupContainer: trigger => trigger.parentNode
16281
16281
  }, rest, {
16282
16282
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
16283
- className: (0, _classnames.default)(_styles.default['styled-div'], {
16283
+ className: (0, _classnames.default)(_styles.default['styled-div'], className, {
16284
16284
  [_styles.default['styled-div-selected']]: selectedValue,
16285
16285
  [_styles.default['styled-div-with-badge']]: Boolean(showBadge) && Boolean(selectedValue)
16286
16286
  }),
16287
16287
  style: {
16288
- width: showBadge && selectedValue ? "calc(" + width + " + 25px)" : width
16288
+ width
16289
16289
  },
16290
16290
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
16291
16291
  type: "label9",