@coorpacademy/components 10.0.40 → 10.0.44-alpha.1

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 (233) hide show
  1. package/es/atom/input-checkbox/index.js +16 -5
  2. package/es/atom/input-checkbox/index.js.map +1 -1
  3. package/es/atom/input-checkbox/style.css +54 -25
  4. package/es/{template/back-office/brand-update/test/fixtures/home.js → atom/input-checkbox/test/fixtures/checked-disabled.js} +3 -5
  5. package/es/atom/input-checkbox/test/fixtures/checked-disabled.js.map +1 -0
  6. package/es/atom/input-checkbox/test/fixtures.js +2 -0
  7. package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
  8. package/es/atom/title/index.js +28 -4
  9. package/es/atom/title/index.js.map +1 -1
  10. package/es/atom/title/style.css +24 -2
  11. package/es/atom/title/test/fixtures/form-group-title-without-subtitle.js +7 -0
  12. package/es/atom/title/test/fixtures/form-group-title-without-subtitle.js.map +1 -0
  13. package/es/atom/title/test/fixtures/form-group-title.js +8 -0
  14. package/es/atom/title/test/fixtures/form-group-title.js.map +1 -0
  15. package/es/atom/title/test/fixtures/{fixture.js → page-title.js} +2 -1
  16. package/es/atom/title/test/fixtures/page-title.js.map +1 -0
  17. package/es/atom/title/test/fixtures.js +6 -2
  18. package/es/atom/title/test/fixtures.js.map +1 -1
  19. package/es/molecule/add-to-my-list/test/fixtures.js +15 -0
  20. package/es/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  21. package/es/molecule/brand-form-group/index.js +17 -3
  22. package/es/molecule/brand-form-group/index.js.map +1 -1
  23. package/es/molecule/brand-form-group/style.css +38 -22
  24. package/es/molecule/brand-tabs/test/fixtures.js +2 -0
  25. package/es/molecule/brand-tabs/test/fixtures.js.map +1 -1
  26. package/es/molecule/coorp-manager-roles/index.js +31 -0
  27. package/es/molecule/coorp-manager-roles/index.js.map +1 -0
  28. package/es/molecule/coorp-manager-roles/style.css +38 -0
  29. package/es/molecule/coorp-manager-roles/test/default.js +23 -0
  30. package/es/molecule/coorp-manager-roles/test/default.js.map +1 -0
  31. package/es/molecule/coorp-manager-roles/test/fixtures.js +11 -0
  32. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  33. package/es/molecule/discipline-scope/test/fixtures.js +6 -0
  34. package/es/molecule/discipline-scope/test/fixtures.js.map +1 -1
  35. package/es/molecule/popin/index.js +1 -1
  36. package/es/molecule/popin/index.js.map +1 -1
  37. package/es/molecule/popin/style.css +5 -0
  38. package/es/molecule/popin/test/fixtures.js +21 -0
  39. package/es/molecule/popin/test/fixtures.js.map +1 -0
  40. package/es/molecule/quick-access-card/index.js +9 -7
  41. package/es/molecule/quick-access-card/index.js.map +1 -1
  42. package/es/molecule/quick-access-card/style.css +20 -7
  43. package/es/molecule/quick-access-card/test/fixtures/analytics.js +1 -1
  44. package/es/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -1
  45. package/es/molecule/quick-access-card/test/fixtures/default.js +1 -1
  46. package/es/molecule/quick-access-card/test/fixtures/default.js.map +1 -1
  47. package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js +1 -1
  48. package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -1
  49. package/es/molecule/quick-access-card/test/fixtures/massive-battle.js +9 -0
  50. package/es/molecule/quick-access-card/test/fixtures/massive-battle.js.map +1 -0
  51. package/es/molecule/quick-access-card/test/fixtures/upload-users.js +1 -1
  52. package/es/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -1
  53. package/es/molecule/quick-access-card/test/fixtures.js +21 -0
  54. package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
  55. package/es/molecule/quick-access-cards-group/index.js +35 -0
  56. package/es/molecule/quick-access-cards-group/index.js.map +1 -0
  57. package/es/molecule/quick-access-cards-group/style.css +38 -0
  58. package/es/molecule/quick-access-cards-group/test/fixtures/default.js +12 -0
  59. package/es/molecule/quick-access-cards-group/test/fixtures/default.js.map +1 -0
  60. package/es/molecule/quick-access-cards-group/test/fixtures/loading.js +7 -0
  61. package/es/molecule/quick-access-cards-group/test/fixtures/loading.js.map +1 -0
  62. package/es/molecule/quick-access-cards-group/test/fixtures/one-card.js +8 -0
  63. package/es/molecule/quick-access-cards-group/test/fixtures/one-card.js.map +1 -0
  64. package/es/molecule/quick-access-cards-group/test/fixtures/three-cards.js +10 -0
  65. package/es/molecule/quick-access-cards-group/test/fixtures/three-cards.js.map +1 -0
  66. package/es/molecule/quick-access-cards-group/test/fixtures/two-cards.js +9 -0
  67. package/es/molecule/quick-access-cards-group/test/fixtures/two-cards.js.map +1 -0
  68. package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
  69. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  70. package/es/molecule/scope-content/test/fixtures.js +6 -0
  71. package/es/molecule/scope-content/test/fixtures.js.map +1 -1
  72. package/es/organism/accordion/coorp-manager/part/test/fixtures/defaut.js +10 -1
  73. package/es/organism/accordion/coorp-manager/part/test/fixtures/defaut.js.map +1 -1
  74. package/es/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js +11 -0
  75. package/es/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js.map +1 -0
  76. package/es/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js +11 -0
  77. package/es/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js.map +1 -0
  78. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +17 -0
  79. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  80. package/es/organism/accordion/coorp-manager/test/fixtures.js +13 -0
  81. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  82. package/es/organism/brand-analytics/test/fixtures.js +23 -0
  83. package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
  84. package/es/organism/brand-dashboard/index.js +25 -7
  85. package/es/organism/brand-dashboard/index.js.map +1 -1
  86. package/es/organism/brand-dashboard/style.css +17 -20
  87. package/es/organism/brand-dashboard/test/fixtures/default.js +9 -1
  88. package/es/organism/brand-dashboard/test/fixtures/default.js.map +1 -1
  89. package/es/organism/brand-dashboard/test/fixtures/three-cards.js +14 -0
  90. package/es/organism/brand-dashboard/test/fixtures/three-cards.js.map +1 -0
  91. package/es/organism/brand-dashboard/test/fixtures.js +15 -0
  92. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -0
  93. package/es/organism/brand-form/style.css +1 -0
  94. package/es/organism/brand-form/test/fixtures/manageusers-edit.js +64 -22
  95. package/es/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
  96. package/es/organism/mooc-header/test/fixtures.js +6 -0
  97. package/es/organism/mooc-header/test/fixtures.js.map +1 -1
  98. package/es/template/app-player/player/test/fixtures.js +2 -0
  99. package/es/template/app-player/player/test/fixtures.js.map +1 -1
  100. package/es/template/back-office/brand-update/index.js +1 -1
  101. package/es/template/back-office/brand-update/index.js.map +1 -1
  102. package/es/template/back-office/brand-update/test/fixtures/quick-access.js +17 -0
  103. package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -0
  104. package/es/template/back-office/brand-update/test/fixtures.js +4 -0
  105. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  106. package/es/template/common/discipline/test/fixtures.js +10 -0
  107. package/es/template/common/discipline/test/fixtures.js.map +1 -1
  108. package/es/template/teams-dashboard/test/fixtures.js +2 -0
  109. package/es/template/teams-dashboard/test/fixtures.js.map +1 -1
  110. package/es/variables/colors.css +6 -1
  111. package/lib/atom/input-checkbox/index.js +18 -5
  112. package/lib/atom/input-checkbox/index.js.map +1 -1
  113. package/lib/atom/input-checkbox/style.css +54 -25
  114. package/lib/{template/back-office/brand-update/test/fixtures/home.js → atom/input-checkbox/test/fixtures/checked-disabled.js} +3 -5
  115. package/lib/atom/input-checkbox/test/fixtures/checked-disabled.js.map +1 -0
  116. package/lib/atom/input-checkbox/test/fixtures.js +3 -0
  117. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
  118. package/lib/atom/title/index.js +28 -4
  119. package/lib/atom/title/index.js.map +1 -1
  120. package/lib/atom/title/style.css +24 -2
  121. package/lib/atom/title/test/fixtures/form-group-title-without-subtitle.js +12 -0
  122. package/lib/atom/title/test/fixtures/form-group-title-without-subtitle.js.map +1 -0
  123. package/lib/atom/title/test/fixtures/form-group-title.js +13 -0
  124. package/lib/atom/title/test/fixtures/form-group-title.js.map +1 -0
  125. package/lib/atom/title/test/fixtures/{fixture.js → page-title.js} +2 -1
  126. package/lib/atom/title/test/fixtures/page-title.js.map +1 -0
  127. package/lib/atom/title/test/fixtures.js +8 -2
  128. package/lib/atom/title/test/fixtures.js.map +1 -1
  129. package/lib/molecule/add-to-my-list/test/fixtures.js +25 -0
  130. package/lib/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  131. package/lib/molecule/brand-form-group/index.js +20 -3
  132. package/lib/molecule/brand-form-group/index.js.map +1 -1
  133. package/lib/molecule/brand-form-group/style.css +38 -22
  134. package/lib/molecule/brand-tabs/test/fixtures.js +3 -0
  135. package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -1
  136. package/lib/molecule/coorp-manager-roles/index.js +42 -0
  137. package/lib/molecule/coorp-manager-roles/index.js.map +1 -0
  138. package/lib/molecule/coorp-manager-roles/style.css +38 -0
  139. package/lib/molecule/coorp-manager-roles/test/default.js +28 -0
  140. package/lib/molecule/coorp-manager-roles/test/default.js.map +1 -0
  141. package/lib/molecule/coorp-manager-roles/test/fixtures.js +19 -0
  142. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  143. package/lib/molecule/discipline-scope/test/fixtures.js +9 -0
  144. package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -1
  145. package/lib/molecule/popin/index.js +1 -1
  146. package/lib/molecule/popin/index.js.map +1 -1
  147. package/lib/molecule/popin/style.css +5 -0
  148. package/lib/molecule/popin/test/fixtures.js +34 -0
  149. package/lib/molecule/popin/test/fixtures.js.map +1 -0
  150. package/lib/molecule/quick-access-card/index.js +9 -11
  151. package/lib/molecule/quick-access-card/index.js.map +1 -1
  152. package/lib/molecule/quick-access-card/style.css +20 -7
  153. package/lib/molecule/quick-access-card/test/fixtures/analytics.js +1 -1
  154. package/lib/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -1
  155. package/lib/molecule/quick-access-card/test/fixtures/default.js +1 -1
  156. package/lib/molecule/quick-access-card/test/fixtures/default.js.map +1 -1
  157. package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js +1 -1
  158. package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -1
  159. package/lib/molecule/quick-access-card/test/fixtures/massive-battle.js +14 -0
  160. package/lib/molecule/quick-access-card/test/fixtures/massive-battle.js.map +1 -0
  161. package/lib/molecule/quick-access-card/test/fixtures/upload-users.js +1 -1
  162. package/lib/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -1
  163. package/lib/molecule/quick-access-card/test/fixtures.js +34 -0
  164. package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
  165. package/lib/molecule/quick-access-cards-group/index.js +47 -0
  166. package/lib/molecule/quick-access-cards-group/index.js.map +1 -0
  167. package/lib/molecule/quick-access-cards-group/style.css +38 -0
  168. package/lib/molecule/quick-access-cards-group/test/fixtures/default.js +25 -0
  169. package/lib/molecule/quick-access-cards-group/test/fixtures/default.js.map +1 -0
  170. package/lib/molecule/quick-access-cards-group/test/fixtures/loading.js +12 -0
  171. package/lib/molecule/quick-access-cards-group/test/fixtures/loading.js.map +1 -0
  172. package/lib/molecule/quick-access-cards-group/test/fixtures/one-card.js +17 -0
  173. package/lib/molecule/quick-access-cards-group/test/fixtures/one-card.js.map +1 -0
  174. package/lib/molecule/quick-access-cards-group/test/fixtures/three-cards.js +21 -0
  175. package/lib/molecule/quick-access-cards-group/test/fixtures/three-cards.js.map +1 -0
  176. package/lib/molecule/quick-access-cards-group/test/fixtures/two-cards.js +19 -0
  177. package/lib/molecule/quick-access-cards-group/test/fixtures/two-cards.js.map +1 -0
  178. package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
  179. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  180. package/lib/molecule/scope-content/test/fixtures.js +9 -0
  181. package/lib/molecule/scope-content/test/fixtures.js.map +1 -1
  182. package/lib/organism/accordion/coorp-manager/part/test/fixtures/defaut.js +10 -1
  183. package/lib/organism/accordion/coorp-manager/part/test/fixtures/defaut.js.map +1 -1
  184. package/lib/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js +16 -0
  185. package/lib/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js.map +1 -0
  186. package/lib/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js +16 -0
  187. package/lib/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js.map +1 -0
  188. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +28 -0
  189. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  190. package/lib/organism/accordion/coorp-manager/test/fixtures.js +22 -0
  191. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  192. package/lib/organism/brand-analytics/test/fixtures.js +37 -0
  193. package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
  194. package/lib/organism/brand-dashboard/index.js +27 -7
  195. package/lib/organism/brand-dashboard/index.js.map +1 -1
  196. package/lib/organism/brand-dashboard/style.css +17 -20
  197. package/lib/organism/brand-dashboard/test/fixtures/default.js +13 -1
  198. package/lib/organism/brand-dashboard/test/fixtures/default.js.map +1 -1
  199. package/lib/organism/brand-dashboard/test/fixtures/three-cards.js +23 -0
  200. package/lib/organism/brand-dashboard/test/fixtures/three-cards.js.map +1 -0
  201. package/lib/organism/brand-dashboard/test/fixtures.js +25 -0
  202. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -0
  203. package/lib/organism/brand-form/style.css +1 -0
  204. package/lib/organism/brand-form/test/fixtures/manageusers-edit.js +64 -22
  205. package/lib/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
  206. package/lib/organism/mooc-header/test/fixtures.js +9 -0
  207. package/lib/organism/mooc-header/test/fixtures.js.map +1 -1
  208. package/lib/template/app-player/player/test/fixtures.js +3 -0
  209. package/lib/template/app-player/player/test/fixtures.js.map +1 -1
  210. package/lib/template/back-office/brand-update/index.js +1 -1
  211. package/lib/template/back-office/brand-update/index.js.map +1 -1
  212. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +27 -0
  213. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -0
  214. package/lib/template/back-office/brand-update/test/fixtures.js +6 -0
  215. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  216. package/lib/template/common/discipline/test/fixtures.js +15 -0
  217. package/lib/template/common/discipline/test/fixtures.js.map +1 -1
  218. package/lib/template/teams-dashboard/test/fixtures.js +3 -0
  219. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -1
  220. package/lib/variables/colors.css +6 -1
  221. package/package.json +3 -3
  222. package/es/atom/title/test/fixtures/fixture.js.map +0 -1
  223. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  224. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  225. package/es/molecule/quick-access-card/test/fixtures/manage-email.js +0 -9
  226. package/es/molecule/quick-access-card/test/fixtures/manage-email.js.map +0 -1
  227. package/es/template/back-office/brand-update/test/fixtures/home.js.map +0 -1
  228. package/lib/atom/title/test/fixtures/fixture.js.map +0 -1
  229. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  230. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  231. package/lib/molecule/quick-access-card/test/fixtures/manage-email.js +0 -14
  232. package/lib/molecule/quick-access-card/test/fixtures/manage-email.js.map +0 -1
  233. package/lib/template/back-office/brand-update/test/fixtures/home.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ export default {
2
+ props: {
3
+ title: 'Massive battle',
4
+ description: 'To engage your users send a "Massive Battle" to several of them',
5
+ feature: 'massive_battle',
6
+ href: 'https://setup.coorpacademy.com'
7
+ }
8
+ };
9
+ //# sourceMappingURL=massive-battle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/massive-battle.js"],"names":["props","title","description","feature","href"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,gBADF;AAELC,IAAAA,WAAW,EAAE,iEAFR;AAGLC,IAAAA,OAAO,EAAE,gBAHJ;AAILC,IAAAA,IAAI,EAAE;AAJD;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Massive battle',\n description: 'To engage your users send a \"Massive Battle\" to several of them',\n feature: 'massive_battle',\n href: 'https://setup.coorpacademy.com'\n }\n};\n"],"file":"massive-battle.js"}
@@ -3,7 +3,7 @@ export default {
3
3
  title: 'Upload Users',
4
4
  description: 'Upload new users on your learning platform',
5
5
  feature: 'upload_users',
6
- onClick: () => console.log('click everywhere')
6
+ href: 'https://setup.coorpacademy.com'
7
7
  }
8
8
  };
9
9
  //# sourceMappingURL=upload-users.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/upload-users.js"],"names":["props","title","description","feature","onClick","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,cADF;AAELC,IAAAA,WAAW,EAAE,4CAFR;AAGLC,IAAAA,OAAO,EAAE,cAHJ;AAILC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AAJV;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Upload Users',\n description: 'Upload new users on your learning platform',\n feature: 'upload_users',\n onClick: () => console.log('click everywhere')\n }\n};\n"],"file":"upload-users.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/upload-users.js"],"names":["props","title","description","feature","href"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,cADF;AAELC,IAAAA,WAAW,EAAE,4CAFR;AAGLC,IAAAA,OAAO,EAAE,cAHJ;AAILC,IAAAA,IAAI,EAAE;AAJD;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Upload Users',\n description: 'Upload new users on your learning platform',\n feature: 'upload_users',\n href: 'https://setup.coorpacademy.com'\n }\n};\n"],"file":"upload-users.js"}
@@ -0,0 +1,21 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeQuickAccessCard from '..';
5
+ import fixtureAnalytics from './fixtures/analytics';
6
+ import fixtureDefault from './fixtures/default';
7
+ import fixtureLookAndFeel from './fixtures/look-and-feel';
8
+ import fixtureMassiveBattle from './fixtures/massive-battle';
9
+ import fixtureUploadUsers from './fixtures/upload-users';
10
+ test('Molecule › MoleculeQuickAccessCard > should have valid propTypes', t => {
11
+ t.pass();
12
+ forEach(MoleculeQuickAccessCard.propTypes, (value, key) => {
13
+ t.not(value, undefined, `PropType for "Molecule.MoleculeQuickAccessCard.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
14
+ });
15
+ });
16
+ test('Molecule › MoleculeQuickAccessCard › Analytics › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureAnalytics);
17
+ test('Molecule › MoleculeQuickAccessCard › Default › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureDefault);
18
+ test('Molecule › MoleculeQuickAccessCard › LookAndFeel › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureLookAndFeel);
19
+ test('Molecule › MoleculeQuickAccessCard › MassiveBattle › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureMassiveBattle);
20
+ test('Molecule › MoleculeQuickAccessCard › UploadUsers › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureUploadUsers);
21
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/quick-access-card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuickAccessCard","fixtureAnalytics","fixtureDefault","fixtureLookAndFeel","fixtureMassiveBattle","fixtureUploadUsers","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,uBAAP,MAAoC,IAApC;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,0BAA/B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAR,IAAI,CAAC,kEAAD,EAAqES,CAAC,IAAI;AAC5EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,uBAAuB,CAACQ,SAAzB,EAAoC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACzDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4DAA2DF,GAAI,mEAAxF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,uBAA9F,EAAuHC,gBAAvH,CAAJ;AACAJ,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,uBAA5F,EAAqHE,cAArH,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,uBAAhG,EAAyHG,kBAAzH,CAAJ;AACAN,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,uBAAlG,EAA2HI,oBAA3H,CAAJ;AACAP,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,uBAAhG,EAAyHK,kBAAzH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeQuickAccessCard from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLookAndFeel from './fixtures/look-and-feel';\nimport fixtureMassiveBattle from './fixtures/massive-battle';\nimport fixtureUploadUsers from './fixtures/upload-users';\n\ntest('Molecule › MoleculeQuickAccessCard > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeQuickAccessCard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeQuickAccessCard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeQuickAccessCard › Analytics › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureAnalytics);\ntest('Molecule › MoleculeQuickAccessCard › Default › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureDefault);\ntest('Molecule › MoleculeQuickAccessCard › LookAndFeel › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureLookAndFeel);\ntest('Molecule › MoleculeQuickAccessCard › MassiveBattle › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureMassiveBattle);\ntest('Molecule › MoleculeQuickAccessCard › UploadUsers › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureUploadUsers);\n"],"file":"fixtures.js"}
@@ -0,0 +1,35 @@
1
+ import _slice from "lodash/fp/slice";
2
+ import _map from "lodash/fp/map";
3
+ import React from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import QuickAccessCard from '../quick-access-card';
6
+ import Loader from '../../atom/loader';
7
+ import style from './style.css';
8
+
9
+ const QuickAccessCardGroup = props => {
10
+ const {
11
+ list = [],
12
+ loading = false
13
+ } = props;
14
+ const loader = loading ? /*#__PURE__*/React.createElement("div", {
15
+ className: style.loader
16
+ }, /*#__PURE__*/React.createElement(Loader, null)) : null;
17
+
18
+ const cards = _map(cardProps => {
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ className: style.card,
21
+ key: `card-${cardProps.feature}`
22
+ }, /*#__PURE__*/React.createElement(QuickAccessCard, cardProps));
23
+ }, _slice(0, 4, list));
24
+
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ className: style.group
27
+ }, cards, loader);
28
+ };
29
+
30
+ QuickAccessCardGroup.propTypes = process.env.NODE_ENV !== "production" ? {
31
+ list: PropTypes.arrayOf(PropTypes.shape(QuickAccessCard.propTypes)),
32
+ loading: PropTypes.bool
33
+ } : {};
34
+ export default QuickAccessCardGroup;
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/quick-access-cards-group/index.js"],"names":["React","PropTypes","QuickAccessCard","Loader","style","QuickAccessCardGroup","props","list","loading","loader","cards","cardProps","card","feature","group","propTypes","arrayOf","shape","bool"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,oBAAoB,GAAGC,KAAK,IAAI;AACpC,QAAM;AAACC,IAAAA,IAAI,GAAG,EAAR;AAAYC,IAAAA,OAAO,GAAG;AAAtB,MAA+BF,KAArC;AAEA,QAAMG,MAAM,GAAGD,OAAO,gBACpB;AAAK,IAAA,SAAS,EAAEJ,KAAK,CAACK;AAAtB,kBACE,oBAAC,MAAD,OADF,CADoB,GAIlB,IAJJ;;AAMA,QAAMC,KAAK,GAAG,KAAIC,SAAS,IAAI;AAC7B,wBACE;AAAK,MAAA,SAAS,EAAEP,KAAK,CAACQ,IAAtB;AAA4B,MAAA,GAAG,EAAG,QAAOD,SAAS,CAACE,OAAQ;AAA3D,oBACE,oBAAC,eAAD,EAAqBF,SAArB,CADF,CADF;AAKD,GANa,EAMX,OAAM,CAAN,EAAS,CAAT,EAAYJ,IAAZ,CANW,CAAd;;AAQA,sBACE;AAAK,IAAA,SAAS,EAAEH,KAAK,CAACU;AAAtB,KACGJ,KADH,EAEGD,MAFH,CADF;AAMD,CAvBD;;AAyBAJ,oBAAoB,CAACU,SAArB,2CAAiC;AAC/BR,EAAAA,IAAI,EAAEN,SAAS,CAACe,OAAV,CAAkBf,SAAS,CAACgB,KAAV,CAAgBf,eAAe,CAACa,SAAhC,CAAlB,CADyB;AAE/BP,EAAAA,OAAO,EAAEP,SAAS,CAACiB;AAFY,CAAjC;AAKA,eAAeb,oBAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, slice} from 'lodash/fp';\nimport QuickAccessCard from '../quick-access-card';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst QuickAccessCardGroup = props => {\n const {list = [], loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const cards = map(cardProps => {\n return (\n <div className={style.card} key={`card-${cardProps.feature}`}>\n <QuickAccessCard {...cardProps} />\n </div>\n );\n }, slice(0, 4, list));\n\n return (\n <div className={style.group}>\n {cards}\n {loader}\n </div>\n );\n};\n\nQuickAccessCardGroup.propTypes = {\n list: PropTypes.arrayOf(PropTypes.shape(QuickAccessCard.propTypes)),\n loading: PropTypes.bool\n};\n\nexport default QuickAccessCardGroup;\n"],"file":"index.js"}
@@ -0,0 +1,38 @@
1
+ @value breakpoints: "../../variables/breakpoints.css";
2
+ @value cm_tablet from breakpoints;
3
+ @value desktop from breakpoints;
4
+
5
+ .loader {
6
+ position: relative;
7
+ height: 100px;
8
+ width: 100%;
9
+ }
10
+
11
+ .group {
12
+ width: 100%;
13
+ display: flex;
14
+ overflow-y: inherit;
15
+ align-content: flex-start;
16
+ flex-wrap: wrap;
17
+ }
18
+
19
+ .card {
20
+ width: 24%; /* for ie */
21
+ width: calc(25% - 12px); /* 25% - 16px * 3 space / 4 cards */
22
+ margin: 0 16px 16px 0;
23
+ }
24
+
25
+ .card:nth-child(4) {
26
+ margin-right: 0px;
27
+ }
28
+
29
+ @media cm_tablet {
30
+ .card {
31
+ width: 48%; /* for ie */
32
+ width: calc(50% - 16px); /* 50% - 16px * 1 space / 2 cards */
33
+ }
34
+
35
+ .card:nth-child(2) {
36
+ margin-right: 0px;
37
+ }
38
+ }
@@ -0,0 +1,12 @@
1
+ import cockpit from '../../../quick-access-card/test/fixtures/default';
2
+ import analytics from '../../../quick-access-card/test/fixtures/analytics';
3
+ import lookAndFeel from '../../../quick-access-card/test/fixtures/look-and-feel';
4
+ import massiveBattle from '../../../quick-access-card/test/fixtures/massive-battle';
5
+ import uploadUsers from '../../../quick-access-card/test/fixtures/upload-users';
6
+ export default {
7
+ props: {
8
+ list: [cockpit.props, analytics.props, lookAndFeel.props, massiveBattle.props, uploadUsers.props],
9
+ loading: false
10
+ }
11
+ };
12
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/default.js"],"names":["cockpit","analytics","lookAndFeel","massiveBattle","uploadUsers","props","list","loading"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,kDAApB;AACA,OAAOC,SAAP,MAAsB,oDAAtB;AACA,OAAOC,WAAP,MAAwB,wDAAxB;AACA,OAAOC,aAAP,MAA0B,yDAA1B;AACA,OAAOC,WAAP,MAAwB,uDAAxB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,CACJN,OAAO,CAACK,KADJ,EAEJJ,SAAS,CAACI,KAFN,EAGJH,WAAW,CAACG,KAHR,EAIJF,aAAa,CAACE,KAJV,EAKJD,WAAW,CAACC,KALR,CADD;AAQLE,IAAAA,OAAO,EAAE;AARJ;AADM,CAAf","sourcesContent":["import cockpit from '../../../quick-access-card/test/fixtures/default';\nimport analytics from '../../../quick-access-card/test/fixtures/analytics';\nimport lookAndFeel from '../../../quick-access-card/test/fixtures/look-and-feel';\nimport massiveBattle from '../../../quick-access-card/test/fixtures/massive-battle';\nimport uploadUsers from '../../../quick-access-card/test/fixtures/upload-users';\n\nexport default {\n props: {\n list: [\n cockpit.props,\n analytics.props,\n lookAndFeel.props,\n massiveBattle.props,\n uploadUsers.props\n ],\n loading: false\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,7 @@
1
+ export default {
2
+ props: {
3
+ list: [],
4
+ loading: true
5
+ }
6
+ };
7
+ //# sourceMappingURL=loading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/loading.js"],"names":["props","list","loading"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,EADD;AAELC,IAAAA,OAAO,EAAE;AAFJ;AADM,CAAf","sourcesContent":["export default {\n props: {\n list: [],\n loading: true\n }\n};\n"],"file":"loading.js"}
@@ -0,0 +1,8 @@
1
+ import cockpit from '../../../quick-access-card/test/fixtures/default';
2
+ export default {
3
+ props: {
4
+ list: [cockpit.props],
5
+ loading: false
6
+ }
7
+ };
8
+ //# sourceMappingURL=one-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/one-card.js"],"names":["cockpit","props","list","loading"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,kDAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,CAACF,OAAO,CAACC,KAAT,CADD;AAELE,IAAAA,OAAO,EAAE;AAFJ;AADM,CAAf","sourcesContent":["import cockpit from '../../../quick-access-card/test/fixtures/default';\n\nexport default {\n props: {\n list: [cockpit.props],\n loading: false\n }\n};\n"],"file":"one-card.js"}
@@ -0,0 +1,10 @@
1
+ import cockpit from '../../../quick-access-card/test/fixtures/default';
2
+ import analytics from '../../../quick-access-card/test/fixtures/analytics';
3
+ import massiveBattle from '../../../quick-access-card/test/fixtures/massive-battle';
4
+ export default {
5
+ props: {
6
+ list: [cockpit.props, analytics.props, massiveBattle.props],
7
+ loading: false
8
+ }
9
+ };
10
+ //# sourceMappingURL=three-cards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/three-cards.js"],"names":["cockpit","analytics","massiveBattle","props","list","loading"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,kDAApB;AACA,OAAOC,SAAP,MAAsB,oDAAtB;AACA,OAAOC,aAAP,MAA0B,yDAA1B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,CAACJ,OAAO,CAACG,KAAT,EAAgBF,SAAS,CAACE,KAA1B,EAAiCD,aAAa,CAACC,KAA/C,CADD;AAELE,IAAAA,OAAO,EAAE;AAFJ;AADM,CAAf","sourcesContent":["import cockpit from '../../../quick-access-card/test/fixtures/default';\nimport analytics from '../../../quick-access-card/test/fixtures/analytics';\nimport massiveBattle from '../../../quick-access-card/test/fixtures/massive-battle';\n\nexport default {\n props: {\n list: [cockpit.props, analytics.props, massiveBattle.props],\n loading: false\n }\n};\n"],"file":"three-cards.js"}
@@ -0,0 +1,9 @@
1
+ import cockpit from '../../../quick-access-card/test/fixtures/default';
2
+ import analytics from '../../../quick-access-card/test/fixtures/analytics';
3
+ export default {
4
+ props: {
5
+ list: [cockpit.props, analytics.props],
6
+ loading: false
7
+ }
8
+ };
9
+ //# sourceMappingURL=two-cards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/two-cards.js"],"names":["cockpit","analytics","props","list","loading"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,kDAApB;AACA,OAAOC,SAAP,MAAsB,oDAAtB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,CAACH,OAAO,CAACE,KAAT,EAAgBD,SAAS,CAACC,KAA1B,CADD;AAELE,IAAAA,OAAO,EAAE;AAFJ;AADM,CAAf","sourcesContent":["import cockpit from '../../../quick-access-card/test/fixtures/default';\nimport analytics from '../../../quick-access-card/test/fixtures/analytics';\n\nexport default {\n props: {\n list: [cockpit.props, analytics.props],\n loading: false\n }\n};\n"],"file":"two-cards.js"}
@@ -0,0 +1,21 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeQuickAccessCardsGroup from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureLoading from './fixtures/loading';
7
+ import fixtureOneCard from './fixtures/one-card';
8
+ import fixtureThreeCards from './fixtures/three-cards';
9
+ import fixtureTwoCards from './fixtures/two-cards';
10
+ test('Molecule › MoleculeQuickAccessCardsGroup > should have valid propTypes', t => {
11
+ t.pass();
12
+ forEach(MoleculeQuickAccessCardsGroup.propTypes, (value, key) => {
13
+ t.not(value, undefined, `PropType for "Molecule.MoleculeQuickAccessCardsGroup.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
14
+ });
15
+ });
16
+ test('Molecule › MoleculeQuickAccessCardsGroup › Default › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureDefault);
17
+ test('Molecule › MoleculeQuickAccessCardsGroup › Loading › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureLoading);
18
+ test('Molecule › MoleculeQuickAccessCardsGroup › OneCard › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureOneCard);
19
+ test('Molecule › MoleculeQuickAccessCardsGroup › ThreeCards › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureThreeCards);
20
+ test('Molecule › MoleculeQuickAccessCardsGroup › TwoCards › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureTwoCards);
21
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/quick-access-cards-group/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuickAccessCardsGroup","fixtureDefault","fixtureLoading","fixtureOneCard","fixtureThreeCards","fixtureTwoCards","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AAEAR,IAAI,CAAC,wEAAD,EAA2ES,CAAC,IAAI;AAClFA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,6BAA6B,CAACQ,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kEAAiEF,GAAI,mEAA9F;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,6BAAlG,EAAiIC,cAAjI,CAAJ;AACAJ,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,6BAAlG,EAAiIE,cAAjI,CAAJ;AACAL,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,6BAAlG,EAAiIG,cAAjI,CAAJ;AACAN,IAAI,CAAC,4EAAD,EAA+EE,oBAA/E,EAAqGC,6BAArG,EAAoII,iBAApI,CAAJ;AACAP,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,6BAAnG,EAAkIK,eAAlI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeQuickAccessCardsGroup from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureOneCard from './fixtures/one-card';\nimport fixtureThreeCards from './fixtures/three-cards';\nimport fixtureTwoCards from './fixtures/two-cards';\n\ntest('Molecule › MoleculeQuickAccessCardsGroup > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeQuickAccessCardsGroup.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeQuickAccessCardsGroup.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeQuickAccessCardsGroup › Default › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureDefault);\ntest('Molecule › MoleculeQuickAccessCardsGroup › Loading › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureLoading);\ntest('Molecule › MoleculeQuickAccessCardsGroup › OneCard › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureOneCard);\ntest('Molecule › MoleculeQuickAccessCardsGroup › ThreeCards › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureThreeCards);\ntest('Molecule › MoleculeQuickAccessCardsGroup › TwoCards › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureTwoCards);\n"],"file":"fixtures.js"}
@@ -3,9 +3,12 @@ import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import MoleculeScopeContent from '..';
5
5
  import fixtureArabic from './fixtures/arabic';
6
+ import fixtureAudio from './fixtures/audio';
6
7
  import fixtureDefault from './fixtures/default';
7
8
  import fixtureEmpty from './fixtures/empty';
8
9
  import fixtureMedias from './fixtures/medias';
10
+ import fixturePdf from './fixtures/pdf';
11
+ import fixtureVimeo from './fixtures/vimeo';
9
12
  import fixtureWithOnclick from './fixtures/with-onclick';
10
13
  test('Molecule › MoleculeScopeContent > should have valid propTypes', t => {
11
14
  t.pass();
@@ -14,8 +17,11 @@ test('Molecule › MoleculeScopeContent > should have valid propTypes', t => {
14
17
  });
15
18
  });
16
19
  test('Molecule › MoleculeScopeContent › Arabic › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureArabic);
20
+ test('Molecule › MoleculeScopeContent › Audio › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureAudio);
17
21
  test('Molecule › MoleculeScopeContent › Default › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureDefault);
18
22
  test('Molecule › MoleculeScopeContent › Empty › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureEmpty);
19
23
  test('Molecule › MoleculeScopeContent › Medias › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureMedias);
24
+ test('Molecule › MoleculeScopeContent › Pdf › should be rendered', renderComponentMacro, MoleculeScopeContent, fixturePdf);
25
+ test('Molecule › MoleculeScopeContent › Vimeo › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureVimeo);
20
26
  test('Molecule › MoleculeScopeContent › WithOnclick › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureWithOnclick);
21
27
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/scope-content/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeScopeContent","fixtureArabic","fixtureDefault","fixtureEmpty","fixtureMedias","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAR,IAAI,CAAC,+DAAD,EAAkES,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,oBAAoB,CAACQ,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,oBAAxF,EAA8GC,aAA9G,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,oBAAvF,EAA6GG,YAA7G,CAAJ;AACAN,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,oBAAxF,EAA8GI,aAA9G,CAAJ;AACAP,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,oBAA7F,EAAmHK,kBAAnH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeScopeContent from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeScopeContent > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeScopeContent.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeScopeContent.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeScopeContent › Arabic › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureArabic);\ntest('Molecule › MoleculeScopeContent › Default › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureDefault);\ntest('Molecule › MoleculeScopeContent › Empty › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureEmpty);\ntest('Molecule › MoleculeScopeContent › Medias › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureMedias);\ntest('Molecule › MoleculeScopeContent › WithOnclick › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureWithOnclick);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/scope-content/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeScopeContent","fixtureArabic","fixtureAudio","fixtureDefault","fixtureEmpty","fixtureMedias","fixturePdf","fixtureVimeo","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAX,IAAI,CAAC,+DAAD,EAAkEY,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAZ,EAAAA,OAAO,CAACE,oBAAoB,CAACW,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAhB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,oBAAxF,EAA8GC,aAA9G,CAAJ;AACAJ,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,oBAAvF,EAA6GE,YAA7G,CAAJ;AACAL,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GG,cAA/G,CAAJ;AACAN,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,oBAAvF,EAA6GI,YAA7G,CAAJ;AACAP,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,oBAAxF,EAA8GK,aAA9G,CAAJ;AACAR,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,oBAArF,EAA2GM,UAA3G,CAAJ;AACAT,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,oBAAvF,EAA6GO,YAA7G,CAAJ;AACAV,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,oBAA7F,EAAmHQ,kBAAnH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeScopeContent from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureAudio from './fixtures/audio';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixturePdf from './fixtures/pdf';\nimport fixtureVimeo from './fixtures/vimeo';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeScopeContent > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeScopeContent.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeScopeContent.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeScopeContent › Arabic › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureArabic);\ntest('Molecule › MoleculeScopeContent › Audio › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureAudio);\ntest('Molecule › MoleculeScopeContent › Default › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureDefault);\ntest('Molecule › MoleculeScopeContent › Empty › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureEmpty);\ntest('Molecule › MoleculeScopeContent › Medias › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureMedias);\ntest('Molecule › MoleculeScopeContent › Pdf › should be rendered', renderComponentMacro, MoleculeScopeContent, fixturePdf);\ntest('Molecule › MoleculeScopeContent › Vimeo › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureVimeo);\ntest('Molecule › MoleculeScopeContent › WithOnclick › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureWithOnclick);\n"],"file":"fixtures.js"}
@@ -1,4 +1,13 @@
1
1
  export default {
2
- props: {}
2
+ props: {
3
+ title: 'Analytics',
4
+ key: 'analytics',
5
+ href: '#brand/samsung/analytics',
6
+ open: false,
7
+ selected: false,
8
+ type: 'collapsibleTab',
9
+ isOpen: true,
10
+ content: 'Hello'
11
+ }
3
12
  };
4
13
  //# sourceMappingURL=defaut.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures/defaut.js"],"names":["props"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AADM,CAAf","sourcesContent":["export default {\n props: {}\n};\n"],"file":"defaut.js"}
1
+ {"version":3,"sources":["../../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures/defaut.js"],"names":["props","title","key","href","open","selected","type","isOpen","content"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,GAAG,EAAE,WAFA;AAGLC,IAAAA,IAAI,EAAE,0BAHD;AAILC,IAAAA,IAAI,EAAE,KAJD;AAKLC,IAAAA,QAAQ,EAAE,KALL;AAMLC,IAAAA,IAAI,EAAE,gBAND;AAOLC,IAAAA,MAAM,EAAE,IAPH;AAQLC,IAAAA,OAAO,EAAE;AARJ;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'collapsibleTab',\n isOpen: true,\n content: 'Hello'\n }\n};\n"],"file":"defaut.js"}
@@ -0,0 +1,11 @@
1
+ export default {
2
+ props: {
3
+ title: 'Analytics',
4
+ key: 'analytics',
5
+ href: '#brand/samsung/analytics',
6
+ open: false,
7
+ selected: false,
8
+ type: 'iconLink'
9
+ }
10
+ };
11
+ //# sourceMappingURL=icon-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js"],"names":["props","title","key","href","open","selected","type"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,GAAG,EAAE,WAFA;AAGLC,IAAAA,IAAI,EAAE,0BAHD;AAILC,IAAAA,IAAI,EAAE,KAJD;AAKLC,IAAAA,QAAQ,EAAE,KALL;AAMLC,IAAAA,IAAI,EAAE;AAND;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'iconLink'\n }\n};\n"],"file":"icon-link.js"}
@@ -0,0 +1,11 @@
1
+ export default {
2
+ props: {
3
+ title: 'Analytics',
4
+ key: 'analytics',
5
+ href: '#brand/samsung/analytics',
6
+ open: false,
7
+ selected: false,
8
+ type: 'simpletab'
9
+ }
10
+ };
11
+ //# sourceMappingURL=simpletab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js"],"names":["props","title","key","href","open","selected","type"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,GAAG,EAAE,WAFA;AAGLC,IAAAA,IAAI,EAAE,0BAHD;AAILC,IAAAA,IAAI,EAAE,KAJD;AAKLC,IAAAA,QAAQ,EAAE,KALL;AAMLC,IAAAA,IAAI,EAAE;AAND;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'simpletab'\n }\n};\n"],"file":"simpletab.js"}
@@ -0,0 +1,17 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../../../test/helpers/render-component';
4
+ import OrganismAccordionCoorpManagerPart from '..';
5
+ import fixtureDefaut from './fixtures/defaut';
6
+ import fixtureIconLink from './fixtures/icon-link';
7
+ import fixtureSimpletab from './fixtures/simpletab';
8
+ test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(OrganismAccordionCoorpManagerPart.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "OrganismAccordionCoorpManager.OrganismAccordionCoorpManagerPart.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Defaut › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureDefaut);
15
+ test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › IconLink › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureIconLink);
16
+ test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Simpletab › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureSimpletab);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionCoorpManagerPart","fixtureDefaut","fixtureIconLink","fixtureSimpletab","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,8CAAjC;AACA,OAAOC,iCAAP,MAA8C,IAA9C;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AAEAN,IAAI,CAAC,iGAAD,EAAoGO,CAAC,IAAI;AAC3GA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,iCAAiC,CAACM,SAAnC,EAA8C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnEJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2FAA0FF,GAAI,mEAAvH;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,iCAA1H,EAA6JC,aAA7J,CAAJ;AACAJ,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,iCAA5H,EAA+JE,eAA/J,CAAJ;AACAL,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,iCAA7H,EAAgKG,gBAAhK,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../../test/helpers/render-component';\nimport OrganismAccordionCoorpManagerPart from '..';\nimport fixtureDefaut from './fixtures/defaut';\nimport fixtureIconLink from './fixtures/icon-link';\nimport fixtureSimpletab from './fixtures/simpletab';\n\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionCoorpManagerPart.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordionCoorpManager.OrganismAccordionCoorpManagerPart.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Defaut › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureDefaut);\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › IconLink › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureIconLink);\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Simpletab › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureSimpletab);\n"],"file":"fixtures.js"}
@@ -0,0 +1,13 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../../test/helpers/render-component';
4
+ import OrganismAccordionCoorpManager from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('OrganismAccordion › OrganismAccordionCoorpManager > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(OrganismAccordionCoorpManager.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "OrganismAccordion.OrganismAccordionCoorpManager.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('OrganismAccordion › OrganismAccordionCoorpManager › Default › should be rendered', renderComponentMacro, OrganismAccordionCoorpManager, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/accordion/coorp-manager/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionCoorpManager","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,iFAAD,EAAoFK,CAAC,IAAI;AAC3FA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,6BAA6B,CAACI,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2EAA0EF,GAAI,mEAAvG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,kFAAD,EAAqFE,oBAArF,EAA2GC,6BAA3G,EAA0IC,cAA1I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport OrganismAccordionCoorpManager from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('OrganismAccordion › OrganismAccordionCoorpManager > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionCoorpManager.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordion.OrganismAccordionCoorpManager.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordion › OrganismAccordionCoorpManager › Default › should be rendered', renderComponentMacro, OrganismAccordionCoorpManager, fixtureDefault);\n"],"file":"fixtures.js"}
@@ -0,0 +1,23 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismBrandAnalytics from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureError from './fixtures/error';
7
+ import fixtureLoading from './fixtures/loading';
8
+ import fixtureSelectedError from './fixtures/selected-error';
9
+ import fixtureSelectedLoading from './fixtures/selected-loading';
10
+ import fixtureSelected from './fixtures/selected';
11
+ test('Organism › OrganismBrandAnalytics > should have valid propTypes', t => {
12
+ t.pass();
13
+ forEach(OrganismBrandAnalytics.propTypes, (value, key) => {
14
+ t.not(value, undefined, `PropType for "Organism.OrganismBrandAnalytics.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
15
+ });
16
+ });
17
+ test('Organism › OrganismBrandAnalytics › Default › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureDefault);
18
+ test('Organism › OrganismBrandAnalytics › Error › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureError);
19
+ test('Organism › OrganismBrandAnalytics › Loading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureLoading);
20
+ test('Organism › OrganismBrandAnalytics › SelectedError › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedError);
21
+ test('Organism › OrganismBrandAnalytics › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedLoading);
22
+ test('Organism › OrganismBrandAnalytics › Selected › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelected);
23
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/brand-analytics/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandAnalytics","fixtureDefault","fixtureError","fixtureLoading","fixtureSelectedError","fixtureSelectedLoading","fixtureSelected","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAT,IAAI,CAAC,iEAAD,EAAoEU,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,sBAAsB,CAACS,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,sBAAzF,EAAiHE,YAAjH,CAAJ;AACAL,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHG,cAAnH,CAAJ;AACAN,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,sBAAjG,EAAyHI,oBAAzH,CAAJ;AACAP,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,sBAAnG,EAA2HK,sBAA3H,CAAJ;AACAR,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,sBAA5F,EAAoHM,eAApH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandAnalytics from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureSelectedError from './fixtures/selected-error';\nimport fixtureSelectedLoading from './fixtures/selected-loading';\nimport fixtureSelected from './fixtures/selected';\n\ntest('Organism › OrganismBrandAnalytics > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandAnalytics.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandAnalytics.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandAnalytics › Default › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureDefault);\ntest('Organism › OrganismBrandAnalytics › Error › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureError);\ntest('Organism › OrganismBrandAnalytics › Loading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureLoading);\ntest('Organism › OrganismBrandAnalytics › SelectedError › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedError);\ntest('Organism › OrganismBrandAnalytics › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedLoading);\ntest('Organism › OrganismBrandAnalytics › Selected › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelected);\n"],"file":"fixtures.js"}
@@ -1,21 +1,39 @@
1
+ function _extends() { _extends = Object.assign || 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
+
1
3
  import React from 'react';
2
4
  import PropTypes from 'prop-types';
5
+ import Title from '../../atom/title';
6
+ import QuickAccessCardGroup from '../../molecule/quick-access-cards-group';
3
7
  import style from './style.css';
4
8
 
5
9
  const Dashboard = props => {
6
10
  const {
7
- text
11
+ header,
12
+ quickAccessCards
8
13
  } = props;
9
14
  return /*#__PURE__*/React.createElement("div", {
10
- className: style.home,
11
- "data-name": "home-page"
12
- }, /*#__PURE__*/React.createElement("h1", {
13
- className: style.homeText
14
- }, text));
15
+ className: style.wrapper
16
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Title, _extends({}, header, {
17
+ type: 'page'
18
+ }))), /*#__PURE__*/React.createElement("div", {
19
+ className: style.sectionWrapper
20
+ }, /*#__PURE__*/React.createElement(Title, {
21
+ title: quickAccessCards.title,
22
+ type: 'form-group'
23
+ }), /*#__PURE__*/React.createElement("div", {
24
+ className: style.cardsWrapper
25
+ }, /*#__PURE__*/React.createElement(QuickAccessCardGroup, quickAccessCards.cards))));
15
26
  };
16
27
 
17
28
  Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
18
- text: PropTypes.string
29
+ header: PropTypes.shape({
30
+ title: PropTypes.string,
31
+ subtitle: PropTypes.string
32
+ }),
33
+ quickAccessCards: PropTypes.shape({
34
+ title: PropTypes.string,
35
+ cards: PropTypes.shape(QuickAccessCardGroup.propTypes)
36
+ })
19
37
  } : {};
20
38
  export default Dashboard;
21
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/organism/brand-dashboard/index.js"],"names":["React","PropTypes","style","Dashboard","props","text","home","homeText","propTypes","string"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,SAAS,GAAGC,KAAK,IAAI;AACzB,QAAM;AAACC,IAAAA;AAAD,MAASD,KAAf;AACA,sBACE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACI,IAAtB;AAA4B,iBAAU;AAAtC,kBACE;AAAI,IAAA,SAAS,EAAEJ,KAAK,CAACK;AAArB,KAAgCF,IAAhC,CADF,CADF;AAKD,CAPD;;AASAF,SAAS,CAACK,SAAV,2CAAsB;AACpBH,EAAAA,IAAI,EAAEJ,SAAS,CAACQ;AADI,CAAtB;AAIA,eAAeN,SAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport style from './style.css';\n\nconst Dashboard = props => {\n const {text} = props;\n return (\n <div className={style.home} data-name=\"home-page\">\n <h1 className={style.homeText}>{text}</h1>\n </div>\n );\n};\n\nDashboard.propTypes = {\n text: PropTypes.string\n};\n\nexport default Dashboard;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/organism/brand-dashboard/index.js"],"names":["React","PropTypes","Title","QuickAccessCardGroup","style","Dashboard","props","header","quickAccessCards","wrapper","sectionWrapper","title","cardsWrapper","cards","propTypes","shape","string","subtitle"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,oBAAP,MAAiC,yCAAjC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,SAAS,GAAGC,KAAK,IAAI;AACzB,QAAM;AAACC,IAAAA,MAAD;AAASC,IAAAA;AAAT,MAA6BF,KAAnC;AACA,sBACE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACK;AAAtB,kBACE,8CACE,oBAAC,KAAD,eAAWF,MAAX;AAAmB,IAAA,IAAI,EAAE;AAAzB,KADF,CADF,eAIE;AAAK,IAAA,SAAS,EAAEH,KAAK,CAACM;AAAtB,kBACE,oBAAC,KAAD;AAAO,IAAA,KAAK,EAAEF,gBAAgB,CAACG,KAA/B;AAAsC,IAAA,IAAI,EAAE;AAA5C,IADF,eAEE;AAAK,IAAA,SAAS,EAAEP,KAAK,CAACQ;AAAtB,kBACE,oBAAC,oBAAD,EAA0BJ,gBAAgB,CAACK,KAA3C,CADF,CAFF,CAJF,CADF;AAaD,CAfD;;AAiBAR,SAAS,CAACS,SAAV,2CAAsB;AACpBP,EAAAA,MAAM,EAAEN,SAAS,CAACc,KAAV,CAAgB;AACtBJ,IAAAA,KAAK,EAAEV,SAAS,CAACe,MADK;AAEtBC,IAAAA,QAAQ,EAAEhB,SAAS,CAACe;AAFE,GAAhB,CADY;AAKpBR,EAAAA,gBAAgB,EAAEP,SAAS,CAACc,KAAV,CAAgB;AAChCJ,IAAAA,KAAK,EAAEV,SAAS,CAACe,MADe;AAEhCH,IAAAA,KAAK,EAAEZ,SAAS,CAACc,KAAV,CAAgBZ,oBAAoB,CAACW,SAArC;AAFyB,GAAhB;AALE,CAAtB;AAWA,eAAeT,SAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Title from '../../atom/title';\nimport QuickAccessCardGroup from '../../molecule/quick-access-cards-group';\nimport style from './style.css';\n\nconst Dashboard = props => {\n const {header, quickAccessCards} = props;\n return (\n <div className={style.wrapper}>\n <div>\n <Title {...header} type={'page'} />\n </div>\n <div className={style.sectionWrapper}>\n <Title title={quickAccessCards.title} type={'form-group'} />\n <div className={style.cardsWrapper}>\n <QuickAccessCardGroup {...quickAccessCards.cards} />\n </div>\n </div>\n </div>\n );\n};\n\nDashboard.propTypes = {\n header: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string\n }),\n quickAccessCards: PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.shape(QuickAccessCardGroup.propTypes)\n })\n};\n\nexport default Dashboard;\n"],"file":"index.js"}
@@ -1,23 +1,20 @@
1
- @value colors: "../../variables/colors.css";
2
- @value dark from colors;
1
+ @value breakpoints: "../../variables/breakpoints.css";
2
+ @value cm_tablet from breakpoints;
3
3
 
4
- .home {
5
- flex: 1;
6
- display: flex;
7
- justify-content: center;
8
- align-content: center;
9
- align-items: center;
4
+ .wrapper {
5
+ margin: 0px 64px;
10
6
  }
11
- .homeText {
12
- width: 611px;
13
- height: 58px;
14
- font-family: Gilroy;
15
- font-size: 48px;
16
- font-weight: bold;
17
- font-stretch: normal;
18
- font-style: normal;
19
- line-height: normal;
20
- letter-spacing: normal;
21
- text-align: center;
22
- color: #111117;
7
+
8
+ .sectionWrapper {
9
+ margin-top: 44px;
10
+ }
11
+
12
+ .cardsWrapper {
13
+ margin-top: 16px;
14
+ }
15
+
16
+ @media cm_tablet {
17
+ .wrapper {
18
+ margin: 0px 32px;
19
+ }
23
20
  }
@@ -1,6 +1,14 @@
1
+ import QuickAccessCardGroup from '../../../../molecule/quick-access-cards-group/test/fixtures/default';
1
2
  export default {
2
3
  props: {
3
- text: 'Welcome to coorpmanager'
4
+ header: {
5
+ title: 'Hello Marianna!',
6
+ subtitle: 'Welcome to the coorpmanager dashboard'
7
+ },
8
+ quickAccessCards: {
9
+ title: 'Quick Access',
10
+ cards: QuickAccessCardGroup.props
11
+ }
4
12
  }
5
13
  };
6
14
  //# sourceMappingURL=default.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/brand-dashboard/test/fixtures/default.js"],"names":["props","text"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE;AADD;AADM,CAAf","sourcesContent":["export default {\n props: {\n text: 'Welcome to coorpmanager'\n }\n};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/brand-dashboard/test/fixtures/default.js"],"names":["QuickAccessCardGroup","props","header","title","subtitle","quickAccessCards","cards"],"mappings":"AAAA,OAAOA,oBAAP,MAAiC,qEAAjC;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE;AACNC,MAAAA,KAAK,EAAE,iBADD;AAENC,MAAAA,QAAQ,EAAE;AAFJ,KADH;AAKLC,IAAAA,gBAAgB,EAAE;AAChBF,MAAAA,KAAK,EAAE,cADS;AAEhBG,MAAAA,KAAK,EAAEN,oBAAoB,CAACC;AAFZ;AALb;AADM,CAAf","sourcesContent":["import QuickAccessCardGroup from '../../../../molecule/quick-access-cards-group/test/fixtures/default';\n\nexport default {\n props: {\n header: {\n title: 'Hello Marianna!',\n subtitle: 'Welcome to the coorpmanager dashboard'\n },\n quickAccessCards: {\n title: 'Quick Access',\n cards: QuickAccessCardGroup.props\n }\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,14 @@
1
+ import QuickAccessCardGroup from '../../../../molecule/quick-access-cards-group/test/fixtures/three-cards';
2
+ export default {
3
+ props: {
4
+ header: {
5
+ title: 'Hello Marianna!',
6
+ subtitle: 'Welcome to the coorpmanager dashboard'
7
+ },
8
+ quickAccessCards: {
9
+ title: 'Quick Access',
10
+ cards: QuickAccessCardGroup.props
11
+ }
12
+ }
13
+ };
14
+ //# sourceMappingURL=three-cards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/brand-dashboard/test/fixtures/three-cards.js"],"names":["QuickAccessCardGroup","props","header","title","subtitle","quickAccessCards","cards"],"mappings":"AAAA,OAAOA,oBAAP,MAAiC,yEAAjC;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE;AACNC,MAAAA,KAAK,EAAE,iBADD;AAENC,MAAAA,QAAQ,EAAE;AAFJ,KADH;AAKLC,IAAAA,gBAAgB,EAAE;AAChBF,MAAAA,KAAK,EAAE,cADS;AAEhBG,MAAAA,KAAK,EAAEN,oBAAoB,CAACC;AAFZ;AALb;AADM,CAAf","sourcesContent":["import QuickAccessCardGroup from '../../../../molecule/quick-access-cards-group/test/fixtures/three-cards';\n\nexport default {\n props: {\n header: {\n title: 'Hello Marianna!',\n subtitle: 'Welcome to the coorpmanager dashboard'\n },\n quickAccessCards: {\n title: 'Quick Access',\n cards: QuickAccessCardGroup.props\n }\n }\n};\n"],"file":"three-cards.js"}