@true-engineering/true-react-common-ui-kit 3.28.2 → 3.28.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@true-engineering/true-react-common-ui-kit",
3
- "version": "3.28.2",
3
+ "version": "3.28.4",
4
4
  "description": "True Engineering React UI Kit with theming support",
5
5
  "author": "True Engineering (https://trueengineering.ru)",
6
6
  "keywords": [
@@ -75,7 +75,7 @@ export function FilterWrapper<Values, Key extends keyof Values>({
75
75
  canBeFlipped
76
76
  isDisabled={isBoolean || isDisabled}
77
77
  tweakStyles={tweakWithPopupStyles}
78
- trigger={({ isActive }) => (
78
+ trigger={({ isActive, isDisabled: _isDisabled, ...props }) => (
79
79
  <div
80
80
  className={clsx(classes.root, {
81
81
  [classes.noValue]: !hasValue,
@@ -87,6 +87,7 @@ export function FilterWrapper<Values, Key extends keyof Values>({
87
87
  })}
88
88
  {...addDataTestId(testId)}
89
89
  {...addDataAttributes(data)}
90
+ {...props}
90
91
  >
91
92
  <div
92
93
  onClick={handleLabelClick}
@@ -33,7 +33,7 @@ export const List: FC<IListProps> = ({ items, testId, data, tweakStyles, onClick
33
33
  <div className={classes.root} {...addDataTestId(testId)} {...addDataAttributes(data)}>
34
34
  {items.map((item, i) => {
35
35
  const itemProps: IListItemProps = {
36
- testId: getTestId(item.testId, `item-${i}`),
36
+ testId: getTestId(testId, `item-${i}`),
37
37
  ...item,
38
38
  shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
39
39
  shouldDrawSpacerBelow: item.shouldDrawSpacerBelow && i !== items.length - 1,
@@ -127,7 +127,7 @@ export const WithPopup: FC<IWithPopupProps> = ({
127
127
 
128
128
  const triggerElement = applyAction(trigger, {
129
129
  isActive: isOpen,
130
- isDisabled,
130
+ ...(isDisabled ? { isDisabled: true } : undefined),
131
131
  ...(!isTriggerWrapped ? referenceProps : undefined),
132
132
  });
133
133