@xsolla/xui-icons-flag 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.
@@ -20,6 +20,8 @@ type FlagIconComponent = React.FC<FlagIconProps>;
20
20
  interface FlagIconInternalProps extends FlagIconProps {
21
21
  children?: React.ReactNode;
22
22
  svgContent: string;
23
+ /** Test ID for testing frameworks */
24
+ testID?: string;
23
25
  }
24
26
 
25
27
  declare const FlagIcon: React.FC<FlagIconInternalProps>;
package/native/index.d.ts CHANGED
@@ -20,6 +20,8 @@ type FlagIconComponent = React.FC<FlagIconProps>;
20
20
  interface FlagIconInternalProps extends FlagIconProps {
21
21
  children?: React.ReactNode;
22
22
  svgContent: string;
23
+ /** Test ID for testing frameworks */
24
+ testID?: string;
23
25
  }
24
26
 
25
27
  declare const FlagIcon: React.FC<FlagIconInternalProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-icons-flag",
3
- "version": "0.158.0",
3
+ "version": "0.159.0",
4
4
  "main": "./web/index.js",
5
5
  "types": "./web/index.d.ts",
6
6
  "exports": {
package/web/index.d.mts CHANGED
@@ -20,6 +20,8 @@ type FlagIconComponent = React.FC<FlagIconProps>;
20
20
  interface FlagIconInternalProps extends FlagIconProps {
21
21
  children?: React.ReactNode;
22
22
  svgContent: string;
23
+ /** Test ID for testing frameworks */
24
+ testID?: string;
23
25
  }
24
26
 
25
27
  declare const FlagIcon: React.FC<FlagIconInternalProps>;
package/web/index.d.ts CHANGED
@@ -20,6 +20,8 @@ type FlagIconComponent = React.FC<FlagIconProps>;
20
20
  interface FlagIconInternalProps extends FlagIconProps {
21
21
  children?: React.ReactNode;
22
22
  svgContent: string;
23
+ /** Test ID for testing frameworks */
24
+ testID?: string;
23
25
  }
24
26
 
25
27
  declare const FlagIcon: React.FC<FlagIconInternalProps>;
package/web/index.js CHANGED
@@ -310,6 +310,7 @@ var FlagIcon = ({
310
310
  className,
311
311
  style,
312
312
  "data-testid": testId,
313
+ testID,
313
314
  "aria-label": ariaLabel,
314
315
  "aria-hidden": ariaHidden
315
316
  }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -318,7 +319,7 @@ var FlagIcon = ({
318
319
  $size: size,
319
320
  className,
320
321
  style,
321
- "data-testid": testId,
322
+ "data-testid": testId || testID,
322
323
  role: ariaLabel ? "img" : void 0,
323
324
  "aria-label": ariaLabel,
324
325
  "aria-hidden": ariaHidden != null ? ariaHidden : ariaLabel ? void 0 : true,