@xsolla/xui-quest-card 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/README.md +64 -63
- package/native/index.js +13 -4
- package/native/index.js.map +1 -1
- package/native/index.mjs +13 -4
- package/native/index.mjs.map +1 -1
- package/package.json +3 -3
- package/web/index.js +15 -5
- package/web/index.js.map +1 -1
- package/web/index.mjs +15 -5
- package/web/index.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-quest-card",
|
|
3
|
-
"version": "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",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"test:coverage": "vitest run --coverage"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@xsolla/xui-core": "0.
|
|
18
|
-
"@xsolla/xui-primitives-core": "0.
|
|
17
|
+
"@xsolla/xui-core": "0.159.0",
|
|
18
|
+
"@xsolla/xui-primitives-core": "0.159.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=16.8.0",
|
package/web/index.js
CHANGED
|
@@ -246,7 +246,8 @@ var Box = import_react2.default.forwardRef(
|
|
|
246
246
|
top: typeof props.top === "number" ? `${props.top}px` : props.top,
|
|
247
247
|
left: typeof props.left === "number" ? `${props.left}px` : props.left,
|
|
248
248
|
right: typeof props.right === "number" ? `${props.right}px` : props.right,
|
|
249
|
-
bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom
|
|
249
|
+
bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom,
|
|
250
|
+
...props.style
|
|
250
251
|
}
|
|
251
252
|
}
|
|
252
253
|
);
|
|
@@ -303,6 +304,8 @@ var Text = ({
|
|
|
303
304
|
className,
|
|
304
305
|
id,
|
|
305
306
|
role,
|
|
307
|
+
testID,
|
|
308
|
+
"data-testid": dataTestId,
|
|
306
309
|
numberOfLines: _numberOfLines,
|
|
307
310
|
...props
|
|
308
311
|
}) => {
|
|
@@ -313,7 +316,8 @@ var Text = ({
|
|
|
313
316
|
style,
|
|
314
317
|
className,
|
|
315
318
|
id,
|
|
316
|
-
role
|
|
319
|
+
role,
|
|
320
|
+
"data-testid": dataTestId || testID
|
|
317
321
|
}
|
|
318
322
|
);
|
|
319
323
|
};
|
|
@@ -337,8 +341,13 @@ var StyledIcon = (0, import_styled_components3.default)(FilteredDiv2)`
|
|
|
337
341
|
stroke: currentColor;
|
|
338
342
|
}
|
|
339
343
|
`;
|
|
340
|
-
var Icon = ({
|
|
341
|
-
|
|
344
|
+
var Icon = ({
|
|
345
|
+
children,
|
|
346
|
+
testID,
|
|
347
|
+
"data-testid": dataTestId,
|
|
348
|
+
...props
|
|
349
|
+
}) => {
|
|
350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledIcon, { "data-testid": dataTestId || testID, ...props, children });
|
|
342
351
|
};
|
|
343
352
|
|
|
344
353
|
// ../../foundation/primitives-web/src/index.tsx
|
|
@@ -1092,6 +1101,7 @@ var BaseIcon = ({
|
|
|
1092
1101
|
className,
|
|
1093
1102
|
style,
|
|
1094
1103
|
"data-testid": testId,
|
|
1104
|
+
testID,
|
|
1095
1105
|
"aria-label": ariaLabel,
|
|
1096
1106
|
"aria-hidden": ariaHidden
|
|
1097
1107
|
}) => {
|
|
@@ -1104,7 +1114,7 @@ var BaseIcon = ({
|
|
|
1104
1114
|
$color: color,
|
|
1105
1115
|
className,
|
|
1106
1116
|
style,
|
|
1107
|
-
"data-testid": testId,
|
|
1117
|
+
"data-testid": testId || testID,
|
|
1108
1118
|
role: ariaLabel ? "img" : void 0,
|
|
1109
1119
|
"aria-label": ariaLabel,
|
|
1110
1120
|
"aria-hidden": ariaHidden != null ? ariaHidden : ariaLabel ? void 0 : true,
|