@coorpacademy/components 10.1.15 → 10.3.0

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 (211) hide show
  1. package/es/atom/button-link/index.js +1 -1
  2. package/es/atom/button-link/index.js.map +1 -1
  3. package/es/atom/button-link-icon-only/index.js +1 -1
  4. package/es/atom/button-link-icon-only/index.js.map +1 -1
  5. package/es/atom/button-menu/index.js +2 -4
  6. package/es/atom/button-menu/index.js.map +1 -1
  7. package/es/atom/chips/style.css +1 -2
  8. package/es/atom/image-upload/index.js +5 -3
  9. package/es/atom/image-upload/index.js.map +1 -1
  10. package/es/atom/input-color/style.css +1 -1
  11. package/es/atom/wizard-steps/index.js +1 -1
  12. package/es/atom/wizard-steps/index.js.map +1 -1
  13. package/es/atom/wizard-steps/style.css +1 -6
  14. package/es/hoc/transition/index.js +10 -3
  15. package/es/hoc/transition/index.js.map +1 -1
  16. package/es/molecule/banner/test/fixtures.js +8 -0
  17. package/es/molecule/banner/test/fixtures.js.map +1 -1
  18. package/es/molecule/brand-create-form/index.js +4 -1
  19. package/es/molecule/brand-create-form/index.js.map +1 -1
  20. package/es/molecule/brand-form-group/style.css +1 -2
  21. package/es/molecule/card/index.js +1 -1
  22. package/es/molecule/card/index.js.map +1 -1
  23. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  24. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  25. package/es/molecule/select-multiple/index.js +3 -3
  26. package/es/molecule/select-multiple/index.js.map +1 -1
  27. package/es/molecule/select-multiple/style.css +33 -16
  28. package/es/molecule/select-multiple/test/fixtures.js +8 -0
  29. package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
  30. package/es/molecule/share/index.js +3 -2
  31. package/es/molecule/share/index.js.map +1 -1
  32. package/es/molecule/wizard-summary/index.js +20 -11
  33. package/es/molecule/wizard-summary/index.js.map +1 -1
  34. package/es/molecule/wizard-summary/style.css +18 -8
  35. package/es/molecule/wizard-summary/test/fixtures/three-sections.js +2 -2
  36. package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
  37. package/es/organism/accordion/container/index.js +1 -1
  38. package/es/organism/accordion/container/index.js.map +1 -1
  39. package/es/organism/accordion/coorp-manager/index.js +1 -1
  40. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  41. package/es/organism/brand-form/index.js +39 -29
  42. package/es/organism/brand-form/index.js.map +1 -1
  43. package/es/organism/brand-form/style.css +8 -3
  44. package/es/organism/{playlist-translation → content-translation}/index.js +0 -0
  45. package/es/organism/content-translation/index.js.map +1 -0
  46. package/es/organism/{playlist-translation → content-translation}/style.css +0 -0
  47. package/es/organism/{playlist-translation → content-translation}/test/fixtures/default.js +0 -0
  48. package/es/organism/content-translation/test/fixtures/default.js.map +1 -0
  49. package/es/organism/{playlist-translation → content-translation}/test/fixtures/delete.js +0 -0
  50. package/es/organism/content-translation/test/fixtures/delete.js.map +1 -0
  51. package/es/organism/content-translation/test/fixtures.js +15 -0
  52. package/es/organism/content-translation/test/fixtures.js.map +1 -0
  53. package/es/organism/list-item/test/fixtures.js +19 -0
  54. package/es/organism/list-item/test/fixtures.js.map +1 -0
  55. package/es/organism/list-items/index.js +40 -0
  56. package/es/organism/list-items/index.js.map +1 -0
  57. package/es/organism/list-items/style.css +39 -0
  58. package/es/organism/list-items/test/fixtures/archived.js +24 -0
  59. package/es/organism/list-items/test/fixtures/archived.js.map +1 -0
  60. package/es/organism/list-items/test/fixtures/draft.js +24 -0
  61. package/es/organism/list-items/test/fixtures/draft.js.map +1 -0
  62. package/es/organism/list-items/test/fixtures/published.js +26 -0
  63. package/es/organism/list-items/test/fixtures/published.js.map +1 -0
  64. package/es/organism/list-items/test/fixtures.js +17 -0
  65. package/es/organism/list-items/test/fixtures.js.map +1 -0
  66. package/es/organism/setup-header/index.js +6 -6
  67. package/es/organism/setup-header/index.js.map +1 -1
  68. package/es/organism/wizard-contents/index.js +146 -0
  69. package/es/organism/wizard-contents/index.js.map +1 -0
  70. package/es/organism/wizard-contents/style.css +118 -0
  71. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +40 -0
  72. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -0
  73. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +36 -0
  74. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -0
  75. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +36 -0
  76. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -0
  77. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +40 -0
  78. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -0
  79. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +40 -0
  80. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -0
  81. package/es/organism/wizard-contents/test/fixtures.js +21 -0
  82. package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
  83. package/es/template/back-office/brand-update/index.js +21 -7
  84. package/es/template/back-office/brand-update/index.js.map +1 -1
  85. package/es/template/back-office/brand-update/style.css +46 -14
  86. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +21 -0
  87. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -0
  88. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +21 -0
  89. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -0
  90. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +22 -0
  91. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -0
  92. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +21 -0
  93. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -0
  94. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +21 -0
  95. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -0
  96. package/es/template/back-office/brand-update/test/fixtures.js +10 -2
  97. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  98. package/es/template/back-office/layout/index.js +3 -1
  99. package/es/template/back-office/layout/index.js.map +1 -1
  100. package/es/template/back-office/layout/style.css +4 -0
  101. package/es/template/teams-dashboard/index.js +4 -6
  102. package/es/template/teams-dashboard/index.js.map +1 -1
  103. package/lib/atom/button-link/index.js +1 -1
  104. package/lib/atom/button-link/index.js.map +1 -1
  105. package/lib/atom/button-link-icon-only/index.js +1 -1
  106. package/lib/atom/button-link-icon-only/index.js.map +1 -1
  107. package/lib/atom/button-menu/index.js +2 -4
  108. package/lib/atom/button-menu/index.js.map +1 -1
  109. package/lib/atom/chips/style.css +1 -2
  110. package/lib/atom/image-upload/index.js +5 -2
  111. package/lib/atom/image-upload/index.js.map +1 -1
  112. package/lib/atom/input-color/style.css +1 -1
  113. package/lib/atom/wizard-steps/index.js +1 -1
  114. package/lib/atom/wizard-steps/index.js.map +1 -1
  115. package/lib/atom/wizard-steps/style.css +1 -6
  116. package/lib/hoc/transition/index.js +10 -3
  117. package/lib/hoc/transition/index.js.map +1 -1
  118. package/lib/molecule/banner/test/fixtures.js +12 -0
  119. package/lib/molecule/banner/test/fixtures.js.map +1 -1
  120. package/lib/molecule/brand-create-form/index.js +4 -1
  121. package/lib/molecule/brand-create-form/index.js.map +1 -1
  122. package/lib/molecule/brand-form-group/style.css +1 -2
  123. package/lib/molecule/card/index.js +1 -1
  124. package/lib/molecule/card/index.js.map +1 -1
  125. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  126. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  127. package/lib/molecule/select-multiple/index.js +3 -3
  128. package/lib/molecule/select-multiple/index.js.map +1 -1
  129. package/lib/molecule/select-multiple/style.css +33 -16
  130. package/lib/molecule/select-multiple/test/fixtures.js +12 -0
  131. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
  132. package/lib/molecule/share/index.js +2 -1
  133. package/lib/molecule/share/index.js.map +1 -1
  134. package/lib/molecule/wizard-summary/index.js +21 -13
  135. package/lib/molecule/wizard-summary/index.js.map +1 -1
  136. package/lib/molecule/wizard-summary/style.css +18 -8
  137. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +2 -2
  138. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
  139. package/lib/organism/accordion/container/index.js +1 -1
  140. package/lib/organism/accordion/container/index.js.map +1 -1
  141. package/lib/organism/accordion/coorp-manager/index.js +1 -1
  142. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  143. package/lib/organism/brand-form/index.js +39 -29
  144. package/lib/organism/brand-form/index.js.map +1 -1
  145. package/lib/organism/brand-form/style.css +8 -3
  146. package/lib/organism/{playlist-translation → content-translation}/index.js +0 -0
  147. package/lib/organism/content-translation/index.js.map +1 -0
  148. package/lib/organism/{playlist-translation → content-translation}/style.css +0 -0
  149. package/lib/organism/{playlist-translation → content-translation}/test/fixtures/default.js +0 -0
  150. package/lib/organism/content-translation/test/fixtures/default.js.map +1 -0
  151. package/lib/organism/{playlist-translation → content-translation}/test/fixtures/delete.js +0 -0
  152. package/lib/organism/content-translation/test/fixtures/delete.js.map +1 -0
  153. package/lib/organism/content-translation/test/fixtures.js +25 -0
  154. package/lib/organism/content-translation/test/fixtures.js.map +1 -0
  155. package/lib/organism/list-item/test/fixtures.js +31 -0
  156. package/lib/organism/list-item/test/fixtures.js.map +1 -0
  157. package/lib/organism/list-items/index.js +53 -0
  158. package/lib/organism/list-items/index.js.map +1 -0
  159. package/lib/organism/list-items/style.css +39 -0
  160. package/lib/organism/list-items/test/fixtures/archived.js +33 -0
  161. package/lib/organism/list-items/test/fixtures/archived.js.map +1 -0
  162. package/lib/organism/list-items/test/fixtures/draft.js +33 -0
  163. package/lib/organism/list-items/test/fixtures/draft.js.map +1 -0
  164. package/lib/organism/list-items/test/fixtures/published.js +36 -0
  165. package/lib/organism/list-items/test/fixtures/published.js.map +1 -0
  166. package/lib/organism/list-items/test/fixtures.js +28 -0
  167. package/lib/organism/list-items/test/fixtures.js.map +1 -0
  168. package/lib/organism/setup-header/index.js +6 -6
  169. package/lib/organism/setup-header/index.js.map +1 -1
  170. package/lib/organism/wizard-contents/index.js +164 -0
  171. package/lib/organism/wizard-contents/index.js.map +1 -0
  172. package/lib/organism/wizard-contents/style.css +118 -0
  173. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +49 -0
  174. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -0
  175. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +45 -0
  176. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -0
  177. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +45 -0
  178. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -0
  179. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +49 -0
  180. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -0
  181. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +49 -0
  182. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -0
  183. package/lib/organism/wizard-contents/test/fixtures.js +34 -0
  184. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
  185. package/lib/template/back-office/brand-update/index.js +23 -7
  186. package/lib/template/back-office/brand-update/index.js.map +1 -1
  187. package/lib/template/back-office/brand-update/style.css +46 -14
  188. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +31 -0
  189. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -0
  190. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +31 -0
  191. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -0
  192. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +33 -0
  193. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -0
  194. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +31 -0
  195. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -0
  196. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +31 -0
  197. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -0
  198. package/lib/template/back-office/brand-update/test/fixtures.js +15 -3
  199. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  200. package/lib/template/back-office/layout/index.js +3 -1
  201. package/lib/template/back-office/layout/index.js.map +1 -1
  202. package/lib/template/back-office/layout/style.css +4 -0
  203. package/lib/template/teams-dashboard/index.js +4 -6
  204. package/lib/template/teams-dashboard/index.js.map +1 -1
  205. package/package.json +3 -2
  206. package/es/organism/playlist-translation/index.js.map +0 -1
  207. package/es/organism/playlist-translation/test/fixtures/default.js.map +0 -1
  208. package/es/organism/playlist-translation/test/fixtures/delete.js.map +0 -1
  209. package/lib/organism/playlist-translation/index.js.map +0 -1
  210. package/lib/organism/playlist-translation/test/fixtures/default.js.map +0 -1
  211. package/lib/organism/playlist-translation/test/fixtures/delete.js.map +0 -1
@@ -0,0 +1,146 @@
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 from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import ButtonLink from '../../atom/button-link';
6
+ import ButtonLinkIconOnly from '../../atom/button-link-icon-only';
7
+ import WizardSteps from '../../atom/wizard-steps';
8
+ import WizardSummary from '../../molecule/wizard-summary';
9
+ import BrandForm from '../brand-form';
10
+ import ContentTranslate from '../content-translation';
11
+ import OrganismSearchAndChipsResults from '../search-and-chips-results';
12
+ import CourseSelection from '../course-selection';
13
+ import style from './style.css';
14
+
15
+ const buildHeader = (wizardHeader, steps) => {
16
+ const {
17
+ title,
18
+ onClick
19
+ } = wizardHeader;
20
+ const buttonCloseIcon = {
21
+ size: 'small',
22
+ 'data-name': 'close-button',
23
+ 'aria-label': 'close button',
24
+ icon: 'close',
25
+ onClick
26
+ };
27
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
28
+ className: style.header
29
+ }, /*#__PURE__*/React.createElement(ButtonLinkIconOnly, buttonCloseIcon), /*#__PURE__*/React.createElement("div", {
30
+ className: style.headerTitle
31
+ }, title)), /*#__PURE__*/React.createElement(WizardSteps, {
32
+ steps: steps
33
+ }));
34
+ };
35
+
36
+ const buildForm = content => {
37
+ const {
38
+ type
39
+ } = content;
40
+
41
+ switch (type) {
42
+ case 'form':
43
+ return /*#__PURE__*/React.createElement(BrandForm, content);
44
+
45
+ case 'translate':
46
+ return /*#__PURE__*/React.createElement(ContentTranslate, content);
47
+
48
+ case 'populations':
49
+ return /*#__PURE__*/React.createElement(OrganismSearchAndChipsResults, content);
50
+
51
+ case 'courses':
52
+ return /*#__PURE__*/React.createElement(CourseSelection, content);
53
+ }
54
+ };
55
+
56
+ const buildButton = (type, step) => {
57
+ const {
58
+ label,
59
+ onClick
60
+ } = step;
61
+ const buttonProps = {
62
+ type: type === 'next' ? 'primary' : 'secondary',
63
+ 'aria-label': `${type} step button`,
64
+ 'data-name': `${type}-step-button`,
65
+ icon: {
66
+ position: type === 'next' ? 'right' : 'left',
67
+ type: type === 'next' ? 'chevron-right' : 'chevron-left'
68
+ },
69
+ label,
70
+ onClick
71
+ };
72
+ return /*#__PURE__*/React.createElement(ButtonLink, buttonProps);
73
+ };
74
+
75
+ const buildActionZone = (previousStep, nextStep) => {
76
+ const previousButton = previousStep ? buildButton('previous', previousStep) : null;
77
+ const nextButton = nextStep ? buildButton('next', nextStep) : null;
78
+ return /*#__PURE__*/React.createElement("div", {
79
+ className: style.actionZone
80
+ }, /*#__PURE__*/React.createElement("div", {
81
+ className: style.button
82
+ }, previousButton), /*#__PURE__*/React.createElement("div", {
83
+ className: style.button
84
+ }, nextButton));
85
+ };
86
+
87
+ const WizardContents = props => {
88
+ const {
89
+ wizardHeader,
90
+ steps,
91
+ summary,
92
+ content,
93
+ nextStep,
94
+ previousStep
95
+ } = props;
96
+ const headerView = buildHeader(wizardHeader, steps);
97
+ const formView = buildForm(content);
98
+ const actionView = buildActionZone(previousStep, nextStep);
99
+ return /*#__PURE__*/React.createElement("div", {
100
+ className: style.container
101
+ }, /*#__PURE__*/React.createElement("div", {
102
+ className: style.leftSection
103
+ }, headerView, /*#__PURE__*/React.createElement("div", {
104
+ className: style.form
105
+ }, formView)), /*#__PURE__*/React.createElement("div", {
106
+ className: style.rightSection
107
+ }, /*#__PURE__*/React.createElement("div", {
108
+ className: style.stickySection
109
+ }, /*#__PURE__*/React.createElement("div", {
110
+ className: style.summaryZone
111
+ }, /*#__PURE__*/React.createElement(WizardSummary, summary)), actionView)), /*#__PURE__*/React.createElement("div", {
112
+ className: style.footer
113
+ }, /*#__PURE__*/React.createElement("div", {
114
+ className: style.summaryFooter
115
+ }, /*#__PURE__*/React.createElement(WizardSummary, summary)), /*#__PURE__*/React.createElement("div", {
116
+ className: style.actionFooter
117
+ }, actionView)));
118
+ };
119
+
120
+ WizardContents.propTypes = process.env.NODE_ENV !== "production" ? {
121
+ wizardHeader: PropTypes.shape({
122
+ title: PropTypes.string,
123
+ onClick: PropTypes.func
124
+ }).isRequired,
125
+ steps: WizardSteps.propTypes.steps,
126
+ summary: PropTypes.shape(_extends({}, WizardSummary.propTypes)).isRequired,
127
+ content: PropTypes.oneOfType([PropTypes.shape(_extends(_extends({}, BrandForm.propTypes), {}, {
128
+ type: PropTypes.oneOf(['form'])
129
+ })), PropTypes.shape(_extends(_extends({}, ContentTranslate.propTypes), {}, {
130
+ type: PropTypes.oneOf(['translate'])
131
+ })), PropTypes.shape(_extends(_extends({}, OrganismSearchAndChipsResults.propTypes), {}, {
132
+ type: PropTypes.oneOf(['populations'])
133
+ })), PropTypes.shape(_extends(_extends({}, CourseSelection.propTypes), {}, {
134
+ type: PropTypes.oneOf(['courses'])
135
+ }))]),
136
+ previousStep: PropTypes.shape({
137
+ label: PropTypes.string,
138
+ onClick: PropTypes.func
139
+ }),
140
+ nextStep: PropTypes.shape({
141
+ label: PropTypes.string,
142
+ onClick: PropTypes.func
143
+ })
144
+ } : {};
145
+ export default WizardContents;
146
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/organism/wizard-contents/index.js"],"names":["React","PropTypes","ButtonLink","ButtonLinkIconOnly","WizardSteps","WizardSummary","BrandForm","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","style","buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","header","headerTitle","buildForm","content","type","buildButton","step","label","buttonProps","position","buildActionZone","previousStep","nextStep","previousButton","nextButton","actionZone","button","WizardContents","props","summary","headerView","formView","actionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","shape","string","func","isRequired","oneOfType","oneOf"],"mappings":"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","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle}>{title}</div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n }\n};\n\nconst buildButton = (type, step) => {\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'next' ? 'primary' : 'secondary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button`,\n icon: {\n position: type === 'next' ? 'right' : 'left',\n type: type === 'next' ? 'chevron-right' : 'chevron-left'\n },\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep) => {\n const previousButton = previousStep ? buildButton('previous', previousStep) : null;\n const nextButton = nextStep ? buildButton('next', nextStep) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm(content);\n const actionView = buildActionZone(previousStep, nextStep);\n\n return (\n <div className={style.container}>\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection}>\n <div className={style.stickySection}>\n <div className={style.summaryZone}>\n <WizardSummary {...summary} />\n </div>\n {actionView}\n </div>\n </div>\n <div className={style.footer}>\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} />\n </div>\n <div className={style.actionFooter}>{actionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"file":"index.js"}
@@ -0,0 +1,118 @@
1
+ @value breakpoints: "../../variables/breakpoints.css";
2
+ @value tablet from breakpoints;
3
+ @value desktop from breakpoints;
4
+
5
+ .container {
6
+ box-sizing: border-box;
7
+ display: flex;
8
+ align-items: stretch;
9
+ justify-content: flex-start;
10
+ flex-wrap: wrap;
11
+ }
12
+
13
+ .leftSection {
14
+ display: block;
15
+ overflow: hidden;
16
+ box-sizing: border-box;
17
+ width: 68%;
18
+ position: relative;
19
+ }
20
+
21
+ .rightSection {
22
+ box-sizing: border-box;
23
+ position: relative;
24
+ display: flex;
25
+ flex-direction: column;
26
+ flex: 0 1 320px;
27
+ }
28
+
29
+ .stickySection {
30
+ box-sizing: border-box;
31
+ position: fixed;
32
+ z-index: 1;
33
+ bottom: 0;
34
+ right: 64px;
35
+ width: 300px;
36
+ }
37
+
38
+ .header {
39
+ display: flex;
40
+ flex-direction: row;
41
+ align-items: center;
42
+ }
43
+
44
+ .headerTitle {
45
+ font-family: Gilroy;
46
+ font-size: 20px;
47
+ font-weight: bold;
48
+ margin: 0 0 0 16px;
49
+ }
50
+
51
+ .form {
52
+ margin: 45px 32px 0 0;
53
+ }
54
+
55
+ .summaryZone {
56
+ width: 100%;
57
+ position: relative;
58
+ min-height: 500px;
59
+ justify-content: space-between;
60
+ }
61
+
62
+ .actionZone {
63
+ width: 100%;
64
+ display: flex;
65
+ justify-content: space-between;
66
+ margin: 16px 0;
67
+ }
68
+
69
+ .button {
70
+ width: calc(50% - 8px);
71
+ }
72
+
73
+ .footer {
74
+ width: 100%;
75
+ bottom: 0px;
76
+ display: none;
77
+ position: inherit;
78
+ }
79
+
80
+ @media desktop, tablet {
81
+ .leftSection {
82
+ width: 100%;
83
+ min-height: 500px;
84
+ }
85
+
86
+ .rightSection {
87
+ display: none;
88
+ }
89
+
90
+ .footer {
91
+ display: flex;
92
+ align-items: end;
93
+ bottom: 10px;
94
+ position: sticky;
95
+ z-index: 1;
96
+ }
97
+ .footer::before {
98
+ content: '';
99
+ background: linear-gradient(to top,white 64px, #ffffff00 );
100
+ bottom: -10px;
101
+ left: 0px;
102
+ right: 0px;
103
+ height: 84px;
104
+ position: absolute;
105
+ z-index: -1;
106
+ }
107
+
108
+ .summaryFooter {
109
+ width: 57%;
110
+ }
111
+
112
+ .actionFooter {
113
+ width: 43%;
114
+ }
115
+ .actionZone {
116
+ margin: 0;
117
+ }
118
+ }
@@ -0,0 +1,40 @@
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
+ /* eslint-disable no-console */
4
+ import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';
5
+ import addCoursesForm from '../../../course-selection/test/fixtures/default';
6
+ export default {
7
+ props: {
8
+ wizardHeader: {
9
+ title: 'Edit custom playlist',
10
+ onClick: () => console.log('Close')
11
+ },
12
+ steps: [{
13
+ title: 'General Informations',
14
+ done: true
15
+ }, {
16
+ title: 'Translations',
17
+ done: true
18
+ }, {
19
+ title: 'Assign populations',
20
+ done: true
21
+ }, {
22
+ title: 'Add courses',
23
+ done: false,
24
+ current: true
25
+ }],
26
+ summary: wizardSummary.props,
27
+ content: _extends(_extends({}, addCoursesForm.props), {}, {
28
+ type: 'courses'
29
+ }),
30
+ previousStep: {
31
+ label: 'Previous Step',
32
+ onClick: () => console.log('Previous Step')
33
+ },
34
+ nextStep: {
35
+ label: 'Next Step',
36
+ onClick: () => console.log('Next Step')
37
+ }
38
+ }
39
+ };
40
+ //# sourceMappingURL=playlist-add-courses-create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js"],"names":["wizardSummary","addCoursesForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,cAAP,MAA2B,iDAA3B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KATK,EAaL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KAbK,CALF;AAwBLC,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,cAAc,CAACC,KADb;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRD,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport addCoursesForm from '../../../course-selection/test/fixtures/default';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: true\n },\n {\n title: 'Add courses',\n done: false,\n current: true\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...addCoursesForm.props,\n type: 'courses'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-add-courses-create.js"}
@@ -0,0 +1,36 @@
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
+ /* eslint-disable no-console */
4
+ import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';
5
+ import generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';
6
+ export default {
7
+ props: {
8
+ wizardHeader: {
9
+ title: 'Create custom playlist',
10
+ onClick: () => console.log('Close')
11
+ },
12
+ steps: [{
13
+ title: 'General Informations',
14
+ done: false,
15
+ current: true
16
+ }, {
17
+ title: 'Translations',
18
+ done: false
19
+ }, {
20
+ title: 'Assign populations',
21
+ done: false
22
+ }, {
23
+ title: 'Add courses',
24
+ done: false
25
+ }],
26
+ summary: wizardSummary.props,
27
+ content: _extends(_extends({}, generalInformation.props), {}, {
28
+ type: 'form'
29
+ }),
30
+ nextStep: {
31
+ label: 'Next step',
32
+ onClick: () => console.log('Next Step')
33
+ }
34
+ }
35
+ };
36
+ //# sourceMappingURL=playlist-general-settings-create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js"],"names":["wizardSummary","generalInformation","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","nextStep","label"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,wBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEN,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,kBAAkB,CAACC,KADjB;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AA7BL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Create custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...generalInformation.props,\n type: 'form'\n },\n nextStep: {\n label: 'Next step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-general-settings-create.js"}
@@ -0,0 +1,36 @@
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
+ /* eslint-disable no-console */
4
+ import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/one-section';
5
+ import generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';
6
+ export default {
7
+ props: {
8
+ wizardHeader: {
9
+ title: 'Edit custom playlist',
10
+ onClick: () => console.log('Close')
11
+ },
12
+ steps: [{
13
+ title: 'General Informations',
14
+ done: false,
15
+ current: true
16
+ }, {
17
+ title: 'Translations',
18
+ done: false
19
+ }, {
20
+ title: 'Assign populations',
21
+ done: false
22
+ }, {
23
+ title: 'Add courses',
24
+ done: false
25
+ }],
26
+ summary: wizardSummary.props,
27
+ content: _extends(_extends({}, generalInformation.props), {}, {
28
+ type: 'form'
29
+ }),
30
+ nextStep: {
31
+ label: 'Next Step',
32
+ onClick: () => console.log('Next Step')
33
+ }
34
+ }
35
+ };
36
+ //# sourceMappingURL=playlist-general-settings-edit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js"],"names":["wizardSummary","generalInformation","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","nextStep","label"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,+DAA1B;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEN,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,kBAAkB,CAACC,KADjB;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AA7BL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/one-section';\nimport generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...generalInformation.props,\n type: 'form'\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-general-settings-edit.js"}
@@ -0,0 +1,40 @@
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
+ /* eslint-disable no-console */
4
+ import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';
5
+ import populationsForm from '../../../search-and-chips-results/test/fixtures/sorted-selected';
6
+ export default {
7
+ props: {
8
+ wizardHeader: {
9
+ title: 'Create custom playlist',
10
+ onClick: () => console.log('Close')
11
+ },
12
+ steps: [{
13
+ title: 'General Informations',
14
+ done: true
15
+ }, {
16
+ title: 'Translations',
17
+ done: true
18
+ }, {
19
+ title: 'Assign populations',
20
+ done: false,
21
+ current: true
22
+ }, {
23
+ title: 'Add courses',
24
+ done: false
25
+ }],
26
+ summary: wizardSummary.props,
27
+ content: _extends(_extends({}, populationsForm.props), {}, {
28
+ type: 'populations'
29
+ }),
30
+ previousStep: {
31
+ label: 'Previous Step',
32
+ onClick: () => console.log('Previous Step')
33
+ },
34
+ nextStep: {
35
+ label: 'Next Step',
36
+ onClick: () => console.log('Next Step')
37
+ }
38
+ }
39
+ };
40
+ //# sourceMappingURL=playlist-populations-create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-populations-create.js"],"names":["wizardSummary","populationsForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,eAAP,MAA4B,iEAA5B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,wBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KATK,EAcL;AACEN,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,eAAe,CAACC,KADd;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRD,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport populationsForm from '../../../search-and-chips-results/test/fixtures/sorted-selected';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Create custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: false,\n current: true\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...populationsForm.props,\n type: 'populations'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-populations-create.js"}
@@ -0,0 +1,40 @@
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
+ /* eslint-disable no-console */
4
+ import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';
5
+ import translateForm from '../../../content-translation/test/fixtures/default';
6
+ export default {
7
+ props: {
8
+ wizardHeader: {
9
+ title: 'Edit custom playlist',
10
+ onClick: () => console.log('Close')
11
+ },
12
+ steps: [{
13
+ title: 'General Informations',
14
+ done: true
15
+ }, {
16
+ title: 'Translations',
17
+ done: false,
18
+ current: true
19
+ }, {
20
+ title: 'Assign populations',
21
+ done: false
22
+ }, {
23
+ title: 'Add courses',
24
+ done: false
25
+ }],
26
+ summary: wizardSummary.props,
27
+ content: _extends(_extends({}, translateForm.props), {}, {
28
+ type: 'translate'
29
+ }),
30
+ previousStep: {
31
+ label: 'Previous Step',
32
+ onClick: () => console.log('Previous Step')
33
+ },
34
+ nextStep: {
35
+ label: 'Next Step',
36
+ onClick: () => console.log('Next Step')
37
+ }
38
+ }
39
+ };
40
+ //# sourceMappingURL=playlist-translate-edit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-translate-edit.js"],"names":["wizardSummary","translateForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,aAAP,MAA0B,oDAA1B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KALK,EAUL;AACEN,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,aAAa,CAACC,KADZ;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRD,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport translateForm from '../../../content-translation/test/fixtures/default';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: false,\n current: true\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...translateForm.props,\n type: 'translate'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-translate-edit.js"}
@@ -0,0 +1,21 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismWizardContents from '..';
5
+ import fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';
6
+ import fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';
7
+ import fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';
8
+ import fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';
9
+ import fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';
10
+ test('Organism › OrganismWizardContents > should have valid propTypes', t => {
11
+ t.pass();
12
+ forEach(OrganismWizardContents.propTypes, (value, key) => {
13
+ t.not(value, undefined, `PropType for "Organism.OrganismWizardContents.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
14
+ });
15
+ });
16
+ test('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);
17
+ test('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);
18
+ test('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);
19
+ test('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);
20
+ test('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);
21
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismWizardContents","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","fixturePlaylistPopulationsCreate","fixturePlaylistTranslateEdit","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,+BAAP,MAA4C,wCAA5C;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,kCAAP,MAA+C,2CAA/C;AACA,OAAOC,gCAAP,MAA6C,wCAA7C;AACA,OAAOC,4BAAP,MAAyC,oCAAzC;AAEAR,IAAI,CAAC,iEAAD,EAAoES,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,sBAAsB,CAACQ,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,sBAA5G,EAAoIC,+BAApI,CAAJ;AACAJ,IAAI,CAAC,wFAAD,EAA2FE,oBAA3F,EAAiHC,sBAAjH,EAAyIE,oCAAzI,CAAJ;AACAL,IAAI,CAAC,sFAAD,EAAyFE,oBAAzF,EAA+GC,sBAA/G,EAAuIG,kCAAvI,CAAJ;AACAN,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,sBAA7G,EAAqII,gCAArI,CAAJ;AACAP,IAAI,CAAC,gFAAD,EAAmFE,oBAAnF,EAAyGC,sBAAzG,EAAiIK,4BAAjI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismWizardContents from '..';\nimport fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';\nimport fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';\nimport fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';\nimport fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';\nimport fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';\n\ntest('Organism › OrganismWizardContents > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismWizardContents.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismWizardContents.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);\ntest('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);\n"],"file":"fixtures.js"}
@@ -7,6 +7,7 @@ import pipe from 'lodash/fp/pipe';
7
7
  import get from 'lodash/fp/get';
8
8
  import isEmpty from 'lodash/fp/isEmpty';
9
9
  import find from 'lodash/fp/find';
10
+ import classNames from 'classnames';
10
11
  import BrandTabs from '../../../molecule/brand-tabs';
11
12
  import { IconLinkItem, LinkItem } from '../../../organism/sidebar';
12
13
  import BrandForm from '../../../organism/brand-form';
@@ -14,6 +15,7 @@ import BrandTable from '../../../organism/brand-table';
14
15
  import BrandUpload from '../../../organism/brand-upload';
15
16
  import BrandAnalytics from '../../../organism/brand-analytics';
16
17
  import BrandDashboard from '../../../organism/brand-dashboard';
18
+ import WizardContents from '../../../organism/wizard-contents';
17
19
  import Banner from '../../../molecule/banner';
18
20
  import Header from '../../../organism/setup-header';
19
21
  import Loader from '../../../atom/loader';
@@ -57,7 +59,7 @@ const buildLeftNavigation = (logo, items, onItemClick) => {
57
59
  className: style.subTabsView
58
60
  }, subTabsView(tab.tabs)))(items);
59
61
  return /*#__PURE__*/React.createElement("div", {
60
- className: style.leftMenu
62
+ className: style.navigation
61
63
  }, /*#__PURE__*/React.createElement("div", {
62
64
  className: style.logo
63
65
  }, /*#__PURE__*/React.createElement("a", {
@@ -87,10 +89,9 @@ const buildNotifications = notifications => {
87
89
  }, notificationsList);
88
90
  };
89
91
 
90
- const buildHeader = (header, notifications) => {
91
- const headerStyle = isEmpty(notifications) ? style.header : style.headerForNotifications;
92
+ const buildHeader = header => {
92
93
  return /*#__PURE__*/React.createElement("div", {
93
- className: headerStyle
94
+ className: style.header
94
95
  }, /*#__PURE__*/React.createElement(Header, header));
95
96
  };
96
97
 
@@ -130,6 +131,9 @@ const buildContentView = content => {
130
131
 
131
132
  case 'home':
132
133
  return /*#__PURE__*/React.createElement(BrandDashboard, content);
134
+
135
+ case 'wizard':
136
+ return /*#__PURE__*/React.createElement(WizardContents, content);
133
137
  }
134
138
  };
135
139
 
@@ -154,18 +158,25 @@ const BrandUpdate = props => {
154
158
  const tabsView = buildTabs(items);
155
159
  const contentView = buildContentView(content);
156
160
  const detailsView = buildDetailsView(details);
161
+ const contentStyle = classNames([style.content, !isEmpty(notifications) && style.contentWithNotifications]);
157
162
  return /*#__PURE__*/React.createElement("div", {
158
163
  className: style.container
159
- }, leftNavigation, /*#__PURE__*/React.createElement("div", {
164
+ }, /*#__PURE__*/React.createElement("div", {
165
+ className: style.left
166
+ }, leftNavigation), /*#__PURE__*/React.createElement("div", {
160
167
  className: style.contentWrapper
161
- }, headerView, notificationsView, tabsView, contentView, detailsView));
168
+ }, /*#__PURE__*/React.createElement("div", {
169
+ className: style.headerSticky
170
+ }, headerView), /*#__PURE__*/React.createElement("div", {
171
+ className: contentStyle
172
+ }, notificationsView, tabsView, contentView, detailsView)));
162
173
  };
163
174
 
164
175
  BrandUpdate.defaultProps = {
165
176
  notifications: []
166
177
  };
167
178
  BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
168
- notifications: PropTypes.arrayOf(PropTypes.shape(Banner.propTypes)),
179
+ notifications: PropTypes.arrayOf(PropTypes.shape(_extends({}, Banner.propTypes))),
169
180
  header: PropTypes.shape(_extends({}, Header.propTypes)),
170
181
  items: PropTypes.arrayOf(PropTypes.shape({
171
182
  key: PropTypes.string,
@@ -201,6 +212,9 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
201
212
  })), PropTypes.shape(_extends(_extends({}, BrandDashboard.propTypes), {}, {
202
213
  key: PropTypes.string,
203
214
  type: PropTypes.oneOf(['home'])
215
+ })), PropTypes.shape(_extends(_extends({}, WizardContents.propTypes), {}, {
216
+ key: PropTypes.string,
217
+ type: PropTypes.oneOf(['wizard'])
204
218
  }))]),
205
219
  details: PropTypes.shape(_extends(_extends({}, BrandTable.propTypes), {}, {
206
220
  key: PropTypes.string,