@coorpacademy/components 11.14.0 → 11.14.1-alpha.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/es/molecule/discipline-header/style.css +2 -1
  2. package/es/molecule/expandable-item/index.d.ts +19 -0
  3. package/es/molecule/expandable-item/index.d.ts.map +1 -0
  4. package/es/molecule/expandable-item/index.js +44 -0
  5. package/es/molecule/expandable-item/index.js.map +1 -0
  6. package/es/molecule/expandable-item/style.css +135 -0
  7. package/es/molecule/expandable-item/types.d.ts +20 -0
  8. package/es/molecule/expandable-item/types.d.ts.map +1 -0
  9. package/es/molecule/expandable-item/types.js +11 -0
  10. package/es/molecule/expandable-item/types.js.map +1 -0
  11. package/es/molecule/expandable-list/index.d.ts +18 -0
  12. package/es/molecule/expandable-list/index.d.ts.map +1 -0
  13. package/es/molecule/expandable-list/index.js +22 -0
  14. package/es/molecule/expandable-list/index.js.map +1 -0
  15. package/es/molecule/expandable-list/style.css +20 -0
  16. package/es/molecule/expandable-list/types.d.ts +17 -0
  17. package/es/molecule/expandable-list/types.d.ts.map +1 -0
  18. package/es/molecule/expandable-list/types.js +6 -0
  19. package/es/molecule/expandable-list/types.js.map +1 -0
  20. package/es/molecule/hero/index.d.ts +30 -26
  21. package/es/molecule/hero/index.d.ts.map +1 -1
  22. package/es/molecule/hero/index.js +14 -13
  23. package/es/molecule/hero/index.js.map +1 -1
  24. package/es/molecule/hero/style.css +42 -0
  25. package/es/molecule/hero/types.d.ts +22 -0
  26. package/es/molecule/hero/types.d.ts.map +1 -0
  27. package/es/molecule/hero/types.js +14 -0
  28. package/es/molecule/hero/types.js.map +1 -0
  29. package/es/molecule/menu-links/index.d.ts +22 -0
  30. package/es/molecule/menu-links/index.d.ts.map +1 -0
  31. package/es/molecule/menu-links/index.js +70 -0
  32. package/es/molecule/menu-links/index.js.map +1 -0
  33. package/es/molecule/menu-links/style.css +161 -0
  34. package/es/molecule/menu-links/types.d.ts +35 -0
  35. package/es/molecule/menu-links/types.d.ts.map +1 -0
  36. package/es/molecule/menu-links/types.js +17 -0
  37. package/es/molecule/menu-links/types.js.map +1 -0
  38. package/es/molecule/privacy-policy-contact/index.d.ts +14 -0
  39. package/es/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  40. package/es/molecule/privacy-policy-contact/index.js +28 -0
  41. package/es/molecule/privacy-policy-contact/index.js.map +1 -0
  42. package/es/molecule/privacy-policy-contact/style.css +38 -0
  43. package/es/molecule/privacy-policy-contact/types.d.ts +10 -0
  44. package/es/molecule/privacy-policy-contact/types.d.ts.map +1 -0
  45. package/es/molecule/privacy-policy-contact/types.js +6 -0
  46. package/es/molecule/privacy-policy-contact/types.js.map +1 -0
  47. package/es/molecule/privacy-policy-download/index.d.ts +38 -0
  48. package/es/molecule/privacy-policy-download/index.d.ts.map +1 -0
  49. package/es/molecule/privacy-policy-download/index.js +27 -0
  50. package/es/molecule/privacy-policy-download/index.js.map +1 -0
  51. package/es/molecule/privacy-policy-download/style.css +65 -0
  52. package/es/molecule/privacy-policy-download/types.d.ts +50 -0
  53. package/es/molecule/privacy-policy-download/types.d.ts.map +1 -0
  54. package/es/molecule/privacy-policy-download/types.js +8 -0
  55. package/es/molecule/privacy-policy-download/types.js.map +1 -0
  56. package/es/molecule/quick-access-card/index.d.ts +1 -0
  57. package/es/molecule/quick-access-card/index.d.ts.map +1 -1
  58. package/es/molecule/quick-access-card/index.js +77 -21
  59. package/es/molecule/quick-access-card/index.js.map +1 -1
  60. package/es/molecule/quick-access-card/style.css +28 -17
  61. package/es/molecule/quick-access-cards-group/index.d.ts +1 -0
  62. package/es/organism/brand-dashboard/index.d.ts +1 -0
  63. package/es/template/back-office/brand-update/index.d.ts +1 -0
  64. package/es/template/common/faq-article-page/index.d.ts +27 -0
  65. package/es/template/common/faq-article-page/index.d.ts.map +1 -0
  66. package/es/template/common/faq-article-page/index.js +50 -0
  67. package/es/template/common/faq-article-page/index.js.map +1 -0
  68. package/es/template/common/faq-article-page/style.css +110 -0
  69. package/es/template/common/faq-article-page/types.d.ts +40 -0
  70. package/es/template/common/faq-article-page/types.d.ts.map +1 -0
  71. package/es/template/common/faq-article-page/types.js +20 -0
  72. package/es/template/common/faq-article-page/types.js.map +1 -0
  73. package/es/template/common/faq-cards-page/index.d.ts +34 -0
  74. package/es/template/common/faq-cards-page/index.d.ts.map +1 -0
  75. package/es/template/common/faq-cards-page/index.js +45 -0
  76. package/es/template/common/faq-cards-page/index.js.map +1 -0
  77. package/es/template/common/faq-cards-page/style.css +95 -0
  78. package/es/template/common/faq-cards-page/types.d.ts +44 -0
  79. package/es/template/common/faq-cards-page/types.d.ts.map +1 -0
  80. package/es/template/common/faq-cards-page/types.js +13 -0
  81. package/es/template/common/faq-cards-page/types.js.map +1 -0
  82. package/es/template/common/faq-page/index.d.ts +80 -0
  83. package/es/template/common/faq-page/index.d.ts.map +1 -0
  84. package/es/template/common/faq-page/index.js +44 -0
  85. package/es/template/common/faq-page/index.js.map +1 -0
  86. package/es/template/common/faq-page/style.css +104 -0
  87. package/es/template/common/faq-page/types.d.ts +86 -0
  88. package/es/template/common/faq-page/types.d.ts.map +1 -0
  89. package/es/template/common/faq-page/types.js +13 -0
  90. package/es/template/common/faq-page/types.js.map +1 -0
  91. package/es/template/common/privacy-policy-page/index.d.ts +80 -0
  92. package/es/template/common/privacy-policy-page/index.d.ts.map +1 -0
  93. package/es/template/common/privacy-policy-page/index.js +50 -0
  94. package/es/template/common/privacy-policy-page/index.js.map +1 -0
  95. package/es/template/common/privacy-policy-page/style.css +123 -0
  96. package/es/template/common/privacy-policy-page/types.d.ts +86 -0
  97. package/es/template/common/privacy-policy-page/types.d.ts.map +1 -0
  98. package/es/template/common/privacy-policy-page/types.js +13 -0
  99. package/es/template/common/privacy-policy-page/types.js.map +1 -0
  100. package/es/template/mobile-login/welcome/index.native.d.ts +18 -0
  101. package/es/template/mobile-login/welcome/index.native.d.ts.map +1 -0
  102. package/es/template/mobile-login/welcome/index.native.js +195 -0
  103. package/es/template/mobile-login/welcome/index.native.js.map +1 -0
  104. package/es/util/button-icons.d.ts +1 -0
  105. package/es/util/button-icons.d.ts.map +1 -1
  106. package/es/util/button-icons.js +3 -2
  107. package/es/util/button-icons.js.map +1 -1
  108. package/es/variables/breakpoints.css +1 -1
  109. package/lib/molecule/discipline-header/style.css +2 -1
  110. package/lib/molecule/expandable-item/index.d.ts +19 -0
  111. package/lib/molecule/expandable-item/index.d.ts.map +1 -0
  112. package/lib/molecule/expandable-item/index.js +58 -0
  113. package/lib/molecule/expandable-item/index.js.map +1 -0
  114. package/lib/molecule/expandable-item/style.css +135 -0
  115. package/lib/molecule/expandable-item/types.d.ts +20 -0
  116. package/lib/molecule/expandable-item/types.d.ts.map +1 -0
  117. package/lib/molecule/expandable-item/types.js +20 -0
  118. package/lib/molecule/expandable-item/types.js.map +1 -0
  119. package/lib/molecule/expandable-list/index.d.ts +18 -0
  120. package/lib/molecule/expandable-list/index.d.ts.map +1 -0
  121. package/lib/molecule/expandable-list/index.js +33 -0
  122. package/lib/molecule/expandable-list/index.js.map +1 -0
  123. package/lib/molecule/expandable-list/style.css +20 -0
  124. package/lib/molecule/expandable-list/types.d.ts +17 -0
  125. package/lib/molecule/expandable-list/types.d.ts.map +1 -0
  126. package/lib/molecule/expandable-list/types.js +16 -0
  127. package/lib/molecule/expandable-list/types.js.map +1 -0
  128. package/lib/molecule/hero/index.d.ts +30 -26
  129. package/lib/molecule/hero/index.d.ts.map +1 -1
  130. package/lib/molecule/hero/index.js +15 -14
  131. package/lib/molecule/hero/index.js.map +1 -1
  132. package/lib/molecule/hero/style.css +42 -0
  133. package/lib/molecule/hero/types.d.ts +22 -0
  134. package/lib/molecule/hero/types.d.ts.map +1 -0
  135. package/lib/molecule/hero/types.js +25 -0
  136. package/lib/molecule/hero/types.js.map +1 -0
  137. package/lib/molecule/menu-links/index.d.ts +22 -0
  138. package/lib/molecule/menu-links/index.d.ts.map +1 -0
  139. package/lib/molecule/menu-links/index.js +88 -0
  140. package/lib/molecule/menu-links/index.js.map +1 -0
  141. package/lib/molecule/menu-links/style.css +161 -0
  142. package/lib/molecule/menu-links/types.d.ts +35 -0
  143. package/lib/molecule/menu-links/types.d.ts.map +1 -0
  144. package/lib/molecule/menu-links/types.js +26 -0
  145. package/lib/molecule/menu-links/types.js.map +1 -0
  146. package/lib/molecule/privacy-policy-contact/index.d.ts +14 -0
  147. package/lib/molecule/privacy-policy-contact/index.d.ts.map +1 -0
  148. package/lib/molecule/privacy-policy-contact/index.js +41 -0
  149. package/lib/molecule/privacy-policy-contact/index.js.map +1 -0
  150. package/lib/molecule/privacy-policy-contact/style.css +38 -0
  151. package/lib/molecule/privacy-policy-contact/types.d.ts +10 -0
  152. package/lib/molecule/privacy-policy-contact/types.d.ts.map +1 -0
  153. package/lib/molecule/privacy-policy-contact/types.js +15 -0
  154. package/lib/molecule/privacy-policy-contact/types.js.map +1 -0
  155. package/lib/molecule/privacy-policy-download/index.d.ts +38 -0
  156. package/lib/molecule/privacy-policy-download/index.d.ts.map +1 -0
  157. package/lib/molecule/privacy-policy-download/index.js +38 -0
  158. package/lib/molecule/privacy-policy-download/index.js.map +1 -0
  159. package/lib/molecule/privacy-policy-download/style.css +65 -0
  160. package/lib/molecule/privacy-policy-download/types.d.ts +50 -0
  161. package/lib/molecule/privacy-policy-download/types.d.ts.map +1 -0
  162. package/lib/molecule/privacy-policy-download/types.js +18 -0
  163. package/lib/molecule/privacy-policy-download/types.js.map +1 -0
  164. package/lib/molecule/quick-access-card/index.d.ts +1 -0
  165. package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
  166. package/lib/molecule/quick-access-card/index.js +76 -20
  167. package/lib/molecule/quick-access-card/index.js.map +1 -1
  168. package/lib/molecule/quick-access-card/style.css +28 -17
  169. package/lib/molecule/quick-access-cards-group/index.d.ts +1 -0
  170. package/lib/organism/brand-dashboard/index.d.ts +1 -0
  171. package/lib/template/back-office/brand-update/index.d.ts +1 -0
  172. package/lib/template/common/faq-article-page/index.d.ts +27 -0
  173. package/lib/template/common/faq-article-page/index.d.ts.map +1 -0
  174. package/lib/template/common/faq-article-page/index.js +63 -0
  175. package/lib/template/common/faq-article-page/index.js.map +1 -0
  176. package/lib/template/common/faq-article-page/style.css +110 -0
  177. package/lib/template/common/faq-article-page/types.d.ts +40 -0
  178. package/lib/template/common/faq-article-page/types.d.ts.map +1 -0
  179. package/lib/template/common/faq-article-page/types.js +30 -0
  180. package/lib/template/common/faq-article-page/types.js.map +1 -0
  181. package/lib/template/common/faq-cards-page/index.d.ts +34 -0
  182. package/lib/template/common/faq-cards-page/index.d.ts.map +1 -0
  183. package/lib/template/common/faq-cards-page/index.js +58 -0
  184. package/lib/template/common/faq-cards-page/index.js.map +1 -0
  185. package/lib/template/common/faq-cards-page/style.css +95 -0
  186. package/lib/template/common/faq-cards-page/types.d.ts +44 -0
  187. package/lib/template/common/faq-cards-page/types.d.ts.map +1 -0
  188. package/lib/template/common/faq-cards-page/types.js +25 -0
  189. package/lib/template/common/faq-cards-page/types.js.map +1 -0
  190. package/lib/template/common/faq-page/index.d.ts +80 -0
  191. package/lib/template/common/faq-page/index.d.ts.map +1 -0
  192. package/lib/template/common/faq-page/index.js +58 -0
  193. package/lib/template/common/faq-page/index.js.map +1 -0
  194. package/lib/template/common/faq-page/style.css +104 -0
  195. package/lib/template/common/faq-page/types.d.ts +86 -0
  196. package/lib/template/common/faq-page/types.d.ts.map +1 -0
  197. package/lib/template/common/faq-page/types.js +24 -0
  198. package/lib/template/common/faq-page/types.js.map +1 -0
  199. package/lib/template/common/privacy-policy-page/index.d.ts +80 -0
  200. package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -0
  201. package/lib/template/common/privacy-policy-page/index.js +65 -0
  202. package/lib/template/common/privacy-policy-page/index.js.map +1 -0
  203. package/lib/template/common/privacy-policy-page/style.css +123 -0
  204. package/lib/template/common/privacy-policy-page/types.d.ts +86 -0
  205. package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -0
  206. package/lib/template/common/privacy-policy-page/types.js +24 -0
  207. package/lib/template/common/privacy-policy-page/types.js.map +1 -0
  208. package/lib/template/mobile-login/welcome/index.native.d.ts +18 -0
  209. package/lib/template/mobile-login/welcome/index.native.d.ts.map +1 -0
  210. package/lib/template/mobile-login/welcome/index.native.js +212 -0
  211. package/lib/template/mobile-login/welcome/index.native.js.map +1 -0
  212. package/lib/util/button-icons.d.ts +1 -0
  213. package/lib/util/button-icons.d.ts.map +1 -1
  214. package/lib/util/button-icons.js +2 -1
  215. package/lib/util/button-icons.js.map +1 -1
  216. package/lib/variables/breakpoints.css +1 -1
  217. package/package.json +2 -2
@@ -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,25 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.propTypes = void 0;
5
+
6
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
+
8
+ var _cardContent = _interopRequireDefault(require("../card-content"));
9
+
10
+ var _button = _interopRequireDefault(require("../../atom/button"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ const propTypes = {
15
+ image: _propTypes.default.string,
16
+ mode: _propTypes.default.string,
17
+ description: _propTypes.default.string,
18
+ title: _cardContent.default.propTypes.title,
19
+ author: _cardContent.default.propTypes.author,
20
+ progress: _cardContent.default.propTypes.progress,
21
+ onClick: _button.default.propTypes.onClick,
22
+ submitValue: _button.default.propTypes.submitValue
23
+ };
24
+ exports.propTypes = propTypes;
25
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["propTypes","image","PropTypes","string","mode","description","title","CardContentInfo","author","progress","onClick","Button","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;;AACA;;AACA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,IAAI,EAAEF,kBAAA,CAAUC,MAFO;EAGvBE,WAAW,EAAEH,kBAAA,CAAUC,MAHA;EAIvBG,KAAK,EAAEC,oBAAA,CAAgBP,SAAhB,CAA0BM,KAJV;EAKvBE,MAAM,EAAED,oBAAA,CAAgBP,SAAhB,CAA0BQ,MALX;EAMvBC,QAAQ,EAAEF,oBAAA,CAAgBP,SAAhB,CAA0BS,QANb;EAOvBC,OAAO,EAAEC,eAAA,CAAOX,SAAP,CAAiBU,OAPH;EAQvBE,WAAW,EAAED,eAAA,CAAOX,SAAP,CAAiBY;AARP,CAAlB"}
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ declare const MenuLinks: {
4
+ ({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode }: 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
+ showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
10
+ showMoreText: import("prop-types").Requireable<string>;
11
+ showLessText: import("prop-types").Requireable<string>;
12
+ isSelected: import("prop-types").Requireable<boolean>;
13
+ }>>;
14
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
15
+ text: import("prop-types").Requireable<string>;
16
+ isSelected: import("prop-types").Requireable<boolean>;
17
+ handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
18
+ }> | null | undefined)[]>;
19
+ };
20
+ };
21
+ export default MenuLinks;
22
+ //# 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;4EAAyE,KAAK;;;;;;;;;;;;;;;;CA+D5F,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _slice2 = _interopRequireDefault(require("lodash/fp/slice"));
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _novaIcons = require("@coorpacademy/nova-icons");
13
+
14
+ var _types = require("./types");
15
+
16
+ var _style = _interopRequireDefault(require("./style.css"));
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+
24
+ const ICONS = {
25
+ mobilePhone: _novaIcons.NovaLinePhoneMobilePhone,
26
+ chatBubbleCircleQuestionMark: _novaIcons.NovaLineMessagesChatChatBubbleCircleQuestionMark,
27
+ networkAlert: _novaIcons.NovaLineNetworkNetworkAlert,
28
+ binoculaire: _novaIcons.NovaLineObjectsBinoculars1,
29
+ contentBook: _novaIcons.NovaLineContentEditionContentBook
30
+ };
31
+
32
+ const MenuLinks = ({
33
+ items,
34
+ title,
35
+ showMoreItem,
36
+ numberOfDisplayedItems,
37
+ isDesktopMode
38
+ }) => {
39
+ const [isOpen, setIsOpen] = (0, _react.useState)(false);
40
+ const itemsToDisplay = isDesktopMode || isOpen ? items : (0, _slice2.default)(0, numberOfDisplayedItems, items);
41
+
42
+ const handleOnclickShowMore = () => setIsOpen(!isOpen);
43
+
44
+ return /*#__PURE__*/_react.default.createElement("div", {
45
+ className: _style.default.container
46
+ }, /*#__PURE__*/_react.default.createElement("h2", {
47
+ className: _style.default.title
48
+ }, title), /*#__PURE__*/_react.default.createElement("ul", {
49
+ className: _style.default.list,
50
+ "data-name": "menu-links"
51
+ }, itemsToDisplay.map((item, index) => {
52
+ const {
53
+ handleOnclick
54
+ } = item;
55
+ const Icon = item.icon ? ICONS[item.icon] : null;
56
+ return /*#__PURE__*/_react.default.createElement("li", {
57
+ onClick: handleOnclick,
58
+ key: `menu-link-item-${index}`,
59
+ className: _style.default.item
60
+ }, /*#__PURE__*/_react.default.createElement("div", {
61
+ className: (0, _classnames.default)(_style.default.border, item.isSelected ? _style.default.selectedBorder : null)
62
+ }), /*#__PURE__*/_react.default.createElement("div", {
63
+ className: _style.default.flexContainer
64
+ }, Icon ? /*#__PURE__*/_react.default.createElement(Icon, {
65
+ className: (0, _classnames.default)(_style.default.icon, item.isSelected ? _style.default.selectedIcon : null)
66
+ }) : null, /*#__PURE__*/_react.default.createElement("div", {
67
+ className: _style.default.flexContainer
68
+ }, /*#__PURE__*/_react.default.createElement("span", {
69
+ className: item.isSelected ? _style.default.selectedItem : undefined
70
+ }, item.text), Icon ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationArrowDown, {
71
+ className: (0, _classnames.default)(_style.default.arrowIcon, item.isSelected ? _style.default.selectedIcon : null)
72
+ }) : null)));
73
+ }), !isDesktopMode ? /*#__PURE__*/_react.default.createElement("li", {
74
+ // eslint-disable-next-line react/jsx-no-bind
75
+ onClick: handleOnclickShowMore,
76
+ key: `menu-link-item-show-more`,
77
+ className: (0, _classnames.default)(_style.default.showMoreItem, _style.default.item)
78
+ }, /*#__PURE__*/_react.default.createElement("div", {
79
+ className: _style.default.border
80
+ }), /*#__PURE__*/_react.default.createElement("span", null, isOpen ? showMoreItem.showLessText : showMoreItem.showMoreText, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationArrowDown, {
81
+ className: isOpen ? _style.default.showLessIcon : _style.default.showMoreIcon
82
+ }))) : null));
83
+ };
84
+
85
+ MenuLinks.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
86
+ var _default = MenuLinks;
87
+ exports.default = _default;
88
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["ICONS","mobilePhone","MobilePhone","chatBubbleCircleQuestionMark","ChatBubbleCircleQuestionMark","networkAlert","NetworkAlert","binoculaire","Binoculaire","contentBook","ContentBook","MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","isOpen","setIsOpen","useState","itemsToDisplay","handleOnclickShowMore","styles","container","list","map","item","index","handleOnclick","Icon","icon","classnames","border","isSelected","selectedBorder","flexContainer","selectedIcon","selectedItem","undefined","text","arrowIcon","showLessText","showMoreText","showLessIcon","showMoreIcon","propTypes"],"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,26 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.propTypes = void 0;
5
+
6
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
+
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+
10
+ const propTypes = {
11
+ title: _propTypes.default.string,
12
+ numberOfDisplayedItems: _propTypes.default.number,
13
+ isDesktopMode: _propTypes.default.bool,
14
+ showMoreItem: _propTypes.default.shape({
15
+ showMoreText: _propTypes.default.string,
16
+ showLessText: _propTypes.default.string,
17
+ isSelected: _propTypes.default.bool
18
+ }),
19
+ items: _propTypes.default.arrayOf(_propTypes.default.shape({
20
+ text: _propTypes.default.string,
21
+ isSelected: _propTypes.default.bool,
22
+ handleOnclick: _propTypes.default.func
23
+ }))
24
+ };
25
+ exports.propTypes = propTypes;
26
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","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;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,sBAAsB,EAAEF,kBAAA,CAAUG,MAFX;EAGvBC,aAAa,EAAEJ,kBAAA,CAAUK,IAHF;EAIvBC,YAAY,EAAEN,kBAAA,CAAUO,KAAV,CAAgB;IAC5BC,YAAY,EAAER,kBAAA,CAAUC,MADI;IAE5BQ,YAAY,EAAET,kBAAA,CAAUC,MAFI;IAG5BS,UAAU,EAAEV,kBAAA,CAAUK;EAHM,CAAhB,CAJS;EASvBM,KAAK,EAAEX,kBAAA,CAAUY,OAAV,CACLZ,kBAAA,CAAUO,KAAV,CAAgB;IACdM,IAAI,EAAEb,kBAAA,CAAUC,MADF;IAEdS,UAAU,EAAEV,kBAAA,CAAUK,IAFR;IAGdS,aAAa,EAAEd,kBAAA,CAAUe;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,41 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = exports.ICONS = void 0;
5
+
6
+ var _react = _interopRequireDefault(require("react"));
7
+
8
+ var _novaIcons = require("@coorpacademy/nova-icons");
9
+
10
+ var _types = require("./types");
11
+
12
+ var _style = _interopRequireDefault(require("./style.css"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ const ICONS = {
17
+ arrow: _novaIcons.NovaCompositionNavigationArrowDown
18
+ };
19
+ exports.ICONS = ICONS;
20
+
21
+ const PrivacyPolicyContact = ({
22
+ title,
23
+ content
24
+ }) => {
25
+ return /*#__PURE__*/_react.default.createElement("div", {
26
+ className: _style.default.container
27
+ }, /*#__PURE__*/_react.default.createElement("h3", {
28
+ className: _style.default.title // eslint-disable-next-line react/no-danger
29
+ ,
30
+ dangerouslySetInnerHTML: {
31
+ __html: title
32
+ }
33
+ }), /*#__PURE__*/_react.default.createElement("p", {
34
+ className: _style.default.content
35
+ }, content));
36
+ };
37
+
38
+ PrivacyPolicyContact.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
39
+ var _default = PrivacyPolicyContact;
40
+ exports.default = _default;
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["ICONS","arrow","ArrowIcon","PrivacyPolicyContact","title","content","styles","container","__html","propTypes"],"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;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,KAAK,GAAG;EACnBC,KAAK,EAAEC;AADY,CAAd;;;AAIP,MAAMC,oBAAoB,GAAG,CAAC;EAACC,KAAD;EAAQC;AAAR,CAAD,KAA6B;EACxD,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAOC;EAAvB,gBACE;IACE,SAAS,EAAED,cAAA,CAAOF,KADpB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACI,MAAM,EAAEJ;IAAT;EAH3B,EADF,eAME;IAAG,SAAS,EAAEE,cAAA,CAAOD;EAArB,GAA+BA,OAA/B,CANF,CADF;AAUD,CAXD;;AAaAF,oBAAoB,CAACM,SAArB,2CAAiCA,gBAAjC;eAEeN,oB"}
@@ -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,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.propTypes = void 0;
5
+
6
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
+
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+
10
+ const propTypes = {
11
+ title: _propTypes.default.string,
12
+ content: _propTypes.default.string
13
+ };
14
+ exports.propTypes = propTypes;
15
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","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;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,OAAO,EAAEF,kBAAA,CAAUC;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"}