@zezosoft/zezo-ott-react-native-ui-kit 1.3.1 → 1.3.3
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/lib/module/components/Subscription/SubOne.js +211 -647
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Subscription/components/SubsDetailsModal.js +293 -0
- package/lib/module/components/Subscription/components/SubsDetailsModal.js.map +1 -0
- package/lib/module/components/Subscription/components/SubscriptionCard.js +230 -0
- package/lib/module/components/Subscription/components/SubscriptionCard.js.map +1 -0
- package/lib/module/components/Subscription/components/index.js +5 -0
- package/lib/module/components/Subscription/components/index.js.map +1 -0
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +15 -28
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/components/SubsDetailsModal.d.ts +17 -0
- package/lib/typescript/src/components/Subscription/components/SubsDetailsModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/components/SubscriptionCard.d.ts +25 -0
- package/lib/typescript/src/components/Subscription/components/SubscriptionCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/components/index.d.ts +3 -0
- package/lib/typescript/src/components/Subscription/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/index.d.ts +12 -6
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,34 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { ThemeOverride } from '../../theme/themes';
|
|
7
|
-
export type Plan = {
|
|
8
|
-
id: string;
|
|
9
|
-
title: string;
|
|
10
|
-
price: string;
|
|
11
|
-
duration: string;
|
|
12
|
-
platforms: string;
|
|
13
|
-
benefits?: string[];
|
|
14
|
-
isPopular?: boolean;
|
|
15
|
-
extraDetails?: {
|
|
16
|
-
description?: string;
|
|
17
|
-
features?: string[];
|
|
18
|
-
terms?: string;
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
type SubscriptionSliderOneProps = {
|
|
1
|
+
import { type Plan } from './components/SubscriptionCard';
|
|
2
|
+
import type { ThemeOverride } from '../../theme';
|
|
3
|
+
type Props = {
|
|
23
4
|
theme?: ThemeOverride;
|
|
24
|
-
|
|
25
|
-
subscribeButtonText?: string;
|
|
5
|
+
plans: Plan[];
|
|
26
6
|
onSubscribe?: (plan: Plan) => void;
|
|
7
|
+
subscribeButtonText?: string;
|
|
27
8
|
subscribeLoadingId?: string | null;
|
|
28
|
-
plans: Plan[];
|
|
29
|
-
errorMessage?: string;
|
|
30
9
|
isLoading?: boolean;
|
|
10
|
+
errorMessage?: string;
|
|
31
11
|
onBackPress?: () => void;
|
|
12
|
+
onRestore?: () => void;
|
|
13
|
+
restoreLoading?: boolean;
|
|
14
|
+
restoreText?: string;
|
|
15
|
+
restoreDescription?: string;
|
|
16
|
+
onPressTerms?: () => void;
|
|
17
|
+
onPressPrivacy?: () => void;
|
|
18
|
+
termsText?: string;
|
|
19
|
+
privacyText?: string;
|
|
32
20
|
header: {
|
|
33
21
|
topTitle: string;
|
|
34
22
|
topTitleAlign?: 'center' | 'left';
|
|
@@ -39,8 +27,7 @@ type SubscriptionSliderOneProps = {
|
|
|
39
27
|
title: string;
|
|
40
28
|
subTitle: string;
|
|
41
29
|
};
|
|
42
|
-
extraContentText?: React.ReactNode;
|
|
43
30
|
};
|
|
44
|
-
declare const _default:
|
|
31
|
+
declare const _default: import("react").MemoExoticComponent<({ theme, onSubscribe, subscribeButtonText, subscribeLoadingId, plans, errorMessage, isLoading, onBackPress, onRestore, restoreLoading, restoreText, restoreDescription, header, footer, onPressTerms, onPressPrivacy, termsText, privacyText, }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
45
32
|
export default _default;
|
|
46
33
|
//# sourceMappingURL=SubOne.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubOne.d.ts","sourceRoot":"","sources":["../../../../../src/components/Subscription/SubOne.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SubOne.d.ts","sourceRoot":"","sources":["../../../../../src/components/Subscription/SubOne.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAoB,KAAK,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,IAAI,EAAE,CAAC;IAEd,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;QAClC,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;8SAyBC,KAAK;AAuLR,wBAA2C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TouchableOpacityProps, type PressableProps } from 'react-native';
|
|
3
|
+
import type { Plan } from './SubscriptionCard';
|
|
4
|
+
type Props = {
|
|
5
|
+
plan: Plan;
|
|
6
|
+
colors: {
|
|
7
|
+
surface: string;
|
|
8
|
+
background: string;
|
|
9
|
+
textPrimary: string;
|
|
10
|
+
textSecondary: string;
|
|
11
|
+
primary: string;
|
|
12
|
+
};
|
|
13
|
+
trigger?: React.ReactElement<PressableProps | TouchableOpacityProps>;
|
|
14
|
+
};
|
|
15
|
+
export declare const SubsDetailsModal: React.MemoExoticComponent<({ plan, colors, trigger }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=SubsDetailsModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubsDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Subscription/components/SubsDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAKL,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,cAAc,GAAG,qBAAqB,CAAC,CAAC;CACtE,CAAC;AAEF,eAAO,MAAM,gBAAgB,wDAAoC,KAAK,6CA8LpE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ITheme } from '../../../theme';
|
|
2
|
+
export type Plan = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
price: string;
|
|
6
|
+
duration: string;
|
|
7
|
+
platforms: string;
|
|
8
|
+
benefits?: string[];
|
|
9
|
+
isPopular?: boolean;
|
|
10
|
+
extraDetails?: {
|
|
11
|
+
description?: string;
|
|
12
|
+
features?: string[];
|
|
13
|
+
terms?: string;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const SubscriptionCard: import("react").MemoExoticComponent<({ plan, colors, onSubscribe, isProcessing, isLoading, subscribeButtonText, }: {
|
|
18
|
+
plan: Plan;
|
|
19
|
+
isProcessing?: boolean;
|
|
20
|
+
isLoading?: boolean;
|
|
21
|
+
colors: ITheme["colors"];
|
|
22
|
+
onSubscribe?: (plan: Plan) => void;
|
|
23
|
+
subscribeButtonText?: string;
|
|
24
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
25
|
+
//# sourceMappingURL=SubscriptionCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionCard.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Subscription/components/SubscriptionCard.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAM7C,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH,CAAC;AACF,eAAO,MAAM,gBAAgB,qHAQxB;IACD,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,6CAgHF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Subscription/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
@@ -3,16 +3,23 @@
|
|
|
3
3
|
* @lastModified jul 10 Jul 2025 at 6:40 PM
|
|
4
4
|
*/
|
|
5
5
|
declare const Subscription: {
|
|
6
|
-
One: import("react").MemoExoticComponent<({ theme, onSubscribe, subscribeButtonText, subscribeLoadingId, plans, errorMessage, isLoading, onBackPress, header, footer,
|
|
6
|
+
One: import("react").MemoExoticComponent<({ theme, onSubscribe, subscribeButtonText, subscribeLoadingId, plans, errorMessage, isLoading, onBackPress, onRestore, restoreLoading, restoreText, restoreDescription, header, footer, onPressTerms, onPressPrivacy, termsText, privacyText, }: {
|
|
7
7
|
theme?: import("../..").ThemeOverride;
|
|
8
|
-
|
|
8
|
+
plans: import("./components").Plan[];
|
|
9
|
+
onSubscribe?: (plan: import("./components").Plan) => void;
|
|
9
10
|
subscribeButtonText?: string;
|
|
10
|
-
onSubscribe?: (plan: import("./SubOne").Plan) => void;
|
|
11
11
|
subscribeLoadingId?: string | null;
|
|
12
|
-
plans: import("./SubOne").Plan[];
|
|
13
|
-
errorMessage?: string;
|
|
14
12
|
isLoading?: boolean;
|
|
13
|
+
errorMessage?: string;
|
|
15
14
|
onBackPress?: () => void;
|
|
15
|
+
onRestore?: () => void;
|
|
16
|
+
restoreLoading?: boolean;
|
|
17
|
+
restoreText?: string;
|
|
18
|
+
restoreDescription?: string;
|
|
19
|
+
onPressTerms?: () => void;
|
|
20
|
+
onPressPrivacy?: () => void;
|
|
21
|
+
termsText?: string;
|
|
22
|
+
privacyText?: string;
|
|
16
23
|
header: {
|
|
17
24
|
topTitle: string;
|
|
18
25
|
topTitleAlign?: "center" | "left";
|
|
@@ -23,7 +30,6 @@ declare const Subscription: {
|
|
|
23
30
|
title: string;
|
|
24
31
|
subTitle: string;
|
|
25
32
|
};
|
|
26
|
-
extraContentText?: React.ReactNode;
|
|
27
33
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
28
34
|
};
|
|
29
35
|
export { Subscription };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Subscription/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Subscription/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;yBAK4iC,CAAC;;;;;;;;;CAH9jC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zezosoft/zezo-ott-react-native-ui-kit",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "A professional React Native UI component library built for OTT applications.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "lib/typescript/src/index.d.ts",
|