mantur-components 0.1.7 → 0.1.9
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 +1 -0
- package/dist/header/mock.d.ts +11 -6
- package/dist/mantur-components.js +406 -300
- package/dist/mantur-components.umd.cjs +1 -1
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/header/mock.d.ts
CHANGED
|
@@ -11,13 +11,18 @@ export declare const RECHARGE_PACKAGES: readonly [{
|
|
|
11
11
|
readonly points: 5500;
|
|
12
12
|
readonly price: 50;
|
|
13
13
|
readonly recommended: true;
|
|
14
|
-
}, {
|
|
15
|
-
readonly id: "points-24000";
|
|
16
|
-
readonly points: 24000;
|
|
17
|
-
readonly price: 200;
|
|
18
14
|
}];
|
|
19
|
-
export
|
|
20
|
-
export
|
|
15
|
+
export declare const CUSTOM_RECHARGE_MIN_PRICE = 10;
|
|
16
|
+
export declare const CUSTOM_RECHARGE_POINTS_PER_USD = 100;
|
|
17
|
+
export type FixedRechargePackage = (typeof RECHARGE_PACKAGES)[number];
|
|
18
|
+
export interface CustomRechargePackage {
|
|
19
|
+
id: "custom";
|
|
20
|
+
points: number;
|
|
21
|
+
price: number;
|
|
22
|
+
custom: true;
|
|
23
|
+
}
|
|
24
|
+
export type RechargePackage = FixedRechargePackage | CustomRechargePackage;
|
|
25
|
+
export type RechargePackageId = FixedRechargePackage["id"] | CustomRechargePackage["id"];
|
|
21
26
|
export type PointsLedgerType = "all" | "income" | "expense";
|
|
22
27
|
export type PointsLedgerSource = "all" | "recharge" | "gift";
|
|
23
28
|
export type PointsLedgerBadgeKind = "recharge" | "gift" | "deducted" | "expired";
|