@coorpacademy/components 10.1.3 → 10.1.7

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 (256) hide show
  1. package/es/atom/button-link/index.js +10 -4
  2. package/es/atom/button-link/index.js.map +1 -1
  3. package/es/atom/button-link/style.css +4 -5
  4. package/es/atom/button-link/test/button-link.js +25 -0
  5. package/es/atom/button-link/test/button-link.js.map +1 -0
  6. package/es/atom/button-link/test/fixtures/button-tertiary-icon-bullet.js +13 -0
  7. package/es/atom/button-link/test/fixtures/button-tertiary-icon-bullet.js.map +1 -0
  8. package/es/atom/button-link/test/fixtures.js +35 -0
  9. package/es/atom/button-link/test/fixtures.js.map +1 -0
  10. package/es/atom/button-menu/index.js +66 -0
  11. package/es/atom/button-menu/index.js.map +1 -0
  12. package/es/atom/button-menu/style.css +51 -0
  13. package/es/atom/button-menu/test/fixtures/default.js +20 -0
  14. package/es/atom/button-menu/test/fixtures/default.js.map +1 -0
  15. package/es/atom/button-menu/test/fixtures/multiple-buttons.js +15 -0
  16. package/es/atom/button-menu/test/fixtures/multiple-buttons.js.map +1 -0
  17. package/es/atom/button-menu/test/fixtures.js +15 -0
  18. package/es/atom/button-menu/test/fixtures.js.map +1 -0
  19. package/es/atom/chips/index.js +8 -4
  20. package/es/atom/chips/index.js.map +1 -1
  21. package/es/atom/chips/style.css +17 -2
  22. package/es/atom/chips/test/fixtures/long-text.js +9 -0
  23. package/es/atom/chips/test/fixtures/long-text.js.map +1 -0
  24. package/es/atom/chips/test/fixtures.js +17 -0
  25. package/es/atom/chips/test/fixtures.js.map +1 -0
  26. package/es/atom/content-badge/test/fixtures.js +27 -0
  27. package/es/atom/content-badge/test/fixtures.js.map +1 -0
  28. package/es/atom/input-search/style.css +1 -0
  29. package/es/atom/input-search/test/fixtures.js +19 -0
  30. package/es/atom/input-search/test/fixtures.js.map +1 -0
  31. package/es/atom/input-text/index.js.map +1 -1
  32. package/es/atom/input-text/style.css +6 -2
  33. package/es/atom/input-text/test/fixtures.js +2 -0
  34. package/es/atom/input-text/test/fixtures.js.map +1 -1
  35. package/es/atom/input-textarea/style.css +3 -3
  36. package/es/atom/input-textarea/test/fixtures.js +4 -0
  37. package/es/atom/input-textarea/test/fixtures.js.map +1 -1
  38. package/es/atom/tag/test/fixtures.js +19 -0
  39. package/es/atom/tag/test/fixtures.js.map +1 -0
  40. package/es/atom/wizard-steps/test/fixtures.js +17 -0
  41. package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
  42. package/es/molecule/banner/index.js +19 -10
  43. package/es/molecule/banner/index.js.map +1 -1
  44. package/es/molecule/banner/style.css +10 -8
  45. package/es/molecule/banner/test/fixtures.js +15 -0
  46. package/es/molecule/banner/test/fixtures.js.map +1 -0
  47. package/es/molecule/brand-form-group/index.js +20 -5
  48. package/es/molecule/brand-form-group/index.js.map +1 -1
  49. package/es/molecule/brand-form-group/style.css +19 -0
  50. package/es/molecule/brand-form-group/test/fixtures.js +2 -0
  51. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -1
  52. package/es/molecule/bullet-point-menu-button/index.js +54 -0
  53. package/es/molecule/bullet-point-menu-button/index.js.map +1 -0
  54. package/es/molecule/bullet-point-menu-button/style.css +52 -0
  55. package/es/molecule/bullet-point-menu-button/test/bullet-point-menu-button.js +34 -0
  56. package/es/molecule/bullet-point-menu-button/test/bullet-point-menu-button.js.map +1 -0
  57. package/es/molecule/bullet-point-menu-button/test/fixtures/default.js +11 -0
  58. package/es/molecule/bullet-point-menu-button/test/fixtures/default.js.map +1 -0
  59. package/es/molecule/bullet-point-menu-button/test/fixtures/multiple-buttons.js +13 -0
  60. package/es/molecule/bullet-point-menu-button/test/fixtures/multiple-buttons.js.map +1 -0
  61. package/es/molecule/bullet-point-menu-button/test/fixtures.js +15 -0
  62. package/es/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
  63. package/es/molecule/card/test/fixtures.js +4 -0
  64. package/es/molecule/card/test/fixtures.js.map +1 -1
  65. package/es/molecule/cm-popin/index.js +4 -4
  66. package/es/molecule/cm-popin/index.js.map +1 -1
  67. package/es/molecule/cm-popin/test/fixtures/dangerous.js +2 -2
  68. package/es/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -1
  69. package/es/molecule/cm-popin/test/fixtures/default.js +2 -2
  70. package/es/molecule/cm-popin/test/fixtures/default.js.map +1 -1
  71. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js +2 -2
  72. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -1
  73. package/es/molecule/cm-popin/test/fixtures.js +17 -0
  74. package/es/molecule/cm-popin/test/fixtures.js.map +1 -0
  75. package/es/molecule/feedback/test/fixtures.js +0 -2
  76. package/es/molecule/feedback/test/fixtures.js.map +1 -1
  77. package/es/molecule/select-multiple/index.js +113 -146
  78. package/es/molecule/select-multiple/index.js.map +1 -1
  79. package/es/molecule/select-multiple/test/index.js +20 -79
  80. package/es/molecule/select-multiple/test/index.js.map +1 -1
  81. package/es/molecule/vertical-tabs/index.js +8 -3
  82. package/es/molecule/vertical-tabs/index.js.map +1 -1
  83. package/es/molecule/vertical-tabs/test/fixtures/default.js +2 -1
  84. package/es/molecule/vertical-tabs/test/fixtures/default.js.map +1 -1
  85. package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js +2 -1
  86. package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -1
  87. package/es/molecule/vertical-tabs/test/fixtures.js +15 -0
  88. package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  89. package/es/molecule/wizard-summary/index.js +3 -1
  90. package/es/molecule/wizard-summary/index.js.map +1 -1
  91. package/es/molecule/wizard-summary/style.css +8 -0
  92. package/es/molecule/wizard-summary/test/fixtures.js +21 -0
  93. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
  94. package/es/organism/brand-form/test/fixtures/wizard-playlists.js +26 -0
  95. package/es/organism/brand-form/test/fixtures/wizard-playlists.js.map +1 -0
  96. package/es/organism/brand-form/test/fixtures.js +2 -0
  97. package/es/organism/brand-form/test/fixtures.js.map +1 -1
  98. package/es/organism/playlist-translation/index.js +63 -0
  99. package/es/organism/playlist-translation/index.js.map +1 -0
  100. package/es/organism/playlist-translation/style.css +45 -0
  101. package/es/organism/playlist-translation/test/fixtures/default.js +24 -0
  102. package/es/organism/playlist-translation/test/fixtures/default.js.map +1 -0
  103. package/es/organism/playlist-translation/test/fixtures/delete.js +18 -0
  104. package/es/organism/playlist-translation/test/fixtures/delete.js.map +1 -0
  105. package/es/organism/search-and-chips-results/index.js +92 -0
  106. package/es/organism/search-and-chips-results/index.js.map +1 -0
  107. package/es/organism/search-and-chips-results/style.css +57 -0
  108. package/es/organism/search-and-chips-results/test/fixtures/default.js +46 -0
  109. package/es/organism/search-and-chips-results/test/fixtures/default.js.map +1 -0
  110. package/es/organism/search-and-chips-results/test/fixtures/empty.js +23 -0
  111. package/es/organism/search-and-chips-results/test/fixtures/empty.js.map +1 -0
  112. package/es/organism/search-and-chips-results/test/fixtures/filtered.js +26 -0
  113. package/es/organism/search-and-chips-results/test/fixtures/filtered.js.map +1 -0
  114. package/es/organism/search-and-chips-results/test/fixtures/sorted-selected.js +49 -0
  115. package/es/organism/search-and-chips-results/test/fixtures/sorted-selected.js.map +1 -0
  116. package/es/organism/search-and-chips-results/test/fixtures/unsorted-selected.js +49 -0
  117. package/es/organism/search-and-chips-results/test/fixtures/unsorted-selected.js.map +1 -0
  118. package/es/organism/search-and-chips-results/test/fixtures.js +21 -0
  119. package/es/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  120. package/es/template/app-player/popin-end/test/fixtures.js +0 -2
  121. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -1
  122. package/es/template/teams-dashboard/index.js +4 -3
  123. package/es/template/teams-dashboard/index.js.map +1 -1
  124. package/es/variables/colors.css +2 -0
  125. package/lib/atom/button-link/index.js +9 -2
  126. package/lib/atom/button-link/index.js.map +1 -1
  127. package/lib/atom/button-link/style.css +4 -5
  128. package/lib/atom/button-link/test/button-link.js +37 -0
  129. package/lib/atom/button-link/test/button-link.js.map +1 -0
  130. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-bullet.js +18 -0
  131. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-bullet.js.map +1 -0
  132. package/lib/atom/button-link/test/fixtures.js +55 -0
  133. package/lib/atom/button-link/test/fixtures.js.map +1 -0
  134. package/lib/atom/button-menu/index.js +82 -0
  135. package/lib/atom/button-menu/index.js.map +1 -0
  136. package/lib/atom/button-menu/style.css +51 -0
  137. package/lib/atom/button-menu/test/fixtures/default.js +27 -0
  138. package/lib/atom/button-menu/test/fixtures/default.js.map +1 -0
  139. package/lib/atom/button-menu/test/fixtures/multiple-buttons.js +23 -0
  140. package/lib/atom/button-menu/test/fixtures/multiple-buttons.js.map +1 -0
  141. package/lib/atom/button-menu/test/fixtures.js +25 -0
  142. package/lib/atom/button-menu/test/fixtures.js.map +1 -0
  143. package/lib/atom/chips/index.js +8 -4
  144. package/lib/atom/chips/index.js.map +1 -1
  145. package/lib/atom/chips/style.css +17 -2
  146. package/lib/atom/chips/test/fixtures/long-text.js +14 -0
  147. package/lib/atom/chips/test/fixtures/long-text.js.map +1 -0
  148. package/lib/atom/chips/test/fixtures.js +28 -0
  149. package/lib/atom/chips/test/fixtures.js.map +1 -0
  150. package/lib/atom/content-badge/test/fixtures.js +43 -0
  151. package/lib/atom/content-badge/test/fixtures.js.map +1 -0
  152. package/lib/atom/input-search/style.css +1 -0
  153. package/lib/atom/input-search/test/fixtures.js +31 -0
  154. package/lib/atom/input-search/test/fixtures.js.map +1 -0
  155. package/lib/atom/input-text/index.js.map +1 -1
  156. package/lib/atom/input-text/style.css +6 -2
  157. package/lib/atom/input-text/test/fixtures.js +3 -0
  158. package/lib/atom/input-text/test/fixtures.js.map +1 -1
  159. package/lib/atom/input-textarea/style.css +3 -3
  160. package/lib/atom/input-textarea/test/fixtures.js +6 -0
  161. package/lib/atom/input-textarea/test/fixtures.js.map +1 -1
  162. package/lib/atom/tag/test/fixtures.js +31 -0
  163. package/lib/atom/tag/test/fixtures.js.map +1 -0
  164. package/lib/atom/wizard-steps/test/fixtures.js +28 -0
  165. package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
  166. package/lib/molecule/banner/index.js +19 -10
  167. package/lib/molecule/banner/index.js.map +1 -1
  168. package/lib/molecule/banner/style.css +10 -8
  169. package/lib/molecule/{search → banner}/test/fixtures.js +5 -5
  170. package/lib/molecule/banner/test/fixtures.js.map +1 -0
  171. package/lib/molecule/brand-form-group/index.js +22 -5
  172. package/lib/molecule/brand-form-group/index.js.map +1 -1
  173. package/lib/molecule/brand-form-group/style.css +19 -0
  174. package/lib/molecule/brand-form-group/test/fixtures.js +3 -0
  175. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -1
  176. package/lib/molecule/bullet-point-menu-button/index.js +72 -0
  177. package/lib/molecule/bullet-point-menu-button/index.js.map +1 -0
  178. package/lib/molecule/bullet-point-menu-button/style.css +52 -0
  179. package/lib/molecule/bullet-point-menu-button/test/bullet-point-menu-button.js +46 -0
  180. package/lib/molecule/bullet-point-menu-button/test/bullet-point-menu-button.js.map +1 -0
  181. package/lib/molecule/bullet-point-menu-button/test/fixtures/default.js +18 -0
  182. package/lib/molecule/bullet-point-menu-button/test/fixtures/default.js.map +1 -0
  183. package/lib/molecule/bullet-point-menu-button/test/fixtures/multiple-buttons.js +25 -0
  184. package/lib/molecule/bullet-point-menu-button/test/fixtures/multiple-buttons.js.map +1 -0
  185. package/lib/molecule/bullet-point-menu-button/test/fixtures.js +25 -0
  186. package/lib/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
  187. package/lib/molecule/card/test/fixtures.js +6 -0
  188. package/lib/molecule/card/test/fixtures.js.map +1 -1
  189. package/lib/molecule/cm-popin/index.js +4 -4
  190. package/lib/molecule/cm-popin/index.js.map +1 -1
  191. package/lib/molecule/cm-popin/test/fixtures/dangerous.js +2 -2
  192. package/lib/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -1
  193. package/lib/molecule/cm-popin/test/fixtures/default.js +2 -2
  194. package/lib/molecule/cm-popin/test/fixtures/default.js.map +1 -1
  195. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js +2 -2
  196. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -1
  197. package/lib/molecule/cm-popin/test/fixtures.js +28 -0
  198. package/lib/molecule/cm-popin/test/fixtures.js.map +1 -0
  199. package/lib/molecule/feedback/test/fixtures.js +0 -3
  200. package/lib/molecule/feedback/test/fixtures.js.map +1 -1
  201. package/lib/molecule/select-multiple/index.js +117 -143
  202. package/lib/molecule/select-multiple/index.js.map +1 -1
  203. package/lib/molecule/select-multiple/test/index.js +25 -79
  204. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  205. package/lib/molecule/vertical-tabs/index.js +8 -3
  206. package/lib/molecule/vertical-tabs/index.js.map +1 -1
  207. package/lib/molecule/vertical-tabs/test/fixtures/default.js +2 -1
  208. package/lib/molecule/vertical-tabs/test/fixtures/default.js.map +1 -1
  209. package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js +2 -1
  210. package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -1
  211. package/lib/molecule/vertical-tabs/test/fixtures.js +25 -0
  212. package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  213. package/lib/molecule/wizard-summary/index.js +3 -1
  214. package/lib/molecule/wizard-summary/index.js.map +1 -1
  215. package/lib/molecule/wizard-summary/style.css +8 -0
  216. package/lib/molecule/wizard-summary/test/fixtures.js +34 -0
  217. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
  218. package/lib/organism/brand-form/test/fixtures/wizard-playlists.js +31 -0
  219. package/lib/organism/brand-form/test/fixtures/wizard-playlists.js.map +1 -0
  220. package/lib/organism/brand-form/test/fixtures.js +3 -0
  221. package/lib/organism/brand-form/test/fixtures.js.map +1 -1
  222. package/lib/organism/playlist-translation/index.js +78 -0
  223. package/lib/organism/playlist-translation/index.js.map +1 -0
  224. package/lib/organism/playlist-translation/style.css +45 -0
  225. package/lib/organism/playlist-translation/test/fixtures/default.js +35 -0
  226. package/lib/organism/playlist-translation/test/fixtures/default.js.map +1 -0
  227. package/lib/organism/playlist-translation/test/fixtures/delete.js +29 -0
  228. package/lib/organism/playlist-translation/test/fixtures/delete.js.map +1 -0
  229. package/lib/organism/search-and-chips-results/index.js +105 -0
  230. package/lib/organism/search-and-chips-results/index.js.map +1 -0
  231. package/lib/organism/search-and-chips-results/style.css +57 -0
  232. package/lib/organism/search-and-chips-results/test/fixtures/default.js +51 -0
  233. package/lib/organism/search-and-chips-results/test/fixtures/default.js.map +1 -0
  234. package/lib/organism/search-and-chips-results/test/fixtures/empty.js +28 -0
  235. package/lib/organism/search-and-chips-results/test/fixtures/empty.js.map +1 -0
  236. package/lib/organism/search-and-chips-results/test/fixtures/filtered.js +31 -0
  237. package/lib/organism/search-and-chips-results/test/fixtures/filtered.js.map +1 -0
  238. package/lib/organism/search-and-chips-results/test/fixtures/sorted-selected.js +54 -0
  239. package/lib/organism/search-and-chips-results/test/fixtures/sorted-selected.js.map +1 -0
  240. package/lib/organism/search-and-chips-results/test/fixtures/unsorted-selected.js +54 -0
  241. package/lib/organism/search-and-chips-results/test/fixtures/unsorted-selected.js.map +1 -0
  242. package/lib/organism/search-and-chips-results/test/fixtures.js +34 -0
  243. package/lib/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  244. package/lib/template/app-player/popin-end/test/fixtures.js +0 -3
  245. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -1
  246. package/lib/template/teams-dashboard/index.js +3 -1
  247. package/lib/template/teams-dashboard/index.js.map +1 -1
  248. package/lib/variables/colors.css +2 -0
  249. package/package.json +3 -3
  250. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  251. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  252. package/es/molecule/search/test/fixtures.js +0 -15
  253. package/es/molecule/search/test/fixtures.js.map +0 -1
  254. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  255. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  256. package/lib/molecule/search/test/fixtures.js.map +0 -1
@@ -0,0 +1,54 @@
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
+
3
+ import React, { useCallback } from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import ButtonLink from '../../atom/button-link';
6
+ import ButtonMenu from '../../atom/button-menu';
7
+ import style from './style.css';
8
+
9
+ const BulletPointMenuButton = props => {
10
+ const {
11
+ disabled = false,
12
+ buttonAriaLabel,
13
+ menuAriaLabel,
14
+ onClick,
15
+ buttons
16
+ } = props;
17
+ const handleOnClick = useCallback(() => onClick(), [onClick]);
18
+ const menuProps = {
19
+ 'data-name': 'button-menu',
20
+ buttons
21
+ };
22
+ const menu = /*#__PURE__*/React.createElement("div", {
23
+ className: style.bulletPointMenu,
24
+ "data-name": "menu-wrapper",
25
+ "aria-label": menuAriaLabel
26
+ }, /*#__PURE__*/React.createElement(ButtonMenu, menuProps));
27
+ const bulletPointButtonProps = {
28
+ type: 'secondary',
29
+ 'aria-label': buttonAriaLabel,
30
+ 'data-name': 'bullet-point-button',
31
+ icon: {
32
+ position: 'center',
33
+ type: 'bullet-point'
34
+ },
35
+ onClick: handleOnClick,
36
+ disabled
37
+ };
38
+ return /*#__PURE__*/React.createElement("div", {
39
+ className: style.bulletPointWrapper,
40
+ "data-name": "bullet-point-wrapper"
41
+ }, /*#__PURE__*/React.createElement(ButtonLink, _extends({}, bulletPointButtonProps, {
42
+ className: style.bulletPointButton
43
+ })), menu);
44
+ };
45
+
46
+ BulletPointMenuButton.propTypes = process.env.NODE_ENV !== "production" ? {
47
+ disabled: PropTypes.bool,
48
+ buttonAriaLabel: PropTypes.string,
49
+ menuAriaLabel: PropTypes.string,
50
+ buttons: ButtonMenu.propTypes.buttons,
51
+ onClick: PropTypes.func
52
+ } : {};
53
+ export default BulletPointMenuButton;
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/bullet-point-menu-button/index.js"],"names":["React","useCallback","PropTypes","ButtonLink","ButtonMenu","style","BulletPointMenuButton","props","disabled","buttonAriaLabel","menuAriaLabel","onClick","buttons","handleOnClick","menuProps","menu","bulletPointMenu","bulletPointButtonProps","type","icon","position","bulletPointWrapper","bulletPointButton","propTypes","bool","string","func"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,qBAAqB,GAAGC,KAAK,IAAI;AACrC,QAAM;AAACC,IAAAA,QAAQ,GAAG,KAAZ;AAAmBC,IAAAA,eAAnB;AAAoCC,IAAAA,aAApC;AAAmDC,IAAAA,OAAnD;AAA4DC,IAAAA;AAA5D,MAAuEL,KAA7E;AACA,QAAMM,aAAa,GAAGZ,WAAW,CAAC,MAAMU,OAAO,EAAd,EAAkB,CAACA,OAAD,CAAlB,CAAjC;AAEA,QAAMG,SAAS,GAAG;AAChB,iBAAa,aADG;AAEhBF,IAAAA;AAFgB,GAAlB;AAKA,QAAMG,IAAI,gBACR;AAAK,IAAA,SAAS,EAAEV,KAAK,CAACW,eAAtB;AAAuC,iBAAU,cAAjD;AAAgE,kBAAYN;AAA5E,kBACE,oBAAC,UAAD,EAAgBI,SAAhB,CADF,CADF;AAKA,QAAMG,sBAAsB,GAAG;AAC7BC,IAAAA,IAAI,EAAE,WADuB;AAE7B,kBAAcT,eAFe;AAG7B,iBAAa,qBAHgB;AAI7BU,IAAAA,IAAI,EAAE;AACJC,MAAAA,QAAQ,EAAE,QADN;AAEJF,MAAAA,IAAI,EAAE;AAFF,KAJuB;AAQ7BP,IAAAA,OAAO,EAAEE,aARoB;AAS7BL,IAAAA;AAT6B,GAA/B;AAYA,sBACE;AAAK,IAAA,SAAS,EAAEH,KAAK,CAACgB,kBAAtB;AAA0C,iBAAU;AAApD,kBACE,oBAAC,UAAD,eAAgBJ,sBAAhB;AAAwC,IAAA,SAAS,EAAEZ,KAAK,CAACiB;AAAzD,KADF,EAEGP,IAFH,CADF;AAMD,CAhCD;;AAkCAT,qBAAqB,CAACiB,SAAtB,2CAAkC;AAChCf,EAAAA,QAAQ,EAAEN,SAAS,CAACsB,IADY;AAEhCf,EAAAA,eAAe,EAAEP,SAAS,CAACuB,MAFK;AAGhCf,EAAAA,aAAa,EAAER,SAAS,CAACuB,MAHO;AAIhCb,EAAAA,OAAO,EAAER,UAAU,CAACmB,SAAX,CAAqBX,OAJE;AAKhCD,EAAAA,OAAO,EAAET,SAAS,CAACwB;AALa,CAAlC;AAQA,eAAepB,qBAAf","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonMenu from '../../atom/button-menu';\nimport style from './style.css';\n\nconst BulletPointMenuButton = props => {\n const {disabled = false, buttonAriaLabel, menuAriaLabel, onClick, buttons} = props;\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const menuProps = {\n 'data-name': 'button-menu',\n buttons\n };\n\n const menu = (\n <div className={style.bulletPointMenu} data-name=\"menu-wrapper\" aria-label={menuAriaLabel}>\n <ButtonMenu {...menuProps} />\n </div>\n );\n const bulletPointButtonProps = {\n type: 'secondary',\n 'aria-label': buttonAriaLabel,\n 'data-name': 'bullet-point-button',\n icon: {\n position: 'center',\n type: 'bullet-point'\n },\n onClick: handleOnClick,\n disabled\n };\n\n return (\n <div className={style.bulletPointWrapper} data-name=\"bullet-point-wrapper\">\n <ButtonLink {...bulletPointButtonProps} className={style.bulletPointButton} />\n {menu}\n </div>\n );\n};\n\nBulletPointMenuButton.propTypes = {\n disabled: PropTypes.bool,\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: ButtonMenu.propTypes.buttons,\n onClick: PropTypes.func\n};\n\nexport default BulletPointMenuButton;\n"],"file":"index.js"}
@@ -0,0 +1,52 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value transparent from colors;
3
+ @value cm_grey_100 from colors;
4
+
5
+ .bulletPointWrapper {
6
+ display: flex;
7
+ flex-direction: column-reverse;
8
+ justify-content: flex-end;
9
+ width: 44px;
10
+ position: relative;
11
+ }
12
+
13
+ .bulletPointButton {
14
+ position: relative;
15
+ cursor: pointer;
16
+ }
17
+
18
+ .bulletPointMenu {
19
+ min-width: 80px;
20
+ /* positioning */
21
+ position: absolute;
22
+ align-self: flex-end;
23
+ bottom: 54px;
24
+ right: 0px;
25
+ /* elevation shadow */
26
+ box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
27
+ z-index: 1;
28
+ /* round corners */
29
+ border-radius: 7px;
30
+ overflow: hidden;
31
+ background-color: cm_grey_100;
32
+ }
33
+
34
+ /* Fade-in - Fade-out */
35
+ .bulletPointButton,button + .bulletPointMenu {
36
+ max-height: 0;
37
+ /* fade out combo */
38
+ visibility: hidden;
39
+ opacity:0;
40
+ transition:visibility 0.5s ease,opacity 0.5s ease;
41
+ }
42
+
43
+ .bulletPointButton,button:focus + .bulletPointMenu {
44
+ /* fade in combo */
45
+ max-height: max-content;
46
+ visibility:visible;
47
+ opacity:1;
48
+ }
49
+
50
+ /* Recover - unset pointer-events */
51
+ .bulletPointButton,button:focus { pointer-events: none; }
52
+ .bulletPointButton,button:not(:focus) { pointer-events: auto; }
@@ -0,0 +1,34 @@
1
+ import _identity from "lodash/fp/identity";
2
+ import browserEnv from 'browser-env';
3
+ import test from 'ava';
4
+ import React from 'react';
5
+ import { mount, configure } from 'enzyme';
6
+ import Adapter from 'enzyme-adapter-react-16';
7
+ import BulletPointMenuButton from '..';
8
+ import defaultFixture from './fixtures/default';
9
+ browserEnv();
10
+ configure({
11
+ adapter: new Adapter()
12
+ });
13
+ const translate = _identity;
14
+ test('should launch onClick, should find the button menu and have clickable buttons', t => {
15
+ const wrapper = mount( /*#__PURE__*/React.createElement(BulletPointMenuButton, defaultFixture.props), {
16
+ context: {
17
+ translate
18
+ }
19
+ });
20
+ const button = wrapper.find('[data-name="bullet-point-button"]');
21
+ t.true(button.exists());
22
+ button.first().simulate('click', {});
23
+ const menu = wrapper.find('[data-name="button-menu"]').children().first();
24
+ t.true(menu.exists());
25
+ t.is(menu.children().length, 2);
26
+ const publishButton = menu.find('[data-name="menu-publish-button"]');
27
+ t.true(publishButton.exists());
28
+ publishButton.first().simulate('click', {});
29
+ const deleteButton = menu.find('[data-name="menu-delete-button"]');
30
+ t.true(deleteButton.exists());
31
+ deleteButton.first().simulate('click', {});
32
+ t.pass();
33
+ });
34
+ //# sourceMappingURL=bullet-point-menu-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/bullet-point-menu-button/test/bullet-point-menu-button.js"],"names":["browserEnv","test","React","mount","configure","Adapter","BulletPointMenuButton","defaultFixture","adapter","translate","t","wrapper","props","context","button","find","true","exists","first","simulate","menu","children","is","length","publishButton","deleteButton","pass"],"mappings":";AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,KAAR,EAAeC,SAAf,QAA+B,QAA/B;AAEA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,qBAAP,MAAkC,IAAlC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAP,UAAU;AACVI,SAAS,CAAC;AAACI,EAAAA,OAAO,EAAE,IAAIH,OAAJ;AAAV,CAAD,CAAT;AACA,MAAMI,SAAS,YAAf;AAEAR,IAAI,CAAC,+EAAD,EAAkFS,CAAC,IAAI;AACzF,QAAMC,OAAO,GAAGR,KAAK,eAAC,oBAAC,qBAAD,EAA2BI,cAAc,CAACK,KAA1C,CAAD,EAAsD;AACzEC,IAAAA,OAAO,EAAE;AAACJ,MAAAA;AAAD;AADgE,GAAtD,CAArB;AAGA,QAAMK,MAAM,GAAGH,OAAO,CAACI,IAAR,CAAa,mCAAb,CAAf;AACAL,EAAAA,CAAC,CAACM,IAAF,CAAOF,MAAM,CAACG,MAAP,EAAP;AACAH,EAAAA,MAAM,CAACI,KAAP,GAAeC,QAAf,CAAwB,OAAxB,EAAiC,EAAjC;AACA,QAAMC,IAAI,GAAGT,OAAO,CAACI,IAAR,CAAa,2BAAb,EAA0CM,QAA1C,GAAqDH,KAArD,EAAb;AACAR,EAAAA,CAAC,CAACM,IAAF,CAAOI,IAAI,CAACH,MAAL,EAAP;AACAP,EAAAA,CAAC,CAACY,EAAF,CAAKF,IAAI,CAACC,QAAL,GAAgBE,MAArB,EAA6B,CAA7B;AACA,QAAMC,aAAa,GAAGJ,IAAI,CAACL,IAAL,CAAU,mCAAV,CAAtB;AACAL,EAAAA,CAAC,CAACM,IAAF,CAAOQ,aAAa,CAACP,MAAd,EAAP;AACAO,EAAAA,aAAa,CAACN,KAAd,GAAsBC,QAAtB,CAA+B,OAA/B,EAAwC,EAAxC;AACA,QAAMM,YAAY,GAAGL,IAAI,CAACL,IAAL,CAAU,kCAAV,CAArB;AACAL,EAAAA,CAAC,CAACM,IAAF,CAAOS,YAAY,CAACR,MAAb,EAAP;AACAQ,EAAAA,YAAY,CAACP,KAAb,GAAqBC,QAArB,CAA8B,OAA9B,EAAuC,EAAvC;AACAT,EAAAA,CAAC,CAACgB,IAAF;AACD,CAjBG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {mount, configure} from 'enzyme';\nimport {identity} from 'lodash/fp';\nimport Adapter from 'enzyme-adapter-react-16';\nimport BulletPointMenuButton from '..';\nimport defaultFixture from './fixtures/default';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\nconst translate = identity;\n\ntest('should launch onClick, should find the button menu and have clickable buttons', t => {\n const wrapper = mount(<BulletPointMenuButton {...defaultFixture.props} />, {\n context: {translate}\n });\n const button = wrapper.find('[data-name=\"bullet-point-button\"]');\n t.true(button.exists());\n button.first().simulate('click', {});\n const menu = wrapper.find('[data-name=\"button-menu\"]').children().first();\n t.true(menu.exists());\n t.is(menu.children().length, 2);\n const publishButton = menu.find('[data-name=\"menu-publish-button\"]');\n t.true(publishButton.exists());\n publishButton.first().simulate('click', {});\n const deleteButton = menu.find('[data-name=\"menu-delete-button\"]');\n t.true(deleteButton.exists());\n deleteButton.first().simulate('click', {});\n t.pass();\n});\n"],"file":"bullet-point-menu-button.js"}
@@ -0,0 +1,11 @@
1
+ import { actionButtonProps, deleteButtonProps } from '../../../../atom/button-menu/test/fixtures/default';
2
+ export default {
3
+ props: {
4
+ buttonAriaLabel: 'aria button',
5
+ menuAriaLabel: 'aria menu',
6
+ buttons: [actionButtonProps, deleteButtonProps],
7
+ onClick: () => console.log('click on bullet point button - test in a bigger component to see the menu'),
8
+ componentKey: 'bullet-key'
9
+ }
10
+ };
11
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/bullet-point-menu-button/test/fixtures/default.js"],"names":["actionButtonProps","deleteButtonProps","props","buttonAriaLabel","menuAriaLabel","buttons","onClick","console","log","componentKey"],"mappings":"AAAA,SACEA,iBADF,EAEEC,iBAFF,QAGO,oDAHP;AAKA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,eAAe,EAAE,aADZ;AAELC,IAAAA,aAAa,EAAE,WAFV;AAGLC,IAAAA,OAAO,EAAE,CAACL,iBAAD,EAAoBC,iBAApB,CAHJ;AAILK,IAAAA,OAAO,EAAE,MACPC,OAAO,CAACC,GAAR,CAAY,2EAAZ,CALG;AAMLC,IAAAA,YAAY,EAAE;AANT;AADM,CAAf","sourcesContent":["import {\n actionButtonProps,\n deleteButtonProps\n} from '../../../../atom/button-menu/test/fixtures/default';\n\nexport default {\n props: {\n buttonAriaLabel: 'aria button',\n menuAriaLabel: 'aria menu',\n buttons: [actionButtonProps, deleteButtonProps],\n onClick: () =>\n console.log('click on bullet point button - test in a bigger component to see the menu'),\n componentKey: 'bullet-key'\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,13 @@
1
+ import defaultsDeep from 'lodash/fp/defaultsDeep';
2
+ import { actionButtonProps, deleteButtonProps } from '../../../../atom/button-menu/test/fixtures/default';
3
+ import { disabledButtonProps } from '../../../../atom/button-menu/test/fixtures/multiple-buttons';
4
+ import Default from './default';
5
+ const {
6
+ props
7
+ } = Default;
8
+ export default {
9
+ props: defaultsDeep(props, {
10
+ buttons: [actionButtonProps, disabledButtonProps, deleteButtonProps]
11
+ })
12
+ };
13
+ //# sourceMappingURL=multiple-buttons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/bullet-point-menu-button/test/fixtures/multiple-buttons.js"],"names":["defaultsDeep","actionButtonProps","deleteButtonProps","disabledButtonProps","Default","props","buttons"],"mappings":"AAAA,OAAOA,YAAP,MAAyB,wBAAzB;AACA,SACEC,iBADF,EAEEC,iBAFF,QAGO,oDAHP;AAIA,SAAQC,mBAAR,QAAkC,6DAAlC;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAEL,YAAY,CAACK,KAAD,EAAQ;AACzBC,IAAAA,OAAO,EAAE,CAACL,iBAAD,EAAoBE,mBAApB,EAAyCD,iBAAzC;AADgB,GAAR;AADN,CAAf","sourcesContent":["import defaultsDeep from 'lodash/fp/defaultsDeep';\nimport {\n actionButtonProps,\n deleteButtonProps\n} from '../../../../atom/button-menu/test/fixtures/default';\nimport {disabledButtonProps} from '../../../../atom/button-menu/test/fixtures/multiple-buttons';\nimport Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: defaultsDeep(props, {\n buttons: [actionButtonProps, disabledButtonProps, deleteButtonProps]\n })\n};\n"],"file":"multiple-buttons.js"}
@@ -0,0 +1,15 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeBulletPointMenuButton from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureMultipleButtons from './fixtures/multiple-buttons';
7
+ test('Molecule › MoleculeBulletPointMenuButton > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(MoleculeBulletPointMenuButton.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "Molecule.MoleculeBulletPointMenuButton.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('Molecule › MoleculeBulletPointMenuButton › Default › should be rendered', renderComponentMacro, MoleculeBulletPointMenuButton, fixtureDefault);
14
+ test('Molecule › MoleculeBulletPointMenuButton › MultipleButtons › should be rendered', renderComponentMacro, MoleculeBulletPointMenuButton, fixtureMultipleButtons);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/bullet-point-menu-button/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBulletPointMenuButton","fixtureDefault","fixtureMultipleButtons","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,sBAAP,MAAmC,6BAAnC;AAEAL,IAAI,CAAC,wEAAD,EAA2EM,CAAC,IAAI;AAClFA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,6BAA6B,CAACK,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;AAOAV,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,6BAAlG,EAAiIC,cAAjI,CAAJ;AACAJ,IAAI,CAAC,iFAAD,EAAoFE,oBAApF,EAA0GC,6BAA1G,EAAyIE,sBAAzI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBulletPointMenuButton from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureMultipleButtons from './fixtures/multiple-buttons';\n\ntest('Molecule › MoleculeBulletPointMenuButton > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBulletPointMenuButton.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBulletPointMenuButton.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBulletPointMenuButton › Default › should be rendered', renderComponentMacro, MoleculeBulletPointMenuButton, fixtureDefault);\ntest('Molecule › MoleculeBulletPointMenuButton › MultipleButtons › should be rendered', renderComponentMacro, MoleculeBulletPointMenuButton, fixtureMultipleButtons);\n"],"file":"fixtures.js"}
@@ -15,6 +15,8 @@ import fixtureFreerunAndDisabled from './fixtures/freerun-and-disabled';
15
15
  import fixtureFreerun from './fixtures/freerun';
16
16
  import fixturePodcast from './fixtures/podcast';
17
17
  import fixtureScorm from './fixtures/scorm';
18
+ import fixtureSelectableFalse from './fixtures/selectable-false';
19
+ import fixtureSelectableTrue from './fixtures/selectable-true';
18
20
  import fixtureVideo from './fixtures/video';
19
21
  test('Molecule › MoleculeCard > should have valid propTypes', t => {
20
22
  t.pass();
@@ -35,5 +37,7 @@ test('Molecule › MoleculeCard › FreerunAndDisabled › should be rendered',
35
37
  test('Molecule › MoleculeCard › Freerun › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerun);
36
38
  test('Molecule › MoleculeCard › Podcast › should be rendered', renderComponentMacro, MoleculeCard, fixturePodcast);
37
39
  test('Molecule › MoleculeCard › Scorm › should be rendered', renderComponentMacro, MoleculeCard, fixtureScorm);
40
+ test('Molecule › MoleculeCard › SelectableFalse › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableFalse);
41
+ test('Molecule › MoleculeCard › SelectableTrue › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableTrue);
38
42
  test('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);
39
43
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCard","fixtureAdaptivAndDisabled","fixtureAdaptiv","fixtureArabic","fixtureArticle","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureExternalContent","fixtureFavorite","fixtureFreerunAndDisabled","fixtureFreerun","fixturePodcast","fixtureScorm","fixtureVideo","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,YAAP,MAAyB,IAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAjB,IAAI,CAAC,uDAAD,EAA0DkB,CAAC,IAAI;AACjEA,EAAAA,CAAC,CAACC,IAAF;AACAlB,EAAAA,OAAO,CAACE,YAAY,CAACiB,SAAd,EAAyB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC9CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,iDAAgDF,GAAI,mEAA7E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAtB,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,YAA5F,EAA0GC,yBAA1G,CAAJ;AACAJ,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FE,cAA/F,CAAJ;AACAL,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,YAAhF,EAA8FG,aAA9F,CAAJ;AACAN,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FI,cAA/F,CAAJ;AACAP,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FK,cAA/F,CAAJ;AACAR,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,YAAlF,EAAgGM,eAAhG,CAAJ;AACAT,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6FO,YAA7F,CAAJ;AACAV,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,YAAzF,EAAuGQ,sBAAvG,CAAJ;AACAX,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,YAAlF,EAAgGS,eAAhG,CAAJ;AACAZ,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,YAA5F,EAA0GU,yBAA1G,CAAJ;AACAb,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FW,cAA/F,CAAJ;AACAd,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FY,cAA/F,CAAJ;AACAf,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6Fa,YAA7F,CAAJ;AACAhB,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6Fc,YAA7F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCard from '..';\nimport fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';\nimport fixtureAdaptiv from './fixtures/adaptiv';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureArticle from './fixtures/article';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureExternalContent from './fixtures/external-content';\nimport fixtureFavorite from './fixtures/favorite';\nimport fixtureFreerunAndDisabled from './fixtures/freerun-and-disabled';\nimport fixtureFreerun from './fixtures/freerun';\nimport fixturePodcast from './fixtures/podcast';\nimport fixtureScorm from './fixtures/scorm';\nimport fixtureVideo from './fixtures/video';\n\ntest('Molecule › MoleculeCard > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCard › AdaptivAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptivAndDisabled);\ntest('Molecule › MoleculeCard › Adaptiv › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptiv);\ntest('Molecule › MoleculeCard › Arabic › should be rendered', renderComponentMacro, MoleculeCard, fixtureArabic);\ntest('Molecule › MoleculeCard › Article › should be rendered', renderComponentMacro, MoleculeCard, fixtureArticle);\ntest('Molecule › MoleculeCard › Default › should be rendered', renderComponentMacro, MoleculeCard, fixtureDefault);\ntest('Molecule › MoleculeCard › Disabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureDisabled);\ntest('Molecule › MoleculeCard › Empty › should be rendered', renderComponentMacro, MoleculeCard, fixtureEmpty);\ntest('Molecule › MoleculeCard › ExternalContent › should be rendered', renderComponentMacro, MoleculeCard, fixtureExternalContent);\ntest('Molecule › MoleculeCard › Favorite › should be rendered', renderComponentMacro, MoleculeCard, fixtureFavorite);\ntest('Molecule › MoleculeCard › FreerunAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerunAndDisabled);\ntest('Molecule › MoleculeCard › Freerun › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerun);\ntest('Molecule › MoleculeCard › Podcast › should be rendered', renderComponentMacro, MoleculeCard, fixturePodcast);\ntest('Molecule › MoleculeCard › Scorm › should be rendered', renderComponentMacro, MoleculeCard, fixtureScorm);\ntest('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCard","fixtureAdaptivAndDisabled","fixtureAdaptiv","fixtureArabic","fixtureArticle","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureExternalContent","fixtureFavorite","fixtureFreerunAndDisabled","fixtureFreerun","fixturePodcast","fixtureScorm","fixtureSelectableFalse","fixtureSelectableTrue","fixtureVideo","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,YAAP,MAAyB,IAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAnB,IAAI,CAAC,uDAAD,EAA0DoB,CAAC,IAAI;AACjEA,EAAAA,CAAC,CAACC,IAAF;AACApB,EAAAA,OAAO,CAACE,YAAY,CAACmB,SAAd,EAAyB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC9CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,iDAAgDF,GAAI,mEAA7E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAxB,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,YAA5F,EAA0GC,yBAA1G,CAAJ;AACAJ,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FE,cAA/F,CAAJ;AACAL,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,YAAhF,EAA8FG,aAA9F,CAAJ;AACAN,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FI,cAA/F,CAAJ;AACAP,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FK,cAA/F,CAAJ;AACAR,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,YAAlF,EAAgGM,eAAhG,CAAJ;AACAT,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6FO,YAA7F,CAAJ;AACAV,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,YAAzF,EAAuGQ,sBAAvG,CAAJ;AACAX,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,YAAlF,EAAgGS,eAAhG,CAAJ;AACAZ,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,YAA5F,EAA0GU,yBAA1G,CAAJ;AACAb,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FW,cAA/F,CAAJ;AACAd,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FY,cAA/F,CAAJ;AACAf,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6Fa,YAA7F,CAAJ;AACAhB,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,YAAzF,EAAuGc,sBAAvG,CAAJ;AACAjB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,YAAxF,EAAsGe,qBAAtG,CAAJ;AACAlB,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6FgB,YAA7F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCard from '..';\nimport fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';\nimport fixtureAdaptiv from './fixtures/adaptiv';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureArticle from './fixtures/article';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureExternalContent from './fixtures/external-content';\nimport fixtureFavorite from './fixtures/favorite';\nimport fixtureFreerunAndDisabled from './fixtures/freerun-and-disabled';\nimport fixtureFreerun from './fixtures/freerun';\nimport fixturePodcast from './fixtures/podcast';\nimport fixtureScorm from './fixtures/scorm';\nimport fixtureSelectableFalse from './fixtures/selectable-false';\nimport fixtureSelectableTrue from './fixtures/selectable-true';\nimport fixtureVideo from './fixtures/video';\n\ntest('Molecule › MoleculeCard > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCard › AdaptivAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptivAndDisabled);\ntest('Molecule › MoleculeCard › Adaptiv › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptiv);\ntest('Molecule › MoleculeCard › Arabic › should be rendered', renderComponentMacro, MoleculeCard, fixtureArabic);\ntest('Molecule › MoleculeCard › Article › should be rendered', renderComponentMacro, MoleculeCard, fixtureArticle);\ntest('Molecule › MoleculeCard › Default › should be rendered', renderComponentMacro, MoleculeCard, fixtureDefault);\ntest('Molecule › MoleculeCard › Disabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureDisabled);\ntest('Molecule › MoleculeCard › Empty › should be rendered', renderComponentMacro, MoleculeCard, fixtureEmpty);\ntest('Molecule › MoleculeCard › ExternalContent › should be rendered', renderComponentMacro, MoleculeCard, fixtureExternalContent);\ntest('Molecule › MoleculeCard › Favorite › should be rendered', renderComponentMacro, MoleculeCard, fixtureFavorite);\ntest('Molecule › MoleculeCard › FreerunAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerunAndDisabled);\ntest('Molecule › MoleculeCard › Freerun › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerun);\ntest('Molecule › MoleculeCard › Podcast › should be rendered', renderComponentMacro, MoleculeCard, fixturePodcast);\ntest('Molecule › MoleculeCard › Scorm › should be rendered', renderComponentMacro, MoleculeCard, fixtureScorm);\ntest('Molecule › MoleculeCard › SelectableFalse › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableFalse);\ntest('Molecule › MoleculeCard › SelectableTrue › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableTrue);\ntest('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);\n"],"file":"fixtures.js"}
@@ -48,7 +48,7 @@ const CMPopin = props => {
48
48
  label: firstButton.label,
49
49
  onClick: firstButton.handleOnclick,
50
50
  "data-name": `cm-popin-cta`,
51
- "aria-lable": firstButton.ariaLabel,
51
+ "aria-label": firstButton['aria-label'],
52
52
  type: firstButton.type
53
53
  })) : null, secondButton ? /*#__PURE__*/React.createElement("div", {
54
54
  className: style.button
@@ -56,7 +56,7 @@ const CMPopin = props => {
56
56
  label: secondButton.label,
57
57
  onClick: secondButton.handleOnclick,
58
58
  "data-name": `cm-popin-cta-${secondButton.type}`,
59
- "aria-lable": firstButton.ariaLabel,
59
+ "aria-label": firstButton['aria-label'],
60
60
  type: secondButton.type
61
61
  })) : null)), ")");
62
62
  };
@@ -66,14 +66,14 @@ CMPopin.propTypes = process.env.NODE_ENV !== "production" ? {
66
66
  firstButton: PropTypes.shape({
67
67
  label: PropTypes.string,
68
68
  handleOnclick: PropTypes.func,
69
- ariaLabel: PropTypes.string,
69
+ 'aria-label': PropTypes.string,
70
70
  type: PropTypes.string
71
71
  }),
72
72
  secondButton: PropTypes.shape({
73
73
  label: PropTypes.string,
74
74
  handleOnclick: PropTypes.func,
75
75
  type: PropTypes.oneOf(['dangerous', 'primary']),
76
- ariaLabel: PropTypes.string
76
+ 'aria-label': PropTypes.string
77
77
  }),
78
78
  onClose: PropTypes.func,
79
79
  icon: PropTypes.string
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/cm-popin/index.js"],"names":["React","PropTypes","NovaSolidInterfaceFeedbackInterfaceAlertDiamond","AlertDiamond","NovaSolidApplicationsWindowUpload3","WindowUpload","NovaSolidStatusClose","Close","Cta","style","CMPopin","props","content","firstButton","secondButton","onClose","icon","logo","LogoComponent","background","popin","popinHeader","headerCloseIconContainer","headerCloseIcon","contentSection","__html","buttonContainer","button","label","handleOnclick","ariaLabel","type","propTypes","string","shape","func","oneOf"],"mappings":"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","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaSolidStatusClose as Close\n} from '@coorpacademy/nova-icons';\nimport Cta from '../../atom/button-link';\nimport style from './style.css';\n\nconst CMPopin = props => {\n const {content, firstButton, secondButton, onClose, icon} = props;\n\n const logo = {\n AlertDiamond,\n WindowUpload\n };\n const LogoComponent = logo[icon];\n\n return (\n <div className={style.background}>\n <div className={style.popin}>\n <header className={style.popinHeader}>\n {onClose ? (\n <div\n className={style.headerCloseIconContainer}\n onClick={onClose}\n data-name={'close-icon'}\n >\n <Close className={style.headerCloseIcon} />\n </div>\n ) : null}\n </header>\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n <p\n className={style.content}\n data-name={`cm-popin-content`}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n </div>\n\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={`cm-popin-cta`}\n aria-lable={firstButton.ariaLabel}\n type={firstButton.type}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-lable={firstButton.ariaLabel}\n type={secondButton.type}\n />\n </div>\n ) : null}\n </div>\n </div>\n )\n </div>\n );\n};\n\nCMPopin.propTypes = {\n content: PropTypes.string,\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n ariaLabel: PropTypes.string,\n type: PropTypes.string\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary']),\n ariaLabel: PropTypes.string\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string\n};\n\nexport default CMPopin;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/cm-popin/index.js"],"names":["React","PropTypes","NovaSolidInterfaceFeedbackInterfaceAlertDiamond","AlertDiamond","NovaSolidApplicationsWindowUpload3","WindowUpload","NovaSolidStatusClose","Close","Cta","style","CMPopin","props","content","firstButton","secondButton","onClose","icon","logo","LogoComponent","background","popin","popinHeader","headerCloseIconContainer","headerCloseIcon","contentSection","__html","buttonContainer","button","label","handleOnclick","type","propTypes","string","shape","func","oneOf"],"mappings":"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","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaSolidStatusClose as Close\n} from '@coorpacademy/nova-icons';\nimport Cta from '../../atom/button-link';\nimport style from './style.css';\n\nconst CMPopin = props => {\n const {content, firstButton, secondButton, onClose, icon} = props;\n\n const logo = {\n AlertDiamond,\n WindowUpload\n };\n const LogoComponent = logo[icon];\n\n return (\n <div className={style.background}>\n <div className={style.popin}>\n <header className={style.popinHeader}>\n {onClose ? (\n <div\n className={style.headerCloseIconContainer}\n onClick={onClose}\n data-name={'close-icon'}\n >\n <Close className={style.headerCloseIcon} />\n </div>\n ) : null}\n </header>\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n <p\n className={style.content}\n data-name={`cm-popin-content`}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n </div>\n\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={`cm-popin-cta`}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={firstButton['aria-label']}\n type={secondButton.type}\n />\n </div>\n ) : null}\n </div>\n </div>\n )\n </div>\n );\n};\n\nCMPopin.propTypes = {\n content: PropTypes.string,\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n type: PropTypes.string\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary']),\n 'aria-label': PropTypes.string\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string\n};\n\nexport default CMPopin;\n"],"file":"index.js"}
@@ -5,13 +5,13 @@ export default {
5
5
  firstButton: {
6
6
  label: 'Cancel',
7
7
  type: 'secondary',
8
- 'aria-lable': 'Cancel this operation',
8
+ 'aria-label': 'Cancel this operation',
9
9
  handleOnClick: () => {}
10
10
  },
11
11
  secondButton: {
12
12
  label: 'Undo',
13
13
  type: 'dangerous',
14
- 'aria-lable': 'Undo this operation',
14
+ 'aria-label': 'Undo this operation',
15
15
  handleOnClick: () => {}
16
16
  }
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/dangerous.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,2DADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,QADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGX,oBAAc,uBAHH;AAIXC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJZ,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,IAAI,EAAE,WAFM;AAGZ,oBAAc,qBAHF;AAIZC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJX;AATT;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Are you sure to undo this changes? This will be permanent',\n icon: 'AlertDiamond',\n firstButton: {\n label: 'Cancel',\n type: 'secondary',\n 'aria-lable': 'Cancel this operation',\n handleOnClick: () => {}\n },\n secondButton: {\n label: 'Undo',\n type: 'dangerous',\n 'aria-lable': 'Undo this operation',\n handleOnClick: () => {}\n }\n }\n};\n"],"file":"dangerous.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/dangerous.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,2DADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,QADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGX,oBAAc,uBAHH;AAIXC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJZ,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,IAAI,EAAE,WAFM;AAGZ,oBAAc,qBAHF;AAIZC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJX;AATT;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Are you sure to undo this changes? This will be permanent',\n icon: 'AlertDiamond',\n firstButton: {\n label: 'Cancel',\n type: 'secondary',\n 'aria-label': 'Cancel this operation',\n handleOnClick: () => {}\n },\n secondButton: {\n label: 'Undo',\n type: 'dangerous',\n 'aria-label': 'Undo this operation',\n handleOnClick: () => {}\n }\n }\n};\n"],"file":"dangerous.js"}
@@ -6,13 +6,13 @@ export default {
6
6
  label: 'Cancel',
7
7
  type: 'secondary',
8
8
  handleOnClick: () => {},
9
- 'aria-lable': 'Cancel this operation'
9
+ 'aria-label': 'Cancel this operation'
10
10
  },
11
11
  secondButton: {
12
12
  label: 'Undo',
13
13
  type: 'primary',
14
14
  handleOnClick: () => {},
15
- 'aria-lable': 'Undo this operation'
15
+ 'aria-label': 'Undo this operation'
16
16
  }
17
17
  }
18
18
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/default.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,6CADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,QADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGXC,MAAAA,aAAa,EAAE,MAAM,CAAE,CAHZ;AAIX,oBAAc;AAJH,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,IAAI,EAAE,SAFM;AAGZC,MAAAA,aAAa,EAAE,MAAM,CAAE,CAHX;AAIZ,oBAAc;AAJF;AATT;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Do you want to publish the custom playlist?',\n icon: 'WindowUpload',\n firstButton: {\n label: 'Cancel',\n type: 'secondary',\n handleOnClick: () => {},\n 'aria-lable': 'Cancel this operation'\n },\n secondButton: {\n label: 'Undo',\n type: 'primary',\n handleOnClick: () => {},\n 'aria-lable': 'Undo this operation'\n }\n }\n};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/default.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,6CADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,QADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGXC,MAAAA,aAAa,EAAE,MAAM,CAAE,CAHZ;AAIX,oBAAc;AAJH,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,IAAI,EAAE,SAFM;AAGZC,MAAAA,aAAa,EAAE,MAAM,CAAE,CAHX;AAIZ,oBAAc;AAJF;AATT;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Do you want to publish the custom playlist?',\n icon: 'WindowUpload',\n firstButton: {\n label: 'Cancel',\n type: 'secondary',\n handleOnClick: () => {},\n 'aria-label': 'Cancel this operation'\n },\n secondButton: {\n label: 'Undo',\n type: 'primary',\n handleOnClick: () => {},\n 'aria-label': 'Undo this operation'\n }\n }\n};\n"],"file":"default.js"}
@@ -5,13 +5,13 @@ export default {
5
5
  firstButton: {
6
6
  label: 'Quit without saving',
7
7
  type: 'secondary',
8
- 'aria-lable': 'Quit this operation without saving',
8
+ 'aria-label': 'Quit this operation without saving',
9
9
  handleOnClick: () => {}
10
10
  },
11
11
  secondButton: {
12
12
  label: 'Save & Quit',
13
13
  type: 'primary',
14
- 'aria-lable': 'Save and quit',
14
+ 'aria-label': 'Save and quit',
15
15
  handleOnClick: () => {}
16
16
  },
17
17
  onClose: () => console.log('onClose')
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/warning-with-close.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton","onClose","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,6CADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,qBADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGX,oBAAc,oCAHH;AAIXC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJZ,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,aADK;AAEZC,MAAAA,IAAI,EAAE,SAFM;AAGZ,oBAAc,eAHF;AAIZC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJX,KATT;AAeLE,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,SAAZ;AAfV;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Do you want to save changes before quiting?',\n icon: 'AlertDiamond',\n firstButton: {\n label: 'Quit without saving',\n type: 'secondary',\n 'aria-lable': 'Quit this operation without saving',\n handleOnClick: () => {}\n },\n secondButton: {\n label: 'Save & Quit',\n type: 'primary',\n 'aria-lable': 'Save and quit',\n handleOnClick: () => {}\n },\n onClose: () => console.log('onClose')\n }\n};\n"],"file":"warning-with-close.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/warning-with-close.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton","onClose","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,6CADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,qBADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGX,oBAAc,oCAHH;AAIXC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJZ,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,aADK;AAEZC,MAAAA,IAAI,EAAE,SAFM;AAGZ,oBAAc,eAHF;AAIZC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJX,KATT;AAeLE,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,SAAZ;AAfV;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Do you want to save changes before quiting?',\n icon: 'AlertDiamond',\n firstButton: {\n label: 'Quit without saving',\n type: 'secondary',\n 'aria-label': 'Quit this operation without saving',\n handleOnClick: () => {}\n },\n secondButton: {\n label: 'Save & Quit',\n type: 'primary',\n 'aria-label': 'Save and quit',\n handleOnClick: () => {}\n },\n onClose: () => console.log('onClose')\n }\n};\n"],"file":"warning-with-close.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 MoleculeCmPopin from '..';
5
+ import fixtureDangerous from './fixtures/dangerous';
6
+ import fixtureDefault from './fixtures/default';
7
+ import fixtureWarningWithClose from './fixtures/warning-with-close';
8
+ test('Molecule › MoleculeCmPopin > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(MoleculeCmPopin.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCmPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Molecule › MoleculeCmPopin › Dangerous › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureDangerous);
15
+ test('Molecule › MoleculeCmPopin › Default › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureDefault);
16
+ test('Molecule › MoleculeCmPopin › WarningWithClose › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureWarningWithClose);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/cm-popin/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCmPopin","fixtureDangerous","fixtureDefault","fixtureWarningWithClose","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,eAAP,MAA4B,IAA5B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AAEAN,IAAI,CAAC,0DAAD,EAA6DO,CAAC,IAAI;AACpEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,eAAe,CAACM,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,oDAAmDF,GAAI,mEAAhF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,eAAtF,EAAuGC,gBAAvG,CAAJ;AACAJ,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,eAApF,EAAqGE,cAArG,CAAJ;AACAL,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,eAA7F,EAA8GG,uBAA9G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCmPopin from '..';\nimport fixtureDangerous from './fixtures/dangerous';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWarningWithClose from './fixtures/warning-with-close';\n\ntest('Molecule › MoleculeCmPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCmPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCmPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCmPopin › Dangerous › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureDangerous);\ntest('Molecule › MoleculeCmPopin › Default › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureDefault);\ntest('Molecule › MoleculeCmPopin › WarningWithClose › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureWarningWithClose);\n"],"file":"fixtures.js"}
@@ -9,7 +9,6 @@ import fixtureSuccessExitNode from './fixtures/success-exit-node';
9
9
  import fixtureSuccessWithTitleAndDescriptionAndAudio from './fixtures/success-with-title-and-description-and-audio';
10
10
  import fixtureSuccessWithTitleAndDescriptionAndImage from './fixtures/success-with-title-and-description-and-image';
11
11
  import fixtureSuccessWithTitleAndDescriptionAndPdf from './fixtures/success-with-title-and-description-and-pdf';
12
- import fixtureSuccessWithTitleAndDescriptionAndVideo from './fixtures/success-with-title-and-description-and-video';
13
12
  import fixtureSuccessWithTitleAndDescription from './fixtures/success-with-title-and-description';
14
13
  test('Molecule › MoleculeFeedback > should have valid propTypes', t => {
15
14
  t.pass();
@@ -24,6 +23,5 @@ test('Molecule › MoleculeFeedback › SuccessExitNode › should be rendered',
24
23
  test('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndAudio › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndAudio);
25
24
  test('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndImage › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndImage);
26
25
  test('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndPdf › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndPdf);
27
- test('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndVideo › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndVideo);
28
26
  test('Molecule › MoleculeFeedback › SuccessWithTitleAndDescription › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescription);
29
27
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/feedback/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeFeedback","fixtureDefault","fixtureFailExitNode","fixtureFailureWithTitleAndDescriptionAndVideo","fixtureSuccessExitNode","fixtureSuccessWithTitleAndDescriptionAndAudio","fixtureSuccessWithTitleAndDescriptionAndImage","fixtureSuccessWithTitleAndDescriptionAndPdf","fixtureSuccessWithTitleAndDescriptionAndVideo","fixtureSuccessWithTitleAndDescription","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,gBAAP,MAA6B,IAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,2BAAhC;AACA,OAAOC,6CAAP,MAA0D,yDAA1D;AACA,OAAOC,sBAAP,MAAmC,8BAAnC;AACA,OAAOC,6CAAP,MAA0D,yDAA1D;AACA,OAAOC,6CAAP,MAA0D,yDAA1D;AACA,OAAOC,2CAAP,MAAwD,uDAAxD;AACA,OAAOC,6CAAP,MAA0D,yDAA1D;AACA,OAAOC,qCAAP,MAAkD,+CAAlD;AAEAZ,IAAI,CAAC,2DAAD,EAA8Da,CAAC,IAAI;AACrEA,EAAAA,CAAC,CAACC,IAAF;AACAb,EAAAA,OAAO,CAACE,gBAAgB,CAACY,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAClDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,qDAAoDF,GAAI,mEAAjF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAjB,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,gBAArF,EAAuGC,cAAvG,CAAJ;AACAJ,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,gBAA1F,EAA4GE,mBAA5G,CAAJ;AACAL,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,gBAApH,EAAsIG,6CAAtI,CAAJ;AACAN,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,gBAA7F,EAA+GI,sBAA/G,CAAJ;AACAP,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,gBAApH,EAAsIK,6CAAtI,CAAJ;AACAR,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,gBAApH,EAAsIM,6CAAtI,CAAJ;AACAT,IAAI,CAAC,yFAAD,EAA4FE,oBAA5F,EAAkHC,gBAAlH,EAAoIO,2CAApI,CAAJ;AACAV,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,gBAApH,EAAsIQ,6CAAtI,CAAJ;AACAX,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,gBAA5G,EAA8HS,qCAA9H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeFeedback from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFailExitNode from './fixtures/fail-exit-node';\nimport fixtureFailureWithTitleAndDescriptionAndVideo from './fixtures/failure-with-title-and-description-and-video';\nimport fixtureSuccessExitNode from './fixtures/success-exit-node';\nimport fixtureSuccessWithTitleAndDescriptionAndAudio from './fixtures/success-with-title-and-description-and-audio';\nimport fixtureSuccessWithTitleAndDescriptionAndImage from './fixtures/success-with-title-and-description-and-image';\nimport fixtureSuccessWithTitleAndDescriptionAndPdf from './fixtures/success-with-title-and-description-and-pdf';\nimport fixtureSuccessWithTitleAndDescriptionAndVideo from './fixtures/success-with-title-and-description-and-video';\nimport fixtureSuccessWithTitleAndDescription from './fixtures/success-with-title-and-description';\n\ntest('Molecule › MoleculeFeedback > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeFeedback.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeFeedback.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeFeedback › Default › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureDefault);\ntest('Molecule › MoleculeFeedback › FailExitNode › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureFailExitNode);\ntest('Molecule › MoleculeFeedback › FailureWithTitleAndDescriptionAndVideo › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureFailureWithTitleAndDescriptionAndVideo);\ntest('Molecule › MoleculeFeedback › SuccessExitNode › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessExitNode);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndAudio › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndAudio);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndImage › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndImage);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndPdf › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndPdf);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndVideo › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndVideo);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescription › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescription);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/feedback/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeFeedback","fixtureDefault","fixtureFailExitNode","fixtureFailureWithTitleAndDescriptionAndVideo","fixtureSuccessExitNode","fixtureSuccessWithTitleAndDescriptionAndAudio","fixtureSuccessWithTitleAndDescriptionAndImage","fixtureSuccessWithTitleAndDescriptionAndPdf","fixtureSuccessWithTitleAndDescription","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,gBAAP,MAA6B,IAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,2BAAhC;AACA,OAAOC,6CAAP,MAA0D,yDAA1D;AACA,OAAOC,sBAAP,MAAmC,8BAAnC;AACA,OAAOC,6CAAP,MAA0D,yDAA1D;AACA,OAAOC,6CAAP,MAA0D,yDAA1D;AACA,OAAOC,2CAAP,MAAwD,uDAAxD;AACA,OAAOC,qCAAP,MAAkD,+CAAlD;AAEAX,IAAI,CAAC,2DAAD,EAA8DY,CAAC,IAAI;AACrEA,EAAAA,CAAC,CAACC,IAAF;AACAZ,EAAAA,OAAO,CAACE,gBAAgB,CAACW,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAClDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,qDAAoDF,GAAI,mEAAjF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAhB,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,gBAArF,EAAuGC,cAAvG,CAAJ;AACAJ,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,gBAA1F,EAA4GE,mBAA5G,CAAJ;AACAL,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,gBAApH,EAAsIG,6CAAtI,CAAJ;AACAN,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,gBAA7F,EAA+GI,sBAA/G,CAAJ;AACAP,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,gBAApH,EAAsIK,6CAAtI,CAAJ;AACAR,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,gBAApH,EAAsIM,6CAAtI,CAAJ;AACAT,IAAI,CAAC,yFAAD,EAA4FE,oBAA5F,EAAkHC,gBAAlH,EAAoIO,2CAApI,CAAJ;AACAV,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,gBAA5G,EAA8HQ,qCAA9H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeFeedback from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFailExitNode from './fixtures/fail-exit-node';\nimport fixtureFailureWithTitleAndDescriptionAndVideo from './fixtures/failure-with-title-and-description-and-video';\nimport fixtureSuccessExitNode from './fixtures/success-exit-node';\nimport fixtureSuccessWithTitleAndDescriptionAndAudio from './fixtures/success-with-title-and-description-and-audio';\nimport fixtureSuccessWithTitleAndDescriptionAndImage from './fixtures/success-with-title-and-description-and-image';\nimport fixtureSuccessWithTitleAndDescriptionAndPdf from './fixtures/success-with-title-and-description-and-pdf';\nimport fixtureSuccessWithTitleAndDescription from './fixtures/success-with-title-and-description';\n\ntest('Molecule › MoleculeFeedback > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeFeedback.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeFeedback.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeFeedback › Default › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureDefault);\ntest('Molecule › MoleculeFeedback › FailExitNode › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureFailExitNode);\ntest('Molecule › MoleculeFeedback › FailureWithTitleAndDescriptionAndVideo › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureFailureWithTitleAndDescriptionAndVideo);\ntest('Molecule › MoleculeFeedback › SuccessExitNode › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessExitNode);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndAudio › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndAudio);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndImage › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndImage);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescriptionAndPdf › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescriptionAndPdf);\ntest('Molecule › MoleculeFeedback › SuccessWithTitleAndDescription › should be rendered', renderComponentMacro, MoleculeFeedback, fixtureSuccessWithTitleAndDescription);\n"],"file":"fixtures.js"}