@zezosoft/zezo-ott-react-native-ui-kit 0.1.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/LICENSE +20 -0
- package/README.md +32 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +1 -0
- package/lib/module/assets/animations/7227-vui-animation.json +1 -0
- package/lib/module/assets/animations/succesfull-payment.json +1 -0
- package/lib/module/assets/animations/voice-icon.json +1 -0
- package/lib/module/assets/img/back.png +0 -0
- package/lib/module/assets/img/bottom-panel.png +0 -0
- package/lib/module/assets/img/camera.png +0 -0
- package/lib/module/assets/img/camera2.png +0 -0
- package/lib/module/assets/img/h.svg +4 -0
- package/lib/module/assets/img/home.png +0 -0
- package/lib/module/assets/img/lock.png +0 -0
- package/lib/module/assets/img/play.png +0 -0
- package/lib/module/assets/img/profile.png +0 -0
- package/lib/module/assets/img/qr-code.png +0 -0
- package/lib/module/assets/img/shadow.png +0 -0
- package/lib/module/assets/img/shadow2.png +0 -0
- package/lib/module/assets/img/user.png +0 -0
- package/lib/module/assets/svg/content-error.svg +28 -0
- package/lib/module/assets/svg/download.svg +3 -0
- package/lib/module/assets/svg/favorites.svg +3 -0
- package/lib/module/assets/svg/home.svg +5 -0
- package/lib/module/assets/svg/menu-bar.svg +4 -0
- package/lib/module/assets/svg/my-space.svg +14 -0
- package/lib/module/assets/svg/play-icon-with-bg.svg +5 -0
- package/lib/module/assets/svg/search.svg +5 -0
- package/lib/module/assets/svg/server-error.svg +139 -0
- package/lib/module/components/Button/Button.js +22 -0
- package/lib/module/components/Button/Button.js.map +1 -0
- package/lib/module/components/Button/styles.js +23 -0
- package/lib/module/components/Button/styles.js.map +1 -0
- package/lib/module/components/Headers/One.js +101 -0
- package/lib/module/components/Headers/One.js.map +1 -0
- package/lib/module/components/Headers/Three.js +62 -0
- package/lib/module/components/Headers/Three.js.map +1 -0
- package/lib/module/components/Headers/Two.js +77 -0
- package/lib/module/components/Headers/Two.js.map +1 -0
- package/lib/module/components/Headers/index.js +17 -0
- package/lib/module/components/Headers/index.js.map +1 -0
- package/lib/module/components/Icons/AlertIcon.js +33 -0
- package/lib/module/components/Icons/AlertIcon.js.map +1 -0
- package/lib/module/components/Icons/DeviceIcon.js +25 -0
- package/lib/module/components/Icons/DeviceIcon.js.map +1 -0
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js +23 -0
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js.map +1 -0
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js +65 -0
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +1 -0
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js +56 -0
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +1 -0
- package/lib/module/components/Icons/NewIndex.js +24 -0
- package/lib/module/components/Icons/NewIndex.js.map +1 -0
- package/lib/module/components/Icons/ResendOTP.js +21 -0
- package/lib/module/components/Icons/ResendOTP.js.map +1 -0
- package/lib/module/components/Loader/Loader.js +35 -0
- package/lib/module/components/Loader/Loader.js.map +1 -0
- package/lib/module/components/Logo/Logo.js +41 -0
- package/lib/module/components/Logo/Logo.js.map +1 -0
- package/lib/module/components/Section/Card/Sliders/Styles/One.js +123 -0
- package/lib/module/components/Section/Card/Sliders/Styles/One.js.map +1 -0
- package/lib/module/components/Section/Card/Sliders/index.js +14 -0
- package/lib/module/components/Section/Card/Sliders/index.js.map +1 -0
- package/lib/module/components/Section/Card/Styles/One.js +92 -0
- package/lib/module/components/Section/Card/Styles/One.js.map +1 -0
- package/lib/module/components/Section/Card/index.js +14 -0
- package/lib/module/components/Section/Card/index.js.map +1 -0
- package/lib/module/components/Section/SectionType.js +98 -0
- package/lib/module/components/Section/SectionType.js.map +1 -0
- package/lib/module/components/Section/Sections.js +72 -0
- package/lib/module/components/Section/Sections.js.map +1 -0
- package/lib/module/components/index.js +13 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/index.js +9 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/sample.test.js +8 -0
- package/lib/module/sample.test.js.map +1 -0
- package/lib/module/theme/themes.js +118 -0
- package/lib/module/theme/themes.js.map +1 -0
- package/lib/module/theme/useAppTheme.js +14 -0
- package/lib/module/theme/useAppTheme.js.map +1 -0
- package/lib/module/types/content.types.js +2 -0
- package/lib/module/types/content.types.js.map +1 -0
- package/lib/module/types/index.js +5 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/sections.types.js +4 -0
- package/lib/module/types/sections.types.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/Button/Button.d.ts +9 -0
- package/lib/typescript/src/components/Button/Button.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/styles.d.ts +20 -0
- package/lib/typescript/src/components/Button/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/One.d.ts +25 -0
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/Three.d.ts +14 -0
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/Two.d.ts +19 -0
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/index.d.ts +11 -0
- package/lib/typescript/src/components/Headers/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +7 -0
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +7 -0
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts +6 -0
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts +3 -0
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts +3 -0
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +13 -0
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +1 -0
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts +7 -0
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Loader/Loader.d.ts +11 -0
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -0
- package/lib/typescript/src/components/Logo/Logo.d.ts +19 -0
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -0
- package/lib/typescript/src/components/Section/Card/Sliders/Styles/One.d.ts +18 -0
- package/lib/typescript/src/components/Section/Card/Sliders/Styles/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Section/Card/Sliders/index.d.ts +7 -0
- package/lib/typescript/src/components/Section/Card/Sliders/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Section/Card/Styles/One.d.ts +19 -0
- package/lib/typescript/src/components/Section/Card/Styles/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Section/Card/index.d.ts +7 -0
- package/lib/typescript/src/components/Section/Card/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Section/SectionType.d.ts +26 -0
- package/lib/typescript/src/components/Section/SectionType.d.ts.map +1 -0
- package/lib/typescript/src/components/Section/Sections.d.ts +27 -0
- package/lib/typescript/src/components/Section/Sections.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +10 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +7 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/sample.test.d.ts +1 -0
- package/lib/typescript/src/sample.test.d.ts.map +1 -0
- package/lib/typescript/src/theme/themes.d.ts +57 -0
- package/lib/typescript/src/theme/themes.d.ts.map +1 -0
- package/lib/typescript/src/theme/useAppTheme.d.ts +46 -0
- package/lib/typescript/src/theme/useAppTheme.d.ts.map +1 -0
- package/lib/typescript/src/types/content.types.d.ts +154 -0
- package/lib/typescript/src/types/content.types.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +3 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/lib/typescript/src/types/sections.types.d.ts +41 -0
- package/lib/typescript/src/types/sections.types.d.ts.map +1 -0
- package/package.json +168 -0
- package/src/assets/animations/135037-payment-processing-error.json +1 -0
- package/src/assets/animations/7227-vui-animation.json +1 -0
- package/src/assets/animations/succesfull-payment.json +1 -0
- package/src/assets/animations/voice-icon.json +1 -0
- package/src/assets/img/back.png +0 -0
- package/src/assets/img/bottom-panel.png +0 -0
- package/src/assets/img/camera.png +0 -0
- package/src/assets/img/camera2.png +0 -0
- package/src/assets/img/h.svg +4 -0
- package/src/assets/img/home.png +0 -0
- package/src/assets/img/lock.png +0 -0
- package/src/assets/img/play.png +0 -0
- package/src/assets/img/profile.png +0 -0
- package/src/assets/img/qr-code.png +0 -0
- package/src/assets/img/shadow.png +0 -0
- package/src/assets/img/shadow2.png +0 -0
- package/src/assets/img/user.png +0 -0
- package/src/assets/svg/content-error.svg +28 -0
- package/src/assets/svg/download.svg +3 -0
- package/src/assets/svg/favorites.svg +3 -0
- package/src/assets/svg/home.svg +5 -0
- package/src/assets/svg/menu-bar.svg +4 -0
- package/src/assets/svg/my-space.svg +14 -0
- package/src/assets/svg/play-icon-with-bg.svg +5 -0
- package/src/assets/svg/search.svg +5 -0
- package/src/assets/svg/server-error.svg +139 -0
- package/src/components/Button/Button.tsx +32 -0
- package/src/components/Button/styles.ts +21 -0
- package/src/components/Headers/One.tsx +100 -0
- package/src/components/Headers/Three.tsx +63 -0
- package/src/components/Headers/Two.tsx +75 -0
- package/src/components/Headers/index.ts +16 -0
- package/src/components/Icons/AlertIcon.tsx +29 -0
- package/src/components/Icons/DeviceIcon.tsx +24 -0
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +17 -0
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +55 -0
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +46 -0
- package/src/components/Icons/NewIndex.ts +23 -0
- package/src/components/Icons/ResendOTP.tsx +23 -0
- package/src/components/Loader/Loader.tsx +33 -0
- package/src/components/Logo/Logo.tsx +60 -0
- package/src/components/Section/Card/Sliders/Styles/One.tsx +147 -0
- package/src/components/Section/Card/Sliders/index.ts +13 -0
- package/src/components/Section/Card/Styles/One.tsx +112 -0
- package/src/components/Section/Card/index.ts +13 -0
- package/src/components/Section/SectionType.tsx +127 -0
- package/src/components/Section/Sections.tsx +120 -0
- package/src/components/index.ts +10 -0
- package/src/index.ts +6 -0
- package/src/sample.test.ts +5 -0
- package/src/theme/themes.ts +198 -0
- package/src/theme/useAppTheme.ts +13 -0
- package/src/types/content.types.ts +167 -0
- package/src/types/index.ts +2 -0
- package/src/types/sections.types.ts +56 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Pukhraj Dhamu
|
|
5
|
+
* @lastModified Sat 21 Sep 2024 at 07:51 PM
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
// import Sliders from './Card/Sliders';
|
|
9
|
+
|
|
10
|
+
import Sliders from "./Card/Sliders/index.js";
|
|
11
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
const defaultComponentMap = (type, props) => {
|
|
13
|
+
const commonProps = {
|
|
14
|
+
theme: props.theme,
|
|
15
|
+
title: props.name,
|
|
16
|
+
section_id: props.section_id,
|
|
17
|
+
data: props.data,
|
|
18
|
+
index: props.index
|
|
19
|
+
};
|
|
20
|
+
switch (type) {
|
|
21
|
+
case 'slider':
|
|
22
|
+
return /*#__PURE__*/_jsx(Sliders.Styles.One, {
|
|
23
|
+
...commonProps
|
|
24
|
+
});
|
|
25
|
+
// case 'slider_style_2':
|
|
26
|
+
// return <Sliders.Styles.Two {...commonProps} />;
|
|
27
|
+
// case 'continue_watching':
|
|
28
|
+
// return <NowWatching {...commonProps} />;
|
|
29
|
+
// case 'new_releases':
|
|
30
|
+
// case 'normal':
|
|
31
|
+
// return <Cards.Styles.One {...commonProps} />;
|
|
32
|
+
// case 'card_style_2':
|
|
33
|
+
// return <Cards.Styles.Two {...commonProps} />;
|
|
34
|
+
// case 'card_style_3':
|
|
35
|
+
// return <Cards.Styles.Three {...commonProps} />;
|
|
36
|
+
// case 'card_style_4':
|
|
37
|
+
// return <Cards.Styles.Four {...commonProps} />;
|
|
38
|
+
// case 'card_style_5':
|
|
39
|
+
// return <Cards.Styles.Five {...commonProps} />;
|
|
40
|
+
// case 'card_style_6':
|
|
41
|
+
// return <Cards.Styles.Six {...commonProps} />;
|
|
42
|
+
// case 'card_rotate_in_out':
|
|
43
|
+
// return <Cards.Styles.RotateInOut {...commonProps} />;
|
|
44
|
+
// case 'top_10':
|
|
45
|
+
// return <Cards.Styles.TopTen {...commonProps} />;
|
|
46
|
+
default:
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const SectionType = ({
|
|
51
|
+
type: sectionType,
|
|
52
|
+
data,
|
|
53
|
+
name,
|
|
54
|
+
customComponents = [],
|
|
55
|
+
theme,
|
|
56
|
+
index,
|
|
57
|
+
section_id
|
|
58
|
+
}) => {
|
|
59
|
+
const commonProps = {
|
|
60
|
+
data,
|
|
61
|
+
title: name
|
|
62
|
+
};
|
|
63
|
+
const customComponent = customComponents.find(component => component.type === sectionType);
|
|
64
|
+
if (customComponent) {
|
|
65
|
+
return /*#__PURE__*/React.cloneElement(customComponent.component, {
|
|
66
|
+
...(customComponent?.component?.props || {}),
|
|
67
|
+
...commonProps
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
const defaultComponent = defaultComponentMap(sectionType, {
|
|
71
|
+
data,
|
|
72
|
+
name,
|
|
73
|
+
section_id,
|
|
74
|
+
index,
|
|
75
|
+
theme
|
|
76
|
+
});
|
|
77
|
+
if (defaultComponent) return defaultComponent;
|
|
78
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
79
|
+
children: customComponents.filter(({
|
|
80
|
+
type: customType
|
|
81
|
+
}) => defaultComponentMap(customType, {
|
|
82
|
+
data,
|
|
83
|
+
name,
|
|
84
|
+
section_id,
|
|
85
|
+
index,
|
|
86
|
+
theme
|
|
87
|
+
}) === null).map(({
|
|
88
|
+
component,
|
|
89
|
+
type
|
|
90
|
+
}) => /*#__PURE__*/React.cloneElement(component, {
|
|
91
|
+
...(component?.props || {}),
|
|
92
|
+
key: type,
|
|
93
|
+
...commonProps
|
|
94
|
+
}))
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
export default SectionType;
|
|
98
|
+
//# sourceMappingURL=SectionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Sliders","jsx","_jsx","Fragment","_Fragment","defaultComponentMap","type","props","commonProps","theme","title","name","section_id","data","index","Styles","One","SectionType","sectionType","customComponents","customComponent","find","component","cloneElement","defaultComponent","children","filter","customType","map","key"],"sourceRoot":"../../../../src","sources":["components/Section/SectionType.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB;;AAIA,OAAOC,OAAO,MAAM,yBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAkBrC,MAAMC,mBAAmB,GAAGA,CAC1BC,IAAY,EACZC,KAEC,KACmB;EACpB,MAAMC,WAAW,GAAG;IAClBC,KAAK,EAAEF,KAAK,CAACE,KAAK;IAClBC,KAAK,EAAEH,KAAK,CAACI,IAAI;IACjBC,UAAU,EAAEL,KAAK,CAACK,UAAU;IAC5BC,IAAI,EAAEN,KAAK,CAACM,IAAI;IAChBC,KAAK,EAAEP,KAAK,CAACO;EACf,CAAC;EAED,QAAQR,IAAI;IACV,KAAK,QA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AEhB;IAAK,CAAC,kBACvBP,KAAK,CAACwB,YAAY,CAACD,SAAS,EAAE;MAC5B,IAAIA,SAAS,EAAEf,KAAK,IAAI,CAAC,CAAC,CAAC;MAC3BsB,GAAG,EAAEvB,IAAI;MACT,GAAGE;IACL,CAAC,CACH;EAAC,CACH,CAAC;AAEP,CAAC;AAED,eAAeS,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Sun 08 Jun 2025 at 03:50 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { useMemo } from 'react';
|
|
9
|
+
import { FlatList } from 'react-native';
|
|
10
|
+
import { scale } from 'react-native-size-matters';
|
|
11
|
+
import Animated from 'react-native-reanimated';
|
|
12
|
+
import SectionType from "./SectionType.js";
|
|
13
|
+
import { Loader } from "../Loader/Loader.js";
|
|
14
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
+
// 👇 Type-safe animated FlatList
|
|
16
|
+
const AnimatedFlatList = Animated.createAnimatedComponent(FlatList);
|
|
17
|
+
export const Sections = ({
|
|
18
|
+
customComponents,
|
|
19
|
+
LoaderComponent = /*#__PURE__*/_jsx(Loader, {}),
|
|
20
|
+
ErrorComponent,
|
|
21
|
+
onScroll,
|
|
22
|
+
contentContainerStyle,
|
|
23
|
+
data,
|
|
24
|
+
onEndReached,
|
|
25
|
+
theme
|
|
26
|
+
}) => {
|
|
27
|
+
const sectionData = useMemo(() => data, [data]);
|
|
28
|
+
const onEndReachedHandler = () => {
|
|
29
|
+
if (onEndReached) onEndReached();
|
|
30
|
+
};
|
|
31
|
+
const renderItem = ({
|
|
32
|
+
item,
|
|
33
|
+
index
|
|
34
|
+
}) => {
|
|
35
|
+
if (!item) return null;
|
|
36
|
+
return /*#__PURE__*/_jsx(SectionType, {
|
|
37
|
+
index: index,
|
|
38
|
+
type: item.type || 'normal',
|
|
39
|
+
data: item.content,
|
|
40
|
+
name: item.name,
|
|
41
|
+
theme: theme,
|
|
42
|
+
customComponents: customComponents,
|
|
43
|
+
section_id: item._id
|
|
44
|
+
}, index);
|
|
45
|
+
};
|
|
46
|
+
if (!data) {
|
|
47
|
+
if (LoaderComponent) return /*#__PURE__*/_jsx(_Fragment, {
|
|
48
|
+
children: LoaderComponent
|
|
49
|
+
});
|
|
50
|
+
if (ErrorComponent) return /*#__PURE__*/_jsx(_Fragment, {
|
|
51
|
+
children: ErrorComponent
|
|
52
|
+
});
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return /*#__PURE__*/_jsx(AnimatedFlatList, {
|
|
56
|
+
initialNumToRender: 5,
|
|
57
|
+
showsVerticalScrollIndicator: false,
|
|
58
|
+
removeClippedSubviews: true,
|
|
59
|
+
onScroll: onScroll // casting to avoid SharedValue type issues
|
|
60
|
+
,
|
|
61
|
+
scrollEventThrottle: 16,
|
|
62
|
+
data: sectionData,
|
|
63
|
+
renderItem: renderItem,
|
|
64
|
+
keyExtractor: (_item, index) => index.toString(),
|
|
65
|
+
onEndReached: onEndReachedHandler,
|
|
66
|
+
onEndReachedThreshold: 0.7,
|
|
67
|
+
contentContainerStyle: [{
|
|
68
|
+
paddingBottom: scale(100)
|
|
69
|
+
}, contentContainerStyle]
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=Sections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","FlatList","scale","Animated","SectionType","Loader","jsx","_jsx","Fragment","_Fragment","AnimatedFlatList","createAnimatedComponent","Sections","customComponents","LoaderComponent","ErrorComponent","onScroll","contentContainerStyle","data","onEndReached","theme","sectionData","onEndReachedHandler","renderItem","item","index","type","content","name","section_id","_id","children","initialNumToRender","showsVerticalScrollIndicator","removeClippedSubviews","scrollEventThrottle","keyExtractor","_item","toString","onEndReachedThreshold","padd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AAC;EAED,IAAI,CAACP,IAAI,EAAE;IACT,IAAIJ,eAAe,EAAE,oBAAOP,IAAA,CAAAE,SAAA;MAAAsB,QAAA,EAAGjB;IAAe,CAAG,CAAC;IAClD,IAAIC,cAAc,EAAE,oBAAOR,IAAA,CAAAE,SAAA;MAAAsB,QAAA,EAAGhB;IAAc,CAAG,CAAC;IAChD,OAAO,IAAI;EACb;EAEA,oBACER,IAAA,CAACG,gBAAgB;IACfsB,kBAAkB,EAAE,CAAE;IACtBC,4BAA4B,EAAE,KAAM;IACpCC,qBAAqB;IACrBlB,QAAQ,EAAEA,QAAgB,CAAC;IAAA;IAC3BmB,mBAAmB,EAAE,EAAG;IACxBjB,IAAI,EAAEG,WAAY;IAClBE,UAAU,EAAEA,UAAW;IACvBa,YAAY,EAAEA,CAACC,KAAK,EAAEZ,KAAK,KAAKA,KAAK,CAACa,QAAQ,CAAC,CAAE;IACjDnB,YAAY,EAAEG,mBAAoB;IAClCiB,qBAAqB,EAAE,GAAI;IAC3BtB,qBAAqB,EAAE,CACrB;MACEuB,aAAa,EAAEtC,KAAK,CAAC,GAAG;IAC1B,CAAC,EACDe,qBAAqB;EACrB,CACH,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Sun 08 Jun 2025 at 03:23 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export * from "./Button/Button.js";
|
|
9
|
+
export * from "./Loader/Loader.js";
|
|
10
|
+
export * from "./Headers/index.js";
|
|
11
|
+
export * from "./Section/Sections.js";
|
|
12
|
+
export * from "./Logo/Logo.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,oBAAiB;AAC/B,cAAc,oBAAiB;AAC/B,cAAc,oBAAW;AACzB,cAAc,uBAAoB;AAClC,cAAc,gBAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,cAAc,uBAAc;AAC5B,cAAc,kBAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["describe","it","expect","toBe"],"sourceRoot":"../../src","sources":["sample.test.ts"],"mappings":";;AAAAA,QAAQ,CAAC,aAAa,EAAE,MAAM;EAC5BC,EAAE,CAAC,aAAa,EAAE,MAAM;IACtBC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC;EACvB,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Mon 09 Jun 2025 at 04:45 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { MD3DarkTheme, DefaultTheme } from 'react-native-paper';
|
|
9
|
+
|
|
10
|
+
// ✅ AppTheme allows partial override
|
|
11
|
+
|
|
12
|
+
export const LightTheme = {
|
|
13
|
+
...DefaultTheme,
|
|
14
|
+
dark: false,
|
|
15
|
+
colors: {
|
|
16
|
+
primary: '#3B82F6',
|
|
17
|
+
onPrimary: '#FFFFFF',
|
|
18
|
+
primaryContainer: '#DBEAFE',
|
|
19
|
+
onPrimaryContainer: '#1E40AF',
|
|
20
|
+
secondary: '#2563EB',
|
|
21
|
+
onSecondary: '#FFFFFF',
|
|
22
|
+
secondaryContainer: '#E0E7FF',
|
|
23
|
+
onSecondaryContainer: '#1E40AF',
|
|
24
|
+
tertiary: '#FBBF24',
|
|
25
|
+
onTertiary: '#92400E',
|
|
26
|
+
tertiaryContainer: '#FEF3C7',
|
|
27
|
+
onTertiaryContainer: '#92400E',
|
|
28
|
+
surface: '#FFFFFF',
|
|
29
|
+
onSurface: '#1F2937',
|
|
30
|
+
surfaceVariant: '#F3F4F6',
|
|
31
|
+
onSurfaceVariant: '#6B7280',
|
|
32
|
+
background: '#F9FAFB',
|
|
33
|
+
onBackground: '#111827',
|
|
34
|
+
error: '#DC2626',
|
|
35
|
+
onError: '#FFFFFF',
|
|
36
|
+
errorContainer: '#FEE2E2',
|
|
37
|
+
onErrorContainer: '#DC2626',
|
|
38
|
+
outline: '#D1D5DB',
|
|
39
|
+
outlineVariant: '#E5E7EB',
|
|
40
|
+
shadow: 'rgba(0, 0, 0, 0.1)',
|
|
41
|
+
scrim: 'rgba(0, 0, 0, 0.2)',
|
|
42
|
+
backdrop: 'rgba(243, 244, 246, 0.7)',
|
|
43
|
+
inverseSurface: '#1F2937',
|
|
44
|
+
inverseOnSurface: '#F9FAFB',
|
|
45
|
+
inversePrimary: '#2563EB',
|
|
46
|
+
elevation: {
|
|
47
|
+
level0: 'transparent',
|
|
48
|
+
level1: '#F3F4F6',
|
|
49
|
+
level2: '#E5E7EB',
|
|
50
|
+
level3: '#D1D5DB',
|
|
51
|
+
level4: '#9CA3AF',
|
|
52
|
+
level5: '#6B7280'
|
|
53
|
+
},
|
|
54
|
+
surfaceDisabled: 'rgba(31, 41, 55, 0.12)',
|
|
55
|
+
onSurfaceDisabled: 'rgba(31, 41, 55, 0.38)',
|
|
56
|
+
// custom
|
|
57
|
+
CustomPrimary: '#3B82F6',
|
|
58
|
+
CustomSecondary: '#2563EB',
|
|
59
|
+
CustomText: '#111827',
|
|
60
|
+
CustomWhiteColor: '#FFFFFF',
|
|
61
|
+
CustomBlackColor: '#000000',
|
|
62
|
+
CustomTransparentColor: 'rgba(0,0,0,0)'
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export const DarkTheme = {
|
|
66
|
+
...MD3DarkTheme,
|
|
67
|
+
dark: true,
|
|
68
|
+
colors: {
|
|
69
|
+
primary: '#60A5FA',
|
|
70
|
+
onPrimary: '#1E40AF',
|
|
71
|
+
primaryContainer: '#1E40AF',
|
|
72
|
+
onPrimaryContainer: '#DBEAFE',
|
|
73
|
+
secondary: '#3B82F6',
|
|
74
|
+
onSecondary: '#DBEAFE',
|
|
75
|
+
secondaryContainer: '#2563EB',
|
|
76
|
+
onSecondaryContainer: '#DBEAFE',
|
|
77
|
+
tertiary: '#FBBF24',
|
|
78
|
+
onTertiary: '#78350F',
|
|
79
|
+
tertiaryContainer: '#92400E',
|
|
80
|
+
onTertiaryContainer: '#78350F',
|
|
81
|
+
surface: '#111827',
|
|
82
|
+
onSurface: '#F9FAFB',
|
|
83
|
+
surfaceVariant: '#374151',
|
|
84
|
+
onSurfaceVariant: '#D1D5DB',
|
|
85
|
+
background: '#0F172A',
|
|
86
|
+
onBackground: '#F9FAFB',
|
|
87
|
+
error: '#EF4444',
|
|
88
|
+
onError: '#FFFFFF',
|
|
89
|
+
errorContainer: '#B91C1C',
|
|
90
|
+
onErrorContainer: '#EF4444',
|
|
91
|
+
outline: '#4B5563',
|
|
92
|
+
outlineVariant: '#374151',
|
|
93
|
+
shadow: 'rgba(0, 0, 0, 0.7)',
|
|
94
|
+
scrim: 'rgba(0, 0, 0, 0.7)',
|
|
95
|
+
backdrop: 'rgba(15, 23, 42, 0.7)',
|
|
96
|
+
inverseSurface: '#F9FAFB',
|
|
97
|
+
inverseOnSurface: '#1F2937',
|
|
98
|
+
inversePrimary: '#2563EB',
|
|
99
|
+
elevation: {
|
|
100
|
+
level0: 'transparent',
|
|
101
|
+
level1: '#1F2937',
|
|
102
|
+
level2: '#111827',
|
|
103
|
+
level3: '#0F172A',
|
|
104
|
+
level4: '#0B1120',
|
|
105
|
+
level5: '#090E1A'
|
|
106
|
+
},
|
|
107
|
+
surfaceDisabled: 'rgba(249, 250, 251, 0.12)',
|
|
108
|
+
onSurfaceDisabled: 'rgba(249, 250, 251, 0.38)',
|
|
109
|
+
// custom
|
|
110
|
+
CustomPrimary: '#3B82F6',
|
|
111
|
+
CustomSecondary: '#2563EB',
|
|
112
|
+
CustomText: '#F9FAFB',
|
|
113
|
+
CustomWhiteColor: '#F9FAFB',
|
|
114
|
+
CustomBlackColor: '#000000',
|
|
115
|
+
CustomTransparentColor: 'rgba(0,0,0,0)'
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
//# sourceMappingURL=themes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MD3DarkTheme","DefaultTheme","LightTheme","dark","colors","primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","surface","onSurface","surfaceVariant","onSurfaceVariant","background","onBackground","error","onError","errorContainer","onErrorContainer","outline","outlineVariant","shadow","scrim","backdrop","inverseSurface","inverseOnSurface","inversePrimary","elevation","level0","level1","level2","level3","level4","level5","surfaceDisabled","onSurfaceDisabled","CustomPrimary","CustomSecondary","CustomText","CustomWhiteColor","CustomBlackColor","CustomTransparentColor","DarkTheme"],"sourceRoot":"../../../src","sources":["theme/themes.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,YAAY,EAAEC,YAAY,QAAQ,oBAAoB;;AA0D/D;;AAMA,OAAO,MAAMC,UAAkB,GAAG;EAChC,GAAGD,YAAY;EACfE,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE;IACNC,OAAO,EAAE,SAAS;IAClBC,SAAS,EAAE,SAAS;IACpBC,gBAAgB,EAAE,SAAS;IAC3BC,kBAAkB,EAAE,SAAS;IAE7BC,SAAS,EAAE,SAAS;IACpBC,WAAW,EAAE,SAAS;IACtBC,kBAAkB,EAAE,SAAS;IAC7BC,oBAAoB,EAAE,SAAS;IAE/BC,QAAQ,EAAE,SAAS;IACn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,kBAAkB,EAAE,SAAS;IAC7BC,oBAAoB,EAAE,SAAS;IAE/BC,QAAQ,EAAE,SAAS;IACnBC,UAAU,EAAE,SAAS;IACrBC,iBAAiB,EAAE,SAAS;IAC5BC,mBAAmB,EAAE,SAAS;IAE9BC,OAAO,EAAE,SAAS;IAClBC,SAAS,EAAE,SAAS;IACpBC,cAAc,EAAE,SAAS;IACzBC,gBAAgB,EAAE,SAAS;IAE3BC,UAAU,EAAE,SAAS;IACrBC,YAAY,EAAE,SAAS;IAEvBC,KAAK,EAAE,SAAS;IAChBC,OAAO,EAAE,SAAS;IAClBC,cAAc,EAAE,SAAS;IACzBC,gBAAgB,EAAE,SAAS;IAE3BC,OAAO,EAAE,SAAS;IAClBC,cAAc,EAAE,SAAS;IAEzBC,MAAM,EAAE,oBAAoB;IAC5BC,KAAK,EAAE,oBAAoB;IAC3BC,QAAQ,EAAE,uBAAuB;IAEjCC,cAAc,EAAE,SAAS;IACzBC,gBAAgB,EAAE,SAAS;IAC3BC,cAAc,EAAE,SAAS;IAEzBC,SAAS,EAAE;MACTC,MAAM,EAAE,aAAa;MACrBC,MAAM,EAAE,SAAS;MACjBC,MAAM,EAAE,SAAS;MACjBC,MAAM,EAAE,SAAS;MACjBC,MAAM,EAAE,SAAS;MACjBC,MAAM,EAAE;IACV,CAAC;IAEDC,eAAe,EAAE,2BAA2B;IAC5CC,iBAAiB,EAAE,2BAA2B;IAE9C;IACAC,aAAa,EAAE,SAAS;IACxBC,eAAe,EAAE,SAAS;IAC1BC,UAAU,EAAE,SAAS;IACrBC,gBAAgB,EAAE,SAAS;IAC3BC,gBAAgB,EAAE,SAAS;IAC3BC,sBAAsB,EAAE;EAC1B;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useColorScheme } from 'react-native';
|
|
4
|
+
import { LightTheme, DarkTheme } from "./themes.js";
|
|
5
|
+
export function useAppTheme(externalTheme) {
|
|
6
|
+
const colorScheme = useColorScheme();
|
|
7
|
+
const isDarkAllowed = externalTheme?.dark === true && colorScheme === 'dark';
|
|
8
|
+
const appliedTheme = isDarkAllowed ? DarkTheme : LightTheme;
|
|
9
|
+
return {
|
|
10
|
+
colors: appliedTheme.colors,
|
|
11
|
+
isDarkMode: appliedTheme.dark ?? false
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=useAppTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useColorScheme","LightTheme","DarkTheme","useAppTheme","externalTheme","colorScheme","isDarkAllowed","dark","appliedTheme","colors","isDarkMode"],"sourceRoot":"../../../src","sources":["theme/useAppTheme.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,cAAc;AAE7C,SAASC,UAAU,EAAEC,SAAS,QAAQ,aAAU;AAEhD,OAAO,SAASC,WAAWA,CAACC,aAAwB,EAAE;EACpD,MAAMC,WAAW,GAAGL,cAAc,CAAC,CAAC;EACpC,MAAMM,aAAa,GAAGF,aAAa,EAAEG,IAAI,KAAK,IAAI,IAAIF,WAAW,KAAK,MAAM;EAC5E,MAAMG,YAAY,GAAGF,aAAa,GAAGJ,SAAS,GAAGD,UAAU;EAC3D,OAAO;IACLQ,MAAM,EAAED,YAAY,CAACC,MAAM;IAC3BC,UAAU,EAAEF,YAAY,CAACD,IAAI,IAAI;EACnC,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/content.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;AAAA,cAAc,oBAAiB;AAC/B,cAAc,qBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/sections.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TouchableOpacityProps } from 'react-native';
|
|
3
|
+
interface ButtonProps extends TouchableOpacityProps {
|
|
4
|
+
title: string;
|
|
5
|
+
variant?: 'primary' | 'secondary';
|
|
6
|
+
}
|
|
7
|
+
export declare const Button: React.FC<ButtonProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAGtB,UAAU,WAAY,SAAQ,qBAAqB;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACnC;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkBxC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
button: {
|
|
3
|
+
padding: number;
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
alignItems: "center";
|
|
6
|
+
justifyContent: "center";
|
|
7
|
+
};
|
|
8
|
+
primary: {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
};
|
|
11
|
+
secondary: {
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
};
|
|
14
|
+
text: {
|
|
15
|
+
color: string;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
fontWeight: "600";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAkBjB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Mon 09 Jun 2025 at 03:11 PM
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { AppTheme } from '../../theme/themes';
|
|
7
|
+
export interface HeaderOneProps {
|
|
8
|
+
theme?: AppTheme;
|
|
9
|
+
logoUri: string;
|
|
10
|
+
MenuIcon?: React.FC<{
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
color?: string;
|
|
14
|
+
}>;
|
|
15
|
+
SearchIcon?: React.FC<{
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
color?: string;
|
|
19
|
+
}>;
|
|
20
|
+
onMenuPress?: () => void;
|
|
21
|
+
onSearchPress?: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare const HeaderOne: React.FC<HeaderOneProps>;
|
|
24
|
+
export default HeaderOne;
|
|
25
|
+
//# sourceMappingURL=One.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"One.d.ts","sourceRoot":"","sources":["../../../../../src/components/Headers/One.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGnD,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvE,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzE,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAqDvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Mon 09 Jun 2025 at 03:11 PM
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { ITheme } from '../../theme/themes';
|
|
7
|
+
export interface HeaderThreeProps {
|
|
8
|
+
logoUri: string;
|
|
9
|
+
category?: React.ReactNode;
|
|
10
|
+
theme?: ITheme;
|
|
11
|
+
}
|
|
12
|
+
declare const HeaderThree: React.FC<HeaderThreeProps>;
|
|
13
|
+
export default HeaderThree;
|
|
14
|
+
//# sourceMappingURL=Three.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Three.d.ts","sourceRoot":"","sources":["../../../../../src/components/Headers/Three.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Mon 09 Jun 2025 at 03:11 PM
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { ITheme } from '../../theme/themes';
|
|
7
|
+
export interface HeaderTwoProps {
|
|
8
|
+
theme?: ITheme;
|
|
9
|
+
logoUri: string;
|
|
10
|
+
MenuIcon?: React.FC<{
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
color?: string;
|
|
14
|
+
}>;
|
|
15
|
+
onMenuPress?: () => void;
|
|
16
|
+
}
|
|
17
|
+
declare const HeaderTwo: React.FC<HeaderTwoProps>;
|
|
18
|
+
export default HeaderTwo;
|
|
19
|
+
//# sourceMappingURL=Two.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Two.d.ts","sourceRoot":"","sources":["../../../../../src/components/Headers/Two.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvE,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA+BvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Sun 08 Jun 2025 at 03:16 PM
|
|
4
|
+
*/
|
|
5
|
+
declare const Header: {
|
|
6
|
+
One: import("react").FC<import("./One").HeaderOneProps>;
|
|
7
|
+
Two: import("react").FC<import("./Two").HeaderTwoProps>;
|
|
8
|
+
Three: import("react").FC<import("./Three").HeaderThreeProps>;
|
|
9
|
+
};
|
|
10
|
+
export { Header };
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Headers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,QAAA,MAAM,MAAM;;;;CAIX,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/AlertIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,SAAS,CAAC,EACxB,IAAiB,EACjB,WAAuB,EACvB,OAAmB,GACpB;;;;CAAA,qBAoBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/DeviceIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,UAAU,CAAC,EAClB,IAAS,EACT,KAAc,GACf,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,qBAYA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DoneIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Icons/DoneIcon/DoneIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,QAAQ,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,qBAWjD;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForgotPasswordMessageIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/ForgotPasswordMessageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,qBAmDnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForgotPasswordMessageIconTwo.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/ForgotPasswordMessageIconTwo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,GAAG,qBA0CtD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const Icons: {
|
|
2
|
+
MenuBar: import("react").FC<import("react-native-svg").SvgProps>;
|
|
3
|
+
Search: import("react").FC<import("react-native-svg").SvgProps>;
|
|
4
|
+
Home: import("react").FC<import("react-native-svg").SvgProps>;
|
|
5
|
+
Download: import("react").FC<import("react-native-svg").SvgProps>;
|
|
6
|
+
MySpace: import("react").FC<import("react-native-svg").SvgProps>;
|
|
7
|
+
Favorites: import("react").FC<import("react-native-svg").SvgProps>;
|
|
8
|
+
PlayIconWithBg: import("react").FC<import("react-native-svg").SvgProps>;
|
|
9
|
+
ContentError: import("react").FC<import("react-native-svg").SvgProps>;
|
|
10
|
+
ServerError: import("react").FC<import("react-native-svg").SvgProps>;
|
|
11
|
+
};
|
|
12
|
+
export default Icons;
|
|
13
|
+
//# sourceMappingURL=NewIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewIndex.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/NewIndex.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,KAAK;;;;;;;;;;CAUV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResendOTP.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/ResendOTP.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,qBAgBA"}
|