@coorpacademy/components 11.14.0 → 11.14.1-alpha.28

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 (217) hide show
  1. package/es/molecule/discipline-header/style.css +2 -1
  2. package/es/molecule/expandable-item/index.d.ts +19 -0
  3. package/es/molecule/expandable-item/index.d.ts.map +1 -0
  4. package/es/molecule/expandable-item/index.js +44 -0
  5. package/es/molecule/expandable-item/index.js.map +1 -0
  6. package/es/molecule/expandable-item/style.css +135 -0
  7. package/es/molecule/expandable-item/types.d.ts +20 -0
  8. package/es/molecule/expandable-item/types.d.ts.map +1 -0
  9. package/es/molecule/expandable-item/types.js +11 -0
  10. package/es/molecule/expandable-item/types.js.map +1 -0
  11. package/es/molecule/expandable-list/index.d.ts +18 -0
  12. package/es/molecule/expandable-list/index.d.ts.map +1 -0
  13. package/es/molecule/expandable-list/index.js +22 -0
  14. package/es/molecule/expandable-list/index.js.map +1 -0
  15. package/es/molecule/expandable-list/style.css +20 -0
  16. package/es/molecule/expandable-list/types.d.ts +17 -0
  17. package/es/molecule/expandable-list/types.d.ts.map +1 -0
  18. package/es/molecule/expandable-list/types.js +6 -0
  19. package/es/molecule/expandable-list/types.js.map +1 -0
  20. package/es/molecule/hero/index.d.ts +30 -26
  21. package/es/molecule/hero/index.d.ts.map +1 -1
  22. package/es/molecule/hero/index.js +14 -13
  23. package/es/molecule/hero/index.js.map +1 -1
  24. package/es/molecule/hero/style.css +42 -0
  25. package/es/molecule/hero/types.d.ts +22 -0
  26. package/es/molecule/hero/types.d.ts.map +1 -0
  27. package/es/molecule/hero/types.js +14 -0
  28. package/es/molecule/hero/types.js.map +1 -0
  29. package/es/molecule/menu-links/index.d.ts +22 -0
  30. package/es/molecule/menu-links/index.d.ts.map +1 -0
  31. package/es/molecule/menu-links/index.js +70 -0
  32. package/es/molecule/menu-links/index.js.map +1 -0
  33. package/es/molecule/menu-links/style.css +161 -0
  34. package/es/molecule/menu-links/types.d.ts +35 -0
  35. package/es/molecule/menu-links/types.d.ts.map +1 -0
  36. package/es/molecule/menu-links/types.js +17 -0
  37. package/es/molecule/menu-links/types.js.map +1 -0
  38. package/es/molecule/privacy-policy-contact/index.d.ts +14 -0
  39. package/es/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  40. package/es/molecule/privacy-policy-contact/index.js +28 -0
  41. package/es/molecule/privacy-policy-contact/index.js.map +1 -0
  42. package/es/molecule/privacy-policy-contact/style.css +38 -0
  43. package/es/molecule/privacy-policy-contact/types.d.ts +10 -0
  44. package/es/molecule/privacy-policy-contact/types.d.ts.map +1 -0
  45. package/es/molecule/privacy-policy-contact/types.js +6 -0
  46. package/es/molecule/privacy-policy-contact/types.js.map +1 -0
  47. package/es/molecule/privacy-policy-download/index.d.ts +38 -0
  48. package/es/molecule/privacy-policy-download/index.d.ts.map +1 -0
  49. package/es/molecule/privacy-policy-download/index.js +27 -0
  50. package/es/molecule/privacy-policy-download/index.js.map +1 -0
  51. package/es/molecule/privacy-policy-download/style.css +65 -0
  52. package/es/molecule/privacy-policy-download/types.d.ts +50 -0
  53. package/es/molecule/privacy-policy-download/types.d.ts.map +1 -0
  54. package/es/molecule/privacy-policy-download/types.js +8 -0
  55. package/es/molecule/privacy-policy-download/types.js.map +1 -0
  56. package/es/molecule/quick-access-card/index.d.ts +1 -0
  57. package/es/molecule/quick-access-card/index.d.ts.map +1 -1
  58. package/es/molecule/quick-access-card/index.js +77 -21
  59. package/es/molecule/quick-access-card/index.js.map +1 -1
  60. package/es/molecule/quick-access-card/style.css +28 -17
  61. package/es/molecule/quick-access-cards-group/index.d.ts +1 -0
  62. package/es/organism/brand-dashboard/index.d.ts +1 -0
  63. package/es/template/back-office/brand-update/index.d.ts +1 -0
  64. package/es/template/common/faq-article-page/index.d.ts +27 -0
  65. package/es/template/common/faq-article-page/index.d.ts.map +1 -0
  66. package/es/template/common/faq-article-page/index.js +50 -0
  67. package/es/template/common/faq-article-page/index.js.map +1 -0
  68. package/es/template/common/faq-article-page/style.css +110 -0
  69. package/es/template/common/faq-article-page/types.d.ts +40 -0
  70. package/es/template/common/faq-article-page/types.d.ts.map +1 -0
  71. package/es/template/common/faq-article-page/types.js +20 -0
  72. package/es/template/common/faq-article-page/types.js.map +1 -0
  73. package/es/template/common/faq-cards-page/index.d.ts +33 -0
  74. package/es/template/common/faq-cards-page/index.d.ts.map +1 -0
  75. package/es/template/common/faq-cards-page/index.js +45 -0
  76. package/es/template/common/faq-cards-page/index.js.map +1 -0
  77. package/es/template/common/faq-cards-page/style.css +95 -0
  78. package/es/template/common/faq-cards-page/types.d.ts +42 -0
  79. package/es/template/common/faq-cards-page/types.d.ts.map +1 -0
  80. package/es/template/common/faq-cards-page/types.js +12 -0
  81. package/es/template/common/faq-cards-page/types.js.map +1 -0
  82. package/es/template/common/faq-page/index.d.ts +80 -0
  83. package/es/template/common/faq-page/index.d.ts.map +1 -0
  84. package/es/template/common/faq-page/index.js +44 -0
  85. package/es/template/common/faq-page/index.js.map +1 -0
  86. package/es/template/common/faq-page/style.css +104 -0
  87. package/es/template/common/faq-page/types.d.ts +86 -0
  88. package/es/template/common/faq-page/types.d.ts.map +1 -0
  89. package/es/template/common/faq-page/types.js +13 -0
  90. package/es/template/common/faq-page/types.js.map +1 -0
  91. package/es/template/common/privacy-policy-page/index.d.ts +80 -0
  92. package/es/template/common/privacy-policy-page/index.d.ts.map +1 -0
  93. package/es/template/common/privacy-policy-page/index.js +50 -0
  94. package/es/template/common/privacy-policy-page/index.js.map +1 -0
  95. package/es/template/common/privacy-policy-page/style.css +123 -0
  96. package/es/template/common/privacy-policy-page/types.d.ts +86 -0
  97. package/es/template/common/privacy-policy-page/types.d.ts.map +1 -0
  98. package/es/template/common/privacy-policy-page/types.js +13 -0
  99. package/es/template/common/privacy-policy-page/types.js.map +1 -0
  100. package/es/template/mobile-login/welcome/index.native.d.ts +18 -0
  101. package/es/template/mobile-login/welcome/index.native.d.ts.map +1 -0
  102. package/es/template/mobile-login/welcome/index.native.js +195 -0
  103. package/es/template/mobile-login/welcome/index.native.js.map +1 -0
  104. package/es/util/button-icons.d.ts +1 -0
  105. package/es/util/button-icons.d.ts.map +1 -1
  106. package/es/util/button-icons.js +3 -2
  107. package/es/util/button-icons.js.map +1 -1
  108. package/es/variables/breakpoints.css +1 -1
  109. package/lib/molecule/discipline-header/style.css +2 -1
  110. package/lib/molecule/expandable-item/index.d.ts +19 -0
  111. package/lib/molecule/expandable-item/index.d.ts.map +1 -0
  112. package/lib/molecule/expandable-item/index.js +58 -0
  113. package/lib/molecule/expandable-item/index.js.map +1 -0
  114. package/lib/molecule/expandable-item/style.css +135 -0
  115. package/lib/molecule/expandable-item/types.d.ts +20 -0
  116. package/lib/molecule/expandable-item/types.d.ts.map +1 -0
  117. package/lib/molecule/expandable-item/types.js +20 -0
  118. package/lib/molecule/expandable-item/types.js.map +1 -0
  119. package/lib/molecule/expandable-list/index.d.ts +18 -0
  120. package/lib/molecule/expandable-list/index.d.ts.map +1 -0
  121. package/lib/molecule/expandable-list/index.js +33 -0
  122. package/lib/molecule/expandable-list/index.js.map +1 -0
  123. package/lib/molecule/expandable-list/style.css +20 -0
  124. package/lib/molecule/expandable-list/types.d.ts +17 -0
  125. package/lib/molecule/expandable-list/types.d.ts.map +1 -0
  126. package/lib/molecule/expandable-list/types.js +16 -0
  127. package/lib/molecule/expandable-list/types.js.map +1 -0
  128. package/lib/molecule/hero/index.d.ts +30 -26
  129. package/lib/molecule/hero/index.d.ts.map +1 -1
  130. package/lib/molecule/hero/index.js +15 -14
  131. package/lib/molecule/hero/index.js.map +1 -1
  132. package/lib/molecule/hero/style.css +42 -0
  133. package/lib/molecule/hero/types.d.ts +22 -0
  134. package/lib/molecule/hero/types.d.ts.map +1 -0
  135. package/lib/molecule/hero/types.js +25 -0
  136. package/lib/molecule/hero/types.js.map +1 -0
  137. package/lib/molecule/menu-links/index.d.ts +22 -0
  138. package/lib/molecule/menu-links/index.d.ts.map +1 -0
  139. package/lib/molecule/menu-links/index.js +88 -0
  140. package/lib/molecule/menu-links/index.js.map +1 -0
  141. package/lib/molecule/menu-links/style.css +161 -0
  142. package/lib/molecule/menu-links/types.d.ts +35 -0
  143. package/lib/molecule/menu-links/types.d.ts.map +1 -0
  144. package/lib/molecule/menu-links/types.js +26 -0
  145. package/lib/molecule/menu-links/types.js.map +1 -0
  146. package/lib/molecule/privacy-policy-contact/index.d.ts +14 -0
  147. package/lib/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  148. package/lib/molecule/privacy-policy-contact/index.js +41 -0
  149. package/lib/molecule/privacy-policy-contact/index.js.map +1 -0
  150. package/lib/molecule/privacy-policy-contact/style.css +38 -0
  151. package/lib/molecule/privacy-policy-contact/types.d.ts +10 -0
  152. package/lib/molecule/privacy-policy-contact/types.d.ts.map +1 -0
  153. package/lib/molecule/privacy-policy-contact/types.js +15 -0
  154. package/lib/molecule/privacy-policy-contact/types.js.map +1 -0
  155. package/lib/molecule/privacy-policy-download/index.d.ts +38 -0
  156. package/lib/molecule/privacy-policy-download/index.d.ts.map +1 -0
  157. package/lib/molecule/privacy-policy-download/index.js +38 -0
  158. package/lib/molecule/privacy-policy-download/index.js.map +1 -0
  159. package/lib/molecule/privacy-policy-download/style.css +65 -0
  160. package/lib/molecule/privacy-policy-download/types.d.ts +50 -0
  161. package/lib/molecule/privacy-policy-download/types.d.ts.map +1 -0
  162. package/lib/molecule/privacy-policy-download/types.js +18 -0
  163. package/lib/molecule/privacy-policy-download/types.js.map +1 -0
  164. package/lib/molecule/quick-access-card/index.d.ts +1 -0
  165. package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
  166. package/lib/molecule/quick-access-card/index.js +76 -20
  167. package/lib/molecule/quick-access-card/index.js.map +1 -1
  168. package/lib/molecule/quick-access-card/style.css +28 -17
  169. package/lib/molecule/quick-access-cards-group/index.d.ts +1 -0
  170. package/lib/organism/brand-dashboard/index.d.ts +1 -0
  171. package/lib/template/back-office/brand-update/index.d.ts +1 -0
  172. package/lib/template/common/faq-article-page/index.d.ts +27 -0
  173. package/lib/template/common/faq-article-page/index.d.ts.map +1 -0
  174. package/lib/template/common/faq-article-page/index.js +63 -0
  175. package/lib/template/common/faq-article-page/index.js.map +1 -0
  176. package/lib/template/common/faq-article-page/style.css +110 -0
  177. package/lib/template/common/faq-article-page/types.d.ts +40 -0
  178. package/lib/template/common/faq-article-page/types.d.ts.map +1 -0
  179. package/lib/template/common/faq-article-page/types.js +30 -0
  180. package/lib/template/common/faq-article-page/types.js.map +1 -0
  181. package/lib/template/common/faq-cards-page/index.d.ts +33 -0
  182. package/lib/template/common/faq-cards-page/index.d.ts.map +1 -0
  183. package/lib/template/common/faq-cards-page/index.js +58 -0
  184. package/lib/template/common/faq-cards-page/index.js.map +1 -0
  185. package/lib/template/common/faq-cards-page/style.css +95 -0
  186. package/lib/template/common/faq-cards-page/types.d.ts +42 -0
  187. package/lib/template/common/faq-cards-page/types.d.ts.map +1 -0
  188. package/lib/template/common/faq-cards-page/types.js +24 -0
  189. package/lib/template/common/faq-cards-page/types.js.map +1 -0
  190. package/lib/template/common/faq-page/index.d.ts +80 -0
  191. package/lib/template/common/faq-page/index.d.ts.map +1 -0
  192. package/lib/template/common/faq-page/index.js +58 -0
  193. package/lib/template/common/faq-page/index.js.map +1 -0
  194. package/lib/template/common/faq-page/style.css +104 -0
  195. package/lib/template/common/faq-page/types.d.ts +86 -0
  196. package/lib/template/common/faq-page/types.d.ts.map +1 -0
  197. package/lib/template/common/faq-page/types.js +24 -0
  198. package/lib/template/common/faq-page/types.js.map +1 -0
  199. package/lib/template/common/privacy-policy-page/index.d.ts +80 -0
  200. package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -0
  201. package/lib/template/common/privacy-policy-page/index.js +65 -0
  202. package/lib/template/common/privacy-policy-page/index.js.map +1 -0
  203. package/lib/template/common/privacy-policy-page/style.css +123 -0
  204. package/lib/template/common/privacy-policy-page/types.d.ts +86 -0
  205. package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -0
  206. package/lib/template/common/privacy-policy-page/types.js +24 -0
  207. package/lib/template/common/privacy-policy-page/types.js.map +1 -0
  208. package/lib/template/mobile-login/welcome/index.native.d.ts +18 -0
  209. package/lib/template/mobile-login/welcome/index.native.d.ts.map +1 -0
  210. package/lib/template/mobile-login/welcome/index.native.js +212 -0
  211. package/lib/template/mobile-login/welcome/index.native.js.map +1 -0
  212. package/lib/util/button-icons.d.ts +1 -0
  213. package/lib/util/button-icons.d.ts.map +1 -1
  214. package/lib/util/button-icons.js +2 -1
  215. package/lib/util/button-icons.js.map +1 -1
  216. package/lib/variables/breakpoints.css +1 -1
  217. package/package.json +2 -2
@@ -0,0 +1,80 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ declare const PrivacyPolicy: {
4
+ ({ header, privacyPolicyContact, menuLinks, privacyPolicyDownload, expandableList }: Props): JSX.Element;
5
+ propTypes: {
6
+ header: {
7
+ image: import("prop-types").Requireable<string>;
8
+ mode: import("prop-types").Requireable<string>;
9
+ description: import("prop-types").Requireable<string>;
10
+ title: import("prop-types").Requireable<string>;
11
+ author: import("prop-types").Requireable<string>;
12
+ progress: import("prop-types").Requireable<number>;
13
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
14
+ submitValue: import("prop-types").Requireable<string>;
15
+ };
16
+ privacyPolicyContact: {
17
+ title: import("prop-types").Requireable<string>;
18
+ content: import("prop-types").Requireable<string>;
19
+ };
20
+ menuLinks: {
21
+ title: import("prop-types").Requireable<string>;
22
+ numberOfDisplayedItems: import("prop-types").Requireable<number>;
23
+ isDesktopMode: import("prop-types").Requireable<boolean>;
24
+ showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
25
+ showMoreText: import("prop-types").Requireable<string>;
26
+ showLessText: import("prop-types").Requireable<string>;
27
+ isSelected: import("prop-types").Requireable<boolean>;
28
+ }>>;
29
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
30
+ text: import("prop-types").Requireable<string>;
31
+ isSelected: import("prop-types").Requireable<boolean>;
32
+ handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
33
+ }> | null | undefined)[]>;
34
+ };
35
+ privacyPolicyDownload: {
36
+ title: import("prop-types").Requireable<string>;
37
+ content: import("prop-types").Requireable<string>;
38
+ downloadButton: import("prop-types").Requireable<import("prop-types").InferProps<{
39
+ color: any;
40
+ submitValue: import("prop-types").Requireable<string>;
41
+ disabled: import("prop-types").Requireable<boolean>;
42
+ href: import("prop-types").Requireable<string>;
43
+ download: import("prop-types").Requireable<boolean>;
44
+ target: import("prop-types").Requireable<string>;
45
+ type: import("prop-types").Requireable<string>;
46
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
47
+ className: import("prop-types").Requireable<string>;
48
+ style: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
49
+ 'data-name': import("prop-types").Requireable<string>;
50
+ 'aria-label': import("prop-types").Requireable<string>;
51
+ 'data-testid': import("prop-types").Requireable<string>;
52
+ useButtonTag: import("prop-types").Requireable<boolean>;
53
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
54
+ onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
55
+ onMouseLeave: import("prop-types").Requireable<(...args: any[]) => any>;
56
+ onMouseOver: import("prop-types").Requireable<(...args: any[]) => any>;
57
+ buttonRef: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
58
+ 'data-for': import("prop-types").Requireable<string>;
59
+ 'data-tooltip-place': import("prop-types").Requireable<string>;
60
+ 'data-tip': import("prop-types").Requireable<boolean>;
61
+ isLinkDisabled: import("prop-types").Requireable<boolean>;
62
+ useWrapper: import("prop-types").Requireable<boolean>;
63
+ buttonContentClassName: import("prop-types").Requireable<string>;
64
+ }>>;
65
+ };
66
+ expandableList: {
67
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
68
+ title: import("prop-types").Requireable<string>;
69
+ icon: import("prop-types").Requireable<string>;
70
+ isExpended: import("prop-types").Requireable<boolean>;
71
+ isLink: import("prop-types").Requireable<boolean>;
72
+ content: import("prop-types").Requireable<string>;
73
+ image: import("prop-types").Requireable<string>;
74
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
75
+ }> | null | undefined)[]>;
76
+ };
77
+ };
78
+ };
79
+ export default PrivacyPolicy;
80
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;yFAMhB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BP,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,50 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React from 'react';
4
+ import Hero from '../../../molecule/hero';
5
+ import PrivacyPolicyContact from '../../../molecule/privacy-policy-contact';
6
+ import PrivacyPolicyDownload from '../../../molecule/privacy-policy-download';
7
+ import MenuLinks from '../../../molecule/menu-links';
8
+ import ExpandableList from '../../../molecule/expandable-list';
9
+ import { propTypes } from './types';
10
+ import styles from './style.css';
11
+
12
+ const PrivacyPolicy = ({
13
+ header,
14
+ privacyPolicyContact,
15
+ menuLinks,
16
+ privacyPolicyDownload,
17
+ expandableList
18
+ }) => {
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ className: styles.wrapper
21
+ }, /*#__PURE__*/React.createElement("div", {
22
+ className: styles.hero
23
+ }, /*#__PURE__*/React.createElement(Hero, _extends({}, header, {
24
+ mode: 'header'
25
+ }))), /*#__PURE__*/React.createElement("div", {
26
+ className: styles.container
27
+ }, /*#__PURE__*/React.createElement("div", {
28
+ className: styles.menuContainer
29
+ }, /*#__PURE__*/React.createElement("div", {
30
+ className: styles.menueLinksDesctop
31
+ }, /*#__PURE__*/React.createElement(MenuLinks, _extends({}, menuLinks, {
32
+ isDesktopMode: true
33
+ }))), /*#__PURE__*/React.createElement("div", {
34
+ className: styles.menueLinksMobile
35
+ }, /*#__PURE__*/React.createElement(MenuLinks, _extends({}, menuLinks, {
36
+ isDesktopMode: false
37
+ }))), /*#__PURE__*/React.createElement("div", {
38
+ className: styles.privacyPolicyDownloadDesktop
39
+ }, /*#__PURE__*/React.createElement(PrivacyPolicyDownload, privacyPolicyDownload))), /*#__PURE__*/React.createElement("div", {
40
+ className: styles.expandableList
41
+ }, /*#__PURE__*/React.createElement(ExpandableList, expandableList)), /*#__PURE__*/React.createElement("div", {
42
+ className: styles.privacyPolicyDownload
43
+ }, /*#__PURE__*/React.createElement(PrivacyPolicyDownload, privacyPolicyDownload))), /*#__PURE__*/React.createElement("div", {
44
+ className: styles.privacyPolicyContact
45
+ }, /*#__PURE__*/React.createElement(PrivacyPolicyContact, privacyPolicyContact)));
46
+ };
47
+
48
+ PrivacyPolicy.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
49
+ export default PrivacyPolicy;
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","Hero","PrivacyPolicyContact","PrivacyPolicyDownload","MenuLinks","ExpandableList","propTypes","styles","PrivacyPolicy","header","privacyPolicyContact","menuLinks","privacyPolicyDownload","expandableList","wrapper","hero","container","menuContainer","menueLinksDesctop","menueLinksMobile","privacyPolicyDownloadDesktop"],"sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"sourcesContent":["import React from 'react';\nimport Hero from '../../../molecule/hero';\nimport PrivacyPolicyContact from '../../../molecule/privacy-policy-contact';\nimport PrivacyPolicyDownload from '../../../molecule/privacy-policy-download';\nimport MenuLinks from '../../../molecule/menu-links';\nimport ExpandableList from '../../../molecule/expandable-list';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst PrivacyPolicy = ({\n header,\n privacyPolicyContact,\n menuLinks,\n privacyPolicyDownload,\n expandableList\n}: Props) => {\n return (\n <div className={styles.wrapper}>\n <div className={styles.hero}>\n <Hero {...header} mode={'header'} />\n </div>\n <div className={styles.container}>\n <div className={styles.menuContainer}>\n <div className={styles.menueLinksDesctop}>\n <MenuLinks {...menuLinks} isDesktopMode />\n </div>\n <div className={styles.menueLinksMobile}>\n <MenuLinks {...menuLinks} isDesktopMode={false} />\n </div>\n <div className={styles.privacyPolicyDownloadDesktop}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.expandableList}>\n <ExpandableList {...expandableList} />\n </div>\n <div className={styles.privacyPolicyDownload}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.privacyPolicyContact}>\n <PrivacyPolicyContact {...privacyPolicyContact} />\n </div>\n </div>\n );\n};\n\nPrivacyPolicy.propTypes = propTypes;\n\nexport default PrivacyPolicy;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;AACA,OAAOC,oBAAP,MAAiC,0CAAjC;AACA,OAAOC,qBAAP,MAAkC,2CAAlC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;;AAEA,MAAMC,aAAa,GAAG,CAAC;EACrBC,MADqB;EAErBC,oBAFqB;EAGrBC,SAHqB;EAIrBC,qBAJqB;EAKrBC;AALqB,CAAD,KAMT;EACX,oBACE;IAAK,SAAS,EAAEN,MAAM,CAACO;EAAvB,gBACE;IAAK,SAAS,EAAEP,MAAM,CAACQ;EAAvB,gBACE,oBAAC,IAAD,eAAUN,MAAV;IAAkB,IAAI,EAAE;EAAxB,GADF,CADF,eAIE;IAAK,SAAS,EAAEF,MAAM,CAACS;EAAvB,gBACE;IAAK,SAAS,EAAET,MAAM,CAACU;EAAvB,gBACE;IAAK,SAAS,EAAEV,MAAM,CAACW;EAAvB,gBACE,oBAAC,SAAD,eAAeP,SAAf;IAA0B,aAAa;EAAvC,GADF,CADF,eAIE;IAAK,SAAS,EAAEJ,MAAM,CAACY;EAAvB,gBACE,oBAAC,SAAD,eAAeR,SAAf;IAA0B,aAAa,EAAE;EAAzC,GADF,CAJF,eAOE;IAAK,SAAS,EAAEJ,MAAM,CAACa;EAAvB,gBACE,oBAAC,qBAAD,EAA2BR,qBAA3B,CADF,CAPF,CADF,eAYE;IAAK,SAAS,EAAEL,MAAM,CAACM;EAAvB,gBACE,oBAAC,cAAD,EAAoBA,cAApB,CADF,CAZF,eAeE;IAAK,SAAS,EAAEN,MAAM,CAACK;EAAvB,gBACE,oBAAC,qBAAD,EAA2BA,qBAA3B,CADF,CAfF,CAJF,eAuBE;IAAK,SAAS,EAAEL,MAAM,CAACG;EAAvB,gBACE,oBAAC,oBAAD,EAA0BA,oBAA1B,CADF,CAvBF,CADF;AA6BD,CApCD;;AAsCAF,aAAa,CAACF,SAAd,2CAA0BA,SAA1B;AAEA,eAAeE,aAAf"}
@@ -0,0 +1,123 @@
1
+ @value breakpoints: "../../../variables/breakpoints.css";
2
+ @value mobile from breakpoints;
3
+ @value tablet from breakpoints;
4
+ @value desktop from breakpoints;
5
+ @value colors: "../../../variables/colors.css";
6
+ @value cm_grey_50 from colors;
7
+
8
+ .wrapper {
9
+ background-color: cm_grey_50;
10
+ }
11
+
12
+ .hero {
13
+ height: 228px;
14
+ width: 100%;
15
+ }
16
+
17
+ .container {
18
+ display: flex;
19
+ flex-direction: row;
20
+ margin: 40px auto;
21
+ padding: 0px 40px;
22
+ justify-content: center;
23
+ }
24
+
25
+ .menuContainer {
26
+ margin-right: 32px;
27
+ min-width: 308px;
28
+ max-width: 388px;
29
+ }
30
+
31
+ .menueLinksDesctop {
32
+ display: block;
33
+ }
34
+
35
+ .menueLinksMobile {
36
+ display: none;
37
+ }
38
+
39
+ .privacyPolicyContact{
40
+ width: 100%;
41
+ height: 86px;
42
+ }
43
+
44
+ .privacyPolicyDownloadDesktop {
45
+ margin-top: 28px;
46
+ display: block;
47
+ }
48
+ .privacyPolicyDownload {
49
+ display: none;
50
+ }
51
+
52
+ .expandableList {
53
+ min-width: 533px;
54
+ max-width: 748px;
55
+ width: 100%;
56
+ }
57
+ @media tablet {
58
+ .privacyPolicyDownloadDesktop {
59
+ display: none;
60
+ }
61
+ .privacyPolicyDownload {
62
+ display: block;
63
+ }
64
+ .container {
65
+ display: flex;
66
+ flex-direction: column;
67
+ margin: 40px;
68
+ padding: 0px;
69
+ }
70
+ .menuContainer {
71
+ margin: 0px 0px 16px 0px;
72
+ width: 100%;
73
+ min-width: inherit;
74
+ max-width: inherit;
75
+ }
76
+ .expandableList {
77
+ min-width: inherit;
78
+ max-width: inherit;
79
+ width: 100%;
80
+ }
81
+ .menueLinksDesctop {
82
+ display: none;
83
+ }
84
+ .menueLinksMobile {
85
+ display: block;
86
+ }
87
+ }
88
+
89
+ @media mobile {
90
+ .hero {
91
+ height: 264px;
92
+ width: 100%;
93
+ }
94
+ .privacyPolicyDownloadDesktop {
95
+ display: none;
96
+ }
97
+ .privacyPolicyDownload {
98
+ display: block;
99
+ }
100
+ .container {
101
+ display: flex;
102
+ flex-direction: column;
103
+ margin: 40px 24px;
104
+ padding: 0px;
105
+ }
106
+ .menuContainer {
107
+ margin: 0px 0px 16px 0px;
108
+ width: 100%;
109
+ min-width: inherit;
110
+ max-width: inherit;
111
+ }
112
+ .expandableList {
113
+ min-width: inherit;
114
+ max-width: inherit;
115
+ width: 100%;
116
+ }
117
+ .menueLinksDesctop {
118
+ display: none;
119
+ }
120
+ .menueLinksMobile {
121
+ display: block;
122
+ }
123
+ }
@@ -0,0 +1,86 @@
1
+ import { Props as ContactProps } from '../../../molecule/privacy-policy-contact/types';
2
+ import { Props as DownloadProps } from '../../../molecule/privacy-policy-download/types';
3
+ import { Props as HeroProps } from '../../../molecule/hero/types';
4
+ import { Props as MenuLinksProps } from '../../../molecule/menu-links/types';
5
+ import { Props as ListProps } from '../../../molecule/expandable-list/types';
6
+ export declare const propTypes: {
7
+ header: {
8
+ image: import("prop-types").Requireable<string>;
9
+ mode: import("prop-types").Requireable<string>;
10
+ description: import("prop-types").Requireable<string>;
11
+ title: import("prop-types").Requireable<string>;
12
+ author: import("prop-types").Requireable<string>;
13
+ progress: import("prop-types").Requireable<number>;
14
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
15
+ submitValue: import("prop-types").Requireable<string>;
16
+ };
17
+ privacyPolicyContact: {
18
+ title: import("prop-types").Requireable<string>;
19
+ content: import("prop-types").Requireable<string>;
20
+ };
21
+ menuLinks: {
22
+ title: import("prop-types").Requireable<string>;
23
+ numberOfDisplayedItems: import("prop-types").Requireable<number>;
24
+ isDesktopMode: import("prop-types").Requireable<boolean>;
25
+ showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
26
+ showMoreText: import("prop-types").Requireable<string>;
27
+ showLessText: import("prop-types").Requireable<string>;
28
+ isSelected: import("prop-types").Requireable<boolean>;
29
+ }>>;
30
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
31
+ text: import("prop-types").Requireable<string>;
32
+ isSelected: import("prop-types").Requireable<boolean>;
33
+ handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
34
+ }> | null | undefined)[]>;
35
+ };
36
+ privacyPolicyDownload: {
37
+ title: import("prop-types").Requireable<string>;
38
+ content: import("prop-types").Requireable<string>;
39
+ downloadButton: import("prop-types").Requireable<import("prop-types").InferProps<{
40
+ color: any;
41
+ submitValue: import("prop-types").Requireable<string>;
42
+ disabled: import("prop-types").Requireable<boolean>;
43
+ href: import("prop-types").Requireable<string>;
44
+ download: import("prop-types").Requireable<boolean>;
45
+ target: import("prop-types").Requireable<string>;
46
+ type: import("prop-types").Requireable<string>;
47
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
48
+ className: import("prop-types").Requireable<string>;
49
+ style: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
50
+ 'data-name': import("prop-types").Requireable<string>;
51
+ 'aria-label': import("prop-types").Requireable<string>;
52
+ 'data-testid': import("prop-types").Requireable<string>;
53
+ useButtonTag: import("prop-types").Requireable<boolean>;
54
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
55
+ onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
56
+ onMouseLeave: import("prop-types").Requireable<(...args: any[]) => any>;
57
+ onMouseOver: import("prop-types").Requireable<(...args: any[]) => any>;
58
+ buttonRef: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
59
+ 'data-for': import("prop-types").Requireable<string>;
60
+ 'data-tooltip-place': import("prop-types").Requireable<string>;
61
+ 'data-tip': import("prop-types").Requireable<boolean>;
62
+ isLinkDisabled: import("prop-types").Requireable<boolean>;
63
+ useWrapper: import("prop-types").Requireable<boolean>;
64
+ buttonContentClassName: import("prop-types").Requireable<string>;
65
+ }>>;
66
+ };
67
+ expandableList: {
68
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
69
+ title: import("prop-types").Requireable<string>;
70
+ icon: import("prop-types").Requireable<string>;
71
+ isExpended: import("prop-types").Requireable<boolean>;
72
+ isLink: import("prop-types").Requireable<boolean>;
73
+ content: import("prop-types").Requireable<string>;
74
+ image: import("prop-types").Requireable<string>;
75
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
76
+ }> | null | undefined)[]>;
77
+ };
78
+ };
79
+ export declare type Props = {
80
+ header: HeroProps;
81
+ privacyPolicyContact: ContactProps;
82
+ menuLinks: MenuLinksProps;
83
+ privacyPolicyDownload: DownloadProps;
84
+ expandableList: ListProps;
85
+ };
86
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,qBAAqB,EAAE,aAAa,CAAC;IACrC,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { propTypes as ContactPropTypes } from '../../../molecule/privacy-policy-contact/types';
2
+ import { propTypes as DownloadPropTypes } from '../../../molecule/privacy-policy-download/types';
3
+ import { propTypes as HeroPropTypes } from '../../../molecule/hero/types';
4
+ import { propTypes as MenuLinksPropTypes } from '../../../molecule/menu-links/types';
5
+ import { propTypes as ListPropTypes } from '../../../molecule/expandable-list/types';
6
+ export const propTypes = {
7
+ header: HeroPropTypes,
8
+ privacyPolicyContact: ContactPropTypes,
9
+ menuLinks: MenuLinksPropTypes,
10
+ privacyPolicyDownload: DownloadPropTypes,
11
+ expandableList: ListPropTypes
12
+ };
13
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["propTypes","ContactPropTypes","DownloadPropTypes","HeroPropTypes","MenuLinksPropTypes","ListPropTypes","header","privacyPolicyContact","menuLinks","privacyPolicyDownload","expandableList"],"sources":["../../../../src/template/common/privacy-policy-page/types.ts"],"sourcesContent":["import {\n Props as ContactProps,\n propTypes as ContactPropTypes\n} from '../../../molecule/privacy-policy-contact/types';\nimport {\n Props as DownloadProps,\n propTypes as DownloadPropTypes\n} from '../../../molecule/privacy-policy-download/types';\nimport {Props as HeroProps, propTypes as HeroPropTypes} from '../../../molecule/hero/types';\nimport {\n Props as MenuLinksProps,\n propTypes as MenuLinksPropTypes\n} from '../../../molecule/menu-links/types';\nimport {\n Props as ListProps,\n propTypes as ListPropTypes\n} from '../../../molecule/expandable-list/types';\n\nexport const propTypes = {\n header: HeroPropTypes,\n privacyPolicyContact: ContactPropTypes,\n menuLinks: MenuLinksPropTypes,\n privacyPolicyDownload: DownloadPropTypes,\n expandableList: ListPropTypes\n};\n\nexport type Props = {\n header: HeroProps;\n privacyPolicyContact: ContactProps;\n menuLinks: MenuLinksProps;\n privacyPolicyDownload: DownloadProps;\n expandableList: ListProps;\n};\n"],"mappings":"AAAA,SAEEA,SAAS,IAAIC,gBAFf,QAGO,gDAHP;AAIA,SAEED,SAAS,IAAIE,iBAFf,QAGO,iDAHP;AAIA,SAA4BF,SAAS,IAAIG,aAAzC,QAA6D,8BAA7D;AACA,SAEEH,SAAS,IAAII,kBAFf,QAGO,oCAHP;AAIA,SAEEJ,SAAS,IAAIK,aAFf,QAGO,yCAHP;AAKA,OAAO,MAAML,SAAS,GAAG;EACvBM,MAAM,EAAEH,aADe;EAEvBI,oBAAoB,EAAEN,gBAFC;EAGvBO,SAAS,EAAEJ,kBAHY;EAIvBK,qBAAqB,EAAEP,iBAJA;EAKvBQ,cAAc,EAAEL;AALO,CAAlB"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ export declare type Props = {
3
+ onDemoPress: () => void;
4
+ onDesktopButtonPress: () => void;
5
+ onHelpPress: () => void;
6
+ onMobileButtonPress: () => void;
7
+ locales: {
8
+ title: string;
9
+ description: string;
10
+ ctaQRCode: string;
11
+ ctaReceiveMail: string;
12
+ titleHelp: string;
13
+ ctaHelp: string;
14
+ };
15
+ };
16
+ declare const Welcome: (props: Props) => JSX.Element | null;
17
+ export default Welcome;
18
+ //# sourceMappingURL=index.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"names":[],"mappings":";AA+IA,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,KAAK,uBA0D5B,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,195 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { StyleSheet, Text, View } from 'react-native';
3
+ import LinearGradient from 'react-native-linear-gradient';
4
+ import { NovaCompositionCoorpacademyLogoCoorp as LogoCoorp, NovaCompositionCoorpacademyQrCode as QrCodeIcon, NovaCompositionCoorpacademyEmail as MailIcon } from '@coorpacademy/nova-icons';
5
+ import Touchable from '../../../hoc/touchable/index.native';
6
+ import { useTemplateContext } from '../../app-review/template-context';
7
+
8
+ const createStyleSheet = theme => StyleSheet.create({
9
+ wrapper: {
10
+ top: 0,
11
+ bottom: 0,
12
+ left: 0,
13
+ right: 0,
14
+ flex: 1,
15
+ justifyContent: 'space-around',
16
+ alignItems: 'center',
17
+ paddingHorizontal: 24
18
+ },
19
+ content: {
20
+ width: '100%',
21
+ alignItems: 'flex-start'
22
+ },
23
+ gradient: {
24
+ position: 'absolute',
25
+ top: -100,
26
+ bottom: 0,
27
+ left: -180,
28
+ right: 0,
29
+ opacity: 1,
30
+ transform: [{
31
+ rotate: '35deg'
32
+ }]
33
+ },
34
+ gradient2: {
35
+ position: 'absolute',
36
+ top: -80,
37
+ bottom: 0,
38
+ left: 0,
39
+ right: -200,
40
+ opacity: 0.5,
41
+ transform: [{
42
+ rotate: '-35deg'
43
+ }]
44
+ },
45
+ logo: {
46
+ padding: 100
47
+ },
48
+ title: {
49
+ fontWeight: '600',
50
+ fontSize: 28,
51
+ lineHeight: 36,
52
+ paddingVertical: 8
53
+ },
54
+ description: {
55
+ fontSize: 18,
56
+ lineHeight: 24,
57
+ paddingVertical: 8
58
+ },
59
+ actions: {
60
+ width: '100%'
61
+ },
62
+ buttons: {
63
+ paddingVertical: 20,
64
+ alignItems: 'center'
65
+ },
66
+ button: {
67
+ paddingVertical: 12,
68
+ marginVertical: 4,
69
+ width: '100%',
70
+ flexDirection: 'row',
71
+ justifyContent: 'center',
72
+ borderRadius: 12,
73
+ alignItems: 'center',
74
+ overflow: 'hidden'
75
+ },
76
+ ctaQRCode: {
77
+ backgroundColor: theme.colors.cta
78
+ },
79
+ ctaQRCodeText: {
80
+ marginLeft: 8,
81
+ color: '#fff',
82
+ fontWeight: '700',
83
+ fontSize: 14,
84
+ lineHeight: 24
85
+ },
86
+ qrCodeIcon: {
87
+ fill: '#fff',
88
+ height: 14,
89
+ width: 14
90
+ },
91
+ ctaReceiveMail: {
92
+ backgroundColor: '#eaeaeb'
93
+ },
94
+ ctaReceiveMailText: {
95
+ marginLeft: 8,
96
+ color: '#1D1D2B',
97
+ fontWeight: '700',
98
+ fontSize: 14,
99
+ lineHeight: 24
100
+ },
101
+ mailIcon: {
102
+ fill: '#1D1D2B',
103
+ height: 12,
104
+ width: 16
105
+ },
106
+ help: {
107
+ flexDirection: 'row',
108
+ justifyContent: 'center'
109
+ },
110
+ titleHelp: {
111
+ color: '#9999A8'
112
+ },
113
+ ctaHelp: {
114
+ marginLeft: 5,
115
+ textDecorationLine: 'underline',
116
+ color: '#9999A8'
117
+ }
118
+ });
119
+
120
+ const Welcome = props => {
121
+ const {
122
+ locales,
123
+ onDemoPress,
124
+ onDesktopButtonPress,
125
+ onHelpPress,
126
+ onMobileButtonPress
127
+ } = props;
128
+ const {
129
+ theme
130
+ } = useTemplateContext();
131
+ const [styleSheet, setStylesheet] = useState(null);
132
+ useEffect(() => {
133
+ const _stylesheet = createStyleSheet(theme);
134
+
135
+ setStylesheet(_stylesheet);
136
+ }, [theme]);
137
+
138
+ if (!styleSheet) {
139
+ return null;
140
+ }
141
+
142
+ return /*#__PURE__*/React.createElement(View, {
143
+ style: styleSheet.wrapper,
144
+ testID: "welcome"
145
+ }, /*#__PURE__*/React.createElement(LinearGradient, {
146
+ colors: ['#0061FF', '#fff'],
147
+ locations: [0, 0.3],
148
+ style: styleSheet.gradient
149
+ }), /*#__PURE__*/React.createElement(LinearGradient, {
150
+ colors: ['#2199AB', '#fff'],
151
+ locations: [0, 0.3],
152
+ style: styleSheet.gradient2
153
+ }), /*#__PURE__*/React.createElement(Touchable, {
154
+ onLongPress: onDemoPress,
155
+ style: styleSheet.logo
156
+ }, /*#__PURE__*/React.createElement(LogoCoorp, {
157
+ fill: theme.colors.cta,
158
+ width: 77,
159
+ height: 75
160
+ })), /*#__PURE__*/React.createElement(View, {
161
+ style: styleSheet.content
162
+ }, /*#__PURE__*/React.createElement(Text, {
163
+ style: styleSheet.title
164
+ }, locales.title), /*#__PURE__*/React.createElement(Text, {
165
+ style: styleSheet.description
166
+ }, locales.description), /*#__PURE__*/React.createElement(View, {
167
+ style: styleSheet.actions
168
+ }, /*#__PURE__*/React.createElement(View, {
169
+ style: styleSheet.buttons
170
+ }, /*#__PURE__*/React.createElement(Touchable, {
171
+ style: [styleSheet.button, styleSheet.ctaQRCode],
172
+ onPress: onDesktopButtonPress
173
+ }, /*#__PURE__*/React.createElement(QrCodeIcon, {
174
+ style: styleSheet.qrCodeIcon
175
+ }), /*#__PURE__*/React.createElement(Text, {
176
+ style: styleSheet.ctaQRCodeText
177
+ }, locales.ctaQRCode)), /*#__PURE__*/React.createElement(Touchable, {
178
+ style: [styleSheet.button, styleSheet.ctaReceiveMail],
179
+ onPress: onMobileButtonPress
180
+ }, /*#__PURE__*/React.createElement(MailIcon, {
181
+ style: styleSheet.mailIcon
182
+ }), /*#__PURE__*/React.createElement(Text, {
183
+ style: styleSheet.ctaReceiveMailText
184
+ }, locales.ctaReceiveMail))), /*#__PURE__*/React.createElement(Touchable, {
185
+ onPress: onHelpPress,
186
+ style: styleSheet.help
187
+ }, /*#__PURE__*/React.createElement(Text, {
188
+ style: styleSheet.titleHelp
189
+ }, locales.titleHelp), /*#__PURE__*/React.createElement(Text, {
190
+ style: styleSheet.ctaHelp
191
+ }, locales.ctaHelp)))));
192
+ };
193
+
194
+ export default Welcome;
195
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","names":["React","useEffect","useState","StyleSheet","Text","View","LinearGradient","NovaCompositionCoorpacademyLogoCoorp","LogoCoorp","NovaCompositionCoorpacademyQrCode","QrCodeIcon","NovaCompositionCoorpacademyEmail","MailIcon","Touchable","useTemplateContext","createStyleSheet","theme","create","wrapper","top","bottom","left","right","flex","justifyContent","alignItems","paddingHorizontal","content","width","gradient","position","opacity","transform","rotate","gradient2","logo","padding","title","fontWeight","fontSize","lineHeight","paddingVertical","description","actions","buttons","button","marginVertical","flexDirection","borderRadius","overflow","ctaQRCode","backgroundColor","colors","cta","ctaQRCodeText","marginLeft","color","qrCodeIcon","fill","height","ctaReceiveMail","ctaReceiveMailText","mailIcon","help","titleHelp","ctaHelp","textDecorationLine","Welcome","props","locales","onDemoPress","onDesktopButtonPress","onHelpPress","onMobileButtonPress","styleSheet","setStylesheet","_stylesheet"],"sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport {\n NovaCompositionCoorpacademyLogoCoorp as LogoCoorp,\n NovaCompositionCoorpacademyQrCode as QrCodeIcon,\n NovaCompositionCoorpacademyEmail as MailIcon\n} from '@coorpacademy/nova-icons';\nimport Touchable from '../../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\n\ntype StyleSheetType = {\n wrapper: ViewStyle;\n logo: ViewStyle;\n content: ViewStyle;\n gradient: ViewStyle;\n gradient2: ViewStyle;\n title: TextStyle;\n description: TextStyle;\n actions: ViewStyle;\n buttons: ViewStyle;\n button: ViewStyle;\n qrCodeIcon: ViewStyle;\n mailIcon: ViewStyle;\n ctaQRCode: ViewStyle;\n ctaQRCodeText: TextStyle;\n ctaReceiveMail: ViewStyle;\n ctaReceiveMailText: TextStyle;\n help: ViewStyle;\n titleHelp: TextStyle;\n ctaHelp: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n wrapper: {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n flex: 1,\n justifyContent: 'space-around',\n alignItems: 'center',\n paddingHorizontal: 24\n },\n content: {\n width: '100%',\n alignItems: 'flex-start'\n },\n gradient: {\n position: 'absolute',\n top: -100,\n bottom: 0,\n left: -180,\n right: 0,\n opacity: 1,\n transform: [{rotate: '35deg'}]\n },\n gradient2: {\n position: 'absolute',\n top: -80,\n bottom: 0,\n left: 0,\n right: -200,\n opacity: 0.5,\n transform: [{rotate: '-35deg'}]\n },\n logo: {\n padding: 100\n },\n title: {\n fontWeight: '600',\n fontSize: 28,\n lineHeight: 36,\n paddingVertical: 8\n },\n description: {\n fontSize: 18,\n lineHeight: 24,\n paddingVertical: 8\n },\n actions: {\n width: '100%'\n },\n buttons: {\n paddingVertical: 20,\n alignItems: 'center'\n },\n button: {\n paddingVertical: 12,\n marginVertical: 4,\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n borderRadius: 12,\n alignItems: 'center',\n overflow: 'hidden'\n },\n ctaQRCode: {\n backgroundColor: theme.colors.cta\n },\n ctaQRCodeText: {\n marginLeft: 8,\n color: '#fff',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n qrCodeIcon: {\n fill: '#fff',\n height: 14,\n width: 14\n },\n ctaReceiveMail: {\n backgroundColor: '#eaeaeb'\n },\n ctaReceiveMailText: {\n marginLeft: 8,\n color: '#1D1D2B',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n mailIcon: {\n fill: '#1D1D2B',\n height: 12,\n width: 16\n },\n help: {\n flexDirection: 'row',\n justifyContent: 'center'\n },\n titleHelp: {\n color: '#9999A8'\n },\n ctaHelp: {\n marginLeft: 5,\n textDecorationLine: 'underline',\n color: '#9999A8'\n }\n });\n\nexport type Props = {\n onDemoPress: () => void;\n onDesktopButtonPress: () => void;\n onHelpPress: () => void;\n onMobileButtonPress: () => void;\n locales: {\n title: string;\n description: string;\n ctaQRCode: string;\n ctaReceiveMail: string;\n titleHelp: string;\n ctaHelp: string;\n };\n};\n\nconst Welcome = (props: Props) => {\n const {locales, onDemoPress, onDesktopButtonPress, onHelpPress, onMobileButtonPress} = props;\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.wrapper} testID=\"welcome\">\n <LinearGradient\n colors={['#0061FF', '#fff']}\n locations={[0, 0.3]}\n style={styleSheet.gradient}\n />\n <LinearGradient\n colors={['#2199AB', '#fff']}\n locations={[0, 0.3]}\n style={styleSheet.gradient2}\n />\n <Touchable onLongPress={onDemoPress} style={styleSheet.logo}>\n <LogoCoorp fill={theme.colors.cta} width={77} height={75} />\n </Touchable>\n <View style={styleSheet.content}>\n <Text style={styleSheet.title}>{locales.title}</Text>\n <Text style={styleSheet.description}>{locales.description}</Text>\n\n <View style={styleSheet.actions}>\n <View style={styleSheet.buttons}>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaQRCode]}\n onPress={onDesktopButtonPress}\n >\n <QrCodeIcon style={styleSheet.qrCodeIcon} />\n <Text style={styleSheet.ctaQRCodeText}>{locales.ctaQRCode}</Text>\n </Touchable>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaReceiveMail]}\n onPress={onMobileButtonPress}\n >\n <MailIcon style={styleSheet.mailIcon} />\n <Text style={styleSheet.ctaReceiveMailText}>{locales.ctaReceiveMail}</Text>\n </Touchable>\n </View>\n <Touchable onPress={onHelpPress} style={styleSheet.help}>\n <Text style={styleSheet.titleHelp}>{locales.titleHelp}</Text>\n <Text style={styleSheet.ctaHelp}>{locales.ctaHelp}</Text>\n </Touchable>\n </View>\n </View>\n </View>\n );\n};\n\nexport default Welcome;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,QAA1B,QAAyC,OAAzC;AACA,SAAQC,UAAR,EAAoBC,IAApB,EAAqCC,IAArC,QAA2D,cAA3D;AACA,OAAOC,cAAP,MAA2B,8BAA3B;AACA,SACEC,oCAAoC,IAAIC,SAD1C,EAEEC,iCAAiC,IAAIC,UAFvC,EAGEC,gCAAgC,IAAIC,QAHtC,QAIO,0BAJP;AAKA,OAAOC,SAAP,MAAsB,qCAAtB;AACA,SAAQC,kBAAR,QAAiC,mCAAjC;;AAyBA,MAAMC,gBAAgB,GAAIC,KAAD,IACvBb,UAAU,CAACc,MAAX,CAAkB;EAChBC,OAAO,EAAE;IACPC,GAAG,EAAE,CADE;IAEPC,MAAM,EAAE,CAFD;IAGPC,IAAI,EAAE,CAHC;IAIPC,KAAK,EAAE,CAJA;IAKPC,IAAI,EAAE,CALC;IAMPC,cAAc,EAAE,cANT;IAOPC,UAAU,EAAE,QAPL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8B,UAAU,CAAC7B,MAAZ,EAAoB6B,UAAU,CAACxB,SAA/B,CADT;IAEE,OAAO,EAAEqB;EAFX,gBAIE,oBAAC,UAAD;IAAY,KAAK,EAAEG,UAAU,CAACjB;EAA9B,EAJF,eAKE,oBAAC,IAAD;IAAM,KAAK,EAAEiB,UAAU,CAACpB;EAAxB,GAAwCe,OAAO,CAACnB,SAAhD,CALF,CADF,eAQE,oBAAC,SAAD;IACE,KAAK,EAAE,CAACwB,UAAU,CAAC7B,MAAZ,EAAoB6B,UAAU,CAACd,cAA/B,CADT;IAEE,OAAO,EAAEa;EAFX,gBAIE,oBAAC,QAAD;IAAU,KAAK,EAAEC,UAAU,CAACZ;EAA5B,EAJF,eAKE,oBAAC,IAAD;IAAM,KAAK,EAAEY,UAAU,CAACb;EAAxB,GAA6CQ,OAAO,CAACT,cAArD,CALF,CARF,CADF,eAiBE,oBAAC,SAAD;IAAW,OAAO,EAAEY,WAApB;IAAiC,KAAK,EAAEE,UAAU,CAACX;EAAnD,gBACE,oBAAC,IAAD;IAAM,KAAK,EAAEW,UAAU,CAACV;EAAxB,GAAoCK,OAAO,CAACL,SAA5C,CADF,eAEE,oBAAC,IAAD;IAAM,KAAK,EAAEU,UAAU,CAACT;EAAxB,GAAkCI,OAAO,CAACJ,OAA1C,CAFF,CAjBF,CAJF,CAdF,CADF;AA4CD,CA1DD;;AA4DA,eAAeE,OAAf"}
@@ -17,5 +17,6 @@ export const ICONS: {
17
17
  upload: any;
18
18
  down: any;
19
19
  pdf: any;
20
+ back: any;
20
21
  };
21
22
  //# sourceMappingURL=button-icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;EAmBE"}
1
+ {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;EAoBE"}
@@ -1,4 +1,4 @@
1
- import { NovaSolidRemoveAddAddCircle1 as AddIcon, NovaCompositionCoorpacademyAnalytics as AnalyticsIcon, NovaSolidContentEditionBin as BinIcon, NovaCompositionCoorpacademyBulletPoint as BulletPointIcon, NovaCompositionNavigationArrowLeft as ChevronLeftIcon, NovaCompositionNavigationArrowRight as ChevronRightIcon, NovaSolidStatusClose as CloseIcon, NovaSolidContentEditionPencilWrite as EditIcon, NovaCompositionCoorpacademyEye as EyeIcon, NovaSolidContentContentViewModule1 as ListIcon, NovaSolidLoginLogout1 as LogoutIcon, NovaSolidApplicationsWindowUpload3 as PublishIcon, NovaSolidComputersSdCard as SaveIcon, NovaLineLoginKey1 as KlfIcon, NovaSolidFilesFoldersFolders as FoldersIcon, NovaSolidFilesBasicFileUpload2 as UploadIcon, NovaCompositionNavigationArrowDown as ArrowDown, NovaLineFilesOfficeFileOfficePdf as PDF } from '@coorpacademy/nova-icons';
1
+ import { NovaSolidRemoveAddAddCircle1 as AddIcon, NovaCompositionCoorpacademyAnalytics as AnalyticsIcon, NovaSolidContentEditionBin as BinIcon, NovaCompositionCoorpacademyBulletPoint as BulletPointIcon, NovaCompositionNavigationArrowLeft as ChevronLeftIcon, NovaCompositionNavigationArrowRight as ChevronRightIcon, NovaSolidStatusClose as CloseIcon, NovaSolidContentEditionPencilWrite as EditIcon, NovaCompositionCoorpacademyEye as EyeIcon, NovaSolidContentContentViewModule1 as ListIcon, NovaSolidLoginLogout1 as LogoutIcon, NovaSolidApplicationsWindowUpload3 as PublishIcon, NovaSolidComputersSdCard as SaveIcon, NovaLineLoginKey1 as KlfIcon, NovaSolidFilesFoldersFolders as FoldersIcon, NovaSolidFilesBasicFileUpload2 as UploadIcon, NovaCompositionNavigationArrowDown as ArrowDown, NovaCompositionNavigationArrowLeft as ArrowLeft, NovaLineFilesOfficeFileOfficePdf as PDF } from '@coorpacademy/nova-icons';
2
2
  export const ICONS = {
3
3
  add: AddIcon,
4
4
  analytics: AnalyticsIcon,
@@ -17,6 +17,7 @@ export const ICONS = {
17
17
  folders: FoldersIcon,
18
18
  upload: UploadIcon,
19
19
  down: ArrowDown,
20
- pdf: PDF
20
+ pdf: PDF,
21
+ back: ArrowLeft
21
22
  };
22
23
  //# sourceMappingURL=button-icons.js.map