@coorpacademy/components 10.2.0 → 10.3.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 (155) hide show
  1. package/es/atom/wizard-steps/index.js +1 -1
  2. package/es/atom/wizard-steps/index.js.map +1 -1
  3. package/es/atom/wizard-steps/style.css +1 -6
  4. package/es/molecule/brand-form-group/style.css +1 -2
  5. package/es/molecule/select-multiple/index.js +2 -2
  6. package/es/molecule/select-multiple/index.js.map +1 -1
  7. package/es/molecule/select-multiple/style.css +33 -16
  8. package/es/molecule/wizard-summary/index.js +4 -1
  9. package/es/molecule/wizard-summary/index.js.map +1 -1
  10. package/es/molecule/wizard-summary/style.css +18 -8
  11. package/es/molecule/wizard-summary/test/fixtures/three-sections.js +2 -2
  12. package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
  13. package/es/organism/brand-form/index.js +39 -29
  14. package/es/organism/brand-form/index.js.map +1 -1
  15. package/es/organism/brand-form/style.css +8 -3
  16. package/es/organism/{playlist-translation → content-translation}/index.js +0 -0
  17. package/es/organism/content-translation/index.js.map +1 -0
  18. package/es/organism/{playlist-translation → content-translation}/style.css +0 -0
  19. package/es/organism/{playlist-translation → content-translation}/test/fixtures/default.js +0 -0
  20. package/es/organism/content-translation/test/fixtures/default.js.map +1 -0
  21. package/es/organism/{playlist-translation → content-translation}/test/fixtures/delete.js +0 -0
  22. package/es/organism/content-translation/test/fixtures/delete.js.map +1 -0
  23. package/es/organism/content-translation/test/fixtures.js +15 -0
  24. package/es/organism/content-translation/test/fixtures.js.map +1 -0
  25. package/es/organism/list-items/index.js.map +1 -1
  26. package/es/organism/list-items/test/fixtures.js +17 -0
  27. package/es/organism/list-items/test/fixtures.js.map +1 -0
  28. package/es/organism/setup-header/index.js +6 -6
  29. package/es/organism/setup-header/index.js.map +1 -1
  30. package/es/organism/wizard-contents/index.js +146 -0
  31. package/es/organism/wizard-contents/index.js.map +1 -0
  32. package/es/organism/wizard-contents/style.css +118 -0
  33. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +40 -0
  34. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -0
  35. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +36 -0
  36. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -0
  37. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +36 -0
  38. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -0
  39. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +40 -0
  40. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -0
  41. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +40 -0
  42. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -0
  43. package/es/organism/wizard-contents/test/fixtures.js +21 -0
  44. package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
  45. package/es/template/back-office/brand-update/index.js +15 -1
  46. package/es/template/back-office/brand-update/index.js.map +1 -1
  47. package/es/template/back-office/brand-update/style.css +3 -15
  48. package/es/template/back-office/brand-update/test/fixtures/default.js +1 -1
  49. package/es/template/back-office/brand-update/test/fixtures/default.js.map +1 -1
  50. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js +68 -0
  51. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -0
  52. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js +68 -0
  53. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -0
  54. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js +68 -0
  55. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -0
  56. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +21 -0
  57. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -0
  58. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +21 -0
  59. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -0
  60. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +22 -0
  61. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -0
  62. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +21 -0
  63. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -0
  64. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +21 -0
  65. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -0
  66. package/es/template/back-office/brand-update/test/fixtures.js +16 -0
  67. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  68. package/es/template/back-office/layout/index.js +3 -1
  69. package/es/template/back-office/layout/index.js.map +1 -1
  70. package/es/template/back-office/layout/style.css +4 -0
  71. package/lib/atom/wizard-steps/index.js +1 -1
  72. package/lib/atom/wizard-steps/index.js.map +1 -1
  73. package/lib/atom/wizard-steps/style.css +1 -6
  74. package/lib/molecule/brand-form-group/style.css +1 -2
  75. package/lib/molecule/select-multiple/index.js +2 -2
  76. package/lib/molecule/select-multiple/index.js.map +1 -1
  77. package/lib/molecule/select-multiple/style.css +33 -16
  78. package/lib/molecule/wizard-summary/index.js +5 -3
  79. package/lib/molecule/wizard-summary/index.js.map +1 -1
  80. package/lib/molecule/wizard-summary/style.css +18 -8
  81. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +2 -2
  82. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
  83. package/lib/organism/brand-form/index.js +39 -29
  84. package/lib/organism/brand-form/index.js.map +1 -1
  85. package/lib/organism/brand-form/style.css +8 -3
  86. package/lib/organism/{playlist-translation → content-translation}/index.js +0 -0
  87. package/lib/organism/content-translation/index.js.map +1 -0
  88. package/lib/organism/{playlist-translation → content-translation}/style.css +0 -0
  89. package/lib/organism/{playlist-translation → content-translation}/test/fixtures/default.js +0 -0
  90. package/lib/organism/content-translation/test/fixtures/default.js.map +1 -0
  91. package/lib/organism/{playlist-translation → content-translation}/test/fixtures/delete.js +0 -0
  92. package/lib/organism/content-translation/test/fixtures/delete.js.map +1 -0
  93. package/lib/organism/content-translation/test/fixtures.js +25 -0
  94. package/lib/organism/content-translation/test/fixtures.js.map +1 -0
  95. package/lib/organism/list-items/index.js.map +1 -1
  96. package/lib/organism/list-items/test/fixtures.js +28 -0
  97. package/lib/organism/list-items/test/fixtures.js.map +1 -0
  98. package/lib/organism/setup-header/index.js +6 -6
  99. package/lib/organism/setup-header/index.js.map +1 -1
  100. package/lib/organism/wizard-contents/index.js +164 -0
  101. package/lib/organism/wizard-contents/index.js.map +1 -0
  102. package/lib/organism/wizard-contents/style.css +118 -0
  103. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +49 -0
  104. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -0
  105. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +45 -0
  106. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -0
  107. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +45 -0
  108. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -0
  109. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +49 -0
  110. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -0
  111. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +49 -0
  112. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -0
  113. package/lib/organism/wizard-contents/test/fixtures.js +34 -0
  114. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
  115. package/lib/template/back-office/brand-update/index.js +17 -1
  116. package/lib/template/back-office/brand-update/index.js.map +1 -1
  117. package/lib/template/back-office/brand-update/style.css +3 -15
  118. package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
  119. package/lib/template/back-office/brand-update/test/fixtures/default.js.map +1 -1
  120. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js +77 -0
  121. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -0
  122. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js +77 -0
  123. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -0
  124. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js +77 -0
  125. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -0
  126. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +31 -0
  127. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -0
  128. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +31 -0
  129. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -0
  130. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +33 -0
  131. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -0
  132. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +31 -0
  133. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -0
  134. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +31 -0
  135. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -0
  136. package/lib/template/back-office/brand-update/test/fixtures.js +24 -0
  137. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  138. package/lib/template/back-office/layout/index.js +3 -1
  139. package/lib/template/back-office/layout/index.js.map +1 -1
  140. package/lib/template/back-office/layout/style.css +4 -0
  141. package/package.json +2 -2
  142. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  143. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  144. package/es/molecule/search/test/fixtures.js +0 -15
  145. package/es/molecule/search/test/fixtures.js.map +0 -1
  146. package/es/organism/playlist-translation/index.js.map +0 -1
  147. package/es/organism/playlist-translation/test/fixtures/default.js.map +0 -1
  148. package/es/organism/playlist-translation/test/fixtures/delete.js.map +0 -1
  149. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  150. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  151. package/lib/molecule/search/test/fixtures.js +0 -25
  152. package/lib/molecule/search/test/fixtures.js.map +0 -1
  153. package/lib/organism/playlist-translation/index.js.map +0 -1
  154. package/lib/organism/playlist-translation/test/fixtures/default.js.map +0 -1
  155. package/lib/organism/playlist-translation/test/fixtures/delete.js.map +0 -1
@@ -0,0 +1,68 @@
1
+ import _cloneDeep from "lodash/fp/cloneDeep";
2
+ import _defaultsDeep from "lodash/fp/defaultsDeep";
3
+
4
+ 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); }
5
+
6
+ import listItems from '../../../../../organism/list-items/test/fixtures/published';
7
+ import Default from './default';
8
+
9
+ const props = _cloneDeep(Default.props);
10
+
11
+ const listItemsProps = listItems.props;
12
+ props.items[0].selected = false;
13
+ props.items[2].selected = true;
14
+ props.items[2].tabs = [{
15
+ title: 'Look & feel',
16
+ href: '/brands/7steps/admin/look-and-feel',
17
+ name: 'brand_tab_admin_look_and_feel',
18
+ selected: false,
19
+ type: 'simpleTab'
20
+ }, {
21
+ title: 'Content',
22
+ href: '/brands/7steps/admin/content',
23
+ name: 'brand_tab_admin_user',
24
+ selected: false,
25
+ type: 'simpleTab'
26
+ }, {
27
+ title: 'Dashboard',
28
+ href: '/brands/7steps/admin/user/dashboard',
29
+ name: 'brand_tab_admin_user',
30
+ selected: false,
31
+ type: 'simpleTab'
32
+ }, {
33
+ title: 'Custom Playlists',
34
+ href: '/brands/7steps/admin/custom-playlist/published',
35
+ name: 'brand_tab_admin_custom_playlist',
36
+ selected: true,
37
+ type: 'simpleTab',
38
+ subTabs: [{
39
+ title: 'Published',
40
+ href: '/brands/7steps/admin/custom-playlist/published',
41
+ name: 'published',
42
+ permissions: ['published'],
43
+ selected: true,
44
+ type: 'simpleTab'
45
+ }, {
46
+ title: 'Drafts',
47
+ href: '/brands/7steps/admin/custom-playlist/drafts',
48
+ name: 'drafts',
49
+ permissions: ['drafts'],
50
+ selected: false,
51
+ type: 'simpleTab'
52
+ }, {
53
+ title: 'Archived',
54
+ href: '/brands/7steps/admin/custom-playlist/archived',
55
+ name: 'archived',
56
+ permissions: ['archived'],
57
+ selected: false,
58
+ type: 'simpleTab'
59
+ }]
60
+ }];
61
+ export default {
62
+ props: _defaultsDeep(props, {
63
+ content: _extends(_extends({}, listItemsProps), {}, {
64
+ type: 'list-content'
65
+ })
66
+ })
67
+ };
68
+ //# sourceMappingURL=list-items-published.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/list-items-published.js"],"names":["listItems","Default","props","listItemsProps","items","selected","tabs","title","href","name","type","subTabs","permissions","content"],"mappings":";;;;;AACA,OAAOA,SAAP,MAAsB,4DAAtB;AACA,OAAOC,OAAP,MAAoB,WAApB;;AAEA,MAAMC,KAAK,GAAG,WAAUD,OAAO,CAACC,KAAlB,CAAd;;AACA,MAAMC,cAAc,GAAGH,SAAS,CAACE,KAAjC;AAEAA,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,KAA1B;AACAH,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,IAA1B;AACAH,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeE,IAAf,GAAsB,CACpB;AACEC,EAAAA,KAAK,EAAE,aADT;AAEEC,EAAAA,IAAI,EAAE,oCAFR;AAGEC,EAAAA,IAAI,EAAE,+BAHR;AAIEJ,EAAAA,QAAQ,EAAE,KAJZ;AAKEK,EAAAA,IAAI,EA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BoB,CAAtB;AAyDA,eAAe;AACbR,EAAAA,KAAK,EAAE,cAAaA,KAAb,EAAoB;AACzBW,IAAAA,OAAO,wBACFV,cADE;AAELO,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,CAAf","sourcesContent":["import {defaultsDeep, cloneDeep} from 'lodash/fp';\nimport listItems from '../../../../../organism/list-items/test/fixtures/published';\nimport Default from './default';\n\nconst props = cloneDeep(Default.props);\nconst listItemsProps = listItems.props;\n\nprops.items[0].selected = false;\nprops.items[2].selected = true;\nprops.items[2].tabs = [\n {\n title: 'Look & feel',\n href: '/brands/7steps/admin/look-and-feel',\n name: 'brand_tab_admin_look_and_feel',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Content',\n href: '/brands/7steps/admin/content',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Dashboard',\n href: '/brands/7steps/admin/user/dashboard',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Custom Playlists',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'brand_tab_admin_custom_playlist',\n selected: true,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'Published',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'published',\n permissions: ['published'],\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Drafts',\n href: '/brands/7steps/admin/custom-playlist/drafts',\n name: 'drafts',\n permissions: ['drafts'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Archived',\n href: '/brands/7steps/admin/custom-playlist/archived',\n name: 'archived',\n permissions: ['archived'],\n selected: false,\n type: 'simpleTab'\n }\n ]\n }\n];\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...listItemsProps,\n type: 'list-content'\n }\n })\n};\n"],"file":"list-items-published.js"}
@@ -0,0 +1,21 @@
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 WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-add-courses-create';
4
+ import headerAndMenu from './default';
5
+ const {
6
+ header,
7
+ items
8
+ } = headerAndMenu.props;
9
+ const form = WizardForm.props;
10
+ export default {
11
+ props: {
12
+ header,
13
+ items,
14
+ notifications: [],
15
+ content: _extends(_extends({}, form), {}, {
16
+ key: 'add-courses',
17
+ type: 'wizard'
18
+ })
19
+ }
20
+ };
21
+ //# sourceMappingURL=wizard-add-courses-playlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,mFAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,aAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-add-courses-create';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [],\n content: {\n ...form,\n key: 'add-courses',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-add-courses-playlist.js"}
@@ -0,0 +1,21 @@
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 WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-general-settings-create';
4
+ import headerAndMenu from './default';
5
+ const {
6
+ header,
7
+ items
8
+ } = headerAndMenu.props;
9
+ const form = WizardForm.props;
10
+ export default {
11
+ props: {
12
+ notifications: [],
13
+ header,
14
+ items,
15
+ content: _extends(_extends({}, form), {}, {
16
+ key: 'general-settings',
17
+ type: 'wizard'
18
+ })
19
+ }
20
+ };
21
+ //# sourceMappingURL=wizard-form-create-playlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,wFAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLE,IAAAA,aAAa,EAAE,EADV;AAELJ,IAAAA,MAFK;AAGLC,IAAAA,KAHK;AAILI,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,kBAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-general-settings-create';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n notifications: [],\n header,\n items,\n content: {\n ...form,\n key: 'general-settings',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-form-create-playlist.js"}
@@ -0,0 +1,22 @@
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 warningNotifiation from '../../../../../molecule/banner/test/fixtures/default';
4
+ import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-general-settings-edit';
5
+ import headerAndMenu from './default';
6
+ const {
7
+ header,
8
+ items
9
+ } = headerAndMenu.props;
10
+ const form = WizardForm.props;
11
+ export default {
12
+ props: {
13
+ header,
14
+ items,
15
+ notifications: [warningNotifiation.props],
16
+ content: _extends(_extends({}, form), {}, {
17
+ key: 'general-settings',
18
+ type: 'wizard'
19
+ })
20
+ }
21
+ };
22
+ //# sourceMappingURL=wizard-form-edit-playlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js"],"names":["warningNotifiation","WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,kBAAP,MAA+B,sDAA/B;AACA,OAAOC,UAAP,MAAuB,sFAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,CAACP,kBAAkB,CAACK,KAApB,CAHV;AAILG,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,kBAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import warningNotifiation from '../../../../../molecule/banner/test/fixtures/default';\nimport WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-general-settings-edit';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [warningNotifiation.props],\n content: {\n ...form,\n key: 'general-settings',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-form-edit-playlist.js"}
@@ -0,0 +1,21 @@
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 WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-populations-create';
4
+ import headerAndMenu from './default';
5
+ const {
6
+ header,
7
+ items
8
+ } = headerAndMenu.props;
9
+ const form = WizardForm.props;
10
+ export default {
11
+ props: {
12
+ header,
13
+ items,
14
+ notifications: [],
15
+ content: _extends(_extends({}, form), {}, {
16
+ key: 'populations',
17
+ type: 'wizard'
18
+ })
19
+ }
20
+ };
21
+ //# sourceMappingURL=wizard-populations-playlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,mFAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,aAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-populations-create';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [],\n content: {\n ...form,\n key: 'populations',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-populations-playlist.js"}
@@ -0,0 +1,21 @@
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 WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-translate-edit';
4
+ import headerAndMenu from './default';
5
+ const {
6
+ header,
7
+ items
8
+ } = headerAndMenu.props;
9
+ const form = WizardForm.props;
10
+ export default {
11
+ props: {
12
+ header,
13
+ items,
14
+ notifications: [],
15
+ content: _extends(_extends({}, form), {}, {
16
+ key: 'translate',
17
+ type: 'wizard'
18
+ })
19
+ }
20
+ };
21
+ //# sourceMappingURL=wizard-translate-playlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,+EAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,WAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-translate-edit';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [],\n content: {\n ...form,\n key: 'translate',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-translate-playlist.js"}
@@ -11,6 +11,9 @@ import fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';
11
11
  import fixtureDefault from './fixtures/default';
12
12
  import fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';
13
13
  import fixtureGeneralSettings from './fixtures/general-settings';
14
+ import fixtureListItemsArchived from './fixtures/list-items-archived';
15
+ import fixtureListItemsDraft from './fixtures/list-items-draft';
16
+ import fixtureListItemsPublished from './fixtures/list-items-published';
14
17
  import fixtureLmsError from './fixtures/lms-error';
15
18
  import fixtureLmsModified from './fixtures/lms-modified';
16
19
  import fixtureLmsSuccess from './fixtures/lms-success';
@@ -29,6 +32,11 @@ import fixtureSso from './fixtures/sso';
29
32
  import fixtureUploadusersLoading from './fixtures/uploadusers-loading';
30
33
  import fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';
31
34
  import fixtureUploadusers from './fixtures/uploadusers';
35
+ import fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';
36
+ import fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';
37
+ import fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';
38
+ import fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';
39
+ import fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';
32
40
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {
33
41
  t.pass();
34
42
  forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {
@@ -44,6 +52,9 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalyti
44
52
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);
45
53
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);
46
54
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);
55
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);
56
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);
57
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);
47
58
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);
48
59
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);
49
60
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);
@@ -62,4 +73,9 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be
62
73
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);
63
74
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);
64
75
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);
76
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);
77
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);
78
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);
79
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);
80
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);
65
81
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAA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EAA0Ic,aAA1I,CAAJ;AACAjB,IAAI,CAAC,4FAAD,EAA+FE,oBAA/F,EAAqHC,6BAArH,EAAoJe,uBAApJ,CAAJ;AACAlB,IAAI,CAAC,+FAAD,EAAkGE,oBAAlG,EAAwHC,6BAAxH,EAAuJgB,0BAAvJ,CAAJ;AACAnB,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJiB,yBAAtJ,CAAJ;AACApB,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJkB,yBAAtJ,CAAJ;AACArB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+ImB,kBAA/I,CAAJ;AACAtB,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,6BAApH,EAAmJoB,sBAAnJ,CAAJ;AACAvB,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,6BAApH,EAAmJqB,sBAAnJ,CAAJ;AACAxB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IsB,kBAA/I,CAAJ;AACAzB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IuB,kBAA/I,CAAJ;AACA1B,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,6BAAxG,EAAuIwB,UAAvI,CAAJ;AACA3B,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJyB,yBAAtJ,CAAJ;AACA5B,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,6BAA1H,EAAyJ0B,4BAAzJ,CAAJ;AACA7B,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I2B,kBAA/I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist","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,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AACA,OAAOC,sBAAP,MAAmC,6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F,EAAgHC,6BAAhH,EAA+I8B,kBAA/I,CAAJ;AACAjC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4J+B,+BAA5J,CAAJ;AACAlC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4JgC,+BAA5J,CAAJ;AACAnC,IAAI,CAAC,kGAAD,EAAqGE,oBAArG,EAA2HC,6BAA3H,EAA0JiC,6BAA1J,CAAJ;AACApC,IAAI,CAAC,qGAAD,EAAwGE,oBAAxG,EAA8HC,6BAA9H,EAA6JkC,gCAA7J,CAAJ;AACArC,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,6BAA5H,EAA2JmC,8BAA3J,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
@@ -8,7 +8,9 @@ const createLayout = Template => {
8
8
  const {
9
9
  header
10
10
  } = props;
11
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Header, header), /*#__PURE__*/React.createElement("div", {
11
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
12
+ className: style.header
13
+ }, /*#__PURE__*/React.createElement(Header, header)), /*#__PURE__*/React.createElement("div", {
12
14
  className: style.contentWrapper
13
15
  }, /*#__PURE__*/React.createElement(Template, props)));
14
16
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/template/back-office/layout/index.js"],"names":["React","PropTypes","Header","style","createLayout","Template","Layout","props","header","contentWrapper","propTypes","shape"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,MAAP,MAAmB,gCAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,YAAY,GAAGC,QAAQ,IAAI;AAC/B,QAAMC,MAAM,GAAGC,KAAK,IAAI;AACtB,UAAM;AAACC,MAAAA;AAAD,QAAWD,KAAjB;AACA,wBACE,8CACE,oBAAC,MAAD,EAAYC,MAAZ,CADF,eAEE;AAAK,MAAA,SAAS,EAAEL,KAAK,CAACM;AAAtB,oBACE,oBAAC,QAAD,EAAcF,KAAd,CADF,CAFF,CADF;AAQD,GAVD;;AAYAD,EAAAA,MAAM,CAACI,SAAP,2CAAmB;AACjBF,IAAAA,MAAM,EAAEP,SAAS,CAACU,KAAV,CAAgBT,MAAM,CAACQ,SAAvB;AADS,GAAnB;AAIA,SAAOJ,MAAP;AACD,CAlBD;;AAoBA,eAAeF,YAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Header from '../../../organism/setup-header';\nimport style from './style.css';\n\nconst createLayout = Template => {\n const Layout = props => {\n const {header} = props;\n return (\n <div>\n <Header {...header} />\n <div className={style.contentWrapper}>\n <Template {...props} />\n </div>\n </div>\n );\n };\n\n Layout.propTypes = {\n header: PropTypes.shape(Header.propTypes)\n };\n\n return Layout;\n};\n\nexport default createLayout;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/template/back-office/layout/index.js"],"names":["React","PropTypes","Header","style","createLayout","Template","Layout","props","header","contentWrapper","propTypes","shape"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,MAAP,MAAmB,gCAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,YAAY,GAAGC,QAAQ,IAAI;AAC/B,QAAMC,MAAM,GAAGC,KAAK,IAAI;AACtB,UAAM;AAACC,MAAAA;AAAD,QAAWD,KAAjB;AACA,wBACE,8CACE;AAAK,MAAA,SAAS,EAAEJ,KAAK,CAACK;AAAtB,oBACE,oBAAC,MAAD,EAAYA,MAAZ,CADF,CADF,eAIE;AAAK,MAAA,SAAS,EAAEL,KAAK,CAACM;AAAtB,oBACE,oBAAC,QAAD,EAAcF,KAAd,CADF,CAJF,CADF;AAUD,GAZD;;AAcAD,EAAAA,MAAM,CAACI,SAAP,2CAAmB;AACjBF,IAAAA,MAAM,EAAEP,SAAS,CAACU,KAAV,CAAgBT,MAAM,CAACQ,SAAvB;AADS,GAAnB;AAIA,SAAOJ,MAAP;AACD,CApBD;;AAsBA,eAAeF,YAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Header from '../../../organism/setup-header';\nimport style from './style.css';\n\nconst createLayout = Template => {\n const Layout = props => {\n const {header} = props;\n return (\n <div>\n <div className={style.header}>\n <Header {...header} />\n </div>\n <div className={style.contentWrapper}>\n <Template {...props} />\n </div>\n </div>\n );\n };\n\n Layout.propTypes = {\n header: PropTypes.shape(Header.propTypes)\n };\n\n return Layout;\n};\n\nexport default createLayout;\n"],"file":"index.js"}
@@ -1,3 +1,7 @@
1
1
  .contentWrapper {
2
2
  padding-top: 80px;
3
3
  }
4
+
5
+ .header {
6
+ margin: 24px 40px;
7
+ }
@@ -13,7 +13,7 @@ var _style = _interopRequireDefault(require("./style.css"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- const WizardSteps = (props, context) => {
16
+ const WizardSteps = props => {
17
17
  const {
18
18
  steps
19
19
  } = props;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/wizard-steps/index.js"],"names":["WizardSteps","props","context","steps","wizard","map","step","index","style","done","current","label","title","outerDot","dot","container","propTypes","PropTypes","arrayOf","shape","string","bool"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACtC,QAAM;AAACC,IAAAA;AAAD,MAAUF,KAAhB;AAEA,QAAMG,MAAM,GAAGD,KAAK,CAACE,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACxC,wBACE;AACE,MAAA,SAAS,EAAE,yBAAWC,eAAMF,IAAjB,EAAuBA,IAAI,CAACG,IAAL,IAAaD,eAAMC,IAA1C,EAAgDH,IAAI,CAACI,OAAL,IAAgBF,eAAME,OAAtE,CADb;AAEE,MAAA,GAAG,EAAG,QAAOH,KAAM,EAFrB;AAGE,mBAAWA;AAHb,oBAKE;AAAK,MAAA,SAAS,EAAEC,eAAMG;AAAtB,oBACE;AAAK,MAAA,SAAS,EAAEH,eAAMI;AAAtB,OAA8BN,IAAI,CAACM,KAAnC,CADF,CALF,eAQE;AAAK,MAAA,SAAS,EAAEJ,eAAMK;AAAtB,oBACE;AAAK,MAAA,SAAS,EAAEL,eAAMM;AAAtB,WADF,CARF,CADF;AAcD,GAfc,CAAf;AAiBA,sBAAO;AAAK,IAAA,SAAS,EAAEN,eAAMO;AAAtB,KAAkCX,MAAlC,CAAP;AACD,CArBD;;AAuBAJ,WAAW,CAACgB,SAAZ,2CAAwB;AACtBb,EAAAA,KAAK,EAAEc,mBAAUC,OAAV,CACLD,mBAAUE,KAAV,CAAgB;AACdP,IAAAA,KAAK,EAAEK,mBAAUG,MADH;AAEdX,IAAAA,IAAI,EAAEQ,mBAAUI,IAFF;AAGdX,IAAAA,OAAO,EAAEO,mBAAUI;AAHL,GAAhB,CADK;AADe,CAAxB;eAUerB,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport style from './style.css';\n\nconst WizardSteps = (props, context) => {\n const {steps} = props;\n\n const wizard = steps.map((step, index) => {\n return (\n <div\n className={classnames(style.step, step.done && style.done, step.current && style.current)}\n key={`step-${index}`}\n data-step={index}\n >\n <div className={style.label}>\n <div className={style.title}>{step.title}</div>\n </div>\n <div className={style.outerDot}>\n <div className={style.dot}> </div>\n </div>\n </div>\n );\n });\n\n return <div className={style.container}>{wizard}</div>;\n};\n\nWizardSteps.propTypes = {\n steps: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n done: PropTypes.bool,\n current: PropTypes.bool\n })\n )\n};\n\nexport default WizardSteps;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/wizard-steps/index.js"],"names":["WizardSteps","props","steps","wizard","map","step","index","style","done","current","label","title","outerDot","dot","container","propTypes","PropTypes","arrayOf","shape","string","bool"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,WAAW,GAAGC,KAAK,IAAI;AAC3B,QAAM;AAACC,IAAAA;AAAD,MAAUD,KAAhB;AAEA,QAAME,MAAM,GAAGD,KAAK,CAACE,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACxC,wBACE;AACE,MAAA,SAAS,EAAE,yBAAWC,eAAMF,IAAjB,EAAuBA,IAAI,CAACG,IAAL,IAAaD,eAAMC,IAA1C,EAAgDH,IAAI,CAACI,OAAL,IAAgBF,eAAME,OAAtE,CADb;AAEE,MAAA,GAAG,EAAG,QAAOH,KAAM,EAFrB;AAGE,mBAAWA;AAHb,oBAKE;AAAK,MAAA,SAAS,EAAEC,eAAMG;AAAtB,oBACE;AAAK,MAAA,SAAS,EAAEH,eAAMI;AAAtB,OAA8BN,IAAI,CAACM,KAAnC,CADF,CALF,eAQE;AAAK,MAAA,SAAS,EAAEJ,eAAMK;AAAtB,oBACE;AAAK,MAAA,SAAS,EAAEL,eAAMM;AAAtB,WADF,CARF,CADF;AAcD,GAfc,CAAf;AAiBA,sBAAO;AAAK,IAAA,SAAS,EAAEN,eAAMO;AAAtB,KAAkCX,MAAlC,CAAP;AACD,CArBD;;AAuBAH,WAAW,CAACe,SAAZ,2CAAwB;AACtBb,EAAAA,KAAK,EAAEc,mBAAUC,OAAV,CACLD,mBAAUE,KAAV,CAAgB;AACdP,IAAAA,KAAK,EAAEK,mBAAUG,MADH;AAEdX,IAAAA,IAAI,EAAEQ,mBAAUI,IAFF;AAGdX,IAAAA,OAAO,EAAEO,mBAAUI;AAHL,GAAhB,CADK;AADe,CAAxB;eAUepB,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport style from './style.css';\n\nconst WizardSteps = props => {\n const {steps} = props;\n\n const wizard = steps.map((step, index) => {\n return (\n <div\n className={classnames(style.step, step.done && style.done, step.current && style.current)}\n key={`step-${index}`}\n data-step={index}\n >\n <div className={style.label}>\n <div className={style.title}>{step.title}</div>\n </div>\n <div className={style.outerDot}>\n <div className={style.dot}> </div>\n </div>\n </div>\n );\n });\n\n return <div className={style.container}>{wizard}</div>;\n};\n\nWizardSteps.propTypes = {\n steps: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n done: PropTypes.bool,\n current: PropTypes.bool\n })\n )\n};\n\nexport default WizardSteps;\n"],"file":"index.js"}
@@ -31,7 +31,6 @@
31
31
  position: absolute;
32
32
  border: 1px solid cm_grey_500;
33
33
  display: block;
34
- z-index: 2;
35
34
  left: -50%;
36
35
  bottom: 17px;
37
36
  content: '';
@@ -42,7 +41,6 @@
42
41
  position: absolute;
43
42
  border: 1px solid cm_grey_500;
44
43
  display: block;
45
- z-index: 1;
46
44
  left: 50%;
47
45
  bottom: 17px;
48
46
  content: '';
@@ -63,7 +61,6 @@
63
61
  border: 1px solid cm_primary_blue;
64
62
  bottom: 17px;
65
63
  left: 50%;
66
- z-index: 2;
67
64
  position: absolute;
68
65
  }
69
66
  .step.done:before, .step.current:before {
@@ -72,7 +69,6 @@
72
69
  border: 1px solid cm_primary_blue;
73
70
  bottom: 17px;
74
71
  left: 0px;
75
- z-index: 2;
76
72
  position: absolute;
77
73
  }
78
74
 
@@ -84,7 +80,6 @@
84
80
  border-radius: 10px;
85
81
  display: inline-block;
86
82
  position: relative;
87
- z-index: 2;
88
83
  margin-left: 3px;
89
84
  margin-top: 3px;
90
85
  border: 1px solid cm_grey_500;
@@ -118,10 +113,10 @@
118
113
  border-radius: 18px;
119
114
  display: inline-block;
120
115
  position: relative;
121
- z-index: 12;
122
116
  margin: 0px auto;
123
117
  border: 8px solid white;
124
118
  transition: background-color 0.5s linear;
119
+ z-index: 1;
125
120
  }
126
121
 
127
122
  .step.done .outerDot, .step.current .outerDot {
@@ -3,7 +3,6 @@
3
3
 
4
4
  .wrapper {
5
5
  width: 100%;
6
- padding-bottom: 50px;
7
6
  }
8
7
 
9
8
  .titleWrapper {
@@ -48,7 +47,7 @@
48
47
  }
49
48
 
50
49
  .field {
51
- margin-bottom: 20px;
50
+ margin-bottom: 10px;
52
51
  }
53
52
 
54
53
  .field:last-child {
@@ -188,8 +188,8 @@ const SelectMultiple = ({
188
188
  }), /*#__PURE__*/_react.default.createElement("div", {
189
189
  className: _style.default.descriptionLabel
190
190
  }, description)) : null) : null;
191
- const hintView = isCMTheme && !isActive ? /*#__PURE__*/_react.default.createElement("div", {
192
- className: _style.default.hint // eslint-disable-next-line react/no-danger
191
+ const hintView = isCMTheme ? /*#__PURE__*/_react.default.createElement("div", {
192
+ className: (0, _classnames.default)(_style.default.hint, isActive && _style.default.hideHint) // eslint-disable-next-line react/no-danger
193
193
  ,
194
194
  dangerouslySetInnerHTML: {
195
195
  __html: error || hint
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/select-multiple/index.js"],"names":["themeStyle","setup","style","cockpit","sidebar","coorpmanager","useChoices","options","choicesRef","getChoices","current","setChoices","choice","choices","i","selected","filter","c","CMMultipleView","multiple","onChange","handleChange","checked","item","name","SelectMultiple","title","theme","placeholder","description","hint","onError","modified","required","error","disabled","skin","isOpened","updateIsOpened","nodeRef","defaultColor","black","handleOnClick","e","preventDefault","stopPropagation","prev","closeHandle","contains","target","document","addEventListener","removeEventListener","isCMTheme","lines","convert","cap","selection","_title","isActive","titleView","titleWithSelection","noValue","active","infoIconWrapper","infoIcon","descriptionLabel","hintView","__html","mainClass","default","showPlaceholder","behaviourClassName","errorIconView","errorIcon","select","noselection","iconsWrapper","flex","clicked","arrow","down","activeChoices","list","contextTypes","Provider","childContextTypes","propTypes","PropTypes","bool","TitledCheckbox","func","string","arrayOf","oneOf"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAKA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,UAAU,GAAG;AACjBC,EAAAA,KAAK,EAAEC,eAAMD,KADI;AAEjBE,EAAAA,OAAO,EAAED,eAAMC,OAFE;AAGjBC,EAAAA,OAAO,EAAEF,eAAME,OAHE;AAIjBC,EAAAA,YAAY,EAAEH,eAAMG;AAJH,CAAnB;;AAOO,MAAMC,UAAU,GAAGC,OAAO,IAAI;AACnC,QAAMC,UAAU,GAAG,mBAAOD,OAAP,CAAnB;;AAEA,QAAME,UAAU,GAAG,MAAM;AACvB,WAAOD,UAAU,CAACE,OAAlB;AACD,GAFD;;AAIA,QAAMC,UAAU,GAAGC,MAAM,IAAI;AAC3B,UAAMC,OAAO,GAAG,mBAAK,IAAGD,MAAM,CAACE,CAAE,YAAjB,EAA8B,CAACF,MAAM,CAACG,QAAtC,EAAgDN,UAAU,EAA1D,CAAhB;AAEAD,IAAAA,UAAU,CAACE,OAAX,GAAqBG,OAAO,CAACG,MAAR,CAAeC,CAAC,IAAIA,CAAC,CAACF,QAAtB,CAArB;AACD,GAJD;;AAMA,SAAO,CAACN,UAAD,EAAaE,UAAb,CAAP;AACD,CAdM;;;;AAgBP,MAAMO,cAAc,GAAG,CAAC;AAACC,EAAAA,QAAD;AAAWP,EAAAA,MAAX;AAAmBQ,EAAAA;AAAnB,CAAD,KAAkC;AACvD,QAAMC,YAAY,GAAG,wBACnBC,OAAO,IAAI;AACT,QAAI,CAACH,QAAL,EAAe;AACb,aAAOC,QAAQ,CAACR,MAAD,CAAf;AACD;;AACD,WAAOQ,QAAQ,uBAAKR,MAAL;AAAaG,MAAAA,QAAQ,EAAEO;AAAvB,OAAf;AACD,GANkB,EAOnB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3B;AAMAlE,cAAc,CAAC8D,SAAf,2CAA2B;AACzB7D,EAAAA,KAAK,EAAE8D,mBAAUI,MADQ;AAEzBhE,EAAAA,WAAW,EAAE4D,mBAAUI,MAFE;AAGzB/D,EAAAA,WAAW,EAAE2D,mBAAUI,MAHE;AAIzB9D,EAAAA,IAAI,EAAE0D,mBAAUI,MAJS;AAKzBrF,EAAAA,OAAO,EAAEiF,mBAAUK,OAAV,CAAkBH,wBAAeH,SAAf,CAAyB3E,MAA3C,CALgB;AAMzBQ,EAAAA,QAAQ,EAAEoE,mBAAUG,IANK;AAOzB5D,EAAAA,OAAO,EAAEyD,mBAAUG,IAPM;AAQzBxE,EAAAA,QAAQ,EAAEqE,mBAAUC,IARK;AASzBzD,EAAAA,QAAQ,EAAEwD,mBAAUC,IATK;AAUzBtD,EAAAA,QAAQ,EAAEqD,mBAAUC,IAVK;AAWzBxD,EAAAA,QAAQ,EAAEuD,mBAAUC,IAXK;AAYzBvD,EAAAA,KAAK,EAAEsD,mBAAUI,MAZQ;AAazBjE,EAAAA,KAAK,EAAE6D,mBAAUM,KAAV,CAAgB,oBAAK9F,UAAL,CAAhB;AAbkB,CAA3B;eAgBeyB,c","sourcesContent":["import React, {useState, useEffect, useRef, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {map, pipe, join, filter, get, set, keys, isEmpty} from 'lodash/fp';\nimport {\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport TitledCheckbox from '../titled-checkbox';\nimport Provider from '../../atom/provider';\nimport Checkbox from '../../atom/input-checkbox';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n cockpit: style.cockpit,\n sidebar: style.sidebar,\n coorpmanager: style.coorpmanager\n};\n\nexport const useChoices = options => {\n const choicesRef = useRef(options);\n\n const getChoices = () => {\n return choicesRef.current;\n };\n\n const setChoices = choice => {\n const choices = set(`[${choice.i}].selected`, !choice.selected, getChoices());\n\n choicesRef.current = choices.filter(c => c.selected);\n };\n\n return [getChoices, setChoices];\n};\n\nconst CMMultipleView = ({multiple, choice, onChange}) => {\n const handleChange = useCallback(\n checked => {\n if (!multiple) {\n return onChange(choice);\n }\n return onChange({...choice, selected: checked});\n },\n [onChange, choice, multiple]\n );\n\n return multiple ? (\n <div className={style.item}>\n <Checkbox\n titleStyle=\"inherit\"\n checked={choice.selected}\n onChange={handleChange}\n noLabelMargins\n title={choice.name}\n />\n </div>\n ) : (\n <span className={style.item} onClick={handleChange} title={choice.name}>\n {choice.name}\n </span>\n );\n};\n\nconst SelectMultiple = (\n {\n title,\n options,\n theme,\n placeholder,\n description,\n hint,\n multiple,\n onChange,\n onError,\n modified = false,\n required = false,\n error = '',\n disabled = false\n },\n {skin}\n) => {\n const [isOpened, updateIsOpened] = useState(false);\n const [getChoices, setChoices] = useChoices(options);\n const nodeRef = useRef(null);\n\n const defaultColor = get('common.primary', skin);\n const black = get('common.black', skin);\n\n const handleOnClick = useCallback(\n e => {\n if (disabled) return;\n\n e.preventDefault();\n e.stopPropagation();\n\n updateIsOpened(prev => !prev);\n },\n [disabled]\n );\n\n const closeHandle = useCallback(e => {\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n updateIsOpened(false);\n }\n }, []);\n\n const handleChange = useCallback(\n choice => {\n // if multiple prop is turned on\n // we return all selected choices\n if (multiple) {\n setChoices(choice);\n\n return onChange(getChoices());\n }\n\n return onChange(choice);\n },\n [multiple, onChange, setChoices, getChoices]\n );\n\n useEffect(() => {\n document.addEventListener('click', closeHandle);\n document.addEventListener('touchstart', closeHandle);\n\n return () => {\n document.removeEventListener('click', closeHandle);\n document.removeEventListener('touchstart', closeHandle);\n };\n }, [closeHandle]);\n\n const isCMTheme = theme === 'coorpmanager';\n\n const lines = map.convert({cap: false})((choice, i) => {\n return (\n <li key={i} className={style.choice}>\n {isCMTheme ? (\n <CMMultipleView multiple={multiple} choice={{...choice, i}} onChange={handleChange} />\n ) : (\n <TitledCheckbox\n onToggle={handleChange}\n choice={{...choice, i}}\n background={defaultColor}\n />\n )}\n </li>\n );\n }, options);\n\n const selection = pipe(filter({selected: true}), map('name'), join(', '))(options);\n\n const _title = title && `${title}${required ? ' *' : ''}`;\n\n const isActive = isOpened === true;\n\n const titleView = title ? (\n <span\n className={classnames(\n style.title,\n isCMTheme && selection && style.titleWithSelection,\n isCMTheme && isEmpty(selection) && style.noValue,\n isActive && style.active\n )}\n >\n {_title}\n {isCMTheme ? (\n <div className={style.infoIconWrapper}>\n <InfoIcon className={style.infoIcon} />\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n ) : null}\n </span>\n ) : null;\n\n const hintView =\n isCMTheme && !isActive ? (\n <div\n className={style.hint}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: error || hint}}\n />\n ) : null;\n\n const mainClass = theme ? themeStyle[theme] : style.default;\n const showPlaceholder = isCMTheme && isActive;\n const behaviourClassName = getClassState(\n style.default,\n style.modified,\n style.error,\n modified,\n error\n );\n\n const errorIconView = error ? <ErrorIcon onClick={onError} className={style.errorIcon} /> : null;\n\n return (\n <div\n className={classnames(mainClass, behaviourClassName, disabled && style.disabled)}\n ref={nodeRef}\n >\n <label>\n {!isCMTheme && titleView}\n <div className={style.select} title={selection || placeholder} onClick={handleOnClick}>\n {isCMTheme && titleView}\n <span\n className={classnames(\n style.selection,\n isCMTheme && isEmpty(selection) && style.noselection\n )}\n >\n {selection || !isCMTheme || (showPlaceholder && placeholder) || null}\n </span>\n {isCMTheme ? (\n <div className={style.iconsWrapper}>\n <div className={style.flex}>{errorIconView}</div>\n <div className={classnames(style.flex, isActive && style.clicked)}>\n <ArrowDown\n color={black}\n className={classnames(style.arrow, {[style.down]: isActive})}\n />\n </div>\n </div>\n ) : (\n <ArrowDown\n color={black}\n className={classnames(style.arrow, {[style.down]: isActive})}\n />\n )}\n </div>\n <div className={classnames(style.choices, isActive && style.activeChoices)}>\n <ul className={style.list}>{lines}</ul>\n </div>\n </label>\n {!isCMTheme ? <div className={style.description}>{description}</div> : null}\n {hintView}\n </div>\n );\n};\n\nSelectMultiple.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCMMultipleView.propTypes = {\n multiple: PropTypes.bool,\n choice: TitledCheckbox.propTypes.choice,\n onChange: PropTypes.func\n};\n\nSelectMultiple.propTypes = {\n title: PropTypes.string,\n placeholder: PropTypes.string,\n description: PropTypes.string,\n hint: PropTypes.string,\n options: PropTypes.arrayOf(TitledCheckbox.propTypes.choice),\n onChange: PropTypes.func,\n onError: PropTypes.func,\n multiple: PropTypes.bool,\n modified: PropTypes.bool,\n disabled: PropTypes.bool,\n required: PropTypes.bool,\n error: PropTypes.string,\n theme: PropTypes.oneOf(keys(themeStyle))\n};\n\nexport default SelectMultiple;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/select-multiple/index.js"],"names":["themeStyle","setup","style","cockpit","sidebar","coorpmanager","useChoices","options","choicesRef","getChoices","current","setChoices","choice","choices","i","selected","filter","c","CMMultipleView","multiple","onChange","handleChange","checked","item","name","SelectMultiple","title","theme","placeholder","description","hint","onError","modified","required","error","disabled","skin","isOpened","updateIsOpened","nodeRef","defaultColor","black","handleOnClick","e","preventDefault","stopPropagation","prev","closeHandle","contains","target","document","addEventListener","removeEventListener","isCMTheme","lines","convert","cap","selection","_title","isActive","titleView","titleWithSelection","noValue","active","infoIconWrapper","infoIcon","descriptionLabel","hintView","hideHint","__html","mainClass","default","showPlaceholder","behaviourClassName","errorIconView","errorIcon","select","noselection","iconsWrapper","flex","clicked","arrow","down","activeChoices","list","contextTypes","Provider","childContextTypes","propTypes","PropTypes","bool","TitledCheckbox","func","string","arrayOf","oneOf"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAKA;;AACA;;AACA;;AACA;;AACA;;;;;;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4D,mBAAUI,MAHE;AAIzB/D,EAAAA,IAAI,EAAE2D,mBAAUI,MAJS;AAKzBtF,EAAAA,OAAO,EAAEkF,mBAAUK,OAAV,CAAkBH,wBAAeH,SAAf,CAAyB5E,MAA3C,CALgB;AAMzBQ,EAAAA,QAAQ,EAAEqE,mBAAUG,IANK;AAOzB7D,EAAAA,OAAO,EAAE0D,mBAAUG,IAPM;AAQzBzE,EAAAA,QAAQ,EAAEsE,mBAAUC,IARK;AASzB1D,EAAAA,QAAQ,EAAEyD,mBAAUC,IATK;AAUzBvD,EAAAA,QAAQ,EAAEsD,mBAAUC,IAVK;AAWzBzD,EAAAA,QAAQ,EAAEwD,mBAAUC,IAXK;AAYzBxD,EAAAA,KAAK,EAAEuD,mBAAUI,MAZQ;AAazBlE,EAAAA,KAAK,EAAE8D,mBAAUM,KAAV,CAAgB,oBAAK/F,UAAL,CAAhB;AAbkB,CAA3B;eAgBeyB,c","sourcesContent":["import React, {useState, useEffect, useRef, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {map, pipe, join, filter, get, set, keys, isEmpty} from 'lodash/fp';\nimport {\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport TitledCheckbox from '../titled-checkbox';\nimport Provider from '../../atom/provider';\nimport Checkbox from '../../atom/input-checkbox';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n cockpit: style.cockpit,\n sidebar: style.sidebar,\n coorpmanager: style.coorpmanager\n};\n\nexport const useChoices = options => {\n const choicesRef = useRef(options);\n\n const getChoices = () => {\n return choicesRef.current;\n };\n\n const setChoices = choice => {\n const choices = set(`[${choice.i}].selected`, !choice.selected, getChoices());\n\n choicesRef.current = choices.filter(c => c.selected);\n };\n\n return [getChoices, setChoices];\n};\n\nconst CMMultipleView = ({multiple, choice, onChange}) => {\n const handleChange = useCallback(\n checked => {\n if (!multiple) {\n return onChange(choice);\n }\n return onChange({...choice, selected: checked});\n },\n [onChange, choice, multiple]\n );\n\n return multiple ? (\n <div className={style.item}>\n <Checkbox\n titleStyle=\"inherit\"\n checked={choice.selected}\n onChange={handleChange}\n noLabelMargins\n title={choice.name}\n />\n </div>\n ) : (\n <span className={style.item} onClick={handleChange} title={choice.name}>\n {choice.name}\n </span>\n );\n};\n\nconst SelectMultiple = (\n {\n title,\n options,\n theme,\n placeholder,\n description,\n hint,\n multiple,\n onChange,\n onError,\n modified = false,\n required = false,\n error = '',\n disabled = false\n },\n {skin}\n) => {\n const [isOpened, updateIsOpened] = useState(false);\n const [getChoices, setChoices] = useChoices(options);\n const nodeRef = useRef(null);\n\n const defaultColor = get('common.primary', skin);\n const black = get('common.black', skin);\n\n const handleOnClick = useCallback(\n e => {\n if (disabled) return;\n\n e.preventDefault();\n e.stopPropagation();\n\n updateIsOpened(prev => !prev);\n },\n [disabled]\n );\n\n const closeHandle = useCallback(e => {\n if (nodeRef && nodeRef.current && !nodeRef.current.contains(e.target)) {\n updateIsOpened(false);\n }\n }, []);\n\n const handleChange = useCallback(\n choice => {\n // if multiple prop is turned on\n // we return all selected choices\n if (multiple) {\n setChoices(choice);\n\n return onChange(getChoices());\n }\n\n return onChange(choice);\n },\n [multiple, onChange, setChoices, getChoices]\n );\n\n useEffect(() => {\n document.addEventListener('click', closeHandle);\n document.addEventListener('touchstart', closeHandle);\n\n return () => {\n document.removeEventListener('click', closeHandle);\n document.removeEventListener('touchstart', closeHandle);\n };\n }, [closeHandle]);\n\n const isCMTheme = theme === 'coorpmanager';\n\n const lines = map.convert({cap: false})((choice, i) => {\n return (\n <li key={i} className={style.choice}>\n {isCMTheme ? (\n <CMMultipleView multiple={multiple} choice={{...choice, i}} onChange={handleChange} />\n ) : (\n <TitledCheckbox\n onToggle={handleChange}\n choice={{...choice, i}}\n background={defaultColor}\n />\n )}\n </li>\n );\n }, options);\n\n const selection = pipe(filter({selected: true}), map('name'), join(', '))(options);\n\n const _title = title && `${title}${required ? ' *' : ''}`;\n\n const isActive = isOpened === true;\n\n const titleView = title ? (\n <span\n className={classnames(\n style.title,\n isCMTheme && selection && style.titleWithSelection,\n isCMTheme && isEmpty(selection) && style.noValue,\n isActive && style.active\n )}\n >\n {_title}\n {isCMTheme ? (\n <div className={style.infoIconWrapper}>\n <InfoIcon className={style.infoIcon} />\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n ) : null}\n </span>\n ) : null;\n\n const hintView = isCMTheme ? (\n <div\n className={classnames(style.hint, isActive && style.hideHint)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: error || hint}}\n />\n ) : null;\n\n const mainClass = theme ? themeStyle[theme] : style.default;\n const showPlaceholder = isCMTheme && isActive;\n const behaviourClassName = getClassState(\n style.default,\n style.modified,\n style.error,\n modified,\n error\n );\n\n const errorIconView = error ? <ErrorIcon onClick={onError} className={style.errorIcon} /> : null;\n\n return (\n <div\n className={classnames(mainClass, behaviourClassName, disabled && style.disabled)}\n ref={nodeRef}\n >\n <label>\n {!isCMTheme && titleView}\n <div className={style.select} title={selection || placeholder} onClick={handleOnClick}>\n {isCMTheme && titleView}\n <span\n className={classnames(\n style.selection,\n isCMTheme && isEmpty(selection) && style.noselection\n )}\n >\n {selection || !isCMTheme || (showPlaceholder && placeholder) || null}\n </span>\n {isCMTheme ? (\n <div className={style.iconsWrapper}>\n <div className={style.flex}>{errorIconView}</div>\n <div className={classnames(style.flex, isActive && style.clicked)}>\n <ArrowDown\n color={black}\n className={classnames(style.arrow, {[style.down]: isActive})}\n />\n </div>\n </div>\n ) : (\n <ArrowDown\n color={black}\n className={classnames(style.arrow, {[style.down]: isActive})}\n />\n )}\n </div>\n <div className={classnames(style.choices, isActive && style.activeChoices)}>\n <ul className={style.list}>{lines}</ul>\n </div>\n </label>\n {!isCMTheme ? <div className={style.description}>{description}</div> : null}\n {hintView}\n </div>\n );\n};\n\nSelectMultiple.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCMMultipleView.propTypes = {\n multiple: PropTypes.bool,\n choice: TitledCheckbox.propTypes.choice,\n onChange: PropTypes.func\n};\n\nSelectMultiple.propTypes = {\n title: PropTypes.string,\n placeholder: PropTypes.string,\n description: PropTypes.string,\n hint: PropTypes.string,\n options: PropTypes.arrayOf(TitledCheckbox.propTypes.choice),\n onChange: PropTypes.func,\n onError: PropTypes.func,\n multiple: PropTypes.bool,\n modified: PropTypes.bool,\n disabled: PropTypes.bool,\n required: PropTypes.bool,\n error: PropTypes.string,\n theme: PropTypes.oneOf(keys(themeStyle))\n};\n\nexport default SelectMultiple;\n"],"file":"index.js"}