@coorpacademy/components 11.14.13 → 11.14.14-alpha.10

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 (207) 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 +135 -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 +22 -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 +22 -0
  29. package/es/molecule/menu-links/index.d.ts.map +1 -0
  30. package/es/molecule/menu-links/index.js +70 -0
  31. package/es/molecule/menu-links/index.js.map +1 -0
  32. package/es/molecule/menu-links/style.css +161 -0
  33. package/es/molecule/menu-links/types.d.ts +35 -0
  34. package/es/molecule/menu-links/types.d.ts.map +1 -0
  35. package/es/molecule/menu-links/types.js +17 -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 +38 -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/privacy-policy-download/index.d.ts +38 -0
  47. package/es/molecule/privacy-policy-download/index.d.ts.map +1 -0
  48. package/es/molecule/privacy-policy-download/index.js +27 -0
  49. package/es/molecule/privacy-policy-download/index.js.map +1 -0
  50. package/es/molecule/privacy-policy-download/style.css +65 -0
  51. package/es/molecule/privacy-policy-download/types.d.ts +50 -0
  52. package/es/molecule/privacy-policy-download/types.d.ts.map +1 -0
  53. package/es/molecule/privacy-policy-download/types.js +8 -0
  54. package/es/molecule/privacy-policy-download/types.js.map +1 -0
  55. package/es/molecule/quick-access-card/index.d.ts +1 -0
  56. package/es/molecule/quick-access-card/index.d.ts.map +1 -1
  57. package/es/molecule/quick-access-card/index.js +88 -25
  58. package/es/molecule/quick-access-card/index.js.map +1 -1
  59. package/es/molecule/quick-access-card/style.css +28 -17
  60. package/es/molecule/quick-access-cards-group/index.d.ts +1 -0
  61. package/es/organism/brand-dashboard/index.d.ts +1 -0
  62. package/es/template/back-office/brand-update/index.d.ts +1 -0
  63. package/es/template/common/faq-article-page/index.d.ts +27 -0
  64. package/es/template/common/faq-article-page/index.d.ts.map +1 -0
  65. package/es/template/common/faq-article-page/index.js +55 -0
  66. package/es/template/common/faq-article-page/index.js.map +1 -0
  67. package/es/template/common/faq-article-page/style.css +110 -0
  68. package/es/template/common/faq-article-page/types.d.ts +41 -0
  69. package/es/template/common/faq-article-page/types.d.ts.map +1 -0
  70. package/es/template/common/faq-article-page/types.js +20 -0
  71. package/es/template/common/faq-article-page/types.js.map +1 -0
  72. package/es/template/common/faq-cards-page/index.d.ts +33 -0
  73. package/es/template/common/faq-cards-page/index.d.ts.map +1 -0
  74. package/es/template/common/faq-cards-page/index.js +45 -0
  75. package/es/template/common/faq-cards-page/index.js.map +1 -0
  76. package/es/template/common/faq-cards-page/style.css +95 -0
  77. package/es/template/common/faq-cards-page/types.d.ts +45 -0
  78. package/es/template/common/faq-cards-page/types.d.ts.map +1 -0
  79. package/es/template/common/faq-cards-page/types.js +18 -0
  80. package/es/template/common/faq-cards-page/types.js.map +1 -0
  81. package/es/template/common/faq-page/index.d.ts +80 -0
  82. package/es/template/common/faq-page/index.d.ts.map +1 -0
  83. package/es/template/common/faq-page/index.js +44 -0
  84. package/es/template/common/faq-page/index.js.map +1 -0
  85. package/es/template/common/faq-page/style.css +104 -0
  86. package/es/template/common/faq-page/types.d.ts +87 -0
  87. package/es/template/common/faq-page/types.d.ts.map +1 -0
  88. package/es/template/common/faq-page/types.js +14 -0
  89. package/es/template/common/faq-page/types.js.map +1 -0
  90. package/es/template/common/privacy-policy-page/index.d.ts +80 -0
  91. package/es/template/common/privacy-policy-page/index.d.ts.map +1 -0
  92. package/es/template/common/privacy-policy-page/index.js +50 -0
  93. package/es/template/common/privacy-policy-page/index.js.map +1 -0
  94. package/es/template/common/privacy-policy-page/style.css +123 -0
  95. package/es/template/common/privacy-policy-page/types.d.ts +87 -0
  96. package/es/template/common/privacy-policy-page/types.d.ts.map +1 -0
  97. package/es/template/common/privacy-policy-page/types.js +14 -0
  98. package/es/template/common/privacy-policy-page/types.js.map +1 -0
  99. package/es/util/button-icons.d.ts +1 -0
  100. package/es/util/button-icons.d.ts.map +1 -1
  101. package/es/util/button-icons.js +3 -2
  102. package/es/util/button-icons.js.map +1 -1
  103. package/es/variables/breakpoints.css +1 -1
  104. package/lib/molecule/expandable-item/index.d.ts +19 -0
  105. package/lib/molecule/expandable-item/index.d.ts.map +1 -0
  106. package/lib/molecule/expandable-item/index.js +58 -0
  107. package/lib/molecule/expandable-item/index.js.map +1 -0
  108. package/lib/molecule/expandable-item/style.css +135 -0
  109. package/lib/molecule/expandable-item/types.d.ts +20 -0
  110. package/lib/molecule/expandable-item/types.d.ts.map +1 -0
  111. package/lib/molecule/expandable-item/types.js +20 -0
  112. package/lib/molecule/expandable-item/types.js.map +1 -0
  113. package/lib/molecule/expandable-list/index.d.ts +18 -0
  114. package/lib/molecule/expandable-list/index.d.ts.map +1 -0
  115. package/lib/molecule/expandable-list/index.js +33 -0
  116. package/lib/molecule/expandable-list/index.js.map +1 -0
  117. package/lib/molecule/expandable-list/style.css +20 -0
  118. package/lib/molecule/expandable-list/types.d.ts +17 -0
  119. package/lib/molecule/expandable-list/types.d.ts.map +1 -0
  120. package/lib/molecule/expandable-list/types.js +16 -0
  121. package/lib/molecule/expandable-list/types.js.map +1 -0
  122. package/lib/molecule/hero/index.d.ts +30 -26
  123. package/lib/molecule/hero/index.d.ts.map +1 -1
  124. package/lib/molecule/hero/index.js +15 -14
  125. package/lib/molecule/hero/index.js.map +1 -1
  126. package/lib/molecule/hero/style.css +42 -0
  127. package/lib/molecule/hero/types.d.ts +22 -0
  128. package/lib/molecule/hero/types.d.ts.map +1 -0
  129. package/lib/molecule/hero/types.js +25 -0
  130. package/lib/molecule/hero/types.js.map +1 -0
  131. package/lib/molecule/menu-links/index.d.ts +22 -0
  132. package/lib/molecule/menu-links/index.d.ts.map +1 -0
  133. package/lib/molecule/menu-links/index.js +88 -0
  134. package/lib/molecule/menu-links/index.js.map +1 -0
  135. package/lib/molecule/menu-links/style.css +161 -0
  136. package/lib/molecule/menu-links/types.d.ts +35 -0
  137. package/lib/molecule/menu-links/types.d.ts.map +1 -0
  138. package/lib/molecule/menu-links/types.js +26 -0
  139. package/lib/molecule/menu-links/types.js.map +1 -0
  140. package/lib/molecule/privacy-policy-contact/index.d.ts +14 -0
  141. package/lib/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  142. package/lib/molecule/privacy-policy-contact/index.js +41 -0
  143. package/lib/molecule/privacy-policy-contact/index.js.map +1 -0
  144. package/lib/molecule/privacy-policy-contact/style.css +38 -0
  145. package/lib/molecule/privacy-policy-contact/types.d.ts +10 -0
  146. package/lib/molecule/privacy-policy-contact/types.d.ts.map +1 -0
  147. package/lib/molecule/privacy-policy-contact/types.js +15 -0
  148. package/lib/molecule/privacy-policy-contact/types.js.map +1 -0
  149. package/lib/molecule/privacy-policy-download/index.d.ts +38 -0
  150. package/lib/molecule/privacy-policy-download/index.d.ts.map +1 -0
  151. package/lib/molecule/privacy-policy-download/index.js +38 -0
  152. package/lib/molecule/privacy-policy-download/index.js.map +1 -0
  153. package/lib/molecule/privacy-policy-download/style.css +65 -0
  154. package/lib/molecule/privacy-policy-download/types.d.ts +50 -0
  155. package/lib/molecule/privacy-policy-download/types.d.ts.map +1 -0
  156. package/lib/molecule/privacy-policy-download/types.js +18 -0
  157. package/lib/molecule/privacy-policy-download/types.js.map +1 -0
  158. package/lib/molecule/quick-access-card/index.d.ts +1 -0
  159. package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
  160. package/lib/molecule/quick-access-card/index.js +87 -24
  161. package/lib/molecule/quick-access-card/index.js.map +1 -1
  162. package/lib/molecule/quick-access-card/style.css +28 -17
  163. package/lib/molecule/quick-access-cards-group/index.d.ts +1 -0
  164. package/lib/organism/brand-dashboard/index.d.ts +1 -0
  165. package/lib/template/back-office/brand-update/index.d.ts +1 -0
  166. package/lib/template/common/faq-article-page/index.d.ts +27 -0
  167. package/lib/template/common/faq-article-page/index.d.ts.map +1 -0
  168. package/lib/template/common/faq-article-page/index.js +69 -0
  169. package/lib/template/common/faq-article-page/index.js.map +1 -0
  170. package/lib/template/common/faq-article-page/style.css +110 -0
  171. package/lib/template/common/faq-article-page/types.d.ts +41 -0
  172. package/lib/template/common/faq-article-page/types.d.ts.map +1 -0
  173. package/lib/template/common/faq-article-page/types.js +30 -0
  174. package/lib/template/common/faq-article-page/types.js.map +1 -0
  175. package/lib/template/common/faq-cards-page/index.d.ts +33 -0
  176. package/lib/template/common/faq-cards-page/index.d.ts.map +1 -0
  177. package/lib/template/common/faq-cards-page/index.js +58 -0
  178. package/lib/template/common/faq-cards-page/index.js.map +1 -0
  179. package/lib/template/common/faq-cards-page/style.css +95 -0
  180. package/lib/template/common/faq-cards-page/types.d.ts +45 -0
  181. package/lib/template/common/faq-cards-page/types.d.ts.map +1 -0
  182. package/lib/template/common/faq-cards-page/types.js +29 -0
  183. package/lib/template/common/faq-cards-page/types.js.map +1 -0
  184. package/lib/template/common/faq-page/index.d.ts +80 -0
  185. package/lib/template/common/faq-page/index.d.ts.map +1 -0
  186. package/lib/template/common/faq-page/index.js +58 -0
  187. package/lib/template/common/faq-page/index.js.map +1 -0
  188. package/lib/template/common/faq-page/style.css +104 -0
  189. package/lib/template/common/faq-page/types.d.ts +87 -0
  190. package/lib/template/common/faq-page/types.d.ts.map +1 -0
  191. package/lib/template/common/faq-page/types.js +28 -0
  192. package/lib/template/common/faq-page/types.js.map +1 -0
  193. package/lib/template/common/privacy-policy-page/index.d.ts +80 -0
  194. package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -0
  195. package/lib/template/common/privacy-policy-page/index.js +65 -0
  196. package/lib/template/common/privacy-policy-page/index.js.map +1 -0
  197. package/lib/template/common/privacy-policy-page/style.css +123 -0
  198. package/lib/template/common/privacy-policy-page/types.d.ts +87 -0
  199. package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -0
  200. package/lib/template/common/privacy-policy-page/types.js +28 -0
  201. package/lib/template/common/privacy-policy-page/types.js.map +1 -0
  202. package/lib/util/button-icons.d.ts +1 -0
  203. package/lib/util/button-icons.d.ts.map +1 -1
  204. package/lib/util/button-icons.js +2 -1
  205. package/lib/util/button-icons.js.map +1 -1
  206. package/lib/variables/breakpoints.css +1 -1
  207. package/package.json +2 -2
@@ -0,0 +1,70 @@
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, NovaLineObjectsBinoculars1 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
+ }) => {
22
+ const [isOpen, setIsOpen] = useState(false);
23
+ const itemsToDisplay = isDesktopMode || isOpen ? items : _slice(0, numberOfDisplayedItems, items);
24
+
25
+ const handleOnclickShowMore = () => setIsOpen(!isOpen);
26
+
27
+ return /*#__PURE__*/React.createElement("div", {
28
+ className: styles.container
29
+ }, /*#__PURE__*/React.createElement("h2", {
30
+ className: styles.title
31
+ }, title), /*#__PURE__*/React.createElement("ul", {
32
+ className: styles.list,
33
+ "data-name": "menu-links"
34
+ }, itemsToDisplay.map((item, index) => {
35
+ const {
36
+ handleOnclick
37
+ } = item;
38
+ const Icon = item.icon ? ICONS[item.icon] : null;
39
+ return /*#__PURE__*/React.createElement("li", {
40
+ onClick: handleOnclick,
41
+ key: `menu-link-item-${index}`,
42
+ className: styles.item
43
+ }, /*#__PURE__*/React.createElement("div", {
44
+ className: classnames(styles.border, item.isSelected ? styles.selectedBorder : null)
45
+ }), /*#__PURE__*/React.createElement("div", {
46
+ className: styles.flexContainer
47
+ }, Icon ? /*#__PURE__*/React.createElement(Icon, {
48
+ className: classnames(styles.icon, item.isSelected ? styles.selectedIcon : null)
49
+ }) : null, /*#__PURE__*/React.createElement("div", {
50
+ className: styles.flexContainer
51
+ }, /*#__PURE__*/React.createElement("span", {
52
+ className: item.isSelected ? styles.selectedItem : undefined
53
+ }, item.text), Icon ? /*#__PURE__*/React.createElement(ArrowIcon, {
54
+ className: classnames(styles.arrowIcon, item.isSelected ? styles.selectedIcon : null)
55
+ }) : null)));
56
+ }), !isDesktopMode ? /*#__PURE__*/React.createElement("li", {
57
+ // eslint-disable-next-line react/jsx-no-bind
58
+ onClick: handleOnclickShowMore,
59
+ key: `menu-link-item-show-more`,
60
+ className: classnames(styles.showMoreItem, styles.item)
61
+ }, /*#__PURE__*/React.createElement("div", {
62
+ className: styles.border
63
+ }), /*#__PURE__*/React.createElement("span", null, isOpen ? showMoreItem.showLessText : showMoreItem.showMoreText, /*#__PURE__*/React.createElement(ArrowIcon, {
64
+ className: isOpen ? styles.showLessIcon : styles.showMoreIcon
65
+ }))) : null));
66
+ };
67
+
68
+ MenuLinks.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
69
+ export default MenuLinks;
70
+ //# 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","NovaLineObjectsBinoculars1","Binoculaire","NovaLineContentEditionContentBook","ContentBook","propTypes","styles","ICONS","mobilePhone","chatBubbleCircleQuestionMark","networkAlert","binoculaire","contentBook","MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","isOpen","setIsOpen","itemsToDisplay","handleOnclickShowMore","container","list","map","item","index","handleOnclick","Icon","icon","border","isSelected","selectedBorder","flexContainer","selectedIcon","selectedItem","undefined","text","arrowIcon","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 NovaLineObjectsBinoculars1 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 = ({items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode}: 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 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 <div className={styles.flexContainer}>\n <span className={item.isSelected ? styles.selectedItem : undefined}>\n {item.text}\n </span>\n {Icon ? (\n <ArrowIcon\n className={classnames(\n styles.arrowIcon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n </div>\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,161 @@
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
+ .title {
26
+ padding: 0px 0px 0px 24px;
27
+ margin: 0;
28
+ font-family: 'Gilroy';
29
+ font-style: normal;
30
+ font-weight: 600;
31
+ font-size: 16px;
32
+ line-height: 22px;
33
+ order: 0;
34
+ flex-grow: 0;
35
+ z-index: 0;
36
+ color: cm_grey_500;
37
+ }
38
+
39
+ .list {
40
+ list-style: none;
41
+ cursor: pointer;
42
+ margin: 0;
43
+ padding: 0;
44
+ width: 100%;
45
+ }
46
+
47
+ .item {
48
+ display: flex;
49
+ flex-direction: row;
50
+ gap: 28px;
51
+ margin-bottom: 16px;
52
+ width: 100%;
53
+ }
54
+
55
+ .flexContainer span {
56
+ font-family: Gilroy;
57
+ font-size: 14px;
58
+ font-weight: 700;
59
+ line-height: 20px;
60
+ letter-spacing: 0px;
61
+ text-align: left;
62
+ }
63
+
64
+ .flexContainer {
65
+ display: flex;
66
+ justify-content: space-between;
67
+ align-items: center;
68
+ width: 100%;
69
+ }
70
+ .border {
71
+ width: 4px;
72
+ font-weight: inherit;
73
+ background-color: white;
74
+ flex-shrink: 0;
75
+ min-width: 4px;
76
+ flex-basis: 4px;
77
+ }
78
+
79
+ .icon {
80
+ width: 20px;
81
+ height: 20px;
82
+ color: #000;
83
+ margin-right: 12px;
84
+ }
85
+
86
+ .arrowIcon{
87
+ width: 12px;
88
+ min-width: 12px;
89
+ height: 12px;
90
+ margin-left: 10px;
91
+ transform: rotateZ(270deg);
92
+ }
93
+
94
+ .selectedBorder {
95
+ background-color: cm_primary_blue;
96
+ }
97
+
98
+ .showMoreItem {
99
+ display: none;
100
+ }
101
+
102
+ .selectedItem {
103
+ color: cm_primary_blue;
104
+ font-weight: 600;
105
+ }
106
+
107
+ .selectedIcon {
108
+ color: cm_primary_blue;
109
+ }
110
+ .item:hover{
111
+ text-decoration: underline;
112
+ }
113
+
114
+ .selectedItem:hover {
115
+ text-decoration-color: cm_primary_blue!important;
116
+ color: cm_primary_blue;
117
+ }
118
+ .showMoreIcon {
119
+ width: 12px;
120
+ height: 8px;
121
+ margin-left: 8px;
122
+ }
123
+
124
+ .showLessIcon {
125
+ width: 12px;
126
+ height: 8px;
127
+ margin-left: 8px;
128
+ transform: rotateZ(180deg);
129
+ }
130
+
131
+ @media tablet {
132
+ .showMoreItem {
133
+ font-family: 'Gilroy';
134
+ font-style: normal;
135
+ font-weight: 700;
136
+ font-size: 14px;
137
+ line-height: 20px;
138
+ color: cm_grey_700;
139
+ margin: 0;
140
+ display: block;
141
+ display: flex;
142
+ flex-direction: row;
143
+ margin-bottom: 16px;
144
+ }
145
+ }
146
+
147
+ @media mobile {
148
+ .showMoreItem {
149
+ font-family: 'Gilroy';
150
+ font-style: normal;
151
+ font-weight: 700;
152
+ font-size: 14px;
153
+ line-height: 20px;
154
+ color: cm_grey_700;
155
+ margin: 0;
156
+ display: block;
157
+ display: flex;
158
+ flex-direction: row;
159
+ margin-bottom: 16px;
160
+ }
161
+ }
@@ -0,0 +1,35 @@
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
+ showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
7
+ showMoreText: PropTypes.Requireable<string>;
8
+ showLessText: PropTypes.Requireable<string>;
9
+ isSelected: PropTypes.Requireable<boolean>;
10
+ }>>;
11
+ items: PropTypes.Requireable<(PropTypes.InferProps<{
12
+ text: PropTypes.Requireable<string>;
13
+ isSelected: PropTypes.Requireable<boolean>;
14
+ handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
15
+ }> | null | undefined)[]>;
16
+ };
17
+ export declare type Item = {
18
+ text: string;
19
+ isSelected?: boolean;
20
+ handleOnclick: () => void;
21
+ icon?: IconsType;
22
+ };
23
+ export declare type ShowMoreItem = {
24
+ showMoreText: string;
25
+ showLessText: string;
26
+ };
27
+ export declare type IconsType = 'mobilePhone' | 'chatBubbleCircleQuestionMark' | 'networkAlert' | 'binoculaire' | 'contentBook';
28
+ export declare type Props = {
29
+ title: string;
30
+ isDesktopMode: boolean;
31
+ showMoreItem: ShowMoreItem;
32
+ numberOfDisplayedItems: number;
33
+ items: Item[];
34
+ };
35
+ //# 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;;;;;;;;;;;;;;CAgBrB,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,YAAY,EAAE,YAAY,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
@@ -0,0 +1,17 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ title: PropTypes.string,
4
+ numberOfDisplayedItems: PropTypes.number,
5
+ isDesktopMode: PropTypes.bool,
6
+ showMoreItem: PropTypes.shape({
7
+ showMoreText: PropTypes.string,
8
+ showLessText: PropTypes.string,
9
+ isSelected: PropTypes.bool
10
+ }),
11
+ items: PropTypes.arrayOf(PropTypes.shape({
12
+ text: PropTypes.string,
13
+ isSelected: PropTypes.bool,
14
+ handleOnclick: PropTypes.func
15
+ }))
16
+ };
17
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","numberOfDisplayedItems","number","isDesktopMode","bool","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 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 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,YAAY,EAAER,SAAS,CAACS,KAAV,CAAgB;IAC5BC,YAAY,EAAEV,SAAS,CAACG,MADI;IAE5BQ,YAAY,EAAEX,SAAS,CAACG,MAFI;IAG5BS,UAAU,EAAEZ,SAAS,CAACO;EAHM,CAAhB,CAJS;EASvBM,KAAK,EAAEb,SAAS,CAACc,OAAV,CACLd,SAAS,CAACS,KAAV,CAAgB;IACdM,IAAI,EAAEf,SAAS,CAACG,MADF;IAEdS,UAAU,EAAEZ,SAAS,CAACO,IAFR;IAGdS,aAAa,EAAEhB,SAAS,CAACiB;EAHX,CAAhB,CADK;AATgB,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,38 @@
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
+ }
18
+
19
+ .title {
20
+ font-family: Gilroy;
21
+ font-size: 16px;
22
+ font-weight: 400;
23
+ line-height: 24px;
24
+ letter-spacing: 0em;
25
+ text-align: center;
26
+ margin: 0;
27
+ }
28
+
29
+ .content {
30
+ font-family: Gilroy;
31
+ font-size: 14px;
32
+ font-style: italic;
33
+ font-weight: 400;
34
+ line-height: 22px;
35
+ letter-spacing: 0em;
36
+ text-align: center;
37
+ margin: 0;
38
+ }
@@ -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"}
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ declare const PrivacyPolicyDownload: {
4
+ ({ title, downloadButton, content }: Props): JSX.Element;
5
+ propTypes: {
6
+ title: import("prop-types").Requireable<string>;
7
+ content: import("prop-types").Requireable<string>;
8
+ downloadButton: import("prop-types").Requireable<import("prop-types").InferProps<{
9
+ color: any;
10
+ submitValue: import("prop-types").Requireable<string>;
11
+ disabled: import("prop-types").Requireable<boolean>;
12
+ href: import("prop-types").Requireable<string>;
13
+ download: import("prop-types").Requireable<boolean>;
14
+ target: import("prop-types").Requireable<string>;
15
+ type: import("prop-types").Requireable<string>;
16
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
17
+ className: import("prop-types").Requireable<string>;
18
+ style: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
19
+ 'data-name': import("prop-types").Requireable<string>;
20
+ 'aria-label': import("prop-types").Requireable<string>;
21
+ 'data-testid': import("prop-types").Requireable<string>;
22
+ useButtonTag: import("prop-types").Requireable<boolean>;
23
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
24
+ onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
25
+ onMouseLeave: import("prop-types").Requireable<(...args: any[]) => any>;
26
+ onMouseOver: import("prop-types").Requireable<(...args: any[]) => any>;
27
+ buttonRef: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
28
+ 'data-for': import("prop-types").Requireable<string>;
29
+ 'data-tooltip-place': import("prop-types").Requireable<string>;
30
+ 'data-tip': import("prop-types").Requireable<boolean>;
31
+ isLinkDisabled: import("prop-types").Requireable<boolean>;
32
+ useWrapper: import("prop-types").Requireable<boolean>;
33
+ buttonContentClassName: import("prop-types").Requireable<string>;
34
+ }>>;
35
+ };
36
+ };
37
+ export default PrivacyPolicyDownload;
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/privacy-policy-download/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAEzC,QAAA,MAAM,qBAAqB;yCAAsC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYrE,CAAC;AAIF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,27 @@
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 Button from '../../atom/button';
5
+ import styles from './style.css';
6
+ import { propTypes } from './types';
7
+
8
+ const PrivacyPolicyDownload = ({
9
+ title,
10
+ downloadButton,
11
+ content
12
+ }) => {
13
+ return /*#__PURE__*/React.createElement("div", {
14
+ className: styles.container
15
+ }, /*#__PURE__*/React.createElement("h3", {
16
+ className: styles.title
17
+ }, title), /*#__PURE__*/React.createElement("p", {
18
+ className: styles.content
19
+ }, content), /*#__PURE__*/React.createElement(Button, _extends({}, downloadButton, {
20
+ className: styles.downloadButton,
21
+ buttonContentClassName: styles.downloadButtonContent
22
+ })));
23
+ };
24
+
25
+ PrivacyPolicyDownload.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
26
+ export default PrivacyPolicyDownload;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","Button","styles","propTypes","PrivacyPolicyDownload","title","downloadButton","content","container","downloadButtonContent"],"sources":["../../../src/molecule/privacy-policy-download/index.tsx"],"sourcesContent":["import React from 'react';\nimport Button from '../../atom/button';\nimport styles from './style.css';\nimport {propTypes, Props} from './types';\n\nconst PrivacyPolicyDownload = ({title, downloadButton, content}: Props) => {\n return (\n <div className={styles.container}>\n <h3 className={styles.title}>{title}</h3>\n <p className={styles.content}>{content}</p>\n <Button\n {...downloadButton}\n className={styles.downloadButton}\n buttonContentClassName={styles.downloadButtonContent}\n />\n </div>\n );\n};\n\nPrivacyPolicyDownload.propTypes = propTypes;\n\nexport default PrivacyPolicyDownload;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,MAAP,MAAmB,aAAnB;AACA,SAAQC,SAAR,QAA+B,SAA/B;;AAEA,MAAMC,qBAAqB,GAAG,CAAC;EAACC,KAAD;EAAQC,cAAR;EAAwBC;AAAxB,CAAD,KAA6C;EACzE,oBACE;IAAK,SAAS,EAAEL,MAAM,CAACM;EAAvB,gBACE;IAAI,SAAS,EAAEN,MAAM,CAACG;EAAtB,GAA8BA,KAA9B,CADF,eAEE;IAAG,SAAS,EAAEH,MAAM,CAACK;EAArB,GAA+BA,OAA/B,CAFF,eAGE,oBAAC,MAAD,eACMD,cADN;IAEE,SAAS,EAAEJ,MAAM,CAACI,cAFpB;IAGE,sBAAsB,EAAEJ,MAAM,CAACO;EAHjC,GAHF,CADF;AAWD,CAZD;;AAcAL,qBAAqB,CAACD,SAAtB,2CAAkCA,SAAlC;AAEA,eAAeC,qBAAf"}
@@ -0,0 +1,65 @@
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 white from colors;
7
+ @value cm_grey_700 from colors;
8
+ @value cm_grey_400 from colors;
9
+ @value white from colors;
10
+
11
+
12
+ .container {
13
+ padding: 40px;
14
+ background-color: white;
15
+ }
16
+
17
+ .title {
18
+ font-family: Gilroy;
19
+ font-size: 18px;
20
+ font-weight: 500;
21
+ line-height: 24px;
22
+ letter-spacing: 0em;
23
+ text-align: left;
24
+ color: cm_grey_700;
25
+ margin: 0px 0px 8px 0px;
26
+
27
+ }
28
+
29
+ .content {
30
+ font-family: Gilroy;
31
+ font-size: 14px;
32
+ font-weight: 500;
33
+ line-height: 20px;
34
+ letter-spacing: 0px;
35
+ text-align: left;
36
+ color: cm_grey_500;
37
+ margin: 0px 0px 24px 0px;
38
+ }
39
+
40
+ .downloadButton {
41
+ height: 48px;
42
+ width: 152px;
43
+ border-radius: 7px;
44
+ background-color: cm_primary_blue;
45
+ }
46
+
47
+ .downloadButtonContent {
48
+ padding: 0 30px;
49
+ display: block;
50
+ text-transform: inherit;
51
+ background-color: cm_primary_blue;
52
+ color: white;
53
+ font-family: Gilroy;
54
+ font-weight: 600;
55
+ font-size: 13px;
56
+ text-decoration: none;
57
+ line-height: inherit;
58
+ text-align: center;
59
+ box-sizing: border-box;
60
+ border-radius: inherit;
61
+ border: none;
62
+ width: 100%;
63
+ user-select: none;
64
+ cursor: pointer;
65
+ }
@@ -0,0 +1,50 @@
1
+ import PropTypes from 'prop-types';
2
+ export declare const propTypes: {
3
+ title: PropTypes.Requireable<string>;
4
+ content: PropTypes.Requireable<string>;
5
+ downloadButton: PropTypes.Requireable<PropTypes.InferProps<{
6
+ color: any;
7
+ submitValue: PropTypes.Requireable<string>;
8
+ disabled: PropTypes.Requireable<boolean>;
9
+ href: PropTypes.Requireable<string>;
10
+ download: PropTypes.Requireable<boolean>;
11
+ target: PropTypes.Requireable<string>;
12
+ type: PropTypes.Requireable<string>;
13
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
14
+ className: PropTypes.Requireable<string>;
15
+ style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
16
+ 'data-name': PropTypes.Requireable<string>;
17
+ 'aria-label': PropTypes.Requireable<string>;
18
+ 'data-testid': PropTypes.Requireable<string>;
19
+ useButtonTag: PropTypes.Requireable<boolean>;
20
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
21
+ onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
22
+ onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
23
+ onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
24
+ buttonRef: PropTypes.Requireable<PropTypes.InferProps<{}>>;
25
+ 'data-for': PropTypes.Requireable<string>;
26
+ 'data-tooltip-place': PropTypes.Requireable<string>;
27
+ 'data-tip': PropTypes.Requireable<boolean>;
28
+ isLinkDisabled: PropTypes.Requireable<boolean>;
29
+ useWrapper: PropTypes.Requireable<boolean>;
30
+ buttonContentClassName: PropTypes.Requireable<string>;
31
+ }>>;
32
+ };
33
+ export declare type Item = {
34
+ text: string;
35
+ isSelected?: boolean;
36
+ handleOnclick: () => void;
37
+ isShowMoreItem?: boolean;
38
+ };
39
+ export declare type Props = {
40
+ title: string;
41
+ content: string;
42
+ downloadButton: {
43
+ submitValue: string;
44
+ onClick: () => void;
45
+ type: string;
46
+ href: string;
47
+ download: boolean;
48
+ };
49
+ };
50
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/privacy-policy-download/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIrB,CAAC;AAEF,oBAAY,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AACF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH,CAAC"}
@@ -0,0 +1,8 @@
1
+ import PropTypes from 'prop-types';
2
+ import Button from '../../atom/button';
3
+ export const propTypes = {
4
+ title: PropTypes.string,
5
+ content: PropTypes.string,
6
+ downloadButton: PropTypes.shape(Button.propTypes)
7
+ };
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["PropTypes","Button","propTypes","title","string","content","downloadButton","shape"],"sources":["../../../src/molecule/privacy-policy-download/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Button from '../../atom/button';\n\nexport const propTypes = {\n title: PropTypes.string,\n content: PropTypes.string,\n downloadButton: PropTypes.shape(Button.propTypes)\n};\n\nexport type Item = {\n text: string;\n isSelected?: boolean;\n handleOnclick: () => void;\n isShowMoreItem?: boolean;\n};\nexport type Props = {\n title: string;\n content: string;\n downloadButton: {\n submitValue: string;\n onClick: () => void;\n type: string;\n href: string;\n download: boolean;\n };\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEH,SAAS,CAACI,MADM;EAEvBC,OAAO,EAAEL,SAAS,CAACI,MAFI;EAGvBE,cAAc,EAAEN,SAAS,CAACO,KAAV,CAAgBN,MAAM,CAACC,SAAvB;AAHO,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"}