@xsolla/xui-quest-card 0.84.0-pr130.1770080330
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 +27 -0
- package/native/index.d.ts +27 -0
- package/native/index.js +668 -0
- package/native/index.js.flow +58 -0
- package/native/index.js.map +1 -0
- package/native/index.mjs +635 -0
- package/native/index.mjs.map +1 -0
- package/package.json +58 -0
- package/web/index.d.mts +27 -0
- package/web/index.d.ts +27 -0
- package/web/index.js +646 -0
- package/web/index.js.flow +58 -0
- package/web/index.js.map +1 -0
- package/web/index.mjs +609 -0
- package/web/index.mjs.map +1 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type QuestCardStatus = "default" | "alert" | "warning" | "success";
|
|
4
|
+
interface QuestCardProps {
|
|
5
|
+
/** Quest title text */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Quest progress or description (e.g., "0/12 hours") */
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
/** Icon to display in the icon container */
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
/** Status indicator - shows an icon next to the title */
|
|
12
|
+
status?: QuestCardStatus;
|
|
13
|
+
/** Custom status icon (overrides default status icons) */
|
|
14
|
+
statusIcon?: React.ReactNode;
|
|
15
|
+
/** Reward tag or custom trailing content */
|
|
16
|
+
trailing?: React.ReactNode;
|
|
17
|
+
/** Card press handler */
|
|
18
|
+
onPress?: () => void;
|
|
19
|
+
/** Custom className for the container */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Test ID for testing */
|
|
22
|
+
testID?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare const QuestCard: React.FC<QuestCardProps>;
|
|
26
|
+
|
|
27
|
+
export { QuestCard, type QuestCardProps, type QuestCardStatus };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type QuestCardStatus = "default" | "alert" | "warning" | "success";
|
|
4
|
+
interface QuestCardProps {
|
|
5
|
+
/** Quest title text */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Quest progress or description (e.g., "0/12 hours") */
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
/** Icon to display in the icon container */
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
/** Status indicator - shows an icon next to the title */
|
|
12
|
+
status?: QuestCardStatus;
|
|
13
|
+
/** Custom status icon (overrides default status icons) */
|
|
14
|
+
statusIcon?: React.ReactNode;
|
|
15
|
+
/** Reward tag or custom trailing content */
|
|
16
|
+
trailing?: React.ReactNode;
|
|
17
|
+
/** Card press handler */
|
|
18
|
+
onPress?: () => void;
|
|
19
|
+
/** Custom className for the container */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Test ID for testing */
|
|
22
|
+
testID?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare const QuestCard: React.FC<QuestCardProps>;
|
|
26
|
+
|
|
27
|
+
export { QuestCard, type QuestCardProps, type QuestCardStatus };
|