@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.
- package/native/index.d.mts +2 -0
- package/native/index.d.ts +2 -0
- package/package.json +1 -1
- package/web/index.d.mts +2 -0
- package/web/index.d.ts +2 -0
- package/web/index.js +2 -1
- package/web/index.js.map +1 -1
- package/web/index.mjs +2 -1
- package/web/index.mjs.map +1 -1
package/native/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/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
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,
|