@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,75 @@
1
+ import _slice from "lodash/fp/slice";
2
+ import React, { useState } from 'react';
3
+ import classnames from 'classnames';
4
+ import { NovaCompositionNavigationArrowDown as ArrowIcon, NovaLinePhoneMobilePhone as MobilePhone, NovaLineMessagesChatChatBubbleCircleQuestionMark as ChatBubbleCircleQuestionMark, NovaLineNetworkNetworkAlert as NetworkAlert, NovaLineObjectsBinoculars as Binoculaire, NovaLineContentEditionContentBook as ContentBook } from '@coorpacademy/nova-icons';
5
+ import { propTypes } from './types';
6
+ import styles from './style.css';
7
+ const ICONS = {
8
+ mobilePhone: MobilePhone,
9
+ chatBubbleCircleQuestionMark: ChatBubbleCircleQuestionMark,
10
+ networkAlert: NetworkAlert,
11
+ binoculaire: Binoculaire,
12
+ contentBook: ContentBook
13
+ };
14
+
15
+ const MenuLinks = ({
16
+ items,
17
+ title,
18
+ showMoreItem,
19
+ numberOfDisplayedItems,
20
+ isDesktopMode,
21
+ withScroll = false
22
+ }) => {
23
+ const [isOpen, setIsOpen] = useState(false);
24
+ const itemsToDisplay = isDesktopMode || isOpen ? items : _slice(0, numberOfDisplayedItems, items);
25
+
26
+ const handleOnclickShowMore = () => setIsOpen(!isOpen);
27
+
28
+ return /*#__PURE__*/React.createElement("div", {
29
+ className: styles.container
30
+ }, /*#__PURE__*/React.createElement("h2", {
31
+ className: styles.title
32
+ }, title), /*#__PURE__*/React.createElement("ul", {
33
+ className: styles.list,
34
+ "data-name": "menu-links"
35
+ }, itemsToDisplay.map((item, index) => {
36
+ const {
37
+ handleOnclick
38
+ } = item;
39
+ const Icon = item.icon ? ICONS[item.icon] : null;
40
+ const Item = /*#__PURE__*/React.createElement("div", {
41
+ className: styles.flexContainer
42
+ }, /*#__PURE__*/React.createElement("span", {
43
+ className: item.isSelected ? styles.selectedItem : undefined
44
+ }, item.text), Icon ? /*#__PURE__*/React.createElement(ArrowIcon, {
45
+ className: classnames(styles.arrowIcon, item.isSelected ? styles.selectedIcon : null)
46
+ }) : null);
47
+ return /*#__PURE__*/React.createElement("li", {
48
+ onClick: handleOnclick,
49
+ key: `menu-link-item-${index}`,
50
+ className: styles.item
51
+ }, /*#__PURE__*/React.createElement("div", {
52
+ className: classnames(styles.border, item.isSelected ? styles.selectedBorder : null)
53
+ }), /*#__PURE__*/React.createElement("div", {
54
+ className: styles.flexContainer
55
+ }, Icon ? /*#__PURE__*/React.createElement(Icon, {
56
+ className: classnames(styles.icon, item.isSelected ? styles.selectedIcon : null)
57
+ }) : null, withScroll ? /*#__PURE__*/React.createElement("a", {
58
+ className: styles.link,
59
+ href: `#menu-link-item-${index}`
60
+ }, Item) : Item));
61
+ }), !isDesktopMode ? /*#__PURE__*/React.createElement("li", {
62
+ // eslint-disable-next-line react/jsx-no-bind
63
+ onClick: handleOnclickShowMore,
64
+ key: `menu-link-item-show-more`,
65
+ className: classnames(styles.showMoreItem, styles.item)
66
+ }, /*#__PURE__*/React.createElement("div", {
67
+ className: styles.border
68
+ }), /*#__PURE__*/React.createElement("span", null, isOpen ? showMoreItem.showLessText : showMoreItem.showMoreText, /*#__PURE__*/React.createElement(ArrowIcon, {
69
+ className: isOpen ? styles.showLessIcon : styles.showMoreIcon
70
+ }))) : null));
71
+ };
72
+
73
+ MenuLinks.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
74
+ export default MenuLinks;
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","useState","classnames","NovaCompositionNavigationArrowDown","ArrowIcon","NovaLinePhoneMobilePhone","MobilePhone","NovaLineMessagesChatChatBubbleCircleQuestionMark","ChatBubbleCircleQuestionMark","NovaLineNetworkNetworkAlert","NetworkAlert","NovaLineObjectsBinoculars","Binoculaire","NovaLineContentEditionContentBook","ContentBook","propTypes","styles","ICONS","mobilePhone","chatBubbleCircleQuestionMark","networkAlert","binoculaire","contentBook","MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","withScroll","isOpen","setIsOpen","itemsToDisplay","handleOnclickShowMore","container","list","map","item","index","handleOnclick","Icon","icon","Item","flexContainer","isSelected","selectedItem","undefined","text","arrowIcon","selectedIcon","border","selectedBorder","link","showLessText","showMoreText","showLessIcon","showMoreIcon"],"sources":["../../../src/molecule/menu-links/index.tsx"],"sourcesContent":["import React, {useState} from 'react';\nimport classnames from 'classnames';\nimport {\n NovaCompositionNavigationArrowDown as ArrowIcon,\n NovaLinePhoneMobilePhone as MobilePhone,\n NovaLineMessagesChatChatBubbleCircleQuestionMark as ChatBubbleCircleQuestionMark,\n NovaLineNetworkNetworkAlert as NetworkAlert,\n NovaLineObjectsBinoculars as Binoculaire,\n NovaLineContentEditionContentBook as ContentBook\n} from '@coorpacademy/nova-icons';\nimport {slice} from 'lodash/fp';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst ICONS = {\n mobilePhone: MobilePhone,\n chatBubbleCircleQuestionMark: ChatBubbleCircleQuestionMark,\n networkAlert: NetworkAlert,\n binoculaire: Binoculaire,\n contentBook: ContentBook\n};\n\nconst MenuLinks = ({\n items,\n title,\n showMoreItem,\n numberOfDisplayedItems,\n isDesktopMode,\n withScroll = false\n}: Props) => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const itemsToDisplay = isDesktopMode || isOpen ? items : slice(0, numberOfDisplayedItems, items);\n const handleOnclickShowMore = () => setIsOpen(!isOpen);\n\n return (\n <div className={styles.container}>\n <h2 className={styles.title}>{title}</h2>\n <ul className={styles.list} data-name=\"menu-links\">\n {itemsToDisplay.map((item, index) => {\n const {handleOnclick} = item;\n const Icon = item.icon ? ICONS[item.icon] : null;\n const Item = (\n <div className={styles.flexContainer}>\n <span className={item.isSelected ? styles.selectedItem : undefined}>{item.text}</span>\n {Icon ? (\n <ArrowIcon\n className={classnames(\n styles.arrowIcon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n </div>\n );\n return (\n <li onClick={handleOnclick} key={`menu-link-item-${index}`} className={styles.item}>\n <div\n className={classnames(\n styles.border,\n item.isSelected ? styles.selectedBorder : null\n )}\n />\n <div className={styles.flexContainer}>\n {Icon ? (\n <Icon\n className={classnames(\n styles.icon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n {withScroll ? (\n <a className={styles.link} href={`#menu-link-item-${index}`}>\n {Item}\n </a>\n ) : (\n Item\n )}\n </div>\n </li>\n );\n })}\n {!isDesktopMode ? (\n <li\n // eslint-disable-next-line react/jsx-no-bind\n onClick={handleOnclickShowMore}\n key={`menu-link-item-show-more`}\n className={classnames(styles.showMoreItem, styles.item)}\n >\n <div className={styles.border} />\n <span>\n {isOpen ? showMoreItem.showLessText : showMoreItem.showMoreText}\n <ArrowIcon className={isOpen ? styles.showLessIcon : styles.showMoreIcon} />\n </span>\n </li>\n ) : null}\n </ul>\n </div>\n );\n};\n\nMenuLinks.propTypes = propTypes;\n\nexport default MenuLinks;\n"],"mappings":"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"}
@@ -0,0 +1,166 @@
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_700 from colors;
8
+ @value cm_grey_800 from colors;
9
+ @value white from colors;
10
+
11
+
12
+ .container {
13
+ display: flex;
14
+ flex-direction: column;
15
+ align-items: flex-start;
16
+ padding: 24px 24px 8px 0px;
17
+ gap: 24px;
18
+ background: #FFFFFF;
19
+ border-radius: 8px;
20
+ flex: none;
21
+ order: 0;
22
+ flex-grow: 0;
23
+ }
24
+
25
+ .link {
26
+ text-decoration: none;
27
+ color: cm_grey_700;
28
+ }
29
+
30
+ .title {
31
+ padding: 0px 0px 0px 24px;
32
+ margin: 0;
33
+ font-family: 'Gilroy';
34
+ font-style: normal;
35
+ font-weight: 600;
36
+ font-size: 16px;
37
+ line-height: 22px;
38
+ order: 0;
39
+ flex-grow: 0;
40
+ z-index: 0;
41
+ color: cm_grey_500;
42
+ }
43
+
44
+ .list {
45
+ list-style: none;
46
+ cursor: pointer;
47
+ margin: 0;
48
+ padding: 0;
49
+ width: 100%;
50
+ }
51
+
52
+ .item {
53
+ display: flex;
54
+ flex-direction: row;
55
+ gap: 28px;
56
+ margin-bottom: 16px;
57
+ width: 100%;
58
+ }
59
+
60
+ .flexContainer span {
61
+ font-family: Gilroy;
62
+ font-size: 14px;
63
+ font-weight: 700;
64
+ line-height: 20px;
65
+ letter-spacing: 0px;
66
+ text-align: left;
67
+ }
68
+
69
+ .flexContainer {
70
+ display: flex;
71
+ justify-content: space-between;
72
+ align-items: center;
73
+ width: 100%;
74
+ }
75
+ .border {
76
+ width: 4px;
77
+ font-weight: inherit;
78
+ background-color: white;
79
+ flex-shrink: 0;
80
+ min-width: 4px;
81
+ flex-basis: 4px;
82
+ }
83
+
84
+ .icon {
85
+ width: 20px;
86
+ height: 20px;
87
+ color: #000;
88
+ margin-right: 12px;
89
+ }
90
+
91
+ .arrowIcon{
92
+ width: 12px;
93
+ min-width: 12px;
94
+ height: 12px;
95
+ margin-left: 10px;
96
+ transform: rotateZ(270deg);
97
+ }
98
+
99
+ .selectedBorder {
100
+ background-color: cm_primary_blue;
101
+ }
102
+
103
+ .showMoreItem {
104
+ display: none;
105
+ }
106
+
107
+ .selectedItem {
108
+ color: cm_primary_blue;
109
+ font-weight: 600;
110
+ }
111
+
112
+ .selectedIcon {
113
+ color: cm_primary_blue;
114
+ }
115
+ .item:hover{
116
+ text-decoration: underline;
117
+ }
118
+
119
+ .selectedItem:hover {
120
+ text-decoration-color: cm_primary_blue!important;
121
+ color: cm_primary_blue;
122
+ }
123
+ .showMoreIcon {
124
+ width: 12px;
125
+ height: 8px;
126
+ margin-left: 8px;
127
+ }
128
+
129
+ .showLessIcon {
130
+ width: 12px;
131
+ height: 8px;
132
+ margin-left: 8px;
133
+ transform: rotateZ(180deg);
134
+ }
135
+
136
+ @media tablet {
137
+ .showMoreItem {
138
+ font-family: 'Gilroy';
139
+ font-style: normal;
140
+ font-weight: 700;
141
+ font-size: 14px;
142
+ line-height: 20px;
143
+ color: cm_grey_700;
144
+ margin: 0;
145
+ display: block;
146
+ display: flex;
147
+ flex-direction: row;
148
+ margin-bottom: 16px;
149
+ }
150
+ }
151
+
152
+ @media mobile {
153
+ .showMoreItem {
154
+ font-family: 'Gilroy';
155
+ font-style: normal;
156
+ font-weight: 700;
157
+ font-size: 14px;
158
+ line-height: 20px;
159
+ color: cm_grey_700;
160
+ margin: 0;
161
+ display: block;
162
+ display: flex;
163
+ flex-direction: row;
164
+ margin-bottom: 16px;
165
+ }
166
+ }
@@ -0,0 +1,37 @@
1
+ import PropTypes from 'prop-types';
2
+ export declare const propTypes: {
3
+ title: PropTypes.Requireable<string>;
4
+ numberOfDisplayedItems: PropTypes.Requireable<number>;
5
+ isDesktopMode: PropTypes.Requireable<boolean>;
6
+ withScroll: PropTypes.Requireable<boolean>;
7
+ showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
8
+ showMoreText: PropTypes.Requireable<string>;
9
+ showLessText: PropTypes.Requireable<string>;
10
+ isSelected: PropTypes.Requireable<boolean>;
11
+ }>>;
12
+ items: PropTypes.Requireable<(PropTypes.InferProps<{
13
+ text: PropTypes.Requireable<string>;
14
+ isSelected: PropTypes.Requireable<boolean>;
15
+ handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
16
+ }> | null | undefined)[]>;
17
+ };
18
+ export declare type Item = {
19
+ text: string;
20
+ isSelected?: boolean;
21
+ handleOnclick: () => void;
22
+ icon?: IconsType;
23
+ };
24
+ export declare type ShowMoreItem = {
25
+ showMoreText: string;
26
+ showLessText: string;
27
+ };
28
+ export declare type IconsType = 'mobilePhone' | 'chatBubbleCircleQuestionMark' | 'networkAlert' | 'binoculaire' | 'contentBook';
29
+ export declare type Props = {
30
+ title: string;
31
+ isDesktopMode: boolean;
32
+ withScroll?: boolean;
33
+ showMoreItem: ShowMoreItem;
34
+ numberOfDisplayedItems: number;
35
+ items: Item[];
36
+ };
37
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAiBrB,CAAC;AAEF,oBAAY,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,SAAS,GACjB,aAAa,GACb,8BAA8B,GAC9B,cAAc,GACd,aAAa,GACb,aAAa,CAAC;AAElB,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
@@ -0,0 +1,18 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ title: PropTypes.string,
4
+ numberOfDisplayedItems: PropTypes.number,
5
+ isDesktopMode: PropTypes.bool,
6
+ withScroll: PropTypes.bool,
7
+ showMoreItem: PropTypes.shape({
8
+ showMoreText: PropTypes.string,
9
+ showLessText: PropTypes.string,
10
+ isSelected: PropTypes.bool
11
+ }),
12
+ items: PropTypes.arrayOf(PropTypes.shape({
13
+ text: PropTypes.string,
14
+ isSelected: PropTypes.bool,
15
+ handleOnclick: PropTypes.func
16
+ }))
17
+ };
18
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","numberOfDisplayedItems","number","isDesktopMode","bool","withScroll","showMoreItem","shape","showMoreText","showLessText","isSelected","items","arrayOf","text","handleOnclick","func"],"sources":["../../../src/molecule/menu-links/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n numberOfDisplayedItems: PropTypes.number,\n isDesktopMode: PropTypes.bool,\n withScroll: PropTypes.bool,\n showMoreItem: PropTypes.shape({\n showMoreText: PropTypes.string,\n showLessText: PropTypes.string,\n isSelected: PropTypes.bool\n }),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n isSelected: PropTypes.bool,\n handleOnclick: PropTypes.func\n })\n )\n};\n\nexport type Item = {\n text: string;\n isSelected?: boolean;\n handleOnclick: () => void;\n icon?: IconsType;\n};\n\nexport type ShowMoreItem = {\n showMoreText: string;\n showLessText: string;\n};\n\nexport type IconsType =\n | 'mobilePhone'\n | 'chatBubbleCircleQuestionMark'\n | 'networkAlert'\n | 'binoculaire'\n | 'contentBook';\n\nexport type Props = {\n title: string;\n isDesktopMode: boolean;\n withScroll?: boolean;\n showMoreItem: ShowMoreItem;\n numberOfDisplayedItems: number;\n items: Item[];\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEF,SAAS,CAACG,MADM;EAEvBC,sBAAsB,EAAEJ,SAAS,CAACK,MAFX;EAGvBC,aAAa,EAAEN,SAAS,CAACO,IAHF;EAIvBC,UAAU,EAAER,SAAS,CAACO,IAJC;EAKvBE,YAAY,EAAET,SAAS,CAACU,KAAV,CAAgB;IAC5BC,YAAY,EAAEX,SAAS,CAACG,MADI;IAE5BS,YAAY,EAAEZ,SAAS,CAACG,MAFI;IAG5BU,UAAU,EAAEb,SAAS,CAACO;EAHM,CAAhB,CALS;EAUvBO,KAAK,EAAEd,SAAS,CAACe,OAAV,CACLf,SAAS,CAACU,KAAV,CAAgB;IACdM,IAAI,EAAEhB,SAAS,CAACG,MADF;IAEdU,UAAU,EAAEb,SAAS,CAACO,IAFR;IAGdU,aAAa,EAAEjB,SAAS,CAACkB;EAHX,CAAhB,CADK;AAVgB,CAAlB"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ export declare const ICONS: {
4
+ arrow: any;
5
+ };
6
+ declare const PrivacyPolicyContact: {
7
+ ({ title, content }: Props): JSX.Element;
8
+ propTypes: {
9
+ title: import("prop-types").Requireable<string>;
10
+ content: import("prop-types").Requireable<string>;
11
+ };
12
+ };
13
+ export default PrivacyPolicyContact;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/privacy-policy-contact/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,oBAAoB;yBAAsB,KAAK;;;;;CAWpD,CAAC;AAIF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { NovaCompositionNavigationArrowDown as ArrowIcon } from '@coorpacademy/nova-icons';
3
+ import { propTypes } from './types';
4
+ import styles from './style.css';
5
+ export const ICONS = {
6
+ arrow: ArrowIcon
7
+ };
8
+
9
+ const PrivacyPolicyContact = ({
10
+ title,
11
+ content
12
+ }) => {
13
+ return /*#__PURE__*/React.createElement("div", {
14
+ className: styles.container
15
+ }, /*#__PURE__*/React.createElement("h3", {
16
+ className: styles.title // eslint-disable-next-line react/no-danger
17
+ ,
18
+ dangerouslySetInnerHTML: {
19
+ __html: title
20
+ }
21
+ }), /*#__PURE__*/React.createElement("p", {
22
+ className: styles.content
23
+ }, content));
24
+ };
25
+
26
+ PrivacyPolicyContact.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
27
+ export default PrivacyPolicyContact;
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","NovaCompositionNavigationArrowDown","ArrowIcon","propTypes","styles","ICONS","arrow","PrivacyPolicyContact","title","content","container","__html"],"sources":["../../../src/molecule/privacy-policy-contact/index.tsx"],"sourcesContent":["import React from 'react';\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 PrivacyPolicyContact = ({title, content}: Props) => {\n return (\n <div className={styles.container}>\n <h3\n className={styles.title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <p className={styles.content}>{content}</p>\n </div>\n );\n};\n\nPrivacyPolicyContact.propTypes = propTypes;\n\nexport default PrivacyPolicyContact;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;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,oBAAoB,GAAG,CAAC;EAACC,KAAD;EAAQC;AAAR,CAAD,KAA6B;EACxD,oBACE;IAAK,SAAS,EAAEL,MAAM,CAACM;EAAvB,gBACE;IACE,SAAS,EAAEN,MAAM,CAACI,KADpB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACG,MAAM,EAAEH;IAAT;EAH3B,EADF,eAME;IAAG,SAAS,EAAEJ,MAAM,CAACK;EAArB,GAA+BA,OAA/B,CANF,CADF;AAUD,CAXD;;AAaAF,oBAAoB,CAACJ,SAArB,2CAAiCA,SAAjC;AAEA,eAAeI,oBAAf"}
@@ -0,0 +1,39 @@
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_400 from colors;
8
+ @value white from colors;
9
+ @value white from colors;
10
+
11
+ .container {
12
+ padding: 16px 14px;
13
+ display: flex;
14
+ flex-direction: column;
15
+ align-items: center;
16
+ background-color: white;
17
+ flex: 1;
18
+ }
19
+
20
+ .title {
21
+ font-family: Gilroy;
22
+ font-size: 16px;
23
+ font-weight: 400;
24
+ line-height: 24px;
25
+ letter-spacing: 0em;
26
+ text-align: center;
27
+ margin: 0;
28
+ }
29
+
30
+ .content {
31
+ font-family: Gilroy;
32
+ font-size: 14px;
33
+ font-style: italic;
34
+ font-weight: 400;
35
+ line-height: 22px;
36
+ letter-spacing: 0em;
37
+ text-align: center;
38
+ margin: 0;
39
+ }
@@ -0,0 +1,10 @@
1
+ import PropTypes from 'prop-types';
2
+ export declare const propTypes: {
3
+ title: PropTypes.Requireable<string>;
4
+ content: PropTypes.Requireable<string>;
5
+ };
6
+ export declare type Props = {
7
+ title: string;
8
+ content: string;
9
+ };
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/privacy-policy-contact/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,SAAS;;;CAGrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ title: PropTypes.string,
4
+ content: PropTypes.string
5
+ };
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","content"],"sources":["../../../src/molecule/privacy-policy-contact/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n content: PropTypes.string\n};\n\nexport type Props = {\n title: string;\n content: string;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEF,SAAS,CAACG,MADM;EAEvBC,OAAO,EAAEJ,SAAS,CAACG;AAFI,CAAlB"}
@@ -6,6 +6,7 @@ declare namespace QuickAccessCard {
6
6
  const description: PropTypes.Requireable<string>;
7
7
  const href: PropTypes.Requireable<string>;
8
8
  const openInNewTab: PropTypes.Requireable<boolean>;
9
+ const isMoocCard: PropTypes.Requireable<boolean>;
9
10
  const feature: PropTypes.Requireable<string>;
10
11
  }
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/quick-access-card/index.js"],"names":[],"mappings":";AA+EA,wEAwDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/quick-access-card/index.js"],"names":[],"mappings":";AAiIA,wEAkEC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { NovaSolidContentContentBookAdd as CockpitIcon, NovaSolidUsersActionsUser as ManageUserIcon, NovaSolidFilesBasicFileUpload2 as UploadUserIcon, NovaSolidEmailAtSign as ManageEmailIcon, NovaSolidDesignPaintBrush2 as LookAndFeelIcon, NovaSolidContentContentViewList as DashboardIcon, NovaSolidContentEditionFlash as MassiveBattleIcon, NovaSolidApplicationsWindowApplication5 as CmsIcon, NovaSolidBusinessBusinessGraphLine2 as AnalyticsIcon, NovaCompositionNavigationArrowRight as ActionIcon, NovaCompositionCoorpacademyOpenInNewTab as NewTabIcon } from '@coorpacademy/nova-icons';
3
+ import { NovaSolidContentContentBookAdd as CockpitIcon, NovaSolidUsersActionsUser as ManageUserIcon, NovaSolidFilesBasicFileUpload2 as UploadUserIcon, NovaSolidEmailAtSign as ManageEmailIcon, NovaSolidDesignPaintBrush2 as LookAndFeelIcon, NovaSolidContentContentViewList as DashboardIcon, NovaSolidContentEditionFlash as MassiveBattleIcon, NovaSolidApplicationsWindowApplication5 as CmsIcon, NovaSolidBusinessBusinessGraphLine2 as AnalyticsIcon, NovaCompositionNavigationArrowRight as ActionIcon, NovaCompositionCoorpacademyOpenInNewTab as NewTabIcon, NovaLinePhoneMobilePhone as MobilePhone, NovaLineMessagesChatChatBubbleCircleQuestionMark as ChatBubbleCircleQuestionMark, NovaLineNetworkNetworkAlert as NetworkAlert, NovaLineObjectsBinoculars as Binoculaire, NovaLineContentEditionContentBook as ContentBook } from '@coorpacademy/nova-icons';
4
4
  import Link from '../../atom/link';
5
5
  import style from './style.css';
6
6
 
@@ -33,6 +33,21 @@ const getIcon = feature => {
33
33
  case 'analytics':
34
34
  return AnalyticsIcon;
35
35
 
36
+ case 'binoculaire':
37
+ return Binoculaire;
38
+
39
+ case 'book':
40
+ return ContentBook;
41
+
42
+ case 'network':
43
+ return NetworkAlert;
44
+
45
+ case 'chat-bubble-question':
46
+ return ChatBubbleCircleQuestionMark;
47
+
48
+ case 'mobile-phone':
49
+ return MobilePhone;
50
+
36
51
  default:
37
52
  return CockpitIcon;
38
53
  }
@@ -43,37 +58,77 @@ const getBackgroudRadialColors = feature => {
43
58
  case 'manage_users':
44
59
  case 'upload_users':
45
60
  return {
46
- iconColor: '#2EC1D6',
47
- degrees: '187'
61
+ iconBackgroundColor: '#2EC1D6',
62
+ degrees: '187',
63
+ iconColor: null
48
64
  };
49
65
 
50
66
  case 'look_and_feel':
51
67
  case 'dashboard':
52
68
  return {
53
- iconColor: '#18BB98',
54
- degrees: '167'
69
+ iconBackgroundColor: '#18BB98',
70
+ degrees: '167',
71
+ iconColor: null
55
72
  };
56
73
 
57
74
  case 'cockpit':
58
75
  return {
59
- iconColor: '#FF7043',
60
- degrees: '14'
76
+ iconBackgroundColor: '#FF7043',
77
+ degrees: '14',
78
+ iconColor: null
61
79
  };
62
80
 
63
81
  case 'manage_email':
64
82
  case 'massive_battle':
65
83
  case 'cms':
66
84
  return {
67
- iconColor: '#7340FF',
68
- degrees: '256'
85
+ iconBackgroundColor: '#7340FF',
86
+ degrees: '256',
87
+ iconColor: null
69
88
  };
70
89
 
71
90
  case 'analytics':
72
91
  return {
73
- iconColor: '#FF4040',
92
+ iconBackgroundColor: '#FF4040',
93
+ degrees: '0',
94
+ iconColor: null
95
+ };
96
+
97
+ case 'binoculaire':
98
+ return {
99
+ iconBackgroundColor: '#FFEFEB',
100
+ iconColor: '#FF541F',
101
+ degrees: '0'
102
+ };
103
+
104
+ case 'book':
105
+ return {
106
+ iconBackgroundColor: '#F1F6FE',
107
+ degrees: '0',
108
+ iconColor: '#0061FF'
109
+ };
110
+
111
+ case 'network':
112
+ return {
113
+ iconBackgroundColor: '#FFE5E6',
114
+ iconColor: '#FF0A0A',
74
115
  degrees: '0'
75
116
  };
76
117
 
118
+ case 'chat-bubble-question':
119
+ return {
120
+ iconBackgroundColor: '#E8FCF8',
121
+ iconColor: '#16AC8C',
122
+ degrees: '0'
123
+ };
124
+
125
+ case 'mobile-phone':
126
+ return {
127
+ iconBackgroundColor: '#F4F0FF',
128
+ degrees: '0',
129
+ iconColor: '#5C21FF'
130
+ };
131
+
77
132
  default:
78
133
  return null;
79
134
  }
@@ -85,11 +140,13 @@ const QuickAccessCard = (props, context) => {
85
140
  description,
86
141
  feature,
87
142
  href,
88
- openInNewTab = false
143
+ openInNewTab = false,
144
+ isMoocCard = false
89
145
  } = props;
90
146
  const {
91
- iconColor,
92
- degrees
147
+ iconBackgroundColor,
148
+ degrees,
149
+ iconColor
93
150
  } = getBackgroudRadialColors(feature);
94
151
  const Icon = getIcon(feature);
95
152
  const newTabOnClick = openInNewTab ? /*#__PURE__*/React.createElement(NewTabIcon, {
@@ -104,7 +161,7 @@ const QuickAccessCard = (props, context) => {
104
161
  target: openInNewTab ? '_blank' : '_self',
105
162
  className: style.link
106
163
  }, /*#__PURE__*/React.createElement("div", {
107
- style: {
164
+ style: !isMoocCard ? {
108
165
  background: `radial-gradient(62.12% 56.45% at 0% 77.29%,
109
166
  hsl(${degrees}deg 68% 40% / 20%) 0%,
110
167
  hsl(${degrees}deg 68% 40% / 0%) 100%),
@@ -115,32 +172,37 @@ const QuickAccessCard = (props, context) => {
115
172
  hsl(${degrees}deg 87% 91%) 0%,
116
173
  hsl(${degrees}deg 87% 91% / 0%) 100%),
117
174
  #FAFAFA`
118
- },
175
+ } : null,
119
176
  className: style.content
120
177
  }, /*#__PURE__*/React.createElement("div", {
121
178
  className: style.iconFeatureWrapper,
122
179
  style: {
123
- backgroundColor: iconColor
180
+ backgroundColor: iconBackgroundColor
124
181
  }
125
182
  }, /*#__PURE__*/React.createElement(Icon, {
126
- className: style.iconFeature
183
+ className: style.iconFeature,
184
+ style: {
185
+ color: iconColor
186
+ }
127
187
  })), /*#__PURE__*/React.createElement("div", {
128
188
  className: style.title
129
189
  }, title, newTabOnClick), /*#__PURE__*/React.createElement("div", {
130
190
  className: style.description
131
191
  }, description), /*#__PURE__*/React.createElement("div", {
132
- className: style.iconGotoWrapper,
133
- style: {
134
- backgroundColor: iconColor
135
- }
192
+ className: style.cta
193
+ }, /*#__PURE__*/React.createElement("div", {
194
+ className: !isMoocCard ? style.iconGotoWrapper : null,
195
+ style: !isMoocCard ? {
196
+ backgroundColor: iconBackgroundColor
197
+ } : null
136
198
  }, /*#__PURE__*/React.createElement("div", {
137
- className: style.hover,
199
+ className: isMoocCard ? style.hoverMooc : style.hover,
138
200
  style: {
139
- color: iconColor
201
+ color: isMoocCard ? '#FFFFFF' : iconBackgroundColor
140
202
  }
141
203
  }, /*#__PURE__*/React.createElement(ActionIcon, {
142
204
  className: style.iconGoto
143
- }))))));
205
+ })))))));
144
206
  };
145
207
 
146
208
  QuickAccessCard.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -148,7 +210,8 @@ QuickAccessCard.propTypes = process.env.NODE_ENV !== "production" ? {
148
210
  description: PropTypes.string,
149
211
  href: PropTypes.string,
150
212
  openInNewTab: PropTypes.bool,
151
- feature: PropTypes.oneOf(['analytics', 'cms', 'cockpit', 'massive_battle', 'manage_email', 'dashboard', 'look_and_feel', 'manage_users', 'upload_users'])
213
+ isMoocCard: PropTypes.bool,
214
+ feature: PropTypes.oneOf(['analytics', 'cms', 'cockpit', 'massive_battle', 'manage_email', 'dashboard', 'look_and_feel', 'manage_users', 'upload_users', 'binoculaire', 'book', 'network', 'chat-bubble-question', 'mobile-phone'])
152
215
  } : {};
153
216
  export default QuickAccessCard;
154
217
  //# sourceMappingURL=index.js.map