ouisys-component-library 2.0.10 → 2.0.11

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.
Files changed (71) hide show
  1. package/README.md +4 -1
  2. package/dist/Creative.js +2 -0
  3. package/dist/Creative.js.map +1 -0
  4. package/dist/CreativeZipFolder.js +2 -0
  5. package/dist/CreativeZipFolder.js.map +1 -0
  6. package/dist/Features.js +1 -1
  7. package/dist/Features.js.map +1 -1
  8. package/dist/Footer.js +2 -0
  9. package/dist/Footer.js.map +1 -0
  10. package/dist/Header.js +2 -0
  11. package/dist/Header.js.map +1 -0
  12. package/dist/LanguageSwitcher.js +1 -1
  13. package/dist/LanguageSwitcher.js.map +1 -1
  14. package/dist/LovePrelander.js +2 -0
  15. package/dist/LovePrelander.js.map +1 -0
  16. package/dist/Menu.js +2 -0
  17. package/dist/Menu.js.map +1 -0
  18. package/dist/RefundPolicy.js +2 -0
  19. package/dist/RefundPolicy.js.map +1 -0
  20. package/dist/Showcase.js +1 -1
  21. package/dist/Showcase.js.map +1 -1
  22. package/dist/Testimonials.js +2 -0
  23. package/dist/Testimonials.js.map +1 -0
  24. package/dist/Unsubscription.js +2 -0
  25. package/dist/Unsubscription.js.map +1 -0
  26. package/dist/ar-a314efa8.js +2 -0
  27. package/dist/ar-a314efa8.js.map +1 -0
  28. package/dist/ar-ce955703.js +2 -0
  29. package/dist/ar-ce955703.js.map +1 -0
  30. package/dist/en-3c998db9.js +2 -0
  31. package/dist/en-3c998db9.js.map +1 -0
  32. package/dist/en-8439f778.js +2 -0
  33. package/dist/en-8439f778.js.map +1 -0
  34. package/dist/types/Creatives/Creative/Creative.d.ts +5 -0
  35. package/dist/types/Creatives/Creative/Creative.types.d.ts +20 -0
  36. package/dist/types/Creatives/CreativeZipFolder/CreativeZipFolder.d.ts +5 -0
  37. package/dist/types/{Creative/ZipFolderCreative/ZipFolderCreative.types.d.ts → Creatives/CreativeZipFolder/CreativeZipFolder.types.d.ts} +11 -1
  38. package/dist/types/Features/Features.d.ts +1 -1
  39. package/dist/types/Features/Features.types.d.ts +8 -4
  40. package/dist/types/Footer/Footer.d.ts +3 -0
  41. package/dist/types/Footer/Footer.types.d.ts +24 -0
  42. package/dist/types/Footer/Localization/index.d.ts +30 -0
  43. package/dist/types/Header/Header.d.ts +5 -0
  44. package/dist/types/Header/Header.types.d.ts +23 -0
  45. package/dist/types/Menu/Menu.d.ts +5 -0
  46. package/dist/types/Menu/Menu.types.d.ts +20 -0
  47. package/dist/types/Prelanders/LovePrelander/LovePrelander.d.ts +5 -0
  48. package/dist/types/Prelanders/LovePrelander/LovePrelander.types.d.ts +25 -0
  49. package/dist/types/RefundPolicy/Localization/index.d.ts +28 -0
  50. package/dist/types/RefundPolicy/RefundPolicy.d.ts +3 -0
  51. package/dist/types/RefundPolicy/RefundPolicy.types.d.ts +28 -0
  52. package/dist/types/Showcase/Showcase.d.ts +1 -1
  53. package/dist/types/Showcase/Showcase.types.d.ts +7 -3
  54. package/dist/types/Testimonials/Testimonials.d.ts +5 -0
  55. package/dist/types/Testimonials/Testimonials.types.d.ts +20 -0
  56. package/dist/types/Unsubscription/Unsubscription.d.ts +5 -0
  57. package/dist/types/Unsubscription/Unsubscription.types.d.ts +12 -0
  58. package/dist/types/component-exports/Creative/Creative.d.ts +2 -0
  59. package/dist/types/component-exports/CreativeZipFolder/CreativeZipFolder.d.ts +2 -0
  60. package/dist/types/component-exports/Footer/Footer.d.ts +2 -0
  61. package/dist/types/component-exports/Header/Header.d.ts +2 -0
  62. package/dist/types/component-exports/LovePrelander/LovePrelander.d.ts +2 -0
  63. package/dist/types/component-exports/Menu/Menu.d.ts +2 -0
  64. package/dist/types/component-exports/RefundPolicy/RefundPolicy.d.ts +2 -0
  65. package/dist/types/component-exports/Testimonials/Testimonials.d.ts +2 -0
  66. package/dist/types/component-exports/Unsubscription/Unsubscription.d.ts +2 -0
  67. package/package.json +38 -6
  68. package/dist/ZipFolderCreative.js +0 -2
  69. package/dist/ZipFolderCreative.js.map +0 -1
  70. package/dist/types/Creative/ZipFolderCreative/ZipFolderCreative.d.ts +0 -5
  71. package/dist/types/component-exports/ZipFolderCreative/ZipFolderCreative.d.ts +0 -2
@@ -0,0 +1,2 @@
1
+ const a={astrology:[{name:"astrology name 1"},{name:"astrology name 2"},{name:"astrology name 3"},{name:"astrology name 4"},{name:"astrology name 5"},{name:"astrology name 6"}],fitness:[{name:"fitness name 1"},{name:"fitness name 2"},{name:"fitness name 3"},{name:"fitness name 4"},{name:"fitness name 5"},{name:"fitness name 6"}],football:[{name:"football name 1"},{name:"football name 2"},{name:"football name 3"},{name:"football name 4"},{name:"football name 5"},{name:"football name 6"}],games:[{name:"games name 1"},{name:"games name 2"},{name:"games name 3"},{name:"games name 4"},{name:"games name 5"},{name:"games name 6"}],iqbrain:[{name:"iqbrain name 1"},{name:"iqbrain name 2"},{name:"iqbrain name 3"},{name:"iqbrain name 4"},{name:"iqbrain name 5"},{name:"iqbrain name 6"}],karaoke:[{name:"karaoke name 1"},{name:"karaoke name 2"},{name:"karaoke name 3"},{name:"karaoke name 4"},{name:"karaoke name 5"},{name:"karaoke name 6"}],video:[{name:"video name 1"},{name:"video name 2"},{name:"video name 3"},{name:"video name 4"},{name:"video name 5"},{name:"video name 6"}],xracademy:[{name:"xracademy name 1"},{name:"xracademy name 2"},{name:"xracademy name 3"},{name:"xracademy name 4"},{name:"xracademy name 5"},{name:"xracademy name 6"}]};export{a as default};
2
+ //# sourceMappingURL=en-3c998db9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-3c998db9.js","sources":["../src/Showcase/locales/Showcase/en.js"],"sourcesContent":["const astrology = [\n { name: 'astrology name 1' },\n { name: 'astrology name 2' },\n { name: 'astrology name 3' },\n { name: 'astrology name 4' },\n { name: 'astrology name 5' },\n { name: 'astrology name 6' }\n];\n\nconst fitness = [\n { name: 'fitness name 1' },\n { name: 'fitness name 2' },\n { name: 'fitness name 3' },\n { name: 'fitness name 4' },\n { name: 'fitness name 5' },\n { name: 'fitness name 6' }\n];\n\nconst football = [\n { name: 'football name 1' },\n { name: 'football name 2' },\n { name: 'football name 3' },\n { name: 'football name 4' },\n { name: 'football name 5' },\n { name: 'football name 6' }\n];\n\nconst games = [\n { name: 'games name 1' },\n { name: 'games name 2' },\n { name: 'games name 3' },\n { name: 'games name 4' },\n { name: 'games name 5' },\n { name: 'games name 6' }\n];\n\nconst iqbrain = [\n { name: 'iqbrain name 1' },\n { name: 'iqbrain name 2' },\n { name: 'iqbrain name 3' },\n { name: 'iqbrain name 4' },\n { name: 'iqbrain name 5' },\n { name: 'iqbrain name 6' }\n];\n\nconst karaoke = [\n { name: 'karaoke name 1' },\n { name: 'karaoke name 2' },\n { name: 'karaoke name 3' },\n { name: 'karaoke name 4' },\n { name: 'karaoke name 5' },\n { name: 'karaoke name 6' }\n];\n\nconst video = [\n { name: 'video name 1' },\n { name: 'video name 2' },\n { name: 'video name 3' },\n { name: 'video name 4' },\n { name: 'video name 5' },\n { name: 'video name 6' }\n];\n\nconst xracademy = [\n { name: 'xracademy name 1' },\n { name: 'xracademy name 2' },\n { name: 'xracademy name 3' },\n { name: 'xracademy name 4' },\n { name: 'xracademy name 5' },\n { name: 'xracademy name 6' }\n];\n\nconst locales = {\n astrology,\n fitness,\n football,\n games,\n iqbrain,\n karaoke,\n video,\n xracademy\n};\n\nexport default locales;\n"],"names":["locales","astrology","name","fitness","football","games","iqbrain","karaoke","video","xracademy"],"mappings":"AAAA,MAwEMA,EAAU,CACdC,UAzEgB,CAChB,CAAEC,KAAM,oBACR,CAAEA,KAAM,oBACR,CAAEA,KAAM,oBACR,CAAEA,KAAM,oBACR,CAAEA,KAAM,oBACR,CAAEA,KAAM,qBAoERC,QAjEc,CACd,CAAED,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,mBA4DRE,SAzDe,CACf,CAAEF,KAAM,mBACR,CAAEA,KAAM,mBACR,CAAEA,KAAM,mBACR,CAAEA,KAAM,mBACR,CAAEA,KAAM,mBACR,CAAEA,KAAM,oBAoDRG,MAjDY,CACZ,CAAEH,KAAM,gBACR,CAAEA,KAAM,gBACR,CAAEA,KAAM,gBACR,CAAEA,KAAM,gBACR,CAAEA,KAAM,gBACR,CAAEA,KAAM,iBA4CRI,QAzCc,CACd,CAAEJ,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,mBAoCRK,QAjCc,CACd,CAAEL,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,kBACR,CAAEA,KAAM,mBA4BRM,MAzBY,CACZ,CAAEN,KAAM,gBACR,CAAEA,KAAM,gBACR,CAAEA,KAAM,gBACR,CAAEA,KAAM,gBACR,CAAEA,KAAM,gBACR,CAAEA,KAAM,iBAoBRO,UAjBgB,CAChB,CAAEP,KAAM,oBACR,CAAEA,KAAM,oBACR,CAAEA,KAAM,oBACR,CAAEA,KAAM,oBACR,CAAEA,KAAM,oBACR,CAAEA,KAAM"}
@@ -0,0 +1,2 @@
1
+ const e={astrology:[{name:"astrology name 1",description:"astrology description 1"},{name:"astrology name 2",description:"astrology description 2"},{name:"astrology name 3",description:"astrology description 3"}],fitness:[{name:"fitness name 1",description:"fitness description 1"},{name:"fitness name 2",description:"fitness description 2"},{name:"fitness name 3",description:"fitness description 3"}],football:[{name:"football name 1",description:"football description 1"},{name:"football name 2",description:"football description 2"},{name:"football name 3",description:"football description 3"}],games:[{name:"games name 1",description:"games description 1"},{name:"games name 2",description:"games description 2"},{name:"games name 3",description:"games description 3"}],iqbrain:[{name:"iqbrain name 1",description:"iqbrain description 1"},{name:"iqbrain name 2",description:"iqbrain description 2"},{name:"iqbrain name 3",description:"iqbrain description 3"}],karaoke:[{name:"karaoke name 1",description:"karaoke description 1"},{name:"karaoke name 2",description:"karaoke description 2"},{name:"karaoke name 3",description:"karaoke description 3"}],video:[{name:"video name 1",description:"video description 1"},{name:"video name 2",description:"video description 2"},{name:"video name 3",description:"video description 3"}],xracademy:[{name:"xracademy name 1",description:"xracademy description 1"},{name:"xracademy name 2",description:"xracademy description 2"},{name:"xracademy name 3",description:"xracademy description 3"}]};export{e as default};
2
+ //# sourceMappingURL=en-8439f778.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-8439f778.js","sources":["../src/Features/locales/Features/en.js"],"sourcesContent":["const astrology = [\n { name: 'astrology name 1', description: 'astrology description 1' },\n { name: 'astrology name 2', description: 'astrology description 2' },\n { name: 'astrology name 3', description: 'astrology description 3' }\n];\n\nconst fitness = [\n { name: 'fitness name 1', description: 'fitness description 1' },\n { name: 'fitness name 2', description: 'fitness description 2' },\n { name: 'fitness name 3', description: 'fitness description 3' }\n];\n\nconst football = [\n { name: 'football name 1', description: 'football description 1' },\n { name: 'football name 2', description: 'football description 2' },\n { name: 'football name 3', description: 'football description 3' }\n];\n\nconst games = [\n { name: 'games name 1', description: 'games description 1' },\n { name: 'games name 2', description: 'games description 2' },\n { name: 'games name 3', description: 'games description 3' }\n];\n\nconst iqbrain = [\n { name: 'iqbrain name 1', description: 'iqbrain description 1' },\n { name: 'iqbrain name 2', description: 'iqbrain description 2' },\n { name: 'iqbrain name 3', description: 'iqbrain description 3' }\n];\n\nconst karaoke = [\n { name: 'karaoke name 1', description: 'karaoke description 1' },\n { name: 'karaoke name 2', description: 'karaoke description 2' },\n { name: 'karaoke name 3', description: 'karaoke description 3' }\n];\n\nconst video = [\n { name: 'video name 1', description: 'video description 1' },\n { name: 'video name 2', description: 'video description 2' },\n { name: 'video name 3', description: 'video description 3' }\n];\n\nconst xracademy = [\n { name: 'xracademy name 1', description: 'xracademy description 1' },\n { name: 'xracademy name 2', description: 'xracademy description 2' },\n { name: 'xracademy name 3', description: 'xracademy description 3' }\n];\n\nconst locales = {\n astrology,\n fitness,\n football,\n games,\n iqbrain,\n karaoke,\n video,\n xracademy\n};\n\nexport default locales;\n"],"names":["locales","astrology","name","description","fitness","football","games","iqbrain","karaoke","video","xracademy"],"mappings":"AAAA,MAgDMA,EAAU,CACdC,UAjDgB,CAChB,CAAEC,KAAM,mBAAoBC,YAAa,2BACzC,CAAED,KAAM,mBAAoBC,YAAa,2BACzC,CAAED,KAAM,mBAAoBC,YAAa,4BA+CzCC,QA5Cc,CACd,CAAEF,KAAM,iBAAkBC,YAAa,yBACvC,CAAED,KAAM,iBAAkBC,YAAa,yBACvC,CAAED,KAAM,iBAAkBC,YAAa,0BA0CvCE,SAvCe,CACf,CAAEH,KAAM,kBAAmBC,YAAa,0BACxC,CAAED,KAAM,kBAAmBC,YAAa,0BACxC,CAAED,KAAM,kBAAmBC,YAAa,2BAqCxCG,MAlCY,CACZ,CAAEJ,KAAM,eAAgBC,YAAa,uBACrC,CAAED,KAAM,eAAgBC,YAAa,uBACrC,CAAED,KAAM,eAAgBC,YAAa,wBAgCrCI,QA7Bc,CACd,CAAEL,KAAM,iBAAkBC,YAAa,yBACvC,CAAED,KAAM,iBAAkBC,YAAa,yBACvC,CAAED,KAAM,iBAAkBC,YAAa,0BA2BvCK,QAxBc,CACd,CAAEN,KAAM,iBAAkBC,YAAa,yBACvC,CAAED,KAAM,iBAAkBC,YAAa,yBACvC,CAAED,KAAM,iBAAkBC,YAAa,0BAsBvCM,MAnBY,CACZ,CAAEP,KAAM,eAAgBC,YAAa,uBACrC,CAAED,KAAM,eAAgBC,YAAa,uBACrC,CAAED,KAAM,eAAgBC,YAAa,wBAiBrCO,UAdgB,CAChB,CAAER,KAAM,mBAAoBC,YAAa,2BACzC,CAAED,KAAM,mBAAoBC,YAAa,2BACzC,CAAED,KAAM,mBAAoBC,YAAa"}
@@ -0,0 +1,5 @@
1
+ import { interfaceFeatures } from './Creative.types.js';
2
+
3
+ declare const Creative: ({ PersuasiveTitle, PersuasiveSubtitle, PersuasiveCaption, CreativeImage, dataQaId, tracker }: interfaceFeatures) => JSX.Element;
4
+
5
+ export { Creative };
@@ -0,0 +1,20 @@
1
+ import { ITracker } from '../../custom-types.js';
2
+
3
+ type typeItems = {
4
+ PersuasiveTitle: string;
5
+ Creative: string;
6
+ PersuasiveSubtitle: string;
7
+ PersuasiveCaption: string;
8
+ CreativeImage: string;
9
+ };
10
+ interface interfaceFeatures {
11
+ PersuasiveTitle: string;
12
+ Creative: string;
13
+ PersuasiveSubtitle: string;
14
+ PersuasiveCaption: string;
15
+ dataQaId?: string;
16
+ tracker?: ITracker;
17
+ CreativeImage: string;
18
+ }
19
+
20
+ export { interfaceFeatures, typeItems };
@@ -0,0 +1,5 @@
1
+ import { interfaceFeatures } from './CreativeZipFolder.types.js';
2
+
3
+ declare const CreativeZipFolder: ({ headline, subtitle, className, subtitle2, CreativeImage, dataQaId, tracker, ScrollTop, Overlay }: interfaceFeatures) => JSX.Element;
4
+
5
+ export { CreativeZipFolder };
@@ -3,14 +3,24 @@ import { ITracker } from '../../custom-types.js';
3
3
  type typeItems = {
4
4
  image: string;
5
5
  name: string;
6
+ subtitle: string;
6
7
  description: string;
8
+ CreativeImage?: string;
9
+ subtitle2?: string;
10
+ tracker?: ITracker;
11
+ ScrollTop?: boolean;
12
+ Overlay?: boolean;
7
13
  };
8
14
  interface interfaceFeatures {
9
15
  headline: string;
10
- items: Array<typeItems>;
16
+ subtitle: string;
11
17
  className?: string;
12
18
  dataQaId?: string;
13
19
  tracker?: ITracker;
20
+ CreativeImage?: string;
21
+ subtitle2?: string;
22
+ ScrollTop?: boolean;
23
+ Overlay?: boolean;
14
24
  }
15
25
 
16
26
  export { interfaceFeatures, typeItems };
@@ -1,5 +1,5 @@
1
1
  import { interfaceFeatures } from './Features.types.js';
2
2
 
3
- declare const Features: ({ headline, items, className, dataQaId, tracker }: interfaceFeatures) => JSX.Element;
3
+ declare const Features: ({ locale, type, headline, items, domain, className, dataQaId, tracker }: interfaceFeatures) => JSX.Element;
4
4
 
5
5
  export { Features };
@@ -1,13 +1,17 @@
1
1
  import { ITracker } from '../custom-types.js';
2
2
 
3
3
  type typeItems = {
4
- image: string;
5
- name: string;
6
- description: string;
4
+ id?: number;
5
+ image?: string;
6
+ name?: string;
7
+ description?: string;
7
8
  };
8
9
  interface interfaceFeatures {
10
+ locale: string;
11
+ type: 'astrology' | 'fitness' | 'football' | 'games' | 'iqbrain' | 'karaoke' | 'video' | 'xracademy';
9
12
  headline: string;
10
- items: Array<typeItems>;
13
+ items?: Array<typeItems>;
14
+ domain?: string;
11
15
  className?: string;
12
16
  dataQaId?: string;
13
17
  tracker?: ITracker;
@@ -0,0 +1,3 @@
1
+ declare const Footer: (props: any) => JSX.Element;
2
+
3
+ export { Footer };
@@ -0,0 +1,24 @@
1
+ import lng from './Localization/index.js';
2
+
3
+ type typeLocale = 'en' | 'ar';
4
+ type typeItems = {
5
+ dataQaId?: string;
6
+ serviceDescription: string;
7
+ mccCopyright: string;
8
+ address: string;
9
+ logoUrl: string;
10
+ locale?: keyof typeof lng;
11
+ helpCenterLinks: string;
12
+ legalLinks: string;
13
+ faq: string;
14
+ };
15
+ interface interfaceFeatures {
16
+ dataQaId?: string;
17
+ serviceDescription: string;
18
+ mccCopyright: string;
19
+ address: string;
20
+ logoUrl: string;
21
+ locale?: keyof typeof lng;
22
+ }
23
+
24
+ export { interfaceFeatures, typeItems, typeLocale };
@@ -0,0 +1,30 @@
1
+ declare const lng: {
2
+ en: {
3
+ footer: {
4
+ helpCenterTitle: string;
5
+ legalTitle: string;
6
+ privacyPolicy: string;
7
+ carrierBillingTerms: string;
8
+ cookieSettings: string;
9
+ faq: string;
10
+ contact: string;
11
+ myAccount: string;
12
+ terms: string;
13
+ };
14
+ };
15
+ ar: {
16
+ footer: {
17
+ helpCenterTitle: string;
18
+ legalTitle: string;
19
+ privacyPolicy: string;
20
+ carrierBillingTerms: string;
21
+ cookieSettings: string;
22
+ faq: string;
23
+ contact: string;
24
+ myAccount: string;
25
+ terms: string;
26
+ };
27
+ };
28
+ };
29
+
30
+ export { lng as default };
@@ -0,0 +1,5 @@
1
+ import { interfaceFeatures } from './Header.types.js';
2
+
3
+ declare const Header: ({ name, logoUrl, className, dataQaId, options, locale, topLegal, switchLang, tracker }: interfaceFeatures) => JSX.Element;
4
+
5
+ export { Header };
@@ -0,0 +1,23 @@
1
+ import { ITracker } from '../custom-types.js';
2
+
3
+ type typeItems = {
4
+ image: string;
5
+ name: string;
6
+ topLegal?: string;
7
+ };
8
+ interface interfaceFeatures {
9
+ name: string;
10
+ logoUrl: string;
11
+ className?: string;
12
+ dataQaId?: string;
13
+ tracker?: ITracker;
14
+ options?: {
15
+ value: string;
16
+ label: string;
17
+ }[];
18
+ locale?: any;
19
+ switchLang?: (lang: string) => string;
20
+ topLegal?: string;
21
+ }
22
+
23
+ export { interfaceFeatures, typeItems };
@@ -0,0 +1,5 @@
1
+ import { interfaceFeatures } from './Menu.types.js';
2
+
3
+ declare const Menu: ({ locale, className, isOpen, setIsOpen, dataQaId }: interfaceFeatures) => JSX.Element;
4
+
5
+ export { Menu };
@@ -0,0 +1,20 @@
1
+ import { ITracker } from '../custom-types.js';
2
+
3
+ type typeItems = {
4
+ logoUrl: string;
5
+ name: string;
6
+ locale: string;
7
+ isOpen: boolean;
8
+ setIsOpen: (isOpen: boolean) => void;
9
+ };
10
+ interface interfaceFeatures {
11
+ logoUrl: string;
12
+ className?: string;
13
+ dataQaId?: string;
14
+ locale: string;
15
+ tracker?: ITracker;
16
+ isOpen: boolean;
17
+ setIsOpen: (isOpen: boolean) => void;
18
+ }
19
+
20
+ export { interfaceFeatures, typeItems };
@@ -0,0 +1,5 @@
1
+ import { interfaceFeatures } from './LovePrelander.types.js';
2
+
3
+ declare const LovePrelander: ({ locale, className, questions, tracker }: interfaceFeatures) => JSX.Element;
4
+
5
+ export { LovePrelander };
@@ -0,0 +1,25 @@
1
+ import { ITracker } from '../../custom-types.js';
2
+
3
+ type typeItems = {
4
+ logoUrl: string;
5
+ name: string;
6
+ locale: string;
7
+ questions: any[];
8
+ currentQuestion: number;
9
+ setCurrentQuestion: (currentQuestion: number) => void;
10
+ };
11
+ interface interfaceFeatures {
12
+ logoUrl: string;
13
+ className?: string;
14
+ dataQaId?: string;
15
+ locale: string;
16
+ tracker?: ITracker;
17
+ questions: {
18
+ question: string;
19
+ answers: string[];
20
+ }[];
21
+ currentQuestion: number;
22
+ setCurrentQuestion: (currentQuestion: number) => void;
23
+ }
24
+
25
+ export { interfaceFeatures, typeItems };
@@ -0,0 +1,28 @@
1
+ declare const lng: {
2
+ en: (serviceName: string) => {
3
+ RefundPolicy: {
4
+ refundPolicy1: string;
5
+ refundPolicy2: string;
6
+ refundPolicy3: string;
7
+ refundPolicy4: string;
8
+ refundPolicy5: string;
9
+ refundPolicy6: string;
10
+ refundPolicy7: string;
11
+ refundPolicy8: string;
12
+ };
13
+ };
14
+ ar: (serviceName: string) => {
15
+ RefundPolicy: {
16
+ refundPolicy1: string;
17
+ refundPolicy2: string;
18
+ refundPolicy3: string;
19
+ refundPolicy4: string;
20
+ refundPolicy5: string;
21
+ refundPolicy6: string;
22
+ refundPolicy7: string;
23
+ refundPolicy8: string;
24
+ };
25
+ };
26
+ };
27
+
28
+ export { lng as default };
@@ -0,0 +1,3 @@
1
+ declare const RefundPolicy: (props: any) => JSX.Element;
2
+
3
+ export { RefundPolicy };
@@ -0,0 +1,28 @@
1
+ import lng from './Localization/index.js';
2
+
3
+ type typeLocale = 'en' | 'ar';
4
+ type typeItems = {
5
+ dataQaId?: string;
6
+ serviceDescription: string;
7
+ mccCopyright: string;
8
+ address: string;
9
+ logoUrl: string;
10
+ locale?: keyof typeof lng;
11
+ helpCenterLinks: string;
12
+ legalLinks: string;
13
+ faq: string;
14
+ serviceName: string;
15
+ refundPolicy: string;
16
+ };
17
+ interface interfaceFeatures {
18
+ dataQaId?: string;
19
+ serviceDescription: string;
20
+ mccCopyright: string;
21
+ address: string;
22
+ logoUrl: string;
23
+ locale?: keyof typeof lng;
24
+ serviceName: string;
25
+ refundPolicy: string;
26
+ }
27
+
28
+ export { interfaceFeatures, typeItems, typeLocale };
@@ -1,5 +1,5 @@
1
1
  import { interfaceShowcase } from './Showcase.types.js';
2
2
 
3
- declare const Showcase: ({ headline, items, className, dataQaId, tracker }: interfaceShowcase) => JSX.Element;
3
+ declare const Showcase: ({ locale, type, headline, items, domain, className, dataQaId, tracker }: interfaceShowcase) => JSX.Element;
4
4
 
5
5
  export { Showcase };
@@ -1,12 +1,16 @@
1
1
  import { ITracker } from '../custom-types.js';
2
2
 
3
3
  type typeItems = {
4
- image: string;
5
- name: string;
4
+ id?: number;
5
+ image?: string;
6
+ name?: string;
6
7
  };
7
8
  interface interfaceShowcase {
9
+ locale: string;
10
+ type: 'astrology' | 'fitness' | 'football' | 'games' | 'iqbrain' | 'karaoke' | 'video' | 'xracademy';
8
11
  headline: string;
9
- items: Array<typeItems>;
12
+ items?: Array<typeItems>;
13
+ domain?: string;
10
14
  className?: string;
11
15
  dataQaId?: string;
12
16
  tracker?: ITracker;
@@ -0,0 +1,5 @@
1
+ import { interfaceFeatures } from './Testimonials.types.js';
2
+
3
+ declare const Testimonials: ({ dataQaId, testimonials }: interfaceFeatures) => JSX.Element;
4
+
5
+ export { Testimonials };
@@ -0,0 +1,20 @@
1
+ type typeItems = {
2
+ dataQaId?: string;
3
+ testimonials: {
4
+ image: string;
5
+ name: string;
6
+ rating: string;
7
+ text: string;
8
+ }[];
9
+ };
10
+ interface interfaceFeatures {
11
+ testimonials: {
12
+ image: string;
13
+ name: string;
14
+ rating: string;
15
+ text: string;
16
+ }[];
17
+ dataQaId?: string;
18
+ }
19
+
20
+ export { interfaceFeatures, typeItems };
@@ -0,0 +1,5 @@
1
+ import { interfaceFeatures } from './Unsubscription.types.js';
2
+
3
+ declare const Unsubscription: ({ dataQaId, unsubscriptionText, unsubscriptionTitle }: interfaceFeatures) => JSX.Element;
4
+
5
+ export { Unsubscription };
@@ -0,0 +1,12 @@
1
+ type typeItems = {
2
+ dataQaId?: string;
3
+ unsubscriptionText: string[];
4
+ unsubscriptionTitle: string;
5
+ };
6
+ interface interfaceFeatures {
7
+ unsubscriptionText: string[];
8
+ unsubscriptionTitle: string;
9
+ dataQaId?: string;
10
+ }
11
+
12
+ export { interfaceFeatures, typeItems };
@@ -0,0 +1,2 @@
1
+ export { Creative } from '../../Creatives/Creative/Creative.js';
2
+ export { interfaceFeatures, typeItems } from '../../Creatives/Creative/Creative.types.js';
@@ -0,0 +1,2 @@
1
+ export { CreativeZipFolder } from '../../Creatives/CreativeZipFolder/CreativeZipFolder.js';
2
+ export { interfaceFeatures, typeItems } from '../../Creatives/CreativeZipFolder/CreativeZipFolder.types.js';
@@ -0,0 +1,2 @@
1
+ export { Footer } from '../../Footer/Footer.js';
2
+ export { interfaceFeatures, typeItems, typeLocale } from '../../Footer/Footer.types.js';
@@ -0,0 +1,2 @@
1
+ export { Header } from '../../Header/Header.js';
2
+ export { interfaceFeatures, typeItems } from '../../Header/Header.types.js';
@@ -0,0 +1,2 @@
1
+ export { LovePrelander } from '../../Prelanders/LovePrelander/LovePrelander.js';
2
+ export { interfaceFeatures, typeItems } from '../../Prelanders/LovePrelander/LovePrelander.types.js';
@@ -0,0 +1,2 @@
1
+ export { Menu } from '../../Menu/Menu.js';
2
+ export { interfaceFeatures, typeItems } from '../../Menu/Menu.types.js';
@@ -0,0 +1,2 @@
1
+ export { RefundPolicy } from '../../RefundPolicy/RefundPolicy.js';
2
+ export { interfaceFeatures, typeItems, typeLocale } from '../../RefundPolicy/RefundPolicy.types.js';
@@ -0,0 +1,2 @@
1
+ export { Testimonials } from '../../Testimonials/Testimonials.js';
2
+ export { interfaceFeatures, typeItems } from '../../Testimonials/Testimonials.types.js';
@@ -0,0 +1,2 @@
1
+ export { Unsubscription } from '../../Unsubscription/Unsubscription.js';
2
+ export { interfaceFeatures, typeItems } from '../../Unsubscription/Unsubscription.types.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-component-library",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Ouisys Components",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -52,7 +52,15 @@
52
52
  "./utilities/defineMessages": "./dist/defineMessages.js",
53
53
  "./utilities/injectIntl": "./dist/injectIntl.js",
54
54
  "./utilities/formatSMSLink": "./dist/formatSMSLink.js",
55
- "./Creative/ZipFolderCreative": "./dist/ZipFolderCreative.js"
55
+ "./Creative": "./dist/Creative.js",
56
+ "./CreativeZipFolder": "./dist/CreativeZipFolder.js",
57
+ "./Header": "./dist/Header.js",
58
+ "./Unsubscription": "./dist/Unsubscription.js",
59
+ "./Footer": "./dist/Footer.js",
60
+ "./Testimonials": "./dist/Testimonials.js",
61
+ "./RefundPolicy": "./dist/RefundPolicy.js",
62
+ "./Menu": "./dist/Menu.js",
63
+ "./LovePrelander": "./dist/LovePrelander.js"
56
64
  },
57
65
  "typesVersions": {
58
66
  "*": {
@@ -104,18 +112,42 @@
104
112
  "Showcase": [
105
113
  "dist/types/Showcase/Showcase.d.ts"
106
114
  ],
107
- "ZipFolderCreative": [
108
- "dist/types/ZipFolderCreative/ZipFolderCreative.d.ts"
115
+ "Creative": [
116
+ "dist/types/Creative/Creative.d.ts"
117
+ ],
118
+ "CreativeZipFolder": [
119
+ "dist/types/CreativeZipFolder/CreativeZipFolder.d.ts"
120
+ ],
121
+ "Footer": [
122
+ "dist/types/Footer/Footer.d.ts"
123
+ ],
124
+ "Header": [
125
+ "dist/types/Header/Header.d.ts"
126
+ ],
127
+ "Unsubscription": [
128
+ "dist/types/Unsubscription/Unsubscription.d.ts"
129
+ ],
130
+ "RefundPolicy": [
131
+ "dist/types/RefundPolicy/RefundPolicy.d.ts"
132
+ ],
133
+ "Testimonials": [
134
+ "dist/types/Testimonials/Testimonials.d.ts"
135
+ ],
136
+ "Menu": [
137
+ "dist/types/Menu/Menu.d.ts"
109
138
  ]
110
139
  }
111
140
  },
112
141
  "dependencies": {
142
+ "@rollup/plugin-json": "^6.1.0",
143
+ "autoprefixer": "^10.x.x",
113
144
  "awesome-phonenumber": "^7.0.1"
114
145
  },
115
146
  "devDependencies": {
116
147
  "@babel/core": "^7.16.7",
117
148
  "@chromatic-com/storybook": "^3.2.2",
118
149
  "@rollup/plugin-commonjs": "^21.0.1",
150
+ "@rollup/plugin-dynamic-import-vars": "^2.1.5",
119
151
  "@rollup/plugin-node-resolve": "^13.1.3",
120
152
  "@storybook/addon-actions": "^8.4.7",
121
153
  "@storybook/addon-essentials": "^8.4.7",
@@ -192,8 +224,8 @@
192
224
  },
193
225
  "peerDependencies": {
194
226
  "classnames": "^2.3.1",
195
- "react": ">=18.2.0",
196
- "react-dom": ">=18.2.0"
227
+ "react": "18.2.0",
228
+ "react-dom": "18.2.0"
197
229
  },
198
230
  "prettier": "prettier-config-ouisys"
199
231
  }
@@ -1,2 +0,0 @@
1
- import e from"classnames";import t from"react";import{s as i}from"./style-inject.es-1f59c1d0.js";var a="ZipFolderCreative-module_features__DRXJK",r="ZipFolderCreative-module_featuresTitle__c4Ayz",l="ZipFolderCreative-module_featuresGrid__t6V1e",m="ZipFolderCreative-module_featuresGridItem__-TDIA",s="ZipFolderCreative-module_featuresGridItemImage__sXY1T",d="ZipFolderCreative-module_featuresGridItemContent__bunH5",o="ZipFolderCreative-module_featuresGridItemName__DDsft",u="ZipFolderCreative-module_featuresGridItemDescription__s-jdM";i(".ZipFolderCreative-module_features__DRXJK{margin-inline:auto;padding:1rem}.ZipFolderCreative-module_featuresTitle__c4Ayz{font-size:1.5rem;font-weight:600;margin-block-end:1rem;text-transform:capitalize}.ZipFolderCreative-module_featuresGrid__t6V1e{display:flex;flex-wrap:wrap;gap:1rem}.ZipFolderCreative-module_featuresGridItem__-TDIA{align-items:start;background-color:#f6f6f6;border-radius:1rem;display:flex;flex:1 1 100%;gap:1rem;justify-content:start;padding:1rem}.ZipFolderCreative-module_featuresGridItemImage__sXY1T{aspect-ratio:1/1;border-radius:.5rem;font-size:.75rem;font-style:italic;height:5rem;-o-object-fit:cover;object-fit:cover;width:5rem}.ZipFolderCreative-module_featuresGridItemContent__bunH5{line-height:1.25;text-align:start}.ZipFolderCreative-module_featuresGridItemName__DDsft{font-size:1.25rem;font-weight:600;margin-block-end:.25rem;text-transform:capitalize}.ZipFolderCreative-module_featuresGridItemDescription__s-jdM{font-size:1rem;font-weight:500}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlppcEZvbGRlckNyZWF0aXZlLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUNFLGtCQUFtQixDQUNuQixZQUNGLENBRUEsK0NBQ0UsZ0JBQWlCLENBQ2pCLGVBQWdCLENBQ2hCLHFCQUFzQixDQUN0Qix5QkFDRixDQUVBLDhDQUNFLFlBQWEsQ0FDYixjQUFlLENBQ2YsUUFDRixDQUVBLGtEQUNFLGlCQUFrQixDQUNsQix3QkFBeUIsQ0FDekIsa0JBQW1CLENBQ25CLFlBQWEsQ0FDYixhQUFjLENBQ2QsUUFBUyxDQUNULHFCQUFzQixDQUN0QixZQUNGLENBRUEsdURBQ0UsZ0JBQWlCLENBQ2pCLG1CQUFxQixDQUNyQixnQkFBa0IsQ0FDbEIsaUJBQWtCLENBQ2xCLFdBQVksQ0FDWixtQkFBaUIsQ0FBakIsZ0JBQWlCLENBQ2pCLFVBQ0YsQ0FFQSx5REFDRSxnQkFBaUIsQ0FDakIsZ0JBQ0YsQ0FFQSxzREFDRSxpQkFBa0IsQ0FDbEIsZUFBZ0IsQ0FDaEIsdUJBQXlCLENBQ3pCLHlCQUNGLENBRUEsNkRBQ0UsY0FBZSxDQUNmLGVBQ0YiLCJmaWxlIjoiWmlwRm9sZGVyQ3JlYXRpdmUubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmVhdHVyZXMge1xuICBtYXJnaW4taW5saW5lOiBhdXRvO1xuICBwYWRkaW5nOiAxcmVtO1xufVxuXG4uZmVhdHVyZXNUaXRsZSB7XG4gIGZvbnQtc2l6ZTogMS41cmVtO1xuICBmb250LXdlaWdodDogNjAwO1xuICBtYXJnaW4tYmxvY2stZW5kOiAxcmVtO1xuICB0ZXh0LXRyYW5zZm9ybTogY2FwaXRhbGl6ZTtcbn1cblxuLmZlYXR1cmVzR3JpZCB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtd3JhcDogd3JhcDtcbiAgZ2FwOiAxcmVtO1xufVxuXG4uZmVhdHVyZXNHcmlkSXRlbSB7XG4gIGFsaWduLWl0ZW1zOiBzdGFydDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y2ZjZmNjtcbiAgYm9yZGVyLXJhZGl1czogMXJlbTtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleDogMSAxIDEwMCU7XG4gIGdhcDogMXJlbTtcbiAganVzdGlmeS1jb250ZW50OiBzdGFydDtcbiAgcGFkZGluZzogMXJlbTtcbn1cblxuLmZlYXR1cmVzR3JpZEl0ZW1JbWFnZSB7XG4gIGFzcGVjdC1yYXRpbzogMS8xO1xuICBib3JkZXItcmFkaXVzOiAwLjVyZW07XG4gIGZvbnQtc2l6ZTogMC43NXJlbTtcbiAgZm9udC1zdHlsZTogaXRhbGljO1xuICBoZWlnaHQ6IDVyZW07XG4gIG9iamVjdC1maXQ6IGNvdmVyO1xuICB3aWR0aDogNXJlbTtcbn1cblxuLmZlYXR1cmVzR3JpZEl0ZW1Db250ZW50IHtcbiAgbGluZS1oZWlnaHQ6IDEuMjU7XG4gIHRleHQtYWxpZ246IHN0YXJ0O1xufVxuXG4uZmVhdHVyZXNHcmlkSXRlbU5hbWUge1xuICBmb250LXNpemU6IDEuMjVyZW07XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1ibG9jay1lbmQ6IDAuMjVyZW07XG4gIHRleHQtdHJhbnNmb3JtOiBjYXBpdGFsaXplO1xufVxuXG4uZmVhdHVyZXNHcmlkSXRlbURlc2NyaXB0aW9uIHtcbiAgZm9udC1zaXplOiAxcmVtO1xuICBmb250LXdlaWdodDogNTAwO1xufSJdfQ== */");var c=Array(3).fill(null).map((function(e,t){return{image:"https://picsum.photos/id/".concat(Math.floor(99*Math.random()+1),"/320"),name:"features ".concat(t),description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nisl orci, ullamcorper nec faucibus nec, maximus sit amet leo. Suspendisse sit amet quam ut diam eleifend viverra id vel nunc."}})),n=function(i){var n=i.headline,Z=void 0===n?"Features":n,Q=i.items,F=void 0===Q?c:Q,g=i.className,p=void 0===g?"":g,I=i.dataQaId,b=void 0===I?"qa-features":I,G=i.tracker;return t.createElement("div",{className:e(a,"features",p),"data-qa-id":b},t.createElement("div",{className:e(r,"features-title")},Z),t.createElement("div",{className:e(l,"features-grid")},F.length&&F.map((function(i,a){var r=i.image,l=i.name,c=i.description;return t.createElement("div",{key:a,className:e(m,"features-grid-item"),onClick:function(){G&&G.customEvent("Features","click","FeaturesGrid".concat(a))}},t.createElement("img",{src:r,alt:l,className:e(s,"features-grid-item-image")}),t.createElement("div",{className:e(d,"features-grid-item-content")},t.createElement("div",{className:e(o,"features-grid-item-name")},l),t.createElement("div",{className:e(u,"features-grid-item-description")},c)))}))))};export{n as ZipFolderCreative};
2
- //# sourceMappingURL=ZipFolderCreative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ZipFolderCreative.js","sources":["../src/Creative/ZipFolderCreative/ZipFolderCreative.tsx"],"sourcesContent":["import cn from 'classnames';\nimport React from 'react';\nimport styles from './ZipFolderCreative.module.scss';\nimport { interfaceFeatures, typeItems } from './ZipFolderCreative.types';\n\nconst defaultItems = Array(3)\n .fill(null)\n .map((_, index) => ({\n image: `https://picsum.photos/id/${Math.floor(Math.random() * (99 - 1 + 1) + 1)}/320`,\n name: `features ${index}`,\n description:\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nisl orci, ullamcorper nec faucibus nec, maximus sit amet leo. Suspendisse sit amet quam ut diam eleifend viverra id vel nunc.'\n }));\n\nexport const ZipFolderCreative = ({\n headline = 'Features',\n items = defaultItems,\n className = '',\n dataQaId = 'qa-features',\n tracker\n}: interfaceFeatures) => (\n <div className={cn(styles.features, 'features', className)} data-qa-id={dataQaId}>\n <div className={cn(styles.featuresTitle, 'features-title')}>{headline}</div>\n\n <div className={cn(styles.featuresGrid, 'features-grid')}>\n {items.length &&\n items.map(({ image, name, description }: typeItems, index: number) => (\n <div\n key={index}\n className={cn(styles.featuresGridItem, 'features-grid-item')}\n onClick={() => {\n if (tracker) {\n tracker.customEvent('Features', 'click', `FeaturesGrid${index}`);\n }\n }}\n >\n <img src={image} alt={name} className={cn(styles.featuresGridItemImage, 'features-grid-item-image')} />\n <div className={cn(styles.featuresGridItemContent, 'features-grid-item-content')}>\n <div className={cn(styles.featuresGridItemName, 'features-grid-item-name')}>{name}</div>\n <div className={cn(styles.featuresGridItemDescription, 'features-grid-item-description')}>\n {description}\n </div>\n </div>\n </div>\n ))}\n </div>\n </div>\n);\n"],"names":["defaultItems","Array","fill","map","_","index","image","Math","floor","random","name","concat","description","ZipFolderCreative","_a","_b","headline","_c","items","_d","className","_e","dataQaId","tracker","React","createElement","cn","styles","length","key","onClick","customEvent","src","alt"],"mappings":"s/GAKA,IAAMA,EAAeC,MAAM,GACxBC,KAAK,MACLC,KAAI,SAACC,EAAGC,GAAU,MAAC,CAClBC,MAAO,mCAA4BC,KAAKC,MAAuB,GAAjBD,KAAKE,SAA0B,GAAQ,QACrFC,KAAM,YAAYC,OAAAN,GAClBO,YACE,oMACF,IAESC,EAAoB,SAACC,GAChC,IAAAC,EAAAD,EAAAE,SAAAA,OAAW,IAAAD,EAAA,WAAUA,EACrBE,EAAoBH,EAAAI,MAApBA,OAAK,IAAAD,EAAGjB,EAAYiB,EACpBE,EAAAL,EAAAM,UAAAA,OAAY,IAAAD,EAAA,GAAEA,EACdE,EAAwBP,EAAAQ,SAAxBA,OAAQ,IAAAD,EAAG,cAAaA,EACxBE,EAAOT,EAAAS,QACgB,OACvBC,EAAAC,cAAA,MAAA,CAAKL,UAAWM,EAAGC,EAAiB,WAAYP,gBAAwBE,GACtEE,EAAAC,cAAA,MAAA,CAAKL,UAAWM,EAAGC,EAAsB,mBAAoBX,GAE7DQ,EAAAC,cAAA,MAAA,CAAKL,UAAWM,EAAGC,EAAqB,kBACrCT,EAAMU,QACLV,EAAMf,KAAI,SAACW,EAAyCT,GAAvC,IAAAC,UAAOI,EAAII,EAAAJ,KAAEE,EAAWE,EAAAF,YAAiC,OACpEY,EACEC,cAAA,MAAA,CAAAI,IAAKxB,EACLe,UAAWM,EAAGC,EAAyB,sBACvCG,QAAS,WACHP,GACFA,EAAQQ,YAAY,WAAY,QAAS,eAAepB,OAAAN,MAI5DmB,EAAAC,cAAA,MAAA,CAAKO,IAAK1B,EAAO2B,IAAKvB,EAAMU,UAAWM,EAAGC,EAA8B,8BACxEH,EAAKC,cAAA,MAAA,CAAAL,UAAWM,EAAGC,EAAgC,+BACjDH,EAAAC,cAAA,MAAA,CAAKL,UAAWM,EAAGC,EAA6B,4BAA6BjB,GAC7Ec,EAAAC,cAAA,MAAA,CAAKL,UAAWM,EAAGC,EAAoC,mCACpDf,IAIR,KAxBgB"}
@@ -1,5 +0,0 @@
1
- import { interfaceFeatures } from './ZipFolderCreative.types.js';
2
-
3
- declare const ZipFolderCreative: ({ headline, items, className, dataQaId, tracker }: interfaceFeatures) => JSX.Element;
4
-
5
- export { ZipFolderCreative };
@@ -1,2 +0,0 @@
1
- export { ZipFolderCreative } from '../../Creative/ZipFolderCreative/ZipFolderCreative.js';
2
- export { interfaceFeatures, typeItems } from '../../Creative/ZipFolderCreative/ZipFolderCreative.types.js';