@xsolla/xui-status-dropdown 0.158.0 → 0.159.0

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": "@xsolla/xui-status-dropdown",
3
- "version": "0.158.0",
3
+ "version": "0.159.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,11 +13,11 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-context-menu": "0.158.0",
17
- "@xsolla/xui-core": "0.158.0",
18
- "@xsolla/xui-dropdown": "0.158.0",
19
- "@xsolla/xui-primitives-core": "0.158.0",
20
- "@xsolla/xui-status": "0.158.0"
16
+ "@xsolla/xui-context-menu": "0.159.0",
17
+ "@xsolla/xui-core": "0.159.0",
18
+ "@xsolla/xui-dropdown": "0.159.0",
19
+ "@xsolla/xui-primitives-core": "0.159.0",
20
+ "@xsolla/xui-status": "0.159.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=16.8.0",
package/web/index.js CHANGED
@@ -307,6 +307,8 @@ var Text = ({
307
307
  className,
308
308
  id,
309
309
  role,
310
+ testID,
311
+ "data-testid": dataTestId,
310
312
  numberOfLines: _numberOfLines,
311
313
  ...props
312
314
  }) => {
@@ -317,7 +319,8 @@ var Text = ({
317
319
  style,
318
320
  className,
319
321
  id,
320
- role
322
+ role,
323
+ "data-testid": dataTestId || testID
321
324
  }
322
325
  );
323
326
  };
@@ -341,8 +344,13 @@ var StyledIcon = (0, import_styled_components3.default)(FilteredDiv2)`
341
344
  stroke: currentColor;
342
345
  }
343
346
  `;
344
- var Icon = ({ children, ...props }) => {
345
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledIcon, { ...props, children });
347
+ var Icon = ({
348
+ children,
349
+ testID,
350
+ "data-testid": dataTestId,
351
+ ...props
352
+ }) => {
353
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledIcon, { "data-testid": dataTestId || testID, ...props, children });
346
354
  };
347
355
 
348
356
  // ../../foundation/primitives-web/src/index.tsx
@@ -1097,6 +1105,7 @@ var BaseIcon = ({
1097
1105
  className,
1098
1106
  style,
1099
1107
  "data-testid": testId,
1108
+ testID,
1100
1109
  "aria-label": ariaLabel,
1101
1110
  "aria-hidden": ariaHidden
1102
1111
  }) => {
@@ -1109,7 +1118,7 @@ var BaseIcon = ({
1109
1118
  $color: color,
1110
1119
  className,
1111
1120
  style,
1112
- "data-testid": testId,
1121
+ "data-testid": testId || testID,
1113
1122
  role: ariaLabel ? "img" : void 0,
1114
1123
  "aria-label": ariaLabel,
1115
1124
  "aria-hidden": ariaHidden != null ? ariaHidden : ariaLabel ? void 0 : true,