@true-engineering/true-react-common-ui-kit 4.0.0-alpha73 → 4.0.0-alpha74

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": "4.0.0-alpha73",
3
+ "version": "4.0.0-alpha74",
4
4
  "description": "True Engineering React UI Kit with theming support",
5
5
  "author": "True Engineering (https://trueengineering.ru)",
6
6
  "keywords": [
@@ -175,12 +175,14 @@ export const WithPopup: FC<IWithPopupProps> = ({
175
175
  }),
176
176
  });
177
177
 
178
+ const triggerData: IDataAttributes = { popupOpen: isActive, ...data };
179
+
178
180
  const triggerElement = applyAction(trigger, {
179
181
  referenceProps: !isTriggerWrapped ? referenceProps : undefined,
180
182
  triggerProps: {
181
183
  isActive,
182
184
  isDisabled,
183
- ...(!isTriggerWrapped && { data, testId, ...referenceProps }),
185
+ ...(!isTriggerWrapped && { data: triggerData, testId, ...referenceProps }),
184
186
  },
185
187
  });
186
188
 
@@ -194,7 +196,7 @@ export const WithPopup: FC<IWithPopupProps> = ({
194
196
  [classes.active]: isActive,
195
197
  })}
196
198
  {...referenceProps}
197
- {...addDataAttributes(data, testId)}
199
+ {...addDataAttributes(triggerData, testId)}
198
200
  >
199
201
  {triggerElement}
200
202
  </div>