@coorpacademy/components 11.15.2 → 11.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/es/molecule/expandable-item/index.d.ts +19 -0
  2. package/es/molecule/expandable-item/index.d.ts.map +1 -0
  3. package/es/molecule/expandable-item/index.js +44 -0
  4. package/es/molecule/expandable-item/index.js.map +1 -0
  5. package/es/molecule/expandable-item/style.css +129 -0
  6. package/es/molecule/expandable-item/types.d.ts +20 -0
  7. package/es/molecule/expandable-item/types.d.ts.map +1 -0
  8. package/es/molecule/expandable-item/types.js +11 -0
  9. package/es/molecule/expandable-item/types.js.map +1 -0
  10. package/es/molecule/expandable-list/index.d.ts +18 -0
  11. package/es/molecule/expandable-list/index.d.ts.map +1 -0
  12. package/es/molecule/expandable-list/index.js +23 -0
  13. package/es/molecule/expandable-list/index.js.map +1 -0
  14. package/es/molecule/expandable-list/style.css +20 -0
  15. package/es/molecule/expandable-list/types.d.ts +17 -0
  16. package/es/molecule/expandable-list/types.d.ts.map +1 -0
  17. package/es/molecule/expandable-list/types.js +6 -0
  18. package/es/molecule/expandable-list/types.js.map +1 -0
  19. package/es/molecule/hero/index.d.ts +30 -26
  20. package/es/molecule/hero/index.d.ts.map +1 -1
  21. package/es/molecule/hero/index.js +14 -13
  22. package/es/molecule/hero/index.js.map +1 -1
  23. package/es/molecule/hero/style.css +42 -0
  24. package/es/molecule/hero/types.d.ts +22 -0
  25. package/es/molecule/hero/types.d.ts.map +1 -0
  26. package/es/molecule/hero/types.js +14 -0
  27. package/es/molecule/hero/types.js.map +1 -0
  28. package/es/molecule/menu-links/index.d.ts +23 -0
  29. package/es/molecule/menu-links/index.d.ts.map +1 -0
  30. package/es/molecule/menu-links/index.js +75 -0
  31. package/es/molecule/menu-links/index.js.map +1 -0
  32. package/es/molecule/menu-links/style.css +166 -0
  33. package/es/molecule/menu-links/types.d.ts +37 -0
  34. package/es/molecule/menu-links/types.d.ts.map +1 -0
  35. package/es/molecule/menu-links/types.js +18 -0
  36. package/es/molecule/menu-links/types.js.map +1 -0
  37. package/es/molecule/privacy-policy-contact/index.d.ts +14 -0
  38. package/es/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  39. package/es/molecule/privacy-policy-contact/index.js +28 -0
  40. package/es/molecule/privacy-policy-contact/index.js.map +1 -0
  41. package/es/molecule/privacy-policy-contact/style.css +39 -0
  42. package/es/molecule/privacy-policy-contact/types.d.ts +10 -0
  43. package/es/molecule/privacy-policy-contact/types.d.ts.map +1 -0
  44. package/es/molecule/privacy-policy-contact/types.js +6 -0
  45. package/es/molecule/privacy-policy-contact/types.js.map +1 -0
  46. package/es/molecule/quick-access-card/index.d.ts +1 -0
  47. package/es/molecule/quick-access-card/index.d.ts.map +1 -1
  48. package/es/molecule/quick-access-card/index.js +88 -25
  49. package/es/molecule/quick-access-card/index.js.map +1 -1
  50. package/es/molecule/quick-access-card/style.css +32 -21
  51. package/es/molecule/quick-access-cards-group/index.d.ts +1 -0
  52. package/es/organism/brand-dashboard/index.d.ts +1 -0
  53. package/es/template/back-office/brand-update/index.d.ts +1 -0
  54. package/es/template/common/faq-article-page/index.d.ts +27 -0
  55. package/es/template/common/faq-article-page/index.d.ts.map +1 -0
  56. package/es/template/common/faq-article-page/index.js +55 -0
  57. package/es/template/common/faq-article-page/index.js.map +1 -0
  58. package/es/template/common/faq-article-page/style.css +125 -0
  59. package/es/template/common/faq-article-page/types.d.ts +41 -0
  60. package/es/template/common/faq-article-page/types.d.ts.map +1 -0
  61. package/es/template/common/faq-article-page/types.js +20 -0
  62. package/es/template/common/faq-article-page/types.js.map +1 -0
  63. package/es/template/common/faq-cards-page/index.d.ts +33 -0
  64. package/es/template/common/faq-cards-page/index.d.ts.map +1 -0
  65. package/es/template/common/faq-cards-page/index.js +45 -0
  66. package/es/template/common/faq-cards-page/index.js.map +1 -0
  67. package/es/template/common/faq-cards-page/style.css +106 -0
  68. package/es/template/common/faq-cards-page/types.d.ts +45 -0
  69. package/es/template/common/faq-cards-page/types.d.ts.map +1 -0
  70. package/es/template/common/faq-cards-page/types.js +18 -0
  71. package/es/template/common/faq-cards-page/types.js.map +1 -0
  72. package/es/template/common/faq-page/index.d.ts +50 -0
  73. package/es/template/common/faq-page/index.d.ts.map +1 -0
  74. package/es/template/common/faq-page/index.js +44 -0
  75. package/es/template/common/faq-page/index.js.map +1 -0
  76. package/es/template/common/faq-page/style.css +112 -0
  77. package/es/template/common/faq-page/types.d.ts +55 -0
  78. package/es/template/common/faq-page/types.d.ts.map +1 -0
  79. package/es/template/common/faq-page/types.js +12 -0
  80. package/es/template/common/faq-page/types.js.map +1 -0
  81. package/es/template/common/privacy-policy-page/index.d.ts +50 -0
  82. package/es/template/common/privacy-policy-page/index.d.ts.map +1 -0
  83. package/es/template/common/privacy-policy-page/index.js +44 -0
  84. package/es/template/common/privacy-policy-page/index.js.map +1 -0
  85. package/es/template/common/privacy-policy-page/style.css +111 -0
  86. package/es/template/common/privacy-policy-page/types.d.ts +55 -0
  87. package/es/template/common/privacy-policy-page/types.d.ts.map +1 -0
  88. package/es/template/common/privacy-policy-page/types.js +12 -0
  89. package/es/template/common/privacy-policy-page/types.js.map +1 -0
  90. package/es/util/button-icons.d.ts +1 -0
  91. package/es/util/button-icons.d.ts.map +1 -1
  92. package/es/util/button-icons.js +3 -2
  93. package/es/util/button-icons.js.map +1 -1
  94. package/es/variables/breakpoints.css +1 -1
  95. package/lib/molecule/expandable-item/index.d.ts +19 -0
  96. package/lib/molecule/expandable-item/index.d.ts.map +1 -0
  97. package/lib/molecule/expandable-item/index.js +58 -0
  98. package/lib/molecule/expandable-item/index.js.map +1 -0
  99. package/lib/molecule/expandable-item/style.css +129 -0
  100. package/lib/molecule/expandable-item/types.d.ts +20 -0
  101. package/lib/molecule/expandable-item/types.d.ts.map +1 -0
  102. package/lib/molecule/expandable-item/types.js +20 -0
  103. package/lib/molecule/expandable-item/types.js.map +1 -0
  104. package/lib/molecule/expandable-list/index.d.ts +18 -0
  105. package/lib/molecule/expandable-list/index.d.ts.map +1 -0
  106. package/lib/molecule/expandable-list/index.js +34 -0
  107. package/lib/molecule/expandable-list/index.js.map +1 -0
  108. package/lib/molecule/expandable-list/style.css +20 -0
  109. package/lib/molecule/expandable-list/types.d.ts +17 -0
  110. package/lib/molecule/expandable-list/types.d.ts.map +1 -0
  111. package/lib/molecule/expandable-list/types.js +16 -0
  112. package/lib/molecule/expandable-list/types.js.map +1 -0
  113. package/lib/molecule/hero/index.d.ts +30 -26
  114. package/lib/molecule/hero/index.d.ts.map +1 -1
  115. package/lib/molecule/hero/index.js +15 -14
  116. package/lib/molecule/hero/index.js.map +1 -1
  117. package/lib/molecule/hero/style.css +42 -0
  118. package/lib/molecule/hero/types.d.ts +22 -0
  119. package/lib/molecule/hero/types.d.ts.map +1 -0
  120. package/lib/molecule/hero/types.js +25 -0
  121. package/lib/molecule/hero/types.js.map +1 -0
  122. package/lib/molecule/menu-links/index.d.ts +23 -0
  123. package/lib/molecule/menu-links/index.d.ts.map +1 -0
  124. package/lib/molecule/menu-links/index.js +95 -0
  125. package/lib/molecule/menu-links/index.js.map +1 -0
  126. package/lib/molecule/menu-links/style.css +166 -0
  127. package/lib/molecule/menu-links/types.d.ts +37 -0
  128. package/lib/molecule/menu-links/types.d.ts.map +1 -0
  129. package/lib/molecule/menu-links/types.js +27 -0
  130. package/lib/molecule/menu-links/types.js.map +1 -0
  131. package/lib/molecule/privacy-policy-contact/index.d.ts +14 -0
  132. package/lib/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  133. package/lib/molecule/privacy-policy-contact/index.js +41 -0
  134. package/lib/molecule/privacy-policy-contact/index.js.map +1 -0
  135. package/lib/molecule/privacy-policy-contact/style.css +39 -0
  136. package/lib/molecule/privacy-policy-contact/types.d.ts +10 -0
  137. package/lib/molecule/privacy-policy-contact/types.d.ts.map +1 -0
  138. package/lib/molecule/privacy-policy-contact/types.js +15 -0
  139. package/lib/molecule/privacy-policy-contact/types.js.map +1 -0
  140. package/lib/molecule/quick-access-card/index.d.ts +1 -0
  141. package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
  142. package/lib/molecule/quick-access-card/index.js +87 -24
  143. package/lib/molecule/quick-access-card/index.js.map +1 -1
  144. package/lib/molecule/quick-access-card/style.css +32 -21
  145. package/lib/molecule/quick-access-cards-group/index.d.ts +1 -0
  146. package/lib/organism/brand-dashboard/index.d.ts +1 -0
  147. package/lib/template/back-office/brand-update/index.d.ts +1 -0
  148. package/lib/template/common/faq-article-page/index.d.ts +27 -0
  149. package/lib/template/common/faq-article-page/index.d.ts.map +1 -0
  150. package/lib/template/common/faq-article-page/index.js +69 -0
  151. package/lib/template/common/faq-article-page/index.js.map +1 -0
  152. package/lib/template/common/faq-article-page/style.css +125 -0
  153. package/lib/template/common/faq-article-page/types.d.ts +41 -0
  154. package/lib/template/common/faq-article-page/types.d.ts.map +1 -0
  155. package/lib/template/common/faq-article-page/types.js +30 -0
  156. package/lib/template/common/faq-article-page/types.js.map +1 -0
  157. package/lib/template/common/faq-cards-page/index.d.ts +33 -0
  158. package/lib/template/common/faq-cards-page/index.d.ts.map +1 -0
  159. package/lib/template/common/faq-cards-page/index.js +58 -0
  160. package/lib/template/common/faq-cards-page/index.js.map +1 -0
  161. package/lib/template/common/faq-cards-page/style.css +106 -0
  162. package/lib/template/common/faq-cards-page/types.d.ts +45 -0
  163. package/lib/template/common/faq-cards-page/types.d.ts.map +1 -0
  164. package/lib/template/common/faq-cards-page/types.js +29 -0
  165. package/lib/template/common/faq-cards-page/types.js.map +1 -0
  166. package/lib/template/common/faq-page/index.d.ts +50 -0
  167. package/lib/template/common/faq-page/index.d.ts.map +1 -0
  168. package/lib/template/common/faq-page/index.js +58 -0
  169. package/lib/template/common/faq-page/index.js.map +1 -0
  170. package/lib/template/common/faq-page/style.css +112 -0
  171. package/lib/template/common/faq-page/types.d.ts +55 -0
  172. package/lib/template/common/faq-page/types.d.ts.map +1 -0
  173. package/lib/template/common/faq-page/types.js +25 -0
  174. package/lib/template/common/faq-page/types.js.map +1 -0
  175. package/lib/template/common/privacy-policy-page/index.d.ts +50 -0
  176. package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -0
  177. package/lib/template/common/privacy-policy-page/index.js +58 -0
  178. package/lib/template/common/privacy-policy-page/index.js.map +1 -0
  179. package/lib/template/common/privacy-policy-page/style.css +111 -0
  180. package/lib/template/common/privacy-policy-page/types.d.ts +55 -0
  181. package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -0
  182. package/lib/template/common/privacy-policy-page/types.js +25 -0
  183. package/lib/template/common/privacy-policy-page/types.js.map +1 -0
  184. package/lib/util/button-icons.d.ts +1 -0
  185. package/lib/util/button-icons.d.ts.map +1 -1
  186. package/lib/util/button-icons.js +2 -1
  187. package/lib/util/button-icons.js.map +1 -1
  188. package/lib/variables/breakpoints.css +1 -1
  189. package/package.json +2 -2
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ export declare const ICONS: {
4
+ arrow: any;
5
+ };
6
+ declare const ExpandableItem: {
7
+ ({ icon, title, isExpended, isLink, content, onClick, image }: Props): JSX.Element;
8
+ propTypes: {
9
+ title: import("prop-types").Requireable<string>;
10
+ icon: import("prop-types").Requireable<string>;
11
+ isExpended: import("prop-types").Requireable<boolean>;
12
+ isLink: import("prop-types").Requireable<boolean>;
13
+ content: import("prop-types").Requireable<string>;
14
+ image: import("prop-types").Requireable<string>;
15
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
16
+ };
17
+ };
18
+ export default ExpandableItem;
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;mEAAgE,KAAK;;;;;;;;;;CA8BxF,CAAC;AAGF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import classnames from 'classnames';
3
+ import { NovaCompositionNavigationArrowDown as ArrowIcon } from '@coorpacademy/nova-icons';
4
+ import { propTypes } from './types';
5
+ import styles from './style.css';
6
+ export const ICONS = {
7
+ arrow: ArrowIcon
8
+ };
9
+
10
+ const ExpandableItem = ({
11
+ icon,
12
+ title,
13
+ isExpended,
14
+ isLink,
15
+ content,
16
+ onClick,
17
+ image
18
+ }) => {
19
+ const Icon = ICONS[icon];
20
+ return /*#__PURE__*/React.createElement("div", {
21
+ className: isExpended ? styles.expendedContainer : styles.container
22
+ }, /*#__PURE__*/React.createElement("div", {
23
+ className: classnames(styles.header, isExpended ? styles.expendedHeader : null),
24
+ onClick: onClick
25
+ }, /*#__PURE__*/React.createElement("h3", {
26
+ className: styles.title
27
+ }, title), Icon ? /*#__PURE__*/React.createElement(Icon, {
28
+ className: classnames(styles.icon, isExpended ? styles.expendedIcon : null, isLink ? styles.linkIcon : null)
29
+ }) : null), isExpended ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
30
+ className: styles.content // eslint-disable-next-line react/no-danger
31
+ ,
32
+ dangerouslySetInnerHTML: {
33
+ __html: content
34
+ }
35
+ }), image ? /*#__PURE__*/React.createElement("img", {
36
+ className: styles.image,
37
+ src: image,
38
+ alt: ''
39
+ }) : null) : null);
40
+ };
41
+
42
+ ExpandableItem.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
43
+ export default ExpandableItem;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","classnames","NovaCompositionNavigationArrowDown","ArrowIcon","propTypes","styles","ICONS","arrow","ExpandableItem","icon","title","isExpended","isLink","content","onClick","image","Icon","expendedContainer","container","header","expendedHeader","expendedIcon","linkIcon","__html"],"sources":["../../../src/molecule/expandable-item/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {NovaCompositionNavigationArrowDown as ArrowIcon} from '@coorpacademy/nova-icons';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nexport const ICONS = {\n arrow: ArrowIcon\n};\n\nconst ExpandableItem = ({icon, title, isExpended, isLink, content, onClick, image}: Props) => {\n const Icon = ICONS[icon];\n return (\n <div className={isExpended ? styles.expendedContainer : styles.container}>\n <div\n className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}\n onClick={onClick}\n >\n <h3 className={styles.title}>{title}</h3>\n {Icon ? (\n <Icon\n className={classnames(\n styles.icon,\n isExpended ? styles.expendedIcon : null,\n isLink ? styles.linkIcon : null\n )}\n />\n ) : null}\n </div>\n {isExpended ? (\n <div>\n <div\n className={styles.content} // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {image ? <img className={styles.image} src={image} alt={''} /> : null}\n </div>\n ) : null}\n </div>\n );\n};\n\nExpandableItem.propTypes = propTypes;\nexport default ExpandableItem;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAAQC,kCAAkC,IAAIC,SAA9C,QAA8D,0BAA9D;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;AAEA,OAAO,MAAMC,KAAK,GAAG;EACnBC,KAAK,EAAEJ;AADY,CAAd;;AAIP,MAAMK,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,UAAd;EAA0BC,MAA1B;EAAkCC,OAAlC;EAA2CC,OAA3C;EAAoDC;AAApD,CAAD,KAAuE;EAC5F,MAAMC,IAAI,GAAGV,KAAK,CAACG,IAAD,CAAlB;EACA,oBACE;IAAK,SAAS,EAAEE,UAAU,GAAGN,MAAM,CAACY,iBAAV,GAA8BZ,MAAM,CAACa;EAA/D,gBACE;IACE,SAAS,EAAEjB,UAAU,CAACI,MAAM,CAACc,MAAR,EAAgBR,UAAU,GAAGN,MAAM,CAACe,cAAV,GAA2B,IAArD,CADvB;IAEE,OAAO,EAAEN;EAFX,gBAIE;IAAI,SAAS,EAAET,MAAM,CAACK;EAAtB,GAA8BA,KAA9B,CAJF,EAKGM,IAAI,gBACH,oBAAC,IAAD;IACE,SAAS,EAAEf,UAAU,CACnBI,MAAM,CAACI,IADY,EAEnBE,UAAU,GAAGN,MAAM,CAACgB,YAAV,GAAyB,IAFhB,EAGnBT,MAAM,GAAGP,MAAM,CAACiB,QAAV,GAAqB,IAHR;EADvB,EADG,GAQD,IAbN,CADF,EAgBGX,UAAU,gBACT,8CACE;IACE,SAAS,EAAEN,MAAM,CAACQ,OADpB,CAC6B;IAD7B;IAEE,uBAAuB,EAAE;MAACU,MAAM,EAAEV;IAAT;EAF3B,EADF,EAKGE,KAAK,gBAAG;IAAK,SAAS,EAAEV,MAAM,CAACU,KAAvB;IAA8B,GAAG,EAAEA,KAAnC;IAA0C,GAAG,EAAE;EAA/C,EAAH,GAA2D,IALnE,CADS,GAQP,IAxBN,CADF;AA4BD,CA9BD;;AAgCAP,cAAc,CAACJ,SAAf,2CAA2BA,SAA3B;AACA,eAAeI,cAAf"}
@@ -0,0 +1,129 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value breakpoints: "../../variables/breakpoints.css";
3
+ @value mobile from breakpoints;
4
+ @value tablet from breakpoints;
5
+ @value cm_primary_blue from colors;
6
+ @value cm_grey_500 from colors;
7
+ @value cm_grey_600 from colors;
8
+ @value cm_grey_800 from colors;
9
+ @value cm_grey_700 from colors;
10
+ @value white from colors;
11
+
12
+ .container {
13
+ display: flex;
14
+ flex-direction: column;
15
+ background: white;
16
+ gap: 16px;
17
+ border-radius: 8px;
18
+ width: 100%;
19
+ display: flex;
20
+ justify-content: center;
21
+ }
22
+
23
+ .header {
24
+ display: flex;
25
+ flex-direction: row;
26
+ flex: none;
27
+ order: 0;
28
+ flex-grow: 0;
29
+ justify-content: space-between;
30
+ align-items: center;
31
+ cursor: pointer;
32
+ padding: 24px;
33
+ gap: 16px;
34
+ }
35
+
36
+ .expendedContainer {
37
+ display: flex;
38
+ flex-direction: column;
39
+ background: white;
40
+ gap: 16px;
41
+ border-radius: 8px;
42
+ width: 100%;
43
+ display: flex;
44
+ justify-content: center;
45
+ }
46
+
47
+ .expendedHeader {
48
+ padding: 24px 24px 0px 24px;
49
+ }
50
+
51
+ .title {
52
+ font-family: Gilroy;
53
+ color: cm_grey_700;
54
+ margin: 0;
55
+ font-weight: inherit;
56
+ font-family: Gilroy;
57
+ font-size: 18px;
58
+ font-weight: 600;
59
+ line-height: 24px;
60
+ letter-spacing: 0px;
61
+ text-align: left;
62
+ }
63
+
64
+ .icon {
65
+ width: 16px;
66
+ height: 16px;
67
+ width: 14px;
68
+ left: 5px;
69
+ top: 9px;
70
+ border-radius: 0px;
71
+ color: cm_grey_500;
72
+ flex-shrink: 0;
73
+ min-width: 16px;
74
+ flex-basis: 16px;
75
+ }
76
+
77
+ .expendedIcon {
78
+ transform: rotateZ(180deg);
79
+ }
80
+
81
+ .linkIcon {
82
+ transform: rotateZ(270deg);
83
+ }
84
+
85
+ .content {
86
+ font-family: Gilroy;
87
+ font-size: 14px;
88
+ font-weight: 500;
89
+ line-height: 20px;
90
+ letter-spacing: 0px;
91
+ text-align: left;
92
+ padding: 0px 40px 32px 40px;
93
+ }
94
+
95
+ .image {
96
+ width: 100%;
97
+ }
98
+
99
+ @media mobile {
100
+ .container {
101
+ display: flex;
102
+ flex-direction: column;
103
+ background: white;
104
+ gap: 16px;
105
+ border-radius: 8px;
106
+ width: 100%;
107
+ display: flex;
108
+ justify-content: center;
109
+ height: max-content;
110
+ font-family: Gilroy;
111
+ font-size: 14px;
112
+ font-weight: 500;
113
+ line-height: 20px;
114
+ letter-spacing: 0px;
115
+ text-align: left;
116
+ }
117
+ .header {
118
+ display: flex;
119
+ flex-direction: row;
120
+ flex: none;
121
+ order: 0;
122
+ flex-grow: 0;
123
+ justify-content: space-between;
124
+ align-items: center;
125
+ cursor: pointer;
126
+ padding: 12px 40px;
127
+ height: max-content;
128
+ }
129
+ }
@@ -0,0 +1,20 @@
1
+ import PropTypes from 'prop-types';
2
+ export declare const propTypes: {
3
+ title: PropTypes.Requireable<string>;
4
+ icon: PropTypes.Requireable<string>;
5
+ isExpended: PropTypes.Requireable<boolean>;
6
+ isLink: PropTypes.Requireable<boolean>;
7
+ content: PropTypes.Requireable<string>;
8
+ image: PropTypes.Requireable<string>;
9
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
10
+ };
11
+ export declare type Props = {
12
+ title: string;
13
+ icon: 'arrow';
14
+ isExpended: boolean;
15
+ content: string;
16
+ isLink?: boolean;
17
+ image?: string;
18
+ onClick: () => void;
19
+ };
20
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,SAAS;;;;;;;;CAQrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ title: PropTypes.string,
4
+ icon: PropTypes.oneOf(['arrow']),
5
+ isExpended: PropTypes.bool,
6
+ isLink: PropTypes.bool,
7
+ content: PropTypes.string,
8
+ image: PropTypes.string,
9
+ onClick: PropTypes.func
10
+ };
11
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","icon","oneOf","isExpended","bool","isLink","content","image","onClick","func"],"sources":["../../../src/molecule/expandable-item/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n icon: PropTypes.oneOf(['arrow']),\n isExpended: PropTypes.bool,\n isLink: PropTypes.bool,\n content: PropTypes.string,\n image: PropTypes.string,\n onClick: PropTypes.func\n};\n\nexport type Props = {\n title: string;\n icon: 'arrow';\n isExpended: boolean;\n content: string;\n isLink?: boolean;\n image?: string;\n onClick: () => void;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEF,SAAS,CAACG,MADM;EAEvBC,IAAI,EAAEJ,SAAS,CAACK,KAAV,CAAgB,CAAC,OAAD,CAAhB,CAFiB;EAGvBC,UAAU,EAAEN,SAAS,CAACO,IAHC;EAIvBC,MAAM,EAAER,SAAS,CAACO,IAJK;EAKvBE,OAAO,EAAET,SAAS,CAACG,MALI;EAMvBO,KAAK,EAAEV,SAAS,CAACG,MANM;EAOvBQ,OAAO,EAAEX,SAAS,CAACY;AAPI,CAAlB"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ declare const ExpandableList: {
4
+ ({ items }: Props): JSX.Element;
5
+ propTypes: {
6
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
7
+ title: import("prop-types").Requireable<string>;
8
+ icon: import("prop-types").Requireable<string>;
9
+ isExpended: import("prop-types").Requireable<boolean>;
10
+ isLink: import("prop-types").Requireable<boolean>;
11
+ content: import("prop-types").Requireable<string>;
12
+ image: import("prop-types").Requireable<string>;
13
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
14
+ }> | null | undefined)[]>;
15
+ };
16
+ };
17
+ export default ExpandableList;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,cAAc;gBAAa,KAAK;;;;;;;;;;;;CAgBrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import ExpandableItem from '../expandable-item';
3
+ import { propTypes } from './types';
4
+ import styles from './style.css';
5
+
6
+ const ExpandableList = ({
7
+ items
8
+ }) => {
9
+ return /*#__PURE__*/React.createElement("ul", {
10
+ className: styles.list,
11
+ "data-name": "expandable-item"
12
+ }, items.map((item, index) => {
13
+ return /*#__PURE__*/React.createElement("li", {
14
+ key: `menu-link-item-${index}`,
15
+ id: `menu-link-item-${index}`,
16
+ className: styles.item
17
+ }, /*#__PURE__*/React.createElement(ExpandableItem, item));
18
+ }));
19
+ };
20
+
21
+ ExpandableList.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
22
+ export default ExpandableList;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","ExpandableItem","propTypes","styles","ExpandableList","items","list","map","item","index"],"sources":["../../../src/molecule/expandable-list/index.tsx"],"sourcesContent":["import React from 'react';\nimport ExpandableItem from '../expandable-item';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst ExpandableList = ({items}: Props) => {\n return (\n <ul className={styles.list} data-name=\"expandable-item\">\n {items.map((item, index) => {\n return (\n <li\n key={`menu-link-item-${index}`}\n id={`menu-link-item-${index}`}\n className={styles.item}\n >\n <ExpandableItem {...item} />\n </li>\n );\n })}\n </ul>\n );\n};\n\nExpandableList.propTypes = propTypes;\n\nexport default ExpandableList;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;;AAEA,MAAMC,cAAc,GAAG,CAAC;EAACC;AAAD,CAAD,KAAoB;EACzC,oBACE;IAAI,SAAS,EAAEF,MAAM,CAACG,IAAtB;IAA4B,aAAU;EAAtC,GACGD,KAAK,CAACE,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;IAC1B,oBACE;MACE,GAAG,EAAG,kBAAiBA,KAAM,EAD/B;MAEE,EAAE,EAAG,kBAAiBA,KAAM,EAF9B;MAGE,SAAS,EAAEN,MAAM,CAACK;IAHpB,gBAKE,oBAAC,cAAD,EAAoBA,IAApB,CALF,CADF;EASD,CAVA,CADH,CADF;AAeD,CAhBD;;AAkBAJ,cAAc,CAACF,SAAf,2CAA2BA,SAA3B;AAEA,eAAeE,cAAf"}
@@ -0,0 +1,20 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value breakpoints: "../../variables/breakpoints.css";
3
+ @value mobile from breakpoints;
4
+ @value tablet from breakpoints;
5
+ @value cm_primary_blue from colors;
6
+ @value cm_grey_500 from colors;
7
+ @value cm_grey_800 from colors;
8
+
9
+ .list {
10
+ list-style: none;
11
+ cursor: pointer;
12
+ margin: 0;
13
+ padding: 0;
14
+ }
15
+
16
+ .item {
17
+ display: flex;
18
+ flex-direction: row;
19
+ margin-bottom: 16px;
20
+ }
@@ -0,0 +1,17 @@
1
+ import PropTypes from 'prop-types';
2
+ import { Props as ItemProps } from '../expandable-item/types';
3
+ export declare const propTypes: {
4
+ items: PropTypes.Requireable<(PropTypes.InferProps<{
5
+ title: PropTypes.Requireable<string>;
6
+ icon: PropTypes.Requireable<string>;
7
+ isExpended: PropTypes.Requireable<boolean>;
8
+ isLink: PropTypes.Requireable<boolean>;
9
+ content: PropTypes.Requireable<string>;
10
+ image: PropTypes.Requireable<string>;
11
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
12
+ }> | null | undefined)[]>;
13
+ };
14
+ export declare type Props = {
15
+ items: ItemProps[];
16
+ };
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,0BAA0B,CAAC;AAExF,eAAO,MAAM,SAAS;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+ import { propTypes as ItemPropTypes } from '../expandable-item/types';
3
+ export const propTypes = {
4
+ items: PropTypes.arrayOf(PropTypes.shape(ItemPropTypes))
5
+ };
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["PropTypes","propTypes","ItemPropTypes","items","arrayOf","shape"],"sources":["../../../src/molecule/expandable-list/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {Props as ItemProps, propTypes as ItemPropTypes} from '../expandable-item/types';\n\nexport const propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(ItemPropTypes))\n};\n\nexport type Props = {\n items: ItemProps[];\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAA4BC,SAAS,IAAIC,aAAzC,QAA6D,0BAA7D;AAEA,OAAO,MAAMD,SAAS,GAAG;EACvBE,KAAK,EAAEH,SAAS,CAACI,OAAV,CAAkBJ,SAAS,CAACK,KAAV,CAAgBH,aAAhB,CAAlB;AADgB,CAAlB"}
@@ -1,37 +1,41 @@
1
- export default Hero;
2
- declare function Hero(props: any, context: any): JSX.Element;
3
- declare namespace Hero {
4
- namespace contextTypes {
5
- const skin: PropTypes.Requireable<PropTypes.InferProps<{
6
- common: PropTypes.Requireable<{
1
+ /// <reference types="react" />
2
+ import { WebContextValues } from '../../atom/provider/web-context';
3
+ import { Props } from './types';
4
+ declare const Hero: {
5
+ (props: Props, context: WebContextValues): JSX.Element;
6
+ contextTypes: {
7
+ skin: import("prop-types").Requireable<import("prop-types").InferProps<{
8
+ common: import("prop-types").Requireable<{
7
9
  [x: string]: any;
8
10
  }>;
9
- images: PropTypes.Requireable<PropTypes.InferProps<{
10
- 'logo-mobile': PropTypes.Requireable<any>;
11
- logo: PropTypes.Requireable<any>;
12
- 'logo-email': PropTypes.Requireable<any>;
13
- login: PropTypes.Requireable<any>;
11
+ images: import("prop-types").Requireable<import("prop-types").InferProps<{
12
+ 'logo-mobile': import("prop-types").Requireable<any>;
13
+ logo: import("prop-types").Requireable<any>;
14
+ 'logo-email': import("prop-types").Requireable<any>;
15
+ login: import("prop-types").Requireable<any>;
14
16
  }>>;
15
- icons: PropTypes.Requireable<{
17
+ icons: import("prop-types").Requireable<{
16
18
  [x: string]: any;
17
19
  }>;
18
- mod: PropTypes.Requireable<{
20
+ mod: import("prop-types").Requireable<{
19
21
  [x: string]: any;
20
22
  }>;
21
- courses: PropTypes.Requireable<any[]>;
22
- texts: PropTypes.Requireable<{
23
+ courses: import("prop-types").Requireable<any[]>;
24
+ texts: import("prop-types").Requireable<{
23
25
  [x: string]: any;
24
26
  }>;
25
27
  }>>;
26
- }
27
- namespace propTypes {
28
- const image: PropTypes.Requireable<string>;
29
- const title: PropTypes.Requireable<string>;
30
- const author: PropTypes.Requireable<string>;
31
- const progress: PropTypes.Requireable<number>;
32
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
- const submitValue: PropTypes.Requireable<string>;
34
- }
35
- }
36
- import PropTypes from "prop-types";
28
+ };
29
+ propTypes: {
30
+ image: import("prop-types").Requireable<string>;
31
+ mode: import("prop-types").Requireable<string>;
32
+ description: import("prop-types").Requireable<string>;
33
+ title: import("prop-types").Requireable<string>;
34
+ author: import("prop-types").Requireable<string>;
35
+ progress: import("prop-types").Requireable<number>;
36
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
37
+ submitValue: import("prop-types").Requireable<string>;
38
+ };
39
+ };
40
+ export default Hero;
37
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/index.js"],"names":[],"mappings":";AASA,6DAgCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,IAAI;YAAW,KAAK,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDpD,CAAC;AAQF,eAAe,IAAI,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import _get from "lodash/fp/get";
2
2
  import React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import classnames from 'classnames';
5
4
  import Provider from '../../atom/provider';
6
5
  import Button from '../../atom/button';
7
6
  import CardContentInfo, { MODES } from '../card-content';
7
+ import { propTypes } from './types';
8
8
  import style from './style.css';
9
9
 
10
10
  const Hero = (props, context) => {
@@ -17,7 +17,9 @@ const Hero = (props, context) => {
17
17
  author,
18
18
  progress,
19
19
  onClick,
20
- submitValue
20
+ submitValue,
21
+ description,
22
+ mode = MODES.HERO
21
23
  } = props;
22
24
 
23
25
  const primaryColor = _get('common.primary', skin);
@@ -35,12 +37,18 @@ const Hero = (props, context) => {
35
37
  backgroundColor: primaryColor,
36
38
  backgroundImage: image ? `url('${image}')` : 'none'
37
39
  }
38
- })), /*#__PURE__*/React.createElement(CardContentInfo, {
40
+ })), mode === MODES.HERO ? /*#__PURE__*/React.createElement(CardContentInfo, {
39
41
  mode: MODES.HERO,
40
42
  author: author,
41
43
  progress: progress,
42
44
  title: title
43
- }), /*#__PURE__*/React.createElement("div", {
45
+ }) : /*#__PURE__*/React.createElement("div", {
46
+ className: style.infoWrapper
47
+ }, /*#__PURE__*/React.createElement("h1", {
48
+ className: style.title
49
+ }, title), /*#__PURE__*/React.createElement("p", {
50
+ className: style.description
51
+ }, description)), mode === MODES.HERO ? /*#__PURE__*/React.createElement("div", {
44
52
  className: style.heroButtonWrapper
45
53
  }, /*#__PURE__*/React.createElement(Button, {
46
54
  type: "link",
@@ -51,19 +59,12 @@ const Hero = (props, context) => {
51
59
  style: {
52
60
  backgroundColor: primaryColor
53
61
  }
54
- })));
62
+ })) : null);
55
63
  };
56
64
 
57
65
  Hero.contextTypes = {
58
66
  skin: Provider.childContextTypes.skin
59
67
  };
60
- Hero.propTypes = process.env.NODE_ENV !== "production" ? {
61
- image: PropTypes.string,
62
- title: CardContentInfo.propTypes.title,
63
- author: CardContentInfo.propTypes.author,
64
- progress: CardContentInfo.propTypes.progress,
65
- onClick: Button.propTypes.onClick,
66
- submitValue: Button.propTypes.submitValue
67
- } : {};
68
+ Hero.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
68
69
  export default Hero;
69
70
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","classnames","Provider","Button","CardContentInfo","MODES","style","Hero","props","context","skin","image","title","author","progress","onClick","submitValue","primaryColor","cardStyle","hero","lazy","imageWrapper","backgroundColor","backgroundImage","HERO","heroButtonWrapper","heroButton","contextTypes","childContextTypes","propTypes","string"],"sources":["../../../src/molecule/hero/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport CardContentInfo, {MODES} from '../card-content';\nimport style from './style.css';\n\nconst Hero = (props, context) => {\n const {skin} = context;\n const {image, title, author, progress, onClick, submitValue} = props;\n\n const primaryColor = get('common.primary', skin);\n const cardStyle = classnames(style.hero, title ? null : style.lazy);\n\n return (\n <div className={cardStyle} data-name=\"hero\">\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n />\n </div>\n <CardContentInfo mode={MODES.HERO} author={author} progress={progress} title={title} />\n <div className={style.heroButtonWrapper}>\n <Button\n type=\"link\"\n data-name=\"hero-button\"\n onClick={onClick}\n submitValue={submitValue}\n className={style.heroButton}\n style={{backgroundColor: primaryColor}}\n />\n </div>\n </div>\n );\n};\n\nHero.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nHero.propTypes = {\n image: PropTypes.string,\n title: CardContentInfo.propTypes.title,\n author: CardContentInfo.propTypes.author,\n progress: CardContentInfo.propTypes.progress,\n onClick: Button.propTypes.onClick,\n submitValue: Button.propTypes.submitValue\n};\n\nexport default Hero;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,IAAI,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC/B,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAM;IAACE,KAAD;IAAQC,KAAR;IAAeC,MAAf;IAAuBC,QAAvB;IAAiCC,OAAjC;IAA0CC;EAA1C,IAAyDR,KAA/D;;EAEA,MAAMS,YAAY,GAAG,KAAI,gBAAJ,EAAsBP,IAAtB,CAArB;;EACA,MAAMQ,SAAS,GAAGjB,UAAU,CAACK,KAAK,CAACa,IAAP,EAAaP,KAAK,GAAG,IAAH,GAAUN,KAAK,CAACc,IAAlC,CAA5B;EAEA,oBACE;IAAK,SAAS,EAAEF,SAAhB;IAA2B,aAAU;EAArC,gBACE;IAAK,SAAS,EAAEZ,KAAK,CAACe;EAAtB,gBACE;IACE,aAAU,OADZ;IAEE,SAAS,EAAEf,KAAK,CAACK,KAFnB;IAGE,KAAK,EAAE;MACLW,eAAe,EAAEL,YADZ;MAELM,eAAe,EAAEZ,KAAK,GAAI,QAAOA,KAAM,IAAjB,GAAuB;IAFxC;EAHT,EADF,CADF,eAWE,oBAAC,eAAD;IAAiB,IAAI,EAAEN,KAAK,CAACmB,IAA7B;IAAmC,MAAM,EAAEX,MAA3C;IAAmD,QAAQ,EAAEC,QAA7D;IAAuE,KAAK,EAAEF;EAA9E,EAXF,eAYE;IAAK,SAAS,EAAEN,KAAK,CAACmB;EAAtB,gBACE,oBAAC,MAAD;IACE,IAAI,EAAC,MADP;IAEE,aAAU,aAFZ;IAGE,OAAO,EAAEV,OAHX;IAIE,WAAW,EAAEC,WAJf;IAKE,SAAS,EAAEV,KAAK,CAACoB,UALnB;IAME,KAAK,EAAE;MAACJ,eAAe,EAAEL;IAAlB;EANT,EADF,CAZF,CADF;AAyBD,CAhCD;;AAkCAV,IAAI,CAACoB,YAAL,GAAoB;EAClBjB,IAAI,EAAER,QAAQ,CAAC0B,iBAAT,CAA2BlB;AADf,CAApB;AAIAH,IAAI,CAACsB,SAAL,2CAAiB;EACflB,KAAK,EAAEX,SAAS,CAAC8B,MADF;EAEflB,KAAK,EAAER,eAAe,CAACyB,SAAhB,CAA0BjB,KAFlB;EAGfC,MAAM,EAAET,eAAe,CAACyB,SAAhB,CAA0BhB,MAHnB;EAIfC,QAAQ,EAAEV,eAAe,CAACyB,SAAhB,CAA0Bf,QAJrB;EAKfC,OAAO,EAAEZ,MAAM,CAAC0B,SAAP,CAAiBd,OALX;EAMfC,WAAW,EAAEb,MAAM,CAAC0B,SAAP,CAAiBb;AANf,CAAjB;AASA,eAAeT,IAAf"}
1
+ {"version":3,"file":"index.js","names":["React","classnames","Provider","Button","CardContentInfo","MODES","propTypes","style","Hero","props","context","skin","image","title","author","progress","onClick","submitValue","description","mode","HERO","primaryColor","cardStyle","hero","lazy","imageWrapper","backgroundColor","backgroundImage","infoWrapper","heroButtonWrapper","heroButton","contextTypes","childContextTypes"],"sources":["../../../src/molecule/hero/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport CardContentInfo, {MODES} from '../card-content';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {propTypes, Props} from './types';\nimport style from './style.css';\n\nconst Hero = (props: Props, context: WebContextValues) => {\n const {skin} = context;\n const {\n image,\n title,\n author,\n progress,\n onClick,\n submitValue,\n description,\n mode = MODES.HERO\n } = props;\n\n const primaryColor = get('common.primary', skin);\n const cardStyle = classnames(style.hero, title ? null : style.lazy);\n\n return (\n <div className={cardStyle} data-name=\"hero\">\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n />\n </div>\n {mode === MODES.HERO ? (\n <CardContentInfo mode={MODES.HERO} author={author} progress={progress} title={title} />\n ) : (\n <div className={style.infoWrapper}>\n <h1 className={style.title}>{title}</h1>\n <p className={style.description}>{description}</p>\n </div>\n )}\n {mode === MODES.HERO ? (\n <div className={style.heroButtonWrapper}>\n <Button\n type=\"link\"\n data-name=\"hero-button\"\n onClick={onClick}\n submitValue={submitValue}\n className={style.heroButton}\n style={{backgroundColor: primaryColor}}\n />\n </div>\n ) : null}\n </div>\n );\n};\n\nHero.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nHero.propTypes = propTypes;\n\nexport default Hero;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;AAEA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,IAAI,GAAG,CAACC,KAAD,EAAeC,OAAf,KAA6C;EACxD,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAM;IACJE,KADI;IAEJC,KAFI;IAGJC,MAHI;IAIJC,QAJI;IAKJC,OALI;IAMJC,WANI;IAOJC,WAPI;IAQJC,IAAI,GAAGd,KAAK,CAACe;EART,IASFX,KATJ;;EAWA,MAAMY,YAAY,GAAG,KAAI,gBAAJ,EAAsBV,IAAtB,CAArB;;EACA,MAAMW,SAAS,GAAGrB,UAAU,CAACM,KAAK,CAACgB,IAAP,EAAaV,KAAK,GAAG,IAAH,GAAUN,KAAK,CAACiB,IAAlC,CAA5B;EAEA,oBACE;IAAK,SAAS,EAAEF,SAAhB;IAA2B,aAAU;EAArC,gBACE;IAAK,SAAS,EAAEf,KAAK,CAACkB;EAAtB,gBACE;IACE,aAAU,OADZ;IAEE,SAAS,EAAElB,KAAK,CAACK,KAFnB;IAGE,KAAK,EAAE;MACLc,eAAe,EAAEL,YADZ;MAELM,eAAe,EAAEf,KAAK,GAAI,QAAOA,KAAM,IAAjB,GAAuB;IAFxC;EAHT,EADF,CADF,EAWGO,IAAI,KAAKd,KAAK,CAACe,IAAf,gBACC,oBAAC,eAAD;IAAiB,IAAI,EAAEf,KAAK,CAACe,IAA7B;IAAmC,MAAM,EAAEN,MAA3C;IAAmD,QAAQ,EAAEC,QAA7D;IAAuE,KAAK,EAAEF;EAA9E,EADD,gBAGC;IAAK,SAAS,EAAEN,KAAK,CAACqB;EAAtB,gBACE;IAAI,SAAS,EAAErB,KAAK,CAACM;EAArB,GAA6BA,KAA7B,CADF,eAEE;IAAG,SAAS,EAAEN,KAAK,CAACW;EAApB,GAAkCA,WAAlC,CAFF,CAdJ,EAmBGC,IAAI,KAAKd,KAAK,CAACe,IAAf,gBACC;IAAK,SAAS,EAAEb,KAAK,CAACsB;EAAtB,gBACE,oBAAC,MAAD;IACE,IAAI,EAAC,MADP;IAEE,aAAU,aAFZ;IAGE,OAAO,EAAEb,OAHX;IAIE,WAAW,EAAEC,WAJf;IAKE,SAAS,EAAEV,KAAK,CAACuB,UALnB;IAME,KAAK,EAAE;MAACJ,eAAe,EAAEL;IAAlB;EANT,EADF,CADD,GAWG,IA9BN,CADF;AAkCD,CAlDD;;AAoDAb,IAAI,CAACuB,YAAL,GAAoB;EAClBpB,IAAI,EAAET,QAAQ,CAAC8B,iBAAT,CAA2BrB;AADf,CAApB;AAIAH,IAAI,CAACF,SAAL,2CAAiBA,SAAjB;AAEA,eAAeE,IAAf"}
@@ -156,3 +156,45 @@
156
156
  opacity: 0;
157
157
  }
158
158
  }
159
+
160
+ .infoWrapper {
161
+ display: flex;
162
+ flex-direction: column;
163
+ position: relative;
164
+ justify-content: center;
165
+ padding: 0 40px;
166
+ width: 100%;
167
+ box-sizing: border-box;
168
+ color: white;
169
+ align-self: center;
170
+ }
171
+
172
+ .title {
173
+ font-family: Gilroy;
174
+ font-size: 28px;
175
+ font-weight: 500;
176
+ line-height: 36px;
177
+ letter-spacing: 0px;
178
+ text-align: center;
179
+ overflow: hidden;
180
+ user-select: none;
181
+ margin: 0;
182
+ align-self: center;
183
+ }
184
+
185
+ .description {
186
+ text-align: center;
187
+ margin-top: 12px;
188
+ font-size: 18px;
189
+ font-family: Gilroy;
190
+ font-size: 18px;
191
+ font-weight: 500;
192
+ line-height: 24px;
193
+ letter-spacing: 0px;
194
+ overflow: hidden;
195
+ user-select: none;
196
+ max-width: 650px;
197
+ padding: 0;
198
+ margin: 0;
199
+ align-self: center;
200
+ }
@@ -0,0 +1,22 @@
1
+ import PropTypes from 'prop-types';
2
+ export declare const propTypes: {
3
+ image: PropTypes.Requireable<string>;
4
+ mode: PropTypes.Requireable<string>;
5
+ description: PropTypes.Requireable<string>;
6
+ title: PropTypes.Requireable<string>;
7
+ author: PropTypes.Requireable<string>;
8
+ progress: PropTypes.Requireable<number>;
9
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
10
+ submitValue: PropTypes.Requireable<string>;
11
+ };
12
+ export declare type Props = {
13
+ image?: string;
14
+ mode?: string;
15
+ description?: string;
16
+ title?: string;
17
+ author?: string;
18
+ progress?: number;
19
+ onClick?: () => void;
20
+ submitValue?: string;
21
+ };
22
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,eAAO,MAAM,SAAS;;;;;;;;;CASrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import PropTypes from 'prop-types';
2
+ import CardContentInfo from '../card-content';
3
+ import Button from '../../atom/button';
4
+ export const propTypes = {
5
+ image: PropTypes.string,
6
+ mode: PropTypes.string,
7
+ description: PropTypes.string,
8
+ title: CardContentInfo.propTypes.title,
9
+ author: CardContentInfo.propTypes.author,
10
+ progress: CardContentInfo.propTypes.progress,
11
+ onClick: Button.propTypes.onClick,
12
+ submitValue: Button.propTypes.submitValue
13
+ };
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["PropTypes","CardContentInfo","Button","propTypes","image","string","mode","description","title","author","progress","onClick","submitValue"],"sources":["../../../src/molecule/hero/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport CardContentInfo from '../card-content';\nimport Button from '../../atom/button';\n\nexport const propTypes = {\n image: PropTypes.string,\n mode: PropTypes.string,\n description: PropTypes.string,\n title: CardContentInfo.propTypes.title,\n author: CardContentInfo.propTypes.author,\n progress: CardContentInfo.propTypes.progress,\n onClick: Button.propTypes.onClick,\n submitValue: Button.propTypes.submitValue\n};\n\nexport type Props = {\n image?: string;\n mode?: string;\n description?: string;\n title?: string;\n author?: string;\n progress?: number;\n onClick?: () => void;\n submitValue?: string;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,eAAP,MAA4B,iBAA5B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEJ,SAAS,CAACK,MADM;EAEvBC,IAAI,EAAEN,SAAS,CAACK,MAFO;EAGvBE,WAAW,EAAEP,SAAS,CAACK,MAHA;EAIvBG,KAAK,EAAEP,eAAe,CAACE,SAAhB,CAA0BK,KAJV;EAKvBC,MAAM,EAAER,eAAe,CAACE,SAAhB,CAA0BM,MALX;EAMvBC,QAAQ,EAAET,eAAe,CAACE,SAAhB,CAA0BO,QANb;EAOvBC,OAAO,EAAET,MAAM,CAACC,SAAP,CAAiBQ,OAPH;EAQvBC,WAAW,EAAEV,MAAM,CAACC,SAAP,CAAiBS;AARP,CAAlB"}
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ declare const MenuLinks: {
4
+ ({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode, withScroll }: Props): JSX.Element;
5
+ propTypes: {
6
+ title: import("prop-types").Requireable<string>;
7
+ numberOfDisplayedItems: import("prop-types").Requireable<number>;
8
+ isDesktopMode: import("prop-types").Requireable<boolean>;
9
+ withScroll: import("prop-types").Requireable<boolean>;
10
+ showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
11
+ showMoreText: import("prop-types").Requireable<string>;
12
+ showLessText: import("prop-types").Requireable<string>;
13
+ isSelected: import("prop-types").Requireable<boolean>;
14
+ }>>;
15
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
16
+ text: import("prop-types").Requireable<string>;
17
+ isSelected: import("prop-types").Requireable<boolean>;
18
+ handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
19
+ }> | null | undefined)[]>;
20
+ };
21
+ };
22
+ export default MenuLinks;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/index.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAWzC,QAAA,MAAM,SAAS;wFAOZ,KAAK;;;;;;;;;;;;;;;;;CAsEP,CAAC;AAIF,eAAe,SAAS,CAAC"}