@true-engineering/true-react-common-ui-kit 3.28.1 → 3.28.3

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/README.md CHANGED
@@ -11,6 +11,19 @@
11
11
 
12
12
  # Release Notes
13
13
 
14
+ ## 3.28.3
15
+
16
+ ### Changes
17
+
18
+ - **List**: Фикс testId у айтемов
19
+ - **WithPopup**: Фикс рендера пропсы isDisabled
20
+
21
+ ## 3.28.2
22
+
23
+ ### Changes
24
+
25
+ - **List**: `shouldDrawSpacerBelow` и `shouldDrawSpacerAbove` теперь не рендерятся первыми и последними в списке
26
+
14
27
  ## 3.28.1
15
28
 
16
29
  ### Changes
@@ -8028,9 +8028,10 @@ var WithPopup = function(param) {
8028
8028
  ref: refs.setReference
8029
8029
  });
8030
8030
  var triggerElement = applyAction(trigger, _object_spread$Y({
8031
- isActive: isOpen,
8032
- isDisabled
8033
- }, !isTriggerWrapped ? referenceProps : void 0));
8031
+ isActive: isOpen
8032
+ }, isDisabled ? {
8033
+ isDisabled: true
8034
+ } : void 0, !isTriggerWrapped ? referenceProps : void 0));
8034
8035
  return /* @__PURE__ */ jsxs(Fragment, {
8035
8036
  children: [
8036
8037
  isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({
@@ -8279,8 +8280,10 @@ var List = function(param) {
8279
8280
  }, addDataTestId(testId), addDataAttributes(data)), {
8280
8281
  children: items.map(function(item, i) {
8281
8282
  var itemProps = _object_spread_props$N(_object_spread$W({
8282
- testId: getTestId(item.testId, "item-".concat(i))
8283
+ testId: getTestId(testId, "item-".concat(i))
8283
8284
  }, item), {
8285
+ shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
8286
+ shouldDrawSpacerBelow: item.shouldDrawSpacerBelow && i !== items.length - 1,
8284
8287
  onClick: function(event) {
8285
8288
  return handleItemClick(event, item);
8286
8289
  }